PageSourceSearch

https://greenatlas.cloud/wp-content/plugins/progress-map-advanced-…/assets/js/main/cspmas.min.js?ver=1.6.1

js greenatlas.cloud collected 2026-10-08 19:04:34 UTC 9,640 bytes, 1 lines download raw bytes

1function cspmas_fill_form_fields(e,t){"use strict";var s;void 0!==e&&"object"==typeof t&&(e=jQuery("form.cspmas_search_form[data-form-id="+e+"] :input"),s=t,jQuery.each(e,function(e,a){var i=jQuery(this),r=i.attr("type");jQuery.each(s,function(e,t){var s;a.name.replace("[]","")==e&&(t=t.shift(),"checkbox"===r||"radio"===r?void 0!==t&&jQuery('input[name="'+a.name+'"][type='+r+'][value="'+t+'"]').prop("checked",!0).trigger("change"):void 0===r?"object"==typeof(s=i[0].selectize)&&("object"==typeof t?jQuery.each(t,function(e,t){s.addItem(t,!0)}):s.addItem(t,!0)):i.attr("value",t))})}))}function cspmas_reset_form_fields(e){"use strict";if(void 0!==e){var t="form.cspmas_search_form[data-form-id="+e+"]";jQuery(t+" input[type=radio]:checked, "+t+" input[type=checkbox]:checked").each(function(){jQuery(this).prop("checked",!1).trigger("change")}),jQuery(t+" input[type=text]").each(function(){jQuery(this).val("")});var s=jQuery(t+" input.cspmas_slider_range").data("ionRangeSlider");void 0!==s&&s.reset();var a=jQuery(t+" select.cspmas_selectize[data-form-id="+e+"], "+t+" select.cspmas_multi_selectize[data-form-id="+e+"]");if("object"==typeof a)for(var i=0;i<a.length;i++)a[i].selectize.clear();jQuery(t+" span[id^=clear_date_range_][data-form-id="+e+"]").trigger("click")}}function cspmas_open_modal(e){"use strict";if(void 0===e||""==e)return!1;0==jQuery("#cspmas_search_result_modal").length&&jQuery("body").append('<div id="cspmas_search_result_modal"></div>');var t=cspmas_vars.modal_width,s=cspmas_vars.modal_width_unit,a=cspmas_vars.modal_height,i=cspmas_vars.modal_openFullscreen,r=cspmas_vars.modal_allow_fullscreen;jQuery("#cspmas_search_result_modal").iziModal({title:"<br>",headerColor:cspmas_vars.main_rgb_color,width:t+s,top:50,bottom:50,borderBottom:!0,padding:0,radius:2,zindex:9999,closeOnEscape:!0,overlay:!0,overlayClose:!0,transitionIn:"fadeInDown",iframe:!0,iframeHeight:a,iframeURL:e,fullscreen:"no"!=r,openFullscreen:"no"!=i,bodyOverflow:!0,onClosed:function(){jQuery("#cspmas_search_result_modal").iziModal("destroy")}}),jQuery("#cspmas_search_result_modal").iziModal("open")}function cspmas_popup_msg(e,t,s,a){"use strict";if(""!=a)return"undefined"==typeof iziToast?alert(a):(s={success:{id:"cspmas_success_popup_"+e,position:"center",transitionIn:"fadeInUp",timeout:3e3,displayMode:1,close:!0},info:{position:"topLeft",transitionIn:"fadeIn",timeout:3e3,displayMode:2,close:!(a={class:"cspmas_"+t+"_popup_"+e,message:a,animateInside:!0,titleSize:13,messageSize:13,maxWidth:450})},warning:{id:"cspmas_warning_popup_"+e,position:"center",transitionIn:"fadeInUp",timeout:3e3,displayMode:1,close:!0},error:{id:"cspmas_error_popup_"+e,title:s,icon:"",position:"center",transitionIn:"fadeInUp",timeout:15e3,displayMode:1,close:!0},fatal_error:{id:"cspmas_fatal_error_popup_"+e,title:s,icon:"",position:"center",transitionIn:"fadeInUp",timeout:!1,displayMode:1,close:!1,drag:!1}},s=jQuery.extend({},a,s[t]),"success"==t?iziToast.success(s):"error"==t||"fatal_error"==t?iziToast.error(s):"warning"==t?iziToast.warning(s):iziToast.info(s)),!0}function cspmas_popup_field_desc(e,t){"use strict";if(""!=t)return"undefined"==typeof iziToast?alert(t):iziToast.info({class:"cspmas_info_popup_"+e,message:t,backgroundColor:"#ffffff",animateInside:!0,messageSize:13,maxWidth:450,position:"center",transitionIn:"fadeIn",timeout:!1,progressBar:!0,displayMode:1,close:!0,closeOnEscape:!0,layout:2,overlay:!1,overlayClose:!0}),!0}function cspmas_close_popup_msg(e,t){"use strict";return"undefined"!=typeof iziToast&&(jQuery(".cspmas_"+t+"_popup_"+e).each(function(e,t){iziToast.hide({transitionOut:"fadeOutUp"},t)}),!0)}function cspmas_object_size(e){"use strict";var t,s=0;for(t in e)e.hasOwnProperty(t)&&s++;return s}function alerte(e){if("object"==typeof e){var t,s="";for(t in e)e.hasOwnProperty(t)&&(s+="["+t+"] => "+e[t]+"\n");alert(s)}else alert(e)}!function(d){"use strict";function r(){d.each(d(".cspmas_input_symbol_after"),function(){var e=d(this).attr("data-form-id"),t=d(this).attr("data-field-name"),s=d(this).innerWidth();d("div.cspmas_input").find("input[type=text][data-form-id="+e+'][name="'+t+'"]').attr("style","padding-right: "+(s+13)+"px !important;")}),d.each(d(".cspmas_input_symbol_before"),function(){var e=d(this).attr("data-form-id"),t=d(this).attr("data-field-name"),s=d(this).innerWidth();d("div.cspmas_input").find("input[type=text][data-form-id="+e+'][name="'+t+'"]').attr("style","padding-left: "+(s+13)+"px !important;")})}function o(){d.each(d(".cspmas_input_container.cspmas_scrollbar"),function(){var e,t,s;d(this).is(":visible")&&(e=d(this).attr("data-form-id"),s=d(this).attr("data-field-name"),t=d("div.cspmas_field_container[data-form-id="+e+'][data-field-name="'+s+'"]').height(),s=d("div.cspmas_field_container[data-form-id="+e+'][data-field-name="'+s+'"] > label[data-field-name="'+s+'"]').innerHeight(),d(this).attr("style","max-height: "+(t-s)+"px !important;"))})}d("div.cspmas_input_container.cspmas_scrollbar").mCustomScrollbar({autoHideScrollbar:!1,mouseWheel:{enable:!0,preventDefault:!0},theme:"dark-2"}),r(),o(),d(document).on("click",".cspmas_more_options",function(e){e.preventDefault();var e=d(this).attr("data-form-id"),t=d(this).attr("data-open-text"),s=d(this).attr("data-close-text"),a=d('.cspmas_more_options[data-form-id="'+e+'"]'),i=d('div.cspmas_collapsible[data-form-id="'+e+'"]');i.slideToggle("slow",function(){i.is(":visible")?(a.text(s),r(),o()):a.text(t)})}),d(document).on("click",".cspmas_field_info",function(){cspmas_popup_field_desc(d(this).attr("data-form-id"),d(this).find("span.cspmas_field_desc").text())}),void 0!==d.fn.datepicker&&"function"==typeof d.fn.datepicker.noConflict&&(d.fn.cspmSyncDatepicker=d.fn.datepicker.noConflict()),d("div.cspmas_form_widget input[type=radio], div.cspmas_form_widget input[type=checkbox]").ionCheckRadio(),d("select.cspmas_selectize").selectize(),d("select.cspmas_multi_selectize").selectize({create:!1,hideSelected:!0,allowEmptyOption:!1,maxOptions:"",maxItems:null,plugins:["remove_button"]}),setTimeout(function(){d("input.cspmas_slider_range").ionRangeSlider({grid:!1,prettify_enabled:!0,keyboard:!0,decorate_both:!1,force_edges:!0,skin:"round",onFinish:function(){}})}
1,1500),d("input[type=text].cspmas_number_field").spinner(),d(document).on("click","a.cspmas_reset_spinner",function(){var e=d(this).attr("data-form-id"),t=d(this).attr("data-field-name");d("div.cspmas_spinner_input input[type=text][data-form-id="+e+"][name="+t+"]").val("")}),d(document).on("click","a.cspmas_submit",function(){var s=d(this).attr("data-form-id"),a=d(this).attr("data-redirect-to"),i=d(this).attr("data-redirect-type"),e=d(this).attr("data-request-type");"undefined"!=typeof iziToast&&iziToast.info({id:"cspmas_submit_search",title:"",timeout:!1,message:cspmas_vars.forms_script_args[s].searching_hold_msg,position:"bottomLeft",transitionIn:"fadeIn",pauseOnHover:!1,close:!1,overlay:!0,overlayClose:!1,overlayColor:"rgba(255,255,255,0.6)"});var r={},o=[],n=[],c={};c[s]=[];var p="form.cspmas_search_form[data-form-id="+s+"]";d(p+" input[type=text], "+p+" input[type=radio]:checked, "+p+" input[type=checkbox]:checked, "+p+" select").each(function(){var e=void 0!==d(this).attr("name")&&d(this).attr("name").replace("[]","");if(e){e=d(p+" input[name="+e+"_search_type]").val();if((n=[]).push(e),-1<d(this).attr("name").indexOf("[]")){e=d(this).attr("name").split("[]");if((a=e[0])in r||(o=[]),2==e.length){if(void 0!==d(this).val()&&-1<d(this).val().indexOf(",")&&d(this).hasClass("cspmas_show_all"))for(var t=d(this).val().split(","),s=0;s<t.length;s+=1)o.push(t[s]);else""!=d(this).val()&&o.push(d(this).val());0<cspmas_object_size(o)&&(r[a]=jQuery.merge(n,o))}else""!=d(this).val()&&(n.push(d(this).val()),r[d(this).attr("name")]=n)}else{var a=d(this).attr("name");if(void 0!==d(this).val()&&-1<d(this).val().indexOf(",")&&d(this).hasClass("cspmas_show_all")){for(t=d(this).val().split(","),s=0;s<t.length;s+=1)o.push(t[s]);r[a]=jQuery.merge(n,o)}else""!=d(this).val()&&(n.push(d(this).val()),r[a]=n)}}}),jQuery.post(cspmas_vars.ajax_url,{action:"cspmas_search_query",form_id:s,redirect_to:a,search_args:r,form_settings:cspmas_vars.forms_script_args[s].form_settings,request_type:e},function(e){var t=cspmas_vars.forms_script_args[s].form_settings._cspm_after_submit_search;c[s]=JSON.parse(e),"undefined"!=typeof iziToast&&jQuery("#cspmas_submit_search").each(function(e,t){iziToast.hide({transitionOut:"fadeOutUp"},t)}),0<cspmas_object_size(c[s])||"redirect"==t?(0<cspmas_object_size(c[s])&&cspmas_popup_msg(s,"success","",cspmas_vars.forms_script_args[s].success_msg),"same_window"==i?document.location=a:"new_window"==i?window.open(a,"_blank"):"popup"==i&&cspmas_open_modal(a)):cspmas_popup_msg(s,"warning","",cspmas_vars.forms_script_args[s].try_again_msg)})}),d(document).on("click","a.cspmas_reset",function(){var t=d(this).attr("data-form-id");d(this).attr("data-redirect-to"),d(this).attr("data-request-type");"undefined"!=typeof iziToast&&iziToast.info({id:"cspmas_reset_search",title:"",timeout:!1,message:cspmas_vars.forms_script_args[t].resetting_hold_msg,position:"bottomLeft",transitionIn:"fadeIn",pauseOnHover:!1,close:!1,overlay:!0,overlayClose:!1,overlayColor:"rgba(255,255,255,0.6)"}),jQuery.post(cspmas_vars.ajax_url,{action:"cspmas_clear_session"},function(e){"undefined"!=typeof iziToast&&jQuery("#cspmas_reset_search").each(function(e,t){iziToast.hide({transitionOut:"fadeOutUp"},t)}),cspmas_popup_msg(t,"info","",cspmas_vars.forms_script_args[t].session_cleared_msg),cspmas_reset_form_fields(t)})}),d("form.cspmas_search_form input").keypress(function(e){13==e.keyCode&&e.preventDefault()})}(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.