PageSourceSearch

https://granbluefantasy.com/_app/immutable/nodes/15.Bl-85HaF.js

js granbluefantasy.com collected 2026-10-02 08:13:21 UTC 3,406 bytes, 1 lines download raw bytes

1import{P as H,c as tt,d as at}from"../chunks/page_settings.wQR04nIy.js";import{k as et,a as st,L as rt}from"../chunks/Loading.SFBe-MN4.js";import{g as ot}from"../chunks/runtime.C1AkxtCQ.js";import{e as K}from"../chunks/index.g5YcAAdQ.js";import{t as I,e as v,d as nt,b as $,f as k}from"../chunks/disclose-version.CTolbDz-.js";import{a1 as it,ah as q,a7 as ct,K as Y,a2 as c,a4 as F,x as t,a6 as n,a3 as R,y as P,a5 as j}from"../chunks/runtime.xahfhZnB.js";import{e as lt,i as gt,s as pt}from"../chunks/attributes.rBD47DPj.js";import{s as dt,p as x,a as mt}from"../chunks/store.B-43Gd6y.js";/* empty css                     */import{p as _t}from"../chunks/stores.C3HlVqG_.js";import{o as ut}from"../chunks/index-client.B-G9cTOh.js";import{c as vt,d as ft,m as yt}from"../chunks/utils.BzubWJxs.js";import{g as ht}from"../chunks/entry.RzYF83DH.js";import{n as St}from"../chunks/news_text_17.Ct9bA-NH.js";import{L as Nt}from"../chunks/ListRow.kVbQa-TG.js";const Et=async({url:f,fetch:i})=>{const y=H().NEWS.supportedLangs;if(!(!y||y.includes(ot())))throw K(404,"Not Found");const h=30,l=f.searchParams.get("p")||"",b=0,D=4,S=4,N=6,g=10,r=parseInt(l.substring(b,D),g),o=parseInt(l.substring(S,N),g),a=new Date(r,o,1);a.setDate(a.getDate()-1);const e=a.getDate(),E=`${r}-${o.toString().padStart(2,"0")}-01`,A=`${r}-${o.toString().padStart(2,"0")}-${e.toString().padStart(2,"0")}`,T=`(ymd >= "${E}" AND ymd <= "${A}")`;return{listPromise:(async()=>{try{if(l.length>6||isNaN(r)||isNaN(o)||o<1||o>12)return null;const p=f.searchParams.get("page")||"1",d={endpoint:"news-archive",apiId:tt,cnt:h,pageID:p,filter:T},{list:m,pageInfo:w}=await et.getContents(d,i);return{list:m,pageNo:Number(p),totalPage:Math.ceil(w.totalCnt/h)}}catch{return null}})()}},Ht=Object.freeze(Object.defineProperty({__proto__:null,load:Et},Symbol.toStringTag,{value:"Module"}));var Lt=I("<li><!></li>"),Pt=I('<p class="no-data svelte-yqn2jg"> </p>'),It=I('<div class="filtered-list line-deco svelte-yqn2jg"><h2 class="filtered-list__title svelte-yqn2jg"> </h2> <ul></ul> <!></div> <div class="pagination svelte-yqn2jg"><a class="svelte-yqn2jg">Top</a></div>',1),bt=I("<div><!></div>");function Kt(f,i){it(i,!0);const y=dt(),M=()=>mt(_t,"$page",y),h=0,l=4,b=4,D=6;let S,N=q(x([])),g=q("");ut(async()=>{S=M().url.searchParams;const a=S.get("p");Y(g,x(a?`${a.substring(h,l)}年${Number(a.substring(b,D))}月`:"")),await i.data.layoutPromise?.then(e=>{e&&Y(N,x(e.categories))}),await i.data.listPromise.then(e=>{if(!e||e.list.length===0)throw ht("/404.html"),K(404,"Not Found")})});var r=bt(),o=c(r);st(o,()=>i.data.listPromise,a=>{rt(a)},(a,e)=>{var E=nt(),A=F(E);{var T=L=>{var p=It(),d=F(p),m=c(d),w=c(m,!0);n(m);var C=R(m,2);lt(C,21,()=>t(e).list,gt,(_,s)=>{var u=Lt();const W=P(()=>t(s).categories.map(V=>t(N).find(Z=>Z.topics_id===V.module_id)?.subject||"")),B=P(()=>vt(t(s).ymd));var Q=c(u),X=P(()=>ft(t(s).ymd)),J=P(()=>t(W)??[""]);Nt(Q,{get topics_id(){return t(s).topics_id},get slug(){return t(s).slug},get ymd(){return t(X)},get categories(){return t(J)},get subject(){return t(s).subject},get isNew(){return t(B)}}),n(u),v(_,u)}),n(C);var z=R(C,2);{var G=_=>{var s=Pt(),u=c(s,!0);j(()=>k(u,St())),n(s),v(_,s)};$(z,_=>{t(e).list.length===0&&_(G)})}n(d);var O=R(d,2),U=c(O);j(()=>pt(U,"href",yt(H()[at.NEWS].path))),n(O),j(()=>k(w,t(g))),v(L,p)};$(A,L=>{t(e)&&L(T)})}v(a,E)}),n(r),v(f,r),ct()}export{Kt as component,Ht as universal};

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.