1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9485],{50106:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/discordverify",function(){return n(16863)}])},92658:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var s=n(12634);class r{bindGithub(e){return s.Z.get("/baseAPI/oauth2/bind/code/github",e)}bindTwitter(e){return s.Z.get("/baseAPI/oauth2/callback/twitter",e)}constructor(){this.bindDiscord=async e=>s.Z.post("/baseAPI/oauth2/callback/discord?code=".concat(e),null),this.bindTelegram=async e=>s.Z.post("/baseAPI/oauth2/callback/telegram",e)}}let c=new r},16863:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return m},default:function(){return w}});var s=n(11527),r=n(24822),c=n(65356),i=n(50959),a=n(6896),l=n(23118),o=n(33302),u=n(92658),d=n(89181),f=n(86089),h=n(25238),m=!0;function w(){let e=(0,c.useRouter)(),{address:t}=(0,o.m)(),{logined:n}=(0,f.b)(),[m,w]=(0,i.useState)(!1),[v,x]=(0,i.useState)(10),[b,g]=(0,i.useState)(""),[_,N]=(0,i.useState)(null),p=async e=>{let t=await u.T.bindDiscord(e);"200"==t.code?(w(!0),g(t.data),console.log("handleBindDiscord res",t)):(a.Am.error("Bind Discord faild."),console.error("handleBindDiscord error",t))};return(0,i.useEffect)(()=>{if(!t||!n)return;let{code:s}=e.query;s&&(console.log("Discord Verify",{code:s}),p(s))},[e.query,t,n]),(0,l.Z)(()=>{x(Math.max(0,v-1)),v-1<=0&&window.close()},m&&v>0?1e3:null),(0,i.useEffect)(()=>{window.addEventListener("message",e=>{e.origin===d.UI_DOMAIN&&e.data==="verify_discord_".concat(t)&&(N(e.source),console.log("handleRecieve",e))},!1)},[t]),(0,i.useEffect)(()=>{b&&_&&_.postMessage(JSON.stringify({["".concat(t,"_discordRes")]:b}),d.UI_DOMAIN)},[b,_,t]),(0,s.jsx)(h.Z,{skipFristLogin:!0,title:"",children:(0,s.jsx)("div",{className:"container relative m-auto max-w-4xl min-h-[20rem]",children:(0,s.jsx)("div",{className:"p-12 m-auto",children:m?(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("h1",{className:"text-xl py-12 text-center",children:[(0,s.jsx)(r.Z,{className:"w-12 mx-auto my-4 text-success"}),"Discord Verify Successfully!"]}),(0,s.jsxs)("p",{className:"text-slate-600",children:["This window will close after ",v," seconds."]})]}):(0,s.jsxs)("div",{className:"flex justify-center",children:[(0,s.jsx)("span",{className:"loading loading-sm loading-spin"}),"Loading..."]})})})})}},23118:function(e,t,n){"use strict";var s=n(50959);t.Z=function(e,t){var n=(0,s.useRef)(function(){});(0,s.useEffect)(function(){n.current=e}),(0,s.useEffect)(function(){if(null!==t){var e=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(e)}}},[t])}},24822:function(e,t,n){"use strict";var s=n(50959);let r=s.forwardRef(function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))});t.Z=r}},function(e){e.O(0,[6396,2459,2301,5872,4751,2531,1558,4889,5514,2274,2888,9774,179],function(){return e(e.s=50106)}),_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.