{"version":3,"sources":["webpack:///./node_modules/eslint-loader/index.js","webpack:///./node_modules/core-js/modules/es.number.parse-int.js","webpack:///./src/modules/projects/components/new-project/ProductsProject.vue?7772","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/projects/components/new-project/ProductsProject.vue?2def","webpack:///./src/modules/projects/components/new-project/ProductsProject.vue","webpack:///./src/modules/projects/components/new-project/ProductsProject.vue?bcb4","webpack:///./node_modules/core-js/internals/number-parse-int.js","webpack:///./src/modules/projects/components/new-project/ProductsProject.vue?2422"],"names":["ServerPaginationMixin","rawValue","localStorage","getItem","localStorageKey","value","Number","parseInt","isNaN","setItem","toString","storageItemsPerPage","getStorageItemsPerPage","tableOptions","itemsPerPage","itemsPerPageExists","itemsPerPageOptions","getTableOptions","tableOptionsEqual","page","setStorageItemsPerPage","setTableOptions","this","fetchItems","a","b","sortBy","sortDesc","mustSort","multiSort","groupBy","groupDesc","serverPaginationLoading","footerItemsPerPageOptions","push","sort","includes","getLoading","Vue","Component","$","target","stat","forced","months_local","render","_vm","_h","$createElement","_c","_self","ref","attrs","on","$event","preventDefault","submit","apply","arguments","model","callback","$$v","form_valid","expression","staticClass","_v","show_add_product_modal","close_add_product_modal","scopedSlots","_u","key","fn","proxy","onFilterUpdate","products_model_headers","items","prevent_sort","footerProps","serverItemsLength","item","style","is_mobile","_g","_b","class","$style","nomenclatureName","nomenclatureText","_s","nomenclature","category_name","productCategoryDesc","product_software_type","name","_e","_f","prices","actual","base","rub","add_product","add_product_modal","cols","products","catalog_price","client_price","text","show_price_set_modal","desired_price","remove_item","stopPropagation","quantityInput","max_quantity","upd_prod_quantity","$set","close","go_back","is_valid_table","close_set_price_modal","v","is_require","require_message","set_client_price","set_desired_price","save_client_price","editable_item","save_partner_price","set_price_modal","staticRenderFns","state","projects_store","mutations","ProductsProject","is_client_price","loading","cols_storage_name","ColsStorage","NEW_PROJECT_COLS","sortable","width","align","PaginationItemsPerPage","PROJECT_PRODUCTS","products_store","actions","get_products2","table_options","SET_TABLE_OPTIONS","restoreItemsPerPage","global_store","isMobile","default_const_max_cart_product_quantity","user_store","me","constants","const_max_cart_product_quantity_per_unit","length","every","prod","product","find","product_code","quantity","UPDATE_ADD_PRODUCT_QUANTITY","new_product","nomeclature","id","ADD_PRODUCT","item_to_remove","REMOVE_PRODUCT","SET_CLIENT_PRICE","SET_PARTNER_PRICE","UPD_PROD_QUANTITY","console","log","$emit","pagination_props","total_items","Mixins","ValidateMixin","NewProjectMixin","__decorate","Ref","components","Table","Filters","TextField","SimpleDialog","injectStyles","context","locals","component","VBtn","VDivider","VForm","VIcon","VTooltip","module","exports","form_valid_val","new_project","val","UPD_NEW_PROJECT","form","validate","global","fails","uncurryThis","trim","whitespaces","$parseInt","Symbol","ITERATOR","iterator","hex","exec","FORCED","Object","string","radix","S"],"mappings":"iWAKqBA,EAAqB,wLAOxC,WACE,IAAMC,EAAWC,aAAaC,QAAQ,KAAKC,iBACrCC,EAAQJ,EAAWK,OAAOC,SAASN,EAAU,IAAM,KAEzD,OAAOI,IAAUC,OAAOE,MAAMH,GAASA,EAAQ,OAXT,oCAcxC,SAAuBA,GACrBH,aAAaO,QAAQ,KAAKL,gBAAiBC,EAAMK,cAfX,iCAkBxC,WACE,IAAMC,EAAsB,KAAKC,yBAEjC,KAAKC,aAAaC,aAAeH,GAAuB,KAAKI,mBAAmBJ,GAC5EA,EACAK,OAAoB,KAvBc,wBA0BxC,WACE,OAAO,KAAKC,mBA3B0B,IA8BxC,SAAiBZ,GAGV,KAAKa,kBAAkBb,EAAO,KAAKQ,gBAClC,KAAKA,aAAaC,eAAiBT,EAAMS,eAC3CT,EAAMc,KAAO,EACb,KAAKC,uBAAuBf,EAAMS,eAEpC,KAAKO,gBAAgBhB,GACrBiB,KAAKC,gBAvC+B,4BA2CxC,WACE,KAAKV,aAAaM,KAAO,EACzB,KAAKI,eA7CiC,+BAgDxC,SAAkBC,EAAiBC,GACjC,OAAOD,EAAEL,OAASM,EAAEN,MACfK,EAAE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AKtM,EAASgN,IACtB,OAAOR,EAAUU,EAAID,IAAU,IAAOJ,EAAKD,EAAKM,GAAK,GAAK,MACxDV,G,kCCrBJ","file":"js/home1222.0cfd194e.js","sourcesContent":["import {\n Component,\n Ref,\n Vue,\n} from 'vue-property-decorator';\nimport { VForm } from '@/types';\nimport { projects_store } from '@/store';\nimport { Projects } from '../types';\n\nconst { state, mutations } = projects_store;\n\n/**\n * вся повторяющаяся логика компонентов ProjectMainInfo.vue, ProductsProjet.vue и Info.vue\n */\n\n@Component({\n components: {\n },\n})\nexport default class NewProjectMixin extends Vue {\n @Ref()\n readonly form!: VForm;\n\n form_valid_val = false;\n\n get new_project() {\n return state.new_project;\n }\n\n get form_valid() {\n return this.form_valid_val;\n }\n\n set form_valid(val: boolean) {\n this.form_valid_val = val;\n this.$emit('valid', val);\n }\n\n upd_field(key: keyof Projects.NewProject, value: unknown) {\n mutations.UPD_NEW_PROJECT({ key, value });\n }\n\n submit() {\n if (this.form.validate()) {\n this.$emit('submit');\n this.$emit('valid', true);\n }\n }\n\n go_back() {\n if (this.form.validate()) {\n this.$emit('go_back');\n }\n }\n\n close() {\n this.$emit('close');\n }\n}\n","var $ = require('../internals/export');\nvar parseInt = require('../internals/number-parse-int');\n\n// `Number.parseInt` method\n// https://tc39.es/ecma262/#sec-number.parseint\n// eslint-disable-next-line es/no-number-parseint -- required for testing\n$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, {\n parseInt: parseInt\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-form',{ref:\"form\",attrs:{\"lazy-validation\":\"\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}},model:{value:(_vm.form_valid),callback:function ($$v) {_vm.form_valid=$$v},expression:\"form_valid\"}},[_c('h3',{staticClass:\"text-h3 mb-6\"},[_vm._v(\"Предлагаемые продукты в проект\")]),_c('v-btn',{staticClass:\"mb-6\",attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\"},on:{\"click\":_vm.show_add_product_modal}},[_vm._v(\" Добавить продукт в проект \")]),_c('SimpleDialog',{attrs:{\"max-width\":\"970\"},on:{\"close\":_vm.close_add_product_modal},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" Добавление номенклатуры в проект \")]},proxy:true},{key:\"text\",fn:function(){return [_c('Filters',{attrs:{\"hide_in_stock\":\"\",\"disabled\":_vm.serverPaginationLoading},on:{\"filter_update\":_vm.onFilterUpdate}}),_c('Table',{attrs:{\"headers\":_vm.products_model_headers,\"items\":_vm.items,\"loading\":_vm.serverPaginationLoading,\"custom-sort\":_vm.prevent_sort,\"no-data-text\":\"Товары, удовлетворяющие выбранным параметрам, отсутствуют\",\"not_resizeble\":true,\"options\":_vm.tableOptions,\"footerProps\":_vm.footerProps,\"server-items-length\":_vm.serverItemsLength,\"disable-sort\":_vm.serverPaginationLoading},on:{\"update:options\":function($event){_vm.tableOptions=$event}},scopedSlots:_vm._u([{key:\"item.nomenclature\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{style:(_vm.is_mobile ? 'width:100px' : '')},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(\n ref){\n var on = ref.on;\n var attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({class:_vm.$style.nomenclatureName},'div',attrs,false),on),[_c('span',{class:[_vm.$style.nomenclatureText, 'overflow-text']},[_vm._v(\" \"+_vm._s(item.nomenclature)+\" \")])])]}}],null,true)},[_vm._v(\" \"+_vm._s(item.nomenclature)+\" \")])],1)]}},{key:\"item.category_name\",fn:function(ref){\n var item = ref.item;\nreturn [_c('div',{staticClass:\"mb-1\"},[_vm._v(\" \"+_vm._s(item.category_name)+\" \")]),(item.product_software_type)?_c('div',{class:_vm.$style.productCategoryDesc},[_vm._v(\" \"+_vm._s(item.product_software_type.name)+\" \")]):_vm._e()]}},{key:\"item.price\",fn:function(ref){\n var item = ref.item;\nreturn [_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.prices.actual.base.rub))+\" \")]}},{key:\"item.action\",fn:function(ref){\n var item = ref.item;\nreturn [_c('v-btn',{staticClass:\"mt-2 mb-2\",attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\",\"type\":\"submit\"},on:{\"click\":function($event){return _vm.add_product(item)}}},[_vm._v(\" Добавить \")])]}}],null,true)})]},proxy:true}]),model:{value:(_vm.add_product_modal),callback:function ($$v) {_vm.add_product_modal=$$v},expression:\"add_product_modal\"}}),_c('Table',{attrs:{\"headers\":_vm.cols,\"items\":_vm.products,\"no-data-text\":\"Продукты не добавлены\",\"not_resizeble\":true,\"footer-props\":{ itemsPerPageOptions: _vm.itemsPerPageOptions }},scopedSlots:_vm._u([{key:\"item.catalog_price\",fn:function(ref){\n var item = ref.item;\nreturn [_c('td',{staticClass:\"py-2\"},[_vm._v(\" \"+_vm._s(_vm._f(\"currency_rub\")(item.catalog_price))+\" \")])]}},{key:\"item.client_price\",fn:function(ref){\n var item = ref.item;\nreturn [_c('tr',{staticClass:\"py-2\"},[_c('td',[(item.client_price)?_c('div',[_vm._v(_vm._s(item.client_price))]):_c('span',{class:_vm.$style.text},[_vm._v(\"Укажите цену\")])]),_c('td',[_c('v-btn',{staticClass:\"ml-2\",attrs:{\"icon\":\"\",\"small\":\"\",\"color\":\"accent darken-4\",\"title\":\"Редактировать\"},on:{\"click\":function($event){return _vm.show_price_set_modal(item, true)}}},[_c('v-icon',[_vm._v(\"mdi-pencil-outline\")])],1)],1)])]}},{key:\"item.desired_price\",fn:function(ref){\n var item = ref.item;\nreturn [_c('tr',{staticClass:\"py-2\"},[_c('td',[(item.desired_price)?_c('div',[_vm._v(_vm._s(item.desired_price))]):_c('span',{class:_vm.$style.text},[_vm._v(\"Укажите цену\")])]),_c('td',[_c('v-btn',{staticClass:\"ml-2\",attrs:{\"icon\":\"\",\"small\":\"\",\"color\":\"accent darken-4\",\"title\":\"Редактировать\"},on:{\"click\":function($event){return _vm.show_price_set_modal(item, false)}}},[_c('v-icon',[_vm._v(\"mdi-pencil-outline\")])],1)],1)])]}},{key:\"item.action\",fn:function(ref){\n var item = ref.item;\nreturn [_c('tr',{staticClass:\"py-2\"},[_c('td',[_c('v-btn',{attrs:{\"icon\":\"\",\"color\":\"secondary darken-4\",\"title\":\"Удалить\"},on:{\"click\":function($event){return _vm.remove_item(item)}}},[_c('v-icon',[_vm._v(\"mdi-delete-outline\")])],1)],1)])]}},{key:\"item.quantity\",fn:function(ref){\n var item = ref.item;\nreturn [_c('div',{on:{\"click\":function($event){$event.stopPropagation();}}},[_c('TextField',{class:_vm.$style.quantityInput,attrs:{\"hide-details\":\"\",\"dense\":\"\",\"type\":\"number\",\"background-color\":\"#fff\",\"clearable\":false,\"max\":_vm.max_quantity,\"min\":1},on:{\"input\":function($event){return _vm.upd_prod_quantity(item, $event)}},model:{value:(item.quantity),callback:function ($$v) {_vm.$set(item, \"quantity\", $$v)},expression:\"item.quantity\"}})],1)]}}],null,true)}),_c('div',{staticClass:\"mt-6\"},[_c('v-divider',{staticClass:\"mb-6\"}),_c('div',{staticClass:\"d-flex\"},[_c('v-btn',{staticClass:\"mr-auto\",attrs:{\"depressed\":\"\"},on:{\"click\":_vm.close}},[_vm._v(\" Отменить \")]),_c('v-btn',{attrs:{\"depressed\":\"\",\"disabled\":!_vm.form_valid},on:{\"click\":_vm.go_back}},[_vm._v(\" Назад \")]),_c('v-tooltip',{attrs:{\"color\":\"primary darken-3\",\"bottom\":\"\",\"open-delay\":300,\"disabled\":_vm.is_valid_table()},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\n var attrs = ref.attrs;\nreturn [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-btn',{staticClass:\"ml-4\",attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\",\"disabled\":!_vm.is_valid_table(),\"type\":\"submit\"}},[_vm._v(\" Продолжить \")])],1)]}}])},[_c('span',[_vm._v(\"Необходимо указать цену для клиента и запрашиваемую цену для товаров добавленных в проект\")])])],1)],1)],1),_c('SimpleDialog',{attrs:{\"max-width\":\"480\",\"bts_align\":'center',\"center_title\":\"\"},on:{\"close\":_vm.close_set_price_modal},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" Укажите цену \")]},proxy:true},{key:\"text\",fn:function(){return [_c('div',[(_vm.is_client_price)?_c('p',{staticClass:\"mb-2\"},[_vm._v(\" Укажите цену, по которой планируете реализацию товара клиенту. \")]):_c('p',{staticClass:\"mb-2\"},[_vm._v(\"Укажите цену, запрашиваемую у АТОЛ.\")]),(_vm.is_client_price)?_c('TextField',{attrs:{\"label\":\"Цена для клиента\",\"rules\":[\n function (v) { return _vm.is_require(v) || _vm.require_message; }\n ],\"type\":\"number\",\"hide_btns\":\"\"},model:{value:(_vm.set_client_price),callback:function ($$v) {_vm.set_client_price=$$v},expression:\"set_client_price\"}}):_c('TextField',{attrs:{\"label\":\"Запрашиваемая цена\",\"rules\":[\n function (v) { return _vm.is_require(v) || _vm.require_message; }\n ],\"type\":\"number\",\"hide_btns\":\"\"},model:{value:(_vm.set_desired_price),callback:function ($$v) {_vm.set_desired_price=$$v},expression:\"set_desired_price\"}})],1)]},proxy:true},{key:\"actions\",fn:function(){return [(_vm.is_client_price)?_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\",\"disabled\":_vm.set_client_price === null},on:{\"click\":function($event){return _vm.save_client_price(_vm.editable_item)}}},[_vm._v(\" Добавить \")]):_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"accent darken-4\",\"depressed\":\"\",\"disabled\":_vm.set_desired_price === null},on:{\"click\":function($event){return _vm.save_partner_price(_vm.editable_item)}}},[_vm._v(\" Добавить \")]),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.close_set_price_modal}},[_vm._v(\" Отменить \")])]},proxy:true}]),model:{value:(_vm.set_price_modal),callback:function ($$v) {_vm.set_price_modal=$$v},expression:\"set_price_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\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 {\n Component, Mixins, Ref,\n} from 'vue-property-decorator';\nimport { Table, TextField } from '@/components';\nimport {\n TableCol, VForm,\n} from '@/types';\nimport ValidateMixin from '@/mixins/validate';\nimport NewProjectMixin from '@/modules/projects/mixins/new_projects_steps';\nimport {\n global_store, products_store, projects_store, user_store,\n} from '@/store';\nimport { ColsStorage, PaginationItemsPerPage } from '@/enums';\nimport { prevent_sort } from '@/utils';\nimport Filters from '@/modules/products/components/Filters.vue';\nimport { Products } from '@/modules/products/types';\nimport ServerPaginationMixin from '@/mixins/ServerPaginationMixin';\nimport { itemsPerPageOptions } from '@/consts';\nimport { Projects } from '../../types';\n\nconst { state, mutations } = projects_store;\n\n@Component({\n components: {\n Table,\n Filters,\n TextField,\n SimpleDialog: () => import('@/components/dialogs/simple/SimpleDialog.vue'),\n },\n})\nexport default class ProductsProject extends Mixins(\n ValidateMixin,\n NewProjectMixin,\n ServerPaginationMixin,\n) {\n @Ref()\n readonly upload_form!: VForm;\n\n async mounted() {\n this.restoreItemsPerPage();\n await this.fetchItems();\n }\n\n add_product_modal = false;\n set_price_modal = false;\n editable_item: Projects.AddProduct | null = null;\n set_client_price = null;\n set_desired_price = null;\n is_client_price = false;\n loading = false;\n prevent_sort = prevent_sort;\n\n cols_storage_name = ColsStorage.NEW_PROJECT_COLS;\n\n cols: TableCol[] = [\n {\n text: 'Код товара',\n value: 'product_code',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Номенклатура',\n value: 'nomeclature',\n sortable: false,\n width: '250px',\n },\n {\n text: 'Цена из каталога',\n value: 'catalog_price',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Цена для клиента',\n value: 'client_price',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Запрашиваемая цена',\n value: 'desired_price',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Количество',\n value: 'quantity',\n sortable: false,\n width: '100px',\n },\n {\n text: 'Действие',\n value: 'action',\n sortable: false,\n width: '100px',\n },\n ]\n\n products_model_headers: TableCol[] = [\n {\n text: 'Код',\n align: 'start',\n value: 'product_code',\n width: '84px',\n sortable: false,\n },\n {\n text: 'Номенклатура',\n value: 'nomenclature',\n width: '416px',\n sortable: false,\n },\n {\n text: 'Товарная категория',\n align: 'start',\n value: 'category_name',\n width: '146px',\n sortable: false,\n },\n {\n text: 'Цена',\n align: 'start',\n value: 'price',\n width: '124px',\n sortable: false,\n },\n {\n text: 'Действие',\n value: 'action',\n width: '150px',\n sortable: false,\n },\n ];\n\n get products() {\n return state.products;\n }\n\n get is_mobile() {\n return global_store.state.isMobile;\n }\n\n get items() {\n return products_store.state.products;\n }\n\n get default_const_max_cart_product_quantity() {\n return global_store.state.default_const_max_cart_product_quantity;\n }\n\n get max_quantity() {\n return user_store.state.me.constants.const_max_cart_product_quantity_per_unit || this.default_const_max_cart_product_quantity;\n }\n\n is_valid_table() {\n return this.products.length\n && this.products.every((prod) => prod.client_price !== null && prod.desired_price !== null);\n }\n\n show_add_product_modal() {\n this.add_product_modal = true;\n }\n\n show_price_set_modal(item: Projects.AddProduct, is_client_price: boolean) {\n this.editable_item = item;\n this.set_price_modal = true;\n this.is_client_price = is_client_price;\n }\n\n close_add_product_modal() {\n this.add_product_modal = false;\n }\n\n close_set_price_modal() {\n this.set_price_modal = false;\n }\n\n add_product(item: Products.Product) {\n this.close_add_product_modal();\n this.loading = true;\n\n const product = this.products.find((product) => product.product_code === item.product_code);\n\n if (product) {\n if (typeof product.quantity === 'number') {\n product.quantity++;\n mutations.UPDATE_ADD_PRODUCT_QUANTITY({ product_code: item.product_code, quantity: product.quantity });\n }\n } else {\n const new_product: Projects.AddProduct = {\n product_code: item.product_code,\n nomeclature: item.nomenclature,\n catalog_price: item.prices?.actual.base.rub,\n client_price: null,\n desired_price: null,\n quantity: 1,\n id: item.id,\n };\n\n mutations.ADD_PRODUCT([new_product]);\n }\n\n this.loading = false;\n }\n\n remove_item(item_to_remove: Projects.AddProduct) {\n mutations.REMOVE_PRODUCT(item_to_remove);\n }\n\n save_client_price(editable_item: Projects.AddProduct | null) {\n if (this.is_client_price) {\n if (editable_item !== null && this.set_client_price !== null) {\n editable_item.client_price = this.set_client_price;\n this.set_client_price = null;\n this.close_set_price_modal();\n mutations.SET_CLIENT_PRICE(editable_item);\n }\n }\n }\n\n save_partner_price(editable_item: Projects.AddProduct | null) {\n if (editable_item !== null && this.set_desired_price !== null) {\n editable_item.desired_price = this.set_desired_price;\n this.set_desired_price = null;\n this.close_set_price_modal();\n mutations.SET_PARTNER_PRICE(editable_item);\n }\n }\n\n upd_prod_quantity(item: Projects.AddProduct, quantity: string) {\n mutations.UPD_PROD_QUANTITY({ item, quantity });\n }\n\n submit() {\n const form_valid = true;\n\n if (form_valid) {\n console.log(form_valid);\n\n this.$emit('submit');\n this.$emit('valid', true);\n }\n }\n\n localStorageKey = PaginationItemsPerPage.PROJECT_PRODUCTS\n getLoading = () => products_store.state.loading\n fetchItems = products_store.actions.get_products2\n getTableOptions = () => products_store.state.table_options\n setTableOptions = products_store.mutations.SET_TABLE_OPTIONS\n\n get serverItemsLength() {\n return products_store.state.pagination_props.total_items;\n }\n\n get itemsPerPageOptions() {\n return itemsPerPageOptions;\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!./ProductsProject.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!./ProductsProject.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProductsProject.vue?vue&type=template&id=a9e133f4&\"\nimport script from \"./ProductsProject.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductsProject.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ProductsProject.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 { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VDivider,VForm,VIcon,VTooltip})\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"ProductsProject_v-application_2VwsN\",\"text-h1\":\"ProductsProject_text-h1_2Kebq\",\"text-h2\":\"ProductsProject_text-h2_37vt8\",\"nomenclatureName\":\"ProductsProject_nomenclatureName_1KFSA\",\"nomenclatureText\":\"ProductsProject_nomenclatureText_3ZOqJ\",\"pagination\":\"ProductsProject_pagination_1j3No\",\"quantityInput\":\"ProductsProject_quantityInput_20xMh\"};","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseInt = global.parseInt;\nvar Symbol = global.Symbol;\nvar ITERATOR = Symbol && Symbol.iterator;\nvar hex = /^[+-]?0x/i;\nvar exec = uncurryThis(hex.exec);\nvar FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nmodule.exports = FORCED ? function parseInt(string, radix) {\n var S = trim(toString(string));\n return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));\n} : $parseInt;\n","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!./ProductsProject.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!./ProductsProject.vue?vue&type=style&index=0&module=true&lang=scss&\""],"sourceRoot":""}