"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[13],{46:(e,a,n)=>{n.d(a,{a:()=>s});var t=n(0),l=n(15);const s=({label:e,name:a,type:n="text",options:s,placeholder:r,autocomplete:i,value:c,onChange:o,errormessage:u,required:p=!1})=>(0,t.jsxs)("div",{className:l.a.accountInput,children:[(0,t.jsxs)("label",{htmlFor:a,className:l.a.accountInputLabel,children:[e,p&&(0,t.jsx)("span",{children:"*"})]}),"select"===n?(0,t.jsxs)("select",{id:a,name:a,className:l.a.accountInputField,onChange:o,children:[c?(0,t.jsx)("option",{value:c,children:c}):(0,t.jsx)("option",{value:"",children:r}),(null!=s?s:[]).map(((e,a)=>(0,t.jsx)("option",{value:e,children:e},a)))]}):(0,t.jsx)("input",{id:a,type:n,name:a,placeholder:r,autoComplete:i,className:l.a.accountInputField,value:null!=c?c:void 0,onChange:o,"aria-invalid":!!u,"aria-errormessage":u}),(0,t.jsx)("p",{id:`${a}-error`,className:l.a.accountInputError,hidden:!u,"aria-live":"polite",children:u})]})},80:(e,a,n)=>{function t(e){if(!e||"string"!=typeof e)return!1;if(!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]{1,63}@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z]{2,63})+$/.test(e))return!1;const[a,n]=e.split("@");return!(!a||!n||n.length>255)}function l(e){return"string"==typeof e&&e.length>=8&&/[a-z]/.test(e)&&/[A-Z]/.test(e)&&/\d/.test(e)}n.d(a,{a:()=>l,b:()=>t})}}]);