PageSourceSearch

https://www.storytel.com/web-assets/9e8df655bf7482ff84f2df3e703455…/_next/static/chunks/3bl84ufbo9l9c.js

js storytel.com collected 2026-09-24 08:27:17 UTC 12,065 bytes, 14 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="de57befc-3bee-f329-09bd-9a0e72129739")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,129771,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}e.s(["PublicConfigInjector",0,function({config:e}){return!globalThis.window||"__PUBLIC_CONFIG__"in globalThis.window||Object.defineProperty(globalThis.window,"__PUBLIC_CONFIG__",{value:Object.freeze(e),writable:!1,configurable:!1}),null}])},875034,e=>{"use strict";var t,r=e.i(948467),a=e.i(624971);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}var s=((t={}).HAS_DISMISSED_COUNTDOWN_BANNER="hasDismissedCountdownBanner",t.HAS_DISCOUNTED_CONSUMABLE="hasDiscountedConsumable",t.GEO_REDIRECT_DISMISSED="geoRedirectDismissed",t);e.s(["LOCAL_STORAGE_KEYS",()=>s,"useLocalStorage",0,function(e,t,n){let[s,o]=(0,r.useState)(()=>{try{let r=window.localStorage.getItem(e);if(null===r)return t;let a=JSON.parse(r);if(a.expiresAt&&a.expiresAt<Date.now())return t;return a.value}catch{return t}});return(0,r.useEffect)(()=>{try{let r=window.localStorage.getItem(e);if(null===r)return void window.localStorage.setItem(e,JSON.stringify({value:t,expiresAt:n?Date.now()+n:void 0}));let a=JSON.parse(r);a.expiresAt&&a.expiresAt<Date.now()?(o(t),window.localStorage.setItem(e,JSON.stringify({value:t}))):o(a.value)}catch(t){a.logger.error({key:e,error:t},"[useLocalStorage] Failed to parse or store")}},[e,t,n]),[s,function(t,r){o(a=>{let s;s="function"==typeof t?t(a):t;{let t=n?Date.now()+n:void 0,a={value:s,expiresAt:r?Date.now()+r:t};window.localStorage.setItem(e,JSON.stringify(a))}return s})}]}])},276031,e=>{"use strict";var t=e.i(41975),r=e.i(207685),a=e.i(39256);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}let o=async()=>{try{let e=await fetch("/api/graphql/get-user",{headers:((e={})=>{let t=(0,a.getDocumentCookie)("storytel_user_id"),n=(0,a.getDocumentCookie)("storytel_bucket"),s=(0,r.parseServerCookieString)(e.Cookie||""),o=[];if(t&&!s.storytel_user_id&&o.push(`storytel_user_id=${t}`),n&&!s.storytel_bucket&&o.push(`storytel_bucket=${n}`),0===o.length)return e;let l=[e.Cookie,...o].filter(Boolean).join("; ");return{...e,Cookie:l}})()});if(!e.ok)return{success:!0,res:null};let t=await e.json();return{success:!0,res:t}}catch(e){return console.warn("Failed to fetch user",e),{success:!1}}};e.s(["useUser",0,()=>{let{isLoading:e,isValidating:r,data:a}=(0,t.default)("/api/graphql/get-user",o);return{user:a?.success===!0?a.res:null,wasSuccess:a?.success||null,isLoading:e,isValidating:r}}],276031)},184022,e=>{"use strict";var t=e.i(176834);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}e.s(["isGeoRedirectEnabled",0,e=>(0,t.getPublicConfig)().flagGeoRedirectLocales.includes(e),"isPPBDiscountsEnabled",0,e=>(0,t.getPublicConfig)().flagPPBDiscountLocales.includes(e),"isPayPerBookEnabled",0,e=>(0,t.getPublicConfig)().flagPPBLocales.includes(e)])},602804,(e,t,r)=>{"use strict";try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}
2Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:a,dataNtpc:o=""}){return(0,s.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${o}`}})},[o]),(0,n.jsxs)(n.Fragment,{children:[a,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(95293),s=e.r(948467)},625094,(e,t,r)=>{"use strict";let a;try{var n="u">typeof window?window:e.g;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}var s=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:n="dataLayer",nonce:s}=e;return void 0===a&&(a=n),(0,l.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
3          window['${n}'] = window['${n}'] || [];
4          function gtag(){window['${n}'].push(arguments);}
5          gtag('js', new Date());
6
7          gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:s}),(0,o.jsx)(i.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:s})]})},r.sendGAEvent=function(){void 0===a?console.warn("@next/third-parties: GA has not been initialized"):window[a]?window[a].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${a} does not exist`)};let o=e.r(95293),l=e.r(948467),i=s(e.r(147513))},335455,(e,t,r)=>{"use strict";try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:a="dataLayer",auth:n,preview:u,dataLayer:d,nonce:c}=e;i=a;let y=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&y.searchParams.set("id",t),"dataLayer"!==a&&y.searchParams.set("l",a),n&&y.searchParams.set("gtm_auth",n),u&&(y.searchParams.set("gtm_preview",u),y.searchParams.set("gtm_cookies_win","x")),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
8      (function(w,l){
9        w[l]=w[l]||[];
10        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
11        ${d?`w[l].push(${JSON.stringify(d)})`:""}
12      })(window,'${a}');`},nonce:c}),(0,s.jsx)(l.default,{id:"_next-gtm","data-ntpc":"GTM",src:y.href,nonce:c})]})};let s=e.r(95293),o=e.r(948467),l=n(e.r(147513)),i="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||i;window[r]=window[r]||[],window[r].push(e)}},696251,e=>{"use strict";var t=e.i(850410),r=e.i(95293);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}e.s(["default",0,function({locale:e,...a}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...a})}])},147513,(e,t,r)=>{try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}t.exports=e.r(542530)},41975,e=>{"use strict";var t=e.i(976401),r=e.i(695417);try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}let n=(0,r.withMiddleware)(t.default,e=>(t,r,a)=>(a.revalidateOnFocus=!1,a.revalidateIfStale=!1,a.revalidateOnReconnect=!1,a.refreshInterval=0,e(t,r,a)));e.s(["default",0,n])},850410,e=>{"use strict";var t=e.i(948467),r=e.i(163010),a=e.i(331485),n=e.i(95293);try{var s="u">typeof window?window:e.g;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}let o=(0,t.createContext)(void 0);function l(){let e=(0,t.useContext)(o);if(!e)throw Error(void 0);return e}let i=!1,u="u"<typeof window;e.s(["IntlProvider",0,function({children:e,formats:s,getMessageFallback:l,locale:i,messages:u,now:d,onError:c,timeZone:y}){let _=(0,t.useContext)(o),w=(0,t.useMemo)(()=>_?.cache||(0,r.b)(),[i,_?.cache]),g=(0,t.useMemo)(()=>_?.formatters||(0,r.c)(w),[w,_?.formatters]),M=(0,t.useMemo)(()=>({...(0,a.i)({locale:i,formats:void 0===s?_?.formats:s,getMessageFallback:l||_?.getMe
12ssageFallback,messages:void 0===u?_?.messages:u,now:d||_?.now,onError:c||_?.onError,timeZone:y||_?.timeZone}),formatters:g,cache:w}),[w,s,g,l,i,u,d,c,_,y]);return(0,n.jsx)(o.Provider,{value:M,children:e})},"useFormatter",0,function(){let{formats:e,formatters:r,locale:n,now:s,onError:o,timeZone:i}=l();return(0,t.useMemo)(()=>(0,a.c)({formats:e,locale:n,now:s,onError:o,timeZone:i,_formatters:r}),[e,r,s,n,o,i])},"useLocale",0,function(){return l().locale},"useMessages",0,function(){let e=l();if(!e.messages)throw Error(void 0);return e.messages},"useTranslations",0,function(e){return function(e,n){let{cache:s,formats:o,formatters:d,getMessageFallback:c,locale:y,onError:_,timeZone:w}=l(),g=e["!"],M=(0,a.r)(n,"!");return w||i||!u||(i=!0,_(new r.I(r.a.ENVIRONMENT_FALLBACK,void 0))),(0,t.useMemo)(()=>(0,a.a)({cache:s,formatters:d,getMessageFallback:c,messages:g,namespace:M,onError:_,formats:o,locale:y,timeZone:w}),[s,d,c,g,M,_,o,y,w])}({"!":l().messages},e?`!.${e}`:"!")}])},272148,e=>{e.v({actions:"announcement-banner-module__FHiOjG__actions",banner:"announcement-banner-module__FHiOjG__banner",closeButton:"announcement-banner-module__FHiOjG__closeButton",scrollAnchor:"announcement-banner-module__FHiOjG__scrollAnchor",styledText:"announcement-banner-module__FHiOjG__styledText"})},638425,e=>{"use strict";var t=e.i(95293),r=e.i(90647),a=e.i(7284),n=e.i(140772),s=e.i(834798),o=e.i(272148);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(e){}e.s(["AnnouncementBanner",0,({leadingText:e,text:l,className:i,cta:u,onClose:d})=>(0,t.jsxs)("div",{className:(0,a.default)(o.default.banner,i),children:[(0,t.jsxs)(s.Typography,{variant:"body",children:[e&&(0,t.jsxs)(s.Typography,{variant:"body-bold",as:"span",strong:!0,children:[e," "]}),(0,t.jsx)("span",{className:o.default.styledText,children:l})]}),(0,t.jsx)("div",{className:o.default.actions,children:u&&(0,t.jsx)(n.Cta,{size:"xs",variant:"primary",...u})}),d&&(0,t.jsx)("button",{type:"button",className:o.default.closeButton,onClick:d,"aria-label":"Close",children:(0,t.jsx)(r.Cross,{})})]}),"ScrollAnchor",0,({id:e})=>(0,t.jsx)("div",{id:e,className:o.default.scrollAnchor})])}]);
13
14//# debugId=de57befc-3bee-f329-09bd-9a0e72129739

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.