import{r as s,h as i,H as t}from"./p-9add63ef.js";import{o as e}from"./p-4773325d.js";const a=":host{display:block}.password{display:grid;gap:var(--sc-form-row-spacing, 0.75em)}.password__hint{padding-top:0.36rem;color:red}";const d=a;const o=class{constructor(i){s(this,i);this.loggedIn=undefined;this.size="medium";this.value="";this.pill=false;this.label=undefined;this.showLabel=true;this.help="";this.placeholder=undefined;this.disabled=false;this.readonly=false;this.required=false;this.autofocus=undefined;this.emailExists=undefined;this.confirmation=false;this.confirmationLabel=undefined;this.confirmationPlaceholder=undefined;this.confirmationHelp=undefined;this.enableValidation=true}async reportValidity(){var s,i;return(i=(s=this.input)===null||s===void 0?void 0:s.reportValidity)===null||i===void 0?void 0:i.call(s)}render(){if(this.loggedIn){return i(t,{style:{display:"none"}})}return i("sc-password",{label:this.label,"aria-label":this.label,help:this.help,autofocus:this.autofocus,placeholder:this.placeholder,showLabel:this.showLabel,size:this.size?this.size:"medium",name:"password",ref:s=>this.input=s,value:this.value,required:this.required,disabled:this.disabled,enableValidation:this.enableValidation,confirmationHelp:this.confirmationHelp,confirmationLabel:this.confirmationLabel,confirmationPlaceholder:this.confirmationPlaceholder,confirmation:this.confirmation})}};e(o,["loggedIn","emailExists"],false);o.style=d;export{o as sc_order_password};
//# sourceMappingURL=p-519c68a4.entry.js.map