PageSourceSearch

https://studio.com/_next/static/chunks/pages/library/apps/[appId]/[[...route]]-f2c2764f4e2f17b3.js

js studio.com collected 2026-10-09 22:02:39 UTC 5,349 bytes, 11 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9417],{640:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/library/apps/[appId]/[[...route]]",function(){return a(71463)}])},71463:(e,t,a)=>{"use strict";a.r(t),a.d(t,{buildRoutePath:()=>v,default:()=>I,parseRoute:()=>f});var i=a(37876),n=a(14232),r=a(89099),o=a(67302),s=a(10459),l=a(52441),d=a(71180),c=a(87255),u=a(21940),h=a(26855),p=a(41252),x=a(77859),y=a(7435);let g=["today","plan","progress","coach","library"];function f(e){if(!e||0===e.length)return null;let[t,...a]=e;if(!g.includes(t))return null;let i={section:t};if("today"===t&&a.length>=2&&"activity"===a[0]){if(i.activityId=a[1],a.length>=3){let e=parseInt(a[2],10);!isNaN(e)&&e>=0&&(i.cardIndex=e)}if(a.length>=4){let e=parseInt(a[3],10);!isNaN(e)&&e>=0&&(i.audioTextSectionIndex=e)}}else"coach"===t&&a.length>=1&&(i.conversationId=a[0]);return i}function v(e,t,a){let i=`/library/apps/${e}/${t}`;return"today"===t&&a?.activityId?(i+=`/activity/${a.activityId}`,void 0!==a.cardIndex&&a.cardIndex>=0&&(i+=`/${a.cardIndex}`,void 0!==a.audioTextSectionIndex&&a.audioTextSectionIndex>=0&&(i+=`/${a.audioTextSectionIndex}`))):"coach"===t&&a?.conversationId&&(i+=`/${a.conversationId}`),i}let I=()=>{let e=(0,r.useRouter)(),{loadingCurrentUser:t,user:a}=(0,d.As)(),v=(0,d.Rt)(),[I,b]=(0,n.useState)([]),[m,S]=(0,n.useState)(!0),[j,w]=(0,n.useState)(null),[P,k]=(0,n.useState)(!1);(0,p.Ay)("#000000",{appleStatusBarStyle:"black",applyToHtml:!0,applyToBody:!0,removeBackgroundImage:!0,useImportant:!0});let C=e.asPath.split("?")[0],T=(0,n.useMemo)(()=>C.split("/").filter(Boolean),[C]),_=T[2],N=(0,n.useMemo)(()=>T.slice(3),[T]),R=(0,n.useMemo)(()=>f(N),[N]);return((0,n.useEffect)(()=>{(0,y.Ay)(_)},[_]),(0,n.useEffect)(()=>{!t&&a&&(async()=>{try{S(!0);let e=(await (0,l.getAppsForUser)()).filter(e=>"cancelled"!==e.status);b(e)}catch(e){console.error("Error fetching apps:",e),w("Failed to load your apps. Please try again.")}finally{S(!1)}})()},[t,a]),(0,n.useEffect)(()=>{if(e.isReady&&!P&&!m){if(_&&R)return void(0,h._l)(_,R.section);if(_&&0===N.length&&!P){let t=(0,h.XJ)(_),a=(0,x.Z4)()?"today":t&&g.includes(t)?t:"today";k(!0),e.replace(`/library/apps/${_}/${a}`,void 0,{shallow:!1});return}_&&N.length>0&&!R&&!P&&(k(!0),e.replace(`/library/apps/${_}/today`,void 0,{shallow:!1}))}},[e.isReady,_,N,R,P,m,e]),m)?(0,i.jsx)(o.Z,{unauthenticatedBehavior:"show-auth-modal",authPageSource:e.asPath,children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",backgroundColor:"#000000"},children:[(0,i.jsx)("div",{style:{width:"40px",height:"40px",border:"3px solid rgba(255, 255, 255, 0.1)",borderTop:"3px solid rgba(255, 255, 255, 0.8)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,i.jsx)("style",{children:`
2                        @keyframes spin {
3                            0% { transform: rotate(0deg); }
4                            100% { transform: rotate(360deg); }
5                        }
6                    `})]})}):j?(0,i.jsx)(o.Z,{unauthenticatedBehavior:"show-auth-modal",authPageSource:e.asPath,children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",backgroundColor:"#000000",gap:"16px",padding:"40px"},children:[(0,i.jsx)("span",{translate:"no",className:"material-symbols-rounded notranslate",style:{fontSize:"48px",color:"rgba(255, 255, 255, 0.3)"},children:"error"}),(0,i.jsx)("h2",{style:{color:"rgba(255, 255, 255, 0.9)",fontSize:"20px",fontWeight:"600"},children:"Something went wrong"}),(0,i.jsx)("p",{style:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",textAlign:"center"},children:j}),(0,i.jsx)("button",{onClick:()=>e.reload(),style:{padding:"12px 24px",backgroundColor:"#CCF259",color:"#000000",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:"600",cursor:"pointer"},children:"Try Again"})]})}):(0,u.t)()&&0===I.length?(0,i.jsx)(o.Z,{unauthenticatedBehavior:"show-auth-modal",authPageSource:e.asPath,children:(0,i.jsx)(c.P,{user:a,onSignOut:v})}):!I.some(e=>e.id===_)&&I.length>0&&_?(e.replace(`/library/apps/${I[0].id}/today`),null):R?(0,i.jsx)(o.Z,{unauthenticatedBehavior:"show-auth-modal",authPageSource:e.asPath,children:(0,i.jsx)(s.U,{apps:I,initialAppId:_,initialSection:R.section,initialActivityDeepLink:R.activityId?{activityId:R.activityId,cardIndex:R.cardIndex,audioTextSectionIndex:R.audioTextSectionIndex}:void 0,initialConversationId:R.conversationId,useUrlRouting:!0})}):(0,i.jsx)(o.Z,{unauthenticatedBehavior:"show-auth-modal",authPageSource:e.asPath,children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",backgroundColor:"#000000"},children:[(0,i.jsx)("div",{style:{width:"40px",height:"40px",border:"3px solid rgba(255, 255, 255, 0.1)",borderTop:"3px solid rgba(255, 255, 255, 0.8)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,i.jsx)("style",{children:`
7                        @keyframes spin {
8                            0% { transform: rotate(0deg); }
9                            100% { transform: rotate(360deg); }
10                        }
11                    `})]})})}}},e=>{e.O(0,[2456,1440,2333,1508,4568,6806,2746,7159,9827,6646,6254,1560,3344,3856,554,7220,7867,7971,6440,9569,504
116,7302,8504,636,6593,8792],()=>e(e.s=640)),_N_E=e.O()}]);

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.