PageSourceSearch

https://swap.ca/_next/static/chunks/5105-ab0897ecfed2ac38.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5105],{84520:function(e,t,r){r.d(t,{f:function(){return c}});var i=r(52322),n=r(2784),l=r(87571);let s=e=>{let t=/\*\*/g,r=e.match(t)?e.match(t).length:null;return r%2==0||null===r?e:e+"**"},a=(e,t)=>{let r=e.substring(0,t),i=/[^a-zA-Z0-9\s]/,n=e=>i.test(e);for(let e=0;e<t-1;e++){let e=r.length-1,t=" "===r[e];if(t&&n(r[r.length-2]))return s(r.substring(0,r.length-2));if(t)return s(r.substring(0,e));r=r.substring(0,e)}};var o=r(69067);let c=e=>{let{text:t,previewLength:r=250,typographyVariant:s,richText:c=!1,sx:d,collapseBreakpoint:x="md",isAlwaysCollapsed:p=!1,...u}=e,{t:m}=(0,o.b)(),[g,h]=n.useState(!1),b=t.length>r,v=n.useMemo(()=>a(t,r),[t,r]),f=()=>{b&&h(!g)};if(!b)return(0,i.jsx)(l.Z,{variant:s,richText:c,sx:d,...u,children:t});let y=c?"".concat(t,"<br />**<u>").concat(m("collapsableText.readLess"),"</u>**"):(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsx)("br",{}),(0,i.jsx)("strong",{children:(0,i.jsx)("u",{children:m("collapsableText.readLess")})})]}),j=c?"".concat(v,"... **<u>").concat(m("collapsableText.readMore"),"</u>**"):(0,i.jsxs)(i.Fragment,{children:[v,"..."," ",(0,i.jsx)("strong",{children:(0,i.jsx)("u",{children:m("collapsableText.readMore")})})]}),w=!p;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{variant:s,richText:c,sx:{cursor:b?"pointer":"initial",display:w?{xs:"block",[x]:"none"}:"block",...d},onClick:f,onKeyDown:e=>{b&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),f())},role:"button",tabIndex:0,"aria-expanded":g,"aria-label":m(g?"collapsableText.collapseLabel":"collapsableText.expandLabel"),...u,children:g?y:j}),w&&(0,i.jsx)(l.Z,{variant:s,richText:c,sx:{display:{xs:"none",[x]:"block"},...d},"aria-hidden":!0,...u,children:t})]})}},47323:function(e,t,r){var i=r(52322),n=r(61470),l=r(2784),s=r(29921),a=r(43233),o=r(76214);t.Z=e=>{let{crossSellSection:t}=e,{brand:r}=(0,o.DY)(),c=(0,l.useMemo)(()=>(0,a.rB)(t.products,r),[r,t.products]),d=(0,l.useMemo)(()=>"productsV2"in t?(0,a.rB)(t.productsV2,r):[],[r,t]),x="productsV2"in t?t.tagLine:t.subTitle;return(0,i.jsx)(n.ZP,{container:!0,children:(0,i.jsx)(s.ZP,{titleLeft:null==t?void 0:t.title,subTitleLeft:x,items:[...c,...d]})})}},60594:function(e,t,r){r.d(t,{n:function(){return x}});var i=r(52322),n=r(97466),l=r.n(n),s=r(67678),a=r(24240),o=r(27149),c=r(91560),d=r(42925);let x=e=>{let{youtubeVideoCode:t,videoTitle:r,substitutePicture:n=null,aspectRatio:x="default"}=e,p=(0,o.Z)(c.Z.breakpoints.down("sm"),{noSsr:!0});if(!t&&!n)throw Error("No videocode or substitue image provided for videoSection ".concat(r));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{id:"caf5ba4f2ab46067",children:'.yt-lite{background-color:#000;position:relative;display:block;contain:content;background-position:center center;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;cursor:pointer;width:100%;height:100%}.yt-lite>iframe{width:100%;height:100%;position:absolute;top:0;left:0}.yt-lite>.lty-playbtn{width:70px;height:46px;background-color:#212121;z-index:1;opacity:.8;-webkit-border-radius:14%;-moz-border-radius:14%;border-radius:14%;-webkit-transition:all.2s cubic-bezier(0,0,.2,1);-moz-transition:all.2s cubic-bezier(0,0,.2,1);-o-transition:all.2s cubic-bezier(0,0,.2,1);transition:all.2s cubic-bezier(0,0,.2,1)}.yt-lite:hover>.lty-playbtn{background-color:#f00;opacity:1}.yt-lite>.lty-playbtn:before{content:"";border-style:solid;border-width:11px 0 11px 19px;border-color:transparent transparent transparent#fff}.yt-lite .lty-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.yt-lite>.lty-playbtn,.yt-lite>.lty-playbtn:before{position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);-moz-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.yt-lite.lyt-activated{cursor:unset}.yt-lite.lyt-activated::before,.yt-lite.lyt-activated>.lty-playbtn{opacity:0;pointer-events:none}'}),(0,i.jsx)(a.Z,{sx:{width:"100%",maxWidth:"100%",height:"vertical"===x&&p?"65vh":"100%",position:"relative","&::after":{content:"''",display:"default"===x?"none":"block",paddingBottom:"vertical"===x?"calc(100% / (9 / 16))":"calc(100% / (16 / 9))",pointerEvents:"none"}},children:t?(0,i.jsx)(s.Z,{id:t,title:r,noCookie:!0,poster:"sddefault"}):(0,i.jsx)(i.Fragment,{children:n&&(0,i.jsx)(d.d,{image:n,style:{objectFit:"cover"},priority:!1})})})]})}},88223:function(e,t,r){var i=r(52322),n=r(24240),l=r(61470),s=r(78502),a=r(60594),o=r(87571),c=r(7570),d=r(2784),x=r(42925);let p=(0,d.forwardRef)((e,t)=>{let{props:r,mediaAlignment:d="Left",textAlignment:p="center",textColor:u,wrapperSx:m={},className:g=""}=e,h=(0,s.Z)(),{button:b,body:v,image:f,navigationButton:y,subTitle:j,tagLine:w,title:Z,videoUrl:k,videoTitle:z}=r,T=null==k?void 0:k.replace(/.*\//,"");return(0,i.jsx)(n.Z,{component:"section",ref:t,sx:m,className:g,children:(0,i.jsxs)(l.ZP,{id:y,container:!0,sx:{flexWrap:{xs:"wrap",md:"nowrap"},flexDirection:{xs:"row",md:"Left"===d?"row-reverse":"row"},justifyContent:{md:"space-between"},gap:{xs:3,md:"6vw"},textAlign:{xs:"center",sm:p},color:u,scrollMarginTop:h.spacing(17)},children:[(0,i.jsxs)(l.ZP,{item:!0,xs:12,md:6,children:[w&&(0,i.jsx)(o.Z,{variant:"tagLine",children:w}),(0,i.jsx)(o.Z,{variant:"h2",sx:{mb:j?0:2},children:Z}),j&&(0,i.jsx)(o.Z,{variant:"subTitle",sx:{mt:1,mb:2},children:j}),(0,i.jsx)(o.Z,{variant:"body",richText:!0,"data-testid":"body",children:v}),(null==b?void 0:b.url)&&(0,i.jsx)(c.o,{variant:"primary",href:b.url,sx:{mt:3,mb:{xs:3,sm:"initial"}},children:b.text})]}),k?(0,i.jsx)(l.ZP,{item:!0,xs:12,md:6,"data-testid":"video",sx:{position:"relative",width:"100%"},children:T&&(0,i.jsx)(a.n,{youtubeVideoCode:T,videoTitle:z,aspectRatio:"horizontal"})}):(0,i.jsx)(l.ZP,{item:!0,xs:12,md:6,sx:{position:"relative",height:{xs:"70vw",sm:"50vw",md:"30vw",lg:"20vw"},width:"100%",mt:{xs:h.spacing(3),sm:"auto"},objectFit:{xs:"cover",lg:"contain"}},children:(0,i.jsx)(x.d,{image:f,sizes:{xs:"100vw",md:"50vw"},style:{objectFit:"inherit"}})})]})})});p.displayName="MediaDisplay",t.Z=p},21256:function(e,t,r){r.d(t,{Z:function(){return u}});var i=r(52322),n=r(61470),l=r(78502),s=r(87571),a=r(84520),o=r(7570),c=r(42925),d=e=>{let{item:t,i:r,isItemsWith1Description:d}
1=e,x=0===Object.values(t).filter(Boolean).length,p=(0,l.Z)(),u=r%2==0?{flex:"row",align:"left"}:{flex:"row-reverse",align:"right"},{title:m,image:g,description:h,ctaLink:b,ctaText:v}=t,f=0===r&&!h,y=(null==g?void 0:g.url)&&h;return(0,i.jsxs)(n.ZP,{container:!0,item:!0,xs:12,sm:d?1===r?6:3:4,sx:{display:{xs:f||x?"none":"flex",sm:"flex"},flexDirection:{xs:u.flex,sm:"row"},marginTop:{xs:y?3:void 0,sm:0},marginBottom:{xs:"2rem",md:"0"},alignItems:"center",":last-child":{marginBottom:0}},"data-testid":"usp-item",children:[(null==g?void 0:g.url)&&(0,i.jsx)(n.ZP,{item:!0,xs:h?4:12,sm:12,width:"100vw",sx:{textAlign:"center",height:{xs:"75px",sm:"117px"},position:"relative",paddingRight:{xs:y?2:0,sm:0},margin:{xs:"".concat(y?0:"".concat(p.spacing(5)," 0 ").concat(p.spacing(2))),sm:"".concat(y?"".concat(p.spacing(3)," 0 ").concat(p.spacing(4)):void 0)}},children:(0,i.jsx)(c.c,{image:g})}),h&&(0,i.jsxs)(n.ZP,{item:!0,xs:(null==g?void 0:g.url)?8:12,sm:12,sx:{flexWrap:"wrap"},children:[(0,i.jsx)(s.Z,{variant:"h2",sx:{textAlign:(null==g?void 0:g.url)?{xs:u.align,sm:"center"}:"center",marginBottom:"2vh"},children:m}),(0,i.jsx)(a.f,{"data-testid":"description",typographyVariant:"body",text:h,previewLength:250,sx:{textAlign:(null==g?void 0:g.url)?{xs:u.align,sm:"center"}:"center"}})]}),b&&v&&(0,i.jsx)(n.ZP,{item:!0,xs:12,textAlign:"center",mt:3,children:(0,i.jsx)(o.o,{variant:"primary",href:b,children:v})})]})},x=r(2784),p=e=>{let{row:t}=e,r=(0,x.useMemo)(()=>1===((null==t?void 0:t.uspItems)||[]).filter(e=>e.description).length,[t]);return(0,i.jsx)(n.ZP,{item:!0,xs:12,children:(0,i.jsx)(n.ZP,{container:!0,columnSpacing:{sm:4},children:null==t?void 0:t.uspItems.map((e,t)=>(0,i.jsx)(d,{item:e,i:t,isItemsWith1Description:r},t))})})},u=e=>{let{props:t}=e,{tagLine:r,uspRows:l}=t||{};return(0,i.jsxs)(n.ZP,{container:!0,children:[r&&(0,i.jsx)(n.ZP,{item:!0,xs:12,children:(0,i.jsx)(s.Z,{variant:"tagLine",sx:{textAlign:"center",marginBottom:2},children:r})}),(0,i.jsx)(n.ZP,{container:!0,gap:5,children:(l||[]).map((e,t)=>(0,i.jsx)(p,{row:e},t))})]})}},37366:function(e,t,r){r.d(t,{Z:function(){return a}});var i=r(52322);r(2784);var n=r(20782);let l=e=>{if(!e)return"";let t=e;return(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/^#{1,6}\s+/gm,"")).replace(/~~(.*?)~~/g,"$1")).replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1")).replace(/(\*\*|__)(.*?)\1/g,"$2")).replace(/(\*|_)(.*?)\1/g,"$2")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1($2)")).replace(/`([^`]+)`/g,"$1")).replace(/```[\s\S]*?```/g,"")).replace(/^(\*\*\*|---|___)\s*$/gm,"")).replace(/^>\s+/gm,"")).replace(/^[*\-+]\s+/gm,"")).replace(/^\d+\.\s+/gm,"")).replace(/\n+/g," ")).replace(/\s+/g," ")).replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&apos;/g,"'")).trim()},s=e=>{if(!e||!e.faqItems||0===e.faqItems.length)return null;let t=e.faqItems.map(e=>({question:e.name||"",answer:l(e.info)||""})).filter(e=>""!==e.question.trim()&&""!==e.answer.trim());return t.length>0?t:null};var a=e=>{var t;let{faq:r}=e;if(!(null==r?void 0:r.faqItems)||(null==r?void 0:null===(t=r.faqItems)||void 0===t?void 0:t.length)===0)return null;let l=s(r);return(0,i.jsx)(n.pr,{questions:l})}},62384:function(e,t,r){r.d(t,{Mw:function(){return i}});function i(e,t){return -1==e.indexOf("a")?e.replace(")",", ".concat(t,")")).replace("rgb","rgba"):e}}}]);

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.