1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BO8pYaBo.js","./DeuaKw_g.js","./KeL03D-p.js","./entry.DH7Xp8Xu.css","./aotdg8dR.js","./PcVideoItem.CpYY5d2h.css","./ImageGridList.V0XQ2Xzm.css","./BqbA_Fqw.js","./ArcadeIntro.Cg3lMUd0.css","./B8t7R_cP.js","./CasualIntro.Sea7Xo4D.css","./iTl2IeEa.js","./PuzzleIntro.CC4tojFU.css","./SU9R3BZz.js","./Match3Intro.Ci-TwEIh.css","./Bz0sk8n8.js","./SportsIntro.D6Hzh3_Z.css","./Hgac1p6V.js","./SkillIntro.IJ5j-tww.css","./DoMTp7-p.js","./StickmanIntro.CH2YYIR0.css","./CsFF9EEa.js","./RacingIntro.SWYi5l5I.css","./D2Y068Cy.js","./IdleIntro.45cL5aoP.css","./w9Of2WAT.js","./BrainIntro.DuYUG4bg.css","./BQqeCip4.js","./ShootingIntro.D1yvgCxj.css","./C8BoLS0H.js","./IoIntro.C69gHi1n.css","./BxYaH8IX.js","./MusicIntro.hXvwaipk.css","./CABZVkXd.js","./StrategyIntro.BcnkAi7J.css","./D-hqyFdq.js","./TowerDefenseIntro.BJJ0Cgnn.css","./K8XyqkKQ.js","./ObbyIntro.N9XWGAWn.css","./D8dJBTOI.js","./BoardIntro.C6MDVpba.css","./aMsdBEZP.js","./DressUpIntro.CDOhLsNh.css","./Cdq31uT_.js","./SprunkiIntro.BFhixs4_.css"])))=>i.map(i=>d[i]); 2import{_ as J,u as K,r as i,A as L,J as F,K as Q,L as W,b as O,M as q,c as X,o as Y,N as Z,O as ee,P as te,Q as ae,R as oe,S as re,d as A,e as k,g as n,H as se,h as c,f as w,t as ie,I as ne,D as ce,k as e,m as t,j as p,T as _e}from"./KeL03D-p.js";import me from"./DeuaKw_g.js";import{u as le}from"./Dg5rFlO7.js";import"./aotdg8dR.js";const ue={class:"categoryContainer"},de={key:0,class:"category-ad-container"},pe={key:0,class:"category-ad-game"},ge={class:"namePanel"},ve={class:"nameBox"},ye={class:"categoryName"},Ee={class:"gameListContainer"},fe={class:"gridContainer"},Ae={__name:"[...id]",async setup(Ie){let r,u;const $=e(()=>t(()=>import("./BO8pYaBo.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),{t:I,locale:T}=K(),N=["new","arcade","puzzle","casual","sprunki","match3","racing","sport","stickman","skill-games","brain","idle","io","music","shooting","obby","dress-up","board","strategy","tower-defense"],C={arcade:e(()=>t(()=>import("./BqbA_Fqw.js"),__vite__mapDeps([7,2,3,8]),import.meta.url)),casual:e(()=>t(()=>import("./B8t7R_cP.js"),__vite__mapDeps([9,2,3,10]),import.meta.url)),puzzle:e(()=>t(()=>import("./iTl2IeEa.js"),__vite__mapDeps([11,2,3,12]),import.meta.url)),match3:e(()=>t(()=>import("./SU9R3BZz.js"),__vite__mapDeps([13,2,3,14]),import.meta.url)),sport:e(()=>t(()=>import("./Bz0sk8n8.js"),__vite__mapDeps([15,2,3,16]),import.meta.url)),"skill-games":e(()=>t(()=>import("./Hgac1p6V.js"),__vite__mapDeps([17,2,3,18]),import.meta.url)),stickman:e(()=>t(()=>import("./DoMTp7-p.js"),__vite__mapDeps([19,2,3,20]),import.meta.url)),racing:e(()=>t(()=>import("./CsFF9EEa.js"),__vite__mapDeps([21,2,3,22]),import.meta.url)),idle:e(()=>t(()=>import("./D2Y068Cy.js"),__vite__mapDeps([23,2,3,24]),import.meta.url)),brain:e(()=>t(()=>import("./w9Of2WAT.js"),__vite__mapDeps([25,2,3,26]),import.meta.url)),shooting:e(()=>t(()=>import("./BQqeCip4.js"),__vite__mapDeps([27,2,3,28]),import.meta.url)),io:e(()=>t(()=>import("./C8BoLS0H.js"),__vite__mapDeps([29,2,3,30]),import.meta.url)),music:e(()=>t(()=>import("./BxYaH8IX.js"),__vite__mapDeps([31,2,3,32]),import.meta.url)),strategy:e(()=>t(()=>import("./CABZVkXd.js"),__vite__mapDeps([33,2,3,34]),import.meta.url)),"tower-defense":e(()=>t(()=>import("./D-hqyFdq.js"),__vite__mapDeps([35,2,3,36]),import.meta.url)),obby:e(()=>t(()=>import("./K8XyqkKQ.js"),__vite__mapDeps([37,2,3,38]),import.meta.url)),board:e(()=>t(()=>import("./D8dJBTOI.js"),__vite__mapDeps([39,2,3,40]),import.meta.url)),dressUp:e(()=>t(()=>import("./aMsdBEZP.js"),__vite__mapDeps([41,2,3,42]),import.meta.url)),sprunki:e(()=>t(()=>import("./Cdq31uT_.js"),__vite__mapDeps([43,2,3,44]),import.meta.url))},h=i(!1),S=i(!1),x=L(()=>C[a.value]||e(()=>t(()=>import("./iTl2IeEa.js"),__vite__mapDeps([11,2,3,12]),import.meta.url))),M=F(),a=L(()=>{const o=M.params.id;return Array.isArray(o)?o[0]||"":o||""});if(!N.includes(a.value))throw Q({statusCode:404,statusMessage:"Category Not Found"});const g=a.value.replace(/-/g," ").replace(/\b\w/g,o=>o.toUpperCase());W(o=>{o.params.key!==a.value&&(_e(()=>{setTimeout(()=>{window.scrollTo(0,0)},500)}),a.value=o.params.key)});const{data:d,pending:Te,error:he}=([r,u]=O(()=>le()),r=await r,u(),r),m=i(d.value.domain),l=i(d.value.platformName),D=i(d.value.isSupportAds),{$eventBus:B}=q(),v=I("categoryTitle",{categoryName:g,platformName:l.value}),y=I("categoryDescription",{categoryName:g,platformName:l.value});X({title:v,link:[{rel:"canonical",href:`https://${m.value}/${T.value==="en"?"":T.value+"/"}category/${a.value}`}],meta:[{name:"description",content:y},{property:"og:title",content:v},{property:"og:description",content:y},{property:"og:image",content:"https://image.pkgames.org/gameIcon/sprunki.webp"},{property:"og:url",content:`https://${m.value}/category/${a.value}`},{property:"og:type",content:"website"},{property:"og:site_name",content:l.value},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:v},{name:"twitter:description",content:y},{name:"twitter:image",content:"https://image.pkgames.org/gameIcon/sprunki.webp"},{name:"twitter:site",content:`https://${m.value}/category/${a.value}`},{name:"twitter:creator",content:l.value}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",url:`https://${m.value}`,headline:`${g} Games - ${l.value}`,potentialAction:{"@type":"SearchAction",target:`https://${m.value}/category/${a.value}`}})}]});const G=i(d.value.menuItems),{data:H}=([r,u]=O(()=>ce("categoryGames",()=>a.value?$fetch(`/api/categoryGames/${encodeURIComponent(a.value)}`):(console.error("Category is missing"),[]),{ssr:!0,watch:[a]})),r=await r,u(),r),b=i(null),z=o=>{B.emit("updateSelect",o)};Y(()=>{Z(),ee(),te(),gtag("event","page_load",{event_category:"category",event_label:`${a.value}`});const o=G.value.findIndex(s=>s.text===a.value);if(z(o),!D.value)return;const _=`category_${a.value}`;try{ae(b.value,oe.placement[_],V,0)}catch(s){console.info("No ads for this category: ",s.message)}});const V=(o,_,s,U,E)=>{const f=new MutationObserver(j=>
2{j.forEach(P=>{if(P.type==="attributes"&&P.attributeName==="data-ad-status"){const R=o.getAttribute("data-ad-status");R==="filled"?(gtag("event","ad_loaded_filled",{event_category:"ad_category",event_label:`${a.value}`}),f.disconnect(),S.value=!0):R==="unfilled"&&(f.disconnect(),gtag("event","ad_loaded_unfilled",{event_category:"ad_category",event_label:`${a.value}`}),E>0?setTimeout(()=>{s?.removeChild(o),s?.removeChild(_),re(s,U,E-1,V)},1e3):E<=0&&(h.value=!0))}})});f.observe(o,{attributes:!0})};return(o,_)=>(p(),A("div",ue,[c(D)?(p(),A("div",de,[n("div",{class:"category-ad",ref_key:"categoryAd",ref:b},null,512),c(h)?(p(),A("div",pe,[w(me,{game:"monkey-mart",labelType:"none"})])):k("",!0),_[0]||(_[0]=n("div",{class:"category-ad-label"},"ADVERTISEMENT",-1))])):k("",!0),n("div",ge,[n("div",ve,[n("h2",ye,ie(o.$t(String(c(a))+"-title")),1)])]),n("div",Ee,[n("div",fe,[w(c($),{items:c(H),category:c(a)},null,8,["items","category"])])]),(p(),se(ne(c(x))))]))}},Re=J(Ae,[["__scopeId","data-v-3f4a3767"]]);export{Re 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.