1import{D as t,a as e,c as S,u as E,J as O,h as q,aJ as h,aK as v,d as a,aL as x,B as m,R as p,aH as f,O as D,X as B,W as w,aM as y,aN as U,a9 as A}from"./index-528475f0.js";import{B as C}from"./badges-2436944c.js";const H="/iam/assets/identifier_privacy_encryption-86d8f71a.svg";const T=({image:n,variation:r="",badge:s=void 0})=>e("div",{className:S("identifier-bubble",{[`identifier-bubble--${r}`]:r}),"data-qa":"identifier-bubble",children:[s&&e(s,{className:"identifier-bubble__badge"}),e("img",{className:"identifier-bubble__image",src:n,"data-qa":"identifier-bubble-image",alt:"identifier icon"})]});T.propTypes={image:t.string.isRequired,variation:t.string,badge:t.elementType};const M=({hasPassword:n="true",shouldUpdate:r="false"})=>{const{goHome:s}=E(),[d,c]=O(),[l,u]=q(!1),i=n==="true",g=r==="true",P=async(G,_,N)=>{const o=N||"";try{await y(o,_),c({...d,has_password:!0}),u(!0)}catch(b){const{message:R}=b;if(R===U)await A(d.email,o),await y(o,_),c({...d,has_password:!0}),u(!0);else throw b}};return l?e(h,{className:"change-password__confirmation","data-qa":"change-password-confirmation",children:[e(T,{image:H,badge:C}),e(h,{spacing:"small",children:[e(v,{children:i?a._({id:"ogtYkT"}):a._({id:"7ssMmF"})}),e(x,{className:"change-password__confirmation-text",children:i?a._({id:"RVXXLy"}):a._({id:"EumZr9"})})]}),e(m,{onClick:s||p(f),"data-qa":"change-password-success",children:s?a._({id:"yz7wBu"}):a._({id:"DPfwMq"})})]}):e("div",{className:"change-password",children:[e(D,{"data-qa":"change-password-header",title:i?a._({id:"GptGxg"}):a._({id:"5/Zg7X"})}),e("p",{children:g&&a._({id:"lwfUeF"})}),e(B,{submitLabel:i?a._({id:"qRxXtM"}):a._({id:"hzyD6n"}),onSubmit:P,hideSubmit:l,config:i?w.CHANGE_PASSWORD:w.RESET_PASSWORD}),!g&&e(m,{onClick:p(f),variation:"outline-standard",fullWidth:!0,children:a._({id:"dEgA5A"})})]})};M.propTypes={hasPassword:t.string,shouldUpdate:t.string};export{M as default};
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.