/* Source and licensing information for the line(s) below can be found at https://belgiumnutramigen.prod.mjngwt.com/sites/all/themes/bootstrap/js/bootstrap.js. */ ;var Drupal=Drupal||{};(function(o,t){'use strict';var r=o(document);t.behaviors.bootstrap={attach:function(t){o(t).find('.tabbable').once('bootstrap-tabs',function(){var t=o(this),r=t.find('.nav-tabs'),a=t.find('.tab-content'),e=parseInt(a.css('borderBottomRightRadius'),10),s=function(){if(t.hasClass('tabs-left')||t.hasClass('tabs-right')){a.css('min-height',r.outerHeight())}};s();if(t.hasClass('tabs-left')||t.hasClass('tabs-right')){r.on('shown.bs.tab','a[data-toggle="tab"]',function(r){s();if(t.hasClass('tabs-left')){if(o(r.target).parent().is(':first-child')){a.css('borderTopLeftRadius','0')} else{a.css('borderTopLeftRadius',e+'px')}} else{if(o(r.target).parent().is(':first-child')){a.css('borderTopRightRadius','0')} else{a.css('borderTopRightRadius',e+'px')}}})}})}};t.behaviors.bootstrapFormHasError={attach:function(t,a){if(a.bootstrap&&a.bootstrap.formHasError){var r=o(t);r.find('.form-item.has-error:not(.form-type-password.has-feedback)').once('error',function(){var a=o(this),t=a.find(':input');t.on('keyup focus blur',function(){var o=t.val()||!1;a[o?'removeClass':'addClass']('has-error');t[o?'removeClass':'addClass']('error')})})}}};t.behaviors.bootstrapPopovers={attach:function(t,e){if(!e.bootstrap||!e.bootstrap.popoverEnabled||!o.fn.popover){return};if(e.bootstrap.popoverOptions.triggerAutoclose){var s=null;r.on('show.bs.popover','[data-toggle=popover]',function(){var t=o(this),a=t.data('bs.popover');if(a.options.originalTrigger==='click'){if(s&&!s.is(t)){s.popover('hide')};s=t}}).on('click',function(t){var a=o(t.target),r=a.is('[data-toggle=popover]')&&a.data('bs.popover');if(s&&!a.is('[data-toggle=popover]')&&!a.closest('.popover.in')[0]){s.popover('hide');s=null}})};var l=o(t).find('[data-toggle=popover]').toArray();for(var p=0;p').parent()[a.html?'html':'text']()||''};n.popover(a);if(a.originalTrigger==='click'){n.off('click.drupal.bootstrap.popover').on('click.drupal.bootstrap.popover',function(t){o(this).popover('toggle');t.preventDefault();t.stopPropagation()})}}},detach:function(t,a){if(!a.bootstrap||!a.bootstrap.popoverEnabled||!o.fn.popover){return};o(t).find('[data-toggle="popover"]').off('click.drupal.bootstrap.popover').popover('destroy')}};t.behaviors.bootstrapTooltips={attach:function(t,a){if(a.bootstrap&&a.bootstrap.tooltipEnabled){var s=o(t).find('[data-toggle="tooltip"]').toArray();for(var r=0;r0){a=s;break} else{s.scrollTop(1);if(s.scrollTop()>0){s.scrollTop(0);a=s;break}}}};if(!e.bootstrap||e.bootstrap.anchorsFix!=='1'){return};var n=o(t).find('a').toArray();for(r=0;r0);r.scrollTo=function(e){var n='id',s=o(r.hash);if(!s.length){n='name';s=o('[name="'+r.hash.replace('#','')+'"]')};if(!this.validAnchor&&!s.length){return};var i=s.offset().top-parseInt(a.css('paddingTop'),10)-parseInt(a.css('marginTop'),10);if(i>0){if(e){e.preventDefault()};var l=o('
').addClass('element-invisible').attr(n,s.attr(n)).css({position:'absolute',top:i+'px',zIndex:-1000}).appendTo(a);s.removeAttr(n);var p=function(){location.hash=r.hash;l.remove();s.attr(n,r.hash.replace('#',''))};if(t.settings.bootstrap.anchorsSmoothScrolling){a.animate({scrollTop:i,avoidTransforms:!0},400,p)} else{a.scrollTop(i);p()}}}}};t.theme.tableDragChangedMarker=function(){return''};t.theme.tableDragChangedWarning=function(){return'
'+t.theme('tableDragChangedMarker')+' '+t.t('Changes made in this table will not be saved until the form is submitted.')+'
'}})(jQuery,Drupal);; /* Source and licensing information for the above line(s) can be found at https://belgiumnutramigen.prod.mjngwt.com/sites/all/themes/bootstrap/js/bootstrap.js. */ ;/*})'"*/ /* Source and licensing information for the line(s) below can be found at https://belgiumnutramigen.prod.mjngwt.com/sites/all/modules/contrib/responsive_menu/js/responsive_menu.config.js. */ (function(e){'use strict';Drupal.behaviors.responsive_menu={attach:function(n,i){e('body',n).once('responsive-menu',function(){if(typeof(e.mmenu)!='undefined'){var p=Drupal.settings.responsive_menu.position,r=Drupal.settings.responsive_menu.theme;e('#off-canvas').mmenu({extensions:[r,'effect-slide-menu'],offCanvas:{zposition:'next',position:p}},{clone:!1})};if(e.fn.superfish){var i=Drupal.settings.responsive_menu.superfish.delay,t=Drupal.settings.responsive_menu.superfish.speed,o=Drupal.settings.responsive_menu.superfish.speedOut;e('#horizontal-menu').superfish({delay:parseInt(i,10),speed:parseInt(t,10),speedOut:parseInt(o,10)}).addClass('sf-menu')};if(typeof(Hammer)!='undefined'){var n=new Hammer(e('body').get(0),{cssProps:{userSelect:!0},touchAction:'auto'});n.get('swipe').set({velocity:0.3,threshold:5});n.on('swipeleft swiperight',function(i){if(e('.responsive-menu-block-wrapper').is(':hidden')){s(n,i)}})}})}};function s(t,o){var s=Drupal.settings.responsive_menu.position,n=e('#off-canvas').data('mmenu'),i=e('html');if(o.type=='swiperight'){if(s=='right'&&i.hasClass('mm-opened')){n.close()};if(s=='left'&&!i.hasClass('mm-opened')){n.open()}};if(o.type=='swipeleft'){if(s=='right'&&!i.hasClass('mm-opened')){n.open()};if(s=='left'&&i.hasClass('mm-opened')){n.close()}}}})(jQuery);; /* Source and licensing information for the above line(s) can be found at https://belgiumnutramigen.prod.mjngwt.com/sites/all/modules/contrib/responsive_menu/js/responsive_menu.config.js. */ ;/*})'"*/