PageSourceSearch

https://criticdb.com/_nuxt/DDokVvUH.js

js criticdb.com collected 2026-09-25 06:10:24 UTC 4,425 bytes, 1 lines download raw bytes

1import{Q as $,I as z,c as l,a as o,F as h,r as x,b as n,d as i,R as I,m as b,q as c,s as r,x as L,e as w,i as P,t as d,g as E,S as F,_ as T}from"./DVPCUeIP.js";import{_ as G}from"./Dw5x4Jsb.js";import{_ as q}from"./f09cN7c0.js";import{f as A}from"./CUgs6qed.js";import{getFullImageUrl as M}from"./BllLcC3l.js";import"./ChJr-bms.js";import"./CkgD-rZI.js";const Q={key:0,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},H={key:1,class:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4"},J={class:"relative h-56"},K=["src","alt"],O={class:"absolute top-0 right-0 m-2 p-1 bg-gray-900 bg-opacity-75 rounded"},W={class:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-gray-900 to-transparent p-2"},X={class:"p-3 flex-grow flex flex-col"},Y={class:"text-xs text-gray-400 mb-2"},Z={class:"text-gray-300 text-sm mb-3 flex-grow"},ee=["href"],te={key:2,class:"text-white"},oe={class:"mt-8 flex justify-center p-6"},g=10,ge={__name:"ReviewSection",setup(se){const y=I(),u=b(""),a=b(1),{data:m,pending:k,error:ae,refresh:R}=$("outlet-reviews",()=>$fetch(`/api/outlets/${y.params.slug}`,{params:{page:a.value,search:u.value,pageSize:g}}),{watch:[a,u],transform:t=>({reviews:t.reviews,totalReviews:t.totalReviews})}),v=c(()=>m.value?.reviews||[]),p=c(()=>m.value?.totalReviews||0),C=c(()=>Math.ceil(p.value/g)),U=c(()=>k.value);z([a,u],()=>{R()});function D(t){return t>=7.5?"text-green-500":t>=5?"text-yellow-500":"text-red-500"}function N(t,s){return t?t.length<=s?t:t.slice(0,s-1)+"...":""}function S(t){t!==a.value&&(a.value=t,window.scrollTo({top:0,behavior:"smooth"}))}function V(t){t.target.src="https://cdn.criticdb.com/storage/v1/object/public/gamecards/CDB_1.png"}return(t,s)=>{const B=F,_=T,f=G,j=q;return r(),l("div",null,[s[3]||(s[3]=o("h2",{class:"text-2xl font-bold mb-4"},"Latest Reviews",-1)),U.value?(r(),l("div",Q,[(r(),l(h,null,x(10,e=>o("div",{key:e,class:"bg-gray-800 rounded-lg p-4 shadow animate-pulse"},[...s[1]||(s[1]=[L('<div class="flex justify-between items-start mb-2"><div class="h-6 bg-gray-700 rounded w-3/4"></div><div class="h-6 bg-gray-700 rounded w-1/5"></div></div><div class="flex items-center mb-2"><div class="h-4 bg-gray-700 rounded w-1/4 mr-2"></div><div class="h-4 bg-gray-700 rounded w-1/4"></div></div><div class="h-20 bg-gray-700 rounded mb-4"></div><div class="h-4 bg-gray-700 rounded w-1/4"></div>',4)])])),64))])):v.value.length>0?(r(),l("div",H,[(r(!0),l(h,null,x(v.value,e=>(r(),l("div",{key:e.id,class:"bg-gray-800 rounded-lg overflow-hidden shadow flex flex-col"},[o("div",J,[o("img",{src:w(M)(e.game?.header_image)||"https://cdn.criticdb.com/storage/v1/object/public/gamecards/CDB_1.png",alt:`${e.game?.name||"Unknown Game"} cover`,class:"w-full h-full object-cover",onError:V},null,40,K),o("div",O,[o("span",{class:P(["text-xl font-bold",D(e.original_score)])},d(e.original_score),3)]),o("div",W,[n(B,{to:`/games/${e.game?.slug}`,class:"text-lg font-semibold text-white hover:text-blue-300 transition-colors duration-200"},{default:i(()=>[E(d(e.game?.name||"Unknown Game"),1)]),_:2},1032,["to"])])]),o("div",X,[o("div",Y,[o("span",null,d(e.author?.name||"Unknown"),1),s[2]||(s[2]=o("span",{class:"mx-1"},"•",-1)),o("span",null,d(("formatReviewDate"in t?t.formatReviewDate:w(A))(e.review_date)),1)]),o("p",Z,d(N(e.summary,80)),1),o("a",{href:e.review_url,target:"_blank",rel:"noopener noreferrer",class:"text-blue-400 hover:underline hover:text-blue-300 transition-colors duration-200 mt-auto text-sm"}," Read full review ",8,ee)])]))),128))])):(r(),l("div",te,"No reviews found.")),o("div",oe,[n(j,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=e=>a.value=e),total:p.value,"page-count":g,ui:{rounded:"first-of-type:rounded-s-md last-of-type:rounded-e-md",default:{size:"sm",color:"white"}},onChange:S},{prev:i(({onClick:e})=>[n(f,{text:"Previous page"},{default:i(()=>[n(_,{icon:"i-heroicons-arrow-small-left-20-solid",color:"white",ui:{rounded:"rounded-full"},class:"rtl:[&_span:first-child]:rotate-180 me-2",onClick:e,disabled:a.value===1},null,8,["onClick","disabled"])]),_:2},1024)]),next:i(({onClick:e})=>[n(f,{text:"Next page"},{default:i(()=>[n(_,{icon:"i-heroicons-arrow-small-right-20-solid",color:"white",ui:{rounded:"rounded-full"},class:"rtl:[&_span:last-child]:rotate-180 ms-2",onClick:e,disabled:a.value===C.value},null,8,["onClick","disabled"])]),_:2},1024)]),_:1},8,["modelValue","total"])])])}}};export{ge 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.