1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8007],{21137:(e,n,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/concepts",function(){return r(50738)}])},40801:(e,n,r)=>{"use strict";r.d(n,{d:()=>d});var t=r(37876),i=r(14232),l=r(89099),s=r(5646);let o=s.Ay.div.withConfig({componentId:"sc-af3c7750-0"})(["display:flex;align-items:center;justify-content:center;gap:",";margin-top:",";"],e=>{let{theme:n}=e;return n.spacing.md},e=>{let{theme:n}=e;return n.spacing.lg}),a=s.Ay.button.withConfig({componentId:"sc-af3c7750-1"})(["padding:"," ",";border:1px solid ",";border-radius:",";background:",";&:hover:not(:disabled){background:",";}"],e=>{let{theme:n}=e;return n.spacing.sm},e=>{let{theme:n}=e;return n.spacing.md},e=>{let{theme:n}=e;return n.colors.border},e=>{let{theme:n}=e;return n.radii.md},e=>{let{theme:n}=e;return n.colors.background},e=>{let{theme:n}=e;return n.colors.gray[100]}),c=s.Ay.span.withConfig({componentId:"sc-af3c7750-2"})(["font-size:",";"],e=>{let{theme:n}=e;return n.fontSizes.sm}),d=e=>{let{currentPage:n,totalPages:r,pageParam:s="page"}=e,d=(0,l.useRouter)(),u=(0,i.useCallback)(e=>{let n={...d.query,[s]:String(e)};1===e&&delete n[s],d.push({pathname:d.pathname,query:n})},[d,s]),p=(0,i.useCallback)(()=>{u(n-1)},[n,u]),f=(0,i.useCallback)(()=>{u(n+1)},[n,u]);return r<=1?null:(0,t.jsxs)(o,{children:[(0,t.jsx)(a,{disabled:n<=1,onClick:p,children:"Previous"}),(0,t.jsxs)(c,{children:["Page ",n," of ",r]}),(0,t.jsx)(a,{disabled:n>=r,onClick:f,children:"Next"})]})}},50738:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>I});var t=r(37876),i=r(63410),l=r(42546),s=r(26956);function o(e){let{page:n,take:r=12,currentUser:t,where:i,...s}=e;return{...s,where:{visibility:l.wBj.PUBLIC,...i},skip:(n-1)*r,take:r}}var a=r(5646);let c=a.Ay.div.withConfig({componentId:"sc-68a340fd-0"})(["display:flex;flex-direction:column;gap:16px;max-width:100%;width:100%;"]),d=a.Ay.div.withConfig({componentId:"sc-68a340fd-1"})(["display:flex;flex-direction:column;gap:24px;"]),u=a.Ay.div.withConfig({componentId:"sc-382fc604-0"})(["display:flex;flex-direction:column;gap:4px;padding:8px 0 0;font-size:0.75rem;color:#6b7280;"]),p=a.Ay.h3.withConfig({componentId:"sc-382fc604-1"})(["text-overflow:ellipsis;max-width:100%;overflow:hidden;white-space:nowrap;"]),f=a.Ay.div.withConfig({componentId:"sc-382fc604-2"})(["font-size:0.875rem;color:#6b7280;"]),x=a.Ay.span.withConfig({componentId:"sc-382fc604-3"})(["display:inline-block;padding:2px 8px;background:#e5e7eb;border-radius:4px;font-size:0.75rem;color:#374151;"]),h=a.Ay.div.withConfig({componentId:"sc-382fc604-4"})(["display:flex;flex-direction:column;gap:12px;background:#ffffff;border-radius:12px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,0.08);border:1px solid #e5e7eb;transition:box-shadow 0.2s,transform 0.2s;min-width:0;&:hover{box-shadow:0 4px 12px rgba(0,0,0,0.1);transform:translateY(-2px);}",""],e=>{let{$variant:n}=e;switch(n){case"list":return(0,a.AH)([""]);case"full":return(0,a.AH)(["padding:24px;"])}});var g=r(82588),m=r(53006),v=r(23169),b=r(73918);let w=e=>{let n,{concept:r,variant:i,...l}=e,{id:s,name:o,description:a,type:c,content:d,CreatedBy:w}=r;return n="full"===i?(0,t.jsx)(t.Fragment,{children:d&&(0,t.jsx)(m.o,{children:d})}):null,(0,t.jsxs)(h,{...l,$variant:i,children:[(0,t.jsx)(b.r,{object:r,children:(0,t.jsx)(p,{children:o||s})}),c&&(0,t.jsx)(x,{children:c}),a&&(0,t.jsx)(f,{children:(0,t.jsx)(m.o,{children:a})}),n,(0,t.jsxs)(u,{children:[(0,t.jsx)(b.r,{object:r,children:(0,t.jsx)(g.X,{value:r.updatedAt,format:"dateTimeShort"})}),w&&(0,t.jsx)(v.E,{user:w})]})]})};var j=r(40801);let y=e=>{let{concepts:n,count:r,limit:i,page:l,...s}=e,o=r?Math.floor(r/i):0;return(0,t.jsxs)(d,{...s,children:[(0,t.jsx)(c,{children:n.map(e=>(0,t.jsx)(w,{concept:e,variant:"list"},e.id))}),(0,t.jsx)(j.d,{currentPage:l,totalPages:o})]})};var C=r(48230),k=r.n(C),A=r(71231);let I=e=>{var n,r,a,c;let{page:d=1,siteOrigin:u}=e,{user:p}=(0,s.Us)(),f=o({page:d,currentUser:p}),x=(0,l.zKK)({variables:f});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.S,{title:"Concepts",canonical:`/concepts${d>1?"":`?page=${d}
1`}`,siteOrigin:u}),(null==p?void 0:p.sudo)&&(0,t.jsx)("div",{children:(0,t.jsx)(k(),{href:"/concepts/create",rel:"nofollow",children:"Create"})}),(0,t.jsx)(y,{concepts:null!=(n=null==(a=x.data)?void 0:a.concepts)?n:[],count:null!=(r=null==(c=x.data)?void 0:c.kBConceptsCount)?r:0,page:d,limit:f.take})]})};I.getInitialProps=async e=>{let{query:n,apolloClient:r}=e,t=n.page,i="string"==typeof t&&parseInt(t,10)>0?parseInt(t,10):1,s=await r.query({query:l.R8,variables:o({page:i,currentUser:(0,A.H)(r)})}).then(e=>{var n;return null==(n=e.data)?void 0:n.concepts});return{page:i,statusCode:(null==s?void 0:s.length)||!(i>1)?void 0:404}}},71231:(e,n,r)=>{"use strict";r.d(n,{H:()=>i});var t=r(42546);function i(e){var n;return null==(n=e.cache.readQuery({query:t.AkU,variables:{}}))?void 0:n.me}},73918:(e,n,r)=>{"use strict";r.d(n,{K:()=>s,r:()=>o});var t=r(37876),i=r(48230),l=r.n(i);function s(e){let{id:n,uri:r}=e;return r||`/concepts/${n}`}r(14232);let o=e=>{let{object:n,children:r,className:i}=e;if(!n)return null;let o=s(n);return(0,t.jsx)(l(),{href:o,className:i,children:r||n.name||n.id})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=21137)),_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.