1import w from"./BfI20xKy.js";import _ from"./DKKdzgsp.js";import{_ as b}from"./Bd_6KxB9.js";import{x as v,v as k,r as y,B,c as C,o as i,a as r,w as d,D as L,k as S,E as M,u as n,j as e,aq as P,K as V,L as $}from"#entry";import j from"./G2C8ZGbX.js";const A={class:"text-default-text-light"},Z={class:"bg-default-bg-light rounded-2xl px-8 py-10 shadow-xl max-w-sm w-full text-center"},q={class:"flex gap-3 mt-6"},D={__name:"PromptBoxWithLimit",props:{nc:{type:Object,required:!0},placeholder:{type:String,default:"Enter your prompt"}},setup(l){const u=v(),o=k(),a=y(null);B(()=>o.promptStatus.running,(s,t)=>{t&&!s&&$(()=>a.value?.focus())});const m=l;async function c(s,t){t?.waitUntil?.(m.nc.runPrompt(s,t))}async function p(){o.showLoginModal=!1,await V({path:"/login",query:{redirect:u.fullPath}})}return(s,t)=>{const f=w,g=_,x=b;return i(),C("div",A,[r(x,null,{default:d(()=>[n(o).promptStatus.running?(i(),L(j,{key:0})):S("",!0),M(e("div",null,[t[5]||(t[5]=e("h2",{class:"text-xs font-semibold text-default-text-lighter uppercase tracking-wide mb-2 ml-4"},"Ask the AI Assistant",-1)),r(f,{ref_key:"promptBoxRef",ref:a,allowImages:!0,onSubmit:c,placeholder:l.placeholder},null,8,["placeholder"]),r(g,{open:n(o).showLoginModal,onClose:t[1]||(t[1]=h=>n(o).showLoginModal=!1)},{default:d(()=>[e("div",Z,[t[2]||(t[2]=e("div",{class:"inline-flex items-center justify-center w-11 h-11 rounded-xl bg-indigo-500/15 mb-4"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-indigo-500",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.
1123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})])],-1)),t[3]||(t[3]=e("h2",{class:"text-lg font-bold text-default-text-dark"},"Log in to continue",-1)),t[4]||(t[4]=e("p",{class:"mt-1.5 text-sm text-default-text-lighter"},"Create a free account to get started.",-1)),e("div",q,[e("button",{onClick:t[0]||(t[0]=h=>n(o).showLoginModal=!1),class:"flex-1 px-4 py-2.5 text-sm font-medium rounded-lg border border-default-bg-lightest text-default-text-light hover:bg-default-bg-lighter transition-colors"}," Cancel "),e("button",{onClick:p,class:"flex-1 px-4 py-2.5 text-sm font-semibold rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white transition-colors"}," Log In ")])])]),_:1},8,["open"])],512),[[P,!n(o).promptStatus.running]])]),_:1})])}}};export{D as _};
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.