import{A as w,a as q}from"./AppLayout-5c633aaa.js";import{F as v}from"./Feedback-c61d8668.js";import{I as A}from"./InternalLinksSection-a8c0d5c5.js";import{Z as C,i as j}from"./inertia-11bf9011.js";import{C as p}from"./CrosswordsForm-7cea9097.js";import{L as O,C as S}from"./CrosswordsResults-76e7b122.js";import{_ as Q}from"./GameCard-c53ae450.js";import{_ as R}from"./_plugin-vue_export-helper-b15b4a05.js";import{z as l,q as s,u as n,A as h,B as L,v as t,G as y,C as _,D as i,F as o,E as d,x as m,V as B}from"./vue-0d7ee8e8.js";import"./inertia-722f135b.js";import"./preload-helper-f61836a9.js";import"./axios-dd1c8fc2.js";import"./userActivity-e849d9de.js";import"./fingerprint-374ab551.js";import"./@inertiajs/core-9c117dfe.js";import"./recaptcha-v3-f0e7cd4f.js";import"./qs-0fed5bc1.js";import"./get-intrinsic-20bd36cc.js";import"./object-inspect-747fc63f.js";import"./nprogress-f6c1521f.js";import"./lodash.isequal-390c7467.js";import"./voiceInput-82d46348.js";import"./arrow-up-a-z-solid-68a9dbc8.js";const D="/build/assets/question-in-circle-90ed8f55.svg",U={layout:w,components:{LengthFilter:O,CrosswordsResults:S,CrosswordsForm:p,InternalLinksSection:A,AppLayout:w,Ads:q,Feedback:v,Head:C,GameCard:Q,Link:j},props:{question:Object,questionsWithTheSameAnswer:[Object,Array],similar:[Object,Array],placeholders:Object,strings:Object,regex:String,charmap:Object,editFormStrings:Object,headlines:Array,contents:Array,FAQHeadlines:Array,FAQContents:Array,filter:String,FAQJson:String,noindexFollow:Boolean,answers:Object,pagination:Object,tableStrings:Object,buttons:Array,allLength:Array,hasTop:Boolean},computed:{siteKey(){return this.$page.props.layoutData.siteKey},disableRecaptcha(){return this.$page.props.layoutData.disableRecaptcha},locale(){return this.$page.props.layoutData.locale}},data(){return{crossForm:null,desktop:window.innerWidth>=768}},mounted(){this.crossForm=this.$refs.crossForm}},V={key:0,name:"robots",content:"noindex, follow"},W={class:"section relative pt-0"},G={class:"breacrumbs text-sm mt-1"},N=["href","innerHTML"],K=["href","innerHTML"],z=["innerHTML"],E=["innerHTML"],I={class:"relative mt-12"},J=["innerHTML"],Z={key:0,class:"flex items-center gap-[6px] mb-2"},P=t("img",{src:D,alt:"how to use",class:"h-5 w-5 object-cover"},null,-1),X=["href","innerHTML"],Y=["innerHTML"],$=["innerHTML"],ee={class:"synonyms-table"},te=["innerHTML"],se={class:"border border-gray-300 bg-light mb-6 flex flex-wrap-wrap"},ne=["href","title"],re=["innerHTML"],oe={class:"list list-double list-none"},ie=["href","innerHTML"],ae=["href"],le={id:"anchor-link-to-suggestion-section",class:"my-12 px-2 pt-2 pb-8 bg-gray-200 shadow-md"},de=["innerHTML"],ce=["innerHTML"],he=["href"],ue={key:4,id:"anchor-link-to-similar-section",class:"mb-4"},me=["innerHTML"],_e={class:"list list-double list-none"},ge=["href","innerHTML"],be=["innerHTML"],fe={class:"list list-double list-none"},ye=["href"],we=["innerHTML"],Le=["innerHTML"],Te={id:"anchor-link-to-FAQ-area"},He=["innerHTML"],Me=["innerHTML"];function Fe(a,xe,e,ke,g,c){const T=l("Head"),H=l("CrosswordsForm"),b=l("Ads"),M=l("LengthFilter"),F=l("CrosswordsResults"),x=l("GameCard"),k=l("Feedback");return s(),n(o,null,[h(T,null,{default:L(()=>[(s(),_(B("script"),{type:"application/ld+json"},{default:L(()=>[y(m(e.FAQJson),1)]),_:1})),e.noindexFollow?(s(),n("meta",V)):i("",!0)]),_:1}),t("section",W,[t("div",G,[t("a",{href:a.route("home"),innerHTML:e.placeholders["breadcrumb-homepage"]},null,8,N),y(" - "),t("a",{href:a.route("crosswords"),innerHTML:e.placeholders["breadcrumb-crosswords"]},null,8,K),y(" - "),t("span",{innerHTML:e.placeholders["breadcrumb-crossword"]},null,8,z)]),t("h1",{class:"heading border-none",innerHTML:e.placeholders.title},null,8,E),h(H,{question:e.question,pattern:e.filter,strings:e.strings,"width-full":!1,mobile:!1,"form-center":!1,regex:e.regex,charmap:e.charmap,ref:"crossForm"},null,8,["question","pattern","strings","regex","charmap"]),h(b,{"ad-key":"ad3","ad-indent":"mt-5"}),t("div",I,[t("h2",{class:"heading heading-small inline-block",innerHTML:this.pagination.total>1?Object.entries(e.question.rel_questions).length>0?e.placeholders["heading-above-answer-table-with-synonyms"]:e.placeholders["heading-above-answer-table"]:e.placeholders["heading-above-answer-table-with-one-answer"]},null,8,J),g.crossForm?(s(),_(M,{key:0,crossForm:g.crossForm},null,8,["crossForm"])):i("",!0)]),c.locale==="en"||c.locale==="de"?(s(),n("div",Z,[P,t("a",{href:a.route("crosswords.how-to-use"),innerHTML:e.placeholders.howToUse,class:"font-bold text-sm"},null,8,X)])):i("",!0),h(F,{"entries-data":e.answers,"pagination-data":e.pagination,buttons:e.buttons,answers:!0,"filter-data":e.filter,"page-entry-data":e.question,strings:e.tableStrings,"edit-form-strings":e.editFormStrings,"site-key":c.siteKey,regex:e.regex,"disable-recaptcha":c.disableRecaptcha,ref:"crossResults",crossForm:g.crossForm},null,8,["entries-data","pagination-data","buttons","filter-data","page-entry-data","strings","edit-form-strings","site-key","regex","disable-recaptcha","crossForm"]),h(b,{"ad-key":"ad5","ad-indent":"mt-5"}),Object.entries(e.question.rel_questions).length>0?(s(),n(o,{key:1},[t("h2",{class:"heading heading-small mb-0",innerHTML:e.placeholders["headline-for-related-questions"]},null,8,Y),t("div",{class:"mb-4",innerHTML:e.placeholders["text-for-related-questions"]},null,8,$),(s(!0),n(o,null,d(e.question.rel_questions,(r,u)=>(s(),n("div",ee,[t("div",{class:"index-table-head index-table-head-cell flex font-bold",style:{"z-index":"10"},innerHTML:e.placeholders["related-questions-length"].replace("<length>",u)},null,8,te),t("div",se,[(s(!0),n(o,null,d(r,f=>(s(),n("a",{href:a.route("crosswords.question",f.slug),title:f.text,class:"synonym-item synonym-link break-all synonym-text"},m(f.text),9,ne))),256))])]))),256))],64)):i("",!0),e.questionsWithTheSameAnswer&&e.questionsWithTheSameAnswer.total>0?(s(),n(o,{key:2},[t("h2",{class:"heading heading-small",innerHTML:e.placeholders["headline-for-questions-with-the-same-answer"]},null,8,re),t("div",oe,[(s(!0),n(o,null,d(e.questionsWithTheSameAnswer.questions,r=>(s(),n("a",{class:"list-item link-primary",href:r.url,innerHTML:r.text},null,8,ie))),256))]),t("a",{href:a.route("crosswords.answer",e.questionsWithTheSameAnswer.answer.word.toLowerCase())},m(e.placeholders["all-questions-with-the-same-answer"]),9,ae)],64)):i("",!0),t("div",le,[t("h2",{class:"heading heading-small",innerHTML:e.placeholders["suggestion-title"]},null,8,de),t("div",{class:"font-semibold pb-4",innerHTML:e.placeholders["suggest-new-word-field-description"]},null,8,ce),t("a",{class:"button",href:a.route("crosswords.suggest")+"?question="+e.question.text},m(e.placeholders["suggestion-submit"]),9,he)]),c.locale==="de"||c.locale==="en"?(s(),_(x,{key:3,class:"mb-12"})):i("",!0),h(b,{"ad-key":"ad6","ad-indent":"mt-5"}),e.similar?(s(),n("div",ue,[t("h2",{class:"heading heading-small",innerHTML:e.placeholders["similar-questions"]},null,8,me),t("div",_e,[(s(!0),n(o,null,d(e.similar,r=>(s(),n("a",{class:"list-item link-primary",href:r.url,innerHTML:r.text},null,8,ge))),256))])])):i("",!0),e.question.randomUrls?(s(),n(o,{key:5},[t("h2",{class:"heading heading-small",innerHTML:e.placeholders["popular-questions"]},null,8,be),t("div",fe,[(s(!0),n(o,null,d(e.question.randomUrls,r=>(s(),n("a",{class:"list-item link-primary",href:a.route("crosswords.question",r.slug)},m(r.text),9,ye))),256))])],64)):i("",!0),(s(!0),n(o,null,d(e.headlines,(r,u)=>(s(),n(o,null,[t("div",{class:"text-justify mt-6 mb-6 hyphens font-bold",innerHTML:r},null,8,we),t("div",{class:"text-justify mt-6 mb-6 hyphens",innerHTML:e.contents[u]},null,8,Le)],64))),256)),t("div",Te,[(s(!0),n(o,null,d(e.FAQHeadlines,(r,u)=>(s(),n(o,null,[t("div",{class:"text-justify mt-6 mb-6 hyphens font-bold",innerHTML:r},null,8,He),t("div",{class:"text-justify mt-6 mb-6 hyphens",innerHTML:e.FAQContents[u]},null,8,Me)],64))),256))]),e.question.text.toUpperCase()!=="FORUM"?(s(),_(k,{key:6})):i("",!0)])],64)}const Pe=R(U,[["render",Fe]]);export{Pe as default};