1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9295],{12089:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(11713).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},12377:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(11713).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},26303:(e,t,r)=>{"use strict";r.d(t,{UC:()=>er,VY:()=>ea,ZL:()=>ee,bL:()=>Y,bm:()=>en,hE:()=>es,hJ:()=>et,l9:()=>Q});var s=r(14232),a=r(33716),n=r(10714),l=r(91844),i=r(70294),o=r(58162),d=r(73520),c=r(90870),u=r(31893),m=r(96822),x=r(66326),p=r(22658),h=r(62634),f=r(94769),g=r(82987),b=r(37876),v="Dialog",[y,j]=(0,l.A)(v),[N,w]=y(v),C=e=>{let{__scopeDialog:t,children:r,open:a,defaultOpen:n,onOpenChange:l,modal:d=!0}=e,c=s.useRef(null),u=s.useRef(null),[m,x]=(0,o.i)({prop:a,defaultProp:n??!1,onChange:l,caller:v});return(0,b.jsx)(N,{scope:t,triggerRef:c,contentRef:u,contentId:(0,i.B)(),titleId:(0,i.B)(),descriptionId:(0,i.B)(),open:m,onOpenChange:x,onOpenToggle:s.useCallback(()=>x(e=>!e),[x]),modal:d,children:r})};C.displayName=v;var k="DialogTrigger",A=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,l=w(k,r),i=(0,n.s)(t,l.triggerRef);return(0,b.jsx)(x.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":K(l.open),...s,ref:i,onClick:(0,a.mK)(e.onClick,l.onOpenToggle)})});A.displayName=k;var D="DialogPortal",[E,R]=y(D,{forceMount:void 0}),S=e=>{let{__scopeDialog:t,forceMount:r,children:a,container:n}=e,l=w(D,t);return(0,b.jsx)(E,{scope:t,forceMount:r,children:s.Children.map(a,e=>(0,b.jsx)(m.C,{present:r||l.open,children:(0,b.jsx)(u.Z,{asChild:!0,container:n,children:e})}))})};S.displayName=D;var O="DialogOverlay",_=s.forwardRef((e,t)=>{let r=R(O,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,n=w(O,e.__scopeDialog);return n.modal?(0,b.jsx)(m.C,{present:s||n.open,children:(0,b.jsx)(z,{...a,ref:t})}):null});_.displayName=O;var I=(0,g.TL)("DialogOverlay.RemoveScroll"),z=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,a=w(O,r);return(0,b.jsx)(h.A,{as:I,allowPinchZoom:!0,shards:[a.contentRef],children:(0,b.jsx)(x.sG.div,{"data-state":K(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),M="DialogContent",U=s.forwardRef((e,t)=>{let r=R(M,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,n=w(M,e.__scopeDialog);return(0,b.jsx)(m.C,{present:s||n.open,children:n.modal?(0,b.jsx)(F,{...a,ref:t}):(0,b.jsx)(P,{...a,ref:t})})});U.displayName=M;var F=s.forwardRef((e,t)=>{let r=w(M,e.__scopeDialog),l=s.useRef(null),i=(0,n.s)(t,r.contentRef,l);return s.useEffect(()=>{let e=l.current;if(e)return(0,f.Eq)(e)},[]),(0,b.jsx)(T,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>e.preventDefault())})}),P=s.forwardRef((e,t)=>{let r=w(M,e.__scopeDialog),a=s.useRef(!1),n=s.useRef(!1);return(0,b.jsx)(T,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let s=t.target;r.triggerRef.current?.contains(s)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),T=s.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:i,...o}=e,u=w(M,r),m=s.useRef(null),x=(0,n.s)(t,m);return(0,p.Oh)(),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.n,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:i,children:(0,b.jsx)(d.qW,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":K(u.open),...o,ref:x,onDismiss:()=>u.onOpenChange(!1)})}),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(J,{titleId:u.titleId}),(0,b.jsx)(X,{contentRef:m,descriptionId:u.descriptionId})]})]})}),L="DialogTitle",W=s.forwardRef((e,t)=>
1{let{__scopeDialog:r,...s}=e,a=w(L,r);return(0,b.jsx)(x.sG.h2,{id:a.titleId,...s,ref:t})});W.displayName=L;var $="DialogDescription",q=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,a=w($,r);return(0,b.jsx)(x.sG.p,{id:a.descriptionId,...s,ref:t})});q.displayName=$;var G="DialogClose",V=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,n=w(G,r);return(0,b.jsx)(x.sG.button,{type:"button",...s,ref:t,onClick:(0,a.mK)(e.onClick,()=>n.onOpenChange(!1))})});function K(e){return e?"open":"closed"}V.displayName=G;var B="DialogTitleWarning",[Z,H]=(0,l.q)(B,{contentName:M,titleName:L,docsSlug:"dialog"}),J=({titleId:e})=>{let t=H(B),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},X=({contentRef:e,descriptionId:t})=>{let r=H("DialogDescriptionWarning"),a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return s.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Y=C,Q=A,ee=S,et=_,er=U,es=W,ea=q,en=V},31814:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-management-v1",function(){return r(42963)}])},33276:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(11713).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},42963:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var s=r(37876),a=r(14232),n=r(65104),l=r(12377),i=r(12089),o=r(98514),d=r(56311),c=r(93769),u=r(77105),m=r(59688),x=r(89007);let p=[{id:1,name:"Admin"},{id:2,name:"Maker"},{id:3,name:"Checker"},{id:4,name:"Endecarb Specialist"},{id:5,name:"Super User"},{id:6,name:"Management"},{id:7,name:"Auditor"}],h={fullName:"",email:"",phone:"",position:"",department:"",roles:[]};function f(){let[e,t]=(0,a.useState)(h),[r,f]=(0,a.useState)([]),[g,b]=(0,a.useState)(null),[v,y]=(0,a.useState)(!1),j=(0,c.SQ)(),[N,w]=(0,a.useState)(!1),[C,k]=(0,a.useState)(null),A=e=>{let{name:r,value:s,type:a}=e.target;if("roles"===r){let r=Array.from(e.target.options).filter(e=>e.selected).map(e=>Number(e.value));t(e=>({...e,roles:r}))}else t(e=>({...e,[r]:"number"===a?Number(s):s}))},D=async r=>{r.preventDefault(),j(!0);try{await (0,d.uE)("Users/upsert",{method:"PUT",body:e})&&(y(!1),t(h),_(),j(!1),m.oR.success("User Created!",{description:"User Created successfully!"}))}catch(e){console.error("Error fetching users:",e),m.oR.error("Failed",{description:"Uh-oh! We couldn't create that. Give it another try!"})}},E=e=>{y(!0),t(r[e]),b(r[e])},R=e=>null==e?void 0:e.map(e=>{var t;return null==(t=p.find(t=>t.id===e))?void 0:t.name}).filter(Boolean).join(", "),S=e=>{w(!0),k(e)},O=async()=>{try{await (0,d.uE)("users/".concat(C),{method:"DELETE"}),_(),m.oR.success("User Deleted",{description:"User deleted successfully!"})}catch(e){m.oR.error("Failed",{description:"Uh-oh! We couldn't delete that. Give it another try!"})}},_=async()=>{j(!0);let e=await (0,d.uE)("Users/firm",{method:"GET"});e.length>0&&(f(e),j(!1))};return(0,a.useEffect)(()=>{_()},[]),(0,s.jsxs)("div",{className:"px-3 py-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex justify-end ",children:(0,s.jsxs)("button",{className:"text-emerald-600 hover:underline flex items-right gap-1",onClick:()=>y(!0),children:[(0,s.jsx)(n.A,{size:20,strokeWidth:3}),"Add User"]})}),(0,s.jsx)("div",{className:"h-110 overflow-y-auto overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full table-auto border-collapse bg-white rounded shadow",children:[(0,s.jsx)("thead",{className:"bg-emerald-700 text-sm",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"px-3 py-2 text-left !text-white",children:"Name"}),(0,s.jsx)("th",{className:"px-3 py-2 text-left !text-white",children:"Email"}),(0,s.jsx)("th",{className:"px-3 py-2 text-left !text-white",children:"Phone"}),(0,s.jsx)("th",{className:"px-3 py-2 text-left !text-white",children:"Position"}),(0,s.jsx)("th",{className:"px-3 py-2 text-left !text-white",children:"Department"}),(0,s.jsx)("th",{className:"px-3 py-2 text-left !text-white",children:"Role"}),(0,s.jsx)("th",{className:"px-3 py-2 text-left !text-white",children:"Actions"})]})}),(0,s.jsx)("tbody",{children:r.map((e,t)=>(0,s.jsxs)("tr",{className:"odd:bg-white even:bg-gray-100",children:[(0,s.jsx)("td",{className:"border border-gray-300 px-2 py-1",children:e.fullName}),(0,s.jsx)("td",{className:"border border-gray-300 px-2 py-1",children:e.email}),(0,s.jsx)("td",{className:"border border-gray-300 px-2 py-1",children:e.phone}),(0,s.jsx)("td",{className:"border border-gray-300 px-2 py-1",children:e.position}),(0,s.jsx)("td",{className:"border border-gray-300 px-2 py-1",children:e.department}),(0,s.jsx)("td",{className:"border border-gray-300 px-2 py-1",children:R(e.roles)}),(0,s.jsxs)("td",{className:"border border-gray-300 px-2 py-1 flex gap-2",children:[(0,s.jsx)("button",{onClick:()=>E(t),className:"text-emerald-600 hover:underline flex items-center gap-1 px-2 py-1",children:(0,s.jsx)(l.A,{size:16})}),(0,s.jsx)("button",{onClick:()=>S(e.userId),className:"px-2 py-1 text-red-600 hover:underline flex items-center gap-1",children:(0,s.jsx)(i.A,{size:16})})]})]},t))})]})})]}),(0,s.jsxs)(o.A,{isOpen:v,onClose:()=>y(!1),children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-emerald-700 mb-2",children:"Add User"}),(0,s.jsxs)("form",{onSubmit:D,className:"gap-4 bg-white p-2 rounded shadow",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("label",{className:"text-sm text-emerald-800",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"fullName",value:e.fullName,hidden:!0}),(0,s.jsx)("input",{type:"text",name:"fullName",required:!0,className:"px-2 py-1 border-green-600 border rounded w-100",value:e.fullName,onChange:A})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("label",{className:"text-sm text-emerald-800",children:"Email"}),(0,s.jsx)("input",{type:"email",name:"email",required:!0,className:"px-2 py-1 border border-green-600 rounded w-100",value:e.email,onChange:A})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("label",{className:"text-sm text-emerald-800",children:"Phone"}),(0,s.jsx)("input",{type:"tel",name:"phone",className:"px-2 py-1 border border-green-600 rounded w-100",value:e.phone,onChange:A})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("label",{className:"text-sm text-emerald-800",children:"Position"}),(0,s.jsx)("input",{type:"text",name:"position",className:"px-2 py-1 border border-green-600 rounded w-100",value:e.position,onChange:A})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("label",{className:"text-sm text-emerald-800",children:"Department"}),(0,s.jsx)("input",{type:"text",name:"department",required:!0,className:"px-2 py-1 border border-green-600 rounded w-100",value:e.department,onChange:A})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("label",{className:"text-sm text-emerald-800",children:"Role"}),(0,s.jsx)(x.V,{className:"w-100 border border-green-600 rounded",options:p.map(e=>({value:e.id.toString(),label:e.name})),selectedValues:new Set(e.roles.map(e=>e.toString())),onChange:e=>{console.log(e),t(t=>({...t,roles:Array.from(e).map(e=>+e)}))},placeholder:"Select Role"})]}),(0,s.jsx)("button",{type:"submit",className:"bg-emerald-700 mt-4 text-white px-4 py-2 w-full rounded hover:bg-emerald-800 transition",children:null!==g?"Upd
5ate User":"Send Invite"})]})]}),(0,s.jsx)(u.o,{isOpen:N,onOpenChange:w,onConfirm:O})]})}},52588:(e,t,r)=>{"use strict";r.d(t,{AM:()=>l,Wv:()=>i,hl:()=>o});var s=r(37876);r(14232);var a=r(13178),n=r(74317);function l(e){let{...t}=e;return(0,s.jsx)(a.bL,{"data-slot":"popover",...t})}function i(e){let{...t}=e;return(0,s.jsx)(a.l9,{"data-slot":"popover-trigger",...t})}function o(e){let{className:t,align:r="center",sideOffset:l=4,...i}=e;return(0,s.jsx)(a.ZL,{children:(0,s.jsx)(a.UC,{"data-slot":"popover-content",align:r,sideOffset:l,className:(0,n.cn)(" data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border border-divider p-4 shadow-md outline-hidden","bg-surface1 text-text-primary text-[1rem] line-height-150% font-weight-400",t),...i})})}},65104:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(11713).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},77105:(e,t,r)=>{"use strict";r.d(t,{o:()=>l});var s=r(37876);r(14232);var a=r(26303),n=r(77041);function l(e){let{isOpen:t,onOpenChange:r,onConfirm:l,itemName:i,message:o}=e;return(0,s.jsx)(a.bL,{open:t,onOpenChange:r,children:(0,s.jsxs)(a.ZL,{children:[(0,s.jsx)(a.hJ,{className:"fixed inset-0 bg-black/50"}),(0,s.jsxs)(a.UC,{className:"fixed top-[50%] left-[50%] max-w-sm w-full bg-white p-6 rounded-md -translate-x-1/2 -translate-y-1/2 focus:outline-none",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Confirm Delete"}),(0,s.jsx)("p",{className:"mb-6",children:o||"Are you sure you want to delete ".concat(i||"this item","?")}),(0,s.jsxs)("div",{className:"flex justify-end gap-4",children:[(0,s.jsx)(n.$,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),(0,s.jsx)(n.$,{variant:"destructive",onClick:()=>{l(),r(!1)},children:"Delete"})]}),(0,s.jsx)(a.bm,{})]})]})})}},89007:(e,t,r)=>{"use strict";r.d(t,{V:()=>m});var s=r(37876),a=r(14232),n=r(51895),l=r(33276),i=r(70672),o=r(91621),d=r(74317),c=r(77041),u=r(52588);function m(e){let{options:t,selectedValues:r,onChange:m,containerClassName:x,buttonClassName:p,popoverContentClassName:h,commandInputClassName:f,titleClassName:g,title:b,placeholder:v="Select options...",maxLimit:y,disabled:j}=e,[N,w]=a.useState(!1),[C,k]=a.useState(""),A=a.useRef(null),D=a.useRef(null),E=a.useMemo(()=>{if(!C.trim())return t;let e=C.toLowerCase();return t.filter(t=>t.label.toLowerCase().includes(e))},[t,C]),R=r.size===t.length&&t.length>0,S=r.size>0&&!R,O=(0,n.Te)({count:E.length,getScrollElement:()=>A.current,estimateSize:()=>36,overscan:5,enabled:N}),_=e=>{let t=new Set(r);if(t.has(e))t.delete(e);else{if(1===y)return void m(new Set([e]));if(y&&t.size>=y)return;t.add(e)}m(t)},I=e=>{e.stopPropagation(),m(new Set)};a.useEffect(()=>{if(N){k("");let e=requestAnimationFrame(()=>{var e;null==(e=D.current)||e.focus(),O.measure()});return()=>cancelAnimationFrame(e)}},[N,E.length,O]);let z=(e,t)=>{let a=r.has(e.value);return(0,s.jsxs)("button",{type:"button",onClick:()=>_(e.value),className:"flex items-center gap-2 w-full px-3 text-sm hover:bg-surface3 transition-colors",style:t,children:[(0,s.jsx)("span",{className:(0,d.cn)("flex h-4 w-4 items-center justify-center rounded-sm border border-divider shrink-0",a?"bg-primary text-primary-foreground border-primary":"bg-surface2"),children:a&&(0,s.jsx)(l.A,{className:"h-3 w-3"})}),(0,s.jsx)("span",{className:"text-text-secondary truncate",children:e.label})]},e.value)},M=a.useMemo(()=>{if(0===r.size)return v;if(1===r.size){var e,s;return null!=(s=null==(e=t.find(e=>r.has(e.value)))?void 0:e.label)?s:v}return"".concat(r.size," selected")},[r,t,v]);return(0,s.jsxs)("div",{className:(0,d.cn)("flex min-w-0 flex-1 items-center gap-[0.5rem]",x),children:[b&&(0,s.jsx)("span",{className:(0,d.cn)("shrink-0 text-[1rem] font-weight-400 text-text-tertiary line-height-150%",g),children:b}),(0,s.jsxs)(u.AM,{open:N,onOpenChange:w,children:[(0,s.jsx)(u.Wv,{asChild:!0,children:(0,s.jsxs)(c.$,{variant:"dropdown",role:"combobox","aria-expanded":N,className:(0,d.cn)("min-w-0 flex-1",p),disabled:j,children:[(0,s.jsx)("div",{className:"truncate text-text-secondary text-[1rem] line-height-150% font-weight-400",children:M}),(0,s.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[r.size>0&&(0,s.jsx)("span",{role:"button",tabIndex:0,onClick:I,onKeyDown:e=>"Enter"===e.key&&I(e),className:"rounded-full p-0.5 hover:bg-surface3 text-text-muted",children:(0,s.jsx)(i.A,{className:"h-3.5 w-3.5"})}),(0,s.jsx)(o.A,{className:"h-[1.5em] w-[1.5em] text-text-muted"})]})]})}),(0,s.jsxs)(u.hl,{className:(0,d.cn)("z-[1200] p-0 w-[var(--radix-popover-trigger-width)] min-w-[12rem] bg-surface2",h),align:"start",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 border-b border-divider px-3 py-2",children:(0,s.jsx)("input",{ref:D,value:C,onChange:e=>k(e.target.value),placeholder:"Search...",className:(0,d.cn)("flex-1 bg-transparent text-sm text-text-secondary placeholder:text-text-muted outline-none",f)})}),(0,s.jsxs)("button",{type:"button",onClick:()=>
5{if(R)m(new Set);else{let e=t.map(e=>e.value);m(new Set(y?e.slice(0,y):e))}},className:"flex items-center gap-2 w-full px-3 py-2 text-sm hover:bg-surface3 transition-colors border-b border-divider",children:[(0,s.jsx)("span",{className:(0,d.cn)("flex h-4 w-4 items-center justify-center rounded-sm border border-divider shrink-0",R?"bg-primary text-primary-foreground border-primary":S?"bg-primary/30 border-primary":"bg-surface2"),children:(R||S)&&(0,s.jsx)(l.A,{className:"h-3 w-3"})}),(0,s.jsx)("span",{className:"text-text-secondary",children:"Select All"}),(0,s.jsxs)("span",{className:"ml-auto text-text-muted text-xs",children:[r.size,"/",t.length]})]}),0===E.length?(0,s.jsx)("div",{className:"py-6 text-center text-sm text-text-muted",children:"No results found."}):E.length<=8?(0,s.jsx)("div",{style:{maxHeight:288,overflow:"auto"},children:E.map(e=>z(e,{height:36}))}):(0,s.jsx)("div",{ref:A,style:{height:36*Math.min(E.length,8),overflow:"auto",msOverflowStyle:"none",scrollbarWidth:"none"},children:(0,s.jsx)("div",{style:{height:O.getTotalSize(),width:"100%",position:"relative"},children:O.getVirtualItems().map(e=>z(E[e.index],{height:36,position:"absolute",top:0,left:0,transform:"translateY(".concat(e.start,"px)")}))})})]})]})]})}},91621:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(11713).A)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},98514:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876);r(14232);var a=r(74317),n=r(77041),l=r(70672);let i=e=>{let{isOpen:t,onClose:r,children:i,className:o="",showCloseBtn:d=!0}=e;return t?(0,s.jsx)("div",{className:"fixed inset-0 bg-background/60 flex justify-center items-center z-100 border border-divider rounded-4xl",children:(0,s.jsxs)("div",{className:(0,a.cn)("bg-surface2 p-4 rounded-4xl relative min-w-80 max-w-120 border border-divider",o),children:[(0,s.jsx)(n.$,{onClick:r,variant:"ghost",className:"absolute right-4 top-4",children:(0,s.jsx)(l.A,{size:18})}),i,d&&(0,s.jsx)(n.$,{variant:"action",onClick:r,className:"bg-action-primary text-text-btn rounded-full hover:bg-action-hover hover:text-text-btn-hover transition px-6 py-3 text-[1rem]",children:"Close"})]})}):null}}},e=>{var t=t=>e(e.s=t);e.O(0,[2502,636,6593,8792],()=>t(31814)),_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.