import{a as S,c as T}from"./utils-6ebe0a8e.js";import{a as _,l as k,t as j,b,f as g,m as w,h as E,d as y,j as n,i as C,k as p,n as I}from"./lifecycle-cafe499b.js";import{S as N,i as O,c as U,b as q,m as x,a as B,t as D,d as F}from"./index-3a0d73e3.js";import{b as M}from"./ZoomOut24-c1a8fc9f.js";import{$ as P}from"./runtime-a5210d67.js";function R(o){let s,a,r,c,e,f,v,i,d=o[1](o[0].submit)+"",h,m;return r=new M({props:{fill:"currentColor",class:"ms-4 self-center"}}),{c(){s=_("form"),a=_("div"),U(r.$$.fragment),c=k(),e=_("input"),v=k(),i=_("button"),h=j(d),this.h()},l(t){s=b(t,"FORM",{class:!0});var l=g(s);a=b(l,"DIV",{class:!0});var u=g(a);q(r.$$.fragment,u),c=w(u),e=b(u,"INPUT",{id:!0,name:!0,type:!0,class:!0,placeholder:!0}),v=w(u),i=b(u,"BUTTON",{type:!0,class:!0});var $=g(i);h=E($,d),$.forEach(y),u.forEach(y),l.forEach(y),this.h()},h(){n(e,"id","search"),n(e,"name","search"),n(e,"type","search"),n(e,"class","bg-surface-200 border-none"),n(e,"placeholder",f=o[1](o[0].placeholder)),n(i,"type","submit"),n(i,"class","submit bg-surface-400 text-white w-40"),n(a,"class","flex input"),n(s,"class","w-96")},m(t,l){C(t,s,l),p(s,a),x(r,a,null),p(a,c),p(a,e),p(a,v),p(a,i),p(i,h),m=!0},p(t,[l]){(!m||l&3&&f!==(f=t[1](t[0].placeholder)))&&n(e,"placeholder",f),(!m||l&3)&&d!==(d=t[1](t[0].submit)+"")&&I(h,d)},i(t){m||(B(r.$$.fragment,t),m=!0)},o(t){D(r.$$.fragment,t),m=!1},d(t){t&&y(s),F(r)}}}function V(o,s,a){let r;T(o,P,e=>a(1,r=e));let{i18n:c={placeholder:"",submit:""}}=s;return o.$$set=e=>{"i18n"in e&&a(0,c=e.i18n)},[c,r]}class z extends N{constructor(s){super(),O(this,s,V,R,S,{i18n:0})}}z.__docgen={version:3,name:"Search.svelte",data:[{keywords:[],visibility:"public",description:"Translation keys",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{z as S};