import{a as pe}from"./CuzaDH-7.js";import{_ as me,a as de}from"./DwgbBWjN.js";import{_ as fe}from"./Cx1VUzfI.js";import{d as $,o as i,c as _e,w as l,e as c,F as f,D as m,t as _,n as B,A as he,am as ve,bH as be,bI as ge,bU as ke,u as ye,N as Ce,bL as xe,r as p,bo as we,bd as g,a,z as t,b as k,i as y,aa as Ne,g as C,a7 as Ve,a5 as $e,bN as Be,bO as Fe,h as Se}from"./BvNnk7SS.js";import{_ as Le}from"./Cs47TkFU.js";import{_ as Re}from"./-DvYCgd9.js";import{_ as Te}from"./DPWe0n9s.js";import{u as Ue}from"./p5-UNkEh.js";import"./DXjXgEo6.js";import"./3x3eqdRC.js";import"./B49NGYNJ.js";import"./Bxcphyqc.js";import"./9QyWfnsF.js";import"./Cu5BrwYr.js";import"./BXyTx0Zr.js";const Ie=$({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(F){return(s,x)=>(i(),_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?(i(),c(f,{key:0},[m(_(s.override),1)],64)):(i(),c(f,{key:1},[m(_(s.filepath),1)],64))]),_:1},8,["class","title"]))}}),Oe=Ne(Le),qe={flex:"~ col"},De={"mb-4":"",flex:"","gap-2":"",p2:""},Ae={p2:"",relative:""},Me={flex:"","items-center":"","justify-between":"",pb2:"",pt8:""},je=["value"],Ge={flex:"~ wrap gap2",p2:"",pl4:""},Ee=["onClick"],He={flex:"",p2:"","flex-col":""},lt=$({__name:"test",setup(F){const s=ve(),x=Ve(),w=be(),S=ge(),L=Ue(),R=$e(),T=Be(),U=Fe(),N=ke("changes:selected-file",""),{providers:I,defaultProvider:O,currentProvider:V,sessions:q}=ye(),{getMounts:D,storage:A,changes:M}=Ce(),{sources:j,currentSource:G,currentBase:E,currentContentKeys:H}=Se(),{fetch:P}=xe(),Q=w.value?.nuxt.$config.public,z=p(),h=p(`query infos {
  currentUser {
    id
    name
    location
    bio
  }
}`),v=p("graphql"),K=["markdown","typescript","graphql","css"],J={theme:`vs-${we().value}`,minimap:{enabled:!0},scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbers:"off"};async function W(){const{data:n}=await P({query:h.value});console.log(n)}async function X(){}async function Y(){V.value.auth.session.created_at=10}g("selectedFile",N);const Z=p(!1);g("isFixed",Z);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:x,websiteConfig:Q},storage:{storage:A,getMounts:D,changes:M},sources:{sources:j,currentSource:G,currentBase:E,currentContentKeys:H},auth:{providers:I,defaultProvider:O,currentProvider:V,sessions:q},utils:{fileKey:N}};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 b=pe,ae=me,ie=fe,re=de,le=Oe,ce=Ie,ue=Re,d=Te;return i(),c("div",qe,[a("div",De,[t(b,{onClick:W},{default:l(()=>e[2]||(e[2]=[m(" Fetch ")])),_:1}),t(b,{onClick:X},{default:l(()=>e[3]||(e[3]=[m(" Test ")])),_:1}),t(b,{onClick:Y},{default:l(()=>e[4]||(e[4]=[m(" Test2 ")])),_:1}),t(ae,null,{default:l(({toggle:o,isDark:u})=>[t(b,{n:"sm primary",onClick:r=>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(ie,{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(re,{modelValue:k(v),"onUpdate:modelValue":e[0]||(e[0]=o=>y(v)?v.value=o:null),n:"primary xs"},{default:l(()=>[(i(),c(f,null,C(K,o=>a("option",{key:o,value:o},_(o),9,je)),64))]),_:1},8,["modelValue"])]),t(le,{ref_key:"editorRef",ref:z,modelValue:k(h),"onUpdate:modelValue":e[1]||(e[1]=o=>y(h)?h.value=o:null),options:J,lang:k(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(()=>[(i(!0),c(f,null,C(Object.entries(oe),([o,u])=>(i(),c("div",{key:o},[t(ce,{filepath:`./composables/${o}.ts`,op50:"","hover:underline":"",onClick:r=>se(o)},null,8,["filepath","onClick"]),a("div",Ge,[(i(!0),c(f,null,C(Object.keys(u),r=>(i(),c("button",{key:r,"hover:text-primary":"",onClick:Qe=>ne(r,u)},[a("code",{rounded:"",px2:"",py1:"","text-sm":"","font-mono":"","bg-gray:5":"",class:B(([void 0,null].includes(u[r])||("isRef"in n?n.isRef:k(y))(u[r])&&[void 0,null].includes(u[r].value))&&"op30 hover:op100")},_(r),3)],8,Ee))),128))])]))),128))]),_:1}),e[7]||(e[7]=a("div",{p2:"",pt8:"","font-bold":""}," Useful links : ",-1)),a("div",He,[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{lt as default};
