@adiba-banking-cloud/backoffice 0.0.34 → 0.0.36

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,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var _extends = require('@babel/runtime/helpers/extends');
4
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
+ var modals = require('@mantine/modals');
5
6
  var React = require('react');
7
+ var core = require('@mantine/core');
8
+ var IconSax = require('iconsax-react');
9
+ var _extends = require('@babel/runtime/helpers/extends');
6
10
  var HighchartsReact = require('highcharts-react-official');
7
11
  var HighchartsRounded = require('highcharts-rounded-corners');
8
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
9
- var IconSax = require('iconsax-react');
10
- var core = require('@mantine/core');
11
12
  var reactRouterDom = require('react-router-dom');
12
13
  var hooks = require('@mantine/hooks');
13
14
  require('@fontsource/poppins/100.css');
@@ -11340,8 +11341,8 @@ const createAreaFillGradient = function (baseColor) {
11340
11341
  };
11341
11342
  };
11342
11343
 
11343
- 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; }
11344
- 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; }
11344
+ 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; }
11345
+ 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; }
11345
11346
 
11346
11347
  // Initialize Highcharts with rounded corners
11347
11348
  if (typeof window !== "undefined") {
@@ -11350,8 +11351,8 @@ if (typeof window !== "undefined") {
11350
11351
  const Column = props => {
11351
11352
  const chartRef = React.useRef(null);
11352
11353
  const chartOptions = React.useMemo(() => {
11353
- const column = _objectSpread$3({}, props);
11354
- return _objectSpread$3(_objectSpread$3({}, initChart$2(column)), initSeries$2(column));
11354
+ const column = _objectSpread$4({}, props);
11355
+ return _objectSpread$4(_objectSpread$4({}, initChart$2(column)), initSeries$2(column));
11355
11356
  }, [props]);
11356
11357
  React.useEffect(() => {
11357
11358
  if (chartRef.current && chartRef.current.chart) {
@@ -11454,7 +11455,7 @@ const initSeries$2 = props => {
11454
11455
  enableMouseTracking: false,
11455
11456
  showInLegend: false
11456
11457
  });
11457
- const mainSeries = _objectSpread$3(_objectSpread$3({}, fillSeries(boundary)), {
11458
+ const mainSeries = _objectSpread$4(_objectSpread$4({}, fillSeries(boundary)), {
11458
11459
  name: props.yAxisLabel[0],
11459
11460
  color: seriesColors ? seriesColors[0] : "gray",
11460
11461
  data: seriesData[0],
@@ -11494,7 +11495,7 @@ const initSeries$2 = props => {
11494
11495
  pointWidth: undefined
11495
11496
  }
11496
11497
  };
11497
- const plot = _objectSpread$3(_objectSpread$3({}, {
11498
+ const plot = _objectSpread$4(_objectSpread$4({}, {
11498
11499
  column: {
11499
11500
  borderWidth: 0,
11500
11501
  borderRadius: 10
@@ -11549,13 +11550,13 @@ const initChart$1 = props => {
11549
11550
  };
11550
11551
  };
11551
11552
 
11552
- 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; }
11553
- 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; }
11553
+ 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; }
11554
+ 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; }
11554
11555
  const Area = props => {
11555
11556
  const chartRef = React.useRef(null);
11556
11557
  const chartOptions = React.useMemo(() => {
11557
- const area = _objectSpread$2({}, props);
11558
- return _objectSpread$2(_objectSpread$2({}, initChart$1(area)), initSeries$1(area));
11558
+ const area = _objectSpread$3({}, props);
11559
+ return _objectSpread$3(_objectSpread$3({}, initChart$1(area)), initSeries$1(area));
11559
11560
  }, [props]);
11560
11561
  React.useEffect(() => {
11561
11562
  if (chartRef.current && chartRef.current.chart) {
@@ -11616,7 +11617,7 @@ const initSeries$1 = props => {
11616
11617
  const labels = {
11617
11618
  color: "#575E77"
11618
11619
  };
11619
- return _objectSpread$2(_objectSpread$2({}, defaults), {
11620
+ return _objectSpread$3(_objectSpread$3({}, defaults), {
11620
11621
  labels
11621
11622
  });
11622
11623
  };
@@ -11653,16 +11654,16 @@ const initSeries$1 = props => {
11653
11654
  };
11654
11655
  };
11655
11656
 
11656
- const _excluded$9 = ["withLegend", "centerLabel", "centerValue"];
11657
- 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; }
11658
- 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; }
11657
+ const _excluded$a = ["withLegend", "centerLabel", "centerValue"];
11658
+ 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; }
11659
+ 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; }
11659
11660
  const initChart = _ref => {
11660
11661
  let {
11661
11662
  withLegend,
11662
11663
  centerLabel = "",
11663
11664
  centerValue = ""
11664
11665
  } = _ref;
11665
- _objectWithoutProperties(_ref, _excluded$9);
11666
+ _objectWithoutProperties(_ref, _excluded$a);
11666
11667
  return {
11667
11668
  chart: {
11668
11669
  type: "pie",
@@ -11705,7 +11706,7 @@ const initChart = _ref => {
11705
11706
  },
11706
11707
  legend: !withLegend ? {
11707
11708
  enabled: false
11708
- } : _objectSpread$1(_objectSpread$1({}, {
11709
+ } : _objectSpread$2(_objectSpread$2({}, {
11709
11710
  enabled: true,
11710
11711
  layout: "vertical",
11711
11712
  verticalAlign: "middle",
@@ -11738,13 +11739,13 @@ const initChart = _ref => {
11738
11739
  };
11739
11740
  };
11740
11741
 
11741
- 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; }
11742
- 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; }
11742
+ 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; }
11743
+ 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; }
11743
11744
  const DonutChart = props => {
11744
11745
  const chartRef = React.useRef(null);
11745
11746
  const chartOptions = React.useMemo(() => {
11746
- const area = _objectSpread({}, props);
11747
- return _objectSpread(_objectSpread({}, initChart(area)), initSeries(area));
11747
+ const area = _objectSpread$1({}, props);
11748
+ return _objectSpread$1(_objectSpread$1({}, initChart(area)), initSeries(area));
11748
11749
  }, [props]);
11749
11750
  React.useEffect(() => {
11750
11751
  if (chartRef.current && chartRef.current.chart) {
@@ -11802,7 +11803,7 @@ var img$c = "data:image/svg+xml,%3csvg width='5894' height='1608' viewBox='0 0 5
11802
11803
 
11803
11804
  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";
11804
11805
 
11805
- const _excluded$8 = ["href", "fallbackSrc", "src", "fit"],
11806
+ const _excluded$9 = ["href", "fallbackSrc", "src", "fit"],
11806
11807
  _excluded2$2 = ["href", "src", "fit", "w"],
11807
11808
  _excluded3$1 = ["href", "src", "fit"];
11808
11809
  const Logo = _ref => {
@@ -11812,7 +11813,7 @@ const Logo = _ref => {
11812
11813
  src,
11813
11814
  fit
11814
11815
  } = _ref,
11815
- rest = _objectWithoutProperties(_ref, _excluded$8);
11816
+ rest = _objectWithoutProperties(_ref, _excluded$9);
11816
11817
  return /*#__PURE__*/React.createElement(core.Center, _extends({}, rest, {
11817
11818
  component: reactRouterDom.Link,
11818
11819
  display: "flex",
@@ -11856,13 +11857,13 @@ const DynamicShigaLogo = _ref3 => {
11856
11857
  }));
11857
11858
  };
11858
11859
 
11859
- const _excluded$7 = ["children", "toggle"];
11860
+ const _excluded$8 = ["children", "toggle"];
11860
11861
  const ApplicationMenuTarget = _ref => {
11861
11862
  let {
11862
11863
  children,
11863
11864
  toggle
11864
11865
  } = _ref;
11865
- _objectWithoutProperties(_ref, _excluded$7);
11866
+ _objectWithoutProperties(_ref, _excluded$8);
11866
11867
  return /*#__PURE__*/React.createElement(core.Popover.Target, null, /*#__PURE__*/React.createElement(core.Button, {
11867
11868
  variant: "transparent",
11868
11869
  justify: "space-between",
@@ -12139,7 +12140,7 @@ const SideMenu = _ref => {
12139
12140
  }));
12140
12141
  };
12141
12142
 
12142
- const _excluded$6 = ["withPadding", "withRadius", "autoHeight", "children"],
12143
+ const _excluded$7 = ["withPadding", "withRadius", "autoHeight", "children"],
12143
12144
  _excluded2$1 = ["withPadding", "title", "children"],
12144
12145
  _excluded3 = ["placeholder", "searchIcon", "filterIcon", "searchText", "filterFn", "children"];
12145
12146
  const SimplePanel = _ref => {
@@ -12149,7 +12150,7 @@ const SimplePanel = _ref => {
12149
12150
  autoHeight = true,
12150
12151
  children
12151
12152
  } = _ref,
12152
- rest = _objectWithoutProperties(_ref, _excluded$6);
12153
+ rest = _objectWithoutProperties(_ref, _excluded$7);
12153
12154
  return /*#__PURE__*/React.createElement(core.Card, _extends({
12154
12155
  p: !withPadding ? 0 : "md",
12155
12156
  radius: !withRadius ? 0 : "lg",
@@ -12253,7 +12254,7 @@ const LabelPanelItem = _ref => {
12253
12254
  }, value));
12254
12255
  };
12255
12256
 
12256
- const _excluded$5 = ["title", "hasEdit", "labelWidth", "editFn", "editLabel", "items", "withBorder", "radius", "p"],
12257
+ const _excluded$6 = ["title", "hasEdit", "labelWidth", "editFn", "editLabel", "items", "withBorder", "radius", "p"],
12257
12258
  _excluded2 = ["avatarSize", "avatar", "labelWidth", "withBorder", "radius", "p", "name", "username", "editLabel", "lastActive", "role", "editFn"];
12258
12259
  const LabelPanel = _ref => {
12259
12260
  let {
@@ -12267,7 +12268,7 @@ const LabelPanel = _ref => {
12267
12268
  radius = "md",
12268
12269
  p = "md"
12269
12270
  } = _ref,
12270
- rest = _objectWithoutProperties(_ref, _excluded$5);
12271
+ rest = _objectWithoutProperties(_ref, _excluded$6);
12271
12272
  return /*#__PURE__*/React.createElement(core.Card, _extends({}, rest, {
12272
12273
  withBorder,
12273
12274
  radius,
@@ -12361,13 +12362,13 @@ const AvatarLabelPanel = _ref2 => {
12361
12362
  }, editLabel)));
12362
12363
  };
12363
12364
 
12364
- const _excluded$4 = ["label", "smaller"];
12365
+ const _excluded$5 = ["label", "smaller"];
12365
12366
  const SimpleText = _ref => {
12366
12367
  let {
12367
12368
  label,
12368
12369
  smaller
12369
12370
  } = _ref,
12370
- rest = _objectWithoutProperties(_ref, _excluded$4);
12371
+ rest = _objectWithoutProperties(_ref, _excluded$5);
12371
12372
  return /*#__PURE__*/React.createElement(core.Text, _extends({
12372
12373
  fw: 300,
12373
12374
  fz: smaller ? '90%' : undefined
@@ -12393,7 +12394,7 @@ const theme = core.createTheme({
12393
12394
  }
12394
12395
  });
12395
12396
 
12396
- const _excluded$3 = ["title", "subtitle", "rightsection", "withCreate", "withSwitcher", "create", "switcher"];
12397
+ const _excluded$4 = ["title", "subtitle", "rightsection", "withCreate", "withSwitcher", "create", "switcher"];
12397
12398
  const PageTitle = _ref => {
12398
12399
  var _switcher$items;
12399
12400
  let {
@@ -12405,7 +12406,7 @@ const PageTitle = _ref => {
12405
12406
  create,
12406
12407
  switcher
12407
12408
  } = _ref,
12408
- rest = _objectWithoutProperties(_ref, _excluded$3);
12409
+ rest = _objectWithoutProperties(_ref, _excluded$4);
12409
12410
  if (withCreate && create) {
12410
12411
  const {
12411
12412
  createFn,
@@ -12543,7 +12544,7 @@ const ConnectionPanelDetail = _ref => {
12543
12544
  }, value));
12544
12545
  };
12545
12546
 
12546
- const _excluded$2 = ["statusColor", "name", "status", "edit", "test", "pause", "details", "altColor"];
12547
+ const _excluded$3 = ["statusColor", "name", "status", "edit", "test", "pause", "details", "altColor"];
12547
12548
  const ConnectionPanel = _ref => {
12548
12549
  let {
12549
12550
  statusColor,
@@ -12555,7 +12556,7 @@ const ConnectionPanel = _ref => {
12555
12556
  details,
12556
12557
  altColor
12557
12558
  } = _ref;
12558
- _objectWithoutProperties(_ref, _excluded$2);
12559
+ _objectWithoutProperties(_ref, _excluded$3);
12559
12560
  return /*#__PURE__*/React.createElement(core.Card, {
12560
12561
  withBorder: true,
12561
12562
  bg: "gray.0",
@@ -12668,12 +12669,12 @@ const ApplicationPanelFeatures = _ref => {
12668
12669
  }, label));
12669
12670
  };
12670
12671
 
12671
- const _excluded$1 = ["name", "coverImage", "discount", "summary", "featureLabel", "features", "amount", "frequency", "actionLabel", "subscribed", "subscribedLabel", "onClick"];
12672
+ const _excluded$2 = ["name", "coverImage", "discount", "summary", "featureLabel", "features", "amount", "frequency", "actionLabel", "subscribed", "subscribedLabel", "onClick"];
12672
12673
  const ApplicationPanel = _ref => {
12673
12674
  let {
12674
12675
  name,
12675
12676
  coverImage,
12676
- discount,
12677
+ discount = "",
12677
12678
  summary,
12678
12679
  featureLabel,
12679
12680
  features,
@@ -12684,7 +12685,7 @@ const ApplicationPanel = _ref => {
12684
12685
  subscribedLabel = "Added",
12685
12686
  onClick = () => void 0
12686
12687
  } = _ref,
12687
- rest = _objectWithoutProperties(_ref, _excluded$1);
12688
+ rest = _objectWithoutProperties(_ref, _excluded$2);
12688
12689
  return /*#__PURE__*/React.createElement(core.Card, _extends({
12689
12690
  withBorder: true,
12690
12691
  radius: "md"
@@ -13008,7 +13009,7 @@ var img$1 = "data:image/svg+xml,%3csvg width='622' height='800' viewBox='0 0 622
13008
13009
 
13009
13010
  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";
13010
13011
 
13011
- const _excluded = ["shape", "type", "w", "bg", "bd", "rightsection"];
13012
+ const _excluded$1 = ["shape", "type", "w", "bg", "bd", "rightsection"];
13012
13013
  const CHIP_HEIGHT = 25;
13013
13014
  const TILE_HEIGHT = 70;
13014
13015
  const CHIP_WIDTH = CHIP_HEIGHT;
@@ -13029,7 +13030,7 @@ const File = _ref => {
13029
13030
  bd = "0.5px solid",
13030
13031
  rightsection
13031
13032
  } = _ref,
13032
- rest = _objectWithoutProperties(_ref, _excluded);
13033
+ rest = _objectWithoutProperties(_ref, _excluded$1);
13033
13034
  const isChip = shape == "chip";
13034
13035
  const radius = isChip ? "md" : "sm";
13035
13036
  return /*#__PURE__*/React.createElement(core.Card, _extends({}, rest, {
@@ -13132,6 +13133,100 @@ const TwoFactorVerificationModal = _ref => {
13132
13133
  }, "Close modal"));
13133
13134
  };
13134
13135
 
13136
+ const ConfirmModal = _ref => {
13137
+ let {
13138
+ children
13139
+ } = _ref;
13140
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icons, {
13141
+ size: 48,
13142
+ name: "MessageQuestion"
13143
+ }), /*#__PURE__*/React.createElement(core.Text, {
13144
+ size: "sm"
13145
+ }, children));
13146
+ };
13147
+
13148
+ const _excluded = ["title", "children", "onConfirm", "labels"];
13149
+ 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; }
13150
+ 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; }
13151
+ const useModal = () => {
13152
+ const ConfirmationModal = _ref => {
13153
+ let {
13154
+ title = "",
13155
+ children,
13156
+ onConfirm,
13157
+ labels = {
13158
+ cancel: "Cancel",
13159
+ confirm: "Confirm"
13160
+ }
13161
+ } = _ref,
13162
+ rest = _objectWithoutProperties(_ref, _excluded);
13163
+ return modals.modals.openConfirmModal(_objectSpread({
13164
+ children: ConfirmModal({
13165
+ children
13166
+ }),
13167
+ groupProps: {
13168
+ justify: "stretch",
13169
+ gap: 'md'
13170
+ },
13171
+ onConfirm,
13172
+ labels
13173
+ }, rest));
13174
+ };
13175
+ const ErrorModal = () => modals.modals.openContextModal({
13176
+ modal: "ErrorModal",
13177
+ title: "Error",
13178
+ innerProps: {
13179
+ modalBody: "This is an error modal"
13180
+ }
13181
+ });
13182
+ const InfoModal = () => modals.modals.openContextModal({
13183
+ modal: "InfoModal",
13184
+ title: "Info",
13185
+ innerProps: {
13186
+ modalBody: "This is an info modal"
13187
+ }
13188
+ });
13189
+ const SimpleModal = () => modals.modals.openContextModal({
13190
+ modal: "SimpleModal",
13191
+ title: "Simple",
13192
+ innerProps: {
13193
+ modalBody: "This is a simple modal"
13194
+ }
13195
+ });
13196
+ const SuccessModal = () => modals.modals.openContextModal({
13197
+ modal: "SuccessModal",
13198
+ title: "Success",
13199
+ innerProps: {
13200
+ modalBody: "This is a success modal"
13201
+ }
13202
+ });
13203
+ const TwoFactorVerificationModal = () => modals.modals.openContextModal({
13204
+ modal: "TwoFactorVerificationModal",
13205
+ title: "Two Factor Verification",
13206
+ innerProps: {
13207
+ modalBody: "This is a two factor verification modal"
13208
+ }
13209
+ });
13210
+ return {
13211
+ ConfirmationModal,
13212
+ ErrorModal,
13213
+ InfoModal,
13214
+ SimpleModal,
13215
+ SuccessModal,
13216
+ TwoFactorVerificationModal
13217
+ };
13218
+ };
13219
+
13220
+ const useManagedModals = () => {
13221
+ return {
13222
+ ErrorModal: ErrorModal,
13223
+ InfoModal: InfoModal,
13224
+ SimpleModal: SimpleModal,
13225
+ SuccessModal: SuccessModal,
13226
+ TwoFactorVerificationModal: TwoFactorVerificationModal
13227
+ };
13228
+ };
13229
+
13135
13230
  exports.ApplicationMenu = ApplicationMenu;
13136
13231
  exports.ApplicationPanel = ApplicationPanel;
13137
13232
  exports.AvatarLabelPanel = AvatarLabelPanel;
@@ -13164,3 +13259,5 @@ exports.TitledPanel = TitledPanel;
13164
13259
  exports.TwoFactorVerificationModal = TwoFactorVerificationModal;
13165
13260
  exports.UserMenu = UserMenu;
13166
13261
  exports.theme = theme;
13262
+ exports.useManagedModals = useManagedModals;
13263
+ exports.useModal = useModal;
@@ -1,11 +1,12 @@
1
- import _extends from '@babel/runtime/helpers/extends';
2
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
+ import { modals } from '@mantine/modals';
3
4
  import React, { useRef, useMemo, useEffect } from 'react';
5
+ import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, createTheme, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table } from '@mantine/core';
6
+ import * as IconSax from 'iconsax-react';
7
+ import _extends from '@babel/runtime/helpers/extends';
4
8
  import HighchartsReact from 'highcharts-react-official';
5
9
  import HighchartsRounded from 'highcharts-rounded-corners';
6
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
7
- import * as IconSax from 'iconsax-react';
8
- import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, createTheme, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table } from '@mantine/core';
9
10
  import { Link } from 'react-router-dom';
10
11
  import { useDisclosure } from '@mantine/hooks';
11
12
  import '@fontsource/poppins/100.css';
@@ -11319,8 +11320,8 @@ const createAreaFillGradient = function (baseColor) {
11319
11320
  };
11320
11321
  };
11321
11322
 
11322
- 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; }
11323
- 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; }
11323
+ 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; }
11324
+ 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; }
11324
11325
 
11325
11326
  // Initialize Highcharts with rounded corners
11326
11327
  if (typeof window !== "undefined") {
@@ -11329,8 +11330,8 @@ if (typeof window !== "undefined") {
11329
11330
  const Column = props => {
11330
11331
  const chartRef = useRef(null);
11331
11332
  const chartOptions = useMemo(() => {
11332
- const column = _objectSpread$3({}, props);
11333
- return _objectSpread$3(_objectSpread$3({}, initChart$2(column)), initSeries$2(column));
11333
+ const column = _objectSpread$4({}, props);
11334
+ return _objectSpread$4(_objectSpread$4({}, initChart$2(column)), initSeries$2(column));
11334
11335
  }, [props]);
11335
11336
  useEffect(() => {
11336
11337
  if (chartRef.current && chartRef.current.chart) {
@@ -11433,7 +11434,7 @@ const initSeries$2 = props => {
11433
11434
  enableMouseTracking: false,
11434
11435
  showInLegend: false
11435
11436
  });
11436
- const mainSeries = _objectSpread$3(_objectSpread$3({}, fillSeries(boundary)), {
11437
+ const mainSeries = _objectSpread$4(_objectSpread$4({}, fillSeries(boundary)), {
11437
11438
  name: props.yAxisLabel[0],
11438
11439
  color: seriesColors ? seriesColors[0] : "gray",
11439
11440
  data: seriesData[0],
@@ -11473,7 +11474,7 @@ const initSeries$2 = props => {
11473
11474
  pointWidth: undefined
11474
11475
  }
11475
11476
  };
11476
- const plot = _objectSpread$3(_objectSpread$3({}, {
11477
+ const plot = _objectSpread$4(_objectSpread$4({}, {
11477
11478
  column: {
11478
11479
  borderWidth: 0,
11479
11480
  borderRadius: 10
@@ -11528,13 +11529,13 @@ const initChart$1 = props => {
11528
11529
  };
11529
11530
  };
11530
11531
 
11531
- 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; }
11532
- 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; }
11532
+ 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; }
11533
+ 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; }
11533
11534
  const Area = props => {
11534
11535
  const chartRef = useRef(null);
11535
11536
  const chartOptions = useMemo(() => {
11536
- const area = _objectSpread$2({}, props);
11537
- return _objectSpread$2(_objectSpread$2({}, initChart$1(area)), initSeries$1(area));
11537
+ const area = _objectSpread$3({}, props);
11538
+ return _objectSpread$3(_objectSpread$3({}, initChart$1(area)), initSeries$1(area));
11538
11539
  }, [props]);
11539
11540
  useEffect(() => {
11540
11541
  if (chartRef.current && chartRef.current.chart) {
@@ -11595,7 +11596,7 @@ const initSeries$1 = props => {
11595
11596
  const labels = {
11596
11597
  color: "#575E77"
11597
11598
  };
11598
- return _objectSpread$2(_objectSpread$2({}, defaults), {
11599
+ return _objectSpread$3(_objectSpread$3({}, defaults), {
11599
11600
  labels
11600
11601
  });
11601
11602
  };
@@ -11632,16 +11633,16 @@ const initSeries$1 = props => {
11632
11633
  };
11633
11634
  };
11634
11635
 
11635
- const _excluded$9 = ["withLegend", "centerLabel", "centerValue"];
11636
- 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; }
11637
- 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; }
11636
+ const _excluded$a = ["withLegend", "centerLabel", "centerValue"];
11637
+ 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; }
11638
+ 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; }
11638
11639
  const initChart = _ref => {
11639
11640
  let {
11640
11641
  withLegend,
11641
11642
  centerLabel = "",
11642
11643
  centerValue = ""
11643
11644
  } = _ref;
11644
- _objectWithoutProperties(_ref, _excluded$9);
11645
+ _objectWithoutProperties(_ref, _excluded$a);
11645
11646
  return {
11646
11647
  chart: {
11647
11648
  type: "pie",
@@ -11684,7 +11685,7 @@ const initChart = _ref => {
11684
11685
  },
11685
11686
  legend: !withLegend ? {
11686
11687
  enabled: false
11687
- } : _objectSpread$1(_objectSpread$1({}, {
11688
+ } : _objectSpread$2(_objectSpread$2({}, {
11688
11689
  enabled: true,
11689
11690
  layout: "vertical",
11690
11691
  verticalAlign: "middle",
@@ -11717,13 +11718,13 @@ const initChart = _ref => {
11717
11718
  };
11718
11719
  };
11719
11720
 
11720
- 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; }
11721
- 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; }
11721
+ 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; }
11722
+ 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; }
11722
11723
  const DonutChart = props => {
11723
11724
  const chartRef = useRef(null);
11724
11725
  const chartOptions = useMemo(() => {
11725
- const area = _objectSpread({}, props);
11726
- return _objectSpread(_objectSpread({}, initChart(area)), initSeries(area));
11726
+ const area = _objectSpread$1({}, props);
11727
+ return _objectSpread$1(_objectSpread$1({}, initChart(area)), initSeries(area));
11727
11728
  }, [props]);
11728
11729
  useEffect(() => {
11729
11730
  if (chartRef.current && chartRef.current.chart) {
@@ -11781,7 +11782,7 @@ var img$c = "data:image/svg+xml,%3csvg width='5894' height='1608' viewBox='0 0 5
11781
11782
 
11782
11783
  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";
11783
11784
 
11784
- const _excluded$8 = ["href", "fallbackSrc", "src", "fit"],
11785
+ const _excluded$9 = ["href", "fallbackSrc", "src", "fit"],
11785
11786
  _excluded2$2 = ["href", "src", "fit", "w"],
11786
11787
  _excluded3$1 = ["href", "src", "fit"];
11787
11788
  const Logo = _ref => {
@@ -11791,7 +11792,7 @@ const Logo = _ref => {
11791
11792
  src,
11792
11793
  fit
11793
11794
  } = _ref,
11794
- rest = _objectWithoutProperties(_ref, _excluded$8);
11795
+ rest = _objectWithoutProperties(_ref, _excluded$9);
11795
11796
  return /*#__PURE__*/React.createElement(Center, _extends({}, rest, {
11796
11797
  component: Link,
11797
11798
  display: "flex",
@@ -11835,13 +11836,13 @@ const DynamicShigaLogo = _ref3 => {
11835
11836
  }));
11836
11837
  };
11837
11838
 
11838
- const _excluded$7 = ["children", "toggle"];
11839
+ const _excluded$8 = ["children", "toggle"];
11839
11840
  const ApplicationMenuTarget = _ref => {
11840
11841
  let {
11841
11842
  children,
11842
11843
  toggle
11843
11844
  } = _ref;
11844
- _objectWithoutProperties(_ref, _excluded$7);
11845
+ _objectWithoutProperties(_ref, _excluded$8);
11845
11846
  return /*#__PURE__*/React.createElement(Popover.Target, null, /*#__PURE__*/React.createElement(Button, {
11846
11847
  variant: "transparent",
11847
11848
  justify: "space-between",
@@ -12118,7 +12119,7 @@ const SideMenu = _ref => {
12118
12119
  }));
12119
12120
  };
12120
12121
 
12121
- const _excluded$6 = ["withPadding", "withRadius", "autoHeight", "children"],
12122
+ const _excluded$7 = ["withPadding", "withRadius", "autoHeight", "children"],
12122
12123
  _excluded2$1 = ["withPadding", "title", "children"],
12123
12124
  _excluded3 = ["placeholder", "searchIcon", "filterIcon", "searchText", "filterFn", "children"];
12124
12125
  const SimplePanel = _ref => {
@@ -12128,7 +12129,7 @@ const SimplePanel = _ref => {
12128
12129
  autoHeight = true,
12129
12130
  children
12130
12131
  } = _ref,
12131
- rest = _objectWithoutProperties(_ref, _excluded$6);
12132
+ rest = _objectWithoutProperties(_ref, _excluded$7);
12132
12133
  return /*#__PURE__*/React.createElement(Card, _extends({
12133
12134
  p: !withPadding ? 0 : "md",
12134
12135
  radius: !withRadius ? 0 : "lg",
@@ -12232,7 +12233,7 @@ const LabelPanelItem = _ref => {
12232
12233
  }, value));
12233
12234
  };
12234
12235
 
12235
- const _excluded$5 = ["title", "hasEdit", "labelWidth", "editFn", "editLabel", "items", "withBorder", "radius", "p"],
12236
+ const _excluded$6 = ["title", "hasEdit", "labelWidth", "editFn", "editLabel", "items", "withBorder", "radius", "p"],
12236
12237
  _excluded2 = ["avatarSize", "avatar", "labelWidth", "withBorder", "radius", "p", "name", "username", "editLabel", "lastActive", "role", "editFn"];
12237
12238
  const LabelPanel = _ref => {
12238
12239
  let {
@@ -12246,7 +12247,7 @@ const LabelPanel = _ref => {
12246
12247
  radius = "md",
12247
12248
  p = "md"
12248
12249
  } = _ref,
12249
- rest = _objectWithoutProperties(_ref, _excluded$5);
12250
+ rest = _objectWithoutProperties(_ref, _excluded$6);
12250
12251
  return /*#__PURE__*/React.createElement(Card, _extends({}, rest, {
12251
12252
  withBorder,
12252
12253
  radius,
@@ -12340,13 +12341,13 @@ const AvatarLabelPanel = _ref2 => {
12340
12341
  }, editLabel)));
12341
12342
  };
12342
12343
 
12343
- const _excluded$4 = ["label", "smaller"];
12344
+ const _excluded$5 = ["label", "smaller"];
12344
12345
  const SimpleText = _ref => {
12345
12346
  let {
12346
12347
  label,
12347
12348
  smaller
12348
12349
  } = _ref,
12349
- rest = _objectWithoutProperties(_ref, _excluded$4);
12350
+ rest = _objectWithoutProperties(_ref, _excluded$5);
12350
12351
  return /*#__PURE__*/React.createElement(Text, _extends({
12351
12352
  fw: 300,
12352
12353
  fz: smaller ? '90%' : undefined
@@ -12372,7 +12373,7 @@ const theme = createTheme({
12372
12373
  }
12373
12374
  });
12374
12375
 
12375
- const _excluded$3 = ["title", "subtitle", "rightsection", "withCreate", "withSwitcher", "create", "switcher"];
12376
+ const _excluded$4 = ["title", "subtitle", "rightsection", "withCreate", "withSwitcher", "create", "switcher"];
12376
12377
  const PageTitle = _ref => {
12377
12378
  var _switcher$items;
12378
12379
  let {
@@ -12384,7 +12385,7 @@ const PageTitle = _ref => {
12384
12385
  create,
12385
12386
  switcher
12386
12387
  } = _ref,
12387
- rest = _objectWithoutProperties(_ref, _excluded$3);
12388
+ rest = _objectWithoutProperties(_ref, _excluded$4);
12388
12389
  if (withCreate && create) {
12389
12390
  const {
12390
12391
  createFn,
@@ -12522,7 +12523,7 @@ const ConnectionPanelDetail = _ref => {
12522
12523
  }, value));
12523
12524
  };
12524
12525
 
12525
- const _excluded$2 = ["statusColor", "name", "status", "edit", "test", "pause", "details", "altColor"];
12526
+ const _excluded$3 = ["statusColor", "name", "status", "edit", "test", "pause", "details", "altColor"];
12526
12527
  const ConnectionPanel = _ref => {
12527
12528
  let {
12528
12529
  statusColor,
@@ -12534,7 +12535,7 @@ const ConnectionPanel = _ref => {
12534
12535
  details,
12535
12536
  altColor
12536
12537
  } = _ref;
12537
- _objectWithoutProperties(_ref, _excluded$2);
12538
+ _objectWithoutProperties(_ref, _excluded$3);
12538
12539
  return /*#__PURE__*/React.createElement(Card, {
12539
12540
  withBorder: true,
12540
12541
  bg: "gray.0",
@@ -12647,12 +12648,12 @@ const ApplicationPanelFeatures = _ref => {
12647
12648
  }, label));
12648
12649
  };
12649
12650
 
12650
- const _excluded$1 = ["name", "coverImage", "discount", "summary", "featureLabel", "features", "amount", "frequency", "actionLabel", "subscribed", "subscribedLabel", "onClick"];
12651
+ const _excluded$2 = ["name", "coverImage", "discount", "summary", "featureLabel", "features", "amount", "frequency", "actionLabel", "subscribed", "subscribedLabel", "onClick"];
12651
12652
  const ApplicationPanel = _ref => {
12652
12653
  let {
12653
12654
  name,
12654
12655
  coverImage,
12655
- discount,
12656
+ discount = "",
12656
12657
  summary,
12657
12658
  featureLabel,
12658
12659
  features,
@@ -12663,7 +12664,7 @@ const ApplicationPanel = _ref => {
12663
12664
  subscribedLabel = "Added",
12664
12665
  onClick = () => void 0
12665
12666
  } = _ref,
12666
- rest = _objectWithoutProperties(_ref, _excluded$1);
12667
+ rest = _objectWithoutProperties(_ref, _excluded$2);
12667
12668
  return /*#__PURE__*/React.createElement(Card, _extends({
12668
12669
  withBorder: true,
12669
12670
  radius: "md"
@@ -12987,7 +12988,7 @@ var img$1 = "data:image/svg+xml,%3csvg width='622' height='800' viewBox='0 0 622
12987
12988
 
12988
12989
  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
12990
 
12990
- const _excluded = ["shape", "type", "w", "bg", "bd", "rightsection"];
12991
+ const _excluded$1 = ["shape", "type", "w", "bg", "bd", "rightsection"];
12991
12992
  const CHIP_HEIGHT = 25;
12992
12993
  const TILE_HEIGHT = 70;
12993
12994
  const CHIP_WIDTH = CHIP_HEIGHT;
@@ -13008,7 +13009,7 @@ const File = _ref => {
13008
13009
  bd = "0.5px solid",
13009
13010
  rightsection
13010
13011
  } = _ref,
13011
- rest = _objectWithoutProperties(_ref, _excluded);
13012
+ rest = _objectWithoutProperties(_ref, _excluded$1);
13012
13013
  const isChip = shape == "chip";
13013
13014
  const radius = isChip ? "md" : "sm";
13014
13015
  return /*#__PURE__*/React.createElement(Card, _extends({}, rest, {
@@ -13111,4 +13112,98 @@ const TwoFactorVerificationModal = _ref => {
13111
13112
  }, "Close modal"));
13112
13113
  };
13113
13114
 
13114
- export { ApplicationMenu, ApplicationPanel, AvatarLabelPanel, ConnectionPanel, DonutChart, DynamicLogo, DynamicShigaLogo, EqualizerColumn, ErrorModal, File, Icons, InfoModal, LabelPanel, PageTitle, PaymentMethod, PaymentMethodAdd, SearchPanel, SideMenu, SimpleArea, SimpleColumn, SimpleModal, SimplePanel, SimpleTable, SimpleText, StackedColumn, SubscriptionPlans, SuccessModal, TitleWithIndex, TitledPanel, TwoFactorVerificationModal, UserMenu, theme };
13115
+ const ConfirmModal = _ref => {
13116
+ let {
13117
+ children
13118
+ } = _ref;
13119
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icons, {
13120
+ size: 48,
13121
+ name: "MessageQuestion"
13122
+ }), /*#__PURE__*/React.createElement(Text, {
13123
+ size: "sm"
13124
+ }, children));
13125
+ };
13126
+
13127
+ const _excluded = ["title", "children", "onConfirm", "labels"];
13128
+ 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; }
13129
+ 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; }
13130
+ const useModal = () => {
13131
+ const ConfirmationModal = _ref => {
13132
+ let {
13133
+ title = "",
13134
+ children,
13135
+ onConfirm,
13136
+ labels = {
13137
+ cancel: "Cancel",
13138
+ confirm: "Confirm"
13139
+ }
13140
+ } = _ref,
13141
+ rest = _objectWithoutProperties(_ref, _excluded);
13142
+ return modals.openConfirmModal(_objectSpread({
13143
+ children: ConfirmModal({
13144
+ children
13145
+ }),
13146
+ groupProps: {
13147
+ justify: "stretch",
13148
+ gap: 'md'
13149
+ },
13150
+ onConfirm,
13151
+ labels
13152
+ }, rest));
13153
+ };
13154
+ const ErrorModal = () => modals.openContextModal({
13155
+ modal: "ErrorModal",
13156
+ title: "Error",
13157
+ innerProps: {
13158
+ modalBody: "This is an error modal"
13159
+ }
13160
+ });
13161
+ const InfoModal = () => modals.openContextModal({
13162
+ modal: "InfoModal",
13163
+ title: "Info",
13164
+ innerProps: {
13165
+ modalBody: "This is an info modal"
13166
+ }
13167
+ });
13168
+ const SimpleModal = () => modals.openContextModal({
13169
+ modal: "SimpleModal",
13170
+ title: "Simple",
13171
+ innerProps: {
13172
+ modalBody: "This is a simple modal"
13173
+ }
13174
+ });
13175
+ const SuccessModal = () => modals.openContextModal({
13176
+ modal: "SuccessModal",
13177
+ title: "Success",
13178
+ innerProps: {
13179
+ modalBody: "This is a success modal"
13180
+ }
13181
+ });
13182
+ const TwoFactorVerificationModal = () => modals.openContextModal({
13183
+ modal: "TwoFactorVerificationModal",
13184
+ title: "Two Factor Verification",
13185
+ innerProps: {
13186
+ modalBody: "This is a two factor verification modal"
13187
+ }
13188
+ });
13189
+ return {
13190
+ ConfirmationModal,
13191
+ ErrorModal,
13192
+ InfoModal,
13193
+ SimpleModal,
13194
+ SuccessModal,
13195
+ TwoFactorVerificationModal
13196
+ };
13197
+ };
13198
+
13199
+ const useManagedModals = () => {
13200
+ return {
13201
+ ErrorModal: ErrorModal,
13202
+ InfoModal: InfoModal,
13203
+ SimpleModal: SimpleModal,
13204
+ SuccessModal: SuccessModal,
13205
+ TwoFactorVerificationModal: TwoFactorVerificationModal
13206
+ };
13207
+ };
13208
+
13209
+ export { ApplicationMenu, ApplicationPanel, AvatarLabelPanel, ConnectionPanel, DonutChart, DynamicLogo, DynamicShigaLogo, EqualizerColumn, ErrorModal, File, Icons, InfoModal, LabelPanel, PageTitle, PaymentMethod, PaymentMethodAdd, SearchPanel, SideMenu, SimpleArea, SimpleColumn, SimpleModal, SimplePanel, SimpleTable, SimpleText, StackedColumn, SubscriptionPlans, SuccessModal, TitleWithIndex, TitledPanel, TwoFactorVerificationModal, UserMenu, theme, useManagedModals, useModal };
@@ -0,0 +1,2 @@
1
+ import { ConfirmModalProps } from "@mantine/modals/lib/ConfirmModal";
2
+ export declare const ConfirmModal: ({ children }: ConfirmModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,3 @@
1
1
  export * from "./components";
2
+ export * from "./shared/hooks/modals/useModal";
3
+ export * from "./shared/hooks/modals/useManagedModals";
@@ -1,5 +1,6 @@
1
+ import { OpenConfirmModal } from "@mantine/modals/lib/context";
1
2
  export declare const useModal: () => {
2
- ConfirmationModal: () => string;
3
+ ConfirmationModal: ({ title, children, onConfirm, labels, ...rest }: OpenConfirmModal) => string;
3
4
  ErrorModal: () => string;
4
5
  InfoModal: () => string;
5
6
  SimpleModal: () => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adiba-banking-cloud/backoffice",
3
3
  "author": "TUROG Technologies",
4
- "version": "0.0.34",
4
+ "version": "0.0.36",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",