{"version":3,"sources":["webpack:///C:/a/2/s/Cognito.Web.Client/libs/element-ui/lib/mixins/migrating.js"],"names":["exports","__esModule","default","methods","getMigratingConfig","props","events"],"mappings":"8FAEAA,EAAQC,YAAa,EACrBD,EAAQE,aAAU,EACN,EAAQ,KAsBLF,EAAQE,QAAU,CAC/B,YA0BAC,QAAS,CACPC,mBAAkB,KACT,CACLC,MAAO,GACPC,OAAQ","file":"0.2e65772ce590f777f2f3.js","sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\nvar _util = require(\"../../lib/utils/util\");\n/**\n * Show migrating guide in browser console.\n *\n * Usage:\n * import Migrating from '@cognitoforms/element-ui/src/mixins/migrating';\n *\n * mixins: [Migrating]\n *\n * add getMigratingConfig method for your component.\n * getMigratingConfig() {\n * return {\n * props: {\n * 'allow-no-selection': 'allow-no-selection is removed.',\n * 'selection-mode': 'selection-mode is removed.'\n * },\n * events: {\n * selectionchange: 'selectionchange is renamed to selection-change.'\n * }\n * };\n * },\n */\nvar _default = exports.default = {\n mounted() {\n if (process.env.NODE_ENV === 'production') return;\n if (!this.$vnode) return;\n const {\n props = {},\n events = {}\n } = this.getMigratingConfig();\n const {\n data,\n componentOptions\n } = this.$vnode;\n const definedProps = data.attrs || {};\n const definedEvents = componentOptions.listeners || {};\n for (let propName in definedProps) {\n propName = (0, _util.kebabCase)(propName); // compatible with camel case\n if (props[propName]) {\n console.warn(`[Element Migrating][${this.$options.name}][Attribute]: ${props[propName]}`);\n }\n }\n for (let eventName in definedEvents) {\n eventName = (0, _util.kebabCase)(eventName); // compatible with camel case\n if (events[eventName]) {\n console.warn(`[Element Migrating][${this.$options.name}][Event]: ${events[eventName]}`);\n }\n }\n },\n methods: {\n getMigratingConfig() {\n return {\n props: {},\n events: {}\n };\n }\n }\n};"],"sourceRoot":""}