{"version":3,"sources":["webpack:///./src/views/AddPrinter.vue?b428","webpack:///src/views/AddPrinter.vue","webpack:///./src/views/AddPrinter.vue?f689","webpack:///./src/views/AddPrinter.vue","webpack:///./src/views/AddPrinter.vue?7024"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","postPrinter","isAddButtonEnabled","hasChangesBeenMade","loading","warningText","on","$event","closeModal","_e","staticClass","subscriptionSettings","selectedVendor","vendors","e","selectedModel","printerModels","model","value","callback","$$v","printerName","expression","ip","port","availableGroups","groups","staticRenderFns","components","Modal","AssignGroups","GrafokettInput","DropDown","headersUsers","name","vendor","showWarning","computed","length","$store","getters","map","id","p","ipAddress","expandableData","installedPrinters","uniqueModels","maxPrintersReached","list","i","push","v","watch","getPrinterModels","newValue","disabledFlag","methods","installedPrinter","pm","response","$api","get","data","dispatch","payload","printerGroups","groupId","defaultForGroup","checked","console","error","getData","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAACE,MAAM,CAAC,OAAS,UAAU,KAAO,UAAU,KAAO,WAAW,YAAa,EAAK,UAAY,cAAc,UAAYN,EAAIO,YAAY,cAAgBP,EAAIQ,mBAAmB,mBAAqBR,EAAIS,mBAAmB,QAAUT,EAAIU,UAAU,CAAEV,EAAe,YAAEI,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,UAAU,QAAU,UAAU,YAAcN,EAAIW,aAAaC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,iBAAiBd,EAAIe,KAAKX,EAAG,UAAU,CAACY,YAAY,6BAA6B,CAACZ,EAAG,YAAY,CAACY,YAAY,OAAOV,MAAM,CAAC,YAAc,gBAAgB,SAAwC,OAA7BN,EAAIiB,qBAA8B,MAAQjB,EAAIkB,eAAe,cAAgB,OAAO,WAAa,OAAO,QAAUlB,EAAImB,SAASP,GAAG,C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tZqC,EAAY,eACd,EACAhF,EACAkC,GACA,EACA,KACA,KACA,MAIa,aAAA8C,E,2CCnBf,yBAAqf,EAAG,G","file":"js/chunk-02ff3525.190314b6.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('view-wrapper',{attrs:{\"prefix\":\"Add new\",\"name\":\"Printer\",\"path\":\"printers\",\"showCancel\":true,\"addedText\":\"Add printer\",\"addedFunc\":_vm.postPrinter,\"disabledFlag\":!_vm.isAddButtonEnabled,\"hasChangesBeenMade\":_vm.hasChangesBeenMade,\"loading\":_vm.loading}},[(_vm.showWarning)?_c('modal',{attrs:{\"type\":\"warning\",\"heading\":\"Warning\",\"description\":_vm.warningText},on:{\"close\":function($event){return _vm.closeModal()}}}):_vm._e(),_c('wrapper',{staticClass:\"flex justify-between mb-3\"},[_c('drop-down',{staticClass:\"w-96\",attrs:{\"placeholder\":\"Select vendor\",\"disabled\":_vm.subscriptionSettings === null,\"value\":_vm.selectedVendor,\"valueProperty\":\"name\",\"searchProp\":\"name\",\"options\":_vm.vendors},on:{\"input\":function (e) {\n _vm.selectedVendor = e;\n _vm.selectedModel = {};\n }}}),_c('drop-down',{staticClass:\"w-96\",attrs:{\"placeholder\":\"Select model\",\"value\":_vm.selectedModel,\"valueProperty\":\"name\",\"searchProp\":\"name\",\"options\":_vm.printerModels},on:{\"input\":function($event){_vm.selectedModel = $event}}})],1),_c('wrapper',{staticClass:\"px-5 py-10 mb-3\",attrs:{\"checkForChildFocused\":true}},[_c('grafokett-input',{attrs:{\"editable\":true,\"labelPlaceholder\":\"Printer name\"},model:{value:(_vm.printerName),callback:function ($$v) {_vm.printerName=$$v},expression:\"printerName\"}})],1),_c('wrapper',{staticClass:\"px-5 py-10 mb-3\",attrs:{\"checkForChildFocused\":true}},[_c('grafokett-input',{attrs:{\"editable\":true,\"labelPlaceholder\":\"IP-adress\"},model:{value:(_vm.ip),callback:function ($$v) {_vm.ip=$$v},expression:\"ip\"}})],1),_c('wrapper',{staticClass:\"px-5 py-10 mb-20\",attrs:{\"checkForChildFocused\":true,\"focus\":_vm.port !== ''}},[_c('grafokett-input',{attrs:{\"editable\":true,\"labelPlaceholder\":\"Port\"},model:{value:(_vm.port),callback:function ($$v) {_vm.port=$$v},expression:\"port\"}})],1),_c('assign-groups',{staticClass:\"mt-16 mb-5\",attrs:{\"groups\":_vm.availableGroups,\"useCheckbox\":false},model:{value:(_vm.groups),callback:function ($$v) {_vm.groups=$$v},expression:\"groups\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddPrinter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddPrinter.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AddPrinter.vue?vue&type=template&id=7e642d19&\"\nimport script from \"./AddPrinter.vue?vue&type=script&lang=js&\"\nexport * from \"./AddPrinter.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AddPrinter.vue?vue&type=style&index=0&lang=postcss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/index.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddPrinter.vue?vue&type=style&index=0&lang=postcss&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/index.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddPrinter.vue?vue&type=style&index=0&lang=postcss&\""],"sourceRoot":""}