{"version":3,"sources":["webpack:///./src/views/dashboard/tracking/RoutingPrint.vue?6a45","webpack:///./src/views/dashboard/tracking/RoutingPrint.vue?3521","webpack:///src/views/dashboard/tracking/RoutingPrint.vue","webpack:///./src/views/dashboard/tracking/RoutingPrint.vue?cad1","webpack:///./src/views/dashboard/tracking/RoutingPrint.vue","webpack:///../../../src/components/VCheckbox/VCheckbox.ts","webpack:///../../../src/mixins/rippleable/index.ts","webpack:///../../../src/mixins/comparable/index.ts","webpack:///../../../src/mixins/selectable/index.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","staticStyle","_v","model","value","callback","$$v","lastPrints","expression","von","bis","on","refreshPrints","onRowChanged","staticRenderFns","component","VBtn","VCard","VCardText","VCheckbox","VCol","VContainer","VRow","VSpacer","VTextField","name","props","indeterminate","indeterminateIcon","type","default","offIcon","onIcon","data","inputIndeterminate","computed","classes","computedIcon","validationState","isDisabled","hasError","hasColor","watch","isActive","methods","genCheckbox","setTextColor","dense","dark","light","genInput","toString","genRipple","genDefaultSlot","directives","ripple","Boolean","center","Object","click","onChange","valueComparator","mixins","prop","event","id","inputValue","falseValue","trueValue","multiple","label","String","lazyValue","computedColor","isDark","isMultiple","Array","input","item","undefined","isDirty","rippleState","genLabel","VInput","e","disabled","role","domProps","checked","blur","change","focus","keydown","onKeydown","ref","onBlur","length","onFocus"],"mappings":"2IAAA,yBAA4nB,EAAG,G,yCCA/nB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,YAAY,uCAAuCC,MAAM,CAAC,GAAK,gBAAgB,MAAQ,GAAG,IAAM,YAAY,CAACH,EAAG,SAAS,CAACE,YAAY,wCAAwC,CAACF,EAAG,cAAc,CAACE,YAAY,4BAA4BE,YAAY,CAAC,aAAa,SAASD,MAAM,CAAC,MAAQ,KAAK,CAACH,EAAG,QAAQ,CAACG,MA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FS,WAGnBuE,GAAIvE,KAHe,WAInB4F,KAJmB,EAKnBzD,QANgC,GAQlC0D,SAAU,CACRnF,MAAOV,KADC,MAER8F,QAAS9F,KAAKiD,UAEhBhC,GAAI,CACF8E,KAAM/F,KADJ,OAEFgG,OAAQhG,KAFN,SAGFiG,MAAOjG,KAHL,QAIFkG,QAASlG,KAAKmG,WAEhBC,IAAK,WAGTC,OAzCO,WA0CLrG,KAAA,cAEFkE,SA5CO,WA4CC,WACN,GAAKlE,KAAL,eAEA,IAAMU,EAAQV,KAAd,MACImF,EAAQnF,KAAZ,cAEA,GAAIA,KAAJ,WAAqB,CACdkF,MAAA,QAAL,KACEC,EAAA,IAGF,IAAMmB,EAASnB,EAAf,OAEAA,EAAQA,EAAA,QAAc,SAAAC,GAAD,OAAgB,oBAArC,MAEID,EAAA,SAAJ,GACEA,EAAA,aAGFA,OAD4BE,IAAnBrF,KAAK0E,gBAAT,IAAoC1E,KAAKyE,WACtCzE,KAAKmE,gBAAgBgB,EAAOnF,KAA5B,WAA8CA,KAA9C,WAAgEA,KAAxE,UACSU,EACDV,KAAKmE,gBAAgBgB,EAAOzE,GAAS,KAA7C,GAEAyE,EAGFnF,KAAA,eACAA,KAAA,gBACAA,KAAA,aAEFuG,QA1EO,WA2ELvG,KAAA,cAGFmG,UA9EO,SA8EE","file":"js/chunk-871f9f12.f98a0105.js","sourcesContent":["import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/vuetify-loader/lib/loader.js??ref--18-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoutingPrint.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/vuetify-loader/lib/loader.js??ref--18-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoutingPrint.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"pt-0 mt-0 pb-0 mb-0 no-gutters fluid\",attrs:{\"id\":\"DeviceRouting\",\"fluid\":\"\",\"tag\":\"section\"}},[_c('v-card',{staticClass:\"pt-0 mt-0 pb-0 mb-0 no-gutters fluid\"},[_c('v-card-text',{staticClass:\"pt-0 mt-0 pb-0 mb-0 fluid\",staticStyle:{\"min-height\":\"920px\"},attrs:{\"dense\":\"\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('base-subheading',{attrs:{\"no-gutters\":\"\"}},[_c('v-row',{staticClass:\"pa-0 ma-0 fluid\"},[_c('v-col',{staticClass:\"px-10 py-4\",attrs:{\"cols\":\"3\"}},[_c('h5',{staticClass:\"font-weight-light\"},[_vm._v(\" Dokumente-Sicht \")])]),_c('v-col',{staticClass:\"no-gutters mt-1\",attrs:{\"cols\":\"2\"}},[_c('v-checkbox',{staticClass:\"mt-n1 justify-center\",attrs:{\"label\":\"letzten Dokumente\"},model:{value:(_vm.lastPrints),callback:function ($$v) {_vm.lastPrints=$$v},expression:\"lastPrints\"}})],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-text-field',{attrs:{\"disabled\":_vm.lastPrints,\"outlined\":\"\",\"label\":\"von\",\"dense\":\"\"},model:{value:(_vm.von),callback:function ($$v) {_vm.von=$$v},expression:\"von\"}})],1),_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('v-text-field',{attrs:{\"disabled\":_vm.lastPrints,\"outlined\":\"\",\"label\":\"bis\",\"dense\":\"\"},model:{value:(_vm.bis),callback:function ($$v) {_vm.bis=$$v},expression:\"bis\"}})],1),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('v-spacer'),_c('v-btn',{on:{\"click\":_vm.refreshPrints}},[_vm._v(\" Anzeigen \")])],1)],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('router-view',{on:{\"rowChanged\":_vm.onRowChanged}})],1)],1)],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../../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/vuetify-loader/lib/loader.js??ref--18-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoutingPrint.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../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/vuetify-loader/lib/loader.js??ref--18-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoutingPrint.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RoutingPrint.vue?vue&type=template&id=88154764&\"\nimport script from \"./RoutingPrint.vue?vue&type=script&lang=js&\"\nexport * from \"./RoutingPrint.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RoutingPrint.vue?vue&type=style&index=0&lang=scss&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCard,VCardText,VCheckbox,VCol,VContainer,VRow,VSpacer,VTextField})\n","// Styles\nimport './VCheckbox.sass'\nimport '../../styles/components/_selection-controls.sass'\n\n// Components\nimport VIcon from '../VIcon'\nimport VInput from '../VInput'\n\n// Mixins\nimport Selectable from '../../mixins/selectable'\n\n/* @vue/component */\nexport default Selectable.extend({\n name: 'v-checkbox',\n\n props: {\n indeterminate: Boolean,\n indeterminateIcon: {\n type: String,\n default: '$checkboxIndeterminate',\n },\n offIcon: {\n type: String,\n default: '$checkboxOff',\n },\n onIcon: {\n type: String,\n default: '$checkboxOn',\n },\n },\n\n data () {\n return {\n inputIndeterminate: this.indeterminate,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls': true,\n 'v-input--checkbox': true,\n 'v-input--indeterminate': this.inputIndeterminate,\n }\n },\n computedIcon (): string {\n if (this.inputIndeterminate) {\n return this.indeterminateIcon\n } else if (this.isActive) {\n return this.onIcon\n } else {\n return this.offIcon\n }\n },\n // Do not return undefined if disabled,\n // according to spec, should still show\n // a color when disabled and active\n validationState (): string | undefined {\n if (this.isDisabled && !this.inputIndeterminate) return undefined\n if (this.hasError && this.shouldValidate) return 'error'\n if (this.hasSuccess) return 'success'\n if (this.hasColor !== null) return this.computedColor\n return undefined\n },\n },\n\n watch: {\n indeterminate (val) {\n // https://github.com/vuetifyjs/vuetify/issues/8270\n this.$nextTick(() => (this.inputIndeterminate = val))\n },\n inputIndeterminate (val) {\n this.$emit('update:indeterminate', val)\n },\n isActive () {\n if (!this.indeterminate) return\n this.inputIndeterminate = false\n },\n },\n\n methods: {\n genCheckbox () {\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input',\n }, [\n this.$createElement(VIcon, this.setTextColor(this.validationState, {\n props: {\n dense: this.dense,\n dark: this.dark,\n light: this.light,\n },\n }), this.computedIcon),\n this.genInput('checkbox', {\n ...this.attrs$,\n 'aria-checked': this.inputIndeterminate\n ? 'mixed'\n : this.isActive.toString(),\n }),\n this.genRipple(this.setTextColor(this.rippleState)),\n ])\n },\n genDefaultSlot () {\n return [\n this.genCheckbox(),\n this.genLabel(),\n ]\n },\n },\n})\n","// Directives\nimport ripple from '../../directives/ripple'\n\n// Types\nimport Vue, { VNode, VNodeData, VNodeDirective } from 'vue'\n\nexport default Vue.extend({\n name: 'rippleable',\n\n directives: { ripple },\n\n props: {\n ripple: {\n type: [Boolean, Object],\n default: true,\n },\n },\n\n methods: {\n genRipple (data: VNodeData = {}): VNode | null {\n if (!this.ripple) return null\n\n data.staticClass = 'v-input--selection-controls__ripple'\n\n data.directives = data.directives || []\n data.directives.push({\n name: 'ripple',\n value: { center: true },\n } as VNodeDirective)\n data.on = Object.assign({\n click: this.onChange,\n }, this.$listeners)\n\n return this.$createElement('div', data)\n },\n onChange () {},\n },\n})\n","import Vue, { PropType } from 'vue'\nimport { deepEqual } from '../../util/helpers'\n\nexport default Vue.extend({\n name: 'comparable',\n props: {\n valueComparator: {\n type: Function as PropType,\n default: deepEqual,\n },\n },\n})\n","// Components\nimport VInput from '../../components/VInput'\n\n// Mixins\nimport Rippleable from '../rippleable'\nimport Comparable from '../comparable'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n/* @vue/component */\nexport default mixins(\n VInput,\n Rippleable,\n Comparable\n).extend({\n name: 'selectable',\n\n model: {\n prop: 'inputValue',\n event: 'change',\n },\n\n props: {\n id: String,\n inputValue: null as any,\n falseValue: null as any,\n trueValue: null as any,\n multiple: {\n type: Boolean,\n default: null,\n },\n label: String,\n },\n\n data () {\n return {\n hasColor: this.inputValue,\n lazyValue: this.inputValue,\n }\n },\n\n computed: {\n computedColor (): string | undefined {\n if (!this.isActive) return undefined\n if (this.color) return this.color\n if (this.isDark && !this.appIsDark) return 'white'\n return 'primary'\n },\n isMultiple (): boolean {\n return this.multiple === true || (this.multiple === null && Array.isArray(this.internalValue))\n },\n isActive (): boolean {\n const value = this.value\n const input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) return false\n\n return input.some(item => this.valueComparator(item, value))\n }\n\n if (this.trueValue === undefined || this.falseValue === undefined) {\n return value\n ? this.valueComparator(value, input)\n : Boolean(input)\n }\n\n return this.valueComparator(input, this.trueValue)\n },\n isDirty (): boolean {\n return this.isActive\n },\n rippleState (): string | undefined {\n return !this.isDisabled && !this.validationState\n ? undefined\n : this.validationState\n },\n },\n\n watch: {\n inputValue (val) {\n this.lazyValue = val\n this.hasColor = val\n },\n },\n\n methods: {\n genLabel () {\n const label = VInput.options.methods.genLabel.call(this)\n\n if (!label) return label\n\n label!.data!.on = {\n click: (e: Event) => {\n // Prevent label from\n // causing the input\n // to focus\n e.preventDefault()\n\n this.onChange()\n },\n }\n\n return label\n },\n genInput (type: string, attrs: object) {\n return this.$createElement('input', {\n attrs: Object.assign({\n 'aria-checked': this.isActive.toString(),\n disabled: this.isDisabled,\n id: this.computedId,\n role: type,\n type,\n }, attrs),\n domProps: {\n value: this.value,\n checked: this.isActive,\n },\n on: {\n blur: this.onBlur,\n change: this.onChange,\n focus: this.onFocus,\n keydown: this.onKeydown,\n },\n ref: 'input',\n })\n },\n onBlur () {\n this.isFocused = false\n },\n onChange () {\n if (!this.isInteractive) return\n\n const value = this.value\n let input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) {\n input = []\n }\n\n const length = input.length\n\n input = input.filter((item: any) => !this.valueComparator(item, value))\n\n if (input.length === length) {\n input.push(value)\n }\n } else if (this.trueValue !== undefined && this.falseValue !== undefined) {\n input = this.valueComparator(input, this.trueValue) ? this.falseValue : this.trueValue\n } else if (value) {\n input = this.valueComparator(input, value) ? null : value\n } else {\n input = !input\n }\n\n this.validate(true, input)\n this.internalValue = input\n this.hasColor = input\n },\n onFocus () {\n this.isFocused = true\n },\n /** @abstract */\n onKeydown (e: Event) {},\n },\n})\n"],"sourceRoot":""}