PageSourceSearch

https://aspiria.ai/_next/static/chunks/5171.d19b1410be642cc7.js

js aspiria.ai collected 2026-10-05 14:03:31 UTC 8,361 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5171],{11059:(a,e,s)=>{s.d(e,{A5:()=>o,FH:()=>i,fI:()=>n});var t=s(73645),r=s(91040);let i=r.A.create({baseURL:t.JR}),o=r.A.create({baseURL:t.zE}),n=r.A.create({baseURL:t.pY});i.interceptors.response.use(a=>a&&a.data&&"object"==typeof a.data&&"data"in a.data&&1===Object.keys(a.data).length?a.data.data:a.data,a=>Promise.reject(a))},13340:(a,e,s)=>{s.d(e,{x:()=>t});let t={wave:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-wave.gif"),search:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-search.gif"),book:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-book.gif"),cap:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-cap.gif"),cup:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-cup.gif"),curious:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-curious.gif"),floating:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-floating.gif"),tree:"".concat("https://edugo-documents.aspiria.ai/aspiria-images/","aspy/aspy-tree.gif")}},61118:(a,e,s)=>{s.d(e,{$N:()=>p,RY:()=>i,S$:()=>r,Ty:()=>n,XW:()=>d,er:()=>o,pG:()=>l});var t=s(11059);let r=async a=>await t.FH.post("create/",a),i=async function(a,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"json";return await t.FH.post("validate/".concat(a,"/"),e,{responseType:s})},o=async a=>{var e,s;let r=await t.A5.get("/page-contents",{params:{filters:{slug:{$eq:a}},populate:"*"}});return null==r||null==(s=r.data)||null==(e=s.data)?void 0:e[0]},n=async a=>await t.FH.post("resend/",a),l=async a=>{let e=await t.fI.post("university/chat/",a);return(null==e?void 0:e.data)||[]},p=async a=>{var e,s;return null==(s=(await t.A5.get("/preparation-hubs",{params:{filters:{slug:{$eq:a}},populate:{faqs:!0,study_comparison:{populate:{tabs:{populate:{rows:{populate:["values"]}}}}},seo_metadata:!0,timings:{populate:["timings"]}}}})).data)||null==(e=s.data)?void 0:e[0]},d=async a=>{var e,s;let r=await t.A5.get("/lead-forms",{params:{filters:{slug:{$eq:a}},populate:"*"}});return null==r||null==(s=r.data)||null==(e=s.data)?void 0:e[0]}},73645:(a,e,s)=>{s.d(e,{JR:()=>r,pY:()=>o,sT:()=>t,zE:()=>i});let t="https://edugo-documents.aspiria.ai/",r="https://edugo-api.aspiria.ai/aspiria/",i="https://strapi.aspiria.ai/api/",o="https://edugo-api.aspiria.ai/"},76777:(a,e,s)=>{s.d(e,{G:()=>r});var t=s(12312);let r=()=>(0,t.U)("(width >= 64rem)")},82806:(a,e,s)=>{s.d(e,{cn:()=>i});var t=s(69241),r=s(29573);function i(){for(var a=arguments.length,e=Array(a),s=0;s<a;s++)e[s]=arguments[s];return(0,r.QP)((0,t.$)(e))}},95171:(a,e,s)=>{s.r(e),s.d(e,{default:()=>R});var t=s(37876),r=s(13340),i=s(76777),o=s(61118),n=s(82806),l=s(3079),p=s(30958),d=s(85845),u=s(31408),c=s(68755),m=s(11210),g=s(91932),h=s(2888),f=s(37037),x=s(40097),y=s(56557),b=s.n(y),j=s(18049),v=s(54587),w=s.n(v),N=s(48230),A=s.n(N),_=s(7847),k=s(14232),S=s(32800),E=s(29720);let I=S.Ik({message:S.Yj().trim().min(1,"Enter Something!").refine(a=>!/[<>|&]/.test(a),"Special characters like <, >, |, & are not allowed!")}),z=a=>{let{from:e,className:s,response:i,timestamp:o,...p}=a;return(0,t.jsxs)("div",{className:(0,n.cn)("grid group items-end gap-2 data-[from=user]:grid-cols-[auto_38px] data-[from=bot]:grid-cols-[38_auto] data-[from=user]:ps-6 data-[from=bot]:pe-6",s),"data-from":e,...p,children:["bot"===e?(0,t.jsx)(w(),{src:r.x.wave,alt:"",className:"group-data-[from=user]:col-start-2",width:38,height:38,priority:!1}):(0,t.jsx)(l.e,{alt:"",className:"group-data-[from=user]:col-start-2"}),(0,t.jsxs)("div",{className:"group-data-[from=user]:col-start-1 group-data-[from=user]:row-start-1",children:[(0,t.jsx)("p",{className:"text-[10px] text-muted-foreground text-left mb-0.5 group-data-[from=user]:text-right",children:o}),(0,t.jsx)("div",{className:"group-data-[from=user]:bg-gray-50 group-data-[from=user]:border group-data-[from=user]:border-gray-100 group-data-[from=bot]:bg-[#ECE5FE] p-2 rounded-xl",children:"bot"===e?(0,t.jsx)("div",{className:"prose",children:(0,t.jsx)(E.oz,{components:{p:a=>{let{...e}=a;return(0,t.jsx)("p",{className:"mb-4 last:mb-0",...e})}},children:i})}):(0,t.jsx)("p",{className:"text-sm",children:i})})]})]})};function R(){let[a,e]=(0,_.ZA)("aspyBot",{parse:a=>"true"===a,defaultValue:!1}),[s,{open:n,close:l}]=(0,h.j)(!1),y=(0,i.G)(),[v,N]=(0,k.useState)(null),[S,E]=(0,k.useState)([]),R=(0,k.useRef)(null),C=(0,k.useRef)(null),F=(0,g.m)({initialValues:{message:""},validate:(0,j.s)(I)}),H=(0,x.n)({mutationFn:a=>(0,o.pG)({message:a,session_id:v}),onSuccess:a=>{E(e=>
1[...e,{from:"bot",response:(null==a?void 0:a.reply)||"Sorry, I didn't understand that.",timestamp:b()(new Date).format("hh:mm A")}]),setTimeout(()=>{var a,e;null==(a=C.current)||a.focus(),null==(e=R.current)||e.scrollIntoView({behavior:"smooth"})},10)}});return(0,k.useEffect)(()=>{let a="-99990013000".replace(/[018]/g,a=>(Number(a)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(a)/4).toString(16));sessionStorage.setItem("session_id",a),N(a),E([{from:"bot",response:"Hello there! I'm Aspy - your Wise Owl guiding you on your study abroad journey.",timestamp:b()(new Date).format("hh:mm A")}])},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(p.N,{className:"fixed right-5 lg:right-10 bottom-5 lg:bottom-10 inline-flex items-center justify-center gap-2 font-semibold text-primary py-3.5 pl-2 pr-3 rounded-full bg-white/30 backdrop-blur-xl border border-gray-200 hover:border-[#a975fe] transition-all z-50 shadow-sm shadow-primary/10",onClick:()=>{n(),setTimeout(()=>{var a,e;null==(a=C.current)||a.focus(),null==(e=R.current)||e.scrollIntoView({behavior:"smooth"})},10)},children:[(0,t.jsx)(w(),{src:r.x.wave,alt:"Aspy",width:36,height:36,priority:!1,className:"object-contain shrink-0"}),"Ask Aspy!"]}),(0,t.jsxs)(d._.Root,{opened:s||a,onClose:()=>{e(!1),l()},size:y?"md":"80%",position:y?"right":"bottom",children:[(0,t.jsx)(d._.Overlay,{}),(0,t.jsxs)(d._.Content,{classNames:{content:"flex flex-col gap-6"},children:[(0,t.jsxs)(d._.Header,{className:"grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 min-h-auto py-4",children:[(0,t.jsx)(d._.Title,{className:"font-bold text-2xl tracking-tight",children:"Aspy Support"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground/69 col-start-1  ",children:"Here you can ask about your study abroad related questions"}),(0,t.jsx)(d._.CloseButton,{className:"col-start-2 row-start-1"})]}),(0,t.jsxs)(d._.Body,{className:"flex-1 flex flex-col py=6",children:[(0,t.jsx)(w(),{src:r.x.wave,alt:"Aspy",width:108,height:108,className:"object-contain mx-auto mb-4"}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col gap-4",children:[S.map((a,e)=>(0,t.jsx)(z,{from:a.from,response:a.response,timestamp:a.timestamp},e)),H.isPending&&(0,t.jsxs)("div",{className:"grid group items-end gap-2 grid-cols-[38_auto] pe-6",children:[(0,t.jsx)(w(),{src:r.x.wave,alt:"",width:38,height:38,priority:!1}),(0,t.jsxs)("div",{className:"flex items-center gap-1 text-sm text-gray-700 animate-fadeIn bg-[#ECE5FE] p-2 rounded-xl",children:["Searching",(0,t.jsx)("span",{className:"size-[4px] bg-gray-600 rounded-full animate-ping [animation-delay:-0.3s]"}),(0,t.jsx)("span",{className:"size-[4px] bg-gray-600 rounded-full animate-ping [animation-delay:-0.15s]"}),(0,t.jsx)("span",{className:"size-[4px] bg-gray-600 rounded-full animate-ping"})]})]}),(0,t.jsx)("div",{ref:R})]}),(0,t.jsxs)("div",{className:"space-y-4 sticky bottom-0 bg-white py-4",children:[(0,t.jsx)("form",{onSubmit:F.onSubmit(()=>{E(a=>[...a,{from:"user",response:F.values.message,timestamp:b()(new Date).format("hh:mm A")}]),setTimeout(()=>{var a;null==(a=R.current)||a.scrollIntoView({behavior:"smooth"})},10),H.mutate(F.values.message),F.setFieldValue("message","")}),children:(0,t.jsx)(u.k,{ref:C,disabled:H.isPending,size:"lg",variant:"filled",placeholder:"Ask me anything",...F.getInputProps("message"),rightSection:H.isPending?(0,t.jsx)(c.a,{}):(0,t.jsx)(m.M,{size:"lg",component:"button",type:"submit",children:(0,t.jsx)(f.A,{})})})}),(0,t.jsxs)("p",{className:"text-sm text-gray-800 text-center",children:["Need a help? Contact on"," ",(0,t.jsx)(A(),{href:"tel:+919898003814",className:"font-semibold text-primary hover:underline",children:"9898003814"})]})]})]})]})]})]})}}}]);

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.