(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[70],{ /***/ "./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/TopProspects/TopProspects.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/TopProspects/TopProspects.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 _TopProspectsFilters_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TopProspectsFilters.vue */ \"./src/components/Reports/TopProspects/TopProspectsFilters.vue\");\n/* harmony import */ var _Email_ComposerPopup_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Email/ComposerPopup.vue */ \"./src/components/Email/ComposerPopup.vue\");\n/* harmony import */ var _Task_CreateTaskPopup_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Task/CreateTaskPopup.vue */ \"./src/components/Task/CreateTaskPopup.vue\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _lib_setPageTitle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lib/setPageTitle */ \"./src/lib/setPageTitle.js\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n TopProspectsFilters: _TopProspectsFilters_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n ComposeEmailPopup: _Email_ComposerPopup_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n CreateTaskPopup: _Task_CreateTaskPopup_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {},\n data() {\n return {\n emailDialog: false,\n taskDialog: false,\n expanded: [],\n selectedContacts: [],\n contactsToEmail: [],\n contactsToTask: [],\n listData: [],\n search: '',\n headers: [{\n text: 'Name/Location',\n value: 'contact',\n sortable: true\n }, {\n text: 'Phone',\n value: 'primaryPhone',\n sortable: true\n }, {\n text: 'Origin/Age',\n value: 'origin',\n sortable: true\n }, {\n text: 'Media Source',\n value: 'MediaSource.name',\n sortable: true\n }, {\n text: 'Non Sub. Rating',\n value: 'nonSubRating',\n sortable: true\n }, {\n text: 'Sub. Rating',\n value: 'subjectiveRatingString',\n sortable: true\n }, {\n text: 'Homes',\n value: 'lotInterest',\n sortable: true\n }, {\n text: 'Plans',\n value: 'planInterest',\n sortable: true\n }, {\n text: 'Registered Events',\n value: 'events',\n sortable: true\n }, {\n text: 'Status',\n value: 'status',\n sortable: true\n }, {\n text: 'Open Actions',\n value: 'Tasks.length',\n sortable: true\n }, {\n text: '',\n value: 'data-table-expand'\n }],\n settings: {},\n groupByLeadOrigin: [],\n location: [],\n groupByMediaSource: [],\n totalContacts: [],\n subjectiveRatingBreakdown: [],\n nonSubjectiveRatingBreakdown: [],\n statusSummary: [],\n userList: [],\n readMoreNotes: {\n value: false,\n id: 0\n },\n readMoreComms: {\n value: false,\n id: 0\n }\n };\n },\n mounted() {\n Object(_lib_setPageTitle__WEBPACK_IMPORTED_MODULE_6__[\"setPageTitle\"])('Top Prospects', this.$parent.$el.className, true);\n this.$store.dispatch('User/pullData').then(data => {\n this.userList = data;\n });\n this.$root.$on('EmailSent', () => {\n this.emailDialog = false;\n });\n },\n computed: {\n totalLeadOrigin() {\n return this.groupByLeadOrigin.reduce((prevVal, nextVal) => prevVal + Number(nextVal[1]), 0);\n },\n totalMediaSource() {\n return this.groupByMediaSource.reduce((prevVal, nextVal) => prevVal + Number(nextVal[1]), 0);\n },\n totalLocation() {\n return this.location.reduce((prevVal, nextVal) => prevVal + Number(nextVal[1]), 0);\n },\n totalStatus() {\n return this.statusSummary.reduce((prevVal, nextVal) => prevVal + Number(nextVal[1]), 0);\n }\n },\n methods: {\n composeBulkEmail: function () {\n var contacts = this.selectedContacts.map(c => c.id); // contacts is an array here\n this.contactsToEmail = contacts;\n },\n createTask: function () {\n var contacts = this.selectedContacts.map(c => c.id); // contacts is an array here\n this.contactsToTask = contacts;\n },\n closeEmailDialog() {\n this.emailDialog = false;\n },\n emailsSubject: function (data) {\n var subject;\n if (data.commType === 64) {\n subject = data.CommEmail ? data.CommEmail.subject : 'No Subject';\n }\n if (data.commType === 70) {\n subject = data.description ? data.description : 'No Subject';\n }\n if (data.commType === 296) {\n subject = data.description ? data.description : 'No Subject';\n }\n data = subject;\n return data;\n },\n getCommSummaryText(comm) {\n var summaryText = '';\n if (comm.commType === 63 || comm.commType === 71) {\n if (comm.direction === 2) {\n summaryText = ` (${this.$options.filters.translateFormSelection(comm.CommPhone ? comm.CommPhone.callResponseId : null, 'responseItems')}) ` + comm.description;\n } else {\n summaryText = comm.description;\n }\n }\n if (comm.commType === 64 || comm.commType === 70 || comm.commType === 296) {\n summaryText = this.emailsSubject(comm);\n }\n if (comm.commType === 385 || comm.commType === 65) {\n summaryText = comm.description;\n }\n return summaryText;\n },\n getCommSummary(comm) {\n var summary = {\n inbound: 0,\n outbound: 0\n };\n if (comm) {\n comm.forEach(c => {\n if (c.direction === 1) {\n summary.inbound += 1;\n } else {\n summary.outbound += 1;\n }\n });\n }\n return summary;\n },\n showNotes(id, comms = false) {\n if (!comms) {\n this.readMoreNotes.value = !this.readMoreNotes.value;\n this.readMoreNotes.id = id;\n } else {\n this.readMoreComms.value = !this.readMoreComms.value;\n this.readMoreComms.id = id;\n }\n },\n getLastInboundActivity(contact) {\n var inboundType;\n if (contact.SiteVisits.length) {\n contact.SiteVisits.forEach(s => {\n if (s.createdAt === contact.lastActivity) {\n inboundType = 'Site Visit';\n }\n });\n }\n if (contact.Comms.length) {\n contact.Comms.forEach(c => {\n if (c.createdAt === contact.lastActivity && (c.commType === 64 || c.commType === 70)) {\n inboundType = 'Email';\n }\n if (c.createdAt === contact.lastActivity && (c.commType === 63 || c.commType === 71)) {\n inboundType = 'Phone Call';\n }\n if (c.createdAt === contact.lastActivity && c.commType === 385) {\n inboundType = 'Text Message';\n }\n if (c.createdAt === contact.lastActivity && c.commType === 65) {\n inboundType = 'Other';\n }\n });\n }\n if (contact.LoginEvents.length) {\n contact.LoginEvents.forEach(login => {\n if (login.createdAt === contact.lastActivity) {\n inboundType = 'Login';\n }\n });\n }\n if (contact.WebInteractions.length) {\n contact.WebInteractions.forEach(wi => {\n if (wi.createdAt === contact.lastActivity) {\n inboundType = 'Web Interaction';\n }\n });\n }\n return inboundType;\n },\n getNoteRelType(relType) {\n switch (relType) {\n case 4:\n return 'Site Visit';\n case 2:\n return 'Contact';\n case 6:\n return 'Communication';\n case 19:\n return 'Transaction';\n case 50:\n return 'Task';\n case 33:\n return 'Perception of Value';\n case 51:\n return 'Pre-Qualification';\n case 52:\n return 'Home Condition';\n default:\n return 'Type not Found';\n }\n },\n getUser(createUser) {\n const user = this.userList.filter(item => item.id === createUser);\n return user[0] ? user[0].fullName : 'System User';\n },\n getPercentage(value, total) {\n if (value > 0 && total > 0) {\n var pct = value * 100 / total;\n return pct.toFixed(0);\n } else {\n return 0;\n }\n },\n getInterests(data, plan) {\n var array = [];\n if (data !== null && !plan) {\n data.forEach(c => {\n if (c.AssetId) {\n array.push(c.Asset.lotNumber);\n }\n });\n } else if (data !== null && plan) {\n data.forEach(c => {\n if (c.PlanId) {\n array.push(c.AssetPlan.title);\n }\n });\n } else {\n array = '';\n }\n return array;\n },\n tableClick(row) {\n this.$store.dispatch('Contact/openContactWithRelatedCPIS', row.id);\n },\n getContactList(data, cityOrState) {\n this.totalContacts = data.contacts.length;\n this.groupByLeadOrigin = data.groupByLeadOrigin;\n if (cityOrState === 'city') {\n this.location = data.groupByCityLocation;\n }\n if (cityOrState === 'state') {\n this.location = data.groupByStateLocation;\n }\n this.groupByMediaSource = data.groupByMediaSource;\n this.subjectiveRatingBreakdown = data.subjectiveRatingBreakdown;\n this.nonSubjectiveRatingBreakdown = data.nonSubjectiveRatingBreakdown;\n this.listData = this.augmentData(data.contacts);\n this.getStatusSummary(this.listData);\n this.expanded = this.listData;\n },\n getStatusSummary(data) {\n const obj = {\n 'Website (W)': 0,\n 'Inbound Email (E)': 0,\n 'Inbound Phone (P)': 0,\n 'Site Visit (S)': 0,\n 'Web + Site (W+S)': 0,\n 'Financing Approval (F)': 0,\n 'Clicked eBlast (C)': 0,\n 'Opened eBlast (O)': 0\n };\n data.forEach(c => {\n if (c.status.includes('W')) {\n obj['Website (W)'] += 1;\n }\n if (c.status.includes('E')) {\n obj['Inbound Email (E)'] += 1;\n }\n if (c.status.includes('P')) {\n obj['Inbound Phone (P)'] += 1;\n }\n if (c.status.includes('S')) {\n obj['Site Visit (S)'] += 1;\n }\n if (c.status.includes('W') && c.status.includes('S')) {\n obj['Web + Site (W+S)'] += 1;\n }\n if (c.status.includes('W') && c.status.includes('F')) {\n obj['Financing Approval (F)'] += 1;\n }\n });\n const sortedObj = Object.entries(obj).sort(function (a, b) {\n return b[1] - a[1];\n });\n this.statusSummary = sortedObj;\n },\n getStatus(contact) {\n var status = [];\n if (contact.SiteVisits.length) {\n status.push('S');\n }\n if (contact.WebInteractions.length) {\n status.push('W');\n }\n if (contact.ContactPrequals.length) {\n status.push('F');\n }\n if (contact.CampaignActions.length) {\n contact.CampaignActions.forEach(c => {\n if (c.action === 'open') {\n status.push('O');\n }\n if (c.action === 'click') {\n status.push('C');\n }\n });\n }\n if (contact.Comms.length) {\n contact.Comms.forEach(c => {\n if ((c.commType === 64 && c.direction === 1 || c.commType === 70 && c.direction === 1) && !status.includes('E')) {\n status.push('E');\n }\n if ((c.commType === 63 && c.direction === 1 || c.commType === 71 && c.direction === 1) && !status.includes('P')) {\n status.push('P');\n }\n });\n }\n return status.join('-');\n },\n augmentData(data) {\n data = data.map(contact => {\n return {\n ...contact,\n age: `${moment__WEBPACK_IMPORTED_MODULE_5___default()(contact.createdAt).format('MM/DD/YYYY')} (${moment__WEBPACK_IMPORTED_MODULE_5___default()().diff(contact.createdAt, 'days')} Days)`,\n leadOriginString: this.$options.filters.translateFormSelection(contact.leadOrigin, 'leadOrigin'),\n nonSubRating: `${contact.ProjectInfos[0].leadscoreLabel} (${contact.ProjectInfos[0].leadscore})`,\n primaryPhone: this.$options.filters.prettyPhoneNumber(contact.primaryPhone),\n lotInterest: this.getInterests(contact.ContactPreferences, false),\n planInterest: this.getInterests(contact.ContactPreferences, true),\n status: this.getStatus(contact),\n subjectiveRatingString: contact.ProjectInfos.find(cpi => this.$store.state.AuthUser.activeProjects.includes(cpi.ProjectId)).subjectiveRating,\n leadScoreLabelString: contact.ProjectInfos.find(cpi => this.$store.state.AuthUser.activeProjects.includes(cpi.ProjectId)).leadscoreLabel\n };\n });\n return data;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Reports/TopProspects/TopProspects.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/TopProspects/TopProspectsFilters.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/TopProspects/TopProspectsFilters.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 _lib_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../lib/api */ \"./src/lib/api.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n data() {\n return {\n filteredContactList: [],\n planList: [],\n homeList: [],\n filteredSalesAgent: [],\n roles: [],\n userProject: [],\n apiFilters: {\n queryCondition: false,\n siteVisits: null,\n comms: null,\n showContactRatings: ['A', 'B'],\n showLeadScore: ['Highest', 'High'],\n contactType: [1],\n plan: null,\n home: null,\n salesAgent: 0\n },\n location: 'city',\n resultsCount: 0\n };\n },\n mounted() {\n this.getContactResultsCount();\n this.$store.dispatch('AssetPlan/pullData').then(data => {\n this.planList = data;\n });\n this.$store.dispatch('Asset/pullData').then(data => {\n this.homeList = data;\n });\n this.$store.dispatch('UserProjectMap/getProjectUsers').then(data => {\n this.userProject = data;\n this.$store.dispatch('User/getRoleSalesAgent').then(data => {\n this.roles = data;\n this.activeAgents();\n });\n });\n },\n watch: {\n apiFilters: {\n handler() {\n this.getContactResultsCount();\n },\n deep: true\n }\n },\n methods: {\n populate() {\n if (this.apiFilters.queryCondition && (!this.apiFilters.showContactRatings.length || !this.apiFilters.showLeadScore.length)) {\n alert('Please select subjective And non-subjective first');\n return;\n }\n if (!this.apiFilters.queryCondition && !this.apiFilters.showContactRatings.length && !this.apiFilters.showLeadScore.length) {\n alert('Please select subjective Or non-subjective first');\n return;\n }\n this.$store.dispatch('loading');\n Object(_lib_api__WEBPACK_IMPORTED_MODULE_1__[\"doAPIGet\"])('/reports/topProspects', {\n apiFilters: this.apiFilters\n }).then(res => {\n this.filteredContactList = res.data.contacts;\n this.resultsCount = res.data.contacts.length;\n this.$emit('filteredContacts', res.data, this.location);\n this.$store.dispatch('done', null, {\n root: true\n });\n });\n },\n activeAgents() {\n this.userProject.forEach(user => {\n this.roles.roleSaleAgent.forEach(role => {\n if (role.id === user.id) {\n this.filteredSalesAgent.push(user);\n }\n });\n });\n this.filteredSalesAgent.push({\n UserId: null,\n User: {\n fullName: '-Unassigned'\n }\n });\n },\n resetFilters() {\n this.filteredContactList = [];\n this.apiFilters = {\n queryCondition: false,\n siteVisits: null,\n comms: null,\n showContactRatings: ['A', 'B'],\n showLeadScore: ['Highest', 'High'],\n contactType: [1],\n plan: null,\n home: null,\n salesAgent: 0\n };\n this.location = 'city';\n },\n getContactResultsCount() {\n this.$store.dispatch('loading');\n Object(_lib_api__WEBPACK_IMPORTED_MODULE_1__[\"doAPIGet\"])('/reports/topProspects', {\n apiFilters: this.apiFilters,\n estimateContacts: true\n }).then(res => {\n this.resultsCount = res.data.contacts;\n this.$store.dispatch('done', null, {\n root: true\n });\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Reports/TopProspects/TopProspectsFilters.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/TopProspects/TopProspects.vue?vue&type=template&id=84bd61c2": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/TopProspects/TopProspects.vue?vue&type=template&id=84bd61c2 ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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_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_VDialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VDialog */ \"./node_modules/vuetify/lib/components/VDialog/index.js\");\n/* harmony import */ var vuetify_lib_components_VDivider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VDivider */ \"./node_modules/vuetify/lib/components/VDivider/index.js\");\n/* harmony import */ var vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuetify/lib/components/VIcon */ \"./node_modules/vuetify/lib/components/VIcon/index.js\");\n/* harmony import */ var vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__ = __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\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\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n lg: \"12\"\n }\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(\"TopProspectsFilters\", {\n on: {\n filteredContacts: _vm.getContactList\n }\n })], 1)], 1), _vm.listData.length ? _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardTitle\"], [_c(\"h3\", [_vm._v(\"Lead Summary:\")])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n staticClass: \"pl-2\",\n attrs: {\n cols: \"3\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbar\"], {\n attrs: {\n height: \"40\",\n dense: \"\",\n color: \"#ff8000\",\n elevation: \"0\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbarTitle\"], {\n staticClass: \"white--text\"\n }, [_vm._v(\"Origin\")])], 1), _c(\"table\", {\n staticClass: \"customTable\"\n }, [_vm._l(_vm.groupByLeadOrigin, function (item, index) {\n return _c(\"tr\", {\n key: index\n }, [_c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(item[0]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(item[1]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(_vm.getPercentage(item[1], _vm.totalLeadOrigin)) + \"%\")])]);\n }), _c(\"tr\", [_c(\"td\", [_c(\"strong\", [_vm._v(\"Total\")])]), _c(\"td\", [_c(\"strong\", [_vm._v(_vm._s(_vm.totalLeadOrigin))])])])], 2)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"3\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbar\"], {\n staticClass: \"secondary\",\n attrs: {\n height: \"40\",\n dense: \"\",\n elevation: \"0\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbarTitle\"], {\n staticClass: \"white--text\"\n }, [_vm._v(\"Location\")])], 1), _c(\"table\", {\n staticClass: \"customTable\"\n }, [_vm._l(_vm.location, function (item, index) {\n return _c(\"tr\", {\n key: index\n }, [_c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(item[0]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(item[1]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(_vm.getPercentage(item[1], _vm.totalLocation)) + \"%\")])]);\n }), _c(\"tr\", [_c(\"td\", [_c(\"strong\", [_vm._v(\"Total\")])]), _c(\"td\", [_c(\"strong\", [_vm._v(_vm._s(_vm.totalLocation))])])])], 2)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n cols: \"3\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbar\"], {\n attrs: {\n height: \"40\",\n dense: \"\",\n color: \"#d82735\",\n elevation: \"0\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbarTitle\"], {\n staticClass: \"white--text\"\n }, [_vm._v(\"Media Source\")])], 1), _c(\"table\", {\n staticClass: \"customTable\"\n }, [_vm._l(_vm.groupByMediaSource, function (item, index) {\n return _c(\"tr\", {\n key: index\n }, [_c(\"td\", {\n attrs: {\n width: \"30%\"\n }\n }, [_vm._v(_vm._s(item[0]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(item[1]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(_vm.getPercentage(item[1], _vm.totalMediaSource)) + \"%\")])]);\n }), _c(\"tr\", [_c(\"td\", [_c(\"strong\", [_vm._v(\"Total\")])]), _c(\"td\", [_c(\"strong\", [_vm._v(_vm._s(_vm.totalMediaSource))])])])], 2)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n staticClass: \"pr-2\",\n attrs: {\n cols: \"3\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbar\"], {\n attrs: {\n height: \"40\",\n dense: \"\",\n color: \"#ddce00\",\n elevation: \"0\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_7__[\"VToolbarTitle\"], {\n staticClass: \"white--text\"\n }, [_vm._v(\"Status Summary\")])], 1), _c(\"table\", {\n staticClass: \"customTable\"\n }, [_vm._l(_vm.statusSummary, function (item, index) {\n return _c(\"tr\", {\n key: index\n }, [_c(\"td\", {\n attrs: {\n width: \"30%\"\n }\n }, [_vm._v(_vm._s(item[0]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(item[1]))]), _c(\"td\", {\n attrs: {\n width: \"25%\"\n }\n }, [_vm._v(_vm._s(_vm.getPercentage(item[1], _vm.totalStatus)) + \"%\")])]);\n }), _c(\"tr\", [_c(\"td\", [_c(\"strong\", [_vm._v(\"Total\")])]), _c(\"td\", [_c(\"strong\", [_vm._v(_vm._s(_vm.totalStatus))])])])], 2)], 1)], 1), _c(vuetify_lib_components_VDivider__WEBPACK_IMPORTED_MODULE_5__[\"VDivider\"], {\n staticClass: \"ml-5 mr-5 mt-5 mb-5\"\n }), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], {\n staticClass: \"ml-5\"\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(\"h2\", {\n staticClass: \"mr-4\"\n }, [_vm._v(\"Total Prospects: \" + _vm._s(_vm.listData.length))]), _c(\"p\", [_vm._v(\"( \" + _vm._s(_vm.getPercentage(_vm.listData.length, _vm.totalContacts)) + \"% of \" + _vm._s(_vm.totalContacts) + \" Prospects )\")])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], {\n attrs: {\n align: \"right\"\n }\n }, [_c(vuetify_lib_components_VDialog__WEBPACK_IMPORTED_MODULE_4__[\"VDialog\"], {\n attrs: {\n persistent: \"\",\n scrollable: \"\"\n },\n scopedSlots: _vm._u([{\n key: \"activator\",\n fn: function ({\n on,\n attrs\n }) {\n return [_c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], _vm._g(_vm._b({\n staticClass: \"mr-4 rounded-0\",\n attrs: {\n disabled: _vm.selectedContacts.length <= 0,\n small: \"\",\n color: \"success\"\n },\n on: {\n click: _vm.composeBulkEmail\n }\n }, \"v-btn\", attrs, false), on), [_c(vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_6__[\"VIcon\"], {\n staticClass: \"pr-2\"\n }, [_vm._v(\"mdi-email-send\")]), _vm._v(\" Send Email \")], 1)];\n }\n }], null, false, 1659032061),\n model: {\n value: _vm.emailDialog,\n callback: function ($$v) {\n _vm.emailDialog = $$v;\n },\n expression: \"emailDialog\"\n }\n }, [_vm.emailDialog ? _c(\"ComposeEmailPopup\", {\n attrs: {\n model: _vm.emailDialog,\n toProp: _vm.contactsToEmail\n },\n on: {\n \"update:model\": function ($event) {\n _vm.emailDialog = $event;\n }\n }\n }) : _vm._e()], 1), _c(vuetify_lib_components_VDialog__WEBPACK_IMPORTED_MODULE_4__[\"VDialog\"], {\n attrs: {\n persistent: \"\",\n scrollable: \"\"\n },\n scopedSlots: _vm._u([{\n key: \"activator\",\n fn: function ({\n on,\n attrs\n }) {\n return [_c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], _vm._g(_vm._b({\n staticClass: \"mr-4 rounded-0\",\n attrs: {\n disabled: _vm.selectedContacts.length <= 0,\n small: \"\",\n color: \"success\"\n },\n on: {\n click: _vm.createTask\n }\n }, \"v-btn\", attrs, false), on), [_c(vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_6__[\"VIcon\"], {\n staticClass: \"pr-2\"\n }, [_vm._v(\"mdi-calendar-plus \")]), _vm._v(\"Create Action \")], 1)];\n }\n }], null, false, 1614170706),\n model: {\n value: _vm.taskDialog,\n callback: function ($$v) {\n _vm.taskDialog = $$v;\n },\n expression: \"taskDialog\"\n }\n }, [_c(\"CreateTaskPopup\", {\n attrs: {\n arrayOfContactsProp: _vm.contactsToTask,\n model: _vm.taskDialog\n },\n on: {\n \"update:model\": function ($event) {\n _vm.taskDialog = $event;\n }\n }\n })], 1)], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], {\n staticClass: \"ml-5\"\n }, [_c(\"h4\", {\n staticClass: \"mr-4\"\n }, [_vm._v(\"Subjective Rating Breakdown: \")]), _c(\"p\", [_vm._v(\" A: \" + _vm._s(_vm.subjectiveRatingBreakdown.A ? _vm.subjectiveRatingBreakdown.A : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.subjectiveRatingBreakdown.A ? _vm.subjectiveRatingBreakdown.A : 0, _vm.listData.length)) + \"% ) | B: \" + _vm._s(_vm.subjectiveRatingBreakdown.B ? _vm.subjectiveRatingBreakdown.B : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.subjectiveRatingBreakdown.B ? _vm.subjectiveRatingBreakdown.B : 0, _vm.listData.length)) + \"% ) | C: \" + _vm._s(_vm.subjectiveRatingBreakdown.C ? _vm.subjectiveRatingBreakdown.C : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.subjectiveRatingBreakdown.C ? _vm.subjectiveRatingBreakdown.C : 0, _vm.listData.length)) + \"% ) | D: \" + _vm._s(_vm.subjectiveRatingBreakdown.D ? _vm.subjectiveRatingBreakdown.D : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.subjectiveRatingBreakdown.D ? _vm.subjectiveRatingBreakdown.D : 0, _vm.listData.length)) + \"% ) \")])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], {\n staticClass: \"ml-5\"\n }, [_c(\"h4\", {\n staticClass: \"mr-4\"\n }, [_vm._v(\"Non-Subjective Rating Breakdown: \")]), _c(\"p\", [_vm._v(\" Highest: \" + _vm._s(_vm.nonSubjectiveRatingBreakdown.Highest ? _vm.nonSubjectiveRatingBreakdown.Highest : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.nonSubjectiveRatingBreakdown.Highest ? _vm.nonSubjectiveRatingBreakdown.Highest : 0, _vm.listData.length)) + \"% ) | High: \" + _vm._s(_vm.nonSubjectiveRatingBreakdown.High ? _vm.nonSubjectiveRatingBreakdown.High : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.nonSubjectiveRatingBreakdown.High ? _vm.nonSubjectiveRatingBreakdown.High : 0, _vm.listData.length)) + \"% ) | Medium: \" + _vm._s(_vm.nonSubjectiveRatingBreakdown.Medium ? _vm.nonSubjectiveRatingBreakdown.Medium : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.nonSubjectiveRatingBreakdown.Medium ? _vm.nonSubjectiveRatingBreakdown.Medium : 0, _vm.listData.length)) + \"% ) | Low: \" + _vm._s(_vm.nonSubjectiveRatingBreakdown.Low ? _vm.nonSubjectiveRatingBreakdown.Low : 0) + \" ( \" + _vm._s(_vm.getPercentage(_vm.nonSubjectiveRatingBreakdown.Low ? _vm.nonSubjectiveRatingBreakdown.Low : 0, _vm.listData.length)) + \"% ) \")])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], {\n staticClass: \"mt-5\"\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(vuetify_lib_components_VDataTable__WEBPACK_IMPORTED_MODULE_3__[\"VDataTable\"], {\n attrs: {\n \"sort-by\": \"nonSubRating\",\n \"sort-desc\": true,\n headers: _vm.headers,\n items: _vm.listData,\n search: _vm.search,\n dense: \"\",\n \"item-key\": \"id\",\n \"show-select\": \"\",\n \"show-expand\": \"\",\n expanded: _vm.expanded\n },\n on: {\n \"update:expanded\": function ($event) {\n _vm.expanded = $event;\n }\n },\n scopedSlots: _vm._u([{\n key: \"expanded-item\",\n fn: function ({\n item\n }) {\n return [_c(\"td\", {\n attrs: {\n colspan: 8\n }\n }, [item.Notes.length ? _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], {\n staticClass: \"mt-1 mb-1 text-left\",\n attrs: {\n \"max-width\": \"50%\",\n elevation: \"0\",\n tile: \"\"\n }\n }, [_vm.readMoreNotes.id === item.id && _vm.readMoreNotes.value ? _c(\"div\", _vm._l(item.Notes, function (note) {\n return _c(\"div\", {\n key: note.id\n }, [_c(\"h4\", [_vm._v(\"[ \" + _vm._s(_vm._f(\"prettyDateTime\")(note.createdAt)) + \" \" + _vm._s(_vm.getUser(note.createUser)) + \" | \" + _vm._s(_vm.getNoteRelType(note.relateType)) + \" ]\")]), _c(\"p\", [_vm._v(_vm._s(note.body))])]);\n }), 0) : _c(\"div\", _vm._l(item.Notes, function (note) {\n return _c(\"div\", {\n key: note.id\n }, [_c(\"h4\", [_vm._v(\"[ \" + _vm._s(_vm._f(\"prettyDateTime\")(note.createdAt)) + \" \" + _vm._s(_vm.getUser(note.createUser)) + \" | \" + _vm._s(_vm.getNoteRelType(note.relateType)) + \" ]\")]), _c(\"p\", [_vm._v(_vm._s(note.body))])]);\n }), 0), item.Notes.length > 2 ? _c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], {\n attrs: {\n text: \"\",\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.showNotes(item.id);\n }\n }\n }, [_vm._v(_vm._s(_vm.readMoreNotes.value && _vm.readMoreNotes.id === item.id ? \"Show Less\" : \"Show More\"))]) : _vm._e()], 1) : _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], {\n staticClass: \"mt-1 mb-1 text-left\",\n attrs: {\n \"max-width\": \"50%\",\n elevation: \"0\",\n tile: \"\"\n }\n }, [_c(\"h3\", [_vm._v(\"There are no notes for this user\")])])], 1), _c(\"td\", {\n attrs: {\n colspan: 5\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], {\n staticClass: \"mt-1 mb-1\",\n attrs: {\n elevation: \"0\",\n tile: \"\"\n }\n }, [_c(\"h4\", {\n staticClass: \"mb-4\"\n }, [_vm._v(\"Communication Summary (Inbound: \" + _vm._s(_vm.getCommSummary(item.Comms).inbound) + \" | Outbound: \" + _vm._s(_vm.getCommSummary(item.Comms).outbound) + \")\")]), _vm.readMoreComms.id === item.id && _vm.readMoreComms.value ? _c(\"div\", _vm._l(item.Comms, function (comm) {\n return _c(\"div\", {\n key: comm.id\n }, [_c(\"h4\", [_vm._v(\"[ \" + _vm._s(_vm._f(\"prettyDateTime\")(comm.createdAt)) + \" | \" + _vm._s(comm.direction ? \"Outbound\" : \"Inbound\") + \" \" + _vm._s(_vm._f(\"translateFormSelection\")(comm.commType, \"commTypes\")) + \" ]\")]), _c(\"p\", [_vm._v(_vm._s(comm.summary))])]);\n }), 0) : _c(\"div\", _vm._l(item.Comms.slice(0, 2), function (comm) {\n return _c(\"div\", {\n key: comm.id\n }, [_c(\"h4\", [_vm._v(\"[ \" + _vm._s(_vm._f(\"prettyDateTime\")(comm.createdAt)) + \" | \" + _vm._s(comm.direction ? \"Outbound\" : \"Inbound\") + \" \" + _vm._s(_vm._f(\"translateFormSelection\")(comm.commType, \"commTypes\")) + \" ]\")]), _c(\"p\", [_vm._v(_vm._s(_vm.getCommSummaryText(comm)))])]);\n }), 0), item.Comms.length > 2 ? _c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], {\n attrs: {\n text: \"\",\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: function ($event) {\n return _vm.showNotes(item.id, true);\n }\n }\n }, [_vm._v(_vm._s(_vm.readMoreComms.value && _vm.readMoreComms.id === item.id ? \"Show Less\" : \"Show More\"))]) : _vm._e()], 1)], 1)];\n }\n }, {\n key: `item.origin`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(item.age))]), _c(\"br\"), _c(\"span\", [_vm._v(_vm._s(item.leadOriginString))])];\n }\n }, {\n key: `item.contact`,\n fn: function ({\n item\n }) {\n return [_c(\"strong\", {\n staticClass: \"secondary--text\",\n on: {\n click: function ($event) {\n return _vm.tableClick(item);\n }\n }\n }, [_vm._v(_vm._s(item.fullNameLastFirst))]), _c(\"br\"), _c(\"span\", [_vm._v(_vm._s(item.city) + \" \" + _vm._s(item.state))])];\n }\n }, {\n key: `item.lastActivity`,\n fn: function ({\n item\n }) {\n return [_c(\"span\", [_vm._v(_vm._s(_vm.getLastInboundActivity(item)))]), _c(\"br\"), _c(\"span\", [_vm._v(\"( \" + _vm._s(_vm._f(\"prettyDate\")(item.lastActivity)) + \" )\")])];\n }\n }, {\n key: `item.events`,\n fn: function ({\n item\n }) {\n return _vm._l(item.Rsvps, function (event) {\n return _c(\"ul\", {\n key: event.id\n }, [_c(\"li\", [_vm._v(_vm._s(event.RsvpEvent.name))])]);\n });\n }\n }], null, true),\n model: {\n value: _vm.selectedContacts,\n callback: function ($$v) {\n _vm.selectedContacts = $$v;\n },\n expression: \"selectedContacts\"\n }\n })], 1)], 1)], 1) : _vm._e()], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Reports/TopProspects/TopProspects.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/TopProspects/TopProspectsFilters.vue?vue&type=template&id=01a5168c": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/TopProspects/TopProspectsFilters.vue?vue&type=template&id=01a5168c ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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_VChip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuetify/lib/components/VChip */ \"./node_modules/vuetify/lib/components/VChip/index.js\");\n/* harmony import */ var vuetify_lib_components_VChipGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VChipGroup */ \"./node_modules/vuetify/lib/components/VChipGroup/index.js\");\n/* harmony import */ var vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VGrid */ \"./node_modules/vuetify/lib/components/VGrid/index.js\");\n/* harmony import */ var vuetify_lib_components_VRadioGroup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VRadioGroup */ \"./node_modules/vuetify/lib/components/VRadioGroup/index.js\");\n/* harmony import */ var vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuetify/lib/components/VSelect */ \"./node_modules/vuetify/lib/components/VSelect/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_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], {\n attrs: {\n color: \"indigo lighten-5\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"h4\", [_vm._v(\"Subjective Rating:\")]), _c(vuetify_lib_components_VChipGroup__WEBPACK_IMPORTED_MODULE_3__[\"VChipGroup\"], {\n attrs: {\n \"center-active\": \"\",\n column: \"\",\n multiple: \"\"\n },\n model: {\n value: _vm.apiFilters.showContactRatings,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"showContactRatings\", $$v);\n },\n expression: \"apiFilters.showContactRatings\"\n }\n }, [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"A\",\n filter: \"\"\n }\n }, [_vm._v(\"Rating A\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"B\",\n filter: \"\"\n }\n }, [_vm._v(\"Rating B\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"C\",\n filter: \"\"\n }\n }, [_vm._v(\"Rating C\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"D\",\n filter: \"\"\n }\n }, [_vm._v(\"Rating D\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"0\",\n filter: \"\"\n }\n }, [_vm._v(\"Not Rated\")])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"1\"\n }\n }, [_c(vuetify_lib_components_VRadioGroup__WEBPACK_IMPORTED_MODULE_5__[\"VRadioGroup\"], {\n model: {\n value: _vm.apiFilters.queryCondition,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"queryCondition\", $$v);\n },\n expression: \"apiFilters.queryCondition\"\n }\n }, [_c(vuetify_lib_components_VRadioGroup__WEBPACK_IMPORTED_MODULE_5__[\"VRadio\"], {\n staticClass: \"my-0 py-0\",\n attrs: {\n dense: \"\",\n label: \"And\",\n value: true\n }\n }), _c(vuetify_lib_components_VRadioGroup__WEBPACK_IMPORTED_MODULE_5__[\"VRadio\"], {\n staticClass: \"my-0 py-0\",\n attrs: {\n dense: \"\",\n label: \"OR\",\n value: false\n }\n })], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"1\"\n }\n }, [_c(\"h4\", [_vm._v(\"MSP Rating:\")]), _c(vuetify_lib_components_VChipGroup__WEBPACK_IMPORTED_MODULE_3__[\"VChipGroup\"], {\n attrs: {\n \"center-active\": \"\",\n column: \"\",\n multiple: \"\"\n },\n model: {\n value: _vm.apiFilters.showLeadScore,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"showLeadScore\", $$v);\n },\n expression: \"apiFilters.showLeadScore\"\n }\n }, [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"Highest\",\n filter: \"\"\n }\n }, [_vm._v(\"Highest\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"High\",\n filter: \"\"\n }\n }, [_vm._v(\"High\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"Medium\",\n filter: \"\"\n }\n }, [_vm._v(\"Medium\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"Low\",\n filter: \"\"\n }\n }, [_vm._v(\"Low\")])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"1\"\n }\n }, [_c(\"h4\", [_vm._v(\"Site Visit:\")]), _c(vuetify_lib_components_VChipGroup__WEBPACK_IMPORTED_MODULE_3__[\"VChipGroup\"], {\n attrs: {\n \"center-active\": \"\",\n column: \"\"\n },\n model: {\n value: _vm.apiFilters.siteVisits,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"siteVisits\", $$v);\n },\n expression: \"apiFilters.siteVisits\"\n }\n }, [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: 1,\n filter: \"\"\n }\n }, [_vm._v(\"w/ Site Visit\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: 2,\n filter: \"\"\n }\n }, [_vm._v(\"w/o Site Visit\")])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"h4\", [_vm._v(\"Inbound Communitcation:\")]), _c(vuetify_lib_components_VChipGroup__WEBPACK_IMPORTED_MODULE_3__[\"VChipGroup\"], {\n attrs: {\n \"center-active\": \"\",\n column: \"\"\n },\n model: {\n value: _vm.apiFilters.comms,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"comms\", $$v);\n },\n expression: \"apiFilters.comms\"\n }\n }, [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: 1,\n filter: \"\"\n }\n }, [_vm._v(\"w/ Inbound Communication\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: 2,\n filter: \"\"\n }\n }, [_vm._v(\"w/o Inbound Communication\")])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"1\"\n }\n }, [_c(\"h4\", [_vm._v(\"Contact Type:\")]), _c(vuetify_lib_components_VChipGroup__WEBPACK_IMPORTED_MODULE_3__[\"VChipGroup\"], {\n attrs: {\n \"center-active\": \"\",\n column: \"\",\n multiple: \"\"\n },\n model: {\n value: _vm.apiFilters.contactType,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"contactType\", $$v);\n },\n expression: \"apiFilters.contactType\"\n }\n }, [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: 1,\n filter: \"\"\n }\n }, [_vm._v(\"Buyer\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: 2,\n filter: \"\"\n }\n }, [_vm._v(\"Agent\")])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"h4\", [_vm._v(\"View Location Summary By:\")]), _c(vuetify_lib_components_VChipGroup__WEBPACK_IMPORTED_MODULE_3__[\"VChipGroup\"], {\n attrs: {\n \"center-active\": \"\",\n column: \"\"\n },\n model: {\n value: _vm.location,\n callback: function ($$v) {\n _vm.location = $$v;\n },\n expression: \"location\"\n }\n }, [_c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"city\",\n filter: \"\"\n }\n }, [_vm._v(\"City\")]), _c(vuetify_lib_components_VChip__WEBPACK_IMPORTED_MODULE_2__[\"VChip\"], {\n staticClass: \"mb-1 mr-2\",\n attrs: {\n ripple: false,\n \"active-class\": \"secondary\",\n value: \"state\",\n filter: \"\"\n }\n }, [_vm._v(\"State\")])], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"2\"\n }\n }, [_c(\"h4\", [_vm._v(\"Plan/Home Preference:\")]), _c(vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_6__[\"VSelect\"], {\n staticClass: \"my-0 py-0\",\n attrs: {\n dense: \"\",\n items: _vm.planList,\n \"item-text\": \"title\",\n \"item-value\": \"id\",\n label: \"Plan\",\n color: \"success\",\n outlined: \"\"\n },\n model: {\n value: _vm.apiFilters.plan,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"plan\", $$v);\n },\n expression: \"apiFilters.plan\"\n }\n }), _c(vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_6__[\"VSelect\"], {\n staticClass: \"my-0 py-0\",\n attrs: {\n dense: \"\",\n items: _vm.homeList,\n \"item-text\": \"lotNumber\",\n \"item-value\": \"id\",\n label: \"Home\",\n color: \"success\",\n outlined: \"\"\n },\n model: {\n value: _vm.apiFilters.home,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"home\", $$v);\n },\n expression: \"apiFilters.home\"\n }\n })], 1)], 1)], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VRow\"])], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"3\"\n }\n }, [_c(\"h4\", [_vm._v(\"Sales Consultant:\")]), _c(vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_6__[\"VSelect\"], {\n staticClass: \"mt-0 pt-0 pr-3\",\n attrs: {\n dense: \"\",\n items: _vm.filteredSalesAgent,\n \"item-text\": \"User.fullName\",\n \"item-value\": \"UserId\",\n label: \"Sales Consultant\",\n outlined: \"\"\n },\n model: {\n value: _vm.apiFilters.salesAgent,\n callback: function ($$v) {\n _vm.$set(_vm.apiFilters, \"salesAgent\", $$v);\n },\n expression: \"apiFilters.salesAgent\"\n }\n })], 1)], 1)], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardActions\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"6\"\n }\n }, [_c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], {\n staticClass: \"mr-4 rounded-0\",\n attrs: {\n color: \"success\",\n small: \"\"\n },\n on: {\n click: _vm.populate\n }\n }, [_vm._v(\"Generate Report\")]), _c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], {\n staticClass: \"mr-4 rounded-0\",\n attrs: {\n color: \"warning\",\n small: \"\"\n },\n on: {\n click: _vm.resetFilters\n }\n }, [_vm._v(\"Reset Filters\")])], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_4__[\"VCol\"], {\n attrs: {\n cols: \"6\"\n }\n }, [_c(\"h4\", [_vm._v(\"Results: \" + _vm._s(_vm.resultsCount))])])], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Reports/TopProspects/TopProspectsFilters.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/TopProspects/TopProspects.vue?vue&type=style&index=0&id=84bd61c2&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/TopProspects/TopProspects.vue?vue&type=style&index=0&id=84bd61c2&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.customTable {\\n display: block;\\n height: 400px;\\n overflow-y: scroll;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/components/Reports/TopProspects/TopProspects.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/TopProspects/TopProspects.vue?vue&type=style&index=0&id=84bd61c2&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/TopProspects/TopProspects.vue?vue&type=style&index=0&id=84bd61c2&lang=scss ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// style-loader: Adds some css to the DOM by adding a