import{C as e,E as t,Mt as n,W as r,_ as i,c as a,dt as o,h as s,m as c,v as l,w as u}from"./vendor/json-editor-vue-eojr4v24.js";import"./ready-dadbdj5i.js";import{k as d}from"./utils-jupbrzo6.js";import{r as f}from"./client-nwyjxodt.js";import"./vendor/shiki-lqo1hg2n.js";import"./storage-options-nzog3hhp.js";import"./nuxt-link-bumooa9d.js";import{t as p}from"./_plugin-vue_export-helper-n58akrbk.js";import"./nicon-m1crov2l.js";import"./nbutton-gygn07c2.js";import{t as m}from"./composables-b2ccklz4.js";import{t as h}from"./help-fab-oeo4c53s.js";import"./nicon-title-kbrt9te7.js";import{t as g}from"./nsection-block-ibsk9arc.js";import"./data-schema-button-n0xmsouw.js";import{t as _}from"./state-editor-m7poh4fc.js";var v={},y={class:`markdown-body`};function b(t,n){return r(),l(`div`,y,[...n[0]||=[s(`template`,null,[s(`div`,{class:`markdown-body`},[s(`h1`,null,`Runtime Configs`),s(`p`,null,`Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.`),s(`p`,null,[e(`In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your `),s(`code`,{"v-pre":``},`nuxt.config.js`),e(` file, or check more details in the documentation.`)]),s(`p`,null,[s(`a`,{href:`https://nuxt.com/docs/guide/going-further/runtime-config`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var x=p(v,[[`render`,b]]),S={key:0},C=t({__name:`runtime-configs`,setup(e){m({icon:`carbon-settings-services`,title:`Runtime Configs`,category:`analyze`,show:()=>{let e=f();return()=>!!e.value},order:6});let t=f(),s=d(),p=c(()=>t.value?.nuxt.payload),v=c(()=>t.value?.revision.value),y=c(()=>{let e={...s.value};return delete e.public,delete e.app,e});return(e,s)=>{let c=_,d=g,f=x,m=h;return r(),l(a,null,[n(t)?(r(),l(`div`,S,[u(d,{icon:`carbon-settings-services`,text:`App Config`,padding:!1},{default:o(()=>[u(c,{state:n(t).app.appConfig,revision:v.value},null,8,[`state`,`revision`])]),_:1}),u(d,{icon:`carbon-settings`,text:`Public Runtime Config`,padding:!1},{default:o(()=>[u(c,{state:p.value.config?.public,revision:v.value},null,8,[`state`,`revision`])]),_:1}),u(d,{icon:`i-carbon-code-signing-service`,text:`Private Runtime Config`,open:!1,padding:!1,description:`These values are not exposed to the client. Readonly in the DevTools.`},{default:o(()=>[u(c,{state:y.value,revision:v.value,readonly:``},null,8,[`state`,`revision`])]),_:1})])):i(``,!0),u(m,null,{default:o(()=>[u(f)]),_:1})],64)}}});export{C as default};