1import{R as L,o as C,O as f,u as x,S as I,W as P,Q as r,h as c,j as e,d as D,e as j,T as v,L as T,m as E}from"./main-5f514046.js";import{a as R,u as b,I as y,A}from"./useLoginGuard-d91dd6db.js";import{L as F}from"./LoginForm-5a2fb1cd.js";import{g as N}from"./pageHeaders-bbf0aa0e.js";import"./login.css-64a86d31.js";function G({type:t=r.Login}){var n;const{id:d}=L(),l=C(),i=f(),{formatMessage:a}=x(),u=R(),{value:p}=I(P.qrCodeAuthentication,!1);b(t);const s=N(t),m=p&&u===!1,g=t===r.ConfirmIdentity?c.CONFIRM_IDENTITY_DEVICE_LINK.replace(":id",d??""):c.LOGIN_DEVICE_LINK,h=()=>{const o=new FormData;o.append("authType",String(A.QR)),o.append("verificationProperties",i.loginData.verificationProperties),l(o,{method:"post",action:g})};return e.jsxs(D,{rowGap:[4,4,5],constraints:!0,children:[e.jsx(j,{title:a(s.title),intro:s.intro?a(s.intro):((n=i.contextData)==null?void 0:n.clientName)??""}),e.jsx(F,{identityProvider:"app"}),m&&e.jsx(v,{as:"h5",variant:"h5",textAlign:"center",children:e.jsx(T,{onClick:h,children:a(E.signInWithQRCodeLabel)})}),e.jsx(y,{type:"app",loginType:t})]})}export{G 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.