PageSourceSearch

https://axolo.co/_next/static/chunks/526-785bfd151ad932f9.js

js axolo.co collected 2026-09-25 19:00:45 UTC 14,498 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[526],{9176:function(e,t,a){a.r(t),a.d(t,{submitRequestDemo:function(){return c}});var n=a(29),r=a(4687),s=a.n(r),l=a(9669),o=a.n(l),i=a(9350);function c(e,t,a,n,r,s,l){return d.apply(this,arguments)}function d(){return(d=(0,n.Z)(s().mark(function e(t,a,r,l,c,d,u){var m,p,h,x,y,f,g,v,b,j,w,N,k;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(N=function(){return(N=(0,n.Z)(s().mark(function e(t){var a,n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.contact,n="\uD83D\uDC8C Someone requested a demo of Axolo from the request demo page\nFirst name: ".concat(a.firstName,", last name: ").concat(a.lastName,", ").concat(a.email,", company: ").concat(a.companyName,", size: ").concat(a.teamSize,", role: ").concat(a.role,", code hosting tool: ").concat(v,", option: ").concat(a.helpOption,". Else text: ").concat(b),e.prev=2,e.next=5,o().get("".concat(i.n,"organizations/handleRequestDemoHook?text=").concat(n,"&email=").concat(h));case 5:e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(2),console.log(e.t0),e.abrupt("return","Error");case 11:return e.abrupt("return",200);case 12:case"end":return e.stop()}},e,null,[[2,7]])}))).apply(this,arguments)},w=function(e){return N.apply(this,arguments)},t.preventDefault(),m=document.getElementById("first-name").value,p=document.getElementById("last-name").value,h=document.getElementById("email").value,x=document.getElementById("company").value,y=l[0].type,f=l[1].type,g=l[2].type,v=l[3].type,b=l[4],!((j=document.getElementById("website").value)&&j.length>0)){e.next=15;break}return e.abrupt("return");case 15:if(!(!d||parseInt(d)!==u)){e.next=19;break}return a(!0),r(!1),e.abrupt("return");case 19:if((null==h?void 0:h.length)>0&&(null==m?void 0:m.length)>0&&(null==p?void 0:p.length)>0&&(null==x?void 0:x.length)>0&&(null==y?void 0:y.length)>0&&(null==f?void 0:f.length)>0&&(null==g?void 0:g.length)>0){e.next=23;break}return a(!0),r(!1),e.abrupt("return");case 23:return k={firstName:m,lastName:p,email:h,companyName:x,teamSize:y,role:f,helpOption:g},e.next=26,w({contact:k});case 26:200===e.sent?(a(!1),r(!0),c(!1)):c(!0);case 28:case"end":return e.stop()}},e)}))).apply(this,arguments)}},526:function(e,t,a){a.d(t,{Z:function(){return S}});var n=a(7294),r=a(5590),s=a(5600),l=a(4742),o=a(983),i=a(5893);function c(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).join(" ")}function d(e){var t=e.options,a=e.placeholder,d=e.selected,u=e.setSelected,m=e.id;e.hasSubmitted;
1var p=(0,n.useState)(!1),h=p[0],x=p[1],y=h?d.type:a;return(0,i.jsx)(r.R,{value:d,onChange:function(e){x(!0),u(e)},children:function(e){var a=e.open;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:" relative",children:[(0,i.jsxs)(r.R.Button,{className:"relative block w-full cursor-default rounded-md border-2  border-gray-50 bg-white py-2 px-4 text-left placeholder-gray-500 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 ",children:[(0,i.jsx)("span",{id:m,value:y,className:c("block truncate",!h&&"text-gray-500"),children:y}),(0,i.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,i.jsx)(l.Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),(0,i.jsx)(s.u,{show:a,as:n.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)(r.R.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:t.map(function(e){return(0,i.jsx)(r.R.Option,{className:function(e){return c(e.active?"bg-primary text-white":"text-gray-900","relative cursor-default select-none py-2 pl-3 pr-9")},value:e,children:function(t){var a=t.selected,n=t.active;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:c(a?"font-semibold":"font-normal","block truncate"),children:e.type}),a?(0,i.jsx)("span",{className:c(n?"text-white":"text-primary","absolute inset-y-0 right-0 flex items-center pr-4"),children:(0,i.jsx)(o.Z,{className:"h-5 w-5","aria-hidden":"true"})}):null]})}},e.id)})})})]})})}})}var u=a(9450);function m(e){var t=e.show,a=e.setShow,r=e.title,l=e.text,o=e.icon;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex items-end px-4 py-6 sm:items-start sm:p-6",children:(0,i.jsx)("div",{className:"flex w-full flex-col items-center space-y-4 sm:items-end",children:(0,i.jsx)(s.u,{show:t,as:n.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:(0,i.jsx)("div",{className:"p-4",children:(0,i.jsxs)("div",{className:"flex items-start",children:[(0,i.jsx)("div",{className:"flex-shrink-0",children:o}),(0,i.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,i.jsx)("p",{className:"text-sm font-medium text-gray-900",children:r}),(0,i.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:l})]}),(0,i.jsx)("div",{className:"ml-4 flex flex-shrink-0",children:(0,i.jsxs)("button",{type:"button",className:"inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){a(!1)},children:[(0,i.jsx)("span",{className:"sr-only",children:"Close"}),(0,i.jsx)(u.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})]})})})})})})})}var p=a(1311);function h(){return(0,i.jsx)("div",{className:"self-center bg-white py-16 px-4 sm:px-6 lg:col-span-2 lg:py-20 lg:px-2 xl:pl-12",children:(0,i.jsx)("div",{className:"mx-auto max-w-lg rounded-lg border border-gray-100 px-6 py-4 shadow-lg lg:max-w-none",children:(0,i.jsxs)("div",{className:"flex-col justify-center  pb-3 text-center",children:[(0,i.jsx)("h2",{className:"text-xl font-bold",children:"Thank you"}),(0,i.jsx)("p",{className:"pt-3 lg:text-left",children:"Someone from the team will get back to you shortly."})]})})})}var x=a(1163);function y(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).join(" ")}function f(e){var t=e.options,a=e.placeholder,c=e.selected,d=e.setSelected,u=e.id;e.hasSubmitted;var m=(0,n.useState)(!1),p=m[0],h=m[1],x=p?c.type:a;return(0,i.jsx)(r.R,{value:c,onChange:function(e){h(!0),d(e)},children:function(e){var a=e.open;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:" relative",children:[(0,i.jsxs)(r.R.Button,{className:"relative block w-full cursor-default rounded-md border-2  border-gray-50 bg-white py-2 px-4 text-left placeholder-gray-500 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 ",children:[(0,i.jsx)("span",{id:u,value:x,className:y("block truncate",!p&&"text-gray-500"),children:x}),(0,i.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,i.jsx)(l.Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),(0,i.jsx)(s.u,{show:a,as:n.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)(r.R.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:t.map(function(e){return(0,i.jsx)(r.R.Option,{className:function(e){return y(e.active?"bg-primary text-white":"text-gray-900","relative cursor-default select-none py-2 pl-3 pr-9")},value:e,children:function(t){var a=t.selected,n=t.active;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:y(a?"font-semibold":"font-normal","block truncate"),children:e.type}),a?(0,i.jsx)("span",{className:y(n?"text-white":"text-primary","absolute inset-y-0 right-0 flex items-center pr-4"),children:(0,i.jsx)(o.Z,{className:"h-5 w-5","aria-hidden":"true"})}):null]})}},e.id)})})})]})})}})}var g=a(9176).submitRequestDemo,v=a(8886),b=v.optionsHelp,j=v.optionsRole,w=v.optionsTeamSize,N=v.codeHostingToolOptions;function k(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).join(" ")}
1function S(){var e,t=(0,n.useState)(b[0]),a=t[0],r=t[1],s=(0,n.useState)(w[0]),l=s[0],o=s[1],c=(0,n.useState)(j[0]),u=c[0],y=c[1],v=(0,n.useState)(N[0]),S=v[0],C=v[1],F=(0,n.useState)(""),R=F[0],E=F[1],q=(0,n.useState)(!1),z=q[0],O=q[1],B=(0,n.useState)(!1),T=B[0],Z=B[1],I=(0,n.useState)(!1),A=I[0],D=I[1],P=(0,n.useState)(function(){return Math.floor(10*Math.random())+1})[0],H=(0,n.useState)(function(){return Math.floor(10*Math.random())+1})[0],M=(0,n.useState)(""),_=M[0],L=M[1],W=P+H,Y=(0,i.jsx)(p.Z,{className:"h-6 w-6 text-yellow-400","aria-hidden":"true"}),G=(0,i.jsx)(p.Z,{className:"h-6 w-6 text-red-400","aria-hidden":"true"}),V=(0,i.jsx)(p.Z,{className:"h-6 w-6 text-green-400","aria-hidden":"true"}),J=(0,x.useRouter)().asPath,K=null==J||null===(e=J.split("email="))||void 0===e||null===(e=e[1])||void 0===e?void 0:e.replace("%40","@");return z?(0,i.jsx)(h,{}):(0,i.jsx)("div",{className:"bg-white py-16 px-4 sm:px-6 lg:col-span-2 lg:py-20 lg:px-2 xl:pl-12",children:(0,i.jsxs)("div",{className:"mx-auto max-w-lg rounded-lg border border-gray-100 px-6 py-4 shadow-lg lg:max-w-none",children:[(0,i.jsx)("div",{className:"flex justify-center pb-3",children:(0,i.jsx)("h3",{className:"text-xl font-bold",children:"Request a demo"})}),(0,i.jsxs)("form",{action:"#",method:"POST",children:[(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"first-name",className:"sr-only",children:"First name"}),(0,i.jsx)("input",{type:"text",name:"first-name",id:"first-name",autoComplete:"name",className:k("block w-full rounded-md border-2 border-gray-50 py-3   px-4 placeholder-gray-500 shadow-sm"),placeholder:"First name *"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"last-name",className:"sr-only",children:"Last name"}),(0,i.jsx)("input",{type:"text",name:"last-name",id:"last-name",autoComplete:"name",className:k("block w-full rounded-md border-2 border-gray-50 py-3   px-4 placeholder-gray-500 shadow-sm"),placeholder:"Last name *"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"email",className:"sr-only",children:"Professional email"}),(0,i.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"email",defaultValue:K,className:k("block w-full rounded-md border-2 border-gray-50 py-3   px-4 placeholder-gray-500 shadow-sm"),placeholder:"Email *"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"company",className:"sr-only",children:"Company name"}),(0,i.jsx)("input",{type:"text",name:"company",id:"company",autoComplete:"tel",className:"block w-full rounded-md border-2 border-gray-50 py-3  px-4 placeholder-gray-500 shadow-sm",placeholder:"Company name *"})]}),(0,i.jsx)("div",{className:"col-span-1",children:(0,i.jsx)(d,{options:w,placeholder:"Company size *",id:"team-size",selected:l,setSelected:o})}),(0,i.jsx)("div",{className:"col-span-1",children:(0,i.jsx)(f,{options:N,placeholder:"Code hosting tool *",id:"code-hosting-tool",selected:S,setSelected:C})}),(0,i.jsx)("div",{className:"col-span-2",children:(0,i.jsx)(d,{options:j,placeholder:"Your role *",id:"role",selected:u,setSelected:y})}),(0,i.jsx)("div",{className:"col-span-2",children:(0,i.jsx)(d,{options:b,placeholder:"Your request *",id:"help-option",selected:a,setSelected:r})}),(0,i.jsxs)("div",{className:"col-span-2",children:[(0,i.jsx)("label",{htmlFor:"company",className:"sr-only",children:"Anything else you want to share?"}),(0,i.jsx)("input",{type:"text",name:"else",id:"else",autoComplete:"tel",className:"block w-full rounded-md border-2 border-gray-50 py-3  px-4 placeholder-gray-500 shadow-sm",placeholder:"Anything else you want to share?",onChange:function(e){return E(e.target.value)}})]}),(0,i.jsxs)("div",{className:"hidden",children:[(0,i.jsx)("label",{htmlFor:"website",className:"sr-only",children:"Website"}),(0,i.jsx)("input",{type:"text",name:"website",id:"website",tabIndex:"-1",autoComplete:"off",className:"block w-full rounded-md border-2 border-gray-50 py-3 px-4 placeholder-gray-500 shadow-sm"})]}),(0,i.jsxs)("div",{className:"col-span-2",children:[(0,i.jsxs)("label",{htmlFor:"captcha",className:"block text-sm font-medium text-gray-700 mb-2",children:["Security check: What is ",P," + ",H,"? *"]}),(0,i.jsx)("input",{type:"number",name:"captcha",id:"captcha",value:_,onCh
1ange:function(e){return L(e.target.value)},className:"block w-full rounded-md border-2 border-gray-50 py-3 px-4 placeholder-gray-500 shadow-sm",placeholder:"Enter the answer",required:!0})]}),(0,i.jsx)("button",{type:"submit",onClick:function(e){return g(e,Z,O,[l,u,a,S,R],D,_,W)},className:"col-span-2 inline-flex justify-center rounded-md border border-transparent bg-primary py-3 px-6 text-base font-medium text-white shadow-sm hover:bg-hoverPrimary focus:outline-none focus:ring-2 focus:ring-offset-2 ",children:"Submit"}),(0,i.jsx)(m,{show:T,setShow:Z,icon:Y,title:"Missing information",text:"Please provide all required information."}),(0,i.jsx)(m,{show:z,setShow:O,icon:V,title:"You have requested a demo",text:"We will gat back to you shortly."}),(0,i.jsx)(m,{show:A,setShow:D,icon:G,title:"Error",text:"Please try again or contact support."})]}),(0,i.jsx)("div",{})]})]})})}},8886:function(e,t,a){a.r(t),a.d(t,{codeHostingToolOptions:function(){return n},optionsHelp:function(){return l},optionsRole:function(){return s},optionsTeamSize:function(){return r}});var n=[{id:1,type:"GitHub"},{id:2,type:"GitLab"},{id:3,type:"Bitbucket"},{id:4,type:"Azure DevOps"},{id:5,type:"Other"}],r=[{id:1,type:"1-49"},{id:2,type:"50-249"},{id:3,type:"249-500"},{id:4,type:"500-999"},{id:5,type:"+1000"}],s=[{id:1,type:"Engineering Manager"},{id:4,type:"Developer"},{id:2,type:"VP of Engineering"},{id:3,type:"CTO"}],l=[{id:1,type:"I'm interested in buying Axolo for my organization."},{id:2,type:"I need help with compliance and/or security questions."},{id:3,type:"I have a question about Axolo"},{id:4,type:"Something else"}]}}]);

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.