1import{o as M,A as B,v as E,x as h,j as o,L as G,Q as T,q as i,f as l,F as b,l as y,G as V,p as q,B as v,I as x,y as D,b as n,a as w}from"./@vue-4474Gfnj.js";import{l as F,u as I}from"./@inertiajs-7zqq8wgj.js";import N from"./Master-BOBRmBdH.js";import"./qs-C7saBnVC.js";import"./side-channel-BLCytySV.js";import"./es-errors-B3qLL4WI.js";import"./object-inspect--bXPCECa.js";import"./side-channel-list-BCZJqq54.js";import"./side-channel-map-D4vBmt7j.js";import"./get-intrinsic-DvtG1oIa.js";import"./es-object-atoms-BR76m4z7.js";import"./math-intrinsics-DP1tGiab.js";import"./gopd-C1lCZ5Qs.js";import"./es-define-property-D_7cP-M3.js";import"./has-symbols-BaUvM3gb.js";import"./get-proto-MZ3MALak.js";import"./dunder-proto-C6VzgWTX.js";import"./call-bind-apply-helpers-C9UlVOU4.js";import"./function-bind-CHqF18-c.js";import"./hasown-DwiY0sux.js";import"./call-bound-B0s5y60d.js";import"./side-channel-weakmap-Kf8cPeRJ.js";import"./axios-DjWHqwoD.js";import"./lodash-es-DY0-vtN4.js";import"./laravel-precognition-BqdyoEeO.js";import"./Header-ChQX1VyR.js";import"./app-BkTqMVaL.js";import"./laravel-vite-plugin-DEL3ZhID.js";import"./@iconify-DROonR5K.js";import"./vue-fast-marquee-CkwowO8X.js";import"./InfoMarq-ch0ch5gJ.js";import"./Footer-BV2EOnwA.js";/* empty css */const P={class:"flex gap-2 container mx-auto"},S={class:"w-1/4"},U={class:"red-box-cus container mx-auto p-4"},$={class:"card search-form"},j={class:"inline-table mb-3 w-full"},z={class:""},O=["onClick"],Q={class:"text-black"},H={class:"w-3/4"},J={class:"red-box-cus container mx-auto p-4"},K={class:"grid grid-cols-4 gap-4"},R=["data-category","data-name"],W={class:"text-center"},Te={__name:"Ide-rule",setup(X){const _=I(),f=n(()=>_.props.providers??[]),m=n(()=>_.props.idntradeGames??{games:[]}),c=w("idnarcade"),d=w(""),g=n(()=>{const t=[];return Array.isArray(f.value)&&f.value.forEach(a=>{Array.isArray(a.games)&&a.games.forEach(r=>{const e=(r.img||"").split(",");t.push({...r,category:"idnarcade",image:e})})}),m.value&&Array.isArray(m.value.games)&&m.value.games.forEach(a=>{const r=(a.img||"").split(",");t.push({...a,category:"idntrade",image:r})}),t}),p=n(()=>Array.from(new Set(g.value.map(t=>t.category)))),k=n(()=>{const t=d.value.toLowerCase();return g.value.filter(a=>{const r=(a.name||"").toLowerCase();return(a.category||"").toLowerCase()===(c.value||"").toLowerCase()&&r.indexOf(t)>=0})});M(()=>{p.value.length&&(c.value=p.value[0])});function A(t){c.value=t}function C(t,a){var s;const r=t.currentTarget,e=((s=a.image)==null?void 0:s[1])??"";e&&(r.src=e)}function L(t,a){var s;const r=t.currentTarget,e=((s=a.image)==null?void 0:s[0])??"";e&&(r.src=e)}return(t,a)=>{const r=B("image-component");return i(),E(N,{title:"Arcade"},{default:h(()=>[o("div",P,[o("div",S,[o("div",U,[o("div",$,[o("div",j,[G(o("input",{"onUpdate:modelValue":a[0]||(a[0]=e=>d.value=e),type:"text",placeholder:"Cari...",id:"search",name:"search",class:"rounded w-full bg-black placeholder-white text-white border border-black focus:border-black focus:ring-0 outline-none"},null,512),[[T,d.value]])])]),o("div",z,[(i(!0),l(b,null,y(p.value,e=>(i(),l("div",{class:q(["tabtab flex w-full bg-white mb-3 px-3 py-1 rounded cursor-pointer hover:bg-blue-600",["nav-link","btn-provider","uppercase",{active:c.value===e}]]),key:e,onClick:V(s=>A(e),["prevent"])},[v(r,{"image-src":"/assets/images/sidebar/idnarcade.png",alt:e,class:"w-4 h-4 my-auto mr-2"},null,8,["alt"]),o("span",Q,x(e),1)],10,O))),128))])])]),o("div",H,[o("div",J,[o("div",K,[(i(!0),l(b,null,y(k.value,(e,s)=>(i(),l("div",{key:s,class:"our-games games","data-category":e.category,"data-name":e.name},[v(D(F),{href:t.route("register"),class:"block text-link text-center"},{default:h(()=>[v(r,{"image-src":e.image[0],alt:e.name,"min-height":214,class:"the-game arcade_img rounded",onMouseenter:u=>C(u,e),onMouseleave:u=>L(u,e)},null,8,["image-src","alt","onMouseenter","onMouseleave"]),o("span",W,x(e.name?e.name.charAt(0).toUpperCase()+e.name.slice(1):""),1)]),_:2},1032,["href"])],8,R))),128))])])])])]),_:1})}}};export{Te 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.