%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/web/js/
Upload File :
Create Path :
Current File : /var/www/html/hr/web/js/chunk-38d7c7c6.f4e03230.js

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38d7c7c6"],{b557:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"view-container"},[i("div",{staticClass:"flex flex-col justify-around items-center"},[i("div",{staticClass:"max-w-md w-full md:w-1/2 flex flex-wrap content-center justify-center"},[i("ValidationObserver",{ref:"validator",staticClass:"w-full",scopedSlots:e._u([{key:"default",fn:function(t){t.invalid;return[i("form",{on:{submit:function(t){return t.preventDefault(),e.submit()}}},[i("ValidationProvider",{attrs:{vid:e.$t("config.annual_leave_quantity")}},[i("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[i("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(e._s(e.$t("config.annual_leave_quantity")))]),i("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)]),i("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[i("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(" "+e._s(e.$t("config.should_postpone_holidays"))+" ")]),i("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),i("ValidationProvider",{attrs:{vid:e.$t("config.should_get_holidays_from_working_day_overtime")}},[i("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[i("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(" "+e._s(e.$t("config.should_get_holidays_from_working_day_overtime"))+" ")]),i("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)]),i("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 n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.holidays_percentage_from_working_day_overtime")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("ValidationProvider",{attrs:{vid:e.$t("config.should_get_holidays_from_non_working_day_overtime")}},[i("div",{staticClass:"flex w-full  mt-2 h-12 items-center"},[i("label",{staticClass:"flex-grow vs-input--label mr-2"},[e._v(e._s(e.$t("config.should_get_holidays_from_non_working_day_overtime")))]),i("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)]),i("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 n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("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")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("ValidationProvider",{attrs:{name:e.$t("config.expected_daily_working_hours"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.expected_daily_working_hours")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("ValidationProvider",{attrs:{name:e.$t("config.overtime_percentage_on_working_day"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.overtime_percentage_on_working_day")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("ValidationProvider",{attrs:{name:e.$t("config.overtime_percentage_on_non_working_day"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.overtime_percentage_on_non_working_day")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("ValidationProvider",{attrs:{name:e.$t("config.out_sick_percentage"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.out_sick_percentage")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("ValidationProvider",{attrs:{name:e.$t("config.overtime_percentage_on_working_day"),rules:"required|numeric"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("label",{staticClass:"flex-grow vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.holidays_validity_in_months")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("ValidationProvider",{attrs:{name:e.$t("config.valid_from"),rules:"required"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.errors;return[i("div",{staticClass:"flex w-full  mt-2"},[i("label",{staticClass:"w-3/4 vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.valid_from")))]),i("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),n[0]?i("span",{staticClass:"text-xs italic text-danger"},[e._v(e._s(n[0]))]):e._e()]}}],null,!0)}),i("div",{staticClass:"flex w-full mt-2"},[i("label",{staticClass:"w-3/4 vs-input--label mr-2  self-center"},[e._v(e._s(e.$t("config.valid_to")))]),i("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),i("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=[],a=(i("96cf"),i("1da1")),o=i("e94a"),r={name:"ConfigsComponent",components:{DatePicker:o["a"]},props:{configs:{type:Object,required:!0},loading:{type:Boolean,default:!1}},methods:{submit:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var i;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(i=t.sent,i){t.next=5;break}return t.abrupt("return");case 5:e.$emit("confirm");case 6:case"end":return t.stop()}}),t)})))()}}},l=r,_=i("2877"),c=Object(_["a"])(l,n,s,!1,null,"9ec29e00",null);t["a"]=c.exports},dc0c:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-loader",{attrs:{loading:e.loadingData}},[i("configs-component",{attrs:{configs:e.userConfig,loading:e.loading},on:{confirm:e.updateUserConfig}})],1)},s=[],a=(i("d3b7"),i("b557")),o=i("6bcd"),r={name:"UserConfig",components:{ConfigsComponent:a["a"]},data:function(){return{userConfig:{},userId:null,loading:!1,loadingData:!1}},methods:{getUserConfig:function(){var e=this;this.loadingData=!0,o["a"].getConfigurations(this.userId).then((function(t){e.userConfig=t.data})).catch((function(t){e.$notificationService.error(t.message)})).finally((function(){e.loadingData=!1}))},updateUserConfig:function(){var e=this;this.loading=!0,o["a"].updateConfigurations(this.userId,this.userConfig).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.userId=this.$route.params.id,this.getUserConfig()}},l=r,_=i("2877"),c=Object(_["a"])(l,n,s,!1,null,"6842d7e8",null);t["default"]=c.exports}}]);
//# sourceMappingURL=chunk-38d7c7c6.f4e03230.js.map

Zerion Mini Shell 1.0