vue-email-dropdown
Version:
A Vue component for autocomplete email domains
2 lines • 40.7 kB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-email-dropdown"]=t(require("vue")):e["vue-email-dropdown"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),c=n("fc6a"),a=n("c04e"),s=n("5135"),u=n("0cfb"),f=Object.getOwnPropertyDescriptor;t.f=i?f:function(e,t){if(e=c(e),t=a(t,!0),u)try{return f(e,t)}catch(n){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},"07ac":function(e,t,n){var i=n("23e7"),r=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),o=n("825a"),c=n("1d80"),a=n("4840"),s=n("8aa5"),u=n("50c4"),f=n("14c3"),l=n("9263"),d=n("d039"),h=[].push,p=Math.min,m=4294967295,v=!d((function(){return!RegExp(m,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(c(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);var a,s,u,f=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,v=new RegExp(e.source,d+"g");while(a=l.call(v,i)){if(s=v.lastIndex,s>p&&(f.push(i.slice(p,a.index)),a.length>1&&a.index<i.length&&h.apply(f,a.slice(1)),u=a[0].length,p=s,f.length>=o))break;v.lastIndex===a.index&&v.lastIndex++}return p===i.length?!u&&v.test("")||f.push(""):f.push(i.slice(p)),f.length>o?f.slice(0,o):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=c(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var c=n(i,e,this,r,i!==t);if(c.done)return c.value;var l=o(e),d=String(this),h=a(l,RegExp),y=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),b=new h(v?l:"^(?:"+l.source+")",g),x=void 0===r?m:r>>>0;if(0===x)return[];if(0===d.length)return null===f(b,d)?[d]:[];var w=0,E=0,C=[];while(E<d.length){b.lastIndex=v?E:0;var _,O=f(b,v?d:d.slice(E));if(null===O||(_=p(u(b.lastIndex+(v?0:E)),d.length))===w)E=s(d,E,y);else{if(C.push(d.slice(w,E)),C.length===x)return C;for(var S=1;S<=O.length-1;S++)if(C.push(O[S]),C.length===x)return C;E=w=_}}return C.push(d.slice(w)),C}]}),!v)},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"1ae5":function(e,t,n){"use strict";var i=n("bba5"),r=n.n(i);r.a},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("2d00"),c=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[c]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),c=n("6eeb"),a=n("ce4e"),s=n("e893"),u=n("94ca");e.exports=function(e,t){var n,f,l,d,h,p,m=e.target,v=e.global,y=e.stat;if(f=v?i:y?i[m]||a(m,{}):(i[m]||{}).prototype,f)for(l in t){if(h=t[l],e.noTargetGet?(p=r(f,l),d=p&&p.value):d=f[l],n=u(v?l:m+(y?".":"#")+l,e.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;s(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),c(f,l,h,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("5a34"),o=n("1d80"),c=n("ab13");i({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~String(o(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},"2ca0":function(e,t,n){"use strict";var i=n("23e7"),r=n("06cf").f,o=n("50c4"),c=n("5a34"),a=n("1d80"),s=n("ab13"),u=n("c430"),f="".startsWith,l=Math.min,d=s("startsWith"),h=!u&&!d&&!!function(){var e=r(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!d},{startsWith:function(e){var t=String(a(this));c(e);var n=o(l(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return f?f.call(t,i,n):t.slice(n,n+i.length)===i}})},"2d00":function(e,t,n){var i,r,o=n("da84"),c=n("342f"),a=o.process,s=a&&a.versions,u=s&&s.v8;u?(i=u.split("."),r=i[0]+i[1]):c&&(i=c.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=c.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),c=n("df75");e.exports=i?Object.defineProperties:function(e,t){o(e);var n,i=c(t),a=i.length,s=0;while(a>s)r.f(e,n=i[s++],t[n]);return e}},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"428f":function(e,t,n){var i=n("da84");e.exports=i},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),o=n("9bf2"),c=i("unscopables"),a=Array.prototype;void 0==a[c]&&o.f(a,c,{configurable:!0,value:r(null)}),e.exports=function(e){a[c][e]=!0}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),o=n("b622"),c=o("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==r(e))}},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),o=n("b622"),c=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[c])?t:r(n)}},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),c=function(e){return function(t,n,c){var a,s=i(t),u=r(s.length),f=o(c,u);if(e&&n!=n){while(u>f)if(a=s[f++],a!=a)return!0}else for(;u>f;f++)if((e||f in s)&&s[f]===n)return e||f||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),c=n("ae40"),a=o("filter"),s=c("filter");i({target:"Array",proto:!0,forced:!a||!s},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),o=n("7418"),c=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(c(e)),n=o.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),r=n("5899"),o="["+r+"]",c=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(c,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},"5a34":function(e,t,n){var i=n("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e89":function(e,t,n){var i=n("861d"),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),o=function(e){return function(t,n){var o,c,a=String(r(t)),s=i(n),u=a.length;return s<0||s>=u?e?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===u||(c=a.charCodeAt(s+1))<56320||c>57343?e?a.charAt(s):o:e?a.slice(s,s+2):c-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),o=n("b622"),c=o("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[c],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var i,r,o,c=n("7f9a"),a=n("da84"),s=n("861d"),u=n("9112"),f=n("5135"),l=n("f772"),d=n("d012"),h=a.WeakMap,p=function(e){return o(e)?r(e):i(e,{})},m=function(e){return function(t){var n;if(!s(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(c){var v=new h,y=v.get,g=v.has,b=v.set;i=function(e,t){return b.call(v,e,t),t},r=function(e){return y.call(v,e)||{}},o=function(e){return g.call(v,e)}}else{var x=l("state");d[x]=!0,i=function(e,t){return u(e,x,t),t},r=function(e){return f(e,x)?e[x]:{}},o=function(e){return f(e,x)}}e.exports={set:i,get:r,has:o,enforce:p,getterFor:m}},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),o=n("5135"),c=n("ce4e"),a=n("8925"),s=n("69f3"),u=s.get,f=s.enforce,l=String(String).split("String");(e.exports=function(e,t,n,a){var s=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),f(n).source=l.join("string"==typeof t?t:"")),e!==i?(s?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:r(e,t,n)):u?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},"6f53":function(e,t,n){var i=n("83ab"),r=n("df75"),o=n("fc6a"),c=n("d1e7").f,a=function(e){return function(t){var n,a=o(t),s=r(a),u=s.length,f=0,l=[];while(u>f)n=s[f++],i&&!c.call(a,n)||l.push(e?[n,a[n]]:a[n]);return l}};e.exports={entries:a(!0),values:a(!1)}},7156:function(e,t,n){var i=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var o,c;return r&&"function"==typeof(o=t.constructor)&&o!==n&&i(c=o.prototype)&&c!==n.prototype&&r(e,c),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,n){var i,r=n("825a"),o=n("37e8"),c=n("7839"),a=n("d012"),s=n("1be4"),u=n("cc12"),f=n("f772"),l=">",d="<",h="prototype",p="script",m=f("IE_PROTO"),v=function(){},y=function(e){return d+p+l+e+d+"/"+p+l},g=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",s.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},x=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=i?g(i):b();var e=c.length;while(e--)delete x[h][c[e]];return x()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[h]=r(e),n=new v,v[h]=null,n[m]=e):n=x(),void 0===t?n:o(n,t)}},"7f9a":function(e,t,n){var i=n("da84"),r=n("8925"),o=i.WeakMap;e.exports="function"===typeof o&&/native code/.test(r(o))},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var i=n("c04e"),r=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var c=i(t);c in e?r.f(e,c,o(0,n)):e[c]=n}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8925:function(e,t,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8ba4":function(e,t,n){var i=n("23e7"),r=n("5e89");i({target:"Number",stat:!0},{isInteger:r})},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var i=n("ad6d"),r=n("9f7f"),o=RegExp.prototype.exec,c=String.prototype.replace,a=o,s=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),u=r.UNSUPPORTED_Y||r.BROKEN_CARET,f=void 0!==/()??/.exec("")[1],l=s||f||u;l&&(a=function(e){var t,n,r,a,l=this,d=u&&l.sticky,h=i.call(l),p=l.source,m=0,v=e;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),v=String(e).slice(l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==e[l.lastIndex-1])&&(p="(?: "+p+")",v=" "+v,m++),n=new RegExp("^(?:"+p+")",h)),f&&(n=new RegExp("^"+p+"$(?!\\s)",h)),s&&(t=l.lastIndex),r=o.call(d?n:l,v),d?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:s&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),f&&r&&r.length>1&&c.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r}),e.exports=a},"94ca":function(e,t,n){var i=n("d039"),r=/#|\.prototype\./,o=function(e,t){var n=a[c(e)];return n==u||n!=s&&("function"==typeof t?i(t):!!t)},c=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),o=n("e8b5"),c=n("861d"),a=n("7b0b"),s=n("50c4"),u=n("8418"),f=n("65f0"),l=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",y=h>=51||!r((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),g=l("concat"),b=function(e){if(!c(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},x=!y||!g;i({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,i,r,o,c=a(this),l=f(c,0),d=0;for(t=-1,i=arguments.length;t<i;t++)if(o=-1===t?c:arguments[t],b(o)){if(r=s(o.length),d+r>m)throw TypeError(v);for(n=0;n<r;n++,d++)n in o&&u(l,d,o[n])}else{if(d>=m)throw TypeError(v);u(l,d++,o)}return l.length=d,l}})},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),o=n("825a"),c=n("c04e"),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(o(e),t=c(t,!0),o(n),r)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9f7f":function(e,t,n){"use strict";var i=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("94ca"),c=n("6eeb"),a=n("5135"),s=n("c6b6"),u=n("7156"),f=n("c04e"),l=n("d039"),d=n("7c73"),h=n("241c").f,p=n("06cf").f,m=n("9bf2").f,v=n("58a8").trim,y="Number",g=r[y],b=g.prototype,x=s(d(b))==y,w=function(e){var t,n,i,r,o,c,a,s,u=f(e,!1);if("string"==typeof u&&u.length>2)if(u=v(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(o=u.slice(2),c=o.length,a=0;a<c;a++)if(s=o.charCodeAt(a),s<48||s>r)return NaN;return parseInt(o,i)}return+u};if(o(y,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var E,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(x?l((function(){b.valueOf.call(n)})):s(n)!=y)?u(new g(w(t)),n,C):w(t)},_=i?h(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;_.length>O;O++)a(g,E=_[O])&&!a(C,E)&&m(C,E,p(g,E));C.prototype=b,b.constructor=C,c(r,y,C)}},ab13:function(e,t,n){var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("5135"),c=Object.defineProperty,a={},s=function(e){throw e};e.exports=function(e,t){if(o(a,e))return a[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,f=o(t,0)?t[0]:s,l=o(t,1)?t[1]:void 0;return a[e]=!!n&&!r((function(){if(u&&!i)return!0;var e={length:-1};u?c(e,1,{enumerable:!0,get:s}):e[1]=1,n.call(e,f,l)}))}},af05:function(e,t,n){var i,r;(function(){{function n(n,o){"object"===typeof e.exports?e.exports=o:(i=[],r=function(){return o}.apply(t,i),void 0===r||(e.exports=r))}var o=new function(){this.clone=function(e){return JSON.parse(JSON.stringify(e))},this.isUndefined=function(e){return"undefined"===typeof e},this.whenUndefined=function(e,t){return this.isUndefined(e)?t:e}},c=[{char:"0",shift:")",ie:48,ascii:{norm:48,shift:41}},{char:"1",shift:"!",ie:49,ascii:{norm:49,shift:33}},{char:"2",shift:"@",ie:50,ascii:{norm:50,shift:64}},{char:"3",shift:"#",ie:51,ascii:{norm:51,shift:35}},{char:"4",shift:"$",ie:52,ascii:{norm:52,shift:36}},{char:"5",shift:"%",ie:53,ascii:{norm:53,shift:37}},{char:"6",shift:"^",ie:54,ascii:{norm:54,shift:94}},{char:"7",shift:"&",ie:55,ascii:{norm:55,shift:38}},{char:"8",shift:"*",ie:56,ascii:{norm:56,shift:42}},{char:"9",shift:"(",ie:57,ascii:{norm:57,shift:40}},{char:"a",shift:"A",ie:65,ascii:{norm:97,shift:65}},{char:"b",shift:"B",ie:66,ascii:{norm:98,shift:66}},{char:"c",shift:"C",ie:67,ascii:{norm:99,shift:67}},{char:"d",shift:"D",ie:68,ascii:{norm:100,shift:68}},{char:"e",shift:"E",ie:69,ascii:{norm:101,shift:69}},{char:"f",shift:"F",ie:70,ascii:{norm:102,shift:70}},{char:"g",shift:"G",ie:71,ascii:{norm:103,shift:71}},{char:"h",shift:"H",ie:72,ascii:{norm:104,shift:72}},{char:"i",shift:"I",ie:73,ascii:{norm:105,shift:73}},{char:"j",shift:"J",ie:74,ascii:{norm:106,shift:74}},{char:"k",shift:"K",ie:75,ascii:{norm:107,shift:75}},{char:"l",shift:"L",ie:76,ascii:{norm:108,shift:76}},{char:"m",shift:"M",ie:77,ascii:{norm:109,shift:77}},{char:"n",shift:"N",ie:78,ascii:{norm:110,shift:78}},{char:"o",shift:"O",ie:79,ascii:{norm:111,shift:79}},{char:"p",shift:"P",ie:80,ascii:{norm:112,shift:80}},{char:"q",shift:"Q",ie:81,ascii:{norm:113,shift:81}},{char:"r",shift:"R",ie:82,ascii:{norm:114,shift:82}},{char:"s",shift:"S",ie:83,ascii:{norm:115,shift:83}},{char:"t",shift:"T",ie:84,ascii:{norm:116,shift:84}},{char:"u",shift:"U",ie:85,ascii:{norm:117,shift:85}},{char:"v",shift:"V",ie:86,ascii:{norm:118,shift:86}},{char:"w",shift:"W",ie:87,ascii:{norm:119,shift:87}},{char:"x",shift:"X",ie:88,ascii:{norm:120,shift:88}},{char:"y",shift:"Y",ie:89,ascii:{norm:121,shift:89}},{char:"z",shift:"Z",ie:90,ascii:{norm:122,shift:90}},{char:" ",names:["SPACE_BAR"],ie:32,ascii:{norm:32}},{char:";",shift:":",ie:186,moz:59,ascii:{norm:59,shift:58}},{char:"=",shift:"+",ie:187,moz:61,ascii:{norm:61,shift:43}},{char:",",shift:"<",ie:188,ascii:{norm:44,shift:60}},{char:"-",shift:"_",ie:189,moz:173,ascii:{norm:45,shift:95}},{char:".",shift:">",ie:190,ascii:{norm:46,shift:62}},{char:"/",shift:"?",ie:191,ascii:{norm:47,shift:63}},{char:"`",shift:"~",ie:192,ascii:{norm:96,shift:126}},{char:"[",shift:"{",ie:219,ascii:{norm:91,shift:123}},{char:"\\",shift:"|",ie:220,ascii:{norm:92,shift:124}},{char:"]",shift:"}",ie:221,ascii:{norm:93,shift:125}},{char:"'",shift:'"',ie:222,ascii:{norm:39,shift:34}},{names:["F1"],ie:112},{names:["F2"],ie:113},{names:["F3"],ie:114},{names:["F4"],ie:115},{names:["F5"],ie:116},{names:["F6"],ie:117},{names:["F7"],ie:118},{names:["F8"],ie:119},{names:["F9"],ie:120},{names:["F10"],ie:121},{names:["F11"],ie:122},{names:["F12"],ie:123},{char:"0",names:["NUMPAD_0"],ie:96,ascii:{norm:48}},{char:"1",names:["NUMPAD_1"],ie:97,ascii:{norm:49}},{char:"2",names:["NUMPAD_2"],ie:98,ascii:{norm:50}},{char:"3",names:["NUMPAD_3"],ie:99,ascii:{norm:51}},{char:"4",names:["NUMPAD_4"],ie:100,ascii:{norm:52}},{char:"5",names:["NUMPAD_5"],ie:101,ascii:{norm:53}},{char:"6",names:["NUMPAD_6"],ie:102,ascii:{norm:54}},{char:"7",names:["NUMPAD_7"],ie:103,ascii:{norm:55}},{char:"8",names:["NUMPAD_8"],ie:104,ascii:{norm:56}},{char:"9",names:["NUMPAD_9"],ie:105,ascii:{norm:57}},{char:"*",names:["NUMPAD_MULTIPLY"],ie:106,ascii:{norm:42}},{char:"+",names:["NUMPAD_PLUS"],ie:107,ascii:{norm:43}},{char:"-",names:["NUMPAD_MINUS"],ie:109,ascii:{norm:45}},{char:".",names:["NUMPAD_DECIMAL"],ie:110,ascii:{norm:46}},{char:"/",names:["NUMPAD_DIVIDE"],ie:111,ascii:{norm:47}},{names:["NUMPAD_MIDDLE","MAC_NUM_LOCK"],ie:12},{names:["BACKSPACE"],ie:8},{names:["TAB"],ie:9},{names:["ENTER"],ie:13,ascii:{norm:13}},{names:["SHIFT"],ie:16},{names:["CONTROL"],ie:17},{names:["ALT"],ie:18},{names:["PAUSE","BREAK"],ie:19},{names:["CAPS_LOCK"],ie:20},{names:["ESCAPE"],ie:27},{names:["WINDOWS","COMMAND"],ie:91,moz:224},{names:["OPTION"],ie:93,ascii:{norm:16}},{names:["PRINT_SCREEN"],ie:124,moz:44},{names:["NUM_LOCK"],ie:144},{names:["SCROLL_LOCK"],ie:145},{names:["PAGE_UP"],ie:33},{names:["PAGE_DOWN"],ie:34},{names:["END"],ie:35},{names:["HOME"],ie:36},{names:["LEFT_ARROW"],ie:37},{names:["UP_ARROW"],ie:38},{names:["RIGHT_ARROW"],ie:39},{names:["DOWN_ARROW"],ie:40},{names:["INSERT"],ie:45},{names:["DELETE"],ie:46}],a=function(e){var t=function(t){this.shift={},this.names=e.clone(e.whenUndefined(t.names,[])),this.character=e.whenUndefined(t.char,null),this.shift.character=e.whenUndefined(t.shift,e.whenUndefined(t.char,null)),this.keyCode={ie:t.ie,mozilla:e.whenUndefined(t.moz,t.ie)},this.charCode=null,this.shift.charCode=null,e.isUndefined(t.ascii)||(this.charCode=e.whenUndefined(t.ascii.norm,null),this.shift.charCode=e.whenUndefined(t.ascii.shift,e.whenUndefined(t.ascii.norm,null)))};return t.prototype.isPrintableCharacter=function(){return null!==this.character},t.prototype.hasCharCode=function(){return null!==this.charCode},t.prototype.hasDistinctShiftCharacter=function(){return this.character!==this.shift.character},t.prototype.equals=function(e){return"object"===typeof e?this.keyCode.ie===e.keyCode.ie:this.keyCode.ie===e||this.keyCode.mozilla===e},t}(o);n("Keycoder",new function(e,t,n){var i=null,r=null,o=null;this.key={};var c=this;n.forEach((function(n){e.isUndefined(n.names)||n.names.forEach((function(e){c.key[e]=new t(n)}))})),this._getKeyFromMap=function(n,i){var r=i[n];return e.isUndefined(r)?null:new t(r)},this._initializeKeyCodeToKeyMap=function(){i=[],n.forEach((function(t){i[t.ie]=t,e.isUndefined(t.moz)||(i[t.moz]=t)}))},this._initializeAsciiCodeToKeyMap=function(){r=[],n.forEach((function(t){e.isUndefined(t.ascii)||(e.isUndefined(r[t.ascii.norm])&&(r[t.ascii.norm]=t),e.isUndefined(t.ascii.shift)||e.isUndefined(r[t.ascii.shift])&&(r[t.ascii.shift]=t))}))},this._initializeCharacterToKeyMap=function(){o={},n.forEach((function(t){!e.isUndefined(t.char)&&e.isUndefined(o[t.char])&&(o[t.char]=t),!e.isUndefined(t.shift)&&e.isUndefined(o[t.shift])&&(o[t.shift]=t)}))},this.toCharacter=function(e,t){var n=this.fromKeyCode(e);return null===n?null:t?n.shift.character:n.character},this.charCodeToCharacter=function(e){var t=this.fromCharCode(e);return null===t?null:t.charCode===e?t.character:t.shift.character},this.eventToCharacter=function(e){var t=this.fromEvent(e);return null===t?null:e.shiftKey?t.shift.character:t.character},this.fromCharacter=function(e){return null===o&&this._initializeCharacterToKeyMap(),this._getKeyFromMap(e,o)},this.fromKeyCode=function(e){return null===i&&this._initializeKeyCodeToKeyMap(),this._getKeyFromMap(e,i)},this.fromCharCode=function(e){return null===r&&this._initializeAsciiCodeToKeyMap(),this._getKeyFromMap(e,r)},this.fromEvent=function(e){var t=null;return"keydown"===e.type||"keyup"===e.type?t=this.fromKeyCode(e.keyCode):"keypress"===e.type&&(t=this.fromCharCode(e.charCode)),t},this.allKeys=function(){var e=[];return n.forEach((function(n){e.push(new t(n))})),e}}(o,a,c))}})()},b622:function(e,t,n){var i=n("da84"),r=n("5692"),o=n("5135"),c=n("90e3"),a=n("4930"),s=n("fdbf"),u=r("wks"),f=i.Symbol,l=s?f:f&&f.withoutSetter||c;e.exports=function(e){return o(u,e)||(a&&o(f,e)?u[e]=f[e]:u[e]=l("Symbol."+e)),u[e]}},b727:function(e,t,n){var i=n("0366"),r=n("44ad"),o=n("7b0b"),c=n("50c4"),a=n("65f0"),s=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,f=4==e,l=6==e,d=5==e||l;return function(h,p,m,v){for(var y,g,b=o(h),x=r(b),w=i(p,m,3),E=c(x.length),C=0,_=v||a,O=t?_(h,E):n?_(h,0):void 0;E>C;C++)if((d||C in x)&&(y=x[C],g=w(y,C,b),e))if(t)O[C]=g;else if(g)switch(e){case 3:return!0;case 5:return y;case 6:return C;case 2:s.call(O,y)}else if(f)return!1;return l?-1:u||f?f:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},bba5:function(e,t,n){},c04e:function(e,t,n){var i=n("861d");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c28b:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){var e="__v-click-outside",t="undefined"!=typeof window,n="undefined"!=typeof navigator,i=t&&("ontouchstart"in window||n&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function r(t,n){var r=function(e){var t="function"==typeof e;if(!t&&"object"!=typeof e)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:t?e:e.handler,middleware:e.middleware||function(e){return e},events:e.events||i,isActive:!(!1===e.isActive)}}(n.value),o=r.handler,c=r.middleware;r.isActive&&(t[e]=r.events.map((function(e){return{event:e,handler:function(e){return function(e){var t=e.el,n=e.event,i=e.handler,r=e.middleware;n.target!==t&&!t.contains(n.target)&&r(n)&&i(n)}({event:e,el:t,handler:o,middleware:c})}}})),t[e].forEach((function(n){var i=n.event,r=n.handler;return setTimeout((function(){t[e]&&document.documentElement.addEventListener(i,r,!1)}),0)})))}function o(t){(t[e]||[]).forEach((function(e){return document.documentElement.removeEventListener(e.event,e.handler,!1)})),delete t[e]}var c={bind:r,update:function(e,t){var n=t.value,i=t.oldValue;JSON.stringify(n)!==JSON.stringify(i)&&(o(e),r(e,{value:n}))},unbind:o};return{install:function(e){e.directive("click-outside",c)},directive:c}}))},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("ce4e"),o="__core-js_shared__",c=i[o]||r(o,{});e.exports=c},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},ca84:function(e,t,n){var i=n("5135"),r=n("fc6a"),o=n("4d64").indexOf,c=n("d012");e.exports=function(e,t){var n,a=r(e),s=0,u=[];for(n in a)!i(c,n)&&i(a,n)&&u.push(n);while(t.length>s)i(a,n=t[s++])&&(~o(u,n)||u.push(n));return u}},caad:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").includes,o=n("44d2"),c=n("ae40"),a=c("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!a},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),o=i.document,c=r(o)&&r(o.createElement);e.exports=function(e){return c?o.createElement(e):{}}},ce4e:function(e,t,n){var i=n("da84"),r=n("9112");e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("428f"),r=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d2bb:function(e,t,n){var i=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d784:function(e,t,n){"use strict";n("ac1f");var i=n("6eeb"),r=n("d039"),o=n("b622"),c=n("9263"),a=n("9112"),s=o("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){return"$0"==="a".replace(/./,"$0")}(),l=o("replace"),d=function(){return!!/./[l]&&""===/./[l]("a","$0")}(),h=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,l){var p=o(e),m=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),v=m&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!m||!v||"replace"===e&&(!u||!f||d)||"split"===e&&!h){var y=/./[p],g=n(p,""[e],(function(e,t,n,i,r){return t.exec===c?m&&!r?{done:!0,value:y.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=g[0],x=g[1];i(String.prototype,e,b),i(RegExp.prototype,p,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}l&&a(RegExp.prototype[p],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),c=n("ae40"),a=o("map"),s=c("map");i({target:"Array",proto:!0,forced:!a||!s},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},e893:function(e,t,n){var i=n("5135"),r=n("56ef"),o=n("06cf"),c=n("9bf2");e.exports=function(e,t){for(var n=r(t),a=c.f,s=o.f,u=0;u<n.length;u++){var f=n[u];i(e,f)||a(e,f,s(t,f))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutsideConfig,expression:"clickOutsideConfig"}],staticClass:"email-dropdown-wrapper"},[n("div",{staticClass:"input-button-wrapper"},[n("input",e._g(e._b({ref:"email",class:e.inputClasses,attrs:{type:"email",autocorrect:"off",autocomplete:"off",autocapitalize:"off"},domProps:{value:e.email},on:{focus:e.handleEmailInputFocus,input:e.handleInputEvent,keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.handleListNavigation("up")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.handleListNavigation("down")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleEscPress(t)}]}},"input",e.$attrs,!1),e.$listeners))]),n("div",{class:e.emailDropdownContainerClasses},[e.shouldShowList?n("ul",{staticClass:"email-dropdown-list"},e._l(e.domainsList,(function(t,i){return n("li",{key:i,staticClass:"email-dropdown-item",attrs:{tabindex:"-1","data-dropdown-item-index":i},on:{click:function(n){return e.handleOptionSelection(t)},keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleEscPress(t)},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.handleOptionSelection(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.handleListNavigation("up")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.handleListNavigation("down")},e.convertCharToText]}},[n("span",{staticClass:"email-dropdown-item-username"},[e._v(e._s(e.username))]),n("span",{staticClass:"email-dropdown-item-domain"},[e._v("@"+e._s(t))])])})),0):e._e()])])},o=[],c=(n("99af"),n("4de4"),n("caad"),n("d81d"),n("fb6a"),n("a9e3"),n("8ba4"),n("07ac"),n("ac1f"),n("2532"),n("1276"),n("2ca0"),n("8bbf")),a=n.n(c),s=n("c28b"),u=n.n(s),f=n("af05"),l=n.n(f);a.a.use(u.a);var d={name:"EmailDropdown",inheritAttrs:!1,props:{initialValue:{type:String,default:""},domains:{type:Array,required:!0},defaultDomains:{type:Array,default:function(){return[]}},maxSuggestions:{type:Number,default:4,validator:function(e){var t=Number.isInteger(e);if(!t)throw new Error('Invalid prop: type check failed for prop "maxSuggestions". Expected Integer but got '.concat(e," as value."));return t}},closeOnClickOutside:{type:Boolean,default:!0},inputClasses:{type:[String,Array,Object],default:""}},data:function(){return{email:this.initialValue,isEscPressed:!1,listFocusIndex:0,isFirstFocus:!1,hasclickedOutside:!1,clickOutsideConfig:{handler:this.clickOutsideHandler,middleware:this.middleware,events:["dblclick","click"],isActive:!0}}},computed:{shouldShowList:function(){return Boolean(this.domainsList.length&&!this.isOptionSelected&&!this.isEscPressed)},includesAt:function(){return this.email.toLowerCase().includes("@")},username:function(){return this.email.toLowerCase().split("@")[0]},emailDropdownContainerClasses:function(){return{"email-dropdown-list-container":!0,hide:this.hasclickedOutside}},domain:function(){return this.email.toLowerCase().split("@")[1]||""},suggestionList:function(){var e=this;return this.domainsList.map((function(t){return"".concat(e.username,"@").concat(t).toLowerCase()}))},isOptionSelected:function(){return this.suggestionList.includes(this.email.toLowerCase())},domainsList:function(){var e=this;return this.includesAt?!this.domain.length&&this.defaultDomains.length?this.defaultDomains.slice(0,this.maxSuggestions):this.domain?this.domains.filter((function(t){return t.startsWith(e.domain)})).sort((function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())})).slice(0,this.maxSuggestions):[]:[]}},watch:{email:function(){this.$emit("input",this.email),this.resetFocusIndex(),this.isEscPressed&&(this.isEscPressed=!1)}},methods:{convertCharToText:function(e){var t={ENTER:13,UP:38,DOWN:40},n=l.a.fromEvent(e),i=n&&!Object.values(t).includes(n.charCode);if(i){var r=l.a.eventToCharacter(e);r&&(this.email+=r,this.$refs.email.focus())}},clickOutsideHandler:function(){this.hasclickedOutside=!0},handleInputEvent:function(e){var t=e.target.value;this.email=t},handleOptionSelection:function(e){this.email="".concat(this.username,"@").concat(e),this.$refs.email.focus(),this.listFocusIndex=0},middleware:function(e){var t=e.target,n="email-dropdown-item"===t.className&&t.parentNode.className.includes("email-dropdown-list");return this.closeOnClickOutside&&!n},handleEscPress:function(){this.isEscPressed=!0,this.$refs.email.focus()},handleEmailInputFocus:function(){this.hasclickedOutside=!1,this.resetFocusIndex()},resetFocusIndex:function(){this.isFirstFocus=!1,this.listFocusIndex=0},handleListNavigation:function(e){var t=this;if(this.shouldShowList&&!this.shouldFocusInput(e)){var n="up"==e&&this.listFocusIndex>=1,i="down"==e&&this.listFocusIndex<this.domainsList.length-1;this.isFirstFocus?n?this.listFocusIndex-=1:i&&(this.listFocusIndex+=1):this.isFirstFocus=!0,this.$nextTick((function(){document.querySelector('[data-dropdown-item-index="'.concat(t.listFocusIndex,'"]')).focus()}))}},shouldFocusInput:function(e){var t="up"===e&&0==this.listFocusIndex;return t&&(this.$refs.email.focus(),this.resetFocusIndex()),t}}},h=d;n("1ae5");function p(e,t,n,i,r,o,c,a){var s,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),c?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},u._ssrRegister=s):r&&(s=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),s)if(u.functional){u._injectStyles=s;var f=u.render;u.render=function(e,t){return s.call(t),f(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:e,options:u}}var m=p(h,r,o,!1,null,"3d11e900",null),v=m.exports;t["default"]=v},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("861d"),o=n("e8b5"),c=n("23cb"),a=n("50c4"),s=n("fc6a"),u=n("8418"),f=n("b622"),l=n("1dde"),d=n("ae40"),h=l("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),m=f("species"),v=[].slice,y=Math.max;i({target:"Array",proto:!0,forced:!h||!p},{slice:function(e,t){var n,i,f,l=s(this),d=a(l.length),h=c(e,d),p=c(void 0===t?d:t,d);if(o(l)&&(n=l.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[m],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(l,h,p);for(i=new(void 0===n?Array:n)(y(p-h,0)),f=0;h<p;h++,f++)h in l&&u(i,f,l[h]);return i.length=f,i}})},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
//# sourceMappingURL=vue-email-dropdown.umd.min.js.map