1import{o as S}from"./i-2v5t-7.js";import{K as N,U as e,Yt as A,_ as v,b as f,et as D,f as h,j as $,kt as B,mt as y,ot as I,tt as j,v as t,w as c,x as o,xt as i,y as K}from"./CqKXbs0j.js";import{t as V}from"./Cya5BZAJ.js";import{t as F}from"./BRFo9jMM.js";import{t as G}from"#entry";import{t as L}from"./hqpPcfhH.js";import{n as z}from"./BSzgeOnm.js";import{t as E}from"./B6pdNbj0.js";import J from"./pnF5Tp1T.js";import M from"./CwkCT2Eu.js";import{t as O}from"./DrN3MhpO.js";I(),$();B();var T={class:"mt-4 relative"},U={class:"flex items-center gap-1"},Y={class:"relative"},q={key:0,class:"grid lg:grid-cols-5 grid-cols-2 lg:gap-4 gap-3 mt-2"},H={class:"title"},Q={key:0,class:"absolute top-0 left-0 flex items-center justify-center w-full h-full bg-black bg-opacity-65 rounded-lg z-10"},R={class:"flex flex-col items-center text-primaryColor"},W={key:1,class:"bg-black bg-gradient-to-t from-[var(--gradientFromMenu)] to-black p-8 text-center rounded-xl mt-2 text-gray-200 italic text-lg uppercase font-semibold"},X={key:0,class:"mt-6"},Z={__name:"SportsContainer",async setup(ee){let n,d;const{$apiNoToken:x}=S(),{getCachedData:b}=F(),_=y(1),g=y(12),{data:p,refresh:k}=([n,d]=D(async()=>V("sports",()=>O("[sports] items",async()=>{const l={"types[]":"sport","categories[]":"hot",page:_.value,per_page:g.value},a=`sports-${JSON.stringify(l)}`,r=await b(a,async()=>(await x.get("/api/games",{params:l})).data.data);return{items:r.data,current_page:r.current_page,last_page:r.last_page,per_page:r.per_page}},{items:[],current_page:1,last_page:1,per_page:g.value}))),n=await n,d(),n),m=v(()=>p.value?.items??[]),u=v(()=>({current_page:p.value?.current_page??_.value,last_page:p.value?.last_page??1,per_page:p.value?.per_page??g.value})),w=async(l=1)=>{_.value=l,await k()};return(l,a)=>{const r=L,C=z;return e(),o(h,null,[t("div",T,[t("div",U,[c(r,{src:"/images/menu-icon/sport.webp",alt:"Sport+",title:"Sport+",width:"35",height:"35"}),a[0]||(a[0]=t("h2",{class:"font-bold text-2xl text-white italic uppercase"}," Sport+ ",-1))]),t("div",Y,[i(m).length>0?(e(),o("div",q,[(e(!0),o(h,null,N(i(m),(s,P)=>(e(),K(C,{class:"sport-content relative block",key:P,game:s,type:"sport"},{default:j(()=>[c(J,{src:s.image_source,alt:s.provider_image_alt,title:s.provider_image_alt,width:200,height:200,"wrapper-class":"relative game-img overflow-hidden rounded-lg bg-gray-700/80","img-class":"w-full h-full object-cover game-img rounded-lg"},null,8,["src","alt","title"]),t("span",H,A(s.name),1),s.is_maintenance==1?(e(),o("div",Q,[t("div",R,[c(i(E),{icon:"icon-park-twotone:setting-two",width:"35",height:"35"}),a[1]||(a[1]=t("span",{class:"text-xs bg-primaryColor text-black px-2 py-0.5 rounded-sm mt-2"}," Perbaikan ",-1))])])):f("",!0)]),_:2},1032,["game"]))),128))])):(e(),o("div",W," Data Sport+ Kosong "))])]),i(m).length>0?(e(),o("div",X,[c(M,{currentPage:i(u).current_page,lastPage:i(u).last_page,onPageChange:w},null,8,["currentPage","lastPage"])])):f("",!0)],64)}}},ge=G(Z,[["__scopeId","data-v-6ac8079f"]]);export{ge as default};
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.