///<reference path="../../headers/common.d.ts" />
System.register(["angular"], function (exports_1, context_1) {
    "use strict";
    var __moduleName = context_1 && context_1.id;
    /** @ngInject */
    function panelEditorTab(dynamicDirectiveSrv) {
        return dynamicDirectiveSrv.create({
            scope: {
                ctrl: "=",
                editorTab: "=",
                index: "=",
            },
            directive: function (scope) {
                var pluginId = scope.ctrl.pluginId;
                var tabIndex = scope.index;
                return Promise.resolve({
                    name: "panel-editor-tab-" + pluginId + tabIndex,
                    fn: scope.editorTab.directiveFn,
                });
            }
        });
    }
    var angular_1, directiveModule;
    return {
        setters: [
            function (angular_1_1) {
                angular_1 = angular_1_1;
            }
        ],
        execute: function () {///<reference path="../../headers/common.d.ts" />
            directiveModule = angular_1.default.module('grafana.directives');
            directiveModule.directive('panelEditorTab', panelEditorTab);
        }
    };
});
//# sourceMappingURL=panel_editor_tab.js.map