Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bachdgvn/vue-otp-input

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bachdgvn/vue-otp-input - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

16

dist/vueOtpInput.common.js

@@ -1654,8 +1654,8 @@ module.exports =

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"feb4e852-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/OtpInput.vue?vue&type=template&id=4e72fd1a&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"display":"flex"}},_vm._l((_vm.numInputs),function(item,i){return _c('SingleOtpInput',{key:i,attrs:{"focus":_vm.activeInput === i,"value":_vm.otp[i],"separator":_vm.separator,"input-classes":_vm.inputClasses,"is-last-child":i === _vm.numInputs - 1,"should-auto-focus":_vm.shouldAutoFocus,"is-input-num":_vm.isInputNum},on:{"on-change":_vm.handleOnChange,"on-keydown":_vm.handleOnKeyDown,"on-paste":_vm.handleOnPaste,"on-focus":function($event){return _vm.handleOnFocus(i);},"on-blur":_vm.handleOnBlur}})}),1)}
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f530666c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/OtpInput.vue?vue&type=template&id=ecafbcca&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"display":"flex"}},_vm._l((_vm.numInputs),function(item,i){return _c('SingleOtpInput',{key:i,attrs:{"focus":_vm.activeInput === i,"value":_vm.otp[i],"separator":_vm.separator,"input-classes":_vm.inputClasses,"is-last-child":i === _vm.numInputs - 1,"should-auto-focus":_vm.shouldAutoFocus,"is-input-num":_vm.isInputNum},on:{"on-change":_vm.handleOnChange,"on-keydown":_vm.handleOnKeyDown,"on-paste":_vm.handleOnPaste,"on-focus":function($event){return _vm.handleOnFocus(i)},"on-blur":_vm.handleOnBlur}})}),1)}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/components/OtpInput.vue?vue&type=template&id=4e72fd1a&
// CONCATENATED MODULE: ./src/components/OtpInput.vue?vue&type=template&id=ecafbcca&

@@ -1672,3 +1672,3 @@ // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.match.js

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"feb4e852-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SingleOtpInput.vue?vue&type=template&id=b79565ea&
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f530666c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SingleOtpInput.vue?vue&type=template&id=b79565ea&
var SingleOtpInputvue_type_template_id_b79565ea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"display":"flex","align-items":"center"}},[((_vm.isInputNum ? 'number' : 'tel')==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.model),expression:"model"}],ref:"input",class:_vm.inputClasses,attrs:{"min":"0","max":"9","type":"checkbox"},domProps:{"checked":Array.isArray(_vm.model)?_vm._i(_vm.model,null)>-1:(_vm.model)},on:{"input":_vm.handleOnChange,"keydown":_vm.handleOnKeyDown,"paste":_vm.handleOnPaste,"focus":_vm.handleOnFocus,"blur":_vm.handleOnBlur,"change":function($event){var $$a=_vm.model,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.model=$$a.concat([$$v]))}else{$$i>-1&&(_vm.model=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.model=$$c}}}}):((_vm.isInputNum ? 'number' : 'tel')==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.model),expression:"model"}],ref:"input",class:_vm.inputClasses,attrs:{"min":"0","max":"9","type":"radio"},domProps:{"checked":_vm._q(_vm.model,null)},on:{"input":_vm.handleOnChange,"keydown":_vm.handleOnKeyDown,"paste":_vm.handleOnPaste,"focus":_vm.handleOnFocus,"blur":_vm.handleOnBlur,"change":function($event){_vm.model=null}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.model),expression:"model"}],ref:"input",class:_vm.inputClasses,attrs:{"min":"0","max":"9","type":_vm.isInputNum ? 'number' : 'tel'},domProps:{"value":(_vm.model)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.model=$event.target.value},_vm.handleOnChange],"keydown":_vm.handleOnKeyDown,"paste":_vm.handleOnPaste,"focus":_vm.handleOnFocus,"blur":_vm.handleOnBlur}}),(!_vm.isLastChild && _vm.separator)?_c('span',[_c('span',{domProps:{"innerHTML":_vm._s(_vm.separator)}})]):_vm._e()])}

@@ -1965,3 +1965,2 @@ var SingleOtpInputvue_type_template_id_b79565ea_staticRenderFns = []

if (this.otp.join('').length === this.numInputs) {
this.oldOtp = assign_default()([], this.otp);
return this.$emit('on-complete', this.otp.join(''));

@@ -1986,4 +1985,9 @@ }

changeCodeAtFocus: function changeCodeAtFocus(value) {
this.oldOtp = assign_default()([], this.otp);
this.$set(this.otp, this.activeInput, value);
this.checkFilledAllInputs();
if (this.oldOtp.join('') !== this.otp.join('')) {
this.$emit('on-change', this.otp.join(''));
this.checkFilledAllInputs();
}
},

@@ -1990,0 +1994,0 @@ // Handle pasted OTP

@@ -1663,8 +1663,8 @@ (function webpackUniversalModuleDefinition(root, factory) {

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"feb4e852-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/OtpInput.vue?vue&type=template&id=4e72fd1a&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"display":"flex"}},_vm._l((_vm.numInputs),function(item,i){return _c('SingleOtpInput',{key:i,attrs:{"focus":_vm.activeInput === i,"value":_vm.otp[i],"separator":_vm.separator,"input-classes":_vm.inputClasses,"is-last-child":i === _vm.numInputs - 1,"should-auto-focus":_vm.shouldAutoFocus,"is-input-num":_vm.isInputNum},on:{"on-change":_vm.handleOnChange,"on-keydown":_vm.handleOnKeyDown,"on-paste":_vm.handleOnPaste,"on-focus":function($event){return _vm.handleOnFocus(i);},"on-blur":_vm.handleOnBlur}})}),1)}
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f530666c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/OtpInput.vue?vue&type=template&id=ecafbcca&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"display":"flex"}},_vm._l((_vm.numInputs),function(item,i){return _c('SingleOtpInput',{key:i,attrs:{"focus":_vm.activeInput === i,"value":_vm.otp[i],"separator":_vm.separator,"input-classes":_vm.inputClasses,"is-last-child":i === _vm.numInputs - 1,"should-auto-focus":_vm.shouldAutoFocus,"is-input-num":_vm.isInputNum},on:{"on-change":_vm.handleOnChange,"on-keydown":_vm.handleOnKeyDown,"on-paste":_vm.handleOnPaste,"on-focus":function($event){return _vm.handleOnFocus(i)},"on-blur":_vm.handleOnBlur}})}),1)}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/components/OtpInput.vue?vue&type=template&id=4e72fd1a&
// CONCATENATED MODULE: ./src/components/OtpInput.vue?vue&type=template&id=ecafbcca&

@@ -1681,3 +1681,3 @@ // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.match.js

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"feb4e852-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SingleOtpInput.vue?vue&type=template&id=b79565ea&
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f530666c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SingleOtpInput.vue?vue&type=template&id=b79565ea&
var SingleOtpInputvue_type_template_id_b79565ea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"display":"flex","align-items":"center"}},[((_vm.isInputNum ? 'number' : 'tel')==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.model),expression:"model"}],ref:"input",class:_vm.inputClasses,attrs:{"min":"0","max":"9","type":"checkbox"},domProps:{"checked":Array.isArray(_vm.model)?_vm._i(_vm.model,null)>-1:(_vm.model)},on:{"input":_vm.handleOnChange,"keydown":_vm.handleOnKeyDown,"paste":_vm.handleOnPaste,"focus":_vm.handleOnFocus,"blur":_vm.handleOnBlur,"change":function($event){var $$a=_vm.model,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.model=$$a.concat([$$v]))}else{$$i>-1&&(_vm.model=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.model=$$c}}}}):((_vm.isInputNum ? 'number' : 'tel')==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.model),expression:"model"}],ref:"input",class:_vm.inputClasses,attrs:{"min":"0","max":"9","type":"radio"},domProps:{"checked":_vm._q(_vm.model,null)},on:{"input":_vm.handleOnChange,"keydown":_vm.handleOnKeyDown,"paste":_vm.handleOnPaste,"focus":_vm.handleOnFocus,"blur":_vm.handleOnBlur,"change":function($event){_vm.model=null}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.model),expression:"model"}],ref:"input",class:_vm.inputClasses,attrs:{"min":"0","max":"9","type":_vm.isInputNum ? 'number' : 'tel'},domProps:{"value":(_vm.model)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.model=$event.target.value},_vm.handleOnChange],"keydown":_vm.handleOnKeyDown,"paste":_vm.handleOnPaste,"focus":_vm.handleOnFocus,"blur":_vm.handleOnBlur}}),(!_vm.isLastChild && _vm.separator)?_c('span',[_c('span',{domProps:{"innerHTML":_vm._s(_vm.separator)}})]):_vm._e()])}

@@ -1974,3 +1974,2 @@ var SingleOtpInputvue_type_template_id_b79565ea_staticRenderFns = []

if (this.otp.join('').length === this.numInputs) {
this.oldOtp = assign_default()([], this.otp);
return this.$emit('on-complete', this.otp.join(''));

@@ -1995,4 +1994,9 @@ }

changeCodeAtFocus: function changeCodeAtFocus(value) {
this.oldOtp = assign_default()([], this.otp);
this.$set(this.otp, this.activeInput, value);
this.checkFilledAllInputs();
if (this.oldOtp.join('') !== this.otp.join('')) {
this.$emit('on-change', this.otp.join(''));
this.checkFilledAllInputs();
}
},

@@ -1999,0 +2003,0 @@ // Handle pasted OTP

@@ -1,2 +0,2 @@

(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vueOtpInput"]=n():t["vueOtpInput"]=n()})("undefined"!==typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fb15")}({"02f4":function(t,n,e){var r=e("4588"),o=e("be13");t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},"0390":function(t,n,e){"use strict";var r=e("02f4")(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},"07e3":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"0bfb":function(t,n,e){"use strict";var r=e("cb7c");t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},"0fc9":function(t,n,e){var r=e("3a38"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},1691:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,n,e){var r=e("f772");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,n,e){var r=e("f772"),o=e("e53d").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"214f":function(t,n,e){"use strict";e("b0c5");var r=e("2aba"),o=e("32e9"),i=e("79e5"),u=e("be13"),c=e("2b4c"),a=e("520a"),s=c("species"),f=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var p=c(t),d=!i(function(){var n={};return n[p]=function(){return 7},7!=""[t](n)}),h=d?!i(function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[s]=function(){return e}),e[p](""),!n}):void 0;if(!d||!h||"replace"===t&&!f||"split"===t&&!l){var v=/./[p],b=e(u,p,""[t],function(t,n,e,r,o){return n.exec===a?d&&!o?{done:!0,value:v.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),m=b[0],y=b[1];r(String.prototype,t,m),o(RegExp.prototype,p,2==n?function(t,n){return y.call(t,this,n)}:function(t){return y.call(t,this)})}}},"230e":function(t,n,e){var r=e("d3f4"),o=e("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"23c6":function(t,n,e){var r=e("2d95"),o=e("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(c=r(n))&&"function"==typeof n.callee?"Arguments":c}},"241e":function(t,n,e){var r=e("25eb");t.exports=function(t){return Object(r(t))}},"25eb":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"28a5":function(t,n,e){"use strict";var r=e("aae3"),o=e("cb7c"),i=e("ebd6"),u=e("0390"),c=e("9def"),a=e("5f1b"),s=e("520a"),f=e("79e5"),l=Math.min,p=[].push,d="split",h="length",v="lastIndex",b=4294967295,m=!f(function(){RegExp(b,"y")});e("214f")("split",2,function(t,n,e,f){var y;return y="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[h]||2!="ab"[d](/(?:ab)*/)[h]||4!="."[d](/(.?)(.?)/)[h]||"."[d](/()()/)[h]>1||""[d](/.?/)[h]?function(t,n){var o=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(o,t,n);var i,u,c,a=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===n?b:n>>>0,m=new RegExp(t.source,f+"g");while(i=s.call(m,o)){if(u=m[v],u>l&&(a.push(o.slice(l,i.index)),i[h]>1&&i.index<o[h]&&p.apply(a,i.slice(1)),c=i[0][h],l=u,a[h]>=d))break;m[v]===i.index&&m[v]++}return l===o[h]?!c&&m.test("")||a.push(""):a.push(o.slice(l)),a[h]>d?a.slice(0,d):a}:"0"[d](void 0,0)[h]?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var o=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,o,r):y.call(String(o),e,r)},function(t,n){var r=f(y,t,this,n,y!==e);if(r.done)return r.value;var s=o(t),p=String(this),d=i(s,RegExp),h=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(m?"y":"g"),x=new d(m?s:"^(?:"+s.source+")",v),g=void 0===n?b:n>>>0;if(0===g)return[];if(0===p.length)return null===a(x,p)?[p]:[];var O=0,w=0,_=[];while(w<p.length){x.lastIndex=m?w:0;var I,S=a(x,m?p:p.slice(w));if(null===S||(I=l(c(x.lastIndex+(m?0:w)),p.length))===O)w=u(p,w,h);else{if(_.push(p.slice(O,w)),_.length===g)return _;for(var j=1;j<=S.length-1;j++)if(_.push(S[j]),_.length===g)return _;w=O=I}}return _.push(p.slice(O)),_}]})},"294c":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},"2aba":function(t,n,e){var r=e("7726"),o=e("32e9"),i=e("69a8"),u=e("ca5a")("src"),c=e("fa5b"),a="toString",s=(""+c).split(a);e("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var a="function"==typeof e;a&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(a&&(i(e,u)||o(e,u,t[n]?""+t[n]:s.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||c.call(this)})},"2b4c":function(t,n,e){var r=e("5537")("wks"),o=e("ca5a"),i=e("7726").Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"32e9":function(t,n,e){var r=e("86cc"),o=e("4630");t.exports=e("9e1e")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"335c":function(t,n,e){var r=e("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,n){n.f={}.propertyIsEnumerable},"35e8":function(t,n,e){var r=e("d9f6"),o=e("aebd");t.exports=e("8e60")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"36c3":function(t,n,e){var r=e("335c"),o=e("25eb");t.exports=function(t){return r(o(t))}},"3a38":function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4588:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4630:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},4917:function(t,n,e){"use strict";var r=e("cb7c"),o=e("9def"),i=e("0390"),u=e("5f1b");e("214f")("match",1,function(t,n,e,c){return[function(e){var r=t(this),o=void 0==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=c(e,t,this);if(n.done)return n.value;var a=r(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;var l,p=[],d=0;while(null!==(l=u(a,s))){var h=String(l[0]);p[d]=h,""===h&&(a.lastIndex=i(s,o(a.lastIndex),f)),d++}return 0===d?null:p}]})},5176:function(t,n,e){t.exports=e("51b6")},"51b6":function(t,n,e){e("a3c3"),t.exports=e("584a").Object.assign},"520a":function(t,n,e){"use strict";var r=e("0bfb"),o=RegExp.prototype.exec,i=String.prototype.replace,u=o,c="lastIndex",a=function(){var t=/a/,n=/b*/g;return o.call(t,"a"),o.call(n,"a"),0!==t[c]||0!==n[c]}(),s=void 0!==/()??/.exec("")[1],f=a||s;f&&(u=function(t){var n,e,u,f,l=this;return s&&(e=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),a&&(n=l[c]),u=o.call(l,t),a&&u&&(l[c]=l.global?u.index+u[0].length:n),s&&u&&u.length>1&&i.call(u[0],e,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)}),u}),t.exports=u},5537:function(t,n,e){var r=e("8378"),o=e("7726"),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,n,e){var r=e("dbdb")("keys"),o=e("62a0");t.exports=function(t){return r[t]||(r[t]=o(t))}},"584a":function(t,n){var e=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=e)},"5b4e":function(t,n,e){var r=e("36c3"),o=e("b447"),i=e("0fc9");t.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){while(s>f)if(c=a[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},"5ca1":function(t,n,e){var r=e("7726"),o=e("8378"),i=e("32e9"),u=e("2aba"),c=e("9b43"),a="prototype",s=function(t,n,e){var f,l,p,d,h=t&s.F,v=t&s.G,b=t&s.S,m=t&s.P,y=t&s.B,x=v?r:b?r[n]||(r[n]={}):(r[n]||{})[a],g=v?o:o[n]||(o[n]={}),O=g[a]||(g[a]={});for(f in v&&(e=n),e)l=!h&&x&&void 0!==x[f],p=(l?x:e)[f],d=y&&l?c(p,r):m&&"function"==typeof p?c(Function.call,p):p,x&&u(x,f,p,t&s.U),g[f]!=p&&i(g,f,d),m&&O[f]!=p&&(O[f]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5f1b":function(t,n,e){"use strict";var r=e("23c6"),o=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"===typeof e){var i=e.call(t,n);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},"62a0":function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},"63b6":function(t,n,e){var r=e("e53d"),o=e("584a"),i=e("d864"),u=e("35e8"),c=e("07e3"),a="prototype",s=function(t,n,e){var f,l,p,d=t&s.F,h=t&s.G,v=t&s.S,b=t&s.P,m=t&s.B,y=t&s.W,x=h?o:o[n]||(o[n]={}),g=x[a],O=h?r:v?r[n]:(r[n]||{})[a];for(f in h&&(e=n),e)l=!d&&O&&void 0!==O[f],l&&c(x,f)||(p=l?O[f]:e[f],x[f]=h&&"function"!=typeof O[f]?e[f]:m&&l?i(p,r):y&&O[f]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(p):b&&"function"==typeof p?i(Function.call,p):p,b&&((x.virtual||(x.virtual={}))[f]=p,t&s.R&&g&&!g[f]&&u(g,f,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"69a8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"6a99":function(t,n,e){var r=e("d3f4");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},7726:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},"794b":function(t,n,e){t.exports=!e("8e60")&&!e("294c")(function(){return 7!=Object.defineProperty(e("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},8378:function(t,n){var e=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=e)},"86cc":function(t,n,e){var r=e("cb7c"),o=e("c69a"),i=e("6a99"),u=Object.defineProperty;n.f=e("9e1e")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},"8e60":function(t,n,e){t.exports=!e("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},9306:function(t,n,e){"use strict";var r=e("c3a1"),o=e("9aa9"),i=e("355d"),u=e("241e"),c=e("335c"),a=Object.assign;t.exports=!a||e("294c")(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r})?function(t,n){var e=u(t),a=arguments.length,s=1,f=o.f,l=i.f;while(a>s){var p,d=c(arguments[s++]),h=f?r(d).concat(f(d)):r(d),v=h.length,b=0;while(v>b)l.call(d,p=h[b++])&&(e[p]=d[p])}return e}:a},"9aa9":function(t,n){n.f=Object.getOwnPropertySymbols},"9b43":function(t,n,e){var r=e("d8e8");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"9def":function(t,n,e){var r=e("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,n,e){t.exports=!e("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a3c3:function(t,n,e){var r=e("63b6");r(r.S+r.F,"Object",{assign:e("9306")})},aae3:function(t,n,e){var r=e("d3f4"),o=e("2d95"),i=e("2b4c")("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},aebd:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},b0c5:function(t,n,e){"use strict";var r=e("520a");e("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b447:function(t,n,e){var r=e("3a38"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},b8e3:function(t,n){t.exports=!0},be13:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c3a1:function(t,n,e){var r=e("e6f3"),o=e("1691");t.exports=Object.keys||function(t){return r(t,o)}},c69a:function(t,n,e){t.exports=!e("9e1e")&&!e("79e5")(function(){return 7!=Object.defineProperty(e("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},cb7c:function(t,n,e){var r=e("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},d3f4:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d864:function(t,n,e){var r=e("79aa");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},d8e8:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,n,e){var r=e("e4ae"),o=e("794b"),i=e("1bc3"),u=Object.defineProperty;n.f=e("8e60")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},dbdb:function(t,n,e){var r=e("584a"),o=e("e53d"),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e4ae:function(t,n,e){var r=e("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},e6f3:function(t,n,e){var r=e("07e3"),o=e("36c3"),i=e("5b4e")(!1),u=e("5559")("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);while(n.length>a)r(c,e=n[a++])&&(~i(s,e)||s.push(e));return s}},ebd6:function(t,n,e){var r=e("cb7c"),o=e("d8e8"),i=e("2b4c")("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[i])?n:o(e)}},f772:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,n,e){t.exports=e("5537")("native-function-to-string",Function.toString)},fb15:function(t,n,e){"use strict";var r;(e.r(n),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(e.p=r[1]));var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticStyle:{display:"flex"}},t._l(t.numInputs,function(n,r){return e("SingleOtpInput",{key:r,attrs:{focus:t.activeInput===r,value:t.otp[r],separator:t.separator,"input-classes":t.inputClasses,"is-last-child":r===t.numInputs-1,"should-auto-focus":t.shouldAutoFocus,"is-input-num":t.isInputNum},on:{"on-change":t.handleOnChange,"on-keydown":t.handleOnKeyDown,"on-paste":t.handleOnPaste,"on-focus":function(n){return t.handleOnFocus(r)},"on-blur":t.handleOnBlur}})}),1)},i=[],u=(e("4917"),e("28a5"),e("5176")),c=e.n(u),a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticStyle:{display:"flex","align-items":"center"}},["checkbox"===(t.isInputNum?"number":"tel")?e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(n){var e=t.model,r=n.target,o=!!r.checked;if(Array.isArray(e)){var i=null,u=t._i(e,i);r.checked?u<0&&(t.model=e.concat([i])):u>-1&&(t.model=e.slice(0,u).concat(e.slice(u+1)))}else t.model=o}}}):"radio"===(t.isInputNum?"number":"tel")?e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",type:"radio"},domProps:{checked:t._q(t.model,null)},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(n){t.model=null}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",type:t.isInputNum?"number":"tel"},domProps:{value:t.model},on:{input:[function(n){n.target.composing||(t.model=n.target.value)},t.handleOnChange],keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur}}),!t.isLastChild&&t.separator?e("span",[e("span",{domProps:{innerHTML:t._s(t.separator)}})]):t._e()])},s=[],f={name:"SingleOtpInput",props:{value:{type:String},separator:{type:String},focus:{type:Boolean},inputClasses:{type:String},shouldAutoFocus:{type:Boolean},isInputNum:{type:Boolean},isLastChild:{type:Boolean}},data:function(){return{model:this.value||""}},mounted:function(){this.$refs.input&&this.focus&&this.shouldAutoFocus&&this.$refs.input.focus()},watch:{value:function(t,n){t!==n&&(this.model=t)},focus:function(t,n){n!==t&&this.$refs.input&&this.focus&&(this.$refs.input.focus(),this.$refs.input.select())}},methods:{handleOnChange:function(){return this.model.length>1&&(this.model=this.model.slice(0,1)),this.$emit("on-change",this.model)},handleOnKeyDown:function(t){return this.$emit("on-keydown",t)},handleOnPaste:function(t){return this.$emit("on-paste",t)},handleOnFocus:function(){return this.$refs.input.select(),this.$emit("on-focus")},handleOnBlur:function(){return this.$emit("on-blur")}}},l=f;function p(t,n,e,r,o,i,u,c){var a,s="function"===typeof t?t.options:t;if(n&&(s.render=n,s.staticRenderFns=e,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),u?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},s._ssrRegister=a):o&&(a=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,n){return a.call(n),f(t,n)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:s}}var d=p(l,a,s,!1,null,null,null),h=d.exports,v=8,b=37,m=39,y=46,x={name:"OtpInput",components:{SingleOtpInput:h},props:{numInputs:{default:4},separator:{type:String,default:"**"},inputClasses:{type:String},isInputNum:{type:Boolean},shouldAutoFocus:{type:Boolean,default:!1}},data:function(){return{activeInput:0,otp:[],oldOtp:[]}},methods:{handleOnFocus:function(t){this.activeInput=t},handleOnBlur:function(){this.activeInput=-1},checkFilledAllInputs:function(){return this.otp.join("").length===this.numInputs?(this.oldOtp=c()([],this.otp),this.$emit("on-complete",this.otp.join(""))):"Wait until the user enters the required number of characters"},focusInput:function(t){this.activeInput=Math.max(Math.min(this.numInputs-1,t),0)},focusNextInput:function(){this.focusInput(this.activeInput+1)},focusPrevInput:function(){this.focusInput(this.activeInput-1)},changeCodeAtFocus:function(t){this.$set(this.otp,this.activeInput,t),this.checkFilledAllInputs()},handleOnPaste:function(t){t.preventDefault();var n=t.clipboardData.getData("text/plain").slice(0,this.numInputs-this.activeInput).split("");if(this.isInputNum&&!n.join("").match(/^\d+$/))return"Invalid pasted data";var e=this.otp.slice(0,this.activeInput),r=e.concat(n);return this.$set(this,"otp",r.slice(0,this.numInputs)),this.focusInput(r.slice(0,this.numInputs).length),this.checkFilledAllInputs()},handleOnChange:function(t){this.changeCodeAtFocus(t),this.focusNextInput()},handleOnKeyDown:function(t){switch(t.keyCode){case v:t.preventDefault(),this.changeCodeAtFocus(""),this.focusPrevInput();break;case y:t.preventDefault(),this.changeCodeAtFocus("");break;case b:t.preventDefault(),this.focusPrevInput();break;case m:t.preventDefault(),this.focusNextInput();break;default:break}}}},g=x,O=p(g,o,i,!1,null,null,null),w=O.exports,_=w;n["default"]=_}})});
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vueOtpInput"]=n():t["vueOtpInput"]=n()})("undefined"!==typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fb15")}({"02f4":function(t,n,e){var r=e("4588"),o=e("be13");t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},"0390":function(t,n,e){"use strict";var r=e("02f4")(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},"07e3":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"0bfb":function(t,n,e){"use strict";var r=e("cb7c");t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},"0fc9":function(t,n,e){var r=e("3a38"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},1691:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,n,e){var r=e("f772");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,n,e){var r=e("f772"),o=e("e53d").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"214f":function(t,n,e){"use strict";e("b0c5");var r=e("2aba"),o=e("32e9"),i=e("79e5"),u=e("be13"),c=e("2b4c"),a=e("520a"),s=c("species"),f=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var p=c(t),d=!i(function(){var n={};return n[p]=function(){return 7},7!=""[t](n)}),h=d?!i(function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[s]=function(){return e}),e[p](""),!n}):void 0;if(!d||!h||"replace"===t&&!f||"split"===t&&!l){var v=/./[p],b=e(u,p,""[t],function(t,n,e,r,o){return n.exec===a?d&&!o?{done:!0,value:v.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),m=b[0],y=b[1];r(String.prototype,t,m),o(RegExp.prototype,p,2==n?function(t,n){return y.call(t,this,n)}:function(t){return y.call(t,this)})}}},"230e":function(t,n,e){var r=e("d3f4"),o=e("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"23c6":function(t,n,e){var r=e("2d95"),o=e("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(c=r(n))&&"function"==typeof n.callee?"Arguments":c}},"241e":function(t,n,e){var r=e("25eb");t.exports=function(t){return Object(r(t))}},"25eb":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"28a5":function(t,n,e){"use strict";var r=e("aae3"),o=e("cb7c"),i=e("ebd6"),u=e("0390"),c=e("9def"),a=e("5f1b"),s=e("520a"),f=e("79e5"),l=Math.min,p=[].push,d="split",h="length",v="lastIndex",b=4294967295,m=!f(function(){RegExp(b,"y")});e("214f")("split",2,function(t,n,e,f){var y;return y="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[h]||2!="ab"[d](/(?:ab)*/)[h]||4!="."[d](/(.?)(.?)/)[h]||"."[d](/()()/)[h]>1||""[d](/.?/)[h]?function(t,n){var o=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(o,t,n);var i,u,c,a=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===n?b:n>>>0,m=new RegExp(t.source,f+"g");while(i=s.call(m,o)){if(u=m[v],u>l&&(a.push(o.slice(l,i.index)),i[h]>1&&i.index<o[h]&&p.apply(a,i.slice(1)),c=i[0][h],l=u,a[h]>=d))break;m[v]===i.index&&m[v]++}return l===o[h]?!c&&m.test("")||a.push(""):a.push(o.slice(l)),a[h]>d?a.slice(0,d):a}:"0"[d](void 0,0)[h]?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var o=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,o,r):y.call(String(o),e,r)},function(t,n){var r=f(y,t,this,n,y!==e);if(r.done)return r.value;var s=o(t),p=String(this),d=i(s,RegExp),h=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(m?"y":"g"),g=new d(m?s:"^(?:"+s.source+")",v),x=void 0===n?b:n>>>0;if(0===x)return[];if(0===p.length)return null===a(g,p)?[p]:[];var O=0,w=0,_=[];while(w<p.length){g.lastIndex=m?w:0;var I,S=a(g,m?p:p.slice(w));if(null===S||(I=l(c(g.lastIndex+(m?0:w)),p.length))===O)w=u(p,w,h);else{if(_.push(p.slice(O,w)),_.length===x)return _;for(var j=1;j<=S.length-1;j++)if(_.push(S[j]),_.length===x)return _;w=O=I}}return _.push(p.slice(O)),_}]})},"294c":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},"2aba":function(t,n,e){var r=e("7726"),o=e("32e9"),i=e("69a8"),u=e("ca5a")("src"),c=e("fa5b"),a="toString",s=(""+c).split(a);e("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var a="function"==typeof e;a&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(a&&(i(e,u)||o(e,u,t[n]?""+t[n]:s.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||c.call(this)})},"2b4c":function(t,n,e){var r=e("5537")("wks"),o=e("ca5a"),i=e("7726").Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"32e9":function(t,n,e){var r=e("86cc"),o=e("4630");t.exports=e("9e1e")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"335c":function(t,n,e){var r=e("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,n){n.f={}.propertyIsEnumerable},"35e8":function(t,n,e){var r=e("d9f6"),o=e("aebd");t.exports=e("8e60")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"36c3":function(t,n,e){var r=e("335c"),o=e("25eb");t.exports=function(t){return r(o(t))}},"3a38":function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4588:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4630:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},4917:function(t,n,e){"use strict";var r=e("cb7c"),o=e("9def"),i=e("0390"),u=e("5f1b");e("214f")("match",1,function(t,n,e,c){return[function(e){var r=t(this),o=void 0==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=c(e,t,this);if(n.done)return n.value;var a=r(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;var l,p=[],d=0;while(null!==(l=u(a,s))){var h=String(l[0]);p[d]=h,""===h&&(a.lastIndex=i(s,o(a.lastIndex),f)),d++}return 0===d?null:p}]})},5176:function(t,n,e){t.exports=e("51b6")},"51b6":function(t,n,e){e("a3c3"),t.exports=e("584a").Object.assign},"520a":function(t,n,e){"use strict";var r=e("0bfb"),o=RegExp.prototype.exec,i=String.prototype.replace,u=o,c="lastIndex",a=function(){var t=/a/,n=/b*/g;return o.call(t,"a"),o.call(n,"a"),0!==t[c]||0!==n[c]}(),s=void 0!==/()??/.exec("")[1],f=a||s;f&&(u=function(t){var n,e,u,f,l=this;return s&&(e=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),a&&(n=l[c]),u=o.call(l,t),a&&u&&(l[c]=l.global?u.index+u[0].length:n),s&&u&&u.length>1&&i.call(u[0],e,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)}),u}),t.exports=u},5537:function(t,n,e){var r=e("8378"),o=e("7726"),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,n,e){var r=e("dbdb")("keys"),o=e("62a0");t.exports=function(t){return r[t]||(r[t]=o(t))}},"584a":function(t,n){var e=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=e)},"5b4e":function(t,n,e){var r=e("36c3"),o=e("b447"),i=e("0fc9");t.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){while(s>f)if(c=a[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},"5ca1":function(t,n,e){var r=e("7726"),o=e("8378"),i=e("32e9"),u=e("2aba"),c=e("9b43"),a="prototype",s=function(t,n,e){var f,l,p,d,h=t&s.F,v=t&s.G,b=t&s.S,m=t&s.P,y=t&s.B,g=v?r:b?r[n]||(r[n]={}):(r[n]||{})[a],x=v?o:o[n]||(o[n]={}),O=x[a]||(x[a]={});for(f in v&&(e=n),e)l=!h&&g&&void 0!==g[f],p=(l?g:e)[f],d=y&&l?c(p,r):m&&"function"==typeof p?c(Function.call,p):p,g&&u(g,f,p,t&s.U),x[f]!=p&&i(x,f,d),m&&O[f]!=p&&(O[f]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5f1b":function(t,n,e){"use strict";var r=e("23c6"),o=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"===typeof e){var i=e.call(t,n);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},"62a0":function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},"63b6":function(t,n,e){var r=e("e53d"),o=e("584a"),i=e("d864"),u=e("35e8"),c=e("07e3"),a="prototype",s=function(t,n,e){var f,l,p,d=t&s.F,h=t&s.G,v=t&s.S,b=t&s.P,m=t&s.B,y=t&s.W,g=h?o:o[n]||(o[n]={}),x=g[a],O=h?r:v?r[n]:(r[n]||{})[a];for(f in h&&(e=n),e)l=!d&&O&&void 0!==O[f],l&&c(g,f)||(p=l?O[f]:e[f],g[f]=h&&"function"!=typeof O[f]?e[f]:m&&l?i(p,r):y&&O[f]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(p):b&&"function"==typeof p?i(Function.call,p):p,b&&((g.virtual||(g.virtual={}))[f]=p,t&s.R&&x&&!x[f]&&u(x,f,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"69a8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"6a99":function(t,n,e){var r=e("d3f4");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},7726:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},"794b":function(t,n,e){t.exports=!e("8e60")&&!e("294c")(function(){return 7!=Object.defineProperty(e("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},8378:function(t,n){var e=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=e)},"86cc":function(t,n,e){var r=e("cb7c"),o=e("c69a"),i=e("6a99"),u=Object.defineProperty;n.f=e("9e1e")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},"8e60":function(t,n,e){t.exports=!e("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},9306:function(t,n,e){"use strict";var r=e("c3a1"),o=e("9aa9"),i=e("355d"),u=e("241e"),c=e("335c"),a=Object.assign;t.exports=!a||e("294c")(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r})?function(t,n){var e=u(t),a=arguments.length,s=1,f=o.f,l=i.f;while(a>s){var p,d=c(arguments[s++]),h=f?r(d).concat(f(d)):r(d),v=h.length,b=0;while(v>b)l.call(d,p=h[b++])&&(e[p]=d[p])}return e}:a},"9aa9":function(t,n){n.f=Object.getOwnPropertySymbols},"9b43":function(t,n,e){var r=e("d8e8");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"9def":function(t,n,e){var r=e("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,n,e){t.exports=!e("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a3c3:function(t,n,e){var r=e("63b6");r(r.S+r.F,"Object",{assign:e("9306")})},aae3:function(t,n,e){var r=e("d3f4"),o=e("2d95"),i=e("2b4c")("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},aebd:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},b0c5:function(t,n,e){"use strict";var r=e("520a");e("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b447:function(t,n,e){var r=e("3a38"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},b8e3:function(t,n){t.exports=!0},be13:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c3a1:function(t,n,e){var r=e("e6f3"),o=e("1691");t.exports=Object.keys||function(t){return r(t,o)}},c69a:function(t,n,e){t.exports=!e("9e1e")&&!e("79e5")(function(){return 7!=Object.defineProperty(e("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},cb7c:function(t,n,e){var r=e("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},d3f4:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d864:function(t,n,e){var r=e("79aa");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},d8e8:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,n,e){var r=e("e4ae"),o=e("794b"),i=e("1bc3"),u=Object.defineProperty;n.f=e("8e60")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},dbdb:function(t,n,e){var r=e("584a"),o=e("e53d"),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e4ae:function(t,n,e){var r=e("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},e6f3:function(t,n,e){var r=e("07e3"),o=e("36c3"),i=e("5b4e")(!1),u=e("5559")("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);while(n.length>a)r(c,e=n[a++])&&(~i(s,e)||s.push(e));return s}},ebd6:function(t,n,e){var r=e("cb7c"),o=e("d8e8"),i=e("2b4c")("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[i])?n:o(e)}},f772:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,n,e){t.exports=e("5537")("native-function-to-string",Function.toString)},fb15:function(t,n,e){"use strict";var r;(e.r(n),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(e.p=r[1]));var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticStyle:{display:"flex"}},t._l(t.numInputs,function(n,r){return e("SingleOtpInput",{key:r,attrs:{focus:t.activeInput===r,value:t.otp[r],separator:t.separator,"input-classes":t.inputClasses,"is-last-child":r===t.numInputs-1,"should-auto-focus":t.shouldAutoFocus,"is-input-num":t.isInputNum},on:{"on-change":t.handleOnChange,"on-keydown":t.handleOnKeyDown,"on-paste":t.handleOnPaste,"on-focus":function(n){return t.handleOnFocus(r)},"on-blur":t.handleOnBlur}})}),1)},i=[],u=(e("4917"),e("28a5"),e("5176")),c=e.n(u),a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticStyle:{display:"flex","align-items":"center"}},["checkbox"===(t.isInputNum?"number":"tel")?e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(n){var e=t.model,r=n.target,o=!!r.checked;if(Array.isArray(e)){var i=null,u=t._i(e,i);r.checked?u<0&&(t.model=e.concat([i])):u>-1&&(t.model=e.slice(0,u).concat(e.slice(u+1)))}else t.model=o}}}):"radio"===(t.isInputNum?"number":"tel")?e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",type:"radio"},domProps:{checked:t._q(t.model,null)},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(n){t.model=null}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",type:t.isInputNum?"number":"tel"},domProps:{value:t.model},on:{input:[function(n){n.target.composing||(t.model=n.target.value)},t.handleOnChange],keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur}}),!t.isLastChild&&t.separator?e("span",[e("span",{domProps:{innerHTML:t._s(t.separator)}})]):t._e()])},s=[],f={name:"SingleOtpInput",props:{value:{type:String},separator:{type:String},focus:{type:Boolean},inputClasses:{type:String},shouldAutoFocus:{type:Boolean},isInputNum:{type:Boolean},isLastChild:{type:Boolean}},data:function(){return{model:this.value||""}},mounted:function(){this.$refs.input&&this.focus&&this.shouldAutoFocus&&this.$refs.input.focus()},watch:{value:function(t,n){t!==n&&(this.model=t)},focus:function(t,n){n!==t&&this.$refs.input&&this.focus&&(this.$refs.input.focus(),this.$refs.input.select())}},methods:{handleOnChange:function(){return this.model.length>1&&(this.model=this.model.slice(0,1)),this.$emit("on-change",this.model)},handleOnKeyDown:function(t){return this.$emit("on-keydown",t)},handleOnPaste:function(t){return this.$emit("on-paste",t)},handleOnFocus:function(){return this.$refs.input.select(),this.$emit("on-focus")},handleOnBlur:function(){return this.$emit("on-blur")}}},l=f;function p(t,n,e,r,o,i,u,c){var a,s="function"===typeof t?t.options:t;if(n&&(s.render=n,s.staticRenderFns=e,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),u?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},s._ssrRegister=a):o&&(a=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,n){return a.call(n),f(t,n)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:s}}var d=p(l,a,s,!1,null,null,null),h=d.exports,v=8,b=37,m=39,y=46,g={name:"OtpInput",components:{SingleOtpInput:h},props:{numInputs:{default:4},separator:{type:String,default:"**"},inputClasses:{type:String},isInputNum:{type:Boolean},shouldAutoFocus:{type:Boolean,default:!1}},data:function(){return{activeInput:0,otp:[],oldOtp:[]}},methods:{handleOnFocus:function(t){this.activeInput=t},handleOnBlur:function(){this.activeInput=-1},checkFilledAllInputs:function(){return this.otp.join("").length===this.numInputs?this.$emit("on-complete",this.otp.join("")):"Wait until the user enters the required number of characters"},focusInput:function(t){this.activeInput=Math.max(Math.min(this.numInputs-1,t),0)},focusNextInput:function(){this.focusInput(this.activeInput+1)},focusPrevInput:function(){this.focusInput(this.activeInput-1)},changeCodeAtFocus:function(t){this.oldOtp=c()([],this.otp),this.$set(this.otp,this.activeInput,t),this.oldOtp.join("")!==this.otp.join("")&&(this.$emit("on-change",this.otp.join("")),this.checkFilledAllInputs())},handleOnPaste:function(t){t.preventDefault();var n=t.clipboardData.getData("text/plain").slice(0,this.numInputs-this.activeInput).split("");if(this.isInputNum&&!n.join("").match(/^\d+$/))return"Invalid pasted data";var e=this.otp.slice(0,this.activeInput),r=e.concat(n);return this.$set(this,"otp",r.slice(0,this.numInputs)),this.focusInput(r.slice(0,this.numInputs).length),this.checkFilledAllInputs()},handleOnChange:function(t){this.changeCodeAtFocus(t),this.focusNextInput()},handleOnKeyDown:function(t){switch(t.keyCode){case v:t.preventDefault(),this.changeCodeAtFocus(""),this.focusPrevInput();break;case y:t.preventDefault(),this.changeCodeAtFocus("");break;case b:t.preventDefault(),this.focusPrevInput();break;case m:t.preventDefault(),this.focusNextInput();break;default:break}}}},x=g,O=p(x,o,i,!1,null,null,null),w=O.exports,_=w;n["default"]=_}})});
//# sourceMappingURL=vueOtpInput.umd.min.js.map
{
"name": "@bachdgvn/vue-otp-input",
"version": "1.0.3",
"version": "1.0.4",
"description": "A fully customizable, one-time password input component for the web built with Vue 2.x.",

@@ -5,0 +5,0 @@ "author": "Bach Duong <bachdgvn@gmail.com>",

@@ -121,2 +121,6 @@ # vue-otp-input

<tr>
<td>on-change</td>
<td>Return OTP code was changing when we made a change in inputs.</td>
</tr>
<tr>
<td>on-complete</td>

@@ -126,1 +130,6 @@ <td>Return OTP code typed in inputs.</td>

</table>
## Changelog
* **v1.0.2** - Update first stable version.
* **v1.0.3** - Fix [#1](https://github.com/bachdgvn/vue-otp-input/issues/1): Fist and last character not being modified and pasting OTP codes.
* **v1.0.4** - Support @on-change event and fix bug for firing @on-complete every time we press keyboard.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc