PageSourceSearch

https://www.whitehalltraining.com/_next/static/chunks/pages/ip-info-8adaf99c9b3760f8.js

js whitehalltraining.com collected 2026-10-04 13:29:54 UTC 8,054 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9968],{52800:function(e,s,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ip-info",function(){return c(83909)}])},83909:function(e,s,c){"use strict";c.r(s),c.d(s,{default:function(){return r}});var n=c(85893),i=c(9008),a=c.n(i),d=c(67294),l=c(64745);function r(){let[e,s]=(0,d.useState)(!0),[c,i]=(0,d.useState)(null),[r,t]=(0,d.useState)(null);return(0,d.useEffect)(()=>{(async function(){try{s(!0),t(null);let e=await fetch("".concat(l.Mr,"/geolocation-details"));if(!e.ok)throw Error("HTTP ".concat(e.status));let c=await e.json();i(c)}catch(n){t(n instanceof Error?n.message:"Failed to fetch IP information")}finally{s(!1)}})()},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:"IP Geolocation Information | Whitehall Training"}),(0,n.jsx)("meta",{name:"description",content:"View your IP address and geolocation details"})]}),(0,n.jsx)("div",{className:"container-fluid p-0",children:(0,n.jsxs)("div",{className:"banner-section p-5",children:[(0,n.jsx)("div",{className:"banner-top"}),(0,n.jsx)("div",{className:"container banner-content-wrap",children:(0,n.jsx)("div",{className:"row d-flex align-items-center mt-0",children:(0,n.jsxs)("div",{className:"col-md-12 mt-4",children:[(0,n.jsx)("h1",{className:"banner-txt2",children:"IP Geolocation Information"}),(0,n.jsx)("p",{className:"text-white mt-2",children:"View your IP address and location details from ipwho.is"})]})})})]})}),(0,n.jsx)("div",{className:"container-fluid py-5 bg-light",children:(0,n.jsxs)("div",{className:"container",children:[e&&(0,n.jsxs)("div",{className:"text-center py-5",children:[(0,n.jsx)("div",{className:"spinner-border text-primary",role:"status",children:(0,n.jsx)("span",{className:"visually-hidden",children:"Loading..."})}),(0,n.jsx)("p",{className:"mt-3",children:"Fetching IP information..."})]}),r&&(0,n.jsxs)("div",{className:"alert alert-danger",role:"alert",children:[(0,n.jsx)("h4",{className:"alert-heading",children:"Error"}),(0,n.jsx)("p",{children:r})]}),!e&&!r&&c&&(0,n.jsx)("div",{className:"row",children:(0,n.jsxs)("div",{className:"col-lg-8 mx-auto",children:[(0,n.jsxs)("div",{className:"card shadow-sm",children:[(0,n.jsx)("div",{className:"card-header bg-primary text-white",children:(0,n.jsxs)("h3",{className:"card-title mb-0",children:[c.country_flag&&(0,n.jsx)("span",{className:"me-2",children:c.country_flag}),"Geolocation Details"]})}),(0,n.jsxs)("div",{className:"card-body",children:[!1===c.success?(0,n.jsxs)("div",{className:"alert alert-warning",children:[(0,n.jsx)("strong",{children:"Note:"})," ",c.message||"Could not retrieve full geolocation data"]}):null,(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h5",{className:"text-primary border-bottom pb-2 mb-3",children:"IP Address"}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Detected IP:"}),(0,n.jsx)("div",{className:"text-muted font-monospace",children:c.detected_ip||"N/A"})]}),c.ip&&c.ip!==c.detected_ip&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"IP Address:"}),(0,n.jsx)("div",{className:"text-muted font-monospace",children:c.ip})]}),c.type&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"IP Type:"}),(0,n.jsx)("div",{className:"text-muted",children:c.type})]}),c.detection_method&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Detection Method:"}),(0,n.jsx)("div",{className:"text-muted",children:(0,n.jsx)("span",{className:"badge bg-info",children:c.detection_method})})]})]})]}),(c.country||c.country_code)&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h5",{className:"text-primary border-bottom pb-2 mb-3",children:"Location"}),(0,n.jsxs)("div",{className:"row",children:[c.country&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Country:"}),(0,n.jsxs)("div",{className:"text-muted",children:[c.country_flag&&(0,n.jsx)("span",{className:"me-1",children:c.country_flag}),c.country]})]}),c.country_code&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Country Code:"}),(0,n.jsx)("div",{className:"text-muted",children:(0,n.jsx)("span",{className:"badge bg-secondary",children:c.country_code})})]}),c.country_capital&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Capital:"}),(0,n.jsx)("div",{className:"text-muted",children:c.country_capital})]}),c.country_phone&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Phone Code:"}),(0,n.jsx)("div",{className:"text-muted",children:c.country_phone})]}),c.region&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Region:"}),(0,n.jsx)("div",{className:"text-muted",children:c.region})]}),c.city&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"City:"}),(0,n.jsx)("div",{className:"text-muted",children:c.city})]}),(void 0!==c.latitude||void 0!==c.longitude)&&(0,n.jsxs)("div",{className:"col-md-12 mb-2",children:[(0,n.jsx)("strong",{children:"Coordinates:"}),(0,n.jsx)("div",{className:"text-muted",children:void 0!==c.latitude&&void 0!==c.longitude?"".concat(c.latitude,", ").concat(c.longitude):"N/A"})]})]})]}),(c.asn||c.org||c.isp)&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h5",{className:"text-primary border-bottom pb-2 mb-3",children:"Network"}),(0,n.jsxs)("div",{className:"row",children:[c.asn&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"ASN:"}),(0,n.jsx)("div",{className:"text-muted font-monospace",children:c.asn})]}),c.org&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Organization:"}),(0,n.jsx)("div",{className:"text-muted",children:c.org})]}),c.isp&&(0,n.jsxs)("div",{className:"col-md-12 mb-2",children:[(0,n.jsx)("strong",{children:"ISP:"}),(0,n.jsx)("div",{className:"text-muted",children:c.isp})]})]})]}),c.timezone&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h5",{className:"text-primary border-bottom pb-2 mb-3",children:"Timezone"}),(0,n.jsxs)("div",{className:"row",children:[c.timezone&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Timezone:"}),(0,n.jsx)("div",{className:"text-muted",children:c.timezone})]}),c.timezone_name&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Timezone Name:"}),(0,n.jsx)("div",{className:"text-muted",children:c.timezone_name})]}),c.timezone_gmt&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"GMT Offset:"}),(0,n.jsx)("div",{className:"text-muted",children:c.timezone_gmt})]})]})]}),c.currency_code&&(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)("h5",{className:"text-primary border-bottom pb-2 mb-3",children:"Currency"}),(0,n.jsxs)("div",{className:"row",children:[c.currency_code&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Currency Code:"}),(0,n.jsx)("div",{className:"text-muted",children:(0,n.jsx)("span",{className:"badge bg-success",children:c.currency_code})})]}),c.currency_symbol&&(0,n.jsxs)("div",{className:"col-md-6 mb-2",children:[(0,n.jsx)("strong",{children:"Currency Symbol
1:"}),(0,n.jsx)("div",{className:"text-muted",children:c.currency_symbol})]}),c.currency_plural&&(0,n.jsxs)("div",{className:"col-md-12 mb-2",children:[(0,n.jsx)("strong",{children:"Currency Name:"}),(0,n.jsx)("div",{className:"text-muted",children:c.currency_plural})]})]})]}),c.note&&(0,n.jsx)("div",{className:"alert alert-info mt-3",children:(0,n.jsx)("small",{children:c.note})})]})]}),(0,n.jsx)("div",{className:"mt-4 text-center",children:(0,n.jsx)("button",{className:"btn btn-primary",onClick:()=>window.location.reload(),children:"Refresh Information"})})]})})]})})]})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=52800)}),_N_E=e.O()}]);

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.