@wise/dynamic-flow-client 3.28.4 → 3.28.6

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.js CHANGED
@@ -144,10 +144,10 @@ var init_clsx = __esm({
144
144
  }
145
145
  });
146
146
 
147
- // ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.20.0_@types+react@18.3.12_react-dom@18.3.1_reac_ybxnuulsvhsfhz3tk3mxo6vlti/node_modules/@wise/art/dist/index-a91e5689.esm.js
147
+ // ../../node_modules/.pnpm/@wise+art@2.17.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.16_react-dom@18.3.1_reac_4hsljgguo7de2wpoipdhgf4kzi/node_modules/@wise/art/dist/index-213daaa3.esm.js
148
148
  var import_react7, import_jsx_runtime17, unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
149
- var init_index_a91e5689_esm = __esm({
150
- "../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.20.0_@types+react@18.3.12_react-dom@18.3.1_reac_ybxnuulsvhsfhz3tk3mxo6vlti/node_modules/@wise/art/dist/index-a91e5689.esm.js"() {
149
+ var init_index_213daaa3_esm = __esm({
150
+ "../../node_modules/.pnpm/@wise+art@2.17.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.16_react-dom@18.3.1_reac_4hsljgguo7de2wpoipdhgf4kzi/node_modules/@wise/art/dist/index-213daaa3.esm.js"() {
151
151
  "use strict";
152
152
  init_clsx();
153
153
  import_react7 = require("react");
@@ -167,7 +167,7 @@ var init_index_a91e5689_esm = __esm({
167
167
  const name = fallback !== "unknown" ? `${code.toLowerCase()}${fallback == null && detailed ? "-detailed" : ""}` : unknownFlagName;
168
168
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("img", {
169
169
  className: clsx(`wds-flag wds-flag-${name}`, className),
170
- src: `https://wise.com/web-art/assets/flags/${name}.svg`,
170
+ src: false ? `${name}.svg` : `https://wise.com/web-art/assets/flags/${name}.svg`,
171
171
  loading,
172
172
  alt: "",
173
173
  width: intrinsicSize,
@@ -2286,6 +2286,9 @@ var quotelessJson = (obj) => {
2286
2286
  return json.replace(/"([^"]+)":/g, "$1:");
2287
2287
  };
2288
2288
  var ZodError = class _ZodError extends Error {
2289
+ get errors() {
2290
+ return this.issues;
2291
+ }
2289
2292
  constructor(issues) {
2290
2293
  super();
2291
2294
  this.issues = [];
@@ -2304,9 +2307,6 @@ var ZodError = class _ZodError extends Error {
2304
2307
  this.name = "ZodError";
2305
2308
  this.issues = issues;
2306
2309
  }
2307
- get errors() {
2308
- return this.issues;
2309
- }
2310
2310
  format(_mapper) {
2311
2311
  const mapper = _mapper || function(issue) {
2312
2312
  return issue.message;
@@ -2514,8 +2514,11 @@ function addIssueToContext(ctx, issueData) {
2514
2514
  path: ctx.path,
2515
2515
  errorMaps: [
2516
2516
  ctx.common.contextualErrorMap,
2517
+ // contextual error map is first priority
2517
2518
  ctx.schemaErrorMap,
2519
+ // then schema-bound map if available
2518
2520
  overrideMap,
2521
+ // then global override map
2519
2522
  overrideMap === errorMap ? void 0 : errorMap
2520
2523
  // then global default map
2521
2524
  ].filter((x) => !!x)
@@ -2666,34 +2669,6 @@ function processCreateParams(params) {
2666
2669
  return { errorMap: customMap, description };
2667
2670
  }
2668
2671
  var ZodType = class {
2669
- constructor(def) {
2670
- this.spa = this.safeParseAsync;
2671
- this._def = def;
2672
- this.parse = this.parse.bind(this);
2673
- this.safeParse = this.safeParse.bind(this);
2674
- this.parseAsync = this.parseAsync.bind(this);
2675
- this.safeParseAsync = this.safeParseAsync.bind(this);
2676
- this.spa = this.spa.bind(this);
2677
- this.refine = this.refine.bind(this);
2678
- this.refinement = this.refinement.bind(this);
2679
- this.superRefine = this.superRefine.bind(this);
2680
- this.optional = this.optional.bind(this);
2681
- this.nullable = this.nullable.bind(this);
2682
- this.nullish = this.nullish.bind(this);
2683
- this.array = this.array.bind(this);
2684
- this.promise = this.promise.bind(this);
2685
- this.or = this.or.bind(this);
2686
- this.and = this.and.bind(this);
2687
- this.transform = this.transform.bind(this);
2688
- this.brand = this.brand.bind(this);
2689
- this.default = this.default.bind(this);
2690
- this.catch = this.catch.bind(this);
2691
- this.describe = this.describe.bind(this);
2692
- this.pipe = this.pipe.bind(this);
2693
- this.readonly = this.readonly.bind(this);
2694
- this.isNullable = this.isNullable.bind(this);
2695
- this.isOptional = this.isOptional.bind(this);
2696
- }
2697
2672
  get description() {
2698
2673
  return this._def.description;
2699
2674
  }
@@ -2757,6 +2732,43 @@ var ZodType = class {
2757
2732
  const result = this._parseSync({ data, path: ctx.path, parent: ctx });
2758
2733
  return handleResult(ctx, result);
2759
2734
  }
2735
+ "~validate"(data) {
2736
+ var _a, _b;
2737
+ const ctx = {
2738
+ common: {
2739
+ issues: [],
2740
+ async: !!this["~standard"].async
2741
+ },
2742
+ path: [],
2743
+ schemaErrorMap: this._def.errorMap,
2744
+ parent: null,
2745
+ data,
2746
+ parsedType: getParsedType(data)
2747
+ };
2748
+ if (!this["~standard"].async) {
2749
+ try {
2750
+ const result = this._parseSync({ data, path: [], parent: ctx });
2751
+ return isValid(result) ? {
2752
+ value: result.value
2753
+ } : {
2754
+ issues: ctx.common.issues
2755
+ };
2756
+ } catch (err) {
2757
+ if ((_b = (_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) {
2758
+ this["~standard"].async = true;
2759
+ }
2760
+ ctx.common = {
2761
+ issues: [],
2762
+ async: true
2763
+ };
2764
+ }
2765
+ }
2766
+ return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {
2767
+ value: result.value
2768
+ } : {
2769
+ issues: ctx.common.issues
2770
+ });
2771
+ }
2760
2772
  async parseAsync(data, params) {
2761
2773
  const result = await this.safeParseAsync(data, params);
2762
2774
  if (result.success)
@@ -2833,6 +2845,39 @@ var ZodType = class {
2833
2845
  superRefine(refinement) {
2834
2846
  return this._refinement(refinement);
2835
2847
  }
2848
+ constructor(def) {
2849
+ this.spa = this.safeParseAsync;
2850
+ this._def = def;
2851
+ this.parse = this.parse.bind(this);
2852
+ this.safeParse = this.safeParse.bind(this);
2853
+ this.parseAsync = this.parseAsync.bind(this);
2854
+ this.safeParseAsync = this.safeParseAsync.bind(this);
2855
+ this.spa = this.spa.bind(this);
2856
+ this.refine = this.refine.bind(this);
2857
+ this.refinement = this.refinement.bind(this);
2858
+ this.superRefine = this.superRefine.bind(this);
2859
+ this.optional = this.optional.bind(this);
2860
+ this.nullable = this.nullable.bind(this);
2861
+ this.nullish = this.nullish.bind(this);
2862
+ this.array = this.array.bind(this);
2863
+ this.promise = this.promise.bind(this);
2864
+ this.or = this.or.bind(this);
2865
+ this.and = this.and.bind(this);
2866
+ this.transform = this.transform.bind(this);
2867
+ this.brand = this.brand.bind(this);
2868
+ this.default = this.default.bind(this);
2869
+ this.catch = this.catch.bind(this);
2870
+ this.describe = this.describe.bind(this);
2871
+ this.pipe = this.pipe.bind(this);
2872
+ this.readonly = this.readonly.bind(this);
2873
+ this.isNullable = this.isNullable.bind(this);
2874
+ this.isOptional = this.isOptional.bind(this);
2875
+ this["~standard"] = {
2876
+ version: 1,
2877
+ vendor: "zod",
2878
+ validate: (data) => this["~validate"](data)
2879
+ };
2880
+ }
2836
2881
  optional() {
2837
2882
  return ZodOptional.create(this, this._def);
2838
2883
  }
@@ -2843,7 +2888,7 @@ var ZodType = class {
2843
2888
  return this.nullable().optional();
2844
2889
  }
2845
2890
  array() {
2846
- return ZodArray.create(this, this._def);
2891
+ return ZodArray.create(this);
2847
2892
  }
2848
2893
  promise() {
2849
2894
  return ZodPromise.create(this, this._def);
@@ -2904,16 +2949,20 @@ var ZodType = class {
2904
2949
  };
2905
2950
  var cuidRegex = /^c[^\s-]{8,}$/i;
2906
2951
  var cuid2Regex = /^[0-9a-z]+$/;
2907
- var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;
2952
+ var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
2908
2953
  var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
2909
2954
  var nanoidRegex = /^[a-z0-9_-]{21}$/i;
2955
+ var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
2910
2956
  var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
2911
2957
  var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
2912
2958
  var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
2913
2959
  var emojiRegex;
2914
2960
  var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
2915
- var ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
2961
+ var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
2962
+ var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
2963
+ var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
2916
2964
  var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
2965
+ var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
2917
2966
  var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
2918
2967
  var dateRegex = new RegExp(`^${dateRegexSource}$`);
2919
2968
  function timeRegexSource(args) {
@@ -2946,6 +2995,33 @@ function isValidIP(ip, version) {
2946
2995
  }
2947
2996
  return false;
2948
2997
  }
2998
+ function isValidJWT(jwt, alg) {
2999
+ if (!jwtRegex.test(jwt))
3000
+ return false;
3001
+ try {
3002
+ const [header] = jwt.split(".");
3003
+ const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
3004
+ const decoded = JSON.parse(atob(base64));
3005
+ if (typeof decoded !== "object" || decoded === null)
3006
+ return false;
3007
+ if (!decoded.typ || !decoded.alg)
3008
+ return false;
3009
+ if (alg && decoded.alg !== alg)
3010
+ return false;
3011
+ return true;
3012
+ } catch (_a) {
3013
+ return false;
3014
+ }
3015
+ }
3016
+ function isValidCidr(ip, version) {
3017
+ if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
3018
+ return true;
3019
+ }
3020
+ if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
3021
+ return true;
3022
+ }
3023
+ return false;
3024
+ }
2949
3025
  var ZodString = class _ZodString extends ZodType {
2950
3026
  _parse(input) {
2951
3027
  if (this._def.coerce) {
@@ -3202,6 +3278,26 @@ var ZodString = class _ZodString extends ZodType {
3202
3278
  });
3203
3279
  status.dirty();
3204
3280
  }
3281
+ } else if (check.kind === "jwt") {
3282
+ if (!isValidJWT(input.data, check.alg)) {
3283
+ ctx = this._getOrReturnCtx(input, ctx);
3284
+ addIssueToContext(ctx, {
3285
+ validation: "jwt",
3286
+ code: ZodIssueCode.invalid_string,
3287
+ message: check.message
3288
+ });
3289
+ status.dirty();
3290
+ }
3291
+ } else if (check.kind === "cidr") {
3292
+ if (!isValidCidr(input.data, check.version)) {
3293
+ ctx = this._getOrReturnCtx(input, ctx);
3294
+ addIssueToContext(ctx, {
3295
+ validation: "cidr",
3296
+ code: ZodIssueCode.invalid_string,
3297
+ message: check.message
3298
+ });
3299
+ status.dirty();
3300
+ }
3205
3301
  } else if (check.kind === "base64") {
3206
3302
  if (!base64Regex.test(input.data)) {
3207
3303
  ctx = this._getOrReturnCtx(input, ctx);
@@ -3212,6 +3308,16 @@ var ZodString = class _ZodString extends ZodType {
3212
3308
  });
3213
3309
  status.dirty();
3214
3310
  }
3311
+ } else if (check.kind === "base64url") {
3312
+ if (!base64urlRegex.test(input.data)) {
3313
+ ctx = this._getOrReturnCtx(input, ctx);
3314
+ addIssueToContext(ctx, {
3315
+ validation: "base64url",
3316
+ code: ZodIssueCode.invalid_string,
3317
+ message: check.message
3318
+ });
3319
+ status.dirty();
3320
+ }
3215
3321
  } else {
3216
3322
  util.assertNever(check);
3217
3323
  }
@@ -3256,9 +3362,20 @@ var ZodString = class _ZodString extends ZodType {
3256
3362
  base64(message) {
3257
3363
  return this._addCheck(__spreadValues2({ kind: "base64" }, errorUtil.errToObj(message)));
3258
3364
  }
3365
+ base64url(message) {
3366
+ return this._addCheck(__spreadValues2({
3367
+ kind: "base64url"
3368
+ }, errorUtil.errToObj(message)));
3369
+ }
3370
+ jwt(options) {
3371
+ return this._addCheck(__spreadValues2({ kind: "jwt" }, errorUtil.errToObj(options)));
3372
+ }
3259
3373
  ip(options) {
3260
3374
  return this._addCheck(__spreadValues2({ kind: "ip" }, errorUtil.errToObj(options)));
3261
3375
  }
3376
+ cidr(options) {
3377
+ return this._addCheck(__spreadValues2({ kind: "cidr" }, errorUtil.errToObj(options)));
3378
+ }
3262
3379
  datetime(options) {
3263
3380
  var _a, _b;
3264
3381
  if (typeof options === "string") {
@@ -3340,8 +3457,7 @@ var ZodString = class _ZodString extends ZodType {
3340
3457
  }, errorUtil.errToObj(message)));
3341
3458
  }
3342
3459
  /**
3343
- * @deprecated Use z.string().min(1) instead.
3344
- * @see {@link ZodString.min}
3460
+ * Equivalent to `.min(1)`
3345
3461
  */
3346
3462
  nonempty(message) {
3347
3463
  return this.min(1, errorUtil.errToObj(message));
@@ -3400,9 +3516,15 @@ var ZodString = class _ZodString extends ZodType {
3400
3516
  get isIP() {
3401
3517
  return !!this._def.checks.find((ch) => ch.kind === "ip");
3402
3518
  }
3519
+ get isCIDR() {
3520
+ return !!this._def.checks.find((ch) => ch.kind === "cidr");
3521
+ }
3403
3522
  get isBase64() {
3404
3523
  return !!this._def.checks.find((ch) => ch.kind === "base64");
3405
3524
  }
3525
+ get isBase64url() {
3526
+ return !!this._def.checks.find((ch) => ch.kind === "base64url");
3527
+ }
3406
3528
  get minLength() {
3407
3529
  let min = null;
3408
3530
  for (const ch of this._def.checks) {
@@ -3676,17 +3798,15 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
3676
3798
  }
3677
3799
  _parse(input) {
3678
3800
  if (this._def.coerce) {
3679
- input.data = BigInt(input.data);
3801
+ try {
3802
+ input.data = BigInt(input.data);
3803
+ } catch (_a) {
3804
+ return this._getInvalidInput(input);
3805
+ }
3680
3806
  }
3681
3807
  const parsedType = this._getType(input);
3682
3808
  if (parsedType !== ZodParsedType.bigint) {
3683
- const ctx2 = this._getOrReturnCtx(input);
3684
- addIssueToContext(ctx2, {
3685
- code: ZodIssueCode.invalid_type,
3686
- expected: ZodParsedType.bigint,
3687
- received: ctx2.parsedType
3688
- });
3689
- return INVALID;
3809
+ return this._getInvalidInput(input);
3690
3810
  }
3691
3811
  let ctx = void 0;
3692
3812
  const status = new ParseStatus();
@@ -3733,6 +3853,15 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
3733
3853
  }
3734
3854
  return { status: status.value, value: input.data };
3735
3855
  }
3856
+ _getInvalidInput(input) {
3857
+ const ctx = this._getOrReturnCtx(input);
3858
+ addIssueToContext(ctx, {
3859
+ code: ZodIssueCode.invalid_type,
3860
+ expected: ZodParsedType.bigint,
3861
+ received: ctx.parsedType
3862
+ });
3863
+ return INVALID;
3864
+ }
3736
3865
  gte(value, message) {
3737
3866
  return this.setLimit("min", value, true, errorUtil.toString(message));
3738
3867
  }
@@ -10399,7 +10528,7 @@ var createSearchComponent = (searchProps, performSearch, onAction, updateCompone
10399
10528
  draft.query = query;
10400
10529
  draft.isLoading = true;
10401
10530
  });
10402
- debouncedSearch(query);
10531
+ debouncedSearch(query.trim());
10403
10532
  };
10404
10533
  return {
10405
10534
  type: "search",
@@ -11879,8 +12008,8 @@ var DateInputRenderer_default = DateInputRenderer;
11879
12008
  // ../renderers/src/DecisionRenderer.tsx
11880
12009
  var import_components9 = require("@transferwise/components");
11881
12010
 
11882
- // ../../node_modules/.pnpm/@wise+art@2.16.3_@transferwise+neptune-css@14.20.0_@types+react@18.3.12_react-dom@18.3.1_reac_ybxnuulsvhsfhz3tk3mxo6vlti/node_modules/@wise/art/dist/index.esm.js
11883
- init_index_a91e5689_esm();
12011
+ // ../../node_modules/.pnpm/@wise+art@2.17.0_@transferwise+neptune-css@14.20.1_@types+react@18.3.16_react-dom@18.3.1_reac_4hsljgguo7de2wpoipdhgf4kzi/node_modules/@wise/art/dist/index.esm.js
12012
+ init_index_213daaa3_esm();
11884
12013
  init_clsx();
11885
12014
  var import_react8 = require("react");
11886
12015
  var import_jsx_runtime18 = require("react/jsx-runtime");
@@ -18980,7 +19109,7 @@ function DynamicSearch({ component, onAction }) {
18980
19109
  };
18981
19110
  const onChange = (value) => {
18982
19111
  setQuery(value);
18983
- debouncedSearch(value);
19112
+ debouncedSearch(value.trim());
18984
19113
  };
18985
19114
  const onResultSelected = ({ type, value }) => {
18986
19115
  if (type === "action") {
@@ -18995,7 +19124,7 @@ function DynamicSearch({ component, onAction }) {
18995
19124
  setQuery(value.query);
18996
19125
  const { url: url2, method: method2, param: param2, query: query2 } = value;
18997
19126
  onEvent("Dynamic Flow - Search Result Selected", { type: "search" });
18998
- void search(query2, { url: url2, method: method2, param: param2 });
19127
+ void search(query2.trim(), { url: url2, method: method2, param: param2 });
18999
19128
  }
19000
19129
  };
19001
19130
  const onRetrySearch = () => {