@wise/dynamic-flow-client 3.14.1 → 3.15.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
@@ -34,6 +34,9 @@ var __objRest = (source, exclude) => {
34
34
  }
35
35
  return target;
36
36
  };
37
+ var __esm = (fn, res) => function __init() {
38
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
39
+ };
37
40
  var __commonJS = (cb, mod) => function __require() {
38
41
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
39
42
  };
@@ -115,6 +118,158 @@ var require_classnames = __commonJS({
115
118
  }
116
119
  });
117
120
 
121
+ // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
122
+ function r(e) {
123
+ var t, f, n = "";
124
+ if ("string" == typeof e || "number" == typeof e)
125
+ n += e;
126
+ else if ("object" == typeof e)
127
+ if (Array.isArray(e)) {
128
+ var o = e.length;
129
+ for (t = 0; t < o; t++)
130
+ e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
131
+ } else
132
+ for (f in e)
133
+ e[f] && (n && (n += " "), n += f);
134
+ return n;
135
+ }
136
+ function clsx() {
137
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++)
138
+ (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
139
+ return n;
140
+ }
141
+ var init_clsx = __esm({
142
+ "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"() {
143
+ "use strict";
144
+ }
145
+ });
146
+
147
+ // ../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.12.1_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-93a0c34e.esm.js
148
+ import { useState as useState2, useEffect as useEffect2, forwardRef, Suspense, lazy } from "react";
149
+ import { jsx as jsx17, jsxs as jsxs4, Fragment as Fragment3 } from "react/jsx-runtime";
150
+ var unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
151
+ var init_index_93a0c34e_esm = __esm({
152
+ "../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.12.1_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-93a0c34e.esm.js"() {
153
+ "use strict";
154
+ init_clsx();
155
+ unknownFlagName = "wise";
156
+ Flag = ({
157
+ code,
158
+ intrinsicSize = 64,
159
+ className = void 0
160
+ }) => {
161
+ const [fallback, setFallback] = useState2(null);
162
+ useEffect2(() => {
163
+ setFallback(null);
164
+ }, [code]);
165
+ const detailed = intrinsicSize >= 150;
166
+ const name = fallback !== "unknown" ? `${code.toLowerCase()}${fallback == null && detailed ? "-detailed" : ""}` : unknownFlagName;
167
+ return /* @__PURE__ */ jsx17("img", {
168
+ className: clsx(`wds-flag wds-flag-${name}`, className),
169
+ src: `https://wise.com/web-art/assets/flags/${name}.svg`,
170
+ alt: "",
171
+ width: intrinsicSize,
172
+ height: intrinsicSize,
173
+ onError: () => {
174
+ setFallback((prev) => prev == null && detailed ? "simple" : "unknown");
175
+ }
176
+ });
177
+ };
178
+ (function(Sizes2) {
179
+ Sizes2["SMALL"] = "small";
180
+ Sizes2["MEDIUM"] = "medium";
181
+ Sizes2["LARGE"] = "large";
182
+ })(Sizes || (Sizes = {}));
183
+ ImageSizes = {
184
+ [Sizes.SMALL]: 200,
185
+ [Sizes.MEDIUM]: 300,
186
+ [Sizes.LARGE]: 500
187
+ };
188
+ imageSizes = {
189
+ [Sizes.SMALL]: 200,
190
+ [Sizes.MEDIUM]: 300,
191
+ [Sizes.LARGE]: 500
192
+ };
193
+ (function(Assets2) {
194
+ Assets2["BELL"] = "bell";
195
+ Assets2["BRIEFCASE"] = "briefcase";
196
+ Assets2["BUSINESS_CARD"] = "business-card";
197
+ Assets2["CALENDAR"] = "calendar";
198
+ Assets2["CHECK_MARK"] = "check-mark";
199
+ Assets2["CLOSED_WINDOW"] = "closed-window";
200
+ Assets2["COIN_PILE_DOWN"] = "coin-pile-down";
201
+ Assets2["COIN_PILE_UP"] = "coin-pile-up";
202
+ Assets2["CONFETTI"] = "confetti";
203
+ Assets2["CONSTRUCTION_FENCE"] = "construction-fence";
204
+ Assets2["CONVERT"] = "convert";
205
+ Assets2["COOKIE"] = "cookie";
206
+ Assets2["DIGITAL_CARD_2"] = "digital-card-2";
207
+ Assets2["DIGITAL_CARD"] = "digital-card";
208
+ Assets2["DOCUMENTS"] = "documents";
209
+ Assets2["DOOR"] = "door";
210
+ Assets2["ECO_CARD"] = "eco-card";
211
+ Assets2["ELECTRIC_PLUG"] = "electric-plug";
212
+ Assets2["EMAIL_SUCCESS"] = "email-success";
213
+ Assets2["EMAIL"] = "email";
214
+ Assets2["EXCLAMATION_MARK"] = "exclamation-mark";
215
+ Assets2["FLAG"] = "flag";
216
+ Assets2["FLOWER"] = "flower";
217
+ Assets2["GEAR"] = "gear";
218
+ Assets2["GLOBE"] = "globe";
219
+ Assets2["GRAPH"] = "graph";
220
+ Assets2["HEART_2"] = "heart-2";
221
+ Assets2["HEART_3"] = "heart-3";
222
+ Assets2["HEART_4"] = "heart-4";
223
+ Assets2["HEART_5"] = "heart-5";
224
+ Assets2["HEART"] = "heart";
225
+ Assets2["HOUSE"] = "house";
226
+ Assets2["ID_CARD"] = "id-card";
227
+ Assets2["INFINITE"] = "infinite";
228
+ Assets2["INTEREST"] = "interest";
229
+ Assets2["INVITE_LETTER"] = "invite-letter";
230
+ Assets2["JARS"] = "jars";
231
+ Assets2["KEY"] = "key";
232
+ Assets2["LIGHT_BULB"] = "light-bulb";
233
+ Assets2["LOCK_PLATFORM"] = "lock-platform";
234
+ Assets2["LOCK"] = "lock";
235
+ Assets2["MAGNIFYING_GLASS"] = "magnifying-glass";
236
+ Assets2["MAP"] = "map";
237
+ Assets2["MARBLE_CARD_BUSINESS"] = "marble-card-business";
238
+ Assets2["MARBLE_CARD"] = "marble-card";
239
+ Assets2["MARBLE"] = "marble";
240
+ Assets2["MEGAPHONE"] = "megaphone";
241
+ Assets2["MULTI_CURRENCY"] = "multi-currency";
242
+ Assets2["ONE_INVITE_LETTER_OPENED"] = "one-invite-letter-opened";
243
+ Assets2["PALM_TREE"] = "palm-tree";
244
+ Assets2["PERCENTAGE"] = "percentage";
245
+ Assets2["PERSONAL_CARD"] = "personal-card";
246
+ Assets2["PHONES"] = "phones";
247
+ Assets2["PIE_CHART"] = "pie-chart";
248
+ Assets2["PLANE_2"] = "plane-2";
249
+ Assets2["PLANE"] = "plane";
250
+ Assets2["PUZZLE_PIECES"] = "puzzle-pieces";
251
+ Assets2["QUESTION_MARK"] = "question-mark";
252
+ Assets2["RECEIVE"] = "receive";
253
+ Assets2["REMINDER_LETTER"] = "reminder-letter";
254
+ Assets2["SAND_TIMER"] = "sand-timer";
255
+ Assets2["SATELLITE_PLATFORM"] = "satellite-platform";
256
+ Assets2["SHOPPING_BAG"] = "shopping-bag";
257
+ Assets2["SKIP_AUTHENTICATION"] = "skip-authentication";
258
+ Assets2["SPEECH_BUBBLE"] = "speech-bubble";
259
+ Assets2["STOPWATCH_PLATFORM"] = "stopwatch-platform";
260
+ Assets2["TARGET_PLATFORM"] = "target-platform";
261
+ Assets2["TOOL"] = "tool";
262
+ Assets2["TWO_INVITE_LETTERS_OPENED"] = "two-invite-letters-opened";
263
+ Assets2["WALLET"] = "wallet";
264
+ })(Assets || (Assets = {}));
265
+ (function(RenderMode2) {
266
+ RenderMode2[RenderMode2["INIT"] = 0] = "INIT";
267
+ RenderMode2[RenderMode2["FALLBACK"] = 1] = "FALLBACK";
268
+ RenderMode2[RenderMode2["ASSET_3D"] = 2] = "ASSET_3D";
269
+ })(RenderMode || (RenderMode = {}));
270
+ }
271
+ });
272
+
118
273
  // ../../node_modules/.pnpm/screenfull@5.2.0/node_modules/screenfull/dist/screenfull.js
119
274
  var require_screenfull = __commonJS({
120
275
  "../../node_modules/.pnpm/screenfull@5.2.0/node_modules/screenfull/dist/screenfull.js"(exports, module) {
@@ -1373,9 +1528,11 @@ var dateInputComponentToProps = (component) => __spreadProps(__spreadValues({},
1373
1528
 
1374
1529
  // src/revamp/renderers/mappers/decisionComponentToProps.ts
1375
1530
  var decisionComponentToProps = ({
1531
+ control,
1376
1532
  options,
1377
- margin
1378
- }) => ({ type: "decision", options, margin });
1533
+ margin,
1534
+ title
1535
+ }) => ({ type: "decision", control, options, margin, title });
1379
1536
 
1380
1537
  // src/revamp/renderers/mappers/dividerComponentToProps.ts
1381
1538
  var dividerComponentToProps = ({
@@ -6907,7 +7064,7 @@ var createDecisionComponent = (decisionProps) => __spreadProps(__spreadValues({
6907
7064
  });
6908
7065
 
6909
7066
  // src/revamp/domain/mappers/layout/decisionLayoutToComponent.ts
6910
- var decisionLayoutToComponent = (uid, { control, margin = "md", options }, { onAction, step }) => createDecisionComponent({
7067
+ var decisionLayoutToComponent = (uid, { control, margin = "md", options, title }, { onAction, step }) => createDecisionComponent({
6911
7068
  uid,
6912
7069
  control,
6913
7070
  margin,
@@ -6919,7 +7076,8 @@ var decisionLayoutToComponent = (uid, { control, margin = "md", options }, { onA
6919
7076
  void onAction(action);
6920
7077
  }
6921
7078
  });
6922
- })
7079
+ }),
7080
+ title
6923
7081
  });
6924
7082
 
6925
7083
  // src/revamp/domain/components/DividerComponent.ts
@@ -10641,6 +10799,7 @@ function useDynamicFlowCore(props) {
10641
10799
  // src/revamp/DynamicFlowCore.tsx
10642
10800
  import { jsx as jsx5 } from "react/jsx-runtime";
10643
10801
  function DynamicFlowCore(props) {
10802
+ var _a, _b;
10644
10803
  const { stepComponentRef } = useDynamicFlowCore(props);
10645
10804
  const { renderers, onEvent, onError } = props;
10646
10805
  const render = useMemo2(
@@ -10654,7 +10813,14 @@ function DynamicFlowCore(props) {
10654
10813
  onEvent == null ? void 0 : onEvent("Dynamic Flow - Failed", { error });
10655
10814
  onError == null ? void 0 : onError(error);
10656
10815
  },
10657
- children: stepComponentRef.current ? render(stepComponentRef.current) : null
10816
+ children: /* @__PURE__ */ jsx5(
10817
+ "div",
10818
+ {
10819
+ id: (_b = (_a = stepComponentRef.current) == null ? void 0 : _a.step) == null ? void 0 : _b.id,
10820
+ className: "dynamic-flow",
10821
+ children: stepComponentRef.current ? render(stepComponentRef.current) : null
10822
+ }
10823
+ )
10658
10824
  }
10659
10825
  );
10660
10826
  }
@@ -11021,111 +11187,13 @@ var DateInputRenderer = {
11021
11187
  var DateInputRenderer_default = DateInputRenderer;
11022
11188
 
11023
11189
  // ../renderers/src/DecisionRenderer.tsx
11024
- import { NavigationOptionsList, NavigationOption } from "@transferwise/components";
11190
+ import { NavigationOptionsList, NavigationOption, Header } from "@transferwise/components";
11025
11191
 
11026
- // ../../node_modules/.pnpm/@wise+art@2.7.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
11027
- import { useState as useState2, useEffect as useEffect2, forwardRef } from "react";
11028
- import { jsx as jsx17, jsxs as jsxs4, Fragment as Fragment3 } from "react/jsx-runtime";
11029
- var unknownFlagName = "wise";
11030
- var Flag = ({
11031
- code,
11032
- intrinsicSize = 64
11033
- }) => {
11034
- const [fallback, setFallback] = useState2(null);
11035
- useEffect2(() => {
11036
- setFallback(null);
11037
- }, [code]);
11038
- const detailed = intrinsicSize >= 150;
11039
- const name = fallback !== "unknown" ? `${code.toLowerCase()}${fallback == null && detailed ? "-detailed" : ""}` : unknownFlagName;
11040
- return /* @__PURE__ */ jsx17("img", {
11041
- src: `https://wise.com/web-art/assets/flags/${name}.svg`,
11042
- alt: "",
11043
- width: intrinsicSize,
11044
- height: intrinsicSize,
11045
- onError: () => {
11046
- setFallback((prev) => prev == null && detailed ? "simple" : "unknown");
11047
- }
11048
- });
11049
- };
11050
- var Sizes;
11051
- (function(Sizes2) {
11052
- Sizes2["SMALL"] = "small";
11053
- Sizes2["MEDIUM"] = "medium";
11054
- Sizes2["LARGE"] = "large";
11055
- })(Sizes || (Sizes = {}));
11056
- var imageSizes = {
11057
- [Sizes.SMALL]: 200,
11058
- [Sizes.MEDIUM]: 300,
11059
- [Sizes.LARGE]: 500
11060
- };
11061
- var Assets;
11062
- (function(Assets2) {
11063
- Assets2["BELL"] = "bell";
11064
- Assets2["BRIEFCASE"] = "briefcase";
11065
- Assets2["BUSINESS_CARD"] = "business-card";
11066
- Assets2["CALENDAR"] = "calendar";
11067
- Assets2["CHECK_MARK"] = "check-mark";
11068
- Assets2["CLOSED_WINDOW"] = "closed-window";
11069
- Assets2["COIN_PILE_DOWN"] = "coin-pile-down";
11070
- Assets2["COIN_PILE_UP"] = "coin-pile-up";
11071
- Assets2["CONFETTI"] = "confetti";
11072
- Assets2["CONSTRUCTION_FENCE"] = "construction-fence";
11073
- Assets2["CONVERT"] = "convert";
11074
- Assets2["COOKIE"] = "cookie";
11075
- Assets2["DIGITAL_CARD_2"] = "digital-card-2";
11076
- Assets2["DIGITAL_CARD"] = "digital-card";
11077
- Assets2["DOCUMENTS"] = "documents";
11078
- Assets2["DOOR"] = "door";
11079
- Assets2["ECO_CARD"] = "eco-card";
11080
- Assets2["ELECTRIC_PLUG"] = "electric-plug";
11081
- Assets2["EMAIL_SUCCESS"] = "email-success";
11082
- Assets2["EMAIL"] = "email";
11083
- Assets2["EXCLAMATION_MARK"] = "exclamation-mark";
11084
- Assets2["FLAG"] = "flag";
11085
- Assets2["FLOWER"] = "flower";
11086
- Assets2["GEAR"] = "gear";
11087
- Assets2["GLOBE"] = "globe";
11088
- Assets2["GRAPH"] = "graph";
11089
- Assets2["HEART_2"] = "heart-2";
11090
- Assets2["HEART_3"] = "heart-3";
11091
- Assets2["HEART_4"] = "heart-4";
11092
- Assets2["HEART_5"] = "heart-5";
11093
- Assets2["HEART"] = "heart";
11094
- Assets2["HOUSE"] = "house";
11095
- Assets2["ID_CARD"] = "id-card";
11096
- Assets2["INFINITE"] = "infinite";
11097
- Assets2["INVITE_LETTER"] = "invite-letter";
11098
- Assets2["JARS"] = "jars";
11099
- Assets2["KEY"] = "key";
11100
- Assets2["LIGHT_BULB"] = "light-bulb";
11101
- Assets2["LOCK"] = "lock";
11102
- Assets2["MAGNIFYING_GLASS"] = "magnifying-glass";
11103
- Assets2["MAP"] = "map";
11104
- Assets2["MARBLE_CARD_BUSINESS"] = "marble-card-business";
11105
- Assets2["MARBLE_CARD"] = "marble-card";
11106
- Assets2["MARBLE"] = "marble";
11107
- Assets2["MEGAPHONE"] = "megaphone";
11108
- Assets2["MULTI_CURRENCY"] = "multi-currency";
11109
- Assets2["ONE_INVITE_LETTER_OPENED"] = "one-invite-letter-opened";
11110
- Assets2["PALM_TREE"] = "palm-tree";
11111
- Assets2["PERCENTAGE"] = "percentage";
11112
- Assets2["PERSONAL_CARD"] = "personal-card";
11113
- Assets2["PHONES"] = "phones";
11114
- Assets2["PIE_CHART"] = "pie-chart";
11115
- Assets2["PLANE_2"] = "plane-2";
11116
- Assets2["PLANE"] = "plane";
11117
- Assets2["PUZZLE_PIECES"] = "puzzle-pieces";
11118
- Assets2["QUESTION_MARK"] = "question-mark";
11119
- Assets2["RECEIVE"] = "receive";
11120
- Assets2["REMINDER_LETTER"] = "reminder-letter";
11121
- Assets2["SAND_TIMER"] = "sand-timer";
11122
- Assets2["SHOPPING_BAG"] = "shopping-bag";
11123
- Assets2["SKIP_AUTHENTICATION"] = "skip-authentication";
11124
- Assets2["SPEECH_BUBBLE"] = "speech-bubble";
11125
- Assets2["TOOL"] = "tool";
11126
- Assets2["TWO_INVITE_LETTERS_OPENED"] = "two-invite-letters-opened";
11127
- Assets2["WALLET"] = "wallet";
11128
- })(Assets || (Assets = {}));
11192
+ // ../../node_modules/.pnpm/@wise+art@2.14.0_@transferwise+neptune-css@14.12.1_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
11193
+ init_index_93a0c34e_esm();
11194
+ init_clsx();
11195
+ import "react";
11196
+ import "react/jsx-runtime";
11129
11197
 
11130
11198
  // ../renderers/src/components/icon/FlagIcon.tsx
11131
11199
  import { jsx as jsx18 } from "react/jsx-runtime";
@@ -11189,27 +11257,30 @@ function NavigationOptionMedia({ icon, image }) {
11189
11257
  }
11190
11258
 
11191
11259
  // ../renderers/src/DecisionRenderer.tsx
11192
- import { jsx as jsx22 } from "react/jsx-runtime";
11260
+ import { jsx as jsx22, jsxs as jsxs5 } from "react/jsx-runtime";
11193
11261
  var DecisionRenderer = {
11194
11262
  canRenderType: "decision",
11195
11263
  render: DecisionRendererComponent
11196
11264
  };
11197
11265
  var DecisionRenderer_default = DecisionRenderer;
11198
- function DecisionRendererComponent({ margin, options }) {
11266
+ function DecisionRendererComponent({ margin, options, title }) {
11199
11267
  const { isLoading } = useLoadingContext();
11200
- return /* @__PURE__ */ jsx22("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx22(NavigationOptionsList, { children: options.map(({ description, disabled, icon, image, title, onClick }) => /* @__PURE__ */ jsx22(
11201
- NavigationOption,
11202
- {
11203
- title,
11204
- content: description,
11205
- disabled: isLoading || disabled,
11206
- media: /* @__PURE__ */ jsx22(NavigationOptionMedia, { icon, image }),
11207
- showMediaCircle: false,
11208
- showMediaAtAllSizes: true,
11209
- onClick
11210
- },
11211
- JSON.stringify(title)
11212
- )) }) });
11268
+ return /* @__PURE__ */ jsxs5("div", { className: getMargin(margin), children: [
11269
+ title && /* @__PURE__ */ jsx22(Header, { as: "h2", title }),
11270
+ /* @__PURE__ */ jsx22(NavigationOptionsList, { children: options.map(({ description, disabled, icon, image, title: title2, onClick }) => /* @__PURE__ */ jsx22(
11271
+ NavigationOption,
11272
+ {
11273
+ title: title2,
11274
+ content: description,
11275
+ disabled: isLoading || disabled,
11276
+ media: /* @__PURE__ */ jsx22(NavigationOptionMedia, { icon, image }),
11277
+ showMediaCircle: false,
11278
+ showMediaAtAllSizes: true,
11279
+ onClick
11280
+ },
11281
+ JSON.stringify(title2)
11282
+ )) })
11283
+ ] });
11213
11284
  }
11214
11285
 
11215
11286
  // ../renderers/src/DividerRenderer.tsx
@@ -11229,14 +11300,14 @@ var FormRenderer = {
11229
11300
  var FormRenderer_default = FormRenderer;
11230
11301
 
11231
11302
  // ../renderers/src/FormSectionRenderer.tsx
11232
- import { Header } from "@transferwise/components";
11233
- import { jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
11303
+ import { Header as Header2 } from "@transferwise/components";
11304
+ import { jsx as jsx25, jsxs as jsxs6 } from "react/jsx-runtime";
11234
11305
  var FormSectionRenderer = {
11235
11306
  canRenderType: "form-section",
11236
- render: ({ title, description, children }) => /* @__PURE__ */ jsxs5("fieldset", { children: [
11307
+ render: ({ title, description, children }) => /* @__PURE__ */ jsxs6("fieldset", { children: [
11237
11308
  title && // TODO - once section headers support help, we could show help in here
11238
11309
  /* @__PURE__ */ jsx25(
11239
- Header,
11310
+ Header2,
11240
11311
  {
11241
11312
  as: "h2",
11242
11313
  title
@@ -11366,8 +11437,8 @@ var getImageSource = async (httpClient, imageUrl) => {
11366
11437
  };
11367
11438
 
11368
11439
  // ../renderers/src/InstructionsRenderer.tsx
11369
- import { Header as Header2, InstructionsList } from "@transferwise/components";
11370
- import { jsx as jsx28, jsxs as jsxs6 } from "react/jsx-runtime";
11440
+ import { Header as Header3, InstructionsList } from "@transferwise/components";
11441
+ import { jsx as jsx28, jsxs as jsxs7 } from "react/jsx-runtime";
11371
11442
  var doContext = ["positive", "neutral"];
11372
11443
  var dontContext = ["warning", "negative"];
11373
11444
  var InstructionsRenderer = {
@@ -11375,8 +11446,8 @@ var InstructionsRenderer = {
11375
11446
  render: ({ items, margin, title }) => {
11376
11447
  const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
11377
11448
  const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
11378
- return /* @__PURE__ */ jsxs6("div", { className: getMargin(margin), children: [
11379
- title ? /* @__PURE__ */ jsx28(Header2, { title }) : null,
11449
+ return /* @__PURE__ */ jsxs7("div", { className: getMargin(margin), children: [
11450
+ title ? /* @__PURE__ */ jsx28(Header3, { title }) : null,
11380
11451
  /* @__PURE__ */ jsx28(InstructionsList, { dos, donts })
11381
11452
  ] });
11382
11453
  }
@@ -11447,7 +11518,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
11447
11518
  // ../renderers/src/ModalRenderer.tsx
11448
11519
  import { Button as Button2, Modal } from "@transferwise/components";
11449
11520
  import { useState as useState4 } from "react";
11450
- import { jsx as jsx32, jsxs as jsxs7 } from "react/jsx-runtime";
11521
+ import { jsx as jsx32, jsxs as jsxs8 } from "react/jsx-runtime";
11451
11522
  var ModalRenderer = {
11452
11523
  canRenderType: "modal",
11453
11524
  render: (props) => /* @__PURE__ */ jsx32(DFModal, __spreadValues({}, props))
@@ -11455,7 +11526,7 @@ var ModalRenderer = {
11455
11526
  var ModalRenderer_default = ModalRenderer;
11456
11527
  function DFModal({ content, margin, trigger }) {
11457
11528
  const [visible, setVisible] = useState4(false);
11458
- return /* @__PURE__ */ jsxs7("div", { className: getMargin(margin), children: [
11529
+ return /* @__PURE__ */ jsxs8("div", { className: getMargin(margin), children: [
11459
11530
  /* @__PURE__ */ jsx32(Button2, { priority: "tertiary", block: true, onClick: () => setVisible(true), children: trigger.title }),
11460
11531
  /* @__PURE__ */ jsx32(
11461
11532
  Modal,
@@ -11594,7 +11665,7 @@ import { UploadInput } from "@transferwise/components";
11594
11665
  // ../renderers/src/components/UploadFieldInput.tsx
11595
11666
  var import_classnames3 = __toESM(require_classnames());
11596
11667
  import { InlineAlert } from "@transferwise/components";
11597
- import { jsx as jsx35, jsxs as jsxs8 } from "react/jsx-runtime";
11668
+ import { jsx as jsx35, jsxs as jsxs9 } from "react/jsx-runtime";
11598
11669
  function UploadFieldInput({
11599
11670
  id,
11600
11671
  children,
@@ -11605,7 +11676,7 @@ function UploadFieldInput({
11605
11676
  }) {
11606
11677
  const labelContent = label && help ? /* @__PURE__ */ jsx35(LabelContentWithHelp, { text: label, help }) : label;
11607
11678
  const descriptionId = description ? `${id}-description` : void 0;
11608
- return /* @__PURE__ */ jsxs8(
11679
+ return /* @__PURE__ */ jsxs9(
11609
11680
  "div",
11610
11681
  {
11611
11682
  className: (0, import_classnames3.default)("form-group d-block", {
@@ -11751,7 +11822,7 @@ var paragraph_messages_default = defineMessages7({
11751
11822
  });
11752
11823
 
11753
11824
  // ../renderers/src/ParagraphRenderer.tsx
11754
- import { jsx as jsx38, jsxs as jsxs9 } from "react/jsx-runtime";
11825
+ import { jsx as jsx38, jsxs as jsxs10 } from "react/jsx-runtime";
11755
11826
  var ParagraphRenderer = {
11756
11827
  canRenderType: "paragraph",
11757
11828
  render: (props) => /* @__PURE__ */ jsx38(Paragraph, __spreadValues({}, props))
@@ -11775,7 +11846,7 @@ function CopyableParagraph({
11775
11846
  });
11776
11847
  };
11777
11848
  const inputAlignmentClasses = getTextAlignmentAndMargin({ align, margin: "sm" });
11778
- return /* @__PURE__ */ jsxs9("div", { className, children: [
11849
+ return /* @__PURE__ */ jsxs10("div", { className, children: [
11779
11850
  /* @__PURE__ */ jsx38(
11780
11851
  Input3,
11781
11852
  {
@@ -11791,7 +11862,7 @@ function CopyableParagraph({
11791
11862
  var ParagraphRenderer_default = ParagraphRenderer;
11792
11863
 
11793
11864
  // ../renderers/src/RepeatableRenderer.tsx
11794
- import { Button as Button4, Header as Header3, Modal as Modal2, NavigationOption as NavigationOption2, InlineAlert as InlineAlert2 } from "@transferwise/components";
11865
+ import { Button as Button4, Header as Header4, Modal as Modal2, NavigationOption as NavigationOption2, InlineAlert as InlineAlert2 } from "@transferwise/components";
11795
11866
  import { useState as useState6 } from "react";
11796
11867
  import { Plus } from "@transferwise/icons";
11797
11868
  import { useIntl as useIntl6 } from "react-intl";
@@ -11823,7 +11894,7 @@ var repeatable_messages_default = defineMessages8({
11823
11894
 
11824
11895
  // ../renderers/src/RepeatableRenderer.tsx
11825
11896
  var import_classnames5 = __toESM(require_classnames());
11826
- import { Fragment as Fragment4, jsx as jsx39, jsxs as jsxs10 } from "react/jsx-runtime";
11897
+ import { Fragment as Fragment4, jsx as jsx39, jsxs as jsxs11 } from "react/jsx-runtime";
11827
11898
  var RepeatableRenderer = {
11828
11899
  canRenderType: "repeatable",
11829
11900
  render: (props) => /* @__PURE__ */ jsx39(Repeatable, __spreadValues({}, props))
@@ -11865,10 +11936,10 @@ function Repeatable(props) {
11865
11936
  const onCancelEdit = () => {
11866
11937
  setOpenModalType(null);
11867
11938
  };
11868
- return /* @__PURE__ */ jsxs10(Fragment4, { children: [
11869
- title && /* @__PURE__ */ jsx39(Header3, { title }),
11939
+ return /* @__PURE__ */ jsxs11(Fragment4, { children: [
11940
+ title && /* @__PURE__ */ jsx39(Header4, { title }),
11870
11941
  description && /* @__PURE__ */ jsx39("p", { children: description }),
11871
- /* @__PURE__ */ jsxs10(
11942
+ /* @__PURE__ */ jsxs11(
11872
11943
  "div",
11873
11944
  {
11874
11945
  className: (0, import_classnames5.default)("form-group", {
@@ -11894,9 +11965,9 @@ function Repeatable(props) {
11894
11965
  {
11895
11966
  open: openModalType !== null,
11896
11967
  title: (openModalType === "add" ? addItemTitle : editItemTitle) || formatMessage(repeatable_messages_default.addItemTitle),
11897
- body: /* @__PURE__ */ jsxs10(Fragment4, { children: [
11968
+ body: /* @__PURE__ */ jsxs11(Fragment4, { children: [
11898
11969
  /* @__PURE__ */ jsx39("div", { className: "m-b-2", children: editableItem }),
11899
- /* @__PURE__ */ jsxs10("div", { children: [
11970
+ /* @__PURE__ */ jsxs11("div", { children: [
11900
11971
  /* @__PURE__ */ jsx39(Button4, { priority: "primary", block: true, className: "m-b-2", onClick: () => onSaveItem(), children: formatMessage(repeatable_messages_default.addItem) }),
11901
11972
  /* @__PURE__ */ jsx39(Button4, { priority: "secondary", type: "negative", block: true, onClick: () => onRemoveItem(), children: formatMessage(repeatable_messages_default.removeItem) })
11902
11973
  ] })
@@ -11950,10 +12021,10 @@ var generic_error_messages_default2 = defineMessages9({
11950
12021
  });
11951
12022
 
11952
12023
  // ../renderers/src/SearchRenderer/ErrorResult.tsx
11953
- import { jsx as jsx40, jsxs as jsxs11 } from "react/jsx-runtime";
12024
+ import { jsx as jsx40, jsxs as jsxs12 } from "react/jsx-runtime";
11954
12025
  function ErrorResult({ state }) {
11955
12026
  const intl = useIntl7();
11956
- return /* @__PURE__ */ jsxs11("p", { className: "m-t-2", children: [
12027
+ return /* @__PURE__ */ jsxs12("p", { className: "m-t-2", children: [
11957
12028
  intl.formatMessage(generic_error_messages_default2.genericError),
11958
12029
  "\xA0",
11959
12030
  /* @__PURE__ */ jsx40(
@@ -11972,7 +12043,7 @@ function ErrorResult({ state }) {
11972
12043
 
11973
12044
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
11974
12045
  import { useState as useState7 } from "react";
11975
- import { Fragment as Fragment5, jsx as jsx41, jsxs as jsxs12 } from "react/jsx-runtime";
12046
+ import { Fragment as Fragment5, jsx as jsx41, jsxs as jsxs13 } from "react/jsx-runtime";
11976
12047
  function BlockSearchRendererComponent({
11977
12048
  id,
11978
12049
  isLoading,
@@ -11984,7 +12055,7 @@ function BlockSearchRendererComponent({
11984
12055
  }) {
11985
12056
  const [hasSearched, setHasSearched] = useState7(false);
11986
12057
  const trackEvent = useTrackEvent();
11987
- return /* @__PURE__ */ jsxs12("div", { className: getMargin(margin), children: [
12058
+ return /* @__PURE__ */ jsxs13("div", { className: getMargin(margin), children: [
11988
12059
  /* @__PURE__ */ jsx41(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: /* @__PURE__ */ jsx41(
11989
12060
  Input4,
11990
12061
  {
@@ -12052,7 +12123,7 @@ var BlockSearchRendererComponent_default = BlockSearchRendererComponent;
12052
12123
  import { Markdown as Markdown4, Typeahead } from "@transferwise/components";
12053
12124
  import { Search } from "@transferwise/icons";
12054
12125
  import { useState as useState8 } from "react";
12055
- import { jsx as jsx42, jsxs as jsxs13 } from "react/jsx-runtime";
12126
+ import { jsx as jsx42 } from "react/jsx-runtime";
12056
12127
  function InlineSearchRenderer({
12057
12128
  id,
12058
12129
  isLoading,
@@ -12063,43 +12134,40 @@ function InlineSearchRenderer({
12063
12134
  }) {
12064
12135
  const [hasSearched, setHasSearched] = useState8(false);
12065
12136
  const trackEvent = useTrackEvent();
12066
- return /* @__PURE__ */ jsx42("div", { className: getMargin(margin), children: /* @__PURE__ */ jsxs13(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: [
12067
- id,
12068
- /* @__PURE__ */ jsx42(
12069
- Typeahead,
12070
- {
12071
- id: "typeahead-input-id",
12072
- name: "typeahead-input-name",
12073
- size: "md",
12074
- maxHeight: 100,
12075
- footer: /* @__PURE__ */ jsx42(TypeaheadFooter, { state, isLoading }),
12076
- multiple: false,
12077
- clearable: false,
12078
- addon: /* @__PURE__ */ jsx42(Search, { size: 24 }),
12079
- options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
12080
- minQueryLength: 1,
12081
- onChange: (values) => {
12082
- if (values.length > 0) {
12083
- const [updatedValue] = values;
12084
- const { value: result } = updatedValue;
12085
- if (result) {
12086
- trackEvent("Search Result Selected", __spreadValues({
12087
- type: result.type
12088
- }, result.type === "action" ? { actionId: result.id } : {}));
12089
- result.onClick();
12090
- }
12091
- }
12092
- },
12093
- onInputChange: (query) => {
12094
- if (!hasSearched) {
12095
- setHasSearched(true);
12096
- trackEvent("Search Started");
12137
+ return /* @__PURE__ */ jsx42("div", { className: getMargin(margin), children: /* @__PURE__ */ jsx42(FieldInput_default, { id, description: "", error: "", help: "", label: title, children: /* @__PURE__ */ jsx42(
12138
+ Typeahead,
12139
+ {
12140
+ id: "typeahead-input-id",
12141
+ name: "typeahead-input-name",
12142
+ size: "md",
12143
+ maxHeight: 100,
12144
+ footer: /* @__PURE__ */ jsx42(TypeaheadFooter, { state, isLoading }),
12145
+ multiple: false,
12146
+ clearable: false,
12147
+ addon: /* @__PURE__ */ jsx42(Search, { size: 24 }),
12148
+ options: state.type === "results" ? state.results.map(mapResultToTypeaheadOption) : [],
12149
+ minQueryLength: 1,
12150
+ onChange: (values) => {
12151
+ if (values.length > 0) {
12152
+ const [updatedValue] = values;
12153
+ const { value: result } = updatedValue;
12154
+ if (result) {
12155
+ trackEvent("Search Result Selected", __spreadValues({
12156
+ type: result.type
12157
+ }, result.type === "action" ? { actionId: result.id } : {}));
12158
+ result.onClick();
12097
12159
  }
12098
- onChange(query);
12099
12160
  }
12161
+ },
12162
+ onInputChange: (query) => {
12163
+ if (!hasSearched) {
12164
+ setHasSearched(true);
12165
+ trackEvent("Search Started");
12166
+ }
12167
+ onChange(query);
12100
12168
  }
12101
- )
12102
- ] }) });
12169
+ }
12170
+ ) }) });
12103
12171
  }
12104
12172
  function mapResultToTypeaheadOption(result) {
12105
12173
  return {
@@ -12347,12 +12415,12 @@ var SelectInputRenderer = {
12347
12415
  var SelectInputRenderer_default = SelectInputRenderer;
12348
12416
 
12349
12417
  // ../renderers/src/StatusListRenderer.tsx
12350
- import { Header as Header4, Summary } from "@transferwise/components";
12418
+ import { Header as Header5, Summary } from "@transferwise/components";
12351
12419
  import { jsx as jsx50, jsxs as jsxs18 } from "react/jsx-runtime";
12352
12420
  var StatusListRenderer = {
12353
12421
  canRenderType: "status-list",
12354
12422
  render: ({ margin, items, title }) => /* @__PURE__ */ jsxs18("div", { className: getMargin(margin), children: [
12355
- title ? /* @__PURE__ */ jsx50(Header4, { title }) : null,
12423
+ title ? /* @__PURE__ */ jsx50(Header5, { title }) : null,
12356
12424
  items.map(({ description, icon, status, title: itemTitle }) => /* @__PURE__ */ jsx50(
12357
12425
  Summary,
12358
12426
  {
@@ -12566,7 +12634,7 @@ var LargeUploadRenderer = {
12566
12634
  };
12567
12635
 
12568
12636
  // ../renderers/src/ReviewRenderer.tsx
12569
- import { DefinitionList, Header as Header5 } from "@transferwise/components";
12637
+ import { DefinitionList, Header as Header6 } from "@transferwise/components";
12570
12638
  import { Fragment as Fragment10, jsx as jsx54, jsxs as jsxs19 } from "react/jsx-runtime";
12571
12639
  var ReviewRenderer = {
12572
12640
  canRenderType: "review",
@@ -12580,7 +12648,7 @@ var ReviewRenderer = {
12580
12648
  }
12581
12649
  } : void 0;
12582
12650
  return /* @__PURE__ */ jsxs19("div", { className: getMargin(margin), children: [
12583
- (title || callToAction) && /* @__PURE__ */ jsx54(Header5, { title: title != null ? title : "", action }),
12651
+ (title || callToAction) && /* @__PURE__ */ jsx54(Header6, { title: title != null ? title : "", action }),
12584
12652
  /* @__PURE__ */ jsx54("div", { className: margin, children: /* @__PURE__ */ jsx54(
12585
12653
  DefinitionList,
12586
12654
  {
@@ -14496,23 +14564,27 @@ var getWidth = (bias) => {
14496
14564
  var DynamicColumns_default = DynamicColumns;
14497
14565
 
14498
14566
  // src/legacy/layout/decision/DynamicDecision.tsx
14499
- import { NavigationOption as NavigationOption4, NavigationOptionsList as NavigationOptionsList3 } from "@transferwise/components";
14500
- import { jsx as jsx74 } from "react/jsx-runtime";
14567
+ import { Header as Header7, NavigationOption as NavigationOption4, NavigationOptionsList as NavigationOptionsList3 } from "@transferwise/components";
14568
+ import { jsx as jsx74, jsxs as jsxs24 } from "react/jsx-runtime";
14501
14569
  function DynamicDecision({ component, onAction }) {
14502
14570
  const { loading } = useDynamicFlow();
14503
- return /* @__PURE__ */ jsx74("div", { className: getMargin2(component.margin), children: /* @__PURE__ */ jsx74(NavigationOptionsList3, { children: component.options.map((option) => /* @__PURE__ */ jsx74(
14504
- NavigationOption4,
14505
- {
14506
- title: option.title,
14507
- content: option.description,
14508
- disabled: loading || option.disabled,
14509
- media: getNavigationOptionMedia(option),
14510
- showMediaCircle: false,
14511
- showMediaAtAllSizes: true,
14512
- onClick: () => onAction(option.action)
14513
- },
14514
- JSON.stringify(option)
14515
- )) }) });
14571
+ const { margin, options, title } = component;
14572
+ return /* @__PURE__ */ jsxs24("div", { className: getMargin2(margin), children: [
14573
+ title && /* @__PURE__ */ jsx74(Header7, { as: "h2", title }),
14574
+ /* @__PURE__ */ jsx74(NavigationOptionsList3, { children: options.map((option) => /* @__PURE__ */ jsx74(
14575
+ NavigationOption4,
14576
+ {
14577
+ title: option.title,
14578
+ content: option.description,
14579
+ disabled: loading || option.disabled,
14580
+ media: getNavigationOptionMedia(option),
14581
+ showMediaCircle: false,
14582
+ showMediaAtAllSizes: true,
14583
+ onClick: () => onAction(option.action)
14584
+ },
14585
+ JSON.stringify(option)
14586
+ )) })
14587
+ ] });
14516
14588
  }
14517
14589
  var DynamicDecision_default = DynamicDecision;
14518
14590
 
@@ -14541,7 +14613,7 @@ var DynamicExternal_messages_default = defineMessages11({
14541
14613
  });
14542
14614
 
14543
14615
  // src/legacy/layout/external/DynamicExternal.tsx
14544
- import { Fragment as Fragment11, jsx as jsx76, jsxs as jsxs24 } from "react/jsx-runtime";
14616
+ import { Fragment as Fragment11, jsx as jsx76, jsxs as jsxs25 } from "react/jsx-runtime";
14545
14617
  var DynamicExternal = ({ component, onAction }) => {
14546
14618
  const { requestUrl, responseHandlers, polling, retryTitle } = component;
14547
14619
  const intl = useIntl9();
@@ -14556,7 +14628,7 @@ var DynamicExternal = ({ component, onAction }) => {
14556
14628
  responseHandlers
14557
14629
  }) : void 0;
14558
14630
  useExternalStepPolling(pollingConfiguration, onAction);
14559
- return /* @__PURE__ */ jsxs24(Fragment11, { children: [
14631
+ return /* @__PURE__ */ jsxs25(Fragment11, { children: [
14560
14632
  /* @__PURE__ */ jsx76(Loader2, { size: Size2.LARGE, classNames: { "tw-loader": "tw-loader m-x-auto" } }),
14561
14633
  /* @__PURE__ */ jsx76("br", {}),
14562
14634
  /* @__PURE__ */ jsx76(Button7, { priority: "tertiary", block: true, onClick: openExternalUrl, children: retryTitle || intl.formatMessage(DynamicExternal_messages_default.retryTitle) })
@@ -14569,9 +14641,9 @@ import { useEffect as useEffect15 } from "react";
14569
14641
 
14570
14642
  // src/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.tsx
14571
14643
  var import_classnames6 = __toESM(require_classnames());
14572
- import { Header as Header6 } from "@transferwise/components";
14644
+ import { Header as Header8 } from "@transferwise/components";
14573
14645
  import { useState as useState12 } from "react";
14574
- import { Fragment as Fragment12, jsx as jsx77, jsxs as jsxs25 } from "react/jsx-runtime";
14646
+ import { Fragment as Fragment12, jsx as jsx77, jsxs as jsxs26 } from "react/jsx-runtime";
14575
14647
  var splitModel = (model, schemas) => schemas.map((schema) => getValidObjectModelParts(model, schema) || {});
14576
14648
  var combineModels = (models) => models.reduce((current, combined) => __spreadValues(__spreadValues({}, combined), current), {});
14577
14649
  var getSchemaColumnClasses = (width) => ({
@@ -14587,8 +14659,8 @@ function AllOfSchema(props) {
14587
14659
  props.onChange(__spreadProps(__spreadValues({}, onChangeProps), { model: combineModels(models) }));
14588
14660
  };
14589
14661
  const [models, setModels] = useState12(splitModel(props.model, props.schema.allOf));
14590
- return /* @__PURE__ */ jsxs25(Fragment12, { children: [
14591
- props.schema.title && /* @__PURE__ */ jsx77(Header6, { title: props.schema.title }),
14662
+ return /* @__PURE__ */ jsxs26(Fragment12, { children: [
14663
+ props.schema.title && /* @__PURE__ */ jsx77(Header8, { title: props.schema.title }),
14592
14664
  props.schema.description && /* @__PURE__ */ jsx77("p", { children: props.schema.description }),
14593
14665
  /* @__PURE__ */ jsx77("div", { className: "row", children: props.schema.allOf.map((schema, index) => (
14594
14666
  // eslint-disable-next-line react/no-array-index-key
@@ -14627,7 +14699,7 @@ import { useMemo as useMemo12, useState as useState13 } from "react";
14627
14699
  import { InlineAlert as InlineAlert3 } from "@transferwise/components";
14628
14700
  import { formatDate as formatDate3 } from "@transferwise/formatting";
14629
14701
  import { useIntl as useIntl10 } from "react-intl";
14630
- import { jsx as jsx78, jsxs as jsxs26 } from "react/jsx-runtime";
14702
+ import { jsx as jsx78, jsxs as jsxs27 } from "react/jsx-runtime";
14631
14703
  function ControlFeedback(props) {
14632
14704
  var _a;
14633
14705
  const defaultValidationMessages = useDefaultValidationMessages(props.schema);
@@ -14636,10 +14708,10 @@ function ControlFeedback(props) {
14636
14708
  const isValidationVisible = !isErrorVisible && (props.submitted || props.changed && props.blurred) && Boolean((_a = props.validations) == null ? void 0 : _a.length);
14637
14709
  const isDescriptionVisible = props.schema.type !== "boolean" && props.schema.description && !isErrorVisible && !isValidationVisible;
14638
14710
  const hasInfoMessage = Boolean(props.infoMessage);
14639
- return /* @__PURE__ */ jsxs26("div", { id: props.id, children: [
14711
+ return /* @__PURE__ */ jsxs27("div", { id: props.id, children: [
14640
14712
  isErrorVisible ? /* @__PURE__ */ jsx78(InlineAlert3, { type: "error", children: props.errors }) : null,
14641
14713
  isValidationVisible ? /* @__PURE__ */ jsx78(InlineAlert3, { type: "error", children: props.validations.map((validation) => /* @__PURE__ */ jsx78("div", { children: validationMessages[validation] }, validation)) }) : null,
14642
- (isDescriptionVisible || hasInfoMessage) && /* @__PURE__ */ jsxs26(InlineAlert3, { type: "info", children: [
14714
+ (isDescriptionVisible || hasInfoMessage) && /* @__PURE__ */ jsxs27(InlineAlert3, { type: "info", children: [
14643
14715
  isDescriptionVisible && /* @__PURE__ */ jsx78("div", { children: props.schema.description }),
14644
14716
  hasInfoMessage && /* @__PURE__ */ jsx78("div", { children: props.infoMessage })
14645
14717
  ] })
@@ -14767,7 +14839,7 @@ function useFormattedDefaultErrorMessages({
14767
14839
  }
14768
14840
 
14769
14841
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.tsx
14770
- import { jsx as jsx79, jsxs as jsxs27 } from "react/jsx-runtime";
14842
+ import { jsx as jsx79, jsxs as jsxs28 } from "react/jsx-runtime";
14771
14843
  function MultipleFileUploadSchema(props) {
14772
14844
  var _a, _b;
14773
14845
  const { onChange, schema } = props;
@@ -14829,7 +14901,7 @@ function MultipleFileUploadSchema(props) {
14829
14901
  onDeleteFile: () => Promise.resolve()
14830
14902
  });
14831
14903
  const feedbackId = `${uid}-feedback`;
14832
- return /* @__PURE__ */ jsxs27("div", { className: (0, import_classnames7.default)("form-group", { "has-error": showError }), children: [
14904
+ return /* @__PURE__ */ jsxs28("div", { className: (0, import_classnames7.default)("form-group", { "has-error": showError }), children: [
14833
14905
  /* @__PURE__ */ jsx79("label", { className: "d-block control-label", htmlFor: uid, children: props.schema.title }),
14834
14906
  /* @__PURE__ */ jsx79("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ jsx79(UploadInput3, __spreadValues({}, uploadInputProps)) }),
14835
14907
  /* @__PURE__ */ jsx79(
@@ -14980,7 +15052,7 @@ var multi_select_messages_default2 = defineMessages13({
14980
15052
  });
14981
15053
 
14982
15054
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.tsx
14983
- import { jsx as jsx81, jsxs as jsxs28 } from "react/jsx-runtime";
15055
+ import { jsx as jsx81, jsxs as jsxs29 } from "react/jsx-runtime";
14984
15056
  function MultiSelectSchema({
14985
15057
  schema,
14986
15058
  model,
@@ -15032,7 +15104,7 @@ function MultiSelectSchema({
15032
15104
  const formGroupClasses = {
15033
15105
  "has-error": shouldShowInitialError || shouldShowValidationError
15034
15106
  };
15035
- return /* @__PURE__ */ jsxs28("div", { className: (0, import_classnames8.default)("d-flex flex-column", formGroupClasses), children: [
15107
+ return /* @__PURE__ */ jsxs29("div", { className: (0, import_classnames8.default)("d-flex flex-column", formGroupClasses), children: [
15036
15108
  schema.title ? /* @__PURE__ */ jsx81("label", { htmlFor: id, children: schema.title }) : void 0,
15037
15109
  /* @__PURE__ */ jsx81(
15038
15110
  SelectInput3,
@@ -15090,7 +15162,7 @@ var getInitialModelIndices2 = (model, options) => {
15090
15162
  };
15091
15163
 
15092
15164
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.tsx
15093
- import { Header as Header7, Modal as Modal3, NavigationOption as NavigationOption6 } from "@transferwise/components";
15165
+ import { Header as Header9, Modal as Modal3, NavigationOption as NavigationOption6 } from "@transferwise/components";
15094
15166
  import { Plus as Plus2 } from "@transferwise/icons";
15095
15167
  import { useMemo as useMemo14, useState as useState16 } from "react";
15096
15168
  import { useIntl as useIntl14 } from "react-intl";
@@ -15393,7 +15465,7 @@ var schemaSummaryProvides = (summary, providesProp) => (
15393
15465
 
15394
15466
  // src/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.tsx
15395
15467
  var import_classnames9 = __toESM(require_classnames());
15396
- import { jsx as jsx84, jsxs as jsxs29 } from "react/jsx-runtime";
15468
+ import { jsx as jsx84, jsxs as jsxs30 } from "react/jsx-runtime";
15397
15469
  function RepeatableSchema({
15398
15470
  schema,
15399
15471
  model,
@@ -15470,8 +15542,8 @@ function RepeatableSchema({
15470
15542
  const formGroupClasses = {
15471
15543
  "has-error": (_a = errors && !isEmpty(errors)) != null ? _a : submitted && validations.length
15472
15544
  };
15473
- return /* @__PURE__ */ jsxs29("div", { id, className: (0, import_classnames9.default)(formGroupClasses), children: [
15474
- schema.title && /* @__PURE__ */ jsx84(Header7, { title: schema.title }),
15545
+ return /* @__PURE__ */ jsxs30("div", { id, className: (0, import_classnames9.default)(formGroupClasses), children: [
15546
+ schema.title && /* @__PURE__ */ jsx84(Header9, { title: schema.title }),
15475
15547
  itemSummaries == null ? void 0 : itemSummaries.map((itemSummary) => /* @__PURE__ */ jsx84(
15476
15548
  ItemSummaryOption2,
15477
15549
  {
@@ -15587,9 +15659,9 @@ var ArraySchema_default = ArraySchema;
15587
15659
 
15588
15660
  // src/legacy/jsonSchemaForm/objectSchema/ObjectSchema.tsx
15589
15661
  var import_classnames10 = __toESM(require_classnames());
15590
- import { Header as Header8 } from "@transferwise/components";
15662
+ import { Header as Header10 } from "@transferwise/components";
15591
15663
  import { useState as useState17, useEffect as useEffect10 } from "react";
15592
- import { Fragment as Fragment13, jsx as jsx87, jsxs as jsxs30 } from "react/jsx-runtime";
15664
+ import { Fragment as Fragment13, jsx as jsx87, jsxs as jsxs31 } from "react/jsx-runtime";
15593
15665
  var getSchemaColumnClasses2 = (width) => ({
15594
15666
  "col-xs-12": true,
15595
15667
  "col-sm-6": width === "md",
@@ -15625,11 +15697,11 @@ function ObjectSchema(props) {
15625
15697
  const isPropertyDefined = (propertyName) => typeof props.schema.properties[propertyName] !== "undefined";
15626
15698
  const orderedPropertyNames = Array.from(allorderedPropertiesSet).filter(isPropertyDefined);
15627
15699
  const propsErrors = props.errors;
15628
- return /* @__PURE__ */ jsxs30(Fragment13, { children: [
15700
+ return /* @__PURE__ */ jsxs31(Fragment13, { children: [
15629
15701
  props.schema.alert && /* @__PURE__ */ jsx87(DynamicAlert_default, { component: props.schema.alert }),
15630
- /* @__PURE__ */ jsxs30("fieldset", { children: [
15631
- props.schema.title && !props.hideTitle && /* @__PURE__ */ jsx87(Header8, { title: props.schema.title, as: "legend" }),
15632
- props.schema.description && !props.hideTitle && /* @__PURE__ */ jsxs30("p", { children: [
15702
+ /* @__PURE__ */ jsxs31("fieldset", { children: [
15703
+ props.schema.title && !props.hideTitle && /* @__PURE__ */ jsx87(Header10, { title: props.schema.title, as: "legend" }),
15704
+ props.schema.description && !props.hideTitle && /* @__PURE__ */ jsxs31("p", { children: [
15633
15705
  " ",
15634
15706
  props.schema.description,
15635
15707
  " "
@@ -15667,7 +15739,7 @@ var ObjectSchema_default = ObjectSchema;
15667
15739
 
15668
15740
  // src/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.tsx
15669
15741
  var import_classnames11 = __toESM(require_classnames());
15670
- import { Header as Header9 } from "@transferwise/components";
15742
+ import { Header as Header11 } from "@transferwise/components";
15671
15743
  import { useEffect as useEffect12, useMemo as useMemo15, useState as useState18 } from "react";
15672
15744
 
15673
15745
  // src/legacy/jsonSchemaForm/help/Help.tsx
@@ -16473,7 +16545,7 @@ var warnIfInvalidSchema = (schema, log, controlType) => {
16473
16545
  var SchemaFormControl_default = SchemaFormControl;
16474
16546
 
16475
16547
  // src/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.tsx
16476
- import { Fragment as Fragment15, jsx as jsx91, jsxs as jsxs31 } from "react/jsx-runtime";
16548
+ import { Fragment as Fragment15, jsx as jsx91, jsxs as jsxs32 } from "react/jsx-runtime";
16477
16549
  function OneOfSchema(props) {
16478
16550
  const onEvent = useEventDispatcher();
16479
16551
  const [changed, setChanged] = useState18(false);
@@ -16549,10 +16621,10 @@ function OneOfSchema(props) {
16549
16621
  "has-error": !changed && props.errors && !isEmpty(props.errors) || (props.submitted || changed && blurred) && validations.length
16550
16622
  };
16551
16623
  const feedbackId = `${id}-feedback`;
16552
- return /* @__PURE__ */ jsxs31(Fragment15, { children: [
16553
- (props.schema.oneOf.length > 1 || isConstSchema2(props.schema.oneOf[0])) && /* @__PURE__ */ jsxs31(Fragment15, { children: [
16624
+ return /* @__PURE__ */ jsxs32(Fragment15, { children: [
16625
+ (props.schema.oneOf.length > 1 || isConstSchema2(props.schema.oneOf[0])) && /* @__PURE__ */ jsxs32(Fragment15, { children: [
16554
16626
  props.schema.alert && /* @__PURE__ */ jsx91(DynamicAlert_default, { component: props.schema.alert }),
16555
- /* @__PURE__ */ jsxs31("div", { className: (0, import_classnames11.default)(formGroupClasses), children: [
16627
+ /* @__PURE__ */ jsxs32("div", { className: (0, import_classnames11.default)(formGroupClasses), children: [
16556
16628
  getTitleAndHelp(props.schema, id),
16557
16629
  /* @__PURE__ */ jsx91(
16558
16630
  SchemaFormControl_default,
@@ -16604,15 +16676,15 @@ function OneOfSchema(props) {
16604
16676
  function getTitleAndHelp(schema, forId) {
16605
16677
  var _a;
16606
16678
  const helpElement = schema.help ? /* @__PURE__ */ jsx91(Help_default2, { help: schema.help }) : null;
16607
- const titleElement = isConstSchema2(schema.oneOf[0]) ? /* @__PURE__ */ jsx91("div", { className: "m-b-1", children: /* @__PURE__ */ jsxs31("label", { className: "control-label d-inline", htmlFor: forId, children: [
16679
+ const titleElement = isConstSchema2(schema.oneOf[0]) ? /* @__PURE__ */ jsx91("div", { className: "m-b-1", children: /* @__PURE__ */ jsxs32("label", { className: "control-label d-inline", htmlFor: forId, children: [
16608
16680
  schema.title,
16609
16681
  " ",
16610
16682
  helpElement
16611
- ] }) }) : /* @__PURE__ */ jsx91(Fragment15, { children: helpElement ? /* @__PURE__ */ jsxs31("h4", { className: "m-b-2", children: [
16683
+ ] }) }) : /* @__PURE__ */ jsx91(Fragment15, { children: helpElement ? /* @__PURE__ */ jsxs32("h4", { className: "m-b-2", children: [
16612
16684
  schema.title,
16613
16685
  " ",
16614
16686
  helpElement
16615
- ] }) : /* @__PURE__ */ jsx91(Header9, { title: (_a = schema.title) != null ? _a : "" }) });
16687
+ ] }) : /* @__PURE__ */ jsx91(Header11, { title: (_a = schema.title) != null ? _a : "" }) });
16616
16688
  return schema.title ? titleElement : helpElement;
16617
16689
  }
16618
16690
  function getValidations(props, schemaIndex) {
@@ -16710,7 +16782,7 @@ function UploadInputAdapter(props) {
16710
16782
  }
16711
16783
 
16712
16784
  // src/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.tsx
16713
- import { jsx as jsx93, jsxs as jsxs32 } from "react/jsx-runtime";
16785
+ import { jsx as jsx93, jsxs as jsxs33 } from "react/jsx-runtime";
16714
16786
  function PersistAsyncBlobSchema(props) {
16715
16787
  const { model, schema, submitted, required, errors, onChange } = props;
16716
16788
  const [persistAsyncValidationMessages, setPersistAsyncValidationMessages] = useState19({});
@@ -16758,7 +16830,7 @@ function PersistAsyncBlobSchema(props) {
16758
16830
  };
16759
16831
  const id = schema.$id || schema.persistAsync.schema.$id || schema.persistAsync.idProperty;
16760
16832
  const feedbackId = `${id}-feedback`;
16761
- return /* @__PURE__ */ jsxs32("div", { className: (0, import_classnames12.default)(formGroupClasses), children: [
16833
+ return /* @__PURE__ */ jsxs33("div", { className: (0, import_classnames12.default)(formGroupClasses), children: [
16762
16834
  /* @__PURE__ */ jsx93("div", { "aria-describedby": feedbackId, children: /* @__PURE__ */ jsx93(
16763
16835
  UploadInputAdapter,
16764
16836
  __spreadValues({
@@ -16851,7 +16923,7 @@ var PromotedOneOfCheckboxControl_default = PromotedOneOfCheckboxControl;
16851
16923
 
16852
16924
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.tsx
16853
16925
  import { RadioGroup as RadioGroup3 } from "@transferwise/components";
16854
- import { jsx as jsx96, jsxs as jsxs33 } from "react/jsx-runtime";
16926
+ import { jsx as jsx96, jsxs as jsxs34 } from "react/jsx-runtime";
16855
16927
  function PromotedOneOfRadioControl(props) {
16856
16928
  var _a, _b;
16857
16929
  const { id, selection, setSelection, promotion, promotedOneOf, title } = props;
@@ -16868,7 +16940,7 @@ function PromotedOneOfRadioControl(props) {
16868
16940
  secondary: promotion.other.description
16869
16941
  }, getAvatarPropertyForRadioOption(promotion.other))
16870
16942
  ];
16871
- return /* @__PURE__ */ jsxs33("div", { className: "form-group", children: [
16943
+ return /* @__PURE__ */ jsxs34("div", { className: "form-group", children: [
16872
16944
  title && /* @__PURE__ */ jsx96("label", { className: "control-label", htmlFor: id, children: title }),
16873
16945
  /* @__PURE__ */ jsx96(
16874
16946
  RadioGroup3,
@@ -16907,7 +16979,7 @@ PromotedOneOfControl.defaultProps = {
16907
16979
  var PromotedOneOfControl_default = PromotedOneOfControl;
16908
16980
 
16909
16981
  // src/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.tsx
16910
- import { Fragment as Fragment17, jsx as jsx98, jsxs as jsxs34 } from "react/jsx-runtime";
16982
+ import { Fragment as Fragment17, jsx as jsx98, jsxs as jsxs35 } from "react/jsx-runtime";
16911
16983
  var isPromoted = (schema) => schema.promoted === true;
16912
16984
  var PromotedOneOfSchema = (props) => {
16913
16985
  var _a;
@@ -16918,7 +16990,7 @@ var PromotedOneOfSchema = (props) => {
16918
16990
  const promotedOneOf = props.schema.oneOf.find(isPromoted);
16919
16991
  const promotedObjectSchema = getPromotedObjectSchema(promotedOneOf);
16920
16992
  const otherOneOf = getOtherOneOf(props.schema);
16921
- return /* @__PURE__ */ jsxs34(Fragment17, { children: [
16993
+ return /* @__PURE__ */ jsxs35(Fragment17, { children: [
16922
16994
  promotedAlert && /* @__PURE__ */ jsx98(DynamicAlert_default, { component: promotedAlert }),
16923
16995
  /* @__PURE__ */ jsx98(
16924
16996
  PromotedOneOfControl_default,
@@ -16981,7 +17053,7 @@ var ReadOnlySchema_messages_default = defineMessages16({
16981
17053
  });
16982
17054
 
16983
17055
  // src/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.tsx
16984
- import { Fragment as Fragment18, jsx as jsx99, jsxs as jsxs35 } from "react/jsx-runtime";
17056
+ import { Fragment as Fragment18, jsx as jsx99, jsxs as jsxs36 } from "react/jsx-runtime";
16985
17057
  function ReadOnlySchema({ schema, model }) {
16986
17058
  const { title = "" } = schema;
16987
17059
  const { formatMessage } = useIntl18();
@@ -17019,7 +17091,7 @@ function getSelectedOneOf(schema, model) {
17019
17091
  function getValueFromOption(option) {
17020
17092
  const text = option.title && option.description ? `${option.title} - ${option.description}` : option.title || "";
17021
17093
  const icon = getAvatarPropertyForRadioOption({ icon: option.icon });
17022
- return (icon == null ? void 0 : icon.avatar) ? /* @__PURE__ */ jsxs35(Fragment18, { children: [
17094
+ return (icon == null ? void 0 : icon.avatar) ? /* @__PURE__ */ jsxs36(Fragment18, { children: [
17023
17095
  icon.avatar,
17024
17096
  " ",
17025
17097
  text
@@ -17316,16 +17388,16 @@ var getImageSource2 = async (httpClient, imageUrl) => {
17316
17388
  var DynamicImage_default = DynamicImage;
17317
17389
 
17318
17390
  // src/legacy/layout/instructions/DynamicInstructions.tsx
17319
- import { Header as Header10, InstructionsList as InstructionsList2 } from "@transferwise/components";
17320
- import { jsx as jsx106, jsxs as jsxs36 } from "react/jsx-runtime";
17391
+ import { Header as Header12, InstructionsList as InstructionsList2 } from "@transferwise/components";
17392
+ import { jsx as jsx106, jsxs as jsxs37 } from "react/jsx-runtime";
17321
17393
  var doContext2 = ["positive", "neutral"];
17322
17394
  var dontContext2 = ["warning", "negative"];
17323
17395
  var DynamicInstructions = ({ component }) => {
17324
17396
  const { items } = component;
17325
17397
  const dos = items.filter((item) => doContext2.includes(item.context)).map(({ text }) => text);
17326
17398
  const donts = items.filter((item) => dontContext2.includes(item.context)).map(({ text }) => text);
17327
- return /* @__PURE__ */ jsxs36("div", { className: getMargin2(component.margin || "md"), children: [
17328
- component.title ? /* @__PURE__ */ jsx106(Header10, { title: component.title }) : null,
17399
+ return /* @__PURE__ */ jsxs37("div", { className: getMargin2(component.margin || "md"), children: [
17400
+ component.title ? /* @__PURE__ */ jsx106(Header12, { title: component.title }) : null,
17329
17401
  /* @__PURE__ */ jsx106(InstructionsList2, { dos, donts })
17330
17402
  ] });
17331
17403
  };
@@ -17436,11 +17508,11 @@ function DynamicLayout(props) {
17436
17508
  var DynamicLayout_default = DynamicLayout;
17437
17509
 
17438
17510
  // src/legacy/layout/list/DynamicStatusList.tsx
17439
- import { Header as Header11, Summary as Summary2 } from "@transferwise/components";
17440
- import { jsx as jsx108, jsxs as jsxs37 } from "react/jsx-runtime";
17511
+ import { Header as Header13, Summary as Summary2 } from "@transferwise/components";
17512
+ import { jsx as jsx108, jsxs as jsxs38 } from "react/jsx-runtime";
17441
17513
  var DynamicStatusList = ({ component }) => {
17442
- return /* @__PURE__ */ jsxs37("div", { className: getMargin2(component.margin || "md"), children: [
17443
- component.title ? /* @__PURE__ */ jsx108(Header11, { title: component.title }) : null,
17514
+ return /* @__PURE__ */ jsxs38("div", { className: getMargin2(component.margin || "md"), children: [
17515
+ component.title ? /* @__PURE__ */ jsx108(Header13, { title: component.title }) : null,
17444
17516
  component.items.map(mapListItemToSummary)
17445
17517
  ] });
17446
17518
  };
@@ -17513,12 +17585,12 @@ function noop3() {
17513
17585
  }
17514
17586
 
17515
17587
  // src/legacy/layout/paragraph/DynamicParagraph.tsx
17516
- import { jsx as jsx110, jsxs as jsxs38 } from "react/jsx-runtime";
17588
+ import { jsx as jsx110, jsxs as jsxs39 } from "react/jsx-runtime";
17517
17589
  function DynamicParagraph({ component }) {
17518
17590
  return component.control === "copyable" ? /* @__PURE__ */ jsx110(CopyableDynamicParagraph, { component }) : /* @__PURE__ */ jsx110(BasicDynamicParagraph, { component });
17519
17591
  }
17520
17592
  function BasicDynamicParagraph({ component }) {
17521
- return /* @__PURE__ */ jsxs38("p", { className: getTextAlignmentAndMargin2(component), children: [
17593
+ return /* @__PURE__ */ jsxs39("p", { className: getTextAlignmentAndMargin2(component), children: [
17522
17594
  " ",
17523
17595
  component.text,
17524
17596
  " "
@@ -17536,7 +17608,7 @@ function CopyableDynamicParagraph({ component }) {
17536
17608
  align: component.align,
17537
17609
  margin: "sm"
17538
17610
  })} form-control`;
17539
- return /* @__PURE__ */ jsxs38("div", { className: getTextAlignmentAndMargin2(component), children: [
17611
+ return /* @__PURE__ */ jsxs39("div", { className: getTextAlignmentAndMargin2(component), children: [
17540
17612
  /* @__PURE__ */ jsx110(
17541
17613
  "input",
17542
17614
  {
@@ -17555,8 +17627,8 @@ function noop4() {
17555
17627
  var DynamicParagraph_default = DynamicParagraph;
17556
17628
 
17557
17629
  // src/legacy/layout/review/DynamicReview.tsx
17558
- import { DefinitionList as DefinitionList3, Header as Header12 } from "@transferwise/components";
17559
- import { Fragment as Fragment21, jsx as jsx111, jsxs as jsxs39 } from "react/jsx-runtime";
17630
+ import { DefinitionList as DefinitionList3, Header as Header14 } from "@transferwise/components";
17631
+ import { Fragment as Fragment21, jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
17560
17632
  var getDefinitions = (orientation, review) => review.fields.map(({ label, value, help }, index) => ({
17561
17633
  key: String(index),
17562
17634
  title: label,
@@ -17564,11 +17636,11 @@ var getDefinitions = (orientation, review) => review.fields.map(({ label, value,
17564
17636
  }));
17565
17637
  var getFieldValue2 = (value, help, orientation) => {
17566
17638
  if (help) {
17567
- return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs39(Fragment21, { children: [
17639
+ return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs40(Fragment21, { children: [
17568
17640
  /* @__PURE__ */ jsx111(Help_default2, { help }),
17569
17641
  " ",
17570
17642
  value
17571
- ] }) : /* @__PURE__ */ jsxs39(Fragment21, { children: [
17643
+ ] }) : /* @__PURE__ */ jsxs40(Fragment21, { children: [
17572
17644
  value,
17573
17645
  " ",
17574
17646
  /* @__PURE__ */ jsx111(Help_default2, { help })
@@ -17608,8 +17680,8 @@ function DynamicReview(props) {
17608
17680
  const orientation = getDefinitionListLayout(review);
17609
17681
  const callToAction = review.callToAction ? getReviewAction2(review.callToAction.title, review.callToAction.action) : null;
17610
17682
  const legacyCallToAction = !callToAction && review.action ? getReviewAction2(review.action.title || "", review.action) : null;
17611
- return /* @__PURE__ */ jsxs39("div", { className: margin, children: [
17612
- review.title && /* @__PURE__ */ jsx111(Header12, { title: review.title, action: callToAction || legacyCallToAction || void 0 }),
17683
+ return /* @__PURE__ */ jsxs40("div", { className: margin, children: [
17684
+ review.title && /* @__PURE__ */ jsx111(Header14, { title: review.title, action: callToAction || legacyCallToAction || void 0 }),
17613
17685
  /* @__PURE__ */ jsx111("div", { className: margin, children: /* @__PURE__ */ jsx111(DefinitionList3, { layout: orientation, definitions: getDefinitions(orientation, review) }) })
17614
17686
  ] });
17615
17687
  }
@@ -17621,9 +17693,9 @@ import { Search as Search2 } from "@transferwise/icons";
17621
17693
 
17622
17694
  // src/legacy/layout/search/SearchInput.tsx
17623
17695
  import { Input as Input6 } from "@transferwise/components";
17624
- import { jsx as jsx112, jsxs as jsxs40 } from "react/jsx-runtime";
17696
+ import { jsx as jsx112, jsxs as jsxs41 } from "react/jsx-runtime";
17625
17697
  var SearchInput = ({ title, value, onFocus, onChange }) => {
17626
- return /* @__PURE__ */ jsxs40("label", { className: "control-label d-inline", children: [
17698
+ return /* @__PURE__ */ jsxs41("label", { className: "control-label d-inline", children: [
17627
17699
  title,
17628
17700
  /* @__PURE__ */ jsx112(
17629
17701
  Input6,
@@ -17641,7 +17713,7 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
17641
17713
  // src/legacy/layout/search/SearchResults.tsx
17642
17714
  import { NavigationOption as NavigationOption7, NavigationOptionsList as NavigationOptionsList4 } from "@transferwise/components";
17643
17715
  import { useIntl as useIntl20 } from "react-intl";
17644
- import { jsx as jsx113, jsxs as jsxs41 } from "react/jsx-runtime";
17716
+ import { jsx as jsx113, jsxs as jsxs42 } from "react/jsx-runtime";
17645
17717
  function SearchResults2({ results, emptyMessage, onSelect }) {
17646
17718
  if (results.length === 0) {
17647
17719
  return /* @__PURE__ */ jsx113("p", { className: "m-t-2", children: emptyMessage });
@@ -17661,7 +17733,7 @@ function SearchResults2({ results, emptyMessage, onSelect }) {
17661
17733
  }
17662
17734
  function ErrorResult2({ onRetrySearch }) {
17663
17735
  const intl = useIntl20();
17664
- return /* @__PURE__ */ jsxs41("p", { className: "m-t-2", children: [
17736
+ return /* @__PURE__ */ jsxs42("p", { className: "m-t-2", children: [
17665
17737
  intl.formatMessage(generic_error_messages_default.genericError),
17666
17738
  "\xA0",
17667
17739
  /* @__PURE__ */ jsx113(
@@ -17750,7 +17822,7 @@ var addQueryParameter2 = (url, key, value) => {
17750
17822
  // src/legacy/layout/search/DynamicSearch.tsx
17751
17823
  var import_classnames14 = __toESM(require_classnames());
17752
17824
  import { Markdown as Markdown8, Typeahead as Typeahead2 } from "@transferwise/components";
17753
- import { jsx as jsx114, jsxs as jsxs42 } from "react/jsx-runtime";
17825
+ import { jsx as jsx114, jsxs as jsxs43 } from "react/jsx-runtime";
17754
17826
  var DEBOUNCE_TIME2 = 400;
17755
17827
  function DynamicSearch({ component, onAction }) {
17756
17828
  const [query, setQuery] = useState24("");
@@ -17786,7 +17858,7 @@ function DynamicSearch({ component, onAction }) {
17786
17858
  void search(query);
17787
17859
  };
17788
17860
  if (control === "inline") {
17789
- return /* @__PURE__ */ jsx114("div", { className: (0, import_classnames14.default)(getMargin2(margin != null ? margin : "md"), "df-search-typeahead"), children: /* @__PURE__ */ jsxs42("label", { className: "control-label d-inline", children: [
17861
+ return /* @__PURE__ */ jsx114("div", { className: (0, import_classnames14.default)(getMargin2(margin != null ? margin : "md"), "df-search-typeahead"), children: /* @__PURE__ */ jsxs43("label", { className: "control-label d-inline", children: [
17790
17862
  title,
17791
17863
  /* @__PURE__ */ jsx114("div", { className: "m-t-1", children: /* @__PURE__ */ jsx114(
17792
17864
  Typeahead2,
@@ -17821,7 +17893,7 @@ function DynamicSearch({ component, onAction }) {
17821
17893
  ) })
17822
17894
  ] }) });
17823
17895
  }
17824
- return /* @__PURE__ */ jsxs42("div", { className: getMargin2(margin != null ? margin : "md"), children: [
17896
+ return /* @__PURE__ */ jsxs43("div", { className: getMargin2(margin != null ? margin : "md"), children: [
17825
17897
  /* @__PURE__ */ jsx114(SearchInput, { title, value: query, onChange, onFocus: onSearchStart }),
17826
17898
  status === "loading" && /* @__PURE__ */ jsx114(DynamicLoadingIndicator_default, { component: { type: "loading-indicator", size: "sm" } }),
17827
17899
  status === "error" && /* @__PURE__ */ jsx114(ErrorResult2, { onRetrySearch }),
@@ -17859,12 +17931,12 @@ var DynamicSearch_default = DynamicSearch;
17859
17931
  // src/legacy/layout/modal/DynamicModal.tsx
17860
17932
  import { Button as Button9, Modal as Modal4 } from "@transferwise/components";
17861
17933
  import { useState as useState25 } from "react";
17862
- import { jsx as jsx115, jsxs as jsxs43 } from "react/jsx-runtime";
17934
+ import { jsx as jsx115, jsxs as jsxs44 } from "react/jsx-runtime";
17863
17935
  function DynamicModal(props) {
17864
17936
  const [visible, isVisible] = useState25(false);
17865
17937
  const { component, onAction } = props;
17866
17938
  const { margin = "md" } = component;
17867
- return /* @__PURE__ */ jsxs43("div", { className: getTextAlignmentAndMargin2({ margin }), children: [
17939
+ return /* @__PURE__ */ jsxs44("div", { className: getTextAlignmentAndMargin2({ margin }), children: [
17868
17940
  /* @__PURE__ */ jsx115(Button9, { priority: "tertiary", block: true, onClick: () => isVisible(true), children: component.trigger.title }),
17869
17941
  /* @__PURE__ */ jsx115(
17870
17942
  Modal4,
@@ -17890,7 +17962,7 @@ function DynamicModal(props) {
17890
17962
  var DynamicModal_default = DynamicModal;
17891
17963
 
17892
17964
  // src/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.tsx
17893
- import { Fragment as Fragment22, jsx as jsx116, jsxs as jsxs44 } from "react/jsx-runtime";
17965
+ import { Fragment as Fragment22, jsx as jsx116, jsxs as jsxs45 } from "react/jsx-runtime";
17894
17966
  var isNullish3 = (value) => isNull3(value) || isUndefined3(value);
17895
17967
  var getDefaultValue = (schema) => {
17896
17968
  return schema.type === "boolean" && isNullish3(schema.default) ? false : schema.default;
@@ -17966,10 +18038,10 @@ var BasicTypeSchema = (props) => {
17966
18038
  const showLabel = props.schema.format !== "file" && props.schema.type !== "boolean";
17967
18039
  const schemaHelp = props.schema.help;
17968
18040
  const feedbackId = `${id}-feedback`;
17969
- return !isHidden ? /* @__PURE__ */ jsxs44(Fragment22, { children: [
18041
+ return !isHidden ? /* @__PURE__ */ jsxs45(Fragment22, { children: [
17970
18042
  props.schema.alert && /* @__PURE__ */ jsx116(DynamicAlert_default, { component: props.schema.alert }),
17971
- /* @__PURE__ */ jsxs44("div", { className: (0, import_classnames15.default)(formGroupClasses), children: [
17972
- showLabel && /* @__PURE__ */ jsxs44("div", { className: "d-inline-block m-b-1", children: [
18043
+ /* @__PURE__ */ jsxs45("div", { className: (0, import_classnames15.default)(formGroupClasses), children: [
18044
+ showLabel && /* @__PURE__ */ jsxs45("div", { className: "d-inline-block m-b-1", children: [
17973
18045
  /* @__PURE__ */ jsx116("label", { className: "control-label d-inline", htmlFor: id, children: props.schema.title }),
17974
18046
  !!schemaHelp && /* @__PURE__ */ jsx116(Help_default2, { help: schemaHelp })
17975
18047
  ] }),
@@ -18422,14 +18494,14 @@ var CameraCapture_messages_default = defineMessages18({
18422
18494
  // src/common/cameraCapture/components/bottomBar/BottomBar.tsx
18423
18495
  import { Button as Button10, ControlType, Priority, Size as Size3 } from "@transferwise/components";
18424
18496
  import { useIntl as useIntl23 } from "react-intl";
18425
- import { jsx as jsx119, jsxs as jsxs45 } from "react/jsx-runtime";
18497
+ import { jsx as jsx119, jsxs as jsxs46 } from "react/jsx-runtime";
18426
18498
  var CaptureBottomBar = ({ onCapture }) => /* @__PURE__ */ jsx119("div", { className: "bottom-bar", children: /* @__PURE__ */ jsx119(CaptureButton, { onClick: onCapture }) });
18427
18499
  var ReviewBottomBar = ({
18428
18500
  onSubmit,
18429
18501
  onRetry
18430
18502
  }) => {
18431
18503
  const intl = useIntl23();
18432
- return /* @__PURE__ */ jsx119("div", { className: "bottom-bar p-x-2", children: /* @__PURE__ */ jsx119("div", { className: "row", children: /* @__PURE__ */ jsxs45("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [
18504
+ return /* @__PURE__ */ jsx119("div", { className: "bottom-bar p-x-2", children: /* @__PURE__ */ jsx119("div", { className: "row", children: /* @__PURE__ */ jsxs46("div", { className: "col-xs-12 col-md-6 col-md-offset-3", children: [
18433
18505
  /* @__PURE__ */ jsx119(
18434
18506
  Button10,
18435
18507
  {
@@ -18480,10 +18552,10 @@ var OrientationLockOverlay_messages_default = defineMessages19({
18480
18552
  });
18481
18553
 
18482
18554
  // src/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.tsx
18483
- import { jsx as jsx120, jsxs as jsxs46 } from "react/jsx-runtime";
18555
+ import { jsx as jsx120, jsxs as jsxs47 } from "react/jsx-runtime";
18484
18556
  function OrientationLockOverlay() {
18485
18557
  const intl = useIntl24();
18486
- return /* @__PURE__ */ jsxs46("div", { className: "orientation-lock-overlay", children: [
18558
+ return /* @__PURE__ */ jsxs47("div", { className: "orientation-lock-overlay", children: [
18487
18559
  /* @__PURE__ */ jsx120(
18488
18560
  "img",
18489
18561
  {
@@ -18669,7 +18741,7 @@ var getVideoConstraints = async (dir) => {
18669
18741
 
18670
18742
  // src/common/cameraCapture/overlay/Overlay.tsx
18671
18743
  import { useEffect as useEffect23, useRef as useRef7 } from "react";
18672
- import { Fragment as Fragment23, jsx as jsx121, jsxs as jsxs47 } from "react/jsx-runtime";
18744
+ import { Fragment as Fragment23, jsx as jsx121, jsxs as jsxs48 } from "react/jsx-runtime";
18673
18745
  var captureButtonHeight = 92;
18674
18746
  var reviewButtonsHeight = 120;
18675
18747
  var imageHeight = 40;
@@ -18691,7 +18763,7 @@ function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstru
18691
18763
  return () => window.removeEventListener("resize", listener);
18692
18764
  });
18693
18765
  let helperBoxHeight = (imageUrl ? imageHeight : 0) + (title ? titleHeight : 0) + (instructions ? instructionsHeight : 0);
18694
- let helperBox = /* @__PURE__ */ jsxs47(Fragment23, { children: [
18766
+ let helperBox = /* @__PURE__ */ jsxs48(Fragment23, { children: [
18695
18767
  imageUrl && /* @__PURE__ */ jsx121("img", { className: "camera-capture-img", src: imageUrl, alt: "" }),
18696
18768
  title && /* @__PURE__ */ jsx121("h4", { className: "camera-capture-title", children: title }),
18697
18769
  instructions && /* @__PURE__ */ jsx121("small", { className: "camera-capture-instructions", children: instructions })
@@ -18720,8 +18792,8 @@ function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstru
18720
18792
  width: "90%"
18721
18793
  }
18722
18794
  };
18723
- return /* @__PURE__ */ jsxs47("svg", { ref: svgReference, xmlns: "http://www.w3.org/2000/svg", children: [
18724
- /* @__PURE__ */ jsx121("defs", { children: /* @__PURE__ */ jsxs47("mask", { id: "mask", children: [
18795
+ return /* @__PURE__ */ jsxs48("svg", { ref: svgReference, xmlns: "http://www.w3.org/2000/svg", children: [
18796
+ /* @__PURE__ */ jsx121("defs", { children: /* @__PURE__ */ jsxs48("mask", { id: "mask", children: [
18725
18797
  /* @__PURE__ */ jsx121("rect", { width: "100%", height: "100%", fill: "#fff" }),
18726
18798
  /* @__PURE__ */ jsx121("image", __spreadValues({ href: overlay }, framePosition))
18727
18799
  ] }) }),
@@ -18734,9 +18806,9 @@ var Overlay_default = Overlay;
18734
18806
 
18735
18807
  // src/common/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.tsx
18736
18808
  import { Button as Button11 } from "@transferwise/components";
18737
- import { jsx as jsx122, jsxs as jsxs48 } from "react/jsx-runtime";
18809
+ import { jsx as jsx122, jsxs as jsxs49 } from "react/jsx-runtime";
18738
18810
  function CameraErrorScreen({ title, description, actionButton, onAction }) {
18739
- return /* @__PURE__ */ jsx122("div", { className: "container p-t-5", children: /* @__PURE__ */ jsx122("div", { className: "row", children: /* @__PURE__ */ jsxs48("div", { className: "col-md-6 col-md-offset-3", children: [
18811
+ return /* @__PURE__ */ jsx122("div", { className: "container p-t-5", children: /* @__PURE__ */ jsx122("div", { className: "row", children: /* @__PURE__ */ jsxs49("div", { className: "col-md-6 col-md-offset-3", children: [
18740
18812
  /* @__PURE__ */ jsx122("h2", { className: "text-xs-center m-b-3", children: title }),
18741
18813
  /* @__PURE__ */ jsx122("p", { className: "text-xs-center m-b-5", children: description }),
18742
18814
  onAction && actionButton && /* @__PURE__ */ jsx122(Button11, { block: true, onClick: onAction, children: actionButton })
@@ -18745,7 +18817,7 @@ function CameraErrorScreen({ title, description, actionButton, onAction }) {
18745
18817
  var CameraErrorScreen_default = CameraErrorScreen;
18746
18818
 
18747
18819
  // src/common/cameraCapture/CameraCapture.tsx
18748
- import { jsx as jsx123, jsxs as jsxs49 } from "react/jsx-runtime";
18820
+ import { jsx as jsx123, jsxs as jsxs50 } from "react/jsx-runtime";
18749
18821
  function CameraCapture({
18750
18822
  direction = "back",
18751
18823
  overlay = "",
@@ -18853,7 +18925,7 @@ function CameraCapture({
18853
18925
  exitFullScreen();
18854
18926
  }
18855
18927
  }, [mode, exitFullScreen]);
18856
- const captureScreen = /* @__PURE__ */ jsxs49("div", { className: "camera-capture", children: [
18928
+ const captureScreen = /* @__PURE__ */ jsxs50("div", { className: "camera-capture", children: [
18857
18929
  videoConstraints && /* @__PURE__ */ jsx123(
18858
18930
  Webcam,
18859
18931
  {
@@ -18885,7 +18957,7 @@ function CameraCapture({
18885
18957
  }
18886
18958
  )
18887
18959
  ] });
18888
- const reviewScreen = /* @__PURE__ */ jsxs49("div", { className: "camera-capture", children: [
18960
+ const reviewScreen = /* @__PURE__ */ jsxs50("div", { className: "camera-capture", children: [
18889
18961
  /* @__PURE__ */ jsx123("img", { className: "review-image", src: reviewImage == null ? void 0 : reviewImage.source, alt: "" }),
18890
18962
  /* @__PURE__ */ jsx123(
18891
18963
  Overlay_default,
@@ -18899,7 +18971,7 @@ function CameraCapture({
18899
18971
  ),
18900
18972
  /* @__PURE__ */ jsx123(ReviewBottomBar, { onSubmit: handleReviewSubmit, onRetry: handleReviewRetry })
18901
18973
  ] });
18902
- return /* @__PURE__ */ jsxs49("section", { children: [
18974
+ return /* @__PURE__ */ jsxs50("section", { children: [
18903
18975
  mode === "CAPTURE" /* CAPTURE */ && captureScreen,
18904
18976
  mode === "REVIEW" /* REVIEW */ && reviewScreen,
18905
18977
  mode === "ERROR" /* ERROR */ && cameraError && /* @__PURE__ */ jsx123(CameraErrorScreen_default, __spreadValues({}, cameraError))
@@ -19095,9 +19167,9 @@ function getOrigin2(url) {
19095
19167
  // src/legacy/dynamicFlow/BackButton.tsx
19096
19168
  import { Avatar as Avatar7 } from "@transferwise/components";
19097
19169
  import { ArrowLeft as ArrowLeft2 } from "@transferwise/icons";
19098
- import { jsx as jsx126, jsxs as jsxs50 } from "react/jsx-runtime";
19170
+ import { jsx as jsx126, jsxs as jsxs51 } from "react/jsx-runtime";
19099
19171
  function BackButton2({ title, action, onAction }) {
19100
- return /* @__PURE__ */ jsxs50(
19172
+ return /* @__PURE__ */ jsxs51(
19101
19173
  "a",
19102
19174
  {
19103
19175
  href: "/",
@@ -19117,7 +19189,7 @@ function BackButton2({ title, action, onAction }) {
19117
19189
  var BackButton_default2 = BackButton2;
19118
19190
 
19119
19191
  // src/legacy/dynamicFlow/DynamicFlowStep.tsx
19120
- import { Fragment as Fragment24, jsx as jsx127, jsxs as jsxs51 } from "react/jsx-runtime";
19192
+ import { Fragment as Fragment24, jsx as jsx127, jsxs as jsxs52 } from "react/jsx-runtime";
19121
19193
  function DynamicFlowStep(props) {
19122
19194
  var _a, _b, _c;
19123
19195
  const { step, globalError, onAction } = props;
@@ -19136,7 +19208,7 @@ function DynamicFlowStep(props) {
19136
19208
  if (isCameraStep(step)) {
19137
19209
  return /* @__PURE__ */ jsx127(CameraStep_default, __spreadProps(__spreadValues({}, props), { step }));
19138
19210
  }
19139
- return /* @__PURE__ */ jsxs51(Fragment24, { children: [
19211
+ return /* @__PURE__ */ jsxs52(Fragment24, { children: [
19140
19212
  backButton && /* @__PURE__ */ jsx127(BackButton_default2, __spreadProps(__spreadValues({}, backButton), { onAction })),
19141
19213
  globalError ? /* @__PURE__ */ jsx127(DynamicAlert_default, { component: { context: "negative", markdown: globalError, margin: "lg" } }) : null,
19142
19214
  /* @__PURE__ */ jsx127(LayoutStep_default, __spreadProps(__spreadValues({}, props), { stepSpecification: step }))
@@ -19660,7 +19732,7 @@ var DynamicFlowComponent = ({
19660
19732
  await performAction(action);
19661
19733
  }
19662
19734
  };
19663
- return /* @__PURE__ */ jsx129(LogProvider, { flowId, stepId: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), onLog, children: /* @__PURE__ */ jsx129(EventsContextProvider, { metadata: analyticsMetadata, onEvent, children: /* @__PURE__ */ jsx129(DynamicFlowProvider, { loading: isLoading || isDebouncing, children: /* @__PURE__ */ jsx129(HttpClientProvider, { httpClient, children: /* @__PURE__ */ jsx129(FeatureContextProvider, { features, children: loader !== null ? loader : /* @__PURE__ */ jsx129(
19735
+ return /* @__PURE__ */ jsx129(LogProvider, { flowId, stepId: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), onLog, children: /* @__PURE__ */ jsx129(EventsContextProvider, { metadata: analyticsMetadata, onEvent, children: /* @__PURE__ */ jsx129(DynamicFlowProvider, { loading: isLoading || isDebouncing, children: /* @__PURE__ */ jsx129(HttpClientProvider, { httpClient, children: /* @__PURE__ */ jsx129(FeatureContextProvider, { features, children: loader !== null ? loader : /* @__PURE__ */ jsx129("div", { id: (step == null ? void 0 : step.id) || (step == null ? void 0 : step.key), className: "dynamic-flow-legacy", children: /* @__PURE__ */ jsx129(
19664
19736
  DynamicFlowStep,
19665
19737
  {
19666
19738
  step,
@@ -19674,7 +19746,7 @@ var DynamicFlowComponent = ({
19674
19746
  },
19675
19747
  onModelChange
19676
19748
  }
19677
- ) }) }) }) }) });
19749
+ ) }) }) }) }) }) });
19678
19750
  };
19679
19751
  function DynamicFlow(props) {
19680
19752
  return /* @__PURE__ */ jsx129(ErrorBoundary_default, { onError: props.onError, children: /* @__PURE__ */ jsx129(DynamicFlowComponent, __spreadValues({}, props)) });