PageSourceSearch

https://troyes-champagne-metropole.fr/wp-content/plugins/weforms-b…/js/frontend-report.min.js?ver=1.6.28

js troyes-champagne-metropole.fr collected 2026-10-02 18:46:18 UTC 5,738 bytes, 1 lines download raw bytes

1jQuery(document).ready(function(a){var b={init:function(){var b=[],c=[];a(".wpuf-form-add :input[name=form_id]").each(function(){b.push(a(this).val())}),a(".wpuf-form-add :input[name=weforms-front-report]").each(function(){c.push(a(this).val())});var d,e="";for(d=0;d<b.length;d++)e=".weforms-"+b[d],"yes"===c[d]&&(a(e).off(),a(e).on("submit",this.frontReportFormSubmit))},frontReportFormSubmit:function(c){c.preventDefault();var d=a(this),e=d.find("input[type=submit]"),f=b.weFormsValidateForm(d);f&&(d.find("li.wpuf-submit").append('<span class="wpuf-loading"></span>'),e.attr("disabled","disabled").addClass("button-primary-disabled"),a.post(wpuf_frontend.ajaxurl,f,function(b){if(c.preventDefault(),!0===b.show_chart){d.find("ul").remove(),d.before('<div class="wpuf-success">'+b.message+"</div>"),d.addClass("weforms-chart-container"),a(".weforms-chart-container").css({width:"350px",height:"auto"}),this.report_data_parsed=JSON.parse(b.report_data);for(var f=1,g=0;g<this.report_data_parsed.length;g++){var h=this.report_data_parsed[g].template;if("file_upload"!==h&&"image_upload"!==h&&"address_field"!==h&&"repeat_field"!==h&&"google_map"!==h&&"step_start"!==h&&"shortcode"!==h&&"action_hook"!==h&&"toc"!==h&&"custom_hidden_field"!==h&&"image_upload"!==h&&"section_break"!==h&&"custom_html"!==h&&"recaptcha"!==h){var i=this.report_data_parsed[g],j=i.field_label,k=[],l=[{label:i.field_label,backgroundColor:i.bg_color,data:i.data}],m={callbacks:{title:function(){return""},label:function(a,b){return a.xLabel+": "+a.yLabel}}};if("checkbox_grid"===i.template||"multiple_choice_grid"===i.template){var n=0;for(var o in i.data){var p=i.data[o];Array.isArray(p)||(p=[p]),k.push({label:o,backgroundColor:i.bg_color[n++],data:p})}l=k,m={}}id_name="weforms-chart-"+i.template+f,d.append('<div class="'+id_name+'" style="width: 100%; height: auto"><canvas id="'+id_name+'" width="100" height="100"></canvas></div>'),new Chart(document.getElementById(id_name),{responsive:!0,type:"bar",data:{labels:i.label,datasets:l},options:{legend:{display:!0,position:"top",labels:{fontColor:"#333"}},title:{display:!0,text:j},scales:{yAxes:[{ticks:{min:0,beginAtZero:!0,stepSize:1}}]},tooltips:m}}),f+=1}}}else d.before('<div class="wpuf-success">'+b.message+"</div>"),d.slideUp("fast",function(){d.remove()});e.removeClass("button-primary-disabled"),d.find("span.wpuf-loading").remove()}))},weFormsValidateForm:function(c){var d=!1;if(error_type="",c.find('[data-required="yes"]:visible').each(function(c,e){var f=a(e).data("type");switch(k="",f){case"rich":var g=a(e).data("id");""===(k=a.trim(tinyMCE.get(g).getContent()))&&(d=!0,b.weFormsFrontMarkError(e));break;case"textarea":case"text":""===(k=a.trim(a(e).val()))&&(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type));break;case"password":case"confirm_password":var h=a(e).data("repeat");if(k=a.trim(a(e).val()),""===k&&(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type)),h){var i=a('[data-type="confirm_password"]').eq(0);i.val()!==k&&(d=!0,error_type="mismatch",b.weFormsFrontMarkError(i,error_type))}break;
1case"select":(k=a(e).val())&&"-1"!==k||(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type));break;case"multiselect":null!==(k=a(e).val())&&0!==k.length||(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type));break;case"tax-checkbox":var j=a(e).children().find("input:checked").length;j||(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type));break;case"radio":var j=a(e).find("input:checked").length;j||(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type));break;case"file":var j=a(e).find("ul").children().length;j||(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type));break;case"email":var k=a(e).val();""!==k?b.isValidEmail(k)||(d=!0,error_type="validation",b.weFormsFrontMarkError(e,error_type)):""===k&&(d=!0,error_type="required",b.weFormsFrontMarkError(e,error_type));break;case"url":var k=a(e).val();""!==k&&(b.isValidURL(k)||(d=!0,error_type="validation",b.weFormsFrontMarkError(e,error_type)))}}),d)return b.addErrorNotice(c,"end"),!1;var e=c.serialize(),f=[];return a(".wpuf-rich-validation",c).each(function(b,c){var c=a(c),d=c.data("id"),e=c.data("name"),g=a.trim(tinyMCE.get(d).getContent());f.push(e+"="+encodeURIComponent(g))}),e=e+"&"+f.join("&")},weFormsFrontMarkError:function(b,c){var d="";if(a(b).closest("li").addClass("has-error"),c){switch(d=a(b).closest("li").data("label"),c){case"required":case"mismatch":case"validation":d=d+" "+error_str_obj[c]}a(b).siblings(".wpuf-error-msg").remove(),a(b).after('<div class="wpuf-error-msg">'+d+"</div>")}a(b).focus()},isValidEmail:function(a){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a)},isValidURL:function(a){return new RegExp("^(http://www.|https://www.|ftp://www.|www.|http://|https://){1}([0-9A-Za-z]+.)").test(a)}};b.init()});

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.