"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[7886,8719],{77886:function(e,i,n){n.r(i),n.d(i,{default:function(){return g}});var t=n(66252),o=n(3577),l=n(24984);const a=e=>((0,t.dD)("data-v-0b424a60"),e=e(),(0,t.Cn)(),e),s={class:"Container"},d=a((()=>(0,t._)("img",{src:l,alt:""},null,-1)));function c(e,i,n,l,a,c){const r=(0,t.up)("weiXinModel");return(0,t.wg)(),(0,t.iD)("div",s,[(0,t._)("div",{class:"icon",onClick:i[0]||(i[0]=(...i)=>e.openWeiXinModel&&e.openWeiXinModel(...i))},[d,(0,t._)("span",null,(0,o.zw)(e.$props.text),1)]),(0,t.Wm)(r,{ref:"weiXinModel"},null,512)])}var r=n(2262),w=n(78719),p=(0,t.aZ)({name:"login",components:{weiXinModel:w["default"]},props:{text:{type:String,default:"Sign in with Wechat"}},setup(){let e=(0,r.qj)({weiXinModel:null});const i=()=>{e.weiXinModel.init()};return(0,t.bv)((()=>{})),{...(0,r.BK)(e),openWeiXinModel:i}}}),u=n(83744);const h=(0,u.Z)(p,[["render",c],["__scopeId","data-v-0b424a60"]]);var g=h},78719:function(e,i,n){n.r(i),n.d(i,{default:function(){return f}});var t=n(66252),o=n(49963);const l=e=>((0,t.dD)("data-v-1116990d"),e=e(),(0,t.Cn)(),e),a={class:"generalModel_btn"},s=l((()=>(0,t._)("svg",{width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,t._)("circle",{cx:"23",cy:"23",r:"23",fill:"white","fill-opacity":"0.3"}),(0,t._)("rect",{x:"32.5063",y:"12",width:"3",height:"29",rx:"1.5",transform:"rotate(45 32.5063 12)",fill:"white"}),(0,t._)("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=[s],c=l((()=>(0,t._)("div",{class:"weiXinLogin"},[(0,t._)("div",{id:"wx_id_signin"})],-1))),r={class:"mark_loading"};function w(e,i,n,l,s,w){const p=(0,t.up)("a-spin"),u=(0,t.up)("a-modal");return(0,t.wg)(),(0,t.j4)(u,{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,t.w5)((()=>[(0,t._)("div",a,[(0,t._)("div",{class:"generalModel_closeIcon",onClick:i[0]||(i[0]=(0,o.iM)((i=>e.cancelDsign()),["stop"]))},d)]),c,(0,t.wy)((0,t._)("div",r,[(0,t.Wm)(p,{size:"large"})],512),[[o.F8,e.loadingShow]])])),_:1},8,["visible","width","mask"])}var p=n(2262),u=n(22201),h=(0,t.aZ)({components:{},setup(){const e=(0,u.yj)();let i=(0,p.qj)({weiXinModel:!1,weiXinModelMask:!0,pageWidth:"50%"}),n=(0,p.qj)({loadingShow:!1,scriptSrc:"https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"});const t=async()=>{i.weiXinModel=!0;var e=document.querySelector(`script[src="${n.scriptSrc}"]`);await new Promise(((i,t)=>{if(e)i();else{const e=document.createElement("script");e.type="text/javascript",e.src=n.scriptSrc,document.body.appendChild(e),e.onload=()=>{i()}}})),o()},o=()=>{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"})},l=()=>{i.weiXinModel=!1};return{...(0,p.BK)(i),...(0,p.BK)(n),init:t,cancelDsign:l}},data(){return{}},methods:{}}),g=n(83744);const m=(0,g.Z)(h,[["render",w],["__scopeId","data-v-1116990d"]]);var f=m},24984:function(e,i,n){e.exports=n.p+"img/weiXinIcon.99adf139.svg"}}]);