vue-icon-packs
Version:
Vue SVG icon components.
148 lines (137 loc) • 6.37 kB
JavaScript
//
//
var script = { name: 'Planet'};
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
}
// Vue.extend constructor export interop.
const options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true;
// functional template
if (isFunctionalTemplate) {
options.functional = true;
}
}
// scopedId
if (scopeId) {
options._scopeId = scopeId;
}
let 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 (style) {
style.call(this, createInjectorSSR(context));
}
// register component module identifier for async chunk inference
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 (style) {
hook = shadowMode
? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
}
: function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
const originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
}
else {
// inject component registration as beforeCreate hook
const existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
}
/* script */
const __vue_script__ = script;
/* template */
var __vue_render__ = function() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c(
"svg",
{
attrs: {
width: "1em",
height: "1em",
viewBox: "0 0 24 24",
fill: "currentColor"
}
},
[
_c("path", {
attrs: {
fill: "none",
d:
"M4.633 17.117c-.374.689-.594 1.516-.377 1.76.23.262.918.281 1.942-.021C5.61 18.354 5.085 17.773 4.633 17.117zM8.349 17.962c1.546-.794 3.426-2.043 5.488-3.876 2.065-1.834 3.527-3.553 4.498-4.994-.105-.227-.221-.449-.351-.667C16.71 6.293 14.474 5.02 12.001 5.02c-1.257 0-2.498.346-3.589.999-1.607.96-2.742 2.482-3.195 4.286-.453 1.803-.173 3.681.789 5.286C6.6 16.586 7.409 17.384 8.349 17.962zM19.474 7.067c.421-.982.483-1.668.252-1.929-.229-.259-.505-.356-.861-.323-.232.025-.577.137-1.008.399C18.469 5.748 19.013 6.366 19.474 7.067zM15.165 15.582c-1.409 1.252-2.926 2.381-4.413 3.292.404.072.815.122 1.237.122 1.257 0 2.499-.346 3.59-.999 1.607-.96 2.741-2.481 3.194-4.285.177-.704.238-1.42.194-2.126C17.887 12.956 16.576 14.329 15.165 15.582z"
}
}),
_c("path", {
attrs: {
d:
"M2.76,20.205c0.517,0.581,1.257,0.841,2.147,0.841c0.975,0,2.133-0.319,3.373-0.86c1.144,0.519,2.396,0.811,3.709,0.811 c1.619,0,3.216-0.443,4.616-1.282c2.065-1.234,3.524-3.192,4.107-5.515c0.412-1.643,0.344-3.329-0.163-4.908 c1.31-2.236,1.753-4.263,0.672-5.48c-0.661-0.744-1.58-1.091-2.575-0.983C17.815,2.919,16.96,3.33,16.098,4.02 c-1.243-0.64-2.634-1-4.097-1c-1.618,0-3.215,0.443-4.615,1.282C5.319,5.536,3.861,7.495,3.277,9.817 c-0.449,1.788-0.333,3.63,0.306,5.325C2.518,16.346,1.529,18.819,2.76,20.205z M4.256,18.877c-0.217-0.244,0.003-1.07,0.377-1.76 c0.452,0.656,0.978,1.237,1.565,1.739C5.174,19.158,4.486,19.139,4.256,18.877z M18.773,13.712 c-0.453,1.804-1.587,3.325-3.194,4.285c-1.091,0.653-2.333,0.999-3.59,0.999c-0.422,0-0.833-0.05-1.237-0.122 c1.487-0.911,3.004-2.04,4.413-3.292c1.411-1.253,2.722-2.626,3.803-3.996C19.012,12.292,18.95,13.008,18.773,13.712z M18.864,4.815c0.356-0.033,0.632,0.064,0.861,0.323c0.231,0.261,0.169,0.946-0.252,1.929c-0.461-0.701-1.005-1.319-1.617-1.853 C18.287,4.952,18.632,4.841,18.864,4.815z M5.217,10.305C5.67,8.501,6.805,6.979,8.412,6.019c1.091-0.653,2.332-0.999,3.589-0.999 c2.473,0,4.709,1.273,5.983,3.405c0.13,0.218,0.245,0.44,0.351,0.667c-0.971,1.441-2.433,3.16-4.498,4.994 c-2.063,1.833-3.942,3.082-5.488,3.876c-0.939-0.578-1.749-1.376-2.343-2.371C5.044,13.985,4.764,12.107,5.217,10.305z"
}
})
]
)
};
var __vue_staticRenderFns__ = [];
__vue_render__._withStripped = true;
/* style */
const __vue_inject_styles__ = undefined;
/* scoped */
const __vue_scope_id__ = undefined;
/* module identifier */
const __vue_module_identifier__ = undefined;
/* functional template */
const __vue_is_functional_template__ = false;
/* style inject */
/* style inject SSR */
/* style inject shadow dom */
const __vue_component__ = /*#__PURE__*/normalizeComponent(
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
__vue_inject_styles__,
__vue_script__,
__vue_scope_id__,
__vue_is_functional_template__,
__vue_module_identifier__,
false,
undefined,
undefined,
undefined
);
export default __vue_component__;