PageSourceSearch

https://www.feats.co/_next/static/chunks/158zc13vj0imn.js?dpl=76e26e63

js feats.co collected 2026-10-05 19:09:39 UTC 79,254 bytes, 131 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,128099,280997,940691,126299,274910,314057,282387,985964,887504,200043,4509,503600,884985,161613,e=>{"use strict";e.s([],710439),e.i(710439);var t=e.i(843476),i=e.i(367313),n=e.i(636448),s=e.i(271645),o=e.i(389309),a=e.i(311011);let{withRootProvider:r,withContext:l,useStyles:d,PropsProvider:c}=(0,o.createSlotRecipeContext)({key:"drawer"}),p=r(i.Dialog.RootProvider,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),x=r(i.Dialog.Root,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),u=l(i.Dialog.Trigger,"trigger",{forwardAsChild:!0}),h=l(i.Dialog.Positioner,"positioner",{forwardAsChild:!0}),g=l(i.Dialog.Content,"content",{forwardAsChild:!0}),f=l(i.Dialog.Description,"description",{forwardAsChild:!0}),m=l(i.Dialog.Title,"title",{forwardAsChild:!0}),b=l(i.Dialog.CloseTrigger,"closeTrigger",{forwardAsChild:!0}),w=(0,s.forwardRef)(function(e,i){let s=(0,n.useDialogContext)();return(0,t.jsx)(a.chakra.button,{...e,ref:i,onClick:()=>s.setOpen(!1)})}),v=l(i.Dialog.Backdrop,"backdrop",{forwardAsChild:!0}),y=l("div","body"),j=l("div","footer"),C=l("div","header"),k=i.Dialog.Context;e.s(["ActionTrigger",0,w,"Backdrop",0,v,"Body",0,y,"CloseTrigger",0,b,"Content",0,g,"Context",0,k,"Description",0,f,"Footer",0,j,"Header",0,C,"Positioner",0,h,"Root",0,x,"RootPropsProvider",0,c,"RootProvider",0,p,"Title",0,m,"Trigger",0,u],528419);var S=e.i(528419);e.s(["Drawer",0,S],128099);var B=e.i(504091);e.s(["useDisclosure",0,function(e={}){let t=(0,B.useCallbackRef)(e.onOpen),i=(0,B.useCallbackRef)(e.onClose),[n,o]=(0,s.useState)(e.defaultOpen||!1),a=void 0!==e.open?e.open:n,r=void 0!==e.open,l=(0,s.useCallback)(()=>{r||o(!1),i?.()},[r,i]),d=(0,s.useCallback)(()=>{r||o(!0),t?.()},[r,t]),c=(0,s.useCallback)(()=>{a?l():d()},[a,d,l]);return{open:a,onOpen:d,onClose:l,onToggle:c,setOpen:o}}],280997);var I=e.i(843011),R=e.i(550288),T=e.i(872967),z=e.i(766365),A=e.i(474563),D=e.i(46300),M=e.i(793267);e.i(877649);var H=e.i(292037);let E=(0,s.forwardRef)(({type:e,selected:i,href:n,dataTestId:o,hasRequests:a,avatarSrc:r,label:l,isExpanded:d=!0,icon:c,css:p,onClick:x,hasTooltip:u=!0,...h},g)=>{let{transition:f}=(0,R.useTheme)(),m=(0,H.useIsSmallerThan)("md"),[b,w]=(0,s.useState)(!1),[v,y]=(0,s.useState)(!1),j=e=>{e.stopPropagation(),w(!0)},C=e=>{e.stopPropagation(),w(!1)},k=e=>{e.stopPropagation(),y(!0)},S=e=>{e.stopPropagation(),y(!1)},B=e=>{e.stopPropagation(),x&&x(e)},E={navButtons:{display:"flex",justifyContent:d?"flex-start":"center",alignItems:"center",bg:"black",p:"12px",gap:m?"12px":"8px",width:"100%",h:"48px",borderRadius:"40px",fontSize:"15px",textDecoration:"none !important",boxSizing:"border-box",cursor:"pointer",_focusVisible:{boxShadow:"0px 0px 0px 4px rgba(255, 255, 255, 0.2)"},_hover:{bg:"neutral.900"},_active:{bg:"#4D4D4D",boxShadow:"none"}},expandedNavButton:{h:"48px",borderRadius:"999px",gap:"12px"},bullet:{position:"absolute",top:"-4px",right:"-4px",borderRadius:"50%",backgroundColor:"#0069FA",width:"8px",height:"8px",display:"block"},iconContainerStyles:{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",width:"24px",height:"24px"}},L=(0,s.useMemo)(()=>({transition:`transform ${f.duration.normal} ${f.easing["ease-in-out"]}`,transform:v?"scale(0.9)":b?"scale(1.1)":"scale(1)"}),[v,b,f]),$=(0,s.useMemo)(()=>{switch(e){case"home":return i?"house-fill":"house";case"search":return i?"magnifying-glass-fill":"magnifying-glass";case"collaborators":return i?"users-three-fill":"users-three";case"add-project":return i?"plus-bold":"plus";case"freelance":return i?"handshake-fill":"handshake";case"notifications":return i?"bell-fill":"bell";case"messages":return i?"chat-circle-fill":"chat-circle";case"agent":return i?"eight-ball-bold":"eight-ball";case"business-accounts":return i?"building-office-fill":"building-office";default:return""}},[e,i]),F=(0,s.useMemo)(()=>a?(0,t.jsx)(I.Box,{as:"span",css:E.bullet}):null,[a,E.bullet]),W=(0,s.useMemo)(()=>"profile"===e||"team-shortcut"===e?(0,t.jsx)(T.Avatar,{variant:"team-shortcut"===e?"team":"people",size:"xxs",src:r,borderWidth:i?"2px":"0",borderColor:i?"primary":"neutral",css:{...L,_hover:{transform:"scale(1.1)"},_active:{transform:"scale(0.9)"}}}):a?(0,t.jsxs)(I.Box,{css:E.iconContainerStyles,children:[(0,t.jsx)(z.Icon,{icon:c||$,size:24,isHovered:b,hasActive:!0,hasHover:b,isActive:v}),F]}):(0,t.jsx)(z.Icon,{icon:c||$,size:24,hasActive:!0,hasHover:b,isH
1overed:b,isActive:v}),[e,i,r,a,c,$,b,v,L,F]),P=(0,s.useMemo)(()=>{let n={...d?{opacity:1,display:"block",width:"auto"}:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)"},overflow:"hidden",whiteSpace:"nowrap",fontWeight:i?"600":"normal",..."team-shortcut"===e&&{flex:1,minWidth:0,textOverflow:"ellipsis"}};return(0,t.jsx)(M.Text,{as:"span",type:"label",size:"lg",color:"white",css:n,children:l})},[d,l,i,e]),N=(0,s.useMemo)(()=>(0,t.jsxs)(t.Fragment,{children:[W,P]}),[W,P]),V=(0,s.useMemo)(()=>n?(0,t.jsx)(I.Box,{ref:g,...{href:n,as:A.Link},...h,"data-id":o,css:{...E.navButtons,...E.expandedNavButton,width:d?"100%":"max-content",...p},onMouseEnter:j,onMouseLeave:C,onMouseDown:k,onMouseUp:S,onClick:B,children:N}):(0,t.jsx)(I.Box,{ref:g,...h,"data-id":o,as:"button",css:{...E.navButtons,...E.expandedNavButton,width:d?"100%":"max-content",...p},onMouseEnter:j,onMouseLeave:C,onMouseDown:k,onMouseUp:S,onClick:B,children:N}),[n,o,B,j,C,k,S,W,P,E.navButtons,E.expandedNavButton,F,d,g,h]);return d||!u?V:(0,t.jsx)(D.Tooltip,{css:{bg:"#333",...p},isDisabled:m,placement:"right",label:l,openDelay:600,children:(0,t.jsx)(I.Box,{children:V})})});e.s(["NavItem",0,E],940691);var L=e.i(552887),$=e.i(510087);let{useRecipeResult:F,PropsProvider:W}=(0,L.createRecipeContext)({key:"icon"}),P=s.forwardRef(function(e,i){let{styles:n,className:s,props:o}=F({asChild:!e.as,...e});return(0,t.jsx)(a.chakra.svg,{ref:i,focusable:!1,"aria-hidden":"true",...o,css:[n,e.css],className:(0,$.cx)(s,e.className)})});e.s(["Icon",0,P],126299);let N=(0,a.chakra)("svg",{base:{_active:{"& path":{fill:"darkgrey"}}}}),V=()=>(0,t.jsx)(N,{viewBox:"0 0 81 24",color:"white",h:"24px",w:"81px",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1662 11.6626H7.60881V23.518H2.60215V11.6626H0V7.55019H2.60215V6.16867C2.60215 2.50602 4.87491 0 8.86047 0C9.88157 0 10.705 0.128514 11.1662 0.353413V4.33735C10.9027 4.27309 10.5403 4.1767 9.74981 4.1767C8.86047 4.1767 7.60881 4.56224 7.60881 6.32931V7.55019H11.1662V11.6626ZM16.5352 13.6224H23.0899C23.0241 12.4015 22.1677 10.9236 19.7961 10.9236C17.688 10.9236 16.634 12.4337 16.5352 13.6224ZM27.6167 18.9876C26.8045 21.7223 24.2106 24 20.0924 24C15.5798 24 11.5613 20.8514 11.5613 15.486C11.5613 10.3454 15.481 7.06833 19.73 7.06833C24.8026 7.06833 27.9317 10.1205 27.9317 15.2611C27.9317 15.9358 27.8659 16.6747 27.8329 16.7711H16.4362C16.535 18.5703 18.2149 19.8555 20.1582 19.8555C21.726 19.8555 22.7018 19.2299 23.2349 18.2493L27.6167 18.9876ZM29.3481 19.1165C29.3481 16.2892 31.4892 14.6828 34.1901 14.2972L38.0439 13.7189C38.9333 13.5904 39.2297 13.1727 39.2297 12.6266C39.2297 11.6948 38.4062 10.8916 36.8252 10.8916C35.4155 10.8916 34.5213 11.6458 34.1772 12.562L29.7603 11.8235C30.2307 9.63521 32.4246 7.06833 36.8581 7.06833C42.1612 7.06833 44.1046 9.95989 44.1046 13.237V21.0442C44.1046 22.2972 44.2693 23.3575 44.3023 23.5181H39.7897C39.7567 23.3896 39.625 22.8113 39.625 21.7189C38.7686 23.0683 37.1875 23.9679 35.0136 23.9679C31.4233 23.9679 29.3481 21.6547 29.3481 19.1165ZM36.2324 20.4338C37.7147 20.4338 39.2298 19.727 39.2298 17.2531V16.5462L36.1336 17.0282C35.0796 17.1888 34.2891 17.6707 34.2891 18.7952C34.2891 19.6306 34.849 20.4338 36.2324 20.4338ZM53.3274 2.89151V7.55014H56.5225V11.6626H53.3274V17.7991C53.3274 19.1164 54.0521 19.4698 55.1391 19.4698C55.6661 19.4698 56.226 19.3734 56.5225 19.3092V23.3574C56.3249 23.4537 55.4355 23.8072 53.8545 23.8072C50.4618 23.8072 48.3867 21.8473 48.3867 18.6666V11.6626H45.4881V7.55014H48.3867V2.89151H53.3274ZM58.3672 18.988L62.6162 18.249C62.6821 19.3414 63.4726 20.4017 65.1854 20.4017C66.47 20.4017 67.0959 19.727 67.0959 19.0201C67.0959 18.4418 66.7006 17.9599 65.4819 17.7029L63.6044 17.2852C60.1129 16.5462 58.7295 14.6185 58.7295 12.3695C58.7295 9.44584 61.3646 7.06833 65.0207 7.06833C69.7639 7.06833 71.4108 9.95989 71.5755 11.8233L67.4253 12.5623C67.2935 11.5021 66.6018 10.6025 65.0866 10.6025C64.1314 10.6025 63.3079 11.1486 63.3079 11.984C63.3079 12.6587 63.8679 13.0442 64.5925 13.1727L66.7665 13.5904C70.1592 14.2651 71.8061 16.2571 71.8061 18.6025C71.8061 21.3334 69.6651 24 65.2843 24C60.1458 24 58.4989 20.7551 58.3672 18.988ZM74.0166 20.498C74.0166 18.6988 75.5318 17.2209 77.3764 17.2209C79.2209 17.2209 80.769 18.6988 80.769 20.498C80.769 22.2651 79.2209 23.8072 77.3764 23.8072C75.5318 23.8072 74.0166 22.2651 74.0166 20.498Z",fill:"white"})});e.s(["LogoBrand",0,V],274910),e.s(["LogoTransition",0,({href:e})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(I.Box,{position:"relative",w:"100%",h:"24px",display:"flex",flexDirection:"column",justifyContent:"center",margin:"16px 12px 32px 10px",children:(0,t.jsx)(I.Box,{opacity:1,transform:"scale(1)",visibility:"visible",transition:"opacity var(--chakra-transition-duration-faster) ease-out, transform var(--chakra-transition-duration-faster) ease-out",position:"absolute",transformOrigin:"left center",children:(0,t.jsx)(A.Link,{href:e||"/","data-testid":"index-logo","aria-label":"Feats home",css:{width:"192px",height:"24px",display:"block",_focusVisible:{outline:"none",borderRadius:"4px"}},children:(0,t.jsx)(V,{})})})})})],314057);
1var O=e.i(166540),_=e.i(618566),Y=e.i(761869),q=e.i(300713),Z=e.i(65839),X=e.i(11651);let U=()=>(0,t.jsxs)(I.Box,{css:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px",borderRadius:"8px",gap:"12px",width:"100%"},children:[(0,t.jsx)(X.SkeletonCircle,{loading:!0,size:"48px"}),(0,t.jsxs)(I.Box,{css:{display:"flex",flexDirection:"column",gap:"8px",width:"100%"},children:[(0,t.jsx)(X.SkeletonText,{loading:!0,noOfLines:3,gap:"1"}),(0,t.jsx)(X.SkeletonText,{loading:!0,noOfLines:1,gap:"1",maxWidth:"200px"})]})]});var G=e.i(564161),K=e.i(459158),J=e.i(470639);let Q=({data:e,variant:i="primary",isLazy:n,isFitted:s,rightSideHeader:o,onChange:a,marginTop:r="16px",tabListSx:l})=>{let d=(0,K.useSlotRecipe)({key:"roundedTabsUI"})({variant:i});return(0,t.jsxs)(J.Tabs.Root,{unstyled:!0,defaultValue:"0",lazyMount:n,fitted:s,css:{...d.chakraTabs},onValueChange:a?e=>a(Number(e.value)):void 0,children:[(0,t.jsxs)(Y.Flex,{flexDirection:{base:"column",lg:"row"},justifyContent:"space-between",width:"100%",gap:"16px",children:[(0,t.jsx)(J.Tabs.List,{borderBottom:"none",css:{...l,...d.tablist,...o&&{gap:{base:0,md:"32px"}}},children:e.map((e,i)=>(0,t.jsxs)(J.Tabs.Trigger,{value:String(i),css:d.tab,_selected:d.tabSelected,children:[e?.avatar&&e?.avatar,(0,t.jsx)(I.Box,{children:e?.name}),e?.counter!==null&&e?.counter!==void 0?(0,t.jsx)(I.Box,{as:"span",css:{...d.counter},children:e?.counter>99?"99+":e?.counter}):null]},i))}),!!o&&(0,t.jsx)(I.Box,{css:{...d.rightSideHeader},children:o})]}),(0,t.jsx)(J.Tabs.ContentGroup,{padding:"0",marginTop:r,children:e.map((e,i)=>(0,t.jsx)(J.Tabs.Content,{value:String(i),padding:"0",children:e.content},i))})]})},ee=({children:e,avatar:i,customAvatar:n,subText:o,unread:a,isRead:r,href:l,onClick:d})=>{let c=void 0!==a?a:!1===r,p={wrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px",borderRadius:"8px",gap:"8px",fontFamily:"Inter",_hover:{background:"neutral.50"},_active:{background:"neutral.100"}},content:{display:"flex",alignItems:"flex-start",gap:"12px"},texts:{display:"flex",flexDirection:"column",gap:"4px"},text:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,fontSize:"14px",color:c?"black":"text.muted"},unread:{width:"10px",height:"10px",borderRadius:"50%",background:"black",flexShrink:0}},x=(0,s.useMemo)(()=>(0,t.jsxs)(I.Box,{css:{...p.wrapper},onClick:l?void 0:d,children:[(0,t.jsxs)(I.Box,{css:{...p.content},children:[(0,t.jsx)(I.Box,{children:n||(0,t.jsx)(T.Avatar,{variant:i?.variant||"people",...i})}),(0,t.jsxs)(I.Box,{css:{...p.texts},children:[(0,t.jsx)(I.Box,{css:{...p.text},children:e}),(0,t.jsx)(M.Text,{variant:"regular",type:"component",size:"xs",color:"text.muted",children:o})]})]}),c&&(0,t.jsx)(I.Box,{css:{...p.unread}})]}),[i,n,e,o,c,l,d]);return(0,t.jsx)(t.Fragment,{children:l?(0,t.jsx)(A.Link,{href:l,onClick:d,children:x}):x})};var et=e.i(329273);let ei=({data:e,isLoading:i,onMarkAllAsRead:n,onTabChange:o})=>
1{let[a,r]=(0,s.useState)(0),[l,d]=(0,s.useState)(0),c=0===a?e:e.filter(e=>!e.isRead);return(0,s.useEffect)(()=>{d(e.filter(e=>e.unread).length)},[e]),(0,t.jsxs)(I.Box,{children:[(0,t.jsxs)(I.Box,{css:{position:"sticky",top:"0",background:"white",zIndex:998,padding:"12px 12px 8px 16px"},children:[(0,t.jsxs)(I.Box,{css:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[(0,t.jsx)(et.Heading,{variant:"component",size:"lg",children:"Notifications"}),(0,t.jsx)(D.Tooltip,{variant:"primary",label:l?"Mark all as read":"All notifications read","aria-label":"Mark all as read tooltip",hasArrow:!0,placement:"bottom-end",isDisabled:!1,closeOnClick:!1,children:(0,t.jsx)(I.Box,{display:"inline-block",children:(0,t.jsx)(Z.Button,{variant:"ghost-subtle",size:"xs",iconPosition:"center",icon:"check-square",disabled:!l,onClick:()=>{n&&n(a)}})})})]}),(0,t.jsx)(I.Box,{css:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",flexDirection:"row",mt:"8px"},children:(0,t.jsx)(Q,{tabListSx:{flexDirection:"row !important"},variant:"secondary",marginTop:0,data:[{name:"All",content:""},{name:"Unread",content:""}],onChange:e=>{r(e),o&&o(e)}})})]}),c?.length&&!i?(0,t.jsx)(I.Box,{css:{margin:"0 8px 8px 8px"},children:c.map((e,i)=>(0,t.jsx)(ee,{...e},i))}):c?.length||i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U,{}),(0,t.jsx)(U,{})]}):(0,t.jsx)(I.Box,{css:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",justifyContent:"flex-start",height:"calc(100vh - 200px)",textAlign:"center",pt:"16px"},children:(0,t.jsx)(G.EmptyState,{title:"You’re all caught up",subTitle:"Activity will show up here. Check back later to see what’s new.",contentSx:{padding:0,justifyContent:"flex-start"},containerSx:{padding:0,justifyContent:"flex-start"}})})]})};var en=e.i(190982);e.i(976778);var es=e.i(224210),eo=e.i(377926),ea=e.i(506194),er=e.i(86966),el=e.i(898529);O.default.updateLocale("en",{relativeTime:{future:"in %s",past:"%s",s:"1s",ss:"%ds",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd",w:"1w",ww:"%dw",M:"1w",MM:"%dw",y:"1y",yy:"%dy"}}),e.s(["Notifications",0,()=>{let[e,i]=(0,s.useState)(0),[n,o]=(0,s.useState)(!1),a=(0,_.usePathname)(),r=(0,_.useSearchParams)(),l=(0,s.useRef)(null),{navigation:{notifications:{open:d}},displayNotification:c}=(0,eo.useNavigationRedux)(),{notificationsData:{list:{isLoading:p,data:x=[],hasNext:u,nextCursor:h}},getNotifications:g,loadMoreNotifications:f,resetNotifications:m,setNotificationAsRead:b,setAllNotificationsAsRead:w}=(0,ea.useNotificationsRedux)(),{setChannelPath:v}=(0,es.useChannelsRedux)(),{width:y=0}=(0,er.useWindowSize)(),j=y<1024,C={wrapper:{position:"fixed",zIndex:999,background:"white",width:j?"100%":"340px",height:j?"calc(100vh - 64px)":"100vh",top:j?"64px":"0",left:0,bottom:0,borderRadius:j?0:"0 20px 0 0",boxShadow:d?"0px 8px 24px 0px rgba(0, 0, 0, 0.30)":"none",transform:d?j?"translateY(0)":"translateX(240px)":j?"translateY(-100%)":"translateX(-100%)",transition:"transform 0.3s ease-in-out",visibility:d?"visible":"hidden",opacity:+!!d,pointerEvents:d?"auto":"none",overflow:"auto"},scrollContainer:{height:"100%",width:"100%",overflow:"auto"}};(0,s.useEffect)(()=>{d&&(m(),g(1===e?"unread":void 0))},[d,g,m,e]),(0,s.useEffect)(()=>{n&&(g(1===e?"unread":void 0),o(!1))},[n,g,e]),(0,s.useEffect)(()=>{null!==l.current&&l.current!==a&&d&&c(!1),l.current=a||null},[a,d,c]),(0,s.useEffect)(()=>{r?.get("displayNotification")==="true"&&c(!0)},[r,c]);let k=(0,s.useMemo)(()=>x&&Array.isArray(x)?x.map(e=>{let i=e?.targetType==="upgrade_request"||e?.targetType==="ba_upgrade_request";return{children:(0,t.jsx)(M.Text,{variant:"regular",size:"sm",children:(0,t.jsx)(I.Box,{as:"span",dangerouslySetInnerHTML:{__html:e?.text}})}),avatar:{variant:e?.pictureType==="user"?"people":e?.pictureType||"people",src:e?.picture,size:"md",name:"Notification avatar"},...(e?.invitationToken||i)&&{customAvatar:(0,t.jsx)(Y.Flex,{align:"center",justify:"center",w:"48px",h:"48px",borderRadius:"full",bg:"#F2F2F2",flexShrink:0,children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M23.25 19.5H21.75V9C21.9489 9 22.1397 8.92098 22.2803 8.78033C22.421 8.63968 22.5 8.44891 22.5 8.25C22.5 8.05109 22.421 7.86032 22.2803 7.71967C22.1397 7.57902 21.9489 7.5 21.75 7.5H17.25V4.5C17.4489 4.5 17.6397 4.42098 17.7803 4.28033C17.921 4.13968 18 3.94891 18 3.75C18 3.55109 17.921 3.36032 17.7803 3.21967C17.6397 3.07902 17.4489 3 17.25 3H3.75C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75C3 3.94891 3.07902 4.13968 3.21967 4.28033C3.36032 4.42098 3.5
15109 4.5 3.75 4.5V19.5H2.25C2.05109 19.5 1.86032 19.579 1.71967 19.7197C1.57902 19.8603 1.5 20.0511 1.5 20.25C1.5 20.4489 1.57902 20.6397 1.71967 20.7803C1.86032 20.921 2.05109 21 2.25 21H23.25C23.4489 21 23.6397 20.921 23.7803 20.7803C23.921 20.6397 24 20.4489 24 20.25C24 20.0511 23.921 19.8603 23.7803 19.7197C23.6397 19.579 23.4489 19.5 23.25 19.5ZM20.25 9V19.5H17.25V9H20.25ZM5.25 4.5H15.75V19.5H13.5V15C13.5 14.8011 13.421 14.6103 13.2803 14.4697C13.1397 14.329 12.9489 14.25 12.75 14.25H8.25C8.05109 14.25 7.86032 14.329 7.71967 14.4697C7.57902 14.6103 7.5 14.8011 7.5 15V19.5H5.25V4.5ZM12 19.5H9V15.75H12V19.5ZM6.75 7.5C6.75 7.30109 6.82902 7.11032 6.96967 6.96967C7.11032 6.82902 7.30109 6.75 7.5 6.75H9C9.19891 6.75 9.38968 6.82902 9.53033 6.96967C9.67098 7.11032 9.75 7.30109 9.75 7.5C9.75 7.69891 9.67098 7.88968 9.53033 8.03033C9.38968 8.17098 9.19891 8.25 9 8.25H7.5C7.30109 8.25 7.11032 8.17098 6.96967 8.03033C6.82902 7.88968 6.75 7.69891 6.75 7.5ZM11.25 7.5C11.25 7.30109 11.329 7.11032 11.4697 6.96967C11.6103 6.82902 11.8011 6.75 12 6.75H13.5C13.6989 6.75 13.8897 6.82902 14.0303 6.96967C14.171 7.11032 14.25 7.30109 14.25 7.5C14.25 7.69891 14.171 7.88968 14.0303 8.03033C13.8897 8.17098 13.6989 8.25 13.5 8.25H12C11.8011 8.25 11.6103 8.17098 11.4697 8.03033C11.329 7.88968 11.25 7.69891 11.25 7.5ZM6.75 11.25C6.75 11.0511 6.82902 10.8603 6.96967 10.7197C7.11032 10.579 7.30109 10.5 7.5 10.5H9C9.19891 10.5 9.38968 10.579 9.53033 10.7197C9.67098 10.8603 9.75 11.0511 9.75 11.25C9.75 11.4489 9.67098 11.6397 9.53033 11.7803C9.38968 11.921 9.19891 12 9 12H7.5C7.30109 12 7.11032 11.921 6.96967 11.7803C6.82902 11.6397 6.75 11.4489 6.75 11.25ZM11.25 11.25C11.25 11.0511 11.329 10.8603 11.4697 10.7197C11.6103 10.579 11.8011 10.5 12 10.5H13.5C13.6989 10.5 13.8897 10.579 14.0303 10.7197C14.171 10.8603 14.25 11.0511 14.25 11.25C14.25 11.4489 14.171 11.6397 14.0303 11.7803C13.8897 11.921 13.6989 12 13.5 12H12C11.8011 12 11.6103 11.921 11.4697 11.7803C11.329 11.6397 11.25 11.4489 11.25 11.25Z",fill:"currentColor"})})})},subText:(0,t.jsxs)(I.Box,{as:"span",display:"flex",gap:"4px",children:[!!e?.createdAt&&(0,t.jsx)(I.Box,{as:"span",children:(0,el.formatTime)(e?.createdAt)}),!!e?.subText&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Box,{as:"span",children:"·"}),(0,t.jsx)(I.Box,{as:"span",css:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1},children:e?.subText})]})]}),unread:e?.isRead===!1,onClick:()=>{c(!1),b(e?.id),j&&(e?.targetType==="channel"&&e?.target?.slug?v(e?.target?.slug):e?.channel?.slug&&v(e?.channel?.slug))},href:(()=>{if(e?.invitationToken)return`${a}?businessInvitation=${e.invitationToken}`;if(i&&e?.businessAccountId&&e?.networkId)return`/business-accounts/${e.businessAccountId}/networks/${e.networkId}/upgrade/select-plan`;if(e?.businessAccountId&&e?.networkId)return`/business-accounts/${e.businessAccountId}/networks/${e.networkId}/tools`;if(e?.businessAccountId)return`/business-accounts/${e.businessAccountId}`;if(e?.targetType==="user"&&e?.target?.slug)return`/profile/${e.target.slug}/overview`;if(e?.targetType==="channel"&&e?.target?.slug)if("followers"===e.target.slug)return`/channel/following?singlePostView=${e?.postId}`;else if(e.target.isTeam)return`/channel/team/${e.target.slug}/posts?singlePostView=${e?.postId}`;else return`/channel/brand/${e.target.slug}/posts?singlePostView=${e?.postId}`;if(e?.channel?.slug)if("followers"===e.channel.slug)return`/channel/following?singlePostView=${e?.postId}`;else if(e.channel.isTeam)return`/channel/team/${e.channel.slug}/posts?singlePostView=${e?.postId}`;else return`/channel/brand/${e.channel.slug}/posts?singlePostView=${e?.postId}`;return null})()}}):[],[x,c,b,j,v]),S=Array.isArray(x)?x.length:0,B=!!(u&&h);return(0,t.jsx)(I.Box,{css:{...C.wrapper},children:d&&(0,t.jsx)(I.Box,{id:"notificationsScrollContainer",css:{...C.scrollContainer},children:(0,t.jsx)(en.default,{dataLength:S,next:()=>{u&&h&&f(1===e?"unread":void 0,h,15)},hasMore:B,loader:(0,t.jsx)(I.Box,{textAlign:"center",py:4,children:(0,t.jsx)(q.Spinner,{size:"md",color:"black"})}),scrollableTarget:"notificationsScrollContainer",style:{overflow:"visible",height:"100%"},scrollThreshold:"200px",children:(0,t.jsx)(ei,{isLoading:p,data:k,onMarkAllAsRead:e=>{w(e),o(!0)},onTabChange:e=>{m(),i(e)}})})})})}],282387);let ed=({color:e="currentColor",direction:t="left",distance:i="md",duration:n=.4,easing:o="cubic-bezier(0, 0, 0, 1)",hideOutline:a=!0,label:r,lines:l=3,onToggle:d,render:c,rounded:p=!1,size:x=32,toggle:u,toggled:h,disabled:g=!1,animateO
1nMount:f=!1})=>{let m,[b,w]=(0,s.useState)(!1),[v,y]=(0,s.useState)(!1);(0,s.useEffect)(()=>{y(!0)},[]);let j=Math.max(12,Math.min(48,x)),C=Math.round((48-j)/2),k=j/12,S=Math.round(k),B=j/(l*(("lg"===i?.25:"sm"===i?.75:.5)+(3===l?1:1.25))),I=Math.round(B),R=Math.round((48-(S*l+I*(l-1)))/2),T=(k-S+(B-I))/(3===l?1:2),z=parseFloat((j/(3===l?"lg"===i?4.0425:"sm"===i?5.1625:4.6325:"lg"===i?6.7875:"sm"===i?8.4875:7.6675)-T/(4/3)).toFixed(2)),A=Math.max(0,n),D={cursor:g?"not-allowed":"pointer",height:"48px",position:"relative",transition:`${A}s ${o}`,userSelect:"none",width:"48px"},M={background:e,height:`${S}px`,left:`${C}px`,position:"absolute"};a&&(D.outline="none"),p&&(M.borderRadius="9em");let H=u||w,E=(m=void 0!==h?h:b,f&&!v?!m:m);return c({barHeight:S,barStyles:M,burgerStyles:D,easing:o,handler:()=>{H(!E),"function"==typeof d&&d(!E)},isLeft:"left"===t,isToggled:E,label:r,margin:I,move:z,time:A,topOffset:R,width:j})};function ec(){return(ec=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}e.s(["default",0,e=>s.default.createElement(ed,ec({},e,{render:t=>s.default.createElement("div",{className:"hamburger-react","aria-label":t.label,"aria-expanded":t.isToggled,onClick:e.disabled?void 0:t.handler,onKeyUp:e.disabled?void 0:e=>"Enter"===e.key&&t.handler(),role:"button",style:{...t.burgerStyles,transform:`${t.isToggled?`rotate(${90*(t.isLeft?-1:1)}deg)`:"none"}`},tabIndex:0},s.default.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset}px`,transition:`${t.time}s ${t.easing}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?-1:1)}deg) translate(${t.move*(t.isLeft?-1:1)}px, ${t.move}px)`:"none"}`}}),s.default.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+t.barHeight+t.margin}px`,transition:`${t.time}s ${t.easing}`,transform:`${t.isToggled?"scaleX(0)":"none"}`}}),s.default.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+2*t.barHeight+2*t.margin}px`,transition:`${t.time}s ${t.easing}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?1:-1)}deg) translate(${t.move*(t.isLeft?-1:1)}px, ${-1*t.move}px)`:"none"}`}}))}))],985964);var ep=e.i(322013);let ex=(0,ep.default)(I.Box)`
2  width: 56px;
3  height: 64px;
4  position: relative;
5  margin-right: -20px;
6  .hamburger-react {
7    width: ${({open:e})=>e?"64px":"56px"} !important;
8    height: ${({open:e})=>e?"56px":"64px"} !important;
9    position: absolute !important;
10    & > div:nth-of-type(1) {
11      top: ${({open:e})=>e?"12px":"24px"} !important;
12      left: ${({open:e})=>e?"16px":"12px"} !important;
13    }
14    & > div:nth-of-type(2) {
15      top: ${({open:e})=>e?"0px":"31px"} !important;
16      left: ${({open:e})=>e?"0px":"12px"} !important;
17      transition: none !important;
18    }
19    & > div:nth-of-type(3) {
20      top: ${({open:e})=>e?"26px":"38px"} !important;
21      left: ${({open:e})=>e?"16px":"12px"} !important;
22    }
23  }
24`;ep.default.div`
25  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
26  circle[fill="#0069FA"] {
27    stroke: #000000;
28  }
29  &:hover {
30    circle[fill="#0069FA"] {
31      stroke: #333333;
32    }
33  }
34  &:active {
35    circle[fill="#0069FA"] {
36      stroke: #4D4D4D;
37    }
38  }
39  &:focus-visible {
40    circle[fill="#0069FA"] {
41      stroke: #000000;
42    }
43  }
44`,e.s(["BoxHamburger",0,ex],887504);var eu=e.i(662537),eh=e.i(600004),eg=e.i(12720),ef=e.i(946610);let em=e=>`fe-feats:nav:shortcutsCache:${e}`,eb=e=>!!e&&"object"==typeof e&&"string"==typeof e.teamId&&"string"==typeof e.name&&"string"==typeof e.identifier;e.s(["useNavShortcuts",0,()=>{let{userId:e}=(0,eh.useAuthRedux)(),[t,i]=(0,s.useState)(null),[n,o]=(0,s.useState)({}),[a,r]=(0,s.useState)([]);(0,s.useEffect)(()=>{r(e?(e=>{if(!e)return[];try{let t=window.sessionStorage.getItem(em(e));if(!t)return[];let i=JSON.parse(t);if(!Array.isArray(i))return[];return i.filter(eb).map(e=>({teamId:e.teamId,name:e.name,identifier:e.identifier,avatarSrc:"string"==typeof e.avatarSrc?e.avatarSrc:void 0}))}catch{return[]}})(e):[])},[e]),(0,s.useEffect)(()=>
44{if(!e)return;let t=!1;return(0,eg.fetchNavShortcuts)().then(e=>{t||i(e)}).catch(e=>{eu.captureException(e),t||i([])}),()=>{t=!0}},[e]),(0,s.useEffect)(()=>{o((0,ef.getTeamVisits)())},[]);let l=null!==t;return(0,s.useEffect)(()=>{if(e&&t){if(t.length){if(e)try{window.sessionStorage.setItem(em(e),JSON.stringify(t))}catch{}}else if(e)try{window.sessionStorage.removeItem(em(e))}catch{}}},[e,t]),(0,s.useMemo)(()=>{let e=l?t:a;return(0,ef.orderTeamsByRecency)(e,n)},[l,t,a,n])}],200043);var ew=e.i(653145);let ev=()=>(0,t.jsx)(I.Box,{css:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",width:"100%",height:"100%",zIndex:"9999",backgroundColor:"rgba(255, 255, 255, 0.75)"},children:(0,t.jsx)(z.Icon,{icon:"spinner",size:60,color:"black",spin:!0})});e.s(["LoadingOverlay",0,ev],4509);var ey=e.i(260792);let ej=s.default.forwardRef(({initialValues:e,isLoading:i,isOpen:n,onClose:o,onSubmit:a},r)=>{let{handleSubmit:l,reset:d,watch:c}=(0,ew.useForm)({defaultValues:e});return(0,s.useEffect)(()=>{n&&d(e)},[n,d]),(0,t.jsx)(ey.ModalDialog,{isOpen:n,onClose:o,shouldCloseOnOverlayClick:!1,placement:"center",contentProps:{css:{width:"512px",maxWidth:"calc(100% - 30px)",minHeight:"150px"}},children:(0,t.jsx)(I.Box,{ref:r,children:(0,t.jsxs)("form",{onSubmit:l(e=>{a(e)}),children:[(0,t.jsx)(ey.ModalHeader,{children:(0,t.jsx)(et.Heading,{variant:"component",size:"lg",children:"Delete conversation"})}),(0,t.jsxs)(ey.ModalBody,{css:{padding:"0px 24px 8px 24px",position:"relative"},children:[i&&(0,t.jsx)(ev,{}),(0,t.jsxs)(M.Text,{variant:"regular",type:"layout",fontSize:"md",children:["Are you sure you want to delete"," ",(0,t.jsx)(M.Text,{as:"span",variant:"medium",type:"layout",fontSize:"md",children:c("title")}),"?"]}),i&&(0,t.jsx)(ev,{})]}),(0,t.jsxs)(ey.ModalFooter,{css:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 24px 24px"},children:[(0,t.jsx)(Z.Button,{variant:"tertiary",size:"md",onClick:o,children:"Cancel"}),(0,t.jsx)(Z.Button,{variant:"critical",size:"md",type:"submit",disabled:i,children:"Delete"})]})]})})})});e.s(["AgentDeleteConversationModal",0,ej],503600),e.i(164485);var eC=e.i(607369),ek=e.i(969759);e.s(["AgentHeader",0,({variant:e="chat"})=>{let{profile:{sidebar:{isAgentViewStateLoading:i,data:n}},updateAgentViewState:o}=(0,eC.useProfileRedux)(),{navigation:{agent:{open:a,showSidebar:r,showSearchConversation:l}},displayAgent:d,displayAgentSidebar:c,toggleAgentSearchConversation:p}=(0,eo.useNavigationRedux)(),{selectConversation:x,resetMessages:u}=(0,ek.useAgentRedux)(),{width:h=0}=(0,er.useWindowSize)(),g=h<1024,f=n?.personalization?.agentViewState!=="collapsed",m=!g&&f&&r,b=(0,s.useMemo)(()=>{let t=g||!g&&f&&"sidebar"===e||!g&&"chat"===e&&!r||!g&&"sidebar"===e,i=!r,n=r&&("sidebar"===e||!m),s=g&&r&&("sidebar"===e||!m)||g&&!r&&"chat"===e,o=!g&&a&&("chat"===e||!m);return{shouldShowSidebarToggle:t,shouldShowNewConversationLeft:i,shouldShowSearchButton:n,shouldShowNewConversationRight:s,shouldShowExpandCollapse:o,shouldShowMinimize:!g&&("chat"===e||!m),shouldShowAgentText:"sidebar"===e||"chat"===e&&!r||g}},[g,f,e,r,m,a]),w={padding:"8px !important",width:"auto",height:"auto"};return(0,t.jsxs)(I.Box,{css:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px",width:"100%",margin:"0 auto",padding:"12px 12px 8px",position:"sticky",top:"0",background:"white",zIndex:10,"@media (max-width: 1023px)":{marginTop:"64px"}},children:[(0,t.jsxs)(I.Box,{css:{display:"flex",alignItems:"center",gap:"2px"},children:[(0,t.jsx)(D.Tooltip,{label:r?"Close sidebar":"Open sidebar",placement:"bottom",hasArrow:!0,children:(0,t.jsx)("span",{style:{display:b.shouldShowSidebarToggle?"inline-block":"none"},children:(0,t.jsx)(Z.Button,{icon:"sidebar-simple",iconPosition:"center",variant:"ghost",size:"sm",css:{...w},onClick:()=>c(!r)})})}),(0,t.jsx)(D.Tooltip,{label:"New conversation",placement:"bottom",hasArrow:!0,children:(0,t.jsx)(I.Box,{display:{base:"none",md:b.shouldShowNewConversationLeft?"flex":"none"},children:(0,t.jsx)(Z.Button,{icon:"note-pencil",iconPosition:"center",variant:"ghost",size:"sm",css:{...w},onClick:()=>{x(""),u(),c(!1)}})})}),(0,t.jsx)(I.Box,{css:{display:b.shouldShowAgentText?"flex":"none"},children:(0,t.jsx)(et.Heading,{size:"lg",variant:"component",css:{display:"flex",alignItems:"center",marginLeft:"2px"},children:"Agent"})})]}),(0,t.jsx)(I.Box,{css:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"2px"},children:(0,t.jsxs)(I.Box,{css:{display:"flex",alignItems:"center",gap:"2px",minWidth:"100px",justifyContent:"flex-end"},children:[(0,t.jsx)(D.Tooltip,{label:"Search",placement:"bottom",hasArrow:!0,children:(0,t.jsx)("span",{style:{display:b.shouldShowSearchButton?"inline-block":"none"},children:(0,t.jsx)(Z.Button,{icon:"magnifying-glass",iconPosition:"center",variant:"ghost",size:"sm",css:{...w},onClick:()=>p(!l)})})}),(0,t.jsx)(D.Tooltip,{label:"New conversation",placement:"bottom",hasArrow:!0,children:(0,t.jsx)("span",{style:{display:b.shouldShowNewConversationRight?"inline-block":"none"},children:(0,t.jsx)(Z.Button,{icon:"note-pencil",iconPosition:"center",variant:"ghost",size:"sm",css:{...w},onClick:()=>{x(""),u(),c(!1)}})})}),(0,t.jsx)(D.Tooltip,{label:f?"Collapse":"Fullscreen",placement:"bottom",hasArrow:!0,children:(0,t.jsx)("span",{style:{display:b.shouldShowExpandCollapse?"inline-block":"none"},children:(0,t.jsx)(Z.Button,{icon:i?"spinner":f?"arrows-in-simple":"arrows-out-simple",iconPosition:"center",variant:"ghost",size:"sm",css:{...w},disabled:i,isLoading:i,onClick:()=>{o(f?"collapsed":"fullscreen")}})})}),(0,t.jsx)(D.Tooltip,{label:"Minimize",placement:"bottom",hasArrow:!0,children:(0,t.jsx)("span",{style:{display:b.shouldShowMinimize?"inline-block":"none"},children:(0,t.jsx)(Z.Button,{icon:"x",iconPosition:"center",variant:"ghost",size:"sm",css:{...w},onClick:()=>d(!1)})})})]})})]})}],884985);var eS=e.i(201477);let eB=s.default.forwardRef(({initialValues:e,isLoading:i,isOpen:n,onClose:o,onSubmit:a},r)=>{let{handleSubmit:l,reset:d,control:c}=(0,ew.useForm)({defaultValues:e});return(0,s.useEffect)(()=>{n&&d(e)},[n,d]),(0,t.jsx)(ey.ModalDialog,{isOpen:n,onClose:o,shouldCloseOnOverlayClick:!1,placement:"center",contentProps:{css:{width:"512px",maxWidth:"calc(100% - 30px)",minHeight:"150px"}},children:(0,t.jsx)(I.Box,{ref:r,children:(0,t.jsxs)("form",{onSubmit:l(e=>{a(e)}),children:[(0,t.jsx)(ey.ModalHeader,{children:(0,t.jsx)(et.Heading,{variant:"component",size:"lg",children:"Rename conversation"})}),(0,t.jsxs)(ey.ModalBody,{css:{padding:"0px 24px 8px 24px",position:"relative"},children:[i&&(0,t.jsx)(ev,{}),(0,t.jsx)(ew.Controller,{name:"title",control:c,rules:{required:!0},render:({field:e})=>(0,t.jsx)(eS.TextField,{placeholder:"Conversation name",...e})}),i&&(0,t.jsx)(ev,{})]}),(0,t.jsxs)(ey.ModalFooter,{css:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 24px 24px"},children:[(0,t.jsx)(Z.Button,{variant:"tertiary",size:"md",onClick:o,children:"Cancel"}),(0,t.jsx)(Z.Button,{variant:"primary",size:"md",type:"submit",disabled:i,children:"Rename"})]})]})})})});e.s(["AgentRenameConversationModal",0,eB],161613)},186534,e=>{"use strict";e.s([],837211),e.i(837211);let{withProvider:t,withContext:i,useStyles:n,PropsProvider:s}=(0,e.i(389309).createSlotRecipeContext)({key:"list"}),o=t("ul","root",{defaultProps:{role:"list"}}),a=i("li","item"),r=i("span","indicator");e.s(["Indicator",0,r,"Item",0,a,"Root",0,o,"RootPropsProvider",0,s],791519);var l=e.i(791519);e.s(["List",0,l],186534)},571178,442576,486652,691912,758502,235457,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(618566),s=e.i(843011),o=e.i(761869),a=e.i(128099),r=e.i(280997),l=e.i(550288),d=e.i(65839),c=e.i(294560),p=e.i(709507),x=e.i(474563),u=e.i(940691),h=e.i(314057),g=e.i(282387),f=e.i(985964),m=e.i(274910),b=e.i(887504);e.i(877649);var w=e.i(86966);e.i(976778);var v=e.i(600004),y=e.i(388715),j=e.i(190038),C=e.i(393290),k=e.i(530556),S=e.i(607369),B=e.i(377926),I=e.i(506194);e.i(25825);
44var R=e.i(716811),T=e.i(200043),z=e.i(946610),A=e.i(166540),D=e.i(503600),M=e.i(884985),H=e.i(161613),E=e.i(60551),L=e.i(201477),$=e.i(186534),F=e.i(872967),W=e.i(793267);let P=({item:e,isActive:i,onConversationSelect:n,onRename:o,onDelete:a,css:r})=>(0,t.jsxs)(s.Box,{css:i?{...r.sidebarItem,...r.sidebarItemActive}:{...r.sidebarItem},children:[(0,t.jsxs)($.List.Item,{css:{...r.sidebarLink},onClick:()=>n(e.id),children:[!!e?.logo_url&&(0,t.jsx)(F.Avatar,{variant:e?.entity_type==="brand"?"brand":"people",size:"xxs",src:e?.logo_url,css:{margin:"-3px 0"}}),(0,t.jsx)(W.Text,{type:"component",variant:"medium",size:"sm",lineClamp:1,children:e.title})]}),(0,t.jsx)(c.Dropdown,{placement:"bottom-end",variant:"light",size:"xs",menuItems:[{label:"Rename",onClick:()=>o(e),icon:"pencil-simple"},{label:"Delete",onClick:()=>a(e),icon:"trash-simple",color:"text.critical"}],icon:"dots-three",iconPosition:"center",buttonVariant:"link",css:{...r.sidebarItemEllipsis}})]}),N=({conversationsNormalized:e,searchValue:i,isLoading:n,currentConversation:o,onConversationSelect:a,onRename:r,onDelete:l,css:d})=>i?.length&&n?(0,t.jsx)(E.Skeleton,{loading:!0,width:"100%",height:"34px",borderRadius:"8px"}):e?.length?(0,t.jsx)(t.Fragment,{children:e.map((e,i)=>(0,t.jsxs)($.List.Root,{css:{...d.sidebarList},children:[(0,t.jsx)(W.Text,{variant:"regular",type:"detail",color:"text.muted",size:"sm",padding:"8px 20px 4px 8px",children:e?.date}),e?.items?.map((e,n)=>(0,t.jsx)(P,{item:e,isActive:e?.id===o?.id,onConversationSelect:a,onRename:r,onDelete:l,css:d},`${e.id}_${i}_${n}`))]},`${e?.date}_${i}`))}):n?(0,t.jsx)(E.Skeleton,{loading:!0,width:"100%",height:"34px",borderRadius:"8px"}):void 0!==n?(0,t.jsxs)(s.Box,{css:{...d.emptyState},children:[(0,t.jsx)(W.Text,{variant:"semibold",type:"component",size:"md",textAlign:"center",children:"No conversation history"}),(0,t.jsx)(W.Text,{variant:"regular",type:"layout",size:"md",textAlign:"center",children:"Your conversations with your Agent will show up here."})]}):null;var V=e.i(766365);let O=({onNewConversation:e,css:i})=>(0,t.jsx)(s.Box,{css:{...i.listsWrapper},children:(0,t.jsx)(s.Box,{css:{...i.sidebarItem},children:(0,t.jsxs)(s.Box,{css:{...i.sidebarLink,display:"flex",alignItems:"center",gap:"8px"},onClick:e,children:[(0,t.jsx)(V.Icon,{icon:"note-pencil",size:16}),(0,t.jsx)(W.Text,{type:"component",variant:"medium",size:"sm",lineClamp:1,children:"New conversation"})]})})});e.i(164485);var _=e.i(969759),Y=e.i(190982);let q=i.default.forwardRef(({setRenameConversationData:e,setDeleteConversationData:n,deleteConversationData:o,renameConversationData:a},r)=>{let{agent:{conversations:{data:l,page:d,limit:c,total:p,isLoading:x,status:u,query:h},currentConversation:g},resetMessages:f,getConversations:m,searchConversations:b,setSearchQuery:w,selectConversation:y,deleteConversation:j,renameConversation:C,resetConversations:k}=(0,_.useAgentRedux)(),{displayAgentSidebar:S,navigation:{agent:{showSearchConversation:I}}}=(0,B.useNavigationRedux)(),{userId:R}=(0,v.useAuthRedux)(),{handleDate:T,groupByDate:z}={handleDate:(0,i.useCallback)(e=>{let t=(0,A.default)(e).isSame(new Date,"month"),i=(0,A.default)(e).isBefore(new Date,"year"),n=(0,A.default)(e).isSame(new Date,"year"),s=(0,A.default)(e).isSame(new Date,"day"),o=(0,A.default)(e).isBetween((0,A.default)().subtract(7,"days"),new Date)&&!s,a=(0,A.default)(e).isBetween((0,A.default)().subtract(30,"days"),new Date)&&!o&&!s&&t;return s?{label:"Today",value:"today"}:o?{label:"7 days",value:"7days"}:a?{label:"30 days",value:"30days"}:n?{label:(0,A.default)(e).format("MMMM"),value:(0,A.default)(e).format("MMMM").toLowerCase()}:i?{label:(0,A.default)(e).format("YYYY"),value:(0,A.default)(e).format("YYYY")}:void 0},[]),groupByDate:(0,i.useCallback)(e=>{let t={};return e?.length&&e.forEach(e=>{let i=e.date.label;t[i]||(t[i]=[]),t[i].push(e)}),Object.keys(t).map(e=>({date:e,items:t[e]}))},[])},$=(0,i.useRef)(null),F=(0,i.useRef)(null),W=(0,i.useCallback)(e=>{w(e),F.current&&clearTimeout(F.current),0===e.length?(k(),m(1,25)):F.current=setTimeout(()=>{b(1,25,e)},1e3)},[w,k,m,b]),P={sidebarContainer:{maxHeight:"100vh",overflowY:"auto",width:"100%",height:"100%"},newConversationWrapper:{maxWidth:"808px",padding:"0px 12px 16px",display:{base:"none",lg:"flex"}},newConversationButton:{width:"100%",justifyContent:"flex-start",padding:"8px 12px",borderRadius:"8px"},listsWrapper:{display:"flex",flexDirection:"column",gap:"16px",maxWidth:"808px",padding:"0 12px 8px",margin:"0 auto"},sidebarItem:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"8px",_hover:{background:"neutral.50"},_active:{background:"neutral.100"}},sidebarItemEllipsis:{flexShrink:0,borderRadius:"0","& > button":{height:"32px"}},sidebarLink:{display:"flex",gap:"8px",alignItems:"center",padding:"8px",fontSize:"14px",lineHeight:"18px",fontWeight:"500",cursor:"pointer",flexBasis:"100%","*":{cursor:"inherit"}},sidebarItemActive:{background:"neutral.100"},sidebarList:{display:"flex",flexDirection:"column",gap:"2px"},emptyState:{display:"flex",flexDirection:"column",gap:"4px",padding:"16px"},boxSearch:{maxWidth:"808px",padding:"0 20px 8px",margin:"0 auto",position:"sticky",top:"56px",background:"white",zIndex:10}},V=(0,i.useMemo)(()=>{let e=!!l?.length&&l?.reduce((e,t)=>
44{let i=T(t.created_at);return e||(e=[]),e.push({...t,date:i}),e},[]);return z(!!e?.length&&e.sort((e,t)=>{let i=(0,A.default)(t.created_at),n=(0,A.default)(e.created_at);return i.diff(n)}))},[l,z,T]);return(0,i.useEffect)(()=>{l?.length||m(1,25)},[]),(0,i.useEffect)(()=>{R&&$.current&&$.current!==R&&(k(),f(),y(""),w("")),$.current=R},[R,k,f,y,w]),(0,i.useEffect)(()=>{"deleted"===u&&n(null),"renamed"===u&&e(null)},[u]),(0,t.jsxs)(s.Box,{css:{...P.sidebarContainer},id:"agentSidebar",ref:r,children:[(0,t.jsx)(M.AgentHeader,{variant:"sidebar"}),(0,t.jsx)(O,{onNewConversation:()=>{y(""),f(),S(!1)},css:P}),I&&(0,t.jsx)(s.Box,{css:{...P.boxSearch},children:(0,t.jsx)(L.TextField,{iconLeft:"magnifying-glass",value:h,onChange:e=>W(e.target.value)})}),(0,t.jsx)(Y.default,{dataLength:l?.length||0,next:()=>{h?b(d+1,c,h):m(d+1,c)},hasMore:d*c<p,scrollableTarget:"agentSidebar",loader:(0,t.jsx)(s.Box,{css:{...P.listsWrapper},children:(0,t.jsx)(E.Skeleton,{loading:!0,width:"100%",height:"34px",borderRadius:"8px"})}),children:(0,t.jsx)(s.Box,{css:{...P.listsWrapper},children:(0,t.jsx)(N,{conversationsNormalized:V,searchValue:h,isLoading:x,currentConversation:g,onConversationSelect:e=>{S(!1),g?.id!==e&&(y(e),f())},onRename:e,onDelete:n,css:P})})}),(0,t.jsx)(H.AgentRenameConversationModal,{initialValues:a,isLoading:l.find(e=>e.id===a?.id)?.isLoading||!1,isOpen:!!a,onClose:()=>e(null),onSubmit:e=>C(e?.id,e?.title)}),(0,t.jsx)(D.AgentDeleteConversationModal,{initialValues:o,isLoading:l?.find(e=>e.id===o?.id)?.isLoading||!1,isOpen:!!o,onClose:()=>n(null),onSubmit:e=>{j(e?.id)}})]})});e.s(["AgentSidebar",0,q],442576);var Z=e.i(653145),X=e.i(522016),U=e.i(977079),G=e.i(46300);let K=({href:e,children:i})=>{let{changeAgentViewState:n}=(0,S.useProfileRedux)(),{displayAgent:s,showBackToAgentPill:o}=(0,B.useNavigationRedux)(),{width:a=0}=(0,w.useWindowSize)(),r=a<1024;return e&&(e.startsWith("/")||e.startsWith("#"))?(0,t.jsx)(X.default,{href:e||"#",prefetch:!1,onClick:()=>{n("collapsed"),r&&(s(!1),o(!0))},children:i}):(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:i})},J=({message:e,index:n})=>{let{likeMessage:o,dislikeMessage:a}=(0,_.useAgentRedux)(),{width:r=0}=(0,w.useWindowSize)(),[l,c]=(0,i.useState)(!1),p=i.default.useRef(null),x={padding:"8px !important",width:"auto",height:"auto",color:"text.muted"},u=(0,i.useMemo)(()=>{let i;return i=e.content,(0,t.jsx)(U.i,{components:{a:K},children:i})},[e.content]),h=()=>{if(void 0!==window){c(!0);let e=document.createRange(),t=window.getSelection();t&&p.current&&(e.selectNodeContents(p.current),t.removeAllRanges(),t.addRange(e),navigator.clipboard.writeText(p.current.innerText).then(()=>{setTimeout(()=>{c(!1),t.removeAllRanges()},2e3)}))}};return(0,t.jsxs)(s.Box,{"data-message-role":e.role,css:{...{padding:"16px 0",display:"flex",flexDirection:"column",gap:"8px",maxWidth:"768px",width:"100%",margin:"0 auto","& > div":{whiteSpace:"normal"}},flexDirection:"user"===e.role?"row-reverse":"column",_hover:{"& .copy-button":{display:"block"}}},children:[(0,t.jsxs)(s.Box,{css:{...{display:"flex",alignItems:"flex-start",borderRadius:"12px",gap:"8px"},background:"user"===e.role?"neutral.50":"white",padding:"user"===e.role?"12px 16px":"",marginLeft:"user"===e.role?"56px":"",color:"error"===e.role?"text.error":"text.default",whiteSpace:"pre-line",wordBreak:"break-word",position:"relative",maxWidth:"100%"},children:["user"===e.role&&!(r<768)&&(0,t.jsx)(s.Box,{as:"span",className:"copy-button",css:{position:"absolute",top:"calc(50% - 18px)",right:"100%",paddingRight:"5px",display:"none"},children:(0,t.jsx)(G.Tooltip,{label:"Copy",placement:"bottom",hasArrow:!0,children:(0,t.jsx)(s.Box,{children:(0,t.jsx)(d.Button,{icon:l?"check":"copy",iconPosition:"center",variant:"ghost",size:"xs",css:{...x},onClick:h})})})}),"error"===e.role&&(0,t.jsx)(V.Icon,{icon:"info",margin:"2px 0 0",size:24}),(0,t.jsx)(s.Box,{css:{lineHeight:"1.75","h1, h2, h3, h4, h5, h6":{fontSize:"revert",margin:"16px 0 8px"},h1:{fontSize:"24px",lineHeight:"30px",fontWeight:600},h2:{fontSize:"20px",lineHeight:"26px",fontWeight:600},h3:{fontSize:"18x",lineHeight:"22px",fontWeight:600},h4:{fontSize:"17px",lineHeight:"20px",fontWeight:600},h5:{fontSize:"16px",lineHeight:"18px",fontWeight:600},h6:{fontSize:"15px",lineHeight:"16px",fontWeight:600},table:{border:"1px solid",borderColor:"neutral.200",th:{background:"neutral.50",padding:"8px",borderBottom:"1px solid",textAlign:"left",borderRight:"1px solid",borderColor:"neutral.200",_last:{borderRight:"none"}},td:{padding:"8px",borderBottom:"1px solid",borderRight:"1px solid",borderColor:"neutral.200",_last:{borderRight:"none"}}},ul:{paddingLeft:"32px",lineHeight:"1",li:{fontSize:"16px",fontWeight:400,lineHeight:"24px",padding:"2px 0 0 6px",marginBottom:"8px","&::marker":{fontWeight:600,color:"black"}}},ol:{paddingLeft:"32px",lineHeight:"1",li:{fontSize:"16px",fontWeight:400,lineHeight:"24px",padding:"2px 0 0 6px",marginBottom:"8px","&::marker":{fontWeight:600,color:"black"}}},pre:{whiteSpace:"normal !important",fontFamily:"monospace",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"20px",padding:"2px 4px",borderRadius:"4px",color:"black",margin:"16px 0","&.github-light":{background:"background.subtle !important"},"&.github-dark":{background:"black !important"},code:{background:"background.subtle",padding:"1px 4px",fontFamily:"SF Mono, monospace",borderRadius:"4px"}},p:{paddingTop:"0",margin:"8px 0"},a:{fontWeight:600,textDecoration:"underline"}
44,img:{borderRadius:"16px",maxWidth:"400px",width:"100%",height:"auto"},hr:{margin:"24px 0"},blockquote:{position:"relative",padding:"2px 0 2px 24px",margin:"16px 0",fontSize:"16px",fontWeight:400,whiteSpace:"normal",lineHeight:"28px",":before":{content:'""',display:"inline-block",width:"4px",height:"100%",backgroundColor:"border.default",borderRadius:"4px",position:"absolute",left:"0",top:"0",bottom:"0"}},"& .font-semibold":{fontWeight:600},"& .font-bold":{fontWeight:700}},ref:p,children:u})]}),(0,t.jsx)(s.Box,{css:{display:"flex"},children:"assistant"===e.role&&!e.isStreaming&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(G.Tooltip,{label:"Copy",placement:"bottom",hasArrow:!0,children:(0,t.jsx)(s.Box,{children:(0,t.jsx)(d.Button,{icon:l?"check":"copy",iconPosition:"center",variant:"ghost",size:"xs",css:{...x},onClick:h})})}),(0,t.jsx)(G.Tooltip,{label:"Good response",placement:"bottom",hasArrow:!0,children:(0,t.jsx)(s.Box,{children:(0,t.jsx)(d.Button,{icon:e?.like?"thumbs-up-fill":"thumbs-up",iconPosition:"center",variant:"ghost",size:"xs",css:{...x},onClick:()=>{o(n)}})})}),(0,t.jsx)(G.Tooltip,{label:"Bad response",placement:"bottom",hasArrow:!0,children:(0,t.jsx)(s.Box,{children:(0,t.jsx)(d.Button,{icon:e?.dislike?"thumbs-down-fill":"thumbs-down",iconPosition:"center",variant:"ghost",size:"xs",css:{...x},onClick:()=>{a(n)}})})})]})})]})};e.s(["AgentMessage",0,J],486652);var Q=e.i(329273),ee=e.i(971448);let et=({isLoading:e,onSubmit:n,shouldFocus:o=!1})=>{let a=(0,i.useRef)(null),r=(0,i.useRef)(null),{control:l,reset:c,watch:p,handleSubmit:x}=(0,Z.useForm)({defaultValues:{message:""}});(0,i.useEffect)(()=>{o&&a.current&&setTimeout(()=>{a.current?.focus()},100)},[o]);let u={padding:"6px 16px",width:"100%"},h=e=>{13===e.keyCode&&!1===e.shiftKey&&(e.preventDefault(),r.current?.click())};return(0,t.jsxs)(s.Box,{as:"form",css:{width:"100%",marginBottom:"16px",display:"flex",alignItems:"flex-end",gap:"8px"},onSubmit:x(e=>{e.message?.trim()&&(n(e.message.trim()),c({message:""}))}),children:[(0,t.jsx)(Z.Controller,{name:"message",control:l,rules:{required:!0},render:({field:i})=>(0,t.jsx)(ee.TextArea,{size:"md",placeholder:"Message your agent",maxRows:6,onKeyDown:h,css:u,innerRef:a,disabled:e,...i})}),(0,t.jsx)(d.Button,{type:"submit",isLoading:e,icon:e?"spinner":"arrow-up",iconPosition:"center",variant:"primary",size:"sm",css:{flexShrink:"0"},disabled:e||!p("message"),ref:r})]})};var ei=e.i(574056),en=e.i(980401);let es={Write:"pencil-line","Get advice":"lightbulb",Hire:"magnifying-glass"},eo=({prompts:e,isLoading:n,isMobile:o,fullScreen:a,onPromptClick:r})=>{let[l,p]=(0,i.useState)(!1),[x,u]=(0,i.useState)(null),h={padding:"8px 12px",borderRadius:"6px",cursor:"pointer",minHeight:"20px",display:"flex",alignItems:"center",gap:"8px",transition:"all 0.2s ease-in-out",width:"100%",_hover:{backgroundColor:"neutral.50"}},g={fontSize:"16px",fontWeight:"500",lineHeight:"20px",color:"text.primary"},f=(e,i=!1)=>{let s=es[e.category]||"help-circle",a=o?(0,t.jsx)(d.Button,{variant:"tertiary",size:"xs",icon:s,iconPosition:"left",onClick:()=>{u(e),p(!0)},disabled:n,children:e.category}):(0,t.jsx)(c.Dropdown,{variant:"light",buttonVariant:"tertiary",size:"xs",icon:s,iconPosition:"left",label:e.category,placement:"bottom-start",modifyIconOnOpen:!1,menuItems:e.items.map((e,t)=>({label:e.title,onClick:()=>{r(e.text)},dataTestId:`prompt-${t}`})),disabled:n,css:i?{display:"block",width:"100%"}:void 0});return i?(0,t.jsx)(en.SwiperSlide,{children:a},e.category):(0,t.jsx)("div",{children:a},e.category)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Box,{css:{width:"100%",marginBottom:"32px",position:"relative",zIndex:10},children:(0,t.jsx)(s.Box,{css:{width:"100%","& .swiper":{overflow:"visible",width:"100%"},"& .swiper-wrapper":{width:"100%"},"& .swiper-slide":{width:"auto"}},children:a?(0,t.jsx)(s.Box,{css:{display:"flex",gap:"8px",justifyContent:"center",flexWrap:"wrap"},children:e.map(e=>f(e,!1))}):(0,t.jsx)(en.Swiper,{slidesPerView:"auto",spaceBetween:8,breakpoints:{320:{spaceBetween:8},768:{spaceBetween:8}},children:e.map(e=>f(e,!0))})})}),o?(0,t.jsx)(ei.BottomSheet,{isOpen:l,onClose:()=>{p(!1)},snapPoints:[250,300],initialSnap:0,detent:"content",dragAnywhere:!0,header:{showDragIndicator:!0,title:x?.category,description:"Suggestions",rightAction:{icon:"close",onClick:()=>{p(!1)},"aria-label":"Close prompts"}},children:x?.items.map((e,i)=>(0,t.jsx)(s.Box,{css:h,onClick:()=>r(e.text),children:(0,t.jsx)(W.Text,{css:g,children:e.title})},i))}):null]})},ea=async()=>{try{let e=await fetch("/api/ai/prompts");if(e.ok){let t=await e.json();return t.data||t}return[]}catch(e){return console.error("Failed to fetch prompts:",e),[]}},er=({onSubmitMessage:e})=>{let{user:n}=(0,v.useAuthRedux)(),{profile:{sidebar:{data:o}}}=(0,S.useProfileRedux)(),a=o?.personalization?.agentViewState!=="collapsed",{width:r=0}=(0,w.useWindowSize)(),[l,d]=(0,i.useState)([]),[c,p]=(0,i.useState)(!1),x={outerContainer:{height:"100vh",width:"100%",position:"relative",overflow:"visible"},container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",maxWidth:a?"768px":"100%",margin:a?"0 auto":"0",height:"80vh",width:"100%"},heading:{textAlign:"center",marginBottom:"32px"}};(0,i.useEffect)(()=>{u()},[]);let u=async()=>{p(!0),d(await ea()),p(!1)};return(0,t.jsx)(s.Box,{css:x.outerContainer,children:(0,t.jsxs)(s.Box,{css:x.container,children:[(0,t.jsxs)(Q.Heading,{variant:"layout",size:"xl",css:x.heading,children:["Hi ",n?.name?.split(" ")[0],", how can I help you?"]}),(0,t.jsx)(et,{isLoading:!1,onSubmit:t=>{e(t)},shouldFocus:!0}),(0,t.jsx)(eo,{prompts:l,isLoading:c,isMobile:r<768,fullScreen:a,onPromptClick:t=>{let i;e((i=t,Object.entries({CD:"Creative Director",AD:"Art Director",CMO:"Chief Marketing Officer",CEO:"Chief Executive Officer",CTO:"Chief Technology Officer",PR:"Public Relations",UX:"User Experience",UI:"User Interface"}
44).forEach(([e,t])=>{let n=RegExp(`\\b${e}\\b`,"g");i=i.replace(n,t)}),i))}})]})})};e.s(["AgentChatEmptyState",0,er],691912);var el=e.i(322013),ed=e.i(884364);let ec=ed.keyframes`
45  0% {
46    transform: translate(-48px, 0) rotate(-720deg);
47    opacity: 0;
48  }
49  50% {
50    opacity: 1;
51  }
52  100% {
53    transform: translate(0, 0) rotate(0deg);
54    opacity: 1;
55  }
56`,ep=ed.keyframes`
57  0%, 100% {
58    transform: translate(0, 0) rotate(0deg);
59  }
60  10% {
61    transform: translate(-1px, -0.5px) rotate(-0.5deg);
62  }
63  20% {
64    transform: translate(-2px, 0.5px) rotate(0.5deg);
65  }
66  30% {
67    transform: translate(2px, -0.5px) rotate(0deg);
68  }
69  40% {
70    transform: translate(1px, 0.5px) rotate(0.5deg);
71  }
72  50% {
73    transform: translate(-1px, 0px) rotate(-0.5deg);
74  }
75  60% {
76    transform: translate(-2px, -0.5px) rotate(0deg);
77  }
78  70% {
79    transform: translate(2px, 0.5px) rotate(-0.5deg);
80  }
81  80% {
82    transform: translate(-1px, 0px) rotate(0.5deg);
83  }
84  90% {
85    transform: translate(1px, -0.5px) rotate(0deg);
86  }
87`,ex=ed.keyframes`
88  0% {
89    transform: translate(0, 0) rotate(0deg);
90    opacity: 1;
91  }
92  50% {
93    opacity: 1;
94  }
95  100% {
96    transform: translate(48px, 0) rotate(1080deg);
97    opacity: 0;
98  }
99`,eu=ed.keyframes`
100  0% {
101    width: 0;
102  }
103  100% {
104    width: 100%;
105  }
106`,eh=el.default.div`
107  max-width: 768px;
108  margin: 0 auto;
109  width: 100%;
110  display: flex;
111  align-items: center;
112  gap: 8px;
113`,eg=el.default.div`
114  display: flex;
115  justify-content: center;
116  align-items: center;
117  width: 32px;
118  height: 32px;
119  overflow: hidden;
120  border-radius: 50%;
121  svg {
122    width: 32px;
123    height: 32px;
124    animation: ${({animate:e})=>(e=>{switch(e){case"rollIn":return ed.css`${ec} 1s ease-in-out forwards`;case"shake":return ed.css`${ep} 2s ease-in-out infinite`;case"rollOut":return ed.css`${ex} 1s ease-in-out forwards`;default:return"none"}})(e)};
125  }
126`,ef=el.default.div`
127  white-space: nowrap;
128  overflow: hidden;
129  width: fit-content;
130  animation: ${({textLength:e})=>e>0?ed.css`${eu} ${Math.max(.05*e,1)}s ease-out forwards`:"none"};
131`,em=({effect:e,message:i})=>(0,t.jsxs)(eh,{children:[(0,t.jsx)(eg,{animate:e,children:(0,t.jsx)(V.Icon,{icon:"eight-ball",size:32})},"eight-ball"),(0,t.jsx)(ef,{textLength:i?.length||0,children:(0,t.jsx)(W.Text,{type:"layout",variant:"medium",size:"sm",children:i})})]}),eb=()=>{let{agent:{conversations:{conversationsLoading:e,status:n},currentConversation:o,messages:{data:a,statusMessage:r,isLoading:l,status:c,page:p}},createStreamConversation:x,getMessages:u,createStreamMessage:h,resetStatus:g,resetMessageStatus:f}=(0,_.useAgentRedux)(),{navigation:{agent:{open:m,showSidebar:b}}}=(0,B.useNavigationRedux)(),{profile:{sidebar:{data:v}}}=(0,S.useProfileRedux)(),y=v?.personalization?.agentViewState!=="collapsed",{width:j=0}=(0,w.useWindowSize)(),C=(0,i.useRef)(null),k=(0,i.useRef)(null),I=(0,i.useRef)(null),R=(0,i.useRef)(null),T=(0,i.useRef)(null),z=(0,i.useRef)(new Set),[A,D]=(0,i.useState)(!1),[H,E]=(0,i.useState)(0),[L,$]=(0,i.useState)(!1),F=(0,i.useCallback)((e,t)=>{let i=setTimeout(()=>{z.current.delete(i),e()},t);return z.current.add(i),i},[]);(0,i.useEffect)(()=>()=>{z.current.forEach(e=>clearTimeout(e)),z.current.clear()},[]);let P=()=>{if(!R.current||!T.current)return 0;let e=R.current.offsetHeight,t=T.current.offsetHeight;return Math.max(0,window.innerHeight-e-t)},N=()=>{if(!C.current)return;let e=C.current;$(!(e.scrollTop+e.clientHeight>=e.scrollHeight-10)&&e.scrollHeight>e.clientHeight)},O=()=>{C.current&&R.current&&(E(P()),F(()=>{if(!C.current)return;let e=C.current.querySelector('[data-spacer="true"]');e&&e.scrollIntoView({behavior:"smooth",block:"start"})},50))},{control:Y,reset:q,watch:X,handleSubmit:U}=(0,Z.useForm)({defaultValues:{message:""}}),G={wrapper:{height:"100vh",width:"100%",display:"flex",flexDirection:"column","@media (max-width: 768px)":{height:"100dvh",minHeight:"100dvh"}},content:{flex:"1",overflowY:"auto",overflowX:"hidden",padding:"0 20px",display:"flex",flexDirection:"column",WebkitOverflowScrolling:"touch",touchAction:"pan-y",overscrollBehavior:"contain"}
131,inputField:{padding:"6px 16px",width:"100%"},inputButton:{flexShrink:"0"},formContainer:{display:"flex",alignItems:"flex-end",gap:"8px",padding:{base:"8px 20px",md:b?"8px 20px":"8px 0"},position:"relative",zIndex:1e3},footerWrapper:{maxWidth:"768px",margin:"0 auto",padding:y?"0":"0 20px"},infoText:{padding:"8px 0",textAlign:"center"},scrollDownButton:{position:"fixed",bottom:"120px",left:"50%",transform:"translateX(-50%)",zIndex:1001,borderRadius:"50%",width:"40px",height:"40px",backgroundColor:"white",border:"1px solid",borderColor:"blackAlpha.200",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",_hover:{transform:"translateX(-50%) scale(1.05)",zIndex:1002},_active:{transform:"translateX(-50%) scale(0.95)"}}},K=(0,i.useMemo)(()=>{if(0===a.length)return[];let i=a.map((i,n)=>e&&n===a.length-1?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(J,{message:i,index:n},n),(0,t.jsx)(em,{effect:"shake",message:"Creating conversation..."},"loading-effect")]}):(0,t.jsx)(J,{message:i,index:n},n));if(H>0&&a.length>=2){let e=-1;for(let t=a.length-1;t>=0;t--)if("user"===a[t].role){e=t;break}if(-1!==e){let n=i.slice(0,e),o=i.slice(e);return r.effect&&o.splice(-1,0,(0,t.jsx)(em,{effect:r.effect,message:r.message},"spacer-effect")),[...n,(0,t.jsx)(s.Box,{"data-spacer":"true",css:{minHeight:A?"auto":`${H}px`,display:"flex",flexDirection:"column",justifyContent:"flex-start"},children:o},"spacer")]}}return i},[a,l,e,H,A,r]),Q=!l&&!e&&0===a.length&&!o?.id,et=e=>{13===e.keyCode&&!1===e.shiftKey&&(e.preventDefault(),k.current?.click())};return(0,i.useEffect)(()=>{!Q&&(I?.current||m||!o?.id)&&I?.current?.focus()},[I?.current,m,n,c,o?.id,Q]),(0,i.useEffect)(()=>{if(!o?.id&&!Q){let e=setTimeout(()=>{I?.current?.focus()},100);return()=>clearTimeout(e)}},[o?.id,Q,m]),(0,i.useEffect)(()=>{("success"===n||"created"===c)&&(q({message:""}),g())},[n,c,q,g]),(0,i.useEffect)(()=>{o.id&&1===p&&0===a.length&&(u(o.id,1,20),D(!0))},[o.id,p,a.length]),(0,i.useEffect)(()=>{E(0)},[o.id]),(0,i.useEffect)(()=>{a.length>0&&F(()=>O(),100)},[a.length,F]),(0,i.useEffect)(()=>{let e=()=>{H>0&&E(P())};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[H]),(0,i.useEffect)(()=>{let e=C.current;if(!e)return;let t=()=>{N()};return e.addEventListener("scroll",t,{passive:!0}),N(),()=>{e.removeEventListener("scroll",t)}},[a,H,m]),(0,i.useEffect)(()=>{F(()=>{N()},100)},[a.length,l,F]),(0,i.useEffect)(()=>{m&&C.current&&F(()=>{if(N(),C.current){let e=new Event("scroll",{bubbles:!0});C.current.dispatchEvent(e)}},300)},[m,F]),(0,i.useEffect)(()=>{r?.effect==="rollOut"&&setTimeout(()=>{f()},1500)},[r?.effect,f]),(0,t.jsxs)(s.Box,{css:{...G.wrapper},children:[(0,t.jsx)(s.Box,{ref:R,children:(0,t.jsx)(M.AgentHeader,{variant:"chat"})}),(0,t.jsx)(s.Box,{css:{...G.content},ref:C,children:Q?(0,t.jsx)(er,{onSubmitMessage:e=>{D(!1),o.id?h(o.id,e):x(e),F(()=>O(),100)},shouldFocus:m||!o?.id}):K}),!Q&&(0,t.jsx)(s.Box,{ref:T,children:(0,t.jsxs)(s.Box,{css:{...G.footerWrapper},children:[(0,t.jsxs)(s.Box,{as:"form",css:{...G.formContainer},onSubmit:U(e=>{D(!1),o.id?h(o.id,e.message):x(e.message),q({message:""}),F(()=>O(),100)}),children:[(0,t.jsx)(Z.Controller,{name:"message",control:Y,rules:{required:!0},render:({field:i})=>(0,t.jsx)(ee.TextArea,{size:"md",placeholder:"Message your agent",maxRows:11,onKeyDown:et,css:{...G.inputField},innerRef:I,disabled:l||e,...i})}),(0,t.jsx)(d.Button,{type:"submit",isLoading:l||e,icon:l||e?"spinner":"arrow-up",iconPosition:"center",variant:"primary",size:"sm",css:{...G.inputButton},disabled:e||l||!X("message"),ref:k})]}),(0,t.jsx)(W.Text,{variant:"regular",type:"component",size:"xs",color:"text.muted",css:{...G.infoText},children:"Please check important info."})]})}),L&&!Q&&(0,t.jsx)(s.Box,{css:{...G.scrollDownButton},onClick:()=>{C.current&&C.current.scrollTo({top:C.current.scrollHeight,behavior:"smooth"})},children:(0,t.jsx)(V.Icon,{icon:"arrow-down",size:20,color:"text.default"})})]})};e.s(["AgentChat",0,eb],758502);var ew=e.i(245903);let ev=()=>
131{let e=(0,n.useSearchParams)(),[o,a]=(0,i.useState)(!1),[r,l]=(0,i.useState)(null),[d,c]=(0,i.useState)(null),{navigation:{agent:{open:p,showSidebar:x}},displayAgent:u}=(0,B.useNavigationRedux)(),{profile:{sidebar:{data:h}}}=(0,S.useProfileRedux)(),g=(0,i.useMemo)(()=>h?.personalization?.agentViewState!=="collapsed",[h?.personalization?.agentViewState]),{width:f=0}=(0,w.useWindowSize)(),m=f<1024,b=(0,i.useRef)(null);(0,ew.useOnClickOutside)(b,e=>{let t=e.target,i=t.closest('[data-scope="menu"][data-part="content"]'),n=t.closest('[data-bottom-sheet="true"]'),s=t.closest('[data-agent-button="true"]');r||d||i||n||s||u(!1)});let v={wrapper:{position:"fixed",zIndex:999,background:"white",width:(0,i.useMemo)(()=>m?"100%":g?"calc(100% - 240px)":"340px",[m,g]),height:m?"100dvh":"100vh",top:"0",left:0,bottom:0,borderRadius:m||g?0:"0 20px 0 0",boxShadow:p?"0px 8px 24px 0px rgba(0, 0, 0, 0.30)":"none",transform:o?p?m?"translateY(0)":"translateX(240px)":m?"translateY(-100%)":"translateX(-100%)":"translateX(-100%)",transition:"all 200ms ease-in-out",visibility:p?"visible":"hidden",opacity:+!!p,pointerEvents:p?"auto":"none","@media (max-width: 768px)":{height:"100dvh",top:0,paddingBottom:"env(safe-area-inset-bottom)"},...g&&!m&&{overflowY:"auto",display:"flex",flexDirection:"column"}},contentContainer:{position:"relative",width:"100%",height:"100%",display:"flex",...g&&!m&&{flex:1,minHeight:0}},mobileAbsoluteBox:{position:"absolute",width:"100%",height:"100%"},mobileChatBox:{opacity:+!x,pointerEvents:x?"none":"auto"},mobileSidebarBox:{opacity:+!!x,pointerEvents:x?"auto":"none"},fullscreenSidebar:{width:"300px",height:"100%",flexShrink:0,transform:x?"translateX(0)":"translateX(-100%)",transition:"transform 200ms ease-in-out",borderRight:"1px solid #e2e8f0"},fullscreenChat:{flex:1,height:"100%",marginLeft:x?"0":"-300px",transition:"margin-left 200ms ease-in-out"}};(0,i.useEffect)(()=>{a(!0)},[]),(0,i.useEffect)(()=>{e?.get("displayAgent")==="true"&&u(!0)},[e,u]),(0,i.useEffect)(()=>{if(p){let e=window.scrollY;document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",document.body.style.overflow="hidden",document.body.setAttribute("data-scroll-y",e.toString())}else{let e=document.body.getAttribute("data-scroll-y");document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",e&&(window.scrollTo(0,parseInt(e)),document.body.removeAttribute("data-scroll-y"))}return()=>{let e=document.body.getAttribute("data-scroll-y");document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",e&&(window.scrollTo(0,parseInt(e)),document.body.removeAttribute("data-scroll-y"))}},[p]);let y=m||!g;return(0,t.jsx)(s.Box,{css:{...v.wrapper},ref:b,children:p&&(0,t.jsxs)(s.Box,{css:{...v.contentContainer},overflow:y?"hidden":void 0,children:[(0,t.jsx)(s.Box,{css:{...y?v.mobileAbsoluteBox:{},...y?v.mobileSidebarBox:v.fullscreenSidebar},children:(0,t.jsx)(q,{renameConversationData:r,setRenameConversationData:l,deleteConversationData:d,setDeleteConversationData:c},"agent-sidebar")}),(0,t.jsx)(s.Box,{css:{...y?v.mobileAbsoluteBox:{},...y?v.mobileChatBox:v.fullscreenChat},children:(0,t.jsx)(eb,{})})]})})};e.s(["AgentDrawerContent",0,ev],235457);let ey={width:"100%",justifyContent:"flex-start",_hover:{bg:"neutral.900"},_active:{bg:"neutral.800"}},ej=()=>{let e=(0,n.useRouter)(),A=(0,n.usePathname)()||"",D=(0,i.useRef)(null),M=(0,i.useRef)(null),H=(0,i.useRef)(null),E=(0,i.useRef)(null),[L,$]=(0,i.useState)("0px"),[F,W]=(0,i.useState)(!1),P=(0,T.useNavShortcuts)(),{width:N=0}=(0,w.useWindowSize)(),V=N<1024,{user:O,logout:_,isLoggingOut:Y,isLoggedIn:q}=(0,v.useAuthRedux)(),Z=(0,y.useBusinessAccountsEntryHref)()||"/business-accounts",{navigation:{notifications:{open:X},agent:{open:U}},displayNotification:G,displayAgent:K}=(0,B.useNavigationRedux)(),{profile:{sidebar:{data:J}},getLoggedUserSidebar:Q,resetLoggedUserSidebar:ee}=(0,S.useProfileRedux)(),{freelance:{subscription:{isLoading:et,status:ei}},getHasUsedFreelanceHire:en}=(0,j.useFreelanceRedux)(),{getPendingRequestReceive:es,getPendingRequestConfirm:eo}=(0,k.useRequestsRedux)(),{totalPendingConfirm:ea,totalPendingCredits:er}=(0,R.useRequestsNormalize)(),el=ea+er,{setModal:ed,modals:{addNewProject:ec}}=(0,C.useModalsRedux)(),{notificationsData:{list:{data:ep}},getNotifications:ex}=(0,I.useNotificationsRedux)(),{zIndices:eu}=(0,l.useTheme)(),{open:eh,onOpen:eg,onClose:ef}=(0,r.useDisclosure)();(0,i.useEffect)(()=>
131{if(!X)return;let e=e=>{let t=e.target;M.current?.contains(t)||H.current?.contains(t)||E.current?.contains(t)||G(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[X,G]);let em=O?.identifier,eb=J?.picture?.url,ew=J?.hasAdminAccess,ej=(0,i.useMemo)(()=>ep?.some(e=>!e.isRead),[ep]);(0,i.useEffect)(()=>{if(D.current){let e=D.current.offsetWidth-14;$(`${e}px`)}},[D.current]),(0,i.useEffect)(()=>{Q()},[Q]),(0,i.useEffect)(()=>{q||ee()},[ee,q]),(0,i.useEffect)(()=>{es()},[es]),(0,i.useEffect)(()=>{eo()},[eo]),(0,i.useEffect)(()=>{!et&&em&&"success"!==ei&&"failure"!==ei&&en()},[en,et,em,ei]),(0,i.useEffect)(()=>{eh&&!V&&ef()},[V]),(0,i.useEffect)(()=>{ef(),W(!1)},[A,ef]),(0,i.useEffect)(()=>(eh?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[eh]),(0,i.useEffect)(()=>{ex()},[ex]);let eC=[{icon:"eight-ball",label:"Agent",dataTestId:"logged-agent",adminAccessRequired:!0,onClick:()=>{ef(),G(!1),K(!U||V)}},{icon:"user-gear",label:"Admin",href:"/admin/project-invites/assign-projects",dataTestId:"logged-admin",adminAccessRequired:!0},{icon:"gear-six",label:"Settings",href:"/settings",dataTestId:"logged-settings"},{icon:"lifebuoy",label:"Support",href:"/support",dataTestId:"logged-support"},{icon:"info",label:"About",href:"/about",dataTestId:"logged-about"},{icon:"sign-out",label:"Sign out",dataTestId:"logged-sign-out",onClick:()=>{Y||(ef(),_())}}],ek=(0,i.useCallback)(()=>{U&&K(!1)},[U,K]),eS=(0,i.useMemo)(()=>{if(0===P.length)return null;let e=F?P:P.slice(0,3),i=P.slice(3),n=i.length>0&&!F,s=`View ${i.length} more`,a=e=>{let t=`/profile/${e}`;return A===t||A?.startsWith(`${t}/`)},r=e=>`/profile/${e}/overview`;return(0,t.jsxs)(o.Flex,{as:"nav","aria-label":"Shortcuts",direction:"column",w:"100%",gap:"8px",mt:"24px",children:[e.map(e=>(0,t.jsx)(u.NavItem,{href:r(e.identifier),type:"team-shortcut",avatarSrc:e.avatarSrc,selected:a(e.identifier),label:e.name,onClick:()=>{(0,z.recordTeamVisit)(e.teamId,Date.now()),ek()}},e.teamId)),n&&(V?(0,t.jsx)(d.Button,{variant:"ghost-subtle",size:"xs",icon:"caret-down",iconPosition:"left",css:ey,onClick:()=>W(!0),"data-id":"nav-shortcuts-view-more",children:s}):(0,t.jsx)(c.Dropdown,{variant:"dark",sameWidth:!0,positionStrategy:"fixed",truncateItemLabels:!0,menuItems:i.map(e=>({label:e.name,href:r(e.identifier),avatarSrc:e.avatarSrc,avatarVariant:"team",isSelected:a(e.identifier),dataTestId:`nav-shortcut-${e.identifier}`,onClick:()=>(0,z.recordTeamVisit)(e.teamId,Date.now())})),trigger:()=>(0,t.jsx)(d.Button,{variant:"ghost-subtle",size:"xs",icon:"caret-down",iconPosition:"left",css:ey,"data-id":"nav-shortcuts-view-more",children:s})}))]})},[P,F,V,A,ek]),eB=(0,i.useMemo)(()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Flex,{flexGrow:1,direction:"column",w:"100%",gap:"8px",children:[(0,t.jsx)(u.NavItem,{href:"/channel/following",type:"home",selected:A?.includes("/channel/following"),label:"Home",dataTestId:"logged-home-nav",onClick:ek}),(0,t.jsx)(u.NavItem,{href:"/search/people",type:"search",selected:A?.includes("/search"),label:"Search",dataTestId:"logged-search-people-nav",onClick:ek}),(0,t.jsx)(u.NavItem,{href:el>0?"/network/requests":"/network/verified",type:"collaborators",selected:A?.includes("/network")&&!A?.includes("/business-accounts"),hasRequests:el>0,label:"Network",onClick:ek}),!V&&(0,t.jsx)(s.Box,{ref:H,children:(0,t.jsx)(u.NavItem,{type:"notifications",selected:X,label:"Notifications",hasRequests:ej,onClick:()=>{K(!1),G(!X)}})}),(0,t.jsx)(u.NavItem,{href:`/profile/${em}/overview`,type:"profile",avatarSrc:eb,selected:A?.includes("/profile"),label:"Profile",onClick:ek}),eS]}),(0,t.jsxs)(o.Flex,{direction:"column",w:"100%",gap:"8px",mt:{base:"32px",lg:"0"},children:[(0,t.jsx)(u.NavItem,{type:"add-project",selected:A?.includes("/manage"),label:"Add project",onClick:()=>ed("addNewProject",!0),dataTestId:"logged-add-project-nav"}),(0,t.jsx)(u.NavItem,{href:Z,type:"business-accounts",selected:A?.includes("/business-accounts"),label:"Business accounts",onClick:ek}),(0,t.jsx)(s.Box,{"data-agent-button":"true",children:(0,t.jsx)(c.Dropdown,{variant:"dark",sameWidth:!0,positionStrategy:"fixed",sxMenuList:V?{width:L}:{},menuItems:eC.filter(e=>!e.adminAccessRequired||e.adminAccessRequired===ew),trigger:({isOpen:e})=>(0,t.jsx)(u.NavItem,{type:"about",icon:e?"dots-three-bold":"dots-three",label:"More",hasTooltip:!e})})})]})]}),[A,e,V,U,X,el,ej,eb,em,K,G,ea,er,ep,_,ef,ed,ec,e=>e.some(e=>A?.includes(e)),ew,Y,eC,L,ek,eS]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Box,{display:{base:"none",lg:"block"},css:{"@media print":{display:"none"}},position:"relative",children:(0,t.jsxs)(o.Flex,{as:"nav",top:0,bg:"black",color:"white",direction:"column",align:"start",justify:"space-between",p:"12px 12px 24px 12px",h:"100vh",w:"240px",minW:"240px",overflowY:"auto",overflowX:"hidden",position:"fixed",zIndex:ec?eu.sticky:1e3,fontFamily:"Inter !important",letterSpacing:"initial",alignItems:"start",css:{width:"240px",scrollbarWidth:"thin",scrollbarColor:"rgba(255, 255, 255, 0.24) transparent","&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(255, 255, 255, 0.24)",borderRadius:"3px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}},children:[(0,t.jsx)(o.Flex,{direction:"row",align:"center",justify:"space-between",w:"100%",children:(0,t.jsx)(h.LogoTransition,{href:"/channel/following"})}),eB]})}),(0,t.jsxs)(s.Box,{ref:D,display:{base:"block",lg:"none"},css:{"@media print":{display:"none"}},children:[(0,t.jsx)(o.Flex,{id:"new-navbar",position:"fixed",zIndex:!eh||ec?eu.sticky:1e5,as:"nav",bg:"black",color:"white",h:{base:"64px",lg:"80px"},w:"100%",justify:"center",transition:"all 0.5s ease-in-out",top:"0",children:(0,t.jsx)(p.GlobalContainer,{display:"flex",alignItems:"center",children:(0,t.jsxs)(o.Flex,{direction:"row",align:"center",justify:"space-between",w:"100%",children:[(0,t.jsx)(s.Box,{w:"30%",lineHeight:"1","data-id":"logo-home",children:(0,t.jsx)(x.Link,{href:"/channel/following","aria-label":"Feats home",children:(0,t.jsx)(m.LogoBrand,{height:"24px",width:"80px"})})}),(0,t.jsxs)(s.Box,{display:{base:"flex",lg:"none"},justifyContent:"flex-end",alignItems:"center",children:[(0,t.jsxs)(s.Box,{display:"flex",alignItems:"center",justifyContent:"center",children:[(0,t.jsx)(u.NavItem,{href:"/search/people",type:"search",selected:A?.includes("/search"),label:"Search",isExpanded:!1,dataTestId:"logged-search-global-container",onClick:()=>{K(!1),G(!1),ef()}}),(0,t.jsx)(s.Box,{ref:E,children:(0,t.jsx)(u.NavItem,{type:"notifications",selected:X,label:"Notifications",isExpanded:!1,hasRequests:ej,onClick:()=>{K(!1),G(!X),ef()}})})]}),(0,t.jsx)(s.Box,{display:"flex",alignItems:"center",justifyContent:"center",zIndex:2e3,children:(0,t.jsx)(b.BoxHamburger,{open:eh,children:(0,t.jsx)(f.default,{toggled:eh,toggle:eh?ef:eg,size:24,label:eh?"Close menu":"Open menu"})})})]})]})})}),(0,t.jsx)(o.Flex,{children:(0,t.jsx)(a.Drawer.Root,{open:eh,size:"full",placement:"end",modal:!1,onOpenChange:e=>{e.open||ef()},children:(0,t.jsx)(a.Drawer.Content,{paddingTop:{base:"64px",lg:"80px"},bg:"black",color:"white",maxH:"100%",position:"fixed",inset:"0",children:(0,t.jsx)(a.Drawer.Body,{overflowY:"auto",padding:"24px 8px 8px",paddingBottom:"calc(8px + env(safe-area-inset-bottom))",children:(0,t.jsx)(o.Flex,{direction:"column",justify:"space-between",minH:"100%",children:eB}
131)})})})})]}),(0,t.jsx)(s.Box,{ref:M,children:(0,t.jsx)(g.Notifications,{})}),(0,t.jsx)(s.Box,{children:(0,t.jsx)(ev,{})})]})};function eC({pathname:e,isLoggedIn:t,modalAuthControl:s}){let o=(0,n.useSearchParams)();return(0,i.useEffect)(()=>{let i=o?.get("displayNotification");"/"!==e||"true"!==i||t||s("organic",!0,"/channel/following?displayNotification=true")},[e,o,t,s]),null}let ek=()=>{let e={display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none !important",gap:"12px",borderRadius:"40px",border:"none"},h={bg:"black",_focusVisible:{boxShadow:"0px 0px 0px 4px rgba(255, 255, 255, 0.2)"},_hover:{bg:"#333333",boxShadow:"none"},_active:{bg:"#4D4D4D",boxShadow:"none"},textDecoration:"none !important"},g={bg:"white",color:"black",_focusVisible:{boxShadow:"0px 0px 0px 4px rgba(255, 255, 255, 0.2)",color:"black"},_hover:{bg:"#E6E6E6",boxShadow:"none",color:"black"},_active:{bg:"#CCCCCC",boxShadow:"none",color:"black"},textDecoration:"none !important",border:"none",padding:"9px 12px !important",borderRadius:"40px !important",lineHeight:"14px !important",fontSize:"12px !important"},y={width:"100%",fontSize:"15px",justifyContent:"start",_focusVisible:{boxShadow:"0px 0px 0px 4px rgba(255, 255, 255, 0.2)"},_active:{bg:"#4D4D4D",boxShadow:"none"},_hover:{bg:"#4D4D4D",boxShadow:"none"},_pressed:{bg:"#4D4D4D",boxShadow:"none"},padding:"12px",marginBottom:"4px",transitionDuration:"normal"},j={width:"100%",fontSize:"15px",justifyContent:"center",padding:"10px 16px",transitionDuration:"normal",lineHeight:"20px"},C=(0,n.usePathname)()||"",{open:k,onOpen:S,onClose:B}=(0,r.useDisclosure)(),{zIndices:I}=(0,l.useTheme)(),{width:R=0}=(0,w.useWindowSize)(),T=R<768,{isLoggedIn:z,modalAuthControl:A}=(0,v.useAuthRedux)(),D=(0,n.useRouter)(),M=C&&"/"!==C?`/sign-in/email?callbackUrl=${encodeURIComponent(C)}`:"/sign-in/email";return(0,i.useEffect)(()=>{k&&!T&&B()},[T,k,B]),(0,i.useEffect)(()=>(k?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[k]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Suspense,{fallback:null,children:(0,t.jsx)(eC,{pathname:C,isLoggedIn:z,modalAuthControl:A})}),(0,t.jsx)(s.Box,{display:{base:"none",md:"block"},css:{"@media print":{display:"none"}},children:(0,t.jsx)(o.Flex,{id:"new-navbar",position:"fixed",zIndex:1e3,as:"nav",bg:"black",color:"white",h:{base:"64px",md:"80px"},w:"100%",justify:"center",top:"0",children:(0,t.jsx)(p.GlobalContainer,{display:"flex",alignItems:"center",children:(0,t.jsxs)(o.Flex,{direction:"row",align:"center",justify:"space-between",w:"100%",children:[(0,t.jsxs)(o.Flex,{flex:"1",display:{base:"none",md:"flex"},direction:"row",alignItems:"center",justifyContent:"flex-start",fontSize:"15px",children:[(0,t.jsx)(x.Link,{"data-id":"unlogged-join-button",css:{display:"flex",alignItems:"center"},href:"/","aria-label":"Feats home",children:(0,t.jsx)(m.LogoBrand,{height:"24px",width:"80px"})}),(0,t.jsx)(u.NavItem,{href:"/search/people",type:"search",selected:C?.includes("/search"),label:"Search",dataTestId:"unlogged-search-people-nav",css:{bg:"none",h:"auto",p:"10px 16px",m:"0 16px","& svg":{width:"20px",height:"20px"},_hover:{bg:"none"},_active:{bg:"none"}}})]}),(0,t.jsxs)(o.Flex,{flexShrink:0,display:{base:"none",md:"flex"},alignItems:"center",gap:"8px",fontSize:"15px",children:[(0,t.jsxs)(x.Link,{"data-id":"unlogged-for-business-nav",href:"/business",css:{display:"flex",alignItems:"center",gap:"8px",h:"40px",px:"16px",borderRadius:"9999px",bg:"transparent",color:"white",textDecoration:"none !important",fontSize:"15px",fontWeight:C.includes("/business")?600:500,lineHeight:"20px",whiteSpace:"nowrap",cursor:"pointer",transitionDuration:"normal",_hover:{color:"#E6E6E6","& svg":{color:"#E6E6E6"}},_active:{color:"#CCCCCC","& svg":{color:"#CCCCCC"}},_focusVisible:{boxShadow:"0px 0px 0px 4px rgba(255, 255, 255, 0.2)"}},children:[(0,t.jsx)(V.Icon,{icon:C.includes("/business")?"building-office-fill":"building-office",size:20}),"For business"]}),(0,t.jsx)(c.Dropdown,{variant:"dark",placement:"bottom-start",menuItems:[{label:"About",href:"/about",dataTestId:"unlogged-about"},{label:"Support",href:"/support",dataTestId:"unlogged-support"},{label:"Legal",href:"/legal",dataTestId:"unlogged-legal"}],trigger:({isOpen:e})=>(0,t.jsx)(u.NavItem,{type:"about",icon:e?"dots-three-bold":"dots-three",label:"More",isExpanded:!1,hasTooltip:!e})}),(0,t.jsx)(s.Box,{"data-id":"unlogged-sign-in-button",css:{...e,...{fontSize:"15px",justifyContent:"start",padding:"10px 16px",lineHeight:"20px",margin:"0px 8px",transitionDuration:"normal"},...h,cursor:"pointer",fontWeight:C.includes("sign-in")?600:500},onClick:()=>D.push(M),children:"Sign in"}),(0,t.jsx)(d.Button,{"data-id":"unlogged-join-button",variant:"primary-inverse",size:"sm",onClick:()=>D.push(M),children:"Join"})]})]})})})}),(0,t.jsxs)(s.Box,{display:{base:"block",md:"none"},css:{"@media print":{display:"none"}},children:[(0,t.jsx)(o.Flex,{id:"new-navbar",position:"fixed",zIndex:k?15e4:I.sticky,as:"nav",bg:"black",color:"white",h:{base:"64px",lg:"80px"},w:"100%",justify:"center",transition:"all 0.5s ease-in-out",top:"0",children:(0,t.jsx)(p.GlobalContainer,{display:"flex",alignItems:"center",children:(0,t.jsxs)(o.Flex,{direction:"row",align:"center",justify:"space-between",w:"100%",children:[(0,t.jsx)(s.Box,{w:"40%",lineHeight:"1",children:(0,t.jsx)(x.Link,{href:"/","aria-label":"Feats home",children:(0,t.jsx)(m.LogoBrand,{height:"24px",width:"80px"})})}),(0,t.jsxs)(s.Box,{display:{base:"flex",md:"none"},justifyContent:"flex-end",alignItems:"center",children:[(0,t.jsx)(s.Box,{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",css:{...g},children:(0,t.jsx)(x.Link,{css:{margin:0,fontWeight:C.includes("join")?600:500,width:"25px"},href:M,onClick:B,children:"Join"})}),(0,t.jsx)(s.Box,{display:"flex",alignItems:"center",justifyContent:"center",children:(0,t.jsx)(u.NavItem,{href:"/search/people",type:"search",selected:C?.includes("/search"),label:"Search",isExpanded:!1,onClick:B})}),(0,t.jsx)(s.Box,{display:"flex",alignItems:"center",justifyContent:"center",children:(0,t.jsx)(b.BoxHamburger,{open:k,children:(0,t.jsx)(f.default,{toggled:k,toggle:k?B:S,size:24,label:k?"Close menu":"Open menu"})})})]})]})})}),(0,t.jsx)(o.Flex,{children:(0,t.jsx)(a.Drawer.Root,{open:k,size:"full",placement:"end",modal:!1,onOpenChange:e=>{e.open||B()},children:(0,t.jsxs)(a.Drawer.Content,{paddingTop:{base:"64px",md:"80px"},bg:"black",color:"white",position:"fixed",inset:"0",children:[(0,t.jsx)(a.Drawer.Body,{padding:"24px 8px 8px",children:(0,t.jsxs)(o.Flex,{direction:"column",justify:"flex-start",h:"100%",children:[(0,t.jsxs)(o.Flex,{direction:"column",children:[(0,t.jsx)(u.NavItem,{href:"/search/people",type:"search",selected:C?.includes("/search"),label:"Search",onClick:B}),(0,t.jsx)(u.NavItem,{href:"/business",type:"business-accounts",selected:C?.includes("/business"),label:"For business",onClick:B})]}),(0,t.jsx)(s.Box,{as:"hr",css:{border:"none",borderTop:"2px solid white",width:"24px",margin:"12px 16px"}}),(0,t.jsxs)(o.Flex,{direction:"column",children:[(0,t.jsx)(x.Link,{css:{...e,...h,...y,fontWeight:C.includes("about")?600:500},href:"/about",onClick:B,children:"About"}),(0,t.jsx)(x.Link,{css:{...e,...h,...y,fontWeight:C.includes("support")?600:500},href:"/support",onClick:B,children:"Support"}),(0,t.jsx)(x.Link,{css:{...e,...h,...y,fontWeight:C.includes("legal")?600:500},href:"/legal",onClick:B,children:"Legal"})]})]})}),(0,t.jsx)(a.Drawer.Footer,{padding:"24px 12px",children:(0,t.jsxs)(o.Flex,{direction:"column",align:"center",w:"100%",children:[(0,t.jsx)(s.Box,{css:{...e,...g,...j,marginBottom:"10px"},children:(0,t.jsx)(x.Link,{css:{fontWeight:C.includes("join")?600:500},href:M,onClick:B,children:"Join"})}),(0,t.jsx)(s.Box,{css:{...e,...h,...y,...j,cursor:"pointer"},fontWeight:C.includes("home")?600:500,onClick:()=>D.push(M),children:"Sign in"})]})})]})})})]})]})};e.s(["Navigation",0,()=>{let{isLoggedIn:e}=(0,v.useAuthRedux)();return e?(0,t.jsx)(ej,{}):(0,t.jsx)(ek,{})}],571178)}]);

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.