PageSourceSearch

https://www.powned.tv/_nuxt/DrwIGu9a.js

js powned.tv collected 2026-10-02 06:39:29 UTC 2,316 bytes, 1 lines download raw bytes

1import{d as B,q as L,y as q,j as N,z as R,o as d,c as w,a as g,b as r,w as _,e as V,t as $,i as x,F as b,k as D,l as F,J as O,K as T,n as z,D as E,g as S}from"./BUzqy6qZ.js";import{_ as j}from"./CHMjseMp.js";import{_ as H}from"./vMkkae-S.js";import{u as I,_ as J}from"./Ckg1bpH0.js";import{_ as K}from"./tpn1FRHc.js";import{_ as Q}from"./BSsnZ5Ab.js";import"./DkBFDOxN.js";import"./CD4gaPN2.js";import"./6rFSPTnL.js";import"./BMHZHkeR.js";import"./Dn2IhnKy.js";import"./DUogLNI9.js";import"./D-ByC7ld.js";import"./Ca-RBheE.js";import"./CLc-aGK9.js";const U={class:"page"},G={class:"grid grid-cols-12"},M={class:"grid grid-cols-12 gap-3 gap-y-4"},W="people_page",f=18,me=B({__name:"[...slug]",setup(X){let v={};const C=["*"],m=L(),h=q(),e=N({data:void 0,persons:void 0,total:void 0,page:m.query.p?parseInt(m.query.p):1}),P=async t=>{var a,o;e.data=t,(a=e.data)!=null&&a.persons&&((o=e.data)==null?void 0:o.persons.length)>0&&await y()},k=()=>{const t=e.page>1?{p:e.page}:void 0;h.push({path:h.currentRoute.value.path,query:t})},y=async()=>{var p,i,c,l;const t=(i=(p=e.data)==null?void 0:p.persons)==null?void 0:i.map(n=>n.person_page_id);v={id:{_in:t}},e.persons=void 0;const{data:a,pending:o,error:s}=await E("person_page",v,C,void 0,f,e.page,!0);if(s.value)throw new Error((c=s.value)==null?void 0:c.message);(l=a.value)!=null&&l.data&&t&&(e.total=a.value.meta.filter_count,e.persons=a.value.data.sort(function(n,u){return t.indexOf(n.id)-t.indexOf(u.id)}),k(),I(m.path,e.page,e.total))},A=t=>{window.scrollTo(0,0),e.page=t};return R(()=>e.page,y),(t,a)=>{const o=S,s=j,p=H,i=J,c=K,l=Q;return d(),w("div",U,[g("div",{class:z(["page__inner",{"mb-16":e.persons&&e.persons.length<f}])},[r(c,{collection:W,onLoaded:P},{default:_(()=>[r(s,{class:"!my-0"},{default:_(()=>[g("header",G,[r(o,{variant:"h1",class:"col-span-full mb-6 uppercase"},{default:_(()=>[V($(e.data.title),1)]),_:1})])]),_:1}),e.persons&&e.persons.length!==0?(d(),x(s,{key:0,class:"mt-2"},{default:_(()=>[g("div",M,[(d(!0),w(b,null,D(e.persons,(n,u)=>(d(),x(p,{key:`person-card_${u}`,data:n,variant:"grid-card"},null,8,["data"]))),128))])]),_:1})):F("",!0),O(r(i,{"item-count":e.total||0,"items-per-page":f,"initial-page":e.page,onOnPageChanged:A},null,8,["item-count","initial-page"]),[[T,e.total!==0]])]),_:1})],2),r(l)])}}});export{me 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.