PageSourceSearch

https://www.jbl.cz/_next/static/chunks/e7314d48dd64a402.js

js jbl.cz collected 2026-10-09 01:27:00 UTC 7,194 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78333,(e,r,t)=>{var n=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c=e.g&&e.g.Object===Object&&e.g,u="object"==typeof self&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),d=Object.prototype.toString,g=Math.max,m=Math.min,h=function(){return f.Date.now()};function v(e){var r=typeof e;return!!e&&("object"==r||"function"==r)}function p(e){if("number"==typeof e)return e;if("symbol"==typeof(r=e)||r&&"object"==typeof r&&"[object Symbol]"==d.call(r))return n;if(v(e)){var r,t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var c=a.test(e);return c||s.test(e)?l(e.slice(2),c?2:8):i.test(e)?n:+e}r.exports=function(e,r,t){var n,o,i,a,s,l,c=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(r){var t=n,i=o;return n=o=void 0,c=r,a=e.apply(i,t)}function w(e){var t=e-l,n=e-c;return void 0===l||t>=r||t<0||f&&n>=i}function b(){var e,t,n,o=h();if(w(o))return S(o);s=setTimeout(b,(e=o-l,t=o-c,n=r-e,f?m(n,i-t):n))}function S(e){return(s=void 0,d&&n)?y(e):(n=o=void 0,a)}function j(){var e,t=h(),i=w(t);if(n=arguments,o=this,l=t,i){if(void 0===s)return c=e=l,s=setTimeout(b,r),u?y(e):a;if(f)return s=setTimeout(b,r),y(l)}return void 0===s&&(s=setTimeout(b,r)),a}return r=p(r)||0,v(t)&&(u=!!t.leading,i=(f="maxWait"in t)?g(p(t.maxWait)||0,r):i,d="trailing"in t?!!t.trailing:d),j.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},j.flush=function(){return void 0===s?a:S(h())},j}},39839,e=>{"use strict";var r=e.i(71645);e.i(78333);var t="u">typeof window?r.useLayoutEffect:r.useEffect;function n(e,n,o,i){let a=(0,r.useRef)(n);t(()=>{a.current=n},[n]),(0,r.useEffect)(()=>{let r=(null==o?void 0:o.current)??window;if(!(r&&r.addEventListener))return;let t=e=>{a.current(e)};return r.addEventListener(e,t,i),()=>{r.removeEventListener(e,t,i)}},[e,o,i])}var o="u"<typeof window;function i(e,a,s={}){var l;let c,{initializeWithValue:u=!0}=s,f=(0,r.useCallback)(e=>s.serializer?s.serializer(e):JSON.stringify(e),[s]),d=(0,r.useCallback)(e=>{let r;if(s.deserializer)return s.deserializer(e);if("undefined"===e)return;let t=a instanceof Function?a():a;try{r=JSON.parse(e)}catch(e){return console.error("Error parsing JSON:",e),t}return r},[s,a]),g=(0,r.useCallback)(()=>{let r=a instanceof Function?a():a;if(o)return r;try{let t=window.localStorage.getItem(e);return t?d(t):r}catch(t){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,t),r}},[a,e,d]),[m,h]=(0,r.useState)(()=>u?g():a instanceof Function?a():a),v=(l=r=>{o&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let t=r instanceof Function?r(g()):r;window.localStorage.setItem(e,f(t)),h(t),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(r){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,r)}},c=(0,r.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")}),t(()=>{c.current=l},[l]),(0,r.useCallback)((...e)=>{var r;return null==(r=c.current)?void 0:r.call(c,...e)},[c]));(0,r.useEffect)(()=>{h(g())},[e]);let p=(0,r.useCallback)(r=>{r.key&&r.key!==e||h(g())},[e,g]);return n("storage",p),n("local-storage",p),[m,v]}function a(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(!0)},[]),e}var s="u"<typeof window;function l(e,t={}){let{initializeWithValue:o=!0}=t;s&&(o=!1);let i=(0,r.useCallback)(e=>{let r;if(t.deserializer)return t.deserializer(e);if("undefined"!==e){try{r=JSON.parse(e)}catch(e){return console.error("Error parsing JSON:",e),null}return r}},[t]),a=(0,r.useCallback)(()=>{if(s)return null;try{let r=window.localStorage.getItem(e);return r?i(r):null}catch(r){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,r),null}},[e,i]),[c,u]=(0,r.useState)(()=>{if(o)return a()});(0,r.useEffect)(()=>{u(a())},[e]);let f=(0,r.useCallback)(r=>{r.key&&r.key!==e||u(a())},[e,a]);return n("storage",f),n("local-storage",f),c}e.s(["useIsClient",()=>
1a,"useLocalStorage",()=>i,"useReadLocalStorage",()=>l])},89485,e=>{"use strict";var r=e.i(42090);function t(e){return(0,r.prop)(e,"name")?`${(0,r.prop)(e,"name")} ${(0,r.prop)(e,"surname")}`:(0,r.prop)(e,"email")}e.s(["resolveUserName",()=>t])},93500,e=>{"use strict";var r=e.i(43476),t=e.i(10427),n=e.i(61244);e.i(47167);var o=e.i(71645),i=e.i(12598),a=e.i(18566),s=e.i(39839),l=e.i(31141),c=e.i(42090),u=e.i(9803);let f=({whiteTheme:e,className:t})=>(0,r.jsxs)("div",{className:`lds-ring ${t}`,children:[(0,r.jsx)("div",{className:`${e?"white":"black"}`}),(0,r.jsx)("div",{className:`${e?"white":"black"}`}),(0,r.jsx)("div",{className:`${e?"white":"black"}`}),(0,r.jsx)("div",{className:`${e?"white":"black"}`})]});var d=e.i(89485),g=e.i(78494),m=e.i(6904),h=e.i(40582),v=e.i(43283);let p=({style:e,className:p,showRegisterSuccess:y,cartId:w,isHeader:b})=>{let{__:S,lang:j}=(0,n.useLangTranslation)("common"),{user:k,isUserLogged:x}=(0,t.default)(),C=(0,s.useIsClient)(),{domainId:T,brand:E}=(0,g.useTenant)(),O=window.location.origin,N=(0,a.usePathname)(),$=(0,a.useSearchParams)();(0,o.useRef)(!1);let I=(0,l.parseCookies)();w||(w=(0,c.prop)(I,"cart_id"));let P=(0,i.useQueryClient)(),[F,L]=(0,o.useState)(""),[R,U]=(0,o.useState)(!1),z=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{if(z.current)return;let e=window.location.hash.replace("#",""),r=(0,u.resolveAccessTokenFromPath)(e,"access_token"),t=(0,u.resolveAccessTokenFromPath)(e,"error"),n=(0,u.resolveAccessTokenFromPath)(e,"register");r?(z.current=!0,U(!0),P.cancelQueries({queryKey:["getUser"]}),fetch("/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:r})}).then(e=>e.json()).then(r=>{if(P.cancelQueries({queryKey:["getUser"]}),n)window.location.href="/?r=1";else if(r?.isLoggedIn){let r=(0,u.resolveAccessTokenFromPath)(e,"state"),t=r&&"undefined"!==r&&(r.startsWith("/")||r.startsWith(window.location.origin));window.location.href=t?r:"/moj-ucet"}else U(!1),L("Prihlásenie zlyhalo")}).catch(e=>{console.error("Login POST /session failed:",e),U(!1),L("Prihlásenie zlyhalo")})):t&&L(decodeURIComponent(t))},[]),!C||R)return(0,r.jsx)(f,{});if(b&&x)return(0,r.jsx)("div",{children:(0,r.jsx)("p",{className:"text-lg font-semibold my-4 text-center",children:(0,d.resolveUserName)((0,c.prop)(k,"data"))})});let A=$.toString()?`?${$.toString()}`:"",D="EDSI"===E?void 0:"b2c";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.default,{breadCrumb:(0,v.getBreadCrumbPath)(v.BreadCrumbType.LOGIN,D,void 0,S)}),(0,r.jsx)("div",{className:["flex flex-col w-full h-full mx-auto mb-8 md:mb-20",p].join(" "),style:e,children:(0,r.jsx)(m.DsiLoginForm,{baseApiUrl:"/proxy-api",baseUrl:O,cartId:w,pathname:N,search:A,error:F,lang:j,domainId:+T,showRegisterSuccess:y,loginType:D})})]})};function y({cartId:e,showRegisterSuccess:o}){let{__:i,lang:a}=(0,n.useLangTranslation)("common"),{isUserLogged:s}=(0,t.default)({redirectTo:"/moj-ucet",redirectIfFound:!0});return(0,r.jsx)(p,{cartId:e,showRegisterSuccess:o})}e.s(["default",()=>y],93500)}]);

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.