import{a as pe}from"./o_ViDd08.js";import{_ as me,a as de}from"./DT9tVXrp.js";import{_ as fe}from"./CMmR6UvP.js";import{d as $,c as _e,o as r,w as l,i as c,F as f,ad as m,t as _,n as B,a as he,E as ve,bU as ye,bV as be,c6 as ge,x as ke,_ as xe,bY as Ce,r as p,bz as we,f as a,a9 as t,z as k,u as b,y as x,ao as Ve,A as Ne,P as $e,b$ as Be,b_ as Fe,Z as Se,bn as g}from"./Bxv1kRJt.js";import{_ as Le}from"./oNASYLMO.js";import{_ as Re}from"./CgTa50JK.js";import{_ as Te}from"./iHoXa0Qk.js";import{u as Ue}from"./DQATwAKN.js";import"./DafvsEAY.js";import"./BFPvmdNn.js";import"./FhjXwUmN.js";import"./XWxoP7r2.js";import"./DOnLGG-i.js";import"./CPzEZv5z.js";const qe=$({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(F){return(s,C)=>(r(),_e(he(s.filepath?"button":"span"),{class:B([s.filepath?"hover:underline":"",s.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:s.override||s.filepath},{default:l(()=>[s.override?(r(),c(f,{key:0},[m(_(s.override),1)],64)):(r(),c(f,{key:1},[m(_(s.filepath),1)],64))]),_:1},8,["class","title"]))}}),Ie=Ve(Le),Oe={flex:"~ col"},De={flex:"",p2:"","mb-4":"","gap-2":""},Ae={p2:"",relative:""},Me={flex:"","items-center":"","justify-between":"",pb2:"",pt8:""},je=["value"],Ee={flex:"~ wrap gap2",p2:"",pl4:""},Ge=["onClick"],Pe={flex:"",p2:"","flex-col":""},it=$({__name:"test",setup(F){const s=ve(),C=$e(),w=ye(),S=be(),L=Ue(),R=Se(),T=Fe(),U=Be(),V=ge("changes:selected-file",""),{providers:q,defaultProvider:I,currentProvider:N,sessions:O}=ke(),{getMounts:D,storage:A,changes:M}=xe(),{sources:j,currentSource:E,currentBase:G,currentContentKeys:P}=Ne(),{fetch:z}=Ce(),K=w.value?.nuxt.$config.public,Q=p(),h=p(`query infos {
  currentUser {
    id
    name
    location
    bio
  }
}`),v=p("graphql"),H=["markdown","typescript","graphql","css"],Y={theme:`vs-${we({storageKey:"unpress-color-mode"}).value}`,minimap:{enabled:!0},scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbers:"off"};async function Z(){const{data:n}=await z({query:h.value});console.log(n)}async function J(){}async function W(){N.value.auth.session.created_at=10}g("selectedFile",V);const X=p(!1);g("isFixed",X);const ee=p(!1);g("isOpen",ee);const te=p(!1);g("speedView",te);const oe={client:{client:w,clientRouter:S,tabs:L,UIOptions:R,frameState:T,panelsState:U,nuxtApp:s},settings:{runtimeConfig:C,websiteConfig:K},storage:{storage:A,getMounts:D,changes:M},sources:{sources:j,currentSource:E,currentBase:G,currentContentKeys:P},auth:{providers:q,defaultProvider:I,currentProvider:N,sessions:O},utils:{fileKey:V}};function ne(n,e){console.log(n,e[n]),window[n]=e[n]}async function se(n){await useNuxtDevTools().value.hooks.callHook("host:inspector:click","/",`./client/composables/${n}.ts`,0,0)}return(n,e)=>{const y=pe,ae=me,re=fe,ie=de,le=Ie,ce=qe,ue=Re,d=Te;return r(),c("div",Oe,[a("div",De,[t(y,{onClick:Z},{default:l(()=>e[2]||(e[2]=[m(" Fetch ")])),_:1}),t(y,{onClick:J},{default:l(()=>e[3]||(e[3]=[m(" Test ")])),_:1}),t(y,{onClick:W},{default:l(()=>e[4]||(e[4]=[m(" Test2 ")])),_:1}),t(ae,null,{default:l(({toggle:o,isDark:u})=>[t(y,{n:"sm primary",onClick:i=>o()},{default:l(()=>[e[5]||(e[5]=a("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),m(" "+_(u.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),t(re,{item:{name:"index.md",children:Array(0),key:"localhost:3000:content:index.md",path:"/content/index"}},null,8,["item"]),a("div",Ae,[a("div",Me,[e[6]||(e[6]=a("div",{"font-bold":""}," Query : ",-1)),t(ie,{modelValue:b(v),"onUpdate:modelValue":e[0]||(e[0]=o=>x(v)?v.value=o:null),n:"primary xs"},{default:l(()=>[(r(),c(f,null,k(H,o=>a("option",{key:o,value:o},_(o),9,je)),64))]),_:1},8,["modelValue"])]),t(le,{ref_key:"editorRef",ref:Q,modelValue:b(h),"onUpdate:modelValue":e[1]||(e[1]=o=>x(h)?h.value=o:null),options:Y,lang:b(v),"h-200px":"",class:"-mx-2"},null,8,["modelValue","lang"])]),t(ue,{open:!0,icon:"carbon-function",text:"Variables from composables",description:"Click to console.log variable"},{default:l(()=>[(r(!0),c(f,null,k(Object.entries(oe),([o,u])=>(r(),c("div",{key:o},[t(ce,{filepath:`./composables/${o}.ts`,op50:"","hover:underline":"",onClick:i=>se(o)},null,8,["filepath","onClick"]),a("div",Ee,[(r(!0),c(f,null,k(Object.keys(u),i=>(r(),c("button",{key:i,"hover:text-primary":"",onClick:Ke=>ne(i,u)},[a("code",{rounded:"",px2:"",py1:"","text-sm":"","font-mono":"","bg-gray:5":"",class:B(([void 0,null].includes(u[i])||("isRef"in n?n.isRef:b(x))(u[i])&&[void 0,null].includes(u[i].value))&&"op30 hover:op100")},_(i),3)],8,Ge))),128))])]))),128))]),_:1}),e[7]||(e[7]=a("div",{p2:"",pt8:"","font-bold":""}," Useful links : ",-1)),a("div",Pe,[t(d,{n:"primary",href:"https://github.com/nuxt/devtools/tree/main/packages/devtools-ui-kit/src/components",target:"_blank",text:"Devtools UI Components"}),t(d,{n:"primary",href:"https://gitlab.com/-/graphql-explorer",target:"_blank",text:"Gitlab GraphiQL"}),t(d,{n:"primary",href:"https://graphql.github.com/explorer",target:"_blank",text:"GitHub GraphiQL"}),t(d,{n:"primary",href:"https://unstorage.unjs.io",target:"_blank",text:"Unstorage"}),t(d,{n:"primary",href:"https://content.nuxt.com",target:"_blank",text:"Nuxt Content"})])])}}});export{it as default};
