1import{T as w,S}from"./TripSteps.caf1e25b.js";import{_ as k}from"./DefaultHeading.b7b1df6e.js";import{_ as b,a as h,c as j}from"./app.cae762fe.js";import{S as B}from"./SmallContainer.de9eefbd.js";import{_ as F}from"./ProfileBox.9e4b5d1a.js";import{_ as I}from"./ProfileCard.36835a91.js";import{j as u,k as N,c as i,e as s,u as l,w as n,F as d,o as a,J as P,p as f,g as t,q as r,l as $,h as _,I as x,n as C,d as V,v as M,x as T}from"./vendor.0d0ae17d.js";import"./BackLink.df33225f.js";import"./ProfilePhoto.04e95872.js";const v=e=>(M("data-v-2acdfeee"),e=e(),T(),e),q={class:"flex justify-between mt-12 pr-4"},z={class:"text-primary-500 text-xl font-medium"},D=v(()=>t("i",{class:"fa-solid fa-map-location text-lg text-primary-500"},null,-1)),E={key:0,class:"whitespace-pre-line mt-4 pb-2 px-4"},J={class:"space-y-3 mt-12"},K={class:"flex items-center space-x-2"},L={class:"mb-9 mt-12"},O={class:"text-primary-500 text-xl md:text-lg font-medium"},R={class:"text-gray-700 text-lg font-medium"},U={class:"mt-4"},A={class:"flex items-center space-x-2"},G={class:"text-gray-900 text-lg font-medium"},H={class:"flex space-x-5 items-center"},Q=v(()=>t("i",{class:"fa fa-arrow-right text-xl text-gray-700"},null,-1)),W={key:1,class:"flex justify-end"},X={__name:"Show",props:{trip:Object},setup(e){const m=e,p=u(()=>N().props.auth.user),g=u(()=>m.trip.isPassenger),y=u(()=>m.trip.user_pending);return(c,Y)=>(a(),i(d,null,[s(l(P),{title:"Fahrtangebot"}),s(B,null,{default:n(()=>[s(k,null,{default:n(()=>[f("Fahrtplan")]),_:1}),t("div",q,[t("div",z,r(e.trip.formatted_date)+" Uhr",1),t("div",null,[s(l($),{href:c.route("tour-map",[e.trip])},{default:n(()=>[D]),_:1},8,["href"])])]),s(w,{class:"mt-6 mb-16",trip:e.trip},null,8,["trip"]),s(I,{user:e.trip.driver},null,8,["user"]),e.trip.description?(a(),i("p",E,r(e.trip.description),1)):_("",!0),t("div",J,[(a(!0),i(d,null,x(e.trip.driver.criterias,o=>(a(),i("div",K,[t("i",{class:C([o.icon,"text-xl w-7"])},null,2),t("span",null,r(o.name),1)]))),256))]),l(p).id!==e.trip.driver.id?(a(),V(h,{key:1,href:c.route("trip.chat.show",[e.trip,e.trip.driver,l(p)]),variant:"secondary",iconPosition:"left",icon:"fa-solid fa-comments",class:"-ml-4 mt-4 w-full"},{default:n(()=>[f(r(e.trip.driver.firstname)+" kontaktieren",1)]),_:1},8,["href"])):_("",!0),t("div",L,[l(g)||l(y)?(a(),i(d,{key:0},[t("div",O,"Mitfahrer:in"+r(e.trip.passenger_count===1?"":"nen"),1),t("span",R,r(e.trip.passenger_count||"Keine")+" Mitfahrer:in"+r(e.trip.passenger_count===1?"":"nen")+" f\xFCr diese Fahrt",1),(a(!0),i(d,null,x(e.trip.passengers,o=>(a(),i("div",U,[s(S,{class:"bg-white py-3 px-5 mb-2"},{default:n(()=>[s(j,{href:c.route("profile.show",o.user),class:"flex justify-between"},{default:n(()=>[t("div",A,[t("span",G,r(o.user.name),1)]),t("div",H,[s(F,{user:o.user,hasName:!1,hasRating:!1},null,8,["user"]),Q])]),_:2},1032,["href"])]),_:2},1024)]))),256))],64)):(a(),i("div",W,[s(h,{href:c.route("trip.request.new",e.trip)},{default:n(()=>[f("Mitfahrt buchen")]),_:1},8,["href"])]))])]),_:1})],64))}};var le=b(X,[["__scopeId","data-v-2acdfeee"]]);export{le 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.