PageSourceSearch

https://static.cdn.bookyourhunt.com/_nuxt/B3_2w7rz.js

js bookyourhunt.com collected 2026-10-02 11:45:36 UTC 13,290 bytes, 1 lines download raw bytes

1import{_ as ve}from"./D8DB0irM.js";import{_ as fe}from"./BGyOe59s.js";import{d as he,u as O,p as ge,q as ye,k as we,r as T,s as be,c as V,a2 as xe,x as Ve,e as _,g as e,I as ke,i,h as a,t as m,K as f,b as P,f as H,w as k,N as L,aM as Pe,v as M,aj as Ue,_ as Ee,as as Se,o as p,ar as Te,aN as He,j as D,y as Le,av as Me}from"./Ky0_wSIA.js";import{_ as De}from"./D6uWRSHA.js";import{_ as $e}from"./DV-Nqh9b.js";import{_ as Ie}from"./BkoLHgwl.js";import{_ as Ne}from"./Cz9YfvTX.js";import{_ as ze}from"./B7UC1ts6.js";import{_ as Ae}from"./CyWBNQFM.js";import{_ as Re}from"./Cvbo979T.js";import{_ as Be}from"./DzWl313E.js";import{_ as Ce}from"./BBZEGquQ.js";import{_ as Fe}from"./B5pGudav.js";import{I as Q}from"./1qWV70bv.js";import{r as y,q as qe,l as We}from"./X4JBjxXu.js";import{E as Ye}from"./-D_LPN6G.js";import{m as je}from"./DF5MWz2W.js";import{E as Ge}from"./C23KCosr.js";import"./DEFrzMxs.js";import"./BoR0WaiK.js";import"./BNjyTdv8.js";import"./BCwNDbmY.js";import"./BsVa_nm5.js";import"./CfMFDZB8.js";import"./BCWXZ-69.js";import"./DgCx2uY-.js";import"./j0tabN7u.js";import"./BWYMLtX8.js";import"./CYwDk-C_.js";import"./ScrT7TDP.js";import"./BR-WOs3G.js";import"./CKtdxRSd.js";import"./D_33kX1i.js";import"./D0VXWhwh.js";import"./x_rD_Ya3.js";import"./CJn8YlVb.js";import"./CAHeDvoI.js";import"./CpOTTAMU.js";import"./CtzbcVO5.js";import"./DdKvtgm8.js";import"./BYKZViIM.js";import"./WE-nH6We.js";import"./BObzWAdI.js";import"./Cee6ONj2.js";const Ke={class:"review-page layout-content"},Oe={key:0,class:"container-md"},Qe={class:"text-center"},Je={key:1,class:"container-md"},Xe={class:"text-center"},Ze={key:2,class:"container"},eo={class:"review-page__offset"},oo={class:"review-page__text"},to=["innerHTML"],no=["innerHTML"],ao={class:"flex items-center"},so={class:"review-page__total-num"},io=["innerHTML"],lo={class:"review-page__form"},ro={class:"mb-2 ms:mb-0"},mo={class:"mb-2 ms:mb-0"},uo={class:"mb-2"},po={class:"mb-2"},co={class:"min-sm:flex"},_o={class:"flex-1"},vo={class:"mb-2 review-page__like"},fo={class:"flex-1 min-sm:ml-6"},ho={class:"mb-2 review-page__notlike"},go={class:"min-sm:flex"},yo={class:"min-sm:ml-6 flex-auto"},wo={class:"review-page__box review-page__box--optional"},bo={class:"mb-2"},xo={key:0,class:"review-page__box review-page__box--optional"},Vo={class:"mb-2 mt-4"},ko={key:1,class:"relative h-[70vh]"},J="review",ft=he({__name:"review",setup(Po){const{$t:n,$initPage:X}=O();X();const{state:c,State:u}=ge(),w=ye(Se),{$eventBus:Z}=O(),$=n("Hunt review");je({title:$,meta:[{key:"og:title",property:"og:title",content:$}]});const{referenceid:U,experience:I}=we(),r=T(null),t=be({}),N=async()=>{c.value=u.Loading;const l=await M(()=>w.reviewsDetail(U));l?(r.value=l,Object.assign(t,{...l,...t,submitted:!1}),c.value=l!=null&&l.reviewDate?u.Ready:u.Empty):Ue({message:"Review not found",statusCode:404})},ee=V(()=>{var l;return(l=r.value)!=null&&l.country?[{name:r.value.country}]:[]}),oe=V(()=>{var g;const{accommodationAndHospitality:l,staff:o,game:h,valueForMoney:b}=t;return o&&h&&b&&(l||!((g=r.value)!=null&&g.hasAccommodation))}),te=V(()=>{const{reviewHeadline:l,whatILiked:o,whatIDidntLike:h}=t;return l&&o&&h}),ne=V(()=>{const{hideMyPersonalDetails:l,country:o}=t;return l||o}),ae=async()=>{if(c.value===u.Sending||E.value)return;if(!t.huntingExperience){Me(n("Please let us know how was your hunting"));return}c.value=u.Sending;const l=await M(()=>w.reviewsUpdate(U,{...t,submitted:!0}));c.value=l?u.Success:u.Empty,l&&window.scrollTo({top:0})},E=T(!1),se=l=>{E.value=l},ie=l=>c.value=l?u.Sending:u.Empty,S=V(()=>({...t,...r.value})),z=T(!1);Z.on(Ge.headerShow,l=>{z.value=l});const le=He(),d=()=>le(A,500),A=async()=>{if(c.value===u.Sending||c.value===u.Loading)return;await M(()=>w.reviewsUpdate(U,t,{},{cancelToken:J}),{onError:()=>!1,cancelToken:J})&&N()};return N().then(()=>{I&&setTimeout(()=>{t.huntingExperience=Ye[Number(I)],A();const{query:l}=xe();Ve({query:{...l,experience:void 0}})})}),(l,o)=>{var F,q,W,Y,j,G,K;const h=ve,b=fe,g=Te,R=Le,v=De,re=$e,B=Ie,x=Ne,me=ze,de=Ae,ue=Re,C=Be,pe=Ce,ce=Ee,_e=Fe;return p(),_("div",Ke,[e(r)?(p(),_(ke,{key:0},[e(c)===e(u).Ready?(p(),_("div",Oe,[i(h,{icon:e(Q),title:e(n)("Review is already completed!"),text:e(n)(`{0}, you've already submitted your review of "{1}".`,[(F=e(r).customer)==null?void 0:F.firstName,e(r).huntName])},null,8,["icon","title","text"]),a("h2",Qe,m(e(n)("Here's a preview of your review"))+": ",1),i(b,{item:e(S),"has-comment":!1},null,8,["item"])])):e(c)===e(u).Success?(p(),_("div",Je,[i(h,{icon:e(Q),title:e(n)("Review is completed!"),text:e(n)(`{0}, you've submitted your review of "{1}".`,[(q=e(r).customer)==null?void 0:q.firstName,e(r).huntName])},null,8,["icon","title","text"]),a("h2",Xe,m(e(n)("Here's a preview of your review"))+": ",1),i(b,{item:e(S),"has-comment":!1},null,8,["item"])])):(p(),_("div",Ze,[a("div",eo,[a("div",oo,[a("h1",null,m(e(n)("Hello, {0}",[(W=e(r).customer)==null?void 0:W.firstName])),1),e(r).huntName&&e(r).country?(p(),_("div",{key:0,innerHTML:e(n)('Thanks for reviewing the <strong>"{0} ({1})"<strong> trip you recently had with <strong>"{2}"</strong>.',[e(r).huntName,e(r).country,(Y=e(r).outfitter)==null?void 0:Y.name])},null,8,to)):(p(),_("div",{key:1,innerHTML:e(n)('Thanks for reviewing your hunt with <strong>"{0}"</strong>.',[(j=e(r).outfitter)==null?void 0:j.name])},null,8,no)),a("div",null,m(e(n)("It won't take more than 3 minutes of your time and will help us a lot.")),1)]),a("div",{class:f(["review-page__total",{"review-page__total--offset":e(z)}])},[a("div",ao,[i(g,{name:"star",size:"32",class:"mr-1"}),a("div",so,m((G=e(r).totalRating)==null?void 0:G.toFixed(1)),1),a("div",{innerHTML:e(n)("Your total<br>rating")},null,8,io)]),e(c)===e(u).Loading?(p(),P(R,{key:0,size:"30",color:"white"})):H("",!0)],2),a("div",lo,[a("div",{class:f(["review-page__box",{"review-page__box--done":e(t).huntingExperience}])},[o[18]||(o[18]=a("div",{class:"review-page__indicator"},null,-1)),a("h2",null,m(e(n)("How was your hunting?")),1),i(v,{modelValue:e(t).huntingExperience,"onUpdate:modelValue":o[0]||(o[0]=s=>
1e(t).huntingExperience=s),name:"huntingExperience",options:e(y),onChange:d},null,8,["modelValue","options"])],2),a("div",{class:f(["review-page__box",{"review-page__box--done":e(oe)}])},[o[19]||(o[19]=a("div",{class:"review-page__indicator"},null,-1)),a("h2",ro,m(e(n)("Were you satisfied or dissatisfied with"))+": ",1),a("p",null,m(e(n)("Your ratings will impact the review score")),1),e(r).hasAccommodation?(p(),P(v,{key:0,modelValue:e(t).accommodationAndHospitality,"onUpdate:modelValue":o[1]||(o[1]=s=>e(t).accommodationAndHospitality=s),name:"accommodationAndHospitality",label:e(n)("Accommodation and hospitality"),options:e(y),class:"mt-4",onChange:d},null,8,["modelValue","label","options"])):H("",!0),i(v,{modelValue:e(t).staff,"onUpdate:modelValue":o[2]||(o[2]=s=>e(t).staff=s),name:"staff",label:e(n)("Professional hunters"),options:e(y),class:"mt-4",onChange:d},null,8,["modelValue","label","options"]),i(v,{modelValue:e(t).game,"onUpdate:modelValue":o[3]||(o[3]=s=>e(t).game=s),name:"game",label:e(n)("Game quality"),options:e(y),class:"mt-4",onChange:d},null,8,["modelValue","label","options"]),i(v,{modelValue:e(t).valueForMoney,"onUpdate:modelValue":o[4]||(o[4]=s=>e(t).valueForMoney=s),name:"valueForMoney",label:e(n)("Value for money"),options:e(y),class:"mt-4",onChange:d},null,8,["modelValue","label","options"])],2),a("div",{class:f(["review-page__box",{"review-page__box--done":(K=e(t).outfitterTags)==null?void 0:K.length}])},[o[20]||(o[20]=a("div",{class:"review-page__indicator"},null,-1)),a("h2",null,m(e(n)("Which of the following words would you use to describe outfitter?")),1),i(re,{modelValue:e(t).outfitterTags,"onUpdate:modelValue":o[5]||(o[5]=s=>e(t).outfitterTags=s),name:"outfitterTags",options:e(qe),inline:"","option-class":"review-page__tag",class:"!mb-0",onChange:d},null,8,["modelValue","options"])],2),a("div",{class:f(["review-page__box",{"review-page__box--done":e(t).willRecommendToFriend}])},[o[21]||(o[21]=a("div",{class:"review-page__indicator"},null,-1)),a("h2",null,m(e(n)("Would you recommend this outfitter to your friend?")),1),i(v,{modelValue:e(t).willRecommendToFriend,"onUpdate:modelValue":o[6]||(o[6]=s=>e(t).willRecommendToFriend=s),name:"willRecommendToFriend",options:e(We),onChange:d},null,8,["modelValue","options"])],2),a("div",{class:f(["review-page__box",{"review-page__box--done":e(te)}])},[o[22]||(o[22]=a("div",{class:"review-page__indicator"},null,-1)),a("h2",mo,m(e(n)("Please share in few sentences your feelings after the hunt"))+": ",1),a("div",uo,m(e(n)("Your opinion will greatly help fellow hunters"))+". ",1),i(B,{size:e(L).sm},{default:k(()=>[D(m(e(n)("Please share your experience without mentioning the outfitter's name or including advertisements. Reviews containing promotional content, ads, or outfitter names may be removed.")),1)]),_:1},8,["size"]),a("h3",po,m(e(n)("Give your review a headline"))+": ",1),i(x,{modelValue:e(t).reviewHeadline,"onUpdate:modelValue":o[7]||(o[7]=s=>e(t).reviewHeadline=s),name:"reviewHeadline",label:e(n)("Enter your message"),onBlur:d},null,8,["modelValue","label"]),a("div",co,[a("div",_o,[a("h3",vo,m(e(n)("What did you like"))+"? ",1),i(x,{modelValue:e(t).whatILiked,"onUpdate:modelValue":o[8]||(o[8]=s=>e(t).whatILiked=s),name:"whatILiked",type:"textarea",label:e(n)("Enter your message"),indent:!1,class:"!sm:mb-6",onBlur:d},null,8,["modelValue","label"])]),a("div",fo,[a("h3",ho,m(e(n)("What you didn't like"))+"? ",1),i(x,{modelValue:e(t).whatIDidntLike,"onUpdate:modelValue":o[9]||(o[9]=s=>e(t).whatIDidntLike=s),name:"whatIDidntLike",type:"textarea",label:e(n)("Enter your message"),indent:!1,onBlur:d},null,8,["modelValue","label"])])])],2),a("div",{class:f(["review-page__box",{"review-page__box--done":e(ne)}])},[o[23]||(o[23]=a("div",{class:"review-page__indicator"},null,-1)),a("h2",null,m(e(n)("Information about you"))+":",1),a("div",go,[e(r).customer.photoUrl?(p(),P(me,{key:0,photo:e(r).customer.photoUrl,size:200,class:"sm:mx-auto sm:mb-6"},null,8,["photo"])):(p(),P(de,{key:1,modelValue:e(t).hunterPhoto,"onUpdate:modelValue":o[10]||(o[10]=s=>e(t).hunterPhoto=s),name:"hunterPhoto",field:"bannerUrl","min-size":120,method:e(w).uploadImageCreate,"text-add":e(n)("Add your photo"),"text-hint":e(n)("Drag & drop an image from your desktop or choose a file to upload."),class:"w-200px rounded-full overflow-hidden sm:mx-auto sm:mb-6",onLoading:se,onChange:d},null,8,["modelValue","method","text-add","text-hint"])),a("div",yo,[i(x,{modelValue:e(r).customer.name,"onUpdate:modelValue":o[11]||(o[11]=s=>e(r).customer.name=s),name:"name",readonly:"",disabled:e(t).hideMyPersonalDetails,onBlur:d},{prepend:k(()=>[i(g,{name:"profile",class:"ml-3"})]),_:1},8,["modelValue","disabled"]),i(ue,{modelValue:e(t).country,"onUpdate:modelValue":o[12]||(o[12]=s=>e(t).country=s),options:e(ee),name:"country",label:e(n)("Country"),single:"","option-value":"name",disabled:e(t).hideMyPersonalDetails,sort:e(Pe).Alphabet,onChange:d},{prepend:k(()=>[i(g,{name:"globe",class:"ml-3"})]),_:1},8,["modelValue","options","label","disabled","sort"]),i(C,{modelValue:e(t).hideMyPersonalDetails,"onUpdate:modelValue":o[13]||(o[13]=s=>e(t).hideMyPersonalDetails=s),name:"hideMyPersonalDetails",label:e(n)("Do not show my details"),indent:!1,onChange:d},null,8,["modelValue","label"])])])],2),a("div",wo,[a("h2",bo,m(e(n)("Share photos from your hunt with other hunters!")),1
1),i(B,{size:e(L).sm,class:"!mb-2"},{default:k(()=>[D(m(e(n)("Please upload photos without advertisements, logos, or any visible outfitter names. Photos containing promotional content or branding may be removed.")),1)]),_:1},8,["size"]),i(pe,{modelValue:e(t).trophyPhotos,"onUpdate:modelValue":o[14]||(o[14]=s=>e(t).trophyPhotos=s),name:"trophyPhotos",validation:"files",field:"thumbnailUrl","text-add":e(n)("Add photos"),method:e(w).reviewsUploadImageCreate,"max-count":20,"max-size":20,"aspect-ratio":1,cover:!1,edit:!1,onUploading:ie,onChange:d},null,8,["modelValue","text-add","method"]),i(C,{modelValue:e(t).shareMyTrophyPhotos,"onUpdate:modelValue":o[15]||(o[15]=s=>e(t).shareMyTrophyPhotos=s),name:"shareMyTrophyPhotos",label:e(n)("You can share my photos in Social Media"),indent:!1,onChange:d},null,8,["modelValue","label"])]),e(r).isExternal?H("",!0):(p(),_("div",xo,[a("h2",null,m(e(n)("How was your experience using BookYourHunt?")),1),i(v,{modelValue:e(t).byhExperience,"onUpdate:modelValue":o[16]||(o[16]=s=>e(t).byhExperience=s),name:"byhExperience",options:e(y),onChange:d},null,8,["modelValue","options"]),a("h3",Vo,m(e(n)("Please let us know how can we improve!")),1),i(x,{modelValue:e(t).byhSuggestions,"onUpdate:modelValue":o[17]||(o[17]=s=>e(t).byhSuggestions=s),name:"byhSuggestions",type:"textarea",label:e(n)("Enter your message"),indent:!1,onBlur:d},null,8,["modelValue","label"])])),a("h2",null,m(e(n)("Here's a preview of your review"))+":",1),i(b,{item:e(S),"has-comment":!1},null,8,["item"]),i(ce,{type:"submit",size:e(L).lg,loading:e(c)===e(u).Sending||e(E),class:"!text-lg !sm:w-full","data-test":"submit",onClick:ae},{default:k(()=>[D(m(e(n)("Submit review")),1)]),_:1},8,["size","loading"])])]),i(_e)]))],64)):(p(),_("div",ko,[i(R,{size:60,position:"absolute"})]))])}}});export{ft 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.