{"version":3,"file":"FormFreelanceClientLetterOfIntent.BeHFSB7L.mjs","names":["__exportAll","c","init_jsx_runtime","init_FormDocument","FormDocument","FormFreelanceClientLetterOfIntent_exports","__FramerMetadata__","FormFreelanceClientLetterOfIntent","html","init_FormFreelanceClientLetterOfIntent","__esmMin","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerIntrinsicHeight\"","\"framerIntrinsicWidth\"","\"framerContractVersion\"","\"framerSupportedLayoutWidth\"","\"framerSupportedLayoutHeight\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/YACgvLP9BTGo40YgYhGy/v0S9UQYPL1SUaSlku89B/FormFreelanceClientLetterOfIntent.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import FormDocument from\"https://framerusercontent.com/modules/cOj0w8PZSGGeCXx8tM3v/MmTuIPukUFA5pOvolsIu/FormDocument.js\";const html='<!doctype html>\\n<html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src \\'none\\'; style-src \\'unsafe-inline\\'; script-src \\'unsafe-inline\\'; img-src data: blob:; form-action \\'none\\'; base-uri \\'none\\'\">\\n<title>Client letter of intent for a freelance permit | ExpatEaze</title>\\n<style>\\n:root{color-scheme:dark;--bg:#101113;--panel:#1c1e23;--border:#515963;--text:#fff;--soft:#d1dee7;--accent:#f79256;--focus:#a2bdce}*{box-sizing:border-box}\\nhtml{background:var(--bg)}body{margin:0;color:var(--text);background:var(--bg);font:16px/1.52 Inter,Arial,sans-serif}main{max-width:870px;margin:auto;padding:clamp(18px,4vw,44px)}h1,h2,h3,p{margin:0}h1,h2{font-family:Unbounded,Inter,Arial,sans-serif;letter-spacing:-.025em;line-height:1.18}h1{font-size:clamp(1.65rem,4vw,2.45rem)}h2{font-size:clamp(1.2rem,2.7vw,1.55rem)}header>p,section>p,.hint,.source{color:var(--soft)}header>p,.source,.hint,.field{margin-top:10px}.source a{color:#b8d7e8;text-underline-offset:3px}.source a:hover{text-decoration-thickness:2px}section{padding:clamp(16px,3vw,26px);background:var(--panel);border-radius:16px;margin-top:22px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin-top:6px}.wide{grid-column:1/-1}label{display:block;font-weight:650;margin-bottom:6px}input,select,textarea{min-height:46px;max-width:100%;width:100%;border:1px solid var(--border);border-radius:7px;padding:10px 12px;background:#111317;color:var(--text);font:inherit}textarea{min-height:85px;resize:vertical}select{padding-right:24px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,.preview:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.hint,.source,.optional{font-size:.9rem}.hint{margin-top:4px}.optional{font-weight:400;color:var(--soft)}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}button{font:inherit;font-weight:650;cursor:pointer;min-height:45px;padding:10px 17px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text)}button.primary{border-color:var(--accent);background:var(--accent);color:#171717}button:hover{filter:brightness(1.12)}.preview{color:#17191c;background:#fff;padding:clamp(16px,4vw,36px);border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;margin:15px 0;line-height:1.6;font:normal 1rem/1.55 Inter,Arial,sans-serif}.next{margin-top:13px}.hidden,[hidden]{display:none!important}.source a{overflow-wrap:anywhere}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.notice:not(:empty){margin-top:12px;color:var(--soft)}\\n@media(max-width:640px){.grid{grid-template-columns:1fr}.actions button{flex:1 1 auto}section{border-radius:12px}input,select,textarea{font-size:16px}}\\n@media print{@page{size:A4;margin:22mm}html,body,main,#result{margin:0!important;padding:0!important;background:#fff!important;color:#000!important}main>*:not(#result),#result>*:not(.preview){display:none!important}.preview{background:#fff!important;color:#000!important;margin:0!important;padding:0!important;font:11pt/1.4 Arial,sans-serif;border:0}.preview p{break-inside:avoid}#result[hidden]{display:none!important}}\\n</style></head><body><main>\\n<header><h1>Client letter of intent for a freelance permit</h1><p id=\"description\"></p><p class=\"source\" id=\"sources\"></p></header>\\n<section id=\"entry\"><h2>Prepare your German draft</h2><p class=\"hint\">Your entries stay on this device. Nothing is sent when you create your draft.</p>\\n<form id=\"letterForm\" autocomplete=\"off\"><div id=\"choose\" class=\"field\" hidden><label for=\"situation\">What do you need?</label><select id=\"situation\"></select></div>\\n<p id=\"caseHelp\" class=\"hint\" hidden></p><div class=\"grid\" id=\"fields\"></div><div class=\"actions\"><button type=\"button\" class=\"primary\" id=\"review\">Review German draft</button></div></form></section>\\n<section id=\"result\" hidden><h2 id=\"resultTitle\" tabindex=\"-1\">Review your German draft</h2><p class=\"next\" id=\"next\"></p>\\n<div class=\"preview\" id=\"preview\" lang=\"de\" tabindex=\"0\" role=\"region\" aria-label=\"German draft\"></div>\\n<div class=\"actions\"><button type=\"button\" class=\"primary\" id=\"pdf\">Download German PDF</button><button type=\"button\" id=\"txt\">Download editable text</button><button type=\"button\" id=\"copy\">Copy German text</button><button type=\"button\" id=\"print\">Open printable PDF</button><button type=\"button\" id=\"edit\">Edit answers</button></div><p role=\"status\" class=\"notice\" id=\"notice\"></p></section>\\n<noscript>Enable JavaScript in your browser to create the German document on this device.</noscript></main>\\n<script type=\"application/json\" id=\"definition\">{\"slug\":\"freelance-client-letter-of-intent\",\"category\":\"Immigration\",\"title\":\"Client letter of intent for a freelance permit\",\"summary\":\"Turn a prospective client’s real plans for paid work into a German letter for the client to check and sign.\",\"description\":\"Draft a German client letter of intent for Berlin’s freelance residence permit. Describe the service, expected scope and proposed collaboration.\",\"source\":{\"label\":\"Berlin Immigration Office \\xb7 freelance residence permit\",\"url\":\"https://service.berlin.de/dienstleistung/328332/en/\"},\"next\":\"Ask the prospective client to check the details, sign in their own name and return the letter to the freelancer. For fee-based work Berlin lists fee agreements or at least two letters describing the nature and scope of the planned work.\",\"situations\":[{\"label\":\"A prospective client plans to commission a freelancer\",\"fields\":[{\"key\":\"client\",\"label\":\"Client’s legal name or organisation\",\"type\":\"text\",\"required\":true},{\"key\":\"address\",\"label\":\"Client’s postal address\",\"type\":\"textarea\",\"required\":true},{\"key\":\"signer\",\"label\":\"Name of the person signing for the client\",\"type\":\"text\",\"required\":true},{\"key\":\"date\",\"label\":\"Letter date\",\"type\":\"date\",\"required\":true},{\"key\":\"freelancer\",\"label\":\"Freelancer’s full legal name\",\"type\":\"text\",\"required\":true},{\"key\":\"service\",\"label\":\"Service the client actually expects\",\"type\":\"select\",\"required\":true,\"options\":[{\"label\":\"Interpreting\",\"value\":\"Dolmetschleistungen\"},{\"label\":\"Translation\",\"value\":\"\\xdcbersetzungsleistungen\"},{\"label\":\"Graphic design\",\"value\":\"Grafikdesign\"},{\"label\":\"Software development\",\"value\":\"Softwareentwicklung\"},{\"label\":\"Language teaching\",\"value\":\"Sprachunterricht\"},{\"label\":\"Photography\",\"value\":\"Fotografie\"},{\"label\":\"Music\",\"value\":\"musikalische Leistungen\"},{\"label\":\"Writing\",\"value\":\"schriftstellerische Leistungen\"},{\"label\":\"Architecture\",\"value\":\"Architekturleistungen\"},{\"label\":\"Engineering\",\"value\":\"Ingenieurleistungen\"},{\"label\":\"Other freelance services\",\"value\":\"andere freiberufliche Leistungen\"}]},{\"key\":\"detail\",\"label\":\"Optional project or service detail, in German\",\"type\":\"textarea\",\"required\":false,\"hint\":\"Use project names or German wording as it should appear in the letter.\"},{\"key\":\"start\",\"label\":\"Planned start date\",\"type\":\"date\",\"required\":true},{\"key\":\"quantity\",\"label\":\"Estimated number of units per month\",\"type\":\"number\",\"required\":true,\"min\":0.01,\"step\":\"any\",\"hint\":\"Enter a positive quantity that the client can substantiate.\"},{\"key\":\"unit\",\"label\":\"Type of unit\",\"type\":\"select\",\"required\":true,\"options\":[{\"label\":\"Working hours\",\"value\":\"Arbeitsstunden\"},{\"label\":\"Working days\",\"value\":\"Arbeitstage\"},{\"label\":\"Sessions\",\"value\":\"Termine\"},{\"label\":\"Individual projects\",\"value\":\"Einzelprojekte\"}]},{\"key\":\"email\",\"label\":\"Client contact email\",\"type\":\"email\",\"required\":false}],\"template\":\"{{client}}\\\\n{{address}}\\\\n\\\\n{{date}}\\\\n\\\\nAbsichtserkl\\xe4rung zur geplanten freiberuflichen Zusammenarbeit mit {{freelancer}}\\\\n\\\\nSehr geehrte Damen und Herren,\\\\n\\\\nwir beabsichtigen, {{freelancer}} ab dem {{start}} mit freiberuflichen Leistungen zu beauftragen. Gegenstand der geplanten Zusammenarbeit ist der Bereich {{service}}.\\\\n{{#detail}}\\\\n{{detail}}\\\\n{{/detail}}\\\\nGeplanter monatlicher Umfang ({{unit}}): {{quantity}}.\\\\n\\\\nDiese Erkl\\xe4rung beschreibt unsere derzeitige Planung. Die Einzelheiten der Auftragsvergabe und der Verg\\xfctung werden gesondert vereinbart.\\\\n{{#email}}\\\\nF\\xfcr R\\xfcckfragen erreichen Sie uns unter {{email}}.\\\\n{{/email}}\\\\nMit freundlichen Gr\\xfc\\xdfen\\\\n\\\\n{{signer}}\\\\nf\\xfcr {{client}}\"}]}</script>\\n<script>\\n\"use strict\";\\nconst doc=JSON.parse(document.getElementById(\"definition\").textContent);\\nconst byId=id=>document.getElementById(id);\\nconst form=byId(\"letterForm\"),fieldsRoot=byId(\"fields\"),situation=byId(\"situation\");\\nconst valuesByCase=new Map();let current=0,draft=\"\";\\nfunction writeInfo(node,value){node.textContent=Array.isArray(value)?value.join(\" \"):(value||\"\")}\\nwriteInfo(byId(\"description\"),doc.description||doc.summary);\\nconst sources=[doc.source,...(doc.sources||[])].filter((s,i,a)=>s&&s.url&&a.findIndex(x=>x&&x.url===s.url)===i);\\nsources.forEach((source,i)=>{const link=document.createElement(\"a\");link.href=source.url;link.target=\"_blank\";link.rel=\"noopener noreferrer\";link.textContent=source.label||\"Official instructions\";if(i)byId(\"sources\").append(\" \\xb7 \");byId(\"sources\").append(link)});\\nfunction reportHeight(){if(parent===window)return;const height=Math.ceil(document.querySelector(\"main\").getBoundingClientRect().height);parent.postMessage({type:\"expateaze-form-height\",slug:doc.slug,height},\"*\");parent.postMessage({type:\"expateaze-\"+doc.slug+\"-height\",height},\"*\")}\\nnew ResizeObserver(reportHeight).observe(document.querySelector(\"main\"));window.addEventListener(\"message\",e=>{if(e.source===parent&&(e.data?.type===\"expateaze-form-measure\"||e.data?.type===\"expateaze-\"+doc.slug+\"-measure\"))reportHeight()});\\nfunction valueStore(){return Object.fromEntries(Array.from(fieldsRoot.querySelectorAll(\"[name]\"),el=>[el.name,el.value]))}\\nfunction addOptions(input,options){for(const option of options){const node=document.createElement(\"option\");node.value=option.value;node.textContent=option.label;input.append(node)}}\\nfor(const [index,mode] of doc.situations.entries()){const option=document.createElement(\"option\");option.value=String(index);option.textContent=mode.label;situation.append(option)}\\nbyId(\"choose\").hidden=doc.situations.length<2;\\nfunction renderFields(){\\n const active=doc.situations[current],remembered=valuesByCase.get(current)||{};fieldsRoot.replaceChildren();writeInfo(byId(\"caseHelp\"),active.description||active.hint);byId(\"caseHelp\").hidden=!byId(\"caseHelp\").textContent;\\n for(const field of active.fields){\\n  const wrapper=document.createElement(\"div\");wrapper.className=\"field\"+(field.type===\"textarea\"?\" wide\":\"\");\\n  const label=document.createElement(\"label\");label.htmlFor=\"f-\"+field.key;label.textContent=field.label;\\n  if(field.required===false){const optional=document.createElement(\"span\");optional.className=\"optional\";optional.textContent=\" (optional)\";label.append(optional)}\\n  const input=document.createElement(field.type===\"textarea\"?\"textarea\":field.type===\"select\"?\"select\":\"input\");\\n  if(input.tagName===\"INPUT\"){input.type=field.type||\"text\";if(field.type===\"number\")input.step=field.step||\"any\"}\\n  if(field.type===\"select\")addOptions(input,[{label:\"Choose an option\",value:\"\"},...field.options]);\\n  input.id=label.htmlFor;input.name=field.key;input.required=field.required!==false;\\n  for(const name of [\"pattern\",\"min\",\"max\",\"step\",\"placeholder\"]){if(field[name]!==undefined)input.setAttribute(name,field[name])}\\n  if(input.tagName!==\"SELECT\"&&(input.type===\"text\"||input.type===\"email\"||input.tagName===\"TEXTAREA\"))input.maxLength=field.maxLength||(input.tagName===\"TEXTAREA\"?2400:280);\\n  if(field.hint){const hint=document.createElement(\"p\");hint.className=\"hint\";hint.id=input.id+\"-hint\";hint.textContent=field.hint;input.setAttribute(\"aria-describedby\",hint.id);wrapper.append(label,input,hint)}else wrapper.append(label,input);\\n  input.value=remembered[field.key]??(field.default||\"\");input.addEventListener(\"input\",()=>input.setCustomValidity(\"\"));fieldsRoot.append(wrapper)\\n }\\n}\\nsituation.addEventListener(\"change\",()=>{valuesByCase.set(current,valueStore());current=Number(situation.value);renderFields()});renderFields();\\nfunction translatedValues(raw,fields){\\n const out={};for(const f of fields){let value=(raw[f.key]||\"\").trim();if(value&&f.type===\"date\"){const pieces=value.split(\"-\");value=pieces[2]+\".\"+pieces[1]+\".\"+pieces[0]}if(value&&f.type===\"number\")value=value.replace(\".\",\",\");out[f.key]=value}return out;\\n}\\nfunction compose(template,values){\\n let text=template;const conditional=/{{#([A-Za-z][A-Za-z0-9_]*)}}([\\\\s\\\\S]*?){{\\\\/\\\\1}}/g;\\n for(let n=0;n<8&&text.includes(\"{{#\");n++)text=text.replace(conditional,(_,key,content)=>values[key]?content:\"\");\\n return text.replace(/{{([A-Za-z][A-Za-z0-9_]*)}}/g,(_,key)=>values[key]||\"\").replace(/[ \\\\t]+\\\\n/g,\"\\\\n\").replace(/\\\\n{3,}/g,\"\\\\n\\\\n\").trim()\\n}\\nform.addEventListener(\"submit\",event=>event.preventDefault());\\nform.addEventListener(\"keydown\",event=>{if(event.key===\"Enter\"&&event.target.tagName===\"INPUT\"&&!event.isComposing){event.preventDefault();byId(\"review\").click()}});\\nbyId(\"review\").addEventListener(\"click\",()=>{\\n for(const el of fieldsRoot.querySelectorAll(\"[required]\")){if(!el.value.trim())el.setCustomValidity(\"Please enter a value.\")}if(!form.reportValidity())return;\\n const raw=valueStore(),active=doc.situations[current];valuesByCase.set(current,raw);draft=compose(active.template,translatedValues(raw,active.fields));\\n byId(\"preview\").textContent=draft;writeInfo(byId(\"next\"),active.next||doc.next);byId(\"notice\").textContent=\"\";byId(\"entry\").hidden=true;byId(\"result\").hidden=false;byId(\"resultTitle\").focus();reportHeight()\\n});\\nbyId(\"edit\").addEventListener(\"click\",()=>{byId(\"result\").hidden=true;byId(\"entry\").hidden=false;const first=doc.situations.length>1?situation:fieldsRoot.querySelector(\"input,select,textarea\");first?.focus();reportHeight()});\\nfunction download(blob,name){const url=URL.createObjectURL(blob),a=document.createElement(\"a\");a.href=url;a.download=name;document.body.append(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(url),30000)}\\nbyId(\"txt\").addEventListener(\"click\",()=>{download(new Blob([\"\\\\ufeff\",draft,\"\\\\n\"],{type:\"text/plain;charset=utf-8\"}),doc.slug+\"-de.txt\");byId(\"notice\").textContent=\"Your editable German text is ready to download.\"});\\nbyId(\"copy\").addEventListener(\"click\",async()=>{\\n try{if(!navigator.clipboard?.writeText)throw Error();await navigator.clipboard.writeText(draft);byId(\"notice\").textContent=\"German text copied.\";return}catch{}\\n const selected=window.getSelection(),range=document.createRange();range.selectNodeContents(byId(\"preview\"));selected.removeAllRanges();selected.addRange(range);\\n let ok=false;try{ok=document.execCommand(\"copy\")}catch{}if(ok)selected.removeAllRanges();byId(\"notice\").textContent=ok?\"German text copied.\":\"The German text is selected. Use your browser’s Copy command.\";\\n});\\nconst encoder=new TextEncoder();\\nconst extra1252=new Map(Array.from(\"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\",(c,i)=>[c,[128,130,131,132,133,134,135,136,137,138,139,140,142,145,146,147,148,149,150,151,152,153,154,155,156,158,159][i]]));\\nfunction latinHex(str){let hex=\"\";for(const char of str){const n=char.charCodeAt(0),byte=(n>=32&&n<=126)||(n>=160&&n<=255)?n:extra1252.get(char);if(byte===undefined)return null;hex+=byte.toString(16).padStart(2,\"0\")}return hex}\\nfunction utf16Hex(str){return \"FEFF\"+str.split(\"\").map(c=>c.charCodeAt(0).toString(16).padStart(4,\"0\")).join(\"\")}\\nfunction writePdf(str){\\n const fontSize=11,leading=16,left=56,top=777,pageWidth=595.28,pageHeight=841.89,bottom=60,lineWidth=pageWidth-2*left,scale=96/72;\\n const measure=document.createElement(\"canvas\").getContext(\"2d\");measure.font=(fontSize*scale)+\"px Arial, sans-serif\";\\n const fits=line=>measure.measureText(line).width<=lineWidth*scale-2;const lines=[];\\n for(const input of str.split(\"\\\\n\")){if(!input.trim()){lines.push(\"\");continue}let line=\"\";for(const word of input.trim().split(/\\\\s+/)){\\n  let next=line?line+\" \"+word:word;if(fits(next)){line=next;continue}if(line){lines.push(line);line=\"\"}\\n  if(fits(word)){line=word;continue}for(const glyph of Array.from(word)){if(line&&!fits(line+glyph)){lines.push(line);line=\"\"}line+=glyph}\\n }if(line)lines.push(line)}\\n const blocks=[null,null,null,null];const add=b=>{blocks.push(b);return blocks.length-1};const ascii=s=>encoder.encode(s);\\n const stream=(data,options=\"\")=>[ascii(\"<< /Length \"+data.length+\" \"+options+\" >>\\\\nstream\\\\n\"),data,ascii(\"\\\\nendstream\")];\\n const pages=[];let i=0;\\n while(i<lines.length){\\n  const slice=lines.slice(i,i+Math.floor((top-bottom)/leading)+1);i+=slice.length;const images=[],cmds=[];\\n  slice.forEach((line,k)=>{if(!line)return;const y=top-k*leading,hex=latinHex(line);if(hex!==null){cmds.push(\"BT /F1 \"+fontSize+\" Tf 1 0 0 1 \"+left+\" \"+y+\" Tm <\"+hex+\"> Tj ET\");return}\\n   const ratio=3,wpx=Math.ceil(lineWidth*ratio),hpx=Math.ceil(leading*ratio),canvas=document.createElement(\"canvas\");canvas.width=wpx;canvas.height=hpx;\\n   const c=canvas.getContext(\"2d\");c.fillStyle=\"#fff\";c.fillRect(0,0,wpx,hpx);c.fillStyle=\"#111\";c.font=(fontSize*ratio)+\"px Arial, sans-serif\";c.textBaseline=\"alphabetic\";c.fillText(line,0,12*ratio);\\n   const raw=atob(canvas.toDataURL(\"image/jpeg\",.94).split(\",\")[1]),data=Uint8Array.from(raw,c=>c.charCodeAt(0));const idx=add(stream(data,\"/Type /XObject /Subtype /Image /Width \"+wpx+\" /Height \"+hpx+\" /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode\"));const alias=\"I\"+images.length;images.push(\"/\"+alias+\" \"+idx+\" 0 R\");\\n   cmds.push(\"/Span << /ActualText <\"+utf16Hex(line)+\"> >> BDC q \"+lineWidth+\" 0 0 \"+leading+\" \"+left+\" \"+(y-4)+\" cm /\"+alias+\" Do Q EMC\")\\n  });\\n  const content=add(stream(ascii(cmds.join(\"\\\\n\"))));const resource=\"<< /Font << /F1 3 0 R >> /XObject << \"+images.join(\" \")+\" >> >>\";\\n  const page=add([ascii(\"<< /Type /Page /Parent 2 0 R /MediaBox [0 0 \"+pageWidth+\" \"+pageHeight+\"] /Resources \"+resource+\" /Contents \"+content+\" 0 R >>\")]);pages.push(page)\\n }\\n blocks[1]=[ascii(\"<< /Type /Catalog /Pages 2 0 R >>\")];blocks[2]=[ascii(\"<< /Type /Pages /Count \"+pages.length+\" /Kids [\"+pages.map(id=>id+\" 0 R\").join(\" \")+\"] >>\")];\\n blocks[3]=[ascii(\"<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>\")];\\n const chunks=[],offsets=[0];let offset=0;function put(chunk){chunks.push(chunk);offset+=chunk.length}put(ascii(\"%PDF-1.4\\\\n\"));put(Uint8Array.of(37,226,227,207,211,10));\\n for(let idx=1;idx<blocks.length;idx++){offsets.push(offset);put(ascii(idx+\" 0 obj\\\\n\"));for(const data of blocks[idx])put(data);put(ascii(\"\\\\nendobj\\\\n\"))}\\n const xref=offset;put(ascii(\"xref\\\\n0 \"+blocks.length+\"\\\\n0000000000 65535 f \\\\n\"+offsets.slice(1).map(v=>String(v).padStart(10,\"0\")+\" 00000 n \\\\n\").join(\"\")+\"trailer\\\\n<< /Size \"+blocks.length+\" /Root 1 0 R >>\\\\nstartxref\\\\n\"+xref+\"\\\\n%%EOF\\\\n\"));\\n return new Blob(chunks,{type:\"application/pdf\"})\\n}\\nbyId(\"pdf\").addEventListener(\"click\",()=>{download(writePdf(draft),doc.slug+\"-de.pdf\");byId(\"notice\").textContent=\"Your German PDF is ready to download.\"});\\nbyId(\"print\").addEventListener(\"click\",()=>{\\n const url=URL.createObjectURL(writePdf(draft));const a=document.createElement(\"a\");a.href=url;a.target=\"_blank\";a.rel=\"noopener\";document.body.append(a);a.click();a.remove();byId(\"notice\").textContent=\"Open your PDF viewer’s Print command. If the viewer did not open, choose Download German PDF.\";\\n setTimeout(()=>URL.revokeObjectURL(url),300000)\\n});\\n</script><script>(function(){\\nvar queued=false,last=-1;\\nfunction measure(){queued=false;var main=document.querySelector(\\'main\\');if(!main)return;\\nvar s=getComputedStyle(document.body),h=Math.ceil(main.getBoundingClientRect().bottom+window.scrollY+(parseFloat(s.paddingBottom)||0)+(parseFloat(s.marginBottom)||0));\\nif(h>30&&h!==last){last=h;parent.postMessage({type:\"expateaze-document-height\",height:h},\"*\");}}\\nfunction queue(){if(!queued){queued=true;requestAnimationFrame(measure);}}\\naddEventListener(\"message\",function(e){if(e.source===parent&&e.data&&e.data.type===\"expateaze-document-measure\"){last=-1;queue();}});\\naddEventListener(\"keydown\",function(e){if(e.key===\"Escape\"&&!e.defaultPrevented){parent.postMessage({type:\"expateaze-document-escape\"},\"*\");}});\\nfunction boot(){var m=document.querySelector(\\'main\\');if(m&&window.ResizeObserver)new ResizeObserver(queue).observe(m);queue();}\\nif(document.readyState===\"loading\")addEventListener(\"DOMContentLoaded\",boot,{once:true});else boot();\\n})();</script></body></html>\\n';/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 720\n * @framerIntrinsicHeight 680\n */export default function FormFreelanceClientLetterOfIntent({style}){return /*#__PURE__*/_jsx(FormDocument,{slug:\"freelance-client-letter-of-intent\",title:\"Client letter of intent for a freelance permit\",html:html,style:style});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormFreelanceClientLetterOfIntent\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"680\",\"framerIntrinsicWidth\":\"720\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormFreelanceClientLetterOfIntent.map"],"mappings":"A,yNAKG,SAAwBO,EAAkC,CAAC,SAAO,CAAC,MAAoB,gBAAKH,EAAa,CAAC,KAAK,oCAAoC,MAAM,iDAAsD,OAAW,OAAK,CAAC,CAAE,C,8CAL1D,EAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMnK,EAAqB,CAACO,QAAU,CAACC,QAAU,CAACC,KAAO,iBAAiBC,KAAO,oCAAoCC,MAAQ,CAAC,EAAEC,YAAc,CAACC,sBAAwB,MAAMC,qBAAuB,MAAMC,sBAAwB,IAAIC,2BAA6B,mBAAmBC,4BAA8B,MAAM,CAAC,EAAEC,mBAAqB,CAACT,KAAO,UAAU,CAAC,CAAC,C"}