1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f6f822f8-0d81-4bd6-99b6-ecea23579324",e._sentryDebugIdIdentifier="sentry-dbid-f6f822f8-0d81-4bd6-99b6-ecea23579324")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5344],{12132:(e,t,a)=>{a.d(t,{p:()=>n});var r=a(65892),s=a(45320),i=a(65191);let n=s.forwardRef(({className:e,type:t,...a},s)=>(0,r.jsx)("input",{type:t,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...a}));n.displayName="Input"},15019:(e,t,a)=>{a.d(t,{RadioGroup:()=>d,RadioGroupItem:()=>l});var r=a(65892),s=a(45320),i=a(59109),n=a(15172),o=a(65191);let d=s.forwardRef(({className:e,...t},a)=>(0,r.jsx)(i.bL,{className:(0,o.cn)("grid gap-2",e),...t,ref:a}));d.displayName=i.bL.displayName;let l=s.forwardRef(({className:e,...t},a)=>(0,r.jsx)(i.q7,{ref:a,className:(0,o.cn)("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:(0,r.jsx)(i.C1,{className:"flex items-center justify-center",children:(0,r.jsx)(n.A,{className:"h-2.5 w-2.5 fill-current text-current"})})}));l.displayName=i.q7.displayName},16985:(e,t,a)=>{a.d(t,{f:()=>r});function r(e){if(!e)return"";let t=e.toLowerCase().trim();return(t=(t=(t=t.replace(/&/g," and ")).replace(/\s+/g," ").trim()).replace(/[,.]?\s*\b(inc|llc|ltd|corp|co|pllc|llp|lllp|pa|pc)\b\.?$/,"")).replace(/[.,\s]+$/,"").trim()}},55274:(e,t,a)=>{a.d(t,{Ge:()=>l,x6:()=>u,xP:()=>c});var r=a(65892),s=a(82792),i=a(12132),n=a(97090),o=a(15019),d=a(16985);function l({value:e,onChange:t,existingOrgs:a,orgsLoading:l,allowCreate:c=!0,className:u}){let m="new"===e.mode?e.name:"",f="existing"===e.mode?e.id:"",g=(0,d.f)(m),p=g?a.filter(e=>(0,d.f)(e.name).includes(g)).slice(0,5):[],b=g?a.find(e=>(0,d.f)(e.name)===g)??null:null;return(0,r.jsx)("div",{className:u,children:(0,r.jsxs)(o.RadioGroup,{value:e.mode,onValueChange:e=>{"new"===e?t({mode:"new",name:m}):t({mode:"existing",id:f})},className:"space-y-2",children:[c&&(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.RadioGroupItem,{value:"new",id:"org-picker-new",className:"mt-0.5"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)(n.Label,{htmlFor:"org-picker-new",className:"text-sm text-foreground cursor-pointer",children:"Create a new organization"}),"new"===e.mode&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.p,{id:"org-picker-new-name",placeholder:"Acme Construction",value:m,onChange:e=>t({mode:"new",name:e.target.value}),className:"bg-gray-800 border-gray-700 text-foreground"}),b?(0,r.jsxs)("div",{className:"rounded-md border border-amber-500/40 bg-amber-500/10 p-2 text-xs text-amber-200",children:["An organization named"," ",(0,r.jsx)("span",{className:"font-semibold",children:b.name})," ",'already exists. Use "Add to an existing organization" to invite this person into it instead of creating a duplicate.',(0,r.jsxs)(s.$,{type:"button",variant:"outline",size:"sm",className:"mt-2 h-7 border-amber-500/50 bg-transparent text-amber-100 hover:bg-amber-500/10",onClick:()=>t({mode:"existing",id:b.id}),children:["Use existing ",b.name]})]}):p.length>0?(0,r.jsxs)("div",{className:"rounded-md border border-gray-700 bg-gray-950/40 p-2 text-xs text-gray-300",children:[(0,r.jsx)("p",{className:"mb-1 text-gray-400",children:"Similar organizations already exist. Click one to use it instead."}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:p.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>t({mode:"existing",id:e.id}),className:"rounded-md border border-gray-700 bg-gray-800 px-2 py-1 text-xs text-gray-200 hover:border-blue-500 hover:text-foreground",children:e.name},e.id))})]}):null]})]})]}),(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.RadioGroupItem,{value:"existing",id:"org-picker-existing",className:"mt-0.5",disabled:0===a.length}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)(n.Label,{htmlFor:"org-picker-existing",className:"text-sm text-foreground cursor-pointer",children:c?"Add to an existing organization":"Organization"}),"existing"===e.mode&&(0,r.jsxs)("select",{value:f,onChange:e=>t({mode:"existing",id:e.target.value}),disabled:l,className:"w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:opacity-50",children:[(0,r.jsx)("option",{value:"",children:l?"Loading organizationsâ¦":"Select an organization"}),a.map(e=>(0,r.jsx)("option",{value:e.id,children:e.name},e.id))]})]})]})]})})}function c(e){return"new"===e.mode?e.name.trim().length>0:e.id.length>0}function u(e,t){if("new"!==e.mode)return null;let a=(0,d.f)(e.name);return a?t.find(e=>(0,d.f)(e.name)===a)??null:null}},81284:(e,t,a)=>{a.d(t,{oR:()=>l}),a(45320);let r=0,s=new Map,i=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},n=[],o={toasts:[]};function d(e){o=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;
1return a?i(a):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(o,e),n.forEach(e=>{e(o)})}function l({...e}){let t=(r=(r+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:t});return d({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||a()}}}),{id:t,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:t}})}}},97090:(e,t,a)=>{a.d(t,{Label:()=>l});var r=a(65892),s=a(45320),i=a(23670),n=a(78776),o=a(65191);let d=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=s.forwardRef(({className:e,...t},a)=>(0,r.jsx)(i.b,{ref:a,className:(0,o.cn)(d(),e),...t}));l.displayName=i.b.displayName}}]);
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.