{"version":3,"sources":["webpack:///./src/views/laborForce/LaborPartByState.vue?792a","webpack:///./src/views/laborForce/LaborPartByState.vue","webpack:///./src/views/laborForce/LaborPartByState.vue?dfaf"],"names":["_hoisted_1","class","render","_ctx","_cache","$props","$setup","$data","$options","_component_Spinner","_component_MetricTitle","_component_Map","_component_Legend","_component_MetricSource","_component_SectionTitle","_component_MetricStat","_component_MetricHighlight","_component_MetricGrid","data","length","key","title","metric","chart","metricData","dataProp","color","series","href","sourceUrl","summaryTitle","metricStats","label","value","rank","content","highlight","_","summaryDate","Date","active","greenSeries","components","Spinner","MetricGrid","MetricTitle","SectionTitle","MetricStat","MetricSource","MetricHighlight","Map","Legend","methods","debug","e","console","log","this","beforeMount","topic","router","currentRoute","name","lastItem","month","__exports__"],"mappings":"yIAEMA,EAAa,CAAEC,MAAO,OAEtB,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAqB,eAAkB,WACvCC,EAAyB,eAAkB,eAC3CC,EAAiB,eAAkB,OACnCC,EAAoB,eAAkB,UACtCC,EAA0B,eAAkB,gBAC5CC,EAA0B,eAAkB,gBAC5CC,EAAwB,eAAkB,cAC1CC,EAA6B,eAAkB,mBAC/CC,EAAwB,eAAkB,cAEhD,OAA4B,GAApBd,EAAKe,KAAKC,QACb,iBAAc,eAAaV,EAAoB,CAAEW,IAAK,MACtD,iBAAc,eAAaH,EAAuB,CAAEG,IAAK,GAAK,CAC7D,eAAgB,gBAAS,iBAAM,CAC7B,eAAaV,EAAwB,CACnCW,MAAOlB,EAAKmB,OAAOA,QAClB,KAAM,EAAG,CAAC,cAEfC,MAAO,gBAAS,iBAAM,CACpB,eAAaZ,EAAgB,CAC3Ba,WAAYrB,EAAKe,KACjBO,SAAUtB,EAAKsB,SACfC,MAAO,SACN,KAAM,EAAG,CAAC,aAAc,aAC3B,eAAad,EAAmB,CAC9Be,OAAQxB,EAAKwB,OACbT,KAAMf,EAAKe,KACXO,SAAUtB,E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pDnB,MAAM+C,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS/D,KAErD","file":"js/chunk-2d0bab1a.b5a407df.js","sourcesContent":["import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { class: \"col\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Spinner = _resolveComponent(\"Spinner\")!\n const _component_MetricTitle = _resolveComponent(\"MetricTitle\")!\n const _component_Map = _resolveComponent(\"Map\")!\n const _component_Legend = _resolveComponent(\"Legend\")!\n const _component_MetricSource = _resolveComponent(\"MetricSource\")!\n const _component_SectionTitle = _resolveComponent(\"SectionTitle\")!\n const _component_MetricStat = _resolveComponent(\"MetricStat\")!\n const _component_MetricHighlight = _resolveComponent(\"MetricHighlight\")!\n const _component_MetricGrid = _resolveComponent(\"MetricGrid\")!\n\n return (_ctx.data.length == 0)\n ? (_openBlock(), _createBlock(_component_Spinner, { key: 0 }))\n : (_openBlock(), _createBlock(_component_MetricGrid, { key: 1 }, {\n \"metric-title\": _withCtx(() => [\n _createVNode(_component_MetricTitle, {\n title: _ctx.metric.metric\n }, null, 8, [\"title\"])\n ]),\n chart: _withCtx(() => [\n _createVNode(_component_Map, {\n metricData: _ctx.data,\n dataProp: _ctx.dataProp,\n color: \"green\"\n }, null, 8, [\"metricData\", \"dataProp\"]),\n _createVNode(_component_Legend, {\n series: _ctx.series,\n data: _ctx.data,\n dataProp: _ctx.dataProp\n }, null, 8, [\"series\", \"data\", \"dataProp\"]),\n _createVNode(_component_MetricSource, {\n metric: _ctx.metric,\n href: _ctx.sourceUrl()\n }, null, 8, [\"metric\", \"href\"])\n ]),\n summaryTitle: _withCtx(() => [\n _createVNode(_component_SectionTitle, {\n title: _ctx.summaryTitle()\n }, null, 8, [\"title\"])\n ]),\n metricStats: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_MetricStat, {\n label: \"Rank\",\n value: _ctx.rank\n }, null, 8, [\"value\"])\n ])\n ]),\n \"metric-highlight\": _withCtx(() => [\n _createVNode(_component_MetricHighlight, { content: _ctx.highlight }, null, 8, [\"content\"])\n ]),\n _: 1\n }))\n}","\r\nimport { defineComponent } from \"vue\";\r\nimport router from \"@/router\";\r\nimport {\r\n GetMetricData,\r\n GetMetric,\r\n SummaryTitleByMonth,\r\n GetHighlight,\r\n SourceURL,\r\n GetDateFromMonthYear,\r\n} from \"@/utils\";\r\nimport Spinner from \"@/components/Spinner.vue\";\r\nimport MetricGrid from \"@/components/MetricGrid.vue\";\r\nimport MetricTitle from \"@/components/MetricTitle.vue\";\r\nimport SectionTitle from \"@/components/SectionTitle.vue\";\r\nimport MetricStat from \"@/components/MetricStat.vue\";\r\nimport MetricSource from \"@/components/MetricSource.vue\";\r\nimport MetricHighlight from \"@/components/MetricHighlight.vue\";\r\nimport Map from \"@/components/Map/Map.vue\";\r\nimport greenSeries from \"@/data/greenSeries\";\r\nimport Legend from \"@/components/Map/Legend.vue\";\r\n\r\nexport default defineComponent({\r\n data() {\r\n return {\r\n data: [],\r\n metric: {},\r\n summaryDate: new Date(),\r\n highlight: \"\",\r\n active: true,\r\n rank: \"\",\r\n dataProp: \"labor_force_participation_rate\",\r\n series: greenSeries,\r\n };\r\n },\r\n components: {\r\n Spinner,\r\n MetricGrid,\r\n MetricTitle,\r\n SectionTitle,\r\n MetricStat,\r\n MetricSource,\r\n MetricHighlight,\r\n Map,\r\n Legend,\r\n },\r\n methods: {\r\n debug(e: any) {\r\n console.log(\"debug\", e);\r\n },\r\n summaryTitle() {\r\n return SummaryTitleByMonth(this.summaryDate);\r\n },\r\n sourceUrl() {\r\n return SourceURL(this.metric);\r\n },\r\n },\r\n async beforeMount() {\r\n const topic = router.currentRoute.value.name; // Get which metric by the route\r\n this.data = await GetMetricData(topic); // Get raw data from Socrata\r\n this.metric = GetMetric(topic); // Get metric configuration\r\n\r\n // Get summary data and hightlights\r\n const lastItem: any = this.data[this.data.length - 1];\r\n this.summaryDate = GetDateFromMonthYear(lastItem.month);\r\n this.rank = lastItem.rank;\r\n this.highlight = GetHighlight(this.data);\r\n },\r\n});\r\n","import { render } from \"./LaborPartByState.vue?vue&type=template&id=4c819323&ts=true\"\nimport script from \"./LaborPartByState.vue?vue&type=script&lang=ts\"\nexport * from \"./LaborPartByState.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"D:\\\\a\\\\1\\\\s\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}