1import{d as w,a as z,w as A,o as r,m as o,p as e,h as _,u as g,z as a,y as l,s as S,F as p,D as b,e as T,n as B,f as K,R as N}from"./vue-vendor-BEw7Nk99.js";import{u as R}from"./masterAngler.store-_YvDEkCY.js";import{C as F}from"./masterAngler-D0E2Aund.js";import{s as L}from"./ui-vendor-DTDyoFMc.js";import"./index-BRww0xrn.js";import"./utils-vendor-DPqT3GCA.js";const M={class:"min-h-half-screen w-full flex justify-center p-5 bg-gray-100"},V={class:"w-full max-w-5xl"},E={class:"text-3xl font-bold text-center my-4"},G={key:0,class:"bg-red-100 border border-red-300 text-red-800 p-4 my-4 rounded"},$={class:"text-sm font-normal text-gray-500"},j={key:0,class:"italic text-gray-600"},D={key:1,class:"divide-y divide-gray-200"},O={class:"text-xs text-gray-600"},P=w({__name:"MasterAnglerCategory",props:{categoryKey:{}},setup(k){const y=k,c=R(),C=[{key:"gold",label:"Gold",headingClass:"text-yellow-600"},{key:"silver",label:"Silver",headingClass:"text-gray-500"},{key:"bronze",label:"Bronze",headingClass:"text-amber-700"}],m=T(()=>c.categoryTiers);function u(d){var t,i;return(i=(t=m.value)==null?void 0:t[d])!=null?i:[]}function v(d,t){return d?`/world-record/angler-by-id/${encodeURIComponent(d)}`:`/world-record/angler/${encodeURIComponent(t)}`}function f(){F.includes(y.categoryKey)&&c.getCategoryTiers(y.categoryKey)}return z(f),A(()=>y.categoryKey,f),(d,t)=>{var i,h;return r(),o("div",M,[e("div",V,[_(g(L),{active:g(c).loading,"can-cancel":!1,"is-full-page":!1},null,8,["active"]),e("h1",E,a((h=(i=m.value)==null?void 0:i.categoryLabel)!=null?h:"Master Angler Category"),1),t[0]||(t[0]=e("p",{class:"text-center text-gray-600 mb-4"},[l(" Anglers are recognized at three tiers in this category: "),e("strong",null,"Bronze"),l(" (3+), "),e("strong",null,"Silver"),l(" (6+), "),e("strong",null,"Gold"),l(" (9+). ")],-1)),g(c).error?(r(),o("section",G,a(g(c).error),1)):S("",!0),(r(),o(p,null,b(C,s=>e("section",{key:s.key,class:"bg-white rounded-lg shadow-sm p-6 my-4"},[e("h2",{class:B(["text-2xl font-semibold mb-4",s.headingClass])},[l(a(s.label)+" Tier ",1),e("span",$," · "+a(u(s.key).length),1)],2),u(s.key).length===0?(r(),o("div",j," No "+a(s.label)+" Tier holders at this time. ",1)):(r(),o("ul",D,[(r(!0),o(p,null,b(u(s.key),n=>{var x;return r(),o("li",{key:((x=n.re_id)!=null?x:"")+":"+n.name,class:"py-1 flex justify-between"},[_(g(N),{to:v(n.re_id,n.name),class:"text-blue-600 hover:underline"},{default:K(()=>[l(a(n.name),1)]),_:2},1032,["to"]),e("span",O,a(n.count),1)])}),128))]))])),64))])])}}});export{P 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.