1import{supabase as i}from"./client-BUtzQiPq.js";async function f(e){const s=e.idempotencyKey??`${e.formName}-${crypto.randomUUID()}`,{data:a,error:o}=await i.functions.invoke("send-transactional-email",{body:{templateName:"form-submission",idempotencyKey:s,replyTo:e.replyTo,templateData:{formName:e.formName,submittedAt:new Date().toLocaleString(),fields:e.fields}}});if(o)throw o;return a}function m(e,s={}){const a=[],o=new Map;for(const[t,n]of e.entries()){if(t.startsWith("_")||t==="g-recaptcha-response"||typeof n!="string")continue;const r=o.get(t)??[];r.push(n),o.set(t,r)}for(const[t,n]of o)a.push({label:s[t]??t.replace(/_/g," ").replace(/\b\w/g,r=>r.toUpperCase()),value:n.join(", ")});return a}export{m as formDataToFields,f as submitFormToStaff};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.