PageSourceSearch

https://www.wame.is/_next/static/chunks/0gezcf5206f7_.js

js wame.is collected 2026-10-09 22:41:27 UTC 31,745 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50143,e=>{"use strict";var t=e.i(43476),a=e.i(57688),l=e.i(71645),r=e.i(61745),i=e.i(48148),s=e.i(66027),n=e.i(19273),o=e.i(94913),c=e.i(12615),d=e.i(91039),u=e.i(66610),m=e.i(58466),g=e.i(76208),p=e.i(206),h=e.i(32171),x=e.i(24700),y=e.i(22016),f=e.i(22886);function v({item:e,locale:r,onVideoClick:i}){let{setLoginModalOpen:s}=(0,h.useUiStore)(),{isLoggedIn:n}=(0,x.useAuthStore)(),[u,m]=(0,l.useState)(e.isLiked??e.liked??!1),[g,p]=(0,l.useState)(e.likeCount??0),b=(0,l.useRef)(e.isLiked??e.liked??!1),w=(0,l.useRef)(e.isLiked??e.liked??!1),k=(0,l.useRef)(null);(0,l.useEffect)(()=>{let t=e.isLiked??e.liked??!1;b.current=t,w.current=t,m(t),p(e.likeCount??0)},[e.id,e.likeCount,e.isLiked,e.liked]),(0,l.useEffect)(()=>()=>{k.current&&clearTimeout(k.current)},[]);let j=(0,l.useMemo)(()=>(0,o.formatDistanceToNow)(new Date(e.postedAt),{addSuffix:!0,locale:(0,c.getDateFnsLocale)(r)}),[e.postedAt,r]),N=(0,l.useCallback)(t=>{if(t.stopPropagation(),!n)return void s(!0);let a=!w.current;w.current=a,m(a),p(e=>a?e+1:e-1),k.current&&clearTimeout(k.current),k.current=setTimeout(async()=>{let t=w.current;if(t!==b.current)try{let a=t?await (0,d.likeSocialContent)(e.id):await (0,d.unlikeSocialContent)(e.id);b.current=t,a&&"number"==typeof a.likeCount&&p(a.likeCount)}catch{let e=b.current;w.current=e,m(e),p(e=>t?e-1:e+1)}},300)},[n,e.id,s]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{role:"button",tabIndex:0,className:"flex cursor-pointer flex-row items-center gap-3 overflow-hidden rounded-lg border border-gray-100 bg-white p-3 h-24 md:hidden",onClick:()=>i(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),i(e))},children:[(0,t.jsxs)("div",{className:"relative h-full w-32 shrink-0 overflow-hidden rounded bg-gray-100",children:[e.thumbnailUrl?(0,t.jsx)(a.default,{src:e.thumbnailUrl,alt:e.title,fill:!0,sizes:"128px",className:"object-cover"}):(0,t.jsx)("div",{className:"h-full w-full bg-neutral-200"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/10",children:(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-red-600/90",children:(0,t.jsx)("svg",{className:"ml-0.5 h-4 w-4 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z"})})})})]}),(0,t.jsxs)("div",{className:"flex h-full min-w-0 flex-1 flex-col justify-between py-0.5",children:[(0,t.jsx)("h3",{className:"line-clamp-2 text-sm font-medium leading-snug text-gray-900",children:e.title}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[e.authorName&&e.creatorId?(0,t.jsx)(y.default,{href:(0,f.getLocalizedPath)(r,`/creator/${e.creatorId}`),onClick:e=>e.stopPropagation(),className:"mr-2 truncate font-medium text-gray-600 hover:text-primary transition-colors",children:e.authorName}):(0,t.jsx)("span",{className:"mr-2 truncate font-medium text-gray-600",children:e.authorName}),(0,t.jsx)("span",{className:"whitespace-nowrap text-gray-400",children:j})]})]})]}),(0,t.jsxs)("div",{role:"button",tabIndex:0,className:"hidden cursor-pointer flex-col overflow-hidden rounded-xl bg-white shadow-sm transition-all duration-300 hover:-translate-y-1 hover:shadow-lg md:flex",onClick:()=>i(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),i(e))},children:[(0,t.jsxs)("div",{className:"relative aspect-video w-full",children:[e.thumbnailUrl?(0,t.jsx)(a.default,{src:e.thumbnailUrl,alt:e.title,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw",unoptimized:!0,className:"object-cover"}):(0,t.jsx)("div",{className:"h-full w-full bg-neutral-200"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/0 transition-all duration-300 hover:bg-black/10",children:(0,t.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-red-600 opacity-80 transition-opacity hover:opacity-100",children:(0,t.jsx)("svg",{className:"ml-1 h-6 w-6 text-white",f
1ill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M6.3 2.841A1.5 1.5 0 004 4.11V15.89a1.5 1.5 0 002.3 1.269l9.344-5.89a1.5 1.5 0 000-2.538L6.3 2.84z"})})})})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col justify-between p-3",children:[(0,t.jsx)("h3",{className:"mb-2 line-clamp-2 text-sm font-medium",children:e.title}),(0,t.jsxs)("div",{className:"mt-auto flex items-center justify-between text-xs text-gray-500",children:[e.authorName&&e.creatorId?(0,t.jsx)(y.default,{href:(0,f.getLocalizedPath)(r,`/creator/${e.creatorId}`),onClick:e=>e.stopPropagation(),className:"font-medium hover:text-primary transition-colors",children:e.authorName}):(0,t.jsx)("span",{className:"font-medium",children:e.authorName}),(0,t.jsx)("span",{children:j})]}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-3 text-xs text-gray-400",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}),(e.viewCount??0).toLocaleString()]}),(0,t.jsxs)("button",{type:"button",className:"-m-1 flex cursor-pointer items-center gap-1 p-1 group",onClick:N,children:[(0,t.jsx)("svg",{className:`h-4 w-4 transition-transform duration-200 ease-in-out group-active:scale-125 group-hover:scale-110 ${u?"text-red-500":"text-gray-400 group-hover:text-red-400"}`,fill:u?"currentColor":"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"})}),(g??0).toLocaleString()]})]})]})]})]})}e.s(["GameSocialContentSection",0,function({className:e,titleKey:o="game.news.freeGameNews",socialContentType:c="NEWS",contentMode:h="other",categoryId:x,companyId:y}){let b=(0,r.useLocale)(),w=(0,i.useTranslations)(),[k,j]=(0,l.useState)(1),[N,C]=(0,l.useState)(null);(0,l.useEffect)(()=>{j(1)},[b,c]);let{data:L,isLoading:P}=(0,s.useQuery)({queryKey:u.queryKeys.game.socialContents({mode:h,page:k,size:4,socialContentType:c,language:b.toUpperCase(),categoryId:x,companyId:y}).queryKey,queryFn:()=>"video"===h?(0,d.fetchSocialContents)({page:k,size:4,socialContentType:c,language:b.toUpperCase(),categoryId:x,companyId:y}):(0,d.fetchOtherSocialContents)({page:k,size:4,socialContentType:c,language:b.toUpperCase(),categoryId:x,companyId:y}),placeholderData:n.keepPreviousData,staleTime:18e5}),S=(0,l.useMemo)(()=>"video"===h?L?.content??[]:(L?.content??[]).filter(e=>"YOUTUBE"!==e.platform.toUpperCase()),[h,L]);(0,p.useSocialEmbedLoader)("other"===h?S:[]);let T=e=>{let t;(0,d.viewSocialContent)(e.id);let a=(t=(e.sourceUrl??"").match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/))&&11===t[2].length?t[2]:null;a?C(a):window.open(e.sourceUrl,"_blank")};return P||S.length?(0,t.jsxs)("div",{className:e,children:[(0,t.jsx)("div",{className:"mb-4 flex justify-between",children:(0,t.jsxs)("div",{className:"inline-flex items-center",children:["video"===h?(0,t.jsx)(a.default,{src:"/assets/icon/platform/icon-youtube.svg",alt:"",width:36,height:24,unoptimized:!0}):(0,t.jsx)(a.default,{src:"/assets/icon/icon-sns.png",alt:"",width:36,height:36,unoptimized:!0}),(0,t.jsx)("span",{className:"ml-4 text-2xl font-bold text-black",children:w(o)})]})}),"video"===h?(0,t.jsxs)("div",{className:`transition-opacity duration-200 ${P?"opacity-50":"opacity-100"}`,children:[(0,t.jsx)("div",{className:"flex flex-col gap-3 md:hidden",children:P?Array.from({length:4}).map((e,a)=>(0,t.jsxs)("div",{className:"flex h-24 gap-3 overflow-hidden rounded-lg border border-gray-100 bg-white p-3",children:[(0,t.jsx)("div",{className:"h-full w-32 shrink-0 animate-pulse rounded bg-neutral-100"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"h-4 animate-pulse rounded bg-neutral-100"}),(0,t.jsx)("div",{className:"mt-2 h-3 w-2/3 animate-pulse rounded bg-neutral-100"})]})]},`skeleton-mobile-${a}`)):S.map(e=>(0,t.jsx)(v,{item:e,locale:b,onVideoClick:T},e.id))}),(0,t.jsx)("div",{className:"hidden md:grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:P?Array.from({length:4}).map((e,a)=>(0,t.jsxs)("div",{className:"overflow-hidden rounded-xl bg-white shadow-sm",children:[(0,t.jsx)("div",{className:"aspect-video animate-pulse bg-neutral-100"}),(0,t.jsxs)("div",{className:"p-3",children:[(0,t.jsx)("div",{className:"h-4 animate-pulse rounded bg-neutral-100"}),(0,t.jsx)("div",{className:"mt-2 h-3 w-2/3 animate-pulse rounded bg-neutral-100"})]})]},`skeleton-desktop-${a}`)):S.map(e=>(0,t.jsx)(v,{item:e,locale:b,onVideoClick:T},e.id))}),(L?.totalPages??0)>1?(0,t.jsx)(m.Pagination,{className:"mt-8",currentPage:k,totalPages:L?.totalPages??0,onChangePage:j}):null]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4 ${P?"opacity-50":"opacity-100"}`,children:P?Array.from({length:4}).map((e,a)=>(0,t.jsxs)("div",{className:"overflow-hidden rounded-2xl bg-white",children:[(0,t.jsx)("div",{className:"aspect-[5/3] animate-pulse bg-neutral-100"}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("div",{className:"h-5 animate-pulse rounded bg-neutral-100"}),(0,t.jsx)("div",{className:"mt-2 h-4 w-2/3 animate-pulse rounded bg-neutral-100"}),(0,t.jsx)("div",{className:"mt-3 h-3 w-1/2 animate-pulse rounded bg-neutral-100"})]})]},`social-skeleton-${a}`)):S.map(e=>(0,t.jsx)(g.GameTipCard,{item:e,createdByLabel:w("game.news.createdBy"),sectionLabel:w(o),creatorHref:e.creatorId?(0,f.getLocalizedPath)(b,`/creator/${e.creatorId}`):void 0},e.id))}),(L?.totalPages??0)>1?(0,t.jsx)(m.Pagination,{className:"mt-8",currentPage:k,totalPages:L?.totalPages??0,onChangePage:j}):null]}),N?(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 p-4",role:"presentation",onClick:()=>C(null),onKeyDown:e=>{"Escape"===e.key&&C(null)},children:(0,t.jsxs)("div",{className:"relative aspect-video w-full max-w-5xl overflow-hidden rounded-lg bg-black shadow-2xl",children:[(0,t.jsx)("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${N}?autoplay=1`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),(0,t.jsx)("button",{type:"button",className:"absolute right-2 top-2 rounded-full bg-black/50 p-2 text-white transition-colors hover:bg-black/70",onClick:e=>{e.stopPropagation(),C(null)},children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}):null]}):null}])},30440,e=>{"use strict";e.i(61238);var t=e.i(14679);function a(){return t.proxyClient}function l(e){return(0,t.getProxyPath)(e)}async function r(e){let{data:t}=await a().get(l("/api/post/list"),{params:{page:e.page,size:e.size,postType:e.postType,isDeleted:!1,searchType:e.searchType,keyword:e.keyword,language:e.language,tag:e.tag||void 0,imageFirst:e.imageFirst||void 0,categoryId:e.categoryId||void 0}});return t.data??{content:[],totalElements:0,totalPages:0}}async function i(e){let{data:t,status:r}=await a().get(l(`/api/post/${e}`),void 0);if(403===r)throw Error("ACCESS_DENIED");return t.data}async function s(e){await t.proxyClient.post((0,t.getProxyPath)(`/api/post/${e}/like`),{deviceType:"WEB"})}async function n(e){await t.proxyClient.post((0,t.getProxyPath)(`/api/post/${e}/unlike`),{deviceType:"WEB"})}async function o(e,a,l=0){await t.proxyClient.post((0,t.getProxyPath)(`/api/post/${e}/comment`),{content:a,parentId:l,isReply:l>0})}async function c(e){await t.proxyClient.delete((0,t.getProxyPath)(`/api/post/${e}`))}async function d(e){await t.proxyClient.post((0,t.getProxyPath)("/api/post/bulk/delete"),{postIds:e})}async function u(e,a){await t.proxyClient.post((0,t.getProxyPath)("/api/post/bulk/update-post-type"),{postIds:e,postType:a})}async function m(e,a){await t.proxyClient.post((0,t.getProxyPath)("/api/post/bulk/update-published"),{postIds:e,published:a})}async function g(e,a){await t.proxyClient.post((0,t.getProxyPath)(`/api/post/${e}/pin`),null,{params:{pin:a}})}async function p(e){await t.proxyClient.delete((0,t.getProxyPath)(`/api/post/comment/${e}`))}async function h(e){let{data:a}=await t.proxyClient.get((0,t.getProxyPath)("/api/post/tags/search"),{params:{keyword:e}});return a.data??[]}async function x(e){let{data:a}=await t.proxyClient.get((0,t.getProxyPath)("/api/game/social-content/search"),{params:{keyword:e,page:1,size:20}});return a.data?.content??[]}async function y(e){let{data:a}=await t.proxyClient.get((0,t.getProxyPath)(`/api/post/${e}/translations`));return a.data?.translations??[]}async function f(e){let{data:a}=await t.proxyClient.post((0,t.getProxyPath)("/api/post/create"),e);return a.data}async function v(e,a){await t.proxyClient.post((0,t.getProxyPath)(`/api/post/${e}/update`),a)}let b=[{id:1,code:"KO",label:"한국어",sortOrder:1,active:!0},{id:2,code:"EN",label:"English",sortOrder:2,active:!0}];async function w(){try{let{data:e}=await t.proxyClient.get((0,t.getProxyPath)("/api/languages/active"));return e.data??b}catch{return b}}async function k(e){let a=new FormData;a.append("file",e);let{data:l}=await t.proxyClient.post((0,t.getProxyPath)("/api/post/upload-image"),a,{headers:{"Content-Type":"multipart/form-data"}});return l.data}e.s(["addInfoComment",0,o,"bulkDeleteInfoArticles",0,d,"bulkMoveInfoArticles",0,u,"bulkUpdatePublished",0,m,"createInfoArticle",0,f,"deleteInfoArticle",0,c,"deleteInfoComment",0,p,"fetchInfoArticleDetail",0,i,"fetchInfoArticleList",0,r,"fetchInfoArticleTranslations",0,y,"fetchSupportedLanguages",0,w,"likeInfoArticle",0,s,"pinInfoArticle",0,g,"searchPostTags",0,h,"searchSocialContentsForEditor",0,x,"unlikeInfoArticle",0,n,"updateInfoArticle",0,v,"uploadInfoPostImage",0,k])},31727,e=>{"use strict";var t=e.i(43476),a=e.i(22016),l=e.i(57688),r=e.i(61745),i=e.i(22886),s=e.i(49001);e.s(["LinkedPostCard",0,function({post:e}){let n=(0,r.useLocale)();return(0,t.jsxs)(a.default,{href:(0,i.getLocalizedPath)(n,`/info/post/0/${e.id}`),className:"group flex flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-sm transition-all hover:-translate-y-1 hover:shadow-md",children:[(0,t.jsx)("div",{className:"relative aspect-[5/3] w-full bg-neutral-100",children:(0,t.jsx)(l.default,{src:e.thumbnailUrl||"/assets/image/og_image.png",alt:e.title,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 50vw, 25vw"})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-3",children:[(0,t.jsx)("h3",{className:"line-clamp-2 text-sm font-medium text-neutral-800 group-hover:text-primary transition-colors",children:e.title}),e.authorNickname&&(0,t.jsxs)("div",{className:"mt-auto flex items-center gap-1 pt-1.5 text-xs text-neutral-400",children:[(0,t.jsx)(s.UserAvatar,{name:e.authorNickname,size:14,imageUrl:e.authorProfileImageUrl}),(0,t.jsx)("span",{className:"truncate",children:e.authorNickname})]})]})]})}])},21010,e=>{"use strict";var t=e.i(43476),a=e.i(66027),l=e.i(61745),r=e.i(48148),i=e.i(57688),s=e.i(30440),n=e.i(31727),o=e.i(66610);e.s(["GameNewsPostSection",0,function({className:e,categoryId:c}){let d=(0,r.useTranslations)("game"),u=(0,l.useLocale)(),{data:m}=(0,a.useQuery)({queryKey:o.queryKeys.info.articleList(u,{postType:"GAME_NEWS",page:1,size:4,imageFirst:!0,
1categoryId:c}).queryKey,queryFn:()=>(0,s.fetchInfoArticleList)({page:1,size:4,postType:"GAME_NEWS",searchType:"TITLE",keyword:"",imageFirst:!0,categoryId:c}),staleTime:3e5}),g=(m?.content??[]).map(e=>({id:e.id,title:e.title,authorNickname:e.authorNickname,authorProfileImageUrl:e.authorProfileImageUrl,thumbnailUrl:e.thumbnailUrl,createdAt:"number"==typeof e.createdAt?new Date(e.createdAt).toISOString():String(e.createdAt)}));return 0===g.length?null:(0,t.jsxs)("section",{className:e,children:[(0,t.jsxs)("div",{className:"mb-4 inline-flex items-center",children:[(0,t.jsx)(i.default,{src:"/assets/icon/icon-news.png",alt:"",width:36,height:36,unoptimized:!0}),(0,t.jsx)("span",{className:"ml-4 text-2xl font-bold text-black",children:d("news.freeGameNews")})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-4 md:gap-4",children:g.map(e=>(0,t.jsx)(n.LinkedPostCard,{post:e},e.id))})]})}])},91665,e=>{"use strict";var t=e.i(43476),a=e.i(71645),l=e.i(66027),r=e.i(19273),i=e.i(61745),s=e.i(48148),n=e.i(91039),o=e.i(66610),c=e.i(48863),d=e.i(22476),u=e.i(21010),m=e.i(50143),g=e.i(54616),p=e.i(12598),h=e.i(57688),x=e.i(86536),y=e.i(90597),f=e.i(94983),v=e.i(24700),b=e.i(32171),w=e.i(49001),k=e.i(39746);function j({collection:e,onClick:a,onLikeToggle:l}){let r=(0,s.useTranslations)("game.collection"),i=e.thumbnailUrls.slice(0,3);return(0,t.jsxs)("button",{type:"button",onClick:a,className:"group overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-sm text-left transition-all hover:-translate-y-1 hover:shadow-md",children:[(0,t.jsx)("div",{className:"relative aspect-[4/3] w-full bg-neutral-100 overflow-hidden",children:i.length>=3?(0,t.jsxs)("div",{className:"grid h-full w-full grid-cols-2 grid-rows-2 gap-0.5",children:[(0,t.jsx)("div",{className:"relative row-span-2",children:(0,t.jsx)(h.default,{src:i[0],alt:"",fill:!0,className:"object-cover",sizes:"120px"})}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(h.default,{src:i[1],alt:"",fill:!0,className:"object-cover",sizes:"80px"})}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(h.default,{src:i[2],alt:"",fill:!0,className:"object-cover",sizes:"80px"})})]}):i.length>=1?(0,t.jsx)(h.default,{src:i[0],alt:"",fill:!0,className:"object-cover",sizes:"200px"}):(0,t.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-neutral-400",children:"No Image"})}),(0,t.jsxs)("div",{className:"p-3",children:[(0,t.jsx)("h3",{className:"line-clamp-1 text-sm font-semibold text-neutral-800 group-hover:text-primary transition-colors",children:e.title}),(0,t.jsxs)("div",{className:"mt-0.5 flex items-center gap-2 text-xs text-neutral-400",children:[(0,t.jsx)("span",{children:r("gameCount",{count:e.gameCount})}),(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(x.Eye,{className:"h-3 w-3"}),e.viewCount]}),(0,t.jsxs)("span",{role:"button",tabIndex:0,onClick:l,onKeyDown:e=>{"Enter"===e.key&&l(e)},className:"flex items-center gap-0.5 transition-colors hover:text-red-500",children:[(0,t.jsx)(y.Heart,{className:`h-3 w-3 ${e.liked?"fill-red-500 text-red-500":""}`}),e.likeCount]}),e.commentCount>0?(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(f.MessageCircle,{className:"h-3 w-3"}),e.commentCount]}):null]}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-1.5",children:[(0,t.jsx)(w.UserAvatar,{name:e.ownerNickname,size:20,imageUrl:e.ownerProfileImageUrl}),(0,t.jsx)("span",{className:"truncate text-xs text-neutral-500",children:e.ownerNickname})]})]})]})}function N({className:e}){let r=(0,s.useTranslations)("game.collection"),{isLoggedIn:i}=(0,v.useAuthStore)(),{setLoginModalOpen:c}=(0,b.useUiStore)(),d=(0,p.useQueryClient)(),u=function(){let[e,t]=(0,a.useState)(5);return(0,a.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e>=1024?t(5):e>=768?t(4):e>=640?t(3):t(2)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}(),[m,h]=(0,a.useState)(1);(0,a.useEffect)(()=>{h(1)},[u]);let[x,y]=(0,a.useState)("LATEST"),[f,w]=(0,a.useState)(null),[C,L]=(0,a.useState)(!1),{data:P,isLoading:S}=(0,l.useQuery)({queryKey:o.queryKeys.game.exploreCollections({page:m,size:u,sort:x}).queryKey,queryFn:()=>(0,n.fetchExploreCollections)({page:m,size:u,sort:x}),staleTime:3e5}),T=(0,g.useMutation)({mutationFn:e=>(0,n.likeCollection)(e),onMutate:async e=>{await d.cancelQueries({queryKey:o.queryKeys.game.exploreCollections._def}),d.setQueriesData({queryKey:o.queryKeys.game.exploreCollections._def},t=>t?{...t,content:t.content.map(t=>
1t.id===e?{...t,liked:!0,likeCount:t.likeCount+1}:t)}:t)},onSettled:()=>{d.invalidateQueries({queryKey:o.queryKeys.game.exploreCollections._def})}}),A=(0,g.useMutation)({mutationFn:e=>(0,n.unlikeCollection)(e),onMutate:async e=>{await d.cancelQueries({queryKey:o.queryKeys.game.exploreCollections._def}),d.setQueriesData({queryKey:o.queryKeys.game.exploreCollections._def},t=>t?{...t,content:t.content.map(t=>t.id===e?{...t,liked:!1,likeCount:Math.max(0,t.likeCount-1)}:t)}:t)},onSettled:()=>{d.invalidateQueries({queryKey:o.queryKeys.game.exploreCollections._def})}}),E=P?.content??[],K=P?.totalPages??0;if(!S&&0===E.length)return null;let I=e=>{y(e),h(1)};return(0,t.jsxs)("section",{className:e,children:[(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-black",children:r("sharedCollections")}),(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-lg bg-neutral-100 p-0.5 text-xs",role:"tablist","aria-label":"Collection sort",children:[(0,t.jsx)("div",{role:"tab",tabIndex:0,"aria-selected":"LATEST"===x,onClick:()=>I("LATEST"),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&I("LATEST")},className:`cursor-pointer rounded-md px-2.5 py-1 transition-colors ${"LATEST"===x?"bg-white font-medium text-neutral-800 shadow-sm":"text-neutral-500 hover:text-neutral-700"}`,children:r("sortLatest")}),(0,t.jsx)("div",{role:"tab",tabIndex:0,"aria-selected":"POPULAR"===x,onClick:()=>I("POPULAR"),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&I("POPULAR")},className:`cursor-pointer rounded-md px-2.5 py-1 transition-colors ${"POPULAR"===x?"bg-white font-medium text-neutral-800 shadow-sm":"text-neutral-500 hover:text-neutral-700"}`,children:r("sortPopular")})]})]}),K>1&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{type:"button",disabled:m<=1,onClick:()=>h(e=>e-1),className:"flex h-8 w-8 items-center justify-center rounded-full border border-neutral-200 bg-white text-neutral-600 transition-colors hover:bg-neutral-50 disabled:opacity-30 disabled:cursor-not-allowed","aria-label":"Previous",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),(0,t.jsx)("button",{type:"button",disabled:m>=K,onClick:()=>h(e=>e+1),className:"flex h-8 w-8 items-center justify-center rounded-full border border-neutral-200 bg-white text-neutral-600 transition-colors hover:bg-neutral-50 disabled:opacity-30 disabled:cursor-not-allowed","aria-label":"Next",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"9 6 15 12 9 18"})})})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5",children:S?Array.from({length:u}).map((e,a)=>(0,t.jsx)("div",{className:"animate-pulse rounded-xl bg-neutral-200 aspect-[3/4]"},a)):E.map(e=>(0,t.jsx)(j,{collection:e,onClick:()=>{w(e.uniqueSlug),L(!0)},onLikeToggle:t=>{(t.stopPropagation(),!i)?c(!0):e.liked?A.mutate(e.id):T.mutate(e.id)}},e.id))}),(0,t.jsx)(k.CollectionDetailDialog,{slug:f,open:C,onOpenChange:L})]})}var C=e.i(54511),L=e.i(751),P=e.i(69952),S=e.i(22886);let T={new:{openType:"NEWLY_OPENED",filterKey:"new",getSortBy:e=>"TITLE"===e?"ASC":"DESC",titleKey:"game.ranking.newTitle",descriptionKey:"game.ranking.newDescription",releaseDateKey:"game.ranking.releaseDate",middleBannerMargin:"mb-10 md:mb-12"},upcoming:{openType:"UPCOMING",filterKey:"upcoming",getSortBy:e=>"TITLE"===e?"ASC":"POPULARITY_SCORE"===e||"VIEW_COUNT_30D"===e||"AVERAGE_RATING"===e||"SUITABILITY"===e?"DESC":"ASC",titleKey:"game.ranking.upcomingTitle",descriptionKey:"game.ranking.upcomingDescription",releaseDateKey:"game.ranking.upcomingReleaseDate",middleBannerMargin:"mb-16"},all:{openType:"ALL",filterKey:"all",getSortBy:e=>"TITLE"===e?"ASC":"DESC",titleKey:"game.ranking.allTitle",descriptionKey:"game.ranking.allDescription",releaseDateKey:"game.ranking.releaseDate",middleBannerMargin:"mb-10 md:mb-12"}};e.s(["GamePageClient",0,function({mode:e,bannerPage:g}){let p=T[e],h=(0,s.useTranslations)(),x=(0,i.useLocale)(),y=(0,L.useConsentStore)(e=>e.isPersonalizationEnabled),f=(0,C.useFilterStore)(),v=C.useFilterStore.getState().load(p.filterKey)?.page||void 0,[b,w]=(0,P.usePageParam)("page",v),[k,j]=(0,a.useState)(()=>C.useFilterStore.getState().load(p.filterKey)?.searchKeyword??""),[A,E]=(0,a.useState)(()=>C.useFilterStore.getState().load(p.filterKey)?.searchKeyword??""),[K,I]=(0,a.useState)(()=>C.useFilterStore.getState().load(p.filterKey)?.platform??"ALL"),[D,O]=(0,a.useState)(()=>C.useFilterStore.getState().load(p.filterKey)?.region??"ALL"),[z,U]=(0,a.useState)(()=>C.useFilterStore.getState().load(p.filterKey)?.sort??"LAUNCH_TIME"),[M,q]=(0,a.useState)(()=>C.useFilterStore.getState().load(p.filterKey)?.categoryIds??[]),B=p.getSortBy(z),F=(0,a.useRef)(null),R=(0,a.useMemo)(()=>[{key:"new",label:h("nav.new"),href:(0,S.getLocalizedPath)(x,"/new"),active:"new"===e},{key:"upcoming",label:h("nav.upcoming"),href:(0,S.getLocalizedPath)(x,"/upcoming"),active:"upcoming"===e},{key:"all",label:h("nav.allGames"),href:(0,S.getLocalizedPath)(x,"/all"),active:"all"===e},{key:"category",label:h("nav.category"),href:(0,S.getLocalizedPath)(x,"/category"),active:!1},{key:"favorites",label:h("game.favorite.pageTitle"),href:(0,S.getLocalizedPath)(x,"/favorites"),active:!1}],[h,x,e]),G=(0,a.useMemo)(()=>[{value:"ALL",label:h("game.ranking.platformOptions.ALL")},{value:"PC",label:h("game.ranking.platformOptions.PC")},{value:"MOBILE",label:h("game.ranking.platformOptions.MOBILE")},{value:"NS",label:h("game.ranking.platformOptions.NS")},{value:"PS",label:h("game.ranking.platformOptions.PS")},{value:"XBOX",label:h("game.ranking.platformOptions.XBOX")}],[h]),$=(0,a.useMemo)(()=>
1[{value:"ALL",label:h("game.ranking.regionOptions.ALL")},{value:"KR",label:h("game.ranking.regionOptions.KR")},{value:"JP",label:h("game.ranking.regionOptions.JP")},{value:"NA",label:h("game.ranking.regionOptions.NA")},{value:"EU",label:h("game.ranking.regionOptions.EU")},{value:"SEA",label:h("game.ranking.regionOptions.SEA")},{value:"GLOBAL",label:h("game.ranking.regionOptions.GLOBAL")},{value:"CN",label:h("game.ranking.regionOptions.CN")},{value:"ETC",label:h("game.ranking.regionOptions.ETC")}],[h]),{data:_}=(0,l.useQuery)({queryKey:o.queryKeys.game.categories({all:!0}).queryKey,queryFn:()=>(0,n.fetchGameCategories)({page:1,size:9999}),staleTime:18e5}),{data:W}=(0,l.useQuery)({queryKey:o.queryKeys.game.recommendedCategories({size:5}).queryKey,queryFn:()=>(0,n.fetchRecommendedCategories)(5),staleTime:18e5}),Q=(0,a.useMemo)(()=>(W?.favorites??[]).map(e=>({id:e.id,name:e.name,isFavorite:!0})),[W]),V=(0,a.useMemo)(()=>(W?.recommended??[]).map(e=>({id:e.id,name:e.name})),[W]),Y=(0,a.useMemo)(()=>{let e=new Map;for(let t of _?.content??[])t.name&&e.set(t.name.toLowerCase(),t.id),t.slug&&e.set(t.slug.toLowerCase(),t.id);return e},[_]),H=(0,a.useMemo)(()=>{let e=_?.content??[];return M.map(t=>{let a=e.find(e=>e.id===t);return a?{id:t,name:a.name}:null}).filter(e=>null!==e)},[M,_]),{data:X}=(0,l.useQuery)({queryKey:o.queryKeys.game.adGames.queryKey,queryFn:n.fetchAdGames,staleTime:18e5}),{data:J,isLoading:Z,isError:ee,refetch:et}=(0,l.useQuery)({queryKey:o.queryKeys.game.list({page:b,size:10,openType:p.openType,keyword:A,platform:K,region:D,sort:z,sortBy:B,categoryIds:M}).queryKey,queryFn:()=>(0,n.fetchGameList)({page:b,size:10,openType:p.openType,keyword:A,platform:K,region:D,sort:z,sortBy:B,categoryIds:M}),placeholderData:r.keepPreviousData,staleTime:18e5,retry:1}),ea=(0,a.useMemo)(()=>new Set((X??[]).map(e=>e.id??e.gameId)),[X]),el=(0,a.useMemo)(()=>{let e=J?.content??[],t=X??[];return 0===t.length?e:[...t,...e.filter(e=>!ea.has(e.id??e.gameId))]},[X,ea,J]);(0,a.useEffect)(()=>{f.save(p.filterKey,{page:b,searchKeyword:A,platform:K,region:D,sort:z,categoryIds:M})},[b,A,K,D,z,M]),(0,a.useEffect)(()=>{let e=JSON.stringify({locale:x,searchKeyword:A,platform:K,region:D,sort:z,categoryIds:M});null!==F.current&&F.current!==e&&w(1),F.current=e},[x,A,K,D,z,M]),(0,a.useEffect)(()=>{let e=window.setTimeout(()=>{E(k)},350);return()=>window.clearTimeout(e)},[k]);let er=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N,{className:"mt-8 w-full"}),"new"===e?(0,t.jsx)(u.GameNewsPostSection,{className:"mt-8 w-full"}):"upcoming"===e?(0,t.jsx)(m.GameSocialContentSection,{className:"mt-4 w-full",titleKey:"game.news.upcomingGameVideos",socialContentType:"TRAILER",contentMode:"video"}):null]});return(0,t.jsx)(c.GameListBannerLayout,{bannerPage:g,middleBannerMargin:p.middleBannerMargin,children:(0,t.jsx)(d.GameRankingTable,{className:"mb-8",mode:"all"===e?"new":e,locale:x,page:b,totalPages:J?.totalPages??0,games:el,title:h(p.titleKey),isPageTitle:!0,description:h(p.descriptionKey),footer:h("game.ranking.footer"),extraFooter:er,isLoading:Z,isError:ee,errorMessage:h("game.ranking.listError"),emptyMessage:h("game.ranking.empty"),isFavorite:!1,onRetry:()=>void et(),viewTabs:R,searchKeyword:k,platform:K,region:D,platformOptions:G,regionOptions:$,releaseDateLabel:h(p.releaseDateKey),..."upcoming"===e?{releaseDateLabelLines:[h("game.ranking.releaseDateLine1"),h("game.ranking.releaseDateLine2")]}:{},searchPlaceholder:h("game.ranking.searchPlaceholder"),gameInformationLabel:h("game.ranking.gameInformationLabel"),genreTagLabel:h("game.ranking.genreTagLabel"),platformLabel:h("game.ranking.platformLabel"),regionLabel:h("game.ranking.regionLabel"),scheduleLabel:h("game.detail.scheduleTitle"),adLabel:h("game.ranking.adLabel"),adGameIds:ea,sortType:z,sortTypeOptions:[{value:"LAUNCH_TIME",label:h("browse.sortNewest")},{value:"POPULARITY_SCORE",label:h("browse.sortPopular")},{value:"VIEW_COUNT_30D",label:h("browse.sortViews")},{value:"AVERAGE_RATING",label:h("browse.sortRating")},{value:"TITLE",label:h("browse.sortName")},...y?[{value:"SUITABILITY",label:h("browse.sortSuitability")}]:[]],onChangeSortType:e=>U(e),onChangeSearchKeyword:j,onChangePlatform:I,onChangeRegion:O,onChangePage:w,categoryIds:M,onChangeCategoryIds:q,categoryLabel:h("game.ranking.categoryLabel"),categoryAllLabel:h("game.ranking.categoryAll"),categorySelectedLabel:h("game.ranking.categorySelected",{count:M.length}),categorySearchPlaceholder:h("game.ranking.categorySearchPlaceholder"),selectedCategoryNames:H,categoryBadgeMoreLabel:h("game.ranking.categoryBadgeMore"),categoryBadgeExpandLabel:h("game.ranking.categoryBadgeExpand"),categoryBadgeCollapseLabel:h("game.ranking.categoryBadgeCollapse"),onTagClick:e=>{let t=Y.get(e.toLowerCase());t&&!M.includes(t)&&q(e=>[...e,t])},onResetFilters:()=>{j(""),E(""),I("ALL"),O("ALL"),q([])},resetFiltersLabel:h("game.ranking.resetFilters"),favoriteCategories:Q,favoriteCategoriesLabel:h("game.ranking.favoriteCategories"),recommendedCategories:V,recommendedCategoriesLabel:h("game.ranking.recommendedCategories")})})}],91665)}]);

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.