1!function(){try{var 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]="c4925aac-8d79-49c9-8ce0-e5548eaed3eb",e._sentryDebugIdIdentifier="sentry-dbid-c4925aac-8d79-49c9-8ce0-e5548eaed3eb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96385],{3914:(e,t,r)=>{r.d(t,{A:()=>m});var s=r(95155),a=r(12115),l=r(9779),i=r(10195),n=r(45953),o=r(59963);let d=e=>{let t=e.data||{};return(0,s.jsx)(n.c.Option,{...e,children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(o.Ay,{user:{fileS3Id:t.icon,firstName:t.firstName,lastName:t.lastName,emailAddress:t.value},size:"xs"}),(0,s.jsx)("span",{className:"truncate",children:t.label})]})})};var c=r(12103),u=r(70631);let m=e=>{let{teamMembers:t,value:r,onChange:n,isMulti:o=!1,isClearable:m=!0,placeholder:x="Search and select",className:h,classNamePrefix:p="attn-select",inputId:f,name:g,menuPlacement:b="auto",maxMenuHeight:j,isDisabled:v}=e,y=a.useMemo(()=>(0,u.ct)(t||[])||[],[t]),w=(r||[]).map(e=>y.find(t=>t.value===e)||{value:e,label:e}),N=o||0===w.length,k=o?y.filter(e=>!(r||[]).includes(e.value)):y;return(0,s.jsxs)("div",{className:"space-y-2",children:[w.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:w.map(e=>(0,s.jsx)(c.A,{user:(e=>({fileS3Id:e?.icon,firstName:e?.firstName,lastName:e?.lastName,emailAddress:e?.value}))(e),name:e.label,onRemove:v?void 0:()=>{let t;return t=e.value,n((r||[]).filter(e=>e!==t))}},e.value))}),N&&(0,s.jsx)(l.Ay,{inputId:f,name:g,isMulti:!1,isClearable:m,isDisabled:v,options:k,value:null,onChange:e=>{o?e&&n(Array.from(new Set([...r||[],e.value]))):n(e?[e.value]:[])},placeholder:x,styles:i.M,components:{Option:d,IndicatorSeparator:()=>null},classNamePrefix:p,className:h,menuPortalTarget:"undefined"!=typeof document?document.body:void 0,menuPosition:"fixed",menuPlacement:b,maxMenuHeight:j})]})}},8068:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(12115),a=r(51047);let l=()=>{let{isDemo:e,promptSignup:t}=(0,a.z)(),r=(0,s.useCallback)(r=>!!e&&(t(r),!0),[e,t]);return{isDemo:e,guard:r}}},10195:(e,t,r)=>{r.d(t,{M:()=>a});let s=()=>"undefined"!=typeof document&&document.documentElement.classList.contains("dark"),a={control:e=>({...e,backgroundColor:s()?"var(--color-dark-3)":"var(--color-light-2)",border:s()?"1px solid var(--color-dark-4)":"1px solid var(--color-light-3)",borderRadius:"0.5rem",minHeight:"40px",boxShadow:"none"}),dropdownIndicator:e=>({...e,display:"flex",color:s()?"var(--color-light-0)":"var(--color-dark-4)",paddingRight:"8px"}),indicatorsContainer:e=>({...e,display:"flex"}),placeholder:e=>({...e,color:s()?"var(--color-light-0)":"var(--color-light-5)",fontSize:"14px"}),singleValue:e=>({...e,color:s()?"var(--color-light-0)":"var(--color-dark-4)",fontSize:"14px"}),multiValue:e=>({...e,backgroundColor:"var(--color-light-2)",borderRadius:"4px"}),multiValueLabel:e=>({...e,color:s()?"var(--color-light-0)":"var(--color-dark-4)",fontSize:"14px"}),multiValueRemove:e=>({...e,display:"none"}),menu:e=>({...e,borderRadius:12,boxShadow:"var(--shadow-card-2)",backgroundColor:s()?"color-mix(in srgb, var(--color-dark-1) 80%, transparent)":"color-mix(in srgb, var(--color-light-1) 80%, transparent)",backdropFilter:"blur(12px) saturate(150%)",border:s()?"1px solid var(--color-dark-4)":"1px solid var(--color-light-3)",overflow:"hidden"}),menuList:e=>({...e,paddingTop:0,paddingBottom:0,backgroundColor:"transparent"}),option:(e,t)=>({...e,backgroundColor:t.isFocused?s()?"var(--color-dark-3)":"var(--color-light-4)":"transparent",color:s()?"var(--color-light-0)":"var(--color-dark-2)",fontSize:"14px"}),menuPortal:e=>({...e,zIndex:1e4})}},12103:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(95155);r(12115);var a=r(43569),l=r(75889),i=r(59963);let n=e=>{let{user:t,name:r,onRemove:n,onClick:o,showAvatar:d=!0,title:c,className:u=""}=e,m=(0,l.QP)("inline-flex items-center gap-1.5 rounded-full border border-light-3 dark:border-dark-4 bg-light-2 dark:bg-dark-2 py-0.5 text-sm font-semibold text-dark-3 dark:text-light-2 transition-colors",d?"pl-0.5":"pl-2.5",n?"pr-1.5":"pr-3",o?"cursor-pointer hover:border-purple hover:text-purple dark:hover:border-yellow dark:hover:text-yellow":"",u),x=(0,s.jsxs)(s.Fragment,{children:[d&&(0,s.jsx)(i.Ay,{user:t,name:r,size:"xs"}),(0,s.jsx)("span",{className:"truncate max-w-40",children:r}),n&&(0,s.jsx)("button",{type:"button","aria-label":`Remove ${r||"user"}`,onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-dark-5 transition-colors hover:bg-light-4 hover:text-red-1 dark:text-light-5 dark:hover:bg-dark-4 dark:hover:text-red-2",children:(0,s.jsx)(a.A,{className:"h-3 w-3"})})]});return o&&!n?(0,s.jsx)("button",{type:"button",title:c,onClick:o,className:m,children:x}):(0,s.jsx)("span",{onClick:o,title:c,className:m,children:x})}},26487:(e,t,r)=>{r.d(t,{LK:()=>a,Td:()=>l,sl:()=>s});let s=["text","comment","radiogroup","checkbox","dropdown","imagepicker","rating","matrix","multipletext"],a="other",l=e=>`${e}-Comment`},27107:(e,t,r)=>{r.d(t,{WX:()=>l,Wo:()=>i,_t:()=>s,rK:()=>a});let s=/(https?:\/\/[^\s<]+)/gi,a=e=>e.replace(/[.,;:!?)\]}>"']+$/,""),l=e=>(e=>{let t;if(!e)return[];let r=new RegExp(s),l=[];for(;null!==(t=r.exec(e));)l.push(a(t[0]));return l})(e)[0],i=e=>{try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}}},32068:(e,t,r)=>{r.d(t,{A:()=>
1o});var s=r(95155),a=r(12115),l=r(43569),i=r(2371);let n=(0,a.forwardRef)((e,t)=>{let{variant:r="default",iconClassName:a="size-5",...n}=e;return(0,s.jsx)(i.Ay,{ref:t,...n,variant:r,"aria-label":n["aria-label"]||"Close",icon:(0,s.jsx)(l.A,{className:a})})});n.displayName="CloseButton";let o=n},54099:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(95155);r(12115);let a=e=>(0,s.jsxs)("svg",{viewBox:"0 0 48 48",width:"20",height:"20","aria-hidden":"true",...e,children:[(0,s.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,s.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,s.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,s.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})},56846:(e,t,r)=>{r.d(t,{Ht:()=>i,LS:()=>a,iR:()=>l});let s="idcTabHandoff",a=e=>{if(e?.file)try{sessionStorage.setItem(s,JSON.stringify(e))}catch{}},l=()=>{try{let e=sessionStorage.getItem(s);if(!e)return null;sessionStorage.removeItem(s);let t=JSON.parse(e);if(!t||"object"!=typeof t)return null;return t}catch{return null}},i=()=>{try{sessionStorage.removeItem(s)}catch{}}},60615:(e,t,r)=>{r.d(t,{$n:()=>m,CF:()=>j,HN:()=>x,LS:()=>h,M5:()=>b,Mx:()=>f,Re:()=>c,WY:()=>a,_$:()=>g,fZ:()=>p,hQ:()=>d,iA:()=>i,pz:()=>l,yS:()=>n,yf:()=>u});var s=r(26487);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("string"==typeof e)return e;if(e&&"object"==typeof e){if("string"==typeof e.default)return e.default;let t=Object.values(e).find(e=>"string"==typeof e);if("string"==typeof t)return t}return t}function l(e){if("number"==typeof e)return{value:String(e),text:String(e),raw:e};if("string"==typeof e){let t=e.indexOf("|");if(t>-1){let r=e.slice(0,t);return{value:r,text:e.slice(t+1)||r,raw:r}}return{value:e,text:e,raw:e}}if(e&&"object"==typeof e){let t=void 0===e.value?"":e.value,r=String(t);return{value:r,text:a(e.text,r),raw:t,...e.imageLink?{imageLink:String(e.imageLink)}:{}}}return{value:"",text:"",raw:""}}function i(e){return Array.isArray(e)?e.filter(e=>null!=e).map(l).filter(e=>""!==e.value||""!==e.text):[]}function n(e){if(!e||"object"!=typeof e)return[];let t=e.pages;if(Array.isArray(t)){let e=t[0]?.elements;return Array.isArray(e)?e.filter(o):[]}let r=e.elements;return Array.isArray(r)?r.filter(o):[]}function o(e){return!!e&&"object"==typeof e&&"string"==typeof e.type}function d(e){return e&&"object"==typeof e?a(e.title):""}function c(e){return e&&"object"==typeof e?a(e.description):""}function u(e){if(!e||"object"!=typeof e)return"";let t=e.logo;return"string"==typeof t?t:""}function m(e){return s.sl.includes(e)}function x(e,t){return a(e.title)||e.name||`Question ${t+1}`}function h(e){let t=new Set(e),r=1;for(;t.has(`question${r}`);)r++;return`question${r}`}function p(e){if(!e||"object"!=typeof e)return{closed:!1};let t="string"==typeof e.dueDate&&e.dueDate?e.dueDate:void 0,r="string"==typeof e.closedAt&&e.closedAt?e.closedAt:void 0,s=!!r;if(!s&&t){let e=new Date(`${t}T23:59:59.999`);!Number.isNaN(e.getTime())&&Date.now()>e.getTime()&&(s=!0)}return{dueDate:t,closedAt:r,closed:s}}function f(e){if(!e)return"";let t=new Date(10===e.length?`${e}T12:00:00`:e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})}function g(e){return a(e.minRateDescription??e.mininumRateDescription)}function b(e){return a(e.maxRateDescription??e.maximumRateDescription)}function j(e){if(Array.isArray(e.rateValues)&&e.rateValues.length>0){let t=i(e.rateValues).map(e=>Number(e.value)).filter(e=>Number.isFinite(e));if(t.length>0)return t.slice(0,10)}let t=Number.isFinite(Number(e.rateMin))&&void 0!==e.rateMin?Number(e.rateMin):1,r=Number.isFinite(Number(e.rateMax))&&void 0!==e.rateMax?Number(e.rateMax):NaN;if(!Number.isFinite(r)){let s=Number(e.rateCount);r=Number.isFinite(s)&&s>0?t+s-1:t+4}r<t&&(r=t),r-t>9&&(r=t+9);let s=[];for(let e=t;e<=r;e++)s.push(e);return s}},61210:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(95155),a=r(12115),l=r(78710),i=r(43569),n=r(6243),o=r(27107);let d=new Map,c=e=>{let{url:t,onRemove:r,className:c=""}=e,[u,m]=(0,a.useState)(d.get(t)??null),[x,h]=(0,a.useState)(!d.has(t)),[p,f]=(0,a.useState)(!1);(0,a.useEffect)(()=>
1{if(d.has(t)){m(d.get(t)||null),h(!1),f(!1);return}let e=!0;return h(!0),f(!1),fetch("/api/seo/fetch-og-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t})}).then(e=>e.json()).then(r=>{e&&(d.set(t,r),m(r),h(!1))}).catch(()=>{e&&(f(!0),h(!1))}),()=>{e=!1}},[t]);let g=(0,o.Wo)(t),b=!!(u&&(u.title||u.ogImage||u.description)),j="group relative block w-full max-w-md overflow-hidden rounded-xl border border-light-3 dark:border-dark-4 bg-light-0 dark:bg-dark-3";if(x)return(0,s.jsxs)("div",{className:`${j} ${c}`,children:[(0,s.jsx)(n.A,{className:"h-40 w-full rounded-none"}),(0,s.jsxs)("div",{className:"space-y-2 p-3",children:[(0,s.jsx)(n.A,{className:"h-3 w-1/3"}),(0,s.jsx)(n.A,{className:"h-4 w-3/4"}),(0,s.jsx)(n.A,{className:"h-3 w-full"})]})]});let v=p||!b?(0,s.jsxs)("div",{className:"flex items-center gap-3 p-3",children:[u?.faviconUrl?(0,s.jsx)("img",{src:u.faviconUrl,alt:"",className:"h-8 w-8 shrink-0 rounded"}):(0,s.jsx)(l.A,{className:"h-8 w-8 shrink-0 text-dark-5 dark:text-light-5"}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"truncate text-sm font-medium text-dark-2 dark:text-light-1",children:g}),(0,s.jsx)("p",{className:"truncate text-xs text-dark-5 dark:text-light-5",children:t})]})]}):(0,s.jsxs)(s.Fragment,{children:[u?.ogImage&&(0,s.jsx)("div",{className:"aspect-[1.91/1] w-full overflow-hidden bg-light-2 dark:bg-dark-2",children:(0,s.jsx)("img",{src:u.ogImage,alt:u.title||g,className:"h-full w-full object-cover",onError:e=>{e.currentTarget.style.display="none"}})}),(0,s.jsxs)("div",{className:"p-3",children:[(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[u?.faviconUrl&&(0,s.jsx)("img",{src:u.faviconUrl,alt:"",className:"h-3.5 w-3.5 shrink-0 rounded-sm"}),(0,s.jsx)("span",{className:"truncate text-xs text-dark-5 dark:text-light-5",children:g})]}),u?.title&&(0,s.jsx)("p",{className:"line-clamp-2 text-sm font-semibold text-dark-2 dark:text-light-1",children:u.title}),u?.description&&(0,s.jsx)("p",{className:"mt-0.5 line-clamp-2 text-xs text-dark-5 dark:text-light-5",children:u.description})]})]});return(0,s.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:`${j} transition-colors hover:border-light-4 dark:hover:border-dark-5 ${c}`,children:[r&&(0,s.jsx)("button",{type:"button","aria-label":"Remove link preview",onClick:e=>{e.preventDefault(),e.stopPropagation(),r()},className:"absolute right-2 top-2 z-10 flex h-6 w-6 items-center justify-center rounded-full bg-dark-0/50 text-light-0 transition-colors hover:bg-dark-0/70",children:(0,s.jsx)(i.A,{className:"h-4 w-4"})}),v]})}},84718:(e,t,r)=>{r.d(t,{A:()=>u,X:()=>c});var s=r(95155),a=r(12115),l=r(24108),i=r(58515),n=r(91208),o=r(54099);let d="idcolab://";function c(){return"undefined"!=typeof navigator&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}let u=e=>{let{projectId:t,onContinueInBrowser:r,onDismiss:u}=e,[m,x]=(0,a.useState)(!1),[h,p]=(0,a.useState)(null),[f,g]=(0,a.useState)(!1),b=(0,a.useRef)(null);if((0,a.useEffect)(()=>{if(c()){p(function(){if("undefined"==typeof navigator)return null;let e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)&&!/Android/.test(e)?"iOS":/Android/.test(e)?"Android":null}());let e=setTimeout(()=>x(!0),400);return()=>clearTimeout(e)}},[]),(0,a.useEffect)(()=>{if(!m)return;let e=window.scrollY,t=document.body;return t.style.overflow="hidden",t.style.position="fixed",t.style.top=`-${e}px`,t.style.width="100%",()=>{t.style.overflow="",t.style.position="",t.style.top="",t.style.width="",window.scrollTo({top:e,behavior:"instant"})}},[m]),(0,a.useEffect)(()=>()=>{b.current&&clearTimeout(b.current)},[]),!m)return null;let j=()=>{x(!1),u?.()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 z-2000 bg-dark-0/40",onClick:j}),(0,s.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-2001 animate-in slide-in-from-bottom duration-300",children:(0,s.jsxs)("div",{className:"bg-light-0 rounded-t-3xl shadow-2xl px-3 pt-5 pb-8",children:[(0,s.jsx)("div",{className:"w-10 h-1.5 bg-dark-6 rounded-full mx-auto mb-4"}),(0,s.jsx)("button",{onClick:j,className:"absolute top-4 right-4 p-1.5 rounded-full hover:bg-light-5 transition-colors","aria-label":"Close",children:(0,s.jsx)(l.A,{className:"w-5 h-5 text-dark-5"})}),(0,s.jsx)("h2",{className:"text-center text-[16px] font-bold text-dark-1 mb-1",children:"Open in IDColab App"}),(0,s.jsx)("p",{className:"text-center text-[13px] text-dark-5 mb-6",children:"Get the best experience with the mobile app"}),(0,s.jsxs)("button",{type:"button",onClick:()=>{g(!0);let e=t?`${d}project/${t}`:d;window.location.href=e,b.current=setTimeout(()=>{window.location.href="iOS"===h?"https://apps.apple.com/us/app/idcolab/id6714481177":"https://play.google.com/store/apps/details?id=com.idcolab"},1800);let r=()=>{b.current&&(clearTimeout(b.current),b.current=null),g(!1)};window.addEventListener("blur",r,{once:!0}),document.addEventListener("visibilitychange",()=>{document.hidden&&r()},{once:!0})},disabled:f,className:"flex items-center justify-between w-full px-2 py-3.5 mb-3 rounded-2xl border-2 border-yellow bg-yellow/10 hover:bg-yellow/20 transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-xl bg-light-0 flex items-center justify-center shrink-0",children:(0,s.jsx)("img",{src:i.xL,alt:"IDColab icon",className:"w-10 h-10 rounded-md object-contain"})}),(0,s.jsx)("div",{className:"text-left",children:(0,s.jsx)("p",{className:"text-[13px] font-bold text-dark-1 leading-tight",children:"IDColab App"})})]}),(0,s.jsx)("span",{className:"w-20 text-[10px] font-semibold text-center text-dark-2 bg-yellow py-1.5 rounded-full",children:f?"Openingâ¦":"Open"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{x(!1),r()},className:"flex items-center justify-between w-full px-2 py-3.5 mb-3 rounded-2xl border-2 border-light-6 bg-light-0 hover:bg-light-2 transition-colors cursor-pointer focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:`w-10 h-10 rounded-xl ${"iOS"===h?"bg-dark-0":"bg-light-0 border border-light-3"} flex items-center justify-center shrink-0`,children:"iOS"===h?(0,s.jsx)(n.A,{width:24,height:24,className:"text-light-0"}):(0,s.jsx)(o.A,{width:24,height:24})}),(0,s.jsx)("div",{className:"text-left",children:(0,s.jsx)("p",{className:"text-[13px] font-bold text-dark-1 leading-tight",children:"Browser"})})]}),(0,s.jsx)("span",{className:"w-20 text-[10px] font-semibold text-center text-dark-0 bg-light-0 py-1.5 rounded-full border border-dark-6",children:"Continue"})]})]})})]})}},91208:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(95155);r(12115);let a=e=>(0,s.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"
1currentColor","aria-hidden":"true",...e,children:(0,s.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})})},91543:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(95155);r(12115);let a=e=>{let{fill:t="screen",label:r="Loading..."}=e;return(0,s.jsx)("div",{className:`flex justify-center items-center ${"parent"===t?"absolute inset-0 w-full h-full":"h-screen"}`,children:(0,s.jsxs)("div",{role:"status",children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:"inline w-10 h-10 text-light-2 animate-spin dark:text-dark-5 fill-purple",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,s.jsx)("span",{className:"sr-only",children:r})]})})}},93866:(e,t,r)=>{r.r(t),r.d(t,{default:()=>eX});var s=r(95155),a=r(1213),l=r(15239),i=r(52619),n=r.n(i),o=r(12115),d=r(78028),c=r(64860),u=r(93925),m=r(12525),x=r(41715),h=r(10874),p=r(29545),f=r(66788),g=r(33922),b=r(20063),j=r(31166),v=r(10610),y=r(43569),w=r(15329),N=r(80155),k=r(48242),A=r(13853),C=r(70631),I=r(97412),S=r(36652),E=r(64269),P=r(52106),T=r(32068),D=r(74308),$=r(83430),z=r(70763),R=r(62843);let M=$.r,L=e=>{let{open:t,onClose:r}=e,l=(0,a.wA)(),i=(0,o.useRef)(null),[n,d]=(0,o.useState)(""),c=(0,N.d)(n,500),[u,m]=(0,o.useState)([]),[h,{isLoading:p}]=(0,w.j)(),{projects:f}=(0,a.d4)(e=>e.projects),{selectedProject:g}=(0,a.d4)(e=>e.project),b=g?.guid||"",[$,L]=(0,o.useState)("current"),F=b?$:"all",O=(0,a.d4)(e=>e.projects.userDetails),q=(0,E.dS)(O),[B]=(0,S.OD)();(0,o.useEffect)(()=>{t?setTimeout(()=>i.current?.focus(),50):(d(""),m([]),L("current"))},[t]),(0,o.useEffect)(()=>{let e=c.trim(),t="current"===F?[b]:f.map(e=>e.guid);if(!e||0===t.length)return void m([]);(async()=>{try{let r=await h({searchText:e,projectIds:t}).unwrap();m(r?.data||[])}catch{m([])}})()},[c,f,h,F,b]),(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return t&&window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,r]);let Q=async e=>{let t={projectId:e?.projectId,parentFolderId:e?.parentFolderId,userId:e?.userId,displayName:q,category:e?.category,docType:(e=>e?.fileType===I.xQ.PPT?I.xQ.PPT:e?.fileType===I.xQ.SHEET?I.xQ.SHEETTYPE:I.xQ.DOCTYPE)(e),docTypeDesc:(e=>e?.fileType===I.xQ.PPT?I.xQ.PPTTYPEDESC:e?.fileType===I.xQ.SHEET?I.xQ.SHEETTYPEDESC:I.xQ.DOCTYPEDESC)(e),newDoc:!1,fileName:e?.fileName,fileS3Id:e?.fileS3Id};try{let e=await B(t);if(e){let t=e?.data?e.data:e;window.open(t.document_url,"_blank")}}catch{}},Y=u.filter(e=>e?.resultType==="post"),_=u.filter(e=>e?.resultType!=="post"),V="flex w-full items-center gap-2 px-3 py-2 text-base text-left transition-colors rounded-lg cursor-pointer text-dark-1 dark:text-light-1 hover:bg-light-2 dark:hover:bg-dark-5",H="px-3 mb-3 text-base font-medium text-dark-1 dar
1k:text-light-0",U=(0,o.useMemo)(()=>{let e=new Map;if(Array.isArray(f))for(let t of f)t?.guid&&e.set(t.guid,t.projectName||"");return e},[f]),Z=e=>{let{projectName:t,category:r}=(e=>{let t=e?.category?String(e.category):"";return{projectName:U.get(e?.projectId)||"",category:t?M[t.toLowerCase()]||t:""}})(e);return t||r?(0,s.jsxs)("span",{className:"flex flex-wrap items-center mt-1 gap-1.5",children:[t&&(0,s.jsxs)(R.A,{tone:"accent",shape:"rounded",className:"gap-1 min-w-0 max-w-full",children:[(0,s.jsx)(v.A,{className:"size-3 shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:t})]}),r&&(0,s.jsx)(R.A,{tone:"neutral",shape:"rounded",children:r})]}):null},W=(e,t)=>(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",onClick:()=>(e=>{let t=[e].filter(C.u);l((0,k.Fo)(!0)),(0,C.u)(e?.fileType)&&l((0,k.JD)(!0)),l((0,k.$j)(e)),l((0,k.gz)(0)),l((0,k.ZX)(!1)),l((0,k.$j)({...e,userDetails:e?.userDetails,imageList:t}));let s=[I.xQ.PPT,I.xQ.DOC,I.xQ.SHEET];(0,I.uA)(e?.fileType)?l((0,k.q5)(!0)):s.includes(e?.fileType)?Q(e):l((0,k.q5)(!0)),r()})(e),className:V,children:[(0,s.jsx)(x.A,{className:"text-light-6 size-4 shrink-0"}),(0,s.jsxs)("span",{className:"flex flex-col min-w-0",children:[(0,s.jsx)("span",{className:"truncate",children:e.fileName}),Z(e)]})]})},`result-${t}`),J=n.trim().length>0;return(0,s.jsxs)(j.lG,{open:t,onClose:r,className:"relative z-9999",children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-dark-0/40 backdrop-blur-sm dark:bg-dark-0/60","aria-hidden":"true"}),(0,s.jsx)("div",{className:"fixed inset-0 flex items-start justify-center pt-[10vh] pb-8 px-4",children:(0,s.jsx)(j.Lj,{className:"flex w-full max-h-full max-w-125",children:(0,s.jsx)("div",{className:"flex flex-col w-full min-h-0 p-2 mx-auto bg-light-0 shadow-xl dark:bg-dark-2 rounded-3xl",children:(0,s.jsxs)("div",{className:"flex flex-col min-h-0 gap-2",children:[(0,s.jsxs)("div",{className:"p-4 bg-light-1 shrink-0 dark:bg-dark-3 rounded-2xl sm:p-5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,s.jsx)("h2",{className:"text-sm font-medium text-dark-1 dark:text-light-0",children:"Search"}),(0,s.jsx)(T.A,{"aria-label":"Close search",onClick:r,variant:"nav",iconClassName:"size-5"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{ref:i,type:"text",placeholder:"Search anything, or #3 for a post...",value:n,onChange:e=>d(e.target.value),className:(0,P.jp)("default","lg","pl-11")}),(0,s.jsx)("span",{className:"absolute -translate-y-1/2 pointer-events-none left-4 top-1/2 text-dark-6 dark:text-light-6",children:(0,s.jsx)(x.A,{className:"size-5"})}),n&&(0,s.jsx)("button",{type:"button","aria-label":"Clear search",onClick:()=>{d(""),m([]),i.current?.focus()},className:"absolute -translate-y-1/2 text-light-6 right-3 top-1/2 hover:text-dark-5 dark:hover:text-light-0",children:(0,s.jsx)(y.A,{className:"size-4"})})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center mt-4 gap-x-5 gap-y-2",children:[(0,s.jsx)(z.A,{name:"search-scope",value:"current",checked:"current"===F,onChange:()=>L("current"),disabled:!b,labelClassName:b?"":"opacity-50 cursor-not-allowed",label:"Current project"}),(0,s.jsx)(z.A,{name:"search-scope",value:"all",checked:"all"===F,onChange:()=>L("all"),label:"All projects"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col min-h-0",children:[(0,s.jsx)("div",{className:"min-h-0 px-3 py-5 overflow-y-auto bg-light-1 dark:bg-dark-3 rounded-t-2xl",children:J?(0,s.jsx)("div",{children:p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:H,children:"Results"}),(0,s.jsx)("p",{className:"px-3 py-2 text-base text-light-6",children:"Searching..."})]}):0===u.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:H,children:"Results"}),(0,s.jsx)(D.Bj,{align:"left",size:"md",className:"px-3",children:"No results found."})]}):Y.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:H,children:"Posts"}),(0,s.jsx)("ul",{children:Y.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",onClick:()=>{l((0,k.J)({isOpen:!0,postId:e?.postId})),r()},className:V,children:[(0,s.jsxs)("span",{className:`${A.B} shrink-0`,children:["#",e.postNumber]}),(0,s.jsxs)("span",{className:"flex flex-col min-w-0",children:[(0,s.jsx)("span",{className:"truncate",children:e.postDescription||"Untitled post"}),Z(e)]})]})},`post-${e?.postId??t}`))}),_.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:`${H} mt-4`,children:"Files"}),(0,s.jsx)("ul",{children:_.map(W)})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:H,children:"Results"}),(0,s.jsx)("ul",{children:_.map(W)})]})}):(0,s.jsx)(D.Bj,{align:"left",size:"md",className:"px-3",children:"Search results will appear hereâ¦"})}),(0,s.jsx)("div",{className:"px-5 text-center border-t shrink-0 rounded-b-2xl border-light-3 dark:border-dark-5 bg-light-2 dark:bg-dark-4 py-2.5",children:(0,s.jsxs)("p",{className:"text-xs text-light-6 dark:text-light-5",children:["Press"," ",(0,s.jsx)("kbd",{className:"mx-1 inline-flex h-6 w-10 items-center justify-center rounded-md bg-light-0 dark:bg-dark-3 px-2.5 py-1 font-medium text-dark-1 dar
1k:text-light-0 shadow-sm",children:"esc"}),"to close"]})})]})]})})})})]})};var F=r(84759),O=r(2371),q=r(59963),B=r(65684),Q=r(21980),Y=r(14012),_=r(56919),V=r(51047),H=r(79345),U=r(15279),Z=r(51915),W=r(75563),J=r(85471),X=r(54289),K=r(48012),G=r(1362),ee=r(32041),et=r(35483),er=r(12663),es=r(56414),ea=r(89709),el=r(15806),ei=r(213),en=r(64436),eo=r(45193),ed=r(36834),ec=r(39670),eu=r(5016),em=r(62940),ex=r(56690),eh=r(28079),ep=r(99553),ef=r(69268),eg=r(93952);let eb=()=>{let e=(0,a.wA)(),{successNotify:t,errorNotify:r}=(0,eh.A)(),{accessRequestsModal:l}=(0,a.d4)(e=>e.contextMenu),i=!!l?.open,n=l?.projectId||void 0,[d,c]=(0,o.useState)({}),{userDetails:u}=(0,a.d4)(e=>e.projects),m=(0,C._S)(u?.plan),[x,h]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let t=new URLSearchParams(window.location.search),r=t.get("requests");if(!r)return;e((0,k.sL)({open:!0,projectId:r})),t.delete("requests");let s=t.toString();window.history.replaceState(null,"",window.location.pathname+(s?`?${s}`:""))},[e]);let{data:p,isFetching:f,refetch:g}=(0,eg.u4)(n??"",{skip:!i||!n,refetchOnMountOrArgChange:!0}),[b,{isLoading:j}]=(0,eg.VB)(),[v,{isLoading:y}]=(0,eg.Ri)(),w=(e,t)=>`${e}:${t}`,N=(p?.requests??[]).flatMap(e=>(e.requestedFiles??[]).map(t=>({req:e,file:t}))),A=async(e,s)=>{if(!n)return;if(m)return void h(!0);let a=d[w(e.publicAccessId,s.fileId)]||"view";try{await b({publicAccessId:e.publicAccessId,email:e.email,fileId:s.fileId,projectId:n,accessLevel:a}).unwrap(),t("Access approved."),g()}catch(e){r(e?.data?.error||"Failed to approve. Please try again.")}},I=async(e,s)=>{try{await v({publicAccessId:e.publicAccessId,email:e.email,fileId:s.fileId}).unwrap(),t("Request declined."),g()}catch(e){r(e?.data?.error||"Failed to decline. Please try again.")}};return i?(0,s.jsxs)(ec.A,{open:!0,onClose:()=>e((0,k.sL)({open:!1,projectId:null})),title:"Access requests",size:"lg",noBodyPadding:!0,children:[(0,s.jsx)(ef.A,{show:x,onClose:()=>h(!1),currentPlan:u?.plan,limitType:"externalCollab"}),(0,s.jsx)("div",{className:"p-5",children:f&&0===N.length?(0,s.jsx)("div",{className:"flex justify-center py-10",children:(0,s.jsx)(ex.A,{className:"h-8 w-8"})}):0===N.length?(0,s.jsx)(D.Bj,{size:"md",children:"No pending requests"}):(0,s.jsx)("div",{className:"flex flex-col gap-3 max-h-[60vh] overflow-y-auto no-scrollbar",children:N.map(e=>{let{req:t,file:r}=e;return(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-light-3 p-3 dark:border-dark-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,s.jsx)(q.Ay,{src:t.fileS3Id||void 0,name:t.name,size:"md"}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"truncate text-sm font-semibold text-dark-2 dark:text-light-0",children:t.name}),(0,s.jsx)("p",{className:"truncate text-xs text-dark-6 dark:text-light-6",children:t.email}),(0,s.jsxs)("p",{className:"mt-0.5 flex items-center gap-1 truncate text-xs text-dark-5 dark:text-light-5",children:[(0,s.jsx)(ed.A,{className:"h-3 w-3 shrink-0"}),"wants access to ",r.fileName||"a file"]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,s.jsx)("div",{className:"w-28",children:(0,s.jsx)(em.A,{value:d[w(t.publicAccessId,r.fileId)]||"view",onChange:e=>c(s=>({...s,[w(t.publicAccessId,r.fileId)]:e})),placeholder:"Access",options:ep.Xo})}),(0,s.jsx)(eu.Ay,{variant:"yellow",size:"sm",title:"Approve",loading:j,type:"button",onClick:()=>A(t,r),className:"h-10 whitespace-nowrap"}),(0,s.jsx)(eu.Ay,{variant:"outline",size:"sm",title:"Reject",loading:y,type:"button",onClick:()=>I(t,r),className:"h-10 whitespace-nowrap"})]})]},w(t.publicAccessId,r.fileId))})})})]}):null};var ej=r(88125),ev=r(57218),ey=r(63909),ew=r(17815),eN=r(48376),ek=r(99857);let eA=(e,t)=>e?"string"==typeof e?e:"string"==typeof e?.message?e.message:"string"==typeof e?.data?e.data:"string"==typeof e?.data?.error?e.data.error:t:t,eC=e=>{let{open:t,onClose:r,publicAccessId:l,projectName:i,inviterName:n}=e,d=(0,a.wA)(),c=(0,b.useRouter)(),{successNotify:u,errorNotify:m}=(0,eh.A)(),{userDetails:x}=(0,ew.A)(),[h,p]=(0,o.useState)("loading"),[f,g]=(0,o.useState)(void 0),[j,v]=(0,o.useState)(""),[y,{data:w,error:N,isFetching:k}]=(0,eg.NC)(),[A,{isFetching:C}]=(0,eg.NC)(),[I,{isLoading:S}]=(0,eN.Qu)(),[E]=(0,eN.g0)(),P=i||"a project",T=n||"Someone";(0,o.useEffect)(()=>{t&&l&&(p("loading"),v(""),g(void 0),y({publicAccessId:l,verify:!0}))},[t,l]),(0,o.useEffect)(()=>
1{if(t){if(k)return void p("loading");if(N){let e=eA(N,"This invitation could not be verified. Please try again.");e.toLowerCase().includes("in active")?p("declined"):(v(e),p("error"));return}if(w){let e=w?.projectId;e&&g(e),p((w?.message||"").toLowerCase().includes("already accepted")?"already":"verified")}}},[t,k,N,w]);let D=e=>{e&&d((0,ek.eP)(e)),r(),c.push("/dashboard")},$=async()=>{if(l)try{await A({publicAccessId:l}).unwrap(),u("Project invitation accepted.");try{await E().unwrap()}catch{}D(f)}catch(e){m(eA(e,"Failed to accept invitation. Please try again."))}},z=async()=>{if(!l)return;let e=x?.emailAddress||x?.email;if(!e)return void m("Could not resolve your account email. Please try again.");try{await I({publicAccessId:l,emailAddress:e}).unwrap(),u("You have declined the invitation."),p("declined")}catch(e){m(eA(e,"Failed to decline the invitation. Please try again."))}},R=x?.firstName?`${x.firstName} ${x?.lastName??""}`.trim():void 0;return(0,s.jsx)(ec.A,{open:t,onClose:r,title:"Project invitation",size:"md",children:"loading"===h?(0,s.jsxs)("div",{className:"flex flex-col items-center py-10 text-center",children:[(0,s.jsx)(ex.A,{className:"h-9 w-9"}),(0,s.jsx)("p",{className:"mt-4 text-sm font-medium text-dark-3 dark:text-light-3",children:"Checking this invitation..."})]}):"error"===h?(0,s.jsxs)("div",{className:"flex flex-col items-center py-8 text-center",children:[(0,s.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-red-1/10 text-red-1",children:(0,s.jsx)(ej.A,{className:"h-7 w-7"})}),(0,s.jsx)("p",{className:"mt-4 text-base font-semibold text-dark-1 dark:text-light-0",children:"Invitation unavailable"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-dark-4 dark:text-light-4",children:j||"This invitation is no longer valid or has expired."}),(0,s.jsx)(eu.Ay,{variant:"outline",type:"button",title:"Close",onClick:r,className:"mt-6 w-full sm:w-auto"})]}):"declined"===h?(0,s.jsxs)("div",{className:"flex flex-col items-center py-8 text-center",children:[(0,s.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-yellow/15 text-yellow",children:(0,s.jsx)(ej.A,{className:"h-7 w-7"})}),(0,s.jsx)("p",{className:"mt-4 text-base font-semibold text-dark-1 dark:text-light-0",children:"Invitation declined"}),(0,s.jsxs)("p",{className:"mt-2 text-sm text-dark-4 dark:text-light-4",children:["You have declined the invitation to join ",P,"."]}),(0,s.jsx)(eu.Ay,{variant:"yellow",type:"button",title:"Done",onClick:r,className:"mt-6 w-full sm:w-auto"})]}):"already"===h?(0,s.jsxs)("div",{className:"flex flex-col items-center py-8 text-center",children:[(0,s.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-green-1/15 text-green-1",children:(0,s.jsx)(G.A,{className:"h-7 w-7"})}),(0,s.jsx)("p",{className:"mt-4 text-base font-semibold text-dark-1 dark:text-light-0",children:"You are already a member"}),(0,s.jsxs)("p",{className:"mt-2 text-sm text-dark-4 dark:text-light-4",children:["You already have access to ",P,"."]}),(0,s.jsx)(eu.Ay,{variant:"yellow",type:"button",title:"Open project",onClick:()=>D(f),className:"mt-6 w-full sm:w-auto"})]}):(0,s.jsxs)("div",{className:"flex flex-col px-1 py-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,s.jsx)(q.Ay,{name:T,size:"xl"}),(0,s.jsx)(ev.A,{className:"h-5 w-5 text-dark-4 dark:text-light-4"}),(0,s.jsx)(q.Ay,{src:x?.fileS3Id,name:R,size:"xl"})]}),(0,s.jsxs)("div",{className:"mt-6 text-center",children:[(0,s.jsxs)("p",{className:"text-base text-dark-2 dark:text-light-2",children:[(0,s.jsx)("span",{className:"font-semibold text-purple dark:text-yellow",children:T})," ","invited you to collaborate on"]}),(0,s.jsx)("p",{className:"mt-1 text-xl font-bold text-dark-0 dark:text-light-0",children:P})]}),(0,s.jsxs)("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[(0,s.jsx)(eu.Ay,{variant:"success",type:"button",title:"Accept invitation",loading:C,disabled:S,onClick:$,className:"w-full"}),(0,s.jsx)(eu.Ay,{variant:"outline",type:"button",title:"Decline invitation",loading:S,disabled:C,onClick:z,className:"w-full"})]}),(0,s.jsxs)("div",{className:"mt-6 rounded-xl border border-light-3 bg-light-2/60 p-4 dark:border-dark-4 dark:bg-dark-3/60",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(ey.A,{className:"h-4 w-4 shrink-0 text-dark-4 dark:text-light-4"}),(0,s.jsxs)("span",{className:"text-sm font-medium text-dark-2 dark:text-light-2",children:[(0,s.jsx)("span",{className:"font-semibold text-purple dark:text-yellow",children:"Members"})," ","of ",P," will be able to see:"]})]}),(0,s.jsxs)("ul",{className:"mt-2 list-disc space-y-1 pl-6 text-sm text-dark-3 dark:text-light-3",children:[(0,s.jsx)("li",{children:"Your profile information"}),(0,s.jsx)("li",{children:"Your activities within this project"})]})]})]})})};var eI=r(32187),eS=r(35091),eE=r(83053),eP=r(51472),eT=r(23207),eD=r(25923),e$=r(28781);let ez=e=>{let{checked:t,onChange:r,disabled:a,id:l,...i}=e;return(0,s.jsx)("button",{type:"button",id:l,role:"switch","aria-checked":t,disabled:a,onClick:()=>r(!t),className:`relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition-colors duration-200 ease-out focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple ${t?"bg-purple dark:bg-yellow":"bg-light-3 dark:bg-dark-4"} ${a?"cursor-not-allowed opacity-50":"cursor-pointer"}`,...i,children:(0,s.jsx)("span",{className:`inline-block h-4.5 w-4.5 transform rounded-full bg-light-0 shadow-sm transition-transform duration-200 ease-out ${t?"translate-x-6":"translate-x-1"}`})})},eR=[{key:"comments",label:"Comments",description:"Someone comments on a post or replies to a thread you're in."},{key:"mentions",label:"Mentions",description:"Someone tags or mentions you in a comment or post."}
1,{key:"decisions",label:"Decisions",description:"A comment on your post â or one you wrote â is marked as the decision or dropped."},{key:"activity",label:"Post Activity",description:"Likes and attention flags on posts you own."},{key:"files",label:"File Updates",description:"A new revision is uploaded to a file you're following."},{key:"access",label:"Access Requests",description:"Someone requests access to a file or folder, or your own request is approved or declined."},{key:"invites",label:"Invitations",description:"You're invited to a project or shared file, or someone accepts your invite."}],eM={emailEnable:!0,comments:!0,mentions:!0,decisions:!0,activity:!0,files:!0,access:!0,invites:!0},eL=e=>({...eM,...e||{}}),eF={comments:eI.A,mentions:eS.A,decisions:eE.A,activity:eP.A,files:eT.A,access:eD.A,invites:e$.A},eO=e=>{let{icon:t,label:r,description:a,checked:l,onChange:i,disabled:n,dim:o}=e;return(0,s.jsxs)("div",{className:`flex items-center gap-3.5 py-4 first:pt-0 last:pb-0 ${o?"opacity-50":""}`,children:[(0,s.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-purple/10 text-purple dark:bg-yellow/10 dark:text-yellow",children:(0,s.jsx)(t,{className:"h-4.5 w-4.5"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-dark-1 dark:text-light-0",children:r}),(0,s.jsx)("p",{className:"mt-0.5 text-xs text-dark-6 dark:text-light-5",children:a})]}),(0,s.jsx)(ez,{checked:l,onChange:i,disabled:n,"aria-label":r})]})},eq=e=>{let{open:t,onClose:r}=e,{userDetails:l,refetchUserData:i}=(0,ew.A)(),[n]=(0,g.L4)(),{errorNotify:d}=(0,eh.A)(),c=(0,a.wA)(),[u,m]=(0,o.useState)(()=>eL(l?.emailPreferences)),x=(0,o.useRef)(null),h=(0,o.useRef)(!1);(0,o.useEffect)(()=>{t&&(h.current=!1,m(eL(l?.emailPreferences)),i())},[t]),(0,o.useEffect)(()=>{t&&!h.current&&m(eL(l?.emailPreferences))},[t,l?.emailPreferences]),(0,o.useEffect)(()=>()=>{x.current&&clearTimeout(x.current)},[]);let p=async e=>{if(l?.id)try{await n({id:l.id,emailPreferences:e}).unwrap(),c((0,f.m5)({...l,emailPreferences:e}))}catch{m(eL(l?.emailPreferences)),d("Couldn't save your notification settings. Please try again.")}},b=e=>{h.current=!0,m(e),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{p(e)},500)};return(0,s.jsxs)(ec.A,{open:t,onClose:r,title:"Email Notifications",size:"lg",children:[(0,s.jsx)("p",{className:"mb-2 text-xs text-dark-6 dark:text-light-5",children:"Choose which emails IDColab sends you. Changes apply immediately."}),(0,s.jsxs)("div",{className:"divide-y divide-light-3 dark:divide-dark-4",children:[(0,s.jsx)(eO,{icon:U.A,label:"All Email Notifications",description:"Turn off to stop every email below. Your choices per category are remembered.",checked:u.emailEnable,onChange:e=>b({...u,emailEnable:e})}),eR.map(e=>(0,s.jsx)(eO,{icon:eF[e.key],label:e.label,description:e.description,checked:u[e.key],onChange:t=>{let r;return r=e.key,b({...u,[r]:t})},disabled:!u.emailEnable,dim:!u.emailEnable},e.key))]}),(0,s.jsx)("p",{className:"mt-4 text-xs text-dark-6 dark:text-light-5",children:"Account, security, and billing emails (like receipts and password resets) are always sent and can't be turned off here."})]})};var eB=r(35666),eQ=r(68959),eY=r(58752);let e_=["AR","AA","AX"],eV=e=>{let{postId:t,enabled:r,fallbackText:a}=e,l=!!String(a??"").trim(),{data:i}=(0,H.G8)(t,{skip:!t||!r||l}),n=Array.isArray(i)?i.find(e=>e.postId===t)??i[0]:i,o=l?String(a).trim():String(n?.postDescription??"").trim();return o?(0,s.jsx)("div",{className:"mt-1.5 border-l-2 border-light-3 dark:border-dark-4 pl-2.5",children:(0,s.jsx)("p",{className:"line-clamp-2 text-xs leading-snug text-dark-5 dark:text-light-5",children:o})}):null},eH=e=>{let{notification:t,onView:r}=e,a=t.viewed,l=t.eventUser,i=t.eventData,n=(e=>{switch(e){case"CM":return{Icon:W.A,bg:"bg-purple",fg:"text-light-0"};case"RC":return{Icon:J.A,bg:"bg-purple",fg:"text-light-0"};case"LK":return{Icon:X.A,bg:"bg-yellow",fg:"text-dark-3"};case"MN":case"PM":return{Icon:K.A,bg:"bg-blue-1",fg:"text-light-0"};case"IN":return{Icon:G.A,bg:"bg-purple",fg:"text-light-0"};case"IA":case"AA":return{Icon:ee.A,bg:"bg-purple",fg:"text-light-0"};case"NP":return{Icon:et.A,bg:"bg-red-1",fg:"text-light-0"};case"RV":return{Icon:er.A,bg:"bg-purple",fg:"text-light-0"};case"DC":return{Icon:es.A,bg:"bg-green-1",fg:"text-light-0"};case"DR":return{Icon:ea.A,bg:"bg-red-1",fg:"text-light-0"};case"AR":return{Icon:el.A,bg:"bg-blue-1",fg:"text-light-0"};case"AX":return{Icon:ei.A,bg:"bg-red-1",fg:"text-light-0"};default:return{Icon:en.A,bg:"bg-light-5",fg:"text-light-0"}}})(t.eventName),d=i?.projectDetails?.projectName,c=l?.firstName?`${l.firstName} ${l?.lastName??""}`.trim():"Someone",u=(0,o.useRef)(null),[m,x]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=u.current;if(!e||m)return;let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&(x(!0),t.disconnect())},{rootMargin:"100px"});return t.observe(e),()=>t.disconnect()},[m]);let h=t.createdAt?(0,C.r6)(t.createdAt):"";return(0,s.jsxs)("div",{ref:u,onClick:()=>r(t),className:`flex items-start gap-3 p-3 mx-2 my-1.5 rounded-xl border cursor-pointer transition-colors ${a?"border-light-3 bg-light-0 hover:bg-light-2 dark:border-dark-4 dark:bg-dark-3 dark:hover:bg-dark-4":"border-purple/20 bg-purple/6 hover:bg-purple/10 dark:border-yellow/30 dark:bg-yellow/10 dark:hover:bg-yellow/15"}`,children:[(0,s.jsxs)("div",{className:"relative shrink-0",children:[(0,s.jsx)(q.Ay,{user:l,size:"lg"}),(0,s.jsx)("span",{className:`absolute -bottom-0.5 -right-0.5 flex h-5 w-5 items-center justify-center rounded-full border-2 border-light-0 dark:border-dark-3 ${n.bg}`,children:(0,s.jsx)(n.Icon,{className:`h-2.5 w-2.5 ${n.fg}`})})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("p",{className:"text-sm leading-relaxed text-dark-2 dark:text-light-2",children:[(0,s.jsx)("span",{className:"font-semibold text-dark-2 dark:text-light-0",children:c})," ",(e=>{let t=e?.eventData?.fileName;switch(e.eventName){case"NP":return"called your attention to your post.";case"RV":{let r=e?.eventData?.revisionTag;return`uploaded ${r?`revision ${r}`:"a new revision"} of ${t||"a file"}.`}case"LK":return"starred your post.";case"CM":return"commented on your post.";case"RC":return"replied to your comment.";case"MN":return"mentioned you in a comment.";case"DC":return"marked a comment as the decision.";case"DR":return"marked a comment as dropped.";case"PM":return"mentioned you in a post.";case"IN":return`invited you to join ${e?.eventData?.projectName||"a project"}.`;
1case"IA":return`accepted your invitation to join ${e?.eventData?.projectName||"your project"}.`;case"AR":return t?`requested access to ${t}.`:"requested access to a file.";case"AA":return"approved your access request.";case"AX":return"declined your access request.";default:return"sent you a notification"}})(t)]}),(i?.postNumber!=null||d)&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1.5",children:[i?.postNumber!=null&&(0,s.jsxs)("span",{className:"rounded-lg bg-purple/10 px-2 py-0.5 text-[11px] font-semibold text-purple dark:bg-yellow/15 dark:text-yellow",children:["Post ",String(i.postNumber)]}),d&&(0,s.jsxs)("span",{className:"flex items-center min-w-0 gap-1 text-xs font-medium text-dark-5 dark:text-light-5",children:[(0,s.jsx)(v.A,{className:"w-3 h-3 shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:String(d)})]})]}),(0,s.jsx)(eV,{postId:i?.postId,enabled:m,fallbackText:i?.postDescription}),(0,s.jsx)("p",{className:"mt-1 text-[11px] text-dark-6 dark:text-light-5",children:h})]}),i?.thumbnailS3Id&&(0,s.jsx)("img",{src:(0,Q.dE)(i.thumbnailS3Id),alt:i?.fileName||"File preview",className:"mt-0.5 h-12 w-12 shrink-0 rounded-lg border border-light-3 object-cover dark:border-dark-4"}),!a&&(0,s.jsx)("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-purple dark:bg-yellow"})]})},eU="text-sm font-medium text-blue-1 transition-opacity hover:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed",eZ=()=>{let[e,t]=(0,o.useState)(!1),[r,l]=(0,o.useState)(!1),[i,n]=(0,o.useState)(!1),[d,c]=(0,o.useState)({open:!1}),u=(0,a.wA)(),m=(0,b.useRouter)();(0,o.useEffect)(()=>{let e=()=>{l(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let x=(0,a.d4)(e=>e.notification),h=(0,a.d4)(e=>e?.projects?.userDetails),p=(0,o.useRef)(null),{data:f}=(e=>{let t=(0,a.wA)(),{isDemo:r}=(0,V.z)(),[s,l]=(0,o.useState)(!1),{data:i,refetch:n,isFetching:d}=(0,B.jH)(e,{pollingInterval:s?3e5:15e3,skip:!e}),c=(0,o.useRef)(d);c.current=d;let u=(0,o.useRef)(!1),m=(0,o.useRef)(null),x=(0,o.useCallback)(()=>{m.current||(m.current=setTimeout(()=>{m.current=null,c.current?u.current=!0:n()},1e3))},[n]);(0,o.useEffect)(()=>{!d&&u.current&&(u.current=!1,n())},[d,n]);let h=(0,o.useRef)(()=>{});return h.current=e=>{"viewed"===e.op?e.guids?.forEach(e=>t((0,_.qe)(e))):x()},(0,o.useEffect)(()=>{if(!e||r||!Q.SZ)return;let t=!1,s=null,a=0,i=null,n=()=>{t||(i=setTimeout(o,Math.min(1e3*2**a++,3e4)))},o=async()=>{let r;i=null;let o=await (0,Y.iD)();if(t)return;if(!o)return n();let d=new URLSearchParams({fileId:`user:${e}`,userId:e,token:o});try{r=new WebSocket(`${Q.SZ}?${d.toString()}`)}catch(e){return console.warn("[notifications] ws connect failed:",e),n()}s=r,r.onopen=()=>{a=0,l(!0),h.current({op:"resync"})},r.onmessage=e=>{try{let t=JSON.parse(e.data);t?.type==="notification"&&h.current(t)}catch{}},r.onclose=()=>{s=null,l(!1),n()},r.onerror=()=>{}};return o(),()=>{t=!0,i&&clearTimeout(i),m.current&&clearTimeout(m.current),m.current=null,u.current=!1;let e=s;s=null,e&&e.readyState<=WebSocket.OPEN&&e.close(),l(!1)}},[e,r]),{data:i,live:s}})(h?.id),[g]=(0,B.Z6)(),[j]=(0,eB.j9)();(0,o.useEffect)(()=>{if(!f)return;let e=[...f.unviewed,...f.viewed],t=[...x.unviewed,...x.viewed];e.length===t.length&&e.every((e,r)=>e.guid===t[r]?.guid)||u((0,_.d_)(f))},[f]);let v=(0,o.useMemo)(()=>[...x.unviewed,...x.viewed],[x]),y=()=>{t(e=>!e)},w=()=>{t(!1),n(!0)},N=async e=>{if(e.viewed||(await g({userId:h.id,notificationId:e.guid}),u((0,_.qe)(e.guid))),"IN"===e.eventName){let r=e?.eventData;c({open:!0,publicAccessId:r?.publicAccessId,projectName:r?.projectName,inviterName:r?.inviterName}),t(!1);return}if("IA"===e.eventName){let r=e?.eventData?.projectId||e?.eventId;r&&u((0,ek.eP)(r)),t(!1),m.push("/dashboard");return}if(e_.includes(e.eventName)){let r=e?.eventData?.projectId||e?.eventId;if("AR"===e.eventName){r&&u((0,k.sL)({open:!0,projectId:r})),t(!1);return}r&&u((0,ek.eP)(r)),t(!1),m.push("/dashboard");return}let r=e?.eventData;if(r?.fileId){let e=r.projectId||r.projectDetails?.guid;e&&u((0,ek.eP)(e));try{let t=await j({projectId:e,category:r.category}
1).unwrap(),s=t?.files||t?.data?.files||(Array.isArray(t)?t:[]),a=s.findIndex(e=>e.fileId===r.fileId),l=a>=0?s[a]:{fileId:r.fileId,fileS3Id:r.fileS3Id,fileName:r.fileName,fileType:r.fileType,category:r.category,projectId:e},i=s.length>0?s:[l];u((0,k.JD)(!0)),u((0,k.$j)({...l,imageList:i})),u((0,k.gz)(a>=0?a:0)),u((0,k.q5)(!0))}catch(e){console.error("[Notification] file viewer open failed",e)}t(!1);return}u((0,k.J)({isOpen:!0,postId:e?.eventId})),t(!1)},A=async()=>{0!==x.unviewed.length&&(await g({userId:h.id}),u((0,_.hV)()))};(0,eQ.A)(p,()=>t(!1),e);let C=x.unviewed.length>0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative",ref:p,children:[(0,s.jsx)(O.Ay,{id:"notifications",onClick:y,title:"Notifications","aria-label":"Notifications",variant:"nav",className:"relative",icon:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(U.A,{className:"w-5 h-5"}),C&&(0,s.jsx)("span",{className:"absolute -top-0.5 -right-0.75 inline-flex items-center justify-center min-w-3.5 h-3.5 px-0.75 text-[9px] font-bold leading-none bg-red-1 text-light-0 rounded-full",children:x.unviewed.length.toString().padStart(2,"0")})]})}),e&&(r?(0,s.jsxs)("div",{className:"fixed inset-0 z-9999 bg-light-1 dark:bg-dark-2",children:[(0,s.jsx)("div",{className:"sticky top-0 px-4 py-3 bg-light-0 border-b border-light-3 dark:border-dark-4 dark:bg-dark-3",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(T.A,{onClick:y,"aria-label":"Close notifications",variant:"nav",iconClassName:"size-6"}),(0,s.jsx)("h3",{className:"text-base font-semibold text-dark-2 dark:text-light-0",children:"Notifications"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(O.Ay,{onClick:w,title:"Notification settings","aria-label":"Notification settings",size:"sm",icon:(0,s.jsx)(Z.A,{className:"w-4 h-4"})}),(0,s.jsx)("button",{onClick:A,disabled:!C,className:eU,children:"Mark all as read"})]})]})}),(0,s.jsx)("div",{className:"h-[calc(100vh-60px)] overflow-y-auto py-1",children:0===v.length?(0,s.jsx)(D.Bj,{size:"md",children:"No notifications"}):v.map(e=>(0,s.jsx)(eH,{notification:e,onView:N},e.guid))})]}):(0,s.jsxs)("div",{className:`absolute right-0 w-95 overflow-hidden z-50 ${eY.X}`,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-light-3 dark:border-dark-4",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-dark-2 dark:text-light-0",children:"Notifications"}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(O.Ay,{onClick:w,title:"Notification settings","aria-label":"Notification settings",size:"sm",icon:(0,s.jsx)(Z.A,{className:"w-4 h-4"})}),(0,s.jsx)("button",{onClick:A,disabled:!C,className:eU,children:"Mark all as read"})]})]}),0===v.length?(0,s.jsx)(D.Bj,{size:"md",children:"No notifications"}):(0,s.jsx)("div",{className:"overflow-y-auto max-h-112 no-scrollbar py-1",children:v.map(e=>(0,s.jsx)(eH,{notification:e,onView:N},e.guid))})]}))]}),(0,s.jsx)(eo.default,{}),(0,s.jsx)(eb,{}),(0,s.jsx)(eC,{open:d.open,onClose:()=>c({open:!1}),publicAccessId:d.publicAccessId,projectName:d.projectName,inviterName:d.inviterName}),(0,s.jsx)(eq,{open:i,onClose:()=>n(!1)})]})};var eW=r(97708);let eJ=["/dashboard/profile","/dashboard/ModelDownloads","/dashboard/shared-links","/dashboard/billing"],eX=()=>{let e=(0,a.wA)(),t=(0,b.useRouter)(),r=(0,b.usePathname)(),{isFeed:i}=(0,p.A)(),j=eJ.some(e=>r===e||r?.startsWith(`${e}/`)),[v,y]=(0,o.useState)(!1),{user:w}=(0,d.A)(e=>[e.user]),{selectedProject:N,projectList:k}=(0,a.d4)(e=>e.project),{viewerModal:A,isAddEditModalOpen:C,isQRModalOpen:I}=(0,a.d4)(e=>e?.contextMenu),{data:S,error:E,isLoading:P,refetch:T}=(0,g.ff)(w?.userId,{skip:!w}
1);(0,o.useEffect)(()=>{S&&e((0,f.m5)(S))},[S,e]);let[D,$]=(0,o.useState)(!1),z=N?.projectName||"Loading",[R,M]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{y("undefined"!=typeof document&&document.documentElement.classList.contains("dark"))};e();let t=new MutationObserver(e);t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});let r=t=>{"theme"===t.key&&e()};return window.addEventListener("storage",r),()=>{t.disconnect(),window.removeEventListener("storage",r)}},[]);let q=(0,o.useMemo)(()=>k&&k.length>1?[{key:"feeds",id:"feeds-button",label:"Feed",icon:(0,s.jsx)(u.A,{className:"w-5 h-5"})},{key:"projects",id:"projects-button",label:"Projects",icon:(0,s.jsx)(m.A,{className:"w-5 h-5"})}]:[{key:"projects",id:"projects-button",label:"Project",icon:(0,s.jsx)(m.A,{className:"w-5 h-5"})}],[k]);return(0,o.useEffect)(()=>{window.location.pathname.includes("/feed")&&k.length<=1&&t.push(`/dashboard/${z}/activities`)},[k,t]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:`fixed top-0 left-0 right-0 w-full ${C||A||I?"z-0":"z-50"}`,children:[(0,s.jsxs)("div",{className:"bg-light-0 md:bg-transparent h-12 md:h-14 flex items-center py-4 dark:bg-dark-1 w-full",children:[(0,s.jsx)("div",{className:"absolute left-0 z-0 flex items-center xl:justify-center xl:w-62",children:(0,s.jsxs)(n(),{href:z&&"Loading"!==z?`/dashboard/${z}/activities`:"/dashboard",className:"p-1 mt-1 ml-3",children:[(0,s.jsx)(l.default,{title:"IDColab Logo",src:"/images/landing/header/logodark2.svg",width:100,height:50,className:"hidden w-20 h-auto dark:block md:min-w-28 lg:min-w-30",alt:"Dark Theme Image",priority:!0}),(0,s.jsx)(l.default,{title:"IDColab Logo",src:"/images/landing/header/logo.svg",width:100,height:50,className:"w-20 h-auto dark:hidden md:min-w-28 lg:min-w-30",alt:"Light Theme Image",priority:!0})]})}),(0,s.jsx)("div",{className:"flex items-center justify-center flex-1",children:!j&&(0,s.jsx)("div",{className:"hidden md:flex ",children:(0,s.jsx)(F.A,{items:q,activeKey:i?"feeds":"projects",onChange:e=>{"feeds"===e?t.push("/dashboard/feed"):t.push(`/dashboard/${z}/activities`)},className:""})})}),(0,s.jsxs)("div",{className:"absolute right-0 flex items-center justify-center h-10 gap-2 mr-2 xl:w-75",children:[(0,s.jsx)(O.Ay,{id:"search",variant:"nav",onClick:()=>$(!0),title:"Search","aria-label":"Search",icon:(0,s.jsx)(x.A,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(eZ,{}),(0,s.jsx)(O.Ay,{id:"refresh",variant:"nav",onClick:()=>{M(!0),(0,eW.h)(),setTimeout(()=>M(!1),600)},title:"Refresh","aria-label":"Refresh",icon:(0,s.jsx)(h.A,{className:`w-5 h-5 ${R?"animate-spin":""}`})}),(0,s.jsx)(c.A,{})]})]})]}),(0,s.jsx)(L,{open:D,onClose:()=>$(!1)})]})})}},97708:(e,t,r)=>{r.d(t,{A:()=>i,h:()=>l});var s=r(12115);let a="idcolab:content-refresh",l=()=>{window.dispatchEvent(new CustomEvent(a))},i=e=>{(0,s.useEffect)(()=>(window.addEventListener(a,e),()=>window.removeEventListener(a,e)),[e])}},98587:(e,t,r)=>{r.d(t,{AZ:()=>a,WZ:()=>s});let s=()=>{let e=localStorage.getItem("themeMode");if("light"===e||"dark"===e||"system"===e)return e;let t=localStorage.getItem("theme");return"light"===t||"dark"===t?t:"system"},a=e=>{let t=(e=>"system"===e?window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light":e)(e);document.documentElement.classList.toggle("dark","dark"===t),localStorage.setItem("themeMode",e),localStorage.setItem("theme",t),window.dispatchEvent(new CustomEvent("themechange",{detail:{theme:t,isDark:"dark"===t,mode:e}}))}}}]);
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.