1"use strict";(self.webpackChunkauth_app=self.webpackChunkauth_app||[]).push([[666],{828(e,t,n){var a=n(5611),r=n(230);const i=a.Ik().shape({email:r.au,password:r.oV}),o=a.Ik().shape({organizationID:r.M7});n.d(t,["$v",0,i,"J5",0,"auth.activate_invitation.errors.button","OZ",0,"login","dx",0,"auth.login.errors.description","g9",0,{organizationID:""},"xY",0,{email:"",password:""},"zK",0,"auth.login.errors.title","zd",0,o])},7666(e,t,n){n.r(t);var a=n(1575),r=n(8161),i=n(4073),o=n(5001),s=n(5846),l=n(6540),c=n(9785),d=n(4899),u=n(9475),g=n(5931),h=n(8481),f=n(5412),p=n(828),m=n(4972),v=n(9163),x=n(4072),y=n(4848);n.d(t,["default",0,()=>{const{t:e}=(0,d.Bd)(),t=(0,l.useRef)(null),[n,b]=(0,v.XM)(),[w,j]=(0,l.useState)(""),I=b.isLoading?(0,y.jsx)(s.y$,{"data-signa":"loading-spinner",size:s.HU.SMALL}):e("auth.login.button_login"),{logoImg:z,dns:O}=(0,h.x)(),{handleSubmit:k,control:E,reset:S,setError:_}=(0,c.mN)({defaultValues:p.g9,resolver:(0,a.t)(p.zd),mode:"onChange"});(0,l.useEffect)(()=>{const e=b.error?.data;if(!b.isError||!b.error||"object"!=typeof e||!("message"in e))return;const t="status"in e&&400===e.status&&"ORGANIZATION_NOT_FOUND"===e.message;_("organizationID",{message:t?"auth.organization_login.invalid_organization":"auth.change.errors.generic"})},[b.isError]),(0,l.useEffect)(()=>{const e=e=>{"Enter"===e.key&&w.length>0&&!b.isLoading&&k(L)()};return window.addEventListener("keypress",e),()=>window.removeEventListener("keypress",e)},[w,b.isLoading,k]);const L=async e=>{try{if("data"in await n(w)){const t=`${[x.Op.QA,x.Op.TEST].some(e=>window.location.hostname.includes(e))?x.tl.QA:x.tl.PROD}${u.Bq.SSO_LOGIN.replace(":orgID",e.organizationID)}`;window.location.href=t}}catch{S()}};return(0,y.jsx)(m.iW,{ownerState:{maxWidth:g.C.reduced},ref:t,"data-signa":"login-wrapper",children:(0,y.jsxs)(m.h8,{elevation:0,children:[(0,y.jsx)(r.A,{sx:(0,f.z7)({dns:O}),children:z}),(0,y.jsx)(i.A,{color:s.I6.brandSecondary09,component:"p",variant:"h4",align:"left",width:"100%",children:e("auth.login.enter")}),(0,y.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",gap:s.Tl.gapTokens.lg},children:[(0,y.jsx)(c.xI,{name:"organizationID",control:E,render:({field:{onChange:t,name:n,value:a},fieldState:{invalid:r,error:i}})=>(0,y.jsx)(s.FO,{sx:{width:"100%"},label:{text:e("auth.organization_login.id"),size:s.IV.small},name:n,size:s.YI.extraLarge,onChange:e=>{t(e),j(e.target.value)},validation:{isError:r,message:i?.message?e(i.message):""},value:a})}),(0,y.jsx)(s.$n,{name:"login-submit-button",label:I,onClick:k(L),disabled:b.isLoading??0===w.length}),(0,y.jsxs)(i.A,{component:"p",variant:"body1",align:"left",width:"100%",fontSize:"14px",color:s.I6.brandSecondary09,children:[e("auth.login.ask_account"),(0,y.jsx)(o.A,{href:(0,u.b8)(),variant:"body1",marginLeft:"4px",sx:f.h3,color:s.I6.brandPrimary05,"data-signa":"link-to-register",children:e("auth.login.sign_up")})]})]})]})})}])},1575(e,t,n){n.d(t,{t:()=>c});var a=n(9785);const r=(e,t,n)=>{if(e&&"reportValidity"in e){const r=(0,a.Jt)(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},i=(e,t)=>{for(const n in t.fields){const a=t.fields[n];a&&a.ref&&"reportValidity"in a.ref?r(a.ref,n,e):a&&a.refs&&a.refs.forEach(t=>r(t,n,e))}},o=(e,t)=>{t.shouldUseNativeValidation&&i(e,t);const n={};for(const r in e){const i=(0,a.Jt)(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(s(t.names||Object.keys(e),r)){const e=Object.assign({},(0,a.Jt)(n,r));(0,a.hZ)(e,"root",o),(0,a.hZ)(n,r,e)}else(0,a.hZ)(n,r,o)}return n},s=(e,t)=>{const n=l(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>l(e).match(`^${n}\\.\\d+`))};function l(e){return e.replace(/[\[\]]/g,"")}function c(e,t,n){return void 0===n&&(n={}),function(r,s,l){try{return Promise.resolve(function(a,o){try{var c=(null!=t&&t.context,Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:s}))).then(function(e){return l.shouldUseNativeValidation&&i({},l),{values:n.raw?Object.assign({},r):e,errors:{}}}))}catch(e){return o(e)}return c&&c.then?c.then(void 0,o):c}(0,function(e){if(!e.inner)throw e;return{values:{},errors:o((t=e,n=!l.shouldUseNativeValidation&&"all"===l.criteriaMode,(t.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var r=e[t.path].types,i=r&&r[t.type];e[t.path]=(0,a.Gb)(t.path,n,e,t.type,i?[].concat(i,t.message):t.message)}return e},{})),l)};var t,n}))}catch(e){return Promise.reject(e)}}}}}]);
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.