{"version":3,"file":"plugin-vue2_normalizer-XBmYDgEh.js","sources":["../../../plugin-vue2:normalizer"],"sourcesContent":["\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 inference\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 () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\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 functional 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}"],"names":["normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","options","hook","context","originalRender","h","existing"],"mappings":"AACe,SAASA,EACpBC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACF,CAEA,IAAIC,EAAU,OAAOR,GAAkB,WACjCA,EAAc,QACdA,EAGFC,IACFO,EAAQ,OAASP,EACjBO,EAAQ,gBAAkBN,EAC1BM,EAAQ,UAAY,IAIlBL,IACFK,EAAQ,WAAa,IAInBH,IACFG,EAAQ,SAAW,UAAYH,GAGjC,IAAII,EAmCJ,GAlCIH,GACFG,EAAO,SAAUC,EAAS,CAExBA,EACIA,GACC,KAAK,QAAU,KAAK,OAAO,YAC3B,KAAK,QAAU,KAAK,OAAO,QAAU,KAAK,OAAO,OAAO,WAEzD,CAACA,GAAW,OAAO,oBAAwB,MAC7CA,EAAU,qBAGRN,GACFA,EAAa,KAAK,KAAMM,CAAO,EAG7BA,GAAWA,EAAQ,uBACrBA,EAAQ,sBAAsB,IAAIJ,CAAgB,CAErD,EAGDE,EAAQ,aAAeC,GACdL,IACTK,EAAOF,EACD,UAAY,CACZH,EAAa,KACT,MACCI,EAAQ,WAAa,KAAK,OAAS,MAAM,MAAM,SAAS,UAC5D,CACF,EACCJ,GAGJK,EACF,GAAID,EAAQ,WAAY,CAGtBA,EAAQ,cAAgBC,EAExB,IAAIE,EAAiBH,EAAQ,OAC7BA,EAAQ,OAAS,SAAmCI,EAAGF,EAAS,CAC9D,OAAAD,EAAK,KAAKC,CAAO,EACVC,EAAeC,EAAGF,CAAO,CACjC,CACP,KAAW,CAEL,IAAIG,EAAWL,EAAQ,aACvBA,EAAQ,aAAeK,EACjB,GAAG,OAAOA,EAAUJ,CAAI,EACxB,CAACA,CAAI,CACZ,CAGH,MAAO,CACL,QAAST,EACT,QAASQ,CACV,CACH"}