1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22476,e=>{"use strict";var t=e.i(43476),a=e.i(57688),l=e.i(22016),s=e.i(78761),n=e.i(26999),r=e.i(71645),i=e.i(12598),o=e.i(89853),c=e.i(31278),d=e.i(41071),m=e.i(7233),x=e.i(37727),u=e.i(90597),p=e.i(70273),h=e.i(86311);let f=(0,e.i(75254).default)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var b=e.i(1851),g=e.i(48148),v=e.i(91039),j=e.i(53564),y=e.i(64998),N=e.i(66610),w=e.i(49838),S=e.i(751),C=e.i(96919),k=e.i(66907),T=e.i(58466),L=e.i(67240),O=e.i(55436),P=e.i(64174),E=e.i(37355),_=e.i(21482),A=e.i(43531),R=e.i(64659);function D({selectedIds:e,onChange:a,searchPlaceholder:l,locale:s}){let[n,i]=(0,r.useState)(""),o=(0,r.useRef)(null),{data:c,fetchNextPage:d,hasNextPage:m,isFetchingNextPage:x}=(0,_.useInfiniteQuery)({queryKey:N.queryKeys.game.categories({keyword:n}).queryKey,queryFn:({pageParam:e=1})=>(0,v.fetchGameCategories)({page:e,size:20,keyword:n||void 0}),getNextPageParam:(e,t)=>e.last?void 0:t.length+1,initialPageParam:1,staleTime:3e5}),u=(0,r.useMemo)(()=>c?.pages.flatMap(e=>e.content)??[],[c]),p=(0,r.useCallback)(()=>{let e=o.current;e&&m&&!x&&e.scrollTop+e.clientHeight>=e.scrollHeight-40&&d()},[m,x,d]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"border-b border-neutral-100 p-2",children:(0,t.jsxs)("label",{className:"relative block",children:[(0,t.jsx)("input",{value:n,onChange:e=>i(e.target.value),placeholder:l,className:"h-10 w-full rounded-lg border border-transparent bg-neutral-100 pl-4 pr-9 text-sm outline-none transition focus:border-primary"}),(0,t.jsx)(O.Search,{className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-neutral-400"})]})}),(0,t.jsxs)("div",{ref:o,onScroll:p,className:"max-h-64 overflow-y-auto py-1",children:[u.map(l=>{let s=e.includes(l.id);return(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=l.id,void(e.includes(t)?a(e.filter(e=>e!==t)):a([...e,t]))},className:(0,w.cn)("flex w-full cursor-pointer items-center justify-between px-4 py-2.5 text-sm outline-none transition-colors",s?"bg-neutral-100 font-semibold text-black":"text-neutral-700 hover:bg-neutral-50"),children:[(0,t.jsx)("span",{children:l.name}),s&&(0,t.jsx)(A.Check,{className:"h-[14px] w-[14px] text-primary",strokeWidth:2.5})]},l.id)}),x&&(0,t.jsx)("div",{className:"flex items-center justify-center py-2",children:(0,t.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-neutral-300 border-t-primary"})}),0===u.length&&!x&&(0,t.jsx)("div",{className:"px-4 py-3 text-center text-sm text-neutral-400",children:"-"})]})]})}function z({selectedIds:e,onChange:a,label:l,selectedLabel:n,allLabel:i,searchPlaceholder:o,locale:c}){let[d,m]=(0,r.useState)(!1),u=function(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>t(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}(),p=(0,w.cn)("flex min-h-[44px] w-full items-center justify-between rounded-xl px-4 text-left text-sm font-medium text-black","border border-neutral-300 bg-neutral-50"),h=(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"mb-0.5 text-[11px] font-normal leading-3 text-neutral-500",children:l}),(0,t.jsx)("div",{className:"truncate text-sm font-semibold leading-4 text-black",children:e.length>0&&n?n:i||l})]});return u?(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>m(!0),className:p,children:[h,(0,t.jsx)(R.ChevronDown,{className:(0,w.cn)("h-[14px] w-[14px] flex-none text-neutral-500 transition-transform",d&&"rotate-180"),strokeWidth:2.25})]}),d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-40 bg-black/40",role:"presentation",onClick:()=>m(!1),onKeyDown:e=>{"Escape"===e.key&&m(!1)}}),(0,t.jsxs)("div",{className:"fixed bottom-0 left-0 right-0 z-50 rounded-t-2xl bg-white pb-safe",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-5 py-4",children:[(0,t.jsx)("span",{className:"text-base font-semibold text-black",children:l}),(0,t.jsx)("button",{type:"button",onClick:()=>m(!1),className:"flex h-8 w-8 items-center justify-center rounded-full bg-neutral-100",children:(0,t.jsx)(x.X,{
1className:"h-4 w-4 text-neutral-600"})})]}),(0,t.jsx)("div",{className:"border-t border-neutral-100",children:(0,t.jsx)(D,{selectedIds:e,onChange:a,searchPlaceholder:o,locale:c})})]})]})]}):(0,t.jsx)("div",{children:(0,t.jsxs)(s.Root,{open:d,onOpenChange:m,children:[(0,t.jsx)(s.Trigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",className:p,children:[h,(0,t.jsx)(R.ChevronDown,{className:(0,w.cn)("h-[14px] w-[14px] flex-none text-neutral-500 transition-transform",d&&"rotate-180"),strokeWidth:2.25})]})}),(0,t.jsx)(s.Portal,{children:(0,t.jsx)(s.Content,{sideOffset:8,collisionPadding:8,className:"z-50 w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-lg",children:(0,t.jsx)(D,{selectedIds:e,onChange:a,searchPlaceholder:o,locale:c})})})]})})}function M({categories:e,maxVisible:a=5,onRemove:l,moreLabel:s="...and __count__ more",expandLabel:n="Show all",collapseLabel:i="Collapse",favoriteCategories:o,favoriteLabel:c,recommendedCategories:d,onAdd:m,recommendedLabel:u}){let[p,h]=(0,r.useState)(!1),f=(0,r.useMemo)(()=>new Set(e.map(e=>e.id)),[e]),b=(0,r.useMemo)(()=>o?.length?o.filter(e=>!f.has(e.id)):[],[o,f]),g=(0,r.useMemo)(()=>{if(!d?.length)return[];let e=new Set(b.map(e=>e.id));return d.filter(t=>!f.has(t.id)&&!e.has(t.id))},[d,f,b]),v=b.length>0&&m,j=g.length>0&&m,y=e.length>0;if(!v&&!j&&!y)return null;let N=p?e:e.slice(0,a),w=e.length-a;return(0,t.jsxs)("div",{className:"mt-2 space-y-1.5",children:[v&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[c&&(0,t.jsx)("span",{className:"text-xs font-medium text-yellow-600",children:c}),b.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>m(e.id),className:"inline-flex items-center rounded-full border border-yellow-400 bg-yellow-50 px-2.5 py-1 text-xs font-medium text-yellow-700 transition-colors hover:bg-yellow-100",children:["#",e.name]},e.id))]}),j&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[u&&(0,t.jsx)("span",{className:"text-xs font-medium text-neutral-500",children:u}),g.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>m(e.id),className:"inline-flex items-center rounded-full border border-primary/30 px-2.5 py-1 text-xs font-medium text-primary/80 transition-colors hover:bg-primary/10 hover:text-primary",children:["#",e.name]},e.id))]}),y&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[N.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-primary/10 px-2.5 py-1 text-xs font-medium text-primary",children:["#",e.name,(0,t.jsx)("button",{type:"button",onClick:()=>l(e.id),className:"flex h-3.5 w-3.5 items-center justify-center rounded-full transition-colors hover:bg-primary/20","aria-label":`Remove ${e.name}`,children:(0,t.jsx)(x.X,{className:"h-2.5 w-2.5"})})]},e.id)),!p&&w>0&&(0,t.jsx)("button",{type:"button",onClick:()=>h(!0),className:"text-xs font-medium text-neutral-500 transition-colors hover:text-primary",children:s?.replace("__count__",String(w))}),p&&e.length>a&&(0,t.jsx)("button",{type:"button",onClick:()=>h(!1),className:"text-xs font-medium text-neutral-500 transition-colors hover:text-primary",children:i})]})]})}let I=0;function F({mode:e,defaultTabLabel:a,favoriteLabel:s,isFavorite:n,viewTabs:i,searchKeyword:o,platform:c,region:d,searchPlaceholder:m,platformLabel:u,regionLabel:p,platformOptions:h,regionOptions:f,onChangeSearchKeyword:b,onChangePlatform:g,onToggleFavorite:v,onChangeRegion:j,categoryIds:y=[],onChangeCategoryIds:N,categoryLabel:S="",categorySelectedLabel:C,categoryAllLabel:k,categorySearchPlaceholder:T="",locale:_="ko",selectedCategoryNames:A=[],categoryBadgeMoreLabel:R,categoryBadgeExpandLabel:D,categoryBadgeCollapseLabel:G,favoriteCategories:$,favoriteCategoriesLabel:K,recommendedCategories:q,recommendedCategoriesLabel:B,sortType:H,sortTypeOptions:X,onChangeSortType:Q,onResetFilters:W,resetFiltersLabel:U,favoriteStatus:Y,favoriteStatusOptions:V,favoriteStatusLabel:J,onChangeFavoriteStatus:Z}){let ee=(0,r.useRef)([]),[et,ea]=(0,r.useState)({width:0,transform:"translateX(0px)"}),el=(0,r.useRef)(!1),es=h.find(e=>e.value===c)?.label??h[0]?.label??c,en=i?n?i.length:i.findIndex(e=>e.active):+!!n,er=f.find(e=>e.value===d)?.label??f[0]?.label??d;return(0,r.useLayoutEffect)(()=>
1{if("favorite"===e)return;let t=ee.current[en];if(t){if(el.current)ea({width:t.offsetWidth,transform:`translateX(${t.offsetLeft}px)`});else{let e=ee.current[I];e&&e!==t?(ea({width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`}),requestAnimationFrame(()=>{el.current=!0,ea({width:t.offsetWidth,transform:`translateX(${t.offsetLeft}px)`})})):(ea({width:t.offsetWidth,transform:`translateX(${t.offsetLeft}px)`}),requestAnimationFrame(()=>{el.current=!0}))}I=en}},[e,en,a,s,i]),(0,r.useEffect)(()=>{if("favorite"===e)return;let t=()=>{let e=ee.current[en];e&&ea({width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e,en]),(0,t.jsxs)("div",{className:(0,w.cn)("relative mb-8",X?"mt-6":"mt-0"),children:[X&&Q&&(0,t.jsx)("div",{className:"mb-2 flex justify-end md:absolute md:-top-8 md:right-0 md:mb-0",children:(0,t.jsx)(P.BrowseSortButtons,{value:H??"",onChange:Q,options:X})}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 roun
1ded-2xl border border-neutral-200 bg-white px-4 py-3 md:px-5 md:py-3.5",children:["favorite"!==e?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"relative flex shrink-0",children:[(0,t.jsx)("div",{className:(0,w.cn)("absolute inset-y-0 left-0 rounded-full bg-black",el.current&&"transition-[transform,width] duration-300 ease-out"),style:et}),i?(0,t.jsxs)(t.Fragment,{children:[i.map((e,a)=>(0,t.jsx)(l.default,{href:e.href,ref:e=>{ee.current[a]=e},onClick:t=>{n&&e.active&&(t.preventDefault(),v?.())},className:(0,w.cn)("relative z-10 ml-1 flex items-center justify-center rounded-full px-2 py-1.5 text-xs whitespace-nowrap transition-colors md:ml-2 md:px-3 md:text-base",e.active&&!n?"font-bold text-white":"font-normal text-neutral-500 hover:bg-neutral-200 hover:text-black"),children:e.label},e.key)),s&&(0,t.jsx)("button",{type:"button",ref:e=>{ee.current[i.length]=e},onClick:()=>v?.(),className:(0,w.cn)("relative z-10 ml-1 flex items-center justify-center whitespace-nowrap rounded-full px-2 py-1.5 text-xs transition-colors md:ml-2 md:px-3 md:text-base",n?"font-bold text-white":"font-normal text-neutral-500 hover:bg-neutral-200 hover:text-black"),children:s})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",ref:e=>{ee.current[0]=e},onClick:()=>{n&&v?.()},className:(0,w.cn)("relative z-10 ml-2 flex items-center justify-center rounded-full px-3 py-1.5 text-xs whitespace-nowrap transition-colors md:text-base",n?"font-normal text-neutral-500 hover:bg-neutral-200 hover:text-black":"font-bold text-white"),children:a}),(0,t.jsx)("button",{type:"button",ref:e=>{ee.current[1]=e},onClick:()=>v?.(),className:(0,w.cn)("relative z-10 ml-2 flex items-center justify-center whitespace-nowrap rounded-full px-3 py-1.5 text-xs transition-colors md:text-base",n?"font-bold text-white":"font-normal text-neutral-500 hover:bg-neutral-200 hover:text-black"),children:s})]})]}),W&&(0,t.jsxs)("button",{type:"button",onClick:W,className:"inline-flex shrink-0 items-center gap-1 text-xs text-neutral-400 transition-colors hover:text-neutral-600",children:[(0,t.jsx)(L.RotateCcw,{className:"h-3 w-3"}),U]})]}):null,(0,t.jsxs)("label",{className:"relative block",children:[(0,t.jsx)("input",{value:o,onChange:e=>b(e.target.value),placeholder:m,className:"h-11 w-full rounded-2xl border border-primary/20 bg-primary/5 pl-6 pr-[52px] text-sm text-black outline-none transition focus:border-primary"}),o?(0,t.jsx)("button",{type:"button",onClick:()=>b(""),className:"absolute right-12 top-1/2 -translate-y-1/2 text-neutral-400 transition hover:text-neutral-700","aria-label":"Clear search",children:(0,t.jsx)(x.X,{className:"h-3.5 w-3.5"})}):null,(0,t.jsx)(O.Search,{className:"pointer-events-none absolute right-6 top-1/2 h-5 w-5 -translate-y-1/2 text-neutral-400"})]}),(0,t.jsxs)("div",{className:(0,w.cn)("grid grid-cols-1 gap-3",N&&Z?"md:grid-cols-4":N||Z?"md:grid-cols-3":"md:grid-cols-2"),children:[Z&&V&&(0,t.jsx)(E.SearchableSelect,{label:J??"",value:V.find(e=>e.value===(Y??""))?.label??V[0]?.label??"",options:V,onSelect:Z}),N&&(0,t.jsx)(z,{selectedIds:y,onChange:N,label:S,selectedLabel:C,allLabel:k,searchPlaceholder:T,locale:_}),(0,t.jsx)(E.SearchableSelect,{label:u,value:es,options:h,searchable:!0,searchPlaceholder:u,onSelect:g}),(0,t.jsx)(E.SearchableSelect,{label:p,value:er,options:f,searchable:!0,searchPlaceholder:p,onSelect:j})]})]}),N&&(A.length>0||$&&$.length>0||q&&q.length>0)&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(M,{categories:A,onRemove:e=>N(y.filter(t=>t!==e)),moreLabel:R,expandLabel:D,collapseLabel:G,favoriteCategories:$,favoriteLabel:K,recommendedCategories:q,onAdd:e=>N([...y,e]),recommendedLabel:B})})]})}var G=e.i(49529),$=e.i(50130),K=e.i(24700),q=e.i(32171),B=e.i(46577);let H={PC:{icon:"/assets/icon/platform/icon-pc.svg",label:"PC"},MOBILE:{icon:"/assets/icon/platform/icon-mobile.svg",label:"Mobile"},NS:{icon:"/assets/icon/platform/icon-ns.png",label:"Nintendo Switch"},PS:{icon:"/assets/icon/platform/icon-ps.png",label:"PlayStation"}},X={GOOGLE_PLAY_STORE:{icon:"/assets/icon/platform/icon-googlepay.svg",label:"Google Play"},APP_STORE:{icon:"/assets/icon/platform/icon-appstore.jpg",label:"App Store"},ONE_STORE:{icon:"/assets/icon/platform/icon-onestore.png",label:"One Store"},STOVE:{icon:"/assets/icon/platform/icon-stove.png",label:"Stove"},STEAM:{icon:"/assets/icon/platform/icon-steam.png",label:"Steam"},TAP_TAP:{icon:"/assets/icon/platform/icon-taptap.svg",label:"TapTap"},NINTENDO_STORE:{icon:"/assets/icon/platform/icon-nintendo.png",label:"Nintendo Store"},PLAYSTATION_STORE:{icon:"/assets/icon/platform/icon-playstationstore.jpg",label:"PlayStation Store"},GALAXY_STORE:{icon:"/assets/icon/platform/icon-galaxystore.svg",label:"Galaxy Store"},MICROSOFT_STORE:{icon:"/assets/icon/platform/icon-microsoftstore.svg",label:"Microsoft Store"},EPIC_GAMES_STORE:{icon:"/assets/icon/platform/icon-epicgames.png",label:"Epic Games"},NEXON:{icon:"/assets/icon/platform/icon-nexon.png",label:"Nexon"},ITCH_IO:{icon:"/assets/icon/platform/icon-itchio.svg",label:"itch.io"}};function Q({item:e,className:l,size:n="md"}){let[i,o]=(0,r.useState)(!1);return(0,t.jsxs)(s.Root,{open:i,children:[(0,t.jsx)(s.Anchor,{asChild:!0,children:(0,t.jsx)("div",{role:"presentation",className:(0,w.cn)("relative overflow-hidden rounded","sm"===n?"h-4 w-4":"h-5 w-5",l),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:(0,t.jsx)(a.default,{src:e.icon,alt:e.label,fill:!0,sizes:"sm"===n?"16px":"20px",className:e.icon.startsWith("http")?"object-cover":"object-contain"})})}),(0,t.jsx)(s.Portal,{children:(0,t.jsx)(s.Content,{side:"top",sideOffset:4,onOpenAutoFocus:e=>e.preventDefault(),className:"z-[80] rounded border border-[#2C3F53] bg-[#121D29] px-2 py-1 text-xs text-white shadow-[0_12px_32px_rgba(0,0,0,0.32)]",children:e.label})})]})}function W({items:e,size:a="md"}){return e.length?(0,t.jsx)("div",{className:"flex items-center gap-1",children:e.map(e=>(0,t.jsx)(Q,{item:e,size:a},e.icon))}):(0,t.jsx)("span",{"aria-hidden":"true"})}let U={GOOGLE_PLAY_STORE:{icon:"/assets/icon/platform/icon-googlepay.svg",label:"Google Play"},APP_STORE:{icon:"/assets/icon/platform/icon-appstore.jpg",label:"App Store"},ONE_STORE:{icon:"/assets/icon/platform/icon-onestore.png",label:"One Store"},STOVE:{icon:"/assets/icon/platform/icon-stove.png",label:"Stove"},STEAM:{icon:"/assets/icon/platform/icon-steam.png",label:"Steam"},TAP_TAP:{icon:"/assets/icon/platform/icon-taptap.svg",label:"TapTap"},NINTENDO_STORE:{icon:"/assets/icon/platform/icon-nintendo.png",label:"Nintendo Store"},PLAYSTATION_STORE:{icon:"/assets/icon/platform/icon-playstationstore.jpg",label:"PlayStation Store"},GALAXY_STORE:{icon:"/assets/icon/platform/icon-galaxystore.svg",label:"Galaxy Store"},MICROSOFT_STORE:{icon:"/assets/icon/platform/icon-microsoftstore.svg",label:"Microsoft Store"},EPIC_GAMES_STORE:{icon:"/assets/icon/platform/icon-epicgames.png",label:"Epic Games"},NEXON:{icon:"/assets/icon/platform/icon-nexon.png",label:"Nexon"},ITCH_IO:{icon:"/assets/icon/platform/icon-itchio.svg",label:"itch.io"}};function Y({icon:e,label:l}){let[n,i]=(0,r.useState)(!1);return(0,t.jsxs)(s.Root,{open:n,children:[(0,t.jsx)(s.Anchor,{asChild:!0,children:(0,t.jsx)("div",{role:"presentation",className:"relative h-5 w-5 overflow-hidden rounded",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:(0,t.jsx)(a.default,{src:e,alt:l,fill:!0,sizes:"20px",className:"object-contain"})})}),(0,t.jsx)(s.Portal,{children:(0,t.jsx)(s.Content,{side:"top",sideOffset:4,onOpenAutoFocus:e=>e.preventDefault(),className:"z-[100] rounded border border-[#2C3F53] bg-[#121D29] px-2 py-1 text-xs text-white shadow-[0_12px_32px_rgba(0,0,0,0.32)]",children:l})})]})}function V({open:e,onOpenChange:a,gameId:l,locale:s,gameTitle:o,scheduleLabel:d,getRegionLabel:m}){let u=(0,g.useTranslations)(),p=(0,i.useQueryClient)(),[h,f]=(0,r.useState)(null),[j,y]=(0,r.useState)(!1),[S,C]=(0,r.useState)(!1);return(0,r.useEffect)(()=>
1{e&&l&&null===h&&(y(!0),C(!1),t());async function t(){try{let e=await p.fetchQuery({queryKey:N.queryKeys.game.detail(String(l),s).queryKey,queryFn:()=>(0,v.fetchGameDetail)(String(l)),staleTime:3e5});f(e.gameInfo?.calendars??[])}catch{C(!0)}finally{y(!1)}}},[e]),(0,t.jsx)(n.Root,{open:e,onOpenChange:a,children:(0,t.jsxs)(n.Portal,{children:[(0,t.jsx)(n.Overlay,{className:"fixed inset-0 z-[90] bg-black/40"}),(0,t.jsxs)(n.Content,{onClick:e=>e.stopPropagation(),className:(0,w.cn)("fixed z-[91] bg-white shadow-xl focus:outline-none","inset-x-0 bottom-0 rounded-t-2xl","md:inset-auto md:left-1/2 md:top-1/2 md:w-full md:max-w-md md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-2xl"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-neutral-100 px-5 py-4",children:[(0,t.jsx)(n.Title,{className:"text-base font-bold text-neutral-800",children:d}),(0,t.jsx)(n.Close,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"flex h-7 w-7 items-center justify-center rounded-full text-neutral-400 transition-colors hover:bg-neutral-100 hover:text-neutral-600",children:(0,t.jsx)(x.X,{className:"h-4 w-4"})})})]}),(0,t.jsx)("div",{className:"px-5 pt-2 pb-1",children:(0,t.jsx)("p",{className:"text-sm font-semibold text-neutral-700 truncate",children:o})}),(0,t.jsx)("div",{className:"max-h-[50vh] overflow-y-auto px-5 pb-5 md:max-h-[60vh]",children:j?(0,t.jsx)("div",{className:"flex items-center justify-center py-10",children:(0,t.jsx)(c.Loader2,{className:"h-5 w-5 animate-spin text-neutral-400"})}):S?(0,t.jsx)("div",{className:"py-10 text-center text-sm text-neutral-400",children:u("game.ranking.listError")}):h&&0===h.length?(0,t.jsx)("div",{className:"py-10 text-center text-sm text-neutral-400",children:u("game.ranking.empty")}):(0,t.jsx)("div",{className:"divide-y divide-neutral-100",children:(h??[]).map(e=>{let a=e.startDate?(0,b.format)(new Date(e.startDate),"yyyy.MM.dd"):"-",l=(e.platformTypes??[]).map(e=>H[e]).filter(e=>null!=e),s=(e.storeLinks??[]).map(e=>{let t=U[e.storeType];if(!t)return null;let a=e.region||"GLOBAL";return{...t,label:`${t.label} (${m(a)})`}}).filter(e=>null!==e);return(0,t.jsxs)("div",{className:"grid grid-cols-[5rem_5.5rem_1fr] items-center gap-x-2 py-3",children:[(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsx)(k.CalendarTypeBadge,{calendarType:e.calendarType,label:u(`calendar.list.type.${e.calendarType}`)})}),(0,t.jsx)("span",{className:"text-sm font-medium text-neutral-800",children:a}),(0,t.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[l.length>0&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-0.5",children:l.map(e=>(0,t.jsx)(Y,{icon:e.icon,label:e.label},e.label))}),e.region&&(0,t.jsx)("span",{className:"shrink-0 text-xs text-neutral-400",children:m(e.region)}),s.length>0&&(0,t.jsx)("div",{className:"ml-auto flex shrink-0 items-center gap-1",children:s.map((e,a)=>(0,t.jsx)(Y,{icon:e.icon,label:e.label},`${e.label}-${a}`))})]})]},e.calendarId)})})})]})]})})}function J({gameId:e,locale:a,gameTitle:l,scheduleLabel:n,getRegionLabel:c}){let x=(0,g.useTranslations)(),u=(0,i.useQueryClient)(),{isLoggedIn:p}=(0,K.useAuthStore)(),{setLoginModalOpen:h}=(0,q.useUiStore)(),[f,b]=(0,r.useState)(!1),[y,w]=(0,r.useState)(!1),[S,C]=(0,r.useState)(!1),[k,T]=(0,r.useState)(!1),L=async t=>{if(e)try{await (0,v.createGameReview)({gameId:String(e),...t}),T(!1),u.invalidateQueries({queryKey:N.queryKeys.game.list._def}),u.invalidateQueries({queryKey:N.queryKeys.game.reviewSummary._def}),u.invalidateQueries({queryKey:N.queryKeys.game.detail._def})}catch{}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.Root,{open:f,onOpenChange:b,children:[(0,t.jsx)(s.Trigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"flex h-7 w-7 items-center justify-center rounded-md text-neutral-400 transition-colors hover:bg-primary/10 hover:text-primary",children:(0,t.jsx)(d.MoreHorizontal,{className:"h-4 w-4"})})}),(0,t.jsx)(s.Portal,{children:(0,t.jsxs)(s.Content,{side:"bottom",align:"end",sideOffset:4,className:"z-[80] min-w-[160px] rounded-xl border border-neutral-200 bg-white py-1 shadow-lg",onClick:e=>e.stopPropagation(),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 px-4 py-2.5 text-sm text-neutral-700 transition-colors hover:bg-neutral-50",onClick:e=>{e.preventDefault(),e.stopPropagation(),b(!1),w(!0)},children:[(0,t.jsx)(o.CalendarDays,{className:"h-4 w-4 text-neutral-400"}),x("game.ranking.gameSchedule")]}),(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 px-4 py-2.5 text-sm text-neutral-700 transition-colors hover:bg-neutral-50",onClick:e=>{(e.preventDefault(),e.stopPropagation(),b(!1),p)?C(!0):h(!0)},children:[(0,t.jsx)(m.Plus,{className:"h-4 w-4 text-neutral-400"}),x("game.collection.addToCollection")]}),(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 px-4 py-2.5 text-sm text-neutral-700 transition-colors hover:bg-neutral-50",onClick:e=>{(e.preventDefault(),e.stopPropagation(),b(!1),p)?T(!0):h(!0)},children:[(0,t.jsx)("svg",{className:"h-4 w-4 text-neutral-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),x("game.review.write")]})]})})]}),(0,t.jsx)(V,{open:y,onOpenChange:w,gameId:e,locale:a,gameTitle:l,scheduleLabel:n,getRegionLabel:c}),null!=e&&(0,t.jsx)($.AddToCollectionDialog,{open:S,onOpenChange:C,gameId:e}),k&&(0,t.jsx)(j.ReviewFormModal,{title:x("game.review.write"),submitLabel:x("game.review.submit"),onSubmit:L,onClose:()=>T(!1)})]})}function Z(e){return e>=1e3?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}K`:String(e)}function ee({favoriteCount:e,averageRating:a,reviewCount:l,suitabilityScore:s,aiAnalyzed:n}){let r=(0,S.useConsentStore)(e=>e.isPersonalizationEnabled)?s:null;return(0,t.jsxs)("div",{className:"ml-2 flex w-10 flex-none flex-col gap-0.5 text-[10px] text-neutral-400 md:ml-0",children:[(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(u.Heart,{className:"h-2.5 w-2.5 shrink-0"}),(0,t.jsx)("span",{children:Z(e)})]}),(0,t.jsxs)("span",{className:(0,w.cn)("flex items-center gap-0.5",l>=1?"text-amber-400":"text-neutral-300"),children:[(0,t.jsx)(p.Star,{className:"h-2.5 w-2.5 shrink-0 fill-current"}),(0,t.jsx)("span",{children:l>=1?a.toFixed(1):"-"})]}),(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(h.MessageSquare,{className:"h-2.5 w-2.5 shrink-0"}),(0,t.jsx)("span",{children:Z(l)})]}),n&&(0,t.jsxs)("span",{className:"flex items-center gap-0.5 text-violet-400",children:[(0,t.jsx)(f,{className:"h-2.5 w-2.5 shrink-0"}),(0,t.jsx)("span",{children:"AI"})]}),null!=r&&(0,t.jsx)("span",{className:(0,w.cn)("flex items-center gap-0.5 font-semibold",r>=70?"text-emerald-500":r>=40?"text-amber-500":"text-neutral-400"),children:(0,t.jsxs)("span",{children:[r,"%"]})})]})}e.s(["GameRankingTable",0,function({mode:e,viewSource:s="RANKING",locale:n,page:o,totalPages:c,games:d,title:m,isPageTitle:x=!1,description:u,footer:p,extraFooter:h,isLoading:f=!1,isError:b=!1,errorMessage:j="Failed to load games.",emptyMessage:S="No games to display.",favoriteEmptyMessage:k="No favorites found.",favoriteResetLabel:L="Back",isFavorite:O=!1,onRetry:P,defaultTabLabel:E,favoriteLabel:_,searchKeyword:A="",platform:R="",region:D="",platformOptions:z=[],regionOptions:M=[],releaseDateLabel:I="",releaseDateLabelLines:$,searchPlaceholder:K="",gameInformationLabel:q,genreTagLabel:H,platformLabel:Q="",regionLabel:U,scheduleLabel:Y,adLabel:V="",adGameIds:Z,sortType:et,sortTypeOptions:ea,onChangeSortType:el,onChangeSearchKeyword:es,onChangePlatform:en,onToggleFavorite:er,onCh
1angeRegion:ei,onResetFavorite:eo,onChangePage:ec,className:ed,categoryIds:em=[],onChangeCategoryIds:ex,categoryLabel:eu="",categorySelectedLabel:ep,categoryAllLabel:eh,categorySearchPlaceholder:ef="",selectedCategoryNames:eb=[],categoryBadgeMoreLabel:eg,categoryBadgeExpandLabel:ev,categoryBadgeCollapseLabel:ej,onTagClick:ey,onResetFilters:eN,resetFiltersLabel:ew,favoriteCategories:eS,favoriteCategoriesLabel:eC,recommendedCategories:ek,recommendedCategoriesLabel:eT,viewTabs:eL,favoriteStatus:eO,favoriteStatusOptions:eP,favoriteStatusLabel:eE,onChangeFavoriteStatus:e_}){let eA=(0,g.useTranslations)(),eR=(0,i.useQueryClient)(),[eD,ez]=(0,r.useState)({}),eM=(0,r.useRef)({}),eI=(0,r.useRef)({}),eF=(0,r.useCallback)(async(e,t)=>{let a=e.id??e.gameId;if(!a)return;let l=String(a);l in eI.current||(eI.current[l]=e.favoriteStatus??null);let s=eM.current[l]??e.favoriteStatus??null;eM.current[l]=t,ez(e=>({...e,[l]:t}));try{null!=t?await (0,v.addGameFavorite)(a,t):await (0,v.removeGameFavorite)(a),eI.current[l]=t,eR.invalidateQueries({queryKey:N.queryKeys.game.list._def}),eR.invalidateQueries({queryKey:N.queryKeys.mypage.favoriteGames._def}),eR.invalidateQueries({queryKey:["headerSearch"]})}catch{eM.current[l]=s,ez(e=>({...e,[l]:s}))}},[eR]),[eG]=(0,r.useState)(()=>Date.now());(0,r.useMemo)(()=>new Intl.NumberFormat(n),[n]);let e$=(0,r.useMemo)(()=>{let e={};for(let t of M??[])e[t.value]=t.label;return e},[M]),eK=e=>{if(e$[e])return e$[e];try{return eA(`game.ranking.regionOptions.${e}`)}catch{return e}},eq=e=>{let t=e.storeLinks??[];return t.length>0?t.map(t=>{if("HOMEPAGE"===t.storeType&&e.thumbnailUrl)return{icon:e.thumbnailUrl,label:"Homepage"};let a=X[t.storeType];if(!a)return null;let l=t.region||null;return{...a,label:l?`${a.label} (${l})`:a.label}}).filter(e=>null!==e):(e.storeTypes??[]).map(t=>"HOMEPAGE"===t&&e.thumbnailUrl?{icon:e.thumbnailUrl,label:"Homepage"}:X[t]??null).filter(e=>null!==e)};return(0,t.jsxs)("section",{className:(0,w.cn)(ed),children:["browse"!==e&&m&&(0,t.jsxs)("div",{className:"inline-flex items-center",children:[(0,t.jsx)(a.default,{src:"/assets/icon/[email protected]",alt:"Game List Icon",width:36,height:24,unoptimized:!0}),x?(0,t.jsx)("h1",{className:"ml-4 text-2xl font-bold text-black",children:m}):(0,t.jsx)("h2",{className:"ml-4 text-2xl font-bold text-black",children:m})]}),"favorite"!==e?(0,t.jsx)(F,{mode:e,defaultTabLabel:E,favoriteLabel:_,isFavorite:O,viewTabs:eL,searchKeyword:A,platform:R,region:D,searchPlaceholder:K,platformLabel:Q,regionLabel:U??"",platformOptions:z,regionOptions:M,onChangeSearchKeyword:es??(()=>{}),onChangePlatform:en??(()=>{}
1),onToggleFavorite:er,onChangeRegion:ei??(()=>{}),categoryIds:em,onChangeCategoryIds:ex,categoryLabel:eu,categorySelectedLabel:ep,categoryAllLabel:eh,categorySearchPlaceholder:ef,locale:n,selectedCategoryNames:eb,categoryBadgeMoreLabel:eg,categoryBadgeExpandLabel:ev,categoryBadgeCollapseLabel:ej,favoriteCategories:eS,favoriteCategoriesLabel:eC,recommendedCategories:ek,recommendedCategoriesLabel:eT,sortType:et,sortTypeOptions:ea,onChangeSortType:el,onResetFilters:eN,resetFiltersLabel:ew,favoriteStatus:eO,favoriteStatusOptions:eP,favoriteStatusLabel:eE,onChangeFavoriteStatus:e_}):null,(0,t.jsx)("div",{className:"rounded-sm bg-neutral-100 py-3 md:hidden",children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{className:"basis-0 flex-grow pl-3 text-sm leading-tight text-neutral-500",children:m}),(0,t.jsx)("div",{className:"w-10"}),(0,t.jsx)("div",{className:"basis-[100px] pr-3"})]})}),(0,t.jsxs)("div",{className:"hidden rounded-sm bg-neutral-100 py-3 md:grid md:grid-cols-[minmax(0,1fr)_140px_90px_100px]",children:[(0,t.jsx)("div",{className:"flex items-center px-4 text-sm leading-tight text-neutral-500",children:q}),(0,t.jsx)("div",{className:"flex items-center px-3 text-sm leading-tight text-neutral-500",children:H}),(0,t.jsx)("div",{className:"flex items-center justify-center px-2 text-sm leading-tight text-neutral-500",children:(0,t.jsx)("div",{className:"text-center",children:$?.length?$.map((e,a)=>(0,t.jsx)("span",{className:"block",children:e},a)):I})}),(0,t.jsx)("div",{})]}),(0,t.jsx)("div",{children:f?Array.from({length:10}).map((e,a)=>(0,t.jsxs)("div",{className:"border-b border-neutral-200 py-3",children:[(0,t.jsx)("div",{className:"block md:hidden",children:(0,t.jsxs)("div",{className:"flex items-center px-2",children:[(0,t.jsx)("div",{className:"mr-3 h-5 w-5 animate-pulse rounded-full bg-neutral-200"}),(0,t.jsx)("div",{className:"mr-3 h-14 w-14 animate-pulse rounded bg-neutral-200"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"h-4 w-2/3 animate-pulse rounded bg-neutral-200"}),(0,t.jsx)("div",{className:"mt-2 h-3 w-full animate-pulse rounded bg-neutral-100"})]})]})}),(0,t.jsxs)("div",{className:"hidden md:grid md:grid-cols-[minmax(0,1fr)_140px_90px_100px] md:items-center md:py-1",children:[(0,t.jsxs)("div",{className:"flex items-center px-4",children:[(0,t.jsx)("div",{className:"mr-3 h-5 w-5 animate-pulse rounded-full bg-neutral-200"}),(0,t.jsx)("div",{className:"mr-3 h-16 w-16 animate-pulse rounded bg-neutral-200"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"h-4 w-2/3 animate-pulse rounded bg-neutral-200"}),(0,t.jsx)("div",{className:"mt-2 h-3 w-full animate-pulse rounded bg-neutral-100"})]})]}),(0,t.jsx)("div",{className:"px-3",children:(0,t.jsx)("div",{className:"h-3 w-16 animate-pulse rounded bg-neutral-100"})}),(0,t.jsx)("div",{className:"mx-auto h-4 w-12 animate-pulse rounded bg-neutral-100"}),(0,t.jsx)("div",{className:"mx-auto h-4 w-6 animate-pulse rounded bg-neutral-100"})]})]},`skeleton-${a}`)):b?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-neutral-500",children:j}),P?(0,t.jsx)("button",{type:"button",onClick:P,className:"mt-4 rounded-md bg-primary px-4 py-2 text-sm font-semibold text-white transition-opacity hover:opacity-90",children:"Retry"}):null]}):d.length?d.map((e,a)=>{var r,i,o;let c=e.id??e.gameId??null;(r=e.launchDate)&&new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date(r));let d=(i=e.launchDate,o=eA("common.tbd"),i?new Date(i).getTime()>=325034936e5?o:new Date(i).toLocaleDateString("sv-SE").replace(/-/g,"."):"-"),m=e.favoriteCount??0,x=e.averageRating??0,u=e.reviewCount??0,p=(0,C.getDisplayTags)(e.categories??[],5),h=!!e.launchDate&&(eG-new Date(e.launchDate).getTime())/864e5<=7,f=null!=c?eD[String(c)]??e.favoriteStatus??null:e.favoriteStatus??null;return(0,t.jsxs)(l.default,{href:c?(0,B.gameDetailHref)(n,c,s):"#",className:"block w-full rounded-sm border-b border-neutral-200 transition-colors hover:bg-primary/10",children:[(0,t.jsx)("div",{className:"block py-2.5 md:hidden",children:(0,t.jsxs)("div",{className:"flex items-center px-2",children:[(0,t.jsx)(y.FavoriteStatusPopover,{currentStatus:f,onStatusChange:t=>void eF(e,t),size:20,className:"mr-2 flex h-8 w-8 flex-none items-center justify-center"}),(0,t.jsxs)("div",{className:"relative mr-3 flex-none",children:[(0,t.jsx)("div",{className:"relative h-14 w-14 overflow-hidden rounded",children:(0,t.jsx)(G.GameThumbn
1ail,{src:e.thumbnailUrl,alt:e.title,sizes:"56px"})}),h&&(0,t.jsx)("div",{className:"absolute -left-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full text-[8px] font-bold text-white",style:{backgroundColor:"#ffab00"},children:"N"}),Z?.has(c)&&V&&(0,t.jsx)("div",{className:"absolute -right-1 -top-1 rounded border border-neutral-300 bg-neutral-100 px-0.5 text-[8px] font-semibold leading-[13px] text-neutral-500",children:V})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-grow",children:[(0,t.jsx)("div",{className:"line-clamp-1 text-base font-semibold text-black",children:e.title}),p.length>0&&(0,t.jsx)("div",{className:"mt-0.5 flex flex-wrap gap-x-1 text-xs font-bold text-neutral-400",children:p.map((e,a)=>(0,t.jsxs)("span",{children:["#",e]},`${c??"unknown"}-${e}-${a}`))}),eq(e).length>0&&(0,t.jsx)("div",{className:"mt-0.5 flex items-center gap-0.5",children:(0,t.jsx)(W,{items:eq(e),size:"sm"})})]}),(0,t.jsx)(ee,{favoriteCount:m,averageRating:x,reviewCount:u,suitabilityScore:e.suitabilityScore,aiAnalyzed:e.aiAnalyzed}),(0,t.jsx)("div",{className:"ml-1 flex-none",role:"presentation",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsx)(J,{gameId:c,locale:n,gameTitle:e.title,scheduleLabel:Y??"",getRegionLabel:e=>e&&e.split(",").map(e=>e.trim()).filter(Boolean).map(e=>eK(e)).join(", ")||"-"})})]})}),(0,t.jsxs)("div",{className:"hidden h-[88px] items-center rounded-sm border-b border-neutral-200 md:grid md:grid-cols-[minmax(0,1fr)_140px_90px_100px]",children:[(0,t.jsx)("div",{className:"flex min-w-0 items-center px-4",children:(0,t.jsxs)("div",{className:"flex h-full min-w-0 items-center",children:[(0,t.jsx)(y.FavoriteStatusPopover,{currentStatus:f,onStatusChange:t=>void eF(e,t),className:"mr-3 flex h-6 w-6 flex-none items-center justify-center"}),(0,t.jsxs)("div",{className:"relative mr-3 flex-none",children:[(0,t.jsx)("div",{className:"relative h-16 w-16 overflow-hidden rounded",children:(0,t.jsx)(G.GameThumbnail,{src:e.thumbnailUrl,alt:e.title,sizes:"64px"})}),h&&(0,t.jsx)("div",{className:"absolute -left-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full text-[8px] font-bold text-white",style:{backgroundColor:"#ffab00"},children:"N"}),Z?.has(c)&&V&&(0,t.jsx)("div",{className:"absolute -right-1 -top-1 rounded border border-neutral-300 bg-neutral-100 px-0.5 text-[8px] font-semibold leading-[13px] text-neutral-500",children:V})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-grow",children:[(0,t.jsx)("div",{className:"line-clamp-1 text-base font-semibold text-black",children:e.title}),eq(e).length>0&&(0,t.jsx)("div",{className:"mt-0.5 flex items-center gap-0.5",children:(0,t.jsx)(W,{items:eq(e),size:"sm"})})]})]})}),(0,t.jsx)("div",{className:"flex h-full flex-col justify-center px-3 text-xs font-bold text-black",children:p.map((e,a)=>ey?(0,t.jsxs)("button",{type:"button",className:"text-left transition-colors hover:text-primary",onClick:t=>{t.preventDefault(),t.stopPropagation(),ey(e)},children:["#",e]},`${c??"unknown"}-${e}-${a}`):(0,t.jsxs)("span",{children:["#",e]},`${c??"unknown"}-${e}-${a}`))}),(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center px-2 text-xs font-normal text-secondary",children:d}),(0,t.jsxs)("div",{className:"flex h-full items-center justify-end gap-2 px-2",children:[(0,t.jsx)(ee,{favoriteCount:m,averageRating:x,reviewCount:u,suitabilityScore:e.suitabilityScore,aiAnalyzed:e.aiAnalyzed}),(0,t.jsx)("div",{className:"flex-none",role:"presentation",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsx)(J,{gameId:c,locale:n,gameTitle:e.title,scheduleLabel:Y??"",getRegionLabel:e=>e&&e.split(",").map(e=>e.trim()).filter(Boolean).map(e=>eK(e)).join(", ")||"-"})})]})]})]},c??`idx-${a}`)}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,t.jsx)("div",{className:"text-sm text-neutral-500",children:O?k:S}),O&&eo?(0,t.jsx)("button",{type:"button",onClick:eo,className:"mt-4 rounded-md bg-primary/10 px-4 py-2 text-sm font-semibold text-primary transition hover:bg-primary/20",children:L}):null]})}),f||b||!(c>0)?null:(0,t.jsx)(T.Pagination,{className:"mt-8 md:mt-14",currentPage:o,totalPages:c,onChangePage:ec}),p?(0,t.jsx)("div",{className:"mb-8 mt-4 flex justify-center md:mb-10",children:(0,t.jsx)("div",{className:"rounded border border-yellow-300 bg-yellow-50 px-3 py-1 text-sm text-yellow-700",children:p})}):null,h]})}],22476)}]);
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.