1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2048],{1403:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/on-the-road-program-registration",function(){return s(94723)}])},94723:function(e,t,s){"use strict";s.r(t),s.d(t,{OnTheRoadProgramSteps:function(){return r},__N_SSG:function(){return U},default:function(){return Z}});var i,r,a=s(11527),n=s(85180),l=s(80432),o=s.n(l),d=s(50959),c=s(86096),m=s(28858);let u=(0,m.cn)({date:"",name:"",location:"",email:"",personalPhone:"",gender:"male",dateOfBirth:"",programGoals:"",programExpectations:"",dateOfGradute:"",howDidYouHearAboutUs:"",firmName:"",firmWebsite:"",firmPhone:"",primaryPracticeArea:"",numberOfYearsPracticing:"",numberOfJuryTrials:""});(0,m.cn)(!1);var h=s(4726),p=s(57167),f=s(15838),x=s(95258),g=s(86338),j=s(43675),y=s(588),w=s(18976),v=s(31948),N=s(9693),b=s(26077),P=s(5707),I=s(78803),O=s.n(I),S=s(17252),T=s(44597),z=s(7923),E=s.n(z),k=s(19063);let A=Date.UTC(2026,8,4,6,1,0),_=Date.UTC(2026,8,9,6,0,0);var D=s(61446),J=s(11615);let Y=J.z.object({date:J.z.string().nonempty("This field is required."),name:J.z.string().nonempty("This field is required."),location:J.z.string().nonempty("This field is required."),email:J.z.string().nonempty("This field is required.").email("Please enter a valid email address."),personalPhone:J.z.string().regex(D.n,"Please enter a valid phone number.").nonempty("This field is required."),gender:J.z.string().nonempty("This field is required."),dateOfBirth:J.z.string().nonempty("This field is required."),programGoals:J.z.string().nonempty("This field is required."),programExpectations:J.z.string().nonempty("This field is required."),dateOfGradute:J.z.string(),howDidYouHearAboutUs:J.z.string().nonempty("This field is required."),firmName:J.z.string().nonempty("This field is required."),firmWebsite:J.z.string(),firmPhone:J.z.string().regex(D.n,"Please enter a valid phone number.").nonempty("This field is required."),primaryPracticeArea:J.z.string().nonempty("This field is required."),numberOfYearsPracticing:J.z.string().nonempty("This field is required."),numberOfJuryTrials:J.z.string().nonempty("This field is required.")});function F(e){var t,s,i,r,n,l,o,c,m,I,z,D,J,F,R,C,G;let{onChangeSelectedStep:W,formatedWeekProgramDates:q}=e,[M,H]=(0,P.KO)(u),[L,B]=(0,d.useState)(!1),{name:U,gender:Z,dateOfBirth:Q,date:K,dateOfGradute:X,howDidYouHearAboutUs:$,email:V,personalPhone:ee,programGoals:et,programExpectations:es,firmName:ei,firmWebsite:er,firmPhone:ea,primaryPracticeArea:en,numberOfYearsPracticing:el,numberOfJuryTrials:eo,location:ed}=M,{register:ec,handleSubmit:em,watch:eu,setValue:eh,formState:{errors:ep}}=(0,T.cI)({resolver:(0,N.F)(Y),defaultValues:{name:U,gender:Z,dateOfBirth:Q,date:K,dateOfGradute:X,howDidYouHearAboutUs:$,email:V,personalPhone:ee,firmName:ei,firmWebsite:er,firmPhone:ea,primaryPracticeArea:en,numberOfYearsPracticing:el,numberOfJuryTrials:eo,programGoals:et,programExpectations:es,location:ed}}),[ef,ex]=(0,d.useState)(!1);async function eg(e){ex(!0);try{let t=await fetch("/api/on-the-road",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,isWaitList:L})});if(!t.ok)throw Error("Error saving the graduate form!");window.gtag("event","".concat(k.$u.ON_THE_ROAD," FORM FILLED"),e),window.fbq("trackCustom","GSM Registration",e),window.lintrk("track",{conversion_id:17175514}),b.ZP.track("".concat(k.$u.ON_THE_ROAD," FORM FILLED"),e),H(e),window.location.href=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=e.getTime();return t>=A&&t<_?"https://centz.com/XAQ6NPAHNGF9":"https://centz.com/XAQ6NPA5CXTG"}()}catch(e){console.log(e)}finally{ex(!1)}}let ej=e=>{eh("date",e);let t=q.find(t=>t.label===e);B((null==t?void 0:t.isWaitList)||!1)},ey=e=>{eh("gender",e)};return(0,d.useEffect)(()=>{let{date:e}=S.Z.parse(window.location.search);e&&ej(e.replaceAll("_"," "))},[]),(0,a.jsxs)("form",{onSubmit:em(eg),className:"w-full flex flex-col items-start gap-12 mt-12",children:[(0,a.jsxs)("div",{className:"w-full flex flex-col items-start gap-6",children:[(0,a.jsxs)("div",{className:"w-full flex flex-col items-start justify-start gap-1",children:[(0,a.jsxs)("div",{className:"w-full flex items-center justify-start gap-4",children:[(0,a.jsx)("h6",{className:"whitespace-nowrap text-xl text-sepia-skin-500 md:text-2xl",children:"Personal Information"}),(0,a.jsx)("div",{className:"w-full h-[1px] bg-sepia-skin-500"})]}),(0,a.jsx)("p",{className:"text-xs text-gray-600 lg:text-sm",children:"Please fill in all fields before submitting the form."})]}),(0,a.jsxs)("div",{className:"w-full grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-4",children:[(0,a.jsxs)(p.NI,{isInvalid:!!ep.name,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Name"}),(0,a.jsx)(x.I,{size:"sm",type:"text",placeholder:"John Doe",...ec("name")}
1),(0,a.jsx)(g.J1,{children:null===(t=ep.name)||void 0===t?void 0:t.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.email,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Email"}),(0,a.jsx)(x.I,{size:"sm",type:"email",placeholder:"[email protected]",...ec("email")}),(0,a.jsx)(g.J1,{children:null===(s=ep.email)||void 0===s?void 0:s.message})]})]}),(0,a.jsxs)("div",{className:"w-full grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-4",children:[(0,a.jsxs)(p.NI,{isInvalid:!!ep.personalPhone,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Personal Phone"}),(0,a.jsx)(E(),{className:"w-full h-8 px-3 ".concat(ep.personalPhone?"border-[2px] border-red-500":"border"," rounded-sm text-sm placeholder:text-sm"),mask:"(999) 999-9999",placeholder:"(999) 999-9999",type:"tel",...ec("personalPhone")}),(0,a.jsx)(g.J1,{children:null===(i=ep.personalPhone)||void 0===i?void 0:i.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.location,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Location"}),(0,a.jsx)(x.I,{size:"sm",type:"text",placeholder:"New York, NY",...ec("location")}),(0,a.jsx)(g.J1,{children:null===(r=ep.location)||void 0===r?void 0:r.message})]})]}),(0,a.jsxs)(p.NI,{children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Gender"}),(0,a.jsx)(j.E,{size:"sm",onChange:ey,value:eu("gender"),children:(0,a.jsxs)(y.K,{direction:"row",gridGap:4,children:[(0,a.jsx)(w.Y,{value:"male",children:"Male"}),(0,a.jsx)(w.Y,{value:"female",children:"Female"}),(0,a.jsx)(w.Y,{value:"non-binary",children:"Non-Binary"})]})}),(0,a.jsx)(g.J1,{children:null===(n=ep.gender)||void 0===n?void 0:n.message})]}),(0,a.jsxs)("div",{className:"w-full grid grid-cols-1 gap-6 lg:grid-cols-2 lg:gap-4",children:[(0,a.jsxs)(p.NI,{isInvalid:!!ep.dateOfBirth,children:[(0,a.jsx)(f.l,{className:"h-fit lg:h-[42px]",fontSize:"sm",children:"Date of Birth"}),(0,a.jsx)(x.I,{size:"sm",type:"date",...ec("dateOfBirth")}),(0,a.jsx)(g.J1,{children:null===(l=ep.dateOfBirth)||void 0===l?void 0:l.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.dateOfGradute,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"If you have been to a 3-Week Program at Thunderhead Ranch before, what year did you graduate?"}),(0,a.jsx)(x.I,{size:"sm",type:"text",...ec("dateOfGradute"),placeholder:"2024"}),(0,a.jsx)(g.J1,{children:null===(o=ep.dateOfGradute)||void 0===o?void 0:o.message})]})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.programGoals,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"What would you like to accomplish at this program?"}),(0,a.jsx)(v.g,{placeholder:"Gain practical skills in...",size:"sm",...ec("programGoals")}),(0,a.jsx)(g.J1,{children:null===(c=ep.programGoals)||void 0===c?void 0:c.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.programExpectations,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"What are your expectations of this program?"}),(0,a.jsx)(v.g,{placeholder:"I expect to learn about...",size:"sm",...ec("programExpectations")}),(0,a.jsx)(g.J1,{children:null===(m=ep.programExpectations)||void 0===m?void 0:m.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.howDidYouHearAboutUs,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"How did you hear about GSM?"}),(0,a.jsx)(v.g,{placeholder:"I heard about it from...",size:"sm",...ec("howDidYouHearAboutUs")}),(0,a.jsx)(g.J1,{children:null===(I=ep.howDidYouHearAboutUs)||void 0===I?void 0:I.message})]}),(0,a.jsxs)(p.NI,{children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Choose your date"}),(0,a.jsx)(j.E,{size:"sm",onChange:ej,value:eu("date"),children:(0,a.jsx)(y.K,{wrap:"wrap",alignItems:"flex-start",justifyContent:"start",direction:["column","row","row"],gridGap:"16px 32px",children:q.map(e=>(0,a.jsx)(w.Y,{margin:"0 !important",value:e.label,children:(0,a.jsxs)("div",{className:"w-fit flex items-center justify-center gap-1",children:[e.label,e.isWaitList&&(0,a.jsx)("div",{className:"text-xs",children:"(Wait list Only)"})]})},e.label))})}),!eu("date")&&(0,a.jsx)("p",{className:"text-sm mt-2 text-[#e53e3e]",children:null===(z=ep.date)||void 0===z?void 0:z.message})]})]}),(0,a.jsxs)("div",{className:"w-full flex flex-col items-start gap-6",children:[(0,a.jsxs)("div",{className:"w-full flex flex-col items-start justify-start gap-1",children:[(0,a.jsxs)("div",{className:"w-full flex items-center justify-start gap-4",children:[(0,a.jsx)("h6",{className:"whitespace-nowrap text-xl text-sepia-skin-500 md:text-2xl",children:"Firm Information"}),(0,a.jsx)("div",{className:"w-full h-[1px] bg-sepia-skin-500"})]}),(0,a.jsx)("p",{className:"text-xs text-gray-600 lg:text-sm",children:"Please fill in all fields before submitting the form."})]}),(0,a.jsxs)("div",{className:"w-full grid grid-cols-1 gap-6 lg:grid-cols-3 lg:gap-4",children:[(0,a.jsxs)(p.NI,{isInvalid:!!ep.firmName,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Firm Name"}),(0,a.jsx)(x.I,{size:"sm",type:"text",placeholder:"John Doe Law Firm",...ec("firmName")}
1),(0,a.jsx)(g.J1,{children:null===(D=ep.firmName)||void 0===D?void 0:D.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.firmWebsite,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Firm Website"}),(0,a.jsx)(x.I,{size:"sm",type:"text",placeholder:"https://www.john-doe.com",...ec("firmWebsite")}),(0,a.jsx)(g.J1,{children:null===(J=ep.firmWebsite)||void 0===J?void 0:J.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.firmPhone,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Firm Phone"}),(0,a.jsx)(E(),{className:"w-full h-8 px-3 ".concat(ep.firmPhone?"border-[2px] border-red-500":"border"," rounded-sm text-sm placeholder:text-sm"),mask:"(999) 999-9999",placeholder:"(999) 999-9999",type:"tel",...ec("firmPhone")}),(0,a.jsx)(g.J1,{children:null===(F=ep.firmPhone)||void 0===F?void 0:F.message})]})]})]}),(0,a.jsxs)("div",{className:"w-full flex flex-col items-start gap-6",children:[(0,a.jsxs)("div",{className:"w-full flex flex-col items-start justify-start gap-1",children:[(0,a.jsxs)("div",{className:"w-full flex items-center justify-start gap-4",children:[(0,a.jsx)("h6",{className:"whitespace-nowrap text-xl text-sepia-skin-500 md:text-2xl",children:"Professional Information"}),(0,a.jsx)("div",{className:"w-full h-[1px] bg-sepia-skin-500"})]}),(0,a.jsx)("p",{className:"text-xs text-gray-600 lg:text-sm",children:"Please fill in all fields before submitting the form."})]}),(0,a.jsxs)("div",{className:"w-full grid grid-cols-1 gap-6 lg:grid-cols-3 lg:gap-4",children:[(0,a.jsxs)(p.NI,{isInvalid:!!ep.primaryPracticeArea,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Primary Practice Area"}),(0,a.jsx)(x.I,{size:"sm",type:"text",placeholder:"Personal Injury",...ec("primaryPracticeArea")}),(0,a.jsx)(g.J1,{children:null===(R=ep.primaryPracticeArea)||void 0===R?void 0:R.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.numberOfYearsPracticing,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Number of Years Practicing"}),(0,a.jsx)(x.I,{size:"sm",type:"text",placeholder:"10",...ec("numberOfYearsPracticing")}),(0,a.jsx)(g.J1,{children:null===(C=ep.numberOfYearsPracticing)||void 0===C?void 0:C.message})]}),(0,a.jsxs)(p.NI,{isInvalid:!!ep.numberOfJuryTrials,children:[(0,a.jsx)(f.l,{fontSize:"sm",children:"Number of Jury Trials"}),(0,a.jsx)(x.I,{size:"sm",type:"text",placeholder:"10",...ec("numberOfJuryTrials")}),(0,a.jsx)(g.J1,{children:null===(G=ep.numberOfJuryTrials)||void 0===G?void 0:G.message})]})]})]}),(0,a.jsxs)("div",{className:"w-full flex flex-col-reverse gap-6 mt-6 md:grid md:grid-cols-2 md:gap-4",children:[(0,a.jsx)(O(),{href:"/",children:(0,a.jsx)(h.Z,{variant:"outlined",color:"dark",isFullWidth:!0,children:"Back to home"})}),(0,a.jsx)(h.Z,{type:"submit",isFullWidth:!0,style:{opacity:ef?.4:1},disabled:ef,children:"Submit and proceed to payment"})]})]})}var R=s(86138),C=s(18772),G=s(32672),W=s.n(G),q=s(66443),M=s(76104);function H(){let e=(0,M.useRouter)(),t=(0,R.useStripe)(),s=(0,R.useElements)(),i=(0,q.p)(),[r,n]=(0,d.useState)(null),[l,o]=(0,d.useState)(!1);(0,d.useEffect)(()=>{if(!t)return;let e=new URLSearchParams(window.location.search).get("payment_intent_client_secret");e&&(null==s||s.update({appearance:{theme:"flat",variables:{colorPrimary:"#9F693C",colorBackground:"#ffffff",colorText:"#1A202C",colorDanger:"#df1b41",fontFamily:"Inter, system-ui, sans-serif",spacingUnit:"2px",borderRadius:"2px"}}}),t.retrievePaymentIntent(e).then(e=>{let{paymentIntent:t}=e;if(t)switch(t.status){case"succeeded":n("Payment succeeded!");break;case"processing":n("Your payment is processing.");break;case"requires_payment_method":n("Your payment was not successful, please try again.");break;default:n("Something went wrong.")}}))},[t]);let c=async r=>{if(r.preventDefault(),!t||!s)return;o(!0);let{error:a,paymentIntent:l}=await t.confirmPayment({elements:s,redirect:"if_required",confirmParams:{return_url:window.location.origin}});if((null==l?void 0:l.status)==="succeeded"){let t=await fetch("/api/confirm-payment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentIntentId:l.id,productType:k.$u.ON_THE_ROAD})});if(!t.ok)throw i({title:"Payment error!",description:"There was an error with your payment method.",status:"error",duration:9e3,isClosable:!0,position:"bottom-right"}),Error("Payment error");window.gtag("event","".concat(k.$u.ON_THE_ROAD," PAID"),{paymentIntent:l}),b.ZP.track("".concat(k.$u.ON_THE_ROAD," PAID"),W()(l)),window.lintrk("track",{conversion_id:12945146}),console.log("Payment successful for On the Road Program!"),e.push("/"),i({title:"Payment successful!",description:"In a few minutes you will receive the invoice in your email.",status:"success",duration:9e3,isClosable:!0,position:"bottom-right"})}else(null==a?void 0:a.type)==="card_error"||(null==a?void 0:a.type)==="validation_error"?(i({title:"Something went wrong.",description:(null==a?void 0:a.message)||"An unexpected error occurred.",status:"error",duration:9e3,isClosable:!0,position:"bottom-right"}),n((null==a?void 0:a.message)||null)):(i({title:"Something went wrong.",description:"An unexpected error occurred.",status:"error",duration:9e3,isClosable:!0,position:"bottom-right"}),n("An unexpected error occurred."));o(!1)};return(0,a.jsxs)("form",{id:"payment-form",onSubmit:c,children:[(0,a.jsx)(R.PaymentElement,{id:"payment-element",options:{layout:"tabs"}}),(0,a.jsx)("div",{className:"w-full mt-6 grid grid-cols-1",children:(0,a.jsx)(h.Z,{isFullWidth:!0,disabled:l||!t||!s,id:"submit",children:(0,a.jsx)("span",{id:"button-text",children:l?(0,a.jsx)("div",{className:"spinner",id:"spinner"}):"Pay now"})})})]})}let L=(0,C.J)("pk_live_51Ke3eyC9PwVhjIjxcmtWkMH2o6n92KVHQseF1Qx6dC7Np6O4DQZFiA18pWcKF2wQ5NkEhWbu90OcPJ94G2I4YBSQ00z3ekX6eO");function B(){let e=(0,P.Dv)(u),[t,s]=(0,d.useState)(""),i=async e=>{try{let t=await fetch("/api/create-payment-intent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error("Failed to create payment intent");let i=await t.json();s(i.clientSecret),window.gtag("event","".concat(e.product.type," PAYMENT CREATED"),e),b.ZP.track("".concat(e.product.type," PAYMENT CREATED"),W()(e))}catch(e){console.error(e)}};return(0,d.useEffect)(()=>{i({customer:{name:e.name,email:e.email,personalPhone:e.personalPhone,date:e.date},product:{type:k.$u.ON_THE_ROAD}})},[e]),(0,a.jsxs)("div",{className:"w-full h-fit",children:[(0,a.jsxs)("div",{className:"w-full flex flex-col items-start justify-start gap-1 mb-6",children:[(0,a.jsxs)("div",{className:"w-full flex items-center justify-start gap-4",children:[(0,a.jsx)("h6",{className:"whitespace-nowrap text-xl text-sepia-skin-500 md:text-2xl",children:"Payment Information"}),(0,a.jsx)("div",{className:"w-full h-[1px] bg-sepia-skin-500"})]}),(0,a.jsx)("p",{className:"text-xs text-gray-600 lg:text-sm",children:"Please fill in all fields before submitting the form."})]}),t&&(0,a.jsx)(R.Elements,{options:{clientSecret:t},stripe:L,children:(0,a.jsx)(H,{})})]})}var U=!0;function Z(e){let{formatedWeekProgramDates:t}=e,s="https://cg-gerry-spence-method.s3.amazonaws.com/gerry-spence-method-graduate-program-form.png",i="https://gerryspencemethod.com/on-the-road-program-registration",l="On the Road Program Registration | Gerry Spence Method",m="You're one step away from securing your place in the prestigious GSM On the Road Program ".concat(new Date().getFullYear(),"! Fill out our registration form on this page and start your journey towards professional success. Don't miss the opportunity to stand out with our early application window. Apply now and take a leap in your career!"),[u,h]=(0,d.useState)(r.PERSONAL);function p(e){h(e)}let f=(0,d.useMemo)(()=>{switch(u){case r.PERSONAL:return(0,a.jsx)(F,{formatedWeekProgramDates:t,onChangeSelectedStep:
1p});case r.PAYMENT:return(0,a.jsx)(B,{});default:return(0,a.jsx)(d.Fragment,{})}},[u]);return(0,a.jsxs)(d.Fragment,{children:[(0,a.jsxs)(o(),{children:[(0,a.jsx)("meta",{property:"og:url",content:i}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:title",content:l}),(0,a.jsx)("meta",{property:"og:description",content:m}),(0,a.jsx)("meta",{property:"og:image",content:s})]}),(0,a.jsx)(n.PB,{canonical:i,openGraph:{type:"website",locale:"en_US",url:i,siteName:"Gerry Spence Method",title:l,description:m,images:[{url:s,width:998,height:569}]},title:l,description:m}),(0,a.jsx)(c.Z,{showCGIntelligenceCredit:!0,title:"Join the GSM On the Road Program ".concat(new Date().getFullYear()," Today"),description:"You're one step away from securing your place in the prestigious GSM On the Road Program ".concat(new Date().getFullYear(),"! Fill out our registration form on this page and start your journey towards professional success. Don't miss the opportunity to stand out with our early application window. Apply now and take a leap in your career!"),videoSrc:"https://cg-gerry-spence-method.s3.us-east-1.amazonaws.com/On+The+Road+-+Nashville+To+California.mp4",videoPoster:"https://cg-gerry-spence-method.s3.us-east-1.amazonaws.com/On+The+Road+To+Nashville+Tennessee.png",children:f})]})}(i=r||(r={})).PERSONAL="PERSONAL",i.PAYMENT="PAYMENT"}},function(e){e.O(0,[8660,5180,8974,5707,4239,8976,4323,6136,4430,9774,2888,179],function(){return e(e.s=1403)}),_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.