From 1ca9df5119a6d15f28827bbf464caeb835c166a9 Mon Sep 17 00:00:00 2001 From: Phap Duong Dieu Date: Fri, 1 Nov 2019 12:36:21 +0800 Subject: [PATCH] Release first version 0.1.0 --- demo/public/index.js | 9800 +------------------------------------- demo/public/index.js.map | 2 +- dist/index.js | 257 +- package.json | 2 +- 4 files changed, 12 insertions(+), 10049 deletions(-) diff --git a/demo/public/index.js b/demo/public/index.js index 38ef0d5..555ec97 100644 --- a/demo/public/index.js +++ b/demo/public/index.js @@ -1,9799 +1,15 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "/public/"; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./src/index.js"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "../dist/index.js": -/*!************************!*\ - !*** ../dist/index.js ***! - \************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/public/",n(n.s=6)}([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e,n){ /*! - * Vue File selector v0.0.3 - * (c) 2019 Duong Dieu Phap - * https://github.com/d2phap/vue-file-selector - * Released under the MIT License. - */ -(function webpackUniversalModuleDefinition(root, factory) { - if (true) module.exports = factory();else {} -})(window, function () { - return ( - /******/ - function (modules) { - // webpackBootstrap - - /******/ - // The module cache - - /******/ - var installedModules = {}; - /******/ - - /******/ - // The require function - - /******/ - - function __webpack_require__(moduleId) { - /******/ - - /******/ - // Check if module is in cache - - /******/ - if (installedModules[moduleId]) { - /******/ - return installedModules[moduleId].exports; - /******/ - } - /******/ - // Create a new module (and put it into the cache) - - /******/ - - - var module = installedModules[moduleId] = { - /******/ - i: moduleId, - - /******/ - l: false, - - /******/ - exports: {} - /******/ - - }; - /******/ - - /******/ - // Execute the module function - - /******/ - - modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - /******/ - - /******/ - // Flag the module as loaded - - /******/ - - module.l = true; - /******/ - - /******/ - // Return the exports of the module - - /******/ - - return module.exports; - /******/ - } - /******/ - - /******/ - - /******/ - // expose the modules object (__webpack_modules__) - - /******/ - - - __webpack_require__.m = modules; - /******/ - - /******/ - // expose the module cache - - /******/ - - __webpack_require__.c = installedModules; - /******/ - - /******/ - // define getter function for harmony exports - - /******/ - - __webpack_require__.d = function (exports, name, getter) { - /******/ - if (!__webpack_require__.o(exports, name)) { - /******/ - Object.defineProperty(exports, name, { - enumerable: true, - get: getter - }); - /******/ - } - /******/ - - }; - /******/ - - /******/ - // define __esModule on exports - - /******/ - - - __webpack_require__.r = function (exports) { - /******/ - if (typeof Symbol !== 'undefined' && Symbol.toStringTag) { - /******/ - Object.defineProperty(exports, Symbol.toStringTag, { - value: 'Module' - }); - /******/ - } - /******/ - - - Object.defineProperty(exports, '__esModule', { - value: true - }); - /******/ - }; - /******/ - - /******/ - // create a fake namespace object - - /******/ - // mode & 1: value is a module id, require it - - /******/ - // mode & 2: merge all properties of value into the ns - - /******/ - // mode & 4: return value when already ns object - - /******/ - // mode & 8|1: behave like require - - /******/ - - - __webpack_require__.t = function (value, mode) { - /******/ - if (mode & 1) value = __webpack_require__(value); - /******/ - - if (mode & 8) return value; - /******/ - - if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value; - /******/ - - var ns = Object.create(null); - /******/ - - __webpack_require__.r(ns); - /******/ - - - Object.defineProperty(ns, 'default', { - enumerable: true, - value: value - }); - /******/ - - if (mode & 2 && typeof value != 'string') for (var key in value) __webpack_require__.d(ns, key, function (key) { - return value[key]; - }.bind(null, key)); - /******/ - - return ns; - /******/ - }; - /******/ - - /******/ - // getDefaultExport function for compatibility with non-harmony modules - - /******/ - - - __webpack_require__.n = function (module) { - /******/ - var getter = module && module.__esModule ? - /******/ - function getDefault() { - return module['default']; - } : - /******/ - function getModuleExports() { - return module; - }; - /******/ - - __webpack_require__.d(getter, 'a', getter); - /******/ - - - return getter; - /******/ - }; - /******/ - - /******/ - // Object.prototype.hasOwnProperty.call - - /******/ - - - __webpack_require__.o = function (object, property) { - return Object.prototype.hasOwnProperty.call(object, property); - }; - /******/ - - /******/ - // __webpack_public_path__ - - /******/ - - - __webpack_require__.p = "/dist/"; - /******/ - - /******/ - - /******/ - // Load entry module and return exports - - /******/ - - return __webpack_require__(__webpack_require__.s = "./src/index.js"); - /******/ - }( - /************************************************************************/ - - /******/ - { - /***/ - "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./src/component.vue?vue&type=script&lang=js&": - /*!**************************************************************************************************************************************!*\ - !*** ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/component.vue?vue&type=script&lang=js& ***! - \**************************************************************************************************************************************/ - - /*! exports provided: default */ - - /***/ - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - eval("__webpack_require__.r(__webpack_exports__);\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'FileSelector',\n props: {\n multiple: {\n type: Boolean,\n \"default\": false\n },\n isLoading: {\n type: Boolean,\n \"default\": false\n },\n acceptExtensions: {\n type: String,\n \"default\": ''\n },\n maxFileSize: {\n // in bytes\n type: Number,\n \"default\": NaN\n },\n height: {\n type: Number,\n \"default\": NaN\n },\n validateFn: {\n type: Function,\n \"default\": function _default() {\n return true;\n }\n }\n },\n data: function data() {\n return {\n isDragEnter: false\n };\n },\n methods: {\n handleFilesChange: function handleFilesChange($event) {\n this.preprocessFiles($event.target.files);\n },\n handleDrop: function handleDrop($event) {\n this.isDragEnter = false;\n this.preprocessFiles($event.dataTransfer.files);\n },\n checkFileExtensions: function checkFileExtensions(files) {\n // get non-empty, unique extension items\n var extList = _toConsumableArray(new Set(this.acceptExtensions.toLowerCase().split(',').filter(Boolean)));\n\n var list = Array.from(files); // check if the selected files are in supported extensions\n\n var invalidFileIndex = list.findIndex(function (file) {\n var ext = \".\".concat(file.name.toLowerCase().split('.').pop());\n return !extList.includes(ext);\n }); // all exts are valid\n\n return invalidFileIndex === -1;\n },\n checkFileSize: function checkFileSize(files) {\n var _this = this;\n\n if (Number.isNaN(this.maxFileSize)) {\n return true;\n }\n\n var list = Array.from(files); // find invalid file size\n\n var invalidFileIndex = list.findIndex(function (file) {\n return file.size > _this.maxFileSize;\n }); // all file size are valid\n\n return invalidFileIndex === -1;\n },\n validate: function validate(files) {\n // file selection\n if (!this.multiple && files.length > 1) {\n return 'MULTIFILES_ERROR';\n } // extension\n\n\n if (!this.checkFileExtensions(files)) {\n return 'EXTENSION_ERROR';\n } // file size\n\n\n if (!this.checkFileSize(files)) {\n return 'FILE_SIZE_ERROR';\n } // custom validation\n\n\n return this.validateFn(files);\n },\n preprocessFiles: function preprocessFiles(files) {\n var result = this.validate(files);\n this.$emit('validated', result, files); // validation\n\n if (result === true) {\n this.$emit('changed', files);\n } // clear selected files\n\n\n this.$refs.fsFileInput.value = '';\n }\n }\n});\n\n//# sourceURL=webpack://vue-file-selector/./src/component.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options"); - /***/ - }, - - /***/ - "./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./src/component.vue?vue&type=style&index=0&id=a8ea6a18&lang=scss&scoped=true&": - /*!*****************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/component.vue?vue&type=style&index=0&id=a8ea6a18&lang=scss&scoped=true& ***! - \*****************************************************************************************************************************************************************************************************************************************************************************/ - - /*! no static exports found */ - - /***/ - function (module, exports, __webpack_require__) { - eval("exports = module.exports = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.i, \".fs-file-selector[data-v-a8ea6a18] {\\n position: relative;\\n}\\n.fs-file-selector .fs-loader[data-v-a8ea6a18] {\\n background: rgba(255, 255, 255, 0.8);\\n position: absolute;\\n top: 0;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n z-index: 1;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n}\\n.fs-file-selector .fs-droppable[data-v-a8ea6a18] {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n position: relative;\\n text-align: center;\\n border-radius: 8px;\\n border: 1px dashed #000;\\n}\\n.fs-file-selector .fs-droppable input[type=\\\"file\\\"][data-v-a8ea6a18] {\\n visibility: hidden;\\n position: absolute;\\n width: 1px;\\n height: 1px;\\n}\\n\", \"\"]);\n\n\n//# sourceURL=webpack://vue-file-selector/./src/component.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options"); - /***/ - }, - - /***/ - "./node_modules/css-loader/dist/runtime/api.js": - /*!*****************************************************!*\ - !*** ./node_modules/css-loader/dist/runtime/api.js ***! - \*****************************************************/ - - /*! no static exports found */ - - /***/ - function (module, exports, __webpack_require__) { - "use strict"; - - eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \"{\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = modules[_i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = \"(\".concat(item[2], \") and (\").concat(mediaQuery, \")\");\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot).concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}\n\n//# sourceURL=webpack://vue-file-selector/./node_modules/css-loader/dist/runtime/api.js?"); - /***/ - }, - - /***/ - "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./src/component.vue?vue&type=template&id=a8ea6a18&scoped=true&": - /*!****************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/component.vue?vue&type=template&id=a8ea6a18&scoped=true& ***! - \****************************************************************************************************************************************************************************************************/ - - /*! exports provided: render, staticRenderFns */ - - /***/ - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"fs-file-selector\" }, [\n _vm.isLoading\n ? _c(\n \"div\",\n { staticClass: \"fs-loader\" },\n [_vm._t(\"loader\", [_vm._v(\"\\n Loading...\\n \")])],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n ref: \"fsDroppable\",\n staticClass: \"fs-droppable\",\n class: { \"fs-drag-enter\": _vm.isDragEnter },\n style: { height: _vm.height + \"px\" },\n on: {\n dragenter: function($event) {\n $event.stopPropagation()\n $event.preventDefault()\n _vm.isDragEnter = true\n },\n dragover: function($event) {\n $event.stopPropagation()\n $event.preventDefault()\n return (function() {})($event)\n },\n dragleave: function($event) {\n $event.stopPropagation()\n $event.preventDefault()\n _vm.isDragEnter = false\n },\n drop: function($event) {\n $event.stopPropagation()\n $event.preventDefault()\n return _vm.handleDrop($event)\n }\n }\n },\n [\n _c(\"input\", {\n ref: \"fsFileInput\",\n attrs: {\n type: \"file\",\n tabindex: \"-1\",\n multiple: _vm.multiple,\n accept: _vm.acceptExtensions\n },\n on: { change: _vm.handleFilesChange }\n }),\n _vm._v(\" \"),\n _vm._t(\"top\"),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass: \"fs-btn-select\",\n attrs: { href: \"#\" },\n on: {\n click: function($event) {\n return _vm.$refs.fsFileInput.click()\n }\n }\n },\n [_vm._t(\"default\", [_vm._v(\"Select\")])],\n 2\n ),\n _vm._v(\" \"),\n _vm._t(\"bottom\")\n ],\n 2\n )\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://vue-file-selector/./src/component.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options"); - /***/ - }, - - /***/ - "./node_modules/vue-loader/lib/runtime/componentNormalizer.js": - /*!********************************************************************!*\ - !*** ./node_modules/vue-loader/lib/runtime/componentNormalizer.js ***! - \********************************************************************/ - - /*! exports provided: default */ - - /***/ - function (module, __webpack_exports__, __webpack_require__) { - "use strict"; - - eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return normalizeComponent; });\n/* 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\nfunction 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\n\n//# sourceURL=webpack://vue-file-selector/./node_modules/vue-loader/lib/runtime/componentNormalizer.js?"); - /***/ - }, - - /***/ - "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./src/component.vue?vue&type=style&index=0&id=a8ea6a18&lang=scss&scoped=true&": - /*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/vue-style-loader!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/component.vue?vue&type=style&index=0&id=a8ea6a18&lang=scss&scoped=true& ***! - \*************************************************************************************************************************************************************************************************************************************************************************************************************/ - - /*! no static exports found */ - - /***/ - function (module, exports, __webpack_require__) { - eval("// style-loader: Adds some css to the DOM by adding a