@adiba-banking-cloud/backoffice 0.0.105 → 0.2.0
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/{heatmap-iI7S3gXi.js → heatmap-c3tdleHx.js} +1 -1
- package/build/index.cjs.js/{index-FFda0udd.js → index-QwR6crYB.js} +175 -34
- package/build/index.cjs.js/index.js +10 -1
- package/build/index.esm.js/{heatmap-B5TomJs2.js → heatmap-Dfb5-pNh.js} +1 -1
- package/build/index.esm.js/{index-D_S62F0o.js → index-9HtrJaD9.js} +449 -314
- package/build/index.esm.js/index.js +4 -1
- package/build/typings/components/charts/area/Area.types.d.ts +1 -0
- package/build/typings/index.d.ts +2 -0
- package/build/typings/shared/api/client.d.ts +24 -0
- package/build/typings/shared/api/constants.d.ts +12 -0
- package/build/typings/shared/api/index.d.ts +3 -0
- package/build/typings/shared/api/types.d.ts +16 -0
- package/build/typings/shared/components/ModalContentWrapper.d.ts +9 -0
- package/build/typings/shared/components/index.d.ts +1 -0
- package/package.json +5 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { modals } from '@mantine/modals';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default, { useRef, useMemo, useEffect, useState } from 'react';
|
|
4
|
+
import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table, createTheme, PinInput, Drawer as Drawer$1, ScrollArea, NumberInput, PasswordInput, Textarea, Grid, MantineProvider } from '@mantine/core';
|
|
4
5
|
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
|
|
5
6
|
import _extends from '@babel/runtime/helpers/extends';
|
|
6
7
|
import HighchartsReact from 'highcharts-react-official';
|
|
@@ -17,6 +18,9 @@ import '@fontsource/poppins/500.css';
|
|
|
17
18
|
import '@fontsource/poppins/600.css';
|
|
18
19
|
import '@fontsource/poppins/700.css';
|
|
19
20
|
import '@fontsource/poppins/800.css';
|
|
21
|
+
import axios from 'axios';
|
|
22
|
+
import { DatesProvider } from '@mantine/dates';
|
|
23
|
+
import '@mantine/dates/styles.css';
|
|
20
24
|
|
|
21
25
|
function _mergeNamespaces(n, m) {
|
|
22
26
|
m.forEach(function (e) {
|
|
@@ -11345,7 +11349,7 @@ const Column = props => {
|
|
|
11345
11349
|
chartRef.current.chart.update(chartOptions, true);
|
|
11346
11350
|
}
|
|
11347
11351
|
}, [chartOptions]);
|
|
11348
|
-
return /*#__PURE__*/
|
|
11352
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
11349
11353
|
highcharts: Highcharts,
|
|
11350
11354
|
ref: chartRef,
|
|
11351
11355
|
options: chartOptions
|
|
@@ -11368,7 +11372,7 @@ const EqualizerColumn = props => {
|
|
|
11368
11372
|
showYLabel: props.showYLabel,
|
|
11369
11373
|
showAxisLabel: props.showAxisLabel
|
|
11370
11374
|
};
|
|
11371
|
-
return /*#__PURE__*/
|
|
11375
|
+
return /*#__PURE__*/React__default.createElement(Column, chartOptions);
|
|
11372
11376
|
};
|
|
11373
11377
|
const SimpleColumn = props => {
|
|
11374
11378
|
const chartOptions = {
|
|
@@ -11387,42 +11391,48 @@ const SimpleColumn = props => {
|
|
|
11387
11391
|
showYLabel: props.showYLabel,
|
|
11388
11392
|
showAxisLabel: props.showAxisLabel
|
|
11389
11393
|
};
|
|
11390
|
-
return /*#__PURE__*/
|
|
11394
|
+
return /*#__PURE__*/React__default.createElement(Column, chartOptions);
|
|
11391
11395
|
};
|
|
11392
11396
|
const StackedColumn = props => {
|
|
11393
|
-
return /*#__PURE__*/
|
|
11397
|
+
return /*#__PURE__*/React__default.createElement(Column, _extends({}, props, {
|
|
11394
11398
|
equalizer: false
|
|
11395
11399
|
}));
|
|
11396
11400
|
};
|
|
11397
11401
|
const initSeries$3 = props => {
|
|
11398
|
-
const renderXAxis = (categories
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
|
|
11402
|
+
const renderXAxis = function (categories) {
|
|
11403
|
+
let showXLabel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
11404
|
+
return {
|
|
11405
|
+
categories,
|
|
11406
|
+
labels: {
|
|
11407
|
+
enabled: showXLabel,
|
|
11408
|
+
style: {
|
|
11409
|
+
textTransform: "uppercase",
|
|
11410
|
+
color: "#575E77"
|
|
11411
|
+
}
|
|
11405
11412
|
}
|
|
11406
|
-
}
|
|
11407
|
-
}
|
|
11408
|
-
const renderYAxis = (equalizer, series
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11413
|
+
};
|
|
11414
|
+
};
|
|
11415
|
+
const renderYAxis = function (equalizer, series) {
|
|
11416
|
+
let showYLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
11417
|
+
return {
|
|
11418
|
+
allowDecimals: false,
|
|
11419
|
+
title: {
|
|
11420
|
+
text: null
|
|
11421
|
+
},
|
|
11422
|
+
gridLineDashStyle: "Dot",
|
|
11423
|
+
gridLineWidth: 2,
|
|
11424
|
+
labels: {
|
|
11425
|
+
enabled: showYLabel,
|
|
11426
|
+
formatter: ctx => {
|
|
11427
|
+
if (!equalizer || series.length > 1) {
|
|
11428
|
+
return ctx.value;
|
|
11429
|
+
}
|
|
11430
|
+
const axisLabel = ctx.value * computeBoundary(series[0]) / 100;
|
|
11431
|
+
return axisLabel.toFixed();
|
|
11420
11432
|
}
|
|
11421
|
-
const axisLabel = ctx.value * computeBoundary(series[0]) / 100;
|
|
11422
|
-
return axisLabel.toFixed();
|
|
11423
11433
|
}
|
|
11424
|
-
}
|
|
11425
|
-
}
|
|
11434
|
+
};
|
|
11435
|
+
};
|
|
11426
11436
|
const renderSeries = (seriesData, seriesColors, equalizer, showDataLabels, showAxisLabel) => {
|
|
11427
11437
|
if (seriesData.length > 1 || !equalizer) {
|
|
11428
11438
|
let br = undefined;
|
|
@@ -11571,8 +11581,8 @@ const initSeries$3 = props => {
|
|
|
11571
11581
|
return plot;
|
|
11572
11582
|
};
|
|
11573
11583
|
return {
|
|
11574
|
-
xAxis: renderXAxis(props.xAxisLabel, props.showXLabel),
|
|
11575
|
-
yAxis: renderYAxis(props.equalizer, props.series, props.showYLabel),
|
|
11584
|
+
xAxis: renderXAxis(props.xAxisLabel, props.showXLabel ?? true),
|
|
11585
|
+
yAxis: renderYAxis(props.equalizer, props.series, props.showYLabel ?? true),
|
|
11576
11586
|
plotOptions: renderPlot(props.equalizer),
|
|
11577
11587
|
series: renderSeries(props.series, props?.colors, props.equalizer, props.showDataLabels, props.showAxisLabel)
|
|
11578
11588
|
};
|
|
@@ -11682,7 +11692,7 @@ const Area = props => {
|
|
|
11682
11692
|
chartRef.current.chart.update(chartOptions, true);
|
|
11683
11693
|
}
|
|
11684
11694
|
}, [chartOptions]);
|
|
11685
|
-
return /*#__PURE__*/
|
|
11695
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
11686
11696
|
highcharts: Highcharts,
|
|
11687
11697
|
ref: chartRef,
|
|
11688
11698
|
options: chartOptions
|
|
@@ -11703,7 +11713,7 @@ const SimpleArea = props => {
|
|
|
11703
11713
|
showYAxis: props.showYAxis,
|
|
11704
11714
|
step: props.step
|
|
11705
11715
|
};
|
|
11706
|
-
return /*#__PURE__*/
|
|
11716
|
+
return /*#__PURE__*/React__default.createElement(Area, chartOptions);
|
|
11707
11717
|
};
|
|
11708
11718
|
const MultiAxisArea = props => {
|
|
11709
11719
|
const chartRef = useRef(null);
|
|
@@ -11721,7 +11731,7 @@ const MultiAxisArea = props => {
|
|
|
11721
11731
|
chartRef.current.chart.update(chartOptions, true);
|
|
11722
11732
|
}
|
|
11723
11733
|
}, [chartOptions]);
|
|
11724
|
-
return /*#__PURE__*/
|
|
11734
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
11725
11735
|
highcharts: Highcharts,
|
|
11726
11736
|
ref: chartRef,
|
|
11727
11737
|
options: chartOptions
|
|
@@ -11743,7 +11753,7 @@ const StackedArea = props => {
|
|
|
11743
11753
|
chartRef.current.chart.update(chartOptions, true);
|
|
11744
11754
|
}
|
|
11745
11755
|
}, [chartOptions]);
|
|
11746
|
-
return /*#__PURE__*/
|
|
11756
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
11747
11757
|
highcharts: Highcharts,
|
|
11748
11758
|
ref: chartRef,
|
|
11749
11759
|
options: chartOptions
|
|
@@ -11872,20 +11882,27 @@ const initMultiAxisSeries = props => {
|
|
|
11872
11882
|
const yAxesCount = props.series.length;
|
|
11873
11883
|
const yAxes = [];
|
|
11874
11884
|
const showYAxisArray = Array.isArray(props.showYAxis) ? props.showYAxis : props.showYAxis === false ? new Array(yAxesCount).fill(false) : new Array(yAxesCount).fill(true);
|
|
11885
|
+
|
|
11886
|
+
// Handle showYAxisTitle - default to true if not specified
|
|
11887
|
+
const showYAxisTitleArray = Array.isArray(props.showYAxisTitle) ? props.showYAxisTitle : props.showYAxisTitle === false ? new Array(yAxesCount).fill(false) : new Array(yAxesCount).fill(true);
|
|
11875
11888
|
for (let i = 0; i < yAxesCount; i++) {
|
|
11876
11889
|
const config = props.yAxisConfig?.[i] || {};
|
|
11877
11890
|
// showYAxisArray[i] will be true or false (never undefined due to fill logic above)
|
|
11878
11891
|
// We want to show the axis unless it's explicitly false
|
|
11879
11892
|
const shouldShowYAxis = showYAxisArray[i] !== false;
|
|
11893
|
+
const shouldShowTitle = showYAxisTitleArray[i] !== false;
|
|
11894
|
+
|
|
11895
|
+
// Determine title text - hide if showYAxisTitle is false, otherwise use config.title or null
|
|
11896
|
+
const titleText = shouldShowTitle && config.title !== undefined ? config.title : null;
|
|
11880
11897
|
|
|
11881
11898
|
// Hide yAxis labels and grid if showYAxis is explicitly false for this axis
|
|
11882
11899
|
if (!shouldShowYAxis) {
|
|
11883
11900
|
yAxes.push({
|
|
11884
11901
|
...defaultYAxis,
|
|
11885
11902
|
...config,
|
|
11886
|
-
title:
|
|
11887
|
-
text:
|
|
11888
|
-
}
|
|
11903
|
+
title: {
|
|
11904
|
+
text: titleText
|
|
11905
|
+
},
|
|
11889
11906
|
labels: {
|
|
11890
11907
|
enabled: false
|
|
11891
11908
|
},
|
|
@@ -11898,9 +11915,9 @@ const initMultiAxisSeries = props => {
|
|
|
11898
11915
|
yAxes.push({
|
|
11899
11916
|
...defaultYAxis,
|
|
11900
11917
|
...config,
|
|
11901
|
-
title:
|
|
11902
|
-
text:
|
|
11903
|
-
}
|
|
11918
|
+
title: {
|
|
11919
|
+
text: titleText
|
|
11920
|
+
},
|
|
11904
11921
|
labels: {
|
|
11905
11922
|
enabled: true,
|
|
11906
11923
|
color: "#575E77",
|
|
@@ -12132,7 +12149,7 @@ const initChart$1 = props => {
|
|
|
12132
12149
|
}
|
|
12133
12150
|
|
|
12134
12151
|
// Fallback: use dynamic import (async, but will work in Vite/Storybook)
|
|
12135
|
-
import('./heatmap-
|
|
12152
|
+
import('./heatmap-Dfb5-pNh.js').then(function (n) { return n.h; }).then(heatmapModule => {
|
|
12136
12153
|
const moduleFn = typeof heatmapModule === "function" ? heatmapModule : heatmapModule?.default || heatmapModule;
|
|
12137
12154
|
if (typeof moduleFn === "function") {
|
|
12138
12155
|
moduleFn(Highcharts);
|
|
@@ -12157,7 +12174,7 @@ const Heatmap = props => {
|
|
|
12157
12174
|
chartRef.current.chart.update(chartOptions, true);
|
|
12158
12175
|
}
|
|
12159
12176
|
}, [chartOptions]);
|
|
12160
|
-
return /*#__PURE__*/
|
|
12177
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
12161
12178
|
highcharts: Highcharts,
|
|
12162
12179
|
ref: chartRef,
|
|
12163
12180
|
options: chartOptions
|
|
@@ -12373,17 +12390,17 @@ const initCalendarSeries = props => {
|
|
|
12373
12390
|
};
|
|
12374
12391
|
};
|
|
12375
12392
|
const BasicHeatmap = props => {
|
|
12376
|
-
return /*#__PURE__*/
|
|
12393
|
+
return /*#__PURE__*/React__default.createElement(Heatmap, _extends({}, props, {
|
|
12377
12394
|
type: "basic"
|
|
12378
12395
|
}));
|
|
12379
12396
|
};
|
|
12380
12397
|
const InterpolatedHeatmap = props => {
|
|
12381
|
-
return /*#__PURE__*/
|
|
12398
|
+
return /*#__PURE__*/React__default.createElement(Heatmap, _extends({}, props, {
|
|
12382
12399
|
type: "interpolated"
|
|
12383
12400
|
}));
|
|
12384
12401
|
};
|
|
12385
12402
|
const CalendarHeatmap = props => {
|
|
12386
|
-
return /*#__PURE__*/
|
|
12403
|
+
return /*#__PURE__*/React__default.createElement(Heatmap, _extends({}, props, {
|
|
12387
12404
|
type: "calendar"
|
|
12388
12405
|
}));
|
|
12389
12406
|
};
|
|
@@ -12489,7 +12506,7 @@ const DonutChart = props => {
|
|
|
12489
12506
|
chartRef.current.chart.update(chartOptions, true);
|
|
12490
12507
|
}
|
|
12491
12508
|
}, [chartOptions]);
|
|
12492
|
-
return /*#__PURE__*/
|
|
12509
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
12493
12510
|
highcharts: Highcharts$1,
|
|
12494
12511
|
ref: chartRef,
|
|
12495
12512
|
options: chartOptions
|
|
@@ -12526,7 +12543,7 @@ const Icons = _ref => {
|
|
|
12526
12543
|
color
|
|
12527
12544
|
} = _ref;
|
|
12528
12545
|
const Element = IconSax[name];
|
|
12529
|
-
return /*#__PURE__*/
|
|
12546
|
+
return /*#__PURE__*/React__default.createElement(Element, {
|
|
12530
12547
|
size,
|
|
12531
12548
|
color,
|
|
12532
12549
|
variant,
|
|
@@ -12548,15 +12565,15 @@ const Logo = _ref => {
|
|
|
12548
12565
|
fit,
|
|
12549
12566
|
...rest
|
|
12550
12567
|
} = _ref;
|
|
12551
|
-
return /*#__PURE__*/
|
|
12568
|
+
return /*#__PURE__*/React__default.createElement(Center, _extends({}, rest, {
|
|
12552
12569
|
component: Link,
|
|
12553
12570
|
display: "flex",
|
|
12554
12571
|
to: href
|
|
12555
|
-
}), /*#__PURE__*/
|
|
12572
|
+
}), /*#__PURE__*/React__default.createElement(Image, {
|
|
12556
12573
|
fallbackSrc: fallbackSrc,
|
|
12557
12574
|
src: src,
|
|
12558
12575
|
fit: fit
|
|
12559
|
-
}), /*#__PURE__*/
|
|
12576
|
+
}), /*#__PURE__*/React__default.createElement(Space, {
|
|
12560
12577
|
flex: 1,
|
|
12561
12578
|
hidden: true
|
|
12562
12579
|
}));
|
|
@@ -12569,7 +12586,7 @@ const DynamicLogo = _ref2 => {
|
|
|
12569
12586
|
w = 180,
|
|
12570
12587
|
...rest
|
|
12571
12588
|
} = _ref2;
|
|
12572
|
-
return /*#__PURE__*/
|
|
12589
|
+
return /*#__PURE__*/React__default.createElement(Logo, _extends({}, rest, {
|
|
12573
12590
|
href,
|
|
12574
12591
|
src,
|
|
12575
12592
|
fit,
|
|
@@ -12583,7 +12600,7 @@ const DynamicShigaLogo = _ref3 => {
|
|
|
12583
12600
|
fit = "contain",
|
|
12584
12601
|
...rest
|
|
12585
12602
|
} = _ref3;
|
|
12586
|
-
return /*#__PURE__*/
|
|
12603
|
+
return /*#__PURE__*/React__default.createElement(Logo, _extends({}, rest, {
|
|
12587
12604
|
href,
|
|
12588
12605
|
src,
|
|
12589
12606
|
fit,
|
|
@@ -12597,13 +12614,13 @@ const ApplicationMenuTarget = _ref => {
|
|
|
12597
12614
|
toggle,
|
|
12598
12615
|
...rest
|
|
12599
12616
|
} = _ref;
|
|
12600
|
-
return /*#__PURE__*/
|
|
12617
|
+
return /*#__PURE__*/React__default.createElement(Popover.Target, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
12601
12618
|
variant: "transparent",
|
|
12602
12619
|
justify: "space-between",
|
|
12603
12620
|
h: 60,
|
|
12604
12621
|
fw: 300,
|
|
12605
12622
|
w: 200,
|
|
12606
|
-
rightSection: /*#__PURE__*/
|
|
12623
|
+
rightSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
12607
12624
|
name: "ArrowDown2",
|
|
12608
12625
|
size: 16
|
|
12609
12626
|
}),
|
|
@@ -12618,32 +12635,32 @@ const ApplicationMenuDropdown = _ref => {
|
|
|
12618
12635
|
moreLink,
|
|
12619
12636
|
toggle
|
|
12620
12637
|
} = _ref;
|
|
12621
|
-
return /*#__PURE__*/
|
|
12638
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Popover.Dropdown, {
|
|
12622
12639
|
ml: "md",
|
|
12623
12640
|
p: 5
|
|
12624
|
-
}, /*#__PURE__*/
|
|
12641
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
12625
12642
|
gap: 5,
|
|
12626
12643
|
p: 0
|
|
12627
|
-
}, /*#__PURE__*/
|
|
12644
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
12628
12645
|
gap: 5,
|
|
12629
12646
|
align: "flex-start"
|
|
12630
|
-
}, items.map((item, index) => /*#__PURE__*/
|
|
12647
|
+
}, items.map((item, index) => /*#__PURE__*/React__default.createElement(DropdownItem, _extends({
|
|
12631
12648
|
key: `item-${index}`
|
|
12632
12649
|
}, item, {
|
|
12633
12650
|
onClick: e => {
|
|
12634
12651
|
toggle();
|
|
12635
12652
|
item.onClick(e);
|
|
12636
12653
|
}
|
|
12637
|
-
})))), /*#__PURE__*/
|
|
12654
|
+
})))), /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(Group, {
|
|
12638
12655
|
grow: true,
|
|
12639
12656
|
justify: "center"
|
|
12640
|
-
}, /*#__PURE__*/
|
|
12657
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
12641
12658
|
variant: "subtle",
|
|
12642
12659
|
p: 0,
|
|
12643
12660
|
component: Link,
|
|
12644
12661
|
to: moreLink,
|
|
12645
12662
|
onClick: toggle
|
|
12646
|
-
}, /*#__PURE__*/
|
|
12663
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12647
12664
|
size: "xs",
|
|
12648
12665
|
fw: 300,
|
|
12649
12666
|
w: 320
|
|
@@ -12661,7 +12678,7 @@ const DropdownItem = _ref2 => {
|
|
|
12661
12678
|
id,
|
|
12662
12679
|
onClick
|
|
12663
12680
|
} = _ref2;
|
|
12664
|
-
return /*#__PURE__*/
|
|
12681
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
12665
12682
|
variant: "subtle",
|
|
12666
12683
|
fw: 300,
|
|
12667
12684
|
mih: 70,
|
|
@@ -12669,15 +12686,15 @@ const DropdownItem = _ref2 => {
|
|
|
12669
12686
|
c: active ? activeColor : inactiveColor,
|
|
12670
12687
|
onClick: onClick,
|
|
12671
12688
|
"data-index": id
|
|
12672
|
-
}, /*#__PURE__*/
|
|
12689
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
12673
12690
|
w: 320
|
|
12674
|
-
}, /*#__PURE__*/
|
|
12691
|
+
}, /*#__PURE__*/React__default.createElement(Icons, icon), /*#__PURE__*/React__default.createElement(Stack, {
|
|
12675
12692
|
align: "flex-start",
|
|
12676
12693
|
gap: 5
|
|
12677
|
-
}, /*#__PURE__*/
|
|
12694
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12678
12695
|
size: "sm",
|
|
12679
12696
|
fw: 300
|
|
12680
|
-
}, title), /*#__PURE__*/
|
|
12697
|
+
}, title), /*#__PURE__*/React__default.createElement(Text, {
|
|
12681
12698
|
size: "xs",
|
|
12682
12699
|
fz: 11,
|
|
12683
12700
|
fw: 300
|
|
@@ -12695,7 +12712,7 @@ const ApplicationMenu = _ref => {
|
|
|
12695
12712
|
const [opened, {
|
|
12696
12713
|
toggle
|
|
12697
12714
|
}] = useDisclosure(false);
|
|
12698
|
-
return /*#__PURE__*/
|
|
12715
|
+
return /*#__PURE__*/React__default.createElement(Popover, {
|
|
12699
12716
|
transitionProps: {
|
|
12700
12717
|
transition
|
|
12701
12718
|
},
|
|
@@ -12709,9 +12726,9 @@ const ApplicationMenu = _ref => {
|
|
|
12709
12726
|
radius: "sm",
|
|
12710
12727
|
opened: opened,
|
|
12711
12728
|
onChange: toggle
|
|
12712
|
-
}, /*#__PURE__*/
|
|
12729
|
+
}, /*#__PURE__*/React__default.createElement(ApplicationMenuTarget, {
|
|
12713
12730
|
toggle
|
|
12714
|
-
}, label), /*#__PURE__*/
|
|
12731
|
+
}, label), /*#__PURE__*/React__default.createElement(ApplicationMenuDropdown, {
|
|
12715
12732
|
items,
|
|
12716
12733
|
moreLink,
|
|
12717
12734
|
moreText,
|
|
@@ -12725,32 +12742,32 @@ const UserMenuTarget = _ref => {
|
|
|
12725
12742
|
username,
|
|
12726
12743
|
avatar
|
|
12727
12744
|
} = _ref;
|
|
12728
|
-
return /*#__PURE__*/
|
|
12745
|
+
return /*#__PURE__*/React__default.createElement(Menu.Target, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
12729
12746
|
variant: "subtle",
|
|
12730
12747
|
h: 50,
|
|
12731
12748
|
px: 10,
|
|
12732
12749
|
radius: "md"
|
|
12733
|
-
}, /*#__PURE__*/
|
|
12750
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
12734
12751
|
gap: "sm"
|
|
12735
|
-
}, /*#__PURE__*/
|
|
12752
|
+
}, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
12736
12753
|
src: avatar,
|
|
12737
12754
|
radius: "md",
|
|
12738
12755
|
key: name,
|
|
12739
12756
|
name: name,
|
|
12740
12757
|
color: "initials",
|
|
12741
12758
|
bd: "0.5px solid adiba.2"
|
|
12742
|
-
}), /*#__PURE__*/
|
|
12759
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
12743
12760
|
gap: 0,
|
|
12744
12761
|
align: "flex-start",
|
|
12745
12762
|
visibleFrom: "md",
|
|
12746
12763
|
fw: 300
|
|
12747
|
-
}, /*#__PURE__*/
|
|
12764
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12748
12765
|
fw: 300,
|
|
12749
12766
|
size: "sm"
|
|
12750
|
-
}, name), /*#__PURE__*/
|
|
12767
|
+
}, name), /*#__PURE__*/React__default.createElement(Text, {
|
|
12751
12768
|
c: "dimmed",
|
|
12752
12769
|
size: "xs"
|
|
12753
|
-
}, username)), /*#__PURE__*/
|
|
12770
|
+
}, username)), /*#__PURE__*/React__default.createElement(Icons, {
|
|
12754
12771
|
name: "ArrowDown2",
|
|
12755
12772
|
size: 12
|
|
12756
12773
|
}))));
|
|
@@ -12761,33 +12778,33 @@ const UserMenuDropdown = _ref => {
|
|
|
12761
12778
|
sections,
|
|
12762
12779
|
height = 40
|
|
12763
12780
|
} = _ref;
|
|
12764
|
-
return /*#__PURE__*/
|
|
12781
|
+
return /*#__PURE__*/React__default.createElement(Menu.Dropdown, null, sections.map((section, index) => {
|
|
12765
12782
|
const items = [];
|
|
12766
|
-
const sectionItems = section.items.map((item, key) => /*#__PURE__*/
|
|
12783
|
+
const sectionItems = section.items.map((item, key) => /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
12767
12784
|
c: section?.color,
|
|
12768
12785
|
key: `menu-item-${key}`,
|
|
12769
12786
|
h: height,
|
|
12770
|
-
leftSection: /*#__PURE__*/
|
|
12787
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, _extends({}, item.icon, {
|
|
12771
12788
|
stroke: 0.5
|
|
12772
12789
|
})),
|
|
12773
|
-
rightSection: item?.disclosure ? /*#__PURE__*/
|
|
12790
|
+
rightSection: item?.disclosure ? /*#__PURE__*/React__default.createElement(Icons, {
|
|
12774
12791
|
name: "ArrowRight2",
|
|
12775
12792
|
size: 12,
|
|
12776
12793
|
stroke: 0.5
|
|
12777
|
-
}) : item.badge ? /*#__PURE__*/
|
|
12794
|
+
}) : item.badge ? /*#__PURE__*/React__default.createElement(Badge, {
|
|
12778
12795
|
color: item?.badge?.color,
|
|
12779
12796
|
size: "sm"
|
|
12780
12797
|
}, item?.badge?.text) : undefined,
|
|
12781
12798
|
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
12782
|
-
}, /*#__PURE__*/
|
|
12799
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12783
12800
|
size: "xs",
|
|
12784
12801
|
fw: 300
|
|
12785
12802
|
}, item.label)));
|
|
12786
|
-
if (index) items.push(/*#__PURE__*/
|
|
12803
|
+
if (index) items.push(/*#__PURE__*/React__default.createElement(Divider, {
|
|
12787
12804
|
key: `divider-${index}`,
|
|
12788
12805
|
my: 2
|
|
12789
12806
|
}));
|
|
12790
|
-
if (section?.title) items.push(/*#__PURE__*/
|
|
12807
|
+
if (section?.title) items.push(/*#__PURE__*/React__default.createElement(Menu.Label, {
|
|
12791
12808
|
fz: 10,
|
|
12792
12809
|
fw: 500,
|
|
12793
12810
|
c: "dimmed",
|
|
@@ -12807,7 +12824,7 @@ const UserMenu = _ref => {
|
|
|
12807
12824
|
avatar,
|
|
12808
12825
|
sections
|
|
12809
12826
|
} = _ref;
|
|
12810
|
-
return /*#__PURE__*/
|
|
12827
|
+
return /*#__PURE__*/React__default.createElement(Menu, {
|
|
12811
12828
|
width: width || 250,
|
|
12812
12829
|
transitionProps: {
|
|
12813
12830
|
transition: "pop"
|
|
@@ -12818,11 +12835,11 @@ const UserMenu = _ref => {
|
|
|
12818
12835
|
offset: 5,
|
|
12819
12836
|
arrowOffset: 20,
|
|
12820
12837
|
arrowSize: 10
|
|
12821
|
-
}, /*#__PURE__*/
|
|
12838
|
+
}, /*#__PURE__*/React__default.createElement(UserMenuTarget, {
|
|
12822
12839
|
name,
|
|
12823
12840
|
username,
|
|
12824
12841
|
avatar
|
|
12825
|
-
}), /*#__PURE__*/
|
|
12842
|
+
}), /*#__PURE__*/React__default.createElement(UserMenuDropdown, {
|
|
12826
12843
|
sections,
|
|
12827
12844
|
height
|
|
12828
12845
|
}));
|
|
@@ -12836,7 +12853,7 @@ const SideMenu = _ref => {
|
|
|
12836
12853
|
sidemenu,
|
|
12837
12854
|
onClick
|
|
12838
12855
|
} = _ref;
|
|
12839
|
-
return /*#__PURE__*/
|
|
12856
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sidemenu.map(item => /*#__PURE__*/React__default.createElement(NavLink, {
|
|
12840
12857
|
className: "backoffice-sidemenu",
|
|
12841
12858
|
mt: "sm",
|
|
12842
12859
|
component: Link,
|
|
@@ -12848,10 +12865,10 @@ const SideMenu = _ref => {
|
|
|
12848
12865
|
active: item.active,
|
|
12849
12866
|
variant,
|
|
12850
12867
|
onClick,
|
|
12851
|
-
leftSection: item.icon ? /*#__PURE__*/
|
|
12868
|
+
leftSection: item.icon ? /*#__PURE__*/React__default.createElement(Icons, item.icon) : undefined,
|
|
12852
12869
|
label: item.label,
|
|
12853
12870
|
to: item.children?.length ? "#" : item?.href || "#"
|
|
12854
|
-
}, item.children?.length ? item.children.map(subitem => /*#__PURE__*/
|
|
12871
|
+
}, item.children?.length ? item.children.map(subitem => /*#__PURE__*/React__default.createElement(NavLink, {
|
|
12855
12872
|
mt: "xs",
|
|
12856
12873
|
component: Link,
|
|
12857
12874
|
to: subitem.href || "#",
|
|
@@ -12876,7 +12893,7 @@ const SimplePanel = _ref => {
|
|
|
12876
12893
|
children,
|
|
12877
12894
|
...rest
|
|
12878
12895
|
} = _ref;
|
|
12879
|
-
return /*#__PURE__*/
|
|
12896
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({
|
|
12880
12897
|
p: !withPadding ? 0 : "md",
|
|
12881
12898
|
radius: !withRadius ? 0 : "lg",
|
|
12882
12899
|
flex: autoHeight ? 1 : "none"
|
|
@@ -12889,34 +12906,34 @@ const TitledPanel = _ref2 => {
|
|
|
12889
12906
|
children,
|
|
12890
12907
|
...rest
|
|
12891
12908
|
} = _ref2;
|
|
12892
|
-
return /*#__PURE__*/
|
|
12909
|
+
return /*#__PURE__*/React__default.createElement(SimplePanel, _extends({}, rest, {
|
|
12893
12910
|
withPadding: withPadding
|
|
12894
|
-
}), /*#__PURE__*/
|
|
12911
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
12895
12912
|
h: 48,
|
|
12896
12913
|
px: withPadding ? 0 : "md",
|
|
12897
12914
|
mt: !withPadding ? "md" : 0,
|
|
12898
12915
|
justify: "space-between"
|
|
12899
|
-
}, /*#__PURE__*/
|
|
12916
|
+
}, /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Center, {
|
|
12900
12917
|
bg: "gray.1",
|
|
12901
12918
|
w: 32,
|
|
12902
12919
|
h: 32,
|
|
12903
12920
|
style: {
|
|
12904
12921
|
borderRadius: "50%"
|
|
12905
12922
|
}
|
|
12906
|
-
}, /*#__PURE__*/
|
|
12923
|
+
}, /*#__PURE__*/React__default.createElement(Icons, _extends({}, title.icon, {
|
|
12907
12924
|
size: 20,
|
|
12908
12925
|
variant: "Bulk"
|
|
12909
|
-
}))), /*#__PURE__*/
|
|
12926
|
+
}))), /*#__PURE__*/React__default.createElement(Text, {
|
|
12910
12927
|
fw: 300
|
|
12911
|
-
}, title.label)), /*#__PURE__*/
|
|
12928
|
+
}, title.label)), /*#__PURE__*/React__default.createElement(Space, {
|
|
12912
12929
|
flex: 1
|
|
12913
|
-
}), /*#__PURE__*/
|
|
12930
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
12914
12931
|
hidden: !rest.middlesection
|
|
12915
|
-
}, rest.middlesection), /*#__PURE__*/
|
|
12932
|
+
}, rest.middlesection), /*#__PURE__*/React__default.createElement(Space, {
|
|
12916
12933
|
flex: 1
|
|
12917
|
-
}), /*#__PURE__*/
|
|
12934
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
12918
12935
|
hidden: !rest.rightsection
|
|
12919
|
-
}, rest.rightsection)), /*#__PURE__*/
|
|
12936
|
+
}, rest.rightsection)), /*#__PURE__*/React__default.createElement(Box, {
|
|
12920
12937
|
pt: !withPadding ? 0 : "md"
|
|
12921
12938
|
}, children));
|
|
12922
12939
|
};
|
|
@@ -12942,13 +12959,13 @@ const SearchPanel = _ref3 => {
|
|
|
12942
12959
|
search: search
|
|
12943
12960
|
}
|
|
12944
12961
|
});
|
|
12945
|
-
return /*#__PURE__*/
|
|
12962
|
+
return /*#__PURE__*/React__default.createElement(SimplePanel, rest, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement("form", {
|
|
12946
12963
|
onSubmit: form.onSubmit(values => {
|
|
12947
12964
|
searchFn ? searchFn(values) : void 0;
|
|
12948
12965
|
})
|
|
12949
|
-
}, /*#__PURE__*/
|
|
12966
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
12950
12967
|
gap: "xs"
|
|
12951
|
-
}, /*#__PURE__*/
|
|
12968
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
12952
12969
|
fw: 300,
|
|
12953
12970
|
name: "search",
|
|
12954
12971
|
size: "md",
|
|
@@ -12956,16 +12973,16 @@ const SearchPanel = _ref3 => {
|
|
|
12956
12973
|
flex: 1,
|
|
12957
12974
|
value: search,
|
|
12958
12975
|
placeholder: placeholder,
|
|
12959
|
-
leftSection: /*#__PURE__*/
|
|
12960
|
-
rightSection: typeof filterFn == "function" ? /*#__PURE__*/
|
|
12976
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, searchIcon),
|
|
12977
|
+
rightSection: typeof filterFn == "function" ? /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
12961
12978
|
variant: "transparent",
|
|
12962
12979
|
onClick: filterFn
|
|
12963
|
-
}, /*#__PURE__*/
|
|
12980
|
+
}, /*#__PURE__*/React__default.createElement(Icons, filterIcon)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null),
|
|
12964
12981
|
onChange: e => {
|
|
12965
12982
|
setSearch(e.currentTarget.value);
|
|
12966
12983
|
form.setFieldValue("search", e.currentTarget.value);
|
|
12967
12984
|
}
|
|
12968
|
-
}), /*#__PURE__*/
|
|
12985
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
12969
12986
|
variant: "light",
|
|
12970
12987
|
size: "md",
|
|
12971
12988
|
fw: 300,
|
|
@@ -12973,7 +12990,7 @@ const SearchPanel = _ref3 => {
|
|
|
12973
12990
|
miw: 100,
|
|
12974
12991
|
maw: 150,
|
|
12975
12992
|
type: "submit",
|
|
12976
|
-
leftSection: /*#__PURE__*/
|
|
12993
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, searchIcon)
|
|
12977
12994
|
}, searchText))), children));
|
|
12978
12995
|
};
|
|
12979
12996
|
|
|
@@ -12983,13 +13000,13 @@ const LabelPanelItem = _ref => {
|
|
|
12983
13000
|
value,
|
|
12984
13001
|
labelWidth
|
|
12985
13002
|
} = _ref;
|
|
12986
|
-
return /*#__PURE__*/
|
|
13003
|
+
return /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
12987
13004
|
fw: 300,
|
|
12988
13005
|
fz: "sm",
|
|
12989
13006
|
c: "dimmed",
|
|
12990
13007
|
w: labelWidth,
|
|
12991
13008
|
truncate: true
|
|
12992
|
-
}, label), /*#__PURE__*/
|
|
13009
|
+
}, label), /*#__PURE__*/React__default.createElement(Text, {
|
|
12993
13010
|
fw: 300,
|
|
12994
13011
|
fz: "sm",
|
|
12995
13012
|
truncate: true
|
|
@@ -13009,19 +13026,19 @@ const LabelPanel = _ref => {
|
|
|
13009
13026
|
p = "md",
|
|
13010
13027
|
...rest
|
|
13011
13028
|
} = _ref;
|
|
13012
|
-
return /*#__PURE__*/
|
|
13029
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({}, rest, {
|
|
13013
13030
|
withBorder,
|
|
13014
13031
|
radius,
|
|
13015
13032
|
p
|
|
13016
|
-
}), /*#__PURE__*/
|
|
13033
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13017
13034
|
pb: "md"
|
|
13018
|
-
}, /*#__PURE__*/
|
|
13035
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13019
13036
|
justify: "space-between",
|
|
13020
13037
|
p: 0
|
|
13021
|
-
}, /*#__PURE__*/
|
|
13038
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13022
13039
|
order: 6,
|
|
13023
13040
|
py: "xs"
|
|
13024
|
-
}, title), /*#__PURE__*/
|
|
13041
|
+
}, title), /*#__PURE__*/React__default.createElement(Button, {
|
|
13025
13042
|
style: {
|
|
13026
13043
|
display: hasEdit ? "block" : "none"
|
|
13027
13044
|
},
|
|
@@ -13029,11 +13046,11 @@ const LabelPanel = _ref => {
|
|
|
13029
13046
|
variant: "outline",
|
|
13030
13047
|
onClick: editFn,
|
|
13031
13048
|
size: "xs",
|
|
13032
|
-
leftSection: /*#__PURE__*/
|
|
13049
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13033
13050
|
name: "Edit2"
|
|
13034
13051
|
})
|
|
13035
13052
|
}, editLabel)), items.map((item, index) => {
|
|
13036
|
-
return /*#__PURE__*/
|
|
13053
|
+
return /*#__PURE__*/React__default.createElement(LabelPanelItem, _extends({
|
|
13037
13054
|
key: `label-item-${index}`
|
|
13038
13055
|
}, item, {
|
|
13039
13056
|
labelWidth: labelWidth
|
|
@@ -13056,17 +13073,17 @@ const AvatarLabelPanel = _ref2 => {
|
|
|
13056
13073
|
editFn = void 0,
|
|
13057
13074
|
...rest
|
|
13058
13075
|
} = _ref2;
|
|
13059
|
-
return /*#__PURE__*/
|
|
13076
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({}, rest, {
|
|
13060
13077
|
withBorder,
|
|
13061
13078
|
radius,
|
|
13062
13079
|
p
|
|
13063
|
-
}), /*#__PURE__*/
|
|
13080
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
13064
13081
|
align: "flex-start",
|
|
13065
13082
|
py: "sm"
|
|
13066
|
-
}, /*#__PURE__*/
|
|
13083
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
13067
13084
|
w: labelWidth,
|
|
13068
13085
|
pl: "md"
|
|
13069
|
-
}, /*#__PURE__*/
|
|
13086
|
+
}, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
13070
13087
|
size: avatarSize,
|
|
13071
13088
|
src: avatar,
|
|
13072
13089
|
radius: "md",
|
|
@@ -13074,29 +13091,29 @@ const AvatarLabelPanel = _ref2 => {
|
|
|
13074
13091
|
name: name,
|
|
13075
13092
|
color: "initials",
|
|
13076
13093
|
bd: "0.5px solid adiba.2"
|
|
13077
|
-
})), /*#__PURE__*/
|
|
13094
|
+
})), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13078
13095
|
py: 10,
|
|
13079
13096
|
gap: "md",
|
|
13080
13097
|
h: "100%"
|
|
13081
|
-
}, /*#__PURE__*/
|
|
13098
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13082
13099
|
fw: 500,
|
|
13083
13100
|
order: 4
|
|
13084
|
-
}, name), /*#__PURE__*/
|
|
13101
|
+
}, name), /*#__PURE__*/React__default.createElement(Text, {
|
|
13085
13102
|
fw: 300,
|
|
13086
13103
|
fz: 14
|
|
13087
|
-
}, username), /*#__PURE__*/
|
|
13104
|
+
}, username), /*#__PURE__*/React__default.createElement(Text, {
|
|
13088
13105
|
fw: 300,
|
|
13089
13106
|
fz: 14
|
|
13090
|
-
}, "Internal / ", role), /*#__PURE__*/
|
|
13107
|
+
}, "Internal / ", role), /*#__PURE__*/React__default.createElement(Text, {
|
|
13091
13108
|
fw: 300,
|
|
13092
13109
|
fz: 14
|
|
13093
|
-
}, "Last login: ", lastActive)), /*#__PURE__*/
|
|
13110
|
+
}, "Last login: ", lastActive)), /*#__PURE__*/React__default.createElement(Space, {
|
|
13094
13111
|
flex: 1
|
|
13095
|
-
}), /*#__PURE__*/
|
|
13112
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
13096
13113
|
fw: 300,
|
|
13097
13114
|
variant: "outline",
|
|
13098
13115
|
size: "xs",
|
|
13099
|
-
leftSection: /*#__PURE__*/
|
|
13116
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13100
13117
|
name: "Edit2"
|
|
13101
13118
|
}),
|
|
13102
13119
|
onClick: editFn
|
|
@@ -13109,7 +13126,7 @@ const SimpleText = _ref => {
|
|
|
13109
13126
|
smaller,
|
|
13110
13127
|
...rest
|
|
13111
13128
|
} = _ref;
|
|
13112
|
-
return /*#__PURE__*/
|
|
13129
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
13113
13130
|
fw: 300,
|
|
13114
13131
|
fz: smaller ? "90%" : undefined
|
|
13115
13132
|
}, rest), label);
|
|
@@ -13132,18 +13149,18 @@ const PageTitle = _ref => {
|
|
|
13132
13149
|
label,
|
|
13133
13150
|
...rest
|
|
13134
13151
|
} = create;
|
|
13135
|
-
rightsection = /*#__PURE__*/
|
|
13152
|
+
rightsection = /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
13136
13153
|
radius: "md",
|
|
13137
13154
|
size: "sm",
|
|
13138
|
-
leftSection: /*#__PURE__*/
|
|
13155
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, icon),
|
|
13139
13156
|
onClick: createFn
|
|
13140
|
-
}, rest), /*#__PURE__*/
|
|
13157
|
+
}, rest), /*#__PURE__*/React__default.createElement(Text, {
|
|
13141
13158
|
fw: 300,
|
|
13142
13159
|
fz: 14
|
|
13143
13160
|
}, label));
|
|
13144
13161
|
}
|
|
13145
13162
|
if (withSwitcher && switcher?.items?.length) {
|
|
13146
|
-
rightsection = /*#__PURE__*/
|
|
13163
|
+
rightsection = /*#__PURE__*/React__default.createElement(SegmentedControl, {
|
|
13147
13164
|
size: "sm",
|
|
13148
13165
|
bg: "white",
|
|
13149
13166
|
color: "adiba",
|
|
@@ -13152,34 +13169,34 @@ const PageTitle = _ref => {
|
|
|
13152
13169
|
onChange: switcher.onChange
|
|
13153
13170
|
});
|
|
13154
13171
|
}
|
|
13155
|
-
return /*#__PURE__*/
|
|
13172
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Group, {
|
|
13156
13173
|
justify: "space-between",
|
|
13157
13174
|
py: "lg"
|
|
13158
|
-
}, /*#__PURE__*/
|
|
13175
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13159
13176
|
gap: 4
|
|
13160
|
-
}, /*#__PURE__*/
|
|
13177
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13161
13178
|
order: 2,
|
|
13162
13179
|
fw: 500
|
|
13163
|
-
}, title), typeof subtitle == "string" ? /*#__PURE__*/
|
|
13180
|
+
}, title), typeof subtitle == "string" ? /*#__PURE__*/React__default.createElement(Text, {
|
|
13164
13181
|
fz: 14,
|
|
13165
13182
|
fw: 300
|
|
13166
|
-
}, subtitle) : /*#__PURE__*/
|
|
13183
|
+
}, subtitle) : /*#__PURE__*/React__default.createElement(Breadcrumbs, {
|
|
13167
13184
|
separatorMargin: "xs",
|
|
13168
13185
|
separator: "\xB7"
|
|
13169
13186
|
}, subtitle?.map((item, index) => {
|
|
13170
|
-
return index < subtitle.length - 1 ? /*#__PURE__*/
|
|
13187
|
+
return index < subtitle.length - 1 ? /*#__PURE__*/React__default.createElement(Anchor, {
|
|
13171
13188
|
key: index,
|
|
13172
13189
|
fz: 14,
|
|
13173
13190
|
fw: 400,
|
|
13174
13191
|
component: Link,
|
|
13175
13192
|
to: item.link
|
|
13176
|
-
}, item.name) : /*#__PURE__*/
|
|
13193
|
+
}, item.name) : /*#__PURE__*/React__default.createElement(Text, {
|
|
13177
13194
|
fz: 14,
|
|
13178
13195
|
key: index,
|
|
13179
13196
|
fw: 300,
|
|
13180
13197
|
c: "dimmed"
|
|
13181
13198
|
}, item.name);
|
|
13182
|
-
}))), /*#__PURE__*/
|
|
13199
|
+
}))), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, rightsection)));
|
|
13183
13200
|
};
|
|
13184
13201
|
|
|
13185
13202
|
const TitleWithIndex = _ref => {
|
|
@@ -13191,20 +13208,20 @@ const TitleWithIndex = _ref => {
|
|
|
13191
13208
|
errorLabel,
|
|
13192
13209
|
errorFn = () => void 0
|
|
13193
13210
|
} = _ref;
|
|
13194
|
-
return /*#__PURE__*/
|
|
13211
|
+
return /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Group, {
|
|
13195
13212
|
gap: "xs"
|
|
13196
|
-
}, /*#__PURE__*/
|
|
13213
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13197
13214
|
order: 3,
|
|
13198
13215
|
fw: 500
|
|
13199
|
-
}, title), /*#__PURE__*/
|
|
13216
|
+
}, title), /*#__PURE__*/React__default.createElement(Growth, growth), /*#__PURE__*/React__default.createElement(Text, {
|
|
13200
13217
|
c: "dimmed",
|
|
13201
13218
|
size: "xs",
|
|
13202
13219
|
fw: 300
|
|
13203
|
-
}, subtitle)), /*#__PURE__*/
|
|
13220
|
+
}, subtitle)), /*#__PURE__*/React__default.createElement(Space, {
|
|
13204
13221
|
flex: 1
|
|
13205
|
-
}), /*#__PURE__*/
|
|
13222
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
13206
13223
|
hidden: !hasError
|
|
13207
|
-
}, /*#__PURE__*/
|
|
13224
|
+
}, /*#__PURE__*/React__default.createElement(WidgetError, {
|
|
13208
13225
|
errorLabel: errorLabel,
|
|
13209
13226
|
errorFn: errorFn
|
|
13210
13227
|
})));
|
|
@@ -13216,16 +13233,16 @@ const Growth = _ref2 => {
|
|
|
13216
13233
|
} = _ref2;
|
|
13217
13234
|
const color = direction === "up" ? "rgb(64, 192, 87)" : "rgb(250,82,82)";
|
|
13218
13235
|
const name = direction === "up" ? "TrendUp" : "TrendDown";
|
|
13219
|
-
return /*#__PURE__*/
|
|
13236
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
13220
13237
|
c: color,
|
|
13221
13238
|
gap: 2
|
|
13222
|
-
}, /*#__PURE__*/
|
|
13239
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13223
13240
|
name: name,
|
|
13224
13241
|
color: color,
|
|
13225
13242
|
size: 12,
|
|
13226
13243
|
stroke: 2.5,
|
|
13227
13244
|
variant: "Bold"
|
|
13228
|
-
}), /*#__PURE__*/
|
|
13245
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
13229
13246
|
size: "xs",
|
|
13230
13247
|
fw: 500
|
|
13231
13248
|
}, text));
|
|
@@ -13235,10 +13252,10 @@ const WidgetError = _ref3 => {
|
|
|
13235
13252
|
errorLabel,
|
|
13236
13253
|
errorFn
|
|
13237
13254
|
} = _ref3;
|
|
13238
|
-
return /*#__PURE__*/
|
|
13255
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
13239
13256
|
size: "sm",
|
|
13240
13257
|
variant: "transparent",
|
|
13241
|
-
leftSection: /*#__PURE__*/
|
|
13258
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13242
13259
|
name: "Danger",
|
|
13243
13260
|
color: "rgb(250,82,82",
|
|
13244
13261
|
stroke: 1.5
|
|
@@ -13255,11 +13272,11 @@ const ConnectionPanelDetail = _ref => {
|
|
|
13255
13272
|
value,
|
|
13256
13273
|
altColor
|
|
13257
13274
|
} = _ref;
|
|
13258
|
-
return /*#__PURE__*/
|
|
13275
|
+
return /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
13259
13276
|
w: 100,
|
|
13260
13277
|
fw: 300,
|
|
13261
13278
|
fz: "xs"
|
|
13262
|
-
}, label), /*#__PURE__*/
|
|
13279
|
+
}, label), /*#__PURE__*/React__default.createElement(Text, {
|
|
13263
13280
|
fw: 300,
|
|
13264
13281
|
fz: "sm",
|
|
13265
13282
|
c: altColor
|
|
@@ -13279,35 +13296,35 @@ const ConnectionPanel = _ref => {
|
|
|
13279
13296
|
altColor,
|
|
13280
13297
|
...rest
|
|
13281
13298
|
} = _ref;
|
|
13282
|
-
return /*#__PURE__*/
|
|
13299
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
13283
13300
|
withBorder: true,
|
|
13284
13301
|
bg: "gray.0",
|
|
13285
13302
|
p: "lg",
|
|
13286
13303
|
radius: "md",
|
|
13287
13304
|
color: "red"
|
|
13288
|
-
}, /*#__PURE__*/
|
|
13305
|
+
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Group, {
|
|
13289
13306
|
align: "flex-start"
|
|
13290
|
-
}, /*#__PURE__*/
|
|
13307
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13291
13308
|
size: 48,
|
|
13292
13309
|
name: "Driver",
|
|
13293
13310
|
stroke: "0.5"
|
|
13294
|
-
}), /*#__PURE__*/
|
|
13311
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13295
13312
|
gap: 5
|
|
13296
|
-
}, /*#__PURE__*/
|
|
13313
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13297
13314
|
fw: 400,
|
|
13298
13315
|
order: 6
|
|
13299
|
-
}, name), /*#__PURE__*/
|
|
13316
|
+
}, name), /*#__PURE__*/React__default.createElement(Group, {
|
|
13300
13317
|
justify: "flex-start",
|
|
13301
13318
|
gap: 5
|
|
13302
|
-
}, /*#__PURE__*/
|
|
13319
|
+
}, /*#__PURE__*/React__default.createElement(ColorSwatch, {
|
|
13303
13320
|
size: 12,
|
|
13304
13321
|
color: statusColor
|
|
13305
|
-
}), /*#__PURE__*/
|
|
13322
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
13306
13323
|
fw: 300,
|
|
13307
13324
|
fz: "xs"
|
|
13308
|
-
}, status))), /*#__PURE__*/
|
|
13325
|
+
}, status))), /*#__PURE__*/React__default.createElement(Space, {
|
|
13309
13326
|
flex: 1
|
|
13310
|
-
}), /*#__PURE__*/
|
|
13327
|
+
}), /*#__PURE__*/React__default.createElement(Menu, {
|
|
13311
13328
|
width: 190,
|
|
13312
13329
|
transitionProps: {
|
|
13313
13330
|
transition: "pop"
|
|
@@ -13316,55 +13333,55 @@ const ConnectionPanel = _ref => {
|
|
|
13316
13333
|
withArrow: true,
|
|
13317
13334
|
withinPortal: true,
|
|
13318
13335
|
arrowSize: 20
|
|
13319
|
-
}, /*#__PURE__*/
|
|
13336
|
+
}, /*#__PURE__*/React__default.createElement(Menu.Target, null, /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
13320
13337
|
variant: "subtle",
|
|
13321
13338
|
m: 0
|
|
13322
|
-
}, /*#__PURE__*/
|
|
13339
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13323
13340
|
name: "More"
|
|
13324
|
-
}))), /*#__PURE__*/
|
|
13341
|
+
}))), /*#__PURE__*/React__default.createElement(Menu.Dropdown, null, /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
13325
13342
|
h: 40,
|
|
13326
13343
|
onClick: edit.onClick,
|
|
13327
|
-
rightSection: /*#__PURE__*/
|
|
13344
|
+
rightSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13328
13345
|
name: "ArrowRight2"
|
|
13329
13346
|
}),
|
|
13330
13347
|
"data-index": id
|
|
13331
|
-
}, /*#__PURE__*/
|
|
13348
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13332
13349
|
size: "xs",
|
|
13333
13350
|
fw: 300
|
|
13334
|
-
}, edit.label)), /*#__PURE__*/
|
|
13351
|
+
}, edit.label)), /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
13335
13352
|
h: 40,
|
|
13336
13353
|
onClick: test.onClick,
|
|
13337
|
-
rightSection: /*#__PURE__*/
|
|
13354
|
+
rightSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13338
13355
|
name: "ArrowRight2"
|
|
13339
13356
|
}),
|
|
13340
13357
|
"data-index": id
|
|
13341
|
-
}, /*#__PURE__*/
|
|
13358
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13342
13359
|
size: "xs",
|
|
13343
13360
|
fw: 300
|
|
13344
|
-
}, test.label)), /*#__PURE__*/
|
|
13361
|
+
}, test.label)), /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
13345
13362
|
h: 40,
|
|
13346
13363
|
onClick: pause.onClick,
|
|
13347
13364
|
c: "red",
|
|
13348
|
-
leftSection: /*#__PURE__*/
|
|
13365
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13349
13366
|
name: "PauseCircle",
|
|
13350
13367
|
color: "red"
|
|
13351
13368
|
}),
|
|
13352
13369
|
"data-index": id
|
|
13353
|
-
}, /*#__PURE__*/
|
|
13370
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13354
13371
|
size: "xs",
|
|
13355
13372
|
fw: 300
|
|
13356
|
-
}, pause.label))))), /*#__PURE__*/
|
|
13373
|
+
}, pause.label))))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13357
13374
|
style: {
|
|
13358
13375
|
borderTop: "1px solid #ddd"
|
|
13359
13376
|
}
|
|
13360
|
-
}, /*#__PURE__*/
|
|
13377
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13361
13378
|
mt: 0,
|
|
13362
13379
|
bg: "white",
|
|
13363
13380
|
p: "md",
|
|
13364
13381
|
gap: "lg",
|
|
13365
13382
|
py: "lg"
|
|
13366
13383
|
}, details.map((item, index) => {
|
|
13367
|
-
return /*#__PURE__*/
|
|
13384
|
+
return /*#__PURE__*/React__default.createElement(ConnectionPanelDetail, _extends({
|
|
13368
13385
|
key: `detail-${index}`
|
|
13369
13386
|
}, item, {
|
|
13370
13387
|
altColor: altColor
|
|
@@ -13379,13 +13396,13 @@ const ApplicationPanelFeatures = _ref => {
|
|
|
13379
13396
|
label,
|
|
13380
13397
|
icon
|
|
13381
13398
|
} = _ref;
|
|
13382
|
-
return /*#__PURE__*/
|
|
13399
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
13383
13400
|
gap: "xs"
|
|
13384
|
-
}, /*#__PURE__*/
|
|
13401
|
+
}, /*#__PURE__*/React__default.createElement(Icons, _extends({}, icon, {
|
|
13385
13402
|
color: "#aaa",
|
|
13386
13403
|
variant: "Bulk",
|
|
13387
13404
|
stroke: 1.5
|
|
13388
|
-
})), /*#__PURE__*/
|
|
13405
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
13389
13406
|
fw: 300,
|
|
13390
13407
|
c: "altiba",
|
|
13391
13408
|
size: "12px",
|
|
@@ -13410,39 +13427,39 @@ const ApplicationPanel = _ref => {
|
|
|
13410
13427
|
onClick = () => void 0,
|
|
13411
13428
|
...rest
|
|
13412
13429
|
} = _ref;
|
|
13413
|
-
return /*#__PURE__*/
|
|
13430
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({
|
|
13414
13431
|
withBorder: true,
|
|
13415
13432
|
radius: "md"
|
|
13416
|
-
}, rest), /*#__PURE__*/
|
|
13433
|
+
}, rest), /*#__PURE__*/React__default.createElement(Card.Section, null, /*#__PURE__*/React__default.createElement(AspectRatio, {
|
|
13417
13434
|
ratio: 3 / 2
|
|
13418
|
-
}, /*#__PURE__*/
|
|
13435
|
+
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
13419
13436
|
alt: name,
|
|
13420
13437
|
src: coverImage,
|
|
13421
13438
|
fallbackSrc: img$a
|
|
13422
|
-
}), /*#__PURE__*/
|
|
13439
|
+
}), /*#__PURE__*/React__default.createElement(Overlay, {
|
|
13423
13440
|
gradient: "linear-gradient(45deg, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.05) 100%)"
|
|
13424
|
-
}))), /*#__PURE__*/
|
|
13441
|
+
}))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13425
13442
|
p: "md"
|
|
13426
|
-
}, /*#__PURE__*/
|
|
13443
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13427
13444
|
gap: "sm"
|
|
13428
|
-
}, /*#__PURE__*/
|
|
13445
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13429
13446
|
justify: "space-between"
|
|
13430
|
-
}, /*#__PURE__*/
|
|
13447
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13431
13448
|
fw: 400
|
|
13432
|
-
}, name), /*#__PURE__*/
|
|
13449
|
+
}, name), /*#__PURE__*/React__default.createElement(Badge, {
|
|
13433
13450
|
style: {
|
|
13434
13451
|
display: String(discount).length > 1 ? "block" : "none"
|
|
13435
13452
|
},
|
|
13436
13453
|
fw: 300,
|
|
13437
13454
|
variant: "outline"
|
|
13438
|
-
}, discount)), /*#__PURE__*/
|
|
13455
|
+
}, discount)), /*#__PURE__*/React__default.createElement(Text, {
|
|
13439
13456
|
fw: 300,
|
|
13440
13457
|
fz: "sm",
|
|
13441
13458
|
lineClamp: 3
|
|
13442
|
-
}, summary))), /*#__PURE__*/
|
|
13459
|
+
}, summary))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13443
13460
|
p: "md",
|
|
13444
13461
|
pt: 0
|
|
13445
|
-
}, /*#__PURE__*/
|
|
13462
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13446
13463
|
fz: "xs",
|
|
13447
13464
|
c: "gray.5",
|
|
13448
13465
|
mb: "xs",
|
|
@@ -13450,26 +13467,26 @@ const ApplicationPanel = _ref => {
|
|
|
13450
13467
|
fw: 500,
|
|
13451
13468
|
lts: rem("-0.25px"),
|
|
13452
13469
|
tt: "uppercase"
|
|
13453
|
-
}, featureLabel), /*#__PURE__*/
|
|
13470
|
+
}, featureLabel), /*#__PURE__*/React__default.createElement(SimpleGrid, {
|
|
13454
13471
|
cols: 1,
|
|
13455
13472
|
spacing: "xs",
|
|
13456
13473
|
verticalSpacing: "xs"
|
|
13457
13474
|
}, features.map((feature, index) => {
|
|
13458
|
-
return /*#__PURE__*/
|
|
13475
|
+
return /*#__PURE__*/React__default.createElement(ApplicationPanelFeatures, _extends({
|
|
13459
13476
|
key: index
|
|
13460
13477
|
}, feature));
|
|
13461
|
-
}))), /*#__PURE__*/
|
|
13478
|
+
}))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13462
13479
|
p: "md"
|
|
13463
|
-
}, /*#__PURE__*/
|
|
13480
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13464
13481
|
gap: 30,
|
|
13465
13482
|
justify: "space-between"
|
|
13466
|
-
}, /*#__PURE__*/
|
|
13483
|
+
}, /*#__PURE__*/React__default.createElement(Box, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
13467
13484
|
fz: "lg",
|
|
13468
13485
|
fw: 500,
|
|
13469
13486
|
style: {
|
|
13470
13487
|
lineHeight: 1
|
|
13471
13488
|
}
|
|
13472
|
-
}, amount), /*#__PURE__*/
|
|
13489
|
+
}, amount), /*#__PURE__*/React__default.createElement(Text, {
|
|
13473
13490
|
fz: "xs",
|
|
13474
13491
|
c: "dimmed",
|
|
13475
13492
|
fw: 300,
|
|
@@ -13477,19 +13494,19 @@ const ApplicationPanel = _ref => {
|
|
|
13477
13494
|
lineHeight: 1
|
|
13478
13495
|
},
|
|
13479
13496
|
mt: 3
|
|
13480
|
-
}, `per ${frequency}`)), /*#__PURE__*/
|
|
13497
|
+
}, `per ${frequency}`)), /*#__PURE__*/React__default.createElement(Box, {
|
|
13481
13498
|
hidden: subscribed
|
|
13482
|
-
}, /*#__PURE__*/
|
|
13499
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
13483
13500
|
fw: 300,
|
|
13484
|
-
leftSection: /*#__PURE__*/
|
|
13501
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13485
13502
|
name: "AddCircle"
|
|
13486
13503
|
}),
|
|
13487
13504
|
radius: "md",
|
|
13488
13505
|
onClick: onClick
|
|
13489
|
-
}, actionLabel)), /*#__PURE__*/
|
|
13506
|
+
}, actionLabel)), /*#__PURE__*/React__default.createElement(Box, {
|
|
13490
13507
|
hidden: !subscribed
|
|
13491
|
-
}, /*#__PURE__*/
|
|
13492
|
-
leftSection: /*#__PURE__*/
|
|
13508
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
13509
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13493
13510
|
name: "TickCircle"
|
|
13494
13511
|
}),
|
|
13495
13512
|
fw: 300,
|
|
@@ -13511,40 +13528,40 @@ const SubscriptionPlans = _ref => {
|
|
|
13511
13528
|
onClick
|
|
13512
13529
|
} = _ref;
|
|
13513
13530
|
const price = planPrice.split("/");
|
|
13514
|
-
return /*#__PURE__*/
|
|
13531
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
13515
13532
|
size: 20,
|
|
13516
|
-
label: /*#__PURE__*/
|
|
13533
|
+
label: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13517
13534
|
name: "TickCircle",
|
|
13518
13535
|
size: 18,
|
|
13519
13536
|
stroke: 1
|
|
13520
13537
|
}),
|
|
13521
13538
|
disabled: !isActive,
|
|
13522
13539
|
className: "payment-plan"
|
|
13523
|
-
}, /*#__PURE__*/
|
|
13540
|
+
}, /*#__PURE__*/React__default.createElement(Card, {
|
|
13524
13541
|
bg: isActive ? "gray.1" : "white",
|
|
13525
13542
|
p: "md",
|
|
13526
13543
|
radius: "sm",
|
|
13527
13544
|
withBorder: true
|
|
13528
|
-
}, /*#__PURE__*/
|
|
13545
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13529
13546
|
gap: "xl"
|
|
13530
|
-
}, /*#__PURE__*/
|
|
13547
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13531
13548
|
justify: "space-between",
|
|
13532
13549
|
align: "flex-start"
|
|
13533
|
-
}, /*#__PURE__*/
|
|
13550
|
+
}, /*#__PURE__*/React__default.createElement(Box, null, /*#__PURE__*/React__default.createElement(Title, {
|
|
13534
13551
|
order: 6,
|
|
13535
13552
|
fw: 500
|
|
13536
|
-
}, title), /*#__PURE__*/
|
|
13553
|
+
}, title), /*#__PURE__*/React__default.createElement(Text, {
|
|
13537
13554
|
fz: "xs",
|
|
13538
13555
|
c: altColor,
|
|
13539
13556
|
fw: 300
|
|
13540
|
-
}, durationDays, " ", isActive ? " days remaining" : " days")), /*#__PURE__*/
|
|
13557
|
+
}, durationDays, " ", isActive ? " days remaining" : " days")), /*#__PURE__*/React__default.createElement(Text, {
|
|
13541
13558
|
fz: "sm",
|
|
13542
13559
|
fw: 500
|
|
13543
|
-
}, price[0], /*#__PURE__*/
|
|
13560
|
+
}, price[0], /*#__PURE__*/React__default.createElement(Text, {
|
|
13544
13561
|
fz: "sm",
|
|
13545
13562
|
component: "span",
|
|
13546
13563
|
c: "dimmed"
|
|
13547
|
-
}, price[1] ? `/${price[1]}` : " /month"))), /*#__PURE__*/
|
|
13564
|
+
}, price[1] ? `/${price[1]}` : " /month"))), /*#__PURE__*/React__default.createElement(Button, {
|
|
13548
13565
|
w: 100,
|
|
13549
13566
|
size: "xs",
|
|
13550
13567
|
fw: 500,
|
|
@@ -13570,74 +13587,74 @@ const PaymentMethod = _ref => {
|
|
|
13570
13587
|
type,
|
|
13571
13588
|
exp
|
|
13572
13589
|
} = _ref;
|
|
13573
|
-
return /*#__PURE__*/
|
|
13590
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
13574
13591
|
withBorder: true,
|
|
13575
13592
|
radius: "md",
|
|
13576
13593
|
p: 0,
|
|
13577
13594
|
bg: isActive ? "gray.1" : "white",
|
|
13578
13595
|
w: 330
|
|
13579
|
-
}, /*#__PURE__*/
|
|
13596
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13580
13597
|
gap: "md",
|
|
13581
13598
|
px: "sm"
|
|
13582
|
-
}, /*#__PURE__*/
|
|
13599
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
13583
13600
|
h: 88,
|
|
13584
13601
|
w: 80
|
|
13585
|
-
}, logo[type]), /*#__PURE__*/
|
|
13602
|
+
}, logo[type]), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13586
13603
|
gap: 3
|
|
13587
|
-
}, /*#__PURE__*/
|
|
13604
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13588
13605
|
fz: 14,
|
|
13589
13606
|
tt: "uppercase",
|
|
13590
13607
|
fw: 500
|
|
13591
|
-
}, `**** **** **** ${pan}`), /*#__PURE__*/
|
|
13608
|
+
}, `**** **** **** ${pan}`), /*#__PURE__*/React__default.createElement(Group, {
|
|
13592
13609
|
c: "dimmed"
|
|
13593
|
-
}, /*#__PURE__*/
|
|
13610
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13594
13611
|
tt: "capitalize",
|
|
13595
13612
|
fw: 300,
|
|
13596
13613
|
size: "xs"
|
|
13597
|
-
}, type), /*#__PURE__*/
|
|
13614
|
+
}, type), /*#__PURE__*/React__default.createElement(Text, {
|
|
13598
13615
|
fw: 300,
|
|
13599
13616
|
size: "sm"
|
|
13600
|
-
}, exp))), /*#__PURE__*/
|
|
13617
|
+
}, exp))), /*#__PURE__*/React__default.createElement(Space, {
|
|
13601
13618
|
flex: 1
|
|
13602
|
-
}), /*#__PURE__*/
|
|
13619
|
+
}), /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
13603
13620
|
variant: "subtle",
|
|
13604
13621
|
disabled: isActive
|
|
13605
|
-
}, !isActive ? /*#__PURE__*/
|
|
13622
|
+
}, !isActive ? /*#__PURE__*/React__default.createElement(Icons, {
|
|
13606
13623
|
name: "Record"
|
|
13607
|
-
}) : /*#__PURE__*/
|
|
13624
|
+
}) : /*#__PURE__*/React__default.createElement(Icons, {
|
|
13608
13625
|
name: "TickCircle"
|
|
13609
13626
|
}))));
|
|
13610
13627
|
};
|
|
13611
13628
|
const logo = {
|
|
13612
|
-
mastercard: /*#__PURE__*/
|
|
13629
|
+
mastercard: /*#__PURE__*/React__default.createElement(Image, {
|
|
13613
13630
|
height: 60,
|
|
13614
13631
|
src: img$7
|
|
13615
13632
|
}),
|
|
13616
|
-
visa: /*#__PURE__*/
|
|
13633
|
+
visa: /*#__PURE__*/React__default.createElement(Image, {
|
|
13617
13634
|
height: 60,
|
|
13618
13635
|
src: img$8
|
|
13619
13636
|
}),
|
|
13620
|
-
amex: /*#__PURE__*/
|
|
13637
|
+
amex: /*#__PURE__*/React__default.createElement(Image, {
|
|
13621
13638
|
height: 60,
|
|
13622
13639
|
src: img$9
|
|
13623
13640
|
}),
|
|
13624
|
-
paypal: /*#__PURE__*/
|
|
13641
|
+
paypal: /*#__PURE__*/React__default.createElement(Image, {
|
|
13625
13642
|
height: 60,
|
|
13626
13643
|
src: img$6
|
|
13627
13644
|
}),
|
|
13628
|
-
verve: /*#__PURE__*/
|
|
13645
|
+
verve: /*#__PURE__*/React__default.createElement(Image, {
|
|
13629
13646
|
height: 60,
|
|
13630
13647
|
src: img$5
|
|
13631
13648
|
})
|
|
13632
13649
|
};
|
|
13633
13650
|
const PaymentMethodAdd = () => {
|
|
13634
|
-
return /*#__PURE__*/
|
|
13651
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
13635
13652
|
align: "center"
|
|
13636
|
-
}, /*#__PURE__*/
|
|
13653
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
13637
13654
|
variant: "outline",
|
|
13638
13655
|
w: 60,
|
|
13639
13656
|
h: 60
|
|
13640
|
-
}, /*#__PURE__*/
|
|
13657
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13641
13658
|
name: "Add",
|
|
13642
13659
|
size: 60,
|
|
13643
13660
|
stroke: 1
|
|
@@ -13649,7 +13666,7 @@ const SimpleHeader = _ref => {
|
|
|
13649
13666
|
id,
|
|
13650
13667
|
label
|
|
13651
13668
|
} = _ref;
|
|
13652
|
-
return /*#__PURE__*/
|
|
13669
|
+
return /*#__PURE__*/React__default.createElement(Table.Th, {
|
|
13653
13670
|
fw: 500,
|
|
13654
13671
|
id: id,
|
|
13655
13672
|
fz: "xs",
|
|
@@ -13674,13 +13691,13 @@ const SimpleBody = _ref => {
|
|
|
13674
13691
|
if (withIndex) {
|
|
13675
13692
|
row["index"] = `${index ? index + 1 : 1}`;
|
|
13676
13693
|
}
|
|
13677
|
-
return /*#__PURE__*/
|
|
13694
|
+
return /*#__PURE__*/React__default.createElement(Table.Tr, {
|
|
13678
13695
|
fw: 300,
|
|
13679
13696
|
fz: "sm",
|
|
13680
13697
|
h: 50
|
|
13681
13698
|
}, columns.map((column, idx) => {
|
|
13682
13699
|
const columnIndex = column.id;
|
|
13683
|
-
return /*#__PURE__*/
|
|
13700
|
+
return /*#__PURE__*/React__default.createElement(Table.Td, {
|
|
13684
13701
|
key: idx
|
|
13685
13702
|
}, typeof row[columnIndex] === "function" ? row[columnIndex](`${index}`) : row[columnIndex] || "");
|
|
13686
13703
|
}));
|
|
@@ -13714,14 +13731,14 @@ const SimpleTable = _ref => {
|
|
|
13714
13731
|
withRowBorders: false,
|
|
13715
13732
|
verticalSpacing: "md"
|
|
13716
13733
|
};
|
|
13717
|
-
return /*#__PURE__*/
|
|
13734
|
+
return /*#__PURE__*/React__default.createElement(Table, isStriped && isStripedProps, /*#__PURE__*/React__default.createElement(Table.Thead, null, /*#__PURE__*/React__default.createElement(Table.Tr, {
|
|
13718
13735
|
bg: isStriped ? "gray.1" : "transparent"
|
|
13719
13736
|
}, columns.map((column, index) => {
|
|
13720
|
-
return /*#__PURE__*/
|
|
13737
|
+
return /*#__PURE__*/React__default.createElement(SimpleHeader, _extends({
|
|
13721
13738
|
key: `column-${index}`
|
|
13722
13739
|
}, column));
|
|
13723
|
-
}))), /*#__PURE__*/
|
|
13724
|
-
return /*#__PURE__*/
|
|
13740
|
+
}))), /*#__PURE__*/React__default.createElement(Table.Tbody, null, rows.map((row, index) => {
|
|
13741
|
+
return /*#__PURE__*/React__default.createElement(SimpleBody, {
|
|
13725
13742
|
key: index,
|
|
13726
13743
|
row,
|
|
13727
13744
|
columns,
|
|
@@ -13766,29 +13783,29 @@ const File = _ref => {
|
|
|
13766
13783
|
} = _ref;
|
|
13767
13784
|
const isChip = shape == "chip";
|
|
13768
13785
|
const radius = isChip ? "md" : "sm";
|
|
13769
|
-
return /*#__PURE__*/
|
|
13786
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({}, rest, {
|
|
13770
13787
|
radius,
|
|
13771
13788
|
w,
|
|
13772
13789
|
bg,
|
|
13773
13790
|
bd
|
|
13774
|
-
}), /*#__PURE__*/
|
|
13791
|
+
}), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13775
13792
|
p: isChip ? "xs" : undefined
|
|
13776
|
-
}, /*#__PURE__*/
|
|
13793
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13777
13794
|
justify: isChip ? "space-between" : undefined,
|
|
13778
13795
|
gap: "xs"
|
|
13779
|
-
}, /*#__PURE__*/
|
|
13796
|
+
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
13780
13797
|
p: isChip ? undefined : "xs",
|
|
13781
13798
|
pr: 2,
|
|
13782
13799
|
h: isChip ? CHIP_HEIGHT : TILE_HEIGHT,
|
|
13783
13800
|
w: isChip ? CHIP_WIDTH : TILE_WIDTH,
|
|
13784
13801
|
alt: shape,
|
|
13785
13802
|
fallbackSrc: ICON[type]
|
|
13786
|
-
}), rest.children, /*#__PURE__*/
|
|
13803
|
+
}), rest.children, /*#__PURE__*/React__default.createElement(Space, {
|
|
13787
13804
|
flex: 1
|
|
13788
|
-
}), rightsection ? /*#__PURE__*/
|
|
13805
|
+
}), rightsection ? /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
13789
13806
|
variant: "transparent",
|
|
13790
13807
|
onClick: rightsection.onClick
|
|
13791
|
-
}, /*#__PURE__*/
|
|
13808
|
+
}, /*#__PURE__*/React__default.createElement(Icons, rightsection?.icon)) : undefined)));
|
|
13792
13809
|
};
|
|
13793
13810
|
|
|
13794
13811
|
const theme = createTheme({
|
|
@@ -13818,21 +13835,21 @@ const ErrorModal = _ref => {
|
|
|
13818
13835
|
id,
|
|
13819
13836
|
innerProps
|
|
13820
13837
|
} = _ref;
|
|
13821
|
-
return /*#__PURE__*/
|
|
13838
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13822
13839
|
align: "center",
|
|
13823
13840
|
py: "md"
|
|
13824
|
-
}, /*#__PURE__*/
|
|
13841
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
13825
13842
|
w: 170,
|
|
13826
13843
|
h: 170
|
|
13827
|
-
}, /*#__PURE__*/
|
|
13844
|
+
}, /*#__PURE__*/React__default.createElement(DotLottieReact, {
|
|
13828
13845
|
speed: 0.5,
|
|
13829
13846
|
src: ErrorAnimation,
|
|
13830
13847
|
loop: false,
|
|
13831
13848
|
autoplay: true
|
|
13832
|
-
})), /*#__PURE__*/
|
|
13849
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
13833
13850
|
fw: 300,
|
|
13834
13851
|
ta: "center"
|
|
13835
|
-
}, innerProps.modalBody)), /*#__PURE__*/
|
|
13852
|
+
}, innerProps.modalBody)), /*#__PURE__*/React__default.createElement(Button, {
|
|
13836
13853
|
radius: "xl",
|
|
13837
13854
|
fw: 300,
|
|
13838
13855
|
size: "md",
|
|
@@ -13850,9 +13867,9 @@ const InfoModal = _ref => {
|
|
|
13850
13867
|
id,
|
|
13851
13868
|
innerProps
|
|
13852
13869
|
} = _ref;
|
|
13853
|
-
return /*#__PURE__*/
|
|
13870
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
13854
13871
|
size: "sm"
|
|
13855
|
-
}, innerProps.modalBody), /*#__PURE__*/
|
|
13872
|
+
}, innerProps.modalBody), /*#__PURE__*/React__default.createElement(Button, {
|
|
13856
13873
|
fullWidth: true,
|
|
13857
13874
|
mt: "md",
|
|
13858
13875
|
onClick: () => context.closeModal(id)
|
|
@@ -13866,17 +13883,17 @@ const SimpleModal = _ref => {
|
|
|
13866
13883
|
innerProps,
|
|
13867
13884
|
...rest
|
|
13868
13885
|
} = _ref;
|
|
13869
|
-
return /*#__PURE__*/
|
|
13886
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
13870
13887
|
pt: "lg",
|
|
13871
13888
|
gap: "xl"
|
|
13872
|
-
}, /*#__PURE__*/
|
|
13889
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13873
13890
|
align: "center",
|
|
13874
13891
|
gap: "lg"
|
|
13875
|
-
}, /*#__PURE__*/
|
|
13892
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13876
13893
|
order: 3,
|
|
13877
13894
|
fw: 500,
|
|
13878
13895
|
lh: "40px"
|
|
13879
|
-
}, innerProps.title), /*#__PURE__*/
|
|
13896
|
+
}, innerProps.title), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, innerProps.modalBody)));
|
|
13880
13897
|
};
|
|
13881
13898
|
|
|
13882
13899
|
var SuccessAnimation = "data:null;base64,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";
|
|
@@ -13887,21 +13904,21 @@ const SuccessModal = _ref => {
|
|
|
13887
13904
|
id,
|
|
13888
13905
|
innerProps
|
|
13889
13906
|
} = _ref;
|
|
13890
|
-
return /*#__PURE__*/
|
|
13907
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13891
13908
|
align: "center",
|
|
13892
13909
|
py: "md"
|
|
13893
|
-
}, /*#__PURE__*/
|
|
13910
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
13894
13911
|
w: 170,
|
|
13895
13912
|
h: 170
|
|
13896
|
-
}, /*#__PURE__*/
|
|
13913
|
+
}, /*#__PURE__*/React__default.createElement(DotLottieReact, {
|
|
13897
13914
|
speed: 0.8,
|
|
13898
13915
|
src: SuccessAnimation,
|
|
13899
13916
|
loop: false,
|
|
13900
13917
|
autoplay: true
|
|
13901
|
-
})), /*#__PURE__*/
|
|
13918
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
13902
13919
|
fw: 300,
|
|
13903
13920
|
ta: "center"
|
|
13904
|
-
}, innerProps.modalBody)), /*#__PURE__*/
|
|
13921
|
+
}, innerProps.modalBody)), /*#__PURE__*/React__default.createElement(Button, {
|
|
13905
13922
|
radius: "xl",
|
|
13906
13923
|
fw: 300,
|
|
13907
13924
|
size: "md",
|
|
@@ -13919,22 +13936,22 @@ const TwoFactorModal = _ref => {
|
|
|
13919
13936
|
title = "Verify Your Identity",
|
|
13920
13937
|
pinLength = 6
|
|
13921
13938
|
} = _ref;
|
|
13922
|
-
return /*#__PURE__*/
|
|
13939
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
13923
13940
|
align: "center",
|
|
13924
13941
|
py: 40,
|
|
13925
13942
|
gap: "lg"
|
|
13926
|
-
}, /*#__PURE__*/
|
|
13943
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13927
13944
|
order: 3,
|
|
13928
13945
|
fw: 500,
|
|
13929
13946
|
h: 40
|
|
13930
|
-
}, title), /*#__PURE__*/
|
|
13947
|
+
}, title), /*#__PURE__*/React__default.createElement(PinInput, {
|
|
13931
13948
|
length: pinLength,
|
|
13932
13949
|
placeholder: "",
|
|
13933
13950
|
type: "number",
|
|
13934
13951
|
inputType: "tel",
|
|
13935
13952
|
inputMode: "numeric",
|
|
13936
13953
|
autoFocus: true
|
|
13937
|
-
}), /*#__PURE__*/
|
|
13954
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
13938
13955
|
ta: "center",
|
|
13939
13956
|
fw: 300
|
|
13940
13957
|
}, children));
|
|
@@ -13949,7 +13966,7 @@ const Drawer = _ref => {
|
|
|
13949
13966
|
title = "",
|
|
13950
13967
|
page = undefined
|
|
13951
13968
|
} = _ref;
|
|
13952
|
-
return /*#__PURE__*/
|
|
13969
|
+
return /*#__PURE__*/React__default.createElement(Drawer$1.Root, {
|
|
13953
13970
|
opened,
|
|
13954
13971
|
onClose,
|
|
13955
13972
|
position,
|
|
@@ -13962,17 +13979,17 @@ const Drawer = _ref => {
|
|
|
13962
13979
|
duration: 500,
|
|
13963
13980
|
transition: "slide-left"
|
|
13964
13981
|
}
|
|
13965
|
-
}, /*#__PURE__*/
|
|
13982
|
+
}, /*#__PURE__*/React__default.createElement(Drawer$1.Overlay, null), /*#__PURE__*/React__default.createElement(Drawer$1.Content, null, /*#__PURE__*/React__default.createElement(Drawer$1.Header, null, /*#__PURE__*/React__default.createElement(Drawer$1.Title, {
|
|
13966
13983
|
fz: "lg",
|
|
13967
13984
|
fw: "400"
|
|
13968
|
-
}, title), /*#__PURE__*/
|
|
13969
|
-
icon: /*#__PURE__*/
|
|
13985
|
+
}, title), /*#__PURE__*/React__default.createElement(Drawer$1.CloseButton, {
|
|
13986
|
+
icon: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13970
13987
|
name: "Back",
|
|
13971
13988
|
size: 24
|
|
13972
13989
|
})
|
|
13973
|
-
})), /*#__PURE__*/
|
|
13990
|
+
})), /*#__PURE__*/React__default.createElement(Drawer$1.Body, {
|
|
13974
13991
|
p: "md"
|
|
13975
|
-
}, /*#__PURE__*/
|
|
13992
|
+
}, /*#__PURE__*/React__default.createElement(ScrollArea, {
|
|
13976
13993
|
scrollbars: "y"
|
|
13977
13994
|
}, page))));
|
|
13978
13995
|
};
|
|
@@ -14027,7 +14044,7 @@ const SimpleForm = _ref => {
|
|
|
14027
14044
|
variant: !isEditable ? "unstyled" : "default",
|
|
14028
14045
|
required: true
|
|
14029
14046
|
};
|
|
14030
|
-
return /*#__PURE__*/
|
|
14047
|
+
return /*#__PURE__*/React__default.createElement("form", {
|
|
14031
14048
|
onSubmit: form.onSubmit(values => hasSubmit ? rest.onSubmit?.(values) : void 0),
|
|
14032
14049
|
onReset: () => {
|
|
14033
14050
|
form.reset();
|
|
@@ -14036,18 +14053,18 @@ const SimpleForm = _ref => {
|
|
|
14036
14053
|
style: {
|
|
14037
14054
|
height: "100%"
|
|
14038
14055
|
}
|
|
14039
|
-
}, /*#__PURE__*/
|
|
14056
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14040
14057
|
h: "100%"
|
|
14041
|
-
}, /*#__PURE__*/
|
|
14058
|
+
}, /*#__PURE__*/React__default.createElement(Grid, null, fields.map((field, index) => {
|
|
14042
14059
|
if (typeof field === "string") {
|
|
14043
14060
|
const sanitizedField = santize(field);
|
|
14044
|
-
return /*#__PURE__*/
|
|
14061
|
+
return /*#__PURE__*/React__default.createElement(Grid.Col, {
|
|
14045
14062
|
key: index,
|
|
14046
14063
|
span: layout[index]
|
|
14047
|
-
}, /*#__PURE__*/
|
|
14064
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends({}, inputProps, sanitizedField, form.getInputProps(sanitizedField.name))));
|
|
14048
14065
|
}
|
|
14049
14066
|
if (typeof field === "function") {
|
|
14050
|
-
return /*#__PURE__*/
|
|
14067
|
+
return /*#__PURE__*/React__default.createElement(Grid.Col, {
|
|
14051
14068
|
key: index,
|
|
14052
14069
|
span: layout[index]
|
|
14053
14070
|
}, field(form.getInputProps));
|
|
@@ -14055,15 +14072,15 @@ const SimpleForm = _ref => {
|
|
|
14055
14072
|
if (Object.keys(components).includes(field.component)) {
|
|
14056
14073
|
const Component = components[field.component];
|
|
14057
14074
|
const sanitizedField = santize(field.field ?? "");
|
|
14058
|
-
return /*#__PURE__*/
|
|
14075
|
+
return /*#__PURE__*/React__default.createElement(Grid.Col, {
|
|
14059
14076
|
key: index,
|
|
14060
14077
|
span: layout[index]
|
|
14061
|
-
}, /*#__PURE__*/
|
|
14078
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, field.field, inputProps, sanitizedField, form.getInputProps(sanitizedField.name))));
|
|
14062
14079
|
}
|
|
14063
14080
|
return null;
|
|
14064
|
-
})), /*#__PURE__*/
|
|
14081
|
+
})), /*#__PURE__*/React__default.createElement(Space, {
|
|
14065
14082
|
flex: 1
|
|
14066
|
-
}), /*#__PURE__*/
|
|
14083
|
+
}), /*#__PURE__*/React__default.createElement(FormButtons, {
|
|
14067
14084
|
hasSubmit,
|
|
14068
14085
|
hasReset,
|
|
14069
14086
|
buttonSize
|
|
@@ -14090,15 +14107,15 @@ const FormButtons = _ref2 => {
|
|
|
14090
14107
|
hasReset = false,
|
|
14091
14108
|
buttonSize
|
|
14092
14109
|
} = _ref2;
|
|
14093
|
-
return /*#__PURE__*/
|
|
14110
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
14094
14111
|
mt: "lg",
|
|
14095
14112
|
justify: "flex-end",
|
|
14096
14113
|
grow: true,
|
|
14097
14114
|
gap: 10,
|
|
14098
14115
|
w: "100%",
|
|
14099
14116
|
display: hasSubmit || hasReset ? "flex" : "none"
|
|
14100
|
-
}, /*#__PURE__*/
|
|
14101
|
-
leftSection: /*#__PURE__*/
|
|
14117
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
14118
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
14102
14119
|
name: "CloseCircle",
|
|
14103
14120
|
size: 16
|
|
14104
14121
|
}),
|
|
@@ -14112,12 +14129,12 @@ const FormButtons = _ref2 => {
|
|
|
14112
14129
|
display: hasReset ? "block" : "none"
|
|
14113
14130
|
},
|
|
14114
14131
|
flex: 1
|
|
14115
|
-
}, /*#__PURE__*/
|
|
14132
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14116
14133
|
fw: 400,
|
|
14117
14134
|
fz: "sm",
|
|
14118
14135
|
c: "white"
|
|
14119
|
-
}, "Cancel")), /*#__PURE__*/
|
|
14120
|
-
leftSection: /*#__PURE__*/
|
|
14136
|
+
}, "Cancel")), /*#__PURE__*/React__default.createElement(Button, {
|
|
14137
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
14121
14138
|
name: "TickCircle",
|
|
14122
14139
|
size: 16
|
|
14123
14140
|
}),
|
|
@@ -14131,7 +14148,7 @@ const FormButtons = _ref2 => {
|
|
|
14131
14148
|
display: hasSubmit ? "block" : "none"
|
|
14132
14149
|
},
|
|
14133
14150
|
flex: 1
|
|
14134
|
-
}, /*#__PURE__*/
|
|
14151
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14135
14152
|
fw: 300,
|
|
14136
14153
|
fz: "sm",
|
|
14137
14154
|
c: "white"
|
|
@@ -14147,24 +14164,24 @@ const MaskedTilePanel = _ref => {
|
|
|
14147
14164
|
} = _ref;
|
|
14148
14165
|
const [masked, toggle] = useToggle();
|
|
14149
14166
|
const name = masked ? "Eye" : "EyeSlash";
|
|
14150
|
-
return /*#__PURE__*/
|
|
14167
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
14151
14168
|
p: "md",
|
|
14152
14169
|
bg: "gray.0",
|
|
14153
14170
|
style: {
|
|
14154
14171
|
borderRadius: "10px"
|
|
14155
14172
|
}
|
|
14156
|
-
}, /*#__PURE__*/
|
|
14173
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
14157
14174
|
justify: "space-between"
|
|
14158
|
-
}, /*#__PURE__*/
|
|
14175
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14159
14176
|
gap: 0,
|
|
14160
14177
|
p: 0,
|
|
14161
14178
|
flex: 1
|
|
14162
|
-
}, /*#__PURE__*/
|
|
14179
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14163
14180
|
fz: "sm",
|
|
14164
14181
|
fw: 300,
|
|
14165
14182
|
p: 0,
|
|
14166
14183
|
c: "gray.7"
|
|
14167
|
-
}, label), /*#__PURE__*/
|
|
14184
|
+
}, label), /*#__PURE__*/React__default.createElement(TextInput, {
|
|
14168
14185
|
type: masked ? "password" : "text",
|
|
14169
14186
|
fw: 300,
|
|
14170
14187
|
p: 0,
|
|
@@ -14172,10 +14189,10 @@ const MaskedTilePanel = _ref => {
|
|
|
14172
14189
|
value: value,
|
|
14173
14190
|
variant: "unstyled",
|
|
14174
14191
|
readOnly: true
|
|
14175
|
-
})), /*#__PURE__*/
|
|
14192
|
+
})), /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
14176
14193
|
variant: "transparent",
|
|
14177
14194
|
onClick: () => onMasked() ? toggle() : void 0
|
|
14178
|
-
}, icon && /*#__PURE__*/
|
|
14195
|
+
}, icon && /*#__PURE__*/React__default.createElement(Icons, {
|
|
14179
14196
|
size: 24,
|
|
14180
14197
|
color: "gray",
|
|
14181
14198
|
name: name
|
|
@@ -14186,24 +14203,24 @@ const TilePanel = _ref2 => {
|
|
|
14186
14203
|
label,
|
|
14187
14204
|
value
|
|
14188
14205
|
} = _ref2;
|
|
14189
|
-
return /*#__PURE__*/
|
|
14206
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
14190
14207
|
p: "md",
|
|
14191
14208
|
bg: "gray.0",
|
|
14192
14209
|
style: {
|
|
14193
14210
|
borderRadius: "10px"
|
|
14194
14211
|
}
|
|
14195
|
-
}, /*#__PURE__*/
|
|
14212
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
14196
14213
|
justify: "space-between"
|
|
14197
|
-
}, /*#__PURE__*/
|
|
14214
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14198
14215
|
gap: 0,
|
|
14199
14216
|
p: 0,
|
|
14200
14217
|
flex: 1
|
|
14201
|
-
}, /*#__PURE__*/
|
|
14218
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14202
14219
|
fz: "sm",
|
|
14203
14220
|
fw: 300,
|
|
14204
14221
|
p: 0,
|
|
14205
14222
|
c: "gray.7"
|
|
14206
|
-
}, label), /*#__PURE__*/
|
|
14223
|
+
}, label), /*#__PURE__*/React__default.createElement(TextInput, {
|
|
14207
14224
|
fw: 300,
|
|
14208
14225
|
p: 0,
|
|
14209
14226
|
c: "adiba",
|
|
@@ -14218,18 +14235,18 @@ var ConfirmAnimation = "data:null;base64,UEsDBBQAAAAIAEoK11qAribJgAAAALUAAAANAAA
|
|
|
14218
14235
|
const ConfirmModal = _ref => {
|
|
14219
14236
|
let {
|
|
14220
14237
|
children} = _ref;
|
|
14221
|
-
return /*#__PURE__*/
|
|
14238
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
14222
14239
|
align: "center",
|
|
14223
14240
|
py: "md"
|
|
14224
|
-
}, /*#__PURE__*/
|
|
14241
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
14225
14242
|
w: 150,
|
|
14226
14243
|
h: 150,
|
|
14227
14244
|
pt: "md"
|
|
14228
|
-
}, /*#__PURE__*/
|
|
14245
|
+
}, /*#__PURE__*/React__default.createElement(DotLottieReact, {
|
|
14229
14246
|
speed: 1,
|
|
14230
14247
|
src: ConfirmAnimation,
|
|
14231
14248
|
autoplay: true
|
|
14232
|
-
})), /*#__PURE__*/
|
|
14249
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
14233
14250
|
ta: "center",
|
|
14234
14251
|
fw: 300
|
|
14235
14252
|
}, children));
|
|
@@ -14392,4 +14409,122 @@ const useManagedModals = () => {
|
|
|
14392
14409
|
};
|
|
14393
14410
|
};
|
|
14394
14411
|
|
|
14395
|
-
|
|
14412
|
+
/**
|
|
14413
|
+
* Default pagination page size
|
|
14414
|
+
*/
|
|
14415
|
+
const DEFAULT_PAGE_SIZE = 10;
|
|
14416
|
+
|
|
14417
|
+
/**
|
|
14418
|
+
* Maximum allowed page size for pagination
|
|
14419
|
+
*/
|
|
14420
|
+
const MAX_PAGE_SIZE = 100;
|
|
14421
|
+
|
|
14422
|
+
/**
|
|
14423
|
+
* Default API request timeout in milliseconds
|
|
14424
|
+
*/
|
|
14425
|
+
const DEFAULT_API_TIMEOUT = 30000;
|
|
14426
|
+
|
|
14427
|
+
class ApiClient {
|
|
14428
|
+
constructor(config) {
|
|
14429
|
+
const {
|
|
14430
|
+
baseURL = "/",
|
|
14431
|
+
timeout = DEFAULT_API_TIMEOUT,
|
|
14432
|
+
headers = {
|
|
14433
|
+
"Content-Type": "application/json"
|
|
14434
|
+
}
|
|
14435
|
+
} = config;
|
|
14436
|
+
this.client = axios.create({
|
|
14437
|
+
baseURL,
|
|
14438
|
+
timeout,
|
|
14439
|
+
headers
|
|
14440
|
+
});
|
|
14441
|
+
this.setupInterceptors();
|
|
14442
|
+
}
|
|
14443
|
+
setupInterceptors() {
|
|
14444
|
+
// Request interceptor
|
|
14445
|
+
this.client.interceptors.request.use(config => {
|
|
14446
|
+
// Add auth token, logging, etc. if needed
|
|
14447
|
+
return config;
|
|
14448
|
+
}, error => Promise.reject(error));
|
|
14449
|
+
|
|
14450
|
+
// Response interceptor
|
|
14451
|
+
this.client.interceptors.response.use(response => {
|
|
14452
|
+
return response;
|
|
14453
|
+
}, error => {
|
|
14454
|
+
// Handle errors globally
|
|
14455
|
+
return Promise.reject(this.handleError(error));
|
|
14456
|
+
});
|
|
14457
|
+
}
|
|
14458
|
+
handleError(error) {
|
|
14459
|
+
if (error && typeof error === "object" && "response" in error) {
|
|
14460
|
+
const axiosError = error;
|
|
14461
|
+
if (axiosError.response) {
|
|
14462
|
+
return {
|
|
14463
|
+
status: "error",
|
|
14464
|
+
code: axiosError.response.status,
|
|
14465
|
+
message: axiosError.response.data?.message || "An error occurred",
|
|
14466
|
+
error: axiosError.response.data?.error || axiosError.message || "An unexpected error occurred"
|
|
14467
|
+
};
|
|
14468
|
+
}
|
|
14469
|
+
}
|
|
14470
|
+
const errorMessage = error instanceof Error ? error.message : "An unexpected error occurred";
|
|
14471
|
+
return {
|
|
14472
|
+
status: "error",
|
|
14473
|
+
code: 500,
|
|
14474
|
+
message: "Network error",
|
|
14475
|
+
error: errorMessage
|
|
14476
|
+
};
|
|
14477
|
+
}
|
|
14478
|
+
async get(url, config) {
|
|
14479
|
+
const response = await this.client.get(url, config);
|
|
14480
|
+
return response.data;
|
|
14481
|
+
}
|
|
14482
|
+
async post(url, data, config) {
|
|
14483
|
+
const response = await this.client.post(url, data, config);
|
|
14484
|
+
return response.data;
|
|
14485
|
+
}
|
|
14486
|
+
async put(url, data, config) {
|
|
14487
|
+
const response = await this.client.put(url, data, config);
|
|
14488
|
+
return response.data;
|
|
14489
|
+
}
|
|
14490
|
+
async delete(url, config) {
|
|
14491
|
+
const response = await this.client.delete(url, config);
|
|
14492
|
+
return response.data;
|
|
14493
|
+
}
|
|
14494
|
+
}
|
|
14495
|
+
|
|
14496
|
+
/**
|
|
14497
|
+
* Factory function to create a configured API client instance
|
|
14498
|
+
* @param config - Configuration options for the API client
|
|
14499
|
+
* @returns Configured ApiClient instance
|
|
14500
|
+
*/
|
|
14501
|
+
function createApiClient() {
|
|
14502
|
+
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14503
|
+
return new ApiClient(config);
|
|
14504
|
+
}
|
|
14505
|
+
|
|
14506
|
+
/**
|
|
14507
|
+
* Default API client instance with default configuration
|
|
14508
|
+
* For custom configuration, use createApiClient() instead
|
|
14509
|
+
*/
|
|
14510
|
+
const apiClient = createApiClient();
|
|
14511
|
+
|
|
14512
|
+
/**
|
|
14513
|
+
* Wrapper component for modal content to ensure MantineProvider context is available
|
|
14514
|
+
* This is needed because modals rendered by the appshell may not have access to the pilet's provider
|
|
14515
|
+
*/
|
|
14516
|
+
const ModalContentWrapper = _ref => {
|
|
14517
|
+
let {
|
|
14518
|
+
children
|
|
14519
|
+
} = _ref;
|
|
14520
|
+
return /*#__PURE__*/React.createElement(MantineProvider, {
|
|
14521
|
+
theme: theme
|
|
14522
|
+
}, /*#__PURE__*/React.createElement(DatesProvider, {
|
|
14523
|
+
settings: {
|
|
14524
|
+
locale: "en",
|
|
14525
|
+
timezone: "UTC"
|
|
14526
|
+
}
|
|
14527
|
+
}, children));
|
|
14528
|
+
};
|
|
14529
|
+
|
|
14530
|
+
export { ApplicationMenu as A, BasicHeatmap as B, CalendarHeatmap as C, DonutChart as D, EqualizerColumn as E, File as F, SimpleForm as G, MaskedTilePanel as H, InterpolatedHeatmap as I, TilePanel as J, useModal as K, LabelPanel as L, MultiAxisArea as M, useManagedModals as N, DEFAULT_PAGE_SIZE as O, PageTitle as P, MAX_PAGE_SIZE as Q, DEFAULT_API_TIMEOUT as R, SimpleColumn as S, TitledPanel as T, UserMenu as U, createApiClient as V, apiClient as W, ModalContentWrapper as X, StackedColumn as a, SimpleArea as b, StackedArea as c, Icons as d, DynamicLogo as e, DynamicShigaLogo as f, getDefaultExportFromCjs as g, SideMenu as h, SimplePanel as i, SearchPanel as j, AvatarLabelPanel as k, SimpleText as l, TitleWithIndex as m, ConnectionPanel as n, ApplicationPanel as o, SubscriptionPlans as p, PaymentMethod as q, PaymentMethodAdd as r, SimpleTable as s, theme as t, ErrorModal as u, InfoModal as v, SimpleModal as w, SuccessModal as x, TwoFactorModal as y, Drawer as z };
|