@adiba-banking-cloud/backoffice 0.0.79 → 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.
- package/build/index.cjs.js/index.js +341 -349
- package/build/index.esm.js/index.js +341 -349
- package/build/typings/components/modals/confim/Confim.d.ts +2 -2
- package/build/typings/components/modals/confim/Confim.stories.d.ts +1 -1
- package/build/typings/components/modals/confim/Confim.types.d.ts +4 -0
- package/build/typings/components/modals/simple/Simple.types.d.ts +1 -0
- package/build/typings/shared/hooks/modals/useModal.d.ts +4 -5
- package/build/typings/shared/hooks/modals/useModal.types.d.ts +5 -0
- package/build/typings/shared/types/ActionProps.types.d.ts +64 -0
- package/package.json +1 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
4
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
3
|
var modals = require('@mantine/modals');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
var core = require('@mantine/core');
|
|
@@ -11226,8 +11224,8 @@ const initChart$2 = props => {
|
|
|
11226
11224
|
chart: {
|
|
11227
11225
|
type: "column",
|
|
11228
11226
|
borderRadius: 8,
|
|
11229
|
-
backgroundColor:
|
|
11230
|
-
plotBackgroundColor:
|
|
11227
|
+
backgroundColor: props?.bgColor || "rgba(255, 255, 255, 0)",
|
|
11228
|
+
plotBackgroundColor: props?.plotBgColor || "rgba(255, 255, 255, 0)"
|
|
11231
11229
|
},
|
|
11232
11230
|
tooltip: {
|
|
11233
11231
|
backgroundColor: "#0F193D",
|
|
@@ -11282,15 +11280,14 @@ const parseColorToRgb = colorString => {
|
|
|
11282
11280
|
b
|
|
11283
11281
|
};
|
|
11284
11282
|
} else if (colorString.startsWith("rgb")) {
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
if (parts !== null && parts !== void 0 && parts.length) return {
|
|
11283
|
+
const parts = colorString.match(/\d+/g)?.map(Number);
|
|
11284
|
+
if (parts?.length) return {
|
|
11288
11285
|
r: parts[0],
|
|
11289
11286
|
g: parts[1],
|
|
11290
11287
|
b: parts[2]
|
|
11291
11288
|
};
|
|
11292
11289
|
}
|
|
11293
|
-
console.warn(
|
|
11290
|
+
console.warn(`Color format '${colorString}' not fully recognized. Using black as fallback.`);
|
|
11294
11291
|
return {
|
|
11295
11292
|
r: 0,
|
|
11296
11293
|
g: 0,
|
|
@@ -11318,13 +11315,13 @@ const createAreaFillGradient = function (baseColor) {
|
|
|
11318
11315
|
endOpacity = 0.08
|
|
11319
11316
|
} = options;
|
|
11320
11317
|
const parsedColor = parseColorToRgb(baseColor);
|
|
11321
|
-
|
|
11318
|
+
`rgba(${parsedColor.r}, ${parsedColor.g}, ${parsedColor.b}, 1)`;
|
|
11322
11319
|
|
|
11323
11320
|
// Color string for the top of the gradient (base color with specified start opacity)
|
|
11324
|
-
const rgbaStart =
|
|
11321
|
+
const rgbaStart = `rgba(${parsedColor.r}, ${parsedColor.g}, ${parsedColor.b}, ${startOpacity})`;
|
|
11325
11322
|
|
|
11326
11323
|
// Color string for the bottom of the gradient (always transparent version of base color)
|
|
11327
|
-
const rgbaEnd =
|
|
11324
|
+
const rgbaEnd = `rgba(${parsedColor.r}, ${parsedColor.g}, ${parsedColor.b}, ${endOpacity})`;
|
|
11328
11325
|
return {
|
|
11329
11326
|
linearGradient: {
|
|
11330
11327
|
x1: 0,
|
|
@@ -11343,9 +11340,6 @@ const createAreaFillGradient = function (baseColor) {
|
|
|
11343
11340
|
};
|
|
11344
11341
|
};
|
|
11345
11342
|
|
|
11346
|
-
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; }
|
|
11347
|
-
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; }
|
|
11348
|
-
|
|
11349
11343
|
// Initialize Highcharts with rounded corners
|
|
11350
11344
|
if (typeof window !== "undefined") {
|
|
11351
11345
|
HighchartsRounded(Highcharts);
|
|
@@ -11353,8 +11347,13 @@ if (typeof window !== "undefined") {
|
|
|
11353
11347
|
const Column = props => {
|
|
11354
11348
|
const chartRef = React.useRef(null);
|
|
11355
11349
|
const chartOptions = React.useMemo(() => {
|
|
11356
|
-
const column =
|
|
11357
|
-
|
|
11350
|
+
const column = {
|
|
11351
|
+
...props
|
|
11352
|
+
};
|
|
11353
|
+
return {
|
|
11354
|
+
...initChart$2(column),
|
|
11355
|
+
...initSeries$2(column)
|
|
11356
|
+
};
|
|
11358
11357
|
}, [props]);
|
|
11359
11358
|
React.useEffect(() => {
|
|
11360
11359
|
if (chartRef.current && chartRef.current.chart) {
|
|
@@ -11457,12 +11456,15 @@ const initSeries$2 = props => {
|
|
|
11457
11456
|
enableMouseTracking: false,
|
|
11458
11457
|
showInLegend: false
|
|
11459
11458
|
});
|
|
11460
|
-
const mainSeries =
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11459
|
+
const mainSeries = {
|
|
11460
|
+
...fillSeries(boundary),
|
|
11461
|
+
...{
|
|
11462
|
+
name: props.yAxisLabel[0],
|
|
11463
|
+
color: seriesColors ? seriesColors[0] : "gray",
|
|
11464
|
+
data: seriesData[0],
|
|
11465
|
+
enableMouseTracking: true
|
|
11466
|
+
}
|
|
11467
|
+
};
|
|
11466
11468
|
return [fillSeries(boundary), mainSeries];
|
|
11467
11469
|
}
|
|
11468
11470
|
return [];
|
|
@@ -11497,19 +11499,22 @@ const initSeries$2 = props => {
|
|
|
11497
11499
|
pointWidth: undefined
|
|
11498
11500
|
}
|
|
11499
11501
|
};
|
|
11500
|
-
const plot =
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11502
|
+
const plot = {
|
|
11503
|
+
...{
|
|
11504
|
+
column: {
|
|
11505
|
+
borderWidth: 0,
|
|
11506
|
+
borderRadius: 10
|
|
11507
|
+
}
|
|
11508
|
+
},
|
|
11509
|
+
...series
|
|
11510
|
+
};
|
|
11506
11511
|
return plot;
|
|
11507
11512
|
};
|
|
11508
11513
|
return {
|
|
11509
11514
|
xAxis: renderXAxis(props.xAxisLabel),
|
|
11510
11515
|
yAxis: renderYAxis(props.equalizer, props.series),
|
|
11511
11516
|
plotOptions: renderPlot(props.equalizer),
|
|
11512
|
-
series: renderSeries(props.series, props
|
|
11517
|
+
series: renderSeries(props.series, props?.colors, props.equalizer)
|
|
11513
11518
|
};
|
|
11514
11519
|
};
|
|
11515
11520
|
|
|
@@ -11517,8 +11522,8 @@ const initChart$1 = props => {
|
|
|
11517
11522
|
return {
|
|
11518
11523
|
chart: {
|
|
11519
11524
|
type: "areaspline",
|
|
11520
|
-
backgroundColor:
|
|
11521
|
-
plotBackgroundColor:
|
|
11525
|
+
backgroundColor: props?.bgColor || "rgba(255, 255, 255, 0)",
|
|
11526
|
+
plotBackgroundColor: props?.plotBgColor || "rgba(255, 255, 255, 0)"
|
|
11522
11527
|
},
|
|
11523
11528
|
tooltip: {
|
|
11524
11529
|
backgroundColor: "#0F193D",
|
|
@@ -11552,13 +11557,16 @@ const initChart$1 = props => {
|
|
|
11552
11557
|
};
|
|
11553
11558
|
};
|
|
11554
11559
|
|
|
11555
|
-
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; }
|
|
11556
|
-
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; }
|
|
11557
11560
|
const Area = props => {
|
|
11558
11561
|
const chartRef = React.useRef(null);
|
|
11559
11562
|
const chartOptions = React.useMemo(() => {
|
|
11560
|
-
const area =
|
|
11561
|
-
|
|
11563
|
+
const area = {
|
|
11564
|
+
...props
|
|
11565
|
+
};
|
|
11566
|
+
return {
|
|
11567
|
+
...initChart$1(area),
|
|
11568
|
+
...initSeries$1(area)
|
|
11569
|
+
};
|
|
11562
11570
|
}, [props]);
|
|
11563
11571
|
React.useEffect(() => {
|
|
11564
11572
|
if (chartRef.current && chartRef.current.chart) {
|
|
@@ -11587,9 +11595,8 @@ const SimpleArea = props => {
|
|
|
11587
11595
|
};
|
|
11588
11596
|
const initSeries$1 = props => {
|
|
11589
11597
|
const renderXAxis = () => {
|
|
11590
|
-
var _props$colors;
|
|
11591
11598
|
const crosshair = props.withCrossHair ? {
|
|
11592
|
-
color: props
|
|
11599
|
+
color: props?.colors?.length ? props?.colors[0] : "#ccc",
|
|
11593
11600
|
width: 2,
|
|
11594
11601
|
dashStyle: "Dot",
|
|
11595
11602
|
snap: true
|
|
@@ -11619,9 +11626,12 @@ const initSeries$1 = props => {
|
|
|
11619
11626
|
const labels = {
|
|
11620
11627
|
color: "#575E77"
|
|
11621
11628
|
};
|
|
11622
|
-
return
|
|
11623
|
-
|
|
11624
|
-
|
|
11629
|
+
return {
|
|
11630
|
+
...defaults,
|
|
11631
|
+
...{
|
|
11632
|
+
labels
|
|
11633
|
+
}
|
|
11634
|
+
};
|
|
11625
11635
|
};
|
|
11626
11636
|
const renderPlot = () => {
|
|
11627
11637
|
const areaspline = {
|
|
@@ -11637,15 +11647,12 @@ const initSeries$1 = props => {
|
|
|
11637
11647
|
};
|
|
11638
11648
|
};
|
|
11639
11649
|
const renderSeries = () => {
|
|
11640
|
-
const series = props.series.map((value, key) => {
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
fillColor: createAreaFillGradient((_props$colors3 = props.colors) !== null && _props$colors3 !== void 0 && _props$colors3.length ? props.colors[key] : "#C8700B")
|
|
11647
|
-
};
|
|
11648
|
-
});
|
|
11650
|
+
const series = props.series.map((value, key) => ({
|
|
11651
|
+
name: props.yAxisLabel[key],
|
|
11652
|
+
color: props.colors?.length ? props.colors[key] : "#C8700B",
|
|
11653
|
+
data: value,
|
|
11654
|
+
fillColor: createAreaFillGradient(props.colors?.length ? props.colors[key] : "#C8700B")
|
|
11655
|
+
}));
|
|
11649
11656
|
return series;
|
|
11650
11657
|
};
|
|
11651
11658
|
return {
|
|
@@ -11656,16 +11663,13 @@ const initSeries$1 = props => {
|
|
|
11656
11663
|
};
|
|
11657
11664
|
};
|
|
11658
11665
|
|
|
11659
|
-
const _excluded$c = ["withLegend", "centerLabel", "centerValue"];
|
|
11660
|
-
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; }
|
|
11661
|
-
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; }
|
|
11662
11666
|
const initChart = _ref => {
|
|
11663
11667
|
let {
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11668
|
+
withLegend,
|
|
11669
|
+
centerLabel = "",
|
|
11670
|
+
centerValue = "",
|
|
11671
|
+
...rest
|
|
11672
|
+
} = _ref;
|
|
11669
11673
|
return {
|
|
11670
11674
|
chart: {
|
|
11671
11675
|
type: "pie",
|
|
@@ -11675,7 +11679,7 @@ const initChart = _ref => {
|
|
|
11675
11679
|
series = chart.series[0];
|
|
11676
11680
|
let customLabel = chart.customLabel;
|
|
11677
11681
|
if (!customLabel) {
|
|
11678
|
-
customLabel = chart.customLabel = chart.renderer.label(
|
|
11682
|
+
customLabel = chart.customLabel = chart.renderer.label(`<strong>${centerValue}</strong><br/>${centerLabel}`, 0, 0, undefined, undefined, undefined, true, undefined, "center").css({
|
|
11679
11683
|
textAlign: "center"
|
|
11680
11684
|
}).add();
|
|
11681
11685
|
}
|
|
@@ -11688,7 +11692,7 @@ const initChart = _ref => {
|
|
|
11688
11692
|
|
|
11689
11693
|
// Set font size and colour via configuration options
|
|
11690
11694
|
customLabel.attr({
|
|
11691
|
-
text:
|
|
11695
|
+
text: `<span style="color: #0F193D; font-size: 24px; font-weight: 800">${centerValue}</span><br/><span style="font-size: 12px; color: #878C9E">${centerLabel}</span>`,
|
|
11692
11696
|
align: "center",
|
|
11693
11697
|
verticalAlign: "middle",
|
|
11694
11698
|
x: x,
|
|
@@ -11708,13 +11712,16 @@ const initChart = _ref => {
|
|
|
11708
11712
|
},
|
|
11709
11713
|
legend: !withLegend ? {
|
|
11710
11714
|
enabled: false
|
|
11711
|
-
} :
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11715
|
+
} : {
|
|
11716
|
+
...{
|
|
11717
|
+
enabled: true,
|
|
11718
|
+
layout: "vertical",
|
|
11719
|
+
verticalAlign: "middle",
|
|
11720
|
+
align: "right",
|
|
11721
|
+
labelFormat: '{name} <span style="opacity: 0.4">{y}</span>'
|
|
11722
|
+
},
|
|
11723
|
+
...(withLegend && typeof withLegend !== "boolean" ? withLegend : {})
|
|
11724
|
+
},
|
|
11718
11725
|
plotOptions: {
|
|
11719
11726
|
pie: {
|
|
11720
11727
|
allowPointSelect: true,
|
|
@@ -11741,13 +11748,16 @@ const initChart = _ref => {
|
|
|
11741
11748
|
};
|
|
11742
11749
|
};
|
|
11743
11750
|
|
|
11744
|
-
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; }
|
|
11745
|
-
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; }
|
|
11746
11751
|
const DonutChart = props => {
|
|
11747
11752
|
const chartRef = React.useRef(null);
|
|
11748
11753
|
const chartOptions = React.useMemo(() => {
|
|
11749
|
-
const area =
|
|
11750
|
-
|
|
11754
|
+
const area = {
|
|
11755
|
+
...props
|
|
11756
|
+
};
|
|
11757
|
+
return {
|
|
11758
|
+
...initChart(area),
|
|
11759
|
+
...initSeries(area)
|
|
11760
|
+
};
|
|
11751
11761
|
}, [props]);
|
|
11752
11762
|
React.useEffect(() => {
|
|
11753
11763
|
if (chartRef.current && chartRef.current.chart) {
|
|
@@ -11805,17 +11815,14 @@ var img$c = "data:image/svg+xml,%3csvg width='5894' height='1608' viewBox='0 0 5
|
|
|
11805
11815
|
|
|
11806
11816
|
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";
|
|
11807
11817
|
|
|
11808
|
-
const _excluded$b = ["href", "fallbackSrc", "src", "fit"],
|
|
11809
|
-
_excluded2$3 = ["href", "src", "fit", "w"],
|
|
11810
|
-
_excluded3$1 = ["href", "src", "fit"];
|
|
11811
11818
|
const Logo = _ref => {
|
|
11812
11819
|
let {
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11820
|
+
href = '/',
|
|
11821
|
+
fallbackSrc,
|
|
11822
|
+
src,
|
|
11823
|
+
fit,
|
|
11824
|
+
...rest
|
|
11825
|
+
} = _ref;
|
|
11819
11826
|
return /*#__PURE__*/React.createElement(core.Center, _extends({}, rest, {
|
|
11820
11827
|
component: reactRouterDom.Link,
|
|
11821
11828
|
display: "flex",
|
|
@@ -11831,12 +11838,12 @@ const Logo = _ref => {
|
|
|
11831
11838
|
};
|
|
11832
11839
|
const DynamicLogo = _ref2 => {
|
|
11833
11840
|
let {
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11841
|
+
href = "/",
|
|
11842
|
+
src,
|
|
11843
|
+
fit = "contain",
|
|
11844
|
+
w = 180,
|
|
11845
|
+
...rest
|
|
11846
|
+
} = _ref2;
|
|
11840
11847
|
return /*#__PURE__*/React.createElement(Logo, _extends({}, rest, {
|
|
11841
11848
|
href,
|
|
11842
11849
|
src,
|
|
@@ -11846,11 +11853,11 @@ const DynamicLogo = _ref2 => {
|
|
|
11846
11853
|
};
|
|
11847
11854
|
const DynamicShigaLogo = _ref3 => {
|
|
11848
11855
|
let {
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11856
|
+
href,
|
|
11857
|
+
src,
|
|
11858
|
+
fit = "contain",
|
|
11859
|
+
...rest
|
|
11860
|
+
} = _ref3;
|
|
11854
11861
|
return /*#__PURE__*/React.createElement(Logo, _extends({}, rest, {
|
|
11855
11862
|
href,
|
|
11856
11863
|
src,
|
|
@@ -11859,13 +11866,12 @@ const DynamicShigaLogo = _ref3 => {
|
|
|
11859
11866
|
}));
|
|
11860
11867
|
};
|
|
11861
11868
|
|
|
11862
|
-
const _excluded$a = ["children", "toggle"];
|
|
11863
11869
|
const ApplicationMenuTarget = _ref => {
|
|
11864
11870
|
let {
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11871
|
+
children,
|
|
11872
|
+
toggle,
|
|
11873
|
+
...rest
|
|
11874
|
+
} = _ref;
|
|
11869
11875
|
return /*#__PURE__*/React.createElement(core.Popover.Target, null, /*#__PURE__*/React.createElement(core.Button, {
|
|
11870
11876
|
variant: "transparent",
|
|
11871
11877
|
justify: "space-between",
|
|
@@ -11897,7 +11903,7 @@ const ApplicationMenuDropdown = _ref => {
|
|
|
11897
11903
|
gap: 5,
|
|
11898
11904
|
align: "flex-start"
|
|
11899
11905
|
}, items.map((item, index) => /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
11900
|
-
key:
|
|
11906
|
+
key: `item-${index}`
|
|
11901
11907
|
}, item, {
|
|
11902
11908
|
onClick: e => {
|
|
11903
11909
|
toggle();
|
|
@@ -12032,38 +12038,35 @@ const UserMenuDropdown = _ref => {
|
|
|
12032
12038
|
} = _ref;
|
|
12033
12039
|
return /*#__PURE__*/React.createElement(core.Menu.Dropdown, null, sections.map((section, index) => {
|
|
12034
12040
|
const items = [];
|
|
12035
|
-
const sectionItems = section.items.map((item, key) => {
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
fw: 300
|
|
12056
|
-
}, item.label));
|
|
12057
|
-
});
|
|
12041
|
+
const sectionItems = section.items.map((item, key) => /*#__PURE__*/React.createElement(core.Menu.Item, {
|
|
12042
|
+
c: section?.color,
|
|
12043
|
+
key: `menu-item-${key}`,
|
|
12044
|
+
h: height,
|
|
12045
|
+
leftSection: /*#__PURE__*/React.createElement(Icons, _extends({}, item.icon, {
|
|
12046
|
+
stroke: 0.5
|
|
12047
|
+
})),
|
|
12048
|
+
rightSection: item?.disclosure ? /*#__PURE__*/React.createElement(Icons, {
|
|
12049
|
+
name: "ArrowRight2",
|
|
12050
|
+
size: 12,
|
|
12051
|
+
stroke: 0.5
|
|
12052
|
+
}) : item.badge ? /*#__PURE__*/React.createElement(core.Badge, {
|
|
12053
|
+
color: item?.badge?.color,
|
|
12054
|
+
size: "sm"
|
|
12055
|
+
}, item?.badge?.text) : undefined,
|
|
12056
|
+
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
12057
|
+
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
12058
|
+
size: "xs",
|
|
12059
|
+
fw: 300
|
|
12060
|
+
}, item.label)));
|
|
12058
12061
|
if (index) items.push(/*#__PURE__*/React.createElement(core.Divider, {
|
|
12059
|
-
key:
|
|
12062
|
+
key: `divider-${index}`,
|
|
12060
12063
|
my: 2
|
|
12061
12064
|
}));
|
|
12062
|
-
if (section
|
|
12065
|
+
if (section?.title) items.push(/*#__PURE__*/React.createElement(core.Menu.Label, {
|
|
12063
12066
|
fz: 10,
|
|
12064
12067
|
fw: 500,
|
|
12065
12068
|
c: 'dimmed',
|
|
12066
|
-
key:
|
|
12069
|
+
key: `label-${index}`
|
|
12067
12070
|
}, section.title));
|
|
12068
12071
|
items.push(...sectionItems);
|
|
12069
12072
|
return items;
|
|
@@ -12108,52 +12111,46 @@ const SideMenu = _ref => {
|
|
|
12108
12111
|
sidemenu,
|
|
12109
12112
|
onClick
|
|
12110
12113
|
} = _ref;
|
|
12111
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => {
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
key: subitem.id
|
|
12142
|
-
})) : undefined);
|
|
12143
|
-
}));
|
|
12114
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, sidemenu.map(item => /*#__PURE__*/React.createElement(core.NavLink, {
|
|
12115
|
+
className: "backoffice-sidemenu",
|
|
12116
|
+
mt: "sm",
|
|
12117
|
+
component: reactRouterDom.Link,
|
|
12118
|
+
fw: 300,
|
|
12119
|
+
style: {
|
|
12120
|
+
borderRadius: radius
|
|
12121
|
+
},
|
|
12122
|
+
key: item.id,
|
|
12123
|
+
active: item.active,
|
|
12124
|
+
variant,
|
|
12125
|
+
onClick,
|
|
12126
|
+
leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
|
|
12127
|
+
label: item.label,
|
|
12128
|
+
to: item.children?.length ? "#" : item?.href || "#"
|
|
12129
|
+
}, item.children?.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(core.NavLink, {
|
|
12130
|
+
mt: "xs",
|
|
12131
|
+
component: reactRouterDom.Link,
|
|
12132
|
+
to: subitem.href || "#",
|
|
12133
|
+
label: subitem.label,
|
|
12134
|
+
active: subitem.active,
|
|
12135
|
+
onClick,
|
|
12136
|
+
c: color,
|
|
12137
|
+
fw: subitem.active ? 600 : 300,
|
|
12138
|
+
variant: "transparent",
|
|
12139
|
+
style: {
|
|
12140
|
+
borderRadius: radius
|
|
12141
|
+
},
|
|
12142
|
+
key: subitem.id
|
|
12143
|
+
})) : undefined)));
|
|
12144
12144
|
};
|
|
12145
12145
|
|
|
12146
|
-
const _excluded$9 = ["withPadding", "withRadius", "autoHeight", "children"],
|
|
12147
|
-
_excluded2$2 = ["withPadding", "title", "children"],
|
|
12148
|
-
_excluded3 = ["placeholder", "searchIcon", "filterIcon", "searchText", "filterFn", "children"];
|
|
12149
12146
|
const SimplePanel = _ref => {
|
|
12150
12147
|
let {
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12148
|
+
withPadding = true,
|
|
12149
|
+
withRadius = true,
|
|
12150
|
+
autoHeight = true,
|
|
12151
|
+
children,
|
|
12152
|
+
...rest
|
|
12153
|
+
} = _ref;
|
|
12157
12154
|
return /*#__PURE__*/React.createElement(core.Card, _extends({
|
|
12158
12155
|
p: !withPadding ? 0 : "md",
|
|
12159
12156
|
radius: !withRadius ? 0 : "lg",
|
|
@@ -12162,11 +12159,11 @@ const SimplePanel = _ref => {
|
|
|
12162
12159
|
};
|
|
12163
12160
|
const TitledPanel = _ref2 => {
|
|
12164
12161
|
let {
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12162
|
+
withPadding = true,
|
|
12163
|
+
title,
|
|
12164
|
+
children,
|
|
12165
|
+
...rest
|
|
12166
|
+
} = _ref2;
|
|
12170
12167
|
return /*#__PURE__*/React.createElement(SimplePanel, _extends({}, rest, {
|
|
12171
12168
|
withPadding: withPadding
|
|
12172
12169
|
}), /*#__PURE__*/React.createElement(core.Group, {
|
|
@@ -12200,18 +12197,18 @@ const TitledPanel = _ref2 => {
|
|
|
12200
12197
|
};
|
|
12201
12198
|
const SearchPanel = _ref3 => {
|
|
12202
12199
|
let {
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12200
|
+
placeholder = "Search by name or reference",
|
|
12201
|
+
searchIcon = {
|
|
12202
|
+
name: "SearchNormal1"
|
|
12203
|
+
},
|
|
12204
|
+
filterIcon = {
|
|
12205
|
+
name: "Setting5"
|
|
12206
|
+
},
|
|
12207
|
+
searchText = "Search",
|
|
12208
|
+
filterFn,
|
|
12209
|
+
children,
|
|
12210
|
+
...rest
|
|
12211
|
+
} = _ref3;
|
|
12215
12212
|
return /*#__PURE__*/React.createElement(SimplePanel, rest, /*#__PURE__*/React.createElement(core.Stack, null, /*#__PURE__*/React.createElement(core.Group, {
|
|
12216
12213
|
gap: 'xs'
|
|
12217
12214
|
}, /*#__PURE__*/React.createElement(core.TextInput, {
|
|
@@ -12257,21 +12254,19 @@ const LabelPanelItem = _ref => {
|
|
|
12257
12254
|
}, value));
|
|
12258
12255
|
};
|
|
12259
12256
|
|
|
12260
|
-
const _excluded$8 = ["title", "hasEdit", "labelWidth", "editFn", "editLabel", "items", "withBorder", "radius", "p"],
|
|
12261
|
-
_excluded2$1 = ["avatarSize", "avatar", "labelWidth", "withBorder", "radius", "p", "name", "username", "editLabel", "lastActive", "role", "editFn"];
|
|
12262
12257
|
const LabelPanel = _ref => {
|
|
12263
12258
|
let {
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
|
|
12259
|
+
title,
|
|
12260
|
+
hasEdit = true,
|
|
12261
|
+
labelWidth = 200,
|
|
12262
|
+
editFn = () => void 0,
|
|
12263
|
+
editLabel = "Edit",
|
|
12264
|
+
items,
|
|
12265
|
+
withBorder = true,
|
|
12266
|
+
radius = "md",
|
|
12267
|
+
p = "md",
|
|
12268
|
+
...rest
|
|
12269
|
+
} = _ref;
|
|
12275
12270
|
return /*#__PURE__*/React.createElement(core.Card, _extends({}, rest, {
|
|
12276
12271
|
withBorder,
|
|
12277
12272
|
radius,
|
|
@@ -12297,7 +12292,7 @@ const LabelPanel = _ref => {
|
|
|
12297
12292
|
})
|
|
12298
12293
|
}, editLabel)), items.map((item, index) => {
|
|
12299
12294
|
return /*#__PURE__*/React.createElement(LabelPanelItem, _extends({
|
|
12300
|
-
key:
|
|
12295
|
+
key: `label-item-${index}`
|
|
12301
12296
|
}, item, {
|
|
12302
12297
|
labelWidth: labelWidth
|
|
12303
12298
|
}));
|
|
@@ -12305,20 +12300,20 @@ const LabelPanel = _ref => {
|
|
|
12305
12300
|
};
|
|
12306
12301
|
const AvatarLabelPanel = _ref2 => {
|
|
12307
12302
|
let {
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12303
|
+
avatarSize = 150,
|
|
12304
|
+
avatar,
|
|
12305
|
+
labelWidth = 200,
|
|
12306
|
+
withBorder = true,
|
|
12307
|
+
radius = "md",
|
|
12308
|
+
p = "md",
|
|
12309
|
+
name = "Unknown",
|
|
12310
|
+
username = "unknown",
|
|
12311
|
+
editLabel = "Change Password",
|
|
12312
|
+
lastActive,
|
|
12313
|
+
role = "Staff",
|
|
12314
|
+
editFn = void 0,
|
|
12315
|
+
...rest
|
|
12316
|
+
} = _ref2;
|
|
12322
12317
|
return /*#__PURE__*/React.createElement(core.Card, _extends({}, rest, {
|
|
12323
12318
|
withBorder,
|
|
12324
12319
|
radius,
|
|
@@ -12366,22 +12361,19 @@ const AvatarLabelPanel = _ref2 => {
|
|
|
12366
12361
|
}, editLabel)));
|
|
12367
12362
|
};
|
|
12368
12363
|
|
|
12369
|
-
const _excluded$7 = ["label", "smaller"];
|
|
12370
12364
|
const SimpleText = _ref => {
|
|
12371
12365
|
let {
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
|
|
12375
|
-
|
|
12366
|
+
label,
|
|
12367
|
+
smaller,
|
|
12368
|
+
...rest
|
|
12369
|
+
} = _ref;
|
|
12376
12370
|
return /*#__PURE__*/React.createElement(core.Text, _extends({
|
|
12377
12371
|
fw: 300,
|
|
12378
12372
|
fz: smaller ? '90%' : undefined
|
|
12379
12373
|
}, rest), label);
|
|
12380
12374
|
};
|
|
12381
12375
|
|
|
12382
|
-
const _excluded$6 = ["createFn", "icon", "label"];
|
|
12383
12376
|
const PageTitle = _ref => {
|
|
12384
|
-
var _switcher$items;
|
|
12385
12377
|
let {
|
|
12386
12378
|
title,
|
|
12387
12379
|
subtitle = "",
|
|
@@ -12393,11 +12385,11 @@ const PageTitle = _ref => {
|
|
|
12393
12385
|
} = _ref;
|
|
12394
12386
|
if (withCreate && create) {
|
|
12395
12387
|
const {
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12388
|
+
createFn,
|
|
12389
|
+
icon,
|
|
12390
|
+
label,
|
|
12391
|
+
...rest
|
|
12392
|
+
} = create;
|
|
12401
12393
|
rightsection = /*#__PURE__*/React.createElement(core.Button, _extends({
|
|
12402
12394
|
radius: "md",
|
|
12403
12395
|
size: "sm",
|
|
@@ -12408,7 +12400,7 @@ const PageTitle = _ref => {
|
|
|
12408
12400
|
fz: 14
|
|
12409
12401
|
}, label));
|
|
12410
12402
|
}
|
|
12411
|
-
if (withSwitcher && switcher
|
|
12403
|
+
if (withSwitcher && switcher?.items?.length) {
|
|
12412
12404
|
rightsection = /*#__PURE__*/React.createElement(core.SegmentedControl, {
|
|
12413
12405
|
size: "sm",
|
|
12414
12406
|
bg: "white",
|
|
@@ -12430,7 +12422,7 @@ const PageTitle = _ref => {
|
|
|
12430
12422
|
}, subtitle) : /*#__PURE__*/React.createElement(core.Breadcrumbs, {
|
|
12431
12423
|
separatorMargin: "xs",
|
|
12432
12424
|
separator: "\xB7"
|
|
12433
|
-
}, subtitle
|
|
12425
|
+
}, subtitle?.map((item, index) => {
|
|
12434
12426
|
return index < subtitle.length - 1 ? /*#__PURE__*/React.createElement(core.Anchor, {
|
|
12435
12427
|
key: index,
|
|
12436
12428
|
fz: 14,
|
|
@@ -12530,20 +12522,19 @@ const ConnectionPanelDetail = _ref => {
|
|
|
12530
12522
|
}, value));
|
|
12531
12523
|
};
|
|
12532
12524
|
|
|
12533
|
-
const _excluded$5 = ["id", "statusColor", "name", "status", "edit", "test", "pause", "details", "altColor"];
|
|
12534
12525
|
const ConnectionPanel = _ref => {
|
|
12535
12526
|
let {
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12527
|
+
id,
|
|
12528
|
+
statusColor,
|
|
12529
|
+
name,
|
|
12530
|
+
status,
|
|
12531
|
+
edit,
|
|
12532
|
+
test,
|
|
12533
|
+
pause,
|
|
12534
|
+
details,
|
|
12535
|
+
altColor,
|
|
12536
|
+
...rest
|
|
12537
|
+
} = _ref;
|
|
12547
12538
|
return /*#__PURE__*/React.createElement(core.Card, {
|
|
12548
12539
|
withBorder: true,
|
|
12549
12540
|
bg: "gray.0",
|
|
@@ -12630,7 +12621,7 @@ const ConnectionPanel = _ref => {
|
|
|
12630
12621
|
py: "lg"
|
|
12631
12622
|
}, details.map((item, index) => {
|
|
12632
12623
|
return /*#__PURE__*/React.createElement(ConnectionPanelDetail, _extends({
|
|
12633
|
-
key:
|
|
12624
|
+
key: `detail-${index}`
|
|
12634
12625
|
}, item, {
|
|
12635
12626
|
altColor: altColor
|
|
12636
12627
|
}));
|
|
@@ -12659,23 +12650,22 @@ const ApplicationPanelFeatures = _ref => {
|
|
|
12659
12650
|
}, label));
|
|
12660
12651
|
};
|
|
12661
12652
|
|
|
12662
|
-
const _excluded$4 = ["name", "coverImage", "discount", "summary", "featureLabel", "features", "amount", "frequency", "actionLabel", "subscribed", "subscribedLabel", "onClick"];
|
|
12663
12653
|
const ApplicationPanel = _ref => {
|
|
12664
12654
|
let {
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12655
|
+
name,
|
|
12656
|
+
coverImage,
|
|
12657
|
+
discount = "",
|
|
12658
|
+
summary,
|
|
12659
|
+
featureLabel,
|
|
12660
|
+
features,
|
|
12661
|
+
amount,
|
|
12662
|
+
frequency,
|
|
12663
|
+
actionLabel,
|
|
12664
|
+
subscribed,
|
|
12665
|
+
subscribedLabel = "Added",
|
|
12666
|
+
onClick = () => void 0,
|
|
12667
|
+
...rest
|
|
12668
|
+
} = _ref;
|
|
12679
12669
|
return /*#__PURE__*/React.createElement(core.Card, _extends({
|
|
12680
12670
|
withBorder: true,
|
|
12681
12671
|
radius: "md"
|
|
@@ -12742,7 +12732,7 @@ const ApplicationPanel = _ref => {
|
|
|
12742
12732
|
lineHeight: 1
|
|
12743
12733
|
},
|
|
12744
12734
|
mt: 3
|
|
12745
|
-
},
|
|
12735
|
+
}, `per ${frequency}`)), /*#__PURE__*/React.createElement(core.Box, {
|
|
12746
12736
|
hidden: subscribed
|
|
12747
12737
|
}, /*#__PURE__*/React.createElement(core.Button, {
|
|
12748
12738
|
fw: 300,
|
|
@@ -12809,7 +12799,7 @@ const SubscriptionPlans = _ref => {
|
|
|
12809
12799
|
fz: "sm",
|
|
12810
12800
|
component: "span",
|
|
12811
12801
|
c: "dimmed"
|
|
12812
|
-
}, price[1] ?
|
|
12802
|
+
}, price[1] ? `/${price[1]}` : " /month"))), /*#__PURE__*/React.createElement(core.Button, {
|
|
12813
12803
|
w: 100,
|
|
12814
12804
|
size: "xs",
|
|
12815
12805
|
fw: 500,
|
|
@@ -12853,7 +12843,7 @@ const PaymentMethod = _ref => {
|
|
|
12853
12843
|
fz: 14,
|
|
12854
12844
|
tt: "uppercase",
|
|
12855
12845
|
fw: 500
|
|
12856
|
-
},
|
|
12846
|
+
}, `**** **** **** ${pan}`), /*#__PURE__*/React.createElement(core.Group, {
|
|
12857
12847
|
c: "dimmed"
|
|
12858
12848
|
}, /*#__PURE__*/React.createElement(core.Text, {
|
|
12859
12849
|
tt: "capitalize",
|
|
@@ -12937,7 +12927,7 @@ const SimpleBody = _ref => {
|
|
|
12937
12927
|
row["action"] = actionFn;
|
|
12938
12928
|
}
|
|
12939
12929
|
if (withIndex) {
|
|
12940
|
-
row["index"] =
|
|
12930
|
+
row["index"] = `${index ? index + 1 : 1}`;
|
|
12941
12931
|
}
|
|
12942
12932
|
return /*#__PURE__*/React.createElement(core.Table.Tr, {
|
|
12943
12933
|
fw: 300,
|
|
@@ -12947,7 +12937,7 @@ const SimpleBody = _ref => {
|
|
|
12947
12937
|
const columnIndex = column.id;
|
|
12948
12938
|
return /*#__PURE__*/React.createElement(core.Table.Td, {
|
|
12949
12939
|
key: idx
|
|
12950
|
-
}, typeof row[columnIndex] === 'function' ? row[columnIndex](
|
|
12940
|
+
}, typeof row[columnIndex] === 'function' ? row[columnIndex](`${index}`) : row[columnIndex] || "");
|
|
12951
12941
|
}));
|
|
12952
12942
|
};
|
|
12953
12943
|
|
|
@@ -12983,7 +12973,7 @@ const SimpleTable = _ref => {
|
|
|
12983
12973
|
bg: isStriped ? 'gray.1' : 'transparent'
|
|
12984
12974
|
}, columns.map((column, index) => {
|
|
12985
12975
|
return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
|
|
12986
|
-
key:
|
|
12976
|
+
key: `column-${index}`
|
|
12987
12977
|
}, column));
|
|
12988
12978
|
}))), /*#__PURE__*/React.createElement(core.Table.Tbody, null, rows.map((row, index) => {
|
|
12989
12979
|
return /*#__PURE__*/React.createElement(SimpleBody, {
|
|
@@ -13008,7 +12998,6 @@ var img$1 = "data:image/svg+xml,%3csvg width='622' height='800' viewBox='0 0 622
|
|
|
13008
12998
|
|
|
13009
12999
|
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
13000
|
|
|
13011
|
-
const _excluded$3 = ["shape", "type", "w", "bg", "bd", "rightsection"];
|
|
13012
13001
|
const CHIP_HEIGHT = 25;
|
|
13013
13002
|
const TILE_HEIGHT = 70;
|
|
13014
13003
|
const CHIP_WIDTH = CHIP_HEIGHT;
|
|
@@ -13022,14 +13011,14 @@ const ICON = {
|
|
|
13022
13011
|
};
|
|
13023
13012
|
const File = _ref => {
|
|
13024
13013
|
let {
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13014
|
+
shape = "chip",
|
|
13015
|
+
type = "pdf",
|
|
13016
|
+
w = 250,
|
|
13017
|
+
bg = "gray.0",
|
|
13018
|
+
bd = "0.5px solid",
|
|
13019
|
+
rightsection,
|
|
13020
|
+
...rest
|
|
13021
|
+
} = _ref;
|
|
13033
13022
|
const isChip = shape == "chip";
|
|
13034
13023
|
const radius = isChip ? "md" : "sm";
|
|
13035
13024
|
return /*#__PURE__*/React.createElement(core.Card, _extends({}, rest, {
|
|
@@ -13054,7 +13043,7 @@ const File = _ref => {
|
|
|
13054
13043
|
}), rightsection ? /*#__PURE__*/React.createElement(core.ActionIcon, {
|
|
13055
13044
|
variant: "transparent",
|
|
13056
13045
|
onClick: rightsection.onClick
|
|
13057
|
-
}, /*#__PURE__*/React.createElement(Icons, rightsection
|
|
13046
|
+
}, /*#__PURE__*/React.createElement(Icons, rightsection?.icon)) : undefined)));
|
|
13058
13047
|
};
|
|
13059
13048
|
|
|
13060
13049
|
const theme = core.createTheme({
|
|
@@ -13125,15 +13114,13 @@ const InfoModal = _ref => {
|
|
|
13125
13114
|
}, "Close modal"));
|
|
13126
13115
|
};
|
|
13127
13116
|
|
|
13128
|
-
const _excluded$2 = ["context", "id", "innerProps"];
|
|
13129
13117
|
const SimpleModal = _ref => {
|
|
13130
|
-
var _innerProps$labels, _innerProps$labels2, _innerProps$labels3, _innerProps$labels4;
|
|
13131
13118
|
let {
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13119
|
+
context,
|
|
13120
|
+
id,
|
|
13121
|
+
innerProps,
|
|
13122
|
+
...rest
|
|
13123
|
+
} = _ref;
|
|
13137
13124
|
return /*#__PURE__*/React.createElement(core.Stack, {
|
|
13138
13125
|
pt: "lg",
|
|
13139
13126
|
gap: "xl"
|
|
@@ -13146,19 +13133,20 @@ const SimpleModal = _ref => {
|
|
|
13146
13133
|
lh: '40px'
|
|
13147
13134
|
}, innerProps.title), /*#__PURE__*/React.createElement(React.Fragment, null, innerProps.modalBody)), /*#__PURE__*/React.createElement(core.Group, _extends({
|
|
13148
13135
|
gap: "sm"
|
|
13149
|
-
}, innerProps
|
|
13136
|
+
}, innerProps?.groupProps, {
|
|
13150
13137
|
grow: true
|
|
13151
13138
|
}), /*#__PURE__*/React.createElement(core.Button, _extends({
|
|
13152
|
-
hidden: !
|
|
13153
|
-
}, innerProps
|
|
13139
|
+
hidden: !innerProps?.labels?.cancel
|
|
13140
|
+
}, innerProps?.cancelProps, {
|
|
13154
13141
|
onClick: () => context.closeModal(id),
|
|
13155
13142
|
fw: 300
|
|
13156
|
-
}), innerProps
|
|
13157
|
-
|
|
13158
|
-
|
|
13143
|
+
}), innerProps?.labels?.cancel), /*#__PURE__*/React.createElement(core.Button, _extends({
|
|
13144
|
+
loading: innerProps?.isLoading,
|
|
13145
|
+
hidden: !innerProps?.labels?.confirm
|
|
13146
|
+
}, innerProps?.confirmProps, {
|
|
13159
13147
|
onClick: () => context.closeModal(id),
|
|
13160
13148
|
fw: 300
|
|
13161
|
-
}), innerProps
|
|
13149
|
+
}), innerProps?.labels?.confirm)));
|
|
13162
13150
|
};
|
|
13163
13151
|
|
|
13164
13152
|
var SuccessAnimation = "data:null;base64,UEsDBBQAAAAIALCR1locZoERgAAAALUAAAANAAAAbWFuaWZlc3QuanNvbo2NOw7CMBAF77I1DvGHKEqVC3ACROHPBowcG9kLEopyd7aipntPmtFs8MbaYskwgYQD3DBjtVQq/zkUSoUo4vG3xKPNslNdz6x90f0/MMfVEkcaTJcNYmBHm0F6Z07Ca6+EGcwiRoNaqFFahU66Xi+sPpP9nEtANnKpq02wX/cvUEsDBBQAAAAIALCR1lpRipIvnQ0AAAxqAAA0AAAAYW5pbWF0aW9ucy8zNDYxY2I0NS1jM2MyLTQ2NGYtODRlMy0yODFhMmViMWIwM2YuanNvbu1cW2/cuBX+KwM9tYAkiBSvfttt07y0QIFd9CXIw9SZJG7s2PBMug0M//d+51CUqMt4FO/O2ImF9WYkkjq8iPzO+Q4PdZd9vsrOstc366+rXy/OP2V59u7du+ysyrOP2ZnwEhe/xYurzW6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a4qpAeoJ1AhKLjnNPKPuXkE82lOJAmMIrKwQUCx8ThWIThwbONRsfbrrRR3NTpHUMHyIlG66knC53V+iG8A7dMpj5SyKJa520nB/N+zndTPnLOdFA4MVEGXhJR2T6mX1ySdlAbs+VzEs4XwBNBiW48J4RyMjFeZ6RJeXPTzPWoyHWC3eL3ebjc7WjRv7/8PUEsBAhQAFAAAAAgAsJHWWhxmgRGAAAAAtQAAAA0AAAAAAAAAAAAAAAAAAAAAAG1hbmlmZXN0Lmpzb25QSwECFAAUAAAACACwkdZaUYqSL50NAAAMagAANAAAAAAAAAAAAAAAAACrAAAAYW5pbWF0aW9ucy8zNDYxY2I0NS1jM2MyLTQ2NGYtODRlMy0yODFhMmViMWIwM2YuanNvblBLBQYAAAAAAgACAJ0AAACaDgAAAAA=";
|
|
@@ -13259,18 +13247,15 @@ const Drawer = _ref => {
|
|
|
13259
13247
|
}, page))));
|
|
13260
13248
|
};
|
|
13261
13249
|
|
|
13262
|
-
const _excluded$1 = ["fields", "isEditable", "layout", "hasSubmit", "hasReset"];
|
|
13263
|
-
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; }
|
|
13264
|
-
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; }
|
|
13265
13250
|
const SimpleForm = _ref => {
|
|
13266
13251
|
let {
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13252
|
+
fields,
|
|
13253
|
+
isEditable = true,
|
|
13254
|
+
layout = [],
|
|
13255
|
+
hasSubmit,
|
|
13256
|
+
hasReset,
|
|
13257
|
+
...rest
|
|
13258
|
+
} = _ref;
|
|
13274
13259
|
const components = {
|
|
13275
13260
|
Textarea: core.Textarea,
|
|
13276
13261
|
TextInput: core.TextInput,
|
|
@@ -13287,12 +13272,14 @@ const SimpleForm = _ref => {
|
|
|
13287
13272
|
localInitialValues[sanitizedField.name] = "";
|
|
13288
13273
|
}
|
|
13289
13274
|
if (typeof field === "object" && Object.keys(components).includes(field.component)) {
|
|
13290
|
-
|
|
13291
|
-
const sanitizedField = santize((_field$field = field.field) !== null && _field$field !== void 0 ? _field$field : "");
|
|
13275
|
+
const sanitizedField = santize(field.field ?? "");
|
|
13292
13276
|
localInitialValues[sanitizedField.name] = "";
|
|
13293
13277
|
}
|
|
13294
13278
|
});
|
|
13295
|
-
return
|
|
13279
|
+
return {
|
|
13280
|
+
...localInitialValues,
|
|
13281
|
+
...rest.initialValues
|
|
13282
|
+
};
|
|
13296
13283
|
},
|
|
13297
13284
|
validate: rest.formValidate
|
|
13298
13285
|
});
|
|
@@ -13310,10 +13297,7 @@ const SimpleForm = _ref => {
|
|
|
13310
13297
|
required: true
|
|
13311
13298
|
};
|
|
13312
13299
|
return /*#__PURE__*/React.createElement("form", {
|
|
13313
|
-
onSubmit: form$1.onSubmit(values =>
|
|
13314
|
-
var _rest$onSubmit;
|
|
13315
|
-
return hasSubmit ? (_rest$onSubmit = rest.onSubmit) === null || _rest$onSubmit === void 0 ? void 0 : _rest$onSubmit.call(rest, values) : void 0;
|
|
13316
|
-
}),
|
|
13300
|
+
onSubmit: form$1.onSubmit(values => hasSubmit ? rest.onSubmit?.(values) : void 0),
|
|
13317
13301
|
onReset: form$1.reset,
|
|
13318
13302
|
style: {
|
|
13319
13303
|
height: "100%"
|
|
@@ -13335,9 +13319,8 @@ const SimpleForm = _ref => {
|
|
|
13335
13319
|
}, field(form$1.getInputProps));
|
|
13336
13320
|
}
|
|
13337
13321
|
if (Object.keys(components).includes(field.component)) {
|
|
13338
|
-
var _field$field2;
|
|
13339
13322
|
const Component = components[field.component];
|
|
13340
|
-
const sanitizedField = santize(
|
|
13323
|
+
const sanitizedField = santize(field.field ?? "");
|
|
13341
13324
|
return /*#__PURE__*/React.createElement(core.Grid.Col, {
|
|
13342
13325
|
key: index,
|
|
13343
13326
|
span: layout[index]
|
|
@@ -13352,26 +13335,25 @@ const SimpleForm = _ref => {
|
|
|
13352
13335
|
})));
|
|
13353
13336
|
};
|
|
13354
13337
|
const santize = field => {
|
|
13355
|
-
var _ref2, _field$label, _field$placeholder, _field$name, _field$name$split$joi, _field$name2;
|
|
13356
13338
|
if (typeof field === "string") {
|
|
13357
|
-
const name = field
|
|
13339
|
+
const name = field?.split(" ").join("_").toLowerCase();
|
|
13358
13340
|
return {
|
|
13359
13341
|
label: field,
|
|
13360
|
-
placeholder:
|
|
13342
|
+
placeholder: `Please enter ${field.toLowerCase()}`,
|
|
13361
13343
|
name
|
|
13362
13344
|
};
|
|
13363
13345
|
}
|
|
13364
13346
|
return {
|
|
13365
|
-
label:
|
|
13366
|
-
placeholder:
|
|
13367
|
-
name:
|
|
13347
|
+
label: `${field?.label ?? field?.name ?? ""}`,
|
|
13348
|
+
placeholder: field.placeholder ?? `Please enter ${field.name?.toLowerCase()}`,
|
|
13349
|
+
name: field.name?.split(" ").join("_").toLowerCase() ?? ""
|
|
13368
13350
|
};
|
|
13369
13351
|
};
|
|
13370
|
-
const FormButtons =
|
|
13352
|
+
const FormButtons = _ref2 => {
|
|
13371
13353
|
let {
|
|
13372
13354
|
hasSubmit = false,
|
|
13373
13355
|
hasReset = false
|
|
13374
|
-
} =
|
|
13356
|
+
} = _ref2;
|
|
13375
13357
|
return /*#__PURE__*/React.createElement(core.Group, {
|
|
13376
13358
|
justify: "flex-end",
|
|
13377
13359
|
grow: true,
|
|
@@ -13498,8 +13480,7 @@ var ConfirmAnimation = "data:null;base64,UEsDBBQAAAAIAEoK11qAribJgAAAALUAAAANAAA
|
|
|
13498
13480
|
|
|
13499
13481
|
const ConfirmModal = _ref => {
|
|
13500
13482
|
let {
|
|
13501
|
-
children
|
|
13502
|
-
} = _ref;
|
|
13483
|
+
children} = _ref;
|
|
13503
13484
|
return /*#__PURE__*/React.createElement(core.Stack, {
|
|
13504
13485
|
align: "center",
|
|
13505
13486
|
py: "md"
|
|
@@ -13517,10 +13498,6 @@ const ConfirmModal = _ref => {
|
|
|
13517
13498
|
}, children));
|
|
13518
13499
|
};
|
|
13519
13500
|
|
|
13520
|
-
const _excluded = ["title", "children", "onConfirm", "labels"],
|
|
13521
|
-
_excluded2 = ["title", "children", "onConfirm", "labels", "pinLength"];
|
|
13522
|
-
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; }
|
|
13523
|
-
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; }
|
|
13524
13501
|
const useModal = () => {
|
|
13525
13502
|
const groupProps = {
|
|
13526
13503
|
gap: "sm",
|
|
@@ -13531,10 +13508,11 @@ const useModal = () => {
|
|
|
13531
13508
|
fw: 300,
|
|
13532
13509
|
size: "md"
|
|
13533
13510
|
};
|
|
13534
|
-
const cancelProps =
|
|
13511
|
+
const cancelProps = {
|
|
13512
|
+
...confirmProps,
|
|
13535
13513
|
color: "#F95454",
|
|
13536
13514
|
variant: "filled"
|
|
13537
|
-
}
|
|
13515
|
+
};
|
|
13538
13516
|
const buttonProps = {
|
|
13539
13517
|
groupProps,
|
|
13540
13518
|
confirmProps,
|
|
@@ -13542,23 +13520,29 @@ const useModal = () => {
|
|
|
13542
13520
|
};
|
|
13543
13521
|
const ConfirmationModal = _ref => {
|
|
13544
13522
|
let {
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
rest
|
|
13554
|
-
|
|
13523
|
+
title = "",
|
|
13524
|
+
children,
|
|
13525
|
+
onConfirm,
|
|
13526
|
+
labels = {
|
|
13527
|
+
cancel: "Cancel",
|
|
13528
|
+
confirm: "Confirm"
|
|
13529
|
+
},
|
|
13530
|
+
loading,
|
|
13531
|
+
...rest
|
|
13532
|
+
} = _ref;
|
|
13533
|
+
return modals.modals.openConfirmModal({
|
|
13555
13534
|
children: ConfirmModal({
|
|
13556
13535
|
children
|
|
13557
|
-
})
|
|
13558
|
-
|
|
13536
|
+
}),
|
|
13537
|
+
...buttonProps,
|
|
13538
|
+
confirmProps: {
|
|
13539
|
+
...buttonProps.confirmProps,
|
|
13540
|
+
loading
|
|
13541
|
+
},
|
|
13559
13542
|
onConfirm,
|
|
13560
|
-
labels
|
|
13561
|
-
|
|
13543
|
+
labels,
|
|
13544
|
+
...rest
|
|
13545
|
+
});
|
|
13562
13546
|
};
|
|
13563
13547
|
const ErrorModal = _ref2 => {
|
|
13564
13548
|
let {
|
|
@@ -13589,6 +13573,7 @@ const useModal = () => {
|
|
|
13589
13573
|
let {
|
|
13590
13574
|
title,
|
|
13591
13575
|
message,
|
|
13576
|
+
loading,
|
|
13592
13577
|
size = "md",
|
|
13593
13578
|
labels = {
|
|
13594
13579
|
cancel: "Cancel",
|
|
@@ -13597,13 +13582,14 @@ const useModal = () => {
|
|
|
13597
13582
|
} = _ref3;
|
|
13598
13583
|
return modals.modals.openContextModal({
|
|
13599
13584
|
modal: "SimpleModal",
|
|
13600
|
-
innerProps:
|
|
13585
|
+
innerProps: {
|
|
13601
13586
|
modalBody: message,
|
|
13587
|
+
loading: loading,
|
|
13602
13588
|
title: title,
|
|
13603
|
-
size: size
|
|
13604
|
-
|
|
13589
|
+
size: size,
|
|
13590
|
+
...buttonProps,
|
|
13605
13591
|
labels
|
|
13606
|
-
}
|
|
13592
|
+
}
|
|
13607
13593
|
});
|
|
13608
13594
|
};
|
|
13609
13595
|
const SuccessModal = _ref4 => {
|
|
@@ -13626,26 +13612,32 @@ const useModal = () => {
|
|
|
13626
13612
|
};
|
|
13627
13613
|
const TwoFactorVerificationModal = _ref5 => {
|
|
13628
13614
|
let {
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
rest
|
|
13639
|
-
|
|
13615
|
+
title = "",
|
|
13616
|
+
children,
|
|
13617
|
+
loading,
|
|
13618
|
+
onConfirm,
|
|
13619
|
+
labels = {
|
|
13620
|
+
cancel: "Cancel",
|
|
13621
|
+
confirm: "Confirm"
|
|
13622
|
+
},
|
|
13623
|
+
pinLength = 6,
|
|
13624
|
+
...rest
|
|
13625
|
+
} = _ref5;
|
|
13626
|
+
return modals.modals.openConfirmModal({
|
|
13640
13627
|
children: TwoFactorModal({
|
|
13641
13628
|
children,
|
|
13642
13629
|
title,
|
|
13643
13630
|
pinLength
|
|
13644
|
-
})
|
|
13645
|
-
|
|
13631
|
+
}),
|
|
13632
|
+
...buttonProps,
|
|
13633
|
+
confirmProps: {
|
|
13634
|
+
...buttonProps.confirmProps,
|
|
13635
|
+
loading
|
|
13636
|
+
},
|
|
13646
13637
|
onConfirm,
|
|
13647
|
-
labels
|
|
13648
|
-
|
|
13638
|
+
labels,
|
|
13639
|
+
...rest
|
|
13640
|
+
});
|
|
13649
13641
|
};
|
|
13650
13642
|
return {
|
|
13651
13643
|
ConfirmationModal,
|