/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input } from '@angular/core';
import { PrivateConstants } from '../../constants';
import { PrivateDynamicFromService } from '../../services';
var ImageControllComponent = /** @class */ (function () {
    function ImageControllComponent(_privateDynamicFromService) {
        this._privateDynamicFromService = _privateDynamicFromService;
        this.privateConstants = PrivateConstants;
    }
    /**
     * @return {?}
     */
    ImageControllComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () { };
    /**
     * @param {?} errorListObj
     * @param {?} fieldObj
     * @return {?}
     */
    ImageControllComponent.prototype.errorList = /**
     * @param {?} errorListObj
     * @param {?} fieldObj
     * @return {?}
     */
    function (errorListObj, fieldObj) {
        return this._privateDynamicFromService.errorList(errorListObj, fieldObj);
    };
    /**
     * @param {?} validations
     * @return {?}
     */
    ImageControllComponent.prototype.showRequired = /**
     * @param {?} validations
     * @return {?}
     */
    function (validations) {
        return this._privateDynamicFromService.showRequired(validations);
    };
    ImageControllComponent.decorators = [
        { type: Component, args: [{
                    selector: 'image-controll',
                    template: "<div class=\"form-group {{(field.class) ? field.class : ''}}\" [formGroup]=\"parentFormGroup\">\n    <show-label [class]=\"'col-form-label w-100'\" [labelName]=\"field.label\" [labelId]=\"field.name + '-' + (i + '' + j)\"\n        [isrequired]=\"showRequired(field.validations)\">\n    </show-label>\n\n    <img [src]=\"field.value ? field.value : privateConstants.defaultImg\" class=\"img-responsive {{(field.attr && field.attr.class) ? field.attr.class : ''}}\" />\n\n    <show-error [errorList]=\"errorList(parentFormGroup.controls[field.name], field)\"></show-error>\n</div>",
                    styles: [""]
                }] }
    ];
    /** @nocollapse */
    ImageControllComponent.ctorParameters = function () { return [
        { type: PrivateDynamicFromService }
    ]; };
    ImageControllComponent.propDecorators = {
        rowField: [{ type: Input }],
        field: [{ type: Input }],
        parentFormGroup: [{ type: Input }],
        i: [{ type: Input }],
        j: [{ type: Input }]
    };
    return ImageControllComponent;
}());
export { ImageControllComponent };
if (false) {
    /** @type {?} */
    ImageControllComponent.prototype.rowField;
    /** @type {?} */
    ImageControllComponent.prototype.field;
    /** @type {?} */
    ImageControllComponent.prototype.parentFormGroup;
    /** @type {?} */
    ImageControllComponent.prototype.i;
    /** @type {?} */
    ImageControllComponent.prototype.j;
    /** @type {?} */
    ImageControllComponent.prototype.privateConstants;
    /**
     * @type {?}
     * @private
     */
    ImageControllComponent.prototype._privateDynamicFromService;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UtY29udHJvbGwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhci1yZWFjdGl2ZS1keW5hbWljLWZvcm1zLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvaW1hZ2UtY29udHJvbGwvaW1hZ2UtY29udHJvbGwuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNuRCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUUzRDtJQWVJLGdDQUNZLDBCQUFxRDtRQUFyRCwrQkFBMEIsR0FBMUIsMEJBQTBCLENBQTJCO1FBSGpFLHFCQUFnQixHQUFRLGdCQUFnQixDQUFDO0lBSXJDLENBQUM7Ozs7SUFFTCx5Q0FBUTs7O0lBQVIsY0FBYSxDQUFDOzs7Ozs7SUFFZCwwQ0FBUzs7Ozs7SUFBVCxVQUFVLFlBQVksRUFBRSxRQUFRO1FBQzVCLE9BQU8sSUFBSSxDQUFDLDBCQUEwQixDQUFDLFNBQVMsQ0FBQyxZQUFZLEVBQUUsUUFBUSxDQUFDLENBQUM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