PageSourceSearch

https://swap.ca/_next/static/chunks/6962-3e0a0bcae1bfef38.js

js swap.ca collected 2026-09-25 20:49:56 UTC 9,407 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6962],{84761:function(e,n,t){t.d(n,{H:function(){return p},Z:function(){return v}});var r=t(52322),o=t(24240),i=t(61470),a=t(76214),l=t(2784),s=t(87571),c=t(78502),d=t(7570),x=t(97668),m=t(94965),g=t(92839),h=t(15158),u=e=>{let{product:n,variant:t,placement:o,buttonText:i,sx:a=null}=e,s="/experiences/".concat(n.experienceSlug,"/").concat(n.slug,"/book-now"),u=(0,x.y)(n.slug),p=(0,c.Z)(),v=e=>e.includes("hanovercrm.com");return 1===n.hanoverBookingLinks.length?(0,r.jsx)(d.o,{variant:t,href:v(n.hanoverBookingLinks[0].url)?s:n.hanoverBookingLinks[0].url,sx:a,linkLabel:"".concat(n.hanoverBookingLinks[0].name," option"),children:i}):(0,r.jsx)(g.Z,{disableScrollLock:!0,idPrefix:"booking-options",placement:o,trigger:e=>(0,r.jsx)(d.o,{variant:t,sx:a,chevron:!0,...e,children:i}),getMenuItemProps:e=>{let t=n.hanoverBookingLinks[e];return{component:m.Z,href:v(t.url)?"".concat(s,"?productOption=").concat(e):t.url,linkLabel:"".concat(u," option"),sx:{fontSize:"".concat(1.125,"rem"),justifyContent:"center",...(0,h.K)(p)}}},children:n.hanoverBookingLinks.map((e,n)=>(0,r.jsx)(l.Fragment,{children:e.name},n))})};let p=e=>{let{product:n,buttonStyle:t,placement:i,buttonText:a,sx:l=null,containerStyles:s=null}=e;return(0,r.jsx)(o.Z,{sx:s,children:(0,r.jsx)(u,{product:n,variant:t,sx:l,placement:i,buttonText:a})})};var v=e=>{let{bgColor:n,product:t}=e,{brand:l}=(0,a.DY)();return(0,r.jsx)(o.Z,{sx:{width:"100%",position:"fixed",bottom:"0",left:"0",backgroundColor:n,padding:2,zIndex:9},children:(0,r.jsxs)(i.ZP,{container:!0,gap:5,justifyContent:"center",alignItems:"center",children:[(0,r.jsx)(i.ZP,{item:!0,lg:7,xl:6,sx:{display:{xs:"none",md:"flex"}},children:(0,r.jsx)(s.Z,{variant:"h3",component:"p",sx:{color:l.colors.C2},children:t.bookNowBanner.text})}),(0,r.jsx)(i.ZP,{item:!0,children:(0,r.jsx)(u,{product:t,variant:"primary",sx:{backgroundColor:l.colors.C2},placement:"top",buttonText:t.bookNowBanner.buttonText})})]})})}},75700:function(e,n,t){var r=t(52322),o=t(2784),i=t(73569),a=t(87571),l=t(7570),s=t(53235),c=t(76214),d=t(92967),x=t(42925),m=t(92839),g=t(78502);let h=e=>{if(e)return{xs:"none",[e]:"block"}};n.Z=e=>{let{sx:n,flagOnlyBreakpoint:t="sm"}=e,{country:u,availableCountries:p,setCountry:v}=(0,s.Dj)(),{brand:f}=(0,c.DY)(),b=(0,g.Z)(),j=o.useMemo(()=>p.filter(e=>e.code!==u.code),[p,u.code]),y=o.useMemo(()=>h(t),[t]),Z=o.useCallback(e=>{let n=j[e];n&&v(n)},[j,v]),k="Change country. Currently selected: ".concat(u.name,".");return(0,r.jsx)(m.Z,{idPrefix:"country-select",stopPropagation:!0,trigger:e=>(0,r.jsx)(l.o,{variant:"primary",chevron:!0,"aria-label":k,sx:{padding:{xs:"".concat(b.spacing(1)," ").concat(b.spacing(3)),sm:"".concat(b.spacing(1.7)," ").concat(b.spacing(2))},"&:hover":{backgroundColor:f.colors.C3,color:f.colors.C1},...n},...e,children:(0,r.jsxs)(i.Z,{direction:"row",gap:{xs:1,sm:2},alignItems:"center",children:[(0,r.jsx)(d.Z,{children:k}),(0,r.jsx)(a.Z,{"aria-hidden":"true",variant:"caption",sx:{display:y},children:u.codeAlpha3}
1),(0,r.jsx)(x.c,{image:u.flagImage,width:42,height:25,priority:!0})]})}),getMenuItemProps:e=>({onClick:()=>Z(e),sx:{width:"100%","&:hover .CountrySelectButton-countryCode, &:focus-visible .CountrySelectButton-countryCode":{color:f.colors.C1,textDecoration:"underline"}}}),children:j.map(e=>(0,r.jsxs)(i.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:{xs:1,sm:2},children:[(0,r.jsx)(a.Z,{variant:"body","aria-hidden":"true",className:"CountrySelectButton-countryCode",children:e.codeAlpha3}),(0,r.jsxs)(d.Z,{children:["Select ",e.name]}),(0,r.jsx)(x.c,{image:e.flagImage,width:42,height:25,priority:!0})]},e.code))})}},72364:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(52322),o=t(24240),i=t(43233),a=t(76214),l=t(87571),s=e=>{let{text:n}=e,{brand:t}=(0,a.DY)();return(0,r.jsx)(o.Z,{"data-testid":"HeroOfferBox",display:"flex",sx:{backgroundColor:t.colors.C6,minHeight:{xs:"12vh",sm:"8vh"},py:"8px",pl:"var(--breathing-room-left)",pr:"var(--breathing-room-right)",alignItems:"center",justifyContent:"center","@media (min-width: 2048px)":{mb:"2vh"}},children:(0,r.jsx)(l.Z,{"data-testid":"HeroOfferTypography",richText:!0,sx:{textAlign:"center",mb:"1em"},variant:"banner",children:n})})},c=t(1592),d=t(71946),x=t(76442),m=t(78502),g=t(94965),h=t(86073),u=e=>{var n;let{text:t,style:o,chevron:i=!1,open:l=!1,linkLabel:s,linkLabelPlacement:c="after",...u}=e,{brand:p}=(0,a.DY)(),v=(0,m.Z)(),{href:f,sx:b,...j}=u;return(0,r.jsx)(g.Z,{href:u.href,...j,passHref:!0,linkLabel:s,linkLabelPlacement:c,children:(0,r.jsxs)(d.Z,{style:{padding:i?"".concat(v.spacing(1)," ").concat(v.spacing(2)," ").concat(v.spacing(1)," ").concat(v.spacing(4)):"".concat(v.spacing(1)," ").concat(v.spacing(4)),backgroundColor:"primary"===o?p.colors.C3:p.colors.C2,borderRadius:(null===(n=v.border)||void 0===n?void 0:n.radius.xs)||"3px"},sx:b,...j,children:[(0,r.jsx)(x.Z,{component:"span",sx:{fontWeight:p.fonts.heading1.weight,fontFamily:p.fonts.bodyCopy1.name,color:p.colors.C1,whiteSpace:"nowrap",textTransform:"none"},children:t}),i&&(0,r.jsx)(h.Z,{fontSize:"medium",sx:{ml:v.spacing(2),color:p.colors.C1,transform:"rotate(".concat(l?"180deg":0,")")}})]})})},p=t(84761),v=t(68758),f=t(53235),b=t(42925),j=t(75700);let y=e=>{let{brand:n,hero:t,product:i}=e;return i&&"BUNAC"!==n.name?(0,r.jsx)(o.Z,{sx:{marginBottom:{xs:"0.5rem",md:"1rem"}},children:(0,r.jsx)(p.H,{product:i,buttonStyle:"primary",placement:"bottom",buttonText:t.callToAction.text})}):(0,r.jsx)(u,{sx:{color:n.colors.C1,backgroundColor:n.colors.C3,fontWeight:n.fonts.callToAction.weight,fontFamily:n.fonts.callToAction.name,width:{xs:"12rem",md:"13rem"},height:{xs:"3rem",md:"4rem"},fontSize:{xs:"1rem",md:"1.2rem"},marginBottom:{xs:".5rem",md:"1rem"}},style:"primary",href:t.callToAction.url,text:t.callToAction.text,linkLabel:t.callToAction.linkLabel})};var Z=e=>{var n,t,a,d,x,m,h;let{brand:u,hero:p,product:Z,isTermConditions:k}=e,{availableCountries:C}=(0,f.Dj)(),w=(null==C?void 0:C.length)>1;if(null===(0,i.PN)(p))return null;let A=!!(null==p?void 0:null===(n=p.callToAction)||void 0===n?void 0:n.url)||Z,B=!0==u.imageTransition.enableTransition?"-40px":"-20px";return(0,r.jsxs)(o.Z,{className:"full-bleed",sx:{position:"relative",mb:"calc((var(--components-spacing) + ".concat(B,") * -1)")},children:[(0,r.jsxs)(o.Z,{style:{position:"relative",top:B,display:"grid",gridTemplateColumns:"100%"},children:[(null==p?void 0:null===(t=p.bannerImage)||void 0===t?void 0:t.url)&&(0,r.jsx)(o.Z,{sx:{width:{xs:"100vw",md:"100%"},height:{xs:"80vh",md:"85vh"}},style:{objectFit:"cover",position:"relative",gridArea:"1 / 1 / 2 / 2"},children:(0,r.jsx)(b.d,{image:p.bannerImage,style:{objectFit:"cover",zIndex:1},priority:!0})}),(0,r.jsx)(o.Z,{sx:{backgroundImage:{xs:"linear-gradient(to right, rgba(0,0,0,.50) , rgba(0,0,0,.50) 65%)",md:"linear-gradient(to right, rgba(0,0,0,0) , rgba(0,0,0,.7) 65%)"},height:"100%",width:"100%",gridArea:"1 / 1 / 2 / 2",zIndex:2}}),(0,r.jsxs)(o.Z,{textAlign:{xs:"left",md:"right"},display:"flex",flexDirection:"column",justifyContent:"center",alignItems:{xs:"left",md:"center"},sx:{color:u.colors.C2,position:"relative",margintop:"100%",gridArea:"1 / 1 / 2 / 2",zIndex:3,pl:"var(--breathing-room-left)",pr:"var(--breathing-room-right)"},children:[(0,r.jsx)(l.Z,{sx:{textAlign:{xs:"left",md:"center"},paddingLeft:{xs:"-50%",md:"50%"},marginBottom:{xs:".4rem",md:"1rem"}},variant:"tagLine",children:p.tagLine}),(0,r.jsx)(l.Z,{variant:"h1",sx:{textAlign:{xs:"left",md:"center"},paddingLeft:{xs:"-50%",md:"50%"},marginBottom:{xs:".4rem",md:"1rem"}},children:null==p?void 0:p.title}
1),(0,r.jsx)(l.Z,{variant:"body",sx:{textAlign:{xs:"left",md:"center"},paddingLeft:{xs:"-50%",md:"55%"},paddingRight:{xs:"0",md:"5%"},fontSize:{xs:"1rem",md:"1rem"},marginBottom:{xs:".4rem",md:"1rem"}},children:p.introText}),A&&(0,r.jsx)(o.Z,{sx:{ml:{md:"50%"}},children:(0,r.jsx)(y,{brand:u,hero:p,product:Z})}),k&&w&&(0,r.jsx)(j.Z,{sx:{mt:2,ml:{md:"50%"},maxWidth:{xs:" 50%"}}}),(null===(a=p.secondaryAction)||void 0===a?void 0:a.url)&&(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",sx:{marginLeft:{md:"50%"}},children:[(0,r.jsxs)(l.Z,{variant:"body",sx:{textAlign:{xs:"left",md:"center"},fontSize:{xs:"1rem",md:"1rem"},marginBottom:{xs:".1rem",md:".1rem"}},children:[p.secondaryActionPrefixText,"\xa0"]}),(0,r.jsx)(g.Z,{href:p.secondaryAction.url,linkLabel:p.secondaryAction.linkLabel,sx:{textAlign:{xs:"left",md:"center"},textDecoration:"underline",fontSize:{xs:"1rem",md:"1rem"},marginBottom:{xs:".1rem",md:"1rem"}},children:p.secondaryAction.text})]})]}),(null==u?void 0:null===(x=u.reviewsIO)||void 0===x?void 0:null===(d=x.reviewsIOBarWidget)||void 0===d?void 0:d.dataStoreName)!==null&&(null==u?void 0:null===(h=u.reviewsIO)||void 0===h?void 0:null===(m=h.reviewsIOBarWidget)||void 0===m?void 0:m.dataWidgetId)&&(0,r.jsx)(v.Z,{}),p.tickerBanner&&(0,r.jsx)(s,{text:p.tickerBanner})]}),u.imageTransition.enableTransition&&(0,r.jsx)(o.Z,{children:(0,r.jsx)(c.Z,{brand:u,rotate:"bottom",width:"100%",height:p.tickerBanner?"10vh":"7vh",priority:!0})})]})}},68758:function(e,n,t){var r=t(25237);let o=t.n(r)()(()=>t.e(9768).then(t.bind(t,89768)),{loadableGenerated:{webpack:()=>[89768]},ssr:!1});n.Z=o},60115:function(e,n,t){var r=t(25237);let o=t.n(r)()(()=>t.e(2386).then(t.bind(t,12386)),{loadableGenerated:{webpack:()=>[12386]},ssr:!1});n.Z=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.