PageSourceSearch

https://www.mintme.com/build/939.d55a6e5f.js

js mintme.com collected 2026-09-24 09:23:59 UTC 50,516 bytes, 2 lines download raw bytes

vendor: 5,307 bytes, lines 1-2
1/*! For license information please see 939.d55a6e5f.js.LICENSE.txt */
2"use strict";(self.webpackChunkmintme=self.webpackChunkmintme||[]).push([[939,2827],{60345:function(e,t,n){n.r(t),n.d(t,{default:function(){return A}});n(60228),n(73964),n(89730),n(69373),n(59903),n(59749),n(86544),n(79288),n(69358),n(38077),n(81919),n(47522),n(99474),n(84254),n(752),n(21694),n(76265),n(58373),n(66793),n(7629),n(77509),n(88052),n(34284),n(5399);var i=n(20629),r=n(16093),o=(n(36409),n(67591)),s=n(12827),a=n(52348),c=n(74104),l=n(50060);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(){d=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function h(e,t,n,i){var o=t&&t.prototype instanceof b?t:b,s=Object.create(o.prototype),a=new V(i||[]);return r(s,"_invoke",{value:T(e,n,a)}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function b(){}function _(){}function C(){}var w={};l(w,s,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(L([])));x&&x!==n&&i.call(x,s)&&(w=x);var P=C.prototype=b.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,o,s,a){var c=f(e[r],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==u(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function T(t,n,i){var r=p;return function(o,s){if(r===v)throw new Error("Generator is already running");if(r===y){if("throw"===o)throw s;return{value:e,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var c=O(a,i);if(c){if(c===g)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=v;var l=f(t,n,i);if("normal"===l.type){if(r=i.done?y:m,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=y,i.method="throw",i.arg=l.arg)}}}function O(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(u(t)+" is not iterable")}return _.prototype=C,r(P,"constructor",{value:C,configurable:!0}),r(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,l(e,c,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},S(k.prototype),l(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new k(h(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},S(P),l(P,c,"Generator"),l(P,s,(function(){return this})),l(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=L,V.prototype={constructor:V,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h($),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;$(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:L(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(i,r)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(e){h(o,i,r,s,a,"next",e)}function a(e){h(o,i,r,s,a,"throw",e)}s(void 0)}))}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y,g,b={name:"AddPhoneAlertModal",mixins:[l.SB,l.n3],components:{Modal:o.Z,PhoneNumber:s.default,Guide:a.Z,VerifyCode:c.Z},props:{visible:Boolean,message:String,isSettingsPage:Boolean,embeded:{type:Boolean,default:!1},noClose:{type:Boolean,default:!1}},data:function(){return v(v(v({phoneNumber:"",isPhoneValid:!1,isRequesting:!1,phoneCode:null,emailCode:null,isRequestingPhoneCode:!1,isRequestingEmailCode:!1,showEnterCode:!1,justSentCode:!1,phoneCodeError:null,emailCodeError:null},r.TIMERS.SEND_PHONE_CODE,!1),r.TIMERS.SEND_EMAIL_CODE,!1),"showValidationMessage",!1)},mounted:function(){this.checkIsActiveSession()},computed:m(m({},(0,i.Se)("user",{isPhoneVerificationPending:"getIsPhoneVerificationPending"})),{},{confirmText:function(){return this.isRequesting?"":this.embeded?this.$t("page.reload"):this.$t("modal.add_phone_alert.verify")},body:function(){return this.message},btnDisabled:function(){return!this.showEnterCode&&!this.isPhoneValid||this.showEnterCode&&!this.isConfirmCodeEnabled||this.isRequesting||this.isRequestingPhoneCode||this.isRequestingEmailCode},enterCodeText:function(){return this.justSentCode?this.$t("phone_confirmation.msg"):this.$t("phone_confirmation.enter_received_early")},resendPhoneCodeText:function(){return this.isTimerActive(r.TIMERS.SEND_PHONE_CODE)?this.$t("phone_confirmation.resend_code_in_secs",{sec:this.getTimerSeconds(r.TIMERS.SEND_PHONE_CODE)}):this.$t("phone_confirmation.send_code_again")},resendPhoneCodeSpanClass:function(){return this.isTimerActive(r.TIMERS.SEND_PHONE_CODE)||this.isRequestingPhoneCode?"btn-disabled":""},resendEmailCodeText:function(){return this.isTimerActive(r.TIMERS.SEND_EMAIL_CODE)?this.$t("phone_confirmation.resend_code_in_secs",{sec:this.getTimerSeconds(r.TIMERS.SEND_EMAIL_CODE)}):this.$t("phone_confirmation.send_code_again")},resendEmailCodeSpanClass:function(){return this.isTimerActive(r.TIMERS.SEND_EMAIL_CODE)||this.isRequestingEmailCode?"btn-disabled":""},confirmCodeSubmitText:function(){return this.isRequesting?"":this.$t("confirm_modal.confirm")},isConfirmCodeEnabled:function(){return!!this.phoneCode&&!!this.emailCode}}),watch:{visible:function(){this.checkIsActiveSession()}},methods:m(m({}
2,(0,i.OI)("user",["setHasPhoneVerified","setIsPhoneVerificationPending"])),{},{closeModal:function(){if(this.embeded)return location.reload();this.$emit("close")},phoneChange:function(e){this.phoneNumber=e},showError:function(e){this.showValidationMessage=e},validPhone:function(e){this.isPhoneValid=e},verifyNumber:function(){var e=this;this.isRequesting||(this.isRequesting=!0,this.$axios.single.post(this.$routing.generate("add_phone_number"),{phoneNumber:this.phoneNumber}).then((function(){e.requestPhoneCode(),e.requestEmailCode()})).catch((function(t){var n;e.notifyError((null===(n=t.response)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.message)||e.$t("toasted.error.try_later")),e.$logger.error("error while adding phone number",t)})).finally((function(){return e.isRequesting=!1})))},requestPhoneCode:(g=f(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isRequestingPhoneCode&&!this.isTimerActive(r.TIMERS.SEND_PHONE_CODE)){e.next=2;break}return e.abrupt("return");case 2:return this.isRequestingPhoneCode=!0,e.prev=3,e.t0=this,e.next=7,this.$axios.single.post(this.$routing.generate("send_phone_verification_code"));case 7:e.t1=e.sent,e.t0.handleSendCodeResponse.call(e.t0,e.t1),this.setIsPhoneVerificationPending(!0),this.justSentCode=!0,this.$refs.verifyPhoneCode&&(this.$refs.verifyPhoneCode.clearInput(),this.$refs.verifyPhoneCode.focus()),this.showVerifyCodeView(),e.next=18;break;case 15:e.prev=15,e.t2=e.catch(3),this.handleSendCodeError(e.t2);case 18:return e.prev=18,this.startTimer(r.TIMERS.SEND_PHONE_CODE,r.PHONE_VERIF_REQUEST_CODE_INTERVAL),this.isRequestingPhoneCode=!1,e.finish(18);case 22:case"end":return e.stop()}}),e,this,[[3,15,18,22]])}))),function(){return g.apply(this,arguments)}),requestEmailCode:(y=f(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isRequestingEmailCode&&!this.isTimerActive(r.TIMERS.SEND_EMAIL_CODE)){e.next=2;break}return e.abrupt("return");case 2:return this.isRequestingEmailCode=!0,e.prev=3,e.t0=this,e.next=7,this.$axios.single.post(this.$routing.generate("send_mail_phone_verification_code"));case 7:e.t1=e.sent,e.t0.handleSendCodeResponse.call(e.t0,e.t1),this.justSentCode=!0,this.$refs.verifyEmailCode&&this.$refs.verifyEmailCode.clearInput(),this.showVerifyCodeView(),e.next=17;break;case 14:e.prev=14,e.t2=e.catch(3),this.handleSendCodeError(e.t2);case 17:return e.prev=17,this.startTimer(r.TIMERS.SEND_EMAIL_CODE,r.EMAIL_VERIF_REQUEST_CODE_INTERVAL),this.isRequestingEmailCode=!1,e.finish(17);case 21:case"end":return e.stop()}}),e,this,[[3,14,17,21]])}))),function(){return y.apply(this,arguments)}),handleSendCodeResponse:function(e){var t;if(r.HTTP_OK!==e.status||e.data.hasOwnProperty("error"))throw e;this.notifySuccess(null!==(t=e.data.code)&&void 0!==t?t:this.$t("phone_confirmation.sent"))},handleSendCodeError:function(e){var t,n,i,o;if(r.HTTP_UNAUTHORIZED!==(null===(t=e.response)||void 0===t?void 0:t.status)){var s=null!==(n=null===(i=e.data)||void 0===i?void 0:i.error)&&void 0!==n?n:null===(o=e.response)||void 0===o?void 0:o.data.message;this.notifyError(null!=s?s:this.$t("toasted.error.try_later"))}else this.notifyError(this.$t("phone_confirmation.send_code_time_limit"))},onPhoneCodeEntered:function(e){this.phoneCode=e,this.confirmCode(),this.handleCodesInput()},onEmailCodeEntered:function(e){this.emailCode=e,this.confirmCode(),this.handleCodesInput()},confirmCode:function(){var e=this;!this.isRequesting&&this.isConfirmCodeEnabled&&(this.isRequesting=!0,this.$axios.single.post(this.$routing.generate("verify_phone_number"),{smsCode:this.phoneCode,mailCode:this.emailCode}).then((function(){e.notifySuccess(e.$t("phone_number.verify_success")),e.setIsPhoneVerificationPending(!1),e.setHasPhoneVerified(!0),e.$emit("phone-verified")})).catch((function(t){var n,i,r,o=null===(n=t.response)||void 0===n?void 0:n.data;null!=o&&o.message&&e.notifyError(o.message),e.phoneCodeError=null!==(i=null==o?void 0:o.smsCode)&&void 0!==i?i:null,e.emailCodeError=null!==(r=null==o?void 0:o.emailCode)&&void 0!==r?r:null,e.$logger.error("error while verifying phone number",t)})).finally((function(){e.isRequesting=!1})))},showVerifyCodeView:function(){this.showEnterCode=!0},checkIsActiveSession:function(){var e=this;this.visible&&this.isPhoneVerificationPending&&(this.showVerifyCodeView(),this.$axios.single.get(this.$routing.generate("can_send_phone_code")).then((function(t){var n=t.data,i=n.sms.sendCodeDiff,o=n.mail.sendCodeDiff;0<=i&&e.startTimer(r.TIMERS.SEND_PHONE_CODE,i),0<=o&&e.startTimer(r.TIMERS.SEND_EMAIL_CODE,o)})).catch((function(){e.startTimer(r.TIMERS.SEND_PHONE_CODE,r.PHONE_VERIF_REQUEST_CODE_INTERVAL),e.startTimer(r.TIMERS.SEND_EMAIL_CODE,r.EMAIL_VERIF_REQUEST_CODE_INTERVAL)})).finally((function(){e.isRequestingPhoneCode=!1,e.isRequestingEmailCode=!1}))),this.focusPhoneCodeInput()},focusPhoneCodeInput:function(){var e;this.$refs.verifyPhoneCode&&(null===(e=this.$refs)||void 0===e||e.verifyPhoneCode.focus())},handleCodesInput:function(){var e=this;this.phoneCode&&!this.emailCode&&this.$nextTick((function(){e.$refs.verifyEmailCode&&e.$refs.verifyEmailCode.focus()})),this.emailCode&&this.phoneCode&&this.confirmCode()}})},_=b,C=n(51900),w=(0,C.Z)(_,(function(){var e=this,t=e._self._c;return t("div",[t("modal",{ref:"modal",attrs:{embeded:e.embeded,"full-height-mobile":!0,"no-close":e.noClose,visible:e.visible},on:{close:e.closeModal},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"m-0",domProps:{innerHTML:e._s(e.$t("modal.add_phone_alert.title"))}})]},proxy:!0}])},[e._v(" "),e.showEnterCode?t("template",{slot:"body"},[t("div",[t("div",{staticClass:"mb-2"},[e._v("\n                    "+e._s(e.enterCodeText)+"\n                ")]),e._v(" "),t("div",{staticClass:"mb-1"},[e._v(e._s(e.$t("2fa.verification_code")))]),e._v(" "),e.phoneCodeError?t("div",{staticClass:"py-2 mb-2 bg-danger text-white text-center"},[t("ul",{staticClass:"px-3 m-0 list-unstyled"}
2,[t("li",[e._v(e._s(e.phoneCodeError))])])]):e._e(),e._v(" "),t("verify-code",{ref:"verifyPhoneCode",attrs:{disabled:e.isRequesting},on:{"code-entered":e.onPhoneCodeEntered,input:e.handleCodesInput}}),e._v(" "),t("span",{staticClass:"btn-cancel disable-hover text-left px-0 my-1 c-pointer d-flex align-items-center w-fit-content",class:e.resendPhoneCodeSpanClass,on:{click:e.requestPhoneCode}},[e._v("\n                    "+e._s(e.resendPhoneCodeText)+"\n                    "),e.isRequestingPhoneCode?t("div",{staticClass:"spinner-border spinner-border-sm ml-2",attrs:{role:"status"}}):e._e()]),e._v(" "),t("div",{staticClass:"mb-1"},[e._v(e._s(e.$t("2fa.email_code")))]),e._v(" "),e.emailCodeError?t("div",{staticClass:"py-2 mb-2 bg-danger text-white text-center"},[t("ul",{staticClass:"px-3 m-0 list-unstyled"},[t("li",[e._v(e._s(e.emailCodeError))])])]):e._e(),e._v(" "),t("verify-code",{ref:"verifyEmailCode",attrs:{disabled:e.isRequesting},on:{"code-entered":e.onEmailCodeEntered}}),e._v(" "),t("span",{staticClass:"btn-cancel disable-hover text-left px-0 my-1 c-pointer d-flex align-items-center w-fit-content",class:e.resendEmailCodeSpanClass,on:{click:e.requestEmailCode}},[e._v("\n                    "+e._s(e.resendEmailCodeText)+"\n                    "),e.isRequestingEmailCode?t("div",{staticClass:"spinner-border spinner-border-sm ml-2",attrs:{role:"status"}}):e._e()])],1),e._v(" "),t("div",{staticClass:"pt-2 row"},[t("div",{staticClass:"col-12 col-sm-6 mb-2 mb-sm-0"},[t("button",{staticClass:"btn btn-primary w-100",attrs:{disabled:e.btnDisabled},on:{click:e.confirmCode}},[e._v("\n                        "+e._s(e.confirmCodeSubmitText)+"\n                        "),e.isRequesting?t("div",{staticClass:"spinner-border spinner-border-sm mx-2 my-1",attrs:{role:"status"}}):e._e()])]),e._v(" "),t("div",{staticClass:"col-12 col-sm-6"},[t("button",{staticClass:"btn btn-cancel w-100",on:{click:e.closeModal}},[e._v("\n                        "+e._s(e.$t("cancel"))+"\n                    ")])])])]):t("template",{slot:"body"},[t("div",[e.isSettingsPage?t("div",{staticClass:"pb-2 text-center"},[t("img",{staticClass:"mb-2",attrs:{src:n(72443)}}),e._v(" "),t("div",{staticClass:"h5 my-2"},[e._v(e._s(e.$t("modal.add_phone_alert_2fa.message")))])]):e._e(),e._v(" "),t("div",{staticClass:"pb-2 text-center text-subtitle mb-3",domProps:{innerHTML:e._s(e.body)}}),e._v(" "),t("div",{staticClass:"position-relative"},[t("div",{staticClass:"floating-phone-label d-flex align-items-center",class:{"phone-error-label":e.showValidationMessage}},[t("span",{staticClass:"mr-1"},[e._v(e._s(e.$t("page.profile.form.phone_number")))]),e._v(" "),t("guide",[t("template",{slot:"header"},[e._v("\n                                "+e._s(e.$t("phone.guide.header"))+"\n                            ")]),e._v(" "),t("template",{slot:"body"},[e._v("\n                                "+e._s(e.$t("phone.guide.body"))+"\n                            ")])],2)],1),e._v(" "),t("phone-number",{attrs:{inline:""},on:{"phone-change":e.phoneChange,"is-show-error":e.showError,"is-valid-phone":e.validPhone}})],1)]),e._v(" "),t("div",{staticClass:"col-12 my-1"},[t("button",{staticClass:"btn btn-primary w-100 d-flex align-items-center justify-content-center",attrs:{disabled:e.btnDisabled},on:{click:e.verifyNumber}},[e._v("\n                    "+e._s(e.confirmText)+"\n                    "),e.isRequesting?t("div",{staticClass:"spinner-border spinner-border-sm mx-2 my-1",attrs:{role:"status"}}):e._e()])]),e._v(" "),t("div",{staticClass:"col-12 my-1 mt-3"},[t("button",{staticClass:"btn btn-cancel w-100",on:{click:e.closeModal}},[e._v("\n                    "+e._s(e.$t("cancel"))+"\n                ")])])])],2)],1)}),[],!1,null,null,null).exports;function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?x(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k={name:"UserActivityVerificationModal",components:{Modal:o.Z},props:{visible:Boolean,message:String,embeded:{type:Boolean,default:!1},noClose:{type:Boolean,default:!1}},computed:P(P({},(0,i.Se)("user",{verificationRequirements:"getVerificationRequirements"})),{},{requirements:function(){return[{icon:n(49886),title:this.$t("modal.activity_verification_alert.requirements.deploy.title",this.translationContext),text:this.$t("modal.activity_verification_alert.requirements.deploy.text",this.translationContext)},{icon:n(70012),title:this.$t("modal.activity_verification_alert.requirements.expense.title",this.translationContext),text:this.$t("modal.activity_verification_alert.requirements.expense.text",this.translationContext)},{icon:n(49607),title:this.$t("modal.activity_verification_alert.requirements.deposit.title",this.translationContext),text:this.$t("modal.activity_verification_alert.requirements.deposit.text",this.translationContext)}]},translationContext:function(){return{minDeposit:this.verificationRequirements.minDeposit,minExpense:this.verificationRequirements.minExpense}}}),methods:{confirm:function(){this.$emit("confirm")},closeModal:function(){if(this.embeded)return location.reload();this.$emit("close")}}},T=(0,C.Z)(k,(function(){var e=this,t=e._self._c;return t("div",[t("modal",{ref:"user-veriication-modal",attrs:{size:"sm",embeded:e.embeded,"full-height-mobile":!0,"no-close":e.noClose,visible:e.visible},on:{close:e.closeModal},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"user-verification-modal-header m-0",domProps:{innerHTML:e._s(e.$t("modal.activity_verification_alert.title"))}})]},proxy:!0}])},[e._v(" "),t("template",{slot:"body"},[t("div",{staticClass:"user-verification-modal-body"},[t("span",{domProps:{innerHTML:e._s(e.message)}}),e._v(" "),t("div",{staticClass:"verification-requirement-wrapper d-flex flex-column py-4 text-white"},[e._l(e.requirements,(function(n,i){return[t("div",{key:i,staticClass:"verification-requirement d-flex flex-row align-items-center p-3"},[t("div",{staticClass:"img-wrapper d-flex align-items-center justify-content-center"},[t("img",{attrs:{src:n.icon,alt:""}})]),e._v(" "),t("div",{staticClass:"d-flex flex-column"},[t("span",[e._v(" "+e._s(n.title)+" ")]),e._v(" "),t("span",{staticClass:"text-content"},[e._v(" "+e._s(n.text)+" ")])])]),e._v(" "),i<e.requirements.length-1?t("span",{key:"or-".concat(i),staticClass:"block"},[e._v(e._s(e.$t("or")))]):e._e()]}))],2)]),e._v(" "),t("div",{staticClass:"pt-2 row text-white"},[t("div",{staticClass:"col-12 col-sm-6 mb-2 mb-sm-0"},[t("button",{staticClass:"btn btn-primary w-100",on:{click:e.closeModal}},[e._v("\n                        "+e._s(e.$t("confirm_modal.confirm"))+"\n                    ")])]),e._v(" "),t("div",{staticClass:"col-12 col-sm-6"},[t("button",{staticClass:"btn btn-cancel w-100",on:{click:e.closeModal}},[e._v("\n                        "+e._s(e.$t("cancel"))+"\n                    ")])])])])],2)],1)}),[],!1,null,null,null).exports,O=n(96903);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function $(){$=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}
vendor: 4,167 bytes, line 2
2try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof y?t:y,s=Object.create(o.prototype),a=new V(i||[]);return r(s,"_invoke",{value:S(e,n,a)}),s}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",v={};function y(){}function g(){}function b(){}var _={};l(_,s,(function(){return this}));var C=Object.getPrototypeOf,w=C&&C(C(L([])));w&&w!==n&&i.call(w,s)&&(_=w);var E=b.prototype=y.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(r,o,s,a){var c=d(e[r],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==I(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(u).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function S(t,n,i){var r=h;return function(o,s){if(r===p)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw s;return{value:e,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var c=k(a,i);if(c){if(c===v)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var l=d(t,n,i);if("normal"===l.type){if(r=i.done?m:f,l.arg===v)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=m,i.method="throw",i.arg=l.arg)}}}function k(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(I(t)+" is not iterable")}return g.prototype=b,r(E,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},x(P.prototype),l(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new P(u(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(E),l(E,c,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=L,V.prototype={constructor:V,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(O),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:L(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),v}},t}function V(e,t,n,i,r,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(i,r)}function L(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(e){V(o,i,r,s,a,"next",e)}function a(e){V(o,i,r,s,a,"throw",e)}s(void 0)}))}}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==I(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===I(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D="user_verification_message",N={name:"UserVerificationGate",components:{AddPhoneAlertModal:w,UserAcitivityVerficationModal:T,ConfirmModal:O.Z},props:{userVerificationConfig:Object},data:function(){return{visible:!1,infoModalVisible:!1,isInfoMode:!1,resolveFn:null,translationContext:[],message:""}},mounted:function(){this.setVerificationRequirements({minDeposit:this.userVerificationConfig.min_deposit_sum_usd,minExpense:this.userVerificationConfig.min_expense_sum_usd}),this.setVerificationStrategy(this.userVerificationConfig.enabled?r.USER_VERIFICATION_STRATEGY.ACTIVITY:r.USER_VERIFICATION_STRATEGY.PHONE);var e=this.getCookie(D);e&&(this.isVerified||(this.setMessage(e,[],!1),this.visible=!0),this.removeCookie(D))},computed:M(M({},(0,i.Se)("user",{isVerified:"getIsVerified",verificationStrategy:"getVerificationStrategy"})),{},{isActivityVerificationEnabled:function(){return this.verificationStrategy||this.userVerificationConfig.enabled}}),methods:M(M({},(0,i.OI)("user",{setIsVerified:"setIsVerified",setVerificationStrategy:"setVerificationStrategy",setVerificationRequirements:"setVerificationRequirements"})),{},{onVerified:function(e){this.isActivityVerificationEnabled||this.$emit("user-verified",e),this.visible=!1},openVerificationModal:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.action,i=void 0===n?"action":n,r=t.infoMode,o=void 0!==r&&r,s=t.translationContext,a=void 0===s?[]:s;return this.translationContext=a,new Promise(function(){var t=L($().mark((function t(n){return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=e.isVerified,t.t0){t.next=5;break}return t.next=4,e.fetchUserVerificationStatus();case 4:t.t0=t.sent;case 5:if(!t.t0){t.next=8;break}return n(!0),t.abrupt("return");case 8:if(e.resolveFn=n,e.setMessage(i,a),o){t.next=13;break}return e.visible=!0,t.abrupt("return");case 13:e.openInfoModal(i,a);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},openInfoModal:function(e,t){if(this.isInfoMode=!0,this.isActivityVerificationEnabled)return this.visible=!0;this.setInfoMessage(e,t),this.infoModalVisible=!0},handleVerified:function(){this.visible=!1,this.setIsVerified(!0),this.resolveFunction()},close:function(){var e=this.isInfoMode;this.infoModalVisible=!1,this.visible=!1,this.isInfoMode=!1,this.message="",this.resolveFunction(e)},resolveFunction:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.resolveFn&&(this.resolveFn(e),this.resolveFn=null,this.translationContext=[])},setMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?this.$t("modal.user_verification_".concat(e,".message"),t):e;this.isActivityVerificationEnabled||(n=n.charAt(0).toLowerCase()+n.slice(1));var i=this.isActivityVerificationEnabled?"activity_verification_alert":"add_phone_alert";this.message=this.$t("modal.".concat(i),{messageType:n})},setInfoMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.message=this.$t("".concat("add_phone_info"),{messageType:this.$t("modal.user_verification_".concat(e,".message"),t),minDeposit:this.userVerificationConfig.min_deposit_sum_usd,minExpense:this.userVerificationConfig.min_expense_sum_usd})},getCookie:function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return decodeURI(t.pop().split(";").shift())},removeCookie:function(e){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}
2,fetchUserVerificationStatus:function(){var e=this;return L($().mark((function t(){var n,i;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.single.get(e.$routing.generate("get_user_verification_status"));case 2:return n=t.sent,i=n.data.isVerified,e.setIsVerified(i),e.setVerificationStrategy(parseInt(n.data.verificationStrategy)||0),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t)})))()}})},q=N,A=(0,C.Z)(q,(function(){var e=this,t=e._self._c;return t("div",[e.isActivityVerificationEnabled?t("user-acitivity-verfication-modal",{attrs:{visible:e.visible,message:e.message},on:{confirm:e.close,close:e.close}}):t("add-phone-alert-modal",{attrs:{visible:e.visible,message:e.message,"is-settings-page":!1},on:{close:e.close,"phone-verified":e.handleVerified}}),e._v(" "),t("confirm-modal",{attrs:{visible:e.infoModalVisible,"show-image":!1,"no-title":"",type:"warning"},on:{cancel:e.close,close:e.close,confirm:e.close},scopedSlots:e._u([{key:"confirm",fn:function(){return[e._v("\n          "+e._s(e.$t("ok"))+"\n      ")]},proxy:!0},{key:"cancel",fn:function(){return[e._v("\n          "+e._s(e.$t("cancel"))+"\n      ")]},proxy:!0}])},[e._t("default",(function(){return[t("p",{staticClass:"text-white modal-title text-break",domProps:{innerHTML:e._s(e.message)}})]}))],2)],1)}),[],!1,null,null,null).exports},74104:function(e,t,n){n.d(t,{Z:function(){return s}});n(79288),n(38077),n(60228),n(28436),n(39772),n(6203),n(64043);var i=n(16093),r=n(83413),o={name:"VerifyCode",props:{codeLength:{type:Number,default:6},disabled:Boolean,focused:{type:Boolean,default:!0},allowResend:Boolean,resendTime:{type:Number,default:60}},data:function(){return{inputCode:new Array(this.codeLength),codeEntered:!1,resendTimerValue:0,resendTimerInstance:0}},mounted:function(){this.focused&&!this.isMobile&&this.focus()},destroyed:function(){this.resendTimerInstance&&clearTimeout(this.resendTimerInstance)},watch:{submitBtnEnabled:function(){var e=document.getElementById("_submit"),t=this.submitBtnEnabled;e&&(e.disabled=!t)},inputCode:function(){this.checkInputCode()}},computed:{submitBtnEnabled:function(){return i.CODE_LENGTH.mail===this.inputCode.filter((function(e){return""!==e&&null!==e})).length},resendLinkText:function(){return this.resendTimerValue>0?this.$t("phone_confirmation.resend_code_in_secs",{sec:this.resendTimerValue}):this.$t("page.profile.form.phone_resend_code")},isMobile:function(){return(0,r.Z2)()<=i.ScreenMediaSize.MD}},methods:{onPaste:function(e,t){var n=e.clipboardData.getData("text/plain");if(this.isDigits(n))for(var i=0;i<n;i++)t<=this.codeLength&&(this.$refs["input_".concat(t)][0].value=n[i],this.$refs["input_".concat(t)][0].focus(),this.$set(this.inputCode,t-1,n[i]),t++)},onKeyDown:function(e,t){"Backspace"===e.key&&(!e.target.value&&1<t&&this.$refs["input_".concat(t-1)][0].focus(),this.$set(this.inputCode,t-1,""))},onInput:function(e,t){var n=e.target.value.trim();n&&isFinite(n)?(e.target.value&&t<this.codeLength&&this.$refs["input_".concat(t+1)][0].focus(),this.$set(this.inputCode,t-1,e.target.value[0])):e.target.value=""},focus:function(e){var t=this,n="input_".concat(e||1);this.$refs[n]&&setTimeout((function(){return t.$refs[n][0].focus()}))},checkInputCode:function(){this.codeEntered&&(this.codeEntered=!1,this.$emit("code-entered",null)),-1===this.inputCode.findIndex((function(e){return!e}))&&(this.codeEntered=!0,this.$emit("code-entered",this.inputCode.join("")))},isDigits:function(e){return/^\d+$/.test(e)},clearInput:function(){for(var e=0;e<this.inputCode.length;e++)this.$refs["input_".concat(e+1)][0].value="",this.$set(this.inputCode,e,null)},tickResendTimer:function(){var e=this;this.resendTimerValue<=0||(this.resendTimerInstance=setTimeout((function(){e.resendTimerValue--,e.tickResendTimer()}),1e3))},onResendClick:function(){this.resendTimerValue>0||(this.resendTimerValue=this.resendTime,this.tickResendTimer(),this.$emit("resend"))},getInputClass:function(e){return{filled:this.inputCode[e-1],"ml-0 mr-1":1===e,"mr-0 ml-1":this.codeLength===e,"mx-1":e>1&&e<this.codeLength}}}},s=(0,n(51900).Z)(o,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"d-flex aling-items-center justify-content-center verify-code-wrp mt-2 mx-0"},e._l(e.codeLength,(function(n){return t("input",{key:n,ref:"input_".concat(n),refInFor:!0,staticClass:"two-fa-border text-center form-control",class:e.getInputClass(n),attrs:{type:"text",maxlength:"1",disabled:e.disabled,inputmode:"numeric"},on:{keydown:function(t){return e.onKeyDown(t,n)},input:function(t){return e.onInput(t,n)},paste:function(t){return t.preventDefault(),e.onPaste(t,n)}}})})),0),e._v(" "),e.allowResend?t("div",{staticClass:"d-flex align-items-center justify-content-between mt-3"},[t("span",{staticClass:"text-grey"},[e._v(e._s(e.$t("auth_modal.2fa.didnt_recieve_code")))]),e._v(" "),t("a",{class:[e.resendTimerValue>0?"c-default text-secondary":"c-pointer link-primary underline"],on:{click:e.onResendClick}},[e._v("\n            "+e._s(e.resendLinkText)+"\n        ")])]):e._e(
2)])}),[],!1,null,null,null).exports},96903:function(e,t,n){n.d(t,{Z:function(){return l}});n(34338),n(89730);var i=n(67591),r=n(62248),o=n(57810),s=n(78947),a=n(59417);s.vI.add(a.$aW);var c={name:"ConfirmModal",components:{Modal:i.Z,MButton:r.G5,FontAwesomeIcon:o.GN},data:function(){return{checked:!1}},props:{visible:Boolean,showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showImage:{type:Boolean,default:!0},buttonDisabled:{type:Boolean,default:!1},modelConfirmProp:String,embeded:{type:Boolean,default:!1},submitting:Boolean,closeOnConfirm:{type:Boolean,default:!0},type:String,title:String,noTitle:{type:Boolean,default:!1},size:{type:String,default:"lg"},dialogClass:String,showCheckbox:{type:Boolean,default:!1}},computed:{modalConfirm:function(){return this.modelConfirmProp?this.modelConfirmProp:"confirm_modal.confirm"},isDeleteType:function(){return"delete"===this.type},isWarningType:function(){return"warning"===this.type},modalTitle:function(){return this.noTitle?"":this.title||this.$t("confirm_modal.header")}},methods:{closeModal:function(){this.$emit("close")},onConfirm:function(){this.closeOnConfirm&&this.closeModal(),this.$emit("confirm",this.showCheckbox&&this.checked)},onCancel:function(e){e.preventDefault(),this.closeModal(),this.$emit("cancel")}}},l=(0,n(51900).Z)(c,(function(){var e=this,t=e._self._c;return t("modal",{attrs:{visible:e.visible,embeded:e.embeded,size:e.size,"dialog-class":e.dialogClass},on:{close:e.closeModal},scopedSlots:e._u([{key:"header",fn:function(){return[e._t("header-icon"),e._v(" "),t("div",{staticClass:"highlight font-size-20 font-weight-bold text-center",domProps:{innerHTML:e._s(e.modalTitle)}})]},proxy:!0}],null,!0)},[e._v(" "),t("template",{slot:"body"},[t("div",{staticClass:"text-center word-break"},[e.isDeleteType?t("div",{staticClass:"text-primary mb-2"},[t("font-awesome-icon",{attrs:{icon:["fas","trash"],size:"6x"}})],1):e._e(),e._v(" "),e.isWarningType?t("div",{staticClass:"mb-3"},[t("img",{staticClass:"confirm-modal-image",attrs:{src:n(65180),alt:e.$t("img.warning_symbol")}})]):e._e(),e._v(" "),e.showImage?t("div",[t("img",{attrs:{src:n(96119),alt:e.$t("img.confirmation_prompt_icon")}})]):e._e(),e._v(" "),e._t("default",(function(){return[t("p",{staticClass:"text-white modal-title text-break pt-2 text-uppercase"},[e._v("\n                    "+e._s(e.$t("confirm_modal.body"))+"\n                ")])]})),e._v(" "),e.showCheckbox?t("div",{staticClass:"custom-control custom-checkbox my-2 d-flex align-items-center justify-content-between"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checked,expression:"checked"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"checked"},domProps:{checked:Array.isArray(e.checked)?e._i(e.checked,null)>-1:e.checked},on:{change:function(t){var n=e.checked,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e._i(n,null);i.checked?o<0&&(e.checked=n.concat([null])):o>-1&&(e.checked=n.slice(0,o).concat(n.slice(o+1)))}else e.checked=r}}}),e._v(" "),t("label",{staticClass:"custom-control-label d-flex align-items-center",attrs:{for:"checked"}},[e._t("checkbox-label",(function(){return[e._v(e._s(e.$t("modal.do_not_show_again")))]}))],2)]):e._e(),e._v(" "),t("div",{staticClass:"pt-2 d-flex justify-content-between"},[e.showConfirmButton?t("m-button",{class:e.showCancelButton?"w-50 mr-1":"w-100",attrs:{type:"primary",tabindex:9,disabled:e.buttonDisabled,loading:e.submitting},on:{click:e.onConfirm}},[e._t("confirm",(function(){return[e._v(e._s(e.$t(e.modalConfirm)))]}))],2):e._e(),e._v(" "),e.showCancelButton?t("button",{staticClass:"btn-cancel pl-3 bg-transparent w-50 ml-1",attrs:{tabindex:10},on:{click:e.onCancel}},[e._t("cancel",(function(){return[e._v(e._s(e.$t("confirm_modal.cancel")))]}))],2):e._e()],1)],2)])],2)}),[],!1,null,null,null).exports},12827:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});n(65137);var i=n(11420),r=n(23279),o=n.n(r),s=n(71257),a=n(50060),c={name:"PhoneNumber",mixins:[a.SB],components:{VueTelInput:i.VueTelInput},props:{phoneNumber:{type:String,default:""},inline:Boolean,disabled:Boolean,editLimitReached:Boolean,inputTabIndex:{type:String,default:""}},data:function(){return{open:!1,phone:this.phoneNumber,isValidNumber:null,phoneChecking:!1,debouncedPhoneCheck:null,cancelTokenSource:null,isPhoneBlocked:!1,isFocused:!1,dialCode:"",countryUpdated:!0,bindProps:{mode:"national",defaultCountry:"CA",autoFormat:!1,validCharactersOnly:!0,dropdownOptions:{disabled:!1,disabledDialCode:!0,showDialCodeInList:!0,showDialCodeInSelection:!0,show
2Flags:!0,showSearchBox:!0,tabindex:0,width:"300px"},inputOptions:{showDialCode:!0,placeholder:this.$t("phone.phone_number.label"),maxlength:30,autofocus:!1,type:"tel"}}}},computed:{showValidationMessage:function(){var e=this.phone&&!this.isValidNumber&&!this.countryUpdated;return this.$emit("is-show-error",e),e},showPhoneError:function(){return this.showValidationMessage||this.isPhoneBlocked},computedBorder:function(){return this.isFocused?"vti-border":null},spinnerClass:function(){return this.phoneChecking&&!this.showValidationMessage?"visible":"invisible"}},created:function(){this.debouncedPhoneCheck=o()(this.checkPhoneValidity,200)},mounted:function(){this.sortCountries()},methods:{sortCountries:function(){this.$refs.telInput.allCountries.sort((function(e,t){return e.dialCode-t.dialCode}))},countryChanged:function(e){this.countryUpdated=!0,this.dialCode="+"+e.dialCode},close:function(){this.phone=this.dialCode,this.open=!1},checkPhoneValidity:function(e){var t=this;this.cancelTokenSource=s.default.CancelToken.source(),this.$axios.single.get(this.$routing.generate("check_phone_in_use",{phoneNumber:e}),{cancelToken:this.cancelTokenSource.token}).then((function(e){e.data?t.isPhoneBlocked=!0:t.$emit("is-valid-phone",!0),t.phoneChecking=!1})).catch((function(e){var n;s.default.isCancel(e)||(t.phoneChecking=!1,t.notifyError((null===(n=e.response)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.message)||t.$t("toasted.error.try_later")),t.$logger.error("error while checking phone number in use",e))}))},updatePhone:function(e,t){if(this.countryUpdated=!1,this.cancelPhoneCheckRequest(),this.isValidNumber=t.valid,this.$emit("phone-change",t.number),this.phoneNumber&&t.number===this.phoneNumber)return this.isPhoneBlocked=!1,this.phoneChecking=!1,void this.$emit("is-valid-phone",!0);this.isPhoneBlocked=!1,this.$emit("is-valid-phone",!1),this.isValidNumber&&(this.phoneChecking=!0,this.debouncedPhoneCheck(t.number))},toggleInputFocus:function(){this.isFocused=!this.isFocused},cancelPhoneCheckRequest:function(){this.cancelTokenSource&&this.cancelTokenSource.cancel()}}},l=(0,n(51900).Z)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"phone-number w-100",class:{"error-input":e.inline&&e.showPhoneError}},[t("div",{staticClass:"col-12 input-height"},[t("vue-tel-input",e._b({ref:"telInput",class:e.computedBorder,attrs:{disabled:e.disabled,"valid-characters-only":!0,"input-options":{tabindex:e.inputTabIndex,showDialCode:!0},"dropdown-options":{showFlags:!0,tabindex:e.inputTabIndex}},on:{input:e.updatePhone,open:function(t){e.open=!0},close:e.close,focus:e.toggleInputFocus,blur:e.toggleInputFocus,"country-changed":e.countryChanged},scopedSlots:e._u([{key:"arrow-icon",fn:function(){return[t("span",[e._v(e._s(e.open?"▲":"▼"))])]},proxy:!0}]),model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}},"vue-tel-input",e.bindProps,!1)),e._v(" "),e.inline?t("div",{staticClass:"d-flex align-items-center justify-content-center mt-1"},[t("div",{staticClass:"spinner-border spinner-border-sm mx-2",class:e.spinnerClass,attrs:{role:"status"}})]):e._e()],1),e._v(" "),t("div",{class:{"error-spacer ml-3 px-4":e.inline}},[e.inline||!e.phoneChecking||e.showPhoneError?e._e():t("div",{staticClass:"d-flex align-items-center justify-content-center"},[t("div",{staticClass:"spinner-border spinner-border-sm my-2",class:e.spinnerClass,attrs:{role:"status"}})]),e._v(" "),e.showValidationMessage?t("div",{staticClass:"assistive errors"},[e._v("\n            "+e._s(e.$t("phone_number.wrong"))+"\n        ")]):e._e(),e._v(" "),e.isPhoneBlocked?t("div",{staticClass:"assistive errors"},[e._v("\n            "+e._s(e.$t("phone_number.in_use"))+"\n        ")]):e._e()])])}),[],!1,null,null,null).exports},71568:function(e,t,n){var i=n(68844),r=n(74684),o=n(34327),s=/"/g,a=i("".replace);e.exports=function(e,t,n,i){var c=o(r(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+a(o(i),s,"&quot;")+'"'),l+">"+c+"</"+t+">"}},74580:function(e,t,n){var i=n(3689);e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},37960:function(e,t,n){var i=n(79989),r=n(71568);i({target:"String",proto:!0,forced:n(74580)("link")},{link:function(e){return r(this,"a","href",e)}})}}]);

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.