{"version":3,"sources":["webpack:///./src/services/genericGETJson.js","webpack:///./src/services/configurations/getProducto.js","webpack:///./src/services/trash/deleteTrashProducto.js","webpack:///./src/views/trash/Product.vue?15e1","webpack:///src/views/trash/Product.vue","webpack:///./src/views/trash/Product.vue?0d2f","webpack:///./src/views/trash/Product.vue","webpack:///./src/components/layout/DetailLayout.vue?d7c2","webpack:///src/components/layout/DetailLayout.vue","webpack:///./src/components/layout/DetailLayout.vue?0f28","webpack:///./src/components/layout/DetailLayout.vue","webpack:///./src/views/trash/Product.vue?d891","webpack:///./src/services/trash/restoreTrashProducto.js"],"names":["async","genericGETJson","url","data","params","req","method","headers","res","axiosInstance","getProducto","deleteTrashProducto","render","_vm","this","_h","$createElement","_c","_self","slot","attrs","header","staticClass","ref","form","role","_v","_s","$t","clientes","loadingClientes","model","value","callback","$$v","$set","expression","isGeneralLoading","on","$event","preventDefault","stopPropagation","goDetailClient","apply","arguments","_e","tiposUnidadesMedida","goBack","deleteEntity","restoreEntity","showModal","processMessagedeleteEntity","deleteHandler","staticRenderFns","name","components","DetailLayout","Dialog","searchView","activeName","title","icon","breadcrumb","nav","label","values","computed","id","watch","deep","immediate","handler","created","breadcrumbs","path","methods","idProductos","payload","getDefaultForm","ItemDescription","UnitOfMeasure","UnitPriceWithoutTax","ArticleCode","idCliente","watchFormHandler","certificate","send_alerts","automatic_download","toggleDialogs","toggleSearchView","downloadData","idProducto","borrado","setEntity","updateView","component","_t","restoreTrashProducto"],"mappings":"8KAGAA,eAAeC,EAAgBC,EAAM,GAAIC,EAAO,GAAIC,EAAS,MAcpD,CACL,MAAMC,EAAM,CACVH,MACAI,OAAQ,MACRC,QAAS,CACP,eAAgB,mBAChB,8BAA+B,KAEjCJ,OACAC,UAEII,QAAYC,eAAcJ,GAChC,OAAOG,EAAIL,MC3BfH,eAAeU,EAAaN,EAAS,MACnC,aAAaH,EACX,oCACA,KACAG,K,2DCNJ,4DAGAJ,eAAeW,EAAqBR,GAW3B,CACL,MAAME,EAA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+BACA,IACA,sCACA,SACAwB,gBAEAC,4BACA,iCACA,eACA,gDAEA,wDAEA,SACA,kBACA,QACA,sCACA,gBAGA5B,+BACA,IACA,sCACA,SACA2B,gBAEAC,4BACA,iCACA,eACA,gDAEA,wDAEA,SACA,kBACA,QACA,sCACA,gBAGAC,0BACA,OACAX,KACAY,mBACAC,mBACAC,yBACAC,eACAC,iBAGAC,uCACAC,cACAC,qBACAC,MAEAC,yBACA,sDAEAC,4BACA,kCAEA1C,kBACA,mBAAAO,yBAEAoC,+BACA,WACA,IACA,sCACA,SACAC,aACAC,YAEApF,0BACA,4BACA,SACA,kBACA,QACA,sCAEA,UAEAqF,sBACA,4CACA,wCACA,oDACA,oCACA,0BACA,iCAEAC,sBACA,uDACA,iCACA,mDChU+V,I,wBCQ3VC,EAAY,eACd,EACAnF,EACAyC,GACA,EACA,KACA,WACA,MAIa,aAAA0C,E,2CCnBf,IAAInF,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACK,YAAY,gFAAgF,CAACT,EAAImF,GAAG,UAAU/E,EAAG,OAAO,CAACK,YAAY,0DAA0D,CAACL,EAAG,MAAM,CAACK,YAAY,kDAAkD,CAACL,EAAG,MAAM,CAACK,YAAY,iBAAiB,CAACT,EAAImF,GAAG,SAAS,OAAOnF,EAAImF,GAAG,kBAAkB,IACvc3C,EAAkB,GCcP,GACfC,sBChBoW,I,YCOhWyC,EAAY,eACd,EACAnF,EACAyC,GACA,EACA,KACA,KACA,MAIa,OAAA0C,E,2CClBf,W,mCCAA,4DAGA/F,eAAeiG,EAAsB9F,GAW5B,CACL,MAAME,EAAM,CACVH,IAAK,4CACLI,OAAQ,MACRC,QAAS,CACP,eAAgB,mBAChB,8BAA+B,KAEjCJ,QAEIK,QAAYC,eAAcJ,GAChC,OAAOG,EAAIL","file":"js/chunk-4612237b.v.6.0.0.1728293495878.js","sourcesContent":["import axiosInstance from '@/services/axiosInstance'\r\nimport mock from '@/services/mock/index'\r\n\r\nasync function genericGETJson (url = '', data = {}, params = null) {\r\n if (process.env.VUE_APP_ENVIRONMENT === 'tests') {\r\n return new Promise((resolve, reject) => {\r\n const data = mock.getCompanies\r\n const pages = data.data.length\r\n\r\n const clone = JSON.parse(JSON.stringify(data))\r\n console.log(clone.data)\r\n clone.data = clone.data.slice(0, params.limit)\r\n\r\n clone.meta.total = pages\r\n\r\n resolve(clone)\r\n })\r\n } else {\r\n const req = {\r\n url,\r\n method: 'GET',\r\n headers: {\r\n 'Content-type': 'application/json',\r\n 'access-control-allow-origin': '*'\r\n },\r\n data,\r\n params\r\n }\r\n const res = await axiosInstance(req)\r\n return res.data\r\n }\r\n}\r\n\r\nexport { genericGETJson }\r\n","import { genericGETJson } from '@/services/genericGETJson'\r\n\r\nasync function getProducto (params = null) {\r\n return await genericGETJson(\r\n '/api/productos/getproductodetalle',\r\n null,\r\n params\r\n )\r\n}\r\n\r\nexport { getProducto }\r\n","import axiosInstance from '@/services/axiosInstance'\r\nimport mock from '@/services/mock/index'\r\n\r\nasync function deleteTrashProducto (data) {\r\n if (process.env.VUE_APP_ENVIRONMENT === 'test') {\r\n return new Promise((resolve, reject) => {\r\n const data = mock.getLocations\r\n const pages = data.data.length\r\n\r\n const clone = JSON.parse(JSON.stringify(data))\r\n clone.meta.total = pages\r\n\r\n resolve(clone)\r\n })\r\n } else {\r\n const req = {\r\n url: '/api/productos/deletepermanenteproductos',\r\n method: 'DELETE',\r\n headers: {\r\n 'Content-type': 'application/json',\r\n 'access-control-allow-origin': '*'\r\n },\r\n data\r\n }\r\n const res = await axiosInstance(req)\r\n return res.data\r\n }\r\n}\r\n\r\nexport { deleteTrashProducto }\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('detail-layout',[_c('template',{slot:\"header\"},[_c('base-header',{attrs:{\"icon\":\"impuesto\",\"content\":_vm.header}})],1),_c('template',{slot:\"main\"},[_c('div',{staticClass:\"form-wrapper\"},[_c('el-form',{ref:\"ruleForm\",staticClass:\"flex flex-row w-full\",attrs:{\"model\":_vm.form,\"autocomplete\":\"off\"}},[_c('div',{staticClass:\"flex-1\"},[_c('div',[((_vm.role === 'AdminDistribuidor' || _vm.role === 'SuperAdminDistribuidor' || _vm.role === 'SuperAdministrador'))?_c('div',{staticClass:\"w-full\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('app.client')))]),_c('div',{staticClass:\"flex justify-between\"},[_c('el-form-item',{staticClass:\"w-full\",attrs:{\"prop\":\"idCliente\"}},[_c('base-el-select',{staticClass:\"w-full\",attrs:{\"options\":_vm.clientes,\"loading\":_vm.loadingClientes,\"disabled\":\"\"},model:{value:(_vm.form.idCliente),callback:function ($$v) {_vm.$set(_vm.form, \"idCliente\", $$v)},expression:\"form.idCliente\"}})],1),_c('base-button',{staticClass:\"mb-1 ml-4\",attrs:{\"mode\":\"primary\",\"text\":_vm.$t('app.detail'),\"loading\":_vm.isGeneralLoading,\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.goDetailClient.apply(null, arguments)}}})],1)]):_vm._e()]),_c('div',{staticClass:\"lg:mb-2\"},[_c('div',{staticClass:\"mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('impuestos.ItemDescription')))]),_c('el-form-item',{attrs:{\"prop\":\"ItemDescription\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"disabled\":\"\",\"maxlength\":\"2500\",\"type\":\"textarea\",\"rows\":3},model:{value:(_vm.form.ItemDescription),callback:function ($$v) {_vm.$set(_vm.form, \"ItemDescription\", $$v)},expression:\"form.ItemDescription\"}})],1)],1)]),_c('div',{staticClass:\"lg:mb-2\"},[_c('div',{staticClass:\"mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('products.UnitPriceWithoutTax')))]),_c('el-form-item',{attrs:{\"prop\":\"UnitPriceWithoutTax\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"disabled\":\"\",\"type\":\"number\",\"maxlength\":\"9\"},model:{value:(_vm.form.UnitPriceWithoutTax),callback:function ($$v) {_vm.$set(_vm.form, \"UnitPriceWithoutTax\", $$v)},expression:\"form.UnitPriceWithoutTax\"}})],1)],1)]),_c('div',{staticClass:\"lg:mb-2\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('products.UnitOfMeasure')))]),_c('el-form-item',{attrs:{\"prop\":\"UnitOfMeasure\"}},[_c('base-el-select',{staticClass:\"w-full\",attrs:{\"options\":_vm.tiposUnidadesMedida,\"disabled\":\"\"},model:{value:(_vm.form.UnitOfMeasure),callback:function ($$v) {_vm.$set(_vm.form, \"UnitOfMeasure\", $$v)},expression:\"form.UnitOfMeasure\"}})],1)],1),_c('div',{staticClass:\"lg:mb-2\"},[_c('div',{staticClass:\"mandatory\"},[_c('label',{staticClass:\"text-sm font-semibold text-secondary-600 block mb-1\"},[_vm._v(_vm._s(_vm.$t('products.ArticleCode')))]),_c('el-form-item',{attrs:{\"prop\":\"ArticleCode\"}},[_c('el-input',{staticClass:\"w-full\",attrs:{\"disabled\":\"\",\"maxlength\":\"20\"},model:{value:(_vm.form.ArticleCode),callback:function ($$v) {_vm.$set(_vm.form, \"ArticleCode\", $$v)},expression:\"form.ArticleCode\"}})],1)],1)])])])],1)]),_c('template',{slot:\"layout-extend\"},[_c('base-footer',[_c('template',{slot:\"actions\"},[_c('base-button-responsive',{attrs:{\"mode\":\"secondary\",\"text\":_vm.$t('app.back'),\"icon\":\"cross\",\"loading\":_vm.isGeneralLoading},on:{\"click\":_vm.goBack}}),_c('base-button-responsive',{attrs:{\"mode\":\"primary\",\"text\":_vm.$t('trash.delete'),\"icon\":\"check\",\"loading\":_vm.isGeneralLoading,\"disabled\":_vm.isGeneralLoading},on:{\"click\":function($event){return _vm.deleteEntity()}}}),_c('base-button-responsive',{attrs:{\"mode\":\"primary\",\"text\":_vm.$t('trash.restore'),\"icon\":\"check\",\"loading\":_vm.isGeneralLoading,\"disabled\":_vm.isGeneralLoading},on:{\"click\":function($event){return _vm.restoreEntity()}}})],1)],2),_c('Dialog',{attrs:{\"title\":\"Borrar producto\",\"visible\":_vm.showModal,\"width\":\"40%\",\"custom-class\":\"min-width-dialog\",\"center\":\"\"},on:{\"update:visible\":function($event){_vm.showModal=$event}}},[_c('span',{staticClass:\"text-center w-full inline-block dark:text-darkblue-200 word-break-n\"},[_vm._v(_vm._s(_vm.processMessagedeleteEntity))]),_c('template',{slot:\"footer\"},[_c('div',{staticClass:\"flex flex-col lg:flex-row w-full lg:w-auto items-center space-y-2 lg:space-y-0 lg:space-x-2\"},[_c('base-button',{staticClass:\"w-full\",attrs:{\"mode\":\"secondary-phantom-blue\",\"text\":_vm.$t('app.cancel')},on:{\"click\":function($event){_vm.showModal = false}}}),_c('base-button',{staticClass:\"w-full\",attrs:{\"mode\":\"secondary-phantom-blue\",\"text\":_vm.$t('app.accept')},on:{\"click\":function () {_vm.deleteHandler(); _vm.showModal = false}}})],1)])],2)],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Product.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Product.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Product.vue?vue&type=template&id=e5743134&scoped=true\"\nimport script from \"./Product.vue?vue&type=script&lang=js\"\nexport * from \"./Product.vue?vue&type=script&lang=js\"\nimport style0 from \"./Product.vue?vue&type=style&index=0&id=e5743134&prod&scoped=true&lang=css\"\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 \"e5743134\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"content-wrapper bg-white dark:bg-darkblue-900 flex flex-col w-full relative\"},[_vm._t(\"header\"),_c('main',{staticClass:\"content flex flex-col flex-auto overflow-y-auto w-full\"},[_c('div',{staticClass:\"w-full md:w-11.5/12 lg:max-w-detail lg:mr-auto\"},[_c('div',{staticClass:\"px-4 lg:px-10\"},[_vm._t(\"main\")],2)])]),_vm._t(\"layout-extend\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DetailLayout.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DetailLayout.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DetailLayout.vue?vue&type=template&id=72444160\"\nimport script from \"./DetailLayout.vue?vue&type=script&lang=js\"\nexport * from \"./DetailLayout.vue?vue&type=script&lang=js\"\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","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Product.vue?vue&type=style&index=0&id=e5743134&prod&scoped=true&lang=css\"","import axiosInstance from '@/services/axiosInstance'\r\nimport mock from '@/services/mock/index'\r\n\r\nasync function restoreTrashProducto (data) {\r\n if (process.env.VUE_APP_ENVIRONMENT === 'test') {\r\n return new Promise((resolve, reject) => {\r\n const data = mock.getLocations\r\n const pages = data.data.length\r\n\r\n const clone = JSON.parse(JSON.stringify(data))\r\n clone.meta.total = pages\r\n\r\n resolve(clone)\r\n })\r\n } else {\r\n const req = {\r\n url: '/api/productos/recuperarproductosborrados',\r\n method: 'PUT',\r\n headers: {\r\n 'Content-type': 'application/json',\r\n 'access-control-allow-origin': '*'\r\n },\r\n data\r\n }\r\n const res = await axiosInstance(req)\r\n return res.data\r\n }\r\n}\r\n\r\nexport { restoreTrashProducto }\r\n"],"sourceRoot":""}