PageSourceSearch

https://gym.az/build/assets/RankingHeader-AWlmzd8D.js

js gym.az collected 2026-10-10 02:10:20 UTC 2,825 bytes, 1 lines download raw bytes

1import{h as g,d as c,o as r,a as t,t as i,b as x,u as _,F as w,g as $,c as p,r as m,k as R,i as b,at as B,j as h,l as N,e as v,w as C,f as F,_ as V}from"./app-BeqXpd_S.js";import{_ as j}from"./index-DZYvRYJY.js";import{f as Q}from"./index-DUCn4ETo.js";import{u as S}from"./useQuery-WqvzN14L.js";import{_ as T}from"./index-DizaTEBY.js";const q={class:"grid grid-cols-12 items-center"},H={class:"col-span-1 text-left font-bold text-lg sm:text-2xl italic"},I={class:"col-span-9"},L={class:"flex items-center gap-2 sm:gap-6"},P=["src"],z={class:"text-left font-medium line-clamp-1"},E={class:"col-span-2 flex gap-1 items-center justify-end"},K={class:"text-lg sm:text-2xl font-medium"},M={class:"text-lg sm:text-2xl font-medium text-neutral-400"},A=g({__name:"RankingTableRow",props:{row:{}},setup(a){return(e,n)=>(r(),c("div",q,[t("div",H,i(e.row.rank)+". ",1),t("div",I,[t("div",L,[t("div",null,[t("img",{class:"w-16 rounded-xl",src:e.row.photo_url,alt:""},null,8,P)]),t("div",z,i(e.row.name),1)])]),t("div",E,[x(_(j),{icon:"IconStarFilled",color:"orange"}),t("span",K,i(e.row.rating),1),t("span",M,"("+i(e.row.reviews_count)+")",1)])]))}}),G={class:"divide-y divide-y-neutral-100"},J=g({__name:"RankingTable",props:{rows:{}},setup(a){return(e,n)=>(r(),c("div",G,[(r(!0),c(w,null,$(e.rows,l=>(r(),p(A,{key:l.id,row:l,class:"py-6 first:pt-0 last:pb-0"},null,8,["row"]))),128))]))}});function O({page:a=m(1),model:e}){return S({queryKey:["ranking",a,e],queryFn:async()=>{const n=await Q(`/ranking/${e.value}`,{params:{page:a.value.toString()}}),{data:l,meta:u,links:d}=n;return{data:l,meta:u,links:d}},placeholderData:R})}const U={class:"space-y-6"},W={class:"flex justify-center"},re=g({__name:"RankingQueryHandler",props:{type:{},paginate:{type:Boolean}},setup(a){const e=m(1),n=m([]),{locale:l}=b(),{data:u,isLoading:d}=O({page:e,model:B(()=>a.type)}),k=h(()=>{var s;return((s=u.value)==null?void 0:s.links.next)!==null});N(u,s=>{s!=null&&s.data&&(n.value=[...n.value,...s.data])},{immediate:!0});const y=h(()=>{var s;return(s=n.value)!=null&&s.length?n.value.map((o,f)=>({id:o.id,rank:f+1,rating:o.rating,name:o.name[l.value],url:route("gyms.show",o.slug),photo_url:o.photo_url,reviews_count:o.reviews_count})):[]});return(s,o)=>(r(),c("div",U,[n.value?(r(),p(J,{key:0,rows:y.value},null,8,["rows"])):v("",!0),t("div",W,[k.value&&s.paginate?(r(),p(_(T),{key:0,onClick:o[0]||(o[0]=f=>e.value++),size:"sm",intent:"light",loading:_(d)},{default:C(()=>[F(i(s.$t("common.actions.loadMore")),1)]),_:1},8,["loading"])):v("",!0)])]))}}),X={},Y={class:"space-y-6"},Z={class:"text-4xl font-bold italic text-burning-orange"},D={class:"text-xl"};function ee(a,e){return r(),c("div",Y,[t("h3",Z,i(a.$t("modules.ranking.title")),1),t("p",D,i(a.$t("modules.ranking.description")),1)])}const ie=V(X,[["render",ee]]);export{ie as R,re as _};

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.