1(function($){var setState=window.cookieconsent.state.setState;var getState=window.cookieconsent.state.getState;var REQUIRED=window.cookieconsent.state.REQUIRED;var THIRDPARTY=window.cookieconsent.state.THIRDPARTY;mountDialogIfNoConsent(getState());mountDisclosure();mountForm();function mountDialog(){var $backdrop=$('.cookieconsent-backdrop');var $dialog=$('.cookieconsent-dialog');var $form=$dialog.find('form');$backdrop.removeAttr('hidden');$form.submit(handleSubmit)} 2function mountDialogIfNoConsent(state){if(state.length===0){mountDialog()}} 3function handleSubmit(e){var $form=$('.cookieconsent-form');var $dialog=$('.cookieconsent-dialog');var $backdrop=$('.cookieconsent-backdrop');var $button=$(document.activeElement);var allowAll=$button.val()==='allow-all';var thirdparty=$form.find('#cookieconsent-thirdparty').is(':checked');var lifetime=$form.find('#cookieconsent-lifetime').is(':checked');var newState=[REQUIRED,(thirdparty||allowAll)?THIRDPARTY:undefined].filter(function(option){return option!==undefined});e.preventDefault();setState(newState,lifetime);$dialog.removeAttr('open');$backdrop.attr('hidden','hidden')} 4function mountDisclosure(){var $summary=$('.cookieconsent-showdetail');$summary.click(function(e){e.preventDefault()});$summary.click(handleSummaryClick)} 5function handleSummaryClick(){var $details=$('.cookieconsent-slider-column, .cookieconsent-description-column');var $caret=$('#caret-down');$details.slideToggle({duration:'fast',easing:'swing'});$caret.toggleClass("down").parent().toggleAttrVal('aria-expanded',"true","false")} 6$.fn.toggleAttrVal=function(attr,val1,val2){var test=$(this).attr(attr);if(test===val1){$(this).attr(attr,val2);return this} 7if(test===val2){$(this).attr(attr,val1);return this} 8$(this).attr(attr,val1);return this};function mountForm(){var $checkbox=$('#cookieconsent-form-thirdparty');var checked=getState().indexOf(THIRDPARTY)>-1;$checkbox.prop('checked',checked);$(document).on('cookieconsent:changed',(e,state)=>{var checked=state.indexOf(THIRDPARTY)>-1;$checkbox.prop('checked',checked)})}}(jQuery))
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.