Files
web-alterflixhub/assets/cinema._slug-sW8NU3ca.js
T
Bkk1234 e6c4ebff48 chore(publish): replace source tree with static export at repo root
Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.

Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
2026-11-22 22:24:36 +07:00

1 line
19 KiB
JavaScript

import{i as e,t}from"./react-B8IZ02wI.js";import{a as n,m as r}from"./components-LggAOTeO.js";import{a as i,o as a,r as o}from"./IconCheck-B3jDJthn.js";import{t as s}from"./jsx-runtime-fBfwind-.js";import{i as c,o as l}from"./share-origin-COlEIvGo.js";import{n as u}from"./app-config-4aQIl_Vd.js";import{a as d,r as f}from"./messages-nFlHChGW.js";import{t as p}from"./createReactComponent-C-DRqPhY.js";import{t as ee}from"./IconArrowBackUp-9ZWnW9Am.js";import{a as m,i as te,n as ne,o as re,r as ie,s as h}from"./CinemaGrid-DJMjtFke.js";import{a as g,i as ae,o as oe,r as se}from"./footer-icons-kTf1LTdH.js";import{i as _,n as v,r as y,t as b}from"./SiteShell-DHgUrms6.js";import{n as ce,t as le}from"./contact-link-BLAvkJkh.js";import{a as x,i as S,n as C,r as w}from"./seo-CukKNP_H.js";import{c as T,d as E,g as D,l as O,o as k,p as A,u as j,v as M}from"./cinemas-CTA3vCte.js";var N=p(`outline`,`book`,`Book`,[[`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-0`}],[`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-1`}],[`path`,{d:`M3 6l0 13`,key:`svg-2`}],[`path`,{d:`M12 6l0 13`,key:`svg-3`}],[`path`,{d:`M21 6l0 13`,key:`svg-4`}]]),P=p(`outline`,`brand-line`,`BrandLine`,[[`path`,{d:`M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01`,key:`svg-0`}]]),F=p(`outline`,`briefcase`,`Briefcase`,[[`path`,{d:`M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -9`,key:`svg-0`}],[`path`,{d:`M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2`,key:`svg-1`}],[`path`,{d:`M12 12l0 .01`,key:`svg-2`}],[`path`,{d:`M3 13a20 20 0 0 0 18 0`,key:`svg-3`}]]),I=p(`outline`,`bus`,`Bus`,[[`path`,{d:`M4 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M16 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-1`}],[`path`,{d:`M4 17h-2v-11a1 1 0 0 1 1 -1h14a5 7 0 0 1 5 7v5h-2m-4 0h-8`,key:`svg-2`}],[`path`,{d:`M16 5l1.5 7l4.5 0`,key:`svg-3`}],[`path`,{d:`M2 10l15 0`,key:`svg-4`}],[`path`,{d:`M7 5l0 5`,key:`svg-5`}],[`path`,{d:`M12 5l0 5`,key:`svg-6`}]]),L=p(`outline`,`car`,`Car`,[[`path`,{d:`M5 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M15 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-1`}],[`path`,{d:`M5 17h-2v-6l2 -5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0h-6m-6 -6h15m-6 0v-5`,key:`svg-2`}]]),R=p(`outline`,`chevron-left`,`ChevronLeft`,[[`path`,{d:`M15 6l-6 6l6 6`,key:`svg-0`}]]),z=p(`outline`,`coffee`,`Coffee`,[[`path`,{d:`M3 14c.83 .642 2.077 1.017 3.5 1c1.423 .017 2.67 -.358 3.5 -1c.83 -.642 2.077 -1.017 3.5 -1c1.423 -.017 2.67 .358 3.5 1`,key:`svg-0`}],[`path`,{d:`M8 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`,key:`svg-1`}],[`path`,{d:`M12 3a2.4 2.4 0 0 0 -1 2a2.4 2.4 0 0 0 1 2`,key:`svg-2`}],[`path`,{d:`M3 10h14v5a6 6 0 0 1 -6 6h-2a6 6 0 0 1 -6 -6v-5`,key:`svg-3`}],[`path`,{d:`M16.746 16.726a3 3 0 1 0 .252 -5.555`,key:`svg-4`}]]),B=p(`outline`,`external-link`,`ExternalLink`,[[`path`,{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 13l9 -9`,key:`svg-1`}],[`path`,{d:`M15 4h5v5`,key:`svg-2`}]]),V=p(`outline`,`map`,`Map`,[[`path`,{d:`M3 7l6 -3l6 3l6 -3v13l-6 3l-6 -3l-6 3v-13`,key:`svg-0`}],[`path`,{d:`M9 4v13`,key:`svg-1`}],[`path`,{d:`M15 7v13`,key:`svg-2`}]]),H=p(`outline`,`plant-2`,`Plant2`,[[`path`,{d:`M2 9a10 10 0 1 0 20 0`,key:`svg-0`}],[`path`,{d:`M12 19a10 10 0 0 1 10 -10`,key:`svg-1`}],[`path`,{d:`M2 9a10 10 0 0 1 10 10`,key:`svg-2`}],[`path`,{d:`M12 4a9.7 9.7 0 0 1 2.99 7.5`,key:`svg-3`}],[`path`,{d:`M9.01 11.5a9.7 9.7 0 0 1 2.99 -7.5`,key:`svg-4`}]]),U=p(`outline`,`shopping-bag`,`ShoppingBag`,[[`path`,{d:`M6.331 8h11.339a2 2 0 0 1 1.977 2.304l-1.255 8.152a3 3 0 0 1 -2.966 2.544h-6.852a3 3 0 0 1 -2.965 -2.544l-1.255 -8.152a2 2 0 0 1 1.977 -2.304`,key:`svg-0`}],[`path`,{d:`M9 11v-5a3 3 0 0 1 6 0v5`,key:`svg-1`}]]),W=p(`outline`,`sofa`,`Sofa`,[[`path`,{d:`M4 11a2 2 0 0 1 2 2v1h12v-1a2 2 0 1 1 4 0v5a1 1 0 0 1 -1 1h-18a1 1 0 0 1 -1 -1v-5a2 2 0 0 1 2 -2`,key:`svg-0`}],[`path`,{d:`M4 11v-3a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v3`,key:`svg-1`}],[`path`,{d:`M12 5v9`,key:`svg-2`}]]),G=p(`outline`,`ticket`,`Ticket`,[[`path`,{d:`M15 5l0 2`,key:`svg-0`}],[`path`,{d:`M15 11l0 2`,key:`svg-1`}],[`path`,{d:`M15 17l0 2`,key:`svg-2`}],[`path`,{d:`M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2`,key:`svg-3`}]]),ue=p(`outline`,`tools-kitchen-2`,`ToolsKitchen2`,[[`path`,{d:`M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12m0 12v6h-1v-3m-10 -14v17m-3 -17v3a3 3 0 1 0 6 0v-3`,key:`svg-0`}]]),de=p(`outline`,`train`,`Train`,[[`path`,{d:`M21 13c0 -3.87 -3.37 -7 -10 -7h-8`,key:`svg-0`}],[`path`,{d:`M3 15h16a2 2 0 0 0 2 -2`,key:`svg-1`}],[`path`,{d:`M3 6v5h17.5`,key:`svg-2`}],[`path`,{d:`M3 11v4`,key:`svg-3`}],[`path`,{d:`M8 11v-5`,key:`svg-4`}],[`path`,{d:`M13 11v-4.5`,key:`svg-5`}],[`path`,{d:`M3 19h18`,key:`svg-6`}]]),fe=p(`outline`,`world`,`World`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M3.6 9h16.8`,key:`svg-1`}],[`path`,{d:`M3.6 15h16.8`,key:`svg-2`}],[`path`,{d:`M11.5 3a17 17 0 0 0 0 18`,key:`svg-3`}],[`path`,{d:`M12.5 3a17 17 0 0 1 0 18`,key:`svg-4`}]]),K=e(t(),1),q=s();function pe(){let{messages:e}=o();return(0,q.jsx)(b,{variant:`detail`,children:(0,q.jsxs)(`main`,{className:`relative z-10 mx-auto flex max-w-[1440px] flex-col items-center gap-6 px-5 py-32 text-center md:px-[108px]`,children:[(0,q.jsx)(`h1`,{className:`text-3xl font-bold`,children:e.notFound.title}),(0,q.jsx)(`p`,{className:`text-[#B3B3B3]`,children:e.notFound.text}),(0,q.jsx)(a,{to:`/`,className:`rounded-lg px-6 py-2 font-medium`,style:{background:y.brand},children:e.notFound.cta})]})})}function me({cinema:e}){let{locale:t,messages:n}=o(),r=j(e,t),i=T(e,t);return(0,q.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.tags.map(e=>(0,q.jsx)(`span`,{className:`rounded-[18px] border border-[#A92626] px-4 py-2 text-sm text-[#D47272]`,style:{background:y.pillGradient},children:n.tags[e]??e},e))}),(0,q.jsx)(`h1`,{className:`text-[40px] font-bold leading-[1.3]`,children:E(e,t)})]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-lg`,children:[(0,q.jsx)(re,{size:24,className:`shrink-0`}),r||n.card.locationFallback]}),e.map_url?(0,q.jsxs)(`a`,{href:e.map_url,target:`_blank`,rel:`noreferrer`,className:`flex w-[200px] items-center justify-center gap-2 rounded-lg border border-white px-4 py-2 text-lg font-medium`,children:[n.detail.openMap,(0,q.jsx)(V,{size:24})]}):null]}),i?(0,q.jsx)(`p`,{className:`text-xl leading-[1.3]`,children:i}):null]})}function he({label:e,kind:t,href:n}){let r=e.toLowerCase(),i=(n??``).toLowerCase();return t===`tel`?(0,q.jsx)(se,{size:16,"aria-hidden":`true`}):t===`mailto`?(0,q.jsx)(ae,{size:16,"aria-hidden":`true`}):i.includes(`facebook`)||r.includes(`facebook`)?(0,q.jsx)(oe,{size:16,"aria-hidden":`true`}):i.includes(`instagram`)||r.includes(`instagram`)?(0,q.jsx)(g,{size:16,"aria-hidden":`true`}):i.includes(`line.me`)||r.includes(`line`)?(0,q.jsx)(P,{size:16,"aria-hidden":`true`}):r.includes(`จอง`)||r.includes(`book`)||r.includes(`ticket`)?(0,q.jsx)(G,{size:16,"aria-hidden":`true`}):(0,q.jsx)(fe,{size:16,"aria-hidden":`true`})}function ge({channel:e}){let t=le(e),n=e.value.trim()===``?e.href??``:e.value,r=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[#999]`,children:(0,q.jsx)(he,{label:e.label,kind:t.kind,href:t.href})}),(0,q.jsx)(`span`,{className:`truncate`,children:n})]}),t.external?(0,q.jsx)(B,{size:16,"aria-hidden":`true`,className:`shrink-0 text-[#999]`}):null]}),i=`flex min-h-11 items-center justify-between gap-3 rounded-lg text-sm transition-colors`;return(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`span`,{className:`text-sm text-[#999]`,children:e.label}),t.href?(0,q.jsx)(`a`,{href:t.href,...t.external?{target:`_blank`,rel:`noopener noreferrer`}:{rel:`nofollow`},className:`${i} hover:text-[#D47272] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#A92626]`,children:r}):(0,q.jsx)(`span`,{className:i,children:r})]})}function _e({cinema:e}){let{messages:t}=o();return(0,q.jsx)(`aside`,{className:`flex flex-col justify-between gap-6 rounded-xl p-6`,style:{border:`1px solid ${y.border}`},children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(`h2`,{className:`text-2xl font-semibold leading-[1.3]`,children:e.contact_heading?.trim()||t.detail.contactTitle}),e.contacts.length===0?(0,q.jsx)(`p`,{className:`text-sm text-[#999]`,children:t.detail.contactsFallback}):e.contacts.map(e=>(0,q.jsx)(ge,{channel:e},e.label)),(0,q.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,q.jsx)(`span`,{className:`text-sm text-[#999]`,children:t.detail.paymentMethods}),e.payments.length===0?(0,q.jsx)(`span`,{className:`text-sm text-[#999]`,children:t.detail.paymentsFallback}):(0,q.jsx)(`div`,{className:`flex flex-wrap items-center gap-6`,children:e.payments.map(e=>(0,q.jsxs)(`span`,{className:`flex items-center gap-1 text-sm`,children:[(0,q.jsx)(h,{size:16}),d(t.payments,e)]},e))})]})]})})}function J(e){let t=(e??``).trim();if(!t||/(?:maps\.app\.goo\.gl|goo\.gl\/maps)/i.test(t))return null;try{let e=new URL(t),n=e.searchParams.get(`q`)??e.searchParams.get(`query`)??e.searchParams.get(`ll`);if(n&&n.trim())return n.trim()}catch{}let n=t.match(/@(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/);if(n)return`${n[1]},${n[2]}`;let r=t.match(/\/place\/(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)/);return r?`${r[1]},${r[2]}`:null}function Y(e){let t=e.coordinates;if(!t)return null;let{latitude:n,longitude:r}=t;return!Number.isFinite(n)||!Number.isFinite(r)||n===0&&r===0?null:`${n},${r}`}function ve(e,t=`th`){let n=J(e.map_url)??Y(e);return n?`https://maps.google.com/maps?q=${encodeURIComponent(n)}&z=16&hl=${t}&output=embed`:null}function ye(e){let t=J(e.map_url)??Y(e);return t?`https://maps.google.com/?q=${encodeURIComponent(t)}`:null}function be({cinema:e}){let{locale:t,messages:n}=o(),r=k(e,t),i=ve(e,t),a=ye(e);return(0,q.jsxs)(`aside`,{className:`flex flex-col gap-6 self-start rounded-xl p-6`,style:{border:`1px solid ${y.border}`},children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`h2`,{className:`text-2xl font-semibold leading-[1.3]`,children:n.detail.location}),a?(0,q.jsxs)(`a`,{href:a,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-sm text-[#D47272] transition hover:text-white`,children:[(0,q.jsx)(V,{size:16}),n.detail.openMap]}):null]}),i?(0,q.jsxs)(`div`,{className:`relative h-[183px] overflow-hidden rounded-xl`,style:{border:`1px solid ${y.border}`,background:y.surfaceMuted},children:[(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0`,style:{backgroundImage:`linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px)`,backgroundSize:`24px 24px`}}),(0,q.jsx)(`iframe`,{title:`${n.detail.location} — ${E(e,t)}`,src:i,loading:`lazy`,referrerPolicy:`no-referrer-when-downgrade`,allowFullScreen:!0,className:`relative size-full border-0`})]}):(0,q.jsx)(`div`,{className:`flex h-[183px] items-center justify-center rounded-xl text-sm text-[#777]`,style:{border:`1px dashed ${y.border}`,background:y.surfaceMuted},children:n.detail.noData})]}),(0,q.jsx)(`p`,{className:`text-sm leading-[1.3] text-[#999]`,children:r.length>0?r.map(e=>(0,q.jsx)(`span`,{className:`block`,children:e},e)):n.detail.addressFallback})]})}var xe={seating:W,ticket:G,restaurant:ue,cafe:z,garden:H,bookstore:N,colearning:F,other:U};function Se({cinema:e}){let{locale:t,messages:n}=o(),r=O(e);return(0,q.jsxs)(`section`,{className:`grid gap-10 lg:grid-cols-[minmax(0,749px)_minmax(0,384px)] lg:justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[(0,q.jsx)(`h2`,{className:`text-2xl font-semibold leading-[1.3]`,children:n.detail.facilities}),r.length>0?(0,q.jsx)(`div`,{className:`grid grid-cols-2 gap-x-4 gap-y-10 sm:grid-cols-4`,children:r.map(r=>{let i=xe[r],a=n.facilities[r],o=e.facility_details?.[r],s=o?.label?.trim()||a.title,c=(t===`en`?o?.sub_en:o?.sub_th)?.trim()??``;return(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,q.jsx)(`div`,{className:`flex size-[72px] items-center justify-center rounded-full`,style:{background:y.glowSoft},children:(0,q.jsx)(i,{size:40,stroke:1.5})}),(0,q.jsxs)(`div`,{className:`text-center`,children:[(0,q.jsx)(`div`,{className:`font-medium`,children:s}),c?(0,q.jsx)(`div`,{className:`mt-1 text-sm text-[#B3B3B3]`,children:c}):null]})]},r)})}):(0,q.jsx)(`p`,{className:`text-sm text-[#777]`,children:n.detail.noData})]}),(0,q.jsx)(be,{cinema:e})]})}var X=2;function Z(e,t){let n=e.length;if(n===0)return[];let r=(t%n+n)%n;return[...e.slice(r),...e.slice(0,r)]}function Ce(e){let[t=null,...n]=e;return{main:t,thumbs:n.slice(0,X),remaining:Math.max(n.length-X,0)}}function Q({photo:e,alt:t,placeholder:n,className:r}){return(0,q.jsx)(m,{src:e,alt:t,size:`sm`,className:r,fallback:n})}function we({photos:e,cinemaName:t}){let{messages:n}=o(),[r,i]=(0,K.useState)(0),a=e.length,{main:s,thumbs:c,remaining:l}=Ce(Z(e,r)),[u=null,d=null]=c,f=a>1;function p(e){i(t=>t+e)}return(0,q.jsxs)(`section`,{className:`grid gap-6 lg:grid-cols-[minmax(0,807px)_minmax(0,387px)]`,children:[(0,q.jsxs)(`div`,{className:`relative overflow-hidden rounded-xl`,children:[(0,q.jsx)(Q,{photo:s,alt:`${n.gallery.main} — ${t}`,placeholder:(0,q.jsx)(v,{size:`md`}),className:`fx-swap aspect-[269/202] w-full lg:aspect-auto lg:h-[606px]`},`main-${s??`empty`}`),f?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,onClick:()=>p(-1),"aria-label":n.gallery.previous,className:`absolute left-6 top-1/2 flex size-10 -translate-y-1/2 items-center justify-center rounded-full bg-black/50 text-white transition after:absolute after:-inset-1 after:content-[''] hover:bg-black/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#A92626] active:scale-95`,children:(0,q.jsx)(R,{size:24})}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>p(1),"aria-label":n.gallery.next,className:`absolute right-6 top-1/2 flex size-10 -translate-y-1/2 items-center justify-center rounded-full bg-black/50 text-white transition after:absolute after:-inset-1 after:content-[''] hover:bg-black/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#A92626] active:scale-95`,children:(0,q.jsx)(ce,{size:24})})]}):null]}),(0,q.jsxs)(`div`,{className:`grid grid-cols-2 gap-6 lg:grid-cols-1 lg:grid-rows-2`,children:[(0,q.jsx)(`div`,{className:`overflow-hidden rounded-xl`,children:(0,q.jsx)(Q,{photo:u,alt:`${n.gallery.second} — ${t}`,placeholder:(0,q.jsx)(v,{size:`sm`}),className:`fx-swap aspect-[387/290] w-full`},`thumb-1-${u??`empty`}`)}),(0,q.jsxs)(`div`,{className:`relative overflow-hidden rounded-xl`,children:[(0,q.jsx)(Q,{photo:d,alt:`${n.gallery.third} — ${t}`,placeholder:(0,q.jsx)(v,{size:`sm`}),className:`fx-swap aspect-[387/290] w-full`},`thumb-2-${d??`empty`}`),l>0?(0,q.jsx)(`div`,{className:`absolute bottom-2.5 right-2.5 flex size-[60px] items-center justify-center rounded-lg bg-black/80 text-lg font-medium`,children:n.gallery.more(l)}):null]})]})]})}var Te={private_car:L,metro:de,bus:I};function Ee({transport:e}){let{locale:t,messages:n}=o(),r=e.filter(e=>e.value.trim()!==``);return r.length===0?null:(0,q.jsx)(`div`,{className:`flex flex-col`,children:r.map((e,i)=>{let a=Te[e.icon_name];return(0,q.jsxs)(`div`,{className:`flex flex-col justify-between gap-1 py-2.5 sm:min-h-10 sm:flex-row sm:gap-4`,style:{borderBottom:i===r.length-1?void 0:`1px solid ${y.border}`},children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2 font-medium`,children:[(0,q.jsx)(a,{size:20}),n.transport[e.icon_name]]}),(0,q.jsx)(`div`,{className:`sm:text-right`,children:M(e,t)})]},`${e.icon_name}-${i}`)})})}var $=f.th;function De({loaderData:e,params:t,matches:n}){let r=e?.origin??S(n),i=e?.name??null;if(!i)return x({origin:r,title:`${$.meta.cinemaNotFoundTitle} — ${u}`,description:$.meta.cinemaNotFoundTitle,path:`/`,noIndex:!0});let a=`/cinema/${t?.slug??``}`,o=e?.locationLabel??``,s=e?.description??`${i}${o?` — ${o}`:``} · ที่ตั้ง วิธีเดินทาง สิ่งอำนวยความสะดวก และช่องทางจองตั๋ว`;return[...x({origin:r,title:o?`${i} — ${o} | AlterFlixHub`:`${i} — AlterFlixHub`,description:s,path:a}),...C(r,[{name:`หน้าแรก`,path:`/`},{name:i,path:a}]),...w({origin:r,name:i,description:s,path:a,image:e?.photo??null,coordinates:e?.coordinates??null,locationLabel:o,mapUrl:e?.mapUrl??null})]}var Oe=n(function(){let{messages:e,locale:t}=o(),{cinemas:n}=i(),{status:s,distances:u}=c(),{slug:d}=r(),f=A(n,d);if((0,K.useEffect)(()=>{f&&ie({type:`cinema_view`,slug:f.slug,locale:t})},[f,t]),!f)return(0,q.jsx)(pe,{});let p=D(n,f.slug),m=s===`ready`?l(p,u):p;return(0,q.jsx)(b,{variant:`detail`,children:(0,q.jsxs)(`main`,{className:`relative z-10 mx-auto flex w-full max-w-[1440px] flex-col gap-10 px-5 pb-16 pt-4 md:px-[108px] md:pt-6`,children:[(0,q.jsx)(_,{kind:`fade`,children:(0,q.jsxs)(a,{to:`/`,className:`inline-flex w-fit items-center gap-2 text-xl font-medium transition hover:text-[#D47272]`,children:[(0,q.jsx)(ee,{size:24}),e.detail.back]})}),(0,q.jsx)(_,{kind:`zoom`,children:(0,q.jsx)(we,{photos:f.photos,cinemaName:f.name})}),(0,q.jsxs)(`section`,{className:`grid gap-10 lg:grid-cols-[minmax(0,749px)_minmax(0,384px)] lg:justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-12`,children:[(0,q.jsx)(_,{delay:60,children:(0,q.jsx)(me,{cinema:f})}),(0,q.jsx)(_,{delay:120,children:(0,q.jsx)(Ee,{transport:f.transport})})]}),(0,q.jsx)(_,{delay:160,children:(0,q.jsx)(_e,{cinema:f})})]}),(0,q.jsx)(_,{children:(0,q.jsx)(Se,{cinema:f})}),(0,q.jsxs)(`section`,{className:`flex flex-col gap-8`,children:[(0,q.jsx)(_,{className:`w-full`,children:(0,q.jsx)(`h2`,{className:`text-2xl font-semibold leading-[1.3]`,children:e.detail.otherCinemas})}),(0,q.jsx)(ne,{cinemas:m,source:`other_cinemas`})]}),(0,q.jsx)(_,{kind:`fade`,children:(0,q.jsxs)(`section`,{className:`flex flex-wrap items-center justify-between gap-4 rounded-xl border border-[#332B2B] bg-[#1B1B1B]/70 p-5 backdrop-blur-sm`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,q.jsx)(`h2`,{className:`text-lg font-semibold leading-[1.3]`,children:e.share.pageLabel}),(0,q.jsx)(`p`,{className:`text-sm text-[#B3B3B3]`,children:E(f,t)})]}),(0,q.jsx)(te,{variant:`wide`,slug:f.slug,title:E(f,t)})]})})]})})});export{Oe as default,De as meta};