@adiba-banking-cloud/backoffice 0.0.80 → 0.0.81

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.
@@ -1,5 +1,3 @@
1
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
2
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
1
  import { modals } from '@mantine/modals';
4
2
  import React, { useRef, useMemo, useEffect } from 'react';
5
3
  import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table, createTheme, PinInput, Drawer as Drawer$1, ScrollArea, NumberInput, PasswordInput, Textarea, Grid } from '@mantine/core';
@@ -11205,8 +11203,8 @@ const initChart$2 = props => {
11205
11203
  chart: {
11206
11204
  type: "column",
11207
11205
  borderRadius: 8,
11208
- backgroundColor: (props === null || props === void 0 ? void 0 : props.bgColor) || "rgba(255, 255, 255, 0)",
11209
- plotBackgroundColor: (props === null || props === void 0 ? void 0 : props.plotBgColor) || "rgba(255, 255, 255, 0)"
11206
+ backgroundColor: props?.bgColor || "rgba(255, 255, 255, 0)",
11207
+ plotBackgroundColor: props?.plotBgColor || "rgba(255, 255, 255, 0)"
11210
11208
  },
11211
11209
  tooltip: {
11212
11210
  backgroundColor: "#0F193D",
@@ -11261,15 +11259,14 @@ const parseColorToRgb = colorString => {
11261
11259
  b
11262
11260
  };
11263
11261
  } else if (colorString.startsWith("rgb")) {
11264
- var _colorString$match;
11265
- const parts = (_colorString$match = colorString.match(/\d+/g)) === null || _colorString$match === void 0 ? void 0 : _colorString$match.map(Number);
11266
- if (parts !== null && parts !== void 0 && parts.length) return {
11262
+ const parts = colorString.match(/\d+/g)?.map(Number);
11263
+ if (parts?.length) return {
11267
11264
  r: parts[0],
11268
11265
  g: parts[1],
11269
11266
  b: parts[2]
11270
11267
  };
11271
11268
  }
11272
- console.warn("Color format '".concat(colorString, "' not fully recognized. Using black as fallback."));
11269
+ console.warn(`Color format '${colorString}' not fully recognized. Using black as fallback.`);
11273
11270
  return {
11274
11271
  r: 0,
11275
11272
  g: 0,
@@ -11297,13 +11294,13 @@ const createAreaFillGradient = function (baseColor) {
11297
11294
  endOpacity = 0.08
11298
11295
  } = options;
11299
11296
  const parsedColor = parseColorToRgb(baseColor);
11300
- "rgba(".concat(parsedColor.r, ", ").concat(parsedColor.g, ", ").concat(parsedColor.b, ", 1)");
11297
+ `rgba(${parsedColor.r}, ${parsedColor.g}, ${parsedColor.b}, 1)`;
11301
11298
 
11302
11299
  // Color string for the top of the gradient (base color with specified start opacity)
11303
- const rgbaStart = "rgba(".concat(parsedColor.r, ", ").concat(parsedColor.g, ", ").concat(parsedColor.b, ", ").concat(startOpacity, ")");
11300
+ const rgbaStart = `rgba(${parsedColor.r}, ${parsedColor.g}, ${parsedColor.b}, ${startOpacity})`;
11304
11301
 
11305
11302
  // Color string for the bottom of the gradient (always transparent version of base color)
11306
- const rgbaEnd = "rgba(".concat(parsedColor.r, ", ").concat(parsedColor.g, ", ").concat(parsedColor.b, ", ").concat(endOpacity, ")");
11303
+ const rgbaEnd = `rgba(${parsedColor.r}, ${parsedColor.g}, ${parsedColor.b}, ${endOpacity})`;
11307
11304
  return {
11308
11305
  linearGradient: {
11309
11306
  x1: 0,
@@ -11322,9 +11319,6 @@ const createAreaFillGradient = function (baseColor) {
11322
11319
  };
11323
11320
  };
11324
11321
 
11325
- function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11326
- function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11327
-
11328
11322
  // Initialize Highcharts with rounded corners
11329
11323
  if (typeof window !== "undefined") {
11330
11324
  HighchartsRounded(Highcharts);
@@ -11332,8 +11326,13 @@ if (typeof window !== "undefined") {
11332
11326
  const Column = props => {
11333
11327
  const chartRef = useRef(null);
11334
11328
  const chartOptions = useMemo(() => {
11335
- const column = _objectSpread$5({}, props);
11336
- return _objectSpread$5(_objectSpread$5({}, initChart$2(column)), initSeries$2(column));
11329
+ const column = {
11330
+ ...props
11331
+ };
11332
+ return {
11333
+ ...initChart$2(column),
11334
+ ...initSeries$2(column)
11335
+ };
11337
11336
  }, [props]);
11338
11337
  useEffect(() => {
11339
11338
  if (chartRef.current && chartRef.current.chart) {
@@ -11436,12 +11435,15 @@ const initSeries$2 = props => {
11436
11435
  enableMouseTracking: false,
11437
11436
  showInLegend: false
11438
11437
  });
11439
- const mainSeries = _objectSpread$5(_objectSpread$5({}, fillSeries(boundary)), {
11440
- name: props.yAxisLabel[0],
11441
- color: seriesColors ? seriesColors[0] : "gray",
11442
- data: seriesData[0],
11443
- enableMouseTracking: true
11444
- });
11438
+ const mainSeries = {
11439
+ ...fillSeries(boundary),
11440
+ ...{
11441
+ name: props.yAxisLabel[0],
11442
+ color: seriesColors ? seriesColors[0] : "gray",
11443
+ data: seriesData[0],
11444
+ enableMouseTracking: true
11445
+ }
11446
+ };
11445
11447
  return [fillSeries(boundary), mainSeries];
11446
11448
  }
11447
11449
  return [];
@@ -11476,19 +11478,22 @@ const initSeries$2 = props => {
11476
11478
  pointWidth: undefined
11477
11479
  }
11478
11480
  };
11479
- const plot = _objectSpread$5(_objectSpread$5({}, {
11480
- column: {
11481
- borderWidth: 0,
11482
- borderRadius: 10
11483
- }
11484
- }), series);
11481
+ const plot = {
11482
+ ...{
11483
+ column: {
11484
+ borderWidth: 0,
11485
+ borderRadius: 10
11486
+ }
11487
+ },
11488
+ ...series
11489
+ };
11485
11490
  return plot;
11486
11491
  };
11487
11492
  return {
11488
11493
  xAxis: renderXAxis(props.xAxisLabel),
11489
11494
  yAxis: renderYAxis(props.equalizer, props.series),
11490
11495
  plotOptions: renderPlot(props.equalizer),
11491
- series: renderSeries(props.series, props === null || props === void 0 ? void 0 : props.colors, props.equalizer)
11496
+ series: renderSeries(props.series, props?.colors, props.equalizer)
11492
11497
  };
11493
11498
  };
11494
11499
 
@@ -11496,8 +11501,8 @@ const initChart$1 = props => {
11496
11501
  return {
11497
11502
  chart: {
11498
11503
  type: "areaspline",
11499
- backgroundColor: (props === null || props === void 0 ? void 0 : props.bgColor) || "rgba(255, 255, 255, 0)",
11500
- plotBackgroundColor: (props === null || props === void 0 ? void 0 : props.plotBgColor) || "rgba(255, 255, 255, 0)"
11504
+ backgroundColor: props?.bgColor || "rgba(255, 255, 255, 0)",
11505
+ plotBackgroundColor: props?.plotBgColor || "rgba(255, 255, 255, 0)"
11501
11506
  },
11502
11507
  tooltip: {
11503
11508
  backgroundColor: "#0F193D",
@@ -11531,13 +11536,16 @@ const initChart$1 = props => {
11531
11536
  };
11532
11537
  };
11533
11538
 
11534
- function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11535
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11536
11539
  const Area = props => {
11537
11540
  const chartRef = useRef(null);
11538
11541
  const chartOptions = useMemo(() => {
11539
- const area = _objectSpread$4({}, props);
11540
- return _objectSpread$4(_objectSpread$4({}, initChart$1(area)), initSeries$1(area));
11542
+ const area = {
11543
+ ...props
11544
+ };
11545
+ return {
11546
+ ...initChart$1(area),
11547
+ ...initSeries$1(area)
11548
+ };
11541
11549
  }, [props]);
11542
11550
  useEffect(() => {
11543
11551
  if (chartRef.current && chartRef.current.chart) {
@@ -11566,9 +11574,8 @@ const SimpleArea = props => {
11566
11574
  };
11567
11575
  const initSeries$1 = props => {
11568
11576
  const renderXAxis = () => {
11569
- var _props$colors;
11570
11577
  const crosshair = props.withCrossHair ? {
11571
- color: props !== null && props !== void 0 && (_props$colors = props.colors) !== null && _props$colors !== void 0 && _props$colors.length ? props === null || props === void 0 ? void 0 : props.colors[0] : "#ccc",
11578
+ color: props?.colors?.length ? props?.colors[0] : "#ccc",
11572
11579
  width: 2,
11573
11580
  dashStyle: "Dot",
11574
11581
  snap: true
@@ -11598,9 +11605,12 @@ const initSeries$1 = props => {
11598
11605
  const labels = {
11599
11606
  color: "#575E77"
11600
11607
  };
11601
- return _objectSpread$4(_objectSpread$4({}, defaults), {
11602
- labels
11603
- });
11608
+ return {
11609
+ ...defaults,
11610
+ ...{
11611
+ labels
11612
+ }
11613
+ };
11604
11614
  };
11605
11615
  const renderPlot = () => {
11606
11616
  const areaspline = {
@@ -11616,15 +11626,12 @@ const initSeries$1 = props => {
11616
11626
  };
11617
11627
  };
11618
11628
  const renderSeries = () => {
11619
- const series = props.series.map((value, key) => {
11620
- var _props$colors2, _props$colors3;
11621
- return {
11622
- name: props.yAxisLabel[key],
11623
- color: (_props$colors2 = props.colors) !== null && _props$colors2 !== void 0 && _props$colors2.length ? props.colors[key] : "#C8700B",
11624
- data: value,
11625
- fillColor: createAreaFillGradient((_props$colors3 = props.colors) !== null && _props$colors3 !== void 0 && _props$colors3.length ? props.colors[key] : "#C8700B")
11626
- };
11627
- });
11629
+ const series = props.series.map((value, key) => ({
11630
+ name: props.yAxisLabel[key],
11631
+ color: props.colors?.length ? props.colors[key] : "#C8700B",
11632
+ data: value,
11633
+ fillColor: createAreaFillGradient(props.colors?.length ? props.colors[key] : "#C8700B")
11634
+ }));
11628
11635
  return series;
11629
11636
  };
11630
11637
  return {
@@ -11635,16 +11642,13 @@ const initSeries$1 = props => {
11635
11642
  };
11636
11643
  };
11637
11644
 
11638
- const _excluded$c = ["withLegend", "centerLabel", "centerValue"];
11639
- function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11640
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11641
11645
  const initChart = _ref => {
11642
11646
  let {
11643
- withLegend,
11644
- centerLabel = "",
11645
- centerValue = ""
11646
- } = _ref;
11647
- _objectWithoutProperties(_ref, _excluded$c);
11647
+ withLegend,
11648
+ centerLabel = "",
11649
+ centerValue = "",
11650
+ ...rest
11651
+ } = _ref;
11648
11652
  return {
11649
11653
  chart: {
11650
11654
  type: "pie",
@@ -11654,7 +11658,7 @@ const initChart = _ref => {
11654
11658
  series = chart.series[0];
11655
11659
  let customLabel = chart.customLabel;
11656
11660
  if (!customLabel) {
11657
- customLabel = chart.customLabel = chart.renderer.label("<strong>".concat(centerValue, "</strong><br/>").concat(centerLabel), 0, 0, undefined, undefined, undefined, true, undefined, "center").css({
11661
+ customLabel = chart.customLabel = chart.renderer.label(`<strong>${centerValue}</strong><br/>${centerLabel}`, 0, 0, undefined, undefined, undefined, true, undefined, "center").css({
11658
11662
  textAlign: "center"
11659
11663
  }).add();
11660
11664
  }
@@ -11667,7 +11671,7 @@ const initChart = _ref => {
11667
11671
 
11668
11672
  // Set font size and colour via configuration options
11669
11673
  customLabel.attr({
11670
- text: "<span style=\"color: #0F193D; font-size: 24px; font-weight: 800\">".concat(centerValue, "</span><br/><span style=\"font-size: 12px; color: #878C9E\">").concat(centerLabel, "</span>"),
11674
+ text: `<span style="color: #0F193D; font-size: 24px; font-weight: 800">${centerValue}</span><br/><span style="font-size: 12px; color: #878C9E">${centerLabel}</span>`,
11671
11675
  align: "center",
11672
11676
  verticalAlign: "middle",
11673
11677
  x: x,
@@ -11687,13 +11691,16 @@ const initChart = _ref => {
11687
11691
  },
11688
11692
  legend: !withLegend ? {
11689
11693
  enabled: false
11690
- } : _objectSpread$3(_objectSpread$3({}, {
11691
- enabled: true,
11692
- layout: "vertical",
11693
- verticalAlign: "middle",
11694
- align: "right",
11695
- labelFormat: '{name} <span style="opacity: 0.4">{y}</span>'
11696
- }), withLegend && typeof withLegend !== "boolean" ? withLegend : {}),
11694
+ } : {
11695
+ ...{
11696
+ enabled: true,
11697
+ layout: "vertical",
11698
+ verticalAlign: "middle",
11699
+ align: "right",
11700
+ labelFormat: '{name} <span style="opacity: 0.4">{y}</span>'
11701
+ },
11702
+ ...(withLegend && typeof withLegend !== "boolean" ? withLegend : {})
11703
+ },
11697
11704
  plotOptions: {
11698
11705
  pie: {
11699
11706
  allowPointSelect: true,
@@ -11720,13 +11727,16 @@ const initChart = _ref => {
11720
11727
  };
11721
11728
  };
11722
11729
 
11723
- function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11724
- function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11725
11730
  const DonutChart = props => {
11726
11731
  const chartRef = useRef(null);
11727
11732
  const chartOptions = useMemo(() => {
11728
- const area = _objectSpread$2({}, props);
11729
- return _objectSpread$2(_objectSpread$2({}, initChart(area)), initSeries(area));
11733
+ const area = {
11734
+ ...props
11735
+ };
11736
+ return {
11737
+ ...initChart(area),
11738
+ ...initSeries(area)
11739
+ };
11730
11740
  }, [props]);
11731
11741
  useEffect(() => {
11732
11742
  if (chartRef.current && chartRef.current.chart) {
@@ -11784,17 +11794,14 @@ var img$c = "data:image/svg+xml,%3csvg width='5894' height='1608' viewBox='0 0 5
11784
11794
 
11785
11795
  var img$b = "data:image/svg+xml,%3csvg width='893' height='221' viewBox='0 0 893 221' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M123.741 148.741H85.2506C51.0805 148.741 23.3801 121.041 23.3801 86.8706C23.3801 52.7005 51.0805 25.0001 85.2506 25.0001H220.681L197.302 54.6523H85.2505C67.4569 54.6523 53.0323 69.0769 53.0323 86.8706C53.0323 104.664 67.4569 119.089 85.2506 119.089H147.121L123.741 148.741Z' fill='url(%23paint0_linear_1362_1353)'/%3e%3cpath d='M96.9399 71.7585H135.431C169.601 71.7585 197.301 99.4589 197.301 133.629C197.301 167.799 169.601 195.499 135.431 195.499H0L23.3796 165.847H135.431C153.224 165.847 167.649 151.423 167.649 133.629C167.649 115.835 153.224 101.411 135.431 101.411H73.5602L96.9399 71.7585Z' fill='url(%23paint1_linear_1362_1353)'/%3e%3cpath d='M258.1 85.7725C258.1 89.0535 259.896 91.5532 263.49 93.2718C267.239 94.8341 273.098 96.4746 281.066 98.1932C290.128 100.068 297.705 102.177 303.798 104.521C309.891 106.864 315.125 110.614 319.5 115.769C324.03 120.769 326.296 127.565 326.296 136.158C326.296 143.814 323.952 150.453 319.265 156.078C314.734 161.702 308.641 165.999 300.986 168.967C293.33 171.779 284.972 173.186 275.91 173.186C263.568 173.186 252.944 170.842 244.039 166.155C235.289 161.468 228.806 154.75 224.587 146.001L248.491 133.58C252.71 144.36 261.849 149.75 275.91 149.75C282.003 149.75 287.237 148.579 291.612 146.235C295.986 143.892 298.174 140.533 298.174 136.158C298.174 132.408 296.143 129.674 292.081 127.956C288.175 126.081 281.769 124.05 272.864 121.863C263.646 119.675 256.147 117.488 250.366 115.301C244.585 113.114 239.586 109.754 235.368 105.224C231.149 100.537 229.04 94.3654 229.04 86.71C229.04 79.2107 231.149 72.727 235.368 67.2588C239.586 61.6344 245.288 57.3379 252.475 54.3695C259.662 51.401 267.552 49.9168 276.145 49.9168C286.3 49.9168 295.361 52.026 303.329 56.2443C311.454 60.4626 317.703 66.4776 322.078 74.2893L298.408 86.2412C294.346 77.4921 286.925 73.1176 276.145 73.1176C270.676 73.1176 266.302 74.2893 263.021 76.6328C259.74 78.8201 258.1 81.8667 258.1 85.7725Z' fill='%23303838'/%3e%3cpath d='M471.535 170.139H442.71V100.771C442.71 92.0219 440.21 85.7725 435.211 82.0229C430.367 78.1171 424.587 76.1641 417.869 76.1641C412.557 76.1641 407.713 77.8046 403.339 81.0855C399.12 84.3664 396.386 89.6003 395.136 96.787V170.139H366.077V6.09312H395.136V62.8061C399.042 59.0565 403.495 56.0881 408.495 53.9008C413.65 51.7135 419.118 50.6199 424.899 50.6199C431.773 50.6199 438.726 52.1041 445.756 55.0725C452.787 57.8847 458.802 62.9624 463.801 70.3054C468.957 77.6484 471.535 87.5692 471.535 100.068V170.139Z' fill='%23303838'/%3e%3cpath d='M538.164 33.5122C532.696 33.5122 528.399 32.028 525.275 29.0595C522.15 26.0911 520.588 22.029 520.588 16.8733C520.588 11.5613 522.15 7.42112 525.275 4.45267C528.399 1.48422 532.696 0 538.164 0C543.632 0 547.929 1.48422 551.053 4.45267C554.178 7.42112 555.74 11.5613 555.74 16.8733C555.74 21.8728 554.1 25.9349 550.819 29.0595C547.694 32.028 543.476 33.5122 538.164 33.5122ZM523.4 170.139V52.9634H552.459V170.139H523.4Z' fill='%23303838'/%3e%3cpath d='M694.084 52.9634H723.144V164.28C723.144 175.373 720.332 185.137 714.707 193.574C709.239 202.011 701.584 208.494 691.741 213.025C681.898 217.712 670.884 220.056 658.697 220.056C645.105 220.056 632.762 217.4 621.67 212.088C610.577 206.932 602.766 200.136 598.235 191.699L623.076 177.404C625.419 181.935 629.794 185.684 636.2 188.653C642.605 191.777 650.339 193.34 659.4 193.34C669.399 193.34 677.68 190.606 684.242 185.137C690.803 179.826 694.084 172.873 694.084 164.28V158.89C688.772 163.577 682.836 167.171 676.274 169.67C669.712 172.17 662.916 173.42 655.885 173.42C644.011 173.42 633.622 170.764 624.716 165.452C615.811 160.14 608.937 152.797 604.094 143.423C599.406 134.049 597.063 123.503 597.063 111.786C597.063 100.068 599.406 89.5222 604.094 80.1481C608.937 70.7741 615.811 63.4311 624.716 58.1191C633.622 52.6509 644.011 49.9168 655.885 49.9168C662.916 49.9168 669.634 51.2448 676.039 53.9008C682.601 56.4005 688.616 59.9158 694.084 64.4466V52.9634ZM659.635 145.532C666.04 145.532 671.821 144.126 676.977 141.314C682.289 138.345 686.429 134.283 689.397 129.128C692.522 123.972 694.084 118.113 694.084 111.551C694.084 101.708 690.725 93.6624 684.007 87.413C677.445 81.1636 669.321 78.0389 659.635 78.0389C649.792 78.0389 641.668 81.2418 635.262 87.6473C629.013 93.8967 625.888 101.943 625.888 111.786C625.888 121.628 629.013 129.752 635.262 136.158C641.668 142.407 649.792 145.532 659.635 145.532Z' fill='%23303838'/%3e%3cpath d='M863.755 52.9634H892.814V170.139H863.755V158.656C858.286 163.343 852.271 167.014 845.71 169.67C839.304 172.17 832.508 173.42 825.321 173.42C813.447 173.42 803.058 170.764 794.152 165.452C785.247 160.14 778.373 152.797 773.529 143.423C768.842 134.049 766.499 123.503 766.499 111.786C766.499 100.068 768.842 89.5222 773.529 80.1481C778.373 70.7741 785.247 63.4311 794.152 58.1191C803.058 52.6509 813.447 49.9168 825.321 49.9168C832.508 49.9168 839.304 51.2448 845.71 53.9008C852.271 56.4005 858.286 59.9939 863.755 64.6809V52.9634ZM829.071 145.532C835.476 145.532 841.257 144.126 846.413 141.314C851.725 138.345 855.865 134.283 858.833 129.128C861.958 123.972 863.52 118.113 863.52 111.551C863.52 101.708 860.161 93.6624 853.443 87.413C846.881 81.1636 838.757 78.0389 829.071 78.0389C819.228 78.0389 811.104 81.2418 804.698 87.6473C798.449 93.8967 795.324 101.943 795.324 111.786C795.324 121.628 798.449 129.752 804.698 136.158C811.104 142.407 819.228 145.532 829.071 145.532Z' fill='%23303838'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_1362_1353' x1='122.031' y1='25.0001' x2='122.031' y2='148.741' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23409393'/%3e%3cstop offset='1' stop-color='%2302424C'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear_1362_1353' x1='98.6506' y1='71.7585' x2='98.6506' y2='195.499' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%2302424C'/%3e%3cstop offset='1' stop-color='%23409393'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
11786
11796
 
11787
- const _excluded$b = ["href", "fallbackSrc", "src", "fit"],
11788
- _excluded2$3 = ["href", "src", "fit", "w"],
11789
- _excluded3$1 = ["href", "src", "fit"];
11790
11797
  const Logo = _ref => {
11791
11798
  let {
11792
- href = '/',
11793
- fallbackSrc,
11794
- src,
11795
- fit
11796
- } = _ref,
11797
- rest = _objectWithoutProperties(_ref, _excluded$b);
11799
+ href = '/',
11800
+ fallbackSrc,
11801
+ src,
11802
+ fit,
11803
+ ...rest
11804
+ } = _ref;
11798
11805
  return /*#__PURE__*/React.createElement(Center, _extends({}, rest, {
11799
11806
  component: Link,
11800
11807
  display: "flex",
@@ -11810,12 +11817,12 @@ const Logo = _ref => {
11810
11817
  };
11811
11818
  const DynamicLogo = _ref2 => {
11812
11819
  let {
11813
- href = "/",
11814
- src,
11815
- fit = "contain",
11816
- w = 180
11817
- } = _ref2,
11818
- rest = _objectWithoutProperties(_ref2, _excluded2$3);
11820
+ href = "/",
11821
+ src,
11822
+ fit = "contain",
11823
+ w = 180,
11824
+ ...rest
11825
+ } = _ref2;
11819
11826
  return /*#__PURE__*/React.createElement(Logo, _extends({}, rest, {
11820
11827
  href,
11821
11828
  src,
@@ -11825,11 +11832,11 @@ const DynamicLogo = _ref2 => {
11825
11832
  };
11826
11833
  const DynamicShigaLogo = _ref3 => {
11827
11834
  let {
11828
- href,
11829
- src,
11830
- fit = "contain"
11831
- } = _ref3,
11832
- rest = _objectWithoutProperties(_ref3, _excluded3$1);
11835
+ href,
11836
+ src,
11837
+ fit = "contain",
11838
+ ...rest
11839
+ } = _ref3;
11833
11840
  return /*#__PURE__*/React.createElement(Logo, _extends({}, rest, {
11834
11841
  href,
11835
11842
  src,
@@ -11838,13 +11845,12 @@ const DynamicShigaLogo = _ref3 => {
11838
11845
  }));
11839
11846
  };
11840
11847
 
11841
- const _excluded$a = ["children", "toggle"];
11842
11848
  const ApplicationMenuTarget = _ref => {
11843
11849
  let {
11844
- children,
11845
- toggle
11846
- } = _ref;
11847
- _objectWithoutProperties(_ref, _excluded$a);
11850
+ children,
11851
+ toggle,
11852
+ ...rest
11853
+ } = _ref;
11848
11854
  return /*#__PURE__*/React.createElement(Popover.Target, null, /*#__PURE__*/React.createElement(Button, {
11849
11855
  variant: "transparent",
11850
11856
  justify: "space-between",
@@ -11876,7 +11882,7 @@ const ApplicationMenuDropdown = _ref => {
11876
11882
  gap: 5,
11877
11883
  align: "flex-start"
11878
11884
  }, items.map((item, index) => /*#__PURE__*/React.createElement(DropdownItem, _extends({
11879
- key: "item-".concat(index)
11885
+ key: `item-${index}`
11880
11886
  }, item, {
11881
11887
  onClick: e => {
11882
11888
  toggle();
@@ -12011,38 +12017,35 @@ const UserMenuDropdown = _ref => {
12011
12017
  } = _ref;
12012
12018
  return /*#__PURE__*/React.createElement(Menu.Dropdown, null, sections.map((section, index) => {
12013
12019
  const items = [];
12014
- const sectionItems = section.items.map((item, key) => {
12015
- var _item$badge, _item$badge2;
12016
- return /*#__PURE__*/React.createElement(Menu.Item, {
12017
- c: section === null || section === void 0 ? void 0 : section.color,
12018
- key: "menu-item-".concat(key),
12019
- h: height,
12020
- leftSection: /*#__PURE__*/React.createElement(Icons, _extends({}, item.icon, {
12021
- stroke: 0.5
12022
- })),
12023
- rightSection: item !== null && item !== void 0 && item.disclosure ? /*#__PURE__*/React.createElement(Icons, {
12024
- name: "ArrowRight2",
12025
- size: 12,
12026
- stroke: 0.5
12027
- }) : item.badge ? /*#__PURE__*/React.createElement(Badge, {
12028
- color: item === null || item === void 0 || (_item$badge = item.badge) === null || _item$badge === void 0 ? void 0 : _item$badge.color,
12029
- size: "sm"
12030
- }, item === null || item === void 0 || (_item$badge2 = item.badge) === null || _item$badge2 === void 0 ? void 0 : _item$badge2.text) : undefined,
12031
- onClick: () => item.callbackFn ? item.callbackFn() : void 0
12032
- }, /*#__PURE__*/React.createElement(Text, {
12033
- size: "xs",
12034
- fw: 300
12035
- }, item.label));
12036
- });
12020
+ const sectionItems = section.items.map((item, key) => /*#__PURE__*/React.createElement(Menu.Item, {
12021
+ c: section?.color,
12022
+ key: `menu-item-${key}`,
12023
+ h: height,
12024
+ leftSection: /*#__PURE__*/React.createElement(Icons, _extends({}, item.icon, {
12025
+ stroke: 0.5
12026
+ })),
12027
+ rightSection: item?.disclosure ? /*#__PURE__*/React.createElement(Icons, {
12028
+ name: "ArrowRight2",
12029
+ size: 12,
12030
+ stroke: 0.5
12031
+ }) : item.badge ? /*#__PURE__*/React.createElement(Badge, {
12032
+ color: item?.badge?.color,
12033
+ size: "sm"
12034
+ }, item?.badge?.text) : undefined,
12035
+ onClick: () => item.callbackFn ? item.callbackFn() : void 0
12036
+ }, /*#__PURE__*/React.createElement(Text, {
12037
+ size: "xs",
12038
+ fw: 300
12039
+ }, item.label)));
12037
12040
  if (index) items.push(/*#__PURE__*/React.createElement(Divider, {
12038
- key: "divider-".concat(index),
12041
+ key: `divider-${index}`,
12039
12042
  my: 2
12040
12043
  }));
12041
- if (section !== null && section !== void 0 && section.title) items.push(/*#__PURE__*/React.createElement(Menu.Label, {
12044
+ if (section?.title) items.push(/*#__PURE__*/React.createElement(Menu.Label, {
12042
12045
  fz: 10,
12043
12046
  fw: 500,
12044
12047
  c: 'dimmed',
12045
- key: "label-".concat(index)
12048
+ key: `label-${index}`
12046
12049
  }, section.title));
12047
12050
  items.push(...sectionItems);
12048
12051
  return items;
@@ -12087,52 +12090,46 @@ const SideMenu = _ref => {
12087
12090
  sidemenu,
12088
12091
  onClick
12089
12092
  } = _ref;
12090
- return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
12091
- var _item$children, _item$children2;
12092
- return /*#__PURE__*/React.createElement(NavLink, {
12093
- className: "backoffice-sidemenu",
12094
- mt: "sm",
12095
- component: Link,
12096
- fw: 300,
12097
- style: {
12098
- borderRadius: radius
12099
- },
12100
- key: item.id,
12101
- active: item.active,
12102
- variant,
12103
- onClick,
12104
- leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
12105
- label: item.label,
12106
- to: (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? "#" : (item === null || item === void 0 ? void 0 : item.href) || "#"
12107
- }, (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(NavLink, {
12108
- mt: "xs",
12109
- component: Link,
12110
- to: subitem.href || "#",
12111
- label: subitem.label,
12112
- active: subitem.active,
12113
- onClick,
12114
- c: color,
12115
- fw: subitem.active ? 600 : 300,
12116
- variant: "transparent",
12117
- style: {
12118
- borderRadius: radius
12119
- },
12120
- key: subitem.id
12121
- })) : undefined);
12122
- }));
12093
+ return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => /*#__PURE__*/React.createElement(NavLink, {
12094
+ className: "backoffice-sidemenu",
12095
+ mt: "sm",
12096
+ component: Link,
12097
+ fw: 300,
12098
+ style: {
12099
+ borderRadius: radius
12100
+ },
12101
+ key: item.id,
12102
+ active: item.active,
12103
+ variant,
12104
+ onClick,
12105
+ leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
12106
+ label: item.label,
12107
+ to: item.children?.length ? "#" : item?.href || "#"
12108
+ }, item.children?.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(NavLink, {
12109
+ mt: "xs",
12110
+ component: Link,
12111
+ to: subitem.href || "#",
12112
+ label: subitem.label,
12113
+ active: subitem.active,
12114
+ onClick,
12115
+ c: color,
12116
+ fw: subitem.active ? 600 : 300,
12117
+ variant: "transparent",
12118
+ style: {
12119
+ borderRadius: radius
12120
+ },
12121
+ key: subitem.id
12122
+ })) : undefined)));
12123
12123
  };
12124
12124
 
12125
- const _excluded$9 = ["withPadding", "withRadius", "autoHeight", "children"],
12126
- _excluded2$2 = ["withPadding", "title", "children"],
12127
- _excluded3 = ["placeholder", "searchIcon", "filterIcon", "searchText", "filterFn", "children"];
12128
12125
  const SimplePanel = _ref => {
12129
12126
  let {
12130
- withPadding = true,
12131
- withRadius = true,
12132
- autoHeight = true,
12133
- children
12134
- } = _ref,
12135
- rest = _objectWithoutProperties(_ref, _excluded$9);
12127
+ withPadding = true,
12128
+ withRadius = true,
12129
+ autoHeight = true,
12130
+ children,
12131
+ ...rest
12132
+ } = _ref;
12136
12133
  return /*#__PURE__*/React.createElement(Card, _extends({
12137
12134
  p: !withPadding ? 0 : "md",
12138
12135
  radius: !withRadius ? 0 : "lg",
@@ -12141,11 +12138,11 @@ const SimplePanel = _ref => {
12141
12138
  };
12142
12139
  const TitledPanel = _ref2 => {
12143
12140
  let {
12144
- withPadding = true,
12145
- title,
12146
- children
12147
- } = _ref2,
12148
- rest = _objectWithoutProperties(_ref2, _excluded2$2);
12141
+ withPadding = true,
12142
+ title,
12143
+ children,
12144
+ ...rest
12145
+ } = _ref2;
12149
12146
  return /*#__PURE__*/React.createElement(SimplePanel, _extends({}, rest, {
12150
12147
  withPadding: withPadding
12151
12148
  }), /*#__PURE__*/React.createElement(Group, {
@@ -12179,18 +12176,18 @@ const TitledPanel = _ref2 => {
12179
12176
  };
12180
12177
  const SearchPanel = _ref3 => {
12181
12178
  let {
12182
- placeholder = "Search by name or reference",
12183
- searchIcon = {
12184
- name: "SearchNormal1"
12185
- },
12186
- filterIcon = {
12187
- name: "Setting5"
12188
- },
12189
- searchText = "Search",
12190
- filterFn,
12191
- children
12192
- } = _ref3,
12193
- rest = _objectWithoutProperties(_ref3, _excluded3);
12179
+ placeholder = "Search by name or reference",
12180
+ searchIcon = {
12181
+ name: "SearchNormal1"
12182
+ },
12183
+ filterIcon = {
12184
+ name: "Setting5"
12185
+ },
12186
+ searchText = "Search",
12187
+ filterFn,
12188
+ children,
12189
+ ...rest
12190
+ } = _ref3;
12194
12191
  return /*#__PURE__*/React.createElement(SimplePanel, rest, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Group, {
12195
12192
  gap: 'xs'
12196
12193
  }, /*#__PURE__*/React.createElement(TextInput, {
@@ -12236,21 +12233,19 @@ const LabelPanelItem = _ref => {
12236
12233
  }, value));
12237
12234
  };
12238
12235
 
12239
- const _excluded$8 = ["title", "hasEdit", "labelWidth", "editFn", "editLabel", "items", "withBorder", "radius", "p"],
12240
- _excluded2$1 = ["avatarSize", "avatar", "labelWidth", "withBorder", "radius", "p", "name", "username", "editLabel", "lastActive", "role", "editFn"];
12241
12236
  const LabelPanel = _ref => {
12242
12237
  let {
12243
- title,
12244
- hasEdit = true,
12245
- labelWidth = 200,
12246
- editFn = () => void 0,
12247
- editLabel = "Edit",
12248
- items,
12249
- withBorder = true,
12250
- radius = "md",
12251
- p = "md"
12252
- } = _ref,
12253
- rest = _objectWithoutProperties(_ref, _excluded$8);
12238
+ title,
12239
+ hasEdit = true,
12240
+ labelWidth = 200,
12241
+ editFn = () => void 0,
12242
+ editLabel = "Edit",
12243
+ items,
12244
+ withBorder = true,
12245
+ radius = "md",
12246
+ p = "md",
12247
+ ...rest
12248
+ } = _ref;
12254
12249
  return /*#__PURE__*/React.createElement(Card, _extends({}, rest, {
12255
12250
  withBorder,
12256
12251
  radius,
@@ -12276,7 +12271,7 @@ const LabelPanel = _ref => {
12276
12271
  })
12277
12272
  }, editLabel)), items.map((item, index) => {
12278
12273
  return /*#__PURE__*/React.createElement(LabelPanelItem, _extends({
12279
- key: "label-item-".concat(index)
12274
+ key: `label-item-${index}`
12280
12275
  }, item, {
12281
12276
  labelWidth: labelWidth
12282
12277
  }));
@@ -12284,20 +12279,20 @@ const LabelPanel = _ref => {
12284
12279
  };
12285
12280
  const AvatarLabelPanel = _ref2 => {
12286
12281
  let {
12287
- avatarSize = 150,
12288
- avatar,
12289
- labelWidth = 200,
12290
- withBorder = true,
12291
- radius = "md",
12292
- p = "md",
12293
- name = "Unknown",
12294
- username = "unknown",
12295
- editLabel = "Change Password",
12296
- lastActive,
12297
- role = "Staff",
12298
- editFn = void 0
12299
- } = _ref2,
12300
- rest = _objectWithoutProperties(_ref2, _excluded2$1);
12282
+ avatarSize = 150,
12283
+ avatar,
12284
+ labelWidth = 200,
12285
+ withBorder = true,
12286
+ radius = "md",
12287
+ p = "md",
12288
+ name = "Unknown",
12289
+ username = "unknown",
12290
+ editLabel = "Change Password",
12291
+ lastActive,
12292
+ role = "Staff",
12293
+ editFn = void 0,
12294
+ ...rest
12295
+ } = _ref2;
12301
12296
  return /*#__PURE__*/React.createElement(Card, _extends({}, rest, {
12302
12297
  withBorder,
12303
12298
  radius,
@@ -12345,22 +12340,19 @@ const AvatarLabelPanel = _ref2 => {
12345
12340
  }, editLabel)));
12346
12341
  };
12347
12342
 
12348
- const _excluded$7 = ["label", "smaller"];
12349
12343
  const SimpleText = _ref => {
12350
12344
  let {
12351
- label,
12352
- smaller
12353
- } = _ref,
12354
- rest = _objectWithoutProperties(_ref, _excluded$7);
12345
+ label,
12346
+ smaller,
12347
+ ...rest
12348
+ } = _ref;
12355
12349
  return /*#__PURE__*/React.createElement(Text, _extends({
12356
12350
  fw: 300,
12357
12351
  fz: smaller ? '90%' : undefined
12358
12352
  }, rest), label);
12359
12353
  };
12360
12354
 
12361
- const _excluded$6 = ["createFn", "icon", "label"];
12362
12355
  const PageTitle = _ref => {
12363
- var _switcher$items;
12364
12356
  let {
12365
12357
  title,
12366
12358
  subtitle = "",
@@ -12372,11 +12364,11 @@ const PageTitle = _ref => {
12372
12364
  } = _ref;
12373
12365
  if (withCreate && create) {
12374
12366
  const {
12375
- createFn,
12376
- icon,
12377
- label
12378
- } = create,
12379
- rest = _objectWithoutProperties(create, _excluded$6);
12367
+ createFn,
12368
+ icon,
12369
+ label,
12370
+ ...rest
12371
+ } = create;
12380
12372
  rightsection = /*#__PURE__*/React.createElement(Button, _extends({
12381
12373
  radius: "md",
12382
12374
  size: "sm",
@@ -12387,7 +12379,7 @@ const PageTitle = _ref => {
12387
12379
  fz: 14
12388
12380
  }, label));
12389
12381
  }
12390
- if (withSwitcher && switcher !== null && switcher !== void 0 && (_switcher$items = switcher.items) !== null && _switcher$items !== void 0 && _switcher$items.length) {
12382
+ if (withSwitcher && switcher?.items?.length) {
12391
12383
  rightsection = /*#__PURE__*/React.createElement(SegmentedControl, {
12392
12384
  size: "sm",
12393
12385
  bg: "white",
@@ -12409,7 +12401,7 @@ const PageTitle = _ref => {
12409
12401
  }, subtitle) : /*#__PURE__*/React.createElement(Breadcrumbs, {
12410
12402
  separatorMargin: "xs",
12411
12403
  separator: "\xB7"
12412
- }, subtitle === null || subtitle === void 0 ? void 0 : subtitle.map((item, index) => {
12404
+ }, subtitle?.map((item, index) => {
12413
12405
  return index < subtitle.length - 1 ? /*#__PURE__*/React.createElement(Anchor, {
12414
12406
  key: index,
12415
12407
  fz: 14,
@@ -12509,20 +12501,19 @@ const ConnectionPanelDetail = _ref => {
12509
12501
  }, value));
12510
12502
  };
12511
12503
 
12512
- const _excluded$5 = ["id", "statusColor", "name", "status", "edit", "test", "pause", "details", "altColor"];
12513
12504
  const ConnectionPanel = _ref => {
12514
12505
  let {
12515
- id,
12516
- statusColor,
12517
- name,
12518
- status,
12519
- edit,
12520
- test,
12521
- pause,
12522
- details,
12523
- altColor
12524
- } = _ref;
12525
- _objectWithoutProperties(_ref, _excluded$5);
12506
+ id,
12507
+ statusColor,
12508
+ name,
12509
+ status,
12510
+ edit,
12511
+ test,
12512
+ pause,
12513
+ details,
12514
+ altColor,
12515
+ ...rest
12516
+ } = _ref;
12526
12517
  return /*#__PURE__*/React.createElement(Card, {
12527
12518
  withBorder: true,
12528
12519
  bg: "gray.0",
@@ -12609,7 +12600,7 @@ const ConnectionPanel = _ref => {
12609
12600
  py: "lg"
12610
12601
  }, details.map((item, index) => {
12611
12602
  return /*#__PURE__*/React.createElement(ConnectionPanelDetail, _extends({
12612
- key: "detail-".concat(index)
12603
+ key: `detail-${index}`
12613
12604
  }, item, {
12614
12605
  altColor: altColor
12615
12606
  }));
@@ -12638,23 +12629,22 @@ const ApplicationPanelFeatures = _ref => {
12638
12629
  }, label));
12639
12630
  };
12640
12631
 
12641
- const _excluded$4 = ["name", "coverImage", "discount", "summary", "featureLabel", "features", "amount", "frequency", "actionLabel", "subscribed", "subscribedLabel", "onClick"];
12642
12632
  const ApplicationPanel = _ref => {
12643
12633
  let {
12644
- name,
12645
- coverImage,
12646
- discount = "",
12647
- summary,
12648
- featureLabel,
12649
- features,
12650
- amount,
12651
- frequency,
12652
- actionLabel,
12653
- subscribed,
12654
- subscribedLabel = "Added",
12655
- onClick = () => void 0
12656
- } = _ref,
12657
- rest = _objectWithoutProperties(_ref, _excluded$4);
12634
+ name,
12635
+ coverImage,
12636
+ discount = "",
12637
+ summary,
12638
+ featureLabel,
12639
+ features,
12640
+ amount,
12641
+ frequency,
12642
+ actionLabel,
12643
+ subscribed,
12644
+ subscribedLabel = "Added",
12645
+ onClick = () => void 0,
12646
+ ...rest
12647
+ } = _ref;
12658
12648
  return /*#__PURE__*/React.createElement(Card, _extends({
12659
12649
  withBorder: true,
12660
12650
  radius: "md"
@@ -12721,7 +12711,7 @@ const ApplicationPanel = _ref => {
12721
12711
  lineHeight: 1
12722
12712
  },
12723
12713
  mt: 3
12724
- }, "per ".concat(frequency))), /*#__PURE__*/React.createElement(Box, {
12714
+ }, `per ${frequency}`)), /*#__PURE__*/React.createElement(Box, {
12725
12715
  hidden: subscribed
12726
12716
  }, /*#__PURE__*/React.createElement(Button, {
12727
12717
  fw: 300,
@@ -12788,7 +12778,7 @@ const SubscriptionPlans = _ref => {
12788
12778
  fz: "sm",
12789
12779
  component: "span",
12790
12780
  c: "dimmed"
12791
- }, price[1] ? "/".concat(price[1]) : " /month"))), /*#__PURE__*/React.createElement(Button, {
12781
+ }, price[1] ? `/${price[1]}` : " /month"))), /*#__PURE__*/React.createElement(Button, {
12792
12782
  w: 100,
12793
12783
  size: "xs",
12794
12784
  fw: 500,
@@ -12832,7 +12822,7 @@ const PaymentMethod = _ref => {
12832
12822
  fz: 14,
12833
12823
  tt: "uppercase",
12834
12824
  fw: 500
12835
- }, "**** **** **** ".concat(pan)), /*#__PURE__*/React.createElement(Group, {
12825
+ }, `**** **** **** ${pan}`), /*#__PURE__*/React.createElement(Group, {
12836
12826
  c: "dimmed"
12837
12827
  }, /*#__PURE__*/React.createElement(Text, {
12838
12828
  tt: "capitalize",
@@ -12916,7 +12906,7 @@ const SimpleBody = _ref => {
12916
12906
  row["action"] = actionFn;
12917
12907
  }
12918
12908
  if (withIndex) {
12919
- row["index"] = "".concat(index ? index + 1 : 1);
12909
+ row["index"] = `${index ? index + 1 : 1}`;
12920
12910
  }
12921
12911
  return /*#__PURE__*/React.createElement(Table.Tr, {
12922
12912
  fw: 300,
@@ -12926,7 +12916,7 @@ const SimpleBody = _ref => {
12926
12916
  const columnIndex = column.id;
12927
12917
  return /*#__PURE__*/React.createElement(Table.Td, {
12928
12918
  key: idx
12929
- }, typeof row[columnIndex] === 'function' ? row[columnIndex]("".concat(index)) : row[columnIndex] || "");
12919
+ }, typeof row[columnIndex] === 'function' ? row[columnIndex](`${index}`) : row[columnIndex] || "");
12930
12920
  }));
12931
12921
  };
12932
12922
 
@@ -12962,7 +12952,7 @@ const SimpleTable = _ref => {
12962
12952
  bg: isStriped ? 'gray.1' : 'transparent'
12963
12953
  }, columns.map((column, index) => {
12964
12954
  return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
12965
- key: "column-".concat(index)
12955
+ key: `column-${index}`
12966
12956
  }, column));
12967
12957
  }))), /*#__PURE__*/React.createElement(Table.Tbody, null, rows.map((row, index) => {
12968
12958
  return /*#__PURE__*/React.createElement(SimpleBody, {
@@ -12987,7 +12977,6 @@ var img$1 = "data:image/svg+xml,%3csvg width='622' height='800' viewBox='0 0 622
12987
12977
 
12988
12978
  var img = "data:image/svg+xml,%3csvg width='622' height='800' viewBox='0 0 622 800' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M353.045 632.525C351.086 629.822 348.355 627.56 344.838 625.739C341.321 623.918 336.659 623.008 330.88 623.008H313.914V678.07H334.659C337.418 678.07 340.149 677.601 342.866 676.649C345.583 675.697 348.052 674.166 350.314 672.029C352.576 669.891 354.397 666.911 355.776 663.077C357.155 659.242 357.845 654.497 357.845 648.842C357.845 646.58 357.542 643.96 356.907 641.022C356.273 638.084 354.99 635.242 353.045 632.525Z' fill='%23273050'/%3e%3cpath d='M621.346 537.931V192.8C621.346 182.234 620.077 174.414 613.76 168.083L453.249 7.58621C448.436 2.77241 441.76 0 434.932 0H34.6287C18.27 0 0.65625 12.6345 0.65625 40.3586V537.931H621.346ZM428.242 46.7724C428.242 40.4552 435.87 37.2966 440.339 41.7655L579.58 181.007C584.049 185.476 580.891 193.103 574.573 193.103H428.242V46.7724ZM239.194 361.062H290.311V236.193V120.897V107.103C290.311 99.4759 296.477 93.3103 304.105 93.3103C311.732 93.3103 317.898 99.4759 317.898 107.103V119.49C319.346 125.848 330.973 169.228 384.96 212.428C398.863 223.572 408.96 233.876 416.794 244.855C435.622 271.255 463.884 326.634 441.442 400.772C439.636 406.731 434.173 410.566 428.242 410.566C426.918 410.566 425.58 410.372 424.242 409.972C418.284 408.166 414.449 402.703 414.449 396.772C414.449 395.448 414.642 394.11 415.042 392.772C428.518 348.276 374.973 308.855 342.987 285.283C333.884 278.593 326.684 273.297 322.008 268.662L317.898 265.283V423.531C317.898 471.407 278.96 510.345 231.084 510.345C183.277 510.345 152.38 479.448 152.38 431.641C152.38 388.11 185.649 361.062 239.194 361.062Z' fill='%235F6EA7'/%3e%3cpath d='M0.65625 565.518V772.414C0.65625 786.331 17.4838 800 34.6287 800H587.373C604.518 800 621.346 786.331 621.346 772.414V565.518H0.65625ZM256.767 744.828H233.76V649.214L202.642 726.524H182.656L151.346 649.214V744.828H128.339V605.849H151.346L192.642 700.897L233.746 605.849H256.753V744.828H256.767ZM376.146 667.987C373.76 673.711 370.422 678.524 366.146 682.414C361.87 686.304 356.711 689.324 350.684 691.462C344.656 693.6 337.98 694.662 330.698 694.662H313.911V744.828H291.277V605.849H331.249C337.167 605.849 343.015 606.787 348.78 608.676C354.546 610.566 359.746 613.393 364.339 617.159C368.932 620.924 372.642 625.49 375.47 630.828C378.298 636.166 379.718 642.166 379.718 648.842C379.718 655.89 378.532 662.262 376.146 667.987ZM481.456 720.98C479.636 725.573 477.332 729.366 474.573 732.387C471.815 735.407 468.698 737.835 465.236 739.642C461.773 741.449 458.422 742.814 455.153 743.697C451.884 744.58 448.904 745.131 446.201 745.393C443.498 745.656 441.387 745.766 439.884 745.766C429.318 745.766 421.001 745.035 414.891 743.6C408.78 742.166 404.546 740.676 402.16 739.173L407.249 722.952C408.38 723.587 409.442 724.276 410.449 725.021C411.456 725.766 412.905 726.497 414.78 727.187C416.656 727.876 419.304 728.442 422.698 728.883C426.091 729.324 430.739 729.545 436.656 729.545C445.332 729.545 451.815 727.187 456.077 722.469C460.339 717.752 462.491 711.821 462.491 704.649C462.491 697.862 460.532 692.138 456.642 687.49C452.753 682.842 447.029 680.511 439.484 680.511H420.436L420.242 665.242H433.07C435.829 665.242 438.629 665.173 441.456 665.049C444.284 664.924 446.946 664.221 449.47 662.98C451.994 661.738 454.063 659.587 455.691 656.566C457.318 653.545 458.146 649.214 458.146 643.559C458.146 641.297 457.953 638.911 457.58 636.387C457.208 633.862 456.16 631.545 454.463 629.407C452.767 627.269 450.284 625.545 447.015 624.221C443.746 622.897 439.222 622.235 433.442 622.235C427.663 622.235 423.042 622.773 419.58 623.835C416.118 624.897 413.525 625.752 411.76 626.387L405.153 609.421C408.173 608.552 411.911 607.6 416.367 606.593C420.822 605.587 427.277 605.09 435.691 605.09C441.608 605.09 447.194 605.821 452.477 607.256C457.76 608.69 462.38 610.993 466.339 614.138C470.298 617.283 473.442 621.311 475.773 626.207C478.105 631.104 479.263 636.883 479.263 643.559C479.263 647.449 478.573 651.007 477.194 654.207C475.815 657.407 474.049 660.221 471.911 662.593C469.773 664.966 467.387 666.952 464.739 668.538C462.091 670.124 459.649 671.145 457.387 671.656C460.284 672.028 463.263 672.98 466.339 674.483C469.415 675.987 472.284 678.138 474.918 680.897C477.553 683.656 479.76 687.021 481.525 690.98C483.291 694.938 484.16 699.49 484.16 704.649C484.201 710.952 483.277 716.387 481.456 720.98Z' fill='%23273050'/%3e%3c/svg%3e";
12989
12979
 
12990
- const _excluded$3 = ["shape", "type", "w", "bg", "bd", "rightsection"];
12991
12980
  const CHIP_HEIGHT = 25;
12992
12981
  const TILE_HEIGHT = 70;
12993
12982
  const CHIP_WIDTH = CHIP_HEIGHT;
@@ -13001,14 +12990,14 @@ const ICON = {
13001
12990
  };
13002
12991
  const File = _ref => {
13003
12992
  let {
13004
- shape = "chip",
13005
- type = "pdf",
13006
- w = 250,
13007
- bg = "gray.0",
13008
- bd = "0.5px solid",
13009
- rightsection
13010
- } = _ref,
13011
- rest = _objectWithoutProperties(_ref, _excluded$3);
12993
+ shape = "chip",
12994
+ type = "pdf",
12995
+ w = 250,
12996
+ bg = "gray.0",
12997
+ bd = "0.5px solid",
12998
+ rightsection,
12999
+ ...rest
13000
+ } = _ref;
13012
13001
  const isChip = shape == "chip";
13013
13002
  const radius = isChip ? "md" : "sm";
13014
13003
  return /*#__PURE__*/React.createElement(Card, _extends({}, rest, {
@@ -13033,7 +13022,7 @@ const File = _ref => {
13033
13022
  }), rightsection ? /*#__PURE__*/React.createElement(ActionIcon, {
13034
13023
  variant: "transparent",
13035
13024
  onClick: rightsection.onClick
13036
- }, /*#__PURE__*/React.createElement(Icons, rightsection === null || rightsection === void 0 ? void 0 : rightsection.icon)) : undefined)));
13025
+ }, /*#__PURE__*/React.createElement(Icons, rightsection?.icon)) : undefined)));
13037
13026
  };
13038
13027
 
13039
13028
  const theme = createTheme({
@@ -13104,15 +13093,13 @@ const InfoModal = _ref => {
13104
13093
  }, "Close modal"));
13105
13094
  };
13106
13095
 
13107
- const _excluded$2 = ["context", "id", "innerProps"];
13108
13096
  const SimpleModal = _ref => {
13109
- var _innerProps$labels, _innerProps$labels2, _innerProps$labels3, _innerProps$labels4;
13110
13097
  let {
13111
- context,
13112
- id,
13113
- innerProps
13114
- } = _ref;
13115
- _objectWithoutProperties(_ref, _excluded$2);
13098
+ context,
13099
+ id,
13100
+ innerProps,
13101
+ ...rest
13102
+ } = _ref;
13116
13103
  return /*#__PURE__*/React.createElement(Stack, {
13117
13104
  pt: "lg",
13118
13105
  gap: "xl"
@@ -13125,19 +13112,20 @@ const SimpleModal = _ref => {
13125
13112
  lh: '40px'
13126
13113
  }, innerProps.title), /*#__PURE__*/React.createElement(React.Fragment, null, innerProps.modalBody)), /*#__PURE__*/React.createElement(Group, _extends({
13127
13114
  gap: "sm"
13128
- }, innerProps === null || innerProps === void 0 ? void 0 : innerProps.groupProps, {
13115
+ }, innerProps?.groupProps, {
13129
13116
  grow: true
13130
13117
  }), /*#__PURE__*/React.createElement(Button, _extends({
13131
- hidden: !(innerProps !== null && innerProps !== void 0 && (_innerProps$labels = innerProps.labels) !== null && _innerProps$labels !== void 0 && _innerProps$labels.cancel)
13132
- }, innerProps === null || innerProps === void 0 ? void 0 : innerProps.cancelProps, {
13118
+ hidden: !innerProps?.labels?.cancel
13119
+ }, innerProps?.cancelProps, {
13133
13120
  onClick: () => context.closeModal(id),
13134
13121
  fw: 300
13135
- }), innerProps === null || innerProps === void 0 || (_innerProps$labels2 = innerProps.labels) === null || _innerProps$labels2 === void 0 ? void 0 : _innerProps$labels2.cancel), /*#__PURE__*/React.createElement(Button, _extends({
13136
- hidden: !(innerProps !== null && innerProps !== void 0 && (_innerProps$labels3 = innerProps.labels) !== null && _innerProps$labels3 !== void 0 && _innerProps$labels3.confirm)
13137
- }, innerProps === null || innerProps === void 0 ? void 0 : innerProps.confirmProps, {
13122
+ }), innerProps?.labels?.cancel), /*#__PURE__*/React.createElement(Button, _extends({
13123
+ loading: innerProps?.isLoading,
13124
+ hidden: !innerProps?.labels?.confirm
13125
+ }, innerProps?.confirmProps, {
13138
13126
  onClick: () => context.closeModal(id),
13139
13127
  fw: 300
13140
- }), innerProps === null || innerProps === void 0 || (_innerProps$labels4 = innerProps.labels) === null || _innerProps$labels4 === void 0 ? void 0 : _innerProps$labels4.confirm)));
13128
+ }), innerProps?.labels?.confirm)));
13141
13129
  };
13142
13130
 
13143
13131
  var SuccessAnimation = "data:null;base64,UEsDBBQAAAAIALCR1locZoERgAAAALUAAAANAAAAbWFuaWZlc3QuanNvbo2NOw7CMBAF77I1DvGHKEqVC3ACROHPBowcG9kLEopyd7aipntPmtFs8MbaYskwgYQD3DBjtVQq/zkUSoUo4vG3xKPNslNdz6x90f0/MMfVEkcaTJcNYmBHm0F6Z07Ca6+EGcwiRoNaqFFahU66Xi+sPpP9nEtANnKpq02wX/cvUEsDBBQAAAAIALCR1lpRipIvnQ0A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36Ubw+KPVtT4MSev73HhuVJT5Khx6c5SYbVPicYFNviACA+BIDzm+NTw6z38YWmhFJGW4BZY3toGGfSSJLGC00E2cUWWGyBw+fIcLZ35jkyUjJJ0YlzZKQ5U/lTj/XOkaXKPjaFY05G58hYz1CMHahuPARGZ8DCOTIOZEnPkYVDCuk5shB5kpwjC6eZSUQ4RcaqsTtFdtKPArqgOyQ7ihBo0x7wfa4qpAeoJ1AhKLjnNPKPuXkE82lOJAmMIrKwQUCx8ThWIThwbONRsfbrrRR3NTpHUMHyIlG66knC53V+iG8A7dMpj5SyKJa520nB/N+zndTPnLOdFA4MVEGXhJR2T6mX1ySdlAbs+VzEs4XwBNBiW48J4RyMjFeZ6RJeXPTzPWoyHWC3eL3ebjc7WjRv7/8PUEsBAhQAFAAAAAgAsJHWWhxmgRGAAAAAtQAAAA0AAAAAAAAAAAAAAAAAAAAAAG1hbmlmZXN0Lmpzb25QSwECFAAUAAAACACwkdZaUYqSL50NAAAMagAANAAAAAAAAAAAAAAAAACrAAAAYW5pbWF0aW9ucy8zNDYxY2I0NS1jM2MyLTQ2NGYtODRlMy0yODFhMmViMWIwM2YuanNvblBLBQYAAAAAAgACAJ0AAACaDgAAAAA=";
@@ -13238,18 +13226,15 @@ const Drawer = _ref => {
13238
13226
  }, page))));
13239
13227
  };
13240
13228
 
13241
- const _excluded$1 = ["fields", "isEditable", "layout", "hasSubmit", "hasReset"];
13242
- function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13243
- function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13244
13229
  const SimpleForm = _ref => {
13245
13230
  let {
13246
- fields,
13247
- isEditable = true,
13248
- layout = [],
13249
- hasSubmit,
13250
- hasReset
13251
- } = _ref,
13252
- rest = _objectWithoutProperties(_ref, _excluded$1);
13231
+ fields,
13232
+ isEditable = true,
13233
+ layout = [],
13234
+ hasSubmit,
13235
+ hasReset,
13236
+ ...rest
13237
+ } = _ref;
13253
13238
  const components = {
13254
13239
  Textarea: Textarea,
13255
13240
  TextInput: TextInput,
@@ -13266,12 +13251,14 @@ const SimpleForm = _ref => {
13266
13251
  localInitialValues[sanitizedField.name] = "";
13267
13252
  }
13268
13253
  if (typeof field === "object" && Object.keys(components).includes(field.component)) {
13269
- var _field$field;
13270
- const sanitizedField = santize((_field$field = field.field) !== null && _field$field !== void 0 ? _field$field : "");
13254
+ const sanitizedField = santize(field.field ?? "");
13271
13255
  localInitialValues[sanitizedField.name] = "";
13272
13256
  }
13273
13257
  });
13274
- return _objectSpread$1(_objectSpread$1({}, localInitialValues), rest.initialValues);
13258
+ return {
13259
+ ...localInitialValues,
13260
+ ...rest.initialValues
13261
+ };
13275
13262
  },
13276
13263
  validate: rest.formValidate
13277
13264
  });
@@ -13289,10 +13276,7 @@ const SimpleForm = _ref => {
13289
13276
  required: true
13290
13277
  };
13291
13278
  return /*#__PURE__*/React.createElement("form", {
13292
- onSubmit: form.onSubmit(values => {
13293
- var _rest$onSubmit;
13294
- return hasSubmit ? (_rest$onSubmit = rest.onSubmit) === null || _rest$onSubmit === void 0 ? void 0 : _rest$onSubmit.call(rest, values) : void 0;
13295
- }),
13279
+ onSubmit: form.onSubmit(values => hasSubmit ? rest.onSubmit?.(values) : void 0),
13296
13280
  onReset: form.reset,
13297
13281
  style: {
13298
13282
  height: "100%"
@@ -13314,9 +13298,8 @@ const SimpleForm = _ref => {
13314
13298
  }, field(form.getInputProps));
13315
13299
  }
13316
13300
  if (Object.keys(components).includes(field.component)) {
13317
- var _field$field2;
13318
13301
  const Component = components[field.component];
13319
- const sanitizedField = santize((_field$field2 = field.field) !== null && _field$field2 !== void 0 ? _field$field2 : "");
13302
+ const sanitizedField = santize(field.field ?? "");
13320
13303
  return /*#__PURE__*/React.createElement(Grid.Col, {
13321
13304
  key: index,
13322
13305
  span: layout[index]
@@ -13331,26 +13314,25 @@ const SimpleForm = _ref => {
13331
13314
  })));
13332
13315
  };
13333
13316
  const santize = field => {
13334
- var _ref2, _field$label, _field$placeholder, _field$name, _field$name$split$joi, _field$name2;
13335
13317
  if (typeof field === "string") {
13336
- const name = field === null || field === void 0 ? void 0 : field.split(" ").join("_").toLowerCase();
13318
+ const name = field?.split(" ").join("_").toLowerCase();
13337
13319
  return {
13338
13320
  label: field,
13339
- placeholder: "Please enter ".concat(field.toLowerCase()),
13321
+ placeholder: `Please enter ${field.toLowerCase()}`,
13340
13322
  name
13341
13323
  };
13342
13324
  }
13343
13325
  return {
13344
- label: "".concat((_ref2 = (_field$label = field === null || field === void 0 ? void 0 : field.label) !== null && _field$label !== void 0 ? _field$label : field === null || field === void 0 ? void 0 : field.name) !== null && _ref2 !== void 0 ? _ref2 : ""),
13345
- placeholder: (_field$placeholder = field.placeholder) !== null && _field$placeholder !== void 0 ? _field$placeholder : "Please enter ".concat((_field$name = field.name) === null || _field$name === void 0 ? void 0 : _field$name.toLowerCase()),
13346
- name: (_field$name$split$joi = (_field$name2 = field.name) === null || _field$name2 === void 0 ? void 0 : _field$name2.split(" ").join("_").toLowerCase()) !== null && _field$name$split$joi !== void 0 ? _field$name$split$joi : ""
13326
+ label: `${field?.label ?? field?.name ?? ""}`,
13327
+ placeholder: field.placeholder ?? `Please enter ${field.name?.toLowerCase()}`,
13328
+ name: field.name?.split(" ").join("_").toLowerCase() ?? ""
13347
13329
  };
13348
13330
  };
13349
- const FormButtons = _ref3 => {
13331
+ const FormButtons = _ref2 => {
13350
13332
  let {
13351
13333
  hasSubmit = false,
13352
13334
  hasReset = false
13353
- } = _ref3;
13335
+ } = _ref2;
13354
13336
  return /*#__PURE__*/React.createElement(Group, {
13355
13337
  justify: "flex-end",
13356
13338
  grow: true,
@@ -13477,8 +13459,7 @@ var ConfirmAnimation = "data:null;base64,UEsDBBQAAAAIAEoK11qAribJgAAAALUAAAANAAA
13477
13459
 
13478
13460
  const ConfirmModal = _ref => {
13479
13461
  let {
13480
- children
13481
- } = _ref;
13462
+ children} = _ref;
13482
13463
  return /*#__PURE__*/React.createElement(Stack, {
13483
13464
  align: "center",
13484
13465
  py: "md"
@@ -13496,10 +13477,6 @@ const ConfirmModal = _ref => {
13496
13477
  }, children));
13497
13478
  };
13498
13479
 
13499
- const _excluded = ["title", "children", "onConfirm", "labels"],
13500
- _excluded2 = ["title", "children", "onConfirm", "labels", "pinLength"];
13501
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13502
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13503
13480
  const useModal = () => {
13504
13481
  const groupProps = {
13505
13482
  gap: "sm",
@@ -13510,10 +13487,11 @@ const useModal = () => {
13510
13487
  fw: 300,
13511
13488
  size: "md"
13512
13489
  };
13513
- const cancelProps = _objectSpread(_objectSpread({}, confirmProps), {}, {
13490
+ const cancelProps = {
13491
+ ...confirmProps,
13514
13492
  color: "#F95454",
13515
13493
  variant: "filled"
13516
- });
13494
+ };
13517
13495
  const buttonProps = {
13518
13496
  groupProps,
13519
13497
  confirmProps,
@@ -13521,23 +13499,29 @@ const useModal = () => {
13521
13499
  };
13522
13500
  const ConfirmationModal = _ref => {
13523
13501
  let {
13524
- title = "",
13525
- children,
13526
- onConfirm,
13527
- labels = {
13528
- cancel: "Cancel",
13529
- confirm: "Confirm"
13530
- }
13531
- } = _ref,
13532
- rest = _objectWithoutProperties(_ref, _excluded);
13533
- return modals.openConfirmModal(_objectSpread(_objectSpread({
13502
+ title = "",
13503
+ children,
13504
+ onConfirm,
13505
+ labels = {
13506
+ cancel: "Cancel",
13507
+ confirm: "Confirm"
13508
+ },
13509
+ loading,
13510
+ ...rest
13511
+ } = _ref;
13512
+ return modals.openConfirmModal({
13534
13513
  children: ConfirmModal({
13535
13514
  children
13536
- })
13537
- }, buttonProps), {}, {
13515
+ }),
13516
+ ...buttonProps,
13517
+ confirmProps: {
13518
+ ...buttonProps.confirmProps,
13519
+ loading
13520
+ },
13538
13521
  onConfirm,
13539
- labels
13540
- }, rest));
13522
+ labels,
13523
+ ...rest
13524
+ });
13541
13525
  };
13542
13526
  const ErrorModal = _ref2 => {
13543
13527
  let {
@@ -13568,6 +13552,7 @@ const useModal = () => {
13568
13552
  let {
13569
13553
  title,
13570
13554
  message,
13555
+ loading,
13571
13556
  size = "md",
13572
13557
  labels = {
13573
13558
  cancel: "Cancel",
@@ -13576,13 +13561,14 @@ const useModal = () => {
13576
13561
  } = _ref3;
13577
13562
  return modals.openContextModal({
13578
13563
  modal: "SimpleModal",
13579
- innerProps: _objectSpread(_objectSpread({
13564
+ innerProps: {
13580
13565
  modalBody: message,
13566
+ loading: loading,
13581
13567
  title: title,
13582
- size: size
13583
- }, buttonProps), {}, {
13568
+ size: size,
13569
+ ...buttonProps,
13584
13570
  labels
13585
- })
13571
+ }
13586
13572
  });
13587
13573
  };
13588
13574
  const SuccessModal = _ref4 => {
@@ -13605,26 +13591,32 @@ const useModal = () => {
13605
13591
  };
13606
13592
  const TwoFactorVerificationModal = _ref5 => {
13607
13593
  let {
13608
- title = "",
13609
- children,
13610
- onConfirm,
13611
- labels = {
13612
- cancel: "Cancel",
13613
- confirm: "Confirm"
13614
- },
13615
- pinLength = 6
13616
- } = _ref5,
13617
- rest = _objectWithoutProperties(_ref5, _excluded2);
13618
- return modals.openConfirmModal(_objectSpread(_objectSpread({
13594
+ title = "",
13595
+ children,
13596
+ loading,
13597
+ onConfirm,
13598
+ labels = {
13599
+ cancel: "Cancel",
13600
+ confirm: "Confirm"
13601
+ },
13602
+ pinLength = 6,
13603
+ ...rest
13604
+ } = _ref5;
13605
+ return modals.openConfirmModal({
13619
13606
  children: TwoFactorModal({
13620
13607
  children,
13621
13608
  title,
13622
13609
  pinLength
13623
- })
13624
- }, buttonProps), {}, {
13610
+ }),
13611
+ ...buttonProps,
13612
+ confirmProps: {
13613
+ ...buttonProps.confirmProps,
13614
+ loading
13615
+ },
13625
13616
  onConfirm,
13626
- labels
13627
- }, rest));
13617
+ labels,
13618
+ ...rest
13619
+ });
13628
13620
  };
13629
13621
  return {
13630
13622
  ConfirmationModal,