1import{d as m,K as P,B as h,a as i,o as l,a0 as v,b as t,Q as n,a3 as k,u as r,N as x,C as p,a9 as u,F as y,e as b,a5 as S,n as w,t as a}from"./BYqnAuL0.js";import{H as _}from"./NtO5oel1.js";import{B as F}from"./CbNBo9Yv.js";import{u as B}from"./Cm6anHgV.js";import{u as C}from"./DcFRjnso.js";import"./VQPwOC_5.js";const N={class:"hof-dark-theme pb-24"},A={class:"container py-8 md:py-12"},T={class:"table-section hof"},V={class:"inputs"},D={class:"each-input"},G={key:1},H={class:"box"},U={class:"positions hof"},z={class:"checkboxes hof"},E={class:"checkbox-wrapper"},$={class:"checkbox-wrapper"},L={class:"checkbox-wrapper"},M={class:"checkbox-wrapper"},O={class:"checkbox-wrapper"},K={class:"table-wrapping hof",style:{"overflow-x":"auto",width:"100%","padding-right":"0"}},R={class:"is-fullwidth",border:"0"},Y=["onClick"],j={key:0},J={key:1},Q={key:2},W={class:"text-left"},q=["href"],rt=m({__name:"portability",setup(I){P({title:"Portability - NBA Stats & Analytics | CraftedNBA Hall of Fame",meta:[{name:"description",content:"The most scaleable players in NBA History. These players fit well with almost anyone else. Plug n Play.",tagPriority:"critical"},{property:"og:title",content:"Portability - NBA Stats & Analytics | CraftedNBA Hall of Fame",tagPriority:"critical"},{property:"og:description",content:"The most scaleable players in NBA History. These players fit well with almost anyone else. Plug n Play.",tagPriority:"critical"},{property:"og:image",content:"https://craftednba.com/hof-home.jpg",tagPriority:"critical"}]});const e=h({currentSort:"Portability",currentSortDir:"desc",pageSize:500,currentPage:1,next:null,columns:["Start","End","Portability"],seen:!1,seenG:!1,filters:{Portability:7.5,Pos:["PG","SG","SF","PF","C"]},loading:!1,portability:[]}),f=async()=>{e.loading=!0;try{const c=await C("/api/hof-player-ranks",{method:"POST",key:JSON.stringify({filters:e.filters,currentSort:e.currentSort,currentSortDir:e.currentSortDir}),body:{rankType:_.portability,positions:e.filters.Pos,portability:e.filters.Portability,orderBy:e.currentSort,orderDir:e.currentSortDir}},"$UecGy1PTU4");e.portability=c.data.value,e.loading=!1}catch(c){console.log(`Looks like there was a problem: ${c}`)}},{sort:g}=B(e.currentSort,e.currentPage,e.currentSortDir,e.pageSize,e.next,e.portability);return f(),(c,s)=>(l(),i("div",N,[s[18]||(s[18]=v('<div class="relative overflow-hidden bg-slate-darkest border-b border-slate-med/20"><div class="absolute inset-0 bg-gradient-to-br from-yellow-darker/10 via-trans
1parent to-maroon-darker/10"></div><div class="relative z-10 max-w-5xl mx-auto px-4 sm:px-6 py-8 md:py-10"><div class="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-yellow-med/10 border border-yellow-med/20 mb-4"><span class="w-1.5 h-1.5 rounded-full bg-yellow-med animate-pulse"></span><span class="text-yellow-light text-[11px] font-heading tracking-[0.25em] uppercase">Hall of Fame Edition</span></div><h1 class="text-3xl sm:text-4xl font-heading tracking-tight text-tan-lighter mb-2 uppercase">Portability</h1><p class="text-slate-light text-sm">Who are the most scaleable players of all time?</p></div></div>',1)),t("div",A,[t("div",T,[t("div",V,[s[8]||(s[8]=t("h3",null,"Filters",-1)),t("div",D,[s[7]||(s[7]=t("h4",null,"Crafted Portability",-1)),n(t("input",{"onUpdate:modelValue":s[0]||(s[0]=o=>r(e).filters.Portability=o),type:"number",placeholder:"Portability",step:"1"},null,512),[[k,r(e).filters.Portability,void 0,{number:!0}]])]),t("a",{class:"btn hof text-center mt-5",onClick:s[1]||(s[1]=o=>f())},[r(e).loading?(l(),x(F,{key:0,width:"24",height:"24"})):p("",!0),r(e).loading?p("",!0):(l(),i("span",G,"Filter"))])]),t("div",H,[t("div",U,[s[14]||(s[14]=t("h4",{class:"text-tan-hof"},"Position",-1)),t("div",z,[t("div",E,[n(t("input",{id:"pg","onUpdate:modelValue":s[2]||(s[2]=o=>r(e).filters.Pos=o),type:"checkbox",value:"PG"},null,512),[[u,r(e).filters.Pos]]),s[9]||(s[9]=t("label",{for:"pg"},"PG",-1))]),t("div",$,[n(t("input",{id:"sg","onUpdate:modelValue":s[3]||(s[3]=o=>r(e).filters.Pos=o),type:"checkbox",value:"SG"},null,512),[[u,r(e).filters.Pos]]),s[10]||(s[10]=t("label",{for:"sg"},"SG",-1))]),t("div",L,[n(t("input",{id:"sf","onUpdate:modelValue":s[4]||(s[4]=o=>r(e).filters.Pos=o),type:"checkbox",value:"SF"},null,512),[[u,r(e).filters.Pos]]),s[11]||(s[11]=t("label",{for:"sf"},"SF",-1))]),t("div",M,[n(t("input",{id:"pf","onUpdate:modelValue":s[5]||(s[5]=o=>r(e).filters.Pos=o),type:"checkbox",value:"PF"},null,512),[[u,r(e).filters.Pos]]),s[12]||(s[12]=t("label",{for:"pf"},"PF",-1))]),t("div",O,[n(t("input",{id:"c","onUpdate:modelValue":s[6]||(s[6]=o=>r(e).filters.Pos=o),type:"checkbox",value:"C"},null,512),[[u,r(e).filters.Pos]]),s[13]||(s[13]=t("label",{for:"c"},"C",-1))])])]),t("div",K,[t("table",R,[t("thead",null,[t("tr",null,[s[15]||(s[15]=t("th",null,null,-1)),s[16]||(s[16]=t("th",{class:"text-left"},"Name",-1)),s[17]||(s[17]=t("th",null,"Pos",-1)),(l(!0),i(y,null,b(r(e).columns,o=>(l(),i("th",{key:o},[t("a",{href:"#",class:w({active:r(e).currentSort===o}),onClick:S(d=>r(g)(o),["prevent"])},a(o),11,Y)]))),128))])]),t("tbody",null,[(l(!0),i(y,null,b(r(e).portability,(o,d)=>(l(),i("tr",{key:d},[t("td",null,[r(e).currentPage!==1&&r(e).currentPage!==2?(l(),i("strong",j,a(d+r(e).pageSize*(r(e).currentPage-1)+1),1)):p("",!0),r(e).currentPage===2?(l(),i("strong",J,a(d+r(e).pageSize+1),1)):p("",!0),r(e).currentPage===1?(l(),i("strong",Q,a(d+1),1)):p("",!0)]),t("td",W,[t("a",{href:o.Slug&&o.Slug!=="undefined"?"/hall-of-fame/players/"+o.Slug:"#"},a(o.Player),9,q)]),t("td",null,a(o.Pos),1),t("td",null,a(o.Start),1),t("td",null,a(o.End),1),t("td",null,a(o.Portability),1)]))),128))])])])])])])]))}});export{rt 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.