PageSourceSearch

https://yusupov-palace.ru/_nuxt/C228zS98.js

js yusupov-palace.ru collected 2026-10-02 05:08:49 UTC 3,266 bytes, 1 lines download raw bytes

1import{_ as I}from"./B4mKCTF0.js";import{_ as V}from"./3p7X7lvt.js";import{_ as E}from"./BSRmpm12.js";import{m as F,a9 as P,a6 as j,a4 as D,h as b,al as R,a3 as q,$ as t,g as s,k as x,am as G,d as o,X as c,f as u,F as M,O,b as i,a2 as S,H as l,j as W}from"./DyBThVhF.js";import"./BLyNlljT.js";import"./DQeHqHse.js";const X={key:0,class:"font-body px-6 py-12"},z={class:"font-noto mt-4 mb-8 text-4xl uppercase md:text-6xl"},J={key:0,class:"mb-10"},K=["src","alt"],Q={class:"font-noto mb-10 border-b pb-6 text-3xl"},U=["aria-label"],Y={class:"font-noto mb-10 border-b pb-6 text-[32px]"},Z=["src","poster"],tt={key:0,class:"text-yus-gray-2 mt-3"},it=F({__name:"[id]",async setup(et){let p,w;const _=P(),T=j(),{locale:k,t:d}=D(),h=i(()=>{const e=Array.isArray(_.params.id)?_.params.id[0]:_.params.id;return typeof e=="string"&&/^\d+$/.test(e)?e:""});if(!h.value)throw b({statusCode:404,statusMessage:"Hall not found",fatal:!0});const{data:a,error:y}=([p,w]=R(()=>S(()=>`/api/halls/${h.value}`,{query:i(()=>({lang:k.value})),key:i(()=>`hall:${k.value}:${h.value}`)},"$W3uwT62ilC")),p=await p,w(),p);if(y.value)throw b({statusCode:y.value.statusCode||404,statusMessage:y.value.statusMessage||"Hall not found",fatal:!0});if(!a.value)throw b({statusCode:404,statusMessage:"Hall not found",fatal:!0});const f=i(()=>N({viewType:2})),B=i(()=>{const e=m({type:1,viewType:3});return e.length?e:m({type:1,viewType:1})}),C=i(()=>m({type:2}));q({title:()=>a.value?.title,meta:[{name:"description",content:()=>H(a.value?.description).slice(0,180)}]});function N(e){return m(e)[0]||null}function m(e){return(a.value?.media||[]).filter(n=>{const v=e.type===void 0||Number(n.type)===e.type,g=e.viewType===void 0||Number(n.view_type)===e.viewType;return v&&g&&!!n.path})}function $(e){return e?.alt||a.value?.title||""}function H(e){return(e||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}return(e,n)=>{const v=I,g=V,A=E;return t(a)?(l(),s("main",X,[x(v,{to:t(T)("/halls"),class:"back-link text-yus-gray-1 mt-4 mb-24 flex"},{default:G(()=>[n[0]||(n[0]=o("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"mr-3 h-6 w-6 stroke-current","aria-hidden":"true"},[o("path",{d:"M11 6L5 12M5 12L11 18M5 12H20","stroke-linecap":"round"})],-1)),W(" "+c(t(d)("halls.back")),1)]),_:1},8,["to"]),o("h1",z,c(t(a).title),1),t(f)||t(a).poster?.path?(l(),s("div",J,[o("img",{src:t(f)?.path||t(a).poster?.path||"",alt:$(t(f))||t(a).poster?.alt||t(a).title,class:"block h-[408px] w-full object-cover md:h-[785px] lg:h-[785px]"},null,8,K)])):u("",!0),t(a).description?(l(),s(M,{key:1},[o("h2",Q,c(t(d)("halls.detail.description")),1),x(g,{class:"mb-20 lg:ml-[50%]",content:t(a).description},null,8,["content"])],64)):u("",!0),x(A,{images:t(B),"fallback-title":t(a).title},null,8,["images","fallback-title"]),t(C).length?(l(),s("section",{key:2,class:"mb-40","aria-label":t(d)("halls.detail.video")},[o("h2",Y,c(t(d)("halls.detail.video")),1),(l(!0),s(M,null,O(t(C),(r,L)=>(l(),s("figure",{key:r.id??r.path??`hall-video-${L}`,class:"mb-14"},[o("video",{src:r.path||"",poster:r.preview||void 0,class:"w-full",controls:"",preload:"metadata"},null,8,Z),r.title?(l(),s("figcaption",tt,c(r.title),1)):u("",!0)]))),128))],8,U)):u("",!0)])):u("",!0)}}});export{it 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.