{"version":3,"sources":["webpack:///./node_modules/eslint-loader/index.js","webpack:///./src/modules/frontol-licenses/components/GeneralInfoTab.vue?60cb","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/frontol-licenses/components/GeneralInfoTab.vue?4d87","webpack:///./src/modules/frontol-licenses/components/GeneralInfoTab.vue"],"names":["frontol_licenses_cols","text","align","value","width","sortable","is_visible","disabled","main_info_cols","field","contacts_cols","cart_and_order_history_cols","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","current_frontol_license","scopedSlots","_u","key","fn","_v","_s","current_frontol_license_field","proxy","go_to_product","_l","col","i","slot_name","ref","item","domProps","staticRenderFns","GeneralInfoTab","single_slot_name","product_id","Products","Pages","PRODUCT_DETAIL","Vue","__decorate","Prop","type","Object","required","Component","components","VerticalTable","component","VBtn","VCol","VRow"],"mappings":"qHAGA,sNAAO,IAAMA,EAAuC,CAClD,CACEC,KAAM,GACNC,MAAO,QACPC,MAAO,SACPC,MAAO,OACPC,UAAU,EACVC,YAAY,EACZC,UAAU,GAEZ,CACEN,KAAM,eACNE,MAAO,eACPC,MAAO,QACPE,YAAY,GAEd,CACEL,KAAM,gBACNE,MAAO,cACPC,MAAO,QACPE,YAAY,GAEd,CACEL,KAAM,QACNE,MAAO,QACPC,MAAO,QACPC,UAAU,EACVC,YAAY,GAEd,CACEL,KAAM,cACNE,MAAO,yBACPC,MAAO,QACPE,YAAY,GAEd,CACEL,KAAM,iBACNE,MAAO,sBACPC,MAAO,QACPE,YAAY,GAEd,CACEL,KAAM,SACNE,MAAO,SACPC,MAAO,QACPE,YAAY,GAEd,CACEL,KAAM,cACNE,MAAO,oBACPC,MAAO,QACPE,YAAY,GAEd,CACEL,KAAM,SACNE,MAAO,cACPC,MAAO,QACPE,YAAY,GAEd,CACEL,KAAM,WACNE,MAAO,WACPC,MAAO,QACPC,UAAU,EACVC,YAAY,GAEd,CACEL,KAAM,SACNE,MAAO,iBACPC,MAAO,QACPE,YAAY,GAEd,CACEL,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,EAAIa,GAAG,IAAIb,EAAIc,GAAGd,EAAIe,8BAA8BQ,EAAK3B,QAAQ,KAAKQ,EAAG,MAAMA,EAAG,QAAQ,CAACoB,SAAS,CAAC,UAAYxB,EAAIc,GAAGS,EAAKnC,kBAAiB,MAAK,MAAS,IAAI,IACrLqC,EAAkB,G,oIC2EDC,EAAc,wDAAnC,iD,0BAIE,EAAA/B,eAAiBA,oBACjB,EAAAE,cAAgBA,mBAChB,EAAAwB,UAAYM,OANd,EAAmC,oEAQjC,SAA8B/B,GAC5B,OAAOK,KAAKO,wBAAwBZ,IAAU,KATf,2BAYjC,SAAcgC,GACZ,MAA6B,qBAAfA,EAAP,WACCC,cAASC,MAAMC,eADhB,YACkCH,GACrC,OAf2B,GAASI,QAE1CC,gBADCC,eAAK,CAAEC,KAAMC,OAAQC,UAAU,KAChC,8CAFmBX,EAAc,gBALlCY,eAAU,CACTC,WAAY,CACVC,yBAGiBd,WC9EwZ,I,qECOzae,EAAY,eACd,EACA1C,EACA0B,GACA,EACA,KACA,KACA,MAIa,aAAAgB,EAAiB,QAOhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA,KAAKC,OAAA","file":"js/home554.670e1415.js","sourcesContent":["import { VerticalTableCol } from '@/components/vertical-table/types';\nimport { TableCol, OptionalCol } from '@/types';\n\nexport const frontol_licenses_cols: OptionalCol[] = [\n {\n text: '',\n align: 'start',\n value: 'select',\n width: '88px',\n sortable: false,\n is_visible: false,\n disabled: true,\n },\n {\n text: 'Номенклатура',\n value: 'nomenclature',\n width: '300px',\n is_visible: false,\n },\n {\n text: 'Идентификатор',\n value: 'license_key',\n width: '230px',\n is_visible: false,\n },\n {\n text: 'Заказ',\n value: 'order',\n width: '230px',\n sortable: false,\n is_visible: false,\n },\n {\n text: 'Дата начала',\n value: 'client_date_activation',\n width: '180px',\n is_visible: false,\n },\n {\n text: 'Дата окончания',\n value: 'client_date_expired',\n width: '180px',\n is_visible: false,\n },\n {\n text: 'Статус',\n value: 'status',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'Организация',\n value: 'organization_name',\n width: '250px',\n is_visible: false,\n },\n {\n text: 'Клиент',\n value: 'client_name',\n width: '250px',\n is_visible: false,\n },\n {\n text: 'Контакты',\n value: 'contacts',\n width: '250px',\n sortable: false,\n is_visible: false,\n },\n {\n text: 'Страна',\n value: 'client_country',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'Регион',\n value: 'client_region',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'Город',\n value: 'client_city',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'ИНН',\n value: 'client_inn',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'КПП',\n value: 'client_kpp',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'Магазин клиента',\n value: 'client_shop',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'Устройство',\n value: 'client_device',\n width: '200px',\n is_visible: false,\n },\n {\n text: 'Документ основания',\n value: 'doc',\n width: '200px',\n is_visible: false,\n },\n];\n\nexport const main_info_cols: VerticalTableCol[] = [\n {\n field: 'organization_name',\n text: 'Юр лицо партнера',\n },\n {\n field: 'client_name',\n text: 'Наименование клиента',\n },\n {\n field: 'client_inn',\n text: 'ИНН',\n },\n {\n field: 'client_kpp',\n text: 'КПП',\n },\n {\n field: 'client_country',\n text: 'Страна',\n },\n {\n field: 'client_region',\n text: 'Регион',\n },\n {\n field: 'client_city',\n text: 'Город',\n },\n {\n field: 'client_shop',\n text: 'Магазин',\n },\n {\n field: 'client_device',\n text: 'Устройство',\n },\n {\n field: 'nomenclature',\n text: 'Номенклатура',\n },\n {\n field: 'doc',\n text: 'Документ основания',\n },\n {\n field: 'client_date_activation',\n text: 'Дата активации',\n },\n {\n field: 'client_date_expired',\n text: 'Дата окончания',\n },\n {\n field: 'status',\n text: 'Статус',\n },\n];\n\nexport const contacts_cols: VerticalTableCol[] = [\n {\n field: 'client_contact',\n text: 'ФИО контактного лица',\n },\n {\n field: 'client_phone',\n text: 'Телефон',\n },\n {\n field: 'client_email',\n text: 'Электронная почта',\n },\n];\n\nexport const cart_and_order_history_cols: TableCol[] = [\n {\n value: 'cart_history_external_number',\n text: '№ корзины',\n sortable: true,\n },\n {\n value: 'cart_history_date',\n text: 'Дата корзины',\n },\n {\n value: 'order_external_number',\n text: '№ заказа',\n },\n {\n value: 'order_date',\n text: 'Дата заказа',\n },\n {\n value: 'order_status',\n text: 'Статус заказа',\n },\n];\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',{staticClass:\"mt-1\"},[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"lg\":\"8\"}},[_c('VerticalTable',{attrs:{\"cols\":_vm.main_info_cols,\"items_info\":_vm.current_frontol_license},scopedSlots:_vm._u([{key:\"field-item-client_name\",fn:function(){return [_c('td',[_c('div',{staticClass:\"'d-flex align-center'\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.current_frontol_license_field('client_name'))+\" \"+_vm._s(_vm.current_frontol_license_field('client_type'))+\" \")])])])]},proxy:true},{key:\"field-item-nomenclature\",fn:function(){return [_c('td',[_c('div',{staticClass:\"'d-flex align-center'\"},[_c('v-btn',{staticClass:\"ml-n4\",attrs:{\"to\":_vm.go_to_product( _vm.current_frontol_license_field('product_id')),\"text\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.current_frontol_license_field('nomenclature'))+\" \")])],1)])]},proxy:true}])})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"lg\":\"4\"}},[_c('VerticalTable',{attrs:{\"cols\":_vm.contacts_cols,\"items_info\":_vm.current_frontol_license,\"single_cell_render\":\"\"},scopedSlots:_vm._u([{key:\"table-title\",fn:function(){return [_vm._v(\" Контакты \")]},proxy:true},_vm._l((_vm.contacts_cols),function(col,i){return {key:_vm.slot_name(col.field),fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{key:i},[_vm._v(\" \"+_vm._s(_vm.current_frontol_license_field(item.field))+\" \"),_c('br'),_c('small',{domProps:{\"innerHTML\":_vm._s(item.text)}})])]}}})],null,true)})],1)],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\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport { VerticalTable } from '@/components';\nimport { FrontolLicenses } from '@/modules/frontol-licenses/types';\nimport { single_slot_name } from '@/utils';\nimport { Products } from '@/modules/products/types';\nimport { main_info_cols, contacts_cols } from '../consts';\n\n@Component({\n components: {\n VerticalTable,\n },\n})\nexport default class GeneralInfoTab extends Vue {\n @Prop({ type: Object, required: true })\n current_frontol_license!: FrontolLicenses.FrontolLicense;\n\n main_info_cols = main_info_cols;\n contacts_cols = contacts_cols;\n slot_name = single_slot_name;\n\n current_frontol_license_field(field: keyof FrontolLicenses.FrontolLicense) {\n return this.current_frontol_license[field] || '';\n }\n\n go_to_product(product_id: number | undefined) {\n return typeof product_id !== 'undefined'\n ? `/${Products.Pages.PRODUCT_DETAIL}/${product_id}`\n : '';\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!./GeneralInfoTab.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!./GeneralInfoTab.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GeneralInfoTab.vue?vue&type=template&id=a8aff2d0&\"\nimport script from \"./GeneralInfoTab.vue?vue&type=script&lang=ts&\"\nexport * from \"./GeneralInfoTab.vue?vue&type=script&lang=ts&\"\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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VRow})\n"],"sourceRoot":""}