1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
import{S as w,c as T,a as j,d as E,e as C,m as I,b as N,t as O,f as U,g as q}from"./index-CFSywFfb.js";import{a as _,b as $,t as x,f as b,h as g,k,j as B,d as y,l as n,i as D,m as p,n as F}from"./lifecycle-u0QeOdKt.js";import{S as M}from"./ZoomOut24-BLVY8N49.js";import{$ as P}from"./runtime-BvEoAjCK.js";function R(o){let s,a,r,c,e,f,v,l,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"),E(r.$$.fragment),c=$(),e=_("input"),v=$(),l=_("button"),h=x(d),this.h()},l(t){s=b(t,"FORM",{class:!0});var i=g(s);a=b(i,"DIV",{class:!0});var u=g(a);C(r.$$.fragment,u),c=k(u),e=b(u,"INPUT",{id:!0,name:!0,type:!0,class:!0,placeholder:!0}),v=k(u),l=b(u,"BUTTON",{type:!0,class:!0});var S=g(l);h=B(S,d),S.forEach(y),u.forEach(y),i.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(l,"type","submit"),n(l,"class","submit bg-surface-400 text-white w-40"),n(a,"class","flex input"),n(s,"class","w-96")},m(t,i){D(t,s,i),p(s,a),I(r,a,null),p(a,c),p(a,e),p(a,v),p(a,l),p(l,h),m=!0},p(t,[i]){(!m||i&3&&f!==(f=t[1](t[0].placeholder)))&&n(e,"placeholder",f),(!m||i&3)&&d!==(d=t[1](t[0].submit)+"")&&F(h,d)},i(t){m||(N(r.$$.fragment,t),m=!0)},o(t){O(r.$$.fragment,t),m=!1},d(t){t&&y(s),U(r)}}}function V(o,s,a){let r;q(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 w{constructor(s){super(),T(this,s,V,R,j,{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};
|