{"version":3,"sources":["webpack:///./src/components/report/ReportEdit.vue","webpack:///src/components/report/ReportEdit.vue","webpack:///./src/components/report/ReportEdit.vue?cdc4","webpack:///./src/components/report/ReportEdit.vue?00d3","webpack:///../../../src/components/VDataTable/VSimpleTable.ts","webpack:///../../../src/components/VToolbar/index.ts"],"names":["valid","expression","attrs","staticClass","value","name","callback","_vm","$t","autocompleteRules","scopedSlots","fn","domProps","model","reportContacts","_s","item","$$v","status","loading","_c","tagStatus","keys","tagDataKey","_v","on","removeListItem","_e","staticRenderFns","data","submitted","tempo","type","tag","includedTags","tempoItems","desc","reportTypes","nameRules","messageRules","computed","mapState","tags","tagDataStatus","companyUsers","companyStatus","methods","mapActions","newInclude","key","deveui","deleteReport","reportId","handleSubmit","payloadTags","payloadKeys","payload","tagIds","created","watch","tagId","component","mixins","Themeable","extend","props","dense","Boolean","fixedHeader","height","Number","String","classes","this","$slots","top","bottom","themeClasses","genWrapper","wrapper","$createElement","style","convertToUnit","default","render","h","class","VToolbarTitle","createSimpleFunctional","VToolbarItems","VToolbar"],"mappings":"uUAAwRA,W,IAAS,EAAC,K,EAACC,QAAW,G,OAAO,UAAE,IAAK,OAA0BC,MAAM,CAAC,mBAAiB,G,GAAW,CAAS,mBAA8EC,OAAxE,EAAC,iBAAkF,EAAC,qC,MAAgE,CAAqC,MAAM,EAAC,MAAO,kBAA2B,GAAC,EAAM,MAAO,GAAuB,qB,CAAQC,SAAU,CAACC,SAAK,C,MAACC,C,MAA6BD,UAAQ,KAAC,GAACJ,UAAqB,GAAG,OAAI,GAAc,GAAG,EAAC,6BAAiB,SAACE,YAAY,iBAAYD,GAAM,oB,MAAC,CAAqB,MAAQK,EAAIC,GAAG,sBAAgC,KAAO,OAAkB,eAAYC,aAAkB,YAAc,QAAY,W,MAAkC,CAAc,aAAiC,qBAACC,OAAYH,GAAoBI,WAAG,W,GAAkFC,SAAS,W,YAAC,Y,MAA+B,C,aAAS,M,MAA+CA,EAAQ,GAAC,gC,MAAC,e,M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AA,8KACA,yCACA,4CAMA,IAFAC,KACAC,KACA,gCACAD,iCACAC,8BAcA,GAXA,eAEAlD,+CAEAmD,GACAnD,OACA2B,OACAD,QACAT,OACAR,iBACA2C,WAGA,0CACA,UACAL,kCACAI,YACA,QAEA,qEAhCA,MAoCAE,mBAAA,oKAEA,qBACA,8EAEA,aAAAN,8BAAA,OAUA,SAPA,YACA,oBAEA,4BACA,4BACA,8BACAV,uBACA,EACA,qBACAQ,mBACAD,eAGA,iEACA,wBACA,2CAvBA,IA0BAU,OAEA1B,kBACA,6BAAA2B,aCnVoT,I,YCOhTC,EAAY,eACd,EACA,EACAjC,GACA,EACA,KACA,KACA,MAIa,aAAAiC,E,uHCXAC,sBAAOC,QAAWC,OAAO,CACtC3D,KAAM,iBAEN4D,MAAO,CACLC,MAAOC,QACPC,YAAaD,QACbE,OAAQ,CAACC,OAAQC,SAGnB/B,SAAU,CACRgC,QAAO,WACL,OAAO,gBACL,sBAAuBC,KAAKP,MAC5B,+BAAgCO,KAAKJ,SAAWI,KAAKL,YACrD,6BAA8BK,KAAKL,YACnC,0BAA2BK,KAAKC,OAAOC,IACvC,6BAA8BF,KAAKC,OAAOE,QACvCH,KAAKI,gBAKd/B,QAAS,CACPgC,WAAU,WACR,OAAOL,KAAKC,OAAOK,SAAWN,KAAKO,eAAe,MAAO,CACvD7E,YAAa,wBACb8E,MAAO,CACLZ,OAAQa,eAAcT,KAAKJ,UAE5B,CACDI,KAAKO,eAAe,QAASP,KAAKC,OAAOS,aAK/CC,OAAM,SAAEC,GACN,OAAOA,EAAE,MAAO,CACdlF,YAAa,eACbmF,MAAOb,KAAKD,SACX,CACDC,KAAKC,OAAOC,IACZF,KAAKK,aACLL,KAAKC,OAAOE,a,oCCjDlB,gGAMMW,EAAgBC,eAAuB,oBACvCC,EAAgBD,eAAuB,oBAUzCE,Q","file":"js/chunk-9b88896c.87c2a55c.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-form',{ref:\"form\",attrs:{\"lazy-validation\":false},on:{\"submit\":function($event){$event.preventDefault();return _vm.handleSubmit.apply(null, arguments)}},model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"primary\",\"dark\":\"\",\"flat\":\"\"}},[_c('v-toolbar-title',[_vm._v(_vm._s(_vm.$t(\"report.update\")))]),_c('div',{staticClass:\"flex-grow-1\"})],1),_c('v-card-text',[_c('v-text-field',{attrs:{\"label\":_vm.$t('report.fields.name'),\"name\":\"name\",\"prepend-icon\":\"mdi-domain\",\"type\":\"text\",\"rules\":_vm.nameRules},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}})],1),_c('v-card-text',[_c('v-autocomplete',{staticClass:\"pt-0 mt-0\",attrs:{\"autocomplete\":\"off\",\"label\":_vm.$t('report.fields.reportContacts'),\"items\":_vm.companyUsers,\"rules\":_vm.autocompleteRules,\"required\":\"\",\"item-text\":\"firstname\",\"item-value\":\"userId\",\"multiple\":\"\",\"prepend-icon\":\"mdi-account-box\"},scopedSlots:_vm._u([{key:\"item\",fn:function(data){return [(typeof data.item !== 'object')?[_c('v-list-item-content',{domProps:{\"textContent\":_vm._s(data.item)}})]:[_c('v-list-item-content',[_c('v-list-item-title',{domProps:{\"innerHTML\":_vm._s(data.item.firstname)}}),_c('v-list-item-subtitle',{domProps:{\"innerHTML\":_vm._s(data.item.lastname)}})],1)]]}}]),model:{value:(_vm.reportContacts),callback:function ($$v) {_vm.reportContacts=$$v},expression:\"reportContacts\"}})],1),_c('v-card-text',[_c('v-select',{attrs:{\"prepend-icon\":\"mdi-all-inclusive\",\"items\":_vm.tempoItems,\"label\":_vm.$t('report.fields.tempo'),\"item-text\":\"name\",\"item-value\":\"value\"},scopedSlots:_vm._u([{key:\"item\",fn:function(data){return [(typeof data.item !== 'object')?[_c('v-list-item-content',{domProps:{\"textContent\":_vm._s(data.item)}})]:[_c('v-list-item-content',[_c('v-list-item-title',{domProps:{\"innerHTML\":_vm._s(data.item.name)}}),_c('v-list-item-subtitle',{domProps:{\"innerHTML\":_vm._s(data.item.desc)}})],1)]]}}]),model:{value:(_vm.tempo),callback:function ($$v) {_vm.tempo=$$v},expression:\"tempo\"}})],1),_c('v-card-text',[_c('v-autocomplete',{staticClass:\"pa-0 ma-0\",attrs:{\"autocomplete\":\"off\",\"disabled\":_vm.status.loading,\"loading\":_vm.status.loading,\"label\":_vm.$t('report.fields.type'),\"items\":_vm.reportTypes,\"item-text\":\"name\",\"item-value\":\"value\",\"prepend-icon\":\"mdi-form-select\",\"required\":\"\"},model:{value:(_vm.type),callback:function ($$v) {_vm.type=$$v},expression:\"type\"}})],1),_c('v-divider'),_c('v-card-text',{staticClass:\"pb-0\"},[_c('v-autocomplete',{staticClass:\"pb-0 mb-0\",attrs:{\"autocomplete\":\"off\",\"loading\":_vm.tagStatus.loading,\"label\":_vm.$t('alarm.fields.tag'),\"items\":_vm.tags,\"item-text\":\"name\",\"item-value\":\"deveui\",\"prepend-icon\":\"mdi-cellphone-link\"},model:{value:(_vm.tag),callback:function ($$v) {_vm.tag=$$v},expression:\"tag\"}})],1),_c('v-card-text',[_c('v-autocomplete',{staticClass:\"pt-0 pb-0 mt-0\",attrs:{\"autocomplete\":\"off\",\"disabled\":_vm.tagStatus.loading && _vm.tag === '',\"loading\":_vm.tagDataStatus.loading,\"label\":_vm.$t('alarm.fields.tagDataKey'),\"items\":_vm.keys,\"item-text\":\"label\",\"item-value\":\"key\",\"prepend-icon\":\"mdi-key\"},model:{value:(_vm.tagDataKey),callback:function ($$v) {_vm.tagDataKey=$$v},expression:\"tagDataKey\"}})],1),_c('v-btn',{staticClass:\"mb-6\",attrs:{\"outlined\":\"\",\"color\":\"accent\",\"text\":\"\"},on:{\"click\":function($event){return _vm.newInclude()}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"common.add\") + \" sensor\")+\" \")]),(this.includedTags.length > 0)?_c('v-simple-table',{scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(_vm._s(_vm.$t(\"alarm.fields.tag\")))]),_c('th',{staticClass:\"text-left\"},[_vm._v(_vm._s(_vm.$t(\"module.meta.key\")))]),_c('th',{staticClass:\"text-left\"})])]),_c('tbody',_vm._l((_vm.includedTags),function(m,i){return _c('tr',{key:i},[_c('td',{staticClass:\"text-left\"},[_vm._v(_vm._s(m.deveui != null ? m.deveui : \"\"))]),_c('td',{staticClass:\"text-left\"},[_vm._v(\" \"+_vm._s(m.key != null ? m.key : \"\")+\" \")]),_c('td',[_c('v-btn',{attrs:{\"color\":\"error\",\"fab\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){return _vm.removeListItem(i)}}},[_c('v-icon',[_vm._v(\"mdi-delete\")])],1)],1)])}),0)]},proxy:true}],null,false,2288099334)}):_vm._e(),_c('v-card-actions',[_c('v-btn',{attrs:{\"color\":\"primary\",\"type\":\"submit\",\"disabeld\":!_vm.valid,\"x-large\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"common.save\"))+\" \")]),_c('v-btn',{attrs:{\"color\":\"error\",\"type\":\"button\",\"x-large\":\"\"},nativeOn:{\"click\":function($event){return _vm.deleteReport()}}},[_vm._v(_vm._s(_vm.$t(\"common.delete\")))])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportEdit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportEdit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReportEdit.vue?vue&type=template&id=01d624df&\"\nimport script from \"./ReportEdit.vue?vue&type=script&lang=js&\"\nexport * from \"./ReportEdit.vue?vue&type=script&lang=js&\"\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 './VSimpleTable.sass'\n\nimport { convertToUnit } from '../../util/helpers'\nimport Themeable from '../../mixins/themeable'\nimport mixins from '../../util/mixins'\nimport { VNode } from 'vue'\n\nexport default mixins(Themeable).extend({\n name: 'v-simple-table',\n\n props: {\n dense: Boolean,\n fixedHeader: Boolean,\n height: [Number, String],\n },\n\n computed: {\n classes (): Record {\n return {\n 'v-data-table--dense': this.dense,\n 'v-data-table--fixed-height': !!this.height && !this.fixedHeader,\n 'v-data-table--fixed-header': this.fixedHeader,\n 'v-data-table--has-top': !!this.$slots.top,\n 'v-data-table--has-bottom': !!this.$slots.bottom,\n ...this.themeClasses,\n }\n },\n },\n\n methods: {\n genWrapper () {\n return this.$slots.wrapper || this.$createElement('div', {\n staticClass: 'v-data-table__wrapper',\n style: {\n height: convertToUnit(this.height),\n },\n }, [\n this.$createElement('table', this.$slots.default),\n ])\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-data-table',\n class: this.classes,\n }, [\n this.$slots.top,\n this.genWrapper(),\n this.$slots.bottom,\n ])\n },\n})\n","// Components\nimport VToolbar from './VToolbar'\n\n// Utilities\nimport { createSimpleFunctional } from '../../util/helpers'\n\nconst VToolbarTitle = createSimpleFunctional('v-toolbar__title')\nconst VToolbarItems = createSimpleFunctional('v-toolbar__items')\n\nexport {\n VToolbar,\n VToolbarItems,\n VToolbarTitle,\n}\n\nexport default {\n $_vuetify_subcomponents: {\n VToolbar,\n VToolbarItems,\n VToolbarTitle,\n },\n}\n"],"sourceRoot":""}