Files
2025-06-27 17:42:38 +08:00

1 line
27 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["about"],{1503:function(e,t,o){"use strict";o("8333")},"155f":function(e,t,o){e.exports=o.p+"img/logo.2af34e0a.svg"},"16f1":function(e,t,o){"use strict";o("2413")},"1a6f":function(e,t,o){},2413:function(e,t,o){},"3e8e":function(e,t,o){"use strict";o("1a6f")},"5dc3":function(e){e.exports=JSON.parse('{"adv":{"label":"首购低至1折, 复购7.5折起! 立即选购","url":"https://cloud.tencent.com/act/pro/imnew?from=16262"},"demo":{"label":"体验更多Demo","url":"https://cloud.tencent.com/document/product/269/36852"},"im":{"label":"访问官网","url":"https://cloud.tencent.com/product/im"},"privacy":{"label":"隐私条例","url":"https://web.sdk.qcloud.com/document/Tencent-IM-Privacy-Protection-Guidelines.html"},"agreement":{"label":"用户协议","url":"https://web.sdk.qcloud.com/document/Tencent-IM-User-Agreement.html"},"product":{"label":"产品文档","url":"https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD"},"customMessage":{"label":"自定义消息","url":"https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#createCustomMessage"},"contact":{"label":"联系我们","url":"https://cloud.tencent.com/document/product/269/20043"},"intl":{"label":"国际站","url":"https://web.sdk.qcloud.com/im/demo/en/index.html#/home"},"stepList":[{"label":"创建项目","url":"https://cloud.tencent.com/document/product/269/68493#.E6.AD.A5.E9.AA.A41.EF.BC.9A.E5.88.9B.E5.BB.BA.E9.A1.B9.E7.9B.AE"},{"label":"下载TUIKit组件","url":"https://cloud.tencent.com/document/product/269/68493#.E6.AD.A5.E9.AA.A42.EF.BC.9A.E4.B8.8B.E8.BD.BD-tuikit-.E7.BB.84.E4.BB.B6"},{"label":"引入TUIKit组件","url":"https://cloud.tencent.com/document/product/269/68493#.E6.AD.A5.E9.AA.A43.EF.BC.9A.E5.BC.95.E5.85.A5-tuikit-.E7.BB.84.E4.BB.B6"},{"label":"获取SDKAppID","url":"https://cloud.tencent.com/document/product/269/68493#.E6.AD.A5.E9.AA.A44.EF.BC.9A-.E8.8E.B7.E5.8F.96-sdkappid-.E3.80.81.E5.AF.86.E9.92.A5.E4.B8.8E-userid"},{"label":"调用TUIKit组件","url":"https://cloud.tencent.com/document/product/269/68493#.E6.AD.A5.E9.AA.A45.EF.BC.9A.E8.B0.83.E7.94.A8-tuikit-.E7.BB.84.E4.BB.B6"},{"label":"启动项目","url":"https://cloud.tencent.com/document/product/269/68493#.E6.AD.A5.E9.AA.A46.EF.BC.9A.E5.90.AF.E5.8A.A8.E9.A1.B9.E7.9B.AE"},{"label":"发送您的第一条消息","url":"https://cloud.tencent.com/document/product/269/68493#.E6.AD.A5.E9.AA.A47.EF.BC.9A.E5.8F.91.E9.80.81.E6.82.A8.E7.9A.84.E7.AC.AC.E4.B8.80.E6.9D.A1.E6.B6.88.E6.81.AF"}],"advList":[{"label":"IM首购9percent折","subLabel":"复购75%起","btnText":"立即选购","url":"https://cloud.tencent.com/act/pro/imnew?from=16262"}]}')},8333:function(e,t,o){},ad85:function(e,t,o){"use strict";o("c737")},bb51:function(e,t,o){"use strict";o.r(t);var n=o("7a23"),c=o("155f"),l=o.n(c);const a=e=>(Object(n["pushScopeId"])("data-v-46f87098"),e=e(),Object(n["popScopeId"])(),e),s=["id"],i={class:"home-main-box",style:{padding:"0"}},r={class:"home-TUIKit",style:{"box-shadow":"none","border-radius":"0",border:"1px solid #f9f9f9"}},d={class:"home-TUIKit-main"},m={key:0,class:"conversation"},b={class:"chat"},u={key:0,class:"chat-default"},p={class:"home-TUIKit-main"},O={class:"chat-default"},h=a(()=>Object(n["createElementVNode"])("img",{class:"logo",src:l.a,alt:""},null,-1)),j={class:"show-about-box"},E={key:0,class:"title"},f=a(()=>Object(n["createElementVNode"])("img",{src:l.a,alt:""},null,-1)),v={class:"sub"},g={class:"list"},w={class:"line"},N={class:"line"},C=a(()=>Object(n["createElementVNode"])("li",{class:"line"},[Object(n["createElementVNode"])("p",{class:"show-about-date"},"Copyright @ 2015-2022 Tecent. All Rights Reserved.")],-1)),k={key:3,class:"dialog"},S={class:"cancellation-box"},y={key:0,class:"title"},V=a(()=>Object(n["createElementVNode"])("i",{class:"icon icon-warn"},null,-1)),I={class:"cancelID"},M={class:"disclaimer-box"},D={key:0,class:"title"},B={class:"btn btn-default"},A={key:5,class:"home-h5-main",style:{width:"100%"}},x={class:"message"},T={class:"home-h5-content"},R={style:{display:"none"},class:"home-h5-main-header"},H={class:"home-h5-main-content"},L={class:"home-h5-content"},$={class:"home-h5-content home-h5-profile"},U={class:"home-h5-profile-list"},P={class:"home-h5-profile-list-item"},F={class:"home-h5-profile-list-item-receipt"},K={class:"home-h5-profile-list-item-receipt-cont"},z=["checked","value"],_={class:"home-h5-profile-list-item"},J={class:"home-h5-profile-list-item-receipt"},q={class:"home-h5-profile-list-item-online-status-cont"},G=["checked","value"],W=a(()=>Object(n["createElementVNode"])("i",{class:"icon icon-right"},null,-1)),Y={class:"home-h5-profile-footer"},X={style:{display:"none"},class:"nav"},Z={class:"nav-list"},Q=["onClick"],ee=a(()=>Object(n["createElementVNode"])("span",{style:{position:"absolute",left:"20px",top:"20px","z-index":"999",color:"#ffffff"}}," 应急就医对话中 ",-1));function te(e,t,o,c,l,a){const te=Object(n["resolveComponent"])("TUIConversation"),oe=Object(n["resolveComponent"])("TUIChat"),ne=Object(n["resolveComponent"])("TUIContact"),ce=Object(n["resolveComponent"])("TUISearch"),le=Object(n["resolveComponent"])("TUIProfile"),ae=Object(n["resolveComponent"])("TUICallKit"),se=Object(n["resolveComponent"])("Drag"),ie=Object(n["resolveComponent"])("TUICallKitMini");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(["home"+(e.env.isH5?"-h5":"")]),id:e.env.isH5?"":"preloadedImages"},[e.menuStatus?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:0,class:Object(n["normalizeClass"])(["menu"+(e.env.isH5?"-h5":"")]),onClick:t[0]||(t[0]=Object(n["withModifiers"])((...t)=>e.toggleMenu&&e.toggleMenu(...t),["self"]))},null,2)):Object(n["createCommentVNode"])("",!0),e.env.isH5?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("main",{key:1,class:Object(n["normalizeClass"])(["home-main",[e.menuStatus&&"home-main-open"]]),style:{"padding-left":"0",background:"#f2f2f2"}},[Object(n["createElementVNode"])("div",i,[Object(n["createElementVNode"])("div",r,[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",d,["0"!=e.hrefParams.getMessageList?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",m,[Object(n["createVNode"])(te,{onCurrent:e.handleCurrentConversation,onCheckedExpert:e.checkedExpert,onChangeReply:e.changeReply,displayOnlineStatus:e.displayOnlineStatus},null,8,["onCurrent","onCheckedExpert","onChangeReply","displayOnlineStatus"])])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("div",b,[Object(n["createVNode"])(oe,{isMsgNeedReadReceipt:e.isMsgNeedReadReceipt,isNeedTyping:!0,checkedExpert:e.checkedExpertStatus,isNeedEmojiReact:!0,onForHelp:e.forHelp},{default:Object(n["withCtx"])(()=>["0"!=e.hrefParams.getMessageList?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u)):Object(n["createCommentVNode"])("",!0)]),_:1},8,["isMsgNeedReadReceipt","checkedExpert","onForHelp"])])],512),[[n["vShow"],"message"===e.currentModel]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",p,[Object(n["withDirectives"])(Object(n["createVNode"])(ne,{displayOnlineStatus:e.displayOnlineStatus},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",O,[Object(n["createElementVNode"])("h1",null,[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("Home.欢迎使用"))+" ",1),h,Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.$t("即时通信")),1)]),Object(n["createElementVNode"])("p",null,[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.showText?e.$t("Home.我们为您默认提供了一位“示例好友”和一个“示例客服群”您不用额外添加好友和群聊就可完整体验腾讯云 IM 单聊、群聊的所有功能。"):"")+" ",1),Object(n["withDirectives"])(Object(n["createElementVNode"])("br",null,null,512),[[n["vShow"],e.showText]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.$t("Home.随时随地")),1)])])]),_:1},8,["displayOnlineStatus"]),[[n["vShow"],"group"===e.currentModel]])],512),[[n["vShow"],"group"===e.currentModel]])])])],2)),e.showAbout?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:2,class:"dialog",onClick:t[7]||(t[7]=Object(n["withModifiers"])((...t)=>e.closeShowAbout&&e.closeShowAbout(...t),["self"]))},[Object(n["createElementVNode"])("div",j,[e.env.isH5?(Object(n["openBlock"])(),Object(n["createElementBlock"])("header",E,[Object(n["createElementVNode"])("i",{class:"icon icon-back",onClick:t[1]||(t[1]=Object(n["withModifiers"])((...t)=>e.closeShowAbout&&e.closeShowAbout(...t),["self"]))}),Object(n["createElementVNode"])("h1",null,Object(n["toDisplayString"])(e.$t("Home.关于腾讯云·通信")),1)])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("main",null,[Object(n["createElementVNode"])("header",null,[f,Object(n["createElementVNode"])("h1",null,Object(n["toDisplayString"])(e.$t("即时通信")),1)]),Object(n["createElementVNode"])("span",v,Object(n["toDisplayString"])(e.$t("Home.SDK版本"))+":"+Object(n["toDisplayString"])(e.version),1)]),Object(n["createElementVNode"])("footer",null,[Object(n["createElementVNode"])("ul",g,[Object(n["createElementVNode"])("li",w,[Object(n["createElementVNode"])("a",{onClick:t[2]||(t[2]=t=>e.openLink(e.Link.privacy))},"《"+Object(n["toDisplayString"])(e.$t("Login."+e.Link.privacy.label))+"》",1),Object(n["createElementVNode"])("a",{onClick:t[3]||(t[3]=t=>e.openLink(e.Link.agreement))},"《"+Object(n["toDisplayString"])(e.$t("Login."+e.Link.agreement.label))+"》",1),Object(n["createElementVNode"])("a",{onClick:t[4]||(t[4]=(...t)=>e.openDisclaimer&&e.openDisclaimer(...t))},Object(n["toDisplayString"])(e.$t("Home.免责声明")),1)]),Object(n["createElementVNode"])("li",N,[Object(n["createElementVNode"])("a",{onClick:t[5]||(t[5]=t=>e.openLink(e.Link.contact))},"《"+Object(n["toDisplayString"])(e.$t("Home."+e.Link.contact.label))+"》",1),Object(n["createElementVNode"])("a",{onClick:t[6]||(t[6]=(...t)=>e.openShowCancellation&&e.openShowCancellation(...t))},Object(n["toDisplayString"])(e.$t("Home.注销账户")),1)]),C])])])])):Object(n["createCommentVNode"])("",!0),e.showCancellation?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",k,[Object(n["createElementVNode"])("div",S,[e.env.isH5?(Object(n["openBlock"])(),Object(n["createElementBlock"])("header",y,[Object(n["createElementVNode"])("i",{class:"icon icon-back",onClick:t[8]||(t[8]=Object(n["withModifiers"])((...t)=>e.cancel&&e.cancel(...t),["self"]))}),Object(n["createElementVNode"])("h1",null,Object(n["toDisplayString"])(e.$t("Home.关于腾讯云·通信")),1)])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("main",null,[V,Object(n["createElementVNode"])("span",null,[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("Home.注销后,您将无法使用当前账号,相关数据也将删除无法找回。 当前账号"))+"",1),Object(n["createElementVNode"])("text",I,Object(n["toDisplayString"])(e.userInfo.userID),1)])]),Object(n["createElementVNode"])("footer",null,[Object(n["createElementVNode"])("button",{class:"btn btn-submit",onClick:t[9]||(t[9]=t=>e.submitCancellation(e.userInfo))},Object(n["toDisplayString"])(e.$t("Home.注销")),1),Object(n["createElementVNode"])("button",{class:"btn btn-default",onClick:t[10]||(t[10]=(...t)=>e.cancel&&e.cancel(...t))},Object(n["toDisplayString"])(e.$t("Home.取消")),1)])])])):Object(n["createCommentVNode"])("",!0),e.showDisclaimer?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:4,class:"dialog",onClick:t[13]||(t[13]=Object(n["withModifiers"])(t=>e.showDisclaimer=!1,["self"]))},[Object(n["createElementVNode"])("div",M,[e.env.isH5?(Object(n["openBlock"])(),Object(n["createElementBlock"])("header",D,[Object(n["createElementVNode"])("i",{class:"icon icon-back",onClick:t[11]||(t[11]=Object(n["withModifiers"])(t=>e.showDisclaimer=!1,["self"]))}),Object(n["createElementVNode"])("h1",null,Object(n["toDisplayString"])(e.$t("Home.关于腾讯云·通信")),1)])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("main",null,[Object(n["createElementVNode"])("header",null,Object(n["toDisplayString"])(e.$t("Home."+e.disclaimer.label)),1),Object(n["createElementVNode"])("article",null,Object(n["toDisplayString"])(e.$t("Home."+e.disclaimer.text)),1)]),Object(n["createElementVNode"])("footer",{onClick:t[12]||(t[12]=(...t)=>e.submitDisclaimer&&e.submitDisclaimer(...t))},[Object(n["createElementVNode"])("button",B,Object(n["toDisplayString"])(e.$t("Home.同意")),1)])])])):Object(n["createCommentVNode"])("",!0),e.env.isH5?(Object(n["openBlock"])(),Object(n["createElementBlock"])("main",A,[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",x,[Object(n["withDirectives"])(Object(n["createElementVNode"])("main",T,[Object(n["createElementVNode"])("header",R,[Object(n["createVNode"])(ce),Object(n["createElementVNode"])("span",{class:"btn btn-text",onClick:t[14]||(t[14]=(...t)=>e.toggleMenu&&e.toggleMenu(...t))},Object(n["toDisplayString"])(e.$t("使用指引")),1)]),Object(n["createElementVNode"])("div",H,[Object(n["createVNode"])(te,{onCurrent:e.handleCurrentConversation,displayOnlineStatus:e.displayOnlineStatus},null,8,["onCurrent","displayOnlineStatus"])])],512),[[n["vShow"],"message"===e.currentModel]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("main",L,[Object(n["createVNode"])(ne,{displayOnlineStatus:e.displayOnlineStatus},null,8,["displayOnlineStatus"])],512),[[n["vShow"],"group"===e.currentModel]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("main",$,[Object(n["createVNode"])(le),Object(n["createElementVNode"])("ul",U,[Object(n["createElementVNode"])("li",P,[Object(n["createElementVNode"])("div",F,[Object(n["createElementVNode"])("label",null,Object(n["toDisplayString"])(e.$t("Home.消息阅读状态")),1),Object(n["createElementVNode"])("div",K,[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.isMsgNeedReadReceipt?e.$t("Home.关闭阅读状态"):e.$t("Home.开启阅读状态")),1)])]),Object(n["createElementVNode"])("div",null,[Object(n["createElementVNode"])("input",{type:"checkbox",class:"switch",checked:e.isMsgNeedReadReceipt,value:e.isMsgNeedReadReceipt,onClick:t[15]||(t[15]=t=>e.setReadReceipt(!e.isMsgNeedReadReceipt))},null,8,z)])]),Object(n["createElementVNode"])("li",_,[Object(n["createElementVNode"])("div",J,[Object(n["createElementVNode"])("label",null,Object(n["toDisplayString"])(e.$t("Home.显示在线状态")),1),Object(n["createElementVNode"])("div",q,[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.displayOnlineStatus?e.$t("Home.关闭在线状态"):e.$t("Home.开启在线状态")),1)])]),Object(n["createElementVNode"])("div",null,[Object(n["createElementVNode"])("input",{type:"checkbox",class:"switch",checked:e.displayOnlineStatus,value:e.displayOnlineStatus,onClick:t[16]||(t[16]=t=>e.setDisplayOnlineStatus(!e.displayOnlineStatus))},null,8,G)])]),Object(n["createElementVNode"])("li",{class:"home-h5-profile-list-item",onClick:t[17]||(t[17]=(...t)=>e.openShowAbout&&e.openShowAbout(...t))},[Object(n["createElementVNode"])("label",null,Object(n["toDisplayString"])(e.$t("Home.关于腾讯云·通信")),1),W])]),Object(n["createElementVNode"])("footer",Y,[Object(n["createElementVNode"])("button",{class:"btn",onClick:t[18]||(t[18]=Object(n["withModifiers"])((...t)=>e.exitLogin&&e.exitLogin(...t),["prevent"]))},Object(n["toDisplayString"])(e.$t("Home.退出登录")),1)])],512),[[n["vShow"],"profile"===e.currentModel]]),Object(n["createElementVNode"])("footer",X,[Object(n["createElementVNode"])("ul",Z,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.navList,(t,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{class:"nav-list-item",key:o,onClick:o=>e.selectModel(t.name)},[Object(n["createElementVNode"])("i",{class:Object(n["normalizeClass"])(["icon",["icon-"+(e.currentModel===t.name?t.icon+"-selected":t.icon+"-real")]])},null,2),Object(n["createElementVNode"])("label",{class:Object(n["normalizeClass"])([e.currentModel===t.name&&"selected"])},Object(n["toDisplayString"])(e.$t("Home."+t.label)),3)],8,Q))),128))])])],512),[[n["vShow"],!e.currentConversationID]]),Object(n["withDirectives"])(Object(n["createVNode"])(oe,{isMsgNeedReadReceipt:e.isMsgNeedReadReceipt,isNeedTyping:!0,isNeedEmojiReact:!0},null,8,["isMsgNeedReadReceipt"]),[[n["vShow"],e.currentConversationID]])])):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(se,{show:e.showCall,class:Object(n["normalizeClass"])(["callkit-drag-container",[e.env.isH5&&"callkit-drag-container-H5",e.menuStatus&&"callkit-drag-container-left"]]),domClassName:"callkit-drag-container",style:{"z-index":"900"}},{default:Object(n["withCtx"])(()=>[ee,Object(n["createVNode"])(ae,{allowedMinimized:!0,allowedFullScreen:!1,beforeCalling:e.beforeCalling,afterCalling:e.afterCalling,onMinimized:e.onMinimized,onMessageSentByMe:e.onMessageSentByMe},null,8,["beforeCalling","afterCalling","onMinimized","onMessageSentByMe"])]),_:1},8,["show","class"]),Object(n["createVNode"])(se,{show:e.showCallMini,class:"callkit-drag-container-mini",domClassName:"callkit-drag-container-mini"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(ie,{style:{position:"static"}})]),_:1},8,["show"])],10,s)}o("14d9");var oe=o("65b8"),ne=o.n(oe),ce=o("4573"),le=o.n(ce),ae=o("5b1a"),se=o.n(ae),ie=o("c7e2"),re=o("fcd0");const de={class:"header"},me={class:"left"},be={class:"content"},ue={class:"right"};function pe(e,t,o,c,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("header",de,[Object(n["createElementVNode"])("aside",me,[Object(n["renderSlot"])(e.$slots,"left",{},void 0,!0)]),Object(n["createElementVNode"])("main",be,[Object(n["renderSlot"])(e.$slots,"content",{},void 0,!0)]),Object(n["createElementVNode"])("aside",ue,[Object(n["renderSlot"])(e.$slots,"right",{},void 0,!0)])])}var Oe=Object(n["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const o=Object(n["reactive"])({data:{}});Object(n["watchEffect"])(()=>{o.data=e.data});const c=e=>{t.emit("handleItem",e)};return{...Object(n["toRefs"])(o),handleListItem:c}}}),he=(o("3e8e"),o("6b0d")),je=o.n(he);const Ee=je()(Oe,[["render",pe],["__scopeId","data-v-354832da"]]);var fe=Ee;const ve={class:"menu"};function ge(e,t,o,c,l,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",ve,[Object(n["renderSlot"])(e.$slots,"header",{},void 0,!0),Object(n["renderSlot"])(e.$slots,"main",{},void 0,!0),Object(n["renderSlot"])(e.$slots,"footer",{},void 0,!0)])}var we=Object(n["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const o=Object(n["reactive"])({data:{}});return Object(n["watchEffect"])(()=>{o.data=e.data}),{...Object(n["toRefs"])(o)}}});o("ad85");const Ne=je()(we,[["render",ge],["__scopeId","data-v-1bf3ad31"]]);var Ce=Ne,ke=o("5502"),Se=o("afbc");o("d9e2");class ye{constructor(e){this.options={},this.aegis=e||new window.Aegis({id:"iHWefAYqDTiNaZDjts",uin:"",reportApiSpeed:!0,reportAssetSpeed:!0,spa:!0})}static reportEvent(e){throw new Error("Method not implemented.")}install(e){e.config.globalProperties.$TUIAegis=ye.getInstance()}static getInstance(){return ye.instance||(ye.instance=new ye),ye.instance}setAegisOptions(e){this.options=e}reportEvent(e){var t;if(null!==(t=window)&&void 0!==t&&null!==(t=t.TUIKitTUICore)&&void 0!==t&&t.isOfficial)return this.aegis.reportEvent({...e,...this.options})}}var Ve=ye,Ie=o("bc3a"),Me=o.n(Ie),De=o("4328"),Be=o.n(De);const Ae="https://demos.trtc.tencent-cloud.com",xe="prod",Te=Me.a.create({baseURL:`${Ae}/${xe}`,headers:{"content-type":"application/x-www-form-urlencoded"}});async function Re(e){const t=He(e,"/base/v1/auth_users/user_delete");return Te(t)}function He(e,t,o){const n={method:o||"POST",url:t};return"GET"===n.method?n.params=e:n.data=Be.a.stringify(e),n}const Le={zh_cn:"腾讯云即时通信 Web-IM",en:"Instant Messaging Web-IM"};function $e(e){return document.title=Le[e]}const Ue=o("5dc3");var Pe=Ue,Fe=o("4176");const Ke={class:"drag-container"};function ze(e,t,o,c,l,a){return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",Ke,[Object(n["renderSlot"])(e.$slots,"default",{},void 0,!0)],512)),[[n["vShow"],e.show]])}var _e=Object(n["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},domClassName:{type:String,default:""}},setup(e,t){const o=Object(n["reactive"])({show:!1,domClassName:"",startPosition:{left:"",top:"",cssText:""}});function c(e,o){let n=0;return function(...c){const l=+new Date;l-n>o&&(n=l,e.apply(t,c))}}return Object(n["watchEffect"])(()=>{o.show=e.show,o.domClassName=e.domClassName}),Object(n["onMounted"])(()=>{const t=document.getElementsByClassName(e.domClassName?e.domClassName:"drag-container")[0];if(!t)return;let l=!1;Object(n["watch"])(()=>o.show,(e,n)=>{var c,l,a;(o.show=e,e!==n)&&(!0===o.show&&(t.style.left=null===(c=o.startPosition)||void 0===c?void 0:c.left,t.style.top=null===(l=o.startPosition)||void 0===l?void 0:l.top,t.style.cssText=null===(a=o.startPosition)||void 0===a?void 0:a.cssText))});const a=e=>{l=!0;const o=e.clientX-t.offsetLeft,n=e.clientY-t.offsetTop,a=e=>{e.preventDefault(),l&&(t.style.left=e.clientX-o+"px",t.style.top=e.clientY-n+"px")};document.addEventListener("mousemove",c(a,20),!1),document.addEventListener("mouseup",()=>{l=!1,document.removeEventListener("mousemove",a)})};t.addEventListener("mousedown",a)}),{...Object(n["toRefs"])(o),throttle:c}}});o("16f1");const Je=je()(_e,[["render",ze],["__scopeId","data-v-6c3fc1d7"]]);var qe=Je,Ge=qe,We=o("c193"),Ye=o("fdc9"),Xe=Object(n["defineComponent"])({components:{Header:fe,Menu:Ce,Drag:Ge},setup(e,t){const o=Object(n["getCurrentInstance"])(),c=Object(ie["b"])(),l=null===o||void 0===o?void 0:o.appContext.config.globalProperties.$TUIKit,a=ke["c"]&&Object(ke["c"])(),s=Object(n["computed"])(()=>a.state.taskList),i=re["b"].instance.TIM.VERSION,r=Object(n["computed"])(()=>JSON.parse(a.state.isMsgNeedReadReceipt)),d=Object(n["computed"])(()=>JSON.parse(a.state.displayOnlineStatus)),m=Object(n["computed"])(()=>JSON.parse(a.state.allowNotification)),b=Object(n["reactive"])({hrefParams:{},checkedExpertStatus:!1,tfReply:0,stepList:Pe.stepList,advList:Pe.advList,disclaimer:{label:"IM-免责声明",text:"IM(“本产品”)是由腾讯云提供的一款测试产品,腾讯云享有本产品的著作权和所有权。本产品仅用于功能体验,不得用于任何商业用途。依据相关部门监管要求,严禁在使用中有任何色情、辱骂、暴恐、涉政等违法内容传播。"},ruleForm:{prePhone:"86",phone:"",code:"",checked:!1,userInfo:{userId:"",userSig:"",expire:""}},menuStatus:!0,showProfile:!1,showAbout:!1,showMore:!1,showCancellation:!1,showDisclaimer:!1,currentModel:"message",userInfo:re["b"].instance.getStore().TUIProfile.profile,env:l.TUIEnv,navList:[{icon:"message",name:"message",label:"消息"},{icon:"relation",name:"group",label:"通讯录"},{icon:"profile",name:"profile",label:"个人中心"}],currentConversationID:"",isSupportGroupReceipt:!0,showText:re["b"].instance.isOfficial,showCall:!1,showCallMini:!1,showSelectMore:"",moreList:[{key:"profile",name:"编辑资料",moreSelect:!1},{key:"readReceipt",name:"消息阅读状态",moreSelect:!0,status:r},{key:"onlineStatus",name:"显示在线状态",moreSelect:!0,status:d},{key:"notification",name:"消息通知",moreSelect:!0,status:m},{key:"about",name:"关于腾讯云IM",moreSelect:!1},{key:"exit",name:"退出登录",moreSelect:!1}]}),u=e=>{b.checkedExpertStatus=e},p=e=>{b.tfReply=e},O=()=>{var e,t,o;const n=window.location.href.substring(ne()(e=window.location.href).call(e,"?")+1,ne()(t=window.location.href).call(t,"#/")),c={};return le()(o=n.split("&")).call(o,e=>{const t=e.substring(0,ne()(e).call(e,"=")),o=e.substring(ne()(e).call(e,"=")+1);c[t]=o}),c};b.hrefParams=O();const h=(e,t)=>{switch(b.showSelectMore=null===e||void 0===e?void 0:e.key,b.showSelectMore){case"profile":N();break;case"readReceipt":void 0!==t&&x(t);break;case"onlineStatus":void 0!==t&&T(t);break;case"notification":void 0!==t&&R(t);break;case"about":C();break;case"exit":w();break;default:break}b.showSelectMore="",b.showMore=!1};re["b"].instance.TUIServer.TUIProfile.getMyProfile().then(e=>{b.userInfo=e.data});const j=e=>{c.value!==e&&(c.value=e,Ve.getInstance().reportEvent({name:"language",ext1:c.value}),a.commit("handleTask",2),$e(c.value))},E=()=>{b.menuStatus=!b.menuStatus},f=e=>{b.currentModel=e},v=()=>{b.showMore=!1,b.showProfile=!1,re["b"].instance.TUIServer.TUIProfile.setEdit(!1)},g=()=>{b.showMore=!b.showMore,b.showMore&&Ve.getInstance().reportEvent({name:"showMore",ext1:"showMore"})},w=async()=>{Se["a"].push({name:"Login"}),localStorage.removeItem("TUIKit-userInfo"),b.ruleForm.userInfo.userId="",b.ruleForm.userInfo.userSig="",b.ruleForm.userInfo.expire="",Ve.getInstance().reportEvent({name:"logout",ext1:"logout-success"})},N=()=>{re["b"].instance.TUIServer.TUIProfile.setEdit(!0),b.showProfile=!0,Ve.getInstance().reportEvent({name:"showProfile",ext1:"showProfile"})},C=()=>{b.showAbout=!0},k=()=>{b.showCancellation=!0},S=()=>{b.showCancellation=!1,b.showMore=!1},y=()=>{b.showAbout=!1},V=()=>{b.showDisclaimer=!0},I=()=>{b.showDisclaimer=!1,b.showMore=!1},M=()=>{const e=localStorage.getItem("TUIKit-userInfo"),t=JSON.parse(e),o={userId:t.userId,token:t.token,phone:t.phone};l.logout().then(e=>{Ve.getInstance().reportEvent({name:"cancellationCount",ext1:"cancellationCount-success"}),localStorage.removeItem("TUIKit-userInfo"),Re(o),Se["a"].push({name:"Login"})})},D=e=>{window.open(e.url),Ve.getInstance().reportEvent({name:"openLink",ext1:e.label})},B=e=>{window.open(e.url),Ve.getInstance().reportEvent({name:"openLink",ext1:e.label})},A=e=>{b.currentModel="message",b.currentConversationID=e};Object(n["onMounted"])(()=>{var e;null!==(e=O())&&void 0!==e&&e.getMessageList&&(b.currentConversationID=O()["sessionId"])}),Ye["a"].on("forHelp",e=>{let t=b.currentConversationID;t=b.currentConversationID.replace("C2C",""),t=b.currentConversationID.replace("GROUP",""),window.parent.postMessage(se()({code:"forHelp",userId:t,isDisabled:e}),"*")}),Ye["a"].on("forHelpDetail",e=>{let t=e;window.parent.postMessage(se()({code:"forHelpDetail",userId:t}),"*")}),Ye["a"].on("bigInformation",()=>{let e=b.currentConversationID;e=b.currentConversationID.replace("C2C",""),e=b.currentConversationID.replace("GROUP",""),window.parent.postMessage(se()({code:"bigInformation",userId:e}),"*")});const x=e=>{a.commit("setNeedReadReceipt",e)},T=e=>{a.commit("setDisplayOnlineStatus",e)},R=e=>{a.commit("setNotification",e),We["c"].getInstance().setNotificationConfiguration({allowNotifications:e})},H=(e,t)=>{if(t)return Object(Fe["b"])(t,e),void(b.showCall=!1);b.showCall=!0},L=()=>{b.showCall=!1,b.showCallMini=!1},$=(e,t)=>{b.showCall=!t,b.showCallMini=t},U=async e=>{var t,o;const n=null===(t=window)||void 0===t||null===(t=t.TUIKitTUICore)||void 0===t?void 0:t.TUIServer;null===n||void 0===n||null===(o=n.TUIChat)||void 0===o||o.handleMessageSentByMeToView(e)};return{checkedExpert:u,...Object(n["toRefs"])(b),taskList:s,change:j,toggleMenu:E,version:i,selectModel:f,handleChangeStatus:v,openShowMore:g,exitLogin:w,openShowCancellation:k,cancel:S,closeShowAbout:y,openShowAbout:C,submitCancellation:M,openDisclaimer:V,submitDisclaimer:I,Link:Pe,openShowProfile:N,openLink:B,openDataLink:D,handleCurrentConversation:A,setReadReceipt:x,isMsgNeedReadReceipt:r,displayOnlineStatus:d,setDisplayOnlineStatus:T,beforeCalling:H,afterCalling:L,onMinimized:$,onMessageSentByMe:U,handleSelectClick:h,allowNotification:m,setNotification:R,changeReply:p}}});o("1503");const Ze=je()(Xe,[["render",te],["__scopeId","data-v-46f87098"]]);t["default"]=Ze},c737:function(e,t,o){}}]);