1"use strict";(self["webpackChunkMaxOnline"]=self["webpackChunkMaxOnline"]||[]).push([[45],{44045:(i,o,u)=>{u.r(o),u.d(o,{default:()=>N});var render=function(){var i=this,o=i.$createElement,u=i._self._c||o;return u("Dialog",{ref:"dialogDom",staticClass:"usertag-modal-container",style:{width:i.winWidth+"px",height:i.winHeight+"px"},attrs:{isShow:!0,mask:!0,hiddenTitle:!0},on:{close:i.closeDialog}},[u("iframe",{ref:"userTagModal",style:{width:i.winWidth+"px",height:i.winHeight+"px"},attrs:{src:i.url,frameborder:"0"}})])},g=[],k=u(25026),T=u(69492),M=u(29990),U=u(19129),defineProperty=u(23772),D=(u(28706),u(60739),u(33110),u(31635)),S=u(18657),I=u(87044),W=function(i){function UserTagModal(){var i;(0,k.A)(this,UserTagModal);for(var o=arguments.length,args=new Array(o),u=0;u<o;u++)args[u]=arguments[u];return i=(0,M.A)(this,UserTagModal,[].concat(args)),(0,defineProperty.A)(i,"winWidth",0),(0,defineProperty.A)(i,"winHeight",0),i}return(0,U.A)(UserTagModal,i),(0,T.A)(UserTagModal,[{key:"url",get:function(){var url="",host="https://www.edrawmax.cn/public/usertag/",i="https://www.edrawmax.com/public/usertag/",o="https://wmp.edrawsoft.cn/cn/usertag/",u="https://wmp.edrawsoft.cn/en/usertag/";return url=this.isTestEnv?this.internal?o:u:this.internal?host:i,url+"?platform=web&lang=".concat(this.lang)}},{key:"closeDialog",value:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$bus.$emit("closeUserTag",i),this.$store.commit("setDialogState",{type:"showDialog",data:!1}),this.$store.commit("setState",{type:"showUsertag",data:!1})}},{key:"userInfo",get:function(){return this.$store.getters.apiParam}},{key:"userTagMessageHandle",value:function(e){var i=this,key=e.data.key?e.data.key.split("_"):[],o=e.data.params,prefix=key[0]||"";if("userTag"==prefix){var u=key[1];"webUserInfo"==u?this.postMessageToFrame({key:"userInfo",params:JSON.stringify({user_id:this.userInfo.id,token:this.userInfo.token})}):"setWinSize"==u?(this.winWidth=o[0].w,this.winHeight=o[0].h,this.$nextTick((function(){i.$refs.dialogDom.resetPosition()}))):"refreshRecommend"==u?(this.$bus.$emit("refreshRecommend"),this.closeDialog()):"track"==u?this.sensors.track(o[0].event,o[0].data):"closeWin"==u&&this.closeDialog(!0)}}},{key:"postMessageToFrame",value:function(i){this.$refs.userTagModal.contentWindow.postMessage(i,"*")}},{key:"resetPos",value:function(){this.$refs.dialogDom.resetPosition()}},{key:"mounted",value:function(){window.addEventListener("message",this.userTagMessageHandle),window.addEventListener("resize",this.resetPos)}},{key:"beforeDestroy",value:function(){window.removeEventListener("message",this.userTagMessageHandle),window.removeEventListener("resize",this.resetPos)}}])}(S.lD);W=(0,D.Cg)([(0,S.uA)({components:{Dialog:I.A}})],W);const H=W,R=H;var _=u(845),J=(0,_.A)(R,render,g,!1,null,null,null);const N=J.exports}}]); 2//# sourceMappingURL=45.bf857990.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.