{"version":3,"sources":["jsdelivr-header.js","/npm/vue-console@2.1.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCwCO,qBAAsB,0BAEd,CACb,OAAA,CAAS,EAAK,GACZ,EAAI,UAAU,SAAW,CACvB,SAAU,IAGZ,EAAI,MAAM,CACR,WAAA,GAWE,IAAI,EAAW,KAAK,SAAS,SAC7B,GAAI,EAAU,CACD,KAAK,SAAS,MACd,QAAQ,KAAK,gHACxB,OAAO,KAAK,GAAU,SAAQ,GAbhC,SAAmB,EAAM,EAAS,GAEhC,IAAI,EAAS,EAAQ,KAAK,EAAb,GACb,EAAO,EAAK,cACZ,QAAQ,IAAI,EAAM,GAClB,EAAS,SAAS,SAAS,GAAQ,CAAC,MAAO,EAAO,MAAO,QAAS,EAAO,QAAQ,KAAK,GACxF,CAO2C,CAAS,EAAS,KAAK,SAAS,SAAS,GAAU,OAC9F,CACF,IAGF,EAAI,UAAU,YAAa,iBAC7B","file":"/npm/vue-console@2.1.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vue-console@2.1.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n  vue-console 1.0.0\n  https://github.com/onexdata/vue-console\n  By Nick Steele <njsteele@gmail.com>\n\n  Based on console.js 1.2.2 (pre-React)\n\n  Apache 2.0 License.\n\n  Usage:\n\n  * In your app:\n\n  import console from 'vue-console'\n  Vue.use(console)\n\n  * Custom settings:\n  <v-console settings=\"yourSettingsHere\" />\n\n  * On any of your other vue components:\n\n  commands: {\n    support () {\n      // Do stuff here to initially setup your command\n      return {\n        // Guide is what shows up in the help system\n        guide: 'Contact a client speciailist',\n        // command is what gets executed when they type the command\n        command () {\n          // return is what is finally sent back to the console as output\n          return 'Contacting a client solutions specialist, hold on...'\n        }\n      }\n    },\n    reboot () {\n      return {\n        guide: 'Restarts the program',\n        command () {\n          setTimeout(function () { location.reload() }, 1000)\n          return '<span style=\"color: red\">Rebooting...</span>'\n        }\n      }\n    }\n  }\n */\n\nimport consoleComponent from './console'\n\nexport default {\n  install (Vue, options) {\n    Vue.prototype.$console = {\n      commands: []\n    }\n\n    Vue.mixin({\n      beforeMount () {\n        // This registers new commands found on each component in your apps...\n        function register (name, payload, instance) {\n          // Run the payload to set up the command and get it's guide and function...\n          var config = payload.bind(instance)()\n          name = name.toLowerCase()\n          console.log(name, config)\n          instance.$console.commands[name] = {guide: config.guide, command: config.command.bind(instance)}\n        }\n\n        // Go through each component in the app and register all commands...\n        let commands = this.$options.commands\n        if (commands) {\n          let name = this.$options.name\n          if (!name) console.warn('vue-console: All components should all be named. Failing to do so will result in difficulty debugging later.')\n          Object.keys(commands).forEach(command => register(command, this.$options.commands[command], this))\n        }\n      }\n    })\n\n    Vue.component('v-console', consoleComponent)\n  }\n}\n"]}