import{_ as u}from"./IconEye-Cnj13y34.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as s,c as i,a as d,M as c,H as _,r as f,K as v,ai as g,m as l,I as y}from"./index-Bb2UEb_P.js";const k={},b={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"};function x(r,t){return s(),i("svg",b,t[0]||(t[0]=[d("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"},null,-1)]))}const M=p(k,[["render",x]]),h={class:"tw-relative"},B=["name","disabled","autocomplete","type"],$=c({__name:"InputPassword",props:y({isNew:{type:Boolean},disabled:{type:Boolean},name:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(r){const t=_(r,"modelValue"),o=f(!1);return(n,e)=>{const w=M,m=u;return s(),i("div",h,[v(d("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>t.value=a),name:n.name,disabled:n.disabled,autocomplete:n.isNew?"new-password":"current-password",type:o.value?"text":"password",class:"tw-w-full tw-border tw-border-gray-200 tw-rounded tw-bg-white tw-text-gray-700 tw-pl-4 tw-pr-12 tw-h-10 tw-text-sm tw-font-medium"},null,8,B),[[g,t.value]]),o.value?(s(),l(w,{key:0,class:"tw-absolute tw-size-5 tw-right-4 tw-top-2.5 tw-cursor-pointer tw-text-gray-500",onClick:e[1]||(e[1]=a=>o.value=!1)})):(s(),l(m,{key:1,class:"tw-absolute tw-size-5 tw-right-4 tw-top-2.5 tw-cursor-pointer tw-text-gray-500",onClick:e[2]||(e[2]=a=>o.value=!0)}))])}}});export{$ as _};
