1"use strict";(self["webpackChunkaura_admin"]=self["webpackChunkaura_admin"]||[]).push([[8731],{8731:function(t,e,s){s.r(e),s.d(e,{default:function(){return f}});s(2010);var a=function(){var t=this,e=t._self._c;return e("v-container",{staticClass:"pa-0 ma-0",attrs:{fluid:""}},[e("Snakebar",{attrs:{message:t.snakeBarMessage,isShow:t.isSnakeBarVisible,color:t.snakeBarColor,timeout:t.snakeBarTimeOut},on:{"update:isShow":function(e){t.isSnakeBarVisible=e},"update:is-show":function(e){t.isSnakeBarVisible=e}}}),e("v-row",{staticClass:"my-0 pa-0 px-3"},[e("v-toolbar",{staticClass:"elevation-0",staticStyle:{"border-radius":"12px","background-color":"#a9c9ff","background-image":"linear-gradient(76deg, #deeaff 31%, #ffbbec 420%)"}},[e("v-toolbar-title",{staticClass:"google-font mr-3"},[t._v("Features Events")]),e("v-spacer"),"Super Admin"==t.role||"Admin"==t.role?e("AddFeatureEvent",{on:{show:t.showSnakeBar}}):t._e(),"Super Admin"==t.role||"Admin"==t.role?e("ClearFeaturedEvents",{on:{show:t.showSnakeBar}}):t._e()],1)],1),t.loader?e("v-row",{staticClass:"my-0 pa-0"},[e("v-col",{staticClass:"my-0",attrs:{md:"3",lg:"3",sm:"6",cols:"12"}},[e("div",{staticClass:"lightModeCard pa-5 text-center",staticStyle:{"border-left":"8px solid #a9c9ff"}},[e("v-progress-circular",{attrs:{width:5,size:50,color:"#649CFD",indeterminate:""}})],1)])],1):t.featureEvendsID.length>0?e("v-row",{staticClass:"my-0 pa-0"},t._l(t.featureEvendsData,(function(s,a){return e("v-col",{key:a,staticClass:"my-0",attrs:{md:"3",lg:"3",sm:"3",cols:"6"}},[e("div",{staticClass:"pa-2 ma-0 lightModeCard",staticStyle:{cursor:"pointer","border-left":"8px solid #a9c9ff"},on:{click:function(e){return t.goToEventDetails(s.id)}}},[e("p",{staticClass:"google-font ma-0 mt-0",staticStyle:{"font-size":"120%"}},[t._v(" "+t._s(t._f("summary")(s.name,8))+" ")]),e("p",{staticClass:"google-font mt-0 mb-0",staticStyle:{"font-size":"90%"}},[t._v(" "+t._s(s.date)+" ")]),e("p",{staticClass:"google-font mt-0 mb-0",staticStyle:{"font-size":"90%"}},[t._v(" "+t._s(t._f("summary")(s.venue.name,15))+" ")])])])})),1):0!=t.featureEvendsID.length||t.showNetworkError?t._e():e("v-row",{staticClass:"my-0 pa-0"},[e("v-col",{staticClass:"my-0 text-center",attrs:{md:"3",lg:"3",sm:"6",cols:"12"}},[e("div",{staticClass:"lightModeCard pa-3",staticStyle:{"border-left":"8px solid #a9c9ff"}},[e("img",{staticStyle:{width:"20%","text-align":"center"},attrs:{src:s(5954)}}),e("p",{staticClass:"google-font mt-3"},[t._v("Feature Events not Found")])])])],1),t.showNetworkError?e("v-row",{staticClass:"my-0 pa-0"},[e("v-col",{staticClass:"my-0 text-center",attrs:{md:"3",lg:"3",sm:"6",cols:"12"}},[e("div",{staticClass:"lightModeCard pa-3",staticStyle:{"border-left":"8px solid #a9c9ff"}},[e("img",{staticStyle:{width:"20%","text-align":"center"},attrs:{src:s(5954)}}),e("p",{staticClass:"google-font mt-3"},[t._v("Network Problem")]),e("p",{staticClass:"google-font mt-0"},[t._v("Failed to fetch")])])])],1):t._e()],1)},r=[],o=s(8643),n=(s(2062),s(4114),s(6099),s(7495),s(7764),s(5746),s(3500),s(2953),s(806)),i=s(5353),l={name:"FeatureEvents",components:{AddFeatureEvent:function(){return s.e(8586).then(s.bind(s,8586))},Snakebar:function(){return s.e(7369).then(s.bind(s,7369))},ClearFeaturedEvents:function(){return s.e(3480).then(s.bind(s,3480))}},data:function(){return{search:"",snakeBarMessage:"",isSnakeBarVisible:!1,snakeBarColor:"green",snakeBarTimeOut:5e3,loader:!0,showNetworkError:!1,featureEvendsID:[],featureEvends:[],eventsData:[],featureEvendsData:[]}},computed:(0,o.A)({},(0,i.aH)(["role"])),mounted:function(){this.getFeaturesEventID()},methods:{showSnakeBar:function(t){this.snakeBarMessage=t,this.isSnakeBarVisible=!0,this.getFeaturesEventID()},goToEventDetails:function(t){this.$router.push("/events/"+t)},getFeaturesEventID:function(){var t=this;this.loader=!0,this.showNetworkError=!1,n.A.firestore.collection("featureevents").doc("data").get().then((function(e){e.exists?(t.featureEvendsID=e.data().eventid,t.GetAllCustomEvents()):t.loader=!1})).catch((function(e){t.loader=!1,t.showNetworkError=!0,t.$emit("show","Error getting documents"),console.log("Error getting documents",e)}))},openCloseSearch:function(){this.isSearch=!this.isSearch,this.search=""},GetAllCustomEvents:function(t){var e=this;this.showNetworkError=!1,this.loader=!0,this.eventsData=[],this.featureEvendsData=[],n.A.firestore.collection("events").get().then((function(t){t.forEach((function(t){e.eventsData.push(t.data())})),e.loader=!1,e.featureEvendsID.map((function(t){e.eventsData.map((function(s){s.id==t&&e.featureEvendsData.push(s)}))}))}
1)).catch((function(t){e.loader=!1,e.showNetworkError=!0,console.log("Error getting documents",t)}))}},filters:{summary:function(t,e){return t.length>e?t.substring(0,e)+"...":t}}},c=l,u=s(1656),d=(0,u.A)(c,a,r,!1,null,null,null),f=d.exports},5954:function(t,e,s){t.exports=s.p+"img/DataNotFound.20b2b7b2.svg"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.