PageSourceSearch

https://app.sandimartin.ca/_next/static/chunks/pages/booking-thankyou-2525947f2c7a5222.js

js sandimartin.ca collected 2026-10-08 05:20:10 UTC 4,782 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4328],{61138:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/booking-thankyou",function(){return t(25214)}])},86262:function(e,n,t){"use strict";var l=t(85893),o=t(20929),i=t(36808),r=t.n(i),s=t(39666),a=t(20299),d=t(59888),c=t(94205);let u=e=>{let{type:n,customImage:t}=e;return t?(0,l.jsx)(l.Fragment,{children:t}):(0,l.jsx)("svg",{className:"block text-brand-lighter text-center fill-current h-12 w-12 overflow-visible",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M19.511 17.98L10.604 1.348a.697.697 0 0 0-1.208 0L.49 17.98a.675.675 0 0 0 .005.68c.125.211.352.34.598.34h17.814a.694.694 0 0 0 .598-.34.677.677 0 0 0 .006-.68zM11 17H9v-2h2v2zm0-3.5H9V7h2v6.5z"})})};n.Z=e=>{var n,t;let{type:i,title:m,message:g,addContactInfo:x=!0,customImage:h,hideImage:v,tryAgain:f,errorInfo:y,errorCode:w,showSignout:j=!1,...k}=e,{supportEmail:N}=(0,c.Z)();404!=w&&"Not logged in!"!==y&&(null===(t=window)||void 0===t?void 0:null===(n=t.location)||void 0===n?void 0:n.hostname)!=="localhost"&&o.fy.logger.error("User encountered the following error: ".concat(g),{details:{message:g,errorInfo:y,errorCode:w}});let{resetClient:b}=(0,a.X)();return(0,l.jsxs)("div",{className:"flex flex-col m-12 items-center py-4 px-2 border rounded shadow-md",children:[v?null:(0,l.jsx)(u,{type:i,customImage:h}),(0,l.jsx)("div",{className:"text-brand text-xl font-medium my-2",children:m}),(0,l.jsx)("div",{className:"text-oldGray-600",children:g}),j&&(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:"text-brand my-4 font-semibold underline",onClick:()=>{r().remove("token"),r().remove("isPlanner"),b(),(0,s.e)(e=>e.setUser(null)),(0,d.Z)("/signin")},children:"Click here to sign out"})}),x&&N&&(0,l.jsxs)("div",{className:"text-oldGray-600 mt-1",children:[f&&"Try again or ","Contact"," ",(0,l.jsx)("a",{className:"text-brand",href:"mailto:".concat(N),children:N})," ","for help"]}),f&&!x&&(0,l.jsx)("div",{className:"text-oldGray-600 mt-1",children:"Please try again later."})]})}},25214:function(e,n,t){"use strict";t.r(n);var l=t(37340),o=t(85893),i=t(67294),r=t(41664),s=t.n(r),a=t(26997),d=t(92432),c=t(20929),u=t(86262),m=t(31704),g=t(7817),x=t(51042),h=t(66759),v=t(11163),f=t(94205);function y(){let e=(0,l._)(["\n	mutation ($Stage: String) {\n		trackBooking(stage: $Stage) {\n			ok\n			state\n		}\n	}\n"]);return y=function(){return e},e}function w(){let e=(0,l._)(["\n	query getMe {\n		me {\n			id\n			ok\n			message\n			status\n			family {\n				id\n				slug\n				...CommonFamilyFields\n			}\n		}\n		isPlannerUser\n	}\n	","\n"]);return w=function(){return e},e}let j=(0,a.Ps)(y()),k=(0,a.Ps)(w(),m.Z);n.default=(0,x.Z)(e=>{var n,t,l,r;let{...a}=e,{setMeState:m,meState:x}=(0,g.Z)(),[y,w]=(0,i.useState)(!1),[N,b]=(0,d.Db)(j),p=(0,v.useRouter)(),{stage:_}=p.query,{companyName:Z}=(0,f.Z)(),[S]=(0,d.aM)({query:k}),{data:C,fetching:P,error:E}=S,G=async e=>{var n,t;!E&&(null==e?void 0:e.me.ok)&&(await b({Stage:_}),w(!0),c.fy.logger.info("Redirected to booking thank you page.",{"family-slug":null==e?void 0:null===(t=e.me)||void 0===t?void 0:null===(n=t.family)||void 0===n?void 0:n.slug}))};if((0,i.useEffect)(()=>{P||(m(C),G(C))},[C]),P)return(0,o.jsx)(h.Z,{});if((!(null==C?void 0:null===(n=C.me)||void 0===n?void 0:n.ok)||E)&&(null==C?void 0:null===(t=C.me)||void 0===t?void 0:t.message)!=="Not logged in!"){let e=(null==C?void 0:null===(r=C.me)||void 0===r?void 0:r.message)||"Something went wrong loading user data";return(0,o.jsx)(u.Z,{title:"Whoops!",message:"Something went wrong loading user data",errorInfo:{message:e,details:E},tryAgain:!0})}return!P&&(null==x?void 0:x.isPlannerUser)?(0,o.jsx)(u.Z,{title:"Whoops!",message:"You're logged in as a planner trying to access the client section",showSignout:!0,errorCode:403}):P||(null==x?void 0:null===(l=x.me)||void 0===l?void 0:l.family)?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"flex flex-col items-center justify-center h-screen text-center",children:(0,o.jsxs)("div",{className:"flex flex-col items-center",children:[(0,o.jsx)("h1",{className:"text-4xl font-bold text-brand",children:Z}),(0,o.jsx)("div",{className:"mb-5 text-lg text-oldGray-600",children:"Thank y
1ou for booking"}),(0,o.jsx)("div",{className:"mb-5 text-lg text-oldGray-600",children:"We’ve emailed you with the calendar invite and we look forward to talking with you."}),(0,o.jsx)("div",{className:"mx-10 mt-5 text-sm",children:(0,o.jsxs)(s(),{href:"/discovery",className:"text-lg text-brand",children:["Head back to ",Z]})})]})})}):(0,o.jsx)(u.Z,{title:"Whoops!",message:"Something went wrong loading user data",tryAgain:!0})})}},function(e){e.O(0,[1664,1736,1368,1953,9774,2888,179],function(){return e(e.s=61138)}),_N_E=e.O()}]);

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.