PageSourceSearch

https://xn--24-glcu3bgn9f.xn--p1ai/_nuxt/DnCuOo2u.js

js xn--24-glcu3bgn9f.xn--p1ai collected 2026-09-24 14:07:49 UTC 3,457 bytes, 1 lines download raw bytes

1import{b as _}from"./GF3J5o6p.js";import{o as k,$ as V,a5 as C,a7 as I,E as z,b as E,g as B}from"./C0UcZJ4B.js";import{bj as y,a_ as w,b0 as D,b9 as N,bo as f,bq as n,bt as r,bz as c,bp as u,bA as p,bx as m,b6 as l,bi as x}from"./CJrJ7XcP.js";import"./j6JhaW0_.js";try{(function(){var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="da845fb9-bbda-40ca-af78-a84b8cf32303",s._sentryDebugIdIdentifier="sentry-dbid-da845fb9-bbda-40ca-af78-a84b8cf32303")})()}catch{}const $={class:"flex h-full w-full flex-col gap-2 pt-8"},j={class:"flex min-h-8 items-center justify-between gap-2 pl-1.5"},F={class:"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg"},M={class:"flex h-full min-h-[calc(1rem*4)] flex-col"},T={key:1,class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},q=y({__name:"MarkdownInput",props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue"],setup(s,{emit:o}){const b=o,t=w("preview"),i=w(null);D(t,a=>{a==="edit"&&N(()=>{var e;(e=i.value)==null||e.focus()})});const v=()=>{requestAnimationFrame(()=>{t.value="preview"})};return(a,e)=>(n(),f("div",$,[r("div",j,[e[5]||(e[5]=r("h3",{class:"font-bold"},"Description",-1)),t.value==="preview"?(n(),c(l(V),{key:0,class:"text-c-2 hover:text-c-1 flex items-center gap-2",size:"sm",type:"button",variant:"outlined",onClick:e[0]||(e[0]=d=>t.value="edit")},{default:p(()=>[m(l(k),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[4]||(e[4]=r("span",null,"Edit",-1))]),_:1,__:[4]})):u("",!0)]),r("div",F,[r("div",M,[t.value==="preview"?(n(),f(x,{key:0},[a.modelValue&&a.modelValue.trim().length?(n(),f(x,{key:0},[a.modelValue?(n(),c(l(C),{key:0,class:"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",value:a.modelValue,withImages:"",onDblclick:e[1]||(e[1]=d=>t.value="edit")},null,8,["value"])):u("",!0),e[6]||(e[6]=r("div",{class:"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden"},null,-1))],64)):(n(),f("div",T,[m(l(V),{class:"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",size:"sm",variant:"ghost",onClick:e[2]||(e[2]=d=>t.value="edit")},{default:p(()=>[m(l(k),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[7]||(e[7]=r("span",null,"Write a description",-1))]),_:1,__:[7]})]))],64)):u("",!0),t.value==="edit"?(n(),c(I,{key:1,ref_key:"codeInputRef",ref:i,class:"h-full flex-1 border px-0.5 py-0",envVariables:a.envVariables,environment:a.environment,modelValue:a.modelValue,workspace:a.workspace,onBlur:v,"onUpdate:modelValue":e[3]||(e[3]=d=>b("update:modelValue",d))},null,8,["envVariables","environment","modelValue","workspace"])):u("",!0)])])]))}}),A=z(q,[["__scopeId","data-v-5997a667"]]),R=y({__name:"CollectionOverview",setup(s){const{activeCollection:o,activeEnvironment:b,activeEnvVariables:t,activeWorkspace:i}=E(),{collectionMutators:v}=B(),a=e=>{o.value&&v.edit(o.value.uid,"info.description",e)};return(e,d)=>(n(),c(_,null,{default:p(()=>{var g,h;return[l(b)&&l(i)?(n(),c(A,{key:0,envVariables:l(t),environment:l(b),modelValue:((h=(g=l(o))==null?void 0:g.info)==null?void 0:h.description)??"",workspace:l(i),"onUpdate:modelValue":a},null,8,["envVariables","environment","modelValue","workspace"])):u("",!0)]}),_:1}))}});export{R 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.