import{a as pe}from"./C1ENETdz.js";import{_ as me,a as de}from"./BQzPc7SS.js";import{_ as fe}from"./eLY4iFjQ.js";import{d as V,c as _e,o as r,w as l,i as c,F as f,an as m,t as _,n as $,a as he,E as ve,b_ as ye,b$ as ge,cc as ke,x as be,_ as xe,c2 as Ce,r as p,bF as we,f as a,aj as t,z as b,u as g,y as x,au as Fe,A as Ne,P as Ve,c5 as $e,c4 as Be,Z as Se,bt as k}from"./DnBXlrVC.js";import{_ as Le}from"./eaxWzopS.js";import{_ as Re}from"./DepFcZEA.js";import{_ as Te}from"./3p2BW7gs.js";import{u as Ue}from"./BrHxLWs8.js";import"./DVAt6LKG.js";import"./C1uI23vf.js";import"./srdc3zaG.js";import"./DqVytocg.js";import"./CqX64dt3.js";import"./BMCz18W6.js";const qe=V({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(B){return(s,C)=>(r(),_e(he(s.filepath?"button":"span"),{class:$([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=Fe(Le),Oe={flex:"~ col"},De={flex:"",p2:"","mb-4":"","gap-2":""},je={p2:"",relative:""},Ae={flex:"","items-center":"","justify-between":"",pb2:"",pt8:""},Me=["value"],Ee={flex:"~ wrap gap2",p2:"",pl4:""},Ge=["onClick"],Pe={flex:"",p2:"","flex-col":""},it=V({__name:"test",setup(B){const s=ve(),C=Ve(),w=ye(),S=ge(),L=Ue(),R=Se(),T=Be(),U=$e(),F=ke("changes:selected-file",""),{providers:q,defaultProvider:I,currentProvider:N,sessions:O}=be(),{getMounts:D,storage:j,changes:A}=xe(),{sources:M,currentSource:E,currentBase:G,currentContentKeys:P}=Ne(),{fetch:K}=Ce(),Q=w.value?.nuxt.$config.public,z=p(),h=p(`query infos {
  currentUser {
    id
    name
    location
    bio
  }
}`),v=p("graphql"),H=["markdown","typescript","graphql","css"],Z={theme:`vs-${we({storageKey:"unpress-color-mode"}).value}`,minimap:{enabled:!0},scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbers:"off"};async function J(){const{data:n}=await K({query:h.value});console.log(n)}async function W(){}async function X(){N.value.auth.session.created_at=10}k("selectedFile",F);const Y=p(!1);k("isFixed",Y);const ee=p(!1);k("isOpen",ee);const te=p(!1);k("speedView",te);const oe={client:{client:w,clientRouter:S,tabs:L,UIOptions:R,frameState:T,panelsState:U,nuxtApp:s},settings:{runtimeConfig:C,websiteConfig:Q},storage:{storage:j,getMounts:D,changes:A},sources:{sources:M,currentSource:E,currentBase:G,currentContentKeys:P},auth:{providers:q,defaultProvider:I,currentProvider:N,sessions:O},utils:{fileKey:F}};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:J},{default:l(()=>e[2]||(e[2]=[m(" Fetch ")])),_:1}),t(y,{onClick:W},{default:l(()=>e[3]||(e[3]=[m(" Test ")])),_:1}),t(y,{onClick:X},{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",je,[a("div",Ae,[e[6]||(e[6]=a("div",{"font-bold":""}," Query : ",-1)),t(ie,{modelValue:g(v),"onUpdate:modelValue":e[0]||(e[0]=o=>x(v)?v.value=o:null),n:"primary xs"},{default:l(()=>[(r(),c(f,null,b(H,o=>a("option",{key:o,value:o},_(o),9,Me)),64))]),_:1},8,["modelValue"])]),t(le,{ref_key:"editorRef",ref:z,modelValue:g(h),"onUpdate:modelValue":e[1]||(e[1]=o=>x(h)?h.value=o:null),options:Z,lang:g(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,b(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,b(Object.keys(u),i=>(r(),c("button",{key:i,"hover:text-primary":"",onClick:Qe=>ne(i,u)},[a("code",{rounded:"",px2:"",py1:"","text-sm":"","font-mono":"","bg-gray:5":"",class:$(([void 0,null].includes(u[i])||("isRef"in n?n.isRef:g(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};
