1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[225],{347:(e,t,r)=>{r.d(t,{A:()=>a});let a={src:"/_next/static/media/hero_lightmode.25909cd0.png",height:808,width:1643,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEXz8vTy8fLu7u/u7u/w8PDx8PHm5ejx8fH6+vqV1aymAAAACHRSTlP98fqyarW0Szkn22QAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAkSURBVHicFcGHEQAwDAKxN+Cy/8S5SKQ+FUFCFDmAg22Pp/0ABHsAUtJQUHMAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},2027:(e,t,r)=>{r.d(t,{A:()=>a});let a={src:"/_next/static/media/hero_darkmode.2452f07b.png",height:808,width:1643,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEUZGRoaFy2CB1bRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAEklEQVR4nGNgQAKMjDAaxgIDAACHAAfG8JzuAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},5730:(e,t,r)=>{r.d(t,{A:()=>a});let a={src:"/_next/static/media/hero_light.ccddce0e.png",height:588,width:899,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAD1BMVEU+YYZofOVyg/KCf/Rbg+viS+bFAAAABXRSTlMBCh4vEmerCDoAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAgSURBVHicY2BgZGJmZmJkYEBisDAxsYAYDIyMjGAaCgAE/gArqZmT3QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5}},5952:(e,t,r)=>{r.d(t,{LaunchListPanelOpener:()=>o});var a=r(5155),i=r(2115),s=r(3321),l=r(6930);function n({keyId:e}){let t=(0,s.useRouter)(),r=(0,s.usePathname)(),n=(0,s.useSearchParams)(),[o,d]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{("1"===n.get("waitlist")||"waitlist"===n.get("panel"))&&d(!0)},[n]),(0,a.jsx)(l.A,{open:o,onClose:()=>{d(!1);let e=new URLSearchParams(n.toString());e.delete("waitlist"),e.delete("panel");let a=e.toString();t.replace(a?`${r}?${a}`:r,{scroll:!1})},keyId:e})}function o({keyId:e="SWiZWj"}){return(0,a.jsx)(n,{keyId:e})}},6930:(e,t,r)=>{let a;r.d(t,{A:()=>p});var i=r(5155),s=r(3226),l=r(2026),n=r(2115),o=r(30),d=r(9271),c=r(629),g=r(1550),h=r(7930);let m=["ref","referral","referrer"];function u(e){return"object"==typeof e&&null!==e}function x({keyId:e,className:t,onSuccess:r,onSuccessRef:s,onCaptureSubmission:l}){let{isDarkMode:o}=(0,h.D)(),d=function(){let[e]=(0,n.useState)(()=>void 0!==a?a:a=function(){let e=new URLSearchParams(window.location.search);for(let t of m){let r=e.get(t);if(r?.trim())return r.trim()}return null}());return e}(),[c,g]=(0,n.useState)(!1),[x,p]=(0,n.useState)(null),[b,A]=(0,n.useState)(""),y=(0,n.useRef)(null),f=`/api/launchlist/submit?keyId=${encodeURIComponent(e)}`,w=async e=>{if(e.preventDefault(),y.current){g(!0),p(null);try{let e=new FormData,t=y.current.querySelector('input[name="email"]'),a=(t?.value??"").trim();if(!a){p("Email required."),g(!1);return}e.set("email",a);let i=b.trim();i&&e.set("name",i),d&&e.set("ref",d),l?.(a,i||void 0);let n=await fetch(f,{method:"POST",body:e}),o=null;try{(n.headers.get("content-type")??"").includes("application/json")&&(o=await n.json())}catch{}if(!n.ok){let e=u(o)?o:{},t=("string"==typeof e.error?e.error:void 0)??(429===n.status?"Rate limited. Wait a minute.":422===n.status?"Invalid input.":401===n.status||403===n.status?"Authorization failed.":"Request failed.");p(t);return}let c=u(o)?o:{};r?.(),s?.(c.ref??null,c.url??"")}catch{p("Network issue. Please retry.")}finally{g(!1)}}};return(0,n.useEffect)(()=>{},[d]),(0,i.jsx)("div",{className:t,children:(0,i.jsx)("form",{ref:y,className:"launchlist-form",action:f,method:"POST",onSubmit:w,children:(0,i.jsxs)("div",{className:"grid gap-3 sm:gap-4",children:[d&&(0,i.jsx)("input",{type:"hidden",name:"ref",value:d}),(0,i.jsxs)("div",{className:"space-y-1",children:[(0,i.jsxs)("label",{htmlFor:"fullName",className:`block text-xs font-medium tracking-wide ${o?"text-gray-300":"text-gray-600"}`,children:["Name ",(0,i.jsx)("span",{className:"opacity-60 lowercase",children:"(optional)"})]}),(0,i.jsx)("input",{id:"fullName",name:"name",type:"text",autoComplete:"name",placeholder:"Full Name",value:b,onChange:e=>A(e.target.value),className:`w-full rounded-md px-3 py-2 border outline-none transition ${o?"bg-gray-800/70 border-gray-700 text-gray-100 placeholder:text-gray-400 focus:ring-2 focus:ring-indigo-500":"bg-white border-gray-300 text-gray-900 placeholder:text-gray-500 focus:ring-2 focus:ring-indigo-500"}`})]}),(0,i.jsxs)("div",{className:"grid gap-1.5",children:[(0,i.jsx)("label",{htmlFor:"ll-email",className:`text-sm ${o?"text-gray-300":"text-gray-700"}`,children:"Email"}),(0,i.jsx)("input",{id:"ll-email",name:"email",type:"email",required:!0,autoComplete:"email",placeholder:"[email protected]",className:`w-full rounded-md px-3 py-2 border outline-none transition ${o?"bg-gray-800/70 border-gray-700 text-gray-100 placeholder:text-gray-400 focus:ring-2 focus:ring-indigo-500":"bg-white border-gray-300 text-gray-900 placeholder:text-gray-500 focus:ring-2 focus:ring-indigo-500"}`,disabled:c})]}),x&&(0,i.jsx)("div",{className:"text-red-500 text-sm",children:x}),(0,i.jsx)("div",{className:"flex w-full items-center justify-end gap-3 pt-1",children:(0,i.jsx)("button",{type:"submit",disabled:c,
1className:`inline-flex items-center rounded-md px-4 py-2 font-semibold transition shadow ${c?"opacity-70 cursor-not-allowed":"hover:brightness-110 hover:shadow-xl"} ${o?"bg-venetian-night text-white border border-gray-700":"bg-meteor-shower text-white border border-transparent"}`,children:c?"Signing upâ¦":"Sign Up"})})]})})})}function p(e){let{open:t,onClose:r,title:a="Sign up for Xronos AI",keyId:m="SWiZWj",maxWidthClass:u="max-w-xl",description:p="Join the waitlist to get early access!"}=e,{isDarkMode:b}=(0,h.D)(),[A,y]=(0,n.useState)(!1),[f,w]=(0,n.useState)(null),[v,j]=(0,n.useState)(!1),[N,C]=(0,n.useState)(null),[k,S]=(0,n.useState)(!1),[R,$]=(0,n.useState)(null);(0,n.useEffect)(()=>{t&&(y(!1),w(null),j(!1),$(null),S(!1))},[t]);let E=window.location.origin,U=f?`${E}/?waitlist=1&ref=${encodeURIComponent(f)}`:null,F=async()=>{if(U)try{await navigator.clipboard.writeText(U),j(!0),setTimeout(()=>j(!1),2500)}catch{j(!1)}},B=async()=>{if(N){S(!0),$(null);try{let e=new FormData;e.set("email",N.email),N.name&&e.set("name",N.name),e.set("api_key",m??"");let t=await fetch(`/api/launchlist/submit?keyId=${encodeURIComponent(m??"")}`,{method:"POST",body:e}),r=null;try{(t.headers.get("content-type")??"").includes("application/json")&&(r=await t.json())}catch{}if(!t.ok)return void $("Retry failed.");let a=r&&"object"==typeof r?r:{};a.ref?w(a.ref??null):a.error?$(String(a.error)):$("No referral ID returned.")}catch{$("Network issue.")}finally{S(!1)}}},I=U?[{key:"whatsapp",href:`https://api.whatsapp.com/send?text=${encodeURIComponent("Join me on the waitlist for Xronos Cloud: "+U)}`,bg:"bg-[#25D366]",hover:"hover:brightness-110",ring:"ring-white/10",icon:(0,i.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4","aria-hidden":"true",fill:"currentColor",children:(0,i.jsx)("path",{d:"M12.04 2a9.94 9.94 0 0 0-8.54 15.07L2 22l5.13-1.47A9.95 9.95 0 1 0 12.04 2Zm0 18.16a8.17 8.17 0 0 1-4.16-1.15l-.3-.18-3.04.87.87-2.96-.2-.31a8.18 8.18 0 1 1 6.83 3.73ZM8.7 7.93c-.19-.42-.39-.43-.57-.43h-.49c-.17 0-.44.06-.67.31-.23.26-.88.86-.88 2.1 0 1.24.9 2.45 1.03 2.62.13.17 1.74 2.77 4.29 3.77 2.12.84 2.55.67 3.01.63.46-.04 1.48-.6 1.69-1.19.21-.58.21-1.08.15-1.19-.06-.1-.23-.16-.49-.28-.26-.13-1.48-.73-1.71-.81-.23-.09-.4-.13-.57.13-.17.26-.66.82-.81.98-.15.17-.3.19-.55.06-.26-.13-1.09-.4-2.07-1.27-.77-.68-1.29-1.52-1.44-1.78-.15-.26-.02-.4.11-.54.11-.11.26-.3.39-.45.13-.15.17-.26.26-.43.09-.17.04-.32-.02-.45-.06-.13-.53-1.3-.72-1.78Z"})}),label:"WhatsApp",aria:"Share on WhatsApp"},{key:"linkedin",href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(U)}`,bg:"bg-[#0A66C2]",hover:"hover:brightness-110",ring:"ring-white/10",icon:(0,i.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4","aria-hidden":"true",fill:"currentColor",children:(0,i.jsx)("path",{d:"M4.98 3.5A2.5 2.5 0 1 0 5 8.5a2.5 2.5 0 0 0-.02-5ZM3 9.75h3.96v10.5H3Zm6.17 0H13v1.47h.06c.54-.97 1.9-1.99 3.9-1.99 4.17 0 4.94 2.66 4.94 6.12v4.9h-3.96v-4.34c0-1.03-.02-2.36-.72-3.16-.72-.83-1.73-.95-2.64-.73-1.25.3-2.1 1.38-2.1 3.43v4.8H9.17Z"})}),label:"LinkedIn",aria:"Share on LinkedIn"},{key:"reddit",href:`https://www.reddit.com/submit?url=${encodeURIComponent(U)}&title=${encodeURIComponent("Join me on the waitlist for Xronos Cloud!")}`,bg:"bg-[#FF4500]",hover:"hover:brightness-110",ring:"ring-white/10",icon:(0,i.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4","aria-hidden":"true",fill:"currentColor",children:(0,i.jsx)("path",{d:"M12 2c5.51 0 10 4.42 10 9.87 0 4.19-3.18 7.73-7.5 8.64v1.2a.87.87 0 0 1-1.3.76l-1.86-1.04-1.85 1.04a.87.87 0 0 1-1.3-.76v-1.2C5.18 19.6 2 16.06 2 11.87 2 6.42 6.49 2 12 2Zm3.77 5.62a1.2 1.2 0 1 0 .01 2.4 1.2 1.2 0 0 0-.01-2.4Zm-7.54 0a1.2 1.2 0 1 0 .01 2.4 1.2 1.2 0 0 0-.01-2.4ZM9.4 13.41c-.36-.2-.8.23-.57.57.54.77 1.72 1.28 3.17 1.28 1.45 0 2.63-.51 3.17-1.28.23-.34-.21-.77-.57-.57-.42.23-1.2.6-2.6.6-1.4 0-2.18-.37-2.6-.6Z"})}),label:"Reddit",aria:"Share on Reddit"},{key:"facebook",href:`https://www.facebook.com/sharer.php?u=${encodeURIComponent(U)}"e=${encodeURIComponent("Join me on the waitlist for Xronos Cloud!")}`,bg:"bg-[#3b5998]",hover:"hover:brightness-110",ring:"ring-white/10",icon:(0,i.jsx)("svg",{viewBox:"0 0 24 24",className:"w-4 h-4","aria-hidden":"true",fill:"
1currentColor",children:(0,i.jsx)("path",{d:"M12 2.04C6.5 2.04 2 6.53 2 12.06c0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.51 1.49-3.89 3.78-3.89 1.09 0 2.23.19 2.23.19v2.47H15.2c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.45 2.9h-2.33v7A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z"})}),label:"Facebook",aria:"Share on Facebook"}]:[];return(0,i.jsx)(s.lG,{as:"div",className:"relative z-50",open:t,onClose:r,children:(0,i.jsx)(l._,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)("div",{className:`fixed inset-0 ${b?"bg-black/60":"bg-secondary/60"} backdrop-filter backdrop-grayscale overflow-y-auto`,"aria-hidden":"true",children:(0,i.jsx)("div",{className:"flex min-h-full items-start justify-center p-4",children:(0,i.jsx)(l._,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,i.jsx)(s.Lj,{className:`transform bg-secondary rounded-xl shadow-xl transition-all w-full ${u}`,style:{position:"relative",margin:"0 auto"},children:(0,i.jsxs)("div",{className:`${b?"bg-card":"bg-card-accent"} rounded-xl relative px-6 py-8`,children:[(0,i.jsx)("button",{onClick:r,className:`absolute right-4 top-4 z-10 p-2 rounded-full shadow-lg opacity-70 hover:opacity-100 hover:scale-110 ${b?"bg-gray-800 text-white border border-gray-700 hover:bg-gray-700 hover:text-gray-100":"bg-white text-gray-800 border border-gray-200 hover:bg-gray-100 hover:text-black"}`,"aria-label":"Close panel",children:(0,i.jsx)(o.A,{className:"w-5 h-5"})}),(0,i.jsx)("h2",{className:"text-2xl font-semibold text-primary mb-2",children:a}),p&&(0,i.jsx)("p",{className:`mb-3 text-semibold ${b?"text-gray-300":"text-gray-600"}`,children:p}),A?(0,i.jsx)("div",{children:f?(0,i.jsxs)("div",{className:`rounded-lg border ${b?"border-green-300/30 bg-green-900/20":"border-green-200 bg-green-50"} p-5`,children:[(0,i.jsxs)("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,i.jsx)("span",{role:"img","aria-hidden":"true",children:"\uD83C\uDF89"})," Thanks for Registering!"]}),(0,i.jsx)("p",{className:`mt-3 text-semibold ${b?"text-gray-200":"text-gray-700"}`,children:"We'll soon reach out to set you up on Xronos Cloud \uD83D\uDE4C"}),(0,i.jsx)("p",{className:`mt-3 font-semibold ${b?"text-gray-100":"text-gray-800"} text-base`,children:"Refer your friends and move up the list!"}),(0,i.jsxs)("div",{className:"mt-5 space-y-5",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:`block text-xs font-medium mb-1 uppercase tracking-wide ${b?"text-gray-400":"text-gray-500"}`,children:"Your referral link"}),(0,i.jsxs)("div",{className:`group flex items-stretch rounded-lg border overflow-hidden shadow-sm backdrop-blur ${b?"border-gray-600/70 bg-gray-800/60":"border-gray-200 bg-white/70"} transition`,children:[(0,i.jsx)("div",{className:"flex-1 overflow-x-auto",children:(0,i.jsx)("code",{className:`block px-3 py-3 text-sm whitespace-nowrap font-mono select-all ${b?"text-gray-100":"text-gray-800"}`,children:U})}),(0,i.jsx)("button",{type:"button",onClick:F,className:`px-4 py-3 flex items-center gap-1 text-sm font-medium border-l transition ${b?"border-gray-600/70 bg-gray-700/60 hover:bg-gray-600 text-gray-100":"border-gray-200 bg-gray-50/70 hover:bg-gray-100 text-gray-700"}`,"aria-label":"Copy referral link",children:v?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.A,{className:"w-4 h-4 text-green-500"}),"Copied"]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.A,{className:"w-4 h-4"}),"Copy"]})})]})]}),U&&(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{className:`block text-xs font-medium mb-1 uppercase tracking-wide ${b?"text-gray-400":"text-gray-500"}`,children:"Share"}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2",children:I.map(e=>(0,i.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.aria,className:`${e.bg} ${e.hover} ${e.ring} inline-flex items-center rounded-full px-4 py-2.5 text-sm font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-white/20 transition shadow-sm`,children:[e.icon,(0,i.jsx)("span",{className:"ml-1",children:e.label})]},e.key))})]})]})]}):(0,i.jsxs)("div",{className:`rounded-lg border ${b?"border-red-400/30 bg-red-900/20":"border-red-200 bg-red-50"} p-5`,children:[(0,i.jsxs)("h3",{className:"text-lg font-semibold flex items-center gap-2 text-red-600 dark:text-red-300",children:[(0,i.jsx)(g.A,{className:"w-5 h-5"}),"Registration Error"]}),(0,i.jsx)("p",{className:`mt-3 text-sm ${b?"text-red-200":"text-red-700"}`,children:"Oops! Something went wrong while processing your registration."}),(0,i.jsxs)("div",{className:"mt-4 flex gap-3 items-center flex-wrap",children:[(0,i.jsxs)("button",{onClick:B,disabled:k,className:`px-4 py-2 rounded-md text-sm font-medium flex items-center gap-2 ${b?"bg-gray-800 text-gray-100 hover:bg-gray-700 border border-gray-600 disabled:opacity-50":"bg-white text-gray-800 hover:bg-gray-100 border border-gray-300 disabled:opacity-50"}`,children:[k&&(0,i.jsx)("span",{className:"inline-block w-4 h-4 border-2 border-current border-t-transparent roun
1ded-full animate-spin"}),k?"Retrying...":"Try Again"]}),R&&(0,i.jsx)("p",{className:"text-xs text-red-500 dark:text-red-300",children:R}),(0,i.jsx)("button",{onClick:r,className:"px-4 py-2 rounded-md text-sm font-medium bg-red-600 hover:bg-red-500 text-white",children:"Close"})]})]})}):(0,i.jsx)(x,{keyId:m,onSuccess:()=>y(!0),onSuccessRef:e=>{w(e??null),y(!0)},onCaptureSubmission:(e,t)=>C({email:e,name:t})})]})})})})})})})}}}]); 2//# sourceMappingURL=225-174fdd0f58102659.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.