import{u as a,j as e}from"./vendor-ClLR6ncd.js";import{P as s}from"./ui-CVsJhvnv.js";import{E as n,i as c}from"./index-OtVJl4GC.js";import"./lodash-ZyeDnt0e.js";import{u as i}from"./model-CfTXIMmE.js";import{a as m}from"./ui-DEn7LX9m.js";import"./Messages-BRmQDxrZ.js";import"./RefreshDataButton-BMv_Vwgi.js";import"./WarningMessage-4TK5GdCH.js";import"./Warning-DsmyDRzF.js";import"./Box-Co2WcNPC.js";import"./Link-BLwKPJFF.js";const r=t=>new URL(`/processes/${t}/stacktrace`,window.location.origin).toString();function u(){const{name:t}=a(),o=n(["admin",t,"stacktrace"],()=>c({url:r(t)}));return{content:o.data,logData:o}}function p(){const{name:t}=a();return i({accept:"text/plain",file:`${t}-stacktrace.log`,path:r(t)})}function l(){const{name:t}=a();return e.jsx(s,{useData:u,useDownloadMutation:p,title:`Stacktrace for ${t}`,emptyMessage:"Stacktrace is empty"})}const j=m({Component:l});export{j as default};
