1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2],{7087:function(e,r,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/promo",function(){return o(9027)}])},9027:function(e,r,o){"use strict";o.r(r),o.d(r,{default:function(){return i}});var t=o(5893),s=o(7294),l=o(1163);function i(){let{db:e}=(0,l.useRouter)().query,[r,o]=(0,s.useState)(""),[i,n]=(0,s.useState)(5),[a,d]=(0,s.useState)(["","","","",""]),[c,p]=(0,s.useState)(!1),[x,u]=(0,s.useState)(null),[f,g]=(0,s.useState)({rewardItemName:"ë³´ì ìì´í
",rewardCount:0,allowedDomains:""}),[b,h]=(0,s.useState)([]),[m,y]=(0,s.useState)([]),[j,S]=(0,s.useState)(!1);(0,s.useEffect)(()=>{e&&(async()=>{try{let r=await fetch("/api/proxy/".concat(e,"/promo/config")),o=await r.json();if(r.ok&&o.success){let e=Number(o.link_count)||5;n(e),d(Array(e).fill("")),g({rewardItemName:o.reward_item_name||"ë³´ì ìì´í
",rewardCount:o.reward_count||0,allowedDomains:o.promo_allowed_domains||""})}}catch(e){console.error("ê³µê° íë³´ ì¤ì ì¡°í ì¤í¨:",e)}})()},[e]);let k=(e,r)=>{let o=[...a];o[e]=r,d(o)},C=async e=>{try{if(!navigator.clipboard||!navigator.clipboard.readText){alert("ì´ ë¸ë¼ì°ì í¹ì íê²½(ë¹HTTPS)ììë í´ë¦½ë³´ë í
ì¤í¸ ë¶ì¬ë£ê¸°ê° ì§ì ì§ìëì§ ììµëë¤. 주ìì°½ì ê¾¹ ëë¬ ë¶ì¬ë£ì´ 주ì¸ì.");return}let r=await navigator.clipboard.readText();if(r&&r.trim()){let o=r.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(o.length>1){let r=[...a];for(let t=0;t<o.length;t++){let s=e+t;s<r.length&&(r[s]=o[t])}d(r)}else k(e,r.trim())}else alert("í´ë¦½ë³´ëê° ë¹ì´ ìê±°ë ì½ì ì ìë 주ìê° ììµëë¤.")}catch(e){console.error("í´ë¦½ë³´ë í
ì¤í¸ ì½ê¸° ì¤í¨:",e),alert("í´ë¦½ë³´ë ì½ê¸° ê¶íì íì©í´ 주ìê±°ë 주ì를 ì§ì ê¾¹ ëë¬ ë¶ì¬ë£ì´ 주ì¸ì.")}},w=async o=>{if(o.preventDefault(),!e){alert("ì¬ë°ë¥´ì§ ìì ì ê·¼ì
ëë¤. ìë² ì ë³´(db)ê° ëë½ëììµëë¤.");return}if(!r.trim()){alert("ìºë¦í° ì´ë¦ì ì
ë ¥í´ ì£¼ì¸ì.");return}let t=a.filter(e=>e.trim());if(t.length>0&&t.every(e=>{let r=e.toLowerCase();return r.includes("youtube.com")||r.includes("youtu.be")||r.includes("tiktok.com")})){if(t.length<2){alert("ëìì íë³´(ì íë¸/í±í¡)ë ìµì 2ê° ì´ìì ëìì ë§í¬ë¥¼ ì
ë ¥í´ ì£¼ì¸ì.");return}}else{let e=a.findIndex(e=>!e.trim());if(-1!==e){alert("".concat(e+1,"ë²ì§¸ íë³´ ë§í¬ê° ë¹ì´ ììµëë¤. ").concat(i,"ê° ë§í¬ë¥¼ 모ë ì±ì주ì¸ì."));return}}p(!0),u(null),S(!1);try{let o=await fetch("/api/proxy/".concat(e,"/promo/verify"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({charName:r.trim(),links:a.map(e=>e.trim())})}),t=await o.json();if(o.ok&&t.success)u({success:!0,message:t.message,results:t.results||null}),d(Array(i).fill(""));else if(u({success:!1,message:t.error||"ì¸ì¦ì ì¤í¨íìµëë¤. ì¬ë¦° ê¸ì í¤ìë ë° ì¤ë³µ ë§í¬ ì¬ë¶ë¥¼ íì¸í´ 주ì¸ì.",results:t.results||null}),t.results&&t.results.length>0){let e=t.results.filter(e=>!e.success).map(e=>e.link),r=t.results.filter(e=>e.success).map(e=>e.link);h(e),y(r),S(!0)}}catch(e){u({success:!1,message:"ìë² ì°ê²°ì ì¤í¨íìµëë¤. ì ì í ë¤ì ìëí´ ì£¼ì¸ì."})}finally{p(!1)}},D=async o=>{o.preventDefault(),p(!0),u(null);try{let o=await fetch("/api/proxy/".concat(e,"/promo/bypass-submit"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({charName:r.trim(),links:m,failedLinks:b})}),t=await o.json();o.ok&&t.success?(u({success:!0,message:t.message}),d(Array(i).fill("")),S(!1)):u({success:!1,message:t.error||"ìë ê²ì¦ ìì² ë° ë³´ì ì§ê¸ ì²ë¦¬ì ì¤í¨íìµëë¤. ë¤ì ìëí´ ì£¼ì¸ì."})}catch(e){u({success:!1,message:"ìë² ì°ê²°ì ì¤í¨íìµëë¤. ì ì í ë¤ì ìëí´ ì£¼ì¸ì."})}finally{p(!1)}};return(0,t.jsxs)("div",{style:{minHeight:"100vh",backgroundColor:"#0d1117",color:"#c9d1d9",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"20px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:[(0,t.jsxs)("div",{style:{width:"100%",maxWidth:"560px",backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:"8px",padding:"30px 24px",boxShadow:"0 8px 24px rgba(0,0,0,0.3)"},children:[(0,t.jsxs)("div",{style:{textAlign:"center",marginBottom:"24px"},children:[(0,t.jsx)("span",{style:{fontSize:"40px"},children:"\uD83D\uDCE2"}),(0,t.jsx)("h2",{style:{fontSize:"22px",fontWeight:"bold",color:"#58a6ff",margin:"10px 0 6px 0"},children:e?"[".concat(e,"] ìë² íë³´ ìë ì¸ì¦"):"íë³´ ìë ì¸ì¦ ìì¤í
"}),(0,t.jsxs)("p",{style:{fontSize:"13px",color:"#8b949e",margin:0},children:["ìì±íì íë³´ ê²ìê¸ ë§í¬ ",i,"ê°ë¥¼ ì ì¶íë©´ ì¤ìê° ê²ì¦ì ê±°ì³ ",(0,t.jsx)("br",{}),"ê°ì¸ ì°½ê³ (Warehouse)ë¡ ë³´ì",f.rewardCount>0?" [".concat(f.rewardItemName,"] ").concat(f.rewardCount.toLocaleStr
1ing(),"ê°"):"ì´"," ìë ì§ê¸ë©ëë¤."]})]}),e?(0,t.jsxs)("form",{onSubmit:w,style:{display:"flex",flexDirection:"column",gap:"16px"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{style:{display:"block",fontSize:"13px",fontWeight:"bold",marginBottom:"6px",color:"#ff7b72"},children:"\uD83D\uDC64 ë³´ìì ë°ì ìºë¦í° ì´ë¦ *"}),(0,t.jsx)("input",{type:"text",value:r,onChange:e=>o(e.target.value),placeholder:"ì¸ê²ì ìºë¦í°ëª
ì ì íí ì
ë ¥íì¸ì",required:!0,disabled:c,style:{width:"100%",backgroundColor:"#0d1117",border:"1px solid #30363d",borderRadius:"6px",color:"#f0f6fc",padding:"10px 12px",fontSize:"14px",boxSizing:"border-box",outline:"none"}})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{style:{display:"block",fontSize:"13px",fontWeight:"bold",marginBottom:"8px"},children:["\uD83D\uDD17 íë³´ê¸ ê²ìê¸ ë§í¬ ëª©ë¡ (",i,"ê° íì)"]}),f.allowedDomains&&(0,t.jsxs)("div",{style:{fontSize:"11px",color:"#58a6ff",backgroundColor:"rgba(56,139,253,0.1)",border:"1px solid rgba(56,139,253,0.2)",borderRadius:"4px",padding:"8px 10px",marginBottom:"10px",lineHeight:"1.4"},children:["\uD83D\uDCE2 ",(0,t.jsx)("strong",{children:"íì©ë ë±ë¡ ì¬ì´í¸:"})," ",f.allowedDomains,(0,t.jsx)("br",{}),"(ì§ì ë ì¬ì´í¸ì ìì±ë íë³´ê¸ ë§í¬ë§ ë±ë¡ ë° ê²ì¦ì´ ê°ë¥í©ëë¤.)"]}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:a.map((e,r)=>(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,t.jsxs)("span",{style:{fontSize:"12px",color:"#8b949e",width:"45px",textAlign:"right",fontWeight:"bold"},children:[r+1,"ë²ë°©:"]}),(0,t.jsx)("input",{type:"url",value:e,onChange:e=>k(r,e.target.value),onPaste:e=>{let o=e.clipboardData.getData("text");if(o){let t=o.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(t.length>1){e.preventDefault();let o=[...a];for(let e=0;e<t.length;e++){let s=r+e;s<o.length&&(o[s]=t[e])}d(o)}}},placeholder:"https://... íë³´ ê²ìê¸ì URL 주ì ì
ë ¥",disabled:c,style:{flex:1,backgroundColor:"#0d1117",border:"1px solid #30363d",borderRadius:"6px",color:"#f0f6fc",padding:"10px 12px",fontSize:"13px",boxSizing:"border-box",outline:"none"}}),(0,t.jsx)("button",{type:"button",onClick:()=>C(r),disabled:c,style:{padding:"10px 12px",backgroundColor:"#21262d",border:"1px solid #30363d",borderRadius:"6px",color:"#c9d1d9",fontSize:"12px",cursor:"pointer",whiteSpace:"nowrap",outline:"none",transition:"background-color 0.2s"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#30363d",onMouseLeave:e=>e.currentTarget.style.backgroundColor="#21262d",children:"\uD83D\uDCCB ë¶ì¬ë£ê¸°"})]},r))})]}),(0,t.jsxs)("div",{style:{backgroundColor:"#1f1f1f",border:"1px solid #30363d",borderRadius:"6px",padding:"12px",fontSize:"12px",color:"#8b949e",lineHeight:"1.6"},children:["\uD83D\uDCCC **íë
ì ìì¬í** ",(0,t.jsx)("br",{}),"- 모ë ë§í¬ì ì¹íì´ì§ì ê³µì íë³´ê¸ í¤ìëê° ìì í ë¤ì´ìì´ì¼ í©ëë¤. ",(0,t.jsx)("br",{}),"- í ë² ì¬ì©(ì¹ì¸)ë ë§í¬ë ì¤ë³µ ì ì¶ì´ ë¶ê°ë¥íë©°, ë¤ë¥¸ ìºë¦í°ë ë¤ìë ì¬ì¬ì©í ì ììµëë¤. (ë§¤ì¼ ìë¡ ì´ ê¸ë§ ì ì¶ ê°ë¥)"]}),(0,t.jsx)("button",{type:"submit",disabled:c,style:{backgroundColor:c?"#21262d":"#238636",border:"1px solid rgba(240,246,252,0.1)",borderRadius:"6px",color:c?"#8b949e":"#ffffff",padding:"12px",fontSize:"15px",fontWeight:"bold",cursor:c?"not-allowed":"pointer",textAlign:"center",transition:"background-color 0.2s",marginTop:"6px"},children:c?"â³ ì¤ìê° í¬ë¡¤ë§ ê²ì¦ ì§í ì¤...":"\uD83C\uDF81 íë³´ ìëì¸ì¦ ë° ë³´ì ë°ê¸°"})]}):(0,t.jsxs)("div",{style:{backgroundColor:"rgba(248,81,73,0.1)",border:"1px solid rgba(248,81,73,0.3)",borderRadius:"6px",color:"#f85149",padding:"16px",fontSize:"14px",textAlign:"center"},children:["â ï¸ **ì ê·¼ ì¤ë¥:** ì§ì ë ìë² ì ë³´ê° ì¡´ì¬íì§ ììµëë¤. ",(0,t.jsx)("br",{}),"ì´ììê° ê³µì í´ ì¤ ê³µì íë³´ 주ìë¡ ë¤ì ì ìí´ ì£¼ì¸ì."]}),x&&(0,t.jsxs)("div",{style:{marginTop:"20px",padding:"16px",borderRadius:"6px",border:"1px solid",backgroundColor:x.success?"rgba(56,139,253,0.1)":"rgba(248,81,73,0.1)",borderColor:x.success?"rgba(56,139,253,0.3)":"rgba(248,81,73,0.3)",color:x.success?"#58a6ff":"#f85149",fontSize:"14px",lineHeight:"1.5"},children:[(0,t.jsx)("strong",{style:{display:"block",fontSize:"15px",marginBottom:"8px"},children:x.success?"â
ì¸ì¦ ìë£ ë° ì§ê¸ ì±ê³µ":"â ì¸ì¦ ì¤í¨"}),(0,t.jsx)("div",{style:{marginBottom:"12px",whiteSpace:"pre-wrap"},children:x.message}),x.results&&x.results.length>0&&(0,t.jsx)("div",{style:{marginTop:"12px",borderTop:"1px solid rgba(255, 255, 255, 0.1)",paddingTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:x.results.map((e,r)=>(0,t.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",ga
1p:"8px",fontSize:"13px",backgroundColor:e.success?"rgba(56,139,253,0.05)":"rgba(248,81,73,0.05)",padding:"8px 10px",borderRadius:"4px",border:"1px solid",borderColor:e.success?"rgba(56,139,253,0.1)":"rgba(248,81,73,0.1)",color:e.success?"#88c0ff":"#ff7b72"},children:[(0,t.jsx)("span",{style:{fontSize:"14px",flexShrink:0,marginTop:"2px"},children:e.success?"â
":"â"}),(0,t.jsxs)("div",{style:{wordBreak:"break-all"},children:[(0,t.jsxs)("strong",{children:[e.index,"ë²ë°©:"]})," ",e.success?"ì¸ì¦ íµê³¼":"ê²ì¦ ì¤í¨ - ".concat(e.error),(0,t.jsx)("div",{style:{fontSize:"11px",color:"#8b949e",marginTop:"2px"},children:e.link})]})]},r))})]}),j&&(0,t.jsxs)("div",{style:{marginTop:"20px",padding:"20px",backgroundColor:"#1f242c",border:"2px dashed #ff7b72",borderRadius:"8px",color:"#c9d1d9",fontSize:"14px",lineHeight:"1.6"},children:[(0,t.jsx)("strong",{style:{display:"block",fontSize:"15px",color:"#ff7b72",marginBottom:"8px"},children:"â ï¸ ë³´ì ì°í ìë ê²ì¦ ìì²"}),(0,t.jsxs)("p",{style:{margin:"0 0 16px 0",fontSize:"13px",color:"#8b949e",lineHeight:"1.5"},children:["ì¼ë¶ íë³´ ì¬ì´í¸(ì: ì°ìë¯¸ë· ë±)ì ê°ë ¥í ë³´ì ë문ì ìë ì¸ì¦ì ì¤í¨íìµëë¤. ",(0,t.jsx)("br",{}),"ìë ë²í¼ì ë르면 íµê³¼íì§ ëª»í ë§í¬ë¤ì´ ì´ìì í
ë ê·¸ë¨ì¼ë¡ ì ì¡ëì´ **ìë ê²ì¦ì´ ìì²ëë©°, ë³´ìì ì¸ê²ì ì°½ê³ ë¡ ì¦ì ì ì§ê¸**ë©ëë¤."]}),(0,t.jsxs)("div",{style:{backgroundColor:"rgba(248,81,73,0.1)",border:"1px solid rgba(248,81,73,0.3)",borderRadius:"6px",padding:"12px",fontSize:"12.5px",color:"#ff7b72",marginBottom:"16px",lineHeight:"1.4"},children:["\uD83D\uDEA8 **íë
ì ìì¬í** ",(0,t.jsx)("br",{}),"ì´ììê° ì¬í ìë ê²í ì íë³´ê¸ íì¸ì´ ì ëë¡ ì ë ê²½ì°(íì ì ì¶ ë±), **ìì´í
íì ë° ê³ì ì구 ì ì¬** ë±ì ë¶ì´ìµì ë°ì ì ììµëë¤."]}),(0,t.jsx)("button",{onClick:D,disabled:c,style:{width:"100%",backgroundColor:c?"#21262d":"#238636",border:"1px solid rgba(240,246,252,0.1)",borderRadius:"6px",color:c?"#8b949e":"#ffffff",padding:"12px",fontSize:"14px",fontWeight:"bold",cursor:c?"not-allowed":"pointer",textAlign:"center",transition:"background-color 0.2s"},children:c?"â³ ë³´ì ì ì§ê¸ ë° ìì² ì ì¡ ì¤...":"\uD83C\uDF81 ìë ê²ì¦ ëìíê³ ì¦ì ë³´ì ë°ê¸°"})]})]}),(0,t.jsx)("div",{style:{marginTop:"20px",fontSize:"11px",color:"#8b949e"},children:"Powered by ë방캣 íë³´ ìëí ìì¤í
\xa9 2026"})]})}},1163:function(e,r,o){e.exports=o(3079)}},function(e){e.O(0,[888,774,179],function(){return e(e.s=7087)}),_N_E=e.O()}]);
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.