@wise/dynamic-flow-client-internal 5.26.0 → 5.27.1

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/build/main.mjs CHANGED
@@ -127,7 +127,7 @@ import { useDynamicFlow } from "@wise/dynamic-flow-client";
127
127
  // src/dynamicFlow/telemetry/app-version.ts
128
128
  var appVersion = (
129
129
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
130
- typeof process !== "undefined" ? "5.26.0" : "0.0.0"
130
+ typeof process !== "undefined" ? "5.27.1" : "0.0.0"
131
131
  );
132
132
 
133
133
  // src/dynamicFlow/context-menu/useContextMenu.tsx
@@ -2469,9 +2469,12 @@ var useIsElementVisible = (elementRef) => {
2469
2469
  useEffect6(() => {
2470
2470
  const element = elementRef.current;
2471
2471
  if (!element) return;
2472
- const observer = new IntersectionObserver(([entry]) => {
2473
- setIsVisible(entry.isIntersecting);
2474
- });
2472
+ const observer = new IntersectionObserver(
2473
+ ([entry]) => {
2474
+ setIsVisible(entry.isIntersecting);
2475
+ },
2476
+ { rootMargin: "1px" }
2477
+ );
2475
2478
  observer.observe(element);
2476
2479
  return () => observer.disconnect();
2477
2480
  }, [elementRef]);
@@ -2488,6 +2491,11 @@ var collection_messages_default = defineMessages5({
2488
2491
  id: "df.wise.Collection.loadMoreMessage",
2489
2492
  defaultMessage: "Load more",
2490
2493
  description: "A message shown on a button to load more items in a list."
2494
+ },
2495
+ clearTextLabel: {
2496
+ id: "df.wise.Collection.clearText",
2497
+ defaultMessage: "Clear text",
2498
+ description: "A message shown at the edge of the search bar to clear the users query"
2491
2499
  }
2492
2500
  });
2493
2501
 
@@ -2498,11 +2506,11 @@ var ContentComponent = (props) => {
2498
2506
  const endOfContentRef = useRef3(null);
2499
2507
  const isBottomVisible = useIsElementVisible(endOfContentRef);
2500
2508
  useEffect7(() => {
2501
- const shouldAutoLoad = isBottomVisible && status.type === "idle" && !state.afterSections;
2509
+ const shouldAutoLoad = isBottomVisible && status.type === "idle" && state.afterSectionsProps.length === 0;
2502
2510
  if (shouldAutoLoad && status.loadMore) {
2503
2511
  status.loadMore();
2504
2512
  }
2505
- }, [isBottomVisible, state.afterSections, status]);
2513
+ }, [isBottomVisible, state.afterSectionsProps.length, status]);
2506
2514
  const stateCount = state.sections.reduce(
2507
2515
  (total, section) => section.items.length + total + (section.title ? 1 : 0),
2508
2516
  0
@@ -2586,7 +2594,7 @@ var PaginationComponent = ({
2586
2594
  if (isPaginationError) {
2587
2595
  return /* @__PURE__ */ jsx33(LoadMoreButton, { onClick: status.retry });
2588
2596
  }
2589
- if (state.afterSections && loadMore) {
2597
+ if (state.afterSectionsProps.length > 0 && loadMore) {
2590
2598
  return /* @__PURE__ */ jsx33(LoadMoreButton, { onClick: loadMore });
2591
2599
  }
2592
2600
  return /* @__PURE__ */ jsx33(ProcessIndicator, { size: "xs", "data-testid": "collection-pagination-loader" });
@@ -2743,14 +2751,46 @@ var getNavigationControl = (onClick, href) => {
2743
2751
  };
2744
2752
 
2745
2753
  // ../renderers/src/CollectionRenderer/components/SearchComponent.tsx
2746
- import { InputGroup, Input, ProcessIndicator as ProcessIndicator2 } from "@transferwise/components";
2747
- import { Search } from "@transferwise/icons";
2754
+ import {
2755
+ InputGroup,
2756
+ Input,
2757
+ ProcessIndicator as ProcessIndicator2,
2758
+ IconButton
2759
+ } from "@transferwise/components";
2760
+ import { CrossCircleFill, Search } from "@transferwise/icons";
2761
+ import { useIntl as useIntl5 } from "react-intl";
2748
2762
  import { jsx as jsx38 } from "react/jsx-runtime";
2749
2763
  var SearchComponent = ({ state, status, features }) => {
2750
2764
  const { search } = state;
2765
+ const { formatMessage } = useIntl5();
2751
2766
  if (!search) {
2752
2767
  return;
2753
2768
  }
2769
+ const getAddon = () => {
2770
+ var _a;
2771
+ if (status.type === "loading") {
2772
+ return { content: /* @__PURE__ */ jsx38(ProcessIndicator2, { size: "xs", "data-testid": "collection-search-loader" }) };
2773
+ }
2774
+ if ((_a = state.search) == null ? void 0 : _a.query) {
2775
+ return {
2776
+ interactive: true,
2777
+ content: /* @__PURE__ */ jsx38(
2778
+ IconButton,
2779
+ {
2780
+ priority: "minimal",
2781
+ size: 24,
2782
+ "aria-label": formatMessage(collection_messages_default.clearTextLabel),
2783
+ onClick: () => {
2784
+ var _a2;
2785
+ return (_a2 = state.search) == null ? void 0 : _a2.onChange("");
2786
+ },
2787
+ children: /* @__PURE__ */ jsx38(CrossCircleFill, {})
2788
+ }
2789
+ )
2790
+ };
2791
+ }
2792
+ return void 0;
2793
+ };
2754
2794
  return /* @__PURE__ */ jsx38(
2755
2795
  FieldInput_default,
2756
2796
  {
@@ -2760,27 +2800,20 @@ var SearchComponent = ({ state, status, features }) => {
2760
2800
  help: "",
2761
2801
  label: search.title,
2762
2802
  features,
2763
- children: /* @__PURE__ */ jsx38(
2764
- InputGroup,
2803
+ children: /* @__PURE__ */ jsx38(InputGroup, { addonStart: { content: /* @__PURE__ */ jsx38(Search, { size: 24 }) }, addonEnd: getAddon(), children: /* @__PURE__ */ jsx38(
2804
+ Input,
2765
2805
  {
2766
- addonStart: { content: /* @__PURE__ */ jsx38(Search, { size: 24 }) },
2767
- addonEnd: status.type === "loading" ? { content: /* @__PURE__ */ jsx38(ProcessIndicator2, { size: "xs", "data-testid": "collection-search-loader" }) } : void 0,
2768
- children: /* @__PURE__ */ jsx38(
2769
- Input,
2770
- {
2771
- id: "search",
2772
- name: "search",
2773
- shape: "pill",
2774
- placeholder: search.hint,
2775
- type: "text",
2776
- value: search.query,
2777
- onChange: ({ currentTarget: { value } }) => {
2778
- search.onChange(value);
2779
- }
2780
- }
2781
- )
2806
+ id: "search",
2807
+ name: "search",
2808
+ shape: "pill",
2809
+ placeholder: search.hint,
2810
+ type: "text",
2811
+ value: search.query,
2812
+ onChange: ({ currentTarget: { value } }) => {
2813
+ search.onChange(value);
2814
+ }
2782
2815
  }
2783
- )
2816
+ ) })
2784
2817
  }
2785
2818
  );
2786
2819
  };
@@ -2813,7 +2846,7 @@ var createCollectionRenderer = (canRender, components) => {
2813
2846
  };
2814
2847
 
2815
2848
  // ../renderers/src/CollectionRenderer/CollectionRenderer.tsx
2816
- import { useIntl as useIntl5 } from "react-intl";
2849
+ import { useIntl as useIntl6 } from "react-intl";
2817
2850
  import { Fragment as Fragment3, jsx as jsx41, jsxs as jsxs7 } from "react/jsx-runtime";
2818
2851
  var CollectionRendererComponent = (props) => {
2819
2852
  const { status, Search: Search4, Filters, Results } = props;
@@ -2824,7 +2857,7 @@ var CollectionRendererComponent = (props) => {
2824
2857
  ] });
2825
2858
  };
2826
2859
  var SearchError = ({ retry }) => {
2827
- const { formatMessage } = useIntl5();
2860
+ const { formatMessage } = useIntl6();
2828
2861
  return /* @__PURE__ */ jsxs7(InlinePrompt, { width: "full", sentiment: "negative", children: [
2829
2862
  formatMessage(generic_error_messages_default.genericError),
2830
2863
  "\xA0",
@@ -3018,7 +3051,7 @@ import { ListItem as ListItem7 } from "@transferwise/components";
3018
3051
  // ../renderers/src/DecisionRenderer/DecisionWrapper.tsx
3019
3052
  import { Header as Header3, SearchInput } from "@transferwise/components";
3020
3053
  import { useState as useState9 } from "react";
3021
- import { useIntl as useIntl7 } from "react-intl";
3054
+ import { useIntl as useIntl8 } from "react-intl";
3022
3055
 
3023
3056
  // ../renderers/src/messages/filter.messages.ts
3024
3057
  import { defineMessages as defineMessages6 } from "react-intl";
@@ -3089,7 +3122,7 @@ var normalizeAndRemoveAccents = (text) => text.trim().toLowerCase().normalize("N
3089
3122
 
3090
3123
  // ../renderers/src/DecisionRenderer/GroupedDecisionList.tsx
3091
3124
  import { Header as Header2, Section } from "@transferwise/components";
3092
- import { useIntl as useIntl6 } from "react-intl";
3125
+ import { useIntl as useIntl7 } from "react-intl";
3093
3126
 
3094
3127
  // ../renderers/src/messages/group.messages.ts
3095
3128
  import { defineMessages as defineMessages7 } from "react-intl";
@@ -3134,7 +3167,7 @@ var isGroupedDecision = (options) => {
3134
3167
  };
3135
3168
  var GroupedDecisionList = (_a) => {
3136
3169
  var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
3137
- const { formatMessage } = useIntl6();
3170
+ const { formatMessage } = useIntl7();
3138
3171
  const { options } = rest;
3139
3172
  const itemsByTag = [...getGroupsFromTags(groupingTags, options), { tag: "all", items: options }];
3140
3173
  return /* @__PURE__ */ jsx45(Fragment4, { children: itemsByTag.map(({ tag, items }) => /* @__PURE__ */ jsxs9(Section, { children: [
@@ -3163,7 +3196,7 @@ var UnfilteredDecisionList = (_a) => {
3163
3196
  return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx46(GroupedDecisionList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
3164
3197
  };
3165
3198
  var FilteredDecisionList = (props) => {
3166
- const { formatMessage } = useIntl7();
3199
+ const { formatMessage } = useIntl8();
3167
3200
  const [query, setQuery] = useState9("");
3168
3201
  const { control, options, renderDecisionList: renderDecisionList2 } = props;
3169
3202
  const filteredOptions = (query == null ? void 0 : query.length) > 0 ? filterAndSortItems(options, query) : options;
@@ -3280,7 +3313,7 @@ var external_confirmation_messages_default = defineMessages8({
3280
3313
  });
3281
3314
 
3282
3315
  // ../renderers/src/ExternalConfirmationRenderer.tsx
3283
- import { useIntl as useIntl8 } from "react-intl";
3316
+ import { useIntl as useIntl9 } from "react-intl";
3284
3317
  import { useEffect as useEffect9 } from "react";
3285
3318
  import { Fragment as Fragment7, jsx as jsx49, jsxs as jsxs11 } from "react/jsx-runtime";
3286
3319
  var ExternalConfirmationRenderer = {
@@ -3293,7 +3326,7 @@ function ExternalConfirmationRendererComponent({
3293
3326
  open,
3294
3327
  onCancel
3295
3328
  }) {
3296
- const { formatMessage } = useIntl8();
3329
+ const { formatMessage } = useIntl9();
3297
3330
  useEffect9(() => {
3298
3331
  open();
3299
3332
  }, []);
@@ -3760,7 +3793,7 @@ var ModalRenderer = {
3760
3793
  // ../renderers/src/MoneyInputRenderer.tsx
3761
3794
  import { MoneyInput } from "@transferwise/components";
3762
3795
  import { useEffect as useEffect11 } from "react";
3763
- import { useIntl as useIntl9 } from "react-intl";
3796
+ import { useIntl as useIntl10 } from "react-intl";
3764
3797
  import { jsx as jsx64 } from "react/jsx-runtime";
3765
3798
  var groupingTags2 = Object.keys(group_messages_default).filter((key) => key !== "all");
3766
3799
  var MoneyInputRenderer = {
@@ -3787,7 +3820,7 @@ function MoneyInputRendererComponent(props) {
3787
3820
  onCurrencyChange(0);
3788
3821
  }
3789
3822
  }, [selectedCurrencyIndex, onCurrencyChange, currencies.length]);
3790
- const { formatMessage } = useIntl9();
3823
+ const { formatMessage } = useIntl10();
3791
3824
  return /* @__PURE__ */ jsx64(
3792
3825
  FieldInput_default,
3793
3826
  {
@@ -3861,7 +3894,7 @@ function assertCurrencyCodeIsString(currencyCode) {
3861
3894
  // ../renderers/src/MultiSelectInputRenderer/InlineComponent.tsx
3862
3895
  import { ListItem as ListItem9, SearchInput as SearchInput2 } from "@transferwise/components";
3863
3896
  import { useState as useState12 } from "react";
3864
- import { useIntl as useIntl10 } from "react-intl";
3897
+ import { useIntl as useIntl11 } from "react-intl";
3865
3898
 
3866
3899
  // ../renderers/src/utils/items-with-index.ts
3867
3900
  var zipWithIndex = (items) => items.map((item, index) => __spreadProps(__spreadValues({}, item), {
@@ -3886,7 +3919,7 @@ function InlineComponent(props) {
3886
3919
  } = props;
3887
3920
  const optionsWithIndex = zipWithIndex(options);
3888
3921
  const [query, setQuery] = useState12("");
3889
- const { formatMessage } = useIntl10();
3922
+ const { formatMessage } = useIntl11();
3890
3923
  const filtered = tags == null ? void 0 : tags.includes("filtered");
3891
3924
  const filteredOptions = query ? filterAndSortItems(optionsWithIndex, filtered ? query : "") : optionsWithIndex;
3892
3925
  return /* @__PURE__ */ jsxs16(Fragment8, { children: [
@@ -3959,7 +3992,7 @@ function InlineComponent(props) {
3959
3992
  // ../renderers/src/MultiSelectInputRenderer/DefaultComponent.tsx
3960
3993
  import { SelectInput, SelectInputOptionContent } from "@transferwise/components";
3961
3994
  import { useState as useState13 } from "react";
3962
- import { useIntl as useIntl11 } from "react-intl";
3995
+ import { useIntl as useIntl12 } from "react-intl";
3963
3996
 
3964
3997
  // ../renderers/src/messages/multi-select.messages.ts
3965
3998
  import { defineMessages as defineMessages9 } from "react-intl";
@@ -3974,7 +4007,7 @@ var multi_select_messages_default = defineMessages9({
3974
4007
  // ../renderers/src/MultiSelectInputRenderer/DefaultComponent.tsx
3975
4008
  import { jsx as jsx66 } from "react/jsx-runtime";
3976
4009
  function DefaultComponent(props) {
3977
- const { formatMessage } = useIntl11();
4010
+ const { formatMessage } = useIntl12();
3978
4011
  const [stagedIndices, setStagedIndices] = useState13();
3979
4012
  const {
3980
4013
  id,
@@ -4307,7 +4340,7 @@ var NumberInputRenderer = {
4307
4340
  var NumberInputRenderer_default = NumberInputRenderer;
4308
4341
 
4309
4342
  // ../renderers/src/ParagraphRenderer.tsx
4310
- import { useIntl as useIntl12 } from "react-intl";
4343
+ import { useIntl as useIntl13 } from "react-intl";
4311
4344
 
4312
4345
  // ../renderers/src/hooks/useSnackBarIfAvailable.ts
4313
4346
  import { SnackbarContext } from "@transferwise/components";
@@ -4358,7 +4391,7 @@ function CopyableParagraph({
4358
4391
  align,
4359
4392
  className
4360
4393
  }) {
4361
- const { formatMessage } = useIntl12();
4394
+ const { formatMessage } = useIntl13();
4362
4395
  const createSnackbar = useSnackBarIfAvailable();
4363
4396
  const copy = () => {
4364
4397
  navigator.clipboard.writeText(text).then(() => createSnackbar({ text: formatMessage(paragraph_messages_default.copied) })).catch(() => {
@@ -4408,7 +4441,7 @@ var import_classnames7 = __toESM(require_classnames());
4408
4441
  import { Button as Button8, Header as Header6, InlineAlert as InlineAlert3, Modal as Modal4, NavigationOption } from "@transferwise/components";
4409
4442
  import { Plus } from "@transferwise/icons";
4410
4443
  import { useState as useState14 } from "react";
4411
- import { useIntl as useIntl13 } from "react-intl";
4444
+ import { useIntl as useIntl14 } from "react-intl";
4412
4445
 
4413
4446
  // ../renderers/src/messages/repeatable.messages.ts
4414
4447
  import { defineMessages as defineMessages11 } from "react-intl";
@@ -4456,7 +4489,7 @@ function Repeatable(props) {
4456
4489
  onSave,
4457
4490
  onRemove
4458
4491
  } = props;
4459
- const { formatMessage } = useIntl13();
4492
+ const { formatMessage } = useIntl14();
4460
4493
  const [openModalType, setOpenModalType] = useState14(null);
4461
4494
  const { ref } = useScrollToError(validationState, features);
4462
4495
  const onAddItem = () => {
@@ -4610,7 +4643,7 @@ var getFieldLabel = (label, help, onClick) => {
4610
4643
  // ../renderers/src/ReviewRenderer.tsx
4611
4644
  import { ListItem as ListItem10, Markdown as Markdown5, Popover } from "@transferwise/components";
4612
4645
  import { QuestionMarkCircle } from "@transferwise/icons";
4613
- import { useIntl as useIntl14 } from "react-intl";
4646
+ import { useIntl as useIntl15 } from "react-intl";
4614
4647
  import { jsx as jsx76, jsxs as jsxs21 } from "react/jsx-runtime";
4615
4648
  var IGNORED_CONTROLS = [
4616
4649
  "horizontal",
@@ -4632,7 +4665,7 @@ var Review = ({
4632
4665
  title,
4633
4666
  trackEvent
4634
4667
  }) => {
4635
- const intl = useIntl14();
4668
+ const intl = useIntl15();
4636
4669
  return /* @__PURE__ */ jsxs21("div", { className: getMargin(margin), children: [
4637
4670
  /* @__PURE__ */ jsx76(Header, { title, callToAction }),
4638
4671
  fields.map((field) => {
@@ -4680,7 +4713,7 @@ var ReviewRenderer_default = ReviewRenderer2;
4680
4713
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
4681
4714
  import { Input as Input5, InputGroup as InputGroup4, List, ListItem as ListItem11, Markdown as Markdown6 } from "@transferwise/components";
4682
4715
  import { useState as useState15 } from "react";
4683
- import { useIntl as useIntl16 } from "react-intl";
4716
+ import { useIntl as useIntl17 } from "react-intl";
4684
4717
 
4685
4718
  // ../renderers/src/messages/search.messages.ts
4686
4719
  import { defineMessages as defineMessages12 } from "react-intl";
@@ -4693,11 +4726,11 @@ var search_messages_default = defineMessages12({
4693
4726
  });
4694
4727
 
4695
4728
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
4696
- import { useIntl as useIntl15 } from "react-intl";
4729
+ import { useIntl as useIntl16 } from "react-intl";
4697
4730
  import { Link as DSLink2 } from "@transferwise/components";
4698
4731
  import { jsx as jsx77, jsxs as jsxs22 } from "react/jsx-runtime";
4699
4732
  function ErrorResult({ state }) {
4700
- const intl = useIntl15();
4733
+ const intl = useIntl16();
4701
4734
  return /* @__PURE__ */ jsxs22("p", { className: "m-t-2", children: [
4702
4735
  intl.formatMessage(generic_error_messages_default.genericError),
4703
4736
  "\xA0",
@@ -4721,7 +4754,7 @@ function BlockSearchRendererComponent({
4721
4754
  onChange
4722
4755
  }) {
4723
4756
  const [hasSearched, setHasSearched] = useState15(false);
4724
- const { formatMessage } = useIntl16();
4757
+ const { formatMessage } = useIntl17();
4725
4758
  return /* @__PURE__ */ jsxs23("div", { className: getMargin(margin), children: [
4726
4759
  /* @__PURE__ */ jsx78(
4727
4760
  FieldInput_default,
@@ -4814,7 +4847,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
4814
4847
  import { Markdown as Markdown7, Typeahead } from "@transferwise/components";
4815
4848
  import { Search as Search3 } from "@transferwise/icons";
4816
4849
  import { useState as useState16 } from "react";
4817
- import { useIntl as useIntl17 } from "react-intl";
4850
+ import { useIntl as useIntl18 } from "react-intl";
4818
4851
  import { jsx as jsx79 } from "react/jsx-runtime";
4819
4852
  function InlineSearchRenderer({
4820
4853
  id,
@@ -4828,7 +4861,7 @@ function InlineSearchRenderer({
4828
4861
  trackEvent
4829
4862
  }) {
4830
4863
  const [hasSearched, setHasSearched] = useState16(false);
4831
- const intl = useIntl17();
4864
+ const intl = useIntl18();
4832
4865
  return /* @__PURE__ */ jsx79("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx79(
4833
4866
  FieldInput_default,
4834
4867
  {
@@ -4887,7 +4920,7 @@ function mapResultToTypeaheadOption(result) {
4887
4920
  };
4888
4921
  }
4889
4922
  function TypeaheadFooter({ state, isLoading }) {
4890
- const { formatMessage } = useIntl17();
4923
+ const { formatMessage } = useIntl18();
4891
4924
  if (state.type === "layout") {
4892
4925
  return /* @__PURE__ */ jsx79("div", { className: "m-x-1 m-y-1", children: state.layout });
4893
4926
  }
@@ -5350,9 +5383,9 @@ var getHeaderStyle = (tags) => {
5350
5383
  };
5351
5384
 
5352
5385
  // ../renderers/src/step/topbar/BackButton.tsx
5353
- import { IconButton } from "@transferwise/components";
5386
+ import { IconButton as IconButton2 } from "@transferwise/components";
5354
5387
  import { ArrowLeft } from "@transferwise/icons";
5355
- import { useIntl as useIntl18 } from "react-intl";
5388
+ import { useIntl as useIntl19 } from "react-intl";
5356
5389
 
5357
5390
  // ../renderers/src/messages/back.messages.ts
5358
5391
  import { defineMessages as defineMessages13 } from "react-intl";
@@ -5367,15 +5400,15 @@ var back_messages_default = defineMessages13({
5367
5400
  // ../renderers/src/step/topbar/BackButton.tsx
5368
5401
  import { jsx as jsx90, jsxs as jsxs32 } from "react/jsx-runtime";
5369
5402
  function BackButton({ title, onClick }) {
5370
- const { formatMessage } = useIntl18();
5371
- return /* @__PURE__ */ jsxs32(IconButton, { className: "df-back-button", priority: "tertiary", onClick, children: [
5403
+ const { formatMessage } = useIntl19();
5404
+ return /* @__PURE__ */ jsxs32(IconButton2, { className: "df-back-button", priority: "tertiary", onClick, children: [
5372
5405
  /* @__PURE__ */ jsx90("span", { className: "sr-only", children: title != null ? title : formatMessage(back_messages_default.back) }),
5373
5406
  /* @__PURE__ */ jsx90(ArrowLeft, {})
5374
5407
  ] });
5375
5408
  }
5376
5409
 
5377
5410
  // ../renderers/src/step/topbar/Toolbar.tsx
5378
- import { Button as Button9, IconButton as IconButton2 } from "@transferwise/components";
5411
+ import { Button as Button9, IconButton as IconButton3 } from "@transferwise/components";
5379
5412
  import { jsx as jsx91, jsxs as jsxs33 } from "react/jsx-runtime";
5380
5413
  var Toolbar = ({ items }) => {
5381
5414
  return (items == null ? void 0 : items.length) > 0 ? /* @__PURE__ */ jsx91("div", { className: "df-toolbar", children: items.map((item, index) => /* @__PURE__ */ jsx91(ToolbarButton, __spreadValues({}, item), `${item.type}-${index}-${item.title}`)) }) : null;
@@ -5389,7 +5422,7 @@ function MediaToolbarButton(props) {
5389
5422
  const priority = getIconButtonPriority(control);
5390
5423
  const type = getSentiment2(context);
5391
5424
  return /* @__PURE__ */ jsxs33(
5392
- IconButton2,
5425
+ IconButton3,
5393
5426
  {
5394
5427
  className: "df-toolbar-button",
5395
5428
  disabled,
@@ -6088,7 +6121,7 @@ var customEventsToAnalytics = {
6088
6121
 
6089
6122
  // src/dynamicFlow/useOnCopy.tsx
6090
6123
  import { useCallback as useCallback2 } from "react";
6091
- import { useIntl as useIntl19 } from "react-intl";
6124
+ import { useIntl as useIntl20 } from "react-intl";
6092
6125
 
6093
6126
  // src/dynamicFlow/messages.ts
6094
6127
  import { defineMessages as defineMessages14 } from "react-intl";
@@ -6107,7 +6140,7 @@ var messages_default = defineMessages14({
6107
6140
 
6108
6141
  // src/dynamicFlow/useOnCopy.tsx
6109
6142
  var useOnCopy = () => {
6110
- const { formatMessage } = useIntl19();
6143
+ const { formatMessage } = useIntl20();
6111
6144
  const createSnackBar = useSnackBarIfAvailable();
6112
6145
  return useCallback2(
6113
6146
  (copiedContent) => {
@@ -6123,9 +6156,9 @@ var useOnCopy = () => {
6123
6156
 
6124
6157
  // src/dynamicFlow/useWiseHttpClient.tsx
6125
6158
  import { useCallback as useCallback3 } from "react";
6126
- import { useIntl as useIntl20 } from "react-intl";
6159
+ import { useIntl as useIntl21 } from "react-intl";
6127
6160
  var useWiseHttpClient = (httpClient) => {
6128
- const { locale } = useIntl20();
6161
+ const { locale } = useIntl21();
6129
6162
  return useCallback3(
6130
6163
  async (input, init = {}) => {
6131
6164
  const headers = new Headers(init.headers);
@@ -6263,6 +6296,7 @@ var cs_default = {
6263
6296
  "df.wise.ArraySchema.minItemsError": "P\u0159idejte alespo\u0148 {minItems}.",
6264
6297
  "df.wise.ArraySchema.removeItem": "Odebrat",
6265
6298
  "df.wise.ButtonLayout.buttonLoadingMessage": "M\u016F\u017Ee to trvat p\xE1r sekund",
6299
+ "df.wise.Collection.clearText": "Vymazat text",
6266
6300
  "df.wise.Collection.loadMoreMessage": "Na\u010D\xEDst v\xEDce",
6267
6301
  "df.wise.ControlFeedback.maxLength": "Zadejte {maxLength} nebo m\xE9n\u011B znak\u016F.",
6268
6302
  "df.wise.ControlFeedback.maximum": "Zadejte \u010D\xEDslo, kter\xE9 je {maximum} nebo men\u0161\xED.",
@@ -6311,6 +6345,7 @@ var de_default = {
6311
6345
  "df.wise.ArraySchema.minItemsError": "Bitte f\xFCge mindestens {minItems} hinzu.",
6312
6346
  "df.wise.ArraySchema.removeItem": "Entfernen",
6313
6347
  "df.wise.ButtonLayout.buttonLoadingMessage": "Dies kann ein paar Sekunden dauern",
6348
+ "df.wise.Collection.clearText": "Text l\xF6schen",
6314
6349
  "df.wise.Collection.loadMoreMessage": "Mehr laden",
6315
6350
  "df.wise.ControlFeedback.maxLength": "Bitte gib nicht mehr als {maxLength} Zeichen ein.",
6316
6351
  "df.wise.ControlFeedback.maximum": "Bitte gib eine Zahl ein, die {maximum} oder weniger betr\xE4gt.",
@@ -6359,6 +6394,7 @@ var en_default = {
6359
6394
  "df.wise.ArraySchema.minItemsError": "Please add at least {minItems}.",
6360
6395
  "df.wise.ArraySchema.removeItem": "Remove",
6361
6396
  "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
6397
+ "df.wise.Collection.clearText": "Clear text",
6362
6398
  "df.wise.Collection.loadMoreMessage": "Load more",
6363
6399
  "df.wise.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.",
6364
6400
  "df.wise.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.",
@@ -6407,6 +6443,7 @@ var es_default = {
6407
6443
  "df.wise.ArraySchema.minItemsError": "A\xF1ade al menos {minItems}.",
6408
6444
  "df.wise.ArraySchema.removeItem": "Eliminar",
6409
6445
  "df.wise.ButtonLayout.buttonLoadingMessage": "Esto puede tardar unos segundos",
6446
+ "df.wise.Collection.clearText": "Borrar texto",
6410
6447
  "df.wise.Collection.loadMoreMessage": "Cargar m\xE1s",
6411
6448
  "df.wise.ControlFeedback.maxLength": "Introduce {maxLength} caracteres o menos.",
6412
6449
  "df.wise.ControlFeedback.maximum": "Introduce una cifra igual o inferior a {maximum}.",
@@ -6455,6 +6492,7 @@ var fr_default = {
6455
6492
  "df.wise.ArraySchema.minItemsError": "Veuillez ajouter au moins {minItems}.",
6456
6493
  "df.wise.ArraySchema.removeItem": "Supprimer",
6457
6494
  "df.wise.ButtonLayout.buttonLoadingMessage": "Un instant, s'il vous pla\xEEt...",
6495
+ "df.wise.Collection.clearText": "Effacer le texte",
6458
6496
  "df.wise.Collection.loadMoreMessage": "Charger plus",
6459
6497
  "df.wise.ControlFeedback.maxLength": "Veuillez saisir {maxLength} caract\xE8res ou moins.",
6460
6498
  "df.wise.ControlFeedback.maximum": "Veuillez saisir un nombre inf\xE9rieur ou \xE9gal \xE0 {maximum}.",
@@ -6503,6 +6541,7 @@ var hu_default = {
6503
6541
  "df.wise.ArraySchema.minItemsError": "K\xE9r\xFCnk, legal\xE1bb {minItems} t\xE9telt adj meg.",
6504
6542
  "df.wise.ArraySchema.removeItem": "Elt\xE1vol\xEDt\xE1s",
6505
6543
  "df.wise.ButtonLayout.buttonLoadingMessage": "Ez eltarthat n\xE9h\xE1ny m\xE1sodpercig",
6544
+ "df.wise.Collection.clearText": "Sz\xF6veg t\xF6rl\xE9se",
6506
6545
  "df.wise.Collection.loadMoreMessage": "Tov\xE1bbiak bet\xF6lt\xE9se",
6507
6546
  "df.wise.ControlFeedback.maxLength": "K\xE9r\xFCnk, legfeljebb {maxLength} karaktert adj meg.",
6508
6547
  "df.wise.ControlFeedback.maximum": "K\xE9r\xFCnk, add meg ezt vagy egy enn\xE9l kisebb sz\xE1mot: {maximum}.",
@@ -6551,6 +6590,7 @@ var id_default = {
6551
6590
  "df.wise.ArraySchema.minItemsError": "Harap tambahkan setidaknya {minItems}.",
6552
6591
  "df.wise.ArraySchema.removeItem": "Hapus",
6553
6592
  "df.wise.ButtonLayout.buttonLoadingMessage": "Ini mungkin memakan waktu beberapa detik",
6593
+ "df.wise.Collection.clearText": "Hapus teks",
6554
6594
  "df.wise.Collection.loadMoreMessage": "Muat lebih banyak",
6555
6595
  "df.wise.ControlFeedback.maxLength": "Harap masukkan {maxLength} karakter atau kurang.",
6556
6596
  "df.wise.ControlFeedback.maximum": "Harap masukkan angka paling besar {maximum} atau kurang dari itu.",
@@ -6599,6 +6639,7 @@ var it_default = {
6599
6639
  "df.wise.ArraySchema.minItemsError": "Aggiungi almeno {minItems}.",
6600
6640
  "df.wise.ArraySchema.removeItem": "Rimuovi",
6601
6641
  "df.wise.ButtonLayout.buttonLoadingMessage": "Potrebbero volerci un paio di secondi",
6642
+ "df.wise.Collection.clearText": "Cancella testo",
6602
6643
  "df.wise.Collection.loadMoreMessage": "Carica altro",
6603
6644
  "df.wise.ControlFeedback.maxLength": "Inserisci un massimo di {maxLength} caratteri.",
6604
6645
  "df.wise.ControlFeedback.maximum": "Inserisci un numero uguale o inferiore a {maximum}.",
@@ -6647,6 +6688,7 @@ var ja_default = {
6647
6688
  "df.wise.ArraySchema.minItemsError": "{minItems}\u30A2\u30A4\u30C6\u30E0\u4EE5\u4E0A\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
6648
6689
  "df.wise.ArraySchema.removeItem": "\u524A\u9664\u3059\u308B",
6649
6690
  "df.wise.ButtonLayout.buttonLoadingMessage": "\u6570\u79D2\u304B\u304B\u308B\u5834\u5408\u304C\u3042\u308A\u307E\u3059",
6691
+ "df.wise.Collection.clearText": "\u6587\u5B57\u3092\u30AF\u30EA\u30A2\u3059\u308B",
6650
6692
  "df.wise.Collection.loadMoreMessage": "\u3082\u3063\u3068\u898B\u308B",
6651
6693
  "df.wise.ControlFeedback.maxLength": "{maxLength}\u6587\u5B57\u4EE5\u4E0B\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
6652
6694
  "df.wise.ControlFeedback.maximum": "{maximum}\u4EE5\u4E0B\u306E\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
@@ -6695,6 +6737,7 @@ var nl_default = {
6695
6737
  "df.wise.ArraySchema.minItemsError": "Voeg minimaal {minItems} toe.",
6696
6738
  "df.wise.ArraySchema.removeItem": "Verwijderen",
6697
6739
  "df.wise.ButtonLayout.buttonLoadingMessage": "Dit kan enkele seconden duren",
6740
+ "df.wise.Collection.clearText": "Tekst wissen",
6698
6741
  "df.wise.Collection.loadMoreMessage": "Meer laden",
6699
6742
  "df.wise.ControlFeedback.maxLength": "Voer {maxLength} of minder tekens in.",
6700
6743
  "df.wise.ControlFeedback.maximum": "Voer een getal in dat {maximum} of lager is.",
@@ -6743,6 +6786,7 @@ var pl_default = {
6743
6786
  "df.wise.ArraySchema.minItemsError": "Prosimy doda\u0107 co najmniej {minItems}.",
6744
6787
  "df.wise.ArraySchema.removeItem": "Usu\u0144",
6745
6788
  "df.wise.ButtonLayout.buttonLoadingMessage": "To mo\u017Ce potrwa\u0107 kilka sekund",
6789
+ "df.wise.Collection.clearText": "Wyczy\u015B\u0107 tekst",
6746
6790
  "df.wise.Collection.loadMoreMessage": "Za\u0142aduj wi\u0119cej",
6747
6791
  "df.wise.ControlFeedback.maxLength": "Prosimy wprowadzi\u0107 do {maxLength} znak\xF3w.",
6748
6792
  "df.wise.ControlFeedback.maximum": "Wprowad\u017A liczb\u0119 r\xF3wn\u0105 lub mniejsz\u0105 ni\u017C {maximum}.",
@@ -6791,6 +6835,7 @@ var pt_default = {
6791
6835
  "df.wise.ArraySchema.minItemsError": "Adicione pelo menos {minItems}.",
6792
6836
  "df.wise.ArraySchema.removeItem": "Remover",
6793
6837
  "df.wise.ButtonLayout.buttonLoadingMessage": "Isso pode levar alguns segundos",
6838
+ "df.wise.Collection.clearText": "Limpar texto",
6794
6839
  "df.wise.Collection.loadMoreMessage": "Carregar mais",
6795
6840
  "df.wise.ControlFeedback.maxLength": "Por favor, insira {maxLength} caracteres ou menos.",
6796
6841
  "df.wise.ControlFeedback.maximum": "Por favor, insira um n\xFAmero que seja {maximum} ou menos.",
@@ -6839,6 +6884,7 @@ var ro_default = {
6839
6884
  "df.wise.ArraySchema.minItemsError": "Te rug\u0103m s\u0103 adaugi cel pu\u021Bin {minItems}.",
6840
6885
  "df.wise.ArraySchema.removeItem": "Elimin\u0103",
6841
6886
  "df.wise.ButtonLayout.buttonLoadingMessage": "Acest lucru ar putea dura c\xE2teva secunde",
6887
+ "df.wise.Collection.clearText": "\u0218terge textul",
6842
6888
  "df.wise.Collection.loadMoreMessage": "\xCEncarc\u0103 mai multe",
6843
6889
  "df.wise.ControlFeedback.maxLength": "Te rug\u0103m s\u0103 introduci {maxLength} sau mai pu\u021Bine caractere.",
6844
6890
  "df.wise.ControlFeedback.maximum": "Te rug\u0103m s\u0103 introduci un num\u0103r egal cu {maximum} sau mai mic.",
@@ -6887,6 +6933,7 @@ var ru_default = {
6887
6933
  "df.wise.ArraySchema.minItemsError": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E \u043A\u0440\u0430\u0439\u043D\u0435\u0439 \u043C\u0435\u0440\u0435 {minItems}.",
6888
6934
  "df.wise.ArraySchema.removeItem": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
6889
6935
  "df.wise.ButtonLayout.buttonLoadingMessage": "\u042D\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043D\u044F\u0442\u044C \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",
6936
+ "df.wise.Collection.clearText": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u043A\u0441\u0442",
6890
6937
  "df.wise.Collection.loadMoreMessage": "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435",
6891
6938
  "df.wise.ControlFeedback.maxLength": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 {maxLength} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
6892
6939
  "df.wise.ControlFeedback.maximum": "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043B\u043E, \u0440\u0430\u0432\u043D\u043E\u0435 {maximum} \u0438\u043B\u0438 \u043C\u0435\u043D\u044C\u0448\u0435.",
@@ -6935,6 +6982,7 @@ var th_default = {
6935
6982
  "df.wise.ArraySchema.minItemsError": "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 {minItems}",
6936
6983
  "df.wise.ArraySchema.removeItem": "\u0E25\u0E1A",
6937
6984
  "df.wise.ButtonLayout.buttonLoadingMessage": "\u0E2D\u0E32\u0E08\u0E43\u0E0A\u0E49\u0E40\u0E27\u0E25\u0E32\u0E2A\u0E31\u0E01\u0E2A\u0E2D\u0E07\u0E2A\u0E32\u0E21\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",
6985
+ "df.wise.Collection.clearText": "\u0E25\u0E49\u0E32\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21",
6938
6986
  "df.wise.Collection.loadMoreMessage": "\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
6939
6987
  "df.wise.ControlFeedback.maxLength": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19 {maxLength} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19",
6940
6988
  "df.wise.ControlFeedback.maximum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {maximum} \u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",
@@ -6983,6 +7031,7 @@ var tr_default = {
6983
7031
  "df.wise.ArraySchema.minItemsError": "L\xFCtfen en az {minItems} ekleme yap\u0131n.",
6984
7032
  "df.wise.ArraySchema.removeItem": "Kald\u0131r",
6985
7033
  "df.wise.ButtonLayout.buttonLoadingMessage": "Bu birka\xE7 saniye s\xFCrebilir",
7034
+ "df.wise.Collection.clearText": "Metni temizle",
6986
7035
  "df.wise.Collection.loadMoreMessage": "Daha fazla y\xFCkle",
6987
7036
  "df.wise.ControlFeedback.maxLength": "L\xFCtfen {maxLength} veya daha az karakter girin.",
6988
7037
  "df.wise.ControlFeedback.maximum": "L\xFCtfen {maximum} veya daha d\xFC\u015F\xFCk bir say\u0131 girin.",
@@ -7031,6 +7080,7 @@ var zh_CN_default = {
7031
7080
  "df.wise.ArraySchema.minItemsError": "\u8BF7\u81F3\u5C11\u6DFB\u52A0 {minItems} \u9879\u3002",
7032
7081
  "df.wise.ArraySchema.removeItem": "\u79FB\u9664",
7033
7082
  "df.wise.ButtonLayout.buttonLoadingMessage": "\u6B64\u8FC7\u7A0B\u53EF\u80FD\u9700\u8981\u51E0\u79D2\u949F",
7083
+ "df.wise.Collection.clearText": "\u6E05\u9664\u6587\u672C",
7034
7084
  "df.wise.Collection.loadMoreMessage": "\u52A0\u8F7D\u66F4\u591A",
7035
7085
  "df.wise.ControlFeedback.maxLength": "\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC7 {maxLength} \u4E2A\u5B57\u7B26\u3002",
7036
7086
  "df.wise.ControlFeedback.maximum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5C0F\u4E8E\u6216\u7B49\u4E8E {maximum} \u7684\u6570\u5B57\u3002",
@@ -7079,6 +7129,7 @@ var zh_HK_default = {
7079
7129
  "df.wise.ArraySchema.minItemsError": "\u8ACB\u81F3\u5C11\u6DFB\u52A0{minItems}\u9805\u3002",
7080
7130
  "df.wise.ArraySchema.removeItem": "\u79FB\u9664",
7081
7131
  "df.wise.ButtonLayout.buttonLoadingMessage": "\u6B64\u7A0B\u5E8F\u53EF\u80FD\u9700\u6642\u5E7E\u79D2",
7132
+ "df.wise.Collection.clearText": "\u6E05\u9664\u6587\u5B57",
7082
7133
  "df.wise.Collection.loadMoreMessage": "\u8F09\u5165\u66F4\u591A",
7083
7134
  "df.wise.ControlFeedback.maxLength": "\u8ACB\u8F38\u5165\u6700\u591A{maxLength}\u500B\u5B57\u5143\u3002",
7084
7135
  "df.wise.ControlFeedback.maximum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5C0F\u65BC\u6216\u7B49\u65BC{maximum}\u7684\u6578\u5B57\u3002",