PageSourceSearch

https://hack2skill.com/assets/index-0ea97627.js

js hack2skill.com collected 2026-10-01 14:43:35 UTC 13,302 bytes, 1 lines download raw bytes

1import{D as l,a3 as f,a6 as D,a7 as q,a8 as O,k as I,j as i,M as N,i as e,B as b,F as T,V as W}from"./index-81971edb.js";import{r as d}from"./vendor-4adab861.js";import{u as _}from"./redux-cd3a9116.js";import{c as z,a as H}from"./index-134d6910.js";import{u as R}from"./router-805badc2.js";import"./ui-86749c30.js";const U=({onContactAdmin:a,onContinueNewAccount:s})=>({title:"Domain Already Exists",message:"This domain is already associated with an existing account.",actions:[{label:"Contact Admin",onClick:a,variant:"outlined"},{label:"Continue with New Billing Account",onClick:s,variant:"filled"}]});async function j({emailValue:a,onShowModal:s,onContactAdmin:o,onContinueNewAccount:c}){if(!a||a.trim()==="")throw new Error("Please enter a valid email.");const n=await z({email:a});if(n?.success===!1)throw new Error(n?.message||"Error checking email availability.");if(n?.data===!1){if(s){const r=U({onContactAdmin:()=>{o?.()},onContinueNewAccount:()=>{c?.()}});return s(r),{success:!1,showModal:!0,message:"Email already exists."}}throw new Error("This email is already taken. Please choose a different one.")}return{success:!0,message:"Email is available."}}const B=({userDetails:a={name:"",email:""},onShowModal:s,onContactAdmin:o,onContinueNewAccount:c})=>[{id:"name",name:"name",title:"Full Name",placeholder:"Name",type:l?.TEXT,validation:f?.LONG_TEXT,required:!0,value:a?.name??""},{id:"workEmail",name:"workEmail",title:"Work Email",placeholder:"Work Email",type:l?.EMAIL,helperText:"W'll use this to setup your workspace and share important updates.",validation:f?.EMAIL,required:!0,value:a?.email,isCheckUrlData:!0,checkActionData:{checkText:"Check Email",checkdataFunction:async n=>await j({emailValue:n,onShowModal:s,onContactAdmin:o,onContinueNewAccount:c})}},{id:"phone",name:"phone",title:"Contact Number",placeholder:"Mobile",type:l?.PHONE,required:!0},{id:"organization",name:"organization",title:"Organization Name",placeholder:"Write here...",type:l?.TEXT,validation:f?.LONG_TEXT,helperText:"This will appear on your workspace and dashboard.(light)",required:!0},{id:"designation",name:"designation",title:"Designation",placeholder:"e.g. Founder, Product Manager, Team Lead",type:l?.TEXT,validation:f?.LONG_TEXT,required:!0},{id:"address",name:"address",type:l.FORM,className:"address-container",fields:[{name:"country",t
1itle:"Country",type:l?.MULTIPLE_SELECT,isMulti:!1,isCreatable:!1,isSearchable:!0,getApiFunction:D,placeholder:"start typing...",required:!0,className:"requestForm-address",dependentFields:[{field:"state",value:"country",title:"State",type:"value"},{field:"city",value:"country",title:"City",type:"value"},{field:"state",value:void 0,title:"State",type:"disabled"}]},{name:"state",title:"State",placeholder:"start typing...",type:l?.MULTIPLE_SELECT,isMulti:!1,isCreatable:!1,isSearchable:!0,getApiFunction:q,required:!0,className:"requestForm-address",dependentFields:[{field:"city",value:"state",title:"City",type:"value"},{field:"city",value:void 0,type:"disabled"}]},{name:"city",title:"City",placeholder:"start typing...",type:l?.MULTIPLE_SELECT,isMulti:!1,isCreatable:!1,isSearchable:!0,getApiFunction:O,required:!0,className:"requestForm-address"}]},{id:"startDate",name:"startDate",title:"When do you plan to launch your first initiative?",placeholder:"DD.MM.YY",type:l?.DATE,validation:f?.DATE,helperText:"Pick a tentative start date ",note:"<p> This allow us to assist with planning, timeline, and onboarding support.</p>",required:!0,min:new Date,saveAs:"ISOString"},{name:"platformUsage",title:"What would you like to use the platform for?",type:l?.MULTIPLE_SELECT_V2,pickList:[{label:"Innovation Sourcing",value:"Innovation Sourcing"},{label:"Product Evangelism",value:"Product Evangelism"},{label:"Hackathon Platform",value:"Hackathon Platform"},{label:"Internal Hack",value:"Internal Hack"},{label:"Employer Branding",value:"Employer Branding"},{label:"Hack for students",value:"Hack for students"},{label:"Talent Acquisition",value:"Talent Acquisition"},{label:"Upskilling [Webinar/ Workshop, Outreach & partnerships]",value:"Upskilling [Webinar/ Workshop, Outreach & partnerships]"},{label:"Open to Explore",value:"Open to Explore"}],isMulti:!0,isCreatable:!1,isSearchable:!1,required:!0,className:"mb-4 mt-4 roleCheckBox"}];function V(){async function a(s){return await H(s)}return{submitStartupProfessinalFromData:a}}function Z(){const a=I(),s=R(),{submitStartupProfessinalFromData:o}=V(),c=d.useRef(null),n=_(t=>t?.user||{}),[r,u]=d.useState(!1),[m,C]=d.useState(10),[v,h]=d.useState(!1),[p,x]=d.useState(null),M=t=>{x(t),h(!0)};d.useEffect(()=>{let t;return r&&m>0?t=setInterval(()=>{C(y=>y-1)},1e3):m===0&&k(),()=>{t&&clearInterval(t)}},[r,m]),d.useEffect(()=>{r&&C(10)},[r]);const w=()=>{console.log("Contacting admin...")},E=()=>{console.log("Continuing with new billing account..."),h(!1)},[S,L]=d.useState(B({userDetails:n||{name:"",email:""},onShowModal:M,onContactAdmin:w,onContinueNewAccount:E}));async function F(){try{const t=await c?.current?.getValues(),y=S.map(g=>({...g,value:t[g.name]||null})),P={name:t?.name||"",email:t?.workEmail||"",phone:t?.phone||"",organization:t?.organization||"",designation:t?.designation||"",country:t?.address?.country?.value||"",state:t?.address?.state?.value||"",city:t?.address?.city?.value||"",startDate:t?.startDate||"",platformUsage:t?.platformUsage?.map(g=>g.value)||[]};(await o(P))?.data?.success&&u(!0),L(y)}catch(t){console.error("Error getting form values:",t),u(!1)}}function k(){localStorage.setItem("lastPath","/organizer-dashboard"),s("/organizer-dashboard")}function A(){u(!1)}return{t:a,form1Values:S,basicFormRef:c,userDetails:n,handleFirstStepNext:F,showModal:v,modalConfig:p,handleContactAdmin:w,handleContinueNewAccount:E,isRequestSentModalOpen:r,setIsRequestSentModalOpen:u,handleCloneRequestClose:A,handleNavigateDashboard:k,countdown:m}}function ee(){const{t:a,form1Values:s,basicFormRef:o,handleFirstStepNext:c,showModal:n,modalConfig:r,handleContactAdmin:u,isRequestSentModalOpen:m,handleCloneRequestClose:C,handleNavigateDashboard:v,countdown:h}=Z();return i(T,{children:[i(N,{isOpen:n,closeOnOverlayClick:!1,onClose:u,headingClass:"!text-h2sSlate-700 !text-captionv1",customWidth:"max-w-[30rem] !min-w-[30rem] max-lg:max-w-[100%] ",customHeight:" min-h-fit ",headerContainerClass:"px-[24px] pt-[24px] pb-[16px] mb-0 border-b border-h2sGrey-400",customClass:"!p-0 rounded-xl",children:[e("div",{className:"px-6 pt-6 pb-4 border-b border-h2sSlate-200",children:i("div",{className:"flex items-center gap-3",children:[e("div",{className:"flex-shrink-0 w-12 h-12 bg-amber-100 rounded-full flex items-center justify-center",children:e("svg",{className:"w-6 h-6 text-amber-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e("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"})})}),e("div",{children:e("h2",{className:"text-h6   font-semibold text-h2sSlate-900",children:r?.title||"Email Already Exists"})})]})}),i("div",{className:"px-6 py-6",children:[i("div",{className:" ",children:[e("p",{className:"text-sm text-h2sSlate-800",children:e("span",{className:"font-medium",children:"What would you like to do?"})}),e("p",{className:"text-sm text-h2sSlate-700 mt-2",children:"You can either contact your administrator to get access to the existing account, or continue with creating a new billing account."})]}),e("div",{className:"flex gap-4 justify-end flex-col mt-4 ",children:r?.actions?.map((p,x)=>e("div",{className:"",children:e(b,{customClass:"!w-full",variant:p?.variant||"primary",onClick:p?.onClick,children:p?.label||"Action"})},x))})]})]}),e(N,{isOpen:m,closeOnOverlayClick:!0,onClose:C,headingClass:"!text-h2sSlate-700 !text-captionv1",customWidth:"max-w-[30rem] !min-w-[30rem] max-lg:max-w-[100%] ",customHeight:" min-h-fit ",headerContainerClass:"px-[24px] pt-[24px] pb-[16px] mb-0 border-b border-h2sGrey-400",customClass:"!p-0 rounded-xl",children:e("div",{className:"px-6 pt-12 pb-12 border-b border-h2sSlate-200",children:i("div",{className:"flex items-center justify-center flex-col gap-8",children:[i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"74",height:"96",viewBox:"0 0 74 96",fill:"none",children:[i("g",{clipPath:"url(#clip0_803_34077)",children:[e("path",{d:"M26.6581 37.4453C26.9422 37.8542 26.7141 39.3608 26.0167 39.5244C25.1989 39.7138 13.5163 35.8698 11.222 35.4523C10.7743 35.3705 9.81443 34.8841 9.91343 35.689C10.572 35.7106 11.2177 35.8612 11.8031 36.1668C24.4198 42.7313 36.8599 49.6573 49.5023 56.1701L67.5944 51.4135L68.0205 50.7679C66.2686 50.092 61.0471 49.3431 59.8505 48.3874C59.5535 48.1507 59.3124 47.9699 59.4028 47.5351C59.3124 47.0703 59.717 46.6183 60.126 46.4977C61.9382 45.9597 70.0006 49.8811 72.4585 49.9844C73.285 50.1609 73.5432 51.6632 72.932 52.098L50.8497 58.12C50.3762 58.6667 51.6159 
168.2486 51.2242 70.3363C51.0907 71.0509 50.303 72.0366 49.6315 72.2174C46.558 73.0396 44.0872 66.7765 42.4128 64.9729L32.3789 85.0622C31.8193 86.3578 30.6829 87.0121 29.469 86.0824C19.2758 68.7523 9.63363 50.9745 0.0129725 33.2785C-0.0989457 31.2898 0.632827 30.4977 2.61292 30.713C5.37213 32.1851 25.9479 36.4165 26.6624 37.441L26.6581 37.4453ZM30.1448 83.9L40.4327 63.0918L3.88276 36.5542L30.1448 83.9ZM47.9097 69.5615C49.907 71.3996 49.0934 68.4595 49.0848 67.7536C49.0633 66.0748 48.9858 58.7011 48.2282 57.8488L13.5895 39.5373L11.6309 39.137L43.0111 62.2007C44.776 63.9269 46.36 68.141 47.9054 69.5615H47.9097Z",fill:"#141727"}),e("path",{d:"M60.707 85.6217C60.1474 89.7282 53.1611 91.1444 51.5598 87.2316C49.7691 82.8582 55.1885 79.9784 58.9765 81.7433C59.1745 79.8708 58.1415 77.6238 57.0137 76.1775C56.1571 75.0842 52.6058 72.8587 52.524 72.4842C51.9989 70.0091 56.1485 72.4239 57.0309 73.1471C61.301 76.6424 60.1 79.1907 61.6712 83.1423C62.1146 84.2528 64.1463 85.88 64.9512 87.6104C65.6959 89.2117 67.0648 94.1146 66.092 95.5308C65.6615 96.1549 64.7791 96.1549 64.3486 95.5308C63.845 94.8033 64.2927 92.9265 64.1076 91.8977C63.69 89.5647 62.5364 87.1584 60.7027 85.6217H60.707ZM58.9679 83.9171C58.516 83.2628 52.3518 82.6042 53.4581 86.1813C54.5644 89.7584 60.1603 85.6475 58.9679 83.9171Z",fill:"#141727"}),e("path",{d:"M47.7289 40.7166C57.2383 40.7166 64.9471 33.0078 64.9471 23.4985C64.9471 13.9891 57.2383 6.28027 47.7289 6.28027C38.2196 6.28027 30.5107 13.9891 30.5107 23.4985C30.5107 33.0078 38.2196 40.7166 47.7289 40.7166Z",fill:"#17AD37"}),e("path",{d:"M55.2534 16.0427C56.2865 15.8663 57.0183 16.6798 56.8461 17.7C56.7643 18.1735 55.4772 19.4089 55.0726 19.8393C51.629 23.5068 48.082 27.0796 44.6212 30.7298C44.0271 31.1 43.4977 31.0484 42.9467 30.6351C41.5477 29.5848 40.2133 27.6822 38.8445 26.52C38.0309 25.3578 39.2534 23.9158 40.5362 24.4969C41.7328 25.4439 42.7229 26.6405 43.8377 27.6865L54.7067 16.2881C54.8531 16.1848 55.0769 16.0686 55.2534 16.0384V16.0427Z",fill:"white"}),e("path",{d:"M47.7289 45.7616C35.4524 45.7616 25.4658 35.775 25.4658 23.4985C25.4658 11.2219 35.4524 1.23535 47.7289 1.23535C60.0055 1.23535 69.992 11.2219 69.992 23.4985C69.992 35.775 60.0055 45.7616 47.7289 45.7616Z",stroke:"#141727",strokeWidth:"2.47511",strokeMiterlimit:"10"})]}),e("defs",{children:e("clipPath",{id:"clip0_803_34077",children:e("rect",{width:"73.2634",height:"96",fill:"white"})})})]}),i("div",{className:"flex flex-col items-center text-center gap-2",children:[e("h2",{className:"text-h6   font-semibold text-h2sSlate-900",children:"Request Sent Successfully"}),e("p",{className:"text-sm text-h2sSlate-700 ",children:"We will review your request and get back to you shortly. In the meantime, you can continue exploring [Product Name] with your free plan access."}),i("p",{className:"text-xs text-h2sSlate-500 mt-2",children:["Redirecting to dashboard in ",h," second",h!==1?"s":"","..."]}),e(b,{onClick:v,customClass:"!w-full mt-4",children:"Got it!"})]})]})})}),e("div",{className:"py-10 max-w-screen-1440 mx-auto px-8 font-openSans ",children:i("div",{className:"grid grid-cols-2 max-lg:grid-cols-1 gap-8",children:[i("div",{className:"px-4",children:[e("h3",{className:"text-h4 capitalize text-h2sSlate-700 mb-2.5 mt-1 undefined",children:"Startup/Professional Application Form"}),e("p",{className:"text-body2v1 text-h2sSlate-500  ",children:"Tell us a bit about your organization so we can tailor your workspace experience."}),e("div",{className:"flex gap-4 flex-col mt-8",children:i(T,{children:[e(W,{fields:s||[],ref:o}),e(b,{customClass:"mt-4",onClick:c,children:a("Next")})]})})]}),e("div",{className:"hidden lg:block ",children:e("div",{className:"rounded-[40px] sticky top-[100px]  self-start max-h-[calc(100vh-90px)] bg-gradient-to-br from-[#5A93EE] via-[#4578CF] to-[#3463AF] p-8",children:i("div",{className:"pt-4",children:[e("h3",{className:"text-h4 capitalize text-white mb-2.5 mt-1 undefined",children:"The Easiest Way to Launch and Manage Your Initiative Programs"}),e("p",{className:"text-body2v1 text-white  ",children:"From registrations to final submissions—organize, engage, and scale your event effortlessly."}),e("div",{className:"mt-6 w-full flex justify-center",children:e("img",{src:"https://h2svision.github.io/publicAssets/vision/FormFrame.webp"})})]})})})]})})]})}export{ee 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.