%PDF- %PDF-
Direktori : /var/www/html/hr/web/js/ |
Current File : /var/www/html/hr/web/js/chunk-582abfd7.e88e86a9.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-582abfd7"],{"18ee":function(t,s,a){"use strict";var e=a("c0ee"),n=a.n(e);n.a},"6b8d":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("base-loader",{attrs:{loading:t.loading}},[a("user-holidays-component",{attrs:{header:t.tableHeader,logs:t.logs.transactions,total:t.total}})],1)},n=[],o=(a("d3b7"),function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"view-container"},[a("vs-table",{attrs:{data:t.logs},scopedSlots:t._u([{key:"default",fn:function(s){var e=s.data;return t._l(e,(function(s,e){return a("vs-tr",{key:e,class:s.class,attrs:{data:s}},[a("vs-td",{attrs:{data:s.notes}},[t._v(" "+t._s(s.notes)+" ")]),a("vs-td",{staticClass:"w-16",attrs:{data:s.quantity}},[a("span",{class:"ADD"===s.type?"positive":"negative"},[t._v(t._s(s.quantity))])]),a("vs-td",{staticClass:"whitespace-pre",attrs:{data:s.expires_at}},[s.expires_at?a("span",[t._v(t._s(t._f("fromShortDate")(s.expires_at,"MMM Do YYYY")))]):t._e()]),a("vs-td",{staticClass:"whitespace-pre",attrs:{data:s.created_at}},[s.created_at?a("span",[t._v(t._s(t._f("date")(s.created_at,"MMM Do YYYY")))]):t._e()])],1)}))}}])},[a("template",{slot:"thead"},t._l(t.header,(function(s,e){return a("vs-th",{key:e,staticClass:"text-base whitespace-pre"},[t._v(t._s(s))])})),1)],2)],1)}),i=[],r={name:"UserHolidaysComponent",props:{logs:{required:!0,type:Array},header:{required:!0,type:Array},total:{required:!0,type:Array},loading:{type:Boolean,default:!1}},methods:{startLoading:function(){this.$vs.loading({container:this.$refs.userHolidays})},stopLoading:function(){this.$vs.loading.close(this.$refs.userHolidays)}},watch:{loading:function(t){t?this.startLoading():this.stopLoading()}}},l=r,d=(a("18ee"),a("2877")),c=Object(d["a"])(l,o,i,!1,null,null,null),u=c.exports,h=a("6bcd"),p={name:"UserHolidays",components:{UserHolidaysComponent:u},data:function(){return{logs:{transactions:[]},total:[],userId:null,loading:!1}},computed:{tableHeader:function(){return[this.$t("users.holidays.notes"),this.$t("users.holidays.days"),this.$t("users.holidays.available_until"),this.$t("users.holidays.date")]}},methods:{getLogs:function(){var t=this;this.loading=!0,h["a"].getPTOLogs(this.userId).then((function(s){s.transactions.push({class:"hrsys-total",type:"ADD",notes:"Total",quantity:s.quantity}),t.logs=s})).catch((function(s){t.$notificationService.error(s.message)})).finally((function(){t.loading=!1}))}},mounted:function(){this.userId=this.$route.params.id,this.getLogs()}},f=p,y=Object(d["a"])(f,e,n,!1,null,"53c96883",null);s["default"]=y.exports},c0ee:function(t,s,a){}}]); //# sourceMappingURL=chunk-582abfd7.e88e86a9.js.map