%PDF- %PDF-
Direktori : /var/www/html/hr/web/js/ |
Current File : /var/www/html/hr/web/js/chunk-38d7c7c6.f4e03230.js.map |
{"version":3,"sources":["webpack:///./src/components/configs/ConfigsComponent.vue?3966","webpack:///src/components/configs/ConfigsComponent.vue","webpack:///./src/components/configs/ConfigsComponent.vue?05f6","webpack:///./src/components/configs/ConfigsComponent.vue","webpack:///./src/views/users/UserConfig.vue?69f1","webpack:///src/views/users/UserConfig.vue","webpack:///./src/views/users/UserConfig.vue?adaf","webpack:///./src/views/users/UserConfig.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","ref","scopedSlots","_u","key","fn","invalid","on","$event","preventDefault","submit","attrs","$t","_v","_s","model","value","configs","callback","$$v","$set","expression","errors","should_get_holidays_from_working_day_overtime","_e","should_get_holidays_from_non_working_day_overtime","loading","staticRenderFns","component","loadingData","userConfig","updateUserConfig","userId"],"mappings":"gHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACE,YAAY,6CAA6C,CAACF,EAAG,MAAM,CAACE,YAAY,yEAAyE,CAACF,EAAG,qBAAqB,CAACG,IAAI,YAAYD,YAAY,SAASE,YAAYR,EAAIS,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASJ,GAC5YA,EAAIK,QAClB,MAAO,CAACR,EAAG,OAAO,CAACS,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBf,EAAIgB,YAAY,CAACZ,EAAG,qBAAqB,CAACa,MAAM,CAAC,IAAMjB,EAAIkB,GAAG,kCAAkC,CAACd,EAAG,MAAM,CAACE,YAAY,uCAAuC,CAACF,EAAG,QAAQ,CAACE,YAAY,kCAAkC,CAACN,EAAImB,GAAGnB,EAAIoB,GAAGpB,EAAIkB,GAAG,oCAAoCd,E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EI,QAAJ,CACM,KAAN,QACM,SAAN,IAGE,QAAF,CACI,OADJ,WACM,IAAN,OAAM,OAAN,4JACA,6BADA,UACA,EADA,OAEA,EAFA,iDAGA,mBAHA,gDCvLyW,I,YCOrWC,EAAY,eACd,EACAnC,EACAkC,GACA,EACA,KACA,WACA,MAIa,OAAAC,E,kDClBf,IAAInC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACa,MAAM,CAAC,QAAUjB,EAAImC,cAAc,CAAC/B,EAAG,oBAAoB,CAACa,MAAM,CAAC,QAAUjB,EAAIoC,WAAW,QAAUpC,EAAIgC,SAASnB,GAAG,CAAC,QAAUb,EAAIqC,qBAAqB,IACxQJ,EAAkB,G,oCCStB,GACE,KAAF,aACE,WAAF,CACI,iBAAJ,QAEE,KAAF,WAAI,MAAJ,CACMG,WAAY,GACZE,OAAQ,KACRN,SAAS,EACTG,aAAa,IAEjB,QAAF,CACI,cADJ,WACM,IAAN,OACM,KAAN,eACM,EAAN,sDACQ,EAAR,qBACA,mBACQ,EAAR,yCACA,oBACQ,EAAR,mBAGI,iBAXJ,WAWM,IAAN,OACM,KAAN,WACM,EAAN,wEACQ,EAAR,8DACA,mBACQ,EAAR,yCACA,oBACQ,EAAR,gBAIE,QAjCF,WAkCI,KAAJ,6BACI,KAAJ,kBC7CmW,I,YCO/VD,EAAY,eACd,EACAnC,EACAkC,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"js/chunk-38d7c7c6.f4e03230.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"view-container\"},[_c('div',{staticClass:\"flex flex-col justify-around items-center\"},[_c('div',{staticClass:\"max-w-md w-full md:w-1/2 flex flex-wrap content-center justify-center\"},[_c('ValidationObserver',{ref:\"validator\",staticClass:\"w-full\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nreturn [_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submit()}}},[_c('ValidationProvider',{attrs:{\"vid\":_vm.$t('config.annual_leave_quantity')}},[_c('div',{staticClass:\"flex w-full mt-2 h-12 items-center\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2\"},[_vm._v(_vm._s(_vm.$t('config.annual_leave_quantity')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.annual_leave_quantity),callback:function ($$v) {_vm.$set(_vm.configs, \"annual_leave_quantity\", $$v)},expression:\"configs.annual_leave_quantity\"}})],1)]),_c('div',{staticClass:\"flex w-full mt-2 h-12 items-center\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('config.should_postpone_holidays'))+\" \")]),_c('toggle-button',{attrs:{\"height\":25,\"sync\":true,\"width\":62},model:{value:(_vm.configs.should_postpone_holidays),callback:function ($$v) {_vm.$set(_vm.configs, \"should_postpone_holidays\", $$v)},expression:\"configs.should_postpone_holidays\"}})],1),_c('ValidationProvider',{attrs:{\"vid\":_vm.$t('config.should_get_holidays_from_working_day_overtime')}},[_c('div',{staticClass:\"flex w-full mt-2 h-12 items-center\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('config.should_get_holidays_from_working_day_overtime'))+\" \")]),_c('toggle-button',{attrs:{\"height\":25,\"sync\":true,\"width\":62},model:{value:(_vm.configs.should_get_holidays_from_working_day_overtime),callback:function ($$v) {_vm.$set(_vm.configs, \"should_get_holidays_from_working_day_overtime\", $$v)},expression:\"configs.should_get_holidays_from_working_day_overtime\"}})],1)]),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.holidays_percentage_from_working_day_overtime'),\"rules\":(\"required_if:\" + (_vm.$t('config.should_get_holidays_from_working_day_overtime')) + \",true|numeric\")},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.holidays_percentage_from_working_day_overtime')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"disabled\":!_vm.configs.should_get_holidays_from_working_day_overtime,\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.holidays_percentage_from_working_day_overtime),callback:function ($$v) {_vm.$set(_vm.configs, \"holidays_percentage_from_working_day_overtime\", $$v)},expression:\"configs.holidays_percentage_from_working_day_overtime\"}})],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('ValidationProvider',{attrs:{\"vid\":_vm.$t('config.should_get_holidays_from_non_working_day_overtime')}},[_c('div',{staticClass:\"flex w-full mt-2 h-12 items-center\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2\"},[_vm._v(_vm._s(_vm.$t('config.should_get_holidays_from_non_working_day_overtime')))]),_c('toggle-button',{attrs:{\"height\":25,\"sync\":true,\"width\":62},model:{value:(_vm.configs.should_get_holidays_from_non_working_day_overtime),callback:function ($$v) {_vm.$set(_vm.configs, \"should_get_holidays_from_non_working_day_overtime\", $$v)},expression:\"configs.should_get_holidays_from_non_working_day_overtime\"}})],1)]),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.holidays_percentage_from_non_working_day_overtime'),\"rules\":(\"required_if:\" + (_vm.$t('config.should_get_holidays_from_non_working_day_overtime')) + \",true|numeric\")},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.holidays_percentage_from_non_working_day_overtime')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"disabled\":!_vm.configs.should_get_holidays_from_non_working_day_overtime,\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.holidays_percentage_from_non_working_day_overtime),callback:function ($$v) {_vm.$set(_vm.configs, \"holidays_percentage_from_non_working_day_overtime\", $$v)},expression:\"configs.holidays_percentage_from_non_working_day_overtime\"}})],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.expected_daily_working_hours'),\"rules\":\"required|numeric\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.expected_daily_working_hours')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.expected_daily_working_hours),callback:function ($$v) {_vm.$set(_vm.configs, \"expected_daily_working_hours\", $$v)},expression:\"configs.expected_daily_working_hours\"}})],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.overtime_percentage_on_working_day'),\"rules\":\"required|numeric\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.overtime_percentage_on_working_day')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.overtime_percentage_on_working_day),callback:function ($$v) {_vm.$set(_vm.configs, \"overtime_percentage_on_working_day\", $$v)},expression:\"configs.overtime_percentage_on_working_day\"}},[_vm._v(\"/ \")])],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.overtime_percentage_on_non_working_day'),\"rules\":\"required|numeric\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.overtime_percentage_on_non_working_day')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.overtime_percentage_on_non_working_day),callback:function ($$v) {_vm.$set(_vm.configs, \"overtime_percentage_on_non_working_day\", $$v)},expression:\"configs.overtime_percentage_on_non_working_day\"}})],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.out_sick_percentage'),\"rules\":\"required|numeric\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.out_sick_percentage')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.out_sick_percentage),callback:function ($$v) {_vm.$set(_vm.configs, \"out_sick_percentage\", $$v)},expression:\"configs.out_sick_percentage\"}})],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.overtime_percentage_on_working_day'),\"rules\":\"required|numeric\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"flex-grow vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.holidays_validity_in_months')))]),_c('vs-input',{staticClass:\" pl-2 w-20 flex-shrink-0\",attrs:{\"min\":\"0\",\"type\":\"number\"},model:{value:(_vm.configs.holidays_validity_in_months),callback:function ($$v) {_vm.$set(_vm.configs, \"holidays_validity_in_months\", $$v)},expression:\"configs.holidays_validity_in_months\"}})],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('ValidationProvider',{attrs:{\"name\":_vm.$t('config.valid_from'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"w-3/4 vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.valid_from')))]),_c('date-picker',{staticClass:\" -mx-2\",model:{value:(_vm.configs.valid_from),callback:function ($$v) {_vm.$set(_vm.configs, \"valid_from\", $$v)},expression:\"configs.valid_from\"}})],1),(errors[0])?_c('span',{staticClass:\"text-xs italic text-danger\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,true)}),_c('div',{staticClass:\"flex w-full mt-2\"},[_c('label',{staticClass:\"w-3/4 vs-input--label mr-2 self-center\"},[_vm._v(_vm._s(_vm.$t('config.valid_to')))]),_c('date-picker',{ref:\"calendarTo\",staticClass:\" -mx-2\",model:{value:(_vm.configs.valid_to),callback:function ($$v) {_vm.$set(_vm.configs, \"valid_to\", $$v)},expression:\"configs.valid_to\"}})],1),_c('base-button',{staticClass:\"w-full mx-2 my-5\",attrs:{\"loading\":_vm.loading,\"button\":\"filled\",\"color\":\"success\",\"type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.$t('buttons.save'))+\" \")])],1)]}}])})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"view-container\">\n <div class=\"flex flex-col justify-around items-center\">\n <div class=\"max-w-md w-full md:w-1/2 flex flex-wrap content-center justify-center\">\n <ValidationObserver class=\"w-full\" ref=\"validator\" v-slot=\"{ invalid }\">\n <form @submit.prevent=\"submit()\">\n\n <ValidationProvider :vid=\"$t('config.annual_leave_quantity')\">\n <div class=\"flex w-full mt-2 h-12 items-center\">\n <label class=\"flex-grow vs-input--label mr-2\">{{\n $t('config.annual_leave_quantity') }}</label>\n <vs-input class=\" pl-2 w-20 flex-shrink-0\" min=\"0\"\n type=\"number\"\n v-model=\"configs.annual_leave_quantity\"/>\n </div>\n </ValidationProvider>\n\n <div class=\"flex w-full mt-2 h-12 items-center\">\n <label class=\"flex-grow vs-input--label mr-2\">\n {{ $t('config.should_postpone_holidays') }}\n </label>\n <toggle-button :height=\"25\"\n :sync=\"true\"\n :width=\"62\"\n v-model=\"configs.should_postpone_holidays\"/>\n </div>\n\n <ValidationProvider :vid=\"$t('config.should_get_holidays_from_working_day_overtime')\">\n <div class=\"flex w-full mt-2 h-12 items-center\">\n <label class=\"flex-grow vs-input--label mr-2\">\n {{ $t('config.should_get_holidays_from_working_day_overtime') }}\n </label>\n <toggle-button :height=\"25\"\n :sync=\"true\"\n :width=\"62\"\n v-model=\"configs.should_get_holidays_from_working_day_overtime\"/>\n </div>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.holidays_percentage_from_working_day_overtime')\"\n :rules=\"`required_if:${$t('config.should_get_holidays_from_working_day_overtime')},true|numeric`\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"flex-grow vs-input--label mr-2 self-center\">{{\n $t('config.holidays_percentage_from_working_day_overtime') }}</label>\n <vs-input :disabled=\"!configs.should_get_holidays_from_working_day_overtime\" class=\" pl-2 w-20 flex-shrink-0\"\n min=\"0\"\n type=\"number\"\n v-model=\"configs.holidays_percentage_from_working_day_overtime\"/>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <ValidationProvider :vid=\"$t('config.should_get_holidays_from_non_working_day_overtime')\">\n <div class=\"flex w-full mt-2 h-12 items-center\">\n <label class=\"flex-grow vs-input--label mr-2\">{{\n $t('config.should_get_holidays_from_non_working_day_overtime') }}</label>\n <toggle-button :height=\"25\"\n :sync=\"true\"\n :width=\"62\" v-model=\"configs.should_get_holidays_from_non_working_day_overtime\"/>\n </div>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.holidays_percentage_from_non_working_day_overtime')\"\n :rules=\"`required_if:${$t('config.should_get_holidays_from_non_working_day_overtime')},true|numeric`\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"flex-grow vs-input--label mr-2 self-center\">{{\n $t('config.holidays_percentage_from_non_working_day_overtime') }}</label>\n <vs-input :disabled=\"!configs.should_get_holidays_from_non_working_day_overtime\" class=\" pl-2 w-20 flex-shrink-0\"\n min=\"0\"\n type=\"number\"\n v-model=\"configs.holidays_percentage_from_non_working_day_overtime\"/>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.expected_daily_working_hours')\"\n rules=\"required|numeric\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"flex-grow vs-input--label mr-2 self-center\">{{\n $t('config.expected_daily_working_hours') }}</label>\n <vs-input class=\" pl-2 w-20 flex-shrink-0\" min=\"0\"\n type=\"number\"\n v-model=\"configs.expected_daily_working_hours\"/>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.overtime_percentage_on_working_day')\"\n rules=\"required|numeric\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"flex-grow vs-input--label mr-2 self-center\">{{\n $t('config.overtime_percentage_on_working_day') }}</label>\n <vs-input class=\" pl-2 w-20 flex-shrink-0\" min=\"0\" type=\"number\"\n v-model=\"configs.overtime_percentage_on_working_day\">/\n </vs-input>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.overtime_percentage_on_non_working_day')\"\n rules=\"required|numeric\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"flex-grow vs-input--label mr-2 self-center\">{{\n $t('config.overtime_percentage_on_non_working_day') }}</label>\n <vs-input class=\" pl-2 w-20 flex-shrink-0\" min=\"0\" type=\"number\"\n v-model=\"configs.overtime_percentage_on_non_working_day\"/>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.out_sick_percentage')\"\n rules=\"required|numeric\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"flex-grow vs-input--label mr-2 self-center\">{{ $t('config.out_sick_percentage')\n }}</label>\n <vs-input class=\" pl-2 w-20 flex-shrink-0\" min=\"0\" type=\"number\"\n v-model=\"configs.out_sick_percentage\"/>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.overtime_percentage_on_working_day')\"\n rules=\"required|numeric\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"flex-grow vs-input--label mr-2 self-center\">{{\n $t('config.holidays_validity_in_months') }}</label>\n <vs-input class=\" pl-2 w-20 flex-shrink-0\" min=\"0\" type=\"number\"\n v-model=\"configs.holidays_validity_in_months\"/>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <ValidationProvider :name=\"$t('config.valid_from')\"\n rules=\"required\"\n v-slot=\"{ errors }\">\n <div class=\"flex w-full mt-2\">\n <label class=\"w-3/4 vs-input--label mr-2 self-center\">{{ $t('config.valid_from') }}</label>\n <date-picker class=\" -mx-2\" v-model=\"configs.valid_from\"/>\n </div>\n <span class=\"text-xs italic text-danger\" v-if=\"errors[0]\">{{ errors[0] }}</span>\n </ValidationProvider>\n\n <div class=\"flex w-full mt-2\">\n <label class=\"w-3/4 vs-input--label mr-2 self-center\">{{ $t('config.valid_to') }}</label>\n <date-picker class=\" -mx-2\" ref=\"calendarTo\" v-model=\"configs.valid_to\"/>\n </div>\n <base-button :loading=\"loading\" button=\"filled\" class=\"w-full mx-2 my-5\" color=\"success\" type=\"submit\">\n {{ $t('buttons.save') }}\n </base-button>\n\n </form>\n </ValidationObserver>\n </div>\n </div>\n </div>\n</template>\n\n<script>\n import DatePicker from \"../../components/DatePicker\";\n\n export default {\n name: \"ConfigsComponent\",\n components: {\n DatePicker\n },\n props: {\n configs: {\n type: Object,\n required: true\n },\n loading: {\n type: Boolean,\n default: false\n }\n },\n methods: {\n async submit () {\n const isValid = await this.$refs.validator.validate();\n if (!isValid) return\n this.$emit('confirm')\n },\n },\n }\n</script>\n\n<style scoped>\n\n</style>\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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfigsComponent.vue?vue&type=script&lang=js&\"; 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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfigsComponent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConfigsComponent.vue?vue&type=template&id=9ec29e00&scoped=true&\"\nimport script from \"./ConfigsComponent.vue?vue&type=script&lang=js&\"\nexport * from \"./ConfigsComponent.vue?vue&type=script&lang=js&\"\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 \"9ec29e00\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-loader',{attrs:{\"loading\":_vm.loadingData}},[_c('configs-component',{attrs:{\"configs\":_vm.userConfig,\"loading\":_vm.loading},on:{\"confirm\":_vm.updateUserConfig}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <base-loader :loading=\"loadingData\">\n <configs-component :configs=\"userConfig\" :loading=\"loading\" @confirm=\"updateUserConfig\"/>\n </base-loader>\n</template>\n\n<script>\n import ConfigsComponent from \"../../components/configs/ConfigsComponent\"\n import Users from \"../../services/Users\"\n\n export default {\n name: \"UserConfig\",\n components: {\n ConfigsComponent\n },\n data: () => ({\n userConfig: {},\n userId: null,\n loading: false,\n loadingData: false\n }),\n methods: {\n getUserConfig () {\n this.loadingData = true;\n Users.getConfigurations(this.userId).then(result => {\n this.userConfig = result.data\n }).catch(error => {\n this.$notificationService.error(error.message)\n }).finally(() => {\n this.loadingData = false\n })\n },\n updateUserConfig () {\n this.loading = true;\n Users.updateConfigurations(this.userId, this.userConfig).then(() => {\n this.$notificationService.success(this.$t('config.successUpdate'))\n }).catch(error => {\n this.$notificationService.error(error.message)\n }).finally(() => {\n this.loading = false\n })\n }\n },\n mounted () {\n this.userId = this.$route.params.id;\n this.getUserConfig()\n }\n }\n</script>\n\n<style scoped>\n\n</style>\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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserConfig.vue?vue&type=script&lang=js&\"; 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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserConfig.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserConfig.vue?vue&type=template&id=6842d7e8&scoped=true&\"\nimport script from \"./UserConfig.vue?vue&type=script&lang=js&\"\nexport * from \"./UserConfig.vue?vue&type=script&lang=js&\"\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 \"6842d7e8\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}