PageSourceSearch

https://www.calgaryfolkfest.com/_next/static/chunks/app/archives/page-9bc7310fd3f1177e.js

js calgaryfolkfest.com collected 2026-10-02 08:01:40 UTC 26,056 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1636],{9512:function(e,l,t){"use strict";t.r(l);var n,a,i=t(4410);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}l.default=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),n||(n=i.createElement("g",{clipPath:"url(#arrow-angle_svg__a)"},i.createElement("path",{fill:"#FEFAF5",d:"M2.97 0v2h9.59L0 14.56l1.41 1.41L13.97 3.41V13h2V0z"}))),a||(a=i.createElement("defs",null,i.createElement("clipPath",{id:"arrow-angle_svg__a"},i.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))}},9941:function(e,l,t){Promise.resolve().then(t.bind(t,3083)),Promise.resolve().then(t.bind(t,2283)),Promise.resolve().then(t.bind(t,5194))},2625:function(e,l,t){"use strict";t.d(l,{aQ:function(){return o},eZ:function(){return d},vh:function(){return r}});let n=t(2737);var a=t(6902),i=t(1388);let s=t(7905);function r(e,l){return n(e).tz("America/Edmonton").format(l||"DD MMMM, YYYY")}function o(e,l){return n(e).format(l||"DD MMMM, YYYY")}function d(e,l){return n(e,"HH:mm:ss.SSS").format(l||"h a")}n.extend(a),n.extend(i),n.extend(s)},3083:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return r}});var n=t(7437),a=t(2265);function i(e){let{message:l}=e;return(0,n.jsx)("div",{className:"container flex-column center pad",children:(0,n.jsx)("div",{className:"pad",children:(0,n.jsx)("div",{className:"pad",children:(0,n.jsx)("h1",{className:"headline-1",children:l})})})})}class s extends a.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,l){console.error("Error occurred:",e),console.error("Error info:",l)}render(){return this.state.hasError?(0,n.jsx)(i,{message:this.props.message?this.props.message:""}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}var r=s},8011:function(e,l,t){"use strict";t.d(l,{vh:function(){return a.vh},aQ:function(){return a.aQ},XI:function(){return n},eZ:function(){return a.eZ}});let n=(e,l,t)=>"".concat("https://d3aive3alj3zrj.cloudfront.net").concat(e);var a=t(2625)},397:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return r}});var n=t(7437),a=t(8011),i=t(8002),s=t(6195);function r(e){var l,t,r,o,d,c,u,v,h,m,f,p,g,y,x,j,w,N,b,k,E,_,S,C,L,z,I,M,O,B,F,P,A,T,q,X,H,Y;let D=null==e?void 0:null===(l=e.src)||void 0===l?void 0:l.ext,Q=null==e?void 0:e.size,W=e.rounded,Z=(null==e?void 0:e.class)?e.class:"",U=e.noLazyLoad,V=e.alt||(null==e?void 0:null===(t=e.src)||void 0===t?void 0:t.alternativeText)||(null==e?void 0:e.alt)||"";return(0,n.jsx)(n.Fragment,{children:".svg"===D&&e.hover?(0,n.jsx)(i.Q,{className:"logo-container ".concat(Z),src:(0,a.XI)(null==e?void 0:null===(r=e.src)||void 0===r?void 0:r.url),evalScripts:"always",afterInjection:e=>{setTimeout(()=>{let l=null==e?void 0:e.getElementsByTagName("path");if(l&&null!==l)for(let e of Array.from(l))e.style.fill="currentColor",e.style.transition="0.27s 0.1s cubic-bezier(0.38, 0.005, 0.213, 1)"},100)}}):".svg"===D?(0,n.jsx)(i.Q,{className:"logo-container ".concat(Z),src:(0,a.XI)(null==e?void 0:null===(o=e.src)||void 0===o?void 0:o.url),evalScripts:"always"}):Q?"full"===Q?U?(0,n.jsx)("img",{style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(y=e.src)||void 0===y?void 0:null===(g=y.formats)||void 0===g?void 0:null===(p=g.full)||void 0===p?void 0:p.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:null==e?void 0:null===(w=e.src)||void 0===w?void 0:null===(j=w.formats)||void 0===j?void 0:null===(x=j.full)||void 0===x?void 0:x.width,height:null==e?void 0:e.height}):(0,n.jsx)(s.LazyLoadImage,{effect:"blur",style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(k=e.src)||void 0===k?void 0:null===(b=k.formats)||void 0===b?void 0:null===(N=b.full)||void 0===N?void 0:N.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:""}):"small"===Q?U?(0,n.jsx)("img",{style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(S=e.src)||void 0===S?void 0:null===(_=S.formats)||void 0===_?void 0:null===(E=_.small)||void 0===E?void 0:E.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:null==e?void 0:null===(z=e.src)||void 0===z?void 0:null===(L=z.formats)||void 0===L?void 0:null===(C=L.small)||void 0===C?void 0:C.width,height:null==e?void 0:e.he
1ight}):(0,n.jsx)(s.LazyLoadImage,{effect:"blur",style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(O=e.src)||void 0===O?void 0:null===(M=O.formats)||void 0===M?void 0:null===(I=M.small)||void 0===I?void 0:I.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:""}):U?(0,n.jsx)("img",{style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(P=e.src)||void 0===P?void 0:null===(F=P.formats)||void 0===F?void 0:null===(B=F.half)||void 0===B?void 0:B.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:null==e?void 0:null===(q=e.src)||void 0===q?void 0:null===(T=q.formats)||void 0===T?void 0:null===(A=T.half)||void 0===A?void 0:A.width,height:null==e?void 0:e.height}):(0,n.jsx)(s.LazyLoadImage,{effect:"blur",style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(Y=e.src)||void 0===Y?void 0:null===(H=Y.formats)||void 0===H?void 0:null===(X=H.half)||void 0===X?void 0:X.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:""}):U?(0,n.jsx)("img",{style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(u=e.src)||void 0===u?void 0:null===(c=u.formats)||void 0===c?void 0:null===(d=c.half)||void 0===d?void 0:d.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:null==e?void 0:null===(v=e.src)||void 0===v?void 0:v.width,height:null==e?void 0:e.height}):(0,n.jsx)(s.LazyLoadImage,{effect:"blur",style:e.style,className:"".concat(W?"rounded":""," ").concat(Z),src:(0,a.XI)(null==e?void 0:null===(f=e.src)||void 0===f?void 0:null===(m=f.formats)||void 0===m?void 0:null===(h=m.half)||void 0===h?void 0:h.url),alt:V,width:(null==e?void 0:e.width)?null==e?void 0:e.width:""})})}t(6435)},2283:function(e,l,t){"use strict";t.d(l,{default:function(){return d}});var n=t(7437),a=t(2265),i=t(9582),s=t(1204),r=t(677);let o=()=>{let e=document.getElementById("transition-element");e&&i.ZP.timeline().set(e,{opacity:0}).to(e,{opacity:1,duration:.8})};function d(e){let{children:l}=e,t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{navigator,i.p8.registerPlugin(s.i,r.t),setTimeout(()=>{s.i.refresh(),console.log("refresh all")},500);let e=i.p8.context(()=>{r.t.create("smoothie",".38,.005,.215,1"),o(),document.querySelectorAll(".block-border-radius").forEach(function(e,l){i.p8.set(e,{position:"relative",zIndex:-l})})},t);return()=>e.revert()},[]),(0,n.jsx)("main",{ref:t,id:"transition-element",children:l})}},5194:function(e,l,t){"use strict";t.d(l,{default:function(){return z}});var n,a,i,s,r,o,d,c=t(7437),u=t(2265),v=t(6463),h=t(397),m=t(7138),f=t(9512),p=t(4410);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}var y=function(e){return p.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:144,height:154,fill:"none"},e),n||(n=p.createElement("path",{fill:"#000",d:"M43.11 31.607c-.285-1.731-.503-3.475-.871-5.185-.562-2.591-1.168-5.159-.064-7.585 1.6-.697 2.41.11 2.886 1.138 1.396 3.022 2.865 6.035 3.963 9.168 2.55 7.287 6.55 13.617 12.087 18.939 7.75 7.448 14.15 15.92 19.689 25.098 1.49 2.467 3.284 4.757 4.994 7.086 2.782 3.786 6.457 6.062 11.217 6.357 2.216.
1137 4.442.157 6.658.281 3.772.21 7.605.104 11.297.777 6.209 1.134 11.203 4.16 12.941 10.785.261.99.759 1.355 1.493 1.877 2.138 1.524 2.751 3.83 3.143 6.387-.887.244-1.517.606-2.099.542-1.322-.147-2.634-.438-3.923-.78-8.345-2.209-15.856-.451-22.595 4.79a104.2 104.2 0 0 0-14.778 14.059c-.482 2.076 2.906 1.279 2.129 3.672-.368 1.135.539 2.681.95 4.395a350 350 0 0 0-5.57-.659c-.491.087-.95.147-.344.067-.519.147-.02.006.482-.138-.285 2.277 2.152 2.621 2.962 4.131-.237 1.279-.649 2.537-.662 3.803-.014 1.265.368 2.537.716 4.662l-3.615-3.143-2.082 3.234c-.402-.288-.988-.499-1.014-.763-.181-1.764-.168-3.552-.372-5.313-.177-1.523-1.212-2.326-2.711-2.443-.884-.07-1.781-.034-2.671.017-4.362.241-6.066 1.667-6.893 5.787-.13.649-.067 1.339-.167 1.998-.77 4.941-1.125 5.252-6.57 4.78-1.668-.144-3.134.014-4.322 1.199-2.176 2.172-4.328 1.811-6.574.14-.318-.234-.824-.214-1.413-.354-.673.334-1.543.629-2.242 1.148-2.621 1.948-5.145 2.373-7.91.164-.757-.603-2.076-.817-3.083-.713-2.002.207-3.749.388-5.747-.693-1.286-.696-3.351.053-5.69.194-1.986-2.44-5.22-3.521-8.965-3.518-1.168-2.812-2.514-5.068-5.737-5.945-2.045-.556-2.407-4.197-.85-5.761 1.553-1.559 3.206-2.979 5.446-3.722 4.646-1.546 9.228-3.304 13.777-5.121a310 310 0 0 0 13.53-5.754c9.871-4.499 17.895-11.552 25.684-18.902.13-.124.094-.426.137-.643q1.257-.508 2.514-1.021-.212-.387-.425-.773-.973.973-1.945 1.948c-1.958 1.004-3.966 1.918-5.861 3.026-7.679 4.492-12.275 4.11-19.485-1.235-2.152-1.594-3.792-3.328-5.44-5.477-2.905-3.789-5.449-8.077-9.703-10.731-.713-.445-1.717-1.403-1.63-1.985.61-4.238-3.947-5.637-4.807-9.064-.224-.898-1.315-1.751-2.212-2.267-2.096-1.208-3.31-2.748-3.441-5.292-.044-.873-1.031-1.901-1.851-2.497-2.14-1.556-3.364-3.404-3.321-6.166.017-.977-.562-2.145-1.232-2.915-1.546-1.788-2.477-3.562-1.941-6.065.18-.847-.646-1.949-1.105-2.886-.582-1.185-2.075-2.657-1.76-3.424 1.312-3.2-.72-4.994-2.24-7.136-1.379-1.942-1.312-1.989.696-5.423-.71-3.046-4.676-4.88-3.749-8.88 3.522-2.749 6.464.81 10.17 1.405-1.011-3.243-3.14-5.248-4.563-7.658-1.004-1.7-1.854-3.512-2.58-5.35-.389-.98 1.147-2.35 2.075-1.874 1.563.8 3.133 1.664 4.512 2.738 2.095 1.634 4.03 3.475 6.048 5.242 1.383-1.376.057-2.119-.348-2.929-1.198-2.39-2.657-4.653-3.742-7.09-.71-1.593-1.098-3.38-1.312-5.12C10.995 1.56 11.598.42 12.2.124c.593-.288 1.948-.053 2.333.445 2.45 3.167 4.713 6.477 7.056 9.728 1.39 1.928 2.263 4.294 4.924 5.995-.093-4.77-3.96-8.566-1.62-13.64 1.045.967 2.062 1.516 2.477 2.36 1.47 2.995 2.54 6.195 4.117 9.124 2.631 4.894 5.45 9.694 8.385 14.413.757 1.212 2.25 1.969 3.401 2.933q.056.532.117 1.064l.62-.415q-.447-.256-.894-.509zm76.967 66.119c-.659-.542-1.124-1.225-1.58-1.219-.425.007-1.181.77-1.158 1.165.024.452.716 1.159 1.175 1.209.418.043.917-.643 1.567-1.155z"})),a||(a=p.createElement("path",{fill:"#000",d:"M140.183 58.89c1.335.482 2.339.844 3.283 1.182-.706 6.336-.947 6.664-10.949 15.237.797.994 1.597 1.995 2.665 3.323-.773.747-1.403 1.667-2.28 2.146-3.739 2.042-7.702 3.572-12.016 3.582-6.893.01-13.785-.12-20.673-.288-2.2-.054-4.49-.084-6.518-2.193.86-.89 1.58-2.025 2.611-2.634 6.22-3.682 10.384-9.674 15.953-14.079.647-.508 1.028-1.422 1.383-2.216 1.961-4.368 1.945-4.375 6.417-5.278.582-2.042 1.084-4.198 1.811-6.276 1.017-2.91 1.807-3.22 6.068-2.548.278-.9.522-1.888.881-2.832 1.369-3.595 1.814-3.745 5.971-2.112.506-.673.937-1.456 1.563-2.028 1.172-1.068 2.919-.713 3.144.706.381 2.393.569 4.827.659 7.25.107 2.869.027 5.744.027 9.051z"})))};function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}var j=function(e){return p.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:110,height:98,fill:"none"},e),i||(i=p.createElement("path",{fill:"#000",d:"M15.277 94.76c6.602 2.389 14.042-4.981 11.897-11.034-.815-2.299-.992-4.827-1.485-7.383-1.02.175-1.922.321-2.821.486-4.948.896-9.49-.214-13.736-2.782-.511-.311-1.002-.658-1.505-.977C1.433 69.148-1.262 62.04.56 54.867c1.204-4.752 3.573-8.888 6.597-12.616 2.687-3.309 5.708-6.35 8.66-9.438.742-.776 1.047-1.462.726-2.487-2.35-7.52-.935-14.697 2.086-21.694a58 58 0 0 1 2.862-5.711c.568-1 1.436-1.827 2.32-2.921 2.59 2.212 4.069 4.796 5.022 7.599.874 2.571 1.398 5.279 1.886 7.964 1.153 6.337-.743 11.989-4.106 17.28-1.248 1.968-2.748 3.682-4.65 5.04-1.148.82-1.556 1.843-1.212 3.302.666 2.813 1.17 5.664 1.77 8.652 1.148.098 2.25.108 3.32.295 4.816.848 8.307 3.538 10.09 8.057 1.978 5.02.298 9.44-3.121 13.222-1.465 1.618-3.363 2.841-5.154 4.318.47 2.695.874 5.562 1.48 8.385 1.318 6.137-3.73 12.847-10.555 13.461-3.766.34-6.898-.842-9.23-3.876-2.87-3.733-1.724-8.735 2.455-10.864 2.045-1.043 4.123-.83 5.74.583 1.882 1.65 2.558 4.434 1.649 6.792-.674 1.742-1.419 2.626-3.913 4.552zm3.525-54.41c-3.263 3.036-6.317 5.426-8.804 8.305-3.422 3.959-5.51 8.64-5.251 14.055.133 2.803 1.048 5.346 3.103 7.357 3.764 3.684 8.326 5.215 13.526 4.794 1.29-.105 2.766.103 3.848-1.133-1.156-6.019-2.312-12.023-3.53-18.368-1.49.717-2.703 1.136-3.733 1.827-2.44 1.639-3.3 4.018-2.473 6.92.341 1.2 1.053 2.297 1.6 3.438.277.575.565 1.145.904 1.829-1.968.693-2.749-.54-3.501-1.632-4.038-5.87-2.13-13.276 4.223-16.518.655-.334 1.315-.665 2.001-1.014-.614-3.17-1.194-6.156-1.913-9.86m6.311-32.851c-5.728 3.103-9.412 16.893-5.993 22.074.938-.88 1.932-1.687 2.772-2.63 3.113-3.497 5.53-7.35 5.875-12.19.198-2.769-.552-5.189-2.651-7.254zm1.865 65.132c.725-.586 1.159-.848 1.477-1.207 2.644-2.98 3.063-6.567 2.618-10.31-.434-3.647-3.357-5.808-7.419-5.44 1.082 5.51 2.156 10.995 3.324 16.957M81.004 43.743c.171-11.852.34-23.59.514-35.53 1.055-.061 1.83-.14 2.609-.145C91.513 8.038 98.9 8.02 106.288 8c.512 0 1.027 0 1.537.024 1.81.088 2.169.387 2.173 2.242a873 873 0 0 1-.088 13.823c-.094 7.088-.264 14.173-.323 21.26-.024 2.759-1.05 4.983-3.154 6.682-3.074 2.485-6.52 3.87-10.557 3.083-3.15-.615-4.292-3.033-2.866-5.905 1.033-2.08 2.806-3.356 4.771-4.373 3.174-1.646 6.486-2.075 10.171-.651.402-6.598.086-13.07.345-19.852-8.518-.173-16.874-.037-25.522-.125 0 2.176.011 4.132 0 6.09-.035 5.193-.105 10.386-.112 15.58-.004 2.711-1.235 4.83-3.237 6.434-3.004 2.407-6.43 3.725-10.382 3.294-3.881-.424-5.307-3.51-3.21-6.777 2.26-3.525 9.513-7.305 14.469-5.123.123.055.285.022.705.044zm27.205-29.32H83.125v3.256h25.084z"})))};function w(e){var l,t,n,a,i;
1let{content:s,year:r,type:o}=e,d=null==s?void 0:s.filter(e=>{var l,t;return(null==e?void 0:null===(l=e.attributes)||void 0===l?void 0:l.year)===parseInt(r)&&(null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.festival_type)===o}),u=[],v=null===(t=d[0])||void 0===t?void 0:null===(l=t.attributes)||void 0===l?void 0:l.time_slot,p=null===(i=d[0])||void 0===i?void 0:null===(a=i.attributes)||void 0===a?void 0:null===(n=a.archived_poster)||void 0===n?void 0:n.data,g=v?null==v?void 0:v.filter(e=>(null==e?void 0:e.__typename)==="ComponentScheduleSession"):[],x=v?null==v?void 0:v.filter(e=>(null==e?void 0:e.__typename)==="ComponentScheduleConcert"):[],w=v?null==v?void 0:v.filter(e=>(null==e?void 0:e.__typename)==="ComponentScheduleArchivalArtist"):[];(null==g?void 0:g.length)>0&&(null==g||g.map(e=>{var l,t;null==e||null===(t=e.artists)||void 0===t||null===(l=t.data)||void 0===l||l.map(e=>{var l,t;null==u||u.push({name:null==e?void 0:null===(l=e.attributes)||void 0===l?void 0:l.name,slug:null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.slug})})})),x.length>0&&(null==x||x.map(e=>{var l,t,n,a,i,s;null==u||u.push({name:null==e?void 0:null===(n=e.artist)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:null===(l=t.attributes)||void 0===l?void 0:l.name,slug:null==e?void 0:null===(s=e.artist)||void 0===s?void 0:null===(i=s.data)||void 0===i?void 0:null===(a=i.attributes)||void 0===a?void 0:a.slug})})),w.length>0&&(null==w||w.map(e=>{null==u||u.push({name:null==e?void 0:e.artist_name,slug:null})}));let N=u.filter((e,l)=>l===u.findIndex(l=>e.name===l.name)).sort((e,l)=>{var t,n;let a=null==e?void 0:null===(t=e.name)||void 0===t?void 0:t.toLowerCase().replace(/^the /,""),i=null==l?void 0:null===(n=l.name)||void 0===n?void 0:n.toLowerCase().replace(/^the /,"");return null==a?void 0:a.localeCompare(i)});return(0,c.jsxs)("div",{className:"archive-list pad-top".concat(p?" grid-2":""),children:[!!p&&(0,c.jsx)("div",{className:"image-container",children:(0,c.jsx)(h.default,{src:null==p?void 0:p.attributes,size:"half"})}),N.length>0?(0,c.jsx)("div",{className:"artist-list",children:N.map((e,l)=>!!e.name&&(0,c.jsxs)("div",{className:"artist-wrapper".concat((null==e?void 0:e.slug)?" artist-link-out":""),children:[(0,c.jsx)("p",{className:"artist-name",children:null==e?void 0:e.name}),(null==e?void 0:e.slug)!==null&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m.default,{className:"artist-link",href:"../artists/".concat((null==e?void 0:e.slug)&&(null==e?void 0:e.slug))||0,"aria-label":"link to artist single page",rel:"noopener noreferrer"}),(0,c.jsx)(f.default,{})]})]},l))}):(0,c.jsxs)("div",{className:"no-results flex-center pad-bottom",children:[(0,c.jsx)(y,{className:"bird"}),(0,c.jsx)(j,{className:"music"}),(0,c.jsx)("h2",{className:"headline-5 center",children:"Block_heater"===o?"Are you a real Folkie? Block Heater didn't start until in 2016.":"Oops! We didn’t find anything."})]})]})}function N(e){let{artists:l}=e,t=l.reduce((e,l)=>{var t,n,a,i,s;let r=(null==l?void 0:null===(t=l.name)||void 0===t?void 0:t.startsWith("The "))?null==l?void 0:null===(a=l.name)||void 0===a?void 0:null===(n=a.charAt(4))||void 0===n?void 0:n.toUpperCase():null==l?void 0:null===(s=l.name)||void 0===s?void 0:null===(i=s.charAt(0))||void 0===i?void 0:i.toUpperCase();return/^\d+$/.test(r)?(e["#"]=e["#"]||[],e["#"].push(l)):(e[r]=e[r]||[],e[r].push(l)),e},[]);return(0,c.jsx)("div",{className:"all-artists-list pad-top",children:Object.keys(t).map((e,l)=>(0,c.jsxs)("div",{className:"list-section pad-small-bottom",children:[(0,c.jsx)("p",{className:"headline-6",children:e}),(0,c.jsx)("div",{className:"artist-list",children:t[e].map((e,l)=>(0,c.jsxs)("div",{className:"artist-wrapper".concat((null==e?void 0:e.slug)?" artist-link-out":""),children:[(0,c.jsx)("p",{className:"artist-name",children:null==e?void 0:e.name}),(0,c.jsx)("div",{className:"years",children:e.years.map((e,l)=>(0,c.jsx)("span",{className:"text-grey",children:0==l?e:", "+e},l))}),(null==e?void 0:e.slug)!==null&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m.default,{className:"artist-link",href:"../artists/".concat((null==e?void 0:e.slug)&&(null==e?void 0:e.slug))||0,"aria-label":"link to artist single page",rel:"noopener noreferrer"}),(0,c.jsx)(f.default,{})]})]},l))})]},l))})}var b=t(3083),k=t(6578);function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}var _=function(e){return p.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:29,height:29,fill:"none"},e),s||(s=p.createElement("circle",{cx:12.684,cy:11.864,r:10.864,stroke:"#1B1B1B",strokeWidth:2})),r||(r=p.createElement("path",{stroke:"#1B1B1B",strokeWidth:2,d:"m19.98 20.384 7.91 7.909"})))};function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}var C=function(e){return p.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none"},e),o||(o=p.createElement("path",{fill:"#1B1B1B",d:"M4 26.627 26.627 4l1.414 1.414L5.414 28.04z"})),d||(d=p.createElement("path",{fill:"#1B1B1B",d:"m5.414 4 22.627 22.627-1.414 1.415L4 5.414z"})))};function L(e){let{open:l,page:t,artists:n}=e,[a,i]=(0,u.useState)(0),[s,r]=(0,u.useState)(!1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"search-container".concat(s?" open":" close"),children:[(0,c.jsx)("div",{className:"search-icon",children:s?(0,c.jsx)("span",{className:"close",onClick:()=>{r(!1)},children:(0,c.jsx)(C,{})}):(0,c.jsx)("span",{className:"open",onClick:()=>{r(!0)},children:(0,c.jsx)(_,{})})}),(0,c.jsx)("div",{className:"search-bar-wrapper",children:(0,c.jsx)("div",{className:"search-bar-container".concat(s?" open":" close"),children:(0,c.jsx)("input",{type:"search",placeholder:"Type an artist name",onChange:e=>{let{value:l}=e.target;i(new k.Z(n,{keys:["name"],threshold:.2,distance:25}).search(l).map(e=>e.item))}})})})]}),(0,c.jsxs)("div",{className:"results-wrap",children:[a.length>0&&"search"===t&&(0,c.jsx)("div",{className:"search-results pad",children:null==a?void 0:a.map((e,l)=>{var t;return(0,c.jsxs)("div",{className:"artist-wrapper artist-result".concat((null==e?void 0:e.slug)?" artist-link-out":""),children:[(0,c.jsx)("p",{className:"artist-name",children:null==e?void 0:e.name}),(null==e?void 0:e.slug)!==null&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m.default,{className:"artist-link",href:"../artists/".concat((null==e?void 0:e.slug)&&(null==e?void 0:e.slug))||0,"aria-label":"link to artist single page",rel:"noopener noreferrer"}),(0,c.jsx)(f.default,{})]}),(0,c.jsx)("div",{className:"artist-festivals flex gap-1",children:null===(t=e.festivals)||void 0===t?void 0:t.map((e,l)=>(0,c.jsxs)("p",{className:"p-sm",children:[e.slice(-5)," — ",e.slice(0,-5)]},l))},l)]},l)})}),(!a.length||0==a.length)&&"search"===t&&(0,c.jsxs)("div",{className:"no-results flex-center pad",children:[(0,c.jsx)(y,{className:"bird"}),(0,c.jsx)(j,{className:"music"}),(0,c.jsx)("h2",{className:"headline-5 center",children:"Oops! We didn't find anything."})]})]})]})}function z(e){var l,t;let{content:n,artists:a}=e,i=(0,v.useSearchParams)(),[s,r]=(0,u.useState)(""),o=[];null==n||n.map(e=>{var l,t;o.push({year:null==e?void 0:null===(l=e.attributes)||void 0===l?void 0:l.year,type:null==e?void 0:null===(t=e.attributes)||void 0===t?void 0:t.festival_type})});let d=o.filter((e,l)=>l===(null==o?void 0:o.findIndex(l=>(null==e?void 0:e.year)===(null==l?void 0:l.year)))).sort((e,l)=>(null==l?void 0:l.year)-(null==e?void 0:e.year)),[h,m]=(0,u.useState)(i.get("year")?i.get("year"):null===(l=d[0])||void 0===l?void 0:l.year),[f,p]=(0,u.useState)(i.get("type")?i.get("type"):null===(t=d[0])||void 0===t?void 0:t.type),[g,y]=(0,u.useState)(!1),[x,j]=(0,u.useState)(!1);function k(){setTimeout(()=>{(null==i?void 0:i.get("year"))&&(_(void 0,i.get("year")),m(i.get("year")))},50)}function E(){var e;null===(e=document.querySelector(".year-selector"))||void 0===e||e.classList.remove("open"),document.querySelector(".year-list")&&(document.querySelector(".year-list").scrollTop=0)}function _(e,l){var t,n,a,i;let s=null==e?void 0:e.target,r=null===(t=document)||void 0===t?void 0:t.querySelector(".year-wrapper");if(function(){let e=document.querySelectorAll(".year-button");
1null==e||e.forEach(e=>{e.classList.remove("active")})}(),!e&&l){let e=null===(a=document)||void 0===a?void 0:a.querySelectorAll(".year-button");null==e||e.forEach((e,t,n)=>{if((null==e?void 0:e.innerHTML)===l){var a;null===(a=e.classList)||void 0===a||a.add("active")}})}else s instanceof HTMLElement&&(null==s||null===(i=s.classList)||void 0===i||i.add("active"),m(parseInt(null==s?void 0:s.innerHTML)),window.history.replaceState(null,"","?type=".concat(f,"&year=").concat(null==s?void 0:s.innerHTML)));null==r||null===(n=r.classList)||void 0===n||n.remove("open"),E()}(0,u.useLayoutEffect)(()=>{x||(k(),j(!0))},[]),(0,u.useMemo)(()=>{x&&("search"===f?(window.history.replaceState(null,"","?type=search"),y(!0)):"all_artists"===f?(window.history.replaceState(null,"","?type=".concat(f)),y(!1)):f&&h&&(window.history.replaceState(null,"","?type=".concat(f,"&year=").concat(h)),y(!1)),E())},[f,h]);let S=[];return a.forEach(e=>{if(S.map(e=>e.name).includes(e.name)){for(let l=0;l<S.length;l++)if(S[l].name===e.name){S[l].years.push(e.year),S[l].festivals.push(e.festival_name);break}}else S.push({name:e.name,years:[e.year],festivals:[e.festival_name],slug:e.slug})}),S=S.sort((e,l)=>{var t;return null==e?void 0:null===(t=e.name)||void 0===t?void 0:t.localeCompare(null==l?void 0:l.name)}),(0,c.jsxs)(b.default,{children:[(0,c.jsxs)("div",{className:"intro-content",children:[(0,c.jsx)("h1",{className:"headline-1 uppercase",children:"search"===f?"Search":"Past Lineups"}),d.length>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"filter-container",children:[(0,c.jsx)("button",{className:"button-group-button sort-button uppercase".concat("Folk_fest"===f?" active":""),onClick:()=>{p("Folk_fest"),k()},children:"Calgary Folk Music Festival"}),(0,c.jsx)("button",{className:"button-group-button sort-button uppercase".concat("Block_heater"===f?" active":""),onClick:()=>{p("Block_heater"),k()},children:"Block Heater"}),(0,c.jsx)("div",{className:"year-wrapper",children:"all_artists"===f?(0,c.jsxs)("div",{className:"year-selector-disabled",children:[(0,c.jsx)("div",{className:"year-list-disabled flex-center",children:(0,c.jsx)("span",{className:"headline-6",children:" - - - - "})}),(0,c.jsx)("div",{className:"arrow-container",children:(0,c.jsx)("div",{className:"arrow"})})]}):(0,c.jsxs)("div",{className:"year-selector",onClick:()=>{let e;null==(e=document.querySelector(".year-selector"))||e.classList.toggle("open")},children:[(0,c.jsx)("div",{className:"year-list",children:d.map((e,l)=>(0,c.jsx)("button",{className:"headline-6 underline year-button".concat(0===l?" active":""),onClick:l=>{_(l),m(e.year)},children:e.year},l))}),(0,c.jsx)("div",{className:"arrow-container",children:(0,c.jsx)("div",{className:"arrow"})})]})}),(0,c.jsx)("button",{className:"button-group-button sort-button uppercase".concat("all_artists"===f?" active":""),onClick:()=>{p("all_artists")},children:"All Artists"})]}),(0,c.jsx)("div",{className:"search-wrap",onClick:()=>{p("search")},children:(0,c.jsx)(L,{artists:S,open:g,page:f})})]})]}),"all_artists"!==f&&"search"!==f&&(0,c.jsx)(w,{content:n,year:h,type:f}),"all_artists"===f&&(0,c.jsx)(N,{artists:S})]})}}},function(e){e.O(0,[1495,922,7138,3209,677,3084,209,2971,2275,1744],function(){return e(e.s=9941)}),_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.