Compare commits
35
Commits
8e87e47017
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc0e7a963e | ||
|
|
0f5e587c77 | ||
|
|
6cdfbae561 | ||
|
|
b1322b971e | ||
|
|
29ddae9505 | ||
|
|
fc8bc4d1d7 | ||
|
|
a8a022ec54 | ||
|
|
c2506b8ed4 | ||
|
|
3ebfcfea75 | ||
|
|
8dca22622a | ||
|
|
82374ebfdd | ||
|
|
ae34597847 | ||
|
|
f6b5ba112b | ||
|
|
0426b8e953 | ||
|
|
1078c50249 | ||
|
|
e6c4ebff48 | ||
|
|
05487728a7 | ||
|
|
b99e0940f7 | ||
|
|
ba51bdfb02 | ||
|
|
d1e76ab2be | ||
|
|
507cd44d49 | ||
|
|
1c38d8e286 | ||
|
|
1cf1398ba4 | ||
|
|
1932098a1d | ||
|
|
2e794cd365 | ||
|
|
42572020d8 | ||
|
|
2c5918a614 | ||
|
|
251932e548 | ||
|
|
f3798e40da | ||
|
|
e6e935762e | ||
|
|
cfb24b8138 | ||
|
|
2eb625c8bc | ||
|
|
301ad22a39 | ||
|
|
319c271d23 | ||
|
|
1e84023a44 |
No files matched your search
@@ -0,0 +1,29 @@
|
|||||||
|
# ไฟล์ที่ไม่ต้องส่งเข้า build context / image
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.github
|
||||||
|
Dockerfile
|
||||||
|
docker-compose.yml
|
||||||
|
docker-compose.override.yml
|
||||||
|
.dockerignore
|
||||||
|
*.md
|
||||||
|
docs
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
node_modules
|
||||||
|
.output
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
static-export
|
||||||
|
coverage
|
||||||
|
*.log
|
||||||
|
*.bak
|
||||||
|
*.bak-*
|
||||||
|
*.orig
|
||||||
|
*.tmp
|
||||||
|
probe-*
|
||||||
|
docker/traefik-dynamic.example.yml
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
desktop.ini
|
||||||
+79
@@ -0,0 +1,79 @@
|
|||||||
|
# .gitignore — repo นี้ publish static export ที่ราก repo
|
||||||
|
# เป้าหมาย: กันข้อมูลอ่อนไหว (credential/ข้อมูลจริง) หลุดขึ้น Git และกัน artifact ที่ไม่ควรอยู่ใน repo
|
||||||
|
# ใช้กับ git บน Windows (core.autocrlf=true) — ไฟล์นี้ควรเป็น LF เสมอ
|
||||||
|
|
||||||
|
# ── ข้อมูลอ่อนไหว / credential ─────────────────────────────
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
.envrc
|
||||||
|
*.pem
|
||||||
|
*.key
|
||||||
|
*.p12
|
||||||
|
*.pfx
|
||||||
|
*.jks
|
||||||
|
*.keystore
|
||||||
|
*.kdbx
|
||||||
|
secrets/
|
||||||
|
.secrets/
|
||||||
|
*credential*
|
||||||
|
*cookie*.txt
|
||||||
|
_cookiejar.txt
|
||||||
|
.npmrc.local
|
||||||
|
.npmrc
|
||||||
|
id_rsa*
|
||||||
|
id_ed25519*
|
||||||
|
*.token
|
||||||
|
|
||||||
|
# ── ข้อมูลจริงของโปรเจกต์ (content.json มีเบอร์/อีเมล/ที่อยู่จริง) ──
|
||||||
|
data/
|
||||||
|
data.local/
|
||||||
|
data/uploads/
|
||||||
|
uploads/
|
||||||
|
|
||||||
|
# ── ไฟล์สำรอง/ชั่วคราวที่มักมีข้อมูลจริงติดมา ────────────────
|
||||||
|
*.bak
|
||||||
|
*.bak-*
|
||||||
|
*.orig
|
||||||
|
*.rej
|
||||||
|
*.tmp
|
||||||
|
*.temp
|
||||||
|
*.swp
|
||||||
|
*.log
|
||||||
|
*.pid
|
||||||
|
npm-debug.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
# ── build / dependency (กรณีกลับมาแก้ source ในโฟลเดอร์นี้) ──
|
||||||
|
node_modules/
|
||||||
|
.pnpm-store/
|
||||||
|
.output/
|
||||||
|
build/
|
||||||
|
build.old/
|
||||||
|
dist/
|
||||||
|
static-export/
|
||||||
|
.vite/
|
||||||
|
.cache/
|
||||||
|
.turbo/
|
||||||
|
coverage/
|
||||||
|
*.tsbuildinfo
|
||||||
|
|
||||||
|
# ── Python (สคริปต์ช่วยงาน) ─────────────────────────────────
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
.venv/
|
||||||
|
venv/
|
||||||
|
|
||||||
|
# ── เครื่องมือแก้ไข / OS ───────────────────────────────────
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
.claude/settings.local.json
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
desktop.ini
|
||||||
|
|
||||||
|
# ── ไฟล์เฉพาะเครื่องนี้ (hardcode path / ไว้ทดสอบ) ──────────
|
||||||
|
dev.cmd
|
||||||
|
*.local.*
|
||||||
|
probe-*
|
||||||
|
browser_harness_probe*
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
<!DOCTYPE html><html lang="th"><head><script data-agent-native-chunk-recovery-bootstrap>(()=>{
|
||||||
|
const queryParam="__agentNativeChunkRecovery";
|
||||||
|
const queryValue="1";
|
||||||
|
const cacheBusterParam="__agentNativeChunkRecoveryRequest";
|
||||||
|
const pathSuffix="/__agent-native-chunk-recovery";
|
||||||
|
const originalHashParam="__agentNativeRecoveryOriginalHash";
|
||||||
|
const reloadKey="__agentNativeStaleChunkReloadAt";
|
||||||
|
const warmupAttr="data-agent-native-route-warmup";
|
||||||
|
const externalEmbedKey="__AGENT_NATIVE_EXTERNAL_EMBED";
|
||||||
|
const exhaustedKey="__agentNativeStaleChunkRecoveryExhausted";
|
||||||
|
const exhaustedEvent="agent-native:stale-chunk-recovery-exhausted";
|
||||||
|
document.addEventListener("error",event=>{
|
||||||
|
const target=event.target;
|
||||||
|
const tag=target?.tagName?.toUpperCase();
|
||||||
|
const failedModuleScript=tag==="SCRIPT"&&target.type?.toLowerCase()==="module";
|
||||||
|
const failedModulePreload=tag==="LINK"&&/(?:^|\s)modulepreload(?:\s|$)/i.test(target.getAttribute?.("rel")||target.rel||"")&&!target.hasAttribute?.(warmupAttr);
|
||||||
|
if(!failedModuleScript&&!failedModulePreload||/AgentNativeDesktop/i.test(navigator.userAgent))return;
|
||||||
|
if(window[externalEmbedKey]){
|
||||||
|
if(!window[exhaustedKey]){
|
||||||
|
const detail={reason:"external-embed"};
|
||||||
|
window[exhaustedKey]=detail;
|
||||||
|
if(typeof window.dispatchEvent==="function"&&typeof CustomEvent==="function")window.dispatchEvent(new CustomEvent(exhaustedEvent,{detail}));
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(/^(localhost|127\.0\.0\.1|\[::1\])$/.test(location.hostname))return;
|
||||||
|
const url=new URL(location.href);
|
||||||
|
if(url.pathname.endsWith(pathSuffix)||url.pathname.endsWith(pathSuffix+"/")||url.searchParams.get(queryParam)===queryValue)return;
|
||||||
|
const now=Date.now();
|
||||||
|
let last=Number(window[reloadKey])||0;
|
||||||
|
try{
|
||||||
|
last=Math.max(last,Number(sessionStorage.getItem(reloadKey))||0);
|
||||||
|
if(last>0&&now-last<=10000)return;
|
||||||
|
sessionStorage.setItem(reloadKey,String(now));
|
||||||
|
}catch{
|
||||||
|
last=Number(window[reloadKey])||0;
|
||||||
|
if(last>0&&now-last<=10000)return;
|
||||||
|
}
|
||||||
|
window[reloadKey]=now;
|
||||||
|
const originalHash=url.hash;
|
||||||
|
const trailingSlash=url.pathname.endsWith("/")?"/":"";
|
||||||
|
const routePath=trailingSlash?url.pathname.slice(0,-1):url.pathname;
|
||||||
|
url.pathname=(routePath==="/"?"":routePath)+pathSuffix+trailingSlash;
|
||||||
|
url.searchParams.delete(queryParam);
|
||||||
|
url.searchParams.delete(cacheBusterParam);
|
||||||
|
const recoveryHash=new URLSearchParams();
|
||||||
|
recoveryHash.set(cacheBusterParam,now.toString(36));
|
||||||
|
recoveryHash.set(originalHashParam,originalHash);
|
||||||
|
url.hash=recoveryHash.toString();
|
||||||
|
location.assign(url.href);
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
},true);
|
||||||
|
})();</script><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" href="/images/hero.png"/><meta name="theme-color" content="#0D0D0D"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta name="apple-mobile-web-app-title" content="AlterFlixHub"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><link rel="manifest" href="/manifest.json"/><link rel="apple-touch-icon" sizes="180x180" href="/icon-180.png"/><title>AlterFlixHub — โรงหนังอิสระ อาร์ตเฮาส์ และกลุ่มคนฉายหนังในไทย</title><meta name="description" content="ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง"/><meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"/><link rel="canonical" href="https://alterflixhub.hobbypj.com/"/><meta property="og:type" content="website"/><meta property="og:site_name" content="AlterFlixHub"/><meta property="og:locale" content="th_TH"/><meta property="og:title" content="AlterFlixHub — โรงหนังอิสระ อาร์ตเฮาส์ และกลุ่มคนฉายหนังในไทย"/><meta property="og:description" content="ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง"/><meta property="og:url" content="https://alterflixhub.hobbypj.com/"/><meta property="og:image" content="https://alterflixhub.hobbypj.com/og/alterflixhub-1200x630.png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta property="og:image:alt" content="AlterFlixHub"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="AlterFlixHub — โรงหนังอิสระ อาร์ตเฮาส์ และกลุ่มคนฉายหนังในไทย"/><meta name="twitter:description" content="ค้นหาโรงภาพยนตร์อิสระ ทางเลือกในการดูหนัง"/><meta name="twitter:image" content="https://alterflixhub.hobbypj.com/og/alterflixhub-1200x630.png"/><link rel="modulepreload" href="/assets/manifest-3ed6c1bd.js"/><link rel="modulepreload" href="/assets/entry.client-CrdiPMsF.js"/><link rel="modulepreload" href="/assets/react-B8IZ02wI.js"/><link rel="modulepreload" href="/assets/api-path-DiLUeLL2.js"/><link rel="modulepreload" href="/assets/client-BXMKfmWK.js"/><link rel="modulepreload" href="/assets/react-dom-0ZK-Lw7i.js"/><link rel="modulepreload" href="/assets/components-LggAOTeO.js"/><link rel="modulepreload" href="/assets/components-BPFOGuol.js"/><link rel="modulepreload" href="/assets/jsx-runtime-fBfwind-.js"/><link rel="modulepreload" href="/assets/preload-helper-CZgWQFsJ.js"/><link rel="modulepreload" href="/assets/root-CJibcm3H.js"/><link rel="modulepreload" href="/assets/IconCheck-B3jDJthn.js"/><link rel="modulepreload" href="/assets/analytics-hbCOwHmS.js"/><link rel="modulepreload" href="/assets/share-origin-COlEIvGo.js"/><link rel="modulepreload" href="/assets/app-config-4aQIl_Vd.js"/><link rel="modulepreload" href="/assets/motion-DOH2EXPt.js"/><link rel="modulepreload" href="/assets/use-session-DJs-YY25.js"/><link rel="modulepreload" href="/assets/createReactComponent-C-DRqPhY.js"/><link rel="modulepreload" href="/assets/messages-nFlHChGW.js"/><link rel="modulepreload" href="/assets/optional-peer-BHoJSOIB.js"/><link rel="modulepreload" href="/assets/session-replay-endpoint-CkXvYk-L.js"/><link rel="modulepreload" href="/assets/_index-g0X6vG1R.js"/><link rel="modulepreload" href="/assets/CinemaGrid-DJMjtFke.js"/><link rel="modulepreload" href="/assets/SiteShell-DHgUrms6.js"/><link rel="modulepreload" href="/assets/seo-CukKNP_H.js"/><link rel="modulepreload" href="/assets/cinemas-CTA3vCte.js"/><link rel="modulepreload" href="/assets/footer-icons-kTf1LTdH.js"/><script>(function(){var root=document.documentElement;var fallback="original";try{var value=window.localStorage.getItem("theme-family:__no_app_id__");if(value===null){root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'awaiting-app-setting');return}if(value==='agent-native'||value==='original'){root.setAttribute("data-theme-family",value);root.removeAttribute("data-theme-family-status");return}root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'invalid')}catch(e){root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'unreadable')}})();
|
||||||
|
(function(){function m(){var d={};return{get length(){return Object.keys(d).length},key:function(i){return Object.keys(d)[i]||null},getItem:function(k){k=String(k);return Object.prototype.hasOwnProperty.call(d,k)?d[k]:null},setItem:function(k,v){d[String(k)]=String(v)},removeItem:function(k){delete d[k]},clear:function(){d={}}}}function s(n){try{var x=window[n],p='__an_storage_probe__';x.setItem(p,'1');x.removeItem(p)}catch(e){try{Object.defineProperty(window,n,{configurable:true,value:m()})}catch(_){}}}s('localStorage');s('sessionStorage');try{var defaultTheme="system";var enableSystem=true;var stored=window.localStorage.getItem('theme');var valid=stored==='light'||stored==='dark'||stored==='system'||stored==='auto';var mode=valid?stored:defaultTheme;if(mode==='auto')mode='system';if(!enableSystem&&mode==='system')mode=defaultTheme==='system'?'light':defaultTheme;if(!valid){window.localStorage.removeItem('theme')}else if(stored!==mode){window.localStorage.setItem('theme',mode)}var prefersDark=enableSystem&&mode==='system'&&window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var resolved=mode==='system'?(prefersDark?'dark':'light'):mode;var root=document.documentElement;root.classList.remove('light','dark');root.classList.add(resolved);root.setAttribute('data-theme',resolved);root.style.colorScheme=resolved;var appearance=window.localStorage.getItem('appearance');var appearanceValid=appearance==='warm'||appearance==='ocean'||appearance==='forest'||appearance==='rose'||appearance==='slate';if(appearanceValid){root.setAttribute('data-appearance',appearance)}else{root.removeAttribute('data-appearance');if(appearance!==null)window.localStorage.removeItem('appearance')}}catch(e){document.documentElement.setAttribute('data-theme-status','unreadable')}})();</script><script>(function(){try{var m=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)");if(m&&m.matches){return}document.documentElement.classList.add("fx-motion")}catch(e){}})();</script><script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://alterflixhub.hobbypj.com/#website","url":"https://alterflixhub.hobbypj.com/","name":"AlterFlixHub","description":"รวมโรงหนังอิสระและอาร์ตเฮาส์ในประเทศไทยไว้ที่เดียว พร้อมที่ตั้ง วิธีเดินทาง สิ่งอำนวยความสะดวก และปุ่มหาภาพยนตร์โรงใกล้ฉัน","inLanguage":"th-TH","publisher":{"@id":"https://alterflixhub.hobbypj.com/#organization"},"potentialAction":{"@type":"SearchAction","target":"https://alterflixhub.hobbypj.com/?q={search_term_string}","query-input":"required name=search_term_string"}},{"@type":"Organization","@id":"https://alterflixhub.hobbypj.com/#organization","name":"AlterFlixHub","url":"https://alterflixhub.hobbypj.com/","logo":"https://alterflixhub.hobbypj.com/icon-512.png"}]}</script><link rel="stylesheet" href="/assets/global-47009994.css"/><script data-agent-native-sentry-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"deploymentEnvironment":"production"});</script><script data-agent-native-app-origin-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"appHomePath":"/"});</script></head><body><div class="flex h-screen w-full flex-col overflow-hidden bg-background text-foreground"><main class="agent-native-app-main min-w-0 flex-1 overflow-y-auto overscroll-contain"><div class="relative flex min-h-dvh w-full flex-col overflow-x-hidden bg-[#0D0D0D] text-white"><div aria-hidden="true" class="pointer-events-none absolute inset-0 overflow-hidden"><img src="/images/hero.png" alt="" class="fx-hero-image pointer-events-none absolute inset-x-0 top-0 h-[553px] w-full object-cover"/><div class="pointer-events-none absolute inset-x-0 top-0 h-[553px] bg-gradient-to-b from-transparent via-[#0D0D0D]/60 to-[#0D0D0D]"></div><div class="pointer-events-none absolute left-1/2 top-0 size-[382px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[#8F0808] blur-[237px]"></div><div class="pointer-events-none absolute bottom-[-140px] left-1/2 size-[382px] -translate-x-1/2 rounded-full bg-[#4C0404]/70 blur-[237px]"></div></div><header class="fx-drop relative z-10 mx-auto flex h-[68px] w-full max-w-[1440px] items-center justify-between gap-3 px-5 md:px-[108px]"><a aria-label="AlterFlixHub — หน้าแรก" class="shrink-0" href="/" data-discover="true"><span class="font-['Jersey_15'] leading-none text-4xl " style="font-family:'Jersey 15', sans-serif;color:#8F0808">AlterFlixHub</span></a><div class="flex items-center gap-1.5 sm:gap-2"><details class="group relative sm:hidden"><summary class="flex min-h-10 cursor-pointer list-none items-center rounded-lg border border-[#303030] px-3 text-sm text-[#B3B3B3] tLine truncated
|
||||||
|
import * as route0 from "/assets/root-CJibcm3H.js";
|
||||||
|
import * as route1 from "/assets/_index-g0X6vG1R.js";
|
||||||
|
|
||||||
|
window.__reactRouterRouteModules = {"root":route0,"routes/_index":route1};
|
||||||
|
|
||||||
|
import("/assets/entry.client-CrdiPMsF.js");</script><!--$--><script>window.__reactRouterContext.streamController.enqueue("[{\"_1\":2,\"_3\":-5,\"_4\":-5},\"loaderData\",{\"_5\":6,\"_7\":8},\"actionData\",\"errors\",\"root\",{\"_31\":32,\"_33\":-5,\"_34\":14,\"_35\":14},\"routes/_index\",{\"_9\":10,\"_11\":12,\"_13\":14},\"popularity\",{\"_15\":16,\"_17\":18,\"_19\":20,\"_21\":22,\"_23\":24,\"_25\":26,\"_27\":28,\"_29\":30},\"orderKey\",\"2026-11-21\",\"origin\",\"https://alterflixhub.hobbypj.com\",\"ready\",false,\"history_days\",21,\"days_remaining\",159,\"window_days\",90,\"total_events\",526,\"ranking\",[],\"slugs\",[],\"computed_at\",\"2026-11-21T08:41:33.884Z\",\"content\",{\"_36\":37,\"_38\":39,\"_40\":41,\"_42\":43,\"_44\":45},\"localeFromUrl\",\"siteUrl\",\"shareOrigin\",\"cinemas\",[557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585],\"site\",{\"_147\":148,\"_149\":150,\"_151\":152},\"about\",{\"_46\":108,\"_48\":109},\"forCinemas\",{\"_46\":82,\"_48\":83},\"forFilmLovers\",{\"_46\":47,\"_48\":49},\"th\",{\"_50\":69,\"_52\":70,\"_54\":71,\"_56\":72,\"_58\":73},\"en\",{\"_50\":51,\"_52\":53,\"_54\":55,\"_56\":57,\"_58\":59},\"title\",\"For film lovers\",\"lead\",\"A curated path for anyone who wants more than the mainstream — arthouse screens, screening collectives and special programmes, all in one place.\",\"blocks\",[60,61,62],\"contactHeading\",\"Know a cinema or a screening we should add?\",\"contactNote\",\"Send the name and a link through the social channels in the footer — we review new listings every week.\",{\"_63\":64,\"_65\":68},{\"_63\":64,\"_65\":67},{\"_63\":64,\"_65\":66},\"type\",\"paragraph\",\"text\",\"Know a cinema, a screening collective or an event that belongs here? Send it to our team and we will review it — new listings are added every week.\",\"Every cinema listed comes with the details that matter before you leave home — genres, facilities, how to get there and real photos — plus a “Near me” button that sorts everything by real road distance.\",\"If you are looking for films that never reach the multiplex, AlterFlixHub helps you find the cinemas showing independent titles, documentaries, classics and special programmes in a few clicks.\",\"สำหรับคนรักหนัง\",\"รวมทางเลือกสำหรับคนที่อยากดูหนังนอกจากเครือโรงหนังเจ้าตลาด\",[74,75,76,77],\"มีโรงหรือรอบฉายที่อยากแนะนำ\",\"ส่งชื่อโรงหรือกิจกรรมพร้อมลิงก์มาให้เราผ่านทางอีเมลล์\",{\"_63\":64,\"_65\":81},{\"_63\":64,\"_65\":80},{\"_63\":64,\"_65\":79},{\"_63\":64,\"_65\":78},\"ถ้าถามว่าแก้ปัญหายังไง เราว่าคนรักหนังคงต้องรุมเขียนร้องเรียนไปให้สภาคุ้มครองของผู้บริโภคให้ดำเนินการทางกฎหมายต่อคณะกรรมการแข่งขันทางการค้าที่ปล่อยให้เกิดการผูกขาดในอุตสาหกรรมโรงหนังไทย\",\"ปัญหาของอุตสหกรรมโรงหนังไทย เท่าที่รวบรวมมามีปัญหา 2 มุม คือปัญหาภายนอก และปัญหาภายใน ปัญหาภายนอกที่ไม่มีใครทำอะไรได้ ปัจจุบันมีตัวหารกิจกรรมของคนเราเยอะ ไม่อยากให้เจาะจงว่า เป็น netflix หรือ youtube อยากกล่าวรวมๆมันทำให้เรามีเวลาไปดูหนังน้อยลง หรือช่วงโควิคนี่ก็ใช่ เคอฟิวหลังรัฐประหารทำให้โรงหนังปิดไวขึ้นก็ใช่ แต่ทั้งหมดยังไม่สาหัสเท่าปัญหาภายใน คือรัฐบาลปล่อยปะละเลยให้กลุ่มทุนทำธุรกิจตั้งแต่ค่ายหนัง ผู้นำเข้าและจัดจำหน่าย และเครือโรงหนัง จนมีอำนาจเหนือตลาด คือถ้าเป็นผู้นำตลาดยังเรื่องปกติ หรือถ้าจะทำธุรกิจครบ 3 ขั้นตอนก็ได้แต่ควรมีโควต้าจLine truncated
|
||||||
|
document.addEventListener("click",(event)=>{
|
||||||
|
if(event.defaultPrevented||event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)return;
|
||||||
|
const anchor=event.target instanceof Element?event.target.closest("a[href]"):null;
|
||||||
|
if(!anchor||!anchor.getAttribute("href").startsWith("/")||anchor.target&&anchor.target!=="_self"||anchor.hasAttribute("download"))return;
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
location.assign(anchor.getAttribute("href"));
|
||||||
|
},true);
|
||||||
|
})();</script><script src="/assets/card-click.v2.js" defer></script></body></html>
|
||||||
+34
@@ -0,0 +1,34 @@
|
|||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
# AlterFlixHub — static export (ไฟล์ prerender อยู่ที่ราก repo, ไม่มี build step)
|
||||||
|
# runtime = nginx alpine · ฟังพอร์ตจาก env PORT (บน Dokploy ตั้ง PORT=30004)
|
||||||
|
#
|
||||||
|
# env ที่ใช้
|
||||||
|
# PORT พอร์ตที่ nginx ฟังในคอนเทนเนอร์ (default 30004)
|
||||||
|
# PUBLIC_ORIGIN โดเมนจริงที่เขียนลง canonical/OG/JSON-LD/sitemap/robots (default = โดเมน production)
|
||||||
|
# BAKED_ORIGIN origin ที่อบมากับไฟล์ export — ใช้เป็นต้นทางของการแทนที่ตอน start
|
||||||
|
# TZ timezone ของ log
|
||||||
|
|
||||||
|
FROM nginx:1.27-alpine
|
||||||
|
|
||||||
|
ENV PORT=30004 \
|
||||||
|
PUBLIC_ORIGIN=https://alterflixhub.hobbypj.com \
|
||||||
|
BAKED_ORIGIN=https://alterflixhub.hobbypj.com \
|
||||||
|
TZ=Asia/Bangkok
|
||||||
|
|
||||||
|
# nginx config เป็น template → official entrypoint แทนค่า ${PORT} ให้เองตอน start
|
||||||
|
COPY docker/default.conf.template /etc/nginx/templates/default.conf.template
|
||||||
|
# ชุด header ความปลอดภัยที่ทุก location include (nginx ทิ้ง add_header ของ parent เมื่อ location มี add_header เอง)
|
||||||
|
COPY docker/security-headers.conf /etc/nginx/snippets/security-headers.conf
|
||||||
|
# สคริปต์แทน origin ในไฟล์ HTML/XML/TXT ถ้า PUBLIC_ORIGIN ไม่ตรงกับที่อบไว้
|
||||||
|
COPY docker/30-origin.sh /docker-entrypoint.d/30-origin.sh
|
||||||
|
RUN chmod +x /docker-entrypoint.d/30-origin.sh
|
||||||
|
|
||||||
|
# ไฟล์เว็บทั้งหมด (static export) — ไฟล์ของ docker/ ไม่ถูกคัดออกด้วย .dockerignore
|
||||||
|
COPY . /usr/share/nginx/html
|
||||||
|
|
||||||
|
EXPOSE 30004
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=4s --start-period=5s --retries=3 \
|
||||||
|
CMD wget -qO- "http://127.0.0.1:${PORT}/healthz" >/dev/null 2>&1 || exit 1
|
||||||
|
|
||||||
|
# ใช้ entrypoint/cmd เดิมของอิมเมจ (รัน /docker-entrypoint.d/*.sh แล้วค่อย start nginx)
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
# AlterFlixHub — Web Mockup & Route Diagram
|
|
||||||
|
|
||||||
ต้นแบบเว็บไซต์ศูนย์รวมข้อมูลโรงภาพยนตร์ **AlterFlixHub** (static HTML + vanilla JS — ไม่มี backend / framework / build step)
|
|
||||||
|
|
||||||
ประกอบด้วย:
|
|
||||||
- หน้าเว็บต้นแบบ (mockup) 3 หน้า
|
|
||||||
- **Action Route Map** — diagram แสดงผังหน้าเว็บพร้อมลูกศร action route
|
|
||||||
|
|
||||||
## โครงสร้าง
|
|
||||||
|
|
||||||
```
|
|
||||||
web-alterflixhub/
|
|
||||||
├── resource/
|
|
||||||
│ ├── prome.md ← สเปกงานออกแบบ (อ่านก่อนแก้ UI)
|
|
||||||
│ ├── images/
|
|
||||||
│ │ └── template-cinema-detail.png ← template หน้า cinema-detail (1200×778, ดำ-แดง)
|
|
||||||
│ └── ui/ ← ★ ผลลัพธ์ (หน้า mockup + diagram)
|
|
||||||
│ ├── home.html ← หน้าแรก: การ์ดโรงหนัง
|
|
||||||
│ ├── cinema-detail.html ← รายละเอียดโรงภาพยนตร์
|
|
||||||
│ └── index.html ← Action Route Map (diagram)
|
|
||||||
└── README.md
|
|
||||||
```
|
|
||||||
|
|
||||||
## วิธีรัน (Step-by-step)
|
|
||||||
|
|
||||||
### 1. เปิด Terminal แล้วเข้าไปที่ root ของโปรเจกต์
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd /Users/ar667100/Desktop/myworkspace/bank-project/workspace/alterflixhub/web-alterflixhub
|
|
||||||
```
|
|
||||||
|
|
||||||
> ถ้าเครื่องคนอื่น path ต่างกัน ให้ `cd` ไปที่โฟลเดอร์ `web-alterflixhub` (ที่มีไฟล์ `README.md` นี้)
|
|
||||||
|
|
||||||
### 2. ตรวจสอบว่ามี Python 3
|
|
||||||
|
|
||||||
```bash
|
|
||||||
python3 --version
|
|
||||||
```
|
|
||||||
|
|
||||||
> ต้องได้เวอร์ชัน 3.x ขึ้นไป (macOS/Windows/Linux มี Python 3 ติดตั้งมาให้ หรือติดตั้งจาก python.org)
|
|
||||||
|
|
||||||
### 3. รัน static server
|
|
||||||
|
|
||||||
```bash
|
|
||||||
python3 -m http.server 8000
|
|
||||||
```
|
|
||||||
|
|
||||||
> **สำคัญ:** ต้องรันจาก root ของโปรเจกต์ (ไม่ใช่จาก `resource/ui/`)
|
|
||||||
> เพราะหน้าเว็บอ้างไฟล์กันด้วย relative path — ต้องมี root เดียวกันครอบทั้ง tree
|
|
||||||
|
|
||||||
### 4. เปิดเบราว์เซอร์
|
|
||||||
|
|
||||||
| หน้า | URL |
|
|
||||||
|---|---|
|
|
||||||
| **Action Route Map (diagram)** | http://localhost:8000/resource/ui/index.html |
|
|
||||||
| หน้าแรก (Home) | http://localhost:8000/resource/ui/home.html |
|
|
||||||
| รายละเอียดโรงภาพยนตร์ | http://localhost:8000/resource/ui/cinema-detail.html |
|
|
||||||
|
|
||||||
### 5. หยุด server
|
|
||||||
|
|
||||||
กด `Ctrl+C` ในหน้าต่าง Terminal ที่รัน server อยู่
|
|
||||||
|
|
||||||
## เปลี่ยน port
|
|
||||||
|
|
||||||
ถ้า port `8000` ถูกใช้งานอยู่ ให้เปลี่ยนเป็นเลขอื่น (เช่น 8090):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
python3 -m http.server 8090
|
|
||||||
```
|
|
||||||
|
|
||||||
แล้วเปิด `http://localhost:8090/resource/ui/index.html`
|
|
||||||
|
|
||||||
## หมายเหตุ
|
|
||||||
|
|
||||||
- **ห้ามเปิด `file://`** — ให้รันผ่าน static server เสมอ (ตามขั้นตอนด้านบน)
|
|
||||||
- Diagram (`index.html`) render แต่ละหน้าแบบ **desktop 1200px + ความสูงเต็ม** แล้วย่อเป็น thumbnail 300px (`scale 0.25`) เพื่อความกระทัดรัด
|
|
||||||
- สี theme: **ดำ-แดง** (`#0a0a0a` / `#e00000`) ตาม spec ใน `resource/prome.md` และ template `template-cinema-detail.png`
|
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
<!DOCTYPE html><html lang="th"><head><script data-agent-native-chunk-recovery-bootstrap>(()=>{
|
||||||
|
const queryParam="__agentNativeChunkRecovery";
|
||||||
|
const queryValue="1";
|
||||||
|
const cacheBusterParam="__agentNativeChunkRecoveryRequest";
|
||||||
|
const pathSuffix="/__agent-native-chunk-recovery";
|
||||||
|
const originalHashParam="__agentNativeRecoveryOriginalHash";
|
||||||
|
const reloadKey="__agentNativeStaleChunkReloadAt";
|
||||||
|
const warmupAttr="data-agent-native-route-warmup";
|
||||||
|
const externalEmbedKey="__AGENT_NATIVE_EXTERNAL_EMBED";
|
||||||
|
const exhaustedKey="__agentNativeStaleChunkRecoveryExhausted";
|
||||||
|
const exhaustedEvent="agent-native:stale-chunk-recovery-exhausted";
|
||||||
|
document.addEventListener("error",event=>{
|
||||||
|
const target=event.target;
|
||||||
|
const tag=target?.tagName?.toUpperCase();
|
||||||
|
const failedModuleScript=tag==="SCRIPT"&&target.type?.toLowerCase()==="module";
|
||||||
|
const failedModulePreload=tag==="LINK"&&/(?:^|\s)modulepreload(?:\s|$)/i.test(target.getAttribute?.("rel")||target.rel||"")&&!target.hasAttribute?.(warmupAttr);
|
||||||
|
if(!failedModuleScript&&!failedModulePreload||/AgentNativeDesktop/i.test(navigator.userAgent))return;
|
||||||
|
if(window[externalEmbedKey]){
|
||||||
|
if(!window[exhaustedKey]){
|
||||||
|
const detail={reason:"external-embed"};
|
||||||
|
window[exhaustedKey]=detail;
|
||||||
|
if(typeof window.dispatchEvent==="function"&&typeof CustomEvent==="function")window.dispatchEvent(new CustomEvent(exhaustedEvent,{detail}));
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(/^(localhost|127\.0\.0\.1|\[::1\])$/.test(location.hostname))return;
|
||||||
|
const url=new URL(location.href);
|
||||||
|
if(url.pathname.endsWith(pathSuffix)||url.pathname.endsWith(pathSuffix+"/")||url.searchParams.get(queryParam)===queryValue)return;
|
||||||
|
const now=Date.now();
|
||||||
|
let last=Number(window[reloadKey])||0;
|
||||||
|
try{
|
||||||
|
last=Math.max(last,Number(sessionStorage.getItem(reloadKey))||0);
|
||||||
|
if(last>0&&now-last<=10000)return;
|
||||||
|
sessionStorage.setItem(reloadKey,String(now));
|
||||||
|
}catch{
|
||||||
|
last=Number(window[reloadKey])||0;
|
||||||
|
if(last>0&&now-last<=10000)return;
|
||||||
|
}
|
||||||
|
window[reloadKey]=now;
|
||||||
|
const originalHash=url.hash;
|
||||||
|
const trailingSlash=url.pathname.endsWith("/")?"/":"";
|
||||||
|
const routePath=trailingSlash?url.pathname.slice(0,-1):url.pathname;
|
||||||
|
url.pathname=(routePath==="/"?"":routePath)+pathSuffix+trailingSlash;
|
||||||
|
url.searchParams.delete(queryParam);
|
||||||
|
url.searchParams.delete(cacheBusterParam);
|
||||||
|
const recoveryHash=new URLSearchParams();
|
||||||
|
recoveryHash.set(cacheBusterParam,now.toString(36));
|
||||||
|
recoveryHash.set(originalHashParam,originalHash);
|
||||||
|
url.hash=recoveryHash.toString();
|
||||||
|
location.assign(url.href);
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
},true);
|
||||||
|
})();</script><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="theme-color" content="#0D0D0D"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta name="apple-mobile-web-app-title" content="AlterFlixHub"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><link rel="manifest" href="/manifest.json"/><link rel="apple-touch-icon" sizes="180x180" href="/icon-180.png"/><title>เกี่ยวกับเรา — AlterFlixHub</title><meta name="description" content="AlterFlixHub รวมโรงหนังอิสระและอาร์ตเฮาส์ในประเทศไทยไว้ที่เดียว เพื่อให้คนรักหนังหาโรงที่ตรงใจและไปถึงได้ง่ายขึ้น"/><meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"/><link rel="canonical" href="https://alterflixhub.hobbypj.com/about"/><meta property="og:type" content="website"/><meta property="og:site_name" content="AlterFlixHub"/><meta property="og:locale" content="th_TH"/><meta property="og:title" content="เกี่ยวกับเรา — AlterFlixHub"/><meta property="og:description" content="AlterFlixHub รวมโรงหนังอิสระและอาร์ตเฮาส์ในประเทศไทยไว้ที่เดียว เพื่อให้คนรักหนังหาโรงที่ตรงใจและไปถึงได้ง่ายขึ้น"/><meta property="og:url" content="https://alterflixhub.hobbypj.com/about"/><meta property="og:image" content="https://alterflixhub.hobbypj.com/og/alterflixhub-1200x630.png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta property="og:image:alt" content="AlterFlixHub"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="เกี่ยวกับเรา — AlterFlixHub"/><meta name="twitter:description" content="AlterFlixHub รวมโรงหนังอิสระและอาร์ตเฮาส์ในประเทศไทยไว้ที่เดียว เพื่อให้คนรักหนังหาโรงที่ตรงใจและไปถึงได้ง่ายขึ้น"/><meta name="twitter:image" content="https://alterflixhub.hobbypj.com/og/alterflixhub-1200x630.png"/><link rel="modulepreload" href="/assets/manifest-3ed6c1bd.js"/><link rel="modulepreload" href="/assets/entry.client-CrdiPMsF.js"/><link rel="modulepreload" href="/assets/react-B8IZ02wI.js"/><link rel="modulepreload" href="/assets/api-path-DiLUeLL2.js"/><link rel="modulepreload" href="/assets/client-BXMKfmWK.js"/><link rel="modulepreload" href="/assets/react-dom-0ZK-Lw7i.js"/><link rel="modulepreload" href="/assets/components-LggAOTeO.js"/><link rel="modulepreload" href="/assets/components-BPFOGuol.js"/><link rel="modulepreload" href="/assets/jsx-runtime-fBfwind-.js"/><link rel="modulepreload" href="/assets/preload-helper-CZgWQFsJ.js"/><link rel="modulepreload" href="/assets/root-CJibcm3H.js"/><link rel="modulepreload" href="/assets/IconCheck-B3jDJthn.js"/><link rel="modulepreload" href="/assets/analytics-hbCOwHmS.js"/><link rel="modulepreload" href="/assets/share-origin-COlEIvGo.js"/><link rel="modulepreload" href="/assets/app-config-4aQIl_Vd.js"/><link rel="modulepreload" href="/assets/motion-DOH2EXPt.js"/><link rel="modulepreload" href="/assets/use-session-DJs-YY25.js"/><link rel="modulepreload" href="/assets/createReactComponent-C-DRqPhY.js"/><link rel="modulepreload" href="/assets/messages-nFlHChGW.js"/><link rel="modulepreload" href="/assets/optional-peer-BHoJSOIB.js"/><link rel="modulepreload" href="/assets/session-replay-endpoint-CkXvYk-L.js"/><link rel="modulepreload" href="/assets/about-BlP2WaYp.js"/><link rel="modulepreload" href="/assets/IconArrowBackUp-9ZWnW9Am.js"/><link rel="modulepreload" href="/assets/footer-icons-kTf1LTdH.js"/><link rel="modulepreload" href="/assets/SiteShell-DHgUrms6.js"/><link rel="modulepreload" href="/assets/seo-CukKNP_H.js"/><script>(function(){var root=document.documentElement;var fallback="original";try{var value=window.localStorage.getItem("theme-family:__no_app_id__");if(value===null){root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'awaiting-app-setting');return}if(value==='agent-native'||value==='original'){root.setAttribute("data-theme-family",value);root.removeAttribute("data-theme-family-status");return}root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'invalid')}catch(e){root.setAttribute("data-theme-family",fallback);root.setAttribute("data-theme-family-status",'unreadable')}})();
|
||||||
|
(function(){function m(){var d={};return{get length(){return Object.keys(d).length},key:function(i){return Object.keys(d)[i]||null},getItem:function(k){k=String(k);return Object.prototype.hasOwnProperty.call(d,k)?d[k]:null},setItem:function(k,v){d[String(k)]=String(v)},removeItem:function(k){delete d[k]},clear:function(){d={}}}}function s(n){try{var x=window[n],p='__an_storage_probe__';x.setItem(p,'1');x.removeItem(p)}catch(e){try{Object.defineProperty(window,n,{configurable:true,value:m()})}catch(_){}}}s('localStorage');s('sessionStorage');try{var defaultTheme="system";var enableSystem=true;var stored=window.localStorage.getItem('theme');var valid=stored==='light'||stored==='dark'||stored==='system'||stored==='auto';var mode=valid?stored:defaultTheme;if(mode==='auto')mode='system';if(!enableSystem&&mode==='system')mode=defaultTheme==='system'?'light':defaultTheme;if(!valid){window.localStorage.removeItem('theme')}else if(stored!==mode){window.localStorage.setItem('theme',mode)}var prefersDark=enableSystem&&mode==='system'&&window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var resolved=mode==='system'?(prefersDark?'dark':'light'):mode;var root=document.documentElement;root.classList.remove('light','dark');root.classList.add(resolved);root.setAttribute('data-theme',resolved);root.style.colorScheme=resolved;var appearance=window.localStorage.getItem('appearance');var appearanceValid=appearance==='warm'||appearance==='ocean'||appearance==='forest'||appearance==='rose'||appearance==='slate';if(appearanceValid){root.setAttribute('data-appearance',appearance)}else{root.removeAttribute('data-appearance');if(appearance!==null)window.localStorage.removeItem('appearance')}}catch(e){document.documentElement.setAttribute('data-theme-status','unreadable')}})();</script><script>(function(){try{var m=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)");if(m&&m.matches){return}document.documentElement.classList.add("fx-motion")}catch(e){}})();</script><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"หน้าแรก","item":"https://alterflixhub.hobbypj.com/"},{"@type":"ListItem","position":2,"name":"เกี่ยวกับเรา","item":"https://alterflixhub.hobbypj.com/about"}]}</script><link rel="stylesheet" href="/assets/global-47009994.css"/><script data-agent-native-sentry-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"deploymentEnvironment":"production"});</script><script data-agent-native-app-origin-config>window.__AGENT_NATIVE_CONFIG__=Object.assign({},window.__AGENT_NATIVE_CONFIG__,{"appHomePath":"/"});</script></head><body><div class="flex h-screen w-full flex-col overflow-hidden bg-background text-foreground"><main class="agent-native-app-main min-w-0 flex-1 overflow-y-auto overscroll-contain"><div class="relative flex min-h-dvh w-full flex-col overflow-x-hidden bg-[#0D0D0D] text-white"><div aria-hidden="true" class="pointer-events-none absolute inset-0 overflow-hidden"><div class="pointer-events-none absolute left-1/2 top-[649px] size-[382px] -translate-x-1/2 rounded-full bg-[#4C0404] opacity-[0.66] blur-[237px]"></div></div><header class="fx-drop relative z-10 mx-auto flex h-[68px] w-full max-w-[1440px] items-center justify-between gap-3 px-5 md:px-[108px]"><a aria-label="AlterFlixHub — หน้าแรก" class="shrink-0" href="/" data-discover="true"><span class="font-['Jersey_15'] leading-none text-4xl " style="font-family:'Jersey 15', sans-serif;color:#8F0808">AlterFlixHub</span></a><div class="flex items-center gap-1.5 sm:gap-2"><details class="group relative sm:hidden"><summary class="flex min-h-10 cursor-pointer list-none items-center rounded-lg border border-[#303030] px-3 text-sm text-[#B3B3B3] transition hover:border-[#A92626]/60 hover:text-white [&::-webkit-details-marker]:hidden">เมนู</summary><nav aria-label="เมนู" class="absolute right-0 top-[calc(100%+8px)] z-20 flex w-[220px] flex-col gap-1 rounded-xl border border-[#303030] bg-[#141414] p-2 shadow-lg"><a class="flex min-h-11 items-center rounded-lg px-3 text-sm transition text-[#B3B3B3] hover:bg-[#1B1B1B] hover:text-white" href="/for-film-lovers" data-discover="true">สำหรับคนรักหนัง</a><a class="flex min-h-11 items-center rounded-lg px-3 text-sm transition text-[#B3B3B3] hover:bg-[#1B1B1B] hover:text-white" href="/for-cinemas" data-discover="true">สำหรับคนทำโรงหนัง</a><a aria-current="page" class="flex min-h-11 items-center rounded-lg px-3 text-sm transition bg-[#242424] text-white" href="/about" data-discover="true">เกี่ยวกับเรา</a></nav></details><nav aria-label="เมนู" class="hidden items-center gap-2 sm:flex"><a class="relative flex items-center rounded-lg border px-3 py-1.5 text-sm transition after:Line truncated
|
||||||
|
สองอยากให้คนไทยได้รู้จักหนังแปลกๆใหม่ๆ</p></article></section><div data-reveal="fade" style="--fx-delay:0ms"><section class="flex flex-col gap-6 rounded-xl p-6 backdrop-blur-sm lg:flex-row lg:items-center lg:justify-between" style="border:1px solid rgba(169,38,38,0.45);background:linear-gradient(180deg, rgba(143,8,8,0.18) 0%, rgba(27,27,27,0.85) 65%, rgba(13,13,13,0.7) 100%)"><div class="flex flex-col gap-3"><h2 class="text-2xl font-semibold leading-[1.3]">ติดต่อและแจ้งข้อมูล</h2><p class="font-content max-w-[720px] text-[16px] leading-[1.9] text-[#C4C4C4] md:text-[17px]">พบข้อมูลโรงหนังผิด การเพิ่มโรงใหม่ โรงหนังปิดกิจการ หรืออยากให้เราช่วยประชาสัมพันธ์กิจกรรม อีเมลล์ตามที่อยู่ข้างล่างนี้</p></div><div class="flex flex-wrap items-center gap-2"><a href="[email protected]" aria-label="Email" title="Email" target="_blank" rel="noreferrer" class="flex size-11 items-center justify-center rounded-full bg-white/90 text-[#0D0D0D] transition hover:bg-white"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-mail "><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"></path><path d="M3 7l9 6l9 -6"></path></svg></a></div></section></div></main></div><footer class="relative z-10 mx-auto w-full max-w-[1440px] px-5 pb-6 md:px-[108px]"><div class="flex flex-col items-center gap-3 border-t border-white/10 pt-4 sm:flex-row sm:justify-between"><div class="flex items-center gap-4"><span class="font-['Jersey_15'] leading-none text-2xl " style="font-family:'Jersey 15', sans-serif;color:#8F0808">AlterFlixHub</span><nav aria-label="เมนูล่าง" class="flex items-center gap-3 text-xs"><a class="text-[#B3B3B3] transition hover:text-white" href="/for-film-lovers" data-discover="true">สำหรับคนรักหนัง</a><a class="text-[#B3B3B3] transition hover:text-white" href="/for-cinemas" data-discover="true">สำหรับคนทำโรงหนัง</a><a class="text-[#B3B3B3] transition hover:text-white" href="/about" data-discover="true">เกี่ยวกับเรา</a></nav></div><div class="flex flex-wrap items-center justify-center gap-1.5"><a href="[email protected]" aria-label="Email" title="Email" class="flex size-8 items-center justify-center rounded-full bg-white/90 text-[#0D0D0D] transition hover:bg-white"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-mail "><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10"></path><path d="M3 7l9 6l9 -6"></path></svg></a></div><p class="text-xs text-[#999]">Copyright © AlterFlixHub</p></div></footer></div></main></div><script>((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}})("react-router-scroll-positions", null)</script><script>window.__reactRouterContext = {"basename":"/","future":{"unstable_optimizeDeps":false},"routeDiscovery":{"mode":"initial"},"ssr":true,"isSpaMode":false};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());</script><script type="module" async="">import "/assets/manifest-3ed6c1bd.js";
|
||||||
|
import * as route0 from "/assets/root-CJibcm3H.js";
|
||||||
|
import * as route1 from "/assets/about-BlP2WaYp.js";
|
||||||
|
|
||||||
|
window.__reactRouterRouteModules = {"root":route0,"routes/about":route1};
|
||||||
|
|
||||||
|
import("/assets/entry.client-CrdiPMsF.js");</script><!--$--><script>window.__reactRouterContext.streamController.enqueue("[{\"_1\":2,\"_3\":-5,\"_4\":-5},\"loaderData\",{\"_5\":6,\"_7\":8},\"actionData\",\"errors\",\"root\",{\"_11\":12,\"_13\":-5,\"_14\":10,\"_15\":10},\"routes/about\",{\"_9\":10},\"origin\",\"https://alterflixhub.hobbypj.com\",\"content\",{\"_16\":17,\"_18\":19,\"_20\":21,\"_22\":23,\"_24\":25},\"localeFromUrl\",\"siteUrl\",\"shareOrigin\",\"cinemas\",[537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565],\"site\",{\"_127\":128,\"_129\":130,\"_131\":132},\"about\",{\"_26\":88,\"_28\":89},\"forCinemas\",{\"_26\":62,\"_28\":63},\"forFilmLovers\",{\"_26\":27,\"_28\":29},\"th\",{\"_30\":49,\"_32\":50,\"_34\":51,\"_36\":52,\"_38\":53},\"en\",{\"_30\":31,\"_32\":33,\"_34\":35,\"_36\":37,\"_38\":39},\"title\",\"For film lovers\",\"lead\",\"A curated path for anyone who wants more than the mainstream — arthouse screens, screening collectives and special programmes, all in one place.\",\"blocks\",[40,41,42],\"contactHeading\",\"Know a cinema or a screening we should add?\",\"contactNote\",\"Send the name and a link through the social channels in the footer — we review new listings every week.\",{\"_43\":44,\"_45\":48},{\"_43\":44,\"_45\":47},{\"_43\":44,\"_45\":46},\"type\",\"paragraph\",\"text\",\"Know a cinema, a screening collective or an event that belongs here? Send it to our team and we will review it — new listings are added every week.\",\"Every cinema listed comes with the details that matter before you leave home — genres, facilities, how to get there and real photos — plus a “Near me” button that sorts everything by real road distance.\",\"If you are looking for films that never reach the multiplex, AlterFlixHub helps you find the cinemas showing independent titles, documentaries, classics and special programmes in a few clicks.\",\"สำหรับคนรักหนัง\",\"รวมทางเลือกสำหรับคนที่อยากดูหนังนอกจากเครือโรงหนังเจ้าตลาด\",[54,55,56,57],\"มีโรงหรือรอบฉายที่อยากแนะนำ\",\"ส่งชื่อโรงหรือกิจกรรมพร้อมลิงก์มาให้เราผ่านทางอีเมลล์\",{\"_43\":44,\"_45\":61},{\"_43\":44,\"_45\":60},{\"_43\":44,\"_45\":59},{\"_43\":44,\"_45\":58},\"ถ้าถามว่าแก้ปัญหายังไง เราว่าคนรักหนังคงต้องรุมเขียนร้องเรียนไปให้สภาคุ้มครองของผู้บริโภคให้ดำเนินการทางกฎหมายต่อคณะกรรมการแข่งขันทางการค้าที่ปล่อยให้เกิดการผูกขาดในอุตสาหกรรมโรงหนังไทย\",\"ปัญหาของอุตสหกรรมโรงหนังไทย เท่าที่รวบรวมมามีปัญหา 2 มุม คือปัญหาภายนอก และปัญหาภายใน ปัญหาภายนอกที่ไม่มีใครทำอะไรได้ ปัจจุบันมีตัวหารกิจกรรมของคนเราเยอะ ไม่อยากให้เจาะจงว่า เป็น netflix หรือ youtube อยากกล่าวรวมๆมันทำให้เรามีเวลาไปดูหนังน้อยลง หรือช่วงโควิคนี่ก็ใช่ เคอฟิวหลังรัฐประหารทำให้โรงหนังปิดไวขึ้นก็ใช่ แต่ทั้งหมดยังไม่สาหัสเท่าปัญหาภายใน คือรัฐบาลปล่อยปะละเลยให้กลุ่มทุนทำธุรกิจตั้งแต่ค่ายหนัง ผู้นำเข้าและจัดจำหน่าย และเครือโรงหนัง จนมีอำนาจเหนือตลาด คือถ้าเป็นผู้นำตลาดยังเรื่องปกติ หรือถ้าจะทำธุรกิจครบ 3 ขั้นตอนก็ได้แต่ควรมีโควต้าจำกัดจำนวนโรงต่อจังหวัด และไม่ให้นำเข้าและจัดจำหน่ายหนังเรื่องนั้นๆได้แต่เพียงผู้เดียว ให้กลุ่มทุนใหม่ๆ เข้ามาเล่Line truncated
|
||||||
|
document.addEventListener("click",(event)=>{
|
||||||
|
if(event.defaultPrevented||event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)return;
|
||||||
|
const anchor=event.target instanceof Element?event.target.closest("a[href]"):null;
|
||||||
|
if(!anchor||!anchor.getAttribute("href").startsWith("/")||anchor.target&&anchor.target!=="_self"||anchor.hasAttribute("download"))return;
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
location.assign(anchor.getAttribute("href"));
|
||||||
|
},true);
|
||||||
|
})();</script><script src="/assets/card-click.v2.js" defer></script></body></html>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# ai.txt — AlterFlixHub
|
||||||
|
#
|
||||||
|
# ประกาศเจตนา: เนื้อหา ข้อความ รูปภาพ และข้อมูลโรงหนังบนเว็บไซต์นี้
|
||||||
|
# ไม่อนุญาตให้นำไปใช้ฝึก (train) ทำ fine-tune หรือสร้างโมเดลปัญญาประดิษฐ์
|
||||||
|
# รวมถึงการนำไปใช้เป็นคลังข้อมูลสำหรับคำตอบของระบบ AI โดยไม่ได้รับอนุญาตเป็นลายลักษณ์อักษร
|
||||||
|
#
|
||||||
|
# เว็บนี้ยังเปิดให้ search engine ปกติจัดทำดัชนีตามปกติ (ดู /robots.txt)
|
||||||
|
# สอบถามเรื่องการใช้เนื้อหา: ช่องทางติดต่อในส่วนท้ายของเว็บไซต์
|
||||||
|
|
||||||
|
User-Agent: *
|
||||||
|
Disallow: /
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{a as e,o as t}from"./IconCheck-B3jDJthn.js";import{t as n}from"./jsx-runtime-fBfwind-.js";import{t as r}from"./IconArrowBackUp-9ZWnW9Am.js";import{n as i}from"./footer-icons-kTf1LTdH.js";import{i as a,t as o}from"./SiteShell-DHgUrms6.js";var s=n();function c({block:e,index:t}){let n=100+Math.min(t,3)*60;return e.type===`image`?(0,s.jsx)(a,{delay:n,children:(0,s.jsxs)(`figure`,{className:`flex flex-col gap-2`,children:[(0,s.jsx)(`img`,{src:e.src,alt:e.alt,loading:`lazy`,className:`w-full rounded-xl bg-[#242424] object-cover`}),e.caption?(0,s.jsx)(`figcaption`,{className:`font-content text-[14px] leading-[1.7] text-[#999]`,children:e.caption}):null]})}):(0,s.jsx)(a,{delay:n,children:(0,s.jsx)(`p`,{className:`font-content max-w-[860px] text-[18px] leading-[1.95] text-[#C7C7C7] md:text-[20px]`,children:e.text})})}function l({content:n,backLabel:l}){let{site:u}=e();return(0,s.jsx)(o,{variant:`detail`,children:(0,s.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,s.jsx)(a,{kind:`fade`,children:(0,s.jsxs)(t,{to:`/`,className:`inline-flex w-fit items-center gap-2 text-xl font-medium transition hover:text-[#D47272]`,children:[(0,s.jsx)(r,{size:24}),l]})}),(0,s.jsxs)(a,{delay:40,className:`flex flex-col gap-4`,children:[(0,s.jsx)(`h1`,{className:`text-[32px] font-bold leading-[1.3] md:text-[40px]`,children:n.title}),(0,s.jsx)(`p`,{className:`font-content max-w-[860px] text-[19px] leading-[1.8] text-[#C4C4C4] md:text-[21px]`,children:n.lead})]}),(0,s.jsx)(`article`,{className:`flex flex-col gap-7`,children:n.blocks.map((e,t)=>(0,s.jsx)(c,{block:e,index:t},`${e.type}-${t}`))}),(0,s.jsx)(a,{kind:`fade`,children:(0,s.jsxs)(`section`,{className:`flex flex-col gap-6 rounded-xl p-6 backdrop-blur-sm lg:flex-row lg:items-center lg:justify-between`,style:{border:`1px solid rgba(169,38,38,0.45)`,background:`linear-gradient(180deg, rgba(143,8,8,0.18) 0%, rgba(27,27,27,0.85) 65%, rgba(13,13,13,0.7) 100%)`},children:[(0,s.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,s.jsx)(`h2`,{className:`text-2xl font-semibold leading-[1.3]`,children:n.contactHeading}),(0,s.jsx)(`p`,{className:`font-content max-w-[720px] text-[16px] leading-[1.9] text-[#C4C4C4] md:text-[17px]`,children:n.contactNote})]}),u.footer.length>0?(0,s.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:u.footer.map(e=>{let t=i(e.icon_name);return(0,s.jsx)(`a`,{href:e.href,"aria-label":e.label,title:e.label,target:`_blank`,rel:`noreferrer`,className:`flex size-11 items-center justify-center rounded-full bg-white/90 text-[#0D0D0D] transition hover:bg-white`,children:(0,s.jsx)(t,{size:20})},e.id)})}):null]})})]})})}export{l as t};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{i as e,t}from"./react-B8IZ02wI.js";import{o as n,r,t as i}from"./IconCheck-B3jDJthn.js";import{t as a}from"./jsx-runtime-fBfwind-.js";import{a as o,i as s,n as c}from"./share-origin-COlEIvGo.js";import{t as l}from"./createReactComponent-C-DRqPhY.js";import{a as u,n as d}from"./SiteShell-DHgUrms6.js";import{d as f,n as p,s as m,u as h}from"./cinemas-CTA3vCte.js";var g=l(`outline`,`arrow-right`,`ArrowRight`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M13 18l6 -6`,key:`svg-1`}],[`path`,{d:`M13 6l6 6`,key:`svg-2`}]]),_=l(`outline`,`building-community`,`BuildingCommunity`,[[`path`,{d:`M8 9l5 5v7h-5v-4m0 4h-5v-7l5 -5m1 1v-6a1 1 0 0 1 1 -1h10a1 1 0 0 1 1 1v17h-8`,key:`svg-0`}],[`path`,{d:`M13 7l0 .01`,key:`svg-1`}],[`path`,{d:`M17 7l0 .01`,key:`svg-2`}],[`path`,{d:`M17 11l0 .01`,key:`svg-3`}],[`path`,{d:`M17 15l0 .01`,key:`svg-4`}]]),v=l(`outline`,`circle-check`,`CircleCheck`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M9 12l2 2l4 -4`,key:`svg-1`}]]),y=l(`outline`,`map-pin`,`MapPin`,[[`path`,{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`,key:`svg-0`}],[`path`,{d:`M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0`,key:`svg-1`}]]),b=l(`outline`,`share`,`Share`,[[`path`,{d:`M3 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,key:`svg-0`}],[`path`,{d:`M15 6a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,key:`svg-1`}],[`path`,{d:`M15 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,key:`svg-2`}],[`path`,{d:`M8.7 10.7l6.6 -3.4`,key:`svg-3`}],[`path`,{d:`M8.7 13.3l6.6 3.4`,key:`svg-4`}]]),x=e(t(),1),S=a();function C({src:e,alt:t,className:n=``,fallback:r,size:i=`md`,lazy:a=!0}){let[o,s]=(0,x.useState)(null);return typeof e==`string`&&e.trim()!==``&&o!==e?(0,S.jsx)(`img`,{src:e,alt:t,className:`bg-[#242424] object-cover ${n}`,loading:a?`lazy`:`eager`,decoding:`async`,referrerPolicy:`no-referrer`,onError:()=>s(e)}):(0,S.jsx)(`div`,{className:`flex items-center justify-center bg-[#242424] ${n}`,role:`img`,"aria-label":t,children:r??(0,S.jsx)(d,{size:i})})}function w(e,t){return`${e.replace(/\/+$/,``)}${t.startsWith(`/`)?t:`/${t}`}`}function T(e,t){let n=(e??``).trim();return(n===``?t:n).replace(/\/+$/,``)}function E(e){return`/c/${e}`}function D(e){if(typeof document>`u`)return!1;let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return document.body.removeChild(t),n}function O(){if(typeof navigator>`u`)return{};let e=navigator;return{share:typeof e.share==`function`?e.share.bind(e):void 0,writeText:typeof e.clipboard?.writeText==`function`?e.clipboard.writeText.bind(e.clipboard):void 0,legacyCopy:D}}async function k(e,t=O()){if(t.share)try{await t.share({title:e.title,url:e.url})}catch{}if(t.writeText)try{return await t.writeText(e.url),t.share?`shared`:`copied`}catch{}return t.legacyCopy?.(e.url)?t.share?`shared`:`copied`:`failed`}function A({slug:e,title:t,variant:n=`icon`}){let{messages:a}=r(),o=c(),[s,l]=(0,x.useState)(null),u=(0,x.useRef)(null);(0,x.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]);async function d(n){n.preventDefault(),n.stopPropagation();let r=await k({title:t,url:w(T(o,window.location.origin),E(e))});l(r),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>l(null),2500)}let f=s===`copied`||s===`shared`,p=s===`failed`?a.share.failed:f?a.share.copied:n===`wide`?a.share.pageLabel:a.share.label,m=f?(0,S.jsx)(i,{size:16}):(0,S.jsx)(b,{size:16});return n===`wide`?(0,S.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,S.jsxs)(`button`,{type:`button`,onClick:d,title:t,className:`flex min-h-11 items-center gap-2 rounded-lg border px-4 text-sm backdrop-blur transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#A92626] ${s===`failed`?`border-[#A92626]/60 bg-[#1B1B1B]/80 text-[#D47272]`:f?`border-[#D47272]/50 bg-[#1B1B1B]/80 text-[#D47272]`:`border-[#332B2B] bg-[#1B1B1B]/80 text-white hover:border-[#A92626]/60 hover:bg-[#242424]`}`,children:[m,p]}),(0,S.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`text-xs text-[#B3B3B3]`,children:s?p:``})]}):(0,S.jsxs)(`div`,{className:`relative`,children:[(0,S.jsx)(`button`,{type:`button`,onClick:d,"aria-label":`${a.share.label}: ${t}`,title:a.share.label,className:`relative flex size-9 items-center justify-center rounded-xl border backdrop-blur-xl transition after:absolute after:-inset-1.5 after:content-[''] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#A92626] active:scale-95 ${s===`failed`?`border-[#A92626]/60 bg-[#1B1B1B]/80 text-[#D47272]`:f?`border-[#D47272]/50 bg-[#1B1B1B]/80 text-[#D47272]`:`border-white/10 bg-[#1B1B1B]/80 text-white hover:border-[#A92626]/60 hover:bg-[#242424] hover:text-[#D47272]`}`,children:m}),(0,S.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:s?p:``})]})}var j=1500,M=new Map;function N(e){if(typeof window>`u`)return;let t=JSOLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{t as e}from"./createReactComponent-C-DRqPhY.js";var t=e(`outline`,`arrow-back-up`,`ArrowBackUp`,[[`path`,{d:`M9 14l-4 -4l4 -4`,key:`svg-0`}],[`path`,{d:`M5 10h11a4 4 0 1 1 0 8h-1`,key:`svg-1`}]]);export{t};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{i as e,t}from"./react-B8IZ02wI.js";import{B as n,C as r,E as i,F as a,G as o,K as s,P as c,R as l,S as u,T as d,U as f,V as p,W as m,_ as h,d as g,f as _,h as v,n as y,p as b,s as x,u as S,w as C}from"./components-LggAOTeO.js";import{g as w,i as T,o as E,s as D,t as O}from"./components-BPFOGuol.js";import{t as k}from"./jsx-runtime-fBfwind-.js";import{i as A,r as j}from"./messages-nFlHChGW.js";import{t as M}from"./createReactComponent-C-DRqPhY.js";var N=`application/x-www-form-urlencoded`;function P(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function F(e){return P(e)&&e.tagName.toLowerCase()===`button`}function ee(e){return P(e)&&e.tagName.toLowerCase()===`form`}function I(e){return P(e)&&e.tagName.toLowerCase()===`input`}function L(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function R(e,t){return e.button===0&&(!t||t===`_self`)&&!L(e)}function z(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function te(e,t){let n=z(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var B=null;function ne(){if(B===null)try{new FormData(document.createElement(`form`),0),B=!1}catch{B=!0}return B}var re=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function V(e){return e!=null&&!re.has(e)?(o(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${N}"`),null):e}function ie(e,t){let n,r,i,a,o;if(ee(e)){let o=e.getAttribute(`action`);r=o?p(o,t):null,n=e.getAttribute(`method`)||`get`,i=V(e.getAttribute(`enctype`))||N,a=new FormData(e)}else if(F(e)||I(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?p(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=V(e.getAttribute(`formenctype`))||V(o.getAttribute(`enctype`))||N,a=new FormData(o,e),!ne()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(P(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=N,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var H=e(t(),1),ae=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{ae&&(window.__reactRouterVersion=`8.1.0`)}catch{}function oe({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=H.useState({action:n.action,location:n.location}),o=H.useCallback(e=>{r===!1?a(e):H.startTransition(()=>a(e))},[r]);return H.useLayoutEffect(()=>n.listen(o),[n,o]),H.createElement(y,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}oe.displayName=`unstable_HistoryRouter`;var U=H.forwardRef(function({onClick:e,discover:t=`render`,prefetch:r=`none`,relative:i,reloadDocument:a,replace:o,mask:u,state:d,target:f,to:p,preventScrollReset:m,viewTransition:h,defaultShouldRevalidate:g,..._},v){let{basename:y,navigator:b,useTransitions:w}=H.useContext(C),O=typeof p==`string`&&s.test(p),k=l(p,y);p=k.to;let A=x(p,{relative:i}),j=S(),M=null;if(u){let e=n(u,[],j.mask?j.mask.pathname:`/`,!0);y!==`/`&&(e.pathname=e.pathname===`/`?y:c([y,e.pathname])),M=b.createHref(e)}let[N,P,F]=D(r,_),ee=ue(p,{replace:o,mask:u,state:d,target:f,preventScrollReset:m,relative:i,viewTransition:h,defaultShouldRevalidate:g,useTransitions:w});function I(t){e&&e(t),t.defaultPrevented||ee(t)}let L=!(k.isExternal||a),R=H.createElement(`a`,{..._,...F,href:(L?M:void 0)||k.absoluteURL||A,onClick:L?I:e,ref:E(v,P),target:f,"data-discover":!O&&t===`render`?`true`:void 0});return N&&!O?H.createElement(H.Fragment,null,R,H.createElement(T,{page:A})):R});U.displayName=`Link`;var se=H.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:i=!1,style:a,to:o,viewTransition:s,children:c,...l},u){let d=v(o,{relative:l.relative}),f=S(),m=H.useContext(r),{navigator:h,basename:g}=H.useContext(C),_=m!=null&&ve(d)&&s===!0,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,b=f.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&g&&(x=p(x,g)||x);let w=y!==`/`&&y.endsWith(`/`)?y.length-1:y.length,T=b===y||!i&&b.startsWith(y)&&b.charAt(w)===`/`,E=x!=null&&(x===y||!i&&x.startsWith(y)&&x.charAt(y.length)===`/`),D={isActive:T,isPending:E,isTransitioning:_},O=T?e:void 0,k;k=typeof n==`function`?n(D):[n,T?`active`:null,E?`pending`:null,_?`transitioning`:null].filter(Boolean).join(` `);let A=typeof a==`function`?a(D):a;return H.createElement(U,{...l,"aria-current":O,className:k,ref:u,style:A,to:o,viewLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{i as e,t}from"./react-B8IZ02wI.js";import{u as n}from"./components-LggAOTeO.js";import{a as r,o as i,r as a,t as o}from"./IconCheck-B3jDJthn.js";import{t as s}from"./jsx-runtime-fBfwind-.js";import{n as c}from"./messages-nFlHChGW.js";import{t as l}from"./createReactComponent-C-DRqPhY.js";import{n as u}from"./footer-icons-kTf1LTdH.js";var d=l(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]),f=e(t(),1),p=`2000px 0px -6% 0px`,m=.06;function h(e=0){let t=(0,f.useRef)(null),[n,r]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let e=t.current;if(!e)return;if(typeof IntersectionObserver>`u`){r(!0);return}let n=new IntersectionObserver(e=>{for(let t of e){let e=t.rootBounds?.top??0,i=t.boundingClientRect.bottom<=e;if(!(!t.isIntersecting&&!i)){r(!0),n.disconnect();break}}},{threshold:m,rootMargin:p});return n.observe(e),()=>n.disconnect()},[]),{ref:t,revealed:n,style:{"--fx-delay":`${Math.max(0,e)}ms`}}}var g=s();function _({children:e,kind:t=`rise`,delay:n=0,className:r}){let{ref:i,revealed:a,style:o}=h(n);return(0,g.jsx)(`div`,{ref:i,"data-reveal":t,"data-revealed":a?``:void 0,style:o,className:r,children:e})}var v={background:`#0D0D0D`,surface:`#1B1B1B`,surfaceRaised:`#1F1F1F`,surfaceChip:`#242424`,surfaceMuted:`#E8E8E8`,border:`#332B2B`,borderSubtle:`#303030`,brand:`#8F0808`,brandBright:`#A92626`,brandText:`#D47272`,brandGlow:`#4C0404`,textPrimary:`#FFFFFF`,textMuted:`#B3B3B3`,textSubtle:`#999999`,glowSoft:`rgba(143,8,8,0.4)`,pillGradient:`linear-gradient(180deg, rgba(143,8,8,0.3) 0%, rgba(27,27,27,0) 100%)`,flagGradient:`linear-gradient(#A51931 0 17%, #F4F5F8 17% 34%, #2D2A4A 34% 66%, #F4F5F8 66% 83%, #A51931 83%)`},y={wordmark:`AlterFlixHub`,fontFamily:`'Jersey 15', sans-serif`,color:`#8F0808`,sizes:{sm:`text-2xl`,md:`text-4xl`}};function b(e=`md`){return`font-['Jersey_15'] leading-none ${y.sizes[e]}`}function x({className:e=``,size:t=`md`}){return(0,g.jsx)(`span`,{className:`${b(t)} ${e}`,style:{fontFamily:y.fontFamily,color:y.color},children:y.wordmark})}function S(){let{site:e}=r(),{messages:t}=a();return(0,g.jsx)(`footer`,{className:`relative z-10 mx-auto w-full max-w-[1440px] px-5 pb-6 md:px-[108px]`,children:(0,g.jsxs)(`div`,{className:`flex flex-col items-center gap-3 border-t border-white/10 pt-4 sm:flex-row sm:justify-between`,children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,g.jsx)(x,{size:`sm`}),(0,g.jsxs)(`nav`,{"aria-label":`เมนูล่าง`,className:`flex items-center gap-3 text-xs`,children:[(0,g.jsx)(i,{to:`/for-film-lovers`,className:`text-[#B3B3B3] transition hover:text-white`,children:t.nav.forFilmLovers}),(0,g.jsx)(i,{to:`/for-cinemas`,className:`text-[#B3B3B3] transition hover:text-white`,children:t.nav.forCinemas}),(0,g.jsx)(i,{to:`/about`,className:`text-[#B3B3B3] transition hover:text-white`,children:t.nav.about})]})]}),(0,g.jsx)(`div`,{className:`flex flex-wrap items-center justify-center gap-1.5`,children:e.footer.map(e=>{let t=u(e.icon_name),n=e.href.startsWith(`http`);return(0,g.jsx)(`a`,{href:e.href||`#`,"aria-label":e.label,title:e.label,target:n?`_blank`:void 0,rel:n?`noreferrer`:void 0,className:`flex size-8 items-center justify-center rounded-full bg-white/90 text-[#0D0D0D] transition hover:bg-white`,children:(0,g.jsx)(t,{size:18})},e.id)})}),(0,g.jsx)(`p`,{className:`text-xs text-[#999]`,children:`Copyright © AlterFlixHub`})]})})}function C(){return(0,g.jsx)(`span`,{className:`block h-4 w-[21px] shrink-0 rounded-[1px]`,style:{background:v.flagGradient}})}function w(){return(0,g.jsxs)(`span`,{className:`relative block h-4 w-[21px] shrink-0 overflow-hidden rounded-[1px]`,style:{background:`#012169`},children:[(0,g.jsx)(`span`,{className:`absolute inset-0`,style:{background:`linear-gradient(45deg, transparent 44%, #F4F5F8 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #F4F5F8 44% 56%, transparent 56%)`}}),(0,g.jsx)(`span`,{className:`absolute inset-0`,style:{background:`linear-gradient(90deg, transparent 40%, #F4F5F8 40% 60%, transparent 60%), linear-gradient(0deg, transparent 33%, #F4F5F8 33% 67%, transparent 67%)`}}),(0,g.jsx)(`span`,{className:`absolute inset-0`,style:{background:`linear-gradient(90deg, transparent 44%, #C8102E 44% 56%, transparent 56%), linear-gradient(0deg, transparent 40%, #C8102E 40% 60%, transparent 60%)`}})]})}var T={th:C,en:w};function E(){let{locale:e,setLocale:t,messages:n}=a(),[r,i]=(0,f.useState)(!1),s=(0,f.useRef)(null),l=(0,f.useRef)(null);(0,f.useEffect)(()=>{if(!r)return;s.current?.querySelector(`[role="menuitemradio"][aria-checked="true"]`)?.focus();function e(e){s.current?.contains(e.target)||i(!1)}function t(e){e.key===`Escape`&&(i(!1),l.current?.focus())}return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[r]);let u=c.find(t=>t.locale===e)??c[0],p=T[u.locale];function m(e){if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)retLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{i as e,t}from"./react-B8IZ02wI.js";import{a as n,l as r}from"./components-LggAOTeO.js";import{a as i,c 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{r as u}from"./messages-nFlHChGW.js";import{n as d}from"./motion-DOH2EXPt.js";import{t as f}from"./createReactComponent-C-DRqPhY.js";import{n as p,o as m,r as h,s as g,t as _}from"./CinemaGrid-DJMjtFke.js";import{i as v,t as y}from"./SiteShell-DHgUrms6.js";import{a as b,i as x,o as S,s as C}from"./seo-CukKNP_H.js";import{_ as w,a as T,h as E,i as D,m as O,r as k}from"./cinemas-CTA3vCte.js";var A=f(`outline`,`search`,`Search`,[[`path`,{d:`M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`,key:`svg-0`}],[`path`,{d:`M21 21l-6 -6`,key:`svg-1`}]]),j=e(t(),1),M=s();function N(e,t){switch(e){case`locating`:return t.search.locating;case`denied`:return t.search.denied;case`unsupported`:return t.search.unsupported;case`error`:return t.search.error;case`ready`:return t.search.sortedByDistance;default:return null}}function P({query:e,onQueryChange:t,nearMeStatus:n,onRequestLocation:r,onSubmitSearch:i}){let{messages:a}=o(),s=N(n,a),c=n===`ready`,l=(0,j.useRef)(null);function u(e){e.preventDefault(),l.current?.blur(),i()}return(0,M.jsxs)(`section`,{className:`mx-auto flex max-w-[1016px] flex-col items-center gap-10 pt-24 md:pt-[167px]`,children:[(0,M.jsxs)(v,{delay:60,className:`flex max-w-[745px] flex-col items-center gap-4 text-center`,children:[(0,M.jsxs)(`h1`,{className:`text-4xl font-bold leading-[1.3] md:text-[56px]`,children:[a.hero.titlePrefix,(0,M.jsx)(`span`,{className:`text-[#D47272]`,children:a.hero.titleHighlight}),a.hero.titleSuffix]}),(0,M.jsx)(`p`,{className:`text-base md:text-xl`,children:a.hero.subtitle})]}),(0,M.jsxs)(v,{delay:200,className:`w-full rounded-2xl border border-[#303030] bg-[#1B1B1B]/80 px-4 py-6 backdrop-blur-[24px] md:px-10`,children:[(0,M.jsxs)(`form`,{role:`search`,onSubmit:u,className:`flex h-14 items-center gap-3 rounded-lg border border-[#1B1B1B] bg-[#1F1F1F] px-5 transition-colors duration-300 focus-within:border-[#A92626]/70`,children:[(0,M.jsx)(A,{size:16,className:`shrink-0 text-[#999]`}),(0,M.jsx)(`input`,{ref:l,value:e,onChange:e=>t(e.target.value),placeholder:a.search.placeholder,"aria-label":a.search.placeholder,type:`search`,enterKeyHint:`search`,className:`min-w-0 flex-1 bg-transparent text-base text-white outline-none placeholder:text-[#8A8A8A] md:text-sm [&::-webkit-search-cancel-button]:hidden`}),(0,M.jsxs)(`button`,{type:`button`,onClick:r,disabled:n===`locating`,"aria-label":a.search.nearMe,className:`relative hidden items-center gap-2 border-l border-[#999] px-4 text-sm transition after:absolute after:-inset-y-3 after:inset-x-0 after:content-[''] disabled:opacity-60 sm:flex ${c?`text-[#D47272]`:`text-[#999] hover:text-white`}`,children:[c?(0,M.jsx)(g,{size:16}):(0,M.jsx)(m,{size:16}),a.search.nearMe]}),(0,M.jsx)(`button`,{type:`submit`,className:`relative h-8 rounded-lg border border-[#8F0808] bg-[#8F0808] px-6 text-sm font-medium transition after:absolute after:-inset-y-1.5 after:-inset-x-1 after:content-[''] hover:bg-[#a30a0a]`,children:a.search.submit})]}),s?(0,M.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:`px-1 pt-3 text-xs ${n===`ready`?`text-[#B3B3B3]`:`text-[#D47272]`}`,children:s}):null]})]})}var F=864e5;function I(e=new Date){return e.toISOString().slice(0,10)}function L(e){let t=Date.parse(`${e}T00:00:00Z`);return Number.isFinite(t)?Math.floor(t/F):0}function R(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function z(e){let t=e>>>0;return()=>{t=t+1831565813>>>0;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}function B(e,t){let n=z(t),r=[...e];for(let e=r.length-1;e>0;--e){let t=Math.floor(n()*(e+1));[r[e],r[t]]=[r[t],r[e]]}return r}function V(e,t){if(e.length===0)return[];let n=(t%e.length+e.length)%e.length;return[...e.slice(n),...e.slice(0,n)]}function H(e,t,n=I()){let r=e.length;if(r<2)return[...e];let i=B(e,R(t(e[0])+`|`+e.map(t).join(`|`)+`|v1`)),a=L(n);return V(i,r===2?a%2:1+(a%(r-1)+(r-1))%(r-1))}var U=/[\u200B-\u200D\u2060\uFEFF]/g,W=/\p{M}+/gu;function G(e){return e.normalize(`NFKC`).replace(U,``).toLowerCase().replace(/[·•・,،.\\/_|+&()\[\]{}<>"'’‘`“”«»—–~*:;!?$%^@#№-]+/g,` `).replace(/\s+/g,` `).trim()}function K(e){return G(e).normalize(`NFD`).replace(W,``).replace(/[^\p{L}\p{N}\s]+/gu,` `).replace(/\s+/g,` `).trim()}function q(e){let t=G(e);return t===``?[]:t.split(` `).filter(e=>e!==``)}var J={names:400,place:180,categories:150,details:60},Y={exact:3,prefix:2,contains:1.2,loose:.8};function X(e,t={}){let n={names:[e.name,e.name_th??``,e.slug.replace(/-/g,` `)],place:[e.location_label,e.location_label_en??``,...e.address_lines??[],...e.address_lines_en??[],...e.transport.flatMap(e=>[e.value,e.value_en??``])],categories:[...e.tags,...e.tags.map(e=>t[e]??``)],detailLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{a as e}from"./components-LggAOTeO.js";import{a as t,o as n,r}from"./IconCheck-B3jDJthn.js";import{t as i}from"./jsx-runtime-fBfwind-.js";import{r as a}from"./messages-nFlHChGW.js";import{t as o}from"./IconArrowBackUp-9ZWnW9Am.js";import{n as s}from"./footer-icons-kTf1LTdH.js";import{a as c,i as l,r as u,t as d}from"./SiteShell-DHgUrms6.js";import{a as f,n as p}from"./seo-CukKNP_H.js";var m=i(),h=a.th;function g({loaderData:e}){let t=e?.origin??``,n=`${h.about.title} — AlterFlixHub`,r=h.about.lead;return[...f({origin:t,title:n,description:r,path:`/about`}),...p(t,[{name:`หน้าแรก`,path:`/`},{name:h.about.title,path:`/about`}])]}function _({section:e,index:t}){let{ref:n,revealed:r,style:i}=c(t%2*80);return(0,m.jsxs)(`article`,{ref:n,"data-reveal":`rise`,"data-revealed":r?``:void 0,style:{...i,border:`1px solid ${u.border}`},className:`mb-8 flex break-inside-avoid flex-col gap-5 rounded-xl bg-[#1B1B1B]/70 p-7 backdrop-blur-sm transition-colors duration-300 hover:bg-[#1B1B1B] md:p-8`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,m.jsx)(`span`,{className:`flex size-12 shrink-0 items-center justify-center rounded-full text-sm font-semibold text-[#D47272]`,style:{background:`rgba(143,8,8,0.16)`,border:`1px solid rgba(169,38,38,0.45)`},"aria-hidden":`true`,children:String(t+1).padStart(2,`0`)}),(0,m.jsx)(`h2`,{className:`text-2xl font-semibold leading-[1.3]`,children:e.heading})]}),(0,m.jsx)(`p`,{className:`font-content text-[17px] leading-[1.95] text-[#C7C7C7] md:text-[18px]`,children:e.body})]})}var v=e(function(){let{messages:e,locale:i}=r(),{site:a,about:c}=t(),u=c[i];return(0,m.jsx)(d,{variant:`detail`,children:(0,m.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,m.jsx)(l,{kind:`fade`,children:(0,m.jsxs)(n,{to:`/`,className:`inline-flex w-fit items-center gap-2 text-xl font-medium transition hover:text-[#D47272]`,children:[(0,m.jsx)(o,{size:24}),e.nav.home]})}),(0,m.jsxs)(l,{delay:40,className:`flex flex-col gap-4`,children:[(0,m.jsx)(`h1`,{className:`text-[32px] font-bold leading-[1.3] md:text-[40px]`,children:u.title}),(0,m.jsx)(`p`,{className:`font-content max-w-[860px] text-[19px] leading-[1.8] text-[#C4C4C4] md:text-[21px]`,children:u.lead})]}),(0,m.jsx)(`section`,{className:`gap-6 lg:columns-2`,children:u.sections.map((e,t)=>(0,m.jsx)(_,{section:e,index:t},`${e.heading}-${t}`))}),(0,m.jsx)(l,{kind:`fade`,children:(0,m.jsxs)(`section`,{className:`flex flex-col gap-6 rounded-xl p-6 backdrop-blur-sm lg:flex-row lg:items-center lg:justify-between`,style:{border:`1px solid rgba(169,38,38,0.45)`,background:`linear-gradient(180deg, rgba(143,8,8,0.18) 0%, rgba(27,27,27,0.85) 65%, rgba(13,13,13,0.7) 100%)`},children:[(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(`h2`,{className:`text-2xl font-semibold leading-[1.3]`,children:u.contactHeading}),(0,m.jsx)(`p`,{className:`font-content max-w-[720px] text-[16px] leading-[1.9] text-[#C4C4C4] md:text-[17px]`,children:u.contactNote})]}),a.footer.length>0?(0,m.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:a.footer.map(e=>{let t=s(e.icon_name);return(0,m.jsx)(`a`,{href:e.href,"aria-label":e.label,title:e.label,target:`_blank`,rel:`noreferrer`,className:`flex size-11 items-center justify-center rounded-full bg-white/90 text-[#0D0D0D] transition hover:bg-white`,children:(0,m.jsx)(t,{size:20})},e.id)})}):null]})})]})})});export{v as default,g as meta};
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import{i as e,t}from"./react-B8IZ02wI.js";import{a as n,f as r}from"./components-LggAOTeO.js";import{t as i}from"./jsx-runtime-fBfwind-.js";import{r as a,t as o}from"./messages-nFlHChGW.js";import{t as s}from"./createReactComponent-C-DRqPhY.js";import{t as c}from"./footer-icons-kTf1LTdH.js";import{n as l,t as u}from"./contact-link-BLAvkJkh.js";import{a as d}from"./seo-CukKNP_H.js";import{a as f,f as p,t as m,y as h}from"./cinemas-CTA3vCte.js";var g=s(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]),_=s(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]),v=s(`outline`,`grip-vertical`,`GripVertical`,[[`path`,{d:`M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}],[`path`,{d:`M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-3`}],[`path`,{d:`M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-4`}],[`path`,{d:`M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-5`}]]),y=s(`outline`,`photo-up`,`PhotoUp`,[[`path`,{d:`M15 8h.01`,key:`svg-0`}],[`path`,{d:`M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5`,key:`svg-1`}],[`path`,{d:`M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5`,key:`svg-2`}],[`path`,{d:`M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526`,key:`svg-3`}],[`path`,{d:`M19 22v-6`,key:`svg-4`}],[`path`,{d:`M22 19l-3 -3l-3 3`,key:`svg-5`}]]),b=s(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]),x=s(`outline`,`sort-ascending-letters`,`SortAscendingLetters`,[[`path`,{d:`M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4`,key:`svg-0`}],[`path`,{d:`M19 21h-4l4 -7h-4`,key:`svg-1`}],[`path`,{d:`M4 15l3 3l3 -3`,key:`svg-2`}],[`path`,{d:`M7 6v12`,key:`svg-3`}]]),S=s(`outline`,`trash`,`Trash`,[[`path`,{d:`M4 7l16 0`,key:`svg-0`}],[`path`,{d:`M10 11l0 6`,key:`svg-1`}],[`path`,{d:`M14 11l0 6`,key:`svg-2`}],[`path`,{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`,key:`svg-3`}],[`path`,{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`,key:`svg-4`}]]),C=e(t(),1),w=`w-full rounded-lg border border-[#303030] bg-[#141414] px-3 py-2 text-base text-white outline-none transition focus:border-[#A92626] focus-visible:ring-2 focus-visible:ring-[#A92626]/40 sm:text-sm`,T=`flex flex-col gap-1.5 text-xs text-[#999]`,E=`min-h-11 rounded-lg bg-[#8F0808] px-4 text-sm font-medium transition hover:bg-[#a30a0a] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#D47272]`,D=`min-h-11 rounded-lg border border-[#303030] px-3 text-sm transition hover:border-[#A92626] hover:text-[#D47272] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#A92626]`,O=`min-h-9 rounded-lg border border-[#303030] px-2.5 text-sm text-[#B3B3B3] transition hover:border-[#A92626] hover:text-[#D47272] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#A92626] disabled:opacity-40`,k=i(),A=[{code:`th`,label:`ไทย`},{code:`en`,label:`English`}];function j({value:e,defaults:t,onChange:n,onSave:r,saving:i}){let[a,o]=(0,C.useState)(`th`),s=e[a];function c(t){n({...e,[a]:{...s,...t}})}function l(e,t){c({sections:s.sections.map((n,r)=>r===e?{...n,...t}:n)})}function u(e,t){let n=e+t;if(n<0||n>=s.sections.length)return;let r=[...s.sections],[i]=r.splice(e,1);r.splice(n,0,i),c({sections:r})}function d(){c({sections:[...s.sections,{heading:`หัวข้อที่ ${s.sections.length+1}`,body:``}]})}function f(e){c({sections:s.sections.filter((t,n)=>n!==e)})}function p(){n({...e,[a]:t[a]})}let m=s.title.trim()===``,h=s.lead.length>400;return(0,k.jsxs)(`div`,{className:`px-6 py-5`,children:[(0,k.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,k.jsx)(`div`,{role:`tablist`,"aria-label":`ภาษา`,className:`flex items-center gap-1 rounded-lg border border-[#242424] bg-[#141414] p-1`,children:A.map(e=>(0,k.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":a===e.code,onClick:()=>o(e.code),className:`min-h-9 rounded-md px-4 text-sm transition ${a===e.code?`bg-[#242424] font-semibold text-[#D47272]`:`text-[#999] hover:text-white`}`,children:e.label},e.code))}),(0,k.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,k.jsxs)(`button`,{type:`button`,className:D,onClick:p,children:[`คืนค่าตั้งต้น (`,a.toUpperCase(),`)`]}),(0,k.jsx)(`button`,{type:`button`,className:E,onClick:r,disabled:i,children:i?`กำลังบันทึก…`:`บันทึกหน้าเกี่ยวกับเรา`})]})]}),(0,k.jsxs)(`div`,{className:`grid gap-6 lg:grid-cols-[minmax(0,1fr)_360px]`,children:[(0,k.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,k.jsxs)(`label`,{className:T,children:[`หัวข้อหลัก (H1)`,(0,k.jsx)(`input`,{classNamLine truncated
|
||||||
|
`),onChange:e=>A({...E,address_lines:e.target.value.split(`
|
||||||
|
`)})})]})]})}),(0,k.jsx)(M,{title:`คำอธิบายโรงหนัง`,description:`ข้อความที่แสดงใต้ชื่อโรง`,badge:E.description?`มีคำอธิบาย`:`ยังไม่มี`,children:(0,k.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,k.jsxs)(`label`,{className:Z,children:[`คำอธิบาย (TH)`,(0,k.jsx)(`textarea`,{className:`${X} h-20`,value:E.description,onChange:e=>A({...E,description:e.target.value})})]}),(0,k.jsxs)(`label`,{className:Z,children:[`คำอธิบาย (EN)`,(0,k.jsx)(`textarea`,{className:`${X} h-20`,value:E.description_en??``,onChange:e=>A({...E,description_en:e.target.value})})]})]})}),(0,k.jsxs)(`div`,{className:`sticky bottom-0 z-10 -mx-1 flex flex-wrap gap-2 rounded-xl border-t border-[#242424] bg-[#0D0D0D]/95 px-1 py-3 backdrop-blur`,children:[(0,k.jsx)(`button`,{type:`button`,className:$,onClick:()=>void O({cinemas:i.cinemas}),children:`บันทึกทั้งหมด`}),(0,k.jsx)(`button`,{type:`button`,className:Q,onClick:()=>{let e={...E,slug:`${E.slug}-copy-${Date.now().toString().slice(-4)}`,name:`${E.name} (สำเนา)`};N([...i.cinemas,e]),m(e.slug),D(`สร้างสำเนาแล้ว — กดบันทึกเพื่อยืนยัน`)},children:`ทำสำเนา`}),(0,k.jsx)(`button`,{type:`button`,className:Q,onClick:()=>{navigator.clipboard.writeText(h),D(`คัดลอก JSON แล้ว`)},children:`คัดลอก JSON`}),(0,k.jsx)(`button`,{type:`button`,className:`${Q} text-[#D47272]`,onClick:()=>{let e=i.cinemas.filter(e=>e.slug!==E.slug);N(e),m(e[0]?.slug??null)},children:`ลบโรงหนังนี้`})]}),(0,k.jsxs)(`details`,{className:`rounded-xl border border-[#242424] p-3`,children:[(0,k.jsx)(`summary`,{className:`cursor-pointer text-sm text-[#B3B3B3]`,children:`แก้ไขดิบเป็น JSON (คัดลอก/วางได้)`}),(0,k.jsx)(`textarea`,{className:`${X} mt-3 h-72 font-mono text-xs`,value:h,onChange:e=>g(e.target.value),spellCheck:!1}),(0,k.jsx)(`button`,{type:`button`,className:`${Q} mt-2`,onClick:()=>{try{A(JSON.parse(h)),D(`ใช้ JSON แล้ว — กดบันทึกเพื่อยืนยัน`)}catch{D(`JSON ไม่ถูกต้อง`)}},children:`ใช้ JSON นี้`})]}),(0,k.jsxs)(`details`,{className:`rounded-xl border border-[#242424] p-3`,children:[(0,k.jsx)(`summary`,{className:`cursor-pointer text-sm text-[#B3B3B3]`,children:`วาง JSON เพื่อเพิ่มโรงหนัง (ทับ slug ที่ซ้ำ)`}),(0,k.jsx)(`textarea`,{className:`${X} mt-3 h-40 font-mono text-xs`,value:_,onChange:e=>v(e.target.value),placeholder:`{"slug":"new-cinema","name":"NEW CINEMA","tags":[]}`,spellCheck:!1}),(0,k.jsx)(`button`,{type:`button`,className:`${Q} mt-2`,onClick:async()=>{let e=await fetch(`/api/admin/cinemas/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({raw:_})});if(!e.ok){D((await e.json().catch(()=>({}))).statusMessage??`นำเข้าไม่สำเร็จ`);return}let t=await e.json();a(t.store),v(``),D(`นำเข้า ${t.imported} รายการแล้ว`)},children:`นำเข้า / วางทับ`})]})]}):(0,k.jsx)(`p`,{className:`text-sm text-[#999]`,children:`เลือกโรงหนังหรือเพิ่มใหม่ก่อน`})})]}):null,t===`about`?(0,k.jsx)(j,{value:i.about,defaults:I,onChange:ee,onSave:()=>void O({about:i.about}),saving:w}):null,t===`forCinemas`?(0,k.jsx)(re,{value:i.forCinemas,defaults:oe,onChange:te,onSave:()=>void O({forCinemas:i.forCinemas}),saving:w,saveLabel:`บันทึกหน้าสำหรับคนทำโรงหนัง`}):null,t===`forFilmLovers`?(0,k.jsx)(re,{value:i.forFilmLovers,defaults:L,onChange:ne,onSave:()=>void O({forFilmLovers:i.forFilmLovers}),saving:w,saveLabel:`บันทึกหน้าสำหรับคนรักหนัง`}):null,t===`terms`?(0,k.jsxs)(`div`,{className:`px-6 py-5`,children:[(0,k.jsxs)(`p`,{className:`mb-3 text-sm text-[#999]`,children:[`แก้คำศัพท์ตามภาษา — key เป็นตำแหน่งข้อความในหน้าเว็บ (เช่น`,` `,(0,k.jsx)(`code`,{children:`hero.subtitle`}),`) เว้นว่างไว้แปลว่าใช้ค่าเดิม`]}),(0,k.jsxs)(`div`,{className:`mb-3 flex flex-wrap gap-2`,children:[(0,k.jsx)(`button`,{type:`button`,className:$,onClick:()=>void O({site:i.site}),children:`บันทึกคำศัพท์`}),(0,k.jsx)(`button`,{type:`button`,className:Q,onClick:()=>F({...i.site,terms:[...i.site.terms,{key:`custom.term${i.site.terms.length+1}`,values:Object.fromEntries(z.map(e=>[e.code,``]))}]}),children:`+ เพิ่มคำศัพท์`}),f.map(e=>{let t=`venues.${e}`,n=i.site.terms.some(e=>e.key===t);r
Line truncated
|
||||||
|
`),t=new Blob([`query,count,zero_result_count,click_count
|
||||||
|
`+e],{type:`text/csv;charset=utf-8`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`search-stats-${y.range_days}d.csv`,r.click(),URL.revokeObjectURL(n)},children:`ดาวน์โหลด CSV (คำค้นยอดนิยม)`})]})]}),(0,k.jsx)(`p`,{className:`mt-6 text-xs text-[#777]`,children:`เก็บแบบไม่ใช้คุกกี้: ไม่เก็บ IP/User-Agent ดิบ ระบุผู้เข้าชมด้วย hash ที่หมุนเกลือทุกวัน (แนวเดียวกับ Umami)`})]}):(0,k.jsx)(`p`,{className:`text-sm text-[#999]`,children:`กำลังโหลดสถิติ…`})]}):null,t===`footer`?(0,k.jsxs)(`div`,{className:`px-6 py-5`,children:[(0,k.jsx)(`p`,{className:`mb-3 text-sm text-[#999]`,children:`เลือกไอคอนและใส่ลิงก์ของแต่ละอัน — ลำดับตามรายการนี้`}),(0,k.jsxs)(`div`,{className:`mb-3 flex flex-wrap gap-2`,children:[(0,k.jsx)(`button`,{type:`button`,className:$,onClick:()=>void O({site:i.site}),children:`บันทึก Footer`}),(0,k.jsx)(`button`,{type:`button`,className:Q,onClick:()=>F({...i.site,footer:[...i.site.footer,{id:`footer-${Date.now()}`,icon_name:`IconLink`,label:`ลิงก์ใหม่`,href:`https://`}]}),children:`+ เพิ่มไอคอน`})]}),(0,k.jsx)(`div`,{className:`flex flex-col gap-2`,children:i.site.footer.map((e,t)=>(0,k.jsxs)(`div`,{className:`grid gap-2 rounded-xl border border-[#242424] p-3 sm:grid-cols-[180px_1fr_1fr_auto]`,children:[(0,k.jsx)(`select`,{className:X,value:e.icon_name,onChange:e=>{let n=i.site.footer.map((n,r)=>r===t?{...n,icon_name:e.target.value}:n);F({...i.site,footer:n})},children:c.map(e=>(0,k.jsx)(`option`,{value:e,children:e},e))}),(0,k.jsx)(`input`,{className:X,placeholder:`ชื่อที่แสดง`,value:e.label,onChange:e=>{let n=i.site.footer.map((n,r)=>r===t?{...n,label:e.target.value}:n);F({...i.site,footer:n})}}),(0,k.jsx)(`input`,{className:X,placeholder:`https://…`,value:e.href,onChange:e=>{let n=i.site.footer.map((n,r)=>r===t?{...n,href:e.target.value}:n);F({...i.site,footer:n})}}),(0,k.jsx)(`button`,{type:`button`,className:`text-xs text-[#D47272]`,onClick:()=>F({...i.site,footer:i.site.footer.filter((e,n)=>n!==t)}),children:`ลบ`})]},e.id))})]}):null]})});export{Ie as default,Ae as meta};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import{i as e,t}from"./react-B8IZ02wI.js";import{a as n,f as r}from"./components-LggAOTeO.js";import{t as i}from"./jsx-runtime-fBfwind-.js";import{a}from"./seo-CukKNP_H.js";var o=e(t(),1),s=i(),c=`w-full rounded-lg border border-[#303030] bg-[#141414] px-3 py-2 text-sm text-white outline-none focus:border-[#A92626]`;function l({loaderData:e}){return a({origin:e?.origin??``,title:`เข้าสู่ระบบหลังบ้าน — AlterFlixHub`,description:`หน้าสำหรับผู้ดูแลเว็บไซต์เท่านั้น`,path:`/admin/login`,noIndex:!0})}var u=n(function(){let e=r(),[t,n]=(0,o.useState)(``),[i,a]=(0,o.useState)(``),[l,u]=(0,o.useState)(null),[d,f]=(0,o.useState)(!1);async function p(n){n.preventDefault(),f(!0),u(null);try{let n=await fetch(`/api/admin/login`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({username:t,password:i})});if(!n.ok){let e=await n.json().catch(()=>({}));u(e.statusMessage??e.message??`เข้าสู่ระบบไม่สำเร็จ`);return}e(`/admin`)}catch{u(`เชื่อมต่อเซิร์ฟเวอร์ไม่ได้`)}finally{f(!1)}}return(0,s.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center bg-[#0D0D0D] px-5 text-white`,children:(0,s.jsxs)(`form`,{onSubmit:p,className:`w-full max-w-sm rounded-2xl border border-[#303030] bg-[#141414] p-6`,children:[(0,s.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`เข้าสู่ระบบหลังบ้าน`}),(0,s.jsx)(`p`,{className:`mt-1 text-sm text-[#999]`,children:`AlterFlixHub · เฉพาะผู้ดูแล`}),(0,s.jsxs)(`label`,{className:`mt-6 block text-sm text-[#B3B3B3]`,children:[`ชื่อผู้ใช้`,(0,s.jsx)(`input`,{value:t,onChange:e=>n(e.target.value),autoComplete:`username`,className:`mt-1 ${c}`})]}),(0,s.jsxs)(`label`,{className:`mt-4 block text-sm text-[#B3B3B3]`,children:[`รหัสผ่าน`,(0,s.jsx)(`input`,{type:`password`,value:i,onChange:e=>a(e.target.value),autoComplete:`current-password`,className:`mt-1 ${c}`})]}),l?(0,s.jsx)(`p`,{role:`alert`,className:`mt-4 text-sm text-[#D47272]`,children:l}):null,(0,s.jsx)(`button`,{type:`submit`,disabled:d,className:`mt-6 h-10 w-full rounded-lg bg-[#8F0808] text-sm font-medium transition hover:bg-[#a30a0a] disabled:opacity-60`,children:d?`กำลังเข้าสู่ระบบ…`:`เข้าสู่ระบบ`})]})})});export{u as default,l as meta};
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/session-replay--ys9kbH4.js","assets/api-path-DiLUeLL2.js","assets/preload-helper-CZgWQFsJ.js","assets/optional-peer-BHoJSOIB.js","assets/session-replay-endpoint-CkXvYk-L.js","assets/browser-Brwa_wdh.js"])))=>i.map(i=>d[i]);
|
||||||
|
import{r as e,t}from"./react-B8IZ02wI.js";import{T as n,_ as r,a as i,c as a,d as o,g as s,l as c,n as l,o as u,t as d,u as f,v as p}from"./api-path-DiLUeLL2.js";import{t as m}from"./preload-helper-CZgWQFsJ.js";import{n as h}from"./optional-peer-BHoJSOIB.js";import{a as g,c as ee,d as te,i as ne,l as re,n as ie,o as ae,r as oe,s as se,t as ce,u as le}from"./session-replay-endpoint-CkXvYk-L.js";var ue;function de(){return ue}var fe=`@agent-native/core/agent-loop`,_,pe,me=!1;async function he(){let e=de()?.tracerProvider;if(_!==void 0&&pe===e)return _;pe=e;try{let t=await h(`@opentelemetry/api`,()=>m(()=>import(`./esm-CWqsxKDN.js`),[])),n=e?e.getTracer(fe):t?.trace?.getTracer?.(fe);_=n?{tracer:n,...t?.context?.active&&t?.context?.with?{context:t.context}:{},...t?.trace?.setSpan?{trace:t.trace}:{}}:null}catch(e){me||(me=!0,console.warn(`[agent-native] OpenTelemetry tracing disabled after an optional peer load failure.`,e)),_=null}return _}function ge(e){let t={};for(let[n,r]of Object.entries(e))r!=null&&(t[n]=r);return t}var _e=new Map([[`action.response`,`action.client`],[`action_completed`,`action.server`],[`action_failed`,`action.server`],[`$ai_generation`,`llm.generation`],[`$ai_trace`,`llm.trace`],[`agent_run_terminal`,`agent.run.terminal`],[`$a2a_invocation`,`a2a.invocation`],[`$a2a_read_invoke`,`a2a.read`]]);function ve(e){let t=e.duration_ms;return typeof t==`number`&&Number.isFinite(t)&&t>=0?t:null}function ye(e){return typeof e==`string`||typeof e==`number`&&Number.isFinite(e)||typeof e==`boolean`?e:void 0}function be(e){let t={},n=(n,r)=>{let i=e[r];typeof i==`number`&&Number.isFinite(i)&&i>=0&&(t[n]=i)},r=(n,r)=>{let i=e[r];typeof i==`boolean`&&(t[n]=i)};r(`agent.success`,`success`),r(`agent.sampled`,`sampled`),n(`agent.sample_rate`,`sample_rate`);for(let e of[`duration_ms`,`ttfb_ms`,`body_ms`,`server_duration_ms`,`network_overhead_ms`,`framework_ready_wait_ms`,`db_operation_wall_ms`,`db_operation_count`,`cold_start`])n(`agent.${e}`,e);let i=e.status_code;return typeof i==`number`&&Number.isInteger(i)&&i>=100&&i<=599&&(t[`http.status_code`]=i,t[`http.status_class`]=`${Math.floor(i/100)}xx`),t}function xe(e,t,n){let r=n===`client`?{}:{"agent.event_name":e};if(n&&(r[`agent.telemetry_source`]=n),n===`client`)return{...r,...be(t)};let i=(e,n,i=t[n])=>{let a=ye(i);a!==void 0&&(r[e]=a)};return i(`agent.source`,`source`),e!==`$a2a_read_invoke`&&i(`agent.action`,`action_name`,t.action),i(`agent.action_source`,`action_source`),i(`agent.caller`,`caller`),i(`agent.outcome`,`outcome`),i(`agent.success`,`success`),i(`agent.sample_rate`,`sample_rate`),i(`agent.sampled`,`sampled`),i(`http.method`,`method`),i(`http.route`,`route_template`),i(`http.status_code`,`status_code`),i(`http.status_class`,`status_class`),i(`agent.duration_ms`,`duration_ms`),i(`agent.ttfb_ms`,`ttfb_ms`),i(`agent.body_ms`,`body_ms`),i(`agent.server_duration_ms`,`server_duration_ms`),i(`agent.network_overhead_ms`,`network_overhead_ms`),i(`agent.framework_ready_wait_ms`,`framework_ready_wait_ms`),i(`agent.db_operation_wall_ms`,`db_operation_wall_ms`),i(`agent.db_operation_count`,`db_operation_count`),i(`agent.cold_start`,`cold_start`),r}function Se(e){if(e.success===!1)return`error`;let t=e.status_code;if(typeof t==`number`&&t>=400||e.$ai_is_error===!0)return`error`;let n=e.status;if(typeof n==`string`&&/^(?:aborted|error|errored|failed|truncated)$/i.test(n))return`error`;let r=e.outcome;return typeof r==`string`&&/(?:cancel|error|fail|network|timeout)/i.test(r)?`error`:`success`}async function Ce(e,t={},n){let r=e.trim(),i=ve(t),a=_e.get(r);if(!(!a||i===null))try{let e=Date.now();Te(await we(a,xe(r,t,n),null,e-i),{status:Se(t),endTime:e})}catch{}}async function we(e,t={},n=null,r){let i=await he();if(!i)return null;try{let a;if(n&&i.context&&i.trace)try{a=i.trace.setSpan(i.context.active(),n)}catch{}return i.tracer.startSpan(e,{attributes:ge(t),...r===void 0?{}:{startTime:r}},a)}catch{return null}}function Te(e,t={}){if(e)try{t.attributes&&e.setAttributes(ge(t.attributes)),t.status===`error`?(e.setStatus({code:2,message:t.errorMessage??void 0}),t.errorMessage&&e.recordException({message:t.errorMessage})):t.status!==`unset`&&e.setStatus({code:1})}catch{}finally{try{e.end(t.endTime)}catch{}}}var v={appEntered:`app_entered`,coreActionStarted:`core_action_started`,coreActionCompleted:`core_action_completed`,outputViewed:`output_viewed`,outputShared:`output_shared`,returnUsage:`return_usage`,crossAppUsed:`cross_app_used`,coreActionFailed:`core_action_failed`,ctaClicked:`cta_clicked`},Ee=`event_alias_id`,De={"auth.login_clicked":`auth_login_clicked`,"auth.signup_clicked":`auth_signup_clicked`,"auth.signup_completed":`auth_signup_completed`,"auth.signup_viewed":`auth_signup_viewed`,"build your app":`build_your_app`,"builder branch waitlist joined":`builder_branch_waitlist_joined`,"builder connect clicked":`builder_connect_clicked`,"builder connect failed":`builder_connect_failed`,"builder connect popup blocked":`builder_connect_popup_blocked`,"builLine truncated
|
||||||
|
`)){if(r.length>pt)continue;let e=ht.test(r)?r.replace(ht,`$1`):r;if(mt.test(e))continue;let i=bt(e,t);if(i&&n.push(i),n.length>=ft)break}return n.reverse(),n}function St(e){let t=e.lang??`javascript`,n=xt(e.stack,t);return{$exception_list:[{type:p(e.type||`Error`,200),value:p(e.value||e.type||`Error`,r),mechanism:{handled:e.handled??!0,synthetic:e.synthetic??!1,...e.mechanismType?{type:p(e.mechanismType,100)}:{}},...n.length?{stacktrace:{type:`raw`,frames:n}}:{}}],$exception_level:e.level??`error`,...e.fingerprint?{$exception_fingerprint:p(e.fingerprint,200)}:{}}}function Ct(e){if(e)return e;if(typeof window>`u`)return`web`;let t=window;return He(t.agentNativeDesktop?.analytics?.clientPlatform)??He(t.__AGENT_NATIVE_HOST_PLATFORM__)??He(t.__AGENT_NATIVE_CONFIG__?.clientPlatform)??`web`}var wt=`thread`;function Tt(e,t){return`${e.replace(/\/+$/,``)}/?${wt}=${encodeURIComponent(t)}`}function Et(e){let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`)continue;let e=r.trim();e&&(t[n]=e)}return t}var Dt=`agent-chat-active-run`;function Ot(e,t){return`${e} | ||||||