PageSourceSearch

https://swap.ca/_next/static/chunks/9115-755cb1025dbf2c0b.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9115],{60833:function(e,t,n){n.d(t,{Z:function(){return F}});var o=n(52322),r=n(94342),i=n(24240),a=n(76214),l=n(53235),s=n(86554),c=n(87571),d=n(94965),x=n(75700),h=n(1592),u=e=>{let{hero:t}=e,{brand:n}=(0,a.DY)(),{availableCountries:r}=(0,l.Dj)(),u=(null==r?void 0:r.length)>1,m="5dvh",p=n.imageTransition.enableTransition?"calc(".concat(m," / 2)"):0;return(0,o.jsxs)(i.Z,{className:"full-bleed",component:"section",sx:{mt:-2,mb:"calc(var(--components-spacing) * -1 + ".concat(p,")")},children:[(0,o.jsxs)(i.Z,{sx:{"--hero-height":{xs:"45dvh",sm:"50dvh"},position:"relative",minHeight:"var(--hero-height)"},children:[(0,o.jsx)(s.e,{background:t.backgroundImage}),(0,o.jsxs)(i.Z,{sx:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",minHeight:"var(--hero-height)",color:n.colors.C2,pl:"var(--breathing-room-left)",pr:"var(--breathing-room-right)",py:m},children:[(0,o.jsx)(c.Z,{variant:"tagLine",sx:{mb:2},children:t.tagLine}),(0,o.jsx)(c.Z,{variant:"h1",sx:{mb:2},children:t.title}),(0,o.jsx)(c.Z,{variant:"body",sx:{mb:3,maxWidth:"600px"},children:t.introText}),u&&(0,o.jsx)(i.Z,{sx:{mb:2},children:(0,o.jsx)(x.Z,{})}),t.secondaryAction&&(0,o.jsx)(d.Z,{href:t.secondaryAction.url,linkLabel:t.secondaryAction.linkLabel,sx:{textDecoration:"underline",fontWeight:600,"&:hover":{opacity:.8}},children:t.secondaryAction.text})]})]}),(0,o.jsx)(i.Z,{position:"relative",width:"100%",children:(0,o.jsx)(h.Z,{brand:n,rotate:"bottom",width:"100%",height:m,priority:!0})})]})},m=n(42925),p=n(7570);let g=e=>{let{card:t,backgroundColor:n,buttonType:r="secondary"}=e;return(0,o.jsxs)(i.Z,{sx:{p:2,borderRadius:"2px",display:"flex",flexDirection:"column",backgroundColor:n||"transparent"},children:[(0,o.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2},children:[t.icon&&(0,o.jsx)(i.Z,{children:(0,o.jsx)(m.d,{image:t.icon,width:80,height:80,sizes:{xs:"80px"}})}),(0,o.jsxs)(i.Z,{sx:{display:"flex",flex:1,flexDirection:"column",textAlign:t.icon?"start":"center"},children:[t.label&&(0,o.jsx)(c.Z,{variant:"body",sx:{fontSize:{md:"".concat(1.25,"rem")}},children:t.label}),t.title&&(0,o.jsx)(c.Z,{variant:"h4",children:t.title}),t.body&&(0,o.jsx)(c.Z,{variant:"body",sx:{fontSize:{xs:"".concat(1,"rem"),md:"".concat(1.125,"rem")}},children:t.body})]})]}),t.button&&(0,o.jsx)(p.o,{variant:r,href:t.button.url,linkLabel:t.button.linkLabel,sx:{width:"100%",mt:2},children:t.button.text})]})},b=e=>{let{tabs:t,tabColors:n}=e;return(0,o.jsx)(i.Z,{sx:{display:"grid",gridTemplateColumns:"repeat(".concat(t.length,", 1fr)"),columnGap:4},children:t.map((e,t)=>{var r;return(0,o.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[e.tabLabel&&(0,o.jsx)(c.Z,{variant:"h3",sx:{textAlign:"center",py:2,backgroundColor:n[t%n.length]},children:e.tabLabel}),null===(r=e.cards)||void 0===r?void 0:r.map((e,r)=>(0,o.jsx)(g,{card:e,backgroundColor:n[t%n.length]},r))]},t)})})};var v=n(2784),f=n(41674),j=n(54386),y=n(78502);let Z=e=>{let{tabs:t,tabColors:n}=e,[r,l]=(0,v.useState)(0),s=(0,y.Z)(),{brand:c}=(0,a.DY)();return(0,o.jsxs)(i.Z,{children:[(0,o.jsx)(i.Z,{sx:{borderBottom:1,borderColor:"divider",mb:2},children:(0,o.jsx)(f.Z,{value:r,onChange:(e,t)=>
1{l(t)},"aria-label":"Contact options",sx:{"& .MuiTabs-flexContainer":{columnGap:2},"& .MuiTabs-indicator":{backgroundColor:c.colors.C1}},children:t.map((e,t)=>{var r,i;return(0,o.jsx)(j.Z,{label:e.tabLabel,id:"contact-tab-".concat(t),"aria-controls":"contact-tabpanel-".concat(t),sx:{flex:1,backgroundColor:n[t%n.length],textTransform:"none",fontFamily:c.fonts.callToAction.name,fontWeight:c.fonts.callToAction.weight,fontSize:"".concat(1.125,"rem"),borderRadius:"".concat((null===(r=s.border)||void 0===r?void 0:r.radius.xs)||"2px"," ").concat((null===(i=s.border)||void 0===i?void 0:i.radius.xs)||"2px"," 0 0"),"&.Mui-selected":{color:c.colors.C1}}},t)})})}),t.map((e,t)=>{var a;return(0,o.jsx)(i.Z,{role:"tabpanel",hidden:r!==t,id:"contact-tabpanel-".concat(t),"aria-labelledby":"contact-tab-".concat(t),children:r===t&&(0,o.jsx)(i.Z,{sx:{display:"flex",flexDirection:"column",gap:2},children:null===(a=e.cards)||void 0===a?void 0:a.map((e,r)=>(0,o.jsx)(g,{card:e,backgroundColor:n[t%n.length]},r))})},t)})]})},C=["#FFF3CD","#CCE5FF","#D4EDDA"],k=e=>{let{tagLine:t,title:n,tabs:r}=e;return r&&0!==r.length?(0,o.jsxs)(i.Z,{children:[t&&(0,o.jsx)(c.Z,{variant:"tagLine",sx:{textAlign:"center",mb:1},children:t}),n&&(0,o.jsx)(c.Z,{variant:"h2",sx:{textAlign:"center",mb:4},children:n}),(0,o.jsx)(i.Z,{sx:{display:{xs:"none",md:"block"}},children:(0,o.jsx)(b,{tabs:r,tabColors:C})}),(0,o.jsx)(i.Z,{sx:{display:{xs:"block",md:"none"}},children:(0,o.jsx)(Z,{tabs:r,tabColors:C})})]}):null},T=e=>{let{tagLine:t,title:n,cards:r}=e,{brand:l}=(0,a.DY)();return(0,o.jsxs)(i.Z,{sx:{textAlign:"center"},children:[t&&(0,o.jsx)(c.Z,{variant:"tagLine",children:t}),n&&(0,o.jsx)(c.Z,{variant:"h2",children:n}),(0,o.jsx)(i.Z,{sx:{display:"flex",flexDirection:"column",backgroundColor:"#C9B8D4",gap:3,maxWidth:"800px",mx:"auto",mt:{xs:2,md:3},p:{xs:2,md:4}},children:null==r?void 0:r.map((e,t)=>(0,o.jsx)(i.Z,{sx:{backgroundColor:l.colors.C2,borderRadius:"2px"},children:(0,o.jsx)(g,{card:e,buttonType:"inverted"})},t))})]})},w=e=>{var t,n,r,a,l;let{card:s}=e,d=null===(t=s.content)||void 0===t?void 0:t.find(e=>"ComponentContactButton"===e.__typename),x=null===(n=s.content)||void 0===n?void 0:n.find(e=>"ComponentContactGoogleMapLink"===e.__typename),h=null===(r=s.content)||void 0===r?void 0:r.find(e=>"ComponentContactImage"===e.__typename),u=null===(a=s.content)||void 0===a?void 0:a.filter(e=>"ComponentContactTextLine"===e.__typename),g=!!d;return(0,o.jsxs)(i.Z,{sx:{p:3,borderRadius:"2px",backgroundColor:"hsla(216, 86%, 64%, 0.5)",border:"1px solid",borderColor:"divider",display:"grid",gridTemplateColumns:{xs:"1fr",sm:g?"1fr":"200px 1fr",lg:g?"1fr":"250px 1fr"},gap:2},children:[(0,o.jsxs)(i.Z,{sx:{p:2,overflowWrap:"break-word",minWidth:0},children:[s.title&&(0,o.jsx)(c.Z,{variant:"subTitle",sx:{mb:1},children:s.title}),s.body&&(0,o.jsx)(c.Z,{variant:"body",richText:!0,children:s.body}),d&&(0,o.jsx)(p.o,{variant:"inverted",href:d.url,linkLabel:null!==(l=d.linkLabel)&&void 0!==l?l:void 0,sx:{mt:3,width:{xs:"100%",lg:"50%"}},children:d.text})]}),!g&&(0,o.jsxs)(i.Z,{sx:{"--height":{xs:"300px",lg:"400px"},display:"flex",flexDirection:"column",gap:1,backgroundColor:"common.white",borderRadius:"4px",minHeight:"var(--height)"},children:[null==u?void 0:u.map((e,t)=>(0,o.jsx)(i.Z,{sx:{p:2},children:e.text&&(0,o.jsx)(c.Z,{variant:"body",richText:!0,children:e.text})},t)),(null==x?void 0:x.link)&&(0,o.jsx)(i.Z,{component:"iframe",src:x.link,sx:{height:"var(--height)",width:"100%",border:0,borderRadius:"4px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Google Maps"}),(null==h?void 0:h.image)&&(0,o.jsx)(i.Z,{sx:{position:"relative",minHeight:"var(--height)",flex:1},children:(0,o.jsx)(m.d,{image:h.image,url:h.url,linkLabel:h.linkLabel,sizes:{xs:"100vw",sm:"50vw",lg:"400px"},style:{objectFit:"cover",borderRadius:"4px"}})})]})]})};var L=n(56861);let D=e=>{var t;let{localInfo:n}=e,{brand:r}=(0,a.DY)(),{country:s,setCountry:d,availableCountries:x}=(0,l.Dj)(),h=n.regionalCards.find(e=>e.country.locale===(null==s?void 0:s.locale)),u=null!==(t=null==h?void 0:h.country.locale)&&void 0!==t?t:n.regionalCards[0].country.locale,m=n.regionalCards.filter(e=>e.cards.length>0).map(e=>({label:e.country.name,value:e.country.locale}));return(0,o.jsxs)(i.Z,{sx:{py:4},children:[n.tagLine&&(0,o.jsx)(c.Z,{variant:"tagLine",sx:{textAlign:"center",mb:1},children:n.tagLine}),n.title&&(0,o.jsx)(c.Z,{variant:"h2",sx:{textAlign:"center",mb:4},children:n.title}),x.length>1&&(0,o.jsx)(L.n,{tabs:m,activeTab:u,onChange:e=>{let t=x.find(t=>t.locale===e);t&&d(t)},ariaLabel:"Regional contact information",idPrefix:"regional-tab",containerSx:{backgroundColor:r.colors.C1,borderRadius:"6px",py:1,mb:3,pr:{xs:1.5,md:0}}}),n.regionalCards.map(e=>{var t;return(0,o.jsx)(i.Z,{role:"tabpanel",hidden:u!==e.country.locale,id:"regional-tabpanel-".concat(e.country.locale),"aria-labelledby":"regional-tab-".concat(e.country.locale),children:u===e.country.locale&&(0,o.jsx)(i.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"repeat(2, 1fr)"},gap:{xs:2,md:3}},children:null===(t=e.cards)||void 0===t?void 0:t.map((e,t)=>(0,o.jsx)(w,{card:e},t))})},e.country.locale)})]})};var A=n(30231),F=e=>{var t;let{contactUsPage:n}=e;return(0,o.jsxs)(o.Fragment,{children:[n.hero&&(0,o.jsx)(u,{hero:n.hero}),n.generalContacts&&(0,o.jsx)(k,{...n.generalContacts}),n.paxContacts&&(0,o.jsx)(T,{...n.paxContacts}),n.localInfo&&(0,o.jsx)(D,{localInfo:n.localInfo}),n.offerBanner&&(0,o.jsx)(r.Z,{offer:n.offerBanner}),(null===(t=n.customTypeForm)||void 0===t?void 0:t.typeFormId)&&(0,o.jsx)(A.T,{id:n.customTypeForm.typeFormId,style:{display:"popup"===n.customTypeForm.mode?"none":"initial"}})]})}},86554:function(e,t,n){n.d(t,{e:function(){return a}});var o=n(52322),r=n(24240),i=n(42925);let a=e=>{let{background:t,icon:n=null,isProductHeroImage:a=!1}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.d,{image:t,style:{objectFit:"cover"},priority:a,sizes:a?{xs:"100vw",md:"".concat(62.5,"vw")}:{xs:"100vw"},placeholder:"blur"}),n&&(0,o.jsx)(i.d,{image:n,width:200,height:200,priority:!0,style:{right:"10%",bottom:0,position:"absolute"}}),(0,o.jsx)(r.Z,{"aria-hidden":"true",sx:{position:"absolute",height:"100%",width:"100%",backgroundImage:"linear-gradient(to right, rgba(0,0,0,.50) , rgba(0,0,0,.50) 65%)"}})]})}},94342:function(e,t,n){var o=n(52322),r=n(24240),i=n(61470),a=n(1592),l=n(2784),s=n(76214),c=n(86554),d=n(87571),x=n(7570),h=n(42925);let u=(0,l.forwardRef)((e,t)=>{let{offer:n}=e,{brand:i}=(0,s.DY)(),{subtitle:l,title:d,background:x,button:h,introText:u,promotionLogo:p}=n;return(0,o.jsxs)(r.Z,{ref:t,component:"section",className:"full-bleed",children:[i.imageTransition.enableTransition&&(0,o.jsx)(r.Z,{sx:{position:"relative",mt:"-".concat(4,"dvh")},children:(0,o.jsx)(a.Z,{brand:i,rotate:"top",width:"100%",height:"".concat(8,"vh")})}),(0,o.jsxs)(r.Z,{display:"flex",justifyContent:"center",sx:{position:"relative"},children:[(0,o.jsx)(c.e,{background:x}),(0,o.jsx)(m,{title:d,subtitle:l,introText:u,button:h,paperTearOff
1set:4,promotionLogo:p})]}),i.imageTransition.enableTransition&&(0,o.jsx)(r.Z,{sx:{position:"relative",mb:"-".concat(4,"dvh")},children:(0,o.jsx)(a.Z,{brand:i,rotate:"bottom",width:"100%",height:"".concat(8,"dvh")})})]})}),m=e=>{let{subtitle:t,title:n,button:a,introText:l,paperTearOffset:c,promotionLogo:u}=e,{brand:m}=(0,s.DY)();return(0,o.jsxs)(i.ZP,{rowGap:2,container:!0,justifyContent:"center",alignItems:"center",direction:"column",textAlign:"center",flexWrap:"nowrap",maxWidth:"xl",sx:{my:"".concat(2*c,"dvh"),pl:"var(--breathing-room-left)",pr:"var(--breathing-room-right)",position:"relative",color:m.colors.C2,width:{xs:"100%",md:"80%",lg:"70%",xl:"50%"}},children:[(null==u?void 0:u.url)&&(0,o.jsx)(r.Z,{sx:{objectFit:"cover",position:"relative",textAlign:{xs:"center",md:"center"},width:{xs:"20vw",md:"10%"},height:{xs:"6dvh",md:"10dvh"}},children:(0,o.jsx)(h.d,{"data-testid":"promotionLogo",image:u,style:{zIndex:1}})}),(0,o.jsx)(d.Z,{variant:"tagLine","data-testid":"tagLine",children:t}),(0,o.jsx)(d.Z,{variant:"h3",sx:{fontSize:{xs:"1.8rem",sm:"2rem"},lineHeight:1.25},children:n}),(0,o.jsx)(d.Z,{variant:"body","data-testid":"body",richText:!0,children:l}),(null==a?void 0:a.url)&&(0,o.jsx)(x.o,{href:a.url,linkLabel:a.linkLabel,variant:"primary",children:a.text})]})};u.displayName="OfferBanner",t.Z=u},56861:function(e,t,n){n.d(t,{n:function(){return c}});var o=n(52322),r=n(54386),i=n(41674),a=n(78502),l=n(76214),s=n(15158);let c=e=>{let{tabs:t,activeTab:n,onChange:c,containerSx:d={},tabSx:x={},ariaLabel:h,idPrefix:u="tab"}=e,m=(0,a.Z)(),{brand:p}=(0,l.DY)();return(0,o.jsx)(i.Z,{value:n,onChange:(e,t)=>
1{c(t)},"aria-label":h,variant:"scrollable",scrollButtons:"auto",sx:{backgroundColor:"inherit","& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-scrollButtons":{color:p.colors.C2,alignSelf:"center","& svg":{fontSize:"2rem"}},"& .MuiTabs-flexContainer":{width:"100%",columnGap:{xs:2,sm:4,lg:8},pl:{xs:2,sm:4,lg:6}},...d},children:t.map(e=>(0,o.jsx)(r.Z,{label:e.label,value:e.value,id:"".concat(u,"-").concat(e.value),"aria-controls":"".concat(u,"panel-").concat(e.value),focusRipple:!1,sx:{p:0,textTransform:"none",fontSize:"".concat(1.125,"rem"),fontWeight:p.fonts.callToAction.weight,fontFamily:p.fonts.callToAction.name,color:"#c3bfbf","&.Mui-selected":{color:p.colors.C2,"&:before":{content:'""',position:"absolute",left:0,right:0,bottom:"10%",margin:"auto",height:"1px",width:"100%",borderBottom:"solid 4px"}},"&:hover":{color:p.colors.C2},...(0,s.K)(m),...x}},e.value))})}},94902:function(e,t,n){var o=n(52322);n(2784);var r=n(20782);t.Z=e=>{let{items:t}=e;return!t||t.length<=1?null:(0,o.jsx)(r.gR,{items:t})}},68912:function(e,t,n){n.d(t,{Wh:function(){return l},Zd:function(){return d},gD:function(){return x},i1:function(){return c},iW:function(){return s}});var o=n(97668),r=n(7095),i=n(33150);let a=(e,t,n,o)=>{let a=e.startsWith("http")?e:"https://".concat(e),l=t.replace(/^\/+|\/+$/g,""),s=o&&o!==r.ZW?l?"".concat(o,"/").concat(l):o:l,c=(0,i.T)(n)?"/":"";return""===s||"/"===s?c?"".concat(a,"/"):a:"".concat(a,"/").concat(s).concat(c)},l=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=arguments.length>4?arguments[4]:void 0,i=[{name:"Home",item:a(t,"",n,r)}];return o.forEach(e=>{let{path:o,name:l}=e;i.push({name:l,item:a(t,o,n,r)})}),i.push({name:e}),i},s=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0,s=(0,o.y)(t),c=(0,o.y)(e);return"BUNAC"===r?l(c,n,r,[],a):i?l(c,n,r,[{path:"infohub",name:"InfoHub"}],a):l(c,n,r,[{path:"experiences",name:"Experiences"},{path:"experiences/".concat(t),name:s}],a)},c=(e,t,n,r)=>l((0,o.y)(e),t,n,[{path:"experiences",name:"Experiences"}],r),d=(e,t,n,o)=>l(e,t,n,[{path:"destinations",name:"Destinations"}],o),x=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;return o?l(e,t,n,[{path:"infohub",name:"InfoHub"},{path:"infohub/infoblog",name:"InfoBlog"}],r):l(e,t,n,[{path:"blog",name:"Blog"}],r)}}}]);

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.