import{C as e,Ct as t,Mt as n,Qt as r,S as i,T as a,W as o,X as s,Y as c,_ as l,dt as u,en as d,g as f,h as p,m,p as h,s as g,tn as _}from"./vendor/json-editor-vue-9tyg6b65.js";import{T as v}from"./utils-ivfwadyv.js";import{t as y}from"./nbutton-g8ropw1z.js";import{t as b}from"./ncode-block-cfw508sn.js";import{t as x}from"./pages-dm1j9w83.js";import{t as S}from"./ncheckbox-oir9zn2f.js";import{t as C}from"./filepath-item-evfn93g6.js";import{t as w}from"./nsection-block-lfx32fn0.js";import{t as T}from"./nbadge-nhg3871m.js";import{t as E}from"./color-abaog8vc.js";var D=Object.assign(a({__name:`NBadgeHashed`,props:{text:{}},setup(e){let t=e,n=h(()=>({color:E(t.text,50,60),background:E(t.text,50,60,.05)}));return(t,r)=>(o(),p(T,{style:d(n.value)},{default:u(()=>[i(_(e.text),1),s(t.$slots,`default`)]),_:3},8,[`style`]))}}),{__name:`NBadgeHashed`}),O={flex:`~ gap-2 col`,mb4:``},k={flex:`~ gap-3 items-center`},A={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},j={"max-w-full":``,"of-auto":``},M={"text-center":``,op50:``},N={flex:`~`,px4:``},P={key:0,op50:``},F={px2:``,"text-center":``},I={"of-auto":``},L=Object.assign(a({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(n){let i=n,a=/^[a-z]:[\\/]/i;function s(e){return e.startsWith(`/`)||e.match(a)}let d=t(!1),v=t(!1),x=t(!1),w=t(!1),T=t(!1),E=t(``),L=h(()=>{let e=i.moduleMutationRecords;return d.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),v.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),x.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),w.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),T.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),E.value&&(e=e.filter(e=>e.name===E.value)),e});return(t,i)=>{let a=S,h=D,R=y,z=C,B=b;return o(),l(g,null,[m(`div`,O,[m(`div`,k,[e(a,{modelValue:d.value,"onUpdate:modelValue":i[0]||=e=>d.value=e,n:`primary`},{default:u(()=>[...i[6]||=[m(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:v.value,"onUpdate:modelValue":i[1]||=e=>v.value=e,n:`primary`},{default:u(()=>[...i[7]||=[m(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:x.value,"onUpdate:modelValue":i[2]||=e=>x.value=e,n:`primary`},{default:u(()=>[...i[8]||=[m(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:w.value,"onUpdate:modelValue":i[3]||=e=>w.value=e,n:`primary`},{default:u(()=>[...i[9]||=[m(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:T.value,"onUpdate:modelValue":i[4]||=e=>T.value=e,n:`primary`},{default:u(()=>[...i[10]||=[m(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),E.value?(o(),l(`div`,A,[e(h,{"font-mono":``,text:E.value},null,8,[`text`]),e(R,{icon:`carbon-close`,border:!1,onClick:i[5]||=e=>E.value=``})])):f(``,!0)])]),m(`table`,j,[i[11]||=m(`thead`,{border:`b base`},[m(`tr`,null,[m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),m(`tbody`,null,[(o(!0),l(g,null,c(L.value,t=>(o(),l(`tr`,{key:n.moduleMutationRecords.indexOf(t),border:`b dashed transparent hover:base`},[m(`td`,M,[m(`div`,null,_(n.moduleMutationRecords.indexOf(t)+1),1)]),m(`td`,null,[t.name&&s(t.name)?(o(),p(z,{key:0,filepath:t.name},null,8,[`filepath`])):(o(),p(h,{key:1,role:`button`,"font-mono":``,text:t.name,onClick:e=>E.value=t.name},null,8,[`text`,`onClick`]))]),m(`td`,null,[m(`code`,N,[(o(!0),l(g,null,c(t.keys,(e,n)=>(o(),l(g,{key:n},[m(`span`,null,_(e),1),n{let a=w;return n(r)?(o(),l(`div`,z,[e(a,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:u(()=>[e(L,{"module-mutation-records":n(r).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(o(),l(`div`,R,[...i[0]||=[m(`div`,null,`No Debug Context Found`,-1),m(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{B as default};