import{j as e}from"./jsx-runtime-C4_65a1U.js";import{I as i}from"./misc-DRDyxdMg.js";import{S as f}from"./tooltip-mkBMB3mq.js";import{a as o,P as u}from"./set-playground-MpIvTYrh.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"8a6db0ac5fe78363b0c97fe458a96ce773bf357c"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="ece4510d-1b44-4f81-9326-9229e56d2cf9",s._sentryDebugIdIdentifier="sentry-dbid-ece4510d-1b44-4f81-9326-9229e56d2cf9")}catch{}})();function j({playgroundAppName:s,problemAppName:t,isUpToDate:n,allApps:d,children:a}){const r=s===t,c=r&&n?e.jsx(i,{size:"xl",name:"Linked"}):e.jsx(i,{size:"xl",name:"Unlinked",className:"text-foreground-destructive animate-pulse"});let l="Click to reset Playground.";return n||(l="Playground is out of date. Click to reset Playground."),r||(l="Playground is not set to the right app. Click to set Playground."),e.jsxs("div",{className:"flex h-full w-full flex-col justify-between",children:[e.jsxs("div",{className:"flex h-14 shrink-0 items-center justify-start gap-2 border-b px-3",children:[e.jsx("div",{className:"display-alt-up",children:t?e.jsx(o,{appName:t,tooltipText:l,children:c}):e.jsx(f,{content:"No problem app available for this step",children:e.jsx("div",{children:e.jsx(i,{name:"Question"})})})}),e.jsx("div",{className:"display-alt-down",children:s?e.jsx(o,{appName:s,reset:!0,tooltipText:"Reset Playground",children:e.jsx("div",{className:"flex h-7 w-7 items-center justify-center",children:e.jsx(i,{name:"Refresh"})})}):e.jsx("div",{className:"h-7 w-7"})}),e.jsx(u,{allApps:d,playgroundAppName:s})]}),e.jsx("div",{className:"flex min-h-0 flex-1 grow items-stretch justify-center overflow-hidden",children:a})]})}export{j as P};
//# sourceMappingURL=playground-window-Dh2I6AWX.js.map
