PageSourceSearch

https://next.hellotech.com/_next/static/chunks/6275.2ceb7dccdfe828ed.js

js hellotech.com collected 2026-09-24 17:41:54 UTC 15,998 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6275],{1398:(t,e,a)=>{"use strict";a.d(e,{A:()=>r});var n=a(70572),i=a(80441);let r=function(t,e){if(!t||!e)return;let a=(0,n.useCallback)(a=>{t.current&&!t.current.contains(a.target)&&e()},[t,e]);(0,i.A)({eventName:"click",handler:a})}},4492:(t,e,a)=>{"use strict";a.d(e,{X:()=>u});var n=a(67684),i=a(62701),r=a(7766),s=a.n(r),o=a(10189),l=a(23760);let u={checkoutStarted(t){let e=(0,n._)({},function(t){let e=s()(t,"breakdown",{}),a=s()(t,"items",[]),r=s()(e,"items",[])||[],o=t=>a.find(e=>e.skuId===t),u=s()(t,"partner",!1),c=u?{partner_id:u.id,partner_name:t.partnerName||s()(t,"partner.name","")||s()(t,"partner.landingSeoName","")||""}:null,d=r.map(t=>{let{skuId:e}=t;return{sku_id:e,base_price:t.amount/100,category:t.category,is_remote:s()(o(e),"remote",!1),image_url:s()(o(e),"heroImageUrl",!1),name:t.name,partner:c,physical_product:t.isProduct,requires_installation:t.requiresInstallation}}),{amount:h=0}=(0,l._x)(t);return(0,i._)((0,n._)({cart_id:t.id,amount:e.total/100,savings:e.totalSavings,products:d},t.workflow&&{workflow:t.workflow}),{token:t.token,credits_amount:h/100})}(t));o.A.track("Checkout Started",e)}}},6213:(t,e,a)=>{"use strict";a.d(e,{O:()=>v});var n=a(70572),i=a(79023),r=a(2087),s=a(72872),o=a(86600),l=a(60060),u=a(87840),c=a(89099),d=a(50595),h=a(16032),m=a(97488),p=a(19819);let v=()=>{let t=(0,c.useRouter)(),e=(0,i.ZM)(),a=(0,h.A)(),v=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.includes("/cart/booking")},f=(0,l.A)(),[g,_]=(0,n.useState)(!1),E=(0,s.A)(),[S,y]=(0,n.useState)(!1),R=(0,r.Yf)(),k=(0,o.A)(),b=(0,r.wx)(),T=((null==b?void 0:b.items)||[]).map(t=>(0,m.X7)(t)),M=(0,u.A)(),C=(0,n.useCallback)(()=>M.mutate(),[M]),D=(null==a?void 0:a.id)&&!(null==a?void 0:a.breakdown);return(0,n.useEffect)(()=>{D&&C()},[D,C]),{breakdownItems:T,cartedPlan:R,getEditSkuLink:t=>"".concat((0,d.er)(t),"?mode=edit&index=").concat(0),isInBookingFlow:v,removePlan:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";k.mutate({toastMessage:p.aB.MEMBERSHIP});let n=0===a.items.length;v(e)&&n&&t.push((0,d.jP)())},removeSku:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";E.mutate({idx:0,toastMessage:p.aB.SERVICE}),v(e)&&t.push((0,d.jP)())},showRemovePlanModal:S,showRemoveServiceModal:g,startBookingProcess:()=>f.mutate(void 0,{onSuccess:()=>(0,l.c)({router:t,isPasswordless:e})}),toggleRemovePlanModal:()=>y(!S),toggleRemoveServiceModal:()=>_(!g)}}},14271:(t,e,a)=>{"use strict";a.d(e,{A:()=>N});var n=a(764),i=a(70572),r=a(67646),s=a(54587),o=a.n(s),l=a(18847),u=a.n(l),c=a(48230),d=a.n(c),h=a(15039),m=a.n(h),p=a(91971),v=a(1398),f=a(89099),g=a(69902),_=a(76042),E=a(85993),S=a.n(E),y=a(6213),R=a(62129),k=a(57810);let b="text-link p2 underline text-weight-medium",T="p1 text-weight-medium",M=u()(()=>Promise.resolve().then(a.bind(a,62129)),{loadableGenerated:{webpack:()=>[62129]},ssr:!1}),C=t=>{let{plan:e,toggleremovePlanModal:a}=t;if(!e||!e.id)return null;let{name:i,planInterval:r,amount:s}=e,o=r===_.io.ANNUAL?"year":"month";return(0,n.FD)("div",{className:S().cardDetails,children:[(0,n.FD)("div",{className:S().leftSide,children:[(0,n.Y)("div",{className:"marginRight-small",children:(0,n.Y)("img",{alt:i,src:"/_nextassets_/icons/shp-cart-thumbnail.webp",className:S().image})}),(0,n.FD)("div",{children:[(0,n.Y)("p",{className:T,children:i}),(0,n.Y)("button",{type:"button",className:"plainButton",children:(0,n.Y)("span",{className:b,onClick:a,children:"Remove"})})]})]}),(0,n.FD)("div",{className:S().rightSide,children:[(0,n.Y)("p",{className:"p1 n900",children:"".concat((0,g.X9)(0).format(s),"/").concat(o)}),(0,n.Y)("p",{className:"caption n700 text-align-right",children:"Due today"})]})]})},D=t=>{let{breakdownItems:e,getEditSkuLink:a,toggleRemoveServiceModal:i}=t;if(0===(e||[]).length)return null;let[r]=e,{image:s,name:l,subTotal:u}=r,c=(0,g.og)({sku:r.priceType,price:u.amount||"0",withAsterik:!0}),h=!!u.lineThroughText,p=m()({blue700:h,"text-weight-medium":h,n900:!h}),v=(0,k.yz)()?"https://picsum.photos/id/237/56/56":s;
1return(0,n.FD)("div",{className:S().cardDetails,children:[(0,n.FD)("div",{className:S().leftSide,children:[v?(0,n.Y)(o(),{src:v,alt:l,width:48,height:48,quality:100,className:m()(S().image,"marginRight-small")}):(0,n.Y)("div",{className:m()(S().image,"marginRight-small")}),(0,n.FD)("div",{children:[(0,n.Y)("div",{className:T,children:l}),(0,n.Y)(d(),{href:a(String(r.skuId)),className:m()(b,S().editText),children:"Edit details"}),(0,n.Y)("button",{type:"button",className:"plainButton",onClick:i,children:(0,n.Y)("span",{className:b,children:"Remove"})})]})]}),(0,n.FD)("div",{className:S().rightSide,children:[(0,n.FD)("p",{className:m()(S().amount,"p1 text-align-right"),children:[u.lineThroughText&&(0,n.Y)("span",{className:"line-through n700",children:u.lineThroughText}),(0,n.FD)("span",{className:p,children:["\xa0",c]})]}),(0,n.Y)("p",{className:"caption n700 text-align-right",children:"Due after service"})]})]})},A=()=>(0,n.Y)("div",{className:S().spacer}),N=t=>{let{toggleCartDisplay:e,offsetRightSmall:a,offsetRightMedium:s=!0}=t,o=(0,f.useRouter)(),l=(0,i.useRef)(null),{breakdownItems:u,cartedPlan:c,getEditSkuLink:d,isInBookingFlow:h,removePlan:g,removeSku:_,showRemovePlanModal:E,showRemoveServiceModal:k,startBookingProcess:b,toggleRemovePlanModal:T,toggleRemoveServiceModal:N}=(0,y.O)();(0,v.A)(l,e);let Y=m()({[S().offsetRightSmall]:a,[S().offsetRightMedium]:s&&!a}),O=!h(o.pathname),w="hourly"===(u[0]||{}).priceType,F=(u||[]).length>0;return(0,n.FD)("div",{ref:l,className:m()(S().cartDisplayContainer,Y),children:[(0,n.Y)(D,{breakdownItems:u,getEditSkuLink:d,toggleRemoveServiceModal:N}),F&&(0,n.Y)(A,{}),(0,n.Y)(C,{plan:c,toggleremovePlanModal:T}),(0,n.Y)(A,{}),(0,n.Y)(r.CalloutBox,{theme:r.CalloutBoxThemes.PRIMARY,text:"Have a promo code? You'll have the chance to apply it near the end of this booking."}),O&&(0,n.FD)(n.FK,{children:[(0,n.Y)(A,{}),(0,n.Y)(r.Button,{theme:r.BUTTON_THEMES.PRIMARY,onClick:b,children:"Book Now"})]}),w&&(0,n.FD)(n.FK,{children:[(0,n.Y)(A,{}),(0,n.Y)("p",{className:"p2 n700",children:"*Hourly services are charged for a minimum of one hour, and billable in half-hour increments thereafter. Though we'll try our very best, resolution is not always possible and can't be guaranteed."})]}),(0,n.Y)(p.A,{condition:k,children:(0,n.Y)(M,{isVisible:k,hide:N,onConfirm:()=>_(o.pathname),type:R.MODAL_TYPES.SERVICE})}),(0,n.Y)(p.A,{condition:E,children:(0,n.Y)(M,{isVisible:E,hide:T,onConfirm:()=>g(o.pathname),type:R.MODAL_TYPES.MEMBERSHIP})})]})}},18221:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});let n=a(14271).A},56961:(t,e,a)=>{"use strict";a.d(e,{_:()=>o});var n=a(21407),i=a(60388),r=a(90089),s=a(37149),o=class extends r.Q{#t;#e=void 0;#a;#n;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,s.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,s.EN)(e.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#r(t)}getCurrentResult(){return this.#e}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#i(),this.#r()}mutate(t,e){return this.#n=e,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(t)}#i(){let t=this.#a?.state??(0,n.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#r(t){i.jG.batch(()=>{if(this.#n&&this.hasListeners()){let e=this.#e.variables,a=this.#e.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,e,a,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(t.data,null,e,a,n)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,e,a,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(void 0,t.error,e,a,n)}catch(t){Promise.reject(t)}}}
1this.listeners.forEach(t=>{t(this.#e)})})}}},57065:(t,e,a)=>{"use strict";a.d(e,{A:()=>r});var n=a(21627),i=a(53192);let r=()=>{let{addErrorAppSnackNotice:t,addSuccessAppSnackNotice:e,addAppSnackNotice:a}=(0,i.S)();return{error(e,a){t({content:e,id:a})},success(t,a){e({content:t,id:a})},info(t,e){a({status:n.f.info,id:e,content:t,dismissable:!1})}}}},60060:(t,e,a)=>{"use strict";a.d(e,{A:()=>f,c:()=>v});var n=a(67684),i=a(67768),r=a(94622),s=a(34356),o=a(79989),l=a(44930),u=a(57065),c=a(46725),d=a(4492),h=a(57146),m=a(50595),p=a(19819);let v=t=>{let{router:e,isPasswordless:a}=t;a?e.push((0,m.t)()):e.push({pathname:(0,m.cR)(),search:"?redirectTo=".concat(p.eJ.VERIFICATION)})};function f(){let{errorType:t=l.kq.MODAL_NOTICE}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,i.jE)(),{error:a}=(0,u.A)();return(0,r.n)({mutationFn:async()=>{let t=await s.N5.startBooking();if(500===t.status||t.err)throw t;return t},onSuccess:t=>{var a;let{cart:i={}}=null!=(a=null==t?void 0:t.data)?a:{};e.setQueryData(o.P.all,(0,n._)({},i)),d.X.checkoutStarted(i)},onError:e=>{if(t===l.kq.MODAL_NOTICE){let{errors:t="Could not add your selection(s).",error_title:a="Start Booking Error"}=(0,h.HH)(e);(0,l.Sc)({error_title:a,errors:t})}else a("Error! Could not add your selection.");(0,c.V)("useCartAddToCart")(e)}})}},62129:(t,e,a)=>{"use strict";a.r(e),a.d(e,{MODAL_TYPES:()=>r,default:()=>s});var n=a(764);a(70572);var i=a(67646);let r={SERVICE:"service",MEMBERSHIP:"membership"},s=t=>{let{isVisible:e,hide:a,onConfirm:s,type:o=r.SERVICE}=t;return(0,n.Y)(i.Modal,{isVisible:e,hide:a,header:"Are you sure you want to remove this ".concat(o,"?"),elementSize:i.ELEMENT_SIZE.MEDIUM,footerElement2:(0,n.Y)(i.Button,{theme:i.BUTTON_THEMES.SECONDARY,onClick:a,children:"Cancel"}),footerElement3:(0,n.Y)(i.Button,{theme:i.BUTTON_THEMES.PRIMARY,onClick:s,children:"Remove"})})}},72872:(t,e,a)=>{"use strict";a.d(e,{A:()=>m});var n=a(67684),i=a(94622),r=a(34356),s=a(67646),o=a(87620),l=a(57146),u=a(46725),c=a(65267),d=a(79989),h=a(19819);let m=function(){let{config:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.n)((0,n._)({mutationFn:async t=>{let{idx:e}=t,a=await r.N5.removeItem({itemIndex:e,no_taxes:!0});if(o.m4.has((0,l.LY)(a))||a.err)throw a;return a.data},onSuccess:(t,e)=>{let{toastMessage:a=h.aB.DEFAULT}=e,{cart:i={}}=null!=t?t:{};c.qQ.setQueryData(d.P.all,(0,n._)({},i)),(0,s.htToast)(a)},onError:t=>{(0,u.V)("Sku Remove")(t)}},t))}},80441:(t,e,a)=>{"use strict";a.d(e,{A:()=>r});var n=a(70572);let i=window,r=function(t){let{eventName:e,handler:a,element:r=i}=t,s=(0,n.useRef)();(0,n.useEffect)(()=>{s.current=a},[a]),(0,n.useEffect)(()=>{if(!(r&&r.addEventListener))return;let t=t=>s.current(t);return r.addEventListener(e,t,{passive:!0}),()=>r.removeEventListener(e,t)},[e,r])}},85993:t=>{t.exports={cartDisplayContainer:"cartnavigationdisplay_cartDisplayContainer__4dQ5_",offsetRightSmall:"cartnavigationdisplay_offsetRightSmall__uubxa",offsetRightMedium:"cartnavigationdisplay_offsetRightMedium__JR6E_",spacer:"cartnavigationdisplay_spacer__dYNht",cardDetails:"cartnavigationdisplay_cardDetails__hVu1Y",editText:"cartnavigationdisplay_editText__3f890",leftSide:"cartnavigationdisplay_leftSide__S7T0r",image:"cartnavigationdisplay_image__0the6",fadein:"cartnavigationdisplay_fadein__TSfmS",loading:"cartnavigationdisplay_loading__L_Cus"}},86600:(t,e,a)=>{"use strict";a.d(e,{A:()=>d});var n=a(67684),i=a(67768),r=a(94622),s=a(67646),o=a(34356),l=a(79989),u=a(46725),c=a(19819);function d(){let t=(0,i.jE)();return(0,r.n)({mutationFn:async()=>{let t=await o.N5.removePlan();if(500===t.status)throw Error(t.err);return t},onSuccess:(e,a)=>{var i;let{toastMessage:r=c.aB.DEFAULT}=a,{cart:o={}}=null!=(i=null==e?void 0:e.data)?i:{};t.setQueryData(l.P.all,(0,n._)({},o)),(0,s.htToast)(r)},onError:t=>{(0,u.V)("useCartMutationRemoveplan")(t)}})}},87840:(t,e,a)=>{"use strict";a.d(e,{A:()=>c});var n=a(67684),i=a(94622),r=a(34356),s=a(65267),o=a(79989),l=a(46725),u=a(57065);let c=()=>{let{error:t}=(0,u.A)();return(0,i.n)({mutationFn:async()=>{let t=await r.N5.find({breakdown:!0});if(500===t.data.status||t.err)throw t;return t.data},onSuccess:t=>{let{cart:e={}}=null!=t?t:{};s.qQ.setQueryData(o.P.all,(0,n._)({},e))},onError:e=>{t("Error: We could not generate your cart"),(0,l.V)("useCartMutation.find")(e)}})}},91971:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(764);let i=t=>{let{condition:e,children:a}=t;return(0,n.Y)(n.FK,{children:!!e&&a})}},94251:(t,e,a)=>{"use strict";a.d(e,{V:()=>o});var n=a(4902),i=a(70572),r=a(40074),s=a(69662);function o(t){void 0===t&&(t={});var e=(0,r.r)(),a=e.client,o=e.factory,l=t.splitKey,u=t.attributes,c=t.updateOnSdkReady,d=void 0===c?e.updateOnSdkReady:c,h=t.updateOnSdkReadyFromCac
1he,m=void 0===h?e.updateOnSdkReadyFromCache:h,p=t.updateOnSdkTimedout,v=void 0===p?e.updateOnSdkTimedout:p,f=t.updateOnSdkUpdate,g=void 0===f?e.updateOnSdkUpdate:f,_=o&&l?(0,s.ez)(o,l):a;(0,s.ub)(_,u);var E=i.useState(0),S=E[0],y=E[1],R=i.useMemo(function(){return(0,s.BS)(_)},[_,S]);return i.useEffect(function(){if(_){var t=function(){return y((0,s.BS)(_).lastUpdate)},e=(0,s.BS)(_);return!1!==d&&(e.isReady?R.isReady||t():_.once(_.Event.SDK_READY,t)),!1!==m&&(e.isReadyFromCache?R.isReadyFromCache||t():_.once(_.Event.SDK_READY_FROM_CACHE,t)),!1!==v&&(e.hasTimedout?R.hasTimedout||t():e.isReady||_.once(_.Event.SDK_READY_TIMED_OUT,t)),!1!==g&&(_.on(_.Event.SDK_UPDATE,t),e.isReady&&e.lastUpdate>R.lastUpdate&&t()),function(){_.off(_.Event.SDK_READY,t),_.off(_.Event.SDK_READY_FROM_CACHE,t),_.off(_.Event.SDK_READY_TIMED_OUT,t),_.off(_.Event.SDK_UPDATE,t)}}},[_,d,m,v,g,R]),(0,n.Cl)((0,n.Cl)({factory:o,client:_},R),{updateOnSdkReady:d,updateOnSdkReadyFromCache:m,updateOnSdkTimedout:v,updateOnSdkUpdate:g})}},94622:(t,e,a)=>{"use strict";a.d(e,{n:()=>l});var n=a(70572),i=a(56961),r=a(60388),s=a(37149),o=a(67768);function l(t,e){let a=(0,o.jE)(e),[l]=n.useState(()=>new i._(a,t));n.useEffect(()=>{l.setOptions(t)},[l,t]);let u=n.useSyncExternalStore(n.useCallback(t=>l.subscribe(r.jG.batchCalls(t)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=n.useCallback((t,e)=>{l.mutate(t,e).catch(s.lQ)},[l]);if(u.error&&(0,s.GU)(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}},95952:(t,e,a)=>{"use strict";a.d(e,{c:()=>i});var n,i=((n={}).None="none",n.Full="full",n.Base="base",n)},97488:(t,e,a)=>{"use strict";a.d(e,{X7:()=>u});var n=a(19819),i=a(95952),r=a(7078);let s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.savings||0},o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t.adjustments||!t.adjustments.length)return 0;let e=t.adjustments.find(t=>t.name.trim().toLowerCase()===n.s3.AUTOMATIC_DISCOUNT);return e?Math.abs(e.amount):0},l=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[o(t),s(t)].reduce((t,e)=>t+e,0)},u=t=>{var e;let{skuId:a,name:n,prepaid:s,image:o,quantity:u,priceType:c}=t,d=(t=>{let{item:e,isItemPrepaid:a}=t;if(!e)return{};if(a)return{amount:"Prepaid"};let n=e.skuAmountFormatted,i=l(e);return{amount:n,subTotal:{amount:(0,r.ye)(2).format(e.amount/100),lineThroughText:i>0?(0,r.ye)(2).format((e.amount+i)/100):null}}})({item:t,isItemPrepaid:[i.c.Base,i.c.Full].includes(s)});return{skuId:a,name:n,quantity:u,subTotal:{amount:d.amount,lineThroughText:(null==(e=d.subTotal)?void 0:e.lineThroughText)||null},image:o,priceType:c}}}}]);
2//# sourceMappingURL=6275.2ceb7dccdfe828ed.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.