vendor: 4,371 bytes, lines 1-2
1/*! For license information please see userSwitchAccountConfirm-7b741ff26c45320794d6.bundle.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcodecombat=self.webpackChunkcodecombat||[]).push([[1992],{164006:(t,r,e)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return r};var t,r={},e=Object.prototype,i=e.hasOwnProperty,a=Object.defineProperty||function(t,r,e){t[r]=e.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof g?r:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:S(t,e,c)}),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d="suspendedStart",v="executing",y="completed",m={};function g(){}function w(){}function _(){}var b={};l(b,u,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(U([])));L&&L!==e&&i.call(L,u)&&(b=L);var E=_.prototype=g.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function C(t,r){function e(o,a,c,u){var s=p(t[o],t,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==n(l)&&i.call(l,"__await")?r.resolve(l.__await).then((function(t){e("next",t,c,u)}),(function(t){e("throw",t,c,u)})):r.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return e("throw",t,c,u)}))}u(s.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}})}function S(r,e,n){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(r,e,n);if("normal"===s.type){if(o=n.done?y:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function O(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,O(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function I(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function U(r){if(r||""===r){var e=r[u];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(i.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(n(r)+" is not iterable")}return w.prototype=_,a(E,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=l(_,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===w||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},k(C.prototype),l(C.prototype,s,(function(){return this})),r.AsyncIterator=C,r.async=function(t,e,n,o,i){void 0===i&&(i=Prom
2ise);var a=new C(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),l(E,f,"Generator"),l(E,u,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=U,P.prototype={constructor:P,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!r)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function n(n,o){return c.type="throw",c.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=r,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),m},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),I(e),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;I(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:U(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function i(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var a=t.apply(r,e);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)}))}}Object.defineProperty(r,"X",{value:!0}),r.Z=void 0;var c=e(760185);r.Z={name:"SwitchAccountConfirmationView",props:{confirmingUserId:{type:String,required:!0},requestingConfirmUserId:{type:String,required:!0},confirmCode:{type:String,default:""}},data:function(){return{code:this.confirmCode,wrongAccount:!1,requestingConfirmUser:null,error:null,success:!1}},created:function(){var t=this;return a(o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(me.get("_id")===t.confirmingUserId){r.next=3;break}return t.wrongAccount=!0,r.abrupt("return");case 3:return r.next=5,t.getUserInfo(t.requestingConfirmUserId);case 5:t.requestingConfirmUser=r.sent;case 6:case"end":return r.stop()}}),r)})))()},methods:{onFormSubmit:function(){var t=this;return a(o().mark((function r(){var e;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.error=null,t.success=!1,t.code){r.next=5;break}return t.error="No code entered",r.abrupt("return");case 5:return e={code:t.code},r.prev=6,r.next=9,c.verifyRelatedAccount({userAskingToRelateId:t.requestingConfirmUserId,body:e});case 9:r.next=15;break;case 11:return r.prev=11,r.t0=r.catch(6),t.error=(null===r.t0||void 0===r.t0?void 0:r.t0.message)||r.t0||"Error occurred",r.abrupt("return");case 15:t.success=!0,setTimeout((function(){window.location.href="/users/switch-account"}),2e3);case 17:case"end":return r.stop()}}),r,null,[[6,11]])})))()},getUserInfo:function(t){return a(o().mark((function r(){var e;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,c.getRelatedAccount({userId:t});case 2:return e=r.sent,r.abrupt("return",e.user);case 4:case"end":return r.stop()}}),r)})))()}}}},170516:(t,r)=>{r.xk=r.sY=void 0,r.sY=function(){var t=this,r=t._self._c;return r("div",[r("div",{staticClass:"container confirm"},[t.wrongAccount?r("div",{staticClass:"confirm__wrong"},[t._v("\n "+t._s(t.$t("related_accounts.wrong_account"))+"\n ")]):r("form",{on:{submit:function(r){return r.preventDefault(),t.onFormSubmit.apply(null,arguments)}}}
2,[t.requestingConfirmUser?r("div",{staticClass:"form-group row confirm__info"},[t._v("\n "+t._s(t.$t("related_accounts.link_account"))+" "+t._s(t.requestingConfirmUser.email)+"\n ")]):t._e(),t._v(" "),r("div",{staticClass:"form-group row"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"confirm__input",attrs:{type:"text",placeholder:"Enter Confirmation Code"},domProps:{value:t.code},on:{input:function(r){r.target.composing||(t.code=r.target.value)}}})]),t._v(" "),r("div",{staticClass:"form-group row confirm__submit"},[r("button",{staticClass:"btn btn-success",attrs:{type:"submit"}},[t._v("\n "+t._s(t.$t("play.confirm"))+"\n ")])]),t._v(" "),r("div",{staticClass:"form-group row"},[t.error?r("div",{staticClass:"confirm__error"},[t._v("\n "+t._s(t.error)+"\n ")]):t._e(),t._v(" "),t.success?r("div",{staticClass:"confirm__success"},[t._v("\n "+t._s(t.$t("related_accounts.link_successful_redirect"))+"....\n ")]):t._e()])])])])},r.xk=[]},534041:(t,r,e)=>{e.r(r),e.d(r,{__esModule:()=>o.X,default:()=>a});var n=e(170516),o=e(164006);const i=o.Z,a=(0,e(551900).Z)(i,n.sY,n.xk,!1,null,"20feef9b",null).exports}}]); 3//# sourceMappingURL=userSwitchAccountConfirm-7b741ff26c45320794d6.bundle.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.