@mgamadeus/ddd-agents 0.10.7 → 0.11.0
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 +10 -10
- package/dist/chunks/{ConversationMarkdown-DffEK45O.js → ConversationMarkdown-C3SKd3i-.js} +4 -4
- package/dist/chunks/{ConversationMarkdown-DffEK45O.js.map → ConversationMarkdown-C3SKd3i-.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-D8fV62WH.js → ConversationMessageInputComposerWidgets-D7x-TFKG.js} +6 -6
- package/dist/chunks/{ConversationMessageInputComposerWidgets-D8fV62WH.js.map → ConversationMessageInputComposerWidgets-D7x-TFKG.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-7IYmM3LB.js → VoiceBarsIcon-CNIPOLtV.js} +4 -4
- package/dist/chunks/{VoiceBarsIcon-7IYmM3LB.js.map → VoiceBarsIcon-CNIPOLtV.js.map} +1 -1
- package/dist/chunks/{WebSearchResultsConversationWidget-D0cAmxr9.js → WebSearchResultsConversationWidget-CUtKAdMM.js} +2 -2
- package/dist/chunks/{WebSearchResultsConversationWidget-D0cAmxr9.js.map → WebSearchResultsConversationWidget-CUtKAdMM.js.map} +1 -1
- package/dist/chunks/{browser-request-interception-BnzFbH0m.js → browser-request-interception-ydNOzeUL.js} +2 -2
- package/dist/chunks/{browser-request-interception-BnzFbH0m.js.map → browser-request-interception-ydNOzeUL.js.map} +1 -1
- package/dist/chunks/{canvas-reducers-BQH8YFBp.js → canvas-reducers-CAtcbD4i.js} +2 -2
- package/dist/chunks/{canvas-reducers-BQH8YFBp.js.map → canvas-reducers-CAtcbD4i.js.map} +1 -1
- package/dist/chunks/{canvas-title-slot-context-CDNCeH2y.js → canvas-title-slot-context-rl94V4u4.js} +3 -3
- package/dist/chunks/{canvas-title-slot-context-CDNCeH2y.js.map → canvas-title-slot-context-rl94V4u4.js.map} +1 -1
- package/dist/chunks/{canvasBodies-By51Uxm-.js → canvasBodies-C3wydcKZ.js} +4 -4
- package/dist/chunks/{canvasBodies-By51Uxm-.js.map → canvasBodies-C3wydcKZ.js.map} +1 -1
- package/dist/chunks/{canvasStorage-Df_FW92q.js → canvasStorage-D9EnBraV.js} +2 -2
- package/dist/chunks/{canvasStorage-Df_FW92q.js.map → canvasStorage-D9EnBraV.js.map} +1 -1
- package/dist/chunks/{link-navigation-BUcy5qWW.js → link-navigation-DRHt6g7U.js} +17 -1
- package/dist/chunks/link-navigation-DRHt6g7U.js.map +1 -0
- package/dist/chunks/{widget-name-resolver-CSX7ZbfO.js → widget-name-resolver-akTPWt63.js} +514 -384
- package/dist/chunks/widget-name-resolver-akTPWt63.js.map +1 -0
- package/dist/client-testing.js +4 -4
- package/dist/files/i18n-keys.json +36 -0
- package/dist/files/renderer/widget-tree/composed-node-schema.json +2 -0
- package/dist/image-render.js +7 -7
- package/dist/index.js +6 -6
- package/dist/kit.js +2 -2
- package/dist/preview.js +7 -7
- package/dist/provider.js +1 -1
- package/dist/renderer.js +10 -10
- package/dist/styles.css +28 -0
- package/dist/types/provider/environment.d.ts +30 -0
- package/dist/types/provider/index.d.ts +1 -1
- package/dist/voice.js +2 -2
- package/dist/widgets.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/link-navigation-BUcy5qWW.js.map +0 -1
- package/dist/chunks/widget-name-resolver-CSX7ZbfO.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
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, aF as SkeletonLine, aN as WidgetSurface, aL as WidgetKpiValue, Z as readWidgetAgentSpaceKeyAttribute, W as WidgetRenderReportContext, A as buildWidgetAgentSpaceKeyProps, bz as readTextNodeContent, bA as readAllowedValue, a1 as useConversationWidgetContext, M as ModelText, au as DonePill, bx as ConversationWidgetButton, a0 as shortStringHash, a7 as WidgetImageReadinessContext, V as messageAnchor, v as ConversationWidgetActions, bB as useReportTextNodeRenderState, bC as readTextNodeRenderState, aG as SkeletonPill, bD as buildFaviconUrl, bE as readSiteHostname, aE as SkeletonCircle, bF as readSafeHttpUrl, a4 as useWidgetHydration, a2 as useIsEmailWidgetRender, a3 as useReportWidgetRenderStatus, af as AttachedFilesConversationWidget, am as ClockConversationWidget, an as ConceptExplainerConversationWidget, ap as CurrencyConverterConversationWidget, aq as CustomVisualizationConversationWidget, av as DriveFilesConversationWidget, bG as registerDriveFilesHydrator, bt as normalizeEntityMentionFields, ax as EntityMentionConversationWidget, bH as IMAGE_GALLERY_CANVAS_ID, aB as ImageGalleryConversationWidget, aP as WritingDraftConversationWidget, aI as SuggestedActions, aC as MultiChoiceConversationWidget, aD as QuickRepliesConversationWidget, aJ as ToolTraceConversationWidget, ao as ConversationSearchResultsConversationWidget, aK as WebSearchResultsConversationWidget } from "./WebSearchResultsConversationWidget-
|
|
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 } from "./link-navigation-
|
|
4
|
+
import { h as registerWidgetHydrator, aF as SkeletonLine, aN as WidgetSurface, aL as WidgetKpiValue, Z as readWidgetAgentSpaceKeyAttribute, W as WidgetRenderReportContext, A as buildWidgetAgentSpaceKeyProps, bz as readTextNodeContent, bA as readAllowedValue, a1 as useConversationWidgetContext, M as ModelText, au as DonePill, bx as ConversationWidgetButton, a0 as shortStringHash, a7 as WidgetImageReadinessContext, V as messageAnchor, v as ConversationWidgetActions, bB as useReportTextNodeRenderState, bC as readTextNodeRenderState, aG as SkeletonPill, bD as buildFaviconUrl, bE as readSiteHostname, aE as SkeletonCircle, bF as readSafeHttpUrl, a4 as useWidgetHydration, a2 as useIsEmailWidgetRender, a3 as useReportWidgetRenderStatus, af as AttachedFilesConversationWidget, am as ClockConversationWidget, an as ConceptExplainerConversationWidget, ap as CurrencyConverterConversationWidget, aq as CustomVisualizationConversationWidget, av as DriveFilesConversationWidget, bG as registerDriveFilesHydrator, bt as normalizeEntityMentionFields, ax as EntityMentionConversationWidget, bH as IMAGE_GALLERY_CANVAS_ID, aB as ImageGalleryConversationWidget, aP as WritingDraftConversationWidget, aI as SuggestedActions, aC as MultiChoiceConversationWidget, aD as QuickRepliesConversationWidget, aJ as ToolTraceConversationWidget, ao as ConversationSearchResultsConversationWidget, aK as WebSearchResultsConversationWidget } from "./WebSearchResultsConversationWidget-CUtKAdMM.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 } 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";
|
|
@@ -59,7 +59,7 @@ const findingCodes = ["INVALID_NODE", "INVALID_PROP", "UNKNOWN_BINDING", "INVALI
|
|
|
59
59
|
const noteFindingCodes = ["INLINE_VALUE_WITHOUT_SOURCE", "INVALID_INITIAL_CHOICE", "UNREAD_STATE", "UNKNOWN_ITEM_KEY", "INVALID_SLOT_NODE_COUNT", "WIDGET_LIFTED"];
|
|
60
60
|
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
61
|
const embeddableWidgets = { "CustomVisualization": { "sizeClass": "full" } };
|
|
62
|
-
const widgetTypes = ["AttachedFiles", "ComposedView", "ConversationSearchResults", "CustomVisualization", "DriveFiles", "EntityMention", "ImageGallery", "MultiChoice", "QuickReplies", "SuggestedActions", "ToolTrace", "WebSearchResults"];
|
|
62
|
+
const widgetTypes = ["AttachedFiles", "ComposedView", "ContinueInPersonalSpace", "ConversationSearchResults", "CustomVisualization", "DriveFiles", "EntityMention", "ExtendConnectionPermission", "ImageGallery", "MultiChoice", "QuickReplies", "SuggestedActions", "ToolTrace", "WebSearchResults"];
|
|
63
63
|
const dataSources = {};
|
|
64
64
|
const entityTypes = [];
|
|
65
65
|
const generatedComposedNodeSchema = {
|
|
@@ -2642,7 +2642,7 @@ const textSuccess = "agents_textSuccess_-CDriP";
|
|
|
2642
2642
|
const textWarning = "agents_textWarning_77r5Zc";
|
|
2643
2643
|
const textDanger = "agents_textDanger_-erzvV";
|
|
2644
2644
|
const textInfo = "agents_textInfo_ZVSKa-";
|
|
2645
|
-
const styles$
|
|
2645
|
+
const styles$R = {
|
|
2646
2646
|
textNeutral,
|
|
2647
2647
|
textMuted,
|
|
2648
2648
|
textSuccess,
|
|
@@ -2651,12 +2651,12 @@ const styles$P = {
|
|
|
2651
2651
|
textInfo
|
|
2652
2652
|
};
|
|
2653
2653
|
const TONE_TEXT_CLASS = {
|
|
2654
|
-
neutral: styles$
|
|
2655
|
-
muted: styles$
|
|
2656
|
-
success: styles$
|
|
2657
|
-
warning: styles$
|
|
2658
|
-
danger: styles$
|
|
2659
|
-
info: styles$
|
|
2654
|
+
neutral: styles$R.textNeutral,
|
|
2655
|
+
muted: styles$R.textMuted,
|
|
2656
|
+
success: styles$R.textSuccess,
|
|
2657
|
+
warning: styles$R.textWarning,
|
|
2658
|
+
danger: styles$R.textDanger,
|
|
2659
|
+
info: styles$R.textInfo
|
|
2660
2660
|
};
|
|
2661
2661
|
const TONE_GRAPHIC_COLOR = COMPOSED_VIEW_TONE_GRAPHIC_COLOR;
|
|
2662
2662
|
const TONE_TEXT_COLOR = COMPOSED_VIEW_TONE_TEXT_COLOR;
|
|
@@ -2669,7 +2669,7 @@ const value$2 = "agents_value_2Tk6gt";
|
|
|
2669
2669
|
const delta$1 = "agents_delta_Khlvom";
|
|
2670
2670
|
const labelText = "agents_labelText_-JNOOt";
|
|
2671
2671
|
const figure$1 = "agents_figure_UKZnlr";
|
|
2672
|
-
const styles$
|
|
2672
|
+
const styles$Q = {
|
|
2673
2673
|
rows,
|
|
2674
2674
|
row: row$2,
|
|
2675
2675
|
label: label$4,
|
|
@@ -2683,39 +2683,39 @@ const styles$O = {
|
|
|
2683
2683
|
const ChartBarRows = (props) => {
|
|
2684
2684
|
const { model, accessibleLabel, testId } = props;
|
|
2685
2685
|
const hasDeltas = model.rows.some((row2) => row2.deltaText !== void 0);
|
|
2686
|
-
return /* @__PURE__ */ jsx("table", { className: styles$
|
|
2686
|
+
return /* @__PURE__ */ jsx("table", { className: styles$Q.rows, "aria-label": accessibleLabel, "data-testid": testId, children: /* @__PURE__ */ jsx("tbody", { children: model.rows.map((row2, rowIndex) => /* @__PURE__ */ jsxs(
|
|
2687
2687
|
"tr",
|
|
2688
2688
|
{
|
|
2689
|
-
className: styles$
|
|
2689
|
+
className: styles$Q.row,
|
|
2690
2690
|
"data-testid": testId ? `${testId}-row-${rowIndex}` : void 0,
|
|
2691
2691
|
children: [
|
|
2692
|
-
/* @__PURE__ */ jsx("th", { scope: "row", className: styles$
|
|
2693
|
-
/* @__PURE__ */ jsx("td", { className: styles$
|
|
2692
|
+
/* @__PURE__ */ jsx("th", { scope: "row", className: styles$Q.label, children: /* @__PURE__ */ jsx(Text, { role: "help", className: styles$Q.labelText, translate: false, children: escapePlainTextForText(row2.label) }) }),
|
|
2693
|
+
/* @__PURE__ */ jsx("td", { className: styles$Q.track, "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
2694
2694
|
"span",
|
|
2695
2695
|
{
|
|
2696
|
-
className: styles$
|
|
2696
|
+
className: styles$Q.bar,
|
|
2697
2697
|
style: {
|
|
2698
2698
|
"--agents-chart-bar-fraction": `${Math.round(row2.fraction * 1e3) / 10}%`,
|
|
2699
2699
|
"--agents-chart-bar-color": `var(${row2.colorToken})`
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
) }),
|
|
2703
|
-
/* @__PURE__ */ jsx("td", { className: styles$
|
|
2703
|
+
/* @__PURE__ */ jsx("td", { className: styles$Q.value, children: /* @__PURE__ */ jsx(
|
|
2704
2704
|
Text,
|
|
2705
2705
|
{
|
|
2706
2706
|
role: "help",
|
|
2707
2707
|
weight: "medium",
|
|
2708
|
-
className: styles$
|
|
2708
|
+
className: styles$Q.figure,
|
|
2709
2709
|
translate: false,
|
|
2710
2710
|
children: escapePlainTextForText(row2.valueText)
|
|
2711
2711
|
}
|
|
2712
2712
|
) }),
|
|
2713
|
-
hasDeltas ? /* @__PURE__ */ jsx("td", { className: styles$
|
|
2713
|
+
hasDeltas ? /* @__PURE__ */ jsx("td", { className: styles$Q.delta, children: row2.deltaText !== void 0 ? /* @__PURE__ */ jsx(
|
|
2714
2714
|
Text,
|
|
2715
2715
|
{
|
|
2716
2716
|
role: "help",
|
|
2717
2717
|
color: TONE_TEXT_COLOR[row2.deltaTone],
|
|
2718
|
-
className: styles$
|
|
2718
|
+
className: styles$Q.figure,
|
|
2719
2719
|
translate: false,
|
|
2720
2720
|
children: escapePlainTextForText(row2.deltaText)
|
|
2721
2721
|
}
|
|
@@ -2733,7 +2733,7 @@ const figure = "agents_figure_YQkr-X";
|
|
|
2733
2733
|
const bar$1 = "agents_bar_WUSPao";
|
|
2734
2734
|
const conversion = "agents_conversion_B88QLI";
|
|
2735
2735
|
const conversionIcon = "agents_conversionIcon_bJalHq";
|
|
2736
|
-
const styles$
|
|
2736
|
+
const styles$P = {
|
|
2737
2737
|
stages,
|
|
2738
2738
|
stage,
|
|
2739
2739
|
stageHead,
|
|
@@ -2745,33 +2745,33 @@ const styles$N = {
|
|
|
2745
2745
|
};
|
|
2746
2746
|
const ChartFunnelRows = (props) => {
|
|
2747
2747
|
const { model, accessibleLabel, testId } = props;
|
|
2748
|
-
return /* @__PURE__ */ jsx("ol", { className: styles$
|
|
2748
|
+
return /* @__PURE__ */ jsx("ol", { className: styles$P.stages, "aria-label": accessibleLabel, "data-testid": testId, children: model.stages.map((stage2, stageIndex) => /* @__PURE__ */ jsxs(
|
|
2749
2749
|
"li",
|
|
2750
2750
|
{
|
|
2751
|
-
className: styles$
|
|
2751
|
+
className: styles$P.stage,
|
|
2752
2752
|
"data-testid": testId ? `${testId}-stage-${stageIndex}` : void 0,
|
|
2753
2753
|
children: [
|
|
2754
|
-
stage2.conversionText !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2755
|
-
/* @__PURE__ */ jsx(Icon, { className: styles$
|
|
2754
|
+
stage2.conversionText !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$P.conversion, children: [
|
|
2755
|
+
/* @__PURE__ */ jsx(Icon, { className: styles$P.conversionIcon, name: "arrowDown" }),
|
|
2756
2756
|
/* @__PURE__ */ jsx(
|
|
2757
2757
|
Text,
|
|
2758
2758
|
{
|
|
2759
2759
|
role: "caption",
|
|
2760
2760
|
color: "var(--agents-fg-light)",
|
|
2761
|
-
className: styles$
|
|
2761
|
+
className: styles$P.figure,
|
|
2762
2762
|
replacements: { conversion: stage2.conversionText },
|
|
2763
2763
|
children: "%conversion% of the previous stage"
|
|
2764
2764
|
}
|
|
2765
2765
|
)
|
|
2766
2766
|
] }) : 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$
|
|
2767
|
+
/* @__PURE__ */ jsxs("div", { className: styles$P.stageHead, children: [
|
|
2768
|
+
/* @__PURE__ */ jsx(Text, { role: "help", className: styles$P.label, translate: false, children: escapePlainTextForText(stage2.label) }),
|
|
2769
|
+
/* @__PURE__ */ jsx(Text, { role: "help", weight: "bold", className: styles$P.figure, translate: false, children: escapePlainTextForText(stage2.valueText) })
|
|
2770
2770
|
] }),
|
|
2771
2771
|
/* @__PURE__ */ jsx(
|
|
2772
2772
|
"span",
|
|
2773
2773
|
{
|
|
2774
|
-
className: styles$
|
|
2774
|
+
className: styles$P.bar,
|
|
2775
2775
|
"aria-hidden": "true",
|
|
2776
2776
|
style: { "--agents-chart-funnel-fraction": `${Math.round(stage2.fraction * 1e3) / 10}%` }
|
|
2777
2777
|
}
|
|
@@ -2805,7 +2805,7 @@ const footnote = "agents_footnote_Eh9hCo";
|
|
|
2805
2805
|
const quiet = "agents_quiet_3g4fJY";
|
|
2806
2806
|
const sourceButton = "agents_sourceButton_-n9HT3";
|
|
2807
2807
|
const sourceChip$1 = "agents_sourceChip_Sa0S4w";
|
|
2808
|
-
const styles$
|
|
2808
|
+
const styles$O = {
|
|
2809
2809
|
footnote,
|
|
2810
2810
|
quiet,
|
|
2811
2811
|
sourceButton,
|
|
@@ -2847,14 +2847,14 @@ const SourceChip$1 = (props) => {
|
|
|
2847
2847
|
iconPosition: "left",
|
|
2848
2848
|
htmlType: "button",
|
|
2849
2849
|
translate: false,
|
|
2850
|
-
className: styles$
|
|
2850
|
+
className: styles$O.sourceButton,
|
|
2851
2851
|
testId,
|
|
2852
2852
|
onClick: openSource,
|
|
2853
2853
|
children: escapePlainTextForText(footnoteSource.name)
|
|
2854
2854
|
}
|
|
2855
2855
|
);
|
|
2856
2856
|
}
|
|
2857
|
-
const className = styles$
|
|
2857
|
+
const className = styles$O.sourceChip;
|
|
2858
2858
|
const sourceChipContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2859
2859
|
/* @__PURE__ */ jsx(Icon, { pixelSize: 12, color: "var(--agents-fg-light)", name: "link" }),
|
|
2860
2860
|
/* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(footnoteSource.name) })
|
|
@@ -2869,7 +2869,7 @@ const DataFootnote = (props) => {
|
|
|
2869
2869
|
const captionText = readText$2(caption2);
|
|
2870
2870
|
const footnoteSources = readFootnoteSources(source2).map((footnoteSource, sourceIndex) => ({ footnoteSource, sourceIndex })).filter(({ footnoteSource }) => appearance === "chip" || !isEmailRender && readHostName(footnoteSource.url));
|
|
2871
2871
|
if (!captionText && footnoteSources.length === 0) return null;
|
|
2872
|
-
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$
|
|
2872
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames(styles$O.footnote, appearance === "quiet" && styles$O.quiet), "data-testid": testId, children: [
|
|
2873
2873
|
captionText ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(captionText) }) : null,
|
|
2874
2874
|
footnoteSources.map(({ footnoteSource, sourceIndex }) => /* @__PURE__ */ jsx(
|
|
2875
2875
|
SourceChip$1,
|
|
@@ -2898,7 +2898,7 @@ const chart = "agents_chart_w3Iegy";
|
|
|
2898
2898
|
const plot = "agents_plot_5-0cN9";
|
|
2899
2899
|
const sparkline = "agents_sparkline_0aul49";
|
|
2900
2900
|
const skeleton$3 = "agents_skeleton_0zIRZc";
|
|
2901
|
-
const styles$
|
|
2901
|
+
const styles$N = {
|
|
2902
2902
|
chart,
|
|
2903
2903
|
plot,
|
|
2904
2904
|
sparkline,
|
|
@@ -2966,17 +2966,17 @@ const ChartNode = (props) => {
|
|
|
2966
2966
|
const accessibleLabel = chartModelResult.status === "ok" ? [title2, plottedSeriesLabels.join(", ")].filter(Boolean).join(": ") : title2;
|
|
2967
2967
|
const deltaLabel = readText$2(nodeProps.deltaLabel);
|
|
2968
2968
|
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$
|
|
2969
|
+
return /* @__PURE__ */ jsxs("figure", { className: classNames(styles$N.chart, isSparkline && styles$N.sparkline), "data-testid": testId, children: [
|
|
2970
2970
|
title2 && !isSparkline ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "bold", translate: false, children: escapePlainTextForText(title2) }) : null,
|
|
2971
2971
|
/* @__PURE__ */ jsx(
|
|
2972
2972
|
"div",
|
|
2973
2973
|
{
|
|
2974
2974
|
ref: containerRef,
|
|
2975
|
-
className: styles$
|
|
2975
|
+
className: styles$N.plot,
|
|
2976
2976
|
role: chartModelResult.status === "ok" && !drawsItsOwnRows ? "img" : void 0,
|
|
2977
2977
|
"aria-label": drawsItsOwnRows ? void 0 : accessibleLabel,
|
|
2978
2978
|
"data-chart-kind": kind,
|
|
2979
|
-
children: isWaiting ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
2979
|
+
children: isWaiting ? /* @__PURE__ */ jsx("div", { className: styles$N.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
2980
|
ChartFunnelRows,
|
|
2981
2981
|
{
|
|
2982
2982
|
model: funnelModelResult.model,
|
|
@@ -3006,7 +3006,7 @@ const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
3006
3006
|
composedViewComponent: composedViewComponent$N
|
|
3007
3007
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3008
3008
|
const icon$2 = "agents_icon_b13Mj-";
|
|
3009
|
-
const styles$
|
|
3009
|
+
const styles$M = {
|
|
3010
3010
|
icon: icon$2
|
|
3011
3011
|
};
|
|
3012
3012
|
const ICON_SIZE_PX = { small: 16, medium: 20, large: 24 };
|
|
@@ -3028,7 +3028,7 @@ const IconNode = (props) => {
|
|
|
3028
3028
|
return /* @__PURE__ */ jsx(
|
|
3029
3029
|
"span",
|
|
3030
3030
|
{
|
|
3031
|
-
className: styles$
|
|
3031
|
+
className: styles$M.icon,
|
|
3032
3032
|
role: label2 ? "img" : void 0,
|
|
3033
3033
|
"aria-label": label2,
|
|
3034
3034
|
"aria-hidden": label2 ? void 0 : true,
|
|
@@ -3047,7 +3047,7 @@ const denominator = "agents_denominator_-RIxq1";
|
|
|
3047
3047
|
const unitParts = "agents_unitParts_gogUzd";
|
|
3048
3048
|
const delta = "agents_delta_Tz8K1Q";
|
|
3049
3049
|
const loading = "agents_loading_cYDvLv";
|
|
3050
|
-
const styles$
|
|
3050
|
+
const styles$L = {
|
|
3051
3051
|
tile: tile$2,
|
|
3052
3052
|
denominator,
|
|
3053
3053
|
unitParts,
|
|
@@ -3057,7 +3057,7 @@ const styles$J = {
|
|
|
3057
3057
|
const LayoutNestingContext = createContext({ isInsideSurface: false, isInsidePressable: false });
|
|
3058
3058
|
const useLayoutNesting = () => useContext(LayoutNestingContext);
|
|
3059
3059
|
const meter = "agents_meter_uK2P5l";
|
|
3060
|
-
const styles$
|
|
3060
|
+
const styles$K = {
|
|
3061
3061
|
meter
|
|
3062
3062
|
};
|
|
3063
3063
|
const KpiMeter = (props) => {
|
|
@@ -3066,14 +3066,14 @@ const KpiMeter = (props) => {
|
|
|
3066
3066
|
{ value: value2, color },
|
|
3067
3067
|
{ value: max - value2, color: "var(--agents-kpi-meter-track)" }
|
|
3068
3068
|
].filter((segment) => segment.value > 0);
|
|
3069
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
3069
|
+
return /* @__PURE__ */ jsx("div", { className: styles$K.meter, "aria-hidden": "true", "data-testid": testId, children: /* @__PURE__ */ jsx(SegmentBar, { segments, height: 6 }) });
|
|
3070
3070
|
};
|
|
3071
3071
|
const accent = "agents_accent_OUzS9f";
|
|
3072
3072
|
const success$1 = "agents_success_2NnZBL";
|
|
3073
3073
|
const warning$1 = "agents_warning_cJiOOT";
|
|
3074
3074
|
const danger$1 = "agents_danger_i4A6wL";
|
|
3075
3075
|
const info$1 = "agents_info_sr69ph";
|
|
3076
|
-
const styles$
|
|
3076
|
+
const styles$J = {
|
|
3077
3077
|
accent,
|
|
3078
3078
|
success: success$1,
|
|
3079
3079
|
warning: warning$1,
|
|
@@ -3087,16 +3087,16 @@ const TONE_ICON = {
|
|
|
3087
3087
|
info: "info"
|
|
3088
3088
|
};
|
|
3089
3089
|
const TONE_CLASS = {
|
|
3090
|
-
success: styles$
|
|
3091
|
-
warning: styles$
|
|
3092
|
-
danger: styles$
|
|
3093
|
-
info: styles$
|
|
3090
|
+
success: styles$J.success,
|
|
3091
|
+
warning: styles$J.warning,
|
|
3092
|
+
danger: styles$J.danger,
|
|
3093
|
+
info: styles$J.info
|
|
3094
3094
|
};
|
|
3095
3095
|
const KpiToneAccent = (props) => {
|
|
3096
3096
|
const { tone, testId } = props;
|
|
3097
3097
|
const icon2 = TONE_ICON[tone];
|
|
3098
3098
|
if (!icon2) return null;
|
|
3099
|
-
return /* @__PURE__ */ jsx("span", { className: classNames(styles$
|
|
3099
|
+
return /* @__PURE__ */ jsx("span", { className: classNames(styles$J.accent, TONE_CLASS[tone]), "aria-hidden": "true", "data-testid": testId, children: /* @__PURE__ */ jsx(Icon, { pixelSize: 14, color: TONE_GRAPHIC_COLOR[tone], name: icon2 }) });
|
|
3100
3100
|
};
|
|
3101
3101
|
const NUMBER_PATTERN = String.raw`[-+]?(?:\d+(?:[ ]\d{3})*(?:[.,]\d+)?|[.,]\d+)`;
|
|
3102
3102
|
const NUMERIC_SCORE = new RegExp(String.raw`^${NUMBER_PATTERN}(?:\s*\/\s*${NUMBER_PATTERN}|\s*%)?$`);
|
|
@@ -3162,7 +3162,7 @@ const KpiTileNode = (props) => {
|
|
|
3162
3162
|
!isPending && !hasValue ? "NO_DATA" : void 0,
|
|
3163
3163
|
!isPending && !hasValue ? `the KpiTile "${label2}" has no value` : void 0
|
|
3164
3164
|
);
|
|
3165
|
-
const deltaElement = delta2 === void 0 ? void 0 : /* @__PURE__ */ jsxs("span", { className: styles$
|
|
3165
|
+
const deltaElement = delta2 === void 0 ? void 0 : /* @__PURE__ */ jsxs("span", { className: styles$L.delta, "data-testid": `${testId}-delta`, children: [
|
|
3166
3166
|
/* @__PURE__ */ jsx(
|
|
3167
3167
|
TrendDelta,
|
|
3168
3168
|
{
|
|
@@ -3179,12 +3179,12 @@ const KpiTileNode = (props) => {
|
|
|
3179
3179
|
{
|
|
3180
3180
|
level: isInsideSurface ? "flat" : "elevated",
|
|
3181
3181
|
compact: sizeClass !== "full",
|
|
3182
|
-
className: styles$
|
|
3182
|
+
className: styles$L.tile,
|
|
3183
3183
|
testId,
|
|
3184
3184
|
children: [
|
|
3185
3185
|
isPending ? (
|
|
3186
3186
|
// The primitive's own loading skeleton animates its style every frame — a capture never settles on it.
|
|
3187
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
3187
|
+
/* @__PURE__ */ jsxs("div", { className: styles$L.loading, "aria-busy": "true", "data-testid": `${testId}-skeleton`, children: [
|
|
3188
3188
|
/* @__PURE__ */ jsx(WidgetText, { variant: "caption", tone: "light", translate: false, testId: `${testId}-label`, children: escapePlainTextForText(label2) }),
|
|
3189
3189
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "60%", height: 40, radius: 8 })
|
|
3190
3190
|
] })
|
|
@@ -3197,10 +3197,10 @@ const KpiTileNode = (props) => {
|
|
|
3197
3197
|
accent: tone === "neutral" || tone === "muted" ? void 0 : /* @__PURE__ */ jsx(KpiToneAccent, { tone, testId: `${testId}-accent` }),
|
|
3198
3198
|
value: /* @__PURE__ */ jsxs("span", { className: TONE_TEXT_CLASS[tone], "data-testid": `${testId}-value`, children: [
|
|
3199
3199
|
/* @__PURE__ */ jsx(WidgetText, { translate: false, children: hasValue ? escapePlainTextForText(valueParts.lead) : "—" }),
|
|
3200
|
-
valueParts.denominator ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3200
|
+
valueParts.denominator ? /* @__PURE__ */ jsx("span", { className: styles$L.denominator, children: /* @__PURE__ */ jsx(WidgetText, { translate: false, children: escapePlainTextForText(valueParts.denominator) }) }) : null
|
|
3201
3201
|
] }),
|
|
3202
3202
|
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$
|
|
3203
|
+
unit: secondary ? /* @__PURE__ */ jsxs("span", { className: styles$L.unitParts, children: [
|
|
3204
3204
|
/* @__PURE__ */ jsx(WidgetText, { variant: "value", translate: false, inline: true, testId: `${testId}-value-secondary`, children: escapePlainTextForText(secondary) }),
|
|
3205
3205
|
unit ? /* @__PURE__ */ jsx(WidgetText, { translate: false, children: escapePlainTextForText(unit) }) : null
|
|
3206
3206
|
] }) : unit ? escapePlainTextForText(unit) : void 0,
|
|
@@ -3244,7 +3244,7 @@ const value$1 = "agents_value_QriEAD";
|
|
|
3244
3244
|
const bullet = "agents_bullet_nggUAh";
|
|
3245
3245
|
const number = "agents_number_rI0k0o";
|
|
3246
3246
|
const check = "agents_check_kBEwU8";
|
|
3247
|
-
const styles$
|
|
3247
|
+
const styles$I = {
|
|
3248
3248
|
entry,
|
|
3249
3249
|
withMarker,
|
|
3250
3250
|
text: text$3,
|
|
@@ -3257,25 +3257,25 @@ const styles$G = {
|
|
|
3257
3257
|
const ListEntry = (props) => {
|
|
3258
3258
|
const { marker: marker2, title: title2, description: description2, meta, value: value2, children, trailing: trailing2, isStandalone = false, testId } = props;
|
|
3259
3259
|
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$
|
|
3260
|
+
return /* @__PURE__ */ jsxs(EntryElement, { className: classNames(styles$I.entry, marker2 !== "none" && styles$I.withMarker), "data-testid": testId, children: [
|
|
3261
|
+
marker2 === "bullet" ? /* @__PURE__ */ jsx("span", { className: styles$I.bullet, "aria-hidden": "true" }) : null,
|
|
3262
|
+
marker2 === "number" ? /* @__PURE__ */ jsx("span", { className: styles$I.number, "aria-hidden": "true" }) : null,
|
|
3263
|
+
marker2 === "check" ? /* @__PURE__ */ jsx("span", { className: styles$I.check, "aria-hidden": "true", children: /* @__PURE__ */ jsx(Icon, { pixelSize: 16, color: "var(--agents-success-500)", name: "check" }) }) : null,
|
|
3264
|
+
/* @__PURE__ */ jsxs("span", { className: styles$I.text, children: [
|
|
3265
3265
|
title2 ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "bold", translate: false, children: escapePlainTextForText(title2) }) : null,
|
|
3266
3266
|
description2 ? /* @__PURE__ */ jsx(Text, { role: "help", translate: false, children: escapePlainTextForText(description2) }) : null,
|
|
3267
3267
|
meta ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(meta) }) : null,
|
|
3268
3268
|
children
|
|
3269
3269
|
] }),
|
|
3270
|
-
value2 || trailing2 ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
3271
|
-
value2 ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "medium", className: styles$
|
|
3270
|
+
value2 || trailing2 ? /* @__PURE__ */ jsxs("span", { className: styles$I.trailing, children: [
|
|
3271
|
+
value2 ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "medium", className: styles$I.value, translate: false, children: escapePlainTextForText(value2) }) : null,
|
|
3272
3272
|
trailing2
|
|
3273
3273
|
] }) : null
|
|
3274
3274
|
] });
|
|
3275
3275
|
};
|
|
3276
3276
|
const list = "agents_list_Ggcj5a";
|
|
3277
3277
|
const numbered = "agents_numbered_DqZtgJ";
|
|
3278
|
-
const styles$
|
|
3278
|
+
const styles$H = {
|
|
3279
3279
|
list,
|
|
3280
3280
|
numbered
|
|
3281
3281
|
};
|
|
@@ -3311,7 +3311,7 @@ const ListNode = (props) => {
|
|
|
3311
3311
|
);
|
|
3312
3312
|
if (isEmpty) return /* @__PURE__ */ jsx(DataEmptyLine, { emptyText: nodeProps.emptyText, testId: `${testId}-empty` });
|
|
3313
3313
|
const ListElement = marker2 === "number" ? "ol" : "ul";
|
|
3314
|
-
return /* @__PURE__ */ jsx(ListElement, { className: classNames(styles$
|
|
3314
|
+
return /* @__PURE__ */ jsx(ListElement, { className: classNames(styles$H.list, marker2 === "number" && styles$H.numbered), "data-testid": testId, children: /* @__PURE__ */ jsxs(ListContext.Provider, { value: listContextValue, children: [
|
|
3315
3315
|
shownEntries.map((entry2, entryIndex) => /* @__PURE__ */ jsx(
|
|
3316
3316
|
ListEntry,
|
|
3317
3317
|
{
|
|
@@ -3408,7 +3408,7 @@ const readTableColumns = (columnsValue, rows2) => {
|
|
|
3408
3408
|
};
|
|
3409
3409
|
const value = "agents_value_coW-Oj";
|
|
3410
3410
|
const booleanValue = "agents_booleanValue_N-yLq2";
|
|
3411
|
-
const styles$
|
|
3411
|
+
const styles$G = {
|
|
3412
3412
|
value,
|
|
3413
3413
|
booleanValue
|
|
3414
3414
|
};
|
|
@@ -3416,7 +3416,7 @@ const TableValue = (props) => {
|
|
|
3416
3416
|
const { value: value2, format, currency, decimals, unit, signed = false, tone = "neutral", isBold = false } = props;
|
|
3417
3417
|
const locale = useNumberLocale();
|
|
3418
3418
|
if (typeof value2 === "boolean") {
|
|
3419
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
3419
|
+
return /* @__PURE__ */ jsx("span", { className: styles$G.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
3420
|
}
|
|
3421
3421
|
const formattedValue = formatDataValue(value2, { format, currency, decimals, unit, signed, locale });
|
|
3422
3422
|
if (formattedValue === "") return null;
|
|
@@ -3426,7 +3426,7 @@ const TableValue = (props) => {
|
|
|
3426
3426
|
role: "help",
|
|
3427
3427
|
weight: isBold ? "bold" : "regular",
|
|
3428
3428
|
color: TONE_TEXT_COLOR[tone],
|
|
3429
|
-
className: styles$
|
|
3429
|
+
className: styles$G.value,
|
|
3430
3430
|
translate: false,
|
|
3431
3431
|
children: escapePlainTextForText(formattedValue)
|
|
3432
3432
|
}
|
|
@@ -3440,7 +3440,7 @@ const cell = "agents_cell_gSR-JZ";
|
|
|
3440
3440
|
const start$1 = "agents_start_oOnQ0Y";
|
|
3441
3441
|
const center$1 = "agents_center_1S9cj6";
|
|
3442
3442
|
const end$1 = "agents_end_QXsu76";
|
|
3443
|
-
const styles$
|
|
3443
|
+
const styles$F = {
|
|
3444
3444
|
table,
|
|
3445
3445
|
scroller,
|
|
3446
3446
|
grid: grid$2,
|
|
@@ -3467,11 +3467,11 @@ const TableNode = (props) => {
|
|
|
3467
3467
|
isOverRowBudget ? "BUDGET_EXCEEDED" : isEmpty && !isPending ? "NO_DATA" : void 0,
|
|
3468
3468
|
isOverRowBudget ? `the Table shows the first ${maxRepeatRows} of ${rows2.length} rows only` : isEmpty && !isPending ? "the Table has no rows" : void 0
|
|
3469
3469
|
);
|
|
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$
|
|
3470
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$F.table, "data-testid": testId, children: [
|
|
3471
|
+
/* @__PURE__ */ jsx("div", { className: styles$F.scroller, children: /* @__PURE__ */ jsxs("table", { className: styles$F.grid, children: [
|
|
3472
|
+
columns.length > 0 ? /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: columns.map((column2) => /* @__PURE__ */ jsx("th", { scope: "col", className: classNames(styles$F.cell, styles$F[column2.align]), children: /* @__PURE__ */ jsx(Text, { role: "help", weight: "bold", translate: false, children: escapePlainTextForText(column2.label) }) }, column2.key)) }) }) : null,
|
|
3473
3473
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
3474
|
-
shownRows.map((row2, rowIndex) => /* @__PURE__ */ jsx("tr", { className: styles$
|
|
3474
|
+
shownRows.map((row2, rowIndex) => /* @__PURE__ */ jsx("tr", { className: styles$F.row, "data-testid": `${testId}-row-${rowIndex}`, children: columns.map((column2) => /* @__PURE__ */ jsx("td", { className: classNames(styles$F.cell, styles$F[column2.align]), children: /* @__PURE__ */ jsx(
|
|
3475
3475
|
TableValue,
|
|
3476
3476
|
{
|
|
3477
3477
|
value: row2[column2.key],
|
|
@@ -3484,10 +3484,10 @@ const TableNode = (props) => {
|
|
|
3484
3484
|
isWaitingForRows && columns.length > 0 ? Array.from({ length: SKELETON_ROW_COUNT }, (unused, skeletonIndex) => /* @__PURE__ */ jsx(
|
|
3485
3485
|
"tr",
|
|
3486
3486
|
{
|
|
3487
|
-
className: styles$
|
|
3487
|
+
className: styles$F.row,
|
|
3488
3488
|
"aria-busy": "true",
|
|
3489
3489
|
"data-testid": `${testId}-skeleton-${skeletonIndex}`,
|
|
3490
|
-
children: columns.map((column2) => /* @__PURE__ */ jsx("td", { className: classNames(styles$
|
|
3490
|
+
children: columns.map((column2) => /* @__PURE__ */ jsx("td", { className: classNames(styles$F.cell, styles$F[column2.align]), children: /* @__PURE__ */ jsx(SkeletonLine, { width: "70%", height: 12 }) }, column2.key))
|
|
3491
3491
|
},
|
|
3492
3492
|
`skeleton-${skeletonIndex}`
|
|
3493
3493
|
)) : null,
|
|
@@ -3513,7 +3513,7 @@ const heatCell = "agents_heatCell_ZsGX6M";
|
|
|
3513
3513
|
const heat = "agents_heat_71n-vZ";
|
|
3514
3514
|
const heatEmpty = "agents_heatEmpty_3F810F";
|
|
3515
3515
|
const dash = "agents_dash_Hoy4st";
|
|
3516
|
-
const styles$
|
|
3516
|
+
const styles$E = {
|
|
3517
3517
|
content: content$1,
|
|
3518
3518
|
start,
|
|
3519
3519
|
center,
|
|
@@ -3545,14 +3545,14 @@ const TableCellNode = (props) => {
|
|
|
3545
3545
|
"span",
|
|
3546
3546
|
{
|
|
3547
3547
|
className: classNames(
|
|
3548
|
-
styles$
|
|
3549
|
-
styles$
|
|
3550
|
-
bar2 !== void 0 && styles$
|
|
3551
|
-
isHeatCell && styles$
|
|
3552
|
-
isHeatCell && heat2 === void 0 && styles$
|
|
3548
|
+
styles$E.content,
|
|
3549
|
+
styles$E[align],
|
|
3550
|
+
bar2 !== void 0 && styles$E.withBar,
|
|
3551
|
+
isHeatCell && styles$E.heat,
|
|
3552
|
+
isHeatCell && heat2 === void 0 && styles$E.heatEmpty
|
|
3553
3553
|
),
|
|
3554
3554
|
children: [
|
|
3555
|
-
bar2 !== void 0 ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3555
|
+
bar2 !== void 0 ? /* @__PURE__ */ jsx("span", { className: styles$E.bar, "aria-hidden": "true" }) : null,
|
|
3556
3556
|
hasValue ? /* @__PURE__ */ jsx(
|
|
3557
3557
|
TableValue,
|
|
3558
3558
|
{
|
|
@@ -3565,13 +3565,13 @@ const TableCellNode = (props) => {
|
|
|
3565
3565
|
tone: readDataValueTone(nodeProps.tone),
|
|
3566
3566
|
isBold
|
|
3567
3567
|
}
|
|
3568
|
-
) : isHeatCell ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3568
|
+
) : isHeatCell ? /* @__PURE__ */ jsx("span", { className: styles$E.dash, children: "—" }) : null,
|
|
3569
3569
|
slots.children && slots.children.length > 0 ? /* @__PURE__ */ jsx(DataContainerContext.Provider, { value: null, children: slots.children }) : null
|
|
3570
3570
|
]
|
|
3571
3571
|
}
|
|
3572
3572
|
);
|
|
3573
3573
|
if (!tableRow) return /* @__PURE__ */ jsx("span", { style: cellStyle, children: content2 });
|
|
3574
|
-
const cellClassName = classNames(styles$
|
|
3574
|
+
const cellClassName = classNames(styles$F.cell, styles$F[align], isHeatCell && styles$E.heatCell);
|
|
3575
3575
|
return isHeader ? /* @__PURE__ */ jsx("th", { scope: "col", className: cellClassName, style: cellStyle, children: content2 }) : /* @__PURE__ */ jsx("td", { className: cellClassName, style: cellStyle, children: content2 });
|
|
3576
3576
|
};
|
|
3577
3577
|
const composedViewComponent$G = {
|
|
@@ -3588,9 +3588,9 @@ const TableRowNode = (props) => {
|
|
|
3588
3588
|
const isHeader = nodeProps.header === true;
|
|
3589
3589
|
const isEmphasis = nodeProps.emphasis === true;
|
|
3590
3590
|
const tableRowContextValue = useMemo(() => ({ isHeader, isEmphasis }), [isHeader, isEmphasis]);
|
|
3591
|
-
const row2 = /* @__PURE__ */ jsx("tr", { className: classNames(styles$
|
|
3591
|
+
const row2 = /* @__PURE__ */ jsx("tr", { className: classNames(styles$F.row, isHeader && styles$F.headerRow), "data-testid": testId, children: /* @__PURE__ */ jsx(TableRowContext.Provider, { value: tableRowContextValue, children: slots.children }) });
|
|
3592
3592
|
if (container === "table") return row2;
|
|
3593
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
3593
|
+
return /* @__PURE__ */ jsx("div", { className: styles$F.scroller, children: /* @__PURE__ */ jsx("table", { className: styles$F.grid, children: /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx(DataContainerContext.Provider, { value: "table", children: row2 }) }) }) });
|
|
3594
3594
|
};
|
|
3595
3595
|
const composedViewComponent$F = { nodeType: "TableRow", component: TableRowNode };
|
|
3596
3596
|
const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3714,7 +3714,7 @@ const chipName$1 = "agents_chipName_vYiC1X";
|
|
|
3714
3714
|
const chipIcon = "agents_chipIcon_qjFBl-";
|
|
3715
3715
|
const plainName = "agents_plainName_wIGZV3";
|
|
3716
3716
|
const plainChip = "agents_plainChip_1j8sHX";
|
|
3717
|
-
const styles$
|
|
3717
|
+
const styles$D = {
|
|
3718
3718
|
link: link$2,
|
|
3719
3719
|
linkName,
|
|
3720
3720
|
chip: chip$2,
|
|
@@ -3767,7 +3767,7 @@ const EntityLinkNode = (props) => {
|
|
|
3767
3767
|
weight: fontWeight,
|
|
3768
3768
|
translate: false,
|
|
3769
3769
|
display: "inline",
|
|
3770
|
-
className: classNames(styles$
|
|
3770
|
+
className: classNames(styles$D.plainName, variant === "chip" && styles$D.plainChip),
|
|
3771
3771
|
testId: `${testId}-name`,
|
|
3772
3772
|
children: name
|
|
3773
3773
|
}
|
|
@@ -3775,29 +3775,29 @@ const EntityLinkNode = (props) => {
|
|
|
3775
3775
|
}
|
|
3776
3776
|
const openDetail = () => runtime.runEvent({ action: target.actionName });
|
|
3777
3777
|
if (variant === "chip") {
|
|
3778
|
-
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: styles$
|
|
3778
|
+
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: styles$D.chip, children: /* @__PURE__ */ jsxs("button", { type: "button", className: styles$D.chipButton, onClick: openDetail, "data-testid": "composed-entity-link", children: [
|
|
3779
3779
|
/* @__PURE__ */ jsx(
|
|
3780
3780
|
Text,
|
|
3781
3781
|
{
|
|
3782
3782
|
role: "help",
|
|
3783
3783
|
translate: false,
|
|
3784
3784
|
display: "inline",
|
|
3785
|
-
className: styles$
|
|
3785
|
+
className: styles$D.chipName,
|
|
3786
3786
|
testId: `${testId}-name`,
|
|
3787
3787
|
children: name
|
|
3788
3788
|
}
|
|
3789
3789
|
),
|
|
3790
|
-
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$
|
|
3790
|
+
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$D.chipIcon, pixelSize: 14, name: "details" })
|
|
3791
3791
|
] }) });
|
|
3792
3792
|
}
|
|
3793
|
-
return /* @__PURE__ */ jsx("button", { type: "button", className: styles$
|
|
3793
|
+
return /* @__PURE__ */ jsx("button", { type: "button", className: styles$D.link, onClick: openDetail, "data-testid": "composed-entity-link", children: /* @__PURE__ */ jsx(
|
|
3794
3794
|
Text,
|
|
3795
3795
|
{
|
|
3796
3796
|
role: textType,
|
|
3797
3797
|
weight: fontWeight,
|
|
3798
3798
|
translate: false,
|
|
3799
3799
|
display: "inline",
|
|
3800
|
-
className: styles$
|
|
3800
|
+
className: styles$D.linkName,
|
|
3801
3801
|
testId: `${testId}-name`,
|
|
3802
3802
|
children: name
|
|
3803
3803
|
}
|
|
@@ -3807,7 +3807,7 @@ const composedViewComponent$D = {
|
|
|
3807
3807
|
nodeType: "EntityLink",
|
|
3808
3808
|
component: EntityLinkNode
|
|
3809
3809
|
};
|
|
3810
|
-
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3810
|
+
const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3811
3811
|
__proto__: null,
|
|
3812
3812
|
composedViewComponent: composedViewComponent$D
|
|
3813
3813
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -3920,7 +3920,7 @@ const fields = "agents_fields_sw9Lwc";
|
|
|
3920
3920
|
const footer$2 = "agents_footer_HhE3-k";
|
|
3921
3921
|
const actions$1 = "agents_actions_50VAEI";
|
|
3922
3922
|
const nestedBody = "agents_nestedBody_zEWma2";
|
|
3923
|
-
const styles$
|
|
3923
|
+
const styles$C = {
|
|
3924
3924
|
form,
|
|
3925
3925
|
headerRow,
|
|
3926
3926
|
headerItems,
|
|
@@ -3968,7 +3968,7 @@ const FormNode = (props) => {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
}, [isInsideForm, formName, reportNodeStatus]);
|
|
3970
3970
|
if (isInsideForm)
|
|
3971
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
3971
|
+
return /* @__PURE__ */ jsx("div", { className: styles$C.nestedBody, "data-testid": testId, children: slots.children });
|
|
3972
3972
|
const canSend = formName !== void 0 && interactive && !isEmailRender;
|
|
3973
3973
|
const isAnswered = submissionStatus === "sent" || submissionStatus === "declined";
|
|
3974
3974
|
const sendSignal = async (signalText, answeredStatus) => {
|
|
@@ -4017,7 +4017,7 @@ const FormNode = (props) => {
|
|
|
4017
4017
|
if (!interactive) {
|
|
4018
4018
|
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
4019
|
}
|
|
4020
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4020
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$C.actions, children: [
|
|
4021
4021
|
/* @__PURE__ */ jsx(
|
|
4022
4022
|
ConversationWidgetButton,
|
|
4023
4023
|
{
|
|
@@ -4045,16 +4045,16 @@ const FormNode = (props) => {
|
|
|
4045
4045
|
) : null
|
|
4046
4046
|
] });
|
|
4047
4047
|
};
|
|
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$
|
|
4048
|
+
return /* @__PURE__ */ jsx(WidgetSurface, { level: sizeClass === "full" ? "elevated" : "flat", testId, children: /* @__PURE__ */ jsxs("form", { className: styles$C.form, noValidate: true, onSubmit: (submitEvent) => submitEvent.preventDefault(), children: [
|
|
4049
|
+
title2 !== void 0 || description2 !== void 0 || headerItems2.length > 0 ? /* @__PURE__ */ jsxs("div", { className: styles$C.headerRow, children: [
|
|
4050
|
+
/* @__PURE__ */ jsxs("div", { className: styles$C.header, children: [
|
|
4051
4051
|
title2 !== void 0 ? /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", children: title2 }) : null,
|
|
4052
4052
|
description2 !== void 0 ? /* @__PURE__ */ jsx(ModelText, { role: "help", color: "var(--agents-fg-light)", children: description2 }) : null
|
|
4053
4053
|
] }),
|
|
4054
|
-
headerItems2.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
4054
|
+
headerItems2.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$C.headerItems, children: headerItems2 }) : null
|
|
4055
4055
|
] }) : null,
|
|
4056
|
-
/* @__PURE__ */ jsx(ComposedViewFormContext.Provider, { value: true, children: /* @__PURE__ */ jsx("fieldset", { className: styles$
|
|
4057
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
4056
|
+
/* @__PURE__ */ jsx(ComposedViewFormContext.Provider, { value: true, children: /* @__PURE__ */ jsx("fieldset", { className: styles$C.fields, disabled: isAnswered || isSending || !canSend && !isEmailRender, children: slots.children }) }),
|
|
4057
|
+
/* @__PURE__ */ jsxs("div", { className: styles$C.footer, "aria-live": "polite", children: [
|
|
4058
4058
|
showsMissingFields ? /* @__PURE__ */ jsx(Text, { role: "caption", color: ERROR_TEXT_COLOR, testId: `${testId}-error-required`, children: "Please fill in the required fields." }) : null,
|
|
4059
4059
|
submissionStatus === "failed" ? /* @__PURE__ */ jsx(Text, { role: "caption", color: ERROR_TEXT_COLOR, testId: `${testId}-error`, children: "Something went wrong. Please try again." }) : null,
|
|
4060
4060
|
renderActionRow()
|
|
@@ -4062,7 +4062,7 @@ const FormNode = (props) => {
|
|
|
4062
4062
|
] }) });
|
|
4063
4063
|
};
|
|
4064
4064
|
const composedViewComponent$C = { nodeType: "Form", component: FormNode };
|
|
4065
|
-
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4065
|
+
const __vite_glob_0_11$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4066
4066
|
__proto__: null,
|
|
4067
4067
|
composedViewComponent: composedViewComponent$C
|
|
4068
4068
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -4210,7 +4210,7 @@ const datePickerIcon = "agents_datePickerIcon_oomZCC";
|
|
|
4210
4210
|
const button$1 = "agents_button_-GGF9m";
|
|
4211
4211
|
const buttonFullWidth = "agents_buttonFullWidth_BIpF89";
|
|
4212
4212
|
const radioOptionText = "agents_radioOptionText_ELY-yS";
|
|
4213
|
-
const styles$
|
|
4213
|
+
const styles$B = {
|
|
4214
4214
|
tabsBar,
|
|
4215
4215
|
sliderTrack,
|
|
4216
4216
|
datePicker,
|
|
@@ -4262,7 +4262,7 @@ const ComposedButton = (props) => {
|
|
|
4262
4262
|
runtime.runEvent(node.props.onClick, nodeProps.value);
|
|
4263
4263
|
if (isCopyButton) setIsCopyConfirmed(true);
|
|
4264
4264
|
};
|
|
4265
|
-
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, className: isFullWidth ? styles$
|
|
4265
|
+
return /* @__PURE__ */ jsx("div", { ref: wrapperRef, className: isFullWidth ? styles$B.buttonFullWidth : styles$B.button, children: /* @__PURE__ */ jsx(
|
|
4266
4266
|
ConversationWidgetButton,
|
|
4267
4267
|
{
|
|
4268
4268
|
variant: buttonType,
|
|
@@ -4291,7 +4291,7 @@ const labelValue = "agents_labelValue_upIIY1";
|
|
|
4291
4291
|
const description = "agents_description_ucyE-b";
|
|
4292
4292
|
const pending = "agents_pending_Tu-pEs";
|
|
4293
4293
|
const frozen = "agents_frozen_Aho93q";
|
|
4294
|
-
const styles$
|
|
4294
|
+
const styles$A = {
|
|
4295
4295
|
field,
|
|
4296
4296
|
labelRow,
|
|
4297
4297
|
label: label$2,
|
|
@@ -4317,17 +4317,17 @@ const ComposedInputField = (props) => {
|
|
|
4317
4317
|
return /* @__PURE__ */ jsxs(
|
|
4318
4318
|
"div",
|
|
4319
4319
|
{
|
|
4320
|
-
className: classNames(styles$
|
|
4320
|
+
className: classNames(styles$A.field, !isUsable && styles$A.frozen, className),
|
|
4321
4321
|
inert: !isUsable || void 0,
|
|
4322
4322
|
"data-usable": isUsable ? "true" : "false",
|
|
4323
4323
|
"data-testid": testId ? `${testId}-field` : void 0,
|
|
4324
4324
|
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$
|
|
4325
|
+
labelText2 || labelRowValue ? /* @__PURE__ */ jsxs("div", { className: styles$A.labelRow, children: [
|
|
4326
|
+
labelText2 && controlId ? /* @__PURE__ */ jsx("label", { htmlFor: controlId, className: styles$A.label, children: labelText2 }) : /* @__PURE__ */ jsx("span", { className: styles$A.label, children: labelText2 }),
|
|
4327
|
+
labelRowValue ? /* @__PURE__ */ jsx(Text, { role: "body", weight: "bold", translate: false, className: styles$A.labelValue, children: escapePlainTextForText(labelRowValue) }) : null
|
|
4328
4328
|
] }) : 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$
|
|
4329
|
+
isPending ? /* @__PURE__ */ jsx("span", { "aria-busy": "true", className: styles$A.pending, "data-testid": testId ? `${testId}-skeleton` : void 0, children: /* @__PURE__ */ jsx(SkeletonLine, { height: pendingHeight, radius: 12 }) }) : children,
|
|
4330
|
+
description2 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, className: styles$A.description, children: escapePlainTextForText(description2) }) : null
|
|
4331
4331
|
]
|
|
4332
4332
|
}
|
|
4333
4333
|
);
|
|
@@ -4403,7 +4403,7 @@ const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
4403
4403
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4404
4404
|
const frozenValue = "agents_frozenValue_Hyb1hq";
|
|
4405
4405
|
const multiline = "agents_multiline_4BAPyl";
|
|
4406
|
-
const styles$
|
|
4406
|
+
const styles$z = {
|
|
4407
4407
|
frozenValue,
|
|
4408
4408
|
multiline
|
|
4409
4409
|
};
|
|
@@ -4413,7 +4413,7 @@ const ComposedInputFrozenValue = (props) => {
|
|
|
4413
4413
|
return /* @__PURE__ */ jsx(
|
|
4414
4414
|
"div",
|
|
4415
4415
|
{
|
|
4416
|
-
className: classNames(styles$
|
|
4416
|
+
className: classNames(styles$z.frozenValue, isMultiline && styles$z.multiline),
|
|
4417
4417
|
"data-frozen-value": "true",
|
|
4418
4418
|
"data-testid": testId,
|
|
4419
4419
|
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 +4443,7 @@ const ComposedDatePicker = (props) => {
|
|
|
4443
4443
|
if (typeof pickedTimestamp !== "number" || !Number.isFinite(pickedTimestamp)) return;
|
|
4444
4444
|
changeValue(formatIsoDay(pickedTimestamp));
|
|
4445
4445
|
};
|
|
4446
|
-
return /* @__PURE__ */ jsx(ComposedInputField, { label: label2, isUsable, isPending, pendingHeight: 48, testId, children: isUsable ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4446
|
+
return /* @__PURE__ */ jsx(ComposedInputField, { label: label2, isUsable, isPending, pendingHeight: 48, testId, children: isUsable ? /* @__PURE__ */ jsxs("div", { className: styles$B.datePicker, "data-testid": testId, children: [
|
|
4447
4447
|
/* @__PURE__ */ jsx(
|
|
4448
4448
|
DateInput,
|
|
4449
4449
|
{
|
|
@@ -4455,7 +4455,7 @@ const ComposedDatePicker = (props) => {
|
|
|
4455
4455
|
},
|
|
4456
4456
|
value2 ?? "none"
|
|
4457
4457
|
),
|
|
4458
|
-
/* @__PURE__ */ jsx(Icon, { className: styles$
|
|
4458
|
+
/* @__PURE__ */ jsx(Icon, { className: styles$B.datePickerIcon, color: "var(--agents-fg-light)", pixelSize: 18, name: "calendar" })
|
|
4459
4459
|
] }) : /* @__PURE__ */ jsx(ComposedInputFrozenValue, { shownValue: formatIsoDayForReading(value2, dateLocale), testId: `${testId}-frozen` }) });
|
|
4460
4460
|
};
|
|
4461
4461
|
const composedViewComponent$z = {
|
|
@@ -4558,7 +4558,7 @@ const ComposedRadioGroup = (props) => {
|
|
|
4558
4558
|
const selectedOption = findComposedInputOption(options, value2);
|
|
4559
4559
|
const radioOptions = options.map((option) => ({
|
|
4560
4560
|
// The label and its explanation as one node.
|
|
4561
|
-
label: /* @__PURE__ */ jsxs("span", { className: styles$
|
|
4561
|
+
label: /* @__PURE__ */ jsxs("span", { className: styles$B.radioOptionText, "data-testid": `${testId}-option-${option.id}`, children: [
|
|
4562
4562
|
/* @__PURE__ */ jsx(Text, { role: "body", translate: false, children: escapePlainTextForText(option.label) }),
|
|
4563
4563
|
option.description ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(option.description) }) : null
|
|
4564
4564
|
] }),
|
|
@@ -4707,7 +4707,7 @@ const ComposedSlider = (props) => {
|
|
|
4707
4707
|
isPending,
|
|
4708
4708
|
pendingHeight: 28,
|
|
4709
4709
|
testId,
|
|
4710
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
4710
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$B.sliderTrack, "aria-label": label2, "data-testid": testId, children: /* @__PURE__ */ jsx(
|
|
4711
4711
|
RangeSlider,
|
|
4712
4712
|
{
|
|
4713
4713
|
value: shownValue,
|
|
@@ -4759,7 +4759,7 @@ const ComposedTabs = (props) => {
|
|
|
4759
4759
|
isPending,
|
|
4760
4760
|
pendingHeight: 36,
|
|
4761
4761
|
testId,
|
|
4762
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
4762
|
+
children: /* @__PURE__ */ jsx("div", { className: styles$B.tabsBar, "data-testid": testId, children: /* @__PURE__ */ jsx(
|
|
4763
4763
|
Tabs,
|
|
4764
4764
|
{
|
|
4765
4765
|
options: tabs,
|
|
@@ -4860,7 +4860,7 @@ const arrow = "agents_arrow_av0SP1";
|
|
|
4860
4860
|
const arrowPrevious = "agents_arrowPrevious_3h1BXR";
|
|
4861
4861
|
const arrowNext = "agents_arrowNext_tgbHsd";
|
|
4862
4862
|
const arrowButton = "agents_arrowButton_NQXi0F";
|
|
4863
|
-
const styles$
|
|
4863
|
+
const styles$y = {
|
|
4864
4864
|
carousel: carousel$2,
|
|
4865
4865
|
visible1,
|
|
4866
4866
|
visible2,
|
|
@@ -4878,10 +4878,10 @@ const styles$w = {
|
|
|
4878
4878
|
};
|
|
4879
4879
|
const VISIBLE_ITEM_COUNTS = [1, 2, 3, 4];
|
|
4880
4880
|
const VISIBLE_CLASS_NAMES = {
|
|
4881
|
-
1: styles$
|
|
4882
|
-
2: styles$
|
|
4883
|
-
3: styles$
|
|
4884
|
-
4: styles$
|
|
4881
|
+
1: styles$y.visible1,
|
|
4882
|
+
2: styles$y.visible2,
|
|
4883
|
+
3: styles$y.visible3,
|
|
4884
|
+
4: styles$y.visible4
|
|
4885
4885
|
};
|
|
4886
4886
|
const SKELETON_SLIDE_COUNT = 3;
|
|
4887
4887
|
const readScrollEdges$1 = (track2) => ({
|
|
@@ -4933,10 +4933,10 @@ const Carousel = (props) => {
|
|
|
4933
4933
|
return /* @__PURE__ */ jsx(
|
|
4934
4934
|
"div",
|
|
4935
4935
|
{
|
|
4936
|
-
className: classNames(styles$
|
|
4936
|
+
className: classNames(styles$y.carousel, VISIBLE_CLASS_NAMES[visibleItemCount]),
|
|
4937
4937
|
"aria-busy": "true",
|
|
4938
4938
|
"data-testid": `${testId}-skeleton`,
|
|
4939
|
-
children: /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
4939
|
+
children: /* @__PURE__ */ jsx("div", { className: classNames(styles$y.track, styles$y.frozenTrack), children: Array.from({ length: SKELETON_SLIDE_COUNT }, (unused, skeletonIndex) => /* @__PURE__ */ jsx("div", { className: styles$y.slide, children: /* @__PURE__ */ jsxs("div", { className: styles$y.skeletonSlide, children: [
|
|
4940
4940
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "50%", height: 12 }),
|
|
4941
4941
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "70%", height: 24 }),
|
|
4942
4942
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "40%", height: 10 })
|
|
@@ -4945,13 +4945,13 @@ const Carousel = (props) => {
|
|
|
4945
4945
|
);
|
|
4946
4946
|
}
|
|
4947
4947
|
if (slideCount === 0) return null;
|
|
4948
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
4948
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$y.carousel, VISIBLE_CLASS_NAMES[visibleItemCount]), "data-testid": testId, children: /* @__PURE__ */ jsxs("div", { className: styles$y.viewport, children: [
|
|
4949
4949
|
/* @__PURE__ */ jsx(
|
|
4950
4950
|
"div",
|
|
4951
4951
|
{
|
|
4952
4952
|
ref: trackRef,
|
|
4953
4953
|
"data-testid": `${testId}-track`,
|
|
4954
|
-
className: classNames(styles$
|
|
4954
|
+
className: classNames(styles$y.track, runtime.isEmailRender && styles$y.frozenTrack),
|
|
4955
4955
|
role: "group",
|
|
4956
4956
|
"aria-roledescription": translateText("carousel"),
|
|
4957
4957
|
"aria-label": carouselLabel,
|
|
@@ -4959,7 +4959,7 @@ const Carousel = (props) => {
|
|
|
4959
4959
|
children: slides.map((slideNodes, slideIndex) => /* @__PURE__ */ jsx(
|
|
4960
4960
|
"div",
|
|
4961
4961
|
{
|
|
4962
|
-
className: styles$
|
|
4962
|
+
className: styles$y.slide,
|
|
4963
4963
|
"data-testid": `${testId}-slide-${slideIndex}`,
|
|
4964
4964
|
role: "group",
|
|
4965
4965
|
"aria-roledescription": translateText("slide"),
|
|
@@ -4970,22 +4970,22 @@ const Carousel = (props) => {
|
|
|
4970
4970
|
))
|
|
4971
4971
|
}
|
|
4972
4972
|
),
|
|
4973
|
-
isShowingArrows && scrollEdges.canScrollBack ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$
|
|
4973
|
+
isShowingArrows && scrollEdges.canScrollBack ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$y.arrow, styles$y.arrowPrevious), children: /* @__PURE__ */ jsx(
|
|
4974
4974
|
"button",
|
|
4975
4975
|
{
|
|
4976
4976
|
type: "button",
|
|
4977
|
-
className: styles$
|
|
4977
|
+
className: styles$y.arrowButton,
|
|
4978
4978
|
"data-testid": `${testId}-previous`,
|
|
4979
4979
|
"aria-label": translateText("Show the previous slides"),
|
|
4980
4980
|
onClick: () => scrollBySlide(-1),
|
|
4981
4981
|
children: /* @__PURE__ */ jsx(Icon, { name: "arrowLeft" })
|
|
4982
4982
|
}
|
|
4983
4983
|
) }) : null,
|
|
4984
|
-
isShowingArrows && scrollEdges.canScrollForward ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$
|
|
4984
|
+
isShowingArrows && scrollEdges.canScrollForward ? /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$y.arrow, styles$y.arrowNext), children: /* @__PURE__ */ jsx(
|
|
4985
4985
|
"button",
|
|
4986
4986
|
{
|
|
4987
4987
|
type: "button",
|
|
4988
|
-
className: styles$
|
|
4988
|
+
className: styles$y.arrowButton,
|
|
4989
4989
|
"data-testid": `${testId}-next`,
|
|
4990
4990
|
"aria-label": translateText("Show the next slides"),
|
|
4991
4991
|
onClick: () => scrollBySlide(1),
|
|
@@ -5001,7 +5001,7 @@ const __vite_glob_0_21 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
5001
5001
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5002
5002
|
const horizontal = "agents_horizontal_ugu-FM";
|
|
5003
5003
|
const vertical = "agents_vertical_urpMv4";
|
|
5004
|
-
const styles$
|
|
5004
|
+
const styles$x = {
|
|
5005
5005
|
horizontal,
|
|
5006
5006
|
vertical
|
|
5007
5007
|
};
|
|
@@ -5009,7 +5009,7 @@ const ORIENTATIONS = ["horizontal", "vertical"];
|
|
|
5009
5009
|
const Divider = (props) => {
|
|
5010
5010
|
const { props: nodeProps } = props;
|
|
5011
5011
|
const orientation = readEnumProp(nodeProps.orientation, ORIENTATIONS, "horizontal");
|
|
5012
|
-
return /* @__PURE__ */ jsx("div", { role: "separator", "aria-orientation": orientation, className: styles$
|
|
5012
|
+
return /* @__PURE__ */ jsx("div", { role: "separator", "aria-orientation": orientation, className: styles$x[orientation] });
|
|
5013
5013
|
};
|
|
5014
5014
|
const composedViewComponent$r = { nodeType: "Divider", component: Divider };
|
|
5015
5015
|
const __vite_glob_0_22 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5026,7 +5026,7 @@ const gapXsmall$2 = "agents_gapXsmall_YHncjA";
|
|
|
5026
5026
|
const gapSmall$2 = "agents_gapSmall_weBW7m";
|
|
5027
5027
|
const gapMedium$2 = "agents_gapMedium_V6Ik6Z";
|
|
5028
5028
|
const gapLarge$2 = "agents_gapLarge_bzc-Uc";
|
|
5029
|
-
const styles$
|
|
5029
|
+
const styles$w = {
|
|
5030
5030
|
flow,
|
|
5031
5031
|
alignStart: alignStart$1,
|
|
5032
5032
|
alignCenter: alignCenter$1,
|
|
@@ -5039,9 +5039,9 @@ const styles$u = {
|
|
|
5039
5039
|
};
|
|
5040
5040
|
const ALIGNMENTS$1 = ["start", "center", "end"];
|
|
5041
5041
|
const ALIGNMENT_CLASS_NAMES$1 = {
|
|
5042
|
-
start: styles$
|
|
5043
|
-
center: styles$
|
|
5044
|
-
end: styles$
|
|
5042
|
+
start: styles$w.alignStart,
|
|
5043
|
+
center: styles$w.alignCenter,
|
|
5044
|
+
end: styles$w.alignEnd
|
|
5045
5045
|
};
|
|
5046
5046
|
const Flow = (props) => {
|
|
5047
5047
|
const { props: nodeProps, slots, runtime } = props;
|
|
@@ -5058,9 +5058,9 @@ const Flow = (props) => {
|
|
|
5058
5058
|
"div",
|
|
5059
5059
|
{
|
|
5060
5060
|
className: classNames(
|
|
5061
|
-
styles$
|
|
5061
|
+
styles$w.flow,
|
|
5062
5062
|
ALIGNMENT_CLASS_NAMES$1[alignment],
|
|
5063
|
-
layoutGapClassName(styles$
|
|
5063
|
+
layoutGapClassName(styles$w, readGapProp(nodeProps.gap, "small"))
|
|
5064
5064
|
),
|
|
5065
5065
|
children: items
|
|
5066
5066
|
}
|
|
@@ -5083,7 +5083,7 @@ const gapXsmall$1 = "agents_gapXsmall_eoYRI4";
|
|
|
5083
5083
|
const gapSmall$1 = "agents_gapSmall_QNN7Lj";
|
|
5084
5084
|
const gapMedium$1 = "agents_gapMedium_BT9hpy";
|
|
5085
5085
|
const gapLarge$1 = "agents_gapLarge_GIrOMv";
|
|
5086
|
-
const styles$
|
|
5086
|
+
const styles$v = {
|
|
5087
5087
|
grid: grid$1,
|
|
5088
5088
|
columns1,
|
|
5089
5089
|
columns2,
|
|
@@ -5122,10 +5122,10 @@ const readMinColumnWidth = (node, writtenMinColumnWidth) => {
|
|
|
5122
5122
|
return cellNodes.every(isCompactCell) ? "compact" : "regular";
|
|
5123
5123
|
};
|
|
5124
5124
|
const COLUMN_CLASS_NAMES = {
|
|
5125
|
-
1: styles$
|
|
5126
|
-
2: styles$
|
|
5127
|
-
3: styles$
|
|
5128
|
-
4: styles$
|
|
5125
|
+
1: styles$v.columns1,
|
|
5126
|
+
2: styles$v.columns2,
|
|
5127
|
+
3: styles$v.columns3,
|
|
5128
|
+
4: styles$v.columns4
|
|
5129
5129
|
};
|
|
5130
5130
|
const Grid = (props) => {
|
|
5131
5131
|
const { node, props: nodeProps, slots, runtime, testId } = props;
|
|
@@ -5144,10 +5144,10 @@ const Grid = (props) => {
|
|
|
5144
5144
|
{
|
|
5145
5145
|
"data-testid": testId,
|
|
5146
5146
|
className: classNames(
|
|
5147
|
-
styles$
|
|
5147
|
+
styles$v.grid,
|
|
5148
5148
|
COLUMN_CLASS_NAMES[columnCount],
|
|
5149
|
-
minColumnWidth === "regular" ? styles$
|
|
5150
|
-
layoutGapClassName(styles$
|
|
5149
|
+
minColumnWidth === "regular" ? styles$v.minColumnRegular : styles$v.minColumnCompact,
|
|
5150
|
+
layoutGapClassName(styles$v, readGapProp(nodeProps.gap))
|
|
5151
5151
|
),
|
|
5152
5152
|
children: cells
|
|
5153
5153
|
}
|
|
@@ -5167,7 +5167,7 @@ const icon$1 = "agents_icon_-vlQJS";
|
|
|
5167
5167
|
const panel = "agents_panel_UrWx4M";
|
|
5168
5168
|
const placementStart = "agents_placementStart_zdT5vQ";
|
|
5169
5169
|
const placementEnd = "agents_placementEnd_TNjfqR";
|
|
5170
|
-
const styles$
|
|
5170
|
+
const styles$u = {
|
|
5171
5171
|
popover,
|
|
5172
5172
|
trigger,
|
|
5173
5173
|
triggerWrapper,
|
|
@@ -5220,18 +5220,18 @@ const Popover = (props) => {
|
|
|
5220
5220
|
}, [isOpen]);
|
|
5221
5221
|
if (label2 === void 0 || !hasExplanation) return null;
|
|
5222
5222
|
const labelContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5223
|
-
icon2 !== "none" ? /* @__PURE__ */ jsx(Icon, { className: styles$
|
|
5223
|
+
icon2 !== "none" ? /* @__PURE__ */ jsx(Icon, { className: styles$u.icon, name: ICON_NAMES[icon2] }) : null,
|
|
5224
5224
|
/* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(label2) })
|
|
5225
5225
|
] });
|
|
5226
5226
|
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$
|
|
5227
|
+
return /* @__PURE__ */ jsx("span", { className: styles$u.staticLabel, "data-testid": testId, children: labelContent });
|
|
5228
|
+
return /* @__PURE__ */ jsxs("span", { ref: popoverRef, className: styles$u.popover, children: [
|
|
5229
|
+
/* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: styles$u.triggerWrapper, children: /* @__PURE__ */ jsx(
|
|
5230
5230
|
"button",
|
|
5231
5231
|
{
|
|
5232
5232
|
ref: triggerRef,
|
|
5233
5233
|
type: "button",
|
|
5234
|
-
className: styles$
|
|
5234
|
+
className: styles$u.trigger,
|
|
5235
5235
|
"data-testid": testId,
|
|
5236
5236
|
"aria-expanded": isOpen,
|
|
5237
5237
|
"aria-controls": isOpen ? panelId : void 0,
|
|
@@ -5245,7 +5245,7 @@ const Popover = (props) => {
|
|
|
5245
5245
|
id: panelId,
|
|
5246
5246
|
role: "note",
|
|
5247
5247
|
"data-testid": `${testId}-panel`,
|
|
5248
|
-
className: classNames(styles$
|
|
5248
|
+
className: classNames(styles$u.panel, placement === "start" ? styles$u.placementStart : styles$u.placementEnd),
|
|
5249
5249
|
children: [
|
|
5250
5250
|
text2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "help", translate: false, children: escapePlainTextForText(text2) }) : null,
|
|
5251
5251
|
contentNodes
|
|
@@ -5264,7 +5264,7 @@ const button = "agents_button_bKxiw0";
|
|
|
5264
5264
|
const selected = "agents_selected_sDa7Ja";
|
|
5265
5265
|
const content = "agents_content_FRNdnX";
|
|
5266
5266
|
const padded = "agents_padded_huIgOm";
|
|
5267
|
-
const styles$
|
|
5267
|
+
const styles$t = {
|
|
5268
5268
|
pressable,
|
|
5269
5269
|
button,
|
|
5270
5270
|
selected,
|
|
@@ -5291,17 +5291,17 @@ const Pressable = (props) => {
|
|
|
5291
5291
|
return /* @__PURE__ */ jsx(
|
|
5292
5292
|
"div",
|
|
5293
5293
|
{
|
|
5294
|
-
className: classNames(styles$
|
|
5294
|
+
className: classNames(styles$t.pressable, styles$t.content, padsContent && styles$t.padded, isSelected && styles$t.selected),
|
|
5295
5295
|
"data-testid": testId,
|
|
5296
5296
|
children: contentNodes
|
|
5297
5297
|
}
|
|
5298
5298
|
);
|
|
5299
5299
|
}
|
|
5300
|
-
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$
|
|
5300
|
+
return /* @__PURE__ */ jsx(InteractiveSurface, { hoverable: true, className: classNames(styles$t.pressable, isSelected && styles$t.selected), children: /* @__PURE__ */ jsx(
|
|
5301
5301
|
"button",
|
|
5302
5302
|
{
|
|
5303
5303
|
type: "button",
|
|
5304
|
-
className: classNames(styles$
|
|
5304
|
+
className: classNames(styles$t.button, padsContent && styles$t.padded),
|
|
5305
5305
|
"data-testid": testId,
|
|
5306
5306
|
"aria-pressed": isSelected,
|
|
5307
5307
|
"aria-label": accessibleLabel,
|
|
@@ -5319,7 +5319,7 @@ const quote = "agents_quote_rRSqMr";
|
|
|
5319
5319
|
const quotedContent = "agents_quotedContent_Fnel3H";
|
|
5320
5320
|
const caption$3 = "agents_caption_CaGRKN";
|
|
5321
5321
|
const sourceLink = "agents_sourceLink_vqh-op";
|
|
5322
|
-
const styles$
|
|
5322
|
+
const styles$s = {
|
|
5323
5323
|
quote,
|
|
5324
5324
|
quotedContent,
|
|
5325
5325
|
caption: caption$3,
|
|
@@ -5340,18 +5340,18 @@ const Quote = (props) => {
|
|
|
5340
5340
|
if (!hasQuotedContent) return null;
|
|
5341
5341
|
const sourceLabel2 = source2?.name ?? source2?.url;
|
|
5342
5342
|
const canOpenSource = source2?.url !== void 0 && !runtime.isEmailRender;
|
|
5343
|
-
return /* @__PURE__ */ jsxs("figure", { className: styles$
|
|
5344
|
-
/* @__PURE__ */ jsxs("blockquote", { className: styles$
|
|
5343
|
+
return /* @__PURE__ */ jsxs("figure", { className: styles$s.quote, "data-testid": testId, children: [
|
|
5344
|
+
/* @__PURE__ */ jsxs("blockquote", { className: styles$s.quotedContent, cite: source2?.url, children: [
|
|
5345
5345
|
text2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "body", translate: false, children: escapePlainTextForText(text2) }) : null,
|
|
5346
5346
|
contentNodes
|
|
5347
5347
|
] }),
|
|
5348
|
-
attribution2 !== void 0 || sourceLabel2 !== void 0 ? /* @__PURE__ */ jsxs("figcaption", { className: styles$
|
|
5348
|
+
attribution2 !== void 0 || sourceLabel2 !== void 0 ? /* @__PURE__ */ jsxs("figcaption", { className: styles$s.caption, children: [
|
|
5349
5349
|
attribution2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(attribution2) }) : null,
|
|
5350
5350
|
attribution2 !== void 0 && sourceLabel2 !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-lightest)", translate: false, ariaHidden: true, children: "·" }) : null,
|
|
5351
5351
|
sourceLabel2 !== void 0 && canOpenSource ? /* @__PURE__ */ jsx(
|
|
5352
5352
|
AgentsLink,
|
|
5353
5353
|
{
|
|
5354
|
-
className: styles$
|
|
5354
|
+
className: styles$s.sourceLink,
|
|
5355
5355
|
href: source2?.url,
|
|
5356
5356
|
"data-testid": `${testId}-source`,
|
|
5357
5357
|
children: /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(sourceLabel2) })
|
|
@@ -5371,7 +5371,7 @@ const small = "agents_small_5YnNVj";
|
|
|
5371
5371
|
const medium = "agents_medium_z9bCN5";
|
|
5372
5372
|
const large = "agents_large_Rn-n5f";
|
|
5373
5373
|
const grow = "agents_grow_JyN4Uj";
|
|
5374
|
-
const styles$
|
|
5374
|
+
const styles$r = {
|
|
5375
5375
|
spacer,
|
|
5376
5376
|
small,
|
|
5377
5377
|
medium,
|
|
@@ -5383,7 +5383,7 @@ const Spacer = (props) => {
|
|
|
5383
5383
|
const { props: nodeProps } = props;
|
|
5384
5384
|
const size = readEnumProp(nodeProps.size, SIZES, "medium");
|
|
5385
5385
|
const isGrowing = readBooleanProp(nodeProps.grow, false);
|
|
5386
|
-
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: classNames(styles$
|
|
5386
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: classNames(styles$r.spacer, styles$r[size], isGrowing && styles$r.grow) });
|
|
5387
5387
|
};
|
|
5388
5388
|
const composedViewComponent$l = { nodeType: "Spacer", component: Spacer };
|
|
5389
5389
|
const __vite_glob_0_28 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -5408,7 +5408,7 @@ const gapXsmall = "agents_gapXsmall_OGRCNo";
|
|
|
5408
5408
|
const gapSmall = "agents_gapSmall_xGhwPm";
|
|
5409
5409
|
const gapMedium = "agents_gapMedium_yY8QRU";
|
|
5410
5410
|
const gapLarge = "agents_gapLarge_XH-WSg";
|
|
5411
|
-
const styles$
|
|
5411
|
+
const styles$q = {
|
|
5412
5412
|
stack,
|
|
5413
5413
|
column,
|
|
5414
5414
|
row,
|
|
@@ -5432,17 +5432,17 @@ const DIRECTIONS = ["row", "column"];
|
|
|
5432
5432
|
const ALIGNMENTS = ["start", "center", "end", "stretch", "baseline"];
|
|
5433
5433
|
const JUSTIFICATIONS = ["start", "center", "end", "between"];
|
|
5434
5434
|
const ALIGNMENT_CLASS_NAMES = {
|
|
5435
|
-
start: styles$
|
|
5436
|
-
center: styles$
|
|
5437
|
-
end: styles$
|
|
5438
|
-
stretch: styles$
|
|
5439
|
-
baseline: styles$
|
|
5435
|
+
start: styles$q.alignStart,
|
|
5436
|
+
center: styles$q.alignCenter,
|
|
5437
|
+
end: styles$q.alignEnd,
|
|
5438
|
+
stretch: styles$q.alignStretch,
|
|
5439
|
+
baseline: styles$q.alignBaseline
|
|
5440
5440
|
};
|
|
5441
5441
|
const JUSTIFICATION_CLASS_NAMES = {
|
|
5442
|
-
start: styles$
|
|
5443
|
-
center: styles$
|
|
5444
|
-
end: styles$
|
|
5445
|
-
between: styles$
|
|
5442
|
+
start: styles$q.justifyStart,
|
|
5443
|
+
center: styles$q.justifyCenter,
|
|
5444
|
+
end: styles$q.justifyEnd,
|
|
5445
|
+
between: styles$q.justifyBetween
|
|
5446
5446
|
};
|
|
5447
5447
|
const Stack = (props) => {
|
|
5448
5448
|
const { props: nodeProps, slots, runtime } = props;
|
|
@@ -5462,12 +5462,12 @@ const Stack = (props) => {
|
|
|
5462
5462
|
"div",
|
|
5463
5463
|
{
|
|
5464
5464
|
className: classNames(
|
|
5465
|
-
styles$
|
|
5466
|
-
styles$
|
|
5467
|
-
isWrapping && styles$
|
|
5465
|
+
styles$q.stack,
|
|
5466
|
+
styles$q[direction],
|
|
5467
|
+
isWrapping && styles$q.wrap,
|
|
5468
5468
|
ALIGNMENT_CLASS_NAMES[alignment],
|
|
5469
5469
|
JUSTIFICATION_CLASS_NAMES[justification],
|
|
5470
|
-
layoutGapClassName(styles$
|
|
5470
|
+
layoutGapClassName(styles$q, readGapProp(nodeProps.gap))
|
|
5471
5471
|
),
|
|
5472
5472
|
children
|
|
5473
5473
|
}
|
|
@@ -5487,7 +5487,7 @@ const titles = "agents_titles_hfEsqk";
|
|
|
5487
5487
|
const headerEnd$1 = "agents_headerEnd_-xQ-kL";
|
|
5488
5488
|
const body = "agents_body_tZtLtn";
|
|
5489
5489
|
const footer$1 = "agents_footer_OnUaT0";
|
|
5490
|
-
const styles$
|
|
5490
|
+
const styles$p = {
|
|
5491
5491
|
surface,
|
|
5492
5492
|
compact: compact$1,
|
|
5493
5493
|
media,
|
|
@@ -5525,11 +5525,11 @@ const Surface = (props) => {
|
|
|
5525
5525
|
level: isOutermost ? "elevated" : "flat",
|
|
5526
5526
|
compact: isCompact,
|
|
5527
5527
|
testId,
|
|
5528
|
-
className: classNames(styles$
|
|
5528
|
+
className: classNames(styles$p.surface, isCompact && styles$p.compact),
|
|
5529
5529
|
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$
|
|
5530
|
+
mediaNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: classNames(styles$p.media, isCompact && styles$p.compactMedia), children: mediaNodes }) : null,
|
|
5531
|
+
hasHeader ? /* @__PURE__ */ jsxs("div", { className: styles$p.header, children: [
|
|
5532
|
+
title2 !== void 0 || subtitle !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$p.titles, children: [
|
|
5533
5533
|
title2 !== void 0 ? /* @__PURE__ */ jsx(
|
|
5534
5534
|
Text,
|
|
5535
5535
|
{
|
|
@@ -5541,10 +5541,10 @@ const Surface = (props) => {
|
|
|
5541
5541
|
) : null,
|
|
5542
5542
|
subtitle !== void 0 ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(subtitle) }) : null
|
|
5543
5543
|
] }) : null,
|
|
5544
|
-
headerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
5544
|
+
headerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$p.headerEnd, children: headerNodes }) : null
|
|
5545
5545
|
] }) : null,
|
|
5546
|
-
bodyNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
5547
|
-
footerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
5546
|
+
bodyNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$p.body, children: bodyNodes }) : null,
|
|
5547
|
+
footerNodes.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$p.footer, children: footerNodes }) : null
|
|
5548
5548
|
] })
|
|
5549
5549
|
}
|
|
5550
5550
|
);
|
|
@@ -6471,16 +6471,16 @@ const __vite_glob_0_31 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
6471
6471
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6472
6472
|
const caption$2 = "agents_caption_ZO0ogf";
|
|
6473
6473
|
const wrap$2 = "agents_wrap_GVwVoM";
|
|
6474
|
-
const styles$
|
|
6474
|
+
const styles$o = {
|
|
6475
6475
|
caption: caption$2,
|
|
6476
6476
|
wrap: wrap$2
|
|
6477
6477
|
};
|
|
6478
6478
|
const MediaCaption = (props) => {
|
|
6479
6479
|
const { title: title2, caption: caption2 } = props;
|
|
6480
6480
|
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$
|
|
6481
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$o.caption, children: [
|
|
6482
|
+
title2 ? /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$o.wrap, children: title2 }) : null,
|
|
6483
|
+
caption2 ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", className: styles$o.wrap, children: caption2 }) : null
|
|
6484
6484
|
] });
|
|
6485
6485
|
};
|
|
6486
6486
|
const frame$2 = "agents_frame_QhqjEk";
|
|
@@ -6499,7 +6499,7 @@ const fallbackText = "agents_fallbackText_G8TPfd";
|
|
|
6499
6499
|
const hiddenCountChip = "agents_hiddenCountChip_QCkf8c";
|
|
6500
6500
|
const sourceChip = "agents_sourceChip_UBV1pB";
|
|
6501
6501
|
const openButton = "agents_openButton_BG-lWg";
|
|
6502
|
-
const styles$
|
|
6502
|
+
const styles$n = {
|
|
6503
6503
|
frame: frame$2,
|
|
6504
6504
|
frameCompact,
|
|
6505
6505
|
ratioSquare,
|
|
@@ -6531,12 +6531,12 @@ const useImageLoadState = (src) => {
|
|
|
6531
6531
|
return { loadState, imageRef, markLoaded, markFailed };
|
|
6532
6532
|
};
|
|
6533
6533
|
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$
|
|
6534
|
+
"1:1": styles$n.ratioSquare,
|
|
6535
|
+
"4:3": styles$n.ratioFourByThree,
|
|
6536
|
+
"3:2": styles$n.ratioThreeByTwo,
|
|
6537
|
+
"5:4": styles$n.ratioFiveByFour,
|
|
6538
|
+
"16:9": styles$n.ratioSixteenByNine,
|
|
6539
|
+
"3:4": styles$n.ratioThreeByFour
|
|
6540
6540
|
};
|
|
6541
6541
|
const MediaImageTile = (props) => {
|
|
6542
6542
|
const {
|
|
@@ -6556,19 +6556,19 @@ const MediaImageTile = (props) => {
|
|
|
6556
6556
|
onLoadFailed?.();
|
|
6557
6557
|
};
|
|
6558
6558
|
const frameClassName = classNames(
|
|
6559
|
-
styles$
|
|
6559
|
+
styles$n.frame,
|
|
6560
6560
|
ASPECT_RATIO_CLASS_NAMES[aspectRatio],
|
|
6561
|
-
isCompact && styles$
|
|
6561
|
+
isCompact && styles$n.frameCompact
|
|
6562
6562
|
);
|
|
6563
6563
|
const frameContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6564
|
-
loadState === "failed" ? /* @__PURE__ */ jsxs("span", { className: styles$
|
|
6564
|
+
loadState === "failed" ? /* @__PURE__ */ jsxs("span", { className: styles$n.fallback, children: [
|
|
6565
6565
|
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", name: "image" }),
|
|
6566
|
-
/* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg)", className: styles$
|
|
6566
|
+
/* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg)", className: styles$n.fallbackText, children: image2.alt })
|
|
6567
6567
|
] }) : /* @__PURE__ */ jsx(
|
|
6568
6568
|
"img",
|
|
6569
6569
|
{
|
|
6570
6570
|
ref: imageRef,
|
|
6571
|
-
className: classNames(styles$
|
|
6571
|
+
className: classNames(styles$n.image, fit === "contain" && styles$n.imageContain),
|
|
6572
6572
|
src: image2.src,
|
|
6573
6573
|
alt: image2.alt,
|
|
6574
6574
|
loading: isEager ? "eager" : "lazy",
|
|
@@ -6577,9 +6577,9 @@ const MediaImageTile = (props) => {
|
|
|
6577
6577
|
onError: markFailed
|
|
6578
6578
|
}
|
|
6579
6579
|
),
|
|
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$
|
|
6580
|
+
loadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$n.skeleton }) : null,
|
|
6581
|
+
image2.source && !isCompact ? /* @__PURE__ */ jsx("span", { className: styles$n.sourceChip, children: /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-on-dark)", ellipsis: true, children: image2.source.name }) }) : null,
|
|
6582
|
+
hiddenImageCount > 0 ? /* @__PURE__ */ jsxs("span", { className: styles$n.hiddenCountChip, children: [
|
|
6583
6583
|
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-on-dark)", name: "photo" }),
|
|
6584
6584
|
/* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-on-dark)", translate: false, children: `+${hiddenImageCount}` })
|
|
6585
6585
|
] }) : null
|
|
@@ -6598,7 +6598,7 @@ const MediaImageTile = (props) => {
|
|
|
6598
6598
|
"button",
|
|
6599
6599
|
{
|
|
6600
6600
|
type: "button",
|
|
6601
|
-
className: styles$
|
|
6601
|
+
className: styles$n.openButton,
|
|
6602
6602
|
"aria-label": openLabel,
|
|
6603
6603
|
onClick: onOpen,
|
|
6604
6604
|
"data-testid": testId ? `${testId}-open` : void 0
|
|
@@ -6705,7 +6705,7 @@ const imageCompact = "agents_imageCompact_h-8KKS";
|
|
|
6705
6705
|
const pendingFrame = "agents_pendingFrame_KPTkbn";
|
|
6706
6706
|
const pendingFrameCompact = "agents_pendingFrameCompact_3mI5Mt";
|
|
6707
6707
|
const pendingSkeleton$1 = "agents_pendingSkeleton_LxA7up";
|
|
6708
|
-
const styles$
|
|
6708
|
+
const styles$m = {
|
|
6709
6709
|
image,
|
|
6710
6710
|
imageCompact,
|
|
6711
6711
|
pendingFrame,
|
|
@@ -6739,16 +6739,16 @@ const ImageNode = (props) => {
|
|
|
6739
6739
|
return /* @__PURE__ */ jsx(
|
|
6740
6740
|
"span",
|
|
6741
6741
|
{
|
|
6742
|
-
className: classNames(styles$
|
|
6742
|
+
className: classNames(styles$m.pendingFrame, isCompact && styles$m.pendingFrameCompact),
|
|
6743
6743
|
"aria-busy": "true",
|
|
6744
6744
|
"data-testid": `${testId}-skeleton`,
|
|
6745
|
-
children: /* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
6745
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: styles$m.pendingSkeleton })
|
|
6746
6746
|
}
|
|
6747
6747
|
);
|
|
6748
6748
|
}
|
|
6749
6749
|
if (!image2) return null;
|
|
6750
6750
|
const openLightbox = runtime.isEmailRender || isInsidePressable ? void 0 : () => openMediaImagesLightbox([image2], 0);
|
|
6751
|
-
return /* @__PURE__ */ jsxs("figure", { className: classNames(styles$
|
|
6751
|
+
return /* @__PURE__ */ jsxs("figure", { className: classNames(styles$m.image, isCompact && styles$m.imageCompact), "data-testid": testId, children: [
|
|
6752
6752
|
/* @__PURE__ */ jsx(
|
|
6753
6753
|
MediaImageTile,
|
|
6754
6754
|
{
|
|
@@ -6785,7 +6785,7 @@ const carouselPosition = "agents_carouselPosition_3Vgxq3";
|
|
|
6785
6785
|
const pendingTile = "agents_pendingTile_3yCaZK";
|
|
6786
6786
|
const pendingTileCompact = "agents_pendingTileCompact_LboHtT";
|
|
6787
6787
|
const pendingSkeleton = "agents_pendingSkeleton_Vn-s3o";
|
|
6788
|
-
const styles$
|
|
6788
|
+
const styles$l = {
|
|
6789
6789
|
grid,
|
|
6790
6790
|
gridCompact,
|
|
6791
6791
|
tile: tile$1,
|
|
@@ -6811,7 +6811,7 @@ const ImageGroupGrid = (props) => {
|
|
|
6811
6811
|
const { images, aspectRatio, isEmailRender, isInsidePressable, onImageLoadFailed, maxVisibleTiles, isCompact, testId } = props;
|
|
6812
6812
|
const visibleImages = images.slice(0, maxVisibleTiles);
|
|
6813
6813
|
const hiddenImageCount = images.length - visibleImages.length;
|
|
6814
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
6814
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$l.grid, isCompact && styles$l.gridCompact), "data-testid": testId, children: visibleImages.map((image2, imageIndex) => /* @__PURE__ */ jsxs("figure", { className: styles$l.tile, children: [
|
|
6815
6815
|
/* @__PURE__ */ jsx(
|
|
6816
6816
|
MediaImageTile,
|
|
6817
6817
|
{
|
|
@@ -6831,8 +6831,8 @@ const ImageGroupGrid = (props) => {
|
|
|
6831
6831
|
const ImageGroupMagazine = (props) => {
|
|
6832
6832
|
const { images, aspectRatio, heroAspectRatio, isEmailRender, isInsidePressable, onImageLoadFailed, testId } = props;
|
|
6833
6833
|
const [heroImage, ...tileImages] = images;
|
|
6834
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
6835
|
-
/* @__PURE__ */ jsxs("figure", { className: styles$
|
|
6834
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$l.magazine, "data-testid": testId, children: [
|
|
6835
|
+
/* @__PURE__ */ jsxs("figure", { className: styles$l.tile, children: [
|
|
6836
6836
|
/* @__PURE__ */ jsx(
|
|
6837
6837
|
MediaImageTile,
|
|
6838
6838
|
{
|
|
@@ -6846,7 +6846,7 @@ const ImageGroupMagazine = (props) => {
|
|
|
6846
6846
|
),
|
|
6847
6847
|
/* @__PURE__ */ jsx(MediaCaption, { title: heroImage.title, caption: heroImage.caption })
|
|
6848
6848
|
] }),
|
|
6849
|
-
tileImages.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
6849
|
+
tileImages.length > 0 ? /* @__PURE__ */ jsx("div", { className: styles$l.grid, children: tileImages.map((image2, tileIndex) => /* @__PURE__ */ jsxs("figure", { className: styles$l.tile, children: [
|
|
6850
6850
|
/* @__PURE__ */ jsx(
|
|
6851
6851
|
MediaImageTile,
|
|
6852
6852
|
{
|
|
@@ -6868,12 +6868,12 @@ const CarouselStepButton = (props) => {
|
|
|
6868
6868
|
InteractiveSurface,
|
|
6869
6869
|
{
|
|
6870
6870
|
hoverable: !isDisabled,
|
|
6871
|
-
className: classNames(styles$
|
|
6871
|
+
className: classNames(styles$l.carouselButton, className, isDisabled && styles$l.carouselButtonDisabled),
|
|
6872
6872
|
children: /* @__PURE__ */ jsx(
|
|
6873
6873
|
"button",
|
|
6874
6874
|
{
|
|
6875
6875
|
type: "button",
|
|
6876
|
-
className: styles$
|
|
6876
|
+
className: styles$l.carouselButtonTarget,
|
|
6877
6877
|
"aria-label": label2,
|
|
6878
6878
|
"data-testid": testId,
|
|
6879
6879
|
disabled: isDisabled,
|
|
@@ -6899,14 +6899,14 @@ const ImageGroupCarousel = (props) => {
|
|
|
6899
6899
|
return /* @__PURE__ */ jsxs(
|
|
6900
6900
|
"div",
|
|
6901
6901
|
{
|
|
6902
|
-
className: styles$
|
|
6902
|
+
className: styles$l.carousel,
|
|
6903
6903
|
"data-testid": testId,
|
|
6904
6904
|
role: "group",
|
|
6905
6905
|
"aria-roledescription": "carousel",
|
|
6906
6906
|
tabIndex: hasControls ? 0 : void 0,
|
|
6907
6907
|
onKeyDown: hasControls ? showImageForKey : void 0,
|
|
6908
6908
|
children: [
|
|
6909
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
6909
|
+
/* @__PURE__ */ jsxs("div", { className: styles$l.carouselStage, children: [
|
|
6910
6910
|
/* @__PURE__ */ jsx(
|
|
6911
6911
|
MediaImageTile,
|
|
6912
6912
|
{
|
|
@@ -6925,7 +6925,7 @@ const ImageGroupCarousel = (props) => {
|
|
|
6925
6925
|
{
|
|
6926
6926
|
label: translateText("Previous picture"),
|
|
6927
6927
|
icon: "arrowLeft",
|
|
6928
|
-
className: styles$
|
|
6928
|
+
className: styles$l.carouselButtonPrevious,
|
|
6929
6929
|
isDisabled: currentImageIndex === 0,
|
|
6930
6930
|
onStep: () => showImage(currentImageIndex - 1),
|
|
6931
6931
|
testId: `${testId}-previous`
|
|
@@ -6936,13 +6936,13 @@ const ImageGroupCarousel = (props) => {
|
|
|
6936
6936
|
{
|
|
6937
6937
|
label: translateText("Next picture"),
|
|
6938
6938
|
icon: "arrowRight",
|
|
6939
|
-
className: styles$
|
|
6939
|
+
className: styles$l.carouselButtonNext,
|
|
6940
6940
|
isDisabled: currentImageIndex === lastImageIndex,
|
|
6941
6941
|
onStep: () => showImage(currentImageIndex + 1),
|
|
6942
6942
|
testId: `${testId}-next`
|
|
6943
6943
|
}
|
|
6944
6944
|
),
|
|
6945
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
6945
|
+
/* @__PURE__ */ jsx("span", { className: styles$l.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
6946
|
] }) : null
|
|
6947
6947
|
] }),
|
|
6948
6948
|
/* @__PURE__ */ jsx(MediaCaption, { title: currentImage.title, caption: currentImage.caption })
|
|
@@ -7001,10 +7001,10 @@ const ImageGroupNode = (props) => {
|
|
|
7001
7001
|
return /* @__PURE__ */ jsx(
|
|
7002
7002
|
"div",
|
|
7003
7003
|
{
|
|
7004
|
-
className: classNames(styles$
|
|
7004
|
+
className: classNames(styles$l.grid, isCompact && styles$l.gridCompact),
|
|
7005
7005
|
"aria-busy": "true",
|
|
7006
7006
|
"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$
|
|
7007
|
+
children: Array.from({ length: isCompact ? COMPACT_MAX_VISIBLE_TILES : PENDING_TILE_COUNT }, (unused, tileIndex) => /* @__PURE__ */ jsx("span", { className: classNames(styles$l.pendingTile, isCompact && styles$l.pendingTileCompact), children: /* @__PURE__ */ jsx(Skeleton, { className: styles$l.pendingSkeleton }) }, tileIndex))
|
|
7008
7008
|
}
|
|
7009
7009
|
);
|
|
7010
7010
|
}
|
|
@@ -7058,7 +7058,7 @@ const playButton$1 = "agents_playButton_vUbsU1";
|
|
|
7058
7058
|
const text$2 = "agents_text_po8tsX";
|
|
7059
7059
|
const wrap$1 = "agents_wrap_Y3ml8c";
|
|
7060
7060
|
const openLink$1 = "agents_openLink_Aj8YwO";
|
|
7061
|
-
const styles$
|
|
7061
|
+
const styles$k = {
|
|
7062
7062
|
video,
|
|
7063
7063
|
videoCompact,
|
|
7064
7064
|
frame: frame$1,
|
|
@@ -7110,10 +7110,10 @@ const VideoNode = (props) => {
|
|
|
7110
7110
|
return /* @__PURE__ */ jsx(
|
|
7111
7111
|
"span",
|
|
7112
7112
|
{
|
|
7113
|
-
className: classNames(styles$
|
|
7113
|
+
className: classNames(styles$k.video, isCompact && styles$k.videoCompact),
|
|
7114
7114
|
"aria-busy": "true",
|
|
7115
7115
|
"data-testid": `${testId}-skeleton`,
|
|
7116
|
-
children: /* @__PURE__ */ jsx("span", { className: styles$
|
|
7116
|
+
children: /* @__PURE__ */ jsx("span", { className: styles$k.frame, children: /* @__PURE__ */ jsx(Skeleton, { className: styles$k.frameSkeleton }) })
|
|
7117
7117
|
}
|
|
7118
7118
|
);
|
|
7119
7119
|
}
|
|
@@ -7130,10 +7130,10 @@ const VideoNode = (props) => {
|
|
|
7130
7130
|
};
|
|
7131
7131
|
const metaLine2 = [channel, duration].filter((metaPart) => metaPart !== void 0).join(" · ");
|
|
7132
7132
|
const sourceName = source2 && source2.name !== channel ? source2.name : void 0;
|
|
7133
|
-
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7133
|
+
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$k.frame, children: /* @__PURE__ */ jsx(
|
|
7134
7134
|
"iframe",
|
|
7135
7135
|
{
|
|
7136
|
-
className: styles$
|
|
7136
|
+
className: styles$k.player,
|
|
7137
7137
|
"data-testid": `${testId}-player`,
|
|
7138
7138
|
src: buildVideoEmbedUrl(videoId),
|
|
7139
7139
|
title: title2,
|
|
@@ -7141,12 +7141,12 @@ const VideoNode = (props) => {
|
|
|
7141
7141
|
allowFullScreen: true,
|
|
7142
7142
|
referrerPolicy: "strict-origin-when-cross-origin"
|
|
7143
7143
|
}
|
|
7144
|
-
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: canOpen, className: styles$
|
|
7144
|
+
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: canOpen, className: styles$k.frame, children: [
|
|
7145
7145
|
showThumbnail ? /* @__PURE__ */ jsx(
|
|
7146
7146
|
"img",
|
|
7147
7147
|
{
|
|
7148
7148
|
ref: thumbnailRef,
|
|
7149
|
-
className: styles$
|
|
7149
|
+
className: styles$k.thumbnail,
|
|
7150
7150
|
src: thumbnailUrl,
|
|
7151
7151
|
alt: "",
|
|
7152
7152
|
loading: isEmailRender ? "eager" : "lazy",
|
|
@@ -7155,14 +7155,14 @@ const VideoNode = (props) => {
|
|
|
7155
7155
|
onError: markThumbnailFailed
|
|
7156
7156
|
}
|
|
7157
7157
|
) : null,
|
|
7158
|
-
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
7159
|
-
/* @__PURE__ */ jsx("span", { className: classNames(styles$
|
|
7160
|
-
duration ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7158
|
+
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$k.frameSkeleton }) : null,
|
|
7159
|
+
/* @__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" }) }),
|
|
7160
|
+
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,
|
|
7161
7161
|
canOpen ? /* @__PURE__ */ jsx(
|
|
7162
7162
|
"button",
|
|
7163
7163
|
{
|
|
7164
7164
|
type: "button",
|
|
7165
|
-
className: styles$
|
|
7165
|
+
className: styles$k.playButton,
|
|
7166
7166
|
"data-testid": `${testId}-play`,
|
|
7167
7167
|
"aria-label": translateText("Play the video %title%", { title: title2 }),
|
|
7168
7168
|
onClick: playVideo
|
|
@@ -7170,22 +7170,22 @@ const VideoNode = (props) => {
|
|
|
7170
7170
|
) : null
|
|
7171
7171
|
] });
|
|
7172
7172
|
if (isCompact) {
|
|
7173
|
-
return /* @__PURE__ */ jsxs("span", { className: classNames(styles$
|
|
7173
|
+
return /* @__PURE__ */ jsxs("span", { className: classNames(styles$k.video, styles$k.videoCompact), "data-testid": testId, children: [
|
|
7174
7174
|
frame2,
|
|
7175
7175
|
/* @__PURE__ */ jsx(ModelText, { role: "caption", ellipsis: true, children: title2 })
|
|
7176
7176
|
] });
|
|
7177
7177
|
}
|
|
7178
|
-
return /* @__PURE__ */ jsxs("figure", { className: styles$
|
|
7178
|
+
return /* @__PURE__ */ jsxs("figure", { className: styles$k.video, "data-testid": testId, children: [
|
|
7179
7179
|
frame2,
|
|
7180
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
7181
|
-
/* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$
|
|
7180
|
+
/* @__PURE__ */ jsxs("span", { className: styles$k.text, children: [
|
|
7181
|
+
/* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$k.wrap, children: title2 }),
|
|
7182
7182
|
metaLine2 ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", children: metaLine2 }) : null,
|
|
7183
7183
|
sourceName ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-lightest)", children: sourceName }) : null
|
|
7184
7184
|
] }),
|
|
7185
7185
|
canOpen && watchUrl ? /* @__PURE__ */ jsxs(
|
|
7186
7186
|
AgentsLink,
|
|
7187
7187
|
{
|
|
7188
|
-
className: styles$
|
|
7188
|
+
className: styles$k.openLink,
|
|
7189
7189
|
href: watchUrl,
|
|
7190
7190
|
"data-testid": `${testId}-open-link`,
|
|
7191
7191
|
children: [
|
|
@@ -7235,7 +7235,7 @@ const metaPhrase = "agents_metaPhrase_Kh3c5I";
|
|
|
7235
7235
|
const titleSkeleton = "agents_titleSkeleton_oRueor";
|
|
7236
7236
|
const metaSkeleton = "agents_metaSkeleton_5rFS57";
|
|
7237
7237
|
const openLink = "agents_openLink_WBY-fX";
|
|
7238
|
-
const styles$
|
|
7238
|
+
const styles$j = {
|
|
7239
7239
|
card,
|
|
7240
7240
|
cardElevated,
|
|
7241
7241
|
cardFlat,
|
|
@@ -7294,22 +7294,22 @@ const VideoWidgetNode = (props) => {
|
|
|
7294
7294
|
reportNodeStatus("mounted");
|
|
7295
7295
|
}, [isPending, title2, videoId, reportNodeStatus]);
|
|
7296
7296
|
const cardClassName = classNames(
|
|
7297
|
-
styles$
|
|
7298
|
-
isInsideSurface ? styles$
|
|
7299
|
-
isCompact && styles$
|
|
7297
|
+
styles$j.card,
|
|
7298
|
+
isInsideSurface ? styles$j.cardFlat : styles$j.cardElevated,
|
|
7299
|
+
isCompact && styles$j.cardCompact
|
|
7300
7300
|
);
|
|
7301
7301
|
if (isPending) {
|
|
7302
7302
|
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$
|
|
7303
|
+
/* @__PURE__ */ jsx("span", { className: styles$j.frame, children: /* @__PURE__ */ jsx(Skeleton, { className: styles$j.frameSkeleton }) }),
|
|
7304
|
+
/* @__PURE__ */ jsxs("span", { className: styles$j.text, children: [
|
|
7305
|
+
/* @__PURE__ */ jsx(Skeleton, { className: styles$j.titleSkeleton }),
|
|
7306
|
+
/* @__PURE__ */ jsx(Skeleton, { className: styles$j.metaSkeleton })
|
|
7307
7307
|
] })
|
|
7308
7308
|
] });
|
|
7309
7309
|
}
|
|
7310
7310
|
if (!title2) return null;
|
|
7311
7311
|
if (!videoId) {
|
|
7312
|
-
return /* @__PURE__ */ jsx("span", { className: cardClassName, "data-testid": testId, children: /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$
|
|
7312
|
+
return /* @__PURE__ */ jsx("span", { className: cardClassName, "data-testid": testId, children: /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$j.wrap, children: title2 }) });
|
|
7313
7313
|
}
|
|
7314
7314
|
const watchUrl = videoId ? buildVideoWatchUrl(videoId) : void 0;
|
|
7315
7315
|
const hasControls = videoId !== void 0 && !isEmailRender && !isInsidePressable;
|
|
@@ -7322,10 +7322,10 @@ const VideoWidgetNode = (props) => {
|
|
|
7322
7322
|
}
|
|
7323
7323
|
if (watchUrl) openLink2(watchUrl);
|
|
7324
7324
|
};
|
|
7325
|
-
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7325
|
+
const frame2 = isPlaying && videoId ? /* @__PURE__ */ jsx("span", { className: styles$j.frame, children: /* @__PURE__ */ jsx(
|
|
7326
7326
|
"iframe",
|
|
7327
7327
|
{
|
|
7328
|
-
className: styles$
|
|
7328
|
+
className: styles$j.player,
|
|
7329
7329
|
"data-testid": `${testId}-player`,
|
|
7330
7330
|
src: buildVideoEmbedUrl(videoId),
|
|
7331
7331
|
title: title2,
|
|
@@ -7333,12 +7333,12 @@ const VideoWidgetNode = (props) => {
|
|
|
7333
7333
|
allowFullScreen: true,
|
|
7334
7334
|
referrerPolicy: "strict-origin-when-cross-origin"
|
|
7335
7335
|
}
|
|
7336
|
-
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: hasControls, className: styles$
|
|
7336
|
+
) }) : /* @__PURE__ */ jsxs(InteractiveSurface, { hoverable: hasControls, className: styles$j.frame, children: [
|
|
7337
7337
|
showThumbnail ? /* @__PURE__ */ jsx(
|
|
7338
7338
|
"img",
|
|
7339
7339
|
{
|
|
7340
7340
|
ref: thumbnailRef,
|
|
7341
|
-
className: styles$
|
|
7341
|
+
className: styles$j.thumbnail,
|
|
7342
7342
|
src: thumbnailUrl,
|
|
7343
7343
|
alt: "",
|
|
7344
7344
|
loading: isEmailRender ? "eager" : "lazy",
|
|
@@ -7347,14 +7347,14 @@ const VideoWidgetNode = (props) => {
|
|
|
7347
7347
|
onError: markThumbnailFailed
|
|
7348
7348
|
}
|
|
7349
7349
|
) : null,
|
|
7350
|
-
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$
|
|
7351
|
-
/* @__PURE__ */ jsx("span", { className: classNames(styles$
|
|
7352
|
-
duration ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
7350
|
+
showThumbnail && thumbnailLoadState === "loading" ? /* @__PURE__ */ jsx(Skeleton, { className: styles$j.frameSkeleton }) : null,
|
|
7351
|
+
/* @__PURE__ */ jsx("span", { className: classNames(styles$j.playBadge, isCompact && styles$j.playBadgeCompact), "aria-hidden": "true", children: /* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-on-dark)", name: "play" }) }),
|
|
7352
|
+
duration ? /* @__PURE__ */ jsx("span", { className: styles$j.durationChip, children: /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-on-dark)", translate: false, children: duration }) }) : null,
|
|
7353
7353
|
hasControls ? /* @__PURE__ */ jsx(
|
|
7354
7354
|
"button",
|
|
7355
7355
|
{
|
|
7356
7356
|
type: "button",
|
|
7357
|
-
className: styles$
|
|
7357
|
+
className: styles$j.playButton,
|
|
7358
7358
|
"data-testid": `${testId}-play`,
|
|
7359
7359
|
"aria-label": translateText("Play the video %title%", { title: title2 }),
|
|
7360
7360
|
onClick: playVideo
|
|
@@ -7364,7 +7364,7 @@ const VideoWidgetNode = (props) => {
|
|
|
7364
7364
|
if (isCompact) {
|
|
7365
7365
|
return /* @__PURE__ */ jsxs("span", { className: cardClassName, "data-testid": testId, children: [
|
|
7366
7366
|
frame2,
|
|
7367
|
-
/* @__PURE__ */ jsx(ModelText, { role: "caption", weight: "medium", className: styles$
|
|
7367
|
+
/* @__PURE__ */ jsx(ModelText, { role: "caption", weight: "medium", className: styles$j.compactTitle, children: title2 })
|
|
7368
7368
|
] });
|
|
7369
7369
|
}
|
|
7370
7370
|
const statisticPhrases = [
|
|
@@ -7383,10 +7383,10 @@ const VideoWidgetNode = (props) => {
|
|
|
7383
7383
|
].filter((statisticPhrase) => statisticPhrase !== null);
|
|
7384
7384
|
return /* @__PURE__ */ jsxs("article", { className: cardClassName, "data-testid": testId, children: [
|
|
7385
7385
|
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$
|
|
7386
|
+
/* @__PURE__ */ jsxs("span", { className: styles$j.text, children: [
|
|
7387
|
+
/* @__PURE__ */ jsx("span", { className: styles$j.title, title: title2, children: /* @__PURE__ */ jsx(ModelText, { role: "body", weight: "bold", className: styles$j.titleText, children: title2 }) }),
|
|
7388
|
+
channel ? /* @__PURE__ */ jsx(ModelText, { role: "caption", color: "var(--agents-fg-light)", className: styles$j.wrap, children: channel }) : null,
|
|
7389
|
+
statisticPhrases.length > 0 ? /* @__PURE__ */ jsx("span", { className: styles$j.metaLine, children: statisticPhrases.map((statisticPhrase, phraseIndex) => /* @__PURE__ */ jsxs("span", { className: styles$j.metaPhrase, children: [
|
|
7390
7390
|
phraseIndex > 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", color: "var(--agents-fg-lightest)", translate: false, children: "·" }) : null,
|
|
7391
7391
|
statisticPhrase
|
|
7392
7392
|
] }, phraseIndex)) }) : null
|
|
@@ -7394,7 +7394,7 @@ const VideoWidgetNode = (props) => {
|
|
|
7394
7394
|
hasControls && watchUrl ? /* @__PURE__ */ jsxs(
|
|
7395
7395
|
AgentsLink,
|
|
7396
7396
|
{
|
|
7397
|
-
className: styles$
|
|
7397
|
+
className: styles$j.openLink,
|
|
7398
7398
|
href: watchUrl,
|
|
7399
7399
|
"data-testid": `${testId}-open-link`,
|
|
7400
7400
|
children: [
|
|
@@ -7536,7 +7536,7 @@ const compact = "agents_compact_DpYcfU";
|
|
|
7536
7536
|
const skeleton$1 = "agents_skeleton_-WUgmj";
|
|
7537
7537
|
const badge$1 = "agents_badge_IPtLgF";
|
|
7538
7538
|
const tile = "agents_tile_yJK-vF";
|
|
7539
|
-
const styles$
|
|
7539
|
+
const styles$i = {
|
|
7540
7540
|
header,
|
|
7541
7541
|
heading: heading$1,
|
|
7542
7542
|
headerEnd,
|
|
@@ -7553,15 +7553,15 @@ const RichNodeFrame = (props) => {
|
|
|
7553
7553
|
const isRoot = sizeClass === "full";
|
|
7554
7554
|
const hasHeader = Boolean(title2) || badge2 !== void 0 || actions2 !== void 0;
|
|
7555
7555
|
const content2 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7556
|
-
hasHeader ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
7557
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
7556
|
+
hasHeader ? /* @__PURE__ */ jsxs("div", { className: styles$i.header, children: [
|
|
7557
|
+
/* @__PURE__ */ jsxs("div", { className: styles$i.heading, children: [
|
|
7558
7558
|
title2 ? /* @__PURE__ */ jsx(
|
|
7559
7559
|
Text,
|
|
7560
7560
|
{
|
|
7561
7561
|
role: isRoot ? "intro" : "body",
|
|
7562
7562
|
weight: "bold",
|
|
7563
7563
|
translate: false,
|
|
7564
|
-
className: styles$
|
|
7564
|
+
className: styles$i.wrappingText,
|
|
7565
7565
|
children: escapePlainTextForText(title2)
|
|
7566
7566
|
}
|
|
7567
7567
|
) : null,
|
|
@@ -7571,32 +7571,32 @@ const RichNodeFrame = (props) => {
|
|
|
7571
7571
|
role: "help",
|
|
7572
7572
|
color: "var(--agents-fg-light)",
|
|
7573
7573
|
translate: false,
|
|
7574
|
-
className: styles$
|
|
7574
|
+
className: styles$i.wrappingText,
|
|
7575
7575
|
children: escapePlainTextForText(caption2)
|
|
7576
7576
|
}
|
|
7577
7577
|
) : null
|
|
7578
7578
|
] }),
|
|
7579
|
-
badge2 !== void 0 || actions2 !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
7579
|
+
badge2 !== void 0 || actions2 !== void 0 ? /* @__PURE__ */ jsxs("div", { className: styles$i.headerEnd, children: [
|
|
7580
7580
|
badge2,
|
|
7581
7581
|
actions2
|
|
7582
7582
|
] }) : null
|
|
7583
7583
|
] }) : null,
|
|
7584
7584
|
children,
|
|
7585
|
-
footer2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
7585
|
+
footer2 ? /* @__PURE__ */ jsx("div", { className: styles$i.footer, children: footer2 }) : null
|
|
7586
7586
|
] });
|
|
7587
7587
|
if (isRoot)
|
|
7588
7588
|
return /* @__PURE__ */ jsx(WidgetSurface, { level: "elevated", testId, children: content2 });
|
|
7589
7589
|
if (isTileWhenNested)
|
|
7590
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
7591
|
-
return /* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
7590
|
+
return /* @__PURE__ */ jsx("div", { className: styles$i.tile, "data-testid": testId, children: content2 });
|
|
7591
|
+
return /* @__PURE__ */ jsx("div", { className: classNames(styles$i.nested, sizeClass === "compact" && styles$i.compact), "data-testid": testId, children: content2 });
|
|
7592
7592
|
};
|
|
7593
7593
|
const RichNodeContentSkeleton = (props) => {
|
|
7594
7594
|
const { height, testId } = props;
|
|
7595
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
7595
|
+
return /* @__PURE__ */ jsx("div", { className: styles$i.skeleton, "aria-busy": "true", "data-testid": testId, children: /* @__PURE__ */ jsx(SkeletonLine, { width: "100%", height, radius: 12 }) });
|
|
7596
7596
|
};
|
|
7597
7597
|
const RichNodeBadge = (props) => {
|
|
7598
7598
|
const { children } = props;
|
|
7599
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
7599
|
+
return /* @__PURE__ */ jsx("span", { className: styles$i.badge, children: /* @__PURE__ */ jsx(Text, { role: "caption", weight: "medium", color: "var(--agents-fg-light)", translate: false, children: escapePlainTextForText(children) }) });
|
|
7600
7600
|
};
|
|
7601
7601
|
const actions = "agents_actions_pp5-uO";
|
|
7602
7602
|
const codeArea = "agents_codeArea_rGS9h8";
|
|
@@ -7604,7 +7604,7 @@ const clipped = "agents_clipped_sJ6UtK";
|
|
|
7604
7604
|
const code = "agents_code_ZjGPAo";
|
|
7605
7605
|
const wrapped = "agents_wrapped_OEeVIP";
|
|
7606
7606
|
const expandRow = "agents_expandRow_z5yKIH";
|
|
7607
|
-
const styles$
|
|
7607
|
+
const styles$h = {
|
|
7608
7608
|
actions,
|
|
7609
7609
|
codeArea,
|
|
7610
7610
|
clipped,
|
|
@@ -7687,7 +7687,7 @@ const CodeNode = (props) => {
|
|
|
7687
7687
|
if (code2 === "") return null;
|
|
7688
7688
|
const linesWrap = isWrapped || isEmailRender;
|
|
7689
7689
|
const isClipped = isCollapsible && !isExpanded;
|
|
7690
|
-
const actions2 = isEmailRender ? void 0 : /* @__PURE__ */ jsx(ConversationWidgetActions, { children: /* @__PURE__ */ jsxs("div", { className: styles$
|
|
7690
|
+
const actions2 = isEmailRender ? void 0 : /* @__PURE__ */ jsx(ConversationWidgetActions, { children: /* @__PURE__ */ jsxs("div", { className: styles$h.actions, children: [
|
|
7691
7691
|
/* @__PURE__ */ jsx(
|
|
7692
7692
|
Button,
|
|
7693
7693
|
{
|
|
@@ -7722,8 +7722,8 @@ const CodeNode = (props) => {
|
|
|
7722
7722
|
isTileWhenNested: true,
|
|
7723
7723
|
testId,
|
|
7724
7724
|
children: [
|
|
7725
|
-
/* @__PURE__ */ jsx("div", { className: classNames(styles$
|
|
7726
|
-
isCollapsible && !isEmailRender ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
7725
|
+
/* @__PURE__ */ jsx("div", { className: classNames(styles$h.codeArea, isClipped && styles$h.clipped), children: highlighting.status === "highlighted" ? /* @__PURE__ */ jsx("pre", { className: classNames(styles$h.code, linesWrap && styles$h.wrapped), children: /* @__PURE__ */ jsx("code", { className: "hljs", dangerouslySetInnerHTML: { __html: highlighting.html } }) }) : /* @__PURE__ */ jsx("pre", { className: classNames(styles$h.code, linesWrap && styles$h.wrapped), children: /* @__PURE__ */ jsx("code", { children: code2 }) }) }),
|
|
7726
|
+
isCollapsible && !isEmailRender ? /* @__PURE__ */ jsx("div", { className: styles$h.expandRow, children: /* @__PURE__ */ jsx(
|
|
7727
7727
|
Button,
|
|
7728
7728
|
{
|
|
7729
7729
|
variant: "muted",
|
|
@@ -7901,7 +7901,7 @@ const useColorSchemeRevision = () => {
|
|
|
7901
7901
|
};
|
|
7902
7902
|
const diagramArea = "agents_diagramArea_A-7jZw";
|
|
7903
7903
|
const diagram = "agents_diagram_Ii-g0P";
|
|
7904
|
-
const styles$
|
|
7904
|
+
const styles$g = {
|
|
7905
7905
|
diagramArea,
|
|
7906
7906
|
diagram
|
|
7907
7907
|
};
|
|
@@ -7989,8 +7989,8 @@ const DiagramNode = (props) => {
|
|
|
7989
7989
|
}
|
|
7990
7990
|
}, [rendering, reportNodeStatus]);
|
|
7991
7991
|
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$
|
|
7992
|
+
return /* @__PURE__ */ jsx(RichNodeFrame, { sizeClass, title: title2, caption: caption2, testId, children: /* @__PURE__ */ jsxs("div", { ref: themeProbeRef, className: styles$g.diagramArea, children: [
|
|
7993
|
+
rendering.status === "rendered" ? /* @__PURE__ */ jsx("div", { className: styles$g.diagram, dangerouslySetInnerHTML: { __html: rendering.svgMarkup } }) : null,
|
|
7994
7994
|
rendering.status === "loading" ? /* @__PURE__ */ jsx(RichNodeContentSkeleton, { height: 240, testId: `${testId}-skeleton` }) : null,
|
|
7995
7995
|
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
7996
|
] }) });
|
|
@@ -8006,7 +8006,7 @@ const inlineSkeleton$1 = "agents_inlineSkeleton_kNwonL";
|
|
|
8006
8006
|
const caption$1 = "agents_caption_chg3rA";
|
|
8007
8007
|
const failure = "agents_failure_7jkkkt";
|
|
8008
8008
|
const source = "agents_source_c6mzRv";
|
|
8009
|
-
const styles$
|
|
8009
|
+
const styles$f = {
|
|
8010
8010
|
blockFormula,
|
|
8011
8011
|
inlineFormula,
|
|
8012
8012
|
inlineSkeleton: inlineSkeleton$1,
|
|
@@ -8073,18 +8073,18 @@ const MathNode = (props) => {
|
|
|
8073
8073
|
return /* @__PURE__ */ jsx(
|
|
8074
8074
|
"span",
|
|
8075
8075
|
{
|
|
8076
|
-
className: styles$
|
|
8076
|
+
className: styles$f.inlineFormula,
|
|
8077
8077
|
"data-testid": testId,
|
|
8078
8078
|
dangerouslySetInnerHTML: { __html: rendering.html }
|
|
8079
8079
|
}
|
|
8080
8080
|
);
|
|
8081
8081
|
}
|
|
8082
8082
|
if (rendering.status === "loading") {
|
|
8083
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8083
|
+
return /* @__PURE__ */ jsx("span", { className: styles$f.inlineSkeleton, "aria-busy": "true", "data-testid": `${testId}-skeleton`, children: /* @__PURE__ */ jsx(SkeletonLine, { width: 64, height: 14, radius: 4 }) });
|
|
8084
8084
|
}
|
|
8085
|
-
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, className: styles$
|
|
8085
|
+
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, className: styles$f.source, testId: `${testId}-error`, children: escapePlainTextForText(latex) });
|
|
8086
8086
|
}
|
|
8087
|
-
const footer2 = caption2 ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, className: styles$
|
|
8087
|
+
const footer2 = caption2 ? /* @__PURE__ */ jsx(Text, { role: "help", color: "var(--agents-fg-light)", translate: false, className: styles$f.caption, children: escapePlainTextForText(caption2) }) : void 0;
|
|
8088
8088
|
return /* @__PURE__ */ jsxs(
|
|
8089
8089
|
RichNodeFrame,
|
|
8090
8090
|
{
|
|
@@ -8094,11 +8094,11 @@ const MathNode = (props) => {
|
|
|
8094
8094
|
footer: footer2,
|
|
8095
8095
|
testId,
|
|
8096
8096
|
children: [
|
|
8097
|
-
rendering.status === "rendered" ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
8097
|
+
rendering.status === "rendered" ? /* @__PURE__ */ jsx("div", { className: styles$f.blockFormula, dangerouslySetInnerHTML: { __html: rendering.html } }) : null,
|
|
8098
8098
|
rendering.status === "loading" ? /* @__PURE__ */ jsx(RichNodeContentSkeleton, { height: 48, testId: `${testId}-skeleton` }) : null,
|
|
8099
|
-
rendering.status === "failed" ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
8099
|
+
rendering.status === "failed" ? /* @__PURE__ */ jsxs("div", { className: styles$f.failure, "data-testid": `${testId}-error`, children: [
|
|
8100
8100
|
/* @__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$
|
|
8101
|
+
/* @__PURE__ */ jsx(Text, { role: "help", translate: false, className: styles$f.source, children: escapePlainTextForText(latex) })
|
|
8102
8102
|
] }) : null
|
|
8103
8103
|
]
|
|
8104
8104
|
}
|
|
@@ -8111,7 +8111,7 @@ const __vite_glob_0_39 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8111
8111
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8112
8112
|
const graphic = "agents_graphic_BJrYem";
|
|
8113
8113
|
const compactGraphic = "agents_compactGraphic_FE7Y31";
|
|
8114
|
-
const styles$
|
|
8114
|
+
const styles$e = {
|
|
8115
8115
|
graphic,
|
|
8116
8116
|
compactGraphic
|
|
8117
8117
|
};
|
|
@@ -8176,7 +8176,7 @@ const SvgNode = (props) => {
|
|
|
8176
8176
|
const graphic2 = rendering.status === "rendered" ? /* @__PURE__ */ jsx(
|
|
8177
8177
|
"div",
|
|
8178
8178
|
{
|
|
8179
|
-
className: classNames(styles$
|
|
8179
|
+
className: classNames(styles$e.graphic, sizeClass === "compact" && styles$e.compactGraphic),
|
|
8180
8180
|
dangerouslySetInnerHTML: { __html: rendering.svgMarkup }
|
|
8181
8181
|
}
|
|
8182
8182
|
) : 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 +8188,7 @@ const __vite_glob_0_40 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8188
8188
|
composedViewComponent: composedViewComponent$9
|
|
8189
8189
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8190
8190
|
const badge = "agents_badge_XcUP7Z";
|
|
8191
|
-
const styles$
|
|
8191
|
+
const styles$d = {
|
|
8192
8192
|
badge
|
|
8193
8193
|
};
|
|
8194
8194
|
const STATUS_OF_TONE = {
|
|
@@ -8206,7 +8206,7 @@ const BadgeNode = (props) => {
|
|
|
8206
8206
|
useReportTextNodeRenderState(runtime, readTextNodeRenderState(isPending, content2), "Badge");
|
|
8207
8207
|
if (isPending) return /* @__PURE__ */ jsx(SkeletonPill, { width: 72, height: 20 });
|
|
8208
8208
|
if (content2.kind !== "text") return null;
|
|
8209
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8209
|
+
return /* @__PURE__ */ jsx("span", { className: styles$d.badge, "data-tone": tone, "data-testid": testId, children: /* @__PURE__ */ jsx(
|
|
8210
8210
|
StatusBadge,
|
|
8211
8211
|
{
|
|
8212
8212
|
status: STATUS_OF_TONE[tone],
|
|
@@ -8223,7 +8223,7 @@ const __vite_glob_0_41 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8223
8223
|
composedViewComponent: composedViewComponent$8
|
|
8224
8224
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8225
8225
|
const caption = "agents_caption_-l3VPi";
|
|
8226
|
-
const styles$
|
|
8226
|
+
const styles$c = {
|
|
8227
8227
|
caption
|
|
8228
8228
|
};
|
|
8229
8229
|
const CaptionNode = (props) => {
|
|
@@ -8239,7 +8239,7 @@ const CaptionNode = (props) => {
|
|
|
8239
8239
|
translate: false,
|
|
8240
8240
|
color: "--agents-fg-light",
|
|
8241
8241
|
display: sizeClass === "compact" ? "inline" : "block",
|
|
8242
|
-
className: styles$
|
|
8242
|
+
className: styles$c.caption,
|
|
8243
8243
|
testId,
|
|
8244
8244
|
children: escapePlainTextForText(content2.text)
|
|
8245
8245
|
}
|
|
@@ -8251,7 +8251,7 @@ const __vite_glob_0_42 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8251
8251
|
composedViewComponent: composedViewComponent$7
|
|
8252
8252
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8253
8253
|
const favicon = "agents_favicon_5MA-st";
|
|
8254
|
-
const styles$
|
|
8254
|
+
const styles$b = {
|
|
8255
8255
|
favicon
|
|
8256
8256
|
};
|
|
8257
8257
|
const SiteFavicon = (props) => {
|
|
@@ -8262,7 +8262,7 @@ const SiteFavicon = (props) => {
|
|
|
8262
8262
|
return /* @__PURE__ */ jsx(
|
|
8263
8263
|
"span",
|
|
8264
8264
|
{
|
|
8265
|
-
className: styles$
|
|
8265
|
+
className: styles$b.favicon,
|
|
8266
8266
|
role: accessibleName ? "img" : void 0,
|
|
8267
8267
|
"aria-label": accessibleName,
|
|
8268
8268
|
title: accessibleName,
|
|
@@ -8273,7 +8273,7 @@ const SiteFavicon = (props) => {
|
|
|
8273
8273
|
return /* @__PURE__ */ jsx(
|
|
8274
8274
|
"img",
|
|
8275
8275
|
{
|
|
8276
|
-
className: styles$
|
|
8276
|
+
className: styles$b.favicon,
|
|
8277
8277
|
src: buildFaviconUrl(hostname),
|
|
8278
8278
|
alt: accessibleName ?? "",
|
|
8279
8279
|
title: accessibleName,
|
|
@@ -8299,7 +8299,7 @@ const __vite_glob_0_43 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8299
8299
|
composedViewComponent: composedViewComponent$6
|
|
8300
8300
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8301
8301
|
const label$1 = "agents_label_g0luOD";
|
|
8302
|
-
const styles$
|
|
8302
|
+
const styles$a = {
|
|
8303
8303
|
label: label$1
|
|
8304
8304
|
};
|
|
8305
8305
|
const LabelNode = (props) => {
|
|
@@ -8315,7 +8315,7 @@ const LabelNode = (props) => {
|
|
|
8315
8315
|
weight: "medium",
|
|
8316
8316
|
translate: false,
|
|
8317
8317
|
color: "--agents-fg-light",
|
|
8318
|
-
className: styles$
|
|
8318
|
+
className: styles$a.label,
|
|
8319
8319
|
testId,
|
|
8320
8320
|
children: escapePlainTextForText(content2.text)
|
|
8321
8321
|
}
|
|
@@ -8330,7 +8330,7 @@ const link$1 = "agents_link_Vg1N4s";
|
|
|
8330
8330
|
const linkText = "agents_linkText_gM-XpZ";
|
|
8331
8331
|
const newTabIcon = "agents_newTabIcon_jQkngW";
|
|
8332
8332
|
const unlinked = "agents_unlinked_Gp2AQb";
|
|
8333
|
-
const styles$
|
|
8333
|
+
const styles$9 = {
|
|
8334
8334
|
link: link$1,
|
|
8335
8335
|
linkText,
|
|
8336
8336
|
newTabIcon,
|
|
@@ -8353,11 +8353,11 @@ const LinkNode = (props) => {
|
|
|
8353
8353
|
if (isPending) return /* @__PURE__ */ jsx(SkeletonLine, { width: "8em", height: 12, radius: 4 });
|
|
8354
8354
|
if (content2.kind !== "text") return null;
|
|
8355
8355
|
if (safeUrl === null) {
|
|
8356
|
-
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, display: "inline", className: styles$
|
|
8356
|
+
return /* @__PURE__ */ jsx(Text, { role: "body", translate: false, display: "inline", className: styles$9.unlinked, testId, children: escapePlainTextForText(content2.text) });
|
|
8357
8357
|
}
|
|
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$
|
|
8358
|
+
return /* @__PURE__ */ jsxs(AgentsLink, { className: styles$9.link, href: safeUrl, "data-testid": testId, children: [
|
|
8359
|
+
/* @__PURE__ */ jsx(Text, { role: "body", translate: false, display: "inline", className: styles$9.linkText, children: escapePlainTextForText(content2.text) }),
|
|
8360
|
+
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$9.newTabIcon, pixelSize: 14, name: "newTab" })
|
|
8361
8361
|
] });
|
|
8362
8362
|
};
|
|
8363
8363
|
const composedViewComponent$4 = { nodeType: "Link", component: LinkNode };
|
|
@@ -8369,7 +8369,7 @@ const markdown = "agents_markdown_Yoe4uR";
|
|
|
8369
8369
|
const heading = "agents_heading_xhKgq-";
|
|
8370
8370
|
const link = "agents_link_GJKyDD";
|
|
8371
8371
|
const skeleton = "agents_skeleton_bWB-zy";
|
|
8372
|
-
const styles$
|
|
8372
|
+
const styles$8 = {
|
|
8373
8373
|
markdown,
|
|
8374
8374
|
heading,
|
|
8375
8375
|
link,
|
|
@@ -8387,7 +8387,7 @@ const renderHeading = (props) => /* @__PURE__ */ jsx(
|
|
|
8387
8387
|
weight: "bold",
|
|
8388
8388
|
translate: false,
|
|
8389
8389
|
display: "block",
|
|
8390
|
-
className: styles$
|
|
8390
|
+
className: styles$8.heading,
|
|
8391
8391
|
headingLevel: 4,
|
|
8392
8392
|
children: escapePlainTextForText(readHastText(props.node))
|
|
8393
8393
|
}
|
|
@@ -8403,7 +8403,7 @@ const SAFE_MARKDOWN_COMPONENTS = {
|
|
|
8403
8403
|
a: (props) => {
|
|
8404
8404
|
const safeUrl = readSafeHttpUrl(props.href);
|
|
8405
8405
|
if (safeUrl === null) return /* @__PURE__ */ jsx("span", { children: props.children });
|
|
8406
|
-
return /* @__PURE__ */ jsx(AgentsLink, { className: styles$
|
|
8406
|
+
return /* @__PURE__ */ jsx(AgentsLink, { className: styles$8.link, href: safeUrl, children: props.children });
|
|
8407
8407
|
}
|
|
8408
8408
|
};
|
|
8409
8409
|
const MarkdownNode = (props) => {
|
|
@@ -8411,13 +8411,13 @@ const MarkdownNode = (props) => {
|
|
|
8411
8411
|
const content2 = readTextNodeContent(nodeProps.markdown);
|
|
8412
8412
|
useReportTextNodeRenderState(runtime, readTextNodeRenderState(isPending, content2), "Markdown");
|
|
8413
8413
|
if (isPending) {
|
|
8414
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
8414
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$8.skeleton, "data-testid": `${testId}-skeleton`, children: [
|
|
8415
8415
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "90%", height: 14, radius: 4 }),
|
|
8416
8416
|
/* @__PURE__ */ jsx(SkeletonLine, { width: "70%", height: 14, radius: 4 })
|
|
8417
8417
|
] });
|
|
8418
8418
|
}
|
|
8419
8419
|
if (content2.kind !== "text") return null;
|
|
8420
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
8420
|
+
return /* @__PURE__ */ jsx("div", { className: styles$8.markdown, "data-testid": testId, children: /* @__PURE__ */ jsx(Markdown, { markdown: content2.text, translate: false, components: SAFE_MARKDOWN_COMPONENTS }) });
|
|
8421
8421
|
};
|
|
8422
8422
|
const composedViewComponent$3 = { nodeType: "Markdown", component: MarkdownNode };
|
|
8423
8423
|
const __vite_glob_0_46 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -8478,7 +8478,7 @@ const attribution = "agents_attribution_dmCMO-";
|
|
|
8478
8478
|
const attributionText = "agents_attributionText_qhOi-d";
|
|
8479
8479
|
const licenseLink = "agents_licenseLink_9iXrZ4";
|
|
8480
8480
|
const expandedList = "agents_expandedList_yrs3db";
|
|
8481
|
-
const styles$
|
|
8481
|
+
const styles$7 = {
|
|
8482
8482
|
sourceRef,
|
|
8483
8483
|
sourceList,
|
|
8484
8484
|
sourceLine,
|
|
@@ -8499,14 +8499,14 @@ const SourceChip = (props) => {
|
|
|
8499
8499
|
const { entry: entry2, isEmailRender, testId } = props;
|
|
8500
8500
|
const chipContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8501
8501
|
/* @__PURE__ */ jsx(SiteFavicon, { hostname: entry2.hostname, siteName: entry2.name, isEmailRender }),
|
|
8502
|
-
/* @__PURE__ */ jsx(Text, { role: "caption", weight: "medium", translate: false, className: styles$
|
|
8502
|
+
/* @__PURE__ */ jsx(Text, { role: "caption", weight: "medium", translate: false, className: styles$7.chipName, children: escapePlainTextForText(entry2.name) })
|
|
8503
8503
|
] });
|
|
8504
8504
|
if (entry2.url === null)
|
|
8505
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8505
|
+
return /* @__PURE__ */ jsx("span", { className: styles$7.chip, "data-testid": testId, children: chipContent });
|
|
8506
8506
|
return /* @__PURE__ */ jsx(
|
|
8507
8507
|
AgentsLink,
|
|
8508
8508
|
{
|
|
8509
|
-
className: classNames(styles$
|
|
8509
|
+
className: classNames(styles$7.chip, styles$7.linkedChip),
|
|
8510
8510
|
href: entry2.url,
|
|
8511
8511
|
title: entry2.title ?? entry2.name,
|
|
8512
8512
|
"data-testid": testId,
|
|
@@ -8521,7 +8521,7 @@ const SourceAttribution = (props) => {
|
|
|
8521
8521
|
if (entry2.author !== null) parts.push({ text: entry2.author, url: null });
|
|
8522
8522
|
if (entry2.license !== null) parts.push({ text: entry2.license, url: entry2.licenseUrl });
|
|
8523
8523
|
parts.push({ text: entry2.name, url: null });
|
|
8524
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8524
|
+
return /* @__PURE__ */ jsx("span", { className: styles$7.attribution, children: parts.map((part, partIndex) => {
|
|
8525
8525
|
const partText = /* @__PURE__ */ jsx(
|
|
8526
8526
|
Text,
|
|
8527
8527
|
{
|
|
@@ -8529,7 +8529,7 @@ const SourceAttribution = (props) => {
|
|
|
8529
8529
|
translate: false,
|
|
8530
8530
|
display: "inline",
|
|
8531
8531
|
color: "--agents-fg-light",
|
|
8532
|
-
className: styles$
|
|
8532
|
+
className: styles$7.attributionText,
|
|
8533
8533
|
children: escapePlainTextForText(part.text)
|
|
8534
8534
|
}
|
|
8535
8535
|
);
|
|
@@ -8541,30 +8541,30 @@ const SourceAttribution = (props) => {
|
|
|
8541
8541
|
translate: false,
|
|
8542
8542
|
display: "inline",
|
|
8543
8543
|
color: "--agents-fg-light",
|
|
8544
|
-
className: styles$
|
|
8544
|
+
className: styles$7.attributionText,
|
|
8545
8545
|
children: "·"
|
|
8546
8546
|
}
|
|
8547
8547
|
) : null,
|
|
8548
|
-
part.url === null ? partText : /* @__PURE__ */ jsx(AgentsLink, { className: styles$
|
|
8548
|
+
part.url === null ? partText : /* @__PURE__ */ jsx(AgentsLink, { className: styles$7.licenseLink, href: part.url, children: partText })
|
|
8549
8549
|
] }, partIndex);
|
|
8550
8550
|
}) });
|
|
8551
8551
|
};
|
|
8552
8552
|
const SourceList = (props) => {
|
|
8553
8553
|
const { entries, isEmailRender, testId } = props;
|
|
8554
8554
|
const attributedEntries = entries.filter(hasAttribution);
|
|
8555
|
-
return /* @__PURE__ */ jsxs("span", { className: styles$
|
|
8556
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
8555
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$7.sourceList, children: [
|
|
8556
|
+
/* @__PURE__ */ jsxs("span", { className: styles$7.sourceLine, children: [
|
|
8557
8557
|
/* @__PURE__ */ jsx(
|
|
8558
8558
|
Text,
|
|
8559
8559
|
{
|
|
8560
8560
|
role: "caption",
|
|
8561
8561
|
color: "--agents-fg-light",
|
|
8562
|
-
className: styles$
|
|
8562
|
+
className: styles$7.sourceLabel,
|
|
8563
8563
|
context: entries.length === 1 ? "one" : "other",
|
|
8564
8564
|
children: "Source"
|
|
8565
8565
|
}
|
|
8566
8566
|
),
|
|
8567
|
-
/* @__PURE__ */ jsx("span", { role: "list", className: styles$
|
|
8567
|
+
/* @__PURE__ */ jsx("span", { role: "list", className: styles$7.chips, children: entries.map((entry2, entryIndex) => /* @__PURE__ */ jsx("span", { role: "listitem", className: styles$7.chipItem, children: /* @__PURE__ */ jsx(SourceChip, { entry: entry2, isEmailRender, testId: `${testId}-chip-${entryIndex}` }) }, `${entryIndex}-${entry2.name}`)) })
|
|
8568
8568
|
] }),
|
|
8569
8569
|
attributedEntries.map((entry2, entryIndex) => /* @__PURE__ */ jsx(SourceAttribution, { entry: entry2 }, `${entryIndex}-${entry2.name}`))
|
|
8570
8570
|
] });
|
|
@@ -8589,19 +8589,19 @@ const SourceRefNode = (props) => {
|
|
|
8589
8589
|
if (isPending) return /* @__PURE__ */ jsx(SkeletonPill, { width: 120, height: 24 });
|
|
8590
8590
|
if (entries.length === 0) return null;
|
|
8591
8591
|
if (sizeClass !== "compact") {
|
|
8592
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8592
|
+
return /* @__PURE__ */ jsx("span", { className: styles$7.sourceRef, "data-testid": testId, children: /* @__PURE__ */ jsx(SourceList, { entries, isEmailRender, testId }) });
|
|
8593
8593
|
}
|
|
8594
8594
|
const [firstEntry] = entries;
|
|
8595
8595
|
const otherSourcesCount = entries.length - 1;
|
|
8596
8596
|
if (otherSourcesCount === 0 && !hasAttribution(firstEntry)) {
|
|
8597
|
-
return /* @__PURE__ */ jsx("span", { className: styles$
|
|
8597
|
+
return /* @__PURE__ */ jsx("span", { className: styles$7.sourceRef, "data-testid": testId, children: /* @__PURE__ */ jsx(SourceChip, { entry: firstEntry, isEmailRender, testId: `${testId}-chip-0` }) });
|
|
8598
8598
|
}
|
|
8599
|
-
return /* @__PURE__ */ jsxs("span", { className: styles$
|
|
8599
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$7.sourceRef, "data-testid": testId, children: [
|
|
8600
8600
|
/* @__PURE__ */ jsxs(
|
|
8601
8601
|
"button",
|
|
8602
8602
|
{
|
|
8603
8603
|
type: "button",
|
|
8604
|
-
className: classNames(styles$
|
|
8604
|
+
className: classNames(styles$7.chip, styles$7.toggleChip),
|
|
8605
8605
|
"aria-expanded": isExpanded,
|
|
8606
8606
|
"aria-controls": expandedListId,
|
|
8607
8607
|
disabled: isEmailRender,
|
|
@@ -8615,16 +8615,16 @@ const SourceRefNode = (props) => {
|
|
|
8615
8615
|
role: "caption",
|
|
8616
8616
|
weight: "medium",
|
|
8617
8617
|
translate: false,
|
|
8618
|
-
className: styles$
|
|
8618
|
+
className: styles$7.chipName,
|
|
8619
8619
|
children: escapePlainTextForText(firstEntry.name)
|
|
8620
8620
|
}
|
|
8621
8621
|
),
|
|
8622
|
-
otherSourcesCount > 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", translate: false, color: "--agents-fg-light", className: styles$
|
|
8622
|
+
otherSourcesCount > 0 ? /* @__PURE__ */ jsx(Text, { role: "caption", translate: false, color: "--agents-fg-light", className: styles$7.moreCount, children: `+${otherSourcesCount}` }) : null,
|
|
8623
8623
|
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", pixelSize: 12, name: isExpanded ? "caretUp" : "caretDown" })
|
|
8624
8624
|
]
|
|
8625
8625
|
}
|
|
8626
8626
|
),
|
|
8627
|
-
isExpanded ? /* @__PURE__ */ jsx("span", { id: expandedListId, className: styles$
|
|
8627
|
+
isExpanded ? /* @__PURE__ */ jsx("span", { id: expandedListId, className: styles$7.expandedList, "data-testid": `${testId}-expanded`, children: /* @__PURE__ */ jsx(SourceList, { entries, isEmailRender, testId: `${testId}-expanded` }) }) : null
|
|
8628
8628
|
] });
|
|
8629
8629
|
};
|
|
8630
8630
|
const composedViewComponent$2 = {
|
|
@@ -8658,7 +8658,7 @@ const success = "agents_success_9Ru8-B";
|
|
|
8658
8658
|
const warning = "agents_warning_XEGEwv";
|
|
8659
8659
|
const danger = "agents_danger_KcUeUC";
|
|
8660
8660
|
const info = "agents_info_jMiFeN";
|
|
8661
|
-
const styles$
|
|
8661
|
+
const styles$6 = {
|
|
8662
8662
|
text,
|
|
8663
8663
|
paragraph,
|
|
8664
8664
|
inline,
|
|
@@ -8730,21 +8730,21 @@ const TextNode = (props) => {
|
|
|
8730
8730
|
else if (content2.kind === "missing" && childNodes.length === 0) renderState = "empty";
|
|
8731
8731
|
useReportTextNodeRenderState(runtime, renderState, "Text");
|
|
8732
8732
|
if (isPending) {
|
|
8733
|
-
return isInline ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
8733
|
+
return isInline ? /* @__PURE__ */ jsx("span", { className: styles$6.inlineSkeleton, children: /* @__PURE__ */ jsx(SkeletonLine, { width: "6em", height: 12, radius: 4 }) }) : /* @__PURE__ */ jsx(SkeletonLine, { width: "80%", height: 14, radius: 4 });
|
|
8734
8734
|
}
|
|
8735
8735
|
if (renderState !== "shown") return null;
|
|
8736
8736
|
const Wrapper = isInline ? "span" : "div";
|
|
8737
8737
|
return /* @__PURE__ */ jsxs(
|
|
8738
8738
|
Wrapper,
|
|
8739
8739
|
{
|
|
8740
|
-
className: classNames(styles$
|
|
8740
|
+
className: classNames(styles$6.text, isInline ? styles$6.inline : styles$6.paragraph, styles$6[tone]),
|
|
8741
8741
|
"data-testid": testId,
|
|
8742
8742
|
children: [
|
|
8743
8743
|
content2.kind === "text" ? /* @__PURE__ */ jsx(
|
|
8744
8744
|
"span",
|
|
8745
8745
|
{
|
|
8746
8746
|
ref: clampedRunRef,
|
|
8747
|
-
className: isClamped ? classNames(styles$
|
|
8747
|
+
className: isClamped ? classNames(styles$6.clamped, styles$6[`clampedAt${maxLines}Lines`]) : void 0,
|
|
8748
8748
|
title: isClamped ? content2.text : void 0,
|
|
8749
8749
|
children: /* @__PURE__ */ jsx(
|
|
8750
8750
|
Text,
|
|
@@ -8759,12 +8759,12 @@ const TextNode = (props) => {
|
|
|
8759
8759
|
)
|
|
8760
8760
|
}
|
|
8761
8761
|
) : null,
|
|
8762
|
-
childNodes.map((childNode, childIndex) => /* @__PURE__ */ jsx("span", { className: styles$
|
|
8762
|
+
childNodes.map((childNode, childIndex) => /* @__PURE__ */ jsx("span", { className: styles$6.inlineChild, children: childNode }, childIndex)),
|
|
8763
8763
|
isShowingClampToggle ? /* @__PURE__ */ jsx(
|
|
8764
8764
|
"button",
|
|
8765
8765
|
{
|
|
8766
8766
|
type: "button",
|
|
8767
|
-
className: styles$
|
|
8767
|
+
className: styles$6.clampToggle,
|
|
8768
8768
|
"data-testid": `${testId}-toggle`,
|
|
8769
8769
|
"aria-expanded": isExpanded,
|
|
8770
8770
|
onClick: () => setIsExpanded((wasExpanded) => !wasExpanded),
|
|
@@ -8781,7 +8781,7 @@ const __vite_glob_0_48 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
8781
8781
|
composedViewComponent: composedViewComponent$1
|
|
8782
8782
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8783
8783
|
const title = "agents_title_Eod7EC";
|
|
8784
|
-
const styles$
|
|
8784
|
+
const styles$5 = {
|
|
8785
8785
|
title
|
|
8786
8786
|
};
|
|
8787
8787
|
const TITLE_LEVELS = ["widget", "section"];
|
|
@@ -8798,7 +8798,7 @@ const TitleNode = (props) => {
|
|
|
8798
8798
|
role: level === "widget" ? "intro" : "body",
|
|
8799
8799
|
weight: "bold",
|
|
8800
8800
|
translate: false,
|
|
8801
|
-
className: styles$
|
|
8801
|
+
className: styles$5.title,
|
|
8802
8802
|
testId,
|
|
8803
8803
|
headingLevel: level === "widget" ? 3 : 4,
|
|
8804
8804
|
children: escapePlainTextForText(content2.text)
|
|
@@ -8821,8 +8821,8 @@ const componentModules = /* @__PURE__ */ Object.assign({
|
|
|
8821
8821
|
"./components/data/TableCell.composed.tsx": __vite_glob_0_7$1,
|
|
8822
8822
|
"./components/data/TableRow.composed.tsx": __vite_glob_0_8$1,
|
|
8823
8823
|
"./components/embedding/WidgetNode.composed.tsx": __vite_glob_0_9$1,
|
|
8824
|
-
"./components/entity/EntityLink.composed.tsx": __vite_glob_0_10,
|
|
8825
|
-
"./components/form/Form.composed.tsx": __vite_glob_0_11,
|
|
8824
|
+
"./components/entity/EntityLink.composed.tsx": __vite_glob_0_10$1,
|
|
8825
|
+
"./components/form/Form.composed.tsx": __vite_glob_0_11$1,
|
|
8826
8826
|
"./components/inputs/Button.composed.tsx": __vite_glob_0_12,
|
|
8827
8827
|
"./components/inputs/Checkbox.composed.tsx": __vite_glob_0_13,
|
|
8828
8828
|
"./components/inputs/DatePicker.composed.tsx": __vite_glob_0_14,
|
|
@@ -8982,7 +8982,7 @@ const readComposedViewDataTimes = (tree) => {
|
|
|
8982
8982
|
};
|
|
8983
8983
|
};
|
|
8984
8984
|
const dataTimes = "agents_dataTimes_fVIkya";
|
|
8985
|
-
const styles$
|
|
8985
|
+
const styles$4 = {
|
|
8986
8986
|
dataTimes
|
|
8987
8987
|
};
|
|
8988
8988
|
const FALLBACK_DATE_LOCALE = "en-GB";
|
|
@@ -9018,11 +9018,11 @@ const ComposedViewEmailDataTimes = (props) => {
|
|
|
9018
9018
|
);
|
|
9019
9019
|
}
|
|
9020
9020
|
if (phrases.length === 0) return null;
|
|
9021
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
9021
|
+
return /* @__PURE__ */ jsx("div", { className: styles$4.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
9022
|
};
|
|
9023
|
-
const root = "agents_root_mkymge";
|
|
9024
|
-
const styles$
|
|
9025
|
-
root
|
|
9023
|
+
const root$2 = "agents_root_mkymge";
|
|
9024
|
+
const styles$3 = {
|
|
9025
|
+
root: root$2
|
|
9026
9026
|
};
|
|
9027
9027
|
const nodeReportsReducer = (nodeReports, action) => {
|
|
9028
9028
|
const current = nodeReports[action.nodePath];
|
|
@@ -9418,7 +9418,7 @@ const ComposedViewRenderer = (props) => {
|
|
|
9418
9418
|
liftedWidget.path
|
|
9419
9419
|
));
|
|
9420
9420
|
if (tree.view === null) {
|
|
9421
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
9421
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.root, children: [
|
|
9422
9422
|
sourceLoaders,
|
|
9423
9423
|
liftedWidgetViews.length > 0 ? liftedWidgetViews : /* @__PURE__ */ jsx(ComposedViewNothingToShow, {})
|
|
9424
9424
|
] });
|
|
@@ -9431,7 +9431,7 @@ const ComposedViewRenderer = (props) => {
|
|
|
9431
9431
|
datasetStatuses: resolvedDatasets.statusByDatasetName,
|
|
9432
9432
|
sources: sourceValues
|
|
9433
9433
|
};
|
|
9434
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
9434
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.root, "data-testid": testId, children: [
|
|
9435
9435
|
sourceLoaders,
|
|
9436
9436
|
tree.title ? /* @__PURE__ */ jsx(ModelText, { role: "intro", weight: "bold", children: tree.title }) : null,
|
|
9437
9437
|
lostAllItsContent ? /* @__PURE__ */ jsx(ComposedViewNothingToShow, {}) : /* @__PURE__ */ jsx(ComposedViewSlotErrorBoundary, { nodePath: "view", nodeType: tree.view.type, onRenderFailed, children: /* @__PURE__ */ jsx(
|
|
@@ -9492,16 +9492,16 @@ const ComposedViewConversationWidget = (props) => {
|
|
|
9492
9492
|
}
|
|
9493
9493
|
);
|
|
9494
9494
|
};
|
|
9495
|
-
const conversationWidgetRegistration$
|
|
9495
|
+
const conversationWidgetRegistration$b = {
|
|
9496
9496
|
name: "ComposedView",
|
|
9497
9497
|
component: ComposedViewConversationWidget,
|
|
9498
9498
|
opensCanvases: ["entityDetail", "mapFullScreen"]
|
|
9499
9499
|
};
|
|
9500
9500
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9501
9501
|
__proto__: null,
|
|
9502
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9502
|
+
conversationWidgetRegistration: conversationWidgetRegistration$b
|
|
9503
9503
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9504
|
-
const conversationWidgetRegistration$
|
|
9504
|
+
const conversationWidgetRegistration$a = {
|
|
9505
9505
|
name: "AttachedFiles",
|
|
9506
9506
|
component: AttachedFilesConversationWidget,
|
|
9507
9507
|
sentInCustomerMessage: true,
|
|
@@ -9509,55 +9509,119 @@ const conversationWidgetRegistration$8 = {
|
|
|
9509
9509
|
};
|
|
9510
9510
|
const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9511
9511
|
__proto__: null,
|
|
9512
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9512
|
+
conversationWidgetRegistration: conversationWidgetRegistration$a
|
|
9513
9513
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9514
|
-
const conversationWidgetRegistration$
|
|
9514
|
+
const conversationWidgetRegistration$9 = {
|
|
9515
9515
|
name: "Clock",
|
|
9516
9516
|
component: ClockConversationWidget
|
|
9517
9517
|
};
|
|
9518
9518
|
const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9519
9519
|
__proto__: null,
|
|
9520
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9520
|
+
conversationWidgetRegistration: conversationWidgetRegistration$9
|
|
9521
9521
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9522
|
-
const conversationWidgetRegistration$
|
|
9522
|
+
const conversationWidgetRegistration$8 = {
|
|
9523
9523
|
name: "ConceptExplainer",
|
|
9524
9524
|
component: ConceptExplainerConversationWidget
|
|
9525
9525
|
};
|
|
9526
9526
|
const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9527
9527
|
__proto__: null,
|
|
9528
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9528
|
+
conversationWidgetRegistration: conversationWidgetRegistration$8
|
|
9529
9529
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9530
|
-
const
|
|
9530
|
+
const CONTINUE_IN_PERSONAL_SPACE_WIDGET_TYPE = "ContinueInPersonalSpace";
|
|
9531
|
+
const parseContinueInPersonalSpacePayload = (payload) => {
|
|
9532
|
+
if (typeof payload !== "string") return null;
|
|
9533
|
+
let parsed;
|
|
9534
|
+
try {
|
|
9535
|
+
parsed = JSON.parse(payload);
|
|
9536
|
+
} catch {
|
|
9537
|
+
return null;
|
|
9538
|
+
}
|
|
9539
|
+
if (typeof parsed !== "object" || parsed === null) return null;
|
|
9540
|
+
const fields2 = parsed;
|
|
9541
|
+
const request = typeof fields2.request === "string" ? fields2.request.trim() : "";
|
|
9542
|
+
if (request === "") return null;
|
|
9543
|
+
return { request, reason: typeof fields2.reason === "string" ? fields2.reason : null };
|
|
9544
|
+
};
|
|
9545
|
+
const root$1 = "agents_root_c0NCo5";
|
|
9546
|
+
const notice$1 = "agents_notice_kKGwWh";
|
|
9547
|
+
const styles$2 = {
|
|
9548
|
+
root: root$1,
|
|
9549
|
+
notice: notice$1
|
|
9550
|
+
};
|
|
9551
|
+
const TEST_ID$1 = "continue-in-personal-space-widget";
|
|
9552
|
+
const ContinueInPersonalSpaceConversationWidget = (props) => {
|
|
9553
|
+
const { payload, interactive } = props;
|
|
9554
|
+
const parsedPayload = useMemo(() => parseContinueInPersonalSpacePayload(payload), [payload]);
|
|
9555
|
+
const [isStarted, setIsStarted] = useState(false);
|
|
9556
|
+
const canStart = canStartConversationInPersonalSpace();
|
|
9557
|
+
useReportWidgetRenderStatus(
|
|
9558
|
+
parsedPayload === null ? "failed" : "mounted",
|
|
9559
|
+
parsedPayload === null ? "INVALID_PROP" : void 0,
|
|
9560
|
+
parsedPayload === null ? "the block carries no request" : void 0
|
|
9561
|
+
);
|
|
9562
|
+
if (parsedPayload === null || !canStart) return null;
|
|
9563
|
+
const continueInPersonalSpace = () => {
|
|
9564
|
+
if (isStarted) return;
|
|
9565
|
+
if (startConversationInPersonalSpace(parsedPayload.request)) setIsStarted(true);
|
|
9566
|
+
};
|
|
9567
|
+
return /* @__PURE__ */ jsxs(WidgetSurface, { testId: TEST_ID$1, compact: true, className: styles$2.root, children: [
|
|
9568
|
+
/* @__PURE__ */ jsxs("span", { className: styles$2.notice, children: [
|
|
9569
|
+
/* @__PURE__ */ jsx(Icon, { name: "lock", size: "small" }),
|
|
9570
|
+
/* @__PURE__ */ jsx(Text, { testId: `${TEST_ID$1}-notice`, children: "Only you may use this connection, and others read this conversation." })
|
|
9571
|
+
] }),
|
|
9572
|
+
/* @__PURE__ */ jsx(
|
|
9573
|
+
Button,
|
|
9574
|
+
{
|
|
9575
|
+
size: "small",
|
|
9576
|
+
icon: "arrowRight",
|
|
9577
|
+
iconPosition: "right",
|
|
9578
|
+
onClick: continueInPersonalSpace,
|
|
9579
|
+
disabled: interactive === false || isStarted,
|
|
9580
|
+
testId: `${TEST_ID$1}-button`,
|
|
9581
|
+
children: "Continue in your personal space"
|
|
9582
|
+
}
|
|
9583
|
+
)
|
|
9584
|
+
] });
|
|
9585
|
+
};
|
|
9586
|
+
const conversationWidgetRegistration$7 = {
|
|
9587
|
+
name: CONTINUE_IN_PERSONAL_SPACE_WIDGET_TYPE,
|
|
9588
|
+
component: ContinueInPersonalSpaceConversationWidget
|
|
9589
|
+
};
|
|
9590
|
+
const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9591
|
+
__proto__: null,
|
|
9592
|
+
conversationWidgetRegistration: conversationWidgetRegistration$7
|
|
9593
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
9594
|
+
const conversationWidgetRegistration$6 = {
|
|
9531
9595
|
name: "CurrencyConverter",
|
|
9532
9596
|
component: CurrencyConverterConversationWidget
|
|
9533
9597
|
};
|
|
9534
|
-
const
|
|
9598
|
+
const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9535
9599
|
__proto__: null,
|
|
9536
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9600
|
+
conversationWidgetRegistration: conversationWidgetRegistration$6
|
|
9537
9601
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9538
|
-
const conversationWidgetRegistration$
|
|
9602
|
+
const conversationWidgetRegistration$5 = {
|
|
9539
9603
|
name: "CustomVisualization",
|
|
9540
9604
|
component: CustomVisualizationConversationWidget
|
|
9541
9605
|
};
|
|
9542
|
-
const
|
|
9606
|
+
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9543
9607
|
__proto__: null,
|
|
9544
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9608
|
+
conversationWidgetRegistration: conversationWidgetRegistration$5
|
|
9545
9609
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9546
9610
|
registerDriveFilesHydrator();
|
|
9547
|
-
const conversationWidgetRegistration$
|
|
9611
|
+
const conversationWidgetRegistration$4 = {
|
|
9548
9612
|
name: "DriveFiles",
|
|
9549
9613
|
component: DriveFilesConversationWidget
|
|
9550
9614
|
};
|
|
9551
|
-
const
|
|
9615
|
+
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9552
9616
|
__proto__: null,
|
|
9553
|
-
conversationWidgetRegistration: conversationWidgetRegistration$
|
|
9617
|
+
conversationWidgetRegistration: conversationWidgetRegistration$4
|
|
9554
9618
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9555
9619
|
const chip = "agents_chip_hRM85s";
|
|
9556
9620
|
const icon = "agents_icon_6v6GEg";
|
|
9557
9621
|
const prefix = "agents_prefix_j2j33h";
|
|
9558
9622
|
const label = "agents_label_wmbPMU";
|
|
9559
9623
|
const remove = "agents_remove_SMhLO7";
|
|
9560
|
-
const styles = {
|
|
9624
|
+
const styles$1 = {
|
|
9561
9625
|
chip,
|
|
9562
9626
|
icon,
|
|
9563
9627
|
prefix,
|
|
@@ -9566,16 +9630,16 @@ const styles = {
|
|
|
9566
9630
|
};
|
|
9567
9631
|
const EntityMentionChip = (props) => {
|
|
9568
9632
|
const { mention, onRemove, testId = "entity-mention-chip" } = props;
|
|
9569
|
-
return /* @__PURE__ */ jsxs("span", { className: styles.chip, "data-testid": testId, children: [
|
|
9570
|
-
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles.icon, pixelSize: 14, name: "details" }),
|
|
9633
|
+
return /* @__PURE__ */ jsxs("span", { className: styles$1.chip, "data-testid": testId, children: [
|
|
9634
|
+
/* @__PURE__ */ jsx(Icon, { color: "var(--agents-fg-light)", className: styles$1.icon, pixelSize: 14, name: "details" }),
|
|
9571
9635
|
mention.label !== null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9572
|
-
/* @__PURE__ */ jsx(Text, { className: styles.prefix, role: "help", color: "var(--agents-fg-light)", textWrap: "nowrap", children: "About:" }),
|
|
9573
|
-
/* @__PURE__ */ jsx(ModelText, { className: styles.label, role: "help", textWrap: "nowrap", children: mention.label })
|
|
9574
|
-
] }) : /* @__PURE__ */ jsx(Text, { className: styles.label, role: "help", textWrap: "nowrap", children: "About this entry" }),
|
|
9636
|
+
/* @__PURE__ */ jsx(Text, { className: styles$1.prefix, role: "help", color: "var(--agents-fg-light)", textWrap: "nowrap", children: "About:" }),
|
|
9637
|
+
/* @__PURE__ */ jsx(ModelText, { className: styles$1.label, role: "help", textWrap: "nowrap", children: mention.label })
|
|
9638
|
+
] }) : /* @__PURE__ */ jsx(Text, { className: styles$1.label, role: "help", textWrap: "nowrap", children: "About this entry" }),
|
|
9575
9639
|
onRemove && /* @__PURE__ */ jsx(
|
|
9576
9640
|
Button,
|
|
9577
9641
|
{
|
|
9578
|
-
className: styles.remove,
|
|
9642
|
+
className: styles$1.remove,
|
|
9579
9643
|
variant: "muted",
|
|
9580
9644
|
size: "small",
|
|
9581
9645
|
icon: "close",
|
|
@@ -9592,12 +9656,76 @@ const EntityMentionComposerWidget = (props) => {
|
|
|
9592
9656
|
if (mention === null) return null;
|
|
9593
9657
|
return /* @__PURE__ */ jsx(EntityMentionChip, { mention, onRemove: remove2, testId: `${testId}-chip` });
|
|
9594
9658
|
};
|
|
9595
|
-
const conversationWidgetRegistration$
|
|
9659
|
+
const conversationWidgetRegistration$3 = {
|
|
9596
9660
|
name: "EntityMention",
|
|
9597
9661
|
component: EntityMentionConversationWidget,
|
|
9598
9662
|
composerComponent: EntityMentionComposerWidget
|
|
9599
9663
|
};
|
|
9600
|
-
const
|
|
9664
|
+
const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9665
|
+
__proto__: null,
|
|
9666
|
+
conversationWidgetRegistration: conversationWidgetRegistration$3
|
|
9667
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
9668
|
+
const EXTEND_CONNECTION_PERMISSION_WIDGET_TYPE = "ExtendConnectionPermission";
|
|
9669
|
+
const parseExtendConnectionPermissionPayload = (payload) => {
|
|
9670
|
+
if (typeof payload !== "string") return null;
|
|
9671
|
+
let parsed;
|
|
9672
|
+
try {
|
|
9673
|
+
parsed = JSON.parse(payload);
|
|
9674
|
+
} catch {
|
|
9675
|
+
return null;
|
|
9676
|
+
}
|
|
9677
|
+
if (typeof parsed !== "object" || parsed === null) return null;
|
|
9678
|
+
const fields2 = parsed;
|
|
9679
|
+
const connectionId = typeof fields2.connectionId === "number" ? fields2.connectionId : Number(fields2.connectionId);
|
|
9680
|
+
const capability = typeof fields2.capability === "string" ? fields2.capability.trim() : "";
|
|
9681
|
+
const level = typeof fields2.level === "string" ? fields2.level.trim() : "";
|
|
9682
|
+
if (!Number.isInteger(connectionId) || connectionId <= 0 || capability === "" || level === "") return null;
|
|
9683
|
+
return {
|
|
9684
|
+
target: { connectionId, capability, level },
|
|
9685
|
+
reason: typeof fields2.reason === "string" ? fields2.reason : null
|
|
9686
|
+
};
|
|
9687
|
+
};
|
|
9688
|
+
const root = "agents_root_Z3Vqoh";
|
|
9689
|
+
const notice = "agents_notice_C-mk81";
|
|
9690
|
+
const styles = {
|
|
9691
|
+
root,
|
|
9692
|
+
notice
|
|
9693
|
+
};
|
|
9694
|
+
const TEST_ID = "extend-connection-permission-widget";
|
|
9695
|
+
const ExtendConnectionPermissionConversationWidget = (props) => {
|
|
9696
|
+
const { payload, interactive } = props;
|
|
9697
|
+
const parsedPayload = useMemo(() => parseExtendConnectionPermissionPayload(payload), [payload]);
|
|
9698
|
+
const canOpen = canOpenConnectionPermissions();
|
|
9699
|
+
useReportWidgetRenderStatus(
|
|
9700
|
+
parsedPayload === null ? "failed" : "mounted",
|
|
9701
|
+
parsedPayload === null ? "INVALID_PROP" : void 0,
|
|
9702
|
+
parsedPayload === null ? "the block names no connection, capability and level" : void 0
|
|
9703
|
+
);
|
|
9704
|
+
if (parsedPayload === null || !canOpen) return null;
|
|
9705
|
+
return /* @__PURE__ */ jsxs(WidgetSurface, { testId: TEST_ID, compact: true, className: styles.root, children: [
|
|
9706
|
+
/* @__PURE__ */ jsxs("span", { className: styles.notice, children: [
|
|
9707
|
+
/* @__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
|
+
] }),
|
|
9710
|
+
/* @__PURE__ */ jsx(
|
|
9711
|
+
Button,
|
|
9712
|
+
{
|
|
9713
|
+
size: "small",
|
|
9714
|
+
variant: "default",
|
|
9715
|
+
icon: "settings",
|
|
9716
|
+
onClick: () => openConnectionPermissions(parsedPayload.target),
|
|
9717
|
+
disabled: interactive === false,
|
|
9718
|
+
testId: `${TEST_ID}-button`,
|
|
9719
|
+
children: "Extend the permission"
|
|
9720
|
+
}
|
|
9721
|
+
)
|
|
9722
|
+
] });
|
|
9723
|
+
};
|
|
9724
|
+
const conversationWidgetRegistration$2 = {
|
|
9725
|
+
name: EXTEND_CONNECTION_PERMISSION_WIDGET_TYPE,
|
|
9726
|
+
component: ExtendConnectionPermissionConversationWidget
|
|
9727
|
+
};
|
|
9728
|
+
const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9601
9729
|
__proto__: null,
|
|
9602
9730
|
conversationWidgetRegistration: conversationWidgetRegistration$2
|
|
9603
9731
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9606,7 +9734,7 @@ const conversationWidgetRegistration$1 = {
|
|
|
9606
9734
|
component: ImageGalleryConversationWidget,
|
|
9607
9735
|
opensCanvases: [IMAGE_GALLERY_CANVAS_ID]
|
|
9608
9736
|
};
|
|
9609
|
-
const
|
|
9737
|
+
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9610
9738
|
__proto__: null,
|
|
9611
9739
|
conversationWidgetRegistration: conversationWidgetRegistration$1
|
|
9612
9740
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9614,7 +9742,7 @@ const conversationWidgetRegistration = {
|
|
|
9614
9742
|
name: "WritingDraft",
|
|
9615
9743
|
component: WritingDraftConversationWidget
|
|
9616
9744
|
};
|
|
9617
|
-
const
|
|
9745
|
+
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9618
9746
|
__proto__: null,
|
|
9619
9747
|
conversationWidgetRegistration
|
|
9620
9748
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9623,12 +9751,14 @@ const widgetRegistrationModules = /* @__PURE__ */ Object.assign({
|
|
|
9623
9751
|
"../widgets/AttachedFilesConversationWidget/AttachedFilesConversationWidget.widget-registration.ts": __vite_glob_0_1,
|
|
9624
9752
|
"../widgets/ClockConversationWidget/ClockConversationWidget.widget-registration.ts": __vite_glob_0_2,
|
|
9625
9753
|
"../widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget.widget-registration.ts": __vite_glob_0_3,
|
|
9626
|
-
"../widgets/
|
|
9627
|
-
"../widgets/
|
|
9628
|
-
"../widgets/
|
|
9629
|
-
"../widgets/
|
|
9630
|
-
"../widgets/
|
|
9631
|
-
"../widgets/
|
|
9754
|
+
"../widgets/ContinueInPersonalSpaceConversationWidget/ContinueInPersonalSpaceConversationWidget.widget-registration.ts": __vite_glob_0_4,
|
|
9755
|
+
"../widgets/CurrencyConverterConversationWidget/CurrencyConverterConversationWidget.widget-registration.ts": __vite_glob_0_5,
|
|
9756
|
+
"../widgets/CustomVisualizationConversationWidget/CustomVisualizationConversationWidget.widget-registration.ts": __vite_glob_0_6,
|
|
9757
|
+
"../widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.widget-registration.ts": __vite_glob_0_7,
|
|
9758
|
+
"../widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.widget-registration.ts": __vite_glob_0_8,
|
|
9759
|
+
"../widgets/ExtendConnectionPermissionConversationWidget/ExtendConnectionPermissionConversationWidget.widget-registration.ts": __vite_glob_0_9,
|
|
9760
|
+
"../widgets/ImageGalleryConversationWidget/ImageGalleryConversationWidget.widget-registration.ts": __vite_glob_0_10,
|
|
9761
|
+
"../widgets/WritingDraftConversationWidget/WritingDraftConversationWidget.widget-registration.ts": __vite_glob_0_11
|
|
9632
9762
|
});
|
|
9633
9763
|
const readConversationWidgetRegistrations = (registrationModules) => Object.values(registrationModules).map((registrationModule) => registrationModule.conversationWidgetRegistration).filter((entry2) => entry2 !== void 0);
|
|
9634
9764
|
const readFolderRegisteredConversationWidgets = () => readConversationWidgetRegistrations(widgetRegistrationModules);
|
|
@@ -9785,4 +9915,4 @@ export {
|
|
|
9785
9915
|
getConversationWidgetRegistryRevision as y,
|
|
9786
9916
|
readComposedViewTree as z
|
|
9787
9917
|
};
|
|
9788
|
-
//# sourceMappingURL=widget-name-resolver-
|
|
9918
|
+
//# sourceMappingURL=widget-name-resolver-akTPWt63.js.map
|