PageSourceSearch

https://www.graana.com/_next/static/chunks/pages/aira-5a14787fdf064ccb.js

js graana.com collected 2026-09-24 09:15:53 UTC 2,890 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7717],{14996:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/aira",function(){return t(84569)}])},84569:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return c}});var r=t(85893),o=t(67294),s=t(38993),n=t.n(s);const l=e=>{let{onAuthSuccess:a}=e;const[t,s]=(0,o.useState)(""),[l,i]=(0,o.useState)(""),[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(!1),[p,m]=(0,o.useState)("");return(0,r.jsxs)("div",{className:n().authWrapper,children:[(0,r.jsx)("img",{className:n().logoImage,src:"/logo.png",alt:"Graana Logo"}),(0,r.jsxs)("p",{className:n().welcomeText,children:["Welcome to ",(0,r.jsx)("strong",{children:"Graana AI."}),(0,r.jsx)("br",{}),"Fill the form below to access the AI Advisor."]}),(0,r.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),h(!0),m("");const r=new URLSearchParams;r.append("entry.586896438",t),r.append("entry.1909776194",l),r.append("entry.1993772053",c);try{await fetch("https://docs.google.com/forms/d/e/1FAIpQLSdpie0FBSVu3m0VojebHMxX_pwZdgakfK1HL-8CJWAPkoQb6w/formResponse",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},mode:"no-cors",body:r.toString()}),localStorage.setItem("auth-token-aira","user_is_authenticated"),a()}catch(o){localStorage.setItem("auth-token-aira","user_is_authenticated"),a()}finally{h(!1)}},className:n().authForm,children:[(0,r.jsx)("input",{type:"text",value:t,onChange:e=>s(e.target.value),placeholder:"Name*",required:!0,disabled:d}),(0,r.jsx)("input",{type:"tel",value:l,onChange:e=>i(e.target.value),placeholder:"Number*",required:!0,disabled:d}),(0,r.jsx)("input",{type:"email",value:c,onChange:e=>u(e.target.value),placeholder:"Email*",required:!0,disabled:d}),(0,r.jsx)("button",{type:"submit",disabled:d,children:d?"Submitting...":"Submit!"}),p&&(0,r.jsx)("p",{className:n().errorMessage,children:p})]})]})},i=()=>(0,r.jsx)("div",{style:{width:"100%",height:"100vh",overflow:"hidden"},children:(0,r.jsx)("iframe",{style:{width:"100%",height:"90%",border:"0",display:"block"},src:"https://graana.marketlytics.co.uk/",title:"Embedded Graana Application",allow:"microphone; camera; autoplay; clipboard-read; clipboard-write; fullscreen; display-capture",allowFullScreen:!0,loading:"eager"})});function c(){const[e,a]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{"user_is_authenticated"===localStorage.getItem("auth-token-aira")&&a(!0)}),[]),(0,r.jsx)("div",{className:e?"":n().consolePage,children:e?(0,r.jsx)(i,{}):(0,r.jsx)(l,{onAuthSuccess:()=>a(!0)})})}},38993:function(e){e.exports={consolePage:"aira_consolePage__M1OYx",authWrapper:"aira_authWrapper__bCfFy",logoImage:"aira_logoImage__CCTMt",welcomeText:"aira_welcomeText__ONeI6",authForm:"aira_authForm__6aWXu",errorMessage:"aira_errorMessage__OGYTK"}}},function(e){e.O(0,[9774,2888,179],(function(){return a=14996,e(e.s=a);var a}));var a=e.O();_N_E=a}]);

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.