PageSourceSearch

https://swap.ca/_next/static/chunks/9144-f0f6fd16b2223ede.js

js swap.ca collected 2026-10-04 00:30:10 UTC 9,980 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9144],{45095:function(e,t,r){r.d(t,{a:function(){return m}});var n=r(52322),i=r(7702),l=r(51984);r(47437),r(41339),r(19099),r(88891);var a=r(2784),o=r(24240),s=r(92967);let c=()=>{let e=(0,a.useRef)(null);return{swiperRef:e,handlePrev:()=>{var t,r;null==e||null===(r=e.current)||void 0===r||null===(t=r.swiper)||void 0===t||t.slidePrev()},handleNext:()=>{var t,r;null==e||null===(r=e.current)||void 0===r||null===(t=r.swiper)||void 0===t||t.slideNext()},stopAutoplay:()=>{var t,r,n;null==e||null===(n=e.current)||void 0===n||null===(r=n.swiper)||void 0===r||null===(t=r.autoplay)||void 0===t||t.stop()},startAutoplay:()=>{var t,r,n;null==e||null===(n=e.current)||void 0===n||null===(r=n.swiper)||void 0===r||null===(t=r.autoplay)||void 0===t||t.start()}}};var u=r(76214),d=r(15158),v=r(78502);let p=e=>{let{pagination:t=!1,paginationSx:r={},navigation:i=!1,navigationSx:l={},scrollBar:a=!1,scrollBarSx:s={},onPrevClick:c,onNextClick:p,instanceId:x=""}=e,{brand:h}=(0,u.DY)(),b=(0,v.Z)(),g={backgroundColor:h.colors.C1,opacity:.6,borderRadius:"50%",padding:b.spacing(3),"--swiper-navigation-color":h.colors.C2,"--swiper-navigation-size":b.spacing(2),cursor:"pointer",border:"none",transition:"opacity 0.2s ease","&:hover":{opacity:.8},...(0,d.S)(b),...l};return(0,n.jsxs)(n.Fragment,{children:[i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{component:"button","aria-label":"previous slide",className:"swiper-button-prev arrow-right",onClick:c,sx:g}),(0,n.jsx)(o.Z,{component:"button","aria-label":"next slide",className:"swiper-button-next arrow-left",onClick:p,sx:g})]}),t&&(0,n.jsx)(o.Z,{role:"group","aria-label":"slide navigation",sx:{position:"relative","--swiper-pagination-color":h.colors.C1,display:"flex",justifyContent:"center",mt:3,zIndex:2,...r},className:"swiper-custom-pagination-".concat(x)}),a&&(0,n.jsx)(o.Z,{role:"slider","aria-label":"slide position",sx:{"--swiper-scrollbar-bg-color":"#1E1E1E80","--swiper-scrollbar-drag-bg-color":"#1E1E1E",mx:"auto",mt:3,width:{xs:"80%",sm:"60%"},position:"relative",backgroundColor:"#1E1E1E80",borderRadius:"10px",zIndex:2,height:"11px",...s},className:"swiper-custom-scrollBar-".concat(x)})]})},x=e=>{let[t,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let t=new IntersectionObserver(e=>{let[t]=e;r(t.isIntersecting)},{threshold:.75});return t.observe(e.current),()=>{t.disconnect()}},[e]),t},h=(e,t,r)=>{let n=(0,a.useRef)(!1),[i,l]=(0,a.useState)(!1),[o,s]=(0,a.useState)(0);return(0,a.useEffect)(()=>{var t;if(!(null===(t=e.current)||void 0===t?void 0:t.swiper))return;let l=e.current.swiper,a=()=>{if(n.current=!1,i){if(r){var t,a;let r=null===(t=e.current)||void 0===t?void 0:t.swiper;Array.from((null==r?void 0:null===(a=r.pagination)||void 0===a?void 0:a.el).querySelectorAll(".swiper-pagination-bullet")).forEach(e=>{e.classList.contains("swiper-pagination-bullet-active")?(e.removeAttribute("inert"),requestAnimationFrame(()=>{e.focus()})):e.setAttribute("inert","")})}let n=l.slides[l.activeIndex],i=null==n?void 0:n.querySelector('button:not([disabled]),a[href],input:not([disabled]),[role="button"]:not([disabled]),textarea:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])');i?i.focus():null==n||n.focus()}};return l.on("slideChangeTransitionEnd",a),()=>{l.off("slideChangeTransitionEnd",a)}},[i,e,r]),(0,a.useEffect)(()=>{var t,r;let n=null===(r=e.current)||void 0===r?void 0:null===(t=r.swiper)||void 0===t?void 0:t.slides;n&&(i&&n.forEach(e=>{e.classList.contains("swiper-slide-active")?e.removeAttribute("inert"):e.setAttribute("inert","")}),i||n.forEach(e=>e.removeAttribute("inert")))},[o,i,e]),(0,a.useEffect)(()=>{if(!i)return;let e=t.current,r=()=>{l(!1)};return null==e||e.addEventListener("mousedown",r),null==e||e.addEventListener("touchstart",r),()=>{null==e||e.removeEventListener("mousedown",r),null==e||e.removeEventListener("touchstart",r)}},[i,t]),{handleKeyDown:t=>{var r,i;if(!(null===(r=e.current)||void 0===r?void 0:r.swiper)||(l(!0),n.current))return;let a=e.current.swiper,o=a.slides.length;switch(null===(i=a.autoplay)||void 0===i||i.stop(),t.key){case"ArrowRight":t.preventDefault(),n.current=!0,a.slideNext();break;case"ArrowLeft":t.preventDefault(),n.current=!0,a.slidePrev();break;case"Home":t.preventDefault(),n.current=!0,a.slideTo(0);break;case"End":t.preventDefault(),n.current=!0,a.slideTo(o-1);break;default:return}s(a.realIndex)}}};r(65438);var b=r(961),g=r(91560);let f={xs:{slidesPerView:1,spaceBetween:20}},m=e=>{let{children:t,className:r="",swiperStyle:u={},swiperWrapperSx:d={},slideWrapperStyle:v={},pagination:m=!1,paginationSx:w={},navigation:j=!1,navigationSx:y={},scrollBar:Z=!1,scrollBarSx:k={},breakPoints:E=f,ariaLabelledby:C,ariaLabel:B,...L}=e,{swiperRef:I,handlePrev:A,handleNext:P,stopAutoplay:S,startAutoplay:D}=c(),N=(0,a.useRef)(null),T=(0,a.useId)().replace(/[^a-zA-Z0-9-_]/g,""),[R,F]=(0,a.useState)(""),O=x(N),{handleKeyDown:V}=h(I,N,m),z=a.Children.toArray(t),_=g.Z.spacing(3);if(k){var W;_=null!==(W=null==k?void 0:k.mt)&&void 0!==W?W:0}
1let q=[m&&l.tl,j&&l.W_,Z&&l.LW,l.s5,l.pt].filter(Boolean),M=null!=E?E:f,Y=function(e,t){let r={};for(let[n,i]of Object.entries(e))i&&(r[t[n]]=i);return r}(M,g.Z.breakpoints.values),H=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"100vw",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100vw",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={},i=r?"var(--breathing-room-right)":"0px",l=r?"var(--breathing-room-left)":"0px";for(let[r,a]of Object.entries(e)){if(!a)continue;let e=a.slidesPerView,o=Math.max(0,e-1)*a.spaceBetween;n[r]="min(calc(".concat(100/e,"vw - ").concat(l," - ").concat(i," - ").concat(o,"px), ").concat(t,")")}return n}(M,e,t)},[M]);return(0,n.jsx)(b.O,{getImageSizes:H,children:(0,n.jsxs)(o.Z,{ref:N,className:r,role:"group","aria-roledescription":"carousel","aria-label":C?void 0:null!=B?B:"Carousel","aria-labelledby":C,onKeyDown:V,sx:{mb:_,position:"relative",width:"100%",isolation:"isolate",...d},children:[(0,n.jsx)(s.Z,{role:"status","aria-live":"polite","aria-atomic":"true",children:R}),(0,n.jsx)(i.tq,{modules:q,breakpoints:Y,ref:I,navigation:{nextEl:".arrow-left",prevEl:".arrow-right"},loop:!0,speed:1200,autoplay:{delay:2500,disableOnInteraction:!0},a11y:{enabled:!0,scrollOnFocus:!0},onSlideChange:e=>{if(!O)return;let t=e.slides.length;setTimeout(()=>{F("Slide ".concat(e.realIndex+1," of ").concat(t))},500)},style:u,grabCursor:!0,pagination:{el:".swiper-custom-pagination-".concat(T),clickable:!0},scrollbar:{el:".swiper-custom-scrollBar-".concat(T),draggable:!1},...L,children:z.map((e,t)=>(0,n.jsx)(i.o5,{tabIndex:0,role:"group",onMouseEnter:S,onMouseLeave:D,style:{height:"auto",...v},children:e},t))}),(0,n.jsx)(p,{pagination:m,paginationSx:w,navigation:j,navigationSx:y,scrollBar:Z,scrollBarSx:k,onPrevClick:A,onNextClick:P,instanceId:T})]})})}},961:function(e,t,r){r.d(t,{I:function(){return a},O:function(){return o}});var n=r(52322),i=r(2784);let l=i.createContext(null);function a(){return i.useContext(l)}function o(e){let{children:t,getImageSizes:r}=e;return(0,n.jsx)(l.Provider,{value:{getImageSizes:r},children:t})}},29144:function(e,t,r){r.d(t,{D:function(){return y}});var n=r(52322),i=r(61470),l=r(27149),a=r(78502),o=r(45095),s=r(81384),c=r(94942),u=r(28774),d=r(73569),v=r(76214),p=r(87571),x=r(7570),h=r(42925);let b=e=>{let{title:t,subTitle:r,body:i,button:l,image:a}=e,{brand:o}=(0,v.DY)();return(0,n.jsxs)(s.Z,{sx:{width:"100%",backgroundColor:o.colors.C1,color:o.colors.C2,display:"flex",alignItems:"center"},component:"article",children:[(0,n.jsx)(u.Z,{sx:{position:"relative",aspectRatio:"1/1",height:"100%",minWidth:"20%"},children:(0,n.jsx)(h.d,{image:a,style:{objectFit:"cover"}})}),(0,n.jsxs)(c.Z,{sx:{width:"100%"},children:[(0,n.jsx)(p.Z,{variant:"h2",children:t}),(0,n.jsx)(p.Z,{variant:"subTitle",richText:!0,sx:{my:2},children:r}),(0,n.jsxs)(d.Z,{direction:"row",children:[(0,n.jsx)(p.Z,{variant:"body",richText:!0,sx:{maxWidth:"70ch",flexBasis:l?"60%":"100%"},children:i}),l&&(0,n.jsx)(x.o,{variant:"primary",href:l.url,linkLabel:l.linkLabel,sx:{mx:"auto",flexBasis:"30%",height:"min-content"},children:l.text})]})]})]})};var g=r(11929),f=r(961);let m=e=>{let{title:t,subTitle:r,body:i,button:l,image:a}=e,{brand:o}=(0,v.DY)(),{getImageSizes:d}=(0,f.I)();return(0,n.jsxs)(s.Z,{sx:{backgroundColor:o.colors.C1,color:o.colors.C2,display:"flex",flexDirection:"column",height:"100%"},component:"article",children:[(0,n.jsx)(u.Z,{sx:{position:"relative",aspectRatio:"1/1"},children:(0,n.jsx)(h.d,{sizes:d(),image:a,style:{objectFit:"cover"}})}),(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(p.Z,{variant:"h3",sx:{mb:2},children:t}),(0,n.jsx)(p.Z,{variant:"banner",richText:!0,sx:{mb:2},children:r}),(0,n.jsx)(p.Z,{variant:"body",richText:!0,children:i})]}),l&&(0,n.jsx)(g.Z,{sx:{mt:"auto"},children:(0,n.jsx)(x.o,{variant:"secondary",href:l.url,linkLabel:l.linkLabel,sx:{width:"100%"},children:l.text})})]})};var w=r(36535),j=r(94965);let y=e=>{let{events:t,eventsSection:r,isEventsPage:s=!1}=e,c=(0,a.Z)(),u=(0,l.Z)(c.breakpoints.up("lg"));return(0,n.jsxs)(i.ZP,{container:!0,gap:2,id:null==r?void 0:r.navigationButton,sx:{scrollMarginTop:c.spacing(17)},children:[r&&(0,n.jsx)(w.H,{tagLine:r.tagLine,title:r.title,id:"events-section-heading"}),s&&u?(0,n.jsx)(i.ZP,{container:!0,gap:2,children:t.map((e,t)=>(0,n.jsx)(b,{...e},t))}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.a,{scrollBar:!0,scrollBarSx:{mt:2},breakPoints:{xs:{slidesPerView:1,spaceBetween:20},sm:{slidesPerView:2,spaceBetween:20},lg:{slidesPerView:3,spaceBetween:20}
1,xl:{slidesPerView:4,spaceBetween:20}},ariaLabelledby:"events-section-heading",children:null==t?void 0:t.map((e,t)=>(0,n.jsx)(m,{...e},t))}),(0,n.jsx)(j.Z,{href:"/events",sx:{fontWeight:"600",display:"inline-block",margin:"12px auto"},children:"View all events"})]})]})}}}]);

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.