1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/common-components-BbWk_Ayz.js","assets/react-vendor-CZJcMeOp.js","assets/inertia-vendor-Bl1LuK12.js","assets/vendor-C07kESPO.js","assets/vendor.CZmThRbj.css","assets/swiper-vendor-DGRWMYna.js","assets/swiper-vendor.DR1_GU6A.css","assets/react-vendor.DvAS39An.css","assets/utils-315QXOB-.js","assets/common-components.8YcqpLuf.css","assets/components-BHGlaF6j.js","assets/components.BZpORVPB.css"])))=>i.map(i=>d[i]); 2import{aS as R,v as D,w as V,aF as k,B as T,aT as O,Q as w,_ as i}from"./common-components-BbWk_Ayz.js";import{u,r as s,j as e}from"./react-vendor-CZJcMeOp.js";import{x as N,y as B,z as $,n as F,G,I as M,J as C,K as W}from"./components-BHGlaF6j.js";import{M as H}from"./layouts-DYUeXh_S.js";import"./vendor-C07kESPO.js";import"./utils-315QXOB-.js";import"./swiper-vendor-DGRWMYna.js";import"./inertia-vendor-Bl1LuK12.js";const q=s.lazy(()=>i(()=>import("./common-components-BbWk_Ayz.js").then(t=>t.b6),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),J=s.lazy(()=>i(()=>import("./common-components-BbWk_Ayz.js").then(t=>t.b5),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),K=s.lazy(()=>i(()=>import("./common-components-BbWk_Ayz.js").then(t=>t.b8),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),Q=s.lazy(()=>i(()=>import("./components-BHGlaF6j.js").then(t=>t.aZ),__vite__mapDeps([10,1,2,3,4,5,6,7,0,8,9,11]))),U=s.lazy(()=>i(()=>import("./common-components-BbWk_Ayz.js").then(t=>t.b7),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),Z=s.lazy(()=>i(()=>import("./components-BHGlaF6j.js").then(t=>t.a_),__vite__mapDeps([10,1,2,3,4,5,6,7,0,8,9,11]))),X=s.lazy(()=>i(()=>import("./components-BHGlaF6j.js").then(t=>t.a$),__vite__mapDeps([10,1,2,3,4,5,6,7,0,8,9,11]))),Y=s.lazy(()=>i(()=>import("./components-BHGlaF6j.js").then(t=>t.b0),__vite__mapDeps([10,1,2,3,4,5,6,7,0,8,9,11]))),n=()=>e.jsx("aside",{className:"bg-gray-300 animate-pulse w-full py-20"});function re({title:t,metaDescription:g,artist:a,dates:o,userCityDates:S,actors:r,reviews:d,totalReviews:_,photos:p,videos:c,posts:b,schemaDatesOffer:A,ga4ViewItems:E,seoYear:h,tags:v,similarArtists:L}){var f;const l=o==null?void 0:o.data[0],P=!!(l!=null&&l.date),j=r.map(z=>z.name).join(", "),{query:m}=u().props.ziggy,[I,x]=s.useState(!1),y=P?{"@context":"http://schema.org","@type":"Event",name:t,startDate:new Date(l.date).toISOString(),endDate:new Date(l.date).toISOString(),eventStatus:"https://schema.org/EventScheduled",url:u().props.ziggy.location,location:{"@type":"Place",name:l.hall_full_name||"",address:{"@type":"PostalAddress",streetAddress:l.hall_address||"",addressLocality:l.hall_city||"",postalCode:l.hall_postcode||"",addressCountry:"PL"}},offers:A,performer:{"@type":r.length>1?"PerformingGroup":"Person",name:j.length>0?j:(f=l==null?void 0:l.event)==null?void 0:f.artist_name},image:a.main_image_url,description:a.seo_meta_description,organizer:{"@type":"Organization",name:"Adria Art",url:"https://adria-art.pl"},...d.total>0&&{aggregateRating:{"@type":"AggregateRating",ratingValue:a.avg_rating,reviewCount:d.total,bestRating:"5",worstRating:"1"}}}:null;return s.useEffect(()=>{R({item_list_id:D(`Wydarzenie ${a.name}`,m,String(m.page||"1")),item_list_name:V(`Wydarzenie ${a.name}`,m,String(m.page||"1")),items:E})}
2,[o]),e.jsxs(H,{children:[e.jsx(k,{metadata:{title:`${t} - ${h}`,description:g,openGraph:{type:"article",url:u().props.ziggy.location,title:`${t} - ${h}`,description:g,image:a.main_image_url}},schema:[...y?[y]:[],{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://adria-art.pl"},{"@type":"ListItem",position:2,name:"Repertuar",item:route("artists.index")}]}]}),e.jsx(T,{className:"py-4 lg:py-6",links:[{title:"Repertuar",url:route("artists.index")},{title:a.name}]}),e.jsxs("div",{className:"mb-12 lg:mb-20",children:[e.jsx("div",{children:e.jsx(N,{artist:a,reviews:d,totalReviews:_,onArtistFavorited:()=>x(!0)})}),e.jsxs("div",{className:"relative container mx-auto lg:mt-6 px-4 lg:flex gap-16",children:[e.jsx(B,{artist:a,totalReviews:d.total,totalActors:r.length,totalPhotos:p.length,totalVideos:c.length,onArtistFavorited:()=>x(!0)}),e.jsxs("div",{className:"w-full min-w-0",children:[(a==null?void 0:a.lead)&&e.jsx($,{artist:a}),e.jsx(F,{}),o!==null&&e.jsx(G,{artist:a,dates:o,userCityDates:S,actors:r}),(a==null?void 0:a.description)&&e.jsx(M,{artist:a}),d.total>0&&e.jsx(C,{totalReviews:_,artist:a,reviews:d}),p.length>0&&e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(Z,{photos:p})}),c.length>0&&e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(X,{videos:c})}),r.length>0&&e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(Y,{actors:r})})]})]}),e.jsxs("div",{className:"container mx-auto pt-12 lg:pt-20 px-4 flex flex-col gap-y-6 xl:grid xl:grid-cols-2 xl:gap-x-6 mb-20",children:[e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(J,{})}),e.jsxs("div",{className:"flex flex-col gap-y-6",children:[e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(K,{})}),e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(U,{iconWithTitle:!0})})]})]})]}),e.jsx(W,{artists:L,link:route("artists.index")}),e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(Q,{posts:b,link:route("blog.index")})}),e.jsx(O,{tags:v}),e.jsx(s.Suspense,{fallback:e.jsx(n,{}),children:e.jsx(q,{})}),e.jsx(w,{show:I,onClose:()=>x(!1)})]})}export{re 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.