%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-7e8357f5.3dad4b2a.js

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e8357f5"],{1799:function(t,a,e){"use strict";var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"flex"},[t.selectPerPage?e("div",{staticClass:"flex items-center"},[e("span",{staticClass:"mr-2 whitespace-pre"},[t._v(t._s(t.$t("labels.per_page"))+":")]),e("div",{staticClass:"z-500 w-20"},[e("base-multiselect",{staticClass:"-mt-4",attrs:{value:t.pagination.per_page,options:t.paginationOptions,selectedLabel:"",selectLabel:"",deselectLabel:"","allow-empty":!1},on:{input:function(a){return t.$emit("selectedPerPage",a)}}})],1)]):t._e(),e("vs-pagination",{staticClass:"mt-2",attrs:{max:t.max,total:t.pagination.total_pages},on:{input:t.pageChange},model:{value:t.value,callback:function(a){t.value=a},expression:"value"}})],1)},s=[],n=(e("a9e3"),{name:"Pagination",props:{pagination:{type:Object,required:!0},max:{type:Number,default:7},selectPerPage:{type:Boolean,default:!1}},data:function(){return{paginationOptions:[5,10,15,20,30,50,100],value:null}},methods:{pageChange:function(t){this.$emit("input",t)}},created:function(){this.value=this.pagination.current_page}}),o=n,r=e("2877"),l=Object(r["a"])(o,i,s,!1,null,"cb826a88",null);a["a"]=l.exports},e975:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"view-container"},[e("vue-portal",{attrs:{to:"hrsys-navbar-actions"}},[e("div",{staticClass:"flex"},[e("base-header-title",{attrs:{title:t.$t("modules.notifications")}}),e("vx-tooltip",{staticClass:"ml-2",attrs:{text:t.$t("notifications.markAllAsRead"),position:"bottom"}},[e("base-button",{staticClass:"self-end px-3",attrs:{icon:"eye"},on:{click:t.markAllAsRead}})],1)],1)]),e("base-loader",{attrs:{loading:t.loading}},[e("div",{staticClass:"flex mb-5"},[e("base-input",{staticClass:"flex-1",attrs:{label:t.$t("labels.search")},model:{value:t.queryParams.search,callback:function(a){t.$set(t.queryParams,"search",a)},expression:"queryParams.search"}}),e("base-button",{staticClass:"self-end px-4 ml-2",attrs:{icon:"search"},on:{click:t.search}})],1),e("notifications-table",{attrs:{header:t.tableHeader,notifications:t.list},on:{notificationClicked:t.goTo}}),t.pagination.total?e("pagination",{attrs:{pagination:t.pagination},on:{input:t.changePage}}):t._e()],1)],1)])},s=[],n=(e("d81d"),e("d3b7"),function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("vs-table",{attrs:{data:t.notifications},scopedSlots:t._u([{key:"default",fn:function(a){var i=a.data;return t._l(i,(function(a,i){return e("vs-tr",{key:i,attrs:{data:a}},[e("vs-td",{attrs:{data:a.title}},[e("span",{class:a.is_read?"":"font-bold"},[t._v(t._s(a.title))])]),e("vs-td",{attrs:{data:a.title}},[e("span",{class:a.is_read?"":"font-bold"},[t._v(t._s(t._f("date")(a.sent_at,"MMM Do YYYY - HH:mm")))])]),e("vs-td",{staticClass:"text-right w-16"},[e("div",{staticClass:"flex justify-end"},[e("vx-tooltip",{attrs:{text:t.$t("notifications.details"),position:"top"}},[e("base-button",{staticClass:"self-end px-3 mx-px",attrs:{icon:"arrow-right"},on:{click:function(e){return t.$emit("notificationClicked",a)}}})],1)],1)])],1)}))}}])},[e("template",{slot:"thead"},t._l(t.header,(function(a,i){return e("vs-th",{key:i,staticClass:"text-base",class:{"float-right":a===t.$t("notifications.table.actions")}},[t._v(t._s(a)+" ")])})),1)],2)],1)}),o=[],r={name:"NotificationsTable",components:{},props:{header:{type:Array,required:!0},notifications:{type:Array,required:!0},loading:{type:Boolean,default:!1}}},l=r,c=e("2877"),u=Object(c["a"])(l,n,o,!1,null,"2623fcb2",null),d=u.exports,f=e("1799"),p=e("43c5"),h={name:"Notifications",components:{NotificationsTable:d,Pagination:f["a"]},data:function(){return{list:[],pagination:{},importError:{message:"",errors:[]},queryParams:{page:1},loading:!1}},methods:{goTo:function(t){t.is_read||(t.is_read=!0,this.$store.dispatch("markNotificationAsRead",t)),p["a"].manageRedirection(t,this)},markAllAsRead:function(){var t=this;this.$vs.dialog({type:"confirm",color:"primary",title:this.$t("notifications.markAllAsReadConfirmTitle"),text:this.$t("notifications.markAllAsReadConfirmText"),accept:function(){t.list=t.list.map((function(t){return t.is_read=!0,t})),t.$store.dispatch("markAllNotificationsAsRead")}})},changePage:function(t){this.queryParams.page=t,this.$router.push({query:this.queryParams}).catch((function(){})),this.getNotifications()},getNotifications:function(){var t=this;this.loading=!0;var a=this;p["a"].list(this.queryParams).then((function(e){a.$router.push({query:t.queryParams}).catch((function(){})),t.list=e.data,t.pagination=e.meta.pagination})).finally((function(){return t.loading=!1}))},search:function(){this.$router.push({query:this.queryParams}).catch((function(){})),this.queryParams.page=1,this.getNotifications()},getUrlParams:function(){var t=this;this.$route.query.page&&(t.queryParams=Object.assign({},t.$route.query))}},computed:{tableHeader:function(){return[this.$t("notifications.table.title"),this.$t("notifications.table.date"),this.$t("notifications.table.actions")]}},created:function(){this.getUrlParams(),this.getNotifications()}},m=h,g=Object(c["a"])(m,i,s,!1,null,"7f782c5a",null);a["default"]=g.exports}}]);
//# sourceMappingURL=chunk-7e8357f5.3dad4b2a.js.map

Zerion Mini Shell 1.0