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

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

1 line
2.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{t as e}from"./createReactComponent-C-DRqPhY.js";var t=e(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]),n=new Set([`-`,`–`,`—`,`n/a`,`na`,`null`,`undefined`,`ไม่มี`,`ไม่มีข้อมูล`]),r=[`fbclid`,`gclid`,`_rdc`,`_rdr`,`igshid`,`ref`,`ref_src`,`mibextid`];function i(e){let t=e.toLowerCase();return r.includes(t)||t.startsWith(`utm_`)}function a(e){let t=e.trim();if(t===``)return null;let n=t.startsWith(`+`),r=t.replace(/[^\d]/g,``);return r.length<8||r.length>15?null:n||r.startsWith(`66`)?`+${r}`:r.startsWith(`0`)?`+66${r.slice(1)}`:`+${r}`}function o(e){let t=e.trim();if(t===``||/[a-z@]/i.test(t))return!1;let n=t.replace(/\D/g,``);return n.length>=8&&n.length<=15}function s(e){let t=new URLSearchParams;e.searchParams.forEach((e,n)=>{i(n)||t.append(n,e)});let n=t.toString();return e.search=n===``?``:`?${n}`,e}function c(e){let t=e.trim();if(t===``)return null;if(/^@[\w.\-_]+$/.test(t))return`https://line.me/R/ti/p/~${t.slice(1)}`;if(/^line:/i.test(t)&&(t=t.replace(/^line:\/\//i,`https://line.me/R/ti/p/~`)),!/^[a-z][a-z0-9+.-]*:\/\//i.test(t)){if(!/^[\w-]+(\.[\w-]+)+/.test(t))return null;t=`https://${t}`}try{let e=new URL(t);return e.protocol===`http:`&&(e.protocol=`https:`),e.hostname===`web.facebook.com`&&(e.hostname=`www.facebook.com`),e.hostname=e.hostname.toLowerCase(),s(e).toString()}catch{return null}}function l(e){return/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e.trim())}function u(e){let t=(e.value??``).trim(),r=(e.href??``).trim(),i=(e.label??``).trim().toLowerCase(),s=[r,t].filter(e=>e!==``&&!n.has(e.toLowerCase()));if(s.length===0)return{href:null,kind:null,external:!1};for(let e of s){let n=e.toLowerCase();if(n.startsWith(`tel:`)){let t=a(e.slice(4));if(t)return{href:`tel:${t}`,kind:`tel`,external:!1}}if(n.startsWith(`mailto:`)){let t=e.slice(7).trim();if(l(t))return{href:`mailto:${t}`,kind:`mailto`,external:!1}}if(l(e))return{href:`mailto:${e}`,kind:`mailto`,external:!1};if(/^https?:\/\//i.test(e)||/^line:/i.test(e)||/^@[\w.\-_]+$/.test(e)||/^[\w-]+(\.[\w-]+)+(\/|$)/.test(e)){let t=c(e);if(t)return{href:t,kind:`web`,external:!0}}if(o(e)&&/call|โทร|phone|tel|เบอร์|มือถือ/.test(i+` `+t)){let t=a(e);if(t)return{href:`tel:${t}`,kind:`tel`,external:!1}}if(o(e)){let t=a(e);if(t)return{href:`tel:${t}`,kind:`tel`,external:!1}}}return{href:null,kind:null,external:!1}}export{t as n,u as t};