PageSourceSearch

https://megatix.in.th/_nuxt/DqGiuMgu.js

js megatix.in.th collected 2026-10-03 20:24:33 UTC 4,710 bytes, 1 lines download raw bytes

1import{ar as y,ad as S,ae as w,i as f,aR as M,d as C,Z as x,c as v,_ as B,a as F,o as P,r as R,e as q,f as z,n as H}from"./B9gSLCn8.js";import j from"./DF9aK1HX.js";function O(t={}){var d;const e=f(""),n=f(t.politeness||"polite"),o=M();function s(a="",p="polite"){e.value=a,n.value=p}function l(a){return s(a,"polite")}function i(a){return s(a,"assertive")}function r(){var a;s((a=document==null?void 0:document.title)==null?void 0:a.trim(),n.value)}function c(){var a;(a=o==null?void 0:o.hooks)==null||a.removeHook("dom:rendered",r)}return r(),(d=o==null?void 0:o.hooks)==null||d.hook("dom:rendered",()=>{r()}),{_cleanup:c,message:e,politeness:n,set:s,polite:l,assertive:i}}function V(t={}){const e=y(),n=e._routeAnnouncer=e._routeAnnouncer||O(t);return t.politeness!==n.politeness.value&&(n.politeness.value=t.politeness||"polite"),S()&&(e._routeAnnouncerDeps=e._routeAnnouncerDeps||0,e._routeAnnouncerDeps++,w(()=>{e._routeAnnouncerDeps--,e._routeAnnouncerDeps===0&&(n._cleanup(),delete e._routeAnnouncer)})),n}const U=C({name:"NuxtRouteAnnouncer",props:{atomic:{type:Boolean,default:!1},politeness:{type:String,default:"polite"}},setup(t,{slots:e,expose:n}){const{set:o,polite:s,assertive:l,message:i,politeness:r}=V({politeness:t.politeness});return n({set:o,polite:s,assertive:l,message:i,politeness:r}),()=>x("span",{class:"nuxt-route-announcer",style:{position:"absolute"}},x("span",{role:"alert","aria-live":r.value,"aria-atomic":t.atomic,style:{border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",width:"1px",overflow:"hidden",position:"absolute","white-space":"nowrap","word-wrap":"normal",margin:"-1px",padding:"0"}},e.default?e.default({message:i.value}):i.value))}});function W(t,e){const n=e/t*100;return 2/Math.PI*100*Math.atan(n/50)}function X(t={}){const{duration:e=2e3,throttle:n=200,hideDelay:o=500,resetDelay:s=400}=t,l=t.estimatedProgress||W,i=y(),r=f(0),c=f(!1),d=f(!1);let a=!1,p,k,A,b;const I=()=>{d.value=!1,D(0)};function D(u=0){if(!i.isHydrating){if(u>=100)return m();g(),r.value=u<0?0:u,n?k=setTimeout(()=>{c.value=!0,T()},n):(c.value=!0,T())}}function N(){A=setTimeout(()=>{c.value=!1,b=setTimeout(()=>{r.value=0},s)},o)}function m(u={}){r.value=100,a=!0,g(),$(),u.error&&(d.value=!0),u.force?(r.value=0,c.value=!1):N()}function $(){clearTimeout(A),clearTimeout(b)}function g(){clearTimeout(k),cancelAnimationFrame(p)}function T(){a=!1;let u;function _(h){if(a)return;u??(u=h);const E=h-u;r.value=Math.max(0,Math.min(100,l(e,E))),p=requestAnimationFrame(_)}p=requestAnimationFrame(_)}let L=()=>{};{const u=i.hook("page:loading:start",()=>{I()}),_=i.hook("page:loading:end",()=>{m()}),h=i.hook("vue:error",()=>m());L=()=>{h(),u(),_(),g()}}return{_cleanup:L,progress:v(()=>r.value),isLoading:v(()=>c.value),error:v(()=>d.value),start:I,set:D,finish:m,clear:g}}function Z(t={}){const e=y(),n=e._loadingIndicator=e._loadingIndicator||X(t);return S()&&(e._loadingIndicatorDeps=e._loadingIndicatorDeps||0,e._loadingIndicatorDeps++,w(()=>{e._loadingIndicatorDeps--,e._loadingIndicatorDeps===0&&(n._cleanup(),delete e._loadingIndicator)})),n}const Y=C({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(t,{slots:e,expose:n}){const{progress:o,isLoading:s,error:l,start:i,finish:r,clear:c}=Z({duration:t.duration,throttle:t.throttle,estimatedProgress:t.estimatedProgress});return n({progress:o,isLoading:s,error:l,start:i,finish:r,clear:c}),()=>x("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${t.height}px`,opacity:s.value?1:0,background:l.value?t.errorColor:t.color||void 0,backgroundSize:`${100/o.value*100}% auto`,transform:`scaleX(${o.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},e)}}),G={name:"TopMenuItem",props:{customClasses:{type:String,default:""},target:{type:String,optional:!0}},computed:{isExternalLink(){return this.target==="_blank"}}};function J(t,e,n,o,s,l){const i=j;return P(),F("div",{class:H(["flex h-full min-h-[72px] flex-row items-center justify-center text-btn-md font-medium transition-all hover:cursor-pointer hover:text-ink-subtle active:text-brand",n.customClasses])},[R(t.$slots,"default"),l.isExternalLink?(P(),q(i,{key:0,name:"ri:arrow-right-up-line",class:"ml-0.5 text-btn-md"})):z("",!0)],2)}const ee=B(G,[["render",J]]);export{ee as _,Y as a,U as b};

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.