1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4924],{59185:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events/[...events]",function(){return a(37725)}])},5282:function(e,t,a){"use strict";a.d(t,{S:function(){return c}});var n=a(85893),r=a(17534),l=a(25675),i=a.n(l),o=a(86942),s=a.n(o);function c(e){let t,{mediaId:a,caption:l="",alt:o="article image",condensed:c=!1,size:d="normal",mediaTable:u="article",post:_=!1}=e,m=(0,r.Z)(),p=355,h=205,v={width:"100%"};_&&m.width>768?(p=1136,v={width:"auto"}):_&&m.width>400?(p=705,v={width:"auto"}):"large"===d?(p=740,h=425):"small"===d&&(p=120,h=120);let f="i";"events"===u&&(f="e"),t=_?"".concat("https://media.mynewstoday.ca","/").concat(f,"/").concat(a,"/").concat(p):"".concat("https://media.mynewstoday.ca","/").concat(f,"/").concat(a,"/").concat(p,"/").concat(h);let g=""!==l?(0,n.jsx)("span",{className:s().caption,children:l}):null;return(0,n.jsxs)(n.Fragment,{children:[t?(0,n.jsx)(i(),{className:s().featuredImage,src:t,alt:o,width:p,height:h,quality:100,unoptimized:!0,priority:!c,style:v}):null,c?null:g]})}},71525:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var n=a(85893);a(67294);var r=a(89226),l=a.n(r);function i(e){let{children:t,size:a="medium",variant:r="primary",bgColor:i="color3",textColor:o="white",classname:s="",...c}=e;return"load_more"===r||"outlined"===r?(0,n.jsx)("button",{type:"button",className:"".concat(l().outlined," ").concat(s),...c,children:t}):(0,n.jsx)("button",{type:"button",className:"".concat(s," text-").concat(o," bg-").concat(i," "),...c,children:t})}},89490:function(e,t,a){"use strict";a.d(t,{r:function(){return i}});var n=a(85893),r=a(41664),l=a.n(r);function i(){return(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{children:"Submit your event"}),(0,n.jsx)("p",{children:"Do you have an event you would like to submit? Let us know and we will add it to our calendar."}),(0,n.jsx)(l(),{className:"button-link sans-serif font-bold uppercase",href:"/events/submit",children:"Submit an Event"})]})}a(67294)},41121:function(e,t,a){"use strict";a.d(t,{L$:function(){return o},e$:function(){return s}});let n="America/Toronto",r=new Intl.DateTimeFormat("en-CA",{timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",weekday:"long"}),l=new Intl.DateTimeFormat("en-CA",{timeZone:n,month:"long"}),i=new Intl.DateTimeFormat("en-CA",{timeZone:n,hour:"numeric",minute:"2-digit"});function o(e){if(!e)return null;let t=new Date(e);if(Number.isNaN(t.getTime()))return null;let a=r.formatToParts(t),n=e=>{var t,n;return null!==(n=null===(t=a.find(t=>t.type===e))||void 0===t?void 0:t.value)&&void 0!==n?n:""};return{year:n("year"),month:n("month"),day:n("day"),dayOfMonth:parseInt(n("day"),10),weekday:n("weekday"),monthName:l.format(t)}}function s(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?"":i.format(t)}},1587:function(e,t,a){"use strict";a.d(t,{r:function(){return l}});var n=a(91036),r=a.n(n);function l(e){let t=null==e?void 0:e.replace(/\s\s+/g," ");return r()(t,{allowedTags:["p","strong","em","u","s","br","a","div","span","ol","ul","li","h1","h2","h3"],allowedAttributes:{p:["style"],a:["href","target","rel","class"],div:["class"],img:["src","alt"],blockquote:["class"]},allowedStyles:{"*":{"text-align":[/^left$/,/^right$/,/^center$/,/^justify$/,/^start$/],"font-size":[/^\d+(?:px|em|%)$/]},p:{"font-size":[/^\d+rem$/]}}})}},37725:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return T},default:function(){return S}});var n=a(85893),r=a(59815),l=a(96396),i=a(61535),o=a(92239),s=a(5152),c=a.n(s);a(67294);var d=a(41664),u=a.n(d),_=a(71525),m=a(95120),p=a.n(m),h=a(86942),v=a.n(h),f=a(1587),g=a(41121),x=a(5282);let y=c()(()=>Promise.all([a.e(2248),a.e(4738)]).then(a.bind(a,44738)),{loadableGenerated:{webpack:()=>[44738]},ssr:!1});function w(e){var t,a,r,l;let{event:i}=e;if(!i)return(0,n.jsx)("div",{children:"Event not found"});let{name:o,description:s,cost:c,startsAt:d,endsAt:m,venue:h,media:w,website:b}=i,j=b&&(null==b?void 0:b.includes("https"))?b:"https://".concat(b),N=(0,g.L$)(d),W=(0,g.L$)(m),L=null!==(t=null==N?void 0:N.monthName)&&void 0!==t?t:"",T=null!==(a=null==N?void 0:N.dayOfMonth)&&void 0!==a?a:"",S=(0,g.e$)(d),C=null!==(r=null==W?void 0:W.monthName)&&void 0!==r?r:"",k=null!==(l=null==W?void 0:W.dayOfMonth)&&void 0!==l?l:"",D=(0,g.e$)(m),I=new Date(m),A=!Number.isNaN(I.getTime())&&I.getTime()<Date.now();return(0,n.jsxs)("div",{className:p().wrapper,children:[w?(0,n.jsx)(x.S,{post:!0,mediaId:w.id,mediaTable:"events"}):null,(0,n.jsx)("h1",{className:p().name,children:o}),A?(0,n.jsx)("div",{className:p().eventPassedWrapper,children:"This event has passed."}):null,(0,n.jsxs)("div",{className:p().bottomWrapper,children:[(0,n.jsxs)("div",{className:"flex flex-col gap-2 lg:mb-4 lg:mr-4",children:[(0,n.jsxs)("div",{className:"flex flex-row gap-4 lg:flex-col lg:gap-2",children:[(0,n.jsx)("div",{className:p().labelWrapper,children:(0,n.jsxs)("div",{className:p().labelValue,children:[L," ",T," - ",S]})}),(0,n.jsx)("div",{className:p().labelWrapper,children:(0,n.jsxs)("div",{className:p().labelValue,children:[C," ",k," - ",D]})})]}),(0,n.jsxs)("div",{className:"flex flex-row gap-4 lg:flex-col lg:gap-2",children:[(0,n.jsx)("div",{className:"w-1/4",children:(0,n.jsxs)("div",{className:p().labelWrapper,children:[(0,n.jsx)("div",{className:p().label,children:"Cost"}),(0,n.jsx)("div",{className:p().labelValue,children:0===c?"Free":c.toLocaleStr
1ing("en-US",{style:"currency",currency:"USD"})})]})}),h&&"N/A"!==h?(0,n.jsxs)("div",{className:p().labelWrapper,children:[(0,n.jsx)("div",{className:p().label,children:"Venue"}),(0,n.jsx)("div",{className:p().labelValue,children:h})]}):null]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:v().articleBody,dangerouslySetInnerHTML:{__html:(0,f.r)(s)}}),(0,n.jsx)(y,{}),b?(0,n.jsx)(u(),{href:j,className:"h-fit w-full",children:(0,n.jsx)(_.Z,{classname:"m-0 w-full justify-center",children:"View Website"})}):null]})]})]})}var b=a(11163),j=a(89490),N=a(82831),W=a.n(N),L=a(37856),T=!0;function S(e){let{query:t,site:a}=e,s=new Date,c=(null==t?void 0:t.year)||s.getFullYear(),d=null==t?void 0:t.month;(null==t?void 0:t.year)||(console.log("Did not receive year in query"),console.log("URL:",window.location)),(null==t?void 0:t.month)||(console.log("Did not receive month in query"),console.log("URL:",window.location)),(null==t?void 0:t.name)||(console.log("Did not receive name in query"),console.log("URL:",window.location));let{data:u,isLoading:_}=function(e){let{year:t,month:a,name:n}=e,r=function(e){let{year:t,month:a,name:n}=e;return"query QueryEvent {\n event(month: ".concat(parseInt("".concat(a),10),", year: ").concat(parseInt("".concat(t),10),', name: "').concat(n,'") {\n id\n name\n description\n venue\n startsAt\n endsAt\n cost\n canonicalUrl\n website\n media {\n id\n altText\n }\n }\n }')}({year:t,month:a,name:n}),{data:l,error:s,mutate:c,isValidating:d,isLoading:u}=(0,i.ZP)(r,o._);return{data:null==l?void 0:l.event,error:s,mutate:c,isLoading:u}}({year:c,month:d,name:t.name}),m=(0,b.useRouter)();return(u||_||m.push("/404"),u)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L.k,{site:a,event:u}),(0,n.jsx)(r.Z,{children:(0,n.jsx)("div",{className:"body-wrap",children:(0,n.jsxs)("div",{className:W().pageWrapper,children:[(0,n.jsxs)("div",{className:"mb-8 flex flex-col",children:[(0,n.jsx)(w,{event:u}),(0,n.jsx)("div",{className:"mt-8",children:(0,n.jsx)(j.r,{})})]}),(0,n.jsx)(l.Z,{})]})})})]}):null}},86942:function(e){e.exports={articlesListWrap:"article_articlesListWrap__zPlJi",articlesLargeContainer:"article_articlesLargeContainer__iCtQC",articlesLargeRegularContainer:"article_articlesLargeRegularContainer___iojh",articlesSmallContainer:"article_articlesSmallContainer__jc2CR",articleCondensed:"article_articleCondensed__emkuj",articleMeta:"article_articleMeta__8i5v9",articlePostContainer:"article_articlePostContainer__rplc0",articleWrap:"article_articleWrap__2_55E",article:"article_article__CYPBv",featured:"article_featured__8j55a",italic:"article_italic__IXb5k",articleTags:"article_articleTags__6_hxs",date:"article_date__hJAmL",caption:"article_caption__Uphmr",bodywrap:"article_bodywrap__7WhBK",regionTag:"article_regionTag__2a6OF",heading:"article_heading__SKasJ",largeHeading:"article_largeHeading__u1_6_",author:"article_author__2WgoM",excerpt:"article_excerpt__mbo5B",listHeader:"article_listHeader__FFUnZ",featuredImage:"article_featuredImage__0_E3o",articleBody:"article_articleBody__sfbo8",articleSkeletonWrapper:"article_articleSkeletonWrapper__T__r9",sponsoredArticleWrapper:"article_sponsoredArticleWrapper__iA0f8",sponsoredArticleGridItem:"article_sponsoredArticleGridItem__tNNr6",sponsoredStoryWrapper:"article_sponsoredStoryWrapper__HCFc6",sponsoredTag:"article_sponsoredTag__6U9yt",sponsoredStoryListWrapper:"article_sponsoredStoryListWrapper__QQbbo",sponsoredStoryLargeListWrapper:"article_sponsoredStoryLargeListWrapper__mliLo"}},89226:function(e){e.exports={outlined:"button_outlined__wmsyD"}},95120:function(e){e.exports={bottomWrapper:"event-card_bottomWrapper__E0e0H",name:"event-card_name__PVYRj",category:"event-card_category__ythoI",label:"event-card_label__qL0ko",labelWrapperRow:"event-card_labelWrapperRow__njke9",eventPassedWrapper:"event-card_eventPassedWrapper__Z82n1"}},82831:function(e){e.exports={pageWrapper:"event-page_pageWrapper__D248m"}}},function(e){e.O(0,[3662,3836,4230,6396,9347,2888,9774,179],function(){return e(e.s=59185)}),_N_E=e.O()}]);
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.