/home/bdqbpbxa/demo-subdomains/ping-proxies.goodface.com.ua/build/static/js/405.3ec41b87.chunk.js
"use strict";(self.webpackChunkping_proxies=self.webpackChunkping_proxies||[]).push([[405],{5285:(e,t,s)=>{s.d(t,{r:()=>c});var i,l,n=s(2791);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},r.apply(this,arguments)}function a(e,t){let{title:s,titleId:a,...c}=e;return n.createElement("svg",r({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),s?n.createElement("title",{id:a},s):null,i||(i=n.createElement("g",{id:"CalendarBlank",clipPath:"url(#clip0_743_7244)"},n.createElement("path",{id:"Vector",d:"M9.625 0.4375V2.1875M4.375 0.4375V2.1875M1.3125 4.8125H12.6875M1.82955 1.3125H12.1705C12.456 1.3125 12.6875 1.54399 12.6875 1.82955V12.1705C12.6875 12.456 12.456 12.6875 12.1705 12.6875H1.82955C1.54399 12.6875 1.3125 12.456 1.3125 12.1705V1.82955C1.3125 1.54399 1.54399 1.3125 1.82955 1.3125Z",stroke:"#0D1126",strokeWidth:1.5,strokeLinecap:"square"}))),l||(l=n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_743_7244"},n.createElement("rect",{width:14,height:14,fill:"white"})))))}const c=n.forwardRef(a);s.p},5774:(e,t,s)=>{s.d(t,{r:()=>c});var i,l,n=s(2791);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},r.apply(this,arguments)}function a(e,t){let{title:s,titleId:a,...c}=e;return n.createElement("svg",r({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),s?n.createElement("title",{id:a},s):null,i||(i=n.createElement("g",{id:"Clock",clipPath:"url(#clip0_743_7248)"},n.createElement("path",{id:"Vector",d:"M7.75 3.9375V3.1875H6.25V3.9375H7.75ZM7 7H6.25V7.75H7V7ZM10.0625 7.75H10.8125V6.25H10.0625V7.75ZM11.9375 7C11.9375 9.72691 9.72691 11.9375 7 11.9375V13.4375C10.5553 13.4375 13.4375 10.5553 13.4375 7H11.9375ZM7 11.9375C4.27309 11.9375 2.0625 9.72691 2.0625 7H0.5625C0.5625 10.5553 3.44467 13.4375 7 13.4375V11.9375ZM2.0625 7C2.0625 4.27309 4.27309 2.0625 7 2.0625V0.5625C3.44467 0.5625 0.5625 3.44467 0.5625 7H2.0625ZM7 2.0625C9.72691 2.0625 11.9375 4.27309 11.9375 7H13.4375C13.4375 3.44467 10.5553 0.5625 7 0.5625V2.0625ZM6.25 3.9375V7H7.75V3.9375H6.25ZM7 7.75H10.0625V6.25H7V7.75Z",fill:"#0D1126"}))),l||(l=n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_743_7248"},n.createElement("rect",{width:14,height:14,fill:"white"})))))}const c=n.forwardRef(a);s.p},2760:(e,t,s)=>{s.d(t,{Z:()=>c,r:()=>a});var i,l=s(2791);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},n.apply(this,arguments)}function r(e,t){let{title:s,titleId:r,...a}=e;return l.createElement("svg",n({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),s?l.createElement("title",{id:r},s):null,i||(i=l.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M3.72335 5.59835C2.625 6.6967 2.625 8.46447 2.625 12C2.625 15.5355 2.625 17.3033 3.72335 18.4017C4.8217 19.5 6.58947 19.5 10.125 19.5H13.875C17.4105 19.5 19.1783 19.5 20.2766 18.4017C21.375 17.3033 21.375 15.5355 21.375 12C21.375 8.46447 21.375 6.6967 20.2766 5.59835C19.1783 4.5 17.4105 4.5 13.875 4.5H10.125C6.58947 4.5 4.8217 4.5 3.72335 5.59835ZM18.1652 7.79987C18.4138 8.09819 18.3734 8.54156 18.0751 8.79016L16.0159 10.5062C15.185 11.1986 14.5115 11.7599 13.917 12.1422C13.2978 12.5405 12.6948 12.7921 12 12.7921C11.3052 12.7921 10.7022 12.5405 10.083 12.1422C9.48855 11.7599 8.81504 11.1987 7.98408 10.5062L5.92487 8.79016C5.62655 8.54156 5.58624 8.09819 5.83484 7.79987C6.08344 7.50155 6.52681 7.46124 6.82513 7.70984L8.84909 9.39648C9.72374 10.1254 10.331 10.6298 10.8437 10.9595C11.3399 11.2787 11.6765 11.3858 12 11.3858C12.3235 11.3858 12.6601 11.2787 13.1563 10.9595C13.669 10.6298 14.2763 10.1254 15.1509 9.39648L17.1749 7.70984C17.4732 7.46124 17.9166 7.50155 18.1652 7.79987Z",fill:"white"})))}const a=l.forwardRef(r),c=s.p+"static/media/Letter.5b5d9766a4b3486f8bc331a1dc6132db.svg"},6401:(e,t,s)=>{s.d(t,{Z:()=>x});s(4829);var i=s(7815),l=s(3425),n=s(440),r=s(4112),a=s(1172),c=s(2791),o=s(4420),d=s(6713),h=s(2760),u=s(8883),m=s(1202),b=s(9813),p=s(6596),g=s(6393),v=s(184);const x=e=>{let{isLoading:t}=e;const s=(0,p.Z)("max-width: 768px"),{tag:x,title:j,description:f,email_placeholder:_,button_text:C,policy_text:w,success_title:y,success_description:N}=(0,o.v9)(d.tD),[Z,E]=(0,c.useState)(!1),[V,k]=(0,c.useState)(!0),[H,M]=(0,c.useState)(!0),[O,S]=(0,c.useState)({Email:"",termsCheck:!1}),B=(0,g.Z)({category:"User",action:"Submit Subscribe in Blog"}),R=(0,c.useRef)();return(0,a._7)({items:[".newsletter-subscriber h2",".newsletter-subscriber__desc",".input-container"],container:R,dependencies:[t]}),(0,a.zk)({items:[".newsletter-subscriber__bg"],container:R,dependencies:[t]}),(0,v.jsxs)("section",{ref:R,className:"container newsletter-subscriber ".concat(Z?"newsletter-subscriber-sent":""),children:[Z?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"newsletter-subscriber-label",children:(0,v.jsx)("img",{src:h.Z,alt:""})}),(0,v.jsx)("h2",{className:"h2",children:y}),(0,v.jsx)("div",{className:"body2 newsletter-subscriber__desc",children:N})]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(i.Z,{text:x,type:"outline"}),(0,v.jsx)("h2",{className:"h2",children:j}),(0,v.jsx)("div",{className:"body2 newsletter-subscriber__desc",children:f}),(0,v.jsxs)("div",{className:"input-container",children:[(0,v.jsxs)("div",{className:"newsletter-subscriber__input",children:[(0,v.jsx)("input",{className:"input ".concat(V?"":"input--error"),type:"email",name:"Email",placeholder:_,value:O.Email,onChange:e=>{return t="Email",s=e.target.value,S((e=>({...e,[t]:s}))),void k(!0);var t,s}}),!V&&(0,v.jsx)("div",{className:"body3 error",children:"Incorrect value"})]}),(0,v.jsx)(l.Z,{type:"white",text:C,size:"L",hasArrow:!1,onClick:()=>{if(e=O.Email,!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return void k(!1);var e;if(!O.termsCheck)return void M(!1);B();const t={data:{email:O.Email}};(0,u.NS)({data:t}).then((e=>{E(!0)})).catch((e=>{console.error("Error:",e)})),E(!0)}})]}),(0,v.jsxs)("div",{className:"input-container",children:[(0,v.jsx)(n.Z,{id:"styledCheckbox",error:H,checked:O.termsCheck,onChange:e=>{S((t=>({...t,termsCheck:e}))),M(!0)}}),(0,v.jsx)("label",{htmlFor:"styledCheckbox",children:(0,v.jsx)("div",{className:"body4",children:(0,r.FB)(w)})})]})]}),(0,v.jsx)("img",{className:"newsletter-subscriber__bg",src:s?b.Z:m.Z,alt:""})]})}},395:(e,t,s)=>{s.d(t,{Z:()=>l});var i=s(184);const l=e=>{let{text:t,size:s="M"}=e;return(0,i.jsx)("div",{className:"tag tag--".concat(s),children:t})}},4941:(e,t,s)=>{s.d(t,{Z:()=>p});var i=s(2791),l=s(5285),n=s(5774),r=s(395),a=s(8155),c=s(4112),o=s(1087),d=s(184);const h=e=>{var t,s;let{data:i}=e;const{title:h,time_to_read:u,createdAt:m,image:b,tags:p,content:g,slug:v}=null===i||void 0===i?void 0:i.attributes,x=(0,c.Jn)(b),j=(0,c.E5)(m),f=null===g||void 0===g||null===(t=g.filter((e=>"paragraph"===e.type)))||void 0===t?void 0:t[0],_=f?[f]:[];return(0,d.jsx)("li",{className:"blog-post-item__li",children:(0,d.jsxs)(o.rU,{to:"".concat(a.Z.blog,"/").concat(v),className:"blog-post-item",children:[(0,d.jsx)("div",{className:"blog-post-item__image",children:(0,d.jsx)("img",{src:x,alt:""})}),(0,d.jsxs)("div",{className:"blog-post-item__body",children:[(0,d.jsx)("div",{className:"blog-post-item__body-tags",children:null===p||void 0===p||null===(s=p.data)||void 0===s?void 0:s.map((e=>{var t;return(0,d.jsx)(r.Z,{text:null===e||void 0===e||null===(t=e.attributes)||void 0===t?void 0:t.name},e.id)}))}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"description2",children:h}),(0,d.jsx)("div",{className:"body2 blog-post-item__body-desc",children:(0,c.FB)(_)})]}),(0,d.jsxs)("div",{className:"blog-post-item__body-info",children:[(0,d.jsxs)("div",{className:"blog-post-item__body-info-item",children:[(0,d.jsx)(l.r,{}),j]}),(0,d.jsxs)("div",{className:"blog-post-item__body-info-item",children:[(0,d.jsx)(n.r,{}),u]})]})]})]})})};var u=s(6713),m=s(4420),b=s(1172);const p=e=>{let{posts:t=[]}=e;const s=(0,m.v9)(u.Vq),l=(0,i.useRef)();return(0,b._7)({items:[".blog-post-item__li"],container:l,dependencies:[s]}),(0,d.jsx)("ul",{id:"blog-posts",ref:l,className:"blog-posts",children:null===t||void 0===t?void 0:t.map((e=>(0,d.jsx)(h,{data:e},e.id)))})}},9405:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});s(6636);var i=s(6401),l=s(6713),n=s(5727),r=s(4420),a=s(2791),c=s(1172),o=s(184);const d=e=>{let{title:t,desc:s}=e;const i=(0,r.v9)(l.Vq),d=(0,a.useRef)();return(0,c._7)({items:[".blog-title-section h1",".blog-title-section .body1"],container:d,dependencies:[i]}),(0,o.jsxs)("section",{ref:d,className:"inner-container blog-title-section",children:[(0,o.jsx)(n.Z,{page:"Blog"}),(0,o.jsx)("h1",{children:t}),(0,o.jsx)("div",{className:"body1",children:s})]})};var h=s(4278);const u=e=>{let{tags:t,selectedTag:s,onClick:i}=e;const n=(0,r.v9)(l.Vq),d=(0,a.useRef)();(0,c._7)({items:[".blog-filter"],container:d,dependencies:[n]});const h=e=>{let{tag:t}=e;return(0,o.jsx)("button",{onClick:()=>i(t),className:"blog__tag-button link ".concat(t===s?"active":""),children:t})};return(0,o.jsx)("div",{ref:d,children:(0,o.jsx)("div",{className:"blog-filter",children:t.map((e=>(0,o.jsx)(h,{tag:e},e)))})})};var m=s(8921),b=s(4941),p=s(4112);const g="Show All",v=()=>{var e;const t=(0,r.I0)(),[s,l]=(0,a.useState)(g),[n,v]=(0,a.useState)(1),{title:x,description:j}=(0,r.v9)(h.Se),f=(0,r.v9)(h.Fg),_=(0,r.v9)(h.Vq),{data:C,meta:w}=(0,r.v9)(h.do),y=(0,a.useRef)();(0,c._7)({items:[".blog-pagination"],container:y,dependencies:[_]});const N=null===w||void 0===w||null===(e=w.pagination)||void 0===e?void 0:e.pageCount,Z=[g,...f];return(0,a.useEffect)((()=>{t((0,h.i5)()),t((0,h.hU)())}),[t]),(0,a.useEffect)((()=>{t((0,h.T6)({page:n,type:s===g?null:s}))}),[t,n,s]),!_&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{title:x,desc:j}),(0,o.jsxs)("div",{ref:y,className:"inner-container",children:[(0,o.jsx)(u,{tags:Z,selectedTag:s,onClick:e=>{l(e),v(1)}}),(0,o.jsx)(b.Z,{posts:C}),n>=1&&N>1?(0,o.jsx)("div",{className:"blog-pagination",children:(0,o.jsx)(m.Z,{count:N,page:n,onChange:(e,t)=>{v(t),(0,p.Qj)("blog-filter")},boundaryCount:1,hidePrevButton:1===n,hideNextButton:n===N})}):(0,o.jsx)(o.Fragment,{})]})," ",(0,o.jsx)(i.Z,{isLoading:_})]})}},6636:()=>{}}]);
//# sourceMappingURL=405.3ec41b87.chunk.js.map