{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.regexp.test.js","webpack:///./src/components/administrator-component/administrator.html","webpack:///./src/components/administrator-component/administrator.ts","webpack:///./src/components/administrator-component/administrator.ts?7d05","webpack:///./src/components/administrator-component/administrator.vue"],"names":["$","call","isCallable","anObject","toString","DELEGATES_TO_EXEC","execCalled","re","exec","apply","this","arguments","test","nativeTest","target","proto","forced","S","R","string","result","render","_vm","_h","$createElement","_c","_self","attrs","_v","_s","$t","refreshValueRules","model","value","callback","$$v","updateValue","expression","refreshValue","on","$event","updateRefreshValue","staticRenderFns","AdministratorComponent","_Vue","_this","_classCallCheck","_callSuper","restService","Vue","prototype","$restService","val","Array","v","_inherits","_createClass","key","_this2","getParameterRefreshMap","then","data","console","log","catch","error","_this3","updateParameterRefreshMap","applicationStore","commit","i18n","t","updatedRefreshValue","response","errors","__decorate","Component","components","component"],"mappings":"kHAEA,EAAQ,QACR,IAAIA,EAAI,EAAQ,QACZC,EAAO,EAAQ,QACfC,EAAa,EAAQ,QACrBC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QAEnBC,EAAoB,WACtB,IAAIC,GAAa,EACbC,EAAK,OAKT,OAJAA,EAAGC,KAAO,WAER,OADAF,GAAa,EACN,IAAIE,KAAKC,MAAMC,KAAMC,aAEJ,IAAnBJ,EAAGK,KAAK,QAAmBN,EAPZ,GAUpBO,EAAa,IAAID,KAIrBZ,EAAE,CAAEc,OAAQ,SAAUC,OAAO,EAAMC,QAASX,GAAqB,CAC/DO,KAAM,SAAUK,GACd,IAAIC,EAAIf,EAASO,MACbS,EAASf,EAASa,GAClBT,EAAOU,EAAEV,KACb,IAAKN,EAAWM,GAAO,OAAOP,EAAKY,EAAYK,EAAGC,GAClD,IAAIC,EAASnB,EAAKO,EAAMU,EAAGC,GAC3B,OAAe,OAAXC,IACJjB,EAASiB,IACF,O,yCChCX,IAAIC,EAAS,WAAa,IAAIC,EAAIZ,KAASa,EAAGD,EAAIE,eAAmBC,EAAGH,EAA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,YACvB1B,KAAK0B,YAAc,OAhDgB,CAASa,cAA/BN,EAAsBgC,eAAA,CAH1CC,IAAU,CACPC,WAAY,CAAElC,6BAEGA,WCT2U,I,YCO5VmC,EAAY,eACd,EACAzD,EACAqB,GACA,EACA,KACA,KACA,MAIa,aAAAoC,E","file":"js/chunk-74fc431a.0e13c3ec.js","sourcesContent":["'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar anObject = require('../internals/an-object');\nvar toString = require('../internals/to-string');\n\nvar DELEGATES_TO_EXEC = function () {\n var execCalled = false;\n var re = /[ac]/;\n re.exec = function () {\n execCalled = true;\n return /./.exec.apply(this, arguments);\n };\n return re.test('abc') === true && execCalled;\n}();\n\nvar nativeTest = /./.test;\n\n// `RegExp.prototype.test` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.test\n$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {\n test: function (S) {\n var R = anObject(this);\n var string = toString(S);\n var exec = R.exec;\n if (!isCallable(exec)) return call(nativeTest, R, string);\n var result = call(exec, R, string);\n if (result === null) return false;\n anObject(result);\n return true;\n }\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-container',{attrs:{\"ml-2\":\"\",\"mr-5\":\"\",\"pl-5\":\"\",\"mt-4\":\"\",\"pr-5\":\"\"}},[_c('v-layout',{attrs:{\"align-space-around\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"md2\":\"\",\"text-xs-center\":\"\",\"pa-2\":\"\",\"ml-2\":\"\",\"mt-3\":\"\"}},[_c('h2',[_vm._v(_vm._s(_vm.$t('administrator.delayValue')))])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"md5\":\"\",\"text-xs-center\":\"\",\"pa-2\":\"\",\"ml-2\":\"\"}},[_c('v-text-field',{attrs:{\"autocomplete\":\"off\",\"label\":_vm.$t('administrator.delayValidate'),\"rules\":_vm.refreshValueRules},model:{value:(_vm.updateValue),callback:function ($$v) {_vm.updateValue=$$v},expression:\"updateValue\"}})],1),_c('v-flex',{attrs:{\"xs12\":\"\",\"md2\":\"\",\"text-xs\":\"\",\"pa-2\":\"\",\"ml-2\":\"\",\"mt-3\":\"\"}},[_c('h2',[_vm._v(\" \"+_vm._s(_vm.$t('administrator.actualValue')))])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"md2\":\"\",\"text-xs-center\":\"\",\"pa-2\":\"\",\"ml-2\":\"\",\"mt-3\":\"\"}},[_c('h2',[_vm._v(_vm._s(_vm.refreshValue)+\"s\")])])],1),_c('v-layout',{attrs:{\"row\":\"\",\"mb-1\":\"\",\"pa-1\":\"\"}},[_c('v-flex',{attrs:{\"text-xs-right\":\"\"}},[_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){return _vm.updateRefreshValue($event)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\"administrator.actions.submit\")))])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { i18n } from \"@/main\";\nimport { RestService } from \"@/services/rest-service\";\nimport applicationStore from \"@/shared/stores/applicationStore\";\nimport Vue from \"vue\";\nimport Component from \"vue-class-component\";\n\n@Component({\n components: { AdministratorComponent }\n })\nexport default class AdministratorComponent extends Vue {\n\n private val: string;\n\n private refreshValueRules: Array;\n private updateValue: string;\n private restService: RestService;\n private refreshValue: string;\n\n constructor(){\n super();\n this.restService = Vue.prototype.$restService;\n this.updateValue =\"\";\n this.val = \"\";\n this.refreshValueRules = new Array();\n this.refreshValue = \"\";\n this.refreshValueRules = [\n (v) => /^$|^[1-9]$|^[1-9][0-9]$|^[1][0-1][0-9]$|^(120)$/.test(v) || \"Value should between 1 and 120\",\n ]; \n }\n private mounted(){\n this.restService.getParameterRefreshMap()\n .then((result) => {\n this.refreshValue=result.data.value;\n console.log(\"get refresh map value: \"+result.data.value);\n }).catch((error)=>\n console.error(\"Can't connect to Aquatrack server. \" + error));\n }\n\n public updateRefreshValue() {\n if (!!this.updateValue) {\n this.restService.updateParameterRefreshMap(this.updateValue)\n .then((result) => {\n console.log(\"updated refresh map value \" + result.data);\n applicationStore.commit(\"showToasterSuccess\", i18n.t(\"administrator.refreshMap.messages.updateValueSucceeded\"));\n this.updatedRefreshValue();\n }).catch((error) => {\n console.error(\"Can't update value to Aquatrack server. \" + error.response.data.errors);\n applicationStore.commit(\"showToasterError\", i18n.t(\"administrator.refreshMap.messages.updateValueFailed\"));\n\n });\n }\n else {\n applicationStore.commit(\"showToasterError\", i18n.t(\"administrator.refreshMap.messages.emptyValueError\"));\n }\n }\n private updatedRefreshValue(){\n this.refreshValue=this.updateValue;\n this.updateValue = \"\"; \n }\n}","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/ts-loader/index.js??ref--13-3!./administrator.ts?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/ts-loader/index.js??ref--13-3!./administrator.ts?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./administrator.html?vue&type=template&id=1689a79a&external\"\nimport script from \"./administrator.ts?vue&type=script&lang=js&external\"\nexport * from \"./administrator.ts?vue&type=script&lang=js&external\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}