/home/bdqbpbxa/demo-subdomains/ping-proxies.goodface.com.ua/build/static/js/306.3958126b.chunk.js
"use strict";(self.webpackChunkping_proxies=self.webpackChunkping_proxies||[]).push([[306],{7057:(e,t,a)=>{a.d(t,{r:()=>c});var l,i=a(2791);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},s.apply(this,arguments)}function n(e,t){let{title:a,titleId:n,...c}=e;return i.createElement("svg",s({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?i.createElement("title",{id:n},a):null,l||(l=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 c=i.forwardRef(n);a.p},7275:(e,t,a)=>{a.d(t,{r:()=>r});var l,i,s=a(2791);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},n.apply(this,arguments)}function c(e,t){let{title:a,titleId:c,...r}=e;return s.createElement("svg",n({width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":c},r),a?s.createElement("title",{id:c},a):null,l||(l=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 10C3 9.44772 3.44772 9 4 9H16C16.5523 9 17 9.44772 17 10C17 10.5523 16.5523 11 16 11H4C3.44772 11 3 10.5523 3 10Z"})),i||(i=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3C10.5523 3 11 3.44772 11 4V16C11 16.5523 10.5523 17 10 17C9.44772 17 9 16.5523 9 16V4C9 3.44772 9.44772 3 10 3Z"})))}const r=s.forwardRef(c);a.p},7236:(e,t,a)=>{a.d(t,{Z:()=>n});var l=a(8445),i=a(4420),s=a(184);const n=e=>{let{SideText:t,children:a}=e;const n=(0,i.v9)(l.Ju);return(0,s.jsx)("div",{className:"inner-container",children:(0,s.jsxs)("div",{className:"with-sidetext-layout",children:[(0,s.jsx)("div",{className:"with-sidetext-layout__left ".concat(n?"":"with-sidetext-layout__left--with-banner"),children:t}),(0,s.jsx)("div",{className:"with-sidetext-layout__right",children:a})]})})}},4826:(e,t,a)=>{a.d(t,{Z:()=>x});var l=a(2791),i=a(4420),s=a(7057),n=a(4112),c=a(8445),r=a(6596),d=a(7275),o=a(6713),u=a(1087),p=a(184);const x=()=>{var e;const t=(0,l.useRef)(null),a=(0,r.Z)("max-width:1024px"),x=(0,i.v9)(c.Ju),v=(0,i.v9)(o.RR),{best_for_text:m,quantity_discounts_text:_,customizable_bandwidth_text:h,pricing_ip_text:b,pricing_gb_text:j,city_targeting_text:f,country_targeting_text:g,unlimited_threads_text:y,unlimited_bandwidth_text:N,ip_rotation_text:C,static_ip_address_text:w,full_proxy_management_text:k,api_access_text:V,compare_product:Z}=v,q=[{key:["best_for"],label:m},{key:["quantity_discounts_text","quantity_discounts"],label:_},{key:["quantity_discounts_text","customizable_bandwidth"],label:h},{key:["pricing_ip_text","pricing_ip"],label:b},{key:["pricing_gb_text","pricing_gb"],label:j},{key:["country_targeting_text","country_targeting"],label:g},{key:["city_targeting_text","city_targeting"],label:f},{key:["unlimited_threads_text","unlimited_threads"],label:y},{key:["unlimited_bandwidth_text","unlimited_bandwidth"],label:N},{key:["ip_rotation_text","ip_rotation"],label:C},{key:["static_ip_address_text","static_ip_address"],label:w},{key:["full_proxy_management_text","full_proxy_management"],label:k},{key:["api_access_text","api_access"],label:V}],[B,T]=(0,l.useState)({}),R=(e,t)=>{for(let a of t.key){const t=e[a];if(null!==t&&void 0!==t)return"boolean"===typeof t?t?(0,p.jsx)(s.r,{}):(0,p.jsx)("span",{children:"-"}):(0,p.jsx)("span",{children:t})}return"-"};return(0,l.useEffect)((()=>{v.compare_product&&v.compare_product.length>0&&a&&T({[v.compare_product[0].id]:!0})}),[v.compare_product,v.compare_product.length,a]),a?(0,p.jsx)("div",{className:"compare-products-accordion",children:null===(e=v.compare_product)||void 0===e?void 0:e.map((e=>(0,p.jsxs)("div",{className:"compare-products-accordion__item",children:[(0,p.jsxs)("div",{className:"compare-products-accordion__header ".concat(B[e.id]?"active":""),onClick:()=>{return t=e.id,void T((e=>({...e,[t]:!e[t]})));var t},children:[(0,p.jsxs)("div",{className:"compare-products-accordion__header-body",children:[(0,p.jsx)("img",{src:(0,n.Jn)(e.icon),alt:e.name,className:"compare-products-accordion__header-icon"}),(0,p.jsx)("div",{className:"accordion__product-name",children:e.name})]}),(0,p.jsx)("div",{className:"compare-products-accordion__header-cross",children:(0,p.jsx)(d.r,{})})]}),(0,p.jsx)("div",{ref:t,style:{maxHeight:B[e.id]?"".concat(t.current?t.current.scrollHeight:0,"px"):"0px"},className:"compare-products-accordion__content ".concat(B[e.id]?"active":""),children:q.map(((t,a)=>(0,p.jsxs)("div",{className:"compare-products-accordion__content-row",children:[(0,p.jsx)("div",{className:"info-label",children:t.label}),(0,p.jsx)("div",{className:"info-value",children:R(e,t)})]},a)))})]},e.id)))}):(0,p.jsxs)("div",{className:"compare-products-table",children:[(0,p.jsx)("div",{className:"compare-products-table__header-row ".concat(x?"":"compare-products-table__header-row--with-banner"),children:(0,p.jsxs)("div",{className:"compare-products-table__header-row-container",children:[(0,p.jsx)("div",{}),null===Z||void 0===Z?void 0:Z.map((e=>(0,p.jsxs)(u.rU,{to:e.link,"aria-label":e.name,children:[(0,p.jsx)("img",{src:(0,n.Jn)(e.icon),alt:e.icon.data.attributes.alternativeText,className:"compare-products-table__product-icon"}),e.name]},e.id)))]})}),q.map(((e,t)=>(0,p.jsxs)("div",{className:"compare-products-table__product-row",children:[(0,p.jsx)("div",{className:"compare-products-table__info-column",children:e.label}),null===Z||void 0===Z?void 0:Z.map((t=>(0,p.jsx)("div",{children:R(t,e)},t.id)))]},t)))]})}},3230:(e,t,a)=>{a.d(t,{Z:()=>o});var l=a(3425),i=a(2791),s=a(1172);const n=a.p+"static/media/CTA.0b8dd7e9509ee3cff0568026b5b6f11f.svg";const c=a.p+"static/media/ctaBgMob.b80a1e2001c741c79f5cb02e01428b14.svg";var r=a(6596),d=a(184);const o=e=>{let{cta:t,isLoading:a}=e;const o=(0,r.Z)("max-width: 768px"),{title:u,button_text:p,description:x}=t,v=(0,i.useRef)();return(0,s._7)({items:[".cta"],container:v,dependencies:[a]}),(0,s.zk)({items:[".cta__bg"],container:v,dependencies:[a]}),(0,d.jsx)("section",{ref:v,className:"container",children:(0,d.jsxs)("div",{className:"cta",children:[(0,d.jsx)("h2",{children:u}),(0,d.jsx)("div",{className:"body1",children:x}),(0,d.jsx)(l.Z,{text:p,type:"white",forPopup:!0}),(0,d.jsx)("img",{className:"cta__bg",src:o?c:n,alt:""})]})})}},6605:(e,t,a)=>{a.d(t,{Z:()=>x});var l=a(4270),i=a(2791),s=a(7275),n=a(4112),c=a(184);const r=e=>{let{item:t}=e;const{title:a,text:l}=t,[r,d]=(0,i.useState)(!1),o=(0,i.useRef)(null),[u,p]=(0,i.useState)("0px");return(0,c.jsxs)("div",{className:"faq-item ".concat(r?"--open":""),onClick:function(){d(!r),p(r?"0px":"".concat(o.current.scrollHeight,"px"))},children:[(0,c.jsxs)("div",{className:"faq-item__header ",children:[(0,c.jsx)("div",{className:"description2",children:a}),(0,c.jsx)("div",{className:"faq-item__header-cross",children:(0,c.jsx)(s.r,{})})]}),(0,c.jsx)("div",{ref:o,style:{maxHeight:"".concat(u)},className:"faq-item__body",children:l&&(0,c.jsx)("div",{className:"body2",children:(0,n.FB)(l)})})]})},d=e=>{let{questions:t}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.q,{script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"http://schema.org","@type":"FAQPage",mainEntity:t.map((e=>({"@type":"Question",name:e.title,acceptedAnswer:{"@type":"Answer",text:e.text}})))})}]}),(0,c.jsx)("div",{className:"faq-items",children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,c.jsx)(r,{item:e},t)))})]})};var o=a(3734),u=a(1087),p=a(6596);const x=e=>{let{sections:t,sideText:a}=e;const l=(0,p.Z)("max-width: 640px"),{help_link:i,title:s,help_link_text:n}=a;return(0,c.jsxs)("div",{className:"faq-section",children:[t&&t.map(((e,t)=>(0,c.jsxs)("div",{className:"faq-section-items",children:[e.tag&&(0,c.jsx)("div",{className:"body1",children:e.tag}),(0,c.jsx)(d,{questions:e.question})]},t))),l&&(0,c.jsxs)("div",{className:"faq-sidetext__stills",children:[(0,c.jsx)("div",{className:"body2",children:s}),(0,c.jsxs)(u.rU,{to:i,"aria-label":"Contact with us",className:"button-text",children:[(0,c.jsx)(o.r,{})," ",n]})]})]})}},870:(e,t,a)=>{a.d(t,{Z:()=>x});var l=a(7236),i=a(7815),s=a(3734),n=a(1087),c=a(6596),r=a(184);const d=e=>{let{tag:t,sideTitle:a,desc:l,button_link:d,title:o,button_text:u}=e;const p=(0,c.Z)("max-width: 640px");return(0,r.jsxs)("div",{className:"faq-sidetext",children:[(0,r.jsx)(i.Z,{text:t}),(0,r.jsx)("h2",{children:a}),!p&&(0,r.jsxs)("div",{className:"faq-sidetext__stills",children:[(0,r.jsx)("div",{className:"body2",children:o}),(0,r.jsxs)(n.rU,{to:d,"aria-label":"Contact with us",className:"button-text",children:[(0,r.jsx)(s.r,{})," ",u]})]})]})};var o=a(6605),u=a(2791),p=a(1172);const x=e=>{let{data:t,isLoading:a}=e;const i=(0,u.useRef)(),{tag:s,title:n,help_text:c,help_link:x,help_link_text:v,question_section:m}=t,_={title:c,help_link_text:v,help_link:x};return(0,p._7)({items:[".faq-sidetext",".faq-section"],container:i,dependencies:[a]}),(0,r.jsx)("section",{ref:i,className:"faq",children:(0,r.jsx)(l.Z,{SideText:(0,r.jsx)(d,{tag:s,sideTitle:n,desc:c,button_link:x,title:c,button_text:v}),children:(0,r.jsx)(o.Z,{sections:m,sideText:_})})})}},1239:(e,t,a)=>{a.d(t,{Z:()=>d});var l=a(7815),i=a(4112),s=a(184);const n=e=>{let{data:t}=e;const{description:a,payments_method:l}=t;return(0,s.jsxs)("div",{className:"payment-item",children:[(0,s.jsx)("div",{className:"payment-item__image",children:(0,s.jsx)("div",{className:"payment-item__image-container",children:l.map(((e,t)=>{const a=(0,i.Jn)(e.icon);return(0,s.jsx)("img",{src:a,alt:""},t)}))})}),(0,s.jsx)("div",{className:"body2",children:a})]})};var c=a(2791),r=a(1172);const d=e=>{let{payments:t,isLoading:a}=e;const{tag:i,title:d,card:o}=t,u=(0,c.useRef)();return(0,r._7)({items:[".payment h2",".payment-item"],container:u,dependencies:[a]}),(0,s.jsxs)("section",{ref:u,className:"inner-container payment",children:[(0,s.jsx)(l.Z,{text:i}),(0,s.jsx)("h2",{children:d}),(0,s.jsx)("div",{className:"payment-container",children:null===o||void 0===o?void 0:o.map(((e,t)=>(0,s.jsx)(n,{data:e},t)))})]})}},8331:(e,t,a)=>{a.d(t,{B3:()=>s,Cb:()=>c,_1:()=>n,dX:()=>i,ui:()=>l});const l=[{label:"1",value:1},{label:"",value:2},{label:"",value:3},{label:"",value:4},{label:"",value:5},{label:"",value:6},{label:"",value:7},{label:"",value:8},{label:"",value:9},{label:"",value:10},{label:"",value:20},{label:"",value:30},{label:"",value:40},{label:"50",value:50},{label:"",value:75},{label:"100",value:100},{label:"",value:125},{label:"150",value:150},{label:"",value:175},{label:"200",value:200},{label:"",value:225},{label:"250",value:250},{label:"300",value:300},{label:"350",value:350},{label:"400",value:400},{label:"450",value:450},{label:"500",value:500},{label:"600",value:600},{label:"700",value:700},{label:"800",value:800},{label:"900",value:900},{label:"1000",value:1e3}],i=[{label:"1 GB",value:1,realValue:1},{label:"2 GB",value:2,realValue:2},{label:"5 GB",value:3,realValue:5},{label:"10 GB",value:4,realValue:10},{label:"25 GB",value:5,realValue:25},{label:"50 GB",value:6,realValue:50},{label:"100 GB",value:7,realValue:100},{label:"250 GB",value:8,realValue:250},{label:"500 GB",value:9,realValue:500},{label:"1 TB",value:10,realValue:1e3},{label:"1.5 TB",value:11,realValue:1500},{label:"2 TB",value:12,realValue:2e3},{label:"3 TB",value:13,realValue:3e3},{label:"4 TB",value:14,realValue:4e3},{label:"5 TB",value:15,realValue:5e3}],s=(e,t)=>"month"===e&&1===t?"Mountly":"month"===e&&3===t?"Quarterly":"year"===e&&1===t?"Annually":void 0,n=function(){return Number(((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)/100).toFixed(2))},c=(e,t)=>{var a;for(let l=0;l<(null===t||void 0===t?void 0:t.length);l++){const a=t[l];if(null===a.price_tier_up_to||e<=a.price_tier_up_to)return a.price_tier_amount}return null===(a=t[(null===t||void 0===t?void 0:t.length)-1])||void 0===a?void 0:a.price_tier_amount}},7004:(e,t,a)=>{a.d(t,{Z:()=>X});var l=a(2791),i=a(7815),s=a(5699),n=a(8331),c=a(6596),r=a(184);function d(e){return"".concat(e)}function o(e){var t;return null===(t=n.dX[n.dX.findIndex((t=>t.value===e))])||void 0===t?void 0:t.label}const u=e=>{let{sliderValue:t,onChange:a}=e;const l=(0,c.Z)("max-width: 640px"),i=(0,c.Z)("max-width: 1024px");let u=n.dX;if(l){const e=n.dX.filter((e=>e.label)),t=e.reduce(((e,t,a)=>(a%2===0&&e.push(a),e)),[]);u=e.map(((e,a)=>t.includes(a)&&a!==t[t.length-1]?{...e,value:null}:e))}return(0,r.jsxs)("div",{className:"product-price-range",children:[(0,r.jsx)(s.ZP,{"aria-label":"Number of units",valueLabelFormat:o,getAriaValueText:d,step:null,valueLabelDisplay:"on",marks:u,value:t.value,onChange:(e,t,l)=>{const i=n.dX[n.dX.findIndex((e=>e.value===t))];a(i)},min:n.dX[0].value,max:n.dX.length}),!i&&(0,r.jsxs)("div",{className:"product-price-range__labels body3",children:[(0,r.jsx)("div",{className:"product-price-range__labels-item",children:"Min: 1 GB"}),(0,r.jsx)("div",{className:"product-price-range__labels-item",children:"Max: 5 TB"})]})]})};var p=a(4420),x=a(180),v=a(3425),m=a(9663);const _=e=>{let{lists:t,color:a}=e;return(0,r.jsx)("ul",{children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,r.jsxs)("li",{children:[(0,r.jsx)(m.r,{className:"list-icon",style:{color:a}}),(0,r.jsx)("div",{className:"body2",children:e.text})]},t)))})},h=e=>{let{index:t,onClick:a,currentInterval:l,price_cycle_interval:i,price_cycle_interval_count:s}=e;const c=l===t?"active":"",d=(0,n.B3)(i,s);return(0,r.jsx)("div",{"data-name":d,className:"product-price-card-tabs__item ".concat(c),onClick:()=>a(t),children:d})};var b=a(4112),j=a(6393);const f=e=>{var t;let{data:a,fields:s,sliderValue:d,selectedTab:o=0,additionalComponent:u}=e;const m=(0,p.v9)(x.qq),f=(0,c.Z)("max-width: 1024px"),g="number"===typeof d,y=g?d:d.realValue,{product_prices:N}=a,[C,w]=(0,l.useState)(0),[k,V]=(0,l.useState)(0),[Z,q]=(0,l.useState)(o),[B,T]=(0,l.useState)(g?y:d.label),[R,S]=(0,l.useState)(null===N||void 0===N||null===(t=N[Z])||void 0===t?void 0:t.price_tiers),L=(0,j.Z)({category:"User",action:"Buy Now Click"}),P=e=>{q(e)};if((0,l.useEffect)((()=>{var e;S(null===N||void 0===N||null===(e=N[Z])||void 0===e?void 0:e.price_tiers)}),[m,Z,N]),(0,l.useEffect)((()=>{R&&(w((0,n._1)((0,n.Cb)(y,R))),V(Number((C*y).toFixed(2))),T(g?"".concat(y," IP"):d.label))}),[y,C,g,d,R]),!s)return;const{button_text:I,color_list_icon:M,name:E,price_per_unit_text:F,quantity_text:G,card_items:H,icon:O,discount_text:X}=s,A=(0,b.Jn)(O);return(0,r.jsxs)("div",{className:"product-price-card",children:[(0,r.jsxs)("div",{className:"product-price-card-header",children:[(0,r.jsx)("div",{className:"product-price-card__icon",style:{color:M},children:(0,r.jsx)("img",{src:A,alt:""})}),(0,r.jsx)("div",{className:"body1 product-price-card__info-title",children:E})]}),(0,r.jsx)("div",{className:"product-price-card-tabs",children:null===N||void 0===N?void 0:N.map(((e,t)=>{let{price_cycle_interval:a,price_cycle_interval_count:l}=e;return(0,r.jsx)(h,{index:t,onClick:P,currentInterval:Z,price_cycle_interval:a,price_cycle_interval_count:l},t)}))}),f&&u,(0,r.jsxs)("div",{className:"product-price-card__price-container",children:[(0,r.jsxs)("div",{className:"product-price-card__prices",children:[(0,r.jsxs)("div",{className:"description1",children:["$ ",C]}),(0,r.jsx)("div",{className:"body2",children:F})]}),X&&(0,r.jsx)(i.Z,{text:"".concat(X)})]}),(0,r.jsxs)("div",{className:"product-price-card-counts",children:[(0,r.jsxs)("div",{className:"product-price-card-counts-item",children:[(0,r.jsx)("span",{children:(0,r.jsx)("div",{className:"body2",children:G})}),(0,r.jsx)("div",{className:"body2",children:B})]}),(0,r.jsxs)("div",{className:"product-price-card-counts-item",children:[(0,r.jsx)("div",{className:"body1",children:"Total"}),(0,r.jsxs)("div",{className:"body2",children:["$",k]})]})]}),(0,r.jsx)(_,{color:M,lists:H}),(0,r.jsx)(v.Z,{text:I,onClick:L})]})};var g=a(6713);const y=e=>{let{sliderValue:t,onChange:a}=e;const l=(0,p.v9)(x.pv),i=(0,p.v9)(g.R_);return(0,r.jsx)(f,{data:l,fields:i,sliderValue:t,additionalComponent:(0,r.jsx)(u,{sliderValue:t,onChange:a})})},N=e=>{let{list:t,title:a}=e;return(0,r.jsxs)("div",{className:"product-price-plans",children:[(0,r.jsx)("div",{className:"body2",children:a}),(0,r.jsx)("ul",{children:t.map(((e,t)=>(0,r.jsxs)("li",{className:"body2",children:[(0,r.jsx)(m.r,{}),(0,r.jsx)("span",{children:e.text})]},t)))})]})},C=()=>{const e=(0,p.v9)(x.pv),{products:t}=(0,p.v9)(g.hy);if(!t)return;const a=null===t||void 0===t?void 0:t.find((t=>t.unique_id===e.product_id));return a?(0,r.jsx)(N,{list:a.description_items,title:a.description_title}):void 0},w=()=>{const e=(0,p.v9)(x.vC),{products:t}=(0,p.v9)(g.hy);if(!t)return;const a=null===t||void 0===t?void 0:t.find((t=>t.unique_id===e.product_id));return a?(0,r.jsx)(N,{list:a.description_items,title:a.description_title}):void 0};function k(e){return"".concat(e)}function V(e){return"".concat(e," IP")}const Z=e=>{let{sliderValue:t,onChange:a}=e;const l=(0,c.Z)("max-width: 640px"),i=(0,c.Z)("max-width: 1024px");let d=n.ui;if(l){const e=n.ui.filter((e=>e.label)).filter(((e,t)=>t%2===0));d=n.ui.map((t=>e.includes(t)&&t!==e[e.length-1]?{...t,label:null}:t))}return(0,r.jsxs)("div",{className:"product-price-range",children:[(0,r.jsx)(s.ZP,{"aria-label":"Number of units",valueLabelFormat:V,getAriaValueText:k,step:null,valueLabelDisplay:"on",marks:d,value:t,onChange:(e,t,l)=>{a(t)},min:1,max:1e3}),!i&&(0,r.jsxs)("div",{className:"product-price-range__labels body3",children:[(0,r.jsx)("div",{className:"product-price-range__labels-item",children:"Min: 1 IP"}),(0,r.jsx)("div",{className:"product-price-range__labels-item",children:"Max: 1000 IP"})]})]})},q=e=>{let{sliderValue:t,onChange:a}=e;const l=(0,p.v9)(x.vC),i=(0,p.v9)(g.so);return(0,r.jsx)(f,{data:l,fields:i,sliderValue:t,selectedTab:2,additionalComponent:(0,r.jsx)(Z,{sliderValue:t,onChange:a})})};function B(e){return"".concat(e)}function T(e){return"".concat(e," IP")}const R=e=>{let{sliderValue:t,onChange:a}=e;const l=(0,c.Z)("max-width: 640px"),i=(0,c.Z)("max-width: 1024px");let d=n.ui;if(l){const e=n.ui.filter((e=>e.label)),t=e.reduce(((e,t,a)=>(a%2===0&&e.push(a),e)),[]);d=e.map(((e,a)=>t.includes(a)&&a!==t[t.length-1]?{...e,label:null}:e))}return(0,r.jsxs)("div",{className:"product-price-range",children:[(0,r.jsx)(s.ZP,{"aria-label":"Number of units",valueLabelFormat:T,getAriaValueText:B,step:null,valueLabelDisplay:"on",marks:d,value:t,onChange:(e,t,l)=>{a(t)},min:1,max:1e3}),!i&&(0,r.jsxs)("div",{className:"product-price-range__labels body3",children:[(0,r.jsx)("div",{className:"product-price-range__labels-item",children:"Min: 1 IP"}),(0,r.jsx)("div",{className:"product-price-range__labels-item",children:"Max: 1000 IP"})]})]})},S=e=>{let{sliderValue:t,onChange:a}=e;const l=(0,p.v9)(x.$F),i=(0,p.v9)(g.lW);return(0,r.jsx)(f,{data:l,fields:i,sliderValue:t,additionalComponent:(0,r.jsx)(R,{sliderValue:t,onChange:a})})},L=()=>{const e=(0,p.v9)(x.$F),{products:t}=(0,p.v9)(g.hy);if(!t)return;const a=null===t||void 0===t?void 0:t.find((t=>t.unique_id===e.product_id));return a?(0,r.jsx)(N,{list:a.description_items,title:a.description_title}):void 0};var P=a(710),I=a(4826);const M=()=>{const e=(0,l.useRef)(null),[t,a]=(0,l.useState)(!1),[i,s]=(0,l.useState)("0px");return(0,r.jsxs)("div",{className:"product-price-table",children:[(0,r.jsx)("div",{ref:e,style:{maxHeight:i},className:"product-price-table-container",children:(0,r.jsx)(I.Z,{})}),(0,r.jsxs)("button",{className:"button-text product-price-table-button ".concat(t?"open":""),onClick:function(){a(!t),s(t?"0px":"".concat(e.current.scrollHeight,"px"))},children:[t?(0,r.jsx)("span",{children:"Hide"}):(0,r.jsx)("span",{children:"Compare Plans"}),(0,r.jsx)(P.r,{className:"arrow"})]})]})};var E=a(1172),F=a(7689);const G="datacenter",H="static",O="residental",X=e=>{let{isLoading:t,withTable:a=!0}=e;const{productSlug:s}=(0,F.UO)(),{tag:d,title:o}=(0,p.v9)(g.hy),[x,v]=(0,l.useState)(),[m,_]=(0,l.useState)(n.dX[3]),[h,b]=(0,l.useState)(100),[j,f]=(0,l.useState)(100),N=(0,p.v9)(g.so),k=(0,p.v9)(g.lW),V=(0,p.v9)(g.R_),B=(0,c.Z)("max-width: 1024px"),T=(0,l.useRef)(),P={[G]:"".concat(o," premium ").concat(null===N||void 0===N?void 0:N.name),[H]:"".concat(o," ").concat(null===k||void 0===k?void 0:k.name),[O]:"".concat(o," ").concat(null===V||void 0===V?void 0:V.name)};(0,l.useEffect)((()=>{switch("".concat(s)){case"datacenter-proxies":default:v(G);break;case"static-residential-proxies":v(H);break;case"residential-proxy":v(O)}}),[s]);const I=()=>{switch(x){case G:return(0,r.jsx)(q,{sliderValue:h,onChange:b});case H:return(0,r.jsx)(S,{sliderValue:j,onChange:f});case O:return(0,r.jsx)(y,{sliderValue:m,onChange:_});default:return null}},X=()=>{switch(x){case G:return(0,r.jsx)(w,{});case H:return(0,r.jsx)(L,{});case O:return(0,r.jsx)(C,{});default:return null}};return(0,E._7)({items:[".product-price h2",".product-price-container"],container:T,dependencies:[t]}),(0,r.jsxs)("section",{ref:T,className:"container product-price",children:[(0,r.jsx)(i.Z,{text:d}),(0,r.jsx)("h2",{children:P[x]}),(0,r.jsxs)("div",{className:"product-price-container",children:[(0,r.jsxs)("div",{className:"product-price-config",children:[(0,r.jsxs)("div",{className:"product-price-tabs",children:[(0,r.jsx)("div",{className:"button-text product-price-tabs__item ".concat(x===G?"active":""),onClick:()=>v(G),children:null===N||void 0===N?void 0:N.name}),(0,r.jsx)("div",{className:"button-text product-price-tabs__item ".concat(x===H?"active":""),onClick:()=>v(H),children:null===k||void 0===k?void 0:k.name}),(0,r.jsx)("div",{className:"button-text product-price-tabs__item ".concat(x===O?"active":""),onClick:()=>v(O),children:null===V||void 0===V?void 0:V.name})]}),!B&&(0,r.jsx)("div",{className:"product-price-range",children:(()=>{switch(x){case G:return(0,r.jsx)(Z,{sliderValue:h,onChange:b});case H:return(0,r.jsx)(R,{sliderValue:j,onChange:f});case O:return(0,r.jsx)(u,{sliderValue:m,onChange:_});default:return null}})()}),!B&&X()]}),B&&I(),B&&X(),!B&&I()]}),a&&(0,r.jsx)(M,{})]})}}}]);
//# sourceMappingURL=306.3958126b.chunk.js.map