PageSourceSearch

https://hob-learning.com/_nuxt/Dq8wJb55.js

js hob-learning.com collected 2026-10-01 14:24:11 UTC 1,653 bytes, 1 lines download raw bytes

1import{e as b,r as o,c as i,o as l,a,b as d,i as p,t as c,H as h,m,I as x,w as g,d as I,l as k,_ as H}from"./BJbJD-jk.js";import{H as v}from"./DSIPt_8t.js";import{H as S}from"./DVQIVJjY.js";import{w as V,b1 as B}from"./D6uQkT-3.js";import"./Bod4C291.js";const C={class:"ai-renderer"},N={class:"ai-renderer__header"},R={class:"ai-renderer__title"},T={class:"ai-renderer__body"},z={key:0,class:"ai-renderer__response"},A={class:"ai-renderer__response-text"},D={key:1,class:"ai-renderer__error"},P=b({__name:"Renderer",props:{data:{}},setup(u){const f=u,s=o(""),r=o(""),n=o(!1),t=o("");async function w(){if(s.value.trim()){n.value=!0,t.value="",r.value="";try{const _=f.data.prompt.replace("{input}",s.value),e=await k.post("/api/web/v1/ai/query",{prompt:_});r.value=e.data?.data?.result??""}catch{t.value="Something went wrong. Please try again."}finally{n.value=!1}}}return(_,e)=>(l(),i("div",C,[a("div",N,[d(v,{icon:p(V),size:"22",class:"ai-renderer__icon"},null,8,["icon"]),a("span",R,c(u.data.title||"AI Practice"),1)]),a("div",T,[h(a("textarea",{"onUpdate:modelValue":e[0]||(e[0]=y=>s.value=y),class:"ai-renderer__input",rows:"4",placeholder:"Type your answer here..."},null,512),[[x,s.value]]),d(S,{class:"bg-purple text-white ai-renderer__submit",loading:n.value,onClick:w},{default:g(()=>[d(v,{icon:p(B),size:"18",class:"mr-1"},null,8,["icon"]),e[1]||(e[1]=I(" Send ",-1))]),_:1},8,["loading"]),r.value?(l(),i("div",z,[e[2]||(e[2]=a("p",{class:"ai-renderer__response-label"},"AI Response",-1)),a("p",A,c(r.value),1)])):m("",!0),t.value?(l(),i("div",D,c(t.value),1)):m("",!0)])]))}}),j=H(P,[["__scopeId","data-v-4c0fff8b"]]);export{j as default};

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.