%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hrsys/web/js/
Upload File :
Create Path :
Current File : /var/www/html/hrsys/web/js/chunk-38d5c037.52580c72.js

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38d5c037"],{a4c3:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vue-portal",{attrs:{to:"hrsys-navbar"}},[n("base-header-title",{attrs:{title:e.$t("modules.configurations")}})],1),n("base-loader",{attrs:{loading:e.loadingData}},[n("configs-component",{attrs:{configs:e.configs,loading:e.loading},on:{confirm:e.updateConfigs}})],1)],1)},s=[],o=(n("d3b7"),n("b557")),a=n("1829"),r={getConfigs:function(){return new Promise((function(e,t){a["a"].get("v1/configurations?").then((function(t){return e(t.data)}),(function(e){return t(e)})).catch((function(e){return t(e)}))}))},updateConfigs:function(e){var t=e.id;return new Promise((function(n,i){a["a"].put("v1/configurations/".concat(t),e).then((function(e){return n(e.data)}),(function(e){return i(e)})).catch((function(e){return i(e)}))}))}},l={name:"Configs",components:{ConfigsComponent:o["a"]},data:function(){return{configs:{},loadingData:!1,loading:!1}},methods:{getConfigs:function(){var e=this;this.loadingData=!0,r.getConfigs().then((function(t){e.configs=t.data})).catch((function(t){e.$notificationService.error(t.message)})).finally((function(){e.loadingData=!1}))},updateConfigs:function(){var e=this;this.loading=!0,r.updateConfigs(this.configs).then((function(){e.$notificationService.success(e.$t("config.successUpdate"))})).catch((function(t){e.$notificationService.error(t.message)})).finally((function(){e.loading=!1}))}},mounted:function(){this.getConfigs()}},c=l,_=n("2877"),f=Object(_["a"])(c,i,s,!1,null,"7d0d48c6",null);t["default"]=f.exports},b557:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"view-container"},[n("div",{staticClass:"flex flex-col justify-around items-center"},[n("div",{staticClass:"max-w-md w-full md:w-1/2 flex flex-wrap content-center justify-center"},[n("ValidationObserver",{ref:"validator",staticClass:"w-full",scopedSlots:e._u([{key:"default",fn:function(t){t.invalid;return[n("form",{on:{submit:function(t){return t.preventDefault(),e.submit()}}},[n("ValidationProvider",{attrs:{vid:e.$t("config.annual_leave_quantity")}},[n("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[n("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(e._s(e.$t("config.annual_leave_quantity")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{min:"0",type:"number"},model:{value:e.configs.annual_leave_quantity,callback:function(t){e.$set(e.configs,"annual_leave_quantity",t)},expression:"configs.annual_leave_quantity"}})],1)]),n("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[n("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(" "+e._s(e.$t("config.should_postpone_holidays"))+" ")]),n("toggle-button",{attrs:{height:25,sync:!0,width:62},model:{value:e.configs.should_postpone_holidays,callback:function(t){e.$set(e.configs,"should_postpone_holidays",t)},expression:"configs.should_postpone_holidays"}})],1),n("ValidationProvider",{attrs:{vid:e.$t("config.should_get_holidays_from_working_day_overtime")}},[n("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[n("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(" "+e._s(e.$t("config.should_get_holidays_from_working_day_overtime"))+" ")]),n("toggle-button",{attrs:{height:25,sync:!0,width:62},model:{value:e.configs.should_get_holidays_from_working_day_overtime,callback:function(t){e.$set(e.configs,"should_get_holidays_from_working_day_overtime",t)},expression:"configs.should_get_holidays_from_working_day_overtime"}})],1)]),n("ValidationProvider",{attrs:{name:e.$t("config.holidays_percentage_from_working_day_overtime"),rules:"required_if:"+e.$t("config.should_get_holidays_from_working_day_overtime")+",true|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.holidays_percentage_from_working_day_overtime")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{disabled:!e.configs.should_get_holidays_from_working_day_overtime,min:"0",type:"number"},model:{value:e.configs.holidays_percentage_from_working_day_overtime,callback:function(t){e.$set(e.configs,"holidays_percentage_from_working_day_overtime",t)},expression:"configs.holidays_percentage_from_working_day_overtime"}})],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("ValidationProvider",{attrs:{vid:e.$t("config.should_get_holidays_from_non_working_day_overtime")}},[n("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[n("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(e._s(e.$t("config.should_get_holidays_from_non_working_day_overtime")))]),n("toggle-button",{attrs:{height:25,sync:!0,width:62},model:{value:e.configs.should_get_holidays_from_non_working_day_overtime,callback:function(t){e.$set(e.configs,"should_get_holidays_from_non_working_day_overtime",t)},expression:"configs.should_get_holidays_from_non_working_day_overtime"}})],1)]),n("ValidationProvider",{attrs:{name:e.$t("config.holidays_percentage_from_non_working_day_overtime"),rules:"required_if:"+e.$t("config.should_get_holidays_from_non_working_day_overtime")+",true|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.holidays_percentage_from_non_working_day_overtime")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{disabled:!e.configs.should_get_holidays_from_non_working_day_overtime,min:"0",type:"number"},model:{value:e.configs.holidays_percentage_from_non_working_day_overtime,callback:function(t){e.$set(e.configs,"holidays_percentage_from_non_working_day_overtime",t)},expression:"configs.holidays_percentage_from_non_working_day_overtime"}})],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("ValidationProvider",{attrs:{name:e.$t("config.expected_daily_working_hours"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.expected_daily_working_hours")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{min:"0",type:"number"},model:{value:e.configs.expected_daily_working_hours,callback:function(t){e.$set(e.configs,"expected_daily_working_hours",t)},expression:"configs.expected_daily_working_hours"}})],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("ValidationProvider",{attrs:{name:e.$t("config.overtime_percentage_on_working_day"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.overtime_percentage_on_working_day")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{min:"0",type:"number"},model:{value:e.configs.overtime_percentage_on_working_day,callback:function(t){e.$set(e.configs,"overtime_percentage_on_working_day",t)},expression:"configs.overtime_percentage_on_working_day"}},[e._v("/ ")])],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("ValidationProvider",{attrs:{name:e.$t("config.overtime_percentage_on_non_working_day"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.overtime_percentage_on_non_working_day")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{min:"0",type:"number"},model:{value:e.configs.overtime_percentage_on_non_working_day,callback:function(t){e.$set(e.configs,"overtime_percentage_on_non_working_day",t)},expression:"configs.overtime_percentage_on_non_working_day"}})],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("ValidationProvider",{attrs:{name:e.$t("config.out_sick_percentage"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.out_sick_percentage")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{min:"0",type:"number"},model:{value:e.configs.out_sick_percentage,callback:function(t){e.$set(e.configs,"out_sick_percentage",t)},expression:"configs.out_sick_percentage"}})],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("ValidationProvider",{attrs:{name:e.$t("config.overtime_percentage_on_working_day"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.holidays_validity_in_months")))]),n("vs-input",{staticClass:" pl-2 w-20 flex-shrink-0",attrs:{min:"0",type:"number"},model:{value:e.configs.holidays_validity_in_months,callback:function(t){e.$set(e.configs,"holidays_validity_in_months",t)},expression:"configs.holidays_validity_in_months"}})],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("ValidationProvider",{attrs:{name:e.$t("config.valid_from"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.errors;return[n("div",{staticClass:"flex w-full  mt-2"},[n("label",{staticClass:"w-3/4 vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.valid_from")))]),n("date-picker",{staticClass:" -mx-2",model:{value:e.configs.valid_from,callback:function(t){e.$set(e.configs,"valid_from",t)},expression:"configs.valid_from"}})],1),i[0]?n("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(i[0]))]):e._e()]}}],null,!0)}),n("div",{staticClass:"flex w-full mt-2"},[n("label",{staticClass:"w-3/4 vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.valid_to")))]),n("date-picker",{ref:"calendarTo",staticClass:" -mx-2",model:{value:e.configs.valid_to,callback:function(t){e.$set(e.configs,"valid_to",t)},expression:"configs.valid_to"}})],1),n("base-button",{staticClass:"w-full mx-2 my-5",attrs:{loading:e.loading,button:"filled",color:"success",type:"submit"}},[e._v(" "+e._s(e.$t("buttons.save"))+" ")])],1)]}}])})],1)])])},s=[],o=(n("96cf"),n("1da1")),a=n("e94a"),r={name:"ConfigsComponent",components:{DatePicker:a["a"]},props:{configs:{type:Object,required:!0},loading:{type:Boolean,default:!1}},methods:{submit:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.validator.validate();case 2:if(n=t.sent,n){t.next=5;break}return t.abrupt("return");case 5:e.$emit("confirm");case 6:case"end":return t.stop()}}),t)})))()}}},l=r,c=n("2877"),_=Object(c["a"])(l,i,s,!1,null,"9ec29e00",null);t["a"]=_.exports}}]);
//# sourceMappingURL=chunk-38d5c037.52580c72.js.map

Zerion Mini Shell 1.0