/**
 * @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";
var EncryptedInputComponent = /** @class */ (function () {
    function EncryptedInputComponent() {
        this.disabled = false;
        this.error = false;
        this.placeholder = "";
        this.valueChange = new EventEmitter();
        this.encrypted = true;
    }
    /**
     * @return {?}
     */
    EncryptedInputComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () { };
    /**
     * @param {?} event
     * @return {?}
     */
    EncryptedInputComponent.prototype.onInput = /**
     * @param {?} event
     * @return {?}
     */
    function (event) {
        /** @type {?} */
        var 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 }]
    };
    return EncryptedInputComponent;
}());
export { EncryptedInputComponent };
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vcmFpc2UtY29tbW9uLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9mb3JtL2VuY3J5cHRlZC1pbnB1dC9pbmRleC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvRTtJQUFBO1FBT1csYUFBUSxHQUFHLEtBQUssQ0FBQztRQUNqQixVQUFLLEdBQUcsS0FBSyxDQUFDO1FBQ2QsZ0JBQVcsR0FBRyxFQUFFLENBQUM7UUFHMUIsZ0JBQVcsR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBQ2pDLGNBQVMsR0FBRyxJQUFJLENBQUM7SUFNbkIsQ0FBQzs7OztJQUxDLDBDQUFROzs7SUFBUixjQUFZLENBQUM7Ozs7O0lBQ2IseUNBQU87Ozs7SUFBUCxVQUFRLEtBQUs7O1lBQ0wsS0FBSyxHQUFHLEtBQUssQ0FBQyxNQUFNLENBQUMsS0FBSztRQUNoQyxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUMvQixDQUFDOztnQkFsQkYsU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBRSxvQkFBb0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