PageSourceSearch

https://www.coeliacsanctuary.co.uk/build/assets/RecommendAPlace-BX8TIjy6.js

js coeliacsanctuary.co.uk collected 2026-10-04 20:16:16 UTC 6,472 bytes, 1 lines download raw bytes

1import{s as _,r as y,v as A,y as d,o as u,x as t,H as n,c as m,a as s,z as a,J as k,I,a1 as b,A as h,W as P,K as C,b as q}from"./app-CF38Zyoh.js";import{_ as D}from"./Card.vue_vue_type_script_setup_true_lang-DmS7Cfm5.js";import{_ as S}from"./Heading.vue_vue_type_script_setup_true_lang-D-NNY37w.js";import{d as z,D as $,a as p,f as N,r as B}from"./app-DdkoSIic.js";import{_ as R}from"./FormSelect.vue_vue_type_script_setup_true_lang-p967ZRYT.js";import{_ as W}from"./Warning.vue_vue_type_script_setup_true_lang-BTGhcxqj.js";import{_ as j}from"./FormCheckbox.vue_vue_type_script_setup_true_lang-C-V_hdBd.js";const E={class:"prose max-w-none md:prose-lg"},F={class:"prose max-w-none md:prose-lg"},K={key:0,class:"mx-auto w-full max-w-3xl"},L={class:"flex flex-col space-y-3 md:text-center"},Y=["textContent"],H={class:"text-center"},J={key:1,class:"rounded-xl bg-primary-light/15 p-3"},M={key:1,class:"py-8"},O={class:"mb-8 flex justify-center text-green"},G={class:"mt-8 flex justify-center"},se=_({__name:"RecommendAPlace",props:{venueTypes:{},previous:{},name:{}},setup(Q){const l=z("post","/wheretoeat/recommend-a-place",{name:"",email:"",place:{name:"",location:"",url:"",venueType:void 0,details:""}}),c=y(!1),U=()=>{l.submit({preserveScroll:!0,onSuccess:()=>{l.reset(),c.value=!0}})},f=y(!1),r=y(),v=()=>{r.value=void 0,q.post("/api/wheretoeat/check-recommended-place",{place_name:l.place.name,place_location:l.place.location}).then(i=>{if(i.status===200){r.value=i.data;return}r.value=void 0})},T=()=>{l.reset(),c.value=!1};return $(()=>l.place.name,()=>v(),{debounce:300}),$(()=>l.place.location,()=>v(),{debounce:300}),(i,e)=>(u(),A(D,{class:"mt-3 flex flex-col space-y-4"},{default:d(()=>{var x,g,w,V;return[t(S,{"back-link":{href:i.previous,label:i.name,position:"bottom",direction:"center"}},{default:d(()=>e[10]||(e[10]=[n(" Recommend A Place ")])),_:1},8,["back-link"]),c.value?(u(),m("div",M,[s("div",O,[t(a(B),{class:"size-24"})]),e[22]||(e[22]=s("p",{class:"prose prose-lg max-w-none text-center"}
1," Thank you for submitting your recommendation! It has been added to my queue of places to check, I'll take a look at it, check menu's and reviews, and if it all checks out, add some missing data and add it to the website! ",-1)),s("div",G,[t(b,{label:"Add another!",as:"button",type:"button",size:"xxl",onClick:e[9]||(e[9]=o=>T())})])])):(u(),m(C,{key:0},[e[20]||(e[20]=s("p",{class:"prose max-w-none md:prose-lg"}," Do you know a place that needs adding to our guide? Well give us as much details as possible below and we'll check it out, verify it and get it added to our list! ",-1)),e[21]||(e[21]=s("p",{class:"prose max-w-none md:prose-lg"}," We rely on people like you providing us with information on places where people can eat out safely and helping us create a great eating out guide! ",-1)),s("p",E,[e[12]||(e[12]=n(" Our eating out guide is full of independent eateries around the UK and Ireland, and we list ")),t(a(k),{href:"/wheretoeat/nationwide"},{default:d(()=>e[11]||(e[11]=[n("nationwide chains")])),_:1}),e[13]||(e[13]=n(", such as Nando's, Bella Italia separately. "))]),s("p",F,[e[15]||(e[15]=n(" Don't forget to check out our ")),t(a(k),{href:"/eating-out"},{default:d(()=>e[14]||(e[14]=[n("eating guide")])),_:1}),e[16]||(e[16]=n(" first to see if the place you're recommending already listed. "))]),s("form",{class:"flex flex-col space-y-4",onSubmit:e[8]||(e[8]=P(o=>U(),["prevent"]))},[t(p,{id:"placeName",modelValue:a(l).place.name,"onUpdate:modelValue":e[0]||(e[0]=o=>a(l).place.name=o),error:(x=a(l).errors.place)==null?void 0:x.name,label:"Place Name",name:"placeName",required:"",borders:""},null,8,["modelValue","error"]),t(N,{modelValue:a(l).place.location,"onUpdate:modelValue":e[1]||(e[1]=o=>a(l).place.location=o),label:"Place Location / Address",required:"",name:"placeLocation",rows:3,error:(g=a(l).errors.place)==null?void 0:g.location,borders:""},null,8,["modelValue","error"]),r.value?(u(),m("div",K,[t(W,{class:"rounded-xl"},{default:d(()=>[s("div",L,[s("p",{class:"prose lg:max-xl:prose-lg xl:prose-xl",textContent:I(r.value.result)},null,8,Y),e[17]||(e[17]=s("p",{class:"prose lg:max-xl:prose-lg xl:prose-xl"}," It sounds like you've visited this place before, why not leave a review? ",-1)),s("div",H,[t(b,{as:"a",href:`${r.value.url}#leave-review`,label:`${r.value.label} and leave a review!`,target:"_blank",theme:"secondary",size:"xl"},null,8,["href","label"])]),e[18]||(e[18]=s("p",{class:"prose font-semibold lg:max-xl:prose-lg xl:prose-xl"}," If you're sure this is a different place please carry on with your recommendation! ",-1))])]),_:1})])):h("",!0),t(p,{id:"placeWebAddress",modelValue:a(l).place.url,"onUpdate:modelValue":e[2]||(e[2]=o=>a(l).place.url=o),error:(w=a(l).errors.place)==null?void 0:w.url,label:"Place Website",name:"placeUrl",borders:""},null,8,["modelValue","error"]),t(R,{id:"placeVenueType",modelValue:a(l).place.venueType,"onUpdate:modelValue":e[3]||(e[3]=o=>a(l).place.venueType=o),name:"placeVenueType",options:i.venueTypes,label:"Place Category",borders:""},null,8,["modelValue","options"]),t(N,{modelValue:a(l).place.details,"onUpdate:modelValue":e[4]||(e[4]=o=>a(l).place.details=o),label:"Place details","help-text":"Please include details like if they only do gluten free on certain days, or examples of items on the menu, if they understand cross contamination etc",required:"",name:"placeDetails",rows:6,error:(V=a(l).errors.place)==null?void 0:V.details,borders:""},null,8,["modelValue","error"]),e[19]||(e[19]=s("hr",null,null,-1)),t(p,{id:"name",modelValue:a(l).name,"onUpdate:modelValue":e[5]||(e[5]=o=>a(l).name=o),error:a(l).errors.name,autocomplete:"fullname",label:"Your Name",name:"name",required:"",borders:""},null,8,["modelValue","error"]),t(p,{id:"email",modelValue:a(l).email,"onUpdate:modelValue":e[6]||(e[6]=o=>a(l).email=o),type:"email",error:a(l).errors.email,autocomplete:"email",label:"Your Email",name:"email",required:"",borders:""},null,8,["modelValue","error"]),r.value?(u(),m("div",J,[t(j,{modelValue:f.value,"onUpdate:modelValue":e[7]||(e[7]=o=>f.value=o),name:"sure",label:"I'm sure this is a new eatery to add to your guide!",layout:"left",highlight:"",xl:""},null,8,["modelValue"])])):h("",!0),t(b,{theme:"primary",size:"lg",as:"button",label:"Send Recommendation",bold:"",type:"submit",classes:"justify-center",loading:a(l).processing,disabled:r.value&&!f.value},null,8,["loading","disabled"])],32)],64))]}),_:1}))}});
1export{se as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.