1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18266,e=>{"use strict";e.i(86569);let t=null;e.s(["useClevertapAnalytics",0,()=>{let a=()=>new Promise(async a=>{let n=!1;t||(t=(await e.A(81984)).default,n=!0),t&&n&&(t.init("WR7-W76-R76Z","us1"),t.spa=!0,t.privacy.push({optOut:!1}),t.privacy.push({useIP:!1}),t.setLogLevel(3)),a(null)});return{event:async function(...e){await a(),t?.event.push(...e)},screen:async function(e,n){let l=`Web Page Viewed ${e}`,r=window.document,s=window.location,i=function(e){let t="Unknown",a="Unknown";if(e.includes("Chrome")){t="Google Chrome";let n=e.match(/Chrome\/(\S+)/);a=n?.[1]??"Unknown"}else if(e.includes("Safari")){t="Apple Safari";let n=e.match(/Version\/(\S+)/);a=n?.[1]??"Unknown"}else if(e.includes("Firefox")){t="Mozilla Firefox";let n=e.match(/Firefox\/(\S+)/);a=n?.[1]??"Unknown"}else if(e.includes("Edge"))if(e.includes("Edg/")){t="Microsoft Edge (Chromium)";let n=e.match(/Edg\/(\S+)/);a=n?.[1]??"Unknown"}else{t="Microsoft Edge (Legacy)";let n=e.match(/Edge\/(\S+)/);a=n?.[1]??"Unknown"}else if(e.includes("Opera")||e.includes("OPR")){t="Opera";let n=e.match(/(?:Opera|OPR)\/(\S+)/);a=n?.[1]??"Unknown"}return{name:t,version:a}}(window.navigator.userAgent),o={...n,name:n?.name??e,category:n?.category??"Application",url:n?.url??s.href,path:n?.path??s.pathname,title:n?.title??r.title,referrer:n?.referrer??r.referrer??"",referring_domain:n?.referring_domain??r.referrer?new URL(r.referrer).hostname:"",browser_name:i.name,browser_version:i.version};await a(),t?.event.push(l,o)},profile:async function(e){await a(),t?.onUserLogin.push({Site:e})},clear:async function(){await a(),t?.clear()},logout:async function(){await a(),t?.logout()}}}],18266)},1779,8378,98204,23250,13536,81651,e=>{"use strict";e.s([],1779);var t=e.i(93416);let a=()=>{let[e,a]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let e=()=>{a(window.pageYOffset)};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[]),e};function n(e,n){let[l,r]=t.default.useState(0),s=a(),i=Number(n-e);return t.default.useEffect(()=>{s>=e&&s<=n&&r(100*Number(((s-e)/i).toFixed(2)))},[s]),l}e.s(["useScrollPosition",0,a],8378),e.s(["useScrollIndicator",()=>n],98204),e.s(["useIsInViewport",0,function(e){let[a,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(!e.current)return;let t=new IntersectionObserver(([e])=>n(e.isIntersecting));return t.observe(e.current),()=>{t.disconnect()}},[e]),a}],23250),e.s(["useMediaQuery",0,e=>{let[a,n]=(0,t.useState)(!1),l=(0,t.useCallback)(e=>{e.matches?n(!0):n(!1)},[]);return(0,t.useEffect)(()=>{let t=window.matchMedia(`(max-width: ${e}px)`);return t.addEventListener("change",l),t.matches&&n(!0),()=>t.removeEventListener("change",l)},[]),a}],13536),e.i(18266),e.s(["useOs",0,function(){let[e,a]=t.default.useState("");return t.default.useEffect(()=>{navigator.userAgent.includes("Mac")?a("Mac"):navigator.userAgent.includes("Android")?a("Android"):a("")},[]),e}],81651)},13903,e=>{"use strict";var t=e.i(15481);e.s(["default",0,function(e){return(0,t.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 30 30",children:(0,t.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M0 0H30V30H0z"}),(0,t.jsxs)("g",{fill:e.color||"#000",fillRule:"nonzero",transform:"translate(9 9)",children:[(0,t.jsx)("path",{d:"M.242.242A.826.826 0 011.325.168l.085.074L11.758 10.59a.826.826 0 01-1.083 1.242l-.085-.074L.242 1.41a.826.826 0 010-1.168z"}),(0,t.jsx)("path",{d:"M10.59.242a.826.826 0 011.242 1.083l-.074.085L1.41 11.758a.826.826 0 01-1.242-1.083l.074-.085L10.59.242z"})]})]})})})}])},58193,e=>{"use strict";var t=e.i(15481),a=e.i(93416),n=e.i(13903);function l(e){let l,r,{lockScroll:s,unlockScroll:i}=(l="",r="",{lockScroll:()=>{let e=window.getComputedStyle(document.body);l=e.getPropertyValue("overflow"),r=e.getPropertyValue("padding-right");let t=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${t}px`},unlockScroll:()=>{document.body.style.overflow=l,document.body.style.paddingRight=r}});return(0,a.useEffect)(()=>{e.isOpen?s():i()},[e.isOpen]),(0,t.jsx)(t.Fragment,{children:e.isOpen&&(0,t.jsxs)("div",{className:`fixed w-screen h-screen max-w-4xl max-h-[54rem] m-auto inset-0 shadow-2xl z-[9999] overflow-hidden ${e.dark?"bg-[#2E61EF] text-white":"bg-white text-black"} md:rounded-[33px]`,children:[e.close&&(0,t.jsx)(n.default,{onClick:e.close,color:e.dark?"#fff":"black",id:"close-btn",className:"absolute z-10 lg:top-[33px] lg:right-[33px] top-4 right-4 w-[33px] h-[33px] curs
1or-pointer"}),e.children]})})}e.s(["Popup",0,l,"default",0,l],58193)},6447,e=>{"use strict";e.i(58193),e.s([])},30860,e=>{"use strict";let t={src:e.i(81440).default,width:300,height:300,blurWidth:0,blurHeight:0};e.s(["default",0,t])},19404,e=>{"use strict";var t=e.i(15481),a=e.i(93416);function n(e,t){return void 0===e||e<0||e>=t.length?0:e}function l(e){let{options:t,value:a}=e;if(t){let e=t.findIndex(e=>e.value===a),n={open:!1,options:t};return void 0===a||e<0?n:{activeIndex:e,selected:t[e],...n}}}var r=e.i(22978);e.s(["default",0,function(e){let s,i=(0,a.useRef)(null),o=(0,a.useRef)(null),[{activeIndex:c,open:x,selected:d},u]=(0,a.useReducer)((s=e.options,(e,t)=>{var a,l;switch(t.type){case"open":return{...e,open:!0};case"close":if(e.selected)return{...e,open:!1,activeIndex:s.indexOf(e.selected)};return{...e,open:!1};case"setNextActive":return{...e,activeIndex:(a=e.activeIndex,void 0===a||a<0||a===s.length-1?0:a+1)};case"setPreviousActive":return{...e,activeIndex:(l=e.activeIndex,void 0===l||l<=0?s.length-1:l-1)};case"setActive":return{...e,activeIndex:n(t.payload.index,s)};case"select":return{...e,selected:t.payload.selected};default:return{...e}}}),e,l),p=()=>{i.current?.blur()},m=t=>{let a=function(e,t,a){if(e){let l;if(void 0!==a&&(l=e.find(e=>e.value===a)),!l){let a=n(t,e);l=e[a]}return l}}(e.options,c,t);e.onChange(a?.value),u({type:"select",payload:{selected:a}}),p()};return(0,a.useEffect)(()=>{o.current?.scrollIntoView({behavior:"smooth",block:"nearest"})},[c]),(0,t.jsxs)("div",{id:e.id,className:(0,r.default)("relative mb-[16px]",e.className),style:e.style,children:[(0,t.jsxs)("div",{className:"flex justify-between items-end",children:[e.label?(0,t.jsx)("label",{className:"text-[14px] font-medium leading-[20px] tracking-[-0.3px] text-gray-300",children:e.label}):(0,t.jsx)("div",{}),(0,t.jsx)("div",{className:"flex flex-row items-end",children:!0===e.optional?(0,t.jsx)("p",{className:"text-gray-300 font-normal text-[8px] mr-[4px]",children:"(Optional)"}):null})]}),(0,t.jsxs)("div",{className:"relative cursor-pointer mt-[16px] sm:max-w-full text-16",children:[(0,t.jsx)("input",{className:"w-full cursor-pointer text-gray-400 font-normal bg-white border-[1px] border-[#e2e2e2] rounded-[25px] transition-[background] placeholder:text-gray-200 focus:bg-[#E8EFF9] focus:text-gray-400 focus:border-transparent focus:placeholder:text-gray-400 focus:outline-none focus:font-medium py-[0.75rem] pl-[22px] pr-[28px] focus:pr-[36px] text-ellipsis",ref:i,type:"text",readOnly:!0,placeholder:e.placeholder||"Select a province",value:d?.label,onFocus:()=>{u({type:"open"})},onBlur:()=>{u({type:"close"})},onKeyDown:e=>{switch(e.preventDefault(),e.key){case"ArrowDown":u({type:"setNextActive"});break;case"ArrowUp":u({type:"setPreviousActive"});break;case"Enter":m();break;case"Escape":p()}}}),(0,t.jsx)("div",{className:`rounded-full absolute block h-[6px] w-[6px] top-[21px] z-0 right-[21px] ${x?"bg-blue":"bg-[#6f7375]"}`}),x?(0,t.jsx)("div",{className:"max-h-[192px] top-[60px] left-[0px] z-20 rounded-[25px] overflow-hidden border-[1px] border-solid border-[#E2E2E2] absolute w-full bg-white",children:(0,t.jsx)("ul",{className:"overflow-y-overlay w-full max-h-[192px] list-none py-[16px] px-[14px] overflow-y-scroll shadow-selectShadow scrollbar-thin scrollbar-w-[4px] scrollbar-rounded-[2.5px] scrollbar-thumb-[#C3C7D0] scrollbar-track-transparent",children:e.options.map((e,a)=>(0,t.jsx)("li",{className:`py-[6px] px-[8px] rounded-[8px] mb-[6px] last:mb-0 font-medium leading-[1.625] ${c===a||d?.value===e.value?"bg-lightBlue text-blue":"text-gray-400"}`,ref:c===a||d?.value===e.value?o:void 0,onMouseDown:()=>m(e.value),onMouseOver:()=>u({type:"setActive",payload:{index:a}}),children:e.label},e.value))})}):null]})]},e.key)}],19404)},49753,60629,e=>{"use strict";var t=e.i(19404);e.s([],49753),e.s(["Select",()=>t.default],60629)},22191,e=>{"use strict";var t=e.i(15481),a=e.i(93416);function n(e,t,a){if(a=a||{direction:"ccw",axis:"+x"},t.direction!==a.direction&&(e=0===e?0:360-e),t.axis===a.axis)return e;if(t.axis[1]===a.axis[1])return(180+e)%360;switch(a.direction+t.axis+a.axis){case"ccw+x-y":case"ccw-x+y":case"ccw+y+x":case"ccw-y-x":case"cw+y-x":case"cw-y+x":case"cw-x-y":case"cw+x+y":return(90+e)%360;case"ccw+y-x":case"ccw-y+x":case"ccw+x+y":case"ccw-x-y":case"cw+x-y":case"cw-x+y":case"cw+y+x":case"cw-y-x":return(270+e)%360;default:throw Error("Unhandled conversion")}}function l(e,t,a){let l,r,s=n(e.degree,e,{direction:"ccw",axis:"
1+x"})/180*Math.PI;return s<=Math.PI?s<=Math.PI/2?(r=Math.sin(s)*t,l=Math.cos(s)*t):(r=Math.sin(Math.PI-s)*t,l=-(Math.cos(Math.PI-s)*t*1)):s<=1.5*Math.PI?(r=-(Math.sin(s-Math.PI)*t*1),l=-(Math.cos(s-Math.PI)*t*1)):(r=-(Math.sin(2*Math.PI-s)*t*1),l=Math.cos(2*Math.PI-s)*t),{x:l+a/2,y:a/2-r}}function r(e){let{startAngle:t,innerRadius:a,thickness:n,direction:r,angleType:s,svgSize:i}=e,{endAngle:o}=e;t%360==o%360&&t!==o&&(o-=.001);let c=o-t>=180,x=a+n,d=l({degree:t,...s},a,i),u=` 2 M ${d.x},${d.y} 3 `,p=l({degree:o,...s},a,i),m=` 4 A ${a} ${a} 0 5 ${c?"1":"0"} 6 ${"cw"===r?"1":"0"} 7 ${p.x} ${p.y} 8 `,h=l({degree:o,...s},x,i),f=` 9 A ${n/2} ${n/2} 0 10 ${c?"1":"0"} 11 ${"cw"===r?"0":"1"} 12 ${h.x} ${h.y} 13 `,g=l({degree:t,...s},x,i);return u+m+f+` 14 A ${x} ${x} 0 15 ${c?"1":"0"} 16 ${"cw"===r?"0":"1"} 17 ${g.x} ${g.y} 18 `+` 19 A ${n/2} ${n/2} 0 20 ${c?"1":"0"} 21 ${"cw"===r?"0":"1"} 22 ${d.x} ${d.y} 23 `+" Z"}class s extends a.Component{static defaultProps={size:200,minValue:0,maxValue:100,startAngle:0,endAngle:360,angleType:{direction:"cw",axis:"-y"},handleSize:8,arcBackgroundColor:"#aaa",controlsOffset:0};svgRef=a.createRef();onMouseEnter=e=>{1===e.buttons&&(this.onMouseDown(e),e.stopPropagation())};onMouseDown=e=>{document.addEventListener("mousemove",this.handleMousePosition),document.addEventListener("mouseup",this.removeMouseListeners),document.body.style.cursor="grabbing",this.handleMousePosition(e)};removeMouseListeners=()=>{document.removeEventListener("mousemove",this.handleMousePosition),document.removeEventListener("mouseup",this.removeMouseListeners),document.body.style.cursor="auto",this.props.onControlFinished&&this.props.onControlFinished()};handleMousePosition=e=>{let t=e.clientX,a=e.clientY;this.processSelection(t,a)};onTouch=e=>{if(e.touches.length>1||"touchend"===e.type&&e.touches.length>0)return;let t=e.changedTouches[0],a=t.clientX,n=t.clientY;this.processSelection(a,n)};processSelection=(e,t)=>{var a;let l,r,{size:s,maxValue:i,minValue:o,angleType:c,startAngle:x,endAngle:d,handle1:u,disabled:p,coerceToInt:m}=this.props;if(!u.onChange)return;let h=this.svgRef.current;if(!h)return;let f=h.createSVGPoint();f.x=e,f.y=t;let g=function(e){let{angle:t,minValue:a,maxValue:n,startAngle:l,endAngle:r}=e;if(r<=l)throw Error("endAngle must be greater than startAngle");return t<l?a:t>r?n:(t-l)/(r-l)*(n-a)+a}({angle:(a=f.matrixTransform(h.getScreenCTM()?.inverse()),l=a.x-s/2,(r=Math.atan2(s/2-a.y,l))<0&&(r+=2*Math.PI),n(r/Math.PI*180,{direction:"ccw",axis:"+x"},c)),minValue:o,maxValue:i,startAngle:x,endAngle:d});m&&(g=Math.round(g)),p||u.onChange(g)};render(){let{size:e,handle1:n,handleSize:s,maxValue:i,minValue:o,startAngle:c,endAngle:x,angleType:d,disabled:u,arcColor:p,arcBackgroundColor:m,className:h,controlsOffset:f}=this.props,g=e/2-2.5,v=function(e){let{value:t,minValue:a,maxValue:n,startAngle:l,endAngle:r}=e;if(r<=l)throw Error("endAngle must be greater than startAngle");return(t-a)/(n-a)*(r-l)+l}({value:n.value,minValue:o-(f||0),maxValue:i+(f||0),startAngle:c,endAngle:x}),b=l({degree:v,...d},g+1.25,e),w=!u&&!!n.onChange;return(0,t.jsx)("svg",{width:e,height:e,className:h,ref:this.svgRef,style:{touchAction:"none",overflow:"visible",userSelect:"none"},children:(0,t.jsxs)("g",{onMouseDown:this.onMouseDown,onMouseEnter:this.onMouseEnter,onClick:e=>w&&e.stopPropagation(),onTouchStart:this.onTouch,onTouchEnd:this.onTouch,onTouchMove:this.onTouch,children:[(0,t.jsx)("path",{d:r({startAngle:v,endAngle:x,angleType:d,innerRadius:g,thickness:2.5,svgSize:e,direction:d.direction}),fill:m,stroke:"transparent",strokeWidth:33}),(0,t.jsx)("path",{d:r({startAngle:c,endAngle:v,angleType:d,innerRadius:g,thickness:2.5,svgSize:e,direction:d.direction}),fill:p,stroke:"transparent",strokeWidth:33}),w&&(0,t.jsxs)(a.Fragment,{children:[(0,t.jsxs)("filter",{id:"handleShadow",x:"-50%",y:"-50%",width:"16",height:"16",children:[(0,t.jsx)("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),(0,t.jsx)("feColorMatrix",{result:"matrixOut",in:"offOut",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,t.jsx)("feGaussianBlur",{result:"blurOut",in:"matrixOut",stdDeviation:"5"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})]}),(0,t.jsx)("circle",{r:s,cx:b.x,cy:b.y,fill:"#2e61ef",filter:"url
23(#handleShadow)",className:"cursor-grab active:cursor-grabbing"})]})]})})}}e.s(["CircularSlider",0,s],22191)},63940,e=>{"use strict";function t(e,t,a){return e*function(e,t){switch(t){case"AB":return e.AB.interestRate/100;case"BC":return e.BC.interestRate/100;case"ON":return e.ON.interestRate/100;case"NB":return e.NB.interestRate/100;case"MB":return e.MB.interestRate/100;case"NS":return e.NS.interestRate/100;case"PE":return e.PE.interestRate/100;default:return .14}}(t,a)+e}let a=(e,t)=>{let a=t?({Elite:4,Prestige:8,VIP:12})[t]:null;if(a)return e*a/100};e.s(["calculateCost",0,t,"calculateTotalCost",0,function(e,n,l,r,s){let i=t(e,l,r),o=r&&["MB","NB","BC"].includes(r.toString())?0:a(n,s);return o?i-o:i},"formatWithThousandSeparator",0,e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),"getCashbackAmount",0,a,"getFormattedTimeIn20Min",0,()=>{let e=new Date;return e.setMinutes(e.getMinutes()+20),e.toLocaleString("en-US",{hour:"numeric",minute:"numeric",hour12:!0}).toLowerCase()}])},35421,e=>{"use strict";var t=e.i(15481),a=e.i(22191);e.i(1779);var n=e.i(13536),l=e.i(63940);e.s(["CostSimulatorSlider",0,e=>{let{label:r,value:s=500,minValue:i=100,maxValue:o=1500,onChange:c}=e,x=(0,n.useMediaQuery)(1600),d=Math.floor(100*s/o),u={marginRight:`clamp(0%, calc(${100-1.4*d}%), calc(100% - 95px))`,marginLeft:"auto"};return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[14px] leading-[20px] tracking-[-0.3px] font-medium text-gray-300",children:r}),(0,t.jsxs)("div",{className:"relative flex justify-center min-h-[220px] max-w-[328px] lg:max-w-[464px] overflow-y-clip mx-auto mt-[0px] select-none",children:[(0,t.jsx)(a.CircularSlider,{className:"absolute bottom-[25px] left-[50%] translate-x-[-50%]",...x?{size:482,startAngle:138,endAngle:222,controlsOffset:130}:{size:828,startAngle:146,endAngle:214,controlsOffset:90},handleSize:25,minValue:100,maxValue:1500,arcColor:"#2e61ef",arcBackgroundColor:"#d8d8d8",angleType:{direction:"ccw",axis:"+y"},handle1:{value:s,onChange:e=>c(10*Math.round(e/10))},...e}),(0,t.jsxs)("div",{className:"flex flex-row gap-4 w-full z-10 h-32",children:[(0,t.jsxs)("div",{className:"mt-[58px] lg:mt-[48px] cursor-pointer",onClick:e=>c(Math.max(s-100,i)),children:[(0,t.jsx)("p",{className:"text-10 font-medium tracking-[-0.1px] leading-[14px] text-nickel text-right",children:"Minimum"}),(0,t.jsxs)("p",{className:"text-[28px] font-medium tracking-[-0.3px] text-text-main ",children:[(0,t.jsx)("span",{className:"text-[#6F7375] text-[13px] font-normal tracking-[0px] mr-0.5",children:"$"}),(0,l.formatWithThousandSeparator)(i)]})]}),(0,t.jsx)("div",{className:"flex-auto w-full mt-[27px] lg:mt-[16px]",children:(0,t.jsx)("div",{className:"rounded-lg shadow-[0px_8px_14px_0_rgba(0,0,0,0.15)] pl-2 pr-3 mt-[33px] py-[12px] w-min min-w-[95px]",style:{...u},children:(0,t.jsxs)("p",{className:"text-[28px] text-center font-medium tracking-[-0.3px] text-blue",children:[(0,t.jsx)("span",{className:"text-blue text-[13px] font-normal tracking-[0px] mr-0.5",children:"$"}),(0,l.formatWithThousandSeparator)(s)]})})}),(0,t.jsxs)("div",{className:"mt-[58px] lg:mt-[48px] cursor-pointer",onClick:e=>c(Math.min(s+100,o)),children:[(0,t.jsx)("p",{className:"text-10 font-medium tracking-[-0.1px] leading-[14px] text-nickel text-right",children:"Maximum"}),(0,t.jsxs)("p",{className:"text-[28px] font-medium tracking-[-0.3px] text-text-main ",children:[(0,t.jsx)("span",{className:"text-[#6F7375] text-[13px] font-normal tracking-[0px] mr-0.5",children:"$"}),(0,l.formatWithThousandSeparator)(o)]})]})]})]})]})}])},65177,e=>{"use strict";var t=e.i(15481),a=e.i(44304);e.s(["CostSimulatorRadioGroup",0,e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[e.label&&(0,t.jsx)("label",{className:"text-[14px] leading-[20px] tracking-[-0.3px] font-medium text-gray-300",children:e.label}),e.learnMoreHref&&(0,t.jsx)(a.default,{className:"text-[14px] leading-[20px] tracking-[-0.3px] font-medium text-blue hover:text-hover-blue cursor pointer",href:e.learnMoreHref,children:"Learn more"})]}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-[0.5rem] justify-items-stretch mt-[1.25rem] mb-[1.25rem] w-full",children:e.options.map(a=>(0,t.jsx)("div",{onClick:()=>
23e.onChange(a.value),className:`flex flex-col justify-center text-[#717172] border-[1px] border-solid border-[#e2e2e2] font-medium rounded-[6px] text-[35px] tracking-normal leading-[60px] bg-transparent hover:border-blue hover:text-blue transition-all text-center cursor-pointer h-[60px]${a.value===e.value?" !bg-blue !text-white":""}`,children:a.subtext?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:`text-[19px] font-semibold tracking-[-0.5px] leading-[23px] pb-[0px] text-[#717172] group-hover:text-blue ${a.value===e.value?"!text-white":""}`,children:a.value}),(0,t.jsx)("p",{className:`group-hover:text-blue text-[12px] text-[#717172] font-semibold tracking-[-0.4px] leading-[16px] md:text-[10px] md:font-medium md:tracking-[-0.1px] md:leading-[14px] ${a.value===e.value?"!text-white":""}`,children:`${a.subtext}`})]}):(0,t.jsx)("p",{className:"text-[19px] font-600 tracking-[-0.5]",children:a.label})},a.value))})]})])},81962,e=>{"use strict";var t,a=((t={}).AB="AB",t.BC="BC",t.MB="MB",t.NB="NB",t.NL="NL",t.NT="NT",t.NS="NS",t.NU="NU",t.ON="ON",t.PE="PE",t.QC="QC",t.SK="SK",t.YT="YT",t);e.s(["ProvinceCode",()=>a,"ProvinceLicense",0,{AB:"alberta-license",BC:"britishcolumbia-license",MB:"manitoba-license",NB:"newbrunswick-license",NS:"novascotia-license",ON:"ontario-license",PE:"princeedwardisland-license",NL:"",NT:"",NU:"",QC:"",SK:"",YT:""}])},85176,47805,e=>{"use strict";e.i(86569);var t=e.i(15481),a=e.i(93416),n=e.i(81962);e.i(56053);var l=e.i(16303);e.i(6447);var r=e.i(58193),s=e.i(30860),i=e.i(90615);e.s(["ProvincePopup",0,function(e){let{open:o,province:c,onClose:x}=e,d=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=e=>{if(e.data)try{let t=JSON.parse(e.data);if("size"!==t.event)return;let a=d?.current;if(!a)return;a.style.height=t.payload.height+20+"px"}catch(e){}};return window.addEventListener("message",e,!1),()=>window.removeEventListener("message",e)},[]),(0,t.jsx)(r.Popup,{isOpen:o,close:c===n.ProvinceCode.NB||c===n.ProvinceCode.NS?null:x,children:(0,t.jsxs)("div",{className:"relative block flex-1 h-full overflow-auto",children:[(0,t.jsx)(i.default,{className:"absolute inset-0 m-auto w-64",src:s.default,alt:"Loading"}),(0,t.jsx)("iframe",{ref:d,src:`https://icash.ca/licenses/${n.ProvinceLicense[c||""]}`,className:"relative bg-white w-full min-h-[88%]"}),(0,t.jsx)("div",{className:"left-0 right-0 p-8 pt-4",children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row justify-center backdrop-blur-md w-full gap-4 bg-gradient-to-b from-[rgba(255,255,255,0.66)] to-[rgba(255,255,255,1)]",children:[c===n.ProvinceCode.NS||c===n.ProvinceCode.NB?(0,t.jsx)(l.Button,{kind:"secondary",className:"w-full !text-[16px] py-[13px]",onClick:x,children:"Cancel"}):null,(0,t.jsx)(l.Button,{className:"w-full !text-[16px] py-[13px]",onClick:x,children:"Continue"})]})})]})})}],47805),e.s([],85176)},89281,60044,71480,e=>{"use strict";var t=e.i(15481),a=e.i(22978);e.s(["Price",0,e=>{var n;let l,{amount:r,size:s,colorClass:i,integer:o,label:c}=e,[x,d]=(l=Math.abs(e.amount).toFixed(2).toString().split(".")).length>1?[l[0],1===(n=l[1]).length?`.0${n}`:0===n.length?".00":`.${n}`]:[l[0],".00"];return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-14 tracking-[-0.3px] leading-[20px] text-gray-300 mb-[10px]",children:c}),(0,t.jsxs)("div",{className:(0,a.default)(` ${e.colorClass||""}`,{"text-[#131316] text-[40px] leading-[40px] tracking-[-1px] font-medium":"medium"===s,"text-[#131316] text-[64px] tracking-[-2.95px] leading-[65px] font-normal":"large"===s},e.className),children:[r<0&&"-",(0,t.jsx)("sub",{className:(0,a.default)({"text-[24px] font-normal mr-[4px] top-[0px]":"medium"===s,"text-[40px] tracking-[0px] mr-[4px] font-300 top-[0px]":"large"===s},i),children:"$"}),x,!o&&(0,t.jsx)("sup",{className:(0,a.default)({"text-[23px] font-normal top-[-12.5px]":"medium"===s,"text-[23px] tracking-[-0.5px] font-400 ml-[3.5px] top-[-32.5px]":"large"===s}),children:d})]})]})}],60044),e.s([],89281),e.s(["SummaryDivider",0,()=>(0,t.jsx)("div",{className:"bg-white relative box-content w-full h-[4px] my-[28.5px] ml-[-33px] pr-[66px]",children:(0,t.jsx)("div",{className:"bg-white absolute w-[24.5px] h-[24.5px] top-[-10.25px] left-0 right-0 mx-auto rounded-full"})})],71480)},27152,e=>{"use strict";var t=e.i(15481),a=e.i(93416),n=e.i(22978),l=e.i(65177),r=e.i(35421);e.i(49753);var s=e.i(60629),i=e.i(81962);let o=[{value:i.ProvinceCode.AB,label:"Alberta"},{value:i.ProvinceCode.BC,label:"British Columbia"},{value:i.ProvinceCode.ON,label:"Ontario"},{value:i.ProvinceCode.NB,label:"New Brunswick"},{value:i.ProvinceCode.MB,label:"Manitoba"},{value:i.ProvinceCode.NS,label:"Nova Scotia"},{value:i.ProvinceCode.PE,label:"Prince Edward Island"},{value:i.ProvinceCode.NL,label:"Newfoundland and Labrador"},{value:i.ProvinceCode.SK,label:"Saskatchewan"},{value:i.ProvinceCode.QC,label:"Quebec"}];e.s(["default",0,function(e){let{payment:c,cashback:x,loan:d,learnMoreHref:u,className:p,province:m,loyalty:h=!0,setProvince:f,setPayment:g,setCashback:v,setLoan:b}=e,w=(0,a.useMemo)(()=>{let e=(0,t.jsx)(l.CostSimulatorRadioGroup,{options:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3}],value:c,onChange:g,label:"Number of payments"});return m===i.ProvinceCode.AB?(0,t.jsxs)("div",{className:"text-[14px] text-nickel",children:[(0,t.jsx)("label",{className:"text-[14px] leading-[20px] tracking-[-0.3px] font-medium text-gray-300 mb-[22px] block",children:"Number of payments"}),(0,t.jsx)("p",{className:"mb-[11px]",children:"The system will automatically provide the number of repayments based on your pay frequency (range between 42 to 62 days)."}),(0,t.jsxs)("p",{children:[(0,t.jsx)("b",{children:"6 to 7 repayments"})," - paid weekly"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("b",{children:"3 to 4 repayments"}
23)," - paid bi-weekly or twice a month"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("b",{children:"2 to 3 repayments"})," - paid monthly"]})]}):m===i.ProvinceCode.ON?(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[14px] leading-[20px] tracking-[-0.3px] font-medium text-gray-300 mb-[22px] block",children:"Number of payments"}),(0,t.jsx)("p",{className:"text-[14px] text-nickel",children:"You can qualify for 2 or 3 repayments if it is your third loan in a 63 day period. If you qualify, the system will automatically provide you with this option once your loan application is complete."})]}):m===i.ProvinceCode.BC?(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[14px] leading-[20px] tracking-[-0.3px] font-medium text-gray-300 mb-[22px] block",children:"Number of payments"}),(0,t.jsx)("p",{className:"text-[14px] text-nickel",children:"You can qualify for 2 or 3 repayments if it is your third loan in a 62 day period. If you qualify, the system will automatically provide you with this option once your loan application is complete."})]}):m===i.ProvinceCode.NS?(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[14px] leading-[20px] tracking-[-0.3px] font-medium text-gray-300 mb-[22px] block",children:"Number of payments"}),(0,t.jsx)("p",{className:"text-[14px] text-nickel",children:"In order to comply with the regulations in Nova-Scotia, we can only offer 1 repayment option in that province."})]}):e},[m,c]),y=(0,a.useMemo)(()=>m===i.ProvinceCode.NL?(0,t.jsx)("p",{className:"text-[13px] leading-[18px] font-medium text-text-error tracking-[-0.25px]",children:"Please note that we do not operate in Newfoundland and Labrador. You can still create an account and we will contact you if the availability in your province changes."}):m===i.ProvinceCode.SK?(0,t.jsx)("p",{className:"text-[13px] leading-[18px] font-medium text-text-error tracking-[-0.25px]",children:"Please note that we do not operate in Saskatchewan. You can still create an account and we will contact you if the availability in your province changes."}):m===i.ProvinceCode.QC?(0,t.jsx)("p",{className:"text-[13px] leading-[18px] font-medium text-text-error tracking-[-0.25px]",children:"Please note that we do not operate in Québec. You can still create an account and we will contact you if the availability in your province changes."}):null,[m]);return(0,t.jsxs)("div",{className:(0,n.default)("w-full px-[11px] md:px-0 md:max-w-[328px] lg:max-w-[464px] select-none",p),children:[(0,t.jsx)("div",{className:"flex flex-col mx-auto mb-[11px]",children:(0,t.jsx)(r.CostSimulatorSlider,{label:(0,t.jsxs)("span",{className:"text-19 block mx-auto text-center max-lg:max-w-[14rem]",children:["Select the amount you wish to ",(0,t.jsx)("span",{className:"text-green",children:"borrow"})]}),value:d,onChange:b})}),(0,t.jsxs)("div",{className:"mb-[22px]",children:[(0,t.jsx)(s.Select,{label:"Select province of residence",onChange:f,options:o}),(0,t.jsx)("p",{children:y})]}),(0,t.jsxs)("div",{className:"mb-[22px]",children:[w,(()=>{if(m&&["BC","NB","MB","PE"].includes(m)){if(2===c)return(0,t.jsx)("p",{className:"text-[14px] text-nickel",children:"Two-payments loans are only available for customers who get paid weekly, bi-weekly, twice a month or receive 2 monthly government income."});else if(3===c)return(0,t.jsx)("p",{className:"text-[14px] text-nickel",children:"Three-payment loans are only available for customers who get paid weekly, bi-weekly or twice a month from the same income."})}return null})()]}),h&&(0,t.jsx)("div",{className:"mb-[33px]",children:["MB","NB"].includes(m)?null:(0,t.jsx)(l.CostSimulatorRadioGroup,{options:[{label:"Elite",value:"Elite",subtext:"New customer"},{label:"Prestige",value:"Prestige"},{label:"VIP",value:"VIP"}],value:x,onChange:v,label:"Loyalty program"})})]})}])},47120,47002,e=>{"use strict";var t=e.i(15481),a=e.i(93416);e.i(56053);var n=e.i(16303),l=e.i(63940),r=e.i(27152),s=e.i(90615);e.i(89281);var i=e.i(60044),o=e.i(71480);function c(e){let{cost:a,cashback:n,loan:r,costOfBorrowing:c,cashbackAmount:x,province:d,className:u,children:p}=e;return(0,t.jsxs)("div",{className:"flex flex-col w-full max-w-[388px] mx-auto md:w-[368px] lg:w-[388px] md:max-w-[388px]",children:[(0,t.jsx)("div",{className:"w-full mb-[33px] max-h-[467px] bg-gray rounded-[36px] flex flex-col overflow-clip",children:(0,t.jsxs)("div",{className:"w-full flex justify-between pt-[22px] px-[22px] lg:px-[33px] lg:pt-[33px] pb-[44px] md:pb-[66px] relative",children:[(0,t.jsxs)("div",{className:"flex flex-col relative z-[1]",children:[(0,t.jsx)("p",{className:"text-[19px] tracking-[-0.5px] font-semibold text-text-main mb-[11px]",children:"Cost summary"}),(0,t.jsx)(i.Price,{amount:a,size:"medium",className:"mb-[11px]",label:"Cost"}),d&&"MB"!==d&&"NB"!==d&&"BC"!==d?(0,t.jsx)("div",{children:(0,t.jsx)(i.Price,{amount:x||0,size:"medium",label:"Cashback"})}):null,d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.SummaryDivider,{}),(0,t.jsx)("div",{className:"w-full relative z-[1]",children:(0,t.jsx)(i.Price,{amount:(0,l.calculateTotalCost)(r||0,c||0,e.provinces,d,n),size:"large",className:"mb-[11px]",label:"Total cost"})})]}):null]}),(0,t.jsx)(s.default,{className:"absolute w-[50%] max-w-[120px] right-0 bottom-[0px]",width:200,height:200,src:"/instant-loans.svg",alt:"instant-loans"})]})}),(0,t.jsxs)("div",{className:"pl-[11px] mb-[22px] flex w-full max-w-[314px] items-center",children:[(0,t.jsx)(s.default,{className:"mr-[11px]",width:55,height:48,src:"/interac.svg",alt:"interac"}),(0,t.jsx)("p",{className:" font-normal text-13 tracking-[-0.15px] leading-[18px] text-gray-300",children:"Apply now and receive your money by e-Transfer at no extra cost."})]}),p]})}e.s(["default",0,c],47002);var x=e.i(81962);e.i(85176);var d=e.i(47805);e.s(["default",0,function({summary:e=!0,className:s="",loyalty:i,button:o=(0,t.jsx)(n.Button,{size:"large",children:"24/7 Service · Apply now"}),eta:u=!0,provinces:p,children:m=null}){let[h,f]=(0,a.useState)(85.5),[g,v]=(0,a.useState)(),[b,w]=(0,a.useState)(1),[y,N]=(0,a.useState)("Prestige"),[j,k]=(0,a.useState)(750),[C,S]=(0,a.useState)(null),[P,M]=(0,a.useState)(!1),B=(0,a.useRef)(void 0),E=h&&j?h-j:0;(0,a.useEffect)(()=>(S((0,l.getFormattedTimeIn20Min)()),B.current=setInterval(()=>S((0,l.getFormattedTimeIn20Min)()),6e4),()=>clearInterval(B.current)),[]),(0,a.useEffect)(()=>{j&&f((0,l.calculateCost)(j,p,g))},[j,g,p]);let A=(0,l.getCashbackAmount)(E,y)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{className:"flex flex-col w-full px-[11
23px] md:px-0 pt-[66px] lg:pt-[66px] overflow-x-hidden lg:rounded-[44px] lg:max-w-[1320px] lg:mx-auto bg-white lg:shadow-costSimulator "+s,onSubmit:e=>(e.preventDefault(),document.location.href=g?`/signup?province=${g}`:"/signup"),children:[(0,t.jsxs)("div",{className:"flex md:max-w-full px-[11px] md:px-0 flex-col md:mx-auto mb-[33px] min-h-[88px] md:min-h-[72px]",children:[(0,t.jsxs)("p",{className:"text-26 md:text-30 tracking-[-1px] text-center leading-8 font-semibold mb-[0px] sm:mx-8",children:[(0,t.jsx)("span",{className:"text-green",children:"Customize "})," your instant loan"]}),u&&(0,t.jsxs)("span",{className:"text-center tracking-[-0.3px] text-21 md:text-26 md:tracking-[-0.5px] lg:tracking-[-0.5px] font-medium md:font-semibold md:text-text-main",children:["Receive your money by"," ",(0,t.jsx)("span",{className:"text-green",children:C})]})]}),(0,t.jsxs)("div",{className:"flex flex-col align-baseline md:flex-row gap-[44px] md:px-[44px] md:justify-between w-full lg:max-w-[1000px] md:max-w-[784px] mx-auto mb-[22px]",children:[(0,t.jsx)(r.default,{payment:b,cashback:y,loan:j,loyalty:i,province:g,className:"mx-auto",setProvince:e=>(v(g=e),x.ProvinceLicense[String(e)]&&M(!0)),setPayment:w,setCashback:N,setLoan:k}),e&&(0,t.jsx)(c,{cost:h,cashback:y,costOfBorrowing:E,cashbackAmount:A,province:g,loan:j,className:"mx-auto",provinces:p,children:m})]}),o&&(0,t.jsx)("div",{className:"md:border-t-[0.5px] md:border-b-[0.5px] lg:border-b-[0px] border-solid border-gray-100 w-full py-[22px] flex justify-center",children:o})]}),(0,t.jsx)(d.ProvincePopup,{open:P,province:String(g),onClose:()=>M(!1)})]})}],47120)}]);
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.