## mako

<%page expression_filter="h"/>
<%namespace name='static' file='../static_content.html'/>
<%!
from openedx.core.djangolib.js_utils import (
    dump_js_escaped_json, js_escaped_string
)
%>

<%block name="js_extra">
<!-- This is a temporary solution before we land a fix to load these through Webpack, tracked by LEARNER-3483 -->
<script type="text/javascript" src="${static.url('common/js/vendor/popper.js')}"></script>
<script type="text/javascript" src="${static.url('common/js/vendor/bootstrap.js')}"></script>

<%static:require_module module_name="js/learner_dashboard/program_details_factory" class_name="ProgramDetailsFactory">
ProgramDetailsFactory({
    programData: ${program_data | n, dump_js_escaped_json},
    courseData: ${course_data | n, dump_js_escaped_json},
    certificateData: ${certificate_data | n, dump_js_escaped_json},
    urls: ${urls | n, dump_js_escaped_json},
    userPreferences: ${user_preferences | n, dump_js_escaped_json},
});
</%static:require_module>
</%block>

<div class="js-program-details-wrapper program-details-wrapper"></div>
