import{p,e as O,i as b,b as Q}from"./i18n-eTakDDhg.js";import{R as Z,a1 as $,w as d,G as c,a2 as ee,X as R,t as U,a as f,T as ae,a3 as P,U as m,V as k,S as A,z as D,a0 as w,W as u,at as te,x as V,Y as E}from"./index-BkylzejB.js";import{a as re,U as se}from"./ScrollFade.svelte_svelte_type_style_lang-De9nUaYy.js";const oe=/^(#\s*)(.+)$/m;function W(S){const a=S.trim(),s=a.match(oe);if(!s)return[!1,a||!1];const[l,,i]=s,t=i.trim();if(a===l)return[t,!1];const v=s.index!==void 0?s.index+l.length:0,g=a.substring(v).trim()||!1;return[t,g]}var le=u('<h2 class="svelte-1vmd51o"> </h2>'),ne=u('<p class="svelte-1vmd51o"> </p>'),de=u("<!> <!>",1),ie=u('<span class="or svelte-1vmd51o"> </span> ',1),_e=u(" <!>",1),ve=u('<div class="wrap svelte-1vmd51o"><span><!></span> <!></div>');function me(S,a){Z(a,!1);const s=P(),l=P();let i=p(a,"type",12,"file"),t=p(a,"i18n",12),v=p(a,"message",12,void 0),G=p(a,"mode",12,"full"),g=p(a,"hovered",12,!1),h=p(a,"placeholder",12,void 0);const H={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"};$(()=>(d(s),d(l),c(h()),W),()=>{(e=>{var n=te(e,2);V(s,n[0]),V(l,n[1])})(h()?W(h()):[!1,!1])}),ee();var X={get type(){return i()},set type(e){i(e),m()},get i18n(){return t()},set i18n(e){t(e),m()},get message(){return v()},set message(e){v(e),m()},get mode(){return G()},set mode(e){G(e),m()},get hovered(){return g()},set hovered(e){g(e),m()},get placeholder(){return h()},set placeholder(e){h(e),m()}};O();var T=ve(),I=k(T);let N;var Y=k(I);{var q=e=>{re(e)},B=e=>{se(e)};b(Y,e=>{i()==="clipboard"?e(q):e(B,!1)})}E(I);var C=R(I,2);{var F=e=>{var n=de(),x=A(n);{var j=o=>{var r=le(),y=k(r,!0);E(r),U(()=>w(y,d(s))),f(o,r)};b(x,o=>{d(s)&&o(j)})}var z=R(x,2);{var _=o=>{var r=ne(),y=k(r,!0);E(r),U(()=>w(y,d(l))),f(o,r)};b(z,o=>{d(l)&&o(_)})}f(e,n)},J=e=>{var n=_e(),x=A(n),j=R(x);{var z=_=>{var o=ie(),r=A(o),y=k(r);E(r);var K=R(r);U((L,M)=>{w(y,`- ${L??""} -`),w(K,` ${M??""}`)},[()=>(c(t()),D(()=>t()("common.or"))),()=>(c(v()),c(t()),D(()=>v()||t()("upload_text.click_to_upload")))]),f(_,o)};b(j,_=>{G()!=="short"&&_(z)})}U(_=>w(x,`${_??""} `),[()=>(c(t()),c(i()),D(()=>t()(H[i()]||H.file)))]),f(e,n)};b(C,e=>{d(s)||d(l)?e(F):e(J,!1)})}return E(T),U(()=>N=Q(I,1,"icon-wrap svelte-1vmd51o",null,N,{hovered:g()})),f(S,T),ae(X)}export{me as U};
