PageSourceSearch

https://thaksa.ai/_next/static/chunks/0_tfz2.~qvel2.js

js thaksa.ai collected 2026-10-05 12:46:04 UTC 52,260 bytes, 14 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,676277,e=>{"use strict";e.s([])},755889,e=>{"use strict";var t=e.i(247167);e.i(676277),t.default.env.FEATURE_LIVE_CHAT_ENABLED;let r=new Set(["off","preview_only","staff_only","holdout_test"]);e.s(["TOOL_ASK_BRIDGE_CAMPAIGN_ID",0,"tool_ask_bridge_v1","arenaOpenLoopDisplayOn",0,function(){return!0},"assignConfidenceVariant",0,function(e){let t=0;for(let r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)>>>0;return t%2==0?"A":"B"},"crowdRevealDisplayOn",0,function(){return!0},"dailyCardLinkCtaV2ClientOn",0,function(){return!0},"dailyCardLinkCtaV2VariantPct",0,function(){let e=Number("10");return!Number.isFinite(e)||e<0||e>100?20:Math.trunc(e)},"forecastAiSummaryV0ClientOn",0,function(){return"true"===t.default.env.NEXT_PUBLIC_FORECAST_AI_SUMMARY_V0},"forecastConfidenceV1DisplayOn",0,function(){return"true"===t.default.env.NEXT_PUBLIC_FORECAST_CONFIDENCE_V1},"forecastDesktopNavTabV0ClientOn",0,function(){return"true"===t.default.env.NEXT_PUBLIC_FORECAST_DESKTOP_NAV_TAB_V0},"forecastPhoneScoreExperimentModeClient",0,function(){let e;return e=(t.default.env.NEXT_PUBLIC_FORECAST_PHONE_SCORE_EXPERIMENT_V0??"").trim().toLowerCase(),r.has(e)?e:"off"},"forecastPrivateAskBridgeV0ClientOn",0,function(){return"true"===t.default.env.NEXT_PUBLIC_FORECAST_PRIVATE_ASK_BRIDGE_V0},"forecastShareCardV0ClientOn",0,function(){return"true"===t.default.env.NEXT_PUBLIC_FORECAST_SHARE_CARD_V0},"forecastVoteV0ClientOn",0,function(){return"true"===t.default.env.NEXT_PUBLIC_FORECAST_VOTE_V0},"inConfidenceRollout",0,function(e){let t,r=Number.isFinite(t=Number("0"))&&t>=0&&t<=100?t:0;if(!e||r<=0)return!1;if(r>=100)return!0;let n=0;for(let t=0;t<e.length;t++)n=Math.imul(n,31)+e.charCodeAt(t)|0;return Math.abs(n)%100<r},"predictionsV1DisplayOn",0,function(){return!0},"pricingV2DisplayOn",0,function(){return!0},"toolAskBridgeSurfaceClientOn",0,function(e){var t=e;switch(t){case"life_graph":case"auspicious":case"lucky_car_day":case"id_number":return!0}},"toolAskBridgeVariantPctClient",0,function(){let e=Number("50");return!Number.isFinite(e)||e<0||e>100?50:Math.trunc(e)}])},411791,e=>{"use strict";var t=e.i(271645);e.s(["useThreadVariant",0,function(){let[e,r]=(0,t.useState)(!1),[n,i]=(0,t.useState)(!1),[o,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!0;return fetch("/api/me/question-credit",{cache:"no-store",credentials:"same-origin"}).then(e=>e.json()).then(t=>{e&&(r(!!t?.thread_variant),a(!!t?.free_human_ask_cutoff),i(!0))}).catch(()=>{e&&(r(!1),i(!0))}),()=>{e=!1}},[]),{variant:e,resolved:n,freeHumanAskCutoff:o}}])},872362,e=>{"use strict";let t={standard_49:{offerType:"standard_49",requestTier:"quick",priceTHB:49,labelTh:"ถามอาจารย์",descTh:"ถาม 1 คำถาม · รวมถามต่อในเรื่องเดิมได้อีก 1 ครั้งภายใน 7 วัน",allowedFollowups:1,recommended:!1},quick_29:{offerType:"quick_29",requestTier:"quick",priceTHB:29,labelTh:"ถามสั้น",descTh:"คำตอบกระชับ 1 คำถาม — เหมาะกับเรื่องที่อยากรู้คำตอบเร็ว",allowedFollowups:0,recommended:!1},deep_99:{offerType:"deep_99",requestTier:"deep",priceTHB:99,labelTh:"ถามละเอียด",descTh:"วิเคราะห์เชิงลึก · รวมถามต่อในเรื่องเดิมได้อีก 1 ครั้งภายใน 7 วัน",allowedFollowups:1,recommended:!0},important_199:{offerType:"important_199",requestTier:"important",priceTHB:199,labelTh:"แพ็กเรื่องสำคัญ",descTh:"เรื่องสำคัญ 1 เรื่อง — วิเคราะห์ครบทุกมุม ละเอียดที่สุด + ถามต่อฟรี 1 ครั้ง (เรื่องเดิม)",allowedFollowups:1,recommended:!1},legacy_49:{offerType:"legacy_49",requestTier:"quick",priceTHB:49,labelTh:"ถามด่วน",descTh:"โปรเปิดตัว · ถาม 1 แถม 1",allowedF
1ollowups:1,recommended:!1}};e.s(["INCLUDED_FOLLOWUP_WINDOW_DAYS",0,7,"OFFER_TIERS",0,t,"defaultOfferFor",0,function(e){return"low_intent"===e?"quick_29":"deep_99"},"offerIncludesFollowup",0,function(e){if(!e)return!1;let r=t[e];return!!r&&r.allowedFollowups>0},"visibleOffersFor",0,function(e){return"high_intent"===e?["quick_29","deep_99","important_199"]:["quick_29","deep_99"]}])},946591,e=>{"use strict";var t=e.i(411791),r=e.i(755889),n=e.i(872362);e.s(["QUICK_PRICE_VARIANT",0,49,"useAskQuickPrice",0,function(){let{variant:e}=(0,t.useThreadVariant)();if((0,r.pricingV2DisplayOn)()){let e=n.OFFER_TIERS.standard_49.priceTHB;return{price:e,variant:!0,label:`฿${e}`}}let i=e?49:29;return{price:i,variant:e,label:`฿${i}`}}])},344804,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n="thaksa_user",i={profile:null,dismissCount:0,toolUseCount:0,v:1};function o(e){if("u"<typeof document)return;let t=encodeURIComponent(JSON.stringify(e));document.cookie=`${n}=${t}; path=/; max-age=31536000; SameSite=Lax`}let a=(0,r.createContext)(null);e.s(["ThaksaUserProvider",0,function({children:e}){let[l,s]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),[d,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),[g,y]=(0,r.useState)(0),[m,b]=(0,r.useState)(0);(0,r.useEffect)(()=>{let e=function(){if("u"<typeof document)return{...i};let e=document.cookie.match(RegExp(`${n}=([^;]+)`));if(!e)return{...i};try{let t=JSON.parse(decodeURIComponent(e[1]));if("object"!=typeof t||null==t)return{...i};let r=t.profile;return{profile:r&&"object"==typeof r&&"string"==typeof r.birthDate&&/^\d{4}-\d{2}-\d{2}$/.test(r.birthDate)?r:null,dismissCount:"number"==typeof t.dismissCount?t.dismissCount:0,toolUseCount:"number"==typeof t.toolUseCount?t.toolUseCount:0,v:"number"==typeof t.v?t.v:1}}catch{return{...i}}}();y(e.dismissCount),b(e.toolUseCount),e.profile&&s(e.profile);try{localStorage.getItem("oracle_user")&&f(!0)}catch{}let t=!1,r=async()=>{try{let r=await fetch("/api/user/get-profile",{cache:"no-store",credentials:"same-origin"}),n=await r.json();if(t)return;if(f(!!n?.isAuthed),n?.isAuthed&&n.profile)s(n.profile),h(!0),o({profile:n.profile,dismissCount:e.dismissCount,toolUseCount:e.toolUseCount,v:1});else if(n?.isAuthed&&!n.profile&&e.profile?.birthDate)try{let r=await fetch("/api/user/set-birthday",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({birthDate:e.profile.birthDate,birthTime:e.profile.birthTime??null})}),n=await r.json();!t&&r.ok&&n?.profile&&(s(n.profile),h(!0),o({profile:n.profile,dismissCount:e.dismissCount,toolUseCount:e.toolUseCount,v:1}))}catch{}else if(!n?.isAuthed){let e=!1;try{e=!!localStorage.getItem("oracle_user")}catch{}if(e){try{localStorage.removeItem("oracle_user")}catch{}try{await fetch("/api/auth/signout",{method:"POST",credentials:"same-origin"})}catch{}}}}catch{}finally{t||u(!0)}};r();let a=()=>{if("visible"!==document.visibilityState)return;let e=window.location.pathname;e.startsWith("/practitioner")||e.startsWith("/admin")||r()};return document.addEventListener("visibilitychange",a),()=>{t=!0,document.removeEventListener("visibilitychange",a)}},[]);let _=!!l?.birthDate,x=(0,r.useMemo)(()=>!!c&&!_&&(!!d||!(g>=2)&&(0===g||1===g&&!!(m>=2))),[c,_,d,g,m]),C=(0,r.useCallback)(async(e,t=null,r=null)=>{try{let n=await fetch("/api/user/set-birthday",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({birthDate:e,birthTime:t||null,birthPlace:r||null})}),i=await n.json();if(!n.ok||!i?.success||!i.profile)return{ok:!1,error:i?.error??"set-birthday failed"};return s(i.profile),i.persisted&&h(!0),i.isAuthed&&f(!0),o({profile:i.profile,dismissCount:g,toolUseCount:m,v:1}),{ok:!0}}catch(e){return{ok:!1,error:e.message}}},[g,m]),S=(0,r.useCallback)(()=>{y(e=>{let t=e+1;return o({profile:l,dismissCount:t,toolUseCount:m,v:1}),t})},[l,m]),w=(0,r.useCallback)(()=>{b(e=>{let t=e+1;return o({profile:l,dismissCount:g,toolUseCount:t,v:1}),t})},[l,g]);return(0,t.jsx)(a.Provider,{value:{profile:l,isLoaded:c,hasBirthDate:_,shouldShowPrompt:x,isAuthed:d,persistedToDb:p,setBirthDate:C,dismissPrompt:S,registerToolUse:w},children:e})},"useThaksaUser",0,function(){let e=(0,r.useContext)(a);return e||{profile:null,isLoaded:!0,hasBirthDate:!1,shouldShowPrompt:!1,isAuthed:!1,persistedToDb:!1,setBirthDate:async(e,t)=>({ok:!1,error:"no provider"}
1),dismissPrompt:()=>{},registerToolUse:()=>{}}}])},294498,e=>{e.v({canvas:"celestial-module__uF6ipW__canvas",content:"celestial-module__uF6ipW__content",shoot:"celestial-module__uF6ipW__shoot",star:"celestial-module__uF6ipW__star",starfield:"celestial-module__uF6ipW__starfield",twinkle:"celestial-module__uF6ipW__twinkle"})},61222,e=>{"use strict";var t=e.i(843476),r=e.i(294498);let n=[{t:4,l:12,sz:2,o:.9,c:"#FFF6DD",tw:!0,d:0},{t:8,l:34,sz:1.5,o:.4,c:"#C9A84C",tw:!1,d:0},{t:6,l:58,sz:2.5,o:.85,c:"#E6CD8C",tw:!0,d:1.2},{t:11,l:80,sz:1.5,o:.5,c:"#FFF6DD",tw:!1,d:0},{t:14,l:22,sz:2,o:.7,c:"#E6CD8C",tw:!0,d:2.1},{t:17,l:68,sz:1.5,o:.35,c:"#C9A84C",tw:!1,d:0},{t:20,l:46,sz:2,o:.6,c:"#FFF6DD",tw:!0,d:.6},{t:24,l:90,sz:1.5,o:.45,c:"#E6CD8C",tw:!1,d:0},{t:30,l:8,sz:2.5,o:.8,c:"#E6CD8C",tw:!0,d:1.7},{t:34,l:38,sz:1.5,o:.3,c:"#C9A84C",tw:!1,d:0},{t:40,l:72,sz:2,o:.65,c:"#FFF6DD",tw:!0,d:2.6},{t:46,l:18,sz:1.5,o:.4,c:"#E6CD8C",tw:!1,d:0},{t:52,l:60,sz:2,o:.55,c:"#C9A84C",tw:!1,d:0},{t:58,l:88,sz:1.5,o:.5,c:"#FFF6DD",tw:!0,d:.9},{t:64,l:30,sz:2,o:.7,c:"#E6CD8C",tw:!1,d:0},{t:70,l:54,sz:1.5,o:.35,c:"#C9A84C",tw:!1,d:0},{t:76,l:78,sz:2,o:.6,c:"#FFF6DD",tw:!0,d:3},{t:82,l:14,sz:1.5,o:.45,c:"#E6CD8C",tw:!1,d:0},{t:88,l:64,sz:2,o:.55,c:"#C9A84C",tw:!1,d:0},{t:94,l:42,sz:1.5,o:.4,c:"#FFF6DD",tw:!1,d:0}],i=[{t:12,l:6,d:0},{t:44,l:30,d:4},{t:72,l:10,d:7}];e.s(["Starfield",0,function(){return(0,t.jsxs)("div",{className:r.default.starfield,"aria-hidden":!0,children:[n.map((e,n)=>(0,t.jsx)("span",{className:`${r.default.star} ${e.tw?r.default.twinkle:""}`,style:{top:`${e.t}%`,left:`${e.l}%`,width:e.sz,height:e.sz,background:e.c,opacity:e.o,animationDelay:`${e.d}s`}},n)),i.map((e,n)=>(0,t.jsx)("span",{className:r.default.shoot,style:{top:`${e.t}%`,left:`${e.l}%`,animationDelay:`${e.d}s`}},`sh${n}`))]})},"default",0,function({children:e,contentClassName:n=""}){return(0,t.jsx)("div",{className:r.default.canvas,children:(0,t.jsx)("div",{className:`${r.default.content} ${n}`,children:e})})}])},815445,e=>{"use strict";let t="thaksa_attr_first",r="thaksa_attr_last",n="thaksa_attr_first";function i(e){if(!e)return null;let t=String(e).trim();return t?t.slice(0,120):null}function o(e){let t=(e??"").toString().trim().toLowerCase();if(!t)return"organic";switch(t){case"line_keyword":case"line_phone_reply":case"line_followreply":case"jupiter":case"daily_push":case"rich_menu":case"horoscope":case"meta":case"organic":case"direct":return t}return t.includes("line_phone")||"phone_reply"===t||t.includes("phone_then")?"line_phone_reply":t.includes("followreply")||t.includes("follow_reply")?"line_followreply":t.includes("keyword")?"line_keyword":t.includes("jupiter")?"jupiter":t.includes("daily_push")||t.includes("daily_hook")||"push"===t||"dailypush"===t?"daily_push":t.includes("rich_menu")||t.includes("richmenu")||t.startsWith("rm_")||t.startsWith("menu_")?"rich_menu":"fb"===t||"facebook"===t||"ig"===t||"instagram"===t||"meta"===t||t.includes("facebook.com")||t.includes("instagram.com")||t.includes("fbclid")?"meta":t.includes("line.me")||"line"===t?"rich_menu":t.includes("horoscope")||"sharecard"===t?"horoscope":(t.includes("google")||t.includes("bing")||t.includes("chatgpt")||t.includes("search"),"organic")}function a(e){if(!e)return"organic";if(e.line_phone_reply)return"line_phone_reply";if(e.line_followreply)return"line_followreply";if(e.line_keyword)return"line_keyword";if(e.jupiter)return"jupiter";if(e.src){let t=o(e.src);if("organic"!==t)return t}if(e.utm_source){let t=o(e.utm_source);if("organic"!==t)return t}if(e.entry_surface){let t=o(e.entry_surface);if("organic"!==t)return t}if(e.referrer_host){let t=o(e.referrer_host);if("organic"!==t)return t}return e.referrer_host?"organic":"direct"}function l(e){return e&&(e.utm_campaign||e.jupiter||e.line_keyword||e.utm_content||e.src)||null}function s(e){try{let r=null;try{r=localStorage.getItem(e)}catch{}if(r||e!==t||(r=function(e){if("u"<typeof document)return null;try{let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null}catch{return null}}(n)),!r)return null;return JSON.parse(r)}catch{return null}}function c(e,r){let i=JSON.stringify(r);try{localStorage.setItem(e,i)}catch{}e===t&&function(e,t){if("u">typeof document)try{document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=31536000; SameSite=Lax`}catch{}}(n,i)}e.s(["captureAttribution",0,function(){try{let e=function(){try{let e=new URL(window.location.href),t=t=>i(e.searchParams.get(t)),r="u">typeof document&&document.referrer?document.referrer:null,n=null;if(r)try{n=new URL(r).host||null}catch{}let o={utm_source:t("utm_source"),utm_medium:t("utm_medium"),utm_campaign:t("utm_campaign"),utm_content:t("utm_content"),src:t("src"),line_keyword:t("line_keyword"),line_phone_reply:t("line_phone_reply"),line_followreply:t("line_followreply"),jupiter:t("jupiter"),referrer:i(r),referrer_host:i(n),entry_path:i(e.pathname),entry_surface:function(e){if(!e||"/"===e)return"home";let t=e.replace(/^\//,"").split("/")[0];return t?t.slice(0,120):"home"}(e.pathname),at:new Date().toISOString()},a=o.utm_source||o.utm_medium||o.utm_campaign||o.utm_content||o.src||o.line_keyword||o.line_phone_reply||o.line_followreply||o.jupiter,l=n&&n===window.location.host;if(!a&&(!n||l))return null;return o}catch{return null}}();if(!e)return;s(t)||c(t,e),c(r,e)}catch{}},"getAttributionPayload",0,function(){try{let e=s(t),n=s(r)??e;if(!e&&!n)return null;return{first_source:a(e),first_campaign:l(e),first_at:e?.at??null,last_source:a(n),last_campaign:l(n),entry_surface:n?.entry_surface??e?.entry_surface??null,referrer_host:n?.referrer_host??e?.referrer_host??null}}catch{return null}}])},37881,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n=new Date().getFullYear(),i=n+543;e.s(["default",0,function({initialIsoDate:e,onValidChange:o,onClear:a,label:l="วันเกิด",helper:s="กรอกเป็น พ.ศ. ได้ เช่น 2520 หรือ ค.ศ. เช่น 1977 ก็ได้",autoFocus:c=!1,disabled:u=!1,hideConfirmation:d=!1,variant:f="dark"}){let p,h="light"===f,g="celestial"===f,y=g?{fieldBg:"var(--cel-panel-alt)",fieldText:"var(--cel-text)",fieldWeight:700,fieldBorder:"var(--cel-border)",fieldBorderErr:"rgba(224,122,95,0.60)",fieldBorderOk:"rgba(95,201,138,0.50)",fieldFocusBorder:"var(--cel-gold)",fieldFocusShadow:"0 0 0 3px rgba(201,168,76,0.16)",labelColor:"var(--cel-text)",helperColor:"var(--cel-muted)",errorColor:"#E07A5F",successColor:"#5FC98A",slashColor:"var(--cel-gold)",clearColor:"var(--cel-gold)",placeholder:"var(--cel-faint)",starColor:"var(--cel-gold)"}:h?{fieldBg:"#FBF6EA",fieldText:"#2C2216",fieldWeight:void 0,fieldBorder:"rgba(160,125,55,0.22)",fieldBorderErr:"rgba(184,80,66,0.55)",fieldBorderOk:"rgba(106,168,131,0.55)",fieldFocusBorder:"#C9A85A",fieldFocusShadow:"0 0 0 3px rgba(201,168,90,0.16)",labelColor:"#2C2216",helperColor:"#7A6B55",errorColor:"#A04438",successColor:"#3F7A5A",slashColor:"rgba(160,125,55,0.6)",clearColor:"#9A7B30",placeholder:"#8A7B65",starColor:"#9A7B30"}:{fieldBg:"rgba(15,12,8,0.78)",fieldText:"var(--cream)",fieldWeight:void 0,fieldBorder:"rgba(201,168,76,0.24)",fieldBorderErr:"rgba(184,80,66,0.5)",fieldBorderOk:"rgba(93,202,165,0.4)",fieldFocusBorder:"rgba(201,168,76,0.7)",fieldFocusShadow:"0 0 0 3px rgba(201,168,76,0.14)",labelColor:"rgba(232,227,216,0.78)",helperColor:"rgba(232,227,216,0.55)",errorColor:"rgba(184,80,66,0.85)",successColor:"rgba(93,202,165,0.85)",slashColor:"rgba(201,168,76,0.4)",clearColor:"rgba(201,168,76,0.7)",placeholder:"rgba(232,227,216,0.35)",starColor:"rgba(201,168,76,0.7)"},[m,b]=(0,r.useState)(null),_=(0,r.useMemo)(()=>
1{if(!e)return{day:"",month:"",yearBe:""};let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(!t)return{day:"",month:"",yearBe:""};let r=parseInt(t[1],10);return{day:t[3],month:t[2],yearBe:String(r+543)}},[e]),[x,C]=(0,r.useState)(_.day),[S,w]=(0,r.useState)(_.month),[k,v]=(0,r.useState)(_.yearBe),[E,A]=(0,r.useState)(!1),[I,T]=(0,r.useState)(e);e!==I&&(T(e),C(_.day),w(_.month),v(_.yearBe));let j=(0,r.useRef)(null),D=(0,r.useRef)(null),F=(0,r.useRef)(null);(0,r.useEffect)(()=>{c&&j.current?.focus()},[c]);let O=(0,r.useMemo)(()=>{var e;let t,r,o,a;if(!x&&!S&&!k||!x||!S||!k)return null;let l=parseInt(x,10),s=parseInt(S,10),c=parseInt(k,10);if(!Number.isFinite(l)||!Number.isFinite(s)||!Number.isFinite(c))return{error:"กรุณากรอกวันเกิดให้ถูกต้อง เช่น 15/08/2520"};if(c>=2400&&c<=i)t=c-543,r=c;else{if(!(c>=1857)||!(c<=n))return{error:"กรุณากรอกปีเกิดเป็น พ.ศ. เช่น 2520"};t=c,r=c+543}if(s<1||s>12)return{error:"กรุณากรอกวันเกิดให้ถูกต้อง เช่น 15/08/2520"};let u=(e=t,s<1||s>12?31:new Date(e,s,0).getDate());return l<1||l>u?{error:"กรุณากรอกวันเกิดให้ถูกต้อง เช่น 15/08/2520"}:(o=new Date(Date.UTC(t,s-1,l)),a=864e5*Math.floor(Date.now()/864e5)+864e5,o.getTime()>a)?{error:"วันเกิดต้องไม่เป็นวันที่ในอนาคต"}:{iso:`${t}-${String(s).padStart(2,"0")}-${String(l).padStart(2,"0")}`,beYear:r}},[x,S,k]);function N(e,t){return e.replace(/\D/g,"").slice(0,t)}(0,r.useEffect)(()=>{O&&"iso"in O&&o?.(O.iso)},[O,o]);let L=E&&O&&"error"in O,R=!!(O&&"iso"in O),B=!!(x||S||k),z=`tbd-${f}`,P=`tbd-style-${f}`;function U(e){let t=m===e,r=t?y.fieldFocusBorder:L?y.fieldBorderErr:R?y.fieldBorderOk:y.fieldBorder;return{flex:1,minWidth:0,height:52,padding:"0 14px",fontSize:17,fontFamily:"'Sarabun', sans-serif",color:y.fieldText,background:y.fieldBg,border:`1px solid ${r}`,borderRadius:12,textAlign:"center",fontWeight:y.fieldWeight,outline:"none",appearance:"textfield",MozAppearance:"textfield",WebkitAppearance:"none",opacity:u?.5:1,boxShadow:t?y.fieldFocusShadow:"none",transition:"border-color 0.15s, box-shadow 0.15s"}}return(0,t.jsxs)("div",{className:z,children:[(0,t.jsx)("style",{id:P,dangerouslySetInnerHTML:{__html:`.${z} input::placeholder { color: ${y.placeholder}; opacity: 1; }`}}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",marginBottom:8,gap:12},children:[(0,t.jsx)("label",{style:{fontSize:13,fontWeight:600,color:y.labelColor},children:g&&/\*\s*$/.test(l)?(0,t.jsxs)(t.Fragment,{children:[l.replace(/\s*\*\s*$/,"")," ",(0,t.jsx)("span",{style:{color:y.starColor},children:"*"})]}):l}),B&&!u&&(0,t.jsx)("button",{type:"button",onClick:function(){C(""),w(""),v(""),A(!1),a?.(),j.current?.focus()},style:{background:"transparent",border:"none",color:y.clearColor,fontSize:12,fontFamily:"inherit",cursor:"pointer",padding:0},children:"ล้างวันเกิด"})]}),(0,t.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},onBlur:()=>A(!0),children:[(0,t.jsx)("input",{ref:j,type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"bday-day","aria-label":"วัน",placeholder:"วว",maxLength:2,disabled:u,value:x,onFocus:()=>b("day"),onBlur:()=>b(e=>"day"===e?null:e),onChange:e=>{let t=N(e.target.value,2);C(t),2===t.length&&D.current?.focus()},onPaste:function(e){let t=e.clipboardData.getData("text").trim(),r=/^(\d{1,2})[/\-. ]?(\d{1,2})[/\-. ]?(\d{4})/.exec(t);r&&(e.preventDefault(),C(r[1].padStart(2,"0")),w(r[2].padStart(2,"0")),v(r[3]),F.current?.focus())},style:{...U("day"),flex:"0 1 70px"}}),(0,t.jsx)("span",{"aria-hidden":!0,style:{color:y.slashColor,fontSize:18},children:"/"}),(0,t.jsx)("input",{ref:D,type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"bday-month","aria-label":"เดือน",placeholder:"ดด",maxLength:2,disabled:u,value:S,onFocus:()=>b("month"),onBlur:()=>b(e=>"month"===e?null:e),onChange:e=>{let t=N(e.target.value,2);w(t),2===t.length&&F.current?.focus()},style:{...U("month"),flex:"0 1 70px"}}),(0,t.jsx)("span",{"aria-hidden":!0,style:{color:y.slashColor,fontSize:18},children:"/"}),(0,t.jsx)("input",{ref:F,type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"bday-year","aria-label":"ปีเกิด (พ.ศ.)",placeholder:"2520",maxLength:4,disabled:u,value:k,onFocus:()=>b("year"),onBlur:()=>b(e=>"year"===e?null:e),onChange:e=>v(N(e.target.value,4)),style:{...U("year"),flex:"1 1 100px"}})]}),L&&O&&"error"in O?(0,t.jsx)("p",{style:{margin:"8px 0 0",fontSize:12.5,color:y.errorColor,lineHeight:1.5},children:O.error}):R&&!d&&O&&"iso"in O?(0,t.jsxs)("p",{style:{margin:"8px 0 0",fontSize:12.5,color:y.successColor,lineHeight:1.5,fontVariantNumeric:"tabular-nums"},children:["ค.ศ. ",O.iso.slice(0,4)," · พ.ศ. ",O.beYear,null!=(p=function(e){let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(!t)return null;let r=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10),o=new Date,a=o.getFullYear()-r;return(o.getMonth()+1<n||o.getMonth()+1===n&&o.getDate()<i)&&(a-=1),a<0?null:a}(O.iso))?` \xb7 อายุ ${p} ปี`:""]}):(0,t.jsx)("p",{style:{margin:"8px 0 0",fontSize:12,color:y.helperColor,lineHeight:1.5},children:s})]})}])},808341,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},479520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},handleClientScriptLoad:function(){return y},initScriptLoader:function(){return m}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(555682),a=e.r(190809),l=e.r(843476),s=o._(e.r(174080)),c=a._(e.r(271645)),u=e.r(742732),d=e.r(922737),f=e.r(808341),p=new Map,h=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:a="",strategy:l="afterInteractive",onError:c,stylesheets:u}=e,f=r||t;if(f&&h.has(f))return;if(p.has(t)){h.add(f),p.get(t).then(n,c);return}let g=()=>{i&&i(),h.add(f)},y=document.createElement("script"),m=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),n&&n.call(this,t),g()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(y.innerHTML=o.__html||"",g()):a?(y.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",g()):t&&(y.src=t,p.set(t,m)),(0,d.setAttributesFromProps)(y,e),"worker"===l&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",l),u&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(y)};function y(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}):g(e)}function m(e){e.forEach(y),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function b(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:a,stylesheets:d,...p}=e,{updateScripts:y,scripts:m,getIsSsr:b,appDir:_,nonce:x}=(0,c.useContext)(u.HeadManagerContext);x=p.nonce||x;let C=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;C.current||(i&&e&&h.has(e)&&i(),C.current=!0)},[i,t,r]);let S=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!S.current){if("afterInteractive"===o)g(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}));S.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(y?(m[o]=(m[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:a,...p,nonce:x}]),y(m)):b&&b()?h.add(t||r):b&&!b()&&g({...e,nonce:x})),_){if(d&&d.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...p,id:t}])})`}});else return s.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:x,crossOrigin:p.crossOrigin}:{as:"script",nonce:x,crossOrigin:p.crossOrigin}),(0,l.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...p,id:t}])})`}});"afterInteractive"===o&&r&&s.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:x,crossOrigin:p.crossOrigin}:{as:"script",nonce:x,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let _=b;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3303,(e,t,r)=>{t.exports=e.r(479520)},482345,e=>{"use strict";let t="thaksa_active_days";function r(e=Date.now()){let t=new Date(e+252e5),n=t.getUTCFullYear(),i=String(t.getUTCMonth()+1).padStart(2,"0"),o=String(t.getUTCDate()).padStart(2,"0");return`${n}-${i}-${o}`}function n(){if("u"<typeof document)return[];let e=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));if(!e)return[];try{let t=JSON.parse(decodeURIComponent(e[1]));return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}}function i(e){return Array.from(new Set(e.filter(e=>/^\d{4}-\d{2}-\d{2}$/.test(e)))).sort((e,t)=>e<t?1:e>t?-1:0).slice(0,14)}function o(){return i([...function(){try{let e=localStorage.getItem(t);if(!e)return[];let r=JSON.parse(e);return Array.isArray(r)?r.filter(e=>"string"==typeof e):[]}catch{return[]}}(),...n()])}function a(e){let r=JSON.stringify(i(e));try{localStorage.setItem(t,r)}catch{}if("u">typeof document){let e="u">typeof location&&"https:"===location.protocol?"; Secure":"";document.cookie=`${t}=${encodeURIComponent(r)}; Max-Age=2592000; Path=/; SameSite=Lax${e}`}}e.s(["bkkYMD",0,r,"getActiveDaysCount",0,function(e=7,t=Date.now()){let n=r(t-(e-1)*864e5);return o().filter(e=>e>=n).length},"recordActiveDay",0,function(e=Date.now()){try{let t=r(e),i=o();if(i[0]===t&&i.includes(t)){n().includes(t)||a(i);return}a([t,...i])}catch{}}])},468676,e=>{"use strict";var t=e.i(247167),r=e.i(482345);let n="false"!==t.default.env.NEXT_PUBLIC_LINE_CAPTURE_INTERNAL_ONLY,i=Math.max(0,Math.min(100,parseInt(t.default.env.NEXT_PUBLIC_LINE_CAPTURE_ROLLOUT_PCT||"0",10)||0)),o="true"===t.default.env.NEXT_PUBLIC_LINE_CAPTURE_LOSSFRAME_AB,a=new Set(["c9f4bc4b-aa8b-4dad-91a1-ff5e05487ac7","7830171a-2b3e-49d1-9c96-644efaa45682"]),l="thaksa_line_capture_cooldown_until",s="thaksa_line_captured",c="thaksa_distress_session",u=new Set(["meta","instagram","ig","facebook"]);function d(e){let{activeDays7:t,source:r}=e;return t>=5?"near_daily_5d":t>=4?"power_4d":t>=2?"returning_2d":r&&u.has(r.toLowerCase().trim())?"meta":"first_timer"}let f={near_daily_5d:{lines:["คุณเช็กดวงกับทักษาร์เกือบทุกวัน 🌙","รับดวงเฉพาะคุณทุกเช้า 07:00 ใน LINE","รู้ก่อนว่าวันนี้ธาตุของคุณเสริมหรือปะทะ"],cta:"รับดวงทุกเช้าใน LINE",secondary:"ไว้ทีหลัง",cooldownDays:7},power_4d:{lines:["คุณมีจังหวะเช็กดวงเป็นประจำ ✨","รับดวงเฉพาะคุณทุกเช้าใน LINE","ไม่ต้องเปิดแอปเองทุกวัน"],cta:"รับดวงทุกเช้าใน LINE",secondary:"ไว้ทีหลัง",cooldownDays:7},returning_2d:{lines:["กลับมาเช็กดวงอีกแล้ว 🙂","อยากให้ทักษาร์ส่งดวงทุกเช้าไหม?","รับฟรีใน LINE ทุก 07:00"],cta:"รับดวงทุกเช้าใน LINE",secondary:"ไว้ก่อน",cooldownDays:5},meta:{lines:["ดวงวันนี้ของคุณพร้อมแล้ว","ให้ทักษาร์จำธาตุประจำตัวคุณไว้ใน LINE","แล้วส่งดวงเฉพาะคุณทุกเช้า 07:00"],urgency:"อย่าปล่อยให้พรุ่งนี้ต้องกลับมาหาเอง",cta:"รับดวงทุกเช้าใน LINE",secondary:"ดูต่อ",cooldownDays:7},first_timer:{lines:["อยากให้พรุ่งนี้ทักษาร์ส่งดวงให้เลยไหม? รับฟรีใน LINE"],cta:"รับดวงพรุ่งนี้",secondary:"",cooldownDays:5,footerOnly:!0}},p=new Set(["ดูต่อ","ไว้ทีหลัง","ไว้ก่อน"]);function h(e){let t=5381,r=e+":line_capture_v1";for(let e=0;e<r.length;e++)t=(t<<5)+t+r.charCodeAt(e)>>>0;return t%100}e.s(["CAPTURE_COOLDOWN_KEY",0,l,"CAPTURE_DONE_KEY",0,s,"DISTRESS_SESSION_KEY",0,c,"LINE_CAPTURE_ADMIN_UIDS",0,a,"LINE_CAPTURE_ENABLED",0,!1,"LINE_CAPTURE_INTERNAL_ONLY",0,n,"LINE_CAPTURE_LOSSFRAME_AB",0,o,"LINE_CAPTURE_ROLLOUT_PCT",0,i,"SEGMENT_COPY",0,f,"captureCohortBucket",0,h,"determineSegment",0,d,"determineSegmentLive",0,function(e){return d({activeDays7:(0,r.getActiveDaysCount)(7),source:e})},"inCaptureCooldown",0,function(e=Date.now()){try{let t=localStorage.getItem(l);if(!t)return!1;let r=Number(t);return Number.isFinite(r)&&r>e}catch{return!1}},"inCaptureRollout",0,function(e){return i>=100||!(i<=0)&&h(e)<i},"isAlreadyCaptured",0,function(){try{return"true"===localStorage.getItem(s)}catch{return!1}},"isDistressSession",0,function(){try{return"true"===sessionStorage.getItem(c)}catch{return!1}},"isInternalUser",0,function(e){if(e&&a.has(e))return!0;try{if("true"===localStorage.getItem("thaksa_internal"))return!0}catch{}return!1},"markCaptured",0,function(){try{localStorage.setItem(s,"true")}catch{}}
1,"markDistressSession",0,function(){try{sessionStorage.setItem(c,"true")}catch{}},"skipLabelFor",0,function(e){let t=f[e].secondary;return o||p.has(t)||""===t?t:"ไว้ทีหลัง"},"writeCaptureCooldown",0,function(e,t=Date.now()){try{localStorage.setItem(l,String(t+24*e*36e5))}catch{}}])},51155,e=>{"use strict";var t=e.i(247167),r=e.i(843476),n=e.i(271645);e.s(["default",0,function({variant:e,fetchCode:i,onLinkedCheck:o,onLinked:a,onContactAdmin:l,onDismiss:s,onPrimaryAction:c,dismissKey:u,forceShowDismiss:d}){let f="practitioner"===e?1:3,p=u??`oracle_line_link_dismissed_${e}`,[h,g]=(0,n.useState)(()=>(function(e){try{let t=window.localStorage.getItem(e);return t?Math.max(0,parseInt(t,10)||0):0}catch{return 0}})(p)),[y,m]=(0,n.useState)(null),[b,_]=(0,n.useState)(null),[x,C]=(0,n.useState)(!0),[S,w]=(0,n.useState)(!1),[k,v]=(0,n.useState)(!1),[E,A]=(0,n.useState)(null),[I,T]=(0,n.useState)(!1),[j,D]=(0,n.useState)(!1),F=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=navigator.userAgent||"",t=/Android|iPhone|iPad|iPod|Mobile|Phone/i.test(e),r=window.matchMedia("(min-width: 768px)").matches;D(!t&&r)},[]);let O=(0,n.useMemo)(()=>{let e=t.default.env.NEXT_PUBLIC_LINE_OA_FRIEND_ID||"@thaksa";return`https://line.me/R/ti/p/${e}`},[]),N=(0,n.useMemo)(()=>`https://api.qrserver.com/v1/create-qr-code/?size=180x180&margin=2&color=E8D48B&bgcolor=14110B&data=${encodeURIComponent(O)}`,[O]);(0,n.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await i();if(e)return;if(!t)return void A("เชื่อมต่อไม่สำเร็จ กรุณาลองอีกครั้ง");m(t.code),_(t.deep_link)}catch{e||A("เชื่อมต่อไม่สำเร็จ กรุณาลองอีกครั้ง")}finally{e||C(!1)}})(),()=>{e=!0}},[i]),(0,n.useEffect)(()=>{if(!y)return;let e=async()=>{try{await o()&&(F.current&&(window.clearInterval(F.current),F.current=null),a())}catch{}};return F.current=window.setInterval(e,4e3),()=>{F.current&&window.clearInterval(F.current),F.current=null}},[y,o,a]);let L=(0,n.useCallback)(()=>{b&&(c?.(),window.location.href=b)},[b,c]),R=(0,n.useCallback)(async()=>{if(y)try{await navigator.clipboard.writeText(y),T(!0),window.setTimeout(()=>T(!1),1500)}catch{}},[y]),B=(0,n.useCallback)(()=>{if(!d&&("user"===e&&h>=f||"practitioner"===e&&h>=f))return;let t=h+1;try{window.localStorage.setItem(p,String(t))}catch{}g(t),s?.()},[h,f,s,p,e,d]),z=(0,n.useCallback)(async()=>{if(l&&!S&&!k){w(!0);try{await l(),v(!0)}catch{A("ส่งคำขอไม่สำเร็จ — ลองใหม่หรือพิมพ์อีเมล [email protected]")}finally{w(!1)}}},[l,S,k]),P="practitioner"===e,U=P?["แจ้งเตือนทันทีเมื่อมีลูกค้าจองเซสชัน","ลิงก์เข้าร่วมห้องประชุมส่งตรงถึง LINE","แจ้งเตือนคำถามด่วนและการแชทสด"]:["แจ้งเมื่ออาจารย์ตอบคำถามของคุณ","รับไพ่ประจำวันและการแจ้งเตือนที่เกี่ยวข้อง","ไม่ต้องกรอกรหัสซ้ำเมื่อเชื่อมต่อสำเร็จ"],M=h<f,$=P&&!M&&!!l;return(0,r.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"line-link-modal-title",style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.78)",display:"flex",alignItems:"center",justifyContent:"center",padding:16,zIndex:9999,fontFamily:"'Sarabun', sans-serif"},children:(0,r.jsxs)("div",{style:{width:"100%",maxWidth:440,background:"linear-gradient(180deg, #1A1510 0%, #0F0C09 100%)",border:"1px solid rgba(201,168,76,0.35)",borderRadius:18,padding:"32px 26px 26px",boxShadow:"0 24px 80px rgba(0,0,0,0.6)",color:"#E8E3D8",position:"relative"},children:[d&&(0,r.jsx)("button",{type:"button","aria-label":"ปิด",onClick:B,style:{position:"absolute",top:10,right:12,width:32,height:32,border:"none",background:"rgba(232,227,216,0.05)",borderRadius:999,color:"rgba(232,227,216,0.7)",fontSize:22,cursor:"pointer",lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(232,227,216,0.12)",e.currentTarget.style.color="#E8E3D8"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(232,227,216,0.05)",e.currentTarget.style.color="rgba(232,227,216,0.7)"},children:"×"}),(0,r.jsx)("div",{style:{fontFamily:"'Cinzel Decorative', serif",fontWeight:700,color:"#C9A84C",fontSize:12,letterSpacing:4,textAlign:"center",marginBottom:6},children:"THAKSA"}),(0,r.jsx)("h2",{id:"line-link-modal-title",style:{fontFamily:"'Cormorant Garamond', serif",fontStyle:"italic",fontSize:24,color:"#E8D48B",textAlign:"center",margin:"0 0 8px",lineHeight:1.25},children:P?"เชื่อมต่อ LINE เพื่อรับแจ้งเตือนจากลูกค้า":"เชื่อมต่อ LINE เพื่อรับการแจ้งเตือนจาก THAKSA"}),(0,r.jsx)("p",{style:{fontSize:13,color:P?"#E89A9A":"rgba(232,227,216,0.7)",textAlign:"center",margin:"0 0 22px",lineHeight:1.6},children:P?"หากไม่เชื่อมต่อ ท่านจะไม่ได้รับแจ้งเตือนเมื่อมีลูกค้าจอง":"ใช้สำหรับแจ้งเตือนคำตอบจากอาจารย์ ไพ่ประจำวัน และสิทธิ์สำคัญของคุณ"}),(0,r.jsx)("ul",{style:{listStyle:"none",padding:0,margin:"0 0 22px",display:"flex",flexDirection:"column",gap:10},children:U.map(e=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"baseline",gap:10,fontSize:13.5,color:"rgba(232,227,216,0.88)",lineHeight:1.55},children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{width:6,height:6,borderRadius:"50%",background:"var(--gold-bright, #E8D48B)",flexShrink:0,transform:"translateY(2px)"}}),(0,r.jsx)("span",{children:e})]},e))}),P&&(0,r.jsxs)("div",{style:{padding:"10px 14px",background:"rgba(11,9,6,0.55)",border:"1px solid rgba(201,168,76,0.18)",borderRadius:10,fontSize:12.5,color:"rgba(232,227,216,0.75)",lineHeight:1.6,marginBottom:18},children:[(0,r.jsx)("strong",{style:{color:"#E8D48B"},children:"ขั้นตอน"}),(0,r.jsxs)("ol",{style:{margin:"4px 0 0",paddingLeft:18},children:[(0,r.jsx)("li",{children:"แตะปุ่มด้านล่าง"}),(0,r.jsx)("li",{children:"กดส่งข้อความใน LINE (รหัสจะถูกกรอกให้แล้ว)"}),(0,r.jsx)("li",{children:"เสร็จสิ้น — ระบบจะเชื่อมต่อให้อัตโนมัติ"})]})]}),(0,r.jsx)("button",{type:"button",onClick:L,disabled:x||!b,style:{width:"100%",padding:"14px 22px",background:x?"rgba(201,168,76,0.35)":j?"transparent":"linear-gradient(135deg, #C9A84C 0%, #E5C56F 100%)",color:j?"var(--gold-bright, #E8D48B)":"#1A1208",border:j?"1px solid rgba(201,168,76,0.4)":"none",borderRadius:12,fontSize:j?13:15,fontWeight:j?600:800,cursor:x?"wait":"pointer",fontFamily:"Sarabun, sans-serif",letterSpacing:.3,boxShadow:j?"none":"0 6px 20px rgba(201,168,76,0.25)"},children:x?"กำลังเตรียมรหัส...":j?"เปิด LINE บนเครื่องนี้":"เชื่อมต่อ LINE"}),E&&(0,r.jsx)("p",{style:{fontSize:12,color:"#E89A9A",textAlign:"center",margin:"10px 0 0"},children:E}),j&&y&&(0,r.jsxs)("div",{style:{marginTop:18,padding:"18px 16px",background:"rgba(11,9,6,0.55)",border:"1px dashed rgba(201,168,76,0.32)",borderRadius:12,textAlign:"center"},children:[(0,r.jsx)("div",{style:{fontSize:11,color:"rgba(232,227,216,0.55)",letterSpacing:1.5,textTransform:"uppercase",marginBottom:10},children:"หรือสแกนด้วย LINE บนมือถือ"}),(0,r.jsx)("img",{src:N,alt:"สแกน QR เพื่อเพิ่มเพื่อน THAKSA ใน LINE",width:180,height:180,style:{display:"block",margin:"0 auto 12px",background:"#14110B",borderRadius:8,border:"1px solid rgba(201,168,76,0.18)"}}),(0,r.jsxs)("ol",{style:{margin:"0 0 12px",paddingLeft:0,listStyle:"none",fontSize:12.5,color:"rgba(232,227,216,0.78)",lineHeight:1.7,textAlign:"left",display:"inline-block",counterReset:"qrstep"},children:[(0,r.jsxs)("li",{style:{counterIncrement:"qrstep"},children:[(0,r.jsx)("strong",{style:{color:"var(--gold-bright, #E8D48B)"},children:"1."})," ","สแกน QR ด้านบนด้วยกล้องโทรศัพท์เพื่อเพิ่มเพื่อน THAKSA"]}),(0,r.jsxs)("li",{style:{counterIncrement:"qrstep"},children:[(0,r.jsx)("strong",{style:{color:"var(--gold-bright, #E8D48B)"},children:"2."})," ","ส่งรหัสด้านล่างในแชท"]}),(0,r.jsxs)("li",{style:{counterIncrement:"qrstep"},children:[(0,r.jsx)("strong",{style:{color:"var(--gold-bright, #E8D48B)"},children:"3."})," ","เสร็จสิ้น — ระบบจะเชื่อมต่อให้อัตโนมัติ"]})]}),(0,r.jsx)("button",{type:"button",onClick:R,style:{display:"block",width:"100%",padding:"10px 14px",background:I?"rgba(93,202,165,0.18)":"rgba(201,168,76,0.12)",border:`1px solid ${I?"rgba(93,202,165,0.5)":"rgba(201,168,76,0.4)"}`,borderRadius:10,color:I?"#5DCAA5":"var(--gold-bright, #E8D48B)",fontFamily:"'Cinzel', serif",fontSize:18,fontWeight:700,letterSpacing:3,cursor:"pointer"},"aria-label":I?"คัดลอกแล้ว":"แตะเพื่อคัดลอกรหัส",children:I?"✓ คัดลอกแล้ว":y})]}),y&&!j&&(0,r.jsxs)("p",{style:{fontSize:11,textAlign:"center",color:"rgba(232,227,216,0.45)",margin:"12px 0 0",letterSpacing:.5},children:["รหัส:"," ",(0,r.jsx)("span",{style:{fontFamily:"Cinzel, serif",color:"rgba(232,227,216,0.7)"},children:y})," ","(อายุ 60 นาที)"]}),(0,r.jsx)("div",{style:{marginTop:20,textAlign:"center"},children:"user"===e?(0,r.jsx)("button",{type:"button",onClick:B,style:{background:"transparent",border:"none",color:"rgba(232,227,216,0.55)",fontSize:13,cursor:"pointer",fontFamily:"Sarabun, sans-serif",padding:"6px 10px"},children:"ไว้ภายหลัง"}):M?(0,r.jsx)("button",{type:"button",onClick:B,style:{background:"transparent",border:"none",color:"rgba(232,227,216,0.5)",fontSize:13,cursor:"pointer",fontFamily:"Sarabun, sans-serif",padding:"6px 10px"},children:"ไว้ทีหลัง (1 ครั้ง)"}):$?k?(0,r.jsx)("p",{style:{fontSize:12.5,color:"#5DCAA5",margin:0,lineHeight:1.7},children:"✓ แอดมินได้รับคำขอแล้ว ทีมงานจะติดต่อท่านในไม่ช้า"}):(0,r.jsx)("button",{type:"button",onClick:z,disabled:S,style:{background:"transparent",border:"none",color:"rgba(232,227,216,0.55)",fontSize:12.5,cursor:S?"wait":"pointer",fontFamily:"Sarabun, sans-serif",textDecoration:"underline",padding:"6px 10px"},children:S?"กำลังส่ง...":"ข้ามขั้นตอนนี้ — ติดต่อแอดมิน"}):null})]})})}])},673654,e=>{"use strict";let t=new Map,r=new Set;
1function n(){r.forEach(e=>{try{e()}catch{}})}e.s(["SHEET_PRIORITY",0,{corridor_popup:100,birthday_capture:50},"claimSheet",0,function(e,r){t.get(e)!==r&&(t.set(e,r),n())},"isBlockedFor",0,function(e){for(let r of t.values())if(r>e)return!0;return!1},"releaseSheet",0,function(e){t.delete(e)&&n()},"subscribeSheets",0,function(e){return r.add(e),()=>{r.delete(e)}}])},301402,e=>{"use strict";let t="thaksa_entry_source";e.s(["captureEntrySource",0,function(){try{let e=new URL(window.location.href).searchParams,r=e.get("source")??e.get("from")??e.get("ref");if(!r&&document.referrer)try{let e=new URL(document.referrer);e.origin===window.location.origin&&e.pathname&&"/ask"!==e.pathname&&(r=`ref:${e.pathname}`)}catch{}if(!r)return;localStorage.setItem(t,JSON.stringify({source:r.slice(0,80),ts:Date.now()}))}catch{}},"clearEntrySource",0,function(){try{localStorage.removeItem(t)}catch{}},"readEntrySource",0,function(){try{let e=localStorage.getItem(t);if(!e)return null;let{source:r,ts:n}=JSON.parse(e);if(!r||"number"!=typeof n||Date.now()-n>72e5)return localStorage.removeItem(t),null;return r}catch{return null}}])},322560,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016),i=e.i(687983);let o="thaksa_consent";function a(){if("u"<typeof document)return null;let e=document.cookie.match(/(?:^|;\s*)thaksa_consent=([^;]+)/);if(!e)return null;try{let t=JSON.parse(decodeURIComponent(e[1]));if("number"!=typeof t.ts)return null;let r="string"==typeof t.version?t.version:"0";if("boolean"==typeof t.analytics&&"boolean"==typeof t.functional)return{necessary:!0,analytics:t.analytics,functional:t.functional,ts:t.ts,version:r};if("accepted"===t.status)return{necessary:!0,analytics:!0,functional:!0,ts:t.ts,version:r};if("rejected"===t.status)return{necessary:!0,analytics:!1,functional:!1,ts:t.ts,version:r};return null}catch{return null}}async function l(e){try{let t=null;try{t=localStorage.getItem("oracle_tool_session_id")}catch{}let r=e.analytics||e.functional?"accepted":"rejected";await fetch("/api/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:r,policy_version:"1",session_id:t,origin_path:window.location.pathname,analytics_consent:e.analytics,functional_consent:e.functional}),keepalive:!0})}catch{}}function s({onAcceptAll:e,onOpenSettings:r}){let{t:o}=(0,i.useTranslation)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{style:{margin:0,fontSize:14,lineHeight:1.7,color:"rgba(232,227,216,0.85)"},children:[o.cookie.compactBody," ",o.cookie.seeDetails," ",(0,t.jsx)(n.default,{href:"/privacy",style:{color:"#E5C56F",textDecoration:"underline"},children:o.cookie.privacyPolicy})," · ",(0,t.jsx)(n.default,{href:"/cookies",style:{color:"#E5C56F",textDecoration:"underline"},children:o.cookie.cookiePolicy}),"."]}),(0,t.jsxs)("div",{style:{marginTop:16,display:"flex",flexWrap:"wrap",gap:10,justifyContent:"flex-end"},children:[(0,t.jsx)("button",{type:"button",onClick:r,style:{flex:"1 1 130px",maxWidth:200,minHeight:44,padding:"10px 18px",background:"transparent",color:"rgba(232,227,216,0.9)",fontWeight:600,fontSize:14,fontFamily:"inherit",border:"1px solid rgba(232,227,216,0.45)",borderRadius:11,cursor:"pointer"},children:o.cookie.settings}),(0,t.jsx)("button",{type:"button",onClick:e,style:{flex:"1 1 130px",maxWidth:200,minHeight:44,padding:"10px 18px",background:"linear-gradient(135deg, #C9A84C 0%, #E5C56F 100%)",color:"#1A1208",fontWeight:700,fontSize:14,fontFamily:"inherit",border:"none",borderRadius:11,cursor:"pointer"},children:o.cookie.acceptAll})]})]})}function c({panelRef:e,analytics:r,functional:n,onChangeAnalytics:o,onChangeFunctional:a,onSave:l,onRejectAll:s}){let{t:d}=(0,i.useTranslation)();return(0,t.jsxs)("div",{ref:e,style:{animation:"cc-panel-expand 0.28s cubic-bezier(0.22, 1, 0.36, 1)"},children:[(0,t.jsx)("h2",{style:{fontFamily:'"Cormorant Garamond", serif',fontStyle:"italic",fontWeight:600,fontSize:22,color:"#F0E8D0",margin:"0 0 14px",lineHeight:1.2},children:d.cookie.panelTitle}),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxHeight:"min(54vh, 380px)",overflowY:"auto",paddingRight:4},children:[(0,t.jsx)(u,{title:d.cookie.necessary,description:d.cookie.necessaryDesc,badge:d.cookie.necessaryBadge,checked:!0,disabled:!0,onChange:()=>{}}),(0,t.jsx)(u,{title:d.cookie.analytics,description:d.cookie.analyticsDesc,checked:r,onChange:o}),(0,t.jsx)(u,{title:d.cookie.functional,description:d.cookie.functionalDesc,checked:n,onChange:a})]}),(0,t.jsxs)("div",{style:{marginTop:18,display:"flex",flexDirection:"column",gap:10},children:[(0,t.jsx)("button",{type:"button",onClick:l,style:{width:"100%",minHeight:46,padding:"12px 18px",background:"linear-gradient(135deg, #C9A84C 0%, #E5C56F 100%)",color:"#1A1208",fontWeight:700,fontSize:14,fontFamily:"inherit",border:"none",borderRadius:12,cursor:"pointer",letterSpacing:.3},children:d.cookie.saveSettings}),(0,t.jsx)("button",{type:"button",onClick:s,style:{background:"transparent",color:"rgba(232,227,216,0.55)",fontSize:12.5,fontFamily:"inherit",border:"none",padding:"6px 0",cursor:"pointer",textDecoration:"underline",alignSelf:"center"},children:d.cookie.rejectAll})]})]})}function u({title:e,description:r,badge:n,checked:i,disabled:o,onChange:a}){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",ga
1p:14,padding:"14px 14px",background:o?"rgba(201,168,76,0.05)":"rgba(20,17,11,0.55)",border:`1px solid ${o?"rgba(201,168,76,0.18)":"rgba(201,168,76,0.28)"}`,borderRadius:12},children:[(0,t.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,t.jsxs)("p",{style:{margin:"0 0 4px",fontSize:14,fontWeight:700,color:o?"rgba(232,227,216,0.55)":"#F0E8D0",letterSpacing:.2},children:[e,o&&n&&(0,t.jsx)("span",{style:{marginLeft:8,fontSize:10,fontWeight:600,letterSpacing:1.5,color:"rgba(201,168,76,0.65)",textTransform:"uppercase"},children:n})]}),(0,t.jsx)("p",{style:{margin:0,fontSize:12.5,lineHeight:1.6,color:"rgba(232,227,216,0.65)"},children:r})]}),(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":i,"aria-label":e,disabled:o,onClick:()=>!o&&a(!i),style:{flexShrink:0,width:44,height:26,background:o?"rgba(201,168,76,0.18)":i?"linear-gradient(135deg, #C9A84C 0%, #E5C56F 100%)":"rgba(232,227,216,0.18)",border:"1px solid rgba(11,9,6,0.55)",borderRadius:999,padding:0,position:"relative",cursor:o?"not-allowed":"pointer",opacity:o?.7:1,transition:"background 0.2s ease"},children:(0,t.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",top:2,left:i?20:2,width:20,height:20,background:"#FFFFFF",borderRadius:"50%",boxShadow:"0 2px 6px rgba(0,0,0,0.35)",transition:"left 0.2s cubic-bezier(0.22, 1, 0.36, 1)"}})})]})}e.s(["default",0,function(){let{t:e}=(0,i.useTranslation)(),[n,u]=(0,r.useState)(null),[d,f]=(0,r.useState)("compact"),[p,h]=(0,r.useState)(!0),[g,y]=(0,r.useState)(!0),m=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=a();e&&"1"===e.version?u(!1):u(!0)},[]),(0,r.useEffect)(()=>{let e=()=>{let e=a();e?(h(e.analytics),y(e.functional)):(h(!0),y(!0)),f("settings"),u(!0)};return window.addEventListener("thaksa:consent-reopen",e),()=>window.removeEventListener("thaksa:consent-reopen",e)},[]);let b=(0,r.useCallback)(e=>{let t={necessary:!0,analytics:e.analytics,functional:e.functional,ts:Date.now(),version:"1"};!function(e){if("u"<typeof document)return;let t=encodeURIComponent(JSON.stringify(e)),r="https:"===window.location.protocol;document.cookie=`${o}=${t}; max-age=31536000; path=/; SameSite=Lax${r?"; Secure":""}`;try{localStorage.setItem(o,JSON.stringify(e))}catch{}try{window.dispatchEvent(new CustomEvent("thaksa:consent-changed",{detail:e}))}catch{}}(t),l(t),u(!1),f("compact")},[]);return!0!==n?null:(0,t.jsxs)("div",{role:"dialog","aria-label":e.cookie.a11yDialog,className:"thaksa-cookie-banner",style:{position:"fixed",left:12,right:12,zIndex:9999,maxWidth:620,margin:"0 auto",padding:"20px 22px",background:"linear-gradient(180deg, #1A1510 0%, #0B0906 100%)",border:"1px solid rgba(201,168,76,0.45)",borderRadius:18,boxShadow:"0 24px 64px rgba(0,0,0,0.55)",color:"#E8E3D8",fontFamily:'"Sarabun", system-ui, sans-serif',backdropFilter:"blur(8px)",animation:"cc-slide-up 0.32s cubic-bezier(0.22, 1, 0.36, 1)"},children:[(0,t.jsx)("style",{children:`
2        .thaksa-cookie-banner { bottom: 12px; }
3        /* On the mobile app-shell the BottomNav (~77px) lives at bottom:0; lift the banner clear of it
4           (measured nav height + gap) so consent can NEVER cover navigation. Desktop keeps bottom:12. */
5        @media (max-width: 540px) { .thaksa-cookie-banner { bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; } }
6        @keyframes cc-slide-up {
7          from { transform: translateY(16px); opacity: 0; }
8          to   { transform: translateY(0);    opacity: 1; }
9        }
10        @keyframes cc-panel-expand {
11          from { transform: translateY(-6px); opacity: 0; }
12          to   { transform: translateY(0);    opacity: 1; }
13        }
14      `}),(0,t.jsx)("p",{style:{fontFamily:'"Cinzel", serif',fontSize:11,letterSpacing:3.5,color:"#C9A84C",textTransform:"uppercase",margin:"0 0 6px",fontWeight:700},children:e.cookie.eyebrow}),"compact"===d?(0,t.jsx)(s,{onAcceptAll:()=>b({analytics:!0,functional:!0}),onOpenSettings:()=>f("settings")}):(0,t.jsx)(c,{panelRef:m,analytics:p,functional:g,onChangeAnalytics:h,onChangeFunctional:y,onSave:()=>b({analytics:p,functional:g}),onRejectAll:()=>b({analytics:!1,functional:!1})})]})},"readConsent",0,a,"reopenCookieBanner",0,function(){window.dispatchEvent(new CustomEvent("thaksa:consent-reopen"))}])},986958,e=>{e.v(t=>Promise.all(["static/chunks/0lurl7mut46bf.js","static/chunks/02zqq4o5la-x6.js"].map(t=>e.l(t))).then(()=>t(802517)))}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.