1import{r as n,u as y,j as e,c as i,A as c,d,f as m}from"./index-QW0Z3Qxf.js";function x(){const[a,l]=n.useState(null),u=y(),s=p();function p(){return new URLSearchParams(u.search)}const h=async o=>{try{const{data:t}=await i.get(`${c}/v1/argonaut/lead/profile/${o}`);l(t)}catch(t){d(t),window.alert("Please try again later!")}},f=async o=>{try{await i.patch(`${c}/v1/argonaut/lead/profile/${o}`,{metadata:{has_provided_consent:!0}}),m.success("Thanks! We have received your response."),window.location.reload()}catch(t){d(t),window.alert("Please try again later!")}};n.useEffect(()=>{h(s.get("id"))},[s]);const r=()=>{f(s.get("id"))};return e.jsx("div",{className:"py-12",children:a?e.jsxs("form",{onSubmit:r,children:[e.jsx("div",{className:"space-y-12",children:e.jsxs("div",{className:"pb-12 border-b border-gray-900/10",children:[e.jsxs("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:["Consent Form for ",a.full_name]}),e.jsxs("p",{className:"mt-1 text-sm leading-6 text-gray-600",children:['We are excited to assist you in your pursuit of studying abroad and appreciate your trust in us to be your study abroad application processing partner. Before we proceed, we require your consent to process your application and handle the necessary steps to facilitate your study abroad journey. Please carefully review the terms and conditions outlined below and signify your agreement by clicking the "Accept" button at the end of this page. If you have any questions or concerns, feel free to reach out to our support team. ',e.jsx("br",{})," ",e.jsx("br",{}),e.jsx("input",{type:"checkbox",name:"",id:"",checked:!0,disabled:!0})," Â ",e.jsxs("a",{href:"https://nbyula.com/terms",target:"_blank",rel:"noreferrer",className:"text-link",children:["Read the Terms & Conditions"," "]})]})]})}),e.jsx("div",{className:"flex items-start justify-start mt-6 gap-x-6",children:e.jsx("button",{type:"button",onClick:()=>{r()},disabled:a.metadata.has_provided_consent,className:"block float-left w-full px-3 py-2 text-sm font-semibold text-white bg-indigo-600 rounded-md shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 hover:bg-indigo-500 disabled:bg-gray-500",children:a.metadata.has_provided_consent?"Accepted":"Accept"})})]}):e.jsx("p",{children:"Loading ... "})})}export{x as default}; 2//# sourceMappingURL=ApplicationProcessingPartnerConsent-DnhzbPsK.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.