PageSourceSearch

https://www.gpainnova.com/wp-content/plugins/geoip-detect/js/dist/frontend_full.js?ver=5.6.4

js gpainnova.com collected 2026-09-26 02:12:41 UTC 13,558 bytes, 2 lines download raw bytes

1!function(){function e(e,t,o,r){Object.defineProperty(e,t,{get:o,set:r,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var o="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},r={},n={},a=o.parcelRequire94b4;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in n){var t=n[e];delete n[e];var o={id:e,exports:{}};return r[e]=o,t.call(o.exports,o,o.exports),o.exports}var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){n[e]=t},o.parcelRequire94b4=a);var i=a.register;i("fw0Zn",function(t,o){e(t.exports,"get_info",function(){return s});var r=a("e96f1"),n=a("h9BHh"),i=a("5eYZm");async function s(){let e=await (0,n.get_info_cached)();return"object"!=typeof e&&(console.error("Geolocation IP Detection Error: Record should be an object, not a "+typeof e,e),e={extra:{error:e||"Network error, look at the original server response ..."}}),new(0,r.default)(e,i.options.default_locales)}}),i("e96f1",function(o,r){e(o.exports,"camelToUnderscore",function(){return c}),e(o.exports,"default",function(){return l});var n=a("8WYat"),i=a("aUbCw");let s=function(e,t){if("object"==typeof e&&null!==e){if("object"==typeof e.names&&"object"==typeof t)for(let o=0;o<t.length;o++){let r=t[o];if(e.names[r])return e.names[r]}return e.name?e.name:""}return e},c=function(e){return e.split(".").map(e=>"string"!=typeof e||"string"!=typeof e[0]?"":e=(e=e[0].toLowerCase()+e.slice(1)).replace(/([A-Z])/g,"_$1").toLowerCase()).join(".")};var l=class{get(e,t){return this.get_with_locales(e,null,t)}get_raw(e){return e=c(e),t(i)(this.data,e,null)}has_property(e){return null!==this._lookup_with_locales(e,this.default_locales,null)}_lookup_with_locales(e,t,o=""){t=this._process_locales(t),".name"===e.substr(-5)&&(e=e.substr(0,e.length-5));let r=this.get_raw(e);return(null===(r=s(r,t))||""===r)&&(r=o),r}_process_locales(e){return"string"==typeof e&&(e=[e]),Array.isArray(e)&&0!==e.length||(e=this.default_locales),e}get_with_locales(e,t,o){let r=this._lookup_with_locales(e,t,o);return("object"==typeof r&&console.warn('Geolocation IP Detection: The property "'+e+'" is of type "'+typeof r+'", should be string or similar',r),void 0===r)?(console.warn('Geolocation IP Detection: The property "'+e+'" is not defined, please check spelling or maybe you need a different data source',{data:this.data}),""):r}get_country_iso(){let e=this.get("country.iso_code");return e&&(e=e.substr(0,2).toLowerCase()),e}is_empty(){return this.get("is_empty",!1)}error(){return this.get_raw("extra.error")||""}serialize(){return this.data}constructor(e,t){(0,n._)(this,"data",{}),(0,n._)(this,"default_locales",[]),this.data=e||{is_empty:!0},this.default_locales=["en"],this.default_locales=this._process_locales(t)}}}),i("8WYat",function(t,o){e(t.exports,"_",function(){return r});function r(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}}),i("aUbCw",function(e,t){e.exports=function(e,t,o){var r,n;if(!e)return o;if(Array.isArray(t)&&(r=t.slice(0)),"string"==typeof t&&(r=t.split(".")),"symbol"==typeof t&&(r=[t]),!Array.isArray(r))throw Error("props arg must be an array, a string or a symbol");for(;r.length;)if(n=r.shift(),!e||void 0===(e=e[n]))return o;return e}}),i("h9BHh",function(t,o){e(t.exports,"get_info_cached",function(){return c});var r=a("6XCbI"),n=a("5eYZm"),i=a("kXwF1");let s=null;async function c(){let e=!1,t=!1;if(n.options.cookie_name&&(null==(t=(0,i.getRecordDataFromLocalStorage)())?void 0:t.extra))return!0===t.extra.override?console.info("Geolocation IP Detection: Using cached response (override)"):console.info("Geolocation IP Detection: Using cached response"),t;try{e=await function(){if(!s){let e=n.options.ajaxurl+"?action=geoip_detect2_get_info_from_current_ip";(s=(0,r.makeJSONRequest)(e)).then(e=>{var t;(null==e||null==(t=e.extra)?void 0:t.error)&&console.error("Geolocation IP Detection Error: Server returned an error: "+e.extra.error)})}return s}()}catch(t){console.log("Weird: Uncaught error...",t),e=t.responseJSON||t}if(n.options.cookie_name){var o,a;if((null==(t=(0,i.getRecordDataFromLocalStorage)())||null==(o=t.extra)?void 0:o.override)===!0)return console.info("Geolocation IP Detection: Using cached response 
1(override)"),t;let r=86400*n.options.cookie_duration_in_days;(null==e||null==(a=e.extra)?void 0:a.error)&&(r=60),(0,i.setRecordDataToLocalStorage)(e,r)}return e}}),i("6XCbI",function(t,o){e(t.exports,"makeJSONRequest",function(){return i});let r=function(e,t="GET"){var o=new XMLHttpRequest;return new Promise(function(r,n){o.onreadystatechange=function(){4===o.readyState&&(o.status>=200&&o.status<300?r(o):n({status:o.status,statusText:o.statusText,request:o}))},o.open(t||"GET",e,!0),o.send()})},n=function(e){try{return JSON.parse(e)}catch(t){return a("Invalid JSON: "+e)}};function a(e){return{is_empty:!0,extra:{error:e}}}let i=async function(e,t="GET"){try{let o=await r(e,t);if(!o.responseText||"0"===o.responseText)return a("Got an empty response from server. Did you enable AJAX in the options?");return n(o.responseText)}catch(e){return n(e.request.responseText)}}}),i("5eYZm",function(t,o){var r;e(t.exports,"options",function(){return n});let n=(null==(r=window.geoip_detect)?void 0:r.options)||{ajaxurl:"/wp-admin/admin-ajax.php",default_locales:["en"],cookie_duration_in_days:7,cookie_name:"geoip-detect-result",do_body_classes:!1}}),i("kXwF1",function(t,o){e(t.exports,"getRecordDataFromLocalStorage",function(){return i}),e(t.exports,"setRecordDataToLocalStorage",function(){return s}),e(t.exports,"getRecordDataLastEvaluated",function(){return l}),e(t.exports,"setRecordDataLastEvaluated",function(){return u});var r=a("de3ze"),n=a("5eYZm");a("e96f1");let i=()=>(0,r.getLocalStorage)(n.options.cookie_name),s=(e,t)=>{(0,r.setLocalStorage)(n.options.cookie_name,e,t)},c={},l=()=>c,u=()=>{c=i()}}),i("de3ze",function(t,o){e(t.exports,"setLocalStorage",function(){return r}),e(t.exports,"getLocalStorage",function(){return n});let r=function(e,t,o){var r={value:t,expires_at:new Date().getTime()+1e3*o/1};localStorage.setItem(e.toString(),JSON.stringify(r))},n=function(e){let t=null;try{t=JSON.parse(localStorage.getItem(e.toString()))}catch(e){return null}if(null!==t)if(!(null!==t.expires_at&&t.expires_at<new Date().getTime()))return t.value;else localStorage.removeItem(e.toString());return null}});var s=a("fw0Zn"),c=a("de3ze"),l=a("5eYZm"),u=a("e96f1"),d={};function f(e){if("__proto__"==e||"constructor"==e||"prototype"==e)throw Error("setting of prototype values not supported")}d=function(e,t,o){var r,n,a;if(Array.isArray(t)&&(r=t.slice(0)),"string"==typeof t&&(r=t.split(".")),"symbol"==typeof t&&(r=[t]),!Array.isArray(r))throw Error("props arg must be an array, a string or a symbol");if(!(n=r.pop()))return!1;for(f(n);a=r.shift();)if(f(a),void 0===e[a]&&(e[a]={}),!(e=e[a])||"object"!=typeof e)return!1;return e[n]=o,!0};var p=a("aUbCw");function g(e,t){var o,r;return e===t||e!=e&&t!=t||typeof e==typeof t&&({}).toString.call(e)==({}).toString.call(t)&&e===Object(e)&&!!e&&(Array.isArray(e)?_(e,t):"[object Set]"==({}).toString.call(e)?_(Array.from(e),Array.from(t)):"[object Object]"==({}).toString.call(e)?function(e,t){var o=Object.keys(e),r=o.length;if(r!=Object.keys(t).length)return!1;for(var n=0;n<r;n++){var a=o[n];if(!(t.hasOwnProperty(a)&&g(e[a],t[a])))return!1}return!0}(e,t):(o=e,r=t,o.toString()===r.toString()))}function _(e,t){var o=e.length;if(o!=t.length)return!1;for(var r=0;r<o;r++)if(!g(e[r],t[r]))return!1;return!0}let y=!1;function h(e,t,o=null){let r;y=!0,window.CustomEvent&&"function"==typeof window.CustomEvent?r=new CustomEvent(t,{detail:o}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,o),e.dispatchEvent(r),y=!1}let m=new Promise(e=>{"loading"===document.readyState?document.addEventListener?document.addEventListener("DOMContentLoaded",e):document.attachEvent("onreadystatechange",function(){"loading"!=document.readyState&&e()}):e()});function v(e,t,o){for(let r=0;r<e.options.length;r++)if(e.options[r].getAttribute(t)===o)return e.selectedIndex=r,!0;return!1}var s=a("fw0Zn");function w(e){let t=e.getAttribute("data-options");try{return JSON.parse(t)}catch(e){return{}}}async function b(e,t,o){let r=document.getElementsByClassName(e);if(!r.length)return;let n=await (0,s.get_info)();n.error()?console.error("Geolocation IP Detection Error ("+t+"): "+n.error()):Array.from(r).forEach(e
1=>o(e,n))}function x(e,t,o=null){let r=w(e);return o=o||r.property,r.skip_cache&&console.warn("Geolocation IP Detection: The property 'skip_cache' is ignored in AJAX mode. You could disable the response caching on the server by setting the constant GEOIP_DETECT_READER_CACHE_TIME."),t.get_with_locales(o,r.lang,r.default)}let E=!1,S=0;function A(e){if(y)return;let t=e.target;(null==t?void 0:t.matches)&&t.matches(".js-geoip-detect-input-autosave")&&function(e){let t=w(e).property,o=e.value;if((S++,E||S>10)?(console.warn("Error: Thats weird! autosave change detected a recursion ("+S+")! Please file a bug report about this and include the first 10 lines of the callstack below:"),console.trace(),!1):(E=!0,!0)){if(e.matches("select.js-geoip-detect-country-select")){let t=e.options[e.selectedIndex];Z("country.iso_code",(null==t?void 0:t.getAttribute("data-c")).toUpperCase(),{reevaluate:!1})}Z(t,o,{reevaluate:!0}),E=!1}}(t)}function L(e,t){e.innerText=x(e,t)}function j(e,t){let o=t.get_country_iso()||w(e).default;o&&e.classList.add("flag-icon-"+o)}function k(e,t){v(e,"data-c",t.get_country_iso())?h(e,"change"):v(e,"data-c","")&&h(e,"change")}function D(e,t){e.value=x(e,t),h(e,"change")}var T={};function O(e,o){var r,n,a;let i,s,c=w(e);(r=c.parsed,n=c,a=o,i=["name","iso_code","iso_code3","code","geoname_id"],s="or"!==r.op,r.conditions.forEach(e=>{var o,c;let l=!1,u=[],d=a.get_raw(e.p);null===d?l=!1:"object"==typeof d?i.forEach(t=>{d[t]?u.push(d[t]):"name"==t&&u.push(a.get_with_locales(e.p,n.lang))}):u=[d],o=e.v,!0===(c=u)[0]?c=["true","yes","y","1"]:!1===c[0]&&(c=["false","no","n","0",""]),c=c.map(e=>String(e).toLowerCase()),l=-1!==(o=o.split(",")).indexOf("")&&0===c.length||t(T)(o,c).length>0,e.not&&(l=!l),s="or"===r.op?s||l:s&&l}),r.not&&(s=!s),s)?(e.style.display="",e.classList.remove("geoip-hidden"),e.classList.add("geoip-shown")):(e.style.display="none",e.classList.add("geoip-hidden"),e.classList.remove("geoip-shown"))}T=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error("expected both arguments to be arrays");for(var o=[],r=function(e){for(var t={},o=0;o<e.length;o++){var r=e[o];t.hasOwnProperty(r)||(t[r]=!0)}return t}(t),n={},a=0;a<e.length;a++){var i=e[a];r.hasOwnProperty(i)&&!n.hasOwnProperty(i)&&(o.push(i),n[i]=!0)}return o};let C=function(){document.addEventListener("change",A,!1)},I=async function(){await m,Promise.allSettled([b("js-geoip-detect-shortcode","could not execute shortcode(s) [geoip_detect2 ...]",L),b("js-geoip-detect-flag","could not configure the flag(s)",j),b("js-geoip-text-input","could not set the value of the text input field(s)",D),b("js-geoip-detect-country-select","could not set the value of the select field(s)",k),b("js-geoip-detect-show-if","could not execute the show-if/hide-if conditions",O)]),h(document.getElementsByTagName("body")[0],"geoip-detect-shortcodes-done")};var s=a("fw0Zn");async function P(){let e=await (0,s.get_info)();e.error()?console.error("Geolocation IP Detection Error (could not add CSS-classes to body): "+e.error()):(await m,function(e){let t,o={country:e.get("country.iso_code"),"country-is-in-european-union":e.get("country.is_in_european_union",!1),continent:e.get("continent.code"),province:e.get("most_specific_subdivision.iso_code"),city:e.get("
1city.names.en")},r=document.getElementsByTagName("body")[0];for(let e of(t=r.className.split(" ").filter(e=>!e.startsWith("geoip-")),r.className=t.join(" ").trim(),Object.keys(o))){let t=(o[e]+"").replace(/%[a-fA-F0-9][a-fA-F0-9]/g,"").replace(/[^A-Za-z0-9_-]/g,"");t&&("string"==typeof t?r.classList.add(`geoip-${e}-${t}`):r.classList.add(`geoip-${e}`))}h(r,"geoip-detect-body-classes-done")}(e))}var l=a("5eYZm"),R=a("kXwF1");let G=!0;function N(){G&&(C(),G=!1),l.options.do_body_classes&&P(),I(),(0,R.setRecordDataLastEvaluated)()}var R=a("kXwF1");function U(e){return("number"==typeof(e=e||{})&&(e={duration_in_days:e}),e.duration_in_days=e.duration_in_days||l.options.cookie_duration_in_days,e.duration_in_days<0)?(console.warn("Geolocation IP Detection set_override_data() did nothing: A negative duration doesn't make sense. If you want to remove the override, use remove_override() instead."),!1):(void 0===e.reevaluate&&(e.reevaluate=!0),e)}function Z(e,o,r){var n,a,i;let s,c=(0,R.getRecordDataFromLocalStorage)();n=c,a=e,i=o,n=n||{},a=a||"",a=(0,u.camelToUnderscore)(a),"object"==typeof(s=t(p)(n,a))&&"object"==typeof s.names&&(a+=".name"),a.endsWith(".name")&&(a+="s",i={en:i}),t(d)(n,a,i),F(c=n,r)}function F(e,o){var r,n;return o=U(o),e&&"function"==typeof e.serialize&&(e=e.serialize()),r=e,n=o,r=r||{},t(d)(r,"extra.override",!0),(0,c.setLocalStorage)(l.options.cookie_name,r,86400*n.duration_in_days),!(!n.reevaluate||g(r,(0,R.getRecordDataLastEvaluated)()))&&(N(),!0)}N(),window.geoip_detect.get_info=s.get_info,window.geoip_detect.set_override=F,window.geoip_detect.set_override_with_merge=Z,window.geoip_detect.remove_override=function(e){return e=U(e),(0,c.setLocalStorage)(l.options.cookie_name,{},-1),e.reevaluate&&N(),!0}}();
2//# sourceMappingURL=frontend_full.js.map

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.