1import{o as l,e as v,w as f,f as t,t as d,b as r,q as y,m as c,R as x,c as p}from"./index.esm-C__ncqa8.js";import{J as g}from"./vue-json-viewer-68QflhpV.js";import"./_commonjsHelpers-BosuxZz1.js";const b={class:"w-[90vw] max-w-4xl rounded bg-white p-4 shadow-lg"},w={class:"mb-3 flex items-center justify-between"},h={class:"text-base font-semibold text-gray-900"},k={key:0,class:"max-h-[70vh] overflow-auto rounded border bg-gray-50 p-3"},V={key:1,class:"max-h-[70vh] overflow-auto rounded border bg-gray-50 p-3"},_={class:"whitespace-pre-wrap text-xs text-gray-700"},B={key:2,class:"flex items-center justify-center py-8 text-gray-500"},N={__name:"ElasticLogJsonModal",props:{modelValue:{type:Boolean,required:!0},title:{type:String,default:"JSON dáta"},value:{type:String,default:null}},emits:["update:modelValue"],setup(a,{emit:m}){const s=a,n=m,i=p(()=>{if(!s.value)return null;try{return JSON.parse(s.value)}catch{return null}}),u=p(()=>s.value??null);return(J,e)=>(l(),v(c(x),{"model-value":a.modelValue,"onUpdate:modelValue":e[1]||(e[1]=o=>n("update:modelValue",o)),"teleport-to":"body","click-to-close":!0,"lock-scroll":!0,"z-index-fn":({index:o})=>4e3+o*2,"overlay-class":"fixed inset-0 bg-gray-900/50 backdrop-blur-[1px]","content-class":"fixed inset-0 flex items-center justify-center overflow-y-auto p-4"},{default:f(()=>[t("div",b,[t("div",w,[t("h3",h,d(a.title),1),t("button",{type:"button",class:"inline-flex h-8 w-8 items-center justify-center rounded bg-gray-50 text-gray-700 transition-colors hover:bg-gray-100",title:"Zavrieť",onClick:e[0]||(e[0]=o=>n("update:modelValue",!1))},[...e[2]||(e[2]=[t("svg",{class:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),i.value!==null?(l(),r("div",k,[y(c(g),{value:i.value,"expand-depth":3},null,8,["value"])])):u.value?(l(),r("div",V,[t("pre",_,d(u.value),1)])):(l(),r("div",B,[...e[3]||(e[3]=[t("span",null,"Žiadne dáta na zobrazenie",-1)])]))])]),_:1},8,["model-value","z-index-fn"]))}};export{N as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.