1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89984],{1215:(e,a,r)=>{"use strict";r.d(a,{A:()=>_});var t=r(96677),l=r(39033),s=r(27492),i=r.n(s),n=r(11602),o=r.n(n),c=r(17521),d=r(74064),m=r(27820),h=r(66374),u=r(51816),p=r(31610),g=r(92534),x=r(7091),b=r(33522),j=r(12597),A=r(20969),C=r(17646);let v=({categories:e,searchDefaultValue:a})=>{let{t:r}=(0,p.A)(),[s,n]=(0,l.useState)(!!a),c=(0,l.useCallback)(()=>n(!1),[]);return(0,t.jsx)("div",{className:i()(o().searchBar),children:(0,t.jsx)(A.A,{active:s,onViewChange:c,children:(0,t.jsxs)("div",{className:i()(o().searchBar__control),children:[(0,t.jsx)("button",{type:"button",className:i()(o().searchBar__toggle),onClick:()=>n(e=>!e),"aria-label":r("common.search.placeholder"),"aria-expanded":s,children:(0,t.jsx)(C.zfp,{"aria-hidden":"true"})}),s&&(0,t.jsx)("div",{className:i()(o().searchBar__panel),children:(0,t.jsx)(j.A,{categories:e,searchDefaultValue:a,autoFocus:!0})})]})})})};var f=r(74258);let w=(0,l.memo)(function({category:e,currentCategoryId:a}){return(0,t.jsx)(h.A,{variant:null,size:"s",href:(0,g._4)(e),className:i()(o().categories__button,{[o().categories__button_active]:""===e.id?!a:a===(0,g.k0)(e)}),children:e.label},e.label)}),_=({categories:e,subcategories:a=[],activeCategory:r,activeSubcategory:s,searchDefaultValue:n})=>{let{t:h}=(0,p.A)(),{category:j}=(0,x.GV)(e=>e.page.blog),{l10n:A}=(0,f.A)(),C=r??j,_=(0,l.useMemo)(()=>{let a=e.filter(e=>!e.hidden);return[{id:"",label:h("page.blog.categories.all"),hidden:!1},...a]},[e,h]),k=(0,g.k0)(C),y=a.length>0&&k===(0,g.K9)(A);return(0,t.jsxs)(c.A,{padding:{desktop:[2.67,0,y?3:2],mobile:[2,0,y?2.67:2],tablet:[2,0,y?2.67:2]},className:i()(o().categoriesNav),children:[(0,t.jsx)("div",{className:i()(o().mobileSearch),children:(0,t.jsx)(v,{categories:e,searchDefaultValue:n})}),(0,t.jsx)("div",{className:i()(o().mobileMenuWrapper),children:(0,t.jsx)("div",{className:i()(o().mobileMenu),children:(0,t.jsxs)(u.A,{className:i()(o().mobileMenu__switch),children:[(0,t.jsx)(u.A.Switch,{size:"l",className:i()(o().mobileMenu__switchButton),children:(0,t.jsx)(d.A,{weight:"semibold",color:"white",children:C?.label||h("page.blog.categories.all")})}),(0,t.jsx)(u.A.Menu,{className:"mobileMenu__dropdown",children:_.map(e=>(0,t.jsx)(u.A.Option,{id:e.id,value:e.label,selected:k===e.id,children:(0,t.jsx)(b.A,{variant:null,href:(0,g._4)(e),className:i()(o().mobileMenu__link),children:(0,t.jsx)(d.A,{weight:"semibold",color:"white",children:e.label})})},e.id))})]})})}),(0,t.jsx)("div",{className:i()(o().desktopCategories),children:(0,t.jsxs)("div",{className:i()(o().desktopCategories__row),children:[(0,t.jsx)(m.A.Container,{gap:.67,wrap:"wrap",justifyContent:"center",children:_.map(e=>(0,t.jsx)(w,{category:e,currentCategoryId:k},e.id))}),(0,t.jsx)(v,{categories:e,searchDefaultValue:n})]})}),y&&(0,t.jsx)(c.A,{padding:[2,0,0],className:i()(o().subcategories),children:(0,t.jsx)(m.A.Container,{gap:1.5,wrap:"wrap",justifyContent:"center",children:a.map(e=>(0,t.jsx)(b.A,{href:(0,g.Ss)(C,e),className:i()(o().subcategories__link),children:(0,t.jsxs)(d.A,{variant:"default",weight:"semibold",color:(0,g.k0)(s)===(0,g.k0)(e)?"gray-50":"gray-90",children:["#",e.label]})},(0,g.k0)(e)))})})]})}},1312:(e,a,r)=>{"use strict";r.d(a,{X:()=>l});var t=r(39033);let l=e=>{let a={},r={};Object.keys(e).forEach(t=>{a[t]=e[t].value,r[t]=null});let[l,s]=(0,t.useState)(a),[i,n]=(0,t.useState)(r),o=(0,t.useMemo)(()=>{let e=Object.values(i).some(e=>null!==e),a=Object.values(l).some(e=>!e.trim());return!e&&!a},[l,i]);return{formData:l,errorData:i,handleChange:a=>{let{name:r,value:t}=a.target;l[r]!==t&&(s(e=>({...e,[r]:t})),n(a=>({...a,[r]:e[r].validator(t)})))},isFormValid:o,validateAll:()=>{let a={};Object.keys(e).forEach(r=>{a[r]=e[r].validator(l[r])}),n(a);let r=Object.values(a).some(e=>null!==e),t=Object.values(l).some(e=>!e.trim());return!r&&!t}}}},15701:(e,a,r)=>{"use strict";r.d(a,{A:()=>y});var t,l=r(96677),s=r(39033),i=r(11602),n=r.n(i),o=r(10782),c=r.n(o),d=r(96775),m=r(17521),h=r(74064),u=r(33522),p=r(74258),g=r(73427),x=r(92534),b=r(27820),j=r(83113),A=r(47333),C=r(27675),v=r.n(C),f=((t=f||{})[t.Large=7]="Large",t[t.Medium=6]="Medium",t[t.Small=5]="Small",t[t.XSmall=4]="XSmall",t);let w={0:7,1:5,2:4,3:4,4:4,5:6,6:6,7:4,8:4,9:4},_=(e,a)=>{let r={width:a?1600:800,height:a?1200:600},t=a=>Math.round(r[a]*(e/12));return{width:t("width"),height:t("height")}},k=({categories:e,categoryId:a})=>e.find(e=>(0,x.k0)(e)===a),y=({articles:e,categories:a,subcategories:r=[],currentPage:t})=>{let{l10n:i}=(0,p.A)(),o="desktop"===(0,A.A)(),C=(0,s.useCallback)((e,s)=>{let p,g,A=k({categories:a,categoryId:e.category}),C=k({categories:r,categoryId:e.subcategory}),y=w[t&&1===t?s:(s+5)%10]||5,N=_(y,o).width,I=_(y,o).height,M=(0,x.AH)({category:A,subcategory:C,slug:e.slug});return(0,l.jsx)(d.A.Item,{size:{desktop:y,mobile:12},children:(0,l.jsxs)("div",{className:n().layout__articleWrapper,"data-size":f[y]?.toLowerCase(),children:[(0,l.jsx)("div",{className:n().layout__hoverContainer}),(0,l.jsx)(m.A,{padding:[0,0,.67],children:e.image&&(0,l.jsx)(u.A,{href:M,children:(0,l.jsx)("div",{className:n().layout__imageContainer,children:(0,l.jsx)(j.A,{src:e.image,alt:e.slug,width:N,height:I,sizes:(p=c().mediaTabletAndDesktop.replace(/"/gi,""),g=Math.round(100*y/12),`(${p}) ${g}vw, 100vw`),className:n().layout__image})})})}),(0,l.jsxs)(b.A.Container,{wrap:"wrap",gap:.5,alignItems:"center",children:[(0,l.jsx)(u.A,{href:(0,x._4)(A),children:(0,l.jsx)(h.A,{variant:"small",weight:"semibold",color:"green-2",children:`#${A?.label}`})}),"ru"===i&&"cases"===(0,x.k0)(A)&&C&&(0,l.jsx)(u.A,{href:(0,x.Ss)(A,C),children:(0,l.jsxs)(h.A,{variant:"small",weight:"semibold",color:"green-2",children:["#",C.label]})})]}),(0,l.jsx)(m.A,{padding:[.67,0],children:(0,l.jsx)(h.A,{variant:"h5",children:(0,l.jsx)(u.A,{color:"gray-90",href:M,qaId:"blog-article-title",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:v().sanitize(e.title)}})})})}),e?.introtext&&(0,l.jsx)(h.A,{color:"gray-75",variant:"small",children:e.introtext})]})})},[a,t,o,i,r]);return(0,l.jsx)(m.A,{padding:[0,0,4],children:(0,l.jsx)(d.A.Container,{gap:[3,2],children:e.map((e,a)=>(0,l.jsxs)(s.Fragment,{children:[t&&1===t&&5===a&&(0,l.jsx)(d.A.Item,{size:12,children:"ru"===i?null:(0,l.jsx)(g.default,{})},"subscribe-form"),C(e,a)]}
1,(0,x.WR)(e,a)))})})}},15819:(e,a,r)=>{"use strict";r.d(a,{A:()=>d});var t=r(96677),l=r(66374),s=r(17521),i=r(74064),n=r(27820),o=r(33522),c=r(92534);let d=({currentPage:e,totalPages:a,category:r=null,subcategory:d=null})=>{let m=d?(0,c.Ss)(r,d):r?(0,c._4)(r):(0,c.yW)();return a<=1?null:(0,t.jsx)(s.A,{padding:[0,0,5],children:(0,t.jsxs)(n.A.Container,{justifyContent:"center",wrap:"wrap",children:[e>4&&(0,t.jsx)(n.A.Item,{alignSelf:"center",children:(0,t.jsx)(o.A,{href:m,children:(0,t.jsx)(i.A,{color:"green-2",children:"..."})})}),(()=>{let r=[],s=Math.max(e-3,1),i=Math.min(e+3,a);for(let a=s;a<=i;a++){let s=1===a?m:`${m}/page/${a}`;r.push((0,t.jsx)(l.A,{variant:"pagination",href:s,disabled:e===a,children:a},a))}return r})(),e<a-3&&(0,t.jsx)(n.A.Item,{alignSelf:"center",children:(0,t.jsx)(o.A,{href:`${m}/page/${a}`,children:(0,t.jsx)(i.A,{color:"green-2",children:"..."})})})]})})}},65963:e=>{e.exports={screenMobileMax:"760px",screenTabletMax:"1225px",screenDesktopMin:"1226px",mediaMobile:'"max-width: 760px"',mediaMobileAndTablet:'"max-width: 1225px"',mediaTablet:'"min-width: 761px) and (max-width: 1225px"',mediaTabletAndDesktop:'"min-width: 761px"',mediaDesktop:'"min-width: 1226px"',mediaNarrowDesktop:'"(min-width: 1226px) and (max-width: 1388px)"',leadForm:"leadform_leadForm__4YOd_",leadFormImage:"leadform_leadFormImage__YFgpx",leadFormButton:"leadform_leadFormButton__8Vwek",leadFormContent:"leadform_leadFormContent__N2zzY"}},73427:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>f});var t=r(96677),l=r(39033),s=r(27492),i=r.n(s),n=r(11602),o=r.n(n),c=r(17521),d=r(74064),m=r(83494),h=r(88443),u=r(66374),p=r(31610),g=r(12844),x=r(96775),b=r(67711),j=r(20962),A=r(1312),C=r(47333),v=r(27820);let f=()=>{let{t:e}=(0,p.A)(),a=(0,C.A)(),[r,s]=(0,l.useState)({type:null,text:null}),{formData:n,errorData:f,handleChange:w,isFormValid:_}=(0,A.X)({name:{value:"",validator:a=>a.trim()?null:e("common.vip_request.errors.name")},email:{value:"",validator:a=>a?.length>=6&&(0,j.DT)(a)?null:e("common.vip_request.errors.email")}});return(0,t.jsx)(c.A,{padding:[1,0],children:(0,t.jsxs)(m.A,{background:null,className:i()(o().container,o().subscribeFormContainer),children:[r.type?(0,t.jsx)(d.A,{color:"white",variant:"h4",children:r.text}):(0,t.jsxs)("form",{onSubmit:a=>{a.preventDefault(),_&&fetch("https://api.jivosite.com/api/1/blog/subscribe",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:b.A.stringifyParams({params:{...n,formName:"Bot module subscribe form"}})}).then(a=>{a.ok?s({type:"success",text:e("page.blog.subscribe.success")}):s({type:"error",text:e("page.blog.subscribe.error")})}).catch(a=>{console.error("Error submitting form:",a),s({type:"error",text:e("page.blog.subscribe.error")})})},children:[(0,t.jsx)(d.A,{variant:"h4",color:"white",align:"center",children:e("page.blog.subscribe.popup.desc")}),(0,t.jsx)(v.A.Container,{direction:"column",justifyContent:"center",alignItems:"center",children:(0,t.jsx)(v.A.Item,{width:{desktop:"80%",tablet:"100%",mobile:"100%"},children:(0,t.jsxs)(x.A.Container,{columns:{desktop:5,mobile:1},children:[(0,t.jsx)(x.A.Item,{size:{desktop:2,mobile:1},children:(0,t.jsx)(c.A,{padding:[1,0,0],children:(0,t.jsx)(g.A,{size:"l",variant:"rounded",type:"text",name:"name",placeholder:e("page.blog.subscribe.name.placeholder"),value:n.name,onChange:w,note:f.name,required:!0,className:i()(o().subscribeFormInput)})})}),(0,t.jsx)(x.A.Item,{size:{desktop:2,mobile:1},children:(0,t.jsx)(c.A,{padding:[1,0,0],children:(0,t.jsx)(g.A,{size:"l",variant:"rounded",type:"email",name:"email",placeholder:e("page.blog.subscribe.popup.placeholder"),value:n.email,onChange:w,note:f.email,required:!0,className:i()(o().subscribeFormInput)})})}),(0,t.jsx)(x.A.Item,{size:1,alignSelf:"center",children:(0,t.jsx)(c.A,{padding:[1,0,0],children:(0,t.jsx)(u.A,{fullWidth:!0,variant:"accent",className:i()(o().subscribeFormButton),children:e("page.blog.subscribe.popup.submit")})})})]})})})]}),"desktop"===a&&(0,t.jsx)("div",{className:i()(o().subscribeImageContainer),children:(0,t.jsx)(h.A,{src:"/images/pages/blog/subscribe-form.webp",alt:"Subscribe",he
1ight:365,width:300,className:i()(o().subscribeImage)})})]})})}},79914:(e,a,r)=>{"use strict";r.d(a,{A:()=>v});var t=r(96677),l=r(39033),s=r(27492),i=r.n(s),n=r(65963),o=r.n(n),c=r(17521),d=r(74064),m=r(83494),h=r(96775),u=r(31610),p=r(12844),g=r(66374),x=r(1359),b=r(63526),j=r(67711),A=r(81849),C=r(27820);let v=()=>{let{t:e,Translation:a}=(0,u.A)(),r=(0,b.useRouter)(),{endpoints:s,params:n}=(0,x.A)(),[v,f]=(0,l.useState)("");return(0,t.jsx)(c.A,{padding:[0,0,5],children:(0,t.jsx)(m.A,{background:null,className:i()(o().leadForm),padding:{desktop:[1.5,5,2,1.5],tablet:[2],mobile:[2]},children:(0,t.jsx)("div",{itemScope:!0,itemType:"https://schema.org/Action",children:(0,t.jsxs)(h.A.Container,{columns:{desktop:12,mobile:1,tablet:1},gap:4,children:[(0,t.jsx)(h.A.Item,{size:{desktop:5,tablet:1,mobile:1},children:(0,t.jsx)("div",{className:i()(o().leadFormImage),children:(0,t.jsx)(A.A,{alt:"",src:"/images/pages/blog/reg-form.webp",width:434,height:293})})}),(0,t.jsx)(h.A.Item,{size:{desktop:7,tablet:1,mobile:1},children:(0,t.jsxs)("div",{itemProp:"potentialAction",itemScope:!0,itemType:"https://schema.org/RegisterAction",children:[(0,t.jsx)(c.A,{padding:[0,0,1.7],children:(0,t.jsx)(C.A.Container,{direction:"column",gap:0,className:i()(o().leadFormContent),children:(0,t.jsxs)(C.A.Item,{width:{desktop:"80%",tablet:"100%",mobile:"100%"},children:[(0,t.jsx)(d.A,{variant:"h4",color:"black",children:(0,t.jsx)("span",{itemProp:"name",children:e("common.reg_form.title")})}),(0,t.jsx)(c.A,{padding:[.67,0,0],children:(0,t.jsx)(d.A,{color:"gray-85",children:(0,t.jsx)("span",{itemProp:"description",children:(0,t.jsx)(a,{i18nKey:"common.reg_form.desc",components:{image:(0,t.jsxs)("svg",{width:"30",height:"17",viewBox:"0 0 30 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"0.360465",y:"0.360465",width:"29.2791",height:"16.2791",rx:"5.63953",stroke:"#2B2B2B",strokeWidth:"0.72093"}),(0,t.jsx)("path",{d:"M9.033 4.664C9.489 4.664 9.882 4.757 10.212 4.943C10.542 5.123 10.791 5.372 10.959 5.69C11.133 6.002 11.22 6.35 11.22 6.734C11.22 7.118 11.133 7.469 10.959 7.787C10.785 8.105 10.533 8.357 10.203 8.543C9.873 8.723 9.492 8.813 9.06 8.813H7.602V7.877H8.925C9.303 7.877 9.597 7.772 9.807 7.562C10.023 7.352 10.131 7.076 10.131 6.734C10.131 6.512 10.083 6.317 9.987 6.149C9.897 5.975 9.762 5.843 9.582 5.753C9.402 5.657 9.183 5.609 8.925 5.609H7.503L7.8 5.357V11H6.729V4.664H9.033ZM13.2186 8.732V7.796H14.5776C14.8296 7.796 15.0456 7.748 15.2256 7.652C15.4056 7.556 15.5406 7.424 15.6306 7.256C15.7206 7.088 15.7656 6.902 15.7656 6.698C15.7656 6.488 15.7206 6.302 15.6306 6.14C15.5466 5.972 15.4146 5.843 15.2346 5.753C15.0546 5.657 14.8356 5.609 14.5776 5.609H13.1106L13.3986 5.321V11H12.3276V4.664H14.6856C15.1416 4.664 15.5316 4.754 15.8556 4.934C16.1856 5.114 16.4346 5.36 16.6026 5.672C16.7706 5.978 16.8546 6.317 16.8546 6.689C16.8546 7.055 16.7646 7.394 16.5846 7.706C16.4106 8.012 16.1616 8.261 15.8376 8.453C15.5136 8.639 15.1386 8.732 14.7126 8.732H13.2186ZM15.5406 8.399L17.1966 11H15.9726L14.3256 8.399H15.5406ZM20.7748 4.556C21.3628 4.556 21.8818 4.697 22.3318 4.979C22.7818 5.255 23.1298 5.642 23.3758 6.14C23.6218 6.632 23.7448 7.196 23.7448 7.832C23.7448 8.468 23.6218 9.035 23.3758 9.533C23.1298 10.025 22.7818 10.412 22.3318 10.694C21.8818 10.97 21.3628 11.108 20.7748 11.108C20.1868 11.108 19.6678 10.97 19.2178 10.694C18.7738 10.412 18.4258 10.025 18.1738 9.533C17.9278 9.035 17.8048 8.468 17.8048 7.832C17.8048 7.196 17.9278 6.632 18.1738 6.14C18.4258 5.642 18.7738 5.255 19.2178 4.979C19.6678 4.697 20.1868 4.556 20.7748 4.556ZM20.7748 10.127C21.1588 10.127 21.4918 10.031 21.7738 9.839C22.0558 9.641 22.2718 9.368 22.4218 9.02C22.5778 8.672 22.6558 8.276 22.6558 7.832C22.6558 7.388 22.5778 6.992 22.4218 6.644C22.2718 6.296 22.0558 6.026 21.7738 5.834C21.4918 5.636 21.1588 5.537 20.7748 5.537C20.3908 5.537 20.0578 5.636 19.7758 5.834C19.4938 6.026 19.2778 6.296 19.1278 6.644C18.9778 6.992 18.9028 7.388 18.9028 7.832C18.9028 8.276 18.9778 8.672 19.1278 9.02C19.2778 9.368 19.4938 9.641 19.7758 9.839C20.0578 10.031 20.3908 10.127 20.7748 10.127Z",fill:"#2B2B2B"})]})}})})})})]})})}),(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault();let a=j.A.constructUri({origin:s?.reg,params:{email:v,...n},encode:!1});r.push(a)},action:"#",method:"get",children:(0,t.jsxs)(C.A.Container,{justifyContent:"center",alignItems:"center",direction:{desktop:"row",tablet:"column",mobile:"column"},wrap:{tablet:"wrap",mobile:"wrap"},children:[(0,t.jsx)(p.A,{type:"email",name:"email",size:"l",variant:"rounded",className:i()(o().leadformInput),autoComplete:"off",placeholder:e("common.form.email_placeholder"),onChange:e=>{e.preventDefault(),f(e.target.value)},required:!1}),(0,t.jsx)(g.A,{variant:"accent",fullWidth:!0,className:i()(o().leadFormButton),children:e("common.header.reg_btn")})]})})]})})]})})})})}},81849:(e,a,r)=>{"use strict";r.d(a,{A:()=>c});var t=r(96677),l=r(39033),s=r(24734),i=r(88443),n=r(74258);let o=(e,a)=>{let r=e.lastIndexOf(".");return`${e.slice(0,r)}.${a}${e.slice(r)}`},c=({src:e,l10n:a,...r})=>{let{l10n:c}=(0,n.A)(),d=a??c,m=(0,l.useMemo)(()=>[o(e,d),o(e,s.q),e],[e,d]),[h,u]=(0,l.useState)(0);(0,l.useEffect)(()=>{u(0)},[e,d]);let p=m[h];return(0,t.jsx)(i.A,{src:p,...r,onError:()=>{u(e=>e<m.length-1?e+1:e)}},p)}}}]);
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.