1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d364797f-c29f-584a-a64e-914901474cfc")}catch(e){}}(); 3import{t as _,p as e}from"./chunk-6CSD65Y2-DjtNb_ff.js";import{C as A}from"./Close-CJQxQ3Ou.js";import{b as u,F as h}from"./index-Bmg-PKWf.js";import{a as v}from"./js.cookie-CP6D8BkC.js";import{G as C,A as P}from"./OptionalRecaptchaProvider-DDDkGnFz.js";import{S as T}from"./SignupForm-07o3w6ev.js";import{u as L}from"./useCsrfBootstrap-CNM1qFUH.js";import{S}from"./localStorageKeys--ljoZgZO.js";import{u as k,T as i}from"./useAuthentication-X70MRig0.js";import{P as O,S as r,B as x,D as W}from"./Alert-HT4MFi6a.js";import{I as G}from"./IconButton-llgRTI0b.js";import{T as w}from"./Trans-BfirOg6I.js";import{L as N}from"./Link-DD72oCAk.js";import{aa as B}from"./WebJs-1RiOrrsH.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"2a3b4ea4db4c495d724e88e0b293f68b57fd7294"}}catch{}})();const X=({onSuccess:a,onClose:l,ssoReturnUrl:t,hideSegmentationFields:j=!1,pendingAction:c=null})=>{const{t:n}=k(),[E]=_();L();const p=v.get("csrftoken"),m=!1,d=(b,I)=>{B({sso_type:I}),t?localStorage.setItem(S,t):localStorage.removeItem(S),c?sessionStorage.setItem("craftSignupPendingAction",c):sessionStorage.removeItem("craftSignupPendingAction");const g=new URLSearchParams(E);t&&g.set("next",t);const f=g.toString(),o=document.createElement("form");if(o.method="POST",o.action=`/api/v2/gts/socialAuth/associate/${b}${f?`?${f}`:""}`,o.target="_top",o.style.display="none",p){const s=document.createElement("input");s.type="hidden",s.name="csrfmiddlewaretoken",s.value=p,o.appendChild(s)}document.body.appendChild(o),o.submit()},y=t?`/login?next=${encodeURIComponent(t)}`:"/login";return e.jsx(O,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",p:3},children:e.jsxs(r,{spacing:2.5,children:[e.jsxs(r,{position:"relative",children:[e.jsxs(r,{spacing:.5,alignItems:"center",px:4,children:[e.jsx(i,{variant:"h5",fontWeight:700,children:n("pages.signup.signupForm.title")}),e.jsx(i,{variant:"body2",color:"text.secondary",children:n("pages.signup.signupDialog.subtitle")})]}),e.jsx(G,{onClick:l,size:"small","aria-label":n("common.close"),sx:{position:"absolute",top:0,insetInlineEnd:0},children:e.jsx(A,{})})]}),e.jsxs(u,{names:h.NEW_STACK_ENABLE_GOOGLE_SSO,children:[m,e.jsx(x,{fullWidth:!0,variant:"outlined",onClick:()=>d("google","GOOGLE"),startIcon:e.jsx(C,{}),children:n("pages.sso.loginWithGoogle")})]}),e.jsxs(u,{names:h.NEW_STACK_ENABLE_APPLE_SSO,children:[m,e.jsx(x,{fullWidth:!0,variant:"outlined",onClick:()=>d("apple","APPLE"),startIcon:e.jsx(P,{}),children:n("pages.sso.loginWithApple")})]}),e.jsx(W,{children:e.jsx(i,{variant:"body2",color:"text.secondary",children:n("pages.signup.signupDialog.or")})}),e.jsx(T,{dialogVariant:!0,hideSegmentationFields:j,onSuccess:a}),e.jsx(i,{variant:"body2",textAlign:"center",children:e.jsx(w,{i18nKey:"pages.signup.signupForm.login",components:{loginLink:e.jsx(N,{href:y,target:"_top"})}})})]})})};export{X as M}; 4 5//# debugId=d364797f-c29f-584a-a64e-914901474cfc
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.