PageSourceSearch

https://cdn.litres.ru/_next/static/chunks/29sata4codocc.js

js litres.ru collected 2026-10-01 08:30:41 UTC 5,409 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,913495,e=>{e.v({loginDesktop:"Login-module-scss-module__S56G7a__loginDesktop",loginDesktop_newBackgroundCover:"Login-module-scss-module__S56G7a__loginDesktop_newBackgroundCover"})},437618,e=>{"use strict";var t=e.i(615792),r=e.i(150417),i=e.i(59341),o=e.i(465596),s=e.i(213907),n=e.i(264458),u=e.i(889840),a=e.i(463034),l=e.i(218294),c=e.i(125784);e.i(916365);var d=e.i(878292),p=e.i(222694);let g=/[\u0000-\u001F\u007F]/,h="https://x.invalid";var f=e.i(913495);let m=(0,u.default)(()=>e.A(81881),{loadableGenerated:{modules:[768531]}});e.s(["Login",0,e=>{let{isNewAuthAbForced:u}=e,[w,y]=(0,r.useState)(!0),[_,A]=(0,r.useState)(!1);(0,r.useEffect)(()=>{A((0,a.isEmbedded)())},[]);let E=(0,s.useRouter)(),b=(0,o.useAppSelector)(e=>e.browser.pda),S=(0,o.useAppDispatch)(),k=(0,o.useAppSelector)(e=>e.browser.clientHost),v=(0,l.isSchoolDomain)(k),R=(0,l.isBiblioDomain)(k),C=(0,d.useVarioqubTest)("auth_acqn_1915","true"),U=(0,r.useMemo)(()=>!v&&!R&&(C||u),[v,R,C,u]),L=E.query?.redirectAfterAuth,B="string"==typeof L?g.test(L)?null:L.startsWith("/")?new URL(L,h).origin===h?L:null:(0,p.getValidatedOrigin)(L):void 0,q=E.query?.msg,O="string"==typeof q?decodeURIComponent(q):void 0,P=E.query?.mode==="popup"?"popup":"fullscreen",j=(0,r.useCallback)(()=>{y(!1),B?window.location.href=B:window.location.reload()},[B]),D=(0,r.useCallback)(()=>{_?(0,a.sendAuthBridgeMessage)({type:"CLOSE"}):document.referrer&&window.history?.length&&window.history.length>1?E.back():E.replace("/")},[E,_]);return(0,r.useEffect)(()=>{w&&B&&B&&S(i.api.global.interfaceRequests.setAuthPopupState({isOpen:!0,urlParams:{redirectAfterAuth:B}}))},[w,B]),(0,t.jsx)("div",{className:(0,n.default)({[f.default.loginDesktop]:!b&&!_,[f.default.loginDesktop_newBackgroundCover]:!b&&!_&&U}),style:{visibility:w?"visible":"hidden"},children:(0,t.jsx)(m,{mode:P,onClosePopup:D,isMobile:b||_,onAuthSuccess:j,errorTitle:O,hidePopup:c.noop,isLibrary:v||R})})}],437618)},81881,e=>{e.v(t=>Promise.all(["static/chunks/2enucmt-wpbf1.js","static/chunks/1uqlga4s4bm59.js","static/chunks/0sgywzqvkbqu1.js","static/chunks/3idt6wg54puqt.js","static/chunks/3aqpnynt-v2ut.js","static/chunks/195gxvmk93d2g.js","static/chunks/1sv-y7t_1u-k0.css","static/chunks/2kt9dz2ijp3vp.css"].map(t=>e.l(t))).then(()=>t(768531)))},797241,189173,e=>{"use strict";let t=e.i(123920).acquisitionErrorContext.subcontext("AuthUserErrorContext");e.s(["authUserErrorContext",0,t],189173);let r=t.feature("IframeBridge"),i=t.feature("OAuthFlow"),o=t.feature("SocialAuth");e.s(["iframeBridgeError",0,r,"oauthFlowError",0,i,"socialAuthError",0,o],797241)},463034,177818,e=>{"use strict";var t=e.i(797241);let r="litres-auth",i="parentOrigin",o="litres_auth_bridge_parent_origin",s="parentUrl",n="litres_auth_bridge_parent_url",u=[/^https:\/\/(.*\.)?(litres\.(ru|az|uz|com|de|pl|ua)|litres-tr\.com)(:\d+)?$/,/^https:\/\/(.*\.)?stage\.litres\.io(:\d+)?$/,/^http:\/\/localhost(:\d+)?$/],a=e=>u.some(t=>t.test(e));e.s(["BRIDGE_SOURCE",0,r,"PARENT_ORIGIN_CACHE_KEY",0,o,"PARENT_ORIGIN_QUERY",0,i,"PARENT_URL_CACHE_KEY",0,n,"PARENT_URL_QUERY",0,s,"isAuthBridgeMessage",0,e=>{if(null===e||"object"!=typeof e||!("source"in e)||e.source!==r||!("type"in e))return!1;switch(e.type){case"CLOSE":case"RELOAD":case"AUTH_DONE":return!0;case"NAVIGATE":if(!("payload"in e)||!e.payload||"object"!=typeof e.payload)return!1;return"string"==typeof e.payload.url;default:return!1}},"isNavigateUrlAllowed",0,e=>{if("string"!=typeof e||!e)return!1;try{let t=new URL(e);if("https:"!==t.protocol)return!1;return a(t.origin)}catch{return!1}},"isOriginAllowed",0,a],177818);let l=e=>new URLSearchParams(window.location.search).get(e),c=new Set,d=(e,r,i)=>{let o=`${e}:${r}`;
1c.has(o)||(c.add(o),(0,t.iframeBridgeError)("DataFromBrowserHandling",`untrusted parent ${e} rejected`,{extendedParams:{origin:r,source:i,logLevel:"warning"}}).emit())},p=(e,t)=>e?a(e)?e:("referrer"!==t&&d("origin",e,t),null):null,g=e=>{if(a(e))try{if("u"<typeof sessionStorage)return;sessionStorage.setItem(o,e)}catch{}},h=()=>{let e=(()=>{try{if("u"<typeof sessionStorage)return null;return p(sessionStorage.getItem(o),"cache")}catch{return null}})(),t=p(l(i),"query");if(t&&e&&t!==e)return g(t),t;if(e)return e;if(t)return g(t),t;let r=p((()=>{if("u"<typeof document||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}})(),"referrer");return r?(g(r),r):null},f=(e,t)=>{if(!e)return null;try{let r=new URL(e);if("https:"!==r.protocol&&"http:"!==r.protocol)return null;if(!a(r.origin))return d("url",r.origin,t),null;return r.toString()}catch{return null}},m=e=>{if(f(e,"cache"))try{if("u"<typeof sessionStorage)return;sessionStorage.setItem(n,e)}catch{}};e.s(["getParentUrl",0,()=>{let e=(()=>{try{if("u"<typeof sessionStorage)return null;return f(sessionStorage.getItem(n),"cache")}catch{return null}})(),t=f(l(s),"query");return t&&e&&t!==e?(m(t),t):e||(t?(m(t),t):null)},"isEmbedded",0,()=>window.parent!==window&&null!==h(),"sendAuthBridgeMessage",0,e=>{if(window.parent===window)return;let i=h();if(!i)return;let o={...e,source:r};try{window.parent.postMessage(o,i)}catch(e){(0,t.iframeBridgeError)("FrontendLogicError","postMessage to parent failed",{originalError:e}).emit()}}],463034)}]);
2
3//# sourceMappingURL=https://www.litres.ru/_next/static/chunks/0wq6wrfdlq64y.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.