import{c as i}from"./AppLayout-5c633aaa.js";import{q as c,u as d,v as e,y as l,J as m,K as u}from"./vue-0d7ee8e8.js";import{_ as h}from"./_plugin-vue_export-helper-b15b4a05.js";const g={props:{isPart:{type:Boolean,default:!1},strings:{type:Object,required:!0},word:{type:String,default:""}},data(){return{wordValue:this.word,clearIcon:i}},methods:{toggleTooltip(){event.target.nextElementSibling.classList.toggle("hidden")},clear(){this.wordValue=""}}},_=["action"],b=["innerHTML"],f={class:"search-box"},p=["placeholder"],x=["src"],w={class:"flex p-3 justify-center"},y=["aria-label","innerHTML"];function v(n,a,t,T,r,o){return c(),d("div",{class:l(t.isPart?"":"mb-6")},[e("form",{method:"get",action:n.route("anagramm-generator"),class:l("form anagramm-generator-form amp "+(t.isPart?"transparent":""))},[e("label",{class:l("form-label "+(t.isPart?"":"text-center")),innerHTML:t.strings.label},null,10,b),e("div",f,[m(e("input",{class:"search-box-input pe-8",type:"text",name:"word",placeholder:t.strings.placeholder,"onUpdate:modelValue":a[0]||(a[0]=s=>r.wordValue=s)},null,8,p),[[u,r.wordValue]]),e("button",{type:"button",class:"search-box-clear","aria-label":"Clear",onClick:a[1]||(a[1]=(...s)=>o.clear&&o.clear(...s))},[e("img",{src:r.clearIcon,width:"13.5",height:"18.4",alt:"clear"},null,8,x)])]),e("div",w,[e("button",{type:"submit",class:"button search","aria-label":t.strings.search,innerHTML:t.strings.search},null,8,y)])],10,_)],2)}const B=h(g,[["render",v]]);export{B as S};