PageSourceSearch

https://provolleyball.com/dist/assets/TransactionsIndex.1e4b1313.js

js provolleyball.com collected 2026-10-02 06:58:52 UTC 2,009 bytes, 1 lines download raw bytes

1import{Y as b,B as x,Z as O,d as V,e as $,_ as D,$ as E,l as H,a0 as I,a1 as L}from"./app.42a98c89.js";import{r as u,g as l,d as N,F as S,G as A,o as c,c as _,h as p,m as C,a as g,u as r,n as F}from"./vendor.ab7d7e0e.js";const G=()=>{const{searchYears:f}=b(),e=u(!1),n=u([]),a=u({current_page:0}),i=async(s=!1)=>{s&&(n.value=[],a.value.current_page=0);const o=(a.value.current_page||0)+1;if(!e.value){e.value=!0;try{const t=await f({page:o});n.value.push(...t.data),a.value=t.meta}catch(t){x(t)}finally{e.value=!1}}},d=l(()=>{const s=n.value.map(o=>({value:parseInt(o),label:o}));return s?[{label:"All years",value:void 0},...s]:[]});return{transactionsYears:n,loadData:i,loading:e,yearsOptions:d}},M={class:"dropdown dropdown--light"},P={class:"container"},R={key:0},U={key:2},q=N({__name:"TransactionsIndex",setup(f){const e=l(()=>{var v;return(v=H())==null?void 0:v.transactions_page_header_banner}),n=l(()=>({include:["player","fromTeam.logo","player.activeRosters.season"],sort:["-date"],per_page:200,filter:{gte_date:i.value?i.value:void 0,lt_date:d.value?d.value:void 0}})),a=u(),i=l(()=>a.value?I(a.value):void 0),d=l(()=>a.value?L(a.value):void 0),{loadData:s,loading:o,transactions:t}=O(n),{loadData:Y,loading:w,yearsOptions:k}=G();return S(()=>{s(),Y()}),A(()=>a.value,()=>{s(!0)}),(v,m)=>{var h,y,T;return c(),_("div",null,[p($,{title:((h=e.value)==null?void 0:h.title)||"League Transactions","featured-image":(y=e.value)==null?void 0:y.image,"show-gradient":(T=e.value)==null?void 0:T.background_gradient_overlay},{right:C(()=>[g("div",M,[p(V,{id:"years-dropdown",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=B=>a.value=B),options:r(k),loading:r(w),label:"Filter by Year"},null,8,["modelValue","options","loading"])])]),_:1},8,["title","featured-image","show-gradient"]),g("section",null,[g("div",P,[r(o)?(c(),_("div",R,[p(D)])):r(t)&&r(t).length>0?(c(),F(E,{key:1,transactions:r(t)},null,8,["transactions"])):(c(),_("div",U,"No transactions to display"))])])])}}});export{q 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.