import{_ as N}from"./BET59fY2.js";import{T as V}from"./Dr4acodI.js";import{_ as L}from"./C7I-j3S9.js";import{u as T,h as $,A as j,f as g,g as B,i as R,o as t,c as r,m as e,d as i,p as d,b as D,w as f,v as M,t as z,a as o,F,r as U,W as q,s as E,q as H}from"./C_yW9YRN.js";const I={key:1,class:"container"},S={class:"flex items-center justify-center py-8"},W=["src","alt"],G={class:"grid md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-4 gap-11 pb-10 gallary"},J=["src","alt","onClick"],K=["src"],te={__name:"index",async setup(O){let n,u;const{locale:x,t:_}=T();$({title:_("NAV.media")});const h=j(),y=H(),c=g(!1),m=g(null),v=B().$axios,{data:a,error:P,pending:k}=([n,u]=R(()=>E("medias",()=>v.get(`project-medias/${h.params.slug}`,{baseURL:y.public.baseURL,headers:{"Accept-Language":x.value}}).then(l=>l.data.data))),n=await n,u(),n);function b(l){m.value=l,c.value=!0}return(l,p)=>{const w=N,A=V,C=L;return t(),r("div",null,[e(k)?(t(),i(w,{key:0})):d("",!0),e(a)?(t(),r("div",I,[D(A,null,{default:f(()=>[M(z(e(a).title?e(a).title:e(_)("NAV.media")),1)]),_:1}),o("div",S,[o("img",{src:e(a).logo[0].media_trans,alt:e(a).logo[0].alt,width:"130",height:"65",loading:"lazy"},null,8,W)]),o("div",G,[(t(!0),r(F,null,U(e(a).images,s=>(t(),r("div",{key:s.id,class:"rounded-2xl h-[400px]"},[o("img",{class:"h-[400px] w-full object-cover rounded-2xl cursor-pointer",src:s.media_trans,alt:s.alt,onClick:Q=>b(s.media_trans)},null,8,J)]))),128))])])):d("",!0),(t(),i(q,{to:"body"},[e(c)?(t(),i(C,{key:0,onClose:p[0]||(p[0]=s=>c.value=!1)},{default:f(()=>[o("img",{src:e(m),alt:"media",class:"max-h-[600px] object-contain rounded-3xl"},null,8,K)]),_:1})):d("",!0)]))])}}};export{te as default};
