2024-07-05 09:29:52 +02:00
|
|
|
import{a as w,c as T}from"./utils-AUSSiI9x.js";import{a as _,b as $,t as j,f as b,h as g,k,j as E,d as y,l as n,i as C,m as p,n as I}from"./lifecycle-DZHCWxcx.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-CRVYNev9.js";import{S as M}from"./ZoomOut24-C6SRuWL3.js";import{$ as P}from"./runtime-VldLyBWb.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=$(),e=_("input"),v=$(),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=k(u),e=b(u,"INPUT",{id:!0,name:!0,type:!0,class:!0,placeholder:!0}),v=k(u),i=b(u,"BUTTON",{type:!0,class:!0});var S=g(i);h=E(S,d),S.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,w,{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};
|