PageSourceSearch

https://www.naturalcycles.com/assets/entry.client-Xq_Cnokd.js

js naturalcycles.com collected 2026-10-01 09:15:35 UTC 7,743 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2c6c4a17-4ffe-5f14-8ede-925b97bb283e")}catch(e){}}();
3import{o as e,t}from"./react-0T9Avz-T.js";import{g as n,h as r,l as i,m as a,n as o,t as s,u as c}from"./sentry.service-CLFIMEEN.js";import{t as l}from"./client-CZ5wDbpG.js";import{t as u}from"./react-dom-CQiUf--n.js";import{G as d,L as f,M as p,T as m,U as h}from"./hooks-BQtwD6Bv.js";import{i as ee,r as g}from"./components-CG-jdClq.js";import{d as te,f as ne,h as re,l as _,m as v,n as y,p as b,t as x,u as S}from"./errorBoundaries-nHpDSlt4.js";import{t as C}from"./fetcher-DA5tHqKT.js";import{_t as w,ft as T,n as E,st as D,t as O,ut as k}from"./store-m5YTdNGI.js";import{t as A}from"./env-CTMTHEtQ.js";import{l as j,m as M,t as N}from"./assert-C6pJqSWs.js";import{t as P}from"./hotjar.service-Dz-gic7Z.js";import{t as F}from"./jsx-runtime-BRYeo4JD.js";var I=e(t());function L(e){let t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function R(e,t){let n=new WeakSet;function r(e,t){if(!n.has(e)){if(e.cause)return n.add(e),r(e.cause,t);e.cause=t}}r(e,t)}function z(e,{componentStack:t},i){if(L(I.version)&&n(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,R(e,n)}return r(e,i)}function B(e){return(t,n)=>{let r=!!e,i=z(t,n,{mechanism:{handled:r,type:`auto.function.react.error_handler`}});r&&e(t,n,i)}}function V({state:e,routes:t,getRouteInfo:n,location:r,basename:i,isSpaMode:a}){let o={...e,loaderData:{...e.loaderData}},s=f(t,r,i);if(s)for(let e of s){let t=e.route.id,r=n(t);b(t,r.clientLoader,r.hasLoader,a)&&(r.hasHydrateFallback||!r.hasLoader)?delete o.loaderData[t]:r.hasLoader||(o.loaderData[t]=null)}return o}var H=e(u(),1);function U(e){return I.createElement(g,{flushSync:H.flushSync,...e})}var W=null,G=null;function K(){if(!W&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){let e=document.querySelector(`script[rr-importmap]`);if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error(`Failed to parse import map`,e)}}W={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function q({getContext:e,instrumentations:t}){if(K(),!W)throw Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=W;if(!W.stateDecodingPromise){let e=W.context.stream;d(e,`No stream found for single fetch decoding`),W.context.stream=void 0,W.stateDecodingPromise=v(e,window).then(e=>{W.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if(W.stateDecodingPromise.error)throw W.stateDecodingPromise.error;if(!W.stateDecodingPromise.value)throw W.stateDecodingPromise;let r=te(W.manifest.routes,W.routeModules,W.context.state,W.context.ssr,W.context.
3isSpaMode),i;if(W.context.isSpaMode){let{loaderData:e}=W.context.state;W.manifest.routes.root?.hasLoader&&e&&`root`in e&&(i={loaderData:{root:e.root}})}else i=V({state:W.context.state,routes:r,getRouteInfo:e=>({clientLoader:W.routeModules[e]?.clientLoader,hasLoader:W.manifest.routes[e]?.hasLoader===!0,hasHydrateFallback:W.routeModules[e]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:W.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},``);let a=m({routes:r,history:h(),basename:W.context.basename,getContext:e,hydrationData:i,mapRouteProperties:p,hydrationRouteProperties:ee,instrumentations:t,dataStrategy:re(()=>a,W.manifest,W.routeModules,W.context.ssr),patchRoutesOnNavigation:_(()=>a,W.manifest,W.routeModules,W.context.ssr,W.context.routeDiscovery,W.context.isSpaMode,W.context.basename)});return W.router=a,a.state.initialized&&(W.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=ne,window.__reactRouterDataRouter=a,a}function J(e){G||=q({getContext:e.getContext,instrumentations:e.instrumentations});let[t,n]=I.useState(void 0);I.useEffect(()=>{},[]),I.useEffect(()=>{},[t]);let[r,i]=I.useState(G.state.location);return I.useLayoutEffect(()=>{W&&W.router&&!W.routerInitialized&&(W.routerInitialized=!0,W.router.initialize())},[]),I.useLayoutEffect(()=>{if(W&&W.router)return W.router.subscribe(e=>{e.location!==r&&i(e.location)})},[r]),d(W,`ssrInfo unavailable for HydratedRouter`),S(G,W.manifest,W.routeModules,W.context.ssr,W.context.routeDiscovery,W.context.isSpaMode),I.createElement(I.Fragment,null,I.createElement(y.Provider,{value:{manifest:W.manifest,routeModules:W.routeModules,future:W.context.future,criticalCss:t,ssr:W.context.ssr,isSpaMode:W.context.isSpaMode,routeDiscovery:W.context.routeDiscovery}},I.createElement(x,{location:r},I.createElement(U,{router:G,useTransitions:e.useTransitions,onError:e.onError}))),I.createElement(I.Fragment,null))}var Y=l(),X=[...[`research-library`,`announcements`,`other/legal`,`press-hub`,`c`,`samsung`,`press-highlights`].map(e=>({from:new RegExp(String.raw`^https://(?:www\.)?naturalcycles\.se/${e}(/.*)?$`),to:`https://www.naturalcycles.com/${e}$1`})),{from:/^https:\/\/(?:www\.)?naturalcycles\.se\/shop\/(.+)/,to:`https://www.naturalcycles.com/shop/$1`},{from:/^https:\/\/(?:www\.)?naturalcycles\.se\/shop/,to:`https://www.naturalcycles.com/shop/se`},{from:/^https:\/\/(?:www\.)?naturalcycles\.se(\/.*)?/,to:`https://www.naturalcycles.com/sv$1`}];function ie(e){let t=X.find(t=>t.from.test(e.href)||t.from.test(e.href.replace(/\/$/,``)));if(t)try{return new URL(e.href.replace(t.from,t.to))}catch{return}}function ae(e){let t=ie(e);return t?(globalThis.location.href=t.toString(),!0):!1}var oe=C({baseUrl:i(),credentials:`omit`}).onAfterResponse(e=>{if(!e.err)return;let t;e.err instanceof j&&(t=e.err.data.fingerprint),t||=s(e.req.init.method,e.req.fullUrl,e.err),M(e.err,{fingerprint:t})}),Z=new class{storageKey=`initData`;validityInMs=864e5;async init(){let e=this.getStorageData();if(e&&!k.getForcedExperimentsHeader()&&!w.getCookie(`firebase-country-override`)){E.dispatch(O(e.data));return}let t=T(),{backendResponse:n}=await Z.getWebInitData(t);if(!n)return;E.dispatch(O(n));let r={timestamp:Date.now(),data:n};globalThis.localStorage.setItem(this.storageKey,JSON.stringify(r))}getStorageData(){let e=globalThis.localStorage.getItem(this.storageKey);if(!e)return null;let t=JSON.parse(e);return Date.now()-t.timestamp>this.validityInMs?null:t}async getWebInitData(e){return await oe.get(`app/webInit`,{searchParams:{...e,...k.getHeaders()}})}};N(A(),`browserService may not be imported server side. This means, for example, not in root.tsx or non-lazy-loaded client-only components.`);var se=new class{async handleEntry(){if(sessionStorage.setItem(`time:onClientEntry`,String(Date.now())),ae(location))return;let{VITE_ENV:e,VITE_VERSION_NUMBER:t}=a(`VITE_ENV`,`VITE_VERSION_NUMBER`);console.log({VITE_ENV:e,VITE_VERSION_NUMBER:t}),o(),D.init(),Z.init(),P.init();let n=document.querySelector(`a[href^="https://naturalcycles.typeform.com/"]`);n&&n.addEventListener(`click`,()=>{D.trackClick(`typeform-link`)}),await D.whenInspectorReady()}},Q=F();c(`SHOULD_HANDLE_ENTRY`)&&await se.handleEntry();var $=B();(0,I.startTransition)(()=>{(0,Y.hydrateRoot)(document,(0,Q.jsx)(I.StrictMode,{children:(0,Q.jsx)(J,{})}),{onCaughtError:$,onUncaughtError:$,onRecoverableError:$})});
4//# debugId=2c6c4a17-4ffe-5f14-8ede-925b97bb283e

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.