/* Licensing info */ "undefined"!=typeof MktoForms2&&rw$(document).ready(function(){rw$("input[name=Opt_in_Explicit_Consent__c]").prop("checked",!1),MktoForms2.whenReady(function(n){rw$(rw$(rw$('.mktoLabel[for="Opt_in_Explicit_Consent__c"]').parent()).parent()).parent().css("display","none"),rw$(rw$(rw$('.mktoLabel[for="optInConsentSubmitted"]').parent()).parent()).parent().css("display","none");var t,e=["Austria","Belgium","Bulgaria","Czech Republic","Denmark","Gibraltar","Greece","Hungary","Iceland","Italy","Liechtenstein","Lithuania","Luxembourg","Malta","Netherlands","Norway","Poland","Portugal","Romania","Slovakia","Slovenia","Spain","Switzerland","Cyprus","Germany"],r=n.vals(),p=(r.Country,r.Unsubscribed,r.Opt_in_Explicit_Consent__c),i=r.Email,o=(rw$('.mktoLabel[for="Opt_in_Explicit_Consent__c"]').text(),"false");rw$("select[name=Country]").change(function(){rw$("input[name=Opt_in_Explicit_Consent__c]").prop("checked",!1);var n=rw$("select[name=Country]").val();0<=rw$.inArray(n,e)?(t="Yes",rw$(rw$(rw$('.mktoLabel[for="Opt_in_Explicit_Consent__c"]').parent()).parent()).parent().css("display","block"),rw$(rw$(rw$('.mktoLabel[for="Opt_in_Explicit_Consent__c"]').parent()).parent()).parent().css("width","100%"),o="true",null!=i&&""!=i||null==i?null!=p&&""!=p&&null!=p&&"Yes"==p?(rw$("input[name=Opt_in_Explicit_Consent__c]").prop("checked",!0),rw$("input[name=Opt_in_Explicit_Consent__c]").val("Yes"),rw$("button").prop("disabled",!1)):null!=p&&""!=p&&null!=p&&"no"==p&&(rw$("input[name=Opt_in_Explicit_Consent__c]").prop("checked",!1),rw$("button").prop("disabled",!1),o="false"):(rw$("input[name=Opt_in_Explicit_Consent__c]").prop("checked",!1),rw$("button").prop("disabled",!1))):(rw$("input[name=Opt_in_Explicit_Consent__c]").prop("checked",!1),rw$(rw$(rw$('.mktoLabel[for="Opt_in_Explicit_Consent__c"]').parent()).parent()).parent().css("display","none"),t="No",o="false",rw$("button").prop("disabled",!1))}),rw$("input[name=Opt_in_Explicit_Consent__c]").click(function(){(1==rw$(this).prop("checked")||0==rw$(this).prop("checked"))&&rw$("button").prop("disabled",!1)}),n.onSubmit(function(){"true"==o?(rw$("input[name=optInConsentSubmitted]").prop("checked",!0),n.vals({optinConsentsubmitted:!0})):rw$("input[name=optInConsentSubmitted]").empty(),"No"==t&&rw$(rw$(rw$('.mktoLabel[for="Opt_in_Explicit_Consent__c"]').parent()).parent()).parent().remove()})})});