PageSourceSearch

https://negosh.com/_next/static/chunks/pages/login-redirect-7cb0151f19ccd3f2.js

js negosh.com collected 2026-10-10 00:10:56 UTC 8,568 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ceaab06d-2c08-4a06-8f54-ed43dc98d84d",e._sentryDebugIdIdentifier="sentry-dbid-ceaab06d-2c08-4a06-8f54-ed43dc98d84d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8838],{56498:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login-redirect",function(){return n(24776)}])},63073:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(85893),r=n(14440);n(67294);var o=n(76483),s={display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},l=()=>(0,i.jsx)(r.Z,{sx:s,"data-testid":"login-oidc-loader",children:(0,i.jsx)(o.Z,{})})},303:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(85893),r=n(9008),o=n.n(r);function s(e){let{title:t,description:n,robots:r}=e;return(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:t}),n&&(0,i.jsx)("meta",{name:"description",content:n}),r&&(0,i.jsx)("meta",{name:"robots",content:r})]})}n(67294)},36487:function(e,t,n){"use strict";var i=n(85893);let r=(0,n(57680).Z)((0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M13.4584 10.8333H4.16671C3.9306 10.8333 3.73268 10.7534 3.57296 10.5937C3.41324 10.434 3.33337 10.2361 3.33337 9.99997C3.33337 9.76386 3.41324 9.56594 3.57296 9.40622C3.73268 9.2465 3.9306 9.16664 4.16671 9.16664H13.4584L11.0834 6.79164C10.9167 6.62497 10.8368 6.43052 10.8438 6.2083C10.8507 5.98608 10.9306 5.79164 11.0834 5.62497C11.25 5.4583 11.448 5.3715 11.6771 5.36455C11.9063 5.35761 12.1042 5.43747 12.2709 5.60414L16.0834 9.41664C16.1667 9.49997 16.2257 9.59025 16.2605 9.68747C16.2952 9.78469 16.3125 9.88886 16.3125 9.99997C16.3125 10.1111 16.2952 10.2152 16.2605 10.3125C16.2257 10.4097 16.1667 10.5 16.0834 10.5833L12.2709 14.3958C12.1042 14.5625 11.9063 14.6423 11.6771 14.6354C11.448 14.6284 11.25 14.5416 11.0834 14.375C10.9306 14.2083 10.8507 14.0139 10.8438 13.7916C10.8368 13.5694 10.9167 13.375 11.0834 13.2083L13.4584 10.8333Z",fill:"currentColor"})}),"ArrowRightAltIcon");t.Z=r},89815:function(e,t,n){"use strict";n.d(t,{B4:function(){return x},L:function(){return g},Of:function(){return b},Qv:function(){return l},dz:function(){return r},f3:function(){return u},kc:function(){return f},nT:function(){return w},tg:function(){return s},uJ:function(){return o},zD:function(){return p}});var i=n(52143);let r=e=>{let t=e.startsWith("#")?e.slice(1):e;if(!t)return null;let n=new URLSearchParams(t),i=n.get("submission_token"),r=n.get("screen");return i&&("password"===r||"otp"===r)?{submissionToken:i,screen:r,bridgeTransaction:n.get("bridge_transaction")}:null},o=(e,t)=>"".concat(i.yg,"/interaction/").concat(encodeURIComponent(e),"/").concat(t),s=e=>"".concat(i.yg,"/bridge/legacy/start?transaction=").concat(encodeURIComponent(e)),l=e=>{window.location.replace(e)},a="oidc.interaction.email_masked",c=e=>e.length<=1?e:e[0]+"*".repeat(e.length-1),d=e=>{let t=e.lastIndexOf("@");if(t<=0)return"";let n=e.slice(0,t),i=e.slice(t+1),r=i.lastIndexOf(".");if(r<=0)return"".concat(c(n),"@").concat(c(i));let o=i.slice(0,r),s=i.slice(r+1);return"".concat(c(n),"@").concat(c(o),".").concat(c(s))},u=e=>{let t=d(e);t&&window.sessionStorage.setItem(a,t)},x=()=>{var e;return null!==(e=window.sessionStorage.getItem(a))&&void 0!==e?e:""},h="oidc.interaction.auto_restart",f=()=>{window.sessionStorage.setItem(h,"true")},g=()=>"true"===window.sessionStorage.getItem(h),p=()=>{window.sessionStorage.removeItem(h)},m="oidc.interaction.attempt",w=(e,t)=>{window.sessionStorage.setItem(m,"".concat(t,":").concat(e))},b=e=>{let t=window.sessionStorage.getItem(m);if(!t)return null;window.sessionStorage.removeItem(m);let n=t.indexOf(":"),i=t.slice(0,n);return t.slice(n+1)!==e?null:"password"===i||"otp"===i||"resend"===i?i:null}},24776:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return I},default:function(){return L}});var i=n(85893),r=n(67294),o=n(40567),s=n(303),l=n(57551),a=n(49360),c=n(61730),d=n(14440),u=n(94246),x=n(41664),h=n.n(x),f=n(37871),g=n(68520),p=n(55130),m=n(63073),w=n(84118),b=n(10498),j=n(89961),y=n(36487),Z=n(89815),C={outerWrapper:{width:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",overflowX:"clip"},innerContainer:{maxWidth:"1320px",width:"100%",position:"relative",zIndex:1,display:"flex",flexDirection:{xs:"column",md:"row"}},mobileHeader:{width:"100%",py:"16px",display:"flex",justifyContent:"center",alignItems:"center"},brandingSide:{flex:{xs:"1",md:"0 0 50%"},display:{xs:"none",md:"flex"},flexDirection:"column",justifyContent:"center",alignItems:"center",p:{xs:"40px 16px",md:"24px"},color:"white"},formSide:{flex:{xs:"1",md:"0 0 50%"},bgcolor:"white",color:"neutralStrong",display:"flex",flexDirection:"column",alignItems:"center",p:{xs:"24px 16px",md:"24px"},boxShadow:{xs:"none",md:"100vw 0 0 100vw white"}},formWrapper:{maxWidth:{xs:"100%",md:"472px"},width:"100%",display:"flex",flexDirection:"column",gap:{xs:"16px",md:"20px"},my:"auto"},titleContainer:{display:"flex",flexDirection:"column",gap:"4px"},description:{color:"neutralSubdued","& strong":{fontWeight:600}},buttons:{display:"flex",flexDirection:"column",gap:"12px"},supportRow:{color:"neutralSubdued",textAlign:"center"}};let v=e=>{try{let t=new URL(e);return"https:"===t.protocol||"http:"===t.protocol}catch(e){return!1}},_=e=>{let t=new URLSearchParams(e.startsWith("#")?e.slice(1):e),n=t.get("email")||"",i=t.get("site_name")||"",r=t.get("site_url")||"",o=t.get("switch_url")||"";return n&&i&&v(r)?{email:n,siteName:i,siteUrl:r,switchUrl:v(o)?o:""}:null};var S=()=>{let{t:e}=(0,l.Z)(),t=(0,a.Z)(),n=(0,c.Z)(t.breakpoints.down("md")),o=(0,j.Z)(),{logoutNoRedirect:s}=(0,b.ZP)(),[x,v]=(0,r.useState)(null),S=(0,r.useRef)(!1);(0,r.useLayoutEffect)(()=>
1{if(S.current)return;S.current=!0;let e=_(window.location.hash);if(window.history.replaceState(window.history.state,"",w.Z.loginRedirect),!e){(0,Z.Qv)(w.Z.home);return}v(e)},[]);let I=async()=>{if(null==x?void 0:x.switchUrl){(0,Z.Qv)(x.switchUrl);return}await s()||(0,Z.Qv)(w.Z.login)};if(!x)return(0,i.jsx)(m.Z,{});let L=o.isWhiteLabel?o.images.header:o.images.white,k=o.isWhiteLabel?o.images.logoLogin:o.images.white;return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(h(),{href:w.Z.home,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(d.Z,{component:"a",sx:[C.mobileHeader,o.auth.mobileHeaderSx(t)],"data-testid":"mobile-header",children:(0,i.jsx)("img",{src:L,alt:"Negosh",style:o.auth.mobileLogo,"data-testid":"mobile-logo"})})}),(0,i.jsx)(d.Z,{sx:[C.outerWrapper,o.auth.outerWrapperSx(t)],"data-testid":"login-redirect-container",children:(0,i.jsxs)(d.Z,{sx:C.innerContainer,children:[(0,i.jsx)(d.Z,{sx:C.brandingSide,"data-testid":"branding-side",children:(0,i.jsx)(h(),{href:w.Z.home,children:(0,i.jsx)("img",{src:k,alt:"Negosh",style:o.auth.desktopLogo,"data-testid":"desktop-logo"})})}),(0,i.jsx)(d.Z,{sx:C.formSide,"data-testid":"form-side",children:(0,i.jsxs)(d.Z,{sx:C.formWrapper,children:[(0,i.jsxs)(d.Z,{sx:C.titleContainer,children:[(0,i.jsx)(u.Z,{variant:"headingL",md:"headingXL",weight:"semibold","data-testid":"login-redirect-title",children:e("login-redirect.title")}),(0,i.jsx)(u.Z,{sx:C.description,"data-testid":"login-redirect-description",children:(0,i.jsx)(f.cC,{i18nKey:"login-redirect.description",values:{email:x.email,siteName:x.siteName},components:[(0,i.jsx)("strong",{},"bold")]})})]}),(0,i.jsxs)(d.Z,{sx:C.buttons,children:[(0,i.jsx)(g.Z,{fullWidth:!0,endIcon:(0,i.jsx)(y.Z,{}),onClick:()=>(0,Z.Qv)(x.siteUrl),"data-testid":"go-to-site-button",children:e("login-redirect.go-to-site",{siteName:x.siteName})}),(0,i.jsx)(g.Z,{fullWidth:!0,customVariant:"whitePrimaryOutlined",onClick:I,"data-testid":"switch-account-button",children:e("login-redirect.sign-in-with-a-different-account")})]}),(0,i.jsxs)(u.Z,{variant:"bodyS",sx:C.supportRow,"data-testid":"login-redirect-support",children:[e("login-redirect.not-sure-where-your-site-is")," ",(0,i.jsx)(p.Z,{href:"mailto:[email protected]","data-testid":"contact-support-link",children:e("contact-support")})]})]})})]})})]})},I=!0,L=()=>{let{t:e}=(0,l.Z)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{title:e("page-title.login"),robots:"noindex, nofollow"}),(0,i.jsx)(o.Z,{showHeader:!1,noFooter:!0,children:(0,i.jsx)(S,{})})]})}}},function(e){e.O(0,[7e3,2902,7775,358,567,2888,9774,179],function(){return e(e.s=56498)}),_N_E=e.O()}]);

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.