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