PageSourceSearch

https://www.twomaidscleaning.com/_next/static/chunks/2798-a03b6efeb2032f9b.js

js twomaidscleaning.com collected 2026-09-28 08:36:15 UTC 27,225 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2798],{37726:function(e,t,a){a(67294);var n=a(21608),i=a(31555),s=a(6011),r=a(85893);t.Z=function(e){var t=e.page,a=e.title,o=e.subheading;return(0,r.jsxs)("div",{className:"top-hero-container",children:[(0,r.jsx)("div",{className:"top-hero-image-container"}),(0,r.jsx)(s.Z,{className:"top-hero-content-container",children:(0,r.jsx)(n.Z,{className:"justify-content-center",children:(0,r.jsxs)(i.Z,{xs:12,lg:10,xl:9,children:[(0,r.jsx)("h1",{children:a})," ",(0,r.jsx)("p",{children:o}),(0,r.jsxs)("div",{className:"steps-container",children:[(0,r.jsxs)("div",{className:"step-container",style:{opacity:"book"===t?1:.5},children:[(0,r.jsx)("h6",{children:"CONTACT INFORMATION"}),(0,r.jsx)("div",{className:"step-circle",children:(0,r.jsx)("span",{className:"circle-number",children:"1"})})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{className:"step-container",style:{opacity:"schedule"===t?1:.4},children:[(0,r.jsx)("h6",{children:"SCHEDULE CLEANING"}),(0,r.jsx)("div",{className:"step-circle",children:(0,r.jsx)("span",{className:"circle-number",children:"2"})})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{className:"step-container",style:{opacity:"confirm"===t?1:.4},children:[(0,r.jsx)("h6",{children:"REVIEW & PURCHASE"}),(0,r.jsx)("div",{className:"step-circle",children:(0,r.jsx)("span",{className:"circle-number",children:"3"})})]})]})]})})})]})}},64767:function(e,t,a){a.d(t,{Z:function(){return _}});var n=a(16835),i=a(51436),s=a(67814),r=a(99490),o=a(30381),c=a.n(o),l=a(41664),d=a(11163),u=a(67294),p=a(60913),h=a(31555),m=a(21608),f=a(10682),y=a(93099),g=
1a(35005),x=a(88732),v=a(18695),b=a(65779),j=a.n(b),w=a(71512),N=a(80344),k=a(60291),P=a(4739),C=a(77191),T=a(40802),E=a(9669),S=a.n(E),Z=a(92105),I=a.n(Z),R=a(2356),O=a(85893),F=function(e){(0,C.Z)(e);var t=(0,u.useState)(!1),a=t[0],n=t[1],i=(0,u.useState)(!1),s=i[0],r=i[1],o=(0,u.useState)(!1),c=o[0],l=o[1],p=(0,R.JL)(),h=p.paymentState,m=p.sendToPaymentState,f=(0,N.LC)().lead,y=((0,d.useRouter)(),(0,u.useState)([])),x=y[0],v=y[1],b=(0,u.useState)(!1),j=b[0],w=b[1];(0,u.useEffect)((function(){switch(!0){case h.matches("idle")&&"ACCEPTED"===h.event.type:n(!1);break;case h.matches("idle"):n(!0);break;case h.matches("ready"):n(!1);break;case h.matches("transactionPending"):case h.matches("schedulePending"):n(!0),r(!0);break;case h.matches("transactionFail"):case h.matches("scheduleFail"):n(!1),r(!1);break;case h.matches("scheduleSuccess"):r(!1)}}),[h]),(0,u.useEffect)((function(){var e=[];v([]),h.context.cardValidated||e.push("Please enter valid credit card info"),h.context.termsAccepted||e.push("Please check terms and conditions"),h.context.cardValidated||n(!0),f.addressLineOne&&f.city&&f.state&&f.zipCode||e.push("Please enter all address information"),!h.context.cardValidated&&h.context.termsAccepted&&n(!1),e.length>0&&v(e)}),[h]);return(0,u.useEffect)((function(){null!==f&&void 0!==f&&f.email&&S().post("/api/check-if-customer-exists/",{email:f.email}).then((function(e){200===e.status?(l(e.data.data.has_completed_appointments),console.log("Anything"),console.log("Does the customer exist?",c)):l(!1)})).catch((function(e){console.log("In the catch of check if customer exists"),T.Tb(e)}))}),[f.email]),(0,O.jsx)(O.Fragment,{children:(0,O.jsxs)(g.Z,{id:"SubmitPaymentMethod",disabled:a,onMouseLeave:function(){return w(!1)},onMouseEnter:function(){return w(!0)},onClick:function(){m("START")},className:"payment-button",style:{cursor:a?"not-allowed":"pointer"},children:[(0,O.jsxs)("div",{className:"justify-content-between d-flex flex-row align-items-center",children:["SCHEDULE NOW"," ",s&&(0,O.jsx)("span",{className:"ml-2",children:(0,O.jsx)(I(),{size:8,color:j?"#fff":"#cf2680",loading:s})})]}),x.length>0&&!s&&(0,O.jsx)("ol",{className:"payment-tooltip",children:x.map((function(e,t){return(0,O.jsx)("li",{children:e},t)}))})]})})};F.defaultProps={};var A=F,D=a(13787),L=a(27141),V=function(e){var t=e.tip,a=void 0===t?0:t,o=(0,d.useRouter)().asPath,b=(0,w.dV)().franchisee,C=(0,N.LC)().lead,T=(0,u.useState)(0),E=T[0],S=T[1],Z=(0,u.useState)(!0),I=Z[0],R=Z[1],F=(0,u.useState)(!1),V=F[0],_=F[1],M=(0,u.useState)(!0),U=M[0],z=M[1],q=(0,u.useState)(0),H=q[0],W=q[1],$=(0,u.useState)("0.00"),B=$[0],G=$[1],J=function(e){if(!e)return 0;if(/^P(?:(\d+)D)?T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?$/.test(e))return c().duration(e).asHours();var t=e.split(":").map(parseFloat),a=(0,n.Z)(t,3);return a[0]+a[1]/60+a[2]/3600};(0,u.useEffect)((function(){var e,t,a,n=(Number(C.price)+Number(null!==(e=C.tax)&&void 0!==e?e:0)+Number(null!==(t=C.serviceFee)&&void 0!==t?t:0)).toFixed(2);(C.watchedVideo&&(n=(Number(n)-10).toFixed(2)),C.tip>0&&(n=(Number(n)+Number(C.tip)).toFixed(2)),"string"===typeof(null===C||void 0===C?void 0:C.totalPrice))?(S(n),z(!0)):(S(null!==(a=n)&&void 0!==a?a:0),z(!0));switch(setTimeout((function(){return z(!1)}),800),o){case"/confirm/":break;case"/schedule/":R(null===C.dateTime||r.ou.fromISO(null===C||void 0===C?void 0:C.dateTime)<=r.ou.local().plus({hours:8}));break;default:R(void 0===(null===C||void 0===C?void 0:C.package))}}),[C]);var Y=r.ou.fromISO(b.openDate,{setZone:!0}),K=new Date,Q=r.ou.fromJSDate(K);(0,u.useEffect)((function(){W(Number(C.serviceFee)),G(C.tax)}),[C]);var X=(0,O.jsx)(p.Z,{id:"popover-basic",style:{background:"#fff",zIndex:1021,marginBottom:"1rem"},children:(0,O.jsx)(p.Z.Content,{className:"popover-basic-content",style:{width:"100%",maxWidth:"280px",borderRadius:"4px",boxShadow:"rgb(0 0 0 / 15%) 0px 3px 8px"},children:C.totalPrice&&(0,O.jsxs)(h.Z,{style:{padding:"1rem 1.5rem"},children:[(0,O.jsx)("div",{className:"d-flex justify-content-center",children:(0,O.jsx)(s.G,{icon:i._Ob,style:{color:"#D4357F"},className:"ml-2",onClick:function(){document.body.click()}})}),(0,O.jsxs)(m.Z,{style:{marginRight:"0"},children:[(C.price,(0,O.jsxs)(h.Z,{xs:12,className:"d-flex justify-content-between",children:[(0,O.jsx)("p",{className:"ml-3",children:"Price:"}),(0,O.jsxs)("p",{children:["$",Number(C.price).toFixed(2)]})]})),C.watchedVideo&&(0,O.jsxs)(h.Z,{xs:12,className:"d-flex justify-content-between",children:[(0,O.jsx)("p",{className:"ml-3",children:"Discount:"}),(0,O.jsx)("p",{children:"-$10.00"})]}),H>0&&(0,O.jsxs)(O.Fragment,{children:[" ",(0,O.jsxs)(h.Z,{xs:12,className:"d-flex justify-content-between",children:[(0,O.jsx)("p",{className:"ml-3",children:"Service Fee:"}),(0,O.jsxs)("p",{children:["$",H.toFixed(2)]})]}),(0,O.jsxs)(h.Z,{className:"mb-2",children:[" ",(0,O.jsx)("div",{style:{fontSize:"10px",color:"#9e9e9e",width:"51%"},className:"ml-3",children:"This service fee helps us operate Two Maids."})]})]})," ",(a>0||C.tip>0)&&(0,O.jsxs)(h.Z,{xs:12,className:"d-flex justify-content-between",children:[(0,O.jsx)("p",{className:"ml-3",children:"Tip:"}),(0,O.jsxs)("p",{children:["$",a>0?a:C.tip]})]}),Number(B)>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(h.Z,{xs:12,className:"d-flex justify-content-between",children:[(0,O.jsx)("p",{className:"ml-3",children:"Estimated Tax:"}),(0,O.jsxs)("p",{children:["$ ",Number(B).toFixed(2)]})]}),(0,O.jsxs)(h.Z,{className:"mb-2",children:[" ",(0,O.jsx)("div",{style:{fontSize:"10px",color:"#9e9e9e",width:"51%"},className:"ml-3",children:"Finalized tax will be shown on your oder receipt."})]})]}),(0,O.jsxs)(h.Z,{xs:12,className:"d-flex justify-content-between border-top border-gray",style:{paddingTop:"1rem"},children:[(0,O.jsx)("p",{className:"ml-3",children:"Total:"}),(0,O.jsxs)("p",{className:"font-weight-bold",children:["$",0==C.tip&&a>0?(Number(E)+Number(a)).toFixed(2):Number(E).toFixed(2)]})]})]})]})})}),ee=(0,O.jsx)(p.Z,{id:"popover-basic",style:{background:"#fff",zIndex:1021,marginBottom:"1rem"},children:(0,O.jsx)(p.Z.Content,{className:"popover-basic-content",style:{width:"100%",maxWidth:"280px",borderRadius:"4px",boxShadow:"rgb(0 0 0 / 15%) 0px 3px 8px"},children:(0,O.jsxs)("p",{style:{padding:"15px"},children:["A team of 2 people and we will be there for"," ".concat(J(C.duration)," \n           hours.")]})})});return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"sticky-cta sticky-cta--book",style:{maxWidth:"100%"},"data-persistent":!0,children:(0,O.jsx)(f.Z,{children:(0,O.jsx)(m.Z,{className:"justify-content-center",children:(0,O.jsx)(h.Z,{xs:12,md:11,lg:10,children:(0,O.jsx)(m.Z,{className:"justify-content-center",children:(0,O.jsx)(h.Z,{xs:12,lg:10,xl:9,children:(0,O.jsxs)(m.Z,{className:"justify-content-md-between align-items-center sticky-footer-content-container",children:[(0,O.jsx)(h.Z,{xs:"auto",className:"estimated-price-col",children:(0,O.jsxs)("div",{className:"book__total-cost",children:[!isNaN(Number(null===C||void 0===C?void 0:C.totalPrice))&&Number(null===C||void 0===C?void 0:C.totalPrice)&&(0,O.jsx)("strong",{children:"Estimated Price"}),(0,O.jsx)("div",{children:(0,O.jsxs)("span",{className:"book__total h3",style:{position:"relative"},children:[U&&(0,O.jsx)(j(),{height:24,width:10,color:P.p5,loading:U}),a<=0&&!U&&"$".concat(isNaN(Number(C.totalPrice))?"--":Number(C.totalPrice).toFixed(2)),a>0&&!U&&"$".concat(isNaN(Number(C.totalPrice))?"--":Number(C.totalPrice).toFixed(2)),(0,O.jsx)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"center"},children:1==C.package&&C.duration&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("span",{style:{fontSize:"18px",paddingRight:"2px"},children:["Duration:"," ",J(C.duration)," ","Hours"]}),(0,O.jsx)(y.Z,{trigger:["click","focus"],overlay:ee,rootClose:!0,children:(0,O.jsx)("span",{children:(0,O.jsx)("div",{style:{cursor:"pointer",fontSize:"12px",color:"#D4357F"},children:(0,O.jsx)(s.G,{icon:i.sqG})})})})]})}),!isNaN(Number(E))&&Number(E)>0&&(0,O.jsx)(y.Z,{trigger:["click","focus"],overlay:X,rootClose:!0,children:(0,O.jsxs)("div",{className:"sticky-footer-lightbox",children:[(0,O.jsx)("hr",{}),(0,O.jsx)("div",{style:{cursor:"pointer",fontSize:"12px",color:"#D4357F"},children:(0,O.jsx)(s.G,{icon:i.sqG})}),(0,O.jsx)("hr",{})]})})]})})]})}),(0,O.jsxs)(h.Z,{xs:"auto",className:"sticky-cta__phone d-flex mx-auto ml-sm-auto mr-sm-0 mb-sm-3 cta-schedule-button",children:["/book/"===o&&(0,O.jsx)(O.Fragment,{children:b.teamCount>0||b.fauxfranchisee>1||b.teamCount>0&&Q>Y?(0,O.jsx)(l.default,{href:"/schedule/",children:(0,O.jsx)(g.Z,{disabled:I,"data-next-step":!0,onClick:function(){return(0,L.uC)({packageId:null===C||void 0===C?void 0:C.package,packagePrice:null===C||void 0===C?void 0:C.price})},children:"Schedule Cleaning"})}):(0,O.jsx)(l.default,{href:"/pre-open/",children:(0,O.jsx)(g.Z,{disabled:I,"data-next-step":!0,children:"Confirm Info"})})}),"/schedule/"===o&&(0,O.jsx)(O.Fragment,{children:(0,O.jsx)(l.default,{href:"/confirm/",children:(0,O.jsx)(g.Z,{onClick:function(){return function(){(0,L.t_)();var e="string"===typeof C.package?parseInt(C.package,10):C.package;(0,k.Jh)(e)}()},disabled:I,"data-next-step":!0,children:"REVIEW & PURCHASE"})})}),"/confirm/"===o&&(0,O.jsx)(A,{})]})]})})})})})})}),(0,O.jsx)(D.Z,{children:(0,O.jsx)(x.Z,{show:V,onClose:function(){return _(!1)},delay:3e3,autohide:!0,children:(0,O.jsx)(x.Z.Body,{children:(0,O.jsx)(v.Z,{children:(0,O.jsx)(v.Z.Item,{variant:"primary",children:(0,O.jsx)("strong",{children:"In Development"})})})})})})]})};V.defaultProps={};var _=V},19948:function(e,t,a){var n=a(67294),i=a(9008),s=a(85893);t.Z=function(e){var t=e.children,a=n.Children.toArray(t).join("");return(0,s.jsxs)(i.default,{children:[(0,s.jsx)("meta",{name:"description",content:a},"description"),(0,s.jsx)("meta",{name:"og:description",property:"og:description",content:a},"og:description"),(0,s.jsx)("meta",{name:"twitter:description",content:a},"description")]})}},61317:function(e,t,a){a(67294);var n=a(9008),i=a(85893);t.Z=function(e){var t=e.title;return(0,i.jsxs)(n.default,{children:[(0,i.jsx)("title",{children:t}
1,"title"),(0,i.jsx)("meta",{name:"og:title",property:"og:title",content:t},"og:title"),(0,i.jsx)("meta",{name:"twitter:title",content:t},"twitter:title")]})}},6011:function(e,t,a){a(67294);var n=a(10682),i=a(21608),s=a(31555),r=a(85893);t.Z=function(e){var t=e.xs,a=e.md,o=e.lg,c=e.color,l=e.className,d=e.children,u=e.padding,p=c||"transparent",h=t||12,m=a||11,f=o||10,y="y";return"top"===u?y="t":"bottom"===u?y="b":"none"!==u&&null!==u||(y=!1),(0,r.jsx)("section",{className:"bg-".concat(p," ").concat(y?"p".concat(y,"-5"):""," ").concat(l||""),children:d&&(0,r.jsx)(n.Z,{children:(0,r.jsx)(i.Z,{className:"justify-content-center",children:(0,r.jsx)(s.Z,{xs:h,md:m,lg:f,children:d||null})})})})}},13787:function(e,t,a){var n=a(67294),i=a(85893),s=function(e){var t=e.className,a=e.children;return n.useEffect((function(){}),[]),(0,i.jsx)("div",{className:"toast-wrapper ".concat(t||""),children:a})};s.defaultProps={className:null},t.Z=s},33396:function(e,t,a){var n=a(18678),i=(a(67294),a(64593)),s=a(4739),r=a(85893),o=s.p5;function c(e){var t=e.slug,a=e.description,s=e.lang,c=e.meta,l=e.title,d=a||"Meta";return n.v.init({applicationId:"2b8a7178-88fd-4eae-b1fc-d466adbcda4c",clientToken:"puba6170b123e376449351616f417bffbae",site:"datadoghq.com",service:"hubsite",sessionSampleRate:100,sessionReplaySampleRate:100,trackResources:!0,trackLongTasks:!0,trackUserInteractions:!0,silentMultipleInit:!0}),n.v.startSessionReplayRecording(),(0,r.jsx)(i.Z,{htmlAttributes:{lang:s},bodyAttributes:{class:t},title:l,titleTemplate:"".concat(l),link:[{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Montserrat:400,400i,600,600i,700,700i&display=swap"},{rel:"manifest",href:"/manifest.webmanifest"},{rel:"apple-touch-icon",sizes:"180x180",href:"/favicons/apple-touch-icon.png"},{rel:"icon",sizes:"32x32",href:"/favicons/favicon-32x32.png"},{rel:"icon",sizes:"16x16",href:"/favicons/favicon-16x16.png"},{rel:"mask-icon",href:"/favicons/safari-pinned-tab.svg",color:o}],meta:[{name:"apple-mobile-web-app-title",content:"Two Maids "},{name:"application-name",content:"Two Maids "},{name:"msapplication-TileColor",content:o},{name:"theme-color",content:o},{name:"description",content:d},{property:"og:title",content:l},{property:"og:description",content:d},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:l},{name:"twitter:description",content:d}].concat(c)})}c.defaultProps={lang:"en",meta:[],description:""},t.Z=c},80344:function(e,t,a){a.d(t,{Ml:function(){return u},EO:function(){return x},lG:function(){return p},dQ:function(){return k},$L:function(){return m},rE:function(){return g},TS:function(){return h},qn:function(){return f},yB:function(){return y},LC:function(){return P}});var n=a(16835),i=a(67294),s=a(40802),r=a(12828),o=a.n(r),c=a(44758),l=a(71228),d="REFRESH",u="BILLING_INFO",p="HOME_INFO",h="SET_PACKAGE",m="SCHEDULE",f="SET_RESIDENCE",y="SET_TIP",g="SET_APPOINTMENT",x="CLEAR",v=new Set(["price",""]);var b=function(e,t){var a,n,i,r,o,c,b,j,w,N,k,P;if(void 0!=t.payload)switch(t.type){case d:return l.Z.set(t.payload.id,t.payload.franchisee),Object.keys(t.payload).forEach((function(a){v.has(a)?e[a]=parseInt(t.payload[a],10):e[a]=t.payload[a]})),e;case"INIT":case u:return l.Z.set(t.payload.id,t.payload.franchisee),e.id=t.payload.id,e.firstName=t.payload.firstName,e.lastName=t.payload.lastName,e.email=t.payload.email,e.phonePrimary=t.payload.phonePrimary,e.step=t.payload.step,e.franchisee=t.payload.franchisee,e.ipAddress=t.payload.ipAddress,e.leadNotification=t.payload.leadNotification,e.zipCode=t.payload.zipCode,e.city=t.payload.city,e.state=t.payload.state,e.bedrooms=t.payload.bedrooms,e.bathrooms=t.payload.bathrooms,e.people=t.payload.people,e.pets=t.payload.pets,e.squareFootage=t.payload.squareFootage,s.sU("lead",{id:t.payload.id,firstName:t.payload.firstName,lastName:t.payload.lastName,email:t.payload.email,ipaddress:t.payload.ipAddress,franchisee:t.payload.franchisee,zipcode:t.payload.zipCode}),s.YA("email",t.payload.email),e;case p:return e.bedrooms=t.payload.bedrooms,e.bathrooms=t.payload.bathrooms,e.people=t.payload.people,e.pets=t.payload.pets,e.squareFootage=t.payload.squareFootage,e.step=t.payload.step,s.sU("homeInfo",{bedrooms:t.payload.bedrooms,bathrooms:t.payload.bathrooms,people:t.payload.people,pets:t.payload.pets,squareFootage:t.payload.squareFootage}),e;case h:return e.package=t.payload.package,e.price=t.payload.price,e.tax=t.payload.tax,e.serviceFee=t.payload.serviceFee,e.totalPrice=t.payload.totalPrice,e.step=t.payload.step,e.duration=t.payload.duration,e.watchedVideo=t.payload.watchedVideo,s.sU("packageInfo",{package:t.payload.package,price:t.payload.price,tax:t.payload.tax,totalPrice:t.payload.totalPrice,duration:t.payload.duration}),e;case"SET_DISCOUNT":return e.watchedVideo=!0,e.step=t.payload.step,s.YA("watchedVideo","true"),e;case m:return e.dateTime=t.payload.dateTime,e.team=t.payload.team,l.Z.set(t.payload.id,t.payload.franchisee,t.payload.dateTime),s.sU("schedule",{dateTime:t.payload.dateTime,team:t.payload.team,franchisee:t.payload.franchisee}),e;case f:return e.addressLineOne=null!==(a=null===(n=t.payload)||void 0===n?void 0:n.addressLineOne)&&void 0!==a?a:"",e.addressLineTwo=null!==(i=null===(r=t.payload)||void 0===r?void 0:r.addressLineTwo)&&void 0!==i?i:"",e.city=null!==(o=null===(c=t.payload)||void 0===c?void 0:c.city)&&void 0!==o?o:"",e.state=null!==(b=null===(j=t.payload)||void 0===j?void 0:j.state)&&void 0!==b?b:"",e.zipCode=null!==(w=null===(N=t.payload)||void 0===N?void 0:N.zipCode)&&void 0!==w?w:"",e.step=null!==(k=null===(P=t.payload)||void 0===P?void 0:P.step)&&void 0!==k?k:0,e;case y:return e.tip=t.payload.tip,e.totalPrice=t.payload.totalPrice,e;case g:return e.appointment=t.payload.appointment,l.Z.set(t.payload.id,t.payload.franchisee,t.payload.dateTime,t.payload.appointment),e;case x:return l.Z.clear(),e.id=-1,e.firstName="",e.lastName="",e.email="",e.phonePrimary="",e.franchisee=-1,["step","source","referal","hasBeenContacted","lastContacted","hasBeenEmailed","ipAddress","people","pets","bedrooms","bathrooms","squareFootage","package","price","tax","tip","totalPrice","dateTime","duration","team","addressLineOne","addressLineTwo","city","state","zipCode","customer","watchedVideo","comments","watchedVideo","appointment"].forEach((function(t){delete e[t]})),e;default:return e}},j=JSON.parse('{"id":-1,"firstName":"","lastName":"","email":"","phonePrimary":"","franchisee":-1,"step":0}'),w=a(85893),N=(0,i.createContext)(null),k=function(e){var t=e.children,a=(0,c.C)(b,j),r=(0,n.Z)(a,2),u=r[0],p=r[1];return(0,i.useEffect)((function(){l.Z.get().then((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.lead){var a=o()(e.data.lead);p({type:d,payload:a})}})).catch((function(e){return s.Tb(e),e}))}),[]),(0,w.jsx)(N.Provider,{value:{lead:u,dispatchLead:p},children:t})},P=function(){return(0,i.useContext)(N)}},71228:function(e,t,a){var n=a(50029),i=a(87794),s=a.n(i),r=a(9669),o=a.n(r)().create({validateStatus:function(e){return e>=200&&e<500}}),c={get:function(){var e=(0,n.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.get("/api/lead-session/").then((function(e){return e.data}
1)).catch((function(e){return e}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),set:function(){var e=(0,n.Z)(s().mark((function e(t,a,n,i){var r,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={leadId:t},a&&(r.franchiseeId=a),n&&(r.cleaningDate=n),i&&(r.appointment=i),e.next=6,o.post("/api/lead-session/",r).then((function(e){return e.data})).catch((function(e){return e}));case 6:return c=e.sent,e.abrupt("return",c);case 8:case"end":return e.stop()}}),e)})));return function(t,a,n,i){return e.apply(this,arguments)}}(),clear:function(){var e=(0,n.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.delete("/api/lead-session/",{}).then((function(e){return e.data})).catch((function(e){return e}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};t.Z=c},2356:function(e,t,a){a.d(t,{OH:function(){return x},JL:function(){return v}});var n=a(16835),i=a(67294),s=a(62187),r=a(59499),o=a(30375),c=a(4723);function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){(0,r.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u=(0,o.f0)((function(e){return d(d({},e),{},{cardValidated:!0})})),p=(0,o.f0)((function(e){return d(d({},e),{},{cardValidated:!1})})),h=(0,o.f0)((function(e){return d(d({},e),{},{termsAccepted:!0})})),m=(0,o.f0)((function(e){return d(d({},e),{},{termsAccepted:!1})}));var f=(0,c.J)({id:"payment",initial:"idle",context:{cardValidated:!1,termsAccepted:!1,retryCount:0},states:{idle:{on:{READY:{target:"ready",cond:"transactionReady"},ACCEPTED:{actions:"setTermsAccepted"},REFUSED:{actions:"setTermsRefused"},CARD_VALID:{actions:"setCardToValid"},CARD_INVALID:{actions:"setCardToInvalid"}}},ready:{on:{START:{target:"transactionPending",cond:"transactionReady"},REFUSED:{target:"idle",actions:"setTermsRefused"},CARD_INVALID:{target:"idle",actions:"setCardInvalid"}}},transactionPending:{on:{RESOLVE:"schedulePending",REJECT:"transactionFail"}},transactionFail:{on:{DUPLICATE:"schedulePending",DECLINED:{target:"idle",actions:["setCardToInvalid"]},ERROR:{target:"idle",actions:"setCardToInvalid"}}},schedulePending:{on:{SUCCESS:"scheduleSuccess",REJECT:"scheduleFail",ERROR:"scheduleFail"}},scheduleFail:{on:{RETRY:"schedulePending",ERROR:{target:"idle",actions:p}}},scheduleSuccess:{type:"final"}}},{actions:{setCardToValid:u,setCardToInvalid:p,setTermsAccepted:h,setTermsRefused:m},guards:{transactionReady:function(e){return e.cardValidated&&e.termsAccepted}}}),y=a(85893),g=(0,i.createContext)(null),x=function(e){var t=e.children,a=(0,s.eO)(f),i=(0,n.Z)(a,3),r=i[0],o=i[1],c=i[2];return(0,y.jsx)(g.Provider,{value:{paymentState:r,sendToPaymentState:o,paymentService:c},children:t})},v=function(){return(0,i.useContext)(g)}},60291:function(e,t,a){a.d(t,{Jh:function(){return c}});var n=[{id:1,name:"Design with Time",slug:"one-time/design-with-time/",description:"Our Design with Time Cleaning Package is perfect for homeowners looking for a one-time clean or occasional services. It's like creating your own custom cleaning plan! With sessions lasting from 2 to 5 hours, your cleaning team will tackle your tasks based on your priorities. We'll strive to finish everything on your list within the time frame you've chosen. Our teams are motivated to deliver top-notch results, so they'll work efficiently to complete your tasks within the allotted time. Keep in mind, you're paying for time that can vary based on the complexity of the job. If we need more time, we'll gladly work with you to schedule additional hours. Have a lengthy to-do list? Explore our Deep Clean Package for a more comprehensive cleaning experience."},{id:9,name:"Deep Clean",slug:"one-time/deep-cleaning/",description:"Our Deep Cleaning Package is the most thorough cleaning service. The most significant difference between the Deep Cleaning Package and our other cleaning packages is the amount of time and detail we spend cleaning what we refer to as your vertical surfaces. Vertical surfaces include baseboards, trim work, interior windows, blinds, exterior cabinets/drawers, light fixtures, and doors."},{id:17,name:"Move In/Move Out",slug:"one-time/move/",description:"Our Empty Home Move In/Out Cleaning Package is perfect for the homeowner who needs a vacant home, apartment, or condo cleaned. This package will help ensure your home is move-in ready! To ensure the highest quality of service, personal belongings must be removed prior to your cleaning."}],i=[{id:6,name:"Premium Weekly",slug:"recurring/premium/",description:"The Premium Maintenance Cleaning is for customers who desire a home cleaning on a regular basis and offers thorough cleaning for key areas such as kitchens, bathrooms, bedrooms, and common areas, with a proven system to maintain an overall high standard of cleanliness. It's best to start services with a Deep Clean to tackle any build up and give your home a fresh start. "},{id:10,name:"Alternating Weekly",slug:"recurring/alternating/",description:"With the Alternating Cleaning Package we are able to alternate your cleaning services between our Premium and Touch-Up cleaning services.\nThis specific cleaning package is best suited for the homeowner who does not require detailed cleaning on a regular basis, but still wishes to receive high quality house cleaning once a week, or every other week. With this package, our team of Personal House Cleaners will rotate between the Premium and Touch Up service packages, performing tasks related to each service during each visit. Please review the descriptions for the Premium and Touch Up packages to fully understand what is offered in each alternating service."}],s=[{id:5,name:"Premium Biweekly",slug:"recurring/premium/",description:"The Premium Maintenance Cleaning is for customers who desire a home cleaning on a regular basis and offers thorough cleaning for key areas such as kitchens, bathrooms, bedrooms, and common areas, with a proven system to maintain an overall high standard of cleanliness. It's best to start services with a Deep Clean to tackle any build up and give your home a fresh start. "},{id:2,name:"Alternating Biweekly",slug:"recurring/alternating/",description:"With the Alternating Cleaning Package we are able to alternate your cleaning services between our Premium and Touch-Up cleaning services.\nThis specific cleaning package is best suited for the homeowner who does not require detailed cleaning on a regular basis, but still wishes to receive high quality house cleaning once a week, or every other week. With this package, our team of Personal House Cleaners will rotate between the Premium and Touch Up service packages, performing tasks related to each service during each visit. Please review the descriptions for the Premium and Touch Up packages to fully understand what is offered in each alternating service."}],r=[{id:4,name:"Premium Monthly",slug:"recurring/premium/",description:"The Premium Maintenance Cleaning is for customers who desire a home cleaning on a regular basis and offers thorough cleaning for key areas such as kitchens, bathrooms, bedrooms, and common areas, with a proven system to maintain an overall high standard of cleanliness. It's best to start services with a Deep Clean to tackle any build up and give your home a fresh start. "}],o=[].concat(n,i,s,r),c=function(e){var t=o.filter((function(t){return t.id===e}));return 1===t.length?t[0]:{id:-1,name:"No Package Selected",description:""}};t.ZP={single:n,weekly:i,biweekly:s,monthly:r}}}]);
2//# sourceMappingURL=2798-a03b6efeb2032f9b.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.