{"version":3,"file":"FileUploadInput.DGXf7sdU.mjs","names":["useState","useRef","useState","useRef","maxSizeMB"],"sources":["https:/framerusercontent.com/modules/28d2a4VreVXZoJwmw7cr/xaUxHfqb2G5dTrk052JY/LogicBlock.js","https:/framerusercontent.com/modules/UXNWRabX0IeVTgbvsbAG/HnueHi4dWXgSweuC31vu/FileUploadInput.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{HiddenComponentLabel,useMultiStepFormStore,getFormInfo}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";const labelFormats={isSet:\"Name\",isNotSet:\"Not Name\",equals:\"Name = Value\",doesNotEqual:\"Name ≠ Value\",startsWith:\"Name starts with Value\",doesNotStartWith:\"Name does not start with Value\",endsWith:\"Name ends with Value\",doesNotEndWith:\"Name does not end with Value\",contains:\"Name contains Value\",doesNotContain:\"Name does not contain Value\",greaterThan:\"Name > Value\",lessThan:\"Name < Value\",greaterThanOrEqualTo:\"Name ≥ Value\",lessThanOrEqualTo:\"Name ≤ Value\",isBefore:\"Name is before Value\",isAfter:\"Name is after Value\",isBetweenDates:\"Name is between Value\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function LogicBlock(props){const{conditions,defaultCondition}=props;const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const[formInfo,setFormInfo]=useState(null);const ref=useRef(null);useEffect(()=>{setFormInfo(getFormInfo(ref.current));},[ref]);useEffect(()=>{const form=formInfo===null||formInfo===void 0?void 0:formInfo.form;const formId=formInfo===null||formInfo===void 0?void 0:formInfo.formId;if(formId&&multiStepFormState[formId]){const getNextPage=()=>{for(const condition of conditions){var _form_querySelector;const value=(condition.type==\"radio\"?getRadioValue(form,condition.inputName):(_form_querySelector=form.querySelector(`[name=\"${condition.inputName}\"]`))===null||_form_querySelector===void 0?void 0:_form_querySelector.value)||\"\";const result=checkCondition(condition,value);if(result){return condition.pageName;}}return defaultCondition.pageName;};setMultiStepFormState(prev=>({[formId]:{...prev[formId],logicConfigs:[...prev[formId].logicConfigs,{getNextPage,ref}]}}));}},[formInfo]);return /*#__PURE__*/_jsx(HiddenComponentLabel,{text:\"Multi-Step Form Logic\",subtext:conditions.map(condition=>{const type=condition.type;const labelFormat=type==\"checkbox\"?condition.checkboxValue?\"isSet\":\"isNotSet\":labelFormats[condition[`${type}Condition`]]||\"\";let value=type==\"date\"?condition.dateCondition==\"isBetweenDates\"?`${formatDate(condition.dateValueStart)} and ${formatDate(condition.dateValueEnd)}`:formatDate(condition.dateValue):String(condition[`${type}Value`]);return`${labelFormat.replace(\"Name\",condition.inputName).replace(\"Value\",value)} → ${condition.pageName||\"[None]\"}`;}).join(\"\\n\")+`${conditions.length?\"\\n\":\"\"}Default: ${defaultCondition.pageName?defaultCondition.pageName:\"Next Page\"}`,ref:ref,\"data-framerforms-logic\":true});}LogicBlock.displayName=\"Form Logic Config\";addPropertyControls(LogicBlock,{conditions:{type:ControlType.Array,title:\"Conditions\",control:{type:ControlType.Object,controls:{inputName:{type:ControlType.String,defaultValue:\"\",placeholder:\"Input Name\",preventLocalization:true},type:{type:ControlType.Enum,defaultValue:\"text\",options:[\"text\",\"select\",\"radio\",\"number\",\"date\",\"checkbox\",\"fileUpload\"],optionTitles:[\"Text\",\"Select\",\"Radio\",\"Number\",\"Date\",\"Checkbox\",\"File Upload\"]},textCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Condition\",options:[\"isSet\",\"isNotSet\",\"equals\",\"doesNotEqual\",\"startsWith\",\"doesNotStartWith\",\"endsWith\",\"doesNotEndWith\",\"contains\",\"doesNotContain\"],optionTitles:[\"Is Set\",\"Is Not Set\",\"Equals\",\"Does Not Equal\",\"Starts With\",\"Does Not Start With\",\"Ends With\",\"Does Not End With\",\"Contains\",\"Does Not Contain\"],hidden:props=>props.type!==\"text\"},textValue:{type:ControlType.String,defaultValue:\"\",placeholder:\"Empty\",title:\"Value\",hidden:props=>props.type!==\"text\"||props.textCondition===\"isSet\"||props.textCondition===\"isNotSet\"},selectCondition:{type:ControlType.Enum,defaultValue:\"equals\",options:[\"isSet\",\"isNotSet\",\"equals\",\"doesNotEqual\"],optionTitles:[\"Is Set\",\"Is Not Set\",\"Equals\",\"Does Not Equal\"],title:\"Condition\",hidden:props=>props.type!==\"select\"},selectValue:{type:ControlType.String,defaultValue:\"\",placeholder:\"Empty\",title:\"Value\",preventLocalization:true,hidden:props=>props.type!==\"select\"||props.selectCondition===\"isSet\"||props.selectCondition===\"isNotSet\"},radioCondition:{type:ControlType.Enum,defaultValue:\"equals\",options:[\"equals\",\"doesNotEqual\"],optionTitles:[\"Equals\",\"Does Not Equal\"],title:\"Condition\",hidden:props=>props.type!==\"radio\"},radioValue:{type:ControlType.String,defaultValue:\"\",placeholder:\"Empty\",title:\"Value\",preventLocalization:true,hidden:props=>props.type!==\"radio\"},checkboxValue:{type:ControlType.Boolean,title:\"Checked\",hidden:props=>props.type!==\"checkbox\"},numberCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Condition\",options:[\"equals\",\"doesNotEqual\",\"greaterThan\",\"lessThan\",\"greaterThanOrEqualTo\",\"lessThanOrEqualTo\"],optionTitles:[\"Equals\",\"Does Not Equal\",\"Greater Than\",\"Less Than\",\"Greater Than or Equal To\",\"Less Than or Equal To\"],hidden:props=>props.type!==\"number\"},numberValue:{type:ControlType.Number,defaultValue:0,displayStepper:true,title:\"Value\",hidden:props=>props.type!==\"number\"},dateCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Condition\",options:[\"equals\",\"doesNotEqual\",\"isBefore\",\"isAfter\",\"isBetweenDates\"],optionTitles:[\"Equals\",\"Does Not Equal\",\"Is Before\",\"Is After\",\"Is Between Dates\"],hidden:props=>props.type!==\"date\"},dateValue:{type:ControlType.Date,title:\"Value\",hidden:props=>props.type!==\"date\"||props.dateCondition==\"isBetweenDates\"},dateValueStart:{type:ControlType.Date,title:\"Start\",hidden:props=>props.type!==\"date\"||props.dateCondition!==\"isBetweenDates\"},dateValueEnd:{type:ControlType.Date,title:\"End\",hidden:props=>props.type!==\"date\"||props.dateCondition!==\"isBetweenDates\"},fileUploadCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Has File\",options:[\"isSet\",\"isNotSet\"],optionTitles:[\"Yes\",\"No\"],displaySegmentedControl:true,hidden:props=>props.type!==\"fileUpload\"},pageName:{type:ControlType.String,defaultValue:\"\",placeholder:\"Page Name\",title:\"Go To\",preventLocalization:true}}}},defaultCondition:{type:ControlType.Object,title:\"Default\",controls:{pageName:{type:ControlType.String,defaultValue:\"\",placeholder:\"Page Name\",title:\"Go To\",description:\"If blank, goes to the next page\",preventLocalization:true}}}});function checkCondition(condition,value){switch(condition.type){case\"text\":switch(condition.textCondition){case\"isSet\":return value!==\"\";case\"isNotSet\":return value===\"\";case\"equals\":return value===condition.textValue;case\"doesNotEqual\":return value!==condition.textValue;case\"startsWith\":return value.startsWith(condition.textValue);case\"doesNotStartWith\":return!value.startsWith(condition.textValue);case\"endsWith\":return value.endsWith(condition.textValue);case\"doesNotEndWith\":return!value.endsWith(condition.textValue);case\"contains\":return value.includes(condition.textValue);case\"doesNotContain\":return!value.includes(condition.textValue);}break;case\"select\":switch(condition.selectCondition){case\"isSet\":return value!==\"\";case\"isNotSet\":return value===\"\";case\"equals\":return value===condition.selectValue;case\"doesNotEqual\":return value!==condition.selectValue;}break;case\"radio\":switch(condition.radioCondition){case\"equals\":return value===condition.radioValue;case\"doesNotEqual\":return value!==condition.radioValue;}break;case\"number\":const number=parseFloat(value);switch(condition.numberCondition){case\"equals\":return number===condition.numberValue;case\"doesNotEqual\":return number!==condition.numberValue;case\"greaterThan\":return number>condition.numberValue;case\"lessThan\":return number<condition.numberValue;case\"greaterThanOrEqualTo\":return number>=condition.numberValue;case\"lessThanOrEqualTo\":return number<=condition.numberValue;}break;case\"date\":const date=new Date(value);switch(condition.dateCondition){case\"equals\":return date===condition.dateValue;case\"doesNotEqual\":return date!==condition.dateValue;case\"isBefore\":return date<condition.dateValue;case\"isAfter\":return date>condition.dateValue;case\"isBetweenDates\":return date>=condition.dateValueStart&&date<=condition.dateValueEnd;}break;case\"checkbox\":return value==\"on\"==condition.checkboxValue;case\"fileUpload\":switch(condition.fileUploadCondition){case\"isSet\":return value!=\"\";case\"isNotSet\":return value==\"\";}break;}return false;}function formatDate(dateString){if(!dateString){return\"mm/dd/yyyy\";}const date=dateString;let month=date.getMonth()+1// Months are zero-based\n;let day=date.getDate();let year=date.getFullYear();// Ensure month and day are two digits\nif(month<10)month=\"0\"+month;if(day<10)day=\"0\"+day;return`${month}/${day}/${year}`;}function getRadioValue(form,radioName){// Ensure the form exists\nif(!form){return null;}// Get the array of radio buttons by name\nvar radios=form.elements[radioName];// Ensure the radio buttons exist\nif(!radios){console.log(`Radio buttons with name \"${radioName}\" not found.`);return null;}// Iterate through the radio buttons to find the checked one\nfor(var i=0;i<radios.length;i++){if(radios[i].checked){return radios[i].value// Return the value of the checked radio button\n;}}// If no radio button is checked, return null\nreturn null;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogicBlock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{motion}from\"framer\";import{createBackground,Border,borderProp,fillProp,useInstanceId,iconProp,Icon,HiddenInput}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";const PRESIGNED_URL_API=\"https://api.framerforms.com/s3/signed-url\";const LOADING_SPINNER=`url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 24C18.627 24 24 18.6274 24 12C24 5.37256 18.627 0 12 0C5.37305 0 0 5.37256 0 12C0 18.6274 5.37305 24 12 24ZM12 22C17.5234 22 22 17.5229 22 12C22 6.47705 17.5234 2 12 2C6.47656 2 2 6.47705 2 12C2 17.5229 6.47656 22 12 22Z' fill='%23FFFFFF'/%3E%3C/svg%3E\")`;const AUDIO_FILE_TYPES=[\".mp3\",\".wav\",\".ogg\",\".m4a\",\".aac\",\".wma\",\".flac\",\".mid\",\".midi\",\".aif\",\".aiff\"].join(\",\");/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerDisableUnlink\n */export default function FileUploadInput(props){const{shadows,border,layout,icon,imagePreview,xButton}=props;const id=useInstanceId();const isVertical=props.layout.direction==\"vertical\";const maxSizeMB=Math.min(props.maxSizeMB||25,25);const[focused,setFocused]=useState(false);const[invalid,setInvalid]=useState(false);const[fileName,setFileName]=useState(\"\");const[fileUploadUrl,setFileUploadUrl]=useState(\"\");const[isUploading,setIsUploading]=useState(false);const[imagePreviewUrl,setImagePreviewUrl]=useState(\"\");const inputRef=useRef(null);useEffect(()=>{if(invalid){props.invalidEvent?.();}},[invalid]);function onFocus(){setFocused(true);props.focusEvent?.();if(invalid){setInvalid(false);}}function onBlur(){setFocused(false);props.blurEvent?.();}let accept=\"\";switch(props.fileTypes){case\"audio\":accept=AUDIO_FILE_TYPES;break;case\"video\":accept=\"video/*\";break;case\"image\":accept=\"image/*\";break;case\"custom\":const fileTypeStrings=[];for(const fileType of props.fileTypesCustom){if(fileType.startsWith(\".\")||fileType==\"video/*\"||fileType==\"image/*\"){fileTypeStrings.push(fileType);}else if(fileType==\"audio/*\"){fileTypeStrings.push(AUDIO_FILE_TYPES);}else{fileTypeStrings.push(`.${fileType}`);}}accept=fileTypeStrings.join(\",\");break;}async function onFileChange(event,maxSizeMB){const file=event.target.files[0];setFileName(file?file.name:\"\");setImagePreviewUrl(\"\");if(!file){return;}// Add image preview if it's an image file and imagePreview is enabled\nif(imagePreview&&file.type.startsWith(\"image/\")){setImagePreviewUrl(URL.createObjectURL(file));}// File type validation\nif(props.fileTypes!==\"all\"){let isValidType=false;if(props.fileTypes===\"custom\"&&props.fileTypesCustom?.length){isValidType=props.fileTypesCustom.some(type=>{if(type.startsWith(\".\")){// Check file extension\nreturn file.name.toLowerCase().endsWith(type.toLowerCase());}else if(type.includes(\"/*\")){// Check MIME type pattern (e.g., \"image/*\")\nconst[category]=type.split(\"/\");return file.type.startsWith(`${category}/`);}// Exact MIME type match\nreturn file.type===type;});}else{// Handle built-in types (audio, video, image)\nisValidType=file.type.startsWith(`${props.fileTypes}/`);}if(!isValidType){setInvalid(true);console.error(`Invalid file type. Allowed: ${accept}`);return;}}// File size validation\nconst maxSizeBytes=maxSizeMB*1024*1024;if(file.size>maxSizeBytes){setInvalid(true);console.error(`File size exceeds the maximum limit of ${maxSizeMB}MB.`);return;}setIsUploading(true);const result=await uploadFile(file);setFileUploadUrl(result?.fileLocation||\"\");setIsUploading(false);}function onKeyDown(event){if(event.key==\"Enter\"){inputRef.current?.click();}}function clearFile(){setFileName(\"\");setFileUploadUrl(\"\");setImagePreviewUrl(\"\");setIsUploading(false);if(inputRef.current){inputRef.current.value=\"\";}}return /*#__PURE__*/_jsxs(motion.div,{\"data-framerforms\":true,onFocus:onFocus,onBlur:onBlur,onKeyDown:onKeyDown,animate:{...createBackground(props.fill,null,focused,invalid),boxShadow:invalid&&shadows?.invalid||focused&&shadows?.focus||shadows?.default,borderColor:invalid&&border?.colorInvalid||focused&&border?.colorFocus||border?.color},style:{borderRadius:props.radius,padding:props.padding,color:props.color,display:\"flex\",flexDirection:`${isVertical?\"column\":\"row\"}${icon?.location==\"end\"?\"-reverse\":\"\"}`,alignItems:isVertical?layout.alignH:\"center\",justifyContent:isVertical?\"center\":layout.alignH,gap:layout.gap,textAlign:\"center\",backdropFilter:props.bgBlur?`blur(${props.bgBlur}px)`:undefined,...props.font,...props.style},initial:false,transition:props.transition,children:[/*#__PURE__*/_jsx(HiddenInput,{name:props.name,required:props.required||isUploading,value:fileUploadUrl,setInvalid:setInvalid,noPrefill:true}),/*#__PURE__*/_jsx(\"input\",{ref:inputRef,type:\"file\",accept:accept,autoFocus:props.autoFocus,onChange:event=>onFileChange(event,maxSizeMB),style:{position:\"absolute\",inset:0,opacity:0,cursor:\"pointer\"},\"data-framerforms-no-prefill\":true}),icon&&(isUploading&&icon.spinner?/*#__PURE__*/_jsx(motion.div,{animate:{rotate:360},transition:{duration:1,repeat:Infinity,ease:\"linear\"},style:{width:icon.size,height:icon.size,background:`conic-gradient(from 0deg at 50% 50%, ${icon.color||props.color} 0%, transparent 100%)`,mask:LOADING_SPINNER,maskSize:icon.size}}):imagePreviewUrl&&imagePreview?/*#__PURE__*/_jsxs(\"div\",{style:{width:imagePreview.aspectRatio===\"square\"?imagePreview.height:\"auto\",height:imagePreview.height,maxWidth:imagePreview.aspectRatio===\"square\"?imagePreview.height:\"100%\",maxHeight:imagePreview.height,borderRadius:imagePreview.radius,overflow:\"hidden\",boxShadow:imagePreview.shadows,position:\"relative\",borderColor:imagePreview.border?.color},children:[/*#__PURE__*/_jsx(\"img\",{src:imagePreviewUrl,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:\"center\"}}),imagePreview.border&&/*#__PURE__*/_jsx(Border,{...imagePreview.border})]}):/*#__PURE__*/_jsx(Icon,{...icon,defaultImage:`url('data:image/svg+xml,${encodeURIComponent(`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\"><path d=\"M 9.366 18.419 C 8.284 18.422 7.242 18.009 6.456 17.266 C 5.69 16.541 5.254 15.535 5.25 14.481 C 5.25 13.437 5.684 12.436 6.456 11.697 C 7.242 10.953 8.284 10.54 9.366 10.544 C 9.624 9.395 10.378 8.385 11.463 7.738 C 12.009 7.413 12.61 7.191 13.235 7.082 C 13.869 6.971 14.518 6.973 15.152 7.088 C 15.783 7.202 16.383 7.429 16.919 7.753 C 17.445 8.068 17.903 8.483 18.269 8.975 C 18.626 9.458 18.873 10 18.997 10.57 C 19.121 11.139 19.12 11.725 18.992 12.294 L 19.867 12.294 C 21.558 12.294 22.929 13.665 22.929 15.356 C 22.929 17.048 21.558 18.419 19.867 18.419 L 18.992 18.419\" fill=\"transparent\" stroke-width=\"1.75\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M 11.117 15.794 L 13.742 13.169 L 16.367 15.794 M 13.742 13.169 L 13.742 21.044\" fill=\"transparent\" stroke-width=\"1.75\" stroke=\"white\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M 0.6 5.85 C 0.6 2.951 2.951 0.6 5.85 0.6 L 22.15 0.6 C 25.049 0.6 27.4 2.951 27.4 5.85 L 27.4 22.15 C 27.4 25.049 25.049 27.4 22.15 27.4 L 5.85 27.4 C 2.951 27.4 0.6 25.049 0.6 22.15 Z\" fill=\"transparent\" stroke-width=\"1.2\" stroke=\"white\"></path></svg>`)}')`})),isUploading?props.uploadingText.replace(\"[FileName]\",fileName):fileName.length?fileName:props.text.replace(\"##\",maxSizeMB.toString()),xButton&&fileName&&/*#__PURE__*/_jsx(motion.button,{onClick:e=>{e.preventDefault();clearFile();},style:{position:\"absolute\",background:xButton.background||\"none\",padding:xButton.padding,borderRadius:xButton.radius,border:\"none\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...getXButtonPosition(xButton.location,xButton.inset)},children:/*#__PURE__*/_jsx(Icon,{...xButton,defaultImage:`url('data:image/svg+xml,${encodeURIComponent(`<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 4L4 12M4 4L12 12\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>`)}')`})}),border&&/*#__PURE__*/_jsx(Border,{...border}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`#${id} input:focus { outline: none; }`}})]});}FileUploadInput.displayName=\"File Upload Input\";addPropertyControls(FileUploadInput,{userId:{type:ControlType.String,defaultValue:\"\",placeholder:\"FramerForms User ID\",title:\"User ID\",preventLocalization:true,hidden:props=>true},name:{type:ControlType.String,defaultValue:\"File\",preventLocalization:true},required:{type:ControlType.Boolean,defaultValue:false},autoFocus:{type:ControlType.Boolean,defaultValue:false,title:\"Auto-Focus\"},fileTypes:{type:ControlType.Enum,defaultValue:\"all\",options:[\"all\",\"audio\",\"video\",\"image\",\"custom\"],optionTitles:[\"Any File\",\"Any Audio File\",\"Any Video File\",\"Any Image File\",\"Custom\"]},fileTypesCustom:{type:ControlType.Array,defaultValue:[\".pdf\"],control:{type:ControlType.String,placeholder:\".pdf\",preventLocalization:true},title:\" \",hidden:props=>props.fileTypes!==\"custom\"},maxSizeMB:{type:ControlType.Number,defaultValue:25,min:1,step:1,max:25,unit:\" MB\",title:\"Max Size\"},text:{type:ControlType.String,defaultValue:`Click to upload file or drag-and-drop. Max ## MB`,description:\"*##* → max size in MB\"},uploadingText:{type:ControlType.String,defaultValue:\"Uploading [FileName]...\",description:\"*[FileName]* → file name\"},layout:{type:ControlType.Object,controls:{direction:{type:ControlType.Enum,defaultValue:\"vertical\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal\",\"Vertical\"],optionIcons:[\"direction-horizontal\",\"direction-vertical\"],displaySegmentedControl:true},alignH:{type:ControlType.Enum,defaultValue:\"center\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,title:\"Align\"},gap:{type:ControlType.Number,defaultValue:12,min:0,step:1}}},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.2}},color:{type:ControlType.Color,defaultValue:\"#999999\",title:\"Color\"},fill:fillProp({}),radius:{type:ControlType.BorderRadius,defaultValue:\"10px\"},padding:{type:ControlType.Padding,defaultValue:\"12px\"},icon:iconProp({size:28,controls:{location:{type:ControlType.Enum,options:[\"start\",\"end\"],optionTitles:[\"Start\",\"End\"],displaySegmentedControl:true},spinner:{type:ControlType.Boolean,description:\"Show a loading spinner while file is uploading\"}}}),xButton:iconProp({size:14,buttonTitle:\"Options\",controls:{location:{type:ControlType.Enum,defaultValue:\"topRight\",options:[\"topLeft\",\"topRight\",\"centerLeft\",\"centerRight\",\"bottomLeft\",\"bottomRight\"],optionTitles:[\"Top Left\",\"Top Right\",\"Center Left\",\"Center Right\",\"Bottom Left\",\"Bottom Right\"]},inset:{type:ControlType.Number,defaultValue:4,min:0,step:1},background:{type:ControlType.Color,optional:true},padding:{type:ControlType.Padding,defaultValue:\"4px\"},radius:{type:ControlType.BorderRadius,defaultValue:\"12px\"}}}),imagePreview:{type:ControlType.Object,optional:true,defaultValue:{height:40,aspectRatio:\"auto\"},controls:{height:{type:ControlType.Number,defaultValue:40,min:0,step:1},aspectRatio:{type:ControlType.Enum,defaultValue:\"auto\",options:[\"auto\",\"square\"],optionTitles:[\"Auto\",\"Square\"],displaySegmentedControl:true},radius:{type:ControlType.BorderRadius,defaultValue:\"5px\"},border:borderProp({focus:false,invalid:false,defaultValue:false}),shadows:{type:ControlType.BoxShadow}},hidden:props=>props.fileTypes===\"audio\"||props.fileTypes===\"video\"},border:borderProp({}),shadows:{type:ControlType.Object,buttonTitle:\"Shadows\",optional:true,controls:{default:{type:ControlType.BoxShadow},focus:{type:ControlType.BoxShadow}}},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"},transition:{type:ControlType.Transition,defaultValue:{type:false}},focusEvent:{type:ControlType.EventHandler,title:\"Focus\"},blurEvent:{type:ControlType.EventHandler,title:\"Blur\"},invalidEvent:{type:ControlType.EventHandler,title:\"Invalid\"}});function uploadFile(file){return new Promise((resolve,reject)=>{fetchPresignedURL(file).then(({presignedUrl})=>postToPresignedURL(file,presignedUrl)).then(resolve).catch(reject);});}function fetchPresignedURL(file){return fetch(PRESIGNED_URL_API,{method:\"POST\",body:JSON.stringify({file_name:file.name?.replace(/\\s+/g,\"-\")}),headers:{\"Content-Type\":\"application/json\"}}).then(async response=>{const responseBody=await response.json();if(response.status>200){throw new Error(responseBody.errorMessage);}return responseBody;});}function postToPresignedURL(file,presignedUrl){return new Promise((resolve,reject)=>{fetch(presignedUrl,{method:\"PUT\",body:file}).then(()=>resolve({fileLocation:removeURLParameters(presignedUrl)})).catch(reject);});}function removeURLParameters(urlString){const url=new URL(urlString);url.search=\"\";return url.toString();}function getXButtonPosition(location,inset){switch(location){case\"topLeft\":return{top:inset,left:inset};case\"topRight\":return{top:inset,right:inset};case\"centerLeft\":return{top:\"50%\",left:inset,transform:\"translateY(-50%)\"};case\"centerRight\":return{top:\"50%\",right:inset,transform:\"translateY(-50%)\"};case\"bottomLeft\":return{bottom:inset,left:inset};case\"bottomRight\":return{bottom:inset,right:inset};default:return{top:inset,right:inset}// Default to topRight\n;}}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FileUploadInput\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FileUploadInput.map"],"mappings":"olBAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,aAAW,oBAAkB,EAAW,CAAC,EAAmB,GAAuB,GAAuB,CAAM,CAAC,EAAS,GAAaE,EAAS,KAAK,CAAO,EAAIC,EAAO,KAAK,CAAqzB,OAApzB,MAAc,CAAC,EAAY,EAAY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