/home/bdqbpbxa/demo-subdomains/ping-proxies.goodface.com.ua/build/static/js/990.3d06ff40.chunk.js
"use strict";(self.webpackChunkping_proxies=self.webpackChunkping_proxies||[]).push([[990],{7057:(e,t,s)=>{s.d(t,{r:()=>o});var n,i=s(2791);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},a.apply(this,arguments)}function r(e,t){let{title:s,titleId:r,...o}=e;return i.createElement("svg",a({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),s?i.createElement("title",{id:r},s):null,n||(n=i.createElement("path",{id:"Check Circle",fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.2243 5.57574C11.4586 5.81005 11.4586 6.18995 11.2243 6.42426L7.22426 10.4243C6.98995 10.6586 6.61005 10.6586 6.37574 10.4243L4.77574 8.82426C4.54142 8.58995 4.54142 8.21005 4.77574 7.97574C5.01005 7.74142 5.38995 7.74142 5.62426 7.97574L6.8 9.15147L8.58787 7.3636L10.3757 5.57574C10.6101 5.34142 10.9899 5.34142 11.2243 5.57574Z",fill:"#00B67A"})))}const o=i.forwardRef(r);s.p},1269:(e,t,s)=>{s.r(t),s.d(t,{default:()=>H});var n=s(193),i=s(3425),a=s(5727),r=s(1172),o=s(2791),l=s(4420),c=s(452),d=s(184);const p=e=>{let{title:t,desc:s,ips:n,button_text:p,button_text_link:u,hasCrumbs:x}=e;const h=(0,o.useRef)(),g=(0,l.v9)(c.X9);return(0,r.nT)({item:".hero-body",container:h,dependencies:[g],isLoading:g}),(0,r.nT)({item:".button",container:h,dependencies:[g],isLoading:g}),(0,d.jsxs)("div",{ref:h,className:"hero-container ".concat(x?"hero-container--with-crumbs":""),children:[x&&(0,d.jsx)(a.Z,{page:t,locations:!0}),(0,d.jsxs)("div",{className:"hero-body",children:[(0,d.jsx)("div",{className:"description1",children:t}),(0,d.jsx)("h1",{children:n}),(0,d.jsx)("div",{className:"body1 body1--M",children:s})]}),(0,d.jsx)(i.Z,{text:p,to:u,forPopup:!0})]})};var u=s(7139),x=s(4112),h=s(4270);const g=()=>{const e=(0,l.v9)(c.zi),t=(0,l.v9)(c.X9),s=(0,x.Jn)(e.image);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.q,{title:e.small_title,meta:[{name:"description",content:e.description}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"http://schema.org","@type":"Service",serviceType:e.small_title,provider:{"@type":"Organization",name:"Ping Proxies",url:"https://www.pingproxies.com"},areaServed:"Worldwide",description:e.description})}]}),(0,d.jsx)(u.Z,{image:(0,d.jsx)("img",{src:s,alt:""}),isLoading:t,children:(0,d.jsx)(p,{title:e.small_title,desc:e.description,ips:e.title,button_text:e.button_text,button_text_link:e.button_text_link,hasCrumbs:!0})})]})};var m=s(7651),b=s(2567),j=s(870),v=s(9074),f=s(7815),y=s(7057),_=s(1358);const w=e=>{let{columns:t,data:s,isScrolled:n=!1}=e;const{getTableProps:i,getTableBodyProps:a,headerGroups:r,rows:o,prepareRow:l}=(0,_.useTable)({columns:t,data:s});return(0,d.jsx)("div",{className:"table-container ".concat(n?"table-container--scrolled":""),children:(0,d.jsxs)("table",{...i(),className:"table",children:[(0,d.jsx)("thead",{className:"table-head",children:r.map((e=>(0,d.jsx)("tr",{...e.getHeaderGroupProps(),children:e.headers.map((e=>(0,d.jsx)("th",{...e.getHeaderProps(),className:"button-text",children:e.render("Header")})))})))}),(0,d.jsx)("tbody",{...a(),children:o.map(((e,t)=>(l(e),(0,d.jsx)("tr",{...e.getRowProps(),style:{borderBottom:"1px solid #ddd"},children:e.cells.map(((e,t)=>(0,d.jsx)("td",{...e.getCellProps(),className:"".concat(0===t?"first-column":""),children:"boolean"===typeof e.value?e.value?(0,d.jsx)(y.r,{}):"-":(0,d.jsx)("span",{className:"link",children:e.render("Cell")})})))}))))})]})})},C=e=>{let{isLoading:t}=e;const s=(0,o.useRef)(),n=(0,l.v9)(c.Y8),{tag:i,title:a,proxy_table:p}=n;return(0,r._7)({items:[".location-table h2",".table-container"],container:s,dependencies:[t]}),p?(0,d.jsxs)("section",{ref:s,className:"inner-container location-table",children:[(0,d.jsx)(f.Z,{text:i}),(0,d.jsx)("h2",{children:a}),(0,d.jsx)(w,{data:p,columns:[{Header:"City",accessor:"city"},{Header:"IP Count",accessor:"ip_count"},{Header:"Protocols",accessor:"protocols"},{Header:"IP Version",accessor:"ip_version"},{Header:"Bandwidth",accessor:"bandwidth"}]})]}):null};var L=s(8904),P=s(1477);const Z=e=>{let{data:t,isLoading:s}=e;return null===t||void 0===t?void 0:t.map(((e,t)=>(0,d.jsx)(L.Z,{image:e.image,paralaxBg:e.paralax_type,type:e.type,isLoading:s,children:(0,d.jsx)(P.Z,{label:e.tag,title:e.title,desc:e.description,button:e.button_text,link:e.button_link})},t)))};var k=s(7689),N=s(7146);const H=()=>{const e=(0,l.I0)(),{countrySlug:t}=(0,k.UO)(),s=(0,k.s0)(),[i,a]=(0,o.useState)(!0),r=(0,l.v9)(c.Qj),{title:p,tag:u,product_card:x}=(0,l.v9)(c.W$),h=(0,l.v9)(c.tS),f=(0,l.v9)(c.s0),y=(0,l.v9)(c.gU),_=(0,l.v9)(c.hj),w=(0,l.v9)(c.kI),L=(0,l.v9)(c.X9),P=(0,N.h)(t,L);return(0,o.useEffect)((()=>{t&&e((0,c.mX)({countrySlug:t}))}),[e,t]),(0,o.useEffect)((()=>{a(!(P&&!L&&t))}),[P,L,t]),i||r?!L&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g,{}),(0,d.jsx)(n.Z,{title:p,tag:u,products:x,isLoading:i}),(0,d.jsx)(C,{isLoading:i}),(0,d.jsx)(Z,{data:h,isLoading:i}),(0,d.jsx)(m.Z,{reviews:f,isLoading:i}),(0,d.jsx)(b.Z,{data:y,isLoading:i}),(0,d.jsx)(j.Z,{data:_,isLoading:i}),(0,d.jsx)(v.Z,{cta:w,isLoading:i})]}):(s("*"),null)}}}]);
//# sourceMappingURL=990.3d06ff40.chunk.js.map