PageSourceSearch

https://pinkpro.ai/_next/static/chunks/app/login/page-0ca2e0b7b53fd0e7.js

js pinkpro.ai collected 2026-10-05 13:53:32 UTC 8,828 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="29e3f5a3-75c7-4819-aa01-8f4877e67eec",e._sentryDebugIdIdentifier="sentry-dbid-29e3f5a3-75c7-4819-aa01-8f4877e67eec")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{6062:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(95155),l=i(4071),o=i(60192);let r=()=>(0,n.jsx)(l.A,{sx:{display:"flex",height:"100vh",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(o.A,{})})},7898:e=>{"use strict";e.exports=JSON.parse('{"k":"08.09.2026 10:44:48"}')},13504:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>E});var n=i(95155),l=i(12115),o=i(73321),r=i(4071),a=i(37721),s=i(60192),d=i(27374),c=i(45228),p=i(48022),u=i(99129),h=i(47970),g=i(54921),x=i(77928),m=i(36004),f=i(89214),b=i(70767),v=i(57142),_=i(81901),j=i(28166),k=i(6062),y=i(71540);let A=(0,u.Ay)(r.A)(({theme:e})=>({width:"100%",backgroundColor:e.palette.background.paper,padding:e.spacing(4,3),"@media (max-height: 700px)":{padding:e.spacing(2,3)},[e.breakpoints.up("sm")]:{padding:e.spacing(5,4)},[e.breakpoints.up("md")]:{display:"flex",alignItems:"center",justifyContent:"center",width:450,flexShrink:0,padding:e.spacing(7),height:"100vh"}})),w=(0,u.Ay)(r.A)(({theme:e})=>({width:"100%",aspectRatio:"1500 / 1120",maxHeight:"40vh",backgroundImage:"url(/kollage-Bogen_Mountain.png)",backgroundSize:"cover",backgroundPosition:"center top",backgroundRepeat:"no-repeat",[e.breakpoints.up("md")]:{aspectRatio:"auto",maxHeight:"none",height:"100vh",flex:"1 1 auto"}})),I=(0,u.Ay)(r.A)(({theme:e})=>({width:"100%",maxWidth:420,margin:"0 auto",[e.breakpoints.up("md")]:{maxWidth:"100%"}})),C=()=>{let{t:e,i18n:t}=(0,x.Bd)(),{data:i,status:u}=(0,g.wV)(),k=(0,h.A)(),C=(0,o.useSearchParams)(),E=C.get("kc_idp_hint"),D=C.get("error_reason"),[N]=(0,l.useState)(!!E),[S,O]=(0,l.useState)(""),[P,T]=(0,l.useState)(!1),[U,z]=(0,l.useState)(""),[B,L]=(0,l.useState)(!1),[V,W]=(0,l.useState)(!!D),R=(0,f.pO)(),J=window.location.origin;(0,l.useEffect)(()=>{"loading"!==u&&i?.error==="RefreshTokenError"&&(0,g.CI)()},[u,i]),(0,l.useEffect)(()=>{E&&(0,g.Jv)("keycloak",{callbackUrl:"/"},{kc_idp_hint:E})},[E]);let X=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S);(0,l.useEffect)(()=>{D&&z(e(`login.jit_error.${D}`,e("login.sso_error")))},[D,e]),(0,l.useEffect)(()=>{let e=e=>{e.persisted&&(L(!1),T(!1))};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[]);let H=async()=>{if(S){T(!0),z("");try{let t=await R.auth.ssoDiscover({email:S}),i=t?.data?.[0],n=i?.ssoIdpIdentifier??i?.sso_idp_identifier,l=i?.jitEnabled??i?.jit_enabled;if(!n)return void z(e("login.sso_provider_not_found"));L(!0),(0,y.D)(R,{ssoIdpIdentifier:n,jitEnabled:l},J)}catch(t){t instanceof m.hD?z(e("login.sso_provider_not_found")):z(e("login.sso_error"))}finally{T(!1)}}};return N||"authenticated"===u&&!i?.error?(0,n.jsx)(r.A,{sx:{display:"flex",height:"100vh",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(s.A,{})}):(0,n.jsxs)(r.A,{sx:{position:"relative",display:{xs:"block",md:"flex"},flexDirection:{md:"row-reverse"},minHeight:{md:"100vh"}},children:[(0,n.jsx)(w,{}),(0,n.jsx)(A,{children:(0,n.jsxs)(I,{children:[(0,n.jsx)(r.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(j.A,{children:(0,n.jsx)("img",{src:"/pro-logo.svg",alt:"logo",width:100,height:100})})}),(0,n.jsxs)(r.A,{sx:{mb:{xs:4,md:6},"@media (max-height: 700px)":{mb:2},textAlign:"center"},children:[(0,n.jsxs)(p.A,{variant:"h5",sx:{fontWeight:600,mb:1.5},children:[e("login.welcome")," PINKpro!"]}),(0,n.jsx)(p.A,{variant:"body2",children:e("login.helper_message")})]}),(0,n.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,n.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:e=>{e.preventDefault(),(0,g.Jv)("keycloak",{callbackUrl:"/"})},style:{width:"100%"},children:(0,n.jsx)(a.A,{type:"submit",fullWidth:!0,size:"large",variant:"contained",disabled:P||B,sx:{backgroundColor:k.palette.primary.main,color:k.palette.primary.contrastText,"&:hover":{backgroundColor:k.palette.primary.dark}},children:e("login.login_with_keycloak")})}),(0,n.jsx)(d.A,{sx:{width:"100%",my:{xs:3,md:4},"@media (max-height: 700px)":{my:1.5},color:"text.disabled"},children:e("login.or")}
1),!V&&(0,n.jsx)(a.A,{fullWidth:!0,size:"large",variant:"outlined",onClick:()=>W(!0),children:e("login.login_with_sso")}),V&&(0,n.jsxs)(r.A,{component:"form",noValidate:!0,autoComplete:"off",onSubmit:e=>{e.preventDefault(),H()},sx:{width:"100%",mb:{xs:2,md:7}},children:[(0,n.jsx)(c.A,{fullWidth:!0,type:"email",value:S,onChange:e=>O(e.target.value),placeholder:e("login.sso_email_placeholder"),size:"small",sx:{mb:2},error:!!U,helperText:U,disabled:P||B}),(0,n.jsx)(a.A,{fullWidth:!0,size:"large",variant:"outlined",type:"submit",disabled:P||!X||B,children:e("login.login_with_sso")})]}),(0,n.jsx)(r.A,{sx:{position:"absolute",top:8,left:16,zIndex:1},children:(0,n.jsx)(v.A,{icon:(0,n.jsx)(_.In,{icon:"fluent:translate-20-regular"}),menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},menuItems:b.oj.map(e=>({id:e.locale,label:e.locale.toUpperCase(),selected:t.language===e.locale,onClick:()=>t.changeLanguage(e.locale)}))})})]})]})})]})},E=()=>(0,n.jsx)(l.Suspense,{fallback:(0,n.jsx)(k.A,{}),children:(0,n.jsx)(C,{})})},28166:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var n=i(95155),l=i(47970),o=i(15967),r=i(87358);let{NEXT_PUBLIC_BASE_API_URL:a}=r.env,s="test"===r.env.NEXT_PUBLIC_NODE_ENV,d="development"===r.env.NEXT_PUBLIC_NODE_ENV,c="production"===r.env.NEXT_PUBLIC_NODE_ENV,p="po"===r.env.NEXT_PUBLIC_NODE_ENV,u=()=>a??"",h={isTest:s,isDev:d,isProduction:c,isPO:p,getApimBaseUrl:u,isOnDevOrTestStage:()=>{let e=u();return!!e&&(e.includes("//api.companion-dev.pinktum.dev")||e.includes("//localhost"))}};i(12115);let g=({children:e})=>{let t=(0,l.A)(),{isDev:i,isTest:r,isPO:a}=h,s=[a&&{label:"PO",color:t.palette.custom.POBackground},r&&{label:"QA",color:t.palette.custom.success},i&&{label:"DEV",color:t.palette.custom.devBackground}].filter(Boolean)[0];return s?(0,n.jsx)(o.A,{badgeContent:s.label,sx:{"& .MuiBadge-badge":{backgroundColor:s.color,color:t.palette.primary.contrastText,right:"-9px",width:"35px",height:"16px"}},children:e}):e}},57142:(e,t,i)=>{"use strict";i.d(t,{A:()=>m});var n=i(95155),l=i(12115),o=i(4071),r=i(84249),a=i(43401),s=i(80322),d=i(27374),c=i(98500),p=i.n(c),u=i(81901);let h=({icon:e,...t})=>(0,n.jsx)(u.In,{icon:e,fontSize:"1.5rem",...t}),g={width:"100%",display:"flex",alignItems:"center",color:"text.primary",gap:2,textDecoration:"none","& svg":{mr:2,width:"20px",height:"20px",color:"text.primary"}},x=({sx:e,children:t,option:i})=>i.href?(0,n.jsx)(o.A,{component:p(),href:i.href,...i.linkProps,sx:{...g,...e},children:t}):(0,n.jsx)(o.A,{sx:{...g,...e},children:t}),m=({icon:e,menuItems:t,buttonProps:i,menuProps:c,renderCustomButton:p,highlightIconWhenOpen:u=!0})=>{let[g,m]=(0,l.useState)(null),f=!!g,b=()=>{m(null)},v={"aria-controls":f?"long-menu":void 0,"aria-expanded":f?"true":void 0,"aria-haspopup":"true",onClick:e=>{m(e.currentTarget)}},_=t.filter(e=>!e.hidden);return(0,n.jsxs)(n.Fragment,{children:[p?p(v,f):(0,n.jsx)(r.A,{...i,...v,sx:{color:f&&u?"primary.light":"primary",...i?.sx},children:e??(0,n.jsx)(h,{icon:"fluent:more-horizontal-20-regular"})}),(0,n.jsx)(a.A,{anchorEl:g,open:f,onClose:b,...c,children:_.map((e,t)=>(0,n.jsxs)(o.A,{children:[(0,n.jsx)(s.A,{selected:e.selected,sx:e.sx,onClick:t=>{e.onClick?.(t),b()},children:(0,n.jsxs)(x,{option:e,children:[e.icon,e.label]})}),_.length-1!==t&&e.withDivider&&(0,n.jsx)(d.A,{})]},e.id??t))})]})}},61186:(e,t,i)=>{Promise.resolve().then(i.bind(i,13504))},70767:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>p,oj:()=>d});var n=i(50931),l=i(49241),o=i(77928),r=i(79993);let a=encodeURIComponent(i(7898).k),s={locale:"de",nativeName:"supported_locales.de"},d=[s,{locale:"en",nativeName:"supported_locales.en"}],c=d.map(e=>e.locale);n.Ay.use(l.A).use(r.A).use(o.r9).init({backend:{loadPath:`/locales/{{lng}}.json?v=${a}`},lng:void 0,preload:[],supportedLngs:c,fallbackLng:s.locale,debug:!1,react:{useSuspense:!1},interpolation:{escapeValue:!1,formatSeparator:","}}),n.Ay.on("languageChanged",e=>{document.documentElement.setAttribute("lang",e)});let p=n.Ay},71540:(e,t,i)=>{"use strict";i.d(t,{D:()=>l});var n=i(54921);let l=(e,t,i)=>{t.jitEnabled?window.location.href=e.auth.ssoJitRedirectUrl({idp:t.ssoI
1dpIdentifier,redirectUri:i}):(0,n.Jv)("keycloak",{callbackUrl:i},{kc_idp_hint:t.ssoIdpIdentifier})}}},e=>{e.O(0,[3866,1081,7288,7348,6985,2751,9313,5269,9793,8441,6601,7358],()=>e(e.s=61186)),_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.