PageSourceSearch

https://vogue.ph/wp-content/cache/autoptimize/js/autoptimize_singl…2cb0599f699179de4fdb4952249c3.js?ver=1.14.1

js vogue.ph collected 2026-10-01 10:44:08 UTC 4,513 bytes, 14 lines download raw bytes

1var mepr_populate_states=function(obj){(function($){var country=obj.val();var form=obj.closest('.mepr-form');if(form==undefined){return;}
2form.find('.mepr-states-dropdown option').remove();var states_dropdown=form.find('.mepr-states-dropdown');var states_text=form.find('.mepr-states-text');if(states_dropdown.length<=0||states_text.length<=0){return;}
3var fieldname=states_dropdown.data('fieldname');var value=states_dropdown.data('value').toString();if(fieldname==undefined||value==undefined){return;}
4var unique_suffix=states_dropdown.data('unique-suffix');fieldname=fieldname.replace(/^\s+/,'');fieldname=fieldname.replace(/\s+$/,'');value=value.replace(/^\s+/,'');value=value.replace(/\s+$/,'');var required=!!obj.attr('required');var countryWithoutStates=MeprI18n.countries_without_states&&MeprI18n.countries_without_states.indexOf(country)!==-1;var updateStateFieldAsterisk=function(fieldElement,isRequired){var label=fieldElement.siblings('.mp-form-label').find('label');var labelText=label.text();var hasAsterisk=labelText.indexOf('*')!==-1;if(isRequired&&!hasAsterisk){label.text(labelText+'*');}else if(!isRequired&&hasAsterisk){label.text(labelText.replace(/\*/g,''));}};if(MeprI18n.states[country]!==undefined){states_dropdown.attr('name',fieldname).attr('id','mepr-address-state'+unique_suffix);states_dropdown.show();states_text.removeAttr('name').removeAttr('id');states_text.hide();if(required&&!countryWithoutStates){states_text.prop('required',false);states_dropdown.attr('required','');updateStateFieldAsterisk(states_dropdown,true);}else{states_dropdown.prop('required',false);states_text.prop('required',false);updateStateFieldAsterisk(states_dropdown,false);}
5states_dropdown.append('<option value="">'+MeprI18n.please_select_state+'</option>');for(var st in MeprI18n.states[country]){var selected=(value===st?' selected="selected"':'');states_dropdown.append('<option value="'+st+'" '+selected+'>'+MeprI18n.states[country][st]+'</option>');}}
6else{states_dropdown.removeAttr('name').removeAttr('id');states_dropdown.hide();states_text.attr('name',fieldname).attr('id','mepr-address-state'+unique_suffix);states_text.show();if(required&&!countryWithoutStates){states_dropdown.prop('required',false);states_text.attr('required','');updateStateFieldAsterisk(states_text,true);}else{states_dropdown.prop('required',false);states_text.prop('required',false);updateStateFieldAsterisk(states_text,false);}}})(jQuery)};var mepr_set_locate_inputs=function(country,state){(function($){if(country!==''&&state!==''){if(MeprI18n.states[country]!==undefined&&MeprI18n.states[country][state]===undefined){state='';}}
7if($('.mepr-form .mepr-countries-dropdown').length>0){$.each($('.mepr-form .mepr-countries-dropdown'),function(i,obj){if($(obj).val()===undefined||$(obj).val()===''){$(obj).val(country);}
8mepr_populate_states($(obj));});}
9if($('.mepr-form .mepr-states-dropdown').length>0){$.each($('.mepr-form .mepr-states-dropdown'),function(i,obj){if($(obj).data('value')===undefined||$(obj).data('value')===''){var options=$(obj).find('option');$.each(options,function(i,option){if(state===option.value){$(obj).attr('data-value',state);$(option).attr('selected','selected');return false;}});}});}
10if($('.mepr-form .mepr-geo-country').length>0){$.each($('.mepr-form .mepr-geo-country'),function(i,obj){$(obj).val(country);});}
11$('.mepr-form .mepr-countries-dropdown').trigger('mepr-geolocated');})(jQuery)};var mepr_ssl_geoip_services={caseproof:{url:'https://cspf-locate.herokuapp.com?callback=?',cindex:'country_code',sindex:'region_code',used:false,type:'jsonp',},};var mepr_locate=function(source_key){(function($){if(source_key==undefined){source_key='caseproof';}
12source=mepr_ssl_geoip_services[source_key];if(source.used===true){return mepr_set_locate_inputs('','');}
13$.ajax({url:source.url,method:'GET',timeout:5000,dataType:source.type,}).done(function(data){var state=((data[source.sindex]!==undefined)?data[source.sindex]:'');var country=((data[source.cindex]!==undefined)?data[source.cindex]:'');mepr_set_locate_inputs(country,state);}).fail(function(){mepr_ssl_geoip_services[source_key].used=true;for(var k in mepr_ssl_geoip_services){var next_source=mepr_ssl_geoip_services[k];if(next_source.used===false){return mepr_locate(k);}}
14mepr_set_locate_inputs('','');});return false;})(jQuery)};jQuery(document).ready(function($){$.each($('.mepr-form .mepr-countries-dropdown'),function(i,obj){mepr_populate_states($(obj));$(obj).on('change',function(e){mepr_populate_states($(obj));});});});

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.