PageSourceSearch

https://www.roanokegroup.com/component---src-templates-single-event-js-9db8c60741de155a74d0.js

js roanokegroup.com collected 2026-09-29 05:38:40 UTC 11,496 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[519],{11903:function(e,t,n){n.r(t);var l=n(77387),a=n(96540),i=n(32532),r=n(22337),o=n(37875),c=n(36114),s=n(46216),u=n(6290),m=n(29592),d=n(99435),v=n(83861);let p=function(e){function t(){return e.apply(this,arguments)||this}(0,l.A)(t,e);var n=t.prototype;return n.getEventImage=function(){const{events:e,featuredImage:t}=this.props.data.wpEvent;return"pre"===((null==e?void 0:e.showContent)||"pre")?null==e?void 0:e.preImage:(null==e?void 0:e.postImage)||(null==e?void 0:e.preImage)||t},n.getEventContent=function(){const{events:e,content:t}=this.props.data.wpEvent;return"pre"===((null==e?void 0:e.showContent)||"pre")?null!=e&&e.content&&e.content.length>0?e.content:t?[{__typename:"WpEditorContent",content:t}]:[]:null!=e&&e.postContent&&e.postContent.length>0?e.postContent:null!=e&&e.content&&e.content.length>0?e.content:t?[{__typename:"WpEditorContent",content:t}]:[]},n.renderEventImage=function(e,t,n){var l,r,o,c,s,u,m,d;return void 0===n&&(n="mainImage"),e?null!==(l=e.node)&&void 0!==l&&null!==(r=l.localFile)&&void 0!==r&&null!==(o=r.childImageSharp)&&void 0!==o&&o.gatsbyImageData?a.createElement(i.G,{image:(0,i.c)(e.node.localFile.childImageSharp.gatsbyImageData),alt:e.node.altText||t,className:"flex-img "+n,backgroundColor:"transparent",objectFit:"cover"}):null!==(c=e.node)&&void 0!==c&&null!==(s=c.localFile)&&void 0!==s&&s.publicURL?a.createElement("img",{src:e.node.localFile.publicURL,alt:e.node.altText||t,className:"flex-img "+n}):null!==(u=e.localFile)&&void 0!==u&&null!==(m=u.childImageSharp)&&void 0!==m&&m.gatsbyImageData?a.createElement(i.G,{image:(0,i.c)(e.localFile.childImageSharp.gatsbyImageData),alt:e.altText||t,className:"flex-img "+n,backgroundColor:"transparent",objectFit:"cover"}):null!==(d=e.localFile)&&void 0!==d&&d.publicURL?a.createElement("img",{src:e.localFile.publicURL,alt:e.altText||t,className:"flex-img "+n}):null:null},n.renderFlexibleContent=function(e,t){return e&&0!==e.length?e.map((e,n)=>{if("WpEditorContent"===e.__typename)return a.createElement("div",{key:n,className:"container"},a.createElement("div",{className:"grid smallGrid"},a.createElement("div",{className:"col-sm-8 maincopy"},a.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}))));switch(e.__typename){case"WpEvent_Events_Content_OneColumn":case"WpEvent_Events_PostContent_OneColumn":return a.createElement("div",{key:n,className:"one-col-container flex-container item-"+n},a.createElement(m.A,{content:e,section:t}));case"WpEvent_Events_TopSidebar_OneColumn":return a.createElement("div",{key:n,className:"event-top-sidebar-item item-"+n},a.createElement(m.A,{content:e,section:t}));case"WpEvent_Events_PostContent_TwoColumn":return a.createElement("div",{key:n,className:"two-col-container flex-container item-"+n},a.createElement(d.A,{content:e,section:t}));case"WpEvent_Events_Content_VideoCarousel":case"WpEvent_Events_PostContent_VideoCarousel":return a.createElement("div",{key:n,className:"item-"+n},a.createElement(v.A,{mainContent:e,section:t}));default:return null}}):null},n.render=function(){const e=this.props.data.wpEvent,{title:t,link:n,seo:l,events:i,eventCategories:c}=e,m=(null==i?void 0:i.showContent)||"pre",d=this.getEventImage(),v=this.getEventContent();return a.createElement(s.A,null,a.createElement(u.A,{title:l.title,description:l.metaDesc,meta:l}),a.createElement("div",{className:"container blogSingle"},a.createElement("div",{className:"event-page-header"},a.createElement("div",{className:"event-page-title"},a.createElement("h1",{className:"heading-1 event-title"},t)),a.createElement("div",{className:"event-page-social"},a.createElement("div",{className:"socialBlog"},a.createElement("span",null,"Share This:"),a.createElement("a",{href:"https://www.facebook.com/share.php?u="+n},a.createElement(r.g,{icon:o.Kjv})),a.createElement("a",{href:"http://www.twitter.com/share?url="+n+"&count=horizontal"},a.createElement(r.g,{icon:o.HQ1})),a.createElement("a",{href:"https://www.linkedin.com/shareArticle?mini=true&url="+n+"&title="+t+"&summary=&source=LinkedIn"},a.createElement(r.g,{icon:o.B_4}))))),"pre"===m?a.createElement(a.Fragment,null,a.createElement("div",{className:"event-post-header"},a.createElement("div",{className:"event-post-image"},this.renderEventImage(d,t,"mainImage")),a.createElement("div",{className:"event-post-sidebar"},a.createElement(g,{datetime:null==i?void 0:i.startDatetime,timezone:null==i?void 0:i.timezone,location:null==i?void 0:i.location,startDate:null==i?void 0:i.startDate,endD
1ate:null==i?void 0:i.endDate,city:null==i?void 0:i.city,state:null==i?void 0:i.state,country:null==i?void 0:i.country,locationDescription:null==i?void 0:i.locationDescription,cta:null==i?void 0:i.cta,webinarLink:null==i?void 0:i.webinarLink,moreInformationLink:null==i?void 0:i.moreInformationLink,eventCategories:c}))),this.renderFlexibleContent(v,"events")):a.createElement(a.Fragment,null,a.createElement("div",{className:"event-post-header"},a.createElement("div",{className:"event-post-image"},this.renderEventImage(d,t,"mainImage post-event-image")),a.createElement("div",{className:"event-post-sidebar"},a.createElement(g,{datetime:null==i?void 0:i.startDatetime,timezone:null==i?void 0:i.timezone,location:null==i?void 0:i.location,startDate:null==i?void 0:i.startDate,endDate:null==i?void 0:i.endDate,city:null==i?void 0:i.city,state:null==i?void 0:i.state,country:null==i?void 0:i.country,locationDescription:null==i?void 0:i.locationDescription,cta:null==i?void 0:i.cta,link:n,title:t,webinarLink:null==i?void 0:i.webinarLink,moreInformationLink:null==i?void 0:i.moreInformationLink,eventCategories:c,hideTitle:!0}),(null==i?void 0:i.topSidebar)&&i.topSidebar.length>0&&this.renderFlexibleContent(i.topSidebar,"events-top-sidebar"))),this.renderFlexibleContent(v,"events"))))},t}(a.Component);function g(e){var t,n;let{datetime:l,timezone:i,location:r,startDate:o,endDate:s,city:u,state:m,country:d,locationDescription:v,cta:p,webinarLink:g,moreInformationLink:E,eventCategories:h,hideTitle:f=!1}=e;const b=i||"America/New_York",N="person"===r,y=N?(0,c.tX)(o,s):null,w=N?null:(0,c.cA)(l,b),_=(null==w?void 0:w.date)||null,D=(null==w?void 0:w.time)||null,T=(0,c.P)({startDatetime:l,startDate:o,timezone:i}),C=!!T&&T>new Date,I=(null==h||null===(t=h.nodes)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.name)||null;let S=null;if("virtual"===r)S={type:"virtual"};else if("person"===r){const e=[u,m,d].filter(Boolean);e.length>0&&(S={type:"person",text:e.join(", ")})}return a.createElement(a.Fragment,null,!f&&a.createElement("p",{className:"blogSidebarTitle"},"Event Details"),(I||C||"virtual"===r)&&a.createElement("div",{className:"event-sidebar-chips"},I&&a.createElement("span",{className:"event-chip event-chip--category"},I),C&&a.createElement("span",{className:"event-chip event-chip--upcoming"},"Upcoming"),"virtual"===r&&a.createElement("span",{className:"event-chip event-chip--virtual"},"Virtual")),N&&y&&a.createElement("p",{className:"eventSubTitle"},y),!N&&(_||D)&&a.createElement("p",{className:"eventSubTitle"},[_,D].filter(e=>e&&"Invalid Date"!==e).join(" • ")),S&&"person"===S.type&&a.createElement("p",{className:"eventSubTitle"},S.text),v&&a.createElement("div",{className:"eventSubTitle",dangerouslySetInnerHTML:{__html:v}}),p&&p.length>0&&a.createElement("div",{className:"button-wrapper eventSidebarCta"},p.map((e,t)=>{var n,l;return a.createElement("a",{key:t,href:(null==e||null===(n=e.link)||void 0===n?void 0:n.url)||"#",target:(null==e||null===(l=e.link)||void 0===l?void 0:l.target)||"_self",className:"r-button "+((null==e?void 0:e.buttonType)||"button")},a.createElement("span",null,null==e?void 0:e.buttonLabel))})),g&&a.createElement(a.Fragment,null,a.createElement("p",{className:"eventSubTitle eventSubTitleTop"},a.createElement("strong",null,"Webinar Link")),a.createElement("p",{className:"eventSubTitle"},a.createElement("a",{href:g,target:"_blank",rel:"noreferrer"},g))),E&&a.createElement("a",{className:"mainCTA",href:E.url,target:E.target||"_self"},E.title||"Request More Info"))}t.default=p},36114:function(e,t,n){n.d(t,{AT:function(){return i},Mx:function(){return v},P:function(){return d},UG:function(){return a},cA:function(){return c},sL:function(){return s},tX:function(){return m}});var l=n(32532);function a(e,t){return"pre"===((null==e?void 0:e.showContent)||"pre")?(null==e?void 0:e.preImage)||t:(null==e?void 0:e.postImage)||(null==e?void 0:e.preImage)||t}function i(e,t){var n;if(!e)return null;if(null!==(n=e.node)&&void 0!==n&&n.localFile){const n=(0,l.c)(e.node.localFile);if(n)return{gatsbyImage:n,src:null,alt:e.node.altText||t||"Event"};if(e.node.localFile.publicURL)return{gatsbyImage:null,src:e.node.localFile.publicURL,alt:e.node.altText||t||"Event"}}if(e.localFile){const n=(0,l.c)(e.localFile);if(n)return{gatsbyImage:n,src:null,alt:e.altText||t||"Event"};if(e.localFile.publicURL)return{gatsbyImage:null,src:e.localFile.publicURL,alt:e.altText||t||"Event"}}return null}
1function r(e,t){void 0===t&&(t="America/New_York");const n=e.match(/(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})\s*(am|pm)/i);if(!n)return null;const[,l,a,i,r,o,c]=n;let s=parseInt(r);"pm"===c.toLowerCase()&&12!==s?s+=12:"am"===c.toLowerCase()&&12===s&&(s=0);return function(e,t){const n=new Date(e+"Z"),l=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(n),a={};l.forEach(e=>{let{type:t,value:n}=e;a[t]=n});const i=new Date(Date.UTC(+a.year,+a.month-1,+a.day,"24"===a.hour?0:+a.hour,+a.minute,+a.second)),r=n.getTime()-i.getTime();return new Date(n.getTime()+r)}(i+"-"+a.padStart(2,"0")+"-"+l.padStart(2,"0")+"T"+s.toString().padStart(2,"0")+":"+o+":00",t)}function o(e,t){if(void 0===t&&(t="America/New_York"),!e)return null;let n;return e.includes("/")&&(n=r(e,t)),n&&!isNaN(n.getTime())||(n=new Date(e)),!n||isNaN(n.getTime())?null:n}function c(e,t){void 0===t&&(t="America/New_York");const n=o(e,t);if(!n)return null;return{date:n.toLocaleString("en-US",{timeZone:t,month:"long",day:"numeric",year:"numeric"}),time:n.toLocaleString("en-US",{timeZone:t,hour:"numeric",minute:"numeric",timeZoneName:"short"})}}function s(e,t){void 0===t&&(t="America/New_York");const n=o(e,t);return n?n.toLocaleString("en-US",{timeZone:t,month:"short",day:"numeric",year:"numeric"}):null}function u(e){if(!e)return null;if(/^\d{8}$/.test(e))return new Date(e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)+"T12:00:00");if(/^\d{4}-\d{2}-\d{2}$/.test(e))return new Date(e+"T12:00:00");const t=e.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);return t?new Date(t[3]+"-"+t[2].padStart(2,"0")+"-"+t[1].padStart(2,"0")+"T12:00:00"):null}function m(e,t){const n=u(e);if(!n||isNaN(n.getTime()))return null;const l=t?u(t):null,a=e=>e.toLocaleDateString("en-US",{month:"long",day:"numeric"}),i=e=>e.getFullYear();return!l||isNaN(l.getTime())||n.toDateString()===l.toDateString()?a(n)+", "+i(n):a(n)+" - "+a(l)+", "+i(l)}function d(e){if(null!=e&&e.startDatetime){const t=o(e.startDatetime,(null==e?void 0:e.timezone)||"America/New_York");if(t&&!isNaN(t.getTime()))return t}if(null!=e&&e.startDate){const t=u(e.startDate);if(t&&!isNaN(t.getTime()))return t}return null}function v(e){var t;return null!=e&&null!==(t=e.nodes)&&void 0!==t&&t.length?e.nodes[0].name:null}}}]);
2//# sourceMappingURL=component---src-templates-single-event-js-9db8c60741de155a74d0.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.