1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0b6f66e5-c079-40b9-ad5c-d115d52594c7",e._sentryDebugIdIdentifier="sentry-dbid-0b6f66e5-c079-40b9-ad5c-d115d52594c7")}catch(e){}try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0b6f66e5-c079-40b9-ad5c-d115d52594c7",e._sentryDebugIdIdentifier="sentry-dbid-0b6f66e5-c079-40b9-ad5c-d115d52594c7")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3247],{76180:function(e,r,n){"use strict";n.d(r,{$W:function(){return u},Xm:function(){return c},w3:function(){return t}});var t={connection:{title:"ÐодклÑÑиÑÑ Ð°ÐºÐºÐ°ÑÐ½Ñ ÐиÑÑеÑ",info:"ÐÑи оÑвеÑе на оÑзÑв или комменÑаÑий Ð²Ñ ÑможеÑе вÑбÑаÑÑ, Ð¾Ñ Ð¸Ð¼ÐµÐ½Ð¸ какой из ваÑÐ¸Ñ Ð¿ÐµÑÑон бÑÐ´ÐµÑ Ð¾Ð¿Ñбликован авÑоÑÑкий оÑвеÑ.",buttonText:"ÐодклÑÑиÑÑ"},success:{title:"ÐккаÑÐ½Ñ ÑÑпеÑно подклÑÑен",info:"ÐбÑайÑеÑÑ Ñо Ñвоими ÑиÑаÑелÑми и оÑвеÑайÑе на Ð¸Ñ Ð¾ÑзÑвÑ. ÐÑÐ²ÐµÑ Ð±ÑÐ´ÐµÑ Ð¾Ð¿Ñбликован на ÐиÑÑÐµÑ Ð¸ вÑделен как авÑоÑÑкий.",buttonText:"ÐеÑейÑи к оÑзÑвам"}},u={success:{picture:"successUnion",text:"УÑа, ÑепеÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ закÑÑÑÑ ÑÑÑаниÑÑ Ð¸ веÑнÑÑÑÑÑ Ð½Ð° нÑжнÑÑ ÑÑÑаниÑÑ!"},error:{picture:"errorUnion",text:"ÐÑоизоÑла оÑибка, попÑобÑйÑе еÑе Ñаз."}},c={text:"Ðе закÑÑвайÑе ÑÑÑаниÑÑ, пока Ð¸Ð´ÐµÑ Ð°Ð²ÑоÑизаÑиÑ"}},24099:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSP:function(){return x},default:function(){return v}});var t=n(50029),u=n(64687),c=n.n(u),i=n(39424),s=n(76180),o=n(11163),f=n(67294),a=n(14416),d=n(42467),l=n(89637),p=n(60312),b=n(36613),h=n(42221),_=n(27770),g=n.n(_),w=n(85893),y=function(){var e,r=(0,f.useState)(),n=r[0],u=r[1],_=(0,f.useState)(),y=_[0],m=_[1],x=(0,f.useState)(!1),v=x[0],T=x[1],D=(0,a.v9)(b.d).litres_account,E=(0,o.useRouter)().query,I=E.state,N=E.code,R=(e=(0,t.Z)(c().mark(function e(){var r,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="getOauthLitresFinalize",e.next=3,(0,h.B)({apiPointName:r,body:{scope_id:String(I),oauth_code:String(N)}});case 3:n=e.sent,T(!1),n.errors.length&&(u(s.$W.error.picture),m(s.$W.error.text),i.Tb(n.errors[0].messages)),n.errors.length||(u(s.$W.success.picture),m(s.$W.success.text),localStorage.setItem("oauthLitres","successOauthLitres"));case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});return(0,f.useEffect)(function(){D?(u(s.$W.success.picture),m(s.$W.success.text)):I&&N&&(T(!0),m(s.Xm.text),R())},[]),(0,w.jsxs)("div",{className:g().wrapper,children:[v&&(0,w.jsx)(p.D,{}),n&&(0,w.jsx)(d.Q,{imageType:n,width:64,height:64}),(0,w.jsx)(l.H1,{className:g().info,children:y})]})},m=n(63690),x=!0,v=function(){return(0,w.jsx)(m.T,{children:(0,w.jsx)(y,{})})}},47852:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/oauth/litres",function(){return n(24099)}])},27770:function(e){e.exports={wrapper:"OauthLitres_wrapper__Alg_4",info:"OauthLitres_info__bTQld"}},19302:function(e,r,n){"use strict";n.d(r,{Z:function(){return u}});var t=n(67294);function u(e,r,n){var u=this,c=(0,t.useRef)(null),i=(0,t.useRef)(0),s=(0,t.useRef)(null),o=(0,t.useRef)([]),f=(0,t.useRef)(),a=(0,t.useRef)(),d=(0,t.useRef)(e),l=(0,t.useRef)(!0);d.current=e;var p=!r&&0!==r&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var b=!!(n=n||{}).leading,h=!("trailing"in n)||!!n.trailing,_="maxWait"in n,g=_?Math.max(+n.maxWait||0,r):null;return(0,t.useEffect)(function(){return l.current=!0,function(){l.current=!1}},[]),(0,t.useMemo)(function(){var e=function(e){var r=o.current,n=f.current;return o.current=f.current=null,i.current=e,a.current=d.current.apply(n,r)},n=function(e,r){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(e):setTimeout(e,r)},t=function(e){if(!l.current)return!1;var n=e-c.current,t=e-i.current;return!c.current||n>=r||n<0||_&&t>=g},w=function(r){return(s.current=null,h&&o.current)?e(r):(o.current=f.current=null,a.current)},y=function(){var e=Date.now();if(t(e))return w(e);if(l.current){var u=e-c.current,s=e-i.current,o=r-u;n(y,_?Math.min(o,g-s):o)}},m=function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];var h=Date.now(),g=t(h);if(o.current=d,f.current=u,c.current=h,g){if(!s.current&&l.current)return i.current=c.current,n(y,r),b?e(c.current):a.current;if(_)return n(y,r),e(c.current)}return s.current||n(y,r),a.current};return m.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,o.current=c.current=f.current=s.current=null},m.isPending=function(){return!!s.current},m.flush=function(){return s.current?w(Date.now()):a.current},m},[b,_,r,g,h,p])}}},function(e){e.O(0,[3247],function(){e.E(2052)},5),e.O(0,[5675,9593,2238,540,9081,2519,8410,3189,2675,7853,5579,5115,878,2888,9774,179],function(){return e(e.s=47852)}),_N_E=e.O()}]); 2//# sourceMappingURL=litres-a5abaacead5961be.js.map
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.