1import{r as j,j as e}from"./vendor-BTf9vN0b.js";import{u as N,L as l}from"./vendor-router-CBaQp1cu.js";import{u as w}from"./vendor-query-6GOPhlRe.js";import{S as T}from"./index-CmVHFB74.js";import{h as C,d as m,e as E,f as L,r as P,aG as $}from"./vendor-icons-BRpCwjdJ.js";import"./vendor-ui-BQKBneor.js";const I="https://cdn1.clickthecity.com/wp-content/uploads/2026/08/25085007/ClickTheCity-Tickets.png",D={movies:{title:"Movie Tickets in the Philippines",pageTitle:"Movie Tickets Philippines: Now Showing | ClickTheCity",description:"Browse movies currently showing in Philippine cinemas, check schedules, and find official cinema ticket information on ClickTheCity.",intro:"Browse current movie listings and follow each title to its showtimes and cinema information."},events:{title:"Event Tickets in the Philippines",pageTitle:"Event Tickets Philippines: Concerts & Shows | ClickTheCity",description:"Browse current concerts, theater shows, festivals, and other events in the Philippines with ticket information when supplied by the organizer or official provider.",intro:"Explore current live events and open each listing for dates, venues, and any ticket information supplied by the organizer."}};function S(i){if(!i)return"";const s=new Date(i.includes(" ")?i.replace(" ","T"):i);return Number.isNaN(s.getTime())?"":s.toLocaleDateString("en-PH",{month:"short",day:"numeric",year:"numeric"})}function h(i){return S(i.effectiveStartDate||i.startDate)}function b(i){return i.imageUrl||""}function q(){var p,g,f,u;const[i]=N(),s=i==="/tickets/events"?"events":"movies",a=D[s],d=w({queryKey:["/api/movies/now-showing","ticket-category"],queryFn:async()=>{const t=await fetch("/api/movies/now-showing");if(!t.ok)throw new Error("Failed to load current movies");return t.json()},enabled:s==="movies",staleTime:5*60*1e3}),x=w({queryKey:["/api/events","ticket-category"],queryFn:async()=>{const t=await fetch("/api/events?limit=24&upcoming=true");if(!t.ok)throw new Error("Failed to load current events");return t.json()},enabled:s==="events",staleTime:5*60*1e3});j.useEffect(()=>{window.scrollTo(0,0)},[s]);const c=((g=(p=d.data)==null?void 0:p.data)==null?void 0:g.filter(t=>t.hash&&t.slug&&t.title))||[],r=((u=(f=x.data)==null?void 0:f.data)==null?void 0:u.filter(t=>t.slug&&t.title))||[],n=s==="movies"?c.length:r.length,v=s==="movies"?d.isLoading:x.isLoading,y=[{name:"Home",url:"https://www.clickthecity.com"},{name:"Tickets",url:"https://www.clickthecity.com/tickets"},{name:a.title,url:`https://www.clickthecity.com/tickets/${s}`}],k=s==="movies"?{"@type":"ItemList","@id":`https://www.clickthecity.com/tickets/${s}#inventory`,name:"Movies currently showing in Philippine cinemas",numberOfItems:c.length,itemListElement:c.slice(0,20).map((t,o)=>({"@type":"ListItem",position:o+1,item:{"@type":"Movie",name:t.title,url:`https://www.clickthecity.com/movies/title/${t.hash}/${t.slug}`,...t.poster?{image:t.poster}:{}}}))}:{"@type":"ItemList","@id":`https://www.clickthecity.com/tickets/${s}#inventory`,name:"Upcoming events in the Philippines",numberOfItems:r.length,itemListElement:r.slice(0,20).map((t,o)=>({"@type":"ListItem",position:o+1,item:{"@type":"Event",name:t.title,url:`https://www.clickthecity.com/events/${t.slug}`,...h(t)?{startDate:t.effectiveStartDate||t.startDate}:{},...t.venue?{location:{"@type":"Place",name:t.venue}}:{}}}))};return e.jsxs("div",{className:"min-h-screen bg-slate-50",children:[e.jsx(T,{title:a.pageTitle,description:a.description,canonical:`https://www.clickthecity.com/tickets/${s}`,ogImage:I,ogImageWidth:"1731",ogImageHeight:"909",breadcrumbs:y,robots:n>0?"index, follow, max-image-preview:large":"noindex, follow",children:n>0&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":`https://www.clickthecity.com/tickets/${s}#webpage`,url:`https://www.clickthecity.com/tickets/${s}`,name:a.pageTitle,description:a.description,isPartOf:{"@id":"https://www.clickthecity.com/#website"},mainEntity:{"@id":`https://www.clickthecity.com/tickets/${s}#inventory`},inLanguage:"en-PH"},k]})})}),e.jsx("header",{className:"border-b bg-slate-950 pt-16 text-white",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8",children:[e.jsx(l,{href:"/tickets",className:"text-sm font-medium text-slate-300 hover:text-white",children:"â Back to Tickets"}),e.jsx("div",{className:"mt-8 text-sm font-semibold uppercase tracking-[0.22em] text-amber-300",children:"Current ticket information"}),e.jsx("h1",{className:"mt-3 max-w-3xl text-4xl font-bold tracking-tight sm:text-5xl",children:a.title}),e.jsx("div",{className:"mt-5 max-w-2xl text-lg leading-8 text-slate-300",children:a.intro})]})}),e.jsxs("main",{className:"mx-auto max-w-7xl px-4 py-10 sm:px-6 lg:px-8",children:[e.jsx("div",{className:"mb-8 rounded-xl border border-amber-200 bg-amber-50 p-5 text-sm leading-6 text-slate-700",children:e.jsxs("div",{className:"flex gap-3",children:[e.jsx(C,{className:"mt-0.5 h-5 w-5 shrink-0 text-amber-700"}),e.jsxs("p",{children:[e.jsx("strong",{className:"text-slate-950",children:"Official ticketing information:"})," ","ClickTheCity helps you discover schedules and event details. We do not sell tickets on this page. When ticket information or a provider is listed, verify availability and complete any purchase through the organizer, venue, or cinemaâs official channel."]})]})}),v?e.jsx("p",{className:"py-16 text-center text-slate-500",role:"status",children:"Loading current listingsâ¦"}):n===0?e.jsxs("section",{className:"rounded-2xl border border-slate-200 bg-white p-8 text-center",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-950",children:"No current listings found"}),e.jsxs("p",{className:"mt-3 text-slate-600",children:["Check back soon for new ",s==="movies"?"movie listings":"event listings","."]}),e.jsxs(l,{href:"/tickets",className:"mt-6 inline-flex items-center font-semibold text-blue-700 hover:text-blue-900",children:["Explore all ticket information ",e.jsx(m,{className:"ml-1 h-4 w-4"})]})]}):e.jsxs("section",{"aria-labelledby":"inventory-heading",children:[e.jsxs("div",{className:"mb-5 flex items-end justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold uppercase tracking-wider text-blue-700",children:"Live inventory"}),e.jsx("h2",{id:"inventory-heading",className:"mt-1 text-2xl font-bold text-slate-950",children:s==="movies"?"Movies now showing":"Upcoming events"})]}),e.jsxs("span",{className:"text-sm text-slate-500",children:[n," ",n===1?"listing":"listings"]})]}),e.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:s==="movies"?c.map(t=>e.jsxs("article",{className:"flex flex-col overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm",children:[e.jsx("div",{className:"aspect-[2/3] bg-slate-100",children:t.poster&&e.jsx("img",{src:t.poster_2x||t.poster,alt:`${t.title} movie poster`,className:"h-full w-full object-cover",loading:"lazy"})}),e.jsxs("div",{className:"flex flex-1 flex-col p-5",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-950",children:t.title}),e.jsxs("div",{className:"mt-2 space-y-1 text-sm text-slate-600",children:[t.running_time&&e.jsx("p",{children:t.running_time}),t.mtrcb_rating&&e.jsxs("p",{children:["Rated ",t.mtrcb_rating]})]}),e.jsx("div",{className:"mt-auto pt-5",children:e.jsxs(l,{href:`/movies/title/${t.hash}/${t.slug}`,className:"inline-flex items-center font-semibold text-blue-700 hover:text-blue-900",children:["View showtimes and details ",e.jsx(m,{className:"ml-1 h-4 w-4"})]})})]})]},t.movie_id)):r.map(t=>e.jsxs("article",{className:"flex flex-col overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm",children:[e.jsx("div",{className:"h-48 bg-slate-100 sm:h-52",children:b(t)&&e.jsx("img",{src:b(t),alt:"",className:"h-full w-full object-cover",loading:"lazy"})}),e.jsxs("div",{className:"flex flex-1 flex-col p-5",children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-fuchsia-700",children:t.category||"Live event"}),e.jsx("h3",{className:"mt-2 text-lg font-bold text-slate-950",children:t.title}),e.jsxs("div",{className:"mt-3 space-y-2 text-sm text-slate-600",children:[h(t)&&e.jsxs("p",{className:"flex gap-2",children:[e.jsx(E,{className:"h-4 w-4 shrink-0 text-slate-400"}),h(t)]}),t.venue&&e.jsxs("p",{className:"flex gap-2",children:[e.jsx(L,{className:"h-4 w-4 shrink-0 text-slate-400"}),t.venue]}),t.organizer&&e.jsxs("p",{className:"flex gap-2",children:[e.jsx(P,{className:"h-4 w-4 shrink-0 text-slate-400"}),t.organizer]})]}),e.jsx("div",{className:"mt-auto pt-5",children:e.jsxs(l,{href:`/events/${t.slug}`,className:"inline-flex items-center font-semibold text-blue-700 hover:text-blue-900",children:["View event details ",e.jsx(m,{className:"ml-1 h-4 w-4"})]})})]})]},t.id))})]}
1),e.jsxs("nav",{"aria-label":"Related ticket pages",className:"mt-12 flex flex-wrap gap-x-6 gap-y-3 border-t border-slate-200 pt-6 text-sm",children:[e.jsx(l,{href:"/tickets",className:"font-semibold text-blue-700 hover:text-blue-900",children:"Tickets home"}),s==="movies"?e.jsx(l,{href:"/tickets/events",className:"font-semibold text-blue-700 hover:text-blue-900",children:"Browse event tickets"}):e.jsx(l,{href:"/tickets/movies",className:"font-semibold text-blue-700 hover:text-blue-900",children:"Browse movie tickets"}),e.jsx(l,{href:"/tickets/faq",className:"font-semibold text-blue-700 hover:text-blue-900",children:"Tickets FAQ"}),e.jsxs(l,{href:s==="movies"?"/movies/locations":"/events",className:"inline-flex items-center text-slate-600 hover:text-blue-700",children:[s==="movies"?"Find a cinema":"All events"," ",e.jsx($,{className:"ml-1 h-3.5 w-3.5"})]})]})]})]})}export{q 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.