Files
MonkeyTokiDownloadScript/Samples/오늘부터 가정부입니다만! 1화 _ 뉴토끼_files/79224-ff9b9dbbd4f10904.js
2026-06-13 18:33:22 +09:00

5 lines
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79224],{69661:(e,t,s)=>{s.d(t,{s:()=>r});var a=s(95155),n=s(12115),i=s(72985);function r({text:e,min:t,exempt:s}){let l=(0,n.useMemo)(()=>(0,i.g6)(e),[e]);if(s)return(0,a.jsx)("span",{className:"elc elc--exempt",children:"길이 제한 없음"});let c=l>=t;return(0,a.jsxs)("span",{className:`elc ${c?"elc--ok":"elc--bad"}`,children:["유효 ",(0,a.jsx)("strong",{children:l})," / ",t,"자",!c&&(0,a.jsxs)("span",{className:"elc-hint",children:[" ","\xb7 자음/모음 단독, 같은 글자 반복은 제외"]})]})}},72985:(e,t,s)=>{s.d(t,{H6:()=>n,Jp:()=>a,g6:()=>o,wK:()=>r});let a=20,n=10,i=new Set(["nbd","suggest","request"]);function r(e){return i.has(e)}let l=/[\u1100-\u11FF\u3130-\u318F\uA960-\uA97F]/g,c=/(.)\1{2,}/gu;function o(e){return[...e.replace(l,"").replace(/^\s+/,"").replace(c,"$1")].length}},79224:(e,t,s)=>{s.d(t,{CommentSection:()=>g});var a=s(95155),n=s(12115),i=s(37990),r=s(71595),l=s(52438),c=s(64027),o=s(69661),d=s(72985);function m(e,t){if(!/^#[0-9a-fA-F]{6}$/.test(e))return"transparent";let s=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),n=parseInt(e.slice(5,7),16);return`rgba(${s},${a},${n},${t})`}function h({value:e,onChange:t,size:s=26}){let[i,r]=(0,n.useState)(0),l=i||e;return(0,a.jsxs)("div",{className:"cs-star-picker",onMouseLeave:()=>r(0),children:[[1,2,3,4,5].map(e=>(0,a.jsx)("button",{type:"button",className:`cs-star ${e<=l?"is-on":""}`,onMouseEnter:()=>r(e),onClick:()=>t(e),"aria-label":`${e}`,style:{fontSize:s},children:"★"},e)),(0,a.jsx)("span",{className:"cs-star-label",children:l?`${l}`:"별점 선택"})]})}function u({rating:e,size:t=14}){return(0,a.jsx)("span",{className:"cs-stars-display",style:{fontSize:t},"aria-label":`${e}`,children:[1,2,3,4,5].map(t=>(0,a.jsx)("span",{className:t<=e?"is-on":"",children:"★"},t))})}function p({c:e,replies:t,kind:s,refId:g,episodeId:x,episodePath:j,currentUserId:f,isAdmin:b,onReplyAdded:N,onUpdated:y,onDeleted:k,onVoted:v,level:C,ipCollisionByValue:w,fpCollisionByValue:S,minComment:I}){let[$,M]=(0,n.useState)(!1),[T,A]=(0,n.useState)(e.content),[D,F]=(0,n.useState)(e.rating??0),[U,B]=(0,n.useState)(!1),[L,P]=(0,n.useState)(""),[V,O]=(0,n.useState)(!1),[R,_]=(0,n.useTransition)(),[E,J]=(0,n.useState)(!1),[z,H]=(0,n.useState)(!1),W=f===e.authorId,q=W||b,K="[삭제됨]"===e.content,Y=e.bgColor?{"--c-bg":m(e.bgColor,.14),"--c-bg-strong":m(e.bgColor,.32)}:void 0;return(0,a.jsxs)("li",{id:`c-${e.id}`,className:`cs-item ${C>0?"cs-item--reply":""}${e.bgColor?" cs-item--has-bg":""}`,style:Y,children:[(0,a.jsxs)("div",{className:"cs-item-head",children:[(0,a.jsxs)("div",{className:"cs-item-meta",children:[(0,a.jsxs)(r.NicknameDropdown,{userId:e.authorId,nickname:e.authorNickname,isBlockedByMe:e.isBlockedByMe,isMe:W,targetIsAdmin:"admin"===e.authorRole,role:e.authorRole,points:e.authorPoints,avatarUrl:e.authorAvatarUrl,effect:e.nicknameEffect,children:[(0,a.jsx)(l.s,{points:e.authorPoints,role:e.authorRole,avatarUrl:e.authorAvatarUrl}),(0,a.jsx)("strong",{children:e.authorNickname})]}),null===e.parentId&&null!=e.rating&&(0,a.jsx)(u,{rating:e.rating,size:13}),(0,a.jsxs)("span",{className:"cs-item-time",suppressHydrationWarning:!0,children:[function(e){let t=new Date(e),s=Math.floor((Date.now()-t.getTime())/1e3);if(s<60)return"방금 전";if(s<3600)return`${Math.floor(s/60)}분 전`;if(s<86400)return`${Math.floor(s/3600)}시간 전`;if(s<604800)return`${Math.floor(s/86400)}일 전`;let a=new Date(t.getTime()+324e5);return`${String(a.getUTCFullYear()).slice(2)}.${String(a.getUTCMonth()+1).padStart(2,"0")}.${String(a.getUTCDate()).padStart(2,"0")}`}(e.createdAt),e.updatedAt!==e.createdAt&&" \xb7 수정됨"]})]}),!$&&!K&&(0,a.jsx)("div",{className:"cs-item-head-actions",children:(0,a.jsxs)("div",{className:"cs-vote-group",role:"group","aria-label":"추천",children:[(0,a.jsxs)("button",{type:"button",className:`cs-vote-btn cs-vote-btn--up ${1===e.myVote?"is-on":""}`,onClick:()=>(()=>{if(!f)return void alert("로그인 후 이용해주세요");if(E)return;J(!0);let t=+(1!==e.myVote);fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"vote",kind:s,id:e.id,vote:t})}).then(e=>e.json()).then(t=>{t?.ok?v(e.id,t.likeCount,t.myVote):alert(t?.error||"처리 실패")}).finally(()=>J(!1))})(),disabled:E,"aria-label":"추천","aria-pressed":1===e.myVote,children:[(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M7 10v12"}),(0,a.jsx)("path",{d:"M15 5.88L14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H7l-3-2"})]}),(0,a.jsx)("span",{children:e.likeCount})]}),(0,a.jsx)(i.ReportButton,{targetType:"manhwa"===s?"manhwa-comment":"novel"===s?"novel-comment":"manga"===s?"manga-comment":"work-comment",targetId:e.id,loggedIn:!!f,hidden:W,className:"cs-report-btn cs-report-btn--inline"})]})}),(W||q||b&&(e.authorIp||e.authorFp))&&!$&&!K&&(0,a.jsxs)("div",{className:"cs-item-actions",children:[W&&(0,a.jsx)("button",{type:"button",onClick:()=>{M(!0),A(e.content),F(e.rating??0)},children:"수정"}),q&&(0,a.jsx)("button",{type:"button",onClick:()=>{confirm("댓글을 삭제하시겠습니까?")&&_(async()=>{let t=await fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",kind:s,id:e.id})}),a=await t.json().catch(()=>null);t.ok&&a?.ok?k(e.id):alert(a?.error||"삭제 실패")})},disabled:R,children:"삭제"}),b&&(e.authorIp||e.authorFp)&&(0,a.jsx)(c.AdminBlockButtons,{authorId:e.authorId,authorNickname:e.authorNickname,authorIp:e.authorIp??null,authorFp:e.authorFp??null,ipCollision:e.authorIp?w?.[e.authorIp]??[]:[],fpCollision:e.authorFp?S?.[e.authorFp]??[]:[],reason:`${s}-comment#${e.id} ${e.authorNickname}`})]})]}),$?(0,a.jsxs)("div",{className:"cs-edit",children:[null===e.parentId&&(0,a.jsx)(h,{value:D,onChange:F,size:20}),(0,a.jsx)("textarea",{value:T,onChange:e=>A(e.target.value),maxLength:1e3,rows:3}),(0,a.jsx)("div",{style:{marginTop:4,display:"flex",justifyContent:"flex-end"},children:(0,a.jsx)(o.s,{text:T,min:I})}),(0,a.jsxs)("div",{className:"cs-edit-foot",children:[(0,a.jsx)("button",{type:"button",className:"btn btn--outline",onClick:()=>M(!1),disabled:R,children:"취소"}),(0,a.jsx)("button",{type:"button",className:"btn btn--primary",onClick:()=>{T.trim()&&_(async()=>{let t=await fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update",kind:s,id:e.id,content:T.trim(),rating:null===e.parentId&&D>0?D:null})}),a=await t.json().catch(()=>null);t.ok&&a?.ok?(y(e.id,T.trim(),null===e.parentId&&D>0?D:null),M(!1)):alert(a?.error||"수정 실패")})},disabled:R||!T.trim()||(0,d.g6)(T)<I,children:"저장"})]})]}):e.isSpoiler&&!z?(0,a.jsxs)("div",{className:"cs-spoiler",children:[(0,a.jsx)("span",{children:"⚠ 스포일러가 포함된 댓글입니다."}),(0,a.jsx)("button",{type:"button",className:"cs-spoiler-btn",onClick:()=>H(!0),children:"보기"})]}):(0,a.jsx)("div",{className:"cs-item-body",children:e.content}),!$&&!K&&C<2&&!!f&&(0,a.jsx)("div",{className:"cs-item-foot",children:(0,a.jsx)("button",{type:"button",className:"cs-reply-btn",onClick:()=>B(e=>!e),children:U?"취소":"답글"})}),U&&(0,a.jsxs)("div",{className:"cs-reply-form",children:[(0,a.jsx)("textarea",{value:L,onChange:e=>P(e.target.value),placeholder:`@${e.authorNickname} 에게 답글...`,maxLength:1e3,rows:2}),(0,a.jsx)("div",{style:{marginTop:4,display:"flex",justifyContent:"flex-end"},children:(0,a.jsx)(o.s,{text:L,min:I})}),(0,a.jsxs)("div",{className:"cs-edit-foot",children:[(0,a.jsxs)("label",{className:"cs-spoiler-check",children:[(0,a.jsx)("input",{type:"checkbox",checked:V,onChange:e=>O(e.target.checked)}),(0,a.jsx)("span",{children:"⚠ 스포일러"})]}),(0,a.jsx)("button",{type:"button",className:"btn btn--outline",onClick:()=>{B(!1),P(""),O(!1)},disabled:R,children:"취소"}),(0,a.jsx)("button",{type:"button",className:"btn btn--primary",onClick:()=>{L.trim()&&_(async()=>{let t=await fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create",kind:s,refId:g,episodeId:x,episodePath:j,parentId:e.id,content:L.trim(),isSpoiler:V})}),a=await t.json().catch(()=>null);if(!t.ok||!a?.ok){if(a?.error_code==="spam_blocked"){alert(`🚫 댓글 도배 감지 — 영구차단되었습니다.
${a.error}`),window.location.href="/";return}alert(a?.error||"답글 등록 실패");return}N(a.comment),P(""),O(!1),B(!1)})},disabled:R||!L.trim()||(0,d.g6)(L)<I,children:"답글 등록"})]})]}),t.length>0&&(0,a.jsx)("ul",{className:"cs-replies",children:t.map(e=>(0,a.jsx)(p,{c:e,replies:[],kind:s,refId:g,episodeId:x,episodePath:j,currentUserId:f,isAdmin:b,onReplyAdded:N,onUpdated:y,onDeleted:k,onVoted:v,level:C+1,ipCollisionByValue:w,fpCollisionByValue:S,minComment:I},e.id))})]})}function g({kind:e,refId:t,episodeId:s=null,episodePath:i=null,initial:r,page:l=1,totalPages:c=1,totalRoots:m,basePath:u,currentUserId:x,isAdmin:j,showRating:f=!0,summary:b=null,ipCollisionByValue:N,fpCollisionByValue:y,minComment:k}){let v=j?0:k??15,[C,w]=(0,n.useState)(r),[S,I]=(0,n.useState)("asc");(0,n.useEffect)(()=>{try{let e=window.localStorage.getItem("ntk_comment_sort");("asc"===e||"desc"===e)&&I(e)}catch{}},[]);let $=e=>{I(e);try{window.localStorage.setItem("ntk_comment_sort",e)}catch{}},[M,T]=(0,n.useState)(""),[A,D]=(0,n.useState)(0),[F,U]=(0,n.useState)(!1),[B,L]=(0,n.useTransition)(),[P,V]=(0,n.useState)(null),[O,R]=(0,n.useState)(l),[_,E]=(0,n.useState)(!1),J=(0,n.useCallback)(e=>{i?e.set("episodePath",i):s&&e.set("episodeId",s)},[i,s]);(0,n.useEffect)(()=>{if(!u)return;let s=async()=>{let s=new URL(window.location.href).searchParams.get("cpage"),a=s?Math.max(1,parseInt(s,10)||1):c;if(a!==O){E(!0);try{let s=new URLSearchParams({kind:e,refId:t,cpage:String(a)});J(s);let n=await fetch("/api/comments?"+s.toString(),{cache:"no-store"}),i=await n.json().catch(()=>null);if(!n.ok||!i?.ok)return;w(i.items),R(i.page)}finally{E(!1)}}};return window.addEventListener("popstate",s),()=>window.removeEventListener("popstate",s)},[u,O,c,e,t,J]);let z=e=>u?e<=1?`${u}#comments-anchor`:`${u}?cpage=${e}#comments-anchor`:"#",H=async s=>{if(!u||s===O||_)return;R(s),E(!0);let a=document.getElementById("comments-anchor");a&&a.scrollIntoView({behavior:"smooth",block:"start"});try{let a=new URLSearchParams({kind:e,refId:t,cpage:String(s)});J(a);let n=await fetch("/api/comments?"+a.toString(),{cache:"no-store"}),i=await n.json().catch(()=>null);if(!n.ok||!i?.ok)return;w(i.items);let r=s<=1?u:`${u}?cpage=${s}`;window.history.replaceState(null,"",r+"#comments-anchor")}finally{E(!1)}},{roots:W,repliesMap:q,bestIds:K}=(0,n.useMemo)(()=>{let e=[...C].sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()),t=e.filter(e=>!e.parentId),s="desc"===S?[...t].reverse():t,a=new Map;for(let t of e)if(t.parentId){let e=a.get(t.parentId)??[];e.push(t),a.set(t.parentId,e)}return{roots:s,repliesMap:a,bestIds:new Set(e.filter(e=>(e.likeCount??0)>=3).slice().sort((e,t)=>(t.likeCount??0)-(e.likeCount??0)).slice(0,3).map(e=>e.id))}},[C,S]),Y=(0,n.useMemo)(()=>C.filter(e=>K.has(e.id)).sort((e,t)=>(t.likeCount??0)-(e.likeCount??0)),[C,K]),G=(0,n.useMemo)(()=>{if(b)return b;let e={1:0,2:0,3:0,4:0,5:0},t=0,s=0;for(let a of C)null!=a.rating&&a.rating>=1&&a.rating<=5&&(e[a.rating]++,t+=a.rating,s++);return{avgRating:s>0?t/s:null,ratingCount:s,ratingDist:e}},[b,C]),Q=e=>w(t=>[...t,e]),X=(e,t,s)=>w(a=>a.map(a=>a.id===e?{...a,content:t,rating:s,updatedAt:new Date().toISOString()}:a)),Z=e=>w(t=>t.filter(t=>t.id!==e&&t.parentId!==e)),ee=(e,t,s)=>w(a=>a.map(a=>a.id===e?{...a,likeCount:t,myVote:s}:a)),et=C.length,es=C.filter(e=>e.parentId).length,ea=et-es,en=C.reduce((e,t)=>e+t.likeCount,0),ei=Math.max(1,...Object.values(G.ratingDist)),er=G.avgRating,el=er?er/5*100:0,ec=G.ratingCount>0?Math.round((G.ratingDist[4]+G.ratingDist[5])/G.ratingCount*100):0;return(0,a.jsxs)("section",{id:"comments-anchor",className:"cs-section",children:[(0,a.jsxs)("header",{className:"cs-head-v2",children:[(0,a.jsxs)("div",{className:"cs-title",children:[(0,a.jsxs)("h2",{children:[(0,a.jsx)("span",{"aria-hidden":!0,children:"\uD83D\uDCAC"})," 댓글"," ",(0,a.jsx)("span",{className:"cs-title-count",children:et.toLocaleString()}),"개"]}),(0,a.jsxs)("div",{className:"cs-counts",children:[ea!==et&&(0,a.jsxs)("span",{className:"cs-counts-meta",children:["댓글 ",ea," \xb7 답글 ",es]}),en>0&&(0,a.jsxs)("span",{className:"cs-counts-meta",children:["\uD83D\uDC4D ",en.toLocaleString()]}),(0,a.jsxs)("span",{className:"comments-sort",role:"tablist","aria-label":"댓글 정렬",children:[(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":"asc"===S,className:`comments-sort-btn ${"asc"===S?"is-active":""}`,onClick:()=>$("asc"),children:"등록순"}),(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":"desc"===S,className:`comments-sort-btn ${"desc"===S?"is-active":""}`,onClick:()=>$("desc"),children:"최신순"})]})]})]}),f&&G.ratingCount>0&&(0,a.jsxs)("div",{className:"cs-rating-card",children:[(0,a.jsxs)("div",{className:"cs-rating-score",children:[(0,a.jsxs)("div",{className:"cs-rating-num",children:[(0,a.jsx)("strong",{children:er.toFixed(1)}),(0,a.jsx)("span",{className:"cs-rating-max",children:"/5.0"})]}),(0,a.jsxs)("div",{className:"cs-rating-stars-wrap","aria-label":`평균 ${er.toFixed(1)}`,children:[(0,a.jsx)("div",{className:"cs-rating-stars-bg",children:"★★★★★"}),(0,a.jsx)("div",{className:"cs-rating-stars-fg",style:{width:`${el}%`},children:"★★★★★"})]}),(0,a.jsxs)("div",{className:"cs-rating-cnt",children:[(0,a.jsx)("strong",{children:G.ratingCount.toLocaleString()}),"명 평가",ec>0&&(0,a.jsxs)("span",{className:"cs-rating-rec",children:["\xb7 추천 ",ec,"%"]})]})]}),(0,a.jsx)("div",{className:"cs-rating-dist",children:[5,4,3,2,1].map(e=>{let t=G.ratingDist[e]??0,s=Math.round(t/G.ratingCount*100);return(0,a.jsxs)("div",{className:"cs-dist-row",children:[(0,a.jsxs)("span",{className:"cs-dist-num",children:[e,(0,a.jsx)("i",{children:"★"})]}),(0,a.jsx)("span",{className:"cs-dist-bar",children:(0,a.jsx)("span",{style:{width:`${t/ei*100}%`}})}),(0,a.jsx)("span",{className:"cs-dist-cnt",children:t>0?`${s}%`:"-"})]},e)})})]})]}),x?(0,a.jsxs)("form",{onSubmit:a=>{a.preventDefault(),V(null);let n=M.trim();n?n.replace(/[0-9]/g,"").length<10?V("댓글은 (숫자 제외) 10글자 이상 작성해주세요"):L(async()=>{let a=await fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create",kind:e,refId:t,episodeId:s,episodePath:i,content:M.trim(),rating:f&&A>0?A:null,isSpoiler:F})}),n=await a.json().catch(()=>null);if(!a.ok||!n?.ok){if(n?.error_code==="spam_blocked"){alert(`🚫 댓글 도배 감지 — 영구차단되었습니다.
${n.error}`),window.location.href="/";return}V(n?.error||"등록 실패");return}Q(n.comment),T(""),D(0),U(!1)}):V("내용을 입력하세요")},className:"cs-form",children:[f&&(0,a.jsx)(h,{value:A,onChange:D}),(0,a.jsx)("textarea",{value:M,onChange:e=>T(e.target.value),placeholder:"댓글을 남겨보세요",maxLength:1e3,rows:3}),(0,a.jsx)("div",{style:{marginTop:4,display:"flex",justifyContent:"flex-end"},children:(0,a.jsx)(o.s,{text:M,min:v})}),(0,a.jsx)("p",{className:"cs-form-warn",children:"⚠ 작품 감상평이 아닌 의미 없는 댓글(예: “감사합니다”, “잘봤어요” 등) 작성 시 댓글 삭제 및 영구 차단됩니다."}),"work"===e&&(0,a.jsx)("p",{className:"cs-form-warn",children:"⚠ 심한 워터마크는 크롤링 해가는 아류사이트들로 인한 조치이니 양해부탁드리며, 워터마크 관련 댓글은 분탕러로 간주하여 영구 차단합니다."}),"novel"===e&&(0,a.jsx)("p",{className:"cs-form-warn",children:"⚠ 일부 유료 회차는 크롤링해가는 아류사이트들로 인해 어쩔 수 없이 도입된 절차이니 양해부탁드리며, 관련 불평 댓글 작성 시 악용자로 간주하여 영구 차단합니다."}),(0,a.jsxs)("div",{className:"cs-form-foot",children:[(0,a.jsxs)("label",{className:"cs-spoiler-check",children:[(0,a.jsx)("input",{type:"checkbox",checked:F,onChange:e=>U(e.target.checked)}),(0,a.jsx)("span",{children:"⚠ 스포일러"})]}),P&&(0,a.jsxs)("span",{className:"cs-err",children:["⚠ ",P]}),(0,a.jsx)("button",{type:"submit",className:"btn btn--primary",disabled:B||(0,d.g6)(M)<v,children:B?"등록 중...":"댓글 등록"})]})]}):(0,a.jsxs)("div",{className:"cs-login",children:[(0,a.jsx)("p",{children:"댓글을 작성하려면 로그인이 필요합니다."}),(0,a.jsx)("a",{href:"#login","data-auth-open":"login",className:"btn btn--primary",children:"로그인"}),(0,a.jsx)("a",{href:"#signup","data-auth-open":"signup",className:"btn btn--outline",children:"회원가입"})]}),Y.length>0&&(0,a.jsxs)("section",{className:"cs-best","aria-label":"베스트 댓글",children:[(0,a.jsxs)("div",{className:"cs-best-head",children:[(0,a.jsx)("span",{className:"cs-best-icon","aria-hidden":!0,children:"\uD83C\uDFC6"}),(0,a.jsx)("strong",{children:"베스트 댓글"}),(0,a.jsxs)("span",{className:"cs-best-hint",children:["추천 3개 이상 \xb7 상위 ",Y.length,"개"]})]}),(0,a.jsx)("ul",{className:"cs-list cs-list--best",children:Y.map(n=>(0,a.jsx)(p,{c:n,replies:[],kind:e,refId:t,episodeId:s,episodePath:i,currentUserId:x,isAdmin:j,onReplyAdded:Q,onUpdated:X,onDeleted:Z,onVoted:ee,level:0,ipCollisionByValue:N,fpCollisionByValue:y,minComment:v},`best-${n.id}`))})]}),0===W.length?(0,a.jsx)("div",{className:"cs-empty",children:"아직 댓글이 없어요. 첫 댓글을 남겨보세요!"}):(0,a.jsx)("ul",{className:`cs-list ${_?"is-loading":""}`,"aria-busy":_,children:W.map(n=>(0,a.jsx)(p,{c:n,replies:q.get(n.id)??[],kind:e,refId:t,episodeId:s,episodePath:i,currentUserId:x,isAdmin:j,onReplyAdded:Q,onUpdated:X,onDeleted:Z,onVoted:ee,level:0,ipCollisionByValue:N,fpCollisionByValue:y,minComment:v},n.id))}),c>1&&u&&(()=>{let e=Math.max(1,O-5),t=Math.min(c,O+5),s=[];for(let a=e;a<=t;a++)s.push(a);let n=(e,t)=>{e.preventDefault(),H(t)};return(0,a.jsxs)("nav",{className:`pager pager-list cs-pager ${_?"is-loading":""}`,"aria-label":"댓글 페이지",children:[O>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:z(1),onClick:e=>n(e,1),className:"pager-arrow","aria-label":"첫 페이지",children:"\xab"}),(0,a.jsx)("a",{href:z(O-1),onClick:e=>n(e,O-1),className:"pager-arrow","aria-label":"이전 페이지",children:""})]}),s.map(e=>(0,a.jsx)("a",{href:z(e),onClick:t=>n(t,e),className:`pager-num-link ${e===O?"is-active":""}`,"aria-current":e===O?"page":void 0,children:e},e)),O<c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:z(O+1),onClick:e=>n(e,O+1),className:"pager-arrow","aria-label":"다음 페이지",children:""}),(0,a.jsx)("a",{href:z(c),onClick:e=>n(e,c),className:"pager-arrow","aria-label":"마지막 페이지",children:"\xbb"})]})]})})()]})}}}]);