import{h as r}from"./p-083180bf.js";import{c as s}from"./p-cef45012.js";import{A as e,a as t,b as a}from"./p-49b20dae.js";import{T as o}from"./p-c813ec64.js";const p=s({Wrapper:e,Column:t,ButtonsContainer:a,Banner:{"&::part(erroralert-base)":{margin:"15px 0px"}},CodeError:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},CodeSuccess:{"&::part(successalert-base)":{"margin-bottom":"15px"}},ContinueButton:{width:"100%"}}),l=p.toString();function n(s){const{states:e,callbacks:t}=s;return e.reset?r("div",{class:`${p.classes.Wrapper} ${p.classes.Column}`},r("style",{type:"text/css"},l),r(o,{type:"h3"},e.content.resetPasswordHeader),r("sqm-form-message",{class:p.classes.CodeSuccess,exportparts:"success-icon"},r("div",{part:"successalert-text"},e.content.resetSuccessText)),r("div",null,r("sl-button",{class:p.classes.ContinueButton,onClick:t.gotoNextPage,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},e.content.continueButtonText))):e.oobCodeValidating?r("div",null):e.oobCodeValid?r("div",{class:p.classes.Wrapper},r("style",{type:"text/css"},"\n:host {\n  display: block;\n}\n:host([hidden]): {\n  display: none;\n}\n",l),r(o,{type:"h2"},e.reset?e.content.passwordResetHeader:e.content.resetPasswordHeader),r("sl-form",{class:p.classes.Column,"onSl-submit":t.submit},s.states.error&&r("sqm-form-message",{type:"error",class:p.classes.Banner,exportparts:"erroralert-icon"},r("div",{part:"erroralert-text"},s.states.error)),!e.reset&&r("sqm-password-field",{fieldLabel:e.content.passwordFieldLabel,demoData:e.passwordDemoData,meetsRequirementsText:e.content.meetsRequirementsText,doesNotMeetRequirementsText:e.content.doesNotMeetRequirementsText,minErrorText:e.content.minErrorText,uppercaseErrorText:e.content.uppercaseErrorText,lowercaseErrorText:e.content.lowercaseErrorText,hasErrorText:e.content.hasErrorText}),!e.reset&&e.confirmPassword&&r("sl-input",{exportparts:"label: input-label, base: input-base",type:"password",name:"/confirmPassword",label:e.content.confirmPasswordFieldLabel,disabled:e.loading,required:!0}),r("div",{class:p.classes.ButtonsContainer},r("sl-button",{class:p.classes.ContinueButton,submit:!0,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},e.reset?e.content.continueButtonText:e.content.resetPasswordButtonText)))):r("div",{class:`${p.classes.Wrapper} ${p.classes.Column}`},r("style",{type:"text/css"},l),r("sqm-form-message",{class:p.classes.CodeError,type:"error",exportparts:"erroralert-icon"},r("div",{part:"erroralert-text"},e.content.codeInvalidText)),r("div",null,r("sl-button",{class:p.classes.ContinueButton,onClick:t.failed,exportparts:"base: primarybutton-base",type:"primary"},e.content.continueButtonText)))}export{n as P}