{"version":3,"file":"YIA5lAO2s.CgjRFWJh.mjs","names":["React.forwardRef","__esmMin","init_jsx_runtime","J","c","p","init_npm_react_18_3_1","init_framer_motion_DhsWWWsN","motion","cx","withCSS","useTracking","ControlType","addPropertyControls","init_framer_D6uXRwWs","isPublishedSiteOrSSG","metaTagSelector","Download","props","styleOptions","track","isInPublishedSiteOrSSG","downloadURL","paddingValue","paddingPerSide","paddingTop","paddingRight","paddingBottom","paddingLeft","padding","getIcon","iconOptions","iconStyle","getCursor","buttonTitle","handleClick","trackingId","onClick","buttonStyles","flexAlignSwitch","hoverOptions","IconType","SrcType","init_Download","\"Default\"","\"Custom\"","\"Upload\"","\"URL\"","fontControlStyles","mask","SVG","getProps","Icon","init_YIA5lAO2s","rest","animated","restProps","className","style"],"sources":["https:/framerusercontent.com/modules/kBkaj3LmBqcSU2IkUsBC/uaFLaKvU3aNJkwvPcVLe/Download.js","https:/framerusercontent.com/modules/6HgRWNQ3OqOxEhArIttx/4WavGxucSHjNAe5QZrXI/YIA5lAO2s.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useTracking}from\"framer\";import{motion}from\"framer-motion\";var IconType;(function(IconType){IconType[\"Default\"]=\"Default\";IconType[\"Custom\"]=\"Custom\";})(IconType||(IconType={}));var SrcType;(function(SrcType){SrcType[\"Upload\"]=\"Upload\";SrcType[\"URL\"]=\"URL\";})(SrcType||(SrcType={}));const metaTagSelector='meta[name=\"framer-search-index\"]';function isPublishedSiteOrSSG(){if(typeof document===\"undefined\")return true;const metaTag=document.querySelector(metaTagSelector);return!!metaTag;}/**\n *\n * DOWNLOAD\n * By Hunter\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 100\n *\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Download(props){const{styleOptions,hoverOptions,iconOptions,trackingId,onClick}=props;const{backgroundColor,color,borderRadius,padding,paddingPerSide,paddingTop,paddingRight,paddingBottom,paddingLeft,gap}=styleOptions;const track=useTracking();const isInPublishedSiteOrSSG=isPublishedSiteOrSSG();let downloadURL=undefined;if(isInPublishedSiteOrSSG){if(props.srcType===\"URL\")downloadURL=props.srcURL;if(props.srcType===\"Upload\")downloadURL=props.srcFile;}const paddingValue=paddingPerSide?`${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`:`${padding}px`;const getIcon=()=>{if(!iconOptions)return;const iconStyle={order:iconOptions.alignment===\"start\"?0:2,flexShrink:0};return iconOptions.type===\"Custom\"&&!!iconOptions.image?.src?/*#__PURE__*/_jsx(\"img\",{style:iconStyle,alt:iconOptions.image?.alt&&iconOptions.image.alt.length>0?iconOptions.image.alt:\"download icon\",src:iconOptions.image.src,width:iconOptions.size,height:iconOptions.size}):/*#__PURE__*/_jsx(\"svg\",{style:iconStyle,xmlns:\"http://www.w3.org/2000/svg\",width:iconOptions.size,height:iconOptions.size,fill:iconOptions.color,viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M228 152v56a20 20 0 0 1-20 20H48a20 20 0 0 1-20-20v-56a12 12 0 0 1 24 0v52h152v-52a12 12 0 0 1 24 0Zm-108.49 8.49a12 12 0 0 0 17 0l40-40a12 12 0 0 0-17-17L140 123V40a12 12 0 0 0-24 0v83l-19.51-19.49a12 12 0 0 0-17 17Z\"})});};const getCursor=()=>{if(props.srcType===\"URL\"&&props.srcURL)return\"pointer\";if(props.srcType===\"Upload\"&&props.srcFile)return\"pointer\";return\"auto\";};const buttonTitle=isInPublishedSiteOrSSG?\"Download File\":\"Publish to Download\";const handleClick=e=>{if(trackingId)track(trackingId);onClick?.(e);// Do not prevent default; keep normal <a> behavior\n};return /*#__PURE__*/_jsxs(motion.a,{target:\"_blank\",href:downloadURL,download:props.downloadName??\"file.txt\",title:buttonTitle,style:{gap,fontSize:16,lineHeight:1,fontFamily:\"Inter\",fontWeight:500,width:\"max-content\",...props.style,...buttonStyles,...props.fontControl,padding:paddingValue,color:color,backgroundColor:backgroundColor,borderRadius:borderRadius,userSelect:\"none\",placeContent:flexAlignSwitch(props.fontControl),whiteSpace:\"nowrap\",cursor:getCursor()},whileHover:hoverOptions,transition:hoverOptions?.transition,onClick:handleClick,children:[getIcon(),props.text]});}Download.displayName=\"Download\";addPropertyControls(Download,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Download\"},srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"Upload\",\"URL\"]},srcURL:{type:ControlType.String,title:\" \",placeholder:\"../example.pdf\",hidden:props=>props.srcType===\"Upload\"},srcFile:{type:ControlType.File,title:\" \",allowedFileTypes:[\"*\"],hidden:props=>props.srcType===\"URL\"},fontControl:{// @ts-ignore - Internal\ntype:ControlType.Font,title:\"Font\",controls:\"extended\"},trackingId:{title:\"Tracking\",type:ControlType.TrackingId,placeholder:\"ID\"},iconOptions:{type:ControlType.Object,optional:true,title:\"Icon\",buttonTitle:\"Size, Color\",controls:{type:{title:\"Type\",type:ControlType.Enum,options:Object.values(IconType),optionTitles:Object.values(IconType),displaySegmentedControl:true},color:{title:\"Color\",type:ControlType.Color,defaultValue:\"#FFF\",hidden:props=>props.type===\"Custom\"},image:{title:\"File\",type:ControlType.ResponsiveImage,allowedFileTypes:[\"jpg\",\"png\",\"svg\"],hidden:props=>props.type===\"Default\"},size:{type:ControlType.Number,displayStepper:true,min:5,defaultValue:16,max:250},alignment:{title:\"Align\",type:ControlType.Enum,displaySegmentedControl:true,options:[\"start\",\"end\"],optionTitles:[\"Start\",\"End\"]}}},styleOptions:{type:ControlType.Object,title:\"Styles\",buttonTitle:\"Button, Font\",controls:{backgroundColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#111\"},color:{type:ControlType.Color,defaultValue:\"#FFF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",displayStepper:true,defaultValue:50},padding:{title:\"Padding\",type:ControlType.FusedNumber,toggleKey:\"paddingPerSide\",toggleTitles:[\"Padding\",\"Padding per side\"],defaultValue:10,valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},gap:{title:\"Gap\",type:ControlType.Number,displayStepper:true,defaultValue:5}}},hoverOptions:{type:ControlType.Object,title:\"Hover\",buttonTitle:\"Effect\",optional:true,controls:{scale:{type:ControlType.Number,title:\"Scale\",min:0,max:10,displayStepper:true,step:.01,defaultValue:1.1},backgroundColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#333\",optional:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFF\",optional:true},transition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{type:\"spring\",stiffness:400,damping:30}}}}});const buttonStyles={display:\"flex\",placeItems:\"center\",placeContent:\"center\",textDecoration:\"none\"};/* Match flex content alignment with text align */const flexAlignSwitch=fontControlStyles=>{if(!fontControlStyles?.textAlign)return\"left\";if(fontControlStyles.textAlign===\"left\")return\"flex-start\";if(fontControlStyles.textAlign===\"right\")return\"flex-end\";return\"center\";};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Download\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"100\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Download.map","// Generated by Framer (6bfa4d3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{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 1600 1535\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 1600 1535 C 1375.791 1450.796 1195.381 1298.168 1095.671 1108.384 L 1095.671 1535 C 870.056 1450.265 688.789 1296.249 589.473 1104.804 L 589.473 1535 C 242.214 1404.58 0 1110.035 0 767.5 C 0 424.817 242.387 130.419 589.473 0 L 589.473 430.208 C 688.817 238.731 870.139 84.745 1095.671 0 L 1095.671 426.629 C 1195.412 236.812 1375.874 84.216 1600 0 Z\" fill=\"var(--token-b400d74b-bb94-4f88-939f-44cc65d2b09e, rgb(167, 215, 229))\" height=\"1535px\" id=\"keu_l6kWv\" width=\"1600px\"/></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,width,...props})=>{return{...props};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-f7wEu\",className),layoutId:layoutId,ref:ref,style:{...style}});});const css=[`.framer-f7wEu { -webkit-mask: ${mask}; aspect-ratio: 1.0423452768729642; background-color: var(--token-b400d74b-bb94-4f88-939f-44cc65d2b09e, #a7d7e5); mask: ${mask}; width: 1600px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 1600\n * @framerIntrinsicHeight 1535\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"2\",\"color\":{\"type\":\"static\",\"value\":\"var(--token-b400d74b-bb94-4f88-939f-44cc65d2b09e, rgb(167, 215, 229))\"},\"set\":{\"localId\":\"vectorSet/FVVG9yhbq\",\"id\":\"FVVG9yhbq\",\"moduleId\":\"ymitGJHafolbIFbR8hiG\"}}\n */const Icon=withCSS(Component,css,\"framer-f7wEu\");Icon.displayName=\"2\";export default Icon;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"2\\\",\\\"color\\\":{\\\"type\\\":\\\"static\\\",\\\"value\\\":\\\"var(--token-b400d74b-bb94-4f88-939f-44cc65d2b09e, rgb(167, 215, 229))\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/FVVG9yhbq\\\",\\\"id\\\":\\\"FVVG9yhbq\\\",\\\"moduleId\\\":\\\"ymitGJHafolbIFbR8hiG\\\"}}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"1600\",\"framerIntrinsicHeight\":\"1535\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,yPAAob,SAASe,GAAsB,CAAoG,OAAhG,OAAO,SAAW,KAAoF,CAAC,CAA/C,SAAS,cAAcC,CAA+B,CAAE,CAYpkB,SAAwBC,EAAS,EAAM,CAAC,GAAK,CAAC,eAAa,eAAa,cAAY,aAAW,WAASC,EAAW,CAAC,kBAAgB,QAAM,eAAa,UAAQ,iBAAe,aAAW,eAAa,gBAAc,cAAY,OAAKC,EAAmBC,EAAMT,EAAY,EAAQU,EAAuBN,EAAqB,EAAMO,EAAyBD,IAA2BH,EAAM,UAAU,QAAM,EAAYA,EAAM,QAAUA,EAAM,UAAU,WAAS,EAAYA,EAAM,UAAS,IAAMK,EAAaC,EAAe,GAAGC,EAAW,KAAKC,EAAa,KAAKC,EAAc,KAAKC,EAAY,IAAI,GAAGC,EAAQ,IAAUC,MAAY,CAAC,GAAG,CAACC,EAAY,OAAO,IAAMC,EAAU,CAAC,MAAMD,EAAY,YAAY,QAAQ,EAAE,EAAE,WAAW,CAAC,EAAE,OAAOA,EAAY,OAAO,UAAYA,EAAY,OAAO,IAAiB,gBAAK,MAAM,CAAC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