\r\n \r\n \r\n\r\n\r\n\r\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductCard.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductCard.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductCard.vue?vue&type=template&id=63c2b885\"\nimport script from \"./ProductCard.vue?vue&type=script&lang=js\"\nexport * from \"./ProductCard.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","/* eslint-disable import/prefer-default-export */\r\nexport function getImageLinkByOrigin(productOrigin) {\r\n if (productOrigin === 'Belenus' || productOrigin === 'fixadores') {\r\n return 'https://storage.googleapis.com/fotos-prd/';\r\n }\r\n\r\n return process.env.VUE_APP_FOTOS_URL;\r\n}\r\n","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IntegrationErrorModal.vue?vue&type=style&index=0&id=c9e3859e&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('b-row',[_c('b-col',{staticClass:\"mb-2\"},[_c('b-button',{attrs:{\"pill\":\"\",\"variant\":\"primary\",\"title\":\"Recarregar produtos\"},on:{\"click\":function($event){return _vm.getMarketplaceProductIntegrations()}}},[_c('i',{staticClass:\"fas fa-sync\"})])],1),_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('b-table',{attrs:{\"striped\":\"\",\"hover\":\"\",\"show-empty\":\"\",\"empty-text\":\"Sem produtos integrados ao Mercado Livre\",\"fields\":_vm.table.headers,\"items\":_vm.productsIntegrated,\"busy\":_vm.loading},scopedSlots:_vm._u([{key:\"cell(updatedAt)\",fn:function({ item }){return [(item.status !== _vm.ProductIntegrationStatus.NOT_STARTED)?_c('span',[_vm._v(_vm._s(item.updatedAt\n ? new Date(item.updatedAt).toLocaleString('pt-BR')\n : ''))]):_vm._e()]}},{key:\"cell(status)\",fn:function({ item }){return [_c('span',[_vm._v(_vm._s(_vm.getText(item.status)))])]}},{key:\"cell(actions)\",fn:function({ item }){return [_c('div',{staticClass:\"d-flex align-items-center\",staticStyle:{\"gap\":\"0.8rem\"}},[(item.status === _vm.ProductIntegrationStatus.ERROR)?_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"danger\",\"title\":\"Ver erros\"},on:{\"click\":function($event){return _vm.$refs.integrationErrorModal.open(\n item.product.produto,\n item.errorPayload,\n item.payload\n )}}},[_c('i',{staticClass:\"fas fa-eye\"})]):_vm._e(),(item.status === _vm.ProductIntegrationStatus.ERROR)?_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"warning\",\"title\":\"Integrar novamente\"},on:{\"click\":function($event){return _vm.$refs.reintegrationModal.open(item)}}},[_c('i',{staticClass:\"fas fa-box-open\"})]):_vm._e()],1)]}}])})],1),_c('b-col',{staticClass:\"d-flex align-items-center justify-content-center\",attrs:{\"cols\":\"12\"}},[_vm._t(\"pagination\",function(){return [_c('b-pagination',{attrs:{\"total-rows\":_vm.pagination.total,\"per-page\":_vm.pagination.itemsPerPage,\"disabled\":_vm.loading},model:{value:(_vm.pagination.currentPage),callback:function ($$v) {_vm.$set(_vm.pagination, \"currentPage\", $$v)},expression:\"pagination.currentPage\"}})]})],2),_c('IntegrationErrorModal',{ref:\"integrationErrorModal\"}),_c('ReintegrationModal',{ref:\"reintegrationModal\",on:{\"reintegrated\":_vm.getMarketplaceProductIntegrations}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","const statuses = {\r\n SUCCESS: 'success',\r\n ERROR: 'error',\r\n INTEGRATING: 'integrating',\r\n NOT_STARTED: 'not_started',\r\n};\r\n\r\nconst texts = {\r\n [statuses.SUCCESS]: 'Sucesso',\r\n [statuses.ERROR]: 'Erro',\r\n [statuses.INTEGRATING]: 'Integrando',\r\n [statuses.NOT_STARTED]: 'Não iniciado',\r\n};\r\n\r\nexport default statuses;\r\n\r\nexport const getText = (status) => texts[status];\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.isOpen)?_c('b-modal',{attrs:{\"centered\":\"\",\"cancel-disabled\":\"\",\"hide-footer\":\"\",\"title\":\"Erro na integração\",\"size\":\"lg\"},model:{value:(_vm.isOpen),callback:function ($$v) {_vm.isOpen=$$v},expression:\"isOpen\"}},[_c('b-alert',{staticClass:\"d-flex align-items-center text-justify\",attrs:{\"show\":\"\",\"variant\":\"warning\"}},[_c('div',[_c('i',{staticClass:\"fas fa-exclamation-triangle mr-3\"}),_vm._v(\" Algumas mensagens de\\n erro abaixo são retornadas pelo próprio Mercado Livre, a Constr Up não\\n tem controle sobre elas. Para maiores informações acesse o link da\\n documentação de\\n \"),_c('a',{attrs:{\"href\":\"https://developers.mercadolivre.com.br/pt_br/validacoes\"}},[_vm._v(\"validações do Mercado Livre\")]),_vm._v(\".\\n \")])]),_c('div',[_vm._v(\"\\n Houve um erro ao integrar o produto \"),_c('b',[_vm._v(_vm._s(_vm.productName))]),_vm._v(\":\\n \")]),_c('div',{staticClass:\"mt-2\"},[_c('b',[_vm._v(\"Dados enviados:\")]),_c('pre',[_c('code',{attrs:{\"id\":\"output\"}},[_vm._v(_vm._s(JSON.stringify(JSON.parse(_vm.payload), null, 2)))])])]),_c('div',[_c('b',[_vm._v(\"Erro:\")]),(_vm.error)?_c('pre',[_c('code',{attrs:{\"id\":\"output\"}},[_vm._v(_vm._s(JSON.stringify(JSON.parse(_vm.error), null, 2)))])]):_c('div',[_vm._v(\"\\n Sem erros reportados. Consulte o nosso suporte para mais informações\\n sobre o que pode ter ido errado.\\n \")])])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n Algumas mensagens de\r\n erro abaixo são retornadas pelo próprio Mercado Livre, a Constr Up não\r\n tem controle sobre elas. Para maiores informações acesse o link da\r\n documentação de\r\n validações do Mercado Livre.\r\n
\r\n \r\n
\r\n Houve um erro ao integrar o produto {{ productName }}:\r\n