{"version":3,"sources":["webpack:///./node_modules/dayjs/plugin/utc.js","webpack:///./node_modules/core-js/modules/es.array.reduce.js","webpack:///./src/components/dashboard/DashboardUpcoming.vue?a357","webpack:///./src/components/dashboard/DashboardSale.vue?c2c5","webpack:///./node_modules/@j-t-mcc/vue3-chartjs/dist/vue3-chartjs.es.js","webpack:///./src/components/dashboard/DashboardSale.vue","webpack:///./src/components/dashboard/DashboardSale.vue?562d","webpack:///./src/helpers/transformation/number.ts","webpack:///./node_modules/core-js/internals/engine-is-node.js","webpack:///./src/views/DashboardView.vue?51aa","webpack:///./src/views/DashboardView.vue","webpack:///./src/views/DashboardView.vue?0098","webpack:///./src/components/dashboard/DashboardLots.vue?4928","webpack:///./src/components/dashboard/DashboardUpcoming.vue?aa49","webpack:///./src/components/dashboard/DashboardUpcoming.vue","webpack:///./src/components/dashboard/DashboardUpcoming.vue?36f1","webpack:///./node_modules/vue-demi/lib/index.mjs","webpack:///./src/components/dashboard/DashboardActivity.vue?7cb0","webpack:///./src/components/dashboard/DashboardActivity.vue","webpack:///./src/components/dashboard/DashboardActivity.vue?7ab8","webpack:///./node_modules/core-js/internals/array-method-is-strict.js","webpack:///./src/components/dashboard/DashboardLots.vue?56b8","webpack:///./src/components/dashboard/DashboardLots.vue","webpack:///./src/components/dashboard/DashboardLots.vue?7182","webpack:///./src/assets/images/dashboard-mockup-1.png","webpack:///./src/components/dashboard/DashboardSale.vue?2f48","webpack:///./src/assets/images/dashboard-mockup-2.png","webpack:///./node_modules/core-js/internals/array-reduce.js","webpack:///./src/components/dashboard/DashboardActivity.vue?f5c8","webpack:///./src/views/DashboardView.vue?7783"],"names":["t","i","module","exports","this","e","s","f","n","u","prototype","utc","date","args","arguments","toDate","locale","$L","add","utcOffset","local","o","parse","$u","$utils","$offset","call","r","init","$d","$y","getUTCFullYear","$M","getUTCMonth","$D","getUTCDate","$W","getUTCDay","$H","getUTCHours","$m","getUTCMinutes","$s","getUTCSeconds","$ms","getUTCMilliseconds","a","match","Math","abs","getTimezoneOffset","$x","$localOffset","h","format","valueOf","isUTC","toISOString","toString","toUTCString","l","c","diff","$","$reduce","left","arrayMethodIsStrict","CHROME_VERSION","IS_NODE","CHROME_BUG","FORCED","target","proto","forced","reduce","callbackfn","length","undefined","_withScopeId","_pushScopeId","_popScopeId","_hoisted_1","_createElementVNode","class","_hoisted_2","_hoisted_3","render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_toDisplayString","getTotalSale","_createVNode","id","lineChart","type","data","options","ref","__defProp","Object","defineProperty","__getOwnPropSymbols","getOwnPropertySymbols","__hasOwnProp","hasOwnProperty","__propIsEnum","propertyIsEnumerable","__defNormalProp","obj","key","value","enumerable","configurable","writable","__spreadValues","b","prop","chartJsEventNames","generateEventObject","chartRef","_defaultPrevented","generateChartJsEventListener","emit","event","isDefaultPrevented","register","Vue3ChartJs","name","props","String","required","height","Number","default","width","plugins","Array","emits","chartJsEventsPlugin","reduced","eventType","chartJSState","chart","destroy","update","animateSpeed","resize","getContext","_sfc_main","registerGlobalPlugins","install","app","_a","component","barItemColor","barItemColorActive","_defineComponent","__name","setup","__props","expose","__expose","labels","datasets","backgroundColor","hoverBackgroundColor","borderWidth","onHover","item","colors","config","color","forEach","index","animation","y","duration","easing","borderRadius","maintainAspectRatio","legend","display","tooltip","enabled","external","context","tooltipEl","document","getElementById","createElement","innerHTML","body","appendChild","tooltipModel","opacity","style","getBody","bodyItem","lines","titleLines","title","bodyLines","map","innerHtml","stringWithSpacesToNumber","replace","numFormatter","tableRoot","querySelector","position","canvas","getBoundingClientRect","classList","assign","background","border","padding","window","pageXOffset","caretX","top","pageYOffset","caretY","pointerEvents","transition","fontWeight","textAlign","transform","layout","right","bottom","scales","xAxes","grid","drawBorder","ticks","font","weight","yAxes","borderDash","lineWidth","drawTicks","fontSize","fontFamily","lineHeight","min","callback","computed","result","count","acc","updatedData","newArray","dates","values","nextTick","updateChart","watch","newValue","immediate","deep","__returned__","Chart","ChartItem","TooltipItem","__exports__","cov_19nrcifk0p","actualCoverage","num","toFixed","parseStringToNumber","process","classof","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","helloWords","clock","hardcodedDashboard","src","alt","statusCounts","lotsByMonth","upcomingArray","upcoming","actions","recentActivity","bottomSpace","dayjs","extend","estateId","store","state","user","selectedEstateId","_store$state$user","_store$state$user$dat","firstName","require","getInfo","getDashboardStatuses","getDashboardLotsByMonth","getDahboardUpcoming","getRecentActivity","onMounted","interval","setInterval","dispatch","then","res","lots","day","tmpObject","_value$","filter","year","month","unshift","monthlyRevenue","subtract","onBeforeUnmount","clearInterval","time","Date","getHours","DashboardLots","DashboardSale","DashboardUpcoming","DashboardActivity","LotActionInterface","_Fragment","_renderList","_createTextVNode","actionText","action","onClick","$event","actionRouting","stageId","lotId","lotTitle","text","endsWith","slice","router","push","params","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_component_router_link","_resolveComponent","getChangedActions","filterActions","changedParams","field","previousLotStatus","newLotStatus","LotStatus","AVAILABLE","to","_withCtx","_","_normalizeClass","getLotStatusClass","EOI","PRE_CONTRACT","formatDate","createdAt","applicantDetails","customerId","lastName","eoiId","fields","allowedFields","includes","LotInterface","fails","METHOD_NAME","argument","method","sumProgressItems","hidden","list","_normalizeStyle","getProgressItemWidth","defaultObject","Available","Unconditional","Settled","Option","Offline","keys","sum","parseFloat","setLotStatusCount","status","statusKey","JSON","stringify","CounterStatusItem","aCallable","toObject","IndexedObject","lengthOfArrayLike","$TypeError","TypeError","createMethod","IS_RIGHT","that","argumentsLength","memo","O","self"],"mappings":"qGAAC,SAASA,EAAEC,GAAwDC,EAAOC,QAAQF,IAAlF,CAAkNG,GAAK,WAAY,aAAa,IAAIJ,EAAE,SAASC,EAAE,uBAAuBI,EAAE,eAAe,OAAO,SAASC,EAAEC,EAAEC,GAAG,IAAIC,EAAEF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GAAa,GAGnB7L,MAAO6L,GAAa,K,gFCxCtB,W,kCCAA","file":"js/DashboardView.a5c39f66.js","sourcesContent":["!function(t,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs_plugin_utc=i()}(this,(function(){\"use strict\";var t=\"minute\",i=/[+-]\\d\\d(?::?\\d\\d)?/g,e=/([+-]|\\d\\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else r.call(this)};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if(\"string\"==typeof s&&(s=function(t){void 0===t&&(t=\"\");var s=t.match(i);if(!s)return null;var f=(\"\"+s[0]).match(e)||[\"-\",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:\"+\"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?\"YYYY-MM-DDTHH:mm:ss[Z]\":\"\");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return\"s\"===t&&this.$offset?n(this.format(\"YYYY-MM-DD HH:mm:ss:SSS\")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)}}}));","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./DashboardUpcoming.vue?vue&type=style&index=0&id=1ed70f8f&lang=scss&scoped=true\"","import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-01fb5545\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title\" }, \"Total settled\", -1))\nconst _hoisted_2 = { class: \"count-total\" }\nconst _hoisted_3 = { class: \"bar-chart--wrapper\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _hoisted_1,\n _createElementVNode(\"div\", _hoisted_2, \"$\" + _toDisplayString($setup.getTotalSale), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode($setup[\"Vue3ChartJs\"], {\n id: $setup.lineChart.id,\n type: $setup.lineChart.type,\n data: $setup.lineChart.data,\n options: $setup.lineChart.options,\n ref: \"chartRef\"\n }, null, 8, [\"id\", \"type\", \"data\", \"options\"])\n ])\n ]))\n}","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport { defineComponent, ref, onMounted, h } from \"vue\";\nimport { registerables, Chart } from \"chart.js\";\nconst chartJsEventNames = [\n \"install\",\n \"start\",\n \"stop\",\n \"beforeInit\",\n \"afterInit\",\n \"beforeUpdate\",\n \"afterUpdate\",\n \"beforeElementsUpdate\",\n \"reset\",\n \"beforeDatasetsUpdate\",\n \"afterDatasetsUpdate\",\n \"beforeDatasetUpdate\",\n \"afterDatasetUpdate\",\n \"beforeLayout\",\n \"afterLayout\",\n \"afterLayout\",\n \"beforeRender\",\n \"afterRender\",\n \"resize\",\n \"destroy\",\n \"uninstall\",\n \"afterTooltipDraw\",\n \"beforeTooltipDraw\"\n];\nfunction generateEventObject(type, chartRef = null) {\n return {\n type,\n chartRef,\n preventDefault() {\n this._defaultPrevented = true;\n },\n isDefaultPrevented() {\n return !this._defaultPrevented;\n },\n _defaultPrevented: false\n };\n}\nfunction generateChartJsEventListener(emit, event) {\n return {\n [event.type]: () => {\n emit(event.type, event);\n return event.isDefaultPrevented();\n }\n };\n}\nif (registerables !== void 0) {\n Chart.register(...registerables);\n}\nconst Vue3ChartJs = defineComponent({\n name: \"Vue3ChartJs\",\n props: {\n type: {\n type: String,\n required: true\n },\n height: {\n type: Number,\n required: false,\n default: null\n },\n width: {\n type: Number,\n required: false,\n default: null\n },\n data: {\n type: Object,\n required: true\n },\n options: {\n type: Object,\n default: () => ({})\n },\n plugins: {\n type: Array,\n default: () => []\n }\n },\n emits: chartJsEventNames,\n setup(props, { emit }) {\n const chartRef = ref(null);\n const chartJsEventsPlugin = chartJsEventNames.reduce((reduced, eventType) => {\n const event = generateEventObject(eventType, chartRef);\n return __spreadValues(__spreadValues({}, reduced), generateChartJsEventListener(emit, event));\n }, { id: \"Vue3ChartJsEventHookPlugin\" });\n const chartJSState = {\n chart: null,\n plugins: [\n chartJsEventsPlugin,\n ...props.plugins\n ],\n props: __spreadValues({}, props)\n };\n const destroy = () => {\n if (chartJSState.chart) {\n chartJSState.chart.destroy();\n chartJSState.chart = null;\n }\n };\n const update = (animateSpeed = 750) => {\n chartJSState.chart.data = __spreadValues(__spreadValues({}, chartJSState.chart.data), chartJSState.props.data);\n chartJSState.chart.options = __spreadValues(__spreadValues({}, chartJSState.chart.options), chartJSState.props.options);\n chartJSState.chart.update(animateSpeed);\n };\n const resize = () => chartJSState.chart && chartJSState.chart.resize();\n const render = () => {\n if (chartJSState.chart) {\n return chartJSState.chart.update();\n }\n return chartJSState.chart = new Chart(chartRef.value.getContext(\"2d\"), {\n type: chartJSState.props.type,\n data: chartJSState.props.data,\n options: chartJSState.props.options,\n plugins: chartJSState.plugins\n });\n };\n onMounted(() => render());\n return {\n chartJSState,\n chartRef,\n render,\n resize,\n update,\n destroy\n };\n },\n render(props) {\n return h(\"canvas\", {\n ref: \"chartRef\",\n height: props.height,\n width: props.width\n });\n }\n});\nconst _sfc_main = Vue3ChartJs;\n_sfc_main.registerGlobalPlugins = (plugins) => {\n Chart.register(...plugins);\n};\n_sfc_main.install = (app, options = {}) => {\n var _a;\n app.component(_sfc_main.name, _sfc_main);\n if ((_a = options == null ? void 0 : options.plugins) == null ? void 0 : _a.length) {\n _sfc_main.registerGlobalPlugins(options.plugins);\n }\n};\nexport { _sfc_main as default };\n","import { defineComponent as _defineComponent } from 'vue'\nimport Vue3ChartJs from \"@j-t-mcc/vue3-chartjs\";\nimport { Chart, ChartItem, TooltipItem } from \"chart.js\";\nimport { computed, nextTick, ref, watch } from \"vue\";\nimport { numFormatter } from \"@/helpers/transformation/number\";\n\nconst barItemColor = \"#8ED6F1\";\nconst barItemColorActive = \"#49C1EE\";\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DashboardSale',\n props: {\n data: {\n type: Object,\n default: () => {\n return {};\n },\n required: true,\n },\n},\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst props = __props;\n\n\n\nconst chartRef = ref(null as unknown as Chart);\n\nconst lineChart = ref({\n id: \"bar\",\n type: \"bar\",\n data: {\n labels: [\"\"],\n datasets: [\n {\n data: [0],\n backgroundColor: [barItemColorActive],\n hoverBackgroundColor: barItemColorActive,\n borderWidth: 0,\n },\n ],\n },\n options: {\n onHover: function (e, item: ChartItem[]) {\n let colors = e.chart.config.data.datasets[0].backgroundColor;\n let color = item.length ? barItemColor : barItemColorActive;\n colors.forEach((item: string, index: number) => {\n colors[index] = color;\n });\n e.chart.update();\n },\n animation: {\n y: {\n duration: 300,\n easing: \"linear\",\n },\n },\n borderRadius: 3,\n maintainAspectRatio: false,\n plugins: {\n legend: {\n display: false,\n },\n tooltip: {\n // Disable the on-canvas tooltip\n enabled: false,\n external: function (context) {\n // Tooltip Element\n let tooltipEl = document.getElementById(\"chartjs-tooltip\");\n\n // Create element on first render\n if (!tooltipEl) {\n tooltipEl = document.createElement(\"div\");\n tooltipEl.id = \"chartjs-tooltip\";\n tooltipEl.innerHTML = \"
\";\n document.body.appendChild(tooltipEl);\n }\n\n // Hide if no tooltip\n const tooltipModel = context.tooltip;\n if (tooltipModel.opacity === 0) {\n tooltipEl.style.opacity = \"0\";\n return;\n }\n\n function getBody(bodyItem) {\n return bodyItem.lines;\n }\n\n // Set Text\n if (tooltipModel.body) {\n const titleLines = tooltipModel.title || [];\n const bodyLines = tooltipModel.body.map(getBody);\n\n let innerHtml = \"
\";\n titleLines.forEach(function (title) {\n innerHtml +=\n '
' + title + \"
\";\n });\n bodyLines.forEach(function (body: string[]) {\n const stringWithSpacesToNumber = Number(\n body[0].replace(/\\s/g, \"\").replace(/,/g, \"\")\n );\n innerHtml +=\n \"\" +\n \"$\" +\n numFormatter(stringWithSpacesToNumber) +\n \"\";\n });\n innerHtml += \"
\";\n\n let tableRoot = tooltipEl.querySelector(\"div\");\n if (tableRoot) {\n tableRoot.innerHTML = innerHtml;\n }\n }\n\n const position = context.chart.canvas.getBoundingClientRect();\n\n tooltipEl.classList.add(\"chart-tooltip-triangle\");\n Object.assign(tooltipEl.style, {\n background: \"white\",\n border: \"1px solid #EBEBF4\",\n borderRadius: \"5px\",\n opacity: \"1\",\n position: \"absolute\",\n padding: \"9px 22px\",\n left:\n position.left + window.pageXOffset + tooltipModel.caretX + \"px\",\n top: position.top + window.pageYOffset + tooltipModel.caretY + \"px\",\n pointerEvents: \"none\",\n transition: \"0.2s\",\n fontWeight: 700,\n textAlign: \"center\",\n transform: \"translate(-50%, calc(-100% - 15px))\",\n });\n },\n },\n },\n layout: {\n padding: {\n top: 0,\n right: 0,\n left: -22,\n bottom: 0,\n },\n },\n scales: {\n xAxes: {\n grid: {\n display: false,\n drawBorder: false,\n },\n ticks: {\n color: \"#7171a2\",\n font: {\n weight: \"600\",\n },\n },\n },\n yAxes: {\n grid: {\n display: true,\n color: \"#e7e7e7\",\n borderDash: [3, 3],\n lineWidth: 1,\n drawBorder: false,\n drawTicks: false,\n },\n ticks: {\n fontSize: 10,\n fontFamily: \"Inter\",\n lineHeight: \"20px\",\n padding: 22,\n color: \"#b5b5c3\",\n min: 1000,\n callback: function (value: number) {\n if (value > 0) {\n return \"$\" + numFormatter(value);\n } else return 0;\n },\n },\n },\n },\n },\n});\nconst getTotalSale = computed(() => {\n let result = lineChart.value.data.datasets[0].data;\n let count = 0;\n if (result) {\n count = result.reduce((acc, item) => {\n return acc + item;\n }, 0);\n return numFormatter(count);\n } else return \"0\";\n});\n\nwatch(\n () => props.data,\n (newValue) => {\n updatedData(newValue);\n },\n { immediate: true, deep: true }\n);\n\nfunction updatedData(data: any) {\n const newArray = { ...data };\n lineChart.value.data.labels = newArray.dates;\n lineChart.value.data.datasets[0].data = newArray.values;\n nextTick(() => updateChart());\n}\n\nfunction updateChart() {\n chartRef.value.update();\n}\n\nconst __returned__ = { props, chartRef, barItemColor, barItemColorActive, lineChart, getTotalSale, updatedData, updateChart, get Vue3ChartJs() { return Vue3ChartJs }, get Chart() { return Chart }, get ChartItem() { return ChartItem }, get TooltipItem() { return TooltipItem }, computed, nextTick, ref, watch, get numFormatter() { return numFormatter } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./DashboardSale.vue?vue&type=template&id=01fb5545&scoped=true&ts=true&lang=pug\"\nimport script from \"./DashboardSale.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DashboardSale.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DashboardSale.vue?vue&type=style&index=0&id=01fb5545&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-01fb5545\"]])\n\nexport default __exports__","export function numFormatter(num: number): string {\n if (num > 999 && num < 1000000) {\n return (num / 1000).toFixed(0) + \"K\";\n } else if (num >= 1000000) {\n return (num / 1000000).toFixed(1) + \"M\";\n } else return String(num);\n}\n\nexport const parseStringToNumber = (value: string | number): number => {\n if (!value) return 0;\n if (typeof value !== \"string\") return value;\n return Number(value.replace(/\\D/g, \"\"));\n};\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-f824ea48\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"dashboard-wr\" }\nconst _hoisted_2 = { class: \"dashboard-header\" }\nconst _hoisted_3 = { class: \"title-main\" }\nconst _hoisted_4 = { class: \"subtitle-main\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"dashboard-container\"\n}\nconst _hoisted_6 = { class: \"dashboard-container-column\" }\nconst _hoisted_7 = { class: \"card card-dashboard dashboard-wrapper-lots\" }\nconst _hoisted_8 = { class: \"card card-dashboard dashboard-wrapper-chart\" }\nconst _hoisted_9 = { class: \"dashboard-container-column\" }\nconst _hoisted_10 = { class: \"card card-dashboard dashboard-wrapper-upcoming\" }\nconst _hoisted_11 = { class: \"card card-dashboard dashboard-wrapper-upcoming-activity\" }\nconst _hoisted_12 = [\"src\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"h2\", _hoisted_3, _toDisplayString($setup.helloWords) + \", \" + _toDisplayString($setup.name), 1),\n _createElementVNode(\"h3\", _hoisted_4, \"The time is \" + _toDisplayString($setup.clock), 1)\n ]),\n (!$setup.hardcodedDashboard)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode($setup[\"DashboardLots\"], { statusCounts: $setup.statusCounts }, null, 8, [\"statusCounts\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode($setup[\"DashboardSale\"], { data: $setup.lotsByMonth }, null, 8, [\"data\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode($setup[\"DashboardUpcoming\"], { upcomingArray: $setup.upcoming }, null, 8, [\"upcomingArray\"])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createVNode($setup[\"DashboardActivity\"], { actions: $setup.recentActivity }, null, 8, [\"actions\"])\n ])\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"img\", {\n key: 1,\n class: \"hardcoded-dashboard\",\n src: $setup.hardcodedDashboard,\n alt: \"Dashboard\"\n }, null, 8, _hoisted_12))\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport DashboardLots from \"@/components/dashboard/DashboardLots.vue\";\nimport DashboardSale from \"@/components/dashboard/DashboardSale.vue\";\nimport DashboardUpcoming from \"@/components/dashboard/DashboardUpcoming.vue\";\nimport DashboardActivity from \"@/components/dashboard/DashboardActivity.vue\";\nimport { onMounted } from \"vue-demi\";\nimport store from \"@/store\";\nimport { computed, onBeforeUnmount, ref, watch } from \"vue\";\nimport dayjs from \"dayjs\";\nimport { LotActionInterface } from \"@/types/LotActionInterface\";\nimport utc from \"dayjs/plugin/utc\";\n\nconst bottomSpace = 40;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DashboardView',\n setup(__props, { expose: __expose }) {\n __expose();\n\ndayjs.extend(utc);\n\nconst estateId = computed(() => store.state.user.selectedEstateId);\nconst name = computed(() => store.state.user?.data?.firstName);\nconst hardcodedDashboard = computed(() => {\n if (store.state.user.selectedEstateId === \"629d7a743f3dddb9b803adc2\") {\n return require(\"@/assets/images/dashboard-mockup-1.png\");\n }\n if (store.state.user.selectedEstateId === \"62d5e0ce527605d62c5ca04c\") {\n return require(\"@/assets/images/dashboard-mockup-2.png\");\n }\n return \"\";\n});\n\nonMounted(() => {\n interval.value = setInterval(() => {\n clock.value = dayjs().format(\"h:mm A\");\n }, 1000);\n});\n\nfunction getInfo() {\n getDashboardStatuses();\n getDashboardLotsByMonth();\n getDahboardUpcoming();\n getRecentActivity();\n}\n\nconst statusCounts = ref([]);\nfunction getDashboardStatuses() {\n store.dispatch(\"lot/getDashboardStatuses\", estateId.value).then((res) => {\n statusCounts.value = res.data;\n });\n}\n\nconst lotsByMonth = ref({});\nfunction getDashboardLotsByMonth() {\n store.dispatch(\"lot/getDashboardLotsByMonth\", estateId.value).then((res) => {\n const lots = res.data;\n let day = dayjs();\n const tmpObject = {\n dates: [] as string[],\n values: [] as string[],\n };\n for (let index = 0; index < 9; index++) {\n const date = `${day.format(\"MMM\")} ‘${day.format(\"YY\")}`;\n const value = lots.filter((item) => {\n return item.year == day.format(\"YYYY\") && item.month - 1 == day.month();\n });\n tmpObject.dates.unshift(date);\n tmpObject.values.unshift(value[0]?.monthlyRevenue || 0);\n day = day.subtract(1, \"months\");\n }\n lotsByMonth.value = tmpObject;\n });\n}\n\nconst upcoming = ref([]);\nfunction getDahboardUpcoming() {\n store.dispatch(\"lot/getDahboardUpcoming\", estateId.value).then((res) => {\n upcoming.value = res.data;\n });\n}\n\nconst recentActivity = ref([]);\nfunction getRecentActivity() {\n store\n .dispatch(\"lot/getLotActionsByEstate\", store.state.user.selectedEstateId)\n .then((res) => {\n recentActivity.value = res.data;\n });\n}\n\nwatch(\n () => estateId.value,\n () => {\n if (estateId.value) {\n getInfo();\n }\n },\n { immediate: true }\n);\n\nconst clock = ref(dayjs().format(\"h:mm A\"));\nconst interval = ref();\n\nonBeforeUnmount(() => {\n clearInterval(interval.value);\n});\n\nconst helloWords = computed(() => {\n const time = new Date().getHours();\n if (time >= 5 && time < 12) {\n return \"Good morning\";\n } else if (time >= 12 && time < 17) {\n return \"Good afternoon\";\n } else {\n return \"Good evening\";\n }\n});\n\nconst __returned__ = { bottomSpace, estateId, name, hardcodedDashboard, getInfo, statusCounts, getDashboardStatuses, lotsByMonth, getDashboardLotsByMonth, upcoming, getDahboardUpcoming, recentActivity, getRecentActivity, clock, interval, helloWords, DashboardLots, DashboardSale, DashboardUpcoming, DashboardActivity, get onMounted() { return onMounted }, get store() { return store }, computed, onBeforeUnmount, ref, watch, get dayjs() { return dayjs }, get LotActionInterface() { return LotActionInterface }, get utc() { return utc } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./DashboardView.vue?vue&type=template&id=f824ea48&scoped=true&ts=true&lang=pug\"\nimport script from \"./DashboardView.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DashboardView.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DashboardView.vue?vue&type=style&index=0&id=f824ea48&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-f824ea48\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./DashboardLots.vue?vue&type=style&index=0&id=1d786342&lang=scss&scoped=true\"","import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1ed70f8f\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"title\" }, \"Upcoming actions\", -1))\nconst _hoisted_2 = {\n key: 0,\n class: \"upcoming-items scroll-wrapper\"\n}\nconst _hoisted_3 = { class: \"upcoming-item__label\" }\nconst _hoisted_4 = [\"onClick\"]\nconst _hoisted_5 = [\"onClick\"]\nconst _hoisted_6 = {\n key: 1,\n class: \"muted-text\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _hoisted_1,\n ($props.upcomingArray.length > 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($props.upcomingArray, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"upcoming-item\",\n key: index\n }, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createTextVNode(_toDisplayString($setup.actionText(item.action === \"Review EOI Requests\" ? \"Review Contract Form\" : item.action)) + \" \", 1),\n _createElementVNode(\"span\", {\n class: \"highlighted\",\n onClick: ($event: any) => ($setup.actionRouting(item.stageId, item.lotId))\n }, \"Lot \" + _toDisplayString(item.lotTitle), 9, _hoisted_4)\n ]),\n _createElementVNode(\"div\", {\n class: \"upcoming-item__view\",\n onClick: ($event: any) => ($setup.actionRouting(item.stageId, item.lotId))\n }, \"View\", 8, _hoisted_5)\n ]))\n }), 128))\n ]))\n : (_openBlock(), _createElementBlock(\"p\", _hoisted_6, \"You have no upcoming actions\"))\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport router from \"@/router\";\nimport { computed, onMounted, ref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DashboardUpcoming',\n props: {\n upcomingArray: {\n type: Array,\n default: () => {\n return [];\n },\n },\n},\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst props = __props;\n\n\n\nfunction actionText(text: string) {\n return text.endsWith(\"lot\") ? text.slice(0, -3) : `${text} for`;\n}\n\nfunction actionRouting(stageId: string, lotId: string) {\n router.push({\n name: \"LotActions\",\n params: {\n stageId: stageId,\n lotId: lotId,\n },\n });\n}\n\nconst __returned__ = { props, actionText, actionRouting, get router() { return router }, computed, onMounted, ref }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./DashboardUpcoming.vue?vue&type=template&id=1ed70f8f&scoped=true&ts=true&lang=pug\"\nimport script from \"./DashboardUpcoming.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DashboardUpcoming.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DashboardUpcoming.vue?vue&type=style&index=0&id=1ed70f8f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1ed70f8f\"]])\n\nexport default __exports__","import * as Vue from 'vue'\n\nvar isVue2 = false\nvar isVue3 = true\nvar Vue2 = undefined\n\nfunction install() {}\n\nexport function set(target, key, val) {\n if (Array.isArray(target)) {\n target.length = Math.max(target.length, key)\n target.splice(key, 1, val)\n return val\n }\n target[key] = val\n return val\n}\n\nexport function del(target, key) {\n if (Array.isArray(target)) {\n target.splice(key, 1)\n return\n }\n delete target[key]\n}\n\nexport * from 'vue'\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n}\n","import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-279390d1\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title-bold\" }, \"Recent activity\", -1))\nconst _hoisted_2 = {\n key: 0,\n class: \"activities scroll-wrapper\"\n}\nconst _hoisted_3 = {\n key: 0,\n class: \"activity\"\n}\nconst _hoisted_4 = { class: \"activity-info\" }\nconst _hoisted_5 = { class: \"activity-link\" }\nconst _hoisted_6 = { class: \"activity-date\" }\nconst _hoisted_7 = { class: \"activity-info\" }\nconst _hoisted_8 = { class: \"activity-link\" }\nconst _hoisted_9 = { class: \"badge-wrapper\" }\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"activity-text\" }, \"➔\", -1))\nconst _hoisted_11 = { class: \"activity-date\" }\nconst _hoisted_12 = {\n key: 1,\n class: \"activity\"\n}\nconst _hoisted_13 = { class: \"activity-info\" }\nconst _hoisted_14 = { class: \"activity-link name\" }\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"activity-text\" }, \" sent \", -1))\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"activity-link\" }, \"Contract form \", -1))\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"activity-text\" }, \"for \", -1))\nconst _hoisted_18 = { class: \"activity-link\" }\nconst _hoisted_19 = { class: \"activity-date\" }\nconst _hoisted_20 = {\n key: 1,\n class: \"muted-text\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _hoisted_1,\n ($setup.getChangedActions.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.getChangedActions, (action) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.filterActions(action.changedParams), (field) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (field === 'status')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n (!action.previousLotStatus && action.newLotStatus === $setup.LotStatus.AVAILABLE)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createTextVNode(\"The Contract form for\"),\n _createVNode(_component_router_link, {\n class: \"lot-link\",\n to: { name: 'LotActions', params: { stageId: action.stageId, lotId: action.lotId } }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(` Lot ${action.lotTitle} `), 1)\n ]),\n _: 2\n }, 1032, [\"to\"]),\n _createTextVNode(\"was withdrawn\")\n ]),\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString($setup.formatDate(action.createdAt)), 1)\n ], 64))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_router_link, {\n class: \"lot-link\",\n to: { name: 'LotActions', params: { stageId: action.stageId, lotId: action.lotId } }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_8, _toDisplayString(`Lot ${action.lotTitle} `), 1)\n ]),\n _: 2\n }, 1032, [\"to\"]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"badge badge-first\", $setup.getLotStatusClass( action.previousLotStatus === $setup.LotStatus.EOI ? $setup.LotStatus.PRE_CONTRACT : action.previousLotStatus )])\n }, _toDisplayString(action.previousLotStatus === $setup.LotStatus.EOI ? $setup.LotStatus.PRE_CONTRACT : action.previousLotStatus), 3),\n _hoisted_10,\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"badge\", $setup.getLotStatusClass( action.newLotStatus === $setup.LotStatus.EOI ? $setup.LotStatus.PRE_CONTRACT : action.newLotStatus )])\n }, _toDisplayString(action.newLotStatus === $setup.LotStatus.EOI ? $setup.LotStatus.PRE_CONTRACT : action.newLotStatus), 3)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, _toDisplayString($setup.formatDate(action.createdAt)), 1)\n ], 64))\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", _hoisted_13, [\n _createVNode(_component_router_link, {\n class: \"name-link\",\n to: { name: 'ContactDetails', params: { id: action.applicantDetails.customerId } }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_14, _toDisplayString(`${action.applicantDetails.firstName} ${action.applicantDetails.lastName}`), 1)\n ]),\n _: 2\n }, 1032, [\"to\"]),\n _hoisted_15,\n _createVNode(_component_router_link, {\n to: { name: 'EOIDetails', params: { id: action.applicantDetails.eoiId } }\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 2\n }, 1032, [\"to\"]),\n _hoisted_17,\n _createVNode(_component_router_link, {\n to: { name: 'LotActions', params: { stageId: action.stageId, lotId: action.lotId } }\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_18, \"Lot \" + _toDisplayString(action.lotTitle), 1)\n ]),\n _: 2\n }, 1032, [\"to\"])\n ]),\n _createElementVNode(\"div\", _hoisted_19, _toDisplayString($setup.formatDate(action.createdAt)), 1)\n ]))\n ], 64))\n }), 256))\n ], 64))\n }), 256))\n ]))\n : (_openBlock(), _createElementBlock(\"p\", _hoisted_20, \"You have no activity for the last 5 days\"))\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { computed } from \"vue\";\nimport { formatDate } from \"@/helpers/date\";\nimport { getLotStatusClass } from \"@/helpers/status\";\nimport { LotInterface } from \"@/types/LotInterface\";\nimport { LotActionInterface } from \"@/types/LotActionInterface\";\nimport { LotStatus } from \"@/enums/LotStatus\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DashboardActivity',\n props: {\n actions: {\n type: Array,\n required: true,\n },\n},\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst props = __props;\n\n\n\nconst getChangedActions = computed(() => {\n return props.actions.filter(\n (value) =>\n (value as LotActionInterface).action === \"changed\" &&\n filterActions((value as LotActionInterface).changedParams).length\n );\n});\nfunction filterActions(fields: Array) {\n const allowedFields: Array = [\"status\", \"applicants\"];\n return fields.filter((value) => allowedFields.includes(value));\n}\n\nconst __returned__ = { props, getChangedActions, filterActions, computed, get formatDate() { return formatDate }, get getLotStatusClass() { return getLotStatusClass }, get LotInterface() { return LotInterface }, get LotActionInterface() { return LotActionInterface }, get LotStatus() { return LotStatus } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./DashboardActivity.vue?vue&type=template&id=279390d1&scoped=true&ts=true&lang=pug\"\nimport script from \"./DashboardActivity.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DashboardActivity.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DashboardActivity.vue?vue&type=style&index=0&id=279390d1&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-279390d1\"]])\n\nexport default __exports__","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1d786342\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title\" }, \"Total lots\", -1))\nconst _hoisted_2 = { class: \"wrapper-count-lots\" }\nconst _hoisted_3 = { class: \"count-total-lots\" }\nconst _hoisted_4 = { class: \"list-lots\" }\nconst _hoisted_5 = { class: \"title-lot\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _hoisted_1,\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString($setup.sumProgressItems), 1)\n ]),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"progress\", { hidden: !$setup.sumProgressItems }])\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.list, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"progress-item\",\n key: index,\n style: _normalizeStyle({ background: item.color, width: $setup.getProgressItemWidth(item.count), height: '100%' })\n }, null, 4))\n }), 128))\n ], 2),\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList($setup.list, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"wrapper-list-lot\",\n key: index\n }, [\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"span\", {\n class: \"circle\",\n style: _normalizeStyle({ backgroundColor: item.color })\n }, null, 4),\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(index === $setup.LotStatus.EOI ? $setup.LotStatus.PRE_CONTRACT : index), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"numerical-value\",\n style: _normalizeStyle({ color: item.color })\n }, _toDisplayString(item.count), 5)\n ]))\n }), 128))\n ])\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { CounterStatusItem } from \"@/types/CounterStatusItemInterface\";\nimport { LotStatus } from \"@/enums/LotStatus\";\nimport { computed, ref, watch } from \"vue\";\n\ninterface ProgressItem {\n color: string;\n text: string;\n value: number;\n}\n\ninterface Props {\n statusCounts: CounterStatusItem[];\n}\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'DashboardLots',\n props: {\n statusCounts: {}\n },\n setup(__props: any, { expose: __expose }) {\n __expose();\n\nconst props = __props;\n\n\nconst defaultObject = {\n \"Not Released\": {\n color: \"#595983\",\n count: 0,\n },\n Available: {\n color: \"#2CCD3C\",\n count: 0,\n },\n EOI: {\n color: \"#455cfc\",\n count: 0,\n },\n \"Contract Executed\": {\n color: \"#FEB520\",\n count: 0,\n },\n Unconditional: {\n color: \"#8f00ff\",\n count: 0,\n },\n Settled: {\n color: \"#F12B5B\",\n count: 0,\n },\n Option: {\n color: \"#FB7634\",\n count: 0,\n },\n Offline: {\n color: \"#C4C4C4\",\n count: 0,\n },\n};\n\nconst list = ref({ ...defaultObject });\n\nconst sumProgressItems = computed(() => {\n return Object.keys(list.value).reduce(\n (sum, key) => sum + parseFloat(list.value[key].count || 0),\n 0\n );\n});\nconst getProgressItemWidth = (value: number) => {\n return ((value / sumProgressItems.value) * 100).toFixed(4) + \"%\";\n};\nconst setLotStatusCount = () => {\n props.statusCounts.forEach(({ count, status }) => {\n const statusKey = status as keyof typeof list.value;\n if (list.value[statusKey]) {\n list.value[statusKey].count = count || 0;\n }\n });\n};\n\nwatch(\n () => props.statusCounts,\n () => {\n list.value = JSON.parse(JSON.stringify(defaultObject));\n if (!props.statusCounts) {\n return;\n }\n setLotStatusCount();\n },\n { deep: true, immediate: true }\n);\n\nconst __returned__ = { props, defaultObject, list, sumProgressItems, getProgressItemWidth, setLotStatusCount, get CounterStatusItem() { return CounterStatusItem }, get LotStatus() { return LotStatus }, computed, ref, watch }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./DashboardLots.vue?vue&type=template&id=1d786342&scoped=true&ts=true&lang=pug\"\nimport script from \"./DashboardLots.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DashboardLots.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DashboardLots.vue?vue&type=style&index=0&id=1d786342&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1d786342\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/dashboard-mockup-1.3a4a6f78.png\";","export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./DashboardSale.vue?vue&type=style&index=0&id=01fb5545&lang=scss&scoped=true\"","module.exports = __webpack_public_path__ + \"img/dashboard-mockup-2.1bce81b1.png\";","var aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./DashboardActivity.vue?vue&type=style&index=0&id=279390d1&lang=scss&scoped=true\"","export * from \"-!../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./DashboardView.vue?vue&type=style&index=0&id=f824ea48&lang=scss&scoped=true\""],"sourceRoot":""}