PageSourceSearch

https://next.hellotech.com/_next/static/chunks/pages/login-b49d8c05d72e9c99.js

js hellotech.com collected 2026-09-24 17:40:02 UTC 13,527 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{3735:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var r=i(67684),s=i(764),n=i(48230),o=i.n(n),a=i(89099),u=i(67646),l=i(88992),d=i(54404),c=i(23405),h=i(50595),m=i(47231),p=i(65099),g=i.n(p);let f=e=>{var t,i;let{clientEmail:n,initialEmail:p,minimalView:f=!1,onForgotPasswordClick:v=()=>{},onSuccessCallback:b=()=>{},modalView:w=!1}=e,{data:y,mutate:_}=(0,d.A)(),Y=(0,a.useRouter)(),{setAppLevelLoading:O}=(0,c.dD)(),{register:C,handleSubmit:I,formState:{errors:k}}=(0,l.mN)((0,r._)({},(0,m.Wu)(["email","password"],void 0,{email:n||p||"",password:""}))),E=async e=>{let{email:t,password:i}=e;return _({email:t,password:i,callback:b}),O(!0),!1};return(0,s.Y)(u.Grid.Fluid,{classes:"site-v2 paddingY-medium1 ".concat(g().page),dataTestId:"loginForm",children:(0,s.Y)(u.Grid.Row,{children:(0,s.FD)(u.Grid.Column,{sm:4,mdOffset:1,md:6,lgOffset:3,lg:6,children:[(0,s.FD)("div",{className:"flex justifyContentSpaceBetween alignItemsCenter",children:[(0,s.Y)("h1",{children:"Sign In"}),!f&&(0,s.Y)(s.FK,{children:!n&&(0,s.Y)("a",{"data-testid":"link-tech-partner-login",href:(0,h.QG)(),className:"medium-link text-align-right",children:"Sign in as Tech/Partner"})})]}),(0,s.FD)(u.Form,{dataTestId:"loginForm",classes:"paddingTop-small2",onSubmit:()=>!1,children:[(0,s.Y)(u.Form.Row,{children:(0,s.Y)(u.Form.Column,{children:(0,s.Y)(u.InputField,(0,r._)({dataTestId:"loginForm-email",type:"email",label:"Email Address",error:null==(t=k.email)?void 0:t.message},C("email")))})}),(0,s.Y)(u.Form.Row,{children:(0,s.Y)(u.Form.Column,{children:(0,s.Y)(u.InputField,(0,r._)({dataTestId:"loginForm-password",label:"Password",type:"password",error:(null==(i=k.password)?void 0:i.message)||(null==y?void 0:y.error)},C("password")))})}),(0,s.Y)(u.Form.Row,{children:(0,s.Y)(u.Form.Column,{children:(0,s.Y)(u.Button,{dataTestId:"loginForm-submit-button",theme:u.BUTTON_THEMES.PRIMARY,onClick:I(E),children:"Sign In"})})})]}),(0,s.FD)("div",{className:"marginTop-small2 flex justifyContentSpaceBetween",children:[(0,s.Y)("span",{children:(0,s.Y)("a",{className:"medium-link text-weight-medium",onClick:()=>f?v():Y.push((0,h.wO)()),children:"Forgot password?"})}),!f&&(0,s.Y)("span",{children:(0,s.Y)(o(),{href:(0,h.p2)(),className:"medium-link text-weight-medium",children:"Register"})})]})]})})})}},7984:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return i(25603)}])},11134:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=i(3735).default},25603:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var r=i(764),s=i(77328),n=i.n(s),o=i(41988),a=i(28603),u=i(58456);function l(){return(0,r.FD)(r.FK,{children:[(0,r.Y)(n(),{children:(0,o.U)({title:"Log In"})}),(0,r.Y)(u.A,{})]})}l.pageAttributes={page:i(34667).nD},l.Layout=(0,a.A)({promo:!0,footer:!1});let d=l},34667:(e,t,i)=>{"use strict";i.d(t,{A$:()=>p,D9:()=>n,Dd:()=>f,G0:()=>s,Gg:()=>w,Ik:()=>v,JF:()=>C,Jp:()=>u,Lo:()=>a,No:()=>c,Z:()=>Y,Z7:()=>_,ct:()=>d,fM:()=>l,fU:()=>I,fg:()=>y,jT:()=>g,kV:()=>r,mC:()=>o,ml:()=>b,nD:()=>m,qW:()=>O,uI:()=>h});let r="sku_service",s="sku_product",n="addsku",o="plans",a="location",u="speed",l="home",d="category",c="termsOfService",h="safetyAndSupport",m="login",p="faq",g="register",f="resetPassword",v="cancellationPolicy",b="customerReviews",w="meetOurTechs",y="homeHubSurveys",_="userHomeHub",Y="homeHubSurveyRecommendations",O="Services",C="landing",I="cookies"},40625:(e,t,i)=>{"use strict";i.d(t,{pL:()=>c});var r,s,n=i(70572),o=Object.defineProperty,a=(e,t,i)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?o(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i},u=new Map,l=new WeakMap,d=0,c=class extends n.Component{constructor(e){super(e),a(this,"node",null),a(this,"_unobserveCb",null),a(this,"lastInView"),a(this,"handleNode",e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||(this.setState({inView:!!this.props.initialInView,entry:void 0}),this.lastInView=this.props.initialInView)),this.node=e||null,this.observeNode()}),a(this,"handleChange",(e,t)=>{let i=this.lastInView;this.lastInView=e,(void 0!==i||e)&&(e&&this.props.triggerOnce&&this.unobserve(),"function"==typeof this.props.children&&this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t))}),this.state={inView:!!e.initialInView,entry:void 0},this.lastInView=e.initialInView}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:i,trackVisibility:s,delay:n,fallbackInView:o}=this.props;void 0===this.lastInView&&(this.lastInView=this.props.initialInView),this._unobserveCb=function(e,t,i={},s=r){if(void 0===window.IntersectionObserver&&void 0!==s){let r=e.getBoundingClientRect();return t(s,{isIntersecting:s,target:e,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:n,observer:o,elements:a}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var i;return`${t}_${"root"===t?!(i=e.root)?"0":(l.has(i)||(d+=1,l.set(i,d.toString())),l.get(i)):e[t]}`}).toString(),i=u.get(t);if(!i){let r,s=new Map,n=new IntersectionObserver(t=>{t.forEach(t=>{var i;let n=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=n),[...null!=(i=s.get(t.target))?i:[]].forEac
1h(e=>{e(n,t)})})},e);r=n.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),i={id:t,observer:n,elements:s},u.set(t,i)}return i}(i),c=a.get(e)||[];return a.has(e)||a.set(e,c),c.push(t),o.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(a.delete(e),o.unobserve(e)),0===a.size&&(o.disconnect(),u.delete(n))}}(this.node,this.handleChange,{threshold:e,root:t,rootMargin:i,trackVisibility:s,delay:n},o)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:t,entry:i}=this.state;return e({inView:t,entry:i,ref:this.handleNode})}let{as:t,triggerOnce:i,threshold:r,root:s,rootMargin:o,onChange:a,skip:u,trackVisibility:l,delay:d,initialInView:c,fallbackInView:h,...m}=this.props;return n.createElement(t||"div",{ref:this.handleNode,...m},e)}};null!=(null!=(s=n.useInsertionEffect)?s:n.useLayoutEffect)||n.useEffect},47231:(e,t,i)=>{"use strict";i.d(t,{Bz:()=>h,HK:()=>c,MR:()=>m,Wu:()=>g});var r=i(91408),s=i(96415);let n="Email is required",o="Please enter a valid email address",a="Enter 5-digit ZIP code",u="Please enter a valid number",l="Please enter valid pricing",d="Passcode is required",c=/(^\d+$)/,h=/(?=.*?\d)^\$?(([1-9]\d{0,2}(,\d{3})*)|\d+)?(\.\d{1,2})?$/,m=/\w+/,p={firstName:(0,r.Yj)().required("First name is required").trim(),lastName:(0,r.Yj)().required("Last name is required"),email:(0,r.Yj)().email(o).required(n),email_autoOff:(0,r.Yj)().email(o).required(n),password:r.Yj().required("Password is required").min(6,"Password is too short - should be 6 chars minimum."),passwordConfirmation:(0,r.Yj)().oneOf([(0,r.KR)("password"),void 0],"Passwords must match"),hearAboutUs:(0,r.Yj)().required("Please tell us how you heard about us"),address:(0,r.Yj)().required("Address is required"),phone:(0,r.Yj)().required("Phone is required").matches(new RegExp(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),"Phone requires 10 digits"),zipCode:(0,r.Yj)().matches(/(^\d{5}$)/,a).max(5).required(a),text:(0,r.Yj)().required("Input is required"),numeric:(0,r.Yj)().matches(c,u).required(u),currency:(0,r.Yj)().matches(h,l).required(l),emptyRequirement:(0,r.Yj)(),addressDetails:(0,r.Yj)(),passcode:(0,r.Yj)().matches(c,d).max(6).required(d)},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"onSubmit",i=arguments.length>2?arguments[2]:void 0,n=[].concat(e).filter(e=>e&&p[e]).reduce((e,t)=>(t&&(e[t]=p[t]),e),{});return{resolver:(0,s.t)((0,r.Ik)().shape(n)),defaultValues:i,reValidateMode:t}}},54404:(e,t,i)=>{"use strict";i.d(t,{A:()=>v});var r=i(67768),s=i(94622),n=i(89099),o=i(34356),a=i(46725),u=i(66835),l=i(52220),d=i(22756),c=i(87913),h=i(44930),m=i(79989),p=i(87840),g=i(23405),f=i(50595);function v(){let e=(0,r.jE)(),{mutate:t}=(0,p.A)(),i=(0,n.useRouter)(),{setOpenSlideModalLogin:v}=(0,g.dD)();return(0,s.n)({mutationFn:async e=>{let t,{email:i,password:r,callback:s=u.lQ}=e,{data:n}=await o.kQ.login({type:"Client",password:r,email:i});if(t=n,500===n.status)throw Error("Sorry, we cannot process your request. Please try again later.");if(n.errors||n.err)return{error:"Invalid email or password. Please try again."};if(null==t?void 0:t.auth_token){let e=await fetch("/api/_nextassets_/current?auth_token=".concat(n.auth_token));t=await e.json()}return(null==t?void 0:t.user)?t.user:t},onSuccess:async(r,s)=>{let{callback:n}=s,{authToken:o}=null!=r?r:{},a=(0,f.$A)();o&&(await (0,l.b)(r),(0,d.EN)(),(0,c.c)(r),e.invalidateQueries({queryKey:m.P.all}),t(void 0,{onSuccess:e=>{var t,s,o;let{cart:u}=e;if(u&&(null==(t=u.order)?void 0:t.fromApi)){let e=Object.entries(i.query).map(e=>{let[t,i]=e;return"".concat(t,"=").concat(Array.isArray(i)?i.join(","):i)}).join("&");a="".concat((0,f.b3)(),"?").concat(e)}u&&((null==(s=u.items)?void 0:s.length)||(null==(o=u.plan)?void 0:o.id))&&(a=(0,f.$A)()),null==n||n(r),i.push(a),v(!1)}}))},onError:e=>{(0,h.Sc)({error_title:"Login Error",errors:[e.message]}),(0,a.V)("useUserMutationLogin")(e)}})}},56961:(e,t,i)=>{"use strict";i.d(t,{_:()=>a});var r=i(21407),s=i(60388),n=i(90089),o=i(37149),a=class extends n.Q{#e;#t=void 0;#i;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#i,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.EN)(t.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#i?.state.status==="pending"&&this.#i.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#i?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#n(e)}getCurrentResult(){return this.#t}reset(){this.#i?.removeObserver(this),this.#i=void 0,this.#s(),this.#n()}mutate(e,t){return this.#r=t,this.#i?.removeObserver(this),this.#i=this.#e.getMutationCache().build(this.#e,this.options),this.#i.addObserver(this),this.#i.execute(e)}#s(){let e=this.#i?.state??(0,r.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#n(e){s.jG.batch(()=>
1{if(this.#r&&this.hasListeners()){let t=this.#t.variables,i=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,i,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,i,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,i,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,i,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}}},57065:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var r=i(21627),s=i(53192);let n=()=>{let{addErrorAppSnackNotice:e,addSuccessAppSnackNotice:t,addAppSnackNotice:i}=(0,s.S)();return{error(t,i){e({content:t,id:i})},success(e,i){t({content:e,id:i})},info(e,t){i({status:r.f.info,id:t,content:e,dismissable:!1})}}}},58456:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r=i(93784).A},65099:e=>{e.exports={page:"loginform_page__XO4yc",iconContainer:"loginform_iconContainer__Mm1ex",modalHeader:"loginform_modalHeader__k2Xvs",header:"loginform_header__u81PX",logoOuterWrapper:"loginform_logoOuterWrapper__lpL_H",logo:"loginform_logo__1c3ZB",fadein:"loginform_fadein__pUYgN",loading:"loginform_loading__cS5IH"}},87840:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var r=i(67684),s=i(94622),n=i(34356),o=i(65267),a=i(79989),u=i(46725),l=i(57065);let d=()=>{let{error:e}=(0,l.A)();return(0,s.n)({mutationFn:async()=>{let e=await n.N5.find({breakdown:!0});if(500===e.data.status||e.err)throw e;return e.data},onSuccess:e=>{let{cart:t={}}=null!=e?e:{};o.qQ.setQueryData(a.P.all,(0,r._)({},t))},onError:t=>{e("Error: We could not generate your cart"),(0,u.V)("useCartMutation.find")(t)}})}},93784:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(764),s=i(89099),n=i(11134);let o=()=>{let{query:{email:e=""}}=(0,s.useRouter)();return(0,r.Y)(n.A,{initialEmail:e})}},94622:(e,t,i)=>{"use strict";i.d(t,{n:()=>u});var r=i(70572),s=i(56961),n=i(60388),o=i(37149),a=i(67768);function u(e,t){let i=(0,a.jE)(t),[u]=r.useState(()=>new s._(i,e));r.useEffect(()=>{u.setOptions(e)},[u,e]);let l=r.useSyncExternalStore(r.useCallback(e=>u.subscribe(n.jG.batchCalls(e)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),d=r.useCallback((e,t)=>{u.mutate(e,t).catch(o.lQ)},[u]);if(l.error&&(0,o.GU)(u.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:d,mutateAsync:l.mutate}}}},e=>{e.O(0,[8230,4473,864,4344,8603,636,8792],()=>e(e.s=7984)),_N_E=e.O()}]);
2//# sourceMappingURL=login-b49d8c05d72e9c99.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.