@wise/dynamic-flow-client-internal 5.18.1 → 5.19.3

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.
@@ -13,7 +13,7 @@
13
13
  "df.wise.ControlFeedback.minimum": "Zadejte číslo, které je {minimum} nebo vyšší.",
14
14
  "df.wise.ControlFeedback.minimumDate": "Zadejte datum, které je {minimum} nebo potom.",
15
15
  "df.wise.ControlFeedback.pattern": "Zadejte to prosím ve správném formátu.",
16
- "df.wise.ControlFeedback.patternDate": "Zadejte prosím datum ve správném formátu.",
16
+ "df.wise.ControlFeedback.patternDate": "Zadejte datum ve správném formátu.",
17
17
  "df.wise.ControlFeedback.required": "Vyplňte prosím toto pole.",
18
18
  "df.wise.ControlFeedback.type": "Nesprávný typ",
19
19
  "df.wise.CopyFeedback.copy": "Zkopírováno do schránky",
@@ -13,7 +13,7 @@
13
13
  "df.wise.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.",
14
14
  "df.wise.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.",
15
15
  "df.wise.ControlFeedback.pattern": "Please enter this in the correct format.",
16
- "df.wise.ControlFeedback.patternDate": "Please enter a date in the corrrect format.",
16
+ "df.wise.ControlFeedback.patternDate": "Please enter a date in the correct format.",
17
17
  "df.wise.ControlFeedback.required": "Please fill out this field.",
18
18
  "df.wise.ControlFeedback.type": "Incorrect type",
19
19
  "df.wise.CopyFeedback.copy": "Copied to clipboard",
@@ -13,7 +13,7 @@
13
13
  "df.wise.ControlFeedback.minimum": "Introduce una cifra igual o inferior a {minimum}.",
14
14
  "df.wise.ControlFeedback.minimumDate": "Introduce una fecha que sea igual o posterior al {minimum}.",
15
15
  "df.wise.ControlFeedback.pattern": "Utiliza el formato correcto.",
16
- "df.wise.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.",
16
+ "df.wise.ControlFeedback.patternDate": "Introduce la fecha en el formato correcto.",
17
17
  "df.wise.ControlFeedback.required": "Completa este campo.",
18
18
  "df.wise.ControlFeedback.type": "Tipo incorrecto",
19
19
  "df.wise.CopyFeedback.copy": "Copiado al portapapeles",
@@ -13,7 +13,7 @@
13
13
  "df.wise.ControlFeedback.minimum": "Harap masukkan angka paling kecil {minimum} atau lebih dari itu.",
14
14
  "df.wise.ControlFeedback.minimumDate": "Harap masukkan tanggal pada atau setelah {minimum}.",
15
15
  "df.wise.ControlFeedback.pattern": "Mohon masukkan ini dalam format yang benar.",
16
- "df.wise.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.",
16
+ "df.wise.ControlFeedback.patternDate": "Mohon masukkan tanggal dengan format yang benar.",
17
17
  "df.wise.ControlFeedback.required": "Harap isi kolom ini.",
18
18
  "df.wise.ControlFeedback.type": "Tipe salah",
19
19
  "df.wise.CopyFeedback.copy": "Disalin ke clipboard",
@@ -13,7 +13,7 @@
13
13
  "df.wise.ControlFeedback.minimum": "Voer een getal in dat {minimum} of hoger is.",
14
14
  "df.wise.ControlFeedback.minimumDate": "Voer een datum in die op of na {minimum} is.",
15
15
  "df.wise.ControlFeedback.pattern": "Voer dit in de juiste indeling in.",
16
- "df.wise.ControlFeedback.patternDate": "Voer een datum in de juiste indeling in.",
16
+ "df.wise.ControlFeedback.patternDate": "Voer een datum in met de juiste notatie.",
17
17
  "df.wise.ControlFeedback.required": "Vul dit veld in.",
18
18
  "df.wise.ControlFeedback.type": "Onjuist type",
19
19
  "df.wise.CopyFeedback.copy": "Naar klembord gekopieerd",
@@ -0,0 +1,45 @@
1
+ {
2
+ "df.wise.ArraySchema.addItem": "Spara",
3
+ "df.wise.ArraySchema.addItemTitle": "Add Item",
4
+ "df.wise.ArraySchema.editItem": "Spara",
5
+ "df.wise.ArraySchema.maxItemsError": "Please add {maxItems} or fewer.",
6
+ "df.wise.ArraySchema.minItemsError": "Please add at least {minItems}.",
7
+ "df.wise.ArraySchema.removeItem": "Remove",
8
+ "df.wise.ButtonLayout.buttonLoadingMessage": "This might take a few seconds",
9
+ "df.wise.ControlFeedback.maxLength": "Please enter {maxLength} or fewer characters.",
10
+ "df.wise.ControlFeedback.maximum": "Please enter a number that's {maximum} or less.",
11
+ "df.wise.ControlFeedback.maximumDate": "Please enter a date that's on or before {maximum}.",
12
+ "df.wise.ControlFeedback.minLength": "Please enter at least {minLength} characters.",
13
+ "df.wise.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.",
14
+ "df.wise.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.",
15
+ "df.wise.ControlFeedback.pattern": "Please enter this in the correct format.",
16
+ "df.wise.ControlFeedback.patternDate": "Please enter a date in the correct format.",
17
+ "df.wise.ControlFeedback.required": "Please fill out this field.",
18
+ "df.wise.ControlFeedback.type": "Incorrect type",
19
+ "df.wise.CopyFeedback.copy": "Copied to clipboard",
20
+ "df.wise.CopyFeedback.copyFailed": "Failed to copy to clipboard",
21
+ "df.wise.DynamicParagraph.copied": "Copied to clipboard",
22
+ "df.wise.DynamicParagraph.copy": "Kopiera",
23
+ "df.wise.ErrorBoundary.errorAlert": "Something went wrong.",
24
+ "df.wise.ErrorBoundary.retry": "Retry",
25
+ "df.wise.ExternalConfirmation.cancel": "Avbryt",
26
+ "df.wise.ExternalConfirmation.description": "Please confirm you want to open **{origin}** in a new browser tab.",
27
+ "df.wise.ExternalConfirmation.open": "Open in new tab",
28
+ "df.wise.ExternalConfirmation.title": "Please confirm",
29
+ "df.wise.Help.ariaLabel": "Click here for more info.",
30
+ "df.wise.MultiSelect.summary": "{first} and {count} more",
31
+ "df.wise.MultipleFileUploadSchema.maxFileSizeError": "Sorry, that file is too big. Please upload a smaller file.",
32
+ "df.wise.MultipleFileUploadSchema.maxItemsError": "Please upload {maxItems} or fewer files.",
33
+ "df.wise.MultipleFileUploadSchema.minItemsError": "Please upload at least {minItems} file(s).",
34
+ "df.wise.PersistAsyncSchema.genericError": "Something went wrong, please try again.",
35
+ "df.wise.SearchLayout.loading": "Loading...",
36
+ "df.wise.back.label": "Back",
37
+ "df.wise.filter.noResults": "Inga resultat",
38
+ "df.wise.filter.placeholder": "Start typing to search",
39
+ "df.wise.filter.results": "Sökresultat",
40
+ "df.wise.group.all": "All",
41
+ "df.wise.group.currencies-with-account-details": "Currencies with account details",
42
+ "df.wise.group.popular": "Popular",
43
+ "df.wise.group.recent": "Recent",
44
+ "df.wise.step.scrollToBottom": "Scroll to bottom"
45
+ }
@@ -13,7 +13,7 @@
13
13
  "df.wise.ControlFeedback.minimum": "โปรดป้อนตัวเลข {minimum} หรือมากกว่า",
14
14
  "df.wise.ControlFeedback.minimumDate": "โปรดใส่วันที่เป็น {minimum} หรือหลังจากนั้น",
15
15
  "df.wise.ControlFeedback.pattern": "โปรดใส่ในรูปแบบที่ถูกต้อง",
16
- "df.wise.ControlFeedback.patternDate": "โปรดป้อนวันที่ในรูปแบบที่ถูกต้อง",
16
+ "df.wise.ControlFeedback.patternDate": "โปรดใส่วันที่ในรูปแบบที่ถูกต้อง",
17
17
  "df.wise.ControlFeedback.required": "โปรดใส่ข้อมูลในช่องนี้",
18
18
  "df.wise.ControlFeedback.type": "ประเภทไม่ถูกต้อง",
19
19
  "df.wise.CopyFeedback.copy": "คัดลอกไปยังคลิปบอร์ด",
@@ -13,11 +13,11 @@
13
13
  "df.wise.ControlFeedback.minimum": "请输入一个大于或等于 {minimum} 的数字",
14
14
  "df.wise.ControlFeedback.minimumDate": "请输入 {minimum} 或之后的日期",
15
15
  "df.wise.ControlFeedback.pattern": "请以正确的格式输入",
16
- "df.wise.ControlFeedback.patternDate": "请以正确的格式输入日期",
16
+ "df.wise.ControlFeedback.patternDate": "请以正确的格式输入日期。",
17
17
  "df.wise.ControlFeedback.required": "请填写此字段。",
18
18
  "df.wise.ControlFeedback.type": "类型错误",
19
19
  "df.wise.CopyFeedback.copy": "已复制到剪贴板",
20
- "df.wise.CopyFeedback.copyFailed": "复制到剪贴板失败",
20
+ "df.wise.CopyFeedback.copyFailed": "无法复制到剪贴板",
21
21
  "df.wise.DynamicParagraph.copied": "已复制到剪贴板",
22
22
  "df.wise.DynamicParagraph.copy": "复制",
23
23
  "df.wise.ErrorBoundary.errorAlert": "出错了。",
@@ -32,7 +32,7 @@
32
32
  "df.wise.MultipleFileUploadSchema.maxItemsError": "请上传不超过 {maxItems} 个文件。",
33
33
  "df.wise.MultipleFileUploadSchema.minItemsError": "请上传至少 {minItems} 个文件。",
34
34
  "df.wise.PersistAsyncSchema.genericError": "出错了,请重试。",
35
- "df.wise.SearchLayout.loading": "正在加载…",
35
+ "df.wise.SearchLayout.loading": "正在加载……",
36
36
  "df.wise.back.label": "返回",
37
37
  "df.wise.filter.noResults": "暂无结果",
38
38
  "df.wise.filter.placeholder": "开始输入以搜索",
@@ -13,7 +13,7 @@
13
13
  "df.wise.ControlFeedback.minimum": "請輸入一個大於或等於{minimum}的數字。",
14
14
  "df.wise.ControlFeedback.minimumDate": "請輸入{minimum}或之後的日期。",
15
15
  "df.wise.ControlFeedback.pattern": "請以正確格式輸入内容。",
16
- "df.wise.ControlFeedback.patternDate": "請以正確格式輸入日期。",
16
+ "df.wise.ControlFeedback.patternDate": "請以正確的格式輸入日期。",
17
17
  "df.wise.ControlFeedback.required": "請填寫此欄位。",
18
18
  "df.wise.ControlFeedback.type": "錯誤的類型",
19
19
  "df.wise.CopyFeedback.copy": "複製到剪貼板",
package/build/main.js CHANGED
@@ -35,7 +35,11 @@ var __objRest = (source, exclude) => {
35
35
  return target;
36
36
  };
37
37
  var __commonJS = (cb, mod) => function __require() {
38
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
38
+ try {
39
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
40
+ } catch (e) {
41
+ throw mod = 0, e;
42
+ }
39
43
  };
40
44
  var __export = (target, all) => {
41
45
  for (var name in all)
@@ -141,7 +145,7 @@ var import_dynamic_flow_client4 = require("@wise/dynamic-flow-client");
141
145
  // src/dynamicFlow/telemetry/app-version.ts
142
146
  var appVersion = (
143
147
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
144
- typeof process !== "undefined" ? "5.18.1" : "0.0.0"
148
+ typeof process !== "undefined" ? "5.19.3" : "0.0.0"
145
149
  );
146
150
 
147
151
  // src/dynamicFlow/context-menu/useContextMenu.tsx
@@ -379,10 +383,10 @@ var AlertRenderer = {
379
383
  };
380
384
  var mapCtaToAlertAction = (callToAction) => {
381
385
  if (callToAction) {
382
- return __spreadValues(__spreadValues({
386
+ return __spreadValues({
383
387
  text: callToAction.title,
384
388
  "aria-label": callToAction.accessibilityDescription
385
- }, "onClick" in callToAction ? { onClick: callToAction.onClick } : {}), callToAction.href ? { href: callToAction.href, target: "_blank" } : {});
389
+ }, callToAction.getAnchorProps());
386
390
  }
387
391
  return void 0;
388
392
  };
@@ -531,25 +535,25 @@ var isNamedIcon = (name) => {
531
535
  const iconName = toCapitalisedCamelCase(name);
532
536
  return Object.keys(icons).includes(iconName);
533
537
  };
534
- function NamedIcon({ name, size = 24 }) {
538
+ function NamedIcon({ name }) {
535
539
  if (!isNamedIcon(name)) {
536
540
  return null;
537
541
  }
538
542
  const iconName = toCapitalisedCamelCase(name);
539
543
  const Icon = icons[iconName];
540
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { size });
544
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { size: 24 });
541
545
  }
542
546
  var toCapitalisedCamelCase = (value) => value.split("-").map(capitaliseFirstChar).join("");
543
547
  var capitaliseFirstChar = (value) => value.length === 0 ? "" : `${value[0].toUpperCase()}${value.slice(1)}`;
544
548
 
545
549
  // ../renderers/src/components/icon/DynamicIcon.tsx
546
550
  var import_jsx_runtime8 = require("react/jsx-runtime");
547
- function DynamicIcon({ name, size }) {
551
+ function DynamicIcon({ name }) {
548
552
  if (isFlagIcon(name)) {
549
553
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FlagIcon, { name });
550
554
  }
551
555
  if (isNamedIcon(name)) {
552
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(NamedIcon, { name, size });
556
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(NamedIcon, { name });
553
557
  }
554
558
  return null;
555
559
  }
@@ -585,7 +589,7 @@ var import_jsx_runtime9 = require("react/jsx-runtime");
585
589
  var resolveMediaFromUri = (uri, size) => {
586
590
  const { name, qComponents } = stringToURN(uri);
587
591
  if (isValidIconUrn(name)) {
588
- const icon = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DynamicIcon_default, { name: name.replace("urn:wise:icons:", ""), size: size === 48 ? 32 : size });
592
+ const icon = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DynamicIcon_default, { name: name.replace("urn:wise:icons:", "") });
589
593
  return {
590
594
  icon,
591
595
  color: formatColor(qComponents["foreground-color"]),
@@ -876,7 +880,7 @@ var scrollToIfNotVisible = (ref) => {
876
880
  return;
877
881
  }
878
882
  if (rect.bottom > window.innerHeight || rect.top < 0) {
879
- ref.scrollIntoView({ behavior: "smooth" });
883
+ ref.scrollIntoView({ behavior: "instant" });
880
884
  }
881
885
  };
882
886
 
@@ -1251,6 +1255,7 @@ var import_components16 = require("@transferwise/components");
1251
1255
  var import_components13 = require("@transferwise/components");
1252
1256
  var import_jsx_runtime27 = require("react/jsx-runtime");
1253
1257
  var getAdditionalInfo = (additionalInfo) => {
1258
+ var _a, _b;
1254
1259
  if (!additionalInfo) {
1255
1260
  return void 0;
1256
1261
  }
@@ -1259,12 +1264,9 @@ var getAdditionalInfo = (additionalInfo) => {
1259
1264
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1260
1265
  import_components13.ListItem.AdditionalInfo,
1261
1266
  {
1262
- action: {
1263
- label: text,
1264
- href,
1265
- onClick,
1266
- target: "_blank"
1267
- }
1267
+ action: __spreadValues({
1268
+ label: text
1269
+ }, (_b = (_a = additionalInfo.getAnchorProps) == null ? void 0 : _a.call(additionalInfo)) != null ? _b : { onClick })
1268
1270
  }
1269
1271
  );
1270
1272
  }
@@ -1467,7 +1469,7 @@ var renderDecisionList = ({ options, control }) => {
1467
1469
  disabled,
1468
1470
  media,
1469
1471
  title: itemTitle,
1470
- href,
1472
+ getAnchorProps,
1471
1473
  additionalText,
1472
1474
  inlineAlert,
1473
1475
  supportingValues,
@@ -1485,7 +1487,7 @@ var renderDecisionList = ({ options, control }) => {
1485
1487
  media: getMedia(media, shouldUseAvatar(control, tags)),
1486
1488
  prompt: getInlineAlert(inlineAlert),
1487
1489
  additionalInfo: additionalText ? getAdditionalInfo({ text: additionalText }) : void 0,
1488
- control: href ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components16.ListItem.Navigation, { href, target: "_blank" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components16.ListItem.Navigation, { onClick })
1490
+ control: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components16.ListItem.Navigation, __spreadValues({}, getAnchorProps()))
1489
1491
  },
1490
1492
  JSON.stringify(rest)
1491
1493
  );
@@ -1960,33 +1962,17 @@ var getCTAControl = (callToAction, { ctaSecondary, fullyInteractive }) => {
1960
1962
  if (!callToAction) {
1961
1963
  return void 0;
1962
1964
  }
1963
- const { accessibilityDescription, href, title, context, onClick } = callToAction;
1965
+ const { accessibilityDescription, title, context } = callToAction;
1964
1966
  const { priority, sentiment } = getPriorityAndSentiment(ctaSecondary, context);
1965
- if (href) {
1966
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1967
- import_components24.ListItem.Button,
1968
- {
1969
- href,
1970
- target: "_blank",
1971
- rel: "noopener noreferrer",
1972
- partiallyInteractive: !fullyInteractive,
1973
- priority,
1974
- "aria-description": accessibilityDescription,
1975
- sentiment,
1976
- children: title
1977
- }
1978
- );
1979
- }
1980
1967
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1981
1968
  import_components24.ListItem.Button,
1982
- {
1983
- "aria-description": accessibilityDescription,
1969
+ __spreadProps(__spreadValues({}, callToAction.getAnchorProps()), {
1984
1970
  partiallyInteractive: !fullyInteractive,
1985
1971
  priority,
1972
+ "aria-description": accessibilityDescription,
1986
1973
  sentiment,
1987
- onClick,
1988
1974
  children: title
1989
- }
1975
+ })
1990
1976
  );
1991
1977
  };
1992
1978
  var getPriorityAndSentiment = (ctaSecondary, context) => {
@@ -2004,20 +1990,10 @@ var getHeaderAction = (callToAction) => {
2004
1990
  if (!callToAction) {
2005
1991
  return void 0;
2006
1992
  }
2007
- const { accessibilityDescription, href, title, onClick } = callToAction;
2008
- return href ? {
2009
- "aria-label": accessibilityDescription,
2010
- text: title,
2011
- href,
2012
- target: "_blank"
2013
- } : {
2014
- "aria-label": accessibilityDescription,
2015
- text: title,
2016
- onClick: (event) => {
2017
- event.preventDefault();
2018
- onClick();
2019
- }
2020
- };
1993
+ return __spreadValues({
1994
+ "aria-label": callToAction.accessibilityDescription,
1995
+ text: callToAction.title
1996
+ }, callToAction.getAnchorProps());
2021
1997
  };
2022
1998
 
2023
1999
  // ../renderers/src/ListRenderer.tsx
@@ -3638,7 +3614,7 @@ var StatusListRenderer = {
3638
3614
  render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: getMargin(margin), children: [
3639
3615
  title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.Header, { title }) : null,
3640
3616
  items.map((item) => {
3641
- const { callToAction, description, icon, status, title: itemTitle } = item;
3617
+ const { callToAction, description, title: itemTitle } = item;
3642
3618
  return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3643
3619
  import_components53.ListItem,
3644
3620
  {
@@ -3648,12 +3624,9 @@ var StatusListRenderer = {
3648
3624
  additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3649
3625
  import_components53.ListItem.AdditionalInfo,
3650
3626
  {
3651
- action: {
3652
- href: callToAction.href,
3653
- onClick: callToAction.href ? void 0 : callToAction.onClick,
3654
- label: callToAction.title,
3655
- target: "_blank"
3656
- }
3627
+ action: __spreadValues({
3628
+ label: callToAction.title
3629
+ }, callToAction.getAnchorProps())
3657
3630
  }
3658
3631
  ) : void 0
3659
3632
  },
@@ -4264,12 +4237,9 @@ function UpsellRendererComponent(props) {
4264
4237
  className: getMargin(margin),
4265
4238
  mediaName: getMediaName(media),
4266
4239
  title: text,
4267
- action: {
4268
- href: callToAction.href,
4269
- onClick: callToAction.href ? void 0 : callToAction.onClick,
4270
- target: callToAction.href ? "_blank" : void 0,
4240
+ action: __spreadValues({
4271
4241
  text: callToAction.title
4272
- },
4242
+ }, callToAction.getAnchorProps()),
4273
4243
  onDismiss: onDismiss ? () => {
4274
4244
  setIsVisible(false);
4275
4245
  onDismiss();
@@ -4279,7 +4249,7 @@ function UpsellRendererComponent(props) {
4279
4249
  }
4280
4250
  var urnPrefix2 = "urn:wise:illustrations:";
4281
4251
  var getMediaName = (media) => {
4282
- if (media && media.type === "image" && media.uri.startsWith(urnPrefix2)) {
4252
+ if ((media == null ? void 0 : media.type) === "image" && media.uri.startsWith(urnPrefix2)) {
4283
4253
  const mediaName = media.uri.substring(urnPrefix2.length);
4284
4254
  if (supportedMediaNames.includes(mediaName)) {
4285
4255
  return mediaName;
@@ -4469,13 +4439,26 @@ var logToRollbar = (level, message, extra) => {
4469
4439
 
4470
4440
  // src/dynamicFlow/telemetry/getTrackEvent.ts
4471
4441
  var import_dynamic_flow_client3 = require("@wise/dynamic-flow-client");
4472
- var prefix = "Dynamic Flow - ";
4473
- var getTrackEvent = (onEvent, onAnalytics) => (name, properties) => {
4474
- onEvent == null ? void 0 : onEvent(name, properties);
4475
- if (includeInAnalytics(name)) {
4476
- onAnalytics == null ? void 0 : onAnalytics(name, properties);
4442
+
4443
+ // src/dynamicFlow/telemetry/dispatchAnalyticsEvent.ts
4444
+ var dispatchAnalyticsEvent = (eventName, properties) => {
4445
+ const props = __spreadValues({ dfFallbackAnalytics: true }, properties);
4446
+ if (typeof window !== "undefined" && window.mixpanel && typeof window.mixpanel.track === "function") {
4447
+ window.mixpanel.track(eventName, props);
4477
4448
  }
4478
4449
  };
4450
+
4451
+ // src/dynamicFlow/telemetry/getTrackEvent.ts
4452
+ var prefix = "Dynamic Flow - ";
4453
+ var getTrackEvent = (onEvent, onAnalytics) => {
4454
+ const dispatchAnalytics = !onAnalytics && !onEvent ? dispatchAnalyticsEvent : onAnalytics;
4455
+ return (name, properties) => {
4456
+ onEvent == null ? void 0 : onEvent(name, properties);
4457
+ if (includeInAnalytics(name)) {
4458
+ dispatchAnalytics == null ? void 0 : dispatchAnalytics(name, properties);
4459
+ }
4460
+ };
4461
+ };
4479
4462
  var includeInAnalytics = (name) => {
4480
4463
  const eventName = name.startsWith(prefix) ? name.slice(prefix.length) : name;
4481
4464
  if (isCoreEventName(eventName)) {
@@ -4671,7 +4654,7 @@ var cs_default = {
4671
4654
  "df.wise.ControlFeedback.minimum": "Zadejte \u010D\xEDslo, kter\xE9 je {minimum} nebo vy\u0161\u0161\xED.",
4672
4655
  "df.wise.ControlFeedback.minimumDate": "Zadejte datum, kter\xE9 je {minimum} nebo potom.",
4673
4656
  "df.wise.ControlFeedback.pattern": "Zadejte to pros\xEDm ve spr\xE1vn\xE9m form\xE1tu.",
4674
- "df.wise.ControlFeedback.patternDate": "Zadejte pros\xEDm datum ve spr\xE1vn\xE9m form\xE1tu.",
4657
+ "df.wise.ControlFeedback.patternDate": "Zadejte datum ve spr\xE1vn\xE9m form\xE1tu.",
4675
4658
  "df.wise.ControlFeedback.required": "Vypl\u0148te pros\xEDm toto pole.",
4676
4659
  "df.wise.ControlFeedback.type": "Nespr\xE1vn\xFD typ",
4677
4660
  "df.wise.CopyFeedback.copy": "Zkop\xEDrov\xE1no do schr\xE1nky",
@@ -4765,7 +4748,7 @@ var en_default = {
4765
4748
  "df.wise.ControlFeedback.minimum": "Please enter a number that's {minimum} or more.",
4766
4749
  "df.wise.ControlFeedback.minimumDate": "Please enter a date that's on or after {minimum}.",
4767
4750
  "df.wise.ControlFeedback.pattern": "Please enter this in the correct format.",
4768
- "df.wise.ControlFeedback.patternDate": "Please enter a date in the corrrect format.",
4751
+ "df.wise.ControlFeedback.patternDate": "Please enter a date in the correct format.",
4769
4752
  "df.wise.ControlFeedback.required": "Please fill out this field.",
4770
4753
  "df.wise.ControlFeedback.type": "Incorrect type",
4771
4754
  "df.wise.CopyFeedback.copy": "Copied to clipboard",
@@ -4812,7 +4795,7 @@ var es_default = {
4812
4795
  "df.wise.ControlFeedback.minimum": "Introduce una cifra igual o inferior a {minimum}.",
4813
4796
  "df.wise.ControlFeedback.minimumDate": "Introduce una fecha que sea igual o posterior al {minimum}.",
4814
4797
  "df.wise.ControlFeedback.pattern": "Utiliza el formato correcto.",
4815
- "df.wise.ControlFeedback.patternDate": "Introduce la fecha en un formato correcto.",
4798
+ "df.wise.ControlFeedback.patternDate": "Introduce la fecha en el formato correcto.",
4816
4799
  "df.wise.ControlFeedback.required": "Completa este campo.",
4817
4800
  "df.wise.ControlFeedback.type": "Tipo incorrecto",
4818
4801
  "df.wise.CopyFeedback.copy": "Copiado al portapapeles",
@@ -4953,7 +4936,7 @@ var id_default = {
4953
4936
  "df.wise.ControlFeedback.minimum": "Harap masukkan angka paling kecil {minimum} atau lebih dari itu.",
4954
4937
  "df.wise.ControlFeedback.minimumDate": "Harap masukkan tanggal pada atau setelah {minimum}.",
4955
4938
  "df.wise.ControlFeedback.pattern": "Mohon masukkan ini dalam format yang benar.",
4956
- "df.wise.ControlFeedback.patternDate": "Harap masukkan tanggal dalam format yang benar.",
4939
+ "df.wise.ControlFeedback.patternDate": "Mohon masukkan tanggal dengan format yang benar.",
4957
4940
  "df.wise.ControlFeedback.required": "Harap isi kolom ini.",
4958
4941
  "df.wise.ControlFeedback.type": "Tipe salah",
4959
4942
  "df.wise.CopyFeedback.copy": "Disalin ke clipboard",
@@ -5094,7 +5077,7 @@ var nl_default = {
5094
5077
  "df.wise.ControlFeedback.minimum": "Voer een getal in dat {minimum} of hoger is.",
5095
5078
  "df.wise.ControlFeedback.minimumDate": "Voer een datum in die op of na {minimum} is.",
5096
5079
  "df.wise.ControlFeedback.pattern": "Voer dit in de juiste indeling in.",
5097
- "df.wise.ControlFeedback.patternDate": "Voer een datum in de juiste indeling in.",
5080
+ "df.wise.ControlFeedback.patternDate": "Voer een datum in met de juiste notatie.",
5098
5081
  "df.wise.ControlFeedback.required": "Vul dit veld in.",
5099
5082
  "df.wise.ControlFeedback.type": "Onjuist type",
5100
5083
  "df.wise.CopyFeedback.copy": "Naar klembord gekopieerd",
@@ -5329,7 +5312,7 @@ var th_default = {
5329
5312
  "df.wise.ControlFeedback.minimum": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 {minimum} \u0E2B\u0E23\u0E37\u0E2D\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",
5330
5313
  "df.wise.ControlFeedback.minimumDate": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19 {minimum} \u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E31\u0E07\u0E08\u0E32\u0E01\u0E19\u0E31\u0E49\u0E19",
5331
5314
  "df.wise.ControlFeedback.pattern": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
5332
- "df.wise.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E1B\u0E49\u0E2D\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
5315
+ "df.wise.ControlFeedback.patternDate": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E43\u0E19\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
5333
5316
  "df.wise.ControlFeedback.required": "\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",
5334
5317
  "df.wise.ControlFeedback.type": "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
5335
5318
  "df.wise.CopyFeedback.copy": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14",
@@ -5423,11 +5406,11 @@ var zh_CN_default = {
5423
5406
  "df.wise.ControlFeedback.minimum": "\u8BF7\u8F93\u5165\u4E00\u4E2A\u5927\u4E8E\u6216\u7B49\u4E8E {minimum} \u7684\u6570\u5B57",
5424
5407
  "df.wise.ControlFeedback.minimumDate": "\u8BF7\u8F93\u5165 {minimum} \u6216\u4E4B\u540E\u7684\u65E5\u671F",
5425
5408
  "df.wise.ControlFeedback.pattern": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165",
5426
- "df.wise.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F",
5409
+ "df.wise.ControlFeedback.patternDate": "\u8BF7\u4EE5\u6B63\u786E\u7684\u683C\u5F0F\u8F93\u5165\u65E5\u671F\u3002",
5427
5410
  "df.wise.ControlFeedback.required": "\u8BF7\u586B\u5199\u6B64\u5B57\u6BB5\u3002",
5428
5411
  "df.wise.ControlFeedback.type": "\u7C7B\u578B\u9519\u8BEF",
5429
5412
  "df.wise.CopyFeedback.copy": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
5430
- "df.wise.CopyFeedback.copyFailed": "\u590D\u5236\u5230\u526A\u8D34\u677F\u5931\u8D25",
5413
+ "df.wise.CopyFeedback.copyFailed": "\u65E0\u6CD5\u590D\u5236\u5230\u526A\u8D34\u677F",
5431
5414
  "df.wise.DynamicParagraph.copied": "\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",
5432
5415
  "df.wise.DynamicParagraph.copy": "\u590D\u5236",
5433
5416
  "df.wise.ErrorBoundary.errorAlert": "\u51FA\u9519\u4E86\u3002",
@@ -5442,7 +5425,7 @@ var zh_CN_default = {
5442
5425
  "df.wise.MultipleFileUploadSchema.maxItemsError": "\u8BF7\u4E0A\u4F20\u4E0D\u8D85\u8FC7 {maxItems} \u4E2A\u6587\u4EF6\u3002",
5443
5426
  "df.wise.MultipleFileUploadSchema.minItemsError": "\u8BF7\u4E0A\u4F20\u81F3\u5C11 {minItems} \u4E2A\u6587\u4EF6\u3002",
5444
5427
  "df.wise.PersistAsyncSchema.genericError": "\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u8BD5\u3002",
5445
- "df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026",
5428
+ "df.wise.SearchLayout.loading": "\u6B63\u5728\u52A0\u8F7D\u2026\u2026",
5446
5429
  "df.wise.back.label": "\u8FD4\u56DE",
5447
5430
  "df.wise.filter.noResults": "\u6682\u65E0\u7ED3\u679C",
5448
5431
  "df.wise.filter.placeholder": "\u5F00\u59CB\u8F93\u5165\u4EE5\u641C\u7D22",
@@ -5470,7 +5453,7 @@ var zh_HK_default = {
5470
5453
  "df.wise.ControlFeedback.minimum": "\u8ACB\u8F38\u5165\u4E00\u500B\u5927\u65BC\u6216\u7B49\u65BC{minimum}\u7684\u6578\u5B57\u3002",
5471
5454
  "df.wise.ControlFeedback.minimumDate": "\u8ACB\u8F38\u5165{minimum}\u6216\u4E4B\u5F8C\u7684\u65E5\u671F\u3002",
5472
5455
  "df.wise.ControlFeedback.pattern": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u5185\u5BB9\u3002",
5473
- "df.wise.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002",
5456
+ "df.wise.ControlFeedback.patternDate": "\u8ACB\u4EE5\u6B63\u78BA\u7684\u683C\u5F0F\u8F38\u5165\u65E5\u671F\u3002",
5474
5457
  "df.wise.ControlFeedback.required": "\u8ACB\u586B\u5BEB\u6B64\u6B04\u4F4D\u3002",
5475
5458
  "df.wise.ControlFeedback.type": "\u932F\u8AA4\u7684\u985E\u578B",
5476
5459
  "df.wise.CopyFeedback.copy": "\u8907\u88FD\u5230\u526A\u8CBC\u677F",