PageSourceSearch

https://slimwiki.com/_next/static/chunks/5332-5039f2437e78fa8f.js

js slimwiki.com collected 2026-10-03 20:23:17 UTC 10,271 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5d52affe-a987-454b-9d0f-2f29aa66fefd",e._sentryDebugIdIdentifier="sentry-dbid-5d52affe-a987-454b-9d0f-2f29aa66fefd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5332],{39588:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(57437),a=r(2157);function c(){return(0,n.jsx)("div",{className:"flex h-full w-screen animate-pulse items-center justify-center","data-sentry-component":"FullScreenLoading","data-sentry-source-file":"FullScreenLoading.tsx",children:(0,n.jsx)(a.mp,{"data-sentry-element":"IconLogo","data-sentry-source-file":"FullScreenLoading.tsx"})})}},55332:function(e,t,r){"use strict";r.d(t,{AuthLayout:function(){return g}});var n=r(57437),a=r(51242),c=r(32817),u=r(72301),i=r(2265),s=r(39588),o=r(2157),l=r(64150),d=r(81439),f=r(88976),p=r(10827),b=r(1008),x=r.n(b);function g(e){let{isLoading:t,isValidating:r,data:b}=(0,a.P)(),g=(0,c.tv)(),h=(0,u.useSearchParams)(),v=(0,i.useCallback)(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,n.jsx)("div",{className:"mx-auto max-w-3xl",children:(0,n.jsxs)("div",{className:(0,f.cn)("flex flex-grow flex-col items-center justify-center pt-[40px]"),children:[!e.hideLogo&&(0,n.jsx)(c.rU,{href:"/",className:"text-center",children:(0,n.jsx)(o.mp,{className:"mb-8 inline-block h-[30px] md:mb-4 md:h-[70px]"})}),(0,n.jsx)("div",{className:"flex flex-grow flex-col justify-center",children:e.loading?(0,n.jsx)(l.Z,{className:"h-[40px] w-[40px]"}):e.children})]})})})}),[e.children,e.hideLogo,e.loading]);return((0,i.useEffect)(()=>{let n=h.get("planId"),a=h.get("redirect");if(!t&&!r&&!e.skipPublicGuard&&(null==b?void 0:b.user)){if(b.user&&a){g.replace(decodeURIComponent(a));return}if(b.account){g.replace("/".concat(b.account.slug));return}if(n){g.push("/account/setup-plan/".concat(n));return}g.replace("/account/plan-selection")}},[null==b?void 0:b.account,null==b?void 0:b.user,t,r,e.skipPublicGuard,g,h]),!e.skipPublicGuard&&t)?(0,n.jsx)(s.Z,{}):(0,n.jsxs)("main",{className:(0,p.cx)("flex h-full w-full flex-col overflow-y-auto bg-cover bg-no-repeat",{[x().authLayoutBg]:e.hasBackground||!1}),"data-sentry-component":"AuthLayout","data-sentry-source-file":"AuthLayout.t
1sx",children:[v(),e.showCopyright&&(0,n.jsx)("div",{className:"pt-6",children:(0,n.jsx)(d.Z,{})})]})}},64150:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(57437),a=r(88976),c=r(10827),u=r(20176);let i=(0,c.j)("animate-spin text-primary",{variants:{size:{default:"w-[16px] h-[16px]",sm:"w-[12px] h-[12px]",l:"w-[24px] h-[24px]",xl:"w-[36px] h-[36px]"}},defaultVariants:{size:"default"}});function s(e){let{className:t,...r}=e;return(0,n.jsx)(u.Z,{className:(0,a.cn)(i(r),t),"data-sentry-element":"Loader2","data-sentry-component":"Spinner","data-sentry-source-file":"spinner.tsx"})}},81439:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(57437);function a(){let e="\xa9 2013 - ".concat(new Date().getFullYear().toString());return(0,n.jsx)("div",{className:"flex flex-col items-center justify-between space-y-2 text-center","data-sentry-component":"Copyright","data-sentry-source-file":"Copyright.tsx",children:(0,n.jsxs)("div",{className:"text-xs text-gray-200",children:[e," SlimWiki. All Rights Reserved."]})})}},9089:function(e,t,r){"use strict";r.d(t,{q:function(){return u}});var n=r(43292),a=r(24107),c=r(49133);let u=(0,a.N)((0,c.U)()((0,n.n)(e=>({auth:null,account:null,accountUser:null,user:null,wikiUser:null,wikiTeams:null,isLoggedOut:!0,setIsLoggedOut:t=>e(e=>{e.isLoggedOut=t}),setMe(t){e(t)},setUser(t){e(e=>{e.user=t})},setAuth(t){e(e=>{e.auth=t})},removeProviderFromAuth(t){t&&e(e=>{e.auth&&e.auth.providers&&e.auth.providers.items&&(e.auth.providers.items=e.auth.providers.items.filter(e=>e!==t))})}}))))},78475:function(e,t,r){"use strict";r.d(t,{Fx:function(){return b},H1:function(){return a},O4:function(){return l},Qf:function(){return h},aM:function(){return c},at:function(){return i},c0:function(){return p},dT:function(){return o},gF:function(){return d},kV:function(){return v},lg:function(){return u},lm:function(){return x},w7:function(){return m},wn:function(){return f},y1:function(){return y},y3:function(){return s},zB:function(){return g}}),r(6431);var n=r(61474),a=(0,n.$)("c23171727c6a3207288259d6808462bb0cb43c3f"),c=(0,n.$)("4f00bfb5926f34dcc54c9bb687805ce051b3680b"),u=(0,n.$)("697b04c76b64e7bbcd8c49180d28005bc971c3da");(0,n.$)("d74fd784179dcb7a6e93a8f9e7fe439a2b983e43");var i=(0,n.$)("17853a38926511451c3d8ff7ef8dd92d83d87d09"),s=(0,n.$)("f69955946366e03dd38ed6186acf17f22532ef1e"),o=(0,n.$)("458eae50bed83b7bb9d2c2566b99b9864a6304aa"),l=(0,n.$)("baa9cd01e15c419423e2c9e5fc2780700b0a7118"),d=(0,n.$)("83a1a1ada1e26e2d21974f770a96e178cfbef107"),f=(0,n.$)("81bbf51609c72b858b51492e9376f221611c2bd8"),p=(0,n.$)("e49b11ed9b2e8173c6bbcfc64b5269afc46f403c"),b=(0,n.$)("fdb4ae6cd45496464b9f12ee530fe018342fc24f"),x=(0,n.$)("168a0b70b393712361ce203126ef603d3d34d565"),g=(0,n.$)("d31e1ec6727e9af484bc7a73889032b631d130c7"),h=(0,n.$)("9c17c0ba0630772dac75ad04ee4bdbf63a50ce18"),v=(0,n.$)("1c8eba4d44dca621f67c98ac270f42b8c368a213"),y=(0,n.$)("d3b025970dc43ff3868c06fd1a519333b6587d7b"),m=(0,n.$)("15bbf91f1b2ed650db99aa499584a32714b428d4")},50985:function(e,t,r){"use strict";r.d(t,{$G:function(){return c},H:function(){return u}});var n=r(10922);let a=new(r(57963)).Z("ErrorLogger");class c{static shouldSample(){return .1>Math.random()}static captureMessage(e,t){try{n.uT(e,{level:(null==t?void 0:t.level)||"info",tags:null==t?void 0:t.tags,extra:null==t?void 0:t.extra})}catch(e){a.error("Failed to capture message:",e)}}static captureException(e,t){try{n.Tb(e,t)}catch(e){a.error("Failed to capture exception:",e)}}static captureExceptionWithSampling(e,t){if(!this.shouldSample()){a.error("Error occurred (not sampled): ".concat(e.message));return}try{n.Tb(e,{level:(null==t?void 0:t.level)||"error",tags:null==t?void 0:t.tags,extra:null==t?void 0:t.extra})}catch(e){a.error("Failed to capture exception:",e)}}static setUser(e,t,r){try{n.av({id:e,email:t,username:r})}catch(e){a.error("Failed to set user:",e)}}static setTag(e,t){try{n.YA(e,t)}catch(e){a.error("Failed to set tag:",e)}}static setExtra(e,t){try{n.sU(e,t)}catch(e){a.error("Failed to set extra:",e)}}}c.captureMessage;let u=c.captureException},17351:function(e,t,r){"use strict";var n=r(22865),a=r(44692),c=r(49133),u=r(2265),i=r(96480),s=r(9089),o=r
1(57963),l=r(73371),d=r(99579),f=r(78475),p=r(50985);let b=new o.Z("useHandleLogout");t.Z=function(){let e=s.q.use.isLoggedOut(),t=s.q.use.setIsLoggedOut(),{mutate:r}=(0,i.kY)(),{execute:o}=(0,d.t)(f.w7),x=(0,u.useCallback)(async()=>{a.Q.delete(n.Fg),a.Q.delete(n.d9),a.Q.delete(n.MY),(0,c.j)(),t(!0),await r(()=>!0,void 0,{revalidate:!0})},[r,t]);return{logout:(0,u.useCallback)(async()=>{if(!e){try{await (0,l.D1)(),await o()}catch(e){b.error("Logout error:",e),(0,p.H)(e)}await x()}},[e,x,o]),isLoggedOut:e}}},79628:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});var n=r(96480),a=r(34648),c=r(73371),u=r(9089);function i(){let e=u.q.use.isLoggedOut();return(0,n.ZP)(["/api/forward/v1/auth/token",e],async e=>{let[t,r]=e;if(!r)return(0,c.sK)()},a.I)}},51242:function(e,t,r){"use strict";r.d(t,{P:function(){return b}});var n=r(78475),a=r(96480),c=r(22729),u=r(19998),i=r(17351),s=r(34648),o=r(54322),l=r.n(o),d=r(4266),f=r(9089),p=r(79628);function b(e,t,r){let o=f.q.use.isLoggedOut(),b=u.u.use.currentWiki(),x=c.c.use.currentAccount(),{logout:g}=(0,i.Z)(),{data:h}=(0,p.p)();return(0,a.ZP)(o?null:["/api/v1/me",null!=e?e:null==x?void 0:x.id,null!=t?t:null==b?void 0:b.id,h],async e=>{let[t,r,a]=e;if(null==h?void 0:h.token)return r&&a?(0,n.lg)(r,a):(0,n.aM)()},{...s.I,onErrorRetry:l(),onError:async e=>{let t=d.Wp.parseError(e);
1if((null==t?void 0:t.response.status)===401)await g();else throw e},...r})}},99579:function(e,t,r){"use strict";r.d(t,{t:function(){return c}});var n=r(2265),a=r(54887);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[r,c]=(0,n.useState)(null),[u,i]=(0,n.useState)(null),[s,o]=(0,n.useState)(!1),{pending:l}=(0,a.useFormStatus)();return{execute:(0,n.useCallback)(async function(){for(var r,n,a=arguments.length,u=Array(a),s=0;s<a;s++)u[s]=arguments[s];i(null);try{let n=await e(...u,!0);if(n&&"object"==typeof n&&"__isError"in n)throw Error(JSON.stringify(n));return c(n),null===(r=t.onSuccess)||void 0===r||r.call(t,n),o(!0),n}catch(r){let e=r instanceof Error?r:Error("An unknown error occurred");throw i(e),null===(n=t.onError)||void 0===n||n.call(t,e),o(!0),e}},[e,t]),data:r,error:u,isLoading:l,isExecuted:s}}},22729:function(e,t,r){"use strict";r.d(t,{c:function(){return u}});var n=r(24107),a=r(49133);let c={accounts:[],currentAccount:null},u=(0,n.N)((0,a.U)()(e=>({...c,setCurrentAccount(t){e(()=>({currentAccount:t}))},setAccounts(t){e(()=>({accounts:t}))},upsertAccount(t){e(e=>{let r=e.accounts.findIndex(e=>e.id===t.id);return r<=-1?e.accounts.push(t):e.accounts.splice(r,1,t),e})}})))},19998:function(e,t,r){"use strict";r.d(t,{u:function(){return u}});var n=r(43292),a=r(24107),c=r(49133);let u=(0,a.N)((0,c.U)()((0,n.n)(e=>({wikis:[],currentWiki:null,favoritePageIds:[],setWikis:t=>e(e=>{e.wikis=t}),setCurrentWiki:t=>e(e=>{e.currentWiki=t}),upsertWiki:t=>{e(e=>{var r;let n=e.wikis.findIndex(e=>e.id===t.id);if(n<=-1)e.wikis.push(t);else{let r=[...e.wikis];r.splice(n,1,t),e.wikis=r}(null===(r=e.currentWiki)||void 0===r?void 0:r.id)===t.id&&(e.currentWiki=t)})},deleteWikiById:t=>{e(e=>{var r;let n=e.wikis.filter(e=>e.id!==t);e.wikis=n,(null===(r=e.currentWiki)||void 0===r?void 0:r.id)===t&&(e.currentWiki=null)})},setFavoritePageIds:t=>e(e=>{e.favoritePageIds=t}),addFavoritePageId:t=>e(e=>{let r=[...e.favoritePageIds,t];e.favoritePageIds=r})}))))},32817:function(e,t,r){"use strict";r.d(t,{jD:function(){return c},rU:function(){return n},tv:function(){return u}});let{Link:n,redirect:a,usePathname:c,useRouter:u}=(0,r(94595).iV)({locales:["en"]})},1008:function(e){e.exports={authLayoutBg:"AuthLayout_authLayoutBg__tvdQl"}}}]);

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.