{"version":3,"sources":["webpack:///./src/modules/commercial-offers/views/OfferTemplateDetail.vue?b6d4","webpack:///./src/modules/commercial-offers/views/OfferTemplateDetail.vue?c0f6","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/commercial-offers/views/OfferTemplateDetail.vue?0df1","webpack:///./src/modules/commercial-offers/views/OfferTemplateDetail.vue","webpack:///./src/modules/commercial-offers/views/OfferTemplateDetail.vue?322e","webpack:///../../../src/components/VSwitch/VSwitch.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","go_to_templates","scopedSlots","_u","key","fn","_v","proxy","class","$style","offerTemplateTop","_s","current_template","title","editPartnerMobile","on","edit_template","staticClass","$event","stopPropagation","delete_template_modal","card","grid","row","organizations","company_name","company_phone","company_email","company_url","company_address","company_description","table","cols","logo_files","ref","item","_f","created_at","is_active","change_status","model","value","callback","$$v","$set","expression","_g","_b","open_logo","delete_handler","dialogTitle","delete_template","staticRenderFns","state","commercial_offers_store","actions","mutations","OfferTemplateDetails","text","get_offer_template_by_id","Number","$route","params","id","CLEAR_NEW_OFFER_TEMPLATE","current_offer_template","map","org","name_organization","join","files","name","CommercialOffers","Pages","COMMERCIAL_OFFERS","payload","delete_files","SET_EDITING_OFFER_TEMPLATE","$router","push","EDIT_OFFER_TEMPLATE","delete_offer_template","data","code","ResponseStatuses","Success","UPDATED","active_file","path","window","open","Vue","Component","components","Table","PageTitle","BackBtn","SimpleDialog","injectStyles","context","locals","component","VBtn","VCard","VIcon","VSwitch","VTooltip","module","exports","Selectable","extend","directives","Touch","props","inset","Boolean","loading","type","String","default","flat","computed","classes","VInput","options","call","isActive","isDisabled","role","validationState","hasError","shouldValidate","hasSuccess","hasColor","computedColor","switchData","setTextColor","undefined","themeClasses","methods","genDefaultSlot","genSwitch","genLabel","attrs$","switchAttrs","genInput","genRipple","left","onSwipeLeft","right","onSwipeRight","genProgress","VFabTransition","$slots","progress","VProgressCircular","color","size","width","indeterminate","onChange","onKeydown","e","keyCode","keyC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,gBAAiB,CACrDlB,WAAY,CAAC,CACXxC,KAAM,QACN9B,MAAO,CACL0G,KAAMxJ,KAAKyJ,YACXC,MAAO1J,KAAK2J,mBAIlB3J,KAAKE,eAAe,MAApB,gBACEoB,YAAa,0BACVtB,KAAK4I,aAEV5I,KAAKE,eAAe,MAApB,gBACEoB,YAAa,0BACVtB,KAAK4I,YACP,CAAC5I,KAAK4J,mBAGbA,YApCO,WAqCL,OAAO5J,KAAKE,eAAe2J,OAAgB,GAAI,EAC5B,IAAjB7J,KAAKyH,QACD,KACAzH,KAAK8J,OAAOC,UAAY/J,KAAKE,eAAe8J,OAAmB,CAC/D1C,MAAO,CACL2C,OAAyB,IAAjBjK,KAAKyH,SAAqC,KAAjBzH,KAAKyH,QACjCzH,KAAKiK,OAAS,UACfjK,KAAKyH,QACTyC,KAAM,GACNC,MAAO,EACPC,eAAe,QAKzBX,YApDO,WAqDDzJ,KAAKmI,UAAUnI,KAAKqK,YAE1BV,aAvDO,WAwDA3J,KAAKmI,UAAUnI,KAAKqK,YAE3BC,UA1DO,SA0DIC,IAENA,EAAEC,UAAYC,OAASjB,MAAQxJ,KAAKmI,UACpCoC,EAAEC,UAAYC,OAASf,QAAU1J,KAAKmI,WACvCnI,KAAKqK","file":"js/home304.295541f6.js","sourcesContent":["export { default } from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfferTemplateDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfferTemplateDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('BackBtn',{attrs:{\"go_to\":_vm.go_to_templates},scopedSlots:_vm._u([{key:\"btn-text\",fn:function(){return [_vm._v(\" Назад \")]},proxy:true}])}),_c('div',{class:_vm.$style.offerTemplateTop},[_c('PageTitle',{attrs:{\"hide_btns\":\"\"},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.current_template.title)+\" \")]},proxy:true}])}),_c('div',[_c('v-btn',{class:_vm.$style.editPartnerMobile,attrs:{\"text\":\"\"},on:{\"click\":_vm.edit_template}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-pencil-outline\")]),_c('span',[_vm._v(\" Редактировать \")])],1),_c('v-btn',{class:_vm.$style.editPartnerMobile,attrs:{\"text\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.delete_template_modal = true}}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-delete-outline\")]),_c('span',[_vm._v(\" Удалить \")])],1)],1)],1),_c('v-card',{class:_vm.$style.card},[_c('div',{staticClass:\"mb-6\",class:_vm.$style.card},[_c('h3',{staticClass:\"text-h4 mb-6\"},[_vm._v(\" Основная информация \")]),_c('div',{staticClass:\"mb-6\"},[_c('div',{class:_vm.$style.grid},[_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"Название Шаблона\")]),_c('div',[_vm._v(_vm._s(_vm.current_template.title || '—'))])]),_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"Организация\")]),_c('div',[_vm._v(_vm._s(_vm.organizations || '—'))])])])]),_c('h3',{staticClass:\"text-h4 mb-6\"},[_vm._v(\" Информация о партнере \")]),_c('div',[_c('div',{staticClass:\"mb-6\"},[_c('div',{class:_vm.$style.grid},[_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"Компания\")]),_c('div',[_vm._v(_vm._s(_vm.current_template.company_name))])]),_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"Телефон\")]),_c('div',[_vm._v(_vm._s(_vm.current_template.company_phone))])]),_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"E-mail конт. лица\")]),_c('div',[_vm._v(_vm._s(_vm.current_template.company_email))])]),_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"Сайт\")]),_c('div',[_vm._v(_vm._s(_vm.current_template.company_url))])]),_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"Адрес\")]),_c('div',[_vm._v(_vm._s(_vm.current_template.company_address))])]),_c('div',{class:_vm.$style.row},[_c('div',[_vm._v(\"Описание\")]),_c('div',[_vm._v(_vm._s(_vm.current_template.company_description))])])])])]),_c('h3',{staticClass:\"text-h4 mb-6\"},[_vm._v(\" Логотипы \")]),_c('Table',{class:_vm.$style.table,attrs:{\"headers\":_vm.cols,\"items\":_vm.logo_files,\"no-data-text\":\"Логотипы отсутствуют\",\"hide-default-footer\":\"\",\"not_resizeble\":\"\"},scopedSlots:_vm._u([{key:\"item.created_at\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.created_at))+\" \")])]}},{key:\"item.is_active\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-switch',{staticClass:\"mt-1\",attrs:{\"color\":\"accent darken-4\",\"readonly\":item.is_active},on:{\"change\":function($event){return _vm.change_status(item)}},model:{value:(item.is_active),callback:function ($$v) {_vm.$set(item, \"is_active\", $$v)},expression:\"item.is_active\"}})]}},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-tooltip',{attrs:{\"color\":\"primary darken-3\",\"bottom\":\"\",\"open-delay\":300},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\",\"small\":\"\",\"color\":\"accent darken-4\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.open_logo(item)}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-download\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Сохранить\")])]),_c('v-tooltip',{attrs:{\"color\":\"primary darken-3\",\"bottom\":\"\",\"open-delay\":300},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\",\"small\":\"\",\"color\":\"secondary darken-4\",\"disabled\":item.is_active},on:{\"click\":function($event){$event.stopPropagation();return _vm.delete_handler(item)}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-delete-outline\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Удалить\")])])]}}],null,true)})],1)]),_c('SimpleDialog',{attrs:{\"max-width\":\"564\",\"bts_align\":\"center\"},on:{\"close\":function($event){_vm.delete_template_modal = false}},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('div',{class:_vm.$style.dialogTitle},[_vm._v(\" Удаление шаблона коммерческого предложения \")])]},proxy:true},{key:\"text\",fn:function(){return [_c('span',{staticClass:\"d-flex justify-center\"},[_vm._v(\"Вы действительно хотите удалить шаблон коммерческого предложения?\")])]},proxy:true},{key:\"actions\",fn:function(){return [_c('td',{staticClass:\"py-2\"},[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\"},on:{\"click\":_vm.delete_template}},[_vm._v(\" Удалить \")]),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.delete_template_modal = false}}},[_vm._v(\" Отменить \")])],1)]},proxy:true}]),model:{value:(_vm.delete_template_modal),callback:function ($$v) {_vm.delete_template_modal=$$v},expression:\"delete_template_modal\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport {\n Table, PageTitle, BackBtn, SimpleDialog,\n} from '@/components';\nimport { commercial_offers_store } from '@/store';\nimport { ResponseStatuses } from '@/enums';\nimport { BaseResponse } from '@/types';\nimport { CommercialOffers, LogoFile } from '../types';\n\nconst { state, actions, mutations } = commercial_offers_store;\n\n@Component({\n components: {\n Table,\n PageTitle,\n BackBtn,\n SimpleDialog,\n },\n})\nexport default class OfferTemplateDetails extends Vue {\n mounted() {\n actions.get_offer_template_by_id(Number(this.$route.params.id));\n }\n\n destroyed() {\n mutations.CLEAR_NEW_OFFER_TEMPLATE();\n }\n\n cols = [\n { text: 'Название', value: 'title' },\n { text: 'Дата добавления', value: 'created_at' },\n { text: 'Активность', value: 'is_active' },\n { text: 'Действие', value: 'actions' },\n ];\n\n delete_template_modal = false;\n\n get current_template() {\n return state.current_offer_template;\n }\n\n get organizations() {\n return state.current_offer_template.organizations\n .map((org) => org.name_organization)\n .join(', ');\n }\n\n get logo_files() {\n return state.current_offer_template.files;\n }\n\n get go_to_templates() {\n return { name: CommercialOffers.Pages.COMMERCIAL_OFFERS };\n }\n\n delete_handler(item: LogoFile) {\n const { id } = this.$route.params;\n const files = [item.id];\n\n const payload = {\n id,\n files,\n };\n\n if (id && files) {\n actions.delete_files(payload);\n }\n }\n\n edit_template() {\n const { id } = this.$route.params;\n\n if (id) {\n mutations.SET_EDITING_OFFER_TEMPLATE();\n\n this.$router.push({\n name: CommercialOffers.Pages.EDIT_OFFER_TEMPLATE,\n params: { id },\n });\n }\n }\n\n async delete_template() {\n const { id } = this.$route.params;\n\n if (id) {\n const data = await actions.delete_offer_template(id) as BaseResponse;\n\n if (data.code === ResponseStatuses.Success.UPDATED) {\n this.delete_template_modal = false;\n this.$router.push({\n name: CommercialOffers.Pages.COMMERCIAL_OFFERS,\n });\n }\n }\n }\n\n change_status(item: LogoFile) {\n if (item.is_active) {\n actions.active_file(item.id);\n }\n }\n\n open_logo(item: LogoFile) {\n const { path } = item;\n\n window.open(path, '_blank');\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfferTemplateDetail.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OfferTemplateDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OfferTemplateDetail.vue?vue&type=template&id=6d03a405&\"\nimport script from \"./OfferTemplateDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./OfferTemplateDetail.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./OfferTemplateDetail.vue?vue&type=style&index=0&module=true&lang=scss&\"\n\n\n\n\nfunction injectStyles (context) {\n \n this[\"$style\"] = (style0.locals || style0)\n\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 injectStyles,\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 { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VIcon,VSwitch,VTooltip})\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"OfferTemplateDetail_v-application_3ELFK\",\"text-h1\":\"OfferTemplateDetail_text-h1_1HhGd\",\"text-h2\":\"OfferTemplateDetail_text-h2_3IuDs\",\"offerTemplateTop\":\"OfferTemplateDetail_offerTemplateTop_2IC69\",\"card\":\"OfferTemplateDetail_card_1YLOy\",\"grid\":\"OfferTemplateDetail_grid_2KQRB\",\"row\":\"OfferTemplateDetail_row_3GFP8\",\"dialogTitle\":\"OfferTemplateDetail_dialogTitle_2ypwZ\"};","// Styles\nimport '../../styles/components/_selection-controls.sass'\nimport './VSwitch.sass'\n\n// Mixins\nimport Selectable from '../../mixins/selectable'\nimport VInput from '../VInput'\n\n// Directives\nimport Touch from '../../directives/touch'\n\n// Components\nimport { VFabTransition } from '../transitions'\nimport VProgressCircular from '../VProgressCircular/VProgressCircular'\n\n// Helpers\nimport { keyCodes } from '../../util/helpers'\n\n// Types\nimport { VNode, VNodeData } from 'vue'\n\n/* @vue/component */\nexport default Selectable.extend({\n name: 'v-switch',\n\n directives: { Touch },\n\n props: {\n inset: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n flat: {\n type: Boolean,\n default: false,\n },\n },\n\n computed: {\n classes (): object {\n return {\n ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls v-input--switch': true,\n 'v-input--switch--flat': this.flat,\n 'v-input--switch--inset': this.inset,\n }\n },\n attrs (): object {\n return {\n 'aria-checked': String(this.isActive),\n 'aria-disabled': String(this.isDisabled),\n role: 'switch',\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.hasError && this.shouldValidate) return 'error'\n if (this.hasSuccess) return 'success'\n if (this.hasColor !== null) return this.computedColor\n return undefined\n },\n switchData (): VNodeData {\n return this.setTextColor(this.loading ? undefined : this.validationState, {\n class: this.themeClasses,\n })\n },\n },\n\n methods: {\n genDefaultSlot (): (VNode | null)[] {\n return [\n this.genSwitch(),\n this.genLabel(),\n ]\n },\n genSwitch (): VNode {\n const { title, ...switchAttrs } = this.attrs$\n\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input',\n }, [\n this.genInput('checkbox', {\n ...this.attrs,\n ...switchAttrs,\n }),\n this.genRipple(this.setTextColor(this.validationState, {\n directives: [{\n name: 'touch',\n value: {\n left: this.onSwipeLeft,\n right: this.onSwipeRight,\n },\n }],\n })),\n this.$createElement('div', {\n staticClass: 'v-input--switch__track',\n ...this.switchData,\n }),\n this.$createElement('div', {\n staticClass: 'v-input--switch__thumb',\n ...this.switchData,\n }, [this.genProgress()]),\n ])\n },\n genProgress (): VNode {\n return this.$createElement(VFabTransition, {}, [\n this.loading === false\n ? null\n : this.$slots.progress || this.$createElement(VProgressCircular, {\n props: {\n color: (this.loading === true || this.loading === '')\n ? (this.color || 'primary')\n : this.loading,\n size: 16,\n width: 2,\n indeterminate: true,\n },\n }),\n ])\n },\n onSwipeLeft () {\n if (this.isActive) this.onChange()\n },\n onSwipeRight () {\n if (!this.isActive) this.onChange()\n },\n onKeydown (e: KeyboardEvent) {\n if (\n (e.keyCode === keyCodes.left && this.isActive) ||\n (e.keyCode === keyCodes.right && !this.isActive)\n ) this.onChange()\n },\n },\n})\n"],"sourceRoot":""}