PageSourceSearch

https://www.getstark.co/component---src-pages-request-sidekick-index-tsx-a2680413a1f5a4799269.js

js getstark.co collected 2026-09-24 08:40:15 UTC 4,941 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmarketing_website=self.webpackChunkmarketing_website||[]).push([[4299],{1537:function(e,t,a){a.r(t),a.d(t,{Head:function(){return m},default:function(){return c}});var r=a(6540),l=a(856),n=a(389),i=a(5235);function c(){const e=(0,r.useState)(""),t=e[0],a=e[1],c=(0,r.useState)(!1),m=c[0],o=c[1],s=(0,r.useState)(!1),d=s[0],u=s[1],f=(0,r.useState)(!1),p=f[0],g=f[1],y=(0,r.useState)(!1),E=y[0],h=y[1],b=(0,r.useState)(!1),v=b[0],x=b[1];return(0,r.useEffect)(()=>{let e=window.location.search,t=new URLSearchParams(e).get("email");t&&a(t)},[]),r.createElement(n.EB,{pageBgColor:"bone",navBgColor:"bone",hideFooter:!0,hideNavigation:!0},r.createElement("main",null,r.createElement("div",{className:"flex justify-center p-4"},r.createElement("div",{className:"mb-52 max-w-125"},r.createElement("div",{className:"relative mt-10"},r.createElement("svg",{width:"941",height:"967",viewBox:"0 0 941 967",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute -top-24 -left-100 hidden blur-[162px] will-change-[filter] md:block",colorInterpolationFilters:"sRGB"},r.createElement("circle",{cx:"563.967",cy:"494.98",r:"168.445",fill:"#7662F6"}),r.createElement("circle",{cx:"748.609",cy:"494.978",r:"168.445",fill:"#4A9EF4"}),r.createElement("circle",{cx:"494.861",cy:"651.547",r:"168.445",fill:"#E05534"}),r.createElement("circle",{cx:"563.967",cy:"743.328",r:"168.445",fill:"#E98535"}),r.createElement("circle",{cx:"732.411",cy:"743.328",r:"168.445",fill:"#F9D749"}),r.createElement("circle",{cx:"805.835",cy:"604.037",r:"168.445",fill:"#5CC183"})),r.createElement("form",{onSubmit:async e=>{const t=document.getElementById("form");e.preventDefault(),e.stopPropagation();let a=new FormData(t);const r={},l=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;let n=!1;for(var c of a.entries()){var m=c[0],s=c[1];"yourEmail"===m&&""===s||"yourEmail"===m&&!s.match(l)?(o(!0),n=!0):"adminEmail"===m&&""===s||"adminEmail"===m&&!s.match(l)?(u(!0),n=!0):"message"===m&&""===s?(g(!0),n=!0):r[m]=s}if(n)h(!0);else{h(!1),o(!1),u(!1),g(!1);let e=await fetch("/.netlify/functions/send-request-sidekick-form",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});e=await e.json(),"Email sent"===e.message&&(x(!0),"undefined"!=typeof window&&(0,i.u4)("Request Sidekick submitted",{sender:a.get("yourEmail"),receiver:a.get("adminEmail")}))}},id:"form",name:"Sales form",className:"sales-form relative z-50"},r.createElement("img",{className:"mx-auto mb-6 w-16",alt:"",src:"/icon-192.png"}),r.createElement(n.$j,{level:"2",color:"blue",className:"text-center"},"Request Sidekick Access"),r.createElement("div",{className:(0,l.QP)("mt-12 grid gap-4 rounded-xl bg-white p-12 shadow-md transition-opacity",v?"hidden opacity-0":"opacity-100")},r.createElement(n.pd,{type:"email",label:"Your email",name:"yourEmail",placeholder:"[email protected]",isRequired:!0,defaultValue:t,status:m?"error":"default",helpText:m?"Provide your email":""}),r.createElement(n.pd,{type:"email",label:"Admin / Manager's email",name:"adminEmail",placeholder:"[email protected]",isRequired:!0,status:d?"error":"default",helpText:d?"Provide your admin's email":""}),r.createElement(n.TM,{label:"Message to your admin / manager",name:"message",placeholder:"Message to your admin / manager",defaultValue:"I’d love access to Sidekick to automatically scan and fix accessibility issues in our design files.",rows:12,status:p?"error":"default",helpText:p?"Provide a message to your admin / manager":""}),r.createElement("div",{className:"mt-6"},r.createElement(n.$n,{isBlock:!0},"Send Request"),r.createElement(n.N_,{className:"mt-4 inline-block w-full text-center",href:"/pricing"},"Start a free trial")),E&&r.createElement("div",null,r.createElement(n.nB,{color:"error",className:"text-med!"},"Please fix the errors above before submitting.")),r.createElement(n.nB,{color:"gray",className:"mt-2 border-t border-gray-200 px-8 pt-4 text-center text-sm!",style:{textWrap:"pretty"}},"By clicking submit, you agree to our"," ",r.createElement(n.N_,{href:"/tos"},"Terms of Service")," and"," ",r.createElement(n.N_,{href:"/privacy"},"Privacy Policy"),".")),r.createElement("div",{className:(0,l.QP)("mt-10 grid gap-4 roun
1ded-lg bg-white px-16 py-32 text-center transition-opacity",v?"opacity-100":"hidden opacity-0")},r.createElement("img",{className:"mb-6",alt:"",src:"/stark-confetti.png"}),r.createElement(n.nB,null,"A request for Sidekick access has been sent to your manager or team admin!"),r.createElement(n.nB,null,r.createElement(n.N_,{href:"/"},"Go Home")))))))))}const m=()=>r.createElement(n.W8,{ogImgUrl:"https://res.cloudinary.com/stark-lab/image/upload/v1761273066/marketing/meta/homepage_fzpkxd.png"},r.createElement("meta",{name:"theme-color",content:"#381FD1"}))}}]);
2//# sourceMappingURL=component---src-pages-request-sidekick-index-tsx-a2680413a1f5a4799269.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.