PageSourceSearch

https://enterprisedna.co/_nuxt/C9Q8cYHF.js

js enterprisedna.co collected 2026-09-24 19:36:00 UTC 2,325 bytes, 1 lines download raw bytes

1import{p as k,q as A,o as $,aH as L}from"./DdjJ_Nrq.js";import{_ as N}from"./zAXZzY13.js";import{_ as O}from"./DN9P9J_e.js";import{d as S,v as z,aP as M,aq as U,c as _,E as f,D as c,F as l,P as o,S as q,h as e,V as m,M as E,N as G,C as I,Z as Q,Y as R}from"./BasuKg0Z.js";import"./_L0Hp-FU.js";const T={class:""},j={class:"flex justify-between items-center mb-4"},H={class:""},W={class:"grid grid-cols-1 lg:grid-cols-2 gap-4 lg:gap-2"},Y={class:"min-h-36 grid place-content-center"},ae=S({__name:"index",async setup(Z){let n,u;const g=z(),h=[{label:"My Chains",value:"mine"},{label:"All",value:"authored"}],y={cursor:"",search:"",filter:"mine",per_page:10},{values:a,setFieldValue:p,setValues:J}=k({formOptions:{initialValues:y},onLoadingData:()=>x(),onBeforeSetQueryItems:(i,t)=>{if(i.cursor===t.cursor)return{cursor:""}}}),{data:d,status:v,error:V,execute:x}=([n,u]=M(async()=>U("prompter-groups",async()=>(await g.prompter.groups.index({type:"chain",...a}))._data,{default:()=>[],server:!1})),n=await n,u(),n),r=_(()=>d.value?.data||[]),B=_(()=>d.value.meta);return(i,t)=>{const w=A,b=$,C=N,P=O,D=Q,F=L;return c(),f("div",T,[l("div",j,[l("div",H,[o(w,{modelValue:e(a).filter,"onUpdate:modelValue":[t[0]||(t[0]=s=>e(a).filter=s),t[1]||(t[1]=s=>e(p)("filter",s))],tag:"button",tabs:h,"border-bottom":!1,rounded:"","active-color":"primary",class:q([" text-sm","text-secondary/50"])},null,8,["modelValue"])]),o(b,{modelValue:e(a).search,"onUpdate:modelValue":t[2]||(t[2]=s=>e(a).search=s),icon:"search",size:"sm",clear:"","custom-input-classes":"bg-white",placeholder:"Start typing...",class:"lg:max-w-sm",name:"search"},null,8,["modelValue"])]),o(C,{type:"chain",class:"my-4"}),o(F,{"static-slot":"",navigation:e(B),"show-not-found":e(r)&&!e(r).length,status:e(v),items:e(r),errors:e(V),"page-items":"","page-key":"per_page",onSetPage:t[3]||(t[3]=s=>e(p)("cursor",s))},{empty:m(()=>[l("div",Y,[o(D,{icon:"add",color:"primary",to:"/prompt-central/app/chains/start"},{default:m(()=>[...t[4]||(t[4]=[R(" Add Chain ",-1)])]),_:1})])]),default:m(()=>[l("div",W,[(c(!0),f(E,null,G(e(r),s=>(c(),I(P,{key:s.id,group:s,chain:"","show-mine":e(a).filter!=="mine",onOnDelete:i.onDelete},null,8,["group","show-mine","onOnDelete"]))),128))])]),_:1},8,["navigation","show-not-found","status","items","errors"])])}}});export{ae 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.