{"version":3,"sources":["webpack:///./src/case/Status.vue","webpack:///src/case/Status.vue","webpack:///./src/case/Status.vue?7602","webpack:///./src/case/Status.vue?ac89","webpack:///./src/case/CaseSummaryTable.vue","webpack:///src/case/CaseSummaryTable.vue","webpack:///./src/case/CaseSummaryTable.vue?e8ee","webpack:///./src/case/CaseSummaryTable.vue?a9ff","webpack:///./src/case/priority/CasePriority.vue","webpack:///src/case/priority/CasePriority.vue","webpack:///./src/case/priority/CasePriority.vue?a173","webpack:///./src/case/priority/CasePriority.vue?ea94","webpack:///./src/case/CaseStatus.vue","webpack:///src/case/CaseStatus.vue","webpack:///./src/case/CaseStatus.vue?dacc","webpack:///./src/case/CaseStatus.vue?53e0","webpack:///./src/router/utils.js"],"names":["name","_c","staticClass","attrs","staticRenderFns","render","components","CaseSummaryTable","OrganizationBanner","data","items","loading","filters","status","created","RouterUtils","deserializeFilters","query","getActive","computed","mapFields","methods","error","filterOptions","sortBy","descending","itemsPerPage","SearchUtils","createParametersFromTableOptions","CaseApi","getAll","then","response","component","scopedSlots","_vm","item","key","fn","params","CasePriority","CaseStatus","headers","text","value","align","sortable","width","props","default","type","Array","String","Boolean","mapActions","handleRowClick","$emit","priority","required","id","Number","serializeFilters","flatFilters","forEach","has","startKey","endKey","start","end","each","push","parts","split","length","root","includes","updateURLFilters","router","replace","this"],"mappings":"mQAAuP,W,IAAyB,OAAkB,EAAC,W,OAAM,EAAC,qD,YAAM,mB,MAAEA,CAAkB,OAAC,QAAIC,MAAQ,gB,CAAS,gBAAM,C,YAAqC,CAAK,kBAAS,OAAI,oBAAiCC,OAAoBC,GAAM,CAAC,KAAO,e,CAA2C,SAAC,OAAIF,IAAG,6BAAUC,MAAW,KAAQC,OAAM,UAAU,oBAAE,YAAS,QAAmFA,MAAM,CAAC,MAAQ,gBAAE,IAAM,KAAC,gB,CAAoE,SAAS,C,YAAW,OAAG,OAAIF,KAAG,K,CAA+C,KAAO,kCAAU,uC,MAAC,CAAqB,WACv2B,+BACGG,2B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,CAAEtE,KAAM4C,IAE1BhC,EAAQyB,GAAO,CAAC,CAAErC,KAAM4C,IAI1ByB,kBAAKzB,GAAO,SAAUR,GAChB4B,iBAAIpD,EAASyB,GACfzB,EAAQyB,GAAKiC,KAAK,CAAEtE,KAAMoC,IAE1BxB,EAAQyB,GAAO,CAAC,CAAErC,KAAMoC,UAKzBxB,GAETgE,iBAAiBhE,GACfiE,OAAOC,QAAQ,CAAE7D,MAAO8D,KAAKlB,iBAAiBjD","file":"static/js/chunk-73179cd4.27c33756.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-app',[_c('v-main',[_c('organization-banner'),_c('v-app-bar',{staticClass:\"v-bar--underline\",attrs:{\"app\":\"\",\"flat\":\"\",\"color\":\"background0\"}},[_c('router-link',{staticStyle:{\"text-decoration\":\"none\",\"margin-top\":\"5px\"},attrs:{\"to\":{ name: 'CaseTable' }}},[_c('img',{attrs:{\"src\":\"/static/unstruct-robot.png\",\"width\":\"55\",\"height\":\"55\"}})]),_c('v-spacer'),_c('v-btn',{staticClass:\"mr-10\",attrs:{\"color\":\"warning--text\",\"to\":{ name: 'caseReport' }}},[_c('v-icon',{staticClass:\"mr-3\",attrs:{\"left\":\"\"}},[_vm._v(\" mdi-briefcase-plus-outline \")]),_vm._v(\" Create OCO \")],1)],1),_c('v-container',{attrs:{\"fluid\":\"\"}},[_c('v-row',[_c('v-col',[_c('v-card',{staticClass:\"mx-auto ma-4\",attrs:{\"flat\":\"\",\"outlined\":\"\"}},[_c('v-card-text',[_c('case-summary-table',{attrs:{\"items\":_vm.items,\"loading\":_vm.loading}})],1)],1)],1)],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\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!./Status.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!./Status.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Status.vue?vue&type=template&id=7478fc87\"\nimport script from \"./Status.vue?vue&type=script&lang=js\"\nexport * from \"./Status.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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.items,\"loading\":_vm.loading},on:{\"click:row\":_vm.handleRowClick},scopedSlots:_vm._u([{key:\"item.case_priority.name\",fn:function({ item }){return [_c('case-priority',{attrs:{\"priority\":item.case_priority.name}})]}},{key:\"item.status\",fn:function({ item }){return [_c('case-status',{attrs:{\"status\":item.status,\"id\":item.id}})]}},{key:\"item.project.name\",fn:function({ item }){return [_c('v-chip',{attrs:{\"small\":\"\",\"color\":item.project.color,\"text-color\":\"white\"}},[_vm._v(\" \"+_vm._s(item.project.name)+\" \")])]}},{key:\"item.reported_at\",fn:function({ item }){return [_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('span',_vm._g(_vm._b({},'span',attrs,false),on),[_vm._v(_vm._s(_vm._f(\"formatRelativeDate\")(item.reported_at)))])]}}],null,true)},[_c('span',[_vm._v(_vm._s(_vm._f(\"formatDate\")(item.reported_at)))])])]}},{key:\"item.data-table-actions\",fn:function({ item }){return [_c('v-menu',{attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on }){return [_c('v-btn',_vm._g({attrs:{\"icon\":\"\"}},on),[_c('v-icon',[_vm._v(\"mdi-dots-vertical\")])],1)]}}],null,true)},[_c('v-list',[_c('v-list-item',{attrs:{\"to\":{ name: 'CaseTableEdit', params: { name: item.name } }}},[_c('v-list-item-title',[_vm._v(\"View / Edit\")])],1)],1)],1)]}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\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!./CaseSummaryTable.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!./CaseSummaryTable.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CaseSummaryTable.vue?vue&type=template&id=509777ce\"\nimport script from \"./CaseSummaryTable.vue?vue&type=script&lang=js\"\nexport * from \"./CaseSummaryTable.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","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.priority == 'Low')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"success\"}},[_vm._v(\"mdi-flag-outline\")]),_vm._v(\" \"+_vm._s(_vm.priority)+\" \")],1)],1):(_vm.priority == 'Medium')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"warning\"}},[_vm._v(\"mdi-flag-outline\")]),_vm._v(\" \"+_vm._s(_vm.priority)+\" \")],1)],1):(_vm.priority == 'High')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"error\"}},[_vm._v(\"mdi-flag-outline\")]),_vm._v(\" \"+_vm._s(_vm.priority)+\" \")],1)],1):(_vm.priority == 'Critical')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"purple\"}},[_vm._v(\"mdi-flag-outline\")]),_vm._v(\" \"+_vm._s(_vm.priority)+\" \")],1)],1):_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"grey\"}},[_vm._v(\"mdi-flag-outline\")]),_vm._v(\" \"+_vm._s(_vm.priority)+\" \")],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\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!./CasePriority.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!./CasePriority.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CasePriority.vue?vue&type=template&id=634d390a\"\nimport script from \"./CasePriority.vue?vue&type=script&lang=js\"\nexport * from \"./CasePriority.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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.status == 'New')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"error\"}},[_vm._v(\"mdi-alert-circle\")]),_vm._v(\" \"+_vm._s(_vm.status)+\" \")],1)],1):_vm._e(),(_vm.status == 'Triage')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"warning\"}},[_vm._v(\"mdi-account-search\")]),_vm._v(\" \"+_vm._s(_vm.status)+\" \")],1)],1):_vm._e(),(_vm.status == 'Escalated')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"primary\"}},[_vm._v(\"mdi-arrow-up\")]),_vm._v(\" \"+_vm._s(_vm.status)+\" \")],1)],1):_vm._e(),(_vm.status == 'Closed')?_c('div',[_c('v-chip',{staticClass:\"ma-2\",attrs:{\"small\":\"\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"success\"}},[_vm._v(\"mdi-lock\")]),_vm._v(\" \"+_vm._s(_vm.status)+\" \")],1)],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\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!./CaseStatus.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!./CaseStatus.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CaseStatus.vue?vue&type=template&id=d7f5e640\"\nimport script from \"./CaseStatus.vue?vue&type=script&lang=js\"\nexport * from \"./CaseStatus.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","import { forEach, each, has } from \"lodash\"\n\nimport router from \"@/router\"\n\nexport default {\n serializeFilters(filters) {\n let flatFilters = {}\n forEach(filters, function (value, key) {\n // handle filter windows\n // check for boolean, KJ.\n if (typeof value === \"boolean\") {\n flatFilters[key] = value\n return\n }\n if (has(value, \"start\")) {\n let startKey = `${key}.start`\n let endKey = `${key}.end`\n flatFilters = { ...flatFilters, ...{ [startKey]: value.start, [endKey]: value.end } }\n return\n }\n each(value, function (item) {\n if (has(flatFilters, key)) {\n if (typeof item === \"string\" || item instanceof String) {\n flatFilters[key].push(item)\n } else {\n flatFilters[key].push(item.name)\n }\n } else {\n if (typeof item === \"string\" || item instanceof String) {\n flatFilters[key] = [item]\n } else {\n flatFilters[key] = [item.name]\n }\n }\n })\n })\n return flatFilters\n },\n deserializeFilters(query) {\n let filters = {}\n forEach(query, function (value, key) {\n // If the key contains a dot (e.g., \"created_at.start\" or \"created_at.end\"), it is processed as a filter window for date ranges.\n let parts = key.split(\".\")\n\n if (parts.length > 1) {\n let root = parts[0]\n if (!filters[root]) {\n filters[root] = { start: null, end: null }\n }\n\n if (key.includes(\"start\")) {\n filters[root][\"start\"] = value\n }\n\n if (key.includes(\"end\")) {\n filters[root][\"end\"] = value\n }\n return\n }\n // If the key is in the list of specific keys (e.g., \"status\" or \"handshake_completed\") and the value is a\n // string representation of a boolean (\"true\" or \"false\"), it is processed as a boolean filter.\n // or if the value is an array of strings, it is processed as a filter with string values.\n if ([\"status\", \"handshake_completed\"].includes(key)) {\n if (value === \"true\" || value === \"false\") {\n filters[key] = value === \"true\"\n }\n else {\n if (typeof value === \"string\" || value instanceof String) {\n if (has(filters, key)) {\n filters[key].push(value)\n } else {\n filters[key] = [value]\n }\n } else {\n each(value, function (item) {\n if (has(filters, key)) {\n filters[key].push(item)\n } else {\n filters[key] = [item]\n }\n })\n }\n }\n return\n }\n // If the value is a string or an instannce of a string, it is processed as a filter with a string value.\n if (typeof value === \"string\" || value instanceof String) {\n if (has(filters, key)) {\n filters[key].push({ name: value })\n } else {\n filters[key] = [{ name: value }]\n }\n } else {\n // If the value is an array, it is processed as a filter with string values.\n each(value, function (item) {\n if (has(filters, key)) {\n filters[key].push({ name: item })\n } else {\n filters[key] = [{ name: item }]\n }\n })\n }\n })\n return filters\n },\n updateURLFilters(filters) {\n router.replace({ query: this.serializeFilters(filters) })\n },\n}\n"],"sourceRoot":""}