/
home
/
techb158
/
ileadtechnology.com
/
SSM
/
public
/
js
/
/home/techb158/ileadtechnology.com/SSM/public/js
mkdir
upload
Name
Size
Mode
Actions
academic/
-
0755
rm
auth/
-
0755
rm
calendar/
-
0755
rm
communication/
-
0755
rm
configuration/
-
0755
rm
dashboard~js/
-
0755
rm
employee/
-
0755
rm
employee~js/
-
0755
rm
errors/
-
0755
rm
exam/
-
0755
rm
finance/
-
0755
rm
frontend/
-
0755
rm
institute/
-
0755
rm
inventory/
-
0755
rm
library/
-
0755
rm
license/
-
0755
rm
pages/
-
0755
rm
post/
-
0755
rm
product/
-
0755
rm
reception/
-
0755
rm
resource/
-
0755
rm
student/
-
0755
rm
student~js/
-
0755
rm
transport/
-
0755
rm
utility/
-
0755
rm
app.js
1213021
0644
edit
dl
rm
app.js.gz
358291
0644
edit
dl
rm
app.js.LICENSE.txt
2966
0644
edit
dl
rm
app.js.map
104
0644
edit
dl
rm
configuration.js
344
0644
edit
dl
rm
configuration.js.map
145
0644
edit
dl
rm
dashboard.js
31890
0644
edit
dl
rm
dashboard.js.map
137
0644
edit
dl
rm
defaultPage.js
75392
0644
edit
dl
rm
defaultPage.js.map
141
0644
edit
dl
rm
employee.js
18601
0644
edit
dl
rm
employee.js.map
135
0644
edit
dl
rm
formWizard.js
30003
0644
edit
dl
rm
formWizard.js.map
139
0644
edit
dl
rm
frontendPage.js
39747
0644
edit
dl
rm
frontendPage.js.map
143
0644
edit
dl
rm
guestPage.js
535
0644
edit
dl
rm
guestPage.js.map
137
0644
edit
dl
rm
meetingPage.js
423
0644
edit
dl
rm
meetingPage.js.map
141
0644
edit
dl
rm
plugin.js
125869
0644
edit
dl
rm
setup.js
67197
0644
edit
dl
rm
setup.js.map
129
0644
edit
dl
rm
student.js
36575
0644
edit
dl
rm
student.js.map
133
0644
edit
dl
rm
utility.js
339
0644
edit
dl
rm
utility.js.map
133
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/SSM/public/js/dashboard.js
(31890B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[161],{"3U2P":function(t,e,s){var a=s("j2xy");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,n);a.locals&&(t.exports=a.locals)},"81mn":function(t,e,s){"use strict";s.r(e);var a={},n=s("KHd+"),r=Object(n.a)(a,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"notice-highlight"},[this._t("default")],2)}),[],!1,null,null,null).exports,o=s("vX/d"),i=s("GqiS"),l={extends:s("H8ri").a,props:["chart"],data:function(){return{options:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{ticks:{}}]}}}},mounted:function(){this.render(this.chart)},methods:{render:function(t){this.renderChart(t,this.options)}},watch:{chart:function(t){this.render(t)}}},c=Object(n.a)(l,void 0,void 0,!1,null,null,null).exports,d=s("Jcx+"),u=(s("T61X"),{components:{FullCalendar:d.a},data:function(){return{events:[],config:{defaultView:"month",firstDay:helper.getDayInInteger(this.getConfig("first_day_of_week")||"monday"),locale:this.getConfig("locale"),isRTL:"rtl"==this.getConfig("direction"),eventRender:function(t,e){$(e).tooltip({title:t.title}),t.icon&&e.find(".fc-title").prepend(" <i class='fas fa-"+t.icon+"'></i> ")}}}},mounted:function(){this.getEvents()},methods:{getConfig:function(t){return helper.getConfig(t)},getEvents:function(){var t=this;axios.post("/api/dashboard/calendar/event").then((function(e){e.holidays.forEach((function(e){t.events.push({title:e.description,start:helper.toDate(e.date),icon:"coffee",color:"teal"})})),e.todos.forEach((function(e){t.events.push({title:e.title,start:helper.toDate(e.date),icon:"check-circle",color:e.date<helper.today()?"red":""})})),e.events.forEach((function(e){t.events.push({title:e.title,start:helper.toDate(e.start_date),end:helper.toDate(e.enddate),icon:"bullhorn",color:"purple"})}))})).catch((function(t){helper.showErrorMsg(t)}))}}}),_=(s("Ra8w"),Object(n.a)(u,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("full-calendar",{attrs:{events:this.events,config:this.config}})],1)}),[],!1,null,null,null).exports),h={data:function(){return{todoForm:new Form({title:"",date:""}),todos:[]}},mounted:function(){this.getTodo()},methods:{getTodo:function(){var t=this,e=this.$loading.show();axios.get("/api/todo/today").then((function(s){t.todos=s,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},submit:function(){var t=this,e=this.$loading.show();this.todoForm.date=helper.today(),this.todoForm.post("/api/todo").then((function(s){toastr.success(s.message),t.getTodo(),e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},toggleTodo:function(t){var e=this,s=this.$loading.show();axios.post("/api/todo/"+t.id+"/status").then((function(t){e.getTodo(),s.hide()})).catch((function(t){s.hide()}))}}},m=(s("SZGA"),Object(n.a)(h,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"mr-4"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)},keydown:function(e){return t.todoForm.errors.clear(e.target.name)}}},[s("div",{staticClass:"px-2"},[s("div",{staticClass:"form-group"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.todoForm.title,expression:"todoForm.title"}],staticClass:"form-control",attrs:{type:"text",name:"title",placeholder:t.trans("utility.todo_title")},domProps:{value:t.todoForm.title},on:{input:function(e){e.target.composing||t.$set(t.todoForm,"title",e.target.value)}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.todoForm,"prop-name":"title"}})],1)])]),t._v(" "),s("div",[s("div",{directives:[{name:"bar",rawName:"v-bar"}]},[s("div",{staticClass:"m-b-20",staticStyle:{"max-height":"200px"}},t._l(t.todos,(function(e){return s("div",{class:["pointer","px-2",e.status?"completed":""],on:{click:function(s){return t.toggleTodo(e)}}},[s("div",{staticClass:"checkbox checkbox-success"},[s("input",{attrs:{type:"checkbox",id:"todo_"+e.id},domProps:{checked:!!e.status}}),t._v(" "),s("label",{attrs:{for:"todo_"+e.id}},[t._v(t._s(e.title))])])])})),0)])])])}),[],!1,null,null,null).exports),v={components:{NoticeHighlight:r,EventsList:o.a,ArticlesList:i.a,barChart:c,calendar:_,todoWidget:m},data:function(){return{color_themes:[],directions:[],sidebar:[],locales:[],preferenceForm:new Form({color_theme:helper.getConfig("user_color_theme")||helper.getConfig("color_theme"),direction:helper.getConfig("user_direction")||helper.getConfig("direction"),locale:helper.getConfig("user_locale")||helper.getConfig("locale"),sidebar:helper.getConfig("user_sidebar")||helper.getConfig("sidebar")},!1),user_preference:{color_theme:helper.getConfig("user_color_theme")||helper.getConfig("color_theme"),direction:helper.getConfig("user_direction")||helper.getConfig("direction"),locale:helper.getConfig("user_locale")||helper.getConfig("locale"),sidebar:helper.getConfig("user_sidebar")||helper.getConfig("sidebar")},showModal:!1,chart:{strength:{labels:[],datasets:[]}},total_strength:0,strength_chart_type:"course",birthday_count:0,anniversary_count:0,work_anniversary_count:0,total_book_count:0,pending_return_book_count:0,overdue_return_book_count:0,articles:[],events:[],showTourVideo:!1}},mounted:function(){this.$route.query.reload&&(window.location=window.location.pathname),helper.showDemoNotification(["dashboard_academic","dashboard_student","dashboard_student_attendance","dashboard_employee","dashboard_finance","dashboard_transport","dashboard_frontend","dashboard_post","dashboard_calendar","dashboard_thanks"]),this.getData(),this.hasAnyRole(["admin","manager","principal"])&&this.getStudentStrengthChartData(),this.showTourVideo=!this.$cookie.get("hide_tour_video"),this.getUserPreferencePreRequisite()},methods:{getConfig:function(t){return helper.getConfig(t)},hasRole:function(t){return helper.hasRole(t)},hasAnyRole:function(t){return helper.hasAnyRole(t)},hasNotAnyRole:function(t){return helper.hasNotAnyRole(t)},hasPermission:function(t){return helper.hasPermission(t)},showArticle:function(t){this.showArticleUuid=t.uuid,this.showArticleModal=!0},logout:function(){var t=this;helper.logout().then((function(){t.$router.push("/login")}))},getData:function(){var t=this,e=this.$loading.show();axios.get("/api/dashboard").then((function(s){t.birthday_count=s.birthday_count,t.anniversary_count=s.anniversary_count,t.work_anniversary_count=s.work_anniversary_count,helper.hasRole("librarian")&&(t.total_book_count=s.total_book_count,t.pending_return_book_count=s.pending_return_book_count,t.overdue_return_book_count=s.overdue_return_book_count),t.articles=s.articles,t.events=s.events,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getStudentStrengthChartData:function(){var t=this,e=this.$loading.show();axios.post("/api/dashboard/student/strength/chart",{strength_chart_type:this.strength_chart_type}).then((function(s){t.chart.strength=s.strength,t.total_strength=s.total,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getUserPreferencePreRequisite:function(){var t=this,e=this.$loading.show();axios.get("/api/user/preference/pre-requisite").then((function(s){t.color_themes=s.color_themes,t.directions=s.directions,t.sidebar=s.sidebar,t.locales=s.locales,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},updatePreference:function(){var t=this,e=this.$loading.show();this.preferenceForm.post("/api/user/preference").then((function(s){t.$store.dispatch("setConfig",{loaded:!1}),toastr.success(s.message),$("#theme").attr("href","/css/colors/"+t.preferenceForm.color_theme+".css"),e.hide(),t.user_preference.direction==t.preferenceForm.direction&&t.user_preference.sidebar==t.preferenceForm.sidebar&&t.user_preference.locale==t.preferenceForm.locale||location.reload()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},hideTourVideo:function(){this.$cookie.set("hide_tour_video",helper.randomString(20),{expires:"30m"}),this.showTourVideo=!1}},computed:{},filters:{momentDateTime:function(t){return helper.formatDateTime(t)},moment:function(t){return helper.formatDate(t)},momentTime:function(t){return helper.formatTime(t)}},watch:{strength_chart_type:function(t){this.getStudentStrengthChartData()}}},f=(s("Nlbf"),Object(n.a)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"page-titles"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6"},[s("h3",{staticClass:"text-themecolor"},[t._v(t._s(t.trans("general.home")))])]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"action-buttons pull-right"},[s("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("user.user_preference"),expression:"trans('user.user_preference')"}],staticClass:"btn btn-info btn-sm right-sidebar-toggle "},[s("i",{staticClass:"fas fa-cog"})]),t._v(" "),s("button",{staticClass:"btn btn-danger btn-sm",on:{click:function(e){return e.preventDefault(),t.logout(e)}}},[s("i",{staticClass:"fas fa-power-off"}),t._v(" "),s("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("auth.logout")))])])])])])]),t._v(" "),s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-8"},[t.showTourVideo&&!t.getConfig("mode")?s("notice-highlight",{staticClass:"border-right border-bottom p-4"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-6"},[s("iframe",{attrs:{width:"100%",height:"325",src:"https://www.youtube.com/embed/ydTGjP-dMuM?rel=0&showinfo=0",frameborder:"0",allow:"autoplay; encrypted-media",allowfullscreen:""}})]),t._v(" "),s("div",{staticClass:"col-12 col-md-6 product-intro"},[s("h2",[t._v("Do you want a "),s("span",{staticClass:"special"},[t._v("Tour")]),t._v("?")]),t._v(" "),s("h3",[t._v("Watch InstiKit's Short Introduction Video")]),t._v(" "),s("p",[t._v("We will go through all the primary modules and features that InstiKit currently has in this short video. If you like InstiKit click on the button below to buy InstiKit.")]),t._v(" "),s("a",{staticClass:"btn btn-danger",attrs:{href:"https://instikit.com/buy/regular"}},[s("span",{staticClass:"p-r-10 m-r-10 border-right"},[t._v("Liked it?")]),s("strong",[s("i",{staticClass:"fas fa-shopping-cart m-r-5"}),t._v(" Buy it Now")])]),t._v(" "),s("button",{staticClass:"btn",on:{click:t.hideTourVideo}},[s("i",{staticClass:"fas fa-times"}),t._v(" Hide")])])])]):t._e(),t._v(" "),s("div",{staticClass:"card border-right"},[s("div",{staticClass:"card-body p-4"},[t.hasAnyRole(["admin","manager","principal"])?[s("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("student.total_strength",{total:t.total_strength}))+"\n "),s("span",{staticClass:"pull-right"},["batch"==t.strength_chart_type?s("button",{staticClass:"btn btn-sm btn-info",on:{click:function(e){t.strength_chart_type="course"}}},[t._v(t._s(t.trans("academic.course_wise")))]):t._e(),t._v(" "),"course"==t.strength_chart_type?s("button",{staticClass:"btn btn-sm btn-info",on:{click:function(e){t.strength_chart_type="batch"}}},[t._v(t._s(t.trans("academic.batch_wise")))]):t._e()])]),t._v(" "),s("bar-chart",{attrs:{chart:t.chart.strength}})]:t._e(),t._v(" "),s("calendar")],2)])],1),t._v(" "),s("div",{staticClass:"col-12 col-md-4 p-0"},[t.hasNotAnyRole(["student","parent"])?s("div",{staticClass:"card widget"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"row border-bottom"},[s("div",{staticClass:"col p-4 b-r"},[s("h2",{staticClass:"font-light"},[t._v(t._s(t.birthday_count)+" "),t._m(0)]),t._v(" "),s("h5",[t._v(t._s(t.trans("general.birthday")))])]),t._v(" "),s("div",{staticClass:"col p-4 b-r"},[s("h2",{staticClass:"font-light"},[t._v(t._s(t.anniversary_count)+" "),t._m(1)]),t._v(" "),s("h5",[t._v(t._s(t.trans("general.anniversary")))])]),t._v(" "),s("div",{staticClass:"col p-4 mr-4"},[s("h2",{staticClass:"font-light"},[t._v(t._s(t.work_anniversary_count)+" "),t._m(2)]),t._v(" "),s("h5",[t._v(t._s(t.trans("general.work_anniversary")))])])])])]):t._e(),t._v(" "),t.hasRole("librarian")?s("div",{staticClass:"card widget"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"row border-bottom"},[s("div",{staticClass:"col p-4 b-r"},[s("h2",{staticClass:"font-light"},[t._v(t._s(t.total_book_count)+" "),t._m(3)]),t._v(" "),s("h5",[t._v(t._s(t.trans("library.total_books")))])]),t._v(" "),s("div",{staticClass:"col p-4 b-r"},[s("h2",{staticClass:"font-light"},[t._v(t._s(t.pending_return_book_count)+" "),t._m(4)]),t._v(" "),s("h5",[t._v(t._s(t.trans("library.pending_return")))])]),t._v(" "),s("div",{staticClass:"col p-4 mr-4"},[s("h2",{staticClass:"font-light"},[t._v(t._s(t.overdue_return_book_count)+" "),t._m(5)]),t._v(" "),s("h5",[t._v(t._s(t.trans("library.overdue_return")))])])])])]):t._e(),t._v(" "),t.hasPermission("access-todo")?s("div",{class:["card widget",t.hasAnyRole(["student","parent"])?"m-t-20":""]},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"row border-bottom"},[s("div",{staticClass:"col-12"},[s("h4",{staticClass:"card-title mb-3"},[t._v(t._s(t.trans("utility.todo")))]),t._v(" "),s("todo-widget")],1)])])]):t._e(),t._v(" "),t.events.length&&t.hasPermission("list-event")?s("events-list",{staticClass:"frontend-widget",attrs:{events:t.events,"body-class":"row-like-margin border-bottom px-3 p-b-30","view-more-link":"/calendar/event"}}):t._e(),t._v(" "),t.articles.length&&t.hasPermission("list-article")?s("articles-list",{staticClass:"frontend-widget",attrs:{articles:t.articles,"body-class":"row-like-margin border-bottom px-3 p-b-30","view-more-link":"/post/feed"}}):t._e()],1)])]),t._v(" "),s("div",{staticClass:"right-sidebar"},[s("div",{staticClass:"slimscrollright"},[s("div",{staticClass:"rpanel-title"},[t._v(" \n "+t._s(t.trans("user.user_preference"))+" \n "),t._m(6)]),t._v(" "),s("div",{staticClass:"r-panel-body"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.updatePreference(e)},keydown:function(e){return t.preferenceForm.errors.clear(e.target.name)}}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("configuration.color_theme")))]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.preferenceForm.color_theme,expression:"preferenceForm.color_theme"}],staticClass:"custom-select col-12",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.preferenceForm,"color_theme",e.target.multiple?s:s[0])}}},t._l(t.color_themes,(function(e){return s("option",{domProps:{value:e.value}},[t._v("\n "+t._s(e.text)+"\n ")])})),0),t._v(" "),s("show-error",{attrs:{"form-name":t.preferenceForm,"prop-name":"color_theme"}})],1)]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("configuration.direction")))]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.preferenceForm.direction,expression:"preferenceForm.direction"}],staticClass:"custom-select col-12",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.preferenceForm,"direction",e.target.multiple?s:s[0])}}},t._l(t.directions,(function(e){return s("option",{domProps:{value:e.value}},[t._v("\n "+t._s(e.text)+"\n ")])})),0),t._v(" "),s("show-error",{attrs:{"form-name":t.preferenceForm,"prop-name":"direction"}})],1)]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("configuration.sidebar")))]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.preferenceForm.sidebar,expression:"preferenceForm.sidebar"}],staticClass:"custom-select col-12",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.preferenceForm,"sidebar",e.target.multiple?s:s[0])}}},t._l(t.sidebar,(function(e){return s("option",{domProps:{value:e.value}},[t._v("\n "+t._s(e.text)+"\n ")])})),0),t._v(" "),s("show-error",{attrs:{"form-name":t.preferenceForm,"prop-name":"sidebar"}})],1)]),t._v(" "),s("div",{staticClass:"col-12 col-sm-6"},[s("div",{staticClass:"form-group"},[s("label",{attrs:{for:""}},[t._v(t._s(t.trans("configuration.locale")))]),t._v(" "),s("select",{directives:[{name:"model",rawName:"v-model",value:t.preferenceForm.locale,expression:"preferenceForm.locale"}],staticClass:"custom-select col-12",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.preferenceForm,"locale",e.target.multiple?s:s[0])}}},t._l(t.locales,(function(e){return s("option",{domProps:{value:e.value}},[t._v("\n "+t._s(e.text)+"\n ")])})),0),t._v(" "),s("show-error",{attrs:{"form-name":t.preferenceForm,"prop-name":"sidebar"}})],1)])]),t._v(" "),s("button",{staticClass:"btn btn-info waves-effect waves-light pull-right m-t-10",attrs:{type:"submit"}},[t._v(t._s(t.trans("general.save")))])])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"fas text-themecolor fa-birthday-cake"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"fas text-themecolor fa-heartbeat"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"fas text-themecolor fa-gift"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"fas text-themecolor fa-book"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"fas text-themecolor fa-book-open"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"fas text-themecolor fa-swatchbook"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-danger btn-sm right-sidebar-toggle pull-right "},[e("i",{staticClass:"fas fa-times"})])}],!1,null,null,null));e.default=f.exports},GqiS:function(t,e,s){"use strict";var a=s("rath"),n={props:{articles:{type:Array,default:function(){return[]}},type:String,bodyClass:String,viewMoreLink:String,source:{type:String,default:"dashboard"}},components:{ArticleDetail:a.a},data:function(){return{showArticleModal:!1}},methods:{showArticle:function(t){this.showArticleUuid=t.uuid,this.showArticleModal=!0}},filters:{momentDateTime:function(t){return helper.formatDateTime(t)},moment:function(t){return helper.formatDate(t)},momentTime:function(t){return helper.formatTime(t)}}},r=s("KHd+"),o=Object(r.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card widget articles-widget"},[s("div",{class:["card-body",t.bodyClass]},[s("h4",{staticClass:"card-title"},[t.type?[t._v(t._s(t.type))]:[t._v(t._s(t.trans("post.recent_articles")))],t._v(" "),t.viewMoreLink?s("router-link",{staticClass:"btn btn-default btn-sm",attrs:{to:t.viewMoreLink}},[t._v(t._s(t.trans("general.view_more")))]):t._e()],2),t._v(" "),t._l(t.articles,(function(e){return s("a",{staticClass:"list-item",on:{click:function(s){return s.preventDefault(),t.showArticle(e)}}},[s("h5",[t._v(t._s(e.title))]),t._v(" "),s("div",{staticClass:"meta-data"},[s("span",{staticClass:"type"},[t._v(t._s(e.article_type.name))]),t._v(" "),s("span",{staticClass:"date"},[s("i",{staticClass:"far fa-clock"}),t._v(" "+t._s(t._f("moment")(e.date_of_article)))])])])}))],2),t._v(" "),t.showArticleModal?s("article-detail",{attrs:{uuid:t.showArticleUuid,url:"/frontend/article/"+t.showArticleUuid+"/detail"},on:{close:function(e){t.showArticleModal=!1}}}):t._e()],1)}),[],!1,null,null,null);e.a=o.exports},Nlbf:function(t,e,s){"use strict";var a=s("XpwL");s.n(a).a},Ra8w:function(t,e,s){"use strict";var a=s("3U2P");s.n(a).a},SZGA:function(t,e,s){"use strict";var a=s("zbt6");s.n(a).a},XpwL:function(t,e,s){var a=s("gwSH");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,n);a.locals&&(t.exports=a.locals)},gwSH:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,".shw-rside {\n width: 500px;\n}\n.product-intro h2 {\n margin-top: 10px;\n margin-bottom: 20px;\n color: #202020;\n font-size: 36px;\n font-weight: 500;\n line-height: 1.12;\n letter-spacing: -1px;\n font-style: normal;\n}\n.product-intro h2 .special {\n color: #e40b5b;\n}\n.product-intro h3 {\n color: #202020;\n font-size: 24px;\n margin-top: 10px;\n margin-bottom: 20px;\n font-weight: 500;\n line-height: 1.3;\n letter-spacing: 0px;\n font-style: normal;\n}\n.product-intro p {\n color: #202020;\n font-size: 18px;\n margin-top: 10px;\n margin-bottom: 20px;\n font-weight: 500;\n line-height: 1.5;\n letter-spacing: 0px;\n font-style: normal;\n}",""])},j2xy:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.fc-row .fc-content-skeleton tbody td.fc-event-container {\n\tpadding: 0 10px;\n}\n.fc-day-grid-event {\n\tborder-radius: 5px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n.fc-day-grid-event .fc-content {\n white-space: nowrap; \n overflow: hidden;\n text-overflow: ellipsis;\n}\n",""])},mWrr:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.completed{\n\ttext-decoration: line-through;\n}\n",""])},rath:function(t,e,s){"use strict";var a={components:{},props:["uuid","url"],mounted:function(){this.uuid&&this.get()},data:function(){return{article:[],attachments:[]}},methods:{get:function(){var t=this,e=this.$loading.show(),s=this.url?"/api"+this.url:"/api/article/"+this.uuid;axios.get(s).then((function(s){t.article=s.article,t.attachments=s.attachments,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getEmployeeName:function(t){return helper.getEmployeeName(t)},getEmployeeDesignation:function(t,e){return helper.getEmployeeDesignation(t,e)}},computed:{authToken:function(){return helper.getAuthToken()}},filters:{momentDateTime:function(t){return helper.formatDateTime(t)},moment:function(t){return helper.formatDate(t)}}},n=s("KHd+"),r=Object(n.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("transition",{attrs:{name:"modal"}},[s("div",{staticClass:"modal-mask"},[s("div",{staticClass:"modal-wrapper"},[s("div",{staticClass:"modal-container modal-lg"},[t.article.id?s("div",{staticClass:"modal-header"},[t._t("header",[s("span",[t._v(t._s(t.article.title)+" "),t.article.is_public?s("span",{staticClass:"label label-success"},[t._v(t._s(t.trans("post.article_public")))]):t._e()]),t._v(" "),s("span",{staticClass:"float-right pointer",on:{click:function(e){return t.$emit("close")}}},[t._v("x")])])],2):t._e(),t._v(" "),t.article.id?s("div",{staticClass:"modal-body"},[t._t("body",[s("h6",{staticClass:"card-title"},[t._v("\n "+t._s(t.trans("post.date_of_article"))+": "+t._s(t._f("moment")(t.article.date_of_article))+" \n "),t.article.user?s("p",{staticClass:"pull-right"},[s("strong",[t._v(t._s(t.trans("post.article_posted_by"))+":")]),t._v(" "+t._s(t.getEmployeeName(t.article.user.employee))+" "+t._s(t.getEmployeeDesignation(t.article.user.employee,t.article.date_of_article))+"\n ")]):t._e()]),t._v(" "),s("div",{staticClass:"m-t-20 html-view",domProps:{innerHTML:t._s(t.article.description)}}),t._v(" "),t.attachments.length?s("div",[s("ul",{staticClass:"m-t-10 upload-file-list"},t._l(t.attachments,(function(e){return s("li",{staticClass:"upload-file-list-item"},[s("a",{staticClass:"no-link-color",attrs:{href:"/post/article/"+t.article.uuid+"/attachment/"+e.uuid+"/download?token="+t.authToken}},[s("i",{class:["file-icon","fas","fa-lg",e.file_info.icon]}),t._v(" "),s("span",{staticClass:"upload-file-list-item-size"},[t._v(t._s(e.file_info.size))]),t._v(" "+t._s(e.user_filename))])])})),0)]):t._e(),t._v(" "),s("hr"),t._v(" "),s("p",[s("i",{staticClass:"far fa-clock"}),t._v(" "),s("small",[t._v(t._s(t.trans("general.created_at"))+" "+t._s(t._f("momentDateTime")(t.article.created_at)))]),t._v(" "),s("span",{staticClass:"pull-right"},[s("i",{staticClass:"far fa-clock"}),t._v(" "),s("small",[t._v(t._s(t.trans("general.updated_at"))+" "+t._s(t._f("momentDateTime")(t.article.updated_at)))])])])])],2):t._e()])])])])}),[],!1,null,null,null);e.a=r.exports},"vX/d":function(t,e,s){"use strict";var a=s("zk3C"),n={props:{events:{type:Array,default:function(){return[]}},bodyClass:String,viewMoreLink:String,source:{type:String,default:"dashboard"}},components:{EventDetail:a.a},data:function(){return{showEventModal:!1}},methods:{showEvent:function(t){this.showEventUuid=t.uuid,this.showEventModal=!0}},filters:{momentDateTime:function(t){return helper.formatDateTime(t)},moment:function(t){return helper.formatDate(t)},momentTime:function(t){return helper.formatTime(t)}}},r=s("KHd+"),o=Object(r.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card widget events-widget"},[s("div",{class:["card-body",t.bodyClass]},[s("h4",{staticClass:"card-title"},[t._v("\n "+t._s(t.trans("calendar.upcoming_events"))+"\n "),t.viewMoreLink?s("router-link",{staticClass:"btn btn-default btn-sm",attrs:{to:t.viewMoreLink}},[t._v(t._s(t.trans("general.view_more")))]):t._e()],1),t._v(" "),t._l(t.events,(function(e){return s("a",{staticClass:"list-item",on:{click:function(s){return s.preventDefault(),t.showEvent(e)}}},[s("h5",[t._v(t._s(e.title))]),t._v(" "),s("div",{staticClass:"meta-data"},[s("span",{staticClass:"type"},[t._v(t._s(e.event_type.name))]),t._v(" "),s("span",{staticClass:"location"},[s("i",{staticClass:"fas fa-map-marker-alt"}),t._v(" "+t._s(e.venue))]),t._v(" "),s("span",{staticClass:"date"},[s("i",{staticClass:"far fa-clock"}),t._v(" "+t._s(t._f("moment")(e.start_date))+" "),e.start_time?[t._v(t._s(t._f("momentTime")(e.start_time)))]:t._e(),t._v(" "+t._s(t.trans("general.to"))+" "+t._s(t._f("moment")(e.end_date))+" "),e.end_time?[t._v(t._s(t._f("momentTime")(e.end_time)))]:t._e()],2)])])}))],2),t._v(" "),t.showEventModal?s("event-detail",{attrs:{uuid:t.showEventUuid,url:"/frontend/event/"+t.showEventUuid+"/detail"},on:{close:function(e){t.showEventModal=!1}}}):t._e()],1)}),[],!1,null,null,null);e.a=o.exports},zbt6:function(t,e,s){var a=s("mWrr");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,n);a.locals&&(t.exports=a.locals)},zk3C:function(t,e,s){"use strict";var a={components:{},props:["uuid","url"],mounted:function(){this.uuid&&this.get()},data:function(){return{event:[],attachments:[]}},methods:{get:function(){var t=this,e=this.$loading.show(),s=this.url?"/api"+this.url:"/api/event/"+this.uuid;axios.get(s).then((function(s){t.event=s.event,t.attachments=s.attachments,e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getEmployeeName:function(t){return helper.getEmployeeName(t)},getEmployeeDesignationOnDate:function(t,e){return helper.getEmployeeDesignationOnDate(t,e)}},computed:{authToken:function(){return helper.getAuthToken()}},filters:{momentDateTime:function(t){return helper.formatDateTime(t)},moment:function(t){return helper.formatDate(t)},momentTime:function(t){return helper.formatTime(t)}}},n=s("KHd+"),r=Object(n.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("transition",{attrs:{name:"modal"}},[s("div",{staticClass:"modal-mask"},[s("div",{staticClass:"modal-wrapper"},[t.event.id?s("div",{staticClass:"modal-container modal-lg"},[s("div",{staticClass:"modal-header"},[t._t("header",[s("span",[t._v(t._s(t.event.title))]),t._v(" "),s("span",{staticClass:"float-right pointer",on:{click:function(e){return t.$emit("close")}}},[t._v("x")])])],2),t._v(" "),s("div",{staticClass:"modal-body"},[t._t("body",[s("h6",{staticClass:"card-title"},[s("strong",[t._v(t._s(t.trans("calendar.event_duration"))+":")]),t._v(" "+t._s(t._f("moment")(t.event.start_date))+" "),t.event.start_time?s("span",[t._v(t._s(t._f("momentTime")(t.event.start_time)))]):t._e(),t._v(" "+t._s(t.trans("general.to"))+" "+t._s(t._f("moment")(t.event.end_date))+" "),t.event.end_time?s("span",[t._v(t._s(t._f("momentTime")(t.event.end_time)))]):t._e(),t._v(" "),s("br"),s("br"),t._v(" "),s("strong",[t._v(t._s(t.trans("calendar.event_venue"))+":")]),t._v(" "+t._s(t.event.venue)),s("br"),s("br"),t._v(" "),s("strong",[t._v(t._s(t.trans("calendar.event_audience"))+":")]),t._v(" "),"everyone"==t.event.audience?s("span",[t._v(t._s(t.trans("calendar.event_for_everyone")))]):t._e(),t._v(" "),"selected_course"==t.event.audience?[t._v("\n "+t._s(t.trans("academic.course"))+" "),s("br"),t._v(" "),s("ul",{staticStyle:{"list-style":"none"}},[t._l(t.event.courses,(function(e){return[s("li",[s("i",{staticClass:"fas fa-check"}),t._v(" "+t._s(e.name+" ("+e.course_group.name+")"))])]}))],2)]:"selected_batch"==t.event.audience?[t._v("\n "+t._s(t.trans("academic.batch"))+" "),s("br"),t._v(" "),s("ul",{staticStyle:{"list-style":"none"}},[t._l(t.event.batches,(function(e){return[s("li",[s("i",{staticClass:"fas fa-check"}),t._v(" "+t._s(e.name+" ("+e.course.name+")"))])]}))],2)]:"selected_department"==t.event.audience?[t._v("\n "+t._s(t.trans("employee.department"))+" "),s("br"),t._v(" "),s("ul",{staticStyle:{"list-style":"none"}},[t._l(t.event.departments,(function(e){return[s("li",[s("i",{staticClass:"fas fa-check"}),t._v(" "+t._s(e.name))])]}))],2)]:"selected_employee_category"==t.event.audience?[t._v("\n "+t._s(t.trans("employee.category"))+" "),s("br"),t._v(" "),s("ul",{staticStyle:{"list-style":"none"}},[t._l(t.event.employee_categorys,(function(e){return[s("li",[s("i",{staticClass:"fas fa-check"}),t._v(" "+t._s(e.name))])]}))],2)]:t._e(),t._v(" "),t.event.user?s("p",{staticClass:"pull-right"},[s("strong",[t._v(t._s(t.trans("calendar.event_posted_by"))+":")]),t._v(" "+t._s(t.getEmployeeName(t.event.user.employee))+" "+t._s(t.getEmployeeDesignationOnDate(t.event.user.employee,t.event.start_date))+"\n ")]):t._e()],2),t._v(" "),s("div",{staticClass:"m-t-20 html-view",domProps:{innerHTML:t._s(t.event.description)}}),t._v(" "),t.attachments.length?s("div",[s("ul",{staticClass:"m-t-10 upload-file-list"},t._l(t.attachments,(function(e){return s("li",{staticClass:"upload-file-list-item"},[s("a",{staticClass:"no-link-color",attrs:{href:"/calendar/event/"+t.event.uuid+"/attachment/"+e.uuid+"/download?token="+t.authToken}},[s("i",{class:["file-icon","fas","fa-lg",e.file_info.icon]}),t._v(" "),s("span",{staticClass:"upload-file-list-item-size"},[t._v(t._s(e.file_info.size))]),t._v(" "+t._s(e.user_filename))])])})),0)]):t._e(),t._v(" "),s("hr"),t._v(" "),s("p",[s("i",{staticClass:"far fa-clock"}),t._v(" "),s("small",[t._v(t._s(t.trans("general.created_at"))+" "+t._s(t._f("momentDateTime")(t.event.created_at)))]),t._v(" "),s("span",{staticClass:"pull-right"},[s("i",{staticClass:"far fa-clock"}),t._v(" "),s("small",[t._v(t._s(t.trans("general.updated_at"))+" "+t._s(t._f("momentDateTime")(t.event.updated_at)))])])])])],2)]):t._e()])])])}),[],!1,null,null,null);e.a=r.exports}}]); //# sourceMappingURL=dashboard.js.map?id=de877250ea429b3b7ac7
Save
cmd:
run