!function(){function e(e,n,t,o,r,i,a){try{var c=e[i](a),u=c.value}catch(s){return void t(s)}c.done?n(u):Promise.resolve(u).then(o,r)}function n(n){return function(){var t=this,o=arguments;return new Promise((function(r,i){var a=n.apply(t,o);function c(n){e(a,r,i,c,u,"next",n)}function u(n){e(a,r,i,c,u,"throw",n)}c(void 0)}))}}function t(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var o,r,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(o=t.next()).done)&&(i.push(o.value),!n||i.length!==n);a=!0);}catch(u){c=!0,r=u}finally{try{a||null==t.return||t.return()}finally{if(c)throw r}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t=4&&this.checkVerifyLoginImage()}},methods:{updateIdentifyingCode:function(){var e=this;return n(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=window.location.origin,e.identifyingCode="".concat(t).concat(e.isSuffix,"/code/getImageCode?phone=").concat(e.phone,"&token=").concat(Math.random());case 2:case"end":return n.stop()}}),n)})))()},checkVerifyLoginImage:function(){var e=this;return n(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!(e.code.length<4)){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,h.post("".concat(e.isSuffix,"/code/verifyImageCode"),{requestType:"form",data:{phone:e.phone,code:e.code}});case 5:return n.next=7,h.post("".concat(e.isSuffix,"/code/sendSmsCode"),{requestType:"form",data:{mobile:e.phone,type:"LOGIN"}});case 7:y("验证码已发送"),e.onClose(),e.onSendCode(),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(0),e.updateIdentifyingCode();case 15:case"end":return n.stop()}}),n,null,[[0,12]])})))()}},render:function(){var e=this;return m(v,{show:this.showStatus,class:D,closeOnClickOverlay:!1,onClose:function(){e.onClose()},closeable:!0,closeIcon:"close"},{default:function(){return[m("div",{class:A},[m("p",{class:F},[_("输入图形验证码")]),m(C,null,{default:function(){return[m(S,{span:"14"},{default:function(){return[m(b,{placeholder:"请输入验证码",modelValue:e.code,"onUpdate:modelValue":function(n){return e.code=n},class:R},null)]}}),m(S,{span:"10",class:H},{default:function(){return[m(x,{src:e.identifyingCode,onClick:function(){return e.updateIdentifyingCode()}},{loading:function(){return m(w,{type:"spinner",size:"20"},null)}})]}})]}}),m(C,{style:{display:"flex",justifyContent:"end"}},{default:function(){return[m(S,{span:"10"},{default:function(){return[m("span",{class:P,onClick:function(){return e.updateIdentifyingCode()}},[_("看不清?换一换")])]}})]}})])]}})}}))}}}))}();