vue-icon-packs
Version:
Vue SVG icon components.
141 lines (130 loc) • 4.98 kB
JavaScript
//
//
var script = { name: 'GitBranch'};
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: {
d:
"M17.5,4C15.57,4,14,5.57,14,7.5c0,1.554,1.025,2.859,2.43,3.315c-0.146,0.932-0.547,1.7-1.23,2.323 C13.254,14.911,9.673,15.073,8,15.045V8.837C9.44,8.403,10.5,7.08,10.5,5.5C10.5,3.57,8.93,2,7,2S3.5,3.57,3.5,5.5 c0,1.58,1.06,2.903,2.5,3.337v6.326C4.56,15.597,3.5,16.92,3.5,18.5C3.5,20.43,5.07,22,7,22s3.5-1.57,3.5-3.5 c0-0.551-0.14-1.065-0.367-1.529c2.06-0.186,4.657-0.757,6.409-2.35c1.097-0.997,1.731-2.264,1.904-3.768 C19.915,10.438,21,9.1,21,7.5C21,5.57,19.43,4,17.5,4z M5.5,5.5C5.5,4.673,6.173,4,7,4s1.5,0.673,1.5,1.5S7.827,7,7,7 S5.5,6.327,5.5,5.5z M7,20c-0.827,0-1.5-0.673-1.5-1.5c0-0.821,0.664-1.488,1.482-1.498c0.034,0.003,0.072,0.005,0.13,0.01 C7.887,17.07,8.5,17.711,8.5,18.5C8.5,19.327,7.827,20,7,20z M17.5,9C16.673,9,16,8.327,16,7.5S16.673,6,17.5,6S19,6.673,19,7.5 S18.327,9,17.5,9z"
}
})
]
)
};
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__;