{"size": 2309, "ext": "js", "max_stars_repo_path": "promort/src/js/questionnaires_manager/questionnaires_manager.directives.js", "max_stars_repo_name": "svituz/ProMort", "max_stars_repo_stars_event_min_datetime": "2016-12-28T08:12:51.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-08T21:03:48.000Z", "max_issues_repo_path": "promort/src/js/questionnaires_manager/questionnaires_manager.directives.js", "max_issues_repo_name": "svituz/ProMort", "max_issues_repo_issues_event_min_datetime": "2016-11-11T09:57:45.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T16:04:53.000Z", "max_forks_repo_path": "promort/src/js/questionnaires_manager/questionnaires_manager.directives.js", "max_forks_repo_name": "svituz/ProMort", "max_forks_repo_forks_event_min_datetime": "2016-04-22T07:49:40.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-22T08:09:44.000Z"}
{"max_stars_count": 3, "max_issues_count": 37, "max_forks_count": 4, "avg_line_length": 38.4833333333, "max_line_length": 106, "alphanum_fraction": 0.6517973149}
/*
 * Copyright (c) 2019, CRS4
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

(function () {
    'use strict';

    angular
        .module('promort.questionnaires_manager.directives')
        .directive('questionnaireStepPanel', questionnaireStepPanel)
        .directive('questionsSetPanel', questionsSetPanel);

    function questionnaireStepPanel() {
        var directive = {
            replace: true,
            restrict: 'E',
            templateUrl: '/static/templates/questionnaire_requests_manager/questionnaire_step_panel.html',
            controller: 'QuestionnairePanelController',
            controllerAs: 'qpCtrl',
            scope: {
                qpRequestData: '@',
                qpWaitForIt: '@',
                qpIdentifier: '@'
            }
        };
        return directive;
    }

    function questionsSetPanel() {
        var directive ={
            replace: true,
            restrict: 'E',
            templateUrl: '/static/templates/questionnaire_requests_manager/questions_step_panel.html',
            controller: 'QuestionsSetPanelController',
            controllerAs: 'qspCtrl',
            scope: {
                qspWaitForIt: '@',
                qspIdentifier: '@'
            }
        };
        return directive;
    }
})();