1"use strict";(self.webpackChunkphonebox_website_2022=self.webpackChunkphonebox_website_2022||[]).push([[9354],{33480:function(e,t,n){var a=n(96540);t.A=e=>{var t;const n=(0,a.useState)(""),r=n[0],l=n[1],o=(0,a.useRef)(null);let i;const s=()=>{if(!window.isGoogleMapsLoaded)return void setTimeout(s,500);if(!window.google)return;i=new window.google.maps.places.Autocomplete(o.current,undefined),i.setComponentRestrictions({country:["ca"]}),i.setFields(["address_components","formatted_address"]),i.addListener("place_changed",(()=>c()))},c=()=>{const t=i.getPlace(),n=t.formatted_address;l(n);let a=t.address_components,r=u(a,"street_number",!1)+" "+u(a,"route",!1),o=u(a,"locality",!1);""===o&&(o=u(a,"neighborhood",!1));let s=u(a,"administrative_area_level_1",!1),c=u(a,"administrative_area_level_1",!0),m=u(a,"country",!1),d=u(a,"country",!0),h=u(a,"postal_code",!1);const p={streetAddress:r,city:o,stateProvinceShortName:s,countryShortName:m,zipPostal:h,countryLongName:d,stateProvinceLongName:c,fullAddress:r+", "+o+", "+s+" "+m+", "+h};e.onAutoCompleteAddress(p)},u=(e,t,n)=>{for(let a=0;a<e.length;a++){let r=e[a];if(r.types.includes(t)&&n)return r.long_name;if(r.types.includes(t)&&!n)return r.short_name}return""};return(0,a.useEffect)((()=>{s()}),[e.onAutoCompleteAddress]),a.createElement("input",{className:e.className,type:"text",placeholder:null!==(t=e.placeholder)&&void 0!==t?t:"Enter your address to see available plans!",ref:o,value:r,onChange:e=>l(e.target.value),onFocus:()=>{window.document.body.classList.add("prevent-pointer-event")},onBlur:()=>{window.document.body.classList.remove("prevent-pointer-event")}})}},61123:function(e,t,n){n.r(t),n.d(t,{default:function(){return J}});var a=n(96540),r="home-internet-module--blackButton--5d404",l="home-internet-module--carouselItem--c4016",o="home-internet-module--chatMessageFixed--a9644",i="home-internet-module--checkAvailabilityForm--723c8",s="home-internet-module--checkAvailabilityPopUpForm--cb5b7",c="home-internet-module--faqAnswer--9e6de",u="home-internet-module--faqItem--896d3",m="home-internet-module--faqListContainer--ff3f7",d="home-internet-module--faqOpen--8f139",h="home-internet-module--faqQuestion--23a90",p="home-internet-module--faqSection--f19b9",f="home-internet-module--formPart1--1faf0",v="home-internet-module--formPart1LeftSide--33f5c",E="home-internet-module--formPart2--69eed",g="home-internet-module--heroSection--954da",b="home-internet-module--homeInternetContainer--16843",y="home-internet-module--howToSection--231d4",w="home-internet-module--howToStep--eb92d",N="home-internet-module--howToStepsContainer--1036c",x="home-internet-module--infoSection--14eb3",A="home-internet-module--plansContainer--feb6e",S="home-internet-module--plansSection--0da3c",C="home-internet-module--reason--70e5a",P="home-internet-module--reasonListContainer--15b52",k="home-internet-module--reasonSection--8e788",I="home-internet-module--sectionAfterHero--5511e",T="home-internet-module--sectionAfterHowTo--d54ce",R="home-internet-module--sectionAfterPlan--d3fd6",U="home-internet-module--sliderArrows--5f7e1",L=n(87807),B=n(28007),F=n(33969),j=n(46784),$=n(66188),M=n(24755),H=n(61671),O=n(33480),q=n(44403),D=n(90550),W=n(2896),_=n(71538),K=n(66655),G=n(62716);const z=[{question:"What types of home internet plans are available?",answer:"If you are interested in home internet service with us, please visit our website and enter your address to view available plans and choose the one that best suits your needs. Depending on your location, we will offer you multiple options."},{question:"Is there a data cap on the internet plan, or is it unlimited?",answer:["We are offering an Unlimited data plan! Stream, game, work, and browse as much as you want without worrying about data limits.","Note: Unlimited data for 24 months with TELUS plan, Unlimited data with no contract on Koodo."]},{question:"Which network provider do you partner with?",answer:"Telus is offered in Western Canada, and Koodo in Eastern Canada."},{question:"Is there an equipment rental fee?",answer:"All our Home Internet plans include modem and Wi-Fi 6 router rental, with no shipping or equipment rental fees."},{question:"How can I make sure the pricing and plan I selected is right for me?",answer:["The prices listed for our home internet services are subject to availability and eligibility requirements. A check of your physical address is required to confirm that you qual
1ify for the pricing shown. Eligibility will depend on your location and service availability in your area.","Please note that these prices may vary based on factors such as service location, plan selection, and applicable technology in your area. We recommend verifying eligibility with us before proceeding with your order.","For more details, please contact our customer service team, who will assist you with the address verification process.","Additionally, consider your internet usage habitsâsuch as speed requirements, the number of connected devices, your long term living situation in Canada, our customer service team is available to help you review your options and recommend the plan that best fits your needs."]}],Y=[{title:"Exclusive Home Internet Now Available Across Canada",subtitle:"Unlock Amazing Discounts on High-Speed, Reliable Service",color:"#0094CA",image:"/images/home-internet/slide-1-image.png"},{title:"Sign Up for TELUS Home Internet and Get Lightning-Fast Speeds at the Best Price!",subtitle:"An Exclusive Treat for Mobile Users - Save More, and Experience Everything with PhoneBox",color:"#A2CB7E",image:"/images/home-internet/slide-2-image.png"},{title:"Bring a Friend, Bag the Bonus Up to $30!",subtitle:"Don't Keep PhoneBox to Yourself! The More You Refer, The Bigger the Rewards! Simple, Easy, and Rewarding!",color:"#F2AB40",image:"/images/home-internet/slide-3-image.png"}],V=e=>{let t=e.plan,n=e.onSelectPlan;return a.createElement("div",{className:"home-internet-module--planContent--7598e "+(t.planTitle1?"home-internet-module--isSpecialPlan--276ec":"")},t.planTitle1?a.createElement("p",{className:"home-internet-module--planBanner--7e14d"},a.createElement(j.g,{icon:$.b6I}),a.createElement("span",null,t.planTitle1)):null,a.createElement("div",{className:"planDetails"},a.createElement("p",{className:"home-internet-module--planTitle--1de79"},t.planTitle2),a.createElement("div",{className:"home-internet-module--planContentHeader--8a0ae"},a.createElement("div",{className:"home-internet-module--planPriceContainer--cded2"},t.orgPrice!==t.planPrice?a.createElement("p",{className:"home-internet-module--planPriceOriginal--48245"},"$",t.orgPrice,"/mo."):null,a.createElement("p",{className:"home-internet-module--planPrice--86dfb"},a.createElement("sup",null,"$"),a.createElement("span",null,t.planPrice),a.createElement("sub",null,"/mo."),a.createElement("sup",{className:"home-internet-module--planCurrency--d7540"},"CAD"))),a.createElement("p",{className:"home-internet-module--planName--c4164"},t.planFormal)),a.createElement("div",{className:"home-internet-module--planItemListMainContainer--03f4d"},t.orgPrice!==t.planPrice?a.createElement("p",{className:"home-internet-module--planOffer--b71d9"},"Saving of $",t.orgPrice-t.planPrice,"/mo."):null,a.createElement("hr",null),a.createElement("div",{className:"home-internet-module--planItemList--d42f7"},a.createElement("div",null,a.createElement(j.g,{icon:$.e68}),a.createElement("span",null,"Download Speed: Up to"," ",1024===t.speedDnload?"1":t.speedDnload>1024?(t.speedDnload/1024).toFixed(2):t.speedDnload,t.speedDnload>=1024?" Gbps":" Mbps")),a.createElement("div",null,a.createElement(j.g,{icon:$.e68}),a.createElement("span",null,"Upload Speed: Up to ",t.speedUpload," Mbps")),a.createElement("div",null,a.createElement(j.g,{icon:$.e68}),a.createElement("span",null,"Modem/WiFi Rental Included")),a.createElement("div",null,a.createElement(j.g,{icon:$.e68}),a.createElement("span",null,"No Activation Fee")),a.createElement("div",{className:"home-internet-module--unlimitedDataItem--373fe"},-1===t.dataCapGB?a.createElement(j.g,{icon:$.C8j,size:"xs"}):a.createElement(j.g,{icon:$.e68}),a.createElement("span",null,-1===t.dataCapGB?"Unlimited":t.dataCapGB," Data Usage",-1===t.dataCapGB?a.createElement("sup",null,a.createElement("a",{href:"#info-2"},"(2)")):null))))),a.createElement("button",{className:"home-internet-module--choosePlanButton--a2eb2",onClick:()=>n(t)},"Choose This Plan"))};function J(){const e=(0,W.wA)(),t=(0,a.useState)(0),n=t[0],J=t[1],X=(0,a.useState)(null),Z=X[0],Q=X[1],ee=(0,a.useState)(!1),te=ee[0],ne=ee[1],ae=(0,a.useState)(null),re=ae[0],le=ae[1],oe=(0,a.useState)(null),ie=oe[0],se=oe[1],ce=(0,a.useState)(""),ue=ce[0],me=ce[1],de=(0,a.useState)([]),he=de[0],pe=de[1],fe=(0,a.useState)(!1),ve=fe[0],Ee=fe[1],ge=(0,a.useState)(0),be=ge[0],ye=ge[1],we=(0,a.useRef)(null),Ne=(0,a.useRef)(null),xe=async t=>{Ee(!0);let n=ue;ue||(n=await(async()=>{try{const e=await q.l.getPromocode();return e.data.success?e.data.data:(alert(e.data.message),"")}catch(e){alert("Unknown Error")}})(),me(n),e((0,_.On)(n)));try{const e=(await q.l.getPlanList(t,n)).data;if(e.success){let n=e.data.planDetails;""===t&&(n=n.filter((e=>/ON/i.test(e.serviceArea)&&/rogers/i.test(e.planNote)||/telus/i.test(e.planNote)))),pe(n)}else D.oR.error("Failed to fetch plans. Please try again later.")}catch(a){alert("Unknown Error")}finally{Ee(!1)}},Ae=e=>{const t=he.find((t=>t.planId===e));return void 0!==t&&!!t.serviceArea.toLowerCase().includes(re.stateProvinceShortName.toLowerCase())},Se=t=>(ye(t.planId),e((0,_.Zd)(t.planId)),e((0,_.KF)(t)),null===ie?(D.oR.warn("Please check if the service is available at your location before proceeding further."),void ne(!0)):!1===ie?(D.oR.error("We're Sorry. PhoneBox is not able to supp
1ort at your current location."),!1):void(0,B.navigate)("checkout")),Ce=()=>{we.current.scrollWidth===we.current.clientWidth?(we.current.style.justifyContent="center",Ne.current.style.display="none"):(we.current.style.justifyContent="unset",Ne.current.style.display="flex")};return(0,a.useEffect)((()=>(e((0,K.Vi)("home-internet")),e((0,_.yU)(null)),e((0,_.On)("")),e((0,_.Zd)(0)),e((0,_.KF)(null)),xe(""),window.addEventListener("resize",Ce),()=>{window.removeEventListener("resize",Ce)})),[]),(0,a.useEffect)((()=>{Ce()}),[he]),a.createElement(L.A,{showPartnerNav:!0,containerClassName:b},a.createElement(M.Helmet,null,a.createElement("style",null,"\n body:has(.crisp-client #crisp-chatbox) .chat-message-text-fixed-info.chat-message-text-fixed-info {display: block !important}\n body .slick-prev:before, body .slick-next:before {color: #000000}\n ")),a.createElement("title",null,a.createElement(F.x,null,"Home Internet | PhoneBox")),a.createElement("section",{id:g},a.createElement(H.A,{interval:1e4,touch:!0},Y.map(((e,t)=>a.createElement(H.A.Item,{key:t,style:{backgroundColor:e.color}},a.createElement("div",{style:{backgroundColor:e.color},className:l},a.createElement("div",null,a.createElement("h3",null,e.title),a.createElement("p",null,e.subtitle),a.createElement("button",null,a.createElement("a",{href:"#check-availability-form"},"Get Started"))),a.createElement("img",{src:e.image,alt:e.title})))))),a.createElement("div",{className:i,onClick:()=>{ne(!0)},id:"check-availability-form"},a.createElement("input",{type:"text",placeholder:"Enter your address to see available plans!",value:null!==re?re.fullAddress:"",disabled:!0}),a.createElement("button",{className:r},"Address Confirmation"))),a.createElement("section",{id:I},a.createElement("div",null,a.createElement("img",{src:"/images/home-internet/pen-note.png",alt:"Pen writing on paper"}),a.createElement("div",null,a.createElement("h6",null,"First Time Here? Don't Miss Out"),a.createElement("p",{style:{maxWidth:"800px"}},"Claim Your $100 Sign-Up Bonus Today and Experience the Best in Home Internet Service - Exclusive to new TELUS Internet subscribers through PhoneBox.",a.createElement("sup",null,a.createElement("a",{href:"#info-1"},"(1)"))),null===ie&&a.createElement("button",{className:r,onClick:()=>ne(!0)},"Join Now")))),a.createElement("section",{id:S},a.createElement("div",null,a.createElement("h2",null,"Find Your Perfect Home Internet Plan!"),a.createElement("p",null,"Pricing and plan availability are subject to verification based on your physical address. A final confirmation will be provided after a thorough review, and we will contact you directly via phone to confirm the details of your selected plan. For more information, please refer to the Q&A section for additional details on eligibility and pricing conditions."),a.createElement("div",{id:A,ref:e=>we.current=e},he.map((e=>a.createElement(V,{plan:e,key:e.planId,onSelectPlan:Se})))),a.createElement("div",{id:U,ref:e=>Ne.current=e},a.createElement("span",{onClick:()=>{we.current.scrollLeft-=312}},a.createElement(j.g,{icon:$.Wzs})),a.createElement("span",{onClick:()=>{we.current.scrollLeft+=312}},a.createElement(j.g,{icon:$.XkK}))))),a.createElement("section",{id:R},a.createElement("div",null,a.createElement("div",null,a.createElement("h6",null,"PhoneBox Users, Get Rewarded!"),a.createElement("p",null,"Save Up to $10 on Your Mobile Plan - Time to Switch and Save with Us!"),a.createElement("button",{className:r},a.createElement("a",{href:"/plans",onClick:e=>{e.preventDefault(),(0,G.rb)()}},"Explore Our Mobile Plans"))),a.createElement("img",{src:"/images/home-internet/phone-monitor.png",alt:"Image with monitor and phone"}))),a.createElement("section",{id:y},a.createElement("div",null,a.createElement("h2",null,"See How Simple It Is!"),a.createElement("div",{className:N},a.createElement("div",{className:w},a.createElement("img",{src:"/images/home-internet/order-step.png",alt:"Image represent communication"}),a.createElement("span",null,"1"),a.createElement("h4",null,"Order"),a.createElement("p",null,"24/7 Support",a.createElement("br",null),"in different languages")),a.createElement("div",{className:w},a.createElement("img",{src:"/images/home-internet/set-up-step.png",alt:"Image showing Modem and router"}),a.createElement("span",null,"2"),a.createElement("h4",null,"Set up Your",a.createElement("br",null),"WiFi/Modem at Home"),a.createElement("p",null,"Yes,",a.
1createElement("br",null),"All free!")),a.createElement("div",{className:w},a.createElement("img",{src:"/images/home-internet/enjoy-step.png",alt:"Image represent rocket launching showing that your internet is ready"}),a.createElement("span",null,"3"),a.createElement("h4",null,"Enjoy",a.createElement("br",null),"High-Speed Internet"),a.createElement("p",null,"Easy peasy,",a.createElement("br",null),"right?"))))),a.createElement("section",{id:T},a.createElement("div",null,a.createElement("img",{src:"/images/home-internet/high-five.png",alt:"Image shows two hands high five each other"}),a.createElement("div",null,a.createElement("h6",null,"Share the Benefit, Save More!"),a.createElement("p",null,"Invite your friends to PhoneBox and earn up to $30",a.createElement("sup",null,a.createElement("a",{href:"#info-3"},"(3)")))))),a.createElement("section",{id:k},a.createElement("div",null,a.createElement("h2",null,"Top Reasons to Choose Our Internet"),a.createElement("div",{className:P},a.createElement("div",{className:C},a.createElement("img",{src:"/images/home-internet/reason-money.png",alt:"Image of cartoon person sitting on bunch of coins"}),a.createElement("div",null,a.createElement("h4",null,"Save More with Us Your Wallet Will Thank You"),a.createElement("p",null,"Get more value with our exclusive mobility bundle!",a.createElement("br",null),"Combine your mobile and internet services to enjoy a special discount, making it easier and more affordable to stay connected."),a.createElement("button",null,a.createElement("a",{href:"#check-availability-form"},"Sounds amazing!")))),a.createElement("div",{className:C},a.createElement("img",{src:"/images/home-internet/reason-nationwide.png",alt:"Image of Canada with plans on top showing flight",style:{height:"400px"}}),a.createElement("div",null,a.createElement("h4",null,"Nationwide in Canada"),a.createElement("p",null,"PhoneBox offers exclusive high-speed home internet service, available nationwide across Canada. Get the best value for your internet needs, wherever you are in Canada."),a.createElement("button",null,a.createElement("a",{href:"#check-availability-form"},"Awesome!")))),a.createElement("div",{className:C},a.createElement("img",{src:"/images/home-internet/reason-installation.png",alt:"Image of cartoon person sitting on bunch of coins"}),a.createElement("div",null,a.createElement("h4",null,"Installation, Faster than Fast food."),a.createElement("p",null,"Enjoy hassle-free installation with our high-speed home internet service. Our team ensures a smooth setup process, so you can get connected quickly and easily."),a.createElement("button",null,a.createElement("a",{href:"#check-availability-form"},"See It Now!"))))))),a.createElement("section",{id:p},a.createElement("div",null,a.createElement("h2",null,"Got a Question About Home Internet?",a.createElement("br",null),"Find the Answers You Need Right Here!"),a.createElement("div",{className:m},z.map(((e,t)=>a.createElement("div",{className:u+" "+(n===t?d:""),key:e.question,onClick:()=>{J(t)}},a.createElement("div",{className:h},a.createElement("p",null,e.question),a.createElement(j.g,{icon:$.XkK})),Array.isArray(e.answer)?a.createElement("p",{className:c},e.answer.map(((e,t)=>a.createElement("p",{key:t},e)))):a.createElement("p",{className:c},e.answer))))))),a.createElement("section",{id:x},a.createElement("div",null,a.createElement("p",{id:"info-1"},"1) New sign up bonus for $100 subscribe to TELUS Home Internet through PhoneBox.",a.createElement("br",null),"The bonus will be applied as a credit toward the internet activation fee. This offer is not applicable to Koodo Home Internet or existing TELUS internet users."),a.createElement("p",{id:"info-2"},"2) Unlimited Data",a.createElement("br",null),"Available to PhoneBox customers who purchase qualifying TELUS Home Services product(s). A $15/month discount will be applied to the Home Services bill for 24 months. Cancellation charge may apply if cancelled within 24 months. Cancellation charge is $15 x remaining months of 24 months."),a.createElement("p",{id:"info-3"},"3) Friend's referral bonus",a.createElement("br",null),"The referring customer must be an active PhoneBox mobile account for at least 30 days and maintain the mobile account throughout the peri
1od of promotion. To be eligible for the PhoneBox Friends Referral Reward, the Referee must use the activation link provided by the Referrer to become a new PhoneBox customer. The Referrer and Referee must have different service start dates, with the Referee's activation date being exactly one month after the Referrer's. Referrals are not eligible if the new customer registers through a partner, including plans offered, purchased, or provided by one of our partners. Referral credits are based on the new mobile plan: $20 for Monthly Plans under $40, $30 for Monthly Plans over $40, and $5 for Prepaid Plans (excluding 7-day short-term plans). There is a limit of 15 eligible referrals per calendar year, with the referral count resetting on January 1st. Referrals will be declined if either account is terminated or suspended during the credit application process, and referral credits are non-refundable and non-transferable. Referrals from the same account holder are not eligible, and PhoneBox reserves the right to revoke referral credits if the program is misused or manipulated in violation of our acceptable use policy."))),a.createElement("p",{id:o,className:"chat-message-text-fixed-info"},"Have more questions? We're happy to assist!"),te?a.createElement("div",{id:s,onClick:()=>{ne(!1)}},a.createElement("div",{className:i,onClick:e=>e.stopPropagation()},a.createElement("div",{className:f},a.createElement("div",{className:v},!1!==ie?a.createElement(a.Fragment,null,a.createElement("h3",null,"Is your current internet provider TELUS or Koodo?"),a.createElement("div",null,a.createElement("span",null,a.createElement("input",{type:"radio",name:"is-telus-or-koodo",id:"isTelusOrKoodo-No",onChange:e=>{e.currentTarget.checked&&Q(!1)}}),a.createElement("span",null,"No")),a.createElement("span",null,a.createElement("input",{type:"radio",name:"is-telus-or-koodo",id:"isTelusOrKoodo-Yes",onChange:e=>{e.currentTarget.checked&&Q(!0)}}),a.createElement("span",null,"Yes"))),Z?a.createElement("p",null,"We're Sorry. PhoneBox is not able to support your current internet provider if it is TELUS or Koodo."," ",a.createElement("br",null)," Please contact TELUS/Koodo customer support for further assistance (+1-855-886-0505)."):a.createElement("p",null)):a.createElement(a.Fragment,null,a.createElement("h3",null,"We're Sorry.",a.createElement("br",null),"PhoneBox is not able to support at your current location."),a.createElement("p",null,"Our chatbot on the website can assist you anytime. or give us call on"," ",a.createElement("a",{href:"tel:+1-855-886-0505"},"+1-855-886-0505"),", we're here to help."))),a.createElement("img",{src:!1!==ie?"/images/home-internet/check-availability.png":"/images/home-internet/sad-image.png",alt:"Announcement speaker"})),a.createElement("div",{className:E},Z?a.createElement("input",{type:"text",placeholder:"Enter your address to see available plans!",value:null!==re?re.fullAddress:"",disabled:!0}):a.createElement(O.A,{onAutoCompleteAddress:t=>{t.zipPostal?(le(t),e((0,_.yU)(t))):D.oR.error("We're Sorry. PhoneBox is not able to verify your address. Please try your full address")}}),a.createElement("button",{className:r,onClick:async()=>{if(!1===Z)if(null!==re)try{Ee(!0);const t=(await q.l.checkIfServiceAvailable(re.stateProvinceShortName)).data;if(t.success){if(se(t.data),t.data&&await xe(re.stateProvinceShortName),be&&!Ae(be))return ye(0),e((0,_.KF)(null)),e((0,_.Zd)(0)),D.oR.error("We're Sorry. The Plan you selected is not available at your location, Please select another plan."),void ne(!1);be&&setTimeout((()=>{(0,B.navigate)("checkout")}),0),ne(!1)}else D.oR.error(t.message)}catch(t){D.oR.error("Unexpected Error occurred, please try again later.")}finally{Ee(!1)}else D.oR.error("Please search for an address using the search bar to check the availability.");else D.oR.error("Please select whether your current internet provider is TELUS or Koodo?")},disabled:ve||Z},ve?a.createElement(j.g,{icon:$.z1G,spin:!0}):null," ","Address Confirmation")))):null)}},66655:function(e,t,n){n.d(t,{Vi:function(){return r}});var a=n(40554);const r=e=>t=>{t({type:a.A.ROUTE_PATH,payload:e})}},44403:function(e,t,n){n.d(t,{l:function(){return l}});const a=n(16273).A,r="undefined"!=typeof window&&["localhost","kind-grass-0097d191e-926.westus2.1.azurestaticapps.net","testhp2021.gophonebox.com"].includes(window.location.hostname),l={checkIfServiceAvailable:e=>a.get("/Activation25/IsServiceAvailable?provinceCode="+e),getPromocode:()=>a.get(r?"/Activation25/GetPromocode?testenv=yes":"/Activation25/GetPromocode"),getPlanList:(e,t)=>
1a.get("/Activation25/GetPlanList?promocode="+t+"&provinceCode="+e),isOurPhoneNumber:(e,t)=>a.get("/Activation25/IsOurPhoneNumber?phoneNumber="+e+"&emailAddress="+t),submitPendingOrder:e=>a.post("/Activation25/PostActivation",e),submitConfirmOrder:(e,t,n)=>a.post("/Activation25/PostActivationApproval?phoneNumber="+t+"&emailAddress="+n,null,{headers:{oaid:e}})}},16273:function(e,t,n){var a=n(73872);const r=n.g.window;let l;l=void 0===r?"https://phoneboxapi.azurewebsites.net/api/":r.location.href.includes("testhp2021")||r.location.href.includes("kind-grass")||r.location.href.includes("localhost")?"https://testmyaccount.azurewebsites.net/api/":"https://phoneboxapi.azurewebsites.net/api/";const o=a.A.create({baseURL:l,timeout:6e4,headers:{}});o.interceptors.request.use((async e=>{try{return e.headers.client="alpha",e.headers.apitoken="75e142e9fd9decba5da64d86874ce5b6",e}catch(t){console.error(t)}})),o.interceptors.response.use((function(e){return e}),(function(e){void 0!==r&&(r.location.href.includes("plans")||r.location.href.includes("activation"))?console.log("ERROR DETECTED : ",e):429===e.response.status?alert(e.response.data):console.log("no error detected")})),t.A=o},61671:function(e,t,n){n.d(t,{A:function(){return x}});var a=n(17895),r=n(96540);var l=function(e,t){const n=(0,r.useRef)(!0);(0,r.useEffect)((()=>{if(!n.current)return e();n.current=!1}),t)},o=n(23713),i=n(94820),s=n(2571),c=n(32485),u=n.n(c),m=n(79566),d=n(36519),h=n(74848);const p=r.forwardRef((({className:e,bsPrefix:t,as:n="div",...a},r)=>(t=(0,d.oU)(t,"carousel-caption"),(0,h.jsx)(n,{ref:r,className:u()(e,t),...a}))));p.displayName="CarouselCaption";var f=p;const v=r.forwardRef((({as:e="div",bsPrefix:t,className:n,...a},r)=>{const l=u()(n,(0,d.oU)(t,"carousel-item"));return(0,h.jsx)(e,{ref:r,...a,className:l})}));v.displayName="CarouselItem";var E=v,g=n(9528),b=n(23463),y=n(85258),w=n(28073);const N=r.forwardRef((({defaultActiveIndex:e=0,...t},n)=>{const{as:c="div",bsPrefix:p,slide:f=!0,fade:v=!1,controls:E=!0,indicators:N=!0,indicatorLabels:x=[],activeIndex:A,onSelect:S,onSlide:C,onSlid:P,interval:k=5e3,keyboard:I=!0,onKeyDown:T,pause:R="hover",onMouseOver:U,onMouseOut:L,wrap:B=!0,touch:F=!0,onTouchStart:j,onTouchMove:$,onTouchEnd:M,prevIcon:H=(0,h.jsx)("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:O="Previous",nextIcon:q=(0,h.jsx)("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:D="Next",variant:W,className:_,children:K,...G}=(0,m.Zw)({defaultActiveIndex:e,...t},{activeIndex:"onSelect"}),z=(0,d.oU)(p,"carousel"),Y=(0,d.Wz)(),V=(0,r.useRef)(null),[J,X]=(0,r.useState)("next"),[Z,Q]=(0,r.useState)(!1),[ee,te]=(0,r.useState)(!1),[ne,ae]=(0,r.useState)(A||0);(0,r.useEffect)((()=>{ee||A===ne||(V.current?X(V.current):X((A||0)>ne?"next":"prev"),f&&te(!0),ae(A||0))}),[A,ee,ne,f]),(0,r.useEffect)((()=>{V.current&&(V.current=null)}));let re,le=0;(0,g.jJ)(K,((e,t)=>{++le,t===A&&(re=e.props.interval)}));const oe=(0,o.A)(re),ie=(0,r.useCallback)((e=>{if(ee)return;let t=ne-1;if(t<0){if(!B)return;t=le-1}V.current="prev",null==S||S(t,e)}),[ee,ne,S,B,le]),se=(0,a.A)((e=>{if(ee)return;let t=ne+1;if(t>=le){if(!B)return;t=0}V.current="next",null==S||S(t,e)})),ce=(0,r.useRef)();(0,r.useImperativeHandle)(n,(()=>({element:ce.current,prev:ie,next:se})));const ue=(0,a.A)((()=>{!document.hidden&&function(e){if(!(e&&e.style&&e.parentNode&&e.parentNode.style))return!1;const t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(ce.current)&&(Y?ie():se())})),me="next"===J?"start":"end";l((()=>{f||(null==C||C(ne,me),null==P||P(ne,me))}),[ne]);const de=`${z}-item-${J}`,he=`${z}-item-${me}`,pe=(0,r.useCallback)((e=>{(0,y.A)(e),null==C||C(ne,me)}),[C,ne,me]),fe=(0,r.useCallback)((()=>{te(!1),null==P||P(ne,me)}),[P,ne,me]),ve=(0,r.useCallback)((e=>{if(I&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void(Y?se(e):ie(e));case"ArrowRight":return e.preventDefault(),void(Y?ie(e):se(e))}null==T||T(e)}),[I,T,ie,se,Y]),Ee=(0,r.useCallback)((e=>{"hover"===R&&Q(!0),null==U||U(e)}),[R,U]),ge=(0,r.useCallback)((e=>{Q(!1),null==L||L(e)}),[L]),be=(0,r.useRef)(0),ye=(0,r.useRef)(0),we=(0,i.A)(),Ne=(0,r.useCallback)((e=>{be.current=e.touches[0].clientX,ye.current=0,"hover"===R&&Q(!0),null==j||j(e)}),[R,j]),xe=(0,r.useCallback)((e=>{e.touches&&e.touches.length>1?ye.current=0:ye.current=e.touches[0].clientX-be.current,null==$||$(e)}),[$]),Ae=(0,r.useCallback)((e=>{if(F){const t=ye.current;Math.abs(t)>40&&(t>0?ie(e):se(e))}"hover"===R&&we.set((()=>{Q(!1)}),k||void 0),null==M||M(e)}),[F,R,ie,se,we,k,M]),Se=null!=k&&!Z&&!ee,Ce=(0,r.useRef)();(0,r.useEffect)((()=>{var e,t;if(!Se)return;const n=Y?ie:se;return Ce.current=window.setInterval(document.visibilityState?ue:n,null!=(e=null!=(t=oe.current)?t:k)?e:void 0),()=>{null!==Ce.current&&clearInterval(Ce.current)}}),[Se,ie,se,oe,k,ue,Y]);const Pe=(0,r.useMemo)((()=>N&&Array.from({length:le},((e,t)=>e=>{null==S||S(t,e)}))),[N,le,S]);return(0,h.jsxs)(c,{ref:ce,...G,onKeyDown:ve,onMouseOver:Ee,onMouseOut:ge,onTouchStart:Ne,onTouchMove:xe,onTouchEnd:Ae,className:u()(_,z,f&&"slide",v&&`${z}-fade`,W&&`${z}-${W}`),children:[N&&(0,h.jsx)("div",{className:`${z}-indicators`,children:(0,g.Tj)(K,((e,t)=>(0,h.jsx)("button",{type:"button","data-bs-target":"","aria-label":null!=x&&x.length?x[t]:`Slide ${t+1}`,className:t===ne?"active":void 0,onClick:Pe?Pe[t]:void 0,"aria-current":t===ne},t)))}),(0,h.jsx)("div",{className:`${z}-inner`,children:(0,g.Tj)(K,((e,t)=>{const n=t===ne;return f?(0,h.jsx)(w.A,{in:n,onEnter:n?pe:void 0,onEntered:n?fe:void 0,addEndListener:b.A,children:(t,a)=>r.cloneElement(e,{...a,className:u()(e.props.className,n&&"entered"!==t&&de,("entered"===t||"exiting"===t)&&"active",("entering"===t||"exiting"===t)&&he)})}):r.cloneElement(e,{className:u()(e.props.className,n&&"active")})}))}),E&&(0,h.jsxs)(h.Fragment,{children:[(B||0!==A)&&(0,h.jsxs)(s.A,{className:`${z}-control-prev`,onClick:ie,children:[H,O&&(0,h.jsx)("span",{className:"visually-hidden",children:O})]}),(B||A!==le-1)&&(0,h.jsxs)(s.A,{className:`${z}-control-next`,onClick:se,children:[q,D&&(0,h.jsx)("span",{className:"visually-hidden",children:D})]})]})]})}));
1N.displayName="Carousel";var x=Object.assign(N,{Caption:f,Item:E})},9528:function(e,t,n){n.d(t,{Tj:function(){return r},jJ:function(){return l},mf:function(){return o}});var a=n(96540);function r(e,t){let n=0;return a.Children.map(e,(e=>a.isValidElement(e)?t(e,n++):e))}function l(e,t){let n=0;a.Children.forEach(e,(e=>{a.isValidElement(e)&&t(e,n++)}))}function o(e,t){return a.Children.toArray(e).some((e=>a.isValidElement(e)&&e.type===t))}}}]); 2//# sourceMappingURL=component---src-pages-page-c-4-aeccb-7-b-717-44-dd-9-ba-8-f-723-e-54809-d-6-index-tsx-72fa9ced7baf38fcf303.js.map
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.