import { f as fallback, e as escape_html } from './async-Mo2Ia14K.js';
import { f as attr_class, c as bind_props } from './index-D1Ptw7Az.js';
import { i } from './Upload-DAOKtkC7.js';

function o(a){a.push('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 256 256"><path fill="currentColor" d="M200 32h-36.26a47.92 47.92 0 0 0-71.48 0H56a16 16 0 0 0-16 16v168a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-72 0a32 32 0 0 1 32 32H96a32 32 0 0 1 32-32m72 184H56V48h26.75A47.9 47.9 0 0 0 80 64v8a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8v-8a47.9 47.9 0 0 0-2.75-16H200Z"></path></svg>');}

const n=/^(#\s*)(.+)$/m;function v(c){const s=c.trim(),a=s.match(n);if(!a)return [false,s||false];const[l,,o]=a,p=o.trim();if(s===l)return [p,false];const i=a.index!==void 0?a.index+l.length:0,e=s.substring(i).trim()||false;return [p,e]}function y(c,s$1){c.component(a=>{let l,o$1,p=fallback(s$1.type,"file"),i$1=s$1.i18n,u=fallback(s$1.message,void 0),e=fallback(s$1.mode,"full"),d=fallback(s$1.hovered,false),h=fallback(s$1.placeholder,void 0);const m={image:"upload_text.drop_image",video:"upload_text.drop_video",audio:"upload_text.drop_audio",file:"upload_text.drop_file",csv:"upload_text.drop_csv",gallery:"upload_text.drop_gallery",clipboard:"upload_text.paste_clipboard"};[l,o$1]=h?v(h):[false,false],a.push(`<div class="wrap svelte-1vmd51o"><span${attr_class("icon-wrap svelte-1vmd51o",void 0,{hovered:d})}>`),p==="clipboard"?(a.push("<!--[-->"),o(a)):(a.push("<!--[!-->"),i(a)),a.push("<!--]--></span> "),l||o$1?(a.push("<!--[-->"),l?(a.push("<!--[-->"),a.push(`<h2 class="svelte-1vmd51o">${escape_html(l)}</h2>`)):a.push("<!--[!-->"),a.push("<!--]--> "),o$1?(a.push("<!--[-->"),a.push(`<p class="svelte-1vmd51o">${escape_html(o$1)}</p>`)):a.push("<!--[!-->"),a.push("<!--]-->")):(a.push("<!--[!-->"),a.push(`${escape_html(i$1(m[p]||m.file))} `),e!=="short"?(a.push("<!--[-->"),a.push(`<span class="or svelte-1vmd51o">- ${escape_html(i$1("common.or"))} -</span> ${escape_html(u||i$1("upload_text.click_to_upload"))}`)):a.push("<!--[!-->"),a.push("<!--]-->")),a.push("<!--]--></div>"),bind_props(s$1,{type:p,i18n:i$1,message:u,mode:e,hovered:d,placeholder:h});});}

export { o, y };
//# sourceMappingURL=UploadText-Cj3NP7gm.js.map
