PageSourceSearch

https://www.lordsofthefallen.com/_nuxt/D-f1GoRP.js

js lordsofthefallen.com collected 2026-09-24 21:47:40 UTC 10,673 bytes, 1 lines download raw bytes

1import tt from"./CaIzonf4.js";import et from"./BBhDSGXT.js";import st from"./CDPzAtpk.js";import it from"./BvkR7M-C.js";import{ab as nt,ac as B,ad as v,ae as P,af as I,ag as at,ah as $,ai as N,aj as rt,ak as F,al as ot,am as ct,an as V,ao as ht,ap as lt,aq as ut,ar as dt,as as ft,at as pt,S as O,au as W,a5 as vt,av as H,aw as gt,ax as mt,c as bt,ay as yt,az as Rt,p as _t,C as Ct,x as wt,N as Ot,o as m,d as C,i as K,w as St,e as xt,z as G,j as k,g as b,F as J,h as X,k as D,l as Y,aA as kt,m as It}from"./D15o63IH.js";import"./DKgRZO66.js";import"./HdOok-As.js";var Qt=class extends nt{constructor(t,e){super(),this.options=e,this.#s=t,this.#n=null,this.#i=B(),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#r;#l;#i;#n;#v;#u;#d;#o;#c;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Z(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return U(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return U(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#_(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof v(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),e._defaulted&&!P(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&q(this.#t,s,this.options,e)&&this.#h(),this.updateResult(),i&&(this.#t!==s||v(this.options.enabled,this.#t)!==v(e.enabled,this.#t)||I(this.options.staleTime,this.#t)!==I(e.staleTime,this.#t))&&this.#g();const n=this.#m();i&&(this.#t!==s||v(this.options.enabled,this.#t)!==v(e.enabled,this.#t)||n!==this.#a)&&this.#b(n)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return Et(this,s)&&(this.#e=s,this.#l=this.options,this.#r=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),e?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,i))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#h({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#h(t){this.#C();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(at)),e}#g(){this.#R();const t=I(this.options.staleTime,this.#t);if($.isServer()||this.#e.isStale||!N(t))return;const s=rt(this.#e.dataUpdatedAt,t)+1;this.#o=F.setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#_(),this.#a=t,!($.isServer()||v(this.options.enabled,this.#t)===!1||!N(this.#a)||this.#a===0)&&(this.#c=F.setInterval(()=>{(this.options.refetchIntervalInBackground||ot.isFocused())&&this.#h()},this.#a))}#y(){this.#g(),this.#b(this.#m())}#R(){this.#o!==void 0&&(F.clearTimeout(this.#o),this.#o=void 0)}#_(){this.#c!==void 0&&(F.clearInterval(this.#c),this.#c=void 0)}createResult(t,e){const s=this.#t,i=this.options,n=this.#e,c=this.#r,h=this.#l,u=t!==s?t.state:this.#p,{state:y}=t;let r={...y},S=!1,o;if(e._optimisticResults){const p=this.hasListeners(),x=!p&&Z(t,e),Q=p&&q(t,s,e,i);(x||Q)&&(r={...r,...ct(y.data,t.options)}),e._optimisticResults==="isRestoring"&&(r.fetchStatus="idle")}let{error:a,errorUpdatedAt:d,status:l}=r;o=r.data;let R=!1;if(e.placeholderData!==void 0&&o===void 0&&l==="pending"){let p;n?.isPlaceholderData&&e.placeholderData===h?.placeholderData?(p=n.data,R=!0):p=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,p!==void 0&&(l="success",o=V(n?.data,p,e),S=!0)}if(e.select&&o!==void 0&&!R)if(n&&o===c?.data&&e.select===this.#v)o=this.#u;else try{this.#v=e.select,o=e.select(o),o=V(n?.data,o,e),this.#u=o,this.#n=null}catch(p){this.#n=p}this.#n&&(a=this.#n,o=this.#u,d=Date.now(),l="error");const g=r.fetchStatus==="fetching",w=l==="pending",L=l==="error",M=w&&g,j=o!==void 0,_={status:l,fetchStatus:r.fetchStatus,isPending:w,isSuccess:l==="success",isError:L,isInitialLoading:M,isLoading:M,data:o,dataUpdatedAt:r.dataUpdatedAt,error:a,errorUpdatedAt:d,failureCount:r.fetchFailureCount,failureReason:r.fetchFailureReason,errorUpdate
1Count:r.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:r.dataUpdateCount>u.dataUpdateCount||r.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!w,isLoadingError:L&&!j,isPaused:r.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:L&&j,isStale:A(t,e),refetch:this.refetch,promise:this.#i,isEnabled:v(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const p=_.data!==void 0,x=_.status==="error"&&!p,Q=E=>{x?E.reject(_.error):p&&E.resolve(_.data)},z=()=>{const E=this.#i=_.promise=B();Q(E)},T=this.#i;switch(T.status){case"pending":t.queryHash===s.queryHash&&Q(T);break;case"fulfilled":(x||_.data!==T.value)&&z();break;case"rejected":(!x||_.error!==T.reason)&&z();break}}return _}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#l=this.options,this.#r.data!==void 0&&(this.#d=this.#t),P(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,n=typeof i=="function"?i():i;if(n==="all"||!n&&!this.#f.size)return!0;const c=new Set(n??this.#f);return this.options.throwOnError&&c.add("error"),Object.keys(this.#e).some(h=>{const f=h;return this.#e[f]!==t[f]&&c.has(f)})};this.#w({listeners:s()})}#C(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#w(t){ht.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Tt(t,e){return v(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&v(e.retryOnMount,t)===!1)}function Z(t,e){return Tt(t,e)||t.state.data!==void 0&&U(t,e,e.refetchOnMount)}function U(t,e,s){if(v(e.enabled,t)!==!1&&I(e.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&A(t,e)}return!1}function q(t,e,s,i){return(t!==e||v(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&A(t,s)}function A(t,e){return v(e.enabled,t)!==!1&&t.isStaleByTime(I(e.staleTime,t))}function Et(t,e){return!P(t.getCurrentResult(),e)}function Ft(t=""){if(!lt())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const e=dt(t),s=ut(e);if(!s)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return s}function Lt(t,e,s){const i=Ft(),n=bt(()=>{let a=e;typeof a=="function"&&(a=a());const d=Rt(a);typeof d.enabled=="function"&&(d.enabled=d.enabled());const l=i.defaultQueryOptions(d);return l._optimisticResults=i.isRestoring?.value?"isRestoring":"optimistic",l}),c=new t(i,n.value),h=n.value.shallow?ft(c.getCurrentResult()):pt(c.getCurrentResult());let f=()=>{};i.isRestoring&&O(i.isRestoring,a=>{a||(f(),f=c.subscribe(d=>{W(h,d)}))},{immediate:!0});const u=()=>{c.setOptions(n.value),W(h,c.getCurrentResult())};O(n,u),vt(()=>{f()});const y=(...a)=>(u(),h.refetch(...a)),r=()=>new Promise((a,d)=>{let l=()=>{};const R=()=>{if(n.value.enabled!==!1){c.setOptions(n.value);const g=c.getOptimisticResult(n.value);g.isStale?(l(),c.fetchOptimistic(n.value).then(a,w=>{H(n.value.throwOnError,[w,c.getCurrentQuery()])?d(w):a(c.getCurrentResult())})):(l(),a(g))}};R(),l=O(n,R)});O(()=>h.error,a=>{if(h.isError&&!h.isFetching&&H(n.value.throwOnError,[a,c.getCurrentQuery()]))throw a});const S=n.value.shallow?gt(h):mt(h),o=yt(S);for(const a in h)typeof h[a]=="function"&&(o[a]=h[a]);return o.suspense=r,o.refetch=y,o}function Dt(t,e){return Lt(Qt,t)}const Pt={class:"section-articleList"},Ut={class:"top"},At=["textContent"],Mt=["textContent"],jt={key:0,class:"grid"},zt={key:1,class:"grid"},Bt={key:2,class:"pagination"},$t={__name:"ArticleList",props:{section:{type:Object,default:()=>({})}},setup(t){const e=It(),s=Ct(),i=D(1),n=D(1),c=D(9),h=async()=>{const r=await fetch(`${e.public.STRAPI_URL}/api/articles?${kt}&pagination[page]=${n.value}&pagination[pageSize]=${i.value}&sort=date:desc`,{headers:{Authorization:`Bearer ${e.public.STRAPI_API_TOKEN}`}});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()},f=()=>{window.innerWidth<640?i.value=5:window.innerWidth<1024?i.value=6:i.value=9},{data:u,isFetching:y}=Dt({queryKey:["articles",n,i],queryFn:h});return wt(()=>{window.addEventListener("resize",f),f()}),Ot(()=>{window.removeEventListener("resize",f)}),O(s,()=>{n.value=parseFloat(s.query.page)||1},{immediate:!0,deep:!0}),O(u,()=>{u?.value?.meta?.pagination?.pageSize&&(c.value=Math.min(Math.ceil(u?.value?.meta?.pagination?.pageSize/3)*3,9))}),(r,S)=>{const o=tt,a=et,d=st,l=it;return m(),C("div",Pt,[K(l,{class:"container"},{default:St(()=>[xt("div",Ut,[t.section?.articleListHeading?(m(),C("h2",{key:0,class:"heading",textContent:G(t.section.articleListHeading)},null,8,At)):k("",!0),t.section?.articleListDescription?(m(),C("p",{key:1,class:"body",textContent:G(t.section.articleListDescription)},null,8,Mt)):k("",!0)]),b(y)?k("",!0):(m(),C("div",jt,[(m(!0),C(J,null,X(b(u)?.data,(R,g)=>(m(),Y(o,{key:g,article:R},null,8,["article"]))),128))])),b(y)?(m(),C("div",zt,[(m(!0),C(J,null,X(new Array(b(c)),(R,g)=>(m(),Y(a,{key:`${g}-loader`}))),128))])):k("",!0),b(u)?.meta?.pagination&&!b(y)&&b(u)?.meta?.pagination?.pageCount>1?(m(),C("div",Bt,[K(d,{"current-page":b(n),"total-pages":b(u).meta.pagination.pageCount},null,8,["current-page","total-pages"])])):k("",!0)]),_:1})])}}},Yt=_t($t,[["__scopeId","data-v-a04ddcd0"]]);export{Yt 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.