import{_ as O}from"./_plugin-vue_export-helper-b15b4a05.js";import{q as s,u as r,v as t,F as k,E as T,y as V,J as x,K as H,_ as G,a as Y,w as z,$ as h,D as g,x as M,P as X,A as v,ab as Q,ac as $,z as p}from"./vue-0d7ee8e8.js";import{S as ee}from"./SearchForm-c0bdd8eb.js";import{C as te}from"./CrosswordsForm-7cea9097.js";import{S as se}from"./SearchForm-784c1f84.js";import{S as re}from"./SearchForm-a89af0c2.js";import{S as ne}from"./SearchForm-a3ef7b81.js";import{S as le}from"./SearchForm-02102cbb.js";import{S as ie}from"./SearchForm-7ba6d78c.js";import{S as oe}from"./SearchForm-8fcca221.js";import{S as ae}from"./SearchForm-a94423f7.js";import{c as ce}from"./AppLayout-5c633aaa.js";import{a as de}from"./VisualDictionary-9afae748.js";import{T as ge}from"./inertia-11bf9011.js";import{_ as q}from"./PrimaryButton-ea293497.js";import{_ as ue}from"./AnswersBlocks-84909c05.js";import{_ as he}from"./SearchForm-e48ef6c3.js";const me={props:{linksStrings:Object},data(){return{firstLettersAll:!1,firstLetters:Object.entries(this.linksStrings.firstLetters).slice(0,5),lastLettersAll:!1,lastLetters:Object.entries(this.linksStrings.lastLetters).slice(0,5),containsLettersAll:!1,containsLetters:Object.entries(this.linksStrings.containsLetters).slice(0,5),lengthsLinksAll:!1,lengthsLinks:Object.entries(this.linksStrings.lengthsLinks).slice(0,5)}},methods:{toggle(u,c){var e=u.target,w=c+"All";this[w]=!this[w],this[w]?(e.innerHTML=this.linksStrings.strings["see-less-button"],e.setAttribute("aria-label",this.linksStrings.strings["see-less-button"]),this[c]=Object.entries(this.linksStrings[c])):(e.innerHTML=this.linksStrings.strings["see-all-button"],e.setAttribute("aria-label",this.linksStrings.strings["see-all-button"]),this[c]=Object.entries(this.linksStrings[c]).slice(0,5))}}},be={class:"section"},fe=["innerHTML"],_e={class:"w-full 2xl:w-5/6 mx-auto grid grid-cols-1 md:grid-cols-2 gap-10"},we={class:"flex flex-col"},ye=["innerHTML"],ve={class:"flex flex-col"},pe={class:"bg-[#fafafa] p-[0.5rem] border-2 !border-white border-opacity-[var(--tw-border-opacity)]"},ke=["href","innerHTML"],xe={class:"flex items-center justify-center p-[0.5rem] bg-[#ecf0f3]"},Se=["aria-label","innerHTML"],Le={class:"flex flex-col"},Me=["innerHTML"],Te={class:"flex flex-col"},Fe={class:"bg-[#fafafa] p-[0.5rem] border-2 !border-white border-opacity-[var(--tw-border-opacity)]"},He=["href","innerHTML"],Ve={class:"flex items-center justify-center p-[0.5rem] bg-[#ecf0f3]"},Re=["aria-label","innerHTML"],Ae={class:"flex flex-col"},Ce=["innerHTML"],je={class:"flex flex-col"},Oe={class:"bg-[#fafafa] p-[0.5rem] border-2 !border-white border-opacity-[var(--tw-border-opacity)]"},Be=["href","innerHTML"],De={class:"flex items-center justify-center p-[0.5rem] bg-[#ecf0f3]"},Ue=["aria-label","innerHTML"],Pe={class:"flex flex-col"},Ee=["innerHTML"],We={class:"flex flex-col"},Ne={class:"bg-[#fafafa] p-[0.5rem] border-2 !border-white border-opacity-[var(--tw-border-opacity)]"},Ie=["href","innerHTML"],Xe={class:"flex items-center justify-center p-[0.5rem] bg-[#ecf0f3]"},Ke=["aria-label","innerHTML"];function qe(u,c,e,w,a,l){return s(),r("div",be,[t("h2",{class:"heading heading-small",innerHTML:e.linksStrings.strings["links-heading"]},null,8,fe),t("div",_e,[t("div",we,[t("div",{class:"heading heading-small !py-[0.75rem] px-[0.5rem] !mb-0 -webkit-hyphens-auto hyphens-auto bg-[#edf2fc] block",innerHTML:e.linksStrings.strings["table-heading-word-beginning-with"]},null,8,ye),t("div",ve,[(s(!0),r(k,null,T(a.firstLetters,d=>(s(),r("div",pe,[t("a",{href:d[1].toLowerCase(),innerHTML:e.linksStrings.strings["word-beginning-with"].replace("<letter>","<strong>"+d[0]+"</strong>")},null,8,ke)]))),256))]),t("div",xe,[t("button",{class:"button links-table-button",onClick:c[0]||(c[0]=d=>l.toggle(d,"firstLetters")),"aria-label":e.linksStrings.strings["see-all-button"],innerHTML:e.linksStrings.strings["see-all-button"]},null,8,Se)])]),t("div",Le,[t("div",{class:"heading heading-small !py-[0.75rem] px-[0.5rem] !mb-0 -webkit-hyphens-auto hyphens-auto bg-[#edf2fc] block",innerHTML:e.linksStrings.strings["table-heading-words-ending-with"]},null,8,Me),t("div",Te,[(s(!0),r(k,null,T(a.lastLetters,d=>(s(),r("div",Fe,[t("a",{href:d[1].toLowerCase(),innerHTML:e.linksStrings.strings["words-ending-with"].replace("<letter>","<strong>"+d[0]+"</strong>")},null,8,He)]))),256))]),t("div",Ve,[t("button",{class:"button links-table-button",onClick:c[1]||(c[1]=d=>l.toggle(d,"lastLetters")),"aria-label":e.linksStrings.strings["see-all-button"],innerHTML:e.linksStrings.strings["see-all-button"]},null,8,Re)])]),t("div",Ae,[t("div",{class:"heading heading-small !py-[0.75rem] px-[0.5rem] !mb-0 -webkit-hyphens-auto hyphens-auto bg-[#edf2fc] block",innerHTML:e.linksStrings.strings["table-heading-words-with-letter"]},null,8,Ce),t("div",je,[(s(!0),r(k,null,T(a.containsLetters,d=>(s(),r("div",Oe,[t("a",{href:d[1].toLowerCase(),innerHTML:e.linksStrings.strings["words-with-letter"].replace("<letter>","<strong>"+d[0]+"</strong>")},null,8,Be)]))),256))]),t("div",De,[t("button",{class:"button links-table-button",onClick:c[2]||(c[2]=d=>l.toggle(d,"containsLetters")),"aria-label":e.linksStrings.strings["see-all-button"],innerHTML:e.linksStrings.strings["see-all-button"]},null,8,Ue)])]),t("div",Pe,[t("div",{class:"heading heading-small !py-[0.75rem] px-[0.5rem] !mb-0 -webkit-hyphens-auto hyphens-auto bg-[#edf2fc] block",innerHTML:e.linksStrings.strings["table-heading-words-of-length"]},null,8,Ee),t("div",We,[(s(!0),r(k,null,T(a.lengthsLinks,d=>(s(),r("div",Ne,[t("a",{href:d[1].toLowerCase(),innerHTML:e.linksStrings.strings["words-of-length"].replace("<length>","<strong>"+d[0]+"</strong>")},null,8,Ie)]))),256))]),t("div",Xe,[t("button",{class:"button links-table-button",onClick:c[3]||(c[3]=d=>l.toggle(d,"lengthsLinks")),"aria-label":e.linksStrings.strings["see-all-button"],innerHTML:e.linksStrings.strings["see-all-button"]},null,8,Ke)])])])])}const Ds=O(me,[["render",qe]]),Ge={props:{isPart:{type:Boolean,default:!1},strings:Object,regex:String,params:Object},data(){return{letters:this.params.hasOwnProperty("letters")&&this.params.letters?this.params.letters:"",pattern:this.params.hasOwnProperty("pattern")&&this.params.pattern?this.params.pattern:"",joker:this.params.hasOwnProperty("joker")&&this.params.joker?this.params.joker:"",clearIcon:ce}},methods:{clear(u){this[u]=""},formValidate(u){document.querySelectorAll(".words-with-friends-search-form-error").forEach(w=>{w.remove()});var c=!0,e=!1;return u.forEach((w,a)=>{var l=w.dataset.maxlength;l?l=`{0,${l}}`:l="*";var d=w.value,F=new RegExp(`^[${w.dataset.allowed}]${l}$`,"g");F.test(d)||(c=!1,w.closest("div").insertAdjacentHTML("afterend",`<p class="words-with-friends-search-form-error text-red-600 font-bold text-sm mt-1">${this.strings["field-validation-error"]}</p>`)),d!==""&&(e=!0)}),c*e},submit(){this.formValidate(document.querySelectorAll("#words-with-friends-search-form .search-box-input"))&&document.getElementById("words-with-friends-search-form").submit()}}},Je=["action"],Ze=["innerHTML"],Ye={class:"search-box"},ze=["placeholder","data-allowed"],Qe=["src"],$e={class:"search-box"},et=["placeholder","data-allowed"],tt=["src"],st=["innerHTML"],rt={class:"mx-4 radio-box"},nt=["checked"],lt=t("div",{class:"radio-label"},[t("span",null,"0")],-1),it={class:"radio-box"},ot=["checked"],at=t("div",{class:"radio-label"},[t("span",null,"1")],-1),ct={class:"mx-4 radio-box"},dt=["checked"],gt=t("div",{class:"radio-label"},[t("span",null,"2")],-1),ut={class:"flex pt-3 px-3 justify-center"},ht=["aria-label","innerHTML"];function mt(u,c,e,w,a,l){return s(),r("form",{class:V("form "+(e.isPart?"transparent":"")+" words-with-friends-search-form amp"),id:"words-with-friends-search-form",method:"get",action:u.route("words-with-friends.search"),onSubmit:c[4]||(c[4]=G((...d)=>l.submit&&l.submit(...d),["prevent"]))},[t("label",{class:V("form-label "+(e.isPart?"":"text-center")),innerHTML:e.strings.label},null,10,Ze),t("div",{class:V(e.isPart?"pb-3":"md:p-3 py-3")},[t("div",Ye,[x(t("input",{type:"text",class:"search-box-input pe-10",placeholder:e.strings.letters,name:"letters","data-allowed":e.regex,"onUpdate:modelValue":c[0]||(c[0]=d=>a.letters=d)},null,8,ze),[[H,a.letters]]),t("button",{type:"button",class:"mr-4 typeahead-clear mr-4","aria-label":"clear",onClick:c[1]||(c[1]=d=>l.clear("letters"))},[t("img",{src:a.clearIcon,width:"13.5",height:"18.4",alt:"clear"},null,8,Qe)])])],2),t("div",{class:V(e.isPart?"pb-3":"md:p-3 py-3")},[t("div",$e,[x(t("input",{type:"text",class:"search-box-input pe-10",placeholder:e.strings.pattern,name:"pattern","data-maxlength":"15","data-allowed":e.regex+"?","onUpdate:modelValue":c[2]||(c[2]=d=>a.pattern=d)},null,8,et),[[H,a.pattern]]),t("button",{type:"button",class:"mr-4 typeahead-clear mr-4","aria-label":"clear",onClick:c[3]||(c[3]=d=>l.clear("pattern"))},[t("img",{src:a.clearIcon,width:"13.5",height:"18.4",alt:"clear"},null,8,tt)])])],2),t("div",{class:V((e.isPart?"":"md:p-3 py-3")+" flex")},[t("p",{innerHTML:e.strings["joker-label"]},null,8,st),t("div",rt,[t("input",{type:"radio",class:"radio-input",name:"joker",value:"0",checked:a.joker&&a.joker==="0","aria-label":"joker 0"},null,8,nt),lt]),t("div",it,[t("input",{type:"radio",class:"radio-input",name:"joker",value:"1",checked:a.joker&&a.joker==="1","aria-label":"joker 1"},null,8,ot),at]),t("div",ct,[t("input",{type:"radio",class:"radio-input",name:"joker",value:"2",checked:a.joker&&a.joker==="2","aria-label":"joker 2"},null,8,dt),gt])],2),t("div",ut,[t("button",{type:"submit",class:"button search","aria-label":e.strings.search,innerHTML:e.strings.search},null,8,ht)])],42,Je)}const bt=O(Ge,[["render",mt]]);const J=u=>(Q("data-v-ccdca3b3"),u=u(),$(),u),ft=["innerHTML"],_t=["disabled","placeholder"],wt={key:1,class:"grid grid-cols-15 w-full grid-template"},yt=["disabled","onInput","onUpdate:modelValue"],vt={key:2,class:"grid grid-cols-15 w-full grid-template"},pt=["onKeydown","onInput","onUpdate:modelValue"],kt={for:"tableView",class:"font-bold"},xt={class:"relative"},St=["disabled"],Lt={value:"defaultView"},Mt={value:"gridView"},Tt=J(()=>t("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[t("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[t("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={for:"words",class:"font-bold"},Ht=["required","disabled"],Vt={for:"wordsBase",class:"font-bold"},Rt={class:"relative"},At=["disabled"],Ct={value:"inputWords"},jt={value:"databaseWords"},Ot={value:"databaseAndInput"},Bt=J(()=>t("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[t("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[t("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1)),Dt={class:"mt-4 w-full flex justify-between items-center"},Ut={__name:"SearchForm",props:["placeholders","oldWordsSearchData","layoutData"],setup(u){const{placeholders:c,oldWordsSearchData:e,layoutData:w}=u,a=w==null?void 0:w.locale,F=a==="de"?[["X","B","F","Z","B","P","I","C","H","X"],["I","L","B","U","F","H","H","C","K","A"],["J","U","C","S","B","I","A","I","D","I"],["N","M","K","O","X","M","U","I","Z","T"],["U","E","N","E","U","M","M","Z","T","G"],["J","V","X","Z","L","E","S","Q","R","P"],["B","A","H","L","H","L","Q","E","O","T"],["X","N","C","L","G","F","B","I","L","S"],["L","R","F","L","U","S","S","S","M","T"],["W","A","L","D","Y","X","T","N","E","W"]]:[["F","O","R","E","S","T","D","Y","N","H"],["S","G","O","B","L","O","X","I","D","X"],["O","W","P","J","R","D","A","Q","B","D"],["N","S","E","I","T","T","K","D","E","F"],["P","K","W","R","N","I","Y","R","M","L"],["O","Y","O","U","U","A","V","U","N","O"],["Q","V","O","U","J","W","U","N","K","W"],["G","M","B","S","I","V","P","C","Z","E"],["O","N","R","Y","F","E","L","B","P","R"],["X","C","Z","X","R","I","V","E","R","S"]],R=a==="de"?"wald,fluss,himmel,blume,berg":"forest,river,sky,flower,mountain",A=F.map(b=>b.join("")).join(` `),n=ge({matrix:(e==null?void 0:e.matrix)||F,matrixView:(e==null?void 0:e.matrixView)||"defaultView",textAreaContent:(e==null?void 0:e.textAreaContent)||A,gridMatrix:(e==null?void 0:e.gridMatrix)||[],wordsToSearch:(e==null?void 0:e.wordsToSearch)||R,wordsFrom:(e==null?void 0:e.wordsFrom)||"inputWords"});let S=Y([]);const B=b=>{const i=b.target,o=i.value,m=i.selectionStart,_=i.selectionEnd;let f=o.replace(/[^\p{L}\n]/gu,""),y=f.toUpperCase().split(` `);y=y.slice(0,15),f=y.map(I=>I.slice(0,15)).join(` `);const N=y.map(I=>I.slice(0,15).split(""));n.matrix=j(N),n.textAreaContent=f,i.value=f,i.setSelectionRange(m,_)},C=(b,i,o)=>{const _=b.target.value.replace(/[^\p{L}]/gu,"");b.target.value=_,n.gridMatrix[i][o]=_.toUpperCase();const f=n.gridMatrix.map(y=>y.filter(N=>N!==""));n.matrix=j(f)},j=b=>{var m;let i=b.filter(_=>_.some(f=>f!=="")),o=((m=i[0])==null?void 0:m.length)||0;return i=i.filter(_=>_.length>=o),i.forEach((_,f)=>{_.length<o?i[f]=_.concat(Array(o-_.length).fill(" ")):_.length>o&&(i[f]=_.slice(0,o))}),i},D=b=>{let o=b.target.value.replace(/[^\p{L},]/gu,"");n.wordsToSearch=o},U=()=>{S=n.gridMatrix,n.matrix=JSON.stringify(n.matrix),n.gridMatrix=JSON.stringify(n.gridMatrix),n.get(route("word-search-solver"),{data:n,preserveScroll:!0})},P=(b,i,o)=>{const m=E(b);m&&(b.preventDefault(),W(m,i,o))},E=b=>{switch(b.key){case"ArrowUp":return"up";case"ArrowDown":return"down";case"ArrowLeft":return"left";case"ArrowRight":return"right";default:return null}},W=(b,i,o)=>{const m=n.gridMatrix.length,_=n.gridMatrix[0].length;switch(b){case"up":i>0&&L(i-1,o);break;case"down":i<m-1&&L(i+1,o);break;case"left":o>0&&L(i,o-1);break;case"right":o<_-1&&L(i,o+1);break}},L=(b,i)=>{const o=document.querySelectorAll(".input-cell"),m=b*n.gridMatrix[0].length+i;o.length>m&&o[m].focus()},K=()=>{var o;let b=[];const i=n.textAreaContent.split(` `);for(let m=0;m<15;m++){let _=[];for(let f=0;f<15;f++)_.push(((o=i[m])==null?void 0:o[f])||"");b.push(_)}return b},Z=()=>{n.textAreaContent=A,n.matrix=F,n.wordsToSearch=R,n.gridMatrix=K()};return z(()=>n.matrixView,()=>{if(n.matrixView==="gridView")n.gridMatrix=K();else{let b=n.gridMatrix.filter(i=>i.some(o=>o!==""));n.textAreaContent=b.map(i=>i.join("")).join(` `)}}),(b,i)=>(s(),r("div",null,[t("label",{class:"form-label",innerHTML:u.placeholders["word-search-solver-label"]},null,8,ft),t("form",{onSubmit:G(U,["prevent"]),class:"flex flex-col gap-2 hover:!bg-transparent"},[h(n).matrixView==="defaultView"?x((s(),r("textarea",{key:0,disabled:h(n).processing,class:"input min-h-[315px]",placeholder:u.placeholders.tableInputPlaceholder,onInput:B,"onUpdate:modelValue":i[0]||(i[0]=o=>h(n).textAreaContent=o),maxlength:"250"},null,40,_t)),[[H,h(n).textAreaContent]]):g("",!0),h(n).matrixView==="gridView"&&h(S).length?(s(),r("div",wt,[(s(!0),r(k,null,T(h(S),(o,m)=>(s(),r(k,null,[(s(!0),r(k,null,T(o,(_,f)=>x((s(),r("input",{disabled:h(n).processing,onInput:y=>C(y,m,f),class:"w-full h-full block text-[1em] font-bold uppercase border-[1px] border-[rgba(0,0,0,0.2)] outline-0 p-0 text-center focus:!border-[rgba(0,0,0,0.6)] focus:bg-[#ffc]",type:"text","onUpdate:modelValue":y=>h(S)[m][f]=y,maxlength:"1"},null,40,yt)),[[H,h(S)[m][f]]])),256))],64))),256))])):g("",!0),h(n).matrixView==="gridView"&&!h(S).length?(s(),r("div",vt,[(s(!0),r(k,null,T(h(n).gridMatrix,(o,m)=>(s(),r(k,null,[(s(!0),r(k,null,T(o,(_,f)=>x((s(),r("input",{onKeydown:y=>P(y,m,f),onInput:y=>C(y,m,f),class:"input-cell w-full h-full block text-[1em] font-bold uppercase border-[1px] border-[rgba(0,0,0,0.2)] outline-0 p-0 text-center focus:!border-[rgba(0,0,0,0.6)] focus:bg-[#ffc]",type:"text","onUpdate:modelValue":y=>h(n).gridMatrix[m][f]=y,maxlength:"1"},null,40,pt)),[[H,h(n).gridMatrix[m][f]]])),256))],64))),256))])):g("",!0),t("label",kt,M(u.placeholders.tableDisplayLabel),1),t("div",xt,[x(t("select",{disabled:h(n).processing,id:"tableView",class:"input with-icon","onUpdate:modelValue":i[1]||(i[1]=o=>h(n).matrixView=o)},[t("option",Lt,M(u.placeholders.matrixDisplayOptionDefault),1),t("option",Mt,M(u.placeholders.matrixDisplayOptionGrid),1)],8,St),[[X,h(n).matrixView]]),Tt]),t("label",Ft,M(u.placeholders.wordsLabel),1),x(t("input",{required:h(n).wordsFrom!=="databaseWords",disabled:h(n).processing,id:"words",type:"text",class:"input",onInput:D,"onUpdate:modelValue":i[2]||(i[2]=o=>h(n).wordsToSearch=o)},null,40,Ht),[[H,h(n).wordsToSearch]]),t("label",Vt,M(u.placeholders.wordsBaseLabel),1),t("div",Rt,[x(t("select",{disabled:h(n).processing,id:"wordsBase",class:"input with-icon","onUpdate:modelValue":i[3]||(i[3]=o=>h(n).wordsFrom=o)},[t("option",Ct,M(u.placeholders.wordsOptionDefault),1),t("option",jt,M(u.placeholders.wordsOptionDatabase),1),t("option",Ot,M(u.placeholders.wordsOptionDatabaseAndInput),1)],8,At),[[X,h(n).wordsFrom]]),Bt]),t("div",Dt,[v(q,{isLoading:h(n).processing,withDefaultClasses:!1,class:"button search !px-[1rem] !py-[0.5rem]",type:"submit",title:u.placeholders.searchButton},null,8,["isLoading","title"]),v(q,{disabled:h(n).processing,type:"button",withDefaultClasses:!1,class:"focus:!ring-0 !text-black font-bold !rounded-none !bg-[#DFE8F1] hover:!bg-gray-500 bg-gray-300 rounded rounded-sm py-2 px-4 font-semibold ml-auto",title:u.placeholders.defaultButton,onClick:Z},null,8,["disabled","title"])])],32)]))}},Pt=O(Ut,[["__scopeId","data-v-ccdca3b3"]]),Et={props:{strings:Object,lang:String,isWordsRequest:Boolean,expandedFormOfWordSearch:{type:Boolean,default:!0},visualDictionaryFormValues:{type:Object,default(){return{}}},answersForConnections:Object},data(){return{selectedSearch:this.$props.lang==="en"&&!this.isWordsRequest?"visual-dictionary":"word"}},methods:{change(){this.selectedSearch==="games"?window.location.href=this.route("games"):this.$emit("change",this.selectedSearch)}},components:{SearchForm:ee,CrosswordsForm:te,WordleSearchForm:se,SynonymsSearchForm:re,AntonymsSearchForm:ne,ScrabbleSearchForm:le,AnagramSearchForm:ie,UnscramblerSearchForm:oe,BridgeSearchForm:ae,WordsWithFriendsSearchForm:bt,VisualDictionaryForm:de,WordSearchSolverForm:Pt,AnswersBlocksForm:ue,SpellingBeeSolverForm:he},computed:{blockingRoutes(){return this.$page.props.layoutData.blockingRoutes},blockRaetselPages(){return this.$page.props.layoutData.blockRaetselPages},locale(){return this.$page.props.layoutData.locale},isMobile(){return this.$page.props.layoutData.isMobile}}},Wt=["innerHTML"],Nt={class:"relative w-full"},It=["innerHTML"],Xt=["innerHTML"],Kt=["innerHTML"],qt=["innerHTML"],Gt=["innerHTML"],Jt=["innerHTML"],Zt=["innerHTML"],Yt=["innerHTML"],zt=["innerHTML"],Qt=["innerHTML"],$t=["innerHTML"],es=["innerHTML"],ts=["innerHTML"],ss=["innerHTML"],rs=["innerHTML"],ns=t("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-4"},[t("div",{class:"icon icon-chevron-down"})],-1),ls={key:0,class:"py-3 selected-search-form"},is={key:1,class:"py-3 selected-search-form"},os={key:2,class:"py-3 selected-search-form"},as={key:3,class:"py-3 selected-search-form"},cs={key:4,class:"py-3 selected-search-form"},ds={key:5,class:"py-3 selected-search-form"},gs={key:6,class:"py-3 selected-search-form"},us={key:7,class:"py-3 selected-search-form"},hs={key:8,class:"py-3 selected-search-form"},ms={key:9,class:"py-3 selected-search-form"},bs={key:10,class:"py-3 selected-search-form"},fs={key:11,class:"py-3 selected-search-form"},_s={key:12,class:"py-3 selected-search-form"},ws={key:13,class:"py-3 selected-search-form"};function ys(u,c,e,w,a,l){const d=p("VisualDictionaryForm"),F=p("SearchForm"),R=p("CrosswordsForm"),A=p("WordleSearchForm"),n=p("SynonymsSearchForm"),S=p("AntonymsSearchForm"),B=p("ScrabbleSearchForm"),C=p("AnagramSearchForm"),j=p("UnscramblerSearchForm"),D=p("BridgeSearchForm"),U=p("WordsWithFriendsSearchForm"),P=p("WordSearchSolverForm"),E=p("AnswersBlocksForm"),W=p("SpellingBeeSolverForm");return s(),r("div",null,[t("h2",{class:"font-bold mt-3 mb-1",innerHTML:e.strings["search-form-label-with-categories"]},null,8,Wt),t("div",Nt,[x(t("select",{class:"search-form-selection","onUpdate:modelValue":c[0]||(c[0]=L=>a.selectedSearch=L),onChange:c[1]||(c[1]=(...L)=>l.change&&l.change(...L))},[e.lang==="en"?(s(),r("option",{key:0,value:"visual-dictionary",innerHTML:e.strings["visual-dictionary-search-category"]},null,8,It)):g("",!0),l.blockingRoutes["words-search"]?g("",!0):(s(),r("option",{key:1,value:"word",innerHTML:e.strings["normal-word-search-category"]},null,8,Xt)),l.blockRaetselPages==="no"&&!l.blockingRoutes.crosswords?(s(),r("option",{key:2,value:"crossword",innerHTML:e.strings["crosswords-search-category"]},null,8,Kt)):g("",!0),l.blockingRoutes["wordle-solver"]?g("",!0):(s(),r("option",{key:3,value:"wordle-solver",innerHTML:e.strings["wordle-solver-search-category"]},null,8,qt)),l.blockingRoutes["word-search-solver"]?g("",!0):(s(),r("option",{key:4,value:"word-search-solver",innerHTML:e.strings["word-search-solver-search-category"]},null,8,Gt)),!l.blockingRoutes["connections-solver"]&&e.lang==="en"||e.lang==="de"?(s(),r("option",{key:5,value:"connections-solver",innerHTML:e.strings["connections-solver-search-category"]},null,8,Jt)):g("",!0),!l.blockingRoutes["spelling-bee-solver"]&&e.lang==="de"||e.lang==="en"?(s(),r("option",{key:6,value:"spelling-bee-solver",innerHTML:e.strings["spelling-bee-solver-search-category"]},null,8,Zt)):g("",!0),l.blockingRoutes.games?g("",!0):(s(),r("option",{key:7,value:"games",innerHTML:e.strings["games-category"]},null,8,Yt)),l.blockingRoutes.synonyms?g("",!0):(s(),r("option",{key:8,value:"synonym",innerHTML:e.strings["synonyms-search-category"]},null,8,zt)),l.blockingRoutes.antonyms?g("",!0):(s(),r("option",{key:9,value:"antonym",innerHTML:e.strings["antonyms-search-category"]},null,8,Qt)),l.blockingRoutes.scrabble?g("",!0):(s(),r("option",{key:10,value:"scrabble",innerHTML:e.strings["scrabble-search-category"]},null,8,$t)),l.blockingRoutes["words-with-friends"]?g("",!0):(s(),r("option",{key:11,value:"words-with-friends",innerHTML:e.strings["words-with-friends-search-category"]},null,8,es)),l.blockingRoutes["anagram-generator"]?g("",!0):(s(),r("option",{key:12,value:"anagramm",innerHTML:e.strings["anagramm-search-category"]},null,8,ts)),l.blockingRoutes["word-unscrambler"]?g("",!0):(s(),r("option",{key:13,value:"unscrambler",innerHTML:e.strings["unscrambler-search-category"]},null,8,ss)),l.blockingRoutes.bridge?g("",!0):(s(),r("option",{key:14,value:"bridge",innerHTML:e.strings["bridge-search-category"]},null,8,rs))],544),[[X,a.selectedSearch]]),ns]),e.lang==="en"&&a.selectedSearch==="visual-dictionary"?(s(),r("div",ls,[v(d,{isPart:!0,visualDictionaryFormValues:e.visualDictionaryFormValues,strings:e.strings.visualDictionary.strings},null,8,["visualDictionaryFormValues","strings"])])):g("",!0),!l.blockingRoutes["words-search"]&&a.selectedSearch==="word"?(s(),r("div",is,[v(F,{"is-part":!0,regex:e.strings.regex,lengths:e.strings.words.lengths,"all-part-of-speech":e.strings.words.allPartOfSpeech,"expanded-form-of-word-search":e.expandedFormOfWordSearch,strings:e.strings.words.strings,terms:{},locale:l.locale},null,8,["regex","lengths","all-part-of-speech","expanded-form-of-word-search","strings","locale"])])):g("",!0),l.blockRaetselPages==="no"&&!l.blockingRoutes.crosswords&&a.selectedSearch==="crossword"?(s(),r("div",os,[v(R,{"is-part":!0,strings:e.strings.crosswords.strings,charmap:e.strings.crosswords.charmap,regex:e.strings.regex,mobile:!1,"width-full":"false"},null,8,["strings","charmap","regex"])])):g("",!0),!l.blockingRoutes["wordle-solver"]&&a.selectedSearch==="wordle-solver"?(s(),r("div",as,[v(A,{"is-part":!0,strings:e.strings.wordle.strings},null,8,["strings"])])):g("",!0),!l.blockingRoutes.synonyms&&a.selectedSearch==="synonym"?(s(),r("div",cs,[v(n,{"is-part":!0,"allowed-chars":e.strings.regex+"?",strings:e.strings.synonyms.strings},null,8,["allowed-chars","strings"])])):g("",!0),!l.blockingRoutes.antonyms&&a.selectedSearch==="antonym"?(s(),r("div",ds,[v(S,{strings:e.strings.antonyms.strings,"is-part":!0,"page-entry":"","allowed-chars":e.strings.regex+"?"},null,8,["strings","allowed-chars"])])):g("",!0),!l.blockingRoutes.scrabble&&a.selectedSearch==="scrabble"?(s(),r("div",gs,[v(B,{"is-part":!0,strings:e.strings.scrabble.strings,regex:e.strings.regex,params:{}},null,8,["strings","regex"])])):g("",!0),!l.blockingRoutes["anagram-generator"]&&a.selectedSearch==="anagramm"?(s(),r("div",us,[v(C,{"is-part":!0,strings:e.strings.anagram.strings},null,8,["strings"])])):g("",!0),!l.blockingRoutes["word-unscrambler"]&&a.selectedSearch==="unscrambler"?(s(),r("div",hs,[v(j,{"is-part":!0,strings:e.strings.unscrambler.strings,regex:e.strings.regex},null,8,["strings","regex"])])):g("",!0),!l.blockingRoutes.bridge&&a.selectedSearch==="bridge"?(s(),r("div",ms,[v(D,{"is-part":!0,strings:e.strings.bridge.strings,regex:e.strings.regex},null,8,["strings","regex"])])):g("",!0),!l.blockingRoutes["words-with-friends"]&&a.selectedSearch==="words-with-friends"?(s(),r("div",bs,[v(U,{"is-part":!0,strings:e.strings.wordsWithFriends.strings,regex:e.strings.regex,params:{}},null,8,["strings","regex"])])):g("",!0),!l.blockingRoutes["word-search-solver"]&&a.selectedSearch==="word-search-solver"?(s(),r("div",fs,[v(P,{placeholders:e.strings.wordSearchSolver.strings,layoutData:u.$page.props.layoutData},null,8,["placeholders","layoutData"])])):g("",!0),(e.lang==="en"||e.lang==="de")&&!l.blockingRoutes["connections-solver"]&&a.selectedSearch==="connections-solver"?(s(),r("div",_s,[v(E,{placeholders:e.strings.connectionsSolver.strings,answers:e.answersForConnections},null,8,["placeholders","answers"])])):g("",!0),!l.blockingRoutes["spelling-bee-solver"]&&a.selectedSearch==="spelling-bee-solver"?(s(),r("div",ws,[v(W,{placeholders:e.strings.spellingBeeSolver.strings},null,8,["placeholders"])])):g("",!0)])}const Us=O(Et,[["render",ys]]);export{Ds as L,Us as S};