import{e as m,u as q,c as B,A as P,a as V}from"./AppLayout-bec1cc2f.js";import{F as U}from"./Feedback-c61d8668.js";import{I as K}from"./InternalLinksSection-a8c0d5c5.js";import{S as N}from"./SearchForm-ac623155.js";import{s as Q}from"./sliders-solid-8621afe8.js";import{q as a,u as r,v as t,D as o,J as _,a9 as p,F as h,E as v,y as O,z as x,C as j,K as J,P as z,_ as G,A as f,B as D,G as W,x as w,V as Z}from"./vue-0d7ee8e8.js";import{_ as k}from"./_plugin-vue_export-helper-b15b4a05.js";import{m as A,a as X}from"./inertia-ab1dcff0.js";import{R as E}from"./recaptcha-v3-f0e7cd4f.js";import{s as Y}from"./stickyTableHead-3622df72.js";import{Z as $}from"./inertia-11bf9011.js";import"./axios-dd1c8fc2.js";import"./searchFromField-1654e33e.js";import"./voiceInput-82d46348.js";import"./preload-helper-f61836a9.js";import"./userActivity-e849d9de.js";import"./fingerprint-374ab551.js";import"./@inertiajs/core-9c117dfe.js";import"./qs-0fed5bc1.js";import"./get-intrinsic-20bd36cc.js";import"./object-inspect-747fc63f.js";import"./nprogress-f6c1521f.js";import"./lodash.isequal-390c7467.js";const ee={props:{maxLength:{type:Number,required:!0},filter:{type:Object,required:!0},strings:{type:Object,required:!0},locale:{type:String,required:!0}},data(){return{mobile:!(window.innerWidth<768),showFilter:!(window.innerWidth<768),searchParams:new URLSearchParams(window.location.search),minSelectedLength:3,maxSelectedLength:parseInt(this.maxLength),slangWords:"all",countWords:"all",synonymType:"all",partOfSpeech:"all",synonymRepeat:"all",slidersIcon:Q}},mounted(){var n=document.getElementById("input-left"),s=document.getElementById("input-right");n!==null&&s!==null&&(n.addEventListener("input",this.setLeftValue),s.addEventListener("input",this.setRightValue),this.setLeftValue(),this.setRightValue())},created(){this.searchParams.has("minlength")?(this.minSelectedLength=parseInt(this.searchParams.get("minlength")),this.searchParams.set("minlength",this.minSelectedLength)):this.searchParams.append("minlength",this.minSelectedLength),this.searchParams.has("maxlength")?(this.maxSelectedLength=parseInt(this.searchParams.get("maxlength")),this.searchParams.set("maxlength",this.maxSelectedLength)):this.searchParams.append("maxlength",this.maxSelectedLength),this.searchParams.has("slang")&&(this.slangWords=this.searchParams.get("slang")),this.searchParams.has("word-count")&&(this.countWords=this.searchParams.get("word-count")),this.searchParams.has("type")&&(this.synonymType=this.searchParams.get("type")),this.searchParams.has("repeat")&&(this.synonymRepeat=this.searchParams.get("repeat"))},methods:{setLeftValue(){var n=document.getElementById("input-left"),s=document.getElementById("input-right"),e=document.querySelector(".slider > .range"),c=parseInt(n.getAttribute("min")),i=parseInt(n.getAttribute("max"));n.value=Math.min(parseInt(n.value),parseInt(s.value)-1),this.minSelectedLength=parseInt(n.value);var l=(n.value-c)/(i-c)*100;e.style.left=l+"%",e.style.right===""&&setRightValue()},setRightValue(){var n=document.getElementById("input-left"),s=document.getElementById("input-right"),e=document.querySelector(".slider > .range"),c=parseInt(s.getAttribute("min")),i=parseInt(s.getAttribute("max"));s.value=Math.max(parseInt(s.value),parseInt(n.value)+1),this.maxSelectedLength=parseInt(s.value);var l=(s.value-c)/(i-c)*100;e.style.right=100-l+"%",e.style.left===""&&setLeftValue()},toggleFilter(){this.showFilter=!this.showFilter}},watch:{slangWords:{immediate:!1,handler:function(){this.searchParams.has("slang")?this.searchParams.set("slang",this.slangWords):this.searchParams.append("slang",this.slangWords),this.slangWords==="slang-show"&&this.partOfSpeech!=="all"&&(this.partOfSpeech="all",this.searchParams.has("part-of-speech")?this.searchParams.set("part-of-speech",this.partOfSpeech):this.searchParams.append("part-of-speech",this.partOfSpeech)),m.emit("filterResults",this.searchParams)}},countWords:{immediate:!1,handler:function(){this.searchParams.has("word-count")?this.searchParams.set("word-count",this.countWords):this.searchParams.append("word-count",this.countWords),m.emit("filterResults",this.searchParams)}},minSelectedLength:{immediate:!1,handler:function(){this.searchParams.has("minlength")?this.searchParams.set("minlength",this.minSelectedLength):this.searchParams.append("minlength",this.minSelectedLength),m.emit("filterResults",this.searchParams)}},maxSelectedLength:{immediate:!1,handler:function(){this.searchParams.has("maxlength")?this.searchParams.set("maxlength",this.maxSelectedLength):this.searchParams.append("maxlength",this.maxSelectedLength),m.emit("filterResults",this.searchParams)}},synonymType:{immediate:!1,handler:function(){this.searchParams.has("type")?this.searchParams.set("type",this.synonymType):this.searchParams.append("type",this.synonymType),m.emit("filterResults",this.searchParams)}},partOfSpeech:{immediate:!1,handler:function(){this.slangWords==="slang-show"&&this.partOfSpeech!=="all"&&(this.partOfSpeech="all"),this.searchParams.has("part-of-speech")?this.searchParams.set("part-of-speech",this.partOfSpeech):this.searchParams.append("part-of-speech",this.partOfSpeech),m.emit("filterResults",this.searchParams)}},synonymRepeat:{immediate:!1,handler:function(){this.searchParams.has("repeat")?this.searchParams.set("repeat",this.synonymRepeat):this.searchParams.append("repeat",this.synonymRepeat),m.emit("filterResults",this.searchParams)}}}},te={class:"mb-4"},ne=["src"],se=["innerHTML"],ie=["aria-label"],ae={key:1,class:"flex justify-between items-center bg-white p-2 border-b"},re=["innerHTML"],le={key:2},oe={class:"search-filter-box bg-catskill-white p-4"},de=["innerHTML"],ce=["innerHTML"],ue={class:"slider-container my-6"},he={class:"multi-range-slider"},me=["max","value"],ge=["max","value"],be=t("div",{class:"slider"},[t("div",{class:"track"}),t("div",{class:"range",style:{right:"0"}})],-1),ye=["innerHTML"],ve={key:0,class:"search-filter-box bg-catskill-white p-4"},_e=["innerHTML"],pe={class:"flex items-center"},fe={class:"custom-radio-box"},we=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),xe=["innerHTML"],Le={class:"flex items-center"},Te={class:"custom-radio-box"},Me=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),He=["innerHTML"],ke={key:1,class:"search-filter-box bg-catskill-white p-4"},Se=["innerHTML"],Oe={class:"custom-radio-box"},We=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),qe=["innerHTML"],je={class:"custom-radio-box"},Ce=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),Fe=["innerHTML"],Ie={class:"custom-radio-box"},Pe=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),De=["innerHTML"],Ae={key:2,class:"search-filter-box bg-catskill-white p-4"},Ee=["innerHTML"],Re={class:"custom-radio-box"},Be=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),Ve=["innerHTML"],Ue={class:"custom-radio-box"},Ke=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),Ne=["innerHTML"],Qe={class:"custom-radio-box"},Je=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),ze=["innerHTML"],Ge={key:3,class:"search-filter-box bg-catskill-white p-4"},Ze=["innerHTML"],Xe={class:"custom-radio-box"},Ye=["disabled"],$e=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),et=["innerHTML"],tt={key:0,class:"custom-radio-box"},nt=["value","disabled"],st=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),it=["innerHTML"],at={key:4,class:"search-filter-box bg-catskill-white p-4"},rt=["innerHTML"],lt={class:"custom-radio-box"},ot=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),dt=["innerHTML"],ct={class:"flex items-center"},ut={class:"custom-radio-box"},ht=t("div",{class:"custom-radio"},[t("div",{class:"icon icon-square-check"}),t("div",{class:"icon icon-square"})],-1),mt=["innerHTML"];function gt(n,s,e,c,i,l){return a(),r("div",te,[i.showFilter?o("",!0):(a(),r("div",{key:0,onClick:s[0]||(s[0]=d=>l.toggleFilter()),class:"py-1 px-4 bg-white flex cursor-pointer border border-gray-900"},[t("img",{class:"my-auto",src:i.slidersIcon,width:"18",height:"18.4",alt:"icon",style:{"aspect-ratio":"1"}},null,8,ne),t("div",{class:"font-semibold m-auto",innerHTML:e.strings["filter-toggle-button"]},null,8,se),t("button",{type:"button",class:"my-auto mr-0 icon icon-chevron-down",style:{"aspect-ratio":"1"},"aria-label":e.strings["filter-toggle-button"]},null,8,ie)])),i.showFilter&&!i.mobile?(a(),r("div",ae,[t("h1",{class:"text-2xl",innerHTML:e.strings["amp-synonym-filter-header"]},null,8,re),t("div",{class:"close",onClick:s[1]||(s[1]=d=>l.toggleFilter()),role:"button",tabindex:"0"})])):o("",!0),i.showFilter?(a(),r("div",le,[t("div",oe,[t("h2",{class:"text-lg font-bold mb-3",innerHTML:e.strings["synonym-filter-header"]},null,8,de),t("label",{class:"font-medium",innerHTML:e.strings["filter-synonym-length-label"]},null,8,ce),t("div",ue,[t("div",he,[t("input",{type:"range",id:"input-left",name:"minlength",min:"1",max:e.maxLength,value:i.minSelectedLength},null,8,me),t("input",{type:"range",id:"input-right",name:"maxlength",min:"1",max:e.maxLength,value:i.maxSelectedLength},null,8,ge),be])]),t("p",{class:"text-sm",innerHTML:e.strings["filter-synonym-length-description"].replace("<min-length>",i.minSelectedLength).replace("<max-length>",i.maxSelectedLength)},null,8,ye)]),e.filter.type?(a(),r("div",ve,[t("label",{class:"font-medium",innerHTML:e.strings["narrow-down-synonyms-label"]},null,8,_e),t("div",pe,[t("div",fe,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"type",value:"all","onUpdate:modelValue":s[2]||(s[2]=d=>i.synonymType=d)},null,512),[[p,i.synonymType]]),we]),t("div",{class:"text-sm ml-2",innerHTML:e.strings["filter-all-synonyms"]},null,8,xe)]),t("div",Le,[t("div",Te,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"type",value:"popular","onUpdate:modelValue":s[3]||(s[3]=d=>i.synonymType=d)},null,512),[[p,i.synonymType]]),Me]),t("div",{class:"text-sm ml-2",innerHTML:e.strings["filter-only-popular-synonyms"]},null,8,He)])])):o("",!0),e.filter.slang?(a(),r("div",ke,[t("label",{class:"font-medium",innerHTML:e.strings["narrow-down-ugs-label"]},null,8,Se),t("label",Oe,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"slang",value:"all","onUpdate:modelValue":s[4]||(s[4]=d=>i.slangWords=d)},null,512),[[p,i.slangWords]]),We,t("span",{class:"text-sm ml-2",innerHTML:e.strings["all-with-or-without-ugs-filter"]},null,8,qe)]),t("label",je,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"slang",value:"slang-show","onUpdate:modelValue":s[5]||(s[5]=d=>i.slangWords=d)},null,512),[[p,i.slangWords]]),Ce,t("span",{class:"text-sm ml-2",innerHTML:e.strings["with-ugs-filter"]},null,8,Fe)]),t("label",Ie,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"slang",value:"slang-hide","onUpdate:modelValue":s[6]||(s[6]=d=>i.slangWords=d)},null,512),[[p,i.slangWords]]),Pe,t("span",{class:"text-sm ml-2",innerHTML:e.strings["without-ugs-filter"]},null,8,De)])])):o("",!0),e.filter.words?(a(),r("div",Ae,[t("label",{class:"font-medium",innerHTML:e.strings["narrow-down-words-count-label"]},null,8,Ee),t("label",Re,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"word-count",value:"all","onUpdate:modelValue":s[7]||(s[7]=d=>i.countWords=d)},null,512),[[p,i.countWords]]),Be,t("span",{class:"text-sm ml-2",innerHTML:e.strings["all-words-filter"]},null,8,Ve)]),t("label",Ue,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"word-count",value:"more-one","onUpdate:modelValue":s[8]||(s[8]=d=>i.countWords=d)},null,512),[[p,i.countWords]]),Ke,t("span",{class:"text-sm ml-2",innerHTML:e.strings["more-one-word-filter"]},null,8,Ne)]),t("label",Qe,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"word-count",value:"one","onUpdate:modelValue":s[9]||(s[9]=d=>i.countWords=d)},null,512),[[p,i.countWords]]),Je,t("span",{class:"text-sm ml-2",innerHTML:e.strings["one-word-filter"]},null,8,ze)])])):o("",!0),e.filter.partOfSpeech.all?(a(),r("div",Ge,[t("label",{class:"font-medium",innerHTML:e.strings["narrow-down-part-of-speech-label"]},null,8,Ze),t("label",Xe,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"part-of-speech",value:"all",disabled:i.slangWords==="slang-show","onUpdate:modelValue":s[10]||(s[10]=d=>i.partOfSpeech=d)},null,8,Ye),[[p,i.partOfSpeech]]),$e,t("span",{class:"text-sm ml-2",innerHTML:e.strings["all-parts-of-speech-filter"]},null,8,et)]),(a(!0),r(h,null,v(e.filter.partOfSpeech,(d,u)=>(a(),r(h,null,[d&&u!=="all"?(a(),r("label",tt,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"part-of-speech",value:u,disabled:i.slangWords==="slang-show","onUpdate:modelValue":s[11]||(s[11]=y=>i.partOfSpeech=y)},null,8,nt),[[p,i.partOfSpeech]]),st,t("span",{class:"text-sm ml-2",innerHTML:e.strings[`${e.locale}-${u.replace(/\.?([A-Z]+)/g,function(y,M){return"-"+M.toLowerCase()}).replace(/^-/,"")}-filter`]},null,8,it)])):o("",!0)],64))),256))])):o("",!0),e.filter.repeat?(a(),r("div",at,[t("label",{class:"font-medium",innerHTML:e.strings["narrow-down-repeat-words-label"]},null,8,rt),t("label",lt,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"repeat",value:"all","onUpdate:modelValue":s[12]||(s[12]=d=>i.synonymRepeat=d)},null,512),[[p,i.synonymRepeat]]),ot,t("span",{class:"text-sm ml-2",innerHTML:e.strings["all-repeat-words-filter"]},null,8,dt)]),t("div",ct,[t("div",ut,[_(t("input",{type:"radio",class:"radio text-teal-500 h-6 w-6",name:"repeat",value:"unique","onUpdate:modelValue":s[13]||(s[13]=d=>i.synonymRepeat=d)},null,512),[[p,i.synonymRepeat]]),ht]),t("div",{class:"text-sm ml-2",innerHTML:e.strings["unique-words-filter"]},null,8,mt)])])):o("",!0)])):o("",!0)])}const bt=k(ee,[["render",gt]]),yt={props:{results:{type:Array,required:!0},group:{type:String,required:!0},groups:{type:Array,required:!0},strings:{type:Object,required:!0},template:{type:String,required:!0},button:{type:String,required:!0},pageEntry:{type:Object,required:!0},buttons:{type:Array,required:!0},savedWords:{type:Object,required:!0},savedWordsCount:{type:Number,required:!0},siteKey:{type:String,required:!0},favorite:{type:Boolean,required:!1,default:!1},table:{type:String,required:!0},editFormStrings:{type:Object,required:!0},showAd:{type:Boolean,required:!1},adCodes:{type:[Object,Boolean],required:!1},mobile:{type:Boolean,required:!1},regex:{type:String,required:!0},menuIcon:{type:HTMLElement}},data(){return{items:{},itemsCount:0,keys:[],csrf:document.querySelector('meta[name="csrf-token"]').getAttribute("content"),favoriteShow:window.innerWidth>1022,hoverableMenu:null}},mounted(){this.keys=Object.keys(this.results),this.itemsCount=this.keys.length;var n=Object.keys(this.results).map(s=>this.results[s]);this.items=n},updated(){this.adType==="adpushup"&&this.triggerAdpushupAds()},computed:{...A(q,["adType"])},methods:{...X(q,["triggerAdpushupAds"]),ucFirst(n){return n&&n[0].toUpperCase()+n.slice(1)},showOptionsList(n,s,e){m.emit("menuIcon",n.target);var c=n.target;if(document.querySelectorAll(".menu-box").forEach(l=>{l.dataset.word!==s&&l.remove()}),document.querySelector(`.menu-box[data-word="${s}"]`)===null){var i=`<div class="menu-box" data-word="${s}"><div class="`+this.getListStyle(s)+`">
                            <div
                                class="option js-save-word"
                                data-category="${this.favorite?"favorite-synonyms":"synonyms"}"
                                data-value="${s}"
                                data-link="${e}"
                            >`+this.getIconAndText(s)+`</div>
                            <div class="option">
                                <a href="${this.route("saved.words")}">
                                <div class="icon icon-list-ul me-2"></div>
                                    ${this.buttons[1]}</a>
                            </div>
                        </div></div>`;c.insertAdjacentHTML("afterEnd",i)}else document.querySelector(`.menu-box[data-word="${s}"]`).remove()},getIconAndText(n){for(let[s,e]of Object.entries(this.savedWords))if(e.word===n)return'<div class="icon icon-trash me-2"></div>'+this.buttons[2];return'<div class="icon icon-heart me-2"></div>'+this.buttons[0]},getMenuIcon(n){for(let[s,e]of Object.entries(this.savedWords))if(e.word===n)return"show-options-list icon icon-heart-solid index-table-wildcard";return"show-options-list icon icon-heart"},getListStyle(n){for(let[s,e]of Object.entries(this.savedWords))if(e.word===n)return"options-list top-sm flex flex-wrap-reverse";return"options-list top-sm"},showEditForm(n,s){var e=n.target.closest(".js-synonym-item-wrapper");document.querySelectorAll(".js-edit-form").forEach(i=>{i.remove()});var c=`<div>
                <form
                        method="post"
                        action="/synonym/edit"
                        class="edit-form full js-edit-form"
                        data-category="${this.favorite?"favorite-synonyms":"synonyms"}"
                        data-index="${s}"
                    >
                        <input type="hidden" name="_token" value="${this.csrf}" />
                        <h2
                            class="text-xl font-bold mb-3"
                        >${this.editFormStrings["entry-edit-form-title"]}</h2>
                        <div class="mb-3">
                            <label class="label">
                                <span
                                    class="font-bold"
                                >${this.editFormStrings["entry-edit-form-action-label"]}</span>
                                <input
                                    type="hidden"
                                    name="g-recaptcha-response"
                                />
                            </label>
                            <div class="relative w-full">
                                <select class="js-change-form-action" data-word="${s}" data-category="${this.favorite?"favorite-synonyms":"synonyms"}"
                                >
                                    <option
                                        value="edit"
                                        selected
                                    >${this.editFormStrings["entry-edit-form-edit-action"]}</option>
                                    <option
                                        value="remove"
                                    >${this.editFormStrings["entry-edit-form-remove-action"]}</option>
                                    <option
                                        value="suggest"
                                    >${this.editFormStrings["entry-edit-form-suggest-action"]}</option>
                                </select>
                                <div
                                    class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"
                                >
                                    <svg
                                        class="fill-current h-4 w-4"
                                        xmlns="http://www.w3.org/2000/svg"
                                        viewBox="0 0 20 20"
                                    >
                                        <path
                                            d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"
                                        />
                                    </svg>
                                </div>
                            </div>
                        </div>
                        <div class="fields">
                            <div class="mb-3">
                                <label class="label">${this.editFormStrings["entry-edit-form-topic-label"]}</label>
                                <input class="input" name="topic" type="text" value="${this.pageEntry.word}" readonly>
                            </div>
                            <div class="mb-3">
                                <label
                                    class="label"
                                >${this.editFormStrings["entry-edit-form-wrong-entry-label"]}</label>
                                <input
                                    class="input"
                                    name="wrong_entry"
                                    type="text"
                                    value="${s}"
                                    readonly
                                />
                            </div>
                            <div class="mb-3">
                                <label
                                    class="label"
                                >${this.editFormStrings["entry-edit-form-right-entry-label"]}</label>
                                <input
                                    class="input"
                                    name="right_entry"
                                    type="text"
                                    pattern="[${this.regex}]+"
                                    required
                                />
                            </div>
                            <div class="mb-3">
                                <label
                                    class="label"
                                >${this.editFormStrings["entry-edit-form-optional-comment-label"]}</label>
                                <textarea
                                    class="input"
                                    name="comments"
                                    rows="5"
                                ></textarea>
                            </div>
                        </div>
                        <div class="flex items-center justify-between">
                            <button
                                class="button"
                                type="submit"
                                aria-label="${this.editFormStrings.send}"
                            >${this.editFormStrings.send}</button>
                            <button
                                type="button"
                                class="js-hide-edit-form-btn bg-gray-300 rounded rounded-sm py-2 px-4 font-bold ml-auto"
                                data-index="${s}"
                                data-category="${this.favorite?"favorite-synonyms":"synonyms"}"
                                aria-label="${this.editFormStrings.cancel}"
                            >${this.editFormStrings.cancel}</button>
                        </div>
                </form>
            </div>`;e.insertAdjacentHTML("beforeend",c),document.querySelector(`.edit-button[data-index="${s}"]`).classList.add("hidden"),document.querySelector(`.edit-form[data-index="${s}"]`).scrollIntoView({behavior:"smooth"})},urlencode(n){return n=n+"",encodeURIComponent(n).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/~/g,"%7E").replace(/%20/g,"+")},onMouseOver(n){this.hoverableMenu=n}},watch:{results:function(){this.keys=Object.keys(this.results),this.itemsCount=this.keys.length;var n=Object.keys(this.results).map(s=>this.results[s]);this.items=n}}},vt={key:0},_t={class:"index-table-head",style:{"z-index":"10"}},pt=["innerHTML"],ft={class:"border border-gray-300 bg-light mb-6 js-synonym-item-wrapper"},wt=["onMouseover"],xt=["href","innerHTML","alt"],Lt=["innerHTML","alt"],Tt={key:2,class:"hoverable-menu h-full flex items-center"},Mt=["onClick"],Ht=["onClick","data-index"],kt=["innerHTML"];function St(n,s,e,c,i,l){return Object.keys(i.items).length!==0?(a(),r("div",vt,[t("div",_t,[t("div",{class:"index-table-head-cell flex font-bold",innerHTML:e.group},null,8,pt)]),t("div",ft,[t("div",{class:O(e.mobile?"flex flex-wrap-wrap pr-5":"flex flex-wrap-wrap")},[(a(!0),r(h,null,v(i.items,d=>(a(),r("div",{class:"synonym-item",onMouseover:u=>l.onMouseOver(d.id)},[d.show_link?(a(),r("a",{key:0,class:O(["synonym-link break-all synonym-text",e.favorite?"bg-shalimar font-bold":""]),href:n.route("synonyms.search",l.urlencode(d.word.toLowerCase())),innerHTML:d.word,alt:d.word+" als Synonym für "+e.pageEntry.word},null,10,xt)):(a(),r("span",{key:1,class:O(["break-all synonym-text",e.favorite?"bg-shalimar font-bold":""]),innerHTML:d.word,alt:d.word+" als Synonym für "+e.pageEntry.word},null,10,Lt)),i.hoverableMenu===d.id?(a(),r("div",Tt,[i.favoriteShow?(a(),r("div",{key:0,onClick:u=>l.showOptionsList(u,d.word,d.show_link),class:O(l.getMenuIcon(d.word))},null,10,Mt)):o("",!0),t("button",{class:"edit-button",onClick:u=>l.showEditForm(u,d.word),"data-index":d.word,"aria-label":"Edit"},null,8,Ht)])):o("",!0)],40,wt))),256))],2)]),e.showAd&&e.adCodes.code?(a(),r("div",{key:0,style:{"min-height":"330px",display:"flex","justify-content":"center","align-items":"center"},class:"my-5 text-center",innerHTML:e.adCodes.code},null,8,kt)):o("",!0)])):o("",!0)}const R=k(yt,[["render",St]]),Ot={props:{entries:{type:Object,required:!0},pagination:{type:Object,required:!0},strings:{type:Object,required:!0},editFormStrings:{type:Object,required:!0},buttons:{type:Array,required:!0},pageEntry:{type:Object,required:!0},siteKey:{type:String,required:!0},regex:{type:String,required:!0},disableRecaptcha:{type:Boolean,required:!0}},components:{TableSegment:R},data(){return{savedWords:{},savedWordsCount:0,group:"",sentence:"",entriesData:Object.assign({},this.entries),paginationData:Object.assign({},this.pagination),searchParams:new URLSearchParams(window.location.search).toString(),hasFavoriteSynonyms:Object.entries(this.entries).length!==0,menuIcon:null}},created(){var n=this;window.addEventListener("scroll",this.handleScroll),m.on("menuIcon",s=>{this.menuIcon=s}),m.on("savedWords",s=>{this.savedWords=s}),m.on("savedWordsCount",s=>{this.savedWordsCount=s;const e=document.getElementById("savedWordsCounter");e&&(e.innerHTML="("+this.savedWordsCount+")");const c=document.getElementById("wordCounter");c&&(c.innerHTML="("+this.savedWordsCount+")")}),m.on("filterResults",s=>{this.searchParams!==s.toString()&&(this.searchParams=s.toString(),axios.post("/favorite-synonym-filter/"+this.pageEntry.word.toLowerCase()+"?"+s.toString()).then(({data:e})=>{this.entriesData=Object.assign({},e.items),this.paginationData=Object.assign({},e.pagination),this.hasFavoriteSynonyms=Object.entries(this.entriesData).length!==0}).catch(function(e){console.log(e)}))}),n.updateSavedWords()},mounted(){var n=this,s="";s=s.replace(/^[ und]+|[ und]+$/g,""),document.body.addEventListener("change",function(e){if(e.target.classList.contains("js-change-form-action")&&e.target.dataset.category==="favorite-synonyms"){var c=e.target.value,i=e.target.dataset.word,l=e.target.closest(".edit-form"),d=l.querySelector(".fields");switch(c){case"edit":d.innerHTML=`
                            <div class="mb-3">
                                <label class="label">${n.editFormStrings["entry-edit-form-topic-label"]}</label>
                                <input class="input" name="topic" type="text" value="${n.pageEntry.word}" readonly>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-wrong-entry-label"]}
                                </label>
                                <input class="input" name="wrong_entry" type="text" value='${i}' readonly>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-right-entry-label"]}
                                </label>
                                <input class="input" name="right_entry" type="text" pattern="[${n.regex}]+" required>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-optional-comment-label"]}
                                </label>
                                <textarea class="input" name="comments" rows="5"></textarea>
                            </div>`,l.setAttribute("action","/synonym/edit");break;case"remove":d.innerHTML=`
                                <div class="mb-3">
                                    <label class="label">
                                        ${n.editFormStrings["entry-edit-form-comment-label"]}
                                    </label>
                                    <input class="hidden" name="word" type="text" value='${n.pageEntry.word}' readonly>
                                    <input class="hidden" name="synonym" type="text" value='${i}' readonly>
                                    <textarea class="input" name="comment" rows="5" required></textarea>
                                </div>`,l.setAttribute("action","/synonym/remove");break;case"suggest":d.innerHTML=`
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-new-entry-label"]}
                                </label>
                                <input type="text" class="hidden" name="word" value='${n.pageEntry.word}' required>
                                <input class="input" name="synonym" type="text" pattern="[${n.regex}]+" required>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-optional-comment-label"]}
                                </label>
                                <textarea class="input" name="comment" rows="5"></textarea>
                            </div>`,l.setAttribute("action","/synonym/suggestion");break}}}),document.body.addEventListener("submit",function(e){if(e.target.classList.contains("js-edit-form")&&e.target.dataset.category==="favorite-synonyms"){e.preventDefault(),document.querySelectorAll(".editFormErrors").forEach(l=>{l.remove()});var c=e.target;if(!n.disableRecaptcha)E.load(n.siteKey).then(l=>{l.execute("word").then(d=>{var u=d,y=new FormData(c);y.set("g-recaptcha-response",u),n.formSubmit(c,y)})});else{var i=new FormData(c);n.formSubmit(c,i)}}}),document.body.addEventListener("click",function(e){if(e.target.classList.contains("js-save-word")&&e.target.dataset.category==="favorite-synonyms"){var c=e.target.dataset.value,i=e.target.dataset.link;n.saveWord(c,i)}else if(e.target.classList.contains("js-hide-edit-form-btn")&&e.target.dataset.category==="favorite-synonyms"){var l=e.target.dataset.index;e.target.closest("form").closest("div").remove(),document.querySelector(`.edit-button[data-index="${l}"]`).classList.remove("hidden")}})},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll)},methods:{formSubmit(n,s){axios.post(n.getAttribute("action"),s).then(({data:e})=>{n.insertAdjacentHTML("beforebegin",`<div class="p-3 mt-2 rounded bg-teal-200 text-teal-800 mb-3 editFormErrors">${e.message}</div>`)}).catch(function(e){n.insertAdjacentHTML("beforebegin",`<div class="p-3 mt-2 rounded bg-red-200 text-red-800 mb-3 editFormErrors">${e.response.data.message}</div>`)})},updateSavedWords(){localStorage.words&&(this.savedWords=JSON.parse(localStorage.words),this.savedWordsCount=Object.keys(this.savedWords).length)},handleScroll(){let n;if(document.querySelectorAll(".favorite-synonyms-table .index-table-head").forEach(s=>{this.checkIfScrolledOff(s)&&(n=s)}),this.$refs.sticky!==void 0)if(n===void 0||this.$refs.table.getBoundingClientRect().bottom<24)this.$refs.sticky.classList.add("hidden");else{let s=n;this.$refs.sticky.innerHTML=n.innerHTML,this.$refs.sticky.children[0].style.width=`${s.getBoundingClientRect().width}px`,this.$refs.sticky.style.zIndex=parseInt(s.style.zIndex)+1,this.$refs.sticky.classList.remove("hidden")}},checkIfScrolledOff(n){return n.getBoundingClientRect().top<0},toPage(n){var s=new URLSearchParams(this.searchParams.toString());s.has("page")?s.set("page",n):s.append("page",n),window.location.search=s},saveWord(n,s){var e=document.querySelector(".option[data-value='"+n+"']");for(let[i,l]of Object.entries(this.savedWords))if(l.word===n){this.removeWord(i),e.innerHTML='<div class="icon icon-heart me-2"></div>'+this.buttons[0],document.querySelector(`.menu-box[data-word="${n}"]`).remove(),this.menuIcon.setAttribute("class","show-options-list icon icon-heart"),this.menuIcon.classList.remove("index-table-wildcard");return}var c=this.strings["synonyms-topic"].replace("<letters>",this.pageEntry.word);this.savedWords[this.savedWordsCount]={topic:c,word:n,category:"synonym",hasLink:s==="true",entry:this.pageEntry.word},this.savedWordsCount++,m.emit("savedWords",this.savedWords),m.emit("savedWordsCount",this.savedWordsCount),localStorage.setItem("words",JSON.stringify(this.savedWords)),document.cookie="countSavedWord="+this.savedWordsCount,e.innerHTML='<div class="icon icon-trash me-2"></div>'+this.buttons[2],document.querySelector(`.menu-box[data-word="${n}"]`).remove(),this.menuIcon.setAttribute("class","show-options-list icon icon-heart-solid"),this.menuIcon.classList.add("index-table-wildcard")},removeWord(n){var s={};for(let[e,c]of Object.entries(this.savedWords))e!==n&&(s[Object.keys(s).length]=c);this.savedWords=s,this.savedWordsCount--,m.emit("savedWords",this.savedWords),m.emit("savedWordsCount",this.savedWordsCount),localStorage.setItem("words",JSON.stringify(this.savedWords)),document.cookie="countSavedWord="+this.savedWordsCount}},watch:{hasFavoriteSynonyms:{immediate:!0,handler:function(){m.emit("hasFavoriteSynonyms",this.hasFavoriteSynonyms)}}}},Wt={key:0,ref:"table",class:"synonyms-table favorite-synonyms-table",id:"anchor-link-to-most-favorite"},qt={ref:"sticky",class:"fixed top-0 hidden"},jt={key:0,class:"text-center sm:justify-center block md:flex"},Ct=["innerHTML","aria-label"],Ft=["innerHTML","aria-label"],It=["innerHTML","aria-label","onClickOnce"],Pt=["innerHTML","aria-label"],Dt=["innerHTML","aria-label","onClickOnce"],At=["innerHTML","aria-label"],Et=["innerHTML","aria-label"];function Rt(n,s,e,c,i,l){const d=x("TableSegment");return Object.entries(i.entriesData).length!==0?(a(),r("div",Wt,[t("div",null,[t("div",qt,null,512)]),(a(!0),r(h,null,v(i.entriesData,(u,y)=>(a(),j(d,{key:y,results:u,group:y,groups:Object.keys(i.entriesData),strings:e.strings,template:e.strings.template,button:e.strings.button,pageEntry:e.pageEntry,buttons:e.buttons,"saved-words":i.savedWords,"saved-words-count":i.savedWordsCount,favorite:!0,siteKey:e.siteKey,"edit-form-strings":e.editFormStrings,table:"anchor-link-to-most-favorite",regex:e.regex,"menu-icon":i.menuIcon},null,8,["results","group","groups","strings","template","button","pageEntry","buttons","saved-words","saved-words-count","siteKey","edit-form-strings","regex","menu-icon"]))),128)),e.buttons!==null&&i.paginationData.last_page>1?(a(),r("div",jt,[i.paginationData.current_page>1?(a(),r("button",{key:0,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[3],onClickOnce:s[0]||(s[0]=u=>l.toPage(1)),"aria-label":e.buttons[3]},null,40,Ct)):o("",!0),i.paginationData.current_page>1?(a(),r("button",{key:1,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[4],"aria-label":e.buttons[4],onClickOnce:s[1]||(s[1]=u=>l.toPage(i.paginationData.current_page-1))},null,40,Ft)):o("",!0),i.paginationData.current_page-n.n>0?(a(),r(h,{key:2},v([2,1],u=>t("button",{class:"px-2 border hover:bg-teal-500",innerHTML:i.paginationData.current_page-u,"aria-label":i.paginationData.current_page-u,onClickOnce:y=>l.toPage(i.paginationData.current_page-u)},null,40,It)),64)):o("",!0),t("button",{class:"px-2 border bg-teal-500",innerHTML:i.paginationData.current_page,"aria-label":i.paginationData.current_page},null,8,Pt),i.paginationData.current_page+n.n<=i.paginationData.last_page?(a(),r(h,{key:3},v(2,u=>t("button",{class:"px-2 border hover:bg-teal-500",innerHTML:i.paginationData.current_page+u,"aria-label":i.paginationData.current_page+u,onClickOnce:y=>l.toPage(i.paginationData.current_page+u)},null,40,Dt)),64)):o("",!0),i.paginationData.current_page!==i.paginationData.last_page?(a(),r("button",{key:4,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[5],"aria-label":e.buttons[5],onClickOnce:s[2]||(s[2]=u=>l.toPage(i.paginationData.current_page+1))},null,40,At)):o("",!0),i.paginationData.current_page!==i.paginationData.last_page?(a(),r("button",{key:5,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[6],"aria-label":e.buttons[6],onClickOnce:s[3]||(s[3]=u=>l.toPage(i.paginationData.last_page))},null,40,Et)):o("",!0)])):o("",!0)],512)):o("",!0)}const Bt=k(Ot,[["render",Rt]]),Vt={props:{entries:{type:Object,required:!0},pagination:{type:Object,required:!0},strings:{type:Object,required:!0},editFormStrings:{type:Object,required:!0},buttons:{type:Array,required:!0},pageEntry:{type:Object,required:!0},siteKey:{type:String,required:!0},groups:{type:Array,required:!0},regex:{type:String,required:!0},disableRecaptcha:{type:Boolean,required:!0}},mixins:[Y],components:{TableSegment:R},computed:{...A(q,["ads"])},data(){return{sortOrder:{by:"length",asc:!0},savedWords:{},savedWordsCount:0,group:"",sentence:"",entriesData:Object.assign({},this.entries),paginationData:Object.assign({},this.pagination),searchParams:new URLSearchParams(window.location.search).toString(),hasFavoriteSynonyms:!0,mobile:window.innerWidth<768,menuIcon:null,clearIcon:B}},created(){var n=this;m.on("menuIcon",s=>{this.menuIcon=s}),m.on("sort",s=>{this.sortOrder=s}),m.on("savedWords",s=>{this.savedWords=s}),m.on("savedWordsCount",s=>{this.savedWordsCount=s;const e=document.getElementById("savedWordsCounter");e&&(e.innerHTML="("+this.savedWordsCount+")");const c=document.getElementById("wordCounter");c&&(c.innerHTML="("+this.savedWordsCount+")")}),m.on("filterResults",s=>{this.searchParams!==s.toString()&&(this.searchParams=s.toString(),axios.post("/synonym-filter/"+this.pageEntry.word.toLowerCase()+"?"+s.toString()).then(({data:e})=>{this.entriesData=Object.assign({},e.items),this.paginationData=Object.assign({},e.pagination)}).catch(function(e){console.log(e)}))}),m.on("hasFavoriteSynonyms",s=>{this.hasFavoriteSynonyms=s}),n.updateSavedWords()},mounted(){var n=this,s="";s=s.replace(/^[ und]+|[ und]+$/g,""),document.body.addEventListener("change",function(e){if(e.target.classList.contains("js-change-form-action")&&e.target.dataset.category==="synonyms"){var c=e.target.value,i=e.target.dataset.word,l=e.target.closest(".edit-form"),d=l.querySelector(".fields");switch(c){case"edit":d.innerHTML=`
                            <div class="mb-3">
                                <label class="label">${n.editFormStrings["entry-edit-form-topic-label"]}</label>
                                <input class="input" name="topic" type="text" value="${n.pageEntry.word}" readonly>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-wrong-entry-label"]}
                                </label>
                                <input class="input" name="wrong_entry" type="text" value='${i}' readonly>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-right-entry-label"]}
                                </label>
                                <input class="input" name="right_entry" type="text" pattern="[${n.regex}]+" required>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-optional-comment-label"]}
                                </label>
                                <textarea class="input" name="comments" rows="5"></textarea>
                            </div>`,l.setAttribute("action","/synonym/edit");break;case"remove":d.innerHTML=`
                                <div class="mb-3">
                                    <label class="label">
                                        ${n.editFormStrings["entry-edit-form-comment-label"]}
                                    </label>
                                    <input class="hidden" name="word" type="text" value='${n.pageEntry.word}' readonly>
                                    <input class="hidden" name="synonym" type="text" value='${i}' readonly>
                                    <textarea class="input" name="comment" rows="5" required></textarea>
                                </div>`,l.setAttribute("action","/synonym/remove");break;case"suggest":d.innerHTML=`
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-new-entry-label"]}
                                </label>
                                <input type="text" class="hidden" name="word" value='${n.pageEntry.word}' required>
                                <input class="input" name="synonym" type="text" pattern="[${n.regex}]+" required>
                            </div>
                            <div class="mb-3">
                                <label class="label">
                                    ${n.editFormStrings["entry-edit-form-optional-comment-label"]}
                                </label>
                                <textarea class="input" name="comment" rows="5"></textarea>
                            </div>`,l.setAttribute("action","/synonym/suggestion");break}}}),document.body.addEventListener("submit",function(e){if(e.target.classList.contains("js-edit-form")&&e.target.dataset.category==="synonyms"){e.preventDefault(),document.querySelectorAll(".editFormErrors").forEach(l=>{l.remove()});var c=e.target;if(!n.disableRecaptcha)E.load(n.siteKey).then(l=>{l.execute("word").then(d=>{var u=d,y=new FormData(c);y.set("g-recaptcha-response",u),n.formSubmit(c,y)})});else{var i=new FormData(c);n.formSubmit(c,i)}}}),document.body.addEventListener("click",function(e){if(e.target.classList.contains("js-save-word")&&e.target.dataset.category==="synonyms"){var c=e.target.dataset.value,i=e.target.dataset.link;n.saveWord(c,i)}else if(e.target.classList.contains("js-hide-edit-form-btn")&&e.target.dataset.category==="synonyms"){var l=e.target.dataset.index;e.target.closest("form").closest("div").remove(),document.querySelector(`.edit-button[data-index="${l}"]`).classList.remove("hidden")}})},methods:{formSubmit(n,s){axios.post(n.getAttribute("action"),s).then(({data:e})=>{n.insertAdjacentHTML("beforebegin",`<div class="p-3 mt-2 rounded bg-teal-200 text-teal-800 mb-3 editFormErrors">${e.message}</div>`)}).catch(function(e){n.insertAdjacentHTML("beforebegin",`<div class="p-3 mt-2 rounded bg-red-200 text-red-800 mb-3 editFormErrors">${e.response.data.message}</div>`)})},updateSavedWords(){localStorage.words&&(this.savedWords=JSON.parse(localStorage.words),this.savedWordsCount=Object.keys(this.savedWords).length)},sentenceGenerate(){var n=this,s=document.getElementById("anchor-link-to-example-sentence-generator");axios.post("/synonym-sentences-generate",new FormData(s)).then(({data:e})=>{document.querySelector("#create-sentences-error").classList.add("hidden"),document.querySelector('select[name="group"]').classList.remove("border-red-500"),document.querySelector('select[name="group"]').classList.add("border-gray-400"),document.querySelector('input[name="text"]').classList.remove("border-red-500"),document.querySelector('input[name="text"]').classList.add("border-gray-400"),document.querySelector(".sentences-result").classList.remove("hidden"),document.querySelector(".sentences").innerHTML=e}).catch(function(e){var c=e.response.data.message;document.querySelector(".sentences-result").classList.add("hidden"),c==="synonym-contain-error"?(document.querySelector("#create-sentences-error").innerHTML=n.strings["synonym-contain-error"],document.querySelector("#create-sentences-error").classList.remove("hidden"),document.querySelector('input[name="text"]').classList.remove("border-gray-400"),document.querySelector('input[name="text"]').classList.add("border-red-500")):c==="no-synonym-group-selected-error"&&(document.querySelector("#create-sentences-error").innerHTML=n.strings["no-synonym-group-selected-error"],document.querySelector("#create-sentences-error").classList.remove("hidden"),document.querySelector('select[name="group"]').classList.remove("border-gray-400"),document.querySelector('select[name="group"]').classList.add("border-red-500"),document.querySelector('input[name="text"]').classList.remove("border-red-500"),document.querySelector('input[name="text"]').classList.add("border-gray-400"))})},sentencesHide(){document.querySelector(".sentences-result").classList.add("hidden")},toPage(n){window.location.hash="";var s=new URLSearchParams(this.searchParams.toString());s.has("page")?s.set("page",n):s.append("page",n),window.location.search=s},saveWord(n,s){var e=document.querySelector(".option[data-value='"+n+"']");for(let[i,l]of Object.entries(this.savedWords))if(l.word===n){this.removeWord(i),e.innerHTML='<div class="icon icon-heart me-2"></div>'+this.buttons[0],document.querySelector(`.menu-box[data-word="${n}"]`).remove(),this.menuIcon.setAttribute("class","show-options-list icon icon-heart"),this.menuIcon.classList.remove("index-table-wildcard");return}var c=this.strings["synonyms-topic"].replace("<letters>",this.pageEntry.word);this.savedWords[this.savedWordsCount]={topic:c,word:n,category:"synonym",hasLink:s==="true",entry:this.pageEntry.word},this.savedWordsCount++,m.emit("savedWords",this.savedWords),m.emit("savedWordsCount",this.savedWordsCount),localStorage.setItem("words",JSON.stringify(this.savedWords)),document.cookie="countSavedWord="+this.savedWordsCount,e.innerHTML='<div class="icon icon-trash me-2"></div>'+this.buttons[2],document.querySelector(`.menu-box[data-word="${n}"]`).remove(),this.menuIcon.setAttribute("class","show-options-list icon icon-heart-solid"),this.menuIcon.classList.add("index-table-wildcard")},removeWord(n){var s={};for(let[e,c]of Object.entries(this.savedWords))e!==n&&(s[Object.keys(s).length]=c);this.savedWords=s,this.savedWordsCount--,m.emit("savedWords",this.savedWords),m.emit("savedWordsCount",this.savedWordsCount),localStorage.setItem("words",JSON.stringify(this.savedWords)),document.cookie="countSavedWord="+this.savedWordsCount}}},Ut={key:0},Kt={ref:"table",class:"index-table synonyms-table",id:"anchor-link-to-table"},Nt={ref:"sticky",class:"fixed top-0 hidden"},Qt={key:0,class:"text-center sm:justify-center block md:flex"},Jt=["innerHTML","aria-label"],zt=["innerHTML","aria-label"],Gt=["innerHTML","aria-label","onClickOnce"],Zt=["innerHTML","aria-label"],Xt=["innerHTML","aria-label","onClickOnce"],Yt=["innerHTML","aria-label"],$t=["innerHTML","aria-label"],en={class:"w-full mb-6 md:mb-0"},tn=["innerHTML"],nn=["innerHTML"],sn=["value"],an=["value"],rn=["placeholder"],ln=["innerHTML"],on={class:"w-full my-6 md:mb-0"},dn=["innerHTML"],cn={class:"relative inline-block xl:w-2/5 lg:1/2 w-full"},un=["innerHTML"],hn=["innerHTML"],mn=["value","innerHTML"],gn=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),bn=["innerHTML","aria-label"],yn=t("div",{class:"text-red-600 text-sm mt-4 hidden font-bold",id:"create-sentences-error"},null,-1),vn={key:0,class:"my-5 text-center"},_n=["innerHTML"],pn={class:"w-full p-6 border border-gray-300 mb-4 sentences-result hidden break-words"},fn={class:"flex justify-between -align-center"},wn=["innerHTML"],xn=["src"],Ln=t("div",{class:"sentences"},null,-1),Tn=["innerHTML"];function Mn(n,s,e,c,i,l){var u,y,M;const d=x("TableSegment");return Object.entries(i.entriesData).length!==0?(a(),r("div",Ut,[t("div",Kt,[t("div",null,[t("div",Nt,null,512)]),(a(!0),r(h,null,v(i.entriesData,(g,L,T)=>{var S,b,H,C,F,I;return a(),j(d,{key:L,results:g,group:L,groups:Object.keys(i.entriesData),strings:e.strings,template:e.strings.template,button:e.strings.button,pageEntry:e.pageEntry,buttons:e.buttons,"saved-words":i.savedWords,"saved-words-count":i.savedWordsCount,siteKey:e.siteKey,"edit-form-strings":e.editFormStrings,"show-ad":n.ads&&n.ads===!1?!1:T===1&&new Boolean((S=n.ads)==null?void 0:S.ad4)||T===5&&new Boolean((b=n.ads)==null?void 0:b.ad5),"ad-codes":n.ads&&n.ads!==!1&&T===1?{code:(H=n.ads)==null?void 0:H.ad4_code,mcode:(C=n.ads)==null?void 0:C.ad4_mobile_code}:n.ads!==!1&&T===5?{code:(F=n.ads)==null?void 0:F.ad5_code,mcode:(I=n.ads)==null?void 0:I.ad5_mobile_code}:!1,mobile:i.mobile,table:"anchor-link-to-table",regex:e.regex,"menu-icon":i.menuIcon},null,8,["results","group","groups","strings","template","button","pageEntry","buttons","saved-words","saved-words-count","siteKey","edit-form-strings","show-ad","ad-codes","mobile","regex","menu-icon"])}),128)),e.buttons!==null&&i.paginationData.last_page>1?(a(),r("div",Qt,[i.paginationData.current_page>1?(a(),r("button",{key:0,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[3],"aria-label":e.buttons[3],onClickOnce:s[0]||(s[0]=g=>l.toPage(1))},null,40,Jt)):o("",!0),i.paginationData.current_page>1?(a(),r("button",{key:1,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[4],"aria-label":e.buttons[4],onClickOnce:s[1]||(s[1]=g=>l.toPage(i.paginationData.current_page-1))},null,40,zt)):o("",!0),i.paginationData.current_page-n.n>0?(a(),r(h,{key:2},v([2,1],g=>t("button",{class:"px-2 border hover:bg-teal-500",innerHTML:i.paginationData.current_page-g,"aria-label":i.paginationData.current_page-g,onClickOnce:L=>l.toPage(i.paginationData.current_page-g)},null,40,Gt)),64)):o("",!0),t("button",{class:"px-2 border bg-teal-500",innerHTML:i.paginationData.current_page,"aria-label":i.paginationData.current_page},null,8,Zt),i.paginationData.current_page+n.n<=i.paginationData.last_page?(a(),r(h,{key:3},v(2,g=>t("button",{class:"px-2 border hover:bg-teal-500",innerHTML:i.paginationData.current_page+g,"aria-label":i.paginationData.current_page+g,onClickOnce:L=>l.toPage(i.paginationData.current_page+g)},null,40,Xt)),64)):o("",!0),i.paginationData.current_page!==i.paginationData.last_page?(a(),r("button",{key:4,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[5],"aria-label":e.buttons[5],onClickOnce:s[2]||(s[2]=g=>l.toPage(i.paginationData.current_page+1))},null,40,Yt)):o("",!0),i.paginationData.current_page!==i.paginationData.last_page?(a(),r("button",{key:5,class:"px-2 border hover:bg-teal-500",innerHTML:e.buttons[6],"aria-label":e.buttons[6],onClickOnce:s[3]||(s[3]=g=>l.toPage(i.paginationData.last_page))},null,40,$t)):o("",!0)])):o("",!0)],512),t("form",{id:"anchor-link-to-example-sentence-generator",class:"w-full p-6 border border-gray-300 my-12",onSubmit:s[6]||(s[6]=G((...g)=>l.sentenceGenerate&&l.sentenceGenerate(...g),["prevent"]))},[t("div",en,[t("h2",{class:"text-gray-900 font-semibold text-base",innerHTML:e.strings["form-headline-sentences"]},null,8,tn),t("label",{class:"block text-gray-700 text-sm mb-2",innerHTML:e.strings["sentence-field-label"]},null,8,nn),t("input",{class:"hidden",name:"word",type:"text",value:e.pageEntry.word},null,8,sn),t("input",{class:"hidden",name:"word_id",type:"text",value:e.pageEntry.id},null,8,an),_(t("input",{class:"appearance-none block w-full text-gray-700 border border-gray-400 rounded py-3 px-4 mb-1 leading-tight focus:outline-none font-normal text-sm",name:"text",type:"text",placeholder:e.strings["sentence-placeholder"],maxlength:"140","onUpdate:modelValue":s[4]||(s[4]=g=>i.sentence=g)},null,8,rn),[[J,i.sentence]]),t("p",{class:"text-xs text-gray-600",innerHTML:e.strings["letter-count-label"]+" <span class='text-gray-900'><span id='sentenceLength'>"+i.sentence.length+"</span>/140</span>"},null,8,ln)]),t("div",on,[t("label",{class:"block text-gray-900 text-sm font-semibold mb-2 text-base",innerHTML:e.strings["group-field-label"]},null,8,dn),t("div",cn,[_(t("select",{class:"block appearance-none w-full bg-white border border-gray-400 hover:border-gray-500 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:ring",name:"group","onUpdate:modelValue":s[5]||(s[5]=g=>i.group=g)},[t("option",{value:"",class:"bg-white text-gray-700",innerHTML:e.strings["group-select-name"]},null,8,un),t("option",{value:"alle",class:"bg-white text-gray-700",innerHTML:e.strings.all},null,8,hn),(a(!0),r(h,null,v(e.groups,(g,L)=>(a(),r("option",{class:"bg-white text-gray-700",value:g,innerHTML:e.strings["synonym-group-number"]+" "+(L+1)+": "+g},null,8,mn))),256))],512),[[z,i.group]]),gn])]),t("button",{class:"bg-teal-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:ring mt-10",type:"submit",innerHTML:e.strings["create-sentences"],"aria-label":e.strings["create-sentences"]},null,8,bn),yn],32),((u=n.ads)==null?void 0:u.ad7)==="1"&&((y=n.ads)!=null&&y.ad7_code)?(a(),r("div",vn,[t("div",{innerHTML:(M=n.ads)==null?void 0:M.ad7_code},null,8,_n)])):o("",!0),t("div",pn,[t("div",fn,[t("h2",{class:"text-gray-900 font-semibold text-base mb-2",innerHTML:e.strings["form-headline-sentences"]},null,8,wn),t("img",{src:i.clearIcon,width:"13.5",height:"18.4",alt:"clear",onClick:s[7]||(s[7]=(...g)=>l.sentencesHide&&l.sentencesHide(...g))},null,8,xn)]),Ln])])):i.hasFavoriteSynonyms?o("",!0):(a(),r("div",{key:1,class:"text-center mt-6 font-bold empty-search-results",innerHTML:e.strings["no-synonym-search-results"]},null,8,Tn))}const Hn=k(Vt,[["render",Mn]]),kn={layout:P,components:{SearchResults:Hn,SearchFavorite:Bt,SearchFilter:bt,SearchForm:N,InternalLinksSection:K,AppLayout:P,Ads:V,Feedback:U,Head:$},props:{word:Object,results:Object,synonyms:Object,tableStrings:Object,otherSynonyms:Array,placeholders:Object,clue:String,internalLinks:[Object,Array],internalLinkTableStrings:Object,topics:Object,regex:String,buttons:Array,editFormStrings:Object,strings:Object,headlines:Array,contents:Array,FAQHeadlines:Array,FAQContents:Array,allWordGroups:Array,filterOptions:Object,maxLength:Number,favoriteSynonyms:Object,FAQJson:String,relQuestions:Array,wordConjugation:Array,noindexFollow:Boolean},computed:{locale(){return this.$page.props.layoutData.locale},siteKey(){return this.$page.props.layoutData.siteKey},disableRecaptcha(){return this.$page.props.layoutData.disableRecaptcha}},data(){return{partsOfSpeech:this.getWordPartsOfSpeech(),partsOfSpeechIds:this.getWordPartsOfSpeechIds(),mdHidden:window.innerWidth<768,mdBlock:window.innerWidth>=768}},methods:{emptyResultsText(){return`${this.placeholders["empty-synonym-search-results"]}<a class="underline"
                       href="${this.route("synonyms.suggest")}?word=${this.results.meta.replacers["<letters>"]}">${this.placeholders["suggest-new-synonym"]}</a>`},urlencode(n){return n=(n+"").replaceAll("/",""),encodeURIComponent(n).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/~/g,"%7E").replace(/%20/g,"+")},getWordPartsOfSpeech(){var n=[];return this.word?(this.word.part_of_speech.forEach(s=>{n.push(s.name)}),n.toString()):n},getWordPartsOfSpeechIds(){var n=[];return this.word&&this.word.part_of_speech.forEach(s=>{n.push(s.id)}),n}}},Sn={key:0,name:"robots",content:"noindex, follow"},On={class:"section relative pt-0"},Wn={class:"breacrumbs text-sm mt-1"},qn=["href","innerHTML"],jn=["href","innerHTML"],Cn=["innerHTML"],Fn=["innerHTML"],In=["innerHTML"],Pn={class:"flex flex-col-reverse md:flex-row"},Dn={class:"md:w-3/5"},An=["innerHTML"],En={key:1,class:"synonyms-table"},Rn=["innerHTML"],Bn=["innerHTML"],Vn={class:"border border-gray-300 bg-light mb-6 flex flex-wrap-wrap"},Un=["href","alt"],Kn={key:2,class:"my-12",id:"anchor-link-to-pronunciation-and-intonation"},Nn=["innerHTML"],Qn={class:"synonyms-table"},Jn=["innerHTML"],zn=["innerHTML"],Gn=["innerHTML"],Zn=["innerHTML"],Xn=["innerHTML"],Yn=["innerHTML"],$n={key:3,class:"my-12",id:"anchor-link-to-word-separation"},es=["innerHTML"],ts={class:"synonyms-table"},ns=["innerHTML"],ss={class:"index-table-row index-table-cell"},is={class:"my-12",id:"anchor-link-to-spelling-and-part-of-speech"},as=["innerHTML"],rs={class:"synonyms-table"},ls=["innerHTML"],os={class:"index-table-row index-table-cell"},ds=["innerHTML"],cs=["innerHTML"],us={key:4,class:"my-12",id:"anchor-link-to-conjugation"},hs=["innerHTML"],ms=["innerHTML"],gs={class:"synonyms-table"},bs={class:"index-table-head grid grid-cols-3"},ys=["innerHTML"],vs=["innerHTML"],_s=["innerHTML"],ps={class:"table-row grid grid-cols-3"},fs={class:"table-cell"},ws={class:"table-cell"},xs={class:"table-cell"},Ls=["innerHTML"],Ts={class:"synonyms-table"},Ms={class:"index-table-head grid grid-cols-3"},Hs=["innerHTML"],ks=["innerHTML"],Ss=t("div",{class:"index-table-head-cell outline-none"},null,-1),Os={class:"table-row grid grid-cols-3"},Ws={class:"table-cell"},qs={class:"table-cell"},js=t("div",{class:"table-cell"},null,-1),Cs={class:"md:w-2/5 md:pl-8"},Fs={key:0,class:"other-links-table md:block hidden"},Is=["innerHTML"],Ps=["innerHTML"],Ds=["innerHTML"],As=["innerHTML"],Es=["innerHTML"],Rs=["innerHTML"],Bs=["innerHTML"],Vs=["innerHTML"],Us={key:1,class:"md:block hidden"},Ks={key:0,class:"mt-4 hidden md:block other-links-table table"},Ns=["innerHTML"],Qs={class:"index-table-row index-table-cell"},Js=["href"],zs={key:1,class:"mx-auto"},Gs=["innerHTML"],Zs={key:0,class:"mt-4 table other-links-table"},Xs=["innerHTML"],Ys={class:"index-table-row index-table-cell"},$s=["href"],ei={key:0,class:"md:hidden"},ti={key:0,class:"other-links-table"},ni=["innerHTML"],si=["innerHTML"],ii=["innerHTML"],ai=["innerHTML"],ri=["innerHTML"],li=["innerHTML"],oi=["innerHTML"],di=["innerHTML"],ci={key:1,class:"other-links-table table mt-4"},ui=["innerHTML"],hi={class:"index-table-row index-table-cell"},mi=["href"],gi={class:"my-3 px-2 pt-2 pb-8 bg-gray-200 shadow-md"},bi=["innerHTML"],yi=["innerHTML"],vi=["href","innerHTML"],_i=["innerHTML"],pi=["innerHTML"],fi={id:"anchor-link-to-FAQ-area"},wi=["innerHTML"],xi=["innerHTML"];function Li(n,s,e,c,i,l){const d=x("Head"),u=x("SearchForm"),y=x("Ads"),M=x("SearchFavorite"),g=x("SearchResults",!0),L=x("SearchFilter"),T=x("InternalLinksSection"),S=x("Feedback");return a(),r(h,null,[f(d,null,{default:D(()=>[(a(),j(Z("script"),{type:"application/ld+json"},{default:D(()=>[W(w(e.FAQJson),1)]),_:1})),e.noindexFollow?(a(),r("meta",Sn)):o("",!0)]),_:1}),t("section",On,[t("div",Wn,[t("a",{href:n.route("home"),innerHTML:e.placeholders["breadcrumb-homepage"]},null,8,qn),W(" - "),t("a",{href:n.route("synonyms"),innerHTML:e.placeholders["breadcrumb-synonyms"]},null,8,jn),W(" - "),t("span",{innerHTML:e.placeholders["breadcrumb-synonym"]},null,8,Cn)]),t("h1",{class:"heading border-none",innerHTML:e.placeholders.title},null,8,Fn),t("div",{class:"mb-4",innerHTML:e.placeholders["sub-headline-favorite-synonyms"]},null,8,In),e.results.meta.count>0?(a(),r(h,{key:0},[f(u,{strings:e.strings,"is-part":!1,"page-entry":e.word.word,"allowed-chars":e.regex+"?"},null,8,["strings","page-entry","allowed-chars"]),t("div",Pn,[t("div",Dn,[f(y,{"ad-key":"ad3","ad-indent":"mb-5"}),f(M,{entries:e.results.favoriteSynonyms,pagination:e.results.paginationForFavoriteSynonyms,strings:e.tableStrings,"edit-form-strings":e.editFormStrings,buttons:e.buttons,"page-entry":e.word,"site-key":l.siteKey,regex:e.regex+" \\-","disable-recaptcha":l.disableRecaptcha},null,8,["entries","pagination","strings","edit-form-strings","buttons","page-entry","site-key","regex","disable-recaptcha"]),Object.entries(e.results.synonyms).length?(a(),r("h2",{key:0,class:"font-bold mb-6",innerHTML:e.placeholders["meanings-title"]},null,8,An)):o("",!0),f(g,{entries:e.results.synonyms,pagination:e.results.pagination,strings:e.tableStrings,"edit-form-strings":e.editFormStrings,buttons:e.buttons,"page-entry":e.word,"site-key":l.siteKey,groups:e.allWordGroups,regex:e.regex+" \\-","disable-recaptcha":l.disableRecaptcha},null,8,["entries","pagination","strings","edit-form-strings","buttons","page-entry","site-key","groups","regex","disable-recaptcha"]),e.relQuestions&&e.relQuestions.length>0?(a(),r("div",En,[t("div",{innerHTML:e.placeholders["related-questions-text"]},null,8,Rn),t("div",{class:"index-table-head-cell flex font-bold",style:{"z-index":"10"},innerHTML:e.placeholders["related-questions"]},null,8,Bn),t("div",Vn,[(a(!0),r(h,null,v(e.relQuestions,b=>(a(),r("a",{href:n.route("crosswords.question",b.slug),alt:b.text,class:"synonym-item synonym-link synonym-text"},w(b.text),9,Un))),256))])])):o("",!0),e.word.pronunciation||e.word.accent||e.word.phonetic_spelling?(a(),r("div",Kn,[t("h2",{class:"font-bold mb-2",innerHTML:e.placeholders["pronunciation-and-intonation-title"]},null,8,Nn),t("div",Qn,[e.word.pronunciation?(a(),r(h,{key:0},[t("div",{class:"index-table-head-cell",innerHTML:e.placeholders["pronunciation-table-headline"]},null,8,Jn),t("div",{class:"index-table-row index-table-cell",innerHTML:e.word.pronunciation},null,8,zn)],64)):o("",!0),e.word.accent?(a(),r(h,{key:1},[t("div",{class:"index-table-head-cell",innerHTML:e.placeholders["intonation-table-headline"]},null,8,Gn),t("div",{class:"index-table-row index-table-cell",innerHTML:e.word.accent},null,8,Zn)],64)):o("",!0),e.word.phonetic_spelling?(a(),r(h,{key:2},[t("div",{class:"index-table-head index-table-head-cell",innerHTML:e.placeholders["phonetic-spelling-table-headline"]},null,8,Xn),t("div",{class:"index-table-row index-table-cell",innerHTML:e.word.phonetic_spelling},null,8,Yn)],64)):o("",!0)])])):o("",!0),e.word.hyphenation?(a(),r("div",$n,[t("h2",{class:"font-bold mb-2",innerHTML:e.placeholders["word-separation-title"]},null,8,es),t("div",ts,[t("div",{class:"index-table-head-cell",innerHTML:e.placeholders["hyphenation-table-headline"]},null,8,ns),t("div",ss,w(e.word.hyphenation),1)])])):o("",!0),t("div",is,[t("h2",{class:"font-bold mb-2",innerHTML:e.placeholders["spelling-and-part-of-speech-title"]},null,8,as),t("div",rs,[t("div",{class:"index-table-head-cell",innerHTML:e.placeholders["correct-spelling-table-headline"]},null,8,ls),t("div",os,w(e.word.word),1),e.word.part_of_speech.length>0?(a(),r(h,{key:0},[t("div",{class:"index-table-head-cell",innerHTML:e.placeholders["part-of-speech-table-headline"]},null,8,ds),t("div",{class:"index-table-row index-table-cell",innerHTML:i.partsOfSpeech},null,8,cs)],64)):o("",!0)])]),i.partsOfSpeechIds.includes(2)&&Object.entries(e.wordConjugation).length>0?(a(),r("div",us,[t("h2",{class:"font-bold mb-5",innerHTML:e.placeholders["conjugation-title"]},null,8,hs),t("h3",{class:"mb-2",innerHTML:e.placeholders["present-title"]},null,8,ms),t("div",gs,[t("div",bs,[t("div",{class:"index-table-head-cell outline-none",innerHTML:e.placeholders["indicative-table-headline"]},null,8,ys),t("div",{class:"index-table-head-cell outline-none",innerHTML:e.placeholders["conjunctive1-table-headline"]},null,8,vs),t("div",{class:"index-table-head-cell outline-none",innerHTML:e.placeholders["imperative-table-headline"]},null,8,_s)]),(a(!0),r(h,null,v(e.wordConjugation,b=>(a(),r("div",ps,[t("div",fs,w(b.present_indicative),1),t("div",ws,w(b.present_conjunctive1),1),t("div",xs,w(b.present_imperative),1)]))),256))]),t("h3",{class:"mb-2",innerHTML:e.placeholders["preterite-title"]},null,8,Ls),t("div",Ts,[t("div",Ms,[t("div",{class:"index-table-head-cell outline-none",innerHTML:e.placeholders["indicative-table-headline"]},null,8,Hs),t("div",{class:"index-table-head-cell outline-none",innerHTML:e.placeholders["conjunctive-table-headline"]},null,8,ks),Ss]),(a(!0),r(h,null,v(e.wordConjugation,b=>(a(),r("div",Os,[t("div",Ws,w(b.preterite_indicative),1),t("div",qs,w(b.preterite_conjunctive2),1),js]))),256))])])):o("",!0)]),t("div",Cs,[i.mdBlock&&(e.word.part_of_speech.length>0||e.word.hyphenation||e.word.participle1||e.word.participle2||e.word.positive||e.word.superlative||e.word.comparative)?(a(),r("div",Fs,[t("div",{class:"index-table-head index-table-head-cell",innerHTML:e.placeholders["quick-info-table-headline"]},null,8,Is),e.word.part_of_speech.length>0?(a(),r("div",{key:0,class:"index-table-row index-table-cell",innerHTML:e.placeholders["part-of-speech-table-text"]+" "+i.partsOfSpeech},null,8,Ps)):o("",!0),e.word.hyphenation?(a(),r("div",{key:1,class:"index-table-row index-table-cell",innerHTML:e.placeholders["hyphenation-table-text"]+" "+e.word.hyphenation},null,8,Ds)):o("",!0),i.partsOfSpeechIds.includes(2)&&(e.word.participle1||e.word.participle2)?(a(),r(h,{key:2},[e.word.participle1?(a(),r("div",{key:0,class:"index-table-row index-table-cell",innerHTML:e.placeholders["participle1-table-text"]+" "+e.word.participle1},null,8,As)):o("",!0),e.word.participle2?(a(),r("div",{key:1,class:"index-table-row index-table-cell",innerHTML:e.placeholders["participle2-table-text"]+" "+e.word.participle2},null,8,Es)):o("",!0)],64)):o("",!0),i.partsOfSpeechIds.includes(3)&&(e.word.positive||e.word.superlative||e.word.comparative)?(a(),r(h,{key:3},[e.word.positive?(a(),r("div",{key:0,class:"index-table-row index-table-cell",innerHTML:e.placeholders["positive-table-text"]+" "+e.word.positive},null,8,Rs)):o("",!0),e.word.comparative?(a(),r("div",{key:1,class:"index-table-row index-table-cell",innerHTML:e.placeholders["comparative-table-text"]+" "+e.word.comparative},null,8,Bs)):o("",!0),e.word.superlative?(a(),r("div",{key:2,class:"index-table-row index-table-cell",innerHTML:e.placeholders["superlative-table-text"]+" "+e.word.superlative},null,8,Vs)):o("",!0)],64)):o("",!0)])):o("",!0),f(L,{filter:e.filterOptions,"max-length":e.maxLength,strings:e.strings,locale:l.locale},null,8,["filter","max-length","strings","locale"]),i.mdBlock?(a(),r("div",Us,[f(y,{"ad-key":"ad6","ad-indent":"my-6"}),f(T,{"internal-link-table-strings":e.internalLinkTableStrings,"internal-links":e.internalLinks,clue:e.clue},null,8,["internal-link-table-strings","internal-links","clue"]),e.word.randomInternalLinks&&i.mdBlock?(a(),r("div",Ks,[t("div",{class:"index-table-head index-table-head-cell",innerHTML:e.placeholders["synonym-internal-links"]},null,8,Ns),(a(!0),r(h,null,v(e.word.randomInternalLinks,b=>(a(),r("div",Qs,[t("a",{href:n.route("synonyms.search",l.urlencode(b.word.toLowerCase()))},w(b.word),9,Js)]))),256))])):o("",!0)])):o("",!0)])])],64)):(a(),r("div",zs,[f(u,{strings:e.strings,"is-part":!1,"page-entry":"","allowed-chars":e.regex+"?"},null,8,["strings","allowed-chars"]),t("div",{class:"text-center my-6 font-bold empty-search-results",innerHTML:l.emptyResultsText()},null,8,Gs),f(T,{"internal-link-table-strings":e.internalLinkTableStrings,"internal-links":e.internalLinks,clue:e.clue},null,8,["internal-link-table-strings","internal-links","clue"]),e.otherSynonyms.length>0?(a(),r("div",Zs,[t("div",{class:"index-table-head index-table-head-cell",innerHTML:e.placeholders["title-for-box-with-other-synonyms"]},null,8,Xs),(a(!0),r(h,null,v(e.otherSynonyms,b=>(a(),r("div",Ys,[t("a",{href:n.route("synonyms.search",b.word)},w(b.word),9,$s)]))),256))])):o("",!0)])),e.results.meta.count>0?(a(),r(h,{key:2},[i.mdHidden?(a(),r("div",ei,[e.word.part_of_speech.length>0||e.word.hyphenation||e.word.participle1||e.word.participle2||e.word.positive||e.word.superlative||e.word.comparative?(a(),r("div",ti,[t("div",{class:"index-table-head index-table-head-cell",innerHTML:e.placeholders["quick-info-table-headline"]},null,8,ni),e.word.part_of_speech.length>0?(a(),r("div",{key:0,class:"index-table-row index-table-cell",innerHTML:e.placeholders["part-of-speech-table-text"]+" "+i.partsOfSpeech},null,8,si)):o("",!0),e.word.hyphenation?(a(),r("div",{key:1,class:"index-table-row index-table-cell",innerHTML:e.placeholders["hyphenation-table-text"]+" "+e.word.hyphenation},null,8,ii)):o("",!0),i.partsOfSpeechIds.includes(2)&&(e.word.participle1||e.word.participle2)?(a(),r(h,{key:2},[e.word.participle1?(a(),r("div",{key:0,class:"index-table-row index-table-cell",innerHTML:e.placeholders["participle1-table-text"]+" "+e.word.participle1},null,8,ai)):o("",!0),e.word.participle2?(a(),r("div",{key:1,class:"index-table-row index-table-cell",innerHTML:e.placeholders["participle2-table-text"]+" "+e.word.participle2},null,8,ri)):o("",!0)],64)):o("",!0),i.partsOfSpeechIds.includes(3)&&(e.word.positive||e.word.superlative||e.word.comparative)?(a(),r(h,{key:3},[e.word.positive?(a(),r("div",{key:0,class:"index-table-row index-table-cell",innerHTML:e.placeholders["positive-table-text"]+" "+e.word.positive},null,8,li)):o("",!0),e.word.comparative?(a(),r("div",{key:1,class:"index-table-row index-table-cell",innerHTML:e.placeholders["comparative-table-text"]+" "+e.word.comparative},null,8,oi)):o("",!0),e.word.superlative?(a(),r("div",{key:2,class:"index-table-row index-table-cell",innerHTML:e.placeholders["superlative-table-text"]+" "+e.word.superlative},null,8,di)):o("",!0)],64)):o("",!0)])):o("",!0),f(T,{"internal-link-table-strings":e.internalLinkTableStrings,"internal-links":e.internalLinks,clue:e.clue},null,8,["internal-link-table-strings","internal-links","clue"]),e.word.randomInternalLinks?(a(),r("div",ci,[t("div",{class:"index-table-head index-table-head-cell",innerHTML:e.placeholders["synonym-internal-links"]},null,8,ui),(a(!0),r(h,null,v(e.word.randomInternalLinks,b=>(a(),r("div",hi,[t("a",{href:n.route("synonyms.search",l.urlencode(b.word.toLowerCase()))},w(b.word),9,mi)]))),256))])):o("",!0)])):o("",!0),t("div",gi,[t("h2",{class:"heading heading-small",innerHTML:e.placeholders["suggestion-title"]},null,8,bi),t("div",{class:"font-semibold pb-4",innerHTML:e.placeholders["suggest-new-word-field-description"]},null,8,yi),t("a",{class:"button",href:n.route("synonyms.suggest")+"?word="+e.word.word,innerHTML:e.placeholders["suggestion-submit"]},null,8,vi)]),(a(!0),r(h,null,v(e.headlines,(b,H)=>(a(),r(h,null,[t("div",{class:"text-justify mt-6 mb-6 hyphens font-bold",innerHTML:b},null,8,_i),t("div",{class:"text-justify mt-6 mb-6 hyphens",innerHTML:e.contents[H]},null,8,pi)],64))),256)),t("div",fi,[(a(!0),r(h,null,v(e.FAQHeadlines,(b,H)=>(a(),r(h,null,[t("div",{class:"text-justify mt-6 mb-6 hyphens font-bold",innerHTML:b},null,8,wi),t("div",{class:"text-justify mt-6 mb-6 hyphens",innerHTML:e.FAQContents[H]},null,8,xi)],64))),256))]),f(S)],64)):o("",!0)])],64)}const Ji=k(kn,[["render",Li]]);export{Ji as default};