PageSourceSearch

https://www.idcolab.com/_next/static/chunks/30969-0e5aa3d7e69cd3f7.js

js idcolab.com collected 2026-10-01 14:29:08 UTC 36,928 bytes, 1 lines download raw bytes

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]="11bc9ced-0105-40eb-87fe-31076bf925ad",e._sentryDebugIdIdentifier="sentry-dbid-11bc9ced-0105-40eb-87fe-31076bf925ad")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30969],{22486:(e,t,s)=>{s.r(t),s.d(t,{default:()=>Q});var r=s(95155),a=s(12115),l=s(67909),d=s(1213);let i=a.forwardRef(function(e,t){let{title:s,titleId:r,...l}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},l),s?a.createElement("title",{id:r},s):null,a.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))});var n=s(90605),o=s(5016),c=s(39670),x=s(45193),m=s(6243),h=s(59963),p=s(8791),u=s(68483),g=s(94656),k=s(27771),f=s(70631),b=s(35200),N=s(12097);let j=e=>{let{className:t}=e;return(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",className:t,"aria-hidden":"true",children:(0,r.jsx)("circle",{cx:"10",cy:"10",r:"7.25"})})},y=e=>{let{mark:t}=e;return"rejected"===t?(0,r.jsxs)("span",{className:"inline-flex h-7 items-center gap-1.5 whitespace-nowrap rounded-md border border-red-1/40 bg-red-1/10 px-2.5 text-sm font-medium text-dark-2 dark:border-red-1/35 dark:bg-red-1/15 dark:text-light-0",children:[(0,r.jsx)(N.A,{className:"h-4 w-4 shrink-0 text-red-1"}),"Dropped"]}):"considering"===t?(0,r.jsxs)("span",{className:"inline-flex h-7 items-center gap-1.5 whitespace-nowrap rounded-md border border-yellow/60 bg-yellow/20 px-2.5 text-sm font-medium text-dark-2 dark:border-yellow/50 dark:bg-yellow/15 dark:text-light-0",children:[(0,r.jsx)(j,{className:"h-4 w-4 shrink-0 text-[#ca8a04]"}),"Considering"]}):"decision"===t?(0,r.jsxs)("span",{className:"inline-flex h-7 items-center gap-1.5 whitespace-nowrap rounded-md border border-green-1/45 bg-green-1/15 px-2.5 text-sm font-medium text-dark-2 dark:border-green-1/40 dark:text-light-0",children:[(0,r.jsx)(n.A,{className:"h-4 w-4 shrink-0 text-green-1"}),"Decision"]}):(0,r.jsxs)("span",{className:"inline-flex h-7 items-center gap-1.5 whitespace-nowrap rounded-md border border-light-3 bg-light-1 px-2.5 text-sm font-medium text-dark-5 dark:border-dark-4 dark:bg-dark-3 dark:text-light-5",children:[(0,r.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full bg-light-5 dark:bg-dark-5"}),"Unmarked"]})};var v=s(20063),w=s(97412),A=s(48242),I=s(3750);let C=()=>{let e=(0,d.wA)(),t=(0,v.useRouter)(),[s]=(0,I.Wx)(),{selectedProject:r}=(0,d.d4)(e=>e.project),a=r?.guid;return async r=>{if(r.threadId){if("file"===r.markThreadKind){let e=new URLSearchParams({fileId:r.threadId});r.markProjectId&&e.set("projectId",r.markProjectId),r.markFileCategory&&e.set("category",r.markFileCategory),t.push(`/open?${e.toString()}`);return}try{let t=await s(r.threadId).unwrap(),l=(Array.isArray(t?.subposts)?t.subposts:[]).filter(e=>e?.fileId&&e?.fileCategory!==w.NL.FOLDER);if(1===l.length){let t=l[0];e((0,A.q5)(!0)),e((0,A.Fo)(!0)),e((0,A.gz)(0)),e((0,A.$j)({...t,projectId:t.projectId||r.markProjectId||a,imageList:l}));return}}catch(e){console.error("[decisions] subpost lookup failed:",e)}e((0,A.J)({isOpen:!0,postId:r.threadId}))}}},D=[{key:"decision",label:"Decision"},{key:"markedBy",label:"Marked by"},{key:"status",label:"Status"}],S=(e,t)=>"decision"===t?e.createdAt||"":"markedBy"===t?e.markedAt||"":e.mark||"",T=e=>{let{postNumbers:t}=e,{selectedProject:s}=(0,d.d4)(e=>e.project),l=s?.guid,i=C(),[n,o]=(0,a.useState)({key:"markedBy",direction:"desc"}),{data:c,isLoading:x,isFetching:u,isError:k,error:N}=(0,p.a6)({projectId:l,limit:100},{skip:!l}),j=(0,a.useMemo)(()=>{let e=[...c?.items??[]];return e.sort((e,t)=>{let s=S(e,n.key).localeCompare(S(t,n.key));return"asc"===n.direction?s:-s}),e},[c,n]),v=x||u,w=N?.status===503;return(0,r.jsx)("section",{className:"flex h-full flex-col",children:(0,r.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col rounded-lg border border-light-3 bg-light-0 shadow-sm dark:border-dark-3 dark:bg-dark-2",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 border-b border-light-3 px-4 py-2.5 dark:border-dark-3",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-dark-2 dark:text-light-2",children:"Decision Log"}),!v&&!k&&(0,r.jsxs)("span",{className:"ml-auto text-sm text-dark-6 dark:text-light-4",children:[j.length," ",1===j.length?"entry":"entries"]})]}),(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:w?(0,r.jsx)("p",{className:"px-4 py-10 text-center text-sm text-dark-5 dark:text-light-4",children:"The decision index isn't available yet. Once it's created on the comments table, marks will appear here."}):k?(0,r.jsx)("p",{className:"px-4 py-10 text-center text-sm text-red-1 dark:text-red-2",children:"Couldn't load the decision log. Refresh to try again."}):(0,r.jsxs)("table",{className:"w-full table-auto",children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{className:"border-b border-light-3 bg-light-2 dark:border-dark-3 dark:bg-dark-3",children:D.map(e=>{let t=n.key===e.key;return(0,r.jsx)("th",{scope:"col",onClick:()=>(e=>o(t=>
1t.key===e?{key:e,direction:"asc"===t.direction?"desc":"asc"}:{key:e,direction:"desc"}))(e.key),"aria-sort":t?"asc"===n.direction?"ascending":"descending":void 0,className:"cursor-pointer px-4 py-3 text-left first:pl-8 hover:bg-light-3 dark:hover:bg-dark-4",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("p",{className:"mr-1 text-sm font-medium text-dark-2 dark:text-light-1",children:e.label}),(0,r.jsx)(b.LTM,{className:`h-4 w-4 ${t?"text-purple dark:text-yellow":"text-dark-2 dark:text-light-1"}`})]})},e.key)})})}),(0,r.jsxs)("tbody",{children:[v&&Array.from({length:5}).map((e,t)=>(0,r.jsx)("tr",{className:"border-b border-light-3 dark:border-dark-3",children:D.map(e=>(0,r.jsx)("td",{className:"px-3 py-3.5 first:pl-4",children:(0,r.jsx)(m.A,{className:"h-4 w-28 rounded"})},e.key))},t)),!v&&j.map(e=>(0,r.jsxs)("tr",{className:"group/row border-b border-light-3 hover:bg-purple/5 dark:border-dark-3 dark:hover:bg-dark-3",children:[(0,r.jsx)("td",{className:"px-3 py-3.5 pl-4",children:(0,r.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>i(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),i(e))},className:"flex cursor-pointer items-start gap-2.5 rounded-md text-left focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-purple",children:[(0,r.jsx)(h.Ay,{user:{firstName:e.authorName,emailAddress:e.authorEmail,fileS3Id:e.authorAvatar},name:e.authorName,size:"sm"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("p",{className:"flex items-baseline gap-2 text-sm",children:[(0,r.jsx)("span",{className:"truncate font-semibold text-dark-1 dark:text-light-1",children:e.authorName||e.authorEmail||"Someone"}),(e.markPostNumber??(e.threadId?t?.get(e.threadId):void 0))!=null&&(0,r.jsxs)("span",{className:"inline-flex h-5 shrink-0 items-center rounded border border-light-3 bg-light-2 px-1.5 text-[11px] font-semibold text-dark-4 dark:border-dark-4 dark:bg-dark-3 dark:text-light-2",children:["#",e.markPostNumber??t?.get(e.threadId)]}),e.createdAt&&(0,r.jsx)("span",{className:"shrink-0 text-xs text-dark-5 dark:text-light-4",children:(0,f.r6)(e.createdAt)})]}),(0,r.jsx)("p",{className:"mt-0.5 text-sm text-dark-2 underline-offset-2 group-hover/row:underline dark:text-light-1",children:(0,g.ND)(e.body)})]})]})}),(0,r.jsx)("td",{className:"px-3 py-3.5",children:(0,r.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,r.jsx)(h.Ay,{user:{firstName:e.markedByName,fileS3Id:e.markedByAvatar},name:e.markedByName,size:"sm"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"truncate text-sm text-dark-2 dark:text-light-1",children:e.markedByName||"—"}),e.markedAt&&(0,r.jsx)("p",{className:"mt-0.5 whitespace-nowrap text-xs text-dark-5 dark:text-light-4",children:(0,f.r6)(e.markedAt)})]})]})}),(0,r.jsx)("td",{className:"px-3 py-3.5",children:(0,r.jsx)(y,{mark:e.mark})})]},`${e.threadId}-${e.id}`)),!v&&0===j.length&&(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:D.length,children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2 px-4 py-10 text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-dark-3 dark:text-light-2",children:"Nothing marked yet"}),(0,r.jsx)("p",{className:"max-w-100 text-sm text-dark-5 dark:text-light-4",children:"Mark a comment as Considering or Decision and it shows up here."})]})})})]})]})})]})})},B=e=>{let{items:t,loading:s,indexMissing:a,failed:l,onOpenLog:d,postNumbers:i}=e,n=C();return(0,r.jsxs)("section",{className:"flex h-full min-h-0 flex-col rounded-lg border border-light-3 bg-light-0 shadow-sm dark:border-dark-3 dark:bg-dark-2",children:[(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-3 px-4 py-3",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-dark-2 dark:text-light-2",children:"Marks Status"}),d&&(0,r.jsx)("button",{type:"button",onClick:d,className:"ml-auto cursor-pointer text-xs font-semibold text-purple hover:underline dark:text-yellow",children:"Details ›"})]}),(0,r.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[s&&Array.from({length:4}).map((e,t)=>(0,r.jsxs)("div",{className:"flex gap-2.5 border-t border-light-2 px-4 py-3 dark:border-dark-3",children:[(0,r.jsx)(m.A,{className:"h-7 w-7 shrink-0 rounded-full"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)(m.A,{className:"h-3.5 w-11/12 rounded"}),(0,r.jsx)(m.A,{className:"h-3 w-2/5 rounded"})]})]},t)),!s&&a&&(0,r.jsx)("p",{className:"px-4 py-8 text-center text-sm text-dark-4 dark:text-light-1",children:"The decision index isn't available yet. Once it's built, marked comments show up here."}),!s&&!a&&l&&(0,r.jsx)("p",{className:"px-4 py-8 text-center text-sm text-dark-4 dark:text-light-1",children:"Couldn't load the decision log. Refresh to try again."}),!s&&!a&&!l&&0===t.length&&(0,r.jsxs)("p",{className:"px-4 py-8 text-center text-sm text-dark-4 dark:text-light-1",children:["Nothing marked yet. Use ",(0,r.jsx)("strong",{children:"Mark"})," on a comment to record a decision."]}),!s&&t.map(e=>{let t=e.markedByName||"someone",s="rejected"===e.mark?"dropped by":"marked by",a=e.markedAt?(0,f.r6)(e.markedAt):"",l=e.markPostNumber??(e.threadId?i?.get(e.threadId):void 0)??null;return(0,r.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>n(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),n(e))},className:"flex w-full cursor-pointer gap-2.5 border-t border-light-2 px-4 py-3 text-left hover:bg-purple/5 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-purple dark:border-dark-3 dark:hover:bg-dark-3",children:[(0,r.jsx)(h.Ay,{user:{firstName:e.authorName,emailAddress:e.authorEmail,fileS3Id:e.authorAvatar},name:e.authorName,size:"sm"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("p",{className:"flex items-baseline gap-2 text-sm",children:[(0,r.jsx)("span",{className:"truncate font-semibold text-dark-1 dar
1k:text-light-1",children:e.authorName||e.authorEmail||"Someone"}),e.createdAt&&(0,r.jsx)("span",{className:"shrink-0 text-xs text-dark-5 dark:text-light-4",children:(0,f.r6)(e.createdAt)})]}),(0,r.jsx)("p",{className:"mt-0.5 text-sm leading-relaxed text-pretty text-dark-2 dark:text-light-1",children:(0,g.ND)(e.body)}),(0,r.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",children:[null!=l&&(0,r.jsxs)("span",{className:"inline-flex h-5 shrink-0 items-center rounded border border-light-3 bg-light-2 px-1.5 text-[11px] font-semibold text-dark-4 dark:border-dark-4 dark:bg-dark-3 dark:text-light-2",children:["#",l]}),(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-xs text-dark-6 dark:text-light-5",children:[(0,r.jsx)("span",{className:"shrink-0",children:s}),(0,r.jsx)(h.Ay,{user:{firstName:e.markedByName,fileS3Id:e.markedByAvatar},name:e.markedByName,size:"xs",className:"h-4 w-4 text-[9px]"}),(0,r.jsxs)("span",{className:"truncate",children:[t,a?` \xb7 ${a}`:""]})]})]})]}),(0,r.jsx)(y,{mark:e.mark})]},`${e.threadId}-${e.id}`)})]})]})};var $=s(56414);let E=a.forwardRef(function(e,t){let{title:s,titleId:r,...l}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},l),s?a.createElement("title",{id:r},s):null,a.createElement("path",{fillRule:"evenodd",d:"m6.72 5.66 11.62 11.62A8.25 8.25 0 0 0 6.72 5.66Zm10.56 12.68L5.66 6.72a8.25 8.25 0 0 0 11.62 11.62ZM5.105 5.106c3.807-3.808 9.98-3.808 13.788 0 3.808 3.807 3.808 9.98 0 13.788-3.807 3.808-9.98 3.808-13.788 0-3.808-3.807-3.808-9.98 0-13.788Z",clipRule:"evenodd"}))}),M=[{name:"Post Number",styles:"min-w-17.5",inputType:"text",searchIcon:!0},{name:"Posted By",styles:"min-w-35",inputType:"text",arrowIcon:!0},{name:"Attention To",styles:"min-w-32.5",inputType:"text",calendarIcon:!0},{name:"Posted date",styles:"min-w-25",inputType:"date",searchIcon:!0},{name:"Closed date",styles:"min-w-25",inputType:"date",arrowIcon:!0},{name:"Status",styles:"min-w-20",inputType:"text",arrowIcon:!0},{name:"Days Open",styles:"min-w-20",inputType:"number",arrowIcon:!0},{name:"",styles:"min-w-20",inputType:"text",arrowIcon:!1}],O={"Post Number":"postNumber","Posted By":"firstName","Attention To":"taggedUser.firstName","Posted date":"createdAt","Closed date":"updatedAt",Status:"status","Days Open":"daysOpen"},L=(e,t)=>t.split(".").reduce((e,t)=>null==e?e:e[t],e),U=e=>{let{headers:t,onHeaderClick:s,sortConfig:a}=e;return(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{className:"border-b bg-light-2 dark:bg-dark-3 border-light-3 dark:border-dark-3",children:t.map((e,l)=>{let d=l!==t.length-1;return(0,r.jsx)("th",{scope:"col",className:`px-4 py-3 first:pl-8 align-top text-center ${e.styles} ${d?"cursor-pointer hover:bg-light-3 dark:hover:bg-dark-4":""}`,onClick:()=>d&&s(e.name,l),"aria-sort":d&&a?.key===e.name?"asc"===a.direction?"ascending":"descending":void 0,children:(0,r.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("p",{className:"mr-1 text-sm font-medium text-dark-2 dark:text-light-1",children:e.name}),d&&(0,r.jsx)(b.LTM,{className:`w-4 h-4 ${a?.key===e.name?"text-purple dark:text-yellow":"text-dark-2 dark:text-light-1"}`})]})})},l)})})})},R=e=>{let{data:t,onLastItemVisible:s,isLoading:l}=e,i=(0,a.useRef)(null),n=(0,d.wA)(),c=e=>e?new Date(e).toLocaleDateString("en-US",{day:"numeric",month:"numeric",year:"numeric"}):"-";return((0,a.useEffect)(()=>{if(!i.current||0===t.length)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&s&&s()},{threshold:.1});return e.observe(i.current),()=>{i.current&&e.unobserve(i.current)}},[t.length,s]),l)?(0,r.jsx)("tbody",{children:Array.from({length:6}).map((e,t)=>(0,r.jsxs)("tr",{className:"border-b border-light-3 dark:border-dark-3",children:[(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(m.A,{className:"h-4 w-10 rounded"})})}),(0,r.jsx)("td",{className:"py-5 px-4",children:(0,r.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,r.jsx)(m.A,{className:"h-8 w-8 rounded-full shrink-0"}),(0,r.jsx)(m.A,{className:"h-4 w-20 rounded"})]})}),(0,r.jsx)("td",{className:"py-5 px-4",children:(0,r.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,r.jsx)(m.A,{className:"h-8 w-8 rounded-full shrink-0"}),(0,r.jsx)(m.A,{className:"h-4 w-20 rounded"})]})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(m.A,{className:"h-4 w-16 rounded"})})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(m.A,{className:"h-4 w-16 rounded"})})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(m.A,{className:"h-6 w-6 rounded-full"})})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(m.A,{className:"h-4 w-8 rounded"})})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(m.A,{className:"h-8 w-14 roun
1ded"})})})]},t))}):(0,r.jsx)("tbody",{children:t.map((e,s)=>(0,r.jsxs)("tr",{className:"border-b border-light-3 dark:border-dark-3 hover:bg-purple/5 dark:hover:bg-dark-3",ref:s===t.length-1?i:null,children:[(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("p",{className:"text-sm font-medium text-purple dark:text-yellow",children:e.postNumber?`#${e.postNumber}`:"-"})}),(0,r.jsx)("td",{className:"py-5 px-4",children:(0,r.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,r.jsx)(h.Ay,{user:e,size:"sm",alt:"user-post-overview"}),(0,r.jsxs)("p",{className:"text-sm text-dark-2 dark:text-light-1 w-15",children:[e.firstName," ",e.lastName]})]})}),(0,r.jsx)("td",{className:"py-5 px-4",children:e.taggedUser?(0,r.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,r.jsx)(h.Ay,{user:e.taggedUser,size:"sm",alt:"taggeduser-post-overview"}),(0,r.jsxs)("p",{className:"text-sm text-dark-2 dark:text-light-1 w-10",children:[e.taggedUser.firstName," ",e.taggedUser.lastName]})]}):(0,r.jsx)("div",{className:"flex items-center justify-center space-x-3",children:(0,r.jsx)("p",{className:"text-sm text-dark-2 dark:text-light-1",children:"-"})})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("p",{className:"text-sm text-dark-2 dark:text-light-1",children:c(e.createdAt)})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("p",{className:"text-sm text-dark-2 dark:text-light-1",children:e.updatedAt?c(e.updatedAt):"-"})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("div",{className:"flex justify-center",children:(e=>"Solved"===e?(0,r.jsx)($.A,{className:"w-6 h-6 text-green-1"}):"Blocked"===e?(0,r.jsx)(E,{className:"w-6 h-6 text-red-1"}):"-")(e.status)})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)("p",{className:"text-sm text-dark-2 dark:text-light-1",children:(e=>{let t=Number(e);return Number.isFinite(t)?Math.round(t):0})(e.daysOpen)})}),(0,r.jsx)("td",{className:"py-5 px-4 text-center",children:(0,r.jsx)(o.Ay,{variant:"outline",size:"sm",onClick:()=>{n((0,A.J)({isOpen:!0,postId:e?.postId}))},children:"View"})})]},s))})},P=e=>{let{data:t,isLoading:s}=e,[l,d]=(0,a.useState)(null),i=(0,a.useMemo)(()=>{if(!l)return t||[];let e=O[l.key]||l.key,s="asc"===l.direction?1:-1;return[...t||[]].sort((t,r)=>{let a=L(t,e)??"",d=L(r,e)??"";return l.key.toLowerCase().includes("date")?(a=new Date(a).getTime()||0,d=new Date(d).getTime()||0):isNaN(Number(a))||isNaN(Number(d))||""===a||""===d?(a=String(a).toLowerCase(),d=String(d).toLowerCase()):(a=Number(a),d=Number(d)),a>d?s:a<d?-s:0})},[t,l]);return(0,r.jsx)("div",{className:"flex h-full flex-col overflow-hidden rounded-lg border border-light-3 dark:border-dark-3",children:(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-x-auto overflow-y-auto",children:(0,r.jsxs)("table",{className:"w-full min-w-200 table-auto",children:[(0,r.jsx)(U,{headers:M,onHeaderClick:(e,t)=>{t!==M.length-1&&d(t=>t?.key===e?{key:e,direction:"asc"===t.direction?"desc":"asc"}:{key:e,direction:"asc"})},sortConfig:l}),(0,r.jsx)(R,{data:i,isLoading:s})]})})})},z=(0,l.default)(()=>Promise.all([s.e(78882),s.e(6327),s.e(81857),s.e(93048)]).then(s.bind(s,81857)),{loadableGenerated:{webpack:()=>[81857]},ssr:!1}),F=e=>{let t=Number(e);return Number.isFinite(t)?Math.round(t):0},_=(e,t)=>[e,t].filter(Boolean).join(" ").trim(),G=e=>{let{label:t,value:s,unit:a,dotClass:l,boxClass:d,loading:i}=e;return(0,r.jsxs)("div",{className:`min-w-0 flex-1 rounded-lg border p-3 ${d}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[l&&(0,r.jsx)("span",{className:`h-2 w-2 shrink-0 rounded-full ${l}`}),(0,r.jsx)("p",{className:"truncate text-xs font-semibold text-dark-4 dark:text-light-2",children:t})]}),i?(0,r.jsx)(m.A,{className:"mt-2 h-7 w-10 rounded"}):(0,r.jsxs)("p",{className:"mt-2 text-2xl leading-none font-bold text-dark-1 dark:text-light-0",children:[s,a&&(0,r.jsx)("span",{className:"ml-0.5 text-sm font-bold text-dark-6 dark:text-light-5",children:a})]})]})},K=e=>{let{title:t,children:s}=e;return(0,r.jsxs)("section",{className:"rounded-lg border border-light-3 bg-light-0 p-4 shadow-sm dark:border-dark-3 dark:bg-dark-2",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-dark-2 dark:text-light-2",children:t}),(0,r.jsx)("div",{className:"mt-3.5 flex gap-2.5",children:s})]})},Z=e=>{let{blocked:t}=e;return t?(0,r.jsxs)("span",{className:"inline-flex h-7 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md border border-red-1/40 bg-red-1/10 px-2.5 text-sm font-medium text-dark-2 dark:border-red-1/35 dar
1k:bg-red-1/15 dark:text-light-0",children:[(0,r.jsx)(i,{className:"h-4 w-4 shrink-0 text-red-1"}),"Blocker"]}):(0,r.jsxs)("span",{className:"inline-flex h-7 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md border border-green-1/45 bg-green-1/15 px-2.5 text-sm font-medium text-dark-2 dark:border-green-1/40 dark:text-light-0",children:[(0,r.jsx)(n.A,{className:"h-4 w-4 shrink-0 text-green-1"}),"Solved"]})},W=e=>{let{rows:t,loading:s,onOpenDetails:a}=e,l=C();return(0,r.jsxs)("section",{className:"flex h-full min-h-0 flex-col rounded-lg border border-light-3 bg-light-0 shadow-sm dark:border-dark-3 dark:bg-dark-2",children:[(0,r.jsxs)("div",{className:"flex shrink-0 items-baseline gap-3 px-4 py-3",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-dark-2 dark:text-light-2",children:"Flow status"}),a&&(0,r.jsx)("button",{type:"button",onClick:a,className:"ml-auto cursor-pointer text-xs font-semibold text-purple hover:underline dark:text-yellow",children:"Details ›"})]}),(0,r.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[s&&Array.from({length:4}).map((e,t)=>(0,r.jsxs)("div",{className:"flex gap-2.5 border-t border-light-2 px-4 py-3 dark:border-dark-3",children:[(0,r.jsx)(m.A,{className:"h-7 w-7 shrink-0 rounded-full"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)(m.A,{className:"h-3.5 w-3/4 rounded"}),(0,r.jsx)(m.A,{className:"h-3 w-1/2 rounded"})]})]},t)),!s&&0===t.length&&(0,r.jsx)("p",{className:"px-4 py-8 text-center text-sm text-dark-4 dark:text-light-1",children:"No posts have been tagged to a single person yet."}),!s&&t.map((e,t)=>{let s="Blocked"===e.status,a=F(e.daysOpen),d=e.taggedUser?_(e.taggedUser.firstName,e.taggedUser.lastName):"",i=(0,g.ND)(e.postDescription||"").trim(),n=!s&&e.updatedAt?` \xb7 ${(0,f.r6)(e.updatedAt)}`:"";return(0,r.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>l({threadId:e.postId,markThreadKind:"post"}),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),l({threadId:e.postId,markThreadKind:"post"}))},className:"flex cursor-pointer gap-2.5 border-t border-light-2 px-4 py-3 text-left hover:bg-purple/5 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-purple dark:border-dark-3 dark:hover:bg-dark-3",children:[(0,r.jsx)(h.Ay,{user:{firstName:e.firstName,lastName:e.lastName,fileS3Id:e.fileS3Id},name:_(e.firstName,e.lastName),size:"sm"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("p",{className:"flex items-baseline gap-2 text-sm",children:[(0,r.jsx)("span",{className:"truncate font-semibold text-dark-1 dark:text-light-1",children:_(e.firstName,e.lastName)||"Unknown"}),e.createdAt&&(0,r.jsx)("span",{className:"shrink-0 text-xs text-dark-5 dark:text-light-4",children:(0,f.r6)(e.createdAt)})]}),i&&(0,r.jsx)("p",{className:"mt-0.5 truncate text-sm text-dark-2 dark:text-light-1",children:i}),(0,r.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"inline-flex h-5 shrink-0 items-center rounded border border-light-3 bg-light-2 px-1.5 text-[11px] font-semibold text-dark-4 dark:border-dark-4 dark:bg-dark-3 dark:text-light-2",children:["#",e.postNumber??"—"]}),(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-xs text-dark-6 dark:text-light-5",children:[(0,r.jsx)("span",{className:"shrink-0",children:s?"waiting on":"solved by"}),e.taggedUser&&(0,r.jsx)(h.Ay,{user:{firstName:e.taggedUser.firstName,lastName:e.taggedUser.lastName,fileS3Id:e.taggedUser.fileS3Id},name:d,size:"xs",className:"h-4 w-4 text-[9px]"}),(0,r.jsxs)("span",{className:"truncate",children:[d||"someone",n]})]})]})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2 self-center",children:[(0,r.jsxs)("span",{title:"Days the post has been open",className:`inline-flex h-6 items-center rounded-md border px-2 text-xs font-bold whitespace-nowrap ${(e=>e>=14?"border-red-1/30 bg-red-1/10 text-[#991b1b] dark:border-red-1/35 dark:bg-red-1/15 dark:text-red-1":e>=1?"border-[#d97706]/35 bg-[#d97706]/10 text-[#7c4a06] dark:border-[#d97706]/40 dark:bg-[#d97706]/15 dark:text-yellow":"border-light-3 bg-light-1 text-dark-5 dark:border-dark-4 dark:bg-dark-3 dark:text-light-2")(a)}`,children:[a,"d"]}),(0,r.jsx)(Z,{blocked:s})]})]},e.postId||`flow-${t}`)})]})]})},H="#6ca958",J="#d97706",V="#b91c1c",q="#0f172a",X="#ffffff",Y=e=>{let{title:t,subtitle:s,legend:a,rows:l,loading:d,empty:i,trailingLabel:n,trailingTitle:o}=e;return(0,r.jsxs)("section",{className:"flex h-full min-h-0 flex-col rounded-lg border border-light-3 bg-light-0 pb-4 shadow-sm dark:border-dark-3 dark:bg-dark-2",children:[(0,r.jsxs)("div",{className:"flex shrink-0 flex-wrap items-baseline gap-x-3 gap-y-1 px-4 py-3",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-dark-2 dark:text-light-2",children:t}),s&&(0,r.jsx)("p",{className:"text-xs text-dark-6 dark:text-light-5",children:s}),(0,r.jsx)("div",{className:"ml-auto flex items-center gap-2.5",children:a.map(e=>(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-medium text-dark-4 dark:text-light-2",children:[(0,r.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-sm",style:{background:e.color}}),e.label]},e.label))})]}),n&&!d&&l.length>0&&(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2.5 px-4 pb-1.5",children:[(0,r.jsx)("span",{className:"w-7 shrink-0"}),(0,r.jsx)("span",{className:"w-24 shrink-0"}),(0,r.jsx)("span",{className:"min-w-0 flex-1"}),(0,r.jsx)("span",{className:"w-24 shrink-0 text-right text-[10px] leading-tight font-semibold text-dark-6 dark:text-light-5",children:n})]}),(0,r.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto px-4",children:[d&&Array.from({length:4}).map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(m.A,{className:"h-7 w-7 shrink-0 rounded-full"}),(0,r.jsx)(m.A,{className:"h-3.5 w-20 shrink-0 rounded"}),(0,r.jsx)(m.A,{className:"h-2.5 flex-1 rounded"})]},t)),!d&&0===l.length&&(0,r.jsx)("p",{className:"py-6 text-center text-sm text-dark-4 dark:text-light-1",children:i}),!d&&l.map(e=>{let t=e.segments.reduce((e,t)=>
1e+t.value,0),s=e.segments.map(e=>`${e.label}: ${e.value}`).join(" \xb7 ");return(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(h.Ay,{user:{firstName:e.firstName,lastName:e.lastName,fileS3Id:e.fileS3Id},name:e.name,size:"xs"}),(0,r.jsx)("span",{className:"w-24 shrink-0 truncate text-sm font-medium text-dark-1 dark:text-light-1",children:e.name}),(0,r.jsx)("div",{role:"img","aria-label":`${e.name} — ${s}`,title:s,className:"flex h-5 min-w-0 flex-1 gap-0.5 rounded-full bg-light-2 dark:bg-dark-4",children:t>0&&e.segments.filter(e=>e.value>0).map(e=>(0,r.jsx)("span",{className:"flex h-full items-center justify-center text-[11px] font-bold first:rounded-l-full last:rounded-r-full",style:{background:e.color,color:e.fg,flexGrow:e.value,flexBasis:0,minWidth:"1.75rem"},children:e.value},e.label))}),null!=e.trailing&&(0,r.jsx)("span",{title:o,className:"w-24 shrink-0 text-right text-xs font-bold text-dark-1 dark:text-light-1",children:e.trailing})]},e.key)})]})]})},Q=()=>{let{viewerModal:e,selectedFileOrFolder:t}=(0,d.d4)(e=>e.contextMenu),{selectedProject:s}=(0,d.d4)(e=>e.project),[l,i]=(0,a.useState)(!1),[n,m]=(0,a.useState)(!1),[h,{data:g,currentData:f,error:b,isLoading:N,isFetching:j}]=(0,u.Dh)(),y=s?.guid,v=s?.teamMembers?.find(e=>!0===e.owner)?.emailAddress||"",w=(0,a.useCallback)(()=>{y&&h({projectId:y,postsOverview:!0,email:v})},[y,v,h]);(0,a.useEffect)(()=>{w()},[w]);let{data:A,error:I,isFetching:C,refetch:D}=(0,p.a6)({projectId:y,limit:100},{skip:!y});(0,a.useEffect)(()=>{if(!y)return;let e=()=>{w(),D()},t=null,s=(0,k.e)(y,null,s=>{"mark"===s.op&&(t&&clearTimeout(t),t=setTimeout(e,800))}),r=0,a=()=>{"visible"===document.visibilityState&&(Date.now()-r<2e3||(r=Date.now(),e()))};return document.addEventListener("visibilitychange",a),window.addEventListener("focus",a),()=>{s(),t&&clearTimeout(t),document.removeEventListener("visibilitychange",a),window.removeEventListener("focus",a)}},[y,w,D]);let S=(0,a.useMemo)(()=>A?.items??[],[A]),$=(0,a.useMemo)(()=>{let e=e=>S.filter(t=>t.mark===e).length;return{decision:g?.totalDecisions??e("decision"),considering:g?.totalUnderConsideration??e("considering"),rejected:g?.totalRejected??e("rejected")}},[S,g]),E=(0,a.useMemo)(()=>g?.postsOverview??[],[g]),M=(0,a.useMemo)(()=>{let e=new Map;return S.forEach(t=>{let s=t.markedBy||t.markedByName||"unknown",r=e.get(s)??{name:t.markedByName||"Unknown",avatar:t.markedByAvatar,d:0,c:0,r:0};"decision"===t.mark?r.d++:"considering"===t.mark?r.c++:"rejected"===t.mark&&r.r++,e.set(s,r)}),[...e.entries()].map(e=>{let[t,s]=e;return{key:t,name:s.name,firstName:s.name,fileS3Id:s.avatar,segments:[{label:"Decision",value:s.d,color:H,fg:q},{label:"Considering",value:s.c,color:J,fg:q},{label:"Dropped",value:s.r,color:V,fg:X}]}}).sort((e,t)=>t.segments.reduce((e,t)=>e+t.value,0)-e.segments.reduce((e,t)=>e+t.value,0))},[S]),O=(0,a.useMemo)(()=>{let e=new Map;return E.forEach(t=>{t.postId&&null!=t.postNumber&&e.set(t.postId,t.postNumber)}),e},[E]),L=(0,a.useMemo)(()=>(g?.decisionOverview??[]).map(e=>({key:`${e.firstName??""}-${e.lastName??""}-${e.fileS3Id??""}`,name:_(e.firstName,e.lastName)||"Unknown",firstName:e.firstName,lastName:e.lastName,fileS3Id:e.fileS3Id,segments:[{label:"Blockers",value:e.blocked,color:V,fg:X},{label:"Solved",value:e.solved,color:H,fg:q}],trailing:`${F(e.avgResponseTime)}d`})).sort((e,t)=>t.segments[0].value-e.segments[0].value||t.segments[1].value-e.segments[1].value),[g]),U=(0,a.useMemo)(()=>E.filter(e=>"Blocked"===e.status||"Solved"===e.status).sort((e,t)=>{let s=+("Blocked"!==e.status),r=+("Blocked"!==t.status);return s!==r?s-r:F(t.daysOpen)-F(e.daysOpen)}),[E]),R=!f&&(N||j),Z=I?.status===503;return b?(0,r.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center",children:[(0,r.jsx)("p",{className:"mb-4 text-2xl font-medium text-red-1",children:"Error loading insights"}),(0,r.jsx)("p",{className:"mb-4 text-center text-dark-4 dark:text-light-1",children:"Unable to fetch insights data. Please try again."}),(0,r.jsx)(o.Ay,{variant:"yellow",onClick:w,children:"Retry"})]}):(0,r.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden pb-1",children:[(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-4 md:p-0 lg:overflow-hidden",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 lg:h-full",children:[(0,r.jsxs)("div",{className:"grid shrink-0 grid-cols-1 gap-4 lg:grid-cols-2",children:[(0,r.jsxs)(K,{title:"Decisions",children:[(0,r.jsx)(G,{label:"Decision",value:String($.decision),dotClass:"bg-green-1",boxClass:"border-green-1/30 bg-green-1/8 dark:bg-green-1/10",loading:C&&!A}),(0,r.jsx)(G,{label:"Considering",value:String($.considering),dotClass:"bg-yellow",boxClass:"border-yellow/40 bg-yellow/10",loading:C&&!A}),(0,r.jsx)(G,{label:"Dropped",value:String($.rejected),dotClass:"bg-red-1",boxClass:"border-red-1/30 bg-red-1/8 dark:bg-red-1/10",loading:C&&!A})]}),(0,r.jsxs)(K,{title:"Flow",children:[(0,r.jsx)(G,{label:"Open blockers",value:String(g?.totalBlockers??0),dotClass:"bg-red-1",boxClass:"border-red-1/30 bg-red-1/8 dark:bg-red-1/10",loading:R}),(0,r.jsx)(G,{label:"Solved",value:String(g?.totalSolved??0),dotClass:"bg-green-1",boxClass:"border-green-1/30 bg-green-1/8 dark:bg-green-1/10",loading:R}),(0,r.jsx)(G,{label:"Avg. response",value:String(F(g?.totalAvgResponseTime)),unit:"d",dotClass:"bg-yellow",boxClass:"border-yellow/40 bg-yellow/10",loading:R})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:min-h-0 lg:flex-1 lg:grid-cols-2",children:[(0,r.jsx)("div",{className:"h-100 min-h-0 lg:h-full",children:(0,r.jsx)(B,{items:S,loading:C&&!A,indexMissing:Z,failed:!!I&&!Z,onOpenLog:()=>i(!0),postNumbers:O})}),(0,r.jsx)("div",{className:"h-100 min-h-0 lg:h-full",children:(0,r.jsx)(W,{rows:U,loading:R,onOpenDetails:()=>m(!0)})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:max-h-[45%] lg:min-h-0 lg:shrink-0 lg:grid-cols-2",children:[(0,r.jsx)(Y,{title:"Decisions Stats",legend:[{label:"Decision",color:H},{label:"Considering",color:J},{label:"Dropped",color:V}],rows:M,loading:C&&!A,empty:"Nobody has marked a comment yet."}),(0,r.jsx)(Y,{title:"Flow stats",legend:[{label:"Blockers",color:V},{label:"Solved",color:H}],rows:L,loading:R,empty:"No posts have been tagged to a single person yet.",trailingLabel:"Avg. Response Time (Days)",trailingTitle:"Average response time (days)"})]})]})}),(0,r.jsx)(c.A,{open:l,onClose:()=>i(!1),title:"Marks Status",size:"xl",children:(0,r.jsx)("div",{className:"h-[70dvh]",children:(0,r.jsx)(T,{postNumbers:O})})}),(0,r.jsx)(c.A,{open:n,onClose:()=>m(!1),title:"All posts",size:"full",children:(0,r.jsx)("div",{className:"h-[70dvh]",children:(0,r.jsx)(P,{data:E,isLoading:R})})}),(0,r.jsx)(x.default,{}),e&&t?.fileId&&(0,r.jsx)(z,{})]})}},44265:(e,t,s)=>{s.d(t,{A:()=>
1o});var r=s(12115),a=s(1213),l=s(74923),d=s(28079),i=s(86999),n=s(61962);let o=()=>{let{canEdit:e}=(0,l.A)(),{infoNotify:t}=(0,d.A)(),{selectedProject:s}=(0,a.d4)(e=>e.project),{navigationPath:o}=(0,a.d4)(e=>e.category);return(0,r.useCallback)(r=>{if(!(0,n.fj)(r))return!1;let a=s?.currentUserAccess,l=(Array.isArray(o)?o:[]).map(e=>e?.fileId);return t((a?.isExternal?"edit"===(0,i.nL)(a,r?.fileId,l):e)?n.mh:n.vO),!0},[e,t,s,o])}},56846:(e,t,s)=>{s.d(t,{Ht:()=>d,LS:()=>a,iR:()=>l});let r="idcTabHandoff",a=e=>{if(e?.file)try{sessionStorage.setItem(r,JSON.stringify(e))}catch{}},l=()=>{try{let e=sessionStorage.getItem(r);if(!e)return null;sessionStorage.removeItem(r);let t=JSON.parse(e);if(!t||"object"!=typeof t)return null;return t}catch{return null}},d=()=>{try{sessionStorage.removeItem(r)}catch{}}},61962:(e,t,s)=>{s.d(t,{GN:()=>b,Kr:()=>a,NY:()=>c,Vw:()=>g,X$:()=>m,fj:()=>o,mh:()=>k,po:()=>h,sg:()=>u,vO:()=>f,w4:()=>n,xn:()=>p,z3:()=>x,z4:()=>N});let r=["dwg","dxf","rvt"],a=10,l={dwg:"application/acad",dxf:"application/dxf",rvt:"application/octet-stream"},d={dwg:"DWG",dxf:"DXF",rvt:"RVT"},i=e=>e?.split(".").pop()?.toLowerCase()??"",n=e=>r.includes(i(e)),o=e=>n(e?.fileName??e?.name),c=e=>d[i(e)]??"",x=e=>l[i(e)]??"application/octet-stream",m=e=>(e?250:1024)*1048576,h=(e,t)=>e&&t,p={"application/acad":[".dwg"],"application/dxf":[".dxf"],"application/octet-stream":[".rvt"]},u="CAD files (DWG, DXF, RVT) are for sharing and download only. Preview, feed and blocker are not available yet — they will be enabled in a future update.",g="This upload contains a CAD file, so feed and blocker are turned off for every file in this upload. Remove the CAD file to post normally.",k="Preview is not available for this file type. You can download it instead.",f="Preview is not available for this file type. Ask an editor to share this file with you.",b=()=>`You can upload up to ${a} CAD files at a time.`,N=(e,t)=>`"${e}" is too large. CAD files must be under ${t?250:1024} MB on your current plan.`},68483:(e,t,s)=>{s.d(t,{$b:()=>o,Dh:()=>c});var r=s(21980),a=s(36317),l=s(61321),d=s(14012);let i=r.Mw||"",n=(0,a.cw)({baseUrl:i,prepareHeaders:d.GO}),o=(0,l.xP)({reducerPath:"insightApi",baseQuery:n,endpoints:e=>({getInsights:e.query({query:e=>{let{projectId:t,postsOverview:s,email:r}=e;return{url:"/insights",method:"GET",params:{projectId:t,...s&&{postsOverview:!0},...r&&{email:r}}}}})})}),{useLazyGetInsightsQuery:c,useGetInsightsQuery:x}=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.