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]="1b0fc681-0f0f-520e-a582-dd9e0ff7575f")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3290],{1097:(e,t,s)=>{"use strict";s.d(t,{b:()=>i});var a=s(45023),r=s(7528);let i=e=>{let{invalid:t,style:s,type:i,...o}=e;return(0,a.Y)(r.A_,{type:i||"text",style:{...s,display:"block"},error:t,fullWidth:!0,inputProps:{"data-cy":"labeled-text-input"},...o})}},5728:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>Y});var a=s(45023),r=s(2004),i=s.n(r),o=s(84221),n=s.n(o),c=s(36439),l=s(90524),d=s(38982),h=s(41471),p=s(11752),u=s(62786),m=s(45462),g=s(17162),f=s(14162),x=s(78631),y=s(96460),b=s(88075),S=s(97953),w=s(53189),v=s(27271),I=s(14791),N=s(84404);let Y=function(){let{encodedSamlResponse:e,isResolved:t}=(0,y.S)(),s=(0,h.useSelector)(e=>e.app.brand.design?.common.logo.src),r=(0,h.useDispatch)(),{t:o}=(0,l.B)(["pages/sso"]),Y=(0,b.R)(),{redirectSuccess:_,redirectFailed:E}=(0,w.w)(),{linkSamlAccount:j}=(0,v.Uv)(),{data:k}=(0,v.BG)(e,{onError:()=>{N.Q7.clear(),E()}}),[D,L]=(0,c.useState)(""),[T,R]=(0,c.useState)(!1),[C,B]=(0,c.useState)(),O={"password-invalid":o("Incorrect password. Check the password you set for this community and try again."),network:o("Could not connect. Check your network connection and try again.")};if((0,c.useEffect)(()=>{t&&!e&&E()},[t,e]),!e||!k)return null;let{maskedEmail:F,configurationName:A}=k,P=async t=>{t.preventDefault();try{R(!0),B(void 0);let{token:t}=await j(e,D);N.Q7.clear(),r(S.jl.request({token:t,successCb:_,errCb:E}))}catch(e){if(R(!1),!(0,I.F)(e)){N.Q7.clear(),E();return}if(void 0===e.response)return void B("network");if(e.response.data?.error?.code===p.TH.PasswordInvalid){L(""),B("password-invalid");return}N.Q7.clear(),E()}};return(0,a.FD)(f.B,{height:450,headerText:o("Link your account"),headerImage:(0,a.Y)("section",{className:"jsx-4d35ab62cec4f98a text-center image-container",children:(0,a.Y)("img",{src:s,style:{maxWidth:240},alt:"commmune-logo",className:"jsx-4d35ab62cec4f98a"})}),children:[(0,a.Y)("p",{className:"jsx-4d35ab62cec4f98a body-txt",children:o("Youâve signed in with {{configurationName}}. This community already has an account registered with the same email address.",{configurationName:A||"SSO"})}),F&&(0,a.FD)("section",{className:"jsx-4d35ab62cec4f98a acct-box",children:[(0,a.Y)(m.A,{style:{fontSize:20,color:"#717171"}}),(0,a.FD)("span",{className:"jsx-4d35ab62cec4f98a",children:[(0,a.Y)("span",{className:"jsx-4d35ab62cec4f98a acct-email",children:F}),(0,a.Y)("span",{className:"jsx-4d35ab62cec4f98a acct-caption",children:o("Existing account")})]})]}),(0,a.Y)("p",{className:"jsx-4d35ab62cec4f98a body-txt",children:(0,a.Y)(d.x,{t:o,i18nKey:"To confirm itâs you, enter <1>the password for this community</1>.",components:{1:(0,a.Y)("strong",{className:"jsx-4d35ab62cec4f98a"})}})}),(0,a.Y)("p",{className:"jsx-4d35ab62cec4f98a note-sm",children:o("Note: this is not your authentication service password â itâs the password you set when you registered for this community.")}),(0,a.FD)("form",{onSubmit:P,className:"jsx-4d35ab62cec4f98a",children:[(0,a.Y)("section",{className:"jsx-4d35ab62cec4f98a form-group password-field",children:(0,a.Y)(x.E,{password:D,onChange:e=>L(e.target.value),label:o("Password for this community"),invalid:void 0!==C,helperText:C&&O[C]})}),(0,a.Y)("section",{className:"jsx-4d35ab62cec4f98a cta-row text-center",children:(0,a.Y)(g.a,{type:"submit",className:"w-75",color:Y.ctaColor,disabled:T||D.length<1,"data-cy":"sso-link-button",children:o("Link account and log in")})})]}),(0,a.FD)("section",{className:"jsx-4d35ab62cec4f98a text-center foot",children:[(0,a.Y)("p",{className:"jsx-4d35ab62cec4f98a note-sm",children:o("Youâll only be asked to do this once.")}),(0,a.Y)(n(),{className:"foot-link",href:u.default.VIEW_PASSWORD_NEW,"data-cy":"forgot-password-link",children:o("Forgot Password? (reset)")}),(0,a.Y)(n(),{className:"foot-link",href:u.default.SSO_SAML_LINK_HELP,"data-cy":"sso-link-help-link",children:o("Donât recognize this account?")})]}),(0,a.Y)(i(),{id:"4d35ab62cec4f98a",children:".image-container.jsx-4d35ab62cec4f98a{margin-bottom:30px}.body-txt.jsx-4d35ab62cec4f98a{font-size:14px;color:#454545;line-height:1.8;margin:24px 0 0}.acct-box.jsx-4d35ab62cec4f98a{display:flex;align-items:center;gap:10px;background:#f7f7f7;border-radius:6px;padding:12px 14px;margin-top:20px}.acct-email.jsx-4d35ab62cec4f98a{display:block;font-size:14px;font-weight:600;color:#262626;line-height:1.4}.acct-caption.jsx-4d35ab62cec4f98a{display:block;font-size:11px;color:#717171;margin-top:1px}.note-sm.jsx-4d35ab62cec4f98a{font-size:12px;color:#909090;line-height:1.7;margin:8px 0 0}.password-field.jsx-4d35ab62cec4f98a{margin-top:24px}.cta-row.jsx-4d35ab62cec4f98a{margin-top:32px}.foot.jsx-4d35ab62cec4f98a{margin-top:16px}.foot.jsx-4d35ab62cec4f98a .foot-link{display:block;margin-top:8px;font-size:12px;color:#909090;text-decoration:underline}"})]})}},9223:(e,t,s)=>{"use strict";s.d(t,{W:()=>n});var a=s(45023),r=s(2004),i=s.n(r),o=s(36439);class n extends o.Component{render(){return(0,a.FD)("div",{className:i().dynamic([["c952b8f945b68b08",[this.props.width?this.props.width:"360",this.props.center?"0":"-10%",this.props.height]]])+" sharedContainer",children:[this.props.children,(0,a.Y)(i(),{id:"c952b8f945b68b08",dynamic:[this.props.width?this.props.width:"360",this.props.center?"0":"-10%",this.props.height],children:`.sharedContainer.__jsx-style-dynamic-selector{width:90%;max-width:${this.props.width?this.props.width:"360"}px;margin:auto;position:absolute;top:${this.props.center?"0":"-10%"};bottom:0;left:0;right:0;height:${this.props.height}px}`})]})}}},14162:(e,t,s)=>{"use strict";s.d(t,{B:()=>l});var a=s(45023),r=s(2004),i=s.n(r);s(36439);var o=s(9223),n=s(80328),c=s(88075);function l({disableSiteDesign:e,headerText:t,headerImage:s,children:r,...d}){let h=(0,c.R)();return e?(0,a.FD)(o.W,{...d,children:[s,(0,a.Y)("section",{children:(0,a.Y)(n.n,{text:t})}),r]}):(0,a.FD)("div",{className:"jsx-bafd874e9de19258 siteDesignBackgroun
3d",children:[(0,a.FD)("div",{className:"jsx-bafd874e9de19258 siteDesignCard",children:[(0,a.FD)("div",{className:"jsx-bafd874e9de19258",children:[s,(0,a.Y)("section",{className:"jsx-bafd874e9de19258",children:(0,a.Y)(n.n,{text:t,color:h.headingColor})})]}),(0,a.Y)("div",{className:"jsx-bafd874e9de19258 siteDesignCardContent",children:r})]}),(0,a.Y)(i(),{id:"bafd874e9de19258",children:".siteDesignBackground.jsx-bafd874e9de19258{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding-block:16px}.siteDesignCard.jsx-bafd874e9de19258{width:min(408px,90%);min-height:514px;display:grid;grid-template-rows:auto 1fr;align-items:center;margin:0 auto;background-color:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.06);padding:32px 24px}.siteDesignCardContent.jsx-bafd874e9de19258{min-width:0}.siteDesignCard.jsx-bafd874e9de19258 button:disabled{opacity:.25}"})]})}},26687:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sso/saml/link",function(){return s(5728)}])},27271:(e,t,s)=>{"use strict";s.d(t,{BG:()=>c,B_:()=>n,Ki:()=>l,Uv:()=>h,mb:()=>d});var a=s(22567),r=s(11752),i=s(64640),o=s(78374);let n=()=>{let e=(0,i.q)();return{validateSamlResponse:async t=>(0,o.Lx)(e,t)}},c=(e,{onError:t})=>{let s=(0,i.q)();return(0,a.A)(e?["/sso/saml/validate",e]:null,async([,e])=>{let t=await (0,o.Lx)(s,e);if(!t.isValid||t.accountLinkingStatus!==r.AK.unlinkedEmailVerifiedUser)throw Error("SAML response is not awaiting account linking");return t},{shouldRetryOnError:!1,onError:t})},l=()=>{let e=(0,i.q)();return{ssoSignInWithSaml:async t=>(0,o.vW)(e,t)}},d=()=>{let e=(0,i.q)();return{ssoSignUpWithSaml:async(t,s,a)=>(0,o.HN)(e,t,s,a)}},h=()=>{let e=(0,i.q)();return{linkSamlAccount:async(t,s)=>(0,o.Tc)(e,t,s)}}},45462:(e,t,s)=>{"use strict";var a=s(3396);t.A=void 0;var r=a(s(70348)),i=s(2183);t.A=(0,r.default)((0,i.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline")},53189:(e,t,s)=>{"use strict";s.d(t,{w:()=>c});var a=s(62786),r=s(20764),i=s(36439),o=s(98611),n=s(84404);let c=()=>{let e=(0,r.useRouter)();return{redirectOidcSignUp:()=>{e.replace(a.default.SSO_OIDC_SIGN_UP)},redirectSamlSignUp:()=>{e.replace(a.default.SSO_SAML_SIGN_UP)},redirectSamlLink:()=>{e.replace(a.default.SSO_SAML_LINK)},redirectSuccess:()=>{let e=n.tN.popURL(),t=e&&"undefined"!==e?e:a.default.VIEW_HOME;(0,o.eM)(t)},redirectFailed:(0,i.useCallback)(()=>e.replace(a.default.SSO_FAILED),[e]),redirectSamlLinkFailed:()=>e.replace(a.default.SSO_SAML_LINK_FAILED)}}},78374:(e,t,s)=>{"use strict";s.d(t,{ES:()=>n,HN:()=>d,Lx:()=>c,Tc:()=>h,d4:()=>a,vW:()=>l});let a=async e=>{let{data:t}=await e.get("/sso/saml/configurations");return t};class r extends Error{}class i extends Error{}class o extends Error{}let n=async(e,t)=>{try{let{data:s}=await e.get("/sso/saml/request",{params:{samlConfigurationId:t}});return s}catch(e){throw new r(e.message||"Saml request url fetch failed")}},c=async(e,t)=>{try{let{data:s}=await e.post("/sso/saml/validate",{encodedSamlResponse:t});return s}catch(e){throw new i(e.message||"Saml response validation failed")}},l=async(e,t)=>{try{let{data:s}=await e.post("/sso/saml/signin",{encodedSamlResponse:t});return s}catch(e){throw new o(e.message||"Sign-in failed")}},d=async(e,t,s,a)=>{try{let{data:r}=await e.post("/sso/saml/signup",{encodedSamlResponse:t,mailNotifyOptions:s,gdpr:a});return r}catch(e){throw new o(e.message||"Sign-up failed")}},h=async(e,t,s)=>{let{data:a}=await e.post("/sso/saml/link",{encodedSamlResponse:t,password:s});return a}},78631:(e,t,s)=>{"use strict";s.d(t,{E:()=>c});var a=s(45023),r=s(36439),i=s(90524),o=s(1097),n=s(14608);let c=e=>{let{t}=(0,i.B)("pages/view"),s=r.useRef(null);return(0,a.Y)(o.b,{inputRef:s,name:"password",type:"password",label:e.label??t("Password"),value:e.password,onChange:e.onChange,invalid:e.invalid,helperText:e.helperText,"data-cy":"input-password",InputProps:{endAdornment:(0,a.Y)(n.k,{inputFormRef:s})}})}},80328:(e,t,s)=>{"use strict";s.d(t,{n:()=>c});var a=s(45023),r=s(2004),i=s.n(r),o=s(63669),n=s(7528);let c=e=>(0,a.FD)(a.FK,{children:[(0,a.FD)("section",{className:i().dynamic([["b0a4e6c0d54c39ad",[e.color||"#254860"]]])+" header",children:[e.route&&(0,a.Y)(o.N,{route:e.route,children:(0,a.Y)(n.K0,{style:{position:"absolute",top:-5,left:0},children:(0,a.Y)("i",{className:i().dynamic([["b0a4e6c0d54c39ad",[e.color||"#254860"]]])+" fas fa-chevron-left"})})}),(0,a.Y)("span",{className:i().dynamic([["b0a4e6c0d54c39ad",[e.color||"#254860"]]]),children:e.text})]}),(0,a.Y)(i(),{id:"b0a4e6c0d54c39ad",dynamic:[e.color||"#254860"],children:`.header.__jsx-style-dynamic-selector{font-size:24px;font-weight:bold;text-align:center}.header.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{color:${e.color||"#254860"}}.iconButton.__jsx-style-dynamic-selector{position:absolute;top:7px;left:15px}`})]})},84404:(e,t,s)=>{"use strict";s.d(t,{Ae:()=>a,Al:()=>o,Q7:()=>n,RG:()=>r,tN:()=>i});class a{static{this.TITLE="temporaryPostTitle"}static{this.BODY="temporaryPostBody"}static{this.IS_TWEET="temporaryPostIsTweet"}static{this.URL_PREVIEW="temporaryUrlPreview"}
3static store(e,t,s){sessionStorage.setItem(this.TITLE,e),sessionStorage.setItem(this.BODY,t),this.storeIsTweet(s)}static storePreview(e){sessionStorage.setItem(this.URL_PREVIEW,JSON.stringify(e))}static storeTitle(e){sessionStorage.setItem(this.TITLE,e)}static storeBody(e){sessionStorage.setItem(this.BODY,e)}static storeIsTweet(e){void 0!==e&&localStorage.setItem(this.IS_TWEET,`${e}`)}static getTitle(){return sessionStorage.getItem(this.TITLE)||""}static getBody(){return sessionStorage.getItem(this.BODY)||""}static getIsTweet(){return"true"===localStorage.getItem(this.IS_TWEET)}static clearSessionStorage(){sessionStorage.removeItem(this.TITLE),sessionStorage.removeItem(this.BODY)}}class r{static{this.BODY="temporaryCommentBody"}static storeBody(e){sessionStorage.setItem(this.BODY,e)}static getBody(){return sessionStorage.getItem(this.BODY)||""}static clearSessionStorage(){sessionStorage.removeItem(this.BODY)}}let i={URL:"temporaryReferrerURL",storeURL:e=>{sessionStorage.setItem(i.URL,void 0===e?"undefined":e)},popURL:()=>{let e=sessionStorage.getItem(i.URL)||"";return sessionStorage.removeItem(i.URL),"undefined"===e?"":e}},o=(e,t)=>{let s=()=>{let s=Number(localStorage.getItem(e));if(!s)return!1;let a=Date.now()-s;return a>=0&&a<t};return{isAvailable:()=>{try{return!s()}catch{return!1}},tryConsume:()=>{try{if(s())return!1;return localStorage.setItem(e,String(Date.now())),!0}catch{return!1}},clear:()=>{try{localStorage.removeItem(e)}catch{return}}}},n={KEY:"samlEncodedResponse",store:e=>{try{sessionStorage.setItem(n.KEY,e)}catch{return}},load:()=>{try{return sessionStorage.getItem(n.KEY)??void 0}catch{return}},clear:()=>{try{sessionStorage.removeItem(n.KEY)}catch{return}}}},88075:(e,t,s)=>{"use strict";s.d(t,{R:()=>i});var a=s(41471),r=s(84284);let i=()=>(0,a.useSelector)(r.$f)},96460:(e,t,s)=>{"use strict";s.d(t,{S:()=>o});var a=s(36439),r=s(41471),i=s(84404);let o=()=>{let e=(0,r.useSelector)(e=>e.user.samlResponse),[t,s]=(0,a.useState)(),[o,n]=(0,a.useState)(void 0!==e);return(0,a.useEffect)(()=>{void 0===e&&s(i.Q7.load()),n(!0)},[e]),{encodedSamlResponse:e??t,isResolved:o}}}},e=>{e.O(0,[2567,636,6593,8792],()=>e(e.s=26687)),_N_E=e.O()}]); 4//# sourceMappingURL=link-efbeebc43ffd69bd.js.map 5//# debugId=1b0fc681-0f0f-520e-a582-dd9e0ff7575f
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.