2 lines
1.6 KiB
JavaScript
Executable File
2 lines
1.6 KiB
JavaScript
Executable File
import{K as a,_ as d,r as m}from"./index-3cb9bb06.js";const f=()=>({iconRender:c=>{const{color:o,fontSize:t,icon:n}=c,r={};return o&&(r.color=o),t&&(r.fontSize=`${t}px`),n||window.console.warn("iconRender: icon is required"),()=>a(d,{icon:n,style:r})},renderCustomHeader:c=>{const{color:o,textColor:t,value:n,icon:r}=c,u={},i={};return o&&(u.color=o),t&&(i.color=t),i.marginLeft="6px",r||window.console.warn("iconRender: icon is required"),()=>a("div",{style:"display:flex;padding:8px 16px;align-items: center"},[a(d,{icon:r,style:u},""),a("div",{style:i},n)])}}),{renderCustomHeader:l}=f();var y;(e=>{e.emailTipsOptions=m([{label:"@gmail.com",key:"@gmail.com"},{label:"@hotmail.com",key:"@hotmail.com"},{label:"@outlook.com",key:"@outlook.com"},{label:"@naver.com",key:"@naver.com"},{label:"@mail.ru",key:"@mail.ru"}]),e.optionsDefaultPassword=m([{key:"1",type:"render",render:l({icon:"gravity-ui:circle-check",color:"rgba(255, 255, 255, 50%)",textColor:"rgba(255, 255, 255, 50%)",value:"The value contains as least 6 characters"})},{key:"2",type:"render",render:l({icon:"gravity-ui:circle-check",color:"rgba(255, 255, 255, 50%)",textColor:"rgba(255, 255, 255, 50%)",value:"At least 1 number"})},{key:"3",type:"render",render:l({icon:"gravity-ui:circle-check",color:"rgba(255, 255, 255, 50%)",textColor:"rgba(255, 255, 255, 50%)",value:"At least 1 capital letter"})}])})(y||(y={}));function k(e){return/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(e)}function p(e){return/[0-9]/.test(e)}function b(e){return/[A-Z]/.test(e)}function h(e,s){return e.length>=s}export{h as a,k as b,p as c,b as d,f as e,y as u};
|