PageSourceSearch

https://kalpintelligence.com/_next/static/chunks/9021.63dd48a53a38c0af.js

js kalpintelligence.com collected 2026-10-09 22:50:16 UTC 3,341 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9021],{8803:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(45105).A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},20562:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(45105).A)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},48314:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(45105).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},69021:(e,s,a)=>{a.r(s),a.d(s,{SidebarOrderSettings:()=>u});var t=a(95155),r=a(12115),n=a(18720),i=a(919),l=a(20562),c=a(8803),o=a(48314),d=a(97003),h=a(83209),p=a(79224);function u(){let[e,s]=(0,r.useState)([...p.w]),[a,u]=(0,r.useState)(!0),[m,x]=(0,r.useTransition)();function f(a,t){let r=a+t;r<0||r>=e.length||s(e=>{let s=[...e],t=s[a];return s[a]=s[r],s[r]=t,s})}return((0,r.useEffect)(()=>{fetch("/api/user/preferences",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(e=>{var a;(null==e||null==(a=e.sidebarSectionOrder)?void 0:a.length)?s(e.sidebarSectionOrder):s([...p.w])}).catch(()=>{}).finally(()=>u(!1))},[]),a)?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground py-4",children:[(0,t.jsx)(i.A,{className:"h-4 w-4 animate-spin"}),"Loading navigation preferences…"]}):(0,t.jsxs)(h.Zp,{children:[(0,t.jsxs)(h.aR,{children:[(0,t.jsx)(h.ZB,{className:"text-lg",children:"Sidebar order"}),(0,t.jsx)(h.BT,{children:"Choose how groups appear in the left navigation (DevOps, Work, Finance, etc.). Applies to your account only."})]}),(0,t.jsxs)(h.Wu,{className:"space-y-3",children:[(0,t.jsx)("ul",{className:"rounded-lg border divide-y",children:e.map((s,a)=>(0,t.jsxs)("li",{className:"flex items-center justify-between gap-2 px-3 py-2 bg-card text-sm",children:[(0,t.jsx)("span",{className:"font-medium",children:s}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(d.$,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",disabled:0===a,onClick:()=>f(a,-1),"aria-label":"Move up",children:(0,t.jsx)(l.A,{className:"h-4 w-4"})}),(0,t.jsx)(d.$,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8",disabled:a===e.length-1,onClick:()=>f(a,1),"aria-label":"Move down",children:(0,t.jsx)(c.A,{className:"h-4 w-4"})})]})]},s))}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(d.$,{type:"button",variant:"outline",size:"sm",onClick:()=>s([...p.w]),children:[(0,t.jsx)(o.A,{className:"h-3.5 w-3.5 mr-1"}),"Reset default"]}),(0,t.jsxs)(d.$,{type:"button",size:"sm",disabled:m,onClick:function(){x(async()=>{try{if(!(await fetch("/api/user/preferences",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({sidebarSectionOrder:e})})).ok)throw Error();n.oR.success("Sidebar order saved")}catch(e){n.oR.error("Could not save sidebar order")}})},children:[m&&(0,t.jsx)(i.A,{className:"h-3.5 w-3.5 mr-1 animate-spin"}),"Save order"]})]})]})]})}},79224:(e,s,a)=>{a.d(s,{V:()=>r,w:()=>t});let t=["Overview","DevOps","Work","Finance","User & Access","Content","Personal"];function r(e,s){let a=s&&s.length>0?s:[...t],r=e=>{if("Overview"===e)return -1;let s=a.indexOf(e);return -1===s?1e3+e.charCodeAt(0):s};return[...e].sort((e,s)=>r(e.label)-r(s.label))}}}]);

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.