1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7683],{91373:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(67294);const a=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(0,r.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:c="",children:l,iconNode:i,...u},m)=>(0,r.createElement)("svg",{ref:m,...s,width:t,height:t,stroke:e,strokeWidth:o?24*Number(n)/Number(t):n,className:a("lucide",c),...u},[...i.map((([e,t])=>(0,r.createElement)(e,t))),...Array.isArray(l)?l:[l]]))),c=(e,t)=>{const n=(0,r.forwardRef)((({className:n,...s},c)=>{return(0,r.createElement)(o,{ref:c,iconNode:t,className:a(`lucide-${l=e,l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...s});var l}));return n.displayName=`${e}`,n}},1981:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]])},95606:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-support-application/[apply]",function(){return n(69650)}])},69650:function(e,t,n){"use strict";n.r(t);var r=n(34051),a=n.n(r),s=n(85893),o=n(67294),c=n(36747),l=n(11163),i=n(98191),u=n(1981),m=n(68527),d=n(96486),p=n(40782),h=n(81194);function f(e,t,n,r,a,s,o){try{var c=e[s](o),l=c.value}catch(i){return void n(i)}c.done?t(l):Promise.resolve(l).then(r,a)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var s=e.apply(t,n);function o(e){f(s,r,a,o,c,"next",e)}function c(e){f(s,r,a,o,c,"throw",e)}o(void 0)}))}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b(e,t,n[t])}))}return e}t.default=function(){var e=function(e){e.persist();var t=e.target.name,n="checkbox"===e.target.type?e.target.checked:e.target.value;"file"===e.target.type&&(n=e.target.files[0]),N((function(e){return v({},(0,d.set)(e,t,n))}))},t=(0,l.useRouter)(),n=t.query.apply,r=(0,o.useState)(""),f=(r[0],r[1],(0,o.useState)({techrity_community_member:"Yes",previous_participation:"Yes",cohort_name:"",reason_for_support:"Online Course",phone_number:"",network:"MTN",data_id:"",first_name:"",last_name:""})),b=f[0],N=f[1],g=(0,o.useState)(!1),j=g[0],y=g[1];function w(){return(w=x(a().mark((function e(t){var n,r,s,o,c,l,i,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),y(!0),e.prev=2,n={first_name:"required",last_name:"required",techrity_community_member:"required",previous_participation:"required",network:"required",phone_number:"required",data_id:"required"},console.log(b),r=(0,d.cloneDeep)(b),e.next=8,(0,h.Kf)(r,n);case 8:return e.next=10,fetch("/v1/api/data/application/create",{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}});case 10:return e.next=12,e.sent.json();case 12:e.sent.success&&(p.Am.success("Appplication submitted successfully",{position:"bottom-center",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0}),setTimeout((function(){window.location.href="https://opportunity.techrity.org/"}),2e3)),console.log("submttions data here ",r),e.next=42;break;case 17:if(e.prev=17,e.t0=e.catch(2),!Array.isArray(e.t0)){e.next=40;break}for(s=!0,o=!1,c=void 0,e.prev=21,l=e.t0[Symbol.iterator]();!(s=(i=l.next()).done);s=!0)u=i.value,p.Am.warn(u.message,{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0});e.next=29;break;case 25:e.prev=25,e.t1=e.catch(21),o=!0,c=e.t1;case 29:e.prev=29,e.prev=30,s||null==l.return||l.return();case 32:if(e.prev=32,!o){e.next=35;break}throw c;case 35:return e.finish(32);case 36:return e.finish(29);case 37:y(!1),e.next=41;break;case 40:y(!1),p.Am.warn(e.t0.message,{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0});case 41:console.log(e.t0);case 42:case"end":return e.stop()}}),e,null,[[2,17],[21,25,29,37],[30,,32,36]])})))).apply(this,arguments)}return(0,o.useEffect)((function(){n&&N((function(e){return v({},e,{data_id:n})}))}
1),[n]),(0,s.jsx)(c.Z,{title:"Application",children:(0,s.jsx)(i.xjn,{children:(0,s.jsx)("main",{className:"min-h-screen",children:(0,s.jsx)(m.xu,{className:"max-w-7xl mx-auto py-10",children:(0,s.jsx)(m.xu,{className:"flex flex-col gap-10",children:(0,s.jsxs)("section",{className:" col-span-5 px-4 md:px-0 md:col-span-3 ",children:[(0,s.jsxs)("button",{onClick:function(){return t.back()},className:"flex items-center mb-16 hover:none",children:[(0,s.jsx)(u.Z,{className:"mr-3"}),"Back to opportunity"]}),(0,s.jsxs)("form",{action:"",method:"post",onSubmit:function(e){return w.apply(this,arguments)},className:"w-full mx-auto",children:[(0,s.jsx)("div",{className:"gap-4 w-full grid grid-cols-1 md:grid-cols-2 p-6",children:(0,s.jsx)("h2",{className:" text-black font-now-alt text-2xl font-medium leading-[40px]",children:"Apply for Data support"})}),(0,s.jsxs)("div",{className:"gap-4 mb-6 w-full grid grid-cols-1 md:grid-cols-2 p-6",children:[(0,s.jsxs)("div",{className:"col-span-2 sm:col-span-1 ",children:[(0,s.jsx)("label",{className:"font-medium mb-2",children:"First Name"}),(0,s.jsx)("input",{className:"h-12 w-full flex placeholder-accent-6 text-accent-6 mt-2 px-4 md:px-8 border-2 border-accent-6",onChange:e,value:b.first_name,name:"first_name",placeholder:"Enter your first name"})]}),(0,s.jsxs)("div",{className:"col-span-2 sm:col-span-1 ",children:[(0,s.jsx)("label",{className:"font-medium mb-2",children:"Last Name"}),(0,s.jsx)("input",{className:"h-12 w-full flex placeholder-accent-6 text-accent-6 mt-2 px-4 md:px-8 border-2 border-accent-6",onChange:e,value:b.last_name,name:"last_name",placeholder:"Enter your last name"})]}),(0,s.jsxs)("div",{className:"col-span-2 sm:col-span-1 ",children:[(0,s.jsx)("label",{className:"font-medium mb-2",children:"Techrity Community Member"}),(0,s.jsxs)("select",{name:"techrity_community_member",value:b.techrity_community_member,onChange:e,className:"h-12 w-full mt-2 placeholder-accent-6 text-accent-6 font-thin px-4 md:px-8 border-2 border-accent-6",children:[(0,s.jsx)("option",{value:"Yes",children:"Yes"}),(0,s.jsx)("option",{value:"NO",children:"No"})]})]}),(0,s.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,s.jsxs)("label",{className:"font-medium mb-2",children:[" ","Previous participated in any of our programs"]}),(0,s.jsxs)("select",{name:"previous_participation",value:b.previous_participation,onChange:e,className:"h-12 w-full mt-2 placeholder-accent-6 text-accent-6 font-thin px-4 md:px-8 border-2 border-accent-6",children:[(0,s.jsx)("option",{value:"Yes",children:"Yes"}),(0,s.jsx)("option",{value:"No",children:"No"})]})]}),(0,s.jsxs)("div",{className:"mb-6 col-span-2 w-full",children:[(0,s.jsx)("label",{className:"block font-medium mb-2",children:"If yes, Cohort Name"}),(0,s.jsx)("textarea",{name:"cohort_name",value:b.cohort_name,onChange:e,placeholder:"Type here",className:"w-full p-2 border-2 border-accent-6 rounded-md h-24"})]}),(0,s.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,s.jsxs)("label",{className:"font-medium mb-2",children:[" ","Reason for data support"]}),(0,s.jsxs)("select",{name:"reason_for_support",value:b.reason_for_support,onChange:e,className:"h-12 w-full mt-2 placeholder-accent-6 text-accent-6 font-thin px-4 md:px-8 border-2 border-accent-6",children:[(0,s.jsx)("option",{value:"Online Course",children:"Online Course"}),(0,s.jsx)("option",{value:"Upskill",children:"Upskill"})]})]}),(0,s.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,s.jsx)("label",{className:"font-medium mb-2",children:" Network"}),(0,s.jsxs)("select",{name:"network",value:b.job_type,onChange:e,className:"h-12 w-full mt-2 placeholder-accent-6 text-accent-6 font-thin px-4 md:px-8 border-2 border-accent-6",children:[(0,s.jsx)("option",{value:"MTN",children:"MTN"}),(0,s.jsx)("option",{value:"GLO",children:"GLO"}),(0,s.jsx)("option",{value:"Airtel",children:"Airtel"})]})]}),(0,s.jsxs)("div",{className:"col-span-2 sm:col-span-1 mt-8",children:[(0,s.jsx)("label",{className:"font-medium mb-2",children:"Phone Number"}),(0,s.jsx)("input",{className:"h-12 w-full flex placeholder-accent-6 text-accent-6 mt-2 px-4 md:px-8 border-2 border-accent-6",onChange:e,value:b.phone_number,name:"phone_number"})]}),(0,s.jsx)("div",{className:"col-span-2 text-start py-4",children:(0,s.jsx)("button",{disabled:j,className:"h-12 px-12 inline-flex disabled:bg-opacity-25 disabled:cursor-not-allowed items-center bg-black rounded-3xl text-white",children:j?"Submitting":"Apply now"})})]})]})]})})})})})})}}},function(e){e.O(0,[3662,782,210,1194,6804,9380,8527,6747,9774,2888,179],(function(){return t=95606,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.