1import{r as w,af as e,ar as at,b9 as rt,eN as ot,aJ as ct,ao as lt,eo as dt,an as ut,by as De,bR as pt,aF as k}from"./vendor-BgWhiDrf.js";import{Gm as ht,ba as $,W_ as R,T as O,C as y,i as Q,k as gt,qI as mt,p as B,aq as xt,M5 as ft,Wq as yt,R as _,aJ as He,B as c,LF as bt,e as M,f as D,Dd as jt,Dc as St,ay as X,dL as q,aw as P,cr as K,S as Oe,b as Pe,$H as wt,Lh as vt,Nx as T,gk as J,b9 as Fe,an as Ne,re as _t,l as It,e6 as Ct,n as At,o as N,dh as Z,fa as kt,ao as Et,$I as $e,Nw as We,b7 as Rt,$J as Tt,mw as Be,$K as Lt,Ds as ze,Ws as Mt,jx as Dt,u4 as Ht,uh as Ot,EG as Pt,$L as Ft,$M as Nt,fI as z,Wr as G,yj as $t,VA as Wt,gS as Bt,bF as Ge,Cy as zt,gb as Gt,gd as Ut,$N as Y,pH as Vt,lv as Qt,UR as Yt,fG as Xt,fF as qt,cM as Kt,UT as Jt,UU as Zt}from"./main-COyT_q74.js";import{C as ei}from"./compact-chat-input-BQqw8Rcb.js";import{u as ti}from"./use-flagged-attachment-sources-BB8fAf1Z.js";import{a as ii,u as si,P as ni}from"./use-personalized-suggestions-BYrzBGOR.js";import{e as ai,b as ri,c as _e,d as oi,A as H,D as ci}from"./drafts-B4rtDe4o.js";import{t as E,E as ee,C as te,r as li,R as di,a as ui,b as pi}from"./report-card-data-BqMr73PP.js";import{u as hi,h as gi}from"./use-unread-sessions-BqatrY6D.js";import{b as mi}from"./constants-C-OP4DRJ.js";import{A as xi}from"./ad-asset-D4xGvssv.js";import{V as fi}from"./video-asset-thumbnail-CWHrFjQn.js";import{u as Ue}from"./useMeasure-DnTX5dxz.js";import{L as yi}from"./types-DZTri7xD.js";import{L as bi}from"./email-preview-CR2c13sq.js";import{A as ji}from"./artifact-preview-T4dkoA5-.js";import{c as Si}from"./empty-campaign-BG7NMlbY.js";import{a as wi}from"./types-DtNVB50B.js";import{u as vi}from"./use-horizontal-scroll-fade-DFOBGM74.js";import"./bounded-range-fetch-CggGfMWc.js";import"./vendor-charts-34qQJjVh.js";import"./file-preview-card-C3-_BQe_.js";import"./file-processing-Dns_2-Sg.js";import"./index-Btjarcwp.js";import"./full-screen-image-overlay-0evLLRZS.js";import"./resolve-agent-file-url-DEO2I-Or.js";import"./composer-files-pVKCUvHa.js";import"./index-Bue32lP_.js";import"./file-context-BTJLPHpm.js";import"./put-with-progress-vXxDjqN4.js";import"./chat-newline-shortcut-mSCZUa0-.js";import"./dictation-control-C6FG39kX.js";import"./use-composer-attachments-f9bq9kp9.js";import"./disclaimer-b4BYntce.js";import"./use-ads-asset-picker-C1GrqFJf.js";import"./use-asset-collections-CxAc5zFf.js";import"./asset-picker-primitives-CdCnlOTD.js";import"./selectable-asset-card-BmwBJp1Q.js";import"./use-catalog-directories-D6KHxFyG.js";import"./asset-search-pane-BZqHw1mQ.js";import"./ad-studio-image-DBd4buyl.js";import"./catalog-item-details-DfDouIwd.js";import"./dangerous-markdown-with-html-CV8XUDsJ.js";import"./use-save-artifact-image-lqGJIF3-.js";import"./types-Da6rT5cF.js";import"./copy-button-KHJl_0h7.js";import"./drawer-DPeWOPDQ.js";import"./schemas-BHAHV-eX.js";import"./analytics-graph-CuQsKQys.js";import"./search-CVbYxP5X.js";import"./chart-data-context-B72C377q.js";import"./use-metric-selector-options-BRjIVbfE.js";import"./use-chart-configure-permission-CbO4EWYP.js";import"./common-BMBGo5KW.js";import"./use-measurement-columns-BKwbgwv8.js";import"./use-analytics-context-lB2QZ1Sm.js";import"./analytics-bar-Bls4GEh5.js";import"./utils-BZ3eeCCN.js";import"./goals-D8-c9H1L.js";import"./chart-error-state-D1YYCwz-.js";import"./dayzed.esm-CtMwBOH_.js";import"./funnel-graph-DscUhe8y.js";import"./ad-performance-table-CQcxeyUh.js";import"./registry-BgOp586E.js";import"./ad-card-grid-DP8hDXEG.js";import"./result-Bxtnqu2a.js";import"./ad-drilldown-BuK_UHOV.js";import"./ad-studio-brand-profile-Bvyl-BmM.js";import"./types-rpqFplxC.js";import"./utils-DayAWwNa.js";import"./editor-image-urls-BW3aaiF-.js";import"./safe-url-Bc30-bIA.js";import"./index-Bnq9dYnI.js";import"./decode-BrJoIbzt.js";import"./utils-BxoyCJ4s.js";import"./use-catalog-BL5Ofo7S.js";import"./use-parent-model-4xs5t-Ux.js";import"./use-preview-parent-model-permission-CMXdUvkM.js";import"./use-agent-settings-3J8jtQEs.js";import"./suggestion-batch-schema-DZtZY6-j.js";import"./channel-utils-Dsz2y-BL.js";import"./resolve-ad-refs-C05GQ7KL.js";import"./font-family-y7QYCNW6.js";import"./ad-css-isolation-CTripsOe.js";import"./prepare-ad-content-for-display-CQoxhFtz.js";import"./index-DqWpHl1y.js";import"./index-BJrxf_SB.js";import"./Parser-CysbsiCG.js";import"./messages-Drqqmwq7.js";import"./html-overlay-D-bo6rZd.js";import"./use-font-injection-CjiHDmNS.js";import"./use-iframe-document-ready-CD4exxG0.js";
1import"./utils-Ckb1BVCi.js";import"./types-B_XUM7PL.js";import"./channel-icons-lpWB3WiP.js";import"./use-lcm-artifact-content-Bxh_e8Nu.js";const _i="/assets/agentic-homepage-modal-DsvT2VBC.mp4",Ii="/assets/agentic-homepage-modal-IYIz-1q8.webm",Ci=()=>{const{value:t,setLocal:i}=ht({key:"home.agentic-homepage-announcement-dismissed",initialValue:!1,useWorkspace:!1});return{setIsDismissed:i,shouldShow:!t}},Ai=()=>{const{shouldShow:t,setIsDismissed:i}=Ci(),s=()=>{i(!0),$("Agentic Homepage Announcement Dismissed")},n=()=>{i(!0),$("Agentic Homepage Announcement CTA Clicked")};return w.useEffect(()=>{t&&$("Agentic Homepage Announcement Shown")},[t]),t?e.jsxs(R,{media:{type:"video",webm:Ii,mp4:_i,loop:!1},mediaAspectRatio:2048/688,onClose:s,children:[e.jsxs(R.Body,{children:[e.jsx(R.Heading,{children:"Meet your new homepage"}),e.jsx(O,{color:"text.secondary",children:"We've redesigned the Hightouch homepage to make it easier to find what matters, stay on top of your work, and jump back into what you're doing."}),e.jsxs(y,{as:"ul",gap:2,ml:2,children:[e.jsx(R.ListItem,{children:"Kick off agent chats with workspace-tailored suggestions."}),e.jsx(R.ListItem,{children:"See the reports that matter most to you at a glance."}),e.jsx(R.ListItem,{children:"Pick up where you left off with your recent work and workspace activity."})]}),e.jsx(O,{color:"text.secondary",children:"Everything you need, right where you start."})]}),e.jsxs(R.Actions,{children:[e.jsx(Q,{onClick:s,children:"Close"}),e.jsxs(Q,{variant:"primary",onClick:n,children:["Take a look",e.jsx(gt,{ml:1})]})]})]}):null},ki=(t={})=>{const{startSession:i,isStartingSession:s}=ii({creationSource:mt.Home,toastIdPrefix:"home-llm",...t});return{startSession:(a,r=[])=>i({userPrompt:a,files:r}),isStartingSession:s}},Ve=216,Ie=16,ie="rgba(0,0,0,0.04)",se={fontFamily:'"DM Mono", "SFMono-Regular", Menlo, monospace',fontSize:"14px",lineHeight:"20px",fontWeight:500,color:"text.disabled",fontFeatureSettings:'"ss02" 1, "ss04" 1, "ss05" 1'},Ei=16,Qe=92,Ye={backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",maskImage:"linear-gradient(180deg, black 30%, rgba(0,0,0,0.9) 55%, transparent 100%)",WebkitMaskImage:"linear-gradient(180deg, black 30%, rgba(0,0,0,0.9) 55%, transparent 100%)"},Ri=500,Ti=30,Xe=w.createContext(null),Li=({children:t})=>{const{user:i}=B(),{refetchInterval:s}=xt({baseMs:5e3,compareKey:x=>x==null?void 0:x.llm_chat_sessions.map(m=>{var f,j;return`${m.id}:${m.name??""}:${((j=(f=m.in_progress_interaction)==null?void 0:f.aggregate)==null?void 0:j.count)??0}:${m.updated_at}`})}),{data:n,isLoading:a}=ft({filter:mi({userId:i==null?void 0:i.id})},{enabled:!!(i!=null&&i.id),refetchInterval:s}),r=w.useMemo(()=>[...(n==null?void 0:n.llm_chat_sessions)??[]].sort((x,m)=>new Date(Ce(m)).getTime()-new Date(Ce(x)).getTime()),[n]),o=hi(r),[l]=w.useState(()=>at(new Date,Ti).toISOString()),{data:p,isLoading:g}=yt({since:l,limit:Ri},{refetchOnMount:"always",select:ai}),d=w.useMemo(()=>({sessions:r,sessionsLoading:a,unreadSessionIds:o,activityItems:p??[],activityLoading:g}),[r,a,o,p,g]);return e.jsx(Xe.Provider,{value:d,children:t})};function qe(){const t=w.useContext(Xe);if(!t)throw new Error("useHomeFeeds must be used within a HomeFeedsProvider");return t}const Ce=t=>{var i,s,n;return[t.updated_at,(n=(s=(i=t.last_user_message)==null?void 0:i.aggregate)==null?void 0:s.max)==null?void 0:n.created_at].filter(a=>!!a).reduce((a,r)=>r>a?r:a,t.created_at)},ne=({to:t,onClick:i,children:s})=>e.jsxs(_,{as:He,to:t,onClick:i,align:"center",gap:3,p:2,borderRadius:"2xl",className:"group",transitionProperty:"background-color",transitionDuration:"fast",transitionTimingFunction:"easeOutQuad",sx:{"@media (hover: hover)":{_hover:{bg:ie}}},children:[s,e.jsx(c,{as:bt,boxSize:4,color:"text.secondary",flexShrink:0,opacity:0,transitionProperty:"opacity",transitionDuration:"fast",transitionTimingFunction:"easeOutQuad",sx:{"@media (hover: hover)":{".group:hover &":{opacity:1}}}})]}),Mi=5,Di=3,Hi={[H.Audience]:P,[H.Model]:q,[H.Sync]:X,[H.Source]:St,[H.Destination]:jt},Ke=({compact:t=!1})=>{const{activityItems:i,activityLoading:s}=qe(),n=i.slice(0,t?Di:Mi);return!s&&n.length===0?null:e.jsxs(y,{gap:4,width:"100%",children:[e.jsx(c,{as:"span",sx:se,children:"Activity"}),e.jsx(y,{gap:1,width:"100%",children:s?Array.from({length:t?2:3}).map((a,r)=>
1e.jsx(M,{isLoading:!0,children:e.jsx(D,{height:"72px",borderRadius:"xl"})},r)):n.map((a,r)=>e.jsx(Oi,{item:a,isLast:r===n.length-1},a.id))})]})},Oi=({item:t,isLast:i})=>{const s=Hi[t.resource]??P,n=ri(t.resource,t.resource_id);return e.jsxs(ne,{to:n,onClick:()=>E({section:"activity",label:_e(t),href:n}),children:[e.jsxs(y,{align:"center",px:1.5,flexShrink:0,alignSelf:"stretch",children:[e.jsx(c,{as:s,boxSize:5,color:"gray.500",flexShrink:0}),!i&&e.jsx(c,{flex:1,mt:2,width:"1px",bg:"gray.400"})]}),e.jsxs(y,{gap:.5,minWidth:0,flex:1,children:[e.jsx(K,{fontWeight:"medium",color:"text.primary",children:_e(t)}),e.jsx(c,{as:"span",fontSize:"12px",lineHeight:"16px",fontWeight:"normal",color:"text.tertiary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",children:oi(t)}),e.jsx(c,{as:"span",fontSize:"12px",lineHeight:"16px",fontWeight:"normal",color:"text.tertiary",children:Pi(t.created_at)})]})]})};function Pi(t){const i=rt(t),s=ot(new Date,i);return s<=0?ct(i,"h:mma").toLowerCase():`${s}d ago`}const Fi=3,Ni=2,Je=({compact:t=!1})=>{const{sessions:i,sessionsLoading:s,unreadSessionIds:n}=qe(),a=i.slice(0,t?Ni:Fi);return!s&&i.length===0?null:e.jsxs(y,{gap:4,width:"100%",children:[e.jsx(c,{as:"span",sx:se,children:"Chat sessions"}),e.jsx(y,{gap:2,width:"100%",children:s?Array.from({length:t?2:3}).map((r,o)=>e.jsx(M,{isLoading:!0,children:e.jsx(D,{height:12,borderRadius:"2xl"})},o)):a.map((r,o)=>{const l=gi(r),p=n.has(r.id),g=o===0&&p&&!l,d=`/agents/chats/${r.id}`;return e.jsxs(ne,{to:d,onClick:()=>E({section:"chat_session",label:r.name,href:d}),children:[e.jsx(y,{align:"center",justify:"center",boxSize:8,flexShrink:0,children:l?e.jsx(Oe,{size:"xs"}):e.jsx(c,{boxSize:2,borderRadius:"full",bg:p?"primary.base":"gray.400"})}),e.jsx(_,{flex:1,minWidth:0,children:e.jsx(K,{color:g?"text.primary":"text.secondary",children:r.name??"New chat"})})]},r.id)})})]})},$i="/assets/report-empty-illustration-bztMorw8.png",Ae="View all reports",Wi=t=>t>=100?"99+":String(t),Bi=t=>t.report_schedule.length,zi=()=>{const t=Pe(),{data:i,isLoading:s}=wt(void 0,{select:ui}),{data:n}=vt(void 0,{select:Bi});if(s)return e.jsx(M,{isLoading:!0,children:e.jsx(D,{height:"196px",borderRadius:T})});if(!i)return e.jsx(ee,{title:"Generate a new report",body:e.jsxs(e.Fragment,{children:["Get updated on weekly campaign performance, dive deep into your data to surface new insights, or start each morning with marketing opportunities uncovered just for you.",e.jsx("br",{}),e.jsx("br",{}),"Ready to see it in action?"]}),ctaLabel:"Build with agent",ctaHref:"/agents/reports/new",ctaIcon:J,ctaSection:"create_report_empty_cta",illustrationSrc:$i,corner:e.jsx(te,{src:li})});const a=`/agents/reports/${i.reportId}/runs/${i.runId}`,r=()=>{E({section:"report_card",label:i.reportName,href:a}),t(a)};return e.jsx(di,{card:i,role:"link",tabIndex:0,cursor:"pointer",onClick:r,onKeyDown:o=>{o.currentTarget===o.target&&o.key==="Enter"&&(o.preventDefault(),r())},headerActions:e.jsx(c,{onClick:o=>o.stopPropagation(),sx:{"& a":{borderRadius:"full"}},children:e.jsx(Fe,{href:"/agents/reports",onClick:()=>E({section:"all_reports",label:Ae,href:"/agents/reports"}),children:e.jsxs(_,{gap:2,align:"center",children:[e.jsx(O,{children:Ae}),typeof n=="number"&&e.jsx(Ne,{size:"sm",variant:"info",children:Wi(n)})]})})})})},Ze=()=>{const{workspace:t}=B(),i=Pe(),s=(n,a)=>{E({section:"quick_action",label:n,href:a}),i(a)};return e.jsxs(_,{gap:2,align:"center",flexWrap:"wrap",children:[(t==null?void 0:t.approvals_required)&&e.jsx(ci,{renderTrigger:({count:n,onOpen:a})=>n>0?e.jsxs(Q,{icon:_t,shape:"circle",size:"lg",onClick:()=>{E({section:"drafts",label:"Drafts"}),a()},children:["Drafts",e.jsx(Ne,{size:"sm",variant:"info",ml:1,children:n})]}):null}),e.jsxs(It,{children:[e.jsx(Ct,{variant:"primary",shape:"circle",size:"lg",children:"Create a newâ¦"}),e.jsxs(At,{children:[e.jsx(N,{icon:P,onClick:()=>s("Audience","/audiences/new"),children:"Audience"}),e.jsx(N,{icon:Z,onClick:()=>s("Journey","/journeys/new"),children:"Journey"}),e.jsx(N,{icon:q,onClick:()=>s("Model","/models/new"),children:"Model"}),e.jsx(N,{icon:X,onClick:()=>s("Sync","/syncs/new"),children:"Sync"}),e.jsx(kt,{permission:{v2:{resource:"workspace",grant:"can_view_agents"}},icon:J,onClick:()=>s("Agent chat","/agents/chats"),children:"Agent chat"})]})]})]})},Gi="data:image/svg+xml,%3csvg%20width='46'%20height='30'%20viewBox='0%200%2046%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.5%2016%20A14.5%2014.5%200%200%201%2037.5%2016%20Z'%20fill='%23C7C2C3'/%3e%3crect%20x='0.5'%20y='19.5'%20width='45'%20height='1.6'%20rx='0.8'%20fill='%23C7C2C3'/%3e%3crect%20x='0.5'%20y='23'%20width='22'%20height='1.6'%20rx='0.8'%20fill='%23C7C2C3'/%3e%3crect%20x='25'%2
10y='23'%20width='11'%20height='1.6'%20rx='0.8'%20fill='%23C7C2C3'/%3e%3crect%20x='0.5'%20y='26.5'%20width='19'%20height='1.6'%20rx='0.8'%20fill='%23C7C2C3'/%3e%3crect%20x='22'%20y='26.5'%20width='20'%20height='1.6'%20rx='0.8'%20fill='%23C7C2C3'/%3e%3c/svg%3e",Ui="/assets/ads-empty-corner-D2hnAxPO.png",Vi="/assets/ads-empty-illustration-BPd5t2R5.png",F=4,W="8px",L=t=>`${t+F*2}px`,et=({to:t,tooltipLabel:i,width:s,height:n=s,onClick:a,children:r})=>e.jsx(Et,{message:i,placement:"top",children:e.jsx(c,{as:He,"data-group":!0,to:t,onClick:a,"aria-label":i,display:"block",position:"relative",width:L(s),height:L(n),flexShrink:0,borderRadius:W,_focusVisible:{outline:"none",boxShadow:"outline"},children:e.jsx(c,{position:"relative",width:"100%",height:"100%",border:`${F}px solid white`,borderRadius:W,boxShadow:We,overflow:"hidden",bg:"gray.100",transitionProperty:"transform",transitionDuration:"fast",transitionTimingFunction:"easeOutQuad",_groupHover:{transform:"translateY(-2px)",boxShadow:$e},children:r})})}),Qi=({width:t,height:i=t,illustrationSrc:s,illustrationWidth:n})=>e.jsx(c,{flexShrink:0,width:L(t),height:L(i),display:"flex",alignItems:"center",justifyContent:"center",bg:"gray.100",border:`${F}px solid white`,borderRadius:W,boxShadow:We,children:e.jsx(Rt,{src:s,alt:"",width:n})}),Yi=({width:t,height:i=t})=>e.jsx(M,{isLoading:!0,children:e.jsx(D,{width:L(t),height:L(i),borderRadius:W})}),U=8,Xi=2,qi=40,Ki=t=>t+F*2;function Ji({rowWidth:t,baseWidth:i,baseHeight:s,maxTiles:n}){if(t<=0)return{count:n,dimensions:{width:i,height:s}};const a=Ki(i)+U,r=Math.floor((t+U)/a),o=Math.max(Xi,Math.min(n,r)),l=Math.max(qi,Math.floor((t-U*(o-1))/o-F*2)),p=Math.round(l*s/i);return{count:o,dimensions:{width:l,height:p}}}const tt=({title:t,ctaLabel:i,ctaHref:s,ctaSection:n,isLoading:a,items:r,maxTiles:o,tileWidth:l,tileHeight:p=l,emptyIllustrationSrc:g,emptyIllustrationWidth:d,renderTile:x})=>{const[m,{width:f}]=Ue(),{count:j,dimensions:v}
1=Ji({rowWidth:f,baseWidth:l,baseHeight:p,maxTiles:o}),I=r.slice(0,j),S=Math.max(0,j-I.length);return e.jsxs(pi,{gap:4,children:[e.jsxs(_,{align:"center",justify:"space-between",gap:2,width:"100%",children:[e.jsx(O,{as:"h2",size:"lg",fontWeight:"medium",color:"text.secondary",children:t}),e.jsx(c,{flexShrink:0,sx:{"& a":{borderRadius:"full"}},children:e.jsx(Fe,{href:s,onClick:()=>E({section:n,label:i,href:s}),children:i})})]}),e.jsx(_,{ref:m,gap:2,align:"center",width:"100%",flexWrap:"nowrap",children:a?Array.from({length:j}).map((C,u)=>e.jsx(Yi,{width:v.width,height:v.height},u)):e.jsxs(e.Fragment,{children:[I.map(C=>x(C,v)),Array.from({length:S}).map((C,u)=>e.jsx(Qi,{width:v.width,height:v.height,illustrationSrc:g,illustrationWidth:d},`empty-${u}`))]})})]})},ke=7,Zi=200,es=t=>t.ad_studio_projects;function ts(t){return t.ad_briefs.flatMap(i=>i.ad_brief_assets).find(i=>!!i.asset_url||!!i.video_composition||!!i.svg)}const is=()=>{const{data:t,isLoading:i}=Tt({limit:ke,offset:0},{select:es}),s=(t??[]).map(n=>({project:n,asset:ts(n)})).filter(n=>!!n.asset);return!i&&s.length===0?e.jsx(ee,{title:"Dream it, tweak it, launch it",body:e.jsxs(e.Fragment,{children:["Built on your brand foundation and integrated with your creative systems, Ad Studio transforms the ad creation process so you can stop dreaming it and start launching it instead.",e.jsx("br",{}),e.jsx("br",{}),"Give it a spin and see what you can dream up."]}),ctaLabel:"Create an ad",ctaHref:"/ad-studio/projects",ctaIcon:Be,ctaSection:"create_ad_empty_cta",illustrationSrc:Vi,corner:e.jsx(te,{src:Ui})}):e.jsx(tt,{title:"Recent ads",ctaLabel:"Create an ad",ctaHref:"/ad-studio/projects",ctaSection:"create_ad_filled_cta",isLoading:i,items:s,maxTiles:ke,tileWidth:Qe,emptyIllustrationSrc:Gi,emptyIllustrationWidth:"46px",renderTile:({project:n,asset:a},r)=>e.jsx(et,{to:`/ad-studio/projects/${n.id}`,tooltipLabel:n.name,width:r.width,height:r.height,onClick:()=>E({section:"recent_ad",label:n.name,href:`/ad-studio/projects/${n.id}`}),children:a.asset_type==="video"?e.jsx(fi,{asset:a,iconSize:"xl"}):e.jsx(xi,{src:a.asset_url,svg:a.svg,componentAssets:a.component_assets,alt:"Ad thumbnail",width:"100%",height:"100%",objectFit:"cover",naturalWidth:Zi,showSkeleton:!0,skeletonHeight:"100%",loading:"lazy",disableVideoControls:!0})},n.id)})},ss="/assets/campaigns-empty-corner-DvFbikFh.png",ns="/assets/campaigns-empty-illustration-Cj8efiN8.png",Ee=7,as=104,it="/lifecycle-studio/projects",rs=t=>t.marketing_campaigns;function os(t){const i=(t.message_plans??[]).flatMap(s=>s.candidates)[0];return i?{campaign:t,message:i,to:`${it}/${t.id}`}:null}const cs=()=>{const t=`${it}/new`,{data:i,isLoading:s}=Lt({limit:Ee,offset:0},{select:rs}),n=(i??[]).map(os).filter(a=>a!==null);return!s&&n.length===0?e.jsx(ee,{title:"From idea to personalized campaign in minutes",body:e.jsxs(e.Fragment,{children:["Leverage your existing assets, business context and customer data to create cross-channel lifecycle campaigns in a fraction of the time with a little help from Lifecycle Studio.",e.jsx("br",{}),e.jsx("br",{}),"What will you send next?"]}),ctaLabel:"Create a campaign",ctaHref:t,ctaIcon:ze,ctaSection:"create_campaign_empty_cta",illustrationSrc:ns,corner:e.jsx(te,{src:ss})}):e.jsx(tt,{title:"Recent campaigns",ctaLabel:"Create a campaign",ctaHref:t,ctaSection:"create_campaign_filled_cta",isLoading:s,items:n,maxTiles:Ee,tileWidth:Qe,tileHeight:as,emptyIllustrationSrc:Si,emptyIllustrationWidth:"48px",renderTile:({campaign:a,message:r,to:o},l)=>{var p,g,d;return e.jsx(et,{to:o,tooltipLabel:a.name,width:l.width,height:l.height,onClick:()=>E({section:"recent_campaign",label:a.name,href:o}),children:r.channel!==yi.Email?e.jsx(ji,{artifact:r.content_artifact,channel:r.channel,width:l.width,height:l.height}):e.jsx(bi,{html:(d=(g=(p=r.content_email)==null?void 0:p.content_email_version)==null?void 0:g.resolved_html)==null?void 0:d.html,width:l.width,height:l.height})},a.id)}})},ls=wi.Project,A=(t,i)=>t.filter(s=>s.resource===i).map(s=>s.id),ds=t=>t.saved_analytics_charts,us=t=>t.dashboards,ps=t=>t.experiments,hs=t=>t.marketing_campaigns,gs=t=>t.ad_studio_projects,ms=t=>t.report_schedule,xs=t=>
1{const i=A(t,"audiences"),s=A(t,"journeys"),n=A(t,"syncs"),a=A(t,"models"),r=A(t,"charts"),o=A(t,"dashboards"),l=A(t,"experiments"),p=A(t,"campaigns"),g=A(t,"ad-studio-projects"),d=A(t,"reports"),x=Mt({audienceIds:i,journeyIds:s,syncIds:n,modelIds:a},{enabled:i.length+s.length+n.length+a.length>0}),m=Dt({filters:{id:{_in:r}},limit:r.length||1},{enabled:r.length>0,select:ds}),f=Ht({filters:{id:{_in:o}},limit:o.length||1},{enabled:o.length>0,select:us}),j=Ot({filters:{id:{_in:l}}},{enabled:l.length>0,select:ps}),v=Pt({type:ls,limit:p.length||1,offset:0,searchFilter:{id:{_in:p}}},{enabled:p.length>0,select:hs}),I=Ft({projectIds:g},{enabled:g.length>0,select:gs}),S=Nt({reportIds:d},{enabled:d.length>0,select:ms}),C=[x,m,f,j,v,I,S].some(h=>h.isLoading);return{resolveName:h=>{var ae,re,oe,ce,le,de,ue,pe,he,ge,me,xe,fe,ye,be,je,Se,we,ve;switch(h.resource){case"audiences":return((re=(ae=x.data)==null?void 0:ae.audiences.find(b=>String(b.id)===h.id))==null?void 0:re.name)??null;case"journeys":return((ce=(oe=x.data)==null?void 0:oe.journeys.find(b=>String(b.id)===h.id))==null?void 0:ce.name)??null;case"models":return((de=(le=x.data)==null?void 0:le.models.find(b=>String(b.id)===h.id))==null?void 0:de.name)??null;case"syncs":return fs((ue=x.data)==null?void 0:ue.syncs,h.id);case"charts":return((he=(pe=m.data)==null?void 0:pe.find(b=>String(b.id)===h.id))==null?void 0:he.name)??null;case"dashboards":return((me=(ge=f.data)==null?void 0:ge.find(b=>String(b.id)===h.id))==null?void 0:me.name)??null;case"experiments":return((fe=(xe=j.data)==null?void 0:xe.find(b=>String(b.id)===h.id))==null?void 0:fe.name)??null;case"campaigns":return((be=(ye=v.data)==null?void 0:ye.find(b=>String(b.id)===h.id))==null?void 0:be.name)??null;case"ad-studio-projects":return((Se=(je=I.data)==null?void 0:je.find(b=>String(b.id)===h.id))==null?void 0:Se.name)??null;case"reports":return((ve=(we=S.data)==null?void 0:we.find(b=>String(b.id)===h.id))==null?void 0:ve.name)??null}},isLoading:C}},fs=(t,i)=>{var r,o,l,p;const s=t==null?void 0:t.find(g=>String(g.id)===i);if(!s)return null;const n=(r=s.segment)==null?void 0:r.name,a=((o=s.destination)==null?void 0:o.name)??((p=(l=s.destination)==null?void 0:l.definition)==null?void 0:p.name);return n&&a?`${n} â ${a}`:n??a??null},st=4,ys=3,bs=t=>{switch(t.resource){case"audiences":case"syncs":case"models":return/^\d+$/.test(t.id);case"journeys":case"charts":case"dashboards":case"experiments":case"campaigns":case"ad-studio-projects":case"reports":return dt(t.id)}},js=(t,i)=>(i.viewedAt??"").localeCompare(t.viewedAt??""),Ss=(...t)=>lt.uniqBy(t.flatMap(i=>i??[]),i=>`${i.resource}-${i.id}`).filter(bs).sort(js).slice(0,st),ws={audiences:P,journeys:Z,syncs:X,models:q,charts:zt,dashboards:Ge,experiments:Bt,campaigns:Wt,"ad-studio-projects":$t,reports:J},vs=t=>{switch(t.resource){case"audiences":return`/audiences/${t.id}`;case"journeys":return`/journeys/${t.id}`;case"syncs":return`/syncs/${t.id}`;case"models":return`/models/${t.id}`;case"charts":return`/analytics/${t.id}`;case"dashboards":return`/dashboards/${t.id}`;case"experiments":return`/experiments/${t.id}`;case"campaigns":return`/lifecycle-studio/projects/${t.id}`;case"ad-studio-projects":return`/ad-studio/projects/${t.id}`;case"reports":return`/agents/reports/${t.id}/runs`}},nt=({compact:t=!1})=>{const{workspace:i}=B(),s=z(G(i==null?void 0:i.id,"marketing"),[]),n=z(G(i==null?void 0:i.id,"activation"),[]),a=z(G(i==null?void 0:i.id,"studio"),[]),r=Ss(s.value,n.value,a.value),{resolveName:o,isLoading:l}=xs(r);if(r.length===0)return null;const p=t?ys:st,g=r.map(d=>({meta:d,name:o(d)})).filter(d=>d.name!==null).slice(0,p);return!l&&g.length===0?null:e.jsxs(y,{gap:4,width:"100%",children:[e.jsx(c,{as:"span",sx:se,children:"Recently viewed"}),e.jsx(y,{gap:1,width:"100%",children:l?r.slice(0,p).map(d=>e.jsx(M,{isLoading:!0,children:e.jsx(D,{height:"48px",borderRadius:"xl"})},`${d.resource}-${d.id}`)):g.map(({meta:d,name:x})=>{const m=ws[d.resource],f=vs(d);return e.jsxs(ne,{to:f,onClick:()=>E({section:"recently_viewed",label:x,href:f}),children:[e.jsx(y,{align:"center",justify:"center",boxSize:"32px",flexShrink:0,bg:"white",borderRadius:"lg",boxShadow:"xs",children:e.jsx(c,{as:m,boxSize:4,color:"text.secondary"})}),e.jsx(_,{flex:1,minWidth:0,children:e.jsx(K,{color:"text.secondary",children:x})})]},`${d.resource}-${d.id}`)})})]})},_s=()=>e.jsxs(y,{gap:8,width:80,flexShrink:0,height:"100%",children:[e.jsxs(_,{position:"sticky",top:6,zIndex:1,align:"center",height:Ei,children:[e.jsx(c,{"aria-hidden":!0,position:"absolute",top:-6,bottom:"-52px",left:-6,right:-6,pointerEvents:"none",sx:Ye}),e.jsx(c,{position:"relative",children:e.jsx(Ze,{})})]}),e.jsx(Je,{}),e.jsx(nt,{}),e.jsx(Ke,{})]}),Is=[{id:"all",label:"All"},{id:"customer",label:"Customer analysis"},{id:"lifecycle",label:"Lifecycle"},{id:"ads",label:"Ads"}],Cs={customer:[{id:"customer-attribution-audit",title:"Check if paid-only attribution is under-counting channels",prompt:"Audit your attribution against multi-touch paths to see which channels are being under-credited, and recommend a reallocation that reflects assisted conversions.",icon:"insights",category:"customer"},{id:"customer-dormant-high-value",title:"Re-engage high-value customers going dormant",prompt:"Identify customers in your top spend decile whose purchase frequency dropped by more than 50% in the last 60 days, and build a win-back audience before they churn.",icon:"audience",category:"customer"},{id:"customer-lookalike-seed",title:"Build a stronger lookalike seed from repeat purchasers",prompt:"Create a seed audience of customers with 3+ purchases and above-average order value in the last 90 days to improve lookalike match quality across ad platforms.",icon:"audience",category:"customer"},{id:"customer-segment-overlap",title:"Find overlap between loyalty members and cart abandoners",prompt:"Compare your loyalty program members against recent cart abandoners to surface a high-intent segment that may convert with a small incentive instead of a deep discount.",icon:"audience",category:"customer"}],lifecycle:[{id:"lifecycle-onboarding-dropoff",title:"Patch the drop-off in your onboarding journey",prompt:"Users who skip the second onboarding email convert 40% less. Add a branch for non-openers that switches to an in-app message and a shorter follow-up sequence.",icon:"lifecycle",category:"lifecycle"},{id:"lifecycle-winback-timing",title:"Tune win-back send timing by past engagement",prompt:"Split your win-back journey by historical open-time patterns so lapsed
1subscribers receive sends in the window they previously engaged with most.",icon:"lifecycle",category:"lifecycle"},{id:"lifecycle-post-purchase",title:"Add a post-purchase cross-sell touchpoint",prompt:"Customers who bought in the last 14 days have no follow-up scheduled. Add a cross-sell tile recommending complementary products based on their first order category.",icon:"journey",category:"lifecycle"},{id:"lifecycle-sunset-policy",title:"Sunset chronically unengaged subscribers",prompt:"12% of your email list hasn't opened a message in 6 months. Build a sunset journey with one final re-permission send before suppressing them to protect deliverability.",icon:"lifecycle",category:"lifecycle"}],ads:[{id:"ads-creative-fatigue",title:"Refresh creative on your highest-spend Meta campaign",prompt:"Frequency on your top prospecting campaign passed 4.2 this week and CTR is slipping. Generate three new creative variants from your best-performing ad's concept.",icon:"ads",category:"ads"},{id:"ads-suppression-sync",title:"Stop paying to reach customers who already converted",prompt:"Sync a suppression audience of last-30-day purchasers to Meta and Google to cut wasted retargeting spend and lower your effective CPA.",icon:"ads",category:"ads"},{id:"ads-budget-shift",title:"Shift budget toward your best-converting audience",prompt:"Your loyalty lookalike audience is converting at half the CPA of broad targeting. Review the split and move budget from underperforming ad sets.",icon:"ads",category:"ads"},{id:"ads-seasonal-launch",title:"Get a head start on your seasonal campaign",prompt:"Draft campaign concepts and audiences for the upcoming season using last year's top performers as a starting point, so creative review can start this week.",icon:"ads",category:"ads"}]},As="insights",ks={"Customer Analysis":"customer","Lifecycle Marketing":"lifecycle","Paid Media":"ads"},Es={ads:"ads",lifecycle:"lifecycle",audience:"audience",journey:"journey",insights:"insights",performance:"insights",debugger:"insights",find:"audience"};function Rs(t,i){const s={customer:[],lifecycle:[],ads:[]};return t.filter(n=>i||n.category!==ni).forEach(n=>{const a=ks[n.category];s[a].push(...n.cards.map((r,o)=>({id:`${n.category}-${o}`,title:r.headline,prompt:r.prompt,icon:r.icon?Es[r.icon]:As,category:a})))}),Object.keys(s).forEach(n=>{n==="ads"&&!i||s[n].length===0&&(s[n]=Cs[n])}),s}function Ts(t){const i=[],s=Math.max(0,...t.map(n=>n.length));for(let n=0;n<s;n++)for(const a of t){const r=a[n];r!==void 0&&i.push(r)}return i}function Ls(t){return{...t,all:Ts([t.customer,t.lifecycle,t.ads])}}function Ms(t){let i=t;return()=>{i=i+1831565813|0;let s=Math.imul(i^i>>>15,1|i);return s=s+Math.imul(s^s>>>7,61|s)^s,((s^s>>>14)>>>0)/4294967296}}function V(t,i){return t.map(s=>({item:s,key:i()})).sort((s,n)=>s.key-n.key).map(({item:s})=>s)}function Ds(t,i){return{customer:V(t.customer,i),lifecycle:V(t.lifecycle,i),ads:V(t.ads,i)}}function Hs(){const{personalizedSuggestions:t}=ut(),[i]=w.useState(()=>Math.floor(Math.random()*2147483647)),{categories:s,hasAdChannels:n,isLoading:a}=si({suspense:!1,enabled:!!t});return w.useMemo(()=>{const r=Ms(i);return{pools:Ls(Ds(Rs(s,n),r)),isLoading:a}},[s,n,a,i])}const Os=2,Re=3;function Ps(t){return t<=0||Math.max(1,Math.floor((t+Ie)/(Ve+Ie)))>=3?Re:Os}const Fs={insights:Ge,audience:P,journey:Z,lifecycle:ze,ads:Be},Te=["radial-gradient(120% 120% at 100% 100%, rgba(244,176,112,0.38) 0%, rgba(247,205,160,0.16) 46%, rgba(255,255,255,0) 76%), radial-gradient(70% 95% at 72% 130%, rgba(226,150,176,0.20) 0%, rgba(226,150,176,0) 58%)","radial-gradient(120% 120% at 100% 100%, rgba(150,196,120,0.38) 0%, rgba(198,221,172,0.16) 46%, rgba(255,255,255,0) 76%), radial-gradient(70% 95% at 110% 130%, rgba(120,185,200,0.20) 0%, rgba(120,185,200,0) 58%)","radial-gradient(120% 120% at 100% 100%, rgba(120,185,200,0.38) 0%, rgba(176,214,222,0.16) 46%, rgba(255,255,255,0) 76%), radial-gradient(70% 95% at 70% 130%, rgba(150,160,210,0.20) 0%, rgba(150,160,210,0) 58%)","radial-gradient(120% 120% at 100% 100%, rgba(240,202,96,0.38) 0%, rgba(248,224,158,0.16) 46%, rgba(255,255,255,0) 76%), radial-gradient(70% 95% at 72% 130%, rgba(236,186,112,0.20) 0%, rgba(236,186,112,0) 58%)","radial-gradient(120% 120% at 100% 100%, rgba(176,150,222,0.38) 0%, rgba(208,194,236,0.16) 46%, rgba(255,255,255,0) 76%), radial-gradient(70% 95% at 110% 130%, rgba(214,150,196,0.20) 0%, rgba(214,150,196,0
1) 58%)"],Ns=({label:t,isActive:i,isDisabled:s,onClick:n})=>e.jsx(c,{as:"button",type:"button","aria-pressed":i,disabled:s,onClick:n,flexShrink:0,height:"24px",px:2,borderRadius:"full",bg:i?"white":"transparent",borderWidth:"hairline",borderStyle:"solid",borderColor:i?"base.border":"transparent",cursor:s?"default":"pointer",fontSize:"12px",lineHeight:"16px",color:"text.primary",whiteSpace:"nowrap",transitionProperty:"background-color, border-color",transitionDuration:"fast",transitionTimingFunction:"easeOutQuad",sx:{"@media (hover: hover)":{_hover:{bg:i?"white":ie}}},children:t}),$s=({suggestion:t,wash:i,isAsking:s,onClick:n,onHoverChange:a})=>{const r=Fs[t.icon];return e.jsx(c,{as:"button",type:"button","data-group":!0,onClick:n,onMouseEnter:()=>a(t),onMouseLeave:()=>a(null),disabled:s,display:"flex",flexDirection:"column",textAlign:"left",width:"100%",minHeight:"120px",borderRadius:T,cursor:s?"default":"pointer",_focusVisible:{outline:"none",boxShadow:"outline"},children:e.jsxs(c,{position:"relative",flexGrow:1,display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",width:"100%",p:6,bg:"white",isolation:"isolate",borderRadius:T,boxShadow:"sm",transitionProperty:"transform",transitionDuration:"fast",transitionTimingFunction:"easeOutQuad",_after:{content:'""',position:"absolute",inset:0,borderRadius:T,boxShadow:$e,opacity:0,pointerEvents:"none",transitionProperty:"opacity",transitionDuration:"fast",transitionTimingFunction:"easeOutQuad"},_groupHover:s?void 0:{transform:"translateY(-2px)",_after:{opacity:1}},children:[e.jsx(c,{"aria-hidden":!0,position:"absolute",inset:0,borderRadius:T,pointerEvents:"none",background:i}),e.jsx(c,{as:O,size:"lg",fontWeight:"medium",color:"text.primary",position:"relative",display:"-webkit-box",width:"100%",overflow:"hidden",sx:{WebkitLineClamp:3,WebkitBoxOrient:"vertical"},children:t.title}),e.jsx(c,{as:r,"aria-hidden":!0,position:"absolute",bottom:"16px",right:"16px",boxSize:"24px",color:"gray.600",mixBlendMode:"color-burn"})]})})},Le=({pools:t,activeFilter:i,expanded:s,isLoading:n,baseVisibleCount:a})=>{const r=t[i],o=r.slice(0,a),l=s?r:o,p=!n&&r.length>o.length;return{visible:l,canExpand:p}},Ws=({onSelect:t,onHoverChange:i,disabled:s=!1})=>{const n=De(),[a,r]=w.useState("all"),[o,l]=w.useState(!1),{ref:p,sx:g}=vi(),[d,{width:x}]=Ue(),m=Ps(x),{pools:f,isLoading:j}=Hs(),v=Is.filter(u=>u.id!=="ads"||f.ads.length>0),{visible:I,canExpand:S}=w.useMemo(()=>Le({pools:f,activeFilter:a,expanded:o,isLoading:j,baseVisibleCount:m}),[f,a,o,j,m]),C=u=>{if(u===a)return;r(u);const{canExpand:h}=Le({pools:f,activeFilter:u,expanded:o,isLoading:j,baseVisibleCount:m});h||l(!1)};return e.jsxs(y,{gap:3,width:"100%",children:[e.jsxs(_,{gap:2,align:"center",justify:"space-between",px:5,width:"100%",children:[e.jsx(_,{ref:p,gap:2,align:"center",minWidth:0,flexWrap:"nowrap",overflowX:"auto",sx:{...g,scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"}},children:v.map(u=>e.jsx(Ns,{label:u.label,isActive:u.id===a,isDisabled:s,onClick:()=>C(u.id)},u.id))}),(S||o)&&e.jsxs(c,{as:"button",type:"button",onClick:()=>l(u=>!u),disabled:s,display:"flex",alignItems:"center",gap:1,height:"24px",px:2,borderRadius:"full",bg:"transparent",cursor:s?"default":"pointer",fontSize:"12px",lineHeight:"16px",color:"text.tertiary",flexShrink:0,transitionProperty:"background-color",transitionDuration:"fast",transitionTimingFunction:"easeOutQuad",sx:{"@media (hover: hover)":{_hover:{bg:ie}}},children:[o?"Show less":"Explore all ideas",e.jsx(c,{as:o?Gt:Ut,boxSize:4,color:"text.tertiary"})]})]}),e.jsx(c,{ref:d,display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${Ve}px, 1fr))`,gap:4,width:"100%",children:j?Array.from({length:m}).map((u,h)=>e.jsx(M,{isLoading:!0,children:e.jsx(D,{height:"120px",borderRadius:T})},h)):I.length>0&&e.jsx(pt,{mode:"popLayout",initial:!1,children:I.map((u,h)=>e.jsx(k.div,{layout:!0,initial:n?{opacity:0}:{opacity:0,y:8},animate:{opacity:1,y:0},exit:n?{opacity:0}:{opacity:0,y:-8},transition:{duration:.25,ease:Y},children:e.jsx($s,{suggestion:u,wash:Te[h%Te.length]??"",isAsking:s,onClick:()=>
1t(u),onHoverChange:i})},`${a}-${u.id}`))})})]})},Bs={early:{period:"early",background:"linear-gradient(180deg, #D2E0F1 0%,#fffadc 100%)",opacity:.3},midday:{period:"midday",background:"linear-gradient(180deg, #D2E0F1 0%, #fafafa 100%)",opacity:.3},dusk:{period:"dusk",background:"linear-gradient(0deg, #abb2ba 0%, #c8c1c5 38.4%, #d3cbca 55.5%, #d7d2d1 100%)",opacity:.3},night:{period:"night",background:"linear-gradient(180deg, #cabee3 0%, #c8c1c5 100%)",opacity:.3}};function zs(t){return t>=5&&t<11?"early":t>=11&&t<17?"midday":t>=17&&t<21?"dusk":"night"}function Gs(t=new Date){return Bs[zs(t.getHours())]}const Us="What do you want to do today?",Me={"@keyframes agentic-bg-fade-in":{from:{opacity:0}},animation:"agentic-bg-fade-in 300ms ease-out"},Vs=()=>{var C;const{user:t,workspace:i}=B(),s=Xt(),n=qt(),a=De(),r=ti(),[o,l]=w.useState(!1),[p,g]=w.useState(null),d=w.useRef(null),{startSession:x,isStartingSession:m}=ki({onCreateStart:()=>l(!0),onCreateError:()=>l(!1)}),f=(C=t==null?void 0:t.name)==null?void 0:C.split(" ")[0],j=f?`Welcome back, ${f}`:"Welcome back",v=async(u,h)=>{await x(u,h)},I=u=>{var h;(h=d.current)==null||h.applySuggestion(u.prompt),$("Home Suggestion Selected",{suggestion_id:u.id,suggestion_title:u.title,suggestion_prompt:u.prompt,suggestion_category:u.category})},S={hidden:a?{opacity:0}:{opacity:0,y:16},visible:{opacity:1,y:0,transition:{duration:.5,ease:Y}},exiting:a?{opacity:0,transition:{duration:.2}}:{opacity:0,y:-12,transition:{duration:.25,ease:Y}}};return e.jsx(k.div,{initial:"hidden",animate:o?"exiting":"visible",variants:{hidden:{},visible:{transition:{staggerChildren:.07}},exiting:{transition:{staggerChildren:.03}}},style:{width:"100%",position:"relative"},children:e.jsxs(Kt,{size:"page",px:6,pt:{base:16,lg:"80px"},pb:6,gap:8,children:[e.jsx(k.div,{variants:S,children:e.jsxs(y,{gap:2,px:6,children:[e.jsx(c,{as:"h1",...Jt,children:j}),e.jsx(c,{as:"p",...Zt,children:i!=null&&i.name?e.jsxs(e.Fragment,{children:["Here are a few suggestions based on activity in the"," ",e.jsx(c,{as:"span",fontWeight:"semibold",sx:{fontFeatureSettings:'"ss01" 1'},children:i.name})," ","workspace"]}):"Here are a few suggestions based on activity in your workspace"})]})}),e.jsxs(_,{gap:{base:10,xl:20},align:"flex-start",width:"100%",children:[e.jsxs(y,{gap:8,flex:1,maxWidth:"800px",minWidth:0,children:[e.jsxs(k.div,{variants:{hidden:S.hidden,visible:S.visible,exiting:{opacity:1,y:0}},style:{position:"sticky",top:24,zIndex:2},children:[e.jsx(c,{"aria-hidden":!0,position:"absolute",top:-6,bottom:"-52px",left:{base:-6,md:-10},right:{base:-6,md:-10},pointerEvents:"none",sx:Ye}),e.jsxs(c,{position:"relative",display:"flex",flexDirection:{base:"column",md:"row"},gap:8,alignItems:{base:"stretch",md:"center"},children:[e.jsx(c,{flex:1,minWidth:0,children:e.jsx(ei,{ref:d,placeholder:p?p.prompt:Us,animatePlaceholder:!0,variant:"elevated",onSubmit:v,isLoading:m,loadingPreviewText:"Starting your agent sessionâ¦",attachmentSources:r})}),e.jsx(c,{display:{base:"block",lg:"none"},flexShrink:0,children:e.jsx(Ze,{})})]})]}),e.jsx(k.div,{variants:S,children:e.jsx(Ws,{onSelect:I,onHoverChange:g,disabled:m})}),e.jsx(k.div,{variants:S,children:e.jsx(zi,{})}),n&&e.jsx(k.div,{variants:S,children:e.jsx(is,{})}),s&&e.jsx(k.div,{variants:S,children:e.jsx(cs,{})})]}),e.jsx(c,{display:{base:"none",lg:"block"},alignSelf:"stretch",children:e.jsx(k.div,{variants:S,style:{height:"100%"},children:e.jsx(_s,{})})})]}),e.jsx(y,{display:{base:"flex",lg:"none"},gap:8,px:4,children:e.jsx(k.div,{variants:S,children:e.jsxs(c,{display:"grid",gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gap:8,children:[e.jsx(Je,{compact:!0}),e.jsx(Ke,{compact:!0}),e.jsx(nt,{compact:!0})]})})})]})})},Ha=()=>{const[t]=w.useState(Gs);return e.jsxs(Vt,{title:"Home",flush:!0,contain:!0,children:[e.jsx(Qt,{name:"Agentic Home Page"}),e.jsx(Ai,{}),e.jsxs(y,{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden",sx:{scrollbarGutter:"stable"},children:[e.jsx(c,{"aria-hidden":!0,position:"fixed",inset:0,zIndex:0,pointerEvents:"none",background:Yt,sx:Me}),e.jsx(c,{"aria-hidden":!0,position:"fixed",inset:0,zIndex:0,pointerEvents:"none",background:t.background,opacity:t.opacity,sx:Me}),e.jsx(w.Suspense,{fallback:e.jsx(y,{flex:1,align:"center",justify:"center",position:"relative",children:e.jsx(Oe,{size:"lg"})}),children:e.jsx(Li,{children:e.jsx(Vs,{})})})]})]})};export{Ha as AgenticHome}; 2//# sourceMappingURL=agentic-home-ON5iSyi4.js.map
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.