PageSourceSearch

https://teachit.study/_next/static/chunks/app/layout-87b4149ea1d409f6.js

js teachit.study collected 2026-10-07 14:07:22 UTC 2,075 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{29268:(e,t,r)=>{"use strict";r.d(t,{X:()=>s,d:()=>u});var a=r(95155),n=r(12115),i=r(54921),l=r(39880);let h=(0,n.createContext)({settings:l.V6,loading:!1,setSettings:()=>void 0,refresh:async()=>void 0});function u({children:e}){let{status:t}=(0,i.wV)(),[r,s]=(0,n.useState)(l.V6),[o,c]=(0,n.useState)(!1),d=(0,n.useCallback)(e=>{s(t=>(0,l.zs)({...t,...e}))},[]),m=(0,n.useCallback)(async()=>{if("authenticated"!==t)return void s(l.V6);c(!0);try{let e=await fetch("/api/profile");if(!e.ok)return;let t=await e.json();t.displaySettings&&s((0,l.zs)(t.displaySettings))}catch{}finally{c(!1)}},[t]);(0,n.useEffect)(()=>{m()},[m]);let f=(0,n.useMemo)(()=>({settings:r,loading:o,setSettings:d,refresh:m}),[r,o,d,m]);return(0,a.jsx)(h.Provider,{value:f,children:e})}function s(){return(0,n.useContext)(h)}},39880:(e,t,r)=>{"use strict";r.d(t,{C8:()=>l,HV:()=>h,V6:()=>a,zs:()=>i});let a={h1:36,h2:28,h3:24,normal:20,materialPreviewFontScale:.6,materialCardMaxHeight:200};function n(e,t){let r="number"==typeof e?e:Number(e);return Number.isFinite(r)&&r>0?r:t}function i(e){var t,r;let i;return{h1:Math.round(n(e?.h1,a.h1)),h2:Math.round(n(e?.h2,a.h2)),h3:Math.round(n(e?.h3,a.h3)),normal:Math.round(n(e?.normal,a.normal)),materialPreviewFontScale:(t=e?.materialPreviewFontScale,r=a.materialPreviewFontScale,Number.isFinite(i="number"==typeof t?t:Number(t))&&i>0?i:r),materialCardMaxHeight:Math.round(n(e?.materialCardMaxHeight,a.materialCardMaxHeight))}}function l(e=1,t=a){let r=Number.isFinite(e)&&e>0?e:1,n=e=>Math.max(1,Math.round(e*r));return{h1:n(t.h1),h2:n(t.h2),h3:n(t.h3),normal:n(t.normal)}}function h(e,t=a){return 1===e?t.h1:2===e?t.h2:t.h3}},45254:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,51743,23)),Promise.resolve().then(r.bind(r,62868))},51743:()=>{},62868:(e,t,r)=>{"use strict";r.d(t,{Providers:()=>l});var a=r(95155),n=r(54921),i=r(29268);function l({children:e}){return(0,a.jsx)(n.CP,{children:(0,a.jsx)(i.d,{children:e})})}}},e=>{e.O(0,[3334,4921,8441,3794,7358],()=>e(e.s=45254)),_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.