import{j as e}from"./jsx-runtime-hUI6LOBV.js";import{I as i}from"./misc-BNcbB3dR.js";import{S as f}from"./tooltip-CoTdGGXz.js";import{a as o,P as u}from"./set-playground-DyT4jldX.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:"66e9b849450b819e11683314a547a341cb57f7d0"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="feff0693-eaa7-410c-bc6d-0724be9a3b68",s._sentryDebugIdIdentifier="sentry-dbid-feff0693-eaa7-410c-bc6d-0724be9a3b68")}catch{}})();function b({playgroundAppName:s,problemAppName:t,isUpToDate:a,allApps:r,children:d}){const l=s===t,c=l&&a?e.jsx(i,{size:"xl",name:"Linked"}):e.jsx(i,{size:"xl",name:"Unlinked",className:"text-foreground-destructive animate-pulse"});let n="Click to reset Playground.";return a||(n="Playground is out of date. Click to reset Playground."),l||(n="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:n,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","data-keyboard-action":"s+p+p",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:r,playgroundAppName:s})]}),e.jsx("div",{className:"flex min-h-0 flex-1 grow items-stretch justify-center overflow-hidden",children:d})]})}export{b as P};
//# sourceMappingURL=playground-window-53zTrrRT.js.map
