@mgamadeus/ddd-agents 0.11.4 → 0.11.5
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/dist/chat.js +9 -9
- package/dist/chunks/{ConversationMarkdown-DCm4ll82.js → ConversationMarkdown-CeH4tUDb.js} +3 -3
- package/dist/chunks/{ConversationMarkdown-DCm4ll82.js.map → ConversationMarkdown-CeH4tUDb.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-BQcgcvgL.js → ConversationMessageInputComposerWidgets-GRjcdgmV.js} +5 -5
- package/dist/chunks/{ConversationMessageInputComposerWidgets-BQcgcvgL.js.map → ConversationMessageInputComposerWidgets-GRjcdgmV.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-h6Tsr8aW.js → VoiceBarsIcon-CcyQcWPU.js} +3 -3
- package/dist/chunks/{VoiceBarsIcon-h6Tsr8aW.js.map → VoiceBarsIcon-CcyQcWPU.js.map} +1 -1
- package/dist/chunks/{WebSearchResultsConversationWidget-CUtKAdMM.js → WebSearchResultsConversationWidget-dEq19U7k.js} +105 -103
- package/dist/chunks/WebSearchResultsConversationWidget-dEq19U7k.js.map +1 -0
- package/dist/chunks/{canvas-reducers-CAtcbD4i.js → canvas-reducers-BInd3xNz.js} +2 -2
- package/dist/chunks/{canvas-reducers-CAtcbD4i.js.map → canvas-reducers-BInd3xNz.js.map} +1 -1
- package/dist/chunks/{canvas-title-slot-context-C4o3GH-d.js → canvas-title-slot-context-CZs8yVPW.js} +2 -2
- package/dist/chunks/{canvas-title-slot-context-C4o3GH-d.js.map → canvas-title-slot-context-CZs8yVPW.js.map} +1 -1
- package/dist/chunks/{canvasBodies-CWAk_98Z.js → canvasBodies-Bu1JWbx3.js} +3 -3
- package/dist/chunks/{canvasBodies-CWAk_98Z.js.map → canvasBodies-Bu1JWbx3.js.map} +1 -1
- package/dist/chunks/{canvasStorage-D9EnBraV.js → canvasStorage-Cr3omZeI.js} +2 -2
- package/dist/chunks/{canvasStorage-D9EnBraV.js.map → canvasStorage-Cr3omZeI.js.map} +1 -1
- package/dist/chunks/{widget-name-resolver-Bv6EFL24.js → widget-name-resolver-Bf7_3DKd.js} +667 -465
- package/dist/chunks/widget-name-resolver-Bf7_3DKd.js.map +1 -0
- package/dist/client-testing.js +4 -4
- package/dist/files/i18n-keys.json +46 -4
- package/dist/files/renderer/widget-tree/composed-node-schema.json +1 -0
- package/dist/image-render.js +7 -7
- package/dist/index.js +5 -5
- package/dist/kit.js +2 -2
- package/dist/preview.js +5 -5
- package/dist/renderer.js +8 -8
- package/dist/styles.css +116 -15
- package/dist/voice.js +1 -1
- package/dist/widgets.js +79 -80
- package/dist/widgets.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/WebSearchResultsConversationWidget-CUtKAdMM.js.map +0 -1
- package/dist/chunks/widget-name-resolver-Bv6EFL24.js.map +0 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import React, { useReducer, useRef, useCallback, useMemo, useEffect, useState, useContext, createContext, useLayoutEffect, useId, useSyncExternalStore, Fragment as Fragment$1 } from "react";
|
|
4
|
-
import { h as registerWidgetHydrator,
|
|
5
|
-
import { Y as getWidgetSelfHydrationKeyFieldName, N as getAgentsEnvironment, J as escapePlainTextForText, s as Text, I as Icon, a8 as useAgentsOwnerSettings, F as classNames, a6 as useAgentsLinkNavigation, B as Button, A as AgentsLink, S as SegmentBar, w as TrendDelta, x as WidgetText, a1 as translateText, $ as reportWidgetCrash, W as WidgetFeatureGate, h as InteractiveSurface, C as Checkbox, f as DateInput, u as TextInput, R as RadioGroup, m as Select, l as RangeSlider, T as Tabs, t as TextArea, M as Map$1, i as MapMarker, a7 as useAgentsMapsLoader, n as Skeleton, Z as openImageGallery, q as StatusBadge, j as Markdown, a5 as useAgentsEnvironment, ah as canStartConversationInPersonalSpace, ai as startConversationInPersonalSpace, aj as canOpenConnectionPermissions, ak as openConnectionPermissions } from "./link-navigation-DRHt6g7U.js";
|
|
4
|
+
import { h as registerWidgetHydrator, az as SkeletonLine, aI as WidgetSurface, aF as WidgetKpiValue, Z as readWidgetAgentSpaceKeyAttribute, W as WidgetRenderReportContext, A as buildWidgetAgentSpaceKeyProps, bA as readTextNodeContent, bB as readAllowedValue, a1 as useConversationWidgetContext, M as ModelText, ao as DonePill, by as ConversationWidgetButton, a0 as shortStringHash, bi as WidgetImageReadinessContext, V as messageAnchor, v as ConversationWidgetActions, bC as useReportTextNodeRenderState, bD as readTextNodeRenderState, aA as SkeletonPill, bE as buildFaviconUrl, bF as readSiteHostname, ay as SkeletonCircle, bG as readSafeHttpUrl, a4 as useWidgetHydration, a2 as useIsEmailWidgetRender, a3 as useReportWidgetRenderStatus, a9 as AttachedFilesConversationWidget, ag as ClockConversationWidget, ah as ConceptExplainerConversationWidget, aj as CurrencyConverterConversationWidget, ak as CustomVisualizationConversationWidget, ap as DriveFilesConversationWidget, bH as registerDriveFilesHydrator, bu as normalizeEntityMentionFields, ar as EntityMentionConversationWidget, bI as IMAGE_GALLERY_CANVAS_ID, av as ImageGalleryConversationWidget, aH as WidgetStatusChip, aK as WritingDraftConversationWidget, aC as SuggestedActions, aw as MultiChoiceConversationWidget, ax as QuickRepliesConversationWidget, aD as ToolTraceConversationWidget, ai as ConversationSearchResultsConversationWidget, aE as WebSearchResultsConversationWidget } from "./WebSearchResultsConversationWidget-dEq19U7k.js";
|
|
5
|
+
import { Y as getWidgetSelfHydrationKeyFieldName, N as getAgentsEnvironment, J as escapePlainTextForText, s as Text, I as Icon, a8 as useAgentsOwnerSettings, F as classNames, a6 as useAgentsLinkNavigation, B as Button, A as AgentsLink, S as SegmentBar, w as TrendDelta, x as WidgetText, a1 as translateText, $ as reportWidgetCrash, W as WidgetFeatureGate, h as InteractiveSurface, C as Checkbox, f as DateInput, u as TextInput, R as RadioGroup, m as Select, l as RangeSlider, T as Tabs, t as TextArea, M as Map$1, i as MapMarker, a7 as useAgentsMapsLoader, n as Skeleton, Z as openImageGallery, q as StatusBadge, j as Markdown, a5 as useAgentsEnvironment, ah as canStartConversationInPersonalSpace, ai as startConversationInPersonalSpace, aj as canOpenConnectionPermissions, ak as openConnectionPermissions, ab as useAgentsTexts } from "./link-navigation-DRHt6g7U.js";
|
|
6
6
|
import ReactApexChartImport from "react-apexcharts";
|
|
7
7
|
import { i as isAgentsIconName } from "./icon-names-Di6c4zLo.js";
|
|
8
8
|
import { unified } from "unified";
|
|
9
9
|
import remarkParse from "remark-parse";
|
|
10
10
|
import remarkDirective from "remark-directive";
|
|
11
11
|
import { visit } from "unist-util-visit";
|
|
12
|
+
import { t as textKey } from "./text-key-DnoZ4lAk.js";
|
|
12
13
|
const WIDGET_FENCE_LANG = "widget";
|
|
13
14
|
const BARE_WIDGET_PARAGRAPH = /^\s*widget\s*(\{[\s\S]*\})\s*$/;
|
|
14
15
|
const BARE_WIDGET_LINE_GLOBAL = /^[ \t]*widget[ \t]*(\{.*\})[ \t]*$/gm;
|
|
@@ -59,7 +60,7 @@ const findingCodes = ["INVALID_NODE", "INVALID_PROP", "UNKNOWN_BINDING", "INVALI
|
|
|
59
60
|
const noteFindingCodes = ["INLINE_VALUE_WITHOUT_SOURCE", "INVALID_INITIAL_CHOICE", "UNREAD_STATE", "UNKNOWN_ITEM_KEY", "INVALID_SLOT_NODE_COUNT", "WIDGET_LIFTED"];
|
|
60
61
|
const nodeTypes = /* @__PURE__ */ JSON.parse(`{"Badge":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a small status chip with a tone (success, warning, danger, info, neutral)","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the status, in the owner's language — one or two words"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"neutral (default), muted (secondary text), success (green), warning (amber), danger (red) or info (blue)"}],"slots":[]},"Button":{"categories":["input"],"providesItemScope":false,"textContentProp":"label","summary":"a button that runs one of the tree's actions (copy, resetState, openUrl, openEntity) or writes a value to state","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the button does (\\"Copy result\\")"},{"name":"onClick","types":["event"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"{\\"action\\": \\"<action name>\\"} or {\\"set\\": \\"<state name>\\"} with value"},{"name":"value","types":["string","number","boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what a {\\"set\\": …} click writes"},{"name":"variant","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["primary","secondary"],"description":"primary for the one main action (default), secondary beside it"},{"name":"icon","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["copy","reset","link","add","check","next","calendar","info"],"description":"a glyph before the label (copy, reset, link, add, check, next, calendar, info)"},{"name":"fullWidth","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the button takes the whole width"}],"slots":[]},"Caption":{"categories":["inline","block"],"providesItemScope":false,"textContentProp":"text","summary":"muted secondary text: a sub-line, a unit, a date, a method note","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the secondary text, in the owner's language"}],"slots":[]},"Carousel":{"categories":["layout"],"providesItemScope":true,"textContentProp":null,"summary":"slides side by side with previous / next buttons; each child is a slide, or the children repeat per item of \`items\`","props":[{"name":"items","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the list the children repeat over, one slide per item ($item binds a field of the item)"},{"name":"visibleItems","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":[1,2,3,4],"description":"how many slides are fully visible at once (1 to 4, default 2); the next one peeks in"},{"name":"showArrows","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"show the previous / next buttons (default true)"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the slides are, for screen readers (e.g. \\"Visitors per channel\\")"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":[],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"the slides (one node each) or, with \`items\`, the template of one slide"}],"itemsProp":"items"},"Chart":{"categories":["data"],"providesItemScope":false,"textContentProp":null,"summary":"a line, area, bar, pie, donut, scatter, heatmap, funnel or radar chart over rows; bars with a change per bar; a sparkline in a compact slot","props":[{"name":"kind","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":["line","area","bar","pie","donut","scatter","heatmap","funnel","radar"],"description":"line, area, bar, pie, donut, scatter, heatmap, funnel or radar"},{"name":"data","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the rows (objects), usually a binding: {\\"$data\\":…}, {\\"$computed\\":…}, {\\"$from\\":…}"},{"name":"x","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the row field of the category / time axis (the slice name of a pie, the row of a heatmap, the stage of a funnel, the axis of a radar)"},{"name":"series","types":["array"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the plotted fields: [{\\"field\\",\\"label\\",\\"visible\\"?}] — one for a pie or a funnel, one column each for a heatmap"},{"name":"horizontal","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"bar only: horizontal bars, for a ranking or a poll"},{"name":"stacked","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"bar and area only: the series stacked"},{"name":"valueFormat","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency","compact","date","text"],"description":"how the values are shown on the axis and in the tooltip (default number)"},{"name":"currency","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the ISO currency code for valueFormat currency (default EUR)"},{"name":"min","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the lowest value of the value axis (default: from the data)"},{"name":"max","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the highest value of the value axis (default: from the data)"},{"name":"xLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the title of the category axis"},{"name":"yLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the title of the value axis"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a heading above the chart"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line under the chart (the period, what the values mean)"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the values come from ({\\"name\\",\\"url\\"}), shown as the source line"},{"name":"deltaField","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"bar only: the row field of the change against an earlier measurement, shown signed at the right of each bar (plus green, minus red)"},{"name":"deltaUnit","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["pp","%"],"description":"what the change counts: pp (percentage points, the figure alone) or % (default: the figure alone)"},{"name":"deltaLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the line under the bars that says what the change compares with (\\"Right: change in percentage points since January 2026\\")"}],"slots":[],"sourcing":{"needsSource":true,"namesSources":false,"rowsProps":["data"],"figureProps":[]}},"Checkbox":{"categories":["input"],"providesItemScope":false,"textContentProp":"label","summary":"one checkbox that writes true or false to a state value","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the box switches on"},{"name":"checked","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"whether it is ticked, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes true or false"},{"name":"description","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the label"}],"slots":[]},"Code":{"categories":["block"],"providesItemScope":false,"textContentProp":"code","summary":"a block of source code with syntax highlighting, a copy button and a line-wrap toggle","props":[{"name":"code","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the source code, line breaks as \\\\n"},{"name":"language","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the language for the highlighting: php, javascript, typescript, json, html, css, scss, sql, bash, python, java, kotlin, swift, go, rust, ruby, csharp, cpp, c, yaml, xml, markdown, diff, dockerfile, graphql, ini, plaintext; another name shows plain text"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a file name or a short label shown in the header instead of the language name"},{"name":"wrap","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"true wraps long lines from the start (the owner can toggle it); default false scrolls them"}],"slots":[]},"DatePicker":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a date field with a calendar that writes the picked day (YYYY-MM-DD) to a state value","props":[{"name":"value","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked day as YYYY-MM-DD, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the day as YYYY-MM-DD"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the field"},{"name":"min","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the earliest day that can be picked, YYYY-MM-DD"},{"name":"max","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the latest day that can be picked, YYYY-MM-DD"}],"slots":[]},"Diagram":{"categories":["heavy"],"providesItemScope":false,"textContentProp":"source","summary":"a diagram drawn from Mermaid source (flowchart, sequence, state, timeline), with an optional heading and caption","props":[{"name":"source","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the Mermaid source, line breaks as \\\\n, e.g. \\"flowchart TD\\\\n A[Request] --> B{Widget found?}\\\\n B -- Yes --> C[Select widget]\\""},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short heading above the diagram"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the heading: what the diagram shows"}],"slots":[]},"Divider":{"categories":["block"],"providesItemScope":false,"textContentProp":null,"summary":"a hairline between two parts, horizontal or vertical","props":[{"name":"orientation","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["horizontal","vertical"],"description":"horizontal (default, in a column) or vertical (between the items of a row)"}],"slots":[]},"EntityLink":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"an entity's name (a competitor, a review, a keyword) that opens its detail panel through an openEntity action","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the entity's name as the owner reads it (\\"Pizzeria Roma\\")"},{"name":"action","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the name of this tree's openEntity action whose ref is the entity's reference from a tool result"},{"name":"variant","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["link","title","chip"],"description":"link = the name inline in a sentence or cell (default), title = the name as the bold headline of a Surface, chip = a small pill with a detail glyph"}],"slots":[]},"Favicon":{"categories":["inline"],"providesItemScope":false,"textContentProp":null,"summary":"the small site icon of a domain, in front of a source or a result","props":[{"name":"url","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"a page address or a bare domain (wdr.de) whose site icon is shown"},{"name":"name","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the site name, read aloud and shown on hover"}],"slots":[]},"Flow":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"small items (badges, labels, chips) that flow like words and wrap onto more lines","props":[{"name":"gap","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","xsmall","small","medium","large"],"description":"the space between the items: none, xsmall, small (default), medium or large"},{"name":"align","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end"],"description":"where the items of a line sit vertically: start, center (default) or end"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"the items, each at its own width"}]},"Form":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"a form around inputs: its submit sends the field values to you as the owner's answer (optional decline)","props":[{"name":"name","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the form id its submit names: letters, digits, \`_\` or \`-\`, at most 64, unique in the tree (e.g. \\"holidayHours\\")"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the form heading, in the owner's language"},{"name":"description","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one line under the heading: what the answer is used for"},{"name":"submitLabel","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the submit button label, in the owner's language (default \\"Send\\")"},{"name":"declineLabel","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a decline button label (e.g. \\"Not now\\"); without it the form has no decline"},{"name":"fields","types":["array"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the state names the submit sends, in this order; default: every state name the form's inputs bind"},{"name":"requiredFields","types":["array"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"state names that must be filled (not empty, a checkbox ticked) before the form submits"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the form body: inputs and the text and layout around them"},{"name":"header","acceptsCategories":["inline"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":2,"sizeClass":"compact","description":"at most two small items at the end of the heading: a badge, a popover that explains the method"}],"submitsInputs":true},"Grid":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"equal columns (1 to 4), one child per cell; drops to fewer columns on a narrow screen","props":[{"name":"columns","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":[1,2,3,4],"description":"the most columns side by side (1 to 4, default 2)"},{"name":"gap","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","xsmall","small","medium","large"],"description":"the space between the children: none, xsmall, small, medium (default, between rows and tiles) or large (between sections)"},{"name":"minColumnWidth","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["compact","regular"],"description":"the narrowest a cell may get before the grid shows fewer columns: compact (KPI tiles) or regular (charts, images, text tiles); default compact when every cell is a KpiTile, Pressable, Badge, Icon, Favicon or Button, else regular"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout","heavy"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the cells, one node each, filled row by row; 1 column = full cells, 2 = regular, 3–4 = compact","sizeClassFromProp":"columns","sizeClassesByPropValue":{"1":"full","2":"regular","3":"compact","4":"compact"},"acceptsHeavyWhenCompact":true}]},"Icon":{"categories":["inline"],"providesItemScope":false,"textContentProp":null,"summary":"one design-system icon (check, close, warning, star, arrows, …) in a tone","props":[{"name":"name","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":["check","close","warning","info","help","question","exclamation","add","remove","dash","star","starActive","like","prize","arrowUp","arrowDown","arrowLeft","arrowRight","caretUp","caretDown","calendar","clock","location","pinFilled","directions","maps","phone","mail","link","newTab","lock","lockOpen","user","business","search","lineChart","barChart","budget","google","image","photo","play","pause","document","edit","trash","download","upload","refresh","settings","notification","messageGood","messageBad","messageNeutral","message","shield","tag","ai","visibility","desktop","mobile","tablet","event","post","news","home"],"description":"the icon (check, close, warning, info, star, arrowUp, …)"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"its colour: neutral (default), muted (secondary text), success (green), warning (amber), danger (red) or info (blue)"},{"name":"size","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["small","medium","large"],"description":"default small"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the icon means, for screen readers and the tooltip"}],"slots":[]},"Image":{"categories":["media"],"providesItemScope":false,"textContentProp":null,"summary":"one picture with alt text, an optional title, caption and source chip; opens in a lightbox","props":[{"name":"src","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the image URL (https, or a data:image URI)"},{"name":"alt","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the image shows, in one short sentence (read aloud by screen readers, shown when the image fails)"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the bold line under the image"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the muted line under the title"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the image was found ({\\"name\\",\\"url\\"}), shown as a chip over the image"},{"name":"aspectRatio","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["1:1","4:3","3:2","5:4","16:9","3:4"],"description":"the frame the image is cropped to (default 4:3)"},{"name":"fit","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["cover","contain"],"description":"cover crops a photo to the frame (default), contain shows a logo whole"}],"slots":[]},"ImageGroup":{"categories":["media"],"providesItemScope":false,"textContentProp":null,"summary":"a gallery of pictures as a grid, a carousel or a magazine layout; each opens in a lightbox","props":[{"name":"images","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the pictures: [{\\"src\\",\\"alt\\",\\"title\\"?,\\"caption\\"?,\\"source\\"?:{\\"name\\",\\"url\\"}}], src and alt required per picture"},{"name":"layout","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["grid","carousel","magazine"],"description":"grid (default), carousel or magazine (one hero over tiles)"},{"name":"aspectRatio","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["1:1","4:3","3:2","5:4","16:9","3:4"],"description":"the frame of each tile (default 4:3; the carousel and the magazine hero use 16:9 when unset)"},{"name":"maxVisible","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"grid only: how many tiles show before the last one counts the rest (default 4)"}],"slots":[]},"Input":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a one-line text or number field that writes what is typed to a state value","props":[{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the current text or number, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes what is typed"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the field"},{"name":"placeholder","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"shown while the field is empty"},{"name":"inputType","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["text","number","email","url"],"description":"what is typed (default text)"},{"name":"maxLength","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the most characters the field takes"}],"slots":[]},"KpiTile":{"categories":["data"],"providesItemScope":false,"textContentProp":null,"summary":"one headline number as a tile: label, hero value, unit, change with a good/bad arrow, detail line","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the number is, above it (\\"Visitors\\", \\"MRR month 12\\")"},{"name":"value","types":["number","string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the number (formatted by \`format\`) or an already written value (\\"4,32 %\\")"},{"name":"format","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency","compact","date","text"],"description":"how a numeric value is shown (default number)"},{"name":"currency","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the ISO currency code for format currency (default EUR)"},{"name":"decimals","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the fraction digits of a numeric value (default: up to 2)"},{"name":"signed","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a positive value gets a plus sign (a growth rate)"},{"name":"unit","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a lower-case unit line under the number (\\"visits\\", \\"per month\\")"},{"name":"delta","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the change against the comparison period, signed (+5, -0.49)"},{"name":"deltaFormat","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency"],"description":"how the change is shown (default number)"},{"name":"deltaLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the change compares with (\\"vs. September\\")"},{"name":"higherIsBetter","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"false for a number where less is better (a rank, a churn rate) — the arrow colour follows (default true)"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"the judgement colour of the hero value itself (default neutral)"},{"name":"detail","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line under the tile (\\"All channels\\", \\"simulated\\")"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the number comes from ({\\"name\\",\\"url\\"}), shown as the source line"}],"slots":[],"sourcing":{"needsSource":true,"namesSources":false,"rowsProps":[],"figureProps":["value"]}},"Label":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a short label above a value, an input or a group","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the label, in the owner's language — a few words"}],"slots":[]},"Link":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a text link that opens an http(s) page in a new tab","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the link text, in the owner's language"},{"name":"url","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the http(s) address it opens in a new tab"}],"slots":[]},"List":{"categories":["block"],"providesItemScope":false,"textContentProp":null,"summary":"a hairline-divided list: items (strings or title/description/meta/value) or ListItem children","props":[{"name":"items","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the short form: strings, or {\\"title\\",\\"description\\"?,\\"meta\\"?,\\"value\\"?}"},{"name":"marker","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","bullet","number","check"],"description":"bullet, number, check or none (default none)"},{"name":"emptyText","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the line shown when the list has no entries"}],"slots":[{"name":"children","acceptsCategories":[],"acceptsNodeTypes":["ListItem","Repeat"],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"ListItem nodes and Repeats of ListItems"}]},"ListItem":{"categories":[],"providesItemScope":false,"textContentProp":null,"summary":"one List entry: title, description, meta, value, plus nodes under it and at its end","props":[{"name":"title","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the entry, bold"},{"name":"description","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a line under the title"},{"name":"meta","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line (a date, a source)"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a figure at the end of the entry"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"nodes shown under the title"},{"name":"trailing","acceptsCategories":["inline","input","data"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":2,"sizeClass":"compact","description":"at the end of the entry: a badge, an icon, a sparkline"}]},"Map":{"categories":["heavy"],"providesItemScope":false,"textContentProp":null,"summary":"an interactive map: labelled points with rating badges, a carousel of the points, an optional route line, full-screen expand","props":[{"name":"points","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the places, each {\\"label\\",\\"lat\\",\\"lng\\"} with optional \\"rating\\" (0–5), \\"subtitle\\" (category), \\"detail\\" (a status line such as opening state) with \\"detailTone\\" (a tone of the kit: success for open, danger for closed, warning for closing soon; also neutral, muted, info), \\"image\\" (an http(s) photo URL) and \\"action\\" (the name of an openEntity action of this tree)"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the points are (e.g. \\"Cafés in Münster\\"), the heading of the full-screen list"},{"name":"route","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"draw a route line through the points in their order and number the markers"},{"name":"routePath","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the route line as [{\\"lat\\",\\"lng\\"}, …] when a tool returned the real path; without it the line joins the points directly"},{"name":"routeLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one short line on the route, e.g. its duration or length, shown on the map"},{"name":"carousel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["auto","hidden"],"description":"the carousel of the points along the bottom edge: auto (shown, default) or hidden"},{"name":"minHeight","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the map height in CSS pixels (240–560, default 330)"},{"name":"pointAction","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the name of the action a point without its own \\"action\\" runs — over $from points a row-bound openEntity action ({\\"type\\":\\"openEntity\\",\\"ref\\":{\\"$item\\":\\"entityRef\\"}}) opens each row's entity"}],"slots":[]},"Markdown":{"categories":["block"],"providesItemScope":false,"textContentProp":"markdown","summary":"formatted text: a safe Markdown subset (no HTML, no images), http(s) links in a new tab","props":[{"name":"markdown","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the formatted text (Markdown without HTML, images or code fences), in the owner's language"}],"slots":[]},"Math":{"categories":["block","inline"],"providesItemScope":false,"textContentProp":"latex","summary":"a formula typeset from LaTeX, as a centred block or inline in a sentence, with an optional heading and caption","props":[{"name":"latex","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the formula in LaTeX math notation, without $ delimiters, e.g. \\"CR = \\\\frac{N_{Conversions}}{N_{Visitors}} \\\\times 100\\\\%\\""},{"name":"display","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["block","inline"],"description":"\\"block\\" (default) centres the formula on its own line, \\"inline\\" sets it inside a line of text"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short heading above a block formula (\\"Conversion rate\\"), shown with a LaTeX badge"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under a block formula: what the symbols mean, or a worked example"}],"slots":[]},"Popover":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a small button (label + info icon) that opens a floating explanation on click","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the button text (e.g. \\"Method\\")"},{"name":"text","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the explanation as plain text"},{"name":"icon","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["info","help","none"],"description":"the icon before the label: info (default), help or none"},{"name":"placement","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","end"],"description":"which edge of the button the panel lines up with: start or end (default — for a button at the right of a title row)"}],"slots":[{"name":"content","acceptsCategories":["inline","block","data","media"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"the explanation, when it is more than one plain text"}]},"Pressable":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"makes its content one clickable area that sets a state value or runs an action","props":[{"name":"onClick","types":["event"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} (writes \`value\`) or {\\"action\\": \\"<action name>\\"}"},{"name":"value","types":["string","number","boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the value a {\\"set\\": …} click writes into the state"},{"name":"isSelected","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"draw the selection ring (bind a computed comparison, e.g. channel == \\"Organic\\")"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the click does, for screen readers (e.g. \\"Show the organic channel\\")"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","layout"],"acceptsNodeTypes":[],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"what the clickable area shows (no inputs, no other pressable)"}]},"Quote":{"categories":["block"],"providesItemScope":false,"textContentProp":"text","summary":"a quotation: the quoted words, who said them and where they were published","props":[{"name":"text","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the quoted words, verbatim"},{"name":"attribution","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"who said or wrote it"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where it was published ({\\"name\\",\\"url\\"}), shown as a link after the attribution"}],"slots":[{"name":"children","acceptsCategories":["inline","block"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the quoted content, when it is more than one plain text"}]},"RadioGroup":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"radio buttons: one of a few explained choices, the picked one written to a state value","props":[{"name":"options","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the choices: a list of labels, or of {\\"id\\", \\"label\\", \\"description\\", \\"disabled\\"} objects; the picked id (or label) is written to the state"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked choice, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the picked id"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the group"},{"name":"direction","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["column","row"],"description":"the buttons under each other (default) or side by side"}],"slots":[],"optionsProp":"options"},"Repeat":{"categories":["data"],"providesItemScope":true,"textContentProp":null,"summary":"its children once per item, $item bound to the item (table rows, list items, tiles)","props":[{"name":"items","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the list to repeat over, usually a binding ({\\"$data\\":…}, {\\"$computed\\":…})"},{"name":"limit","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"show the first N items only"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":["TableRow","ListItem"],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"the nodes rendered once per item"}],"sourcing":{"needsSource":false,"namesSources":false,"rowsProps":["items"],"figureProps":[]},"itemsProp":"items"},"Select":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a drop-down: one of a longer list of choices, the picked one written to a state value","props":[{"name":"options","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the choices: a list of labels, or of {\\"id\\", \\"label\\", \\"description\\", \\"disabled\\"} objects; the picked id (or label) is written to the state"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked choice, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the picked id"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the control"},{"name":"placeholder","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"shown while nothing is picked"}],"slots":[],"optionsProp":"options"},"Slider":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a slider between min and max that writes the number to a state value and shows it formatted","props":[{"name":"min","types":["number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the smallest value"},{"name":"max","types":["number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the largest value"},{"name":"step","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the step between two values (default 1)"},{"name":"value","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the current value, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the number"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the number is, shown left of the value"},{"name":"unit","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"written after the shown value (\\"%\\", \\"€\\", \\"km\\")"},{"name":"decimals","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"decimal places of the shown value (default: as many as the step has)"},{"name":"showValue","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"show the formatted value beside the label (default true)"}],"slots":[]},"SourceRef":{"categories":["inline","block"],"providesItemScope":false,"textContentProp":null,"summary":"the source line of the shown values: each source with icon and link, licence and author when given","props":[{"name":"sources","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the sources, each {\\"name\\", \\"url\\"?, \\"title\\"?, \\"author\\"?, \\"license\\"?, \\"licenseUrl\\"?} — name = the publisher or site"}],"slots":[],"sourcing":{"needsSource":false,"namesSources":true,"rowsProps":[],"figureProps":[]}},"Spacer":{"categories":["block"],"providesItemScope":false,"textContentProp":null,"summary":"empty room: a fixed step, or all the free room of a row (grow)","props":[{"name":"size","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["small","medium","large"],"description":"the extra space: small, medium (default) or large"},{"name":"grow","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"take all the free room of the row or column, pushing the following nodes to the end"}],"slots":[]},"Stack":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"a row or a column of nodes with one gap step between them; rows wrap on a narrow screen","props":[{"name":"direction","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["row","column"],"description":"row (side by side) or column (one under the other, the default)"},{"name":"gap","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","xsmall","small","medium","large"],"description":"the space between the children: none, xsmall, small, medium (default, between rows and tiles) or large (between sections)"},{"name":"align","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end","stretch","baseline"],"description":"cross-axis alignment: start, center, end, stretch (the column default) or baseline"},{"name":"justify","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end","between"],"description":"main-axis distribution: start (default), center, end or between (first and last at the edges, e.g. a title left and a control right)"},{"name":"wrap","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a row continues on the next line when it does not fit (default true)"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout","heavy"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the nodes of the row or column, in order"}]},"Surface":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"a titled surface grouping nodes, with optional media, header controls, body and footer","props":[{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the title of the surface, in the owner's language"},{"name":"subtitle","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the title (what the numbers are, the period)"},{"name":"density","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["regular","compact"],"description":"regular (default) or compact (smaller padding, for tiles in a grid or carousel)"}],"slots":[{"name":"media","acceptsCategories":["media"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":1,"sizeClass":"full","description":"one image or video flush with the top of the surface"},{"name":"header","acceptsCategories":["inline","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":3,"sizeClass":"compact","description":"controls and badges at the end of the title row (tabs, a badge, a popover)"},{"name":"children","acceptsCategories":["inline","block","data","media","input","layout","heavy"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the body, one node under the other"},{"name":"footer","acceptsCategories":["inline","block","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"a caption line or small actions at the foot"}]},"Svg":{"categories":["data","media"],"providesItemScope":false,"textContentProp":null,"summary":"a sanitised vector graphic from SVG markup (no scripts, no external references); the markup may follow the state through a computed text","props":[{"name":"markup","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"one <svg> element with a viewBox, e.g. \\"<svg viewBox='0 0 200 200'>…</svg>\\"; bind it to a computed text to make the drawing follow the state"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the graphic shows, in one sentence (read out by screen readers)"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short heading above the graphic"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the heading"}],"slots":[]},"Table":{"categories":["data"],"providesItemScope":false,"textContentProp":null,"summary":"a table: columns + rows, or TableRow / Repeat children whose TableCells hold other nodes","props":[{"name":"columns","types":["array"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the short form: [{\\"key\\",\\"label\\",\\"align\\"?,\\"format\\"?,\\"decimals\\"?,\\"currency\\"?,\\"unit\\"?}] — the header row and how each cell is shown"},{"name":"rows","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the short form: the rows (objects with the column keys), usually a binding"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line under the table (what the figures are, the date)"},{"name":"emptyText","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the line shown when the short form has no rows"},{"name":"source","types":["object","array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the figures come from ({\\"name\\",\\"url\\"}, or a list of them when the values come from several pages), shown as the source line"}],"slots":[{"name":"children","acceptsCategories":[],"acceptsNodeTypes":["TableRow","Repeat"],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"TableRow nodes and Repeats of TableRows, in display order"}],"sourcing":{"needsSource":true,"namesSources":false,"rowsProps":["rows"],"figureProps":[]}},"TableCell":{"categories":[],"providesItemScope":false,"textContentProp":"value","summary":"one table cell: a formatted value, a share bar or heat tint, and compact nodes (icon, badge, sparkline)","props":[{"name":"value","types":["string","number","boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the cell text or number, usually {\\"$item\\":\\"field\\"}"},{"name":"format","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency","compact","date","text"],"description":"how a numeric value is shown (default number)"},{"name":"currency","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the ISO currency code for format currency (default EUR)"},{"name":"decimals","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the fraction digits of a numeric value (default: up to 2)"},{"name":"unit","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a unit written after the value"},{"name":"align","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end"],"description":"start, center or end (numbers: end)"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"the judgement colour of the value (success: a +2 in green, danger: a -3 in red)"},{"name":"signed","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a positive number gets a plus sign (a change column)"},{"name":"bar","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a share bar in the cell, the filled part from 0 to 1"},{"name":"heat","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"tints the cell by intensity from 0 to 1 (a heatmap cell); no value = an empty cell"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"nodes shown in the cell after the value (compact: a chart is a sparkline, an image a thumbnail)"}],"sourcing":{"needsSource":false,"namesSources":false,"rowsProps":[],"figureProps":["value"]}},"TableRow":{"categories":[],"providesItemScope":false,"textContentProp":null,"summary":"one table row of TableCells; header for the column titles, emphasis for a total row","props":[{"name":"header","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the column header row"},{"name":"emphasis","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a total or summary row, shown bold"}],"slots":[{"name":"children","acceptsCategories":[],"acceptsNodeTypes":["TableCell"],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"the TableCell nodes, one per column"}]},"Tabs":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a segmented control: a few short choices side by side, the picked one written to a state value","props":[{"name":"options","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the choices: a list of labels, or of {\\"id\\", \\"label\\", \\"description\\", \\"disabled\\"} objects; the picked id (or label) is written to the state"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked choice, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the picked id"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the control"}],"slots":[],"optionsProp":"options"},"Text":{"categories":["inline","block"],"providesItemScope":false,"textContentProp":"text","summary":"plain text, a paragraph or an inline run; its children are inline nodes on the same line","props":[{"name":"text","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the text, in the owner's language (a Text with only children may leave it out)"},{"name":"weight","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["regular","medium","bold"],"description":"regular (default), medium or bold"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"neutral (default), muted (secondary text), success (green), warning (amber), danger (red) or info (blue)"},{"name":"maxLines","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"clamp the text at this many lines (1–10); the full text shows on hover"}],"slots":[{"name":"children","acceptsCategories":["inline"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"inline nodes that follow the text on the same line"}]},"Textarea":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a multi-line text field that writes what is typed to a state value","props":[{"name":"value","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the current text, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes what is typed"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the field"},{"name":"placeholder","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"shown while the field is empty"},{"name":"rows","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the visible lines (default 3)"},{"name":"maxLength","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the most characters the field takes, shown as a counter"}],"slots":[]},"Title":{"categories":["block"],"providesItemScope":false,"textContentProp":"text","summary":"a heading: the title of the view or of one section of it","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the heading, in the owner's language"},{"name":"level","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["widget","section"],"description":"widget = the title of the whole view (default), section = the title of one part of it"}],"slots":[]},"Video":{"categories":["media"],"providesItemScope":false,"textContentProp":null,"summary":"one video: title, thumbnail, length, and a videoId or url that plays it","props":[{"name":"title","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the video title, as the source names it"},{"name":"videoId","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the id the video connector returned (plays embedded)"},{"name":"url","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"an http(s) link that opens the video, when there is no videoId"},{"name":"thumbnail","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the thumbnail image URL"},{"name":"durationSeconds","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the length in seconds"},{"name":"channel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"who published it"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the video was found ({\\"name\\",\\"url\\"}), shown as the source line"}],"slots":[]},"Widget":{"categories":["heavy"],"providesItemScope":false,"textContentProp":null,"summary":"an existing domain widget embedded in the tree (only widgets declared embeddable)","props":[{"name":"widget","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the wire name of an embeddable domain widget"},{"name":"fields","types":["object"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the widget's own payload fields, as its fence would carry them next to \`type\`"}],"slots":[]}}`);
|
|
61
62
|
const embeddableWidgets = { "CustomVisualization": { "sizeClass": "full" } };
|
|
62
|
-
const widgetTypes = ["AttachedFiles", "ComposedView", "ContinueInPersonalSpace", "ConversationSearchResults", "CustomVisualization", "DriveFiles", "EntityMention", "ExtendConnectionPermission", "ImageGallery", "MultiChoice", "QuickReplies", "SuggestedActions", "ToolTrace", "WebSearchResults"];
|
|
63
|
+
const widgetTypes = ["AttachedFiles", "ComposedView", "ContinueInPersonalSpace", "ConversationSearchResults", "CustomVisualization", "DriveFiles", "EntityMention", "ExtendConnectionPermission", "ImageGallery", "MailDraftPreview", "MultiChoice", "QuickReplies", "SuggestedActions", "ToolTrace", "WebSearchResults"];
|
|
63
64
|
const dataSources = {};
|
|
64
65
|
const entityTypes = [];
|
|
65
66
|
const generatedComposedNodeSchema = {
|
|
@@ -234,12 +235,12 @@ const readComposedViewRowField = (row2, fieldName) => {
|
|
|
234
235
|
if (!isPlainObject$2(row2)) return { found: false, value: void 0 };
|
|
235
236
|
if (hasOwn$1(row2, fieldName)) return { found: true, value: row2[fieldName] };
|
|
236
237
|
if (!fieldName.includes(".")) return { found: false, value: void 0 };
|
|
237
|
-
let
|
|
238
|
+
let fieldValue2 = row2;
|
|
238
239
|
for (const fieldNamePart of fieldName.split(".")) {
|
|
239
|
-
if (!isPlainObject$2(
|
|
240
|
-
|
|
240
|
+
if (!isPlainObject$2(fieldValue2) || !hasOwn$1(fieldValue2, fieldNamePart)) return { found: false, value: void 0 };
|
|
241
|
+
fieldValue2 = fieldValue2[fieldNamePart];
|
|
241
242
|
}
|
|
242
|
-
return { found: true, value:
|
|
243
|
+
return { found: true, value: fieldValue2 };
|
|
243
244
|
};
|
|
244
245
|
const collectRowKeys = (row2, keyPrefix, leafDepth) => {
|
|
245
246
|
const ownKeys = [];
|
|
@@ -2064,7 +2065,7 @@ const readFiniteNumber$1 = (value2) => {
|
|
|
2064
2065
|
}
|
|
2065
2066
|
return void 0;
|
|
2066
2067
|
};
|
|
2067
|
-
const readText$
|
|
2068
|
+
const readText$3 = (value2) => typeof value2 === "string" && value2 !== "" ? value2 : typeof value2 === "number" ? String(value2) : void 0;
|
|
2068
2069
|
const readObject = (value2) => typeof value2 === "object" && value2 !== null && !Array.isArray(value2) ? value2 : void 0;
|
|
2069
2070
|
const readRows = (value2) => Array.isArray(value2) ? value2.filter(
|
|
2070
2071
|
(row2) => typeof row2 === "object" && row2 !== null && !Array.isArray(row2)
|
|
@@ -2161,13 +2162,13 @@ const CHART_SERIES_COLOR_TOKENS = [
|
|
|
2161
2162
|
"--agents-chart-07",
|
|
2162
2163
|
"--agents-chart-08"
|
|
2163
2164
|
];
|
|
2164
|
-
const readChartDeltaField = (props) => readChartKind(props.kind) === "bar" ? readText$
|
|
2165
|
+
const readChartDeltaField = (props) => readChartKind(props.kind) === "bar" ? readText$3(props.deltaField) : void 0;
|
|
2165
2166
|
const readChartDeltaUnit = (value2) => CHART_DELTA_UNITS.find((deltaUnit) => deltaUnit === value2);
|
|
2166
2167
|
const readChartDeltaTone = (delta2) => delta2 === void 0 || delta2 === 0 ? "muted" : delta2 > 0 ? "success" : "danger";
|
|
2167
2168
|
const buildChartBarRowsModel = (input) => {
|
|
2168
2169
|
const { props, locale } = input;
|
|
2169
2170
|
const rows2 = readRows(props.data) ?? [];
|
|
2170
|
-
const xField = readText$
|
|
2171
|
+
const xField = readText$3(props.x) ?? "";
|
|
2171
2172
|
const deltaField = readChartDeltaField(props) ?? "";
|
|
2172
2173
|
const seriesDeclaration = readChartSeries(props.series).find(
|
|
2173
2174
|
(candidate) => rows2.some((row2) => readFiniteNumber$1(row2[candidate.field]) !== void 0)
|
|
@@ -2177,7 +2178,7 @@ const buildChartBarRowsModel = (input) => {
|
|
|
2177
2178
|
return { status: "invalid", detail: "no row has a number in the Chart's series" };
|
|
2178
2179
|
}
|
|
2179
2180
|
const valueFormat = readDataValueFormat(props.valueFormat);
|
|
2180
|
-
const currency = readText$
|
|
2181
|
+
const currency = readText$3(props.currency);
|
|
2181
2182
|
const deltaUnit = readChartDeltaUnit(props.deltaUnit);
|
|
2182
2183
|
const plottedRows = rows2.map((row2) => ({ row: row2, value: readFiniteNumber$1(row2[seriesDeclaration.field]) })).filter(
|
|
2183
2184
|
(plottedRow) => plottedRow.value !== void 0
|
|
@@ -2192,7 +2193,7 @@ const buildChartBarRowsModel = (input) => {
|
|
|
2192
2193
|
rows: plottedRows.map((plottedRow, rowIndex) => {
|
|
2193
2194
|
const delta2 = readFiniteNumber$1(plottedRow.row[deltaField]);
|
|
2194
2195
|
return {
|
|
2195
|
-
label: readText$
|
|
2196
|
+
label: readText$3(plottedRow.row[xField]) ?? "",
|
|
2196
2197
|
valueText: formatDataValue(plottedRow.value, { format: valueFormat, currency, locale }),
|
|
2197
2198
|
fraction: axisMax > 0 ? Math.min(1, Math.max(0, plottedRow.value / axisMax)) : 0,
|
|
2198
2199
|
colorToken: CHART_SERIES_COLOR_TOKENS[rowIndex % CHART_SERIES_COLOR_TOKENS.length],
|
|
@@ -2215,15 +2216,15 @@ const readRadarRadius = (input) => {
|
|
|
2215
2216
|
const buildChartFunnelModel = (input) => {
|
|
2216
2217
|
const { props, locale } = input;
|
|
2217
2218
|
const rows2 = readRows(props.data) ?? [];
|
|
2218
|
-
const xField = readText$
|
|
2219
|
+
const xField = readText$3(props.x) ?? "";
|
|
2219
2220
|
const seriesDeclaration = readChartSeries(props.series).find(
|
|
2220
2221
|
(candidate) => rows2.some((row2) => readFiniteNumber$1(row2[candidate.field]) !== void 0)
|
|
2221
2222
|
);
|
|
2222
2223
|
if (rows2.length === 0) return { status: "empty", detail: "the Chart has no rows" };
|
|
2223
2224
|
if (!seriesDeclaration) return { status: "invalid", detail: "no row has a number in the Chart's series" };
|
|
2224
2225
|
const valueFormat = readDataValueFormat(props.valueFormat);
|
|
2225
|
-
const currency = readText$
|
|
2226
|
-
const stageValues = rows2.map((row2) => ({ label: readText$
|
|
2226
|
+
const currency = readText$3(props.currency);
|
|
2227
|
+
const stageValues = rows2.map((row2) => ({ label: readText$3(row2[xField]) ?? "", value: readFiniteNumber$1(row2[seriesDeclaration.field]) })).filter((stageValue) => stageValue.value !== void 0);
|
|
2227
2228
|
const largestValue = Math.max(0, ...stageValues.map((stageValue) => stageValue.value));
|
|
2228
2229
|
return {
|
|
2229
2230
|
status: "ok",
|
|
@@ -2251,9 +2252,9 @@ const readChartSeries = (seriesValue) => {
|
|
|
2251
2252
|
const seriesDeclarations = [];
|
|
2252
2253
|
for (const seriesEntry of seriesValue) {
|
|
2253
2254
|
const seriesObject = readObject(seriesEntry);
|
|
2254
|
-
const field2 = readText$
|
|
2255
|
+
const field2 = readText$3(seriesObject?.field) ?? readText$3(seriesObject?.key);
|
|
2255
2256
|
if (!seriesObject || !field2 || seriesObject.visible === false) continue;
|
|
2256
|
-
const explicitLabel = readText$
|
|
2257
|
+
const explicitLabel = readText$3(seriesObject.label);
|
|
2257
2258
|
seriesDeclarations.push({ field: field2, label: explicitLabel ?? field2, hasExplicitLabel: explicitLabel !== void 0 });
|
|
2258
2259
|
}
|
|
2259
2260
|
return seriesDeclarations;
|
|
@@ -2289,7 +2290,7 @@ const buildChartModel = (input) => {
|
|
|
2289
2290
|
const kind = writtenKind === "funnel" ? "bar" : writtenKind;
|
|
2290
2291
|
if (!kind) return { status: "invalid", detail: `the Chart kind "${String(props.kind)}" is not a chart kind` };
|
|
2291
2292
|
const rows2 = readRows(props.data) ?? [];
|
|
2292
|
-
const xField = readText$
|
|
2293
|
+
const xField = readText$3(props.x) ?? "";
|
|
2293
2294
|
const seriesDeclarations = readChartSeries(props.series);
|
|
2294
2295
|
if (rows2.length === 0) return { status: "empty", detail: "the Chart has no rows" };
|
|
2295
2296
|
if (seriesDeclarations.length === 0) return { status: "empty", detail: "the Chart shows no series" };
|
|
@@ -2304,8 +2305,8 @@ const buildChartModel = (input) => {
|
|
|
2304
2305
|
}
|
|
2305
2306
|
const isSparkline = sizeClass === "compact";
|
|
2306
2307
|
const valueFormat = readDataValueFormat(props.valueFormat);
|
|
2307
|
-
const formatValue = buildValueFormatter(valueFormat, readText$
|
|
2308
|
-
const categories2 = rows2.map((row2) => readText$
|
|
2308
|
+
const formatValue = buildValueFormatter(valueFormat, readText$3(props.currency), locale);
|
|
2309
|
+
const categories2 = rows2.map((row2) => readText$3(row2[xField]) ?? "");
|
|
2309
2310
|
const height = HEIGHT_BY_SIZE_CLASS[sizeClass];
|
|
2310
2311
|
const isHorizontalBar = kind === "bar" && props.horizontal === true;
|
|
2311
2312
|
const isDistributedBar = kind === "bar" && presentSeries.length === 1;
|
|
@@ -2373,7 +2374,7 @@ const buildChartModel = (input) => {
|
|
|
2373
2374
|
max: axisMax,
|
|
2374
2375
|
tickAmount: readTickAmountForBounds(axisMin, axisMax),
|
|
2375
2376
|
forceNiceScale: axisMax === void 0,
|
|
2376
|
-
title: { text: readText$
|
|
2377
|
+
title: { text: readText$3(props.yLabel), style: { color: palette.axisTextColor, fontWeight: 400 } },
|
|
2377
2378
|
labels: { formatter: (value2) => formatValue(value2), style: textStyle }
|
|
2378
2379
|
};
|
|
2379
2380
|
const seriesLabels = presentSeries.map((seriesDeclaration) => seriesDeclaration.label);
|
|
@@ -2569,7 +2570,7 @@ const buildChartModel = (input) => {
|
|
|
2569
2570
|
plotWidth > 0 && plotWidth < NARROW_PLOT_WIDTH ? 3 : 5
|
|
2570
2571
|
) : void 0;
|
|
2571
2572
|
const formatAxisNumber = buildValueFormatter("number", void 0, locale);
|
|
2572
|
-
const categoryAxisTitle = { text: readText$
|
|
2573
|
+
const categoryAxisTitle = { text: readText$3(props.xLabel), style: { color: palette.axisTextColor, fontWeight: 400 } };
|
|
2573
2574
|
return {
|
|
2574
2575
|
status: "ok",
|
|
2575
2576
|
model: {
|
|
@@ -2642,7 +2643,7 @@ const textSuccess = "agents_textSuccess_-CDriP";
|
|
|
2642
2643
|
const textWarning = "agents_textWarning_77r5Zc";
|
|
2643
2644
|
const textDanger = "agents_textDanger_-erzvV";
|
|
2644
2645
|
const textInfo = "agents_textInfo_ZVSKa-";
|
|
2645
|
-
const styles$
|
|
2646
|
+
const styles$S = {
|
|
2646
2647
|
textNeutral,
|
|
2647
2648
|
textMuted,
|
|
2648
2649
|
textSuccess,
|
|
@@ -2651,12 +2652,12 @@ const styles$R = {
|
|
|
2651
2652
|
textInfo
|
|
2652
2653
|
};
|
|
2653
2654
|
const TONE_TEXT_CLASS = {
|
|
2654
|
-
neutral: styles$
|
|
2655
|
-
muted: styles$
|
|
2656
|
-
success: styles$
|
|
2657
|
-
warning: styles$
|
|
2658
|
-
danger: styles$
|
|
2659
|
-
info: styles$
|
|
2655
|
+
neutral: styles$S.textNeutral,
|
|
2656
|
+
muted: styles$S.textMuted,
|
|
2657
|
+
success: styles$S.textSuccess,
|
|
2658
|
+
warning: styles$S.textWarning,
|
|
2659
|
+
danger: styles$S.textDanger,
|
|
2660
|
+
info: styles$S.textInfo
|
|
2660
2661
|
};
|
|
2661
2662
|
const TONE_GRAPHIC_COLOR = COMPOSED_VIEW_TONE_GRAPHIC_COLOR;
|
|
2662
2663
|
const TONE_TEXT_COLOR = COMPOSED_VIEW_TONE_TEXT_COLOR;
|
|
@@ -2669,7 +2670,7 @@ const value$2 = "agents_value_2Tk6gt";
|
|
|
2669
2670
|
const delta$1 = "agents_delta_Khlvom";
|
|
2670
2671
|
const labelText = "agents_labelText_-JNOOt";
|
|
2671
2672
|
const figure$1 = "agents_figure_UKZnlr";
|
|
2672
|
-
const styles$
|
|
2673
|
+
const styles$R = {
|
|
2673
2674
|
rows,
|
|
2674
2675
|
row: row$4,
|
|
2675
2676
|
label: label$4,
|
|
@@ -2683,39 +2684,39 @@ const styles$Q = {
|
|
|
2683
2684
|
const ChartBarRows = (props) => {
|
|
2684
2685
|
const { model, accessibleLabel, testId } = props;
|
|
2685
2686
|
const hasDeltas = model.rows.some((row2) => row2.deltaText !== void 0);
|
|
2686
|
-
return /* @__PURE__ */ jsx("table", { className: styles$
|
|
2687
|
+
return /* @__PURE__ */ jsx("table", { className: styles$R.rows, "aria-label": accessibleLabel, "data-testid": testId, children: /* @__PURE__ */ jsx("tbody", { children: model.rows.map((row2, rowIndex) => /* @__PURE__ */ jsxs(
|
|
2687
2688
|
"tr",
|
|
2688
2689
|
{
|
|
2689
|
-
className: styles$
|
|
2690
|
+
className: styles$R.row,
|
|
2690
2691
|
"data-testid": testId ? `${testId}-row-${rowIndex}` : void 0,
|
|
2691
2692
|
children: [
|
|
2692
|
-
/* @__PURE__ */ jsx("th", { scope: "row", className: styles$
|
|
2693
|
-
/* @__PURE__ */ jsx("td", { className: styles$
|
|
2693
|
+
/* @__PURE__ */ jsx("th", { scope: "row", className: styles$R.label, children: /* @__PURE__ */ jsx(Text, { role: "help", className: styles$R.labelText, translate: false, children: escapePlainTextForText(row2.label) }) }),
|
|
2694
|
+
/* @__PURE__ */ jsx("td", { className: styles$R.track, "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
2694
2695
|
"span",
|
|
2695
2696
|
{
|
|
2696
|
-
className: styles$
|
|
2697
|
+
className: styles$R.bar,
|
|
2697
2698
|
style: {
|
|
2698
2699
|
"--agents-chart-bar-fraction": `${Math.round(row2.fraction * 1e3) / 10}%`,
|
|
2699
2700
|
"--agents-chart-bar-color": `var(${row2.colorToken})`
|
|
2700
2701
|
}
|
|
2701
2702
|
}
|
|
2702
2703
|
) }),
|
|
2703
|
-
/* @__PURE__ */ jsx("td", { className: styles$
|
|
2704
|
+
/* @__PURE__ */ jsx("td", { className: styles$R.value, children: /* @__PURE__ */ jsx(
|
|
2704
2705
|
Text,
|
|
2705
2706
|
{
|
|
2706
2707
|
role: "help",
|
|
2707
2708
|
weight: "medium",
|
|
2708
|
-
className: styles$
|
|
2709
|
+
className: styles$R.figure,
|
|
2709
2710
|
translate: false,
|
|
2710
2711
|
children: escapePlainTextForText(row2.valueText)
|
|
2711
2712
|
}
|
|
2712
2713
|
) }),
|
|
2713
|
-
hasDeltas ? /* @__PURE__ */ jsx("td", { className: styles$
|
|
2714
|
+
hasDeltas ? /* @__PURE__ */ jsx("td", { className: styles$R.delta, children: row2.deltaText !== void 0 ? /* @__PURE__ */ jsx(
|
|
2714
2715
|
Text,
|
|
2715
2716
|
{
|
|
2716
2717
|
role: "help",
|
|
2717
2718
|
color: TONE_TEXT_COLOR[row2.deltaTone],
|
|
2718
|
-
className: styles$
|
|
2719
|
+
className: styles$R.figure,
|
|
2719
2720
|
translate: false,
|
|
2720
2721
|
children: escapePlainTextForText(row2.deltaText)
|
|
2721
2722
|
}
|
|
@@ -2733,7 +2734,7 @@ const figure = "agents_figure_YQkr-X";
|
|
|
2733
2734
|
const bar$1 = "agents_bar_WUSPao";
|
|
2734
2735
|
const conversion = "agents_conversion_B88QLI";
|
|
2735
2736
|
const conversionIcon = "agents_conversionIcon_bJalHq";
|
|
2736
|
-
const styles$
|
|
2737
|
+
const styles$Q = {
|
|
2737
2738
|
stages,
|
|
2738
2739
|
stage,
|
|
2739
2740
|
stageHead,
|
|
@@ -2745,33 +2746,33 @@ const styles$P = {
|
|
|
2745
2746
|
};
|
|
2746
2747
|
const ChartFunnelRows = (props) => {
|
|
2747
2748
|
const { model, accessibleLabel, testId } = props;
|
|
2748
|
-
return /* @__PURE__ */ jsx("ol", { className: styles$
|
|
2749
|
+
return /* @__PURE__ */ jsx("ol", { className: styles$Q.stages, "aria-label": accessibleLabel, "data-testid": testId, children: model.stages.map((stage2, stageIndex) => /* @__PURE__ */ jsxs(
|
|
2749
2750
|
"li",
|
|
2750
2751
|
{
|
|
2751
|
-
className: styles$
|
|
2752
|
+
className: styles$Q.stage,
|
|
2752
2753
|
"data-testid": testId ? `${testId}-stage-${stageIndex}` : void 0,
|
|
2753
2754
|
children: [
|
|
2754
|
-
stage2.conversionText !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2755
|
-
/* @__PURE__ */ jsx(Icon, { className: styles$
|
|
2755
|
+
stage2.conversionText !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$Q.conversion, children: [
|
|
2756
|
+
/* @__PURE__ */ jsx(Icon, { className: styles$Q.conversionIcon, name: "arrowDown" }),
|
|
2756
2757
|
/* @__PURE__ */ jsx(
|
|
2757
2758
|
Text,
|
|
2758
2759
|
{
|
|
2759
2760
|
role: "caption",
|
|
2760
2761
|
color: "var(--agents-fg-light)",
|
|
2761
|
-
className: styles$
|
|
2762
|
+
className: styles$Q.figure,
|
|
2762
2763
|
replacements: { conversion: stage2.conversionText },
|
|
2763
2764
|
children: "%conversion% of the previous stage"
|
|
2764
2765
|
}
|
|
2765
2766
|
)
|
|
2766
2767
|
] }) : null,
|
|
2767
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2768
|
-
/* @__PURE__ */ jsx(Text, { role: "help", className: styles$
|
|
2769
|
-
/* @__PURE__ */ jsx(Text, { role: "help", weight: "bold", className: styles$
|
|
2768
|
+
/* @__PURE__ */ jsxs("div", { className: styles$Q.stageHead, children: [
|
|
2769
|
+
/* @__PURE__ */ jsx(Text, { role: "help", className: styles$Q.label, translate: false, children: escapePlainTextForText(stage2.label) }),
|
|
2770
|
+
/* @__PURE__ */ jsx(Text, { role: "help", weight: "bold", className: styles$Q.figure, translate: false, children: escapePlainTextForText(stage2.valueText) })
|
|
2770
2771
|
] }),
|
|
2771
2772
|
/* @__PURE__ */ jsx(
|
|
2772
2773
|
"span",
|
|
2773
2774
|
{
|
|
2774
|
-
className: styles$
|
|
2775
|
+
className: styles$Q.bar,
|
|
2775
2776
|
"aria-hidden": "true",
|
|
2776
2777
|
style: { "--agents-chart-funnel-fraction": `${Math.round(stage2.fraction * 1e3) / 10}%` }
|
|
2777
2778
|
}
|
|
@@ -2805,7 +2806,7 @@ const footnote = "agents_footnote_Eh9hCo";
|
|
|
2805
2806
|
const quiet = "agents_quiet_3g4fJY";
|
|
2806
2807
|
const sourceButton = "agents_sourceButton_-n9HT3";
|
|
2807
2808
|
const sourceChip$1 = "agents_sourceChip_Sa0S4w";
|
|
2808
|
-
const styles$
|
|
2809
|
+
const styles$P = {
|
|
2809
2810
|
footnote,
|
|
2810
2811
|
quiet,
|
|
2811
2812
|
sourceButton,
|
|
@@ -2826,7 +2827,7 @@ const readFootnoteSources = (source2) => {
|
|
|
2826
2827
|
for (const sourceValue of sourceValues) {
|
|
2827
2828
|
const sourceObject = readObject(sourceValue);
|
|
2828
2829
|
const url = readHttpUrl$1(sourceObject?.url);
|
|
2829
|
-
const name = readText$
|
|
2830
|
+
const name = readText$3(sourceObject?.name) ?? readHostName(url);
|
|
2830
2831
|
if (name) footnoteSources.push({ name, url });
|
|
2831
2832
|
}
|
|
2832
2833
|
return footnoteSources;
|
|
@@ -2847,14 +2848,14 @@ const SourceChip$1 = (props) => {
|
|
|
2847
2848
|
iconPosition: "left",
|
|
2848
2849
|
htmlType: "button",
|
|
2849
2850
|
translate: false,
|
|
2850
|
-
className: styles$
|
|
2851
|
+
className: styles$P.sourceButton,
|
|
2851
2852
|
testId,
|
|
2852
2853
|
onClick: openSource,
|
|
2853
2854
|
children: escapePlainTextForText(footnoteSource.name)
|
|
2854
2855
|
}
|
|
2855
2856
|
);
|
|
2856
2857
|
}
|
|
2857
|
-
const className = styles$
|
|
2858
|
+
const className = styles$P.sourceChip;
|
|
2858
2859
|
const sourceChipContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2859
2860
|
/* @__PURE__ */ jsx(Icon, { pixelSize: 12, color: "var(--agents-fg-light)", name: "link" }),
|
|
2860
2861
|
/* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(footnoteSource.name) })
|
|
@@ -2866,10 +2867,10 @@ const SourceChip$1 = (props) => {
|
|
|
2866
2867
|
};
|
|
2867
2868
|
const DataFootnote = (props) => {
|
|
2868
2869
|
const { caption: caption2, source: source2, isEmailRender, appearance = "chip", testId } = props;
|
|
2869
|
-
const captionText = readText$
|
|
2870
|
+
const captionText = readText$3(caption2);
|
|
2870
2871
|
const footnoteSources = readFootnoteSources(source2).map((footnoteSource, sourceIndex) => ({ footnoteSource, sourceIndex })).filter(({ footnoteSource }) => appearance === "chip" || !isEmailRender && readHostName(footnoteSource.url));
|
|
2871
2872
|
if (!captionText && footnoteSources.length === 0) return null;
|
|
2872
|
-
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$
|
|
2873
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$P.footnote, appearance === "quiet" && styles$P.quiet), "data-testid": testId, children: [
|
|
2873
2874
|
captionText ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(captionText) }) : null,
|
|
2874
2875
|
footnoteSources.map(({ footnoteSource, sourceIndex }) => /* @__PURE__ */ jsx(
|
|
2875
2876
|
SourceChip$1,
|
|
@@ -2885,7 +2886,7 @@ const DataFootnote = (props) => {
|
|
|
2885
2886
|
};
|
|
2886
2887
|
const DataEmptyLine = (props) => {
|
|
2887
2888
|
const { emptyText, testId } = props;
|
|
2888
|
-
const modelText = readText$
|
|
2889
|
+
const modelText = readText$3(emptyText);
|
|
2889
2890
|
return modelText ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, testId, children: escapePlainTextForText(modelText) }) : /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", testId, children: "No data to show." });
|
|
2890
2891
|
};
|
|
2891
2892
|
const useReportDataNodeStatus = (runtime, status, code2, detail) => {
|
|
@@ -2898,7 +2899,7 @@ const chart = "agents_chart_w3Iegy";
|
|
|
2898
2899
|
const plot = "agents_plot_5-0cN9";
|
|
2899
2900
|
const sparkline = "agents_sparkline_0aul49";
|
|
2900
2901
|
const skeleton$3 = "agents_skeleton_0zIRZc";
|
|
2901
|
-
const styles$
|
|
2902
|
+
const styles$O = {
|
|
2902
2903
|
chart,
|
|
2903
2904
|
plot,
|
|
2904
2905
|
sparkline,
|
|
@@ -2960,23 +2961,23 @@ const ChartNode = (props) => {
|
|
|
2960
2961
|
isWaiting || chartModelResult.status === "ok" ? void 0 : chartModelResult.status === "empty" ? "NO_DATA" : "INVALID_PROP",
|
|
2961
2962
|
isWaiting || chartModelResult.status === "ok" ? void 0 : chartModelResult.detail
|
|
2962
2963
|
);
|
|
2963
|
-
const title2 = readText$
|
|
2964
|
+
const title2 = readText$3(nodeProps.title);
|
|
2964
2965
|
const kind = readChartKind(nodeProps.kind) ?? "line";
|
|
2965
2966
|
const plottedSeriesLabels = barRowsModelResult?.status === "ok" ? [barRowsModelResult.model.seriesLabel] : funnelModelResult?.status === "ok" ? [funnelModelResult.model.seriesLabel] : chartModelResult.status === "ok" && "seriesLabels" in chartModelResult.model ? chartModelResult.model.seriesLabels : [];
|
|
2966
2967
|
const accessibleLabel = chartModelResult.status === "ok" ? [title2, plottedSeriesLabels.join(", ")].filter(Boolean).join(": ") : title2;
|
|
2967
|
-
const deltaLabel = readText$
|
|
2968
|
+
const deltaLabel = readText$3(nodeProps.deltaLabel);
|
|
2968
2969
|
const deltaUnitLine = barRowsModelResult?.status === "ok" && barRowsModelResult.model.deltaUnit === "pp" ? "Right: change in percentage points" : barRowsModelResult?.status === "ok" && barRowsModelResult.model.deltaUnit === "%" ? "Right: change in percent" : void 0;
|
|
2969
|
-
return /* @__PURE__ */ jsxs("figure", { className: classNames(styles$
|
|
2970
|
+
return /* @__PURE__ */ jsxs("figure", { className: classNames(styles$O.chart, isSparkline && styles$O.sparkline), "data-testid": testId, children: [
|
|
2970
2971
|
title2 && !isSparkline ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "bold", translate: false, children: escapePlainTextForText(title2) }) : null,
|
|
2971
2972
|
/* @__PURE__ */ jsx(
|
|
2972
2973
|
"div",
|
|
2973
2974
|
{
|
|
2974
2975
|
ref: containerRef,
|
|
2975
|
-
className: styles$
|
|
2976
|
+
className: styles$O.plot,
|
|
2976
2977
|
role: chartModelResult.status === "ok" && !drawsItsOwnRows ? "img" : void 0,
|
|
2977
2978
|
"aria-label": drawsItsOwnRows ? void 0 : accessibleLabel,
|
|
2978
2979
|
"data-chart-kind": kind,
|
|
2979
|
-
children: isWaiting ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
2980
|
+
children: isWaiting ? /* @__PURE__ */ jsx("div", { className: styles$O.skeleton, "aria-busy": "true", "data-testid": `${testId}-skeleton`, children: /* @__PURE__ */ jsx(SkeletonLine, { width: "100%", height: isSparkline ? 32 : 240, radius: 12 }) }) : barRowsModelResult?.status === "ok" ? /* @__PURE__ */ jsx(ChartBarRows, { model: barRowsModelResult.model, accessibleLabel, testId: `${testId}-rows` }) : funnelModelResult?.status === "ok" ? /* @__PURE__ */ jsx(
|
|
2980
2981
|
ChartFunnelRows,
|
|
2981
2982
|
{
|
|
2982
2983
|
model: funnelModelResult.model,
|
|
@@ -3006,7 +3007,7 @@ const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
3006
3007
|
composedViewComponent: composedViewComponent$N
|
|
3007
3008
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3008
3009
|
const icon$2 = "agents_icon_b13Mj-";
|
|
3009
|
-
const styles$
|
|
3010
|
+
const styles$N = {
|
|
3010
3011
|
icon: icon$2
|
|
3011
3012
|
};
|
|
3012
3013
|
const ICON_SIZE_PX = { small: 16, medium: 20, large: 24 };
|
|
@@ -3014,7 +3015,7 @@ const readIconName = (value2) => isAgentsIconName(value2) ? value2 : void 0;
|
|
|
3014
3015
|
const IconNode = (props) => {
|
|
3015
3016
|
const { props: nodeProps, runtime, isPending } = props;
|
|
3016
3017
|
const iconName = readIconName(nodeProps.name);
|
|
3017
|
-
const label2 = readText$
|
|
3018
|
+
const label2 = readText$3(nodeProps.label);
|
|
3018
3019
|
const tone = readDataValueTone(nodeProps.tone);
|
|
3019
3020
|
const sizePx = ICON_SIZE_PX[typeof nodeProps.size === "string" ? nodeProps.size : "small"] ?? ICON_SIZE_PX.small;
|
|
3020
3021
|
const hasUnknownName = !isPending && iconName === void 0;
|
|
@@ -3028,7 +3029,7 @@ const IconNode = (props) => {
|
|
|
3028
3029
|
return /* @__PURE__ */ jsx(
|
|
3029
3030
|
"span",
|
|
3030
3031
|
{
|
|
3031
|
-
className: styles$
|
|
3032
|
+
className: styles$N.icon,
|
|
3032
3033
|
role: label2 ? "img" : void 0,
|
|
3033
3034
|
"aria-label": label2,
|
|
3034
3035
|
"aria-hidden": label2 ? void 0 : true,
|
|
@@ -3047,7 +3048,7 @@ const denominator = "agents_denominator_-RIxq1";
|
|
|
3047
3048
|
const unitParts = "agents_unitParts_gogUzd";
|
|
3048
3049
|
const delta = "agents_delta_Tz8K1Q";
|
|
3049
3050
|
const loading = "agents_loading_cYDvLv";
|
|
3050
|
-
const styles$
|
|
3051
|
+
const styles$M = {
|
|
3051
3052
|
tile: tile$2,
|
|
3052
3053
|
denominator,
|
|
3053
3054
|
unitParts,
|
|
@@ -3057,7 +3058,7 @@ const styles$L = {
|
|
|
3057
3058
|
const LayoutNestingContext = createContext({ isInsideSurface: false, isInsidePressable: false });
|
|
3058
3059
|
const useLayoutNesting = () => useContext(LayoutNestingContext);
|
|
3059
3060
|
const meter = "agents_meter_uK2P5l";
|
|
3060
|
-
const styles$
|
|
3061
|
+
const styles$L = {
|
|
3061
3062
|
meter
|
|
3062
3063
|
};
|
|
3063
3064
|
const KpiMeter = (props) => {
|
|
@@ -3066,14 +3067,14 @@ const KpiMeter = (props) => {
|
|
|
3066
3067
|
{ value: value2, color },
|
|
3067
3068
|
{ value: max - value2, color: "var(--agents-kpi-meter-track)" }
|
|
3068
3069
|
].filter((segment) => segment.value > 0);
|
|
3069
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
3070
|
+
return /* @__PURE__ */ jsx("div", { className: styles$L.meter, "aria-hidden": "true", "data-testid": testId, children: /* @__PURE__ */ jsx(SegmentBar, { segments, height: 6 }) });
|
|
3070
3071
|
};
|
|
3071
3072
|
const accent = "agents_accent_OUzS9f";
|
|
3072
3073
|
const success$1 = "agents_success_2NnZBL";
|
|
3073
3074
|
const warning$1 = "agents_warning_cJiOOT";
|
|
3074
3075
|
const danger$1 = "agents_danger_i4A6wL";
|
|
3075
3076
|
const info$1 = "agents_info_sr69ph";
|
|
3076
|
-
const styles$
|
|
3077
|
+
const styles$K = {
|
|
3077
3078
|
accent,
|
|
3078
3079
|
success: success$1,
|
|
3079
3080
|
warning: warning$1,
|
|
@@ -3087,16 +3088,16 @@ const TONE_ICON = {
|
|
|
3087
3088
|
info: "info"
|
|
3088
3089
|
};
|
|
3089
3090
|
const TONE_CLASS = {
|
|
3090
|
-
success: styles$
|
|
3091
|
-
warning: styles$
|
|
3092
|
-
danger: styles$
|
|
3093
|
-
info: styles$
|
|
3091
|
+
success: styles$K.success,
|
|
3092
|
+
warning: styles$K.warning,
|
|
3093
|
+
danger: styles$K.danger,
|
|
3094
|
+
info: styles$K.info
|
|
3094
3095
|
};
|
|
3095
3096
|
const KpiToneAccent = (props) => {
|
|
3096
3097
|
const { tone, testId } = props;
|
|
3097
3098
|
const icon2 = TONE_ICON[tone];
|
|
3098
3099
|
if (!icon2) return null;
|
|
3099
|
-
return /* @__PURE__ */ jsx("span", { className: classNames(styles$
|
|
3100
|
+
return /* @__PURE__ */ jsx("span", { className: classNames(styles$K.accent, TONE_CLASS[tone]), "aria-hidden": "true", "data-testid": testId, children: /* @__PURE__ */ jsx(Icon, { pixelSize: 14, color: TONE_GRAPHIC_COLOR[tone], name: icon2 }) });
|
|
3100
3101
|
};
|
|
3101
3102
|
const NUMBER_PATTERN = String.raw`[-+]?(?:\d+(?:[ ]\d{3})*(?:[.,]\d+)?|[.,]\d+)`;
|
|
3102
3103
|
const NUMERIC_SCORE = new RegExp(String.raw`^${NUMBER_PATTERN}(?:\s*\/\s*${NUMBER_PATTERN}|\s*%)?$`);
|
|
@@ -3135,9 +3136,9 @@ const KpiTileNode = (props) => {
|
|
|
3135
3136
|
const { props: nodeProps, runtime, isPending, sizeClass, testId } = props;
|
|
3136
3137
|
const locale = useNumberLocale();
|
|
3137
3138
|
const { isInsideSurface } = useLayoutNesting();
|
|
3138
|
-
const label2 = readText$
|
|
3139
|
+
const label2 = readText$3(nodeProps.label) ?? "";
|
|
3139
3140
|
const format = readDataValueFormat(nodeProps.format);
|
|
3140
|
-
const currency = readText$
|
|
3141
|
+
const currency = readText$3(nodeProps.currency);
|
|
3141
3142
|
const decimals = readFiniteNumber$1(nodeProps.decimals);
|
|
3142
3143
|
const formattedValue = formatDataValue(nodeProps.value, {
|
|
3143
3144
|
format,
|
|
@@ -3149,11 +3150,11 @@ const KpiTileNode = (props) => {
|
|
|
3149
3150
|
const hasValue = formattedValue !== "";
|
|
3150
3151
|
const delta2 = readFiniteNumber$1(nodeProps.delta);
|
|
3151
3152
|
const deltaFormat = readDataValueFormat(nodeProps.deltaFormat);
|
|
3152
|
-
const deltaLabel = readText$
|
|
3153
|
+
const deltaLabel = readText$3(nodeProps.deltaLabel);
|
|
3153
3154
|
const higherIsBetter = nodeProps.higherIsBetter !== false;
|
|
3154
3155
|
const tone = readDataValueTone(nodeProps.tone);
|
|
3155
|
-
const unit = readText$
|
|
3156
|
-
const detail = readText$
|
|
3156
|
+
const unit = readText$3(nodeProps.unit);
|
|
3157
|
+
const detail = readText$3(nodeProps.detail);
|
|
3157
3158
|
const valueParts = readKpiValueParts(nodeProps.value, formattedValue, format);
|
|
3158
3159
|
const { ratio, secondary } = valueParts;
|
|
3159
3160
|
useReportDataNodeStatus(
|
|
@@ -3162,7 +3163,7 @@ const KpiTileNode = (props) => {
|
|
|
3162
3163
|
!isPending && !hasValue ? "NO_DATA" : void 0,
|
|
3163
3164
|
!isPending && !hasValue ? `the KpiTile "${label2}" has no value` : void 0
|
|
3164
3165
|
);
|
|
3165
|
-
const deltaElement = delta2 === void 0 ? void 0 : /* @__PURE__ */ jsxs("span", { className: styles$
|
|
3166
|
+
const deltaElement = delta2 === void 0 ? void 0 : /* @__PURE__ */ jsxs("span", { className: styles$M.delta, "data-testid": `${testId}-delta`, children: [
|
|
3166
3167
|
/* @__PURE__ */ jsx(
|
|
3167
3168
|
TrendDelta,
|
|
3168
3169
|
{
|
|
@@ -3179,12 +3180,12 @@ const KpiTileNode = (props) => {
|
|
|
3179
3180
|
{
|
|
3180
3181
|
level: isInsideSurface ? "flat" : "elevated",
|
|
3181
3182
|
compact: sizeClass !== "full",
|
|
3182
|
-
className: styles$
|
|
3183
|
+
className: styles$M.tile,
|
|
3183
3184
|
testId,
|
|
3184
3185
|
children: [
|
|
3185
3186
|
isPending ? (
|
|
3186
3187
|
// The primitive's own loading skeleton animates its style every frame — a capture never settles on it.
|
|
3187
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
3188
|
+
/* @__PURE__ */ jsxs("div", { className: styles$M.loading, "aria-busy": "true", "data-testid": `${testId}-skeleton`, children: [
|
|
3188
3189
|
/* @__PURE__ */ jsx(WidgetText, { variant: "caption", tone: "light", translate: false, testId: `${testId}-label`, children: escapePlainTextForText(label2) }),
|
|
3189
3190
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "60%", height: 40, radius: 8 })
|
|
3190
3191
|
] })
|
|
@@ -3197,10 +3198,10 @@ const KpiTileNode = (props) => {
|
|
|
3197
3198
|
accent: tone === "neutral" || tone === "muted" ? void 0 : /* @__PURE__ */ jsx(KpiToneAccent, { tone, testId: `${testId}-accent` }),
|
|
3198
3199
|
value: /* @__PURE__ */ jsxs("span", { className: TONE_TEXT_CLASS[tone], "data-testid": `${testId}-value`, children: [
|
|
3199
3200
|
/* @__PURE__ */ jsx(WidgetText, { translate: false, children: hasValue ? escapePlainTextForText(valueParts.lead) : "—" }),
|
|
3200
|
-
valueParts.denominator ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3201
|
+
valueParts.denominator ? /* @__PURE__ */ jsx("span", { className: styles$M.denominator, children: /* @__PURE__ */ jsx(WidgetText, { translate: false, children: escapePlainTextForText(valueParts.denominator) }) }) : null
|
|
3201
3202
|
] }),
|
|
3202
3203
|
meter: ratio ? /* @__PURE__ */ jsx(KpiMeter, { value: ratio.value, max: ratio.max, color: readMeterColor(tone), testId: `${testId}-meter` }) : void 0,
|
|
3203
|
-
unit: secondary ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
3204
|
+
unit: secondary ? /* @__PURE__ */ jsxs("span", { className: styles$M.unitParts, children: [
|
|
3204
3205
|
/* @__PURE__ */ jsx(WidgetText, { variant: "value", translate: false, inline: true, testId: `${testId}-value-secondary`, children: escapePlainTextForText(secondary) }),
|
|
3205
3206
|
unit ? /* @__PURE__ */ jsx(WidgetText, { translate: false, children: escapePlainTextForText(unit) }) : null
|
|
3206
3207
|
] }) : unit ? escapePlainTextForText(unit) : void 0,
|
|
@@ -3244,7 +3245,7 @@ const value$1 = "agents_value_QriEAD";
|
|
|
3244
3245
|
const bullet = "agents_bullet_nggUAh";
|
|
3245
3246
|
const number = "agents_number_rI0k0o";
|
|
3246
3247
|
const check = "agents_check_kBEwU8";
|
|
3247
|
-
const styles$
|
|
3248
|
+
const styles$J = {
|
|
3248
3249
|
entry,
|
|
3249
3250
|
withMarker,
|
|
3250
3251
|
text: text$3,
|
|
@@ -3257,39 +3258,39 @@ const styles$I = {
|
|
|
3257
3258
|
const ListEntry = (props) => {
|
|
3258
3259
|
const { marker: marker2, title: title2, description: description2, meta, value: value2, children, trailing: trailing2, isStandalone = false, testId } = props;
|
|
3259
3260
|
const EntryElement = isStandalone ? "div" : "li";
|
|
3260
|
-
return /* @__PURE__ */ jsxs(EntryElement, { className: classNames(styles$
|
|
3261
|
-
marker2 === "bullet" ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3262
|
-
marker2 === "number" ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3263
|
-
marker2 === "check" ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3264
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
3261
|
+
return /* @__PURE__ */ jsxs(EntryElement, { className: classNames(styles$J.entry, marker2 !== "none" && styles$J.withMarker), "data-testid": testId, children: [
|
|
3262
|
+
marker2 === "bullet" ? /* @__PURE__ */ jsx("span", { className: styles$J.bullet, "aria-hidden": "true" }) : null,
|
|
3263
|
+
marker2 === "number" ? /* @__PURE__ */ jsx("span", { className: styles$J.number, "aria-hidden": "true" }) : null,
|
|
3264
|
+
marker2 === "check" ? /* @__PURE__ */ jsx("span", { className: styles$J.check, "aria-hidden": "true", children: /* @__PURE__ */ jsx(Icon, { pixelSize: 16, color: "var(--agents-success-500)", name: "check" }) }) : null,
|
|
3265
|
+
/* @__PURE__ */ jsxs("span", { className: styles$J.text, children: [
|
|
3265
3266
|
title2 ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "bold", translate: false, children: escapePlainTextForText(title2) }) : null,
|
|
3266
3267
|
description2 ? /* @__PURE__ */ jsx(Text, { role: "help", translate: false, children: escapePlainTextForText(description2) }) : null,
|
|
3267
3268
|
meta ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(meta) }) : null,
|
|
3268
3269
|
children
|
|
3269
3270
|
] }),
|
|
3270
|
-
value2 || trailing2 ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
3271
|
-
value2 ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "medium", className: styles$
|
|
3271
|
+
value2 || trailing2 ? /* @__PURE__ */ jsxs("span", { className: styles$J.trailing, children: [
|
|
3272
|
+
value2 ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "medium", className: styles$J.value, translate: false, children: escapePlainTextForText(value2) }) : null,
|
|
3272
3273
|
trailing2
|
|
3273
3274
|
] }) : null
|
|
3274
3275
|
] });
|
|
3275
3276
|
};
|
|
3276
3277
|
const list = "agents_list_Ggcj5a";
|
|
3277
3278
|
const numbered = "agents_numbered_DqZtgJ";
|
|
3278
|
-
const styles$
|
|
3279
|
+
const styles$I = {
|
|
3279
3280
|
list,
|
|
3280
3281
|
numbered
|
|
3281
3282
|
};
|
|
3282
3283
|
const MARKERS = ["none", "bullet", "number", "check"];
|
|
3283
3284
|
const readShortFormEntry = (itemValue) => {
|
|
3284
|
-
const itemText = readText$
|
|
3285
|
+
const itemText = readText$3(itemValue);
|
|
3285
3286
|
if (itemText !== void 0) return { title: itemText };
|
|
3286
3287
|
const itemObject = readObject(itemValue);
|
|
3287
3288
|
if (!itemObject) return void 0;
|
|
3288
3289
|
const entry2 = {
|
|
3289
|
-
title: readText$
|
|
3290
|
-
description: readText$
|
|
3291
|
-
meta: readText$
|
|
3292
|
-
value: readText$
|
|
3290
|
+
title: readText$3(itemObject.title) ?? readText$3(itemObject.label) ?? readText$3(itemObject.name),
|
|
3291
|
+
description: readText$3(itemObject.description) ?? readText$3(itemObject.text),
|
|
3292
|
+
meta: readText$3(itemObject.meta),
|
|
3293
|
+
value: readText$3(itemObject.value)
|
|
3293
3294
|
};
|
|
3294
3295
|
return entry2.title || entry2.description ? entry2 : void 0;
|
|
3295
3296
|
};
|
|
@@ -3311,7 +3312,7 @@ const ListNode = (props) => {
|
|
|
3311
3312
|
);
|
|
3312
3313
|
if (isEmpty) return /* @__PURE__ */ jsx(DataEmptyLine, { emptyText: nodeProps.emptyText, testId: `${testId}-empty` });
|
|
3313
3314
|
const ListElement = marker2 === "number" ? "ol" : "ul";
|
|
3314
|
-
return /* @__PURE__ */ jsx(ListElement, { className: classNames(styles$
|
|
3315
|
+
return /* @__PURE__ */ jsx(ListElement, { className: classNames(styles$I.list, marker2 === "number" && styles$I.numbered), "data-testid": testId, children: /* @__PURE__ */ jsxs(ListContext.Provider, { value: listContextValue, children: [
|
|
3315
3316
|
shownEntries.map((entry2, entryIndex) => /* @__PURE__ */ jsx(
|
|
3316
3317
|
ListEntry,
|
|
3317
3318
|
{
|
|
@@ -3342,10 +3343,10 @@ const ListItemNode = (props) => {
|
|
|
3342
3343
|
{
|
|
3343
3344
|
testId,
|
|
3344
3345
|
marker: isInList ? marker2 : "none",
|
|
3345
|
-
title: readText$
|
|
3346
|
-
description: readText$
|
|
3347
|
-
meta: readText$
|
|
3348
|
-
value: readText$
|
|
3346
|
+
title: readText$3(nodeProps.title),
|
|
3347
|
+
description: readText$3(nodeProps.description),
|
|
3348
|
+
meta: readText$3(nodeProps.meta),
|
|
3349
|
+
value: readText$3(nodeProps.value),
|
|
3349
3350
|
trailing: slots.trailing && slots.trailing.length > 0 ? /* @__PURE__ */ jsx(DataContainerContext.Provider, { value: null, children: slots.trailing }) : void 0,
|
|
3350
3351
|
isStandalone: !isInList,
|
|
3351
3352
|
children: slots.children && slots.children.length > 0 ? /* @__PURE__ */ jsx(DataContainerContext.Provider, { value: null, children: slots.children }) : null
|
|
@@ -3390,25 +3391,25 @@ const readTableColumns = (columnsValue, rows2) => {
|
|
|
3390
3391
|
const columns = [];
|
|
3391
3392
|
for (const columnValue of columnsValue) {
|
|
3392
3393
|
const column2 = readObject(columnValue);
|
|
3393
|
-
const key = readText$
|
|
3394
|
+
const key = readText$3(column2?.key) ?? readText$3(column2?.field);
|
|
3394
3395
|
if (!column2 || !key) continue;
|
|
3395
3396
|
const values = rows2.map((row2) => row2[key]).filter((value2) => value2 !== void 0 && value2 !== null && value2 !== "");
|
|
3396
3397
|
const isNumericColumn = values.length > 0 && values.every((value2) => isNumericValue(value2));
|
|
3397
3398
|
columns.push({
|
|
3398
3399
|
key,
|
|
3399
|
-
label: readText$
|
|
3400
|
+
label: readText$3(column2.label) ?? key,
|
|
3400
3401
|
align: readDataValueAlign(column2.align, isNumericColumn ? "end" : "start"),
|
|
3401
3402
|
format: readDataValueFormat(column2.format),
|
|
3402
|
-
currency: readText$
|
|
3403
|
+
currency: readText$3(column2.currency),
|
|
3403
3404
|
decimals: readFiniteNumber$1(column2.decimals),
|
|
3404
|
-
unit: readText$
|
|
3405
|
+
unit: readText$3(column2.unit)
|
|
3405
3406
|
});
|
|
3406
3407
|
}
|
|
3407
3408
|
return columns;
|
|
3408
3409
|
};
|
|
3409
3410
|
const value = "agents_value_coW-Oj";
|
|
3410
3411
|
const booleanValue = "agents_booleanValue_N-yLq2";
|
|
3411
|
-
const styles$
|
|
3412
|
+
const styles$H = {
|
|
3412
3413
|
value,
|
|
3413
3414
|
booleanValue
|
|
3414
3415
|
};
|
|
@@ -3416,7 +3417,7 @@ const TableValue = (props) => {
|
|
|
3416
3417
|
const { value: value2, format, currency, decimals, unit, signed = false, tone = "neutral", isBold = false } = props;
|
|
3417
3418
|
const locale = useNumberLocale();
|
|
3418
3419
|
if (typeof value2 === "boolean") {
|
|
3419
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
3420
|
+
return /* @__PURE__ */ jsx("span", { className: styles$H.booleanValue, role: "img", "aria-label": translateText(value2 ? "Yes" : "No"), children: /* @__PURE__ */ jsx(Icon, { pixelSize: 16, color: TONE_GRAPHIC_COLOR[value2 ? "success" : "danger"], name: value2 ? "check" : "close" }) });
|
|
3420
3421
|
}
|
|
3421
3422
|
const formattedValue = formatDataValue(value2, { format, currency, decimals, unit, signed, locale });
|
|
3422
3423
|
if (formattedValue === "") return null;
|
|
@@ -3426,7 +3427,7 @@ const TableValue = (props) => {
|
|
|
3426
3427
|
role: "help",
|
|
3427
3428
|
weight: isBold ? "bold" : "regular",
|
|
3428
3429
|
color: TONE_TEXT_COLOR[tone],
|
|
3429
|
-
className: styles$
|
|
3430
|
+
className: styles$H.value,
|
|
3430
3431
|
translate: false,
|
|
3431
3432
|
children: escapePlainTextForText(formattedValue)
|
|
3432
3433
|
}
|
|
@@ -3440,7 +3441,7 @@ const cell = "agents_cell_gSR-JZ";
|
|
|
3440
3441
|
const start$1 = "agents_start_oOnQ0Y";
|
|
3441
3442
|
const center$1 = "agents_center_1S9cj6";
|
|
3442
3443
|
const end$1 = "agents_end_QXsu76";
|
|
3443
|
-
const styles$
|
|
3444
|
+
const styles$G = {
|
|
3444
3445
|
table,
|
|
3445
3446
|
scroller,
|
|
3446
3447
|
grid: grid$2,
|
|
@@ -3467,11 +3468,11 @@ const TableNode = (props) => {
|
|
|
3467
3468
|
isOverRowBudget ? "BUDGET_EXCEEDED" : isEmpty && !isPending ? "NO_DATA" : void 0,
|
|
3468
3469
|
isOverRowBudget ? `the Table shows the first ${maxRepeatRows} of ${rows2.length} rows only` : isEmpty && !isPending ? "the Table has no rows" : void 0
|
|
3469
3470
|
);
|
|
3470
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3471
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3472
|
-
columns.length > 0 ? /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: columns.map((column2) => /* @__PURE__ */ jsx("th", { scope: "col", className: classNames(styles$
|
|
3471
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$G.table, "data-testid": testId, children: [
|
|
3472
|
+
/* @__PURE__ */ jsx("div", { className: styles$G.scroller, children: /* @__PURE__ */ jsxs("table", { className: styles$G.grid, children: [
|
|
3473
|
+
columns.length > 0 ? /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: columns.map((column2) => /* @__PURE__ */ jsx("th", { scope: "col", className: classNames(styles$G.cell, styles$G[column2.align]), children: /* @__PURE__ */ jsx(Text, { role: "help", weight: "bold", translate: false, children: escapePlainTextForText(column2.label) }) }, column2.key)) }) }) : null,
|
|
3473
3474
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
3474
|
-
shownRows.map((row2, rowIndex) => /* @__PURE__ */ jsx("tr", { className: styles$
|
|
3475
|
+
shownRows.map((row2, rowIndex) => /* @__PURE__ */ jsx("tr", { className: styles$G.row, "data-testid": `${testId}-row-${rowIndex}`, children: columns.map((column2) => /* @__PURE__ */ jsx("td", { className: classNames(styles$G.cell, styles$G[column2.align]), children: /* @__PURE__ */ jsx(
|
|
3475
3476
|
TableValue,
|
|
3476
3477
|
{
|
|
3477
3478
|
value: row2[column2.key],
|
|
@@ -3484,10 +3485,10 @@ const TableNode = (props) => {
|
|
|
3484
3485
|
isWaitingForRows && columns.length > 0 ? Array.from({ length: SKELETON_ROW_COUNT }, (unused, skeletonIndex) => /* @__PURE__ */ jsx(
|
|
3485
3486
|
"tr",
|
|
3486
3487
|
{
|
|
3487
|
-
className: styles$
|
|
3488
|
+
className: styles$G.row,
|
|
3488
3489
|
"aria-busy": "true",
|
|
3489
3490
|
"data-testid": `${testId}-skeleton-${skeletonIndex}`,
|
|
3490
|
-
children: columns.map((column2) => /* @__PURE__ */ jsx("td", { className: classNames(styles$
|
|
3491
|
+
children: columns.map((column2) => /* @__PURE__ */ jsx("td", { className: classNames(styles$G.cell, styles$G[column2.align]), children: /* @__PURE__ */ jsx(SkeletonLine, { width: "70%", height: 12 }) }, column2.key))
|
|
3491
3492
|
},
|
|
3492
3493
|
`skeleton-${skeletonIndex}`
|
|
3493
3494
|
)) : null,
|
|
@@ -3513,7 +3514,7 @@ const heatCell = "agents_heatCell_ZsGX6M";
|
|
|
3513
3514
|
const heat = "agents_heat_71n-vZ";
|
|
3514
3515
|
const heatEmpty = "agents_heatEmpty_3F810F";
|
|
3515
3516
|
const dash = "agents_dash_Hoy4st";
|
|
3516
|
-
const styles$
|
|
3517
|
+
const styles$F = {
|
|
3517
3518
|
content: content$1,
|
|
3518
3519
|
start,
|
|
3519
3520
|
center,
|
|
@@ -3545,33 +3546,33 @@ const TableCellNode = (props) => {
|
|
|
3545
3546
|
"span",
|
|
3546
3547
|
{
|
|
3547
3548
|
className: classNames(
|
|
3548
|
-
styles$
|
|
3549
|
-
styles$
|
|
3550
|
-
bar2 !== void 0 && styles$
|
|
3551
|
-
isHeatCell && styles$
|
|
3552
|
-
isHeatCell && heat2 === void 0 && styles$
|
|
3549
|
+
styles$F.content,
|
|
3550
|
+
styles$F[align],
|
|
3551
|
+
bar2 !== void 0 && styles$F.withBar,
|
|
3552
|
+
isHeatCell && styles$F.heat,
|
|
3553
|
+
isHeatCell && heat2 === void 0 && styles$F.heatEmpty
|
|
3553
3554
|
),
|
|
3554
3555
|
children: [
|
|
3555
|
-
bar2 !== void 0 ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3556
|
+
bar2 !== void 0 ? /* @__PURE__ */ jsx("span", { className: styles$F.bar, "aria-hidden": "true" }) : null,
|
|
3556
3557
|
hasValue ? /* @__PURE__ */ jsx(
|
|
3557
3558
|
TableValue,
|
|
3558
3559
|
{
|
|
3559
3560
|
value: nodeProps.value,
|
|
3560
3561
|
format,
|
|
3561
|
-
currency: readText$
|
|
3562
|
+
currency: readText$3(nodeProps.currency),
|
|
3562
3563
|
decimals: readFiniteNumber$1(nodeProps.decimals),
|
|
3563
|
-
unit: readText$
|
|
3564
|
+
unit: readText$3(nodeProps.unit),
|
|
3564
3565
|
signed: nodeProps.signed === true,
|
|
3565
3566
|
tone: readDataValueTone(nodeProps.tone),
|
|
3566
3567
|
isBold
|
|
3567
3568
|
}
|
|
3568
|
-
) : isHeatCell ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3569
|
+
) : isHeatCell ? /* @__PURE__ */ jsx("span", { className: styles$F.dash, children: "—" }) : null,
|
|
3569
3570
|
slots.children && slots.children.length > 0 ? /* @__PURE__ */ jsx(DataContainerContext.Provider, { value: null, children: slots.children }) : null
|
|
3570
3571
|
]
|
|
3571
3572
|
}
|
|
3572
3573
|
);
|
|
3573
3574
|
if (!tableRow) return /* @__PURE__ */ jsx("span", { style: cellStyle, children: content2 });
|
|
3574
|
-
const cellClassName = classNames(styles$
|
|
3575
|
+
const cellClassName = classNames(styles$G.cell, styles$G[align], isHeatCell && styles$F.heatCell);
|
|
3575
3576
|
return isHeader ? /* @__PURE__ */ jsx("th", { scope: "col", className: cellClassName, style: cellStyle, children: content2 }) : /* @__PURE__ */ jsx("td", { className: cellClassName, style: cellStyle, children: content2 });
|
|
3576
3577
|
};
|
|
3577
3578
|
const composedViewComponent$G = {
|
|
@@ -3588,9 +3589,9 @@ const TableRowNode = (props) => {
|
|
|
3588
3589
|
const isHeader = nodeProps.header === true;
|
|
3589
3590
|
const isEmphasis = nodeProps.emphasis === true;
|
|
3590
3591
|
const tableRowContextValue = useMemo(() => ({ isHeader, isEmphasis }), [isHeader, isEmphasis]);
|
|
3591
|
-
const row2 = /* @__PURE__ */ jsx("tr", { className: classNames(styles$
|
|
3592
|
+
const row2 = /* @__PURE__ */ jsx("tr", { className: classNames(styles$G.row, isHeader && styles$G.headerRow), "data-testid": testId, children: /* @__PURE__ */ jsx(TableRowContext.Provider, { value: tableRowContextValue, children: slots.children }) });
|
|
3592
3593
|
if (container === "table") return row2;
|
|
3593
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
3594
|
+
return /* @__PURE__ */ jsx("div", { className: styles$G.scroller, children: /* @__PURE__ */ jsx("table", { className: styles$G.grid, children: /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx(DataContainerContext.Provider, { value: "table", children: row2 }) }) }) });
|
|
3594
3595
|
};
|
|
3595
3596
|
const composedViewComponent$F = { nodeType: "TableRow", component: TableRowNode };
|
|
3596
3597
|
const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3714,7 +3715,7 @@ const chipName$1 = "agents_chipName_vYiC1X";
|
|
|
3714
3715
|
const chipIcon = "agents_chipIcon_qjFBl-";
|
|
3715
3716
|
const plainName = "agents_plainName_wIGZV3";
|
|
3716
3717
|
const plainChip = "agents_plainChip_1j8sHX";
|
|
3717
|
-
const styles$
|
|
3718
|
+
const styles$E = {
|
|
3718
3719
|
link: link$2,
|
|
3719
3720
|
linkName,
|
|
3720
3721
|
chip: chip$2,
|
|
@@ -3767,7 +3768,7 @@ const EntityLinkNode = (props) => {
|
|
|
3767
3768
|
weight: fontWeight,
|
|
3768
3769
|
translate: false,
|
|
3769
3770
|
display: "inline",
|
|
3770
|
-
className: classNames(styles$
|
|
3771
|
+
className: classNames(styles$E.plainName, variant === "chip" && styles$E.plainChip),
|
|
3771
3772
|
testId: `${testId}-name`,
|
|
3772
3773
|
children: name
|
|
3773
3774
|
}
|
|
@@ -3775,29 +3776,29 @@ const EntityLinkNode = (props) => {
|
|
|
3775
3776
|
}
|
|
3776
3777
|
const openDetail = () => runtime.runEvent({ action: target.actionName });
|
|
3777
3778
|
if (variant === "chip") {
|
|
3778
|
-
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: styles$
|
|
3779
|
+
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: styles$E.chip, children: /* @__PURE__ */ jsxs("button", { type: "button", className: styles$E.chipButton, onClick: openDetail, "data-testid": "composed-entity-link", children: [
|
|
3779
3780
|
/* @__PURE__ */ jsx(
|
|
3780
3781
|
Text,
|
|
3781
3782
|
{
|
|
3782
3783
|
role: "help",
|
|
3783
3784
|
translate: false,
|
|
3784
3785
|
display: "inline",
|
|
3785
|
-
className: styles$
|
|
3786
|
+
className: styles$E.chipName,
|
|
3786
3787
|
testId: `${testId}-name`,
|
|
3787
3788
|
children: name
|
|
3788
3789
|
}
|
|
3789
3790
|
),
|
|
3790
|
-
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$
|
|
3791
|
+
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$E.chipIcon, pixelSize: 14, name: "details" })
|
|
3791
3792
|
] }) });
|
|
3792
3793
|
}
|
|
3793
|
-
return /* @__PURE__ */ jsx("button", { type: "button", className: styles$
|
|
3794
|
+
return /* @__PURE__ */ jsx("button", { type: "button", className: styles$E.link, onClick: openDetail, "data-testid": "composed-entity-link", children: /* @__PURE__ */ jsx(
|
|
3794
3795
|
Text,
|
|
3795
3796
|
{
|
|
3796
3797
|
role: textType,
|
|
3797
3798
|
weight: fontWeight,
|
|
3798
3799
|
translate: false,
|
|
3799
3800
|
display: "inline",
|
|
3800
|
-
className: styles$
|
|
3801
|
+
className: styles$E.linkName,
|
|
3801
3802
|
testId: `${testId}-name`,
|
|
3802
3803
|
children: name
|
|
3803
3804
|
}
|
|
@@ -3915,19 +3916,19 @@ const isFormFieldFilled = (value2) => {
|
|
|
3915
3916
|
const form = "agents_form_yA4cVI";
|
|
3916
3917
|
const headerRow = "agents_headerRow_0moUJR";
|
|
3917
3918
|
const headerItems = "agents_headerItems_IyGwsW";
|
|
3918
|
-
const header$
|
|
3919
|
-
const fields = "agents_fields_sw9Lwc";
|
|
3919
|
+
const header$3 = "agents_header_kSwo7N";
|
|
3920
|
+
const fields$1 = "agents_fields_sw9Lwc";
|
|
3920
3921
|
const footer$2 = "agents_footer_HhE3-k";
|
|
3921
|
-
const actions$
|
|
3922
|
+
const actions$2 = "agents_actions_50VAEI";
|
|
3922
3923
|
const nestedBody = "agents_nestedBody_zEWma2";
|
|
3923
|
-
const styles$
|
|
3924
|
+
const styles$D = {
|
|
3924
3925
|
form,
|
|
3925
3926
|
headerRow,
|
|
3926
3927
|
headerItems,
|
|
3927
|
-
header: header$
|
|
3928
|
-
fields,
|
|
3928
|
+
header: header$3,
|
|
3929
|
+
fields: fields$1,
|
|
3929
3930
|
footer: footer$2,
|
|
3930
|
-
actions: actions$
|
|
3931
|
+
actions: actions$2,
|
|
3931
3932
|
nestedBody
|
|
3932
3933
|
};
|
|
3933
3934
|
const ComposedViewFormContext = createContext(false);
|
|
@@ -3968,7 +3969,7 @@ const FormNode = (props) => {
|
|
|
3968
3969
|
}
|
|
3969
3970
|
}, [isInsideForm, formName, reportNodeStatus]);
|
|
3970
3971
|
if (isInsideForm)
|
|
3971
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
3972
|
+
return /* @__PURE__ */ jsx("div", { className: styles$D.nestedBody, "data-testid": testId, children: slots.children });
|
|
3972
3973
|
const canSend = formName !== void 0 && interactive && !isEmailRender;
|
|
3973
3974
|
const isAnswered = submissionStatus === "sent" || submissionStatus === "declined";
|
|
3974
3975
|
const sendSignal = async (signalText, answeredStatus) => {
|
|
@@ -4017,7 +4018,7 @@ const FormNode = (props) => {
|
|
|
4017
4018
|
if (!interactive) {
|
|
4018
4019
|
return /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", testId: `${testId}-replay-note`, children: "This form can only be sent from the newest reply." });
|
|
4019
4020
|
}
|
|
4020
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4021
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$D.actions, children: [
|
|
4021
4022
|
/* @__PURE__ */ jsx(
|
|
4022
4023
|
ConversationWidgetButton,
|
|
4023
4024
|
{
|
|
@@ -4045,16 +4046,16 @@ const FormNode = (props) => {
|
|
|
4045
4046
|
) : null
|
|
4046
4047
|
] });
|
|
4047
4048
|
};
|
|
4048
|
-
return /* @__PURE__ */ jsx(WidgetSurface, { level: sizeClass === "full" ? "elevated" : "flat", testId, children: /* @__PURE__ */ jsxs("form", { className: styles$
|
|
4049
|
-
title2 !== void 0 || description2 !== void 0 || headerItems2.length > 0 ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4050
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4049
|
+
return /* @__PURE__ */ jsx(WidgetSurface, { level: sizeClass === "full" ? "elevated" : "flat", testId, children: /* @__PURE__ */ jsxs("form", { className: styles$D.form, noValidate: true, onSubmit: (submitEvent) => submitEvent.preventDefault(), children: [
|
|
4050
|
+
title2 !== void 0 || description2 !== void 0 || headerItems2.length > 0 ? /* @__PURE__ */ jsxs("div", { className: styles$D.headerRow, children: [
|
|
4051
|
+
/* @__PURE__ */ jsxs("div", { className: styles$D.header, children: [
|
|
4051
4052
|
title2 !== void 0 ? /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", children: title2 }) : null,
|
|
4052
4053
|
description2 !== void 0 ? /* @__PURE__ */ jsx(ModelText, { role: "help", color: "var(--agents-fg-light)", children: description2 }) : null
|
|
4053
4054
|
] }),
|
|
4054
|
-
headerItems2.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
4055
|
+
headerItems2.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$D.headerItems, children: headerItems2 }) : null
|
|
4055
4056
|
] }) : null,
|
|
4056
|
-
/* @__PURE__ */ jsx(ComposedViewFormContext.Provider, { value: true, children: /* @__PURE__ */ jsx("fieldset", { className: styles$
|
|
4057
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4057
|
+
/* @__PURE__ */ jsx(ComposedViewFormContext.Provider, { value: true, children: /* @__PURE__ */ jsx("fieldset", { className: styles$D.fields, disabled: isAnswered || isSending || !canSend && !isEmailRender, children: slots.children }) }),
|
|
4058
|
+
/* @__PURE__ */ jsxs("div", { className: styles$D.footer, "aria-live": "polite", children: [
|
|
4058
4059
|
showsMissingFields ? /* @__PURE__ */ jsx(Text, { role: "caption", color: ERROR_TEXT_COLOR, testId: `${testId}-error-required`, children: "Please fill in the required fields." }) : null,
|
|
4059
4060
|
submissionStatus === "failed" ? /* @__PURE__ */ jsx(Text, { role: "caption", color: ERROR_TEXT_COLOR, testId: `${testId}-error`, children: "Something went wrong. Please try again." }) : null,
|
|
4060
4061
|
renderActionRow()
|
|
@@ -4210,7 +4211,7 @@ const datePickerIcon = "agents_datePickerIcon_oomZCC";
|
|
|
4210
4211
|
const button$1 = "agents_button_-GGF9m";
|
|
4211
4212
|
const buttonFullWidth = "agents_buttonFullWidth_BIpF89";
|
|
4212
4213
|
const radioOptionText = "agents_radioOptionText_ELY-yS";
|
|
4213
|
-
const styles$
|
|
4214
|
+
const styles$C = {
|
|
4214
4215
|
tabsBar,
|
|
4215
4216
|
sliderTrack,
|
|
4216
4217
|
datePicker,
|
|
@@ -4262,7 +4263,7 @@ const ComposedButton = (props) => {
|
|
|
4262
4263
|
runtime.runEvent(node.props.onClick, nodeProps.value);
|
|
4263
4264
|
if (isCopyButton) setIsCopyConfirmed(true);
|
|
4264
4265
|
};
|
|
4265
|
-
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, className: isFullWidth ? styles$
|
|
4266
|
+
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, className: isFullWidth ? styles$C.buttonFullWidth : styles$C.button, children: /* @__PURE__ */ jsx(
|
|
4266
4267
|
ConversationWidgetButton,
|
|
4267
4268
|
{
|
|
4268
4269
|
variant: buttonType,
|
|
@@ -4279,20 +4280,20 @@ const ComposedButton = (props) => {
|
|
|
4279
4280
|
) });
|
|
4280
4281
|
};
|
|
4281
4282
|
const composedViewComponent$B = { nodeType: "Button", component: ComposedButton };
|
|
4282
|
-
const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4283
|
+
const __vite_glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4283
4284
|
__proto__: null,
|
|
4284
4285
|
COPIED_CONFIRMATION_MS: COPIED_CONFIRMATION_MS$1,
|
|
4285
4286
|
composedViewComponent: composedViewComponent$B
|
|
4286
4287
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4287
|
-
const field = "agents_field_650ACD";
|
|
4288
|
+
const field$1 = "agents_field_650ACD";
|
|
4288
4289
|
const labelRow = "agents_labelRow_gcXl4H";
|
|
4289
4290
|
const label$2 = "agents_label_yE8hsY";
|
|
4290
4291
|
const labelValue = "agents_labelValue_upIIY1";
|
|
4291
4292
|
const description = "agents_description_ucyE-b";
|
|
4292
4293
|
const pending = "agents_pending_Tu-pEs";
|
|
4293
4294
|
const frozen = "agents_frozen_Aho93q";
|
|
4294
|
-
const styles$
|
|
4295
|
-
field,
|
|
4295
|
+
const styles$B = {
|
|
4296
|
+
field: field$1,
|
|
4296
4297
|
labelRow,
|
|
4297
4298
|
label: label$2,
|
|
4298
4299
|
labelValue,
|
|
@@ -4317,17 +4318,17 @@ const ComposedInputField = (props) => {
|
|
|
4317
4318
|
return /* @__PURE__ */ jsxs(
|
|
4318
4319
|
"div",
|
|
4319
4320
|
{
|
|
4320
|
-
className: classNames(styles$
|
|
4321
|
+
className: classNames(styles$B.field, !isUsable && styles$B.frozen, className),
|
|
4321
4322
|
inert: !isUsable || void 0,
|
|
4322
4323
|
"data-usable": isUsable ? "true" : "false",
|
|
4323
4324
|
"data-testid": testId ? `${testId}-field` : void 0,
|
|
4324
4325
|
children: [
|
|
4325
|
-
labelText2 || labelRowValue ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4326
|
-
labelText2 && controlId ? /* @__PURE__ */ jsx("label", { htmlFor: controlId, className: styles$
|
|
4327
|
-
labelRowValue ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "bold", translate: false, className: styles$
|
|
4326
|
+
labelText2 || labelRowValue ? /* @__PURE__ */ jsxs("div", { className: styles$B.labelRow, children: [
|
|
4327
|
+
labelText2 && controlId ? /* @__PURE__ */ jsx("label", { htmlFor: controlId, className: styles$B.label, children: labelText2 }) : /* @__PURE__ */ jsx("span", { className: styles$B.label, children: labelText2 }),
|
|
4328
|
+
labelRowValue ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "bold", translate: false, className: styles$B.labelValue, children: escapePlainTextForText(labelRowValue) }) : null
|
|
4328
4329
|
] }) : null,
|
|
4329
|
-
isPending ? /* @__PURE__ */ jsx("span", { "aria-busy": "true", className: styles$
|
|
4330
|
-
description2 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, className: styles$
|
|
4330
|
+
isPending ? /* @__PURE__ */ jsx("span", { "aria-busy": "true", className: styles$B.pending, "data-testid": testId ? `${testId}-skeleton` : void 0, children: /* @__PURE__ */ jsx(SkeletonLine, { height: pendingHeight, radius: 12 }) }) : children,
|
|
4331
|
+
description2 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, className: styles$B.description, children: escapePlainTextForText(description2) }) : null
|
|
4331
4332
|
]
|
|
4332
4333
|
}
|
|
4333
4334
|
);
|
|
@@ -4403,7 +4404,7 @@ const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
4403
4404
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4404
4405
|
const frozenValue = "agents_frozenValue_Hyb1hq";
|
|
4405
4406
|
const multiline = "agents_multiline_4BAPyl";
|
|
4406
|
-
const styles$
|
|
4407
|
+
const styles$A = {
|
|
4407
4408
|
frozenValue,
|
|
4408
4409
|
multiline
|
|
4409
4410
|
};
|
|
@@ -4413,7 +4414,7 @@ const ComposedInputFrozenValue = (props) => {
|
|
|
4413
4414
|
return /* @__PURE__ */ jsx(
|
|
4414
4415
|
"div",
|
|
4415
4416
|
{
|
|
4416
|
-
className: classNames(styles$
|
|
4417
|
+
className: classNames(styles$A.frozenValue, isMultiline && styles$A.multiline),
|
|
4417
4418
|
"data-frozen-value": "true",
|
|
4418
4419
|
"data-testid": testId,
|
|
4419
4420
|
children: hasValue ? /* @__PURE__ */ jsx(Text, { role: "body", translate: false, allowNewLines: isMultiline, children: escapePlainTextForText(shownValue) }) : /* @__PURE__ */ jsx(Text, { role: "body", translate: false, color: "var(--agents-fg-lightest)", children: "—" })
|
|
@@ -4443,7 +4444,7 @@ const ComposedDatePicker = (props) => {
|
|
|
4443
4444
|
if (typeof pickedTimestamp !== "number" || !Number.isFinite(pickedTimestamp)) return;
|
|
4444
4445
|
changeValue(formatIsoDay(pickedTimestamp));
|
|
4445
4446
|
};
|
|
4446
|
-
return /* @__PURE__ */ jsx(ComposedInputField, { label: label2, isUsable, isPending, pendingHeight: 48, testId, children: isUsable ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4447
|
+
return /* @__PURE__ */ jsx(ComposedInputField, { label: label2, isUsable, isPending, pendingHeight: 48, testId, children: isUsable ? /* @__PURE__ */ jsxs("div", { className: styles$C.datePicker, "data-testid": testId, children: [
|
|
4447
4448
|
/* @__PURE__ */ jsx(
|
|
4448
4449
|
DateInput,
|
|
4449
4450
|
{
|
|
@@ -4455,7 +4456,7 @@ const ComposedDatePicker = (props) => {
|
|
|
4455
4456
|
},
|
|
4456
4457
|
value2 ?? "none"
|
|
4457
4458
|
),
|
|
4458
|
-
/* @__PURE__ */ jsx(Icon, { className: styles$
|
|
4459
|
+
/* @__PURE__ */ jsx(Icon, { className: styles$C.datePickerIcon, color: "var(--agents-fg-light)", pixelSize: 18, name: "calendar" })
|
|
4459
4460
|
] }) : /* @__PURE__ */ jsx(ComposedInputFrozenValue, { shownValue: formatIsoDayForReading(value2, dateLocale), testId: `${testId}-frozen` }) });
|
|
4460
4461
|
};
|
|
4461
4462
|
const composedViewComponent$z = {
|
|
@@ -4558,7 +4559,7 @@ const ComposedRadioGroup = (props) => {
|
|
|
4558
4559
|
const selectedOption = findComposedInputOption(options, value2);
|
|
4559
4560
|
const radioOptions = options.map((option) => ({
|
|
4560
4561
|
// The label and its explanation as one node.
|
|
4561
|
-
label: /* @__PURE__ */ jsxs("span", { className: styles$
|
|
4562
|
+
label: /* @__PURE__ */ jsxs("span", { className: styles$C.radioOptionText, "data-testid": `${testId}-option-${option.id}`, children: [
|
|
4562
4563
|
/* @__PURE__ */ jsx(Text, { role: "body", translate: false, children: escapePlainTextForText(option.label) }),
|
|
4563
4564
|
option.description ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(option.description) }) : null
|
|
4564
4565
|
] }),
|
|
@@ -4707,7 +4708,7 @@ const ComposedSlider = (props) => {
|
|
|
4707
4708
|
isPending,
|
|
4708
4709
|
pendingHeight: 28,
|
|
4709
4710
|
testId,
|
|
4710
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
4711
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$C.sliderTrack, "aria-label": label2, "data-testid": testId, children: /* @__PURE__ */ jsx(
|
|
4711
4712
|
RangeSlider,
|
|
4712
4713
|
{
|
|
4713
4714
|
value: shownValue,
|
|
@@ -4759,7 +4760,7 @@ const ComposedTabs = (props) => {
|
|
|
4759
4760
|
isPending,
|
|
4760
4761
|
pendingHeight: 36,
|
|
4761
4762
|
testId,
|
|
4762
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
4763
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$C.tabsBar, "data-testid": testId, children: /* @__PURE__ */ jsx(
|
|
4763
4764
|
Tabs,
|
|
4764
4765
|
{
|
|
4765
4766
|
options: tabs,
|
|
@@ -4860,7 +4861,7 @@ const arrow = "agents_arrow_av0SP1";
|
|
|
4860
4861
|
const arrowPrevious = "agents_arrowPrevious_3h1BXR";
|
|
4861
4862
|
const arrowNext = "agents_arrowNext_tgbHsd";
|
|
4862
4863
|
const arrowButton = "agents_arrowButton_NQXi0F";
|
|
4863
|
-
const styles$
|
|
4864
|
+
const styles$z = {
|
|
4864
4865
|
carousel: carousel$2,
|
|
4865
4866
|
visible1,
|
|
4866
4867
|
visible2,
|
|
@@ -4878,10 +4879,10 @@ const styles$y = {
|
|
|
4878
4879
|
};
|
|
4879
4880
|
const VISIBLE_ITEM_COUNTS = [1, 2, 3, 4];
|
|
4880
4881
|
const VISIBLE_CLASS_NAMES = {
|
|
4881
|
-
1: styles$
|
|
4882
|
-
2: styles$
|
|
4883
|
-
3: styles$
|
|
4884
|
-
4: styles$
|
|
4882
|
+
1: styles$z.visible1,
|
|
4883
|
+
2: styles$z.visible2,
|
|
4884
|
+
3: styles$z.visible3,
|
|
4885
|
+
4: styles$z.visible4
|
|
4885
4886
|
};
|
|
4886
4887
|
const SKELETON_SLIDE_COUNT = 3;
|
|
4887
4888
|
const readScrollEdges$1 = (track2) => ({
|
|
@@ -4933,10 +4934,10 @@ const Carousel = (props) => {
|
|
|
4933
4934
|
return /* @__PURE__ */ jsx(
|
|
4934
4935
|
"div",
|
|
4935
4936
|
{
|
|
4936
|
-
className: classNames(styles$
|
|
4937
|
+
className: classNames(styles$z.carousel, VISIBLE_CLASS_NAMES[visibleItemCount]),
|
|
4937
4938
|
"aria-busy": "true",
|
|
4938
4939
|
"data-testid": `${testId}-skeleton`,
|
|
4939
|
-
children: /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
4940
|
+
children: /* @__PURE__ */ jsx("div", { className: classNames(styles$z.track, styles$z.frozenTrack), children: Array.from({ length: SKELETON_SLIDE_COUNT }, (unused, skeletonIndex) => /* @__PURE__ */ jsx("div", { className: styles$z.slide, children: /* @__PURE__ */ jsxs("div", { className: styles$z.skeletonSlide, children: [
|
|
4940
4941
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "50%", height: 12 }),
|
|
4941
4942
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "70%", height: 24 }),
|
|
4942
4943
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "40%", height: 10 })
|
|
@@ -4945,13 +4946,13 @@ const Carousel = (props) => {
|
|
|
4945
4946
|
);
|
|
4946
4947
|
}
|
|
4947
4948
|
if (slideCount === 0) return null;
|
|
4948
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
4949
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$z.carousel, VISIBLE_CLASS_NAMES[visibleItemCount]), "data-testid": testId, children: /* @__PURE__ */ jsxs("div", { className: styles$z.viewport, children: [
|
|
4949
4950
|
/* @__PURE__ */ jsx(
|
|
4950
4951
|
"div",
|
|
4951
4952
|
{
|
|
4952
4953
|
ref: trackRef,
|
|
4953
4954
|
"data-testid": `${testId}-track`,
|
|
4954
|
-
className: classNames(styles$
|
|
4955
|
+
className: classNames(styles$z.track, runtime.isEmailRender && styles$z.frozenTrack),
|
|
4955
4956
|
role: "group",
|
|
4956
4957
|
"aria-roledescription": translateText("carousel"),
|
|
4957
4958
|
"aria-label": carouselLabel,
|
|
@@ -4959,7 +4960,7 @@ const Carousel = (props) => {
|
|
|
4959
4960
|
children: slides.map((slideNodes, slideIndex) => /* @__PURE__ */ jsx(
|
|
4960
4961
|
"div",
|
|
4961
4962
|
{
|
|
4962
|
-
className: styles$
|
|
4963
|
+
className: styles$z.slide,
|
|
4963
4964
|
"data-testid": `${testId}-slide-${slideIndex}`,
|
|
4964
4965
|
role: "group",
|
|
4965
4966
|
"aria-roledescription": translateText("slide"),
|
|
@@ -4970,22 +4971,22 @@ const Carousel = (props) => {
|
|
|
4970
4971
|
))
|
|
4971
4972
|
}
|
|
4972
4973
|
),
|
|
4973
|
-
isShowingArrows && scrollEdges.canScrollBack ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$
|
|
4974
|
+
isShowingArrows && scrollEdges.canScrollBack ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$z.arrow, styles$z.arrowPrevious), children: /* @__PURE__ */ jsx(
|
|
4974
4975
|
"button",
|
|
4975
4976
|
{
|
|
4976
4977
|
type: "button",
|
|
4977
|
-
className: styles$
|
|
4978
|
+
className: styles$z.arrowButton,
|
|
4978
4979
|
"data-testid": `${testId}-previous`,
|
|
4979
4980
|
"aria-label": translateText("Show the previous slides"),
|
|
4980
4981
|
onClick: () => scrollBySlide(-1),
|
|
4981
4982
|
children: /* @__PURE__ */ jsx(Icon, { name: "arrowLeft" })
|
|
4982
4983
|
}
|
|
4983
4984
|
) }) : null,
|
|
4984
|
-
isShowingArrows && scrollEdges.canScrollForward ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$
|
|
4985
|
+
isShowingArrows && scrollEdges.canScrollForward ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$z.arrow, styles$z.arrowNext), children: /* @__PURE__ */ jsx(
|
|
4985
4986
|
"button",
|
|
4986
4987
|
{
|
|
4987
4988
|
type: "button",
|
|
4988
|
-
className: styles$
|
|
4989
|
+
className: styles$z.arrowButton,
|
|
4989
4990
|
"data-testid": `${testId}-next`,
|
|
4990
4991
|
"aria-label": translateText("Show the next slides"),
|
|
4991
4992
|
onClick: () => scrollBySlide(1),
|
|
@@ -5001,7 +5002,7 @@ const __vite_glob_0_21 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
5001
5002
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5002
5003
|
const horizontal = "agents_horizontal_ugu-FM";
|
|
5003
5004
|
const vertical = "agents_vertical_urpMv4";
|
|
5004
|
-
const styles$
|
|
5005
|
+
const styles$y = {
|
|
5005
5006
|
horizontal,
|
|
5006
5007
|
vertical
|
|
5007
5008
|
};
|
|
@@ -5009,7 +5010,7 @@ const ORIENTATIONS = ["horizontal", "vertical"];
|
|
|
5009
5010
|
const Divider = (props) => {
|
|
5010
5011
|
const { props: nodeProps } = props;
|
|
5011
5012
|
const orientation = readEnumProp(nodeProps.orientation, ORIENTATIONS, "horizontal");
|
|
5012
|
-
return /* @__PURE__ */ jsx("div", { role: "separator", "aria-orientation": orientation, className: styles$
|
|
5013
|
+
return /* @__PURE__ */ jsx("div", { role: "separator", "aria-orientation": orientation, className: styles$y[orientation] });
|
|
5013
5014
|
};
|
|
5014
5015
|
const composedViewComponent$r = { nodeType: "Divider", component: Divider };
|
|
5015
5016
|
const __vite_glob_0_22 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5026,7 +5027,7 @@ const gapXsmall$2 = "agents_gapXsmall_YHncjA";
|
|
|
5026
5027
|
const gapSmall$2 = "agents_gapSmall_weBW7m";
|
|
5027
5028
|
const gapMedium$2 = "agents_gapMedium_V6Ik6Z";
|
|
5028
5029
|
const gapLarge$2 = "agents_gapLarge_bzc-Uc";
|
|
5029
|
-
const styles$
|
|
5030
|
+
const styles$x = {
|
|
5030
5031
|
flow,
|
|
5031
5032
|
alignStart: alignStart$1,
|
|
5032
5033
|
alignCenter: alignCenter$1,
|
|
@@ -5039,9 +5040,9 @@ const styles$w = {
|
|
|
5039
5040
|
};
|
|
5040
5041
|
const ALIGNMENTS$1 = ["start", "center", "end"];
|
|
5041
5042
|
const ALIGNMENT_CLASS_NAMES$1 = {
|
|
5042
|
-
start: styles$
|
|
5043
|
-
center: styles$
|
|
5044
|
-
end: styles$
|
|
5043
|
+
start: styles$x.alignStart,
|
|
5044
|
+
center: styles$x.alignCenter,
|
|
5045
|
+
end: styles$x.alignEnd
|
|
5045
5046
|
};
|
|
5046
5047
|
const Flow = (props) => {
|
|
5047
5048
|
const { props: nodeProps, slots, runtime } = props;
|
|
@@ -5058,9 +5059,9 @@ const Flow = (props) => {
|
|
|
5058
5059
|
"div",
|
|
5059
5060
|
{
|
|
5060
5061
|
className: classNames(
|
|
5061
|
-
styles$
|
|
5062
|
+
styles$x.flow,
|
|
5062
5063
|
ALIGNMENT_CLASS_NAMES$1[alignment],
|
|
5063
|
-
layoutGapClassName(styles$
|
|
5064
|
+
layoutGapClassName(styles$x, readGapProp(nodeProps.gap, "small"))
|
|
5064
5065
|
),
|
|
5065
5066
|
children: items
|
|
5066
5067
|
}
|
|
@@ -5083,7 +5084,7 @@ const gapXsmall$1 = "agents_gapXsmall_eoYRI4";
|
|
|
5083
5084
|
const gapSmall$1 = "agents_gapSmall_QNN7Lj";
|
|
5084
5085
|
const gapMedium$1 = "agents_gapMedium_BT9hpy";
|
|
5085
5086
|
const gapLarge$1 = "agents_gapLarge_GIrOMv";
|
|
5086
|
-
const styles$
|
|
5087
|
+
const styles$w = {
|
|
5087
5088
|
grid: grid$1,
|
|
5088
5089
|
columns1,
|
|
5089
5090
|
columns2,
|
|
@@ -5122,10 +5123,10 @@ const readMinColumnWidth = (node, writtenMinColumnWidth) => {
|
|
|
5122
5123
|
return cellNodes.every(isCompactCell) ? "compact" : "regular";
|
|
5123
5124
|
};
|
|
5124
5125
|
const COLUMN_CLASS_NAMES = {
|
|
5125
|
-
1: styles$
|
|
5126
|
-
2: styles$
|
|
5127
|
-
3: styles$
|
|
5128
|
-
4: styles$
|
|
5126
|
+
1: styles$w.columns1,
|
|
5127
|
+
2: styles$w.columns2,
|
|
5128
|
+
3: styles$w.columns3,
|
|
5129
|
+
4: styles$w.columns4
|
|
5129
5130
|
};
|
|
5130
5131
|
const Grid = (props) => {
|
|
5131
5132
|
const { node, props: nodeProps, slots, runtime, testId } = props;
|
|
@@ -5144,10 +5145,10 @@ const Grid = (props) => {
|
|
|
5144
5145
|
{
|
|
5145
5146
|
"data-testid": testId,
|
|
5146
5147
|
className: classNames(
|
|
5147
|
-
styles$
|
|
5148
|
+
styles$w.grid,
|
|
5148
5149
|
COLUMN_CLASS_NAMES[columnCount],
|
|
5149
|
-
minColumnWidth === "regular" ? styles$
|
|
5150
|
-
layoutGapClassName(styles$
|
|
5150
|
+
minColumnWidth === "regular" ? styles$w.minColumnRegular : styles$w.minColumnCompact,
|
|
5151
|
+
layoutGapClassName(styles$w, readGapProp(nodeProps.gap))
|
|
5151
5152
|
),
|
|
5152
5153
|
children: cells
|
|
5153
5154
|
}
|
|
@@ -5167,7 +5168,7 @@ const icon$1 = "agents_icon_-vlQJS";
|
|
|
5167
5168
|
const panel = "agents_panel_UrWx4M";
|
|
5168
5169
|
const placementStart = "agents_placementStart_zdT5vQ";
|
|
5169
5170
|
const placementEnd = "agents_placementEnd_TNjfqR";
|
|
5170
|
-
const styles$
|
|
5171
|
+
const styles$v = {
|
|
5171
5172
|
popover,
|
|
5172
5173
|
trigger,
|
|
5173
5174
|
triggerWrapper,
|
|
@@ -5220,18 +5221,18 @@ const Popover = (props) => {
|
|
|
5220
5221
|
}, [isOpen]);
|
|
5221
5222
|
if (label2 === void 0 || !hasExplanation) return null;
|
|
5222
5223
|
const labelContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5223
|
-
icon2 !== "none" ? /* @__PURE__ */ jsx(Icon, { className: styles$
|
|
5224
|
+
icon2 !== "none" ? /* @__PURE__ */ jsx(Icon, { className: styles$v.icon, name: ICON_NAMES[icon2] }) : null,
|
|
5224
5225
|
/* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(label2) })
|
|
5225
5226
|
] });
|
|
5226
5227
|
if (isInsidePressable || runtime.isEmailRender)
|
|
5227
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
5228
|
-
return /* @__PURE__ */ jsxs("span", { ref: popoverRef, className: styles$
|
|
5229
|
-
/* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: styles$
|
|
5228
|
+
return /* @__PURE__ */ jsx("span", { className: styles$v.staticLabel, "data-testid": testId, children: labelContent });
|
|
5229
|
+
return /* @__PURE__ */ jsxs("span", { ref: popoverRef, className: styles$v.popover, children: [
|
|
5230
|
+
/* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: styles$v.triggerWrapper, children: /* @__PURE__ */ jsx(
|
|
5230
5231
|
"button",
|
|
5231
5232
|
{
|
|
5232
5233
|
ref: triggerRef,
|
|
5233
5234
|
type: "button",
|
|
5234
|
-
className: styles$
|
|
5235
|
+
className: styles$v.trigger,
|
|
5235
5236
|
"data-testid": testId,
|
|
5236
5237
|
"aria-expanded": isOpen,
|
|
5237
5238
|
"aria-controls": isOpen ? panelId : void 0,
|
|
@@ -5245,7 +5246,7 @@ const Popover = (props) => {
|
|
|
5245
5246
|
id: panelId,
|
|
5246
5247
|
role: "note",
|
|
5247
5248
|
"data-testid": `${testId}-panel`,
|
|
5248
|
-
className: classNames(styles$
|
|
5249
|
+
className: classNames(styles$v.panel, placement === "start" ? styles$v.placementStart : styles$v.placementEnd),
|
|
5249
5250
|
children: [
|
|
5250
5251
|
text2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "help", translate: false, children: escapePlainTextForText(text2) }) : null,
|
|
5251
5252
|
contentNodes
|
|
@@ -5264,7 +5265,7 @@ const button = "agents_button_bKxiw0";
|
|
|
5264
5265
|
const selected = "agents_selected_sDa7Ja";
|
|
5265
5266
|
const content = "agents_content_FRNdnX";
|
|
5266
5267
|
const padded = "agents_padded_huIgOm";
|
|
5267
|
-
const styles$
|
|
5268
|
+
const styles$u = {
|
|
5268
5269
|
pressable,
|
|
5269
5270
|
button,
|
|
5270
5271
|
selected,
|
|
@@ -5291,17 +5292,17 @@ const Pressable = (props) => {
|
|
|
5291
5292
|
return /* @__PURE__ */ jsx(
|
|
5292
5293
|
"div",
|
|
5293
5294
|
{
|
|
5294
|
-
className: classNames(styles$
|
|
5295
|
+
className: classNames(styles$u.pressable, styles$u.content, padsContent && styles$u.padded, isSelected && styles$u.selected),
|
|
5295
5296
|
"data-testid": testId,
|
|
5296
5297
|
children: contentNodes
|
|
5297
5298
|
}
|
|
5298
5299
|
);
|
|
5299
5300
|
}
|
|
5300
|
-
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$
|
|
5301
|
+
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$u.pressable, isSelected && styles$u.selected), children: /* @__PURE__ */ jsx(
|
|
5301
5302
|
"button",
|
|
5302
5303
|
{
|
|
5303
5304
|
type: "button",
|
|
5304
|
-
className: classNames(styles$
|
|
5305
|
+
className: classNames(styles$u.button, padsContent && styles$u.padded),
|
|
5305
5306
|
"data-testid": testId,
|
|
5306
5307
|
"aria-pressed": isSelected,
|
|
5307
5308
|
"aria-label": accessibleLabel,
|
|
@@ -5319,7 +5320,7 @@ const quote = "agents_quote_rRSqMr";
|
|
|
5319
5320
|
const quotedContent = "agents_quotedContent_Fnel3H";
|
|
5320
5321
|
const caption$3 = "agents_caption_CaGRKN";
|
|
5321
5322
|
const sourceLink = "agents_sourceLink_vqh-op";
|
|
5322
|
-
const styles$
|
|
5323
|
+
const styles$t = {
|
|
5323
5324
|
quote,
|
|
5324
5325
|
quotedContent,
|
|
5325
5326
|
caption: caption$3,
|
|
@@ -5340,18 +5341,18 @@ const Quote = (props) => {
|
|
|
5340
5341
|
if (!hasQuotedContent) return null;
|
|
5341
5342
|
const sourceLabel2 = source2?.name ?? source2?.url;
|
|
5342
5343
|
const canOpenSource = source2?.url !== void 0 && !runtime.isEmailRender;
|
|
5343
|
-
return /* @__PURE__ */ jsxs("figure", { className: styles$
|
|
5344
|
-
/* @__PURE__ */ jsxs("blockquote", { className: styles$
|
|
5344
|
+
return /* @__PURE__ */ jsxs("figure", { className: styles$t.quote, "data-testid": testId, children: [
|
|
5345
|
+
/* @__PURE__ */ jsxs("blockquote", { className: styles$t.quotedContent, cite: source2?.url, children: [
|
|
5345
5346
|
text2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "body", translate: false, children: escapePlainTextForText(text2) }) : null,
|
|
5346
5347
|
contentNodes
|
|
5347
5348
|
] }),
|
|
5348
|
-
attribution2 !== void 0 || sourceLabel2 !== void 0 ? /* @__PURE__ */ jsxs("figcaption", { className: styles$
|
|
5349
|
+
attribution2 !== void 0 || sourceLabel2 !== void 0 ? /* @__PURE__ */ jsxs("figcaption", { className: styles$t.caption, children: [
|
|
5349
5350
|
attribution2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(attribution2) }) : null,
|
|
5350
5351
|
attribution2 !== void 0 && sourceLabel2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-lightest)", translate: false, ariaHidden: true, children: "·" }) : null,
|
|
5351
5352
|
sourceLabel2 !== void 0 && canOpenSource ? /* @__PURE__ */ jsx(
|
|
5352
5353
|
AgentsLink,
|
|
5353
5354
|
{
|
|
5354
|
-
className: styles$
|
|
5355
|
+
className: styles$t.sourceLink,
|
|
5355
5356
|
href: source2?.url,
|
|
5356
5357
|
"data-testid": `${testId}-source`,
|
|
5357
5358
|
children: /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(sourceLabel2) })
|
|
@@ -5371,7 +5372,7 @@ const small = "agents_small_5YnNVj";
|
|
|
5371
5372
|
const medium = "agents_medium_z9bCN5";
|
|
5372
5373
|
const large = "agents_large_Rn-n5f";
|
|
5373
5374
|
const grow = "agents_grow_JyN4Uj";
|
|
5374
|
-
const styles$
|
|
5375
|
+
const styles$s = {
|
|
5375
5376
|
spacer,
|
|
5376
5377
|
small,
|
|
5377
5378
|
medium,
|
|
@@ -5383,7 +5384,7 @@ const Spacer = (props) => {
|
|
|
5383
5384
|
const { props: nodeProps } = props;
|
|
5384
5385
|
const size = readEnumProp(nodeProps.size, SIZES, "medium");
|
|
5385
5386
|
const isGrowing = readBooleanProp(nodeProps.grow, false);
|
|
5386
|
-
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: classNames(styles$
|
|
5387
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: classNames(styles$s.spacer, styles$s[size], isGrowing && styles$s.grow) });
|
|
5387
5388
|
};
|
|
5388
5389
|
const composedViewComponent$l = { nodeType: "Spacer", component: Spacer };
|
|
5389
5390
|
const __vite_glob_0_28 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5408,7 +5409,7 @@ const gapXsmall = "agents_gapXsmall_OGRCNo";
|
|
|
5408
5409
|
const gapSmall = "agents_gapSmall_xGhwPm";
|
|
5409
5410
|
const gapMedium = "agents_gapMedium_yY8QRU";
|
|
5410
5411
|
const gapLarge = "agents_gapLarge_XH-WSg";
|
|
5411
|
-
const styles$
|
|
5412
|
+
const styles$r = {
|
|
5412
5413
|
stack,
|
|
5413
5414
|
column,
|
|
5414
5415
|
row: row$2,
|
|
@@ -5432,17 +5433,17 @@ const DIRECTIONS = ["row", "column"];
|
|
|
5432
5433
|
const ALIGNMENTS = ["start", "center", "end", "stretch", "baseline"];
|
|
5433
5434
|
const JUSTIFICATIONS = ["start", "center", "end", "between"];
|
|
5434
5435
|
const ALIGNMENT_CLASS_NAMES = {
|
|
5435
|
-
start: styles$
|
|
5436
|
-
center: styles$
|
|
5437
|
-
end: styles$
|
|
5438
|
-
stretch: styles$
|
|
5439
|
-
baseline: styles$
|
|
5436
|
+
start: styles$r.alignStart,
|
|
5437
|
+
center: styles$r.alignCenter,
|
|
5438
|
+
end: styles$r.alignEnd,
|
|
5439
|
+
stretch: styles$r.alignStretch,
|
|
5440
|
+
baseline: styles$r.alignBaseline
|
|
5440
5441
|
};
|
|
5441
5442
|
const JUSTIFICATION_CLASS_NAMES = {
|
|
5442
|
-
start: styles$
|
|
5443
|
-
center: styles$
|
|
5444
|
-
end: styles$
|
|
5445
|
-
between: styles$
|
|
5443
|
+
start: styles$r.justifyStart,
|
|
5444
|
+
center: styles$r.justifyCenter,
|
|
5445
|
+
end: styles$r.justifyEnd,
|
|
5446
|
+
between: styles$r.justifyBetween
|
|
5446
5447
|
};
|
|
5447
5448
|
const Stack = (props) => {
|
|
5448
5449
|
const { props: nodeProps, slots, runtime } = props;
|
|
@@ -5462,12 +5463,12 @@ const Stack = (props) => {
|
|
|
5462
5463
|
"div",
|
|
5463
5464
|
{
|
|
5464
5465
|
className: classNames(
|
|
5465
|
-
styles$
|
|
5466
|
-
styles$
|
|
5467
|
-
isWrapping && styles$
|
|
5466
|
+
styles$r.stack,
|
|
5467
|
+
styles$r[direction],
|
|
5468
|
+
isWrapping && styles$r.wrap,
|
|
5468
5469
|
ALIGNMENT_CLASS_NAMES[alignment],
|
|
5469
5470
|
JUSTIFICATION_CLASS_NAMES[justification],
|
|
5470
|
-
layoutGapClassName(styles$
|
|
5471
|
+
layoutGapClassName(styles$r, readGapProp(nodeProps.gap))
|
|
5471
5472
|
),
|
|
5472
5473
|
children
|
|
5473
5474
|
}
|
|
@@ -5482,20 +5483,20 @@ const surface = "agents_surface_oZat8u";
|
|
|
5482
5483
|
const compact$1 = "agents_compact_gW-i-f";
|
|
5483
5484
|
const media = "agents_media_uSgVzZ";
|
|
5484
5485
|
const compactMedia = "agents_compactMedia_EzVzo-";
|
|
5485
|
-
const header$
|
|
5486
|
+
const header$2 = "agents_header_-G1cxv";
|
|
5486
5487
|
const titles = "agents_titles_hfEsqk";
|
|
5487
5488
|
const headerEnd$1 = "agents_headerEnd_-xQ-kL";
|
|
5488
|
-
const body = "agents_body_tZtLtn";
|
|
5489
|
+
const body$1 = "agents_body_tZtLtn";
|
|
5489
5490
|
const footer$1 = "agents_footer_OnUaT0";
|
|
5490
|
-
const styles$
|
|
5491
|
+
const styles$q = {
|
|
5491
5492
|
surface,
|
|
5492
5493
|
compact: compact$1,
|
|
5493
5494
|
media,
|
|
5494
5495
|
compactMedia,
|
|
5495
|
-
header: header$
|
|
5496
|
+
header: header$2,
|
|
5496
5497
|
titles,
|
|
5497
5498
|
headerEnd: headerEnd$1,
|
|
5498
|
-
body,
|
|
5499
|
+
body: body$1,
|
|
5499
5500
|
footer: footer$1
|
|
5500
5501
|
};
|
|
5501
5502
|
const DENSITIES = ["regular", "compact"];
|
|
@@ -5525,11 +5526,11 @@ const Surface = (props) => {
|
|
|
5525
5526
|
level: isOutermost ? "elevated" : "flat",
|
|
5526
5527
|
compact: isCompact,
|
|
5527
5528
|
testId,
|
|
5528
|
-
className: classNames(styles$
|
|
5529
|
+
className: classNames(styles$q.surface, isCompact && styles$q.compact),
|
|
5529
5530
|
children: /* @__PURE__ */ jsxs(LayoutNestingContext.Provider, { value: innerNesting, children: [
|
|
5530
|
-
mediaNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
5531
|
-
hasHeader ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
5532
|
-
title2 !== void 0 || subtitle !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
5531
|
+
mediaNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: classNames(styles$q.media, isCompact && styles$q.compactMedia), children: mediaNodes }) : null,
|
|
5532
|
+
hasHeader ? /* @__PURE__ */ jsxs("div", { className: styles$q.header, children: [
|
|
5533
|
+
title2 !== void 0 || subtitle !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$q.titles, children: [
|
|
5533
5534
|
title2 !== void 0 ? /* @__PURE__ */ jsx(
|
|
5534
5535
|
Text,
|
|
5535
5536
|
{
|
|
@@ -5541,10 +5542,10 @@ const Surface = (props) => {
|
|
|
5541
5542
|
) : null,
|
|
5542
5543
|
subtitle !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(subtitle) }) : null
|
|
5543
5544
|
] }) : null,
|
|
5544
|
-
headerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
5545
|
+
headerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$q.headerEnd, children: headerNodes }) : null
|
|
5545
5546
|
] }) : null,
|
|
5546
|
-
bodyNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
5547
|
-
footerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
5547
|
+
bodyNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$q.body, children: bodyNodes }) : null,
|
|
5548
|
+
footerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$q.footer, children: footerNodes }) : null
|
|
5548
5549
|
] })
|
|
5549
5550
|
}
|
|
5550
5551
|
);
|
|
@@ -5573,7 +5574,7 @@ const readFirst = (record, keys) => {
|
|
|
5573
5574
|
}
|
|
5574
5575
|
return void 0;
|
|
5575
5576
|
};
|
|
5576
|
-
const readText$
|
|
5577
|
+
const readText$2 = (record, keys) => {
|
|
5577
5578
|
const value2 = readFirst(record, keys);
|
|
5578
5579
|
if (typeof value2 === "number" && Number.isFinite(value2)) return String(value2);
|
|
5579
5580
|
if (typeof value2 !== "string") return void 0;
|
|
@@ -5598,7 +5599,7 @@ const readLatLng = (record) => {
|
|
|
5598
5599
|
return { lat, lng };
|
|
5599
5600
|
};
|
|
5600
5601
|
const readImageUrl$1 = (record) => {
|
|
5601
|
-
const value2 = readText$
|
|
5602
|
+
const value2 = readText$2(record, IMAGE_KEYS);
|
|
5602
5603
|
if (!value2) return void 0;
|
|
5603
5604
|
return /^https?:\/\//i.test(value2) || /^data:image\//i.test(value2) ? value2 : void 0;
|
|
5604
5605
|
};
|
|
@@ -5610,7 +5611,7 @@ const readActionName = (record) => {
|
|
|
5610
5611
|
return void 0;
|
|
5611
5612
|
};
|
|
5612
5613
|
const readDetailTone = (record) => {
|
|
5613
|
-
return readOptionalComposedViewTone(readText$
|
|
5614
|
+
return readOptionalComposedViewTone(readText$2(record, ["detailTone", "statusTone", "tone"]));
|
|
5614
5615
|
};
|
|
5615
5616
|
const readRating = (record) => {
|
|
5616
5617
|
const rating = readNumber(readFirst(record, ["rating", "stars", "score"]));
|
|
@@ -5623,12 +5624,12 @@ const readPoint = (pointValue, pointIndex, fallbackActionName) => {
|
|
|
5623
5624
|
if (!position) return void 0;
|
|
5624
5625
|
return {
|
|
5625
5626
|
key: `point-${pointIndex}`,
|
|
5626
|
-
label: readText$
|
|
5627
|
+
label: readText$2(pointValue, LABEL_KEYS) ?? "",
|
|
5627
5628
|
lat: position.lat,
|
|
5628
5629
|
lng: position.lng,
|
|
5629
5630
|
rating: readRating(pointValue),
|
|
5630
|
-
subtitle: readText$
|
|
5631
|
-
detail: readText$
|
|
5631
|
+
subtitle: readText$2(pointValue, SUBTITLE_KEYS),
|
|
5632
|
+
detail: readText$2(pointValue, DETAIL_KEYS),
|
|
5632
5633
|
detailTone: readDetailTone(pointValue),
|
|
5633
5634
|
image: readImageUrl$1(pointValue),
|
|
5634
5635
|
actionName: readActionName(pointValue) ?? fallbackActionName,
|
|
@@ -6471,16 +6472,16 @@ const __vite_glob_0_31 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
6471
6472
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6472
6473
|
const caption$2 = "agents_caption_ZO0ogf";
|
|
6473
6474
|
const wrap$2 = "agents_wrap_GVwVoM";
|
|
6474
|
-
const styles$
|
|
6475
|
+
const styles$p = {
|
|
6475
6476
|
caption: caption$2,
|
|
6476
6477
|
wrap: wrap$2
|
|
6477
6478
|
};
|
|
6478
6479
|
const MediaCaption = (props) => {
|
|
6479
6480
|
const { title: title2, caption: caption2 } = props;
|
|
6480
6481
|
if (!title2 && !caption2) return null;
|
|
6481
|
-
return /* @__PURE__ */ jsxs("span", { className: styles$
|
|
6482
|
-
title2 ? /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$
|
|
6483
|
-
caption2 ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", className: styles$
|
|
6482
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$p.caption, children: [
|
|
6483
|
+
title2 ? /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$p.wrap, children: title2 }) : null,
|
|
6484
|
+
caption2 ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", className: styles$p.wrap, children: caption2 }) : null
|
|
6484
6485
|
] });
|
|
6485
6486
|
};
|
|
6486
6487
|
const frame$2 = "agents_frame_QhqjEk";
|
|
@@ -6499,7 +6500,7 @@ const fallbackText = "agents_fallbackText_G8TPfd";
|
|
|
6499
6500
|
const hiddenCountChip = "agents_hiddenCountChip_QCkf8c";
|
|
6500
6501
|
const sourceChip = "agents_sourceChip_UBV1pB";
|
|
6501
6502
|
const openButton = "agents_openButton_BG-lWg";
|
|
6502
|
-
const styles$
|
|
6503
|
+
const styles$o = {
|
|
6503
6504
|
frame: frame$2,
|
|
6504
6505
|
frameCompact,
|
|
6505
6506
|
ratioSquare,
|
|
@@ -6531,12 +6532,12 @@ const useImageLoadState = (src) => {
|
|
|
6531
6532
|
return { loadState, imageRef, markLoaded, markFailed };
|
|
6532
6533
|
};
|
|
6533
6534
|
const ASPECT_RATIO_CLASS_NAMES = {
|
|
6534
|
-
"1:1": styles$
|
|
6535
|
-
"4:3": styles$
|
|
6536
|
-
"3:2": styles$
|
|
6537
|
-
"5:4": styles$
|
|
6538
|
-
"16:9": styles$
|
|
6539
|
-
"3:4": styles$
|
|
6535
|
+
"1:1": styles$o.ratioSquare,
|
|
6536
|
+
"4:3": styles$o.ratioFourByThree,
|
|
6537
|
+
"3:2": styles$o.ratioThreeByTwo,
|
|
6538
|
+
"5:4": styles$o.ratioFiveByFour,
|
|
6539
|
+
"16:9": styles$o.ratioSixteenByNine,
|
|
6540
|
+
"3:4": styles$o.ratioThreeByFour
|
|
6540
6541
|
};
|
|
6541
6542
|
const MediaImageTile = (props) => {
|
|
6542
6543
|
const {
|
|
@@ -6556,19 +6557,19 @@ const MediaImageTile = (props) => {
|
|
|
6556
6557
|
onLoadFailed?.();
|
|
6557
6558
|
};
|
|
6558
6559
|
const frameClassName = classNames(
|
|
6559
|
-
styles$
|
|
6560
|
+
styles$o.frame,
|
|
6560
6561
|
ASPECT_RATIO_CLASS_NAMES[aspectRatio],
|
|
6561
|
-
isCompact && styles$
|
|
6562
|
+
isCompact && styles$o.frameCompact
|
|
6562
6563
|
);
|
|
6563
6564
|
const frameContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6564
|
-
loadState === "failed" ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
6565
|
+
loadState === "failed" ? /* @__PURE__ */ jsxs("span", { className: styles$o.fallback, children: [
|
|
6565
6566
|
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", name: "image" }),
|
|
6566
|
-
/* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg)", className: styles$
|
|
6567
|
+
/* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg)", className: styles$o.fallbackText, children: image2.alt })
|
|
6567
6568
|
] }) : /* @__PURE__ */ jsx(
|
|
6568
6569
|
"img",
|
|
6569
6570
|
{
|
|
6570
6571
|
ref: imageRef,
|
|
6571
|
-
className: classNames(styles$
|
|
6572
|
+
className: classNames(styles$o.image, fit === "contain" && styles$o.imageContain),
|
|
6572
6573
|
src: image2.src,
|
|
6573
6574
|
alt: image2.alt,
|
|
6574
6575
|
loading: isEager ? "eager" : "lazy",
|
|
@@ -6577,9 +6578,9 @@ const MediaImageTile = (props) => {
|
|
|
6577
6578
|
onError: markFailed
|
|
6578
6579
|
}
|
|
6579
6580
|
),
|
|
6580
|
-
loadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
6581
|
-
image2.source && !isCompact ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
6582
|
-
hiddenImageCount > 0 ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
6581
|
+
loadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$o.skeleton }) : null,
|
|
6582
|
+
image2.source && !isCompact ? /* @__PURE__ */ jsx("span", { className: styles$o.sourceChip, children: /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-on-dark)", ellipsis: true, children: image2.source.name }) }) : null,
|
|
6583
|
+
hiddenImageCount > 0 ? /* @__PURE__ */ jsxs("span", { className: styles$o.hiddenCountChip, children: [
|
|
6583
6584
|
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-on-dark)", name: "photo" }),
|
|
6584
6585
|
/* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-on-dark)", translate: false, children: `+${hiddenImageCount}` })
|
|
6585
6586
|
] }) : null
|
|
@@ -6598,7 +6599,7 @@ const MediaImageTile = (props) => {
|
|
|
6598
6599
|
"button",
|
|
6599
6600
|
{
|
|
6600
6601
|
type: "button",
|
|
6601
|
-
className: styles$
|
|
6602
|
+
className: styles$o.openButton,
|
|
6602
6603
|
"aria-label": openLabel,
|
|
6603
6604
|
onClick: onOpen,
|
|
6604
6605
|
"data-testid": testId ? `${testId}-open` : void 0
|
|
@@ -6606,10 +6607,10 @@ const MediaImageTile = (props) => {
|
|
|
6606
6607
|
)
|
|
6607
6608
|
] });
|
|
6608
6609
|
};
|
|
6609
|
-
const readText = (value2) => typeof value2 === "string" && value2.trim() !== "" ? value2.trim() : void 0;
|
|
6610
|
+
const readText$1 = (value2) => typeof value2 === "string" && value2.trim() !== "" ? value2.trim() : void 0;
|
|
6610
6611
|
const isRecord = (value2) => typeof value2 === "object" && value2 !== null && !Array.isArray(value2);
|
|
6611
6612
|
const readHttpUrl = (value2) => {
|
|
6612
|
-
const text2 = readText(value2);
|
|
6613
|
+
const text2 = readText$1(value2);
|
|
6613
6614
|
if (!text2) return void 0;
|
|
6614
6615
|
try {
|
|
6615
6616
|
const url = new URL(text2);
|
|
@@ -6619,24 +6620,24 @@ const readHttpUrl = (value2) => {
|
|
|
6619
6620
|
}
|
|
6620
6621
|
};
|
|
6621
6622
|
const readImageUrl = (value2) => {
|
|
6622
|
-
const text2 = readText(value2);
|
|
6623
|
+
const text2 = readText$1(value2);
|
|
6623
6624
|
if (text2 && /^data:image\/[a-z0-9.+-]+[;,]/i.test(text2)) return text2;
|
|
6624
6625
|
return readHttpUrl(value2);
|
|
6625
6626
|
};
|
|
6626
6627
|
const readMediaSource = (value2) => {
|
|
6627
6628
|
if (!isRecord(value2)) return void 0;
|
|
6628
6629
|
const url = readHttpUrl(value2.url);
|
|
6629
|
-
const name = readText(value2.name) ?? (url ? new URL(url).hostname.replace(/^www\./, "") : void 0);
|
|
6630
|
+
const name = readText$1(value2.name) ?? (url ? new URL(url).hostname.replace(/^www\./, "") : void 0);
|
|
6630
6631
|
if (!name) return void 0;
|
|
6631
6632
|
return url ? { name, url } : { name };
|
|
6632
6633
|
};
|
|
6633
6634
|
const readMediaImage = (value2) => {
|
|
6634
6635
|
if (!isRecord(value2)) return void 0;
|
|
6635
6636
|
const src = readImageUrl(value2.src);
|
|
6636
|
-
const alt = readText(value2.alt);
|
|
6637
|
+
const alt = readText$1(value2.alt);
|
|
6637
6638
|
if (!src || !alt) return void 0;
|
|
6638
|
-
const title2 = readText(value2.title);
|
|
6639
|
-
const caption2 = readText(value2.caption);
|
|
6639
|
+
const title2 = readText$1(value2.title);
|
|
6640
|
+
const caption2 = readText$1(value2.caption);
|
|
6640
6641
|
const source2 = readMediaSource(value2.source);
|
|
6641
6642
|
return {
|
|
6642
6643
|
src,
|
|
@@ -6678,7 +6679,7 @@ const formatVideoDuration = (durationSeconds) => {
|
|
|
6678
6679
|
return hours > 0 ? `${hours}:${String(minutes).padStart(2, "0")}:${paddedSeconds}` : `${minutes}:${paddedSeconds}`;
|
|
6679
6680
|
};
|
|
6680
6681
|
const readVideoId = (value2) => {
|
|
6681
|
-
const text2 = readText(value2);
|
|
6682
|
+
const text2 = readText$1(value2);
|
|
6682
6683
|
return text2 && /^[A-Za-z0-9_-]{6,32}$/.test(text2) ? text2 : void 0;
|
|
6683
6684
|
};
|
|
6684
6685
|
const YOUTUBE_WATCH_HOSTS = ["youtube.com", "www.youtube.com", "m.youtube.com", "music.youtube.com"];
|
|
@@ -6705,7 +6706,7 @@ const imageCompact = "agents_imageCompact_h-8KKS";
|
|
|
6705
6706
|
const pendingFrame = "agents_pendingFrame_KPTkbn";
|
|
6706
6707
|
const pendingFrameCompact = "agents_pendingFrameCompact_3mI5Mt";
|
|
6707
6708
|
const pendingSkeleton$1 = "agents_pendingSkeleton_LxA7up";
|
|
6708
|
-
const styles$
|
|
6709
|
+
const styles$n = {
|
|
6709
6710
|
image,
|
|
6710
6711
|
imageCompact,
|
|
6711
6712
|
pendingFrame,
|
|
@@ -6739,16 +6740,16 @@ const ImageNode = (props) => {
|
|
|
6739
6740
|
return /* @__PURE__ */ jsx(
|
|
6740
6741
|
"span",
|
|
6741
6742
|
{
|
|
6742
|
-
className: classNames(styles$
|
|
6743
|
+
className: classNames(styles$n.pendingFrame, isCompact && styles$n.pendingFrameCompact),
|
|
6743
6744
|
"aria-busy": "true",
|
|
6744
6745
|
"data-testid": `${testId}-skeleton`,
|
|
6745
|
-
children: /* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
6746
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: styles$n.pendingSkeleton })
|
|
6746
6747
|
}
|
|
6747
6748
|
);
|
|
6748
6749
|
}
|
|
6749
6750
|
if (!image2) return null;
|
|
6750
6751
|
const openLightbox = runtime.isEmailRender || isInsidePressable ? void 0 : () => openMediaImagesLightbox([image2], 0);
|
|
6751
|
-
return /* @__PURE__ */ jsxs("figure", { className: classNames(styles$
|
|
6752
|
+
return /* @__PURE__ */ jsxs("figure", { className: classNames(styles$n.image, isCompact && styles$n.imageCompact), "data-testid": testId, children: [
|
|
6752
6753
|
/* @__PURE__ */ jsx(
|
|
6753
6754
|
MediaImageTile,
|
|
6754
6755
|
{
|
|
@@ -6785,7 +6786,7 @@ const carouselPosition = "agents_carouselPosition_3Vgxq3";
|
|
|
6785
6786
|
const pendingTile = "agents_pendingTile_3yCaZK";
|
|
6786
6787
|
const pendingTileCompact = "agents_pendingTileCompact_LboHtT";
|
|
6787
6788
|
const pendingSkeleton = "agents_pendingSkeleton_Vn-s3o";
|
|
6788
|
-
const styles$
|
|
6789
|
+
const styles$m = {
|
|
6789
6790
|
grid,
|
|
6790
6791
|
gridCompact,
|
|
6791
6792
|
tile: tile$1,
|
|
@@ -6811,7 +6812,7 @@ const ImageGroupGrid = (props) => {
|
|
|
6811
6812
|
const { images, aspectRatio, isEmailRender, isInsidePressable, onImageLoadFailed, maxVisibleTiles, isCompact, testId } = props;
|
|
6812
6813
|
const visibleImages = images.slice(0, maxVisibleTiles);
|
|
6813
6814
|
const hiddenImageCount = images.length - visibleImages.length;
|
|
6814
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
6815
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$m.grid, isCompact && styles$m.gridCompact), "data-testid": testId, children: visibleImages.map((image2, imageIndex) => /* @__PURE__ */ jsxs("figure", { className: styles$m.tile, children: [
|
|
6815
6816
|
/* @__PURE__ */ jsx(
|
|
6816
6817
|
MediaImageTile,
|
|
6817
6818
|
{
|
|
@@ -6831,8 +6832,8 @@ const ImageGroupGrid = (props) => {
|
|
|
6831
6832
|
const ImageGroupMagazine = (props) => {
|
|
6832
6833
|
const { images, aspectRatio, heroAspectRatio, isEmailRender, isInsidePressable, onImageLoadFailed, testId } = props;
|
|
6833
6834
|
const [heroImage, ...tileImages] = images;
|
|
6834
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
6835
|
-
/* @__PURE__ */ jsxs("figure", { className: styles$
|
|
6835
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$m.magazine, "data-testid": testId, children: [
|
|
6836
|
+
/* @__PURE__ */ jsxs("figure", { className: styles$m.tile, children: [
|
|
6836
6837
|
/* @__PURE__ */ jsx(
|
|
6837
6838
|
MediaImageTile,
|
|
6838
6839
|
{
|
|
@@ -6846,7 +6847,7 @@ const ImageGroupMagazine = (props) => {
|
|
|
6846
6847
|
),
|
|
6847
6848
|
/* @__PURE__ */ jsx(MediaCaption, { title: heroImage.title, caption: heroImage.caption })
|
|
6848
6849
|
] }),
|
|
6849
|
-
tileImages.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
6850
|
+
tileImages.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$m.grid, children: tileImages.map((image2, tileIndex) => /* @__PURE__ */ jsxs("figure", { className: styles$m.tile, children: [
|
|
6850
6851
|
/* @__PURE__ */ jsx(
|
|
6851
6852
|
MediaImageTile,
|
|
6852
6853
|
{
|
|
@@ -6868,12 +6869,12 @@ const CarouselStepButton = (props) => {
|
|
|
6868
6869
|
InteractiveSurface,
|
|
6869
6870
|
{
|
|
6870
6871
|
hoverable: !isDisabled,
|
|
6871
|
-
className: classNames(styles$
|
|
6872
|
+
className: classNames(styles$m.carouselButton, className, isDisabled && styles$m.carouselButtonDisabled),
|
|
6872
6873
|
children: /* @__PURE__ */ jsx(
|
|
6873
6874
|
"button",
|
|
6874
6875
|
{
|
|
6875
6876
|
type: "button",
|
|
6876
|
-
className: styles$
|
|
6877
|
+
className: styles$m.carouselButtonTarget,
|
|
6877
6878
|
"aria-label": label2,
|
|
6878
6879
|
"data-testid": testId,
|
|
6879
6880
|
disabled: isDisabled,
|
|
@@ -6899,14 +6900,14 @@ const ImageGroupCarousel = (props) => {
|
|
|
6899
6900
|
return /* @__PURE__ */ jsxs(
|
|
6900
6901
|
"div",
|
|
6901
6902
|
{
|
|
6902
|
-
className: styles$
|
|
6903
|
+
className: styles$m.carousel,
|
|
6903
6904
|
"data-testid": testId,
|
|
6904
6905
|
role: "group",
|
|
6905
6906
|
"aria-roledescription": "carousel",
|
|
6906
6907
|
tabIndex: hasControls ? 0 : void 0,
|
|
6907
6908
|
onKeyDown: hasControls ? showImageForKey : void 0,
|
|
6908
6909
|
children: [
|
|
6909
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6910
|
+
/* @__PURE__ */ jsxs("div", { className: styles$m.carouselStage, children: [
|
|
6910
6911
|
/* @__PURE__ */ jsx(
|
|
6911
6912
|
MediaImageTile,
|
|
6912
6913
|
{
|
|
@@ -6925,7 +6926,7 @@ const ImageGroupCarousel = (props) => {
|
|
|
6925
6926
|
{
|
|
6926
6927
|
label: translateText("Previous picture"),
|
|
6927
6928
|
icon: "arrowLeft",
|
|
6928
|
-
className: styles$
|
|
6929
|
+
className: styles$m.carouselButtonPrevious,
|
|
6929
6930
|
isDisabled: currentImageIndex === 0,
|
|
6930
6931
|
onStep: () => showImage(currentImageIndex - 1),
|
|
6931
6932
|
testId: `${testId}-previous`
|
|
@@ -6936,13 +6937,13 @@ const ImageGroupCarousel = (props) => {
|
|
|
6936
6937
|
{
|
|
6937
6938
|
label: translateText("Next picture"),
|
|
6938
6939
|
icon: "arrowRight",
|
|
6939
|
-
className: styles$
|
|
6940
|
+
className: styles$m.carouselButtonNext,
|
|
6940
6941
|
isDisabled: currentImageIndex === lastImageIndex,
|
|
6941
6942
|
onStep: () => showImage(currentImageIndex + 1),
|
|
6942
6943
|
testId: `${testId}-next`
|
|
6943
6944
|
}
|
|
6944
6945
|
),
|
|
6945
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
6946
|
+
/* @__PURE__ */ jsx("span", { className: styles$m.carouselPosition, "aria-live": "polite", "data-testid": `${testId}-position`, children: /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-on-dark)", translate: false, children: `${currentImageIndex + 1} / ${images.length}` }) })
|
|
6946
6947
|
] }) : null
|
|
6947
6948
|
] }),
|
|
6948
6949
|
/* @__PURE__ */ jsx(MediaCaption, { title: currentImage.title, caption: currentImage.caption })
|
|
@@ -7001,10 +7002,10 @@ const ImageGroupNode = (props) => {
|
|
|
7001
7002
|
return /* @__PURE__ */ jsx(
|
|
7002
7003
|
"div",
|
|
7003
7004
|
{
|
|
7004
|
-
className: classNames(styles$
|
|
7005
|
+
className: classNames(styles$m.grid, isCompact && styles$m.gridCompact),
|
|
7005
7006
|
"aria-busy": "true",
|
|
7006
7007
|
"data-testid": `${testId}-skeleton`,
|
|
7007
|
-
children: Array.from({ length: isCompact ? COMPACT_MAX_VISIBLE_TILES : PENDING_TILE_COUNT }, (unused, tileIndex) => /* @__PURE__ */ jsx("span", { className: classNames(styles$
|
|
7008
|
+
children: Array.from({ length: isCompact ? COMPACT_MAX_VISIBLE_TILES : PENDING_TILE_COUNT }, (unused, tileIndex) => /* @__PURE__ */ jsx("span", { className: classNames(styles$m.pendingTile, isCompact && styles$m.pendingTileCompact), children: /* @__PURE__ */ jsx(Skeleton, { className: styles$m.pendingSkeleton }) }, tileIndex))
|
|
7008
7009
|
}
|
|
7009
7010
|
);
|
|
7010
7011
|
}
|
|
@@ -7058,7 +7059,7 @@ const playButton$1 = "agents_playButton_vUbsU1";
|
|
|
7058
7059
|
const text$2 = "agents_text_po8tsX";
|
|
7059
7060
|
const wrap$1 = "agents_wrap_Y3ml8c";
|
|
7060
7061
|
const openLink$1 = "agents_openLink_Aj8YwO";
|
|
7061
|
-
const styles$
|
|
7062
|
+
const styles$l = {
|
|
7062
7063
|
video,
|
|
7063
7064
|
videoCompact,
|
|
7064
7065
|
frame: frame$1,
|
|
@@ -7110,10 +7111,10 @@ const VideoNode = (props) => {
|
|
|
7110
7111
|
return /* @__PURE__ */ jsx(
|
|
7111
7112
|
"span",
|
|
7112
7113
|
{
|
|
7113
|
-
className: classNames(styles$
|
|
7114
|
+
className: classNames(styles$l.video, isCompact && styles$l.videoCompact),
|
|
7114
7115
|
"aria-busy": "true",
|
|
7115
7116
|
"data-testid": `${testId}-skeleton`,
|
|
7116
|
-
children: /* @__PURE__ */ jsx("span", { className: styles$
|
|
7117
|
+
children: /* @__PURE__ */ jsx("span", { className: styles$l.frame, children: /* @__PURE__ */ jsx(Skeleton, { className: styles$l.frameSkeleton }) })
|
|
7117
7118
|
}
|
|
7118
7119
|
);
|
|
7119
7120
|
}
|
|
@@ -7130,10 +7131,10 @@ const VideoNode = (props) => {
|
|
|
7130
7131
|
};
|
|
7131
7132
|
const metaLine2 = [channel, duration].filter((metaPart) => metaPart !== void 0).join(" · ");
|
|
7132
7133
|
const sourceName = source2 && source2.name !== channel ? source2.name : void 0;
|
|
7133
|
-
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7134
|
+
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$l.frame, children: /* @__PURE__ */ jsx(
|
|
7134
7135
|
"iframe",
|
|
7135
7136
|
{
|
|
7136
|
-
className: styles$
|
|
7137
|
+
className: styles$l.player,
|
|
7137
7138
|
"data-testid": `${testId}-player`,
|
|
7138
7139
|
src: buildVideoEmbedUrl(videoId),
|
|
7139
7140
|
title: title2,
|
|
@@ -7141,12 +7142,12 @@ const VideoNode = (props) => {
|
|
|
7141
7142
|
allowFullScreen: true,
|
|
7142
7143
|
referrerPolicy: "strict-origin-when-cross-origin"
|
|
7143
7144
|
}
|
|
7144
|
-
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: canOpen, className: styles$
|
|
7145
|
+
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: canOpen, className: styles$l.frame, children: [
|
|
7145
7146
|
showThumbnail ? /* @__PURE__ */ jsx(
|
|
7146
7147
|
"img",
|
|
7147
7148
|
{
|
|
7148
7149
|
ref: thumbnailRef,
|
|
7149
|
-
className: styles$
|
|
7150
|
+
className: styles$l.thumbnail,
|
|
7150
7151
|
src: thumbnailUrl,
|
|
7151
7152
|
alt: "",
|
|
7152
7153
|
loading: isEmailRender ? "eager" : "lazy",
|
|
@@ -7155,14 +7156,14 @@ const VideoNode = (props) => {
|
|
|
7155
7156
|
onError: markThumbnailFailed
|
|
7156
7157
|
}
|
|
7157
7158
|
) : null,
|
|
7158
|
-
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
7159
|
-
/* @__PURE__ */ jsx("span", { className: classNames(styles$
|
|
7160
|
-
duration ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7159
|
+
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$l.frameSkeleton }) : null,
|
|
7160
|
+
/* @__PURE__ */ jsx("span", { className: classNames(styles$l.playBadge, isCompact && styles$l.playBadgeCompact), "aria-hidden": "true", children: /* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-on-dark)", name: "play" }) }),
|
|
7161
|
+
duration ? /* @__PURE__ */ jsx("span", { className: styles$l.durationChip, children: /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-on-dark)", translate: false, children: duration }) }) : null,
|
|
7161
7162
|
canOpen ? /* @__PURE__ */ jsx(
|
|
7162
7163
|
"button",
|
|
7163
7164
|
{
|
|
7164
7165
|
type: "button",
|
|
7165
|
-
className: styles$
|
|
7166
|
+
className: styles$l.playButton,
|
|
7166
7167
|
"data-testid": `${testId}-play`,
|
|
7167
7168
|
"aria-label": translateText("Play the video %title%", { title: title2 }),
|
|
7168
7169
|
onClick: playVideo
|
|
@@ -7170,22 +7171,22 @@ const VideoNode = (props) => {
|
|
|
7170
7171
|
) : null
|
|
7171
7172
|
] });
|
|
7172
7173
|
if (isCompact) {
|
|
7173
|
-
return /* @__PURE__ */ jsxs("span", { className: classNames(styles$
|
|
7174
|
+
return /* @__PURE__ */ jsxs("span", { className: classNames(styles$l.video, styles$l.videoCompact), "data-testid": testId, children: [
|
|
7174
7175
|
frame2,
|
|
7175
7176
|
/* @__PURE__ */ jsx(ModelText, { role: "caption", ellipsis: true, children: title2 })
|
|
7176
7177
|
] });
|
|
7177
7178
|
}
|
|
7178
|
-
return /* @__PURE__ */ jsxs("figure", { className: styles$
|
|
7179
|
+
return /* @__PURE__ */ jsxs("figure", { className: styles$l.video, "data-testid": testId, children: [
|
|
7179
7180
|
frame2,
|
|
7180
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
7181
|
-
/* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$
|
|
7181
|
+
/* @__PURE__ */ jsxs("span", { className: styles$l.text, children: [
|
|
7182
|
+
/* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$l.wrap, children: title2 }),
|
|
7182
7183
|
metaLine2 ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", children: metaLine2 }) : null,
|
|
7183
7184
|
sourceName ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-lightest)", children: sourceName }) : null
|
|
7184
7185
|
] }),
|
|
7185
7186
|
canOpen && watchUrl ? /* @__PURE__ */ jsxs(
|
|
7186
7187
|
AgentsLink,
|
|
7187
7188
|
{
|
|
7188
|
-
className: styles$
|
|
7189
|
+
className: styles$l.openLink,
|
|
7189
7190
|
href: watchUrl,
|
|
7190
7191
|
"data-testid": `${testId}-open-link`,
|
|
7191
7192
|
children: [
|
|
@@ -7235,7 +7236,7 @@ const metaPhrase = "agents_metaPhrase_Kh3c5I";
|
|
|
7235
7236
|
const titleSkeleton = "agents_titleSkeleton_oRueor";
|
|
7236
7237
|
const metaSkeleton = "agents_metaSkeleton_5rFS57";
|
|
7237
7238
|
const openLink = "agents_openLink_WBY-fX";
|
|
7238
|
-
const styles$
|
|
7239
|
+
const styles$k = {
|
|
7239
7240
|
card,
|
|
7240
7241
|
cardElevated,
|
|
7241
7242
|
cardFlat,
|
|
@@ -7294,22 +7295,22 @@ const VideoWidgetNode = (props) => {
|
|
|
7294
7295
|
reportNodeStatus("mounted");
|
|
7295
7296
|
}, [isPending, title2, videoId, reportNodeStatus]);
|
|
7296
7297
|
const cardClassName = classNames(
|
|
7297
|
-
styles$
|
|
7298
|
-
isInsideSurface ? styles$
|
|
7299
|
-
isCompact && styles$
|
|
7298
|
+
styles$k.card,
|
|
7299
|
+
isInsideSurface ? styles$k.cardFlat : styles$k.cardElevated,
|
|
7300
|
+
isCompact && styles$k.cardCompact
|
|
7300
7301
|
);
|
|
7301
7302
|
if (isPending) {
|
|
7302
7303
|
return /* @__PURE__ */ jsxs("span", { className: cardClassName, "aria-busy": "true", "data-testid": `${testId}-skeleton`, children: [
|
|
7303
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
7304
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
7305
|
-
/* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
7306
|
-
/* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
7304
|
+
/* @__PURE__ */ jsx("span", { className: styles$k.frame, children: /* @__PURE__ */ jsx(Skeleton, { className: styles$k.frameSkeleton }) }),
|
|
7305
|
+
/* @__PURE__ */ jsxs("span", { className: styles$k.text, children: [
|
|
7306
|
+
/* @__PURE__ */ jsx(Skeleton, { className: styles$k.titleSkeleton }),
|
|
7307
|
+
/* @__PURE__ */ jsx(Skeleton, { className: styles$k.metaSkeleton })
|
|
7307
7308
|
] })
|
|
7308
7309
|
] });
|
|
7309
7310
|
}
|
|
7310
7311
|
if (!title2) return null;
|
|
7311
7312
|
if (!videoId) {
|
|
7312
|
-
return /* @__PURE__ */ jsx("span", { className: cardClassName, "data-testid": testId, children: /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$
|
|
7313
|
+
return /* @__PURE__ */ jsx("span", { className: cardClassName, "data-testid": testId, children: /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$k.wrap, children: title2 }) });
|
|
7313
7314
|
}
|
|
7314
7315
|
const watchUrl = videoId ? buildVideoWatchUrl(videoId) : void 0;
|
|
7315
7316
|
const hasControls = videoId !== void 0 && !isEmailRender && !isInsidePressable;
|
|
@@ -7322,10 +7323,10 @@ const VideoWidgetNode = (props) => {
|
|
|
7322
7323
|
}
|
|
7323
7324
|
if (watchUrl) openLink2(watchUrl);
|
|
7324
7325
|
};
|
|
7325
|
-
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7326
|
+
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$k.frame, children: /* @__PURE__ */ jsx(
|
|
7326
7327
|
"iframe",
|
|
7327
7328
|
{
|
|
7328
|
-
className: styles$
|
|
7329
|
+
className: styles$k.player,
|
|
7329
7330
|
"data-testid": `${testId}-player`,
|
|
7330
7331
|
src: buildVideoEmbedUrl(videoId),
|
|
7331
7332
|
title: title2,
|
|
@@ -7333,12 +7334,12 @@ const VideoWidgetNode = (props) => {
|
|
|
7333
7334
|
allowFullScreen: true,
|
|
7334
7335
|
referrerPolicy: "strict-origin-when-cross-origin"
|
|
7335
7336
|
}
|
|
7336
|
-
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: hasControls, className: styles$
|
|
7337
|
+
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: hasControls, className: styles$k.frame, children: [
|
|
7337
7338
|
showThumbnail ? /* @__PURE__ */ jsx(
|
|
7338
7339
|
"img",
|
|
7339
7340
|
{
|
|
7340
7341
|
ref: thumbnailRef,
|
|
7341
|
-
className: styles$
|
|
7342
|
+
className: styles$k.thumbnail,
|
|
7342
7343
|
src: thumbnailUrl,
|
|
7343
7344
|
alt: "",
|
|
7344
7345
|
loading: isEmailRender ? "eager" : "lazy",
|
|
@@ -7347,14 +7348,14 @@ const VideoWidgetNode = (props) => {
|
|
|
7347
7348
|
onError: markThumbnailFailed
|
|
7348
7349
|
}
|
|
7349
7350
|
) : null,
|
|
7350
|
-
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
7351
|
-
/* @__PURE__ */ jsx("span", { className: classNames(styles$
|
|
7352
|
-
duration ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7351
|
+
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$k.frameSkeleton }) : null,
|
|
7352
|
+
/* @__PURE__ */ jsx("span", { className: classNames(styles$k.playBadge, isCompact && styles$k.playBadgeCompact), "aria-hidden": "true", children: /* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-on-dark)", name: "play" }) }),
|
|
7353
|
+
duration ? /* @__PURE__ */ jsx("span", { className: styles$k.durationChip, children: /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-on-dark)", translate: false, children: duration }) }) : null,
|
|
7353
7354
|
hasControls ? /* @__PURE__ */ jsx(
|
|
7354
7355
|
"button",
|
|
7355
7356
|
{
|
|
7356
7357
|
type: "button",
|
|
7357
|
-
className: styles$
|
|
7358
|
+
className: styles$k.playButton,
|
|
7358
7359
|
"data-testid": `${testId}-play`,
|
|
7359
7360
|
"aria-label": translateText("Play the video %title%", { title: title2 }),
|
|
7360
7361
|
onClick: playVideo
|
|
@@ -7364,7 +7365,7 @@ const VideoWidgetNode = (props) => {
|
|
|
7364
7365
|
if (isCompact) {
|
|
7365
7366
|
return /* @__PURE__ */ jsxs("span", { className: cardClassName, "data-testid": testId, children: [
|
|
7366
7367
|
frame2,
|
|
7367
|
-
/* @__PURE__ */ jsx(ModelText, { role: "caption", weight: "medium", className: styles$
|
|
7368
|
+
/* @__PURE__ */ jsx(ModelText, { role: "caption", weight: "medium", className: styles$k.compactTitle, children: title2 })
|
|
7368
7369
|
] });
|
|
7369
7370
|
}
|
|
7370
7371
|
const statisticPhrases = [
|
|
@@ -7383,10 +7384,10 @@ const VideoWidgetNode = (props) => {
|
|
|
7383
7384
|
].filter((statisticPhrase) => statisticPhrase !== null);
|
|
7384
7385
|
return /* @__PURE__ */ jsxs("article", { className: cardClassName, "data-testid": testId, children: [
|
|
7385
7386
|
frame2,
|
|
7386
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
7387
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
7388
|
-
channel ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", className: styles$
|
|
7389
|
-
statisticPhrases.length > 0 ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7387
|
+
/* @__PURE__ */ jsxs("span", { className: styles$k.text, children: [
|
|
7388
|
+
/* @__PURE__ */ jsx("span", { className: styles$k.title, title: title2, children: /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$k.titleText, children: title2 }) }),
|
|
7389
|
+
channel ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", className: styles$k.wrap, children: channel }) : null,
|
|
7390
|
+
statisticPhrases.length > 0 ? /* @__PURE__ */ jsx("span", { className: styles$k.metaLine, children: statisticPhrases.map((statisticPhrase, phraseIndex) => /* @__PURE__ */ jsxs("span", { className: styles$k.metaPhrase, children: [
|
|
7390
7391
|
phraseIndex > 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-lightest)", translate: false, children: "·" }) : null,
|
|
7391
7392
|
statisticPhrase
|
|
7392
7393
|
] }, phraseIndex)) }) : null
|
|
@@ -7394,7 +7395,7 @@ const VideoWidgetNode = (props) => {
|
|
|
7394
7395
|
hasControls && watchUrl ? /* @__PURE__ */ jsxs(
|
|
7395
7396
|
AgentsLink,
|
|
7396
7397
|
{
|
|
7397
|
-
className: styles$
|
|
7398
|
+
className: styles$k.openLink,
|
|
7398
7399
|
href: watchUrl,
|
|
7399
7400
|
"data-testid": `${testId}-open-link`,
|
|
7400
7401
|
children: [
|
|
@@ -7526,7 +7527,7 @@ const loadHighlighterWithLanguage = async (grammarName) => {
|
|
|
7526
7527
|
await highlightLanguagePromises[grammarName];
|
|
7527
7528
|
return highlighter;
|
|
7528
7529
|
};
|
|
7529
|
-
const header = "agents_header_gSgG9l";
|
|
7530
|
+
const header$1 = "agents_header_gSgG9l";
|
|
7530
7531
|
const heading$1 = "agents_heading_h79BcV";
|
|
7531
7532
|
const headerEnd = "agents_headerEnd_sUiI2V";
|
|
7532
7533
|
const wrappingText = "agents_wrappingText_i9j7-t";
|
|
@@ -7536,8 +7537,8 @@ const compact = "agents_compact_DpYcfU";
|
|
|
7536
7537
|
const skeleton$1 = "agents_skeleton_-WUgmj";
|
|
7537
7538
|
const badge$1 = "agents_badge_IPtLgF";
|
|
7538
7539
|
const tile = "agents_tile_yJK-vF";
|
|
7539
|
-
const styles$
|
|
7540
|
-
header,
|
|
7540
|
+
const styles$j = {
|
|
7541
|
+
header: header$1,
|
|
7541
7542
|
heading: heading$1,
|
|
7542
7543
|
headerEnd,
|
|
7543
7544
|
wrappingText,
|
|
@@ -7553,15 +7554,15 @@ const RichNodeFrame = (props) => {
|
|
|
7553
7554
|
const isRoot = sizeClass === "full";
|
|
7554
7555
|
const hasHeader = Boolean(title2) || badge2 !== void 0 || actions2 !== void 0;
|
|
7555
7556
|
const content2 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7556
|
-
hasHeader ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
7557
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
7557
|
+
hasHeader ? /* @__PURE__ */ jsxs("div", { className: styles$j.header, children: [
|
|
7558
|
+
/* @__PURE__ */ jsxs("div", { className: styles$j.heading, children: [
|
|
7558
7559
|
title2 ? /* @__PURE__ */ jsx(
|
|
7559
7560
|
Text,
|
|
7560
7561
|
{
|
|
7561
7562
|
role: isRoot ? "intro" : "body",
|
|
7562
7563
|
weight: "bold",
|
|
7563
7564
|
translate: false,
|
|
7564
|
-
className: styles$
|
|
7565
|
+
className: styles$j.wrappingText,
|
|
7565
7566
|
children: escapePlainTextForText(title2)
|
|
7566
7567
|
}
|
|
7567
7568
|
) : null,
|
|
@@ -7571,41 +7572,41 @@ const RichNodeFrame = (props) => {
|
|
|
7571
7572
|
role: "help",
|
|
7572
7573
|
color: "var(--agents-fg-light)",
|
|
7573
7574
|
translate: false,
|
|
7574
|
-
className: styles$
|
|
7575
|
+
className: styles$j.wrappingText,
|
|
7575
7576
|
children: escapePlainTextForText(caption2)
|
|
7576
7577
|
}
|
|
7577
7578
|
) : null
|
|
7578
7579
|
] }),
|
|
7579
|
-
badge2 !== void 0 || actions2 !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
7580
|
+
badge2 !== void 0 || actions2 !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$j.headerEnd, children: [
|
|
7580
7581
|
badge2,
|
|
7581
7582
|
actions2
|
|
7582
7583
|
] }) : null
|
|
7583
7584
|
] }) : null,
|
|
7584
7585
|
children,
|
|
7585
|
-
footer2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
7586
|
+
footer2 ? /* @__PURE__ */ jsx("div", { className: styles$j.footer, children: footer2 }) : null
|
|
7586
7587
|
] });
|
|
7587
7588
|
if (isRoot)
|
|
7588
7589
|
return /* @__PURE__ */ jsx(WidgetSurface, { level: "elevated", testId, children: content2 });
|
|
7589
7590
|
if (isTileWhenNested)
|
|
7590
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
7591
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
7591
|
+
return /* @__PURE__ */ jsx("div", { className: styles$j.tile, "data-testid": testId, children: content2 });
|
|
7592
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$j.nested, sizeClass === "compact" && styles$j.compact), "data-testid": testId, children: content2 });
|
|
7592
7593
|
};
|
|
7593
7594
|
const RichNodeContentSkeleton = (props) => {
|
|
7594
7595
|
const { height, testId } = props;
|
|
7595
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
7596
|
+
return /* @__PURE__ */ jsx("div", { className: styles$j.skeleton, "aria-busy": "true", "data-testid": testId, children: /* @__PURE__ */ jsx(SkeletonLine, { width: "100%", height, radius: 12 }) });
|
|
7596
7597
|
};
|
|
7597
7598
|
const RichNodeBadge = (props) => {
|
|
7598
7599
|
const { children } = props;
|
|
7599
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
7600
|
+
return /* @__PURE__ */ jsx("span", { className: styles$j.badge, children: /* @__PURE__ */ jsx(Text, { role: "caption", weight: "medium", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(children) }) });
|
|
7600
7601
|
};
|
|
7601
|
-
const actions = "agents_actions_pp5-uO";
|
|
7602
|
+
const actions$1 = "agents_actions_pp5-uO";
|
|
7602
7603
|
const codeArea = "agents_codeArea_rGS9h8";
|
|
7603
7604
|
const clipped = "agents_clipped_sJ6UtK";
|
|
7604
7605
|
const code = "agents_code_ZjGPAo";
|
|
7605
7606
|
const wrapped = "agents_wrapped_OEeVIP";
|
|
7606
7607
|
const expandRow = "agents_expandRow_z5yKIH";
|
|
7607
|
-
const styles$
|
|
7608
|
-
actions,
|
|
7608
|
+
const styles$i = {
|
|
7609
|
+
actions: actions$1,
|
|
7609
7610
|
codeArea,
|
|
7610
7611
|
clipped,
|
|
7611
7612
|
code,
|
|
@@ -7687,7 +7688,7 @@ const CodeNode = (props) => {
|
|
|
7687
7688
|
if (code2 === "") return null;
|
|
7688
7689
|
const linesWrap = isWrapped || isEmailRender;
|
|
7689
7690
|
const isClipped = isCollapsible && !isExpanded;
|
|
7690
|
-
const actions2 = isEmailRender ? void 0 : /* @__PURE__ */ jsx(ConversationWidgetActions, { children: /* @__PURE__ */ jsxs("div", { className: styles$
|
|
7691
|
+
const actions2 = isEmailRender ? void 0 : /* @__PURE__ */ jsx(ConversationWidgetActions, { children: /* @__PURE__ */ jsxs("div", { className: styles$i.actions, children: [
|
|
7691
7692
|
/* @__PURE__ */ jsx(
|
|
7692
7693
|
Button,
|
|
7693
7694
|
{
|
|
@@ -7722,8 +7723,8 @@ const CodeNode = (props) => {
|
|
|
7722
7723
|
isTileWhenNested: true,
|
|
7723
7724
|
testId,
|
|
7724
7725
|
children: [
|
|
7725
|
-
/* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
7726
|
-
isCollapsible && !isEmailRender ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
7726
|
+
/* @__PURE__ */ jsx("div", { className: classNames(styles$i.codeArea, isClipped && styles$i.clipped), children: highlighting.status === "highlighted" ? /* @__PURE__ */ jsx("pre", { className: classNames(styles$i.code, linesWrap && styles$i.wrapped), children: /* @__PURE__ */ jsx("code", { className: "hljs", dangerouslySetInnerHTML: { __html: highlighting.html } }) }) : /* @__PURE__ */ jsx("pre", { className: classNames(styles$i.code, linesWrap && styles$i.wrapped), children: /* @__PURE__ */ jsx("code", { children: code2 }) }) }),
|
|
7727
|
+
isCollapsible && !isEmailRender ? /* @__PURE__ */ jsx("div", { className: styles$i.expandRow, children: /* @__PURE__ */ jsx(
|
|
7727
7728
|
Button,
|
|
7728
7729
|
{
|
|
7729
7730
|
variant: "muted",
|
|
@@ -7901,7 +7902,7 @@ const useColorSchemeRevision = () => {
|
|
|
7901
7902
|
};
|
|
7902
7903
|
const diagramArea = "agents_diagramArea_A-7jZw";
|
|
7903
7904
|
const diagram = "agents_diagram_Ii-g0P";
|
|
7904
|
-
const styles$
|
|
7905
|
+
const styles$h = {
|
|
7905
7906
|
diagramArea,
|
|
7906
7907
|
diagram
|
|
7907
7908
|
};
|
|
@@ -7989,8 +7990,8 @@ const DiagramNode = (props) => {
|
|
|
7989
7990
|
}
|
|
7990
7991
|
}, [rendering, reportNodeStatus]);
|
|
7991
7992
|
if (rendering.status === "empty") return null;
|
|
7992
|
-
return /* @__PURE__ */ jsx(RichNodeFrame, { sizeClass, title: title2, caption: caption2, testId, children: /* @__PURE__ */ jsxs("div", { ref: themeProbeRef, className: styles$
|
|
7993
|
-
rendering.status === "rendered" ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
7993
|
+
return /* @__PURE__ */ jsx(RichNodeFrame, { sizeClass, title: title2, caption: caption2, testId, children: /* @__PURE__ */ jsxs("div", { ref: themeProbeRef, className: styles$h.diagramArea, children: [
|
|
7994
|
+
rendering.status === "rendered" ? /* @__PURE__ */ jsx("div", { className: styles$h.diagram, dangerouslySetInnerHTML: { __html: rendering.svgMarkup } }) : null,
|
|
7994
7995
|
rendering.status === "loading" ? /* @__PURE__ */ jsx(RichNodeContentSkeleton, { height: 240, testId: `${testId}-skeleton` }) : null,
|
|
7995
7996
|
rendering.status === "failed" ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", testId: `${testId}-error`, children: "This diagram could not be drawn." }) : null
|
|
7996
7997
|
] }) });
|
|
@@ -8006,7 +8007,7 @@ const inlineSkeleton$1 = "agents_inlineSkeleton_kNwonL";
|
|
|
8006
8007
|
const caption$1 = "agents_caption_chg3rA";
|
|
8007
8008
|
const failure = "agents_failure_7jkkkt";
|
|
8008
8009
|
const source = "agents_source_c6mzRv";
|
|
8009
|
-
const styles$
|
|
8010
|
+
const styles$g = {
|
|
8010
8011
|
blockFormula,
|
|
8011
8012
|
inlineFormula,
|
|
8012
8013
|
inlineSkeleton: inlineSkeleton$1,
|
|
@@ -8073,18 +8074,18 @@ const MathNode = (props) => {
|
|
|
8073
8074
|
return /* @__PURE__ */ jsx(
|
|
8074
8075
|
"span",
|
|
8075
8076
|
{
|
|
8076
|
-
className: styles$
|
|
8077
|
+
className: styles$g.inlineFormula,
|
|
8077
8078
|
"data-testid": testId,
|
|
8078
8079
|
dangerouslySetInnerHTML: { __html: rendering.html }
|
|
8079
8080
|
}
|
|
8080
8081
|
);
|
|
8081
8082
|
}
|
|
8082
8083
|
if (rendering.status === "loading") {
|
|
8083
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8084
|
+
return /* @__PURE__ */ jsx("span", { className: styles$g.inlineSkeleton, "aria-busy": "true", "data-testid": `${testId}-skeleton`, children: /* @__PURE__ */ jsx(SkeletonLine, { width: 64, height: 14, radius: 4 }) });
|
|
8084
8085
|
}
|
|
8085
|
-
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, className: styles$
|
|
8086
|
+
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, className: styles$g.source, testId: `${testId}-error`, children: escapePlainTextForText(latex) });
|
|
8086
8087
|
}
|
|
8087
|
-
const footer2 = caption2 ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, className: styles$
|
|
8088
|
+
const footer2 = caption2 ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, className: styles$g.caption, children: escapePlainTextForText(caption2) }) : void 0;
|
|
8088
8089
|
return /* @__PURE__ */ jsxs(
|
|
8089
8090
|
RichNodeFrame,
|
|
8090
8091
|
{
|
|
@@ -8094,11 +8095,11 @@ const MathNode = (props) => {
|
|
|
8094
8095
|
footer: footer2,
|
|
8095
8096
|
testId,
|
|
8096
8097
|
children: [
|
|
8097
|
-
rendering.status === "rendered" ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
8098
|
+
rendering.status === "rendered" ? /* @__PURE__ */ jsx("div", { className: styles$g.blockFormula, dangerouslySetInnerHTML: { __html: rendering.html } }) : null,
|
|
8098
8099
|
rendering.status === "loading" ? /* @__PURE__ */ jsx(RichNodeContentSkeleton, { height: 48, testId: `${testId}-skeleton` }) : null,
|
|
8099
|
-
rendering.status === "failed" ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
8100
|
+
rendering.status === "failed" ? /* @__PURE__ */ jsxs("div", { className: styles$g.failure, "data-testid": `${testId}-error`, children: [
|
|
8100
8101
|
/* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", children: "This formula could not be rendered." }),
|
|
8101
|
-
/* @__PURE__ */ jsx(Text, { role: "help", translate: false, className: styles$
|
|
8102
|
+
/* @__PURE__ */ jsx(Text, { role: "help", translate: false, className: styles$g.source, children: escapePlainTextForText(latex) })
|
|
8102
8103
|
] }) : null
|
|
8103
8104
|
]
|
|
8104
8105
|
}
|
|
@@ -8111,7 +8112,7 @@ const __vite_glob_0_39 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8111
8112
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8112
8113
|
const graphic = "agents_graphic_BJrYem";
|
|
8113
8114
|
const compactGraphic = "agents_compactGraphic_FE7Y31";
|
|
8114
|
-
const styles$
|
|
8115
|
+
const styles$f = {
|
|
8115
8116
|
graphic,
|
|
8116
8117
|
compactGraphic
|
|
8117
8118
|
};
|
|
@@ -8176,7 +8177,7 @@ const SvgNode = (props) => {
|
|
|
8176
8177
|
const graphic2 = rendering.status === "rendered" ? /* @__PURE__ */ jsx(
|
|
8177
8178
|
"div",
|
|
8178
8179
|
{
|
|
8179
|
-
className: classNames(styles$
|
|
8180
|
+
className: classNames(styles$f.graphic, sizeClass === "compact" && styles$f.compactGraphic),
|
|
8180
8181
|
dangerouslySetInnerHTML: { __html: rendering.svgMarkup }
|
|
8181
8182
|
}
|
|
8182
8183
|
) : rendering.status === "loading" ? /* @__PURE__ */ jsx(RichNodeContentSkeleton, { height: sizeClass === "compact" ? 48 : 200, testId: `${testId}-skeleton` }) : /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", testId: `${testId}-error`, children: "This graphic could not be shown." });
|
|
@@ -8188,7 +8189,7 @@ const __vite_glob_0_40 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8188
8189
|
composedViewComponent: composedViewComponent$9
|
|
8189
8190
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8190
8191
|
const badge = "agents_badge_XcUP7Z";
|
|
8191
|
-
const styles$
|
|
8192
|
+
const styles$e = {
|
|
8192
8193
|
badge
|
|
8193
8194
|
};
|
|
8194
8195
|
const STATUS_OF_TONE = {
|
|
@@ -8206,7 +8207,7 @@ const BadgeNode = (props) => {
|
|
|
8206
8207
|
useReportTextNodeRenderState(runtime, readTextNodeRenderState(isPending, content2), "Badge");
|
|
8207
8208
|
if (isPending) return /* @__PURE__ */ jsx(SkeletonPill, { width: 72, height: 20 });
|
|
8208
8209
|
if (content2.kind !== "text") return null;
|
|
8209
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8210
|
+
return /* @__PURE__ */ jsx("span", { className: styles$e.badge, "data-tone": tone, "data-testid": testId, children: /* @__PURE__ */ jsx(
|
|
8210
8211
|
StatusBadge,
|
|
8211
8212
|
{
|
|
8212
8213
|
status: STATUS_OF_TONE[tone],
|
|
@@ -8223,7 +8224,7 @@ const __vite_glob_0_41 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8223
8224
|
composedViewComponent: composedViewComponent$8
|
|
8224
8225
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8225
8226
|
const caption = "agents_caption_-l3VPi";
|
|
8226
|
-
const styles$
|
|
8227
|
+
const styles$d = {
|
|
8227
8228
|
caption
|
|
8228
8229
|
};
|
|
8229
8230
|
const CaptionNode = (props) => {
|
|
@@ -8239,7 +8240,7 @@ const CaptionNode = (props) => {
|
|
|
8239
8240
|
translate: false,
|
|
8240
8241
|
color: "--agents-fg-light",
|
|
8241
8242
|
display: sizeClass === "compact" ? "inline" : "block",
|
|
8242
|
-
className: styles$
|
|
8243
|
+
className: styles$d.caption,
|
|
8243
8244
|
testId,
|
|
8244
8245
|
children: escapePlainTextForText(content2.text)
|
|
8245
8246
|
}
|
|
@@ -8251,7 +8252,7 @@ const __vite_glob_0_42 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8251
8252
|
composedViewComponent: composedViewComponent$7
|
|
8252
8253
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8253
8254
|
const favicon = "agents_favicon_5MA-st";
|
|
8254
|
-
const styles$
|
|
8255
|
+
const styles$c = {
|
|
8255
8256
|
favicon
|
|
8256
8257
|
};
|
|
8257
8258
|
const SiteFavicon = (props) => {
|
|
@@ -8262,7 +8263,7 @@ const SiteFavicon = (props) => {
|
|
|
8262
8263
|
return /* @__PURE__ */ jsx(
|
|
8263
8264
|
"span",
|
|
8264
8265
|
{
|
|
8265
|
-
className: styles$
|
|
8266
|
+
className: styles$c.favicon,
|
|
8266
8267
|
role: accessibleName ? "img" : void 0,
|
|
8267
8268
|
"aria-label": accessibleName,
|
|
8268
8269
|
title: accessibleName,
|
|
@@ -8273,7 +8274,7 @@ const SiteFavicon = (props) => {
|
|
|
8273
8274
|
return /* @__PURE__ */ jsx(
|
|
8274
8275
|
"img",
|
|
8275
8276
|
{
|
|
8276
|
-
className: styles$
|
|
8277
|
+
className: styles$c.favicon,
|
|
8277
8278
|
src: buildFaviconUrl(hostname),
|
|
8278
8279
|
alt: accessibleName ?? "",
|
|
8279
8280
|
title: accessibleName,
|
|
@@ -8299,7 +8300,7 @@ const __vite_glob_0_43 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8299
8300
|
composedViewComponent: composedViewComponent$6
|
|
8300
8301
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8301
8302
|
const label$1 = "agents_label_g0luOD";
|
|
8302
|
-
const styles$
|
|
8303
|
+
const styles$b = {
|
|
8303
8304
|
label: label$1
|
|
8304
8305
|
};
|
|
8305
8306
|
const LabelNode = (props) => {
|
|
@@ -8315,7 +8316,7 @@ const LabelNode = (props) => {
|
|
|
8315
8316
|
weight: "medium",
|
|
8316
8317
|
translate: false,
|
|
8317
8318
|
color: "--agents-fg-light",
|
|
8318
|
-
className: styles$
|
|
8319
|
+
className: styles$b.label,
|
|
8319
8320
|
testId,
|
|
8320
8321
|
children: escapePlainTextForText(content2.text)
|
|
8321
8322
|
}
|
|
@@ -8330,7 +8331,7 @@ const link$1 = "agents_link_Vg1N4s";
|
|
|
8330
8331
|
const linkText = "agents_linkText_gM-XpZ";
|
|
8331
8332
|
const newTabIcon = "agents_newTabIcon_jQkngW";
|
|
8332
8333
|
const unlinked = "agents_unlinked_Gp2AQb";
|
|
8333
|
-
const styles$
|
|
8334
|
+
const styles$a = {
|
|
8334
8335
|
link: link$1,
|
|
8335
8336
|
linkText,
|
|
8336
8337
|
newTabIcon,
|
|
@@ -8353,11 +8354,11 @@ const LinkNode = (props) => {
|
|
|
8353
8354
|
if (isPending) return /* @__PURE__ */ jsx(SkeletonLine, { width: "8em", height: 12, radius: 4 });
|
|
8354
8355
|
if (content2.kind !== "text") return null;
|
|
8355
8356
|
if (safeUrl === null) {
|
|
8356
|
-
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, display: "inline", className: styles$
|
|
8357
|
+
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, display: "inline", className: styles$a.unlinked, testId, children: escapePlainTextForText(content2.text) });
|
|
8357
8358
|
}
|
|
8358
|
-
return /* @__PURE__ */ jsxs(AgentsLink, { className: styles$
|
|
8359
|
-
/* @__PURE__ */ jsx(Text, { role: "body", translate: false, display: "inline", className: styles$
|
|
8360
|
-
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$
|
|
8359
|
+
return /* @__PURE__ */ jsxs(AgentsLink, { className: styles$a.link, href: safeUrl, "data-testid": testId, children: [
|
|
8360
|
+
/* @__PURE__ */ jsx(Text, { role: "body", translate: false, display: "inline", className: styles$a.linkText, children: escapePlainTextForText(content2.text) }),
|
|
8361
|
+
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$a.newTabIcon, pixelSize: 14, name: "newTab" })
|
|
8361
8362
|
] });
|
|
8362
8363
|
};
|
|
8363
8364
|
const composedViewComponent$4 = { nodeType: "Link", component: LinkNode };
|
|
@@ -8369,7 +8370,7 @@ const markdown = "agents_markdown_Yoe4uR";
|
|
|
8369
8370
|
const heading = "agents_heading_xhKgq-";
|
|
8370
8371
|
const link = "agents_link_GJKyDD";
|
|
8371
8372
|
const skeleton = "agents_skeleton_bWB-zy";
|
|
8372
|
-
const styles$
|
|
8373
|
+
const styles$9 = {
|
|
8373
8374
|
markdown,
|
|
8374
8375
|
heading,
|
|
8375
8376
|
link,
|
|
@@ -8387,7 +8388,7 @@ const renderHeading = (props) => /* @__PURE__ */ jsx(
|
|
|
8387
8388
|
weight: "bold",
|
|
8388
8389
|
translate: false,
|
|
8389
8390
|
display: "block",
|
|
8390
|
-
className: styles$
|
|
8391
|
+
className: styles$9.heading,
|
|
8391
8392
|
headingLevel: 4,
|
|
8392
8393
|
children: escapePlainTextForText(readHastText(props.node))
|
|
8393
8394
|
}
|
|
@@ -8403,7 +8404,7 @@ const SAFE_MARKDOWN_COMPONENTS = {
|
|
|
8403
8404
|
a: (props) => {
|
|
8404
8405
|
const safeUrl = readSafeHttpUrl(props.href);
|
|
8405
8406
|
if (safeUrl === null) return /* @__PURE__ */ jsx("span", { children: props.children });
|
|
8406
|
-
return /* @__PURE__ */ jsx(AgentsLink, { className: styles$
|
|
8407
|
+
return /* @__PURE__ */ jsx(AgentsLink, { className: styles$9.link, href: safeUrl, children: props.children });
|
|
8407
8408
|
}
|
|
8408
8409
|
};
|
|
8409
8410
|
const MarkdownNode = (props) => {
|
|
@@ -8411,13 +8412,13 @@ const MarkdownNode = (props) => {
|
|
|
8411
8412
|
const content2 = readTextNodeContent(nodeProps.markdown);
|
|
8412
8413
|
useReportTextNodeRenderState(runtime, readTextNodeRenderState(isPending, content2), "Markdown");
|
|
8413
8414
|
if (isPending) {
|
|
8414
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
8415
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$9.skeleton, "data-testid": `${testId}-skeleton`, children: [
|
|
8415
8416
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "90%", height: 14, radius: 4 }),
|
|
8416
8417
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "70%", height: 14, radius: 4 })
|
|
8417
8418
|
] });
|
|
8418
8419
|
}
|
|
8419
8420
|
if (content2.kind !== "text") return null;
|
|
8420
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
8421
|
+
return /* @__PURE__ */ jsx("div", { className: styles$9.markdown, "data-testid": testId, children: /* @__PURE__ */ jsx(Markdown, { markdown: content2.text, translate: false, components: SAFE_MARKDOWN_COMPONENTS }) });
|
|
8421
8422
|
};
|
|
8422
8423
|
const composedViewComponent$3 = { nodeType: "Markdown", component: MarkdownNode };
|
|
8423
8424
|
const __vite_glob_0_46 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -8478,7 +8479,7 @@ const attribution = "agents_attribution_dmCMO-";
|
|
|
8478
8479
|
const attributionText = "agents_attributionText_qhOi-d";
|
|
8479
8480
|
const licenseLink = "agents_licenseLink_9iXrZ4";
|
|
8480
8481
|
const expandedList = "agents_expandedList_yrs3db";
|
|
8481
|
-
const styles$
|
|
8482
|
+
const styles$8 = {
|
|
8482
8483
|
sourceRef,
|
|
8483
8484
|
sourceList,
|
|
8484
8485
|
sourceLine,
|
|
@@ -8499,14 +8500,14 @@ const SourceChip = (props) => {
|
|
|
8499
8500
|
const { entry: entry2, isEmailRender, testId } = props;
|
|
8500
8501
|
const chipContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8501
8502
|
/* @__PURE__ */ jsx(SiteFavicon, { hostname: entry2.hostname, siteName: entry2.name, isEmailRender }),
|
|
8502
|
-
/* @__PURE__ */ jsx(Text, { role: "caption", weight: "medium", translate: false, className: styles$
|
|
8503
|
+
/* @__PURE__ */ jsx(Text, { role: "caption", weight: "medium", translate: false, className: styles$8.chipName, children: escapePlainTextForText(entry2.name) })
|
|
8503
8504
|
] });
|
|
8504
8505
|
if (entry2.url === null)
|
|
8505
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8506
|
+
return /* @__PURE__ */ jsx("span", { className: styles$8.chip, "data-testid": testId, children: chipContent });
|
|
8506
8507
|
return /* @__PURE__ */ jsx(
|
|
8507
8508
|
AgentsLink,
|
|
8508
8509
|
{
|
|
8509
|
-
className: classNames(styles$
|
|
8510
|
+
className: classNames(styles$8.chip, styles$8.linkedChip),
|
|
8510
8511
|
href: entry2.url,
|
|
8511
8512
|
title: entry2.title ?? entry2.name,
|
|
8512
8513
|
"data-testid": testId,
|
|
@@ -8521,7 +8522,7 @@ const SourceAttribution = (props) => {
|
|
|
8521
8522
|
if (entry2.author !== null) parts.push({ text: entry2.author, url: null });
|
|
8522
8523
|
if (entry2.license !== null) parts.push({ text: entry2.license, url: entry2.licenseUrl });
|
|
8523
8524
|
parts.push({ text: entry2.name, url: null });
|
|
8524
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8525
|
+
return /* @__PURE__ */ jsx("span", { className: styles$8.attribution, children: parts.map((part, partIndex) => {
|
|
8525
8526
|
const partText = /* @__PURE__ */ jsx(
|
|
8526
8527
|
Text,
|
|
8527
8528
|
{
|
|
@@ -8529,7 +8530,7 @@ const SourceAttribution = (props) => {
|
|
|
8529
8530
|
translate: false,
|
|
8530
8531
|
display: "inline",
|
|
8531
8532
|
color: "--agents-fg-light",
|
|
8532
|
-
className: styles$
|
|
8533
|
+
className: styles$8.attributionText,
|
|
8533
8534
|
children: escapePlainTextForText(part.text)
|
|
8534
8535
|
}
|
|
8535
8536
|
);
|
|
@@ -8541,30 +8542,30 @@ const SourceAttribution = (props) => {
|
|
|
8541
8542
|
translate: false,
|
|
8542
8543
|
display: "inline",
|
|
8543
8544
|
color: "--agents-fg-light",
|
|
8544
|
-
className: styles$
|
|
8545
|
+
className: styles$8.attributionText,
|
|
8545
8546
|
children: "·"
|
|
8546
8547
|
}
|
|
8547
8548
|
) : null,
|
|
8548
|
-
part.url === null ? partText : /* @__PURE__ */ jsx(AgentsLink, { className: styles$
|
|
8549
|
+
part.url === null ? partText : /* @__PURE__ */ jsx(AgentsLink, { className: styles$8.licenseLink, href: part.url, children: partText })
|
|
8549
8550
|
] }, partIndex);
|
|
8550
8551
|
}) });
|
|
8551
8552
|
};
|
|
8552
8553
|
const SourceList = (props) => {
|
|
8553
8554
|
const { entries, isEmailRender, testId } = props;
|
|
8554
8555
|
const attributedEntries = entries.filter(hasAttribution);
|
|
8555
|
-
return /* @__PURE__ */ jsxs("span", { className: styles$
|
|
8556
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
8556
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$8.sourceList, children: [
|
|
8557
|
+
/* @__PURE__ */ jsxs("span", { className: styles$8.sourceLine, children: [
|
|
8557
8558
|
/* @__PURE__ */ jsx(
|
|
8558
8559
|
Text,
|
|
8559
8560
|
{
|
|
8560
8561
|
role: "caption",
|
|
8561
8562
|
color: "--agents-fg-light",
|
|
8562
|
-
className: styles$
|
|
8563
|
+
className: styles$8.sourceLabel,
|
|
8563
8564
|
context: entries.length === 1 ? "one" : "other",
|
|
8564
8565
|
children: "Source"
|
|
8565
8566
|
}
|
|
8566
8567
|
),
|
|
8567
|
-
/* @__PURE__ */ jsx("span", { role: "list", className: styles$
|
|
8568
|
+
/* @__PURE__ */ jsx("span", { role: "list", className: styles$8.chips, children: entries.map((entry2, entryIndex) => /* @__PURE__ */ jsx("span", { role: "listitem", className: styles$8.chipItem, children: /* @__PURE__ */ jsx(SourceChip, { entry: entry2, isEmailRender, testId: `${testId}-chip-${entryIndex}` }) }, `${entryIndex}-${entry2.name}`)) })
|
|
8568
8569
|
] }),
|
|
8569
8570
|
attributedEntries.map((entry2, entryIndex) => /* @__PURE__ */ jsx(SourceAttribution, { entry: entry2 }, `${entryIndex}-${entry2.name}`))
|
|
8570
8571
|
] });
|
|
@@ -8589,19 +8590,19 @@ const SourceRefNode = (props) => {
|
|
|
8589
8590
|
if (isPending) return /* @__PURE__ */ jsx(SkeletonPill, { width: 120, height: 24 });
|
|
8590
8591
|
if (entries.length === 0) return null;
|
|
8591
8592
|
if (sizeClass !== "compact") {
|
|
8592
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8593
|
+
return /* @__PURE__ */ jsx("span", { className: styles$8.sourceRef, "data-testid": testId, children: /* @__PURE__ */ jsx(SourceList, { entries, isEmailRender, testId }) });
|
|
8593
8594
|
}
|
|
8594
8595
|
const [firstEntry] = entries;
|
|
8595
8596
|
const otherSourcesCount = entries.length - 1;
|
|
8596
8597
|
if (otherSourcesCount === 0 && !hasAttribution(firstEntry)) {
|
|
8597
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8598
|
+
return /* @__PURE__ */ jsx("span", { className: styles$8.sourceRef, "data-testid": testId, children: /* @__PURE__ */ jsx(SourceChip, { entry: firstEntry, isEmailRender, testId: `${testId}-chip-0` }) });
|
|
8598
8599
|
}
|
|
8599
|
-
return /* @__PURE__ */ jsxs("span", { className: styles$
|
|
8600
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$8.sourceRef, "data-testid": testId, children: [
|
|
8600
8601
|
/* @__PURE__ */ jsxs(
|
|
8601
8602
|
"button",
|
|
8602
8603
|
{
|
|
8603
8604
|
type: "button",
|
|
8604
|
-
className: classNames(styles$
|
|
8605
|
+
className: classNames(styles$8.chip, styles$8.toggleChip),
|
|
8605
8606
|
"aria-expanded": isExpanded,
|
|
8606
8607
|
"aria-controls": expandedListId,
|
|
8607
8608
|
disabled: isEmailRender,
|
|
@@ -8615,16 +8616,16 @@ const SourceRefNode = (props) => {
|
|
|
8615
8616
|
role: "caption",
|
|
8616
8617
|
weight: "medium",
|
|
8617
8618
|
translate: false,
|
|
8618
|
-
className: styles$
|
|
8619
|
+
className: styles$8.chipName,
|
|
8619
8620
|
children: escapePlainTextForText(firstEntry.name)
|
|
8620
8621
|
}
|
|
8621
8622
|
),
|
|
8622
|
-
otherSourcesCount > 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", translate: false, color: "--agents-fg-light", className: styles$
|
|
8623
|
+
otherSourcesCount > 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", translate: false, color: "--agents-fg-light", className: styles$8.moreCount, children: `+${otherSourcesCount}` }) : null,
|
|
8623
8624
|
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", pixelSize: 12, name: isExpanded ? "caretUp" : "caretDown" })
|
|
8624
8625
|
]
|
|
8625
8626
|
}
|
|
8626
8627
|
),
|
|
8627
|
-
isExpanded ? /* @__PURE__ */ jsx("span", { id: expandedListId, className: styles$
|
|
8628
|
+
isExpanded ? /* @__PURE__ */ jsx("span", { id: expandedListId, className: styles$8.expandedList, "data-testid": `${testId}-expanded`, children: /* @__PURE__ */ jsx(SourceList, { entries, isEmailRender, testId: `${testId}-expanded` }) }) : null
|
|
8628
8629
|
] });
|
|
8629
8630
|
};
|
|
8630
8631
|
const composedViewComponent$2 = {
|
|
@@ -8658,7 +8659,7 @@ const success = "agents_success_9Ru8-B";
|
|
|
8658
8659
|
const warning = "agents_warning_XEGEwv";
|
|
8659
8660
|
const danger = "agents_danger_KcUeUC";
|
|
8660
8661
|
const info = "agents_info_jMiFeN";
|
|
8661
|
-
const styles$
|
|
8662
|
+
const styles$7 = {
|
|
8662
8663
|
text,
|
|
8663
8664
|
paragraph,
|
|
8664
8665
|
inline,
|
|
@@ -8730,21 +8731,21 @@ const TextNode = (props) => {
|
|
|
8730
8731
|
else if (content2.kind === "missing" && childNodes.length === 0) renderState = "empty";
|
|
8731
8732
|
useReportTextNodeRenderState(runtime, renderState, "Text");
|
|
8732
8733
|
if (isPending) {
|
|
8733
|
-
return isInline ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
8734
|
+
return isInline ? /* @__PURE__ */ jsx("span", { className: styles$7.inlineSkeleton, children: /* @__PURE__ */ jsx(SkeletonLine, { width: "6em", height: 12, radius: 4 }) }) : /* @__PURE__ */ jsx(SkeletonLine, { width: "80%", height: 14, radius: 4 });
|
|
8734
8735
|
}
|
|
8735
8736
|
if (renderState !== "shown") return null;
|
|
8736
8737
|
const Wrapper = isInline ? "span" : "div";
|
|
8737
8738
|
return /* @__PURE__ */ jsxs(
|
|
8738
8739
|
Wrapper,
|
|
8739
8740
|
{
|
|
8740
|
-
className: classNames(styles$
|
|
8741
|
+
className: classNames(styles$7.text, isInline ? styles$7.inline : styles$7.paragraph, styles$7[tone]),
|
|
8741
8742
|
"data-testid": testId,
|
|
8742
8743
|
children: [
|
|
8743
8744
|
content2.kind === "text" ? /* @__PURE__ */ jsx(
|
|
8744
8745
|
"span",
|
|
8745
8746
|
{
|
|
8746
8747
|
ref: clampedRunRef,
|
|
8747
|
-
className: isClamped ? classNames(styles$
|
|
8748
|
+
className: isClamped ? classNames(styles$7.clamped, styles$7[`clampedAt${maxLines}Lines`]) : void 0,
|
|
8748
8749
|
title: isClamped ? content2.text : void 0,
|
|
8749
8750
|
children: /* @__PURE__ */ jsx(
|
|
8750
8751
|
Text,
|
|
@@ -8759,12 +8760,12 @@ const TextNode = (props) => {
|
|
|
8759
8760
|
)
|
|
8760
8761
|
}
|
|
8761
8762
|
) : null,
|
|
8762
|
-
childNodes.map((childNode, childIndex) => /* @__PURE__ */ jsx("span", { className: styles$
|
|
8763
|
+
childNodes.map((childNode, childIndex) => /* @__PURE__ */ jsx("span", { className: styles$7.inlineChild, children: childNode }, childIndex)),
|
|
8763
8764
|
isShowingClampToggle ? /* @__PURE__ */ jsx(
|
|
8764
8765
|
"button",
|
|
8765
8766
|
{
|
|
8766
8767
|
type: "button",
|
|
8767
|
-
className: styles$
|
|
8768
|
+
className: styles$7.clampToggle,
|
|
8768
8769
|
"data-testid": `${testId}-toggle`,
|
|
8769
8770
|
"aria-expanded": isExpanded,
|
|
8770
8771
|
onClick: () => setIsExpanded((wasExpanded) => !wasExpanded),
|
|
@@ -8781,7 +8782,7 @@ const __vite_glob_0_48 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8781
8782
|
composedViewComponent: composedViewComponent$1
|
|
8782
8783
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8783
8784
|
const title = "agents_title_Eod7EC";
|
|
8784
|
-
const styles$
|
|
8785
|
+
const styles$6 = {
|
|
8785
8786
|
title
|
|
8786
8787
|
};
|
|
8787
8788
|
const TITLE_LEVELS = ["widget", "section"];
|
|
@@ -8798,7 +8799,7 @@ const TitleNode = (props) => {
|
|
|
8798
8799
|
role: level === "widget" ? "intro" : "body",
|
|
8799
8800
|
weight: "bold",
|
|
8800
8801
|
translate: false,
|
|
8801
|
-
className: styles$
|
|
8802
|
+
className: styles$6.title,
|
|
8802
8803
|
testId,
|
|
8803
8804
|
headingLevel: level === "widget" ? 3 : 4,
|
|
8804
8805
|
children: escapePlainTextForText(content2.text)
|
|
@@ -8823,7 +8824,7 @@ const componentModules = /* @__PURE__ */ Object.assign({
|
|
|
8823
8824
|
"./components/embedding/WidgetNode.composed.tsx": __vite_glob_0_9$1,
|
|
8824
8825
|
"./components/entity/EntityLink.composed.tsx": __vite_glob_0_10$1,
|
|
8825
8826
|
"./components/form/Form.composed.tsx": __vite_glob_0_11$1,
|
|
8826
|
-
"./components/inputs/Button.composed.tsx": __vite_glob_0_12,
|
|
8827
|
+
"./components/inputs/Button.composed.tsx": __vite_glob_0_12$1,
|
|
8827
8828
|
"./components/inputs/Checkbox.composed.tsx": __vite_glob_0_13,
|
|
8828
8829
|
"./components/inputs/DatePicker.composed.tsx": __vite_glob_0_14,
|
|
8829
8830
|
"./components/inputs/Input.composed.tsx": __vite_glob_0_15,
|
|
@@ -8982,7 +8983,7 @@ const readComposedViewDataTimes = (tree) => {
|
|
|
8982
8983
|
};
|
|
8983
8984
|
};
|
|
8984
8985
|
const dataTimes = "agents_dataTimes_fVIkya";
|
|
8985
|
-
const styles$
|
|
8986
|
+
const styles$5 = {
|
|
8986
8987
|
dataTimes
|
|
8987
8988
|
};
|
|
8988
8989
|
const FALLBACK_DATE_LOCALE = "en-GB";
|
|
@@ -9018,11 +9019,11 @@ const ComposedViewEmailDataTimes = (props) => {
|
|
|
9018
9019
|
);
|
|
9019
9020
|
}
|
|
9020
9021
|
if (phrases.length === 0) return null;
|
|
9021
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
9022
|
+
return /* @__PURE__ */ jsx("div", { className: styles$5.dataTimes, "data-testid": "composed-view-email-data-times", children: /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: phrases.join(" · ") }) });
|
|
9022
9023
|
};
|
|
9023
|
-
const root = "agents_root_mkymge";
|
|
9024
|
-
const styles$
|
|
9025
|
-
root
|
|
9024
|
+
const root$1 = "agents_root_mkymge";
|
|
9025
|
+
const styles$4 = {
|
|
9026
|
+
root: root$1
|
|
9026
9027
|
};
|
|
9027
9028
|
const nodeReportsReducer = (nodeReports, action) => {
|
|
9028
9029
|
const current = nodeReports[action.nodePath];
|
|
@@ -9418,7 +9419,7 @@ const ComposedViewRenderer = (props) => {
|
|
|
9418
9419
|
liftedWidget.path
|
|
9419
9420
|
));
|
|
9420
9421
|
if (tree.view === null) {
|
|
9421
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
9422
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$4.root, children: [
|
|
9422
9423
|
sourceLoaders,
|
|
9423
9424
|
liftedWidgetViews.length > 0 ? liftedWidgetViews : /* @__PURE__ */ jsx(ComposedViewNothingToShow, {})
|
|
9424
9425
|
] });
|
|
@@ -9431,7 +9432,7 @@ const ComposedViewRenderer = (props) => {
|
|
|
9431
9432
|
datasetStatuses: resolvedDatasets.statusByDatasetName,
|
|
9432
9433
|
sources: sourceValues
|
|
9433
9434
|
};
|
|
9434
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
9435
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$4.root, "data-testid": testId, children: [
|
|
9435
9436
|
sourceLoaders,
|
|
9436
9437
|
tree.title ? /* @__PURE__ */ jsx(ModelText, { role: "intro", weight: "bold", children: tree.title }) : null,
|
|
9437
9438
|
lostAllItsContent ? /* @__PURE__ */ jsx(ComposedViewNothingToShow, {}) : /* @__PURE__ */ jsx(ComposedViewSlotErrorBoundary, { nodePath: "view", nodeType: tree.view.type, onRenderFailed, children: /* @__PURE__ */ jsx(
|
|
@@ -9492,16 +9493,16 @@ const ComposedViewConversationWidget = (props) => {
|
|
|
9492
9493
|
}
|
|
9493
9494
|
);
|
|
9494
9495
|
};
|
|
9495
|
-
const conversationWidgetRegistration$
|
|
9496
|
+
const conversationWidgetRegistration$c = {
|
|
9496
9497
|
name: "ComposedView",
|
|
9497
9498
|
component: ComposedViewConversationWidget,
|
|
9498
9499
|
opensCanvases: ["entityDetail", "mapFullScreen"]
|
|
9499
9500
|
};
|
|
9500
9501
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9501
9502
|
__proto__: null,
|
|
9502
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9503
|
+
conversationWidgetRegistration: conversationWidgetRegistration$c
|
|
9503
9504
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9504
|
-
const conversationWidgetRegistration$
|
|
9505
|
+
const conversationWidgetRegistration$b = {
|
|
9505
9506
|
name: "AttachedFiles",
|
|
9506
9507
|
component: AttachedFilesConversationWidget,
|
|
9507
9508
|
sentInCustomerMessage: true,
|
|
@@ -9509,23 +9510,23 @@ const conversationWidgetRegistration$a = {
|
|
|
9509
9510
|
};
|
|
9510
9511
|
const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9511
9512
|
__proto__: null,
|
|
9512
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9513
|
+
conversationWidgetRegistration: conversationWidgetRegistration$b
|
|
9513
9514
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9514
|
-
const conversationWidgetRegistration$
|
|
9515
|
+
const conversationWidgetRegistration$a = {
|
|
9515
9516
|
name: "Clock",
|
|
9516
9517
|
component: ClockConversationWidget
|
|
9517
9518
|
};
|
|
9518
9519
|
const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9519
9520
|
__proto__: null,
|
|
9520
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9521
|
+
conversationWidgetRegistration: conversationWidgetRegistration$a
|
|
9521
9522
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9522
|
-
const conversationWidgetRegistration$
|
|
9523
|
+
const conversationWidgetRegistration$9 = {
|
|
9523
9524
|
name: "ConceptExplainer",
|
|
9524
9525
|
component: ConceptExplainerConversationWidget
|
|
9525
9526
|
};
|
|
9526
9527
|
const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9527
9528
|
__proto__: null,
|
|
9528
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9529
|
+
conversationWidgetRegistration: conversationWidgetRegistration$9
|
|
9529
9530
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9530
9531
|
const CONTINUE_IN_PERSONAL_SPACE_WIDGET_TYPE = "ContinueInPersonalSpace";
|
|
9531
9532
|
const parseContinueInPersonalSpacePayload = (payload) => {
|
|
@@ -9544,11 +9545,11 @@ const parseContinueInPersonalSpacePayload = (payload) => {
|
|
|
9544
9545
|
};
|
|
9545
9546
|
const row$1 = "agents_row_3OqxgT";
|
|
9546
9547
|
const notice$1 = "agents_notice_kKGwWh";
|
|
9547
|
-
const styles$
|
|
9548
|
+
const styles$3 = {
|
|
9548
9549
|
row: row$1,
|
|
9549
9550
|
notice: notice$1
|
|
9550
9551
|
};
|
|
9551
|
-
const TEST_ID$
|
|
9552
|
+
const TEST_ID$2 = "continue-in-personal-space-widget";
|
|
9552
9553
|
const ContinueInPersonalSpaceConversationWidget = (props) => {
|
|
9553
9554
|
const { payload, interactive } = props;
|
|
9554
9555
|
const parsedPayload = useMemo(() => parseContinueInPersonalSpacePayload(payload), [payload]);
|
|
@@ -9564,10 +9565,10 @@ const ContinueInPersonalSpaceConversationWidget = (props) => {
|
|
|
9564
9565
|
if (isStarted) return;
|
|
9565
9566
|
if (startConversationInPersonalSpace(parsedPayload.request)) setIsStarted(true);
|
|
9566
9567
|
};
|
|
9567
|
-
return /* @__PURE__ */ jsx(WidgetSurface, { testId: TEST_ID$
|
|
9568
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
9568
|
+
return /* @__PURE__ */ jsx(WidgetSurface, { testId: TEST_ID$2, compact: true, children: /* @__PURE__ */ jsxs("div", { className: styles$3.row, children: [
|
|
9569
|
+
/* @__PURE__ */ jsxs("span", { className: styles$3.notice, children: [
|
|
9569
9570
|
/* @__PURE__ */ jsx(Icon, { name: "lock", size: "small" }),
|
|
9570
|
-
/* @__PURE__ */ jsx(Text, { testId: `${TEST_ID$
|
|
9571
|
+
/* @__PURE__ */ jsx(Text, { testId: `${TEST_ID$2}-notice`, children: "Only you may use this connection, and others read this conversation." })
|
|
9571
9572
|
] }),
|
|
9572
9573
|
/* @__PURE__ */ jsx(
|
|
9573
9574
|
Button,
|
|
@@ -9577,51 +9578,51 @@ const ContinueInPersonalSpaceConversationWidget = (props) => {
|
|
|
9577
9578
|
iconPosition: "right",
|
|
9578
9579
|
onClick: continueInPersonalSpace,
|
|
9579
9580
|
disabled: interactive === false || isStarted,
|
|
9580
|
-
testId: `${TEST_ID$
|
|
9581
|
+
testId: `${TEST_ID$2}-button`,
|
|
9581
9582
|
children: "Continue in your personal space"
|
|
9582
9583
|
}
|
|
9583
9584
|
)
|
|
9584
9585
|
] }) });
|
|
9585
9586
|
};
|
|
9586
|
-
const conversationWidgetRegistration$
|
|
9587
|
+
const conversationWidgetRegistration$8 = {
|
|
9587
9588
|
name: CONTINUE_IN_PERSONAL_SPACE_WIDGET_TYPE,
|
|
9588
9589
|
component: ContinueInPersonalSpaceConversationWidget
|
|
9589
9590
|
};
|
|
9590
9591
|
const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9591
9592
|
__proto__: null,
|
|
9592
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9593
|
+
conversationWidgetRegistration: conversationWidgetRegistration$8
|
|
9593
9594
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9594
|
-
const conversationWidgetRegistration$
|
|
9595
|
+
const conversationWidgetRegistration$7 = {
|
|
9595
9596
|
name: "CurrencyConverter",
|
|
9596
9597
|
component: CurrencyConverterConversationWidget
|
|
9597
9598
|
};
|
|
9598
9599
|
const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9599
9600
|
__proto__: null,
|
|
9600
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9601
|
+
conversationWidgetRegistration: conversationWidgetRegistration$7
|
|
9601
9602
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9602
|
-
const conversationWidgetRegistration$
|
|
9603
|
+
const conversationWidgetRegistration$6 = {
|
|
9603
9604
|
name: "CustomVisualization",
|
|
9604
9605
|
component: CustomVisualizationConversationWidget
|
|
9605
9606
|
};
|
|
9606
9607
|
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9607
9608
|
__proto__: null,
|
|
9608
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9609
|
+
conversationWidgetRegistration: conversationWidgetRegistration$6
|
|
9609
9610
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9610
9611
|
registerDriveFilesHydrator();
|
|
9611
|
-
const conversationWidgetRegistration$
|
|
9612
|
+
const conversationWidgetRegistration$5 = {
|
|
9612
9613
|
name: "DriveFiles",
|
|
9613
9614
|
component: DriveFilesConversationWidget
|
|
9614
9615
|
};
|
|
9615
9616
|
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9616
9617
|
__proto__: null,
|
|
9617
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9618
|
+
conversationWidgetRegistration: conversationWidgetRegistration$5
|
|
9618
9619
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9619
9620
|
const chip = "agents_chip_hRM85s";
|
|
9620
9621
|
const icon = "agents_icon_6v6GEg";
|
|
9621
9622
|
const prefix = "agents_prefix_j2j33h";
|
|
9622
9623
|
const label = "agents_label_wmbPMU";
|
|
9623
9624
|
const remove = "agents_remove_SMhLO7";
|
|
9624
|
-
const styles$
|
|
9625
|
+
const styles$2 = {
|
|
9625
9626
|
chip,
|
|
9626
9627
|
icon,
|
|
9627
9628
|
prefix,
|
|
@@ -9630,16 +9631,16 @@ const styles$1 = {
|
|
|
9630
9631
|
};
|
|
9631
9632
|
const EntityMentionChip = (props) => {
|
|
9632
9633
|
const { mention, onRemove, testId = "entity-mention-chip" } = props;
|
|
9633
|
-
return /* @__PURE__ */ jsxs("span", { className: styles$
|
|
9634
|
-
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$
|
|
9634
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$2.chip, "data-testid": testId, children: [
|
|
9635
|
+
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$2.icon, pixelSize: 14, name: "details" }),
|
|
9635
9636
|
mention.label !== null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9636
|
-
/* @__PURE__ */ jsx(Text, { className: styles$
|
|
9637
|
-
/* @__PURE__ */ jsx(ModelText, { className: styles$
|
|
9638
|
-
] }) : /* @__PURE__ */ jsx(Text, { className: styles$
|
|
9637
|
+
/* @__PURE__ */ jsx(Text, { className: styles$2.prefix, role: "help", color: "var(--agents-fg-light)", textWrap: "nowrap", children: "About:" }),
|
|
9638
|
+
/* @__PURE__ */ jsx(ModelText, { className: styles$2.label, role: "help", textWrap: "nowrap", children: mention.label })
|
|
9639
|
+
] }) : /* @__PURE__ */ jsx(Text, { className: styles$2.label, role: "help", textWrap: "nowrap", children: "About this entry" }),
|
|
9639
9640
|
onRemove && /* @__PURE__ */ jsx(
|
|
9640
9641
|
Button,
|
|
9641
9642
|
{
|
|
9642
|
-
className: styles$
|
|
9643
|
+
className: styles$2.remove,
|
|
9643
9644
|
variant: "muted",
|
|
9644
9645
|
size: "small",
|
|
9645
9646
|
icon: "close",
|
|
@@ -9656,14 +9657,14 @@ const EntityMentionComposerWidget = (props) => {
|
|
|
9656
9657
|
if (mention === null) return null;
|
|
9657
9658
|
return /* @__PURE__ */ jsx(EntityMentionChip, { mention, onRemove: remove2, testId: `${testId}-chip` });
|
|
9658
9659
|
};
|
|
9659
|
-
const conversationWidgetRegistration$
|
|
9660
|
+
const conversationWidgetRegistration$4 = {
|
|
9660
9661
|
name: "EntityMention",
|
|
9661
9662
|
component: EntityMentionConversationWidget,
|
|
9662
9663
|
composerComponent: EntityMentionComposerWidget
|
|
9663
9664
|
};
|
|
9664
9665
|
const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9665
9666
|
__proto__: null,
|
|
9666
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9667
|
+
conversationWidgetRegistration: conversationWidgetRegistration$4
|
|
9667
9668
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9668
9669
|
const EXTEND_CONNECTION_PERMISSION_WIDGET_TYPE = "ExtendConnectionPermission";
|
|
9669
9670
|
const parseExtendConnectionPermissionPayload = (payload) => {
|
|
@@ -9687,11 +9688,11 @@ const parseExtendConnectionPermissionPayload = (payload) => {
|
|
|
9687
9688
|
};
|
|
9688
9689
|
const row = "agents_row_SsalOD";
|
|
9689
9690
|
const notice = "agents_notice_C-mk81";
|
|
9690
|
-
const styles = {
|
|
9691
|
+
const styles$1 = {
|
|
9691
9692
|
row,
|
|
9692
9693
|
notice
|
|
9693
9694
|
};
|
|
9694
|
-
const TEST_ID = "extend-connection-permission-widget";
|
|
9695
|
+
const TEST_ID$1 = "extend-connection-permission-widget";
|
|
9695
9696
|
const ExtendConnectionPermissionConversationWidget = (props) => {
|
|
9696
9697
|
const { payload, interactive } = props;
|
|
9697
9698
|
const parsedPayload = useMemo(() => parseExtendConnectionPermissionPayload(payload), [payload]);
|
|
@@ -9702,10 +9703,10 @@ const ExtendConnectionPermissionConversationWidget = (props) => {
|
|
|
9702
9703
|
parsedPayload === null ? "the block names no connection, capability and level" : void 0
|
|
9703
9704
|
);
|
|
9704
9705
|
if (parsedPayload === null || !canOpen) return null;
|
|
9705
|
-
return /* @__PURE__ */ jsx(WidgetSurface, { testId: TEST_ID, compact: true, children: /* @__PURE__ */ jsxs("div", { className: styles.row, children: [
|
|
9706
|
-
/* @__PURE__ */ jsxs("span", { className: styles.notice, children: [
|
|
9706
|
+
return /* @__PURE__ */ jsx(WidgetSurface, { testId: TEST_ID$1, compact: true, children: /* @__PURE__ */ jsxs("div", { className: styles$1.row, children: [
|
|
9707
|
+
/* @__PURE__ */ jsxs("span", { className: styles$1.notice, children: [
|
|
9707
9708
|
/* @__PURE__ */ jsx(Icon, { name: "lockOpen", size: "small" }),
|
|
9708
|
-
/* @__PURE__ */ jsx(Text, { testId: `${TEST_ID}-notice`, children: "This step needs a permission the connection does not have yet." })
|
|
9709
|
+
/* @__PURE__ */ jsx(Text, { testId: `${TEST_ID$1}-notice`, children: "This step needs a permission the connection does not have yet." })
|
|
9709
9710
|
] }),
|
|
9710
9711
|
/* @__PURE__ */ jsx(
|
|
9711
9712
|
Button,
|
|
@@ -9715,26 +9716,226 @@ const ExtendConnectionPermissionConversationWidget = (props) => {
|
|
|
9715
9716
|
icon: "settings",
|
|
9716
9717
|
onClick: () => openConnectionPermissions(parsedPayload.target),
|
|
9717
9718
|
disabled: interactive === false,
|
|
9718
|
-
testId: `${TEST_ID}-button`,
|
|
9719
|
+
testId: `${TEST_ID$1}-button`,
|
|
9719
9720
|
children: "Extend the permission"
|
|
9720
9721
|
}
|
|
9721
9722
|
)
|
|
9722
9723
|
] }) });
|
|
9723
9724
|
};
|
|
9724
|
-
const conversationWidgetRegistration$
|
|
9725
|
+
const conversationWidgetRegistration$3 = {
|
|
9725
9726
|
name: EXTEND_CONNECTION_PERMISSION_WIDGET_TYPE,
|
|
9726
9727
|
component: ExtendConnectionPermissionConversationWidget
|
|
9727
9728
|
};
|
|
9728
9729
|
const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9729
9730
|
__proto__: null,
|
|
9730
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9731
|
+
conversationWidgetRegistration: conversationWidgetRegistration$3
|
|
9731
9732
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9732
|
-
const conversationWidgetRegistration$
|
|
9733
|
+
const conversationWidgetRegistration$2 = {
|
|
9733
9734
|
name: "ImageGallery",
|
|
9734
9735
|
component: ImageGalleryConversationWidget,
|
|
9735
9736
|
opensCanvases: [IMAGE_GALLERY_CANVAS_ID]
|
|
9736
9737
|
};
|
|
9737
9738
|
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9739
|
+
__proto__: null,
|
|
9740
|
+
conversationWidgetRegistration: conversationWidgetRegistration$2
|
|
9741
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
9742
|
+
const MAIL_DRAFT_PREVIEW_WIDGET_TYPE = "MailDraftPreview";
|
|
9743
|
+
const readText = (value2) => typeof value2 === "string" ? value2 : "";
|
|
9744
|
+
const readAddresses = (value2) => Array.isArray(value2) ? value2.filter((address) => typeof address === "string").map((address) => address.trim()).filter((address) => address !== "") : [];
|
|
9745
|
+
const readConnectionId = (value2) => {
|
|
9746
|
+
const connectionId = typeof value2 === "number" ? value2 : Number(value2);
|
|
9747
|
+
return Number.isInteger(connectionId) && connectionId > 0 ? connectionId : null;
|
|
9748
|
+
};
|
|
9749
|
+
const readMailDraftPreviewFields = (fields2) => {
|
|
9750
|
+
const to = readAddresses(fields2.to);
|
|
9751
|
+
if (to.length === 0) return null;
|
|
9752
|
+
return {
|
|
9753
|
+
status: fields2.status === "SENT" ? "SENT" : "DRAFT",
|
|
9754
|
+
connectionId: readConnectionId(fields2.connectionId),
|
|
9755
|
+
from: readText(fields2.from).trim(),
|
|
9756
|
+
to,
|
|
9757
|
+
cc: readAddresses(fields2.cc),
|
|
9758
|
+
bcc: readAddresses(fields2.bcc),
|
|
9759
|
+
subject: readText(fields2.subject),
|
|
9760
|
+
bodyText: readText(fields2.bodyText),
|
|
9761
|
+
contentHash: readText(fields2.contentHash)
|
|
9762
|
+
};
|
|
9763
|
+
};
|
|
9764
|
+
const parseMailDraftPreviewPayload = (payload) => {
|
|
9765
|
+
if (typeof payload !== "string") return null;
|
|
9766
|
+
let parsed;
|
|
9767
|
+
try {
|
|
9768
|
+
parsed = JSON.parse(payload);
|
|
9769
|
+
} catch {
|
|
9770
|
+
return null;
|
|
9771
|
+
}
|
|
9772
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
9773
|
+
return readMailDraftPreviewFields(parsed);
|
|
9774
|
+
};
|
|
9775
|
+
const WIDGET_FENCE_GLOBAL = new RegExp(`\`\`\`[ \\t]*${WIDGET_FENCE_LANG}[ \\t]*\\n([\\s\\S]*?)\\n[ \\t]*\`\`\``, "g");
|
|
9776
|
+
const isSentMailDraftPreviewOf = (messageText, contentHash) => {
|
|
9777
|
+
if (typeof messageText !== "string" || contentHash === "" || !messageText.includes(MAIL_DRAFT_PREVIEW_WIDGET_TYPE)) {
|
|
9778
|
+
return false;
|
|
9779
|
+
}
|
|
9780
|
+
for (const fenceMatch of messageText.matchAll(WIDGET_FENCE_GLOBAL)) {
|
|
9781
|
+
const fields2 = parseWidgetJsonObject(fenceMatch[1]);
|
|
9782
|
+
if (fields2 !== void 0 && fields2.type === MAIL_DRAFT_PREVIEW_WIDGET_TYPE && fields2.status === "SENT" && fields2.contentHash === contentHash) {
|
|
9783
|
+
return true;
|
|
9784
|
+
}
|
|
9785
|
+
}
|
|
9786
|
+
return false;
|
|
9787
|
+
};
|
|
9788
|
+
const root = "agents_root_KKERY6";
|
|
9789
|
+
const header = "agents_header_EV1xj0";
|
|
9790
|
+
const fields = "agents_fields_qoX-e2";
|
|
9791
|
+
const field = "agents_field_6CVNp-";
|
|
9792
|
+
const fieldValue = "agents_fieldValue_06PTqf";
|
|
9793
|
+
const sentChip = "agents_sentChip_zbIAax";
|
|
9794
|
+
const bodySection = "agents_bodySection_A4vdWK";
|
|
9795
|
+
const body = "agents_body_kktg8k";
|
|
9796
|
+
const bodyFolded = "agents_bodyFolded_2qvJSw";
|
|
9797
|
+
const foldToggle = "agents_foldToggle_oeM0KI";
|
|
9798
|
+
const actions = "agents_actions_FU-EZk";
|
|
9799
|
+
const styles = {
|
|
9800
|
+
root,
|
|
9801
|
+
header,
|
|
9802
|
+
fields,
|
|
9803
|
+
field,
|
|
9804
|
+
fieldValue,
|
|
9805
|
+
sentChip,
|
|
9806
|
+
bodySection,
|
|
9807
|
+
body,
|
|
9808
|
+
bodyFolded,
|
|
9809
|
+
foldToggle,
|
|
9810
|
+
actions
|
|
9811
|
+
};
|
|
9812
|
+
const TEST_ID = "mail-draft-preview-widget";
|
|
9813
|
+
const BODY_FOLD_HEIGHT_PX = 240;
|
|
9814
|
+
const BODY_FOLD_TOLERANCE_PX = 24;
|
|
9815
|
+
const useIsBodyFoldable = (bodyText) => {
|
|
9816
|
+
const bodyRef = useRef(null);
|
|
9817
|
+
const [isFoldable, setIsFoldable] = useState(false);
|
|
9818
|
+
useEffect(() => {
|
|
9819
|
+
const body2 = bodyRef.current;
|
|
9820
|
+
if (bodyText === null || !body2) {
|
|
9821
|
+
setIsFoldable(false);
|
|
9822
|
+
return void 0;
|
|
9823
|
+
}
|
|
9824
|
+
const measureBody = () => setIsFoldable(body2.scrollHeight > BODY_FOLD_HEIGHT_PX + BODY_FOLD_TOLERANCE_PX);
|
|
9825
|
+
measureBody();
|
|
9826
|
+
if (typeof ResizeObserver === "undefined") return void 0;
|
|
9827
|
+
const resizeObserver = new ResizeObserver(measureBody);
|
|
9828
|
+
resizeObserver.observe(body2);
|
|
9829
|
+
return () => resizeObserver.disconnect();
|
|
9830
|
+
}, [bodyText]);
|
|
9831
|
+
return { bodyRef, isFoldable };
|
|
9832
|
+
};
|
|
9833
|
+
const MailDraftPreviewConversationWidget = (props) => {
|
|
9834
|
+
const { payload, interactive = false, messageId } = props;
|
|
9835
|
+
const { sendMessageToChat, messages } = useConversationWidgetContext();
|
|
9836
|
+
const texts = useAgentsTexts();
|
|
9837
|
+
const isEmailRender = useIsEmailWidgetRender();
|
|
9838
|
+
const parsedPayload = useMemo(() => parseMailDraftPreviewPayload(payload), [payload]);
|
|
9839
|
+
const [isSending, setIsSending] = useState(false);
|
|
9840
|
+
const [isSendAccepted, setIsSendAccepted] = useState(false);
|
|
9841
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
9842
|
+
const isSendingRef = useRef(false);
|
|
9843
|
+
const { bodyRef, isFoldable } = useIsBodyFoldable(parsedPayload === null ? null : parsedPayload.bodyText);
|
|
9844
|
+
const laterMessages = useMemo(() => {
|
|
9845
|
+
if (!messages || messageId === void 0) return [];
|
|
9846
|
+
const hostIndex = messages.findIndex((message) => String(message.id) === String(messageId));
|
|
9847
|
+
return hostIndex === -1 ? [] : messages.slice(hostIndex + 1);
|
|
9848
|
+
}, [messages, messageId]);
|
|
9849
|
+
const contentHash = parsedPayload === null ? "" : parsedPayload.contentHash;
|
|
9850
|
+
const isFollowedBySent = useMemo(
|
|
9851
|
+
() => laterMessages.some((message) => isSentMailDraftPreviewOf(message.message, contentHash)),
|
|
9852
|
+
[laterMessages, contentHash]
|
|
9853
|
+
);
|
|
9854
|
+
const isAnswered = laterMessages.some((message) => message.role === "USER");
|
|
9855
|
+
useReportWidgetRenderStatus(
|
|
9856
|
+
parsedPayload === null ? "failed" : "mounted",
|
|
9857
|
+
parsedPayload === null ? "INVALID_PROP" : void 0,
|
|
9858
|
+
parsedPayload === null ? "the block names no recipient" : void 0
|
|
9859
|
+
);
|
|
9860
|
+
if (parsedPayload === null) return null;
|
|
9861
|
+
const { status, from, to, cc, bcc, subject, bodyText } = parsedPayload;
|
|
9862
|
+
const isDraft = status === "DRAFT";
|
|
9863
|
+
const isSendBusy = isSending || isSendAccepted;
|
|
9864
|
+
const showsSendButton = isDraft && !isEmailRender && !isFollowedBySent && (isSendAccepted || interactive && !isAnswered);
|
|
9865
|
+
const isFolded = isFoldable && !isExpanded && !isEmailRender;
|
|
9866
|
+
const send = async () => {
|
|
9867
|
+
if (isSendingRef.current || isSendAccepted) return;
|
|
9868
|
+
isSendingRef.current = true;
|
|
9869
|
+
setIsSending(true);
|
|
9870
|
+
try {
|
|
9871
|
+
const result = await sendMessageToChat(texts.translate("Send"));
|
|
9872
|
+
if (result !== false) setIsSendAccepted(true);
|
|
9873
|
+
} catch {
|
|
9874
|
+
setIsSendAccepted(false);
|
|
9875
|
+
} finally {
|
|
9876
|
+
isSendingRef.current = false;
|
|
9877
|
+
setIsSending(false);
|
|
9878
|
+
}
|
|
9879
|
+
};
|
|
9880
|
+
const renderField = (label2, value2, testId) => /* @__PURE__ */ jsxs("div", { className: styles.field, "data-testid": testId, children: [
|
|
9881
|
+
/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", children: label2 }) }),
|
|
9882
|
+
/* @__PURE__ */ jsx("dd", { className: styles.fieldValue, children: /* @__PURE__ */ jsx(ModelText, { role: "help", weight: "medium", children: value2 }) })
|
|
9883
|
+
] });
|
|
9884
|
+
return /* @__PURE__ */ jsx(WidgetSurface, { testId: TEST_ID, children: /* @__PURE__ */ jsxs("div", { className: styles.root, "data-status": status, children: [
|
|
9885
|
+
/* @__PURE__ */ jsxs("div", { className: styles.header, children: [
|
|
9886
|
+
/* @__PURE__ */ jsxs("dl", { className: styles.fields, children: [
|
|
9887
|
+
from !== "" ? renderField(textKey("From"), from, `${TEST_ID}-from`) : null,
|
|
9888
|
+
renderField(textKey("To"), to.join(", "), `${TEST_ID}-to`),
|
|
9889
|
+
cc.length > 0 ? renderField(textKey("Cc"), cc.join(", "), `${TEST_ID}-cc`) : null,
|
|
9890
|
+
bcc.length > 0 ? renderField(textKey("Bcc"), bcc.join(", "), `${TEST_ID}-bcc`) : null,
|
|
9891
|
+
subject !== "" ? renderField(textKey("Subject"), subject, `${TEST_ID}-subject`) : null
|
|
9892
|
+
] }),
|
|
9893
|
+
isDraft ? null : /* @__PURE__ */ jsx("span", { className: styles.sentChip, "data-testid": `${TEST_ID}-sent`, children: /* @__PURE__ */ jsx(WidgetStatusChip, { tone: "success", children: textKey("Sent") }) })
|
|
9894
|
+
] }),
|
|
9895
|
+
bodyText.trim() !== "" ? /* @__PURE__ */ jsxs("div", { className: styles.bodySection, children: [
|
|
9896
|
+
/* @__PURE__ */ jsx(
|
|
9897
|
+
"div",
|
|
9898
|
+
{
|
|
9899
|
+
ref: bodyRef,
|
|
9900
|
+
className: classNames(styles.body, isFolded && styles.bodyFolded),
|
|
9901
|
+
style: isFolded ? { maxHeight: BODY_FOLD_HEIGHT_PX } : void 0,
|
|
9902
|
+
"data-testid": `${TEST_ID}-body`,
|
|
9903
|
+
children: /* @__PURE__ */ jsx(Markdown, { markdown: bodyText, translate: false })
|
|
9904
|
+
}
|
|
9905
|
+
),
|
|
9906
|
+
isFoldable && !isEmailRender ? /* @__PURE__ */ jsx(
|
|
9907
|
+
"button",
|
|
9908
|
+
{
|
|
9909
|
+
type: "button",
|
|
9910
|
+
className: styles.foldToggle,
|
|
9911
|
+
"aria-expanded": isExpanded,
|
|
9912
|
+
onClick: () => setIsExpanded((wasExpanded) => !wasExpanded),
|
|
9913
|
+
"data-testid": `${TEST_ID}-fold-toggle`,
|
|
9914
|
+
children: /* @__PURE__ */ jsx(Text, { role: "caption", weight: "medium", color: "var(--agents-fg-light)", children: isExpanded ? "Show less" : "Show more" })
|
|
9915
|
+
}
|
|
9916
|
+
) : null
|
|
9917
|
+
] }) : null,
|
|
9918
|
+
showsSendButton ? /* @__PURE__ */ jsx("div", { className: styles.actions, children: /* @__PURE__ */ jsx(
|
|
9919
|
+
Button,
|
|
9920
|
+
{
|
|
9921
|
+
size: "small",
|
|
9922
|
+
variant: "primary",
|
|
9923
|
+
icon: "arrowRight",
|
|
9924
|
+
iconPosition: "right",
|
|
9925
|
+
onClick: send,
|
|
9926
|
+
disabled: isSendBusy,
|
|
9927
|
+
isLoading: isSending,
|
|
9928
|
+
testId: `${TEST_ID}-send`,
|
|
9929
|
+
children: isSendBusy ? "Sending…" : "Send"
|
|
9930
|
+
}
|
|
9931
|
+
) }) : null
|
|
9932
|
+
] }) });
|
|
9933
|
+
};
|
|
9934
|
+
const conversationWidgetRegistration$1 = {
|
|
9935
|
+
name: MAIL_DRAFT_PREVIEW_WIDGET_TYPE,
|
|
9936
|
+
component: MailDraftPreviewConversationWidget
|
|
9937
|
+
};
|
|
9938
|
+
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9738
9939
|
__proto__: null,
|
|
9739
9940
|
conversationWidgetRegistration: conversationWidgetRegistration$1
|
|
9740
9941
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9742,7 +9943,7 @@ const conversationWidgetRegistration = {
|
|
|
9742
9943
|
name: "WritingDraft",
|
|
9743
9944
|
component: WritingDraftConversationWidget
|
|
9744
9945
|
};
|
|
9745
|
-
const
|
|
9946
|
+
const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9746
9947
|
__proto__: null,
|
|
9747
9948
|
conversationWidgetRegistration
|
|
9748
9949
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9758,7 +9959,8 @@ const widgetRegistrationModules = /* @__PURE__ */ Object.assign({
|
|
|
9758
9959
|
"../widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.widget-registration.ts": __vite_glob_0_8,
|
|
9759
9960
|
"../widgets/ExtendConnectionPermissionConversationWidget/ExtendConnectionPermissionConversationWidget.widget-registration.ts": __vite_glob_0_9,
|
|
9760
9961
|
"../widgets/ImageGalleryConversationWidget/ImageGalleryConversationWidget.widget-registration.ts": __vite_glob_0_10,
|
|
9761
|
-
"../widgets/
|
|
9962
|
+
"../widgets/MailDraftPreviewConversationWidget/MailDraftPreviewConversationWidget.widget-registration.ts": __vite_glob_0_11,
|
|
9963
|
+
"../widgets/WritingDraftConversationWidget/WritingDraftConversationWidget.widget-registration.ts": __vite_glob_0_12
|
|
9762
9964
|
});
|
|
9763
9965
|
const readConversationWidgetRegistrations = (registrationModules) => Object.values(registrationModules).map((registrationModule) => registrationModule.conversationWidgetRegistration).filter((entry2) => entry2 !== void 0);
|
|
9764
9966
|
const readFolderRegisteredConversationWidgets = () => readConversationWidgetRegistrations(widgetRegistrationModules);
|
|
@@ -9915,4 +10117,4 @@ export {
|
|
|
9915
10117
|
getConversationWidgetRegistryRevision as y,
|
|
9916
10118
|
readComposedViewTree as z
|
|
9917
10119
|
};
|
|
9918
|
-
//# sourceMappingURL=widget-name-resolver-
|
|
10120
|
+
//# sourceMappingURL=widget-name-resolver-Bf7_3DKd.js.map
|