@adiba-banking-cloud/backoffice 0.0.106 → 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-BJmii0aO.js → heatmap-c3tdleHx.js} +1 -1
- package/build/index.cjs.js/{index-BLpjQkzt.js → index-QwR6crYB.js} +129 -1
- package/build/index.cjs.js/index.js +10 -1
- package/build/index.esm.js/{heatmap-yNnNxsAY.js → heatmap-Dfb5-pNh.js} +1 -1
- package/build/index.esm.js/{index-CWjYoFnK.js → index-9HtrJaD9.js} +403 -281
- package/build/index.esm.js/index.js +4 -1
- 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,10 +11391,10 @@ 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
|
};
|
|
@@ -11688,7 +11692,7 @@ const Area = props => {
|
|
|
11688
11692
|
chartRef.current.chart.update(chartOptions, true);
|
|
11689
11693
|
}
|
|
11690
11694
|
}, [chartOptions]);
|
|
11691
|
-
return /*#__PURE__*/
|
|
11695
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
11692
11696
|
highcharts: Highcharts,
|
|
11693
11697
|
ref: chartRef,
|
|
11694
11698
|
options: chartOptions
|
|
@@ -11709,7 +11713,7 @@ const SimpleArea = props => {
|
|
|
11709
11713
|
showYAxis: props.showYAxis,
|
|
11710
11714
|
step: props.step
|
|
11711
11715
|
};
|
|
11712
|
-
return /*#__PURE__*/
|
|
11716
|
+
return /*#__PURE__*/React__default.createElement(Area, chartOptions);
|
|
11713
11717
|
};
|
|
11714
11718
|
const MultiAxisArea = props => {
|
|
11715
11719
|
const chartRef = useRef(null);
|
|
@@ -11727,7 +11731,7 @@ const MultiAxisArea = props => {
|
|
|
11727
11731
|
chartRef.current.chart.update(chartOptions, true);
|
|
11728
11732
|
}
|
|
11729
11733
|
}, [chartOptions]);
|
|
11730
|
-
return /*#__PURE__*/
|
|
11734
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
11731
11735
|
highcharts: Highcharts,
|
|
11732
11736
|
ref: chartRef,
|
|
11733
11737
|
options: chartOptions
|
|
@@ -11749,7 +11753,7 @@ const StackedArea = props => {
|
|
|
11749
11753
|
chartRef.current.chart.update(chartOptions, true);
|
|
11750
11754
|
}
|
|
11751
11755
|
}, [chartOptions]);
|
|
11752
|
-
return /*#__PURE__*/
|
|
11756
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
11753
11757
|
highcharts: Highcharts,
|
|
11754
11758
|
ref: chartRef,
|
|
11755
11759
|
options: chartOptions
|
|
@@ -12145,7 +12149,7 @@ const initChart$1 = props => {
|
|
|
12145
12149
|
}
|
|
12146
12150
|
|
|
12147
12151
|
// Fallback: use dynamic import (async, but will work in Vite/Storybook)
|
|
12148
|
-
import('./heatmap-
|
|
12152
|
+
import('./heatmap-Dfb5-pNh.js').then(function (n) { return n.h; }).then(heatmapModule => {
|
|
12149
12153
|
const moduleFn = typeof heatmapModule === "function" ? heatmapModule : heatmapModule?.default || heatmapModule;
|
|
12150
12154
|
if (typeof moduleFn === "function") {
|
|
12151
12155
|
moduleFn(Highcharts);
|
|
@@ -12170,7 +12174,7 @@ const Heatmap = props => {
|
|
|
12170
12174
|
chartRef.current.chart.update(chartOptions, true);
|
|
12171
12175
|
}
|
|
12172
12176
|
}, [chartOptions]);
|
|
12173
|
-
return /*#__PURE__*/
|
|
12177
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
12174
12178
|
highcharts: Highcharts,
|
|
12175
12179
|
ref: chartRef,
|
|
12176
12180
|
options: chartOptions
|
|
@@ -12386,17 +12390,17 @@ const initCalendarSeries = props => {
|
|
|
12386
12390
|
};
|
|
12387
12391
|
};
|
|
12388
12392
|
const BasicHeatmap = props => {
|
|
12389
|
-
return /*#__PURE__*/
|
|
12393
|
+
return /*#__PURE__*/React__default.createElement(Heatmap, _extends({}, props, {
|
|
12390
12394
|
type: "basic"
|
|
12391
12395
|
}));
|
|
12392
12396
|
};
|
|
12393
12397
|
const InterpolatedHeatmap = props => {
|
|
12394
|
-
return /*#__PURE__*/
|
|
12398
|
+
return /*#__PURE__*/React__default.createElement(Heatmap, _extends({}, props, {
|
|
12395
12399
|
type: "interpolated"
|
|
12396
12400
|
}));
|
|
12397
12401
|
};
|
|
12398
12402
|
const CalendarHeatmap = props => {
|
|
12399
|
-
return /*#__PURE__*/
|
|
12403
|
+
return /*#__PURE__*/React__default.createElement(Heatmap, _extends({}, props, {
|
|
12400
12404
|
type: "calendar"
|
|
12401
12405
|
}));
|
|
12402
12406
|
};
|
|
@@ -12502,7 +12506,7 @@ const DonutChart = props => {
|
|
|
12502
12506
|
chartRef.current.chart.update(chartOptions, true);
|
|
12503
12507
|
}
|
|
12504
12508
|
}, [chartOptions]);
|
|
12505
|
-
return /*#__PURE__*/
|
|
12509
|
+
return /*#__PURE__*/React__default.createElement(HighchartsReact, {
|
|
12506
12510
|
highcharts: Highcharts$1,
|
|
12507
12511
|
ref: chartRef,
|
|
12508
12512
|
options: chartOptions
|
|
@@ -12539,7 +12543,7 @@ const Icons = _ref => {
|
|
|
12539
12543
|
color
|
|
12540
12544
|
} = _ref;
|
|
12541
12545
|
const Element = IconSax[name];
|
|
12542
|
-
return /*#__PURE__*/
|
|
12546
|
+
return /*#__PURE__*/React__default.createElement(Element, {
|
|
12543
12547
|
size,
|
|
12544
12548
|
color,
|
|
12545
12549
|
variant,
|
|
@@ -12561,15 +12565,15 @@ const Logo = _ref => {
|
|
|
12561
12565
|
fit,
|
|
12562
12566
|
...rest
|
|
12563
12567
|
} = _ref;
|
|
12564
|
-
return /*#__PURE__*/
|
|
12568
|
+
return /*#__PURE__*/React__default.createElement(Center, _extends({}, rest, {
|
|
12565
12569
|
component: Link,
|
|
12566
12570
|
display: "flex",
|
|
12567
12571
|
to: href
|
|
12568
|
-
}), /*#__PURE__*/
|
|
12572
|
+
}), /*#__PURE__*/React__default.createElement(Image, {
|
|
12569
12573
|
fallbackSrc: fallbackSrc,
|
|
12570
12574
|
src: src,
|
|
12571
12575
|
fit: fit
|
|
12572
|
-
}), /*#__PURE__*/
|
|
12576
|
+
}), /*#__PURE__*/React__default.createElement(Space, {
|
|
12573
12577
|
flex: 1,
|
|
12574
12578
|
hidden: true
|
|
12575
12579
|
}));
|
|
@@ -12582,7 +12586,7 @@ const DynamicLogo = _ref2 => {
|
|
|
12582
12586
|
w = 180,
|
|
12583
12587
|
...rest
|
|
12584
12588
|
} = _ref2;
|
|
12585
|
-
return /*#__PURE__*/
|
|
12589
|
+
return /*#__PURE__*/React__default.createElement(Logo, _extends({}, rest, {
|
|
12586
12590
|
href,
|
|
12587
12591
|
src,
|
|
12588
12592
|
fit,
|
|
@@ -12596,7 +12600,7 @@ const DynamicShigaLogo = _ref3 => {
|
|
|
12596
12600
|
fit = "contain",
|
|
12597
12601
|
...rest
|
|
12598
12602
|
} = _ref3;
|
|
12599
|
-
return /*#__PURE__*/
|
|
12603
|
+
return /*#__PURE__*/React__default.createElement(Logo, _extends({}, rest, {
|
|
12600
12604
|
href,
|
|
12601
12605
|
src,
|
|
12602
12606
|
fit,
|
|
@@ -12610,13 +12614,13 @@ const ApplicationMenuTarget = _ref => {
|
|
|
12610
12614
|
toggle,
|
|
12611
12615
|
...rest
|
|
12612
12616
|
} = _ref;
|
|
12613
|
-
return /*#__PURE__*/
|
|
12617
|
+
return /*#__PURE__*/React__default.createElement(Popover.Target, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
12614
12618
|
variant: "transparent",
|
|
12615
12619
|
justify: "space-between",
|
|
12616
12620
|
h: 60,
|
|
12617
12621
|
fw: 300,
|
|
12618
12622
|
w: 200,
|
|
12619
|
-
rightSection: /*#__PURE__*/
|
|
12623
|
+
rightSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
12620
12624
|
name: "ArrowDown2",
|
|
12621
12625
|
size: 16
|
|
12622
12626
|
}),
|
|
@@ -12631,32 +12635,32 @@ const ApplicationMenuDropdown = _ref => {
|
|
|
12631
12635
|
moreLink,
|
|
12632
12636
|
toggle
|
|
12633
12637
|
} = _ref;
|
|
12634
|
-
return /*#__PURE__*/
|
|
12638
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Popover.Dropdown, {
|
|
12635
12639
|
ml: "md",
|
|
12636
12640
|
p: 5
|
|
12637
|
-
}, /*#__PURE__*/
|
|
12641
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
12638
12642
|
gap: 5,
|
|
12639
12643
|
p: 0
|
|
12640
|
-
}, /*#__PURE__*/
|
|
12644
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
12641
12645
|
gap: 5,
|
|
12642
12646
|
align: "flex-start"
|
|
12643
|
-
}, items.map((item, index) => /*#__PURE__*/
|
|
12647
|
+
}, items.map((item, index) => /*#__PURE__*/React__default.createElement(DropdownItem, _extends({
|
|
12644
12648
|
key: `item-${index}`
|
|
12645
12649
|
}, item, {
|
|
12646
12650
|
onClick: e => {
|
|
12647
12651
|
toggle();
|
|
12648
12652
|
item.onClick(e);
|
|
12649
12653
|
}
|
|
12650
|
-
})))), /*#__PURE__*/
|
|
12654
|
+
})))), /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(Group, {
|
|
12651
12655
|
grow: true,
|
|
12652
12656
|
justify: "center"
|
|
12653
|
-
}, /*#__PURE__*/
|
|
12657
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
12654
12658
|
variant: "subtle",
|
|
12655
12659
|
p: 0,
|
|
12656
12660
|
component: Link,
|
|
12657
12661
|
to: moreLink,
|
|
12658
12662
|
onClick: toggle
|
|
12659
|
-
}, /*#__PURE__*/
|
|
12663
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12660
12664
|
size: "xs",
|
|
12661
12665
|
fw: 300,
|
|
12662
12666
|
w: 320
|
|
@@ -12674,7 +12678,7 @@ const DropdownItem = _ref2 => {
|
|
|
12674
12678
|
id,
|
|
12675
12679
|
onClick
|
|
12676
12680
|
} = _ref2;
|
|
12677
|
-
return /*#__PURE__*/
|
|
12681
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
12678
12682
|
variant: "subtle",
|
|
12679
12683
|
fw: 300,
|
|
12680
12684
|
mih: 70,
|
|
@@ -12682,15 +12686,15 @@ const DropdownItem = _ref2 => {
|
|
|
12682
12686
|
c: active ? activeColor : inactiveColor,
|
|
12683
12687
|
onClick: onClick,
|
|
12684
12688
|
"data-index": id
|
|
12685
|
-
}, /*#__PURE__*/
|
|
12689
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
12686
12690
|
w: 320
|
|
12687
|
-
}, /*#__PURE__*/
|
|
12691
|
+
}, /*#__PURE__*/React__default.createElement(Icons, icon), /*#__PURE__*/React__default.createElement(Stack, {
|
|
12688
12692
|
align: "flex-start",
|
|
12689
12693
|
gap: 5
|
|
12690
|
-
}, /*#__PURE__*/
|
|
12694
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12691
12695
|
size: "sm",
|
|
12692
12696
|
fw: 300
|
|
12693
|
-
}, title), /*#__PURE__*/
|
|
12697
|
+
}, title), /*#__PURE__*/React__default.createElement(Text, {
|
|
12694
12698
|
size: "xs",
|
|
12695
12699
|
fz: 11,
|
|
12696
12700
|
fw: 300
|
|
@@ -12708,7 +12712,7 @@ const ApplicationMenu = _ref => {
|
|
|
12708
12712
|
const [opened, {
|
|
12709
12713
|
toggle
|
|
12710
12714
|
}] = useDisclosure(false);
|
|
12711
|
-
return /*#__PURE__*/
|
|
12715
|
+
return /*#__PURE__*/React__default.createElement(Popover, {
|
|
12712
12716
|
transitionProps: {
|
|
12713
12717
|
transition
|
|
12714
12718
|
},
|
|
@@ -12722,9 +12726,9 @@ const ApplicationMenu = _ref => {
|
|
|
12722
12726
|
radius: "sm",
|
|
12723
12727
|
opened: opened,
|
|
12724
12728
|
onChange: toggle
|
|
12725
|
-
}, /*#__PURE__*/
|
|
12729
|
+
}, /*#__PURE__*/React__default.createElement(ApplicationMenuTarget, {
|
|
12726
12730
|
toggle
|
|
12727
|
-
}, label), /*#__PURE__*/
|
|
12731
|
+
}, label), /*#__PURE__*/React__default.createElement(ApplicationMenuDropdown, {
|
|
12728
12732
|
items,
|
|
12729
12733
|
moreLink,
|
|
12730
12734
|
moreText,
|
|
@@ -12738,32 +12742,32 @@ const UserMenuTarget = _ref => {
|
|
|
12738
12742
|
username,
|
|
12739
12743
|
avatar
|
|
12740
12744
|
} = _ref;
|
|
12741
|
-
return /*#__PURE__*/
|
|
12745
|
+
return /*#__PURE__*/React__default.createElement(Menu.Target, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
12742
12746
|
variant: "subtle",
|
|
12743
12747
|
h: 50,
|
|
12744
12748
|
px: 10,
|
|
12745
12749
|
radius: "md"
|
|
12746
|
-
}, /*#__PURE__*/
|
|
12750
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
12747
12751
|
gap: "sm"
|
|
12748
|
-
}, /*#__PURE__*/
|
|
12752
|
+
}, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
12749
12753
|
src: avatar,
|
|
12750
12754
|
radius: "md",
|
|
12751
12755
|
key: name,
|
|
12752
12756
|
name: name,
|
|
12753
12757
|
color: "initials",
|
|
12754
12758
|
bd: "0.5px solid adiba.2"
|
|
12755
|
-
}), /*#__PURE__*/
|
|
12759
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
12756
12760
|
gap: 0,
|
|
12757
12761
|
align: "flex-start",
|
|
12758
12762
|
visibleFrom: "md",
|
|
12759
12763
|
fw: 300
|
|
12760
|
-
}, /*#__PURE__*/
|
|
12764
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12761
12765
|
fw: 300,
|
|
12762
12766
|
size: "sm"
|
|
12763
|
-
}, name), /*#__PURE__*/
|
|
12767
|
+
}, name), /*#__PURE__*/React__default.createElement(Text, {
|
|
12764
12768
|
c: "dimmed",
|
|
12765
12769
|
size: "xs"
|
|
12766
|
-
}, username)), /*#__PURE__*/
|
|
12770
|
+
}, username)), /*#__PURE__*/React__default.createElement(Icons, {
|
|
12767
12771
|
name: "ArrowDown2",
|
|
12768
12772
|
size: 12
|
|
12769
12773
|
}))));
|
|
@@ -12774,33 +12778,33 @@ const UserMenuDropdown = _ref => {
|
|
|
12774
12778
|
sections,
|
|
12775
12779
|
height = 40
|
|
12776
12780
|
} = _ref;
|
|
12777
|
-
return /*#__PURE__*/
|
|
12781
|
+
return /*#__PURE__*/React__default.createElement(Menu.Dropdown, null, sections.map((section, index) => {
|
|
12778
12782
|
const items = [];
|
|
12779
|
-
const sectionItems = section.items.map((item, key) => /*#__PURE__*/
|
|
12783
|
+
const sectionItems = section.items.map((item, key) => /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
12780
12784
|
c: section?.color,
|
|
12781
12785
|
key: `menu-item-${key}`,
|
|
12782
12786
|
h: height,
|
|
12783
|
-
leftSection: /*#__PURE__*/
|
|
12787
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, _extends({}, item.icon, {
|
|
12784
12788
|
stroke: 0.5
|
|
12785
12789
|
})),
|
|
12786
|
-
rightSection: item?.disclosure ? /*#__PURE__*/
|
|
12790
|
+
rightSection: item?.disclosure ? /*#__PURE__*/React__default.createElement(Icons, {
|
|
12787
12791
|
name: "ArrowRight2",
|
|
12788
12792
|
size: 12,
|
|
12789
12793
|
stroke: 0.5
|
|
12790
|
-
}) : item.badge ? /*#__PURE__*/
|
|
12794
|
+
}) : item.badge ? /*#__PURE__*/React__default.createElement(Badge, {
|
|
12791
12795
|
color: item?.badge?.color,
|
|
12792
12796
|
size: "sm"
|
|
12793
12797
|
}, item?.badge?.text) : undefined,
|
|
12794
12798
|
onClick: () => item.callbackFn ? item.callbackFn() : void 0
|
|
12795
|
-
}, /*#__PURE__*/
|
|
12799
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
12796
12800
|
size: "xs",
|
|
12797
12801
|
fw: 300
|
|
12798
12802
|
}, item.label)));
|
|
12799
|
-
if (index) items.push(/*#__PURE__*/
|
|
12803
|
+
if (index) items.push(/*#__PURE__*/React__default.createElement(Divider, {
|
|
12800
12804
|
key: `divider-${index}`,
|
|
12801
12805
|
my: 2
|
|
12802
12806
|
}));
|
|
12803
|
-
if (section?.title) items.push(/*#__PURE__*/
|
|
12807
|
+
if (section?.title) items.push(/*#__PURE__*/React__default.createElement(Menu.Label, {
|
|
12804
12808
|
fz: 10,
|
|
12805
12809
|
fw: 500,
|
|
12806
12810
|
c: "dimmed",
|
|
@@ -12820,7 +12824,7 @@ const UserMenu = _ref => {
|
|
|
12820
12824
|
avatar,
|
|
12821
12825
|
sections
|
|
12822
12826
|
} = _ref;
|
|
12823
|
-
return /*#__PURE__*/
|
|
12827
|
+
return /*#__PURE__*/React__default.createElement(Menu, {
|
|
12824
12828
|
width: width || 250,
|
|
12825
12829
|
transitionProps: {
|
|
12826
12830
|
transition: "pop"
|
|
@@ -12831,11 +12835,11 @@ const UserMenu = _ref => {
|
|
|
12831
12835
|
offset: 5,
|
|
12832
12836
|
arrowOffset: 20,
|
|
12833
12837
|
arrowSize: 10
|
|
12834
|
-
}, /*#__PURE__*/
|
|
12838
|
+
}, /*#__PURE__*/React__default.createElement(UserMenuTarget, {
|
|
12835
12839
|
name,
|
|
12836
12840
|
username,
|
|
12837
12841
|
avatar
|
|
12838
|
-
}), /*#__PURE__*/
|
|
12842
|
+
}), /*#__PURE__*/React__default.createElement(UserMenuDropdown, {
|
|
12839
12843
|
sections,
|
|
12840
12844
|
height
|
|
12841
12845
|
}));
|
|
@@ -12849,7 +12853,7 @@ const SideMenu = _ref => {
|
|
|
12849
12853
|
sidemenu,
|
|
12850
12854
|
onClick
|
|
12851
12855
|
} = _ref;
|
|
12852
|
-
return /*#__PURE__*/
|
|
12856
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, sidemenu.map(item => /*#__PURE__*/React__default.createElement(NavLink, {
|
|
12853
12857
|
className: "backoffice-sidemenu",
|
|
12854
12858
|
mt: "sm",
|
|
12855
12859
|
component: Link,
|
|
@@ -12861,10 +12865,10 @@ const SideMenu = _ref => {
|
|
|
12861
12865
|
active: item.active,
|
|
12862
12866
|
variant,
|
|
12863
12867
|
onClick,
|
|
12864
|
-
leftSection: item.icon ? /*#__PURE__*/
|
|
12868
|
+
leftSection: item.icon ? /*#__PURE__*/React__default.createElement(Icons, item.icon) : undefined,
|
|
12865
12869
|
label: item.label,
|
|
12866
12870
|
to: item.children?.length ? "#" : item?.href || "#"
|
|
12867
|
-
}, item.children?.length ? item.children.map(subitem => /*#__PURE__*/
|
|
12871
|
+
}, item.children?.length ? item.children.map(subitem => /*#__PURE__*/React__default.createElement(NavLink, {
|
|
12868
12872
|
mt: "xs",
|
|
12869
12873
|
component: Link,
|
|
12870
12874
|
to: subitem.href || "#",
|
|
@@ -12889,7 +12893,7 @@ const SimplePanel = _ref => {
|
|
|
12889
12893
|
children,
|
|
12890
12894
|
...rest
|
|
12891
12895
|
} = _ref;
|
|
12892
|
-
return /*#__PURE__*/
|
|
12896
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({
|
|
12893
12897
|
p: !withPadding ? 0 : "md",
|
|
12894
12898
|
radius: !withRadius ? 0 : "lg",
|
|
12895
12899
|
flex: autoHeight ? 1 : "none"
|
|
@@ -12902,34 +12906,34 @@ const TitledPanel = _ref2 => {
|
|
|
12902
12906
|
children,
|
|
12903
12907
|
...rest
|
|
12904
12908
|
} = _ref2;
|
|
12905
|
-
return /*#__PURE__*/
|
|
12909
|
+
return /*#__PURE__*/React__default.createElement(SimplePanel, _extends({}, rest, {
|
|
12906
12910
|
withPadding: withPadding
|
|
12907
|
-
}), /*#__PURE__*/
|
|
12911
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
12908
12912
|
h: 48,
|
|
12909
12913
|
px: withPadding ? 0 : "md",
|
|
12910
12914
|
mt: !withPadding ? "md" : 0,
|
|
12911
12915
|
justify: "space-between"
|
|
12912
|
-
}, /*#__PURE__*/
|
|
12916
|
+
}, /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Center, {
|
|
12913
12917
|
bg: "gray.1",
|
|
12914
12918
|
w: 32,
|
|
12915
12919
|
h: 32,
|
|
12916
12920
|
style: {
|
|
12917
12921
|
borderRadius: "50%"
|
|
12918
12922
|
}
|
|
12919
|
-
}, /*#__PURE__*/
|
|
12923
|
+
}, /*#__PURE__*/React__default.createElement(Icons, _extends({}, title.icon, {
|
|
12920
12924
|
size: 20,
|
|
12921
12925
|
variant: "Bulk"
|
|
12922
|
-
}))), /*#__PURE__*/
|
|
12926
|
+
}))), /*#__PURE__*/React__default.createElement(Text, {
|
|
12923
12927
|
fw: 300
|
|
12924
|
-
}, title.label)), /*#__PURE__*/
|
|
12928
|
+
}, title.label)), /*#__PURE__*/React__default.createElement(Space, {
|
|
12925
12929
|
flex: 1
|
|
12926
|
-
}), /*#__PURE__*/
|
|
12930
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
12927
12931
|
hidden: !rest.middlesection
|
|
12928
|
-
}, rest.middlesection), /*#__PURE__*/
|
|
12932
|
+
}, rest.middlesection), /*#__PURE__*/React__default.createElement(Space, {
|
|
12929
12933
|
flex: 1
|
|
12930
|
-
}), /*#__PURE__*/
|
|
12934
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
12931
12935
|
hidden: !rest.rightsection
|
|
12932
|
-
}, rest.rightsection)), /*#__PURE__*/
|
|
12936
|
+
}, rest.rightsection)), /*#__PURE__*/React__default.createElement(Box, {
|
|
12933
12937
|
pt: !withPadding ? 0 : "md"
|
|
12934
12938
|
}, children));
|
|
12935
12939
|
};
|
|
@@ -12955,13 +12959,13 @@ const SearchPanel = _ref3 => {
|
|
|
12955
12959
|
search: search
|
|
12956
12960
|
}
|
|
12957
12961
|
});
|
|
12958
|
-
return /*#__PURE__*/
|
|
12962
|
+
return /*#__PURE__*/React__default.createElement(SimplePanel, rest, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement("form", {
|
|
12959
12963
|
onSubmit: form.onSubmit(values => {
|
|
12960
12964
|
searchFn ? searchFn(values) : void 0;
|
|
12961
12965
|
})
|
|
12962
|
-
}, /*#__PURE__*/
|
|
12966
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
12963
12967
|
gap: "xs"
|
|
12964
|
-
}, /*#__PURE__*/
|
|
12968
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
12965
12969
|
fw: 300,
|
|
12966
12970
|
name: "search",
|
|
12967
12971
|
size: "md",
|
|
@@ -12969,16 +12973,16 @@ const SearchPanel = _ref3 => {
|
|
|
12969
12973
|
flex: 1,
|
|
12970
12974
|
value: search,
|
|
12971
12975
|
placeholder: placeholder,
|
|
12972
|
-
leftSection: /*#__PURE__*/
|
|
12973
|
-
rightSection: typeof filterFn == "function" ? /*#__PURE__*/
|
|
12976
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, searchIcon),
|
|
12977
|
+
rightSection: typeof filterFn == "function" ? /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
12974
12978
|
variant: "transparent",
|
|
12975
12979
|
onClick: filterFn
|
|
12976
|
-
}, /*#__PURE__*/
|
|
12980
|
+
}, /*#__PURE__*/React__default.createElement(Icons, filterIcon)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null),
|
|
12977
12981
|
onChange: e => {
|
|
12978
12982
|
setSearch(e.currentTarget.value);
|
|
12979
12983
|
form.setFieldValue("search", e.currentTarget.value);
|
|
12980
12984
|
}
|
|
12981
|
-
}), /*#__PURE__*/
|
|
12985
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
12982
12986
|
variant: "light",
|
|
12983
12987
|
size: "md",
|
|
12984
12988
|
fw: 300,
|
|
@@ -12986,7 +12990,7 @@ const SearchPanel = _ref3 => {
|
|
|
12986
12990
|
miw: 100,
|
|
12987
12991
|
maw: 150,
|
|
12988
12992
|
type: "submit",
|
|
12989
|
-
leftSection: /*#__PURE__*/
|
|
12993
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, searchIcon)
|
|
12990
12994
|
}, searchText))), children));
|
|
12991
12995
|
};
|
|
12992
12996
|
|
|
@@ -12996,13 +13000,13 @@ const LabelPanelItem = _ref => {
|
|
|
12996
13000
|
value,
|
|
12997
13001
|
labelWidth
|
|
12998
13002
|
} = _ref;
|
|
12999
|
-
return /*#__PURE__*/
|
|
13003
|
+
return /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
13000
13004
|
fw: 300,
|
|
13001
13005
|
fz: "sm",
|
|
13002
13006
|
c: "dimmed",
|
|
13003
13007
|
w: labelWidth,
|
|
13004
13008
|
truncate: true
|
|
13005
|
-
}, label), /*#__PURE__*/
|
|
13009
|
+
}, label), /*#__PURE__*/React__default.createElement(Text, {
|
|
13006
13010
|
fw: 300,
|
|
13007
13011
|
fz: "sm",
|
|
13008
13012
|
truncate: true
|
|
@@ -13022,19 +13026,19 @@ const LabelPanel = _ref => {
|
|
|
13022
13026
|
p = "md",
|
|
13023
13027
|
...rest
|
|
13024
13028
|
} = _ref;
|
|
13025
|
-
return /*#__PURE__*/
|
|
13029
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({}, rest, {
|
|
13026
13030
|
withBorder,
|
|
13027
13031
|
radius,
|
|
13028
13032
|
p
|
|
13029
|
-
}), /*#__PURE__*/
|
|
13033
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13030
13034
|
pb: "md"
|
|
13031
|
-
}, /*#__PURE__*/
|
|
13035
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13032
13036
|
justify: "space-between",
|
|
13033
13037
|
p: 0
|
|
13034
|
-
}, /*#__PURE__*/
|
|
13038
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13035
13039
|
order: 6,
|
|
13036
13040
|
py: "xs"
|
|
13037
|
-
}, title), /*#__PURE__*/
|
|
13041
|
+
}, title), /*#__PURE__*/React__default.createElement(Button, {
|
|
13038
13042
|
style: {
|
|
13039
13043
|
display: hasEdit ? "block" : "none"
|
|
13040
13044
|
},
|
|
@@ -13042,11 +13046,11 @@ const LabelPanel = _ref => {
|
|
|
13042
13046
|
variant: "outline",
|
|
13043
13047
|
onClick: editFn,
|
|
13044
13048
|
size: "xs",
|
|
13045
|
-
leftSection: /*#__PURE__*/
|
|
13049
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13046
13050
|
name: "Edit2"
|
|
13047
13051
|
})
|
|
13048
13052
|
}, editLabel)), items.map((item, index) => {
|
|
13049
|
-
return /*#__PURE__*/
|
|
13053
|
+
return /*#__PURE__*/React__default.createElement(LabelPanelItem, _extends({
|
|
13050
13054
|
key: `label-item-${index}`
|
|
13051
13055
|
}, item, {
|
|
13052
13056
|
labelWidth: labelWidth
|
|
@@ -13069,17 +13073,17 @@ const AvatarLabelPanel = _ref2 => {
|
|
|
13069
13073
|
editFn = void 0,
|
|
13070
13074
|
...rest
|
|
13071
13075
|
} = _ref2;
|
|
13072
|
-
return /*#__PURE__*/
|
|
13076
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({}, rest, {
|
|
13073
13077
|
withBorder,
|
|
13074
13078
|
radius,
|
|
13075
13079
|
p
|
|
13076
|
-
}), /*#__PURE__*/
|
|
13080
|
+
}), /*#__PURE__*/React__default.createElement(Group, {
|
|
13077
13081
|
align: "flex-start",
|
|
13078
13082
|
py: "sm"
|
|
13079
|
-
}, /*#__PURE__*/
|
|
13083
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
13080
13084
|
w: labelWidth,
|
|
13081
13085
|
pl: "md"
|
|
13082
|
-
}, /*#__PURE__*/
|
|
13086
|
+
}, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
13083
13087
|
size: avatarSize,
|
|
13084
13088
|
src: avatar,
|
|
13085
13089
|
radius: "md",
|
|
@@ -13087,29 +13091,29 @@ const AvatarLabelPanel = _ref2 => {
|
|
|
13087
13091
|
name: name,
|
|
13088
13092
|
color: "initials",
|
|
13089
13093
|
bd: "0.5px solid adiba.2"
|
|
13090
|
-
})), /*#__PURE__*/
|
|
13094
|
+
})), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13091
13095
|
py: 10,
|
|
13092
13096
|
gap: "md",
|
|
13093
13097
|
h: "100%"
|
|
13094
|
-
}, /*#__PURE__*/
|
|
13098
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13095
13099
|
fw: 500,
|
|
13096
13100
|
order: 4
|
|
13097
|
-
}, name), /*#__PURE__*/
|
|
13101
|
+
}, name), /*#__PURE__*/React__default.createElement(Text, {
|
|
13098
13102
|
fw: 300,
|
|
13099
13103
|
fz: 14
|
|
13100
|
-
}, username), /*#__PURE__*/
|
|
13104
|
+
}, username), /*#__PURE__*/React__default.createElement(Text, {
|
|
13101
13105
|
fw: 300,
|
|
13102
13106
|
fz: 14
|
|
13103
|
-
}, "Internal / ", role), /*#__PURE__*/
|
|
13107
|
+
}, "Internal / ", role), /*#__PURE__*/React__default.createElement(Text, {
|
|
13104
13108
|
fw: 300,
|
|
13105
13109
|
fz: 14
|
|
13106
|
-
}, "Last login: ", lastActive)), /*#__PURE__*/
|
|
13110
|
+
}, "Last login: ", lastActive)), /*#__PURE__*/React__default.createElement(Space, {
|
|
13107
13111
|
flex: 1
|
|
13108
|
-
}), /*#__PURE__*/
|
|
13112
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
13109
13113
|
fw: 300,
|
|
13110
13114
|
variant: "outline",
|
|
13111
13115
|
size: "xs",
|
|
13112
|
-
leftSection: /*#__PURE__*/
|
|
13116
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13113
13117
|
name: "Edit2"
|
|
13114
13118
|
}),
|
|
13115
13119
|
onClick: editFn
|
|
@@ -13122,7 +13126,7 @@ const SimpleText = _ref => {
|
|
|
13122
13126
|
smaller,
|
|
13123
13127
|
...rest
|
|
13124
13128
|
} = _ref;
|
|
13125
|
-
return /*#__PURE__*/
|
|
13129
|
+
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
13126
13130
|
fw: 300,
|
|
13127
13131
|
fz: smaller ? "90%" : undefined
|
|
13128
13132
|
}, rest), label);
|
|
@@ -13145,18 +13149,18 @@ const PageTitle = _ref => {
|
|
|
13145
13149
|
label,
|
|
13146
13150
|
...rest
|
|
13147
13151
|
} = create;
|
|
13148
|
-
rightsection = /*#__PURE__*/
|
|
13152
|
+
rightsection = /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
13149
13153
|
radius: "md",
|
|
13150
13154
|
size: "sm",
|
|
13151
|
-
leftSection: /*#__PURE__*/
|
|
13155
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, icon),
|
|
13152
13156
|
onClick: createFn
|
|
13153
|
-
}, rest), /*#__PURE__*/
|
|
13157
|
+
}, rest), /*#__PURE__*/React__default.createElement(Text, {
|
|
13154
13158
|
fw: 300,
|
|
13155
13159
|
fz: 14
|
|
13156
13160
|
}, label));
|
|
13157
13161
|
}
|
|
13158
13162
|
if (withSwitcher && switcher?.items?.length) {
|
|
13159
|
-
rightsection = /*#__PURE__*/
|
|
13163
|
+
rightsection = /*#__PURE__*/React__default.createElement(SegmentedControl, {
|
|
13160
13164
|
size: "sm",
|
|
13161
13165
|
bg: "white",
|
|
13162
13166
|
color: "adiba",
|
|
@@ -13165,34 +13169,34 @@ const PageTitle = _ref => {
|
|
|
13165
13169
|
onChange: switcher.onChange
|
|
13166
13170
|
});
|
|
13167
13171
|
}
|
|
13168
|
-
return /*#__PURE__*/
|
|
13172
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Group, {
|
|
13169
13173
|
justify: "space-between",
|
|
13170
13174
|
py: "lg"
|
|
13171
|
-
}, /*#__PURE__*/
|
|
13175
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13172
13176
|
gap: 4
|
|
13173
|
-
}, /*#__PURE__*/
|
|
13177
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13174
13178
|
order: 2,
|
|
13175
13179
|
fw: 500
|
|
13176
|
-
}, title), typeof subtitle == "string" ? /*#__PURE__*/
|
|
13180
|
+
}, title), typeof subtitle == "string" ? /*#__PURE__*/React__default.createElement(Text, {
|
|
13177
13181
|
fz: 14,
|
|
13178
13182
|
fw: 300
|
|
13179
|
-
}, subtitle) : /*#__PURE__*/
|
|
13183
|
+
}, subtitle) : /*#__PURE__*/React__default.createElement(Breadcrumbs, {
|
|
13180
13184
|
separatorMargin: "xs",
|
|
13181
13185
|
separator: "\xB7"
|
|
13182
13186
|
}, subtitle?.map((item, index) => {
|
|
13183
|
-
return index < subtitle.length - 1 ? /*#__PURE__*/
|
|
13187
|
+
return index < subtitle.length - 1 ? /*#__PURE__*/React__default.createElement(Anchor, {
|
|
13184
13188
|
key: index,
|
|
13185
13189
|
fz: 14,
|
|
13186
13190
|
fw: 400,
|
|
13187
13191
|
component: Link,
|
|
13188
13192
|
to: item.link
|
|
13189
|
-
}, item.name) : /*#__PURE__*/
|
|
13193
|
+
}, item.name) : /*#__PURE__*/React__default.createElement(Text, {
|
|
13190
13194
|
fz: 14,
|
|
13191
13195
|
key: index,
|
|
13192
13196
|
fw: 300,
|
|
13193
13197
|
c: "dimmed"
|
|
13194
13198
|
}, item.name);
|
|
13195
|
-
}))), /*#__PURE__*/
|
|
13199
|
+
}))), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, rightsection)));
|
|
13196
13200
|
};
|
|
13197
13201
|
|
|
13198
13202
|
const TitleWithIndex = _ref => {
|
|
@@ -13204,20 +13208,20 @@ const TitleWithIndex = _ref => {
|
|
|
13204
13208
|
errorLabel,
|
|
13205
13209
|
errorFn = () => void 0
|
|
13206
13210
|
} = _ref;
|
|
13207
|
-
return /*#__PURE__*/
|
|
13211
|
+
return /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Group, {
|
|
13208
13212
|
gap: "xs"
|
|
13209
|
-
}, /*#__PURE__*/
|
|
13213
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13210
13214
|
order: 3,
|
|
13211
13215
|
fw: 500
|
|
13212
|
-
}, title), /*#__PURE__*/
|
|
13216
|
+
}, title), /*#__PURE__*/React__default.createElement(Growth, growth), /*#__PURE__*/React__default.createElement(Text, {
|
|
13213
13217
|
c: "dimmed",
|
|
13214
13218
|
size: "xs",
|
|
13215
13219
|
fw: 300
|
|
13216
|
-
}, subtitle)), /*#__PURE__*/
|
|
13220
|
+
}, subtitle)), /*#__PURE__*/React__default.createElement(Space, {
|
|
13217
13221
|
flex: 1
|
|
13218
|
-
}), /*#__PURE__*/
|
|
13222
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
13219
13223
|
hidden: !hasError
|
|
13220
|
-
}, /*#__PURE__*/
|
|
13224
|
+
}, /*#__PURE__*/React__default.createElement(WidgetError, {
|
|
13221
13225
|
errorLabel: errorLabel,
|
|
13222
13226
|
errorFn: errorFn
|
|
13223
13227
|
})));
|
|
@@ -13229,16 +13233,16 @@ const Growth = _ref2 => {
|
|
|
13229
13233
|
} = _ref2;
|
|
13230
13234
|
const color = direction === "up" ? "rgb(64, 192, 87)" : "rgb(250,82,82)";
|
|
13231
13235
|
const name = direction === "up" ? "TrendUp" : "TrendDown";
|
|
13232
|
-
return /*#__PURE__*/
|
|
13236
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
13233
13237
|
c: color,
|
|
13234
13238
|
gap: 2
|
|
13235
|
-
}, /*#__PURE__*/
|
|
13239
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13236
13240
|
name: name,
|
|
13237
13241
|
color: color,
|
|
13238
13242
|
size: 12,
|
|
13239
13243
|
stroke: 2.5,
|
|
13240
13244
|
variant: "Bold"
|
|
13241
|
-
}), /*#__PURE__*/
|
|
13245
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
13242
13246
|
size: "xs",
|
|
13243
13247
|
fw: 500
|
|
13244
13248
|
}, text));
|
|
@@ -13248,10 +13252,10 @@ const WidgetError = _ref3 => {
|
|
|
13248
13252
|
errorLabel,
|
|
13249
13253
|
errorFn
|
|
13250
13254
|
} = _ref3;
|
|
13251
|
-
return /*#__PURE__*/
|
|
13255
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
13252
13256
|
size: "sm",
|
|
13253
13257
|
variant: "transparent",
|
|
13254
|
-
leftSection: /*#__PURE__*/
|
|
13258
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13255
13259
|
name: "Danger",
|
|
13256
13260
|
color: "rgb(250,82,82",
|
|
13257
13261
|
stroke: 1.5
|
|
@@ -13268,11 +13272,11 @@ const ConnectionPanelDetail = _ref => {
|
|
|
13268
13272
|
value,
|
|
13269
13273
|
altColor
|
|
13270
13274
|
} = _ref;
|
|
13271
|
-
return /*#__PURE__*/
|
|
13275
|
+
return /*#__PURE__*/React__default.createElement(Group, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
13272
13276
|
w: 100,
|
|
13273
13277
|
fw: 300,
|
|
13274
13278
|
fz: "xs"
|
|
13275
|
-
}, label), /*#__PURE__*/
|
|
13279
|
+
}, label), /*#__PURE__*/React__default.createElement(Text, {
|
|
13276
13280
|
fw: 300,
|
|
13277
13281
|
fz: "sm",
|
|
13278
13282
|
c: altColor
|
|
@@ -13292,35 +13296,35 @@ const ConnectionPanel = _ref => {
|
|
|
13292
13296
|
altColor,
|
|
13293
13297
|
...rest
|
|
13294
13298
|
} = _ref;
|
|
13295
|
-
return /*#__PURE__*/
|
|
13299
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
13296
13300
|
withBorder: true,
|
|
13297
13301
|
bg: "gray.0",
|
|
13298
13302
|
p: "lg",
|
|
13299
13303
|
radius: "md",
|
|
13300
13304
|
color: "red"
|
|
13301
|
-
}, /*#__PURE__*/
|
|
13305
|
+
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Group, {
|
|
13302
13306
|
align: "flex-start"
|
|
13303
|
-
}, /*#__PURE__*/
|
|
13307
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13304
13308
|
size: 48,
|
|
13305
13309
|
name: "Driver",
|
|
13306
13310
|
stroke: "0.5"
|
|
13307
|
-
}), /*#__PURE__*/
|
|
13311
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13308
13312
|
gap: 5
|
|
13309
|
-
}, /*#__PURE__*/
|
|
13313
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13310
13314
|
fw: 400,
|
|
13311
13315
|
order: 6
|
|
13312
|
-
}, name), /*#__PURE__*/
|
|
13316
|
+
}, name), /*#__PURE__*/React__default.createElement(Group, {
|
|
13313
13317
|
justify: "flex-start",
|
|
13314
13318
|
gap: 5
|
|
13315
|
-
}, /*#__PURE__*/
|
|
13319
|
+
}, /*#__PURE__*/React__default.createElement(ColorSwatch, {
|
|
13316
13320
|
size: 12,
|
|
13317
13321
|
color: statusColor
|
|
13318
|
-
}), /*#__PURE__*/
|
|
13322
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
13319
13323
|
fw: 300,
|
|
13320
13324
|
fz: "xs"
|
|
13321
|
-
}, status))), /*#__PURE__*/
|
|
13325
|
+
}, status))), /*#__PURE__*/React__default.createElement(Space, {
|
|
13322
13326
|
flex: 1
|
|
13323
|
-
}), /*#__PURE__*/
|
|
13327
|
+
}), /*#__PURE__*/React__default.createElement(Menu, {
|
|
13324
13328
|
width: 190,
|
|
13325
13329
|
transitionProps: {
|
|
13326
13330
|
transition: "pop"
|
|
@@ -13329,55 +13333,55 @@ const ConnectionPanel = _ref => {
|
|
|
13329
13333
|
withArrow: true,
|
|
13330
13334
|
withinPortal: true,
|
|
13331
13335
|
arrowSize: 20
|
|
13332
|
-
}, /*#__PURE__*/
|
|
13336
|
+
}, /*#__PURE__*/React__default.createElement(Menu.Target, null, /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
13333
13337
|
variant: "subtle",
|
|
13334
13338
|
m: 0
|
|
13335
|
-
}, /*#__PURE__*/
|
|
13339
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13336
13340
|
name: "More"
|
|
13337
|
-
}))), /*#__PURE__*/
|
|
13341
|
+
}))), /*#__PURE__*/React__default.createElement(Menu.Dropdown, null, /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
13338
13342
|
h: 40,
|
|
13339
13343
|
onClick: edit.onClick,
|
|
13340
|
-
rightSection: /*#__PURE__*/
|
|
13344
|
+
rightSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13341
13345
|
name: "ArrowRight2"
|
|
13342
13346
|
}),
|
|
13343
13347
|
"data-index": id
|
|
13344
|
-
}, /*#__PURE__*/
|
|
13348
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13345
13349
|
size: "xs",
|
|
13346
13350
|
fw: 300
|
|
13347
|
-
}, edit.label)), /*#__PURE__*/
|
|
13351
|
+
}, edit.label)), /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
13348
13352
|
h: 40,
|
|
13349
13353
|
onClick: test.onClick,
|
|
13350
|
-
rightSection: /*#__PURE__*/
|
|
13354
|
+
rightSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13351
13355
|
name: "ArrowRight2"
|
|
13352
13356
|
}),
|
|
13353
13357
|
"data-index": id
|
|
13354
|
-
}, /*#__PURE__*/
|
|
13358
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13355
13359
|
size: "xs",
|
|
13356
13360
|
fw: 300
|
|
13357
|
-
}, test.label)), /*#__PURE__*/
|
|
13361
|
+
}, test.label)), /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(Menu.Item, {
|
|
13358
13362
|
h: 40,
|
|
13359
13363
|
onClick: pause.onClick,
|
|
13360
13364
|
c: "red",
|
|
13361
|
-
leftSection: /*#__PURE__*/
|
|
13365
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13362
13366
|
name: "PauseCircle",
|
|
13363
13367
|
color: "red"
|
|
13364
13368
|
}),
|
|
13365
13369
|
"data-index": id
|
|
13366
|
-
}, /*#__PURE__*/
|
|
13370
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13367
13371
|
size: "xs",
|
|
13368
13372
|
fw: 300
|
|
13369
|
-
}, pause.label))))), /*#__PURE__*/
|
|
13373
|
+
}, pause.label))))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13370
13374
|
style: {
|
|
13371
13375
|
borderTop: "1px solid #ddd"
|
|
13372
13376
|
}
|
|
13373
|
-
}, /*#__PURE__*/
|
|
13377
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13374
13378
|
mt: 0,
|
|
13375
13379
|
bg: "white",
|
|
13376
13380
|
p: "md",
|
|
13377
13381
|
gap: "lg",
|
|
13378
13382
|
py: "lg"
|
|
13379
13383
|
}, details.map((item, index) => {
|
|
13380
|
-
return /*#__PURE__*/
|
|
13384
|
+
return /*#__PURE__*/React__default.createElement(ConnectionPanelDetail, _extends({
|
|
13381
13385
|
key: `detail-${index}`
|
|
13382
13386
|
}, item, {
|
|
13383
13387
|
altColor: altColor
|
|
@@ -13392,13 +13396,13 @@ const ApplicationPanelFeatures = _ref => {
|
|
|
13392
13396
|
label,
|
|
13393
13397
|
icon
|
|
13394
13398
|
} = _ref;
|
|
13395
|
-
return /*#__PURE__*/
|
|
13399
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
13396
13400
|
gap: "xs"
|
|
13397
|
-
}, /*#__PURE__*/
|
|
13401
|
+
}, /*#__PURE__*/React__default.createElement(Icons, _extends({}, icon, {
|
|
13398
13402
|
color: "#aaa",
|
|
13399
13403
|
variant: "Bulk",
|
|
13400
13404
|
stroke: 1.5
|
|
13401
|
-
})), /*#__PURE__*/
|
|
13405
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
13402
13406
|
fw: 300,
|
|
13403
13407
|
c: "altiba",
|
|
13404
13408
|
size: "12px",
|
|
@@ -13423,39 +13427,39 @@ const ApplicationPanel = _ref => {
|
|
|
13423
13427
|
onClick = () => void 0,
|
|
13424
13428
|
...rest
|
|
13425
13429
|
} = _ref;
|
|
13426
|
-
return /*#__PURE__*/
|
|
13430
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({
|
|
13427
13431
|
withBorder: true,
|
|
13428
13432
|
radius: "md"
|
|
13429
|
-
}, rest), /*#__PURE__*/
|
|
13433
|
+
}, rest), /*#__PURE__*/React__default.createElement(Card.Section, null, /*#__PURE__*/React__default.createElement(AspectRatio, {
|
|
13430
13434
|
ratio: 3 / 2
|
|
13431
|
-
}, /*#__PURE__*/
|
|
13435
|
+
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
13432
13436
|
alt: name,
|
|
13433
13437
|
src: coverImage,
|
|
13434
13438
|
fallbackSrc: img$a
|
|
13435
|
-
}), /*#__PURE__*/
|
|
13439
|
+
}), /*#__PURE__*/React__default.createElement(Overlay, {
|
|
13436
13440
|
gradient: "linear-gradient(45deg, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.05) 100%)"
|
|
13437
|
-
}))), /*#__PURE__*/
|
|
13441
|
+
}))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13438
13442
|
p: "md"
|
|
13439
|
-
}, /*#__PURE__*/
|
|
13443
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13440
13444
|
gap: "sm"
|
|
13441
|
-
}, /*#__PURE__*/
|
|
13445
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13442
13446
|
justify: "space-between"
|
|
13443
|
-
}, /*#__PURE__*/
|
|
13447
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13444
13448
|
fw: 400
|
|
13445
|
-
}, name), /*#__PURE__*/
|
|
13449
|
+
}, name), /*#__PURE__*/React__default.createElement(Badge, {
|
|
13446
13450
|
style: {
|
|
13447
13451
|
display: String(discount).length > 1 ? "block" : "none"
|
|
13448
13452
|
},
|
|
13449
13453
|
fw: 300,
|
|
13450
13454
|
variant: "outline"
|
|
13451
|
-
}, discount)), /*#__PURE__*/
|
|
13455
|
+
}, discount)), /*#__PURE__*/React__default.createElement(Text, {
|
|
13452
13456
|
fw: 300,
|
|
13453
13457
|
fz: "sm",
|
|
13454
13458
|
lineClamp: 3
|
|
13455
|
-
}, summary))), /*#__PURE__*/
|
|
13459
|
+
}, summary))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13456
13460
|
p: "md",
|
|
13457
13461
|
pt: 0
|
|
13458
|
-
}, /*#__PURE__*/
|
|
13462
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13459
13463
|
fz: "xs",
|
|
13460
13464
|
c: "gray.5",
|
|
13461
13465
|
mb: "xs",
|
|
@@ -13463,26 +13467,26 @@ const ApplicationPanel = _ref => {
|
|
|
13463
13467
|
fw: 500,
|
|
13464
13468
|
lts: rem("-0.25px"),
|
|
13465
13469
|
tt: "uppercase"
|
|
13466
|
-
}, featureLabel), /*#__PURE__*/
|
|
13470
|
+
}, featureLabel), /*#__PURE__*/React__default.createElement(SimpleGrid, {
|
|
13467
13471
|
cols: 1,
|
|
13468
13472
|
spacing: "xs",
|
|
13469
13473
|
verticalSpacing: "xs"
|
|
13470
13474
|
}, features.map((feature, index) => {
|
|
13471
|
-
return /*#__PURE__*/
|
|
13475
|
+
return /*#__PURE__*/React__default.createElement(ApplicationPanelFeatures, _extends({
|
|
13472
13476
|
key: index
|
|
13473
13477
|
}, feature));
|
|
13474
|
-
}))), /*#__PURE__*/
|
|
13478
|
+
}))), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13475
13479
|
p: "md"
|
|
13476
|
-
}, /*#__PURE__*/
|
|
13480
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13477
13481
|
gap: 30,
|
|
13478
13482
|
justify: "space-between"
|
|
13479
|
-
}, /*#__PURE__*/
|
|
13483
|
+
}, /*#__PURE__*/React__default.createElement(Box, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
13480
13484
|
fz: "lg",
|
|
13481
13485
|
fw: 500,
|
|
13482
13486
|
style: {
|
|
13483
13487
|
lineHeight: 1
|
|
13484
13488
|
}
|
|
13485
|
-
}, amount), /*#__PURE__*/
|
|
13489
|
+
}, amount), /*#__PURE__*/React__default.createElement(Text, {
|
|
13486
13490
|
fz: "xs",
|
|
13487
13491
|
c: "dimmed",
|
|
13488
13492
|
fw: 300,
|
|
@@ -13490,19 +13494,19 @@ const ApplicationPanel = _ref => {
|
|
|
13490
13494
|
lineHeight: 1
|
|
13491
13495
|
},
|
|
13492
13496
|
mt: 3
|
|
13493
|
-
}, `per ${frequency}`)), /*#__PURE__*/
|
|
13497
|
+
}, `per ${frequency}`)), /*#__PURE__*/React__default.createElement(Box, {
|
|
13494
13498
|
hidden: subscribed
|
|
13495
|
-
}, /*#__PURE__*/
|
|
13499
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
13496
13500
|
fw: 300,
|
|
13497
|
-
leftSection: /*#__PURE__*/
|
|
13501
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13498
13502
|
name: "AddCircle"
|
|
13499
13503
|
}),
|
|
13500
13504
|
radius: "md",
|
|
13501
13505
|
onClick: onClick
|
|
13502
|
-
}, actionLabel)), /*#__PURE__*/
|
|
13506
|
+
}, actionLabel)), /*#__PURE__*/React__default.createElement(Box, {
|
|
13503
13507
|
hidden: !subscribed
|
|
13504
|
-
}, /*#__PURE__*/
|
|
13505
|
-
leftSection: /*#__PURE__*/
|
|
13508
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
13509
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13506
13510
|
name: "TickCircle"
|
|
13507
13511
|
}),
|
|
13508
13512
|
fw: 300,
|
|
@@ -13524,40 +13528,40 @@ const SubscriptionPlans = _ref => {
|
|
|
13524
13528
|
onClick
|
|
13525
13529
|
} = _ref;
|
|
13526
13530
|
const price = planPrice.split("/");
|
|
13527
|
-
return /*#__PURE__*/
|
|
13531
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
13528
13532
|
size: 20,
|
|
13529
|
-
label: /*#__PURE__*/
|
|
13533
|
+
label: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13530
13534
|
name: "TickCircle",
|
|
13531
13535
|
size: 18,
|
|
13532
13536
|
stroke: 1
|
|
13533
13537
|
}),
|
|
13534
13538
|
disabled: !isActive,
|
|
13535
13539
|
className: "payment-plan"
|
|
13536
|
-
}, /*#__PURE__*/
|
|
13540
|
+
}, /*#__PURE__*/React__default.createElement(Card, {
|
|
13537
13541
|
bg: isActive ? "gray.1" : "white",
|
|
13538
13542
|
p: "md",
|
|
13539
13543
|
radius: "sm",
|
|
13540
13544
|
withBorder: true
|
|
13541
|
-
}, /*#__PURE__*/
|
|
13545
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13542
13546
|
gap: "xl"
|
|
13543
|
-
}, /*#__PURE__*/
|
|
13547
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13544
13548
|
justify: "space-between",
|
|
13545
13549
|
align: "flex-start"
|
|
13546
|
-
}, /*#__PURE__*/
|
|
13550
|
+
}, /*#__PURE__*/React__default.createElement(Box, null, /*#__PURE__*/React__default.createElement(Title, {
|
|
13547
13551
|
order: 6,
|
|
13548
13552
|
fw: 500
|
|
13549
|
-
}, title), /*#__PURE__*/
|
|
13553
|
+
}, title), /*#__PURE__*/React__default.createElement(Text, {
|
|
13550
13554
|
fz: "xs",
|
|
13551
13555
|
c: altColor,
|
|
13552
13556
|
fw: 300
|
|
13553
|
-
}, durationDays, " ", isActive ? " days remaining" : " days")), /*#__PURE__*/
|
|
13557
|
+
}, durationDays, " ", isActive ? " days remaining" : " days")), /*#__PURE__*/React__default.createElement(Text, {
|
|
13554
13558
|
fz: "sm",
|
|
13555
13559
|
fw: 500
|
|
13556
|
-
}, price[0], /*#__PURE__*/
|
|
13560
|
+
}, price[0], /*#__PURE__*/React__default.createElement(Text, {
|
|
13557
13561
|
fz: "sm",
|
|
13558
13562
|
component: "span",
|
|
13559
13563
|
c: "dimmed"
|
|
13560
|
-
}, price[1] ? `/${price[1]}` : " /month"))), /*#__PURE__*/
|
|
13564
|
+
}, price[1] ? `/${price[1]}` : " /month"))), /*#__PURE__*/React__default.createElement(Button, {
|
|
13561
13565
|
w: 100,
|
|
13562
13566
|
size: "xs",
|
|
13563
13567
|
fw: 500,
|
|
@@ -13583,74 +13587,74 @@ const PaymentMethod = _ref => {
|
|
|
13583
13587
|
type,
|
|
13584
13588
|
exp
|
|
13585
13589
|
} = _ref;
|
|
13586
|
-
return /*#__PURE__*/
|
|
13590
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
13587
13591
|
withBorder: true,
|
|
13588
13592
|
radius: "md",
|
|
13589
13593
|
p: 0,
|
|
13590
13594
|
bg: isActive ? "gray.1" : "white",
|
|
13591
13595
|
w: 330
|
|
13592
|
-
}, /*#__PURE__*/
|
|
13596
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13593
13597
|
gap: "md",
|
|
13594
13598
|
px: "sm"
|
|
13595
|
-
}, /*#__PURE__*/
|
|
13599
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
13596
13600
|
h: 88,
|
|
13597
13601
|
w: 80
|
|
13598
|
-
}, logo[type]), /*#__PURE__*/
|
|
13602
|
+
}, logo[type]), /*#__PURE__*/React__default.createElement(Stack, {
|
|
13599
13603
|
gap: 3
|
|
13600
|
-
}, /*#__PURE__*/
|
|
13604
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13601
13605
|
fz: 14,
|
|
13602
13606
|
tt: "uppercase",
|
|
13603
13607
|
fw: 500
|
|
13604
|
-
}, `**** **** **** ${pan}`), /*#__PURE__*/
|
|
13608
|
+
}, `**** **** **** ${pan}`), /*#__PURE__*/React__default.createElement(Group, {
|
|
13605
13609
|
c: "dimmed"
|
|
13606
|
-
}, /*#__PURE__*/
|
|
13610
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
13607
13611
|
tt: "capitalize",
|
|
13608
13612
|
fw: 300,
|
|
13609
13613
|
size: "xs"
|
|
13610
|
-
}, type), /*#__PURE__*/
|
|
13614
|
+
}, type), /*#__PURE__*/React__default.createElement(Text, {
|
|
13611
13615
|
fw: 300,
|
|
13612
13616
|
size: "sm"
|
|
13613
|
-
}, exp))), /*#__PURE__*/
|
|
13617
|
+
}, exp))), /*#__PURE__*/React__default.createElement(Space, {
|
|
13614
13618
|
flex: 1
|
|
13615
|
-
}), /*#__PURE__*/
|
|
13619
|
+
}), /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
13616
13620
|
variant: "subtle",
|
|
13617
13621
|
disabled: isActive
|
|
13618
|
-
}, !isActive ? /*#__PURE__*/
|
|
13622
|
+
}, !isActive ? /*#__PURE__*/React__default.createElement(Icons, {
|
|
13619
13623
|
name: "Record"
|
|
13620
|
-
}) : /*#__PURE__*/
|
|
13624
|
+
}) : /*#__PURE__*/React__default.createElement(Icons, {
|
|
13621
13625
|
name: "TickCircle"
|
|
13622
13626
|
}))));
|
|
13623
13627
|
};
|
|
13624
13628
|
const logo = {
|
|
13625
|
-
mastercard: /*#__PURE__*/
|
|
13629
|
+
mastercard: /*#__PURE__*/React__default.createElement(Image, {
|
|
13626
13630
|
height: 60,
|
|
13627
13631
|
src: img$7
|
|
13628
13632
|
}),
|
|
13629
|
-
visa: /*#__PURE__*/
|
|
13633
|
+
visa: /*#__PURE__*/React__default.createElement(Image, {
|
|
13630
13634
|
height: 60,
|
|
13631
13635
|
src: img$8
|
|
13632
13636
|
}),
|
|
13633
|
-
amex: /*#__PURE__*/
|
|
13637
|
+
amex: /*#__PURE__*/React__default.createElement(Image, {
|
|
13634
13638
|
height: 60,
|
|
13635
13639
|
src: img$9
|
|
13636
13640
|
}),
|
|
13637
|
-
paypal: /*#__PURE__*/
|
|
13641
|
+
paypal: /*#__PURE__*/React__default.createElement(Image, {
|
|
13638
13642
|
height: 60,
|
|
13639
13643
|
src: img$6
|
|
13640
13644
|
}),
|
|
13641
|
-
verve: /*#__PURE__*/
|
|
13645
|
+
verve: /*#__PURE__*/React__default.createElement(Image, {
|
|
13642
13646
|
height: 60,
|
|
13643
13647
|
src: img$5
|
|
13644
13648
|
})
|
|
13645
13649
|
};
|
|
13646
13650
|
const PaymentMethodAdd = () => {
|
|
13647
|
-
return /*#__PURE__*/
|
|
13651
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
13648
13652
|
align: "center"
|
|
13649
|
-
}, /*#__PURE__*/
|
|
13653
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
13650
13654
|
variant: "outline",
|
|
13651
13655
|
w: 60,
|
|
13652
13656
|
h: 60
|
|
13653
|
-
}, /*#__PURE__*/
|
|
13657
|
+
}, /*#__PURE__*/React__default.createElement(Icons, {
|
|
13654
13658
|
name: "Add",
|
|
13655
13659
|
size: 60,
|
|
13656
13660
|
stroke: 1
|
|
@@ -13662,7 +13666,7 @@ const SimpleHeader = _ref => {
|
|
|
13662
13666
|
id,
|
|
13663
13667
|
label
|
|
13664
13668
|
} = _ref;
|
|
13665
|
-
return /*#__PURE__*/
|
|
13669
|
+
return /*#__PURE__*/React__default.createElement(Table.Th, {
|
|
13666
13670
|
fw: 500,
|
|
13667
13671
|
id: id,
|
|
13668
13672
|
fz: "xs",
|
|
@@ -13687,13 +13691,13 @@ const SimpleBody = _ref => {
|
|
|
13687
13691
|
if (withIndex) {
|
|
13688
13692
|
row["index"] = `${index ? index + 1 : 1}`;
|
|
13689
13693
|
}
|
|
13690
|
-
return /*#__PURE__*/
|
|
13694
|
+
return /*#__PURE__*/React__default.createElement(Table.Tr, {
|
|
13691
13695
|
fw: 300,
|
|
13692
13696
|
fz: "sm",
|
|
13693
13697
|
h: 50
|
|
13694
13698
|
}, columns.map((column, idx) => {
|
|
13695
13699
|
const columnIndex = column.id;
|
|
13696
|
-
return /*#__PURE__*/
|
|
13700
|
+
return /*#__PURE__*/React__default.createElement(Table.Td, {
|
|
13697
13701
|
key: idx
|
|
13698
13702
|
}, typeof row[columnIndex] === "function" ? row[columnIndex](`${index}`) : row[columnIndex] || "");
|
|
13699
13703
|
}));
|
|
@@ -13727,14 +13731,14 @@ const SimpleTable = _ref => {
|
|
|
13727
13731
|
withRowBorders: false,
|
|
13728
13732
|
verticalSpacing: "md"
|
|
13729
13733
|
};
|
|
13730
|
-
return /*#__PURE__*/
|
|
13734
|
+
return /*#__PURE__*/React__default.createElement(Table, isStriped && isStripedProps, /*#__PURE__*/React__default.createElement(Table.Thead, null, /*#__PURE__*/React__default.createElement(Table.Tr, {
|
|
13731
13735
|
bg: isStriped ? "gray.1" : "transparent"
|
|
13732
13736
|
}, columns.map((column, index) => {
|
|
13733
|
-
return /*#__PURE__*/
|
|
13737
|
+
return /*#__PURE__*/React__default.createElement(SimpleHeader, _extends({
|
|
13734
13738
|
key: `column-${index}`
|
|
13735
13739
|
}, column));
|
|
13736
|
-
}))), /*#__PURE__*/
|
|
13737
|
-
return /*#__PURE__*/
|
|
13740
|
+
}))), /*#__PURE__*/React__default.createElement(Table.Tbody, null, rows.map((row, index) => {
|
|
13741
|
+
return /*#__PURE__*/React__default.createElement(SimpleBody, {
|
|
13738
13742
|
key: index,
|
|
13739
13743
|
row,
|
|
13740
13744
|
columns,
|
|
@@ -13779,29 +13783,29 @@ const File = _ref => {
|
|
|
13779
13783
|
} = _ref;
|
|
13780
13784
|
const isChip = shape == "chip";
|
|
13781
13785
|
const radius = isChip ? "md" : "sm";
|
|
13782
|
-
return /*#__PURE__*/
|
|
13786
|
+
return /*#__PURE__*/React__default.createElement(Card, _extends({}, rest, {
|
|
13783
13787
|
radius,
|
|
13784
13788
|
w,
|
|
13785
13789
|
bg,
|
|
13786
13790
|
bd
|
|
13787
|
-
}), /*#__PURE__*/
|
|
13791
|
+
}), /*#__PURE__*/React__default.createElement(Card.Section, {
|
|
13788
13792
|
p: isChip ? "xs" : undefined
|
|
13789
|
-
}, /*#__PURE__*/
|
|
13793
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
13790
13794
|
justify: isChip ? "space-between" : undefined,
|
|
13791
13795
|
gap: "xs"
|
|
13792
|
-
}, /*#__PURE__*/
|
|
13796
|
+
}, /*#__PURE__*/React__default.createElement(Image, {
|
|
13793
13797
|
p: isChip ? undefined : "xs",
|
|
13794
13798
|
pr: 2,
|
|
13795
13799
|
h: isChip ? CHIP_HEIGHT : TILE_HEIGHT,
|
|
13796
13800
|
w: isChip ? CHIP_WIDTH : TILE_WIDTH,
|
|
13797
13801
|
alt: shape,
|
|
13798
13802
|
fallbackSrc: ICON[type]
|
|
13799
|
-
}), rest.children, /*#__PURE__*/
|
|
13803
|
+
}), rest.children, /*#__PURE__*/React__default.createElement(Space, {
|
|
13800
13804
|
flex: 1
|
|
13801
|
-
}), rightsection ? /*#__PURE__*/
|
|
13805
|
+
}), rightsection ? /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
13802
13806
|
variant: "transparent",
|
|
13803
13807
|
onClick: rightsection.onClick
|
|
13804
|
-
}, /*#__PURE__*/
|
|
13808
|
+
}, /*#__PURE__*/React__default.createElement(Icons, rightsection?.icon)) : undefined)));
|
|
13805
13809
|
};
|
|
13806
13810
|
|
|
13807
13811
|
const theme = createTheme({
|
|
@@ -13831,21 +13835,21 @@ const ErrorModal = _ref => {
|
|
|
13831
13835
|
id,
|
|
13832
13836
|
innerProps
|
|
13833
13837
|
} = _ref;
|
|
13834
|
-
return /*#__PURE__*/
|
|
13838
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13835
13839
|
align: "center",
|
|
13836
13840
|
py: "md"
|
|
13837
|
-
}, /*#__PURE__*/
|
|
13841
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
13838
13842
|
w: 170,
|
|
13839
13843
|
h: 170
|
|
13840
|
-
}, /*#__PURE__*/
|
|
13844
|
+
}, /*#__PURE__*/React__default.createElement(DotLottieReact, {
|
|
13841
13845
|
speed: 0.5,
|
|
13842
13846
|
src: ErrorAnimation,
|
|
13843
13847
|
loop: false,
|
|
13844
13848
|
autoplay: true
|
|
13845
|
-
})), /*#__PURE__*/
|
|
13849
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
13846
13850
|
fw: 300,
|
|
13847
13851
|
ta: "center"
|
|
13848
|
-
}, innerProps.modalBody)), /*#__PURE__*/
|
|
13852
|
+
}, innerProps.modalBody)), /*#__PURE__*/React__default.createElement(Button, {
|
|
13849
13853
|
radius: "xl",
|
|
13850
13854
|
fw: 300,
|
|
13851
13855
|
size: "md",
|
|
@@ -13863,9 +13867,9 @@ const InfoModal = _ref => {
|
|
|
13863
13867
|
id,
|
|
13864
13868
|
innerProps
|
|
13865
13869
|
} = _ref;
|
|
13866
|
-
return /*#__PURE__*/
|
|
13870
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Text, {
|
|
13867
13871
|
size: "sm"
|
|
13868
|
-
}, innerProps.modalBody), /*#__PURE__*/
|
|
13872
|
+
}, innerProps.modalBody), /*#__PURE__*/React__default.createElement(Button, {
|
|
13869
13873
|
fullWidth: true,
|
|
13870
13874
|
mt: "md",
|
|
13871
13875
|
onClick: () => context.closeModal(id)
|
|
@@ -13879,17 +13883,17 @@ const SimpleModal = _ref => {
|
|
|
13879
13883
|
innerProps,
|
|
13880
13884
|
...rest
|
|
13881
13885
|
} = _ref;
|
|
13882
|
-
return /*#__PURE__*/
|
|
13886
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
13883
13887
|
pt: "lg",
|
|
13884
13888
|
gap: "xl"
|
|
13885
|
-
}, /*#__PURE__*/
|
|
13889
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13886
13890
|
align: "center",
|
|
13887
13891
|
gap: "lg"
|
|
13888
|
-
}, /*#__PURE__*/
|
|
13892
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13889
13893
|
order: 3,
|
|
13890
13894
|
fw: 500,
|
|
13891
13895
|
lh: "40px"
|
|
13892
|
-
}, innerProps.title), /*#__PURE__*/
|
|
13896
|
+
}, innerProps.title), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, innerProps.modalBody)));
|
|
13893
13897
|
};
|
|
13894
13898
|
|
|
13895
13899
|
var SuccessAnimation = "data:null;base64,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";
|
|
@@ -13900,21 +13904,21 @@ const SuccessModal = _ref => {
|
|
|
13900
13904
|
id,
|
|
13901
13905
|
innerProps
|
|
13902
13906
|
} = _ref;
|
|
13903
|
-
return /*#__PURE__*/
|
|
13907
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Stack, {
|
|
13904
13908
|
align: "center",
|
|
13905
13909
|
py: "md"
|
|
13906
|
-
}, /*#__PURE__*/
|
|
13910
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
13907
13911
|
w: 170,
|
|
13908
13912
|
h: 170
|
|
13909
|
-
}, /*#__PURE__*/
|
|
13913
|
+
}, /*#__PURE__*/React__default.createElement(DotLottieReact, {
|
|
13910
13914
|
speed: 0.8,
|
|
13911
13915
|
src: SuccessAnimation,
|
|
13912
13916
|
loop: false,
|
|
13913
13917
|
autoplay: true
|
|
13914
|
-
})), /*#__PURE__*/
|
|
13918
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
13915
13919
|
fw: 300,
|
|
13916
13920
|
ta: "center"
|
|
13917
|
-
}, innerProps.modalBody)), /*#__PURE__*/
|
|
13921
|
+
}, innerProps.modalBody)), /*#__PURE__*/React__default.createElement(Button, {
|
|
13918
13922
|
radius: "xl",
|
|
13919
13923
|
fw: 300,
|
|
13920
13924
|
size: "md",
|
|
@@ -13932,22 +13936,22 @@ const TwoFactorModal = _ref => {
|
|
|
13932
13936
|
title = "Verify Your Identity",
|
|
13933
13937
|
pinLength = 6
|
|
13934
13938
|
} = _ref;
|
|
13935
|
-
return /*#__PURE__*/
|
|
13939
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
13936
13940
|
align: "center",
|
|
13937
13941
|
py: 40,
|
|
13938
13942
|
gap: "lg"
|
|
13939
|
-
}, /*#__PURE__*/
|
|
13943
|
+
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
13940
13944
|
order: 3,
|
|
13941
13945
|
fw: 500,
|
|
13942
13946
|
h: 40
|
|
13943
|
-
}, title), /*#__PURE__*/
|
|
13947
|
+
}, title), /*#__PURE__*/React__default.createElement(PinInput, {
|
|
13944
13948
|
length: pinLength,
|
|
13945
13949
|
placeholder: "",
|
|
13946
13950
|
type: "number",
|
|
13947
13951
|
inputType: "tel",
|
|
13948
13952
|
inputMode: "numeric",
|
|
13949
13953
|
autoFocus: true
|
|
13950
|
-
}), /*#__PURE__*/
|
|
13954
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
13951
13955
|
ta: "center",
|
|
13952
13956
|
fw: 300
|
|
13953
13957
|
}, children));
|
|
@@ -13962,7 +13966,7 @@ const Drawer = _ref => {
|
|
|
13962
13966
|
title = "",
|
|
13963
13967
|
page = undefined
|
|
13964
13968
|
} = _ref;
|
|
13965
|
-
return /*#__PURE__*/
|
|
13969
|
+
return /*#__PURE__*/React__default.createElement(Drawer$1.Root, {
|
|
13966
13970
|
opened,
|
|
13967
13971
|
onClose,
|
|
13968
13972
|
position,
|
|
@@ -13975,17 +13979,17 @@ const Drawer = _ref => {
|
|
|
13975
13979
|
duration: 500,
|
|
13976
13980
|
transition: "slide-left"
|
|
13977
13981
|
}
|
|
13978
|
-
}, /*#__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, {
|
|
13979
13983
|
fz: "lg",
|
|
13980
13984
|
fw: "400"
|
|
13981
|
-
}, title), /*#__PURE__*/
|
|
13982
|
-
icon: /*#__PURE__*/
|
|
13985
|
+
}, title), /*#__PURE__*/React__default.createElement(Drawer$1.CloseButton, {
|
|
13986
|
+
icon: /*#__PURE__*/React__default.createElement(Icons, {
|
|
13983
13987
|
name: "Back",
|
|
13984
13988
|
size: 24
|
|
13985
13989
|
})
|
|
13986
|
-
})), /*#__PURE__*/
|
|
13990
|
+
})), /*#__PURE__*/React__default.createElement(Drawer$1.Body, {
|
|
13987
13991
|
p: "md"
|
|
13988
|
-
}, /*#__PURE__*/
|
|
13992
|
+
}, /*#__PURE__*/React__default.createElement(ScrollArea, {
|
|
13989
13993
|
scrollbars: "y"
|
|
13990
13994
|
}, page))));
|
|
13991
13995
|
};
|
|
@@ -14040,7 +14044,7 @@ const SimpleForm = _ref => {
|
|
|
14040
14044
|
variant: !isEditable ? "unstyled" : "default",
|
|
14041
14045
|
required: true
|
|
14042
14046
|
};
|
|
14043
|
-
return /*#__PURE__*/
|
|
14047
|
+
return /*#__PURE__*/React__default.createElement("form", {
|
|
14044
14048
|
onSubmit: form.onSubmit(values => hasSubmit ? rest.onSubmit?.(values) : void 0),
|
|
14045
14049
|
onReset: () => {
|
|
14046
14050
|
form.reset();
|
|
@@ -14049,18 +14053,18 @@ const SimpleForm = _ref => {
|
|
|
14049
14053
|
style: {
|
|
14050
14054
|
height: "100%"
|
|
14051
14055
|
}
|
|
14052
|
-
}, /*#__PURE__*/
|
|
14056
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14053
14057
|
h: "100%"
|
|
14054
|
-
}, /*#__PURE__*/
|
|
14058
|
+
}, /*#__PURE__*/React__default.createElement(Grid, null, fields.map((field, index) => {
|
|
14055
14059
|
if (typeof field === "string") {
|
|
14056
14060
|
const sanitizedField = santize(field);
|
|
14057
|
-
return /*#__PURE__*/
|
|
14061
|
+
return /*#__PURE__*/React__default.createElement(Grid.Col, {
|
|
14058
14062
|
key: index,
|
|
14059
14063
|
span: layout[index]
|
|
14060
|
-
}, /*#__PURE__*/
|
|
14064
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends({}, inputProps, sanitizedField, form.getInputProps(sanitizedField.name))));
|
|
14061
14065
|
}
|
|
14062
14066
|
if (typeof field === "function") {
|
|
14063
|
-
return /*#__PURE__*/
|
|
14067
|
+
return /*#__PURE__*/React__default.createElement(Grid.Col, {
|
|
14064
14068
|
key: index,
|
|
14065
14069
|
span: layout[index]
|
|
14066
14070
|
}, field(form.getInputProps));
|
|
@@ -14068,15 +14072,15 @@ const SimpleForm = _ref => {
|
|
|
14068
14072
|
if (Object.keys(components).includes(field.component)) {
|
|
14069
14073
|
const Component = components[field.component];
|
|
14070
14074
|
const sanitizedField = santize(field.field ?? "");
|
|
14071
|
-
return /*#__PURE__*/
|
|
14075
|
+
return /*#__PURE__*/React__default.createElement(Grid.Col, {
|
|
14072
14076
|
key: index,
|
|
14073
14077
|
span: layout[index]
|
|
14074
|
-
}, /*#__PURE__*/
|
|
14078
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, field.field, inputProps, sanitizedField, form.getInputProps(sanitizedField.name))));
|
|
14075
14079
|
}
|
|
14076
14080
|
return null;
|
|
14077
|
-
})), /*#__PURE__*/
|
|
14081
|
+
})), /*#__PURE__*/React__default.createElement(Space, {
|
|
14078
14082
|
flex: 1
|
|
14079
|
-
}), /*#__PURE__*/
|
|
14083
|
+
}), /*#__PURE__*/React__default.createElement(FormButtons, {
|
|
14080
14084
|
hasSubmit,
|
|
14081
14085
|
hasReset,
|
|
14082
14086
|
buttonSize
|
|
@@ -14103,15 +14107,15 @@ const FormButtons = _ref2 => {
|
|
|
14103
14107
|
hasReset = false,
|
|
14104
14108
|
buttonSize
|
|
14105
14109
|
} = _ref2;
|
|
14106
|
-
return /*#__PURE__*/
|
|
14110
|
+
return /*#__PURE__*/React__default.createElement(Group, {
|
|
14107
14111
|
mt: "lg",
|
|
14108
14112
|
justify: "flex-end",
|
|
14109
14113
|
grow: true,
|
|
14110
14114
|
gap: 10,
|
|
14111
14115
|
w: "100%",
|
|
14112
14116
|
display: hasSubmit || hasReset ? "flex" : "none"
|
|
14113
|
-
}, /*#__PURE__*/
|
|
14114
|
-
leftSection: /*#__PURE__*/
|
|
14117
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
14118
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
14115
14119
|
name: "CloseCircle",
|
|
14116
14120
|
size: 16
|
|
14117
14121
|
}),
|
|
@@ -14125,12 +14129,12 @@ const FormButtons = _ref2 => {
|
|
|
14125
14129
|
display: hasReset ? "block" : "none"
|
|
14126
14130
|
},
|
|
14127
14131
|
flex: 1
|
|
14128
|
-
}, /*#__PURE__*/
|
|
14132
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14129
14133
|
fw: 400,
|
|
14130
14134
|
fz: "sm",
|
|
14131
14135
|
c: "white"
|
|
14132
|
-
}, "Cancel")), /*#__PURE__*/
|
|
14133
|
-
leftSection: /*#__PURE__*/
|
|
14136
|
+
}, "Cancel")), /*#__PURE__*/React__default.createElement(Button, {
|
|
14137
|
+
leftSection: /*#__PURE__*/React__default.createElement(Icons, {
|
|
14134
14138
|
name: "TickCircle",
|
|
14135
14139
|
size: 16
|
|
14136
14140
|
}),
|
|
@@ -14144,7 +14148,7 @@ const FormButtons = _ref2 => {
|
|
|
14144
14148
|
display: hasSubmit ? "block" : "none"
|
|
14145
14149
|
},
|
|
14146
14150
|
flex: 1
|
|
14147
|
-
}, /*#__PURE__*/
|
|
14151
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14148
14152
|
fw: 300,
|
|
14149
14153
|
fz: "sm",
|
|
14150
14154
|
c: "white"
|
|
@@ -14160,24 +14164,24 @@ const MaskedTilePanel = _ref => {
|
|
|
14160
14164
|
} = _ref;
|
|
14161
14165
|
const [masked, toggle] = useToggle();
|
|
14162
14166
|
const name = masked ? "Eye" : "EyeSlash";
|
|
14163
|
-
return /*#__PURE__*/
|
|
14167
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
14164
14168
|
p: "md",
|
|
14165
14169
|
bg: "gray.0",
|
|
14166
14170
|
style: {
|
|
14167
14171
|
borderRadius: "10px"
|
|
14168
14172
|
}
|
|
14169
|
-
}, /*#__PURE__*/
|
|
14173
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
14170
14174
|
justify: "space-between"
|
|
14171
|
-
}, /*#__PURE__*/
|
|
14175
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14172
14176
|
gap: 0,
|
|
14173
14177
|
p: 0,
|
|
14174
14178
|
flex: 1
|
|
14175
|
-
}, /*#__PURE__*/
|
|
14179
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14176
14180
|
fz: "sm",
|
|
14177
14181
|
fw: 300,
|
|
14178
14182
|
p: 0,
|
|
14179
14183
|
c: "gray.7"
|
|
14180
|
-
}, label), /*#__PURE__*/
|
|
14184
|
+
}, label), /*#__PURE__*/React__default.createElement(TextInput, {
|
|
14181
14185
|
type: masked ? "password" : "text",
|
|
14182
14186
|
fw: 300,
|
|
14183
14187
|
p: 0,
|
|
@@ -14185,10 +14189,10 @@ const MaskedTilePanel = _ref => {
|
|
|
14185
14189
|
value: value,
|
|
14186
14190
|
variant: "unstyled",
|
|
14187
14191
|
readOnly: true
|
|
14188
|
-
})), /*#__PURE__*/
|
|
14192
|
+
})), /*#__PURE__*/React__default.createElement(ActionIcon, {
|
|
14189
14193
|
variant: "transparent",
|
|
14190
14194
|
onClick: () => onMasked() ? toggle() : void 0
|
|
14191
|
-
}, icon && /*#__PURE__*/
|
|
14195
|
+
}, icon && /*#__PURE__*/React__default.createElement(Icons, {
|
|
14192
14196
|
size: 24,
|
|
14193
14197
|
color: "gray",
|
|
14194
14198
|
name: name
|
|
@@ -14199,24 +14203,24 @@ const TilePanel = _ref2 => {
|
|
|
14199
14203
|
label,
|
|
14200
14204
|
value
|
|
14201
14205
|
} = _ref2;
|
|
14202
|
-
return /*#__PURE__*/
|
|
14206
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
14203
14207
|
p: "md",
|
|
14204
14208
|
bg: "gray.0",
|
|
14205
14209
|
style: {
|
|
14206
14210
|
borderRadius: "10px"
|
|
14207
14211
|
}
|
|
14208
|
-
}, /*#__PURE__*/
|
|
14212
|
+
}, /*#__PURE__*/React__default.createElement(Group, {
|
|
14209
14213
|
justify: "space-between"
|
|
14210
|
-
}, /*#__PURE__*/
|
|
14214
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14211
14215
|
gap: 0,
|
|
14212
14216
|
p: 0,
|
|
14213
14217
|
flex: 1
|
|
14214
|
-
}, /*#__PURE__*/
|
|
14218
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
14215
14219
|
fz: "sm",
|
|
14216
14220
|
fw: 300,
|
|
14217
14221
|
p: 0,
|
|
14218
14222
|
c: "gray.7"
|
|
14219
|
-
}, label), /*#__PURE__*/
|
|
14223
|
+
}, label), /*#__PURE__*/React__default.createElement(TextInput, {
|
|
14220
14224
|
fw: 300,
|
|
14221
14225
|
p: 0,
|
|
14222
14226
|
c: "adiba",
|
|
@@ -14231,18 +14235,18 @@ var ConfirmAnimation = "data:null;base64,UEsDBBQAAAAIAEoK11qAribJgAAAALUAAAANAAA
|
|
|
14231
14235
|
const ConfirmModal = _ref => {
|
|
14232
14236
|
let {
|
|
14233
14237
|
children} = _ref;
|
|
14234
|
-
return /*#__PURE__*/
|
|
14238
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
14235
14239
|
align: "center",
|
|
14236
14240
|
py: "md"
|
|
14237
|
-
}, /*#__PURE__*/
|
|
14241
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
14238
14242
|
w: 150,
|
|
14239
14243
|
h: 150,
|
|
14240
14244
|
pt: "md"
|
|
14241
|
-
}, /*#__PURE__*/
|
|
14245
|
+
}, /*#__PURE__*/React__default.createElement(DotLottieReact, {
|
|
14242
14246
|
speed: 1,
|
|
14243
14247
|
src: ConfirmAnimation,
|
|
14244
14248
|
autoplay: true
|
|
14245
|
-
})), /*#__PURE__*/
|
|
14249
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
14246
14250
|
ta: "center",
|
|
14247
14251
|
fw: 300
|
|
14248
14252
|
}, children));
|
|
@@ -14405,4 +14409,122 @@ const useManagedModals = () => {
|
|
|
14405
14409
|
};
|
|
14406
14410
|
};
|
|
14407
14411
|
|
|
14408
|
-
|
|
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 };
|