1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6c519926-be00-47b2-8e82-ff12c3fa9e34",e._sentryDebugIdIdentifier="sentry-dbid-6c519926-be00-47b2-8e82-ff12c3fa9e34")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[544],{80544:function(e,t,n){n.d(t,{ZP:function(){return em}});var i=n(67862),o=n(52322),a=n(2784),r=n(12866),l=n(81548),d=n(98983),s=n(55028),u=n(46448),c=n(77430),h=n(64827),p=n(56312);let m=r.ZP.div.withConfig({displayName:"or-divider__Wrapper",componentId:"sc-947aa882-0"})(["display:grid;grid-gap:16px;grid-template-columns:1fr auto 1fr;height:19px;align-items:center;margin:24px 0;"]),g=(0,r.ZP)(s.Z).withConfig({displayName:"or-divider__Label",componentId:"sc-947aa882-1"})(["margin-bottom:5px;"]),v=(0,r.ZP)(h.Z).withConfig({displayName:"or-divider__Divider",componentId:"sc-947aa882-2"})(["margin:0;"]);function f(){let{t:e}=(0,p.$G)();return(0,o.jsxs)(m,{children:[(0,o.jsx)(v,{})," ",(0,o.jsx)(g,{children:e("or")})," ",(0,o.jsx)(v,{})]})}var _=n(28021),b=n(44525),A=n.n(b),x=n(80261),L=n(91113);let j=(0,r.ZP)(L.Z).withConfig({displayName:"subtitle__Subtitle",componentId:"sc-b3bf2eb0-0"})(["font-size:16px;line-height:20px;margin-bottom:8px;text-align:center;"]);var w=n(74134),y=n(84695),P=n(74769),T=n(56022),M=n(87422),E=n(88414),R=n(80549),I=n(16997);let S="Login",k="Email validation result";function C(){let e=(0,i._)(["\n fragment LookupAuthMethodFragment on Auth_LoginPasswordAuthMethod {\n inputLabel {\n locale\n value\n }\n }\n"]);return C=function(){return e},e}function N(){let e=(0,i._)(["\n query LookupQuery($email: Auth_EmailAddress!) {\n lookup: Auth_lookup(emailAddress: $email) {\n alreadyRegistered\n hasAPassword\n }\n }\n"]);return N=function(){return e},e}let Z=(0,r.ZP)(u.W4).attrs({align:"CENTER"}).withConfig({displayName:"lookup__ButtonWrapper",componentId:"sc-d0315748-0"})(["margin-top:",";"],e=>{let{theme:t}=e;return t.spacing[6]}),D=(0,r.ZP)(s.Z).withConfig({displayName:"lookup__Label",componentId:"sc-d0315748-1"})(["margin-bottom:",";"],e=>{let{theme:t}=e;return t.spacing[1]}),O=(0,l.Ps)(C()),G="lookup-email-input-id",U=(0,l.Ps)(N());var F=function(e){var t,n;let{method:i,onLookupCompleted:r=()=>{},onOTPMailSent:l=()=>{},onMagicLinkSent:s=()=>{},initialEmail:c,showTitle:h=!1,isOnlyMethod:m=!0,origin:g,onRegister:v,getMagicLinkTargetUrl:f}=e,b=(0,T.zX)(),L=(0,E.P)("remove-otp-in-studio"),{t:C}=(0,p.$G)(),N=(0,a.useRef)(null);(0,a.useEffect)(()=>{setTimeout(()=>{var e;null===(e=N.current)||void 0===e||e.focus()},500)},[]);let O=(0,_.Gl)({initialState:{value:null!=c?c:""}}),[F,W]=(0,a.useState)(!1),{sendOTPMail:B,loading:$,error:q}=(0,M.i)({onOTPMailSent:l}),[z,{loading:X,error:K}]=(0,R.i)({onCompleted:()=>null==s?void 0:s(O.value)}),Q=()=>{var e;return null!==(e=null==f?void 0:f())&&void 0!==e?e:"https://".concat(window.location.host)},[H,{loading:J,error:V}]=(0,d.td)(U,{onCompleted:e=>{let{lookup:t}=e;t.alreadyRegistered&&!t.hasAPassword&&"studio"===g&&L?z(O.value,Q()):t.alreadyRegistered&&!t.hasAPassword?B(O.value):t.alreadyRegistered||(b?b.registrationSettings.type:"studio"===g)?((0,I.L)({category:S,action:k,name:"Success - Login"}),r({email:O.value,lookup:t})):(v?(0,I.L)({category:S,action:k,name:"Success - Registration"}):(0,I.L)({category:S,action:k,name:"Error - Registration restricted"}),W(!0))},fetchPolicy:"network-only"});return(0,a.useEffect)(()=>{W(!1)},[O.value]),(0,o.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),e.stopPropagation(),v&&F)return v();W(!1),H({variables:{email:O.value}})},children:[h&&(0,o.jsx)(j,{children:C("auth_methods.email.title")}),"studio"===g?(0,o.jsx)(w.d,{children:C("login.studio.description")}):(0,o.jsx)(w.d,{...(0,x.o)("login-email-modal-subtitle"),children:null!==(n=null===(t=i.inputLabel)||void 0===t?void 0:t.value)&&void 0!==n?n:C("auth_methods.email.description")}),(0,o.jsx)(D,{required:m,htmlFor:G,children:C("join_event_email_label")}),(0,o.jsx)(_.ZP,{id:G,placeholder:C("join_event_email_placeholder"),ref:N,type:"email",autoComplete:"email",...O,valid:!F,required:!0,...(0,x.o)("login-email")}),F&&(0,o.jsx)(y.B,{children:C(v?"lookup.error.event_signup_disable_register":"lookup.error.event_signup_disable")}),q&&(0,o.jsx)(y.B,{children:q}),K&&(0,o.jsx)(y.B,{children:K}),V&&(0,o.jsx)(P.X,{apolloError:V}),(0,o.jsx)(Z,{children:(0,o.jsx)(u.ZP,{"aria-label":C("submit"),type:"submit",loading:J||$||X,disabled:!A()(O.value),...(0,x.o)("login-email-submit"),children:C(F&&v?"register":m?"continue":"continue_with_email")})})]})},W=n(69695),B=function(e){return(0,o.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.87 5.008a1 1 0 01-.378 1.363l-2.616 1.478 2.181 3.637a1 1 0 11-1.714 1.029l-2.209-3.681-2.365 1.337 1.089 1.815a1 1 0 11-1.716 1.029l-1.115-1.86-2.254 1.275a5.5 5.5 0 11-.912-1.782L21.508 4.63a1 1 0 011.363.378zM3.002 13.91A3.5 3.5 0 0110 14a3.5 3.5 0 01-7 0l.001-.09z",fill:"
1currentColor"})})},$=n(48239);let q=(0,r.ZP)(u.ZP).withConfig({displayName:"auth-login-button__Button",componentId:"sc-8366bcfd-0"})(["width:100%;"]);var z=function(e){let{label:t,onClick:n,icon:i=(0,o.jsx)(B,{})}=e;return(0,o.jsx)(q,{variant:"OUTLINED",icon:i,onClick:n,"aria-label":t,children:(0,o.jsx)($.Z,{lines:2,children:t})})};function X(){let e=(0,i._)(["\n fragment SAMLAuthMethodFragment on Auth_SAMLAuthMethod {\n identityProviderId\n buttonLabel {\n value\n }\n errorLabel {\n ssoDefault {\n value\n }\n }\n }\n"]);return X=function(){return e},e}let K=(0,l.Ps)(X());var Q=function(e){var t,n;let{method:i,redirectUrl:a}=e,{application:r}=(0,W.A1)(),{t:l}=(0,p.$G)(),d=null!==(n=null===(t=i.buttonLabel)||void 0===t?void 0:t.value)&&void 0!==n?n:l("saml.button-label");return(0,o.jsx)(z,{label:null!=d?d:"SAML",onClick:()=>{if(null==r?void 0:r.appWebDomain){let e=new URL("https://".concat(r.appWebDomain,"/auth/sso/saml/sp/").concat(i.identityProviderId,"/redirect"));a?e.searchParams.set("redirect_url",a):e.searchParams.set("redirect_url","https://".concat(window.location.host)),window.location.href=e.toString()}}})};function H(){let e=(0,i._)(["\n fragment GLEventAuthMethodFragment on Auth_GLEventAuthMethod {\n inputLabel {\n value\n }\n buttonLabel {\n value\n }\n redirectUrl\n }\n"]);return H=function(){return e},e}let J=(0,l.Ps)(H()),V=r.ZP.img.withConfig({displayName:"gl-event__Logo",componentId:"sc-bbbee3f-0"})(["width:32px;height:32px;display:block;"]);var Y=function(e){var t,n;let{method:i,redirectUrl:a}=e,{application:r}=(0,W.A1)(),l=null!==(n=null===(t=i.buttonLabel)||void 0===t?void 0:t.value)&&void 0!==n?n:"GL Event";return(0,o.jsx)(z,{onClick:()=>{if(null==r?void 0:r.appWebDomain){var e;let t=new URL(null!==(e=i.redirectUrl)&&void 0!==e?e:"https://exposant.gl-events.com/login"),n=new URL("https://".concat(r.appWebDomain,"/auth/sso/login-with-gl"));n.searchParams.set("redirect_url",null!=a?a:window.location.href),t.searchParams.set("_jwt_redirect",n.toString()),window.location.href=t.toString()}},label:l,icon:(0,o.jsx)(V,{src:"https://cdn-api.swapcard.com/public/images/544ae6a9e0224ff9800edeb0c60ce909.png",alt:l})})};function ee(){let e=(0,i._)(["\n fragment OAuthMethodFragment on Auth_OAuthAuthMethod {\n inputLabel {\n value\n }\n buttonLabel {\n value\n }\n oauthRedirectUrl: redirectUrl\n }\n"]);return ee=function(){return e},e}let et=(0,l.Ps)(ee());var en=function(e){var t,n;let{method:i,redirectUrl:a}=e,{application:r}=(0,W.A1)(),{t:l}=(0,p.$G)();return(0,o.jsx)(z,{onClick:()=>{if(null==r?void 0:r.appWebDomain){let e=new URL(i.oauthRedirectUrl);a&&e.searchParams.set("redirect_url",a),window.location.href=e.toString()}},label:null!==(n=null===(t=i.buttonLabel)||void 0===t?void 0:t.value)&&void 0!==n?n:l("oauth.button-label")})},ei=n(87933),eo=n(47042),ea=n(69477),er=n(69843),el=n(992);function ed(){let e=(0,i._)(["\n query AuthMethodsQuery {\n authMethodResults: Auth_authMethods {\n authMethods {\n ...LookupAuthMethodFragment\n ...SAMLAuthMethodFragment\n ...GLEventAuthMethodFragment\n ...OAuthMethodFragment\n }\n }\n suggestedEvents: Core_suggestedEvents(cursor: { first: 10 }) {\n nodes {\n ...AuthEventTicketFragment\n }\n }\n }\n ","\n ","\n ","\n ","\n ","\n"]);return ed=function(){return e},e}let es=r.ZP.div.withConfig({displayName:"auth-methods__AuthContainer",componentId:"sc-81aea45f-0"})(["margin-bottom:20px;"]),eu=r.ZP.div.withConfig({displayName:"auth-methods__AuthWrapper",componentId:"sc-81aea45f-1"})(["& > ",":last-child{margin-bottom:0px;}"],es),ec=r.ZP.div.withConfig({displayName:"auth-methods__FooterActionWrapper",componentId:"sc-81aea45f-2"})(["margin-top:24px;display:grid;align-content:center;align-items:center;justify-content:center;grid-auto-flow:column;grid-gap:4px;"]),eh=(0,l.Ps)(ed(),O,K,J,ei.q,et);function ep(e){let{initialEmail:t,isRegistrationInline:n,getMagicLinkTargetUrl:i,isOnlyMethod:r,showTitle:l,method:d,withoutPassword:s,onLookupCompleted:u,onLoginCompleted:c,onMagicLinkSent:h,onOTPMailSent:p,onRegister:m,origin:g}=e,[v,f]=(0,a.useState)(null);return v&&t?(0,o.jsx)(el.Z,{email:t,password:v,onLoginCompleted:c,onSendMagicLinkCompleted:()=>null==h?void 0:h(t),getMagicLinkTargetUrl:i,variant:"REGISTRATION"}):n&&t?(0,o.jsx)(er.Z,{email:t,getMagicLinkTargetUrl:i,onLoginCompleted:c,onSendMagicLinkCompleted:()=>null==h?void 0:h(t),onTOTPRequired:f,variant:s?er._.WITHOUT_PASSWORD:er._.REGISTRATION}):(0,o.jsx)(F,{method:d,onLookupCompleted:u,initialEmail:t,showTitle:l,isOnlyMethod:r,origin:g,onRegister:m,onOTPMailSent:p,onMagicLinkSent:h,getMagicLinkTargetUrl:i})}var em=function(e){var t,n,i,r,l;let{onLookupCompleted:h=()=>{},onMagicLinkSent:m=()=>{},onOTPMailSent:g=()=>{},initialEmail:v,redirectUrl:_,getMagicLinkTargetUrl:b,fromView:A="DEFAULT",onReg
1ister:x=()=>{},origin:L,isRegistrationInline:j,withoutPassword:w,onLoginCompleted:y,identityProviderId:M}=e,{t:E,i18n:R}=(0,p.$G)(),{application:I}=(0,W.A1)(),S=(0,T.zX)(),{data:k,error:C}=(0,d.aM)(eh,{context:{headers:{"x-content-language":null===(t=R.language)||void 0===t?void 0:t.replace("-","_")}}});if(!k&&C)return(0,o.jsx)(P.X,{apolloError:C});if(!(null==k?void 0:k.authMethodResults))return null;let N=k.authMethodResults.authMethods.filter(e=>(null==e?void 0:e.__typename)&&("Auth_LoginPasswordAuthMethod"===e.__typename||"Auth_SAMLAuthMethod"===e.__typename||"Auth_GLEventAuthMethod"===e.__typename||"Auth_OAuthAuthMethod"===e.__typename)),Z=S?S.registrationSettings.url||(0,ea.g)({event:S})?[S]:[]:null!==(l=null===(r=k.suggestedEvents)||void 0===r?void 0:r.nodes.filter(e=>{var t;return null!==(t=e.registrationSettings.url)&&void 0!==t?t:(0,ea.g)({event:e})}))&&void 0!==l?l:[],D=!j&&Z.length>0,O=N.find(e=>e&&"Auth_SAMLAuthMethod"===e.__typename&&e.identityProviderId===M),G={EXPIRED_LINK:E("home.expired-link"),SSO_FALLBACK:E("home.sso-fallback"),DEFAULT:E("whitelabel-signup.catch-phrase-1")},U={EXPIRED_LINK:E("home.this-link-has-expired"),SSO_FALLBACK:(null==O?void 0:O.__typename)==="Auth_SAMLAuthMethod"&&(null===(i=O.errorLabel)||void 0===i?void 0:null===(n=i.ssoDefault)||void 0===n?void 0:n.value)||E("home.sso-fallback-description"),DEFAULT:null};return(0,o.jsxs)("div",{children:[!j&&(0,o.jsx)(eo.D,{children:"studio"===L?E("login.studio.title"):G[A]}),U[A]&&(0,o.jsx)(c.ZP,{severity:"ERROR",marginBottom:4,children:U[A]}),(0,o.jsx)(eu,{children:N.map((e,t)=>{if(!e)return null;switch(e.__typename){case"Auth_LoginPasswordAuthMethod":return(0,o.jsxs)(a.Fragment,{children:[t>0&&(0,o.jsx)(f,{}),(0,o.jsx)(ep,{isRegistrationInline:j,initialEmail:v,getMagicLinkTargetUrl:b,onLoginCompleted:y,onMagicLinkSent:m,onOTPMailSent:g,withoutPassword:w,method:e,onLookupCompleted:h,showTitle:t>0,isOnlyMethod:1===N.length,origin:L,onRegister:D?()=>x(Z):void 0}),t<N.length-1&&(0,o.jsx)(f,{})]},t);case"Auth_SAMLAuthMethod":return(0,o.jsx)(es,{children:(0,o.jsx)(Q,{method:e,redirectUrl:_})},t);case"Auth_GLEventAuthMethod":return(0,o.jsx)(es,{children:(0,o.jsx)(Y,{method:e,redirectUrl:_})},t);case"Auth_OAuthAuthMethod":return(0,o.jsx)(es,{children:(0,o.jsx)(en,{method:e,redirectUrl:_})},t);default:return null}})}),D&&(0,o.jsxs)(ec,{children:[(0,o.jsx)(s.Z,{children:E("whitelabel-private-event.not-registered")}),(0,o.jsx)(u.ZP,{variant:"LINK",size:"SMALL",onClick:()=>x(Z),children:E("register_now")})]}),"studio"===L&&(null==I?void 0:I.appWebDomain)&&(0,o.jsxs)(ec,{children:[(0,o.jsx)(s.Z,{children:E("login.studio.participant_description")}),(0,o.jsx)(u.ZP,{as:"a",href:"https://".concat(I.appWebDomain,"/login"),variant:"LINK",size:"SMALL",children:E("login.studio.participant_button")})]})]})}},992:function(e,t,n){var i=n(52322),o=n(2784),a=n(55028),r=n(28021),l=n(12866),d=n(31383),s=n(46448),u=n(63556),c=n(78882),h=n(56312),p=n(47042),m=n(91882),g=n(74134),v=n(74769),f=n(16997);let _=(0,l.ZP)(p.D).withConfig({displayName:"totp__Title",componentId:"sc-89ba2ad6-0"})(["",""],e=>{let{$variant:t,theme:n}=e;return"REGISTRATION"===t&&(0,d.iv)(["text-align:start;color:",";font-size:14px;line-height:150%;"],n.colors.text.base)}),b=(0,l.ZP)(g.d).withConfig({displayName:"totp__Description",componentId:"sc-89ba2ad6-1"})(["",""],e=>{let{$variant:t}=e;return"REGISTRATION"===t&&(0,d.iv)(["text-align:start;"])}),A=l.ZP.div.withConfig({displayName:"totp__InputContainer",componentId:"sc-89ba2ad6-2"})(["max-width:200px;",""],e=>{let{$variant:t}=e;return"DEFAULT"===t&&(0,d.iv)(["margin:0 auto;"])}),x=l.ZP.div.withConfig({displayName:"totp__MagicLinkWrapper",componentId:"sc-89ba2ad6-3"})(["",""],e=>{let{$variant:t}=e;return"DEFAULT"===t&&(0,d.iv)(["text-align:center;"])});function L(e){let{children:t,variant:n,onSubmit:o}=e;return"REGISTRATION"===n?(0,i.jsx)(i.Fragment,{children:t}):(0,i.jsx)("form",{onSubmit:e=>{e.preventDefault(),e.stopPropagation(),o()},children:t})}t.Z=function(e){let{onLoginCompleted:t,onBack:n,onSendMagicLinkCompleted:l,getMagicLinkTargetUrl:d,email:p,password:g,variant:j="DEFAULT"}=e,{t:w}=(0,h.$G)(),y=(0,r.Gl)(),P=(0,o.useRef)(null),[T,{loading:M,error:E}]=(0,c.f0)({onLoginCompleted:e=>{t&&(t(e),(0,f.L)({category:"Login",action:"TOTP validation result",name:"Success"}))},onError:()=>{(0,f.L)({category:"Login",action:"TOTP validation result",name:"Error"})}});async function R(){await T({type:"EMAIL_AND_PASSWORD",email:p,password:g,mfaChallengeResponse:{kind:"TOTP",totpToken:y.value}})}return(0,o.useEffect)(()=>{setTimeout(()=>{var e;null===(e=P.current)||void 0===e||e.focus()},500)},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.xE,{onBack:n}),(0,i.jsx)(_,{$variant:j,children:w("mfa_name")}),(0,i.jsx)(b,{$variant:j,children:w("mfa.totp.enter_code_description")}),(0,i.jsxs)(L,{variant:j,onSubmit:R,children:[(0,i.jsxs)(A,{$variant:j,children:[(0,i.jsx)(a.Z,{variant:E?"DANGER":void 0,marginBottom:1,required:!0,htmlFor:"mfa-enter-code",children:w("mfa.totp.enter_code_label")}),(0,i.jsx)(r.ZP,{...y,id:"mfa-enter-code",ref:P,valid:!E,outerWrapperProps:{marginBottom:1},placeholder:w("mfa.totp.enter_code_placeholder")}),E&&(0,i.jsx)(v.X,{restError:E})]}),(0,i.jsx)(s.W4,{marginTop:"REGISTRATION"===j?4:6,marginBottom:"REGISTRATION"===j?4:6,align:"REGISTRATION"===j?"START":"CENTER",children:(0,i.jsx)(s.ZP,{disabled:0===y.value.trim().length,type:"REGISTRATION"===j?"button":"submit","aria-label":w("mfa.totp.verify_code"),loading:M,onClick:"REGISTRATION"===j?R:void 0,children:w("mfa.totp.verify_code")})})]}),(0,i.jsx)(x,{$variant:j,children:(0,i.jsx)(u.Z,{email:p,variant:"TOTP",onSendMagicLinkCompleted:()=>{l&&(l(),(0,f.L)({category:"Login",action:"OTP requested"}))},getMagicLinkTargetUrl:d})})]})}}}]);
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.