import{ag as e,r as t,c as l,a4 as a,aL as o,a5 as n,a3 as r,aW as s}from"./vendor-BXdGExd0.js";import{_ as d}from"./vendor-BCo6x5W8.js";const u=["value","type","placeholder","disabled"],i={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},p={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},c=d(e({__name:"SettingInput",props:{modelValue:{},placeholder:{},type:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:d}){const c=e,h=d,v=t(!1),w=l({get:()=>c.modelValue??"",set:e=>h("update:modelValue",e)}),g=e=>{const t=e.target;h("update:modelValue",t.value)},m=()=>{v.value=!v.value};return(t,l)=>(s(),a("div",{class:o(["w-full h-[44px] bg-[#1D1E22] rounded-lg flex items-center px-4 border border-transparent focus-within:border-[#F2C94C] transition-colors",{"opacity-60":e.disabled}])},[n("input",{value:w.value,onInput:g,type:v.value?"text":e.type,placeholder:e.placeholder,disabled:e.disabled,autocomplete:"off",class:"flex-1 bg-transparent border-none outline-none text-white text-[14px] placeholder-gray-500 h-full"},null,40,u),"password"===e.type&&!e.disabled&&w.value?(s(),a("div",{key:0,onClick:m,class:"ml-2 text-gray-500 focus:outline-none"},[v.value?(s(),a("svg",i,[...l[0]||(l[0]=[n("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"},null,-1),n("circle",{cx:"12",cy:"12",r:"3"},null,-1)])])):(s(),a("svg",p,[...l[1]||(l[1]=[n("path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24"},null,-1),n("path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"},null,-1),n("path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"},null,-1),n("line",{x1:"2",y1:"2",x2:"22",y2:"22"},null,-1)])]))])):r("",!0)],2))}}),[["__scopeId","data-v-82babcf7"]]);function h(e){return!!e&&/^1[3-9]\d{9}$/.test(e)}function v(e){return!!e&&/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d\W]{8,16}$/.test(e)}export{c as S,v as a,h as v};
