"use strict";(self.webpackChunk_toloka_portal_gatsby_renderer=self.webpackChunk_toloka_portal_gatsby_renderer||[]).push([[4931],{31451:function(e,t,n){n.d(t,{YD:function(){return p}});var r=n(67294);function i(){return i=Object.assign||function(e){for(var t=1;t=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(n=i.get(t.target))||n.forEach((function(e){e(s,t)}))}))}),e);r=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:i},s.set(t,n)}return n}(n),i=r.id,o=r.observer,a=r.elements,l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),o.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(a.delete(e),o.unobserve(e)),0===a.size&&(o.disconnect(),s.delete(i))}}function u(e){return"function"!=typeof e.children}var d=function(e){var t,n;function s(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),u(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=s.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,s=e.delay;this._unobserveCb=l(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:s})}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!u(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var s=this.props,o=s.children,a=s.as,c=s.tag,l=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(s,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView"]);return(0,r.createElement)(a||c||"div",i({ref:this.handleNode},l),o)},s}(r.Component);function p(e){var t=void 0===e?{}:e,n=t.threshold,i=t.delay,s=t.trackVisibility,o=t.rootMargin,a=t.root,c=t.triggerOnce,u=t.skip,d=t.initialInView,p=(0,r.useRef)(),h=(0,r.useState)({inView:!!d}),f=h[0],m=h[1],v=(0,r.useCallback)((function(e){void 0!==p.current&&(p.current(),p.current=void 0),u||e&&(p.current=l(e,(function(e,t){m({inView:e,entry:t}),t.isIntersecting&&c&&p.current&&(p.current(),p.current=void 0)}),{root:a,rootMargin:o,threshold:n,trackVisibility:s,delay:i}))}),[Array.isArray(n)?n.toString():n,a,o,c,u,s,i]);(0,r.useEffect)((function(){p.current||!f.entry||c||u||m({inView:!!d})}));var g=[v,f.inView,f.entry];return g.ref=g[0],g.inView=g[1],g.entry=g[2],g}d.displayName="InView",d.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},58381:function(e,t,n){n.d(t,{F:function(){return m}});var r="cn_dd",i="cn_q",s="cn_bn",o="cn_6",a="cn_bC",c="cn_dh",l=n(79700),u=n.n(l),d=n(46237),p=n(84401),h=n(56338),f=n(85893),m=function(e){var t=e.title,n=e.text,l=e.link,m=e.fractal,v=e.button,g=e.titleLevel,j=void 0===g?2:g;return(0,f.jsxs)(h.e,{className:u()(c,"card-links"),href:l,children:[(0,f.jsx)("div",{className:r,children:m}),(0,f.jsxs)("div",{className:a,children:[(0,f.jsx)(d.D,{className:i,level:j,children:t}),n?(0,f.jsx)("p",{className:s,children:n}):null,(0,f.jsx)(p.z,{className:o,url:v.url,type:v.type,view:v.view,size:v.size,children:v.text})]})]})}},28767:function(e,t,n){n.d(t,{w:function(){return O}});var r="d7_dh",i="d7_fv",s="d7_gN",o="d7_bl",a="d7_js",c="d7_bC",l="d7_jt",u="d7_d0",d="d7_h",p="d7_q",h="d7_bn",f="d7_ck",m="d7_jv",v="d7_jw",g="d7_fJ",j=n(79700),b=n.n(j),x=n(68042),y=n(4511),w=n(67294),_=n(56338),k=n(79615),N=n(85893),O=function(e){var t=e.title,n=e.text,j=e.link,O=e.image,C=e.readMore,V=e.className,M=e.tags,P=e.target,z=e.theme,S=e.isSmallCard,I=e.imageId,D=(0,w.useMemo)((function(){var e=b()(r,"card-links",j||C?l:"",V,"light"===z?i:"dark",S?s:"",t?"":a);return j?{className:e,href:j,target:P}:{className:e}}),[j,V,z,S,t]);return(0,w.createElement)(j?_.e:"div",D,(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:o,children:[O?(0,N.jsx)(x.t.WithMediaQueries,{path:O,formats:[{type:"image/webp",fileName:"image.webp"},{type:"image/jpeg",fileName:"image.jpg"}],alt:"Picture of the card",width:392,height:417}):null,I?(0,N.jsx)(k.P,{version:"v1",sizes:[560],imageId:I}):null]}),(0,N.jsxs)("div",{className:c,children:[(0,N.jsx)("div",{className:u,children:(0,N.jsxs)("div",{className:h,children:[t?(0,N.jsx)("p",{className:p,children:t}):null,(0,N.jsx)("p",{className:d,children:n}),M?(0,N.jsx)("ul",{className:v,children:M.map((function(e){return(0,N.jsx)("li",{className:g,children:e},e)}))}):null]})}),C?(0,N.jsx)(y.r,{className:b()(f,j?void 0:m),iconPosition:j?"right":void 0,children:C}):null]})]}))}},49916:function(e,t,n){n.d(t,{_:function(){return u}});var r="fj_Z",i="fj_dd",s=n(79700),o=n.n(s),a=n(31451),c=n(67294),l=n(85893),u=function(e){var t=e.fractalClassName,n=e.wrapperClassName,s=e.onActiveClassName,u=e.fractalSrc,d=(0,a.YD)({triggerOnce:!0}),p=d.ref,h=d.inView,f=(0,c.useRef)(null),m=(0,c.useState)(!1),v=m[0],g=m[1],j=(0,c.useCallback)((function(){setTimeout((function(){return g(!0)}),300)}),[]);return(0,c.useEffect)((function(){f.current&&f.current.complete&&j()}),[]),(0,l.jsx)("div",{ref:p,className:o()(r,n),children:(0,l.jsx)("img",{onLoad:j,className:o()(i,h&&v?s:void 0,t),ref:f,src:u,alt:"Fractal"})})}},19351:function(e,t,n){n.d(t,{w:function(){return a}});var r=n(59973),i=n(67294),s=n(7469),o=n(85893),a=function(e){var t=e.title,n=e.description,a=(0,i.useMemo)((function(){return{title:(0,r.D)(t),description:(0,r.D)(n)}}),[r.D]);return(0,o.jsxs)(s.q,{children:[a.title?(0,o.jsx)("meta",{property:"og:title",content:a.title}):null,a.title?(0,o.jsx)("title",{children:a.title}):null,a.description?(0,o.jsx)("meta",{property:"og:description",content:a.description}):null,a.description?(0,o.jsx)("meta",{name:"description",content:a.description}):null]})}},79615:function(e,t,n){n.d(t,{P:function(){return l}});var r="cb_Z",i=n(79700),s=n.n(i),o=n(85893),a=["webp","jpeg"],c=[1,2],l=function(e){var t=e.imageId,n=e.version,i=e.className,l=e.sizes,u=void 0===l?[560,1280,1600]:l,d=e.onLoad,p=e.imageRef;if("v1"===n){var h="https://tlk-infra-front.azureedge.net/portal-static/uploaded/images/";return(0,o.jsxs)("picture",{className:s()(r,i),children:[a.map((function(e,n){return u.map((function(r,i){return(0,o.jsx)("source",{srcSet:c.map((function(n){return function(e,n,r){return""+h+t+"/"+t+"_"+e+"_"+n+"_x"+r+"."+e+" "+r+"x"}(e,r,n)})).join(","),media:i===u.length-1?void 0:"(max-width: "+r+"px)",type:"image/"+e},n+"_"+i)}))})),(0,o.jsx)("img",{src:""+h+t+"/"+t+"_original_jpeg.jpeg",alt:"Image",onLoad:d,ref:p,loading:"lazy"})]})}return null}},59973:function(e,t,n){n.d(t,{D:function(){return i}});var r=n(67294),i=function(e){return(0,r.isValidElement)(e)&&e.props.children?Array.isArray(e.props.children)?e.props.children.filter((function(e){return"string"==typeof e})).join(""):e.props.children:e}},29347:function(e,t,n){n.d(t,{W:function(){return h}});var r=n(4942),i="bG_C",s="bG_dJ",o=n(79700),a=n.n(o),c=n(28767),l=n(58381),u=n(85893);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t560?1024:e<=1440&&e>1024?1440:e<=1920&&e>1440?1920:2800}}),[S.j]);return(0,p.useLayoutEffect)((function(){n.current&&n.current.setAttribute&&(n.current.setAttribute("disablepictureinpicture",""),n.current.setAttribute("disableremoteplayback",""),n.current.setAttribute("pip","false"))}),[]),r?(0,h.jsx)("div",{className:I,children:(0,h.jsxs)("video",{ref:n,width:1440,height:810,autoPlay:!0,playsInline:!0,muted:!0,controlsList:"nodownload nofullscreen noremoteplayback",children:[(0,h.jsx)("source",{src:t+"/"+r+".hevc.mp4",type:'video/mp4; codecs="hvc1"'}),(0,h.jsx)("source",{src:t+"/"+r+".webm",type:"video/webm"}),(0,h.jsx)("source",{src:t+"/"+r+".mp4",type:"video/mp4"})]})}):null},A={wrap:"cM_Z",content:"cM_bC",input:"cM_dK",text:"cM_h",success:"cM_d7",overlay:"cM_dw"},F=n(99628),L=n(27850),E=n(14245),G=function(e){var t=e.text,n=e.inputPlaceholder,r=e.button,i=e.successText,s=e.sendingData,o=(0,L.Q)(s),a=o.onSubmit,l=o.isSubmitted,u=o.setInputText;return(0,h.jsxs)("div",{className:c()(A.wrap,"light"),children:[(0,h.jsx)("div",{className:A.overlay}),(0,h.jsx)("div",{className:A.content,children:l?(0,h.jsx)(E.r,{className:A.success,text:i}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:A.text,children:t}),(0,h.jsxs)("form",{className:A.form,onSubmit:a,children:[(0,h.jsx)(F.z,{view:"default",size:"m",type:"email",placeholder:n,className:A.input,onChange:function(e){return u(e.target.value)},autoComplete:"on",required:!0}),(0,h.jsx)(d.z,{view:r.view,type:"submit",size:r.size,textIcon:r.textIcon,children:r.text})]})]})})]})};function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t