/home/techb158/ileadtechnology.com/SSM/public/js/pages/themes
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/pages/themes/home.js (17404B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[282],{"5Nun":function(t,e,s){"use strict";var a=s("GqiS"),n={props:{articles:{type:Object,default:function(){return{}}},bodyClass:String},components:{ArticlesList:a.a},data:function(){return{showEventModal:!1}},methods:{getClass:function(t){return this.articles.length>1?this.articles.length>2?"col-12 col-sm-6 col-md-4":"col-12 col-sm-6":"col"}}},i=s("KHd+"),l=Object(i.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row p-y-80"},[s("div",{staticClass:"col-md-12"},[s("div",{staticClass:"fix-width fix-width-mobile"},[s("div",{staticClass:"row"},[t._l(t.articles,(function(e,a){return[e.length?s("div",{class:t.getClass(e)},[s("articles-list",{attrs:{type:a,articles:e}})],1):t._e()]}))],2)])])])}),[],!1,null,null,null);e.a=l.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)}}},i=s("KHd+"),l=Object(i.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=l.exports},HKUp:function(t,e,s){"use strict";s.r(e);var a=s("vX/d"),n=s("iIEQ"),i=s("5Nun"),l={components:{EventsList:a.a,RowBlocks:n.a,RowArticles:i.a},data:function(){return{showEventModal:!1,page:{},events:[],blocks:[],articles:{}}},mounted:function(){this.getData(),helper.showDemoNotification(["frontend_home"])},methods:{getData:function(){var t=this,e=this.$loading.show();axios.get("/api/frontend/page/home/content").then((function(s){t.page=s.page,t.events=s.events,t.blocks=s.blocks,t.articles=s.articles,e.hide()})).catch((function(s){e.hide(),helper.showErrorMsg(s),422==s.response.status&&t.$router.push("/login")}))}}},r=(s("tTZv"),s("KHd+")),o=Object(r.a)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.page.id?s("div",{staticClass:"main-banner"},[s("div",{staticClass:"carousel slide",attrs:{id:"sliderCarousel","data-ride":"carousel"}},[s("ol",{staticClass:"carousel-indicators"},[t._l(t.page.options.sliders,(function(e,a){return[s("li",{class:[t.$first(e,t.page.options.sliders)?"active":""],attrs:{"data-target":"#sliderCarousel","data-slide-to":a}})]}))],2),t._v(" "),t.page.options.has_slider?s("div",{staticClass:"carousel-inner"},[t._l(t.page.options.sliders,(function(e){return[s("div",{class:["carousel-item",t.$first(e,t.page.options.sliders)?"active":""]},[s("img",{staticClass:"d-block w-100",attrs:{src:e.image,alt:e.title}}),t._v(" "),s("div",{staticClass:"carousel-caption d-none d-md-block"},[s("h2",[t._v(t._s(e.title))]),t._v(" "),s("p",[t._v(t._s(e.description))])])])]}))],2):t._e(),t._v(" "),t._m(0),t._v(" "),t._m(1)])]):t._e(),t._v(" "),s("div",{staticClass:"fix-width fix-width-mobile p-t-80"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-6 col-lg-7"},[s("h2",{staticClass:"display-7"},[t._v(t._s(t.page.title))]),t._v(" "),s("div",{staticClass:"page-body",domProps:{innerHTML:t._s(t.page.body)}})]),t._v(" "),s("div",{staticClass:"col-12 col-md-6 col-lg-5"},[t.events.length?s("events-list",{staticClass:"frontend-widget m-b-0",attrs:{events:t.events,"view-more-link":"/events"}}):t._e()],1)])]),t._v(" "),t.page.options?[t.page.options.show_blocks?s("row-blocks",{attrs:{blocks:t.blocks}}):t._e(),t._v(" "),t.page.options.show_latest_articles?s("row-articles",{attrs:{articles:t.articles}}):t._e()]:t._e()],2)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("a",{staticClass:"carousel-control-prev",attrs:{href:"#sliderCarousel",role:"button","data-slide":"prev"}},[e("span",{staticClass:"carousel-control-prev-icon",attrs:{"aria-hidden":"true"}}),this._v(" "),e("span",{staticClass:"sr-only"},[this._v("Previous")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("a",{staticClass:"carousel-control-next",attrs:{href:"#sliderCarousel",role:"button","data-slide":"next"}},[e("span",{staticClass:"carousel-control-next-icon",attrs:{"aria-hidden":"true"}}),this._v(" "),e("span",{staticClass:"sr-only"},[this._v("Next")])])}],!1,null,null,null);e.default=o.exports},Ny4W:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,".frontend-widget {\n background: #f5f6f7;\n border: 1px solid #eaebec;\n border-radius: 10px;\n padding: 20px 5px;\n}\n.frontend-widget.card.widget .card-title {\n padding: 0 0.5rem 0.5rem;\n}",""])},WzTq:function(t,e,s){var a=s("Ny4W");"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)},iIEQ:function(t,e,s){"use strict";var a={props:{block:{type:Object,default:function(){return{}}}}},n=s("KHd+"),i=Object(n.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card featured-block"},[s("div",{staticClass:"featured"},[t.block.featured_image?s("img",{attrs:{src:"/"+t.block.featured_image,alt:t.block.title}}):s("i",{staticClass:"fas fa-image"})]),t._v(" "),s("div",{staticClass:"card-body p-4"},[s("h3",{staticClass:"card-title"},[t._v(t._s(t.block.title))]),t._v(" "),s("p",[t._v(t._s(t.block.body))]),t._v(" "),t.block.menu?s("router-link",{staticClass:"btn btn-info",attrs:{to:t.block.menu.options&&t.block.menu.options.is_default?"/"+t.block.menu.slug:"/page/"+t.block.menu.slug}},[t._v(t._s(t.trans("general.view_more")))]):t._e(),t._v(" "),t.block.url?s("a",{staticClass:"btn btn-info",attrs:{href:t.block.url,target:"_blank"}},[t._v(t._s(t.trans("general.view_more")))]):t._e()],1)])}),[],!1,null,null,null).exports,l={props:{blocks:{type:Array,default:function(){return[]}},bodyClass:String},components:{FeaturedBlock:i},computed:{getClass:function(){return this.blocks.length>1?this.blocks.length>2?"col-12 col-sm-6 col-md-4":"col-12 col-sm-6":"col"}}},r=Object(n.a)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row light-grey m-t-80 p-t-80 p-b-60"},[s("div",{staticClass:"col-md-12"},[s("div",{staticClass:"fix-width fix-width-mobile"},[s("div",{staticClass:"row justify-content-center"},t._l(t.blocks,(function(e){return t.blocks.length?s("div",{class:t.getClass},[s("featured-block",{attrs:{block:e}})],1):t._e()})),0)])])])}),[],!1,null,null,null);e.a=r.exports},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+"),i=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=i.exports},tTZv:function(t,e,s){"use strict";var a=s("WzTq");s.n(a).a},"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)}}},i=s("KHd+"),l=Object(i.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=l.exports},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+"),i=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=i.exports}}]);
//# sourceMappingURL=home.js.map?id=87b1d67e281a289bef52