import{d,V as u,a4 as g,h as t,o as e,i as s,A as p,l as o,F as P,a9 as c,D as x}from"./index-9PRMimni.js";const y=["bowPhoto","draftMarkPhoto","overviewPhoto","bridgePhoto","mainDeckPhoto","forePhoto","sternPhoto","galleyPhoto","galleyStorePhoto","pharmacyPhoto","crewCabinPhoto","lifeBoatPhoto","garbageStationPhoto","mainEnginePhoto","auxEnginePhoto","centralControlPhoto","workshopPhoto","gearRoomPhoto","other1Photo","other2Photo","other3Photo","other4Photo","other5Photo","other6Photo","other7Photo","other8Photo","other8Photo","other9Photo","other10Photo","other11Photo","other12Photo","other13Photo","other14Photo","other15Photo","other16Photo","other17Photo","other18Photo","other19Photo","other20Photo","other21Photo","other22Photo","other23Photo","other24Photo","other25Photo","other26Photo","other27Photo","other28Photo","other29Photo","other30Photo","other31Photo","other32Photo"],f={class:"text-[16px] font-bold",style:{"margin-bottom":"-10px"}},_=["src"],b={style:{"text-align":"center","margin-top":"8px"}},D=d({__name:"index",props:{templateDetail:{type:Object,default:()=>({})}},setup(n){const m=n,{t:i}=u(),h=g(()=>y.filter(l=>m.templateDetail[`${l}_Photo`]));return(l,k)=>(e(),t("div",null,[s("p",f,p(o(i)("hsqe.auditInspection.vesselInspection.shipVisitReport.tabPhotos")),1),(e(!0),t(P,null,c(Math.ceil(o(h).length/2),r=>(e(),t("div",{key:r,style:{display:"flex",gap:"20px","margin-bottom":"20px"}},[(e(),t(P,null,c([0,1],a=>s("div",{key:a,style:{flex:"1","max-width":"350px"}},[n.templateDetail[`${o(h)[(r-1)*2+a]}_Photo`]?(e(),t(P,{key:0},[s("img",{src:n.templateDetail[`${o(h)[(r-1)*2+a]}_Photo`],alt:"",style:{width:"350px",height:"196px","object-fit":"cover",border:"1px solid #eee"}},null,8,_),s("p",b,p(o(i)(`hsqe.auditInspection.vesselInspection.photos.${o(h)[(r-1)*2+a]}`)),1)],64)):x("",!0)])),64))]))),128))]))}});export{D as _};
