(self.webpackChunkpc_live_next=self.webpackChunkpc_live_next||[]).push([[896],{98750:(e,r,t)=>{"use strict";t.d(r,{Us:()=>a,Fc:()=>i,e:()=>u});var n=t(18003);function a(){return(0,n.U2)("/live_api/interestMask/list")}function i(e){return(0,n.U2)("/live_api/interestMask/item",e)}function u(e){return(0,n.U2)("/live_api/profileInterestMask/list",{principalId:e})}},73509:(e,r,t)=>{"use strict";t.d(r,{Eu:()=>a,_z:()=>i,pT:()=>u,h0:()=>o,N:()=>s,D9:()=>c});var n=t(18003);function a(e){return(0,n.U2)("/live_api/search/overview",e)}function i(e){return(0,n.U2)("/live_api/search/category",e)}function u(e){return(0,n.U2)("/live_api/search/author",e)}function o(e){return(0,n.U2)("/live_api/search/liveStream",e)}function s(e){return(0,n.v_)("/live_api/web/header/searchSuggestQuery",{keyword:e})}function c(e){return(0,n.v_)("/live_api/web/header/searchHotUserListQuery",{limit:e})}},51684:(e,r,t)=>{"use strict";t.d(r,{H:()=>n,W:()=>a});var n="快手,直播,游戏直播,热门游戏,高清游戏",a="快手游戏直播，又快又好的游戏直播。"},82975:(e,r,t)=>{"use strict";t.d(r,{C:()=>n.C});var n=t(33080)},63742:(e,r,t)=>{"use strict";t.d(r,{Z:()=>s});var n=t(15861),a=t(64687),i=t.n(a),u=t(21510),o=t(53825);function s(){return c.apply(this,arguments)}function c(){return(c=(0,n.Z)(i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=(0,o.H)().userBannedValue)){e.next=4;break}return"BANNED"===r?(0,u.TY)("由于违反社区规定，账号封禁，请前往快手APP进行解封申诉"):"SOCIALBANNED"===r&&(0,u.TY)("账号异常，请前往快手APP激活"),e.abrupt("return",!1);case 4:return e.abrupt("return",!0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},66102:(e,r,t)=>{"use strict";t.d(r,{J:()=>i,g:()=>o}),t(68309),t(26699),t(32023),t(66992),t(41539),t(78783),t(33948),t(60285),t(41637);var n=t(7224),a=t(28511);function i(e,r){var t,i,s=null!==(t=null!==(i=sessionStorage.getItem(a.Mq))&&void 0!==i?i:document.referrer)&&void 0!==t?t:"";(0,n.cr)("WEB_LIVE_ROOM_PAGE",{author_id:e.author.id,live_stream_id:e.liveStream.id,game_id:e.gameInfo.id,game_name:e.gameInfo.name,is_living:e.isLiving?1:0,browser_width:window.innerWidth,browser_height:window.innerHeight,source:u()||r,domain_name:o(s),url:s.includes(document.domain)?"":s})}function u(){var e=document.referrer;return e?e.includes(document.domain)?e.includes("/cate/")?9:e.includes("/my-follow/")?4:e.includes("/search")?5:e.includes("/match")||e.includes("/race")?6:e.includes("/live/")?5:2:0:7}function o(e){return""===e||e.includes(document.domain)?"":new URL(e).hostname}},23330:e=>{e.exports='<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="__1AQgEfi__意见反馈_弹窗" stroke="none" stroke-width="1" fill="currentColor" fill-rule="evenodd" transform="translate(-713.000000, -193.000000)"><g id="__1AQgEfi__默认状态" transform="translate(227.000000, 176.000000)"><g id="__1AQgEfi__关闭按钮-copy-4" transform="translate(479.000000, 10.000000)"><path d="M19.2857143,14.2857143 L24.2857143,14.2857143 C24.6802034,14.2857143 25,14.6055109 25,15 C25,15.3944891 24.6802034,15.7142857 24.2857143,15.7142857 L19.2857143,15.7142857 C18.8912252,15.7142857 18.5714286,15.3944891 18.5714286,15 C18.5714286,14.6055109 18.8912252,14.2857143 19.2857143,14.2857143 Z M15.7142857,15.7142857 L15.7142857,24.2857143 C15.7142857,24.6802034 15.3944891,25 15,25 C14.6055109,25 14.2857143,24.6802034 14.2857143,24.2857143 L14.2857143,15.7142857 L5.71428571,15.7142857 C5.31979661,15.7142857 5,15.3944891 5,15 C5,14.6055109 5.31979661,14.2857143 5.71428571,14.2857143 L14.2857143,14.2857143 L14.2857143,5.71428571 C14.2857143,5.31979661 14.6055109,5 15,5 C15.3944891,5 15.7142857,5.31979661 15.7142857,5.71428571 L15.7142857,14.2857143 L15.7142857,15.7142857 Z" id="__1AQgEfi__Combined-Shape" transform="translate(15.000000, 15.000000) rotate(-315.000000) translate(-15.000000, -15.000000) "></path></g></g></g></svg>'},11475:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>H});var n=t(15861),a=t(64687),i=t.n(a),u=(t(73210),t(66992),t(41539),t(78783),t(33948),t(60285),t(41637),t(74916),t(23123),t(5212),t(92222),t(15306),t(68309),t(66252)),o=t(49963),s=t(2262),c=t(22201),l=t(75937),p=t(2969),d=t(57702),f=t(42399),m=t(46136),v=t(49703),h=t(56182),_=t(51684),w=t(11404),g=t(40830),k=t(18003),y=(0,g.Q_)("ThirdPartStore",{state:function(){return{list:[]}},actions:{prefetch:function(){var e=this;return(0,n.Z)(i().mark((function r(){var t;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,k.U2)("/live_api/thirdpart/urls");case 2:t=r.sent.data.list,e.list=t.urls;case 4:case"end":return r.stop()}}),r)})))()}}}),b=t(11878),x=t(7224),U=t(58188),C=function(e){return(0,u.dD)("data-v-7a1fec36"),e=e(),(0,u.Cn)(),e},L={class:"third-part"},I={key:0},Z={class:"supplement"},q=C((function(){return(0,u._)("header",null,[(0,u._)("strong",null,"快手"),(0,u.Uk)("欢迎你，请完善下基本信息")],-1)})),E={class:"agreement"},P=C((function(){return(0,u._)("a",{href:"https://www.kuaishou.com/protocol.html",target:"_blank",rel:"noopener"}," 《用户服务协议》 ",-1)}));const A=(0,u.aZ)({__name:"index",setup:function(e){(0,l.jq)({title:"三方登录-快手直播",meta:[{name:"keywords",content:_.H},{name:"description",content:_.W}]});var r=(0,c.tv)(),t=(0,c.yj)(),a=!t.query.data,g=(0,w.oR)(b.HP),k=(0,w.oR)(y),C=(0,s.iH)(!1),A=(0,s.iH)("M"),H=(0,s.iH)(""),N=(0,s.iH)(!0);function S(e){return M.apply(this,arguments)}function M(){return(M=(0,n.Z)(i().mark((function e(r){var n,a,u,o,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=new URL(t.query.followUrl||location.href.split("?")[0]),k.list.some((function(e){return n&&n.host===e}))){e.next=5;break}throw new Error;case 5:if(a=t.query.followUrl,u=a?"".concat(location.href.split("?")[0],"?callback=").concat(encodeURIComponent(a),"&followUrl=").concat(a):location.href.split("?")[0],r){e.next=9;break}return e.abrupt("return",(0,h.thirdPartLogin)({type:t.params.type,followUrl:u}));case 9:return o=r.captchaConfig,s=r.captchaJsSdk,e.next=12,(0,h.initCaptcha)(s,o);case 12:return c=e.sent,e.abrupt("return",(0,h.thirdPartLogin)({type:t.params.type,followUrl:u,captchaToken:c}));case 16:e.prev=16,e.t0=e.catch(0),V({error_msg:"非法跳转地址"});case 19:case"end":return e.stop()}}),e,null,[[0,16]])})))).apply(this,arguments)}function W(){return(W=(0,n.Z)(i().mark((function e(n){var a,u,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.authToken,u=n.sid,a){e.next=4;break}return V({error_msg:n.error_msg}),e.abrupt("return");case 4:if(e.prev=4,!t.query.callback){e.next=16;break}if("http:"===(o=new URL(t.query.callback)).protocol||"https:"===o.protocol){e.next=10;break}return V({error_msg:"非法协议，请使用安全的地址"}),e.abrupt("return");case 10:if(k.list.some((function(e){return o&&o.host===e}))){e.next=14;break}return V({error_msg:"非法域名，请使用安全的地址"}),e.abrupt("return");case 14:return location.replace("".concat(t.query.callback,"?authToken=").concat(a,"&sid=").concat(u)),e.abrupt("return");case 16:return e.next=18,g.login({authToken:a,sid:u});case 18:e.next=24;break;case 20:return e.prev=20,e.t0=e.catch(4),V({error_msg:e.t0.error_msg}),e.abrupt("return");case 24:if((0,U.cE)("LOGIN_POPUP",{source:t.params.source,sign_type:"qq"===t.params.type?"QQ":"WECHAT"}),(0,x.ut)("login_status",{source:"login_floating",target:"".concat(t.params.type),user_name:"".concat(g.userInfo.name),user_id:"".concat(g.userInfo.id)}),g.userInfo.isNew){e.next=29;break}return r.push("/"),e.abrupt("return");case 29:C.value=g.userInfo.isNew,H.value=g.userInfo.name,A.value=g.userInfo.sex;case 32:case"end":return e.stop()}}),e,null,[[4,20]])})))).apply(this,arguments)}function Q(){return T.apply(this,arguments)}function T(){return(T=(0,n.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.modifyUserInfo({userName:H.value.trim(),userSex:A.value});case 2:return e.next=4,g.getUserInfo();case 4:r.push("/");case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(e){return R.apply(this,arguments)}function R(){return(R=(0,n.Z)(i().mark((function e(r){var t,n,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=(0,u.FN)(),e.t0=null===(t=s.root)||void 0===t||null===(n=t.refs)||void 0===n||null===(a=n.alertModal)||void 0===a?void 0:a.show,!e.t0){e.next=5;break}return e.next=5,null===(o=s.root.refs)||void 0===o?void 0:o.alertModal.show({title:"注意",msg:r.error_msg||"服务器错误，请刷新重试"});case 5:window.close();case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(){if(a)S();else{var e=t.query.data?JSON.parse(t.query.data):{};null!=e&&e.captchaJsSdk?S(e):function(e){W.apply(this,arguments)}(e)}}return(0,u.YP)((function(){return k.list}),D),(0,u.bv)((function(){k.list.length>0&&D()})),function(e,r){return(0,u.wg)(),(0,u.iD)("div",L,[C.value?((0,u.wg)(),(0,u.iD)("div",I,[(0,u.Wm)(p.Z),(0,u._)("div",Z,[q,(0,u.Wm)(v.Z,{modelValue:A.value,"onUpdate:modelValue":r[0]||(r[0]=function(e){return A.value=e})},null,8,["modelValue"]),(0,u.wy)((0,u._)("input",{"onUpdate:modelValue":r[1]||(r[1]=function(e){return H.value=e}),maxlength:"12",type:"text",placeholder:"请输入昵称",class:"nick-name-input"},null,512),[[o.nr,H.value]]),(0,u._)("div",E,[(0,u.Wm)(m.Z,{modelValue:N.value,"onUpdate:modelValue":r[2]||(r[2]=function(e){return N.value=e})},{default:(0,u.w5)((function(){return[(0,u.Uk)(" 同意"),P]})),_:1},8,["modelValue"])]),(0,u.Wm)(f.Z,{disabled:!N.value||!H.value.trim(),type:"primary",class:"finish-supplemenet",onClick:Q},{default:(0,u.w5)((function(){return[(0,u.Uk)(" 提交 ")]})),_:1},8,["disabled"])]),(0,u.Wm)(d.Z)])):(0,u.kq)("",!0)])}}}),H=(0,t(83744).Z)(A,[["__scopeId","data-v-7a1fec36"]])}}]);