1"use strict";(self.webpackChunkvue=self.webpackChunkvue||[]).push([[5896],{64966:function(e,t,o){var s=o(87537),s=o.n(s),i=o(23645),o=o.n(i)()(s());o.push([e.id,"\n.input-group.date > .form-control {\n z-index: auto;\n}\n","",{version:3,sources:["webpack://./vue/src/assets/controls/vueDateTimePicker.vue"],names:[],mappings:";AAmQA;IACA,aAAA;AACA",sourcesContent:["<template>\r\n <div>\r\n <label :for=\"computedId\" v-if=\"localResourceKey\">\r\n <vueLocalResource :_=\"localResourceKey\" />\r\n <span v-if=\"required && !options.readonly\" class=\"required-asterisk\">*</span>\r\n </label>\r\n <span v-else-if=\"required && !options.readonly && options.showAsteriskWithNoLocalResourceKey\" class=\"required-asterisk pull-right\">\r\n *\r\n </span>\r\n <div class=\"input-group date\" ref=\"picker\">\r\n <input type=\"text\" :id=\"computedId\" :placeholder=\"placeholderText\" :disabled=\"isDisabled\" class=\"form-control\">\r\n <div class=\"input-group-addon\">\r\n <span class=\"glyphicon glyphicon-calendar\"></span>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import vueLocalResource from './vueLocalResource.vue';\r\n import vueHelperMixin from '../mixins/vue-helper-mixin';\r\n\r\n // required by bootstrap date picker for setting timezone\r\n import moment, { isMoment } from 'moment-timezone';\r\n\r\n import 'eonasdan-bootstrap-datetimepicker';\r\n\r\n export default {\r\n mixins: [vueHelperMixin],\r\n\r\n props: {\r\n value: {\r\n default: null,\r\n required: true,\r\n validator(value) {\r\n return value === null || value instanceof Date || typeof value === 'string' || value instanceof String || value instanceof moment\r\n }\r\n },\r\n\r\n options: {\r\n type: Object,\r\n default: () => { }\r\n },\r\n\r\n isDisabled: {\r\n default: false\r\n },\r\n\r\n fieldId: {\r\n default: ''\r\n }\r\n },\r\n\r\n components: {\r\n 'vueLocalResource': vueLocalResource\r\n },\r\n\r\n data() {\r\n return {\r\n datePicker: null,\r\n datePickerWrapper: null\r\n }\r\n },\r\n\r\n mounted() {\r\n if (this.datePicker) {\r\n return;\r\n }\r\n\r\n this.datePickerWrapper = jQuery(this.$refs.picker);\r\n this.datePickerWrapper.datetimepicker(this.config);\r\n this.datePicker = this.datePickerWrapper.data('DateTimePicker');\r\n this.datePicker.date(this.value)\r\n this.datePickerWrapper.on('dp.change', this.onChange);\r\n },\r\n\r\n beforeDestroy() {\r\n if (this.datePicker) {\r\n this.datePicker.destroy();\r\n this.datePicker = null;\r\n this.datePickerWrapper = null;\r\n }\r\n },\r\n\r\n methods: {\r\n onChange(event) {\r\n let formattedDate = event.date ? event.date.format(this.datePicker.format()) : null;\r\n this.$emit('input', formattedDate);\r\n this.$emit('dp-change', formattedDate);\r\n },\r\n\r\n\r\n },\r\n\r\n computed: {\r\n computedId() {\r\n if (!this.fieldId) {\r\n return this.uuidv4();\r\n }\r\n\r\n return `${this.fieldId}_${this.uuidv4()}`;\r\n },\r\n\r\n config() {\r\n return {\r\n format: this.format,\r\n showClear: this.showClearButton,\r\n showClose: this.showCloseButton,\r\n showTodayButton: this.showTodayButton,\r\n useCurrent: this.useCurrentDate,\r\n timeZone: this.timeZone,\r\n minDate: this.minDate,\r\n maxDate: this.maxDate\r\n };\r\n }
1,\r\n\r\n minDate() {\r\n if (!this.options || !this.options.minDate) {\r\n return false;\r\n }\r\n\r\n //Expected string format is client date\r\n if (typeof this.options.minDate === 'string') {\r\n return moment.tz(this.options.minDate, this.format, this.timeZone);\r\n }\r\n\r\n if (isMoment(this.options.minDate)) {\r\n return this.options.minDate\r\n }\r\n\r\n if (typeof this.options.minDate === 'object' && !isNaN(this.options.minDate.getDate())) {\r\n return this.options.minDate\r\n }\r\n\r\n return null;\r\n },\r\n\r\n maxDate() {\r\n if (!this.options || !this.options.maxDate) {\r\n return false;\r\n }\r\n\r\n //Expected string format is client date\r\n if (typeof this.options.maxDate === 'string') {\r\n return moment.tz(this.options.maxDate, this.format, this.timeZone)\r\n }\r\n\r\n if (isMoment(this.options.maxDate)) {\r\n return this.options.maxDate\r\n }\r\n\r\n if (typeof this.options.maxDate === 'object' && !isNaN(this.options.maxDate.getDate())) {\r\n return this.options.maxDate\r\n }\r\n\r\n return null;\r\n },\r\n\r\n useCurrentDate() {\r\n if (!this.options || typeof (this.options.setToday) !== 'boolean') {\r\n return false;\r\n }\r\n\r\n return this.options.setToday;\r\n },\r\n\r\n showCloseButton() {\r\n if (!this.options || typeof (this.options.showCloseButton) !== 'boolean') {\r\n return true;\r\n }\r\n\r\n return this.options.showCloseButton;\r\n },\r\n\r\n showClearButton() {\r\n if (!this.options || typeof (this.options.showClearButton) !== 'boolean') {\r\n return true;\r\n }\r\n\r\n return this.options.showClearButton;\r\n\r\n },\r\n\r\n showTodayButton() {\r\n if (!this.options || typeof (this.options.showTodayButton) !== 'boolean') {\r\n return true;\r\n }\r\n\r\n return this.options.showTodayButton;\r\n },\r\n\r\n timeZone() {\r\n if (!this.options || typeof (this.options.timeZone) !== 'string' || !this.options.timeZone) {\r\n return this.$store.getters.timeZone;\r\n }\r\n\r\n return this.options.timeZone;\r\n },\r\n\r\n format() {\r\n if (!this.options || typeof (this.options.format) !== 'string' || !this.options.format) {\r\n return this.$store.getters.shortDateTimeFormat;\r\n }\r\n\r\n return this.options.format;\r\n },\r\n\r\n placeholderText() {\r\n if (!this.options || typeof (this.options.placeholderText) !== 'string' || !this.options.placeholderText) {\r\n return this.$store.getters.shortDateFormat;\r\n }\r\n\r\n return this.options.placeholderText;\r\n },\r\n\r\n localResourceKey() {\r\n if (!this.options || typeof (this.options._) !== 'string' || !this.options._) {\r\n return '';\r\n }\r\n\r\n return this.options._;\r\n },\r\n\r\n required() {\r\n if (!this.options || typeof (this.options.required) !== 'boolean') {\r\n return false;\r\n }\r\n\r\n return this.options.required;\r\n },\r\n },\r\n\r\n watch: {\r\n value(newVal, oldVal) {\r\n if (newVal === oldVal) {\r\n return;\r\n }\r\n\r\n if (this.datePicker) {\r\n this.datePicker.date(newVal || null)\r\n }\r\n },\r\n\r\n config: {\r\n deep: true,\r\n handler(newVal, oldVal) {\r\n if (!newVal || !this.datePicker || Object.isSame(newVal, oldVal)) {\r\n return;\r\n }\r\n\r\n this.datePicker.options(this.config);\r\n }\r\n }\r\n }\r\n }\r\n\r\n<\/script>\r\n\r\n<style>\r\n .input-group.date > .form-control {\r\n z-index: auto;\r\n }\r\n</style>\r\n"],sourceRoot:""}]),t.Z=o},30743:function(u,e,t){t.d(e,{Z:function(){return c}});var e=t(22568),o=t(59586),s=t(80008),i=t.n(s),a=(t(59730),t(19755));function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o={mixins:[o.Z],props:{value:{default:null,required:!0,validator:function(e){return null===e||e instanceof Date||"string"==typeof e||e instanceof String||e instanceof i()}},options:{type:Object,default:function(){}},isDisabled:{default:!1},fieldId:{default:""}},components:{vueLocalResource:e.default},data:function(){return{datePicker:null,datePickerWrapper:null}},mounted:function(){this.datePicker||(this.datePickerWrapper=a(this.$refs.picker),this.datePickerWrapper.datetimepicker(this.config),this.datePicker=this.datePickerWrapper.data("DateTimePicker"),this.datePicker.date(this.value),this.datePickerWrapper.on("dp.change",this.onChange))},beforeDestroy:function(){this.datePicker&&(this.datePicker.destroy(),this.datePicker=null,this.datePickerWrapper=null)}
1,methods:{onChange:function(e){e=e.date?e.date.format(this.datePicker.format()):null;this.$emit("input",e),this.$emit("dp-change",e)}},computed:{computedId:function(){return this.fieldId?"".concat(this.fieldId,"_").concat(this.uuidv4()):this.uuidv4()},config:function(){return{format:this.format,showClear:this.showClearButton,showClose:this.showCloseButton,showTodayButton:this.showTodayButton,useCurrent:this.useCurrentDate,timeZone:this.timeZone,minDate:this.minDate,maxDate:this.maxDate}},minDate:function(){return!(!this.options||!this.options.minDate)&&("string"==typeof this.options.minDate?i().tz(this.options.minDate,this.format,this.timeZone):!(0,s.isMoment)(this.options.minDate)&&("object"!==r(this.options.minDate)||isNaN(this.options.minDate.getDate()))?null:this.options.minDate)},maxDate:function(){return!(!this.options||!this.options.maxDate)&&("string"==typeof this.options.maxDate?i().tz(this.options.maxDate,this.format,this.timeZone):!(0,s.isMoment)(this.options.maxDate)&&("object"!==r(this.options.maxDate)||isNaN(this.options.maxDate.getDate()))?null:this.options.maxDate)},useCurrentDate:function(){return!(!this.options||"boolean"!=typeof this.options.setToday)&&this.options.setToday},showCloseButton:function(){return!this.options||"boolean"!=typeof this.options.showCloseButton||this.options.showCloseButton},showClearButton:function(){return!this.options||"boolean"!=typeof this.options.showClearButton||this.options.showClearButton},showTodayButton:function(){return!this.options||"boolean"!=typeof this.options.showTodayButton||this.options.showTodayButton},timeZone:function(){return(this.options&&"string"==typeof this.options.timeZone&&this.options.timeZone?this.options:this.$store.getters).timeZone},format:function(){return this.options&&"string"==typeof this.options.format&&this.options.format?this.options.format:this.$store.getters.shortDateTimeFormat},placeholderText:function(){return this.options&&"string"==typeof this.options.placeholderText&&this.options.placeholderText?this.options.placeholderText:this.$store.getters.shortDateFormat},localResourceKey:function(){return this.options&&"string"==typeof this.options._&&this.options._?this.options._:""},required:function(){return!(!this.options||"boolean"!=typeof this.options.required)&&this.options.required}},watch:{value:function(e,t){e!==t&&this.datePicker&&this.datePicker.date(e||null)},config:{deep:!0,handler:function(e,t){e&&this.datePicker&&!Object.isSame(e,t)&&this.datePicker.options(this.config)}}}},e=t(93379),e=t.n(e),n=t(64966),l={insert:"head",singleton:!1},c=(e()(n.Z,l),n.Z.locals,(0,t(51900).Z)(o,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",[e.localResourceKey?t("label",{attrs:{for:e.computedId}},[t("vueLocalResource",{attrs:{_:e.localResourceKey}}),e._v(" "),e.required&&!e.options.readonly?t("span",{staticClass:"required-asterisk"},[e._v("*")]):e._e()],1):e.required&&!e.options.readonly&&e.options.showAsteriskWithNoLocalResourceKey?t("span",{staticClass:"required-asterisk pull-right"},[e._v("\n *\n ")]):e._e(),e._v(" "),t("div",{ref:"picker",staticClass:"input-group date"},[t("input",{staticClass:"form-control",attrs:{type:"text",id:e.computedId,placeholder:e.placeholderText,disabled:e.isDisabled}}),e._v(" "),e._m(0)])])},[function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"input-group-addon"},[e("span",{staticClass:"glyphicon glyphicon-calendar"})])}],!1,null,null,null).exports)},24902:function(e,t,o){o.d(t,{Z:function(){return a}});var s=o(24978),t=o(22568),i=o(59586),i={mixins:[i.Z],props:["options","isDisabledOverride","fieldId","toUpper","value"],components:{vueLocalResource:t.default},data:function(){return{localValue:"",isFocused:!1}},methods:{formatValueToModel:function(o){var s=this;if(null!=o)switch(this.options.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(e,t){s.debouncedFormatFunc(o,t)}}return o},formatNumberToModel:function(e,t){"0"===e?e=0:(0,s.isNumber)(e)||(e=NaN),this.updateModelValue(e,t)},onInput:function(e){var t=e.target.value;switch(this.options.inputType.toLowerCase()){case"email":case"text":this.options.sanitizeHtml&&(t=this.sanitizeHtml(t));break;case"number":var o=Number(e.target.value);isNaN(o)||(e.target.value===o.toString()||e.target.value.includes(".")||(e.target.value=o.toString()),t=o,this.options.forceMin&&t<this.options.min&&(t=this.options.min),(t=this.options.forceMax&&t>this.options.max?this.options.max:t)!==o&&(e.target.value=t));break;case"range":e.target.valueAsNumber&&(t=e.target.valueAsNumber);break;case"checkbox":t=e.target.checked}this.localValue=t},onBlur:function(){(this.isFocused=!1,s.isFunction)(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush(),this.isTextInputType&&(this.toUpperCase&&this.localValue?this.localValue=this.localValue.toUpperCase():this.options.lowercase&&this.localValue&&(this.localValue=this.localValue.toLowerCase())),this.$emit("on-blur")},onFocus:function(){this.isFocused=!0},reset:function(){this.localValue=this.options.default},focus:function(){this.$refs.input.focus()}},mounted:function(){var o=this;switch(this.options.inputType.toLowerCase()){case"number":case"range":this.debouncedFormatFunc=(0,s.debounce)(function(e,t){o.formatNumberToModel(e,t)},500,{trailing:!0,leading:!1})}this.$emit("mounted")},created:function(){"file"==this.options.inputType.toLowerCase()&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")},computed:{isHiddenField:function(){return"hidden"==this.options.inputType.toLowerCase()},style:function(){var e={};return this.isTextInputType&&(this.toUpperCase?e.textTransform="uppercase":this.options.lowercase&&(e.textTransform="lowercase")),this.options.style&&Object.assign(e,this.options.style),e},toUpperCase:function(){return this.toUpper},disableAutoComplete:function(){return this.options.disableAutoComplete||this.isDisabled?"nope":""},computedId:function(){return"".concat(this.fieldId,"_").concat(this.uuidv4())},isTextInputType:function(){return"text"===this.options.inputType.toLowerCase()},isDisabled:function(){return this.options.disabled||this.options.readonly||this.isDisabledOverride},helpText:function(){if(this.options.helpTextKey)return this.$store.getters.getLocalResource(this.options.helpTextKey)}},watch:{localValue:function(e,t){e===t&&e===this.value||(!this.options.readonly||this.toUpper&&e!==this.value&&e===this.value.toUpperCase())&&this.$emit("input",e)},value:{immediate:!0,handler:function(e,t){e!==t&&(!this.isFocused&&this.isTextInputType&&"string"==typeof e&&this.toUpper&&(e=e.toUpperCase()),this.localValue!==e||e===this.value||this.options.readonly||this.$emit("input",e),this.localValue=e)}},"options.helpTextKey":{immediate:!0,handler:function(e,t){e&&this.$store.dispatch("initializeLocalResource",this.options.helpTextKey)}}}},a=(0,o(51900).Z)(i,function(){var t=this,e=t.$createElement,e=t._self._c||e;return t.options.inputType&&"checkbox"===t.options.inputType.toLowerCase()?e("div",{class:t.options.containerClasses,style:t.options.containerStyle},[t.options._||t.options.labelText?e("label",{attrs:{for:t.computedId}},[!t.isHiddenField&&t.options.labelBeforeCheckbox?e("span",[t.options._?e("vueLocalResource",{attrs:{hash:t.options.hash,_:t.options._,__:t.options.__,modifier:t.options.localResourceModifier}}):t.options.labelText?e("span",[t._v(t._s(t.options.labelText))]):t._e(),t._v(" "),t.helpText?e("span",{attrs:{title:t.helpText}},[e("i",{staticClass:"fa fa-question-circle"})]):t._e(),t._v(" "),t.options.required&&!t.options.readonly?e("span",{staticClass:"required-asterisk"},[t._v("*")]):t._e()],1):t._e(),t._v(" "),!t.isHiddenField&&t.options.labelAboveCheckbox?e("br"):t._e(),t._v(" "),e("input",{ref:"input",class:t.options.fieldClasses||"form-check-input",style:t.style,attrs:{id:t.computedId,type:t.options.inputType.toLowerCase(),disabled:t.isDisabled,accept:t.options.accept,alt:t.options.alt,autocomplete:t.disableAutoComplete,dirname:t.options.dirname,formaction:t.options.formaction,formenctype:t.options.formenctype,formmethod:t.options.formmethod,formnovalidate:t.options.formnovalidate,formtarget:t.options.formtarget,height:t.options.height,list:t.options.list,max:t.options.max,maxlength:t.options.maxlength,min:t.options.min,minlength:t.options.minLength,multiple:t.options.multiple,name:t.options.inputName,pattern:t.options.pattern,placeholder:t.options.placeholder,readonly:t.options.readonly,required:t.options.required,size:t.options.size,src:t.options.src,step:t.options.step,width:t.options.width,files:t.options.files},domProps:{value:t.value,checked:t.value}
1,on:{change:t.onInput,blur:t.onBlur,focus:t.onFocus,click:function(e){t.$emit("click",e)}}}),t._v(" "),t.isHiddenField||t.options.labelBeforeCheckbox?t._e():e("span",[t.options._?e("vueLocalResource",{attrs:{hash:t.options.hash,_:t.options._,__:t.options.__,modifier:t.options.localResourceModifier}}):t.options.labelText?e("span",[t._v(t._s(t.options.labelText))]):t._e(),t._v(" "),t.helpText?e("span",{attrs:{title:t.helpText}},[e("i",{staticClass:"fa fa-question-circle"})]):t._e(),t._v(" "),t.options.required&&!t.options.readonly?e("span",{staticClass:"required-asterisk"},[t._v("*")]):t._e()],1)]):e("input",{ref:"input",class:t.options.fieldClasses,style:t.style,attrs:{id:t.computedId,type:t.options.inputType.toLowerCase(),disabled:t.isDisabled,accept:t.options.accept,alt:t.options.alt,autocomplete:t.disableAutoComplete,dirname:t.options.dirname,formaction:t.options.formaction,formenctype:t.options.formenctype,formmethod:t.options.formmethod,formnovalidate:t.options.formnovalidate,formtarget:t.options.formtarget,height:t.options.height,list:t.options.list,max:t.options.max,maxlength:t.options.maxlength,min:t.options.min,minlength:t.options.minLength,multiple:t.options.multiple,name:t.options.inputName,pattern:t.options.pattern,placeholder:t.options.placeholder,readonly:t.options.readonly,required:t.options.required,size:t.options.size,src:t.options.src,step:t.options.step,width:t.options.width,files:t.options.files},domProps:{value:t.value,checked:t.value},on:{change:t.onInput,blur:t.onBlur,focus:t.onFocus}})]):e("div",{class:t.options.containerClasses,style:t.options.containerStyle},[t.isHiddenField||t.options.hideLabel?t._e():e("div",[e("label",{attrs:{for:t.computedId}},[t.options._?e("vueLocalResource",{attrs:{hash:t.options.hash,_:t.options._,__:t.options.__,modifier:t.options.localResourceModifier}}):t._e(),t._v(" "),t.helpText?e("span",{attrs:{title:t.helpText}},[e("i",{staticClass:"fa fa-question-circle"})]):t._e(),t._v(" "),t.options.required&&!t.options.readonly?e("span",{staticClass:"required-asterisk"},[t._v("*")]):t._e()],1)]),t._v(" "),e("input",{ref:"input",staticClass:"form-control",class:t.options.fieldClasses,style:t.style,attrs:{id:t.computedId,type:t.options.inputType.toLowerCase(),disabled:t.isDisabled,accept:t.options.accept,alt:t.options.alt,autocomplete:t.disableAutoComplete,dirname:t.options.dirname,formaction:t.options.formaction,formenctype:t.options.formenctype,formmethod:t.options.formmethod,formnovalidate:t.options.formnovalidate,formtarget:t.options.formtarget,height:t.options.height,list:t.options.list,max:t.options.max,maxlength:t.options.maxlength,min:t.options.min,minlength:t.options.minLength,multiple:t.options.multiple,name:t.options.inputName,pattern:t.options.pattern,placeholder:t.options.placeholder,readonly:t.options.readonly,required:t.options.required,size:t.options.size,src:t.options.src,step:t.options.step,width:t.options.width,files:t.options.files},domProps:{value:t.value,checked:t.value},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus}})])},[],!1,null,null,null).exports},93196:function(e,t,o){o.d(t,{Z:function(){return i}});var t=o(22568),s=o(82221),t={components:{vueLocalResource:t.default,"vue-modal":s.Z},props:{show:{type:Boolean,default:!1},titleKey:{type:String,default:""},messageKey:{type:String,default:""},message:{type:String,default:""},okKey:{type:String,default:"Ok"},cancelKey:{type:String,default:"Cancel"},emitPrefix:{type:String,default:"okCancel"},faClass:{type:String,default:"fas fa-exclamation-triangle fa-5x"},faColor:{type:String,default:"orange"},fontSize:{type:String,default:"1.5em"},showCancelBtn:{type:Boolean,default:!0}},methods:{onCancel:function(){this.$emit(this.emitPrefix+"-cancel")},onOk:function(){this.$emit(this.emitPrefix+"-ok")}}},i=(0,o(51900).Z)(t,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("vue-modal",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],attrs:{title:t.titleKey,"max-width":"560px"},on:{close:t.onCancel},scopedSlots:t._u([{key:"body",fn:function(e){return[t._t("body",[o("div",{staticStyle:{"text-align":"center"}},[t.faClass?o("div",{staticClass:"row row-gap"},[o("i",{class:t.faClass,style:{color:t.faColor}})]):t._e(),t._v(" "),o("div",{staticClass:"row",style:{fontSize:t.fontSize}},[t.messageKey?o("vueLocalResource",{attrs:{_:t.messageKey}}):o("span",{domProps:{innerHTML:t._s(t.message)}})],1)])])]}},{key:"footer",fn:function(e){return[o("div",[t.showCancelBtn?o("button",{staticClass:"btn btn-sm text-capitalize btn-danger",attrs:{type:"button"},on:{click:t.onCancel}},[o("vueLocalResource",{attrs:{_:t.cancelKey}})],1):t._e(),t._v(" "),o("button",{staticClass:"btn btn-sm text-capitalize btn-success",attrs:{type:"button"},on:{click:t.onOk}},[o("vueLocalResource",{attrs:{_:t.okKey}})],1)])]}}])})],1)},[],!1,null,null,null).exports},61834:function(e,t,o){o.d(t,{Z:function(){return i}});var s=o(24978),t=o(22568),t={mixins:[o(59586).Z],props:["value","o
1ptions","id","items","isDisabledOverride","hideNoneSelectedText","noneSelectedTextKey","toStringValue"],components:{vueLocalResource:t.default},data:function(){return{selected:"",selectedName:""}},computed:{selectOptions:function(){return this.options.selectOptions||{}},style:function(){var e={};return this.options.uppercase&&(e.textTransform="uppercase"),this.options.style&&Object.assign(e,this.options.style),e},selectItems:function(){var e,t=[];return this.hideNoneSelectedText||(e={disabled:this.options.required,selected:!1},void 0!==this.options.noneSelectedValueOverride?e[this.valueKey]=this.options.noneSelectedValueOverride:e[this.valueKey]=null,e.selected=this.value==e[this.valueKey],e[this.nameKey]=this.noneSelectedName,t.push(e)),t.concat(this.items)},noneSelectedName:function(){return this.noneSelectedTextKey?this.$store.getters.getLocalResource(this.noneSelectedTextKey):"<Nothing selected>"},nameKey:function(){return void 0!==this.options.radiosOptions&&void 0!==this.options.radiosOptions.name?this.options.radiosOptions.name:"name"},valueKey:function(){return void 0!==this.options.radiosOptions&&void 0!==this.options.radiosOptions.value?this.options.radiosOptions.value:"id"},computedId:function(){return this.id?"".concat(this.id,"_").concat(this.uuidv4()):this.uuidv4()},computedListId:function(){return"".concat(this.computedId,"_List")},isDisabled:function(){return this.options.disabled||this.options.readonly||this.isDisabledOverride}},methods:{formatValueToField:function(e){return(0,s.isNil)(e)?null:e},getGroupName:function(e){if(e&&e.group)return e.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(e){if((0,s.isObject)(e)){if(!this.valueKey)throw"`value` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values";return e[this.valueKey]}return e},getItemName:function(e){if((0,s.isObject)(e)){if(!this.nameKey)throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values";return e[this.nameKey]}return e},populateSelectedName:function(e){var t=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"on-change";if(this.items){if(!e)return i=null,void((i=void 0!==this.options.noneSelectedValueOverride?this.options.noneSelectedValueOverride:i)===e&&(this.selectedName=void 0,this.$emit(o,this.selectedName)));var s=e,i=this.items.findIndex(function(e){return e[t.valueKey]==s});-1<i&&((i=this.items[i])&&i[this.nameKey]&&(this.selectedName=i[this.nameKey])),this.$emit(o,this.selectedName,e)}},onChange:function(e){var t=this.selected;this.toStringValue&&null!=t&&"string"!=typeof t&&(t=t.toString()),this.options.readonly||this.$emit("input",t),this.populateSelectedName(t)}},watch:{value:{immediate:!0,handler:function(e,t){e!==t&&(t=!1,this.selected!==e&&(t=!0),this.selected=void 0===e?null:this.value,t&&this.populateSelectedName(e,"name-update"))}},items:{immediate:!0,handler:function(e,t){e&&!Array.isSame(e,t)&&this.populateSelectedName(this.value)}},noneSelectedTextKey:{immediate:!0,handler:function(e,t){e!=t&&this.$store.dispatch("initializeLocalResource",e)}}}},i=(0,o(51900).Z)(t,function(){var o=this,e=o.$createElement,s=o._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:!o.options.hidden,expression:"!options.hidden"}],class:o.options.containerClasses},[o.options._||o.options.__?s("label",{attrs:{for:o.computedId}},[s("vueLocalResource",{attrs:{hash:o.options.hash,_:o.options._,__:o.options.__}}),o._v(" "),!o.options.required||o.options.hideAsterik||o.options.readonly?o._e():s("span",{staticClass:"required-asterisk"},[o._v("*")])],1):o._e(),o._v(" "),o.options.useDatalist?s("input",{directives:[{name:"model",rawName:"v-model",value:o.selected,expression:"selected"}],staticClass:"form-control",class:o.options.fieldClasses,style:o.style,attrs:{list:o.computedListId,disabled:o.isDisabled,name:o.options.inputName,id:o.computedId,required:o.options.required},domProps:{value:o.selected},on:{change:o.onChange,blur:function(e){o.$emit("blur")}
1,input:function(e){e.target.composing||(o.selected=e.target.value)}}}):o._e(),o._v(" "),o.options.useDatalist?s("datalist",{attrs:{id:o.computedListId}},[o._l(o.selectItems,function(t){return[t.group?s("optgroup",{attrs:{label:o.getGroupName(t)}},o._l(t.ops,function(e){return t.ops?s("option",{attrs:{disabled:t.disabled},domProps:{value:o.getItemValue(e),selected:t.selected}}):o._e()})):o._e(),o._v(" "),t.group?o._e():s("option",{attrs:{disabled:t.disabled},domProps:{value:o.getItemValue(t)}},[o._v(o._s(o.getItemName(t)))])]})],2):o._e(),o._v(" "),o.options.useDatalist?o._e():s("select",{directives:[{name:"model",rawName:"v-model",value:o.selected,expression:"selected"}],ref:"select",staticClass:"form-control",class:o.options.fieldClasses,style:o.style,attrs:{disabled:o.isDisabled,name:o.options.inputName,id:o.computedId,required:o.options.required},on:{change:[function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});o.selected=e.target.multiple?t:t[0]},o.onChange],blur:function(e){o.$emit("blur")}}},[o._l(o.selectItems,function(t){return[t.group?s("optgroup",{attrs:{label:o.getGroupName(t)}},o._l(t.ops,function(e){return t.ops?s("option",{attrs:{disabled:t.disabled},domProps:{value:o.getItemValue(e),selected:t.selected}}):o._e()})):o._e(),o._v(" "),t.group?o._e():s("option",{attrs:{disabled:t.disabled},domProps:{value:o.getItemValue(t)}},[o._v(o._s(o.getItemName(t)))])]})],2)])},[],!1,null,null,null).exports},45896:function(u,e,t){t.r(e),t.d(e,{default:function(){return C}});var o=t(70538),e=t(78345),s=t(22568),i=t(93196),a=t(24902),r=t(18650),n=t(77171);o.default.use(n.ServerTable);var l={name:"job-stats-list",components:{vueLocalResource:s.default,"vue-input":a.Z,"vue-loading-modal":r.Z},data:function(){return{getJobStatsListUrl:"/Api/job/GetJobStatsList",filter:{},columns:["JobName","Group","LastRun","RunTime","Actions"],options:{texts:{},perPage:10,perPageValues:[],filterable:!1,headings:[],sortable:["JobName","Group","LastRun","RunTime"],requestFunction:this.requestFunction,responseAdapter
1:this.responseAdapter,requestAdapter:this.requestAdapter},errors:[],loading:!1}},mounted:function(){this.buildJobStatsListTable();var t=this;n.Event.$on("vue-tables.jobStatsListTable.loading",function(e){t.loading=!0}),n.Event.$on("vue-tables.jobStatsListTable.loaded",function(e){t.loading=!1})},props:{statsCode:{type:String,default:""},lazyLoad:{type:Boolean,default:!0}},methods:{buildJobStatsListTable:function(){var t=this;Promise.all([this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordsFromTo"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordCount"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Loading"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.First"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Last"),this.$store.dispatch("initializeLocalResource","JobModule.JobStatsList.Column.JobName"),this.$store.dispatch("initializeLocalResource","JobModule.JobStatsList.Column.Group"),this.$store.dispatch("initializeLocalResource","JobModule.JobStatsList.Column.LastRun"),this.$store.dispatch("initializeLocalResource","JobModule.JobStatsList.Column.RunTime"),this.$store.dispatch("initializeLocalResource","JobModule.JobStatsList.NoJobs")]).finally(function(){for(var e=0;e<t.columns.length;e++)t.options.headings[t.columns[e]]=t.$store.getters.getLocalResource("JobModule.JobStatsList.Column."+t.columns[e]);t.options.headings.Actions="",t.options.texts={count:t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordsFromTo")+"|"+t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordCount"),noResults:t.$store.getters.getLocalResource("JobModule.JobStatsList.NoJobs"),loading:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Loading"),first:t.$store.getters.getLocalResource("ManageLookupTable.Grid.First"),last:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Last")}})},search:function(){this.$refs.jobStatsListTable.refresh()}
1,responseAdapter:function(e){return null==e?{data:[],count:0}:{data:e.data.jobStatsListRecords,count:e.data.totalRecords}},requestFunction:function(){return this.$axios.post(this.getJobStatsListUrl,this.filter).catch(this.handleErrorResponse)},requestAdapter:function(e){this.filter.JobState=this.statsCode,this.filter.PageNumber=e.page-1,this.filter.PageSize=e.limit,this.filter.OrderBy=e.orderBy,this.filter.OrderAscending=0===e.ascending},handleErrorResponse:function(e){e.response&&Array.isArray(e.response.data.Messages)?this.errors=this.errors.concat(e.response.data.Messages):this.errors.push(e.response.data.Message)},detailJob:function(e){this.$router.push({name:"JobDetail",params:{name:e.JobName,group:e.Group}}),this.$emit("goToJobDetail")}},watch:{lazyLoad:function(e,t){this.filter.SearchTerm=""}}},c=t(51900),l=(0,c.Z)(l,function(){var o=this,e=o.$createElement,s=o._self._c||e;return s("div",[s("vue-loading-modal",{attrs:{show:o.loading}}),o._v(" "),0<o.errors.length?s("div",{staticClass:"row bottom-margin"},[s("ul",{staticClass:"list-unstyled"},o._l(o.errors,function(e){return s("li",{staticClass:"text-danger"},[s("vueLocalResource",{attrs:{_:e}})],1)}))]):o._e(),o._v(" "),s("div",{staticClass:"row form-group bottom-margin"},[s("div",{staticClass:"col-md-6"},[s("ul",{staticClass:"list-inline"},[s("li",[s("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:o.search}},[s("i",{staticClass:"glyphicon glyphicon-search"}),o._v("Â "),s("vueLocalResource",{attrs:{_:"JobModule.JobStatsList.Search"}})],1)])])]),o._v(" "),s("div",{staticClass:"col-md-6 pull-right"},[s("vue-input",{attrs:{options:{inputType:"text",_:"JobModule.JobStatsList.Filter.Term",required:!1}},model:{value:o.filter.SearchTerm,callback:function(e){o.$set(o.filter,"SearchTerm",e)},expression:"filter.SearchTerm"}})],1)]),o._v(" "),s("div",{staticClass:"row form-group"},[s("div",{staticClass:"col-md-12"},[o.lazyLoad?o._e():s("v-server-table",{ref:"jobStatsListTable",attrs:{columns:o.columns,options:o.options,name:"jobStatsListTable",id:"jobStatsListTable"},scopedSlots:o._u([{key:"Actions",fn:function(t){return s("div",{},[s("button",{staticClass:"btn btn-primary btn-sm",attrs:{type:"button"},on:{click:function(e){o.detailJob(t.row)}}},[s("i",{staticClass:"glyphicon glyphicon-hand-right"})])])}}])})],1)])],1)},[],!1,null,null,null).exports,d=t(82221),p=Object.freeze({Cron:"Cron",Simple:"Simple",Daily:"Daily"}),g=Object.freeze({Start:"Start",Standby:"Standby",Shutdown:"Shutdown",PauseAll:"PauseAll",ResumeAll:"ResumeAll"}),m=Object.freeze({Success:"Success",Failed:"Failed",Executing:"Executing",Interrupted:"Interrupted",UnKnown:"UnKnown"}),l={name:"job-stats-header",components:{vueLocalResource:s.default,"vue-ok-cancel-modal":i.Z,"vue-job-stats-list":l,"vue-modal":d.Z},data:function(){return{actionUrl:"/Api/job/Action",showConfirmationModal:!1,selectedAction:"",errors:[],selectedStatsCode:"",showStatsListModal:!1,SchedulerActionEnum:g,JobStateEnum:m}},mounted:function(){var t=this;this.getJobStats(),this.$root.$on("reload_job_stats",function(e){t.getJobStats()})},props:{},computed:{stats:function(){return this.$store.getters.jobStats}},methods:{getJobStats:function(){this.$store.dispatch("getJobStats").catch(self.handleErrorResponse)},action:function(e,t){var o=this;o.selectedAction=e,t?this.showConfirmationModal=!0:"function"==typeof this[e]?(this[e](),o.$root.$emit("reload_jobs_grid")):this.$axios.post(this.actionUrl,"="+e).then(function(e){o.getJobStats(),o.$root.$emit("reload_jobs_grid")})},confirmationModalTitleKey:function(){return"JobModule.Scheduler."+this.selectedAction+".Confirmation.Title"},confirmationModalMessageKey:function(){return"JobModule.Scheduler."+this.selectedAction+".Confirmation.Message"},onConfirmationOk:function(){this.showConfirmationModal=!1,this.action(this.selectedAction,!1)},onConfirmationCancel:function(){this.showConfirmationModal=!1},handleErrorResponse:function(e){e.response&&Array.isArray(e.response.data.Messages)?this.errors=this.errors.concat(e.response.data.Messages):this.errors.push(e.response.data.Message)},setSelectedStats:function(e){this.selectedStatsCode=e,this.showStatsListModal=!0}}},l=(0,c.Z)(l,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"scheduler-dashboard"}},[0<t.errors.length?o("div",{staticClass:"row bottom-margin"},[o("ul",{staticClass:"list-unstyled"},t._l(t.errors,function(e){return o("li",{staticClass:"text-danger"},[o("vueLocalResource",{attrs:{_:e}})],1)}))]):t._e(),t._v(" "),0==t.errors.length?o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-4"},[o("fieldset",[o("legend",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.Overview"}}),t._v(" "),o("button",{staticClass:"pull-right btn btn-sm",attrs:{type:"button"},on:{click:function(e){t.action("getJobStats",!1)}}},[o("i",{staticClass:"glyphicon glyphicon-refresh"})])],1),t._v(" "),o("ul",{staticClass:"list-inline"},[o("li",[o("button",{staticClass:"btn btn-lg btn-success",attrs:{type:"button",disabled:0==t.stats.ExecutedJobsCount},on:{click:function(e){t.setSelectedStats(t.JobStateEnum.Success)}}},[o("i",{staticClass:"glyphicon glyphicon-ok big-font"}),t._v(" "),o("span",{staticClass:"big-font"},[t._v(t._s(t.stats.ExecutedJobsCount))]),o("br"),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.ExecutedJobs"}})],1)])]),t._v(" "),o("li",[o("button",{staticClass:"btn btn-lg btn-danger",attrs:{type:"button",disabled:0==t.stats.FailedJobsCount},on:{click:function(e){t.setSelectedStats(t.JobStateEnum.Failed)}}},[o("i",{staticClass:"glyphicon glyphicon-remove big-font"}),t._v(" "),o("span",{staticClass:"big-font"},[t._v(t._s(t.stats.FailedJobsCount))]),o("br"),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.FailedJobs"}})],1)])]),t._v(" "),o("li",[o("button",{staticClass:"btn btn-lg btn-info",attrs:{type:"button",disabled:0==t.stats.ExecutingJobsCount},on:{click:function(e){t.setSelectedStats(t.JobStateEnum.Executing)}}},[o("i",{staticClass:"glyphicon glyphicon-play big-font"}),t._v(" "),o("span",{staticClass:"big-font"},[t._v(t._s(t.stats.ExecutingJobsCount))]),o("br"),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.ExecutingJobs"}})],1)])]),t._v(" "),o("li",[o("div",{staticClass:"inline-stats"},[o("span",{staticClass:"big-font"},[t._v(t._s(t.stats.TriggersCount))]),o("span",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.TriggerCount"}}
1)],1),o("br"),t._v(" "),o("span",{staticClass:"big-font"},[t._v(t._s(t.stats.JobsCount))]),o("span",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.JobsCount"}})],1)])])])])]),t._v(" "),o("div",{staticClass:"col-md-4"},[o("fieldset",[o("legend",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.SchedulerDetail"}})],1),t._v(" "),o("table",{staticClass:"table table-hover table-striped"},[o("tbody",[o("tr",[o("td",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.RunningSince"}})],1),t._v(" "),o("td",[o("b",[t._v(t._s(t.stats.RunningSinceFormatted))])])]),t._v(" "),o("tr",[o("td",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.ThreadPoolSize"}})],1),t._v(" "),o("td",[o("b",[t._v(t._s(t.stats.ThreadPoolSize))])])]),t._v(" "),o("tr",[o("td",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.MachineName"}})],1),t._v(" "),o("td",[o("b",[t._v(t._s(t.stats.MachineName))])])])])])])]),t._v(" "),o("div",{staticClass:"col-md-4"},[o("fieldset",[o("legend",[o("vueLocalResource",{attrs:{_:"JobModule.Stats.Actions"}})],1),t._v(" "),o("ul",{staticClass:"list-inline"},[o("li",[t.stats.IsInStandbyMode?t._e():o("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:function(e){t.action(t.SchedulerActionEnum.Standby,!0)}}},[o("i",{staticClass:"glyphicon glyphicon-stop"}),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.StandBy"}})],1)]),t._v(" "),t.stats.IsInStandbyMode?o("button",{staticClass:"btn btn-success",attrs:{type:"button"},on:{click:function(e){t.action(t.SchedulerActionEnum.Start,!0)}}},[o("i",{staticClass:"glyphicon glyphicon-play"}),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.Start"}})],1)]):t._e()]),t._v(" "),o("li",[o("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){t.action(t.SchedulerActionEnum.Shutdown,!0)}}},[o("i",{staticClass:"glyphicon glyphicon-off"}),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.Shutdown"}})],1)])]),t._v(" "),o("li",[o("button",{staticClass:"btn btn-default",attrs:{type:"button",disabled:t.stats.IsJobsPaused},on:{click:function(e){t.action(t.SchedulerActionEnum.PauseAll,!0)}}},[o("i",{staticClass:"glyphicon glyphicon-pause"}),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.PauseAll"}})],1)])]),t._v(" "),o("li",[o("button",{staticClass:"btn",class:{"btn-success":t.stats.IsJobsPaused,"btn-default":!t.stats.IsJobsPaused},attrs:{type:"button"},on:{click:function(e){t.action(t.SchedulerActionEnum.ResumeAll,!0)}}},[o("i",{staticClass:"glyphicon glyphicon-play"}),t._v(" "),o("span",{staticClass:"small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.ResumeAll"}})],1)])])]),t._v(" "),o("span",{staticClass:"help-block small"},[o("vueLocalResource",{attrs:{_:"JobModule.Stats.Actions.HelpText"}})],1)]),t._v(" "),o("vue-ok-cancel-modal",{attrs:{"title-key":t.confirmationModalTitleKey(),show:t.showConfirmationModal,"message-key":t.confirmationModalMessageKey()},on:{"okCancel-ok":t.onConfirmationOk,"okCancel-cancel":t.onConfirmationCancel}}),t._v(" "),o("vue-modal",{directives:[{name:"show",rawName:"v-show",value:t.showStatsListModal,expression:"showStatsListModal"}],attrs:{width:"50%",title:"JobModule.JobStatsList."+t.selectedStatsCode+".Modal.Title",id:"jobStatsListModal","modal-class":"modal-dialog modal-lg modal-open"},on:{close:function(e){t.showStatsListModal=!1}},scopedSlots:t._u([{key:"body",fn:function(e){return[o("div",[o("vue-job-stats-list",{attrs:{lazyLoad:!t.showStatsListModal,statsCode:t.selectedStatsCode},on:{goToJobDetail:function(e){t.showStatsListModal=!1}}})],1)]}}])})],1)]):t._e()])},[],!1,null,null,null).exports,h=t(61834),b=(o.default.use(n.ServerTable),{name:"job-grid",components:{vueLocalResource:s.default,"vue-input":a.Z,"vue-select":h.Z,"vue-ok-cancel-modal":i.Z,"vue-loading-modal":r.Z},data:function(){return{getJobGridDataUrl:"/Api/job/GetJobGridData",getDeleteJobUrl:"/Api/job/DeleteJob",getPauseJobUrl:"/Api/job/PauseJob",getResumeJobUrl:"/Api/job/ResumeJob",getInterruptJobUrl:"/Api/job/InterruptJob",selectObjects:{jobStates:[],jobGroups:[],StateId:null},filter:{SearchTerm:"",StateId:"",GroupKey:null},columns:["State","JobName","Group","TriggerType","LastRun","NextRun","Actions"],tableData:[],totalRecords:0,options:{texts:{},perPage:10,perPageValues:[10,20,50,100],filterable:!1,uniqueKey:"Id",headings:[],sortable:["State","JobName","Group","TriggerType","LastRun","NextRun"],requestFunction:this.requestFunction,responseAdapter
1:this.responseAdapter,requestAdapter:this.requestAdapter,orderBy:{ascending:!1}},errors:[],selectedJob:{},showConfirmationModal:!1,selectedAction:"",loading:!1}},mounted:function(){var t=this;this.getJobGridData(),this.$root.$on("reload_jobs_grid",function(e){t.reloadData()})},computed:{confirmationModalTitleKey:function(){return"JobModule.JobGrid."+this.selectedAction+".Confirmation.Title"},confirmationModalMessageKey:function(){return"JobModule.JobGrid."+this.selectedAction+".Confirmation.Message"},stats:function(){return this.$store.getters.jobStats}},methods:{getJobGridData:function(){var t=this;Promise.all([this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordsFromTo"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordCount"),this.$store.dispatch("initializeLocalResource","JobModule.JobGrid.NoJobs"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Loading"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.First"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Last"),this.$store.dispatch("initializeLocalResource","JobModule.JobGrid.Column.State"),this.$store.dispatch("initializeLocalResource","JobModule.JobGrid.Column.JobName"),this.$store.dispatch("initializeLocalResource","JobModule.JobGrid.Column.TriggerType"),this.$store.dispatch("initializeLocalResource","JobModule.JobGrid.Column.Group"),this.$store.dispatch("initializeLocalResource","JobModule.JobGrid.Column.LastRun"),this.$store.dispatch("initializeLocalResource","JobModule.JobGrid.Column.NextRun")]).finally(function(){for(var e=0;e<t.columns.length;e++)t.options.headings[t.columns[e]]=t.$store.getters.getLocalResource("JobModule.JobGrid.Column."+t.columns[e]);t.options.headings.Actions="",t.options.texts={count:t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordsFromTo")+"|"+t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordCount"),noResults:t.$store.getters.getLocalResource("JobModule.JobGrid.NoJobs"),loading:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Loading"),first:t.$store.getters.getLocalResource("ManageLookupTable.Grid.First"),last:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Last")}})}
1,responseAdapter:function(e){return null==e?{data:[],count:0}:(this.selectObjects.jobStates=e.data.jobStates,this.selectObjects.jobGroups=e.data.jobGroups,{data:e.data.jobs,count:e.data.totalRecords})},requestFunction:function(){return this.$axios.get(this.getJobGridDataUrl,{params:this.filter}).catch(this.handleErrorResponse)},requestAdapter:function(e){this.selectObjects.StateId?this.filter.StateId=this.selectObjects.StateId:this.filter.StateId=-1,this.filter.PageNumber=e.page-1,this.filter.PageSize=e.limit,this.filter.OrderBy=e.orderBy,this.filter.OrderAscending=0!==e.ascending},search:function(){this.$refs.jobDetailGrid.refresh()},addJob:function(){this.$router.push("/add")},reloadData:function(){this.$refs.jobDetailGrid.refresh()},deleteJob:function(e){var t=this;this.$axios.post(this.getDeleteJobUrl,{Name:e.JobName,Group:e.Group}).then(function(e){t.$root.$emit("reload_job_stats"),t.$root.$emit("reload_jobs_grid")}).catch(t.handleErrorResponse)},interruptJob:function(e){var t=this;this.$axios.post(this.getInterruptJobUrl,{Name:e.JobName,Group:e.Group}).then(function(e){t.$root.$emit("reload_job_stats"),t.$root.$emit("reload_jobs_grid")}).catch(t.handleErrorResponse)},detailJob:function(e){this.$router.push({name:"JobDetail",params:{name:e.JobName,group:e.Group}})},pauseJob:function(e){this.$axios.post(this.getPauseJobUrl,{Name:e.JobName,Group:e.Group}).then(function(){e.IsPaused=!0}).catch(this.handleErrorResponse)},resumeJob:function(e){this.$axios.post(this.getResumeJobUrl,{Name:e.JobName,Group:e.Group}).then(function(){e.IsPaused=!1}).catch(this.handleErrorResponse)},handleErrorResponse:function(e){e.response&&Array.isArray(e.response.data.Messages)?this.errors=this.errors.concat(e.response.data.Messages):this.errors.push(e.response.data.Message),this.loading=!1},action:function(e,t,o){this.selectedAction=t,this.selectedJob=e,o?this.showConfirmationModal=!0:this[t].call(this,e)},onConfirmationOk:function(){this.showConfirmationModal=!1,this.action(this.selectedJob,this.selectedAction,!1)},onConfirmationCancel:function(){this.showConfirmationModal=!1},setLoading:function(){this.loading=!0},setLoaded:function(){this.loading=!1,this.$emit("loaded")}}}),b=(0,c.Z)(b,function(){var o=this,e=o.$createElement,s=o._self._c||e;return s("div",[s("vue-loading-modal",{attrs:{show:o.loading}}),o._v(" "),s("div",{staticClass:"row form-group",staticStyle:{"margin-bottom":"20px"}},[s("div",{staticClass:"col-md-12"},[s("ul",{staticClass:"list-inline"},[s("li",[s("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:o.search}},[s("i",{staticClass:"glyphicon glyphicon-search"}),o._v("Â "),s("vueLocalResource",{attrs:{_:"JobModule.Search"}})],1)]),o._v(" "),s("li",[s("button",{staticClass:"btn btn-success",attrs:{type:"button"},on:{click:o.addJob}},[s("i",{staticClass:"glyphicon glyphicon-plus"}),o._v("Â "),s("vueLocalResource",{attrs:{_:"JobModule.Add"}})],1)])])])]),o._v(" "),0<o.errors.length?s("div",{staticClass:"row bottom-margin"},[s("ul",{staticClass:"list-unstyled"},o._l(o.errors,function(e){return s("li",{staticClass:"text-danger"},[s("vueLocalResource",{attrs:{_:e}})],1)}))]):o._e(),o._v(" "),s("div",{staticClass:"row form-group",staticStyle:{"margin-bottom":"20px"}},[s("div",{staticClass:"col-md-2"},[s("vue-select",{attrs:{options:{_:"JobModule.JobGrid.Filter.StateKey"},items:o.selectObjects.jobStates,"to-string-value":!0,"to-string-value":"","none-selected-text-key":"ClickToSelect"},model:{value:o.selectObjects.StateId,callback:function(e){o.$set(o.selectObjects,"StateId",e)},expression:"selectObjects.StateId"}})],1),o._v(" "),s("div",{staticClass:"col-md-2"},[s("vue-select",{attrs:{options:{_:"JobModule.JobGrid.Filter.GroupKey"},items:o.selectObjects.jobGroups,"none-selected-text-key":"ClickToSelect","to-string-value":""},model:{value:o.filter.GroupKey,callback:function(e){o.$set(o.filter,"GroupKey",e)},expression:"filter.GroupKey"}})],1),o._v(" "),s("div",{staticClass:"col-md-4 pull-right"},[s("vue-input",{attrs:{options:{inputType:"text",_:"JobModule.JobGrid.Filter.Term",required:!1}},model:{value:o.filter.SearchTerm,callback:function(e){o.$set(o.filter,"SearchTerm",e)}
1,expression:"filter.SearchTerm"}})],1)]),o._v(" "),s("div",{staticClass:"row form-group"},[s("div",{staticClass:"col-md-12"},[s("v-server-table",{ref:"jobDetailGrid",attrs:{columns:o.columns,options:o.options,name:"jobDetailGrid",id:"jobDetailGrid"},on:{loading:o.setLoading,loaded:o.setLoaded},scopedSlots:o._u([{key:"State",fn:function(e){return s("div",{},[o._v("\n "+o._s(e.row.State)+"\n ")])}},{key:"child_row",fn:function(e){return s("div",{},[s("div",{domProps:{innerHTML:o._s(e.row.Description)}})])}},{key:"TriggerType",fn:function(e){return s("div",{},[s("vueLocalResource",{attrs:{_:e.row.TriggerType}})],1)}},{key:"LastRun",fn:function(e){return s("div",{},[o._v("\n "+o._s(e.row.LastRunFormatted)+"\n ")])}},{key:"NextRun",fn:function(e){return s("div",{},[o._v("\n "+o._s(e.row.NextRunFormatted)+"\n ")])}},{key:"Actions",fn:function(t){return s("div",{},[null===t.row.IsPaused||t.row.IsPaused?o._e():s("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button",disabled:o.stats.IsJobsPaused||o.stats.IsInStandbyMode},on:{click:function(e){o.action(t.row,"pauseJob",!0)}}},[s("i",{staticClass:"glyphicon glyphicon-pause"})]),o._v(" "),null!==t.row.IsPaused&&t.row.IsPaused?s("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button",disabled:o.stats.IsJobsPaused||o.stats.IsInStandbyMode},on:{click:function(e){o.action(t.row,"resumeJob",!0)}}},[s("i",{staticClass:"glyphicon glyphicon-play"})]):o._e(),o._v(" "),s("button",{staticClass:"btn btn-primary btn-sm",attrs:{type:"button"},on:{click:function(e){o.action(t.row,"detailJob",!1)}}},[s("i",{staticClass:"glyphicon glyphicon-edit"})]),o._v(" "),s("button",{staticClass:"btn btn-danger btn-sm",attrs:{type:"button"},on:{click:function(e){o.action(t.row,"deleteJob",!0)}}},[s("i",{staticClass:"glyphicon glyphicon-trash"})]),o._v(" "),t.row.IsInterruptible?s("button",{staticClass:"btn btn-danger btn-sm",attrs:{type:"button"},on:{click:function(e){o.action(t.row,"interruptJob",!0)}}},[s("i",{staticClass:"glyphicon glyphicon-stop"})]):o._e()])}}])})],1)]),o._v(" "),s("vue-ok-cancel-modal",{attrs:{"title-key":o.confirmationModalTitleKey,show:o.showConfirmationModal,"message-key":o.confirmationModalMessageKey},on:{"okCancel-ok":o.onConfirmationOk,"okCancel-cancel":o.onConfirmationCancel}})],1)},[],!1,null,null,null).exports,v=t(30743),f=t(80008),y=t.n(f),T=t(70538).default,f={name:"job-add",components:{vueLocalResource:s.default,"vue-input":a.Z,"vue-select":h.Z,"vue-loading-modal":r.Z,"vue-ok-cancel-modal":i.Z,"vue-date-time-picker":v.Z},data:function(){return{getAddJobUrl:"/Api/job/AddJob",getEditJobUrl:"/Api/job/EditJob",getSaveJobUrl:"/Api/job/SaveJob",getCronExpressionDescriptionUrl:"/Api/job/GetCronExpressionDescription?expression=",job:{Trigger:{CronTrigger:{},SimpleTrigger:{},DailyTrigger:{DaysOfWeek:{}},StartDateTime:null,EndDateTime:null,DisplayStartDateTime:null,DisplayEndDateTime:null},DataMaps:[]},lookups:{groups:[],types:[],misfireInstructions:[],priorityList:[],intervalUnits:[],triggerTypes:[]},cron:{},datepicker:{startDateTime:{format:this.$store.getters.shortDateTimeFormat,useCurrent:!1,showClear:!0,showClose:!0,minDate:null,maxDate:null},endDateTime:{format:this.$store.getters.shortDateTimeFormat,useCurrent:!1,showClear:!0,showClose:!0,minDate:null,maxDate:null},startTime:{format:this.$store.getters.shortTimeFormat,useCurrent:!1,showClear:!0,showClose:!0,minDate:null,maxDate:null},endTime:{format:this.$store.getters.shortTimeFormat,useCurrent:!1,showClear:!0,showClose:!0,minDate:null,maxDate:null}},errors:[],loading:!1,confirmSave:!1}},mounted:function(){this.initializeForm()},props:{name:{type:String,default:""},group:{type:String,default:""},showBackButton:{type:Boolean,default:!0}},computed:{isCronTrigger:function(){return this.job.Trigger.TriggerType===p.Cron},isSimpleTrigger:function(){return this.job.Trigger.TriggerType===p.Simple},isDailyTrigger:function(){return this.job.Trigger.TriggerType===p.Daily},misfireInstructionHelpTextKey:function(){var t=this;return this.lookups.misfireInstructions.find(function(e){return e.id==t.job.Trigger.MisfireInstructionType}).helpTextKey.replace("{0}",this.lookups.triggerTypes.find(function(e){return e.id==t.job.Trigger.TriggerType}).name)},misfireInstructions:function(){var t=this;return this.lookups.misfireInstructions.filter(function(e){return void 0===e.triggerType||-1<e.triggerType.indexOf(t.job.Trigger.TriggerType)})},disableInputs:function(){return!this.job.IsNew},todaysDate:function(){var e=this.$store.getters.timeZone;return y()().tz(e)}},methods:{initializeForm:function(){var t=this;t.loading=!0,(this.name&&this.group?this.$axios.post(this.getEditJobUrl,{Name:this.name,Group:this.group}).then(function(e){t.initializeData(e)}):this.$axios.get(this.getAddJobUrl).then(function(e){t.initializeData(e)})).catch(t.handleErrorResponse)},saveJob:function(){this.job.IsNew?this.save():this.confirmSave=!0},onSaveConfirm:function(){this.confirmSave=!1,this.save()},onSaveCancel:function(){this.confirmSave=!1},initializeData:function(e){this.lookups.groups=e.data.jobModel.Groups,this.lookups.types=e.data.jobModel.Types,this.lookups.misfireInstructions=e.data.jobModel.Trigger.MisfireInstructions,this.lookups.priorityList=e.data.jobModel.Trigger.PriorityList,this.lookups.intervalUnits=e.data.jobModel.Trigger.IntervalUnits,this.lookups.triggerTypes=e.data.jobModel.Trigger.TriggerTypes;var t=this;setTimeout(function(){t.job=e.data.jobModel,t.getCronExpressionDescription(t.job.Trigger.CronTrigger.Expression),t.initializeDatePickers(),t.loading=!1},0)},jobTypeChange:function(e){this.job.DataMaps.length=0,this.job.DisplayDescription="",this.job.Name="",this.job.Group="";var t=e.target.value,o=this.lookups.types.find(function(e){return e.id==t});if(o){this.job.Name=o.name.replace(/ /g,"_"),this.job.Group=o.application.replace(/ /g,"_"),this.job.DisplayDescription=o.description||"";for(var s=0;s<o.props.length;s++)this.addJobDataMap(o.props[s].name,o.props[s].displayName,o.props[s].description)}},addJobDataMap:function(e,t,o){this.job.DataMaps.push({Name:e||"",Value:"",DisplayName:t||e,Description:o||""})},removeJobDataMap:function(e){this.job.DataMaps.splice(e,1)},save:function(){var t=this,e=(t.errors.length=[],JSON.parse(JSON.stringify(t.job))),o="HH:mm:ss";
12==e.Trigger.TriggerType&&(e.Trigger.DailyTrigger.StartTime=y()(e.Trigger.DailyTrigger.StartTime,t.datepicker.startTime.format).format(o),e.Trigger.DailyTrigger.EndTime=y()(e.Trigger.DailyTrigger.EndTime,t.datepicker.endTime.format).format(o)),this.$axios.post(this.getSaveJobUrl,e).then(function(e){t.$router.push("/"),t.$root.$emit("reload_job_stats")}).catch(t.handleErrorResponse)},back:function(){this.$router.push("/")},updateTrigger:function(e){this.job.Trigger=e},handleErrorResponse:function(e){e.response&&Array.isArray(e.response.data.Messages)?this.errors=this.errors.concat(e.response.data.Messages):this.errors.push(e.response.data.Message),this.loading=!1},onStartDateTimeChange:function(e){this.datepicker.endDateTime.minDate=e},onEndDateTimeChange:function(e){this.datepicker.startDateTime.maxDate=e},onStartTimeChange:function(e){this.datepicker.endTime.minDate=e},onEndTimeChange:function(e){this.datepicker.startTime.maxDate=e},handleCronExpressionPaste:function(e){e=(e.clipboardData||window.clipboardData).getData("Text");this.getCronExpressionDescription(e)},getCronExpressionDescription:function(e){var t=this;if(!e)return T.set(t.cron,"description",""),void(t.cron.nextDates="");t.$axios.get(this.getCronExpressionDescriptionUrl+e).then(function(e){T.set(t.cron,"description",e.data.description),t.cron.nextDates="",e.data.nextDates.forEach(function(e){t.cron.nextDates+=e+"\n"}),t.cron.nextDates.trim("\n")}).catch(t.handleErrorResponse)},initializeDatePickers:function(){var e=this.datepicker,t=this.job.Trigger;t.StartDateTime?e.startDateTime.minDate=t.StartDateTime:e.startDateTime.minDate=this.todaysDate,t.EndDateTime&&(e.startDateTime.maxDate=t.EndDateTime),e.endDateTime.minDate=e.startDateTime.minDate}},watch:{loading:function(e,t){e&&this.$emit("loaded")}}},h=(0,c.Z)(f,function(){var a=this,e=a.$createElement,s=a._self._c||e;return s("div",{staticClass:"row"},[s("vue-loading-modal",{attrs:{show:a.loading}}),a._v(" "),s("vue-ok-cancel-modal",{attrs:{show:a.confirmSave,titleKey:"SaveJobTrigger",messageKey:"SaveJobTriggerWarning"},on:{"okCancel-ok":a.onSaveConfirm,"okCancel-cancel":a.onSaveCancel}}),a._v(" "),s("form",{staticClass:"col-md-12",attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),a.saveJob(e)}}},[s("div",{staticClass:"bottom-margin"},[s("ul",{staticClass:"list-inline"},[a.showBackButton?s("li",[s("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:a.back}},[s("i",{staticClass:"glyphicon glyphicon-arrow-left"}),a._v("Â "),s("vueLocalResource",{attrs:{_:"JobModule.Back"}})],1)]):a._e(),a._v(" "),s("li",[s("button",{staticClass:"btn btn-success",attrs:{type:"submit"}},[s("i",{staticClass:"glyphicon glyphicon-save"}),a._v("Â "),s("vueLocalResource",{attrs:{_:"JobModule.Save"}})],1)])])]),a._v(" "),s("div",{staticClass:"panel panel-default bottom-margin"},[s("div",{staticClass:"panel-body"},[0<a.errors.length?s("div",{staticClass:"row bottom-margin"},[s("ul",{staticClass:"list-unstyled"},a._l(a.errors,function(e){return s("li",{staticClass:"text-danger"},[s("vueLocalResource",{attrs:{_:e}})],1)}))]):a._e(),a._v(" "),s("fieldset",[s("legend",[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobDetail"}})],1),a._v(" "),s("div",{staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-12 bottom-margin"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobType"}})],1),a._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:a.job.Type,expression:"job.Type"}],staticClass:"form-control",attrs:{required:"",disabled:a.disableInputs},on:{change:[function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});a.$set(a.job,"Type",e.target.multiple?t:t[0])},function(e){a.jobTypeChange(e)}]}},[s("option",{attrs:{value:""}},[s("vueLocalResource",{attrs:{_:"ClickToSelect"}})],1),a._v(" "),a._l(a.lookups.types,function(e){return s("option",{domProps:{value:e.id}},[a._v(a._s(e.name))])})],2),a._v(" "),s("span",{staticClass:"help-block bottom-margin small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobType.HelpText"}})],1),a._v(" "),a.job.DisplayDescription?s("blockquote",[s("span",{staticClass:"help-block small"},[a._v(a._s(a.job.DisplayDescription))])]):a._e()]),a._v(" "),s("div",{staticClass:"col-md-6"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobName"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Name,expression:"job.Name"}],staticClass:"form-control",attrs:{type:"text",required:"",disabled:a.disableInputs},domProps:{value:a.job.Name},on:{input:function(e){e.target.composing||a.$set(a.job,"Name",e.target.value)}}})]),a._v(" "),s("div",{staticClass:"col-md-6"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobGroup"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Group,expression:"job.Group"}],staticClass:"form-control",attrs:{disabled:a.disableInputs},domProps:{value:a.job.Group},on:{input:function(e){e.target.composing||a.$set(a.job,"Group",e.target.value)}}})]),a._v(" "),s("div",{staticClass:"col-md-12 bottom-margin help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobKey.HelpText"}})],1),a._v(" "),s("div",{staticClass:"col-md-12 bottom-margin"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobDescription"}})],1),a._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:a.job.Description,expression:"job.Description"}],staticClass:"form-control",attrs:{rows:"10",required:""},domProps:{value:a.job.Description},on:{input:function(e){e.target.composing||a.$set(a.job,"Description",e.target.value)}}})]),a._v(" "),s("div",{staticClass:"col-md-12"},[s("label",{staticClass:"checkbox-inline"},[s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.RequestRecovery,expression:"job.RequestRecovery"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(a.job.RequestRecovery)?-1<a._i(a.job.RequestRecovery,null):a.job.RequestRecovery},on:{change:function(e){var t,o=a.job.RequestRecovery,e=e.target,s=!!e.checked;Array.isArray(o)?(t=a._i(o,null),e.checked?t<0&&a.$set(a.job,"RequestRecovery",o.concat([null])):-1<t&&a.$set(a.job,"RequestRecovery",o.slice(0,t).concat(o.slice(t+1)))):a.$set(a.job,"RequestRecovery",s)}}}),s("vueLocalResource",{attrs:{_:"JobModule.AddJob.RequestRecovery"}})],1),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.RequestRecovery.HelpText"}})],1)]),a._v(" "),s("div",{staticClass:"col-md-12"},[s("label",{staticClass:"checkbox-inline"},[s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.IsDurable,expression:"job.IsDurable"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(a.job.IsDurable)?-1<a._i(a.job.IsDurable,null):a.job.IsDurable},on:{change:function(e){var t,o=a.job.IsDurable,e=e.target,s=!!e.checked;Array.isArray(o)?(t=a._i(o,null),e.checked?t<0&&a.$set(a.job,"IsDurable",o.concat([null])):-1<t&&a.$set(a.job,"IsDurable",o.slice(0,t).concat(o.slice(t+1)))):a.$set(a.job,"IsDurable",s)}}}),s("vueLocalResource",{attrs:{_:"JobModule.AddJob.IsDurable"}})],1),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.IsDurable.HelpText"}})],1)])])]),a._v(" "),s("fieldset",[s("legend",[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobData"}})],1),a._v(" "),s("div",{staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-12 bottom-margin help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobData.HelpText"}})],1)]),a._v(" "),a._l(a.job.DataMaps,function(t,o){return s("div",{key:o,staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-5"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobData.Name"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.DisplayName,expression:"map.DisplayName"}],staticClass:"form-control",attrs:{type:"text",readonly:""},domProps:{value:t.DisplayName},on:{input:function(e){e.target.composing||a.$set(t,"DisplayName",e.target.value)}}})]),a._v(" "),s("div",{staticClass:"col-md-5"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.JobData.Value"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.Value,expression:"map.Value"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.Value},on:{input:function(e){e.target.composing||a.$set(t,"Value",e.target.value)}}})]),a._v(" "),s("div",{staticClass:"col-md-2"},[s("label",{staticClass:"control-label"},[a._v("Â ")]),a._v(" "),s("ul",{staticClass:"list-inline"},[a.job.IsNew?s("li",[s("button",{staticClass:"btn btn-danger btn-sm",attrs:{type:"button"},on:{click:function(e){a.removeJobDataMap(o)}}},[s("i",{staticClass:"glyphicon glyphicon-minus"})])]):a._e()])]),a._v(" "),s("div",{staticClass:"col-md-12"},[t.Description?s("blockquote",[s("span",{staticClass:"help-block small"},[a._v(a._s(t.Description))])]):a._e()])])})],2),a._v(" "),s("fieldset",[s("legend",[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger"}})],1),a._v(" "),a.loading?a._e():s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12 bottom-margin"},a._l(a.lookups.triggerTypes,function(t,e){return s("label",{key:e,staticClass:"radio-inline"},[s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.TriggerType,expression:"job.Trigger.TriggerType"}],attrs:{type:"radio",name:"TriggerTypes"},domProps:{value:t.id,checked:a._q(a.job.Trigger.TriggerType,t.id)},on:{change:[function(e){a.$set(a.job.Trigger,"TriggerType",t.id)},function(e){a.job.Trigger.MisfireInstructionType=0}]}}),a._v(" "),s("vueLocalResource",{attrs:{_:t.name}})],1)})),a._v(" "),s("div",{staticClass:"col-md-12 bottom-margin"},[s("label",{staticClass:"checkbox-inline"},[s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.IsDurable,expression:"job.Trigger.IsDurable"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(a.job.Trigger.IsDurable)?-1<a._i(a.job.Trigger.IsDurable,null):a.job.Trigger.IsDurable},on:{change:function(e){var t,o=a.job.Trigger.IsDurable,e=e.target,s=!!e.checked;Array.isArray(o)?(t=a._i(o,null),e.checked?t<0&&a.$set(a.job.Trigger,"IsDurable",o.concat([null])):-1<t&&a.$set(a.job.Trigger,"IsDurable",o.slice(0,t).concat(o.slice(t+1)))):a.$set(a.job.Trigger,"IsDurable",s)}}}),s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.IsDurable"}})],1),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.IsDurable.HelpText"}})],1)]),a._v(" "),s("div",{staticClass:"col-md-12 panel panel-default bottom-margin"},[s("div",{staticClass:"panel-body"},[s("div",{staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.StartDateTime"}})],1),a._v(" "),s("vue-date-time-picker",{ref:"startDateTime",attrs:{options:a.datepicker.startDateTime},on:{"dp-change":a.onStartDateTimeChange},model:{value:a.job.Trigger.StartDateTime,callback:function(e){a.$set(a.job.Trigger,"StartDateTime",e)}
1,expression:"job.Trigger.StartDateTime"}}),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.StartDateTime.HelpText"}})],1),a._v(" "),!a.job.IsNew&&a.job.Trigger.DisplayStartDateTime?s("div",[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DisplayStartDateTime"}})],1),a._v(" "),s("span",[a._v(a._s(a.job.Trigger.DisplayStartDateTime))])]):a._e(),a._v(" "),!a.job.IsNew&&a.job.Trigger.DisplayEndDateTime?s("div",[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DisplayEndDateTime"}})],1),a._v(" "),s("span",[a._v(a._s(a.job.Trigger.DisplayEndDateTime))])]):a._e()],1),a._v(" "),s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.EndDateTime"}})],1),a._v(" "),s("vue-date-time-picker",{ref:"endDateTime",attrs:{options:a.datepicker.endDateTime},on:{"dp-change":a.onEndDateTimeChange},model:{value:a.job.Trigger.EndDateTime,callback:function(e){a.$set(a.job.Trigger,"EndDateTime",e)},expression:"job.Trigger.EndDateTime"}}),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.EndDateTime.HelpText"}})],1)],1),a._v(" "),s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.MisfireInstruction"}})],1),a._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.MisfireInstructionType,expression:"job.Trigger.MisfireInstructionType"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});a.$set(a.job.Trigger,"MisfireInstructionType",e.target.multiple?t:t[0])}}},a._l(a.misfireInstructions,function(e){return s("option",{domProps:{value:e.id}},[a._v(a._s(e.name))])})),a._v(" "),0<a.lookups.misfireInstructions.length&&void 0!==a.job.Trigger.MisfireInstructionType?s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:a.misfireInstructionHelpTextKey}})],1):a._e()]),a._v(" "),s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.Priority"}})],1),a._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.Priority,expression:"job.Trigger.Priority"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});a.$set(a.job.Trigger,"Priority",e.target.multiple?t:t[0])}}},a._l(a.lookups.priorityList,function(e){return s("option",{domProps:{value:e}},[a._v(a._s(e))])})),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.Priority.HelpText"}})],1)])]),a._v(" "),s("div",{staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-6 bottom-margin"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.TriggerName"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.Name,expression:"job.Trigger.Name"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:a.job.Trigger.Name},on:{input:function(e){e.target.composing||a.$set(a.job.Trigger,"Name",e.target.value)}}}),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.TriggerKey.HelpText"}})],1)]),a._v(" "),s("div",{staticClass:"col-md-12"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.TriggerDescription"}})],1),a._v(" "),s("textarea",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.Description,expression:"job.Trigger.Description"}],staticClass:"form-control",attrs:{rows:"5"},domProps:{value:a.job.Trigger.Description},on:{input:function(e){e.target.composing||a.$set(a.job.Trigger,"Description",e.target.value)}}})])]),a._v(" "),s("fieldset",[s("legend",[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.Properties"}})],1),a._v(" "),a.isCronTrigger?s("div",[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-6"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.CronTrigger.Expression"}})],1),a._v(" "),s("span",{staticClass:"help-block small pull-right"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.CronTrigger.Expression.Hint"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.CronTrigger.Expression,expression:"job.Trigger.CronTrigger.Expression"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:a.job.Trigger.CronTrigger.Expression},on:{paste:function(e){a.handleCronExpressionPaste(e)},change:function(e){a.getCronExpressionDescription(e.target.value)}
1,input:function(e){e.target.composing||a.$set(a.job.Trigger.CronTrigger,"Expression",e.target.value)}}}),a._v(" "),s("span",{staticClass:"help-block small pull-left"},[a._v(a._s(a.cron.description))]),a.cron.nextDates?s("i",{staticClass:"text-info glyphicon glyphicon-info-sign pull-right",attrs:{title:a.cron.nextDates}}):a._e()])])]):a._e(),a._v(" "),a.isSimpleTrigger?s("div",[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.SimpleTrigger.RepeatInterval"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.SimpleTrigger.RepeatInterval,expression:"job.Trigger.SimpleTrigger.RepeatInterval"}],staticClass:"form-control",attrs:{type:"number",required:"",min:"0"},domProps:{value:a.job.Trigger.SimpleTrigger.RepeatInterval},on:{input:function(e){e.target.composing||a.$set(a.job.Trigger.SimpleTrigger,"RepeatInterval",e.target.value)}}})]),a._v(" "),s("div",{staticClass:"col-md-2 col-md-offset-right-10"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.SimpleTrigger.RepeatUnit"}})],1),a._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.SimpleTrigger.RepeatUnit,expression:"job.Trigger.SimpleTrigger.RepeatUnit"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});a.$set(a.job.Trigger.SimpleTrigger,"RepeatUnit",e.target.multiple?t:t[0])}}},a._l(a.lookups.intervalUnits,function(e){return s("option",{domProps:{value:e.id}},[a._v(a._s(e.name))])}))]),a._v(" "),s("div",{staticClass:"col-md-3 col-md-offset-right-9 bottom-margin"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.SimpleTrigger.RepeatCount"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.SimpleTrigger.RepeatCount,expression:"job.Trigger.SimpleTrigger.RepeatCount"}],staticClass:"form-control",attrs:{type:"text",required:"",disabled:a.job.Trigger.SimpleTrigger.RepeatForever},domProps:{value:a.job.Trigger.SimpleTrigger.RepeatCount},on:{input:function(e){e.target.composing||a.$set(a.job.Trigger.SimpleTrigger,"RepeatCount",e.target.value)}}}),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.SimpleTrigger.RepeatCount.HelpText"}})],1)]),a._v(" "),s("div",{staticClass:"col-md-6"},[s("label",{staticClass:"checkbox-inline"},[s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.SimpleTrigger.RepeatForever,expression:"job.Trigger.SimpleTrigger.RepeatForever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(a.job.Trigger.SimpleTrigger.RepeatForever)?-1<a._i(a.job.Trigger.SimpleTrigger.RepeatForever,null):a.job.Trigger.SimpleTrigger.RepeatForever},on:{change:function(e){var t,o=a.job.Trigger.SimpleTrigger.RepeatForever,e=e.target,s=!!e.checked;Array.isArray(o)?(t=a._i(o,null),e.checked?t<0&&a.$set(a.job.Trigger.SimpleTrigger,"RepeatForever",o.concat([null])):-1<t&&a.$set(a.job.Trigger.SimpleTrigger,"RepeatForever",o.slice(0,t).concat(o.slice(t+1)))):a.$set(a.job.Trigger.SimpleTrigger,"RepeatForever",s)}}}),a._v(" "),s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.SimpleTrigger.RepeatForever"}})],1)])])]):a._e(),a._v(" "),a.isDailyTrigger?s("div",[s("div",{staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.RepeatInterval"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.DailyTrigger.RepeatInterval,expression:"job.Trigger.DailyTrigger.RepeatInterval"}],staticClass:"form-control",attrs:{type:"text",required:"",min:"0"},domProps:{value:a.job.Trigger.DailyTrigger.RepeatInterval},on:{input:function(e){e.target.composing||a.$set(a.job.Trigger.DailyTrigger,"RepeatInterval",e.target.value)}}})]),a._v(" "),s("div",{staticClass:"col-md-2 col-md-offset-right-10"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.RepeatUnit"}})],1),a._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.DailyTrigger.RepeatUnit,expression:"job.Trigger.DailyTrigger.RepeatUnit"}],staticClass:"form-control",attrs:{required:""},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});a.$set(a.job.Trigger.DailyTrigger,"RepeatUnit",e.target.multiple?t:t[0])}}},a._l(a.lookups.intervalUnits,function(e){return s("option",{domProps:{value:e.id}},[a._v(a._s(e.name))])}))]),a._v(" "),s("div",{staticClass:"col-md-3 col-md-offset-right-9 bottom-margin"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.RepeatCount"}})],1),a._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.DailyTrigger.RepeatCount,expression:"job.Trigger.DailyTrigger.RepeatCount"}],staticClass:"form-control",attrs:{type:"text",required:"",disabled:a.job.Trigger.DailyTrigger.RepeatForever},domProps:{value:a.job.Trigger.DailyTrigger.RepeatCount},on:{input:function(e){e.target.composing||a.$set(a.job.Trigger.DailyTrigger,"RepeatCount",e.target.value)}}}),a._v(" "),s("span",{staticClass:"help-block small"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.RepeatCount.HelpText"}})],1)]),a._v(" "),s("div",{staticClass:"col-md-6"},[s("label",{staticClass:"checkbox-inline"},[s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.DailyTrigger.RepeatForever,expression:"job.Trigger.DailyTrigger.RepeatForever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(a.job.Trigger.DailyTrigger.RepeatForever)?-1<a._i(a.job.Trigger.DailyTrigger.RepeatForever,null):a.job.Trigger.DailyTrigger.RepeatForever},on:{change:function(e){var t,o=a.job.Trigger.DailyTrigger.RepeatForever,e=e.target,s=!!e.checked;Array.isArray(o)?(t=a._i(o,null),e.checked?t<0&&a.$set(a.job.Trigger.DailyTrigger,"RepeatForever",o.concat([null])):-1<t&&a.$set(a.job.Trigger.DailyTrigger,"RepeatForever",o.slice(0,t).concat(o.slice(t+1)))):a.$set(a.job.Trigger.DailyTrigger,"RepeatForever",s)}}}),a._v(" "),s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.RepeatForever"}})],1)])]),a._v(" "),s("div",{staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.StartTime"}})],1),a._v(" "),a.loading?a._e():s("vue-date-time-picker",{ref:"startTime",attrs:{options:a.datepicker.startTime,required:""},on:{"dp-change":a.onStartTimeChange},model:{value:a.job.Trigger.DailyTrigger.StartTime,callback:function(e){a.$set(a.job.Trigger.DailyTrigger,"StartTime",e)}
1,expression:"job.Trigger.DailyTrigger.StartTime"}})],1),a._v(" "),s("div",{staticClass:"col-md-3"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.EndTime"}})],1),a._v(" "),a.loading?a._e():s("vue-date-time-picker",{ref:"endTime",attrs:{options:a.datepicker.endTime,required:""},on:{"dp-change":a.onEndTimeChange},model:{value:a.job.Trigger.DailyTrigger.EndTime,callback:function(e){a.$set(a.job.Trigger.DailyTrigger,"EndTime",e)},expression:"job.Trigger.DailyTrigger.EndTime"}})],1)]),a._v(" "),s("div",{staticClass:"row bottom-margin"},[s("div",{staticClass:"col-md-12"},[s("label",{staticClass:"control-label"},[s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.DaysOfWeek"}})],1),s("br"),a._v(" "),a._l(a.job.Trigger.DailyTrigger.DaysOfWeek,function(e,i,t){return s("label",{key:t,staticClass:"checkbox-inline"},[s("input",{directives:[{name:"model",rawName:"v-model",value:a.job.Trigger.DailyTrigger.DaysOfWeek[i],expression:"job.Trigger.DailyTrigger.DaysOfWeek[key]"}],attrs:{type:"checkbox",name:"DaysOfWeek"},domProps:{checked:Array.isArray(a.job.Trigger.DailyTrigger.DaysOfWeek[i])?-1<a._i(a.job.Trigger.DailyTrigger.DaysOfWeek[i],null):a.job.Trigger.DailyTrigger.DaysOfWeek[i]},on:{change:function(e){var t,o=a.job.Trigger.DailyTrigger.DaysOfWeek[i],e=e.target,s=!!e.checked;Array.isArray(o)?(t=a._i(o,null),e.checked?t<0&&a.$set(a.job.Trigger.DailyTrigger.DaysOfWeek,i,o.concat([null])):-1<t&&a.$set(a.job.Trigger.DailyTrigger.DaysOfWeek,i,o.slice(0,t).concat(o.slice(t+1)))):a.$set(a.job.Trigger.DailyTrigger.DaysOfWeek,i,s)}}}),a._v(" "),s("vueLocalResource",{attrs:{_:"JobModule.AddJob.Trigger.DailyTrigger.DaysOfWeek."+i}})],1)})],2)])]):a._e()])])])])])])])])],1)},[],!1,null,null,null).exports,v=t(62769),f=t.n(v),t=(o.default.use(n.ServerTable),{name:"job-log",components:{vueLocalResource:s.default,"vue-input":a.Z,"vue-loading-modal":r.Z,"vue-ok-cancel-modal":i.Z},data:function(){return{getJobLogConfigUrl:"/Api/job/GetJobLogConfig",getJobLogUrl:"/Api/job/GetJobLog",getDownloadJobLogUrl:"/Api/job/DownloadJobLog?fireInstanceId=",filter:{LogTypeId:""},columns:["LogType","DetailMessage","CreateDate"],options:{texts:{},perPage:10,perPageValues:[10,20,50,100],filterable:!1,uniqueKey:"JobLogId",headings:[],sortable:["CreateDate"],requestFunction:this.requestFunction,responseAdapter
1:this.responseAdapter,requestAdapter:this.requestAdapter},errors:[],loading:!1,lookups:[],showLogDownloadConfirmationModal:!1,totalRecords:0}},mounted:function(){this.buildLogTable();var t=this;n.Event.$on("vue-tables.jobLogTable.loading",function(e){t.loading=!0}),n.Event.$on("vue-tables.jobLogTable.loaded",function(e){t.loading=!1})},props:{fireInstanceId:{type:String,default:""},lazyLoad:{type:Boolean,default:!0}},methods:{buildLogTable:function(){var t=this;Promise.all([this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordsFromTo"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordCount"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Loading"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.First"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Last"),this.$store.dispatch("initializeLocalResource","JobModule.JobLog.Column.LogType"),this.$store.dispatch("initializeLocalResource","JobModule.JobLog.Column.CreateDate"),this.$store.dispatch("initializeLocalResource","JobModule.JobLog.Column.DetailMessage"),this.$store.dispatch("initializeLocalResource","JobModule.JobLog.NoLog")]).finally(function(){for(var e=0;e<t.columns.length;e++)t.options.headings[t.columns[e]]=t.$store.getters.getLocalResource("JobModule.JobLog.Column."+t.columns[e]);t.options.texts={count:t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordsFromTo")+"|"+t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordCount"),noResults:t.$store.getters.getLocalResource("JobModule.JobGrid.NoJobs"),loading:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Loading"),first:t.$store.getters.getLocalResource("ManageLookupTable.Grid.First"),last:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Last")}}),this.$axios.get(this.getJobLogConfigUrl).then(function(e){t.lookups.logTypes=e.data.logTypes}).catch(t.handleErrorResponse)},search:function(){this.$refs.jobLogTable.refresh()}
1,responseAdapter:function(e){return null==e?{data:[],count:0}:(this.totalRecords=e.data.totalRecords,{data:e.data.logRecords,count:e.data.totalRecords})},requestFunction:function(){return this.$axios.post(this.getJobLogUrl,this.filter).catch(this.handleErrorResponse)},requestAdapter:function(e){this.filter.FireInstanceId=this.fireInstanceId,this.filter.PageNumber=e.page-1,this.filter.PageSize=e.limit,this.filter.OrderBy=e.orderBy,this.filter.OrderAscending=0!==e.ascending},handleErrorResponse:function(e){e.response&&Array.isArray(e.response.data.Messages)?this.errors=this.errors.concat(e.response.data.Messages):this.errors.push(e.response.data.Message)},onLogDownloadOk:function(){location.href=this.getDownloadJobLogUrl+this.fireInstanceId+"&"+new URLSearchParams(this.filter).toString()},logDownload:function(){1e4<this.$refs.jobLogTable.$refs.table.count?this.showLogDownloadConfirmationModal=!0:this.onLogDownloadOk()}},watch:{lazyLoad:function(e,t){this.filter.SearchTerm=""}}}),v=(0,c.Z)(t,function(){var o=this,e=o.$createElement,t=o._self._c||e;return t("div",[t("vue-loading-modal",{attrs:{show:o.loading}}),o._v(" "),t("div",{staticClass:"row form-group bottom-margin"},[t("div",{staticClass:"col-md-12"},[t("ul",{staticClass:"list-inline"},[t("li",[t("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:o.search}},[t("i",{staticClass:"glyphicon glyphicon-search"}),o._v("Â "),t("vueLocalResource",{attrs:{_:"JobModule.JobLog.Search"}})],1)]),o._v(" "),t("li",[t("button",{staticClass:"btn btn-default",attrs:{disabled:0==o.totalRecords,type:"button"},on:{click:o.logDownload}},[t("i",{staticClass:"glyphicon glyphicon-download"}),o._v("Â "),t("vueLocalResource",{attrs:{_:"JobModule.JobLog.Download"}})],1)])])])]),o._v(" "),0<o.errors.length?t("div",{staticClass:"row bottom-margin"},[t("ul",{staticClass:"list-unstyled"},o._l(o.errors,function(e){return t("li",{staticClass:"text-danger"},[t("vueLocalResource",{attrs:{_:e}})],1)}))]):o._e(),o._v(" "),t("div",{staticClass:"row form-group bottom-margin"},[t("div",{staticClass:"col-md-2"},[t("label",{staticClass:"control-label"},[t("vueLocalResource",{attrs:{_:"JobModule.JobLog.Filter.LogTypeId"}})],1),o._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:o.filter.LogTypeId,expression:"filter.LogTypeId"}],staticClass:"form-control",on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});o.$set(o.filter,"LogTypeId",e.target.multiple?t:t[0])}}},[t("option",{attrs:{value:""}},[t("vueLocalResource",{attrs:{_:"ClickToSelect"}})],1),o._v(" "),o._l(o.lookups.logTypes,function(e){return t("option",{domProps:{value:e.id}},[o._v(o._s(e.name))])})],2)]),o._v(" "),t("div",{staticClass:"col-md-4 pull-right"},[t("vue-input",{attrs:{options:{inputType:"text",_:"JobModule.JobLog.Filter.Term",required:!1}},model:{value:o.filter.SearchTerm,callback:function(e){o.$set(o.filter,"SearchTerm",e)},expression:"filter.SearchTerm"}})],1)]),o._v(" "),t("div",{staticClass:"row form-group"},[t("div",{staticClass:"col-md-12"},[o.lazyLoad?o._e():t("v-server-table",{ref:"jobLogTable",attrs:{columns:o.columns,options:o.options,name:"jobLogTable",id:"jobLogTable"},scopedSlots:o._u([{key:"LogType",fn:function(e){return t("div",{},[2===e.row.LogTypeId?t("label",{staticClass:"label label-info"},[t("vueLocalResource",{attrs:{_:e.row.LogType}})],1):o._e(),o._v(" "),3===e.row.LogTypeId?t("label",{staticClass:"label label-warning"},[t("vueLocalResource",{attrs:{_:e.row.LogType}})],1):o._e(),o._v(" "),4===e.row.LogTypeId?t("label",{staticClass:"label label-danger"},[t("vueLocalResource",{attrs:{_:e.row.LogType}})],1):o._e()])}},{key:"DetailMessage",fn:function(e){return t("div",{},[o._v("\n "+o._s(e.row.DetailMessage)+"\n ")])}},{key:"CreateDate",fn:function(e){return t("div",{},[o._v("\n "+o._s(e.row.CreateDateFormatted)+"\n ")])}}])})],1)]),o._v(" "),t("vue-ok-cancel-modal",{attrs:{"title-key":"JobModule.JobLog.Download.Confirmation.Title",show:o.showLogDownloadConfirmationModal,"message-key":"JobModule.JobLog.Download.Confirmation.Message"},on:{"okCancel-ok":o.onLogDownloadOk,"okCancel-cancel":function(e){o.showLogDownloadConfirmationModal=!1}}})],1)},[],!1,null,null,null).exports,i=(o.default.use(n.ServerTable),{name:"job-history",components:{vueLocalResource:s.default,"vue-input"
1:a.Z,"vue-loading-modal":r.Z,"date-picker":f(),"vue-job-log":v,"vue-modal":d.Z},data:function(){return{getJobHistoryUrl:"/Api/job/GetJobHistory",filter:{JobKeyModel:{}},columns:["State","ScheduledFireTimeUtc","ActualFireTimeUtc","FinishedTimeUtc","DetailMessage","RunTime","TriggerName","Actions"],options:{texts:{},perPage:10,perPageValues:[10,20,50,100],filterable:!1,uniqueKey:"JobHistoryId",headings:[],sortable:["ScheduledFireTimeUtc","ActualFireTimeUtc","FinishedTimeUtc"],requestFunction:this.requestFunction,responseAdapter:this.responseAdapter,requestAdapter:this.requestAdapter},errors:[],loading:!1,datepicker:{fromDateTime:{format:"",useCurrent:!1,showClear:!0,showClose:!0},toDateTime:{format:"",useCurrent:!1,showClear:!0,showClose:!0}},selectedJobHistory:{},showLogModal:!1,JobStateEnum:m}},mounted:function(){this.buildHistoryTable();var t=this;n.Event.$on("vue-tables.jobHistoryTable.loading",function(e){t.loading=!0}),n.Event.$on("vue-tables.jobHistoryTable.loaded",function(e){t.loading=!1,t.$emit("loaded")})},props:{name:{type:String,default:""},group:{type:String,default:""},lazyLoad:{type:Boolean,default:!0}},methods:{buildHistoryTable:function(){var t=this;Promise.all([this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordsFromTo"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.RecordCount"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Loading"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.First"),this.$store.dispatch("initializeLocalResource","ManageLookupTable.Grid.Last"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.State"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.ScheduledFireTimeUtc"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.ActualFireTimeUtc"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.FinishedTimeUtc"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.DetailMessage"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.RunTime"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.TriggerName"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.Column.Actions"),this.$store.dispatch("initializeLocalResource","JobModule.JobHistory.NoHistory")]).finally(function(){for(var e=0;e<t.columns.length;e++)t.options.headings[t.columns[e]]=t.$store.getters.getLocalResource("JobModule.JobHistory.Column."+t.columns[e]);t.options.texts={count:t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordsFromTo")+"|"+t.$store.getters.getLocalResource("ManageLookupTable.Grid.RecordCount"),noResults:t.$store.getters.getLocalResource("JobModule.JobGrid.NoJobs"),loading:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Loading"),first:t.$store.getters.getLocalResource("ManageLookupTable.Grid.First"),last:t.$store.getters.getLocalResource("ManageLookupTable.Grid.Last")}}),this.datepicker.fromDateTime.format=this.$store.getters.shortDateTimeFormat,this.datepicker.toDateTime.format=this.$store.getters.shortDateTimeFormat},search:function(){this.$refs.jobHistoryTable.refresh()}
1,responseAdapter:function(e){return null==e?{data:[],count:0}:{data:e.data.historyRecords,count:e.data.totalRecords}},requestFunction:function(){return this.$axios.post(this.getJobHistoryUrl,this.filter).catch(this.handleErrorResponse)},requestAdapter:function(e){this.filter.JobKeyModel.Name=this.name,this.filter.JobKeyModel.Group=this.group,this.filter.PageNumber=e.page-1,this.filter.PageSize=e.limit,this.filter.OrderBy=e.orderBy,this.filter.OrderAscending=0!==e.ascending},handleErrorResponse:function(e){e.response&&Array.isArray(e.response.data.Messages)?this.errors=this.errors.concat(e.response.data.Messages):this.errors.push(e.response.data.Message)},onFromDateTimeChange:function(e){o.default.set(this.$refs.toDateTime.config,"minDate",e.date)},onToDateTimeChange:function(e){o.default.set(this.$refs.fromDateTime.config,"maxDate",e.date)},showLogs:function(e){this.selectedJobHistory=e,this.showLogModal=!0}}}),t=(0,c.Z)(i,function(){var i=this,e=i.$createElement,o=i._self._c||e;return o("div",[o("vue-loading-modal",{attrs:{show:i.loading}}),i._v(" "),o("div",{staticClass:"row form-group bottom-margin"},[o("div",{staticClass:"col-md-12"},[o("ul",{staticClass:"list-inline"},[o("li",[o("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:i.search}},[o("i",{staticClass:"glyphicon glyphicon-search"}),i._v("Â "),o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Search"}})],1)])])])]),i._v(" "),0<i.errors.length?o("div",{staticClass:"row bottom-margin"},[o("ul",{staticClass:"list-unstyled"},i._l(i.errors,function(e){return o("li",{staticClass:"text-danger"},[o("vueLocalResource",{attrs:{_:e}})],1)}))]):i._e(),i._v(" "),o("div",{staticClass:"row form-group bottom-margin"},[o("div",{staticClass:"col-md-2"},[o("label",{staticClass:"control-label"},[o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Filter.FromDateTime"}})],1),i._v(" "),o("date-picker",{ref:"fromDateTime",attrs:{config:i.datepicker.fromDateTime},on:{"dp-change":i.onFromDateTimeChange},model:{value:i.filter.FromDateTime,callback:function(e){i.$set(i.filter,"FromDateTime",e)},expression:"filter.FromDateTime"}})],1),i._v(" "),o("div",{staticClass:"col-md-2"},[o("label",{staticClass:"control-label"},[o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Filter.ToDateTime"}})],1),i._v(" "),o("date-picker",{ref:"toDateTime",attrs:{config:i.datepicker.toDateTime},on:{"dp-change":i.onToDateTimeChange},model:{value:i.filter.ToDateTime,callback:function(e){i.$set(i.filter,"ToDateTime",e)},expression:"filter.ToDateTime"}})],1),i._v(" "),o("div",{staticClass:"col-md-2"},[o("label",{staticClass:"control-label"},[o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Filter.ShowFailedOnly"}})],1),i._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:i.filter.ShowFailedOnly,expression:"filter.ShowFailedOnly"}],staticClass:"checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(i.filter.ShowFailedOnly)?-1<i._i(i.filter.ShowFailedOnly,null):i.filter.ShowFailedOnly},on:{change:function(e){var t,o=i.filter.ShowFailedOnly,e=e.target,s=!!e.checked;Array.isArray(o)?(t=i._i(o,null),e.checked?t<0&&i.$set(i.filter,"ShowFailedOnly",o.concat([null])):-1<t&&i.$set(i.filter,"ShowFailedOnly",o.slice(0,t).concat(o.slice(t+1)))):i.$set(i.filter,"ShowFailedOnly",s)}}})]),i._v(" "),o("div",{staticClass:"col-md-4 pull-right"},[o("vue-input",{attrs:{options:{inputType:"text",_:"JobModule.JobHistory.Filter.Term",required:!1}},model:{value:i.filter.SearchTerm,callback:function(e){i.$set(i.filter,"SearchTerm",e)},expression:"filter.SearchTerm"}})],1)]),i._v(" "),o("div",{staticClass:"row form-group"},[o("div",{staticClass:"col-md-12"},[i.lazyLoad?i._e():o("v-server-table",{ref:"jobHistoryTable",attrs:{columns:i.columns,options:i.options,name:"jobHistoryTable",id:"jobHistoryTable"},scopedSlots:i._u([{key:"State",fn:function(e){return o("div",{},[e.row.State===i.JobStateEnum.Success?o("label",{staticClass:"label label-success"},[o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Success"}})],1):i._e(),i._v(" "),e.row.State===i.JobStateEnum.Interrupted?o("label",{staticClass:"label label-warning"},[o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Interrupted"}})],1):i._e(),i._v(" "),e.row.State===i.JobStateEnum.Failed?o("label",{staticClass:"label label-danger"},[o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Failed"}})],1):i._e(),i._v(" "),e.row.State===i.JobStateEnum.UnKnown?o("label",{staticClass:"label label-default"},[o("vueLocalResource",{attrs:{_:"JobModule.JobHistory.Unknown"}})],1):i._e()])}},{key:"DetailMessage",fn:function(e){return o("div",{},[i._v("\n "+i._s(e.row.DetailMessage)+"\n ")])}},{key:"Actions",fn:function(t){return o("div",{},[o("button",{staticClass:"btn btn-primary btn-sm",attrs:{type:"button"},on:{click:function(e){i.showLogs(t.row)}}},[o("i",{staticClass:"glyphicon glyphicon-file"})])])}}])})],1)]),i._v(" "),o("vue-modal",{directives:[{name:"show",rawName:"v-show",value:i.showLogModal,expression:"showLogModal"}],attrs:{width:"90%",title:"JobModule.JobLog.Modal.Title",id:"jobLogModal"},on:{close:function(e){i.showLogModal=!1}},scopedSlots:i._u([{key:"body",fn:function(e){return[o("div",[o("vue-job-log",{attrs:{lazyLoad:!i.showLogModal,fireInstanceId:i.selectedJobHistory.FireInstanceId}}
1)],1)]}}])})],1)},[],!1,null,null,null).exports,a={name:"job-detail",components:{vueLocalResource:s.default,"vue-job-add":h,"vue-job-history":t},data:function(){return{lazyLoadHistory:!0,componentKey:0}},mounted:function(){},props:{name:{type:String,default:""},group:{type:String,default:""}},methods:{back:function(){this.$router.push("/")},scrollTo:function(){var e=this;setTimeout(function(){e.$refs.scrollTarget.scrollIntoView({behavior:"smooth"})},0)}},watch:{$route:function(e,t){this.componentKey+=1}}},r=(0,c.Z)(a,function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",[e("div",{staticClass:"row form-group"},[e("div",{staticClass:"col-md-12"},[e("ul",{staticClass:"list-inline"},[e("li",[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.back}},[e("i",{staticClass:"glyphicon glyphicon-arrow-left"}),t._v("Â "),e("vueLocalResource",{attrs:{_:"JobModule.Back"}})],1)])])])]),t._v(" "),e("div",{ref:"scrollTarget",staticClass:"row form-group bottom-margin"},[e("div",{staticClass:"col-md-12"},[e("h3",[t._v(t._s(t.name)+" - "+t._s(t.group))])]),t._v(" "),e("div",{staticClass:"col-md-12"},[e("ul",{staticClass:"nav nav-tabs",attrs:{role:"tablist"}},[e("li",{staticClass:"active",attrs:{role:"presentation"}},[e("a",{attrs:{href:"#editJob","aria-controls":"editJob",role:"tab","data-toggle":"tab"}},[e("vueLocalResource",{attrs:{_:"JobModule.JobDetail.EditJob"}})],1)]),t._v(" "),e("li",{attrs:{role:"presentation"}},[e("a",{attrs:{href:"#history","aria-controls":"history",role:"tab","data-toggle":"tab"},on:{click:function(e){t.lazyLoadHistory=!1}}},[e("vueLocalResource",{attrs:{_:"JobModule.JobDetail.History"}})],1)])]),t._v(" "),e("div",{staticClass:"tab-content"},[e("div",{staticClass:"tab-pane active",attrs:{role:"tabpanel",id:"editJob"}},[e("vue-job-add",{key:t.componentKey,attrs:{name:t.name,group:t.group,showBackButton:!1},on:{loaded:t.scrollTo}})],1),t._v(" "),e("div",{staticClass:"tab-pane",attrs:{role:"tabpanel",id:"history"}},[e("vue-job-history",{key:t.componentKey,attrs:{name:t.name,group:t.group,"lazy-load":t.lazyLoadHistory},on:{loaded:t.scrollTo}})],1)])])])])},[],!1,null,null,null).exports,_=(o.default.use(e.Z),e.Z.prototype.push),f=(e.Z.prototype.push=function(e){return _.call(this,e).catch(function(e){return e})},[{path:"*",redirect:"/"},{path:"/",name:"JobGrid",component:b},{path:"/add",name:"JobAdd",component:h},{path:"/detail/:name/:group",name:"JobDetail",component:r,props:!0}]),v=new e.Z({routes:f});o.default.options.router=v;var C=(0,c.Z)({components:{"job-stats-header":l}},function(){var e=this.$createElement,e=this._self._c||e;return e("div",[e("job-stats-header"),this._v(" "),e("router-view")],1)},[],!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.