1import{_ as w}from"./BKYRR0YX.js";import{b as P,K as S,an as $,a5 as C,ao as I,e as d,w as x,g as a,ap as B,aq as l,c as i,o as y,ac as D}from"./D5rHXhro.js";import{E}from"./CbzcSvpk.js";import{u as A}from"./e43PcC14.js";import{g as v}from"./DyPSuTQi.js";import"./Nuu3KiRV.js";import"./C1T4AniJ.js";import"./BQPGm6V5.js";import"./Cv4yoU4q.js";import"./LjjDsx95.js";import"./BoaknJFm.js";import"./DvvxvYA-.js";import"./D_eVSWY6.js";import"./Da6bwYxP.js";import"./DATanDT5.js";import"./CudI1W_j.js";import"./EjBLKy-J.js";import"./BCLKrQjM.js";import"./HkWRYOBe.js";import"./co3AfhH6.js";import"./itMpFBIn.js";import"./CqAdb6ph.js";import"./DnXqVpCy.js";import"./C7aP0nDh.js";import"./B1rmDrZM.js";import"./Cr5ts1rm.js";import"./D9eMIr6G.js";import"./CuIgeLYa.js";import"./eBzEw9LG.js";import"./CyT3zPSc.js";import"./CJKK8L4z.js";import"./JOYpq6Tc.js";import"./Ce2LppSO.js";import"./CN9Kn4TQ.js";import"./4ze1FbG0.js";import"./miS2LYUb.js";import"./Bx-teXmw.js";import"./B-HMaXjh.js";const _r=P({__name:"[programSlug]",async setup(O){let p,g;const u=S(),s=i(()=>u.params.slug),m=i(()=>u.params.programSlug),{data:o,pending:k,error:c}=([p,g]=$(async()=>B(()=>`program-${s.value}-${m.value}`,async()=>{const r=s.value,t=m.value,[e,f]=await Promise.all([l(`/api/v1/properties/slug/${r}/programs/${t}`),l(`/api/v1/properties/slug/${r}?include=programs,dictionaries,gallery`)]),h=await l(`/api/v1/properties/${e.property.id}/booking-addons/available?program_id=${e.id}`).catch(()=>[]);return{program:e,bookingProperty:f,addons:h}},{watch:[s,m]})),p=await p,g(),p);if(c.value)throw C({...I(c.value),fatal:!0});const _=i(()=>{const r=o.value?.program;if(!r?.property?.id)return null;const t=r.property;return{propertySeed:{id:t.id,slug:t.slug,title:t.title,short_desc:t.short_desc??""},target:{kind:"program",program:r}}}),b=i(()=>{const r=o.value;if(!r?.bookingProperty?.programs?.length)return null;const t=r.bookingProperty.programs.filter(e=>e.id!==r.program.id);return t.length?{heading:"ÐÑÑгие пÑогÑаммÑ",sections:[],programs:t,bookingProperty:r.bookingProperty}:null}),n=i(()=>v(o.value?.program?.media?.cover??null)??v(o.value?.bookingProperty?.media?.cover??null));return A({seoData:i(()=>o.value?.program?.seo??null),reapplyOn:()=>o.value?.program?.id,fallback:{title:()=>{const r=o.value?.program,t=r?.title||"ÐÑогÑамма",e=r?.property?.title||"ÐбÑекÑ";return`${t}, ${e}: ÑоÑо, аÑенда`},description:()=>o.value?.program?.description||void 0,ogImage:()=>n.value?.url,ogImageWidth:()=>n.value?.width,ogImageHeight:()=>n.value?.height,ogImageType:()=>n.value?.type}}),(r,t)=>{const e=w;return y(),d(e,{"is-loading":a(k),"skeleton-type":"page"},{default:x(()=>[a(o)?(y(),d(E,{key:0,entity:a(o).program,"parent-property":a(o).program.property,"booking-property":a(o).bookingProperty,"default-price-unit":"person","kind-label":"ÐÑогÑамма","entity-kind":"program","show-program-party-baseline":"","inline-booking":a(_),"related-booking-services":a(b),addons:a(o).addons},null,8,["entity","parent-property","booking-property","inline-booking","related-booking-services","addons"])):D("",!0)]),_:1},8,["is-loading"])}}});export{_r 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.