"use strict";
var angular = require("angular");
exports.moduleName = 'rl.ui.components.lazyLoad';
exports.componentName = 'rlLazyLoad';
exports.controllerName = 'LazyLoadController';
var LazyLoadController = (function () {
    function LazyLoadController() {
        this.init = false;
    }
    LazyLoadController.prototype.$onInit = function () {
        this.init = this.show;
    };
    LazyLoadController.prototype.$onChanges = function (changes) {
        if (!this.init && changes.show && changes.show.currentValue) {
            this.init = true;
        }
    };
    return LazyLoadController;
}());
exports.LazyLoadController = LazyLoadController;
var lazyLoad = {
    transclude: true,
    template: "\n\t\t<div ng-if=\"lazyLoad.init\">\n\t\t\t<div ng-show=\"lazyLoad.show\">\n\t\t\t\t<div ng-transclude></div>\n\t\t\t</div>\n\t\t</div>\n\t",
    controller: exports.controllerName,
    controllerAs: 'lazyLoad',
    bindings: {
        show: '<',
    },
};
angular.module(exports.moduleName, [])
    .component(exports.componentName, lazyLoad)
    .controller(exports.controllerName, LazyLoadController);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eUxvYWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsYXp5TG9hZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsaUNBQW1DO0FBSXRCLFFBQUEsVUFBVSxHQUFXLDJCQUEyQixDQUFDO0FBQ2pELFFBQUEsYUFBYSxHQUFXLFlBQVksQ0FBQztBQUNyQyxRQUFBLGNBQWMsR0FBVyxvQkFBb0IsQ0FBQztBQU0zRDtJQUFBO1FBRUMsU0FBSSxHQUFZLEtBQUssQ0FBQztJQVd2QixDQUFDO0lBVEEsb0NBQU8sR0FBUDtRQUNDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQztJQUN2QixDQUFDO0lBRUQsdUNBQVUsR0FBVixVQUFXLE9BQXlCO1FBQ25DLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksSUFBSSxPQUFPLENBQU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