PageSourceSearch

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

js enterprisedna.co collected 2026-09-24 19:36:17 UTC 4,123 bytes, 1 lines download raw bytes

1import{a as I}from"./DOyF7RZx.js";import{d as E,v as H,b as T,c as p,aQ as W,aP as Y,aq as X,C as b,D as m,V as n,P as s,F as a,Z,Y as g,E as f,M as B,N as C,h as t,a6 as G,S as J,O as K,X as P,Q as ee}from"./BasuKg0Z.js";import{b1 as te,b4 as k,p as oe,c as se,g as ae,am as re,o as ne,aH as ie}from"./DdjJ_Nrq.js";import{_ as le}from"./BYePjdKQ.js";import{_ as ce}from"./D7VyokAl.js";import{u as pe,a as me}from"./BbdHyzsU.js";import"./C3S843hV.js";import"./yYdHygWG.js";import"./lHZi3ZjN.js";const ue={class:"flex justify-center"},de={class:"flex gap-4 px-4 mb-8 lg:min-h-[800px] w-full mx-auto max-w-7xl mt-4 lg:mt-8"},_e={class:"hidden lg:block lg:w-1/4 xl:w-1/5 py-2"},ge={class:"grid grid-cols-1 gap-1 mt-7"},fe=["href","onClick"],ye={class:"py-2"},xe={class:"flex-1 mb-6"},he={class:"flex justify-between lg:justify-end flex-wrap items-center mb-4"},ve={class:"grid grid-cols-1 gap-4 lg:gap-2"},we={class:"min-h-36 grid place-content-center"},Fe=E({__name:"prompts",async setup(be){let u,y;const V=H(),x=T(),$=p(()=>x.query?.category?`?category=${x.query.category}`:""),S=p(()=>({cursor:"",category:"",search:""})),d=te(),D=p(()=>{const e=((r,l)=>r.reduce(l,0))(d.categories,(r,l)=>r+l?.prompts_count);return[{id:"",title:"All Categories",prompts_count:e,prompts_count_formated:k(e)},...W(d.categories,r=>({...r,prompts_count_formated:k(r.prompts_count)}))]}),{values:c,setFieldValue:h}=oe({formOptions:{initialValues:S.value},onLoadingData:()=>w(),onBeforeSetQueryItems:(i,e)=>{if(i.cursor===e.cursor)return{cursor:""}}}),{data:v,status:z,error:A,execute:w}=([u,y]=Y(async()=>X("prompter-central-index-",async()=>(await V.prompter.index({per_page:10,direction:"desc",...c}))._data,{default:()=>[],server:!0})),u=await u,y(),u),F=async i=>{await d.onDeleteItem(i,w)},_=p(()=>v.value?.data||[]),N=p(()=>v.value.meta);return pe(),(i,e)=>{const r=I,l=Z,Q=se,R=ae,U=re,j=ne,L=le,M=ce,O=ie,q=me;return m(),b(q,null,{default:n(()=>[s(Q,{id:"latest-prompts",background:"dark",hero:""},{default:n(()=>[s(r,{title:"Popular Prompts from ",subtitle:"Community",description:i.info,"text-color":"text-white",inline:"","description-classes":"!text-base"},null,8,["description"]),a("div",ue,[s(l,{to:"/prompt-central/app",size:"lg",color:"yellow"},{default:n(()=>[...e[3]||(e[3]=[g(" Your Prompts App ",-1)])]),_:1})])]),_:1}),a("div",de,[a("div",_e,[s(R,{size:24,line:"",position:"left"},{default:n(()=>[e[4]||(e[4]=g(" Categories ",-1)),s(l,{icon:"arrow_forward_ios",size:"icon-sm",class:"ml-auto",variant:"text",color:"pink",to:"/prompt-central/categories"})]),_:1}),a("div",ge,[(m(!0),f(B,null,C(t(D),o=>(m(),f("a",{key:o?.id,href:"#-category-"+o?.id,class:J([[t(c).category==o.id?"bg-primary/10":"bg-white hover:bg-primary/10"],"pl-4 pr-2 rounded-xl flex items-center justify-between border"]),onClick:G(Be=>t(h)("category",o.id),["prevent"])},[a("span",ye,P(o.title),1),K(s(U,{size:"xxs",theme:"pink",class:""},{default:n(()=>[g(P(o?.prompts_count_formated),1)]),_:2},1536),[[ee,o?.prompts_count>0]])],10,fe))),128))])]),a("div",xe,[a("div",he,[s(j,{modelValue:t(c).search,"onUpdate:modelValue":e[0]||(e[0]=o=>t(c).search=o),icon:"search",size:"sm",clear:"","custom-input-classes":"bg-white",placeholder:"Start typing...",class:"lg:max-w-sm",name:"search"},null,8,["modelValue"]),s(L,{modelValue:t(c).category,"onUpdate:modelValue":e[1]||(e[1]=o=>t(c).category=o),name:"category",placeholder:"Select a category",searchable:"","label-prop":"title","value-prop":"id","sync-v-model":"",class:"lg:hidden lg:max-w-sm",options:t(d).categories},null,8,["modelValue","options"])]),s(O,{"static-slot":"",navigation:t(N),"show-not-found":t(_)&&!t(_).length,status:t(z),items:t(_),errors:t(A),onSetPage:e[2]||(e[2]=o=>t(h)("cursor",o))},{empty:n(()=>[a("div",we,[s(l,{icon:"add",color:"primary",to:"/prompt-central/app/start"+t($)},{default:n(()=>[...e[5]||(e[5]=[g(" Add Prompt ",-1)])]),_:1},8,["to"])])]),default:n(()=>[a("div",ve,[(m(!0),f(B,null,C(t(_),o=>(m(),b(M,{key:o.id,card:o,onOnDelete:F},null,8,["card"]))),128))])]),_:1},8,["navigation","show-not-found","status","items","errors"])])])]),_:1})}}});
1export{Fe 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.