(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[25],{ /***/ "./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/Task/CompletedDialogPopup.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/Task/CompletedDialogPopup.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 _SiteVisits_SiteVisitsEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../SiteVisits/SiteVisitsEdit */ \"./src/components/SiteVisits/SiteVisitsEdit.vue\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n SiteVisitsEdit: _SiteVisits_SiteVisitsEdit__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n data() {\n return {};\n },\n props: {\n model: {\n type: Boolean,\n required: true\n },\n taskObj: {\n type: Object,\n required: false\n },\n onClose: {\n type: Function,\n required: false,\n default: () => {}\n }\n },\n methods: {\n close: function () {\n // this.model = false // DONT USE! this code below to do the same\n this.$emit('update:model', false); // leverages the .sync property\n if (this.onClose) {\n this.onClose(true); // if the callback is provided... call it\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Task/CompletedDialogPopup.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/Task/TaskEdit.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/Task/TaskEdit.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 vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _store_dataMappers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../store/dataMappers */ \"./src/store/dataMappers.js\");\n/* harmony import */ var _lib_formSelections__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/formSelections */ \"./src/lib/formSelections.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _CompletedDialogPopup_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CompletedDialogPopup.vue */ \"./src/components/Task/CompletedDialogPopup.vue\");\n/* harmony import */ var _misc_SearchContactBasicList_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../misc/SearchContactBasicList.vue */ \"./src/components/misc/SearchContactBasicList.vue\");\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n CompletedDialogPopup: _CompletedDialogPopup_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n SearchContactBasicList: _misc_SearchContactBasicList_vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"]\n },\n props: {\n hideToolbar: {\n type: Boolean,\n required: false,\n default: false\n },\n taskId: {\n type: Number,\n required: true\n },\n arrayOfContactsProp: {\n type: Array,\n required: false\n },\n contactIdProp: {\n type: Number,\n required: false\n }\n },\n data() {\n return {\n userList: [],\n taskTypes: _lib_formSelections__WEBPACK_IMPORTED_MODULE_3__[\"default\"].taskTypes,\n taskStatusList: _lib_formSelections__WEBPACK_IMPORTED_MODULE_3__[\"default\"].taskStatus,\n statusDialog: false,\n taskData: null,\n selectedContact: null\n };\n },\n computed: {\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapState\"])('AuthUser', ['activeProject']),\n startAsString: function () {\n return moment__WEBPACK_IMPORTED_MODULE_4___default()(this.start).toISOString();\n },\n taskReadOnly: function () {\n return this.status !== 290 && !!this.obj.id || this.obj.taskType === 393;\n },\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapState\"])('Task', ['obj', 'error', 'changed']),\n // object type\n ...Object(_store_dataMappers__WEBPACK_IMPORTED_MODULE_2__[\"mapFields\"])({\n fields: ['start', 'end', 'taskType', 'summary', 'details', 'allDay', 'UserId', 'ContactId', 'status', 'completedTime', 'arrayOfContacts', 'ProjectId'],\n // array of mapped fields from the object\n base: 'Task',\n // object type\n mutation: 'INIT_OBJECT'\n }),\n projectListFilter() {\n if (!this.selectedContact) {\n return [];\n } else {\n return this.selectedContact.ProjectInfos.map(pi => pi.ProjectId);\n }\n }\n },\n watch: {\n start: function (newdata, old) {\n this.end = moment__WEBPACK_IMPORTED_MODULE_4___default()(newdata).add(1, 'hours').toISOString();\n },\n status: function (statusType) {\n // status 284 is completed\n if (statusType === 284 && this.completedTime === null) {\n this.completedTime = moment__WEBPACK_IMPORTED_MODULE_4___default()().format('YYYY-MM-DD hh:ss A');\n // task type 277 is site visit\n if (this.taskType === 277) {\n this.statusDialog = true;\n }\n }\n },\n ContactId: function (val) {\n this.initContact();\n }\n },\n mounted() {\n this.ProjectId = this.activeProject;\n if (this.contactIdProp) {\n this.ContactId = this.contactIdProp;\n }\n this.$root.$on('SiteVisitSaved', () => {\n this.statusDialog = false;\n });\n },\n beforeMount() {\n console.debug('Task form mounted'); // unique form name\n\n var stuffLoading = [];\n if (this.taskId && this.taskId > 0) {\n stuffLoading.push(this.$store.dispatch('Task/initById', this.taskId));\n } else {\n this.$store.dispatch('Task/clear'); // OBJECT NAME\n }\n stuffLoading.push(this.$store.dispatch('UserProjectMap/getProjectUsers').then(data => {\n this.userList = data;\n }));\n Promise.all(stuffLoading).then(stuff => {\n this.$emit('eventLoaded');\n this.taskData = this.obj;\n });\n if (!this.obj.id) {\n this.UserId = this.$store.getters['AuthUser/profile'].id;\n }\n },\n beforeDestroy() {\n this.clear();\n },\n beforeRouteLeave(to, from, next) {\n if (this.changed) {\n const answer = window.confirm('You have unsaved changes! Do you really want to leave?');\n if (answer) {\n next();\n } else {\n next(false);\n }\n } else {\n next();\n }\n },\n methods: {\n createTask() {\n if (this.arrayOfContactsProp) {\n this.createMultiple();\n } else {\n this.saveData();\n }\n },\n ...Object(vuex__WEBPACK_IMPORTED_MODULE_1__[\"mapActions\"])('Task', ['reset', 'saveData', 'clear', 'createMultiple']),\n popupTaskStatusOnClose(closed) {\n if (closed) {\n this.status = 290;\n } else {\n this.$store.dispatch('SiteVisit/clear');\n }\n },\n redirectToContact(contactId) {\n this.$store.dispatch('Contact/openContactWithRelatedCPIS', contactId);\n },\n async initContact() {\n if (this.ContactId !== null) {\n this.selectedContact = await this.$store.dispatch('Contact/getById', this.ContactId);\n } else {\n this.selectedContact = null;\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Task/TaskEdit.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/Task/CompletedDialogPopup.vue?vue&type=template&id=203cd9e3": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/Task/CompletedDialogPopup.vue?vue&type=template&id=203cd9e3 ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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_VDialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VDialog */ \"./node_modules/vuetify/lib/components/VDialog/index.js\");\n/* harmony import */ var vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_4__ = __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_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\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VCol\"], [_c(vuetify_lib_components_VDialog__WEBPACK_IMPORTED_MODULE_3__[\"VDialog\"], {\n attrs: {\n persistent: \"\",\n \"max-width\": \"80%\"\n },\n model: {\n value: _vm.model,\n callback: function ($$v) {\n _vm.model = $$v;\n },\n expression: \"model\"\n }\n }, [_c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCard\"], [_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 staticStyle: {\n width: \"auto\"\n }\n }, [_c(\"h2\", [_vm._v(\"Site Visits Edit\")])]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_2__[\"VSpacer\"]), _c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_0__[\"VBtn\"], {\n attrs: {\n color: \"error\",\n title: \"\",\n small: \"\"\n },\n on: {\n click: _vm.close\n }\n }, [_c(vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_4__[\"VIcon\"], [_vm._v(\"mdi-window-close\")])], 1)], 1), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_1__[\"VCardText\"], [_c(\"SiteVisitsEdit\", {\n attrs: {\n taskData: this.taskObj\n }\n })], 1)], 1)], 1)], 1)], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Task/CompletedDialogPopup.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/Task/TaskEdit.vue?vue&type=template&id=3ebbd219": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/Task/TaskEdit.vue?vue&type=template&id=3ebbd219 ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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_VAlert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuetify/lib/components/VAlert */ \"./node_modules/vuetify/lib/components/VAlert/index.js\");\n/* harmony import */ var vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __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_3__ = __webpack_require__(/*! vuetify/lib/components/VGrid */ \"./node_modules/vuetify/lib/components/VGrid/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_VForm__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VForm */ \"./node_modules/vuetify/lib/components/VForm/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_VRadioGroup__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __webpack_require__(/*! vuetify/lib/components/VSelect */ \"./node_modules/vuetify/lib/components/VSelect/index.js\");\n/* harmony import */ var vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuetify/lib/components/VTextField */ \"./node_modules/vuetify/lib/components/VTextField/index.js\");\n/* harmony import */ var vuetify_lib_components_VTextarea__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! vuetify/lib/components/VTextarea */ \"./node_modules/vuetify/lib/components/VTextarea/index.js\");\n/* harmony import */ var vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vuetify/lib/components/VToolbar */ \"./node_modules/vuetify/lib/components/VToolbar/index.js\");\n/* harmony import */ var vuetify_lib_components_VTooltip__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! vuetify/lib/components/VTooltip */ \"./node_modules/vuetify/lib/components/VTooltip/index.js\");\n\n\n\n\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(\"ValidationObserver\", {\n ref: \"observer\",\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function ({\n invalid\n }) {\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_2__[\"VCard\"], {\n staticClass: \"mx-auto mb-4\",\n attrs: {\n flat: \"\"\n }\n }, [!_vm.hideToolbar ? _c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_11__[\"VToolbar\"], {\n attrs: {\n dense: \"\",\n dark: \"\",\n flat: \"\",\n color: \"secondary\"\n }\n }, [_c(vuetify_lib_components_VToolbar__WEBPACK_IMPORTED_MODULE_11__[\"VToolbarTitle\"], {\n staticClass: \"white--text\",\n staticStyle: {\n width: \"auto\"\n }\n }, [_vm._v(_vm._s(_vm.obj.id ? \"Edit\" : \"Create\") + \" TODO / Appointment\")]), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VSpacer\"]), _vm.obj.id && _vm.changed ? _c(vuetify_lib_components_VTooltip__WEBPACK_IMPORTED_MODULE_12__[\"VTooltip\"], {\n attrs: {\n bottom: \"\"\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_1__[\"VBtn\"], _vm._g(_vm._b({\n attrs: {\n icon: \"\",\n color: \"indigo lighten-5\"\n },\n on: {\n click: _vm.reset\n }\n }, \"v-btn\", attrs, false), on), [_c(vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_6__[\"VIcon\"], [_vm._v(\"mdi-undo\")])], 1)];\n }\n }], null, true)\n }, [_c(\"span\", [_vm._v(\"Click to Undo Changes\")])]) : _vm._e(), !_vm.obj.id && _vm.changed ? _c(vuetify_lib_components_VTooltip__WEBPACK_IMPORTED_MODULE_12__[\"VTooltip\"], {\n attrs: {\n bottom: \"\"\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_1__[\"VBtn\"], _vm._g(_vm._b({\n attrs: {\n icon: \"\",\n color: \"indigo lighten-4\"\n },\n on: {\n click: _vm.clear\n }\n }, \"v-btn\", attrs, false), on), [_c(vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_6__[\"VIcon\"], [_vm._v(\"mdi-undo\")])], 1)];\n }\n }], null, true)\n }, [_c(\"span\", [_vm._v(\"Click to Start Again\")])]) : _vm._e()], 1) : _vm._e(), _c(vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_2__[\"VCardText\"], [_c(vuetify_lib_components_VForm__WEBPACK_IMPORTED_MODULE_5__[\"VForm\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n staticClass: \"mr-3\"\n }, [_c(\"ValidationProvider\", {\n attrs: {\n name: \"Assigned User\",\n rules: \"required\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function ({\n errors\n }) {\n return [_c(vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_8__[\"VSelect\"], {\n attrs: {\n outlined: \"\",\n label: \"Assigned User*\",\n disabled: _vm.taskReadOnly,\n items: _vm.userList,\n error: !invalid,\n \"item-text\": \"User.fullName\",\n \"item-value\": \"User.id\",\n \"hide-details\": \"\",\n \"item-color\": \"red\"\n },\n model: {\n value: _vm.UserId,\n callback: function ($$v) {\n _vm.UserId = $$v;\n },\n expression: \"UserId\"\n }\n }), _c(\"span\", {\n staticClass: \"red--text\"\n }, [_vm._v(_vm._s(errors[0]))])];\n }\n }], null, true)\n })], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n staticClass: \"mr-3\"\n }, [_c(\"ValidationProvider\", {\n attrs: {\n name: \"Task Type\",\n rules: \"required\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function ({\n errors\n }) {\n return [_c(vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_8__[\"VSelect\"], {\n attrs: {\n outlined: \"\",\n disabled: _vm.taskReadOnly,\n \"item-disabled\": \"disable\",\n label: \"Task Type*\",\n items: _vm.taskTypes,\n \"item-text\": \"value\",\n \"item-value\": \"key\"\n },\n model: {\n value: _vm.taskType,\n callback: function ($$v) {\n _vm.taskType = $$v;\n },\n expression: \"taskType\"\n }\n }), _c(\"span\", {\n staticClass: \"red--text\"\n }, [_vm._v(_vm._s(errors[0]))])];\n }\n }], null, true)\n })], 1), !_vm.contactIdProp ? _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(\"ValidationProvider\", {\n attrs: {\n name: \"Contact\",\n rules: \"required\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function ({\n errors\n }) {\n return [_c(\"SearchContactBasicList\", {\n attrs: {\n editMode: _vm.obj.id !== null,\n outlined: true,\n error: !invalid\n },\n model: {\n value: _vm.ContactId,\n callback: function ($$v) {\n _vm.ContactId = $$v;\n },\n expression: \"ContactId\"\n }\n }), _c(\"span\", {\n staticClass: \"red--text\"\n }, [_vm._v(_vm._s(errors[0]))])];\n }\n }], null, true)\n })], 1) : _vm._e()], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n staticClass: \"pl-3\"\n }, [_vm.taskType === 277 ? _c(vuetify_lib_components_VAlert__WEBPACK_IMPORTED_MODULE_0__[\"VAlert\"], {\n attrs: {\n color: \"yellow darken-2\",\n border: \"left\",\n type: \"info\"\n }\n }, [_c(\"i\", [_vm._v(\" Completing this task will prompt you to complete a \"), _c(\"b\", [_vm._v(\"*Required*\")]), _vm._v(\" Site Visit form. \")])]) : _vm._e(), _vm.taskType === 393 ? _c(vuetify_lib_components_VAlert__WEBPACK_IMPORTED_MODULE_0__[\"VAlert\"], {\n attrs: {\n color: \"yellow darken-2\",\n border: \"left\",\n type: \"info\"\n }\n }, [_c(\"i\", [_vm._v(\" Contract Appointments can only be edited from their corresponding Transaction. \")])]) : _vm._e()], 1)], 1), _vm.taskType !== 1 ? _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n staticClass: \"mr-3\"\n }, [_c(vuetify_lib_components_VRadioGroup__WEBPACK_IMPORTED_MODULE_7__[\"VRadioGroup\"], {\n attrs: {\n row: \"\",\n disabled: _vm.taskReadOnly\n },\n model: {\n value: _vm.allDay,\n callback: function ($$v) {\n _vm.allDay = $$v;\n },\n expression: \"allDay\"\n }\n }, [_c(vuetify_lib_components_VRadioGroup__WEBPACK_IMPORTED_MODULE_7__[\"VRadio\"], {\n attrs: {\n label: \"All-Day Event\",\n value: 1\n }\n }), _c(vuetify_lib_components_VRadioGroup__WEBPACK_IMPORTED_MODULE_7__[\"VRadio\"], {\n attrs: {\n label: \"Event is time specific\",\n value: 0\n }\n })], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n staticClass: \"mr-3\"\n }, [_c(\"MSPDatetime\", {\n attrs: {\n readonly: _vm.taskReadOnly,\n label: _vm.taskType === 277 ? \"Site Visit Date & Time\" : \"Start\",\n type: _vm.allDay ? \"date\" : \"datetime\"\n },\n model: {\n value: _vm.start,\n callback: function ($$v) {\n _vm.start = $$v;\n },\n expression: \"start\"\n }\n })], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_vm.start && !_vm.allDay ? _c(\"MSPDatetime\", {\n attrs: {\n min: _vm.startAsString,\n readonly: _vm.taskReadOnly,\n label: \"End\"\n },\n model: {\n value: _vm.end,\n callback: function ($$v) {\n _vm.end = $$v;\n },\n expression: \"end\"\n }\n }) : _vm._e()], 1)], 1) : _vm._e(), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n staticClass: \"mr-3\"\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], {\n staticClass: \"mb-2\"\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(\"ValidationProvider\", {\n attrs: {\n name: \"Summary\",\n rules: \"required\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function ({\n errors\n }) {\n return [_c(vuetify_lib_components_VTextField__WEBPACK_IMPORTED_MODULE_9__[\"VTextField\"], {\n attrs: {\n outlined: \"\",\n disabled: _vm.taskReadOnly,\n error: !invalid,\n label: \"Summary*\",\n placeholder: \"Short Summary of task\",\n \"hide-details\": \"\"\n },\n model: {\n value: _vm.summary,\n callback: function ($$v) {\n _vm.summary = $$v;\n },\n expression: \"summary\"\n }\n }), _c(\"span\", {\n staticClass: \"red--text\"\n }, [_vm._v(_vm._s(errors[0]))])];\n }\n }], null, true)\n })], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], {\n staticClass: \"mb-2\"\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_c(vuetify_lib_components_VSelect__WEBPACK_IMPORTED_MODULE_8__[\"VSelect\"], {\n attrs: {\n outlined: \"\",\n disabled: _vm.status !== 290,\n \"item-disabled\": _vm.taskType === 393 ? \"disabled\" : \"\",\n label: \"Status\",\n items: _vm.taskStatusList,\n \"item-text\": \"value\",\n \"item-value\": \"key\",\n \"hide-details\": \"\"\n },\n model: {\n value: _vm.status,\n callback: function ($$v) {\n _vm.status = $$v;\n },\n expression: \"status\"\n }\n })], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], {\n staticClass: \"mb-2\"\n }, [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_vm.status === 284 ? _c(\"MSPDatetime\", {\n attrs: {\n readonly: _vm.taskReadOnly,\n label: \"Completed Time\",\n type: \"datetime\"\n },\n model: {\n value: _vm.completedTime,\n callback: function ($$v) {\n _vm.completedTime = $$v;\n },\n expression: \"completedTime\"\n }\n }) : _vm._e()], 1)], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n attrs: {\n lg: \"8\"\n }\n }, [_c(vuetify_lib_components_VTextarea__WEBPACK_IMPORTED_MODULE_10__[\"VTextarea\"], {\n attrs: {\n outlined: \"\",\n disabled: _vm.taskReadOnly,\n label: \"Details\"\n },\n model: {\n value: _vm.details,\n callback: function ($$v) {\n _vm.details = $$v;\n },\n expression: \"details\"\n }\n })], 1), _vm.obj.taskType === 277 && _vm.ContactId !== null ? _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n attrs: {\n lg: \"4\"\n }\n }, [_c(\"ValidationProvider\", {\n attrs: {\n name: \"ProjectSelect\",\n rules: \"required\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function ({\n errors,\n invalid\n }) {\n return [_c(\"ProjectSelect\", {\n attrs: {\n readonly: _vm.taskReadOnly,\n error: !invalid,\n label: \"Projects *\",\n projectListFilter: _vm.projectListFilter\n },\n model: {\n value: _vm.ProjectId,\n callback: function ($$v) {\n _vm.ProjectId = $$v;\n },\n expression: \"ProjectId\"\n }\n }), _c(\"span\", {\n staticClass: \"red--text\"\n }, [_vm._v(_vm._s(errors[0]))])];\n }\n }], null, true)\n })], 1) : _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n attrs: {\n lg: \"4\"\n }\n }, [_c(\"ProjectSelect\", {\n model: {\n value: _vm.ProjectId,\n callback: function ($$v) {\n _vm.ProjectId = $$v;\n },\n expression: \"ProjectId\"\n }\n })], 1)], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VRow\"], [_c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], [_vm.ContactId !== null ? _c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_1__[\"VBtn\"], {\n staticClass: \"mr-4 mb-4 rounded-0\",\n attrs: {\n small: \"\",\n color: \"success\"\n },\n on: {\n click: function ($event) {\n return _vm.redirectToContact(_vm.obj.ContactId);\n }\n }\n }, [_vm._v(\"Open Contact\")]) : _vm._e()], 1), _c(vuetify_lib_components_VGrid__WEBPACK_IMPORTED_MODULE_3__[\"VCol\"], {\n attrs: {\n align: \"right\"\n }\n }, [_c(\"SaveButton\", {\n staticClass: \"mr-4 mb-4 rounded-0\",\n attrs: {\n disabled: !_vm.changed || invalid,\n module: \"Task\",\n customSaveFunction: _vm.createTask\n }\n }), _vm.obj.id ? _c(vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_1__[\"VBtn\"], {\n staticClass: \"mr-4 mb-4 rounded-0\",\n attrs: {\n disabled: !_vm.changed,\n small: \"\",\n color: \"secondary\"\n },\n on: {\n click: _vm.reset\n }\n }, [_vm._v(\"Revert\")]) : _vm._e()], 1)], 1)], 1)], 1)], 1)], 1), _c(vuetify_lib_components_VDialog__WEBPACK_IMPORTED_MODULE_4__[\"VDialog\"], {\n attrs: {\n persistent: \"\",\n scrollable: \"\"\n },\n model: {\n value: _vm.statusDialog,\n callback: function ($$v) {\n _vm.statusDialog = $$v;\n },\n expression: \"statusDialog\"\n }\n }, [_c(\"CompletedDialogPopup\", {\n attrs: {\n taskObj: _vm.taskData,\n onClose: _vm.popupTaskStatusOnClose,\n model: _vm.statusDialog\n },\n on: {\n \"update:model\": function ($event) {\n _vm.statusDialog = $event;\n }\n }\n })], 1)], 1)];\n }\n }])\n });\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/components/Task/TaskEdit.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/Task/TaskEdit.vue?vue&type=style&index=0&id=3ebbd219&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/Task/TaskEdit.vue?vue&type=style&index=0&id=3ebbd219&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.formHeading {\\n font-weight: bold;\\n text-transform: uppercase;\\n text-align: left;\\n color: #3853A3;\\n}\\n.toolbarTitle {\\n width: 600px;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/components/Task/TaskEdit.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/Task/TaskEdit.vue?vue&type=style&index=0&id=3ebbd219&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/Task/TaskEdit.vue?vue&type=style&index=0&id=3ebbd219&lang=scss ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// style-loader: Adds some css to the DOM by adding a