chore(publish): replace source tree with static export at repo root
Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.
Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
This commit is contained in:
1 parent
05487728a7
commit
e6c4ebff48
394 files changed
+3977
-37891
No files matched your search
@@ -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} | ||||