1import{x as $,b6 as G,as as m,aq as dr,r as rt,j as e,J as O,bc as Hr,bQ as Kr,a6 as Ur,i as cr,a7 as Yr,a5 as Jr,G as jt,U as at,ac as Pe,a1 as wt,p as st,C as _e,P as mr,A as Qr,F as Xr,K as mt,S as Pt,w as Zr,bG as Nt,ah as ur,f as ea,bH as ta,h as Et,aj as ra,L as _t,u as aa,a3 as sa,z as na,bN as pr,bO as ne}from"./index-C7pX_ngj.js";import{M as ia}from"./messages-square-CN5wgmsa.js";import{H as Ye}from"./hash-CugeEDG8.js";import{E as oa}from"./ellipsis-DBrDs5KM.js";import{U as It}from"./user-plus-BXYWPUrw.js";import{C as la}from"./copy-DgjN2XQ4.js";import{T as da}from"./thumbs-up-BhxzFqTk.js";import{S as ca}from"./send-jy5kNUtp.js";import{D as ma,B as xr}from"./download-D5hVOl9N.js";import{A as ua}from"./arrow-up-right-DUs9GAH1.js";import{f as I,_ as hr,b as fr,c as pa,d as xa,i as F,e as kt,p as q,L as D,g as gr,h as At,j as vr,D as br,k as Ge,l as Z,m as X,S as ha,A as yr,n as fa,o as Q,q as ut,r as T,s as jr,G as wr,t as ga,u as va,v as Ie,w as Je,x as Ve,y as Nr,C as pt,z as ba,E as ya,F as ja,H as wa,I as Na,J as kr,K as Ar,M as Sr,N as Or,O as Ce,P as ka,Q as Aa,U as Ct,V as Pr,W as Sa,X as qe,Y as He,Z as Oa,R as Te,B as Tt,T as Re,a as Rt}from"./BarChart-xCmLluhs.js";import{L as Pa}from"./lock-Baa88GBg.js";import{M as Ea}from"./map-pin-CHbUEwf-.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const _a=$("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Ia=$("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Ca=$("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const Ta=$("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 22 * @license lucide-react v0.462.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const Ra=$("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 27 * @license lucide-react v0.462.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const La=$("ClipboardCopy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/** 32 * @license lucide-react v0.462.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const $a=$("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 37 * @license lucide-react v0.462.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */const Qe=$("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const Ma=$("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */const Da=$("MessageSquarePlus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const za=$("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const Fa=$("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const Ba=$("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const Wa=$("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree.
vendor: 25,466 bytes, lines 76-88
76 */const Er=$("SquareKanban",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const Ga=$("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const xt=$("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);var Va=["points","className","baseLinePoints","connectNulls"];function pe(){return pe=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])}return r},pe.apply(this,arguments)}function qa(r,t){if(r==null)return{};var s=Ha(r,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(s[a]=r[a])}return s}function Ha(r,t){if(r==null)return{};var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){if(t.indexOf(a)>=0)continue;s[a]=r[a]}return s}function Lt(r){return Ja(r)||Ya(r)||Ua(r)||Ka()}function Ka(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ua(r,t){if(r){if(typeof r=="string")return ht(r,t);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return ht(r,t)}}function Ya(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Ja(r){if(Array.isArray(r))return ht(r)}function ht(r,t){(t==null||t>r.length)&&(t=r.length);for(var s=0,a=new Array(t);s<t;s++)a[s]=r[s];return a}var $t=function(t){return t&&t.x===+t.x&&t.y===+t.y},Qa=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=[[]];return t.forEach(function(a){$t(a)?s[s.length-1].push(a):s[s.length-1].length>0&&s.push([])}),$t(t[0])&&s[s.length-1].push(t[0]),s[s.length-1].length<=0&&(s=s.slice(0,-1)),s},Ae=function(t,s){var a=Qa(t);s&&(a=[a.reduce(function(o,i){return[].concat(Lt(o),Lt(i))},[])]);var n=a.map(function(o){return o.reduce(function(i,l,u){return"".concat(i).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return a.length===1?"".concat(n,"Z"):n},Xa=function(t,s,a){var n=Ae(t,a);return"".concat(n.slice(-1)==="Z"?n.slice(0,-1):n,"L").concat(Ae(s.reverse(),a).slice(1))},Za=function(t){var s=t.points,a=t.className,n=t.baseLinePoints,o=t.connectNulls,i=qa(t,Va);if(!s||!s.length)return null;var l=G("recharts-polygon",a);if(n&&n.length){var u=i.stroke&&i.stroke!=="none",c=Xa(s,n,o);return m.createElement("g",{className:l},m.createElement("path",pe({},I(i,!0),{fill:c.slice(-1)==="Z"?i.fill:"none",stroke:"none",d:c})),u?m.createElement("path",pe({},I(i,!0),{fill:"none",d:Ae(s,o)})):null,u?m.createElement("path",pe({},I(i,!0),{fill:"none",d:Ae(n,o)})):null)}var d=Ae(s,o);return m.createElement("path",pe({},I(i,!0),{fill:d.slice(-1)==="Z"?i.fill:"none",className:l,d}))},es=hr,ts=pa,rs=fr;function as(r,t){return r&&r.length?es(r,rs(t),ts):void 0}var ss=as;const ns=dr(ss);var is=hr,os=fr,ls=xa;function ds(r,t){return r&&r.length?is(r,os(t),ls):void 0}var cs=ds;const ms=dr(cs);var us=["cx","cy","angle","ticks","axisLine"],ps=["ticks","tick","angle","tickFormatter","stroke"];function fe(r){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(r)}function Se(){return Se=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])}return r},Se.apply(this,arguments)}function Mt(r,t){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),s.push.apply(s,a)}return s}function ae(r){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?Mt(Object(s),!0).forEach(function(a){nt(r,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):Mt(Object(s)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(s,a))})}return r}function Dt(r,t){if(r==null)return{};var s=xs(r,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(s[a]=r[a])}return s}function xs(r,t){if(r==null)return{};var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){if(t.indexOf(a)>=0)continue;s[a]=r[a]}return s}function hs(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(r,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,Ir(a.key),a)}}function fs(r,t,s){return t&&zt(r.prototype,t),s&&zt(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r}function gs(r,t,s){return t=Xe(t),vs(r,_r()?Reflect.construct(t,s||[],Xe(r).constructor):t.apply(r,s))}function vs(r,t){if(t&&(fe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bs(r)}function bs(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function _r(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_r=function(){return!!r})()}function Xe(r){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},Xe(r)}function ys(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&ft(r,t)}function ft(r,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},ft(r,t)}function nt(r,t,s){return t=Ir(t),t in r?Object.defineProperty(r,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[t]=s,r}function Ir(r){var t=js(r,"string");return fe(t)=="symbol"?t:t+""}function js(r,t){if(fe(r)!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var a=s.call(r,t||"default");if(fe(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}var it=function(r){function t(){return hs(this,t),gs(this,t,arguments)}return ys(t,r),fs(t,[{key:"getTickValueCoord",value:function(a){var n=a.coordinate,o=this.props,i=o.angle,l=o.cx,u=o.cy;return q(l,u,n,i)}},{key:"getTickTextAnchor",value:function(){var a=this.props.orientation,n;switch(a){case"left":n="end";break;case"right":n="start";break;default:n="middle";break}return n}},{key:"getViewBox",value:function(){var a=this.props,n=a.cx,o=a.cy,i=a.angle,l=a.ticks,u=ns(l,function(d){return d.coordinate||0}),c=ms(l,function(d){return d.coordinate||0});return{cx:n,cy:o,startAngle:i,endAngle:i,innerRadius:c.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.cx,o=a.cy,i=a.angle,l=a.ticks,u=a.axisLine,c=Dt(a,us),d=l.reduce(function(v,f){return[Math.min(v[0],f.coordinate),Math.max(v[1],f.coordinate)]},[1/0,-1/0]),x=q(n,o,d[0],i),h=q(n,o,d[1],i),y=ae(ae(ae({},I(c,!1)),{},{fill:"none"},I(u,!1)),{},{x1:x.x,y1:x.y,x2:h.x,y2:h.y});return m.createElement("line",Se({className:"recharts-polar-radius-axis-line"},y))}},{key:"renderTicks",value:function(){var a=this,n=this.props,o=n.ticks,i=n.tick,l=n.angle,u=n.tickFormatter,c=n.stroke,d=Dt(n,ps),x=this.getTickTextAnchor(),h=I(d,!1),y=I(i,!1),v=o.map(function(f,b){var w=a.getTickValueCoord(f),j=ae(ae(ae(ae({textAnchor:x,transform:"rotate(".concat(90-l,", ").concat(w.x,", ").concat(w.y,")")},h),{},{stroke:"none",fill:c},y),{},{index:b},w),{},{payload:f});return m.createElement(D,Se({className:G("recharts-polar-radius-axis-tick",gr(i)),key:"tick-".concat(f.coordinate)},At(a.props,f,b)),t.renderTickItem(i,j,u?u(f.value,b):f.value))});return m.createElement(D,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var a=this.props,n=a.ticks,o=a.axisLine,i=a.tick;return!n||!n.length?null:m.createElement(D,{className:G("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),i&&this.renderTicks(),vr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(a,n,o){var i;return m.isValidElement(a)?i=m.cloneElement(a,n):F(a)?i=a(n):i=m.createElement(kt,Se({},n,{className:"recharts-polar-radius-axis-tick-value"}),o),i}}])}(rt.PureComponent);nt(it,"displayName","PolarRadiusAxis");nt(it,"axisType","radiusAxis");nt(it,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function ge(r){"@babel/helpers - typeof";return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(r)}function ie(){return ie=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])}return r},ie.apply(this,arguments)}function Ft(r,t){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),s.push.apply(s,a)}return s}function se(r){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?Ft(Object(s),!0).forEach(function(a){ot(r,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):Ft(Object(s)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(s,a))})}return r}function ws(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Bt(r,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,Tr(a.key),a)}}function Ns(r,t,s){return t&&Bt(r.prototype,t),s&&Bt(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r}function ks(r,t,s){return t=Ze(t),As(r,Cr()?Reflect.construct(t,s||[],Ze(r).constructor):t.apply(r,s))}function As(r,t){if(t&&(ge(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ss(r)}function Ss(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Cr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cr=function(){return!!r})()}function Ze(r){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},Ze(r)}function Os(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&>(r,t)}function gt(r,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},gt(r,t)}function ot(r,t,s){return t=Tr(t),t in r?Object.defineProperty(r,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[t]=s,r}function Tr(r){var t=Ps(r,"string");return ge(t)=="symbol"?t:t+""}function Ps(r,t){if(ge(r)!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var a=s.call(r,t||"default");if(ge(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}var Es=Math.PI/180,Wt=1e-5,lt=function(r){function t(){return ws(this,t),ks(this,t,arguments)}return Os(t,r),Ns(t,[{key:"getTickLineCoord",value:function(a){var n=this.props,o=n.cx,i=n.cy,l=n.radius,u=n.orientation,c=n.tickSize,d=c||8,x=q(o,i,l,a.coordinate),h=q(o,i,l+(u==="inner"?-1:1)*d,a.coordinate);return{x1:x.x,y1:x.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(a){var n=this.props.orientation,o=Math.cos(-a.coordinate*Es),i;return o>Wt?i=n==="outer"?"start":"end":o<-Wt?i=n==="outer"?"end":"start":i="middle",i}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.cx,o=a.cy,i=a.radius,l=a.axisLine,u=a.axisLineType,c=se(se({},I(this.props,!1)),{},{fill:"none"},I(l,!1));if(u==="circle")return m.createElement(br,ie({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:o,r:i}));var d=this.props.ticks,x=d.map(function(h){return q(n,o,i,h.coordinate)});return m.createElement(Za,ie({className:"recharts-polar-angle-axis-line"},c,{points:x}))}},{key:"renderTicks",value:function(){var a=this,n=this.props,o=n.ticks,i=n.tick,l=n.tickLine,u=n.tickFormatter,c=n.stroke,d=I(this.props,!1),x=I(i,!1),h=se(se({},d),{},{fill:"none"},I(l,!1)),y=o.map(function(v,f){var b=a.getTickLineCoord(v),w=a.getTickTextAnchor(v),j=se(se(se({textAnchor:w},d),{},{stroke:"none",fill:c},x),{},{index:f,payload:v,x:b.x2,y:b.y2});return m.createElement(D,ie({className:G("recharts-polar-angle-axis-tick",gr(i)),key:"tick-".concat(v.coordinate)},At(a.props,v,f)),l&&m.createElement("line",ie({className:"recharts-polar-angle-axis-tick-line"},h,b)),i&&t.renderTickItem(i,j,u?u(v.value,f):v.value))});return m.createElement(D,{className:"recharts-polar-angle-axis-ticks"},y)}},{key:"render",value:function(){var a=this.props,n=a.ticks,o=a.radius,i=a.axisLine;return o<=0||!n||!n.length?null:m.createElement(D,{className:G("recharts-polar-angle-axis",this.props.className)},i&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(a,n,o){var i;return m.isValidElement(a)?i=m.cloneElement(a,n):F(a)?i=a(n):i=m.createElement(kt,ie({},n,{className:"recharts-polar-angle-axis-tick-value"}),o),i}}])}(rt.PureComponent);ot(lt,"displayName","PolarAngleAxis");ot(lt,"axisType","angleAxis");ot(lt,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Ke;function ve(r){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(r)}function xe(){return xe=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])}return r},xe.apply(this,arguments)}function Gt(r,t){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),s.push.apply(s,a)}return s}function E(r){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?Gt(Object(s),!0).forEach(function(a){B(r,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):Gt(Object(s)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(s,a))})}return r}function _s(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(r,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,Lr(a.key),a)}}function Is(r,t,s){return t&&Vt(r.prototype,t),s&&Vt(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r}function Cs(r,t,s){return t=et(t),Ts(r,Rr()?Reflect.construct(t,s||[],et(r).constructor):t.apply(r,s))}function Ts(r,t){if(t&&(ve(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rs(r)}function Rs(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Rr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rr=function(){return!!r})()}function et(r){return et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},et(r)}function Ls(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&vt(r,t)}function vt(r,t){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},vt(r,t)}function B(r,t,s){return t=Lr(t),t in r?Object.defineProperty(r,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[t]=s,r}function Lr(r){var t=$s(r,"string");return ve(t)=="symbol"?t:t+""}function $s(r,t){if(ve(r)!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var a=s.call(r,t||"default");if(ve(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}var U=function(r){function t(s){var a;return _s(this,t),a=Cs(this,t,[s]),B(a,"pieRef",null),B(a,"sectorRefs",[]),B(a,"id",Nr("recharts-pie-")),B(a,"handleAnimationEnd",function(){var n=a.props.onAnimationEnd;a.setState({isAnimationFinished:!0}),F(n)&&n()}),B(a,"handleAnimationStart",function(){var n=a.props.onAnimationStart;a.setState({isAnimationFinished:!1}),F(n)&&n()}),a.state={isAnimationFinished:!s.isAnimationActive,prevIsAnimationActive:s.isAnimationActive,prevAnimationId:s.animationId,sectorToFocus:0},a}return Ls(t,r),Is(t,[{key:"isActiveIndex",value:function(a){var n=this.props.activeIndex;return Array.isArray(n)?n.indexOf(a)!==-1:a===n}},{key:"hasActiveIndex",value:function(){var a=this.props.activeIndex;return Array.isArray(a)?a.length!==0:a||a===0}},{key:"renderLabels",value:function(a){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.label,l=o.labelLine,u=o.dataKey,c=o.valueKey,d=I(this.props,!1),x=I(i,!1),h=I(l,!1),y=i&&i.offsetRadius||20,v=a.map(function(f,b){var w=(f.startAngle+f.endAngle)/2,j=q(f.cx,f.cy,f.outerRadius+y,w),P=E(E(E(E({},d),f),{},{stroke:"none"},x),{},{index:b,textAnchor:t.getTextAnchor(j.x,f.cx)},j),k=E(E(E(E({},d),f),{},{fill:"none",stroke:f.fill},h),{},{index:b,points:[q(f.cx,f.cy,f.outerRadius,w),j]}),N=u;return Z(u)&&Z(c)?N="value":Z(u)&&(N=c),m.createElement(D,{key:"label-".concat(f.startAngle,"-").concat(f.endAngle,"-").concat(f.midAngle,"-").concat(b)},l&&t.renderLabelLineItem(l,k,"line"),t.renderLabelItem(i,P,X(f,N)))});return m.createElement(D,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(a){var n=this,o=this.props,i=o.activeShape,l=o.blendStroke,u=o.inactiveShape;return a.map(function(c,d){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&a.length!==1)return null;var x=n.isActiveIndex(d),h=u&&n.hasActiveIndex()?u:null,y=x?i:h,v=E(E({},c),{},{stroke:l?c.fill:c.stroke,tabIndex:-1});return m.createElement(D,xe({ref:function(b){b&&!n.sectorRefs.includes(b)&&n.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},At(n.props,c,d),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(d)}),m.createElement(ha,xe({option:y,isActive:x,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var a=this,n=this.props,o=n.sectors,i=n.isAnimationActive,l=n.animationBegin,u=n.animationDuration,c=n.animationEasing,d=n.animationId,x=this.state,h=x.prevSectors,y=x.prevIsAnimationActive;return m.createElement(yr,{begin:l,duration:u,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(y),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var f=v.t,b=[],w=o&&o[0],j=w.startAngle;return o.forEach(function(P,k){var N=h&&h[k],A=k>0?fa(P,"paddingAngle",0):0;if(N){var C=Q(N.endAngle-N.startAngle,P.endAngle-P.startAngle),S=E(E({},P),{},{startAngle:j+A,endAngle:j+C(f)+A});b.push(S),j=S.endAngle}else{var _=P.endAngle,p=P.startAngle,g=Q(0,_-p),L=g(f),R=E(E({},P),{},{startAngle:j+A,endAngle:j+L+A});b.push(R),j=R.endAngle}}),m.createElement(D,null,a.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(a){var n=this;a.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var i=++n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[i].focus(),n.setState({sectorToFocus:i});break}case"ArrowRight":{var l=--n.state.sectorToFocus<0?n.sectorRefs.length-1:n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[l].focus(),n.setState({sectorToFocus:l});break}case"Escape":{n.sectorRefs[n.state.sectorToFocus].blur(),n.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var a=this.props,n=a.sectors,o=a.isAnimationActive,i=this.state.prevSectors;return o&&n&&n.length&&(!i||!ut(i,n))?this.renderSectorsWithAnimation():this.renderSectorsStatically(n)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var a=this,n=this.props,o=n.hide,i=n.sectors,l=n.className,u=n.label,c=n.cx,d=n.cy,x=n.innerRadius,h=n.outerRadius,y=n.isAnimationActive,v=this.state.isAnimationFinished;if(o||!i||!i.length||!T(c)||!T(d)||!T(x)||!T(h))return null;var f=G("recharts-pie",l);return m.createElement(D,{tabIndex:this.props.rootTabIndex,className:f,ref:function(w){a.pieRef=w}},this.renderSectors(),u&&this.renderLabels(i),vr.renderCallByParent(this.props,null,!1),(!y||v)&&jr.renderCallByParent(this.props,i,!1))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return n.prevIsAnimationActive!==a.isAnimationActive?{prevIsAnimationActive:a.isAnimationActive,prevAnimationId:a.animationId,curSectors:a.sectors,prevSectors:[],isAnimationFinished:!0}:a.isAnimationActive&&a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curSectors:a.sectors,prevSectors:n.curSectors,isAnimationFinished:!0}:a.sectors!==n.curSectors?{curSectors:a.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(a,n){return a>n?"start":a<n?"end":"middle"}},{key:"renderLabelLineItem",value:function(a,n,o){if(m.isValidElement(a))return m.cloneElement(a,n);if(F(a))return a(n);var i=G("recharts-pie-label-line",typeof a!="boolean"?a.className:"");return m.createElement(Ge,xe({},n,{key:o,type:"linear",className:i}))}},{key:"renderLabelItem",value:function(a,n,o){if(m.isValidElement(a))return m.cloneElement(a,n);var i=o;if(F(a)&&(i=a(n),m.isValidElement(i)))return i;var l=G("recharts-pie-label-text",typeof a!="boolean"&&!F(a)?a.className:"");return m.createElement(kt,xe({},n,{alignmentBaseline:"middle",className:l}),i)}}])}(rt.PureComponent);Ke=U;B(U,"displayName","Pie");B(U,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!wr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});B(U,"parseDeltaAngle",function(r,t){var s=Ve(t-r),a=Math.min(Math.abs(t-r),360);return s*a});B(U,"getRealPieData",function(r){var t=r.data,s=r.children,a=I(r,!1),n=ga(s,pt);return t&&t.length?t.map(function(o,i){return E(E(E({payload:o},a),o),n&&n[i]&&n[i].props)}):n&&n.length?n.map(function(o){return E(E({},a),o.props)}):[]});B(U,"parseCoordinateOfPie",function(r,t){var s=t.top,a=t.left,n=t.width,o=t.height,i=va(n,o),l=a+Ie(r.cx,n,n/2),u=s+Ie(r.cy,o,o/2),c=Ie(r.innerRadius,i,0),d=Ie(r.outerRadius,i,i*.8),x=r.maxRadius||Math.sqrt(n*n+o*o)/2;return{cx:l,cy:u,innerRadius:c,outerRadius:d,maxRadius:x}});B(U,"getComposedData",function(r){var t=r.item,s=r.offset,a=t.type.defaultProps!==void 0?E(E({},t.type.defaultProps),t.props):t.props,n=Ke.getRealPieData(a);if(!n||!n.length)return null;var o=a.cornerRadius,i=a.startAngle,l=a.endAngle,u=a.paddingAngle,c=a.dataKey,d=a.nameKey,x=a.valueKey,h=a.tooltipType,y=Math.abs(a.minAngle),v=Ke.parseCoordinateOfPie(a,s),f=Ke.parseDeltaAngle(i,l),b=Math.abs(f),w=c;Z(c)&&Z(x)?(Je(!1,`Use "dataKey" to specify the value of pie, 88 the props "valueKey" will be deprecated
88in 1.1.0`),w="value"):Z(c)&&(Je(!1,`Use "dataKey" to specify the value of pie, 89 the props "valueKey" will be deprecated in 1.1.0`),w=x);var j=n.filter(function(S){return X(S,w,0)!==0}).length,P=(b>=360?j:j-1)*u,k=b-j*y-P,N=n.reduce(function(S,_){var p=X(_,w,0);return S+(T(p)?p:0)},0),A;if(N>0){var C;A=n.map(function(S,_){var p=X(S,w,0),g=X(S,d,_),L=(T(p)?p:0)/N,R;_?R=C.endAngle+Ve(f)*u*(p!==0?1:0):R=i;var we=R+Ve(f)*((p!==0?y:0)+L*k),Ne=(R+we)/2,re=(v.innerRadius+v.outerRadius)/2,Vr=[{name:g,value:p,payload:S,dataKey:w,type:h}],qr=q(v.cx,v.cy,re,Ne);return C=E(E(E({percent:L,cornerRadius:o,name:g,tooltipPayload:Vr,midAngle:Ne,middleRadius:re,tooltipPosition:qr},S),v),{},{value:X(S,w),startAngle:R,endAngle:we,payload:S,paddingAngle:Ve(f)*u}),C})}return E(E({},v),{},{sectors:A,data:n})});var Ms=["x1","y1","x2","y2","key"],Ds=["offset"];function ce(r){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(r)}function qt(r,t){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),s.push.apply(s,a)}return s}function M(r){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?qt(Object(s),!0).forEach(function(a){zs(r,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):qt(Object(s)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(s,a))})}return r}function zs(r,t,s){return t=Fs(t),t in r?Object.defineProperty(r,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[t]=s,r}function Fs(r){var t=Bs(r,"string");return ce(t)=="symbol"?t:t+""}function Bs(r,t){if(ce(r)!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var a=s.call(r,t||"default");if(ce(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function oe(){return oe=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])}return r},oe.apply(this,arguments)}function Ht(r,t){if(r==null)return{};var s=Ws(r,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(s[a]=r[a])}return s}function Ws(r,t){if(r==null)return{};var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){if(t.indexOf(a)>=0)continue;s[a]=r[a]}return s}var Gs=function(t){var s=t.fill;if(!s||s==="none")return null;var a=t.fillOpacity,n=t.x,o=t.y,i=t.width,l=t.height,u=t.ry;return m.createElement("rect",{x:n,y:o,ry:u,width:i,height:l,stroke:"none",fill:s,fillOpacity:a,className:"recharts-cartesian-grid-bg"})};function $r(r,t){var s;if(m.isValidElement(r))s=m.cloneElement(r,t);else if(F(r))s=r(t);else{var a=t.x1,n=t.y1,o=t.x2,i=t.y2,l=t.key,u=Ht(t,Ms),c=I(u,!1);c.offset;var d=Ht(c,Ds);s=m.createElement("line",oe({},d,{x1:a,y1:n,x2:o,y2:i,fill:"none",key:l}))}return s}function Vs(r){var t=r.x,s=r.width,a=r.horizontal,n=a===void 0?!0:a,o=r.horizontalPoints;if(!n||!o||!o.length)return null;var i=o.map(function(l,u){var c=M(M({},r),{},{x1:t,y1:l,x2:t+s,y2:l,key:"line-".concat(u),index:u});return $r(n,c)});return m.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function qs(r){var t=r.y,s=r.height,a=r.vertical,n=a===void 0?!0:a,o=r.verticalPoints;if(!n||!o||!o.length)return null;var i=o.map(function(l,u){var c=M(M({},r),{},{x1:l,y1:t,x2:l,y2:t+s,key:"line-".concat(u),index:u});return $r(n,c)});return m.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function Hs(r){var t=r.horizontalFill,s=r.fillOpacity,a=r.x,n=r.y,o=r.width,i=r.height,l=r.horizontalPoints,u=r.horizontal,c=u===void 0?!0:u;if(!c||!t||!t.length)return null;var d=l.map(function(h){return Math.round(h+n-n)}).sort(function(h,y){return h-y});n!==d[0]&&d.unshift(0);var x=d.map(function(h,y){var v=!d[y+1],f=v?n+i-h:d[y+1]-h;if(f<=0)return null;var b=y%t.length;return m.createElement("rect",{key:"react-".concat(y),y:h,x:a,height:f,width:o,stroke:"none",fill:t[b],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return m.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},x)}function Ks(r){var t=r.vertical,s=t===void 0?!0:t,a=r.verticalFill,n=r.fillOpacity,o=r.x,i=r.y,l=r.width,u=r.height,c=r.verticalPoints;if(!s||!a||!a.length)return null;var d=c.map(function(h){return Math.round(h+o-o)}).sort(function(h,y){return h-y});o!==d[0]&&d.unshift(0);var x=d.map(function(h,y){var v=!d[y+1],f=v?o+l-h:d[y+1]-h;if(f<=0)return null;var b=y%a.length;return m.createElement("rect",{key:"react-".concat(y),x:h,y:i,width:f,height:u,stroke:"none",fill:a[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return m.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},x)}var Us=function(t,s){var a=t.xAxis,n=t.width,o=t.height,i=t.offset;return kr(Ar(M(M(M({},Or.defaultProps),a),{}
vendor: 12,124 bytes, line 89
89,{ticks:Sr(a,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,s)},Ys=function(t,s){var a=t.yAxis,n=t.width,o=t.height,i=t.offset;return kr(Ar(M(M(M({},Or.defaultProps),a),{},{ticks:Sr(a,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,s)},me={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ue(r){var t,s,a,n,o,i,l=ba(),u=ya(),c=ja(),d=M(M({},r),{},{stroke:(t=r.stroke)!==null&&t!==void 0?t:me.stroke,fill:(s=r.fill)!==null&&s!==void 0?s:me.fill,horizontal:(a=r.horizontal)!==null&&a!==void 0?a:me.horizontal,horizontalFill:(n=r.horizontalFill)!==null&&n!==void 0?n:me.horizontalFill,vertical:(o=r.vertical)!==null&&o!==void 0?o:me.vertical,verticalFill:(i=r.verticalFill)!==null&&i!==void 0?i:me.verticalFill,x:T(r.x)?r.x:c.left,y:T(r.y)?r.y:c.top,width:T(r.width)?r.width:c.width,height:T(r.height)?r.height:c.height}),x=d.x,h=d.y,y=d.width,v=d.height,f=d.syncWithTicks,b=d.horizontalValues,w=d.verticalValues,j=wa(),P=Na();if(!T(y)||y<=0||!T(v)||v<=0||!T(x)||x!==+x||!T(h)||h!==+h)return null;var k=d.verticalCoordinatesGenerator||Us,N=d.horizontalCoordinatesGenerator||Ys,A=d.horizontalPoints,C=d.verticalPoints;if((!A||!A.length)&&F(N)){var S=b&&b.length,_=N({yAxis:P?M(M({},P),{},{ticks:S?b:P.ticks}):void 0,width:l,height:u,offset:c},S?!0:f);Je(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ce(_),"]")),Array.isArray(_)&&(A=_)}if((!C||!C.length)&&F(k)){var p=w&&w.length,g=k({xAxis:j?M(M({},j),{},{ticks:p?w:j.ticks}):void 0,width:l,height:u,offset:c},p?!0:f);Je(Array.isArray(g),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ce(g),"]")),Array.isArray(g)&&(C=g)}return m.createElement("g",{className:"recharts-cartesian-grid"},m.createElement(Gs,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),m.createElement(Vs,oe({},d,{offset:c,horizontalPoints:A,xAxis:j,yAxis:P})),m.createElement(qs,oe({},d,{offset:c,verticalPoints:C,xAxis:j,yAxis:P})),m.createElement(Hs,oe({},d,{horizontalPoints:A})),m.createElement(Ks,oe({},d,{verticalPoints:C})))}Ue.displayName="CartesianGrid";var Js=["layout","type","stroke","connectNulls","isRange","ref"],Qs=["key"],Mr;function be(r){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(r)}function Dr(r,t){if(r==null)return{};var s=Xs(r,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(s[a]=r[a])}return s}function Xs(r,t){if(r==null)return{};var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){if(t.indexOf(a)>=0)continue;s[a]=r[a]}return s}function le(){return le=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])}return r},le.apply(this,arguments)}function Kt(r,t){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),s.push.apply(s,a)}return s}function J(r){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?Kt(Object(s),!0).forEach(function(a){W(r,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):Kt(Object(s)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(s,a))})}return r}function Zs(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Ut(r,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,Fr(a.key),a)}}function en(r,t,s){return t&&Ut(r.prototype,t),s&&Ut(r,s),Object.defineProperty(r,"prototype",{writable:!1}),r}function tn(r,t,s){return t=tt(t),rn(r,zr()?Reflect.construct(t,s||[],tt(r).constructor):t.apply(r,s))}function rn(r,t){if(t&&(be(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return an(r)}function an(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function zr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zr=function(){return!!r})()}function tt(r){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},tt(r)}function sn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&bt(r,t)}function bt(r,t){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},bt(r,t)}function W(r,t,s){return t=Fr(t),t in r?Object.defineProperty(r,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[t]=s,r}function Fr(r){var t=nn(r,"string");return be(t)=="symbol"?t:t+""}function nn(r,t){if(be(r)!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var a=s.call(r,t||"default");if(be(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}var te=function(r){function t(){var s;Zs(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return s=tn(this,t,[].concat(n)),W(s,"state",{isAnimationFinished:!0}),W(s,"id",Nr("recharts-area-")),W(s,"handleAnimationEnd",function(){var i=s.props.onAnimationEnd;s.setState({isAnimationFinished:!0}),F(i)&&i()}),W(s,"handleAnimationStart",function(){var i=s.props.onAnimationStart;s.setState({isAnimationFinished:!1}),F(i)&&i()}),s}return sn(t,r),en(t,[{key:"renderDots",value:function(a,n,o){var i=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(i&&!l)return null;var u=this.props,c=u.dot,d=u.points,x=u.dataKey,h=I(this.props,!1),y=I(c,!0),v=d.map(function(b,w){var j=J(J(J({key:"dot-".concat(w),r:3},h),y),{},{index:w,cx:b.x,cy:b.y,dataKey:x,value:b.value,payload:b.payload,points:d});return t.renderDotItem(c,j)}),f={clipPath:a?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return m.createElement(D,le({className:"recharts-area-dots"},f),v)}},{key:"renderHorizontalRect",value:function(a){var n=this.props,o=n.baseLine,i=n.points,l=n.strokeWidth,u=i[0].x,c=i[i.length-1].x,d=a*Math.abs(u-c),x=Ce(i.map(function(h){return h.y||0}));return T(o)&&typeof o=="number"?x=Math.max(o,x):o&&Array.isArray(o)&&o.length&&(x=Math.max(Ce(o.map(function(h){return h.y||0})),x)),T(x)?m.createElement("rect",{x:u<c?u:u-d,y:0,width:d,height:Math.floor(x+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(a){var n=this.props,o=n.baseLine,i=n.points,l=n.strokeWidth,u=i[0].y,c=i[i.length-1].y,d=a*Math.abs(u-c),x=Ce(i.map(function(h){return h.x||0}));return T(o)&&typeof o=="number"?x=Math.max(o,x):o&&Array.isArray(o)&&o.length&&(x=Math.max(Ce(o.map(function(h){return h.x||0})),x)),T(x)?m.createElement("rect",{x:0,y:u<c?u:u-d,width:x+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(a){var n=this.props.layout;return n==="vertical"?this.renderVerticalRect(a):this.renderHorizontalRect(a)}},{key:"renderAreaStatically",value:function(a,n,o,i){var l=this.props,u=l.layout,c=l.type,d=l.stroke,x=l.connectNulls,h=l.isRange;l.ref;var y=Dr(l,Js);return m.createElement(D,{clipPath:o?"url(#clipPath-".concat(i,")"):null},m.createElement(Ge,le({},I(y,!0),{points:a,connectNulls:x,type:c,baseLine:n,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&m.createElement(Ge,le({},I(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:x,fill:"none",points:a})),d!=="none"&&h&&m.createElement(Ge,le({},I(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:x,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(a,n){var o=this,i=this.props,l=i.points,u=i.baseLine,c=i.isAnimationActive,d=i.animationBegin,x=i.animationDuration,h=i.animationEasing,y=i.animationId,v=this.state,f=v.prevPoints,b=v.prevBaseLine;return m.createElement(yr,{begin:d,duration:x,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(y),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var j=w.t;if(f){var P=f.length/l.length,k=l.map(function(S,_){var p=Math.floor(_*P);if(f[p]){var g=f[p],L=Q(g.x,S.x),R=Q(g.y,S.y);return J(J({},S),{},{x:L(j),y:R(j)})}return S}),N;if(T(u)&&typeof u=="number"){var A=Q(b,u);N=A(j)}else if(Z(u)||ka(u)){var C=Q(b,0);N=C(j)}else N=u.map(function(S,_){var p=Math.floor(_*P);if(b[p]){var g=b[p],L=Q(g.x,S.x),R=Q(g.y,S.y);return J(J({},S),{},{x:L(j),y:R(j)})}return S});return o.renderAreaStatically(k,N,a,n)}return m.createElement(D,null,m.createElement("defs",null,m.createElement("clipPath",{id:"animationClipPath-".concat(n)},o.renderClipRect(j))),m.createElement(D,{clipPath:"url(#animationClipPath-".concat(n,")")},o.renderAreaStatically(l,u,a,n)))})}},{key:"renderArea",value:function(a,n){var o=this.props,i=o.points,l=o.baseLine,u=o.isAnimationActive,c=this.state,d=c.prevPoints,x=c.prevBaseLine,h=c.totalLength;return u&&i&&i.length&&(!d&&h>0||!ut(d,i)||!ut(x,l))?this.renderAreaWithAnimation(a,n):this.renderAreaStatically(i,l,a,n)}},{key:"render",value:function(){var a,n=this.props,o=n.hide,i=n.dot,l=n.points,u=n.className,c=n.top,d=n.left,x=n.xAxis,h=n.yAxis,y=n.width,v=n.height,f=n.isAnimationActive,b=n.id;if(o||!l||!l.length)return null;var w=this.state.isAnimationFinished,j=l.length===1,P=G("recharts-area",u),k=x&&x.allowDataOverflow,N=h&&h.allowDataOverflow,A=k||N,C=Z(b)?this.id:b,S=(a=I(i,!1))!==null&&a!==void 0?a:{r:3,strokeWidth:2},_=S.r,p=_===void 0?3:_,g=S.strokeWidth,L=g===void 0?2:g,R=Aa(i)?i:{},we=R.clipDot,Ne=we===void 0?!0:we,re=p*2+L;return m.createElement(D,{className:P},k||N?m.createElement("defs",null,m.createElement("clipPath",{id:"clipPath-".concat(C)},m.createElement("rect",{x:k?d:d-y/2,y:N?c:c-v/2,width:k?y:y*2,height:N?v:v*2})),!Ne&&m.createElement("clipPath",{id:"clipPath-dots-".concat(C)},m.createElement("rect",{x:d-re/2,y:c-re/2,width:y+re,height:v+re}))):null,j?null:this.renderArea(A,C),(i||j)&&this.renderDots(A,Ne,C),(!f||w)&&jr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curPoints:a.points,curBaseLine:a.baseLine,prevPoints:n.curPoints,prevBaseLine:n.curBaseLine}:a.points!==n.curPoints||a.baseLine!==n.curBaseLine?{curPoints:a.points,curBaseLine:a.baseLine}:null}}])}(rt.PureComponent);Mr=te;W(te,"displayName","Area");W(te,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!wr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});W(te,"getBaseValue",function(r,t,s,a){var n=r.layout,o=r.baseValue,i=t.props.baseValue,l=i??o;if(T(l)&&typeof l=="number")return l;var u=n==="horizontal"?a:s,c=u.scale.domain();if(u.type==="number"){var d=Math.max(c[0],c[1]),x=Math.min(c[0],c[1]);return l==="dataMin"?x:l==="dataMax"||d<0?d:Math.max(Math.min(c[0],c[1]),0)}return l==="dataMin"?c[0]:l==="dataMax"?c[1]:c[0]});W(te,"getComposedData",function(r){var t=r.props,s=r.item,a=r.xAxis,n=r.yAxis,o=r.xAxisTicks,i=r.yAxisTicks,l=r.bandSize,u=r.dataKey,c=r.stackedData,d=r.dataStartIndex,x=r.displayedData,h=r.offset,y=t.layout,v=c&&c.length,f=Mr.getBaseValue(t,s,a,n),b=y==="horizontal",w=!1,j=x.map(function(k,N){var A;v?A=c[d+N]:(A=X(k,u),Array.isArray(A)?w=!0:A=[f,A]);
89var C=A[1]==null||v&&X(k,u)==null;return b?{x:Ct({axis:a,ticks:o,bandSize:l,entry:k,index:N}),y:C?null:n.scale(A[1]),value:A,payload:k}:{x:C?null:a.scale(A[1]),y:Ct({axis:n,ticks:i,bandSize:l,entry:k,index:N}),value:A,payload:k}}),P;return v||w?P=j.map(function(k){var N=Array.isArray(k.value)?k.value[0]:null;return b?{x:k.x,y:N!=null&&k.y!=null?n.scale(N):null}:{x:N!=null?a.scale(N):null,y:k.y}}):P=b?n.scale(f):a.scale(f),J({points:j,baseLine:P,layout:y,isRange:w},h)});W(te,"renderDotItem",function(r,t){var s;if(m.isValidElement(r))s=m.cloneElement(r,t);else if(F(r))s=r(t);else{var a=G("recharts-area-dot",typeof r!="boolean"?r.className:""),n=t.key,o=Dr(t,Qs);s=m.createElement(br,le({},o,{key:n,className:a}))}return s});var on=Pr({chartName:"PieChart",GraphicalChild:U,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:lt},{axisType:"radiusAxis",AxisComp:it}],formatAxisMap:Sa,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ln=Pr({chartName:"AreaChart",GraphicalChild:te,axisComponents:[{axisType:"xAxis",AxisComp:qe},{axisType:"yAxis",AxisComp:He}],formatAxisMap:Oa});const Ee=[{id:"gpt-5",name:"GPT-5",glyph:"G5",hue:"hsl(158 64% 52%)"},{id:"gemini",name:"Gemini",glyph:"Gm",hue:"hsl(217 91% 62%)"},{id:"claude",name:"Claude",glyph:"Cl",hue:"hsl(24 90% 60%)"},{id:"llama",name:"Llama",glyph:"Ll",hue:"hsl(280 80% 66%)"},{id:"deepseek",name:"DeepSeek",glyph:"Ds",hue:"hsl(199 90% 58%)"}],Br=r=>Ee.find(t=>t.id===r),dn=["Engineering","Communications","Marketing","Sales","Customer Success","Operations"],ee={id:"susan",name:"Harmick Azarian",initials:"HA",role:"Gruvi admin",team:"Operations",from:"hsl(258 90% 66%)",to:"hsl(217 91% 60%)"},ye=[ee,{id:"sarah",name:"Sarah Okafor",initials:"SO",role:"Design Lead",team:"Marketing",from:"hsl(330 85% 62%)",to:"hsl(275 80% 62%)"},{id:"james",name:"James Whitfield",initials:"JW",role:"Staff Engineer",team:"Engineering",from:"hsl(199 90% 58%)",to:"hsl(217 91% 55%)"},{id:"priya",name:"Priya Raman",initials:"PR",role:"Head of Growth",team:"Sales",from:"hsl(24 90% 60%)",to:"hsl(0 80% 60%)"},{id:"tom",name:"Tom Bergström",initials:"TB",role:"SecOps Manager",team:"Engineering",from:"hsl(158 64% 48%)",to:"hsl(180 70% 45%)"},{id:"maya",name:"Maya Lindqvist",initials:"ML",role:"Customer Success Lead",team:"Customer Success",from:"hsl(280 80% 66%)",to:"hsl(217 91% 62%)"},{id:"daniel",name:"Daniel Osei",initials:"DO",role:"Comms Director",team:"Communications",from:"hsl(48 95% 58%)",to:"hsl(24 90% 58%)"},{id:"elena",name:"Elena Fabbri",initials:"EF",role:"Ops Analyst",team:"Operations",from:"hsl(199 80% 55%)",to:"hsl(258 90% 66%)"}],V=r=>ye.find(t=>t.id===r),cn=[{id:"c1",title:"Enterprise landing page review",time:"Just now",
89section:"mine",participants:["sarah","james"],model:"gpt-5"},{id:"c2",title:"Q3 pricing model sensitivity",time:"2h",section:"mine",participants:["priya"],model:"claude"},{id:"c3",title:"SOC 2 evidence checklist",time:"Yesterday",section:"mine",participants:["tom"],model:"gemini"},{id:"c4",title:"Onboarding email sequence rewrite",time:"Mon",section:"mine",participants:["daniel","maya"],model:"gpt-5"},{id:"c5",title:"Firewall policy validation run",time:"18m",section:"watching",participants:["tom","james"],model:"deepseek",unread:3},{id:"c6",title:"Churn signals: EMEA accounts",time:"4h",section:"watching",participants:["maya"],model:"gemini",unread:1},{id:"c7",title:"Product demo video script v4",time:"1h",section:"collaborating",participants:["sarah","daniel","priya"],model:"claude",unread:2},{id:"c8",title:"Support automation flow: tier 1",time:"3h",section:"collaborating",participants:["maya","james"],model:"llama"},{id:"c9",title:"Marketing flyer: EU launch",time:"Tue",section:"collaborating",participants:["sarah"],model:"gpt-5"}],mn={mine:"My Chats",watching:"Chats I'm Watching",collaborating:"Chats I'm Collaborating On"},un=["Review our landing page and suggest improvements for enterprise customers.","Summarise this week's support escalations by root cause.","Draft a security questionnaire response for Northwind Group.","Build a launch checklist for the EU pricing rollout."],pn="Review our landing page and suggest improvements for enterprise customers.",Le={intro:"I reviewed the current landing page against how enterprise buyers actually evaluate software: procurement, security and stakeholder consensus. Here's what I'd change, in priority order.",sections:[{heading:"1. Reframe the hero for buying committees",body:"The hero speaks to an individual practitioner. Enterprise evaluators arrive as a group of four to six people, each with a different question.",bullets:["Replace âGet started in minutesâ with an outcome claim tied to measurable value.","Add a secondary CTA, âTalk to salesâ, with equal visual weight to self-serve.","Surface two named logos plus one quantified proof point above the fold."]},{heading:"2. Make trust evidence reachable in one click",body:"Security review is the most common stall point. Right now compliance information only appears in the footer.",bullets:["Add a persistent âSecurity & complianceâ link in the primary navigation.","Show SOC 2 Type II, ISO 27001 and GDPR badges in a dedicated trust band.","Link directly to a downloadable DPA and sub-processor list."]},{heading:"3. Add a procurement-friendly pricing path",body:"Enterprise visitors bounce at the pricing table because annual, invoiced and seat-tier options are missing.",bullets:["Introduce an âEnterpriseâ column with invoicing, SSO and dedicated support.","Offer a volume estimator so buyers can model 250+ seats themselves."]}],impact:[{label:"Enterprise demo requests",value:"+18â26%",note:"modelled on comparable B2B redesigns"},{label:"Security-review stalls",value:"â40%",note:"trust band + DPA access"},{label:"Time to first sales touch",value:"2.4 days â 6h",note:"dual CTA routing"}],closing:"I've drafted replacement hero copy and a trust-band layout. Want me to push them to the Work Board as a review task for Sarah and James?"},xn=[{id:"planning",label:"Planning"},{id:"execution",label:"Execution"},{id:"review",label:"Needs Human Review"},{id:"done",label:"Done"}],Yt=[{id:"k1",title:"Landing Page UI Review",summary:"Enterprise-focused rewrite of hero, trust band and pricing path.",column:"review",team:"Marketing",model:"gpt-5",people:["sarah","james"],priority:"High",due:"18 Jul",status:"Awaiting design sign-off",progress:80},{id:"k2",title:"Firewall Policy Validation",summary:"Diff 412 rules against the new zero-trust baseline.",column:"execution",team:"Engineering",model:"deepseek",people:["tom"],priority:"Urgent",due:"16 Jul",status:"Running rule diff",progress:62},{id:"k3",title:"Update Customer Pricing",summary:"Model annual vs. monthly uplift for 250+ seat accounts.",column:"planning",team:"Sales",model:"claude",people:["priya","elena"],priority:"High",due:"24 Jul",status:"Scoping inputs",progress:15},{id:"k4",title:"Design Marketing Flyer",summary:"Single-page EU launch flyer, print + digital variants.",column:"execution",team
89:"Marketing",model:"gpt-5",people:["sarah","daniel"],priority:"Medium",due:"21 Jul",status:"Draft 2 generated",progress:55},{id:"k5",title:"Create Product Demo Video",summary:"Three-minute walkthrough script and storyboard.",column:"planning",team:"Communications",model:"claude",people:["daniel"],priority:"Medium",due:"29 Jul",status:"Script v4 in review",progress:30},{id:"k6",title:"Customer Support Automation Flow",summary:"Tier-1 deflection flow with human handover rules.",column:"execution",team:"Customer Success",model:"llama",people:["maya","james"],priority:"High",due:"22 Jul",status:"Building intents",progress:48},{id:"k7",title:"Vendor Security Questionnaire: Northwind",summary:"142-question response pack with evidence links.",column:"review",team:"Engineering",model:"gemini",people:["tom","elena"],priority:"Urgent",due:"17 Jul",status:"Needs legal review",progress:90},{id:"k8",title:"EMEA Churn Signal Report",summary:"Weekly at-risk account digest for CS leadership.",column:"done",team:"Customer Success",model:"gemini",people:["maya"],priority:"Medium",due:"14 Jul",status:"Shipped",progress:100},{id:"k9",title:"Onboarding Email Sequence",summary:"Six-touch sequence rewritten for self-serve trials.",column:"done",team:"Communications",model:"gpt-5",people:["daniel","maya"],priority:"Low",due:"11 Jul",status:"Shipped",progress:100},{id:"k10",title:"Data Retention Policy Refresh",summary:"Align retention windows with new DPA commitments.",column:"planning",team:"Operations",model:"claude",people:["elena"],priority:"Low",due:"5 Aug",status:"Backlog",progress:5},{id:"k11",title:"Sales Battlecard Refresh",summary:"Competitive positioning update for three rivals.",column:"review",team:"Sales",model:"gpt-5",people:["priya"],priority:"Medium",due:"19 Jul",status:"Awaiting Priya's review",progress:75},{id:"k12",title:"Incident Postmortem: 04 Jul",summary:"Timeline, root cause and follow-up actions.",column:"done",team:"Engineering",model:"deepseek",people:["james","tom"],priority:"High",due:"09 Jul",status:"Published",progress:100}],Jt={Urgent:{bg:"hsl(0 80% 62% / 0.16)",fg:"hsl(0 85% 74%)"},High:{bg:"hsl(24 90% 60% / 0.16)",fg:"hsl(28 92% 68%)"},Medium:{bg:"hsl(217 91% 60% / 0.16)",fg:"hsl(217 92% 74%)"},Low:{bg:"hsl(250 10% 60% / 0.16)",fg:"hsl(250 12% 74%)"}},Qt=[{id:"engineering",name:"engineering",topic:"Platform, infra and security work"},{id:"marketing",name:"marketing",topic:"Campaigns, site and brand"},{id:"launch",name:"launch",topic:"EU launch war room",unread:4},{id:"design",name:"design",topic:"Product and brand design reviews",unread:1},{id:"product",name:"product",topic:"Roadmap and discovery"}],hn=[{id:"m1",author:"sara",ai:!0,time:"09:12",body:["I've completed the first draft of the landing page redesign. Could someone review the hero section before I continue?","Changes are scoped to the hero, the trust band and the enterprise pricing column. Nothing else on the page moved."],reactions:[{emoji:"ð",count:3},{emoji:"ð",count:2}],attachment:{name:"landing-hero-draft-v1.fig",meta:"Figma · 3 frames · updated 09:11"}},{id:"m2",author:"sarah",time:"09:19",body:["I'll review it now."],reactions:[{emoji:"â
",count:1}]},{id:"m3",author:"james",time:"09:34",body:["Hero looks good. The CTA could be stronger. âGet startedâ reads self-serve and enterprise buyers won't click it.","Also worth logging the variant so we can attribute demo requests properly:"],code:{lang:"ts",lines:['track("hero_cta_click", {',' variant: "enterprise_dual_cta",'," segment: accountTier(user), // 'smb' | 'mid' | 'enterprise'",' surface: "landing/hero",',"});"]},replies:[{author:"sarah",time:"09:38",body:"Agreed, âTalk to salesâ next to a secondary self-serve link."},{author:"sara",ai:!0,time:"09:39",body:"I can generate five CTA pairs and rank them against comparable enterprise pages."},{author:"james",time:"09:41",body:"Do that, then hand the top two to Sarah."}]},{id:"m4",author:"sara",ai:!0,time:"09:52",body:["Updated based on your feedback. Ready for another review.","Hero now leads with the outcome claim, CTAs are paired (âTalk to salesâ primary, âStart freeâ secondary), and the trust band carries SOC 2, ISO 27001 and GDPR."],reactions:[{emoji:"ð¥",count:4},{emoji:"ð",count:2}]},{id:"m5",author:"priya",time:"10:04",body:["Can we get the enterprise pricing column in the same pass? Two deals are stuck asking about invoicing."]}],fn=[{label:"Total AI Spend This Month",value:"£521.94",delta:"+12.4%",up:!0,note:"vs £343,45 last month"},{label:"Total Requests",value:"1,284,900",delta:"+8.1%",up:!0,note:"across 4 models"},{label:"Active Users",value:"41",delta:"+23",up:!0,note:""},{label:"Average Cost per Task",value:"£1.86",delta:"â9.2%",up:!1,note:"down from £2.05"},{label:"AI Tasks Completed",value:"17,742",delta:"+15.6%",up:!0,note:"64% auto-resolved"},{label:"Human Reviews Pending",value:"38",delta:"â11",up:!1,note:"median
89wait 3h 12m"}],gn={daily:[{name:"01 Aug",gpt:4200,gemini:2600,claude:3100,llama:1400},{name:"02 Aug",gpt:3600,gemini:2100,claude:2800,llama:900},{name:"03 Aug",gpt:5100,gemini:3300,claude:2900,llama:1700},{name:"04 Aug",gpt:4800,gemini:2800,claude:3500,llama:1200},{name:"05 Aug",gpt:3900,gemini:2400,claude:2700,llama:1100},{name:"06 Aug",gpt:6200,gemini:4100,claude:3800,llama:2100},{name:"07 Aug",gpt:5500,gemini:3600,claude:3200,llama:1800},{name:"08 Aug",gpt:4300,gemini:2900,claude:2600,llama:1400},{name:"09 Aug",gpt:4700,gemini:3100,claude:3e3,llama:1600},{name:"10 Aug",gpt:7100,gemini:4500,claude:4200,llama:2400},{name:"11 Aug",gpt:5800,gemini:3700,claude:3400,llama:1900},{name:"12 Aug",gpt:4500,gemini:3e3,claude:2800,llama:1500},{name:"13 Aug",gpt:5200,gemini:3400,claude:3100,llama:1700},{name:"14 Aug",gpt:6600,gemini:4300,claude:3900,llama:2200}]},Xt=["Last 7 days","Last 30 days","This quarter","Year to date"],Zt=[{name:"AireXpert",value:172},{name:"AireXpert test",value:111},{name:"Nord",value:85},{name:"Sales",value:62},{name:"Communications",value:41},{name:"Operations",value:29}],$e=[{name:"GPT-4o",value:16500,color:"hsl(158 64% 52%)"},{name:"Claude 4 Sonnet",value:11700,color:"hsl(24 90% 60%)"},{name:"Gemini 2.0 Flash",value:9700,color:"hsl(217 91% 62%)"},{name:"Gemini 2.5 Pro",value:5600,color:"hsl(280 80% 66%)"}],er=[{id:"james",requests:41200,spend:"£48"},{id:"sarah",requests:37600,spend:"£45"},{id:"maya",requests:31900,spend:"£37"},{id:"tom",requests:28400,spend:"£34"},{id:"priya",requests:22800,spend:"£26"}],vn=[{text:"Summarise this support thread and suggest a reply",count:4820,team:"Customer Success"},{text:"Review this page and suggest enterprise improvements",count:3910,team:"Marketing"},{text:"Diff these firewall rules against our baseline",count:3240,team:"Engineering"},{text:"Draft a security questionnaire response",count:2870,team:"Engineering"},{text:"Model annual vs monthly pricing uplift",count:2110,team:"Sales"}],bn=[{day:"01",requests:28400},{day:"03",requests:31200},{day:"05",requests:29800},{day:"07",requests:36400},{day:"09",requests:41100},{day:"11",requests:38900},{day:"13",requests:44300},{day:"15",requests:47800},{day:"17",requests:45200},{day:"19",requests:51400},{day:"21",requests:49700},{day:"23",requests:54900}],tr=[{name:"GPT-4o",ms:1.9},{name:"Gemini 2.0 Flash",ms:1.4},{name:"Claude 4 Sonnet",ms:2.3},{name:"Gemini 2.5 Pro",ms:1.1}],je=({className:r,children:t,...s})=>e.jsx("div",{...s,className:O("rounded-2xl border border-border/70 bg-card/70 backdrop-blur-xl shadow-[0_1px_0_0_hsl(var(--foreground)/0.04)_inset,0_18px_40px_-24px_hsl(250_40%_2%/0.9)]",r),children:t}),z=({person:r,size:t=28,ring:s=!0,className:a})=>e.jsx("div",{title:r.name,className:O("shrink-0 rounded-full grid place-items-center font-semibold text-primary-foreground select-none",s&&"ring-2 ring-card",a),style:{width:t,height:t,fontSize:Math.max(9,t*.36),backgroundImage:`linear-gradient(135deg, ${r.from}, ${r.to})`},children:r.initials}),St=({size:r=30})=>e.jsx("div",{className:"rounded-xl grid place-items-center shadow-[0_6px_18px_-6px_hsl(var(--primary)/0.8)]",style:{width:r,height:r,backgroundImage:"linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)))"},children:e.jsx("svg",{width:r*.56,height:r*.56,viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M12 2.5l2.4 5.9 5.9 2.4-5.9 2.4L12 21.5l-2.4-8.3L3.7 10.8l5.9-2.4L12 2.5z",fill:"hsl(var(--primary-foreground))",opacity:"0.92"})})}),he=({size:r=30})=>e.jsx("div",{className:"shrink-0 rounded-full grid place-items-center ring-2 ring-card",style:{width:r,height:r,backgroundImage:"linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)))"},children:e.jsx("svg",{width:r*.54,height:r*.54,viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M12 3l2 6 6 2-6 2-2 8-2-8-6-2 6-2 2-6z",fill:"hsl(var(--primary-foreground))",opacity:"0.9"})})}),de=({ids:r,size:t=24,max:s=4})=>{const a=r.slice(0,s),n=r.length-a.length;return e.jsxs("div",{className:"flex items-center",children:[a.map((o,i)=>e.jsx("div",{style:{marginLeft:i===0?0:-t*.28},children:e.jsx(z,{person:V(o),size:t})},o)),n>0&&e.jsxs("div",{className:"rounded-full grid place-items-center bg-muted text-muted-foreground ring-2 ring-card font-semibold",style:{width:t,height:t,marginLeft:-t*.28,fontSize:t*.36},children:["+",n]})]})},yt=({id:r,compact:t=!1})=>{const s=Br(r);return e.jsxs("span",{className:O("inline-flex items-center gap-1.5 rounded-full border border-border/70 bg-muted/50 font-medium text-foreground
89/85",t?"px-1.5 py-0.5 text-[10px]":"px-2 py-1 text-[11px]"),children:[e.jsx("span",{className:"grid place-items-center rounded-[5px] text-[8px] font-bold text-primary-foreground",style:{width:14,height:14,background:s.hue},children:s.glyph}),s.name]})},H=({id:r,size:t=16})=>{const s=Br(r);return e.jsx("span",{title:s.name,className:"grid place-items-center rounded-md font-bold text-primary-foreground",style:{width:t,height:t,background:s.hue,fontSize:t*.5},children:s.glyph})},Me=()=>e.jsx("span",{className:"rounded-md bg-primary/15 px-1.5 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em] text-primary-light",children:"AI"}),Oe=({open:r,onClose:t,children:s,align:a="left",className:n})=>{const o=m.useRef(null);return m.useEffect(()=>{if(!r)return;const i=u=>{o.current&&!o.current.contains(u.target)&&t()},l=u=>u.key==="Escape"&&t();return document.addEventListener("mousedown",i),document.addEventListener("keydown",l),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",l)}},[r,t]),r?e.jsx("div",{ref:o,className:O("absolute z-50 mt-2 rounded-2xl border border-border bg-popover/95 p-1.5 shadow-[0_24px_60px_-20px_hsl(250_60%_2%/0.95)] backdrop-blur-2xl sara-rise",a==="right"?"right-0":"left-0",n),children:s}):null},De=({children:r,onClick:t,danger:s})=>e.jsx("button",{onClick:t,className:O("flex w-full items-center gap-2 rounded-xl px-3 py-2 text-left text-[13px] transition-colors hover:bg-muted",s?"text-destructive":"text-foreground/85"),children:r}),yn=Ee,jn=[{to:"/sara",label:"Workspace overview",icon:ia,end:!0},{to:"/sara/board",label:"Open issues",icon:Er},{to:"/sara/collaboration",label:"Checks",icon:Ye},{to:"/sara/analytics",label:"Analytics",icon:Jr}],wn={"/sara":"Workspace overview","/sara/board":"Open issues","/sara/collaboration":"Checks","/sara/analytics":"Analytics"};function Nn({children:r}){const[t,s]=m.useState(!1),{pathname:a}=Hr(),n=wn[a.replace(/\/$/,"")]??"SARA";return e.jsxs("div",{className:"flex h-screen w-full overflow-hidden bg-background text-foreground",children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none fixed inset-0 z-0",style:{background:"radial-gradient(760px 420px at 12% -6%, hsl(var(--primary) / 0.16), transparent 70%), radial-gradient(700px 420px at 96% 4%, hsl(var(--secondary) / 0.12), transparent 70%)"}}),e.jsxs("aside",{className:O("relative z-10 flex shrink-0 flex-col border-r border-border/70 bg-sidebar-background/80 backdrop-blur-xl transition-[width] duration-300 ease-out",t?"w-[76px]":"w-[236px]"),children:[e.jsxs("div",{className:O("flex h-16 items-center gap-2.5 px-5",t&&"justify-center px-0"),children:[e.jsx(St,{}),!t&&e.jsxs("div",{className:"leading-tight",children:[e.jsx("div",{className:"text-[15px] font-semibold tracking-[0.14em]",children:"SARA"}),e.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Gruvi cost monitor"})]})]}),e.jsx("nav",{className:"mt-3 flex flex-col gap-1 px-3",children:jn.map(o=>e.jsx(Kr,{to:o.to,end:o.end,className:({isActive:i})=>O("group relative flex items-center gap-3 rounded-xl px-3 py-2.5 text-[13px] font-medium transition-all duration-200",t&&"justify-center px-0",i?"bg-primary/14 text-foreground":"text-muted-foreground hover:bg-sidebar-accent hover:text-foreground"),children:({isActive:i})=>e.jsxs(e.Fragment,{children:[i&&e.jsx("span",{className:"absolute left-0 top-1/2 h-5 w-[3px] -translate-y-1/2 rounded-r-full bg-primary"}),e.jsx(o.icon,{className:O("h-[17px] w-[17px]",i?"text-primary-light":"")}),!t&&e.jsx("span",{children:o.label})]})},o.to))}),e.jsxs("div",{className:"mt-auto flex flex-col gap-1 px-3 pb-4",children:[e.jsxs("button",{className:O("flex items-center gap-3 rounded-xl px-3 py-2.5 text-[13px] text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground",t&&"justify-center px-0"),children:[e.jsx(Ur,{className:"h-[17px] w-[17px]"}),!t&&e.jsx("span",{children:"Settings"})]}),e.jsxs("button",{onClick:()=>s(o=>!o),className:O("flex items-center gap-3 rounded-xl px-3 py-2.5 text-[13px] text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground",t&&"justify-center px-0"),children:[t?e.jsx(Fa,{className:"h-[17px] w-[17px]"}):e.jsx(za,{className:"h-[17px] w-[17px]"}),!t&&e.jsx("span",{children:"Collapse"})]})]})]}),e.jsxs("div",{className:"relative z-10 flex min-w-0 flex-1 flex-col",children:[e.jsxs("header",{className:"flex h-16 shrink-0 items-center gap-4 border-b border-border/70 px-6 backdrop-blur-xl",children:[e.jsxs("div",{className:"text-[13px] font-medium text-muted-foreground",children:["All workspaces ",e.jsx("span",{className:"mx-2 text-border",children:"/"}),e.jsx("span",{className:"text-foreground",children:n})]}),e.jsxs("div",{className:"relative ml-auto hidden w-[300px] items-center md:flex",children:[e.jsx(cr,{className:"absolute left-3 h-4 w-4 text-muted-foreground"}),e.jsx("input",{placeholder:"Search chats, tasks, peopleâ¦",className:"h-9 w-full rounded-xl border border-border/70 bg-muted/40 pl-9 pr-3 text-[13px] text-foreground placeholder:text-muted-foreground
89/70 outline-none transition-colors focus:border-primary/60 focus:bg-muted/60"})]}),e.jsxs("button",{className:"relative grid h-9 w-9 place-items-center rounded-xl border border-border/70 bg-muted/40 text-muted-foreground transition-colors hover:text-foreground",children:[e.jsx(Yr,{className:"h-4 w-4"}),e.jsx("span",{className:"absolute right-2 top-2 h-1.5 w-1.5 rounded-full bg-primary"})]}),e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl border border-border/70 bg-muted/40 py-1.5 pl-1.5 pr-3",children:[e.jsx(z,{person:ee,size:26,ring:!1}),e.jsxs("div",{className:"leading-tight",children:[e.jsx("div",{className:"text-[12px] font-medium",children:ee.name}),e.jsx("div",{className:"text-[10px] text-muted-foreground",children:ee.role})]})]})]}),e.jsx("main",{className:"min-h-0 flex-1 overflow-hidden",children:r})]})]})}function rr(){const[r,t]=m.useState(!0),[s,a]=m.useState(""),[n,o]=m.useState(null),[i,l]=m.useState(!1),[u,c]=m.useState(null),[d,x]=m.useState(["gpt-5","claude"]),[h,y]=m.useState({sarah:"Collaborator",james:"Watcher"}),[v,f]=m.useState(null),[b,w]=m.useState(!1),[j,P]=m.useState(!1),k=m.useRef(null);m.useEffect(()=>{var p;(p=k.current)==null||p.focus()},[n]);const N=p=>{const g=p.trim();g&&(o(g),a(""),l(!0),c("c1"),window.setTimeout(()=>l(!1),1100))},A=()=>{o(null),l(!1),c(null)},C=p=>x(g=>g.includes(p)?g.filter(L=>L!==p):[...g,p]),S=(p,g)=>y(L=>{const R={...L};return R[p]===g?delete R[p]:R[p]=g,R}),_=Object.keys(h);return e.jsxs("div",{className:"flex h-full min-h-0",children:[e.jsxs("div",{className:O("flex shrink-0 flex-col overflow-hidden border-r border-border/70 bg-card/40 backdrop-blur-xl transition-[width] duration-300 ease-out",r?"w-[286px]":"w-0"),children:[e.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[e.jsxs("button",{onClick:A,className:"flex h-9 flex-1 items-center gap-2 rounded-xl border border-border/70 bg-muted/40 px-3 text-[13px] font-medium transition-colors hover:border-primary/50 hover:bg-muted/70",children:[e.jsx(jt,{className:"h-4 w-4 text-primary-light"}),"New chat"]}),e.jsx("button",{className:"grid h-9 w-9 place-items-center rounded-xl border border-border/70 bg-muted/40 text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(cr,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"mt-4 min-h-0 flex-1 overflow-y-auto px-2 pb-4",children:["mine","watching","collaborating"].map(p=>e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 pb-1.5",children:[e.jsx("span",{className:"text-[10.5px] font-semibold uppercase tracking-[0.11em] text-muted-foreground",children:mn[p]}),p==="watching"&&e.jsx(Qe,{className:"h-3.5 w-3.5 text-muted-foreground/70"}),p==="collaborating"&&e.jsx(at,{className:"h-3.5 w-3.5 text-muted-foreground/70"})]}),cn.filter(g=>g.section===p).map(g=>{const L=u===g.id;return e.jsxs("div",{className:O("group relative rounded-xl px-3 py-2.5 transition-colors",L?"bg-primary/14":"hover:bg-muted/60"),children:[e.jsxs("button",{onClick:()=>{c(g.id),g.id==="c1"&&o(pn)},className:"block w-full text-left",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(H,{id:g.model,size:15}),e.jsx("span",{className:O("min-w-0 flex-1 truncate text-[13px]",L?"font-medium text-foreground":"text-foreground/85"),children:g.title}),g.unread?e.jsx("span",{className:"grid h-[17px] min-w-[17px] place-items-center rounded-full bg-primary px-1 text-[10px] font-bold text-primary-foreground",children:g.unread}):null]}),e.jsxs("div",{className:"mt-1.5 flex items-center gap-2 pl-[23px]",children:[e.jsx(de,{ids:g.participants,size:18,max:3}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:g.time})]})]}),e.jsx("button",{onClick:()=>f(v===g.id?null:g.id),className:"absolute right-2 top-2 grid h-6 w-6 place-items-center rounded-lg text-muted-foreground opacity-0 transition-opacity hover:bg-muted group-hover:opacity-100",children:e.jsx(oa,{className:"h-4 w-4"})}),e.jsxs(Oe,{open:v===g.id,onClose:()=>f(null),align:"right",className:"top-7 w-[178px]",children:[e.jsxs(De,{onClick:()=>f(null),children:[e.jsx(It,{className:"h-4 w-4"})," Invite people"]}),e.jsxs(De,{onClick:()=>f(null),children:[e.jsx(Qe,{className:"h-4 w-4"})," Add watcher"]}),e.jsxs(De,{onClick:()=>f(null),children:[e.jsx(Ba,{className:"h-4 w-4"})," Rename"]}),e.jsxs(De,{danger:!0,onClick:()=>f(null),children:[e.jsx(_a,{className:"h-4 w-4"})," Archive"]})]})]},g.id)})]},p))})]}),e.jsxs("div",{className:"relative flex min-w-0 flex-1 flex-col",children:[e.jsxs("div",{className:"flex h-[52px] shrink-0 items-center gap-3 border-b border-border/70 px-6",children:[e.jsx("button",{onClick:()=>t(p=>!p),className:"grid h-8 w-8 place-items-center rounded-lg border border-border/70 bg-muted/40 text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(Pe,{className:"h-4 w-4"})}),e.jsx("span",{className:"truncate text-[13px] font-medium",children:n?"Enterprise landing page review":"New conversation"}),d.map(p=>
89e.jsx(yt,{id:p,compact:!0},p)),e.jsx("div",{className:"ml-auto flex items-center gap-3",children:_.length>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(de,{ids:[ee.id,..._],size:24}),e.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[Object.values(h).filter(p=>p==="Collaborator").length," collaborating ·"," ",Object.values(h).filter(p=>p==="Watcher").length," watching"]})]})})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e.jsx("div",{className:"mx-auto w-full max-w-[780px] px-6 py-8",children:n?e.jsxs("div",{className:"space-y-8",children:[e.jsx("div",{className:"sara-rise flex justify-end",children:e.jsxs("div",{className:"max-w-[86%]",children:[e.jsx("div",{className:"mb-1.5 flex items-center justify-end gap-2 text-[11px] text-muted-foreground",children:"Susan Hartley · Just now"}),e.jsxs("div",{className:"flex items-start justify-end gap-3",children:[e.jsx("div",{className:"rounded-2xl rounded-tr-md bg-muted/70 px-4 py-3 text-[14.5px] leading-relaxed",children:n}),e.jsx(z,{person:ee,size:30})]})]})}),e.jsx("div",{className:"sara-rise",style:{animationDelay:"120ms"},children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(he,{size:30}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[e.jsx("span",{className:"text-[13px] font-semibold",children:"SARA"}),d.map(p=>e.jsx(yt,{id:p,compact:!0},p)),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"· 2.4s"})]}),i?e.jsxs("div",{className:"flex items-center gap-1.5 py-2 text-muted-foreground",children:[[0,1,2].map(p=>e.jsx("span",{className:"sara-dot h-1.5 w-1.5 rounded-full bg-primary-light",style:{animationDelay:`${p*160}ms`}},p)),e.jsx("span",{className:"ml-2 text-[12.5px]",children:"Reviewing 14 page sectionsâ¦"})]}):e.jsxs("div",{className:"space-y-5 text-[14.5px] leading-[1.75] text-foreground/90",children:[e.jsx("p",{children:Le.intro}),Le.sections.map(p=>e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-[15px] font-semibold text-foreground",children:p.heading}),e.jsx("p",{className:"text-foreground/80",children:p.body}),e.jsx("ul",{className:"space-y-1.5",children:p.bullets.map(g=>e.jsxs("li",{className:"flex gap-2.5",children:[e.jsx("span",{className:"mt-[9px] h-1.5 w-1.5 shrink-0 rounded-full bg-primary/70"}),e.jsx("span",{className:"text-foreground/80",children:g})]},g))})]},p.heading)),e.jsxs("div",{className:"overflow-hidden rounded-2xl border border-border/70",children:[e.jsxs("div",{className:"grid grid-cols-[1.4fr_0.7fr_1.2fr] gap-2 border-b border-border/70 bg-muted/40 px-4 py-2.5 text-[11px] font-semibold uppercase tracking-[0.06em] text-muted-foreground",children:[e.jsx("span",{children:"Expected impact"}),e.jsx("span",{children:"Change"}),e.jsx("span",{children:"Basis"})]}),Le.impact.map(p=>e.jsxs("div",{className:"grid grid-cols-[1.4fr_0.7fr_1.2fr] gap-2 px-4 py-2.5 text-[13px] [&:not(:last-child)]:border-b [&:not(:last-child)]:border-border/50",children:[e.jsx("span",{className:"text-foreground/85",children:p.label}),e.jsx("span",{className:"font-semibold text-primary-light",children:p.value}),e.jsx("span",{className:"text-muted-foreground",children:p.note})]},p.label))]}),e.jsx("p",{children:Le.closing}),e.jsxs("div",{className:"flex items-center gap-1.5 pt-1",children:[[la,da,Pe].map((p,g)=>e.jsx("button",{className:"grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:e.jsx(p,{className:"h-4 w-4"})},g)),e.jsxs("div",{className:"ml-2 flex items-center gap-2 rounded-full border border-border/70 bg-muted/40 px-2.5 py-1",children:[e.jsx(z,{person:V("sarah"),size:18,ring:!1}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"Sarah Okafor is viewing"})]})]})]})]})]})})]}):e.jsxs("div",{className:"sara-rise pt-16 text-center",children:[e.jsx("div",{className:"mx-auto mb-6 w-fit",children:e.jsx(he,{size:46})}),e.jsx("h1",{className:"text-[30px] font-semibold tracking-[-0.02em]",children:"Hey Susan, what would you like to work on today?"}),e.jsx("p",{className:"mx-auto mt-3 max-w-[460px] text-[14px] leading-relaxed text-muted-foreground",children:"Start a chat, invite your team as collaborators or watchers, and run it across multiple models at once."}),e.jsx("div",{className:"mt-8 grid gap-2.5 text-left sm:grid-cols-2",children:un.map((p,g)=>e.jsxs("button",{onClick:()=>N(p),style:{animationDelay:`${g*60}ms`},className:"sara-rise group rounded-2xl border border-border/70 bg-card/60 p-4 text-[13px] leading-snug text-foreground
89/85 transition-all duration-200 hover:-translate-y-0.5 hover:border-primary/50 hover:bg-card",children:[e.jsx(wt,{className:"mb-2 h-4 w-4 text-primary-light"}),p]},p))})]})})}),e.jsx("div",{className:"shrink-0 px-6 pb-6",children:e.jsxs("div",{className:"mx-auto w-full max-w-[780px]",children:[e.jsxs("div",{className:"mb-2.5 flex items-center gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>P(p=>!p),className:"flex h-9 items-center gap-2 rounded-xl border border-border/70 bg-card/70 px-3 text-[12.5px] font-medium transition-colors hover:border-primary/50",children:[e.jsx(It,{className:"h-4 w-4 text-primary-light"}),"Invite people",_.length>0&&e.jsx("span",{className:"rounded-full bg-primary/18 px-1.5 text-[11px] text-primary-light",children:_.length})]}),e.jsxs(Oe,{open:j,onClose:()=>P(!1),className:"bottom-11 w-[330px] p-2",children:[e.jsx("div",{className:"px-2 pb-2 pt-1 text-[11px] font-semibold uppercase tracking-[0.09em] text-muted-foreground",children:"Add to this conversation"}),e.jsx("div",{className:"max-h-[290px] overflow-y-auto",children:ye.filter(p=>p.id!==ee.id).map(p=>e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl px-2 py-2 hover:bg-muted/60",children:[e.jsx(z,{person:p,size:28,ring:!1}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-[13px]",children:p.name}),e.jsxs("div",{className:"truncate text-[11px] text-muted-foreground",children:[p.role," · ",p.team]})]}),e.jsx("div",{className:"flex overflow-hidden rounded-lg border border-border/70",children:["Collaborator","Watcher"].map(g=>e.jsx("button",{onClick:()=>S(p.id,g),className:O("px-2 py-1 text-[10.5px] font-medium transition-colors",h[p.id]===g?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted"),children:g==="Collaborator"?"Collab":"Watch"},g))})]},p.id))})]})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>w(p=>!p),className:"flex h-9 items-center gap-2 rounded-xl border border-border/70 bg-card/70 px-3 text-[12.5px] font-medium transition-colors hover:border-primary/50",children:[e.jsx("span",{className:"flex items-center gap-1",children:d.length?d.map(p=>e.jsx(H,{id:p,size:15},p)):e.jsx("span",{className:"text-muted-foreground",children:"No model"})}),d.length===1?"1 model":`${d.length} models`,e.jsx(st,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),e.jsxs(Oe,{open:b,onClose:()=>w(!1),className:"bottom-11 w-[262px] p-2",children:[e.jsx("div",{className:"px-2 pb-2 pt-1 text-[11px] font-semibold uppercase tracking-[0.09em] text-muted-foreground",children:"Run this chat across"}),yn.map(p=>e.jsxs("button",{onClick:()=>C(p.id),className:"flex w-full items-center gap-2.5 rounded-xl px-2 py-2 text-left hover:bg-muted/60",children:[e.jsx(H,{id:p.id,size:22}),e.jsx("span",{className:"flex-1 text-[13px]",children:p.name}),e.jsx("span",{className:O("grid h-[18px] w-[18px] place-items-center rounded-md border",d.includes(p.id)?"border-primary bg-primary text-primary-foreground":"border-border"),children:d.includes(p.id)&&e.jsx(_e,{className:"h-3 w-3"})})]},p.id))]})]}),_.length>0&&e.jsxs("div",{className:"ml-auto hidden items-center gap-2 sm:flex",children:[e.jsx(de,{ids:_,size:22}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"in this chat"})]})]}),e.jsxs("div",{className:"rounded-3xl border border-border/70 bg-card/80 p-2.5 shadow-[0_20px_50px_-30px_hsl(250_60%_2%/1)] backdrop-blur-xl transition-colors focus-within:border-primary/55",children:[e.jsx("textarea",{ref:k,rows:2,value:s,onChange:p=>a(p.target.value),onKeyDown:p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),N(s))},placeholder:"Ask SARA anything, or describe the work you want doneâ¦",className:"max-h-40 w-full resize-none bg-transparent px-3 pt-2 text-[14.5px] leading-relaxed text-foreground outline-none placeholder:text-muted-foreground/70"}),e.jsxs("div",{className:"flex items-center gap-2 px-1.5 pt-1",children:[e.jsx("button",{className:"grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:e.jsx(mr,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"Shift + Enter for a new line"}),e.jsx("button",{onClick:()=>N(s),disabled:!s.trim(),className:"ml-auto grid h-9 w-9 place-items-center rounded-xl bg-primary text-primary-foreground transition-all duration-200 hover:bg-primary-light disabled:opacity-35",children:e.jsx(Qr,{className:"h-4 w-4"})})]})]})]})})]})]})}const ar=[{label:"In flight",columns:["planning","execution"]},{label:"Blocked on humans",columns:["review"]},{label:"Complete",columns:["done"]}],ze=({label:r,value:t,children:s})=>{const[a,n]=m.useState(!1);return e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>n(o=>!o),className:O("flex h-9 items-center gap-2 rounded-xl border px-3 text-[12.5px] font-medium transition-colors",t==="All"?"border-border/70 bg-card/60 text-foreground
89/85 hover:border-primary/45":"border-primary/55 bg-primary/12 text-foreground"),children:[e.jsx("span",{className:"text-muted-foreground",children:r}),e.jsx("span",{children:t}),e.jsx(st,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),e.jsx(Oe,{open:a,onClose:()=>n(!1),className:"w-[230px] max-h-[320px] overflow-y-auto",children:s(()=>n(!1))})]})},Y=({active:r,onClick:t,children:s})=>e.jsxs("button",{onClick:t,className:O("flex w-full items-center gap-2 rounded-xl px-3 py-2 text-left text-[13px] transition-colors hover:bg-muted",r?"text-foreground":"text-foreground/80"),children:[e.jsx("span",{className:O("h-1.5 w-1.5 rounded-full",r?"bg-primary":"bg-transparent")}),s]});function kn(){const[r,t]=m.useState("All"),[s,a]=m.useState("All"),[n,o]=m.useState("All"),[i,l]=m.useState("All"),u=Yt.filter(c=>{if(r!=="All"&&c.team!==r||s!=="All"&&c.model!==s||i!=="All"&&!c.people.includes(i))return!1;if(n!=="All"){const d=ar.find(x=>x.label===n);if(d&&!d.columns.includes(c.column))return!1}return!0});return e.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[e.jsxs("div",{className:"shrink-0 px-7 pt-6",children:[e.jsxs("div",{className:"flex items-end justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-[22px] font-semibold tracking-[-0.01em]",children:"Team Work Board"}),e.jsxs("p",{className:"mt-1 text-[13px] text-muted-foreground",children:[u.length," of ",Yt.length," work items · 6 teams · 5 models in use"]})]}),e.jsxs("button",{className:"flex h-9 items-center gap-2 rounded-xl bg-primary px-3.5 text-[12.5px] font-semibold text-primary-foreground transition-colors hover:bg-primary-light",children:[e.jsx(jt,{className:"h-4 w-4"}),"New work item"]})]}),e.jsxs("div",{className:"mt-5 flex flex-wrap items-center gap-2 border-b border-border/70 pb-5",children:[e.jsxs("div",{className:"mr-1 flex items-center gap-1.5 text-[12px] text-muted-foreground",children:[e.jsx(Xr,{className:"h-3.5 w-3.5"}),"Filters"]}),e.jsx(ze,{label:"Team",value:r,children:c=>e.jsxs(e.Fragment,{children:[e.jsx(Y,{active:r==="All",onClick:()=>{t("All"),c()},children:"All teams"}),dn.map(d=>e.jsx(Y,{active:r===d,onClick:()=>{t(d),c()},children:d},d))]})}),e.jsx(ze,{label:"AI model",value:s==="All"?"All":Ee.find(c=>c.id===s).name,children:c=>e.jsxs(e.Fragment,{children:[e.jsx(Y,{active:s==="All",onClick:()=>{a("All"),c()},children:"All models"}),Ee.map(d=>e.jsx(Y,{active:s===d.id,onClick:()=>{a(d.id),c()},children:d.name},d.id))]})}),e.jsx(ze,{label:"Status",value:n,children:c=>e.jsxs(e.Fragment,{children:[e.jsx(Y,{active:n==="All",onClick:()=>{o("All"),c()},children:"Any status"}),ar.map(d=>e.jsx(Y,{active:n===d.label,onClick:()=>{o(d.label),c()},children:d.label},d.label))]})}),e.jsx(ze,{label:"Assignee",value:i==="All"?"All":V(i).name.split(" ")[0],children:c=>e.jsxs(e.Fragment,{children:[e.jsx(Y,{active:i==="All",onClick:()=>{l("All"),c()},children:"Anyone"}),ye.map(d=>e.jsx(Y,{active:i===d.id,onClick:()=>{l(d.id),c()},children:d.name},d.id))]})})]})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-x-auto overflow-y-hidden px-7 py-5",children:e.jsx("div",{className:"flex h-full min-w-[1180px] gap-4",children:xn.map(c=>{const d=u.filter(x=>x.column===c.id);return e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[e.jsx("span",{className:"h-2 w-2 rounded-full",style:{background:c.id==="done"?"hsl(var(--success))":c.id==="review"?"hsl(var(--warning))":c.id==="execution"?"hsl(var(--secondary))":"hsl(var(--muted-foreground))"}}),e.jsx("span",{className:"text-[12.5px] font-semibold",children:c.label}),e.jsx("span",{className:"rounded-full bg-muted px-1.5 text-[11px] text-muted-foreground",children:d.length})]}),e.jsxs("div",{className:"min-h-0 flex-1 space-y-3 overflow-y-auto rounded-2xl border border-border/50 bg-muted/15 p-2.5",children:[d.map((x,h)=>e.jsxs(je,{style:{animationDelay:`${h*45}ms`},className:"sara-rise cursor-pointer p-3.5 transition-all duration-200 hover:-translate-y-0.5 hover:border-primary/45",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h3",{className:"text-[13.5px] font-semibold leading-snug",children:x.title}),e.jsx("span",{className:"shrink-0 rounded-md px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-[0.05em]",style:{background:Jt[x.priority].bg,color:Jt[x.priority].fg},children:x.priority})]}),e.jsx("p",{className:"mt-1.5 text-[12px] leading-relaxed text-muted-foreground",children:x.summary}),e.jsxs("div",{className:"mt-3",children:[e.jsxs("div",{className:"flex items-center justify-between text-[11px] text-muted-foreground",children:[e.jsx("span",{children:x.status}),e.jsxs("span",{children:[x.progress,"%"]})]}),e.jsx("div",{className:"mt-1.5 h-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full rounded-full",style:{width:`${x.progress}%`,backgroundImage:"linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)))"}})})]}),e.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[e.jsx(yt,{id:x.model,compact:!0}),e.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[e.jsx(Ra,{className:"h-3 w-3"}),x.due]}),e.jsx("div",{className:"ml-auto",children:e.jsx(de,{ids:x.people,size:20,max:3})})]})]},x.id)),d.length===0&&e.jsx("div",{className:"grid h-24 place-items-center rounded-xl border border-dashed border-border/70 text-[12px] text-muted-foreground",children:"Nothing here"})]})]},c.id)})})})]})}const An=({msg:r})=>r.ai?e.jsx(he,{size:34}):e.jsx(z,{person:V(r.author),size:34}),sr=r=>r.ai?"SARA AI":V(r.author).name;function Sn(){const[r,t]=m.useState("engineering"),[s,a]=m.useState("m3"),[n,o]=m.useState(""),i=Qt.find(l=>l.id===r);return e.jsxs("div",{className:"flex h-full min-h-0",children:[e.jsxs("div",{className:"flex w-[240px] shrink-0 flex-col border-r border-border/70 bg-card/40 backdrop-blur-xl",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 pb-2 pt-5",children:[e.jsx("span",{className:"text-[10.5px] font-semibold uppercase tracking-[0.11em] text-muted-foreground",children:"Channels"}),e.jsx("button",{className:"grid h-6 w-6 place-items-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground",children:e.jsx(jt,{className:"h-3.5 w-3.5"})})]}),e.jsx("div",{className:"px-2",children:Qt.map(l=>e.jsxs("button",{onClick:()=>t(l.id),className:O("flex w-full items-center gap-2 rounded-xl px-3 py-2 text-[13px] transition-colors",r===l.id?"bg-primary/14 font-medium text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[e.jsx(Ye,{className:"h-3.5 w-3.5 opacity-70"}),e.jsx("span",{className:"flex-1 truncate text-left",children:l.name}),l.unread?e.jsx("span",{className:"grid h-[17px] min-w-[17px] place-items-center rounded-full bg-primary px-1 text-[10px] font-bold text-primary-foreground",children:l.unread}):null]},l.id))}),e.jsx("div",{className:"px-4 pb-2 pt-6 text-[10.5px] font-semibold uppercase tracking-[0.11em] text-muted-foreground",children:"Direct messages"}),e.jsxs("div",{className:"px-2",children:[e.jsxs("button",{className:"flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-[13px] text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:[e.jsx(he,{size:22}),e.jsx("span",{className:"flex-1 text-left",children:"SARA"}),e.jsx(Me,{})]}),ye.filter(l=>["sarah","james","maya"].includes(l.id)).map(l=>e.jsxs("button",{className:"flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-[13px] text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:[e.jsx(z,{person:l,size:22,ring:!1}),e.jsx("span",{className:"flex-1 truncate text-left",children:l.name})]},l.id))]})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsxs("div",{className:"flex h-[58px] shrink-0 items-center gap-3 border-b border-border/70 px-6",children:[e.jsx(Ye,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"text-[14px] font-semibold",children:i.name}),e.jsxs("span",{className:"hidden text-[12px] text-muted-foreground md:inline",children:[e.jsx("span",{className:"mx-2 text-border",children:"|"}),i.topic]}),e.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[e.jsx(de,{ids:["sarah","james","tom","priya","elena"],size:24,max:4}),e.jsx("button",{className:"grid h-8 w-8 place-items-center rounded-lg border border-border/70 bg-muted/40 text-muted-foreground hover:text-foreground",children:e.jsx(Ta,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"flex min-h-0 flex-1",children:[e.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto px-6 py-6",children:[e.jsxs("div",{className:"mx-auto max-w-[820px] space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-muted-foreground",children:[e.jsx("span",{className:"h-px flex-1 bg-border/70"}),"Today",e.jsx("span",{className:"h-px flex-1 bg-border/70"})]}),hn.map((l,u)=>{var c;return e.jsxs("div",{className:"sara-rise group flex gap-3",style:{animationDelay:`${u*70}ms`},children:[e.jsx(An,{msg:l}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[13px] font-semibold",children:sr(l)}),l.ai&&e.jsx(Me,{}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:l.time})]}),e.jsx("div",{className:"mt-1 space-y-1.5 text-[14px] leading-relaxed text-foreground
89/88",children:l.body.map(d=>e.jsx("p",{children:d},d))}),l.code&&e.jsxs("div",{className:"mt-2.5 overflow-hidden rounded-xl border border-border/70 bg-[hsl(250_24%_4%)]",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-border/60 px-3 py-1.5 text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground",children:[l.code.lang,e.jsx("span",{children:"analytics/hero.ts"})]}),e.jsx("pre",{className:"overflow-x-auto px-3.5 py-3 text-[12.5px] leading-[1.7]",children:l.code.lines.map((d,x)=>e.jsx("div",{className:"text-foreground/80",children:d},x))})]}),l.attachment&&e.jsxs(je,{className:"mt-2.5 flex items-center gap-3 p-3",children:[e.jsx("div",{className:"grid h-9 w-9 place-items-center rounded-xl bg-primary/15",children:e.jsx(mt,{className:"h-4 w-4 text-primary-light"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-[13px] font-medium",children:l.attachment.name}),e.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:l.attachment.meta})]}),e.jsx("button",{className:"ml-auto rounded-lg border border-border/70 px-2.5 py-1 text-[11.5px] text-foreground/85 hover:border-primary/50",children:"Open"})]}),(l.reactions||l.replies)&&e.jsxs("div",{className:"mt-2.5 flex flex-wrap items-center gap-2",children:[(c=l.reactions)==null?void 0:c.map(d=>e.jsxs("button",{className:"flex items-center gap-1.5 rounded-full border border-border/70 bg-muted/45 px-2 py-0.5 text-[11.5px] transition-colors hover:border-primary/50",children:[e.jsx("span",{children:d.emoji}),e.jsx("span",{className:"text-muted-foreground",children:d.count})]},d.emoji)),e.jsx("button",{className:"grid h-[22px] w-[26px] place-items-center rounded-full border border-border/70 bg-muted/45 text-muted-foreground opacity-0 transition-opacity hover:text-foreground group-hover:opacity-100",children:e.jsx(Pt,{className:"h-3.5 w-3.5"})}),l.replies&&e.jsxs("button",{onClick:()=>a(s===l.id?null:l.id),className:"flex items-center gap-2 rounded-full px-2 py-0.5 text-[11.5px] font-medium text-primary-light hover:bg-primary/10",children:[e.jsx(Pe,{className:"h-3.5 w-3.5"}),l.replies.length," replies",e.jsx(st,{className:O("h-3 w-3 transition-transform duration-200",s===l.id&&"rotate-180")})]})]}),l.replies&&s===l.id&&e.jsx("div",{className:"mt-3 space-y-3 border-l-2 border-border/70 pl-4",children:l.replies.map((d,x)=>e.jsxs("div",{className:"sara-rise flex gap-2.5",style:{animationDelay:`${x*60}ms`},children:[d.ai?e.jsx(he,{size:24}):e.jsx(z,{person:V(d.author),size:24}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[12px] font-semibold",children:sr(d)}),d.ai&&e.jsx(Me,{}),e.jsx("span",{className:"text-[10.5px] text-muted-foreground",children:d.time})]}),e.jsx("p",{className:"mt-0.5 text-[13px] leading-relaxed text-foreground/85",children:d.body})]})]},x))})]})]},l.id)}),e.jsxs("div",{className:"flex items-center gap-2.5 pl-1 text-[12px] text-muted-foreground",children:[e.jsx(z,{person:V("sarah"),size:20,ring:!1}),e.jsx("span",{children:"Sarah Okafor is typing"}),e.jsx("span",{className:"flex items-center gap-1",children:[0,1,2].map(l=>e.jsx("span",{className:"sara-dot h-1 w-1 rounded-full bg-primary-light",style:{animationDelay:`${l*160}ms`}},l))})]})]}),e.jsx("div",{className:"mx-auto mt-6 max-w-[820px]",children:e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/75 p-2 backdrop-blur-xl transition-colors focus-within:border-primary/55",children:[e.jsx("input",{value:n,onChange:l=>o(l.target.value),placeholder:`Message #${i.name}`,className:"w-full bg-transparent px-3 py-2 text-[14px] outline-none placeholder:text-muted-foreground/70"}),e.jsxs("div",{className:"flex items-center gap-1 px-1",children:[e.jsx("button",{className:"grid h-8 w-8 place-items-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground",children:e.jsx(mr,{className:"h-4 w-4"})}),e.jsx("button",{className:"grid h-8 w-8 place-items-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground",children:e.jsx(Pt,{className:"h-4 w-4"})}),e.jsx("span",{className:"ml-1 text-[11px] text-muted-foreground",children:"SARA is in this channel and will respond when mentioned"}),e.jsx("button",{onClick:()=>o(""),className:"ml-auto grid h-8 w-8 place-items-center rounded-lg bg-primary text-primary-foreground transition-colors hover:bg-primary-light",children:e.jsx(ca,{className:"h-3.5 w-3.5"})})]})]})})]}),e.jsxs("div",{className:"hidden w-[276px] shrink-0 flex-col gap-3 border-l border-border/70 bg-card/30 p-4 backdrop-blur-xl xl:flex",children:[e.jsx("div",{className:"text-[10.5px] font-semibold uppercase tracking-[0.11em] text-muted-foreground",children:"Linked work item"}),e.jsxs(je,{className:"p-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-muted-foreground",children:[e.jsx(Er,{className:"h-3.5 w-3.5"}),"Needs Human Review"]}),e.jsx("h3",{className:"mt-2 text-[13.5px] font-semibold",children:"Landing Page UI Review"}),e.jsx("p",{className:"mt-1.5 text-[12px] leading-relaxed text-muted-foreground",children:"Enterprise-focused rewrite of hero, trust band and pricing path."}),e.jsxs("div",{className:"mt-3 flex items-center justify-between",children:[e.jsx(de,{ids:["sarah","james"],size:20}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"Due 18 Jul"})]})]}),e.jsx("div",{className:"pt-2 text-[10.5px] font-semibold uppercase tracking-[0.11em] text-muted-foreground",children:"In this channel"}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl px-1.5 py-1.5",children:[e.jsx(he,{size:24}),e.jsx("span",{className:"flex-1 text-[12.5px]",children:"SARA"}),e.jsx(Me,{})]}),ye.filter(l=>
89l.id!==ee.id).slice(0,5).map(l=>e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl px-1.5 py-1.5",children:[e.jsx(z,{person:l,size:24,ring:!1}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-[12.5px]",children:l.name}),e.jsx("div",{className:"truncate text-[10.5px] text-muted-foreground",children:l.role})]})]},l.id))]})]})]})]})]})}const nr=[{key:"gpt",name:"GPT-4o",color:"hsl(158 64% 52%)"},{key:"gemini",name:"Gemini 2.0 Flash",color:"hsl(217 91% 62%)"},{key:"claude",name:"Claude 4 Sonnet",color:"hsl(24 90% 60%)"},{key:"llama",name:"Gemini 2.5 Pro",color:"hsl(280 80% 66%)"}],Fe={contentStyle:{background:"hsl(250 22% 9%)",border:"1px solid hsl(250 14% 20%)",borderRadius:12,fontSize:12,color:"hsl(250 20% 97%)",boxShadow:"0 20px 40px -20px hsl(250 60% 2% / 0.9)"},labelStyle:{color:"hsl(250 10% 70%)",marginBottom:4},itemStyle:{color:"hsl(250 20% 97%)"}},On=({label:r,value:t,options:s,onChange:a})=>{const[n,o]=m.useState(!1);return e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>o(i=>!i),className:"flex h-9 items-center gap-2 rounded-xl border border-border/70 bg-card/60 px-3 text-[12.5px] font-medium transition-colors hover:border-primary/45",children:[e.jsx("span",{className:"text-muted-foreground",children:r}),t,e.jsx(st,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),e.jsx(Oe,{open:n,onClose:()=>o(!1),className:"w-[200px]",children:s.map(i=>e.jsxs("button",{onClick:()=>{a(i),o(!1)},className:O("flex w-full items-center gap-2 rounded-xl px-3 py-2 text-left text-[13px] hover:bg-muted",i===t?"text-foreground":"text-foreground/80"),children:[e.jsx("span",{className:O("h-1.5 w-1.5 rounded-full",i===t?"bg-primary":"")}),i]},i))})]})},ue=({title:r,subtitle:t,children:s,className:a})=>e.jsxs(je,{className:O("p-5",a),children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-[13.5px] font-semibold",children:r}),t&&e.jsx("p",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:t})]}),s]});function Pn(){const[r]=m.useState("daily"),[t,s]=m.useState(Xt[1]),a=gn[r],n=Math.max(...Zt.map(i=>i.value)),o=Math.max(...er.map(i=>i.requests));return e.jsxs("div",{className:"h-full min-h-0 overflow-y-auto px-7 py-6",children:[e.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-[22px] font-semibold tracking-[-0.01em]",children:"AI Usage Dashboard"}),e.jsxs("p",{className:"mt-1 text-[13px] text-muted-foreground",children:["Northwind Group · all teams · ",t.toLowerCase()]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(On,{label:"Date range",value:t,options:Xt,onChange:s}),e.jsxs("button",{className:"flex h-9 items-center gap-2 rounded-xl border border-border/70 bg-card/60 px-3 text-[12.5px] font-medium hover:border-primary/45",children:[e.jsx(ma,{className:"h-4 w-4 text-muted-foreground"}),"Export"]})]})]}),e.jsx("div",{className:"mt-6 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6",children:fn.map((i,l)=>e.jsxs(je,{style:{animationDelay:`${l*45}ms`},className:"sara-rise p-4",children:[e.jsx("div",{className:"text-[11px] leading-snug text-muted-foreground",children:i.label}),e.jsx("div",{className:"mt-2 text-[22px] font-semibold tracking-[-0.02em]",children:i.value}),e.jsx("div",{className:"mt-2 flex items-center gap-1.5",children:e.jsxs("span",{className:"flex items-center gap-0.5 rounded-md px-1.5 py-0.5 text-[10.5px] font-semibold",style:{background:i.up?"hsl(152 70% 45% / 0.15)":"hsl(217 91% 60% / 0.15)",color:i.up?"hsl(152 65% 60%)":"hsl(217 92% 74%)"},children:[i.up?e.jsx(ua,{className:"h-3 w-3"}):e.jsx(Ia,{className:"h-3 w-3"}),i.delta]})}),e.jsx("div",{className:"mt-1.5 text-[10.5px] text-muted-foreground",children:i.note})]},i.label))}),e.jsxs(je,{className:"mt-4 p-5",children:[e.jsx("div",{className:"flex flex-wrap items-start justify-between gap-3",children:e.jsxs("div",{children:[e.jsx("h3",{className:"text-[14px] font-semibold",children:"AI credit usage by model"}),e.jsxs("p",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:["Credits consumed, by day · ",t.toLowerCase()]})]})}),e.jsx("div",{className:"mt-4 flex flex-wrap items-center gap-4",children:nr.map(i=>e.jsxs("div",{className:"flex items-center gap-1.5 text-[11.5px] text-muted-foreground",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-[3px]",style:{background:i.color}}),i.name]},i.key))}),e.jsx("div",{className:"mt-3 h-[320px] w-full",children:e.jsx(Te,{width:"100%",height:"100%",children:e.jsxs(Tt,{data:a,barGap:3,barCategoryGap:22,children:[e.jsx(Ue,{vertical:!1,stroke:"hsl(250 14% 18%)"}),e.jsx(qe,{dataKey:"name",stroke:"hsl(250 10% 60%)",tick:{fontSize:11}
89,tickLine:!1,axisLine:!1}),e.jsx(He,{stroke:"hsl(250 10% 60%)",tick:{fontSize:11},tickLine:!1,axisLine:!1,tickFormatter:i=>`${i/1e3}k`}),e.jsx(Re,{cursor:{fill:"hsl(250 14% 18% / 0.4)"},...Fe}),nr.map(i=>e.jsx(Rt,{dataKey:i.key,name:i.name,fill:i.color,radius:[4,4,0,0]},i.key))]})})})]}),e.jsxs("div",{className:"mt-4 grid gap-4 xl:grid-cols-3",children:[e.jsx(ue,{title:"Spend by workspace",subtitle:"This month, GBP",children:e.jsx("div",{className:"space-y-3",children:Zt.map(i=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between text-[12px]",children:[e.jsx("span",{className:"text-foreground/85",children:i.name}),e.jsxs("span",{className:"font-semibold",children:["£",i.value.toLocaleString()]})]}),e.jsx("div",{className:"mt-1.5 h-1.5 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full rounded-full",style:{width:`${i.value/n*100}%`,backgroundImage:"linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)))"}})})]},i.name))})}),e.jsx(ue,{title:"Most used models",subtitle:"Share of total requests",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-[168px] w-[168px] shrink-0",children:e.jsx(Te,{width:"100%",height:"100%",children:e.jsxs(on,{children:[e.jsx(U,{data:$e,dataKey:"value",innerRadius:50,outerRadius:78,paddingAngle:2,stroke:"none",children:$e.map(i=>e.jsx(pt,{fill:i.color},i.name))}),e.jsx(Re,{...Fe})]})})}),e.jsx("div",{className:"min-w-0 flex-1 space-y-2",children:$e.map(i=>e.jsxs("div",{className:"flex items-center gap-2 text-[12px]",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-[3px]",style:{background:i.color}}),e.jsx("span",{className:"flex-1 truncate text-foreground/85",children:i.name}),e.jsx("span",{className:"text-muted-foreground",children:i.value.toLocaleString()})]},i.name))})]})}),e.jsx(ue,{title:"Top AI users",subtitle:"By requests this month",children:e.jsx("div",{className:"space-y-3",children:er.map(i=>{const l=V(i.id);return e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(z,{person:l,size:28,ring:!1}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-[12px]",children:[e.jsx("span",{className:"truncate text-foreground/85",children:l.name}),e.jsx("span",{className:"ml-2 shrink-0 font-semibold",children:i.spend})]}),e.jsx("div",{className:"mt-1.5 h-1.5 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full rounded-full bg-primary/80",style:{width:`${i.requests/o*100}%`}})})]})]},i.id)})})})]}),e.jsxs("div",{className:"mt-4 grid gap-4 pb-8 xl:grid-cols-3",children:[e.jsx(ue,{title:"Daily AI usage trend",subtitle:"Requests per day",className:"xl:col-span-2",children:e.jsx("div",{className:"h-[220px] w-full",children:e.jsx(Te,{width:"100%",height:"100%",children:e.jsxs(ln,{data:bn,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"saraArea",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"hsl(258 90% 66%)",stopOpacity:.45}),e.jsx("stop",{offset:"100%",stopColor:"hsl(258 90% 66%)",stopOpacity:0})]})}),e.jsx(Ue,{vertical:!1,stroke:"hsl(250 14% 18%)"}),e.jsx(qe,{dataKey:"day",stroke:"hsl(250 10% 60%)",tick:{fontSize:11},tickLine:!1,axisLine:!1}),e.jsx(He,{stroke:"hsl(250 10% 60%)",tick:{fontSize:11},tickLine:!1,axisLine:!1,tickFormatter:i=>`${i/1e3}k`}),e.jsx(Re,{...Fe}),e.jsx(te,{type:"monotone",dataKey:"requests",stroke:"hsl(258 90% 72%)",strokeWidth:2,fill:"url(#saraArea)"})]})})})}),e.jsx(ue,{title:"Average response time",subtitle:"Seconds per request",children:e.jsx("div",{className:"h-[220px] w-full",children:e.jsx(Te,{width:"100%",height:"100%",children:e.jsxs(Tt,{data:tr,layout:"vertical",barCategoryGap:12,children:[e.jsx(Ue,{horizontal:!1,stroke:"hsl(250 14% 18%)"}),e.jsx(qe,{type:"number",stroke:"hsl(250 10% 60%)",tick:{fontSize:11},tickLine:!1,axisLine:!1,tickFormatter:i=>`${i}s`}),e.jsx(He,{type:"category",dataKey:"name",stroke:"hsl(250 10% 60%)",tick:{fontSize:11},tickLine:!1,axisLine:!1,width:62}),e.jsx(Re,{cursor:{fill:"hsl(250 14% 18% / 0.4)"},...Fe}),e.jsx(Rt,{dataKey:"ms",radius:[0,4,4,0],children:tr.map((i,l)=>{var u;return e.jsx(pt,{fill:((u=$e[l])==null?void 0:u.color)??"hsl(258 90% 66%)"},i.name)})})]})})})}),e.jsx(ue,{title:"Top queries",subtitle:"Most repeated prompts",className:"xl:col-span-3",children:e.jsx("div",{className:"space-y-2",children:vn.map((i,l)=>e.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-border/50 bg-muted/20 px-3.5 py-2.5",children:[e.jsx("span",{className:"grid h-6 w-6 shrink-0 place-items-center rounded-lg bg-primary/15 text-[11px] font-bold text-primary-light",children:l+1}),e.jsxs("span",{className:"min-w-0 flex-1 truncate text-[13px] text-foreground
89/88",children:["â",i.text,"â"]}),e.jsx("span",{className:"hidden shrink-0 rounded-full border border-border/70 px-2 py-0.5 text-[11px] text-muted-foreground sm:inline",children:i.team}),e.jsx("span",{className:"shrink-0 text-[12px] font-semibold",children:i.count.toLocaleString()})]},i.text))})})]})]})}const K=()=>{var r;return typeof window<"u"&&((r=window.matchMedia)==null?void 0:r.call(window,"(prefers-reduced-motion: reduce)").matches)};function En(r,t=1600,s=0){const[a,n]=m.useState(K()?r:0);return m.useEffect(()=>{if(K()){n(r);return}let o=0;const i=performance.now(),l=u=>{const c=Math.min(1,(u-i)/t),d=1-Math.pow(1-c,3);n(r*d),c<1&&(o=requestAnimationFrame(l))};return o=requestAnimationFrame(l),()=>cancelAnimationFrame(o)},[r,t]),s>0?a.toFixed(s):Math.round(a).toLocaleString()}const Be=({label:r,value:t,prefix:s="",suffix:a="",decimals:n=0,delta:o,positive:i=!0})=>{const l=En(t,1700,n);return e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/60 px-4 py-3.5",children:[e.jsx("div",{className:"text-[10.5px] font-medium uppercase tracking-[0.09em] text-muted-foreground",children:r}),e.jsxs("div",{className:"mt-2 flex items-end gap-2",children:[e.jsxs("div",{className:"text-[26px] font-semibold leading-none tracking-tight text-foreground tabular-nums",children:[s,l,a]}),e.jsx("span",{className:O("mb-0.5 rounded-md px-1.5 py-0.5 text-[10px] font-semibold",i?"bg-[hsl(var(--success)/0.16)] text-[hsl(var(--success))]":"bg-[hsl(var(--warning)/0.16)] text-[hsl(var(--warning))]"),children:o})]})]})},_n=[{id:"gpt-5",pct:82},{id:"gemini",pct:64},{id:"claude",pct:57},{id:"llama",pct:38},{id:"deepseek",pct:24}],In=()=>{const[r,t]=m.useState(K()),[s,a]=m.useState(0);return m.useEffect(()=>{const n=setTimeout(()=>t(!0),250);if(K())return()=>clearTimeout(n);const o=setInterval(()=>a(i=>i+1),3200);return()=>{clearTimeout(n),clearInterval(o)}},[]),e.jsx("div",{className:"space-y-3",children:_n.map((n,o)=>{const i=Ee.find(u=>u.id===n.id),l=r?Math.sin(s+o)*2.2:0;return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(H,{id:i.id,size:18}),e.jsx("span",{className:"w-[64px] shrink-0 text-[11.5px] font-medium text-foreground/80",children:i.name}),e.jsx("div",{className:"h-[7px] flex-1 overflow-hidden rounded-full bg-muted/60",children:e.jsx("div",{className:"h-full rounded-full",style:{width:r?`${n.pct+l}%`:"0%",background:i.hue,transition:"width 2.4s cubic-bezier(0.22, 1, 0.36, 1)",transitionDelay:r?`${o*90}ms`:"0ms"}})}),e.jsxs("span",{className:"w-[34px] shrink-0 text-right text-[11px] tabular-nums text-muted-foreground",children:[Math.round(n.pct+l),"%"]})]},n.id)})})},dt=[{dept:"Legal",model:"claude",note:"Contract review"},{dept:"Finance",model:"gpt-5",note:"Board pack draft"},{dept:"Marketing",model:"gemini",note:"Campaign brief"},{dept:"Engineering",model:"deepseek",note:"Code audit"},{dept:"Operations",model:"llama",note:"Supplier summary"},{dept:"Sales",model:"gpt-5",note:"RFP response"},{dept:"People",model:"claude",note:"Policy rewrite"}],Cn=()=>{const[r,t]=m.useState(4);m.useEffect(()=>{if(K())return;const a=setInterval(()=>t(n=>n+1),2600);return()=>clearInterval(a)},[]);const s=Array.from({length:4},(a,n)=>{const o=(r-n+dt.length*4)%dt.length;return{...dt[o],key:`${r-n}`}});return e.jsx("div",{className:"space-y-2",children:s.map((a,n)=>e.jsxs("div",{className:"sara-feed-row flex items-center gap-2.5 rounded-xl border border-border/50 bg-muted/25 px-2.5 py-2",style:{opacity:1-n*.22},children:[e.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full bg-[hsl(var(--success))]"}),e.jsx("span",{className:"text-[11.5px] font-medium text-foreground/85",children:a.dept}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"â"}),e.jsx(H,{id:a.model,size:15}),e.jsx("span",{className:"truncate text-[11px] text-muted-foreground",children:a.note})]},a.key))})},Tn=({pct:r=68})=>{const[t,s]=m.useState(K());m.useEffect(()=>{const o=setTimeout(()=>s(!0),350);return()=>clearTimeout(o)},[]);const a=46,n=2*Math.PI*a;return e.jsxs("div",{className:"relative grid place-items-center",children:[e.jsxs("svg",{width:"124",height:"124",viewBox:"0 0 124 124",className:"-rotate-90",children:[e.jsx("circle",{cx:"62",cy:"62",r:a,fill:"none",stroke:"hsl(var(--muted))",strokeWidth:"9"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"sara-ring",x1:"0",y1:"0",x2:"1",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),e.jsx("stop",{offset:"100%",stopColor:"hsl(var(--secondary))"})]})}
89),e.jsx("circle",{cx:"62",cy:"62",r:a,fill:"none",stroke:"url(#sara-ring)",strokeWidth:"9",strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:t?n*(1-r/100):n,style:{transition:"stroke-dashoffset 2.6s cubic-bezier(0.22, 1, 0.36, 1)"}})]}),e.jsxs("div",{className:"absolute grid place-items-center text-center",children:[e.jsxs("div",{className:"text-[22px] font-semibold leading-none tabular-nums text-foreground",children:[r,"%"]}),e.jsx("div",{className:"mt-1 text-[10px] uppercase tracking-[0.08em] text-muted-foreground",children:"of budget"})]})]})},Rn=[{name:"Finance",pct:74,spend:"£7.4k"},{name:"Legal",pct:61,spend:"£6.1k"},{name:"Marketing",pct:52,spend:"£5.2k"},{name:"Engineering",pct:88,spend:"£9.6k"},{name:"Operations",pct:34,spend:"£3.1k"}],Ln=()=>{const[r,t]=m.useState(K());return m.useEffect(()=>{const s=setTimeout(()=>t(!0),400);return()=>clearTimeout(s)},[]),e.jsx("div",{className:"space-y-2.5",children:Rn.map((s,a)=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-[78px] shrink-0 text-[11.5px] text-foreground/80",children:s.name}),e.jsx("div",{className:"h-[6px] flex-1 overflow-hidden rounded-full bg-muted/60",children:e.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-[hsl(var(--primary))] to-[hsl(var(--secondary))]",style:{width:r?`${s.pct}%`:"0%",transition:"width 2.2s cubic-bezier(0.22, 1, 0.36, 1)",transitionDelay:r?`${a*110}ms`:"0ms"}})}),e.jsx("span",{className:"w-[38px] shrink-0 text-right text-[11px] tabular-nums text-muted-foreground",children:s.spend})]},s.name))})},ct=[18,26,22,34,30,44,38,52,47,61,58,72,66,84],$n=()=>{const[r,t]=m.useState(K());m.useEffect(()=>{const c=setTimeout(()=>t(!0),450);return()=>clearTimeout(c)},[]);const s=520,a=132,n=Math.max(...ct)*1.15,o=ct.map((c,d)=>{const x=d/(ct.length-1)*s,h=a-c/n*a;return[x,h]}),i=o.map(([c,d],x)=>`${x===0?"M":"L"}${c.toFixed(1)},${d.toFixed(1)}`).join(" "),l=`${i} L${s},${a} L0,${a} Z`,u=o[o.length-1];return e.jsxs("svg",{viewBox:`0 0 ${s} ${a}`,className:"h-[132px] w-full overflow-visible",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"sara-area",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary) / 0.42)"}),e.jsx("stop",{offset:"100%",stopColor:"hsl(var(--primary) / 0)"})]}),e.jsxs("linearGradient",{id:"sara-line",x1:"0",y1:"0",x2:"1",y2:"0",children:[e.jsx("stop",{offset:"0%",stopColor:"hsl(var(--secondary))"}),e.jsx("stop",{offset:"100%",stopColor:"hsl(var(--primary-glow))"})]})]}),[.25,.5,.75].map(c=>e.jsx("line",{x1:"0",x2:s,y1:a*c,y2:a*c,stroke:"hsl(var(--border))",strokeWidth:"1",strokeDasharray:"3 5"},c)),e.jsx("path",{d:l,fill:"url(#sara-area)",style:{opacity:r?1:0,transition:"opacity 1.6s ease 0.8s"}}),e.jsx("path",{d:i,fill:"none",stroke:"url(#sara-line)",strokeWidth:"2.4",strokeLinecap:"round",strokeDasharray:1400,strokeDashoffset:r?0:1400,style:{transition:"stroke-dashoffset 2.8s cubic-bezier(0.22, 1, 0.36, 1)"}}),e.jsx("circle",{cx:u[0],cy:u[1],r:"4.5",fill:"hsl(var(--primary-glow))",className:"sara-pulse-dot",style:{opacity:r?1:0,transition:"opacity 0.8s ease 2.4s"}})]})},ir=[{id:"c-sarah",name:"Sarah",initials:"S",role:"Finance Director",team:"Operations",dept:"Finance",from:"hsl(330 85% 62%)",to:"hsl(275 80% 62%)"},{id:"c-michael",name:"Michael",initials:"M",role:"General Counsel",team:"Operations",dept:"Legal",from:"hsl(199 90% 58%)",to:"hsl(217 91% 55%)"},{id:"c-emma",name:"Emma",initials:"E",role:"Head of Marketing",team:"Marketing",dept:"Marketing",from:"hsl(24 90% 60%)",to:"hsl(0 80% 62%)"}],Mn=()=>{const[r,t]=m.useState(0);m.useEffect(()=>{if(K()){t(5);return}let n=[];const o=()=>{n=[[1,400],[2,1100],[3,1800],[4,2500],[5,3400],[6,6200],[0,7200]].map(([u,c])=>window.setTimeout(()=>t(u),c))};o();const i=window.setInterval(()=>{n.forEach(clearTimeout),o()},9e3);return()=>{n.forEach(clearTimeout),clearInterval(i)}},[]);const s=r>=1&&r<=5,a=Math.max(0,Math.min(3,r-1));return e.jsx("div",{className:"pointer-events-none absolute right-4 top-1/2 z-20 w-[302px] -translate-y-1/2 sm:right-8 lg:right-14","aria-hidden":"true",children:e.jsxs("div",{className:"rounded-2xl border border-border/80 bg-popover/90 p-4 shadow-[0_40px_90px_-30px_hsl(250_70%_2%/0.95)] backdrop-blur-2xl",style:{opacity:s?1:0,transform:s?"translateY(0) scale(1)":"translateY(14px) scale(0.97)",transition:"opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1)"},children:[e.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.1em] text-primary-light",children:"AI Task"}),e.jsx("div",{className:"mt-1.5 text-[15px] font-semibold leading-snug text-foreground",children:"Prepare Quarterly Board Report"}),e.jsx("div",{className:"mt-3.5 border-t border-border/70 pt-3 text-[11.5px] font-medium text-muted-foreground",children:"Add Collaborators"}),e.jsx("div",{className:"mt-2.5 space-y-2",children:ir.map((n,o)=>{const i=a>o;return e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl bg-muted/35 px-2.5 py-2",style:{opacity:i?1:0,transform:i?"translateY(0)":"translateY(8px)",transition:"opacity 500ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1)"},children:[e.jsx(z,{person:n,size:26}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-[12.5px] font-medium text-foreground",children:n.name}),e.jsx("div",{className:"truncate text-[10.5px] text-muted-foreground",children:n.dept})]}),e.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-full bg-[hsl(var(--success))]",style:{opacity:i?1:0,transform:i?"scale(1)":"scale(0.5)",transition:"opacity 400ms ease 180ms, transform 500ms cubic-bezier(0.22, 1.5, 0.36, 1) 180ms"},children:e.jsx(_e,{className:"h-3 w-3 text-[hsl(var(--success-foreground))]",strokeWidth:3.5})})]},n.id)})}),e.jsxs("div",{className:"mt-3.5 flex items-center gap-2",style:{opacity:r>=5?1:0,transition:"opacity 600ms ease"},children:[e.jsx("div",{className:"flex items-center",children:ir.map((n,o)=>e.jsx("div",{style:{marginLeft:o===0?0:-7},children:e.jsx(z,{person:n,size:22})},n.id))}),e.jsx("span",{className:"text-[10.5px] text-muted-foreground",children:"3 collaborators added"})]})]})})},ke=({title:r,meta:t,children:s,className:a})=>e.jsxs("div",{className:O("rounded-2xl border border-border/70 bg-card/60 p-4",a),children:[e.jsxs("div",{className:"mb-3.5 flex items-baseline justify-between gap-3",children:[e.jsx("h3",{className:"text-[12px] font-semibold tracking-tight text-foreground",children:r}),t&&e.jsx("span",{className:"text-[10.5px] text-muted-foreground",children:t})]}),s]});function Dn(){return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute -inset-x-16 -top-16 bottom-0 -z-10 blur-3xl",style:{background:"radial-gradient(60% 55% at 30% 20%, hsl(var(--primary) / 0.30), transparent 70%), radial-gradient(55% 55% at 78% 55%, hsl(var(--secondary) / 0.26), transparent 70%)"}}),e.jsxs("div",{className:"relative overflow-hidden rounded-[28px] border border-border/80 bg-[hsl(var(--background)/0.86)] p-4 shadow-[0_60px_140px_-50px_hsl(250_70%_2%/0.95)] backdrop-blur-xl sm:p-5",children:[e.jsxs("div",{className:"mb-4 flex items-center gap-3 px-1",children:[e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-muted"}),e.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-muted"}),e.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-muted"})]}),e.jsx("div",{className:"text-[11.5px] font-medium text-muted-foreground",children:"Sara · AI Operations"}),e.jsxs("div",{className:"ml-auto flex items-center gap-2 rounded-full border border-border/70 bg-muted/30 px-2.5 py-1",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[hsl(var(--success))] sara-pulse-dot"}),e.jsx("span",{className:"text-[10.5px] text-muted-foreground",children:"Live"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[e.jsx(Be,{label:"AI usage (requests)",value:1284920,delta:"+18%"}),e.jsx(Be,{label:"Active AI tasks",value:342,delta:"+24"}),e.jsx(Be,{label:"AI spend this month",value:33,prefix:"£",suffix:"k",delta:"-6%"}),e.jsx(Be,{label:"Monthly savings",value:112,prefix:"£",suffix:"k",delta:"+£14
89k"})]}),e.jsxs("div",{className:"mt-3 grid gap-3 lg:grid-cols-12",children:[e.jsx(ke,{title:"Live AI usage",meta:"Last 14 days",className:"lg:col-span-7",children:e.jsx($n,{})}),e.jsx(ke,{title:"Budget utilisation",meta:"£48k cap",className:"lg:col-span-5",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(Tn,{pct:68}),e.jsx("div",{className:"min-w-0 flex-1 space-y-2.5",children:[["Committed","£33.0k"],["Forecast","£41.2k"],["Reclaimed by routing","£7.8k"]].map(([r,t])=>e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsx("span",{className:"text-[11.5px] text-muted-foreground",children:r}),e.jsx("span",{className:"text-[12.5px] font-semibold tabular-nums text-foreground",children:t})]},r))})]})})]}),e.jsxs("div",{className:"mt-3 grid gap-3 lg:grid-cols-12",children:[e.jsx(ke,{title:"Model utilisation",className:"lg:col-span-4",children:e.jsx(In,{})}),e.jsx(ke,{title:"Prompt routing activity",meta:"Auto-routed",className:"lg:col-span-4",children:e.jsx(Cn,{})}),e.jsx(ke,{title:"Department activity",meta:"Spend MTD",className:"lg:col-span-4",children:e.jsx(Ln,{})})]}),e.jsx(Mn,{})]})]})}function zn(r=.35){const t=m.useRef(null),[s,a]=m.useState(!1);return m.useEffect(()=>{const n=t.current;if(!n)return;const o=new IntersectionObserver(i=>{i.some(l=>l.isIntersecting)&&(a(!0),o.disconnect())},{threshold:r});return o.observe(n),()=>o.disconnect()},[r]),{ref:t,inView:s}}const Fn=[{name:"api_module_review_v2.docx",who:"On Sarah's laptop",rot:-5,x:-62,y:0},{name:"api_module_review_FINAL.docx",who:"Emailed Tuesday",rot:2,x:6,y:52},{name:"api_module_review_v3_JS_edits.docx",who:"Nobody knows which is live",rot:6,x:66,y:104}],Bn=[{person:"sarah",model:"claude",text:"Review code for API modulesâ¦",spend:"£412"},{person:"james",model:"gpt-5",text:"Draft Q3 board summaryâ¦",spend:"£1,180"},{person:"priya",model:"gemini",text:"Generate checkout test casesâ¦",spend:"£690"}],Wn=({on:r})=>e.jsxs("div",{className:"relative h-[268px] overflow-hidden rounded-2xl border border-border/70 bg-muted/15 p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.1em] text-muted-foreground",children:[e.jsx(mt,{className:"h-3.5 w-3.5"})," Then · documents"]}),e.jsx("div",{className:"relative mt-5 h-[178px]",children:Fn.map((t,s)=>e.jsxs("div",{className:"absolute left-1/2 top-3 w-[236px] -translate-x-1/2 rounded-xl border border-border/70 bg-card/70 px-3.5 py-3 shadow-[0_18px_40px_-26px_hsl(250_60%_2%/0.9)] grayscale",style:{transform:r?`translate(calc(-50% + ${t.x}px), ${t.y}px) rotate(${t.rot}deg)`:"translate(-50%, 0) rotate(0deg)",opacity:r?1:.35,transition:`transform 1400ms cubic-bezier(0.22, 1, 0.36, 1) ${s*180}ms, opacity 900ms ease ${s*180}ms`,zIndex:10-s},children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(mt,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),e.jsx("span",{className:"truncate text-[12px] font-medium text-foreground/85",children:t.name})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-[10.5px] text-muted-foreground",children:[e.jsx(Zr,{className:"h-3 w-3"})," ",t.who]})]},t.name))}),e.jsx("p",{className:"absolute inset-x-5 bottom-4 text-[12.5px] leading-snug text-muted-foreground",children:"Files on desktops. Versions in inboxes. No shared truth."})]}),Gn=({on:r})=>e.jsxs("div",{className:"relative h-[268px] overflow-hidden rounded-2xl border border-border/70 bg-muted/15 p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.1em] text-muted-foreground",children:[e.jsx(Pe,{className:"h-3.5 w-3.5"})," Now · AI"]}),e.jsx("div",{className:"mt-5 space-y-2.5",children:Bn.map((t,s)=>{const a=V(t.person);return e.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl border border-border/60 bg-card/60 px-3 py-2.5",style:{opacity:r?1:0,transform:r?`translateX(${s%2===0?-10:14}px)`:"translateX(0)",transition:`opacity 700ms ease ${s*200}ms, transform 1200ms cubic-bezier(0.22, 1, 0.36, 1) ${s*200}ms`},children:[e.jsx(z,{person:a,size:24}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-[12px] text-foreground
89/80",children:t.text}),e.jsx(H,{id:t.model,size:16}),e.jsx("span",{className:"w-[46px] shrink-0 text-right text-[11px] tabular-nums text-muted-foreground",children:t.spend})]},t.person)})}),e.jsx("p",{className:"absolute inset-x-5 bottom-4 text-[12.5px] leading-snug text-muted-foreground",children:"Individual chats. Private prompts. Invisible spend."})]}),Vn=({on:r})=>e.jsxs("div",{className:"relative overflow-hidden rounded-2xl border border-primary/35 bg-card/70 p-5",style:{opacity:r?1:0,transform:r?"translateY(0) scale(1)":"translateY(18px) scale(0.985)",transition:"opacity 900ms ease 400ms, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) 400ms",boxShadow:"0 40px 100px -50px hsl(var(--primary) / 0.6)"},children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 -z-10",style:{background:"radial-gradient(70% 90% at 20% 0%, hsl(var(--primary) / 0.16), transparent 70%), radial-gradient(60% 90% at 85% 100%, hsl(var(--secondary) / 0.14), transparent 70%)"}}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.1em] text-primary-light",children:[e.jsx(wt,{className:"h-3.5 w-3.5"})," With Sara"]}),e.jsx("div",{className:"text-[14.5px] font-semibold text-foreground",children:"Q3 Board Report & API Module Review"}),e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(at,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx("div",{className:"flex items-center",children:ye.slice(0,4).map((t,s)=>e.jsx("div",{style:{marginLeft:s===0?0:-7},children:e.jsx(z,{person:t,size:22})},t.id))})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-[10px] uppercase tracking-[0.08em] text-muted-foreground",children:"One spend line"}),e.jsx("div",{className:"text-[13px] font-semibold tabular-nums text-foreground",children:"£2,282"})]})]})]}),e.jsx("div",{className:"mt-4 grid gap-2.5 sm:grid-cols-3",children:[["One shared AI workspace","Every prompt, output and decision in one thread."],["One shared context","Models, documents and history available to the whole team."],["One operational view","Routing, usage and spend visible across the business."]].map(([t,s])=>e.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/40 px-3.5 py-3",children:[e.jsx("div",{className:"text-[12.5px] font-semibold text-foreground",children:t}),e.jsx("div",{className:"mt-1 text-[11.5px] leading-snug text-muted-foreground",children:s})]},t))})]});function qn({className:r}){const{ref:t,inView:s}=zn(.3);return e.jsxs("section",{ref:t,className:O("relative",r),id:"fragmented",children:[e.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[e.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.16em] text-primary-light",children:"The end of fragmented AI"}),e.jsx("h2",{className:"mt-3 text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-[40px] sm:leading-[1.1]",children:"AI is where documents were twenty years ago"}),e.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-[15px] leading-relaxed text-muted-foreground",children:"Everyone kept their own files on their own machine, emailed versions back and forth, and nobody could say which one was current. Enterprise AI works exactly the same way today: thousands of private conversations, no shared context, no oversight and no idea what any of it costs."})]}),e.jsxs("div",{className:"mt-10 grid gap-4 lg:grid-cols-2",children:[e.jsx(Wn,{on:s}),e.jsx(Gn,{on:s})]}),e.jsx("div",{className:"mt-6",children:e.jsx(Vn,{on:s})}),e.jsxs("p",{className:"mt-8 text-center text-[17px] font-medium text-foreground/90",children:["Collaborative documents ended that era."," ",e.jsx("span",{className:"bg-gradient-to-r from-[hsl(var(--primary-glow))] to-[hsl(var(--secondary))] bg-clip-text text-transparent",children:"Sara does it for AI."})]})]})}function Hn(r=.3){const t=m.useRef(null),[s,a]=m.useState(!1);return m.useEffect(()=>{const n=t.current;if(!n)return;const o=new IntersectionObserver(i=>{i.some(l=>l.isIntersecting)&&(a(!0),o.disconnect())},{threshold:r});return o.observe(n),()=>o.disconnect()},[r]),{ref:t,inView:s}}const Kn=[{icon:at,title:"Collaborators",body:"Work inside the same AI task: prompt, edit and build on each other's output."},{icon:Qe,title:"Watchers",body:"Stay across the work without touching it. Full context, zero interruption."}
89,{icon:Nt,title:"Approvers",body:"Sign off before anything leaves the workspace. Review with the full prompt trail."},{icon:Da,title:"Prompt-insert",body:"Drop a correction mid-run and steer the model without restarting the task."}],Un=[{key:"drafting",label:"AI drafting",cards:[{id:"a",title:"Quarterly board report",model:"claude",people:["sarah","james"],tag:"Finance"},{id:"b",title:"Supplier risk summary",model:"gemini",people:["elena"],tag:"Ops"}]},{key:"review",label:"Human review",cards:[{id:"c",title:"Renewal pricing memo",model:"gpt-5",people:["priya","maya"],tag:"Sales"}]},{key:"approved",label:"Approved",cards:[{id:"d",title:"Q2 AI spend brief",model:"gpt-5",people:["tom"],tag:"Finance"}]}],or=({card:r,moving:t,reviewing:s})=>e.jsxs("div",{className:O("rounded-xl border bg-card/80 p-3 shadow-[0_18px_40px_-28px_hsl(250_60%_2%/0.9)] backdrop-blur",t?"border-primary/60":"border-border/70"),style:{boxShadow:t?"0 0 0 1px hsl(var(--primary) / 0.45), 0 22px 50px -26px hsl(var(--primary) / 0.7)":void 0,transition:"box-shadow 700ms ease, border-color 700ms ease"},children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"rounded-md bg-muted/50 px-1.5 py-0.5 text-[9.5px] font-semibold uppercase tracking-[0.08em] text-muted-foreground",children:r.tag}),e.jsx(H,{id:r.model,size:15})]}),e.jsx("div",{className:"mt-2 text-[13px] font-semibold leading-snug tracking-tight text-foreground",children:r.title}),e.jsxs("div",{className:"mt-3 flex items-center justify-between",children:[e.jsx(de,{ids:r.people,size:20}),e.jsx("span",{className:"text-[10px] font-semibold text-[hsl(var(--success))]",style:{opacity:s?1:0,transition:"opacity 500ms ease 300ms"},children:"Awaiting approval"})]})]}),Yn=({on:r})=>{const[t,s]=m.useState(0);m.useEffect(()=>{if(!r)return;const n=[window.setTimeout(()=>s(1),900),window.setTimeout(()=>s(2),1900),window.setTimeout(()=>s(3),3100)];return()=>n.forEach(clearTimeout)},[r]);const a=t>=2;return e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/40 p-4 backdrop-blur-xl sm:p-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-[12px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:"Team work board"}),e.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-muted-foreground",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[hsl(var(--primary-glow))] sara-pulse-dot"}),"Live"]})]}),e.jsx("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:Un.map(n=>e.jsxs("div",{className:O("rounded-xl border p-3 transition-colors duration-700",n.key==="review"&&t>=1&&!a?"border-primary/50 bg-primary/[0.06]":"border-border/60 bg-muted/10"),children:[e.jsxs("div",{className:"flex items-center justify-between text-[11px] font-semibold text-foreground/80",children:[n.label,e.jsx("span",{className:"text-muted-foreground",children:n.key==="drafting"?a?n.cards.length-1:n.cards.length:n.key==="review"&&a?n.cards.length+1:n.cards.length})]}),e.jsxs("div",{className:"mt-2.5 space-y-2.5",children:[n.key==="review"&&e.jsx("div",{style:{maxHeight:a?140:0,opacity:a?1:0,transform:a?"translateY(0) scale(1)":"translateY(-14px) scale(0.96)",transition:"max-height 800ms cubic-bezier(0.22,1,0.36,1), opacity 700ms ease, transform 800ms cubic-bezier(0.22,1,0.36,1)",overflow:"hidden"},children:e.jsx(or,{card:{id:"moving",title:"Quarterly board report",model:"claude",people:t>=3?["sarah","james","susan"]:["sarah","james"],tag:"Finance"},moving:!0,reviewing:t>=2})}),n.cards.map(o=>{const i=n.key==="drafting"&&o.id==="a"&&t>=1;return e.jsx("div",{style:{opacity:i?0:1,transform:i?"translateY(-10px) scale(0.96)":"translateY(0) scale(1)",maxHeight:i?0:160,overflow:"hidden",transition:"opacity 600ms ease, transform 700ms cubic-bezier(0.22,1,0.36,1), max-height 700ms cubic-bezier(0.22,1,0.36,1)"},children:e.jsx(or,{card:o})},o.id)})]})]},n.key))}),e.jsxs("div",{className:"mt-4 flex items-center gap-2.5 rounded-xl border border-border/60 bg-muted/15 px-3.5 py-2.5",style:{opacity:t>=3?1:0,transform:t>=3?"translateY(0)":"translateY(8px)",transition:"opacity 600ms ease, transform 600ms cubic-bezier(0.22,1,0.36,1)"},children:[e.jsx(z,{person:V("susan"),size:24}),e.jsxs("div",{className:"text-[12px] text-muted-foreground",children:[e.jsx("span",{className:"font-semibold text-foreground",children:"Susan"})," added as approver â reviewing with the full prompt trail"]}),e.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 rounded-full border border-[hsl(var(--success)/0.4)] bg-[hsl(var(--success)/0.14)] px-2 py-0.5 text-[10.5px] font-semibold text-[hsl(var(--success))]",children:[e.jsx(_e,{className:"h-3 w-3",strokeWidth:3})," In review"]})]})]})};function Jn(){const{ref:r,inView:t}=Hn(.25);return e.jsxs("section",{ref:r,id:"collaboration",children:[e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/70 bg-card/60 px-3.5 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-primary-light",children:[e.jsx(at,{className:"h-3.5 w-3.5"}),"Multiuser AI collaboration"]}),e.jsx("h2",{className:"mt-5 text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-[44px] sm:leading-[1.08]",children:"AI stops being a solo activity"}),e.jsx("p",{className:"mt-5 text-[15.5px] leading-relaxed text-muted-foreground",children:"Today, people use AI individually. When work needs a second pair of eyes, it leaves the tool entirely â copied out, pasted into an email or a doc, reviewed somewhere else, then pasted back."}),e.jsx("p",{className:"mt-3.5 text-[15.5px] leading-relaxed text-muted-foreground",children:"Saraâs multiplayer AI engine lets you add collaborators, watchers and approvers to any piece of AI work. They can review, check and prompt-insert on the go â so work is managed, visible and accountable from first prompt to sign-off."})]}),e.jsxs("div",{className:"mt-9 flex items-center gap-2.5 rounded-2xl border border-border/60 bg-muted/10 px-4 py-3 text-[13px] text-muted-foreground",children:[e.jsx(La,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),e.jsx("span",{className:"line-through decoration-muted-foreground
89/50",children:"Copy the answer out â paste into email â wait for feedback â paste it back"})]}),e.jsxs("div",{className:"mt-8 grid gap-8 lg:grid-cols-[minmax(0,0.85fr)_minmax(0,1.15fr)] lg:items-start",children:[e.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-1",children:Kn.map((s,a)=>e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/50 p-4 transition-colors duration-300 hover:border-primary/40",style:{opacity:t?1:0,transform:t?"translateY(0)":"translateY(14px)",transition:`opacity 700ms ease ${a*140}ms, transform 700ms cubic-bezier(0.22,1,0.36,1) ${a*140}ms`},children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"grid h-7 w-7 place-items-center rounded-lg bg-primary/15 text-primary-light",children:e.jsx(s.icon,{className:"h-4 w-4"})}),e.jsx("div",{className:"text-[14px] font-semibold tracking-tight text-foreground",children:s.title})]}),e.jsx("p",{className:"mt-2 text-[12.5px] leading-relaxed text-muted-foreground",children:s.body})]},s.title))}),e.jsx(Yn,{on:t})]})]})}function Qn(r=.25){const t=m.useRef(null),[s,a]=m.useState(!1);return m.useEffect(()=>{const n=t.current;if(!n)return;const o=new IntersectionObserver(i=>{i.some(l=>l.isIntersecting)&&(a(!0),o.disconnect())},{threshold:r});return o.observe(n),()=>o.disconnect()},[r]),{ref:t,inView:s}}const Xn=[{key:"jira",icon:ea,name:"Jira",line:"SARA-418 · Quarterly board report",meta:"Task created · assigned to Finance"},{key:"linear",icon:ta,name:"Linear",line:"OPS-77 · Supplier risk summary",meta:"Synced with AI task status"},{key:"slack",icon:Ye,name:"Slack",line:"#finance-ai",meta:"AI activity posted · 3 watchers"},{key:"teams",icon:Pe,name:"Teams",line:"Legal review channel",meta:"Approval requested from Susan"}];function Zn(){const{ref:r,inView:t}=Qn(.2);return e.jsxs("section",{ref:r,id:"integrations",className:"mt-20 sm:mt-28",children:[e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/70 bg-card/60 px-3.5 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-primary-light",children:[e.jsx(Ca,{className:"h-3.5 w-3.5"}),"Integrations"]}),e.jsx("h2",{className:"mt-5 text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-[44px] sm:leading-[1.08]",children:"Works with your current tooling"}),e.jsx("p",{className:"mt-5 text-[15.5px] leading-relaxed text-muted-foreground",children:"This isnât another tool to adopt. Sara is a layer that integrates with the stack you already run â tasks show up in Jira and Linear, and AI activity threads land in Slack, Teams or whatever your team already lives in."})]}),e.jsxs("div",{className:"mt-9 grid gap-4 lg:grid-cols-[minmax(0,0.5fr)_minmax(0,1fr)] lg:items-center",children:[e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/50 p-5",children:[e.jsx("div",{className:"text-[12px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:"Sara AI task"}),e.jsx("div",{className:"mt-3 text-[15px] font-semibold tracking-tight text-foreground",children:"Quarterly board report"}),e.jsx("p",{className:"mt-2 text-[12.5px] leading-relaxed text-muted-foreground",children:"One AI task, mirrored everywhere your team already works â status, owners and approvals stay in sync both ways."}),e.jsxs("div",{className:"mt-4 inline-flex items-center gap-2 text-[12px] font-semibold text-primary-light",children:["Pushing to connected tools",e.jsx(ur,{className:"h-3.5 w-3.5"})]})]}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:Xn.map((s,a)=>e.jsxs("div",{className:O("rounded-2xl border border-border/70 bg-card/50 p-4 transition-colors duration-300 hover:border-primary/40"),style:{opacity:t?1:0,transform:t?"translateX(0)":"translateX(-16px)",transition:`opacity 700ms ease ${a*160}ms, transform 700ms cubic-bezier(0.22,1,0.36,1) ${a*160}ms`},children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"grid h-7 w-7 place-items-center rounded-lg bg-primary/15 text-primary-light",children:e.jsx(s.icon,{className:"h-4 w-4"})}),e.jsx("div",{className:"text-[14px] font-semibold tracking-tight text-foreground",children:s.name}),e.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 rounded-full border border-[hsl(var(--success)/0.4)] bg-[hsl(var(--success)/0.14)] px-2 py-0.5 text-[10px] font-semibold text-[hsl(var(--success))]",style:{opacity:t?1:0,transition:`opacity 500ms ease ${500+a*160}ms`},children:[e.jsx(_e,{className:"h-3 w-3",strokeWidth:3})," Synced"]})]}),e.jsxs("div",{className:"mt-3 rounded-xl border border-border/60 bg-muted/15 px-3 py-2.5",children:[e.jsx("div",{className:"text-[12.5px] font-medium text-foreground
89/90",children:s.line}),e.jsx("div",{className:"mt-1 text-[11px] text-muted-foreground",children:s.meta})]})]},s.key))})]})]})}function ei(r=.2){const t=m.useRef(null),[s,a]=m.useState(!1);return m.useEffect(()=>{const n=t.current;if(!n)return;const o=new IntersectionObserver(i=>{i.some(l=>l.isIntersecting)&&(a(!0),o.disconnect())},{threshold:r});return o.observe(n),()=>o.disconnect()},[r]),{ref:t,inView:s}}const lr=(r,t,s=1400)=>{const[a,n]=m.useState(0);return m.useEffect(()=>{if(!t)return;let o=0;const i=performance.now(),l=u=>{const c=Math.min(1,(u-i)/s),d=1-Math.pow(1-c,3);n(r*d),c<1&&(o=requestAnimationFrame(l))};return o=requestAnimationFrame(l),()=>cancelAnimationFrame(o)},[r,t,s]),a},ti=[{prompt:"Summarise this 40-page supplier contract",from:"gpt-5",to:"claude",save:"-72%"},{prompt:"Reformat these 200 product descriptions",from:"gpt-5",to:"gemini",save:"-88%"},{prompt:"Draft the board narrative for Q2",from:"gpt-5",to:"gpt-5",save:"best fit"}],ri=({on:r})=>{const[t,s]=m.useState(0);return m.useEffect(()=>{if(!r)return;const a=[window.setTimeout(()=>s(1),600),window.setTimeout(()=>s(2),1500),window.setTimeout(()=>s(3),2400)];return()=>a.forEach(clearTimeout)},[r]),e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/40 p-4 backdrop-blur-xl sm:p-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-[12px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:"Intelligent routing"}),e.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-muted-foreground",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[hsl(var(--primary-glow))] sara-pulse-dot"}),"Live"]})]}),e.jsx("div",{className:"mt-4 space-y-2.5",children:ti.map((a,n)=>{const o=t>n;return e.jsxs("div",{className:"rounded-xl border border-border/60 bg-muted/15 px-3.5 py-3",style:{opacity:o?1:0,transform:o?"translateY(0)":"translateY(10px)",transition:"opacity 600ms ease, transform 600ms cubic-bezier(0.22,1,0.36,1)"},children:[e.jsx("div",{className:"text-[12.5px] font-medium text-foreground/90",children:a.prompt}),e.jsxs("div",{className:"mt-2 flex items-center gap-2 text-[11px] text-muted-foreground",children:[e.jsx(H,{id:a.from,size:14}),e.jsx("span",{className:"line-through decoration-muted-foreground/50",children:"requested"}),e.jsx(Wa,{className:"h-3.5 w-3.5 text-primary-light"}),e.jsx(H,{id:a.to,size:14}),e.jsx("span",{className:"font-semibold text-foreground/80",children:"routed"}),e.jsx("span",{className:"ml-auto rounded-full border border-[hsl(var(--success)/0.4)] bg-[hsl(var(--success)/0.14)] px-2 py-0.5 text-[10px] font-semibold text-[hsl(var(--success))]",children:a.save})]})]},a.prompt)})})]})},We=({label:r,pct:t,spend:s,cap:a,on:n,delay:o,danger:i})=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between text-[12px]",children:[e.jsx("span",{className:"font-medium text-foreground/90",children:r}),e.jsxs("span",{className:"text-muted-foreground",children:[s," ",e.jsxs("span",{className:"text-muted-foreground/60",children:["/ ",a]})]})]}),e.jsx("div",{className:"mt-1.5 h-2 overflow-hidden rounded-full bg-muted/30",children:e.jsx("div",{className:O("h-full rounded-full"),style:{width:n?`${t}%`:"0%",background:i?"linear-gradient(90deg, hsl(var(--warning, 38 92% 50%)), hsl(0 84% 60%))":"linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)))",transition:`width 1100ms cubic-bezier(0.22,1,0.36,1) ${o}ms`}})})]}),ai=[{icon:xt,title:"Spend limits",body:"Hard caps and soft alerts per workspace, department, team or individual seat."},{icon:Ma,title:"Query limits",body:"Rate and volume controls so a single runaway workflow can't burn the quarter's budget."},{icon:Qe,title:"Usage visibility",body:"See exactly who is using which model, for what, and what it costs, in real time."},{icon:Pa,title:"Data controls",body:"Block sensitive data leaving approved models. Client data stays inside policy."}];function si(){const{ref:r,inView:t}=ei(.15),s=lr(41800,t),a=lr(37,t);return e.jsxs("section",{ref:r,id:"cost-control",className:"mt-20 sm:mt-28",children:[e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/70 bg-card/60 px-3.5 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-primary-light",children:[e.jsx(xt,{className:"h-3.5 w-3.5"}),"Manage AI operations & control cost"]}),e.jsx("h2",{className:"mt-5 text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-[44px] sm:leading-[1.08]",children:"No more AI bill surprises"}),e.jsx("p",{className:"mt-5 text-[15.5px] leading-relaxed text-muted-foreground",children:"Fragmented AI is invisible AI. Dozens of seats, half a dozen vendors, no shared view â and the first time finance notices is when the invoice lands. Premium models get used for throwaway work, and nobody can say what any of it delivered."}),e.jsx("p",{className:"mt-3.5 text-[15.5px] leading-relaxed text-muted-foreground",children:"Sara puts a control layer in front of every prompt: automatically routing work to the cheapest model that can do the job well, and enforcing the spend policies you set before the money is spent, not after."})]}),e.jsx("div",{className:"mt-9 grid gap-3 sm:grid-cols-3",children:[{icon:Et,k:"Before Sara",v:"No shared view",d:"Shadow AI spend across teams and vendors"},{icon:Ga,k:"Routing savings",v:`${a.toFixed(0)}%`,d:"Average cost cut from automatic model routing"},{icon:xt,k:"Saved this quarter",v:`£${Math.round(s).toLocaleStr
89ing()}`,d:"Against forecast, with zero quality regressions"}].map((n,o)=>e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/50 p-5",style:{opacity:t?1:0,transform:t?"translateY(0)":"translateY(14px)",transition:`opacity 700ms ease ${o*130}ms, transform 700ms cubic-bezier(0.22,1,0.36,1) ${o*130}ms`},children:[e.jsx("span",{className:"grid h-7 w-7 place-items-center rounded-lg bg-primary/15 text-primary-light",children:e.jsx(n.icon,{className:"h-4 w-4"})}),e.jsx("div",{className:"mt-3 text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:n.k}),e.jsx("div",{className:"mt-1 text-[26px] font-semibold tracking-tight text-foreground",children:n.v}),e.jsx("p",{className:"mt-1.5 text-[12.5px] leading-relaxed text-muted-foreground",children:n.d})]},n.k))}),e.jsxs("div",{className:"mt-8 grid gap-4 lg:grid-cols-2 lg:items-start",children:[e.jsx(ri,{on:t}),e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/40 p-4 backdrop-blur-xl sm:p-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-[12px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:"Budgets & usage by team"}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] text-muted-foreground",children:[e.jsx(xr,{className:"h-3.5 w-3.5"})," This month"]})]}),e.jsxs("div",{className:"mt-4 space-y-3.5",children:[e.jsx(We,{label:"Finance",pct:62,spend:"£3,120",cap:"£5,000",on:t,delay:100}),e.jsx(We,{label:"Marketing",pct:94,spend:"£4,700",cap:"£5,000",on:t,delay:250,danger:!0}),e.jsx(We,{label:"Legal",pct:38,spend:"£1,140",cap:"£3,000",on:t,delay:400}),e.jsx(We,{label:"Engineering",pct:71,spend:"£7,100",cap:"£10,000",on:t,delay:550})]}),e.jsxs("div",{className:"mt-4 flex items-center gap-2.5 rounded-xl border border-border/60 bg-muted/15 px-3.5 py-2.5 text-[12px] text-muted-foreground",children:[e.jsx(Et,{className:"h-4 w-4 shrink-0 text-[hsl(0_84%_60%)]"}),e.jsxs("span",{children:[e.jsx("span",{className:"font-semibold text-foreground",children:"Marketing"})," at 94% of cap â new prompts auto-route to a lower-cost model"]})]})]})]}),e.jsxs("div",{className:"mt-14 max-w-3xl",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/70 bg-card/60 px-3.5 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-primary-light",children:[e.jsx(Nt,{className:"h-3.5 w-3.5"}),"Governance"]}),e.jsx("h3",{className:"mt-5 text-balance text-2xl font-semibold tracking-tight text-foreground sm:text-[34px] sm:leading-[1.12]",children:"Manage what AI is used for"}),e.jsx("p",{className:"mt-4 text-[15.5px] leading-relaxed text-muted-foreground",children:"Cost is only half the problem. Sara lets you define what AI may be used for, who may use it, and what data it may touch â with query limits, model allow-lists and redaction rules that keep client data safe and your obligations intact."})]}),e.jsx("div",{className:"mt-6 grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:ai.map((n,o)=>e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/50 p-4 transition-colors duration-300 hover:border-primary/40",style:{opacity:t?1:0,transform:t?"translateY(0)":"translateY(14px)",transition:`opacity 700ms ease ${300+o*130}ms, transform 700ms cubic-bezier(0.22,1,0.36,1) ${300+o*130}ms`},children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"grid h-7 w-7 place-items-center rounded-lg bg-primary/15 text-primary-light",children:e.jsx(n.icon,{className:"h-4 w-4"})}),e.jsx("div",{className:"text-[14px] font-semibold tracking-tight text-foreground",children:n.title})]}),e.jsx("p",{className:"mt-2 text-[12.5px] leading-relaxed text-muted-foreground",children:n.body})]},n.title))})]})}const ni=[{initials:"HA",name:"Harmick Azarian",role:"Co-founder & CEO",bio:"UK-based digital transformation expert who has delivered enterprise technology programmes across banking, government and retail around the world.",points:["Former Head of Digital Transformation, Government of Armenia","Member of the GOV.UK digital team","Co-founder of gruvi.ai"]},{initials:"VZ",name:"Vahagn Zakaryan",role:"Co-founder & CTO",bio:"Engineering leader behind national-scale digital infrastru
89cture, from citizen identity services to public safety platforms.",points:["Led national digital driving licence programme","Built national police force vehicle routing services","Awarded a medal by the Minister of Internal Affairs of Armenia"]}],ii=()=>e.jsxs("section",{id:"about",className:"pt-20 sm:pt-28",children:[e.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/70 bg-card/60 px-3.5 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-primary-light backdrop-blur",children:[e.jsx(wt,{className:"h-3.5 w-3.5"}),"About us"]}),e.jsx("h2",{className:"mt-5 text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-[40px] sm:leading-[1.1]",children:"Experts in AI for Enterprise"}),e.jsx("p",{className:"mx-auto mt-5 max-w-2xl text-[15px] leading-relaxed text-muted-foreground",children:"It starts with one person asking for an AI subscription. Then everyone asks. Logins get shared, costs mount, and nobody knows who is producing what. AI stays stubbornly individual while the work it touches is anything but. We want to change that."})]}),e.jsx("div",{className:"mt-12 grid gap-4 lg:grid-cols-2",children:ni.map(r=>e.jsxs("article",{className:"rounded-2xl border border-border/70 bg-card/60 p-6 backdrop-blur transition-colors duration-300 hover:border-border sm:p-7",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"flex h-14 w-14 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-[hsl(var(--primary))] to-[hsl(var(--secondary))] text-[16px] font-semibold text-primary-foreground",children:r.initials}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-[17px] font-semibold tracking-tight text-foreground",children:r.name}),e.jsx("div",{className:"text-[13px] font-medium text-primary-light",children:r.role})]})]}),e.jsx("p",{className:"mt-5 text-[14px] leading-relaxed text-muted-foreground",children:r.bio}),e.jsx("ul",{className:"mt-5 space-y-2.5",children:r.points.map(t=>e.jsxs("li",{className:"flex items-start gap-2.5 text-[13.5px] leading-relaxed text-foreground/85",children:[e.jsx(Nt,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary-light"}),e.jsx("span",{children:t})]},t))})]},r.name))}),e.jsxs("div",{className:"mt-4 grid gap-4 lg:grid-cols-3",children:[e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/60 p-6 backdrop-blur",children:[e.jsx($a,{className:"h-5 w-5 text-primary-light"}),e.jsx("div",{className:"mt-3 text-[15px] font-semibold tracking-tight text-foreground",children:"Passionate about results"}),e.jsx("p",{className:"mt-2 text-[13px] leading-relaxed text-muted-foreground",children:"We care about outcomes, not demos. Every feature in SARA exists because a team we spoke to was losing time, money or control."})]}),e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/60 p-6 backdrop-blur",children:[e.jsx(xr,{className:"h-5 w-5 text-primary-light"}),e.jsx("div",{className:"mt-3 text-[15px] font-semibold tracking-tight text-foreground",children:"Enterprise-grade by default"}),e.jsx("p",{className:"mt-2 text-[13px] leading-relaxed text-muted-foreground",children:"Built by people who have shipped government and banking systems, with governance, security and auditability designed in from day one."})]}),e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/60 p-6 backdrop-blur",children:[e.jsx(Ea,{className:"h-5 w-5 text-primary-light"}),e.jsx("div",{className:"mt-3 text-[15px] font-semibold tracking-tight text-foreground",children:"Where to find us"}),e.jsxs("address",{className:"mt-2 not-italic text-[13px] leading-relaxed text-muted-foreground",children:["Gruvi Software, Inc.",e.jsx("br",{}),"2810 N Church St STE 90490",e.jsx("br",{}),"Wilmington, DE 19802, United States"]})]})]})]}),Wr=()=>{var r;(r=document.getElementById("waitlist"))==null||r.scrollIntoView({behavior:"smooth",block:"center"})},oi=({children:r,onClick:t})=>e.jsxs("button",{onClick:t,className:"group inline-flex items-center gap-2 rounded-full bg-gradient-to-r from-[hsl(var(--primary))] to-[hsl(var(--secondary))] px-6 py-3 text-[14px] font-semibold text-primary-foreground shadow-[0_18px_40px_-18px_hsl(var(--primary)/0.9)] transition-transform duration-300 hover:scale-[1.03]",children:[r,e.jsx(ur,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-0.5"})]}),Ot="https://calendar.app.google/khdsTujhiYZc1DQf9",Gr=({to:r,children:t})=>e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full border border-border/80 bg-card/60 px-6 py-3 text-[14px] font-semibold text-foreground
89/90 backdrop-blur transition-colors duration-300 hover:bg-muted/60",children:t}),li=()=>e.jsx("header",{className:"sticky top-0 z-40 border-b border-border/60 bg-[hsl(var(--background)/0.72)] backdrop-blur-xl",children:e.jsxs("div",{className:"mx-auto flex h-16 max-w-[1400px] items-center gap-3 px-5 sm:px-8",children:[e.jsxs(_t,{to:"/sara/website",className:"flex items-center gap-2.5",children:[e.jsx(St,{size:28}),e.jsx("span",{className:"text-[17px] font-semibold tracking-tight text-foreground",children:"SARA"})]}),e.jsx("span",{className:"ml-2 hidden rounded-full border border-border/70 bg-muted/40 px-2.5 py-1 text-[10.5px] font-medium text-muted-foreground sm:inline",children:"AI Operations Layer"}),e.jsxs("nav",{className:"ml-auto flex items-center gap-2.5",children:[e.jsx(_t,{to:"/sara",className:"hidden rounded-full px-4 py-2 text-[13px] font-medium text-muted-foreground transition-colors hover:text-foreground sm:inline-flex",children:"Product tour"}),e.jsx(Gr,{to:Ot,children:"Book a Demo"}),e.jsx("button",{onClick:Wr,className:"rounded-full bg-gradient-to-r from-[hsl(var(--primary))] to-[hsl(var(--secondary))] px-4 py-2 text-[13px] font-semibold text-primary-foreground transition-transform duration-300 hover:scale-[1.03]",children:"Join the Waitlist"})]})]})}),di=()=>{const[r,t]=m.useState(""),[s,a]=m.useState(!1),[n,o]=m.useState(!1),{toast:i}=aa(),l=async u=>{u.preventDefault();const c=r.trim();if(c.length<5||c.length>255||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)){i({title:"Invalid email",description:"Please enter a valid email address.",variant:"destructive"});return}o(!0);const{error:d}=await na.from("sara_waitlist").insert({email:c,source:"sara-website"});if(o(!1),d&&d.code!=="23505"){i({title:"Something went wrong",description:"Please try again in a moment, or book a demo instead.",variant:"destructive"});return}t(""),a(!0)};return e.jsxs("section",{id:"waitlist",className:"relative overflow-hidden rounded-[28px] border border-border/70 bg-card/50 px-6 py-12 text-center sm:px-12",children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 -z-10",style:{background:"radial-gradient(60% 90% at 50% 0%, hsl(var(--primary) / 0.20), transparent 70%), radial-gradient(50% 80% at 85% 100%, hsl(var(--secondary) / 0.16), transparent 70%)"}}),e.jsx("h2",{className:"text-balance text-2xl font-semibold tracking-tight text-foreground sm:text-[34px]",children:"Want to change the way you work with AI? Join the waiting list"}),e.jsx("p",{className:"mx-auto mt-3 max-w-xl text-[14.5px] leading-relaxed text-muted-foreground",children:"Sara is rolling out with a small group of enterprise design partners. Join the waitlist for early access, or book a walkthrough with our team."}),s?e.jsxs("div",{className:"mx-auto mt-7 inline-flex items-center gap-2.5 rounded-full border border-[hsl(var(--success)/0.4)] bg-[hsl(var(--success)/0.14)] px-5 py-3 text-[14px] font-semibold text-[hsl(var(--success))]",children:[e.jsx(_e,{className:"h-4 w-4",strokeWidth:3}),"Youâre on the list â weâll be in touch."]}):e.jsxs("form",{className:"mx-auto mt-7 flex max-w-lg flex-col gap-2.5 sm:flex-row",onSubmit:l,children:[e.jsx("input",{type:"email",required:!0,maxLength:255,value:r,onChange:u=>t(u.target.value),placeholder:"[email protected]",className:"h-12 flex-1 rounded-full border border-border/80 bg-background/70 px-5 text-[14px] text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-primary/70"}),e.jsxs("button",{type:"submit",disabled:n,className:"inline-flex h-12 items-center justify-center gap-2 rounded-full bg-gradient-to-r from-[hsl(var(--primary))] to-[hsl(var(--secondary))] px-6 text-[14px] font-semibold text-primary-foreground transition-transform duration-300 hover:scale-[1.03] disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:scale-100",children:[n&&e.jsx(sa,{className:"h-4 w-4 animate-spin"}),n?"Joiningâ¦":"Join the Waitlist"]})]}),e.jsxs("div",{className:"mt-5 text-[12px] text-muted-foreground",children:["Prefer a conversation?"," ",e.jsx("a",{href:Ot,target:"_blank",rel:"noopener noreferrer",className:"text-primary-light underline-offset-4 hover:underline",children:"Book a Demo"})]})]})};function ci(){return e.jsxs("div",{className:"min-h-screen bg-background text-foreground antialiased",children:[e.jsx(ra,{title:"SARA: The AI Operations Layer for Enterprise",description:"Sara sits above your existing AI models: orchestrate usage, route prompts intelligently, collaborate on AI
89work and control spend across the enterprise.",canonicalPath:"/sara/website",noindex:!0}),e.jsx(li,{}),e.jsxs("main",{children:[e.jsxs("section",{className:"relative overflow-hidden",children:[e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-[520px] -z-10",style:{background:"radial-gradient(50% 60% at 50% -5%, hsl(var(--primary) / 0.22), transparent 70%)"}}),e.jsxs("div",{className:"mx-auto max-w-[1400px] px-5 pb-10 pt-14 sm:px-8 sm:pt-20",children:[e.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border/70 bg-card/60 px-3.5 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-primary-light backdrop-blur sara-rise",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[hsl(var(--primary-glow))] sara-pulse-dot"}),"The end of fragmented AI"]}),e.jsx("h1",{className:"mt-5 text-balance text-4xl font-semibold tracking-tight text-foreground sm:text-[58px] sm:leading-[1.05]",children:"The AI Operations Layer for Enterprise"}),e.jsx("p",{className:"mx-auto mt-5 max-w-2xl text-[16px] leading-relaxed text-muted-foreground",children:"Enterprise AI adoption is accelerating, but governance, collaboration and visibility havenât kept pace."}),e.jsx("p",{className:"mx-auto mt-3.5 max-w-2xl text-[15px] leading-relaxed text-muted-foreground",children:"Sara provides a single operational layer that sits above your existing AI models, giving organisations one place to orchestrate AI usage, intelligently route prompts, collaborate on AI-powered work and control spend across the business."}),e.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[e.jsx(oi,{onClick:Wr,children:"Join the Waitlist"}),e.jsx(Gr,{to:Ot,children:"Book a Demo"})]})]}),e.jsx("div",{className:"mt-12 sm:mt-16",children:e.jsx(Dn,{})})]})]}),e.jsx("div",{className:"mx-auto max-w-[1400px] px-5 py-20 sm:px-8 sm:py-28",children:e.jsx(qn,{})}),e.jsxs("div",{className:"mx-auto max-w-[1400px] px-5 pb-20 sm:px-8 sm:pb-28",children:[e.jsx(Jn,{}),e.jsx(Zn,{}),e.jsx(si,{})]}),e.jsx("div",{className:"mx-auto max-w-[1400px] px-5 pb-20 sm:px-8 sm:pb-28",children:e.jsx("div",{className:"grid gap-4 lg:grid-cols-4",children:[["Orchestrate","One layer above every model your organisation already pays for."],["Route intelligently","Send each prompt to the model that answers it best, and cheapest."],["Collaborate","Invite colleagues into AI work as collaborators or watchers."],["Control spend","Budgets, forecasts and department-level visibility in real time."]].map(([r,t])=>e.jsxs("div",{className:"rounded-2xl border border-border/70 bg-card/50 p-5 transition-colors duration-300 hover:border-primary/40",children:[e.jsx("div",{className:"text-[15px] font-semibold tracking-tight text-foreground",children:r}),e.jsx("p",{className:"mt-2 text-[13px] leading-relaxed text-muted-foreground",children:t})]},r))})}),e.jsx("div",{className:"mx-auto max-w-[1400px] px-5 pb-20 sm:px-8 sm:pb-28",children:e.jsx(ii,{})}),e.jsx("div",{className:"mx-auto max-w-[1400px] px-5 pb-24 sm:px-8",children:e.jsx(di,{})})]}),e.jsx("footer",{className:"border-t border-border/60 py-8",children:e.jsxs("div",{className:"mx-auto flex max-w-[1400px] flex-col items-center justify-between gap-3 px-5 text-[12px] text-muted-foreground sm:flex-row sm:px-8",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(St,{size:22}),e.jsx("span",{className:"font-medium text-foreground/80",children:"SARA"})]}),e.jsx("span",{children:"The AI Operations Layer for Enterprise"})]})})]})}const mi=()=>e.jsx(Nn,{children:e.jsxs(pr,{children:[e.jsx(ne,{index:!0,element:e.jsx(rr,{})}),e.jsx(ne,{path:"board",element:e.jsx(kn,{})}),e.jsx(ne,{path:"collaboration",element:e.jsx(Sn,{})}),e.jsx(ne,{path:"analytics",element:e.jsx(Pn,{})}),e.jsx(ne,{path:"*",element:e.jsx(rr,{})})]})});function Ai(){return e.jsx("div",{className:"sara-theme",children:e.jsxs(pr,{children:[e.jsx(ne,{path:"website",element:e.jsx(ci,{})}),e.jsx(ne,{path:"*",element:e.jsx(mi,{})})]})})}export{Ai as default};
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.