PageSourceSearch

https://platform.socbyte.ai/_next/static/chunks/5071-db4ea8d0f8d5b4f4.js

js socbyte.ai collected 2026-10-05 12:39:41 UTC 24,262 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7e17bbf8-c966-42ea-90fb-07823a7e02c2",e._sentryDebugIdIdentifier="sentry-dbid-7e17bbf8-c966-42ea-90fb-07823a7e02c2")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5071],{11349:(e,t,n)=>{n.d(t,{JS:()=>s,Jb:()=>i,OH:()=>m,Pv:()=>E,i5:()=>p,y$:()=>v});var a=n(65161),r=n(36162),o=n(34686);let i=async e=>{try{let t=e.user?(0,o.jN)(e.user):e.requestedTenant||[];return(await a.A.post("/administration/email-notification-settings/list",{requestedTenant:t})).data}catch(e){var t,n;return{success:!1,message:(null==e||null==(n=e.response)||null==(t=n.data)?void 0:t.message)||"Failed to fetch email notification settings"}}},s=async e=>{try{return(await a.A.patch("/administration/email-notification-settings/update",e)).data}catch(e){var t,n;return{success:!1,message:(null==e||null==(n=e.response)||null==(t=n.data)?void 0:t.message)||"Failed to update email notification setting"}}},l={CASE_CREATED:["case alert sound"],CASE_COMMENT_ADDED:["comment alert sound","case comment alert sound"],OFFENSE_CREATED:["offense alert sound"]},d=["CASE_CREATED","CASE_COMMENT_ADDED","OFFENSE_CREATED"];function c(e){return String(e||"").trim().toLowerCase().replace(/-/g,"")}let u={CASE_CREATED:"CASE_CREATED",caseCreated:"CASE_CREATED",caseAlertSound:"CASE_CREATED",CASE_COMMENT_ADDED:"CASE_COMMENT_ADDED",caseCommentAdded:"CASE_COMMENT_ADDED",caseCommentAlertSound:"CASE_COMMENT_ADDED",OFFENSE_CREATED:"OFFENSE_CREATED",offenseCreated:"OFFENSE_CREATED",offenseAlertSound:"OFFENSE_CREATED"};function f(e){var t;return null!=(t=u[String(e||"").trim()])?t:null}let m="sb:notification-sound-settings-changed";function p(e){for(let[t,n]of Object.entries(l))if(function(e,t){let n=String(e||"").trim().toLowerCase();return t.some(e=>n===e||n.includes(e))}(e,n))return t;return null}async function E(e){let t=new Map,n=e.filter(e=>e&&"all"!==e);if(0===n.length)return t;try{var r,o;let e=(r=(await a.A.post("/administration/in-app-notifications/alert-sound-settings",{requestedTenant:n})).data)&&((null==(o=r.data)?void 0:o.settings)||r.settings)||{};for(let[n,a]of Object.entries(e))t.set(c(n),function(e){let t=new Map;for(let n of d){let a=!0;for(let[t,r]of Object.entries(e))if(f(t)===n){a=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return null==e?t:!1!==e}(r);break}t.set(n,a)}return t}(a||{}))}catch(e){}return t}function v(e,t){let n=function(e,t){var n,a,r,o;for(let r of[t.tenantId,null==(n=t.metadata)?void 0:n.tenantId,null==(a=t.metadata)?void 0:a.tenant_id]){let t=c(String(null!=r?r:""));if(t&&e.has(t))return String(r)}return 1===e.size?null!=(o=e.keys().next().value)?o:"":String(t.tenantId||(null==(r=t.metadata)?void 0:r.tenantId)||"")}(e,t);(function(e,t,n){if(0===e.size)return!0;let a=f(n);if(!a)return!0;let r=c(t);if(!r&&1===e.size){var o;r=null!=(o=e.keys().next().value)?o:""}if(!r)return!0;let i=e.get(r);return!i||!1!==i.get(a)})(e,n,t.eventType||"")&&(0,r.i)()}},22215:(e,t,n)=>{n.d(t,{Cf:()=>c,Es:()=>f,HM:()=>l,L3:()=>m,c7:()=>u,lG:()=>i,rr:()=>p});var a=n(95155);n(12115);var r=n(29483),o=n(40980);function i(e){let{...t}=e;return(0,a.jsx)(r.bL,{"data-slot":"dialog",...t,"data-sentry-element":"DialogPrimitive.Root","data-sentry-component":"Dialog","data-sentry-source-file":"dialog.tsx"})}function s(e){let{...t}=e;return(0,a.jsx)(r.ZL,{"data-slot":"dialog-portal",...t,"data-sentry-element":"DialogPrimitive.Portal","data-sentry-component":"DialogPortal","data-sentry-source-file":"dialog.tsx"})}function l(e){let{...t}=e;return(0,a.jsx)(r.bm,{"data-slot":"dialog-close",...t,"data-sentry-element":"DialogPrimitive.Close","data-sentry-component":"DialogClose","data-sentry-source-file":"dialog.tsx"})}function d(e){let{className:t,...n}=e;return(0,a.jsx)(r.hJ,{"data-slot":"dialog-overlay",className:(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60",t),...n,"data-sentry-element":"DialogPrimitive.Overlay","data-sentry-component":"DialogOverlay","data-sentry-source-file":"dialog.tsx"})}function c(e){let{className:t,children:n,...i}=e;return(0,a.jsxs)(s,{"data-slot":"dialog-portal","data-sentry-element":"DialogPortal","data-sentry-component":"DialogContent","data-sentry-source-file":"dialog.tsx",children:[(0,a.jsx)(d,{"data-sentry-element":"DialogOverlay","data-sentry-source-file":"dialog.tsx"}),(0,a.jsx)(r.UC,{"aria-describedby":void 0,"data-slot":"dialog-content",className:(0,o.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-fit translate-x-[-50%] translate-y-[-50%] gap-4 roun
1ded-lg border p-6 shadow-lg duration-200",t),...i,"data-sentry-element":"DialogPrimitive.Content","data-sentry-source-file":"dialog.tsx",children:n})]})}function u(e){let{className:t,...n}=e;return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,o.cn)("flex flex-col gap-2 text-center sm:text-left",t),...n,"data-sentry-component":"DialogHeader","data-sentry-source-file":"dialog.tsx"})}function f(e){let{className:t,...n}=e;return(0,a.jsx)("div",{"data-slot":"dialog-footer",className:(0,o.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...n,"data-sentry-component":"DialogFooter","data-sentry-source-file":"dialog.tsx"})}function m(e){let{className:t,...n}=e;return(0,a.jsx)(r.hE,{"data-slot":"dialog-title",className:(0,o.cn)("text-lg leading-none font-semibold",t),...n,"data-sentry-element":"DialogPrimitive.Title","data-sentry-component":"DialogTitle","data-sentry-source-file":"dialog.tsx"})}function p(e){let{className:t,...n}=e;return(0,a.jsx)(r.VY,{"data-slot":"dialog-description",className:(0,o.cn)("text-muted-foreground text-sm",t),...n,"data-sentry-element":"DialogPrimitive.Description","data-sentry-component":"DialogDescription","data-sentry-source-file":"dialog.tsx"})}},28518:(e,t,n)=>{n.d(t,{Du:()=>l,Ec:()=>i,bb:()=>m,jA:()=>p,t_:()=>E,x8:()=>u});let a={CASE_CREATED:"NEW CASE",OFFENSE_CREATED:"NEW OFFENSE",CASE_COMMENT_ADDED:"NEW COMMENT"};function r(e){var t,n,a,r;for(let o of[null==(t=e.metadata)?void 0:t.referenceId,null==(n=e.metadata)?void 0:n.reference_id,null==(a=e.metadata)?void 0:a.alertId,null==(r=e.metadata)?void 0:r.alert_id])if(null!=o&&String(o).trim())return String(o).trim()}function o(e){var t,n,a;return!!(null!=(a=null==(t=e.metadata)?void 0:t.isReply)?a:null==(n=e.metadata)?void 0:n.parentCommentId)}function i(e){var t,n,i;if("CASE_COMMENT_ADDED"===e.eventType){let n=r(e),a=o(e)?"NEW REPLY":"NEW COMMENT";return{headline:n?"".concat(a,": ").concat(n):a,metadata:null!=(t=e.message)?t:void 0}}let s=a[e.eventType];return s?{headline:"".concat(s,": ").concat(e.title),metadata:null!=(n=e.message)?n:void 0}:{headline:e.title||"New notification",metadata:null!=(i=e.message)?i:void 0}}let s={CASE_CREATED:e=>{var t,n;return{title:"New case added",description:null!=(n=null!=(t=e.title)?t:e.message)?n:void 0}},OFFENSE_CREATED:e=>{var t,n;return{title:"New offense added",description:null!=(n=null!=(t=e.title)?t:e.message)?n:e.entityId?"Offense ".concat(e.entityId):void 0}},CASE_COMMENT_ADDED:e=>{let t=r(e);return{title:o(e)?"New reply on case":"New comment on case",description:t}}};function l(e){var t;let n=s[e.eventType];return n?n(e):{title:e.title||"New notification",description:null!=(t=e.message)?t:void 0}}let d={CASE_CREATED:"/soar/caseManagement",CASE_COMMENT_ADDED:"/soar/caseManagement",OFFENSE_CREATED:"/offenses"},c={case:"/soar/caseManagement",offense:"/offenses"};function u(e){var t,n,a,r;let o=null!=(n=d[e.eventType])?n:c[null==(t=e.entityType)?void 0:t.toLowerCase()];if(!o)return null;let i=new URLSearchParams;if(e.entityId)if("/soar/caseManagement"===o){let t="CASE_COMMENT_ADDED"===e.eventType?String(null!=(r=null==(a=e.metadata)?void 0:a.caseId)?r:e.entityId):e.entityId;i.set("caseId",t)}else"/offenses"===o&&i.set("offenseId",e.entityId);e.tenantId&&i.set("tenantId",e.tenantId);let s=i.toString();return s?"".concat(o,"?").concat(s):o}async function f(e){let t=await e.json();if(!e.ok)throw Error((null==t?void 0:t.message)||"Request failed");return t.data}async function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=await fetch("/api/notifications?limit=".concat(e,"&offset=").concat(t),{credentials:"include",cache:"no-store"}),a=await f(n),r=Array.isArray(a)?a:Array.isArray(null==a?void 0:a.notifications)?a.notifications:[];return{notifications:r,hasMore:Array.isArray(a)?r.length===e:!!(null==a?void 0:a.hasMore)}}async function p(){let e=await fetch("/api/notifications/unread-count",{credentials:"include",cache:"no-store"});return(await f(e)).count}async function E(){return f(await fetch("/api/notifications/read-all",{method:"PATCH",credentials:"include"}))}}
1,36162:(e,t,n)=>{n.d(t,{Z:()=>c,i:()=>u});let a=0,r=null,o=!1,i=!1;function s(){return r||((r=new Audio("/alert-sound.ogg")).preload="auto"),r}function l(){if(o)return;let e=s();e&&(e.muted=!0,e.play().then(()=>{e.pause(),e.currentTime=0,e.muted=!1,o=!0}).catch(()=>{e.muted=!1}))}function d(){if(i)return;i=!0;let e=()=>{l()};window.addEventListener("pointerdown",e),window.addEventListener("keydown",e),window.addEventListener("touchstart",e)}function c(){s(),d(),l()}function u(){let e=Date.now();if(!(e-a<400)){a=e;try{let e=s();if(!e)return;e.currentTime=0,e.play().catch(()=>{d()})}catch(e){}}}},37604:(e,t,n)=>{n.d(t,{p:()=>C,E:()=>D});var a=n(95155),r=n(12115),o=n(31376),i=n(28518),s=n(22980);let l=["Case Management","Offense"],d={CASE_CREATED:"Case Management",CASE_COMMENT_ADDED:"Case Management",OFFENSE_CREATED:"Offense"},c={CASE_CREATED:"CASE_CREATED",caseCreated:"CASE_CREATED",CASE_COMMENT_ADDED:"CASE_COMMENT_ADDED",caseCommentAdded:"CASE_COMMENT_ADDED",OFFENSE_CREATED:"OFFENSE_CREATED",offenseCreated:"OFFENSE_CREATED"};function u(e){return String(e||"").trim().toLowerCase()}function f(e){var t;let n=String(e||"").trim();return null!=(t=c[n])?t:n}function m(e,t){let n=u(t);return!!e.has(n)||("offense"===n?[...e].some(e=>e.includes("offense")):"case management"===n&&[...e].some(e=>e.includes("case management")))}function p(e){return new Set((e||[]).map(e=>u(e)).filter(Boolean))}function E(e){let t=p(e);return 0!==t.size&&l.some(e=>m(t,e))}var v=n(36162),y=n(11349),g=n(34686);let w=(0,r.createContext)(null);function D(){let e=(0,r.useContext)(w);if(!e)throw Error("useNotifications must be used within NotificationProvider");return e}function C(e){let{children:t}=e,{user:n,isLoading:l}=(0,s.J)()||{},c=E(null==n?void 0:n.licenses),[u,D]=(0,r.useState)([]),[C,x]=(0,r.useState)(0),[h,A]=(0,r.useState)(!1),[S,b]=(0,r.useState)(!1),[T,_]=(0,r.useState)(!1),[M,N]=(0,r.useState)(()=>new Set),O=(0,r.useRef)(null),R=(0,r.useRef)(C),I=(0,r.useRef)(null),j=(0,r.useRef)(new Map),F=(0,r.useRef)(null),k=(0,r.useRef)(!1),P=(0,r.useRef)([]),L=(0,r.useRef)(null),z=(0,r.useRef)(new Map),K=(0,r.useRef)(new Map),H=(0,r.useCallback)(()=>{I.current&&(clearTimeout(I.current),I.current=null),F.current&&(clearTimeout(F.current),F.current=null),L.current&&(clearTimeout(L.current),L.current=null),P.current=[],z.current=new Map,K.current=new Map,k.current=!1,D([]),x(0),_(!1),b(!1),N(new Set),A(!1)},[]);(0,r.useEffect)(()=>{R.current=C},[C]);let J=(0,r.useCallback)(e=>(function(e,t){if(!E(e))return!1;let n=d[f(t)];return!n||m(p(e),n)})(null==n?void 0:n.licenses,f(e.eventType)),[null==n?void 0:n.licenses]),U=(0,r.useCallback)(async()=>{try{let e=await (0,i.jA)();x(e)}catch(e){console.error("[Notifications] Failed to load unread count:",e)}},[]),W=(0,r.useCallback)(()=>{F.current&&clearTimeout(F.current),F.current=setTimeout(()=>{F.current=null,U()},400)},[U]),q=(0,r.useCallback)(async()=>{if(!(null==n?void 0:n.userId)||!c){j.current=new Map;return}j.current=await (0,y.Pv)((0,g.j$)(n))},[c,n]),G=(0,r.useCallback)((e,t)=>{var n,a;if(!J(e))return;let r=String(e.id||"").trim();if(!r)return;let s=null!=(n=e.eventKey)?n:"",l="OFFENSE_CREATED"===f(e.eventType),d=f(e.eventType),c="CASE_CREATED"===d||"CASE_COMMENT_ADDED"===d,u=l&&s&&(()=>{let e=z.current.get(s);return"number"==typeof e&&Date.now()-e<=6e4})(),m=c&&s&&(()=>{let e=K.current.get(s);return"number"==typeof e&&Date.now()-e<=6e4})();if(u||m)return;let p={...e,eventType:f(e.eventType),isRead:!1,readAt:null,eventKey:s,sourceTopic:null!=(a=e.sourceTopic)?a:null};if(D(e=>{let t=e.findIndex(e=>e.id===r||p.eventKey&&e.eventKey===p.eventKey);if(t>=0){let n=e[t],a={...n,...p,id:n.id||r,isRead:!1,readAt:null},o=[...e];return o.splice(t,1),[a,...o]}return[p,...e]}),c&&s){let e=Date.now();for(let[t,n]of(K.current.set(s,e),K.current.entries()))e-n>6e4&&K.current.delete(t)}if(null==t?void 0:t.skipToast)return;W(),(0,y.y$)(j.current,e);let E=(0,i.Du)(e);o.toast.info(E.title,{id:l?"offense-created-".concat(s||r):"".concat(r,"-").concat(Date.now()),description:E.description})},[W,J]),Z=(0,r.useCallback)(e=>{let t=Date.now(),n=z.current;
1for(let[a,r]of(e.forEach(e=>{e&&n.set(e,t)}),n.entries()))t-r>6e4&&n.delete(a)},[]),$=(0,r.useCallback)(()=>{L.current=null;let e=P.current.splice(0);if(0===e.length)return;let t=e.length>=15?[function(e,t){let n="OFFENSE_CREATED_BULK:".concat(t.tenantId,":").concat(Date.now());return{id:n,tenantId:t.tenantId,eventType:"OFFENSE_CREATED",entityType:"offense",entityId:t.entityId,title:"".concat(e," new offenses added"),message:t.title?"".concat(t.title).concat(e>1?" and ".concat(e-1," more"):""):"Multiple offenses were created.",severity:t.severity,sourceTopic:null,eventKey:n,createdAt:new Date().toISOString(),readAt:null,isRead:!1}}(e.length,e[0])]:e;if(Z(e.map(e=>e.eventKey)),D(e=>{let n=[...e];for(let e of t){let t=String(e.id||"").trim();if(!t)continue;let a=n.findIndex(n=>n.id===t||e.eventKey&&n.eventKey===e.eventKey);if(a>=0){let r=n[a],o={...r,...e,id:r.id||t,isRead:!1,readAt:null};n.splice(a,1),n=[o,...n]}else n=[e,...n]}return n}),W(),t.length>0&&(0,y.y$)(j.current,t[0]),1===e.length){let e=(0,i.Du)(t[0]);o.toast.info(e.title,{id:"offense-created-".concat(t[0].eventKey||t[0].id),description:e.description})}else{var n;let t=(null==(n=e[0])?void 0:n.title)||"New offenses";o.toast.info("".concat(e.length," new offenses added"),{id:"offense-batch-".concat(Date.now()),description:"".concat(t).concat(e.length>1?" and ".concat(e.length-1," more"):"")})}},[Z,W]),B=(0,r.useCallback)(e=>{e.entityId&&e.tenantId&&(P.current.push(e),L.current||(L.current=setTimeout(()=>{$()},1200)))},[$]),Y=(0,r.useRef)(B);(0,r.useEffect)(()=>{Y.current=B},[B]);let V=(0,r.useCallback)(e=>{c&&G(e)},[G,c]),Q=(0,r.useCallback)(async()=>{A(!0);try{let e=await (0,i.bb)(100,0);D(e.notifications),_(e.hasMore),k.current=!0}catch(e){console.error("[Notifications] Failed to load notifications:",e)}finally{A(!1)}},[]),X=(0,r.useCallback)(async()=>{if(!S&&T){b(!0);try{let e=u.length,t=await (0,i.bb)(100,e);D(e=>{let n=new Set(e.map(e=>e.id)),a=[...e];for(let e of t.notifications)n.has(e.id)||a.push(e);return a}),_(t.hasMore)}catch(e){console.error("[Notifications] Failed to load more notifications:",e)}finally{b(!1)}}},[T,S,u.length]),ee=(0,r.useCallback)(async()=>{if(0===R.current)return;let e=[];
1if(D(t=>(e=t.filter(e=>!e.isRead).map(e=>e.id),t)),0!==e.length){N(new Set(e)),x(0);try{await (0,i.t_)(),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{let t=new Date().toISOString();D(n=>n.map(n=>e.includes(n.id)?{...n,isRead:!0,readAt:t}:n)),N(new Set),I.current=null},3e3)}catch(e){N(new Set),console.error("[Notifications] Failed to mark all as read:",e),o.toast.error("Could not update notification read state"),U()}}},[U]),et=(0,r.useCallback)(async()=>{k.current||await Q(),await ee()},[ee,Q]);(0,r.useEffect)(()=>{if(!l){if(!(null==n?void 0:n.userId)||!c){j.current=new Map,H();return}(0,v.Z)(),q(),U()}},[n,null==n?void 0:n.userId,l,c,H,q,U]),(0,r.useEffect)(()=>{if(!c)return;let e=()=>{q()};return window.addEventListener(y.OH,e),()=>{window.removeEventListener(y.OH,e)}},[c,q]),(0,r.useEffect)(()=>{if(l||!(null==n?void 0:n.userId)||!c)return;let e=new EventSource("/api/notifications/stream");O.current=e;let t=e=>{try{let t=JSON.parse(e.data);if(!J(t))return;if("OFFENSE_CREATED"===f(t.eventType))return void Y.current(t);G(t)}catch(e){console.error("[Notifications] Failed to parse realtime event:",e)}},a=()=>{q()};return e.addEventListener("new-notification",t),e.addEventListener("sound-settings-changed",a),e.onerror=e=>{console.error("[Notifications] SSE error:",e)},()=>{e.removeEventListener("new-notification",t),e.removeEventListener("sound-settings-changed",a),e.close(),O.current=null}},[n,null==n?void 0:n.userId,l,c,G,J,q]),(0,r.useEffect)(()=>()=>{I.current&&clearTimeout(I.current)},[]);let en=(0,r.useMemo)(()=>({notifications:u,unreadCount:C,isLoading:h,isLoadingMore:S,hasMoreNotifications:T,isAuthorized:c,fadingNotificationIds:M,refreshNotifications:Q,loadMoreNotifications:X,refreshUnreadCount:U,markAllRead:ee,onBellOpen:et,pushLiveNotification:V}),[u,C,h,S,T,c,M,Q,X,U,ee,et,V]);return(0,a.jsx)(w.Provider,{value:en,"data-sentry-element":"NotificationContext.Provider","data-sentry-component":"NotificationProvider","data-sentry-source-file":"NotificationContext.tsx",children:t})}},37911:(e,t,n)=>{n.d(t,{a:()=>d});var a=n(95155);n(12115);var r=n(22215),o=n(76152),i=n(58805),s=n(72226),l=n(45981);let d=e=>{let{heading:t,showClose:n=!0,open:d,onOpenChange:c,className:u="min-w-[400px]",children:f,scope:m}=e,{t:p}=(0,l.ok)();return(0,a.jsx)(r.lG,{open:d,onOpenChange:c,"data-sentry-element":"Dialog","data-sentry-component":"Modal","data-sentry-source-file":"Modal.tsx",children:(0,a.jsxs)(r.Cf,{onInteractOutside:e=>e.preventDefault(),className:"max-h-[90vh] max-w-[90vw] border border-[var(--modal-border)] bg-[var(--modal-background)] ".concat(u),"data-sentry-element":"DialogContent","data-sentry-source-file":"Modal.tsx",children:[(0,a.jsxs)(r.c7,{className:"flex flex-row items-center justify-between","data-sentry-element":"DialogHeader","data-sentry-source-file":"Modal.tsx",children:[(0,a.jsx)(r.L3,{className:"text-lg font-semibold text-[var(--primary)]","data-sentry-element":"DialogTitle","data-sentry-source-file":"Modal.tsx",children:p(t,m)}),(0,a.jsx)(r.HM,{asChild:!0,"data-sentry-element":"DialogClose","data-sentry-source-file":"Modal.tsx",children:(0,a.jsx)("button",{"aria-label":"Close modal",className:"cursor-pointer text-gray-400 hover:text-white",children:(0,a.jsx)(i.A,{className:"size-5",color:"var(--primary)","data-sentry-element":"IconX","data-sentry-source-file":"Modal.tsx"})})})]}),(0,a.jsx)(o.w,{"data-sentry-element":"Separator","data-sentry-source-file":"Modal.tsx"}),(0,a.jsx)(s.F,{className:"max-h-[calc(90vh-120px)]","data-sentry-element":"ScrollArea","data-sentry-source-file":"Modal.tsx",children:(0,a.jsx)("div",{className:"mx-auto w-full max-w-[80vw] overflow-x-auto",children:(0,a.jsx)("div",{className:"text-white",children:f})})})]})})}},51588:(e,t,n)=>{n.d(t,{I:()=>m,SQ:()=>f,_2:()=>p,hO:()=>E,lp:()=>v,mB:()=>y,rI:()=>c,ty:()=>u});var a=n(95155),r=n(12115),o=n(96703),i=n(94514),s=n(40980),l=n(45981);let d="socbyte:dropdown-open";function c(e){var t,n;let i=r.useId(),s=void 0!==e.open,[l,c]=r.useState(null!=(n=null!=(t=e.open)?t:e.defaultOpen)&&n),u=s?e.open:l;return r.useEffect(()=>{let t=t=>{if(t.detail!==i)if(s){var n;null==(n=e.onOpenChange)||n.call(e,!1)}else c(!1)};return window.addEventListener(d,t),()=>window.removeEventListener(d,t)},[i,s,e]),(0,a.jsx)(o.bL,{"data-slot":"dropdown-menu",...e,open:u,onOpenChange:t=>{var n;t&&window.dispatchEvent(new CustomEvent(d,{detail:i})),s||c(t),null==(n=e.onOpenChange)||n.call(e,t)},"data-sentry-element":"DropdownMenuPrimitive.Root","data-sentry-component":"DropdownMenu","data-sentry-source-file":"dropdown-menu.tsx"})}function u(e){let{...t}=e;return(0,a.jsx)(o.l9,{"data-slot":"dropdown-menu-trigger",...t,"data-sentry-element":"DropdownMenuPrimitive.Trigger","data-sentry-component":"DropdownMenuTrigger","data-sentry-source-file":"dropdown-menu.tsx"})}function f(e){let{className:t,sideOffset:n=4,...r}=e;return(0,a.jsx)(o.ZL,{"data-sentry-element":"DropdownMenuPrimitive.Portal","data-sentry-component":"DropdownMenuContent","data-sentry-source-file":"dropdown-menu.tsx",children:(0,a.jsx)(o.UC,{"data-slot":"dropdown-menu-content",sideOffset:n,className:(0,s.cn)("bg-muted text-popover-foreground 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]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...r,"data-sentry-element":"DropdownMenuPrimitive.Content","data-sentry-source-file":"dropdown-menu.tsx"})})}function m(e){let{...t}=e;return(0,a.jsx)(o.YJ,{"data-slot":"dropdown-menu-group",...t,"data-sentry-element":"DropdownMenuPrimitive.Group","data-sentry-component":"DropdownMenuGroup","data-sentry-source-file":"dropdown-menu.tsx"})}function p(e){let{className:t,inset:n,variant:r="default",children:i,...d}=e,c=(0,l.R_)();return(0,a.jsx)(o.q7,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":r,className:(0,s.cn)("hover:!bg-primary/30 focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex !cursor-pointer cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...d,"data-sentry-element":"DropdownMenuPrimitive.Item","data-sentry-component":"DropdownMenuItem","data-sentry-source-file":"dropdown-menu.tsx",children:c(i)})}function E(e){let{className:t,children:n,checked:r,...d}=e,c=(0,l.R_)();return(0,a.jsxs)(o.H_,{"data-slot":"dropdown-menu-checkbox-item",className:(0,s.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:r,...d,"data-sentry-element":"DropdownMenuPrimitive.CheckboxItem","data-sentry-component":"DropdownMenuCheckboxItem","data-sentry-source-file":"dropdown-menu.tsx",children:[(0,a.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(o.VF,{"data-sentry-element":"DropdownMenuPrimitive.ItemIndicator","data-sentry-source-file":"dropdown-menu.tsx",children:(0,a.jsx)(i.A,{className:"size-4","data-sentry-element":"CheckIcon","data-sentry-source-file":"dropdown-menu.tsx"})})}),c(n)]})}function v(e){let{className:t,inset:n,children:r,...i}=e,d=(0,l.R_)();return(0,a.jsx)(o.JU,{"data-slot":"dropdown-menu-label","data-inset":n,className:(0,s.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...i,"data-sentry-element":"DropdownMenuPrimitive.Label","data-sentry-component":"DropdownMenuLabel","data-sentry-source-file":"dropdown-menu.tsx",children:d(r)})}function y(e){let{className:t,...n}=e;return(0,a.jsx)(o.wv,{"data-slot":"dropdown-menu-separator",className:(0,s.cn)("-mx-1 my-1 h-px bg-gray-500",t),...n,"data-sentry-element":"DropdownMenuPrimitive.Separator","data-sentry-component":"DropdownMenuSeparator","data-sentry-source-file":"dropdown-menu.tsx"})}}}]);

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.