vue-telescope-expo
Version:
Fully customizable expo component for Vue.js that fetches data from VueTelescope
622 lines (536 loc) • 25.6 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["telescopeexpo"] = factory();
else
root["telescopeexpo"] = factory();
})((typeof self !== 'undefined' ? self : this), 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 = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
/******/ })
/************************************************************************/
/******/ ({
/***/ "3cec":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
;
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_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_VueTelescopeExpo_vue_vue_type_style_index_0_id_0c332647_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4db5");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_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_VueTelescopeExpo_vue_vue_type_style_index_0_id_0c332647_scoped_true_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_dist_cjs_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_VueTelescopeExpo_vue_vue_type_style_index_0_id_0c332647_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/***/ }),
/***/ "4db5":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "8875":
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
// MIT license
// source: https://github.com/amiller-gh/currentScript-polyfill
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
(function (root, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
}(typeof self !== 'undefined' ? self : this, function () {
function getCurrentScript () {
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
// for chrome
if (!descriptor && 'currentScript' in document && document.currentScript) {
return document.currentScript
}
// for other browsers with native support for currentScript
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
return document.currentScript
}
// IE 8-10 support script readyState
// IE 11+ & Firefox support stack trace
try {
throw new Error();
}
catch (err) {
// Find the second match for the "at" string to get file src url from stack.
var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
scriptLocation = (stackDetails && stackDetails[1]) || false,
line = (stackDetails && stackDetails[2]) || false,
currentLocation = document.location.href.replace(document.location.hash, ''),
pageSource,
inlineScriptSourceRegExp,
inlineScriptSource,
scripts = document.getElementsByTagName('script'); // Live NodeList collection
if (scriptLocation === currentLocation) {
pageSource = document.documentElement.outerHTML;
inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
}
for (var i = 0; i < scripts.length; i++) {
// If ready state is interactive, return the script tag
if (scripts[i].readyState === 'interactive') {
return scripts[i];
}
// If src matches, return the script tag
if (scripts[i].src === scriptLocation) {
return scripts[i];
}
// If inline source matches, return the script tag
if (
scriptLocation === currentLocation &&
scripts[i].innerHTML &&
scripts[i].innerHTML.trim() === inlineScriptSource
) {
return scripts[i];
}
}
// If no match, return null
return null;
}
};
return getCurrentScript
}));
/***/ }),
/***/ "fb15":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
;
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
// This file is imported into lib/wc client bundles.
if (typeof window !== 'undefined') {
var currentScript = window.document.currentScript
if (true) {
var getCurrentScript = __webpack_require__("8875")
currentScript = getCurrentScript()
// for backward compatibility, because previously we directly included the polyfill
if (!('currentScript' in document)) {
Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
}
}
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
if (src) {
__webpack_require__.p = src[1] // eslint-disable-line
}
}
// Indicate to webpack that this file can be concatenated
/* harmony default export */ var setPublicPath = (null);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"290a772c-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/VueTelescopeExpo.vue?vue&type=template&id=0c332647&scoped=true&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"section"},[_c('div',{staticClass:"grid"},_vm._l((_vm.items),function(item){return _c('div',{key:item.id,staticClass:"grid-item"},[_vm._t("item",function(){return [_c('a',{staticClass:"grid-item-link",attrs:{"target":"_blank","href":item.url}},[_c('img',{staticClass:"grid-item-image",attrs:{"src":("https://res.cloudinary.com/nuxt/image/upload/w_" + _vm.imageWidth + ",h_" + (_vm.imageWidth * 6 / 8) + ",f_auto,q_auto/" + (item.screenshotUrl))}}),_c('div',{staticClass:"grid-item-details"},[_c('p',{staticClass:"grid-item-url"},[_c('strong',[_vm._v(_vm._s(item.hostname))])]),_c('div',{staticClass:"grid-item-plugins"},[_c('a',{staticClass:"grid-item-link",attrs:{"target":"_blank","href":("https://vuetelescope.com/explore/" + (item.slug))}},[(item.ui)?_c('img',{staticClass:"grid-item-plugin-image",attrs:{"src":("https://icons.vuetelescope.com" + (item.ui.imgPath))}}):_vm._e(),(item.framework)?_c('img',{staticClass:"grid-item-plugin-image",attrs:{"src":("https://icons.vuetelescope.com" + (item.framework.imgPath))}}):_vm._e()])])])])]},{"item":item})],2)}),0),_c('div',{staticClass:"controls"},[(!_vm.retry)?_c('div',[_vm._t("buttons",function(){return [(_vm.hasMoreItems)?_c('button',{staticClass:"button",on:{"click":_vm.loadMoreItems}},[_vm._v(_vm._s(!_vm.loading ? _vm.labelLoadMore : _vm.labelLoading))]):_vm._e()]},null,{ loading: _vm.loading, loadMoreItems: _vm.loadMoreItems, hasMoreItems: _vm.hasMoreItems, labelLoadMore: _vm.labelLoadMore, labelLoading: _vm.labelLoading })],2):_vm._e(),(_vm.retry)?_c('div',[_vm._t("retry",function(){return [_c('div',{staticClass:"retry-label"},[_vm._v(_vm._s(_vm.labelError))]),_c('button',{staticClass:"button",on:{"click":_vm.firstLoadItems}},[_vm._v(_vm._s(_vm.labelRetry))])]},{"firstLoadItems":_vm.firstLoadItems})],2):_vm._e()])])}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/VueTelescopeExpo.vue?vue&type=template&id=0c332647&scoped=true&
// CONCATENATED MODULE: ./src/VueTelescopeClient.js
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var _default = /*#__PURE__*/function () {
function _default() {
_classCallCheck(this, _default);
_defineProperty(this, "API_ENDPOINT", "https://api.vuetelescope.com");
}
_createClass(_default, [{
key: "getItems",
value: function getItems(slugs) {
var sortField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "rank";
var sortDirection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "asc";
var limit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 12;
var start = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
var endpoint = new URL("".concat(this.API_ENDPOINT, "/showcases/"));
for (var property in slugs) {
if (Array.isArray(slugs[property])) {
var _iterator = _createForOfIteratorHelper(slugs[property]),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var element = _step.value;
endpoint.searchParams.append("".concat(property, ".slug"), element);
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
} else {
endpoint.searchParams.append("".concat(property, ".slug"), slugs[property]);
}
}
endpoint.searchParams.append('_limit', limit);
endpoint.searchParams.append('_start', start);
endpoint.searchParams.append('_sort', "".concat(sortField, ":").concat(sortDirection));
return fetch(endpoint.href).then(function (response) {
return response.json();
});
}
}, {
key: "getItemsCount",
value: function getItemsCount(slugs) {
var sortField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "rank";
var sortDirection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "asc";
var endpoint = new URL("".concat(this.API_ENDPOINT, "/showcases/count/"));
for (var property in slugs) {
if (Array.isArray(slugs[property])) {
var _iterator2 = _createForOfIteratorHelper(slugs[property]),
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var element = _step2.value;
endpoint.searchParams.append("".concat(property, ".slug"), element);
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
} else {
endpoint.searchParams.append("".concat(property, ".slug"), slugs[property]);
}
}
endpoint.searchParams.append('_sort', "".concat(sortField, ":").concat(sortDirection));
return fetch(endpoint.href).then(function (response) {
return response.json();
});
}
}]);
return _default;
}();
// 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/VueTelescopeExpo.vue?vue&type=script&lang=js&
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || VueTelescopeExpovue_type_script_lang_js_unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function VueTelescopeExpovue_type_script_lang_js_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return VueTelescopeExpovue_type_script_lang_js_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return VueTelescopeExpovue_type_script_lang_js_arrayLikeToArray(o, minLen); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return VueTelescopeExpovue_type_script_lang_js_arrayLikeToArray(arr); }
function VueTelescopeExpovue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var VueTelescopeExpovue_type_script_lang_js_ = ({
name: "VueTelescopeExpo",
props: {
slugs: Object,
imageWidth: {
type: Number,
default: 800
},
sortBy: {
type: String,
default: "rank"
},
sortDirection: {
type: String,
default: "asc"
},
labelRetry: {
type: String,
default: "Retry"
},
labelError: {
type: String,
default: "Something went wrong!"
},
labelLoadMore: {
type: String,
default: "Load More"
},
labelLoading: {
type: String,
default: "Loading..."
}
},
data: function data() {
return {
items: [],
count: 0,
loading: false,
limit: 12,
start: 0,
client: new _default(),
retry: false
};
},
computed: {
hasMoreItems: function hasMoreItems() {
return this.items.length < this.count;
}
},
methods: {
firstLoadItems: function firstLoadItems() {
var _this = this;
this.retry = false;
this.client.getItemsCount(this.slugs, this.sortBy, this.sortDirection).then(function (data) {
_this.count = parseInt(data, 10);
_this.loadItems();
}).catch(function () {
_this.retry = true;
});
},
loadItems: function loadItems() {
var _this2 = this;
this.loading = true;
this.client.getItems(this.slugs, this.sortBy, this.sortDirection, this.limit, this.start).then(function (data) {
_this2.items = [].concat(_toConsumableArray(_this2.items), _toConsumableArray(data.filter(function (d) {
return d.isPublic;
})));
}).finally(function () {
_this2.loading = false;
});
},
loadMoreItems: function loadMoreItems() {
this.start += this.limit;
this.loadItems();
}
},
beforeMount: function beforeMount() {
this.firstLoadItems();
}
});
// CONCATENATED MODULE: ./src/VueTelescopeExpo.vue?vue&type=script&lang=js&
/* harmony default export */ var src_VueTelescopeExpovue_type_script_lang_js_ = (VueTelescopeExpovue_type_script_lang_js_);
// EXTERNAL MODULE: ./src/VueTelescopeExpo.vue?vue&type=style&index=0&id=0c332647&scoped=true&lang=css&
var VueTelescopeExpovue_type_style_index_0_id_0c332647_scoped_true_lang_css_ = __webpack_require__("3cec");
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
function normalizeComponent (
scriptExports,
render,
staticRenderFns,
functionalTemplate,
injectStyles,
scopeId,
moduleIdentifier, /* server only */
shadowMode /* vue-cli only */
) {
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (render) {
options.render = render
options.staticRenderFns = staticRenderFns
options._compiled = true
}
// functional template
if (functionalTemplate) {
options.functional = true
}
// scopedId
if (scopeId) {
options._scopeId = 'data-v-' + scopeId
}
var hook
if (moduleIdentifier) { // server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = shadowMode
? function () {
injectStyles.call(
this,
(options.functional ? this.parent : this).$root.$options.shadowRoot
)
}
: injectStyles
}
if (hook) {
if (options.functional) {
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
// register for functional component in vue file
var originalRender = options.render
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
return originalRender(h, context)
}
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate
options.beforeCreate = existing
? [].concat(existing, hook)
: [hook]
}
}
return {
exports: scriptExports,
options: options
}
}
// CONCATENATED MODULE: ./src/VueTelescopeExpo.vue
/* normalize component */
var component = normalizeComponent(
src_VueTelescopeExpovue_type_script_lang_js_,
render,
staticRenderFns,
false,
null,
"0c332647",
null
)
/* harmony default export */ var VueTelescopeExpo = (component.exports);
// CONCATENATED MODULE: ./src/main.js
/* harmony default export */ var main = (VueTelescopeExpo);
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (main);
/***/ })
/******/ })["default"];
});
//# sourceMappingURL=vue-telescope-expo.umd.js.map