\n \n \n\n \n \n \n
\n\n\n\n\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","import { render } from \"./vue3-html2pdf.vue?vue&type=template&id=6bc44e0c&scoped=true\"\nimport script from \"./vue3-html2pdf.vue?vue&type=script&lang=js\"\nexport * from \"./vue3-html2pdf.vue?vue&type=script&lang=js\"\n\nimport \"./vue3-html2pdf.vue?vue&type=style&index=0&id=6bc44e0c&lang=scss&scoped=true\"\n\nimport exportComponent from \"C:\\\\Users\\\\Scaleao\\\\Desktop\\\\Projetos Timo\\\\nutricao-inteligente-frontend\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6bc44e0c\"]])\n\nexport default __exports__","module.exports = function() {\n\tthrow new Error(\"define cannot be used indirect\");\n};\n","export * from \"-!../../mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../vue-loader-v16/dist/stylePostLoader.js!../../postcss-loader/src/index.js??ref--9-oneOf-1-2!../../sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../cache-loader/dist/cjs.js??ref--1-1!../../vue-loader-v16/dist/index.js??ref--1-2!./vue3-html2pdf.vue?vue&type=style&index=0&id=6bc44e0c&lang=scss&scoped=true\"","/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\n","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/logo.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-7edc9e3c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"row justify-center full-width q-mt-xl\" }\nconst _hoisted_2 = { class: \"col-auto\" }\nconst _hoisted_3 = { class: \"header\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n alt: \"\"\n}, null, -1))\nconst _hoisted_5 = {\n key: 0,\n class: \"header-list\"\n}\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Produtor\", -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Município\", -1))\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode()\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Talhão\", -1))\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Área\", -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Data da recomendação\", -1))\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Colaborador\", -1))\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Cultura\", -1))\nconst _hoisted_15 = {\n key: 0,\n class: \"diagnostico-analise\"\n}\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"titulo-azul\" }, \"Diagnóstico da análise do solo\", -1))\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"data\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"data-item\" }, [\n /*#__PURE__*/_createElementVNode(\"p\", { class: \"data-item-text data-item-value\" }, \" legendas: \")\n ]),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"data-item\" }, [\n /*#__PURE__*/_createElementVNode(\"p\", { class: \"data-item-text data-item-value alto\" }, \" alto \")\n ]),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"data-item\" }, [\n /*#__PURE__*/_createElementVNode(\"p\", { class: \"data-item-text data-item-value adequado\" }, \" adequado \")\n ]),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"data-item\" }, [\n /*#__PURE__*/_createElementVNode(\"p\", { class: \"data-item-text data-item-value medio\" }, \" médio \")\n ]),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"data-item\" }, [\n /*#__PURE__*/_createElementVNode(\"p\", { class: \"data-item-text data-item-value baixo\" }, \" baixo \")\n ])\n], -1))\nconst _hoisted_18 = { class: \"data\" }\nconst _hoisted_19 = { class: \"data-item-text\" }\nconst _hoisted_20 = {\n key: 1,\n class: \"antes-correcao\"\n}\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"titulo-azul\" }, \"Antes da correção\", -1))\nconst _hoisted_22 = { class: \"data\" }\nconst _hoisted_23 = { class: \"data-item-text\" }\nconst _hoisted_24 = {\n key: 2,\n class: \"pos-correcao\"\n}\nconst _hoisted_25 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"titulo-azul\" }, \"Pós correção\", -1))\nconst _hoisted_26 = { class: \"data\" }\nconst _hoisted_27 = { class: \"data-item-text\" }\nconst _hoisted_28 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"html2pdf__page-break\" }, null, -1))\nconst _hoisted_29 = { class: \"recomendacao-fosfatagem\" }\nconst _hoisted_30 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"titulo-azul\" }, \"Fosfatagem\", -1))\nconst _hoisted_31 = { class: \"recomendacao-potassagem\" }\nconst _hoisted_32 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"titulo-azul\" }, \"Potassagem\", -1))\nconst _hoisted_33 = { class: \"recomendacao-correcao\" }\nconst _hoisted_34 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"titulo-azul\" }, \"Recomendação de correção do solo\", -1))\nconst _hoisted_35 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h5\", null, \"Calagem\", -1))\nconst _hoisted_36 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h5\", null, \"Complementação de Enxofre\", -1))\nconst _hoisted_37 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Necessidade de suprir Enxofre: \", -1))\nconst _hoisted_38 = { class: \"recomendacao-adubacao\" }\nconst _hoisted_39 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"titulo-azul\" }, \"Recomendação de adubação\", -1))\nconst _hoisted_40 = { class: \"title-applied\" }\nconst _hoisted_41 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Fertilizante: \", -1))\nconst _hoisted_42 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Dose: \", -1))\nconst _hoisted_43 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"strong\", null, \"Forma de aplicação:\", -1))\nconst _hoisted_44 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_45 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"html2pdf__page-break\" }, null, -1))\nconst _hoisted_46 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h5\", null, \"Micronutrientes\", -1))\nconst _hoisted_47 = { class: \"graph\" }\nconst _hoisted_48 = {\n key: 3,\n class: \"full-width text-center\"\n}\nconst _hoisted_49 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"th\", null, \"Nutrientes\", -1))\nconst _hoisted_50 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Extração da Cultura\", -1))\nconst _hoisted_51 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Exportação da Cultura\", -1))\nconst _hoisted_52 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Teores Extraídos do Solo\", -1))\nconst _hoisted_53 = { class: \"recomendations-line\" }\nconst _hoisted_54 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Recomendação Nutricional\", -1))\nconst _hoisted_55 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"NORTOX Aplicado\", -1))\nconst _hoisted_56 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Saldo - deve ser zerado\", -1))\nconst _hoisted_57 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"html2pdf__page-break\" }, null, -1))\nconst _hoisted_58 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h5\", null, \"Macronutrientes\", -1))\nconst _hoisted_59 = { class: \"graph\" }\nconst _hoisted_60 = { class: \"full-width text-center\" }\nconst _hoisted_61 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"th\", null, \"Nutrientes\", -1))\nconst _hoisted_62 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Extração da Cultura\", -1))\nconst _hoisted_63 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Exportação da Cultura\", -1))\nconst _hoisted_64 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Teores Extraídos do Solo\", -1))\nconst _hoisted_65 = { class: \"recomendations-line\" }\nconst _hoisted_66 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Recomendação Nutricional\", -1))\nconst _hoisted_67 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"NORTOX Aplicado\", -1))\nconst _hoisted_68 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"td\", null, \"Saldo - deve ser zerado\", -1))\n\nimport { api } from '@/utils';\r\nimport { ref, onMounted } from 'vue';\r\nimport { ReportAnalysisItem } from '@/models/report-analysis-item';\r\nimport { Substance } from '@/models/substance';\r\nimport store from '@/store';\r\nimport { useRoute } from 'vue-router';\r\nimport Vue3Html2pdf from 'vue3-html2pdf';\r\nimport useQuasar from 'quasar/src/composables/use-quasar.js';;\r\n\r\ninterface SubstanceValue {\r\n substanceCode: string;\r\n value: number | string;\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\r\nconst quasar = useQuasar();\r\nconst html2Pdf = ref(null)\r\nlet helper = ref(null)\r\nlet reportInfo = ref(null)\r\n\r\nonMounted(() => {\r\n helper = html2Pdf\r\n})\r\n\r\nquasar.loading.show();\r\n\r\nfunction printDocument() { \r\n helper.value.generatePdf()\r\n}\r\n\r\nlet optionsPDF = {\r\n margin: 10,\r\n filename: \"reportRecomendations.pdf\"\r\n}\r\n\r\nconst route = useRoute();\r\n\r\nconst reportAnalysisItems = ref