import{d as c,c as t,e,g as d,f as a,E as r,k as i,Y as _,o as s,c9 as u,a1 as v}from"./index-d63aee15.js";const h={key:0},m={key:0,class:"loading-overlay"},p={class:"loading-overlay"},y={class:"flex flex-col justify-center items-center"},f={key:0,class:"percentRun"},g=e("span",{class:"text-[#f2d638] text-[1rem]"},"ระบบกำลังคำนวณเกมแตก...",-1),k=e("div",{class:"loaderBar"},null,-1),x={key:1},L={key:0},V={key:0,class:"loader-article"},B=e("div",null,null,-1),N=e("div",null,null,-1),j=e("div",null,null,-1),A=e("div",null,null,-1),C=e("div",null,null,-1),E=[B,N,j,A,C],R={key:1},T={key:0,class:"loading-overlay"},w=e("div",{class:"flex flex-col justify-center items-center space-y-7"},[e("div",{class:"loader"},[e("div"),e("div"),e("div"),e("div"),e("div"),e("div"),e("div")]),e("span",{class:"loaderText"},"Loading")],-1),S=[w],q=c({__name:"LoaderView",props:{isLoading:{type:Boolean,default:!1},type:{default:""}},setup(l){const n=_(),o=l;return(Y,$)=>["gamehits","allgame"].includes(o.type)?(s(),t("div",h,[o.isLoading?(s(),t("div",m,[e("div",p,[e("div",y,[d(u),o.type==="gamehits"?(s(),t("div",f,[d(a(v),{ref:"counter",startAmount:0,endAmount:100,duration:2.4,separator:",",decimalSeparator:".",decimals:0,autoinit:!0},null,512),r("% ")])):i("",!0),g,k])])])):i("",!0)])):(s(),t("div",x,[a(n).name==="article"||a(n).name==="article-current"||a(n).name==="article-tag"?(s(),t("div",L,[o.isLoading?(s(),t("div",V,E)):i("",!0)])):(s(),t("div",R,[o.isLoading?(s(),t("div",T,S)):i("",!0)]))]))}});export{q as _};