@patterninc/pattern-ui 0.0.0-main.202610262236.f024cd384442 → 0.0.0-main.202610270514.2e8a0fcab86d
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/ai-elements/ThinkingLoader/thinking-loader.js +4 -4
- package/dist/ai-elements/UserRequest/UserRequestControl/feedback/UserRequestForm.js +17 -17
- package/dist/ai-elements/UserRequest/UserRequestControl/questionnaire/UserRequestInput.js +13 -13
- package/dist/ai-elements/UserRequest/UserRequestControl/questionnaire/UserRequestQuestionnaire.js +24 -27
- package/dist/ai-elements/UserRequest/UserRequestControl/shared/UserRequestActions.js +58 -58
- package/dist/ai-elements/UserRequest/UserRequestControl/shared/UserRequestText.js +4 -4
- package/dist/ai-elements/UserRequest/UserRequestControl/shared/UserRequestTitle.js +12 -12
- package/dist/ai-elements/UserRequest/UserRequestControl/summary/UserRequestSummaryCard.js +6 -6
- package/dist/ai-elements/artifact/Credits.js +10 -10
- package/dist/ai-elements/artifact/image-artifact/Lightbox.js +6 -18
- package/dist/ai-elements/confirmation/Confirmation.js +13 -14
- package/dist/ai-elements/message-feedback/FeedbackPopover.js +13 -13
- package/dist/ai-elements/message-feedback/MessageFeedback.js +5 -5
- package/dist/ai-elements/reasoning/reasoning.js +117 -129
- package/dist/ai-elements/sources/source-collected.js +4 -4
- package/dist/ai-elements/sources/source-inline.js +4 -4
- package/dist/ai-elements/sources/source.js +4 -4
- package/dist/ai-elements/thinking/thinking.js +82 -73
- package/dist/ai-elements/tool-call/tool-call-trigger.js +7 -10
- package/dist/browser/@patterninc/pattern-ui/actions.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/activity-card.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/artifact/image-artifact/GalleryPanelContent.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/artifact/image-artifact/ImageArtifact.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/artifact/image-artifact/Lightbox.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/breadcrumb.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/button-group.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/canvas.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/command.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/data-grid.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/date-control.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/date.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/dev-tools.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/drawer.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/dropdown.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/empty-state.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/feedback-gateway-provider.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/feedback-gateway.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/feedback-mode.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/feedback-widget.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/fields/date-field.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/fields/select-field.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/image-card.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/image-compare.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/image-grid.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/list-item.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/marketplace-pdp-card.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/menu.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/message-feedback.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/modal.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/nav-mobile-drawer.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/nav.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/pagination.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/panel.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/popover.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/prompt-queue.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/queue-item.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/reasoning-stepped.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/reasoning.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/select.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/source.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/sub-nav-row.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/sub-nav.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/table.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/thinking.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/toolbar.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/upload.js +1 -1
- package/dist/browser/@patterninc/pattern-ui/user-request.js +1 -1
- package/dist/browser/_chunks/{ButtonGroup-lOiR54K6.js → ButtonGroup-B2wKhqwt.js} +1 -1
- package/dist/browser/_chunks/{DateControl-CdxxmJUC.js → DateControl-1CTiTA_R.js} +1 -1
- package/dist/browser/_chunks/{DateField-tyRGSOsM.js → DateField-B5jmhBCU.js} +1 -1
- package/dist/browser/_chunks/{Drawer-CEKClrl4.js → Drawer-BWOL2x4I.js} +1 -1
- package/dist/browser/_chunks/{Dropdown-mjyWRtMK.js → Dropdown-ccit6N_b.js} +1 -1
- package/dist/browser/_chunks/{FeedbackMode-COzaKCeK.js → FeedbackMode-_EFEwr8F.js} +1 -1
- package/dist/browser/_chunks/{FeedbackWidget-CPN9zf2H.js → FeedbackWidget-djBE-WHW.js} +1 -1
- package/dist/browser/_chunks/{ImageGrid-BZ8sj3qr.js → ImageGrid-DsGcQ4iS.js} +1 -1
- package/dist/browser/_chunks/{Lightbox-BIpWtT5C.js → Lightbox-D4h7Hp9l.js} +1 -1
- package/dist/browser/_chunks/{ListItem-BrZsJChd.js → ListItem-DWrOZmWs.js} +1 -1
- package/dist/browser/_chunks/{Modal-DymWhLvh.js → Modal-DG-el9Ij.js} +1 -1
- package/dist/browser/_chunks/{Popover-DG_70GY-.js → Popover-BZmXTMx_.js} +1 -1
- package/dist/browser/_chunks/QueueItem-Bjz8r0tz.js +1 -0
- package/dist/browser/_chunks/{Select-CI7wVrR7.js → Select-Be8Ma66G.js} +1 -1
- package/dist/browser/_chunks/{SubNavRow-Zp5R6WK9.js → SubNavRow-DTshmLf7.js} +1 -1
- package/dist/browser/_chunks/{Table-Dkz-JvQP.js → Table-Bny-Z4bM.js} +1 -1
- package/dist/browser/_chunks/{TableRowFooter-YiEVGRT7.js → TableRowFooter-ggoBH3RG.js} +1 -1
- package/dist/browser/_chunks/{Toolbar-DPb7EEN2.js → Toolbar-BROw0RvV.js} +1 -1
- package/dist/browser/_chunks/Upload-CW1uZp8A.js +1 -0
- package/dist/browser/_chunks/{actions-SIljWjWW.js → actions-CtZz5zpx.js} +1 -1
- package/dist/browser/_chunks/{command-CuC6W0K5.js → command-CdwzFriQ.js} +1 -1
- package/dist/browser/_chunks/reasoning-CF8YvujA.js +1 -0
- package/dist/browser/_chunks/{source-BH7qeL_9.js → source-BBKnIQg6.js} +1 -1
- package/dist/components/ActionBar/ActionBar.js +4 -4
- package/dist/components/ActivityCard/ActivityCardContent.js +18 -18
- package/dist/components/ActivityCard/ActivityCardFooter.js +13 -13
- package/dist/components/Agent/AgentStateMark.js +8 -8
- package/dist/components/Agent/agent-state-labels.js +10 -29
- package/dist/components/AppLoader/AppLoader.js +5 -6
- package/dist/components/AudioBar/AudioBar.js +18 -19
- package/dist/components/AudioBar/Waveform.js +4 -9
- package/dist/components/Breadcrumb/Breadcrumb.js +16 -18
- package/dist/components/Button/Button.js +4 -4
- package/dist/components/Calendar/CalendarMonthSelector.js +5 -5
- package/dist/components/Calendar/CalendarWeekdayRow.js +4 -4
- package/dist/components/Charts/legend/chart-legend.js +11 -12
- package/dist/components/Charts/legend/legend.js +5 -6
- package/dist/components/Command/CommandControl/shared/CommandFooter.js +2 -4
- package/dist/components/Command/CommandControl/shared/CommandHeader.js +11 -11
- package/dist/components/Command/CommandControl/shared/CommandItem.js +5 -5
- package/dist/components/Command/command.js +10 -13
- package/dist/components/D3Charts/shared/D3ChartLegend.js +10 -10
- package/dist/components/DataGrid/DataGrid.js +8 -21
- package/dist/components/DataGrid/DataGridCellEditor.js +5 -6
- package/dist/components/DataGrid/DataGridColumnHeader.js +9 -10
- package/dist/components/DataGrid/DataGridFind.js +5 -6
- package/dist/components/DataGrid/DataGridGroupHeader.js +4 -4
- package/dist/components/DataGrid/DataGridMenus.js +26 -28
- package/dist/components/DataGrid/DataGridRowHeader.js +13 -14
- package/dist/components/DataGrid/DataGridSearchBar.js +10 -10
- package/dist/components/DataGrid/DataGridSelectionBar.js +8 -9
- package/dist/components/DataGrid/DataGridStatusBar.js +15 -15
- package/dist/components/DataGrid/DataGridTreeCell.js +4 -4
- package/dist/components/DateControl/DateControl.js +20 -58
- package/dist/components/DateInline/DateInline.js +8 -8
- package/dist/components/DateRange/DateRange.js +19 -19
- package/dist/components/DateSummary/DateSummary.js +7 -7
- package/dist/components/DevTools/ApiOverridesTable.js +40 -40
- package/dist/components/DevTools/DevTools.js +25 -27
- package/dist/components/DevTools/ToggleTable.js +28 -28
- package/dist/components/DevTools/apiOverrides.js +17 -17
- package/dist/components/Drawer/Drawer.js +52 -65
- package/dist/components/ElementComment/ElementChangeBar.js +11 -12
- package/dist/components/ElementComment/ElementComment.js +4 -4
- package/dist/components/EmptyState/EmptyState.js +7 -7
- package/dist/components/FeedbackWidget/FeedbackCaptureBar.js +43 -45
- package/dist/components/FeedbackWidget/FeedbackMode.js +3 -7
- package/dist/components/FeedbackWidget/FeedbackModeFrame.js +5 -6
- package/dist/components/FeedbackWidget/FeedbackModeReview.js +22 -23
- package/dist/components/FeedbackWidget/FeedbackWidgetForm.js +47 -47
- package/dist/components/FeedbackWidget/FeedbackWidgetModal.js +14 -14
- package/dist/components/FeedbackWidget/gateway/FeedbackGatewayProvider.js +12 -15
- package/dist/components/FeedbackWidget/gateway/useFeedbackGatewayAuth.js +3 -7
- package/dist/components/FeedbackWidget/gateway/useFeedbackGatewaySession.js +3 -9
- package/dist/components/FeedbackWidget/useElementSelect.js +25 -27
- package/dist/components/FeedbackWidget/useFeedbackMode.js +23 -79
- package/dist/components/FeedbackWidget/useScreenRecording.js +16 -19
- package/dist/components/FeedbackWidget/useScreenshotCapture.js +11 -13
- package/dist/components/FileCard/FileCard.js +7 -7
- package/dist/components/FormatBar/FormatBar.js +16 -32
- package/dist/components/ImageCompare/ImageCompare.js +32 -41
- package/dist/components/ImageGrid/ImageGrid.js +16 -21
- package/dist/components/ListItem/ListItem.js +20 -21
- package/dist/components/Meter/Meter.js +7 -9
- package/dist/components/Metric/Metric.js +10 -10
- package/dist/components/NoDataAvailable/NoDataAvailable.js +4 -4
- package/dist/components/NumberStep/NumberStep.js +7 -7
- package/dist/components/Panel/PanelHeader.js +25 -28
- package/dist/components/Panel/PanelTabs.js +7 -10
- package/dist/components/Panel/Toolbar.browser.js +44 -45
- package/dist/components/Panel/Toolbar.js +23 -26
- package/dist/components/ProgressBar/ProgressBar.js +2 -2
- package/dist/components/Prompt/Attachment.js +23 -24
- package/dist/components/Prompt/Prompt.js +20 -21
- package/dist/components/Prompt/PromptHint.js +7 -7
- package/dist/components/Prompt/Toolbar.js +11 -11
- package/dist/components/PromptQueue/PromptQueue.js +4 -4
- package/dist/components/QueueItem/QueueItem.js +13 -16
- package/dist/components/SearchBar/SearchBar.js +7 -7
- package/dist/components/Select/SelectField.js +5 -6
- package/dist/components/Select/SelectSearchList.js +11 -12
- package/dist/components/SelectControl/Chip.js +5 -6
- package/dist/components/SelectControl/MultiSelectControl.js +9 -9
- package/dist/components/SelectControl/SelectChipList.js +8 -8
- package/dist/components/SelectControl/SelectControl.js +4 -4
- package/dist/components/SelectionToolbar/SelectionToolbar.js +1 -2
- package/dist/components/Slider/MarkedSlider.js +9 -16
- package/dist/components/Slider/Slider.js +7 -8
- package/dist/components/Stepper/Stepper.js +17 -20
- package/dist/components/SubNav/SubNav.js +5 -6
- package/dist/components/Table/TableRowFooter.js +16 -16
- package/dist/components/Table/TableSkeletonRows.js +4 -4
- package/dist/components/TagInputControl/TagInputControl.js +7 -10
- package/dist/components/Upload/Upload.js +8 -12
- package/dist/components/Upload/UploadItem.js +76 -81
- package/dist/components/icons-animated/ListAnimatedButton/ListAnimatedButton.js +5 -6
- package/dist/components/shared/ResizeHandle.js +6 -7
- package/dist/components/shared/ScrollGradientWrapper/ScrollGradientWrapper.js +8 -12
- package/dist/components/shared/calendar/WeekdayHeaders.js +5 -6
- package/dist/components/shared/reorder/ReorderDragHandle.js +4 -4
- package/dist/play-cdn-claude.js +1 -1
- package/package.json +3 -2
- package/src/ai-elements/reasoning/reasoning.tsx +19 -46
- package/src/ai-elements/thinking/thinking.tsx +13 -4
- package/dist/browser/_chunks/QueueItem-E-buf4xH.js +0 -1
- package/dist/browser/_chunks/Upload-DpeS_cQZ.js +0 -1
- package/dist/browser/_chunks/reasoning-Mq-J3eao.js +0 -1
|
@@ -24,7 +24,7 @@ function ThinkingLoader(t0) {
|
|
|
24
24
|
t1 = $[4];
|
|
25
25
|
}
|
|
26
26
|
const qaTestId = t1 === void 0 ? "thinking-loader" : t1;
|
|
27
|
-
const { _:
|
|
27
|
+
const { _: $__ } = useLingui();
|
|
28
28
|
let t2;
|
|
29
29
|
if ($[5] !== className) {
|
|
30
30
|
t2 = cn("inline-flex items-center justify-center", className);
|
|
@@ -49,9 +49,9 @@ function ThinkingLoader(t0) {
|
|
|
49
49
|
t4 = $[8];
|
|
50
50
|
}
|
|
51
51
|
let t5;
|
|
52
|
-
if ($[9] !==
|
|
53
|
-
t5 = label ??
|
|
54
|
-
$[9] =
|
|
52
|
+
if ($[9] !== $__ || $[10] !== label) {
|
|
53
|
+
t5 = label ?? $__({ id: "AUV-TY" });
|
|
54
|
+
$[9] = $__;
|
|
55
55
|
$[10] = label;
|
|
56
56
|
$[11] = t5;
|
|
57
57
|
} else t5 = $[11];
|
|
@@ -22,7 +22,7 @@ function UserRequestForm(t0) {
|
|
|
22
22
|
const showSheetHandle = t5 === void 0 ? false : t5;
|
|
23
23
|
const interactionDisabled = t6 === void 0 ? false : t6;
|
|
24
24
|
const qaTestId = t7 === void 0 ? "user-request-form" : t7;
|
|
25
|
-
const { _:
|
|
25
|
+
const { _: $__ } = useLingui();
|
|
26
26
|
const [comment, setComment] = useState("");
|
|
27
27
|
const [showValidationTooltip, setShowValidationTooltip] = useState(false);
|
|
28
28
|
const titleId = useId();
|
|
@@ -132,15 +132,15 @@ function UserRequestForm(t0) {
|
|
|
132
132
|
} else t14 = $[19];
|
|
133
133
|
const handleExpert = t14;
|
|
134
134
|
let t15;
|
|
135
|
-
if ($[20] !==
|
|
136
|
-
t15 = !hasContent ?
|
|
135
|
+
if ($[20] !== $__ || $[21] !== charCount || $[22] !== hasContent || $[23] !== isOverLimit || $[24] !== maxCommentLength) {
|
|
136
|
+
t15 = !hasContent ? $__({ id: "3cp1rD" }) : isOverLimit ? $__({
|
|
137
137
|
id: "zpjV9a",
|
|
138
138
|
values: {
|
|
139
139
|
charCount,
|
|
140
140
|
maxCommentLength
|
|
141
141
|
}
|
|
142
142
|
}) : "";
|
|
143
|
-
$[20] =
|
|
143
|
+
$[20] = $__;
|
|
144
144
|
$[21] = charCount;
|
|
145
145
|
$[22] = hasContent;
|
|
146
146
|
$[23] = isOverLimit;
|
|
@@ -149,17 +149,17 @@ function UserRequestForm(t0) {
|
|
|
149
149
|
} else t15 = $[25];
|
|
150
150
|
const validationMessage = t15;
|
|
151
151
|
let t16;
|
|
152
|
-
if ($[26] !==
|
|
153
|
-
t16 = titleCopy ??
|
|
154
|
-
$[26] =
|
|
152
|
+
if ($[26] !== $__ || $[27] !== titleCopy) {
|
|
153
|
+
t16 = titleCopy ?? $__({ id: "DzIegb" });
|
|
154
|
+
$[26] = $__;
|
|
155
155
|
$[27] = titleCopy;
|
|
156
156
|
$[28] = t16;
|
|
157
157
|
} else t16 = $[28];
|
|
158
158
|
const resolvedTitle = t16;
|
|
159
159
|
let t17;
|
|
160
|
-
if ($[29] !==
|
|
161
|
-
t17 = placeholderCopy ??
|
|
162
|
-
$[29] =
|
|
160
|
+
if ($[29] !== $__ || $[30] !== placeholderCopy) {
|
|
161
|
+
t17 = placeholderCopy ?? $__({ id: "aVEJbL" });
|
|
162
|
+
$[29] = $__;
|
|
163
163
|
$[30] = placeholderCopy;
|
|
164
164
|
$[31] = t17;
|
|
165
165
|
} else t17 = $[31];
|
|
@@ -216,9 +216,9 @@ function UserRequestForm(t0) {
|
|
|
216
216
|
$[46] = t24;
|
|
217
217
|
} else t24 = $[46];
|
|
218
218
|
let t25;
|
|
219
|
-
if ($[47] !==
|
|
220
|
-
t25 =
|
|
221
|
-
$[47] =
|
|
219
|
+
if ($[47] !== $__) {
|
|
220
|
+
t25 = $__({ id: "FdH9IZ" });
|
|
221
|
+
$[47] = $__;
|
|
222
222
|
$[48] = t25;
|
|
223
223
|
} else t25 = $[48];
|
|
224
224
|
let t26;
|
|
@@ -257,13 +257,13 @@ function UserRequestForm(t0) {
|
|
|
257
257
|
$[58] = t27;
|
|
258
258
|
} else t27 = $[58];
|
|
259
259
|
let t28;
|
|
260
|
-
if ($[59] !==
|
|
260
|
+
if ($[59] !== $__ || $[60] !== footerMode || $[61] !== handleExpert || $[62] !== handleSubmit || $[63] !== interactionDisabled || $[64] !== onCancel || $[65] !== skipButtonLabel || $[66] !== submitButtonLabel) {
|
|
261
261
|
t28 = footerMode === "text_input" ? /* @__PURE__ */ jsx(UserRequestActions, {
|
|
262
262
|
layout: "text_input",
|
|
263
263
|
onSkip: onCancel,
|
|
264
264
|
onSubmit: handleSubmit,
|
|
265
|
-
skipLabel: skipButtonLabel ??
|
|
266
|
-
submitLabel: submitButtonLabel ??
|
|
265
|
+
skipLabel: skipButtonLabel ?? $__({ id: "MgnVua" }),
|
|
266
|
+
submitLabel: submitButtonLabel ?? $__({ id: "5PDsfs" }),
|
|
267
267
|
skipDisabled: interactionDisabled,
|
|
268
268
|
submitDisabled: interactionDisabled
|
|
269
269
|
}) : /* @__PURE__ */ jsx(UserRequestActions, {
|
|
@@ -275,7 +275,7 @@ function UserRequestForm(t0) {
|
|
|
275
275
|
cancelDisabled: interactionDisabled,
|
|
276
276
|
submitDisabled: interactionDisabled
|
|
277
277
|
});
|
|
278
|
-
$[59] =
|
|
278
|
+
$[59] = $__;
|
|
279
279
|
$[60] = footerMode;
|
|
280
280
|
$[61] = handleExpert;
|
|
281
281
|
$[62] = handleSubmit;
|
|
@@ -18,20 +18,20 @@ function UserRequestInput(t0) {
|
|
|
18
18
|
const autoFocus = t1 === void 0 ? false : t1;
|
|
19
19
|
const disabled = t2 === void 0 ? false : t2;
|
|
20
20
|
const qaTestId = t3 === void 0 ? "user-request-input" : t3;
|
|
21
|
-
const { _:
|
|
21
|
+
const { _: $__ } = useLingui();
|
|
22
22
|
const inputRef = useRef(null);
|
|
23
23
|
let t4;
|
|
24
|
-
if ($[0] !==
|
|
25
|
-
t4 = placeholder ??
|
|
26
|
-
$[0] =
|
|
24
|
+
if ($[0] !== $__ || $[1] !== placeholder) {
|
|
25
|
+
t4 = placeholder ?? $__({ id: "nwVhTk" });
|
|
26
|
+
$[0] = $__;
|
|
27
27
|
$[1] = placeholder;
|
|
28
28
|
$[2] = t4;
|
|
29
29
|
} else t4 = $[2];
|
|
30
30
|
const resolvedPlaceholder = t4;
|
|
31
31
|
let t5;
|
|
32
|
-
if ($[3] !==
|
|
33
|
-
t5 = ariaLabel ??
|
|
34
|
-
$[3] =
|
|
32
|
+
if ($[3] !== $__ || $[4] !== ariaLabel) {
|
|
33
|
+
t5 = ariaLabel ?? $__({ id: "dN9Fia" });
|
|
34
|
+
$[3] = $__;
|
|
35
35
|
$[4] = ariaLabel;
|
|
36
36
|
$[5] = t5;
|
|
37
37
|
} else t5 = $[5];
|
|
@@ -102,25 +102,25 @@ function UserRequestInput(t0) {
|
|
|
102
102
|
$[22] = t12;
|
|
103
103
|
} else t12 = $[22];
|
|
104
104
|
let t13;
|
|
105
|
-
if ($[23] !==
|
|
105
|
+
if ($[23] !== $__ || $[24] !== disabled || $[25] !== onSkip || $[26] !== onSubmit || $[27] !== value) {
|
|
106
106
|
t13 = onSkip ? value.trim() ? /* @__PURE__ */ jsx(Button, {
|
|
107
107
|
type: "button",
|
|
108
108
|
variant: "stroke",
|
|
109
109
|
size: "medium",
|
|
110
110
|
onClick: onSubmit,
|
|
111
111
|
disabled,
|
|
112
|
-
"aria-label":
|
|
113
|
-
children:
|
|
112
|
+
"aria-label": $__({ id: "ezEvd2" }),
|
|
113
|
+
children: $__({ id: "hQRttt" })
|
|
114
114
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
115
115
|
type: "button",
|
|
116
116
|
variant: "stroke",
|
|
117
117
|
size: "medium",
|
|
118
118
|
onClick: onSkip,
|
|
119
119
|
disabled,
|
|
120
|
-
"aria-label":
|
|
121
|
-
children:
|
|
120
|
+
"aria-label": $__({ id: "ZUhSpK" }),
|
|
121
|
+
children: $__({ id: "6Uau97" })
|
|
122
122
|
}) : null;
|
|
123
|
-
$[23] =
|
|
123
|
+
$[23] = $__;
|
|
124
124
|
$[24] = disabled;
|
|
125
125
|
$[25] = onSkip;
|
|
126
126
|
$[26] = onSubmit;
|
package/dist/ai-elements/UserRequest/UserRequestControl/questionnaire/UserRequestQuestionnaire.js
CHANGED
|
@@ -21,8 +21,7 @@ function isDomNode(value) {
|
|
|
21
21
|
/**
|
|
22
22
|
* Returns true when the on-screen keyboard is visible (mobile only). Uses `visualViewport` height
|
|
23
23
|
* vs. screen height — the most reliable cross-browser signal available without native APIs.
|
|
24
|
-
*/
|
|
25
|
-
function subscribeToVisualViewport(cb) {
|
|
24
|
+
*/ function subscribeToVisualViewport(cb) {
|
|
26
25
|
window.visualViewport?.addEventListener("resize", cb);
|
|
27
26
|
return () => window.visualViewport?.removeEventListener("resize", cb);
|
|
28
27
|
}
|
|
@@ -35,8 +34,7 @@ function _temp2() {
|
|
|
35
34
|
function _temp() {
|
|
36
35
|
return window.matchMedia("(pointer: coarse)").matches && window.visualViewport != null && window.visualViewport.height < window.screen.height * .75;
|
|
37
36
|
}
|
|
38
|
-
/** Hairline between option rows; kept local so User Request does not depend on `Divider`. */
|
|
39
|
-
function UserRequestRowDivider(t0) {
|
|
37
|
+
/** Hairline between option rows; kept local so User Request does not depend on `Divider`. */ function UserRequestRowDivider(t0) {
|
|
40
38
|
const $ = c(5);
|
|
41
39
|
const { hidden: t1 } = t0;
|
|
42
40
|
const t2 = (t1 === void 0 ? false : t1) && "opacity-0";
|
|
@@ -63,13 +61,12 @@ function UserRequestRowDivider(t0) {
|
|
|
63
61
|
} else t5 = $[4];
|
|
64
62
|
return t5;
|
|
65
63
|
}
|
|
66
|
-
/** Multi-step questionnaire shell (internal; use `<UserRequest mode="questionnaire" />`). */
|
|
67
|
-
function UserRequestQuestionnaire(t0) {
|
|
64
|
+
/** Multi-step questionnaire shell (internal; use `<UserRequest mode="questionnaire" />`). */ function UserRequestQuestionnaire(t0) {
|
|
68
65
|
const $ = c(147);
|
|
69
66
|
const { questionnaire, callbacks: t1, presentation, qaTestId: t2 } = t0;
|
|
70
67
|
const { onAnswer, onSkip, onDismiss, onValidationFail } = t1;
|
|
71
68
|
const qaTestId = t2 === void 0 ? "user-request-questionnaire" : t2;
|
|
72
|
-
const { _:
|
|
69
|
+
const { _: $__ } = useLingui();
|
|
73
70
|
const variant = presentation?.variant ?? "weak";
|
|
74
71
|
const titleLeading = presentation?.titleLeading;
|
|
75
72
|
const showCustomRow = presentation?.showCustomRow === true;
|
|
@@ -220,11 +217,11 @@ function UserRequestQuestionnaire(t0) {
|
|
|
220
217
|
} else t12 = $[22];
|
|
221
218
|
const handleMultiToggle = t12;
|
|
222
219
|
let t13;
|
|
223
|
-
if ($[23] !==
|
|
220
|
+
if ($[23] !== $__ || $[24] !== advanceOrSubmit || $[25] !== answers || $[26] !== currentStep || $[27] !== customInputs || $[28] !== onValidationFail || $[29] !== questionType || $[30] !== textAnswerMaxLength) {
|
|
224
221
|
t13 = function handleCustomSubmit() {
|
|
225
222
|
const raw = customInputs.get(currentStep) ?? "";
|
|
226
223
|
if (questionType === "text" && raw.length > textAnswerMaxLength) {
|
|
227
|
-
onValidationFail?.(
|
|
224
|
+
onValidationFail?.($__({
|
|
228
225
|
id: "6T2XK0",
|
|
229
226
|
values: {
|
|
230
227
|
over: raw.length,
|
|
@@ -235,7 +232,7 @@ function UserRequestQuestionnaire(t0) {
|
|
|
235
232
|
}
|
|
236
233
|
const text = raw.trim();
|
|
237
234
|
if (!text) {
|
|
238
|
-
onValidationFail?.(
|
|
235
|
+
onValidationFail?.($__({ id: "ww0IGv" }));
|
|
239
236
|
return;
|
|
240
237
|
}
|
|
241
238
|
const updated_1 = new Map(answers);
|
|
@@ -248,7 +245,7 @@ function UserRequestQuestionnaire(t0) {
|
|
|
248
245
|
});
|
|
249
246
|
advanceOrSubmit(updated_1);
|
|
250
247
|
};
|
|
251
|
-
$[23] =
|
|
248
|
+
$[23] = $__;
|
|
252
249
|
$[24] = advanceOrSubmit;
|
|
253
250
|
$[25] = answers;
|
|
254
251
|
$[26] = currentStep;
|
|
@@ -260,15 +257,15 @@ function UserRequestQuestionnaire(t0) {
|
|
|
260
257
|
} else t13 = $[31];
|
|
261
258
|
const handleCustomSubmit = t13;
|
|
262
259
|
let t14;
|
|
263
|
-
if ($[32] !==
|
|
260
|
+
if ($[32] !== $__ || $[33] !== advanceOrSubmit || $[34] !== answers || $[35] !== currentStep || $[36] !== multiSelections || $[37] !== onValidationFail) {
|
|
264
261
|
t14 = function handleMultiSubmit() {
|
|
265
262
|
if (!((multiSelections.get(currentStep)?.size ?? 0) > 0)) {
|
|
266
|
-
onValidationFail?.(
|
|
263
|
+
onValidationFail?.($__({ id: "MGTz59" }));
|
|
267
264
|
return;
|
|
268
265
|
}
|
|
269
266
|
advanceOrSubmit(answers);
|
|
270
267
|
};
|
|
271
|
-
$[32] =
|
|
268
|
+
$[32] = $__;
|
|
272
269
|
$[33] = advanceOrSubmit;
|
|
273
270
|
$[34] = answers;
|
|
274
271
|
$[35] = currentStep;
|
|
@@ -449,7 +446,7 @@ function UserRequestQuestionnaire(t0) {
|
|
|
449
446
|
t31 = $[89];
|
|
450
447
|
}
|
|
451
448
|
let t32;
|
|
452
|
-
if ($[90] !==
|
|
449
|
+
if ($[90] !== $__ || $[91] !== currentQuestion.optionDescriptions || $[92] !== currentQuestion.options || $[93] !== currentStep || $[94] !== customInputs || $[95] !== customRowIndex || $[96] !== handleCustomSubmit || $[97] !== handleMultiToggle || $[98] !== handleSelectOption || $[99] !== handleSkipStep || $[100] !== isCustomDividerHidden || $[101] !== isDividerHidden || $[102] !== isKeyboardOpen || $[103] !== isOptionSelected || $[104] !== questionType || $[105] !== showCustomRow || $[106] !== updateCustomInput || $[107] !== variant) {
|
|
453
450
|
t32 = (questionType === "select" || questionType === "multi_select") && currentQuestion.options && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ScrollGradientWrapper, {
|
|
454
451
|
direction: "vertical",
|
|
455
452
|
gradientSurface: variant,
|
|
@@ -457,7 +454,7 @@ function UserRequestQuestionnaire(t0) {
|
|
|
457
454
|
children: /* @__PURE__ */ jsx("div", {
|
|
458
455
|
ref: optionsListRef,
|
|
459
456
|
role: "listbox",
|
|
460
|
-
"aria-label":
|
|
457
|
+
"aria-label": $__({ id: "0zpgxV" }),
|
|
461
458
|
"aria-multiselectable": questionType === "multi_select",
|
|
462
459
|
className: "flex flex-col",
|
|
463
460
|
onPointerLeave: (e_0) => {
|
|
@@ -501,7 +498,7 @@ function UserRequestQuestionnaire(t0) {
|
|
|
501
498
|
onSkip: questionType === "select" ? handleSkipStep : void 0
|
|
502
499
|
})
|
|
503
500
|
})] })] });
|
|
504
|
-
$[90] =
|
|
501
|
+
$[90] = $__;
|
|
505
502
|
$[91] = currentQuestion.optionDescriptions;
|
|
506
503
|
$[92] = currentQuestion.options;
|
|
507
504
|
$[93] = currentStep;
|
|
@@ -522,7 +519,7 @@ function UserRequestQuestionnaire(t0) {
|
|
|
522
519
|
$[108] = t32;
|
|
523
520
|
} else t32 = $[108];
|
|
524
521
|
let t33;
|
|
525
|
-
if ($[109] !==
|
|
522
|
+
if ($[109] !== $__ || $[110] !== handleCustomSubmit || $[111] !== isTextAnswerOverLimit || $[112] !== questionType || $[113] !== textAnswerMaxLength || $[114] !== textFieldValue || $[115] !== updateCustomInput) {
|
|
526
523
|
t33 = questionType === "text" ? /* @__PURE__ */ jsx("div", {
|
|
527
524
|
className: "p-3",
|
|
528
525
|
children: /* @__PURE__ */ jsx(TextareaField, {
|
|
@@ -531,13 +528,13 @@ function UserRequestQuestionnaire(t0) {
|
|
|
531
528
|
onChange: (e_2) => updateCustomInput(e_2.target.value),
|
|
532
529
|
textareaControlProps: {
|
|
533
530
|
value: textFieldValue,
|
|
534
|
-
placeholder:
|
|
531
|
+
placeholder: $__({ id: "l1fGrM" }),
|
|
535
532
|
variant: "weak",
|
|
536
533
|
maxHeight: 200,
|
|
537
534
|
maxLength: textAnswerMaxLength,
|
|
538
535
|
rows: 3,
|
|
539
536
|
autoFocus: true,
|
|
540
|
-
"aria-label":
|
|
537
|
+
"aria-label": $__({ id: "Vtq6ex" }),
|
|
541
538
|
onKeyDown: (e_3) => {
|
|
542
539
|
if (e_3.key === "Enter" && !e_3.shiftKey && !e_3.repeat) {
|
|
543
540
|
e_3.preventDefault();
|
|
@@ -547,7 +544,7 @@ function UserRequestQuestionnaire(t0) {
|
|
|
547
544
|
}
|
|
548
545
|
})
|
|
549
546
|
}) : null;
|
|
550
|
-
$[109] =
|
|
547
|
+
$[109] = $__;
|
|
551
548
|
$[110] = handleCustomSubmit;
|
|
552
549
|
$[111] = isTextAnswerOverLimit;
|
|
553
550
|
$[112] = questionType;
|
|
@@ -578,15 +575,15 @@ function UserRequestQuestionnaire(t0) {
|
|
|
578
575
|
$[121] = t34;
|
|
579
576
|
} else t34 = $[121];
|
|
580
577
|
let t35;
|
|
581
|
-
if ($[122] !==
|
|
578
|
+
if ($[122] !== $__ || $[123] !== currentStep || $[124] !== handleMultiSubmit || $[125] !== handleSkipStep || $[126] !== multiCount || $[127] !== multiSelectFooter || $[128] !== questionType || $[129] !== totalSteps) {
|
|
582
579
|
t35 = questionType === "multi_select" ? multiSelectFooter ?? /* @__PURE__ */ jsx(UserRequestActions, {
|
|
583
580
|
layout: "multi_select",
|
|
584
581
|
selectionCount: multiCount,
|
|
585
582
|
onSkip: handleSkipStep,
|
|
586
583
|
onPrimary: handleMultiSubmit,
|
|
587
|
-
primaryLabel: currentStep < totalSteps - 1 ?
|
|
584
|
+
primaryLabel: currentStep < totalSteps - 1 ? $__({ id: "hXzOVo" }) : $__({ id: "hQRttt" })
|
|
588
585
|
}) : null;
|
|
589
|
-
$[122] =
|
|
586
|
+
$[122] = $__;
|
|
590
587
|
$[123] = currentStep;
|
|
591
588
|
$[124] = handleMultiSubmit;
|
|
592
589
|
$[125] = handleSkipStep;
|
|
@@ -597,14 +594,14 @@ function UserRequestQuestionnaire(t0) {
|
|
|
597
594
|
$[130] = t35;
|
|
598
595
|
} else t35 = $[130];
|
|
599
596
|
let t36;
|
|
600
|
-
if ($[131] !==
|
|
597
|
+
if ($[131] !== $__ || $[132] !== currentStep || $[133] !== handleCustomSubmit || $[134] !== handleSkipStep || $[135] !== questionType || $[136] !== totalSteps) {
|
|
601
598
|
t36 = questionType === "text" ? /* @__PURE__ */ jsx(UserRequestActions, {
|
|
602
599
|
layout: "text_input",
|
|
603
600
|
onSkip: handleSkipStep,
|
|
604
601
|
onSubmit: handleCustomSubmit,
|
|
605
|
-
submitLabel: currentStep < totalSteps - 1 ?
|
|
602
|
+
submitLabel: currentStep < totalSteps - 1 ? $__({ id: "hXzOVo" }) : $__({ id: "hQRttt" })
|
|
606
603
|
}) : null;
|
|
607
|
-
$[131] =
|
|
604
|
+
$[131] = $__;
|
|
608
605
|
$[132] = currentStep;
|
|
609
606
|
$[133] = handleCustomSubmit;
|
|
610
607
|
$[134] = handleSkipStep;
|
|
@@ -14,19 +14,19 @@ const actionButtonMin = "min-w-20";
|
|
|
14
14
|
function MultiSelectFooter(t0) {
|
|
15
15
|
const $ = c(32);
|
|
16
16
|
const { className, selectionCount, onSkip, onPrimary, primaryLabel, skipLabel, qaTestId } = t0;
|
|
17
|
-
const { _:
|
|
17
|
+
const { _: $__ } = useLingui();
|
|
18
18
|
let t1;
|
|
19
|
-
if ($[0] !==
|
|
20
|
-
t1 = skipLabel ??
|
|
21
|
-
$[0] =
|
|
19
|
+
if ($[0] !== $__ || $[1] !== skipLabel) {
|
|
20
|
+
t1 = skipLabel ?? $__({ id: "MgnVua" });
|
|
21
|
+
$[0] = $__;
|
|
22
22
|
$[1] = skipLabel;
|
|
23
23
|
$[2] = t1;
|
|
24
24
|
} else t1 = $[2];
|
|
25
25
|
const skipText = t1;
|
|
26
26
|
let t2;
|
|
27
|
-
if ($[3] !==
|
|
28
|
-
t2 = skipLabel != null ? skipText :
|
|
29
|
-
$[3] =
|
|
27
|
+
if ($[3] !== $__ || $[4] !== skipLabel || $[5] !== skipText) {
|
|
28
|
+
t2 = skipLabel != null ? skipText : $__({ id: "-P0Cn2" });
|
|
29
|
+
$[3] = $__;
|
|
30
30
|
$[4] = skipLabel;
|
|
31
31
|
$[5] = skipText;
|
|
32
32
|
$[6] = t2;
|
|
@@ -44,12 +44,12 @@ function MultiSelectFooter(t0) {
|
|
|
44
44
|
$[9] = t4;
|
|
45
45
|
} else t4 = $[9];
|
|
46
46
|
let t5;
|
|
47
|
-
if ($[10] !==
|
|
48
|
-
t5 =
|
|
47
|
+
if ($[10] !== $__ || $[11] !== selectionCount) {
|
|
48
|
+
t5 = $__({
|
|
49
49
|
id: "Cl6Kg5",
|
|
50
50
|
values: { selectionCount }
|
|
51
51
|
});
|
|
52
|
-
$[10] =
|
|
52
|
+
$[10] = $__;
|
|
53
53
|
$[11] = selectionCount;
|
|
54
54
|
$[12] = t5;
|
|
55
55
|
} else t5 = $[12];
|
|
@@ -131,19 +131,19 @@ function MultiSelectFooter(t0) {
|
|
|
131
131
|
function SteppedFooter(t0) {
|
|
132
132
|
const $ = c(25);
|
|
133
133
|
const { className, onBack, onNext, backDisabled, nextDisabled, backLabel, nextLabel, qaTestId } = t0;
|
|
134
|
-
const { _:
|
|
134
|
+
const { _: $__ } = useLingui();
|
|
135
135
|
let t1;
|
|
136
|
-
if ($[0] !==
|
|
137
|
-
t1 = backLabel ??
|
|
138
|
-
$[0] =
|
|
136
|
+
if ($[0] !== $__ || $[1] !== backLabel) {
|
|
137
|
+
t1 = backLabel ?? $__({ id: "iH8pgl" });
|
|
138
|
+
$[0] = $__;
|
|
139
139
|
$[1] = backLabel;
|
|
140
140
|
$[2] = t1;
|
|
141
141
|
} else t1 = $[2];
|
|
142
142
|
const backText = t1;
|
|
143
143
|
let t2;
|
|
144
|
-
if ($[3] !==
|
|
145
|
-
t2 = nextLabel ??
|
|
146
|
-
$[3] =
|
|
144
|
+
if ($[3] !== $__ || $[4] !== nextLabel) {
|
|
145
|
+
t2 = nextLabel ?? $__({ id: "hXzOVo" });
|
|
146
|
+
$[3] = $__;
|
|
147
147
|
$[4] = nextLabel;
|
|
148
148
|
$[5] = t2;
|
|
149
149
|
} else t2 = $[5];
|
|
@@ -228,19 +228,19 @@ function SteppedFooter(t0) {
|
|
|
228
228
|
function AsymmetricFooter(t0) {
|
|
229
229
|
const $ = c(24);
|
|
230
230
|
const { className, onSkip, onContinue, skipDisabled, continueDisabled, skipLabel, continueLabel, qaTestId } = t0;
|
|
231
|
-
const { _:
|
|
231
|
+
const { _: $__ } = useLingui();
|
|
232
232
|
let t1;
|
|
233
|
-
if ($[0] !==
|
|
234
|
-
t1 = skipLabel ??
|
|
235
|
-
$[0] =
|
|
233
|
+
if ($[0] !== $__ || $[1] !== skipLabel) {
|
|
234
|
+
t1 = skipLabel ?? $__({ id: "6Uau97" });
|
|
235
|
+
$[0] = $__;
|
|
236
236
|
$[1] = skipLabel;
|
|
237
237
|
$[2] = t1;
|
|
238
238
|
} else t1 = $[2];
|
|
239
239
|
const skipText = t1;
|
|
240
240
|
let t2;
|
|
241
|
-
if ($[3] !==
|
|
242
|
-
t2 = continueLabel ??
|
|
243
|
-
$[3] =
|
|
241
|
+
if ($[3] !== $__ || $[4] !== continueLabel) {
|
|
242
|
+
t2 = continueLabel ?? $__({ id: "xGVfLh" });
|
|
243
|
+
$[3] = $__;
|
|
244
244
|
$[4] = continueLabel;
|
|
245
245
|
$[5] = t2;
|
|
246
246
|
} else t2 = $[5];
|
|
@@ -319,11 +319,11 @@ function AsymmetricFooter(t0) {
|
|
|
319
319
|
function FullContinueFooter(t0) {
|
|
320
320
|
const $ = c(15);
|
|
321
321
|
const { className, onContinue, continueDisabled, continueLabel, qaTestId } = t0;
|
|
322
|
-
const { _:
|
|
322
|
+
const { _: $__ } = useLingui();
|
|
323
323
|
let t1;
|
|
324
|
-
if ($[0] !==
|
|
325
|
-
t1 = continueLabel ??
|
|
326
|
-
$[0] =
|
|
324
|
+
if ($[0] !== $__ || $[1] !== continueLabel) {
|
|
325
|
+
t1 = continueLabel ?? $__({ id: "xGVfLh" });
|
|
326
|
+
$[0] = $__;
|
|
327
327
|
$[1] = continueLabel;
|
|
328
328
|
$[2] = t1;
|
|
329
329
|
} else t1 = $[2];
|
|
@@ -380,19 +380,19 @@ function FullContinueFooter(t0) {
|
|
|
380
380
|
function TextInputFooter(t0) {
|
|
381
381
|
const $ = c(25);
|
|
382
382
|
const { className, onSkip, onSubmit, submitLabel, skipLabel, skipDisabled, submitDisabled, qaTestId } = t0;
|
|
383
|
-
const { _:
|
|
383
|
+
const { _: $__ } = useLingui();
|
|
384
384
|
let t1;
|
|
385
|
-
if ($[0] !==
|
|
386
|
-
t1 = skipLabel ??
|
|
387
|
-
$[0] =
|
|
385
|
+
if ($[0] !== $__ || $[1] !== skipLabel) {
|
|
386
|
+
t1 = skipLabel ?? $__({ id: "6Uau97" });
|
|
387
|
+
$[0] = $__;
|
|
388
388
|
$[1] = skipLabel;
|
|
389
389
|
$[2] = t1;
|
|
390
390
|
} else t1 = $[2];
|
|
391
391
|
const skipText = t1;
|
|
392
392
|
let t2;
|
|
393
|
-
if ($[3] !==
|
|
394
|
-
t2 = skipLabel != null ? skipText :
|
|
395
|
-
$[3] =
|
|
393
|
+
if ($[3] !== $__ || $[4] !== skipLabel || $[5] !== skipText) {
|
|
394
|
+
t2 = skipLabel != null ? skipText : $__({ id: "ZUhSpK" });
|
|
395
|
+
$[3] = $__;
|
|
396
396
|
$[4] = skipLabel;
|
|
397
397
|
$[5] = skipText;
|
|
398
398
|
$[6] = t2;
|
|
@@ -467,19 +467,19 @@ function TextInputFooter(t0) {
|
|
|
467
467
|
function ApprovalFooter(t0) {
|
|
468
468
|
const $ = c(23);
|
|
469
469
|
const { className, onConfirm, onDeny, confirmDisabled, denyDisabled, denyLabel, confirmLabel, qaTestId } = t0;
|
|
470
|
-
const { _:
|
|
470
|
+
const { _: $__ } = useLingui();
|
|
471
471
|
let t1;
|
|
472
|
-
if ($[0] !==
|
|
473
|
-
t1 = denyLabel ??
|
|
474
|
-
$[0] =
|
|
472
|
+
if ($[0] !== $__ || $[1] !== denyLabel) {
|
|
473
|
+
t1 = denyLabel ?? $__({ id: "cFCKYZ" });
|
|
474
|
+
$[0] = $__;
|
|
475
475
|
$[1] = denyLabel;
|
|
476
476
|
$[2] = t1;
|
|
477
477
|
} else t1 = $[2];
|
|
478
478
|
const denyText = t1;
|
|
479
479
|
let t2;
|
|
480
|
-
if ($[3] !==
|
|
481
|
-
t2 = confirmLabel ??
|
|
482
|
-
$[3] =
|
|
480
|
+
if ($[3] !== $__ || $[4] !== confirmLabel) {
|
|
481
|
+
t2 = confirmLabel ?? $__({ id: "7VpPHA" });
|
|
482
|
+
$[3] = $__;
|
|
483
483
|
$[4] = confirmLabel;
|
|
484
484
|
$[5] = t2;
|
|
485
485
|
} else t2 = $[5];
|
|
@@ -552,44 +552,44 @@ function ApprovalFooter(t0) {
|
|
|
552
552
|
function FeedbackFooter(t0) {
|
|
553
553
|
const $ = c(45);
|
|
554
554
|
const { className, onExpert, onCancel, onSubmit, expertDisabled, cancelDisabled, submitDisabled, expertLabel, cancelLabel, submitLabel, qaTestId } = t0;
|
|
555
|
-
const { _:
|
|
555
|
+
const { _: $__ } = useLingui();
|
|
556
556
|
let t1;
|
|
557
|
-
if ($[0] !==
|
|
558
|
-
t1 = expertLabel ??
|
|
559
|
-
$[0] =
|
|
557
|
+
if ($[0] !== $__ || $[1] !== expertLabel) {
|
|
558
|
+
t1 = expertLabel ?? $__({ id: "3RKzUJ" });
|
|
559
|
+
$[0] = $__;
|
|
560
560
|
$[1] = expertLabel;
|
|
561
561
|
$[2] = t1;
|
|
562
562
|
} else t1 = $[2];
|
|
563
563
|
const expertText = t1;
|
|
564
564
|
let t2;
|
|
565
|
-
if ($[3] !==
|
|
566
|
-
t2 = cancelLabel ??
|
|
567
|
-
$[3] =
|
|
565
|
+
if ($[3] !== $__ || $[4] !== cancelLabel) {
|
|
566
|
+
t2 = cancelLabel ?? $__({ id: "dEgA5A" });
|
|
567
|
+
$[3] = $__;
|
|
568
568
|
$[4] = cancelLabel;
|
|
569
569
|
$[5] = t2;
|
|
570
570
|
} else t2 = $[5];
|
|
571
571
|
const cancelText = t2;
|
|
572
572
|
let t3;
|
|
573
|
-
if ($[6] !==
|
|
574
|
-
t3 = submitLabel ??
|
|
575
|
-
$[6] =
|
|
573
|
+
if ($[6] !== $__ || $[7] !== submitLabel) {
|
|
574
|
+
t3 = submitLabel ?? $__({ id: "hQRttt" });
|
|
575
|
+
$[6] = $__;
|
|
576
576
|
$[7] = submitLabel;
|
|
577
577
|
$[8] = t3;
|
|
578
578
|
} else t3 = $[8];
|
|
579
579
|
const submitText = t3;
|
|
580
580
|
let t4;
|
|
581
|
-
if ($[9] !==
|
|
582
|
-
t4 = cancelLabel != null ? cancelText :
|
|
583
|
-
$[9] =
|
|
581
|
+
if ($[9] !== $__ || $[10] !== cancelLabel || $[11] !== cancelText) {
|
|
582
|
+
t4 = cancelLabel != null ? cancelText : $__({ id: "-71KZ8" });
|
|
583
|
+
$[9] = $__;
|
|
584
584
|
$[10] = cancelLabel;
|
|
585
585
|
$[11] = cancelText;
|
|
586
586
|
$[12] = t4;
|
|
587
587
|
} else t4 = $[12];
|
|
588
588
|
const cancelAria = t4;
|
|
589
589
|
let t5;
|
|
590
|
-
if ($[13] !==
|
|
591
|
-
t5 = submitLabel != null ? submitText :
|
|
592
|
-
$[13] =
|
|
590
|
+
if ($[13] !== $__ || $[14] !== submitLabel || $[15] !== submitText) {
|
|
591
|
+
t5 = submitLabel != null ? submitText : $__({ id: "1m41_U" });
|
|
592
|
+
$[13] = $__;
|
|
593
593
|
$[14] = submitLabel;
|
|
594
594
|
$[15] = submitText;
|
|
595
595
|
$[16] = t5;
|
|
@@ -8,7 +8,7 @@ function UserRequestText(t0) {
|
|
|
8
8
|
const $ = c(13);
|
|
9
9
|
const { description, className, qaTestId: t1 } = t0;
|
|
10
10
|
const qaTestId = t1 === void 0 ? "user-request-text" : t1;
|
|
11
|
-
const { _:
|
|
11
|
+
const { _: $__ } = useLingui();
|
|
12
12
|
let t2;
|
|
13
13
|
if ($[0] !== description) {
|
|
14
14
|
t2 = description?.trim() ?? "";
|
|
@@ -23,9 +23,9 @@ function UserRequestText(t0) {
|
|
|
23
23
|
$[3] = t3;
|
|
24
24
|
} else t3 = $[3];
|
|
25
25
|
let t4;
|
|
26
|
-
if ($[4] !==
|
|
27
|
-
t4 = desc ||
|
|
28
|
-
$[4] =
|
|
26
|
+
if ($[4] !== $__ || $[5] !== desc) {
|
|
27
|
+
t4 = desc || $__({ id: "nsi5FV" });
|
|
28
|
+
$[4] = $__;
|
|
29
29
|
$[5] = desc;
|
|
30
30
|
$[6] = t4;
|
|
31
31
|
} else t4 = $[6];
|