1import{o as e,s as t}from"./CQtAXI_i.js";import{Ht as n,g as r,tt as i,vn as a}from"./Ib1jYPSS.js";import{r as o}from"./B5tEj6Uj.js";import{t as s}from"./Dwh1tnUL.js";import{a as c}from"./5CncodWL.js";import{m as l}from"./B5MLGF2n.js";var u=()=>{let n=t().public,r=e(),i=a(!!n.i18n);if(!i.value){let e=r.$locale||`en`,t=r.$localeMessages||{};return{isEnabled:i,locale:a(e),locales:[],localePath:e=>e,switchLocalePath:()=>{},t:e=>e.split(`.`).reduce((e,t)=>e?.[t],t)}}let o=r.$i18n?.locale||a(`en`),s=r.$i18n?.t||(e=>e);return{isEnabled:i,locale:o,locales:n.docus?.filteredLocales||[],t:s,localePath:r.$localePath||(e=>e),switchLocalePath:r.$switchLocalePath||(()=>``)}};function d(e){return!e||Array.isArray(e)&&e.length===0?[]:typeof e[0]==`string`?[{category:`Questions`,items:e}]:e}var f=c(()=>{let e=t(),c=o(),u=e.public.assistant,f=c.assistant,p=c.docus,m=r(()=>u?.enabled??!1),h=l(`assistant-open`,!1),g=l(`assistant-messages`,[]),_=a(!1),v=a(!1);s(()=>{i(()=>{_.value=h.value}),v.value=document.body.hasAttribute(`data-expand-sidebar`),new MutationObserver(()=>{v.value=document.body.hasAttribute(`data-expand-sidebar`)}).observe(document.body,{attributes:!0,attributeFilter:[`data-expand-sidebar`]})}),n(_,e=>{h.value=e});let y=r(()=>{let t=f?.faqQuestions;if(!t)return[];if(!Array.isArray(t)){let n=t,r=p?.locale||`en`,i=e.public.i18n?.defaultLocale||`en`;return d(n[r]||n[i]||Object.values(n)[0]||[])}return d(t)});function b(e,t=!1){v.value||(t&&(g.value=[]),e&&(g.value=[...g.value,{id:String(Date.now()),role:`user`,parts:[{type:`text`,text:e}]}]),_.value=!0)}function x(){_.value=!1}function S(){v.value||(_.value=!_.value)}return{isEnabled:m,isOpen:_,isStudioExpanded:v,messages:g,faqQuestions:y,open:b,close:x,toggle:S}});export{u as n,f as t};
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.