(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[57],{"0+Vp":function(e,t,n){"use strict";n.r(t);var i,o,r=n("k1fw"),a=n("fWQN"),c=n("mtLc"),d=n("yKVA"),s=n("879j"),p=n("q1tI"),l=n.n(p),u=n("/MKj"),w=n("Ty5D"),f=n("55Ip"),h=(n("t1Ho"),n("xenO"),{display:"flex",justifyContent:"center"}),g=(i=Object(u["c"])((function(e){var t=e.bsmSetting;return{bsmSetting:t}})),Object(w["n"])(o=i(o=function(e){Object(d["a"])(n,e);var t=Object(s["a"])(n);function n(){return Object(a["a"])(this,n),t.apply(this,arguments)}return Object(c["a"])(n,[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(){this.init()}},{key:"init",value:function(){var e=this.props.bsmSetting,t=e.third_party_provider,n=e.wechat_work_appid,i=e.wechat_work_agentid,o=e.wechat_work_redirect_uri;"wechat"===t&&window.WwLogin({id:"qrcode",appid:n,agentid:i,redirect_uri:"".concat(o,"/login/qrcode_login")})}},{key:"render",value:function(){var e=this.props.bsmSetting,t=e.wechat_work_able,n=e.dingding_flexible_able,i=void 0===n||n;return l.a.createElement("div",null,t||i?l.a.createElement("div",{id:"qrcode",style:h}):l.a.createElement("div",{style:Object(r["a"])(Object(r["a"])({},h),{},{padding:24})},"\u6b64\u5e94\u7528\u672a\u5f00\u542f\u4f01\u4e1a\u5fae\u4fe1\u767b\u5f55\u529f\u80fd"),l.a.createElement("div",{style:h},l.a.createElement(f["a"],{to:"/user/login"},"\u8d26\u53f7\u5bc6\u7801\u767b\u5f55")))}}]),n}(p["Component"]))||o)||o);t["default"]=g},t1Ho:function(e,t,n){(function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("wwlogin requires a window with a document");return n(e)}:n(t)})("undefined"!==typeof window?window:this,(function(e,t){!function(e,t,n){function i(n){var i=t.createElement("iframe"),o="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid="+n.appid+"&agentid="+n.agentid+"&redirect_uri="+n.redirect_uri+"&state="+n.state+"&login_type=jssdk";o+=n.style?"&style="+n.style:"",o+=n.href?"&href="+n.href:"",i.src=o,i.frameBorder="0",i.allowTransparency="true",i.scrolling="no",i.width="300px",i.height="400px";var r=t.getElementById(n.id);r.innerHTML="",r.appendChild(i),i.onload=function(){i.contentWindow.postMessage&&e.addEventListener&&(e.addEventListener("message",(function(t){t.data&&t.origin.indexOf("work.weixin.qq.com")>-1&&(e.location.href=t.data)})),i.contentWindow.postMessage("ask_usePostMessage","*"))}}e.WwLogin=i}(e,document)}))},xenO:function(e,t){!function(e,t){function n(e){var n,i=t.createElement("iframe"),o="https://login.dingtalk.com/login/qrcode.htm?goto="+e.goto;o+=e.style?"&style="+encodeURIComponent(e.style):"",o+=e.href?"&href="+e.href:"",i.src=o,i.frameBorder="0",i.allowTransparency="true",i.scrolling="no",i.width=e.width?e.width+"px":"365px",i.height=e.height?e.height+"px":"400px",n=t.getElementById(e.id),n.innerHTML="",n.appendChild(i)}e.DDLogin=n}(window,document)}}]);