/**
 * @fileoverview added by tsickle
 * Generated from: lib/form/encrypted-input/index.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
// 组件类
import { Component, EventEmitter, Input, Output } from "@angular/core";
export class EncryptedInputComponent {
    constructor() {
        this.disabled = false;
        this.error = false;
        this.placeholder = "";
        this.valueChange = new EventEmitter();
        this.encrypted = true;
    }
    /**
     * @return {?}
     */
    ngOnInit() { }
    /**
     * @param {?} event
     * @return {?}
     */
    onInput(event) {
        /** @type {?} */
        const value = event.target.value;
        this.valueChange.emit(value);
    }
}
EncryptedInputComponent.decorators = [
    { type: Component, args: [{
                selector: "rs-encrypted-input",
                template: "<div class=\"rs-encrypted-input\">\r\n  <input\r\n    [ngClass]=\"{\r\n      disabled: disabled,\r\n      error: error\r\n    }\"\r\n    class=\"e-input\"\r\n    type=\"text\"\r\n    [type]=\"encrypted ? 'password' : 'text'\"\r\n    [(ngModel)]=\"value\"\r\n    [disabled]=\"disabled\"\r\n    (input)=\"onInput($event)\"\r\n  />\r\n  <span\r\n    [ngClass]=\"{ 'right-eyes': true, 'close-eye': !encrypted }\"\r\n    (click)=\"encrypted = !encrypted\"\r\n  ></span>\r\n</div>\r\n",
                styles: [".rs-encrypted-input{position:relative}.rs-encrypted-input .e-input{padding-right:38px!important}.rs-encrypted-input .right-eyes{display:inline-block;cursor:pointer;position:absolute;top:50%;transform:translateY(-12px);right:8px;width:24px;height:24px;background-image:url(/assets/img/eye-open.svg)}.rs-encrypted-input .close-eye{background-image:url(/assets/img/eye-close.svg)}"]
            }] }
];
EncryptedInputComponent.propDecorators = {
    value: [{ type: Input }],
    disabled: [{ type: Input }],
    error: [{ type: Input }],
    placeholder: [{ type: Input }],
    valueChange: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    EncryptedInputComponent.prototype.value;
    /** @type {?} */
    EncryptedInputComponent.prototype.disabled;
    /** @type {?} */
    EncryptedInputComponent.prototype.error;
    /** @type {?} */
    EncryptedInputComponent.prototype.placeholder;
    /** @type {?} */
    EncryptedInputComponent.prototype.valueChange;
    /** @type {?} */
    EncryptedInputComponent.prototype.encrypted;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vcmFpc2UtY29tbW9uLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9mb3JtL2VuY3J5cHRlZC1pbnB1dC9pbmRleC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU8vRSxNQUFNLE9BQU8sdUJBQXVCO0lBTHBDO1FBT1csYUFBUSxHQUFHLEtBQUssQ0FBQztRQUNqQixVQUFLLEdBQUcsS0FBSyxDQUFDO1FBQ2QsZ0JBQVcsR0FBRyxFQUFFLENBQUM7UUFHMUIsZ0JBQVcsR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBQ2pDLGNBQVMsR0FBRyxJQUFJLENBQUM7SUFNbkIsQ0FBQzs7OztJQUxDLFFBQVEsS0FBSSxDQUFDOzs7OztJQUNiLE9BQU8sQ0FBQyxLQUFLOztjQUNMLEtBQUssR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLEtBQUs7UUFDaEMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDL0IsQ0FBQzs7O1lBbEJGLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsb0JBQW9CO2dCQUM5QiwwZUFBcUM7O2FBRXRDOzs7b0JBRUUsS0FBSzt1QkFDTCxLQUFLO29CQUNMLEtBQUs7MEJBQ0wsS0FBSzswQkFFTCxNQUFNOzs7O0lBTFAsd0NB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