PageSourceSearch

https://przilla.app/_next/static/chunks/4098-21e51f95dfb33c1b.js?dpl=dpl_DSofLCn9cm8AUz78cU6Deiaa7bA3

js przilla.app collected 2026-09-24 11:55:48 UTC 8,319 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="255fdb75-fc25-4d83-8977-f8d888e2062e",e._sentryDebugIdIdentifier="sentry-dbid-255fdb75-fc25-4d83-8977-f8d888e2062e")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4098],{7615:(e,t,r)=>{r.d(t,{ToastProvider:()=>s,d:()=>a});var n=r(54568),o=r(7620),i=r(15772);let l=(0,o.createContext)(void 0);function a(){let e=(0,o.useContext)(l);if(!e)throw Error("useToast must be used within a ToastProvider");return e}function s(e){let{children:t}=e,[r,a]=(0,o.useState)([]),s="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e).catch(()=>{})};return(0,n.jsx)(l.Provider,{value:{showToast:(e,t,r,n)=>{var o;let i=Math.random().toString(36).substring(2,9),l=null!=(o=null==n?void 0:n.durationMs)?o:3e3,d=null==n?void 0:n.action;s(()=>{a(n=>[...n,{id:i,type:e,title:t,description:r,action:d,durationMs:l}])}),setTimeout(()=>{a(e=>e.filter(e=>e.id!==i))},l)}},"data-sentry-element":"ToastContext.Provider","data-sentry-component":"ToastProvider","data-sentry-source-file":"ToastProvider.tsx",children:(0,n.jsxs)(i.Provider,{"data-sentry-element":"Toast.Provider","data-sentry-source-file":"ToastProvider.tsx",children:[t,r.map(e=>(0,n.jsxs)(i.Root,{className:"ToastRoot w-full rounded-md border p-4 shadow-md ".concat("success"===e.type?"border-green-200 bg-green-50 text-green-800 dark:border-green-800 dark:bg-green-900 dark:text-green-100":"error"===e.type?"border-red-200 bg-red-50 text-red-800 dark:border-red-800 dark:bg-red-900 dark:text-red-100":"border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-800 dark:bg-blue-900 dark:text-blue-100"),duration:e.durationMs,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,n.jsx)(i.Title,{className:"text-sm font-medium",children:e.title}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[e.action?(0,n.jsx)(i.Action,{altText:e.action.label,asChild:!0,children:(0,n.jsx)("button",{type:"button",onClick:()=>{var t;null==(t=e.action)||t.onClick(),a(t=>t.filter(t=>t.id!==e.id))},className:"rounded-full border border-black/10 bg-white/70 px-3 py-1.5 text-sm font-semibold text-slate-900 shadow-sm transition-colors hover:bg-white/90 dark:border-white/20 dark:bg-white/10 dark:text-white dark:hover:bg-white/20",children:e.action.label})}):null,(0,n.jsx)(i.Close,{className:"rounded-full p-1 hover:bg-black/5 dark:hover:bg-white/10",children:(0,n.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:(0,n.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})]})]}),e.description&&(0,n.jsx)(i.Description,{className:"mt-1 text-xs",children:e.description})]},e.id)),(0,n.jsx)(i.Viewport,{className:"fixed bottom-4 left-1/2 z-[10001] flex w-[min(90vw,24rem)] -translate-x-1/2 flex-col gap-2 px-2",style:{"--viewport-padding":"25px"},"data-sentry-element":"Toast.Viewport","data-sentry-source-file":"ToastProvider.tsx"})]})})}},53897:(e,t,r)=>{r.d(t,{i:()=>n});function n(e){if("string"!=typeof e)return null;let t=e.trim();return!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\")?
1null:t}},94098:(e,t,r)=>{let n;r.d(t,{d:()=>P,TRPCReactProvider:()=>A,F:()=>E});var o=r(54568),i=r(68728),l=r(76934),a=r(41278),s=r(67898),d=r(39157),u=r(41556),c=r(7620),f=r(49798),p=r(64955),h=r(61162),b=r(79748),g=r(7615),m=r(53897);function y(){let e=(0,b.useRouter)(),{showToast:t}=(0,g.d)(),r=(0,c.useRef)(0);return(0,c.useEffect)(()=>{let n=n=>{var o,i;let l=Date.now();if(l-r.current<2e3)return;r.current=l;let a=n.detail,s=null!=(o=null==a?void 0:a.message)?o:"You need to be signed in to do that.",d=window.location.pathname,u=null!=(i=(0,m.i)(d+window.location.search))?i:"/",c=d.startsWith("/login")||d.startsWith("/signup");t("error",s,void 0,{action:{label:"Sign In",onClick:()=>{if(c)return void e.push("/login");e.push("/login?returnTo=".concat(encodeURIComponent(u)))}},durationMs:6e3})};return window.addEventListener(P,n),()=>window.removeEventListener(P,n)},[e,t]),null}let w=new Set(["Network request failed","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline."]),x=/^(?:Failed to fetch|Load failed)(?: \([^)]+\))?$/;function v(e){return"object"==typeof e&&null!==e&&"cause"in e?e.cause:null}function C(e){return e instanceof Error||"object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message?e.message:"string"==typeof e?e:null}function T(e){let t=v(e);return"undefined"!=typeof DOMException&&t instanceof DOMException&&"AbortError"===t.name}function k(e){return[C(e),C(v(e))].some(e=>{if(null===e)return!1;let t=e.trim();return w.has(t)||x.test(t)})}r(63680);let E=(0,u.pY)(),j=new Set(["wodAnalysis.analyze","wodAnalysis.analyzeFromImage","wodAnalysis.retrySections","llm.generateWod","llm.convertSugarWodToWod","llm.getPersonalWodAdvice","wod.getTrending"]);function N(e){return e instanceof Error?e.message:"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e||"bigint"==typeof e?"".concat(e):"symbol"==typeof e?e.toString():null===e?"null":void 0===e?"undefined":"[unknown error object]"}let P="przilla:auth-error",R=()=>e=>{let{next:t,op:r}=e;return(0,d.sH)(e=>t(r).subscribe({next(t){e.next(t)},error(t){let n=T(t),o=k(t),i=function(e){if("object"!=typeof e||null===e)return null;let t=e.data;if("object"!=typeof t||null===t)return null;let r=t.code;return"string"==typeof r?r:null}(t);if(!function(e){let{error:t,trpcErrorCode:r}=e;return null!==r?"INTERNAL_SERVER_ERROR"===r:!T(t)&&!k(t)}({error:t,trpcErrorCode:i})?a.Ay.capture("trpc_client_error",{source:"trpc-client",operation:r.type,path:r.path,isTimeout:n?"true":"false",isTransportError:o?"true":"false",trpcCode:null!=i?i:"UNKNOWN",errorMessage:N(t)}):s.Cp(t,{tags:{source:"trpc-client",operation:r.type,path:r.path,isTimeout:n?"true":"false",trpcCode:null!=i?i:"UNKNOWN"}}),"UNAUTHORIZED"===i){let e={message:N(t),path:r.path};window.dispatchEvent(new CustomEvent(P,{detail:e}))}e.error(t)},complete(){e.complete()}}))};function A(e){let t=null!=n?n:n=new p.E({defaultOptions:{queries:{staleTime:3e4},mutations:{retry:(e,t)=>{let r=t.cause;return r instanceof DOMException&&"AbortError"===r.name&&e<1},retryDelay:e=>Math.min(1e3*2**e,5e3)},dehydrate:{serializeData:f.Ay.serialize,shouldDehydrateQuery:e=>(0,h.XS)(e)||"pending"===e.state.status},hydrate:{deserializeData:f.Ay.deserialize}}}),[r]=(0,c.useState)(()=>E.createClient({links:[(0,l.$H)({enabled:()=>!1}),R,(0,l.hf)({condition:e=>j.has(e.path),true:(0,l.Lb)({transformer:f.Ay,url:L()+"/api/trpc",headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e.set("x-przilla-client","web"),e},fetch:(e,t)=>{let r=new AbortController,n=setTimeout(()=>r.abort(),12e4),o=(null==t?void 0:t.signal)?AbortSignal.any([t.signal,r.signal]):r.signal;return fetch(e,{...t,signal:o}).finally(()=>clearTimeout(n))}}),false:(0,l.fu)({transformer:f.Ay,url:L()+"/api/trpc",maxURLLength:2048,headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e.set("x-przilla-client","web"),e}})})]}));return(0,o.jsx)(i.QueryClientProvider,{client:t,"data-sentry-element":"QueryClientProvider","data-sentry-component":"TRPCReactProvider","data-sentry-source-file":"react.tsx",children:(0,o.jsxs)(E.Provider,{client:r,queryClient:t,"data-sentry-element":"api.Provider","data-sentry-source-file":"react.tsx",children:[(0,o.jsx)(y,{"data-sentry-element":"AuthErrorListener","data-sentry-source-file":"react.tsx"}),e.children]})})}function L(){return window.location.origin}}}]);

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.