{"version":3,"sources":["webpack:///./src/components/quotes/DetailedCustomerView.vue?9748","webpack:///./src/components/quotes/DetailedCustomerView.vue?f5b9","webpack:///./src/components/quotes/DetailedCustomerView.vue","webpack:///./src/components/quotes/DetailedCustomerView.vue?9da0","webpack:///./src/components/quotes/DetailedCustomerView.vue?3be9","webpack:///./src/components/quotes/DetailedCustomerView.vue?f501"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","modalOpen","on","$event","_v","_s","$t","selection","name","loading","gridLayout","scopedSlots","_u","_l","widgetDefinitions","wd","i","key","concat","index","fn","getWidgetHelpPosition","id","updateWidgetDefinition","proxy","staticRenderFns","DetailedCustomerView","_Vue","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","_defineProperty","availableDashboardLayouts","DashboardLayout","TwoByThree","_inherits","_createClass","value","createWidgetDefinitions","onClose","indexedWidgetDefinitions","WidgetDefinition","WidgetEnum","QuotesTopQuotedMaterialsTimeline","selectedTimeFilter","undefined","selectedDateGrouping","CompositeWidgetDefinition","CompositeWidgetEntry","QuotesMap","QuotesConvertedMap","QuotesConversionRatesGauge","QuotesCustomerEvolution","QuotesFiguresDetailed","QuotesTopSalespeopleDetailed","widgetDefinition","$set","Vue","__decorate","Prop","Watch","Component","components","WidgetContainer","LayoutGrid","component"],"mappings":"gHAAA,W,oCCAA,W,qGCAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,UAAU,CAACG,YAAY,iBAAiBC,MAAM,CAAC,OAASN,EAAIO,UAAU,iBAAiB,GAAG,aAAa,GAAG,aAAa,CAAC,SAAU,WAAW,mBAAkB,GAAMC,GAAG,CAAC,gBAAgB,SAASC,GAAQT,EAAIO,UAAUE,KAAU,CAACP,EAAG,MAAM,CAACG,YAAY,uBAAuB,CAACH,EAAG,SAAS,CAACG,YAAY,mBAAmB,CAACH,EAAG,IAAI,CAACG,YAAY,oBAAoB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eAAA,CADCC,kB,8BAcDD,eAAA,CADCE,eAAM,c,uCAxBYxC,EAAoBsC,eAAA,CANxCG,eAAU,CACTC,WAAY,CACVC,6BACAC,sBAGiB5C,WCtB2Y,I,kCCS5Z6C,EAAY,eACd,EACA9E,EACAgC,GACA,EACA,KACA,WACA,MAIa,aAAA8C,E","file":"js/chunk-1dd7856b.f796b509.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DetailedCustomerView.vue?vue&type=style&index=1&id=7169109c&prod&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DetailedCustomerView.vue?vue&type=style&index=0&id=7169109c&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('b-modal',{staticClass:\"modal-detailed\",attrs:{\"active\":_vm.modalOpen,\"has-modal-card\":\"\",\"trap-focus\":\"\",\"can-cancel\":['escape', 'outside'],\"destroy-on-hide\":true},on:{\"update:active\":function($event){_vm.modalOpen=$event}}},[_c('div',{staticClass:\"modal-card detailed\"},[_c('header',{staticClass:\"modal-card-head\"},[_c('p',{staticClass:\"modal-card-title\"},[_vm._v(_vm._s(_vm.$t('report.customer_inspection'))+\": \"+_vm._s(_vm.selection.name))])]),_c('div',{staticClass:\"modal-card-body\"},[_c('b-loading',{attrs:{\"active\":_vm.loading}}),_c('layout-grid',{attrs:{\"layout\":_vm.gridLayout},scopedSlots:_vm._u([_vm._l((_vm.widgetDefinitions),function(wd,i){return {key:`widget-${wd.index}`,fn:function(){return [_c('widget-container',{key:`quotes-detailed-customer-view-${wd.index}`,attrs:{\"widgetDefinition\":wd,\"autorefresh\":false,\"widgetHelpPosition\":_vm.getWidgetHelpPosition(wd.index),\"customerNo\":_vm.selection.id},on:{\"change\":function($event){return _vm.updateWidgetDefinition(i, $event)}}})]},proxy:true}})],null,true)})],1),_c('div',{staticClass:\"modal-card-foot buttons is-right\"},[_c('b-button',{attrs:{\"label\":_vm.$t('action.close')},on:{\"click\":function($event){_vm.modalOpen = false}}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport WidgetContainer from '@/components/Charts/widgetContainer/WidgetContainer.vue';\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport { FilterTimeAxisSpanEnum } from '@/models/enums/FilterTimeAxisSpanEnum';\nimport QuickSearchItem from '@/models/metrics/quickSearchItem';\nimport { WidgetEnum } from '@/models/enums/WidgetEnum';\nimport WidgetDefinition from '@/models/Charts/widgetDefinition';\nimport {\n CompositeWidgetDefinition,\n CompositeWidgetEntry,\n WidgetEntry,\n} from '@/models/Charts/compositeWidgetDefinition';\nimport LayoutGrid from '@/views/dashboard/LayoutGrid.vue';\nimport { availableDashboardLayouts, DashboardLayout } from '@/models/Charts/dashboardDefinition';\nimport { indexedWidgetDefinitions } from '@/utils/misc';\n\n@Component({\n components: {\n WidgetContainer,\n LayoutGrid,\n },\n})\nexport default class DetailedCustomerView extends Vue {\n @Prop()\n private selectedTimeFilter!: [string, string];\n\n @Prop()\n private selectedDateGrouping!: FilterTimeAxisSpanEnum;\n\n @Prop()\n private selection!: QuickSearchItem;\n\n // Needed by Chart when opening from a double click on a chart\n @Prop()\n private onClose?: () => void;\n\n private widgetDefinitions: WidgetEntry[] = [];\n private gridLayout = availableDashboardLayouts[DashboardLayout.TwoByThree];\n\n private modalOpen = true;\n private loading = false;\n\n private created() {\n this.widgetDefinitions = this.createWidgetDefinitions();\n }\n\n @Watch('modalOpen')\n private onModalOpenChanged() {\n if (!this.modalOpen && !!this.onClose) {\n this.onClose();\n }\n }\n\n private createWidgetDefinitions(): WidgetEntry[] {\n return indexedWidgetDefinitions([\n new WidgetDefinition(\n WidgetEnum.QuotesTopQuotedMaterialsTimeline,\n [],\n this.selectedTimeFilter,\n [],\n undefined,\n this.selectedDateGrouping,\n ),\n new CompositeWidgetDefinition(\n new CompositeWidgetEntry(\n new WidgetDefinition(\n WidgetEnum.QuotesMap,\n [],\n this.selectedTimeFilter,\n [],\n undefined,\n this.selectedDateGrouping,\n ),\n 'tag',\n ),\n new CompositeWidgetEntry(\n new WidgetDefinition(\n WidgetEnum.QuotesConvertedMap,\n [],\n this.selectedTimeFilter,\n [],\n undefined,\n this.selectedDateGrouping,\n ),\n 'check',\n ),\n ),\n new WidgetDefinition(\n WidgetEnum.QuotesConversionRatesGauge,\n [],\n this.selectedTimeFilter,\n [],\n undefined,\n this.selectedDateGrouping,\n ),\n new WidgetDefinition(\n WidgetEnum.QuotesCustomerEvolution,\n [],\n this.selectedTimeFilter,\n [],\n undefined,\n this.selectedDateGrouping,\n ),\n new WidgetDefinition(\n WidgetEnum.QuotesFiguresDetailed,\n [],\n this.selectedTimeFilter,\n [],\n undefined,\n this.selectedDateGrouping,\n ),\n new WidgetDefinition(\n WidgetEnum.QuotesTopSalespeopleDetailed,\n [],\n this.selectedTimeFilter,\n [],\n undefined,\n this.selectedDateGrouping,\n ),\n ]);\n }\n\n private updateWidgetDefinition(index: number, widgetDefinition: WidgetDefinition) {\n this.$set(this.widgetDefinitions, index, widgetDefinition);\n }\n\n private getWidgetHelpPosition(index: number): 'is-bottom-left' | 'is-bottom-right' {\n return index === 2 || index === 5 ? 'is-bottom-left' : 'is-bottom-right';\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DetailedCustomerView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DetailedCustomerView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./DetailedCustomerView.vue?vue&type=template&id=7169109c&scoped=true\"\nimport script from \"./DetailedCustomerView.vue?vue&type=script&lang=ts\"\nexport * from \"./DetailedCustomerView.vue?vue&type=script&lang=ts\"\nimport style0 from \"./DetailedCustomerView.vue?vue&type=style&index=0&id=7169109c&prod&lang=scss&scoped=true\"\nimport style1 from \"./DetailedCustomerView.vue?vue&type=style&index=1&id=7169109c&prod&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 \"7169109c\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}