@heroui/agent 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chart-content-YGW25P3Z.js +1 -0
- package/dist/chunk-6RWQT7JH.js +2 -0
- package/dist/{chunk-BBB5EHDN.js → chunk-7CUSOLDM.js} +1 -1
- package/dist/chunk-E43KPTLS.js +2 -0
- package/dist/chunk-JTZX5KVY.js +1 -0
- package/dist/chunk-KQTLIOZ3.js +1 -0
- package/dist/chunk-M22IGTLZ.js +1 -0
- package/dist/chunk-MXXCR5SR.js +1 -0
- package/dist/{chunk-64RI74L5.js → chunk-T4VDCNDW.js} +1 -1
- package/dist/component-renderer-KWBZJPBV.js +1 -0
- package/dist/contracts.d.ts +40 -8
- package/dist/contracts.js +2 -2
- package/dist/css/index.css +1 -1
- package/dist/embed-runtime-YK64GOPA.js +5 -0
- package/dist/{identity-3P8-17km.d.ts → identity-CAJPsGqJ.d.ts} +8 -2
- package/dist/index.d.ts +47 -4
- package/dist/index.js +1 -1
- package/dist/internal/client-tools.js +1 -1
- package/dist/model-picker-QTI5TDBG.js +1 -0
- package/dist/next.d.ts +1 -1
- package/dist/next.js +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/shell-permission-picker-KIC3VEYJ.js +1 -0
- package/package.json +3 -3
- package/dist/chart-content-BBHQVMP4.js +0 -1
- package/dist/chunk-5RHO3S5E.js +0 -2
- package/dist/chunk-S6OIAJSC.js +0 -1
- package/dist/chunk-USFF5UMB.js +0 -2
- package/dist/component-renderer-XOCP6UFF.js +0 -1
- package/dist/embed-runtime-FP77ORXA.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as no,b as le,c as A,d as Ae,f as ro,g as io,h as so,i as lo,j as Qe,k as po}from"./chunk-7CUSOLDM.js";import{b as co,c as pa}from"./chunk-HCLXS4HQ.js";import{a as be,b as It,c as oo,d as At}from"./chunk-CLHBM3HQ.js";import{a as ao,b as ae,c as k}from"./chunk-KQTLIOZ3.js";import{a as Je}from"./chunk-6ZJJN322.js";import{a as se}from"./chunk-MXXCR5SR.js";import{a as b}from"./chunk-CR3H7AVI.js";import{z as a}from"zod";var ni=["activity","alert","briefcase","calendar","chart","check","clock","code","credit-card","database","device-desktop","device-mobile","document","dollar","flag","globe","heart","home","info","lightning","location","mail","percent","person","question","receipt","rocket","route","search","shopping-bag","speedometer","star","tag","target","users"],ri=["clear","partly-cloudy","cloudy","fog","drizzle","rain","snow","thunderstorm","windy","unknown"],ii=a.string().trim().min(1).max(120),f=a.string().trim().min(1).max(320),ze=a.string().trim().min(1).max(1e4),D=a.string().trim().min(1).max(80),_=a.string().trim().min(1).max(100),We=a.string().regex(/^\d{4}-\d{2}-\d{2}$/),ca=a.string().regex(/^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/),si=a.union([a.string().max(500),a.number(),a.boolean(),a.null()]),Re=a.record(a.string().max(80),si),w=a.object({description:f.optional(),id:_,title:ii}),Ca=a.enum(["outline","plain","surface","surface-secondary","surface-tertiary","widget"]).describe("Card hierarchy: surface for the primary standalone group; surface-secondary for supporting information; surface-tertiary for one featured or emphasized group; outline for equal peers and comparisons; plain for a structural section already separated by surrounding layout; widget for a compact interactive group with actions or controls."),li=a.enum(["compact","details","media"]).describe("Record information layout: details for a full labeled fact set; compact for a brief summary or repeated peer cards; media for an image-led product, place, person, or event and only when an image is available."),ne=a.discriminatedUnion("style",[a.object({compact:a.boolean().optional(),style:a.literal("number")}),a.object({maximumFractionDigits:a.number().int().min(0).max(4).optional(),style:a.literal("percent")}),a.object({compact:a.boolean().optional(),currency:a.string().regex(/^[A-Z]{3}$/),style:a.literal("currency")})]),ye=a.enum(["accent","chart-1","chart-2","chart-3","chart-4","chart-5","danger","default","success","warning"]),go=a.record(a.string().trim().min(1).max(80),ye).refine(t=>Object.keys(t).length<=50,"At most 50 category colors are allowed"),fa=a.object({color:ye.optional(),dataKey:D,format:ne.optional(),label:f}),di=fa.extend({axis:a.enum(["left","right"]).optional(),stacked:a.boolean().optional(),type:a.enum(["area","bar","line"])}),pi=a.object({id:_,label:f,maxItems:a.number().int().min(1).max(200).optional()}),Ft=w.extend({data:a.array(Re).min(1).max(200),defaultRangeId:_.optional(),ranges:a.array(pi).min(2).max(8).optional(),series:a.array(fa).min(1).max(5),showSummary:a.boolean().optional(),xKey:D}),Mt=w.extend({colors:go.optional(),data:a.array(Re).min(1).max(50),format:ne.optional(),labelKey:D,valueKey:D}),ci=w.extend({colors:go.optional(),data:a.array(Re).min(1).max(200),format:ne.optional(),groupKey:D.optional(),kind:a.literal("scatter-chart"),labelKey:D.optional(),sizeKey:D.optional(),xKey:D,yKey:D}),mi=w.extend({color:ye.optional(),data:a.array(Re).min(1).max(400),format:ne.optional(),kind:a.literal("heatmap"),valueKey:D,xKey:D,yKey:D}),ui=Ft.extend({baseline:a.number().finite().optional(),kind:a.literal("line-chart"),mode:a.enum(["live","profit-loss","standard"]).optional(),negativeColor:ye.optional(),positiveColor:ye.optional(),windowSize:a.number().int().min(2).max(200).optional()}).superRefine((t,e)=>{(t.mode==="live"||t.mode==="profit-loss")&&t.series.length!==1&&e.addIssue({code:"custom",message:`${t.mode} line charts require exactly one series`,path:["series"]})}),gi=w.extend({closeKey:D,data:a.array(Re).min(1).max(200),downColor:ye.optional(),format:ne.optional(),highKey:D,kind:a.literal("candlestick-chart"),lowKey:D,openKey:D,upColor:ye.optional(),xKey:D}).superRefine((t,e)=>{for(let[o,r]of t.data.entries()){let n=r[t.openKey],s=r[t.highKey],d=r[t.lowKey],c=r[t.closeKey];if([n,s,d,c].some(v=>typeof v!="number"||!Number.isFinite(v))){e.addIssue({code:"custom",message:"Every candlestick row needs finite open, high, low, and close values",path:["data",o]});continue}let y=n,h=s,u=d,g=c;(u>Math.min(y,g)||h<Math.max(y,g)||u>h)&&e.addIssue({code:"custom",message:"Candlestick low/high values must contain the open and close values",path:["data",o]})}}),Ci=Mt.extend({data:a.array(Re).min(2).max(20),kind:a.literal("funnel-chart"),orientation:a.enum(["horizontal","vertical"]).optional(),showPercentages:a.boolean().optional()}).superRefine((t,e)=>{let o=t.data.map((r,n)=>{let s=r[t.valueKey];return typeof s!="number"||!Number.isFinite(s)||s<0?(e.addIssue({code:"custom",message:"Every funnel stage needs a finite, non-negative value",path:["data",n,t.valueKey]}),0):s});o.some(r=>r>0)||e.addIssue({code:"custom",message:"A funnel needs at least one stage above zero",path:["data"]}),(o[0]??0)<=0&&e.addIssue({code:"custom",message:"A funnel's first stage must be above zero",path:["data",0,t.valueKey]});for(let r=1;r<o.length;r+=1)(o[r]??0)>(o[r-1]??0)&&e.addIssue({code:"custom",message:"Funnel stages must not increase",path:["data",r,t.valueKey]})}),hi=w.extend({color:ye.optional(),format:ne.optional(),kind:a.literal("gauge-chart"),label:f,max:a.number().finite().optional(),min:a.number().finite().optional(),notches:a.number().int().min(6).max(60).optional(),orientation:a.enum(["arc","linear"]).optional(),value:a.number().finite()}).superRefine((t,e)=>{let{maximum:o,minimum:r}=no(t);o<=r?e.addIssue({code:"custom",message:"Gauge max must be greater than min",path:["max"]}):(t.value<r||t.value>o)&&e.addIssue({code:"custom",message:"Gauge value must be within its min/max range",path:["value"]})}),Co=a.lazy(()=>a.object({children:a.array(Co).min(1).max(12).optional(),color:ye.optional(),id:_,label:f,value:a.number().finite().positive().optional()}).superRefine((t,e)=>{t.children?.length&&t.value!==void 0&&e.addIssue({code:"custom",message:"Sunburst branch values are derived from their children",path:["value"]}),!t.children?.length&&t.value===void 0&&e.addIssue({code:"custom",message:"Every sunburst leaf needs a positive value",path:["value"]})})),fi=w.extend({data:Co,format:ne.optional(),kind:a.literal("sunburst-chart")}).superRefine((t,e)=>{let o=new Set,r=0,n=0,s=(d,c)=>{r+=1,n=Math.max(n,c),o.has(d.id)&&e.addIssue({code:"custom",message:`Duplicate sunburst node id "${d.id}"`}),o.add(d.id),d.children?.forEach(l=>s(l,c+1))};t.data.children?.length||e.addIssue({code:"custom",message:"A sunburst root needs at least one child",path:["data","children"]}),s(t.data,0),r>60&&e.addIssue({code:"custom",message:"Sunburst charts allow at most 60 nodes"}),n>4&&e.addIssue({code:"custom",message:"Sunburst charts allow at most four nested levels"})}),Rt=a.object({label:f,value:D}),bi=a.object({end:We,start:We}).refine(t=>t.start<=t.end,"The start date must not be after the end date"),de={description:f.optional(),label:f,name:D,required:a.boolean().optional()},yi=a.discriminatedUnion("kind",[a.object({...de,defaultValue:a.string().max(500).optional(),inputType:a.enum(["email","number","password","search","tel","text","url"]).optional(),kind:a.literal("input"),placeholder:a.string().max(160).optional()}),a.object({...de,defaultValue:a.string().max(2e3).optional(),kind:a.literal("textarea"),placeholder:a.string().max(160).optional(),rows:a.number().int().min(2).max(12).optional()}),a.object({...de,defaultValue:D.optional(),kind:a.literal("select"),options:a.array(Rt).min(1).max(30),placeholder:a.string().max(160).optional()}),a.object({...de,defaultValue:D.optional(),kind:a.literal("radio-group"),options:a.array(Rt).min(1).max(12),placeholder:a.string().max(160).optional()}),a.object({...de,defaultValue:a.array(D).max(20).optional(),kind:a.literal("checkbox-group"),options:a.array(Rt).min(1).max(20)}),a.object({...de,defaultValue:a.array(D).max(50).optional(),kind:a.literal("combobox"),options:a.array(Rt.extend({description:a.string().trim().min(1).max(120).optional()})).min(1).max(200).describe("Prefer this over select once there are more options than someone would scan \u2014 it filters as they type. Values must be unique."),placeholder:a.string().max(160).optional(),selectionMode:a.enum(["multiple","single"]).optional()}).superRefine((t,e)=>{let o=new Set(t.options.map(r=>r.value));o.size!==t.options.length&&e.addIssue({code:"custom",message:"Combobox option values must be unique",path:["options"]}),(t.selectionMode??"single")==="single"&&(t.defaultValue?.length??0)>1&&e.addIssue({code:"custom",message:"A single-selection combobox takes at most one default value",path:["defaultValue"]}),t.defaultValue?.some(r=>!o.has(r))&&e.addIssue({code:"custom",message:"Every combobox default value must be one of the options",path:["defaultValue"]})}),a.object({...de,defaultValue:a.number().optional(),kind:a.literal("slider"),max:a.number(),min:a.number(),step:a.number().positive().optional()}),a.object({...de,defaultValue:a.number().optional(),format:ne.optional(),kind:a.literal("number"),max:a.number().optional(),min:a.number().optional(),placeholder:a.string().max(160).optional(),step:a.number().positive().optional()}),a.object({...de,defaultValue:a.boolean().optional(),kind:a.literal("switch")}),a.object({...de,defaultValue:We.optional(),kind:a.literal("date-picker"),max:We.optional(),min:We.optional()}),a.object({...de,defaultValue:bi.optional(),kind:a.literal("date-range-picker"),max:We.optional(),min:We.optional()}),a.object({...de,defaultValue:ca.optional(),hourCycle:a.union([a.literal(12),a.literal(24)]).optional(),kind:a.literal("time-field"),max:ca.optional(),min:ca.optional()})]),ba=a.enum(["danger","outline","primary","secondary","tertiary"]),Ne=a.enum(ni),ho=a.object({arguments:a.record(a.string().max(80),a.unknown()).refine(t=>JSON.stringify(t).length<=4096,"Tool call arguments must serialize to at most 4KB of JSON"),name:a.string().regex(/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/)}),oe=a.object({id:_,label:f,prompt:a.string().trim().min(1).max(2e3).optional(),toolCall:ho.optional(),variant:ba.optional()}),fo=a.object({latitude:a.number().finite().min(-85.051129).max(85.051129),longitude:a.number().finite().min(-180).max(180)}),ha=a.string().trim().min(1).max(2e3).refine(t=>{try{let e=new URL(t);return["http:","https:"].includes(e.protocol)&&!e.username&&!e.password}catch{return!1}},{message:"URL must use HTTP or HTTPS and cannot include credentials"}),xi=a.string().trim().min(1).max(2e3).refine(t=>{try{let e=new URL(t);return["http:","https:","mailto:","tel:"].includes(e.protocol)&&!e.username&&!e.password}catch{return!1}},{message:"Link must use HTTP, HTTPS, mailto, or tel and cannot include credentials"}),Lt={id:_,label:f,variant:ba.optional()},wi=a.string().trim().min(5).max(2e3).refine(t=>/^tel:\+?[0-9().\-\s]+$/.test(t)&&/\d/.test(t.slice(4)),"Phone links must use the tel: scheme and contain a phone number"),vi=a.discriminatedUnion("kind",[a.object({...Lt,href:wi,kind:a.literal("call")}),a.object({...Lt,href:ha,kind:a.literal("directions")}),a.object({...Lt,href:xi,kind:a.literal("other")}),a.object({...Lt,href:ha,kind:a.literal("website")})]),ki=fo.extend({actions:a.array(vi).max(4).optional(),address:f.optional(),category:a.string().trim().min(1).max(100).optional(),id:_,images:a.array(a.object({alt:f,src:ha})).max(4).optional().describe("Prefer one representative image per location when a trusted tool or web image search returns one. The first image becomes the result-card thumbnail; initials are the fallback."),notes:a.string().trim().min(1).max(2e3).optional(),rating:a.number().finite().min(0).max(5).optional(),relevance:a.number().finite().min(0).max(1).optional(),reviewCount:a.number().int().nonnegative().max(1e9).optional(),title:f}),mt=a.string().trim().min(1).max(2e3).refine(t=>{if(t.startsWith("/"))return!t.startsWith("//");try{let e=new URL(t);return["http:","https:"].includes(e.protocol)&&!e.username&&!e.password}catch{return!1}},{message:"Image sources must be HTTP(S) URLs or root-relative paths"}),ce=a.object({alt:f,src:mt.refine(t=>!t.split(/[?#]/,1)[0]?.toLowerCase().endsWith(".svg"),"Response-composition images must be raster images")}),ya=a.string().regex(/^[A-Z]{3}$/),Si=a.object({amount:a.number().finite().nonnegative().max(1e9),currency:ya}),ma=a.enum(ri),mo=a.enum(["celsius","fahrenheit"]),uo=a.object({label:f,status:f.optional(),time:a.string().trim().min(1).max(80)}),Ee=a.enum(["accent","danger","default","muted","success","warning"]),Ni=a.object({actions:a.array(oe).max(3).optional(),badge:a.object({label:f,tone:Ee.optional()}).optional(),description:f.optional(),id:_,image:a.object({alt:f,src:mt}),meta:a.string().trim().min(1).max(160).optional(),name:f,price:a.object({amount:a.number().finite().nonnegative().max(1e9),currency:ya.optional()}),rating:a.object({count:a.number().int().nonnegative().max(1e9).optional(),value:a.number().finite().min(0).max(5)}).optional()}),Pi=a.enum(["accent","danger","default","success","warning"]),Vi=a.object({description:f.optional(),format:ne.optional(),id:_,label:f,max:a.number().optional(),min:a.number().optional(),tone:Pi.optional(),value:a.number()}).superRefine((t,e)=>{let o=t.min??0,r=t.max??(t.format?.style==="percent"?1:100);r<=o&&e.addIssue({code:"custom",message:"Meter max must be greater than min"}),(t.value<o||t.value>r)&&e.addIssue({code:"custom",message:"Meter value must be within its min/max range"})}),p={accordion:w.extend({kind:a.literal("accordion"),sections:a.array(a.object({content:ze,defaultOpen:a.boolean().optional(),id:_,title:f})).min(1).max(12)}),actions:w.extend({actions:a.array(oe).min(1).max(8),kind:a.literal("action-group"),orientation:a.enum(["horizontal","vertical"]).optional()}),area:Ft.extend({kind:a.literal("area-chart"),stacked:a.boolean().optional()}),bar:Ft.extend({kind:a.literal("bar-chart"),layout:a.enum(["horizontal","vertical"]).optional(),stacked:a.boolean().optional()}),callout:w.extend({content:ze,icon:Ne.optional(),kind:a.literal("callout"),tone:a.enum(["accent","danger","neutral","success","warning"]).optional()}),candlestick:gi,channelMessage:w.extend({attachments:a.array(a.object({id:_,image:ce.optional(),name:f})).max(8).optional(),author:a.object({image:ce.optional(),name:f}),channel:f,content:ze,kind:a.literal("channel-message"),timestamp:a.string().trim().min(1).max(80)}),code:w.extend({code:a.string().min(1).max(2e4),kind:a.literal("code-block"),language:a.string().trim().max(40).optional()}),comparison:w.extend({items:a.array(a.object({change:a.number().optional(),format:ne.optional(),label:f,note:a.string().trim().max(180).optional(),value:a.number()})).min(1).max(12),kind:a.literal("comparison-list")}),composed:Ft.extend({kind:a.literal("composed-chart"),series:a.array(di).min(2).max(5)}),createEvent:w.extend({actions:a.array(oe).max(2).optional(),date:a.object({day:a.number().int().min(1).max(31),weekday:a.string().trim().min(1).max(20)}),events:a.array(a.object({id:_,status:a.enum(["existing","proposed"]).optional(),time:a.string().trim().min(1).max(80),title:f,tone:Ee.optional()})).min(1).max(12),kind:a.literal("create-event")}),diagram:w.extend({chart:a.string().trim().min(1).max(4e3).describe('Mermaid source. Pick the diagram type from the relationship: "flowchart LR" for a process or decision path, "sequenceDiagram" for an exchange between parties over time, "erDiagram" for how records relate, "stateDiagram-v2" for the states something moves between. Example: "flowchart LR\\n A[Order placed] --> B{In stock?}\\n B -- yes --> C[Ship]\\n B -- no --> D[Backorder]". Never include HTML, script tags, or click directives.'),kind:a.literal("diagram")}).superRefine((t,e)=>{/<\s*script|javascript:|^\s*click\s+\S/im.test(t.chart)&&e.addIssue({code:"custom",message:"Diagram source cannot contain HTML, script URLs, or click directives",path:["chart"]})}),donut:Mt.extend({kind:a.literal("donut-chart")}),enableNotification:w.extend({actions:a.tuple([oe,oe]),kind:a.literal("enable-notification")}),eventSession:w.extend({action:oe.optional(),eyebrow:a.string().trim().min(1).max(100).optional(),kind:a.literal("event-session"),location:f,speakers:a.array(a.object({image:ce.optional(),name:f,role:f})).max(8),time:a.string().trim().min(1).max(80)}),flightTracker:w.extend({airline:a.object({logo:ce.optional(),name:f}),date:a.string().trim().min(1).max(80),destination:uo,flightNumber:a.string().trim().min(1).max(40),kind:a.literal("flight-tracker"),origin:uo,progress:a.number().finite().min(0).max(100).optional()}),followup:w.extend({kind:a.literal("followup"),prompts:a.array(a.object({id:_,label:f,prompt:ze})).min(1).max(8)}),form:w.extend({actions:a.array(oe).min(1).max(4),fields:a.array(yi).min(1).max(20),kind:a.literal("form")}),funnel:Ci,gauge:hi,heatmap:mi,image:w.extend({images:a.array(a.object({alt:f,aspectRatio:a.enum(["landscape","portrait","square","wide"]).optional(),caption:f.optional(),src:mt})).min(1).max(6),kind:a.literal("image"),variant:a.enum(["grid","horizontal"]).optional().describe("Use horizontal for a swipeable gallery in narrow chat interfaces.")}),kpiGrid:w.extend({kind:a.literal("kpi-grid"),metrics:a.array(a.object({change:a.number().optional(),color:ye.optional(),format:ne.optional(),icon:Ne.optional(),label:f,trend:a.array(a.number().finite()).min(2).max(60).describe("The values behind this KPI, oldest to newest, drawn as a sparkline. The last point should agree with value."),value:a.number()})).min(1).max(4)}),line:ui,list:w.extend({items:a.array(a.object({checked:a.boolean().optional(),children:a.array(f).max(8).optional(),id:_,text:f})).min(1).max(30),kind:a.literal("list"),style:a.enum(["bulleted","checklist","numbered"]).optional()}),listBlock:w.extend({items:a.array(a.object({description:f.optional(),icon:Ne.optional(),id:_,imageAlt:f.optional(),imageUrl:mt.optional(),meta:a.string().trim().max(100).optional(),rating:a.number().min(0).max(5).optional(),title:f})).min(1).max(20),kind:a.literal("list-block")}),map:w.extend({initialLocationId:_.optional(),kind:a.literal("map"),locations:a.array(ki).min(1).max(12),viewport:a.object({center:fo,zoom:a.number().int().min(1).max(18)}).optional()}).superRefine((t,e)=>{let o=new Set;for(let[r,n]of t.locations.entries()){o.has(n.id)&&e.addIssue({code:"custom",message:`Duplicate map location id "${n.id}"`,path:["locations",r,"id"]}),o.add(n.id);let s=new Set;for(let[d,c]of(n.actions??[]).entries())s.has(c.id)&&e.addIssue({code:"custom",message:`Duplicate action id "${c.id}" for map location "${n.id}"`,path:["locations",r,"actions",d,"id"]}),s.add(c.id)}t.initialLocationId&&!o.has(t.initialLocationId)&&e.addIssue({code:"custom",message:"The initial map location must reference one of the locations",path:["initialLocationId"]})}).describe("A ranked, map-synchronized set of places or professionals. Coordinates and listing facts must come from tools or user data; never invent them."),meterList:w.extend({items:a.array(Vi).min(1).max(8),kind:a.literal("meter-list")}),metricGrid:w.extend({kind:a.literal("metric-grid"),metrics:a.array(a.object({change:a.number().optional(),format:ne.optional(),icon:Ne.optional(),label:f,value:a.number()})).min(1).max(4)}),pie:Mt.extend({kind:a.literal("pie-chart")}),playerCard:w.extend({backgroundImage:ce.optional(),jerseyNumber:a.string().trim().min(1).max(20).optional(),kind:a.literal("player-card"),playerName:f,stats:a.array(a.object({label:a.string().trim().min(1).max(40),value:a.union([a.string().trim().min(1).max(80),a.number().finite()])})).min(1).max(8)}),playlist:w.extend({actions:a.array(oe).max(2).optional(),cover:ce.optional(),kind:a.literal("playlist"),tracks:a.array(a.object({action:oe.optional(),artist:f,id:_,image:ce.optional(),title:f})).min(1).max(20)}),productCard:w.extend({actions:a.array(oe).max(3).optional(),kind:a.literal("product-card"),products:a.array(Ni).min(1).max(8),variant:Ca.optional()}).superRefine((t,e)=>{let o=new Set;for(let[r,n]of t.products.entries())o.has(n.id)&&e.addIssue({code:"custom",message:`Duplicate product id "${n.id}"`,path:["products",r,"id"]}),o.add(n.id)}).describe("A commerce product presentation: one product renders an image-led spotlight, several render a store-style grid. Product facts (id, name, image, price, rating, availability) must come from tools or user data; never invent them."),purchaseComplete:w.extend({action:oe.optional(),details:a.array(a.object({label:f,value:f})).max(8),kind:a.literal("purchase-complete"),paid:Si.optional(),product:a.object({description:f.optional(),image:ce.optional(),name:f})}),purchaseItems:w.extend({actions:a.array(oe).max(3).optional(),currency:ya,items:a.array(a.object({description:f.optional(),id:_,image:ce.optional(),name:f,price:a.number().finite().nonnegative().max(1e9).optional(),quantity:a.number().int().positive().max(1e4).optional()})).min(1).max(20),kind:a.literal("purchase-items"),totals:a.array(a.object({amount:a.number().finite().nonnegative().max(1e9),emphasis:a.boolean().optional(),label:f})).min(1).max(8)}),radar:w.extend({angleKey:D,data:a.array(Re).min(3).max(50),kind:a.literal("radar-chart"),series:a.array(fa).min(1).max(5)}),radial:Mt.extend({endAngle:a.number().min(-360).max(360).optional(),kind:a.literal("radial-chart"),maxValue:a.number().positive().optional(),startAngle:a.number().min(-360).max(360).optional()}),recordCard:w.extend({actions:a.array(oe).max(4).optional(),eyebrow:a.string().trim().max(100).optional(),fields:a.array(a.object({icon:Ne.optional(),label:f,tone:Ee.optional(),value:a.string().trim().min(1).max(500)})).max(12),image:a.object({alt:f,src:mt}).optional(),kind:a.literal("record-card"),layout:li.optional(),status:a.object({label:f,tone:Ee.optional()}).optional(),variant:Ca.optional()}).superRefine((t,e)=>{t.layout==="media"&&!t.image&&e.addIssue({code:"custom",message:"The media record layout requires an image",path:["image"]}),t.layout==="compact"&&t.fields.length>4&&e.addIssue({code:"custom",message:"The compact record layout supports at most four fields",path:["fields"]})}),rideStatus:w.extend({driver:a.object({image:ce.optional(),name:f}),eta:a.string().trim().min(1).max(80),kind:a.literal("ride-status"),pickup:f}),sankey:w.extend({format:ne.optional(),kind:a.literal("sankey-chart"),links:a.array(a.object({source:_,target:_,value:a.number().positive()})).min(1).max(100),nodes:a.array(a.object({id:_,label:f})).min(2).max(40)}),scatter:ci,steps:w.extend({kind:a.literal("steps"),steps:a.array(a.object({content:f.optional(),icon:Ne.optional(),id:_,image:ce.optional().describe("A representative raster image for this step. Prefer this over icon for place itineraries when a trusted image URL is available."),meta:a.string().trim().max(100).optional(),progress:a.number().min(0).max(100).optional(),status:a.enum(["blocked","cancelled","completed","failed","in-progress","pending","complete","current","upcoming"]).optional(),timestamp:a.string().trim().max(100).optional(),title:f})).min(1).max(12),variant:a.enum(["steps","timeline"]).optional()}),sunburst:fi,switches:w.extend({items:a.array(a.object({defaultSelected:a.boolean().optional(),description:f.optional(),id:_,label:f})).min(1).max(20),kind:a.literal("switch-group")}),table:w.extend({columns:a.array(a.object({format:ne.optional(),key:D,label:f})).min(1).max(12),filterable:a.boolean().optional(),kind:a.literal("data-table"),rows:a.array(Re).max(200),variant:a.enum(["primary","secondary"]).optional()}),tabs:w.extend({defaultValue:_.optional(),kind:a.literal("tabs"),tabs:a.array(a.union([a.object({children:a.never().optional(),content:ze,id:_,label:f}),a.object({children:a.array(a.lazy(()=>ka)).min(1).max(12),content:a.never().optional(),id:_,label:f})])).min(1).max(10),variant:a.enum(["primary","secondary"]).optional()}),tags:w.extend({kind:a.literal("tag-list"),tags:a.array(f).min(1).max(30)}),text:w.extend({content:ze,kind:a.literal("text"),variant:a.enum(["card","clear"]).optional()}),toggles:w.extend({defaultValue:a.array(_).max(12).optional(),items:a.array(a.object({id:_,label:f})).min(1).max(12),kind:a.literal("toggle-group"),selectionMode:a.enum(["multiple","single"]).optional()}),viewEvent:w.extend({date:a.string().trim().min(1).max(80),kind:a.literal("view-event"),time:a.string().trim().min(1).max(80),tone:Ee.optional()}),weatherCurrent:w.extend({condition:ma,details:a.array(a.object({label:f,value:f})).max(6).optional(),kind:a.literal("weather-current"),location:f,temperature:a.number().finite().min(-150).max(150),unit:mo}),weatherForecast:w.extend({condition:ma,forecast:a.array(a.object({condition:ma,label:a.string().trim().min(1).max(40),temperature:a.number().finite().min(-150).max(150)})).min(2).max(10),high:a.number().finite().min(-150).max(150),kind:a.literal("weather-forecast"),location:f,low:a.number().finite().min(-150).max(150),unit:mo})},_i=p.metricGrid,Ti=p.kpiGrid,Ii=p.line,Ai=p.area,Ri=p.bar,Li=p.composed,Fi=p.pie,Mi=p.donut,Di=p.radar,Bi=p.radial,zi=p.sankey,Wi=p.scatter,Ei=p.heatmap,Gi=p.candlestick,Ui=p.funnel,Hi=p.gauge,Zi=p.sunburst,$i=p.table,Ki=p.comparison,Oi=p.meterList,ji=p.form,qi=p.text,Yi=p.callout,Xi=p.image,Ji=p.map,Qi=p.tags,es=p.list,ts=p.listBlock,as=p.accordion,os=p.steps,ns=p.code,rs=p.diagram,Rp=p.tabs.superRefine(Ko),is=p.actions,ss=p.followup,ls=p.switches,ds=p.toggles,ps=p.recordCard,cs=p.productCard,ms=p.flightTracker,us=p.createEvent,gs=p.playlist,Cs=p.rideStatus,hs=p.purchaseItems,fs=p.channelMessage,bs=p.purchaseComplete,ys=p.playerCard,xs=p.viewEvent,ws=p.eventSession,vs=p.enableNotification,ks=p.weatherForecast,Ss=p.weatherCurrent,Ns=a.discriminatedUnion("kind",[p.metricGrid,p.kpiGrid,p.line,p.area,p.bar,p.composed,p.pie,p.donut,p.radar,p.radial,p.sankey,p.scatter,p.heatmap,p.candlestick,p.funnel,p.gauge,p.sunburst,p.table,p.comparison,p.meterList]),bo=w.extend({defaultValue:_.optional(),kind:a.literal("product-signals"),tabs:a.array(a.object({component:Ns,id:_,label:f})).min(2).max(4)}),Ps=bo.superRefine((t,e)=>{let o=new Set;for(let[r,n]of t.tabs.entries())o.has(n.id)&&e.addIssue({code:"custom",message:`Duplicate product signal tab id "${n.id}"`,path:["tabs",r,"id"]}),o.add(n.id);t.defaultValue&&!o.has(t.defaultValue)&&e.addIssue({code:"custom",message:"The default product signal must reference one of the tabs",path:["defaultValue"]})}),Vs=a.discriminatedUnion("kind",[p.metricGrid,p.kpiGrid,p.line,p.area,p.bar,p.composed,p.pie,p.donut,p.radar,p.radial,p.sankey,p.scatter,p.heatmap,p.candlestick,p.funnel,p.gauge,p.sunburst,p.table,p.comparison,p.meterList,p.form,p.text,p.callout,p.image,p.map,p.tags,p.list,p.listBlock,p.accordion,p.steps,p.code,p.diagram,p.tabs,p.actions,p.followup,p.switches,p.toggles,p.recordCard,p.productCard,p.flightTracker,p.createEvent,p.playlist,p.rideStatus,p.purchaseItems,p.channelMessage,p.purchaseComplete,p.playerCard,p.viewEvent,p.eventSession,p.enableNotification,p.weatherForecast,p.weatherCurrent]);function _s(t){if(!t)return;let e=new Set;for(let o of t){if(e.has(o.id))return o.id;e.add(o.id)}}var xa=a.union([Vs,Ps]).superRefine((t,e)=>{let o=[];switch(t.kind){case"channel-message":o.push({items:t.attachments,path:"attachments"});break;case"create-event":o.push({items:t.events,path:"events"}),o.push({items:t.actions,path:"actions"});break;case"enable-notification":o.push({items:t.actions,path:"actions"});break;case"playlist":o.push({items:t.tracks,path:"tracks"}),o.push({items:t.actions,path:"actions"});break;case"purchase-items":o.push({items:t.items,path:"items"}),o.push({items:t.actions,path:"actions"});break;case"tabs":{Ko(t,e);break}default:break}for(let r of o){let n=_s(r.items);n&&e.addIssue({code:"custom",message:`Duplicate ${r.path} id "${n}"`,path:[r.path]})}}),yo=w.extend({children:a.array(xa).min(1).max(4),kind:a.literal("dashboard"),layout:a.enum(["chart-table","grid","metrics-chart","stack"])}),Ts=yo,xo=a.union([xa,Ts]),Lp=a.object({component:xo}),ua=6,Ge=48,Is=new Set(["card","col","grid","item-card","item-card-group","row"]);function wo(t){return Is.has(t.kind)}function vo(t){return t.kind==="item-card"?[...t.left??[],...t.middle,...t.right??[]]:t.children}var me=a.object({id:_}),wa=a.enum(["lg","md","none","sm"]),ko=a.enum(["center","end","start","stretch"]),So=a.enum(["between","center","end","start"]),Dt=a.array(a.lazy(()=>ka)).min(1).max(Ge),No=me.extend({kind:a.literal("spacer"),size:a.enum(["auto","lg","md","sm"]).optional()}),Po=me.extend({kind:a.literal("divider")}),Vo=me.extend({icon:Ne.optional(),kind:a.literal("heading"),level:a.union([a.literal(1),a.literal(2),a.literal(3),a.literal(4)]).optional(),text:f}),_o=me.extend({icon:Ne.optional(),kind:a.literal("button"),label:f,prompt:a.string().trim().min(1).max(2e3).optional(),toolCall:ho.optional(),variant:ba.optional()}).refine(t=>!!(t.prompt??t.toolCall),{message:"Buttons need a prompt or a toolCall to do something when pressed"}),To=me.extend({kind:a.literal("badge"),label:f,tone:Ee.optional(),variant:a.enum(["soft","solid"]).optional()}),Io=me.extend({kind:a.literal("icon"),name:Ne,size:a.enum(["lg","md","sm"]).optional(),tone:Ee.optional()}),Ao=me.extend({count:a.number().int().nonnegative().max(1e9).optional(),kind:a.literal("rating"),value:a.number().finite().min(0).max(5)}),Ro=me.extend({kind:a.literal("progress"),label:f.optional(),value:a.number().finite().min(0).max(100)}),Lo=a.enum(["default","outline","secondary","tertiary","transparent"]),ga=a.lazy(()=>ka),Fo=w.extend({action:oe.optional().describe("Makes the whole row pressable. Omit when a slot contains its own button or other interactive control."),isDisabled:a.boolean().optional(),isSelected:a.boolean().optional(),kind:a.literal("item-card"),left:a.array(ga).min(1).max(4).optional().describe("Leading slot. Prefer one icon node or a compact visual."),middle:a.array(ga).min(1).max(8).describe("Primary flexible slot. Prefer a level-4 heading followed by a clear text node for a title and description."),right:a.array(ga).min(1).max(4).optional().describe("Trailing slot. Prefer a badge, short value, icon, or button."),variant:Lo.optional()}),As=new Set(["accordion","action-group","button","followup","form","map","switch-group","tabs","toggle-group"]);function Mo(t){for(let e of t)if(As.has(e.kind)||wo(e)&&Mo(vo(e)))return!0;return!1}var va=Fo.superRefine((t,e)=>{t.action&&Mo([...t.left??[],...t.middle,...t.right??[]])&&e.addIssue({code:"custom",message:"A pressable item-card cannot contain buttons or other interactive descendants. Remove action from the card or move the nested control outside it."})}),Do=w.extend({children:a.array(va).min(1).max(12),columns:a.union([a.literal(2),a.literal(3)]).optional(),kind:a.literal("item-card-group"),layout:a.enum(["grid","list"]).optional(),showHeader:a.boolean().optional(),variant:Lo.optional()}),Bo=Do.superRefine((t,e)=>{t.columns&&t.layout!=="grid"&&e.addIssue({code:"custom",message:"Item-card group columns only apply when layout is grid.",path:["columns"]})}),zo=me.extend({align:ko.optional(),children:Dt,gap:wa.optional(),justify:So.optional(),kind:a.literal("row")}),Wo=me.extend({align:ko.optional(),children:Dt,gap:wa.optional(),justify:So.optional(),kind:a.literal("col")}),Eo=me.extend({children:Dt,columns:a.union([a.literal(1),a.literal(2),a.literal(3),a.literal(4)]),gap:wa.optional(),kind:a.literal("grid")}),Go=w.extend({children:Dt,kind:a.literal("card"),variant:Ca.optional()}),Uo=zo,Ho=Wo,Zo=Eo,$o=Go,ka=a.union([xa,No,Po,Vo,_o,To,Io,Ao,Ro,Uo,Ho,Zo,$o,va,Bo]);function Rs(t,e){Ms(t,e)}function Ls(t,e){let o=t.tabs.flatMap(r=>r.children??[]);o.length!==0&&Oo(o,e,t.id,2,1)}function Ko(t,e){let o=new Set;for(let[r,n]of t.tabs.entries())o.has(n.id)&&e.addIssue({code:"custom",message:`Duplicate tab id "${n.id}"`,path:["tabs",r,"id"]}),o.add(n.id);t.defaultValue&&!o.has(t.defaultValue)&&e.addIssue({code:"custom",message:"The default tab must reference one of the tabs",path:["defaultValue"]}),Ls(t,e)}function Fs(t){return wo(t)?vo(t):t.kind==="tabs"?t.tabs.flatMap(e=>e.children??[]):[]}function Oo(t,e,o,r=1,n=0){let s=new Set,d=n,c=n>0?r-1:0;o&&s.add(o);let l=(y,h)=>{if(d+=1,c=Math.max(c,h),s.has(y.id)&&e.addIssue({code:"custom",message:`Duplicate component id "${y.id}" in the composed UI tree. Every node needs a unique id.`}),s.add(y.id),!(h>ua))for(let u of Fs(y))l(u,h+1)};for(let y of t)l(y,r);c>ua&&e.addIssue({code:"custom",message:`Composed UI trees can nest at most ${ua} levels deep.`}),d>Ge&&e.addIssue({code:"custom",message:`Composed UI trees can contain at most ${Ge} components.`})}function Ms(t,e){Oo([t],e)}var jo=a.union([Uo,Ho,Zo,$o,va,Bo]).superRefine(Rs),qo=a.union([xo,jo]),Fp=a.object({component:jo}),Se=t=>a.array(a.unknown()).min(1).max(t).describe("Child nodes. Each is any catalog component; look its kind up separately."),Mp={accordion:as,"action-group":is,"area-chart":Ai,badge:To,"bar-chart":Ri,button:_o,callout:Yi,"candlestick-chart":Gi,card:Go.extend({children:Se(Ge)}),"channel-message":fs,"code-block":ns,col:Wo.extend({children:Se(Ge)}),"comparison-list":Ki,"composed-chart":Li,"create-event":us,dashboard:yo.extend({children:Se(4)}),"data-table":$i,diagram:rs,divider:Po,"donut-chart":Mi,"enable-notification":vs,"event-session":ws,"flight-tracker":ms,followup:ss,form:ji,"funnel-chart":Ui,"gauge-chart":Hi,grid:Eo.extend({children:Se(Ge)}),heading:Vo,heatmap:Ei,icon:Io,image:Xi,"item-card":Fo.extend({left:Se(4).optional().describe("Leading slot nodes."),middle:Se(8).describe("Primary flexible slot nodes."),right:Se(4).optional().describe("Trailing slot nodes.")}),"item-card-group":Do.extend({children:a.array(a.unknown()).min(1).max(12).describe("One to twelve item-card children. Look up item-card for each child's schema.")}),"kpi-grid":Ti,"line-chart":Ii,list:es,"list-block":ts,map:Ji,"meter-list":Oi,"metric-grid":_i,"pie-chart":Fi,"player-card":ys,playlist:gs,"product-card":cs,"product-signals":bo.extend({tabs:a.array(a.object({component:a.unknown().describe("One analytical component: metric-grid, kpi-grid, any chart, data-table, comparison-list, or meter-list. Look its kind up separately."),id:_,label:f})).min(2).max(4)}),progress:Ro,"purchase-complete":bs,"purchase-items":hs,"radar-chart":Di,"radial-chart":Bi,rating:Ao,"record-card":ps,"ride-status":Cs,row:zo.extend({children:Se(Ge)}),"sankey-chart":zi,"scatter-chart":Wi,spacer:No,steps:os,"sunburst-chart":Zi,"switch-group":ls,tabs:w.extend({defaultValue:_.optional(),kind:a.literal("tabs"),tabs:a.array(a.union([a.object({content:ze,id:_,label:f}),a.object({children:Se(12).describe("Rich panel nodes rendered as one vertical stack. Look up every child kind separately."),id:_,label:f})])).min(1).max(10),variant:a.enum(["primary","secondary"]).optional()}),"tag-list":Qi,text:qi,"toggle-group":ds,"view-event":xs,"weather-current":Ss,"weather-forecast":ks};import{jsx as Ue,jsxs as Ds}from"react/jsx-runtime";function Yo({className:t,component:e,onAction:o,onSelect:r}){return Ue(k,{className:t,description:e.description,title:e.title,children:Ue("div",{className:"aui-actions","data-orientation":e.orientation??"horizontal","data-slot":"agent-ui-actions",children:e.actions.map(n=>Ue(be,{variant:n.variant,onClick:()=>{let s=le(e.id,n);s&&o?o(s):r?.(A(e,n))},children:n.label},n.id))})})}function Xo({className:t,component:e,onAction:o,onSelect:r}){return Ue(k,{className:t,description:e.description,title:e.title,children:Ue(It,{className:"aui-followup","data-slot":"agent-ui-followup",children:e.prompts.map(n=>Ds("button",{"data-slot":"agent-ui-followup-item",type:"button",onClick:()=>{o?o({componentId:e.id,label:n.label,prompt:n.prompt,type:"followup"}):r?.(A(e,n))},children:[Ue("span",{"data-slot":"agent-ui-followup-label",children:n.label}),Ue("span",{"aria-hidden":"true","data-slot":"agent-ui-followup-indicator",children:"\u2197"})]},n.id))})})}import{Suspense as Gs,lazy as X,useState as Us}from"react";import{jsx as et,jsxs as zs}from"react/jsx-runtime";function Bs(t){return t==="dashboard"||t==="product-signals"||t==="card"||t==="col"||t==="grid"||t==="item-card"||t==="item-card-group"||t==="row"?"dashboard":t==="metric-grid"||t==="kpi-grid"?"metrics":t==="map"?"map":t==="data-table"?"table":t==="record-card"||t==="channel-message"||t==="create-event"||t==="enable-notification"||t==="event-session"||t==="flight-tracker"||t==="player-card"||t==="playlist"||t==="purchase-complete"||t==="purchase-items"||t==="ride-status"||t==="view-event"||t==="weather-current"||t==="weather-forecast"?"record":"chart"}function Sa({className:t,kind:e,title:o}){let r=Bs(e);return zs("section",{"aria-busy":"true","aria-label":o?`Loading ${o}`:"Loading data view",className:b("aui-skeleton",t),"data-component-kind":e,"data-skeleton-category":r,"data-slot":"agent-ui-skeleton",role:"status",children:[et("div",{className:"aui-skeleton__header","data-slot":"agent-ui-skeleton-header"}),et("div",{className:"aui-skeleton__content","data-slot":"agent-ui-skeleton-content",children:r==="metrics"||r==="dashboard"?Array.from({length:r==="dashboard"?2:4},(n,s)=>et("span",{className:"aui-skeleton__panel"},s)):r==="table"||r==="record"?Array.from({length:r==="table"?5:4},(n,s)=>et("span",{className:"aui-skeleton__row"},s)):et("span",{className:"aui-skeleton__chart"})}),et("span",{className:"aui-sr-only","data-slot":"agent-ui-skeleton-label",children:"Loading data view\u2026"})]})}import{ChevronUp as Ws}from"@gravity-ui/icons";import{SearchField as ut}from"@heroui/react";import{useMemo as Na,useState as Jo}from"react";import{jsx as j,jsxs as Bt}from"react/jsx-runtime";function Es({children:t,inherit:e}){return e?t:j(ae,{variant:"plain",children:t})}function zt({className:t,component:e,exportFormats:o,inheritCardVariant:r,onAction:n,onSelect:s,viewAction:d}){let[c,l]=Jo(""),[y,h]=Jo(null),u=Na(()=>new Set(e.columns.map(V=>V.key)),[e]),g=y&&u.has(y.key)?y:null,v=Na(()=>{let V=new Map;return e.rows.map(K=>{let $=JSON.stringify(K),ke=V.get($)??0;return V.set($,ke+1),{key:`${$}:${ke}`,row:K}})},[e.rows]),P=Na(()=>{let V=e.filterable?c.trim().toLowerCase():"",K=V?v.filter(({row:$})=>Object.values($).some(ke=>String(ke??"").toLowerCase().includes(V))):v;return g?K.toSorted(({row:$},{row:ke})=>{let Vt=String($[g.key]??"").localeCompare(String(ke[g.key]??""),"en",{numeric:!0});return g.direction==="asc"?Vt:-Vt}):K},[g,e.filterable,c,v]),G=V=>s?.(A(e,V)),R=o?.filter(V=>V==="csv")??[];return j(Es,{inherit:r,children:Bt(k,{className:t,description:e.description,title:e.title,actions:j(lo,{component:e,formats:R,viewAction:d,copyAction:()=>{so({...e,rows:P.map(({row:V})=>V)},"text").catch(()=>{})},onAction:n}),children:[e.filterable?j("div",{className:"aui-table__tools","data-slot":"agent-ui-table-tools",children:j(ut,{fullWidth:!0,"aria-label":`Filter ${e.title}`,name:`filter-${e.id}`,value:c,variant:"secondary",onChange:l,children:Bt(ut.Group,{children:[j(ut.SearchIcon,{}),j(ut.Input,{"data-slot":"agent-ui-table-filter",placeholder:"Filter rows\u2026"}),j(ut.ClearButton,{})]})})}):null,j("div",{className:"aui-table__scroll","data-slot":"agent-ui-table-scroll","data-variant":e.variant??"secondary",children:Bt("table",{className:"aui-table","data-slot":"agent-ui-data-table",children:[j("thead",{"data-slot":"agent-ui-table-head",children:j("tr",{children:e.columns.map(V=>j("th",{scope:"col","aria-sort":g?.key===V.key?g.direction==="asc"?"ascending":"descending":"none",children:Bt("button",{className:"aui-table__sort","data-slot":"agent-ui-table-sort",type:"button",onClick:()=>h(K=>({direction:K?.key===V.key&&K.direction==="asc"?"desc":"asc",key:V.key})),children:[V.label,g?.key===V.key?j(Ws,{"aria-hidden":"true",className:"aui-table__sort-indicator","data-slot":"agent-ui-table-sort-indicator","data-direction":g.direction==="asc"?"ascending":"descending"}):null]})},V.key))})}),j("tbody",{"data-slot":"agent-ui-table-body",children:P.length>0?P.map(({key:V,row:K})=>j("tr",{className:"aui-table__row","data-interactive":s?"true":void 0,"data-slot":"agent-ui-table-row",tabIndex:s?0:void 0,onClick:s?()=>G(K):void 0,onKeyDown:$=>{s&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),G(K))},children:e.columns.map($=>j("td",{"data-slot":"agent-ui-table-cell",children:ro(K[$.key],$.format)},$.key))},V)):j("tr",{children:j("td",{className:"aui-table__empty",colSpan:e.columns.length,"data-slot":"agent-ui-table-empty",children:"No matching rows"})})})]})})]})})}import{Fragment as nl,jsx as T,jsxs as Qo}from"react/jsx-runtime";var Hs=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.LineChartComponentContent}))),Zs=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.BarChartComponentContent}))),$s=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.AreaChartComponentContent}))),Ks=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.ComposedChartComponentContent}))),Os=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.PieChartComponentContent}))),js=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.DonutChartComponentContent}))),qs=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.RadarChartComponentContent}))),Ys=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.RadialChartComponentContent}))),Xs=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.SankeyChartComponentContent}))),Js=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.ScatterChartComponentContent}))),Qs=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.HeatmapComponentContent}))),el=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.CandlestickChartComponentContent}))),tl=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.FunnelChartComponentContent}))),al=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.GaugeChartComponentContent}))),ol=X(()=>import("./chart-content-YGW25P3Z.js").then(t=>({default:t.SunburstChartComponentContent})));function en(t){return T(J,{props:t,renderChart:e=>T(Hs,{...e})})}function tn(t){return T(J,{props:t,renderChart:e=>T(Zs,{...e})})}function an(t){return T(J,{props:t,renderChart:e=>T($s,{...e})})}function on(t){return T(J,{props:t,renderChart:e=>T(Ks,{...e})})}function nn(t){return T(J,{props:t,renderChart:e=>T(Os,{...e})})}function rn(t){return T(J,{props:t,renderChart:e=>T(js,{...e})})}function sn(t){return T(J,{props:t,renderChart:e=>T(qs,{...e})})}function ln(t){return T(J,{props:t,renderChart:e=>T(Ys,{...e})})}function dn(t){return T(J,{props:t,renderChart:e=>T(Xs,{...e})})}function pn(t){return T(J,{props:t,renderChart:e=>T(Js,{...e})})}function cn(t){return T(J,{props:t,renderChart:e=>T(Qs,{...e})})}function mn(t){return T(J,{props:t,renderChart:e=>T(el,{...e})})}function un(t){return T(J,{props:t,renderChart:e=>T(tl,{...e})})}function gn(t){return T(J,{props:t,renderChart:e=>T(al,{...e})})}function Cn(t){return T(J,{props:t,renderChart:e=>T(ol,{...e})})}function J({props:t,renderChart:e}){let[o,r]=Us("chart"),n={label:o==="chart"?"View as table":"View as chart",onAction:()=>r(d=>d==="chart"?"table":"chart"),target:o==="chart"?"table":"chart"},s=o==="table"?T(zt,{...t,inheritCardVariant:!0,component:io(t.component),exportFormats:t.exportFormats?.filter(d=>d==="csv"),viewAction:n}):T(Gs,{fallback:T(Sa,{className:t.className,kind:t.component.kind,title:t.component.title}),children:e({...t,viewAction:n})});return Qo(nl,{children:[s,Qo("span",{"aria-live":"polite",className:"aui-sr-only",children:["Showing ",t.component.title," as ",o]})]})}import{jsx as Le,jsxs as rl}from"react/jsx-runtime";function hn({className:t,component:e,onSelect:o}){return Le(ae,{variant:"plain",children:Le(k,{className:t,description:e.description,title:e.title,children:Le("div",{className:"aui-comparison","data-slot":"agent-ui-comparison-list",children:e.items.map(r=>rl("button",{className:"aui-comparison__item","data-slot":"agent-ui-comparison-item",type:"button",onClick:()=>o?.(A(e,r)),children:[Le("span",{className:"aui-comparison__label","data-slot":"agent-ui-comparison-label",children:r.label}),Le("span",{className:"aui-comparison__value","data-slot":"agent-ui-comparison-value",children:Ae(r.value,r.format)}),r.note?Le("span",{className:"aui-comparison__note","data-slot":"agent-ui-comparison-note",children:r.note}):Le("span",{}),r.change!==void 0?Le(Qe,{slot:"agent-ui-comparison-change",value:r.change}):null]},r.label))})})})}import{jsx as fn}from"react/jsx-runtime";function bn({children:t,className:e,component:o}){return fn(k,{className:e,description:o.description,title:o.title,children:fn("div",{className:"aui-dashboard","data-layout":o.layout,"data-slot":"agent-ui-dashboard",children:t})})}import{Briefcase as il,Calendar as sl,ChartBar as ll,CircleCheck as dl,CircleDollar as pl,CircleExclamation as cl,CircleInfo as ml,CircleQuestion as ul,Clock as gl,Code as Cl,CreditCard as hl,Database as fl,Display as bl,Envelope as yl,FileText as xl,Flag as wl,Globe as vl,Heart as kl,House as Sl,Magnifier as Nl,MapPin as Pl,Percent as Vl,Person as _l,Persons as Tl,Pulse as Il,Receipt as Al,Rocket as Rl,Route as Ll,ShoppingBag as Fl,Smartphone as Ml,Speedometer as Dl,Star as Bl,Tag as zl,Target as Wl,Thunderbolt as El}from"@gravity-ui/icons";import{jsx as Ul}from"react/jsx-runtime";var Gl={activity:Il,alert:cl,briefcase:il,calendar:sl,chart:ll,check:dl,clock:gl,code:Cl,"credit-card":hl,database:fl,"device-desktop":bl,"device-mobile":Ml,document:xl,dollar:pl,flag:wl,globe:vl,heart:kl,home:Sl,info:ml,lightning:El,location:Pl,mail:yl,percent:Vl,person:_l,question:ul,receipt:Al,rocket:Rl,route:Ll,search:Nl,"shopping-bag":Fl,speedometer:Dl,star:Bl,tag:zl,target:Wl,users:Tl};function q({name:t,...e}){let o=Gl[t];return Ul(o,{...e,"aria-hidden":"true","data-icon":t,focusable:"false"})}import{useId as Zl}from"react";var Wt={height:40,width:100},yn=3;function Hl(t,e){let o=[];for(let n=0;n<t.length-1;n+=1)o.push((t[n+1]-t[n])/e);let r=[o[0]??0];for(let n=1;n<t.length-1;n+=1){let s=o[n-1],d=o[n];r.push(s*d<=0?0:(s+d)/2)}r.push(o[o.length-1]??0);for(let n=0;n<o.length;n+=1){let s=o[n];if(s===0){r[n]=0,r[n+1]=0;continue}let d=r[n]/s,c=r[n+1]/s,l=d*d+c*c;if(l>9){let y=3/Math.sqrt(l);r[n]=y*d*s,r[n+1]=y*c*s}}return r}function xn(t){let e=t.filter(R=>Number.isFinite(R));if(e.length<2)return null;let{height:o,width:r}=Wt,n=yn,s=o-yn,d=Math.min(...e),l=Math.max(...e)-d,y=r/(e.length-1),h=R=>R*y,u=R=>l===0?o/2:s-(R-d)/l*(s-n),g=e.map(u),v=Hl(g,y),P=[`M ${Fe(h(0))} ${Fe(g[0])}`];for(let R=0;R<e.length-1;R+=1){let V=y/3;P.push(`C ${Fe(h(R)+V)} ${Fe(g[R]+v[R]*V)} ${Fe(h(R+1)-V)} ${Fe(g[R+1]-v[R+1]*V)} ${Fe(h(R+1))} ${Fe(g[R+1])}`)}let G=P.join(" ");return{area:`${G} V ${o} H 0 Z`,line:G}}function Fe(t){return Math.round(t*100)/100}import{jsx as gt,jsxs as wn}from"react/jsx-runtime";function vn({color:t,values:e}){let o=Zl(),r=xn(e);return r?wn("svg",{"aria-hidden":"true",className:"aui-sparkline","data-slot":"agent-ui-sparkline",preserveAspectRatio:"none",viewBox:`0 0 ${Wt.width} ${Wt.height}`,children:[gt("defs",{children:wn("linearGradient",{id:o,x1:"0",x2:"0",y1:"0",y2:"1",children:[gt("stop",{offset:"0%",stopColor:t,stopOpacity:.22}),gt("stop",{offset:"100%",stopColor:t,stopOpacity:.02})]})}),gt("path",{className:"aui-sparkline__area",d:r.area,fill:`url(#${o})`}),gt("path",{className:"aui-sparkline__line",d:r.line,fill:"none",stroke:t,strokeLinecap:"round",strokeWidth:1.75,vectorEffect:"non-scaling-stroke"})]}):null}import{jsx as xe,jsxs as Et}from"react/jsx-runtime";function kn({className:t,component:e}){return xe(ae,{variant:"plain",children:xe(k,{className:t,description:e.description,title:e.title,children:xe("div",{className:"aui-kpi-grid","data-slot":"agent-ui-kpi-grid",children:e.metrics.map(o=>Et("article",{className:"aui-kpi aui-kpi--chart","data-slot":"agent-ui-kpi",children:[Et("header",{className:"aui-kpi__header","data-slot":"agent-ui-kpi-header",children:[xe("span",{className:"aui-kpi__title","data-slot":"agent-ui-kpi-title",children:o.label}),o.icon?xe("span",{className:"aui-kpi__icon","data-slot":"agent-ui-kpi-icon",children:xe(q,{name:o.icon})}):null]}),Et("div",{className:"aui-kpi__body","data-slot":"agent-ui-kpi-body",children:[Et("div",{className:"aui-kpi__metric","data-slot":"agent-ui-kpi-metric",children:[xe("p",{className:"aui-kpi__value","data-slot":"agent-ui-kpi-value",children:Ae(o.value,o.format)}),o.change!==void 0?xe(Qe,{slot:"agent-ui-kpi-change",value:o.change}):null]}),xe("div",{className:"aui-kpi__chart","data-slot":"agent-ui-kpi-chart",children:xe(vn,{color:po[o.color??"accent"],values:o.trend})})]})]},o.label))})})})}import{Description as $l,Label as Kl,Meter as Gt}from"@heroui/react";import{jsx as He,jsxs as Ol}from"react/jsx-runtime";function Sn({className:t,component:e}){return He(k,{className:t,description:e.description,title:e.title,variant:"outline",children:He("div",{className:"aui-meter-list","data-slot":"agent-ui-meter-list",children:e.items.map(o=>{let r=o.min??0,n=o.max??(o.format?.style==="percent"?1:100);return Ol(Gt,{"aria-label":o.label,className:"aui-meter-list__item",color:o.tone??"accent","data-slot":"agent-ui-meter",maxValue:n,minValue:r,size:"sm",value:o.value,valueLabel:Ae(o.value,o.format),children:[He(Kl,{"data-slot":"agent-ui-meter-label",children:o.label}),He(Gt.Output,{"data-slot":"agent-ui-meter-output"}),He(Gt.Track,{"data-slot":"agent-ui-meter-track",children:He(Gt.Fill,{})}),o.description?He($l,{"data-slot":"agent-ui-meter-description",children:o.description}):null]},o.id)})})})}import{jsx as Me,jsxs as Pa}from"react/jsx-runtime";function Nn({className:t,component:e}){return Me(ae,{variant:"plain",children:Me(k,{className:t,description:e.description,title:e.title,children:Me("div",{className:"aui-metric-grid","data-slot":"agent-ui-metric-grid",children:e.metrics.map(o=>Pa("article",{className:"aui-kpi","data-slot":"agent-ui-kpi",children:[Pa("header",{className:"aui-kpi__header","data-slot":"agent-ui-kpi-header",children:[Me("span",{className:"aui-kpi__title","data-slot":"agent-ui-kpi-title",children:o.label}),o.icon?Me("span",{className:"aui-kpi__icon","data-slot":"agent-ui-kpi-icon",children:Me(q,{name:o.icon})}):null]}),Pa("div",{className:"aui-kpi__content","data-slot":"agent-ui-kpi-content",children:[Me("p",{className:"aui-kpi__value","data-slot":"agent-ui-kpi-value",children:Ae(o.value,o.format)}),o.change!==void 0?Me(Qe,{slot:"agent-ui-kpi-change",value:o.change}):null]})]},o.label))})})})}import{Accordion as Ze,Checkbox as Ht,Description as Dn,Label as Bn,Modal as pe,ProgressBar as Zt,Tabs as tt,Tag as sd,TagGroup as Mn}from"@heroui/react";import{useCallback as $t,useMemo as ld,useState as ft}from"react";import{ArrowRotateLeft as Xl,Minus as Jl,Plus as Ql}from"@gravity-ui/icons";import{Button as Ut,Modal as Ct,Separator as _n,Tooltip as De}from"@heroui/react";import{useCallback as ed,useEffect as td,useId as ad,useLayoutEffect as od,useRef as _a,useState as ht}from"react";var Pn="Inter, ui-sans-serif, system-ui, sans-serif";function jl(t){let e=t??(typeof document>"u"?null:document.body);return e&&getComputedStyle(e).fontFamily.trim()||Pn}async function ql(){let t=(await import("mermaid")).default;return t.initialize({securityLevel:"strict",startOnLoad:!1,theme:"base"}),t}var Va=null;function Yl(){return Va??=ql().catch(t=>{throw Va=null,t}),Va}async function Vn(t){let e=await Yl();return e.initialize({themeVariables:{fontFamily:jl(t),fontSize:"13px"}}),e}import{jsx as L,jsxs as Pe}from"react/jsx-runtime";var Tn=.5,In=4,An=.25;function nd(){return L("svg",{"aria-hidden":"true",fill:"none",viewBox:"0 0 16 16",children:L("path",{d:"M9.5 2.5H13v3.5M6.5 13.5H3V10M13 2.5l-4 4M3 13.5l4-4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}function Rn(t,e,o,r){let[n,s]=ht(null),[d,c]=ht(!1),l=_a(null);return td(()=>{if(!o)return;let y=!1;async function h(){try{let u=await Vn(r?.current??l.current);await u.parse(t);let{svg:g}=await u.render(e,t,l.current??void 0);if(y)return;c(!1),s({key:t,markup:g})}catch{if(y)return;s(null),c(!0)}}return h(),()=>{y=!0}},[t,o,r,e]),{container:l,failed:d,markup:n?.key===t?n.markup:null}}function Ln({markup:t,pendingRef:e,scale:o}){let r=_a(null);return od(()=>{let n=r.current;if(!(!n||!t))return n.replaceChildren(oo(t)),()=>n.replaceChildren()},[t]),t?L("div",{ref:r,className:"aui-diagram__surface","data-slot":"agent-ui-diagram-surface",role:"img",style:o===void 0?void 0:{"--aui-diagram-scale":o}}):L("div",{ref:e,className:"aui-diagram__surface","data-pending":"true"})}function Fn({chart:t,title:e}){let o=ad().replace(/[^a-zA-Z0-9]/g,""),r=_a(null),n=Rn(t,`aui-diagram-${o}`,!0,r),[s,d]=ht(!1),c=Rn(t,`aui-diagram-modal-${o}`,s,r),[l,y]=ht(1),[h,u]=ht(),g=ed(P=>{r.current=P,u(se(P))},[]),v=P=>y(G=>Math.min(In,Math.max(Tn,G+P)));return n.failed?L(At,{code:t,language:"mermaid"}):Pe("div",{ref:g,className:"aui-diagram","data-slot":"agent-ui-diagram",children:[L(Ln,{markup:n.markup,pendingRef:n.container}),n.markup?Pe(Ct,{isOpen:s,onOpenChange:P=>{d(P),P||y(1)},children:[L(Ut,{isIconOnly:!0,"aria-label":"Expand diagram",className:"aui-diagram__expand","data-slot":"agent-ui-diagram-expand",size:"sm",variant:"ghost",onPress:()=>d(!0),children:L(nd,{})}),L(Ct.Backdrop,{className:"aui-diagram-modal__backdrop",UNSTABLE_portalContainer:h,variant:"blur",children:L(Ct.Container,{className:"aui-diagram-modal__container",placement:"center",children:Pe(Ct.Dialog,{"aria-label":e?`${e} diagram`:"Diagram",className:"aui-diagram-modal__dialog","data-slot":"agent-ui-diagram-modal",children:[L("div",{className:"aui-diagram-modal__controls",children:Pe("div",{"aria-label":"Diagram zoom controls",className:"aui-diagram-modal__control-group",role:"toolbar",children:[Pe(De,{delay:0,children:[L(Ut,{isIconOnly:!0,"aria-label":"Zoom out",isDisabled:l<=Tn,size:"sm",variant:"ghost",onPress:()=>v(-An),children:L(Jl,{})}),L(De.Content,{placement:"top",children:"Zoom out"})]}),Pe(De,{delay:0,children:[L(Ut,{isIconOnly:!0,"aria-label":"Zoom in",isDisabled:l>=In,size:"sm",variant:"ghost",onPress:()=>v(An),children:L(Ql,{})}),L(De.Content,{placement:"top",children:"Zoom in"})]}),Pe("output",{"aria-label":`Zoom level: ${Math.round(l*100)}%`,className:"aui-diagram-modal__zoom-level",children:[Math.round(l*100),"%"]}),L(_n,{className:"aui-diagram-modal__separator",orientation:"vertical"}),Pe(De,{delay:0,children:[L(Ut,{isIconOnly:!0,"aria-label":"Reset zoom",isDisabled:l===1,size:"sm",variant:"ghost",onPress:()=>y(1),children:L(Xl,{})}),L(De.Content,{placement:"top",children:"Reset zoom"})]}),L(_n,{className:"aui-diagram-modal__separator",orientation:"vertical"}),Pe(De,{delay:0,children:[L(Ct.CloseTrigger,{className:"aui-diagram-modal__close"}),L(De.Content,{placement:"top",children:"Close"})]})]})}),L("div",{className:"aui-diagram-modal__viewport",children:L(Ln,{markup:c.markup,pendingRef:c.container,scale:l})})]})})})]}):null]})}import{Picture as rd}from"@gravity-ui/icons";import{useState as id}from"react";import{jsx as Ta}from"react/jsx-runtime";function ue({alt:t="",className:e,decoding:o,loading:r,onError:n,onLoadFailure:s,referrerPolicy:d,sizes:c,src:l,srcSet:y,...h}){let[u,g]=id();return!l||u===l?Ta("span",{...h,"aria-hidden":t?void 0:!0,"aria-label":t||void 0,className:b("aui-image-fallback",e),"data-slot":"agent-ui-image-fallback",role:t?"img":void 0,children:Ta(rd,{"aria-hidden":"true"})}):Ta("img",{...h,alt:t,className:e,decoding:o,loading:r,referrerPolicy:d,sizes:c,src:l,srcSet:y,onError:v=>{g(l),typeof l=="string"&&s?.(l),n?.(v)}})}import{Fragment as pd,jsx as C,jsxs as Z}from"react/jsx-runtime";function zn({className:t,component:e}){return e.variant==="clear"?C("div",{"aria-label":e.title,className:b("aui-prose",t),"data-slot":"agent-ui-text","data-variant":"clear",children:Je(e.content)}):C(k,{className:t,description:e.description,title:e.title,children:C("div",{className:"aui-prose","data-slot":"agent-ui-text","data-variant":"card",children:Je(e.content)})})}function Wn({className:t,component:e}){return C(k,{className:t,description:e.description,title:e.title,children:Z("div",{className:"aui-callout","data-has-icon":e.icon?"true":void 0,"data-slot":"agent-ui-callout","data-tone":e.tone??"neutral",children:[e.icon?C(q,{className:"aui-callout__icon","data-slot":"agent-ui-callout-icon",name:e.icon}):C("span",{"aria-hidden":"true",className:"aui-callout__indicator","data-slot":"agent-ui-callout-indicator"}),C("p",{"data-slot":"agent-ui-callout-content",children:Je(e.content)})]})})}function En({className:t,component:e,onSelect:o}){let r=e.variant??"grid",[n,s]=ft(),[d,c]=ft(()=>new Set),l=$t(u=>{s(se(u))},[]),y=$t(u=>{c(g=>{if(g.has(u))return g;let v=new Set(g);return v.add(u),v})},[]),h=e.images.map(u=>{let g=d.has(u.src),v=Z(pd,{children:[C("span",{className:"aui-image__frame","data-slot":"agent-ui-image-frame",children:C(ue,{alt:u.alt,"data-aspect-ratio":u.aspectRatio??"landscape","data-slot":"agent-ui-image",loading:"lazy",src:g?void 0:u.src,onLoadFailure:y})}),u.caption?C("span",{className:"aui-image__caption","data-slot":"agent-ui-image-caption",children:u.caption}):null]});return g?C("span",{className:"aui-image","data-failed":"true","data-slot":"agent-ui-image-item",children:v},u.src):Z(pe,{children:[C(pe.Trigger,{"aria-label":`Open ${u.alt}`,className:"aui-image","data-slot":"agent-ui-image-item",onClick:()=>o?.(A(e,u)),children:v}),C(pe.Backdrop,{className:"aui-image-modal__backdrop",UNSTABLE_portalContainer:n,variant:"blur",children:C(pe.Container,{className:"aui-image-modal__container",placement:"center",children:Z(pe.Dialog,{"aria-label":u.alt,className:"aui-image-modal__dialog","data-slot":"agent-ui-image-modal",children:[C(pe.CloseTrigger,{className:"aui-image-modal__close"}),C("img",{alt:u.alt,className:"aui-image-modal__image",src:u.src})]})})})]},u.src)});return C(k,{className:t,description:e.description,title:e.title,children:C("div",{ref:l,className:"aui-images-container","data-layout":r,children:r==="horizontal"?C(It,{"aria-label":`${e.title} gallery`,className:"aui-images","data-count":e.images.length,"data-layout":r,role:"region",size:24,tabIndex:0,children:h}):C("div",{className:"aui-images","data-count":e.images.length,"data-layout":r,"data-slot":"agent-ui-images",children:h})})})}function Gn({className:t,component:e,onSelect:o}){return C(k,{className:t,description:e.description,title:e.title,children:C(Mn,{"aria-label":e.title,className:"aui-tags","data-slot":"agent-ui-tags",selectionMode:"single",size:"sm",onSelectionChange:r=>{let n=[...r][0];typeof n=="string"&&o?.(A(e,{tag:n}))},children:C(Mn.List,{children:e.tags.map(r=>C(sd,{className:"aui-tag","data-slot":"agent-ui-tag",id:r,children:r},r))})})})}function Un({className:t,component:e}){let o=e.style??"bulleted";return C(k,{className:t,description:e.description,title:e.title,children:C("ul",{"aria-label":e.title,className:"aui-list","data-slot":"agent-ui-list","data-style":o,children:e.items.map((r,n)=>Z("li",{className:"aui-list__item","data-slot":"agent-ui-list-item",children:[o==="checklist"?C(Ht,{isReadOnly:!0,"aria-label":r.text,className:"aui-list__checkbox","data-slot":"agent-ui-list-check",isSelected:r.checked??!1,variant:"secondary",children:C(Ht.Content,{children:C(Ht.Control,{children:C(Ht.Indicator,{})})})}):C("span",{"aria-hidden":"true",className:"aui-list__marker","data-slot":"agent-ui-list-marker",children:o==="numbered"?`${n+1}.`:"\u2022"}),Z("span",{className:"aui-list__body","data-slot":"agent-ui-list-content",children:[C(Bn,{"data-slot":"agent-ui-list-label",children:r.text}),r.children?.length?C("span",{className:"aui-list__children","data-slot":"agent-ui-list-children",children:r.children.map(s=>C(Dn,{"data-slot":"agent-ui-list-child",children:s},s))}):null]})]},r.id))})})}function dd(t){return/^\+/.test(t)?"success":/^[-−]\S/.test(t)?"danger":"neutral"}function Hn({className:t,component:e}){return C(k,{className:t,description:e.description,title:e.title,variant:"outline",children:C("ul",{"aria-label":e.title,className:"aui-list-block","data-slot":"agent-ui-list-block",children:e.items.map(o=>Z("li",{className:"aui-list-block__item","data-slot":"agent-ui-list-block-item",children:[o.imageUrl?C(ue,{alt:o.imageAlt??"",className:"aui-list-block__image","data-slot":"agent-ui-list-block-image",loading:"lazy",src:o.imageUrl}):C("span",{"aria-hidden":"true",className:"aui-list-block__glyph","data-slot":"agent-ui-list-block-glyph",children:o.icon?C(q,{"data-slot":"agent-ui-list-block-icon",name:o.icon}):o.title.trim().charAt(0).toUpperCase()}),Z("span",{className:"aui-list-block__body","data-slot":"agent-ui-list-block-content",children:[C(Bn,{className:"aui-list-block__title","data-slot":"agent-ui-list-block-title",children:o.title}),o.description?C(Dn,{className:"aui-list-block__description","data-slot":"agent-ui-list-block-description",children:o.description}):null]}),o.meta||o.rating!==void 0?Z("span",{className:"aui-list-block__footer","data-slot":"agent-ui-list-block-footer",children:[o.meta?C("span",{className:"aui-list-block__meta","data-slot":"agent-ui-list-block-meta","data-tone":dd(o.meta),children:o.meta}):null,o.meta&&o.rating!==void 0?C("span",{"aria-hidden":"true",className:"aui-list-block__meta-separator",children:"\xB7"}):null,o.rating!==void 0?Z("span",{"aria-label":`${o.rating} out of 5 stars`,className:"aui-list-block__rating","data-slot":"agent-ui-list-block-rating",children:[Z("span",{"aria-hidden":"true",children:[o.rating,"/5"]}),C(q,{"aria-hidden":"true",className:"aui-list-block__rating-icon","data-slot":"agent-ui-list-block-rating-icon",name:"star"})]}):null]}):null]},o.id))})})}function Zn({className:t,component:e}){return C(k,{className:t,description:e.description,title:e.title,children:C(Ze,{allowsMultipleExpanded:!0,className:"aui-accordion","data-slot":"agent-ui-accordion",defaultExpandedKeys:e.sections.filter(o=>o.defaultOpen).map(o=>o.id),children:e.sections.map(o=>Z(Ze.Item,{"data-slot":"agent-ui-accordion-item",id:o.id,children:[C(Ze.Heading,{children:Z(Ze.Trigger,{"data-slot":"agent-ui-accordion-trigger",children:[o.title,C(Ze.Indicator,{"data-slot":"agent-ui-accordion-indicator"})]})}),C(Ze.Panel,{"data-slot":"agent-ui-accordion-panel",children:C(Ze.Body,{children:o.content})})]},o.id))})})}function $n({className:t,component:e,onSelect:o}){let[r,n]=ft(),[s,d]=ft(()=>new Set),c=e.steps.some(u=>u.icon),l=e.steps.some(u=>u.image),y=$t(u=>{n(se(u))},[]),h=$t(u=>{d(g=>{if(g.has(u))return g;let v=new Set(g);return v.add(u),v})},[]);return C(k,{className:t,description:e.description,title:e.title,children:C("ol",{ref:y,className:"aui-steps","data-has-icons":c||void 0,"data-has-images":l||void 0,"data-slot":"agent-ui-steps","data-variant":e.variant??"steps",children:e.steps.map((u,g)=>{let v=u.status==="complete"?"completed":u.status==="current"?"in-progress":u.status==="upcoming"?"pending":u.status??"pending",P=u.image?s.has(u.image.src):!1,G=C("span",{className:"aui-steps__marker","data-slot":"agent-ui-step-indicator",children:e.variant==="timeline"?u.icon?C(q,{"aria-hidden":"true","data-slot":"agent-ui-step-icon",name:u.icon}):null:v==="completed"?C("svg",{"aria-hidden":"true","data-slot":"agent-ui-step-checkmark",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",viewBox:"0 0 24 24",children:C("polyline",{points:"20 6 9 17 4 12"})}):v==="failed"?C("span",{"aria-hidden":"true",children:"\xD7"}):v==="blocked"?C("span",{"aria-hidden":"true",children:"!"}):v==="cancelled"?C("span",{"aria-hidden":"true",children:"\u2013"}):u.icon?C(q,{"aria-hidden":"true","data-slot":"agent-ui-step-icon",name:u.icon}):g+1});return C("li",{"data-has-image":u.image?"true":void 0,"data-slot":"agent-ui-step","data-status":v,children:Z("div",{className:"aui-steps__row",children:[u.image?P?C("span",{className:"aui-steps__image-marker","data-failed":"true","data-slot":"agent-ui-step-image-marker",children:C(ue,{alt:u.image.alt,className:"aui-steps__image","data-slot":"agent-ui-step-image"})}):Z(pe,{children:[C(pe.Trigger,{"aria-label":`Open ${u.image.alt}`,className:"aui-steps__image-marker","data-slot":"agent-ui-step-image-trigger",onClick:()=>o?.(A(e,u)),children:C(ue,{alt:u.image.alt,className:"aui-steps__image","data-slot":"agent-ui-step-image",loading:"lazy",src:u.image.src,onLoadFailure:h})}),C(pe.Backdrop,{className:"aui-image-modal__backdrop",UNSTABLE_portalContainer:r,variant:"blur",children:C(pe.Container,{className:"aui-image-modal__container",placement:"center",children:Z(pe.Dialog,{"aria-label":u.image.alt,className:"aui-image-modal__dialog","data-slot":"agent-ui-image-modal",children:[C(pe.CloseTrigger,{className:"aui-image-modal__close"}),C(ue,{alt:u.image.alt,className:"aui-image-modal__image",src:u.image.src})]})})})]}):G,C("button",{className:"aui-steps__content-action","data-slot":"agent-ui-step-action",type:"button",onClick:()=>o?.(A(e,u)),children:Z("span",{"data-slot":"agent-ui-step-content",children:[u.timestamp||u.meta?C("span",{className:"aui-steps__meta","data-slot":"agent-ui-step-meta",children:[u.timestamp,u.meta].filter(Boolean).join(" \xB7 ")}):null,C("strong",{"data-slot":"agent-ui-step-title",children:u.title}),u.content?C("small",{"data-slot":"agent-ui-step-description",children:u.content}):null,u.progress!==void 0?Z(Zt,{"aria-label":`${u.title} progress`,className:"aui-steps__progress",size:"sm",value:u.progress,color:v==="failed"?"danger":v==="blocked"?"warning":"accent",children:[C(Zt.Output,{}),C(Zt.Track,{children:C(Zt.Fill,{})})]}):null]})})]})},u.id)})})})}function Kn({className:t,component:e}){return C(k,{className:t,description:e.description,title:e.title,children:C(At,{code:e.code,language:e.language})})}function On({className:t,component:e}){return C(k,{className:t,description:e.description,title:e.title,children:C(Fn,{chart:e.chart,title:e.title})})}function jn({className:t,component:e,onSelect:o,renderPanel:r}){let n=ld(()=>new Set(e.tabs.map(l=>l.id)),[e.tabs]),[s,d]=ft(e.defaultValue??e.tabs[0]?.id??""),c=n.has(s)?s:e.defaultValue??e.tabs[0]?.id??"";return C(k,{className:t,description:e.description,title:e.title,children:C("div",{className:"aui-tabs","data-slot":"agent-ui-tabs",children:Z(tt,{selectedKey:c,variant:e.variant,onSelectionChange:l=>{let y=String(l),h=e.tabs.find(u=>u.id===y);d(y),h&&o?.(A(e,h))},children:[C(tt.ListContainer,{children:C(tt.List,{"aria-label":e.title,children:e.tabs.map(l=>Z(tt.Tab,{id:l.id,children:[l.label,C(tt.Indicator,{})]},l.id))})}),e.tabs.map(l=>C(tt.Panel,{className:"aui-tabs__panel","data-content":l.children?"rich":"text",id:l.id,children:l.children?C("div",{className:"aui-tabs__panel-content",children:r?.(l.children)??null}):l.content},l.id))]})})})}import{Fragment as md,jsx as $e,jsxs as Ia}from"react/jsx-runtime";function cd({left:t,middle:e,right:o}){return Ia(md,{children:[t?$e("div",{className:"item-card__icon","data-slot":"item-card-icon",children:t}):null,$e("div",{className:"item-card__content","data-slot":"item-card-content",children:e}),o?$e("div",{className:"item-card__action","data-slot":"item-card-action",children:o}):null]})}function qn({className:t,component:e,left:o,middle:r,onAction:n,onSelect:s,right:d}){let c=cd({left:o,middle:r,right:d}),l=b("item-card",`item-card--${e.variant??"default"}`,"aui-item-card",t),y={"aria-label":e.title,className:l,"data-component-kind":e.kind,"data-disabled":e.isDisabled||void 0,"data-selected":e.isSelected||void 0};if(!e.action)return $e("div",{"data-slot":"item-card",...y,children:c});let h=e.action;return $e("button",{...y,"aria-pressed":e.isSelected||void 0,"data-slot":"item-card",disabled:e.isDisabled,type:"button",onClick:()=>{if(e.isDisabled)return;let u=le(e.id,h);u&&n?n(u):s?.(A(e,{actionId:h.id,itemId:e.id}))},children:c})}function Yn({children:t,className:e,component:o}){let r=o.layout==="grid"&&o.columns?{"--item-card-group-columns":o.columns}:void 0;return Ia("div",{"aria-label":o.title,"data-component-kind":o.kind,"data-slot":"item-card-group",role:"group",style:r,className:b("item-card-group",`item-card-group--${o.layout??"list"}`,`item-card-group--${o.variant??"default"}`,"aui-item-card-group",e),children:[o.showHeader?Ia("div",{className:"item-card-group__header","data-slot":"item-card-group-header",children:[$e("h3",{className:"item-card-group__title","data-slot":"item-card-group-title",children:o.title}),o.description?$e("p",{className:"item-card-group__description","data-slot":"item-card-group-description",children:o.description}):null]}):null,t]})}import{Children as fd}from"react";import{Picture as ud}from"@gravity-ui/icons";import{useState as gd}from"react";import{jsx as Q}from"react/jsx-runtime";var Cd={center:"center",end:"flex-end",start:"flex-start",stretch:"stretch"},hd={between:"space-between",center:"center",end:"flex-end",start:"flex-start"};function ot(t){return typeof t=="number"?`${t}px`:t}function at(t){return t===void 0?void 0:`calc(var(--spacing) * ${t})`}function Xn(t){return typeof t=="number"?{padding:at(t)}:t?{paddingBottom:at(t.bottom??t.y),paddingLeft:at(t.left??t.x),paddingRight:at(t.right??t.x),paddingTop:at(t.top??t.y)}:{}}function Aa({align:t,background:e,flex:o,gap:r,height:n,justify:s,minHeight:d,minWidth:c,padding:l,radius:y,style:h,width:u,...g}){return{elementProps:g,style:{alignItems:t?Cd[t]:void 0,background:e,flex:o,gap:at(r),height:ot(n),justifyContent:s?hd[s]:void 0,minHeight:ot(d),minWidth:ot(c),width:ot(u),...Xn(l),...h}}}function Jn({background:t,className:e,padding:o,size:r="md",style:n,theme:s="light",...d}){let c=ao("component")??"surface";return Q("section",{"data-size":r,"data-theme":s,"data-variant":c,style:{background:t,...Xn(o),...n},className:b("aui-widget-card",s==="dark"?"dark":void 0,e),...d})}function Kt({className:t,radius:e,...o}){let{elementProps:r,style:n}=Aa(o);return Q("div",{className:b("aui-widget-row",t),"data-radius":e,style:n,...r})}function Ot({className:t,radius:e,...o}){let{elementProps:r,style:n}=Aa(o);return Q("div",{className:b("aui-widget-col",t),"data-radius":e,style:n,...r})}function Qn({className:t,radius:e,...o}){let{elementProps:r,style:n}=Aa(o);return Q("div",{className:b("aui-widget-box",t),"data-radius":e,style:n,...r})}function jt({className:t}){return Q("span",{"aria-hidden":"true",className:b("aui-widget-spacer",t)})}function bt({className:t,flush:e=!1}){return Q("hr",{className:b("aui-widget-divider",t),"data-flush":e||void 0})}function Ra({align:t,color:e="default",maxLines:o,size:r,style:n,truncate:s,value:d,weight:c,...l}){return{elementProps:l,visualProps:{"data-align":t,"data-color":e,"data-max-lines":o,"data-size":r,"data-truncate":s||void 0,"data-weight":c,style:{...n,WebkitLineClamp:o}}}}function er({children:t,className:e,value:o,...r}){let{elementProps:n,visualProps:s}=Ra(r);return Q("span",{className:b("aui-widget-text",e),...s,...n,children:o??t})}function tr({children:t,className:e,value:o,...r}){let{elementProps:n,visualProps:s}=Ra(r);return Q("h3",{className:b("aui-widget-title",e),...s,...n,children:o??t})}function qt({children:t,className:e,value:o,...r}){let{elementProps:n,visualProps:s}=Ra(r);return Q("span",{className:b("aui-widget-caption",e),...s,...n,children:o??t})}function Ve({alt:t="",className:e,fit:o="cover",flush:r,frame:n,height:s,onError:d,radius:c,size:l,src:y,style:h,width:u,...g}){let[v,P]=gd(),G={"data-flush":r||void 0,"data-frame":n||void 0,"data-radius":c,style:{height:ot(l??s),objectFit:o,width:ot(l??u),...h}};return!y||v===y?Q("span",{"aria-hidden":t?void 0:!0,"aria-label":t||void 0,className:b("aui-widget-image","aui-image-fallback",e),"data-slot":"agent-ui-image-fallback",role:t?"img":void 0,...G,children:Q(ud,{"aria-hidden":"true"})}):Q("img",{alt:t,className:b("aui-widget-image",e),src:y,onError:R=>{P(y),d?.(R)},...G,...g})}function ar({children:t,className:e,size:o}){return Q("span",{className:b("aui-widget-icon",e),style:o!==void 0?{height:o,width:o}:void 0,children:t})}function or({className:t,...e}){return Q("div",{className:b("aui-widget-actions",t),...e})}function nr(t){return Q(be,{...t})}import{jsx as Be}from"react/jsx-runtime";function La({children:t,className:e,component:o}){return Be("div",{className:b("aui-row",e),"data-align":o.align,"data-gap":o.gap,"data-justify":o.justify,"data-slot":"agent-ui-row",children:t})}function Fa({children:t,className:e,component:o}){return Be("div",{className:b("aui-col",e),"data-align":o.align,"data-gap":o.gap,"data-justify":o.justify,"data-slot":"agent-ui-col",children:t})}function Ma({children:t,className:e,component:o}){let r=o.columns===1&&o.children.length>1&&o.children.every(s=>s.kind==="record-card"),n=r?fd.toArray(t).flatMap((s,d)=>d===0?[s]:[Be(bt,{className:"aui-record-list__divider"},`${o.id}-record-divider-${o.children[d]?.id}`),s]):t;return Be("div",{className:b("aui-grid",e),"data-columns":o.columns,"data-gap":o.gap,"data-presentation":r?"record-list":void 0,"data-slot":"agent-ui-grid",children:n})}function Da({children:t,className:e,component:o}){return Be(k,{className:e,description:o.description,title:o.title,variant:o.variant,children:Be("div",{className:"aui-card-stack","data-slot":"agent-ui-card-stack",children:t})})}function Ba({className:t,component:e}){return Be("span",{"aria-hidden":"true",className:b("aui-spacer",t),"data-size":e.size??"auto","data-slot":"agent-ui-spacer"})}function za({className:t}){return Be(bt,{className:t})}import{ChevronLeft as wd,ChevronRight as vd,MapPin as kd,StarFill as dr}from"@gravity-ui/icons";import{Modal as Xt}from"@heroui/react";import{AnimatePresence as rr,LazyMotion as Sd,domAnimation as Nd,m as Pd,useIsPresent as Vd,useReducedMotion as _d}from"motion/react";import{Suspense as Td,forwardRef as Id,lazy as Ad,useCallback as _e,useEffect as ir,useId as Rd,useMemo as pr,useRef as Wa,useState as nt}from"react";import{createContext as bd,useContext as yd}from"react";var xd=bd(void 0);function Yt(){return yd(xd)}import{Fragment as Kd,jsx as x,jsxs as E}from"react/jsx-runtime";var Ld=new Intl.NumberFormat(void 0,{maximumFractionDigits:1,minimumFractionDigits:1}),sr=new Intl.NumberFormat(void 0,{maximumFractionDigits:0}),Fd={duration:.32,ease:[.22,1,.36,1]},Md={duration:0},Dd={center:{opacity:1,transform:"translateX(0px)"},enter:t=>({opacity:0,transform:`translateX(${t*24}px)`}),exit:t=>({opacity:0,transform:`translateX(${t*-24}px)`})},Bd={center:{opacity:1,transform:"translateX(0px)"},enter:t=>({opacity:0,transform:`translateX(${t*32}px)`}),exit:t=>({opacity:0,transform:`translateX(${t*-32}px)`})},zd=Ad(async()=>({default:(await import("./interactive-map-surface-WC2LPCR7.js")).InteractiveMapSurface}));function Jt(t){return Ld.format(t)}function cr(t){return t.trim().split(/\s+/).slice(0,2).map(e=>e[0]?.toLocaleUpperCase()??"").join("")}function Wd(){return typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0}function Ed({className:t,location:e}){let o=e.images?.[0],[r,n]=nt();return!o||r===o.src?x("span",{"aria-hidden":"true",className:b(t,"aui-map__image-fallback"),children:cr(e.title)}):x(Ve,{alt:o.alt,className:t,decoding:"async",loading:"lazy",referrerPolicy:"no-referrer",src:o.src,onError:()=>n(o.src)})}function Gd(t){return t?.split(",").at(-1)?.trim()}var lr=Id(function({children:e,className:o,direction:r,transition:n,variants:s},d){let c=Vd();return x(Pd.div,{ref:d,animate:"center","aria-hidden":c?void 0:!0,className:o,custom:r,"data-direction":r,exit:"exit",inert:c?void 0:!0,initial:"enter",transition:n,variants:s,children:e})});function mr({location:t,showCategory:e=!0}){let o=t.rating===void 0?void 0:`${Jt(t.rating)} out of 5${t.reviewCount===void 0?"":`, ${sr.format(t.reviewCount)} reviews`}`;return E("span",{className:"aui-map__metadata","data-slot":"agent-ui-map-location-metadata",children:[t.rating!==void 0?E("span",{"aria-label":o,className:"aui-map__rating",children:[x("span",{"aria-hidden":"true",children:Jt(t.rating)}),x(dr,{"aria-hidden":"true"})]}):null,t.reviewCount!==void 0?E("span",{"aria-hidden":"true",children:[sr.format(t.reviewCount)," reviews"]}):null,e&&t.category?E(Kd,{children:[x("span",{"aria-hidden":"true",className:"aui-map__metadata-separator",children:"\xB7"}),x("span",{children:t.category})]}):null]})}function Ud({component:t,onSelect:e,selectedLocationId:o}){let r=Yt(),n=co(t,r?.maxZoom),s=pr(()=>new Map(t.locations.map(d=>[d.id,d])),[t.locations]);return E("div",{"aria-label":`${t.title} map with ${t.locations.length} locations`,className:"aui-map__surface","data-renderer":"host-tiles","data-slot":"agent-ui-map-surface",role:"region",children:[E("svg",{"aria-hidden":"true",className:"aui-map__fallback",preserveAspectRatio:"none",viewBox:"0 0 800 520",children:[x("path",{d:"M-40 430C130 270 210 310 360 190S590 35 850 110"}),x("path",{d:"M-20 120C180 210 255 150 405 265S650 470 830 390"}),x("path",{d:"M80 -30C125 120 250 205 220 560"}),x("path",{d:"M590 -30C520 120 530 290 690 560"})]}),r?x("div",{"aria-hidden":"true",className:"aui-map__tiles",children:n.tiles.map(d=>{let c;try{c=r.getTileUrl({x:d.xIndex,y:d.yIndex,zoom:d.zoom})}catch{c=void 0}return c?x("img",{alt:"",className:"aui-map__tile",decoding:"async",draggable:!1,loading:"eager",referrerPolicy:"no-referrer",src:c,style:{left:`calc(50% + ${d.x}px)`,top:`calc(var(--map-center-y) + ${d.y}px)`},onError:l=>{l.currentTarget.hidden=!0}},d.key):null})}):null,x("div",{className:"aui-map__markers","data-slot":"agent-ui-map-markers",children:n.points.map((d,c)=>{let l=s.get(d.id);if(!l)return null;let y=l.id===o,h=l.rating!==void 0?Jt(l.rating):l.relevance!==void 0?`${Math.round(l.relevance*100)}%`:String(c+1),u=`Select ${l.title} on map${l.rating===void 0?"":`, rated ${Jt(l.rating)} out of 5`}`;return E("button",{"aria-label":u,"aria-pressed":y,className:"aui-map__marker","data-renderer":"host-tiles","data-selected":y,"data-slot":"agent-ui-map-marker",type:"button",style:{"--map-marker-x":`${d.x}px`,"--map-marker-y":`${d.y}px`},onClick:()=>e(l),children:[x(dr,{"aria-hidden":"true"}),x("span",{children:h})]},l.id)})}),x("span",{className:"aui-map__attribution","data-slot":"agent-ui-map-attribution",children:r?.attribution??"Location preview"})]})}function Hd(t){return Yt()?x(Ud,{...t}):x(Td,{fallback:x("div",{"aria-label":"Loading interactive map",className:"aui-map__surface aui-map__surface--loading","data-slot":"agent-ui-map-surface",role:"status",children:x("span",{})}),children:x(zd,{...t})})}function Zd({location:t,onKeyDown:e,onOpen:o,selected:r,setRef:n}){let s=Gd(t.address),d=[t.category,s].filter(Boolean).join(" \xB7 ");return E("button",{ref:n,"aria-current":r?"true":void 0,"aria-label":`Open details for ${t.title}`,className:"aui-map__result","data-selected":r,"data-slot":"agent-ui-map-result",type:"button",onClick:o,onKeyDown:e,children:[x(Ed,{className:"aui-map__result-image",location:t}),E("span",{className:"aui-map__result-content",children:[x("span",{className:"aui-map__result-title",children:t.title}),d?x("span",{className:"aui-map__result-subtitle",children:d}):null,x(mr,{location:t,showCategory:!1})]}),t.relevance!==void 0?x("span",{className:"aui-map__result-aside",children:E("span",{className:"aui-map__relevance","data-slot":"agent-ui-map-relevance",children:[Math.round(t.relevance*100),"% match"]})}):null]})}function $d({component:t,currentIndex:e,direction:o,headingId:r,location:n,onNavigate:s}){let d=Yt(),c=_d(),l=n.images?.[0],[y,h]=nt(),u=l&&l.src!==y,g=c?0:o,v=c?Md:Fd;return x(Sd,{features:Nd,children:E("div",{className:"aui-map-detail__content",children:[x("div",{className:"aui-map-detail__hero","data-has-image":!!u,children:x(rr,{custom:g,initial:!1,mode:"popLayout",children:E(lr,{className:"aui-map-detail__hero-slide",direction:g,transition:v,variants:Dd,children:[u?x(Ve,{alt:l.alt,decoding:"async",referrerPolicy:"no-referrer",src:l.src,onError:()=>h(l.src)}):x("span",{"aria-hidden":"true",className:"aui-map-detail__hero-fallback",children:cr(n.title)}),n.images&&n.images.length>1?E("span",{className:"aui-map-detail__image-count",children:[x("span",{"aria-hidden":"true",children:"\u25A7"})," ",n.images.length]}):null]},n.id)})}),x(Xt.CloseTrigger,{"aria-label":"Close location details",className:"aui-map-detail__close"}),x(rr,{custom:g,initial:!1,mode:"popLayout",children:E(lr,{className:"aui-map-detail__body",direction:g,transition:v,variants:Bd,children:[E("div",{className:"aui-map-detail__heading",children:[x("h2",{id:r,children:n.title}),x(mr,{location:n}),n.address?x("p",{className:"aui-map-detail__address",children:n.address}):null]}),n.actions?.length?x("div",{className:"aui-map-detail__actions","data-slot":"agent-ui-map-detail-actions",children:n.actions.map((P,G)=>{let R=P.href.startsWith("http://")||P.href.startsWith("https://");return x("a",{className:"aui-button","data-size":"md","data-variant":P.variant??(G===0?"primary":"outline"),href:P.href,referrerPolicy:R?"no-referrer":void 0,rel:R?"noopener noreferrer":void 0,target:R?"_blank":void 0,children:P.label},P.id)})}):null,n.notes?E("section",{className:"aui-map-detail__notes","data-slot":"agent-ui-map-detail-notes",children:[x("span",{children:"Notes"}),x("p",{children:Je(n.notes)})]}):null]},n.id)}),E("footer",{className:"aui-map-detail__footer",children:[x("span",{className:"aui-map-detail__provider",children:d?.attribution??"OpenStreetMap \xB7 CARTO"}),E("div",{className:"aui-map-detail__navigation",children:[x("button",{"aria-label":"Previous location",disabled:e===0,type:"button",onClick:()=>s(e-1),children:x(wd,{"aria-hidden":"true"})}),E("span",{"aria-live":"polite",children:[e+1," of ",t.locations.length]}),x("button",{"aria-label":"Next location",disabled:e===t.locations.length-1,type:"button",onClick:()=>s(e+1),children:x(vd,{"aria-hidden":"true"})})]})]})]})})}function ur({className:t,component:e,onSelect:o}){let[r,n]=nt(()=>pa(e)),[s,d]=nt(!1),[c,l]=nt(1),[y,h]=nt(),u=Rd(),g=Wa(new Map),v=Wa(void 0),P=Wa(r),G=pr(()=>new Map(e.locations.map(S=>[S.id,S])),[e.locations]),R=pa(e),V=G.has(r)?r:R,K=Math.max(0,e.locations.findIndex(S=>S.id===V)),$=e.locations[K],ke=`${u}-${$.id}`;ir(()=>{P.current=V},[V]),ir(()=>()=>{v.current!==void 0&&window.clearTimeout(v.current)},[]);let Vt=_e(S=>{h(se(S))},[]),_t=_e(S=>{o?.(A(e,{...S}))},[e,o]),Tt=_e((S,O=!1)=>{typeof window>"u"||window.requestAnimationFrame(()=>{let U=g.current.get(S);U?.scrollIntoView?.({behavior:Wd()?"auto":"smooth",block:"nearest",inline:"center"}),O&&U?.focus()})},[]),Ye=_e((S,O={})=>{P.current=S.id,n(S.id),_t(S),O.scroll!==!1&&Tt(S.id,O.focus),O.openDetails&&d(!0)},[_t,Tt]),Ya=_e((S,O=!1)=>{let U=e.locations[S];U&&Ye(U,{focus:O,scroll:!0})},[e.locations,Ye]),Jr=_e((S,O)=>{let U;S.key==="ArrowLeft"&&(U=Math.max(0,O-1)),S.key==="ArrowRight"&&(U=Math.min(e.locations.length-1,O+1)),S.key==="Home"&&(U=0),S.key==="End"&&(U=e.locations.length-1),!(U===void 0||U===O)&&(S.preventDefault(),Ya(U,!0))},[e.locations.length,Ya]),Qr=_e(S=>{let O=S.currentTarget;v.current!==void 0&&window.clearTimeout(v.current),v.current=window.setTimeout(()=>{let U=O.getBoundingClientRect(),oi=U.left+U.width/2,Xe,Xa=Number.POSITIVE_INFINITY;for(let Ja of e.locations){let Qa=g.current.get(Ja.id);if(!Qa)continue;let eo=Qa.getBoundingClientRect(),to=Math.abs(eo.left+eo.width/2-oi);to<Xa&&(Xa=to,Xe=Ja)}Xe&&Xe.id!==P.current&&(P.current=Xe.id,n(Xe.id),_t(Xe))},120)},[e.locations,_t]),ei=_e(S=>{d(S),S||Tt(P.current,!0)},[Tt]),ti=_e(S=>{let O=e.locations[S];O&&(l(S<K?-1:1),Ye(O,{scroll:!0}))},[K,e.locations,Ye]),ai=E("span",{className:"aui-map__card-title",children:[x(kd,{"aria-hidden":"true"}),x("span",{children:e.title})]});return x(k,{className:b("aui-map-card",t),description:e.description,title:ai,children:E("div",{ref:Vt,className:"aui-map","data-slot":"agent-ui-map",children:[x(Hd,{component:e,selectedLocationId:V,onSelect:S=>Ye(S,{scroll:!0})}),x("div",{className:"aui-map__rail","data-slot":"agent-ui-map-results",onScroll:Qr,children:x("ul",{"aria-label":`${e.title} results`,children:e.locations.map((S,O)=>x("li",{children:x(Zd,{location:S,selected:S.id===V,setRef:U=>{U?g.current.set(S.id,U):g.current.delete(S.id)},onKeyDown:U=>Jr(U,O),onOpen:()=>Ye(S,{openDetails:!0,scroll:!1})})},S.id))})}),E("span",{"aria-live":"polite",className:"aui-map__live-region",children:["Result ",K+1," of ",e.locations.length,", ",$.title]}),x(Xt.Backdrop,{className:"aui-map-detail__backdrop",isOpen:s,UNSTABLE_portalContainer:y,variant:"blur",onOpenChange:ei,children:x(Xt.Container,{className:"aui-map-detail__container",placement:"center",size:"cover",children:x(Xt.Dialog,{"aria-labelledby":ke,className:"aui-map-detail__dialog","data-slot":"agent-ui-map-detail",children:x($d,{component:e,currentIndex:K,direction:c,headingId:ke,location:$,onNavigate:ti})})})})]})})}import{Modal as rt}from"@heroui/react";import{useCallback as jd,useState as hr}from"react";import{StarFill as Od}from"@gravity-ui/icons";import{jsx as yt,jsxs as Ea}from"react/jsx-runtime";var gr=new Intl.NumberFormat(void 0,{maximumFractionDigits:1}),Cr=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function Qt({className:t,count:e,value:o}){let r=Math.min(Math.max(o,0),5),n=`Rated ${gr.format(r)} out of 5${e===void 0?"":`, ${Cr.format(e)} reviews`}`,s=Array.from({length:5},(d,c)=>yt(Od,{"aria-hidden":"true"},c));return Ea("span",{"aria-label":n,className:b("aui-rating",t),"data-slot":"agent-ui-rating",role:"img",children:[Ea("span",{"aria-hidden":"true",className:"aui-rating__stars",children:[yt("span",{className:"aui-rating__track",children:s}),yt("span",{className:"aui-rating__fill",style:{width:`${r/5*100}%`},children:yt("span",{className:"aui-rating__track",children:s})})]}),yt("span",{"aria-hidden":"true",className:"aui-rating__value",children:gr.format(r)}),e===void 0?null:Ea("span",{"aria-hidden":"true",className:"aui-rating__count",children:["(",Cr.format(e),")"]})]})}import{jsx as H,jsxs as it}from"react/jsx-runtime";var fr=new Map;function qd(t){let e=t.currency??"USD",o=fr.get(e);return o||(o=new Intl.NumberFormat(void 0,{currency:e,style:"currency"}),fr.set(e,o)),o.format(t.amount)}function yr({actions:t,component:e,onAction:o,onSelect:r}){return H("span",{className:"aui-product__actions","data-slot":"agent-ui-product-actions",children:t.map(n=>H(be,{variant:n.variant,onClick:()=>{let s=le(e.id,n);s&&o?o(s):r?.(A(e,n))},children:n.label},n.id))})}function br({component:t,layout:e,onAction:o,onSelect:r,product:n}){let[s,d]=hr(),[c,l]=hr(!1),y=jd(u=>{d(se(u))},[]),h=n.badge?H("span",{className:"aui-product__badge","data-slot":"agent-ui-product-badge","data-tone":n.badge.tone??"default",children:n.badge.label}):null;return it("article",{className:"aui-product","data-layout":e,"data-slot":"agent-ui-product",children:[c?it("span",{className:"aui-product__media","data-slot":"agent-ui-product-media",children:[H(ue,{alt:n.image.alt,className:"aui-product__image",src:void 0}),h]}):it(rt,{children:[it(rt.Trigger,{ref:y,"aria-label":`Open ${n.image.alt}`,className:"aui-product__media","data-slot":"agent-ui-product-media",children:[H(ue,{alt:n.image.alt,className:"aui-product__image",loading:"lazy",src:n.image.src,onLoadFailure:()=>l(!0)}),h]}),H(rt.Backdrop,{className:"aui-image-modal__backdrop",UNSTABLE_portalContainer:s,variant:"blur",children:H(rt.Container,{className:"aui-image-modal__container",placement:"center",children:it(rt.Dialog,{"aria-label":n.image.alt,className:"aui-image-modal__dialog","data-slot":"agent-ui-image-modal",children:[H(rt.CloseTrigger,{className:"aui-image-modal__close"}),H("img",{alt:n.image.alt,className:"aui-image-modal__image",src:n.image.src})]})})})]}),it("span",{className:"aui-product__header",children:[n.meta?H("span",{className:"aui-product__meta",children:n.meta}):null,H("span",{className:"aui-product__price","data-slot":"agent-ui-product-price",children:qd(n.price)})]}),H("span",{className:"aui-product__name","data-slot":"agent-ui-product-name",children:n.name}),n.rating?H(Qt,{className:"aui-product__rating",count:n.rating.count,value:n.rating.value}):null,n.description?H("span",{className:"aui-product__description",children:n.description}):null,n.actions?.length?H(yr,{actions:n.actions,component:t,onAction:o,onSelect:r}):null]})}function xr({className:t,component:e,onAction:o,onSelect:r}){let n=e.products.length===1?"spotlight":"grid",s=e.actions?.length?H("div",{className:"aui-product-card__footer","data-slot":"agent-ui-product-card-footer",children:H(yr,{actions:e.actions,component:e,onAction:o,onSelect:r})}):null;return H(k,{className:b("aui-product-card",`aui-product-card--${n}`,t),description:e.description,footer:s,title:e.title,variant:e.variant,variantScope:"component",children:n==="spotlight"?H(br,{component:e,layout:"spotlight",product:e.products[0],onAction:o,onSelect:r}):H("div",{className:"aui-product-card__grid","data-slot":"agent-ui-product-card-grid",children:e.products.map(d=>H(br,{component:e,layout:"grid",product:d,onAction:o,onSelect:r},d.id))})})}import{Modal as st}from"@heroui/react";import{useCallback as Yd,useState as wr}from"react";import{Fragment as Xd,jsx as Y,jsxs as Ke}from"react/jsx-runtime";function vr({className:t,component:e,onAction:o,onSelect:r}){let n=e.layout??"details",[s,d]=wr(),[c,l]=wr(!1),y=Yd(g=>{d(se(g))},[]),h=e.status?Y("span",{className:"aui-record__status","data-slot":"agent-ui-record-status","data-tone":e.status.tone??"default",children:e.status.label}):null,u=e.actions?.length?Y("div",{className:"aui-record__actions","data-slot":"agent-ui-record-actions",children:e.actions.map(g=>Y(be,{variant:g.variant,onClick:()=>{let v=le(e.id,g);v&&o?o(v):r?.(A(e,g))},children:g.label},g.id))}):null;return Y(k,{actions:n==="compact"?h:void 0,className:b("aui-record-card",`aui-record-card--${n}`,t),description:e.description,footer:u,title:e.title,variant:e.variant,children:Ke(Ot,{className:"aui-record",gap:n==="compact"?3:4,children:[n==="media"&&e.image&&c?Y(Ve,{alt:e.image.alt,className:"aui-record__media",radius:"xl",src:void 0,width:"100%"}):null,n==="media"&&e.image&&!c?Ke(st,{children:[Y(st.Trigger,{ref:y,"aria-label":`Open ${e.image.alt}`,className:"aui-record__media-trigger","data-slot":"agent-ui-record-media-trigger",children:Y(Ve,{alt:e.image.alt,className:"aui-record__media",loading:"lazy",radius:"xl",src:e.image.src,width:"100%",onError:()=>l(!0)})}),Y(st.Backdrop,{className:"aui-image-modal__backdrop",UNSTABLE_portalContainer:s,variant:"blur",children:Y(st.Container,{className:"aui-image-modal__container",placement:"center",children:Ke(st.Dialog,{"aria-label":e.image.alt,className:"aui-image-modal__dialog","data-slot":"agent-ui-image-modal",children:[Y(st.CloseTrigger,{className:"aui-image-modal__close"}),Y("img",{alt:e.image.alt,className:"aui-image-modal__image",src:e.image.src})]})})})]}):null,e.image&&n!=="media"||e.eyebrow||h&&n!=="compact"?Ke(Kt,{align:"center",gap:3,children:[e.image&&n!=="media"?Y(Ve,{frame:!0,alt:e.image.alt,radius:"xl",size:48,src:e.image.src}):null,e.eyebrow?Y(qt,{className:"aui-record__eyebrow",value:e.eyebrow}):null,h&&n!=="compact"?Ke(Xd,{children:[Y(jt,{}),h]}):null]}):null,e.fields.length>0?Y("dl",{className:"aui-record__fields","data-slot":"agent-ui-record-fields",children:e.fields.map(g=>Ke("div",{"data-slot":"agent-ui-record-field",children:[Ke("dt",{children:[g.icon?Y(q,{"data-slot":"agent-ui-record-field-icon",name:g.icon}):null,g.label]}),Y("dd",{"data-tone":g.tone??"default",children:g.value})]},g.label))}):null]})})}import{Check as Jd}from"@gravity-ui/icons";var kr={Actions:or,Box:Qn,Button:nr,Caption:qt,Card:Jn,Col:Ot,Divider:bt,Icon:ar,Image:Ve,Row:Kt,Spacer:jt,Text:er,Title:tr},i=kr;var Sr=new Map;function ea(t,e){let o=Sr.get(e);return o||(o=new Intl.NumberFormat(void 0,{currency:e,style:"currency"}),Sr.set(e,o)),o.format(t)}import{jsx as ta}from"react/jsx-runtime";function ge({action:t,component:e,onAction:o,onSelect:r}){return ta(i.Button,{variant:t.variant,onClick:()=>{let n=le(e.id,t);n&&o?o(n):r?.(A(e,{actionId:t.id}))},children:t.label})}function lt({name:t,src:e}){return e?ta(i.Image,{frame:!0,alt:t,radius:"full",size:44,src:e}):ta(i.Box,{align:"center",className:"aui-composition-avatar",height:44,justify:"center",radius:"full",width:44,children:ta(i.Text,{value:t.slice(0,1).toUpperCase(),weight:"semibold"})})}import{jsx as z,jsxs as Te}from"react/jsx-runtime";function Ga({emphasis:t,label:e,value:o}){return Te(i.Row,{children:[z(i.Text,{value:e,weight:t?"semibold":"normal"}),z(i.Spacer,{}),z(i.Text,{value:o,weight:t?"semibold":"normal"})]})}function Nr({className:t,component:e,onAction:o,onSelect:r}){return Te(i.Card,{className:b("aui-composition-card aui-purchase-items",t),"data-component-kind":e.kind,size:"sm",children:[z(i.Col,{gap:3,children:e.items.map(n=>Te(i.Row,{align:"center",gap:3,children:[n.image?z(i.Image,{alt:n.image.alt,radius:"xl",size:48,src:n.image.src}):null,Te(i.Col,{flex:1,gap:0,children:[z(i.Text,{value:n.name,weight:"semibold"}),n.description?z(i.Caption,{value:n.description}):null]}),n.quantity&&n.quantity>1?z(i.Caption,{value:`\xD7${n.quantity}`}):null,n.price!==void 0?z(i.Text,{value:ea(n.price,e.currency)}):null]},n.id))}),z(i.Divider,{flush:!0}),z(i.Col,{gap:1,children:e.totals.map(n=>z(Ga,{emphasis:n.emphasis,label:n.label,value:ea(n.amount,e.currency)},n.label))}),e.actions?.length?z(i.Actions,{children:e.actions.map(n=>z(ge,{action:n,component:e,onAction:o,onSelect:r},n.id))}):null]})}function Pr({className:t,component:e,onAction:o,onSelect:r}){return Te(i.Card,{className:b("aui-composition-card aui-purchase-complete",t),"data-component-kind":e.kind,size:"sm",children:[Te(i.Row,{align:"center",gap:2,children:[z("span",{"aria-hidden":"true",className:"aui-purchase-complete__check",children:z(Jd,{className:"size-3.5"})}),z(i.Text,{color:"success",value:e.title,weight:"medium"})]}),z(i.Divider,{flush:!0}),Te(i.Row,{gap:3,children:[e.product.image?z(i.Image,{alt:e.product.image.alt,fit:"contain",radius:"xl",size:80,src:e.product.image.src}):null,Te(i.Col,{gap:1,children:[z(i.Title,{value:e.product.name}),e.product.description?z(i.Caption,{value:e.product.description}):null]})]}),Te(i.Col,{gap:2,children:[e.details.map(n=>z(Ga,{label:n.label,value:n.value},n.label)),e.paid?z(Ga,{emphasis:!0,label:"Paid",value:ea(e.paid.amount,e.paid.currency)}):null]}),e.action?z(ge,{action:e.action,component:e,onAction:o,onSelect:r}):null]})}import{jsx as F,jsxs as re}from"react/jsx-runtime";function Vr({className:t,component:e,onAction:o,onSelect:r}){return re(i.Card,{className:b("aui-composition-card aui-create-event",t),"data-component-kind":e.kind,size:"md",children:[re(i.Row,{align:"start",gap:4,children:[re(i.Col,{align:"center",gap:0,width:64,children:[F(i.Caption,{value:e.date.weekday}),F(i.Title,{size:"3xl",value:e.date.day,weight:"normal"})]}),F(i.Col,{flex:1,gap:2,children:e.events.map(n=>re(i.Row,{align:"center",className:"aui-create-event__item","data-status":n.status??"existing","data-tone":n.tone??"default",gap:3,padding:{x:3,y:2.5},radius:"xl",children:[F("span",{className:"aui-create-event__marker"}),re(i.Col,{gap:0,children:[F(i.Text,{value:n.title,weight:"semibold"}),F(i.Caption,{value:n.time})]})]},n.id))})]}),e.actions?.length?F(i.Actions,{children:e.actions.map(n=>F(ge,{action:n,component:e,onAction:o,onSelect:r},n.id))}):null]})}function _r({className:t,component:e}){return F(i.Card,{className:b("aui-composition-card aui-view-event",t),"data-component-kind":e.kind,size:"sm",children:re(i.Row,{align:"stretch",gap:3,children:[F("span",{className:"aui-view-event__marker","data-tone":e.tone??"accent"}),re(i.Col,{flex:1,gap:1,children:[re(i.Row,{children:[F(i.Caption,{value:e.date}),F(i.Spacer,{}),F(i.Text,{color:"accent",size:"sm",value:e.time})]}),F(i.Title,{value:e.title})]})]})})}function Tr({className:t,component:e,onAction:o,onSelect:r}){return re(i.Card,{className:b("aui-composition-card aui-event-session",t),"data-component-kind":e.kind,size:"md",children:[re(i.Col,{gap:1,children:[e.eyebrow?F(i.Caption,{color:"warning",value:e.eyebrow}):null,F(i.Title,{value:e.title}),e.description?F(i.Caption,{value:e.description}):null]}),F(i.Divider,{flush:!0}),re(i.Row,{align:"center",gap:3,children:[F("span",{"aria-hidden":"true",className:"aui-event-session__pin",children:"\u25CF"}),re(i.Col,{gap:0,children:[F(i.Text,{value:e.location,weight:"semibold"}),F(i.Caption,{value:e.time})]}),F(i.Spacer,{}),e.action?F(ge,{action:e.action,component:e,onAction:o,onSelect:r}):null]}),e.speakers.map(n=>re(i.Row,{align:"center",gap:3,children:[F(lt,{name:n.name,src:n.image?.src}),re(i.Col,{gap:0,children:[F(i.Text,{value:n.name,weight:"semibold"}),F(i.Caption,{value:n.role})]})]},`${n.name}-${n.role}`))]})}import{jsx as B,jsxs as Ce}from"react/jsx-runtime";function Ir({className:t,component:e,onAction:o,onSelect:r}){return Ce(i.Card,{className:b("aui-composition-card aui-playlist",t),"data-component-kind":e.kind,size:"sm",children:[e.cover?B(i.Image,{alt:e.cover.alt,height:132,radius:"xl",src:e.cover.src,width:"100%"}):null,B(i.Col,{gap:3,children:e.tracks.map((n,s)=>Ce(i.Row,{align:"center",gap:3,children:[B(i.Caption,{value:s+1}),n.image?B(i.Image,{alt:n.image.alt,radius:"xl",size:44,src:n.image.src}):null,Ce(i.Col,{flex:1,gap:0,children:[B(i.Text,{value:n.title,weight:"semibold"}),B(i.Caption,{value:n.artist})]}),n.action?B(ge,{action:n.action,component:e,onAction:o,onSelect:r}):null]},n.id))}),e.actions?.length?B(i.Actions,{children:e.actions.map(n=>B(ge,{action:n,component:e,onAction:o,onSelect:r},n.id))}):null]})}function Ar({className:t,component:e}){return Ce(i.Card,{className:b("aui-composition-card aui-channel-message",t),"data-component-kind":e.kind,size:"md",children:[Ce(i.Row,{children:[B(i.Text,{value:e.channel,weight:"medium"}),B(i.Spacer,{}),B(i.Caption,{value:e.timestamp})]}),B(i.Divider,{flush:!0}),Ce(i.Row,{align:"start",gap:4,children:[B(lt,{name:e.author.name,src:e.author.image?.src}),Ce(i.Col,{flex:1,gap:2,children:[B(i.Text,{value:e.author.name,weight:"semibold"}),B("p",{className:"aui-channel-message__content",children:e.content}),e.attachments?.length?B(i.Row,{className:"aui-channel-message__attachments",gap:2,children:e.attachments.map(o=>o.image?B(i.Image,{alt:o.image.alt,radius:"lg",size:64,src:o.image.src,title:o.name},o.id):B(i.Image,{alt:o.name,className:"aui-channel-message__file",radius:"lg",size:64,title:o.name},o.id))}):null]})]})]})}function Rr({className:t,component:e}){return Ce(i.Card,{className:b("aui-composition-card aui-player-card",t),"data-component-kind":e.kind,padding:8,size:"md",theme:"dark",children:[e.backgroundImage?B(i.Image,{alt:e.backgroundImage.alt,className:"aui-player-card__background",src:e.backgroundImage.src}):null,Ce(i.Row,{align:"center",className:"aui-player-card__content",children:[B(i.Box,{minHeight:160,width:"40%"}),Ce(i.Col,{flex:"auto",gap:3,children:[B(i.Title,{color:"white",size:"xl",value:`${e.playerName}${e.jerseyNumber?` (#${e.jerseyNumber})`:""}`,weight:"normal"}),B(i.Row,{className:"aui-player-card__stats",children:e.stats.map(o=>Ce(i.Col,{flex:1,gap:0,children:[B(i.Text,{value:o.value,weight:"semibold"}),B(i.Caption,{color:"white",value:o.label})]},o.label))})]})]})]})}import{jsx as xt,jsxs as Lr}from"react/jsx-runtime";function Fr({className:t,component:e,onAction:o,onSelect:r}){return Lr(i.Card,{className:b("aui-composition-card aui-enable-notification",t),"data-component-kind":e.kind,size:"sm",children:[Lr(i.Col,{align:"center",gap:3,padding:3,children:[xt("span",{"aria-hidden":"true",className:"aui-enable-notification__icon",children:"\u2713"}),xt(i.Title,{align:"center",value:e.title}),e.description?xt(i.Caption,{value:e.description}):null]}),xt(i.Row,{className:"aui-enable-notification__actions",children:e.actions.map(n=>xt(ge,{action:n,component:e,onAction:o,onSelect:r},n.id))})]})}import{Tabs as dt}from"@heroui/react";import{jsx as wt,jsxs as Mr}from"react/jsx-runtime";function Dr({className:t,component:e,renderPanel:o}){return wt(k,{className:b("aui-product-signals",t),"data-component-kind":e.kind,description:e.description,title:e.title,children:Mr(dt,{defaultSelectedKey:e.defaultValue??e.tabs[0]?.id,variant:"secondary",children:[wt(dt.ListContainer,{children:wt(dt.List,{"aria-label":`${e.title} views`,children:e.tabs.map(r=>Mr(dt.Tab,{id:r.id,children:[r.label,wt(dt.Indicator,{})]},r.id))})}),e.tabs.map(r=>wt(dt.Panel,{className:"aui-product-signals__panel",id:r.id,children:o(r.component)},r.id))]})})}import{jsx as W,jsxs as he}from"react/jsx-runtime";function Br({className:t,component:e}){return he(i.Card,{className:b("aui-composition-card aui-flight-tracker",t),"data-component-kind":e.kind,size:"md",theme:"dark",children:[he(i.Row,{align:"center",gap:2,children:[e.airline.logo?W(i.Box,{align:"center",className:"aui-flight-tracker__logo",height:28,justify:"center",radius:"full",width:28,children:W(i.Image,{alt:e.airline.logo.alt,fit:"contain",size:18,src:e.airline.logo.src})}):null,W(i.Text,{value:e.flightNumber,weight:"semibold"}),W(i.Spacer,{}),W(i.Caption,{color:"white",value:e.date})]}),W(i.Divider,{flush:!0}),he(i.Col,{gap:3,children:[he(i.Row,{align:"center",children:[W(i.Text,{size:"lg",value:e.origin.label}),W(i.Spacer,{}),W(i.Text,{size:"lg",value:e.destination.label})]}),W("div",{"aria-label":`${e.progress??0}% complete`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":e.progress??0,className:"aui-flight-tracker__progress",role:"progressbar",children:W("span",{style:{width:`${e.progress??0}%`}})}),he(i.Row,{align:"center",children:[he(i.Col,{gap:0,children:[W(i.Text,{value:e.origin.time}),e.origin.status?W(i.Caption,{color:"white",value:e.origin.status}):null]}),W(i.Spacer,{}),he(i.Col,{align:"end",gap:0,children:[W(i.Text,{value:e.destination.time}),e.destination.status?W(i.Caption,{color:"white",value:e.destination.status}):null]})]})]})]})}function zr({className:t,component:e}){return he(i.Card,{className:b("aui-composition-card aui-ride-status",t),"data-component-kind":e.kind,size:"sm",children:[W(i.Title,{size:"xl",value:e.eta}),he(i.Row,{align:"center",gap:3,children:[he(i.Col,{gap:0,children:[W(i.Caption,{value:"Pick up"}),W(i.Text,{truncate:!0,value:e.pickup})]}),W(i.Spacer,{}),he(i.Col,{align:"end",gap:0,children:[W(i.Caption,{value:"Driver"}),W(i.Text,{value:e.driver.name})]}),W(lt,{name:e.driver.name,src:e.driver.image?.src})]})]})}import{useState as Qd}from"react";import{Fragment as je,jsx as N,jsxs as ie}from"react/jsx-runtime";function Oe(){return N("path",{d:"M13.2 25.5h20.6a6.7 6.7 0 0 0 .2-13.4 10.2 10.2 0 0 0-19.2-2.4 8 8 0 0 0-1.6 15.8Z",fill:"currentColor",opacity:".94"})}function Wr({small:t=!1}){return ie("g",{transform:t?"translate(-5 -5) scale(.72)":void 0,children:[N("circle",{cx:"24",cy:"20",fill:"currentColor",r:"7"}),N("path",{d:"M24 5v5m0 20v5M9 20h5m20 0h5M13.4 9.4l3.5 3.5m14.2 14.2 3.5 3.5m0-21.2-3.5 3.5M16.9 27.1l-3.5 3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2.4"})]})}var ep={clear:N(Wr,{}),cloudy:N(Oe,{}),drizzle:ie(je,{children:[N(Oe,{}),N("path",{d:"m17 30-2 4m9-4-2 4m9-4-2 4",stroke:"currentColor",strokeLinecap:"round"})]}),fog:ie(je,{children:[N(Oe,{}),N("path",{d:"M10 31h27M13 36h21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})]}),"partly-cloudy":ie(je,{children:[N(Wr,{small:!0}),N(Oe,{})]}),rain:ie(je,{children:[N(Oe,{}),N("path",{d:"m16 30-3 6m11-6-3 6m11-6-3 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})]}),snow:ie(je,{children:[N(Oe,{}),N("path",{d:"M16 32h.1m8-.1h.1m8 .1h.1",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})]}),thunderstorm:ie(je,{children:[N(Oe,{}),N("path",{d:"m25 28-5 8h5l-2 6 8-10h-5l3-4Z",fill:"currentColor"})]}),unknown:ie(je,{children:[N("circle",{cx:"24",cy:"24",fill:"none",r:"15",stroke:"currentColor",strokeWidth:"2"}),N("path",{d:"M20 19a4 4 0 1 1 5 3.9c-1.6.5-2 1.4-2 3.1m0 5h.1",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2.4"})]}),windy:N("path",{d:"M7 17h24a4 4 0 1 0-4-4m-20 9h31a4 4 0 1 1-4 4M7 28h17",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2.5"})},tp={clear:"https://cdn.openai.com/API/storybook/mostly-sunny.png",cloudy:"https://cdn.openai.com/API/storybook/mixed-sun.png",drizzle:"https://cdn.openai.com/API/storybook/rain.png",fog:"https://cdn.openai.com/API/storybook/windy.png","partly-cloudy":"https://cdn.openai.com/API/storybook/mixed-sun.png",rain:"https://cdn.openai.com/API/storybook/rain.png",thunderstorm:"https://cdn.openai.com/API/storybook/rain.png",windy:"https://cdn.openai.com/API/storybook/windy.png"};function Ua({condition:t,size:e=48}){let o=tp[t],[r,n]=Qd(),s=t.replaceAll("-"," ");return o&&o!==r?N(ue,{alt:s,className:"aui-weather-icon",decoding:"async",height:e,loading:"lazy",src:o,width:e,onLoadFailure:n}):N("svg",{"aria-label":s,className:"aui-weather-icon",height:e,role:"img",viewBox:"0 0 48 48",width:e,children:ep[t]})}function aa(t,e){return`${Math.round(t)}\xB0${e==="fahrenheit"?"F":"C"}`}function Er({className:t,component:e}){return N(i.Card,{"data-component-kind":e.kind,padding:{x:4,y:8},size:"sm",theme:"dark",className:b("aui-composition-card aui-weather-card aui-weather-current",t),children:ie(i.Col,{align:"center",gap:4,children:[ie(i.Row,{align:"center",gap:3,children:[N(Ua,{condition:e.condition,size:58}),N(i.Title,{color:"white",size:"3xl",value:aa(e.temperature,e.unit),weight:"normal"})]}),N(i.Caption,{color:"white",size:"lg",value:e.location}),e.description?N(i.Text,{align:"center",color:"white",value:e.description}):null,e.details?.length?N(i.Row,{className:"aui-weather-current__details",gap:3,children:e.details.map(o=>ie(i.Col,{align:"center",gap:0,children:[N(i.Caption,{color:"white",value:o.label}),N(i.Text,{color:"white",value:o.value,weight:"semibold"})]},o.label))}):null]})})}function Gr({className:t,component:e}){return N(i.Card,{"data-component-kind":e.kind,padding:8,size:"sm",theme:"dark",className:b("aui-composition-card aui-weather-card aui-weather-forecast",t),children:ie(i.Col,{align:"center",gap:3,children:[N(Ua,{condition:e.condition,size:60}),ie(i.Row,{align:"center",gap:2,children:[N(i.Title,{color:"white",size:"2xl",value:aa(e.low,e.unit),weight:"normal"}),N(i.Title,{color:"white",size:"2xl",value:aa(e.high,e.unit),weight:"normal"})]}),N(i.Caption,{color:"white",value:e.location}),e.description?N(i.Text,{align:"center",color:"white",value:e.description}):null,N(i.Row,{className:"aui-weather-forecast__days",gap:4,children:e.forecast.map(o=>ie(i.Col,{align:"center",gap:1,children:[N(i.Caption,{truncate:!0,className:"aui-weather-forecast__day-label",color:"white",title:o.label,value:o.label}),N(Ua,{condition:o.condition,size:40}),N(i.Text,{color:"white",value:aa(o.temperature,e.unit)})]},o.label))})]})})}import{Button as ap,Calendar as ee,Checkbox as oa,CheckboxGroup as op,ComboBox as na,DateField as we,DatePicker as ra,DateRangePicker as vt,Description as np,Form as rp,Input as Zr,Label as ve,ListBox as pt,NumberField as kt,Radio as ia,RadioGroup as ip,RangeCalendar as te,Select as St,Slider as Nt,Switch as sa,Tag as Ur,TagGroup as Hr,TextArea as sp,TextField as lp,TimeField as la}from"@heroui/react";import{parseDate as dp,parseTime as pp}from"@internationalized/date";import{useCallback as cp,useRef as Za,useState as ct}from"react";import{jsx as m,jsxs as I}from"react/jsx-runtime";function mp(t){return t.kind==="checkbox-group"||t.kind==="combobox"?t.defaultValue??[]:t.kind==="slider"?t.defaultValue??t.min:t.kind==="number"?t.defaultValue??t.min??0:t.kind==="switch"?t.defaultValue??!1:t.kind==="date-range-picker"?t.defaultValue??{end:"",start:""}:t.defaultValue??""}function qe(t){if(!t)return null;try{return dp(t)}catch{return null}}function Ha(t){if(!t)return null;try{return pp(t)}catch{return null}}function up(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let e=qe(t.start),o=qe(t.end);return e&&o?{end:o,start:e}:null}function gp(t){if(t)return t.style==="currency"?{currency:t.currency,notation:t.compact?"compact":"standard",style:"currency"}:t.style==="percent"?{maximumFractionDigits:t.maximumFractionDigits,style:"percent"}:{notation:t.compact?"compact":"standard",style:"decimal"}}function Cp(){return I(ee,{"aria-label":"Choose date",children:[I(ee.Header,{children:[I(ee.YearPickerTrigger,{children:[m(ee.YearPickerTriggerHeading,{}),m(ee.YearPickerTriggerIndicator,{})]}),m(ee.NavButton,{slot:"previous"}),m(ee.NavButton,{slot:"next"})]}),I(ee.Grid,{children:[m(ee.GridHeader,{children:t=>m(ee.HeaderCell,{children:t})}),m(ee.GridBody,{children:t=>m(ee.Cell,{date:t})})]}),m(ee.YearPickerGrid,{children:m(ee.YearPickerGridBody,{children:({year:t})=>m(ee.YearPickerCell,{year:t})})})]})}function hp({label:t}){return I(te,{"aria-label":t,children:[I(te.Header,{children:[I(te.YearPickerTrigger,{children:[m(te.YearPickerTriggerHeading,{}),m(te.YearPickerTriggerIndicator,{})]}),m(te.NavButton,{slot:"previous"}),m(te.NavButton,{slot:"next"})]}),I(te.Grid,{children:[m(te.GridHeader,{children:e=>m(te.HeaderCell,{children:e})}),m(te.GridBody,{children:e=>m(te.Cell,{date:e})})]}),m(te.YearPickerGrid,{children:m(te.YearPickerGridBody,{children:({year:e})=>m(te.YearPickerCell,{year:e})})})]})}function $a({className:t,component:e,onAction:o,onSelect:r}){let[n,s]=ct({}),[d,c]=ct(),l=cp(g=>{c(se(g))},[]),y=g=>n[g.name]??mp(g),h=(g,v)=>{s(P=>({...P,[g.name]:v}))},u=()=>Object.fromEntries(e.fields.map(g=>[g.name,y(g)]));return m(k,{className:t,description:e.description,title:e.title,children:I(rp,{ref:l,"aria-label":e.title,className:"aui-form","data-slot":"agent-ui-form",onSubmit:g=>{g.preventDefault();let P=g.nativeEvent.submitter?.value??e.actions[0]?.id,G=e.actions.find(V=>V.id===P),R=u();G&&o?o({actionId:G.id,componentId:e.id,componentTitle:e.title,label:G.label,prompt:G.prompt,type:"submit",values:R}):r?.(A(e,{actionId:P,values:R}))},children:[e.fields.map(g=>m(fp,{field:g,portalContainer:d,value:y(g),onChange:v=>h(g,v)},g.name)),m("div",{className:"aui-actions","data-slot":"agent-ui-form-actions",children:e.actions.map(g=>m(ap,{className:"aui-form-action","data-slot":"agent-ui-action-button",size:"sm",type:"submit",value:g.id,variant:g.variant??"secondary",children:g.label},g.id))})]})})}function fe({children:t}){return t?m(np,{"data-slot":"agent-ui-field-description",children:t}):null}function fp({field:t,onChange:e,portalContainer:o,value:r}){if(t.kind==="select")return m(yp,{field:t,portalContainer:o,value:String(r),onChange:e});if(t.kind==="radio-group")return I(ip,{isRequired:t.required,name:t.name,value:String(r),variant:"secondary",onChange:e,children:[m(ve,{children:t.label}),m(fe,{children:t.description}),t.options.map(n=>m(ia,{value:n.value,children:I(ia.Content,{children:[m(ia.Control,{children:m(ia.Indicator,{})}),n.label]})},n.value))]});if(t.kind==="combobox")return m(bp,{field:t,portalContainer:o,value:Array.isArray(r)?r:[],onChange:e});if(t.kind==="checkbox-group"){let n=Array.isArray(r)?r:[];return I(op,{isRequired:t.required,name:t.name,value:n,variant:"secondary",onChange:e,children:[m(ve,{children:t.label}),m(fe,{children:t.description}),t.options.map(s=>m(oa,{value:s.value,children:I(oa.Content,{children:[m(oa.Control,{children:m(oa.Indicator,{})}),s.label]})},s.value))]})}return t.kind==="slider"?I(Nt,{maxValue:t.max,minValue:t.min,step:t.step,value:Number(r),onChange:n=>e(Array.isArray(n)?n[0]??t.min:n),children:[m(ve,{children:t.label}),m(Nt.Output,{}),I(Nt.Track,{children:[m(Nt.Fill,{}),m(Nt.Thumb,{})]}),m(fe,{children:t.description})]}):t.kind==="number"?I(kt,{fullWidth:!0,formatOptions:gp(t.format),isRequired:t.required,maxValue:t.max,minValue:t.min,name:t.name,step:t.step,value:Number(r),variant:"secondary",onChange:n=>e(n??t.min??0),children:[m(ve,{children:t.label}),I(kt.Group,{children:[m(kt.DecrementButton,{}),m(kt.Input,{placeholder:t.placeholder}),m(kt.IncrementButton,{})]}),m(fe,{children:t.description})]}):t.kind==="switch"?I(sa,{isRequired:t.required,isSelected:!!r,name:t.name,onChange:e,children:[I(sa.Content,{children:[m(sa.Control,{children:m(sa.Thumb,{})}),t.label]}),m(fe,{children:t.description})]}):t.kind==="date-picker"?m(xp,{field:t,portalContainer:o,value:String(r),onChange:e}):t.kind==="date-range-picker"?m(wp,{field:t,portalContainer:o,value:r,onChange:e}):t.kind==="time-field"?I(la,{hourCycle:t.hourCycle,isRequired:t.required,maxValue:Ha(t.max),minValue:Ha(t.min),name:t.name,value:Ha(String(r)),onChange:n=>e(n?.toString()??""),children:[m(ve,{children:t.label}),m(la.Group,{fullWidth:!0,variant:"secondary",children:m(la.Input,{children:n=>m(la.Segment,{segment:n})})}),m(fe,{children:t.description})]}):I(lp,{fullWidth:!0,isRequired:t.required,name:t.name,type:t.kind==="input"?t.inputType??"text":"text",value:String(r),variant:"secondary",onChange:e,children:[m(ve,{children:t.label}),t.kind==="textarea"?m(sp,{placeholder:t.placeholder,rows:t.rows??4}):m(Zr,{placeholder:t.placeholder}),m(fe,{children:t.description})]})}function bp({field:t,onChange:e,portalContainer:o,value:r}){let n=(t.selectionMode??"single")==="multiple",s=new Map(t.options.map(h=>[h.value,h.label])),d=n?t.options.filter(h=>!r.includes(h.value)):t.options,[c,l]=ct(n?"":s.get(r[0]??"")??""),y=h=>{if(h===null){n||e([]);return}if(n){l(""),e(r.includes(h)?r:[...r,h]);return}l(s.get(h)??""),e([h])};return I("div",{className:"aui-combobox",children:[I(na,{allowsEmptyCollection:!0,fullWidth:!0,inputValue:c,isRequired:!!t.required&&r.length===0,selectedKey:n?null:r[0]??null,variant:"secondary",onInputChange:l,onSelectionChange:h=>y(h===null?null:String(h)),children:[m(ve,{children:t.label}),I(na.InputGroup,{children:[m(Zr,{placeholder:t.placeholder??"Search options\u2026"}),m(na.Trigger,{})]}),m(na.Popover,{UNSTABLE_portalContainer:o,children:m(pt,{renderEmptyState:()=>m("span",{className:"aui-combobox__empty",children:"No matches"}),children:d.map(h=>I(pt.Item,{id:h.value,textValue:h.label,children:[h.label,m(pt.ItemIndicator,{})]},h.value))})}),m(fe,{children:t.description})]}),n&&r.length>0?m(Hr,{"aria-label":`${t.label} selection`,className:"aui-combobox__selection",onRemove:h=>e(r.filter(u=>!h.has(u))),children:m(Hr.List,{children:r.map(h=>I(Ur,{id:h,textValue:s.get(h)??h,children:[s.get(h)??h,m(Ur.RemoveButton,{})]},h))})}):null,r.map(h=>m("input",{name:t.name,type:"hidden",value:h},h))]})}function yp({field:t,onChange:e,portalContainer:o,value:r}){let[n,s]=ct(!1),d=Za(0),c=l=>{!l&&Date.now()-d.current<350||s(l)};return I(St,{fullWidth:!0,isOpen:n,isRequired:t.required,name:t.name,placeholder:t.placeholder??"Select an option",value:r||null,variant:"secondary",onOpenChange:c,onChange:l=>{e(l==null?"":String(l)),s(!1)},children:[m(ve,{children:t.label}),I(St.Trigger,{onPointerDown:()=>{d.current=Date.now()},children:[m(St.Value,{}),m(St.Indicator,{})]}),m(St.Popover,{UNSTABLE_portalContainer:o,children:m(pt,{children:t.options.map(l=>I(pt.Item,{id:l.value,textValue:l.label,children:[l.label,m(pt.ItemIndicator,{})]},l.value))})}),m(fe,{children:t.description})]})}function xp({field:t,onChange:e,portalContainer:o,value:r}){let[n,s]=ct(!1),d=Za(0),c=l=>{!l&&Date.now()-d.current<350||s(l)};return I(ra,{isOpen:n,isRequired:t.required,maxValue:qe(t.max),minValue:qe(t.min),name:t.name,value:qe(r),onOpenChange:c,onChange:l=>{e(l?.toString()??""),s(!1)},children:[m(ve,{children:t.label}),I(we.Group,{fullWidth:!0,variant:"secondary",children:[m(we.Input,{children:l=>m(we.Segment,{segment:l})}),m(we.Suffix,{children:m(ra.Trigger,{onPointerDown:()=>{d.current=Date.now()},children:m(ra.TriggerIndicator,{})})})]}),m(fe,{children:t.description}),m(ra.Popover,{UNSTABLE_portalContainer:o,children:m(Cp,{})})]})}function wp({field:t,onChange:e,portalContainer:o,value:r}){let[n,s]=ct(!1),d=Za(0),c=l=>{!l&&Date.now()-d.current<350||s(l)};return I(vt,{endName:`${t.name}.end`,isOpen:n,isRequired:t.required,maxValue:qe(t.max),minValue:qe(t.min),startName:`${t.name}.start`,value:up(r),onOpenChange:c,onChange:l=>{e({end:l?.end.toString()??"",start:l?.start.toString()??""}),s(!1)},children:[m(ve,{children:t.label}),I(we.Group,{fullWidth:!0,variant:"secondary",children:[m(we.Input,{slot:"start",children:l=>m(we.Segment,{segment:l})}),m(vt.RangeSeparator,{}),m(we.Input,{slot:"end",children:l=>m(we.Segment,{segment:l})}),m(we.Suffix,{children:m(vt.Trigger,{onPointerDown:()=>{d.current=Date.now()},children:m(vt.TriggerIndicator,{})})})]}),m(fe,{children:t.description}),m(vt.Popover,{UNSTABLE_portalContainer:o,children:m(hp,{label:`Choose ${t.label.toLowerCase()}`})})]})}import{useMemo as vp,useState as kp}from"react";import{jsx as Pt,jsxs as $r}from"react/jsx-runtime";function Ka({className:t,component:e,onSelect:o}){let r=vp(()=>Object.fromEntries(e.items.map(d=>[d.id,d.defaultSelected??!1])),[e.items]),[n,s]=kp({});return Pt(k,{className:t,description:e.description,title:e.title,children:Pt("div",{className:"aui-switch-group","data-slot":"agent-ui-switch-group",children:e.items.map(d=>{let c=n[d.id]??r[d.id]??!1;return $r("label",{"data-slot":"agent-ui-switch-item",children:[Pt("input",{checked:c,"data-slot":"agent-ui-switch-control",role:"switch",type:"checkbox",onChange:l=>{let y=l.currentTarget.checked;s(h=>({...h,[d.id]:y})),o?.(A(e,{id:d.id,selected:y}))}}),$r("span",{"data-slot":"agent-ui-switch-content",children:[Pt("strong",{"data-slot":"agent-ui-switch-label",children:d.label}),d.description?Pt("small",{"data-slot":"agent-ui-switch-description",children:d.description}):null]})]},d.id)})})})}import{useMemo as Sp,useState as Np}from"react";import{jsx as Oa}from"react/jsx-runtime";function ja({className:t,component:e,onSelect:o}){let r=Sp(()=>new Set(e.items.map(c=>c.id)),[e.items]),[n,s]=Np(()=>new Set(e.defaultValue??[])),d=new Set([...n].filter(c=>r.has(c)));return Oa(k,{className:t,description:e.description,title:e.title,children:Oa("div",{className:"aui-toggle-group","data-slot":"agent-ui-toggle-group",children:e.items.map(c=>Oa("button",{"aria-pressed":d.has(c.id),"data-slot":"agent-ui-toggle-item",type:"button",onClick:()=>{let l=new Set(d);e.selectionMode==="multiple"?l.has(c.id)?l.delete(c.id):l.add(c.id):(l.clear(),l.add(c.id)),s(l),o?.(A(e,{selected:[...l]}))},children:c.label},c.id))})})}import{createElement as Pp}from"react";import{jsx as Ie,jsxs as da}from"react/jsx-runtime";var Vp=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function Kr({className:t,component:e}){let o=e.level??2;return Pp(`h${o}`,{className:b("aui-heading",t),"data-level":o,"data-slot":"agent-ui-heading"},e.icon?Ie(q,{"aria-hidden":"true",className:"aui-heading__icon","data-slot":"agent-ui-heading-icon",name:e.icon}):null,e.text)}function Or({className:t,component:e,onAction:o,onSelect:r}){return da(be,{className:b("aui-button-primitive",t),"data-slot":"agent-ui-button",variant:e.variant,onClick:()=>{let n=le(e.id,{id:e.id,label:e.label,prompt:e.prompt,toolCall:e.toolCall,variant:e.variant});n&&o?o(n):r?.(A({id:e.id,title:e.label},e))},children:[e.icon?Ie(q,{"aria-hidden":"true",name:e.icon}):null,e.label]})}function jr({className:t,component:e}){return Ie("span",{className:b("aui-badge",t),"data-slot":"agent-ui-badge","data-tone":e.tone??"default","data-variant":e.variant??"soft",children:e.label})}function qr({className:t,component:e}){return Ie("span",{className:b("aui-icon",t),"data-size":e.size??"md","data-slot":"agent-ui-icon","data-tone":e.tone??"default",children:Ie(q,{"aria-hidden":"true",name:e.name})})}function Yr({className:t,component:e}){return Ie(Qt,{className:t,count:e.count,value:e.value})}function Xr({className:t,component:e}){let o=Math.min(Math.max(e.value,0),100);return da("span",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,className:b("aui-progress",t),"data-slot":"agent-ui-progress",role:"progressbar",...e.label?{"aria-label":e.label}:{},children:[e.label?da("span",{className:"aui-progress__header",children:[Ie("span",{className:"aui-progress__label",children:e.label}),da("span",{className:"aui-progress__value",children:[Vp.format(o),"%"]})]}):null,Ie("span",{className:"aui-progress__track",children:Ie("span",{className:"aui-progress__fill",style:{width:`${o}%`}})})]})}import{jsx as M}from"react/jsx-runtime";function _p({cardVariant:t,className:e,component:o,componentCardVariant:r,exportFormats:n,onAction:s,onSelect:d}){let c=qo.safeParse(o);if(!c.success)return null;let l=M(qa,{className:b("aui-component",e),exportFormats:n,node:c.data,onAction:s,onSelect:d});return t||r?M(ae,{componentVariant:r,variant:t,children:l}):l}var Tp={accordion:Zn,"action-group":Yo,"area-chart":an,"bar-chart":tn,callout:Wn,"candlestick-chart":mn,"channel-message":Ar,"code-block":Kn,"comparison-list":hn,"composed-chart":on,"create-event":Vr,"data-table":zt,diagram:On,"donut-chart":rn,"enable-notification":Fr,"event-session":Tr,"flight-tracker":Br,followup:Xo,form:$a,"funnel-chart":un,"gauge-chart":gn,heatmap:cn,image:En,"kpi-grid":kn,"line-chart":en,list:Un,"list-block":Hn,map:ur,"meter-list":Sn,"metric-grid":Nn,"pie-chart":nn,"player-card":Rr,playlist:Ir,"product-card":xr,"purchase-complete":Pr,"purchase-items":Nr,"radar-chart":sn,"radial-chart":ln,"record-card":vr,"ride-status":zr,"sankey-chart":dn,"scatter-chart":pn,steps:$n,"sunburst-chart":Cn,"switch-group":Ka,"tag-list":Gn,text:zn,"toggle-group":ja,"view-event":_r,"weather-current":Er,"weather-forecast":Gr};function qa({className:t,exportFormats:e,node:o,onAction:r,onSelect:n}){let s={exportFormats:e,onAction:r,onSelect:n},d=c=>c.map(l=>M(qa,{...s,node:l},l.id));switch(o.kind){case"item-card":return M(qn,{className:t,component:o,left:o.left?d(o.left):void 0,middle:d(o.middle),right:o.right?d(o.right):void 0,onAction:r,onSelect:n});case"item-card-group":return M(Yn,{className:t,component:o,children:d(o.children)});case"product-signals":return M(Dr,{className:t,component:o,renderPanel:c=>M(ae,{variant:"plain",children:M(qa,{...s,node:c})})});case"tabs":return M(jn,{className:t,component:o,renderPanel:c=>M(ae,{variant:"plain",children:d(c)}),onSelect:n});case"dashboard":return M(bn,{className:t,component:o,children:M(ae,{variant:"plain",children:d(o.children)})});case"card":return M(Da,{className:t,component:o,children:M(ae,{variant:"plain",children:d(o.children)})});case"row":return M(La,{className:t,component:o,children:d(o.children)});case"col":return M(Fa,{className:t,component:o,children:d(o.children)});case"grid":return M(Ma,{className:t,component:o,children:d(o.children)});case"spacer":return M(Ba,{className:t,component:o});case"divider":return M(za,{className:t,component:o});case"heading":return M(Kr,{className:t,component:o});case"button":return M(Or,{className:t,component:o,onAction:r,onSelect:n});case"badge":return M(jr,{className:t,component:o});case"icon":return M(qr,{className:t,component:o});case"rating":return M(Yr,{className:t,component:o});case"progress":return M(Xr,{className:t,component:o});default:{let c=Tp[o.kind];return M(c,{...s,className:t,component:o})}}}export{_p as ComponentRenderer,Sa as ComponentSkeleton};
|
package/dist/contracts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { A as AGENT_CONVERSATION_SOURCE, a as AgentAuthIdentity, b as AgentAuthProfile, c as AgentAuthToken, d as AgentConversationSource, e as AgentProjectConfig, f as AgentSurfaceVariant, g as AgentTheme, h as AgentTokenClaims, C as CreateAgentAuthTokenRequest, i as agentAuthIdentitySchema, j as agentAuthProfileSchema, k as agentAuthTokenSchema, l as agentIdentityIdSchema, m as agentProjectConfigSchema, n as agentSurfaceVariantSchema, o as agentThemeSchema, p as agentTokenClaimsSchema, q as createAgentAuthTokenRequestSchema } from './identity-
|
|
2
|
+
export { A as AGENT_CONVERSATION_SOURCE, a as AgentAuthIdentity, b as AgentAuthProfile, c as AgentAuthToken, d as AgentConversationSource, e as AgentProjectConfig, f as AgentSurfaceVariant, g as AgentTheme, h as AgentTokenClaims, C as CreateAgentAuthTokenRequest, i as agentAuthIdentitySchema, j as agentAuthProfileSchema, k as agentAuthTokenSchema, l as agentIdentityIdSchema, m as agentProjectConfigSchema, n as agentSurfaceVariantSchema, o as agentThemeSchema, p as agentTokenClaimsSchema, q as createAgentAuthTokenRequestSchema } from './identity-CAJPsGqJ.js';
|
|
3
3
|
import { UIMessage } from 'ai';
|
|
4
4
|
|
|
5
5
|
/** Maximum number of files accepted on one HeroUI Agent message. */
|
|
@@ -9,26 +9,46 @@ declare const HEROUI_AGENT_ATTACHMENT_MAX_BYTES: number;
|
|
|
9
9
|
/**
|
|
10
10
|
* File types that the hosted model pipeline can process consistently.
|
|
11
11
|
*
|
|
12
|
-
* SVG
|
|
13
|
-
*
|
|
12
|
+
* SVG is intentionally excluded because it can carry active content. Hosted
|
|
13
|
+
* document parsing handles the remaining office and publishing formats.
|
|
14
14
|
*/
|
|
15
15
|
declare const HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE: {
|
|
16
|
+
readonly "application/epub+zip": "epub";
|
|
16
17
|
readonly "application/json": "json";
|
|
18
|
+
readonly "application/msword": "doc";
|
|
17
19
|
readonly "application/pdf": "pdf";
|
|
20
|
+
readonly "application/rtf": "rtf";
|
|
21
|
+
readonly "application/vnd.ms-excel": "xls";
|
|
22
|
+
readonly "application/vnd.ms-excel.sheet.binary.macroenabled.12": "xlsb";
|
|
23
|
+
readonly "application/vnd.ms-excel.sheet.macroenabled.12": "xlsm";
|
|
24
|
+
readonly "application/vnd.ms-powerpoint": "ppt";
|
|
25
|
+
readonly "application/vnd.ms-powerpoint.presentation.macroenabled.12": "pptm";
|
|
26
|
+
readonly "application/vnd.ms-word.document.macroenabled.12": "docm";
|
|
27
|
+
readonly "application/vnd.oasis.opendocument.presentation": "odp";
|
|
28
|
+
readonly "application/vnd.oasis.opendocument.spreadsheet": "ods";
|
|
29
|
+
readonly "application/vnd.oasis.opendocument.text": "odt";
|
|
30
|
+
readonly "application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx";
|
|
31
|
+
readonly "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx";
|
|
32
|
+
readonly "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx";
|
|
18
33
|
readonly "image/gif": "gif";
|
|
19
34
|
readonly "image/jpeg": "jpg";
|
|
20
35
|
readonly "image/png": "png";
|
|
21
36
|
readonly "image/webp": "webp";
|
|
22
37
|
readonly "text/csv": "csv";
|
|
38
|
+
readonly "text/html": "html";
|
|
23
39
|
readonly "text/markdown": "md";
|
|
24
40
|
readonly "text/plain": "txt";
|
|
41
|
+
readonly "text/rtf": "rtf";
|
|
25
42
|
readonly "text/tab-separated-values": "tsv";
|
|
26
43
|
};
|
|
27
44
|
type HeroUIAgentAttachmentContentType = keyof typeof HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE;
|
|
28
|
-
declare const HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES: readonly ("application/json" | "application/pdf" | "image/gif" | "image/jpeg" | "image/png" | "image/webp" | "text/csv" | "text/markdown" | "text/plain" | "text/tab-separated-values")[];
|
|
45
|
+
declare const HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES: readonly ("application/epub+zip" | "application/json" | "application/msword" | "application/pdf" | "application/rtf" | "application/vnd.ms-excel" | "application/vnd.ms-excel.sheet.binary.macroenabled.12" | "application/vnd.ms-excel.sheet.macroenabled.12" | "application/vnd.ms-powerpoint" | "application/vnd.ms-powerpoint.presentation.macroenabled.12" | "application/vnd.ms-word.document.macroenabled.12" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/gif" | "image/jpeg" | "image/png" | "image/webp" | "text/csv" | "text/html" | "text/markdown" | "text/plain" | "text/rtf" | "text/tab-separated-values")[];
|
|
29
46
|
declare const HEROUI_AGENT_ATTACHMENT_ACCEPT: string;
|
|
47
|
+
declare const HEROUI_AGENT_ATTACHMENT_CONTENT_TYPE_BY_EXTENSION: Readonly<Record<string, "application/epub+zip" | "application/json" | "application/msword" | "application/pdf" | "application/rtf" | "application/vnd.ms-excel" | "application/vnd.ms-excel.sheet.binary.macroenabled.12" | "application/vnd.ms-excel.sheet.macroenabled.12" | "application/vnd.ms-powerpoint" | "application/vnd.ms-powerpoint.presentation.macroenabled.12" | "application/vnd.ms-word.document.macroenabled.12" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/gif" | "image/jpeg" | "image/png" | "image/webp" | "text/csv" | "text/html" | "text/markdown" | "text/plain" | "text/rtf" | "text/tab-separated-values">>;
|
|
30
48
|
declare const HEROUI_AGENT_TEXT_ATTACHMENT_CONTENT_TYPES: ReadonlySet<string>;
|
|
31
49
|
declare function isHeroUIAgentAttachmentContentType(value: string): value is HeroUIAgentAttachmentContentType;
|
|
50
|
+
/** Browsers sometimes omit Office MIME types; fall back to the file extension. */
|
|
51
|
+
declare function resolveHeroUIAgentAttachmentContentType(contentType: string, filename: string): HeroUIAgentAttachmentContentType | null;
|
|
32
52
|
|
|
33
53
|
/**
|
|
34
54
|
* Public remote configuration document served by
|
|
@@ -53,6 +73,7 @@ type AgentRemoteThemeColor = string | {
|
|
|
53
73
|
};
|
|
54
74
|
type AgentRemoteConfig = {
|
|
55
75
|
appearance?: {
|
|
76
|
+
componentSurfaceVariant?: "outline" | "plain" | "surface" | "surface-secondary";
|
|
56
77
|
launcher?: {
|
|
57
78
|
background?: AgentRemoteThemeColor;
|
|
58
79
|
icon?: string;
|
|
@@ -83,6 +104,7 @@ type AgentRemoteConfig = {
|
|
|
83
104
|
fontFamily?: string;
|
|
84
105
|
};
|
|
85
106
|
};
|
|
107
|
+
surfaceVariant?: "outline" | "plain" | "surface" | "surface-secondary";
|
|
86
108
|
viewMode?: "floating" | "sidebar";
|
|
87
109
|
};
|
|
88
110
|
capabilities?: {
|
|
@@ -116,6 +138,7 @@ type AgentRemoteConfig = {
|
|
|
116
138
|
greeting?: string;
|
|
117
139
|
promptShortcuts?: boolean;
|
|
118
140
|
prompts?: string[];
|
|
141
|
+
subtitle?: string;
|
|
119
142
|
};
|
|
120
143
|
/** Opaque cache validator; the SDK echoes it back as `If-None-Match`. */
|
|
121
144
|
revision: string;
|
|
@@ -1155,7 +1178,7 @@ declare const AGENT_UI_KIND_NAMES: readonly AgentUIRenderableKind[];
|
|
|
1155
1178
|
declare function renderAgentUICatalogPrompt(): string;
|
|
1156
1179
|
|
|
1157
1180
|
/** Names owned by the hosted runtime; client tools may not shadow them. */
|
|
1158
|
-
declare const RESERVED_AGENT_TOOL_NAMES: readonly ["callMcpTool", "composeUI", "executeSandbox", "getComponentSchema", "renderComponent", "searchKnowledge", "searchMcpTools", "searchWeb"];
|
|
1181
|
+
declare const RESERVED_AGENT_TOOL_NAMES: readonly ["callMcpTool", "composeUI", "executeSandbox", "generateFile", "getComponentSchema", "renderComponent", "searchKnowledge", "searchMcpTools", "searchWeb"];
|
|
1159
1182
|
/**
|
|
1160
1183
|
* Namespace the runtime uses for tools borrowed from a project's MCP servers
|
|
1161
1184
|
* (`mcp_<serverSlug>_<toolName>`). Reserved wholesale so a client tool can
|
|
@@ -1183,7 +1206,7 @@ declare const clientToolsSchema: z.ZodArray<z.ZodObject<{
|
|
|
1183
1206
|
type ClientToolManifestEntry = z.infer<typeof clientToolManifestEntrySchema>;
|
|
1184
1207
|
|
|
1185
1208
|
declare const HEROUI_AGENT_PROTOCOL_VERSION: 6;
|
|
1186
|
-
declare const HEROUI_AGENT_SDK_VERSION: "1.0.0-beta.
|
|
1209
|
+
declare const HEROUI_AGENT_SDK_VERSION: "1.0.0-beta.3";
|
|
1187
1210
|
/** Production Agent API origin used when hosts omit `_api.baseUrl` / `apiBaseUrl`. */
|
|
1188
1211
|
declare const HEROUI_AGENT_API_BASE_URL: "https://api.heroui.pro";
|
|
1189
1212
|
|
|
@@ -1390,7 +1413,7 @@ declare const agentModelIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.
|
|
|
1390
1413
|
* Durable usage and success metrics come from the server-side runtime events,
|
|
1391
1414
|
* not from this best-effort client channel.
|
|
1392
1415
|
*/
|
|
1393
|
-
declare const HEROUI_AGENT_EMBED_EVENT_NAMES: readonly ["action_approved", "action_declined", "component_copy", "component_export", "component_followup", "component_rendered", "component_submit", "component_tool", "embed_loaded", "failure", "feedback_down", "feedback_up", "first_chunk", "first_feedback_paint", "first_server_content_paint", "first_text_paint", "message_copied", "message_sent", "opened", "reconnected", "retry", "stopped", "turn_completed", "turn_stalled"];
|
|
1416
|
+
declare const HEROUI_AGENT_EMBED_EVENT_NAMES: readonly ["action_approved", "action_declined", "component_copy", "component_export", "component_followup", "component_rendered", "component_submit", "component_tool", "embed_loaded", "failure", "feedback_down", "feedback_up", "file_download", "first_chunk", "first_feedback_paint", "first_server_content_paint", "first_text_paint", "message_copied", "message_sent", "opened", "reconnected", "retry", "stopped", "turn_completed", "turn_stalled"];
|
|
1394
1417
|
declare const HEROUI_AGENT_EMBED_EVENT_SOURCES: readonly ["client-inactivity-watchdog", "cloudflare-chat", "message-send-failed", "stream-error"];
|
|
1395
1418
|
declare const HEROUI_AGENT_FEEDBACK_REASONS: readonly ["did_not_follow_instructions", "incomplete", "incorrect", "not_relevant", "other", "unclear"];
|
|
1396
1419
|
declare const HEROUI_AGENT_TURN_ERROR_CODES: readonly ["client_stopped", "conversation_deleted", "provider_error", "provider_rate_limited", "provider_timeout", "turn_deadline_exceeded", "turn_stalled", "unknown"];
|
|
@@ -1479,8 +1502,11 @@ declare const heroUIAgentEmbedEventPropertiesSchema: z.ZodObject<{
|
|
|
1479
1502
|
}>>>;
|
|
1480
1503
|
format: z.ZodOptional<z.ZodEnum<{
|
|
1481
1504
|
json: "json";
|
|
1505
|
+
pdf: "pdf";
|
|
1506
|
+
xlsx: "xlsx";
|
|
1482
1507
|
png: "png";
|
|
1483
1508
|
csv: "csv";
|
|
1509
|
+
markdown: "markdown";
|
|
1484
1510
|
text: "text";
|
|
1485
1511
|
svg: "svg";
|
|
1486
1512
|
}>>;
|
|
@@ -1489,6 +1515,7 @@ declare const heroUIAgentEmbedEventPropertiesSchema: z.ZodObject<{
|
|
|
1489
1515
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
1490
1516
|
latencyOrigin: z.ZodOptional<z.ZodLiteral<"user_submit">>;
|
|
1491
1517
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1518
|
+
outputBytes: z.ZodOptional<z.ZodNumber>;
|
|
1492
1519
|
protocolVersion: z.ZodOptional<z.ZodLiteral<6>>;
|
|
1493
1520
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1494
1521
|
source: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1515,6 +1542,7 @@ declare const heroUIAgentEmbedEventSchema: z.ZodObject<{
|
|
|
1515
1542
|
failure: "failure";
|
|
1516
1543
|
feedback_down: "feedback_down";
|
|
1517
1544
|
feedback_up: "feedback_up";
|
|
1545
|
+
file_download: "file_download";
|
|
1518
1546
|
first_chunk: "first_chunk";
|
|
1519
1547
|
first_feedback_paint: "first_feedback_paint";
|
|
1520
1548
|
first_server_content_paint: "first_server_content_paint";
|
|
@@ -1612,8 +1640,11 @@ declare const heroUIAgentEmbedEventSchema: z.ZodObject<{
|
|
|
1612
1640
|
}>>>;
|
|
1613
1641
|
format: z.ZodOptional<z.ZodEnum<{
|
|
1614
1642
|
json: "json";
|
|
1643
|
+
pdf: "pdf";
|
|
1644
|
+
xlsx: "xlsx";
|
|
1615
1645
|
png: "png";
|
|
1616
1646
|
csv: "csv";
|
|
1647
|
+
markdown: "markdown";
|
|
1617
1648
|
text: "text";
|
|
1618
1649
|
svg: "svg";
|
|
1619
1650
|
}>>;
|
|
@@ -1622,6 +1653,7 @@ declare const heroUIAgentEmbedEventSchema: z.ZodObject<{
|
|
|
1622
1653
|
latencyMs: z.ZodOptional<z.ZodNumber>;
|
|
1623
1654
|
latencyOrigin: z.ZodOptional<z.ZodLiteral<"user_submit">>;
|
|
1624
1655
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
outputBytes: z.ZodOptional<z.ZodNumber>;
|
|
1625
1657
|
protocolVersion: z.ZodOptional<z.ZodLiteral<6>>;
|
|
1626
1658
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1627
1659
|
source: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1648,4 +1680,4 @@ type HeroUIAgentEmbedEventName = HeroUIAgentEmbedEvent["event"];
|
|
|
1648
1680
|
type HeroUIAgentEmbedEventProperties = z.infer<typeof heroUIAgentEmbedEventPropertiesSchema>;
|
|
1649
1681
|
type HeroUIAgentTurnErrorCode = z.infer<typeof heroUIAgentTurnErrorCodeSchema>;
|
|
1650
1682
|
|
|
1651
|
-
export { AGENT_MODEL_IDS, AGENT_MODEL_OPTIONS, AGENT_UI_CATALOG, AGENT_UI_CONTAINER_KINDS, AGENT_UI_KIND_NAMES, AGENT_UI_KIND_SCHEMAS, AGENT_UI_LAYOUT_LEAF_KINDS, AGENT_UI_PRIMITIVE_KINDS, type AccordionComponent, type ActionGroupComponent, type ActionToolCall, type ActionVariant, type AgentActivityPhase, type AgentDataTypes, type AgentIconName, type AgentMessage, type AgentModelId, type AgentModelOption, type AgentModelTier, type AgentRemoteConfig, type AgentRemoteThemeColor, type AgentRuntimeTiming, type AgentRuntimeTimingEventDetail, type AgentSource, type AgentTurnAdmissionStatus, type AgentTurnAdmissionStatusRequest, type AgentTurnAdmissionStatusResponse, type AgentTurnAdmittedFrame, type AgentUIAmount, type AgentUICatalogEntry, type AgentUICatalogGroup, type AgentUIComponent, type AgentUIContainerComponent, type AgentUIImage, type AgentUILayoutLeafComponent, type AgentUILeafComponent, type AgentUINode, type AgentUIPrimitiveComponent, type AgentUIRenderable, type AgentUIRenderableKind, type AnalyticalLeafComponent, type AreaChartComponent, type BadgeComponent, type BarChartComponent, type ButtonComponent, COMPOSED_UI_MAX_DEPTH, COMPOSED_UI_MAX_NODES, type CalloutComponent, type CandlestickChartComponent, type CardComponent, type CardComponentVariant, type CartesianComponent, type CartesianRange, type CartesianSeries, type ChannelMessageComponent, type ChartColor, type ClientToolManifestEntry, type CodeBlockComponent, type ColComponent, type ComparisonListComponent, type ComponentActionSpec, type ComponentBase, type ComposedChartComponent, type ComposedChartSeries, type CreateEventComponent, DEFAULT_AGENT_PICKER_MODEL_ID, type DashboardComponent, type DataTableComponent, type Datum, type DiagramComponent, type DividerComponent, type DonutChartComponent, type EnableNotificationComponent, type EventSessionComponent, type FlightTrackerComponent, type FollowupComponent, type FormComponent, type FormDateRange, type FormField, type FunnelChartComponent, type GaugeChartComponent, type GridComponent, HEROUI_AGENT_API_BASE_URL, HEROUI_AGENT_ATTACHMENT_ACCEPT, HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE, HEROUI_AGENT_ATTACHMENT_MAX_BYTES, HEROUI_AGENT_EMBED_EVENT_NAMES, HEROUI_AGENT_EMBED_EVENT_SOURCES, HEROUI_AGENT_FEEDBACK_REASONS, HEROUI_AGENT_MAX_ATTACHMENTS, HEROUI_AGENT_PROTOCOL_VERSION, HEROUI_AGENT_REMOTE_CONFIG_VERSION, HEROUI_AGENT_RUNTIME_TIMING_EVENT, HEROUI_AGENT_SDK_VERSION, HEROUI_AGENT_TEXT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_TURN_ADMISSION_STATUS_MAX_IDS, HEROUI_AGENT_TURN_ADMISSION_STATUS_METHOD, HEROUI_AGENT_TURN_ADMITTED_FRAME_TYPE, HEROUI_AGENT_TURN_ERROR_CODES, type HeadingComponent, type HeatmapComponent, type HeroUIAgentAttachmentContentType, type HeroUIAgentEmbedEvent, type HeroUIAgentEmbedEventName, type HeroUIAgentEmbedEventProperties, type HeroUIAgentTurnErrorCode, type IconComponent, type ImageComponent, type ItemCardComponent, type ItemCardGroupComponent, type ItemCardVariant, type KpiGridComponent, LEGACY_AGENT_MODEL_IDS, type LayoutAlign, type LayoutGap, type LayoutJustify, type LineChartComponent, type ListBlockComponent, type ListComponent, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOLS_BYTES, type MapComponent, type MapCoordinate, type MapLocation, type MapLocationAction, type MeterListComponent, type MeterTone, type MetricGridComponent, type NumberFormat, type PieChartComponent, type PlayerCardComponent, type PlaylistComponent, type ProductCardComponent, type ProductCardItem, type ProductCardPrice, type ProductCardRating, type ProductSignalsComponent, type ProgressComponent, type PurchaseCompleteComponent, type PurchaseItemsComponent, RESERVED_AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_PREFIX, type RadarChartComponent, type RadialChartComponent, type RatingComponent, type RecordCardComponent, type RecordCardLayout, type RecordCardTone, type RideStatusComponent, type RowComponent, type SankeyChartComponent, type ScatterChartComponent, type SpacerComponent, type StepStatus, type StepsComponent, type SunburstChartComponent, type SunburstNode, type SwitchGroupComponent, type TabsComponent, type TagListComponent, type TextComponent, type ToggleGroupComponent, type ViewEventComponent, type WeatherCondition, type WeatherCurrentComponent, type WeatherForecastComponent, type WeatherUnit, accordionComponentSchema, actionGroupComponentSchema, agentIconNames, agentIconSchema, agentModelIdSchema, agentSourceSchema, agentSourcesSchema, agentUIComponentSchema, agentUILeafComponentSchema, agentUINodeSchema, agentUIRenderableSchema, analyticalLeafComponentSchema, areaChartComponentSchema, badgeComponentSchema, barChartComponentSchema, buttonComponentSchema, calloutComponentSchema, candlestickChartComponentSchema, cardComponentSchema, cardComponentVariantSchema, channelMessageComponentSchema, chartColorSchema, clientToolManifestEntrySchema, clientToolsSchema, codeBlockComponentSchema, colComponentSchema, comparisonListComponentSchema, composeUIInputSchema, composedChartComponentSchema, composedUIComponentSchema, createEventComponentSchema, dashboardComponentSchema, dataTableComponentSchema, diagramComponentSchema, dividerComponentSchema, donutChartComponentSchema, enableNotificationComponentSchema, eventSessionComponentSchema, flightTrackerComponentSchema, followupComponentSchema, formComponentSchema, funnelChartComponentSchema, gaugeChartComponentSchema, getAgentModelTier, getAgentUIContainerChildren, gridComponentSchema, headingComponentSchema, heatmapComponentSchema, heroUIAgentEmbedEventPropertiesSchema, heroUIAgentEmbedEventSchema, heroUIAgentTurnErrorCodeSchema, iconComponentSchema, imageComponentSchema, isAgentModelId, isAgentUIContainerComponent, isAgentUILayoutLeafComponent, isAgentUIPrimitiveComponent, isHeroUIAgentAttachmentContentType, itemCardComponentSchema, itemCardGroupComponentSchema, kpiGridComponentSchema, lineChartComponentSchema, listBlockComponentSchema, listComponentSchema, mapComponentSchema, meterListComponentSchema, metricGridComponentSchema, numberFormatSchema, parseAgentRemoteConfig, pieChartComponentSchema, playerCardComponentSchema, playlistComponentSchema, productCardComponentSchema, productSignalsComponentSchema, progressComponentSchema, purchaseCompleteComponentSchema, purchaseItemsComponentSchema, radarChartComponentSchema, radialChartComponentSchema, ratingComponentSchema, recordCardComponentSchema, recordCardLayoutSchema, renderAgentUICatalogPrompt, renderComponentInputSchema, resolveAgentModelId, rideStatusComponentSchema, rowComponentSchema, sankeyChartComponentSchema, scatterChartComponentSchema, spacerComponentSchema, stepsComponentSchema, sunburstChartComponentSchema, switchGroupComponentSchema, tabsComponentSchema, tagListComponentSchema, textComponentSchema, toggleGroupComponentSchema, viewEventComponentSchema, weatherConditionSchema, weatherConditions, weatherCurrentComponentSchema, weatherForecastComponentSchema };
|
|
1683
|
+
export { AGENT_MODEL_IDS, AGENT_MODEL_OPTIONS, AGENT_UI_CATALOG, AGENT_UI_CONTAINER_KINDS, AGENT_UI_KIND_NAMES, AGENT_UI_KIND_SCHEMAS, AGENT_UI_LAYOUT_LEAF_KINDS, AGENT_UI_PRIMITIVE_KINDS, type AccordionComponent, type ActionGroupComponent, type ActionToolCall, type ActionVariant, type AgentActivityPhase, type AgentDataTypes, type AgentIconName, type AgentMessage, type AgentModelId, type AgentModelOption, type AgentModelTier, type AgentRemoteConfig, type AgentRemoteThemeColor, type AgentRuntimeTiming, type AgentRuntimeTimingEventDetail, type AgentSource, type AgentTurnAdmissionStatus, type AgentTurnAdmissionStatusRequest, type AgentTurnAdmissionStatusResponse, type AgentTurnAdmittedFrame, type AgentUIAmount, type AgentUICatalogEntry, type AgentUICatalogGroup, type AgentUIComponent, type AgentUIContainerComponent, type AgentUIImage, type AgentUILayoutLeafComponent, type AgentUILeafComponent, type AgentUINode, type AgentUIPrimitiveComponent, type AgentUIRenderable, type AgentUIRenderableKind, type AnalyticalLeafComponent, type AreaChartComponent, type BadgeComponent, type BarChartComponent, type ButtonComponent, COMPOSED_UI_MAX_DEPTH, COMPOSED_UI_MAX_NODES, type CalloutComponent, type CandlestickChartComponent, type CardComponent, type CardComponentVariant, type CartesianComponent, type CartesianRange, type CartesianSeries, type ChannelMessageComponent, type ChartColor, type ClientToolManifestEntry, type CodeBlockComponent, type ColComponent, type ComparisonListComponent, type ComponentActionSpec, type ComponentBase, type ComposedChartComponent, type ComposedChartSeries, type CreateEventComponent, DEFAULT_AGENT_PICKER_MODEL_ID, type DashboardComponent, type DataTableComponent, type Datum, type DiagramComponent, type DividerComponent, type DonutChartComponent, type EnableNotificationComponent, type EventSessionComponent, type FlightTrackerComponent, type FollowupComponent, type FormComponent, type FormDateRange, type FormField, type FunnelChartComponent, type GaugeChartComponent, type GridComponent, HEROUI_AGENT_API_BASE_URL, HEROUI_AGENT_ATTACHMENT_ACCEPT, HEROUI_AGENT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_ATTACHMENT_CONTENT_TYPE_BY_EXTENSION, HEROUI_AGENT_ATTACHMENT_EXTENSION_BY_CONTENT_TYPE, HEROUI_AGENT_ATTACHMENT_MAX_BYTES, HEROUI_AGENT_EMBED_EVENT_NAMES, HEROUI_AGENT_EMBED_EVENT_SOURCES, HEROUI_AGENT_FEEDBACK_REASONS, HEROUI_AGENT_MAX_ATTACHMENTS, HEROUI_AGENT_PROTOCOL_VERSION, HEROUI_AGENT_REMOTE_CONFIG_VERSION, HEROUI_AGENT_RUNTIME_TIMING_EVENT, HEROUI_AGENT_SDK_VERSION, HEROUI_AGENT_TEXT_ATTACHMENT_CONTENT_TYPES, HEROUI_AGENT_TURN_ADMISSION_STATUS_MAX_IDS, HEROUI_AGENT_TURN_ADMISSION_STATUS_METHOD, HEROUI_AGENT_TURN_ADMITTED_FRAME_TYPE, HEROUI_AGENT_TURN_ERROR_CODES, type HeadingComponent, type HeatmapComponent, type HeroUIAgentAttachmentContentType, type HeroUIAgentEmbedEvent, type HeroUIAgentEmbedEventName, type HeroUIAgentEmbedEventProperties, type HeroUIAgentTurnErrorCode, type IconComponent, type ImageComponent, type ItemCardComponent, type ItemCardGroupComponent, type ItemCardVariant, type KpiGridComponent, LEGACY_AGENT_MODEL_IDS, type LayoutAlign, type LayoutGap, type LayoutJustify, type LineChartComponent, type ListBlockComponent, type ListComponent, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOLS_BYTES, type MapComponent, type MapCoordinate, type MapLocation, type MapLocationAction, type MeterListComponent, type MeterTone, type MetricGridComponent, type NumberFormat, type PieChartComponent, type PlayerCardComponent, type PlaylistComponent, type ProductCardComponent, type ProductCardItem, type ProductCardPrice, type ProductCardRating, type ProductSignalsComponent, type ProgressComponent, type PurchaseCompleteComponent, type PurchaseItemsComponent, RESERVED_AGENT_TOOL_NAMES, RESERVED_AGENT_TOOL_PREFIX, type RadarChartComponent, type RadialChartComponent, type RatingComponent, type RecordCardComponent, type RecordCardLayout, type RecordCardTone, type RideStatusComponent, type RowComponent, type SankeyChartComponent, type ScatterChartComponent, type SpacerComponent, type StepStatus, type StepsComponent, type SunburstChartComponent, type SunburstNode, type SwitchGroupComponent, type TabsComponent, type TagListComponent, type TextComponent, type ToggleGroupComponent, type ViewEventComponent, type WeatherCondition, type WeatherCurrentComponent, type WeatherForecastComponent, type WeatherUnit, accordionComponentSchema, actionGroupComponentSchema, agentIconNames, agentIconSchema, agentModelIdSchema, agentSourceSchema, agentSourcesSchema, agentUIComponentSchema, agentUILeafComponentSchema, agentUINodeSchema, agentUIRenderableSchema, analyticalLeafComponentSchema, areaChartComponentSchema, badgeComponentSchema, barChartComponentSchema, buttonComponentSchema, calloutComponentSchema, candlestickChartComponentSchema, cardComponentSchema, cardComponentVariantSchema, channelMessageComponentSchema, chartColorSchema, clientToolManifestEntrySchema, clientToolsSchema, codeBlockComponentSchema, colComponentSchema, comparisonListComponentSchema, composeUIInputSchema, composedChartComponentSchema, composedUIComponentSchema, createEventComponentSchema, dashboardComponentSchema, dataTableComponentSchema, diagramComponentSchema, dividerComponentSchema, donutChartComponentSchema, enableNotificationComponentSchema, eventSessionComponentSchema, flightTrackerComponentSchema, followupComponentSchema, formComponentSchema, funnelChartComponentSchema, gaugeChartComponentSchema, getAgentModelTier, getAgentUIContainerChildren, gridComponentSchema, headingComponentSchema, heatmapComponentSchema, heroUIAgentEmbedEventPropertiesSchema, heroUIAgentEmbedEventSchema, heroUIAgentTurnErrorCodeSchema, iconComponentSchema, imageComponentSchema, isAgentModelId, isAgentUIContainerComponent, isAgentUILayoutLeafComponent, isAgentUIPrimitiveComponent, isHeroUIAgentAttachmentContentType, itemCardComponentSchema, itemCardGroupComponentSchema, kpiGridComponentSchema, lineChartComponentSchema, listBlockComponentSchema, listComponentSchema, mapComponentSchema, meterListComponentSchema, metricGridComponentSchema, numberFormatSchema, parseAgentRemoteConfig, pieChartComponentSchema, playerCardComponentSchema, playlistComponentSchema, productCardComponentSchema, productSignalsComponentSchema, progressComponentSchema, purchaseCompleteComponentSchema, purchaseItemsComponentSchema, radarChartComponentSchema, radialChartComponentSchema, ratingComponentSchema, recordCardComponentSchema, recordCardLayoutSchema, renderAgentUICatalogPrompt, renderComponentInputSchema, resolveAgentModelId, resolveHeroUIAgentAttachmentContentType, rideStatusComponentSchema, rowComponentSchema, sankeyChartComponentSchema, scatterChartComponentSchema, spacerComponentSchema, stepsComponentSchema, sunburstChartComponentSchema, switchGroupComponentSchema, tabsComponentSchema, tagListComponentSchema, textComponentSchema, toggleGroupComponentSchema, viewEventComponentSchema, weatherConditionSchema, weatherConditions, weatherCurrentComponentSchema, weatherForecastComponentSchema };
|