1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ac4175ab-d9a0-4980-af94-6f666ad165ae",e._sentryDebugIdIdentifier="sentry-dbid-ac4175ab-d9a0-4980-af94-6f666ad165ae")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8121],{28363:(e,n,t)=>{t.d(n,{aw:()=>d,fv:()=>o,uu:()=>c});var s=t(14232),r=t(23091),i=t(45315);let a=i.yF.OneOnOneCoaching,o={LandingPage:"Parent Coach Landing Page",SessionScheduler:"Parent Coach Session Scheduler",SessionPayment:"Parent Coach Session Payment",PaymentCompleted:"Parent Coach Session Payment Completed",SignAgreementPage:"Parent Coach Session Paid Agreement Signature",AgreementSignedConfirmation:"Parent Coach Session Paid and Agreement Signature",AllSessionsDashboard:"Parent Coach All Sessions Dashboard",BookedSessionDetails:"Parent Coach Booked Session Details",GuestEmailCapture:"Parent Coach Email Capture",GuestMemberLogin:"Parent Coach Member Login",GuestAccountCreation:"Parent Coach Session Payment Completed and Create Account",ChoosePackage:"Parent Coach Choose Session Package"},l={[o.LandingPage]:"Coach Sessions Landing Page Viewed",[o.SessionScheduler]:"Coach Sessions Scheduler Viewed",[o.SessionPayment]:"Coach Sessions Payment Viewed",[o.PaymentCompleted]:"Coach Sessions Payment Completed Viewed",[o.SignAgreementPage]:"Coach Sessions Sign Agreement Page Viewed",[o.AgreementSignedConfirmation]:"Coach Sessions Agreement Signed Confirmation Viewed",[o.AllSessionsDashboard]:"Coach Sessions Dashboard Viewed",[o.BookedSessionDetails]:"Coach Sessions Booked Session Details Viewed",[o.GuestEmailCapture]:"Coach Sessions Email Capture Viewed",[o.GuestMemberLogin]:"Coach Sessions Member Login Viewed",[o.GuestAccountCreation]:"Coach Sessions Payment Completed and Create Account Viewed",[o.ChoosePackage]:"Coach Sessions Choose Package Viewed"},c=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"member";(0,r.u4)(l[e],{page_group:(0,i.Vt)(a,t),page_subgroup:e,...n})},d=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"member",r=(0,s.useRef)(null);(0,s.useEffect)(()=>{e&&r.current!==e&&(r.current=e,c(e,n,t))},[e])}},77949:(e,n,t)=>{t.d(n,{N:()=>l});var s=t(37876),r=t(50354),i=t(13337),a=t(58103),o=t.n(a);function l(e){let{className:n}=e;return(0,s.jsxs)("div",{className:o()("rounded-lg bg-white p-8 text-center",n),children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-100",children:(0,s.jsx)("svg",{className:"h-8 w-8 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,s.jsx)("h1",{className:"mb-2 text-2xl font-bold text-red-600",children:"Document Declined"}),(0,s.jsx)("p",{className:"mb-4 text-dark-gray",children:"You declined to sign the coaching agreement. Your session cannot proceed without a signed document."}),(0,s.jsx)("p",{className:"mb-6 text-sm text-medium-gray",children:"If this was a mistake, please contact support to have the document resent to you."}),(0,s.jsx)("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center",children:(0,s.jsx)(r.A,{href:i.bw.SUPPORT,variant:"primary",size:"small",children:"Contact Support"})})]})}},92898:(e,n,t)=>{t.d(n,{z:()=>i});var s=t(79499),r=t(99652);let i=()=>{let{membershipInformation:e,loadingMembershipInfo:n}=(0,s.J)();return n?null:(0,r.C)(e)?"member":"non_member"}},98121:(e,n,t)=>{t.d(n,{D:()=>v});var s=t(37876),r=t(50354),i=t(77949),a=t(13337),o=t(77328),l=t.n(o);function c(e){let{sessionId:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{children:(0,s.jsx)("title",{children:"Error | Good Inside"})}),(0,s.jsx)("div",{className:"mx-auto max-w-2xl px-4 py-8",children:(0,s.jsxs)("div",{className:"rounded-lg bg-white p-8 text-center",children:[(0,s.jsx)("h1",{className:"mb-4 text-2xl font-bold text-red-600",children:"Something went wrong"}),(0,s.jsx)("p",{className:"mb-6 text-dark-gray",children:"We couldn't verify your document signature. Please try again."}),n&&(0,s.jsx)(r.A,{href:(0,a.du)(n),variant:"primary",size:"small",children:"Check Session Status"})]})})]})}function d(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{children:(0,s.jsx)("title",{children:"Processing Signature | Good Inside"})}),(0,s.jsx)("div",{className:"mx-auto max-w-2xl px-4 py-8",children:(0,s.jsxs)("div",{className:"rounded-lg bg-white p-8 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 h-16 w-16",children:(0,s.jsxs)("svg",{className:"animate-spin text-dark-green",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),(0,s.jsx)("h1",{className:"mb-2 text-2xl font-bold text-black",children:"Processing Your Signature..."}),(0,s.jsx)("p",{className:"text-dark-gray",children:"Please wait while we confirm your document signature."})]})})]})}function u(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{children:(0,s.jsx)("title",{children:"Document Signed | Good Inside"})}),(0,s.jsx)("div",{className:"mx-auto max-w-2xl px-4 py-8",children:(0,s.jsxs)("div",{className:"rounded-lg bg-white p-8 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-light-green",children:(0,s.jsx)("svg",{className:"h-8 w-8 text-dark-green",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,s.jsx)("h1",{className:"mb-2 text-2xl font-bold text-black",children:"Document Signed Successfully!"}),(0,s.jsx)("p",{className:"text-dark-gray",children:"Your session is now confirmed. Redirecting..."})]})})]})}function m(e){let{sessionId:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{children:(0,s.jsx)("title",{children:"Processing Signature | Good Inside"})}),(0,s.jsx)("div",{className:"mx-auto max-w-2xl px-4 py-8",children:(0,s.jsxs)("div",{className:"rounded-lg bg-white p-8 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-blue-100",children:(0,s.jsx)("svg",{className:"h-8 w-8 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,s.jsx)("h1",{className:"mb-2 text-2xl font-bold text-blue-600",children:"Still Processing..."}),(0,s.jsx)("p",{className:"mb-6 text-dark-gray",children:"Your signature is being processed. This may take a few moments."}),n&&(0,s.jsx)(r.A,{href:(0,a.du)(n),variant:"primary",size:"small",children:"Check Session Status"})]})})]})}var h=t(92898),g=t(22478),x=t(51602),f=t(14232);let p=["payment_processing","awaiting_document"],w={payment_processing:3e3,awaiting_document:5e3};var b=t(28363),j=t(89099);let v=e=>{let{phase:n,signingUrl:t,isSigningUrlLoading:o,signingUrlError:l,handleSignDocument:v}=(e=>{let{sessionId:n,token:t,userEmail:s,userName:r}=e,i=(0,j.useRouter)(),[o,l]=(0,f.useState)("ready"),c=(0,f.useRef)(null),d=(0,f.useRef)(!1),u=(0,h.z)(),{signingUrl:m,isLoading:v,error:y,fetchSigningUrl:C}=function(e){let{sessionId:n,token:t}=e,[s,r]=(0,f.useState)(null),[i,a]=(0,f.useState)(!1),[o,l]=(0,f.useState)(null),c=(0,f.useRef)(0);return{signingUrl:s,isLoading:i,error:o,fetchSigningUrl:(0,f.useCallback)(async e=>{if(!t)return void l("Authentication required");let s=++c.current;a(!0),l(null);try{let i=await (0,g.RB)(n,t,e);s===c.current&&r(i.signing_url)}catch(e){s===c.current&&l(e instanceof Error?e.message:"Failed to get signing URL")}finally{s===c.current&&a(!1)}},[n,t]),reset:()=>{c.current++,r(null),l(null),a(!1)}}}({sessionId:n,token:t}),{session:S}=function(e){let{sessionId:n,token:t,enabled:s=!0,onTimeout:r,timeoutMs:i=3e4}=e,a=(0,f.useRef)(null),o=(0,f.useRef)(null),l=(0,f.useRef)(void 0),{data:c,error:d,isLoading:u,refetch:m}=(0,x.I)(["coaching-session-polling",n],async()=>
1{if(!n)throw Error("Session ID is required");if(!t)throw Error("Authentication required");return await (0,g.Ht)(n,t)},{enabled:s&&!!n&&!!t,staleTime:0,cacheTime:3e5,refetchInterval:e=>e?w[e.status]||!1:3e3,refetchIntervalInBackground:!1});return(0,f.useEffect)(()=>{if(l.current=c,!c)return;let e=p.includes(c.status);null!==o.current&&c.status!==o.current&&(a.current&&(clearTimeout(a.current),a.current=null),o.current=null),e&&!a.current&&r&&(o.current=c.status,a.current=setTimeout(()=>{let e=l.current;e&&e.status===o.current&&r(),a.current=null,o.current=null},i))},[c,r,i]),(0,f.useEffect)(()=>()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),{session:c,error:d,isLoading:u,refetch:m,isPaymentProcessing:(null==c?void 0:c.status)==="payment_processing",isAwaitingDocument:(null==c?void 0:c.status)==="awaiting_document",isDocumentDeclined:(null==c?void 0:c.status)==="document_declined",isConfirmed:(null==c?void 0:c.status)==="confirmed",isPendingPayment:(null==c?void 0:c.status)==="pending_payment"}}({sessionId:n,token:t,enabled:"signing"===o||"processing"===o,onTimeout:(0,f.useCallback)(()=>{l("timeout")},[]),timeoutMs:6e4}),k=(0,f.useCallback)(()=>{C({return_url:"".concat(window.location.origin).concat((0,a.Jn)(n)),recipient_email:s,recipient_name:r}),l("signing")},[n,s,r,C]),P=(0,f.useCallback)(()=>{l("ready")},[]);return(0,f.useEffect)(()=>{let e=e=>{var n;if(e.origin===window.location.origin&&(null==(n=e.data)?void 0:n.type)==="docusign-event")switch(e.data.event){case"signing_complete":default:l("processing");break;case"decline":l("declined");break;case"cancel":l("ready");break;case"exception":case"ttl_expired":l("error");break;case"session_timeout":l("timeout")}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),(0,f.useEffect)(()=>{S&&("confirmed"===S.status&&l("complete"),"document_declined"===S.status&&l("declined"))},[null==S?void 0:S.status]),(0,f.useEffect)(()=>{"complete"===o&&!d.current&&u&&(d.current=!0,(0,b.uu)(b.fv.AgreementSignedConfirmation,{},u))},[o,u]),(0,f.useEffect)(()=>("complete"===o&&(c.current=setTimeout(()=>{i.push((0,a.yH)(n))},2e3)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[o,n,i]),(0,f.useEffect)(()=>{S&&"awaiting_document"!==S.status&&"ready"===o&&i.replace((0,a.yH)(n))},[S,o,n,i]),{phase:o,signingUrl:m,isSigningUrlLoading:v,signingUrlError:y,session:S,handleSignDocument:k,handleRetry:P}})(e);return"complete"===n?(0,s.jsx)(u,{}):"declined"===n?(0,s.jsx)(i.N,{}):"error"===n?(0,s.jsx)(c,{sessionId:e.sessionId}):"timeout"===n?(0,s.jsx)(m,{sessionId:e.sessionId}):"processing"===n?(0,s.jsx)(d,{}):"signing"===n&&t?(0,s.jsx)("div",{className:"rounded-lg bg-white",children:(0,s.jsx)("iframe",{src:t,className:"h-[calc(100dvh-160px)] min-h-[500px] w-full border-none",title:"Sign Document",allow:"geolocation; microphone; camera"})}):(0,s.jsxs)("div",{className:"rounded-lg bg-white p-8 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-orange-100",children:(0,s.jsx)("svg",{className:"h-8 w-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,s.jsx)("h1",{className:"mb-2 text-2xl font-bold text-dark-gray",children:"Document Signature Required"}),(0,s.jsx)("p",{className:"mb-6 text-dark-gray",children:"Please sign the coaching agreement to confirm your session."}),l&&(0,s.jsxs)("p",{className:"mb-4 text-sm text-red-600",role:"alert","aria-live":"polite",children:[l,". Please try again."]}),(0,s.jsx)(r.A,{onClick:v,variant:"primary",size:"large",disabled:o,children:o?"Loading...":"Sign Coaching Agreement"})]})}},99652:(e,n,t)=>{t.d(n,{C:()=>s});let s=e=>(null==e?void 0:e.status)==="active"||(null==e?void 0:e.source)==="grace"}}]);
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.