vendor: 4,313 bytes, line 1
1(self.webpackChunkcalgary_downtown_association=self.webpackChunkcalgary_downtown_association||[]).push([[293],{22720:function(e,t,n){var o,r,i;"undefined"!=typeof window?window:n.g,r=[],void 0===(i="function"==typeof(o=function(){var e=function(t,n){"use strict";var o=Object.create(e.prototype),r=0,i=0,a=0,l=0,s=[],u=!0,c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},p=null,d=!1;try{var m=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassive",null,m),window.removeEventListener("testPassive",null,m)}catch(S){}var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||clearTimeout,g=window.transformProp||function(){var e=document.createElement("div");if(null===e.style.transform){var t=["Webkit","Moz","ms"];for(var n in t)if(void 0!==e.style[t[n]+"Transform"])return t[n]+"Transform"}return"transform"}();function h(){if(3===o.options.breakpoints.length&&Array.isArray(o.options.breakpoints)){var e,t=!0,n=!0;if(o.options.breakpoints.forEach((function(o){"number"!=typeof o&&(n=!1),null!==e&&o<e&&(t=!1),e=o})),t&&n)return}o.options.breakpoints=[576,768,1201],console.warn("Rellax: You must pass an array of 3 numbers in ascending order to the breakpoints option. Defaults reverted")}o.options={speed:-2,verticalSpeed:null,horizontalSpeed:null,breakpoints:[576,768,1201],center:!1,wrapper:null,relativeToWrapper:!1,round:!0,vertical:!0,horizontal:!1,verticalScrollAxis:"y",horizontalScrollAxis:"x",callback:function(){}},n&&Object.keys(n).forEach((function(e){o.options[e]=n[e]})),n&&n.breakpoints&&h(),t||(t=".rellax");var b="string"==typeof t?document.querySelectorAll(t):[t];if(b.length>0){if(o.elems=b,o.options.wrapper&&!o.options.wrapper.nodeType){var y=document.querySelector(o.options.wrapper);if(!y)return void console.warn("Rellax: The wrapper you're trying to use doesn't exist.");o.options.wrapper=y}var x,v=function(e){var t=o.options.breakpoints;return e<t[0]?"xs":e>=t[0]&&e<t[1]?"sm":e>=t[1]&&e<t[2]?"md":"lg"},w=function(){for(var e=0;e<o.elems.length;e++){var t=z(o.elems[e]);s.push(t)}},Y=function(){for(var e=0;e<s.length;e++)o.elems[e].style.cssText=s[e].style;s=[],i=window.innerHeight,l=window.innerWidth,x=v(l),A(),w(),D(),u&&(window.addEventListener("resize",Y),u=!1,L())},z=function(e){var t,n=e.getAttribute("data-rellax-percentage"),r=e.getAttribute("data-rellax-speed"),a=e.getAttribute("data-rellax-xs-speed"),s=e.getAttribute("data-rellax-mobile-speed"),u=e.getAttribute("data-rellax-tablet-speed"),c=e.getAttribute("data-rellax-desktop-speed"),p=e.getAttribute("data-rellax-vertical-speed"),d=e.getAttribute("data-rellax-horizontal-speed"),m=e.getAttribute("data-rellax-vertical-scroll-axis"),f=e.getAttribute("data-rellax-horizontal-scroll-axis"),g=e.getAttribute("data-rellax-zindex")||0,h=e.getAttribute("data-rellax-min"),b=e.getAttribute("data-rellax-max"),y=e.getAttribute("data-rellax-min-x"),v=e.getAttribute("data-rellax-max-x"),w=e.getAttribute("data-rellax-min-y"),Y=e.getAttribute("data-rellax-max-y"),z=!0;a||s||u||c?t={xs:a,sm:s,md:u,lg:c}:z=!1;var A=o.options.wrapper?o.options.wrapper.scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;o.options.relativeToWrapper&&(A=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)-o.options.wrapper.offsetTop);var O=o.options.vertical&&(n||o.options.center)?A:0,L=o.options.horizontal&&(n||o.options.center)?o.options.wrapper?o.options.wrapper.scrollLeft:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0,D=O+e.getBoundingClientRect().top,S=e.clientHeight||e.offsetHeight||e.scrollHeight,T=L+e.getBoundingClientRect().left,E=e.clientWidth||e.offsetWidth||e.scrollWidth,j=n||(O-D+i)/(S+i),C=n||(L-T+l)/(E+l);o.options.center&&(C=.5,j=.5);var _=z&&null!==t[x]?Number(t[x]):r||o.options.speed,F=p||o.options.verticalSpeed,M=d||o.options.horizontalSpeed,P=m||o.options.verticalScrollAxis,W=f||o.options.horizontalScrollAxis,H=k(C,j,_,F,M),X=e.style.cssText,R="",q=/transform\s*:/i.exec(X);if(q){var N=q.index,I=X.slice(N),Z=I.indexOf(";");R=Z?" "+I.slice(11,Z).replace(/\s/g,""):" "+I.slice(11).replace(/\s/g,"")}
1return{baseX:H.x,baseY:H.y,top:D,left:T,height:S,width:E,speed:_,verticalSpeed:F,horizontalSpeed:M,verticalScrollAxis:P,horizontalScrollAxis:W,style:X,transform:R,zindex:g,min:h,max:b,minX:y,maxX:v,minY:w,maxY:Y}},A=function(){var e=r,t=a;if(r=o.options.wrapper?o.options.wrapper.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,a=o.options.wrapper?o.options.wrapper.scrollLeft:(document.documentElement||document.body.parentNode||document.body).scrollLeft||window.pageXOffset,o.options.relativeToWrapper){var n=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset;r=n-o.options.wrapper.offsetTop}return!(e==r||!o.options.vertical)||!(t==a||!o.options.horizontal)},k=function(e,t,n,r,i){var a={},l=(i||n)*(100*(1-e)),s=(r||n)*(100*(1-t));return a.x=o.options.round?Math.round(l):Math.round(100*l)/100,a.y=o.options.round?Math.round(s):Math.round(100*s)/100,a},O=function(){window.removeEventListener("resize",O),window.removeEventListener("orientationchange",O),(o.options.wrapper?o.options.wrapper:window).removeEventListener("scroll",O),(o.options.wrapper?o.options.wrapper:document).removeEventListener("touchmove",O),p=c(L)},L=function(){A()&&!1===u?(D(),p=c(L)):(p=null,window.addEventListener("resize",O),window.addEventListener("orientationchange",O),(o.options.wrapper?o.options.wrapper:window).addEventListener("scroll",O,!!d&&{passive:!0}),(o.options.wrapper?o.options.wrapper:document).addEventListener("touchmove",O,!!d&&{passive:!0}))},D=function(){for(var e,t=0;t<o.elems.length;t++){var n=s[t].verticalScrollAxis.toLowerCase(),u=s[t].horizontalScrollAxis.toLowerCase(),c=-1!=n.indexOf("x")?r:0,p=-1!=n.indexOf("y")?r:0,d=-1!=u.indexOf("x")?a:0,m=(p+(-1!=u.indexOf("y")?a:0)-s[t].top+i)/(s[t].height+i),f=(c+d-s[t].left+l)/(s[t].width+l),h=(e=k(f,m,s[t].speed,s[t].verticalSpeed,s[t].horizontalSpeed)).y-s[t].baseY,b=e.x-s[t].baseX;null!==s[t].min&&(o.options.vertical&&!o.options.horizontal&&(h=h<=s[t].min?s[t].min:h),o.options.horizontal&&!o.options.vertical&&(b=b<=s[t].min?s[t].min:b)),null!=s[t].minY&&(h=h<=s[t].minY?s[t].minY:h),null!=s[t].minX&&(b=b<=s[t].minX?s[t].minX:b),null!==s[t].max&&(o.options.vertical&&!o.options.horizontal&&(h=h>=s[t].max?s[t].max:h),o.options.horizontal&&!o.options.vertical&&(b=b>=s[t].max?s[t].max:b)),null!=s[t].maxY&&(h=h>=s[t].maxY?s[t].maxY:h),null!=s[t].maxX&&(b=b>=s[t].maxX?s[t].maxX:b);var y=s[t].zindex,x="translate3d("+(o.options.horizontal?b:"0")+"px,"+(o.options.vertical?h:"0")+"px,"+y+"px) "+s[t].transform;o.elems[t].style[g]=x}o.options.callback(e)};return o.destroy=function(){for(var e=0;e<o.elems.length;e++)o.elems[e].style.cssText=s[e].style;u||(window.removeEventListener("resize",Y),u=!0),f(p),p=null},Y(),o.refresh=Y,o}console.warn("Rellax: The elements you're trying to select don't exist.")};return e})?o.apply(t,r):o)||(e.exports=i)},76888:function(e,t,n){"use strict";t.A=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(30758)),r=a(n(2736)),i=a(n(22720));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.getPrototypeOf||function(e){return e.__proto__},d(e)}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,d(t).apply(this,arguments))}var n,r,a;return n=t,(r=[{key:"componentDidMount",value:function(){if(this.el){var e=this.props,t=e.centered,n=e.horizontal,o=e.onMove,r=e.wrapper,a={};t&&(a.centered=!0),n&&(a.horizontal=!0),r&&(a.wrapper=r),"function"==typeof o&&(a.callback=o.bind(this)),this.rellax=new i.default(this.el,a)}}},{key:"componentWillUnmount",value:function(){this.rellax&&this.rellax.destroy()}},{key:"render",value:function(){var e=this,t=this.props,n=t.as,r=(t.centered,t.horizontal,t.onMove,t.percentage),i=t.speed,a=t.zIndex,l=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["as","centered","horizontal","onMove","percentage","speed","zIndex"]),u=n;return o.default.createElement(u,s({ref:function(t){e.el=t},"data-rellax-percentage":r,"data-rellax-speed":i,"data-rellax-zindex":a},l))}}])&&c(n.prototype,r),a&&c(n,a),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");u(e.prototype,t&&t.prototype),t&&u(e,t)}(t,e),t}
1(o.PureComponent);t.A=m,m.propTypes={as:r.default.string,centered:r.default.bool,horizontal:r.default.bool,onMove:r.default.func,percentage:r.default.number,speed:r.default.number,zIndex:r.default.number},m.defaultProps={as:"div"}},93877:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Y}});var o=n(30758),r=n(7201),i=n(71657),a=n(84899),l=n(17356),s=n(76888),u=n(75718);var c=e=>{let{data:t,page:n}=e;return(0,l.Y)(o.Fragment,null,(0,l.Y)(a.lH,{mode:"dark"},(0,l.Y)(a.mO,{id:"index-hero",position:"relative",my:0,bg:"transparent",pt:[0,140]},t.image&&(0,l.Y)(a.az,{position:"fixed",top:0,left:0,zIndex:-1,width:"100vw",height:"calc(var(--vh, 1vh) * 100)",bg:"background"},(0,l.Y)(a._V,{image:t.image,size:"lg",style:{height:"100%",width:"100%"},imgStyle:{height:"100%",objectFit:"cover"}})),(0,l.Y)(a.az,{position:"absolute",top:0,left:0,width:"100%",height:"100%",css:(0,l.AH)({...(0,u.qy)({colorStops:["rgba(0, 0, 0, 0.15) 0%","rgba(0, 0, 0, 0.15) 100%"],toDirection:"to top",fallback:"transparent"})},"","")}),(0,l.Y)(a.az,{position:"absolute",top:0,left:0,display:["block","none"],width:"100%",height:160,css:(0,l.AH)({...(0,u.qy)({colorStops:["rgba(0, 0, 0, 0.5) 0%","rgba(0, 0, 0, 0) 100%"],toDirection:"to bottom",fallback:"transparent"})},"","")}),(0,l.Y)(a.az,{position:"absolute",bottom:0,left:0,width:"100%",height:160,css:(0,l.AH)({...(0,u.qy)({colorStops:["rgba(0, 0, 0, 0.5) 0%","rgba(0, 0, 0, 0) 100%"],toDirection:"to top",fallback:"transparent"})},"","")}),(t.title||t.buttonLabel&&t.buttonLink)&&(0,l.Y)(s.A,{speed:-3.5},(0,l.Y)(a.so,{position:"relative",flexDirection:"column",justifyContent:"center",minHeight:["calc((var(--vh, 1vh) * 100))",null,"calc((var(--vh, 1vh) * 100) - 140px)"]},(0,l.Y)(a.az,{py:["layout.6","layout.8"]},t.title&&(0,l.Y)(a.DZ,{as:"h1",size:900},t.title),t.buttonLabel&&t.buttonLink&&(0,l.Y)(a.$n,{as:a.N_,to:t.buttonLink,iconAfter:"arrowRight",intent:"primary",appearance:"primary",mt:["layout.4","layout.6"]},t.buttonLabel)))))),(0,l.Y)(a.az,{bg:"background"},n))},p=n(5250);var d=e=>{let{data:t}=e;const{0:n,1:i}=(0,o.useState)(""),s=(0,p.u)();return(0,o.useEffect)((()=>{const e=(new Date).getHours();e<12&&i("morning"),e<17&&e>=12&&i("afternoon"),e>=17&&i("evening")}),[]),(0,l.Y)(o.Fragment,null,(0,l.Y)(a.mO,{id:"index-experiences",maxWidth:768,my:0,py:["layout.5","layout.6","layout.7"]},n&&(0,l.Y)(o.Fragment,null,(0,l.Y)(a.so,{justifyContent:"center"},(0,l.Y)(a.In,{symbol:n,size:40,strokeWidth:1})),(0,l.Y)(a.DZ,{size:100,textAlign:"center"},"Good "+n)),t.experiences&&(0,l.Y)(o.Fragment,null,(0,l.Y)(a.DZ,{size:700,maxWidth:640,mx:"auto",mt:"layout.4",mb:"layout.4",textAlign:"center"},t.title),(0,l.Y)(a.MC,{content:t.experiences.map((e=>{let{experience:t,url:n}=e;return{children:(0,l.Y)(a.$n,{as:r.N_,to:`/experiences/${n}/`,height:[48,56],px:"0.75em",fontFamily:"standard",fontWeight:"600",css:(0,l.AH)({textTransform:"capitalize",boxShadow:`inset 0 0 0 4px ${s.colors.text} !important`,transition:"box-shadow 150ms ease-out",":hover":{color:"initial",backgroundColor:"initial",boxShadow:`inset 0 0 0 8px ${s.colors.text} !important`}},"","")},t)}})),gutterX:[2,3],gutterY:[2,3],justifyContent:"center"}))))},m=n(3675),f=n.n(m);var g=e=>{let{data:t}=e;return(0,l.Y)(o.Fragment,null,(0,l.Y)(a.mO,{id:"index-events"},t.title&&(0,l.Y)(a.DZ,{size:700,textAlign:"center",mb:"layout.4"},t.title),t.campaigns&&(0,l.Y)(a.MC,{justifyContent:"center",content:t.campaigns.slice(0,4).filter((e=>!(!e.startDatetime||new(f())(e.startDatetime).tz("America/Edmonton").unix()<(new(f())).tz("America/Edmonton").unix()&&new(f())(e.endDatetime).tz("America/Edmonton").unix()<(new(f())).tz("America/Edmonton").unix()))).map((e=>
1{let{address:t,endDatetime:n,featuredPhoto:o,featuredTitle:r,startDatetime:i,url:s}=e;return{width:["100%",null,"50%"],children:(0,l.Y)(a.nn,{image:o,category:"Campaign",startDate:i,endDate:n,title:r,address:t,url:s})}})),gutterY:[2,5]}),t.events&&(0,l.Y)(a.MC,{justifyContent:"center",content:t.events.filter((e=>!(!e.startDatetime||new(f())(e.startDatetime).tz("America/Edmonton").unix()<(new(f())).tz("America/Edmonton").unix()&&new(f())(e.endDatetime).tz("America/Edmonton").unix()<(new(f())).tz("America/Edmonton").unix()))).reverse().slice(0,4).map((e=>{let{featuredPhoto:t,address:n,startDatetime:o,endDatetime:r,category:i,name:s,url:u}=e;return{width:["100%",null,"50%"],children:(0,l.Y)(a.nn,{image:t,category:i,startDate:o,endDate:r,title:s,address:n,url:u})}})),gutterY:[2,5]}),t.buttonLabel&&t.buttonLink&&(0,l.Y)(a.so,{justifyContent:"center",mt:"layout.4"},(0,l.Y)(a.$n,{as:r.N_,to:t.buttonLink,width:["50%","100%"],maxWidth:360,height:[48,56]},t.buttonLabel))))};var h=e=>{let{data:t}=e;return(0,l.Y)(o.Fragment,null,(0,l.Y)(a.lH,{mode:"dark"},(0,l.Y)(a.mO,{id:"index-overlay",position:"relative",my:0,bg:"background"},(0,l.Y)(a._V,{image:t.image,size:"xl",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},imgStyle:{height:"100%",objectFit:"cover"}}),(0,l.Y)(a.so,{position:"relative",flexDirection:"column",justifyContent:"center",minHeight:"calc(var(--vh, 1vh) * 100)"},(0,l.Y)(a.az,{py:"layout.8"},t.title&&(0,l.Y)(a.DZ,{size:900},t.title))))))};var b=e=>{let{data:t}=e;return(0,l.Y)(o.Fragment,null,(0,l.Y)(a.mO,{id:"index-guides"},t.title&&(0,l.Y)(a.DZ,{size:700,textAlign:"center",mb:"layout.4"},t.title),t.guides&&(0,l.Y)(a.MC,{gutterY:[2,5],justifyContent:"center",content:t.guides.map((e=>{let{image:t,title:n,excerpt:o,url:r,author:i}=e;return{width:["100%","50%","33.333%"],children:(0,l.Y)(a.hO,{image:t,title:n,author:i&&i.name,excerpt:o,url:r,vertical:!0})}}))}),t.buttonLabel&&t.buttonLink&&(0,l.Y)(a.so,{justifyContent:"center",mt:"layout.4"},(0,l.Y)(a.$n,{as:r.N_,to:t.buttonLink,width:["50%","100%"],maxWidth:360,height:[48,56],appearance:"primary"},t.buttonLabel))))},y=n(13402);const x=e=>{let{icon:t,title:n,link:o}=e;return(0,l.Y)(a.lH,{mode:"dark"},(0,l.Y)(a.gl,{"data-component-id":"resourceTile",as:a.N_,to:o,ratio:"1:1",bg:"background"},(0,l.Y)(a.so,{flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},t&&(0,l.Y)("img",{src:t.url,alt:t.alt,css:(0,y.Ay)({height:[64,null,80],width:[64,null,80]})}),(0,l.Y)(a.DZ,{size:100,mt:"layout.2",textAlign:"center"},n))))};var v=e=>{let{data:t}=e;return(0,l.Y)(o.Fragment,null,(0,l.Y)(a.mO,{id:"index-resources",maxWidth:768},t.title&&(0,l.Y)(a.DZ,{size:700,mb:["layout.4","layout.6"],textAlign:"center"},t.title),t.resources&&t.resources.length>0&&(0,l.Y)(a.MC,{justifyContent:"center",content:t.resources.map((e=>{let{label:t,icon:n,link:o}=e;return{width:["50%","25%"],children:(0,l.Y)(x,{icon:n,title:t,link:o})}})),gutterX:[1],gutterY:[1]}),t.buttonLabel&&t.buttonLink&&(0,l.Y)(a.so,{justifyContent:"center",mt:"layout.4"},(0,l.Y)(a.$n,{as:r.N_,to:t.buttonLink,width:"100%",maxWidth:360},t.buttonLabel))))};var w=e=>{let{data:t}=e;return(0,l.Y)(o.Fragment,null,(0,l.Y)(a.mO,{id:"index-social"},t.title&&t.title.trim().split(" ").map((e=>(0,l.Y)(a.DZ,{size:700,textAlign:"center"},e)))))};var Y=function(){const{guides:e,page:t,campaigns:n,events:s,experiences:u}=(0,r.GR)("1860212476");return(0,l.Y)(o.Fragment,null,(0,l.Y)(i.HelmetDatoCms,{seo:t.seoMetaTags}),(0,l.Y)(c,{data:{image:t.heroImage,title:t.heroTitle},page:(0,l.Y)(o.Fragment,null,(0,l.Y)(d,{data:{title:t.experienceTitle,experiences:u.nodes}}),(0,l.Y)(a.cG,null),(0,l.Y)(g,{data:{title:t.eventsTitle,events:s.nodes,campaigns:n.nodes,buttonLabel:"See More",buttonLink:"/events/"}}),(0,l.Y)(h,{data:{title:t.guidesTitle,image:t.guidesImage}}),(0,l.Y)(b,{data:{title:null,guides:e.nodes,buttonLabel:"See More",buttonLink:"/guides/"}}),(0,l.Y)(a.cG,{maxWidth:768}),(0,l.Y)(v,{data:{title:t.resourcesTitle,resources:t.resources,buttonLabel:null,buttonLink:null}}),(0,l.Y)(w,{data:{title:t.socialFeedTitle}}
1),(0,l.Y)(a.xD,null))}))}}}]); 2//# sourceMappingURL=component---src-pages-index-js-05265c0306799acd3372.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.