
管理员
站长
- UID
- 1
- 积分
- 224394
- 余额
- 13 R
- Moe币
- 84875
- 在线时间
- 279 小时
- 注册时间
- 2025-12-28
- 最后登录
- 2026-11-3
|
|
})}removeClosehoverinfoListener(){I.removeEventListener(this.eventName.closehoverinfo)}addPanelShowListener(i){I.addEventListener(this.eventName.showpanelv2info,t=>{i(t)})}removePanelShowListener(){I.removeEventListener(this.eventName.showpanelv2info)}checkLoginStatus(){return I.common.account.checkLoginState()}getUserInfo(){return I.common.account.getUserInfo()}};class M{constructor(){}async send(t,i={}){i=Object.assign({},i);await I.util.dataWarehouseSend(t,i)}}[{account_loginprompt_show(t={}){this.send("account_loginprompt_show",{show_from:t.show_from,...t})},account_loginprompt_click(t={}){this.send("account_loginprompt_click",{show_from:t.show_from,click:t.click,...t})},account_loginprompt_bonus_show(t={}){this.send("account_loginprompt_bonus_show",{show_from:t.show_from,type:t.type,...t})},account_loginprompt_bonus_click(t={}){this.send("account_loginprompt_bonus_click",{show_from:t.show_from,type:t.type,...t})}},{dw_account_loginprompt_show_v2(t={}){this.send("account_loginprompt_frontend_show",{version:"v2",show_from:t.show_from,rulename:t.rulename,...t})},dw_account_loginprompt_downloadapp_show_v2(){this.send("account_loginprompt_downloadapp_show")},dw_account_loginprompt_click_v2(t={}){this.send("account_loginprompt_click",{version:"v2",show_from:t.show_from,click:t.click,rulename:t.rulename,...t})}}].forEach(t=>{for(var i in t)t.hasOwnProperty(i)&&(M.prototype[i]=t[i])});var l=new M;g.a.disableAll();let r=t=>"function"==typeof t||!1;var I={init:t=>{r(t)&&t()},exec:(t,i,e)=>{s.a.exec(t,i,e)},execPromise:(t,i)=>s.a.execPromise(t,i),addEventListener:(t,i)=>{c.a.addEventListener(t,t=>{r(i)&&i(t)})},removeEventListener:t=>{c.a.removeEventListener(t)},util:A,common:t.a,report:l};var u=new class{constructor(){this.api={getKFpccombData:"getKFpccombData",watchKFpccomb:"watchKFpccomb",getUnloginAccountPanelV2KFpcData:"getUnloginAccountPanelV2KFpcData"},this.eventName="event.accountpanel.kfpccombnotify",this.moduleId=2084}getKFpccombData(){return new Promise((e,n)=>{I.execPromise(this.api.getKFpccombData,{moduleId:this.moduleId}).then(t=>{var{configuration:t,callstatus:i}=t;"ok"==i?e(t):n(new Error("getKFpccombData got error"))}).catch(t=>{n(new Error("getKFpccombData got error"+t))})})}getUnloginAccountPanelV2KFpcData(){return new Promise((e,i)=>{I.execPromise(this.api.getUnloginAccountPanelV2KFpcData).then(t=>{var{configuration:t,callstatus:i}=t;e("ok"==i?JSON.parse(t):{})}).catch(t=>{i(new Error("getUnloginAccountPanelV2KFpcData got error"+t))})})}watchKFpccomb(t=t=>t){try{I.exec(this.api.watchKFpccomb,{moduleId:this.moduleId}),t()}catch(t){}}addWatchKFpccombListener(n){try{I.addEventListener(this.eventName,t=>{var{callstatus:i,moduleId:e}=t;"ok"==i&&e==this.moduleId&&n(t)})}catch(t){}}removeWatchKFpccombListener(){try{I.removeEventListener(this.eventName)}catch(t){}}},d=new e.a,g={name:"PrivilegeGuidePanel",data(){return{title:n.default.t("2c51061160"),PRIVILEGE:a.privilege,PRIVILEGE_DEFAULT:a.privilege,OPERATION:a.operation,OPERATION_DEFAULT:a.operation,defalutWidth:360,defalutHeight:395,defalutMinHeight:329,defalutMinHeightWithOperation:410,defalutMaxHeight:476,isImgLoaded:!1,isDark:this.$isCurrentDark,act_type:"",privilegeMinValid:3,privilegeMaxValid:4,TEMP_PRIVILEGE:[],show_from:""}},watch:{OPERATION:{deep:!0,handler:async function(t){var i;o(t)&&0<t.length&&({act_type:t,image:i}=t[0],this.act_type=t,this.isImgLoaded=await this.handleImageLoaded(i),this.isImgLoaded?this.handleSetPanelSizeWithOperation(!0):this.handleSetPanelSizeWithOperation(!1))}}},computed:{showOperation(){return 1==this.OPERATION.length&&this.isImgLoaded}},mounted(){try{this.handleSkinChange(),this.handleSetPanelSize(),this.handleWatchKFpccomb(),this.handleAddFpccombListener(),this.handleAddHoverListener()}catch(t){this.handlePageReady()}},destroyed(){this.handleRemoveListener()},methods:{async handleShowFromInfo(){return(await this.$sdk.util.getShowFromInfo()).show_from},async handleRedirect(t,i){try{var e=await this.handleShowFromInfo();await this.$sdk.report.account_loginprompt_bonus_click({show_from:e,type:i}),this.$sdk.util.redirectWebview(t),this.$sdk.util.closeWebview()}catch(t){}},handleSetPanelSize(t){var i=this.defalutWidth,t=t||this.defalutHeight;this.$sdk.util.setPanelSize({width:i,height:t})},handleSetPanelSizeWithOperation(t){t?this.PRIVILEGE.length==this.privilegeMinValid?this.handleSetPanelSize(this.defalutMinHeightWithOperation):this.PRIVILEGE.length==this.privilegeMaxValid&&this.handleSetPanelSize(this.defalutMaxHeight):this.PRIVILEGE.length==this.privilegeMinValid?this.handleSetPanelSize(this.defalutMinHeight):this.PRIVILEGE.length==this.privilegeMaxValid&&this.handleSetPanelSize(this.defalutHeight)},async handleGetKFpccombData(i=!0){try{var t=await u.getKFpccombData(),n=JSON.parse(t);let e="";if(o(n)&&0<n.length){let{privilege:t,operation:i}=n[0];o(t)&&t.length>=this.privilegeMinValid&&(this.TEMP_PRIVILEGE=JSON.parse(JSON.stringify(t)),t.length===this.privilegeMinValid?await this.handleShowPrivilege(this.TEMP_PRIVILEGE,this.privilegeMinValid):await this.handleShowPrivilege(this.TEMP_PRIVILEGE,this.privilegeMaxValid)),o(i)&&1<=i.length?(this.OPERATION=i.slice(0,1),e=this.OPERATION[0]&&this.OPERATION[0].act_type):(this.handleSetPanelSizeWithOperation(!1),this.OPERATION=this.OPERATION_DEFAULT)}i&&this.handlePageReady(e)}catch(t){i&&this.handlePageReady()}},async handleShowPrivilege(t,i){t=t.slice(0,i);let e=0;await Promise.all(t.map(async t=>{try{var i=await this.handleImageLoaded(this.isDark?t.darkIcon:t.icon);t.title()&&t.desc()&&i?(e+=1,t.canShow=!0):t.canShow=!1}catch(t){}})),e>=this.privilegeMinValid?this.PRIVILEGE=t.filter(t=>t.canShow):this.PRIVILEGE=this.PRIVILEGE_DEFAULT},handleImageLoaded(e){return new Promise(t=>{var i=new Image;i.onload=()=>{t(!0)},i.onerror=()=>{t(!1)},i.src=e})},async handleCloseWebview(){try{var t=await this.handleShowFromInfo();await this.$sdk.report.account_loginprompt_click({show_from:t,click:"close"}),this.$sdk.util.closeWebview()}catch(t){}},handlePageReady(t){this.$sdk.util.noticeWebviewReady(t)},async handleLogin(){try{var t=await this.handleShowFromInfo();await this.$sdk.report.account_loginprompt_click({show_from:t,click:"login"}),this.$sdk.util.login(),this.$sdk.util.closeWebview()}catch(t){}},handleWatchKFpccomb(){u.watchKFpccomb(this.handleGetKFpccombData)},handleAddFpccombListener(){u.addWatchKFpccombListener(()=>this.handleGetKFpccombData(!1))},async handleAddCloseHoverListener(t){var i=await this.handleShowFromInfo();this.$sdk.report.account_loginprompt_click({show_from:i,click:t.click})},async handleAddPanelShowListener(){var t=await this.handleShowFromInfo();this.$sdk.report.account_loginprompt_show({show_from:t}),this.showOperation&&this.$sdk.report.account_loginprompt_bonus_show({show_from:t,type:this.act_type})},handleAddHoverListener(){this.$sdk.util.addClosehoverinfoListener(this.handleAddCloseHoverListener)},handleAddShowListener(){this.$sdk.util.addPanelShowListener(this.handleAddPanelShowListener)},handleRemoveListener(){u.removeWatchKFpccombListener(),this.$sdk.util.removeClosehoverinfoListener()},handleSkinChange(){d.$on("changeSkin",async({isDark:t})=>{this.isDark=t,await this.handleShowPrivilege(this.TEMP_PRIVILEGE,3==this.TEMP_PRIVILEGE.length?3:4),this.showOperation?this.handleSetPanelSizeWithOperation(!0):this.handleSetPanelSizeWithOperation(!1)})},handleDefaultIcon(t,i){t=t.srcElement;t.src=this.isDark?this.PRIVILEGE_DEFAULT[i].darkIcon:this.PRIVILEGE_DEFAULT[i].icon,t.onerror=null}}},A=(i("9d81"),i("2877")),t=Object(A.a)(g,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"panel",staticClass:"login_privilege_guide_container"},[n("div",{staticClass:"login_privilege_guide_header"},[n("div",{staticClass:"login_privilege_guide_header--title"},[e._v(e._s(e.title))]),n("div",{staticClass:"login_privilege_guide_header--close",on:{click:e.handleCloseWebview}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[n("path",{attrs:{fill:"currentColor","fill-rule":"nonzero",d:"M8 7.151l5.076-5.075a.6.6 0 01.848.848L8.85 8l5.075 5.076a.6.6 0\n 01-.848.848L8 8.85l-5.076 5.075a.6.6 0 01-.848-.848L7.15 8 2.076 2.924a.6.6 0 01.848-.848L8 7.15z"}})])])]),n("div",{staticClass:"login_privilege_guide_content"},e._l(e.PRIVILEGE,function(t,i){return n("div",{key:i,staticClass:"login_privilege_guide_content--privilege"},[n("div",{staticClass:"privilege-icon"},[n("img",{staticClass:"icon",attrs:{src:e.isDark?t.darkIcon:t.icon,alt:""}})]),n("div",{staticClass:"privilege-content"},[n("span",{staticClass:"title"},[e._v(e._s(t.title()))]),n("span",{staticClass:"desc",attrs:{title:t.desc()}},[e._v(e._s(t.desc()))])])])}),0),e.showOperation?n("div",{staticClass:"login_privilege_guide_activity"},e._l(e.OPERATION,function(i,t){return n("div",{key:t,staticClass:"operation",on:{click:function(t){return e.handleRedirect(i.open_link,i.act_type)}}},[n("img",{attrs:{src:i.image,alt:""}})])}),0):e._e(),n("div",{staticClass:"login_privilege_guide_footer"},[n("button",{staticClass:"kw-button",on:{click:e.handleLogin}},[e._v(" "+e._s(e.$t("96ebb8c9b2"))+" ")])])])},[],!1,null,"19518b5f",null).exports,g=(i("caad"),i("34fb")),N=i.n(g),g=i("a53c"),h=i.n(g),g=i("8d43"),D=i.n(g);async function p(){return(await this.$sdk.util.getShowFromInfo()).show_from}async function j(t){var i=await p.call(this),e=this.IDCard&&this.IDCard();await this.$sdk.report.dw_account_loginprompt_click_v2({show_from:i,click:t,rulename:e&&e.name})}g={name:"Login",components:{},inject:["loginStyle","IDCard"],data(){return{loginArrow:D.a,loginAvatars:N.a,ishoneycomb:!1,isDark:!1}},computed:{loginStyleCtd(){return this.loginStyle&&this.loginStyle()}},methods:{t(t){return n.default.t(t)},handleLogin(t,i){this.$sdk.util.v2Login(t),j.call(this,i)},handlePageReady(){setTimeout(()=>{this.$sdk.util.noticeWebviewReady(),async function(){var t=await p.call(this),i=this.IDCard&&this.IDCard();await this.$sdk.report.dw_account_loginprompt_show_v2({show_from:t,rulename:i&&i.name})}.call(this)},500)},handleSkinChange({isDark:t}){t?(this.isDark=!0,this.loginAvatars=h.a):(this.isDark=!1,this.loginAvatars=N.a)}},mounted(){d.$on("changeSkin",this.handleSkinChange)}};i("c120");var g=Object(A.a)(g,function(){var i=this,t=i.$createElement,t=i._self._c||t;return t("div",{staticClass:"login-container",on:{click:function(t){return i.handleLogin(i.loginStyleCtd?"account_loginprompt_avatar_b":"account_loginprompt_avatar","avatar")}}},[t("div",{staticClass:"left-box"},[t("div",{staticClass:"avatar"},[t("img",{attrs:{src:i.loginAvatars,alt:""},on:{load:i.handlePageReady}})])]),i.loginStyleCtd?t("div",{staticClass:"right-text",style:{color:i.isDark?"#ffffff":"#000000"}},[i._v(" "+i._s(i.t("3k8nq9d2f7"))+" ")]):t("div",{staticClass:"right-box"},[t("span",{staticClass:"login-text"},[i._v(i._s(i.t("4t7m1pz6x9")))]),t("div",{staticClass:"arrow"},[t("img",{attrs:{src:i.loginArrow,alt:""}})])])])},[],!1,null,"c1513dfc",null).exports,y=i("e1b2"),w=i.n(y),y=i("7684"),S=i.n(y),y=i("c828"),U=i.n(y),y=i("6359"),Q=i.n(y);let L={Login:"Login",HyperLink:"HyperLink",Deeplink:"Deeplink",Plugin:"Plugin",HoverShowWps:"HoverShowWps"};function E(t,i,e="account_loginprompt_nologincard"){switch(t){case L.Login:I.util.v2Login(e);break;case L.HyperLink:i&&I.util.openInnerUrl(i);break;case L.Deeplink:i&&I.util.openUrl(i.replace("://",":////"));break;case L.Plugin:i&&I.util.runApp(i);break;case L.HoverShowWps:}}function m(t){return t===L.HoverShowWps}y={name:"home",components:{},inject:["IDCard"],computed:{injectedIDCard(){return this.IDCard&&this.IDCard()}},watch:{injectedIDCard:{handler(t){t&&(t.priviledge&&0<t.priviledge.length&&(this.IDProfit.priviledge=t.priviledge),this.IDProfit.IDInfo=t.IDInfo,this.IDProfit.cardAction=t.cardAction,this.IDProfit.cardParams=t.cardParams,this.IDProfit.operationPosition=t.operationPosition)},immediate:!0}},data(){return{IDProfit:{cardAction:"Login",cardParams:"",IDInfo:this.t("5b2v9y8r1c"),operationPosition:{opPosPic:"",opPosShowSwitch:!1,action:"",params:""},priviledge:[{priviledgeIcon:w.a,priviledgeText:this.t("6w4h3s9j5m")},{priviledgeIcon:S.a,priviledgeText:this.t("7a1n8k2d4q")},{priviledgeIcon:Q.a,priviledgeText:this.t("8p5t7z3v6b")},{priviledgeIcon:U.a,priviledgeText:this.t("9x2r4c1m8y")}]}}},methods:{t(t){return n.default.t(t)},handleClickIDCard(t,i,e){E(t,i,"account_loginprompt_nologincard"),e&&j.call(this,e)}},mounted(){},destroyed(){}};i("2978");var y=Object(A.a)(y,function(){var i=this,t=i.$createElement,e=i._self._c||t;return e("div",{staticClass:"identity-container-border",style:{cursor:i.injectedIDCard?"pointer":"default"}},[e("div",{staticClass:"container",on:{click:function(t){return t.stopPropagation(),i.handleClickIDCard(i.IDProfit.cardAction,i.IDProfit.cardParams,"nologincard")}}},[i.IDProfit.operationPosition&&i.IDProfit.operationPosition.opPosShowSwitch?e("img",{staticClass:"operation-pic",attrs:{src:i.IDProfit.operationPosition.opPosPic,alt:""},on:{click:function(t){return t.stopPropagation(),i.handleClickIDCard(i.IDProfit.operationPosition.action,i.IDProfit.operationPosition.params,"adslot")}}}):i._e(),e("span",[i._v(i._s(i.IDProfit.IDInfo||i.t("2c51061161")))]),e("div",{staticClass:"profit"},i._l(i.IDProfit.priviledge,function(t){return e("div",{key:t.priviledgeText,staticClass:"profit-item"},[e("div",{staticClass:"profit-icon"},[e("img",{attrs:{src:t.priviledgeIcon}})]),e("span",{staticClass:"profit-title",style:{"font-size":i.$isNationalVersion?"12px":""}},[i._v(i._s(t.priviledgeText))])])}),0)])])},[],!1,null,"620b5b38",null).exports,C=i("47a0"),B=i.n(C),C=i("5814"),Y=i.n(C),C={name:"cloud",inject:["IDCard"],data(){return{svgInfo:{cloudService:B.a,cloudSpace:Y.a},cloudService:{openCloudSpaceWay:!0,link:"https://personal-act.wps.cn/cloud-act/manage_space?source=wpspanel&tag=wpspanel&component=public_wpspanel"}}},methods:{t(t){return n.default.t(t)},handleLogin(t,i){this.$sdk.util.v2Login(t),j.call(this,i)},handleCloudSpace(...t){j.call(this,...t),this.$sdk.util.v2LoginWithOpenUrl("account_loginprompt_cloudstorage",this.cloudService.link)}},mounted(){},destroyed(){}};i("bb48");var C=Object(A.a)(C,function(){var i=this,t=i.$createElement,t=i._self._c||t;return t("div",{staticClass:"cloud-container"},[t("div",{staticClass:"left-box",on:{click:function(t){return i.handleLogin("account_loginprompt_cloudserver","cloudserver")}}},[t("div",{staticClass:"cloud-service"},[t("div",{staticClass:"cloud-icon"},[t("img",{attrs:{src:i.svgInfo.cloudService,alt:""}}),t("span",[i._v(i._s(i.t("c7m2p9q4r5")))])])]),t("div",{staticClass:"cloud-status-box"},[t("div",{staticClass:"cloud-status"},[t("span",[i._v(i._s(i.t("d1v5x8y2z6")))])]),t("div",{staticClass:"cloud-status"},[t("span",[i._v(i._s(i.t("f9n2b4c6d8")))])])])]),t("div",{staticClass:"right-box",on:{click:function(t){return i.handleCloudSpace("cloudstorage")}}},[t("div",{staticClass:"cloud-space"},[t("div",{staticClass:"cloud-icon"},[t("img",{attrs:{src:i.svgInfo.cloudSpace,alt:""}}),t("span",[i._v(i._s(i.t("g5q1w7e3r4")))])])]),t("span",{staticClass:"cloud-text"},[i._v(i._s(i.t("h8k2j9l5m1")))])])])},[],!1,null,"e1f1f90e",null).exports,T=i("ba74"),V=i.n(T),T={name:"erCode",data(){return{erCode:V.a}},methods:{t(t){return n.default.t(t)}}};i("704c");let R=Object(A.a)(T,function(){var t=this,i=t.$createElement,i=t._self._c||i;return i("div",{staticClass:"erCode-container"},[i("img",{attrs:{src:t.erCode,alt:""}}),i("span",[t._v(t._s(t.t("a3d9f5g7h2")))]),i("span",[t._v(t._s(t.t("a3d9f5g7h3")))])])},[],!1,null,"b990d926",null).exports,G=i("98d4"),x=i.n(G),Z=i("3447"),z=i.n(Z),W=i("0b6c"),k=i.n(W),F=i("d7e8"),O=i.n(F),b=[{WIN:[{kingKongIcon:x.a,kingKongText:n.default.t("j3t6v9b2n7"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031821201822/YM2025031821202008?cs_from=search&position=pc_zhmb"},{kingKongIcon:z.a,kingKongText:n.default.t("k7p4z1x8y3"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031721339450/YM2025031721331326?cs_from=&position=pc_mianban"},{kingKongIcon:k.a,kingKongText:n.default.t("l2m5q9d4f6"),action:"HoverShowWps",params:""},{kingKongIcon:O.a,kingKongText:n.default.t("m9r3s1t5v8"),action:"HyperLink",params:"https://get.wps.cn/feedback/pc?&app_type=client"}],MAC:[{kingKongIcon:x.a,kingKongText:n.default.t("j3t6v9b2n7"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031821201822/YM2025041617143388?cs_from=&position=mac_zhmb"},{kingKongIcon:z.a,kingKongText:n.default.t("k7p4z1x8y3"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031721339450/YM2025081110499202?cs_from=&position=mac_flzx_zhmb"},{kingKongIcon:k.a,kingKongText:n.default.t("l2m5q9d4f6"),action:"HoverShowWps",params:""},{kingKongIcon:O.a,kingKongText:n.default.t("m9r3s1t5v8"),action:"HyperLink",params:"https://get.wps.cn/feedback/pc?&app_type=client"}],ANDROID:[{kingKongIcon:x.a,kingKongText:n.default.t("j3t6v9b2n7"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031821201822/YM2025041617143388?cs_from=&position=mac_zhmb"},{kingKongIcon:z.a,kingKongText:n.default.t("k7p4z1x8y3"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031721339450/YM2025081110499202?cs_from=&position=mac_flzx_zhmb"},{kingKongIcon:k.a,kingKongText:n.default.t("l2m5q9d4f6"),action:"HoverShowWps",params:""},{kingKongIcon:O.a,kingKongText:n.default.t("m9r3s1t5v8"),action:"HyperLink",params:"https://get.wps.cn/feedback/pc?&app_type=client"}],OHOS:[{kingKongIcon:x.a,kingKongText:n.default.t("j3t6v9b2n7"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031821201822/YM2025031821202008?cs_from=&position=hm_zhmb&tcmp=hongmeng"},{kingKongIcon:z.a,kingKongText:n.default.t("k7p4z1x8y3"),action:"HyperLink",params:"https://personal-act.wps.cn/rubik2/portal/HD2025031721339450/YM2025081110499202?cs_from=&position=hmpc_flzx_zhmb"},{kingKongIcon:k.a,kingKongText:n.default.t("l2m5q9d4f6"),action:"HoverShowWps",params:""},{kingKongIcon:O.a,kingKongText:n.default.t("m9r3s1t5v8"),action:"HyperLink",params:"https://get.wps.cn/feedback/pc?&app_type=client"}]}];function v(){var t=navigator.userAgent;return/Windows/i.test(t)?"WIN":/Mac/i.test(t)?"MAC":/android-pad/i.test(t)&&/android-pc-office/i.test(t)?"ANDROID":/harmony|ohos/i.test(t)?"OHOS":"Unknown"}let H={name:"bottom",components:{ERCode:R},inject:["kingKong","IDCard"],computed:{injectKingKong(){return this.kingKong&&this.kingKong()}},watch:{injectKingKong:{handler(t){t&&(this.configCount=t.length,0<t.length)&&(this.config=t)}},showERCode:{handler(t){t&&async function(){await this.$sdk.report.dw_account_loginprompt_downloadapp_show_v2()}.call(this)}}},data(){return{config:b[0][v()],configCount:b[0][v()].length,isHoveringWps:!1,isHoveringERCode:!1,showERCode:!1,hideTimer:null,erCodePos:{x:0,y:0}}},methods:{t(t){return n.default.t(t)},handleMouseEnter(t,a){if(j.call(this,"hover"+t.kingKongText),m(t.action)){clearTimeout(this.hideTimer);let t=a.currentTarget.getBoundingClientRect(),i=t.left,e=t.width,n=i+(e-126.6)/2;this.erCodePos.x=n-25,this.erCodePos.y=95-t.y,this.showERCode=!0}},handleMouseLeave(t){m(t.action)&&this.hideWithDelay()},hideWithDelay(){this.hideTimer=setTimeout(()=>{this.showERCode=!1},10)},handleBottomClick(t){j.call(this,t.kingKongText),m(t.action)||E(t.action,t.params,"account_loginprompt_kingkong")}},mounted(){},destroyed(){}},K=H,J=(i("703b"),Object(A.a)(K,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bottom-container"},e._l(e.config,function(i){return n("div",{key:i.kingKongText,staticClass:"profit",on:{mouseenter:function(t){return e.handleMouseEnter(i,t)},mouseleave:function(t){return e.handleMouseLeave(i)},click:function(t){return e.handleBottomClick(i)}}},[n("div",{staticClass:"icon",style:{"--bg":"url("+i.kingKongIcon+")"}}),n("span",[e._v(e._s(i.kingKongText))]),n("ERCode",{directives:[{name:"show",rawName:"v-show",value:e.showERCode,expression:"showERCode"}],staticClass:"er-code",style:{top:e.erCodePos.y+"px",left:e.erCodePos.x+"px"}})],1)}),0)},[],!1,null,"204aa766",null)),X=J.exports,q={name:"btn",inject:["IDCard"],computed:{},data(){return{}},methods:{async handleShowFromInfo(){return(await this.$sdk.util.getShowFromInfo()).show_from},handleLogin(t,i){this.$sdk.util.v2Login(t),j.call(this,i)}},mounted(){},destroyed(){}},_=q,$=(i("1e92"),Object(A.a)(_,function(){var i=this,t=i.$createElement,t=i._self._c||t;return t("div",{staticClass:"btn-container",on:{click:function(t){return i.handleLogin("account_loginprompt_loginbutton","loginbutton")}}},[t("div",{staticClass:"btn-body"},[i._v("立即登录")])])},[],!1,null,"8b086072",null)),tt=$.exports,f={width:{national:437,default:380},height:{loginA:{showKingKong:360,hideKingKong:288},loginB:{showKingKong:404,hideKingKong:328}}},it={name:"home",inject:["isShowBottom","loginStyle"],computed:{loginStyleCtd(){return this.loginStyle&&this.loginStyle()},kingKongShowSwitchWatcher(){return this.isShowBottom&&this.isShowBottom()}},watch:{kingKongShowSwitchWatcher:{handler(t){(this.kingKongShowSwitch=t)||this.handleSetPanelSize("380","288")}},isNationalVersion:{handler(t){e.a.prototype.$isNationalVersion=t},immediate:!0}},components:{Login:g,Identity:y,Cloud:C,Bottom:X,Btn:tt},data(){return{kingKongShowSwitch:!0,isNationalVersion:["en-US","ja-JP"].includes(navigator.language)}},methods:{handleSetPanelSize(t,i){this.$sdk.util.setPanelSize({width:t,height:i})},setPanelSize(){setTimeout(()=>{var t=this.isNationalVersion?"national":"default",i=this.loginStyleCtd?"loginB":"loginA",t=f.width[t],i=f.height[i][this.kingKongShowSwitch?"showKingKong":"hideKingKong"];this.handleSetPanelSize(t,i)},300)}},mounted(){this.kingKongShowSwitch=this.kingKongShowSwitchWatcher,this.setPanelSize()},destroyed(){}},et=it,nt=(i("5c5f"),Object(A.a)(et,function(){var t=this,i=t.$createElement,i=t._self._c||i;return i("div",{staticClass:"container"},[i("Login"),i("Identity"),i("Cloud"),t.kingKongShowSwitch?i("Bottom"):t._e(),t.loginStyleCtd?i("Btn"):t._e()],1)},[],!1,null,"7eba0ae3",null)),at=nt.exports,ot={name:"index",data(){return{PanelVersion:"",isShowBottom:!0,HoneySettings:{},loginStyle:!1}},components:{Index:at,Home:t},provide(){return{IDCard:()=>this.HoneySettings?this.HoneySettings.IDCard:null,loginStyle:()=>"2"===this.HoneySettings.loginStyle,kingKong:()=>this.HoneySettings?this.HoneySettings.kingKong:null,isShowBottom:()=>this.isShowBottom}},methods:{isEmptyObject(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&0===Object.keys(t).length},getHoneySettings(){u.getUnloginAccountPanelV2KFpcData().then(t=>{this.isEmptyObject(t)||t.newV2Config&&(this.isShowBottom=t.kingKongShowSwitch,this.HoneySettings=t)}).catch(t=>{})},async getPanelVersionApi(){var t=await this.$sdk.util.getUnloginAccountPanelVersion();"ok"===t.callstatus?this.PanelVersion="v2"===t.unloginAccountPanelVer?"v2":"v1":this.PanelVersion="v2"}},async mounted(){await this.getPanelVersionApi(),this.getHoneySettings()}},ct=ot;i("3a62");var st=Object(A.a)(ct,function(){var t=this,i=t.$createElement,i=t._self._c||i;return i("div",{staticClass:"main",class:"v2"===t.PanelVersion?"panel-v2":"panel",attrs:{id:"app"}},["v1"===t.PanelVersion?i("Home"):t._e(),"v2"===t.PanelVersion?i("Index"):t._e()],1)},[],!1,null,null,null).exports,gt=i("f76f"),T=i("b23e"),At=i.n(T);i("7485"),i("12ff"),e.a.config.productionTip=!1,e.a.prototype.$sdk=I,e.a.prototype.$report=l;I.init(async()=>{var t;(t=new gt.a({debug:!1,defaultThemeColor:At.a,onSkinChange:function({isDarkSkin:t}){t?document.documentElement.setAttribute("theme-mode","dark"):document.documentElement.setAttribute("theme-mode","light"),setTimeout(()=>{d.$emit("changeSkin",{isDark:t})},100)}})).init(),await!(e.a.prototype.$isCurrentDark=await t.isDarkSkinAsync()),new e.a({render:t=>t(st),i18n:n.default}).$mount("#app")})},f1bf:function(t,i,e){},fae5:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAApRJREFUeF7tmk1P20AQhmdEUp9pOfQDOBKpQokQ6jVfQkhwRgi4tz+hHG0f4RfQcif/oEhVRYBrVRARQoIjREkPwH1x0kGOBBjbiWtvgu14fIy9E8+z77473l2EhF+Y8PyBAbACEk6Ah4CbAKY/zU/cCbGBAPME9CbOIkHAv4Swn0ql18/+/Lq05+JQwMfZucm2YRzFPXFnoniTVpSZ098/r6z3HACmcoUKEK3Eude7vztWLmoHaz0BZLKFJgG9HUYACHhzXjsY662AbJ6sD1zUDmNtlFMe+TiHAANgBfAQYA+wEGAT5FmAp0GuA+JcFSa+EPLqvKGvBBmABwFWgB2Ql2l4Saqf9xdUGhdgbBJSEQjeScVGaCLhvgLpr7s61h9iRVYBneTROCGi11KJ2xoj4q1C6dwDhMgCKKt3OwS02s/kn3odK3v6q87KUGQBlDTRkJZ9N3oIzaqmvI82AFU8+yyv6opURVrqEi+6CmAArAAeAlYPYw9gE+RZgKdBmaqQ6wAuhNzrCq4Eo7oe0G3MBvUB9gD2APYA128LNkE2QRuBTLZwHcYROfs2vNcsUFJbi4jtbSLoLG09Xgh1xJEve2pq1/qzj1mgsAMDWozsNYX5BVDWRJ0IPrjGRKhXNWUiEADzlKghxPFLq8AvgJImroBgvO8AzIDmadFWy9hAguJLnRn0C6CstxaI2t/tEBChQTTyuaqnfgRSQNBKq9/tvDzA7//9twf4DTyo5xlAWMvig+pRv3Fjp4BMLr8MBFsEMOo3WfN5hwmGtTUW5OXNNplcvkESW9h2AKFtjkYFQGjb44EBzBSXoP3vGwEE2s93O5EaygGJoADi2k5qrT2uST//dhqGLCRyYAVIwBuKpolXwD0ID1NfneTxeAAAAABJRU5ErkJggg=="}}]); |
|