PageSourceSearch

https://hack2skill.com/assets/index-36e66641.js

js hack2skill.com collected 2026-09-24 11:21:48 UTC 4,293 bytes, 1 lines download raw bytes

1import{k,D as a,a3 as l,da as N,db as T,aC as L,aD as R,dc as D,i as e,F as c,j as o,I as O,V as I,ax as x,z as q}from"./index-afaf2031.js";import{r as u}from"./vendor-4adab861.js";import{u as p}from"./redux-7a585bcd.js";import{a as A}from"./index-d1e957f7.js";import{u as g}from"./router-805badc2.js";import"./ui-86749c30.js";const w=()=>{const t=k(),n=p(i=>i.userDetail),s=p(i=>i.user),[r,y]=u.useState({});function v(){const i=s?.roles?s?.roles?.some(m=>m?.role==="L6"):"",d=s?.roles?s?.roles.find(m=>m?.role==="L6"&&m?.status==="REVOKED")??!1:"";y({hasRoleL6:i,isRevokedL6:d})}u.useEffect(()=>{s&&v()},[s]);const h=u.useRef(null),b=g(),f=[{name:"name",title:"Name",placeholder:"Name",type:a?.TEXT,validation:l?.LONG_TEXT,required:!0,value:n?.name??""},{name:"email",title:"Email",placeholder:"Email",type:a?.EMAIL,validation:l?.EMAIL,required:!0,value:n?.email,disabled:!0},{name:"phone",title:"WhatsApp Number",placeholder:"Mobile",type:a?.PHONE,required:!0},{name:"country",title:"Country",placeholder:"Country",type:a?.SELECT,pickList:N,required:!0},{name:"city",title:"City",placeholder:"City",type:a?.SELECT,pickList:T,required:!0},{name:"dateOfBirth",title:"DOB",placeholder:"DOB",type:a?.DATE,validation:l?.DATE,required:!0,min:L,max:R,saveAs:"ISOString"},{name:"organization",title:"College/Company",placeholder:"College/Company",type:a?.TEXT,validation:l?.LONG_TEXT,required:!0},{name:"occupation",title:"Occupation",placeholder:"Occupation",type:a?.TEXT,validation:l?.LONG_TEXT,required:!0},{name:"linkedin",title:"LinkedIn",placeholder:"LinkedIn",type:a?.URL,validation:l?.LINKEDIN_URL,required:!0},{name:"isHackathonExperience",title:"Have you organized a Hackathon Before?",type:a.RADIO,required:!0,pickList:D}],E=async()=>{try{const i=await h.current.getValues(),d=await A(i);d?.success===!0&&(q.success(d?.message),await x())}catch(i){console.log(i.message)}};return e(c,{children:e("div",{className:"organizerRequestForm pb-6 pt-2",children:r?.hasRoleL6===!1||r?.isRevokedL6?e(c,{children:o("div",{children:[o("div",{className:"flex items-center justify-start gap-2 text-[var(--blue)] font-bold cursor-pointer",onClick:()=>b(-1),children:[" ",e(O,{icon:"ep:back"})," ",t("Go Back")]}),e("h3",{className:"text-[var(--grey1)] dark:text-[var(--darkTheme2)] font-bold  py-2  text-[1.5rem]  sm:text-3xl md:text-4xl lg:text-4xl xl:text-4xl 2xl:text-4xl",children:t("Initiative Organizer - Request Form")}),e("p",{className:"text-sm text-grey4 leading-6 ",children:t("Hey Innovator, Kindly help us with the following details to speed up your onboarding as an Initiative Organizer on the Vision by Hack2skill Platform. ")}),o("p",{className:"text-sm mt-2 mb-8 text-blue leading-6",children:[o("span",{className:"font-semibold",children:[" ",t("NOTE:")," "]}),t("You will be able to see the status once you have applied, and switch roles from top right corner if approved.")]}),e("div",{className:"flex flex-col gap-6",children:e(I,{fields:f,ref:h})}),e("div",{className:"w-full text-right pt-6 pb-20",children:e("button",{className:"btn-primary-gradient-v2 px-8 py-1.5 mx-auto",onClick:E,children:t("Submit")})})]})}):e(c,{children:o("div",{className:"pb-8 pt-0 sm:pt-24 text-center",style:{background:"url(https://h2svision.github.io/publicAssets/vision/underReviewBg.png)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:[e("img",{className:"mx-auto w-44 h-44 sm:w-60 sm:h-60 mb-5",src:"https://h2svision.github.io/publicAssets/vision/underReviewImg.svg",alt:""}),e("p",{className:"text-grey4 text-sm sm:text-base text-center leading-6",children:t("Your request to become an initiative organizer is being reviewed by Hack2skill Admin. ")}),e("p",{className:"text-grey4 text-sm sm:text-base text-center leading-6",children:t("Kindly check back later.")}),e("button",{className:"btn-primary-gradient-v2 text-sm sm:text-base px-8 my-5 py-1.5 mx-auto",onClick:async()=>{await x()},children:t("REFRESH")})]})})})})},B=()=>{const t=g(),n=p(r=>r.user),s=n?.roles?n?.roles?.find(r=>r.role==="L6"&&r?.status==="VERIFIED")??!1:"";return u.useEffect(()=>{s&&t("/admin")},[s,t]),e(c,{children:e(c,{children:e("div",{className:"py-10 px-5 sm:px-16 md:px-24 lg:px-52 xl:px-96 2xl:px-96 create-event-page",children:e(w,{})})})})};export{B as default};

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.