import{a as x,c as b}from"./AppLayout-5c633aaa.js";import{s as L}from"./sliders-solid-8621afe8.js";import{q as S,c as F}from"./circle-xmark-solid-011b00e2.js";import{_ as w}from"./lodash-76c7a0c0.js";import{v as k}from"./voiceInput-82d46348.js";import{q as o,u as a,v as s,x as h,D as c,J as d,K as u,y as _,P as p,F as v,E as y,aa as I,_ as q}from"./vue-0d7ee8e8.js";import{_ as A}from"./_plugin-vue_export-helper-b15b4a05.js";const P={props:{isPart:{type:Boolean,default:!1},terms:{type:[Object,Array],required:!0},lengths:{type:Array,required:!0},strings:{type:Object,required:!0},allPartOfSpeech:{type:Array,required:!0},regex:{type:String,required:!0},expandedFormOfWordSearch:{type:Boolean,default:!0}},components:{Ads:x},mixins:[k],data(){return{csrf:document.querySelector('meta[name="csrf-token"]').getAttribute("content"),advanced:this.expandedFormOfWordSearch,letters:this.terms&&this.terms.hasOwnProperty("letters")&&this.terms.letters?this.terms.letters:"",start:this.terms&&this.terms.hasOwnProperty("start")&&this.terms.start?this.terms.start:"",end:this.terms&&this.terms.hasOwnProperty("end")&&this.terms.end?this.terms.end:"",contains:this.terms&&this.terms.hasOwnProperty("contains")&&this.terms.contains?this.terms.contains:"",contains_not:this.terms&&this.terms.hasOwnProperty("contains_not")&&this.terms.contains_not?this.terms.contains_not:"",pattern:this.terms&&this.terms.hasOwnProperty("pattern")&&this.terms.pattern?this.terms.pattern:"",use_all_letters:this.terms&&this.terms.hasOwnProperty("use_all_letters")?this.terms.use_all_letters:"one",entry_order_for_contains:this.terms&&this.terms.hasOwnProperty("entry_order_for_contains")?this.terms.entry_order_for_contains:"any_order",entry_order_for_not_contains:this.terms&&this.terms.hasOwnProperty("entry_order_for_not_contains")?this.terms.entry_order_for_not_contains:"any_order",part_of_speech:this.terms&&this.terms.hasOwnProperty("part_of_speech")&&this.terms.part_of_speech?this.terms.part_of_speech:"",min_length:this.terms&&this.terms.hasOwnProperty("min_length")&&this.terms.min_length?this.terms.min_length:"",max_length:this.terms&&this.terms.hasOwnProperty("max_length")&&this.terms.max_length?this.terms.max_length:"",umlauts:this.terms&&this.terms.hasOwnProperty("umlauts")?this.terms.umlauts:"allow",onlyPopular:this.terms&&this.terms.hasOwnProperty("only_popular")?this.terms.only_popular:"no",letter_filter:this.terms.letter_filter?this.terms.letter_filter.join(""):"",negative_letter_filter:this.terms.negative_letter_filter?this.terms.negative_letter_filter.join(""):"",letterFilterLengths:this.terms&&this.terms.hasOwnProperty("max_length")?this.terms.hasOwnProperty("letter_filter")&&this.terms.letter_filter&&this.terms.letter_filter.length>0?this.terms.letter_filter.map(r=>r!=="_"?r:""):[]:[],negativeLetterFilterLengths:this.terms&&this.terms.hasOwnProperty("max_length")?this.terms.hasOwnProperty("negative_letter_filter")&&this.terms.negative_letter_filter&&this.terms.negative_letter_filter.length>0?this.terms.negative_letter_filter.map(r=>r!=="_"?r:""):[]:[],clearIcon:b,slidersIcon:L,questionIcon:S,circleClearIcon:F,minRange:this.lengths[0],maxRange:this.lengths[this.lengths.length-1],resetMarginLeft:0,resetMarginRight:0}},computed:{locale(){return this.$page.props.layoutData.locale},isNotEmpty(){return this.letters!==""||this.start!==""||this.end!==""||this.contains!==""||this.contains_not!==""||this.pattern!==""||this.use_all_letters!=="one"||this.entry_order_for_contains!=="any_order"||this.entry_order_for_not_contains!=="any_order"||this.part_of_speech!==""||this.min_length!==""||this.max_length!==""||this.umlauts!=="allow"||this.onlyPopular!=="no"||this.letter_filter!==""||this.negative_letter_filter!==""||this.letterFilterLengths.length>0||this.negativeLetterFilterLengths.length>0}},mounted(){window.onpageshow=function(r){(r.persisted||performance.getEntriesByType("navigation")[0].type==="back_forward")&&(document.querySelectorAll(".js-word-search-letter-filter > input").forEach(t=>{t.removeAttribute("disabled")}),document.querySelectorAll(".js-word-search-negative-letter-filter > input").forEach(t=>{t.removeAttribute("disabled")}))},this.setResetMargin()},methods:{setResetMargin(){const r=document.getElementById("advanced");let t=0,i=0;r.classList.contains("hidden")?(r.classList.remove("hidden"),t=document.getElementById("left-btn").offsetWidth,i=document.getElementById("right-btn").offsetWidth,r.classList.add("hidden")):(t=document.getElementById("left-btn").offsetWidth,i=document.getElementById("right-btn").offsetWidth),t>i?(this.resetMarginLeft=t-i,this.resetMarginRight=0):(this.resetMarginRight=i-t,this.resetMarginLeft=0)},toggleOptions(r){r.target.nextSibling.classList.toggle("hidden")},selectOption(r,t){if(r.target.hasAttribute("disabled"))return!1;const i=r.target.parentElement;i.classList.toggle("hidden");const g=new Event("change");i.previousSibling.value=t,i.previousSibling.dispatchEvent(g)},formValidate(){var r=this,t=!0,i=!1;return document.querySelectorAll(".words-search-form input").forEach(g=>{var e=g.getAttribute("name");if(e!=="length"){var l=g.value;if(e!=="letter_filter"&&e!=="min_length"&&e!=="max_length"&&e!=="negative_letter_filter"&&g.getAttribute("type")!=="hidden"){var n=new RegExp(`^[${g.dataset.allowed}]{0,${g.dataset.maxlength}}$`,"g");!n.test(l)&&l!==""&&(t=!1,g.insertAdjacentHTML("afterend",`<p class="search-word-form-error text-red-600 font-bold text-sm mt-1">${r.strings["field-validation-error"]}</p>`))}else(e==="letter_filter"||e==="negative_letter_filter")&&(l=l.replaceAll("_",""));l!==""&&(i=!0)}}),i||window.location.reload(),t*i},submit(){document.querySelectorAll(".search-word-form-error").forEach(e=>{e.remove()});var r="",t=document.querySelectorAll(".js-word-search-letter-filter > input"),i="",g=document.querySelectorAll(".js-word-search-negative-letter-filter > input");t.forEach((e,l)=>{var n=e.value;n===""?r+="_":r+=n,l!==t.length-1&&(r+=";")}),this.letter_filter=r,g.forEach((e,l)=>{var n=e.value;n===""?i+="_":i+=n,l!==g.length-1&&(i+=";")}),this.negative_letter_filter=i,document.querySelector('.words-search-form input[name="letter_filter"]')!==null&&(document.querySelector('.words-search-form input[name="letter_filter"]').value=r),document.querySelector('.words-search-form input[name="negative_letter_filter"]')!==null&&(document.querySelector('.words-search-form input[name="negative_letter_filter"]').value=i),this.formValidate()&&(this.isChangedLettersField()&&this.clearAdditionalParameters(),document.querySelectorAll(".js-word-search-letter-filter > input").forEach(e=>{e.setAttribute("disabled",!0)}),document.querySelectorAll(".js-word-search-negative-letter-filter > input").forEach(e=>{e.setAttribute("disabled",!0)}),document.querySelector(".words-search-form").submit())},checkLetterFilterByMaxFieldValue(){var r=this.max_length;document.querySelector('.words-search-form select[name="max_length"]')!==null?r=document.querySelector('.words-search-form select[name="max_length"]').value:document.querySelector('.words-search-form input[name="max_length"]')!==null&&(r=document.querySelector('.words-search-form input[name="max_length"]').value),r===""?r=0:r=parseInt(r),r!==0?(document.querySelector(".js-word-search-letter-filter-from-group").classList.remove("hidden"),this.letterFilterLengths=Array(r).fill(""),document.querySelector(".js-word-search-negative-letter-filter-from-group").classList.remove("hidden"),this.negativeLetterFilterLengths=Array(r).fill("")):(document.querySelector(".js-word-search-letter-filter-from-group").classList.add("hidden"),this.letterFilterLengths=[],this.letter_filter="",document.querySelector(".js-word-search-negative-letter-filter-from-group").classList.add("hidden"),this.negativeLetterFilterLengths=[],this.negative_letter_filter="")},isChangedLettersField(){return this.terms.letters===""||!this.terms.letters?!1:this.terms.letters!==this.$refs.lettersInput.value},clearAdditionalParameters(){this.letters.length!==0&&(document.querySelectorAll(".words-search-form input.input").forEach(r=>{r.value=""}),document.querySelectorAll(".words-search-form select").forEach(r=>{r.setAttribute("selectedIndex",0)}),this.letterFilterLengths=[],this.letter_filter="")},isChangedAdditionalParameters(){var r=document.querySelectorAll(".words-search-form .input");return!(this.start===r[0]&&this.end===r[1]&&this.contains===r[2]&&this.contains_not===r[3]&&this.pattern===r[4]&&this.part_of_speech===r[5])},toggleAdvanced(){this.advanced=!this.advanced},termsSwitch(r,t){switch(r){case"start":return t+"_";case"end":return"_"+t;case"pattern":return t;default:return"_"+t+"_"}},termsIn(r){return["start","end","pattern","contains","contains_not"].includes(r)},toggleTooltip(){event.target.nextElementSibling.classList.toggle("hidden")},searchBoxClear(){this.letters=""},removeSpaces(r){return r.replace(/\s/g,"")},toNextLetter(r){r=r.nextElementSibling,r.focus()},toPrevLetter(r){r=r.previousElementSibling,r.focus()},showLetterFilter(){var r=this.max_length;r===""?r=0:r=parseInt(r),r!==0?(this.letterFilterLengths=[],document.querySelector(".js-word-search-letter-filter-from-group").classList.remove("hidden"),this.letterFilterLengths=Array(r).fill(""),this.negativeLetterFilterLengths=[],document.querySelector(".js-word-search-negative-letter-filter-from-group").classList.remove("hidden"),this.negativeLetterFilterLengths=Array(r).fill("")):(document.querySelector(".js-word-search-letter-filter-from-group").classList.add("hidden"),this.letterFilterLengths=[],this.letter_filter="",document.querySelector(".js-word-search-negative-letter-filter-from-group").classList.add("hidden"),this.negativeLetterFilterLengths=[],this.negative_letter_filter="")},searchLetterInput(){var r=event.target;if(r.value.length>0){var t=r.value;t=t.replaceAll(new RegExp(`[^${r.dataset.allowed}]+$`,"g"),""),t=t.replaceAll(",","").split("").join(","),r.value=t}var i=r.getAttribute("maxlength");i&&r.value.length>=i&&this.toNextLetter(r)},searchLetterKeydown(){event.target},searchLetterFocusin(){event.target.select()},reset(){this.letters="",this.start="",this.end="",this.contains="",this.contains_not="",this.pattern="",this.use_all_letters="one",this.entry_order_for_contains="any_order",this.entry_order_for_not_contains="any_order",this.part_of_speech="",this.min_length="",this.max_length="",this.umlauts="allow",this.onlyPopular="no",this.letter_filter="",this.negative_letter_filter="",this.letterFilterLengths=[],this.negativeLetterFilterLengths=[]},updateVoiceInputValue(r){this.letters=r}},watch:{isNotEmpty(){this.setResetMargin()},letters(){this.letters=this.removeSpaces(this.letters)},start(){this.start=this.removeSpaces(this.start)},end(){this.end=this.removeSpaces(this.end)},pattern(){this.pattern=this.removeSpaces(this.pattern)},contains(){this.contains=this.removeSpaces(this.contains)},contains_not(){this.contains_not=this.removeSpaces(this.contains_not)},min_length:w.debounce(function(){var r=parseInt(this.min_length);isNaN(r)||(this.max_length!==""&&r>this.max_length?this.min_length=this.max_length:r>this.maxRange?this.min_length=this.maxRange:r<this.minRange&&(this.min_length=this.minRange)),this.showLetterFilter()},500),max_length:w.debounce(function(){var r=parseInt(this.max_length);isNaN(r)||(r>this.maxRange?this.max_length=this.maxRange:this.min_length!==""&&r<this.min_length?this.max_length=this.min_length:r<this.minRange&&(this.max_length=this.minRange)),this.showLetterFilter()},500)}},j=["action"],C={key:0,class:"heading heading-small pt-3"},O={class:"search-box"},M=["data-allowed","placeholder"],E=["src"],R=["src"],T={key:1,class:"relative mt-3"},B={value:"one",class:"bg-white text-gray-700"},V={value:"multiple",class:"bg-white text-gray-700"},U=s("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[s("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[s("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),H=["src"],N={key:0,class:"ml-0 mr-auto px-3 flex"},z=["innerHTML"],K={key:1,class:"font-semibold m-auto"},W=s("div",{class:"icon icon-chevron-down my-auto"},null,-1),D=["innerHTML","aria-label"],J={class:"form-group mt-3"},G={class:"form-group-field -left"},Q=["data-allowed","placeholder"],X=["src"],Y={class:"tooltip hidden"},Z=["src"],$={class:"form-group-field -right"},tt=["data-allowed","placeholder"],et=["src"],st={class:"tooltip hidden"},rt=["src"],it={class:"form-group-flex"},nt={class:"form-group"},lt={class:"form-group-field -left"},ot=["data-allowed","placeholder"],at=["src"],ht={class:"tooltip hidden"},ct=["src"],dt={key:0,class:"form-group-field -left relative"},gt={value:"any_order",class:"bg-white text-gray-700"},mt={value:"exact_order",class:"bg-white text-gray-700"},ut=s("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center md:pr-5 px-2 text-gray-700"},[s("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[s("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),_t={class:"form-group"},ft={class:"form-group-field -right"},pt=["data-allowed","placeholder"],vt=["src"],yt={class:"tooltip hidden"},wt=["src"],xt={key:0,class:"form-group-field -right relative"},bt={value:"any_order",class:"bg-white text-gray-700"},Lt={value:"exact_order",class:"bg-white text-gray-700"},St=s("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[s("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[s("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),Ft={class:"form-group"},kt={class:"form-group-field -left"},It=["data-allowed","placeholder"],qt=["src"],At={class:"tooltip hidden"},Pt=["src"],jt={class:"form-group-field -right"},Ct={value:"",class:"bg-white text-gray-700"},Ot=["value","selected"],Mt={key:1,class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},Et=s("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[s("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})],-1),Rt=[Et],Tt={class:"form-group"},Bt={class:"form-group-field -left"},Vt={class:"font-bold mb-2 -mt-2"},Ut={class:"relative"},Ht=["min","max","placeholder"],Nt={class:"form-group-field -right"},zt={class:"font-bold mb-2 -mt-2"},Kt={class:"relative"},Wt=["min","max","placeholder"],Dt={class:"form-group-field full-width px-0"},Jt={class:"font-bold mb-2 -mt-2"},Gt={class:"switch-input-group pb-0 js-word-search-letter-filter"},Qt=["data-allowed","placeholder","value"],Xt={class:"form-group-field full-width px-0"},Yt={class:"font-bold mb-2 -mt-2"},Zt={class:"switch-input-group pb-0 js-word-search-negative-letter-filter"},$t=["data-allowed","placeholder","value"],te={key:0,class:"form-group"},ee={class:"form-group-field full-width px-0"},se={class:"font-bold mb-2 -mt-2"},re={class:"relative"},ie={value:"allow",class:"bg-white text-gray-700"},ne={value:"not-allow",class:"bg-white text-gray-700"},le=s("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[s("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[s("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),oe={key:1,class:"form-group"},ae={class:"form-group-field full-width px-0"},he={class:"font-bold mb-2 -mt-2"},ce={class:"relative"},de={value:"no",class:"bg-white text-gray-700"},ge={value:"yes",class:"bg-white text-gray-700"},me=s("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[s("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[s("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),ue={class:"flex py-3"},_e=["innerHTML","aria-label"],fe=["innerHTML","aria-label"],pe={class:"flex items-center justify-center mt-[4px]"},ve=["innerHTML","aria-label"];function ye(r,t,i,g,e,l){return o(),a("div",{class:_(i.isPart?"":"effect sticky-form")},[s("form",{class:_(i.isPart?"form transparent words-search-form":"form words-search-form"),method:"get",action:r.route("words.search"),onSubmit:t[37]||(t[37]=q((...n)=>l.submit&&l.submit(...n),["prevent"]))},[i.isPart?c("",!0):(o(),a("h2",C,h(i.strings.headline),1)),s("div",O,[d(s("input",{type:"text",class:"search-box-input !pe-16",id:"letters",name:"letters","data-allowed":i.regex+"?","data-maxlength":"255",maxlength:"255","onUpdate:modelValue":t[0]||(t[0]=n=>e.letters=n),placeholder:i.strings.letters,ref:"lettersInput"},null,8,M),[[u,e.letters]]),s("button",{type:"button",class:_(["circle w-9 rounded-full absolute top-0 bottom-0 right-8 cursor-pointer",r.isRecorded?"active":""]),onClick:t[1]||(t[1]=n=>r.recordHandler())},[s("img",{class:"m-auto",src:r.microphoneIcon,width:12,height:12},null,8,E)],2),s("button",{type:"button",class:"search-box-clear",onClick:t[2]||(t[2]=(...n)=>l.searchBoxClear&&l.searchBoxClear(...n)),"aria-label":"clear"},[s("img",{src:e.clearIcon,width:"13.5",height:"18.4",alt:"clear"},null,8,R)])]),e.letters?(o(),a("div",T,[d(s("select",{class:"input with-icon",id:"useAllLetters",name:"use_all_letters","onUpdate:modelValue":t[3]||(t[3]=n=>e.use_all_letters=n)},[s("option",B,h(i.strings.use_all_letters_only_one_time_option),1),s("option",V,h(i.strings.use_all_letters_multiple_times_option),1)],512),[[p,e.use_all_letters]]),U])):c("",!0),e.advanced?(o(),a(v,{key:2},[s("div",{class:"formFilter mt-2 py-1 px-4 bg-white flex cursor-pointer border border-gray-900 toggleAdvanced",onClick:t[4]||(t[4]=(...n)=>l.toggleAdvanced&&l.toggleAdvanced(...n))},[s("img",{class:"my-auto",src:e.slidersIcon,width:"18",height:"18.4",alt:"icon",style:{"aspect-ratio":"1"}},null,8,H),i.terms&&Object.entries(i.terms).slice(1,4).filter(n=>n[1]&&n[1].length>0).length>0?(o(),a("div",N,[r.value&&l.termsIn(r.key)?(o(!0),a(v,{key:0},y(i.terms,(n,f)=>(o(),a("div",{class:_("border-3 border-gray-300 py-1 px-2 mx-1 "+(f==="contains_not"?"line-through":"")),innerHTML:l.termsSwitch(f,n)},null,10,z))),256)):c("",!0)])):(o(),a("div",K,h(i.strings.advanced),1)),W]),s("button",{type:"submit",class:"button search my-3 mx-auto block",innerHTML:i.strings.search,"aria-label":i.strings.search},null,8,D)],64)):c("",!0),s("div",{class:_(e.advanced?"hidden":""),id:"advanced"},[s("div",J,[s("div",G,[d(s("input",{type:"text",class:"input js-hint-box with-tooltip",name:"start","onUpdate:modelValue":t[5]||(t[5]=n=>e.start=n),"data-allowed":i.regex,"data-maxlength":"50",placeholder:i.strings.start,maxlength:"50"},null,8,Q),[[u,e.start]]),e.start?c("",!0):(o(),a("img",{key:0,src:e.questionIcon,width:"18",height:"18.4",class:"icon help",alt:"tooltip",onClick:t[6]||(t[6]=(...n)=>l.toggleTooltip&&l.toggleTooltip(...n))},null,8,X)),s("div",Y,h(i.strings["tooltip-starts-with"]),1),e.start?(o(),a("img",{key:1,src:e.circleClearIcon,width:"18",height:"18.4",class:"icon help",alt:"clear",onClick:t[7]||(t[7]=n=>e.start="")},null,8,Z)):c("",!0)]),s("div",$,[d(s("input",{type:"text",class:"input js-hint-box with-tooltip",name:"end","onUpdate:modelValue":t[8]||(t[8]=n=>e.end=n),"data-allowed":i.regex,"data-maxlength":"50",placeholder:i.strings.end,maxlength:"50"},null,8,tt),[[u,e.end]]),e.end?c("",!0):(o(),a("img",{key:0,src:e.questionIcon,width:"18",height:"18.4",class:"icon help",alt:"tooltip",onClick:t[9]||(t[9]=(...n)=>l.toggleTooltip&&l.toggleTooltip(...n))},null,8,et)),s("div",st,h(i.strings["tooltip-ends-with"]),1),e.end?(o(),a("img",{key:1,src:e.circleClearIcon,width:"18",height:"18.4",class:"icon help",alt:"clear",onClick:t[10]||(t[10]=n=>e.end="")},null,8,rt)):c("",!0)])]),s("div",it,[s("div",nt,[s("div",lt,[d(s("input",{type:"text",class:"input js-hint-box with-tooltip",name:"contains","onUpdate:modelValue":t[11]||(t[11]=n=>e.contains=n),"data-allowed":i.regex,"data-maxlength":"50",placeholder:i.strings.contains,maxlength:"50"},null,8,ot),[[u,e.contains]]),e.contains?c("",!0):(o(),a("img",{key:0,src:e.questionIcon,width:"18",height:"18.4",class:"icon help",alt:"tooltip",onClick:t[12]||(t[12]=(...n)=>l.toggleTooltip&&l.toggleTooltip(...n))},null,8,at)),s("div",ht,h(i.strings["tooltip-contains"]),1),e.contains?(o(),a("img",{key:1,src:e.circleClearIcon,width:"18",height:"18.4",class:"icon help",alt:"clear",onClick:t[13]||(t[13]=n=>e.contains="")},null,8,ct)):c("",!0)]),e.contains?(o(),a("div",dt,[d(s("select",{class:"input with-icon",id:"entryOrderForContains",name:"entry_order_for_contains","onUpdate:modelValue":t[14]||(t[14]=n=>e.entry_order_for_contains=n)},[s("option",gt,h(i.strings.in_any_order_option),1),s("option",mt,h(i.strings.exactly_this_order_option),1)],512),[[p,e.entry_order_for_contains]]),ut])):c("",!0)]),s("div",_t,[s("div",ft,[d(s("input",{type:"text",class:"input js-hint-box with-tooltip",name:"contains_not","onUpdate:modelValue":t[15]||(t[15]=n=>e.contains_not=n),"data-allowed":i.regex,"data-maxlength":"50",placeholder:i.strings.contains_not,maxlength:"50"},null,8,pt),[[u,e.contains_not]]),e.contains_not?c("",!0):(o(),a("img",{key:0,src:e.questionIcon,width:"18",height:"18.4",class:"icon help",alt:"tooltip",onClick:t[16]||(t[16]=(...n)=>l.toggleTooltip&&l.toggleTooltip(...n))},null,8,vt)),s("div",yt,h(i.strings["tooltip-contains-not"]),1),e.contains_not?(o(),a("img",{key:1,src:e.circleClearIcon,width:"18",height:"18.4",class:"icon help",alt:"clear",onClick:t[17]||(t[17]=n=>e.contains_not="")},null,8,wt)):c("",!0)]),e.contains_not?(o(),a("div",xt,[d(s("select",{class:"input with-icon",id:"entryOrderForNotContains",name:"entry_order_for_not_contains","onUpdate:modelValue":t[18]||(t[18]=n=>e.entry_order_for_not_contains=n)},[s("option",bt,h(i.strings.in_any_order_option),1),s("option",Lt,h(i.strings.exactly_this_order_option),1)],512),[[p,e.entry_order_for_not_contains]]),St])):c("",!0)])]),s("div",Ft,[s("div",kt,[d(s("input",{type:"text",class:"input js-hint-box with-tooltip",name:"pattern","onUpdate:modelValue":t[19]||(t[19]=n=>e.pattern=n),"data-allowed":i.regex+"_","data-maxlength":"50",placeholder:i.strings.pattern,maxlength:"50"},null,8,It),[[u,e.pattern]]),e.pattern?c("",!0):(o(),a("img",{key:0,src:e.questionIcon,width:"18",height:"18.4",class:"icon help",alt:"tooltip",onClick:t[20]||(t[20]=(...n)=>l.toggleTooltip&&l.toggleTooltip(...n))},null,8,qt)),s("div",At,h(i.strings["tooltip-pattern"]),1),e.pattern?(o(),a("img",{key:1,src:e.circleClearIcon,width:"18",height:"18.4",class:"icon help",alt:"clear",onClick:t[21]||(t[21]=n=>e.pattern="")},null,8,Pt)):c("",!0)]),s("div",jt,[Object.entries(i.allPartOfSpeech).length>0?d((o(),a("select",{key:0,class:"input with-icon",name:"part_of_speech","onUpdate:modelValue":t[22]||(t[22]=n=>e.part_of_speech=n)},[s("option",Ct,h(i.strings.part_of_speech),1),(o(!0),a(v,null,y(i.allPartOfSpeech,n=>(o(),a("option",{value:n.id,class:"bg-white text-gray-700",selected:e.part_of_speech==n.id},h(n.name),9,Ot))),256))],512)),[[p,e.part_of_speech]]):c("",!0),Object.entries(i.allPartOfSpeech).length>0?(o(),a("div",Mt,Rt)):c("",!0)])]),s("div",Tt,[s("div",Bt,[s("h2",Vt,h(i.strings["min-length-label"]),1),s("div",Ut,[d(s("input",{type:"number",class:"input",name:"min_length","onUpdate:modelValue":t[23]||(t[23]=n=>e.min_length=n),min:e.minRange,max:e.maxRange,placeholder:i.strings["min-length-placeholder"]},null,8,Ht),[[u,e.min_length]])])]),s("div",Nt,[s("h2",zt,h(i.strings["max-length-label"]),1),s("div",Kt,[d(s("input",{type:"number",class:"input",name:"max_length","onUpdate:modelValue":t[24]||(t[24]=n=>e.max_length=n),min:e.minRange,max:e.maxRange,placeholder:i.strings["max-length-placeholder"]},null,8,Wt),[[u,e.max_length]])])])]),d(s("input",{type:"hidden",name:"letter_filter","onUpdate:modelValue":t[25]||(t[25]=n=>e.letter_filter=n)},null,512),[[u,e.letter_filter]]),s("div",{class:_(e.letterFilterLengths&&e.letterFilterLengths.length>0&&e.max_length!==""?"form-group js-word-search-letter-filter-from-group":"form-group js-word-search-letter-filter-from-group hidden")},[s("div",Dt,[s("h2",Jt,h(i.strings["letter-filter-label"]),1),s("div",Gt,[e.letterFilterLengths&&e.letterFilterLengths.length>0?(o(!0),a(v,{key:0},y(e.letterFilterLengths,(n,f)=>(o(),a("input",{class:"switch-input bg-white px-1",name:"length","data-allowed":i.regex+",",maxlength:"9",placeholder:f+1,value:n,onInput:t[26]||(t[26]=(...m)=>l.searchLetterInput&&l.searchLetterInput(...m)),onKeydown:t[27]||(t[27]=(...m)=>l.searchLetterKeydown&&l.searchLetterKeydown(...m)),onFocusin:t[28]||(t[28]=(...m)=>l.searchLetterFocusin&&l.searchLetterFocusin(...m))},null,40,Qt))),256)):c("",!0)])])],2),d(s("input",{type:"hidden",name:"negative_letter_filter","onUpdate:modelValue":t[29]||(t[29]=n=>e.negative_letter_filter=n)},null,512),[[u,e.negative_letter_filter]]),s("div",{class:_(e.negativeLetterFilterLengths&&e.negativeLetterFilterLengths.length>0&&e.max_length!==""?"form-group js-word-search-negative-letter-filter-from-group":"form-group js-word-search-negative-letter-filter-from-group hidden")},[s("div",Xt,[s("h2",Yt,h(i.strings["negative-letter-filter-label"]),1),s("div",Zt,[e.negativeLetterFilterLengths&&e.negativeLetterFilterLengths.length>0?(o(!0),a(v,{key:0},y(e.negativeLetterFilterLengths,(n,f)=>(o(),a("input",{class:"switch-input bg-white px-1",name:"length","data-allowed":i.regex+",",maxlength:"9",placeholder:f+1,value:n,onInput:t[30]||(t[30]=(...m)=>l.searchLetterInput&&l.searchLetterInput(...m)),onKeydown:t[31]||(t[31]=(...m)=>l.searchLetterKeydown&&l.searchLetterKeydown(...m)),onFocusin:t[32]||(t[32]=(...m)=>l.searchLetterFocusin&&l.searchLetterFocusin(...m))},null,40,$t))),256)):c("",!0)])])],2),l.locale==="de"?(o(),a("div",te,[s("div",ee,[s("h2",se,h(i.strings["umlauts-label"]),1),s("div",re,[d(s("select",{class:"input with-icon",name:"umlauts","onUpdate:modelValue":t[33]||(t[33]=n=>e.umlauts=n)},[s("option",ie,h(i.strings["allow-umlauts"]),1),s("option",ne,h(i.strings["not-allow-umlauts"]),1)],512),[[p,e.umlauts]]),le])])])):c("",!0),l.locale==="de"?(o(),a("div",oe,[s("div",ae,[s("h2",he,h(i.strings["only-popular-label"]),1),s("div",ce,[d(s("select",{class:"input with-icon",name:"only_popular","onUpdate:modelValue":t[34]||(t[34]=n=>e.onlyPopular=n)},[s("option",de,h(i.strings["not-only-popular"]),1),s("option",ge,h(i.strings["only-popular"]),1)],512),[[p,e.onlyPopular]]),me])])])):c("",!0),s("div",ue,[s("button",{id:"left-btn",type:"submit",class:"button search",innerHTML:i.strings.search,"aria-label":i.strings.search},null,8,_e),s("button",{id:"right-btn",type:"button",onClick:t[35]||(t[35]=n=>l.toggleAdvanced()),class:"bg-gray-300 rounded rounded-sm py-2 px-4 font-semibold ml-auto",innerHTML:i.strings.hide,"aria-label":i.strings.hide},null,8,fe)]),s("div",pe,[l.isNotEmpty?(o(),a("button",{key:0,type:"button",class:_("bg-[#FC2616] text-white px-[21px] py-[8px] rounded-[10px] text-[12px] font-bold"),style:I({marginLeft:`${e.resetMarginLeft}px`,marginRight:`${e.resetMarginRight}px`}),innerHTML:i.strings.reset,"aria-label":i.strings.reset,onClick:t[36]||(t[36]=(...n)=>l.reset&&l.reset(...n))},null,12,ve)):c("",!0)])],2)],42,j)],2)}const Ie=A(P,[["render",ye]]);export{Ie as S};