PageSourceSearch

https://knowt.com/_next/static/chunks/54e827e9778b8b13.js?dpl=dpl_AQbLvtnCP7fC21UZvrHBTwA2LQFd

js knowt.com collected 2026-10-01 12:33:41 UTC 5,177 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,569434,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e.r(271645),i=e.r(848676);r.default=function(e,t,r){if(!i.isBrowser)return[t,i.noop,i.noop];if(!e)throw Error("useLocalStorage key may not be falsy");var a=r?r.raw?function(e){return e}:r.deserializer:JSON.parse,s=n.useRef(function(e){try{var n=r?r.raw?String:r.serializer:JSON.stringify,i=localStorage.getItem(e);if(null!==i)return a(i);return t&&localStorage.setItem(e,n(t)),t}catch(e){return t}}),o=n.useState(function(){return s.current(e)}),l=o[0],u=o[1];n.useLayoutEffect(function(){return u(s.current(e))},[e]);var c=n.useCallback(function(t){try{var n="function"==typeof t?t(l):t;if(void 0===n)return;var i=void 0;i=r?r.raw?"string"==typeof n?n:JSON.stringify(n):r.serializer?r.serializer(n):JSON.stringify(n):JSON.stringify(n),localStorage.setItem(e,i),u(a(i))}catch(e){}},[e,u]);return[l,c,n.useCallback(function(){try{localStorage.removeItem(e),u(void 0)}catch(e){}},[e,u])]}},47869,e=>{"use strict";var t=e.i(843476),r=e.i(582337),n=e.i(569434);let i=(0,e.i(454624).default)((0,t.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var a=e.i(277155),s=e.i(741187);let o="banners-last-updated",l=async()=>await a.client.query({query:s.listBanners,variables:{input:{}}}).then(({data:e})=>e?.listBanners.items).catch(()=>[]);var u=e.i(63810),c=e.i(885784),d=e.i(888566),y=e.i(852517),p=e.i(85853),g=e.i(142272),f=e.i(240838),h=e.i(834974),m=e.i(89597),b=e.i(362984),S=e.i(319156),C=e.i(91549),v=e.i(271645),w=e.i(156793);let x=({as:e,children:r,id:n,isVisible:i,disableClose:a,disablePermanentClose:s,ref:o,...l})=>{let u=e||y.FlexRowAlignCenter,[c,d]=(0,v.useState)(!s&&!a&&!!S.dynamicKeyValueStore.get(n));return c||!i?null:(0,t.jsxs)(u,{ref:o,...l,style:{cursor:"pointer",backgroundColor:g.themeColors.textPrimary,color:g.themeColors.bgSecondary,width:"100%",padding:`${w.padding.M} 3.6rem`,justifyContent:"center",gap:w.padding.L,position:"relative",...l.style},children:[r,!a&&(0,t.jsx)(C.X,{onClick:e=>{s||S.dynamicKeyValueStore.set(n,"true"),d(!0),e.stopPropagation()},size:24,style:{position:"absolute",top:"50%",right:"3rem",transform:"translateY(-50%)",cursor:"pointer"}})]})};var T=e.i(955172);let N=({banner:e})=>{let a=(0,h.useRouter)(),[s,o]=(0,n.default)(`banner-${e.bannerId}`,!0,{raw:!1,serializer:e=>e.toString(),deserializer:e=>"true"===e}),l=(t=!1)=>{if(t)switch(e.type){case r.BannerType.INFO:return"#78CFF5";case r.BannerType.URGENT:return"#F8948D";case r.BannerType.WARNING:return"#FEDA6F"}else switch(e.type){case r.BannerType.INFO:return"#025597";case r.BannerType.URGENT:return"#B21B1B";case r.BannerType.WARNING:return"#C38902"}};return s?(0,t.jsx)(y.FlexRowAlignCenter,{style:{backgroundColor:l(!0),color:l(),cursor:e.href?"pointer":"default",padding:w.padding.M,justifyContent:"center",gap:w.padding.S,position:"relative"},onClick:()=>{if(e.href)return a.push(e.href)},children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:[(0,t.jsx)("span",{style:{fontSize:"1.8rem",lineHeight:"2.8rem",margin:"auto"},children:e.message}),(0,t.jsx)(y.FlexRowAlignCenter,{style:{gap:"2rem",position:"absolute",right:"3rem"},children:(0,t.jsx)(i,{onClick:()=>{o(!1)},style:{cursor:"pointer",strokeWidth:2,width:"2rem",height:"2rem"},color:"inherit"})})]})}):null};e.s(["default",0,()=>{let{user:e}=(0,p.useCurrentUser)(),n=(0,d.useSWRImmutable)("listBanners",async()=>{let e=await u.platform.storage(),t=await e.getWithExpiry(o);if("[]"===t)return[];if(!t){let t=await l();return t||(t=[]),await e.setWithExpiry(o,JSON.stringify(t),c.TIME.HOUR),t}return JSON.parse(t)}).data;return e?(0,t.jsxs)(y.FlexColumn,{style:{height:"fit-content"},children:[n?.map(e=>(0,t.jsx)(N,{banner:e},e?.bannerId)),e?.deleteReq&&(0,t.jsx)(N,{banner:{__typename:"Banner",bannerId:"delete",type:r.BannerType.URGENT,message:"You have requested your account to be deleted within 30 days. Please visit settings to restore your account.",startTime:0,endTime:(0,c.now)()+c.TIME_SECONDS.MONTH}},"delete"),e?.gameBlock&&(0,t.jsx)(N,{banner:{__typename:"Banner",bannerId:"game-block",type:r.BannerType.URGENT,message:"Your account has been blocked from gamification features due to suspicious activity. If this is a mistake, please contact support.",startTime:0,endTime:(0,c.now)()+c.TIME_SECONDS.MONTH}},"delete"),(0,t.jsxs)(x,{id:"long-pause-banner",isVisible:!!e.longPauseEnd,disableClose:!0,onClick:()=>
1{if(!e)return;let t=(0,b.getDaysUntil)(e.longPauseEnd,e.timeZone||void 0);m.progressingEvent.notify({[m.StreakStatus.RESUME_LONG_PAUSE]:{daysRemaining:t}})},style:{backgroundColor:f.themeColors.neutral2,color:g.themeColors.textPrimary},children:[(0,t.jsx)(T.default,{showResumeIcon:!0}),(0,t.jsxs)("span",{className:g.typography.bodyLBold,children:["Long Pause is active!"," ",(0,t.jsx)("span",{className:g.typography.bodyL,children:"You won't earn any rewards while it's enabled. Click here to deactivate it."})]})]})]}):null}],47869)},741104,e=>{e.n(e.i(47869))}]);

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.