% if settings.TENDER_SUBDOMAIN and user.is_authenticated():
<script type="text/javascript">
window.Tender = {
  hideToggle: true,
  title: '',
  body: '',
  hide_kb: 'true',
  widgetToggles: document.getElementsByClassName('show-tender')
}
// In order to avoid requirejs timeout errors should tender not be
// available, we're not using domReady as a loader plugin here.
// For more details, please see the note at
// http://requirejs.org/docs/api.html#pageload
require(['domReady'], function (domReady) {
  domReady(function () {
      require(['tender']);
  });
});
</script>
% endif
