{"version":3,"sources":["webpack:///./src/views/apps/tickets/TicketListing.vue?daa8","webpack:///./src/views/apps/tickets/TicketListing.vue?25e4","webpack:///./src/views/apps/tickets/TicketListing.vue","webpack:///./src/views/apps/tickets/TicketListing.vue?62ed"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","render","_ctx","_cache","$props","$setup","$data","$options","_component_InputText","_component_Column","_component_Calendar","_component_Button","_component_DataTable","_component_Dialog","_component_ExportCustomerModal","_component_AddCustomerModal","value","store","getters","allTicketes","paginator","rows","showGridlines","dataKey","rowHover","selection","selectedTickets","$event","filters","filters1","loading","paginatorTemplate","rowsPerPageOptions","currentPageReportTemplate","globalFilterFields","responsiveLayout","header","modelValue","placeholder","empty","default","field","sortable","style","body","data","numeroTicket","filter","filterModel","type","_","rutProveedor","filterMatchMode","contactoEmail","contactoNombre","contactoTelefono","dataType","formatDate","fechaTicket","dateFormat","tipo","respondido","exportable","slotProps","key","icon","onClick","editTicket","verTicket","visible","display","ticketActual","comentario","respuesta","fechaRespuesta","usuarioRespuesta","name","components","DataTable","Column","ExportCustomerModal","AddCustomerModal","router","methods","Date","toLocaleDateString","day","month","year","formatCurrency","toLocaleString","minimumFractionDigits","maximumFractionDigits","currency","setup","submitButton1","buscarTickets","buscador","proveedorId","currentUser","id","buscadorValidator","shape","ticket","push","params","ticketId","dispatch","GET_TICKETES","then","catch","Object","keys","getTicketErrors","global","matchMode","CONTAINS","__exports__"],"mappings":"2IAAA,W,2DCEMA,EAAe,SAAAC,GAAK,OAAC,yBAAa,mBAAmBA,EAAEA,IAAI,0BAAcA,GACzEC,EAAa,CAAEC,MAAO,QACtBC,EAA0B,+BAAmB,0lBAAinB,GAC9pBC,EAAa,CAAEF,MAAO,kBACtBG,EA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gB,WACpB/E,EACG0F,SAAS,OAAQC,cACjBC,MAAK,WACJ/E,EAAQd,OAAQ,KAEjB8F,OAAM,WACWC,OAAOC,KAAK/F,EAAMC,QAAQ+F,iBAAgB,OAM1D3C,GAHc,uBAAS,WAC3B,OAAOrD,EAAMC,QAAQiF,eAEP,kBAAI,IACdtE,EAAW,iBAAI,CACnBqF,OAAQ,CAAElG,MAAO,KAAMmG,UAAW,OAAgBC,YAG9C1F,GADS,iBAAI,MACK,iBAAI,OACtBI,EAAU,kBAAI,GACpB,MAAO,CACLD,SAAQ,EACRoE,SAAQ,EACRvE,gBAAe,EACfI,QAAO,EACPuE,kBAAiB,EACjBL,cAAa,EACbD,cAAa,EACb5B,WAAU,EACVC,UAAS,EACTG,aAAY,EACZD,QAAO,M,iCCtGb,MAAM+C,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpH,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-f9a1be8a.e57fb1ad.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../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-v16/dist/index.js??ref--1-1!./TicketListing.vue?vue&type=style&index=0&id=487c67e2&scoped=true&lang=css\"","import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createStaticVNode as _createStaticVNode, Fragment as _Fragment, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-487c67e2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"card\" }\nconst _hoisted_2 = /*#__PURE__*/_createStaticVNode(\"
Requerimientos
Selected
\", 1)\nconst _hoisted_3 = { class: \"card-body pt-0\" }\nconst _hoisted_4 = { class: \"flex justify-content-end\" }\nconst _hoisted_5 = { class: \"p-input-icon-left\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"i\", { class: \"pi pi-search\" }, null, -1))\nconst _hoisted_7 = { class: \"text-uppercase\" }\nconst _hoisted_8 = { class: \"card mb-5 mb-xl-10\" }\nconst _hoisted_9 = { class: \"card-body border-top p-9\" }\nconst _hoisted_10 = { class: \"row mb-6\" }\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"col-lg-12 col-form-label fw-bold fs-6\" }, \"Comentario\", -1))\nconst _hoisted_12 = { class: \"col-lg-12\" }\nconst _hoisted_13 = { class: \"row mb-6\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"col-lg-12 col-form-label fw-bold fs-6\" }, \"Respuesta\", -1))\nconst _hoisted_15 = { class: \"col-lg-12\" }\nconst _hoisted_16 = { class: \"row mb-6\" }\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"col-lg-12 col-form-label fw-bold fs-6\" }, \"Fecha Respuesta\", -1))\nconst _hoisted_18 = { class: \"col-lg-12 fv-row\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InputText = _resolveComponent(\"InputText\")!\n const _component_Column = _resolveComponent(\"Column\")!\n const _component_Calendar = _resolveComponent(\"Calendar\")!\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_DataTable = _resolveComponent(\"DataTable\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n const _component_ExportCustomerModal = _resolveComponent(\"ExportCustomerModal\")!\n const _component_AddCustomerModal = _resolveComponent(\"AddCustomerModal\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_DataTable, {\n value: _ctx.store.getters.allTicketes,\n paginator: true,\n rows: 10,\n showGridlines: \"\",\n dataKey: \"id\",\n rowHover: true,\n selection: _ctx.selectedTickets,\n \"onUpdate:selection\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.selectedTickets) = $event)),\n filters: _ctx.filters1,\n \"onUpdate:filters\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.filters1) = $event)),\n loading: _ctx.loading,\n paginatorTemplate: \"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown\",\n rowsPerPageOptions: [10, 25, 50],\n currentPageReportTemplate: \"Mostrando {first} a {last} de {totalRecords} registros\",\n globalFilterFields: [\n 'numeroTicket',\n 'rutProveedor',\n 'contactoEmail',\n 'contactoNombre',\n 'contactoTelefono',\n ],\n responsiveLayout: \"scroll\"\n }, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_InputText, {\n modelValue: _ctx.filters1['global'].value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.filters1['global'].value) = $event)),\n placeholder: \"Buscar\"\n }, null, 8, [\"modelValue\"])\n ])\n ])\n ]),\n empty: _withCtx(() => [\n _createTextVNode(\" No existen tickets. \")\n ]),\n loading: _withCtx(() => [\n _createTextVNode(\" Cargando tickets. Por favor espere. \")\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Column, {\n field: \"numeroTicket\",\n header: \"N Ticket\",\n sortable: \"\",\n style: {\"min-width\":\"8rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createTextVNode(_toDisplayString(data.numeroTicket), 1)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n class: \"p-column-filter\",\n placeholder: \"Search by name\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n field: \"rutProveedor\",\n header: \"Rut Proveedor\",\n sortable: \"\",\n style: {\"min-width\":\"12rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createTextVNode(_toDisplayString(data.rutProveedor), 1)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n class: \"p-column-filter\",\n placeholder: \"Search by name\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n field: \"contactoEmail\",\n header: \"Email\",\n sortable: \"\",\n filterMatchMode: \"contains\",\n style: {\"min-width\":\"14rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createTextVNode(_toDisplayString(data.contactoEmail), 1)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n class: \"p-column-filter\",\n placeholder: \"Search by country\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n field: \"contactoNombre\",\n header: \"Nombre Contacto\",\n sortable: \"\",\n filterMatchMode: \"contains\",\n style: {\"min-width\":\"18rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createTextVNode(_toDisplayString(data.contactoNombre), 1)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n class: \"p-column-filter\",\n placeholder: \"Search by country\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n field: \"contactoTelefono\",\n header: \"Teléfono Contacto\",\n sortable: \"\",\n filterMatchMode: \"contains\",\n style: {\"min-width\":\"14rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createTextVNode(_toDisplayString(data.contactoTelefono), 1)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n class: \"p-column-filter\",\n placeholder: \"Search by country\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n field: \"fechaTicket\",\n header: \"F. Solicitud\",\n sortable: \"\",\n dataType: \"date\",\n style: {\"min-width\":\"10rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createTextVNode(_toDisplayString(_ctx.formatDate(data.fechaTicket)), 1)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_Calendar, {\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n dateFormat: \"mm/dd/yy\",\n placeholder: \"mm/dd/yyyy\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n field: \"tipo\",\n header: \"Tipo Solicitud\",\n sortable: \"\",\n filterMatchMode: \"contains\",\n style: {\"min-width\":\"12rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createElementVNode(\"span\", _hoisted_7, _toDisplayString(data.tipo), 1)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n class: \"p-column-filter\",\n placeholder: \"Buscar por tipo\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n field: \"respondido\",\n header: \"Respondido\",\n sortable: \"\",\n filterMatchMode: \"contains\",\n style: {\"min-width\":\"14rem\"}\n }, {\n body: _withCtx(({ data }) => [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"image-text\", 'customer-badge status-' + data.respondido])\n }, _toDisplayString(data.respondido ? \"Respondido\" : \"Pendiente\"), 3)\n ]),\n filter: _withCtx(({ filterModel }) => [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: filterModel.value,\n \"onUpdate:modelValue\": ($event: any) => ((filterModel.value) = $event),\n class: \"p-column-filter\",\n placeholder: \"Search by country\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, {\n exportable: false,\n style: {\"min-width\":\"8rem\"}\n }, {\n body: _withCtx((slotProps) => [\n (!slotProps.data.respondido)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n icon: \"pi pi-pencil\",\n class: \"p-button-rounded p-button-success mr-2\",\n onClick: ($event: any) => (_ctx.editTicket(slotProps.data))\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (slotProps.data.respondido)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 1,\n icon: \"pi pi-eye\",\n class: \"p-button-rounded p-button-success mr-2\",\n onClick: ($event: any) => (_ctx.verTicket(slotProps.data))\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"value\", \"selection\", \"filters\", \"loading\"])\n ])\n ]),\n _createVNode(_component_Dialog, {\n header: \"Observaciones\",\n visible: _ctx.display,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.display) = $event))\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"div\", _hoisted_12, _toDisplayString(_ctx.ticketActual.comentario), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createElementVNode(\"div\", _hoisted_15, _toDisplayString(_ctx.ticketActual.respuesta), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _hoisted_17,\n _createElementVNode(\"div\", _hoisted_18, _toDisplayString(_ctx.formatDate(_ctx.ticketActual.fechaRespuesta)) + \" | \" + _toDisplayString(_ctx.ticketActual.usuarioRespuesta), 1)\n ])\n ])\n ])\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_ExportCustomerModal),\n _createVNode(_component_AddCustomerModal)\n ], 64))\n}","\nimport { ref, defineComponent, onMounted, computed } from \"vue\";\nimport { setCurrentPageBreadcrumbs } from \"@/core/helpers/breadcrumb\";\nimport DataTable from \"primevue/datatable\";\nimport Column from \"primevue/column\";\nimport _ from \"lodash\";\nimport { FilterMatchMode, FilterOperator } from \"primevue/api\";\nimport ExportCustomerModal from \"@/components/modals/forms/ExportCustomerModal.vue\";\nimport AddCustomerModal from \"@/components/modals/forms/AddCustomerModal.vue\";\nimport { Actions } from \"@/store/enums/StoreEnums\";\nimport { useStore } from \"vuex\";\nimport { useRouter } from \"vue-router\";\nimport * as Yup from \"yup\";\n\ninterface Buscador {\n estado?: number;\n factura?: number;\n empresaId?: number;\n fechaInicio?: Date;\n fechaTermino?: Date;\n proveedorId: number;\n}\n\nexport default defineComponent({\n name: \"kt-customer-list\",\n components: {\n DataTable,\n Column,\n ExportCustomerModal,\n AddCustomerModal,\n },\n data() {\n return {\n store: useStore(),\n router: useRouter(),\n };\n },\n methods: {\n formatDate(value) {\n value = new Date(value);\n return value.toLocaleDateString(\"es-ES\", {\n day: \"2-digit\",\n month: \"2-digit\",\n year: \"numeric\",\n });\n },\n formatCurrency(value) {\n return value.toLocaleString(\"es-CL\", {\n minimumFractionDigits: 0,\n maximumFractionDigits: 0,\n style: \"currency\",\n currency: \"CLP\",\n });\n },\n },\n setup() {\n const submitButton1 = ref(null);\n const store = useStore();\n const router = useRouter();\n const ticketActual = ref(null);\n onMounted(() => {\n setCurrentPageBreadcrumbs(\"Tickets\", [\"Página\", \"Dashboard\"]);\n buscarTickets();\n });\n const buscador = ref({\n proveedorId: store.getters.currentUser.id,\n });\n const buscadorValidator = Yup.object().shape({});\n const editTicket = (ticket) => {\n router.push({\n name: \"apps-tickets-details\",\n params: { id: ticket.ticketId },\n });\n };\n const verTicket = (data) => {\n ticketActual.value = data;\n display.value = true;\n };\n const buscarTickets = () => {\n store\n .dispatch(Actions.GET_TICKETES)\n .then(() => {\n loading.value = false;\n })\n .catch(() => {\n const [error] = Object.keys(store.getters.getTicketErrors);\n });\n };\n const currentUser = computed(() => {\n return store.getters.currentUser;\n });\n const display = ref(false);\n const filters1 = ref({\n global: { value: null, matchMode: FilterMatchMode.CONTAINS },\n });\n const search = ref(null);\n const selectedTickets = ref(null);\n const loading = ref(true);\n return {\n filters1,\n buscador,\n selectedTickets,\n loading,\n buscadorValidator,\n buscarTickets,\n submitButton1,\n editTicket,\n verTicket,\n ticketActual,\n display,\n };\n },\n});\n","import { render } from \"./TicketListing.vue?vue&type=template&id=487c67e2&scoped=true&ts=true\"\nimport script from \"./TicketListing.vue?vue&type=script&lang=ts\"\nexport * from \"./TicketListing.vue?vue&type=script&lang=ts\"\n\nimport \"./TicketListing.vue?vue&type=style&index=0&id=487c67e2&scoped=true&lang=css\"\n\nimport exportComponent from \"D:\\\\Proyectos\\\\Codebase\\\\Github\\\\Melon\\\\melon-web-proveedores\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-487c67e2\"]])\n\nexport default __exports__"],"sourceRoot":""}