(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[59],{ /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/Elevation.vue?vue&type=script&lang=js": /*!***************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/Elevation.vue?vue&type=script&lang=js ***! \***************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"./node_modules/core-js/modules/es.array.reduce.js\");\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _lib_api_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lib/api.js */ \"./src/lib/api.js\");\n/* harmony import */ var _components_Contacts_PopupContactList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/Contacts/PopupContactList */ \"./src/components/Contacts/PopupContactList.vue\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n filtersArray: {\n type: Array,\n required: true,\n default: () => {\n return [];\n }\n },\n eventFilter: {\n type: Object,\n required: true,\n default: () => {\n return {};\n }\n }\n },\n data() {\n return {\n dialog: false,\n subContactList: [],\n search: '',\n loading: false,\n headers: [{\n text: 'Elevation',\n value: 'title',\n sortable: true\n }, {\n text: 'Beds',\n value: 'bedrooms',\n sortable: true\n }, {\n text: 'Bath',\n value: 'bathrooms',\n sortable: true\n }, {\n text: 'Sq.Ft',\n value: 'squareFeet',\n sortable: true\n }, {\n text: 'List Price',\n value: 'listPrice',\n sortable: true\n }, {\n text: 'PSF',\n value: 'psf',\n sortable: true\n }, {\n text: '1st',\n value: 'firstElevationPreference',\n sortable: true,\n align: 'center'\n }, {\n text: '2st',\n value: 'secondElevationPreference',\n sortable: true,\n align: 'center'\n }, {\n text: '3st',\n value: 'thirdElevationPreference',\n sortable: true,\n align: 'center'\n }, {\n text: 'Total',\n value: 'totalScore',\n sortable: true\n }, {\n text: 'WT',\n value: 'wtScore',\n sortable: true\n }],\n popupContactHeaders: [{\n value: 'fullNameLastFirst',\n text: 'Name',\n sortable: true\n }, {\n value: 'email',\n text: 'Email',\n sortable: true\n }, {\n value: 'phone',\n text: 'Phone',\n sortable: true\n }, {\n value: 'subjectiveRatingString',\n text: 'Subjective Rating',\n sortable: true\n }, {\n value: 'leadscoreString',\n text: 'MSP Rating',\n sortable: true\n }, {\n value: 'prequalDate',\n text: 'Pre-Qual Date',\n sortable: true\n }],\n listData: [],\n averagePrequal: 0,\n numberOfPrequals: 0,\n firstElevationCountList: [],\n secondElevationCountList: [],\n thirdElevationCountList: [],\n totalOfTotals: 0,\n totalOfwtScore: 0\n };\n },\n mounted() {\n this.populate();\n },\n watch: {\n filtersArray: function () {\n this.populate();\n },\n eventFilter: function () {\n this.populate();\n }\n },\n computed: {\n firstElevationCountTotal() {\n return this.firstElevationCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n },\n secondElevationCountTotal() {\n return this.secondElevationCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n },\n thirdElevationCountTotal() {\n return this.thirdElevationCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n }\n },\n methods: {\n getCountTotals(data) {\n if (data.firstElevationPreference.length) {\n this.firstElevationCountList.push(data.firstElevationPreference.length);\n }\n if (data.secondElevationPreference.length) {\n this.secondElevationCountList.push(data.secondElevationPreference.length);\n }\n if (data.thirdElevationPreference.length) {\n this.thirdElevationCountList.push(data.thirdElevationPreference.length);\n }\n },\n getTotalScore(data) {\n const score = (data.firstElevationPreference ? data.firstElevationPreference.length : 0) + (data.secondElevationPreference ? data.secondElevationPreference.length : 0) + (data.thirdElevationPreference ? data.thirdElevationPreference.length : 0);\n return score;\n },\n getWTScore(data) {\n var score = 0;\n if (data.firstElevationPreference) {\n score += data.firstElevationPreference.length * 4;\n }\n if (data.secondElevationPreference) {\n score += data.secondElevationPreference.length * 3;\n }\n if (data.thirdElevationPreference) {\n score += data.thirdElevationPreference.length * 2;\n }\n return score;\n },\n displayContacts(preferences) {\n preferences = preferences.map(data => {\n var newItem = {\n ...data.Contact\n };\n newItem.phone = this.$options.filters.prettyPhoneNumber(data.Contact.primaryPhone);\n newItem.firstElevation = data.firstElevation !== 0 ? data.firstElevation : '';\n newItem.secondElevation = data.secondElevation !== 0 ? data.secondElevation : '';\n newItem.thirdElevation = data.thirdElevation !== 0 ? data.thirdElevation : '';\n newItem.prequalDate = this.getPrequalsDate(newItem.ContactPrequals);\n return newItem;\n });\n this.subContactList = preferences;\n this.dialog = true;\n },\n getPrequalsDate(data) {\n data = data[0] ? data[0].prequalDate : '';\n return data;\n },\n async populate() {\n this.$store.dispatch('loading', null, {\n root: true\n });\n Object(_lib_api_js__WEBPACK_IMPORTED_MODULE_2__[\"doAPIGet\"])('/reports/leadPreferences/elevation').then(res => {\n this.listData = this.applyFilters(res.data, this.filtersArray, this.eventFilter);\n this.calcPrequalStats(this.listData);\n this.$store.dispatch('done', null, {\n root: true\n });\n });\n },\n calcPrequalStats: function (data) {\n const contactsById = {};\n var prequals = [];\n var total = 0;\n data.forEach(asset => {\n if (asset.firstElevationPreference.length) {\n asset.firstElevationPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.secondElevationPreference.length) {\n asset.secondElevationPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.thirdElevationPreference.length) {\n asset.thirdElevationPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n });\n for (const [, contact] of Object.entries(contactsById)) {\n if (contact.ContactPrequals.length) {\n prequals = prequals.concat(contact.ContactPrequals);\n }\n }\n prequals.forEach(prequal => {\n total += prequal.amount;\n });\n this.averagePrequal = Math.round(total / prequals.length) ? Math.round(total / prequals.length) : 0;\n this.numberOfPrequals = prequals.length;\n },\n applyFilters: function (data, filters, eventFilter) {\n this.firstElevationCountList = [];\n this.secondElevationCountList = [];\n this.thirdElevationCountList = [];\n this.totalOfTotals = 0;\n this.totalOfwtScore = 0;\n data = data.map(newData => {\n var newItem = {\n ...newData\n };\n if (filters.includes('hasSiteVisit')) {\n newItem.firstElevationPreference = newItem.firstElevationPreference.filter(c => c.Contact.SiteVisits.length > 0);\n newItem.secondElevationPreference = newItem.secondElevationPreference.filter(c => c.Contact.SiteVisits.length > 0);\n newItem.thirdElevationPreference = newItem.thirdElevationPreference.filter(c => c.Contact.SiteVisits.length > 0);\n this.getWTScore(newItem);\n }\n if (filters.includes('qualified')) {\n newItem.firstElevationPreference = newItem.firstElevationPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n newItem.secondElevationPreference = newItem.secondElevationPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n newItem.thirdElevationPreference = newItem.thirdElevationPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n this.getWTScore(newItem);\n }\n if (filters.includes('excludePurchasers')) {\n newItem.firstElevationPreference = newItem.firstElevationPreference.filter(c => !c.Contact.purchasedHome);\n newItem.secondElevationPreference = newItem.secondElevationPreference.filter(c => !c.Contact.purchasedHome);\n newItem.thirdElevationPreference = newItem.thirdElevationPreference.filter(c => !c.Contact.purchasedHome);\n }\n if (filters.includes('excludedContacts')) {\n newItem.firstElevationPreference = newItem.firstElevationPreference.filter(c => !c.Contact.exclude);\n newItem.secondElevationPreference = newItem.secondElevationPreference.filter(c => !c.Contact.exclude);\n newItem.thirdElevationPreference = newItem.thirdElevationPreference.filter(c => !c.Contact.exclude);\n }\n if (eventFilter.id) {\n newItem.firstElevationPreference = newItem.firstElevationPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n newItem.secondElevationPreference = newItem.secondElevationPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n newItem.thirdElevationPreference = newItem.thirdElevationPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n this.getWTScore(newItem);\n }\n this.getCountTotals(newItem);\n newItem.totalScore = this.getTotalScore(newItem);\n newItem.wtScore = this.getWTScore(newItem);\n this.totalOfTotals += newItem.totalScore;\n this.totalOfwtScore += newItem.wtScore;\n return newItem;\n });\n return data;\n },\n popupContactClose() {\n this.subContactList = [];\n }\n },\n components: {\n PopupContactList: _components_Contacts_PopupContactList__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/Elevation.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/Lot.vue?vue&type=script&lang=js": /*!*********************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/Lot.vue?vue&type=script&lang=js ***! \*********************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"./node_modules/core-js/modules/es.array.reduce.js\");\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _lib_api_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lib/api.js */ \"./src/lib/api.js\");\n/* harmony import */ var _components_Contacts_PopupContactList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/Contacts/PopupContactList */ \"./src/components/Contacts/PopupContactList.vue\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n filtersArray: {\n type: Array,\n required: true,\n default: () => {\n return [];\n }\n },\n eventFilter: {\n type: Object,\n required: true,\n default: () => {\n return {};\n }\n }\n },\n data() {\n return {\n subContactList: [],\n search: '',\n loading: false,\n headers: [{\n text: 'Lot #',\n value: 'shortAddress',\n sortable: true\n }, {\n text: 'Plan',\n value: 'AssetPlan.title',\n sortable: true\n }, {\n text: 'Elevation',\n value: 'AssetElevation.title',\n sortable: true\n }, {\n text: 'Beds',\n value: 'bedrooms',\n sortable: true\n }, {\n text: 'Bath',\n value: 'bathrooms',\n sortable: true\n }, {\n text: 'Sq.Ft',\n value: 'squareFeet',\n sortable: true\n }, {\n text: 'List Price',\n value: 'listPrice',\n sortable: true\n }, {\n text: 'PSF',\n value: 'psf',\n sortable: true\n }, {\n text: '1st',\n value: 'firstLotPreference',\n sortable: true,\n align: 'center'\n }, {\n text: '2st',\n value: 'secondLotPreference',\n sortable: true,\n align: 'center'\n }, {\n text: '3st',\n value: 'thirdLotPreference',\n sortable: true,\n align: 'center'\n }, {\n text: 'Total',\n value: 'totalScore',\n sortable: true\n }, {\n text: 'WT',\n value: 'wtScore',\n sortable: true\n }],\n popupContactHeaders: [{\n value: 'fullNameLastFirst',\n text: 'Name',\n sortable: true\n }, {\n value: 'email',\n text: 'Email',\n sortable: true\n }, {\n value: 'phone',\n text: 'Phone',\n sortable: true\n }, {\n value: 'subjectiveRatingString',\n text: 'Subjective Rating',\n sortable: true\n }, {\n value: 'leadscoreString',\n text: 'MSP Rating Label',\n sortable: true\n }, {\n value: 'prequalDate',\n text: 'Pre-Qual Date',\n sortable: true\n }],\n listData: [],\n dialog: false,\n averagePrequal: 0,\n numberOfPrequals: 0,\n firstHomeCountList: [],\n secondHomeCountList: [],\n thirdHomeCountList: [],\n totalOfTotals: 0,\n totalOfwtScore: 0\n };\n },\n mounted() {\n this.populate();\n },\n watch: {\n filtersArray: function () {\n this.populate();\n },\n eventFilter: function () {\n this.populate();\n }\n },\n computed: {\n firstHomeCountTotal() {\n return this.firstHomeCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n },\n secondHomeCountTotal() {\n return this.secondHomeCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n },\n thirdHomeCountTotal() {\n return this.thirdHomeCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n }\n },\n methods: {\n getCountTotals(data) {\n if (data.firstLotPreference.length) {\n this.firstHomeCountList.push(data.firstLotPreference.length);\n }\n if (data.secondLotPreference.length) {\n this.secondHomeCountList.push(data.secondLotPreference.length);\n }\n if (data.thirdLotPreference.length) {\n this.thirdHomeCountList.push(data.thirdLotPreference.length);\n }\n },\n getTotalScore(data) {\n const score = (data.firstLotPreference ? data.firstLotPreference.length : 0) + (data.secondLotPreference ? data.secondLotPreference.length : 0) + (data.thirdLotPreference ? data.thirdLotPreference.length : 0);\n return score;\n },\n getWTScore(data) {\n var score = 0;\n if (data.firstLotPreference) {\n score += data.firstLotPreference.length * 4;\n }\n if (data.secondLotPreference) {\n score += data.secondLotPreference.length * 3;\n }\n if (data.thirdLotPreference) {\n score += data.thirdLotPreference.length * 2;\n }\n return score;\n },\n getPrequalsDate(data) {\n data = data[0] ? data[0].prequalDate : '';\n return data;\n },\n displayContacts(preferences) {\n preferences = preferences.map(data => {\n var newItem = {\n ...data.Contact\n };\n newItem.phone = this.$options.filters.prettyPhoneNumber(data.Contact.primaryPhone);\n newItem.prequalDate = this.getPrequalsDate(newItem.ContactPrequals);\n return newItem;\n });\n this.subContactList = preferences;\n this.dialog = true;\n },\n async populate() {\n this.$store.dispatch('loading', null, {\n root: true\n });\n Object(_lib_api_js__WEBPACK_IMPORTED_MODULE_2__[\"doAPIGet\"])('/reports/leadPreferences/lot').then(res => {\n this.listData = this.applyFilters(res.data, this.filtersArray, this.eventFilter);\n this.calcPrequalStats(this.listData);\n this.$store.dispatch('done', null, {\n root: true\n });\n });\n },\n calcPrequalStats: function (data) {\n const contactsById = {};\n var prequals = [];\n var total = 0;\n data.forEach(asset => {\n if (asset.firstLotPreference.length) {\n asset.firstLotPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.secondLotPreference.length) {\n asset.secondLotPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.thirdLotPreference.length) {\n asset.thirdLotPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n });\n for (const [, contact] of Object.entries(contactsById)) {\n if (contact.ContactPrequals.length) {\n prequals = prequals.concat(contact.ContactPrequals);\n }\n }\n prequals.forEach(prequal => {\n total += prequal.amount;\n });\n this.averagePrequal = Math.round(total / prequals.length) ? Math.round(total / prequals.length) : 0;\n this.numberOfPrequals = prequals.length;\n },\n applyFilters: function (data, filters, eventFilter) {\n this.firstHomeCountList = [];\n this.secondHomeCountList = [];\n this.thirdHomeCountList = [];\n this.totalOfTotals = 0;\n this.totalOfwtScore = 0;\n data = data.map(newData => {\n var newItem = {\n ...newData\n };\n if (filters.includes('hasSiteVisit')) {\n newItem.firstLotPreference = newItem.firstLotPreference.filter(c => c.Contact.SiteVisits.length > 0);\n newItem.secondLotPreference = newItem.secondLotPreference.filter(c => c.Contact.SiteVisits.length > 0);\n newItem.thirdLotPreference = newItem.thirdLotPreference.filter(c => c.Contact.SiteVisits.length > 0);\n }\n if (filters.includes('qualified')) {\n newItem.firstLotPreference = newItem.firstLotPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n newItem.secondLotPreference = newItem.secondLotPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n newItem.thirdLotPreference = newItem.thirdLotPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n }\n if (filters.includes('excludePurchasers')) {\n newItem.firstLotPreference = newItem.firstLotPreference.filter(c => !c.Contact.purchasedHome);\n newItem.secondLotPreference = newItem.secondLotPreference.filter(c => !c.Contact.purchasedHome);\n newItem.thirdLotPreference = newItem.thirdLotPreference.filter(c => !c.Contact.purchasedHome);\n }\n if (filters.includes('excludedContacts')) {\n newItem.firstLotPreference = newItem.firstLotPreference.filter(c => !c.Contact.exclude);\n newItem.secondLotPreference = newItem.secondLotPreference.filter(c => !c.Contact.exclude);\n newItem.thirdLotPreference = newItem.thirdLotPreference.filter(c => !c.Contact.exclude);\n }\n if (eventFilter.id) {\n newItem.firstLotPreference = newItem.firstLotPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n newItem.secondLotPreference = newItem.secondLotPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n newItem.thirdLotPreference = newItem.thirdLotPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n }\n this.getCountTotals(newItem);\n newItem.totalScore = this.getTotalScore(newItem);\n newItem.wtScore = this.getWTScore(newItem);\n this.totalOfTotals += newItem.totalScore;\n this.totalOfwtScore += newItem.wtScore;\n return newItem;\n });\n return data;\n },\n popupContactClose() {\n this.subContactList = [];\n }\n },\n components: {\n PopupContactList: _components_Contacts_PopupContactList__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/Lot.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=script&lang=js": /*!*****************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=script&lang=js ***! \*****************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Lot__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Lot */ \"./src/components/Reports/Lot-Plan-Elev/Lot.vue\");\n/* harmony import */ var _Plan__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Plan */ \"./src/components/Reports/Lot-Plan-Elev/Plan.vue\");\n/* harmony import */ var _Elevation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Elevation */ \"./src/components/Reports/Lot-Plan-Elev/Elevation.vue\");\n/* harmony import */ var _lib_setPageTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lib/setPageTitle */ \"./src/lib/setPageTitle.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n LotPreferences: _Lot__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n PlanPreferences: _Plan__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n ElevationPreference: _Elevation__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n data() {\n return {\n tab: 'lot',\n filters: [],\n eventFilter: {},\n rsvpList: [],\n averagePrequal: 0,\n numberOfPrequals: 0\n };\n },\n mounted() {\n Object(_lib_setPageTitle__WEBPACK_IMPORTED_MODULE_3__[\"setPageTitle\"])('Lot/Plan/Elevation Preferences', this.$parent.$el.className, true);\n },\n beforeMount() {\n this.$store.dispatch('RsvpEvent/pullData').then(data => {\n this.rsvpList = data;\n this.rsvpList.unshift({\n id: null,\n name: 'No Event'\n });\n });\n },\n methods: {\n sendEventFilter(event) {\n this.eventFilter = event;\n },\n clearFilters() {\n this.eventFilter = {};\n this.filters = [];\n },\n setPrequalStats(data) {\n this.averagePrequal = data.averagePrequal;\n this.numberOfPrequals = data.numberOfPrequals;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/Plan.vue?vue&type=script&lang=js": /*!**********************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/Plan.vue?vue&type=script&lang=js ***! \**********************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"./node_modules/core-js/modules/es.array.reduce.js\");\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _lib_api_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lib/api.js */ \"./src/lib/api.js\");\n/* harmony import */ var _components_Contacts_PopupContactList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/Contacts/PopupContactList */ \"./src/components/Contacts/PopupContactList.vue\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n filtersArray: {\n type: Array,\n required: true,\n default: () => {\n return [];\n }\n },\n eventFilter: {\n type: Object,\n required: true,\n default: () => {\n return {};\n }\n }\n },\n data() {\n return {\n dialog: false,\n subContactList: [],\n search: '',\n loading: false,\n headers: [{\n text: 'Title',\n value: 'title',\n sortable: true\n }, {\n text: 'Plan Number',\n value: 'number',\n sortable: true\n }, {\n text: 'Beds',\n value: 'bedrooms',\n sortable: true\n }, {\n text: 'Bath',\n value: 'bathrooms',\n sortable: true\n }, {\n text: 'Sq.Ft',\n value: 'squareFeet',\n sortable: true\n }, {\n text: 'List Price',\n value: 'basePrice',\n sortable: true\n }, {\n text: 'BSF',\n value: 'bsf',\n sortable: true\n }, {\n text: '1st',\n value: 'firstPlanPreference',\n sortable: true,\n align: 'center'\n }, {\n text: '2st',\n value: 'secondPlanPreference',\n sortable: true,\n align: 'center'\n }, {\n text: '3st',\n value: 'thirdPlanPreference',\n sortable: true,\n align: 'center'\n }, {\n text: 'Total',\n value: 'totalScore',\n sortable: true\n }, {\n text: 'WT',\n value: 'wtScore',\n sortable: true\n }],\n popupContactHeaders: [{\n value: 'fullNameLastFirst',\n text: 'Name',\n sortable: true\n }, {\n value: 'email',\n text: 'Email',\n sortable: true\n }, {\n value: 'phone',\n text: 'Phone',\n sortable: true\n }, {\n value: 'subjectiveRatingString',\n text: 'Subjective Rating',\n sortable: true\n }, {\n value: 'leadscoreString',\n text: 'MSP Rating Label',\n sortable: true\n }, {\n value: 'prequalDate',\n text: 'Pre-Qual Date',\n sortable: true\n }],\n listData: [],\n averagePrequal: 0,\n numberOfPrequals: 0,\n firstPlanCountList: [],\n secondPlanCountList: [],\n thirdPlanCountList: [],\n totalOfTotals: 0,\n totalOfwtScore: 0\n };\n },\n mounted() {\n this.populate();\n },\n watch: {\n filtersArray: function () {\n this.populate();\n },\n eventFilter: function () {\n this.populate();\n }\n },\n computed: {\n firstPlanCountTotal() {\n return this.firstPlanCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n },\n secondPlanCountTotal() {\n return this.secondPlanCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n },\n thirdPlanCountTotal() {\n return this.thirdPlanCountList.reduce((prevVal, nextVal) => prevVal + nextVal, 0);\n }\n },\n methods: {\n getCountTotals(data) {\n if (data.firstPlanPreference.length) {\n this.firstPlanCountList.push(data.firstPlanPreference.length);\n }\n if (data.secondPlanPreference.length) {\n this.secondPlanCountList.push(data.secondPlanPreference.length);\n }\n if (data.thirdPlanPreference.length) {\n this.thirdPlanCountList.push(data.thirdPlanPreference.length);\n }\n },\n getTotalScore(data) {\n const score = (data.firstPlanPreference ? data.firstPlanPreference.length : 0) + (data.secondPlanPreference ? data.secondPlanPreference.length : 0) + (data.thirdPlanPreference ? data.thirdPlanPreference.length : 0);\n return score;\n },\n getWTScore(data) {\n var score = 0;\n if (data.firstPlanPreference) {\n score += data.firstPlanPreference.length * 4;\n }\n if (data.secondPlanPreference) {\n score += data.secondPlanPreference.length * 3;\n }\n if (data.thirdPlanPreference) {\n score += data.thirdPlanPreference.length * 2;\n }\n return score;\n },\n getPrequalsDate(data) {\n data = data[0] ? data[0].prequalDate : '';\n return data;\n },\n displayContacts(preferences) {\n preferences = preferences.map(data => {\n var newItem = {\n ...data.Contact\n };\n newItem.phone = this.$options.filters.prettyPhoneNumber(data.Contact.primaryPhone);\n // what is this?\n // newItem.firstPlan = data.firstPlan !== '0' ? data.firstPlan = 'Plan ' + data.firstPlan : ''\n // newItem.secondPlan = data.secondPlan !== '0' ? data.secondPlan = 'Plan ' + data.secondPlan : ''\n // newItem.thirdPlan = data.thirdPlan !== '0' ? data.thirdPlan = 'Plan ' + data.thirdPlan : ''\n newItem.prequalDate = this.getPrequalsDate(newItem.ContactPrequals);\n return newItem;\n });\n this.subContactList = preferences;\n this.dialog = true;\n },\n applyFilters: function (data, filters, eventFilter) {\n this.firstPlanCountList = [];\n this.secondPlanCountList = [];\n this.thirdPlanCountList = [];\n this.totalOfTotals = 0;\n this.totalOfwtScore = 0;\n data = data.map(newData => {\n var newItem = {\n ...newData\n };\n if (filters.includes('hasSiteVisit')) {\n newItem.firstPlanPreference = newItem.firstPlanPreference.filter(c => c.Contact.SiteVisits.length > 0);\n newItem.secondPlanPreference = newItem.secondPlanPreference.filter(c => c.Contact.SiteVisits.length > 0);\n newItem.thirdPlanPreference = newItem.thirdPlanPreference.filter(c => c.Contact.SiteVisits.length > 0);\n }\n if (filters.includes('qualified')) {\n newItem.firstPlanPreference = newItem.firstPlanPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n newItem.secondPlanPreference = newItem.secondPlanPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n newItem.thirdPlanPreference = newItem.thirdPlanPreference.filter(c => c.Contact.ContactPrequals.length > 0);\n }\n if (filters.includes('excludePurchasers')) {\n newItem.firstPlanPreference = newItem.firstPlanPreference.filter(c => !c.Contact.purchasedHome);\n newItem.secondPlanPreference = newItem.secondPlanPreference.filter(c => !c.Contact.purchasedHome);\n newItem.thirdPlanPreference = newItem.thirdPlanPreference.filter(c => !c.Contact.purchasedHome);\n }\n if (filters.includes('excludedContacts')) {\n newItem.firstPlanPreference = newItem.firstPlanPreference.filter(c => !c.Contact.exclude);\n newItem.secondPlanPreference = newItem.secondPlanPreference.filter(c => !c.Contact.exclude);\n newItem.thirdPlanPreference = newItem.thirdPlanPreference.filter(c => !c.Contact.exclude);\n }\n if (eventFilter.id) {\n newItem.firstPlanPreference = newItem.firstPlanPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n newItem.secondPlanPreference = newItem.secondPlanPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n newItem.thirdPlanPreference = newItem.thirdPlanPreference.filter(c => c.Contact.Rsvps.some(e => {\n return e.rsvpEventId === eventFilter.id;\n }));\n }\n this.getCountTotals(newItem);\n newItem.totalScore = this.getTotalScore(newItem);\n newItem.wtScore = this.getWTScore(newItem);\n this.totalOfTotals += newItem.totalScore;\n this.totalOfwtScore += newItem.wtScore;\n return newItem;\n });\n return data;\n },\n populate() {\n this.$store.dispatch('loading', null, {\n root: true\n });\n Object(_lib_api_js__WEBPACK_IMPORTED_MODULE_2__[\"doAPIGet\"])('/reports/leadPreferences/plan').then(res => {\n this.listData = this.applyFilters(res.data, this.filtersArray, this.eventFilter);\n this.calcPrequalStats(this.listData);\n this.$store.dispatch('done', null, {\n root: true\n });\n });\n },\n calcPrequalStats: function (data) {\n const contactsById = {};\n var prequals = [];\n var total = 0;\n data.forEach(asset => {\n if (asset.firstPlanPreference.length) {\n asset.firstPlanPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.secondPlanPreference.length) {\n asset.secondPlanPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.thirdPlanPreference.length) {\n asset.thirdPlanPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n });\n for (const [, contact] of Object.entries(contactsById)) {\n if (contact.ContactPrequals.length) {\n prequals = prequals.concat(contact.ContactPrequals);\n }\n }\n prequals.forEach(prequal => {\n total += prequal.amount;\n });\n this.averagePrequal = Math.round(total / prequals.length) ? Math.round(total / prequals.length) : 0;\n this.numberOfPrequals = prequals.length;\n },\n emitPrequalStats: function (data) {\n const contactsById = {};\n var prequals = [];\n var total = 0;\n data.forEach(asset => {\n if (asset.firstPlanPreference.length) {\n asset.firstPlanPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.secondPlanPreference.length) {\n asset.secondPlanPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n if (asset.thirdPlanPreference.length) {\n asset.thirdPlanPreference.forEach(contactPref => {\n contactsById[contactPref.Contact.id] = contactPref.Contact;\n });\n }\n });\n for (const [, contact] of Object.entries(contactsById)) {\n if (contact.ContactPrequals.length) {\n prequals = prequals.concat(contact.ContactPrequals);\n }\n }\n prequals.forEach(prequal => {\n total += prequal.amount;\n });\n this.$emit('prequalStats', {\n averagePrequal: Math.round(total / prequals.length),\n numberOfPrequals: prequals.length\n });\n },\n popupContactClose() {\n this.subContactList = [];\n }\n },\n components: {\n PopupContactList: _components_Contacts_PopupContactList__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/Plan.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"57799412-vue-loader-template\"}!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/Elevation.vue?vue&type=template&id=20c721be": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"57799412-vue-loader-template"}!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/Elevation.vue?vue&type=template&id=20c721be ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/index.js\");\n/* harmony import */ var vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuetify/lib/components/VChip */ \"./node_modules/vuetify/lib/components/VChip/index.js\");\n/* harmony import */ var vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuetify/lib/components/VGrid */ \"./node_modules/vuetify/lib/components/VGrid/index.js\");\n/* harmony import */ var vuetify_lib_components_VDataTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VDataTable */ \"./node_modules/vuetify/lib/components/VDataTable/index.js\");\n/* harmony import */ var vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VTextField */ \"./node_modules/vuetify/lib/components/VTextField/index.js\");\n/* harmony import */ var vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VToolbar */ \"./node_modules/vuetify/lib/components/VToolbar/index.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], {\n attrs: {\n justify: \"center\"\n }\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n lg: \"12\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCard\"], {\n staticClass: \"mx-auto mb-4\",\n attrs: {\n flat: \"\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__[\"VToolbar\"], {\n attrs: {\n dense: \"\",\n dark: \"\",\n flat: \"\",\n color: \"secondary\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__[\"VToolbarTitle\"], {\n staticClass: \"white--text\"\n }, [_vm._v(\" View by Elevation \")]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VSpacer\"]), _c(vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_4__[\"VTextField\"], {\n staticClass: \"mb-2 py-0\",\n attrs: {\n \"append-icon\": \"mdi-magnify\",\n label: \"Search\",\n \"single-line\": \"\",\n \"hide-details\": \"\"\n },\n model: {\n value: _vm.search,\n callback: function ($$v) {\n _vm.search = $$v;\n },\n expression: \"search\"\n }\n })], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCard\"], {\n attrs: {\n color: \"indigo lighten-4\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\"Average Prequal: \" + _vm._s(_vm._f(\"currencyUSD\")(_vm.averagePrequal)))])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\"No. of Prequals: \" + _vm._s(_vm.numberOfPrequals))])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\"Total Elevations: \" + _vm._s(_vm.listData.length))])])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(vuetify_lib_components_VDataTable__WEBPACK_IMPORTED_MODULE_3__[\"VDataTable\"], {\n attrs: {\n \"hide-default-footer\": \"\",\n \"disable-pagination\": \"\",\n headers: _vm.headers,\n \"sort-by\": \"wtScore\",\n \"sort-desc\": true,\n items: _vm.listData,\n search: _vm.search,\n \"loading-text\": \"Loading...\",\n loading: _vm.loading,\n dense: \"\"\n },\n scopedSlots: _vm._u([{\n key: `item.firstElevationPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.firstElevationPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.firstElevationPreference.length) + \" \")])];\n }\n }, {\n key: `item.secondElevationPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.secondElevationPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.secondElevationPreference.length) + \" \")])];\n }\n }, {\n key: `item.thirdElevationPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.thirdElevationPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.thirdElevationPreference.length) + \" \")])];\n }\n }, {\n key: `item.listPrice`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"currencyUSD\")(item.Asset ? item.Asset.listPrice : 0)))])];\n }\n }, {\n key: `item.psf`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"currencyUSD\")(item.Asset ? item.Asset.psf : 0)))])];\n }\n }, {\n key: `item.squareFeet`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"integer\")(item.Asset ? item.Asset.squareFeet : null)))])];\n }\n }], null, true)\n }, [_c(\"template\", {\n slot: \"body.append\"\n }, [_c(\"tr\", {\n staticClass: \"title\"\n }, [_c(\"th\", {\n staticClass: \"title\",\n attrs: {\n colspan: \"6\"\n }\n }, [_vm._v(\"Total\")]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(\" \" + _vm._s(_vm.firstElevationCountTotal) + \" \")]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(\" \" + _vm._s(_vm.secondElevationCountTotal) + \" \")]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(\" \" + _vm._s(_vm.thirdElevationCountTotal) + \" \")]), _c(\"th\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.totalOfTotals))]), _c(\"th\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.totalOfwtScore))])])])], 2)], 1)], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(\"PopupContactList\", {\n attrs: {\n preBuiltHeaders: _vm.popupContactHeaders,\n onClose: _vm.popupContactClose,\n model: _vm.dialog,\n prepopulatedList: _vm.subContactList\n },\n on: {\n \"update:model\": function ($event) {\n _vm.dialog = $event;\n }\n }\n })], 1)], 1)], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/Elevation.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2257799412-vue-loader-template%22%7D!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"57799412-vue-loader-template\"}!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/Lot.vue?vue&type=template&id=1ee96772": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"57799412-vue-loader-template"}!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/Lot.vue?vue&type=template&id=1ee96772 ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/index.js\");\n/* harmony import */ var vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuetify/lib/components/VChip */ \"./node_modules/vuetify/lib/components/VChip/index.js\");\n/* harmony import */ var vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuetify/lib/components/VGrid */ \"./node_modules/vuetify/lib/components/VGrid/index.js\");\n/* harmony import */ var vuetify_lib_components_VDataTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VDataTable */ \"./node_modules/vuetify/lib/components/VDataTable/index.js\");\n/* harmony import */ var vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VTextField */ \"./node_modules/vuetify/lib/components/VTextField/index.js\");\n/* harmony import */ var vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VToolbar */ \"./node_modules/vuetify/lib/components/VToolbar/index.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], {\n attrs: {\n justify: \"center\"\n }\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n lg: \"12\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCard\"], {\n staticClass: \"mb-4\",\n attrs: {\n flat: \"\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__[\"VToolbar\"], {\n attrs: {\n dense: \"\",\n dark: \"\",\n flat: \"\",\n color: \"secondary\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__[\"VToolbarTitle\"], {\n staticClass: \"white--text\"\n }, [_vm._v(\"View by Lot\")]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VSpacer\"]), _c(vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_4__[\"VTextField\"], {\n staticClass: \"mb-2 py-0\",\n attrs: {\n \"append-icon\": \"mdi-magnify\",\n label: \"Search\",\n \"single-line\": \"\",\n \"hide-details\": \"\"\n },\n model: {\n value: _vm.search,\n callback: function ($$v) {\n _vm.search = $$v;\n },\n expression: \"search\"\n }\n })], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCard\"], {\n attrs: {\n color: \"indigo lighten-4\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\"Average Prequal: \" + _vm._s(_vm._f(\"currencyUSD\")(_vm.averagePrequal)))])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\" No. of Prequals: \" + _vm._s(_vm.numberOfPrequals))])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\" Total Properties: \" + _vm._s(_vm.listData.length))])])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(vuetify_lib_components_VDataTable__WEBPACK_IMPORTED_MODULE_3__[\"VDataTable\"], {\n attrs: {\n dense: \"\",\n \"sort-by\": \"firstLotPreference\",\n \"sort-desc\": true,\n \"disable-pagination\": \"\",\n \"hide-default-footer\": \"\",\n headers: _vm.headers,\n items: _vm.listData,\n search: _vm.search,\n \"loading-text\": \"Loading...\",\n loading: _vm.loading\n },\n scopedSlots: _vm._u([{\n key: `item.firstLotPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.firstLotPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.firstLotPreference.length) + \" \")])];\n }\n }, {\n key: `item.secondLotPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.secondLotPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.secondLotPreference.length) + \" \")])];\n }\n }, {\n key: `item.thirdLotPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.thirdLotPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.thirdLotPreference.length) + \" \")])];\n }\n }, {\n key: `item.listPrice`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"currencyUSD\")(item.listPrice)))])];\n }\n }, {\n key: `item.psf`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"currencyUSD\")(item.psf)))])];\n }\n }, {\n key: `item.squareFeet`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"integer\")(item.squareFeet)))])];\n }\n }], null, true)\n }, [_c(\"template\", {\n slot: \"body.append\"\n }, [_c(\"tr\", {\n staticClass: \"title\"\n }, [_c(\"th\", {\n staticClass: \"title\",\n attrs: {\n colspan: \"9\"\n }\n }, [_vm._v(\"Total\")]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(_vm._s(_vm.firstHomeCountTotal))]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(_vm._s(_vm.secondHomeCountTotal))]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(_vm._s(_vm.thirdHomeCountTotal) + \" \")]), _c(\"th\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.totalOfTotals))]), _c(\"th\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.totalOfwtScore))])])])], 2)], 1)], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(\"PopupContactList\", {\n attrs: {\n preBuiltHeaders: _vm.popupContactHeaders,\n onClose: _vm.popupContactClose,\n model: _vm.dialog,\n prepopulatedList: _vm.subContactList\n },\n on: {\n \"update:model\": function ($event) {\n _vm.dialog = $event;\n }\n }\n })], 1)], 1)], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/Lot.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2257799412-vue-loader-template%22%7D!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"57799412-vue-loader-template\"}!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=template&id=0e20f773": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"57799412-vue-loader-template"}!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=template&id=0e20f773 ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\n/* harmony import */ var vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuetify/lib/components/VBtn */ \"./node_modules/vuetify/lib/components/VBtn/index.js\");\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/index.js\");\n/* harmony import */ var vuetify_lib_components_VCheckbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuetify/lib/components/VCheckbox */ \"./node_modules/vuetify/lib/components/VCheckbox/index.js\");\n/* harmony import */ var vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VGrid */ \"./node_modules/vuetify/lib/components/VGrid/index.js\");\n/* harmony import */ var vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VSelect */ \"./node_modules/vuetify/lib/components/VSelect/index.js\");\n/* harmony import */ var vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VTabs */ \"./node_modules/vuetify/lib/components/VTabs/index.js\");\n/* harmony import */ var vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuetify/lib/components/VToolbar */ \"./node_modules/vuetify/lib/components/VToolbar/index.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], {\n attrs: {\n justify: \"center\"\n }\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n attrs: {\n lg: \"12\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], {\n attrs: {\n flat: \"\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_6__[\"VToolbar\"], {\n attrs: {\n dense: \"\",\n dark: \"\",\n flat: \"\",\n color: \"secondary\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_6__[\"VToolbarTitle\"], {\n staticStyle: {\n width: \"400px\"\n }\n }, [_vm._v(\" Lot/Plan/Elevation Preferences \")])], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], {\n attrs: {\n color: \"indigo lighten-4\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardTitle\"], {\n staticClass: \"text-h4 text--secondary\"\n }, [_vm._v(\"Filters\")]), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n staticClass: \"mr-5\",\n attrs: {\n cols: \"4\"\n }\n }, [_c(vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_4__[\"VSelect\"], {\n attrs: {\n dense: \"\",\n label: \"Event\",\n items: _vm.rsvpList,\n \"item-text\": \"name\",\n \"return-object\": \"\"\n },\n model: {\n value: _vm.eventFilter,\n callback: function ($$v) {\n _vm.eventFilter = $$v;\n },\n expression: \"eventFilter\"\n }\n })], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(vuetify_lib_components_VCheckbox__WEBPACK_IMPORTED_MODULE_2__[\"VCheckbox\"], {\n attrs: {\n value: \"excludePurchasers\",\n label: \"Exclude Purchasers\"\n },\n model: {\n value: _vm.filters,\n callback: function ($$v) {\n _vm.filters = $$v;\n },\n expression: \"filters\"\n }\n })], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(vuetify_lib_components_VCheckbox__WEBPACK_IMPORTED_MODULE_2__[\"VCheckbox\"], {\n attrs: {\n value: \"excludedContacts\",\n label: \"Remove Excluded Contacts\"\n },\n model: {\n value: _vm.filters,\n callback: function ($$v) {\n _vm.filters = $$v;\n },\n expression: \"filters\"\n }\n })], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(vuetify_lib_components_VCheckbox__WEBPACK_IMPORTED_MODULE_2__[\"VCheckbox\"], {\n attrs: {\n value: \"qualified\",\n label: \"Show only Lender Qualified\"\n },\n model: {\n value: _vm.filters,\n callback: function ($$v) {\n _vm.filters = $$v;\n },\n expression: \"filters\"\n }\n })], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(vuetify_lib_components_VCheckbox__WEBPACK_IMPORTED_MODULE_2__[\"VCheckbox\"], {\n attrs: {\n value: \"hasSiteVisit\",\n label: \"Has Site Visit\"\n },\n model: {\n value: _vm.filters,\n callback: function ($$v) {\n _vm.filters = $$v;\n },\n expression: \"filters\"\n }\n })], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], {\n attrs: {\n small: \"\",\n color: \"success\"\n },\n on: {\n click: _vm.clearFilters\n }\n }, [_vm._v(\"Clear Filters\")])], 1)], 1)], 1), _c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTabs\"], {\n attrs: {\n dense: \"\",\n grow: \"\",\n \"center-active\": \"\",\n \"background-color\": \"indigo lighten-4\",\n color: \"secondary\",\n \"slider-color\": \"success\",\n \"slider-size\": \"4\"\n },\n model: {\n value: _vm.tab,\n callback: function ($$v) {\n _vm.tab = $$v;\n },\n expression: \"tab\"\n }\n }, [_c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTab\"], {\n key: \"lot\",\n staticClass: \"tabTitle\"\n }, [_vm._v(\"Lot\")]), _c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTab\"], {\n key: \"plan\",\n staticClass: \"tabTitle\"\n }, [_vm._v(\"Plan\")]), _c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTab\"], {\n key: \"elev\",\n staticClass: \"tabTitle\"\n }, [_vm._v(\"Elevation\")])], 1), _c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTabsItems\"], {\n model: {\n value: _vm.tab,\n callback: function ($$v) {\n _vm.tab = $$v;\n },\n expression: \"tab\"\n }\n }, [_c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTabItem\"], {\n key: \"lot\"\n }, [_c(\"LotPreferences\", {\n attrs: {\n filtersArray: _vm.filters,\n eventFilter: _vm.eventFilter\n },\n on: {\n prequalStats: _vm.setPrequalStats\n }\n })], 1), _c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTabItem\"], {\n key: \"plan\"\n }, [_c(\"PlanPreferences\", {\n attrs: {\n filtersArray: _vm.filters,\n eventFilter: _vm.eventFilter\n },\n on: {\n prequalStats: _vm.setPrequalStats\n }\n })], 1), _c(vuetify_lib_components_VTabs__WEBPACK_IMPORTED_MODULE_5__[\"VTabItem\"], {\n key: \"elev\"\n }, [_c(\"ElevationPreference\", {\n attrs: {\n filtersArray: _vm.filters,\n eventFilter: _vm.eventFilter\n },\n on: {\n prequalStats: _vm.setPrequalStats\n }\n })], 1)], 1)], 1)], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2257799412-vue-loader-template%22%7D!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"57799412-vue-loader-template\"}!./node_modules/vuetify-loader/lib/loader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/Plan.vue?vue&type=template&id=bbe2bf50": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"57799412-vue-loader-template"}!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/Plan.vue?vue&type=template&id=bbe2bf50 ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/index.js\");\n/* harmony import */ var vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuetify/lib/components/VChip */ \"./node_modules/vuetify/lib/components/VChip/index.js\");\n/* harmony import */ var vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuetify/lib/components/VGrid */ \"./node_modules/vuetify/lib/components/VGrid/index.js\");\n/* harmony import */ var vuetify_lib_components_VDataTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VDataTable */ \"./node_modules/vuetify/lib/components/VDataTable/index.js\");\n/* harmony import */ var vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VTextField */ \"./node_modules/vuetify/lib/components/VTextField/index.js\");\n/* harmony import */ var vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VToolbar */ \"./node_modules/vuetify/lib/components/VToolbar/index.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], {\n attrs: {\n justify: \"center\"\n }\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n lg: \"12\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCard\"], {\n staticClass: \"mb-4\",\n attrs: {\n flat: \"\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__[\"VToolbar\"], {\n attrs: {\n dense: \"\",\n dark: \"\",\n flat: \"\",\n color: \"secondary\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_5__[\"VToolbarTitle\"], {\n staticClass: \"white--text\"\n }, [_vm._v(\"View by Plan\")]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VSpacer\"]), _c(vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_4__[\"VTextField\"], {\n staticClass: \"mb-2 py-0\",\n attrs: {\n \"append-icon\": \"mdi-magnify\",\n label: \"Search\",\n \"single-line\": \"\",\n \"hide-details\": \"\"\n },\n model: {\n value: _vm.search,\n callback: function ($$v) {\n _vm.search = $$v;\n },\n expression: \"search\"\n }\n })], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCard\"], {\n attrs: {\n color: \"indigo lighten-4\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_0__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\"Average Prequal: \" + _vm._s(_vm._f(\"currencyUSD\")(_vm.averagePrequal)))])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\" No. of Prequals: \" + _vm._s(_vm.numberOfPrequals))])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"p\", [_vm._v(\" Total Plans: \" + _vm._s(_vm.listData.length))])])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(vuetify_lib_components_VDataTable__WEBPACK_IMPORTED_MODULE_3__[\"VDataTable\"], {\n attrs: {\n dense: \"\",\n \"hide-default-footer\": \"\",\n \"disable-pagination\": \"\",\n headers: _vm.headers,\n \"sort-by\": \"firstPlanPreference\",\n \"sort-desc\": true,\n items: _vm.listData,\n search: _vm.search,\n \"loading-text\": \"Loading...\",\n loading: _vm.loading\n },\n scopedSlots: _vm._u([{\n key: `item.firstPlanPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.firstPlanPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.firstPlanPreference.length) + \" \")])];\n }\n }, {\n key: `item.secondPlanPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.secondPlanPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.secondPlanPreference.length) + \" \")])];\n }\n }, {\n key: `item.thirdPlanPreference`,\n fn: function (row) {\n return [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_1__[\"VChip\"], {\n attrs: {\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.displayContacts(row.item.thirdPlanPreference);\n }\n }\n }, [_vm._v(\" \" + _vm._s(row.item.thirdPlanPreference.length) + \" \")])];\n }\n }, {\n key: `item.title`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(`${item.title}`))])];\n }\n }, {\n key: `item.basePrice`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"currencyUSD\")(item.basePrice)))])];\n }\n }, {\n key: `item.bsf`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"currencyUSD\")(item.bsf)))])];\n }\n }, {\n key: `item.squareFeet`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm._f(\"integer\")(item.squareFeet)))])];\n }\n }], null, true)\n }, [_c(\"template\", {\n slot: \"body.append\"\n }, [_c(\"tr\", {\n staticClass: \"title\"\n }, [_c(\"th\", {\n staticClass: \"title\",\n attrs: {\n colspan: \"7\"\n }\n }, [_vm._v(\"Total\")]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(_vm._s(_vm.firstPlanCountTotal))]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(_vm._s(_vm.secondPlanCountTotal))]), _c(\"th\", {\n staticClass: \"title text-center\"\n }, [_vm._v(_vm._s(_vm.thirdPlanCountTotal) + \" \")]), _c(\"th\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.totalOfTotals))]), _c(\"th\", {\n staticClass: \"title\"\n }, [_vm._v(_vm._s(_vm.totalOfwtScore))])])])], 2)], 1)], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(\"PopupContactList\", {\n attrs: {\n preBuiltHeaders: _vm.popupContactHeaders,\n onClose: _vm.popupContactClose,\n model: _vm.dialog,\n prepopulatedList: _vm.subContactList\n },\n on: {\n \"update:model\": function ($event) {\n _vm.dialog = $event;\n }\n }\n })], 1)], 1)], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/Plan.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2257799412-vue-loader-template%22%7D!./node_modules/vuetify-loader/lib/loader.js??ref--4!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=style&index=0&id=0e20f773&lang=scss": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=style&index=0&id=0e20f773&lang=scss ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".mdc-typography-style-headline {\\n font-family: Roboto;\\n font-size: 16 .mdc-typography-style-headline --error;\\n font-size-color: red;\\n}\\n.tabTitle {\\n font-weight: bold;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=style&index=0&id=0e20f773&lang=scss": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-style-loader??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Reports/Lot-Plan-Elev/LotPlanElev.vue?vue&type=style&index=0&id=0e20f773&lang=scss ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// style-loader: Adds some css to the DOM by adding a