1"use strict";(self["webpackChunkypod_fed"]=self["webpackChunkypod_fed"]||[]).push([[4538],{4538:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var s=function(){var t=this,e=t._self._c;return e("v-flex",[t.canViewEvents?e("upcoming-event"):t._e(),t.isVisible?e("v-flex",{attrs:{xs12:""}},[!t.isAllNetworks&&t.canViewRelatedCommunities?e("related-networks",{staticClass:"panelBlock",attrs:{"can-view-sub-networks":!t.isSubNetwork}}):t._e(),t.isAllNetworks?t._e():e("community-officers-list",{staticClass:"panelBlock"})],1):t._e()],1)},r=[],i=n(33595),o=n(21001),a=n(446),c=n(29607),u=n(28781),m=n(95353),l=n(91923),v=n(24887);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,s)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach(function(e){d(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=y(t,"string");return"symbol"==f(e)?e:e+""}function y(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=f(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var E={name:"NetworkRightSidebar",components:{CommunityOfficersList:i.A,UpcomingEvent:o.A,RelatedNetworks:u.A},data:function(){return{dialogState:{isVisible:!1},hasOfficers:!1,upcomingEventsConstant:c.ez}},computed:g(g(g({},(0,m.L8)({ypoNetworks:"network/".concat([a.k.ypoNetworks]),communityInfo:"chapter/".concat([a.k.communityInfo]),usersCommunitiesList:"chapter/".concat(a.k.usersCommunitiesList)})),(0,m.i0)({getSubNetworksList:"network/".concat(l.g.getSubNetworksData)})),{},{isVisible:function(){return this.$route.params.communityId&&this.usersCommunitiesList},viewAllMembers:function(){var t=this;return this.usersCommunitiesList&&this.usersCommunitiesList.some(function(e){return e.communityId===t.$route.params.communityId})||this.communityInfo&&this.communityInfo.isAdmin||this.communityInfo&&"public"===this.communityInfo.category.toLowerCase()},canViewEvents:function(){return this.communityInfo&&this.communityInfo.communityId===this.$route.params.communityId&&this.communityInfo.userAccess&&this.communityInfo.userAccess.canViewEvents},canViewRelatedCommunities:function(){return this.communityInfo&&this.communityInfo.communityId===this.$route.params.communityId&&(this.communityInfo.isAdmin||this.communityInfo.isMember||this.communityInfo.userAccess&&this.communityInfo.userAccess.canViewRelatedCommunities)},isSubNetwork:function(){var t=this; 2//!checking if current item exists in YpoNetworks if not that will be a subNetwork 3return this.ypoNetworks&&!this.ypoNetworks.some(function(e){return e.communityId===t.$route.params.communityId})},isAllNetworks:function(){var t=this;return this.usersCommunitiesList&&this.usersCommunitiesList.some(function(e){return e.communityId===t.$route.params.communityId&&e.name.toLowerCase()===v.dn.YOUR_NETWORKS_CONSOLIDATED_LOWER_CASE})}})},_=E,b=n(81656),C=(0,b.A)(_,s,r,!1,null,"f4fe302a",null),w=C.exports},21001:function(t,e,n){n.d(e,{A:function(){return U}});var s=function(){var t=this,e=t._self._c;return t.isVisibleEventsPanel?e("v-card",{staticClass:"panelBlock"},[e("v-flex",{attrs:{tag:"h2","data-qe-id":"upcoming_events"}},[t._v(t._s(t.title))]),e("v-flex",{staticClass:"upcoming-events"},[t.isVisibleEventsPanel?e("status-overlay",{attrs:{action:t.loadingAction}}):t._e(),e("v-flex",t._l(t.upcomingEventsForDisplay,function(n,s){return e("v-layout",{key:s,staticClass:"time_block",attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"date",attrs:{xs3:""}},[e("v-flex",{attrs:{tag:"span"}},[e("span",[t._v(t._s(t.getDayName(n.startDateTime)))]),t.eventEndDay(n)?e("span",[t._v(t._s(" - "+t.eventEndDay(n)))]):t._e()]),e("v-flex",{attrs:{tag:"strong"}},[t._v(t._s(t.getDayOfMonth(n.startDateTime)))]),e("v-flex",{attrs:{tag:"small"}},[t._v(t._s(t.getMonthYearTimeForEvents(n.startDateTime,n.endDateTime)))])],1
3),e("v-flex",{attrs:{xs9:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"desc",attrs:{xs9:""}},[e("a",{staticClass:"no-decoration",attrs:{"data-qe-id":"upcoming-event_item_".concat(s,"_event-name_link")},on:{click:function(e){return t.goToEvent(n.eventUrl)}}},[t._v(" "+t._s(n.eventName)+" ")])]),e("v-flex",{attrs:{xs3:"","text-xs-center":""}},[e("v-avatar",{attrs:{size:"45"}},[e("img",{attrs:{src:t.sizeFormattedImageUrl(n.fallbackEventImageURL,100,100),alt:""}})])],1)],1),e("v-layout",{staticClass:"member__details",attrs:{row:"",wrap:""}},[n.registeredUsers&&n.registeredUsers.length?e("v-flex",{attrs:{xs5:"","text-truncate":""}},[e("v-avatar",{attrs:{size:"25"}},[e("img",{attrs:{src:t.sizeFormattedImageUrl(n.registeredUsers[0].userProfileImageUrl,50,50),onerror:t.imageErrorFallback(t.sizeFormattedImageUrl(n.registeredUsers[0].fallbackUserProfileImageUrl,50,50))}})]),e("v-flex",{attrs:{tag:"span"}},[t._v(t._s(n.registeredUsers[0].preferredName))])],1):t._e(),n.registeredUsers&&n.registeredUsers.length>1?e("v-flex",{attrs:{xs5:"","text-truncate":""}},[e("v-avatar",{attrs:{size:"25"}},[e("img",{attrs:{src:t.sizeFormattedImageUrl(n.registeredUsers[1].userProfileImageUrl,50,50),onerror:t.imageErrorFallback(t.sizeFormattedImageUrl(n.registeredUsers[1].fallbackUserProfileImageUrl,50,50))}})]),e("v-flex",{attrs:{tag:"span"}},[t._v(t._s(n.registeredUsers[1].preferredName))])],1):t._e(),e("v-flex",{attrs:{xs2:"","text-truncate":""}},[n.registrationCount-2>0?e("v-btn",{attrs:{flat:"",icon:""}},[t._v("+"+t._s(n.registrationCount-2))]):t._e()],1)],1),e("v-layout",{staticClass:"action-btns",attrs:{row:"",wrap:""}},[n.isRegistered?e("v-flex",[e("v-btn",{staticClass:"active",attrs:{small:"","data-qe-id":"upcoming-event_item_".concat(s,"_registered_btn")}},[e("i",{staticClass:"fas fa-check-circle"}),t._v(" "+t._s(t.upcomingEventsConstant.REGISTERED)+" ")])],1):e("v-flex",[e("a",{staticClass:"no-decoration action-link",attrs:{small:"","data-qe-id":"upcoming-event_item_".concat(s,"_register-event_link")},on:{click:function(e){return t.goToEvent(n.registerUrl)}}},[t._v(" "+t._s(t.upcomingEventsConstant.REGISTER)+" ")])]),n.isRegistered?e("v-flex",{attrs:{small:""}},[e("a",{staticClass:"no-decoration action-link",attrs:{"data-qe-id":"upcoming-event_item_".concat(s,"_edit-registration_link")},on:{click:function(e){return t.goToEvent(n.eventUrl)}}},[t._v(" "+t._s(t.upcomingEventsConstant.EDIT_REGISTERED)+" ")])]):t._e()],1)],1),t.isCommunityAdmin&&t.isChapterPage&&t.currentCommunityView===t.userRoles.ADMIN?e("v-layout",{staticClass:"status",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{md6:""}},[e("span",{class:["status__".concat(n.eventStatus)]},[t._v(t._s(n.eventStatus))])]),e("v-flex",{attrs:{md6:"","text-xs-right":""}},[e("v-btn",{staticClass:"primary_btn small ma-0",attrs:{"data-qe-id":"upcoming-event_item_".concat(s,"_manage-event_btn")},on:{click:function(e){return t.openLink("".concat(t.appCommonConstants.MANAGE_EVENT_GOTO_LINK).concat(n.id))}}},[t._v(" "+t._s(t.appCommonConstants.MANAGE_EVENT)+" ")])],1)],1):t._e()],1)}),1),e("v-layout",{staticClass:"status-more upcoming-events__create-new-event",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{"text-xs-right":""}},[e("v-btn",{staticClass:"primary_btn small transparent",attrs:{"data-qe-id":"upcoming-event_see-more_btn"},on:{click:function(e){return t.seeMore()}}},[t._v(" "+t._s(t.appCommonConstants.SEE_MORE)+" ")])],1)],1)],1)],1):t._e()},r=[],i=n(95353),o=n(29607),a=n(91923),c=n(446),u=n(68734),m=n(71805),l=n(68857),v=n(10886),f=n(76526),p=n(2448),g=n(82624),d=n(84196),h=n(92833),y=n(24887),E=n(99942);function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,s)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
3e%2?b(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function w(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){var e=I(t,"string");return"symbol"==_(e)?e:e+""}function I(t,e){if("object"!=_(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=_(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var T={name:"UpcomingEvent",components:{StatusOverlay:l.A},props:{isConsiderTheseEventGadget:{type:Boolean,required:!1,default:!1}},data:function(){return{dialogState:{isVisible:!1},routerNames:m.sF,userRoles:m.H0,isSaved:!0,isVisibleEventsPanel:!0,getDayName:u.AD,getDayOfMonth:u.es,getMonthYearTime:u.Bl,getMonthYearTimeForEvents:u.lB,appCommonConstants:m.wK,upcomingEventsConstant:o.ez,displayCount:m.wK.EVENT_COUNT_MIN,canSeeMore:!1,defaultFilterKey:f.rr.constant.myChapterDefaultFilter.parentKey,sizeFormattedImageUrl:E.c8}},created:function(){this.isConsiderTheseEventGadget?this.getUnRegisteredEvents():this.getUpcomingEventList()},watch:{upcomingEventList:function(t){this.isConsiderTheseEventGadget||(t?(this.isVisibleEventsPanel=t.numberOfEvents>0,this.canSeeMore=t.numberOfEvents>3):this.isVisibleEventsPanel=!1)},unRegisteredEvents:function(t){this.isConsiderTheseEventGadget&&(t?(this.isVisibleEventsPanel=t.length>0,this.canSeeMore=t.length>3):this.isVisibleEventsPanel=!1)}},methods:C(C({},(0,i.i0)({getUpcomingEventList:"chapter/".concat(a.g.getUpcomingEventList),getUnRegisteredEvents:"chapter/".concat(a.g.getUnRegisteredEvents),saveUpcomingEvent:"chapter/".concat(a.g.saveUpcomingEvent),rejectUpcomingEvent:"chapter/".concat(a.g.rejectUpcomingEvent)})),{},{imageErrorFallback:v.i5,eventEndDay:function(t){return t&&t.endDateTime&&t.startDateTime&&(0,u.es)(t.endDateTime)-(0,u.es)(t.startDateTime)>0&&(0,u.AD)(t.endDateTime)!==(0,u.AD)(t.startDateTime)?(0,u.AD)(t.endDateTime):null},openLink:function(t){return window.open(t,"_blank"),!1},goToEvent:function(t){var e=this.$route&&this.$route.name===m.sF.HOME?g._S.ATTRIBUTION_TRACKING.homeEventWidgetId:g._S.ATTRIBUTION_TRACKING.communityEventWidgetId,n=(0,g.xO)(t,e);(0,p.Yg)(d.Q.C_Consider_Events,t),window.open(n,this.isMobileAppBrowser?"_self":"_blank")},seeMore:function(){var t=this;if(this.isConsiderTheseEventGadget)this.$router.push({path:"/".concat(m.sF.YPO_EVENTS),query:{eventFilters:JSON.stringify(C({},h.$i.defaultEventFilters)),eventSearchText:""}});else{var e=[],n=this.communityInfo;if(this.$route.name===this.routerNames.HOME){this.defaultFilterKey=o.ez.Sponsors;var s={name:o.ez.EVENT_NAME,searchFilterKey:o.ez.SEARCH_FILTER_KEY,searchFilterValue:this.currentUserId,searchRibbonGroupName:o.ez.SEARCH_RIBBON_GROUP_NAME};e.push((0,o.PA)(s))}else this.isAllNetworks?this.usersCommunitiesList.filter(function(e){return e.communityType===t.routerNames.NETWORK}).forEach(function(t){""!==t.searchRibbonGroupName&&e.push((0,o.lU)(t,!0))}):n&&(this.defaultFilterKey="chapter"!==n.communityType.toLowerCase()&&"network"!==n.communityType.toLowerCase()||!n.isMember?f.rr.constant.myChapterDefaultFilter.parentKey:"my".concat(n.communityType,"s"),e.push((0,o.ID)(n)));var r=w({},this.defaultFilterKey,e);this.$router.push({path:"/".concat(m.sF.YPO_EVENTS),query:{eventFilters:JSON.stringify(r),eventSearchText:""}})}}}),computed:C(C(C({},(0,i.aH)("actionState",["actions"])),(0,i.L8)({upcomingEventList:"chapter/".concat(c.k.upcomingEventList),salesforceURL:"".concat(c.k.salesforceURL),isCommunityAdmin:"chapter/".concat(c.k.getIsCommunityAdmin),currentCommunityView:"".concat(c.k.currentCommunityView),usersCommunitiesList:"chapter/".concat(c.k.usersCommunitiesList),communityInfo:"chapter/".concat(c.k.communityInfo),currentUserId:"memberProfile/".concat(c.k.currentUserId),unRegisteredEvents:"chapter/".concat(c.k.unRegisteredEvents),isMobileAppBrowser:"".concat([c.k.isMobileAppBrowser])})),{},{isChapterPage:function(){return this.$route.name===this.routerNames.CHAPTER},isAllNetworks:function(){var t=this;return this.usersCommunitiesList&&this.usersCommunitiesList.some(function(e){return e.communityId===t.$route.params.communityId&&e.name.toLowerCase()===y.dn.YOUR_NETWORKS_CONSOLIDATED_LOWER_CASE})},upcomingEventsForDisplay:function(){var t=[];return this.isConsiderTheseEventGadget&&this.unRegisteredEvents?(t=this.unRegisteredEvents,t=t.slice(0,this.displayCount)):!this.isConsiderTheseEventGadget&&this.upcomingEventList&&(t=this.upcomingEventList,t=t.slice(0,this.displayCount)),t},numberOfSelectedEvents:function(){return this.upcomingEventsForDisplay.length},eventsCount:function(){var t=!0;return(this.isConsiderTheseEventGadget&&this.unRegisteredEvents&&this.numberOfSelectedEvents>this.appCommonConstants.EVENT_COUNT_MIN||!this.isConsiderTheseEventGadget&&this.upcomingEventList&&this.numberOfSelectedEvents&&this.numberOfSelectedEvents>this.appCommonConstants.EVENT_COUNT_MIN)&&(t=!1),t},loadingAction:function(){return this.actions[a.g.getUpcomingEventList]||this.actions[a.g.getUnRegisteredEvents]},title:function(){return this.isConsiderTheseEventGadget?this.upcomingEventsConstant.CONSIDER_THESE_EVENTS:this.upcomingEventsConstant["".concat(this.$route.name.toUpperCase(),"_TITLE")]}})},k=T,N=n(81656),S=(0,N.A)(k,s,r,!1,null,"0bb83a6f",null),U=S.exports}}]); 4//# sourceMappingURL=4538-legacy.676fb7de.js.map
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.