diff --git a/README.md b/README.md
index f02e932..c8169a4 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,7 @@ Locally register the components.
```js
import { VuePassword, VuePasswordAuto } from 'vue-password';
+import "vue-password/dist/VuePassword.css";
export default {
...
@@ -53,6 +54,19 @@ export default {
};
```
+Import the CSS
+---
+Due to Webpack tree shaking improvements, the CSS needs to be explicitly imported within your application.
+
+JavaScript
+```js
+import "vue-password/dist/VuePassword.css";
+```
+CSS
+```css
+@import "~vue-password/dist/VuePassword.css";
+```
+
## Usage
Use the props in your HTML and apply a v-model attribute for the password and any additional props for the desired configuration. The password input uses the $attrs attributes, so form validation props such as required, minlength, and maxlength will function on the input element. The following example shows how vue-password could be used in a registration form using [Tailwind CSS](https://tailwindcss.com/).
@@ -62,6 +76,8 @@ Use the props in your HTML and apply a v-model attribute for the password and an
```js
import Vue from 'vue'
import { VuePassword } from 'vue-password'
+import "vue-password/dist/VuePassword.css";
+
new Vue({
el: '#app',
@@ -162,6 +178,7 @@ The password input emits an input event to use with v-model. Other events are bi
```js
import { VuePassword } from 'vue-password'
+import "vue-password/dist/VuePassword.css";
new Vue({
el: '#app',
diff --git a/dist/VuePassword.common.js b/dist/VuePassword.common.js
index f69061e..4884def 100644
--- a/dist/VuePassword.common.js
+++ b/dist/VuePassword.common.js
@@ -87,6 +87,17 @@ module.exports =
/************************************************************************/
/******/ ({
+/***/ "39ca":
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a59a");
+/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
+/* unused harmony reexport * */
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
+
+/***/ }),
+
/***/ "8bbf":
/***/ (function(module, exports) {
@@ -94,6 +105,13 @@ module.exports = require("vue");
/***/ }),
+/***/ "a59a":
+/***/ (function(module, exports, __webpack_require__) {
+
+// extracted by mini-css-extract-plugin
+
+/***/ }),
+
/***/ "f5a9":
/***/ (function(module, exports) {
@@ -171,15 +189,17 @@ if (typeof window !== 'undefined') {
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
-// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7a820fca-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/VuePassword.vue?vue&type=template&id=601c6563&
-var VuePasswordvue_type_template_id_601c6563_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"VuePassword"},[_c('div',{staticClass:"VuePassword__Container"},[_vm._t("password-input",[_c('input',_vm._g(_vm._b({ref:"input",class:[
+// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"565a7055-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/VuePassword.vue?vue&type=template&id=40aa246a&
+var VuePasswordvue_type_template_id_40aa246a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"VuePassword"},[_c('div',{staticClass:"VuePassword__Container"},[_vm._t("password-input",[_c('input',_vm._g(_vm._b({ref:"input",class:[
_vm.classes,
'VuePassword__Input',
{ 'VuePassword__Input--has-toggle': !_vm.disableToggle }
- ],attrs:{"title":_vm.strengthMessage},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{"strength":this.strength,"type":_vm.type,"updatePassword":_vm.updatePassword,"value":_vm.value}),(!_vm.disableToggle)?_vm._t("password-toggle",[_c('button',{staticClass:"VuePassword__Toggle",attrs:{"title":_vm.toggleMessage,"type":"button"},on:{"click":_vm.togglePassword}},[(this.type === 'text')?_vm._t("password-hide",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}})])]):_vm._t("password-show",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})])])],2)],{"toggle":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t("strength-meter",[_c('div',{staticClass:"VuePassword__Meter",attrs:{"title":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{"preserveAspectRatio":"none","data-strength":i,"viewBox":"0 0 2 1"}},[_c('rect',{attrs:{"width":"100%","height":"100%"}})])}),0)],{"strength":this.strength,"strengthClass":_vm.strengthClass,"strengthClasses":_vm.strengthClasses,"strengthMessage":_vm.strengthMessage,"strengthMessages":_vm.strengthMessages}):_vm._e()],2)}
+ ],attrs:{"title":_vm.strengthMessage,"type":_vm.type},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{"strength":this.strength,"type":_vm.type,"updatePassword":_vm.updatePassword,"value":_vm.value}),(!_vm.disableToggle)?_vm._t("password-toggle",[_c('button',{staticClass:"VuePassword__Toggle",attrs:{"title":_vm.toggleMessage,"type":"button"},on:{"click":_vm.togglePassword}},[(this.type === 'text')?_vm._t("password-hide",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}})])]):_vm._t("password-show",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})])])],2)],{"toggle":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t("strength-meter",[_c('div',{staticClass:"VuePassword__Meter",attrs:{"title":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{"preserveAspectRatio":"none","data-strength":i,"viewBox":"0 0 2 1"}},[_c('rect',{attrs:{"width":"100%","height":"100%"}})])}),0)],{"strength":this.strength,"strengthClass":_vm.strengthClass,"strengthClasses":_vm.strengthClasses,"strengthMessage":_vm.strengthMessage,"strengthMessages":_vm.strengthMessages}):_vm._e()],2)}
var staticRenderFns = []
+// CONCATENATED MODULE: ./src/components/VuePassword.vue?vue&type=template&id=40aa246a&
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VuePassword.vue?vue&type=script&lang=js&
//
//
@@ -263,14 +283,11 @@ var staticRenderFns = []
//
//
//
-//
-//
-//
/* harmony default export */ var VuePasswordvue_type_script_lang_js_ = ({
inheritAttrs: false,
data: function data() {
return {
- type: this.$attrs.type
+ type: this.$attrs.type ? this.$attrs.type : "password"
};
},
props: {
@@ -351,11 +368,6 @@ var staticRenderFns = []
}
}
},
- mounted: function mounted() {
- if (!this.$attrs.type) {
- this.togglePassword();
- }
- },
methods: {
/**
* Get the current strength class based on the current strength score.
@@ -392,6 +404,9 @@ var staticRenderFns = []
});
// CONCATENATED MODULE: ./src/components/VuePassword.vue?vue&type=script&lang=js&
/* harmony default export */ var components_VuePasswordvue_type_script_lang_js_ = (VuePasswordvue_type_script_lang_js_);
+// EXTERNAL MODULE: ./src/components/VuePassword.vue?vue&type=style&index=0&lang=css&
+var VuePasswordvue_type_style_index_0_lang_css_ = __webpack_require__("39ca");
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
@@ -498,7 +513,7 @@ function normalizeComponent (
var component = normalizeComponent(
components_VuePasswordvue_type_script_lang_js_,
- VuePasswordvue_type_template_id_601c6563_render,
+ VuePasswordvue_type_template_id_40aa246a_render,
staticRenderFns,
false,
null,
diff --git a/dist/VuePassword.common.js.map b/dist/VuePassword.common.js.map
index 6f490bf..c82a2d8 100644
--- a/dist/VuePassword.common.js.map
+++ b/dist/VuePassword.common.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://VuePassword/webpack/bootstrap","webpack://VuePassword/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VuePassword/external {\"commonjs\":\"zxcvbn\",\"commonjs2\":\"zxcvbn\",\"root\":\"zxcvbn\"}","webpack://VuePassword/./node_modules/current-script-polyfill/currentScript.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VuePassword/./src/components/VuePassword.vue?7ee4","webpack://VuePassword/src/components/VuePassword.vue","webpack://VuePassword/./src/components/VuePassword.vue?4ec8","webpack://VuePassword/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VuePassword/./src/components/VuePassword.vue","webpack://VuePassword/src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue?f747","webpack://VuePassword/./src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/index.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["install","Vue","options","type","component","name","VuePasswordAuto","VuePassword","window","undefined"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;AClFA,gC;;;;;;;ACAA,mC;;;;;;;ACAA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;;;;AC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AA,OAHA;AAKA,KAhBA;AAiBA;AACA,SADA,iBACA;AACA;AACA,OAHA;AAIA,SAJA,eAIA,KAJA,EAIA;AACA;AACA;AANA,KAjBA;AAyBA,iBAzBA,2BAyBA;AACA,aACA,uCACA,mCAFA;AAIA,KA9BA;AA+BA,mBA/BA,6BA+BA;AACA;AACA;AACA;;AACA,aACA,wCACA,oCAFA;AAIA,KAvCA;AAwCA,iBAxCA,2BAwCA;AACA;AACA;AA1CA,GAjDA;AA6FA;AACA,YADA,oBACA,QADA,EACA,QADA,EACA;AACA;AACA;AACA;AACA;AALA,GA7FA;AAoGA,SApGA,qBAoGA;AACA;AACA;AACA;AACA,GAxGA;AAyGA;AACA;;;;;;AAMA,oBAPA,4BAOA,QAPA,EAOA;AACA;AACA;AACA;;AACA;AACA,KAZA;;AAaA;;;AAGA,kBAhBA,4BAgBA;AACA;AACA;AACA;AACA,KApBA;;AAqBA;;;;;AAKA,kBA1BA,0BA0BA,KA1BA,EA0BA;AACA;AACA;AA5BA;AAzGA,G;;ACtFqU,CAAgB,sHAAG,EAAC,C;;ACAzV;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5F0F;AAC3B;AACL;AACa;;;AAGvE;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,+CAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,iE;;;;;;;;;;AClBf;AACA;AAEA;AACA,yBADA;AAEA,kBAFA;AAGA;AAAA;AAAA,GAHA;AAIA,QAJA,kBAIA,CAJA,EAIA,OAJA,EAIA;AACA;AACA,2DACA,wBADA,GAEA,EAFA;AAGA;AAEA;AACA,+BACA,UADA;AAEA;AAFA,QADA;AAKA,2BALA;AAMA;AANA;AAQA;AAnBA,G;;ACJyU,CAAgB,8HAAG,EAAC,C;;ACA7V,IAAI,sBAAM,EAAE,+BAAe;AACwC;AACL;;;AAG9D;AAC0F;AAC1F,IAAI,yBAAS,GAAG,kBAAU;AAC1B,EAAE,kDAAM;AACR,EAAE,sBAAM;AACR,EAAE,+BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,6EAAS,Q;;;;AClBxB;AACA;AACA;;AAEA,SAASA,OAAT,CAAiBC,GAAjB,EAAoC;AAAA,MAAdC,OAAc,uEAAJ,EAAI;;AAClC,MAAIA,OAAO,CAACC,IAAR,KAAiB,MAArB,EAA6B;AAC3BF,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CC,eAA7C;AACD,GAFD,MAEO;AACLL,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CE,WAA7C;AACD;AACF;;AAEcP,+CAAf;;AAEA,IAAI,QAAOQ,MAAP,yCAAOA,MAAP,OAAkBC,SAAlB,IAA+BD,MAAM,CAACP,GAAtC,IAA6CO,MAAM,CAACP,GAAP,KAAeA,sDAAhE,EAAqE;AACnED,SAAO,CAACQ,MAAM,CAACP,GAAR,CAAP;AACD;;;;AChBD;AAAA;AAAwB;AACA;AACT,kFAAG;AACI","file":"VuePassword.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","module.exports = require(\"vue\");","module.exports = require(\"zxcvbn\");","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"VuePassword\"},[_c('div',{staticClass:\"VuePassword__Container\"},[_vm._t(\"password-input\",[_c('input',_vm._g(_vm._b({ref:\"input\",class:[\n _vm.classes,\n 'VuePassword__Input',\n { 'VuePassword__Input--has-toggle': !_vm.disableToggle }\n ],attrs:{\"title\":_vm.strengthMessage},domProps:{\"value\":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{\"strength\":this.strength,\"type\":_vm.type,\"updatePassword\":_vm.updatePassword,\"value\":_vm.value}),(!_vm.disableToggle)?_vm._t(\"password-toggle\",[_c('button',{staticClass:\"VuePassword__Toggle\",attrs:{\"title\":_vm.toggleMessage,\"type\":\"button\"},on:{\"click\":_vm.togglePassword}},[(this.type === 'text')?_vm._t(\"password-hide\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z\"}})])]):_vm._t(\"password-show\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z\"}})])])],2)],{\"toggle\":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t(\"strength-meter\",[_c('div',{staticClass:\"VuePassword__Meter\",attrs:{\"title\":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{\"preserveAspectRatio\":\"none\",\"data-strength\":i,\"viewBox\":\"0 0 2 1\"}},[_c('rect',{attrs:{\"width\":\"100%\",\"height\":\"100%\"}})])}),0)],{\"strength\":this.strength,\"strengthClass\":_vm.strengthClass,\"strengthClasses\":_vm.strengthClasses,\"strengthMessage\":_vm.strengthMessage,\"strengthMessages\":_vm.strengthMessages}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VuePassword.vue?vue&type=template&id=601c6563&\"\nimport script from \"./VuePassword.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePassword.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VuePassword.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"","var render, staticRenderFns\nimport script from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from \"vue\";\r\nimport VuePassword from \"./components/VuePassword.vue\";\r\nimport VuePasswordAuto from \"./components/VuePasswordAuto.vue\";\r\n\r\nfunction install(Vue, options = {}) {\r\n if (options.type === \"auto\") {\r\n Vue.component(options.name || \"VuePassword\", VuePasswordAuto);\r\n } else {\r\n Vue.component(options.name || \"VuePassword\", VuePassword);\r\n }\r\n}\r\n\r\nexport default install;\r\n\r\nif (typeof window !== undefined && window.Vue && window.Vue === Vue) {\r\n install(window.Vue);\r\n}\r\n\r\nexport { VuePassword, VuePasswordAuto };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack://VuePassword/webpack/bootstrap","webpack://VuePassword/./src/components/VuePassword.vue?8c9f","webpack://VuePassword/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VuePassword/./src/components/VuePassword.vue?bcc8","webpack://VuePassword/external {\"commonjs\":\"zxcvbn\",\"commonjs2\":\"zxcvbn\",\"root\":\"zxcvbn\"}","webpack://VuePassword/./node_modules/current-script-polyfill/currentScript.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VuePassword/./src/components/VuePassword.vue?f226","webpack://VuePassword/src/components/VuePassword.vue","webpack://VuePassword/./src/components/VuePassword.vue?4ec8","webpack://VuePassword/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VuePassword/./src/components/VuePassword.vue","webpack://VuePassword/src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue?f747","webpack://VuePassword/./src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/index.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["install","Vue","options","type","component","name","VuePasswordAuto","VuePassword","window","undefined"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;AClFA;AAAA;AAAA;AAA+b,CAAgB,6eAAG,EAAC,C;;;;;;;ACAnd,gC;;;;;;;ACAA,uC;;;;;;;ACAA,mC;;;;;;;ACAA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;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;AACA,KATA;AAUA,aAVA,uBAUA;AACA;AAAA;AAAA;AACA,KAZA;AAaA;AACA,SADA,iBACA;AACA;AACA,OAHA;AAIA,SAJA,eAIA,KAJA,EAIA;AACA;AACA;AANA,KAbA;AAqBA,iBArBA,2BAqBA;AACA,aACA,uCACA,mCAFA;AAIA,KA1BA;AA2BA,mBA3BA,6BA2BA;AACA;AACA;AACA;;AACA,aACA,wCACA,oCAFA;AAIA,KAnCA;AAoCA,iBApCA,2BAoCA;AACA;AACA;AAtCA,GAjDA;AAyFA;AACA,YADA,oBACA,QADA,EACA,QADA,EACA;AACA;AACA;AACA;AACA;AALA,GAzFA;AAgGA;AACA;;;;;;AAMA,oBAPA,4BAOA,QAPA,EAOA;AACA;AACA;AACA;;AACA;AACA,KAZA;;AAaA;;;AAGA,kBAhBA,4BAgBA;AACA;AACA;AACA;AACA,KApBA;;AAqBA;;;;;AAKA,kBA1BA,0BA0BA,KA1BA,EA0BA;AACA;AACA;AA5BA;AAhGA,G;;ACnFqU,CAAgB,sHAAG,EAAC,C;;;;;ACAzV;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5F0F;AAC3B;AACL;AACa;;;AAGvE;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,+CAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,iE;;;;;;;;;;AClBf;AACA;AAEA;AACA,yBADA;AAEA,kBAFA;AAGA;AAAA;AAAA,GAHA;AAIA,QAJA,kBAIA,CAJA,EAIA,OAJA,EAIA;AACA;AACA,2DACA,wBADA,GAEA,EAFA;AAGA;AAEA;AACA,+BACA,UADA;AAEA;AAFA,QADA;AAKA,2BALA;AAMA;AANA;AAQA;AAnBA,G;;ACJyU,CAAgB,8HAAG,EAAC,C;;ACA7V,IAAI,sBAAM,EAAE,+BAAe;AACwC;AACL;;;AAG9D;AAC0F;AAC1F,IAAI,yBAAS,GAAG,kBAAU;AAC1B,EAAE,kDAAM;AACR,EAAE,sBAAM;AACR,EAAE,+BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,6EAAS,Q;;;;AClBxB;AACA;AACA;;AAEA,SAASA,OAAT,CAAiBC,GAAjB,EAAoC;AAAA,MAAdC,OAAc,uEAAJ,EAAI;;AAClC,MAAIA,OAAO,CAACC,IAAR,KAAiB,MAArB,EAA6B;AAC3BF,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CC,eAA7C;AACD,GAFD,MAEO;AACLL,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CE,WAA7C;AACD;AACF;;AAEcP,+CAAf;;AAEA,IAAI,QAAOQ,MAAP,yCAAOA,MAAP,OAAkBC,SAAlB,IAA+BD,MAAM,CAACP,GAAtC,IAA6CO,MAAM,CAACP,GAAP,KAAeA,sDAAhE,EAAqE;AACnED,SAAO,CAACQ,MAAM,CAACP,GAAR,CAAP;AACD;;;;AChBD;AAAA;AAAwB;AACA;AACT,kFAAG;AACI","file":"VuePassword.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=style&index=0&lang=css&\"","module.exports = require(\"vue\");","// extracted by mini-css-extract-plugin","module.exports = require(\"zxcvbn\");","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"VuePassword\"},[_c('div',{staticClass:\"VuePassword__Container\"},[_vm._t(\"password-input\",[_c('input',_vm._g(_vm._b({ref:\"input\",class:[\n _vm.classes,\n 'VuePassword__Input',\n { 'VuePassword__Input--has-toggle': !_vm.disableToggle }\n ],attrs:{\"title\":_vm.strengthMessage,\"type\":_vm.type},domProps:{\"value\":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{\"strength\":this.strength,\"type\":_vm.type,\"updatePassword\":_vm.updatePassword,\"value\":_vm.value}),(!_vm.disableToggle)?_vm._t(\"password-toggle\",[_c('button',{staticClass:\"VuePassword__Toggle\",attrs:{\"title\":_vm.toggleMessage,\"type\":\"button\"},on:{\"click\":_vm.togglePassword}},[(this.type === 'text')?_vm._t(\"password-hide\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z\"}})])]):_vm._t(\"password-show\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z\"}})])])],2)],{\"toggle\":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t(\"strength-meter\",[_c('div',{staticClass:\"VuePassword__Meter\",attrs:{\"title\":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{\"preserveAspectRatio\":\"none\",\"data-strength\":i,\"viewBox\":\"0 0 2 1\"}},[_c('rect',{attrs:{\"width\":\"100%\",\"height\":\"100%\"}})])}),0)],{\"strength\":this.strength,\"strengthClass\":_vm.strengthClass,\"strengthClasses\":_vm.strengthClasses,\"strengthMessage\":_vm.strengthMessage,\"strengthMessages\":_vm.strengthMessages}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n \n \n
\n \n \n
\n\n
\n \n \n
\n \n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VuePassword.vue?vue&type=template&id=40aa246a&\"\nimport script from \"./VuePassword.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePassword.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VuePassword.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"","var render, staticRenderFns\nimport script from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from \"vue\";\r\nimport VuePassword from \"./components/VuePassword.vue\";\r\nimport VuePasswordAuto from \"./components/VuePasswordAuto.vue\";\r\n\r\nfunction install(Vue, options = {}) {\r\n if (options.type === \"auto\") {\r\n Vue.component(options.name || \"VuePassword\", VuePasswordAuto);\r\n } else {\r\n Vue.component(options.name || \"VuePassword\", VuePassword);\r\n }\r\n}\r\n\r\nexport default install;\r\n\r\nif (typeof window !== undefined && window.Vue && window.Vue === Vue) {\r\n install(window.Vue);\r\n}\r\n\r\nexport { VuePassword, VuePasswordAuto };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/VuePassword.css b/dist/VuePassword.css
new file mode 100644
index 0000000..8e23c57
--- /dev/null
+++ b/dist/VuePassword.css
@@ -0,0 +1 @@
+.VuePassword__Container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;position:relative}.VuePassword__Input{border:1px solid #cbd5e0;border-radius:.125rem;display:block;padding:.5rem .75rem;width:100%}.VuePassword__Input--has-toggle{padding-right:3rem}.VuePassword__Toggle{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:none;border:none;bottom:0;color:#718096;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:.75rem;outline:none;position:absolute;right:0;top:0}.VuePassword__Toggle:hover{color:#4a5568;-webkit-transition:color .3s ease-in-out;transition:color .3s ease-in-out}.VuePassword__Toggle-Icon{fill:currentColor;pointer-events:none;width:1rem}.VuePassword__Meter{color:#afafaf;display:-webkit-box;display:-ms-flexbox;display:flex;height:.25rem;margin-left:-.25%;margin-right:-.25%;margin-top:.125rem}.VuePassword__Meter svg{fill:currentColor;height:100%;padding-left:.25%;padding-right:.25%;-webkit-transition:all .6s ease-in-out;transition:all .6s ease-in-out;width:25%}.VuePassword--very-weak{color:#afafaf}.VuePassword--weak{color:#e53e3e}.VuePassword--medium{color:#fc8181}.VuePassword--good{color:#68d391}.VuePassword--great{color:#38a169}.VuePassword__Message{cursor:default;font-size:1rem;padding-left:.5rem;padding-right:.5rem;text-align:right;text-transform:uppercase}
\ No newline at end of file
diff --git a/dist/VuePassword.umd.js b/dist/VuePassword.umd.js
index 35b1b7f..9e759fa 100644
--- a/dist/VuePassword.umd.js
+++ b/dist/VuePassword.umd.js
@@ -96,6 +96,17 @@ return /******/ (function(modules) { // webpackBootstrap
/************************************************************************/
/******/ ({
+/***/ "39ca":
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a59a");
+/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
+/* unused harmony reexport * */
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
+
+/***/ }),
+
/***/ "8bbf":
/***/ (function(module, exports) {
@@ -103,6 +114,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
/***/ }),
+/***/ "a59a":
+/***/ (function(module, exports, __webpack_require__) {
+
+// extracted by mini-css-extract-plugin
+
+/***/ }),
+
/***/ "f5a9":
/***/ (function(module, exports) {
@@ -180,15 +198,17 @@ if (typeof window !== 'undefined') {
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
-// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7a820fca-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/VuePassword.vue?vue&type=template&id=601c6563&
-var VuePasswordvue_type_template_id_601c6563_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"VuePassword"},[_c('div',{staticClass:"VuePassword__Container"},[_vm._t("password-input",[_c('input',_vm._g(_vm._b({ref:"input",class:[
+// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"565a7055-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/VuePassword.vue?vue&type=template&id=40aa246a&
+var VuePasswordvue_type_template_id_40aa246a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"VuePassword"},[_c('div',{staticClass:"VuePassword__Container"},[_vm._t("password-input",[_c('input',_vm._g(_vm._b({ref:"input",class:[
_vm.classes,
'VuePassword__Input',
{ 'VuePassword__Input--has-toggle': !_vm.disableToggle }
- ],attrs:{"title":_vm.strengthMessage},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{"strength":this.strength,"type":_vm.type,"updatePassword":_vm.updatePassword,"value":_vm.value}),(!_vm.disableToggle)?_vm._t("password-toggle",[_c('button',{staticClass:"VuePassword__Toggle",attrs:{"title":_vm.toggleMessage,"type":"button"},on:{"click":_vm.togglePassword}},[(this.type === 'text')?_vm._t("password-hide",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}})])]):_vm._t("password-show",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})])])],2)],{"toggle":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t("strength-meter",[_c('div',{staticClass:"VuePassword__Meter",attrs:{"title":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{"preserveAspectRatio":"none","data-strength":i,"viewBox":"0 0 2 1"}},[_c('rect',{attrs:{"width":"100%","height":"100%"}})])}),0)],{"strength":this.strength,"strengthClass":_vm.strengthClass,"strengthClasses":_vm.strengthClasses,"strengthMessage":_vm.strengthMessage,"strengthMessages":_vm.strengthMessages}):_vm._e()],2)}
+ ],attrs:{"title":_vm.strengthMessage,"type":_vm.type},domProps:{"value":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{"strength":this.strength,"type":_vm.type,"updatePassword":_vm.updatePassword,"value":_vm.value}),(!_vm.disableToggle)?_vm._t("password-toggle",[_c('button',{staticClass:"VuePassword__Toggle",attrs:{"title":_vm.toggleMessage,"type":"button"},on:{"click":_vm.togglePassword}},[(this.type === 'text')?_vm._t("password-hide",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}})])]):_vm._t("password-show",[_c('svg',{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20"}},[_c('path',{attrs:{"d":"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})])])],2)],{"toggle":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t("strength-meter",[_c('div',{staticClass:"VuePassword__Meter",attrs:{"title":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{"preserveAspectRatio":"none","data-strength":i,"viewBox":"0 0 2 1"}},[_c('rect',{attrs:{"width":"100%","height":"100%"}})])}),0)],{"strength":this.strength,"strengthClass":_vm.strengthClass,"strengthClasses":_vm.strengthClasses,"strengthMessage":_vm.strengthMessage,"strengthMessages":_vm.strengthMessages}):_vm._e()],2)}
var staticRenderFns = []
+// CONCATENATED MODULE: ./src/components/VuePassword.vue?vue&type=template&id=40aa246a&
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VuePassword.vue?vue&type=script&lang=js&
//
//
@@ -272,14 +292,11 @@ var staticRenderFns = []
//
//
//
-//
-//
-//
/* harmony default export */ var VuePasswordvue_type_script_lang_js_ = ({
inheritAttrs: false,
data: function data() {
return {
- type: this.$attrs.type
+ type: this.$attrs.type ? this.$attrs.type : "password"
};
},
props: {
@@ -360,11 +377,6 @@ var staticRenderFns = []
}
}
},
- mounted: function mounted() {
- if (!this.$attrs.type) {
- this.togglePassword();
- }
- },
methods: {
/**
* Get the current strength class based on the current strength score.
@@ -401,6 +413,9 @@ var staticRenderFns = []
});
// CONCATENATED MODULE: ./src/components/VuePassword.vue?vue&type=script&lang=js&
/* harmony default export */ var components_VuePasswordvue_type_script_lang_js_ = (VuePasswordvue_type_script_lang_js_);
+// EXTERNAL MODULE: ./src/components/VuePassword.vue?vue&type=style&index=0&lang=css&
+var VuePasswordvue_type_style_index_0_lang_css_ = __webpack_require__("39ca");
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
@@ -507,7 +522,7 @@ function normalizeComponent (
var component = normalizeComponent(
components_VuePasswordvue_type_script_lang_js_,
- VuePasswordvue_type_template_id_601c6563_render,
+ VuePasswordvue_type_template_id_40aa246a_render,
staticRenderFns,
false,
null,
diff --git a/dist/VuePassword.umd.js.map b/dist/VuePassword.umd.js.map
index 8711b95..fd64199 100644
--- a/dist/VuePassword.umd.js.map
+++ b/dist/VuePassword.umd.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://VuePassword/webpack/universalModuleDefinition","webpack://VuePassword/webpack/bootstrap","webpack://VuePassword/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VuePassword/external {\"commonjs\":\"zxcvbn\",\"commonjs2\":\"zxcvbn\",\"root\":\"zxcvbn\"}","webpack://VuePassword/./node_modules/current-script-polyfill/currentScript.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VuePassword/./src/components/VuePassword.vue?7ee4","webpack://VuePassword/src/components/VuePassword.vue","webpack://VuePassword/./src/components/VuePassword.vue?4ec8","webpack://VuePassword/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VuePassword/./src/components/VuePassword.vue","webpack://VuePassword/src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue?f747","webpack://VuePassword/./src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/index.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["install","Vue","options","type","component","name","VuePasswordAuto","VuePassword","window","undefined"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA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5BA;AAzGA,G;;ACtFqU,CAAgB,sHAAG,EAAC,C;;ACAzV;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5F0F;AAC3B;AACL;AACa;;;AAGvE;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,+CAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,iE;;;;;;;;;;AClBf;AACA;AAEA;AACA,yBADA;AAEA,kBAFA;AAGA;AAAA;AAAA,GAHA;AAIA,QAJA,kBAIA,CAJA,EAIA,OAJA,EAIA;AACA;AACA,2DACA,wBADA,GAEA,EAFA;AAGA;AAEA;AACA,+BACA,UADA;AAEA;AAFA,QADA;AAKA,2BALA;AAMA;AANA;AAQA;AAnBA,G;;ACJyU,CAAgB,8HAAG,EAAC,C;;ACA7V,IAAI,sBAAM,EAAE,+BAAe;AACwC;AACL;;;AAG9D;AAC0F;AAC1F,IAAI,yBAAS,GAAG,kBAAU;AAC1B,EAAE,kDAAM;AACR,EAAE,sBAAM;AACR,EAAE,+BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,6EAAS,Q;;;;AClBxB;AACA;AACA;;AAEA,SAASA,OAAT,CAAiBC,GAAjB,EAAoC;AAAA,MAAdC,OAAc,uEAAJ,EAAI;;AAClC,MAAIA,OAAO,CAACC,IAAR,KAAiB,MAArB,EAA6B;AAC3BF,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CC,eAA7C;AACD,GAFD,MAEO;AACLL,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CE,WAA7C;AACD;AACF;;AAEcP,+CAAf;;AAEA,IAAI,QAAOQ,MAAP,yCAAOA,MAAP,OAAkBC,SAAlB,IAA+BD,MAAM,CAACP,GAAtC,IAA6CO,MAAM,CAACP,GAAP,KAAeA,sDAAhE,EAAqE;AACnED,SAAO,CAACQ,MAAM,CAACP,GAAR,CAAP;AACD;;;;AChBD;AAAA;AAAwB;AACA;AACT,kFAAG;AACI","file":"VuePassword.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([, ], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VuePassword\"] = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse\n\t\troot[\"VuePassword\"] = factory(root[\"Vue\"], root[\"zxcvbn\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_f5a9__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","module.exports = __WEBPACK_EXTERNAL_MODULE_f5a9__;","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"VuePassword\"},[_c('div',{staticClass:\"VuePassword__Container\"},[_vm._t(\"password-input\",[_c('input',_vm._g(_vm._b({ref:\"input\",class:[\n _vm.classes,\n 'VuePassword__Input',\n { 'VuePassword__Input--has-toggle': !_vm.disableToggle }\n ],attrs:{\"title\":_vm.strengthMessage},domProps:{\"value\":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{\"strength\":this.strength,\"type\":_vm.type,\"updatePassword\":_vm.updatePassword,\"value\":_vm.value}),(!_vm.disableToggle)?_vm._t(\"password-toggle\",[_c('button',{staticClass:\"VuePassword__Toggle\",attrs:{\"title\":_vm.toggleMessage,\"type\":\"button\"},on:{\"click\":_vm.togglePassword}},[(this.type === 'text')?_vm._t(\"password-hide\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z\"}})])]):_vm._t(\"password-show\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z\"}})])])],2)],{\"toggle\":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t(\"strength-meter\",[_c('div',{staticClass:\"VuePassword__Meter\",attrs:{\"title\":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{\"preserveAspectRatio\":\"none\",\"data-strength\":i,\"viewBox\":\"0 0 2 1\"}},[_c('rect',{attrs:{\"width\":\"100%\",\"height\":\"100%\"}})])}),0)],{\"strength\":this.strength,\"strengthClass\":_vm.strengthClass,\"strengthClasses\":_vm.strengthClasses,\"strengthMessage\":_vm.strengthMessage,\"strengthMessages\":_vm.strengthMessages}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VuePassword.vue?vue&type=template&id=601c6563&\"\nimport script from \"./VuePassword.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePassword.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VuePassword.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"","var render, staticRenderFns\nimport script from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from \"vue\";\r\nimport VuePassword from \"./components/VuePassword.vue\";\r\nimport VuePasswordAuto from \"./components/VuePasswordAuto.vue\";\r\n\r\nfunction install(Vue, options = {}) {\r\n if (options.type === \"auto\") {\r\n Vue.component(options.name || \"VuePassword\", VuePasswordAuto);\r\n } else {\r\n Vue.component(options.name || \"VuePassword\", VuePassword);\r\n }\r\n}\r\n\r\nexport default install;\r\n\r\nif (typeof window !== undefined && window.Vue && window.Vue === Vue) {\r\n install(window.Vue);\r\n}\r\n\r\nexport { VuePassword, VuePasswordAuto };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack://VuePassword/webpack/universalModuleDefinition","webpack://VuePassword/webpack/bootstrap","webpack://VuePassword/./src/components/VuePassword.vue?8c9f","webpack://VuePassword/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VuePassword/./src/components/VuePassword.vue?bcc8","webpack://VuePassword/external {\"commonjs\":\"zxcvbn\",\"commonjs2\":\"zxcvbn\",\"root\":\"zxcvbn\"}","webpack://VuePassword/./node_modules/current-script-polyfill/currentScript.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VuePassword/./src/components/VuePassword.vue?f226","webpack://VuePassword/src/components/VuePassword.vue","webpack://VuePassword/./src/components/VuePassword.vue?4ec8","webpack://VuePassword/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VuePassword/./src/components/VuePassword.vue","webpack://VuePassword/src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue?f747","webpack://VuePassword/./src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/index.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["install","Vue","options","type","component","name","VuePasswordAuto","VuePassword","window","undefined"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;AClFA;AAAA;AAAA;AAA+b,CAAgB,6eAAG,EAAC,C;;;;;;;ACAnd,mD;;;;;;;ACAA,uC;;;;;;;ACAA,kD;;;;;;;ACAA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;;;;ACnCD;;AAEA;AACA,MAAM,IAAu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SAJA,eAIA,KAJA,EAIA;AACA;AACA;AANA,KAbA;AAqBA,iBArBA,2BAqBA;AACA,aACA,uCACA,mCAFA;AAIA,KA1BA;AA2BA,mBA3BA,6BA2BA;AACA;AACA;AACA;;AACA,aACA,wCACA,oCAFA;AAIA,KAnCA;AAoCA,iBApCA,2BAoCA;AACA;AACA;AAtCA,GAjDA;AAyFA;AACA,YADA,oBACA,QADA,EACA,QADA,EACA;AACA;AACA;AACA;AACA;AALA,GAzFA;AAgGA;AACA;;;;;;AAMA,oBAPA,4BAOA,QAPA,EAOA;AACA;AACA;AACA;;AACA;AACA,KAZA;;AAaA;;;AAGA,kBAhBA,4BAgBA;AACA;AACA;AACA;AACA,KApBA;;AAqBA;;;;;AAKA,kBA1BA,0BA0BA,KA1BA,EA0BA;AACA;AACA;AA5BA;AAhGA,G;;ACnFqU,CAAgB,sHAAG,EAAC,C;;;;;ACAzV;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC5F0F;AAC3B;AACL;AACa;;;AAGvE;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,+CAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,iE;;;;;;;;;;AClBf;AACA;AAEA;AACA,yBADA;AAEA,kBAFA;AAGA;AAAA;AAAA,GAHA;AAIA,QAJA,kBAIA,CAJA,EAIA,OAJA,EAIA;AACA;AACA,2DACA,wBADA,GAEA,EAFA;AAGA;AAEA;AACA,+BACA,UADA;AAEA;AAFA,QADA;AAKA,2BALA;AAMA;AANA;AAQA;AAnBA,G;;ACJyU,CAAgB,8HAAG,EAAC,C;;ACA7V,IAAI,sBAAM,EAAE,+BAAe;AACwC;AACL;;;AAG9D;AAC0F;AAC1F,IAAI,yBAAS,GAAG,kBAAU;AAC1B,EAAE,kDAAM;AACR,EAAE,sBAAM;AACR,EAAE,+BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,6EAAS,Q;;;;AClBxB;AACA;AACA;;AAEA,SAASA,OAAT,CAAiBC,GAAjB,EAAoC;AAAA,MAAdC,OAAc,uEAAJ,EAAI;;AAClC,MAAIA,OAAO,CAACC,IAAR,KAAiB,MAArB,EAA6B;AAC3BF,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CC,eAA7C;AACD,GAFD,MAEO;AACLL,OAAG,CAACG,SAAJ,CAAcF,OAAO,CAACG,IAAR,IAAgB,aAA9B,EAA6CE,WAA7C;AACD;AACF;;AAEcP,+CAAf;;AAEA,IAAI,QAAOQ,MAAP,yCAAOA,MAAP,OAAkBC,SAAlB,IAA+BD,MAAM,CAACP,GAAtC,IAA6CO,MAAM,CAACP,GAAP,KAAeA,sDAAhE,EAAqE;AACnED,SAAO,CAACQ,MAAM,CAACP,GAAR,CAAP;AACD;;;;AChBD;AAAA;AAAwB;AACA;AACT,kFAAG;AACI","file":"VuePassword.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([, ], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VuePassword\"] = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse\n\t\troot[\"VuePassword\"] = factory(root[\"Vue\"], root[\"zxcvbn\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_f5a9__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=style&index=0&lang=css&\"","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// extracted by mini-css-extract-plugin","module.exports = __WEBPACK_EXTERNAL_MODULE_f5a9__;","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"VuePassword\"},[_c('div',{staticClass:\"VuePassword__Container\"},[_vm._t(\"password-input\",[_c('input',_vm._g(_vm._b({ref:\"input\",class:[\n _vm.classes,\n 'VuePassword__Input',\n { 'VuePassword__Input--has-toggle': !_vm.disableToggle }\n ],attrs:{\"title\":_vm.strengthMessage,\"type\":_vm.type},domProps:{\"value\":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{\"strength\":this.strength,\"type\":_vm.type,\"updatePassword\":_vm.updatePassword,\"value\":_vm.value}),(!_vm.disableToggle)?_vm._t(\"password-toggle\",[_c('button',{staticClass:\"VuePassword__Toggle\",attrs:{\"title\":_vm.toggleMessage,\"type\":\"button\"},on:{\"click\":_vm.togglePassword}},[(this.type === 'text')?_vm._t(\"password-hide\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z\"}})])]):_vm._t(\"password-show\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z\"}})])])],2)],{\"toggle\":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t(\"strength-meter\",[_c('div',{staticClass:\"VuePassword__Meter\",attrs:{\"title\":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{\"preserveAspectRatio\":\"none\",\"data-strength\":i,\"viewBox\":\"0 0 2 1\"}},[_c('rect',{attrs:{\"width\":\"100%\",\"height\":\"100%\"}})])}),0)],{\"strength\":this.strength,\"strengthClass\":_vm.strengthClass,\"strengthClasses\":_vm.strengthClasses,\"strengthMessage\":_vm.strengthMessage,\"strengthMessages\":_vm.strengthMessages}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n \n \n
\n \n \n
\n\n
\n \n \n
\n \n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VuePassword.vue?vue&type=template&id=40aa246a&\"\nimport script from \"./VuePassword.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePassword.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VuePassword.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"","var render, staticRenderFns\nimport script from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from \"vue\";\r\nimport VuePassword from \"./components/VuePassword.vue\";\r\nimport VuePasswordAuto from \"./components/VuePasswordAuto.vue\";\r\n\r\nfunction install(Vue, options = {}) {\r\n if (options.type === \"auto\") {\r\n Vue.component(options.name || \"VuePassword\", VuePasswordAuto);\r\n } else {\r\n Vue.component(options.name || \"VuePassword\", VuePassword);\r\n }\r\n}\r\n\r\nexport default install;\r\n\r\nif (typeof window !== undefined && window.Vue && window.Vue === Vue) {\r\n install(window.Vue);\r\n}\r\n\r\nexport { VuePassword, VuePasswordAuto };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/VuePassword.umd.min.js b/dist/VuePassword.umd.min.js
index 656ad2e..84c8b28 100644
--- a/dist/VuePassword.umd.min.js
+++ b/dist/VuePassword.umd.min.js
@@ -1,2 +1,2 @@
-(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue"),require("zxcvbn")):"function"===typeof define&&define.amd?define([,],e):"object"===typeof exports?exports["VuePassword"]=e(require("vue"),require("zxcvbn")):t["VuePassword"]=e(t["Vue"],t["zxcvbn"])})("undefined"!==typeof self?self:this,function(t,e){return function(t){var e={};function s(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=t,s.c=e,s.d=function(t,e,r){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s="fb15")}({"8bbf":function(e,s){e.exports=t},f5a9:function(t,s){t.exports=e},f6fd:function(t,e){(function(t){var e="currentScript",s=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in s)if(s[t].src==e||"interactive"==s[t].readyState)return s[t];return null}}})})(document)},fb15:function(t,e,s){"use strict";var r;(s.r(e),"undefined"!==typeof window)&&(s("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(s.p=r[1]));var n=s("8bbf"),o=s.n(n),a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"VuePassword"},[s("div",{staticClass:"VuePassword__Container"},[t._t("password-input",[s("input",t._g(t._b({ref:"input",class:[t.classes,"VuePassword__Input",{"VuePassword__Input--has-toggle":!t.disableToggle}],attrs:{title:t.strengthMessage},domProps:{value:t.value}},"input",t.$attrs,!1),t.listeners))],{strength:this.strength,type:t.type,updatePassword:t.updatePassword,value:t.value}),t.disableToggle?t._e():t._t("password-toggle",[s("button",{staticClass:"VuePassword__Toggle",attrs:{title:t.toggleMessage,type:"button"},on:{click:t.togglePassword}},["text"===this.type?t._t("password-hide",[s("svg",{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}})])]):t._t("password-show",[s("svg",{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})])])],2)],{toggle:t.togglePassword})],2),t.disableStrength?t._e():t._t("strength-meter",[s("div",{staticClass:"VuePassword__Meter",attrs:{title:t.strengthMessage}},t._l(4,function(e){return s("svg",{key:e,class:e<=t.strength?t.strengthClass:"",attrs:{preserveAspectRatio:"none","data-strength":e,viewBox:"0 0 2 1"}},[s("rect",{attrs:{width:"100%",height:"100%"}})])}),0)],{strength:this.strength,strengthClass:t.strengthClass,strengthClasses:t.strengthClasses,strengthMessage:t.strengthMessage,strengthMessages:t.strengthMessages})],2)},i=[],u={inheritAttrs:!1,data:function(){return{type:this.$attrs.type}},props:{classes:{type:[Object,Array,String]},disableStrength:Boolean,disableToggle:Boolean,strength:{type:Number,default:0},strengthClasses:{type:Array,default:function(){return["VuePassword--very-weak","VuePassword--weak","VuePassword--medium","VuePassword--good","VuePassword--great"]}},strengthMessages:{type:Array,default:function(){return["Very Weak Password","Weak Password","Medium Password","Strong Password","Very Strong Password"]}},value:String},computed:{inputElement:function(){return this.$refs.input?this.$refs.input:this.$el?this.$el.querySelector(".VuePassword__Container input"):null},listeners:function(){return Object.assign({},this.$listeners,{input:this.updatePassword})},model:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},strengthClass:function(){return Array.isArray(this.strengthClasses)&&this.strengthClasses[this.strength]},strengthMessage:function(){return!this.disableStrength&&(Array.isArray(this.strengthMessages)&&this.strengthMessages[this.strength])},toggleMessage:function(){return"password"===this.type?"Show Password":"Hide Password"}},watch:{strength:function(t,e){t!=e&&this.$emit("strength-updated",t)}},mounted:function(){this.$attrs.type||this.togglePassword()},methods:{getStrengthClass:function(t){return this.strength>t?this.strengthClasses[t]:""},togglePassword:function(){this.type="password"===this.type?"text":"password",this.inputElement.setAttribute("type",this.type),this.inputElement.focus()},updatePassword:function(t){this.model=t.target.value}}},l=u;function d(t,e,s,r,n,o,a,i){var u,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):n&&(u=i?function(){n.call(this,this.$root.$options.shadowRoot)}:n),u)if(l.functional){l._injectStyles=u;var d=l.render;l.render=function(t,e){return u.call(e),d(t,e)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:t,options:l}}var c=d(l,a,i,!1,null,null,null),f=c.exports,p=s("f5a9"),g=s.n(p);function h(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};"auto"===e.type?t.component(e.name||"VuePassword",P):t.component(e.name||"VuePassword",f)}var C=V;void 0!==("undefined"===typeof window?"undefined":S(window))&&window.Vue&&window.Vue===o.a&&V(window.Vue),s.d(e,"VuePassword",function(){return f}),s.d(e,"VuePasswordAuto",function(){return P});e["default"]=C}})});
+(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue"),require("zxcvbn")):"function"===typeof define&&define.amd?define([,],e):"object"===typeof exports?exports["VuePassword"]=e(require("vue"),require("zxcvbn")):t["VuePassword"]=e(t["Vue"],t["zxcvbn"])})("undefined"!==typeof self?self:this,function(t,e){return function(t){var e={};function s(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=t,s.c=e,s.d=function(t,e,r){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s="fb15")}({"39ca":function(t,e,s){"use strict";var r=s("a59a"),n=s.n(r);n.a},"8bbf":function(e,s){e.exports=t},a59a:function(t,e,s){},f5a9:function(t,s){t.exports=e},f6fd:function(t,e){(function(t){var e="currentScript",s=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in s)if(s[t].src==e||"interactive"==s[t].readyState)return s[t];return null}}})})(document)},fb15:function(t,e,s){"use strict";var r;(s.r(e),"undefined"!==typeof window)&&(s("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(s.p=r[1]));var n=s("8bbf"),o=s.n(n),a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"VuePassword"},[s("div",{staticClass:"VuePassword__Container"},[t._t("password-input",[s("input",t._g(t._b({ref:"input",class:[t.classes,"VuePassword__Input",{"VuePassword__Input--has-toggle":!t.disableToggle}],attrs:{title:t.strengthMessage,type:t.type},domProps:{value:t.value}},"input",t.$attrs,!1),t.listeners))],{strength:this.strength,type:t.type,updatePassword:t.updatePassword,value:t.value}),t.disableToggle?t._e():t._t("password-toggle",[s("button",{staticClass:"VuePassword__Toggle",attrs:{title:t.toggleMessage,type:"button"},on:{click:t.togglePassword}},["text"===this.type?t._t("password-hide",[s("svg",{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z"}})])]):t._t("password-show",[s("svg",{staticClass:"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}})])])],2)],{toggle:t.togglePassword})],2),t.disableStrength?t._e():t._t("strength-meter",[s("div",{staticClass:"VuePassword__Meter",attrs:{title:t.strengthMessage}},t._l(4,function(e){return s("svg",{key:e,class:e<=t.strength?t.strengthClass:"",attrs:{preserveAspectRatio:"none","data-strength":e,viewBox:"0 0 2 1"}},[s("rect",{attrs:{width:"100%",height:"100%"}})])}),0)],{strength:this.strength,strengthClass:t.strengthClass,strengthClasses:t.strengthClasses,strengthMessage:t.strengthMessage,strengthMessages:t.strengthMessages})],2)},i=[],u={inheritAttrs:!1,data:function(){return{type:this.$attrs.type?this.$attrs.type:"password"}},props:{classes:{type:[Object,Array,String]},disableStrength:Boolean,disableToggle:Boolean,strength:{type:Number,default:0},strengthClasses:{type:Array,default:function(){return["VuePassword--very-weak","VuePassword--weak","VuePassword--medium","VuePassword--good","VuePassword--great"]}},strengthMessages:{type:Array,default:function(){return["Very Weak Password","Weak Password","Medium Password","Strong Password","Very Strong Password"]}},value:String},computed:{inputElement:function(){return this.$refs.input?this.$refs.input:this.$el?this.$el.querySelector(".VuePassword__Container input"):null},listeners:function(){return Object.assign({},this.$listeners,{input:this.updatePassword})},model:{get:function(){return this.value},set:function(t){this.$emit("input",t)}},strengthClass:function(){return Array.isArray(this.strengthClasses)&&this.strengthClasses[this.strength]},strengthMessage:function(){return!this.disableStrength&&(Array.isArray(this.strengthMessages)&&this.strengthMessages[this.strength])},toggleMessage:function(){return"password"===this.type?"Show Password":"Hide Password"}},watch:{strength:function(t,e){t!=e&&this.$emit("strength-updated",t)}},methods:{getStrengthClass:function(t){return this.strength>t?this.strengthClasses[t]:""},togglePassword:function(){this.type="password"===this.type?"text":"password",this.inputElement.setAttribute("type",this.type),this.inputElement.focus()},updatePassword:function(t){this.model=t.target.value}}},l=u;s("39ca");function d(t,e,s,r,n,o,a,i){var u,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):n&&(u=i?function(){n.call(this,this.$root.$options.shadowRoot)}:n),u)if(l.functional){l._injectStyles=u;var d=l.render;l.render=function(t,e){return u.call(e),d(t,e)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:t,options:l}}var c=d(l,a,i,!1,null,null,null),p=c.exports,f=s("f5a9"),g=s.n(f);function h(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};"auto"===e.type?t.component(e.name||"VuePassword",P):t.component(e.name||"VuePassword",p)}var C=V;void 0!==("undefined"===typeof window?"undefined":S(window))&&window.Vue&&window.Vue===o.a&&V(window.Vue),s.d(e,"VuePassword",function(){return p}),s.d(e,"VuePasswordAuto",function(){return P});e["default"]=C}})});
//# sourceMappingURL=VuePassword.umd.min.js.map
\ No newline at end of file
diff --git a/dist/VuePassword.umd.min.js.map b/dist/VuePassword.umd.min.js.map
index c1fdd7b..f4484bd 100644
--- a/dist/VuePassword.umd.min.js.map
+++ b/dist/VuePassword.umd.min.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack://VuePassword/webpack/universalModuleDefinition","webpack://VuePassword/webpack/bootstrap","webpack://VuePassword/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VuePassword/external {\"commonjs\":\"zxcvbn\",\"commonjs2\":\"zxcvbn\",\"root\":\"zxcvbn\"}","webpack://VuePassword/./node_modules/current-script-polyfill/currentScript.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VuePassword/./src/components/VuePassword.vue?7ee4","webpack://VuePassword/src/components/VuePassword.vue","webpack://VuePassword/./src/components/VuePassword.vue?4ec8","webpack://VuePassword/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VuePassword/./src/components/VuePassword.vue","webpack://VuePassword/src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue?f747","webpack://VuePassword/./src/index.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__8bbf__","__WEBPACK_EXTERNAL_MODULE_f5a9__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","document","currentScript","scripts","getElementsByTagName","Error","err","res","exec","stack","src","readyState","window","match","VuePasswordvue_type_template_id_601c6563_render","_vm","_h","$createElement","_c","_self","staticClass","_t","_g","_b","ref","class","classes","VuePassword__Input--has-toggle","disableToggle","attrs","title","strengthMessage","domProps","$attrs","listeners","strength","type","updatePassword","_e","toggleMessage","on","click","togglePassword","xmlns","viewBox","toggle","disableStrength","_l","strengthClass","preserveAspectRatio","data-strength","width","height","strengthClasses","strengthMessages","staticRenderFns","VuePasswordvue_type_script_lang_js_","inheritAttrs","data","props","Array","String","Boolean","Number","default","computed","inputElement","$refs","input","$el","querySelector","assign","$listeners","model","set","$emit","isArray","watch","newValue","oldValue","mounted","methods","getStrengthClass","setAttribute","focus","event","target","components_VuePasswordvue_type_script_lang_js_","normalizeComponent","scriptExports","render","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","component","VuePassword","VuePasswordAuto_render","VuePasswordAuto_staticRenderFns","VuePasswordAutovue_type_script_lang_js_","components","inputs","userInputs","external_commonjs_zxcvbn_commonjs2_zxcvbn_root_zxcvbn_default","_objectSpread","score","scopedSlots","components_VuePasswordAutovue_type_script_lang_js_","VuePasswordAuto_component","VuePasswordAuto","install","Vue","arguments","length","undefined","_typeof","__webpack_exports__"],"mappings":"CAAA,SAAAA,EAAAC,GACA,kBAAAC,SAAA,kBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,OAAAA,QAAA,WACA,oBAA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A,SAIAwB,EAAAb,GACA,IAAA3C,EAAA2C,EAAA3C,KACAkE,EAAAhE,MAAAgB,QAAAyB,EAAA1C,MAAAkE,YACAxB,EAAA1C,MAAAkE,WACA,GACA1F,EAAA2F,IAAApE,EAAA7B,MAAA3C,MAAA0I,IAAA,EAEA,OAAAV,EAAAK,EAAA,CACA5D,MAAAoE,EAAA,GACArE,EAAA7B,MADA,CAEAM,WAAA6F,QAEAxF,GAAA6D,EAAAnE,UACA+F,YAAA5B,EAAA4B,gBErByVC,EAAA,EDOrVC,EAAY3C,EACd0C,EACAV,EACAC,GACF,EACA,KACA,KACA,MAIeW,EAAAD,mPEdf,SAASE,EAAQC,GAAmB,IAAdrC,EAAcsC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAJ,GACT,SAAjBtC,EAAQ7D,KACVkG,EAAIhB,UAAUrB,EAAQzH,MAAQ,cAAe4J,GAE7CE,EAAIhB,UAAUrB,EAAQzH,MAAQ,cAAe+I,GAIlCc,aAEOI,KAAlB,qBAAO7H,OAAP,YAAA8H,EAAO9H,UAAwBA,OAAO0H,KAAO1H,OAAO0H,MAAQA,KAC9DD,EAAQzH,OAAO0H,KCfjBvK,EAAAQ,EAAAoK,EAAA,gCAAApB,IAAAxJ,EAAAQ,EAAAoK,EAAA,oCAAAP,IAEeO,EAAA","file":"VuePassword.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([, ], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VuePassword\"] = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse\n\t\troot[\"VuePassword\"] = factory(root[\"Vue\"], root[\"zxcvbn\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_f5a9__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","module.exports = __WEBPACK_EXTERNAL_MODULE_f5a9__;","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"VuePassword\"},[_c('div',{staticClass:\"VuePassword__Container\"},[_vm._t(\"password-input\",[_c('input',_vm._g(_vm._b({ref:\"input\",class:[\n _vm.classes,\n 'VuePassword__Input',\n { 'VuePassword__Input--has-toggle': !_vm.disableToggle }\n ],attrs:{\"title\":_vm.strengthMessage},domProps:{\"value\":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{\"strength\":this.strength,\"type\":_vm.type,\"updatePassword\":_vm.updatePassword,\"value\":_vm.value}),(!_vm.disableToggle)?_vm._t(\"password-toggle\",[_c('button',{staticClass:\"VuePassword__Toggle\",attrs:{\"title\":_vm.toggleMessage,\"type\":\"button\"},on:{\"click\":_vm.togglePassword}},[(this.type === 'text')?_vm._t(\"password-hide\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z\"}})])]):_vm._t(\"password-show\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z\"}})])])],2)],{\"toggle\":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t(\"strength-meter\",[_c('div',{staticClass:\"VuePassword__Meter\",attrs:{\"title\":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{\"preserveAspectRatio\":\"none\",\"data-strength\":i,\"viewBox\":\"0 0 2 1\"}},[_c('rect',{attrs:{\"width\":\"100%\",\"height\":\"100%\"}})])}),0)],{\"strength\":this.strength,\"strengthClass\":_vm.strengthClass,\"strengthClasses\":_vm.strengthClasses,\"strengthMessage\":_vm.strengthMessage,\"strengthMessages\":_vm.strengthMessages}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VuePassword.vue?vue&type=template&id=601c6563&\"\nimport script from \"./VuePassword.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePassword.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VuePassword.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\n","var render, staticRenderFns\nimport script from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"","import Vue from \"vue\";\r\nimport VuePassword from \"./components/VuePassword.vue\";\r\nimport VuePasswordAuto from \"./components/VuePasswordAuto.vue\";\r\n\r\nfunction install(Vue, options = {}) {\r\n if (options.type === \"auto\") {\r\n Vue.component(options.name || \"VuePassword\", VuePasswordAuto);\r\n } else {\r\n Vue.component(options.name || \"VuePassword\", VuePassword);\r\n }\r\n}\r\n\r\nexport default install;\r\n\r\nif (typeof window !== undefined && window.Vue && window.Vue === Vue) {\r\n install(window.Vue);\r\n}\r\n\r\nexport { VuePassword, VuePasswordAuto };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack://VuePassword/webpack/universalModuleDefinition","webpack://VuePassword/webpack/bootstrap","webpack://VuePassword/./src/components/VuePassword.vue?8c9f","webpack://VuePassword/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://VuePassword/external {\"commonjs\":\"zxcvbn\",\"commonjs2\":\"zxcvbn\",\"root\":\"zxcvbn\"}","webpack://VuePassword/./node_modules/current-script-polyfill/currentScript.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://VuePassword/./src/components/VuePassword.vue?f226","webpack://VuePassword/src/components/VuePassword.vue","webpack://VuePassword/./src/components/VuePassword.vue?4ec8","webpack://VuePassword/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://VuePassword/./src/components/VuePassword.vue","webpack://VuePassword/src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue","webpack://VuePassword/./src/components/VuePasswordAuto.vue?f747","webpack://VuePassword/./src/index.js","webpack://VuePassword/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__8bbf__","__WEBPACK_EXTERNAL_MODULE_f5a9__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VuePassword_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default","document","currentScript","scripts","getElementsByTagName","Error","err","res","exec","stack","src","readyState","window","match","VuePasswordvue_type_template_id_40aa246a_render","_vm","_h","$createElement","_c","_self","staticClass","_t","_g","_b","ref","class","classes","VuePassword__Input--has-toggle","disableToggle","attrs","title","strengthMessage","type","domProps","$attrs","listeners","strength","updatePassword","_e","toggleMessage","on","click","togglePassword","xmlns","viewBox","toggle","disableStrength","_l","strengthClass","preserveAspectRatio","data-strength","width","height","strengthClasses","strengthMessages","staticRenderFns","VuePasswordvue_type_script_lang_js_","inheritAttrs","data","props","Array","String","Boolean","Number","default","computed","inputElement","$refs","input","$el","querySelector","assign","$listeners","model","set","$emit","isArray","watch","newValue","oldValue","methods","getStrengthClass","setAttribute","focus","event","target","components_VuePasswordvue_type_script_lang_js_","normalizeComponent","scriptExports","render","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","component","VuePassword","VuePasswordAuto_render","VuePasswordAuto_staticRenderFns","VuePasswordAutovue_type_script_lang_js_","components","inputs","userInputs","external_commonjs_zxcvbn_commonjs2_zxcvbn_root_zxcvbn_default","_objectSpread","score","scopedSlots","components_VuePasswordAutovue_type_script_lang_js_","VuePasswordAuto_component","VuePasswordAuto","install","Vue","arguments","length","undefined","_typeof","__webpack_exports__"],"mappings":"CAAA,SAAAA,EAAAC,GACA,kBAAAC,SAAA,kBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,OAAAA,QAAA,WACA,oBAAAC,eAAAC,IACAD,OAAA,IAAAJ,GACA,kBAAAC,QACAA,QAAA,eAAAD,EAAAG,QAAA,OAAAA,QAAA,WAEAJ,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b,GACA,IAAA1C,EAAA0C,EAAA1C,KACAiE,EAAA/D,MAAAgB,QAAAwB,EAAAzC,MAAAiE,YACAxB,EAAAzC,MAAAiE,WACA,GACAxF,EAAAyF,IAAAnE,EAAA7B,MAAA7C,MAAA2I,IAAA,EAEA,OAAAV,EAAAK,EAAA,CACA3D,MAAAmE,EAAA,GACApE,EAAA7B,MADA,CAEAO,WAAA2F,QAEAvF,GAAA4D,EAAAjE,UACA6F,YAAA5B,EAAA4B,gBErByVC,EAAA,EDOrVC,EAAY3C,EACd0C,EACAV,EACAC,GACF,EACA,KACA,KACA,MAIeW,EAAAD,mPEdf,SAASE,EAAQC,GAAmB,IAAdrC,EAAcsC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAJ,GACT,SAAjBtC,EAAQhE,KACVqG,EAAIhB,UAAUrB,EAAQ1H,MAAQ,cAAe6J,GAE7CE,EAAIhB,UAAUrB,EAAQ1H,MAAQ,cAAegJ,GAIlCc,aAEOI,KAAlB,qBAAO5H,OAAP,YAAA6H,EAAO7H,UAAwBA,OAAOyH,KAAOzH,OAAOyH,MAAQA,KAC9DD,EAAQxH,OAAOyH,KCfjBxK,EAAAQ,EAAAqK,EAAA,gCAAApB,IAAAzJ,EAAAQ,EAAAqK,EAAA,oCAAAP,IAEeO,EAAA","file":"VuePassword.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([, ], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"VuePassword\"] = factory(require(\"vue\"), require(\"zxcvbn\"));\n\telse\n\t\troot[\"VuePassword\"] = factory(root[\"Vue\"], root[\"zxcvbn\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_f5a9__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=style&index=0&lang=css&\"","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","module.exports = __WEBPACK_EXTERNAL_MODULE_f5a9__;","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"VuePassword\"},[_c('div',{staticClass:\"VuePassword__Container\"},[_vm._t(\"password-input\",[_c('input',_vm._g(_vm._b({ref:\"input\",class:[\n _vm.classes,\n 'VuePassword__Input',\n { 'VuePassword__Input--has-toggle': !_vm.disableToggle }\n ],attrs:{\"title\":_vm.strengthMessage,\"type\":_vm.type},domProps:{\"value\":_vm.value}},'input',_vm.$attrs,false),_vm.listeners))],{\"strength\":this.strength,\"type\":_vm.type,\"updatePassword\":_vm.updatePassword,\"value\":_vm.value}),(!_vm.disableToggle)?_vm._t(\"password-toggle\",[_c('button',{staticClass:\"VuePassword__Toggle\",attrs:{\"title\":_vm.toggleMessage,\"type\":\"button\"},on:{\"click\":_vm.togglePassword}},[(this.type === 'text')?_vm._t(\"password-hide\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--hide\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M12.81 4.36l-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99l1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z\"}})])]):_vm._t(\"password-show\",[_c('svg',{staticClass:\"VuePassword__Toggle-Icon VuePassword__Toggle-Icon--show\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 20\"}},[_c('path',{attrs:{\"d\":\"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z\"}})])])],2)],{\"toggle\":_vm.togglePassword}):_vm._e()],2),(!_vm.disableStrength)?_vm._t(\"strength-meter\",[_c('div',{staticClass:\"VuePassword__Meter\",attrs:{\"title\":_vm.strengthMessage}},_vm._l((4),function(i){return _c('svg',{key:i,class:i <= _vm.strength ? _vm.strengthClass : '',attrs:{\"preserveAspectRatio\":\"none\",\"data-strength\":i,\"viewBox\":\"0 0 2 1\"}},[_c('rect',{attrs:{\"width\":\"100%\",\"height\":\"100%\"}})])}),0)],{\"strength\":this.strength,\"strengthClass\":_vm.strengthClass,\"strengthClasses\":_vm.strengthClasses,\"strengthMessage\":_vm.strengthMessage,\"strengthMessages\":_vm.strengthMessages}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n \n \n
\n \n \n
\n\n
\n \n \n
\n \n
\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePassword.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VuePassword.vue?vue&type=template&id=40aa246a&\"\nimport script from \"./VuePassword.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePassword.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VuePassword.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\n","var render, staticRenderFns\nimport script from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\nexport * from \"./VuePasswordAuto.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VuePasswordAuto.vue?vue&type=script&lang=js&\"","import Vue from \"vue\";\r\nimport VuePassword from \"./components/VuePassword.vue\";\r\nimport VuePasswordAuto from \"./components/VuePasswordAuto.vue\";\r\n\r\nfunction install(Vue, options = {}) {\r\n if (options.type === \"auto\") {\r\n Vue.component(options.name || \"VuePassword\", VuePasswordAuto);\r\n } else {\r\n Vue.component(options.name || \"VuePassword\", VuePassword);\r\n }\r\n}\r\n\r\nexport default install;\r\n\r\nif (typeof window !== undefined && window.Vue && window.Vue === Vue) {\r\n install(window.Vue);\r\n}\r\n\r\nexport { VuePassword, VuePasswordAuto };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 43ba6bd..73f9821 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "vue-password",
- "version": "2.0.3",
+ "version": "2.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 4c76bce..9747821 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-password",
- "version": "2.0.4",
+ "version": "2.1.0",
"main": "dist/VuePassword.umd.js",
"broswer": "dist/VuePassword.common.js",
"unpkg": "dist/VuePassword.umd.min.js",
@@ -10,7 +10,10 @@
"src"
],
"module": "src",
- "sideEffects": false,
+ "sideEffects": [
+ "*.css",
+ "*.vue"
+ ],
"scripts": {
"serve": "vue-cli-service serve ./demo/main",
"build:demo": "vue-cli-service build ./demo/main",
diff --git a/src/components/VuePassword.vue b/src/components/VuePassword.vue
index d522281..28430e1 100644
--- a/src/components/VuePassword.vue
+++ b/src/components/VuePassword.vue
@@ -17,15 +17,12 @@
]"
:title="strengthMessage"
:value="value"
+ :type="type"
v-bind="$attrs"
v-on="listeners"
/>
-
+
@@ -88,7 +85,7 @@ export default {
inheritAttrs: false,
data() {
return {
- type: this.$attrs.type
+ type: this.$attrs.type ? this.$attrs.type : "password"
};
},
props: {
@@ -144,11 +141,7 @@ export default {
return null;
},
listeners() {
- return Object.assign(
- {},
- this.$listeners,
- { input: this.updatePassword }
- );
+ return Object.assign({}, this.$listeners, { input: this.updatePassword });
},
model: {
get() {
@@ -184,11 +177,6 @@ export default {
}
}
},
- mounted() {
- if (!this.$attrs.type) {
- this.togglePassword();
- }
- },
methods: {
/**
* Get the current strength class based on the current strength score.
diff --git a/vue.config.js b/vue.config.js
index b284bb9..d33828c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -15,6 +15,6 @@ module.exports = {
externals
},
css: {
- extract: false
+ extract: true
}
};