"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[8719],{78719:function(e,i,t){t.r(i),t.d(i,{default:function(){return _}});var n=t(66252),a=t(49963);const s=e=>((0,n.dD)("data-v-1116990d"),e=e(),(0,n.Cn)(),e),l={class:"generalModel_btn"},o=s((()=>(0,n._)("svg",{width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n._)("circle",{cx:"23",cy:"23",r:"23",fill:"white","fill-opacity":"0.3"}),(0,n._)("rect",{x:"32.5063",y:"12",width:"3",height:"29",rx:"1.5",transform:"rotate(45 32.5063 12)",fill:"white"}),(0,n._)("rect",{x:"34.6274",y:"32.5059",width:"3",height:"29",rx:"1.5",transform:"rotate(135 34.6274 32.5059)",fill:"white"})],-1))),d=[o],c=s((()=>(0,n._)("div",{class:"weiXinLogin"},[(0,n._)("div",{id:"wx_id_signin"})],-1))),r={class:"mark_loading"};function w(e,i,t,s,o,w){const h=(0,n.up)("a-spin"),p=(0,n.up)("a-modal");return(0,n.wg)(),(0,n.j4)(p,{class:"weiXinModel generalModel",visible:e.weiXinModel,"onUpdate:visible":i[1]||(i[1]=i=>e.weiXinModel=i),footer:null,width:e.pageWidth,maskClosable:!1,centered:!0,closable:!1,mask:e.weiXinModelMask,keyboard:!1,destroyOnClose:!0,zIndex:1e3},{default:(0,n.w5)((()=>[(0,n._)("div",l,[(0,n._)("div",{class:"generalModel_closeIcon",onClick:i[0]||(i[0]=(0,a.iM)((i=>e.cancelDsign()),["stop"]))},d)]),c,(0,n.wy)((0,n._)("div",r,[(0,n.Wm)(h,{size:"large"})],512),[[a.F8,e.loadingShow]])])),_:1},8,["visible","width","mask"])}var h=t(2262),p=t(22201),g=(0,n.aZ)({components:{},setup(){const e=(0,p.yj)();let i=(0,h.qj)({weiXinModel:!1,weiXinModelMask:!0,pageWidth:"50%"}),t=(0,h.qj)({loadingShow:!1,scriptSrc:"https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"});const n=async()=>{i.weiXinModel=!0;var e=document.querySelector(`script[src="${t.scriptSrc}"]`);await new Promise(((i,n)=>{if(e)i();else{const e=document.createElement("script");e.type="text/javascript",e.src=t.scriptSrc,document.body.appendChild(e),e.onload=()=>{i()}}})),a()},a=()=>{let i=window.location.href.replace(/^https?:\/\//,"");i="https://www.aida.com.hk",new WxLogin({self_redirect:!1,id:"wx_id_signin",appid:"wxcfb92eb28d6385f5",scope:"snsapi_login",redirect_uri:`${i}${e.path}`,state:"weiXin",style:"black",href:"data:text/css;base64,DQoud2ViX3FyY29kZV90eXBlX2lmcmFtZXsNCglkaXNwbGF5OiBmbGV4Ow0KCWFsaWduLWl0ZW1zOiBjZW50ZXI7DQoJanVzdGlmeS1jb250ZW50OiBjZW50ZXI7DQp9DQoud2ViX3FyY29kZV9wYW5lbF9hcmVhew0KCWhlaWdodDogMTAwJTsNCglkaXNwbGF5OiBmbGV4Ow0KCWFsaWduLWl0ZW1zOiBjZW50ZXI7DQoJanVzdGlmeS1jb250ZW50OiBjZW50ZXI7DQp9"})},s=()=>{i.weiXinModel=!1};return{...(0,h.BK)(i),...(0,h.BK)(t),init:n,cancelDsign:s}},data(){return{}},methods:{}}),m=t(83744);const u=(0,m.Z)(g,[["render",w],["__scopeId","data-v-1116990d"]]);var _=u}}]);