PageSourceSearch

https://www.hyperce.io/_next/static/chunks/app/referral/page-c855e…?dpl=dpl_EKp7hCsyyDawYShpK4vbTw1ESWvx

js hyperce.io collected 2026-10-06 13:03:43 UTC 8,296 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4066],{6605:function(e,t,a){Promise.resolve().then(a.bind(a,4012))},4012:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return m}});var r=a(1733),n=a(7735),s=a(3205),l=a(3565),i={src:"/_next/static/media/demo.d6f7a481.png",height:549,width:1030,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAMFBMVEX9/f7c3OFMaXGtrbLGxs3e3t6zsbvJycq3t7mnostdW2YhC92Qi9Xt7vHn5+zi4ufXFpzYAAAADXRSTlP+/QCIvhe84We7ixfsTuv5yAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAChJREFUeJxjYGLjZWTkY2ZiYGJhYGBg4AQzGBl5ebgZWDmY2VmYuVgBCZkAlW1j2M8AAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},o=a(4516);function d(){let[e,t]=(0,s.useState)({firstName:"",lastName:"",email:"",phone:"",refereeFirstName:"",refereeLastName:"",refereeEmail:"",refereePhone:"",refereeCompany:"",comments:""});function a(a){t({...e,[a.target.name]:a.target.value})}async function n(t){t.preventDefault();let a=await fetch("https://admin.hyperce.io/admin-api?languageCode=en",{headers:{"apollo-require-preflight":"true","content-type":"application/json","vendure-token":"14p5iqjjroxen9tuwq2i",cookie:"_y=6cf10474-9af9-452f-a455-9e82c882884b; _shopify_y=6cf10474-9af9-452f-a455-9e82c882884b; session=eyJ0b2tlbiI6IjEwY2ZmZGI5ZmEyZmUxY2JiY2IwYjQ3MzhkZDk2MjZjMTI0YThlMGQ0NzkxMWM0OGMzMDgyZjU4MzY1MWNhNzgifQ==; session.sig=OTX4yMp_h1T3L70coqRaW6a9kdk",Referer:"https://admin.hyperce.io/admin/extensions/referral/referrals/create","Referrer-Policy":"strict-origin-when-cross-origin"},body:JSON.stringify({operationName:"CreateRefferal",variables:{input:{firstName:e.firstName,lastName:e.lastName,email:e.email,phone:e.phone,refereeFirstName:e.refereeFirstName,refereeLastName:e.refereeLastName,refereeCompany:e.refereeCompany,refereePhone:e.refereePhone,refereeEmail:e.refereeEmail,comments:e.comments}},query:"mutation CreateRefferal($input: CreateReferralInput!) {\n  createReferral(input: $input) {\n    ...Referral\n    __typename\n  }\n}\n\nfragment Referral on Referral {\n  id\n  createdAt\n  updatedAt\n  firstName\n  lastName\n  email\n  phone\n  refereeFirstName\n  refereeLastName\n  refereeEmail\n  refereeCompany\n  interestedProduct\n  comments\n  __typename\n}"}),method:"POST"});"Referral"===(await a.json()).data.createReferral.__typename&&(0,o.Am)({title:"Thanks for applying for our referral program!",description:"You will get a reply from us very soon."})}return(0,r.jsxs)("section",{className:"flex w-[80vw] flex-col mx-10 my-10 border border-gray-300 dark:border-gray-700 shadow-lg rounded-xl bg-[#ebeeef] dark:bg-transparent py-10 justify-between",children:[(0,r.jsx)("div",{className:"md:flex-1 flex items-center justify-center p-4",children:(0,r.jsx)(l.default,{src:i,alt:"Demo",width:700,height:800,objectFit:"cover",className:"rounded-t-xl  md:rounded-tl-xl md:rounded-bl-xl"})}),(0,r.jsxs)("div",{className:" dark:text-gray-300 flex flex-col px-10 mt-10 items-center",children:[(0,r.jsx)("h2",{className:"font-bold text-4xl mb-5 dark:text-white text-left",children:"Join as a Referral Partner"}),(0,r.jsxs)("form",{className:"w-full lg:w-[80%] needs-validation flex-end flex flex-col gap-5",onSubmit:n,children:[(0,r.jsx)("h3",{children:"Your Details: "}),(0,r.jsx)("input",{type:"checkbox",className:"hidden",name:"botcheck"}),(0,r.jsxs)("div",{className:"mb-5 grid md:grid-cols-2 gap-10",children:[(0,r.jsx)("input",{required:!0,type:"text",value:e.firstName,onChange:a,placeholder:"First Name (Required)",className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white",name:"firstName"}),(0,r.jsx)("input",{required:!0,type:"text",value:e.lastName,onChange:a,placeholder:"Last Name (Required)",className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white",name:"lastName"})]}),(0,r.jsxs)("div",{className:"mb-5 grid md:grid-cols-2 gap-10",children:[(0,r.jsx)("input",{id:"email_address",type:"email",value:e.email,onChange:a,placeholder:"Email Address (Required)",name:"email",required:!0,className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white"}),(0,r.jsx)("input",{id:"phone_number",type:"text",placeholder:"Phone Number ",name:"phone",value:e.phone,onChange:a,className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white"})]}),(0,r.jsx)("h3",{children:"Referee Details: "}),(0,r.jsxs)("div",{className:"mb-5 grid md:grid-cols-2 gap-10",children:[(0,r.jsx)("input",{type:"text",value:e.refereeFirstName,onChange:a,placeholder:"Referee's First Name",className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white",name:"refereeFirstName"}),(0,r.jsx)("input",{type:"text",placeholder:"Referee's Last Name",className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white",name:"refereeLastName",value:e.refereeLastName,onChange:a})]}),(0,r.jsxs)("div",{className:"mb-5 grid md:grid-cols-2 gap-10",children:[(0,r.jsx)("input",{id:"referee_email",type:"email",value:e.refereeEmail,onChange:a,placeholder:"Referee's Email Address (Required)",name:"refereeEmail",required:!0,className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white"}),(0,r.jsx)("input",{id:"referee_phone",type:"tel",value:e.refereePhone,onChange:a,placeholder:"Referee's Phone Number (Optional)",name:"refereePhone",className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white"})]}),(0,r.jsx)("div",{className:"mb-5 grid md:grid-cols-2 gap-10",children:(0,r.jsx)("input",{id:"referee_company",type:"text",placeholder:"Referee Company",name:"refereeCompany",value:e.refereeCompany,onChange:a,className:"w-full px-4 py-3 text-black placeholder:text-gray-800 rounded-md outline-none focus:outline-gray-400 bg-white"})}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("button",{type:"submit",className:"bg-[#357D8A] text-white w-full md:w-1/4 h-fit py-3",children:"Join Now"})}),(0,r.jsx)("div",{id:"result",className:"mt-3 text-center"})]})]})]})}function m(){return(0,r.jsxs)("div",{children:[(0,r.jsx)(n.default,{}),(0,r.jsxs)("main",{className:"min-h-screen flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"text-center mt-10",children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-gray-500 tracking-wide uppercase mb-3 dark:text-gray-200",children:"Referral program"}),(0,r.jsxs)("h1",{className:"text-3xl text-gray-800 font-bold sm:text-5xl lg:text-6xl lg:leading-tight dark:text-gray-200",children:["Join the best Affiliate Program",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-[#357D8A]",children:"at Hyperce"})]})]}),(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center mb-20",children:(0,r.jsx)(d,{})})]})]})}},4516:function(e,t,a){"use strict";a.d(t,{Am:function(){return c},pm:function(){return u}});var r=a(3205);let n=0,s=new Map,l=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),m({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;
1return a?l(a):e.toasts.forEach(e=>{l(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function m(e){d=i(d,e),o.forEach(e=>{e(d)})}function c(e){let{...t}=e,a=(n=(n+1)%Number.MAX_VALUE).toString(),r=()=>m({type:"DISMISS_TOAST",toastId:a});return m({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>m({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function u(){let[e,t]=r.useState(d);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>m({type:"DISMISS_TOAST",toastId:e})}}}},function(e){e.O(0,[7110,4619,3565,7735,3937,958,1744],function(){return e(e.s=6605)}),_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.