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.
1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
import{t as e}from"./messages-nFlHChGW.js";var t=[`ทั้งหมด`,`ยอดนิยม`,`อาร์ตเฮาส์`,`สารคดี`,`หนังสั้น`,`หนังคลาสสิก`,`หนังนานาชาติ`,`หนังนอกกระแส`,`หนังในกระแส`,`หนังฝรั่งเศส`,`หนังไทย`],n=[`โรงภาพยนตร์ท้องถิ่น`,`โรงภาพยนตร์อินดี้`,`กลุ่มคนฉายหนัง`],r=`ทั้งหมด`,i=[`from-[#3a2a22] via-[#2a2a3a] to-[#1b1b1b]`,`from-[#2a2a3a] via-[#1f2a3a] to-[#1b1b1b]`,`from-[#3a3a4a] via-[#2a2a2a] to-[#1b1b1b]`,`from-[#4a3320] via-[#2a2a2a] to-[#1b1b1b]`];function a(e,t,n){return n===`en`&&t?t:e}function o(e,t,n){return n===`en`&&t&&t.length>0?t:e}function s(e,t){return a(e.location_label,e.location_label_en,t)}function c(e,t){return t===`th`&&e.name_th?e.name_th:e.name}function l(e,t){return a(e.description,e.description_en,t)}function u(e,t){return o(e.address_lines,e.address_lines_en,t)}function d(t){let n=new Set(t.facilities??[]);return e.filter(e=>n.has(e))}var f=t.filter(e=>e!==r);function p(e,t){return a(e.value,e.value_en,t)}function m(e,t){return e.tags.map(e=>t.tags[e]??e).join(` · `)}function h(e,t){return t===`ทั้งหมด`||e.tags.includes(t)}function g(e,t){return t===null||e.venue_type===t}function _(e,{venue:t,query:n}){let r=n.trim().toLowerCase();return e.filter(e=>{if(t===`unset`){if(e.venue_type)return!1}else if(t!==`all`&&e.venue_type!==t)return!1;return!r||`${e.name} ${e.name_th??``} ${e.slug}`.toLowerCase().includes(r)})}function v(e){let t={all:e.length,unset:0,โรงภาพยนตร์ท้องถิ่น:0,โรงภาพยนตร์อินดี้:0,กลุ่มคนฉายหนัง:0};for(let n of e)n.venue_type?t[n.venue_type]+=1:t.unset+=1;return t}function y(e,t){if(t)return e.find(e=>e.slug===t)}function b(e,t,n=4){return e.filter(e=>e.slug!==t&&!e.hidden).slice(0,n)}function x(e){return e.filter(e=>!e.hidden)}export{x as _,n as a,l as c,c as d,_ as f,b as g,g as h,r as i,d as l,h as m,i as n,u as o,y as p,t as r,m as s,f as t,s as u,p as v,v as y}; |