1import{j as e}from"./vendor-react-D3lvB2JM.js";import{u as f,H as p,s as a,a as g}from"./i18n-AZUAgK4B.js";import{u as b}from"./index-CsXSoTpF.js";import{h as j,u as v}from"./main-BXMS_n7h.js";const w=()=>{const{t:i}=f(),n=j().state,t=n.connectionSuccessful??!1,s=v(),l=i(t?"connections.confirm-success-title":"connections.confirm-connection-fail"),[r,m]=b("currentMigration",void 0),c=n.app.id!=null&&r===n.app.id,d=t?i("connections.confirm-connection-success-description",{app_name:n.app.config.name}):i("messages.please-try-again"),x=t?a.circle_checkmark:a.diamond_exclamation,u=t?c?i("buttons.go-back-to-platform"):i("buttons.go-to-app",{app_name:n.app.config.name}):i("buttons.try-again"),h=()=>{var o;m(void 0),c?t?window.location.href=g.foundationUrl:window.location.href=((o=n.app.config.connect)==null?void 0:o.url)??"":s(t?{pathname:"/product/launch",search:n.pathParams}:-1)};return e.jsx("div",{className:"helix-d-flex justify-content-center align-items-center status-card-container",children:e.jsx("div",{className:"helix-card status-card",children:e.jsx("div",{className:"h-100 helix-d-flex justify-content-center align-items-center",children:e.jsxs("div",{className:"flex-column",children:[e.jsx("div",{className:`mx-auto
1status-icon-bg ${t?"helix-bg-green-50":"helix-bg-red-50"}`,children:e.jsx(p,{icon:x,className:`status-icon ${t?"helix-svg-fill--green-600":"helix-svg-fill--red-600"}`})}),e.jsx("div",{className:"helix-display-small helix-text--center helix-mt-3",children:l}),e.jsx("div",{className:"helix-body helix-text--center m-4",children:d}),e.jsx("button",{className:n!=null&&n.connectionSuccessful?"helix-btn helix-btn--primary helix-btn--medium helix-mt-4 mx-auto d-block confirm-connection-btn":"helix-btn helix-btn--secondary helix-btn--medium helix-mt-4 mx-auto d-block confirm-connection-btn",onClick:h,children:e.jsx("span",{children:u})})]})})})})};export{w 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.