{"version":3,"file":"OfferteForm.DoXepFxe.mjs","names":["css","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","sharedStyle.className","sharedStyle1.className","className","RichText","sharedStyle.css","sharedStyle1.css","sharedStyle.fonts","sharedStyle1.fonts","useRef","useState","startTransition","useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/eh4RxqSbpDB9246uwQio/3mpDnCGhcqKgdrMWdCm4/KON3scXRc.js","https:/framerusercontent.com/modules/jKC1U0jj1AMoUKd8jHCD/EEgOL5OvBZx4ayzApVxg/lCGMCj6xC.js","https:/framerusercontent.com/modules/93HWoHfiinZFAbEPu4Lx/FlUKEEzlAJePrW0hux7i/OfferteForm.js"],"sourcesContent":["// Generated by Framer (27b79d7)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Bebas Neue-regular\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Bebas Neue\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Bebas Neue\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/AWXLDXTI2CYJ5SHK74YUPGPFS5S5BWLL/M6ZJD4UOFNT4DPUXGTK7T46JZ3W3QW64/2TXZKBJMJVP3NQX7K7MGJDQFMD4ZMJR7.woff2\",weight:\"400\"}]}];export const css=['.framer-4larR .framer-styles-preset-1wn65za:not(.rich-text-wrapper), .framer-4larR .framer-styles-preset-1wn65za.rich-text-wrapper h6 { --framer-font-family: \"Bebas Neue\", \"Bebas Neue Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-d64c4bce-7244-4149-a28c-d0bfded27557, #f2f2f2); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; }'];export const className=\"framer-4larR\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (e85a4e6)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import*as sharedStyle1 from\"https://framerusercontent.com/modules/dIH4WMAlq0NnskF0O5pz/JOuDkZrwPrX2es0KlBk7/j6ymU06N6.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/eh4RxqSbpDB9246uwQio/3mpDnCGhcqKgdrMWdCm4/KON3scXRc.js\";const cycleOrder=[\"Dm3q8_KGI\",\"i3ioKo_fO\"];const serializationHash=\"framer-UA9z5\";const variantClassNames={Dm3q8_KGI:\"framer-v-1qbogf6\",i3ioKo_fO:\"framer-v-wwnr2b\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const WJxND7OJA=undefined;const QV6py4SPF=undefined;const lbpNzvBAV=undefined;const numberToPixelString=value=>{if(typeof value!==\"number\")return value;if(!Number.isFinite(value))return undefined;return Math.max(0,value)+\"px\";};const transition1={delay:0,duration:.4,ease:[.44,0,.56,1],type:\"tween\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Default:\"Dm3q8_KGI\",Fit:\"i3ioKo_fO\"};const Variants=motion.create(React.Fragment);const getProps=({gap,height,id,listContent,number,width,...props})=>{return{...props,lbpNzvBAV:listContent??props.lbpNzvBAV??\"Contactless Washing\",QV6py4SPF:number??props.QV6py4SPF??\"1\",variant:humanReadableVariantMap[props.variant]??props.variant??\"Dm3q8_KGI\",WJxND7OJA:gap??props.WJxND7OJA??20};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,QV6py4SPF,lbpNzvBAV,WJxND7OJA,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Dm3q8_KGI\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className,sharedStyle1.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1qbogf6\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"Dm3q8_KGI\",ref:refBinding,style:{\"--1col15o\":numberToPixelString(WJxND7OJA),...style},...addPropertyOverrides({i3ioKo_fO:{\"data-framer-name\":\"Fit\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-1qerm72\",\"data-framer-name\":\"Circle Block\",layoutDependency:layoutDependency,layoutId:\"k_ysY4Nti\",style:{backgroundColor:\"var(--token-d2dcbd10-ca3c-4ac7-9951-5c06152a7eba, rgb(225, 47, 47))\",borderBottomLeftRadius:\"100%\",borderBottomRightRadius:\"100%\",borderTopLeftRadius:\"100%\",borderTopRightRadius:\"100%\"},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h6,{className:\"framer-styles-preset-1wn65za\",\"data-styles-preset\":\"KON3scXRc\",style:{\"--framer-text-color\":\"var(--extracted-1w1cjl5, var(--token-3b877e95-47f3-4ff8-bea2-b045083338a9, rgb(255, 255, 255)))\"},children:\"1\"})}),className:\"framer-u4nfxk\",\"data-framer-name\":\"Number\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"cWWTLHFgF\",style:{\"--extracted-1w1cjl5\":\"var(--token-3b877e95-47f3-4ff8-bea2-b045083338a9, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:QV6py4SPF,verticalAlignment:\"top\",withExternalLayout:true})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-o30eh5\",\"data-styles-preset\":\"j6ymU06N6\",dir:\"auto\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-8c3742ea-ff1b-4f28-9651-25f747d0e64c, rgb(10, 10, 10)))\"},children:\"Contactless Washing\"})}),className:\"framer-ox37ak\",\"data-framer-name\":\"List Content\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"kDvA9bySZ\",style:{\"--extracted-r6o4lv\":\"var(--token-8c3742ea-ff1b-4f28-9651-25f747d0e64c, rgb(10, 10, 10))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:lbpNzvBAV,verticalAlignment:\"top\",withExternalLayout:true})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-UA9z5.framer-13b98vz, .framer-UA9z5 .framer-13b98vz { display: block; }\",\".framer-UA9z5.framer-1qbogf6 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: var(--1col15o); height: min-content; justify-content: flex-start; overflow: visible; padding: 0px; position: relative; width: 430px; }\",\".framer-UA9z5 .framer-1qerm72 { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 30px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 30px; }\",\".framer-UA9z5 .framer-u4nfxk { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-UA9z5 .framer-ox37ak { flex: 1 0 0px; height: auto; position: relative; white-space: pre-wrap; width: 1px; word-break: break-word; word-wrap: break-word; }\",\".framer-UA9z5.framer-v-wwnr2b.framer-1qbogf6 { width: min-content; }\",\".framer-UA9z5.framer-v-wwnr2b .framer-ox37ak { flex: none; white-space: pre; width: auto; }\",...sharedStyle.css,...sharedStyle1.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 30\n * @framerIntrinsicWidth 430\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"i3ioKo_fO\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"QV6py4SPF\":\"number\",\"lbpNzvBAV\":\"listContent\",\"WJxND7OJA\":\"gap\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerlCGMCj6xC=withCSS(Component,css,\"framer-UA9z5\");export default FramerlCGMCj6xC;FramerlCGMCj6xC.displayName=\"List Item With Numbers\";FramerlCGMCj6xC.defaultProps={height:30,width:430};addPropertyControls(FramerlCGMCj6xC,{variant:{options:[\"Dm3q8_KGI\",\"i3ioKo_fO\"],optionTitles:[\"Default\",\"Fit\"],title:\"Variant\",type:ControlType.Enum},QV6py4SPF:{defaultValue:\"1\",displayTextArea:false,title:\"Number\",type:ControlType.String},onQV6py4SPFChange:{changes:\"QV6py4SPF\",type:ControlType.ChangeHandler},lbpNzvBAV:{defaultValue:\"Contactless Washing\",displayTextArea:true,title:\"List Content\",type:ControlType.String},onlbpNzvBAVChange:{changes:\"lbpNzvBAV\",type:ControlType.ChangeHandler},WJxND7OJA:{defaultValue:20,min:0,title:\"Gap\",type:ControlType.Number},onWJxND7OJAChange:{changes:\"WJxND7OJA\",type:ControlType.ChangeHandler}});addFonts(FramerlCGMCj6xC,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts),...getFontsFromSharedStyle(sharedStyle1.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerlCGMCj6xC\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"30\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"i3ioKo_fO\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerVariables\":\"{\\\"QV6py4SPF\\\":\\\"number\\\",\\\"lbpNzvBAV\\\":\\\"listContent\\\",\\\"WJxND7OJA\\\":\\\"gap\\\"}\",\"framerDisplayContentsDiv\":\"false\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"430\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./lCGMCj6xC.map","// Werkend offerte-formulier voor Clay Automotive (/offerte-pagina).\n// Gevraagd: de offerte-pagina moet écht werken, met bijlage-mogelijkheid voor\n// foto's van de auto. Het formulier leest automatisch de complete \"Add to Car\"\n// selectie (localStorage \"clay-car\") en verstuurt contactgegevens + service-\n// lijst + subtotaal + foto's als multipart POST naar een Make.com webhook.\n// Foto's worden client-side verkleind (max 1600px, JPEG) zodat de upload snel\n// blijft en binnen de webhook-limiet past. Na succes wordt de Car geleegd.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useRef,useCallback,startTransition}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const STORAGE_KEY=\"clay-car\";const UPDATE_EVENT=\"clay-car-updated\";function readCar(){if(typeof window===\"undefined\")return[];try{const raw=window.localStorage.getItem(STORAGE_KEY);const parsed=raw?JSON.parse(raw):[];return Array.isArray(parsed)?parsed:[];}catch{return[];}}function clearCar(){if(typeof window===\"undefined\")return;try{window.localStorage.setItem(STORAGE_KEY,\"[]\");window.dispatchEvent(new CustomEvent(UPDATE_EVENT));}catch{}}function formatPrice(n){return\"€\"+n.toLocaleString(\"nl-NL\");}// Verkleint een foto naar max 1600px en comprimeert naar JPEG zodat\n// meerdere foto's samen binnen de Make webhook-limiet blijven.\nasync function compressImage(file){try{const bitmap=await createImageBitmap(file);const maxDim=1600;const scale=Math.min(1,maxDim/Math.max(bitmap.width,bitmap.height));const w=Math.round(bitmap.width*scale);const h=Math.round(bitmap.height*scale);const canvas=document.createElement(\"canvas\");canvas.width=w;canvas.height=h;const ctx=canvas.getContext(\"2d\");if(!ctx)return file;ctx.drawImage(bitmap,0,0,w,h);return await new Promise(resolve=>canvas.toBlob(blob=>resolve(blob??file),\"image/jpeg\",.8));}catch{// HEIC of ander formaat dat de browser niet kan decoderen:\n// stuur het originele bestand mee\nreturn file;}}const css=`\n.clay-form-input {\n    width: 100%;\n    padding: 14px 16px;\n    background-color: rgb(11, 11, 13);\n    border: 1px solid rgba(255, 255, 255, 0.08);\n    border-radius: 10px;\n    color: rgb(255, 255, 255);\n    font-family: Inter, sans-serif;\n    font-size: 15px;\n    line-height: 1.4em;\n    outline: none;\n    transition: border-color 0.2s ease;\n    box-sizing: border-box;\n}\n.clay-form-input:focus {\n    border-color: rgb(122, 28, 36);\n}\n.clay-form-input::placeholder {\n    color: rgba(154, 154, 154, 0.6);\n}\n.clay-form-label {\n    font-family: \"Bebas Neue\", \"Anton\", sans-serif;\n    font-size: 15px;\n    letter-spacing: 0.06em;\n    text-transform: uppercase;\n    color: rgb(154, 154, 154);\n}\n.clay-form-submit {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    gap: 10px;\n    width: 100%;\n    padding: 18px 28px;\n    background-color: rgb(122, 28, 36);\n    color: rgb(255, 255, 255);\n    border: 2px solid rgb(94, 20, 26);\n    border-radius: 12px;\n    cursor: pointer;\n    font-family: \"Bebas Neue\", \"Anton\", sans-serif;\n    font-size: 18px;\n    letter-spacing: 0.05em;\n    text-transform: uppercase;\n    transition: filter 0.2s ease, transform 0.15s ease, opacity 0.2s ease;\n}\n.clay-form-submit:hover:not(:disabled) {\n    filter: brightness(1.18);\n    transform: translateY(-1px);\n}\n.clay-form-submit:disabled {\n    opacity: 0.5;\n    cursor: not-allowed;\n}\n.clay-form-upload {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: center;\n    gap: 6px;\n    width: 100%;\n    padding: 22px;\n    background-color: rgb(11, 11, 13);\n    border: 1px dashed rgba(255, 255, 255, 0.16);\n    border-radius: 10px;\n    color: rgb(154, 154, 154);\n    cursor: pointer;\n    font-family: Inter, sans-serif;\n    font-size: 14px;\n    text-align: center;\n    transition: border-color 0.2s ease, background-color 0.2s ease;\n}\n.clay-form-upload:hover {\n    border-color: rgb(122, 28, 36);\n    background-color: rgba(122, 28, 36, 0.06);\n}\n.clay-form-thumb {\n    position: relative;\n    width: 72px;\n    height: 72px;\n    border-radius: 8px;\n    overflow: hidden;\n    border: 1px solid rgba(255, 255, 255, 0.12);\n}\n.clay-form-thumb img {\n    width: 100%;\n    height: 100%;\n    object-fit: cover;\n    display: block;\n}\n.clay-form-thumb button {\n    position: absolute;\n    top: 2px;\n    right: 2px;\n    width: 20px;\n    height: 20px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: rgba(0, 0, 0, 0.7);\n    color: white;\n    border: none;\n    border-radius: 50%;\n    cursor: pointer;\n    font-size: 12px;\n    line-height: 1;\n    padding: 0;\n}\n`;/**\n * Offerte Form\n *\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 720\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function OfferteForm(props){const{webhookUrl,maxPhotos,submitLabel,successTitle,successText,accentColor,textColor,mutedColor,style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const fileInputRef=useRef(null);const[naam,setNaam]=useState(\"\");const[email,setEmail]=useState(\"\");const[telefoon,setTelefoon]=useState(\"\");const[auto,setAuto]=useState(\"\");const[bericht,setBericht]=useState(\"\");const[honeypot,setHoneypot]=useState(\"\");const[photos,setPhotos]=useState([]);const[previews,setPreviews]=useState([]);const[status,setStatus]=useState(\"idle\");const[errorMsg,setErrorMsg]=useState(\"\");const[cart,setCart]=useState([]);useEffect(()=>{const update=()=>startTransition(()=>setCart(readCar()));update();if(typeof window===\"undefined\")return;window.addEventListener(UPDATE_EVENT,update);window.addEventListener(\"storage\",update);return()=>{window.removeEventListener(UPDATE_EVENT,update);window.removeEventListener(\"storage\",update);};},[]);// Object-URLs voor thumbnails opruimen bij unmount\nuseEffect(()=>{return()=>{previews.forEach(url=>URL.revokeObjectURL(url));};},[previews]);const addPhotos=useCallback(files=>{if(!files)return;const incoming=Array.from(files).filter(f=>f.type.startsWith(\"image/\"));startTransition(()=>{setPhotos(prev=>[...prev,...incoming].slice(0,maxPhotos||6));setPreviews(prev=>{const room=(maxPhotos||6)-prev.length;const urls=incoming.slice(0,Math.max(0,room)).map(f=>URL.createObjectURL(f));return[...prev,...urls].slice(0,maxPhotos||6);});});},[maxPhotos]);const removePhoto=useCallback(index=>{startTransition(()=>{setPhotos(prev=>prev.filter((_,i)=>i!==index));setPreviews(prev=>{const url=prev[index];if(url)URL.revokeObjectURL(url);return prev.filter((_,i)=>i!==index);});});},[]);const subtotal=cart.reduce((sum,i)=>sum+(i.price||0),0);const emailValid=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);const canSubmit=naam.trim().length>1&&emailValid&&!!webhookUrl&&status!==\"sending\";const handleSubmit=useCallback(async()=>{if(!canSubmit)return;if(honeypot)return;// spam bot\nstartTransition(()=>{setStatus(\"sending\");setErrorMsg(\"\");});try{const fd=new FormData;fd.append(\"naam\",naam.trim());fd.append(\"email\",email.trim());fd.append(\"telefoon\",telefoon.trim());fd.append(\"auto\",auto.trim());fd.append(\"bericht\",bericht.trim());const items=readCar();fd.append(\"services_tekst\",items.length?items.map(i=>`${i.name} — ${formatPrice(i.price)}`).join(\"\\n\"):\"Geen services geselecteerd\");fd.append(\"services_json\",JSON.stringify(items));fd.append(\"aantal_services\",String(items.length));fd.append(\"subtotaal\",formatPrice(items.reduce((s,i)=>s+(i.price||0),0)));fd.append(\"bron\",\"offerte-pagina\");fd.append(\"datum\",new Date().toISOString());// Alle foto's onder één veldnaam \"fotos\" versturen. Make ontvangt\n// ze dan als één array (fotos[]) met behoud van de binary, i.p.v.\n// losse velden foto_1, foto_2, ... (die Make niet netjes als\n// bijlage-array kan doorlopen).\nfor(let i=0;i<photos.length;i++){const compressed=await compressImage(photos[i]);fd.append(\"fotos\",compressed,`foto_${i+1}.jpg`);}const res=await fetch(webhookUrl,{method:\"POST\",body:fd});if(!res.ok)throw new Error(`Status ${res.status}`);clearCar();startTransition(()=>setStatus(\"success\"));}catch(e){startTransition(()=>{setStatus(\"error\");setErrorMsg(\"Versturen is niet gelukt. Probeer het opnieuw of mail ons direct.\");});}},[canSubmit,honeypot,naam,email,telefoon,auto,bericht,photos,webhookUrl]);const headingFont={fontFamily:'\"Bebas Neue\", \"Anton\", sans-serif',textTransform:\"uppercase\",letterSpacing:\"0.03em\"};const bodyFont={fontFamily:\"Inter, sans-serif\"};if(status===\"success\"){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:14,width:\"100%\",padding:\"60px 30px\",textAlign:\"center\",...style},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:64,height:64,borderRadius:999,backgroundColor:accentColor},children:/*#__PURE__*/_jsx(\"svg\",{width:\"30\",height:\"30\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12.5l4.5 4.5L19 7.5\",stroke:\"white\",strokeWidth:\"2.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(\"h3\",{style:{...headingFont,margin:0,fontSize:30,color:textColor},children:successTitle}),/*#__PURE__*/_jsx(\"p\",{style:{...bodyFont,margin:0,fontSize:15,lineHeight:\"1.6em\",color:mutedColor,maxWidth:380},children:successText})]});}return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",gap:18,width:\"100%\",...style},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),isCanvas&&!webhookUrl&&/*#__PURE__*/_jsx(\"div\",{style:{...bodyFont,padding:\"10px 14px\",borderRadius:8,backgroundColor:\"rgba(122, 28, 36, 0.15)\",border:`1px solid ${accentColor}`,color:textColor,fontSize:13},children:'⚠ Plak je Make.com webhook-URL in het property-paneel (veld \"Webhook URL\") om het formulier te activeren.'}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:14,flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsxs(\"label\",{style:{flex:\"1 1 220px\",display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"span\",{className:\"clay-form-label\",children:\"Naam*\"}),/*#__PURE__*/_jsx(\"input\",{className:\"clay-form-input\",type:\"text\",value:naam,placeholder:\"Je volledige naam\",onChange:e=>startTransition(()=>setNaam(e.target.value))})]}),/*#__PURE__*/_jsxs(\"label\",{style:{flex:\"1 1 220px\",display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"span\",{className:\"clay-form-label\",children:\"E-mail*\"}),/*#__PURE__*/_jsx(\"input\",{className:\"clay-form-input\",type:\"email\",value:email,placeholder:\"naam@voorbeeld.nl\",onChange:e=>startTransition(()=>setEmail(e.target.value))})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:14,flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsxs(\"label\",{style:{flex:\"1 1 220px\",display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"span\",{className:\"clay-form-label\",children:\"Telefoon\"}),/*#__PURE__*/_jsx(\"input\",{className:\"clay-form-input\",type:\"tel\",value:telefoon,placeholder:\"06 12345678\",onChange:e=>startTransition(()=>setTelefoon(e.target.value))})]}),/*#__PURE__*/_jsxs(\"label\",{style:{flex:\"1 1 220px\",display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"span\",{className:\"clay-form-label\",children:\"Auto (merk + model)\"}),/*#__PURE__*/_jsx(\"input\",{className:\"clay-form-input\",type:\"text\",value:auto,placeholder:\"bijv. BMW M4 2021\",onChange:e=>startTransition(()=>setAuto(e.target.value))})]})]}),/*#__PURE__*/_jsxs(\"label\",{style:{display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"span\",{className:\"clay-form-label\",children:\"Bericht\"}),/*#__PURE__*/_jsx(\"textarea\",{className:\"clay-form-input\",rows:4,value:bericht,placeholder:\"Vertel iets over de staat van je auto, wensen of vragen…\",style:{resize:\"vertical\",minHeight:100},onChange:e=>startTransition(()=>setBericht(e.target.value))})]}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",value:honeypot,onChange:e=>startTransition(()=>setHoneypot(e.target.value)),tabIndex:-1,autoComplete:\"off\",\"aria-hidden\":\"true\",style:{position:\"absolute\",left:-9999,width:1,height:1,opacity:0}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:10},children:[/*#__PURE__*/_jsxs(\"span\",{className:\"clay-form-label\",children:[\"Foto's van je auto (\",photos.length,\"/\",maxPhotos||6,\")\"]}),/*#__PURE__*/_jsx(\"input\",{ref:fileInputRef,type:\"file\",accept:\"image/*\",multiple:true,style:{display:\"none\"},onChange:e=>{addPhotos(e.target.files);e.target.value=\"\";}}),photos.length<(maxPhotos||6)&&/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"clay-form-upload\",onClick:()=>fileInputRef.current?.click(),children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:22,lineHeight:1},children:\"📷\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Klik om foto's toe te voegen — helpt ons een scherpere offerte te maken\"})]}),previews.length>0&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:8,flexWrap:\"wrap\"},children:previews.map((url,i)=>/*#__PURE__*/_jsxs(\"div\",{className:\"clay-form-thumb\",children:[/*#__PURE__*/_jsx(\"img\",{src:url,alt:`Foto ${i+1}`}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"Verwijder foto\",onClick:()=>removePhoto(i),children:\"\\xd7\"})]},url))})]}),/*#__PURE__*/_jsx(\"div\",{style:{...bodyFont,fontSize:13,lineHeight:\"1.5em\",color:mutedColor},children:cart.length>0?/*#__PURE__*/_jsxs(_Fragment,{children:[\"Je selectie (\",cart.length,\" \",cart.length===1?\"service\":\"services\",\", indicatie\",\" \",formatPrice(subtotal),\") wordt automatisch meegestuurd.\"]}):/*#__PURE__*/_jsx(_Fragment,{children:\"Tip: voeg eerst services toe aan je Car — die sturen we automatisch mee met je aanvraag.\"})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"clay-form-submit\",disabled:!canSubmit,onClick:handleSubmit,children:status===\"sending\"?\"Versturen…\":submitLabel}),status===\"error\"&&/*#__PURE__*/_jsx(\"div\",{style:{...bodyFont,fontSize:14,color:\"rgb(220, 90, 90)\"},children:errorMsg}),!webhookUrl&&!isCanvas&&/*#__PURE__*/_jsx(\"div\",{style:{...bodyFont,fontSize:13,color:mutedColor},children:\"Formulier is nog niet geactiveerd.\"})]});}addPropertyControls(OfferteForm,{webhookUrl:{type:ControlType.String,title:\"Webhook URL\",defaultValue:\"https://hook.eu1.make.com/n6lb0tg4i9lf45rtbu9j1an1q8ecfk4m\",placeholder:\"https://hook.eu1.make.com/…\"},maxPhotos:{type:ControlType.Number,title:\"Max foto's\",defaultValue:6,min:1,max:10,step:1,displayStepper:true},submitLabel:{type:ControlType.String,title:\"Knop tekst\",defaultValue:\"Vraag offerte aan\"},successTitle:{type:ControlType.String,title:\"Succes titel\",defaultValue:\"Aanvraag verstuurd!\"},successText:{type:ControlType.String,title:\"Succes tekst\",displayTextArea:true,defaultValue:\"Bedankt voor je aanvraag. We bekijken je selectie en foto's en nemen binnen 24 uur contact met je op met een offerte op maat.\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"rgb(122, 28, 36)\"},textColor:{type:ControlType.Color,title:\"Tekst\",defaultValue:\"rgb(255, 255, 255)\"},mutedColor:{type:ControlType.Color,title:\"Gedempt\",defaultValue:\"rgb(154, 154, 154)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OfferteForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-pref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