"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@ant-design/icons-vue"),u=require("@aplus-frontend/antdv"),i=e.defineComponent({name:"ApFieldTextPasswordRead",__name:"read-password",props:{mode:{default:"edit"},class:{},style:{},emptyText:{default:"--"},customReadMode:{},variant:{},size:{},value:{},name:{},type:{default:"text"},onCompositionend:{},onCompositionstart:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},readonly:{type:Boolean},autofocus:{type:Boolean},autocomplete:{},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},"onUpdate:value":{},valueModifiers:{},status:{},defaultValue:{},inputElement:{},triggerFocus:{},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},inputPrefixCls:{},action:{default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":{}},setup(t){const a=t,o=e.ref(a.visible);return(r,n)=>t.value?(e.openBlock(),e.createBlock(e.unref(u.Space),{key:1},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(o.value?t.value:"********"),1),e.createElementVNode("span",{style:{cursor:"pointer"},onClick:n[0]||(n[0]=()=>o.value=!o.value)},[o.value?(e.openBlock(),e.createBlock(e.unref(l.EyeOutlined),{key:0})):(e.openBlock(),e.createBlock(e.unref(l.EyeInvisibleOutlined),{key:1}))])]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.emptyText),1)],64))}});exports.default=i;
