{"version":3,"file":"create-new-child-component-BPPNs3ol.js","sources":["../../../node_modules/@gitlab/ui/dist/vendor/bootstrap-vue/src/mixins/use-parent.js","../../../node_modules/@gitlab/ui/dist/vendor/bootstrap-vue/src/utils/bv-event.class.js","../../../node_modules/@gitlab/ui/dist/vendor/bootstrap-vue/src/utils/get-scope-id.js","../../../node_modules/@gitlab/ui/dist/vendor/bootstrap-vue/src/mixins/scoped-style.js","../../../node_modules/@gitlab/ui/dist/vendor/bootstrap-vue/src/components/transition/bv-transition.js","../../../node_modules/@gitlab/ui/dist/vendor/bootstrap-vue/src/utils/create-new-child-component.js"],"sourcesContent":["import { extend } from '../vue';\n\n// --- Mixin ---\n\n// @vue/component\nconst useParentMixin = extend({\n computed: {\n bvParent() {\n return this.$parent || this.$root === this && this.$options.bvParent;\n }\n }\n});\n\nexport { useParentMixin };\n","import { assign, defineProperties, readonlyDescriptor, defineProperty } from './object';\n\nclass BvEvent {\n constructor(type) {\n let eventInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n // Start by emulating native Event constructor\n if (!type) {\n /* istanbul ignore next */\n throw new TypeError(`Failed to construct '${this.constructor.name}'. 1 argument required, ${arguments.length} given.`);\n }\n\n // Merge defaults first, the eventInit, and the type last\n // so it can't be overwritten\n assign(this, BvEvent.Defaults, this.constructor.Defaults, eventInit, {\n type\n });\n\n // Freeze some props as readonly, but leave them enumerable\n defineProperties(this, {\n type: readonlyDescriptor(),\n cancelable: readonlyDescriptor(),\n nativeEvent: readonlyDescriptor(),\n target: readonlyDescriptor(),\n relatedTarget: readonlyDescriptor(),\n vueTarget: readonlyDescriptor(),\n componentId: readonlyDescriptor()\n });\n\n // Create a private variable using closure scoping\n let defaultPrevented = false;\n // Recreate preventDefault method. One way setter\n this.preventDefault = function preventDefault() {\n if (this.cancelable) {\n defaultPrevented = true;\n }\n };\n\n // Create `defaultPrevented` publicly accessible prop that\n // can only be altered by the preventDefault method\n defineProperty(this, 'defaultPrevented', {\n enumerable: true,\n get() {\n return defaultPrevented;\n }\n });\n }\n static get Defaults() {\n return {\n type: '',\n cancelable: true,\n nativeEvent: null,\n target: null,\n relatedTarget: null,\n vueTarget: null,\n componentId: null\n };\n }\n}\n\nexport { BvEvent };\n","// This method returns a component's scoped style attribute name: `data-v-xxxxxxx`\n// The `_scopeId` options property is added by vue-loader when using scoped styles\n// and will be `undefined` if no scoped styles are in use\nconst getScopeId = function (vm) {\n let defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return vm ? vm.$options._scopeId || defaultValue : defaultValue;\n};\n\nexport { getScopeId };\n","import { extend } from '../vue';\nimport { useParentMixin } from './use-parent';\nimport { getScopeId } from '../utils/get-scope-id';\n\n// @vue/component\nconst scopedStyleMixin = extend({\n mixins: [useParentMixin],\n computed: {\n scopedStyleAttrs() {\n const scopeId = getScopeId(this.bvParent);\n return scopeId ? {\n [scopeId]: ''\n } : {};\n }\n }\n});\n\nexport { scopedStyleMixin };\n","import { extend, mergeData } from '../../vue';\nimport { NAME_TRANSITION } from '../../constants/components';\nimport { PROP_TYPE_BOOLEAN, PROP_TYPE_STRING, PROP_TYPE_OBJECT } from '../../constants/props';\nimport { isPlainObject } from '../../utils/inspect';\nimport { makeProp } from '../../utils/props';\n\n// Generic Bootstrap v4 fade (no-fade) transition component\n\n// --- Constants ---\n\nconst NO_FADE_PROPS = {\n name: '',\n enterClass: '',\n enterActiveClass: '',\n enterToClass: 'show',\n leaveClass: 'show',\n leaveActiveClass: '',\n leaveToClass: ''\n};\nconst FADE_PROPS = {\n ...NO_FADE_PROPS,\n enterActiveClass: 'fade',\n leaveActiveClass: 'fade'\n};\n\n// --- Props ---\n\nconst props = {\n // Has no effect if `trans-props` provided\n appear: makeProp(PROP_TYPE_BOOLEAN, false),\n // Can be overridden by user supplied `trans-props`\n mode: makeProp(PROP_TYPE_STRING),\n // Only applicable to the built in transition\n // Has no effect if `trans-props` provided\n noFade: makeProp(PROP_TYPE_BOOLEAN, false),\n // For user supplied transitions (if needed)\n transProps: makeProp(PROP_TYPE_OBJECT)\n};\nconst hasAnimateSupport = typeof Element !== 'undefined' && Boolean(Element.prototype.animate);\n\n// --- Main component ---\n\n// @vue/component\nconst BVTransition = /*#__PURE__*/extend({\n name: NAME_TRANSITION,\n functional: true,\n props,\n render(h, _ref) {\n let {\n children,\n data,\n props\n } = _ref;\n let transProps = props.transProps;\n if (!isPlainObject(transProps)) {\n transProps = props.noFade ? NO_FADE_PROPS : FADE_PROPS;\n if (props.appear) {\n // Default the appear classes to equal the enter classes\n transProps = {\n ...transProps,\n appear: true,\n appearClass: transProps.enterClass,\n appearActiveClass: transProps.enterActiveClass,\n appearToClass: transProps.enterToClass\n };\n }\n }\n transProps = {\n mode: props.mode,\n ...transProps,\n /*\n bootstrap-vue says: We always need `css` true\n @gitlab/ui says: OMG. THE FREAKING TRANSITIONS.\n So apparently jsdom doesn't implement animations (who can blame them)\n but a Vue Transition relies on the native animationend/transitionend\n events in order to fire onAfterLeave. jsdom will never fire the `onAfterLeave`\n which is relied on by e.g. the tooltip component to do it's `hidden` logic.\n So if in specs, we set `css: false`, everything will work as expected.\n The best way we have found is to do a feature detection on `Element.prototype.animate`\n */\n css: hasAnimateSupport\n };\n const dataCopy = {\n ...data\n };\n delete dataCopy.props;\n return h('transition',\n // Any transition event listeners will get merged here\n mergeData(dataCopy, {\n props: transProps\n }), children);\n }\n});\n\nexport { BVTransition, props };\n","const createNewChildComponent = function (parent, Component) {\n let config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const bvEventRoot = parent.$root ? parent.$root.$options.bvEventRoot || parent.$root : null;\n return new Component({\n ...config,\n parent,\n bvParent: parent,\n bvEventRoot\n });\n};\n\nexport { createNewChildComponent };\n"],"names":["useParentMixin","extend","BvEvent","type","eventInit","assign","defineProperties","readonlyDescriptor","defaultPrevented","defineProperty","getScopeId","vm","defaultValue","scopedStyleMixin","scopeId","NO_FADE_PROPS","FADE_PROPS","props","makeProp","PROP_TYPE_BOOLEAN","PROP_TYPE_STRING","PROP_TYPE_OBJECT","hasAnimateSupport","BVTransition","NAME_TRANSITION","h","_ref","children","data","transProps","isPlainObject","dataCopy","mergeData","createNewChildComponent","parent","Component","config","bvEventRoot"],"mappings":"6IAKK,MAACA,EAAiBC,EAAO,CAC5B,SAAU,CACR,UAAW,CACT,OAAO,KAAK,SAAW,KAAK,QAAU,MAAQ,KAAK,SAAS,QAC7D,CACF,CACH,CAAC,ECTD,MAAMC,CAAQ,CACZ,YAAYC,EAAM,CAChB,IAAIC,EAAY,UAAU,OAAS,GAAK,UAAU,CAAC,IAAM,OAAY,UAAU,CAAC,EAAI,CAAA,EAEpF,GAAI,CAACD,EAEH,MAAM,IAAI,UAAU,wBAAwB,KAAK,YAAY,IAAI,2BAA2B,UAAU,MAAM,SAAS,EAKvHE,EAAO,KAAMH,EAAQ,SAAU,KAAK,YAAY,SAAUE,EAAW,CACnE,KAAAD,CACN,CAAK,EAGDG,EAAiB,KAAM,CACrB,KAAMC,EAAoB,EAC1B,WAAYA,EAAoB,EAChC,YAAaA,EAAoB,EACjC,OAAQA,EAAoB,EAC5B,cAAeA,EAAoB,EACnC,UAAWA,EAAoB,EAC/B,YAAaA,EAAoB,CACvC,CAAK,EAGD,IAAIC,EAAmB,GAEvB,KAAK,eAAiB,UAA0B,CAC1C,KAAK,aACPA,EAAmB,GAE3B,EAIIC,EAAe,KAAM,mBAAoB,CACvC,WAAY,GACZ,KAAM,CACJ,OAAOD,CACR,CACP,CAAK,CACF,CACD,WAAW,UAAW,CACpB,MAAO,CACL,KAAM,GACN,WAAY,GACZ,YAAa,KACb,OAAQ,KACR,cAAe,KACf,UAAW,KACX,YAAa,IACnB,CACG,CACH,CCtDK,MAACE,EAAa,SAAUC,EAAI,CAC/B,IAAIC,EAAe,UAAU,OAAS,GAAK,UAAU,CAAC,IAAM,OAAY,UAAU,CAAC,EAAI,KACvF,OAAOD,GAAKA,EAAG,SAAS,UAAYC,CACtC,ECDMC,EAAmBZ,EAAO,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