1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7603],{38495:function(e,r,n){var l=n(11527),t=n(96007),s=n(35068);let Card=e=>{let{children:r,...n}=e,i=(0,t.m)("Card",e);return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(s.x,{__css:i,...n,children:r})})};Card.defaultProps={children:null},r.Z=Card},8599:function(e,r,n){n.d(r,{$:function(){return Footer}});var l=n(11527),t=n(96007),s=n(35068),i=n(6218),a=n(53636),o=n.n(a),c=n(43049),d=n(89874),u=n(82103);let Footer=e=>{let r=(0,c.r)(),n=(0,d.useTranslations)("common"),a=(0,t.m)("Footer");return(0,l.jsxs)(s.x,{mt:2,role:"contentinfo",sx:{...a,...e},children:[(0,l.jsx)(o(),{href:(0,u.sx)(r),legacyBehavior:!0,passHref:!0,children:(0,l.jsx)(i.r,{p:"8px",target:"_blank",children:n("legalNotice")})}),(0,l.jsx)(o(),{href:(0,u.dg)(r),legacyBehavior:!0,passHref:!0,children:(0,l.jsx)(i.r,{p:"8px",target:"_blank",children:n("termOfUse")})}),(0,l.jsx)(o(),{href:(0,u.uC)(r),legacyBehavior:!0,passHref:!0,children:(0,l.jsx)(i.r,{p:"8px",target:"_blank",children:n("privacyPolicy")})})]})}},13583:function(e,r,n){var l=n(11527),t=n(58537),s=n(28213),i=n(35068),a=n(38305),o=n(42753),c=n(31940),d=n(29490),u=n(47889),x=n.n(u),h=n(68437),g=n.n(h),m=n(50959),f=n(68491),j=n(82103),p=n(43049);r.Z=e=>{let{title:r,errors:n=[],pageName:u,stepName:h,dynamicFields:b=[]}=e,E=(0,p.r)();(0,m.useEffect)(()=>{n.length&&window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]);let v=u&&h?(0,j.XN)(E,u,h):[],F=(0,j.B2)(v.concat(b));if(0===n.length)return null;let y=n.filter(f.CI),w=n.filter(f.SJ).map(e=>e.field in F?{...e,field:F[e.field]}:e);return(0,l.jsxs)(t.b,{status:"error",variant:"solid",children:[(0,l.jsx)(s.z,{}),(0,l.jsxs)(i.x,{children:[(0,l.jsx)(a.C,{children:r}),(0,l.jsx)(o.X,{children:(0,l.jsxs)(c.QI,{children:[y.map(e=>(0,l.jsx)(c.HC,{children:e.message},e.message)),w.map(e=>{let{messages:r,field:n}=e;return(0,l.jsxs)(c.HC,{children:[(0,l.jsx)(d.x,{children:"".concat(g()(x()(n)),":")}),(0,l.jsx)(c.QI,{children:r.map(e=>(0,l.jsx)(c.HC,{children:e},e))})]},n)})]})})]})]})}},25599:function(e,r,n){var l=n(11527),t=n(89832);r.Z=e=>{let{children:r,...n}=e;return(0,l.jsx)(t.M,{...n,flexDirection:"column",flexGrow:1,children:r})}},17603:function(e,r,n){n.d(r,{Z:function(){return layouts_LoginPageLayout}});var l=n(11527),t=n(20734),s=n(96007),i=n(58537),a=n(28213),o=n(29490),c=n(6218),d=n(79409),u=n(89235),x=n(35068),h=n(28852),g=n(14605),m=n(53636),f=n.n(m),j=n(89874),p=n(38495),b=n(27780),E=n(43049),v=n(82103),F=n(13583),y=n(91508),w=n(50481);let isOAuthView=e=>{let r=e.get("next");return!!r&&r.startsWith("/o/authorize/")};var _=n(75602),layouts_LoginPageLayout=e=>{let{errors:r,children:n,isGuestLogin:m=!1,guestAccessInfo:R}=e,k=(0,j.useTranslations)("login/index/index"),C=(0,j.useTranslations)("login/index/login-form"),I=(0,j.useTranslations)("common"),S=(0,E.r)(),{getNextUrl:L}=(0,_.w)(),O=(0,v.pb)(S),{colorMode:A}=(0,t.If)(),z=(0,b.useSearchParams)(),Z=(0,v.o4)(S,A,"login"),T=(0,s.m)("SideImage"),D=isOAuthView(z),B=S.cosinnusIsLoginDisabled&&!S.cosinnusIsSSOLoginEnabled,H="".concat(m?k("guestLogin"):k("title")," - ").concat(O);return(0,l.jsxs)(y.Z,{hideNavbar:D,imageLink:D?null:Z,imageStyle:{...T,objectFit:(0,v.sl)(S)},title:H,children:[(0,l.jsx)(x.x,{textAlign:"center",children:B?(0,l.jsx)(h.X,{as:"h1",display:"block",fontWeight:"semibold",size:"lg",children:C("loginDisabled")}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.X,{as:"h1",display:"block",fontWeight:"semibold",size:"lg",children:m?k("guestLogin"):k("login")}),m?R?(0,l.jsx)(c.r,{borderRadius:"6px",display:"block",href:R.url,isExternal:!0,variant:"menuItem",children:(0,l.jsxs)(d.U,{marginBlockStart:"16px",paddingBlock:"4px",paddingInline:"12px",children:[(0,l.jsx)(w.h,{altText:"",icon:R.icon,image:R.avatar,imageBoxSize:"2rem",imageSize:"2rem",role:"presentation"}),(0,l.jsxs)(u.g,{alignItems:"flex-start",spacing:"0.5",children:[(0,l.jsx)(o.x,{fontSize:"1.125rem",textAlign:"left",children:R.name}),(0,l.jsxs)(d.U,{alignItems:"flex-start",color:"var(--chakra-colors-gray-500)",fontSize:"sm",width:"100%",children:[(0,l.jsx)(g.m,{name:"userGroup",size:"1.15rem"}),(0,l.jsx)(x.x,{children:"".concat(R.members," ").concat(I("members"))})]})]})]})}):null:(0,l.jsx)(o.x,{display:"block",fontWeight:"normal",children:D?k("oauthLoginTitle",{portal:O}):k("welcome",{portal:O})})]})}),(()=>{let e=z.get("next");return(null==e?void 0:e.includes("password_change/done"))?(0,l.jsxs)(i.b,{status:"success",children:[(0,l.jsx)(a.z,{}),k("loginAfterPasswordReset")]}):null})(),(()=>{let e=z.get("message");if(!e)return null;let r=["signupDisabled","userDeactivated"];return(null==r?void 0:r.includes(e))?(0,l.jsxs)(i.b,{status:"error",children:[(0,l.jsx)(a.z,{}),k(e)]}):null})(),(0,l.jsx)(F.Z,{errors:r,title:k("alert.title")}),B?null:(0,l.jsx)(p.Z,{children:n}),(0,l.jsxs)(u.g,{children:[S.cosinnusIsSignupDisabled?null:(0,l.jsxs)(x.x,{textAlign:"center",children:[(0,l.jsx)(o.x,{mb:3,children:k("dontHaveAccount")}
1),(0,l.jsx)(f(),{href:(()=>{let e=L();return e?"/signup/?next=".concat(encodeURIComponent(e)):"/signup"})(),legacyBehavior:!0,passHref:!0,children:(0,l.jsx)(c.r,{children:k("signup")})})]}),(()=>{let e=(0,v.Pg)(S);return(0,l.jsx)(u.g,{textAlign:"center",children:e.map(e=>(0,l.jsx)(c.r,{href:e.url,isExternal:!0,children:e.label}))})})()]})]})}},91508:function(e,r,n){n.d(r,{Z:function(){return layouts_TwoColumnsWithSideImage}});var l=n(11527),t=n(18776),s=n(75979),i=n(35068),a=n(1753),o=n(8599),c=n(92145),d=n.n(c),u=n(21707),x=n.n(u),h=n(25599),g=n(48638),m=n(76059);let ColumnGrowable=e=>{let{children:r,...n}=e;return(0,l.jsx)(t.k,{...n,flexDirection:"column",flexGrow:1,children:r})};ColumnGrowable.defaultProps={children:null};var layouts_FullHeightWithNavBar=e=>{let{children:r,hideNavbar:n=!1,...s}=e,i=(0,m.Z)();return(0,l.jsxs)(t.k,{...s,flexDirection:"column",h:"100vh",children:[n?null:(0,l.jsx)(g.w,{}),(0,l.jsx)(ColumnGrowable,{mt:i.navbar.height,children:r})]})},layouts_TwoColumnsWithSideImage=e=>{let{children:r,title:n,imageLink:c,imageStyle:u,hideNavbar:g=!1}=e;return(0,l.jsx)(layouts_FullHeightWithNavBar,{hideNavbar:g,children:(0,l.jsxs)(t.k,{flexGrow:1,gap:0,children:[(0,l.jsx)(d(),{children:(0,l.jsx)("title",{children:n})}),(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(h.Z,{w:"100%",children:(0,l.jsx)(a.Z,{pb:"24px",px:2,role:"main",w:{base:"full",sm:"sm"},children:r})}),(0,l.jsx)(o.$,{w:{base:"100%",xl:"50%"}})]}),c?(0,l.jsx)(s.d,{above:"xl",children:(0,l.jsx)(i.x,{display:"flex",position:"relative",w:"50%",children:(0,l.jsx)(x(),{alt:"",fill:!0,role:"presentation",src:c,style:u,unoptimized:!0})})}):null]})})}},68491:function(e,r,n){n.d(r,{CI:function(){return isFlatError},Om:function(){return createFlatError},SJ:function(){return isFieldErrors},fl:function(){return createFieldErrors},nV:function(){return createAxiosErrors},zQ:function(){return getFieldError}});var l,t,s=n(1669),i=n(27060);(l=t||(t={})).FieldErrors="FIELD_ERRORS",l.FlatError="FLAT_ERROR";let createFlatError=e=>({message:e,type:"FLAT_ERROR"}),isFlatError=e=>"FLAT_ERROR"===e.type,createFieldErrors=(e,r)=>({type:"FIELD_ERRORS",messages:r,field:e}),isFieldErrors=e=>"FIELD_ERRORS"===e.type,getFieldError=(e,r)=>e.filter(isFieldErrors).find(e=>e.field===r),createAxiosErrors=(e,r)=>{if(!s.Z.isAxiosError(e)||!e.response||!e.response.data||!(0,i.GO)(e.response.data))return r?[r]:[];let n=e.response.data,{data:{non_field_errors:l,nonFieldErrors:t,...a}}=n,o=[...Object.values(l||[]).map(e=>createFlatError(e)),...Object.values(t||[]).map(e=>createFlatError(e))],c=Object.keys(a).map(e=>createFieldErrors(e,a[e]));return[...o,...c]}}}]); 2//# sourceMappingURL=7603-603689d114994a58.js.map
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.