
管理员
站长
- UID
- 1
- 积分
- 224400
- 余额
- 13 R
- Moe币
- 84881
- 在线时间
- 279 小时
- 注册时间
- 2025-12-28
- 最后登录
- 2026-11-9
|
|
(function(){var e={4335:function(e,t,n){"use strict";var o=n(6207);n(1553);const c={class:"wrapper"},a={key:3},i=(0,o.createElementVNode)("div",{id:"account-panel-separator"},null,-1);function r(e,t,n,r,s,l){const u=(0,o.resolveComponent)("UserInfo"),d=(0,o.resolveComponent)("VipCard"),p=(0,o.resolveComponent)("Badge"),g=(0,o.resolveComponent)("VipCardV3"),m=(0,o.resolveComponent)("CloudService"),_=(0,o.resolveComponent)("CloudSpace"),h=(0,o.resolveComponent)("Foot"),k=(0,o.resolveComponent)("AccountList");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)({auto:!0,[e.mode]:!0}),id:"app",elementtiming:"pc_personal_panel"},[(0,o.createElementVNode)("div",c,[(0,o.createVNode)(u),e.isUseV3Card?((0,o.openBlock)(),(0,o.createBlock)(g,{key:1,ref:"vipCardV3Ref","is-show-panel":e.panelIsShow},null,8,["is-show-panel"])):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.createVNode)(d),["mac"].includes(e.platform)||e.iPadAndroid&&e.isAndroidPc?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(p,{key:0}))],64)),e.isiPadAndroidWps||e.isOhosOffice()&&!e.ohosHoneySwitch?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:2,class:"flex-h-sb cloud-container",id:"cloud-container",onClickCapture:t[0]||(t[0]=(...t)=>e.handleClickUserInfo&&e.handleClickUserInfo(...t))},[(0,o.createVNode)(m),(0,o.createVNode)(_)],32)),(0,o.createVNode)(h),e.isExistAccountList?((0,o.openBlock)(),(0,o.createElementBlock)("div",a,[i,(0,o.createVNode)(k)])):(0,o.createCommentVNode)("",!0)])],2)}var s=window.Vuex;const l={source:"",show_time:0,hide_action:"",category:"",buss_type:"",membership:"",skeleton_loadtime:"",appInfo:{},switchAccountNum:0,personalNum:0,isEducationVersion:null},u=function(e){return l[e]},d=function(e,t){l[e]=t},p=window.__ACCOUNT_PANEL__?.getAppInfo?.platform;window["GLOBAL"]=l;n(7725);var g=n(6361),m=n(5390),_=n(1783),h=n(1707),k=n(9152),y=n(2396),M=n(5359);n(5516);function w(e){if(!e)return null;const t="data:image/png;base64,";return e=e.replaceAll(t,""),t+e}const f=e=>{const t=["B","K","M","G","T","P","E"];let n=e,o=0;while(n>=1024&&o<t.length-1)n/=1024,o++;return{value:n,unit:t[o]}},v=e=>{if(0===e)return"0K";const{value:t,unit:n}=f(e);if("B"===n)return"1K";const o={K:0,M:1,G:2,T:2}[n];return t.toFixed(o)+n},A=e=>{const{value:t,unit:n}=f(e),o=Number(t.toFixed(2));return"G"!==n&&"T"!==n||!Number.isInteger(o)?o.toFixed(2)+n:o+n};function N(e,t,n){return n?"-/-":`${v(e)} / ${A(t)}`}function C(e){return e&&e.constructor===Object&&"object"===typeof e}function D(e){return C(e)?0===Object.keys(e).length:(new Error(`${e} is not a Object`),!1)}const S=e=>{let[t]=e.split(/\d/).filter((e=>e));t=t.toUpperCase();let[n]=e.split(t);return{unit:t,value:Number(n)}},I=e=>{const t=[!0,"true",1,"1"];return t.includes(e)},E=e=>{const t=[!1,"false","0",0];return t.includes(e)},b=e=>{let{path:t,theme:n}=e;n="dark"===n?"dark":"light";const{normal:o,hover:c,click:a}=t[n]||t["light"];return{normal:o,hover:c,click:a}};const x={ohos:"YSSFMB10002",win:"YSSFMB1001",mac:"YSSFMB4001",other:"YSSFMB1001"},T={ohos:"SYGRMB1001",win:"YSMB1003",mac:"YSMB4003",other:"YSMB1003"},L=x[p]||x["other"],j=T[p]||T["other"],z="PCTXMBSFKJGQ1001",B="PCTXMBDBYYW1001",P={wpssid:""};class O{constructor(){(0,g.Z)(this,"wpssid",void 0),(0,g.Z)(this,"wpsEsid",void 0),(0,g.Z)(this,"info",{}),this.wpssid=null,this.wpsEsid=null,this.info=window.__ACCOUNT_PANEL__?.getUserInfo||{}}setWpssid(e){this.wpssid=e}setWpsEsid(e){this.wpsEsid=e}setUserInfo(e){this.info=e}login(){m.Z.login()}logout(e){m.Z.logout(e)}async getUserInfo(){const e=()=>new Promise((e=>{const t=window.__ACCOUNT_PANEL__?.getUserInfo;return e(t||m.Z.getUserInfo())})),t=await e();return t&&t.wpssid?(t.avatar=w(t.avatar),this.setWpssid(t.wpssid),this.setUserInfo(t)):(this.setWpssid(""),this.setUserInfo({})),t}async encryptUserId(e){let t=await k.Z.publicEncryptWithVersion(e).catch((e=>null));return t}addLoginListener(e){h.Z.addLoginListener((async()=>{let t=await this.getUserInfo();e&&e(t)}))}removeLoginListener(){h.Z.removeLoginListener()}addLogoutListener(e){h.Z.addLogoutListener((()=>{this.setWpssid(""),e&&e(P)}))}addEventListener(e,t){_.Z.addEventListener(e,t)}removeEventListener(e,t){_.Z.removeEventListener(e)}openUrl(e){y.Z.openUrl(e)}openInnerUrl(e){return M.Z.exec("innerOpenUrl",{url:e})}openDocer(){M.Z.execPromise("openDocerPage",{action:"membercenter",params:{client_entrance:"personal_panel",content:{entry:"",entrySource:"",pos:"personal_panel",page:""}}}).then((e=>{console.log(e)}))}getPrivilegePayInfo({position:e,priviId:t,needValue:n}){return M.Z.execPromise("common.util.getPrivilegePayInfo",{position:e,priviId:t,needValue:n}).then((e=>{if("ok"===e.callstatus)return e.result}))}getTianCeConfig({code:e,where:t,pay_source:n,noCache:o},c){return new Promise((c=>{M.Z.execPromise("common.util.getTianCeConfig",{code:e,pay_source:n,where:t,noCache:!!o}).then((e=>{c(e?.result??{})}));const a=3e3;setTimeout((()=>{c({})}),a)}))}collectTianceClicked({code:e,button_name:t,extend:n}){return e||(e=L),M.Z.execPromise("common.util.collectTianceClicked",{code:e,btnname:t,extend:{source:"panel",...n}}).then((e=>{console.log(e)})).catch((e=>{console.error(e)}))}destoryPanel(){M.Z.exec("destroyPanel")}getOemSupported(){const e="isEducationVersion";let t=u(e);return null!==t?t:M.Z.execPromise("getOemSupported",{key:"UtmSourceForWPS365Edu"}).then((n=>(t=!!n?.status,d(e,t),t))).catch((e=>(console.error(e),!1)))}}const U=new O;window["clientApi"]=U;var V=U,Z=JSON.parse('{"2036f8c76c":"创建企业"}'),Q=JSON.parse('{"d6cde0984b":"消息","f224d001f6":"福利","946ec125e0":"签到礼","36412a1bfc":"京东店","0f4056b35d":"反馈"}'),G=JSON.parse('{"0f8d770472":"获取数据列表为空"}'),Y=JSON.parse('{"c6108a6c72":"获取数据列表为空","c123244aae":"KOS徽章获取支付状态","ed67b15f3d":"徽章列表"}'),W=JSON.parse('{"72b09a557b":"获取天策配置接口"}'),J=JSON.parse('{"aaee237b60":"获取云空间规则配置"}'),R=JSON.parse('{"9cf99069a1":"登录其他账号"}'),F=JSON.parse('{"37e0d91019":"服务器异常,请刷新重试","52307a6ee7":"刷新"}'),H=JSON.parse('{"443b00bf2c":"收到一条新消息","11e5e19339":"查看订单","af43d1b719":"续费会员"}'),X=JSON.parse('{"ba044f6065":"云空间","5b65b72abf":"查看存储详情","9bca828a19":"扩容","288f178c48":"空间将满影响存储","1134f6247f":"空间已满影响存储"}'),$=JSON.parse('{"1a7cb9c9bc":"个人账号","2b41063baa":"退出账号","5e7abdbed0":"退出登录"}'),K=JSON.parse('{"ca15a5f4f6":"\\n 云服务\\n ","a4aaebafa5":"启用中\\n ","dab2545bd5":"点击启⽤{0}","6b575fae5f":" 尚未启用","b1ab42b7ac":" 正在开启…\\n ","65d6b271f4":" 跨设备访问云文档\\n "}'),q=JSON.parse('{"077c04db17":"\\n 刷新\\n "}'),ee=JSON.parse('{"3c9a44f584":"开通会员"}'),te=JSON.parse('{"3f6dd613a4":"切换账号","3da2c977df":"退出账号","b0eb89aca2":"退出“","71e926f79a":"(个人账号)”","bdbd1b94ad":"退出","0138a97b7a":"退出所有账号","3930a5843f":"已退出","1de436339a":"未验证","3f32a1ad3c":"有","fb54a54ad9":"条未读消息","f9b6e37eb7":"从列表移除此账号"}'),ne={...Z,...Q,...G,...Y,...W,...J,...R,...F,...H,...X,...$,...K,...q,...ee,...te},oe=n(5297);const ce={"zh-CN":ne},ae=(0,oe.o)({locale:"zh-CN",fallbackLocale:"zh-CN",messages:ce});ae.t=ae.global.t;var ie=ae,re=n(3910),se=n(4733);function le(e,t,n,o){let c=Date.now();localStorage.setItem(e,JSON.stringify({exptime:c+n,value:t,userid:o||void 0}))}function ue(e,t){const n=Date.now();try{let o=localStorage.getItem(e);if(!o)return null;let c=JSON.parse(o);return n>c.exptime||t&&t!==c.userid?null:c.value}catch(o){return null}}function de(e){localStorage.removeItem(e)}class pe{constructor(e){(0,g.Z)(this,"userid",""),this.userid=e||"lostuserid"}getHistoryData(e){return ue(e,this.userid)}setHistoryData(e){le(e.key,e.value,e.exp,this.userid)}clearHistoryData(e){de(e)}}const ge=new pe(V?.info?.userId);var me=ge;(0,re.addUrlQuery)("https://vipapi.wps.cn/pay_contract/v1/contract/is_contracted",{subject:encodeURIComponent("baiyin;month_card;baijin")});const _e="https://api-kos.wps.cn/service/wps/medal/info",he="https://api-kos.wps.cn/service/user/base/info",ke="https://plus.wps.cn/ops/opsd/api/v1/policy",ye="https://dce-gateway.docer.wps.cn/dce/exec/api/v3/market/activity",Me="https://personal-act.wpscdn.cn/srcapi/act/banner/v1/config?position=personal_center_cloud_card",we={namespaced:!0,state:{config:{},isLoading:!1,biz_params:{}},mutations:{setActConfig:(e,t)=>{e.config=t,e.biz_params={biz_content:encodeURIComponent(btoa(JSON.stringify({mk_key:t?.mk_key})))}},setIsLoading:(e,t)=>{e.isLoading=t}},actions:{async getTianCeConfig({commit:e,state:t},{channel_code:n,noCache:o}={channel_code:L,noCache:!1}){const c="pc_cloud_personalpanel";if(!t.isLoading)return e("setIsLoading",!0),e("setError",["getTianCeConfigFinish",!1],{root:!0}),console.time("耗时统计 - getTianCeConfig"),V.getTianCeConfig({code:n,where:c,pay_source:"pc_cloud_personalpanel",noCache:o},ie.t("72b09a557b")).then((t=>{console.timeEnd("耗时统计 - getTianCeConfig");const n=t?.[0];return n&&!D(t)?(me.setHistoryData({key:"__requestAPICaches__"+ye,exp:9e5,value:n}),e("setActConfig",n),e("setError",["getTianCeConfigError",!1],{root:!0})):e("setError",["getTianCeConfigError",!0],{root:!0}),t})).catch((e=>console.error(e))).finally((()=>{e("setIsLoading",!1),e("setError",["getTianCeConfigFinish",!0],{root:!0})}))}}},fe={namespaced:!0,state:{vipInfo:{type:"register"},userInfo:{}},getters:{isExpiredMember:e=>["register","expired"].includes(e.vipInfo.status)||"register"===e.vipInfo.type,isCompanyAccount:e=>{const t="true"===e.userInfo?.extrainfo?.isCompanyAccountInMultiAccount;return t}},mutations:{setUserInfo(e,t){e.userInfo=t||{}}},actions:{async getUserInfo({commit:e}){console.time("耗时统计 - common.account.getUserInfo");const t=await V.getUserInfo();return e("setUserInfo",t||{}),console.timeEnd("耗时统计 - common.account.getUserInfo"),t}}},ve={APPID:"5f01725d141584ad",APPKEY:"80db15125f01725d141584ad704cab47"},Ae={0:"kosElite",1:"kosExpert",2:"kosMaster"},Ne={0:"unattain",1:"attain"};var Ce=n(5089),De=n.n(Ce);const Se={key:"__requestAPICaches__",exp:9e5};let Ie={method:"GET",params:null,body:null,headers:{"Content-Type":"application/x-www-form-urlencoded"},credentials:"include",responseType:"JSON",cache:"no-cache"};const Ee=e=>{let t,n;return!(!e||"object"!==typeof e)&&(t=Object.getPrototypeOf(e),!t||(n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor,"function"===typeof n&&n===Object))},be=(e,t,n)=>{if("string"!==typeof e)throw new TypeError(` ${e} is not an string! `);t&&"object"===typeof t||(t=Ie),t.headers&&Ee(t.headers)&&(t.headers=Object.assign({},Ie.headers,t.headers));let{method:o,params:c,body:a,headers:i,credentials:r,responseType:s,cache:l}=Object.assign({},Ie,t);if(a&&Ee(a)){let e=i&&i["Content-Type"]||"application/json";e.includes("urlencoded")&&(a=(0,re.stringfyQs)(a)),e.includes("json")&&(a=JSON.stringify(a))}t.credentials=r?"include":"same-origin",t.method=o?.toUpperCase()||"GET","GET"===t.method&&Ee(c)&&(c=(0,re.stringfyQs)(c),e+=`${e.includes("?")?"&":"?"}${c}`),o&&(t.cache=l),t.headers=i,t.method&&/^(POST|PUT|PATCH)$/i.test(t.method)&&(t.body=a);const u=()=>(console.log(`%cfetch API 发送请求->${n}`,"background: #7aa4e1;color:#fff;",e,t),console.time(`耗时统计 fetchAPI->${e}`),fetch(e,t).then((n=>{let{status:o,statusText:c}=n;if(o>=200&&o<400){let o;switch(s.toUpperCase()){case"TEXT":o=n.text();break;case"JSON":o=n.json();break;case"BLOB":o=n.blob();break;case"ARRAYBUFFER":o=n.arrayBuffer();break}return t.forcePrecedence&&setTimeout((()=>{o.then((n=>{me.setHistoryData({key:Se.key+e,value:n,exp:t.forcePrecedenceExpired||Se.exp})}))})),console.timeEnd(`耗时统计 fetchAPI->${e}`),o}return Promise.reject({code:"STATUS ERROR",status:o,statusText:c})})).catch((function(e){if(e&&"STATUS ERROR"===e.code)switch(e.status){case 401:break}return navigator.onLine,Promise.reject(e)})));let d=!!t.forcePrecedence&&me.getHistoryData(Se.key+e);return d?(!t.forcePrecedenceAgainDisable&&u(),Promise.resolve(d)):u()};var xe=be;const Te={namespaced:!0,state:{accountList:[],badges:{enable:0,pay:!1,medalList:[],moreMedal:void 0},merchandises:[]},getters:{isExistAccountList:e=>e.accountList?.length>0,isShowBadge:e=>e.badges?.enable},mutations:{setAccountList(e,t){e.accountList=t},setBadges(e,t){"pay"in t&&(e.badges.pay=t.pay),"enable"in t&&(e.badges.enable=t.enable),"medalList"in t&&(e.badges.medalList=t.medalList),"moreMedal"in t&&(e.badges.moreMedal=t.moreMedal)},setMerchandises(e,t){e.merchandises=t}},actions:{async getAccountList({commit:e}){console.time("耗时统计 - getAccountList-window");let t=[];const n=(new Date).getTime();try{const e=window.__ACCOUNT_PANEL__?.getAccountListInfo?.accountlistinfo;t=e?JSON.parse(e):await pt.getAccountList()}catch(o){console.log(o,window.__ACCOUNT_PANEL__?.getAccountListInfo),rt.accountpanel_account_list({result:"fail",error_type:"parse_error",time:(new Date).getTime()-n,error_msg:`Data parse error: ${window.__ACCOUNT_PANEL__.getAccountListInfo?.accountlistinfo}`})}return console.timeEnd("耗时统计 - getAccountList-window"),0===t.length?rt.accountpanel_account_list({result:"fail",error_type:"no_data",time:(new Date).getTime()-n,error_msg:ie.t("c6108a6c72")}):rt.accountpanel_account_list({result:"success",time:(new Date).getTime()-n}),e("setAccountList",t),d("switchAccountNum",t.length),d("personalNum",t.filter((e=>!e.is_company_account)).length),t},async getBadge({state:e,commit:t,dispatch:n,rootGetters:o,rootState:c}){try{let e=await xe(he,{method:"GET",credentials:"include",responseType:"JSON",forcePrecedence:!0},ie.t("c123244aae"));1===e.code&&"success"===e.msg&&(console.log({...e.data}),t("setBadges",{...e.data}));const n=+new Date,o=(new(De())).update(String(n)).digest("hex"),c=(new(De())).update(`Nonce=${o}&Timestamp=${n}&version=2&key=${ve.APPKEY}`).digest("hex").toUpperCase(),a=`KOS:${ve.APPID}:${c}`;e=await xe(_e,{method:"GET",credentials:"include",responseType:"JSON",headers:{Nonce:o,Timestamp:n,Authorization:a},forcePrecedence:!0,mode:"cors",params:{version:2}},ie.t("ed67b15f3d")),1===e.code&&"success"===e.msg?(console.log({...e.data}),t("setBadges",{...e.data}),t("setError",["getBadgeError",!1],{root:!0})):t("setError",["getBadgeError",!0],{root:!0})}catch(a){t("setError",["getBadgeError",!0],{root:!0})}}}};var Le=n(6384);const je=window.navigator.userAgent.toLowerCase().includes("mac-office"),ze=window.navigator.userAgent.toLowerCase().includes("ios-pad"),Be=window.navigator.userAgent.toLowerCase().includes("android-pad"),Pe=window.navigator.userAgent.toLowerCase().includes("android-pc-office"),Oe=()=>{const e=navigator.userAgent.toLowerCase();return/(harmony-office)/i.test(e)};function Ue(){const e=navigator.userAgent.toLowerCase();return/linux/i.test(e)&&!/android/i.test(e)}function Ve(){const e=(0,Le.z$)();return e.isMac}const Ze=()=>Oe()?"ohos":Ve()?"mac":Ue()?"linux":"win";function Qe(e){return"string"!==typeof e?e:e.startsWith("pc_")?e.replace(/^pc_/,"harmonywin_"):e}const Ge={enough:"enough",danger:"almost_full",full:"full",expiring:"expiring"},Ye={win:{projectID:60,moduleGroupID:82502},mac:{projectID:139,moduleGroupID:82504},linux:{projectID:114,moduleGroupID:82506},ohos:{projectID:142,moduleGroupID:82508}},We=3e3;let Je=null;const Re=()=>{null!==Je&&(clearTimeout(Je),Je=null)},Fe={namespaced:!0,state:{cloudSpaceConfig:{},spaceInfo:{},refreshLoading:!1,useNewCloudApi:!1},mutations:{setCloudSpaceConfig(e,t){e.cloudSpaceConfig=t},setCloudSpace(e,t){e.spaceInfo=t},setRefreshLoading(e,t){e.refreshLoading=t},setUseNewCloudApi(e,t){e.useNewCloudApi=t}},getters:{},actions:{async getCloudSpaceRuleConfig({commit:e}){try{let t=await xe(Me,{method:"GET",credentials:"omit",responseType:"JSON",forcePrecedence:!0},ie.t("aaee237b60"));if("ok"===t.result){const n=t?.data?.data?.[0]||{};return e("setCloudSpaceConfig",n),n}}catch(t){return{}}},async checkCloudSpaceApiSwitch({commit:e}){try{const t=Ze(),n=Ye[t],o=await pt.getMostApplicableGroupConfig(n.projectID,n.moduleGroupID),c=!("ok"!==o?.callstatus||!o?.data?.enable);return e("setUseNewCloudApi",c),c}catch(t){return console.error("蜂巢开关检查失败,默认走旧接口:",t),e("setUseNewCloudApi",!1),!1}},async getCloudSpaceInfo({commit:e}){try{const t=await pt.getCloudSpaceInfo();e("setCloudSpace",t)}catch(t){console.error("获取云空间信息失败:",t),e("setCloudSpace",{usedSize:0,totalSize:0,isValid:!1})}finally{Re(),e("setRefreshLoading",!1)}},processLegacySpaceInfo({commit:e},t){"ok"===t.callstatus?e("setCloudSpace",{usedSize:t.usedSize,totalSize:t.totalSize,isValid:!0}):e("setCloudSpace",{usedSize:0,totalSize:0,isValid:!1}),Re(),e("setRefreshLoading",!1)},refreshCloudSpaceInfo({commit:e,state:t}){t.refreshLoading||(e("setRefreshLoading",!0),Re(),Je=setTimeout((()=>{Je=null,e("setRefreshLoading",!1)}),We),t.useNewCloudApi?pt.updateCloudSpaceInfo():pt.getCloudSpaceInfoLegacy())}}},He="https://plus.wps.cn/fab/registerGuide/?utm_source=wps365_PC&utm_medium=avatar",Xe=ie.t("2036f8c76c"),$e={title:8,subText:11};function Ke(e){return e.reduce(((e,t)=>(e[t.key]=t.value,e)),{})}const qe={namespaced:!0,state:{createCompanyEntrancePolicy:{data:{entrance_click_url:He,entrance_title:Xe,text:"",policy_tag:""}}},getters:{},mutations:{setCreateCompanyEntrancePolicy(e,t){e.createCompanyEntrancePolicy=t}},actions:{async getCreateCompanyEntranceConfig({commit:e}){try{const t=await V.getOemSupported();let n=await xe(ke,{method:"GET",credentials:"include",responseType:"JSON",params:{window_key:"pc_create_company_account_panel_entrance",utm_source:t?"WPS365_EDU_PC":"WPS365_PC",utm_medium:"avatar"},forcePrecedence:!0},"企业策略接口");n.data=Ke(n.data||[]),e("setCreateCompanyEntrancePolicy",n),e("setError",["getCompanyPolicyError",!1],{root:!0})}catch(t){console.error(t),e("setError",["getCompanyPolicyError",!0],{root:!0})}}}},et={namespaced:!0,state:{config:{}},mutations:{setFooterConfig:(e,t)=>{e.config=t}},actions:{async getFooterTianCeConfig({commit:e},t=j){const n="pc_cloud_personalpanel";return console.time("耗时统计 - getFooterTianCeConfig"),V.getTianCeConfig({code:t,where:n},"获取天策底部推荐配置接口").then((t=>{console.timeEnd("耗时统计 - getFooterTianCeConfig");const n=t?.[0];return n&&!D(t)?(me.setHistoryData({key:"__requestAPICaches__footer"+ye,exp:9e5,value:n}),e("setFooterConfig",n),e("setError",["getFooterTianCeConfigError",!1],{root:!0})):e("setError",["getFooterTianCeConfigError",!0],{root:!0}),t})).catch((e=>console.error(e)))}}};var tt=n(7358);const nt={spaceInfoError:!1,labelConfigError:!1,aggregateDataError:!1,getBadgeError:!1,getCompanyPolicyError:!1,getTianCeConfigError:!1,getTianCeConfigFinish:!1,isFirstLoad:!0},ot=(0,s.createStore)({modules:{act:we,user:fe,cloud:Fe,account:Te,company:qe,footer:et},state:{...nt,mode:"light"},getters:{},mutations:{setError(e,[t,n]){e[t]=n},setSkinMode(e,t){e.mode=t}},actions:{async initData({dispatch:e,commit:t}){let n=[e("act/getTianCeConfig"),e("account/getAccountList"),e("cloud/getCloudSpaceRuleConfig"),e("footer/getFooterTianCeConfig")];return Promise.all(n).catch((async e=>{console.log(e)})).finally((async()=>{let e=null;console.time("耗时统计 - getAppInfo-window"),e=window.__ACCOUNT_PANEL__?.getAppInfo,e||(e=await tt.Z.getAppInfo()),console.timeEnd("耗时统计 - getAppInfo-window"),d("appInfo",e)}))}}});window["store"]=ot;var ct=ot;class at{constructor(){(0,g.Z)(this,"events",void 0),(0,g.Z)(this,"source",void 0),(0,g.Z)(this,"collectShowQueue",void 0),this.events={click:"accountpanel_click",accountpanel_show:"accountpanel_show",accountpanel_show_stayperiod:"accountpanel_show_stayperiod",accountpanel_vip_click:"accountpanel_vip_click",accountpanel_vip_newcontentshow:"accountpanel_vip_newcontentshow",accountpanel_vip_newcontentclick:"accountpanel_vip_newcontentclick",accountpanel_enterprise_click:"accountpanel_enterprise_click",accountpanel_device_show:"accountpanel_device_show",accountpanel_device_click:"accountpanel_device_click",accountpanel_account_click:"accountpanel_account_click",accountpanel_cloudserve_click:"accountpanel_cloudserve_click",accountpanel_cloudspace_show:"accountpanel_cloudspace_show",accountpanel_cloudspace_click:"accountpanel_cloudspace_click",accountpanel_bar_click:"accountpanel_bar_click",accountpanel_viptips:"accountpanel_viptips",accountpanel_bar_show:"accountpanel_bar_show",configuration_hd_show:"configuration_hd_show",configuration_hd_click:"configuration_hd_click",accountpanel_load_fail:"accountpanel_load_fail",accountpanel_skeleton_showtime:"accountpanel_skeleton_showtime",accountpanel_scenes_show:"accountpanel_scenes_show",accountpanel_scenes_click:"accountpanel_scenes_click",accountpanel_kos_show:"accountpanel_kos_show",accountpanel_kos_click:"accountpanel_kos_click",accountpanel_account_list:"accountpanel_account_list",accountpanel_account_list_avatarload:"accountpanel_account_list_avatarload",accountpanel_account_icon_type:"accountpanel_account_icon_type",accountpanel_company_enterprise_create:"enterprise_create",accountpanel_avatar_click:"accountpanel_avatar_click"},this.source="",this.collectShowQueue=[]}execCollectShowSend(){console.group("信息埋点上报"),this.collectShowQueue.forEach((e=>{"function"===typeof e?e():console.log(e)})),console.groupEnd()}clearCollectShowQueue(){this.collectShowQueue=[]}mainSend(e,t){"collectTianceShow"===e?this.collectShowQueue.push((()=>{t.code||(t.code=L),t.level||(t.level=1e3),this.tianceShow(e,{extend:{source:"panel",...t.extend},...t})})):/show|account_list_avatarload|account_icon_type|enterprise_create|accountpanel_account_list|accountpanel_show|accountpanel_vip_click|accountpanel_vip_newcontentshow|accountpanel_vip_newcontentclick|accountpanel_click|accountpanel_bar_click/gi.test(e)?this.collectShowQueue.push((()=>{this.reportData(e,{source:window.__ACCOUNT_PANEL__?.getShowFromInfo?.show_from,panelversion:"pc_tiance",...t})})):(console.log(e,t),this.reportData(e,{source:window.__ACCOUNT_PANEL__?.getShowFromInfo?.show_from,panelversion:"pc_tiance",...t}))}tianceShow(e,t){return console.log(`%c tianceShow数据上报: ${e} `,"color: rgba(244, 120, 18, 0.93);"),console.log({...t}),M.Z.execPromise("common.util.collectTianceShow",t)}reportData(e,t){console.log(`%cdataWarehouseSend数据上报: ${e} `,"color: rgba(244, 120, 18, 0.93);");const n=window.__ACCOUNT_PANEL__.newStyleSwitch?"pc_vipcard_202506":"pc_tiance";console.log({...t,panelversion:n}),se.Z.dataWarehouseSend(e,{...t,panelversion:n})}accountpanel_show(){this.mainSend(this.events.accountpanel_show,{})}accountpanel_show_stayperiod(e,t){this.mainSend(this.events.accountpanel_show_stayperiod,{period:e,action:t,type:"personal"})}accountpanel_vip_click(e){this.mainSend(this.events.accountpanel_vip_click,{clickon:e})}accountpanel_vip_newcontentshow(e,t){this.mainSend(this.events.accountpanel_vip_newcontentshow,{location:e,button_name:t})}accountpanel_vip_newcontentclick(e,t){this.mainSend(this.events.accountpanel_vip_newcontentclick,{location:e,button_name:t})}accountpanel_enterprise_click(e,t){this.mainSend(this.events.accountpanel_enterprise_click,{enterprise:e,clickon:t})}accountpanel_device_show(e){this.mainSend(this.events.accountpanel_device_show,{status:e})}accountpanel_device_click(e){this.mainSend(this.events.accountpanel_device_click,{status:e})}accountpanel_account_click(e){this.mainSend(this.events.accountpanel_account_click,{clickon:e})}accountpanel_avatar_click(e){this.mainSend(this.events.accountpanel_avatar_click,{button_name:e})}accountpanel_cloudserve_click(e,t){this.mainSend(this.events.accountpanel_cloudserve_click,{sync:e,clickon:t})}accountpanel_cloudspace_show(e){this.mainSend(this.events.accountpanel_cloudspace_show,{membership:u("membership"),cloudstatus:e})}accountpanel_cloudspace_click(e,t){this.mainSend(this.events.accountpanel_cloudspace_click,{membership:u("membership"),cloudstatus:e,clickon:t})}accountpanel_bar_click(e){this.mainSend(this.events.accountpanel_bar_click,{clickon:e})}accountpanel_bar_show(e,t="pc_v3"){this.mainSend(this.events.accountpanel_bar_show,{action:e,panelversion:t})}configuration_hd_show({position:e,act_id:t,payconfig:n}){this.mainSend(this.events.configuration_hd_show,{position:e,act_id:t,payconfig:n,panelversion:"pc_v3"})}configuration_hd_click({position:e,payconfig:t,clickon:n}){this.mainSend(this.events.configuration_hd_click,{position:e,payconfig:t,clickon:n,panelversion:"pc_v3"})}accountpanel_load_fail(e,t,n){this.mainSend(this.events.accountpanel_load_fail,{panelversion:"pc_v3",error:e,errorType:t,cerversion:n})}accountpanel_skeleton_showtime(e,t){console.log("-------骨架屏加载时常----------: ",e),this.mainSend(this.events.accountpanel_skeleton_showtime,{panelversion:"pc_v3",loadtime:e,cefversion:t})}accountpanel_scenes_show({label_id:e,sceneid:t,jump_mod:n,type:o,payconfig:c}){this.mainSend("accountpanel_scenes_show",{label_id:e,sceneid:t,jump_mod:n,type:o,payconfig:c})}accountpanel_scenes_click({label_id:e,sceneid:t,jump_mod:n,type:o,payconfig:c}){this.mainSend("accountpanel_scenes_click",{label_id:e,sceneid:t,jump_mod:n,type:o,payconfig:c})}click(e){this.mainSend(this.events.click,{clicktype:e})}cloudClick(e,t){this.mainSend(this.events.cloudClick,{clicktype:e,usertype:t})}cloudShow(e){this.mainSend(this.events.cloudShow,{showtype:e})}upgradeTextShow(e){this.mainSend(this.events.upgradeTextShow,{showtype:e})}upgradeBtnClick(e){this.mainSend(this.events.upgradeBtnClick,{clicktype:e})}accountpanel_viptips(e){this.mainSend(this.events.accountpanel_viptips,{membership:u("membership"),category:u("category")||"",buss_type:u("buss_type")||"",...e})}accountpanel_kos_show(e,t,n,o){this.mainSend("accountpanel_kos_show",{membership:u("membership"),kosstatus:e,badgestatus1:t,badgestatus2:n,badgestatus3:o})}accountpanel_kos_click(e,t){this.mainSend("accountpanel_kos_click",{membership:u("membership"),kosstatus:e,clickon:t})}accountpanel_click(e){this.mainSend(this.events.click,{clickaction:e,type:"personal",switchaccount_num:u("switchAccountNum"),personal_num:u("personalNum")})}isReport(e){return!("success"===e.result&&Math.random()>.1)}accountpanel_account_list(e){this.isReport(e)&&this.mainSend(this.events.accountpanel_account_list,e)}accountpanel_account_list_avatarload(e){this.isReport(e)&&this.mainSend(this.events.accountpanel_account_list_avatarload,e)}accountpanel_account_icon_type(e){this.mainSend(this.events.accountpanel_account_icon_type,{type:e})}async accountpanel_company_enterprise_create(e){const t=ct.state.user.userInfo,n=ct.state.company.createCompanyEntrancePolicy;if(!u("appInfo")){const e=window.__ACCOUNT_PANEL__?.getAppInfo||await tt.Z.getAppInfo();d("appInfo",e)}const o=await V.getOemSupported(),c={operate:e,url:n?.entrance_click_url||He,app_version:u("appInfo")?.version,account_id:t?.userId,account_type:"personal_account",utm_source:o?"WPS365_EDU_PC":"WPS365_PC",utm_medium:"avatar",policy_tag:n?.data?.policy_tag||"",policy_id:n?.policy_id,task_id:n?.task_id};this.mainSend(this.events.accountpanel_company_enterprise_create,c)}}const it=new at;var rt=it,st=n(5249);const lt="account_panel";class ut{constructor(){(0,g.Z)(this,"prefix",void 0),(0,g.Z)(this,"apis",void 0),this.prefix="",this.apis={gotoNotice:`${this.prefix}showMessageCenter`,gotoMission:`${this.prefix}showDailyTask`,gotoPersonal:`${this.prefix}showUserCenter`,hidePanel:`${this.prefix}hideTipsWidget`,openPayment:`${this.prefix}openPaymentDlg`,openPaymentWithUrl:`${this.prefix}common.payment.openWithUrl`,getMemberInfo:`${this.prefix}getMemberInfo`,getCloudSpaceInfo:`${this.prefix}getCloudStorageSpaceInfo`,openInnerUrl:`${this.prefix}innerOpenUrl`,hasRedPoint:`${this.prefix}hasRedPoint`,solveRedPoint:`${this.prefix}solveRedPoint`,setTargetRedPointType:`${this.prefix}setTargetRedPointType`,showWallet:`${this.prefix}showWallet`,getAppInfo:`${this.prefix}getAppInfo`,querySupportInterface:`${this.prefix}querySupportInterface`,openAvatarPendantCenterDlg:`${this.prefix}openAvatarPendantCenterDlg`,updatePendantConfig:`${this.prefix}updatePendantConfig`,registPushUIEventHandler:`${this.prefix}registPushUIEventHandler`,setHeight:`${this.prefix}setHeight`,readyShow:`${this.prefix}readyShowEvent`,setPanelSize:`${this.prefix}setPanelSize`,openCloudDisk:`${this.prefix}openCloudDisk`,getCurrentWorkspaceId:`${this.prefix}getCurrentWorkspaceId`,getCefVersion:`${this.prefix}getCefVersion`,gotoDocerShop:`${this.prefix}showDocerShop`}}resHandler(e){return e&&"ok"===e.callstatus?e.result:null}gotoNotice(e="index",t=lt){return M.Z.exec(this.apis.gotoNotice,{page:e,source:t})}gotoMission(){return M.Z.exec(this.apis.gotoMission,"")}gotoPersonal(e=lt){return M.Z.exec(this.apis.gotoPersonal,{source:e})}gotoDocerShop(e=lt){return M.Z.exec(this.apis.gotoDocerShop,{source:e})}hidePanel(){return M.Z.exec(this.apis.hidePanel,"")}setHeight(e=0){return M.Z.exec(this.apis.setHeight,{height:e})}setPanelSize({width:e=378,height:t}){return t-=2,document?.body&&(document.body.style.height=t+"px",document.body.style.width=e+"px"),M.Z.exec("setPanelSize",{width:e,height:t})}openCloudDisk(){M.Z.exec("openCloudDisk")}getCloudFileSyncTitle(){return M.Z.execPromise("getCloudFileSyncTitle")}getCloudFileSyncStatus(){return M.Z.execPromise("getCloudFileSyncStatus")}setCloudFileSyncStatus(e){M.Z.execPromise("setCloudFileSyncStatus",{autoSync:e})}openCloudServicesPage(){return M.Z.exec("openCloudServicesPage")}openCommonPrivilegeWnd(e={}){return M.Z.exec("openCommonPrivilegeWnd",e)}logout(e={}){return M.Z.exec("logout",e)}async sendPanelShowEvent(){const e=await M.Z.exec("sendPanelShowEvent");console.log(e)}showOnlineDevices(e){return M.Z.exec("showOnlineDevices",{action:e})}getCloudSpaceInfo(){return M.Z.execPromise("common.account.getCloudSpaceInfo",{source:"pc_account_panel_business"})}getCloudSpaceInfoLegacy(){return M.Z.exec(this.apis.getCloudSpaceInfo)}updateCloudSpaceInfo(){M.Z.exec("common.account.updateCloudSpaceInfo",{source:"pc_account_panel_business_refresh"})}getMostApplicableGroupConfig(e,t){return M.Z.execPromise("common.fpccomb.getMostApplicableGroupConfig",{projectId:e,groupId:t})}openInnerUrl(e){return M.Z.exec(this.apis.openInnerUrl,{url:e})}openUrl(e){return M.Z.exec(this.apis.openUrl,{url:e})}hasRedPoint(e="rp_Wallet"){return M.Z.exec(this.apis.hasRedPoint,{pointType:e})}openAvatarPendantCenterDlg(){return M.Z.exec(this.apis.openAvatarPendantCenterDlg)}showWallet(e=lt){return M.Z.exec(this.apis.showWallet,{source:e})}updatePendantConfig(e){return M.Z.exec(this.apis.updatePendantConfig,e)}async openPayment(e,t){const n=window.__ACCOUNT_PANEL__?.getAppInfo,o={kstartpage:"public_startpage_icon",title:"public_rightup_icon"};(0,st.isObject)(e)&&!(0,st.isUndefined)(e)||(e={}),(0,st.isString)(t)&&t.startsWith("http")||(t="https://vip.wps.cn/vcl_svr/static/wpspay");const{version:c=""}=u("appInfo")||{},a={...e,version:c,component:e?.component||o[window.__ACCOUNT_PANEL__?.getShowFromInfo?.show_from]||o.title,channel:n?.channel},i=(0,re.addUrlQuery)(t,a);return console.log("支付链接:",i),console.log("支付参数:",a),dt.hidePanel(),M.Z.exec(this.apis.openPaymentWithUrl,{url:i})}openPaymentTips(e,t,n){const o={kstartpage:"public_home2019",title:"public_global"};return M.Z.exec(this.apis.openPayment,{csource:e,position:t,payconfig:n,component:o[window.__ACCOUNT_PANEL__?.getShowFromInfo?.show_from]||o.title})}openWebWidget({url:e,width:t,height:n,isModal:o}){return M.Z.exec("common.util.createWebWidget",{widht:t||800,height:n||600,startupurl:e,isModal:o||!1})}async getMemberInfo(){let e=await M.Z.execPromise(this.apis.getMemberInfo,"").catch((()=>null));return this.resHandler(e)}async getUserLoginStatus(){let e=await M.Z.execPromise("getUserLoginStatus").catch((()=>null));return e}solveRedPoint(e){return M.Z.exec(this.apis.solveRedPoint,{pointType:e})}setTargetRedPointType(e){return M.Z.exec(this.apis.setTargetRedPointType,{pointTypeList:e})}querySupportInterface(){return M.Z.execPromise(this.apis.querySupportInterface)}registPushUIEventHandler(e="onWpsPushUIEvent"){return M.Z.execPromise(this.apis.registPushUIEventHandler,{handler:e})}readyShow(){return M.Z.exec(this.apis.readyShow)}markMemberRemindMsgRead(e){M.Z.exec("markMemberRemindMsgRead",e)}accountpanelCreateFinished(e){M.Z.exec("accountpanelCreateFinished")}async getCurrentWorkspaceId(){let e=await M.Z.execPromise(this.apis.getCurrentWorkspaceId),t=0;return"ok"===e.callstatus&&(t=e.cur_workspace_id),Number(t)}openMemberCenter(){return M.Z.execPromise("membercenter",{client_entrance:"",content:{entry:"",entrySource:"",pos:"",page:""}})}async getCefVersion(){return M.Z.execPromise(this.apis.getCefVersion).then((e=>"ok"===e.callstatus?e.cefversion:"nocef")).catch((e=>(console.log(e),"")))}async getAccountList(){const e=(new Date).getTime();return M.Z.execPromise("getAccountListInfo",{}).then((t=>{t=t||{};const{accountlistinfo:n}=t;try{let t=JSON.parse(n);return console.log("[debug]: ",t),t?.length?rt.accountpanel_account_list({result:"success",time:(new Date).getTime()-e}):rt.accountpanel_account_list({result:"fail",error_type:"no_data",time:(new Date).getTime()-e,error_msg:ie.t("0f8d770472")}),t}catch(o){rt.accountpanel_account_list({result:"fail",error_type:"parse_error",time:(new Date).getTime()-e,error_msg:`Data parse error: ${n}`})}})).catch((t=>{rt.accountpanel_account_list({result:"fail",error_type:"api_error",time:(new Date).getTime()-e,error_msg:t}),console.error(t)}))}removeAccount(e){return M.Z.execPromise("removeAccount",e).then((e=>e)).catch((e=>{console.error(e)}))}loginOtherAccount(e){return M.Z.execPromise("showLoginPageDlg",e).then((e=>e)).catch((e=>{console.error(e)}))}}const dt=new ut;window["panel"]=dt;var pt=dt;function gt(e){pt.openPayment({biz_content:e.mk_key?encodeURIComponent(window.btoa(JSON.stringify({mk_key:e.mk_key}))):"",...e.pay_params})}function mt(e){e.link&&V.openUrl(e.link)}function _t(e){e.link&&V.openInnerUrl(e.link)}function ht(){pt.gotoNotice()}function kt(){pt.gotoPersonal()}function yt(){pt.gotoDocerShop()}const Mt=e=>{const t={pay:gt,out_browser:mt,inner_browser:_t,message_center:ht,open_usercenter:kt,open_docer:yt},n=e.action_mode;n&&t[n]?.({...e})};var wt="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTYgMTYnIGRpc3BsYXk9J2lubGluZS1ibG9jaycgdmVydGljYWwtYWxpZ249J21pZGRsZScgd2lkdGg9JzFlbScgaGVpZ2h0PScxZW0nIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgPjxjbGlwUGF0aCBpZD0nc3ZnSUQwJz48cGF0aCBkPSdNMCAwaDE2djE2SDB6Jy8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9J3VybCgjc3ZnSUQwKSc+PHBhdGggZmlsbD0nY3VycmVudENvbG9yJyBmaWxsLXJ1bGU9J2V2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5OTZWNC45OTk2MkMyLjUgNC43MjM0NyAyLjcyMzg2IDQuNDk5NjIgMyA0LjQ5OTYySDEzQzEzLjI3NjEgNC40OTk2MiAxMy41IDQuNzIzNDcgMTMuNSA0Ljk5OTYyWk0xMS41IDcuOTk5NjJIMTMuNVY5Ljk5OTYySDExLjVDMTAuOTQ3NyA5Ljk5OTYyIDEwLjUgOS41NTE5IDEwLjUgOC45OTk2MkMxMC41IDguNDQ3MzMgMTAuOTQ3NyA3Ljk5OTYyIDExLjUgNy45OTk2MloiIGZpbGw9IiM3NTc1NzUiLz4KPC9zdmc+Cg==";const Et=[{action_code:{action_mode:"out_browser",link:"https://mall.jd.com/index-10295893.html?mk_key=Jwsa77lTEA7bK9o4e"},icon:wt,title:ie.t("946ec125e0")},{action_code:{action_mode:"inner_browser",link:"https://personal-act.wps.cn/rubik-spa/?_position=pc-super-member-welfare&cs_from=pc_cloud_personalpanel&mk_key=Jwsa77lTEA7bK9o4e"},icon:ft,title:ie.t("f224d001f6")},{action_code:{action_mode:"message_center"},icon:vt,title:ie.t("d6cde0984b")},{action_code:{action_mode:"inner_browser",link:"https://personal-act.wps.cn/zt-spa/2019/vip_mobile_sign_v2/?csource=pc_cloud_personalpanel&mk_key=Jwsa77lTEA7bK9o4e&position=pc_cloud_sign#/"},icon:At,title:ie.t("946ec125e0")},{action_code:{action_mode:"inner_browser",link:"https://get.wps.cn/feedback/pc?app_name=encode&app_type=client&mk_key=Jwsa77lTEA7bK9o4e&product_id=1000010&product_name=WPS2019"},icon:Nt,title:ie.t("0f4056b35d")}],bt=[{action_code:{action_mode:"open_usercenter"},icon:Dt,title:"个人中心"},{action_code:{action_mode:"open_docer"},icon:St,title:"稻壳资源"},{action_code:{action_mode:"show_qrcode",qrcode_config:{qrcode:"https://img7.file.cache.docer.com/storage/official/file/2024/02/02/4b47d76574483d1cffce939fd2d9c875.png",text_list:["微信扫码下载","WPS手机APP"]}},icon:Ct,title:"下载APP"},{action_code:{action_mode:"out_browser",link:"https://vip.wps.cn/center_page/buy_record?form=mac_personalcenter&mk_key=SJLMqeFQJZ03eLA3nPIzA"},icon:It,title:"订单记录"},{action_code:{action_mode:"inner_browser",link:"https://get.wps.cn/feedback/pc?app_name=mac_account_panel_v2&app_type=client&mk_key=SJLMqeFQJZ03eLA3nPIzA&product_name=Mac%E7%89%88WPS"},icon:Nt,title:"反馈"}],xt=[{action_code:{action_mode:"out_browser",link:"https://mall.jd.com/index-10295893.html?mk_key=Jwsa77lTEA7bK9o4e"},icon:wt,title:ie.t("946ec125e0")},{action_code:{action_mode:"inner_browser",link:"https://personal-act.wps.cn/rubik-spa/?_position=pc-super-member-welfare&cs_from=pc_cloud_personalpanel&mk_key=Jwsa77lTEA7bK9o4e"},icon:ft,title:ie.t("f224d001f6")},{action_code:{action_mode:"inner_browser",link:"https://personal-act.wps.cn/zt-spa/2019/vip_mobile_sign_v2/?csource=pc_cloud_personalpanel&mk_key=Jwsa77lTEA7bK9o4e&position=pc_cloud_sign#/"},icon:At,title:ie.t("946ec125e0")},{action_code:{action_mode:"inner_browser",link:"https://get.wps.cn/feedback/pc?app_name=encode&app_type=client&mk_key=Jwsa77lTEA7bK9o4e&product_id=1000010&product_name=WPS2019"},icon:Nt,title:ie.t("0f4056b35d")}],Tt={ohos:xt,win:Et,mac:bt,other:Et},Lt=Tt[p]||Tt["other"],jt=e=>((0,o.pushScopeId)("data-v-0046de8f"),e=e(),(0,o.popScopeId)(),e),zt={class:"icon-container",id:"icon-container"},Bt=["onClick","onMouseenter"],Pt={key:0,class:"qrcode"},Ot=["src"],Ut=jt((()=>(0,o.createElementVNode)("div",{class:"icon-top"},null,-1))),Vt={class:"title"};var Zt=(0,o.defineComponent)({__name:"index",setup(e){const t=(0,s.useStore)(),n=(0,o.computed)((()=>t.state.footer.config)),c=(0,o.computed)((()=>n.value?.list||Lt));function a(e){d("hide_action","clickon_bar"),Mt("pay"===e.action_code?.action_mode?{...e.action_code,mk_key:n.value?.mk_key}:e.action_code),rt.accountpanel_bar_click(e.title),n.value?.list&&V.collectTianceClicked({code:j,button_name:e.title})}function i(e){"show_qrcode"===e.action_code?.action_mode&&rt.accountpanel_bar_show("qrcode_show")}return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",zt,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(c),(e=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["item",{item:!0,download:"show_qrcode"===e?.action_code?.action_mode}]),key:e.title,onClick:t=>a(e),onMouseenter:t=>i(e)},["show_qrcode"===e?.action_code?.action_mode?((0,o.openBlock)(),(0,o.createElementBlock)("div",Pt,[(0,o.createElementVNode)("img",{class:"qrcode-img",src:e.action_code?.qrcode_config?.qrcode,alt:""},null,8,Ot),Ut,((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.action_code?.qrcode_config?.text_list,(e=>((0,o.openBlock)(),(0,o.createElementBlock)("p",{key:e},(0,o.toDisplayString)(e),1)))),128))])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",{class:"footer-icon",style:(0,o.normalizeStyle)({"--bg":`url(${e.icon})`})},null,4),(0,o.createElementVNode)("div",Vt,(0,o.toDisplayString)(e.title),1)],42,Bt)))),128))]))}}),Qt=n(4700);const Gt=(0,Qt.Z)(Zt,[["__scopeId","data-v-0046de8f"]]);var Yt=Gt,Wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjE3NzE2IDEuMDUzMDFDOC42Njk4MiAwLjY3NDIzMyA5LjMyNTg4IDEuMzMwMjkgOC45NDcxIDEuODIyOTVMOC44ODg5MiAxLjg4OTAxTDUuNzc3MDEgNS4wMDAxTDguODg4OTIgOC4xMTExOUM5LjM4NTg2IDguNjA4MTMgOC42OTIyMiA5LjM0MzE5IDguMTc3MTYgOC45NDcxOUw4LjExMTEgOC44ODkwMUw1LjAwMDAxIDUuNzc3MUwxLjg4ODkyIDguODg5MDFDMS42OTggOS4wNzk5MyAxLjQwMTYzIDkuMTAxMTUgMS4xODcyOCA4Ljk1MjY1TDEuMTExMSA4Ljg4OTAxQzAuOTIwMTggOC42OTgwOSAwLjg5ODk2NyA4LjQwMTcyIDEuMDQ3NDYgOC4xODczN0wxLjExMTEgOC4xMTExOUw0LjIyMzAxIDUuMDAwMUwxLjExMTEgMS44ODkwMUMwLjkyMDE4IDEuNjk4MDkgMC44OTg5NjcgMS40MDE3MiAxLjA0NzQ2IDEuMTg3MzdMMS4xMTExIDEuMTExMTlDMS4zMDIwMyAwLjkyMDI3IDEuNTk4MzkgMC44OTkwNTYgMS44MTI3NSAxLjA0NzU1TDEuODg4OTIgMS4xMTExOUw1LjAwMDAxIDQuMjIzMUw4LjExMTEgMS4xMTExOUw4LjE3NzE2IDEuMDUzMDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K";const Jt={ref:"containerElement",class:"accountlist-container"},Rt={class:"accountlist"},Ft={class:"accountlist-top"},Ht={class:"title"},Xt={class:"text"},$t={key:0,class:"logoutCurrent"},Kt={class:"grow"},qt={class:"fix"},en={key:1,class:"logoutCurrent"},tn={class:"fix"},nn={class:"grow"},on=(0,o.createElementVNode)("div",{class:"fix"},")”",-1),cn={class:"text"},an=(0,o.createElementVNode)("div",{class:"accountlist-separator"},null,-1),rn={class:"accountlist-main-wrapper"},sn={class:"accountlist-main",id:"accountlist-main"},ln=["onClick"],un={class:"accountlist-avatar flex-no-shrink"},dn=["src"],pn=["src","onError"],gn={key:2,class:"icon-corp"},mn={class:"accountlist-metadata flex-g-1"},_n={class:"accountlist-username ellipsis-text"},hn={class:"accountlist-corpname ellipsis-text"},kn={class:"company"},yn=(0,o.createElementVNode)("div",{class:"logo"},null,-1),Mn={key:2,class:"currentTips"},wn={class:"count"},fn={class:"notice-content"},vn=["title","onClick"],An=(0,o.createElementVNode)("img",{draggable:"false",width:"8",height:"8",src:Wt,alt:""},null,-1),Nn=[An],Cn={class:"footer"};function Dn(e,t,n,c,a,i){const r=(0,o.resolveComponent)("DropDownItem"),s=(0,o.resolveComponent)("DropDown"),l=(0,o.resolveComponent)("LoginOtherAccount"),u=(0,o.resolveComponent)("AddCorpAccount");return(0,o.openBlock)(),(0,o.createElementBlock)("section",Jt,[(0,o.createElementVNode)("div",Rt,[(0,o.createElementVNode)("div",Ft,[(0,o.createElementVNode)("div",Ht,(0,o.toDisplayString)(e.$t("3f6dd613a4")),1),e.accountList.length>1?((0,o.openBlock)(),(0,o.createBlock)(s,{key:0,class:"dropDown",onVisibleChange:e.handleDropdownChange},{menu:(0,o.withCtx)((()=>[(0,o.createVNode)(r,{onClick:e.onLogoutCurrentAccount},{default:(0,o.withCtx)((()=>[e.currentAccount.is_company_account?((0,o.openBlock)(),(0,o.createElementBlock)("div",en,[(0,o.createElementVNode)("div",null,(0,o.toDisplayString)(e.$t("bdbd1b94ad")),1),(0,o.createElementVNode)("div",tn,"“"+(0,o.toDisplayString)(e.getCompanyAccountUserName()),1),(0,o.createElementVNode)("div",nn,"("+(0,o.toDisplayString)(e.currentAccount.companyName),1),on])):((0,o.openBlock)(),(0,o.createElementBlock)("div",$t,[(0,o.createElementVNode)("div",Kt,(0,o.toDisplayString)(e.$t("b0eb89aca2"))+(0,o.toDisplayString)(e.currentAccount.nickName),1),(0,o.createElementVNode)("div",qt,(0,o.toDisplayString)(e.$t("71e926f79a")),1)]))])),_:1},8,["onClick"]),(0,o.createVNode)(r,{onClick:e.onLogoutAllAccount,class:"all"},{default:(0,o.withCtx)((()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.$t("0138a97b7a")),1)])),_:1},8,["onClick"])])),default:(0,o.withCtx)((()=>[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["dropDownButton",{active:e.dropDownShow}])},[(0,o.createElementVNode)("span",Xt,(0,o.toDisplayString)(e.$t("3da2c977df")),1),(0,o.createElementVNode)("span",{class:(0,o.normalizeClass)(["arrow",{open:e.dropDownShow}])},null,2)],2)])),_:1},8,["onVisibleChange"])):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,class:"dropDownButton",onClick:t[0]||(t[0]=(...t)=>e.onLogoutCurrentAccount&&e.onLogoutCurrentAccount(...t))},[(0,o.createElementVNode)("span",cn,(0,o.toDisplayString)(e.$t("3da2c977df")),1)]))]),an,(0,o.createElementVNode)("div",rn,[(0,o.createElementVNode)("ul",sn,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.accountList,((n,c)=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{class:(0,o.normalizeClass)(["accountlist-item flex-row flex-vcenter",{isCurrent:n.is_current_login,isLogout:!n.is_login}]),key:`${n.userId}_${n.nickName}_${n.companyName}_${c}`,onClick:t=>e.handleSwitchAccount(n)},[(0,o.createElementVNode)("div",un,[n.loadError?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,draggable:"false",src:e.defaultAvatarUrl},null,8,dn)):((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:1,draggable:"false",src:n.avatarUrl,onError:t=>e.onAvatarError(n),onLoad:t[1]||(t[1]=(...t)=>e.onAvatarLoad&&e.onAvatarLoad(...t))},null,40,pn)),n.companyId&&"0"!==n.companyId?((0,o.openBlock)(),(0,o.createElementBlock)("i",gn)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",mn,[(0,o.createElementVNode)("div",_n,(0,o.toDisplayString)(n.nickName),1),(0,o.createElementVNode)("div",hn,[n.loginMode?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:0,class:(0,o.normalizeClass)(["auth",e.authMethodToIcon(n.loginMode)])},null,2)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("span",kn,(0,o.toDisplayString)(n.companyName),1)])]),n.is_login?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(["logoutTips",{hasUnreadCnt:!!n.unreadCnt}])},[yn,(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("3930a5843f")),1)],2)),n.is_need_tfa?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,class:(0,o.normalizeClass)(["twoStepAuthTips",{hasUnreadCnt:!!n.unreadCnt}])},[(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("1de436339a")),1)],2)):(0,o.createCommentVNode)("",!0),n.is_current_login?((0,o.openBlock)(),(0,o.createElementBlock)("div",Mn)):n.unreadCnt?((0,o.openBlock)(),(0,o.createBlock)(s,{key:3,class:"notice-wrap",trigger:"hover",contentClassName:"notice-body"},{menu:(0,o.withCtx)((()=>[(0,o.createElementVNode)("span",fn,(0,o.toDisplayString)(e.$t("3f32a1ad3c"))+(0,o.toDisplayString)(n.unreadCnt)+(0,o.toDisplayString)(e.$t("fb54a54ad9")),1)])),default:(0,o.withCtx)((()=>[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["notice",{middleSize:n.unreadCnt>e.UNREAD_CNT_COUNT_MAP.middle_size}])},[(0,o.createElementVNode)("span",wn,(0,o.toDisplayString)(n.unreadCnt>e.UNREAD_CNT_COUNT_MAP.ellipsis?"...":n.unreadCnt),1)],2)])),_:2},1024)):(0,o.createCommentVNode)("",!0),n.is_current_login?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:4,class:"remove",title:e.$t("f9b6e37eb7"),onClick:(0,o.withModifiers)((t=>e.onRemoveButtonClick(n)),["stop"])},Nn,8,vn))],10,ln)))),128))])])]),(0,o.createElementVNode)("div",Cn,[(0,o.createVNode)(l),e.disableCreateCompanyEntry?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(u,{key:0}))])],512)}const Sn=e=>((0,o.pushScopeId)("data-v-332311a5"),e=e(),(0,o.popScopeId)(),e),In={class:"login-other-wrapper"},En=Sn((()=>(0,o.createElementVNode)("div",{class:"addAcc-icon"},[(0,o.createElementVNode)("i",{class:"addAcc-icon-content"})],-1))),bn={class:"addAcc-tips"},xn={class:"addAcc-sub"};function Tn(e,t,n,c,a,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",In,[(0,o.createElementVNode)("div",{class:"addAcc-container flex-row flex-vcenter",onClick:t[0]||(t[0]=(...t)=>e.handleCreateCorpAccount&&e.handleCreateCorpAccount(...t))},[En,(0,o.createElementVNode)("span",bn,(0,o.toDisplayString)(e.entranceTitle),1),(0,o.createElementVNode)("span",xn,(0,o.toDisplayString)(e.subText),1)])])}var Ln=(0,o.defineComponent)({name:"AddCorpAccount",setup(){const e=(0,s.useStore)(),t=(0,o.computed)((()=>e.state.company.createCompanyEntrancePolicy)),n=(0,o.computed)((()=>e.getters["user/isCompanyAccount"])),c=(0,o.computed)((()=>(t.value?.data?.entrance_title||Xe).substring(0,$e.title))),a=(0,o.computed)((()=>n.value?"":(t.value?.data?.text||"").substring(0,$e.subText)));(0,o.onMounted)((()=>{e.dispatch("company/getCreateCompanyEntranceConfig")}));const i=()=>{rt.accountpanel_click("clickon_createbus"),rt.accountpanel_company_enterprise_create("click"),d("hide_action","clickon_createbus"),pt.openInnerUrl(t.value?.data?.entrance_click_url||He)};return{subText:a,entranceData:t,entranceTitle:c,isCompanyAccount:n,handleCreateCorpAccount:i}}});const jn=(0,Qt.Z)(Ln,[["render",Tn],["__scopeId","data-v-332311a5"]]);var zn=jn;const Bn=e=>((0,o.pushScopeId)("data-v-1448e28a"),e=e(),(0,o.popScopeId)(),e),Pn={class:"add-acc-wrapper"},On=Bn((()=>(0,o.createElementVNode)("div",{class:"add-acc-icon"},[(0,o.createElementVNode)("i",{class:"add-acc-icon-content"})],-1))),Un={class:"addAcc-tips"};function Vn(e,t,n,c,a,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",Pn,[(0,o.createElementVNode)("div",{class:"addAcc-container flex-row flex-vcenter",onClick:t[0]||(t[0]=(...t)=>e.loginOtherAccount&&e.loginOtherAccount(...t))},[On,(0,o.createElementVNode)("span",Un,(0,o.toDisplayString)(e.$t("9cf99069a1")),1)])])}var Zn=(0,o.defineComponent)({name:"LoginOtherAccount",setup(){const e=()=>{d("hide_action","clickon_loginaccount"),rt.accountpanel_click("clickon_loginaccount"),pt.loginOtherAccount({source:"accountpanel"})};return{loginOtherAccount:e}}});const Qn=(0,Qt.Z)(Zn,[["render",Vn],["__scopeId","data-v-1448e28a"]]);var Gn=Qn;const Yn={middle_size:9,ellipsis:99},Wn="https://personal-act.wps.cn/cloud-act/manage_space?source=wpspanel&tag=wpspanel&component=public_wpspanel";var Jn;(function(e){e["2018white"]="light",e["2018white_dark"]="dark",e["2019dark"]="comfortable",e["2019greeny"]="green",e["2020platinum"]="vip",e["2023white_nostalgia"]="classic"})(Jn||(Jn={}));class Rn{constructor(){(0,g.Z)(this,"apiPrefix",void 0),(0,g.Z)(this,"apis",void 0),(0,g.Z)(this,"colors",void 0),(0,g.Z)(this,"fonts",void 0),this.apiPrefix="common.skin",this.apis={getHint:"getHint",getCurSkin:"getCurSkin",getSkinIcon:"getSkinIcon",getSkinName:"getCurrentSkinName"},this.colors=[],this.fonts=["text-size"]}query(){return M.Z.execPromise(`${this.apiPrefix}.${this.apis.getSkinName}`)}api(){return M.Z.execPromise(`${this.apis.getSkinName}`)}async getMode(){let e=Jn["2018white"];const{callstatus:t,result:n}=await this.api().catch((t=>(console.error(t),e)));return"ok"===t?e=Jn[n.skinName]:console.warn("maybe missing current skin name"),e}}const Fn=new Rn;var Hn=Fn;function Xn(){const e=(0,o.ref)(Jn["2018white"]);(0,o.onMounted)((async()=>{V.addEventListener("event.skin.change",(async()=>{e.value=await Hn.getMode()})),e.value=await Hn.getMode()}));const t=t=>{e.value=t};return{mode:e,setSkinMode:t}}function $n(){function e(e,t=!0){if(t&&V.collectTianceClicked({button_name:e.button_name}),[1,"1"].includes(e?.jump_type)){let t="";try{t=(0,re.addUrlQuery)(e?.link,e?.url_params)}catch(n){console.error("url不符合格式!")}I(e?.promebrowser)?V.openInnerUrl(t):V.openUrl(t)}else[2,"2"].includes(e?.jump_type)?pt.openPayment(e?.url_params):[3,"3"].includes(e?.jump_type)?pt.gotoPersonal():pt.openPayment()}return e}const Kn={white:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDggNDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF83NDczXzU3ODgwOSkiPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0iI0NDQ0NDQyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTMyLjQ3MDYgMjIuNDcwNkMzMi40NzA2IDI3LjE0ODggMjguNjc4MiAzMC45NDEyIDI0IDMwLjk0MTJDMTkuMzIxOCAzMC45NDEyIDE1LjUyOTQgMjcuMTQ4OCAxNS41Mjk0IDIyLjQ3MDZDMTUuNTI5NCAxNy43OTI0IDE5LjMyMTggMTQgMjQgMTRDMjguNjc4MiAxNCAzMi40NzA2IDE3Ljc5MjQgMzIuNDcwNiAyMi40NzA2Wk05LjYwMDEgNDYuNTg4MUM5LjYwMDEgNDAuMDM4NyAxNC45MDk1IDM0LjcyOTMgMjEuNDU4OSAzNC43MjkzSDI2LjU0MTNDMjkuODMxNCAzNC43MjkzIDMyLjgwODcgMzYuMDY5MiAzNC45NTcxIDM4LjIzMzFDMzUuMjE0MiAzOC40OTIyIDM1LjQ1OTYgMzguNzYzIDM1LjY5MjEgMzkuMDQ0OEMzNy4zODM4IDQx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uNzI5M0gyNi41NDEyQzI5LjgzMTQgMzQuNzI5MyAzMi44MDg2IDM2LjA2OTIgMzQuOTU3IDM4LjIzMzFDMzUuMjE0MiAzOC40OTIyIDM1LjQ1OTUgMzguNzYzIDM1LjY5MiAzOS4wNDQ4QzM3LjM4MzggNDEuMDk0NyAzOC40IDQzLjcyMjggMzguNCA0Ni41ODgxVjUyLjUxNzZDMzguNCA1NC4zODg4IDM2Ljg4MyA1NS45MDU4IDM1LjAxMTggNTUuOTA1OEgxMi45ODgyQzExLjExNyA1NS45MDU4IDkuNjAwMDEgNTQuMzg4OCA5LjYwMDAxIDUyLjUxNzZWNDYuNTg4MVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfNjg5NF8zOTA0MzUiPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"};function qn(e,t,n,c,a,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["dropdown_option",{"is-disabled":e.disabled}])},[(0,o.renderSlot)(e.$slots,"default",{},void 0,!0)],2)}var eo=(0,o.defineComponent)({name:"DropdownItem",props:{disabled:{type:Boolean,default:!1}}});const to=(0,Qt.Z)(eo,[["render",qn],["__scopeId","data-v-36395e3f"]]);var no=to;function oo(e,t,n,c,a,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"dropdown",style:{"{\n display":"inline-table"},onMouseenter:t[2]||(t[2]=(...t)=>e.enterTrigger&&e.enterTrigger(...t)),onMouseleave:t[3]||(t[3]=(...t)=>e.closeMenu&&e.closeMenu(...t))},[(0,o.createElementVNode)("div",{ref:"triggerEl",onClick:t[0]||(t[0]=(0,o.withModifiers)(((...t)=>e.toggleOpen&&e.toggleOpen(...t)),["stop"]))},[(0,o.renderSlot)(e.$slots,"default",{},void 0,!0)],512),e.isOpen?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,onClick:t[1]||(t[1]=(0,o.withModifiers)(((...t)=>e.toggleOpen&&e.toggleOpen(...t)),["stop"])),class:(0,o.normalizeClass)(e.contentClassName),style:(0,o.normalizeStyle)({display:"block",...e.fixedStyle})},[(0,o.renderSlot)(e.$slots,"menu",{},void 0,!0)],6)):(0,o.createCommentVNode)("",!0)],32)}var co=(0,o.defineComponent)({name:"DropDown",props:{title:{type:String,required:!1},trigger:{type:String,default:"click"},contentClassName:{type:String,default:"dropdown_menu"}},emits:["visible-change"],setup(e,{emit:t}){const n=(0,o.ref)(!1),c=(0,o.ref)({}),a=(0,o.ref)(null),i=()=>{n.value=!n.value,t("visible-change",n.value)},r=(0,Le.z$)(),s=()=>Boolean(r.isWpsTablet||r.isWpsHarmonyMobile);let l;const u=()=>{s()||(l=setTimeout((()=>{n.value=!1,t("visible-change",n.value)}),500))},d=()=>{clearTimeout(l),"hover"===e.trigger&&i()};(0,o.onBeforeUnmount)((()=>{clearTimeout(l)}));const p=()=>{n.value=!1,t("visible-change",n.value)};return(0,o.watch)((()=>n.value),(t=>{if(t&&"hover"===e.trigger&&a.value){const{bottom:e=0,left:t=0,width:n=0}=a.value?.getBoundingClientRect();c.value={position:"fixed",top:`${e+10}px`,left:`${t+n/2}px`,transform:"translateX(-50%)",zIndex:2001}}})),{isOpen:n,toggleOpen:i,closeMenu:u,enterTrigger:d,closeMenuImmediately:p,fixedStyle:c,triggerEl:a}}});const ao=(0,Qt.Z)(co,[["render",oo],["__scopeId","data-v-2c354319"]]);var io=ao,ro=(0,o.defineComponent)({name:"AccountList",components:{AddCorpAccount:zn,LoginOtherAccount:Gn,DropDown:io,DropDownItem:no},computed:{disableCreateCompanyEntry(){return window?.__ACCOUNT_PANEL__?.bDisableCreateCompanyEntry}},setup(){const e=(0,s.useStore)(),t=(0,o.computed)((()=>e.state.user.userInfo)),n=(0,o.computed)((()=>e.state.account.accountList)),c=(0,o.computed)((()=>{let e=new Object,t=n.value.find((({is_current_login:e})=>e));return t&&(e=t),e})),a=(0,o.ref)(),{mode:i}=Xn(),r=(0,o.computed)((()=>"dark"===i.value?Kn.dark:Kn.white)),l=async e=>{if(e.is_current_login)return;const{userId:n,companyId:o,status:c,reason:a}=e;e.is_login?rt.accountpanel_click("clickon_switchaccount"):rt.accountpanel_click("clickon_account_forbid"),n!==t.value.userId?M.Z.execPromise("switchAccount",{userId:n,companyId:o,status:c,reason:a,source:"accountpanel"}):M.Z.exec("navigateToCompanyLocation",{companyId:o});const i=document.getElementById("accountlist-main");i&&(i.scrollTop=0)},u=t=>{let o=n.value.find((({userId:e})=>e===t.userId));rt.accountpanel_account_list_avatarload({result:"fail",error_type:o?.avatarUrl.startsWith("http")?"load_error":"src_error"}),o&&(o.loadError=!0,e.commit("account/setAccountList",n.value))},p=()=>{rt.accountpanel_account_list_avatarload({result:"success"})};let g=(0,o.ref)(!1);const m=e=>{g.value=e},_=()=>{rt.accountpanel_click(n.value.length>1?"click_loginout_currentaccount":"click_loginout"),pt.logout({bRemoveAllAccount:!1,source:"accountpanel",bShowLogoutClearDlg:!0})},h=()=>{rt.accountpanel_click("click_loginout_allaccount"),pt.logout({bRemoveAllAccount:!0,source:"accountpanel",bShowLogoutClearDlg:!0})},k=e=>{rt.accountpanel_click("clickon_moveaccount"),d("hide_action","clickon_moveaccount"),pt.removeAccount({userId:e.userId,source:"accountpanel"})},y=e=>{const t=e.split(":")[0],n={phone:"phoneAuth",phone_sms:"phoneAuth",email:"emailAuth",qq:"qqAuth",wechat:"wxAuth",qr:"wpsAuth",dingtalk:"dingdingAuth",plus:"thirdPartyAuth",sina:"weiboAuth",xiaomi:"xiaomiAuth"};return n[t]||rt.accountpanel_account_icon_type(e),n[t]||"unknown"},w=()=>{const e=c.value.nickName;return e.length>3?`${e.substring(0,3)}...`:e};return{accountList:n,currentAccount:c,handleSwitchAccount:l,onAvatarError:u,onAvatarLoad:p,containerElement:a,defaultAvatarUrl:r,dropDownShow:g,handleDropdownChange:m,onLogoutCurrentAccount:_,onLogoutAllAccount:h,authMethodToIcon:y,onRemoveButtonClick:k,getCompanyAccountUserName:w,UNREAD_CNT_COUNT_MAP:Yn}}});const so=(0,Qt.Z)(ro,[["render",Dn]]);var lo=so,uo=(n(2257),n(6252));const po=["src"],go=["src"],mo=["src"],_o=["src"];var ho=(0,o.defineComponent)({__name:"index",props:{avatar:{type:String,default:Kn.white}},emits:["click"],setup(e,{emit:t}){const n=(0,o.computed)((()=>r.state.act.config?.head_picture)),c=(0,o.ref)(!1),a=(0,o.ref)(""),{mode:i}=Xn(),r=(0,s.useStore)(),l=(0,o.ref)(!1),u=((0,o.computed)((()=>r.state.user.vipInfo)),(0,o.computed)((()=>"dark"===i.value?Kn.dark:Kn.white))),d=()=>{c.value=!0},p=()=>{t("click")};return(t,i)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)({ava:!0}),onClick:p},[l.value?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,draggable:"false",class:"ava-img-default",src:(0,o.unref)(u)},null,8,po)):((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:1,draggable:"false",class:"ava-img",src:e.avatar,onError:i[0]||(i[0]=e=>l.value=!0)},null,40,go)),(0,o.unref)(n)?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:2},[c.value?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,draggable:"false",class:"crown-img",src:a.value,alt:""},null,8,mo)):((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:1,draggable:"false",class:"crown-img",src:(0,o.unref)(n),onError:d},null,40,_o))],64)):(0,o.createCommentVNode)("",!0)]))}});const ko=(0,Qt.Z)(ho,[["__scopeId","data-v-55e4e706"]]);var yo=ko;const Mo=["src"],wo=["src"],fo=["src"];var vo=(0,o.defineComponent)({__name:"icon-item",props:{normal:{type:String,required:!0},hover:{type:String,required:!0},click:{type:String,required:!0}},setup(e){const t=e,n=(0,o.ref)("normal");return(e,c)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{onClick:c[4]||(c[4]=t=>e.$emit("handleClick"))},[(0,o.createElementVNode)("div",{class:"temp",onMouseenter:c[0]||(c[0]=e=>n.value="hover"),onMouseleave:c[1]||(c[1]=e=>n.value="normal"),onMousedown:c[2]||(c[2]=e=>n.value="click"),onMouseup:c[3]||(c[3]=e=>n.value="normal")},[(0,o.withDirectives)((0,o.createElementVNode)("img",{draggable:"false",class:"icon-img",src:t.normal},null,8,Mo),[[o.vShow,"normal"===n.value]]),(0,o.withDirectives)((0,o.createElementVNode)("img",{draggable:"false",class:"icon-img",src:t.hover},null,8,wo),[[o.vShow,"hover"===n.value]]),(0,o.withDirectives)((0,o.createElementVNode)("img",{draggable:"false",class:"icon-img",src:t.click},null,8,fo),[[o.vShow,"click"===n.value]])],32)]))}});const Ao=(0,Qt.Z)(vo,[["__scopeId","data-v-3887430a"]]);var No=Ao;const Co={key:0,class:"vip-icons"};var Do=(0,o.defineComponent)({__name:"index",setup(e){const t=(0,s.useStore)(),n=(0,o.computed)((()=>t.state.mode)),c=(0,o.computed)((()=>t.state.act.config)),a=(0,o.computed)((()=>t.state.act.biz_params)),i=(0,o.computed)((()=>c.value?.hover_icon_list?.map((e=>{const t=b({path:(0,o.toRaw)(e.sub_material_icon),theme:n.value});return{...e,icon_url:t,icon_status:"normal"}}))||[])),r=e=>{const t=$n();t({jump_type:e.jump_type,link:e.link,promebrowser:e.promebrowser,url_params:{...e.url_params,...a.value},button_name:"icon"})};return(e,t)=>(0,o.unref)(i)&&(0,o.unref)(i).length>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",Co,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(i),((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.unref)(E)(e.icon_name)?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(No,{onHandleClick:t=>r(e),class:"icon",click:e.icon_url.click,hover:e.icon_url.hover,normal:e.icon_url.normal,key:t},null,8,["onHandleClick","click","hover","normal"]))],64)))),256))])):(0,o.createCommentVNode)("",!0)}});const So=Do;var Io=So;const Eo={class:"user-container",id:"user-container"},bo={class:"user-info-wrapper"},xo={class:"flex"},To={class:"flex user-info-right"},Lo={class:"flex flex-vcenter user-name"},jo={class:"flex flex-vcenter"},zo={key:0,class:"account"},Bo={class:"id"},Po={style:{"user-select":"text",cursor:"text"}};var Oo=(0,o.defineComponent)({__name:"index",setup(e){const t=(0,s.useStore)(),n=(0,o.computed)((()=>t.state.user.userInfo)),c=(t.state.user.vipInfo,(0,o.computed)((()=>t.getters["user/isCompanyAccount"]))),a=(0,o.computed)((()=>t.getters["account/isExistAccountList"])),i=(0,o.computed)((()=>{if(!n.value.userName)return"";let e=n.value.userName;const t=e=>/[\u4E00-\u9FFF]+/g.test(e);return t(e)?e.length>9?`${e.substring(0,9)}...`:e:e.length>13?`${e.substring(0,13)}...`:e})),r=()=>{pt.logout({bShowClearCahceDlg:!0,bRemoveAllAccount:!1})},l=()=>{rt.accountpanel_avatar_click("account_avatar"),d("hide_action","clickon_account_avatar"),pt.gotoPersonal()},u=()=>{rt.accountpanel_avatar_click("account_name"),d("hide_action","clickon_account_name"),pt.gotoPersonal()};return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",Eo,[(0,o.createElementVNode)("div",bo,[(0,o.createElementVNode)("div",xo,[(0,o.createVNode)(yo,{onClick:l,avatar:(0,o.unref)(n).avatar},null,8,["avatar"]),(0,o.createElementVNode)("div",To,[(0,o.createElementVNode)("div",null,[(0,o.createElementVNode)("div",Lo,[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["name"]),onClick:u},(0,o.toDisplayString)((0,o.unref)(i)),1),(0,o.createVNode)(Io)]),(0,o.createElementVNode)("div",jo,[(0,o.unref)(c)?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("p",zo,(0,o.toDisplayString)(e.$t("1a7cb9c9bc")),1)),(0,o.createElementVNode)("p",Bo,[(0,o.createTextVNode)(" ID: "),(0,o.createElementVNode)("span",Po,(0,o.toDisplayString)((0,o.unref)(n).userId),1)])])]),(0,o.unref)(a)?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"logout",onClick:r},(0,o.toDisplayString)(e.$t("2b41063baa")),1))]),(0,o.unref)(a)?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"logout",onClick:r},(0,o.toDisplayString)(e.$t("5e7abdbed0")),1))])])]))}});const Uo=(0,Qt.Z)(Oo,[["__scopeId","data-v-4dcd6ee6"]]);var Vo=Uo,Zo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACy3fD9AAAAjklEQVQ4EWNgGAUjMAT+//+/EoiJBWvQg4gJXQDIF8cihktIAJcEXBzoNAUgfkuEE0FqFOAa8TGACj2B+C8eQ0FynvjMwJADaqjHY2A9hgZCAkDDmIB4GxZDQWLYwp6QkQwMQI1CQHwfiGHgPpAhRFgnHhVAA4yA+DsUG+FRSrwU0DANINYkXseoykEVAgDFj+o6TPxbgwAAAABJRU5ErkJggg==",Qo=(0,o.defineComponent)({__name:"index",emits:["click"],setup(e,{emit:t}){const n=(0,s.useStore)(),c=((0,o.computed)((()=>n.state.user.vipInfo)),()=>{t("click")});return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"btn",onClick:t[0]||(t[0]=(0,o.withModifiers)((e=>c()),["stop"]))},[(0,o.renderSlot)(e.$slots,"default")]))}});const Go=(0,Qt.Z)(Qo,[["__scopeId","data-v-582e1307"]]);var Yo=Go,Wo=n.p+"static/img/tiance_error.png",Jo=n.p+"static/img/tiance_error_larger.png",Ro=(0,o.defineComponent)({__name:"index",props:{isLarger:{type:Boolean}},setup(e){const t={win:"https://vip.wps.cn/privilege_page?csource=web_vipcenter_pc_cloud_personalpanel&component=pc_cloud_personalpanel",mac:"https://vip.wps.cn/privilege_page?csource=web_vipcenter_mac_cloud_personalpanel&component=mac_cloud_personalpanel",ohos:"https://vip.wps.cn/privilege_page?csource=web_vipcenter_pc_cloud_personalpanel&component=ohos_pc"};function n(){V.openInnerUrl(t[p]||t["win"])}return(t,c)=>e.isLarger?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:1,src:Jo,class:"error-img error-img-larger",onClick:n})):((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,src:Wo,class:"error-img",onClick:n}))}});const Fo=(0,Qt.Z)(Ro,[["__scopeId","data-v-639e8b6f"]]);var Ho=Fo;const Xo={class:"flex line1"},$o=["src"],Ko={class:"flex line2"},qo={key:0,class:(0,o.normalizeClass)(["exp","tips"])},ec=["innerHTML"],tc=["onClick","innerHTML"],nc=["onClick","innerHTML"],oc=["onClick"];var cc=(0,o.defineComponent)({__name:"index-v2",setup(e){const t=$n(),n=(0,o.computed)((()=>a.state.getTianCeConfigError)),c=(0,o.computed)((()=>a.state.getTianCeConfigFinish)),a=(0,s.useStore)(),i=(0,o.ref)(!1),r=(0,o.computed)((()=>a.state.act.config)),l=(0,o.computed)((()=>b({theme:"light",path:r.value.sub_material_bt}))),u=(0,o.computed)((()=>a.state.act.config?.text_list?.length>1)),p=(0,o.ref)(0),g=(0,o.computed)((()=>r.value?.text_list?.[p.value]??{}));function m(e){const t=new RegExp(/\*(.*?)\*/);return e?.replace(t,(e=>{const[,n]=e.match(t)||[];return`<span style="text-decoration-line: underline">${n}</span>`}))}const _=(0,o.computed)((()=>a.state.act.config?.vip_info||{})),h=(0,o.computed)((()=>a.state.act.config?.picture||"")),k=(0,o.computed)((()=>a.state.act.config?.mk_key||"")),y=(0,o.computed)((()=>a.state.act.biz_params)),M=(e,t)=>{p.value=t,console.log(g.value),console.log(r.value?.text_list)},w=e=>{d("hide_action","clickon_vip_button"),t({url_params:N(r.value.url_params),promebrowser:r.value.promebrowser,jump_type:r.value.jump_type,link:r.value.link,button_name:"button"}),rt.accountpanel_vip_click(e||"button"),V.collectTianceClicked({code:L,button_name:"button"})},f=()=>{d("hide_action","clickon_vip_text"),t({url_params:N(g.value.text_url_params),promebrowser:g.value.text_promebrowser,jump_type:g.value.text_jump_type,link:g.value.link,button_name:"text"}),rt.accountpanel_vip_click("second_text"),V.collectTianceClicked({code:L,button_name:"text"})},v=e=>{d("hide_action","clickon_vip_text"),t({promebrowser:_.value.promebrowser,jump_type:_.value.jump_type,link:_.value.link,url_params:N(_.value.url_params),button_name:"text"}),rt.accountpanel_vip_click(e),V.collectTianceClicked({code:L,button_name:"text"})},A=()=>{d("hide_action","clickon_vip_text"),t({url_params:N(r.value.text_btn_url_params),promebrowser:r.value.text_btn_promebrowser,jump_type:r.value.text_btn_jump_type,link:r.value.text_link,button_name:"text"}),V.collectTianceClicked({code:L,button_name:"text"})};function N(e){return{...e,...y.value,mk_key:k.value??""}}return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["panel-card",{"err-card":(0,o.unref)(n)}]),style:(0,o.normalizeStyle)({backgroundImage:(0,o.unref)(n)?"":`url(${(0,o.unref)(h)})`}),id:"panel-card",onClick:t[7]||(t[7]=e=>w("nothing"))},[(0,o.unref)(c)?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.unref)(n)?((0,o.openBlock)(),(0,o.createBlock)(Ho,{key:1})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.createElementVNode)("div",Xo,[(0,o.createElementVNode)("p",{class:"title",onClick:t[0]||(t[0]=(0,o.withModifiers)((e=>v("main_text_1")),["stop"]))},[(0,o.unref)(_).vip_pic?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,draggable:"false",src:(0,o.unref)(_).vip_pic,style:{height:"100%"},alt:""},null,8,$o)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("p",{class:"subtitle",style:(0,o.normalizeStyle)({color:(0,o.unref)(_)?.sub_text_color}),onClick:t[1]||(t[1]=(0,o.withModifiers)((e=>v("main_text_2")),["stop"]))},(0,o.toDisplayString)((0,o.unref)(_)?.sub_text),5)]),(0,o.createElementVNode)("div",Ko,[(0,o.unref)(u)?((0,o.openBlock)(),(0,o.createElementBlock)("div",qo,[(0,o.createElementVNode)("span",{class:"subtext",style:(0,o.normalizeStyle)({color:(0,o.unref)(g).text_color}),innerHTML:m((0,o.unref)(g).text)},null,12,ec),(0,o.createElementVNode)("img",{draggable:"false",onClick:t[2]||(t[2]=(0,o.withModifiers)((e=>i.value=!i.value),["stop"])),onMouseleave:t[3]||(t[3]=e=>i.value=!1),class:"arrow",style:{height:"10px",width:"10px"},src:Zo,alt:""},null,32)])):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createElementVNode)("p",{class:"subtext",onClick:(0,o.withModifiers)(f,["stop"]),style:(0,o.normalizeStyle)({color:(0,o.unref)(g).text_color}),innerHTML:m((0,o.unref)(g).text)},null,12,tc),(0,o.createElementVNode)("p",{class:"privilege",style:(0,o.normalizeStyle)({color:(0,o.unref)(r).text_btn_color}),onClick:(0,o.withModifiers)(A,["stop"]),innerHTML:m((0,o.unref)(r).text_btn)},null,12,nc)],64))]),(0,o.createVNode)(Yo,{onClick:t[4]||(t[4]=e=>w("button"))},{default:(0,o.withCtx)((()=>[(0,o.createVNode)(No,{hover:(0,o.unref)(l).hover,click:(0,o.unref)(l).click,normal:(0,o.unref)(l).normal},null,8,["hover","click","normal"])])),_:1}),!(0,o.unref)(n)&&i.value&&(0,o.unref)(r).text_list&&(0,o.unref)(r).text_list.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"tips-box-active",onMouseenter:t[5]||(t[5]=e=>i.value=!0),onMouseleave:t[6]||(t[6]=e=>i.value=!1)},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(r).text_list,((e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("p",{key:t,onClick:(0,o.withModifiers)((n=>M(e,t)),["stop"])},[(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.text),1)],8,oc)))),128))],32)):(0,o.createCommentVNode)("",!0)],64))],64)):(0,o.createCommentVNode)("",!0)],6))}});const ac=cc;var ic=ac;async function rc(e){const t=await V.getTianCeConfig({code:e,where:"pc_cloud_personalpanel",pay_source:"pc_cloud_personalpanel"});return t}function sc(e,t,n){if(!e)return"";const o="light"===n?t:`${t}_dark`;return e[o]||e[t]}const lc={class:"header-line"},uc=["src"],dc={class:"content-line"},pc=["onClick"],gc=["src"],mc={class:"bottom-line"},_c=["onClick","innerHTML"],hc=["src","onClick"];var kc=(0,o.defineComponent)({__name:"index-v3",props:{isShowPanel:{type:Boolean}},setup(e,{expose:t}){const n=e,c=(0,s.useStore)(),a=$n(),i=(0,o.ref)(Date.now()),r=(0,o.ref)([]),l=(0,o.ref)(null),u=(0,o.computed)((()=>c.state.getTianCeConfigError)),p=(0,o.computed)((()=>M.value||c.state.getTianCeConfigFinish)),g=(0,o.computed)((()=>c.state.mode)),m=(0,o.computed)((()=>c.state.act.config)),_=(0,o.computed)((()=>{const{sub_material_bt:e,sub_material_rb_button:t}=m.value||{};return b({theme:g.value,path:t||e})})),h=(0,o.computed)((()=>m.value?.text_list?.[0]??{})),k=(0,o.computed)((()=>c.state.act.config?.vip_info||{})),y=(0,o.computed)((()=>sc(k.value,"vip_pic",g.value))),M=(0,o.computed)((()=>sc(c.state.act.config,"picture_large",g.value))),w=(0,o.computed)((()=>sc(k.value,"sub_text_color",g.value))),f=(0,o.computed)((()=>sc(h.value,"text_color",g.value))),v=(0,o.computed)((()=>c.state.act.config?.mk_key||"")),A=(0,o.computed)((()=>c.state.act.biz_params)),N=(0,o.computed)((()=>{const{right_top_image:e}=l.value||{};return e?.[g.value]||e?.light||""})),C=(0,o.computed)((()=>{if(!l.value)return!1;const{effective_date:e}=l.value||{},[t,n]=e||[];return console.log("start",t,"end",n,"dateNowTime",i.value),Boolean(t&&n&&i.value>=1e3*t&&i.value<=1e3*n)}));function D(e){const t=new RegExp(/\*(.*?)\*/);return e?.replace(t,(e=>{const[,n]=e.match(t)||[];return`<span style="text-decoration-line: underline">${n}</span>`}))}(0,o.watch)((()=>n.isShowPanel),(e=>{e&&(i.value=Date.now())}),{immediate:!0}),(0,o.watchEffect)((()=>{C.value&&(rt.accountpanel_vip_newcontentshow("big_sale",l.value?.uniqueid||""),rt.mainSend("collectTianceShow",{code:B}))})),(0,o.watch)((()=>[r.value,n.isShowPanel]),(e=>{if(e[0]&&e[1]&&r.value.length>0){const e=r.value.map((e=>e.name));rt.accountpanel_vip_newcontentshow("business_entry",e.join(",")),rt.mainSend("collectTianceShow",{code:z})}}),{immediate:!0});const S=e=>{"nothing"===e&&d("hide_action","clickon_vip_nothing"),d("hide_action","clickon_vip_button"),a({url_params:j(m.value.url_params),promebrowser:m.value.promebrowser,jump_type:m.value.jump_type,link:m.value.link,button_name:"button"},!1),rt.accountpanel_vip_click(e),V.collectTianceClicked({code:L,button_name:"button"})},I=()=>{d("hide_action","clickon_vip_text"),a({url_params:j(h.value.text_url_params),promebrowser:h.value.text_promebrowser,jump_type:h.value.text_jump_type,link:h.value.link,button_name:"text"},!1),rt.accountpanel_vip_click("second_text"),V.collectTianceClicked({code:L,button_name:"text"})},E=e=>{d("hide_action","clickon_vip_text"),a({promebrowser:k.value.promebrowser,jump_type:k.value.jump_type,link:k.value.link,url_params:j(k.value.url_params),button_name:"text"},!1),rt.accountpanel_vip_click(e),V.collectTianceClicked({code:L,button_name:"text"})},x=e=>{if(!e.event_handler)return;const{promebrowser:t,jump_type:n,link:o,url_params:c}=e.event_handler;d("hide_action","clickon_vip_business"),V.collectTianceClicked({code:z,button_name:"button"}),rt.accountpanel_vip_newcontentclick("business_entry",e.name),a({promebrowser:t,jump_type:n,link:o,url_params:j(c),button_name:"button"},!1)},T=()=>{if(!l.value?.event_handler)return;const{promebrowser:e,jump_type:t,link:n,url_params:o}=l.value?.event_handler;d("hide_action","clickon_vip_bigsale"),V.collectTianceClicked({code:B,button_name:"icon"}),rt.accountpanel_vip_newcontentclick("big_sale",l.value?.uniqueid||""),a({promebrowser:e,jump_type:t,link:n,url_params:j(o),button_name:"icon"},!1)};function j(e){return{...e,...A.value,mk_key:v.value??""}}async function P(){const e=await rc(z);r.value=(e[0]?.function_list||[]).slice(0,5)}async function O(){const e=await rc(B);l.value=e[0]||{}}function U(){P(),O()}return U(),t({initData:U}),(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["panel-card-v3",{"err-card":(0,o.unref)(u)}]),style:(0,o.normalizeStyle)({backgroundImage:(0,o.unref)(u)?"":`url(${(0,o.unref)(M)})`}),onClick:t[3]||(t[3]=e=>S("nothing"))},[(0,o.unref)(p)?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.unref)(u)?((0,o.openBlock)(),(0,o.createBlock)(Ho,{key:1,isLarger:!0})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.createElementVNode)("div",lc,[(0,o.createElementVNode)("p",{class:"title",onClick:t[0]||(t[0]=(0,o.withModifiers)((e=>E("main_text_1")),["stop"]))},[(0,o.unref)(y)?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,draggable:"false",src:(0,o.unref)(y),style:{height:"100%"},alt:""},null,8,uc)):(0,o.createCommentVNode)("",!0)]),(0,o.unref)(k)?.sub_text?((0,o.openBlock)(),(0,o.createElementBlock)("p",{key:0,class:"subtitle",style:(0,o.normalizeStyle)({color:(0,o.unref)(w)}),onClick:t[1]||(t[1]=(0,o.withModifiers)((e=>E("main_text_2")),["stop"]))},(0,o.toDisplayString)((0,o.unref)(k)?.sub_text),5)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",dc,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(r.value,(e=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"content-item",key:e.icon,onClick:(0,o.withModifiers)((t=>x(e)),["stop"])},[(0,o.createElementVNode)("img",{class:"content-item-icon",src:e.icon},null,8,gc),(0,o.createElementVNode)("div",{class:"content-item-content",style:(0,o.normalizeStyle)({color:(0,o.unref)(w)})},(0,o.toDisplayString)(e.name),5)],8,pc)))),128))]),(0,o.createElementVNode)("div",mc,[(0,o.createElementVNode)("p",{class:"title-text",onClick:(0,o.withModifiers)(I,["stop"]),style:(0,o.normalizeStyle)({color:(0,o.unref)(f)}),innerHTML:D((0,o.unref)(h).text)},null,12,_c),(0,o.createElementVNode)("div",{class:"btn-container",onClick:t[2]||(t[2]=(0,o.withModifiers)((e=>S("button")),["stop"]))},[(0,o.createVNode)(No,{hover:(0,o.unref)(_).hover,click:(0,o.unref)(_).click,normal:(0,o.unref)(_).normal},null,8,["hover","click","normal"])])]),(0,o.unref)(C)?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,class:"right-top-corner-image",src:(0,o.unref)(N),onClick:(0,o.withModifiers)(T,["stop"])},null,8,hc)):(0,o.createCommentVNode)("",!0)],64))],64)):(0,o.createCommentVNode)("",!0)],6))}});const yc=(0,Qt.Z)(kc,[["__scopeId","data-v-8a5862b0"]]);var Mc=yc;const wc={id:"badge",class:"badge"},fc={key:0,class:"badge-error"},vc=(0,o.createElementVNode)("div",{class:"error-icon"},null,-1),Ac=(0,o.createElementVNode)("div",{class:"error-text"},"计算机二级",-1),Nc=[vc,Ac],Cc=(0,o.createElementVNode)("div",{class:"error-icon wps"},null,-1),Dc=(0,o.createElementVNode)("div",{class:"error-text"},"WPS认证",-1),Sc=[Cc,Dc],Ic={class:"badge-items"},Ec=["onMouseenter","onClick"],bc={class:"badge-logo"};var xc=(0,o.defineComponent)({__name:"Badge",setup(e){const t=(0,s.useStore)(),n=(0,o.ref)(-1),c=(0,o.ref)(),a=(0,o.computed)((()=>t.state.account.badges)),i=(0,o.computed)((()=>t.state.mode)),r=(0,o.computed)((()=>t.state.getBadgeError));(0,o.onMounted)((async()=>{await t.dispatch("account/getBadge");const e=a.value.medalList.map(((e,t)=>`${Ne[e.isLight]}_${Ae[t]}`));rt.accountpanel_kos_show(a.value.pay?"paid":"nopaid",...e)}));const l=(e,t)=>{d("hide_action","clickon_kos"),rt.accountpanel_kos_click(a.value.pay?"paid":"nopaid",`${Ne[e.isLight]}_${Ae[t]}`);const n=e.jumpUrl||(e.isLight?`https://kos.wps.cn/kos-auth/intro?market=WPSPC_AccountBadge${e.order}`:`https://kos.wps.cn/certificate/self?market=WPSPC_AccountBadge${e.order}`);pt.openInnerUrl(n)},u=()=>{d("hide_action","clickon_kos"),rt.accountpanel_kos_click(a.value.pay?"paid":"nopaid","more");const e=a.value?.moreMedal?.jumpUrl||"https://kos.wps.cn/personal-center?tab=5&market=WPSPC_AccountBadgeMore";pt.openInnerUrl(e)},p=(e,t)=>{const n="dark"===i.value;return n?e.darkBackGroundImage:e.backGroundImage};function g(){V.openInnerUrl("https://kos.wps.cn/auth-center?exam_type=kos&frpo=WPSPC_AccountBadgeMore&market=WPSPC_AccountBadgeMore")}return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",wc,[(0,o.unref)(r)?((0,o.openBlock)(),(0,o.createElementBlock)("div",fc,[(0,o.createElementVNode)("div",{class:"badge-icon-list"},[(0,o.createElementVNode)("div",{class:"icon-list-item computed",onClick:g},Nc),(0,o.createElementVNode)("div",{class:"icon-list-item",onClick:g},Sc)]),(0,o.createElementVNode)("div",{class:"error-button",onClick:g},"技能认证")])):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createElementVNode)("ul",Ic,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(a).medalList,((e,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("li",{class:"badge-item",key:a+"_"+e.order,onMouseenter:e=>n.value=a,onMouseleave:t[0]||(t[0]=e=>n.value=-1),onClick:t=>l(e,a)},[(0,o.createElementVNode)("div",bc,[p(e,a)?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,draggable:"false",class:"badge-icon",style:(0,o.normalizeStyle)({"--imgUrl":`url(${p(e,a)})`})},null,4)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["badge-comment",e.isLight?"activate":""])},(0,o.toDisplayString)(e.showText),3)]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["badge-tips",n.value===a?"badge-tips-show":"badge-tips-hide"]),ref_for:!0,ref_key:"tips",ref:c},(0,o.toDisplayString)(e.iconHoverTips),3)],40,Ec)))),128))]),(0,o.createElementVNode)("div",{class:"more-badge",onClick:t[1]||(t[1]=e=>u())},(0,o.toDisplayString)((0,o.unref)(a)?.moreMedal?.showText),1)],64))]))}});const Tc=xc;var Lc=Tc,jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQoSURBVHgB7VbPa1RJEP76bbJZ3XWJsLgxC+u4Zte9RRFFQTBBbwpGwYMnB0E8eIgePJv4B2g8C4onQQwaPYggToIkBD04Hrx4cfx1UshEDQaZ7rK6X/WPNwZnxKM2vHkz3T31fVX1VXUDP8b3PtTXbC5VqLurE2VD2AuDDQR0kwaMQZUNVUlh5OlO9exrbLZNYN0MDXUAFxhsJRGIgRX4zb+ZAZR9k+EZg0tvP+JEfZ+qt2O3LQLrZ2mYjZ/lR5EFYmAwAY6EBYfhKPBM+q4uEAbbIZG12vB/hUoMOmbBIeCUg5P1mD0nEu/tmiMB9C9nwmhj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GIe9rdvyj/H9jE8BikxM7At0mwAAAABJRU5ErkJggg==";const zc={class:"title"},Bc=(0,o.createElementVNode)("img",{draggable:"false",src:jc,alt:"",class:"iconfont"},null,-1),Pc={class:"content"},Oc={class:"sync"},Uc={key:0},Vc=(0,o.createElementVNode)("i",{class:"icon icon-tick"},null,-1),Zc=["title"],Qc=(0,o.createElementVNode)("i",{class:"icon icon-close"},null,-1),Gc=(0,o.createElementVNode)("i",{class:"icon icon-refresh"},null,-1),Yc={class:"cross"},Wc=(0,o.createElementVNode)("i",{class:"icon icon-tick"},null,-1);function Jc(e,t,n,c,a,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{id:"cloudService",class:"feature-area-item",onClick:t[1]||(t[1]=(...t)=>e.openCloudServicesPage&&e.openCloudServicesPage(...t))},[(0,o.createElementVNode)("div",zc,[Bc,(0,o.createTextVNode)((0,o.toDisplayString)(e.$t("ca15a5f4f6")),1)]),(0,o.createElementVNode)("div",Pc,[(0,o.createElementVNode)("div",Oc,["on"===e.sync?((0,o.openBlock)(),(0,o.createElementBlock)("span",Uc,[(0,o.createTextVNode)((0,o.toDisplayString)(e.title)+(0,o.toDisplayString)(e.$t("a4aaebafa5")),1),Vc])):(0,o.createCommentVNode)("",!0),"off"===e.sync?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,class:"async-off",onClick:t[0]||(t[0]=(0,o.withModifiers)((t=>e.handleChangeSyncStatus(!0)),["stop"])),title:e.$t("dab2545bd5",[e.title])},["en-US"===e.lang?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.createTextVNode)((0,o.toDisplayString)(e.title)+" "+(0,o.toDisplayString)(e.$t("6b575fae5f")),1)],64)):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createTextVNode)((0,o.toDisplayString)(e.$t("6b575fae5f"))+(0,o.toDisplayString)(e.title),1)],64)),Qc],8,Zc)):(0,o.createCommentVNode)("",!0),"ing"===e.sync?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:2},[(0,o.createTextVNode)((0,o.toDisplayString)(e.$t("b1ab42b7ac")),1),Gc],64)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",Yc,[(0,o.createTextVNode)((0,o.toDisplayString)(e.$t("65d6b271f4")),1),Wc])])])}const Rc=(e,t)=>{let n="enough";const{threshold_a:o,threshold_c:c}=Object.keys(t).reduce(((e,n)=>{let o=t[n];const{unit:c,value:a}=S(o);let i;switch(c){case"KB":i=1024*a;break;case"MB":i=1024*a*1024;break;case"GB":i=1024*a*1024*1024;break;default:i=1024*a;break}return e[n]=i,e}),{}),a=e.totalSize-e.usedSize;return o<a?n="enough":c<=a&&a<=o?n="danger":a<c&&(n="full"),n};function Fc(){const e=(0,s.useStore)(),t=(0,o.computed)((()=>e.state.cloud.cloudSpaceConfig)),n=(0,o.computed)((()=>e.state.cloud.spaceInfo)),c=(0,o.computed)((()=>Rc(n.value,t.value))),a=(0,o.computed)((()=>N(n.value.usedSize,n.value.totalSize,!n.value.isValid)));return{info:n,type:c,sizeText:a}}function Hc(){const e=(0,o.ref)(""),t=(0,o.ref)("off");(0,o.onMounted)((async()=>{V.addEventListener("event.cloud.fileSyncStatusChanged",(e=>{t.value=e.autoSync?"on":"off"}));const{title:n}=await pt.getCloudFileSyncTitle(),{autoSync:o}=await pt.getCloudFileSyncStatus();t.value=o?"on":"off",e.value=n}));const n=e=>t.value=e;return{sync:t,title:e,setSync:n}}var Xc=n(5034);function $c(){const e=new RegExp("(?:[?&]lang=)\\w+-\\w+").exec(location.href);if(e?.length&&e[0]){const t=e[0].split?e[0].split("="):[];if(t[1])return t[1]}return navigator&&navigator.language?(0,Xc.s)(["en-US","zh-CN"],navigator.language):"zh-CN"}var Kc=(0,o.defineComponent)({name:"CloudService",setup(){const{sync:e,title:t,setSync:n}=Hc(),c=(0,s.useStore)(),a=(0,o.computed)((()=>c.state.mode)),i=(0,o.ref)($c()),r=(0,o.computed)((()=>"mac"===window.__ACCOUNT_PANEL__?.getAppInfo?.platform)),l=t=>{if("ing"===e.value)return!1;n("ing"),pt.setCloudFileSyncStatus(t),t&&rt.accountpanel_cloudserve_click(0,"turnon")},u=()=>{d("hide_action","clickon_cloudserve"),pt.hidePanel(),r.value?pt.openCommonPrivilegeWnd():pt.openCloudServicesPage(),rt.accountpanel_cloudserve_click("on"===e.value?1:0,"card")};return{handleChangeSyncStatus:l,openCloudServicesPage:u,sync:e,title:t,mode:a,lang:i}}});const qc=(0,Qt.Z)(Kc,[["render",Jc]]);var ea=qc,ta="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUVSURBVHgB7VbNclRFFP76/gBRCgbU/bCxxEIJD2AxrF2AC9fEJwAfgDJUuQc3LlW2LpS9IrBRS9AMlivLIqEEAoIwJCEzmdt9jt/pvnd+LCShXFnSlc7pe+fe/n7O6TMDPB//9+Ge5eH2grZmNjAniqPiMSsBLQ0A112bFTC//La78Sx7bpnA/qt6jA9/Ejz2EFQZnUVJBJx6INi1x7nBKt7vved6W9l3SwQOLOgJEZwxoAhIIG3WBJYq3otrcyRUdKPCka2QyDZ74LUFbavirApVCgGE4IHgFjljVN7XGJUu2PogNz6DLYxNCeSKi1FdAuSCRLQmQRcQYiowSoWMPptrfayH/xWBA1e0Q+B2VJjUIyoMtRs6ckAjkYZYSM8yI/PYZBRP+5B7dKApr1pvajfr9VQd1M+4xi1JLhzEJuOJRdj5/atOlrtjG3738RDyFl3HsL8Tg5WXMXi0mzZQXQ0qgWZUcOZMXYwai9VOBeeg37/kFF0X/OVwatf5pxIwYFdknypcW6NYhyhaXVwHzdBf3YvH19sI6yWvcyp1CdyzFKqJk2EEhkA1WIs5coakuiQi72B+T7fBHNVA587FEwS/SKA294DVV6wxgnsCV1JgKNuhM0OUr96AFAOV9aGTDU8wHdWF1Om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AABJRU5ErkJggg==";const na={class:"title"},oa={class:"title-left"},ca=(0,o.createElementVNode)("img",{draggable:"false",src:ta,alt:"",class:"iconfont"},null,-1),aa={class:"space-bar"},ia=["onClick"],ra={key:0,class:"title-right loading-icon"},sa={key:1,class:"title-right refresh-icon"},la={class:"content"},ua={class:"process"},da=["data-cloudspacetype"],pa={class:"size-dvi"},ga={class:"size"},ma=["onClick"];var _a=(0,o.defineComponent)({__name:"CloudSpace",setup(e){const t=(0,s.useStore)(),{info:n,type:c,sizeText:a}=Fc(),i=(0,o.computed)((()=>{if(!n.value.isValid)return a.value;const e={enough:a.value,danger:ie.t("288f178c48"),full:ie.t("1134f6247f")};return e[c.value]||e.enough})),r=(0,o.computed)((()=>t.state.cloud.refreshLoading)),l=()=>{d("hide_action","clickon_cloudspace"),pt.hidePanel(),pt.openInnerUrl(Wn),rt.accountpanel_cloudspace_click(Ge[c.value],"card")},u=async()=>{const e={enough:"dilatation_cloudspace_enough",danger:"dilatation_cloudspace_almostfull",full:"dilatation_cloudspace_full"},t="public_startpage_icon",o=e[c.value],a=Number(n.value.totalSize)+1,i=await V.getPrivilegePayInfo({position:o,needValue:a,priviId:"cloud_space"});console.log("common.util.getPrivilegePayInfo:",i);const{payConfig:r,csource:s}=i;pt.openPayment({component:t,csource:Oe()?Qe(s):s,position:o,payconfig:r}),rt.accountpanel_cloudspace_click(Ge[c.value],"expand"),pt.hidePanel()},p=()=>{t.dispatch("cloud/refreshCloudSpaceInfo")};return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{id:"cloudSpace",class:"feature-area-item",onClick:l},[(0,o.createElementVNode)("div",na,[(0,o.createElementVNode)("div",oa,[ca,(0,o.createElementVNode)("div",aa,(0,o.toDisplayString)(e.$t("ba044f6065")),1)]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["refresh-btn",{"is-loading":(0,o.unref)(r)}]),onClick:(0,o.withModifiers)(p,["stop"])},[(0,o.unref)(r)?((0,o.openBlock)(),(0,o.createElementBlock)("i",ra)):((0,o.openBlock)(),(0,o.createElementBlock)("i",sa))],10,ia)]),(0,o.createElementVNode)("div",la,[(0,o.createElementVNode)("div",ua,[(0,o.createElementVNode)("div",{class:"process-bar","data-cloudspacetype":(0,o.unref)(c)},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["process-inner-bar",(0,o.unref)(c)]),style:(0,o.normalizeStyle)({width:(0,o.unref)(n).totalSize&&(0,o.unref)(n).isValid?`${Math.max(2,(0,o.unref)(n).usedSize/(0,o.unref)(n).totalSize*100)}%`:"2%"})},null,6)],8,da)]),(0,o.createElementVNode)("div",pa,[(0,o.createElementVNode)("div",ga,(0,o.toDisplayString)((0,o.unref)(i)),1)])]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["upgrade-space-btn",(0,o.unref)(c)]),onClick:(0,o.withModifiers)(u,["stop"])},(0,o.toDisplayString)(e.$t("9bca828a19")),11,ma)]))}});const ha=_a;var ka=ha,ya=n(2674),Ma=n.n(ya),wa=(0,o.defineComponent)({name:"App",components:{UserInfo:Vo,VipCard:ic,VipCardV3:Mc,Badge:Lc,Foot:Yt,AccountList:lo,CloudService:ea,CloudSpace:ka},setup(){const e=(0,s.useStore)(),t=(0,o.computed)((()=>e.state.mode)),n=(0,o.ref)(p),c=(0,o.ref)(!0),a=(0,o.ref)(!1),i=(0,o.ref)(),r=(0,o.computed)((()=>e.getters["account/isExistAccountList"])),l=(0,o.ref)(!!Oe()&&!!window.__ACCOUNT_PANEL__?.enableCloudServe),g=(0,o.computed)((()=>je&&ze||Be&&Pe)),m=()=>{const{labelConfigError:t,aggregateDataError:n,getBadgeError:o,getCompanyPolicyError:c}=e.state;e.state.cloud.spaceInfo.isValid||(e.state.cloud.useNewCloudApi?y():pt.getCloudSpaceInfoLegacy()),c&&e.dispatch("company/getCreateCompanyEntranceConfig")},_=async()=>{let t=Ma()();d("skeleton_loadtime",t.valueOf()),e.dispatch("initData").finally((async()=>{e.state.isFirstLoad=!1,console.group("性能数据统计:"),console.log("hover时间点",window.__ACCOUNT_PANEL_HOVER_ST__),console.log("LCP时间点",Ma()().format("YYYY-MM-DD HH:mm:ss.SSS")),console.log("耗时-LCP",`${Ma()().diff(Ma()(window.__ACCOUNT_PANEL_HTML_FINISH_ST__),"millisecond")}ms`),console.log(`耗时-鼠标hover面板至LCP(含客户端CEF容器时间) -> ${Ma()().diff(Ma()(window.__ACCOUNT_PANEL_HOVER_ST__),"millisecond")}ms`),console.groupEnd()}))},h=()=>{(0,uo.G2)({message:"暂不支持",type:"warning"})},k=e=>{(je&&ze||Be&&Pe)&&(e.stopPropaga |
|