import{e3 as r,ao as a,ck as i,L as l,aq as c}from"./app-k0jcl5PQ.js";import{F as d}from"./DzRq1F5-.chunk.js";import{F as t}from"./DV1GpLCe.chunk.js";const n="shared.changePasswordForm",s=l.encloseNamespace(n);u.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"};function u(e){const o=r();return a.jsxs(i,{children:[!e.hideCurrentPassword&&a.jsx(t,{className:e.inputWidthClass,name:"currentPassword",label:s("currentPassword"),placeholder:s("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",showRequiredStar:!0}),a.jsx(t,{className:e.inputWidthClass,name:"newPassword",label:s("newPassword"),placeholder:s("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",showRequiredStar:!0}),a.jsx(t,{className:e.inputWidthClass,name:"confirmPassword",label:s("confirmPassword"),placeholder:s("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",showRequiredStar:!0}),e.showChangeOnNextLogin&&a.jsx(t,{id:"changeOnNextLogin",name:"changeOnNextLogin",label:s("changeOnNextLogin"),type:"checkbox",checked:o.values.changeOnNextLogin,checkboxLabelFontWeight:"normal"}),!e.hideButtons&&a.jsxs("div",{className:e.buttonContainerClass,children:[!e.hideCancelButton&&!!e.onClickCancel&&a.jsx("button",{type:"button",className:`btn btn-link me-2 ${e.buttonSize==="lg"?"btn-lg":""}`,onClick:e.onClickCancel,children:a.jsx(c,{namespace:n,phrase:"cancel"})}),a.jsx(d,{isNew:!1,submitText:e.submitText||s("save"),variant:e.submitVariant,size:e.buttonSize})]})]})}export{u as C};
//# sourceMappingURL=DiLZz1Ri.chunk.js.map
