1import{d as ie,a1 as ue,c as m,K as de,r as f,B as ce,w as T,a as i,o,b as e,N as pe,C as p,u as n,S as me,t as h,F as B,e as j,au as he,Q as C,as as M,a3 as fe,k as ye,n as be,aQ as ge,T as ve}from"./BYqnAuL0.js";import{b as D}from"./Bl8bF6DE.js";import{i as O,t as W}from"./-p_98hM-.js";import{o as Q}from"./D-upR2wr.js";import{s as F}from"./DlwVpifL.js";import{u as we}from"./CN2o3xfr.js";import{u as xe}from"./DcFRjnso.js";import"./CUNx5ddX.js";import"./VQPwOC_5.js";const G="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='51px'%20height='42px'%20viewBox='0%200%2051%2042'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2053.2%20(72643)%20-%20https://sketchapp.com%20--%3e%3ctitle%3etwitter%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='twitter'%20fill='%23086788'%20fill-rule='nonzero'%3e%3cpath%20d='M15.8062825,41.0562625%20C34.6738295,41.0562625%2044.9979592,25.410004%2044.9979592,11.8645858%20C44.9979592,11.4244098%2044.9979592,10.9842337%2044.9779512,10.5440576%20C46.9787515,9.10348139%2048.7194478,7.2827531%2050.1,5.22192877%20C48.2592637,6.0422569%2046.2784714,6.58247299%2044.1976391,6.84257703%20C46.3184874,5.58207283%2047.9391357,3.56126451%2048.7194478,1.16030412%20C46.7386555,2.34077631%2044.5377751,3.18111244%2042.1968387,3.64129652%20C40.3160864,1.6404962%2037.655022,0.4%2034.7138455,0.4%20C29.0515806,0.4%2024.4497399,5.00184074%2024.4497399,10.6641056%20C24.4497399,11.4644258%2024.5497799,12.2447379%2024.7098439,13.005042%20C16.1864346,12.5848739%208.62340936,8.48323329%203.56138455,2.2807523%20C2.68103241,3.80136054%202.18083233,5.56206483%202.18083233,7.44281713%20C2.18083233,11.0042417%204.00156062,14.1454982%206.74265706,15.9862345%20C5.06198479,15.9262105%203.48135254,15.4660264%202.10080032,14.7057223%20C2.10080032,14.7457383%202.10080032,14.7857543%202.10080032,14.8457783%20C2.10080032,19.8077631%205.64221689,23.9694278%2010.3240896,24.9098039%20C9.4637455,25.1499%208.56338535,25.269948%207.6230092,25.269948%20C6.9627451,25.269948%206.322489,25.209924%205.7022409,25.089876%20C7.0027611,29.1715086%2010.8042817,32.1326931%2015.2860744,32.2127251%20C11.7646659,34.9738295%207.34289716,36.6144858%202.54097639,36.6144858%20C1.72064826,36.6144858%200.900320128,36.5744698%200.1,36.4744298%20C4.62180872,39.3555822%2010.0239696,41.0562625%2015.8062825,41.0562625'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_e={class:"container pb-24"},ke={class:"hero-content"},Ce=["src"],Fe={class:"modal-mask"},Se={class:"modal-wrapper"},Le={class:"modal-container w-11/12 sm:w-10/12 md:w-3/4"},Pe={class:"modal-header pb-1"},Be={key:0,class:"inline-block mt-0"},je={key:1,class:"mb-5 inline-block"},Me={class:"modal-body bg-tan-light pb-1"},Ie={key:0},Ae=["src"],Ne={key:0,class:"mb-2 block"},$e={key:1},Ve={class:"flex flex-col sm:flex-row items-center justify-start"},Re={class:"w-full bg-red-med text-tan-light text-center mb-3 sm:mb-5 sm:mr-3 py-1 px-2"},ze={class:"w-full bg-red-med text-tan-light text-center mb-3 sm:mb-5 sm:ml-3 py-1 px-2"},Ee={class:"modal-lineup bg-tan-light flex flex-row flex-wrap items-start justify-around mb-5"},He=["src","onError"],qe=["src"],Te={class:"text-center text-sm block"},De={class:"modal-footer flex flex-row items-start justify-between -mx-4"},Oe={class:"px-4 w-1/2"},We=["href"],Qe=["src"],Ge={key:0,class:"relative px-4 w-1/2"},Ue={key:0,class:"loader absolute z-20"},Xe=["src"],Ke={class:"container builder py-12 lg:py-16"},Ye={class:"flex flex-col md:flex-row-reverse items-start justify-between"},Je={class:"w-full md:w-1/3 lg:w-1/4 md:pl-4 lineup text-center md:sticky md:top-0",id:"lineup"},Ze={class:"w-full bg-slate-med text-tan-light text-center px-3 py-1"},et={class:"lineup-wrapper flex items-center justify-between flex-col bg-tan-med border-slate-med shadow"},tt=["onClick"],lt={class:"remove-item absolute inset-0 hidden justify-between items-center text-tan-light font-bold"},st=["src"],at=["src"],nt=["src"],rt={class:"font-bold text-sm xl:text-base"},ot={class:"text-red-med pr-3 font-bold"},it={key:0,class:"selected-player placeholder w-full relative flex items-center justify-center cursor-disabled bg-tan-med py-2 border-slate-med border-b-2"},ut={key:1,class:"selected-player placeholder w-full relative flex items-center justify-center cursor-disabled bg-tan-med py-2 border-slate-med border-b-2"},dt={key:2,class:"selected-player placeholder w-full relative flex items-center justify-center cursor-disabled bg-tan-med py-2 border-slate-med border-b-2"},ct={key:3,class:"selected-player placeholder w-full relative flex items-center justify-center cursor-disabled bg-tan-med py-2 border-slate-med border-b-2"},pt={key:4,class:"selected-player placeholder w-full relative flex items-center justify-center cursor-disabled bg-tan-med py-2 border-slate-med border-b-2"},mt={class:"submit text-tan-light transition duration-500 ease-in-out"},ht={class:"all-players relative w-full md:w-2/3 lg:w-3/4 flex flex-wrap items-start justify-between md:pr-4 pt-10 md:pt-0"},ft={class:"wrapper w-full text-center"},yt={key:0,class:"toomany absolute inset-0"},bt={class:"modal-wrapper"},gt={class:"modal-container relative"},vt={class:"column flex flex-wrap justify-between items-center -mx-2"},wt={key:0,class:"gotolineupwrapper md:hidden"},xt={class:"text-sm text-tan-medlight mb-2"},_t=["onClick"],kt={class:"img-wrapper flex items-center justify-center mb-1"},Ct=["src","onError"],Ft=["src"],St={class:"inline-block font-bold text-sm lg:text-base mt-2"},Lt={class:"player-value absolute block text-red-med font-bold text-sm lg:text-base"},Pt=["src"],Bt={class:"add-wrapper flex items-center justify-center absolute inset-0 h-full w-full"},jt={class:"add-button h-full w-full flex items-center justify-center my-2 px-3 text-tan-light text-sm font-bold"},Mt=ie({__name:"historical-five",async setup(It){var E,H,q;let b,I;const{data:U}=([b,I]=ue(()=>xe("/api/hall-of-fame",{key:"hall-of-fame-historical-five"},"$TkVpWv5w3v")),b=await b,I(),b),g=m(()=>U.value??[]);
1de({title:"Historical Lineup Builder - NBA Stats & Analytics | CraftedNBA Hall of Fame",meta:[{name:"description",content:"'Build your dream NBA lineup by selecting from every player in the CraftedNBA Hall of Fame.",tagPriority:"critical"},{property:"og:title",content:"Historical Lineup Builder - NBA Stats & Analytics | CraftedNBA Hall of Fame",tagPriority:"critical"},{property:"og:description",content:"'Build your dream NBA lineup by selecting from every player in the CraftedNBA Hall of Fame.",tagPriority:"critical"},{property:"og:image",content:"https://craftednba.com/hof-home.jpg",tagPriority:"critical"}],link:[{rel:"canonical",href:"https://craftednba.com/hall-of-fame/historical-five"}]});const v=f({}),S=a=>!!(a!=null&&a.Slug)&&String(a.Slug).trim()!==""&&a.Slug!=="undefined",A=a=>{S({Slug:a})&&(v.value={...v.value,[a]:!0})},l=ce({lineup:[],ballImage:D,trashcanImage:W,twitterIcon:G,imageIcon:O,starImage:Q,silhouette:F,activeIndex:0,submit:!1,showModal:!1,showLoader:!1,tooMany:!1,closeModal:!0,output:null,myFive:[]}),N=f(null);function X(){if(l.showModal){document.documentElement.style.overflow="hidden";return}document.documentElement.style.overflow="auto"}T(()=>l.showModal,()=>{X()});const $=m(()=>ge(l.lineup,"Player").join(", "));function V(a){return l.lineup.some(s=>s.Slug===a.Slug)}const K=a=>{const t=V(a);if(l.lineup.length<5&&!t)return l.lineup.push(a),J(a),$.value;t?(R(a),z(a)):l.tooMany=!0},Y=a=>{K(a)};function J(a){l.myFive.push(a)}function R(a){l.myFive=l.myFive.filter(t=>t.Player!==a.Player)}function Z(a){return l.myFive.find(t=>t.Player===a.Player)}function z(a){return l.lineup.splice(l.lineup.indexOf(a),1)}const y=m(()=>{const a=l.lineup.map(u=>u.Portability),s=l.lineup.map(u=>u.CaptainBonus).reduce((u,P)=>u+P,0),c=a.reduce((u,P)=>u+P,0),d=s+s+s+s+s+c;return(parseFloat(d)/l.lineup.length).toFixed(1)}),w=m(()=>+(25-l.lineup.map(c=>c.LineupValue).reduce((c,d)=>c+d,0)).toFixed(0)),L=m(()=>{if(parseFloat(y.value)>=8){let a=l.lineup.map(r=>r.CraftedPM),s=l.lineup.map(r=>r.CaptainBonus).reduce((r,u)=>r+u,0),d=a.reduce((r,u)=>r+u,0)+s;return d<0?(parseFloat(d)*.75).toFixed(1):(parseFloat(d)*1.25).toFixed(1)}else if(parseFloat(y.value)>=6){let a=l.lineup.map(r=>r.CraftedPM),s=l.lineup.map(r=>r.CaptainBonus).reduce((r,u)=>r+u,0),d=a.reduce((r,u)=>r+u,0)+s;return d<0?(parseFloat(d)*.85).toFixed(1):(parseFloat(d)*1.15).toFixed(1)}else if(parseFloat(y.value)<6){let a=l.lineup.map(r=>r.CraftedPM),s=l.lineup.map(r=>r.CaptainBonus).reduce((r,u)=>r+u,0),d=a.reduce((r,u)=>r+u,0)+s;return parseFloat(d).toFixed(1)}else if(parseFloat(y.value)<5){let a=l.lineup.map(r=>r.CraftedPM),s=l.lineup.map(r=>r.CaptainBonus).reduce((r,u)=>r+u,0),c=a.reduce((r,u)=>r+u,0);console.log(s);let d=c+s;return d<0?(parseFloat(d)*1.25).toFixed(1):(parseFloat(d)*.75).toFixed(1)}}),x=f(""),ee=m(()=>["Player"]),_=f(void 0),k=f("");T(k,()=>{if(k.value==="")_.value=void 0;else{const a=parseFloat(k.value);isNaN(a)||(_.value=Math.round(a),k.value=_.value.toString())}});const te=f(!1),le=f(!1),se=f(!0),ae=m(()=>({fuseOptions:{keys:ee.value,isCaseSensitive:le.value,threshold:te.value?0:void 0},resultLimit:_.value,matchAllWhenSearchEmpty:se.value})),{results:ne}=we(x,g,ae);async function re(){N.value}(E=m(()=>{const a=L.value;return Math.round(+a)}))==null||E.value;const oe=(H=m(()=>g==null?void 0:g.value.filter(a=>a.CraftedPM>0)))==null?void 0:H.value;return(q=m(()=>oe.sort((a,t)=>a.LineupValue>t.LineupValue||a.LineupValue===t.LineupValue&&a.CraftedPlayoffPM>t.CraftedPlayoffPM?-1:1)))==null||q.value,(a,t)=>(o(),i("div",_e,[e("div",ke,[e("img",{src:n(D),width:"85",height:"85",alt:"blue basketball",rel:"preload"},null,8,Ce),t[5]||(t[5]=e("h1",null,"Historical Five",-1)),t[6]||(t[6]=e("p",{class:"mb-5"}," Build the best lineup you can within the $25 salary cap. Pick five players and then click submit to see our projections for your lineup. Feeling confident? Challenge your friends to beat your score. ",-1))]),n(l).showModal?(o(),pe(he,{key:0,name:"modal"},{default:me(()=>[e("div",Fe,[e("div",Se,[e("div",Le,[e("div",Pe,[n(l).output?p("",!0):(o(),i("h2",Be," Lineup Stats ")),n(l).output?(o(),i("h2",je,"CraftedNBA")):p("",!0),e("button",{class:"modal-default-button text-xl font-bold",onClick:t[0]||(t[0]=s=>(n(l).showModal=!1,n(l).output=null,n(l).showLoader=!1))}," X ")]),e("div",Me,[n(l).output?(o(),i("div",Ie,[e("img",{class:"downloadable-image max-w-full md:max-w-sm lg:max-w-md mb-5",src:n(l).output},null,8,Ae),n(l).output?(o(),i("span",Ne," Download image for easy sharing. @ us on twitter @craftedNBA and use the hashtag #myfive so everyone can see your team. ")):p("",!0)])):p("",!0),n(l).output?p("",!0):(o(),i("div",$e,[e("div",{ref_key:"printMe",ref:N,class:"bg-tan-light"},[e("div",Ve,[e("div",Re,[t[7]||(t[7]=e("h4",null,"Projected Net Rating/100",-1)),e("h3",null,h(n(L)),1)]),e("div",ze,[t[8]||(t[8]=e("h4",null,"Lineup Synergy Rating",-1)),e("h3",null,h(n(y)),1)])]),e("div",Ee,[(o(!0),i(B,null,j(n(l).lineup,(s,c)=>(o(),i("div",{key:s.Slug||s.ID||c,class:"selected-player relative w-1/3 sm:w-1/5 flex flex-col items-center justify-between cursor-pointer py-2 px-2 sm:px-3"},[S(s)&&s.Rank<166&&!n(v)[s.Slug]?(o(),i("img",{key:0,loading:"lazy",class:"headsh
1ot w-28 inline-block",src:"/hall/"+s.Slug+".jpg",onError:d=>A(s.Slug)},null,40,He)):(o(),i("img",{key:1,loading:"lazy",class:"headshot w-28 inline-block",src:n(F),width:"225",height:"280"},null,8,qe)),e("div",Te,h(s.Player),1)]))),128))])],512),t[9]||(t[9]=e("div",{class:"text-sm hidden md:block"}," *Lineup Synergy Rating is an estimate of how well the players in your lineup interact with one another. The higher the number, the greater the lineup's synergy. A lineup's synergy rating has a small effect on it's projected net rating. ",-1))]))]),e("div",De,[e("div",Oe,[t[10]||(t[10]=e("h4",{class:"text-sm text-center"},"Share to Twitter",-1)),e("a",{class:"twitter-share-button",href:"https://twitter.com/intent/tweet?hashtags=myfive&text=Projected%20Net%20Rating:%20"+n(L)+"%0aLineup:%20"+n($)+"%0a%0aCreated%20via%20the%20@craftedNBA%20lineup%20builder.%20Who%20is%20in%20your%20five?%0a%0ahttps://craftednba.com/hall-of-fame/historical-five",target:"_blank"},[e("img",{src:n(G),alt:"twitter logo",class:"w-16 h-12 cursor-pointer p-2 hover:opacity-75 mx-auto"},null,8,Qe)],8,We)]),n(l).output?p("",!0):(o(),i("div",Ge,[t[11]||(t[11]=e("h4",{class:"text-sm text-center"},"Shareable Image",-1)),!n(l).output&&n(l).showLoader?(o(),i("div",Ue)):p("",!0),e("img",{src:n(O),onClick:t[1]||(t[1]=s=>(n(l).showLoader=!n(l).showLoader,re())),alt:"twitter logo",class:"w-16 h-12 cursor-pointer p-2 hover:opacity-75 z-10 mx-auto"},null,8,Xe)]))])])])])]),_:1})):p("",!0),e("div",Ke,[e("div",Ye,[e("div",Je,[t[17]||(t[17]=e("h2",{class:"mb-6"},"Lineup",-1)),e("div",null,[e("div",Ze,[t[12]||(t[12]=e("h3",null,"Budget Remaining",-1)),e("h4",null,"$"+h(n(w)),1)]),e("div",et,[(o(!0),i(B,null,j(n(l).lineup,s=>(o(),i("div",{key:s.slug,onClick:c=>(z(s),R(s)),class:"selected-player relative w-full flex items-center justify-between cursor-pointer bg-tan-med py-2 border-slate-med border-b-2"},[e("div",lt,[t[13]||(t[13]=e("div",{class:"pl-4"},"Remove",-1)),e("img",{src:n(W),class:"traish h-8 pr-4"},null,8,st)]),s.Rank<166?(o(),i("img",{key:0,loading:"lazy",class:"headshot w-12 pr-2 inline-block",src:"/hall/"+s.Slug+".jpg"},null,8,at)):(o(),i("img",{key:1,loading:"lazy",class:"headshot w-12 pr-2 inline-block",src:n(F),width:"225",height:"280"},null,8,nt)),e("span",rt,h(s.Player),1),e("span",ot,"$"+h(s.LineupValue),1)],8,tt))),128)),n(l).lineup.length<1?(o(),i("div",it,[...t[14]||(t[14]=[e("span",null,"Player 1",-1)])])):p("",!0),n(l).lineup.length<2?(o(),i("div",ut," Player 2 ")):p("",!0),n(l).lineup.length<3?(o(),i("div",dt," Player 3 ")):p("",!0),n(l).lineup.length<4?(o(),i("div",ct," Player 4 ")):p("",!0),n(l).lineup.length<5?(o(),i("div",pt," Player 5 ")):p("",!0)])]),C(e("div",{class:"submit text-tan-light transition duration-500 ease-in-out",onClick:t[2]||(t[2]=s=>n(l).showModal=!0)},[...t[15]||(t[15]=[e("span",{class:"w-full font-bold text-tan-light text-xl text-center inline-block py-3 px-6 bg-blue-med hover:bg-blue-dark cursor-pointer"},"Submit Lineup",-1)])],512),[[M,n(l).lineup.length===5&&+n(w)>=0]]),C(e("div",mt,[...t[16]||(t[16]=[e("span",{class:"w-full font-bold text-tan-light text-xl text-center inline-block py-3 px-6 bg-red-dark"},"¡ Over Budget !",-1)])],512),[[M,+n(w)<0]]),t[18]||(t[18]=e("div",null,null,-1))]),e("div",ht,[e("div",null,[t[19]||(t[19]=e("h2",{class:"mb-6"},"Players",-1)),C(e("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>ye(x)?x.value=s:null),type:"search",placeholder:"Search"},null,512),[[fe,n(x)]])]),C(e("div",ft,[n(l).tooMany?(o(),i("div",yt,[e("div",bt,[e("div",gt,[t[20]||(t[20]=e("h4",{class:"p-8"}," You already have 5 players in your lineup. Click on any player in your lineup to remove them. ",-1)),e("div",{onClick:t[4]||(t[4]=s=>n(l).tooMany=!1),class:"close text-xl font-bold cursor-pointer absolute"}," X ")])])])):p("",!0),e("div",vt,[n(l).lineup.length>=1?(o(),i("div",wt,[e("div",xt," $"+h(n(w))+" remaining ",1),t[21]||(t[21]=e("a",{class:"btn",href:"#lineup"},"Go to Lineup",-1))])):p("",!0),(o(!0),i(B,null,j(n(ne),({item:s})=>(o(),i("div",{key:s.Slug||s.ID,class:"w-1/2 sm:w-1/3 lg:w-1/5 mb-6 px-2"},[e("div",{class:be(["player-wrapper cursor-pointer px-4 pt-5 pb-4 bg-tan-medlight",{active:Z(s)}]),onClick:c=>Y(s)},[e("div",kt,[S(s)&&s.Rank<166&&!n(v)[s.Slug]?(o(),i("img",{key:0,loading:"lazy",class:"headsh
1ot w-28 px-2 inline-block",src:"/hall/"+s.Slug+".jpg",width:"225",height:"280",onError:c=>A(s.Slug)},null,40,Ct)):(o(),i("img",{key:1,loading:"lazy",class:"headshot w-28 px-2 inline-block",src:n(F),width:"225",height:"280"},null,8,Ft))]),e("div",null,[e("h5",St,h(s.Player),1),e("span",Lt,"$"+h(s.LineupValue),1),e("img",{class:"star w-8",src:n(Q)},null,8,Pt)]),e("div",Bt,[e("a",jt,h(V(s)?"Remove from Lineup":"Add to Lineup"),1)])],10,_t)]))),128))])],512),[[M,n(l).activeIndex===0]])])])])]))}}),Tt=ve(Mt,[["__scopeId","data-v-c99eb98f"]]);export{Tt 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.