react-luminus-components 1.3.149 → 1.3.151
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/dist/.vite/manifest.json +58 -75
- package/dist/{FullScreenContainer-DYBgh54H.js → FullScreenContainer-Ahxfk-Xk.js} +1 -1
- package/dist/{FullScreenContainer-wS-hROzA.cjs → FullScreenContainer-BWYwSExf.cjs} +1 -1
- package/dist/{Loading-DVzR10eX.cjs → Loading-C-Dsxusq.cjs} +1 -1
- package/dist/{Loading-fF23C88q.js → Loading-DiC4Np7v.js} +1 -1
- package/dist/components/Form/CheckInput/CheckInput.d.ts +1 -1
- package/dist/components/Form/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +1 -1
- package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +1 -1
- package/dist/components/Form/NumericTextInput/NumericTextInput.d.ts +1 -1
- package/dist/components/Form/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +1 -1
- package/dist/components/Form/TextInput/TextInput.d.ts +1 -1
- package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +1 -1
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +1 -1
- package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +1 -1
- package/dist/components/HookForm/NumericTextInput/HookFormNumericTextInput.d.ts +1 -1
- package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +1 -1
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +1 -1
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +6 -2
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +2 -0
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +35 -35
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +9 -9
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +36 -37
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +1124 -1124
- package/dist/models/prop-types/InputContainerProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/FileInputProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -0
- package/dist/{nivo-bar.es-GeqH-wP6.js → nivo-bar.es-B2GqU-tV.js} +5362 -5350
- package/dist/nivo-bar.es-C8-VCzr1.cjs +279 -0
- package/dist/{searchUtils-rKGYKo3G.cjs → searchUtils-BSGjuykO.cjs} +1 -1
- package/dist/{searchUtils-C-B9CjZk.js → searchUtils-BhpLdWdC.js} +1 -1
- package/dist/{useClipboard-DryTYSx9.cjs → useClipboard-D6esVLqf.cjs} +1 -1
- package/dist/{useClipboard-B_wtiBC7.js → useClipboard-DegAIBUd.js} +1 -1
- package/dist/{useGetApiData-DRl4eniT.js → useGetApiData-CTK8sM2X.js} +4 -4
- package/dist/{useGetApiData-C6zACwiC.cjs → useGetApiData-D4Xo7Loy.cjs} +1 -1
- package/dist/{usePermissions-Dn1zXYZT.js → usePermissions-BKn9Opdd.js} +1 -1
- package/dist/{usePermissions-DihYt5eO.cjs → usePermissions-DMDGiPC1.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +59 -60
- package/package.json +1 -1
- package/dist/SimpleTooltip-B20SNN2b.cjs +0 -1
- package/dist/SimpleTooltip-BJ1Ja0Rd.js +0 -5
- package/dist/nivo-bar.es-CRYH7xvU.cjs +0 -279
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,94 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_FullScreenContainer-
|
|
3
|
-
"file": "FullScreenContainer-
|
|
2
|
+
"_FullScreenContainer-Ahxfk-Xk.js": {
|
|
3
|
+
"file": "FullScreenContainer-Ahxfk-Xk.js",
|
|
4
4
|
"name": "FullScreenContainer",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_nivo-bar.es-
|
|
6
|
+
"_nivo-bar.es-B2GqU-tV.js"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_FullScreenContainer-
|
|
10
|
-
"file": "FullScreenContainer-
|
|
9
|
+
"_FullScreenContainer-BWYwSExf.cjs": {
|
|
10
|
+
"file": "FullScreenContainer-BWYwSExf.cjs",
|
|
11
11
|
"name": "FullScreenContainer",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_nivo-bar.es-
|
|
13
|
+
"_nivo-bar.es-C8-VCzr1.cjs"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_Loading-
|
|
17
|
-
"file": "Loading-
|
|
16
|
+
"_Loading-C-Dsxusq.cjs": {
|
|
17
|
+
"file": "Loading-C-Dsxusq.cjs",
|
|
18
18
|
"name": "Loading",
|
|
19
19
|
"imports": [
|
|
20
|
-
"_nivo-bar.es-
|
|
20
|
+
"_nivo-bar.es-C8-VCzr1.cjs"
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
|
-
"_Loading-
|
|
24
|
-
"file": "Loading-
|
|
23
|
+
"_Loading-DiC4Np7v.js": {
|
|
24
|
+
"file": "Loading-DiC4Np7v.js",
|
|
25
25
|
"name": "Loading",
|
|
26
26
|
"imports": [
|
|
27
|
-
"_nivo-bar.es-
|
|
27
|
+
"_nivo-bar.es-B2GqU-tV.js"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
"
|
|
31
|
-
"file": "
|
|
32
|
-
"name": "SimpleTooltip",
|
|
33
|
-
"imports": [
|
|
34
|
-
"_nivo-bar.es-CRYH7xvU.cjs"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"_SimpleTooltip-BJ1Ja0Rd.js": {
|
|
38
|
-
"file": "SimpleTooltip-BJ1Ja0Rd.js",
|
|
39
|
-
"name": "SimpleTooltip",
|
|
40
|
-
"imports": [
|
|
41
|
-
"_nivo-bar.es-GeqH-wP6.js"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"_nivo-bar.es-CRYH7xvU.cjs": {
|
|
45
|
-
"file": "nivo-bar.es-CRYH7xvU.cjs",
|
|
30
|
+
"_nivo-bar.es-B2GqU-tV.js": {
|
|
31
|
+
"file": "nivo-bar.es-B2GqU-tV.js",
|
|
46
32
|
"name": "nivo-bar.es"
|
|
47
33
|
},
|
|
48
|
-
"_nivo-bar.es-
|
|
49
|
-
"file": "nivo-bar.es-
|
|
34
|
+
"_nivo-bar.es-C8-VCzr1.cjs": {
|
|
35
|
+
"file": "nivo-bar.es-C8-VCzr1.cjs",
|
|
50
36
|
"name": "nivo-bar.es"
|
|
51
37
|
},
|
|
52
|
-
"_searchUtils-
|
|
53
|
-
"file": "searchUtils-
|
|
38
|
+
"_searchUtils-BSGjuykO.cjs": {
|
|
39
|
+
"file": "searchUtils-BSGjuykO.cjs",
|
|
54
40
|
"name": "searchUtils",
|
|
55
41
|
"imports": [
|
|
56
|
-
"_nivo-bar.es-
|
|
42
|
+
"_nivo-bar.es-C8-VCzr1.cjs"
|
|
57
43
|
]
|
|
58
44
|
},
|
|
59
|
-
"_searchUtils-
|
|
60
|
-
"file": "searchUtils-
|
|
45
|
+
"_searchUtils-BhpLdWdC.js": {
|
|
46
|
+
"file": "searchUtils-BhpLdWdC.js",
|
|
61
47
|
"name": "searchUtils",
|
|
62
48
|
"imports": [
|
|
63
|
-
"_nivo-bar.es-
|
|
49
|
+
"_nivo-bar.es-B2GqU-tV.js"
|
|
64
50
|
]
|
|
65
51
|
},
|
|
66
|
-
"_useClipboard-
|
|
67
|
-
"file": "useClipboard-
|
|
52
|
+
"_useClipboard-D6esVLqf.cjs": {
|
|
53
|
+
"file": "useClipboard-D6esVLqf.cjs",
|
|
68
54
|
"name": "useClipboard",
|
|
69
55
|
"imports": [
|
|
70
|
-
"_nivo-bar.es-
|
|
56
|
+
"_nivo-bar.es-C8-VCzr1.cjs"
|
|
71
57
|
]
|
|
72
58
|
},
|
|
73
|
-
"_useClipboard-
|
|
74
|
-
"file": "useClipboard-
|
|
59
|
+
"_useClipboard-DegAIBUd.js": {
|
|
60
|
+
"file": "useClipboard-DegAIBUd.js",
|
|
75
61
|
"name": "useClipboard",
|
|
76
62
|
"imports": [
|
|
77
|
-
"_nivo-bar.es-
|
|
63
|
+
"_nivo-bar.es-B2GqU-tV.js"
|
|
78
64
|
]
|
|
79
65
|
},
|
|
80
|
-
"_useGetApiData-
|
|
81
|
-
"file": "useGetApiData-
|
|
66
|
+
"_useGetApiData-CTK8sM2X.js": {
|
|
67
|
+
"file": "useGetApiData-CTK8sM2X.js",
|
|
82
68
|
"name": "useGetApiData",
|
|
83
69
|
"imports": [
|
|
84
|
-
"_nivo-bar.es-
|
|
70
|
+
"_nivo-bar.es-B2GqU-tV.js"
|
|
85
71
|
]
|
|
86
72
|
},
|
|
87
|
-
"_useGetApiData-
|
|
88
|
-
"file": "useGetApiData-
|
|
73
|
+
"_useGetApiData-D4Xo7Loy.cjs": {
|
|
74
|
+
"file": "useGetApiData-D4Xo7Loy.cjs",
|
|
89
75
|
"name": "useGetApiData",
|
|
90
76
|
"imports": [
|
|
91
|
-
"_nivo-bar.es-
|
|
77
|
+
"_nivo-bar.es-C8-VCzr1.cjs"
|
|
92
78
|
]
|
|
93
79
|
},
|
|
94
80
|
"_useLocalStorageState-BFc8Gc8H.cjs": {
|
|
@@ -99,18 +85,18 @@
|
|
|
99
85
|
"file": "useLocalStorageState-Bt99kkCr.js",
|
|
100
86
|
"name": "useLocalStorageState"
|
|
101
87
|
},
|
|
102
|
-
"_usePermissions-
|
|
103
|
-
"file": "usePermissions-
|
|
88
|
+
"_usePermissions-BKn9Opdd.js": {
|
|
89
|
+
"file": "usePermissions-BKn9Opdd.js",
|
|
104
90
|
"name": "usePermissions",
|
|
105
91
|
"imports": [
|
|
106
|
-
"_nivo-bar.es-
|
|
92
|
+
"_nivo-bar.es-B2GqU-tV.js"
|
|
107
93
|
]
|
|
108
94
|
},
|
|
109
|
-
"_usePermissions-
|
|
110
|
-
"file": "usePermissions-
|
|
95
|
+
"_usePermissions-DMDGiPC1.cjs": {
|
|
96
|
+
"file": "usePermissions-DMDGiPC1.cjs",
|
|
111
97
|
"name": "usePermissions",
|
|
112
98
|
"imports": [
|
|
113
|
-
"_nivo-bar.es-
|
|
99
|
+
"_nivo-bar.es-C8-VCzr1.cjs"
|
|
114
100
|
]
|
|
115
101
|
},
|
|
116
102
|
"_useWindowSize-CE6DJWzn.cjs": {
|
|
@@ -127,9 +113,9 @@
|
|
|
127
113
|
"src": "src/contexts/index.ts",
|
|
128
114
|
"isEntry": true,
|
|
129
115
|
"imports": [
|
|
130
|
-
"_nivo-bar.es-
|
|
131
|
-
"_Loading-
|
|
132
|
-
"_useGetApiData-
|
|
116
|
+
"_nivo-bar.es-C8-VCzr1.cjs",
|
|
117
|
+
"_Loading-C-Dsxusq.cjs",
|
|
118
|
+
"_useGetApiData-D4Xo7Loy.cjs",
|
|
133
119
|
"_useLocalStorageState-BFc8Gc8H.cjs"
|
|
134
120
|
]
|
|
135
121
|
},
|
|
@@ -139,11 +125,11 @@
|
|
|
139
125
|
"src": "src/hooks/index.ts",
|
|
140
126
|
"isEntry": true,
|
|
141
127
|
"imports": [
|
|
142
|
-
"_nivo-bar.es-
|
|
128
|
+
"_nivo-bar.es-C8-VCzr1.cjs",
|
|
143
129
|
"_useWindowSize-CE6DJWzn.cjs",
|
|
144
|
-
"_usePermissions-
|
|
145
|
-
"_useClipboard-
|
|
146
|
-
"_useGetApiData-
|
|
130
|
+
"_usePermissions-DMDGiPC1.cjs",
|
|
131
|
+
"_useClipboard-D6esVLqf.cjs",
|
|
132
|
+
"_useGetApiData-D4Xo7Loy.cjs",
|
|
147
133
|
"_useLocalStorageState-BFc8Gc8H.cjs"
|
|
148
134
|
]
|
|
149
135
|
},
|
|
@@ -153,11 +139,10 @@
|
|
|
153
139
|
"src": "src/layout/index.ts",
|
|
154
140
|
"isEntry": true,
|
|
155
141
|
"imports": [
|
|
156
|
-
"_nivo-bar.es-
|
|
157
|
-
"_SimpleTooltip-B20SNN2b.cjs",
|
|
142
|
+
"_nivo-bar.es-C8-VCzr1.cjs",
|
|
158
143
|
"_useWindowSize-CE6DJWzn.cjs",
|
|
159
|
-
"_usePermissions-
|
|
160
|
-
"_FullScreenContainer-
|
|
144
|
+
"_usePermissions-DMDGiPC1.cjs",
|
|
145
|
+
"_FullScreenContainer-BWYwSExf.cjs"
|
|
161
146
|
]
|
|
162
147
|
},
|
|
163
148
|
"src/main.ts": {
|
|
@@ -166,14 +151,13 @@
|
|
|
166
151
|
"src": "src/main.ts",
|
|
167
152
|
"isEntry": true,
|
|
168
153
|
"imports": [
|
|
169
|
-
"_nivo-bar.es-
|
|
170
|
-
"_Loading-
|
|
154
|
+
"_nivo-bar.es-C8-VCzr1.cjs",
|
|
155
|
+
"_Loading-C-Dsxusq.cjs",
|
|
171
156
|
"_useWindowSize-CE6DJWzn.cjs",
|
|
172
|
-
"_searchUtils-
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"_FullScreenContainer-wS-hROzA.cjs"
|
|
157
|
+
"_searchUtils-BSGjuykO.cjs",
|
|
158
|
+
"_useClipboard-D6esVLqf.cjs",
|
|
159
|
+
"_useGetApiData-D4Xo7Loy.cjs",
|
|
160
|
+
"_FullScreenContainer-BWYwSExf.cjs"
|
|
177
161
|
]
|
|
178
162
|
},
|
|
179
163
|
"src/utils/index.ts": {
|
|
@@ -182,9 +166,8 @@
|
|
|
182
166
|
"src": "src/utils/index.ts",
|
|
183
167
|
"isEntry": true,
|
|
184
168
|
"imports": [
|
|
185
|
-
"_nivo-bar.es-
|
|
186
|
-
"
|
|
187
|
-
"_searchUtils-rKGYKo3G.cjs"
|
|
169
|
+
"_nivo-bar.es-C8-VCzr1.cjs",
|
|
170
|
+
"_searchUtils-BSGjuykO.cjs"
|
|
188
171
|
]
|
|
189
172
|
},
|
|
190
173
|
"style.css": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bc as m, j as r, c as u, bd as f, be as p } from "./nivo-bar.es-B2GqU-tV.js";
|
|
2
2
|
import { useContext as x, useEffect as d } from "react";
|
|
3
3
|
import "react-router-dom";
|
|
4
4
|
import "@azure/msal-browser";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./nivo-bar.es-
|
|
1
|
+
"use strict";const e=require("./nivo-bar.es-C8-VCzr1.cjs"),l=require("react");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");require("react-flexmonster");const x="_full-screen-container_1rm4r_1",f={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:x},m=({title:r,children:u,sideContent:n,sideContentWidth:c=250,noPadding:o,className:a,helmet:s})=>{const{addHelmet:t,removeHelmet:i}=l.useContext(e.HelmetContext);return l.useEffect(()=>(s?t(s):typeof r=="string"&&r&&t(r),()=>i()),[s,t,i,r]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:e.classNames("overflow-hidden luminus-full-screen-container",o?"p-0":"p-3",a,f.fullScreenContainer),style:{width:n?`calc(100% - ${c}px)`:"100%"},children:[r?e.jsxRuntimeExports.jsx(e.PageTitle,{title:r}):null,u]}),n&&e.jsxRuntimeExports.jsx(e.SideContentBar,{width:c,children:n})]})};exports.FullScreenContainer=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./nivo-bar.es-
|
|
1
|
+
"use strict";const s=require("./nivo-bar.es-C8-VCzr1.cjs"),r="_loading_rgybp_1",o="_spinner-grow_rgybp_10",e="_second_rgybp_14",i="_third_rgybp_17",a="_loadingBlock_rgybp_21",n={loading:r,"spinner-grow":"_spinner-grow_rgybp_10",spinnerGrow:o,second:e,third:i,loadingBlock:a},t=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",n.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary",n.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary",n.third),role:"status"})]});exports.Loading=t;exports.classes=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r, c as n } from "./nivo-bar.es-
|
|
1
|
+
import { j as r, c as n } from "./nivo-bar.es-B2GqU-tV.js";
|
|
2
2
|
const o = "_loading_rgybp_1", i = "_spinner-grow_rgybp_10", e = "_second_rgybp_14", a = "_third_rgybp_17", t = "_loadingBlock_rgybp_21", s = {
|
|
3
3
|
loading: o,
|
|
4
4
|
"spinner-grow": "_spinner-grow_rgybp_10",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormCheckInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const CheckInput: ({ InputContainer, label, value, onChange, hidden, disabled, className, type, withoutLabel, indeterminate, }: FormCheckInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const CheckInput: ({ InputContainer, label, value, onChange, hidden, disabled, className, type, withoutLabel, indeterminate, hint, }: FormCheckInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default CheckInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormSelectInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const CustomSelectInput: ({ InputContainer, value, options, onChange, label, withoutLabel, isNumber, size, hidden, disabled, noSortOptions, className, suffixIdToName, noEmptyOption, appendCurrentSelectionWithName, dropdownWidth, }: FormSelectInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const CustomSelectInput: ({ InputContainer, value, options, onChange, label, withoutLabel, isNumber, size, hidden, disabled, noSortOptions, className, suffixIdToName, noEmptyOption, appendCurrentSelectionWithName, dropdownWidth, hint, }: FormSelectInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default CustomSelectInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DropdownPickerProps, DropdownPickerOption, FormSelectOption } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const DropdownPicker: ({ InputContainer, items, selectedItemNavigateTo, onSearchQueryChange, texts, isLoading, value, onSelect, label, withoutLabel, size, dropdownItemsNameWidth, additionalColumns, hidden, disabled, displayIdAsName, CustomOnChangeComponent, className, archiveColumn, icon, }: DropdownPickerProps & {
|
|
3
|
+
declare const DropdownPicker: ({ InputContainer, items, selectedItemNavigateTo, onSearchQueryChange, texts, isLoading, value, onSelect, label, withoutLabel, size, dropdownItemsNameWidth, additionalColumns, hidden, disabled, displayIdAsName, CustomOnChangeComponent, className, archiveColumn, icon, hint, }: DropdownPickerProps & {
|
|
4
4
|
value: FormSelectOption | null;
|
|
5
5
|
onSelect: (item: DropdownPickerOption | null) => void;
|
|
6
6
|
}) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormNumericStepperInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const NumericStepperInput: ({ InputContainer, value, onChange, debounceMs, label, withoutLabel, placeholder, size, hidden, disabled, showClearIcon, clearValue, className, step, stepperStep, min, max, }: FormNumericStepperInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const NumericStepperInput: ({ InputContainer, value, onChange, debounceMs, label, withoutLabel, placeholder, size, hidden, disabled, showClearIcon, clearValue, className, step, stepperStep, min, max, hint, }: FormNumericStepperInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default NumericStepperInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormNumericTextInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const NumericTextInput: ({ InputContainer, value, onChange, debounceMs, label, withoutLabel, placeholder, size, hidden, disabled, showClearIcon, clearValue, className, step, noSelectOnFocus, decimalScale, numberPrefix, numberSuffix, min, max, }: FormNumericTextInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const NumericTextInput: ({ InputContainer, value, onChange, debounceMs, label, withoutLabel, placeholder, size, hidden, disabled, showClearIcon, clearValue, className, step, noSelectOnFocus, decimalScale, numberPrefix, numberSuffix, min, max, hint, }: FormNumericTextInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default NumericTextInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormSelectInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const SelectInput: ({ InputContainer, value, options, onChange, label, withoutLabel, isNumber, size, hidden, disabled, showClearIcon, clearValue, noSortOptions, className, noEmptyOption, appendCurrentSelectionWithName, }: FormSelectInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const SelectInput: ({ InputContainer, value, options, onChange, label, withoutLabel, isNumber, size, hidden, disabled, showClearIcon, clearValue, noSortOptions, className, noEmptyOption, appendCurrentSelectionWithName, hint, }: FormSelectInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default SelectInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormTextAreaInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const HookFormTextAreaInput: ({ InputContainer, value, onChange, label, size, showClearIcon, clearValue, hidden, disabled, rows, withoutLabel, debounceMs, minLength, maxLength, className, }: FormTextAreaInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormTextAreaInput: ({ InputContainer, value, onChange, label, size, showClearIcon, clearValue, hidden, disabled, rows, withoutLabel, debounceMs, minLength, maxLength, className, hint, }: FormTextAreaInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormTextAreaInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FormTextInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const TextInput: ({ InputContainer, type, value, onChange, debounceMs, label, withoutLabel, placeholder, size, hidden, disabled, showClearIcon, clearValue, list, className, step, minLength, maxLength, noSelectOnFocus, }: FormTextInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const TextInput: ({ InputContainer, type, value, onChange, debounceMs, label, withoutLabel, placeholder, size, hidden, disabled, showClearIcon, clearValue, list, className, step, minLength, maxLength, noSelectOnFocus, hint, }: FormTextInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default TextInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as HookFormCheckInputProps } from '../../../models/prop-types/HookFormInputProps/HookFormCheckInputProps';
|
|
2
2
|
|
|
3
|
-
declare const HookFormCheckInput: ({ InputContainer, formField, label, resetsFields, type, required, hidden, disabled, withoutLabel, className, }: HookFormCheckInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormCheckInput: ({ InputContainer, formField, label, resetsFields, type, required, hidden, disabled, withoutLabel, hint, className, }: HookFormCheckInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormCheckInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HookFormSelectInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const CustomSelectInput: ({ InputContainer, options, formField, label, size, resetsFields, isNumber, required, hidden, disabled, withoutLabel, noSortOptions, suffixIdToName, onSelect, className, appendCurrentSelectionWithName, }: HookFormSelectInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const CustomSelectInput: ({ InputContainer, options, formField, label, size, resetsFields, isNumber, required, hidden, disabled, withoutLabel, noSortOptions, suffixIdToName, onSelect, className, appendCurrentSelectionWithName, hint, }: HookFormSelectInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default CustomSelectInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { default as HookFormDropdownPickerProps } from '../../../models/prop-types/HookFormInputProps/HookFormDropdownPickerProps';
|
|
3
3
|
|
|
4
|
-
declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, selectedItemNavigateTo, texts, dropdownItemsNameWidth, isLoading, withoutLabel, additionalColumns, CustomOnChangeComponent, icon, displayIdAsName, onSelect, className, archiveColumn, }: HookFormDropdownPickerProps) => React.JSX.Element;
|
|
4
|
+
declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, selectedItemNavigateTo, texts, dropdownItemsNameWidth, isLoading, withoutLabel, additionalColumns, CustomOnChangeComponent, icon, displayIdAsName, onSelect, className, archiveColumn, hint, }: HookFormDropdownPickerProps) => React.JSX.Element;
|
|
5
5
|
export default HookFormDropdownPicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HookFormFileInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const HookFormFileInput: ({ InputContainer, label, formField, hidden, required, placeholder, disabled, showClearIcon, resetsFields, multiple, accept, withoutLabel, className, }: HookFormFileInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormFileInput: ({ InputContainer, label, formField, hidden, required, placeholder, disabled, showClearIcon, resetsFields, multiple, accept, withoutLabel, hint, className, }: HookFormFileInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormFileInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HookFormNumericStepperInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const HookFormNumericStepperInput: ({ InputContainer, formField, label, placeholder, size, resetsFields, showClearIcon, clearValue, required, hidden, disabled, withoutLabel, step, stepperStep, className, min, max, }: HookFormNumericStepperInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormNumericStepperInput: ({ InputContainer, formField, label, placeholder, size, resetsFields, showClearIcon, clearValue, required, hidden, disabled, withoutLabel, step, stepperStep, className, min, max, hint, }: HookFormNumericStepperInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormNumericStepperInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HookFormNumericTextInputProps } from '../../../models/index';
|
|
2
2
|
|
|
3
|
-
declare const HookFormNumericTextInput: ({ InputContainer, formField, label, placeholder, resetsFields, showClearIcon, clearValue, required, hidden, disabled, withoutLabel, step, size, CustomOnChangeComponent, noSelectOnFocus, className, decimalScale, numberPrefix, numberSuffix, min, max, }: HookFormNumericTextInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormNumericTextInput: ({ InputContainer, formField, label, placeholder, resetsFields, showClearIcon, clearValue, required, hidden, disabled, withoutLabel, step, size, CustomOnChangeComponent, noSelectOnFocus, className, decimalScale, numberPrefix, numberSuffix, min, max, hint, }: HookFormNumericTextInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormNumericTextInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as HookFormSelectInputProps } from '../../../models/prop-types/HookFormInputProps/HookFormSelectInputProps';
|
|
2
2
|
|
|
3
|
-
declare const HookFormSelectInput: ({ InputContainer, formField, label, resetsFields, options, isNumber, size, showClearIcon, clearValue, noSortOptions, required, hidden, disabled, withoutLabel, className, }: HookFormSelectInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormSelectInput: ({ InputContainer, formField, label, resetsFields, options, isNumber, size, showClearIcon, clearValue, noSortOptions, required, hidden, disabled, withoutLabel, hint, className, }: HookFormSelectInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormSelectInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as HookFormTextAreaInputProps } from '../../../models/prop-types/HookFormInputProps/HookFormTextAreaInputProps';
|
|
2
2
|
|
|
3
|
-
declare const HookFormTextAreaInput: ({ InputContainer, formField, label, resetsFields, size, showClearIcon, clearValue, required, hidden, disabled, rows, withoutLabel, customFormControlProps, minLength, maxLength, className, }: HookFormTextAreaInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormTextAreaInput: ({ InputContainer, formField, label, resetsFields, size, showClearIcon, clearValue, required, hidden, disabled, rows, withoutLabel, customFormControlProps, minLength, maxLength, hint, className, }: HookFormTextAreaInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormTextAreaInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as HookFormTextInputProps } from '../../../models/prop-types/HookFormInputProps/HookFormTextInputProps';
|
|
2
2
|
|
|
3
|
-
declare const HookFormTextInput: ({ InputContainer, type, formField, label, placeholder, size, resetsFields, showClearIcon, clearValue, required, hidden, disabled, withoutLabel, list, step, CustomOnChangeComponent, noSelectOnFocus, minLength, maxLength, className, }: HookFormTextInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const HookFormTextInput: ({ InputContainer, type, formField, label, placeholder, size, resetsFields, showClearIcon, clearValue, required, hidden, disabled, withoutLabel, list, step, CustomOnChangeComponent, noSelectOnFocus, minLength, maxLength, hint, className, }: HookFormTextInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default HookFormTextInput;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const FloatingLabelInput: React.ForwardRefExoticComponent<(Omit<{
|
|
2
4
|
hidden?: boolean;
|
|
3
5
|
children: React.ReactNode;
|
|
4
6
|
isInvalid?: boolean;
|
|
@@ -6,6 +8,7 @@ declare const FloatingLabelInput: import('react').ForwardRefExoticComponent<(Omi
|
|
|
6
8
|
isForRadioInput?: boolean;
|
|
7
9
|
isForTextAreaInput?: boolean;
|
|
8
10
|
inputContainerClassName?: string;
|
|
11
|
+
hint?: string;
|
|
9
12
|
className?: string;
|
|
10
13
|
} & {
|
|
11
14
|
ref?: React.LegacyRef<HTMLDivElement>;
|
|
@@ -22,6 +25,7 @@ declare const FloatingLabelInput: import('react').ForwardRefExoticComponent<(Omi
|
|
|
22
25
|
isForRadioInput?: boolean;
|
|
23
26
|
isForTextAreaInput?: boolean;
|
|
24
27
|
inputContainerClassName?: string;
|
|
28
|
+
hint?: string;
|
|
25
29
|
className?: string;
|
|
26
30
|
} & {
|
|
27
31
|
ref?: React.LegacyRef<HTMLDivElement>;
|
|
@@ -29,5 +33,5 @@ declare const FloatingLabelInput: import('react').ForwardRefExoticComponent<(Omi
|
|
|
29
33
|
withoutLabel: true;
|
|
30
34
|
} & {
|
|
31
35
|
withoutLabel: true;
|
|
32
|
-
}, "ref">) &
|
|
36
|
+
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
33
37
|
export default FloatingLabelInput;
|
|
@@ -6,6 +6,7 @@ declare const NoInputContainer: import('react').ForwardRefExoticComponent<(Omit<
|
|
|
6
6
|
isForRadioInput?: boolean;
|
|
7
7
|
isForTextAreaInput?: boolean;
|
|
8
8
|
inputContainerClassName?: string;
|
|
9
|
+
hint?: string;
|
|
9
10
|
className?: string;
|
|
10
11
|
} & {
|
|
11
12
|
ref?: React.LegacyRef<HTMLDivElement>;
|
|
@@ -22,6 +23,7 @@ declare const NoInputContainer: import('react').ForwardRefExoticComponent<(Omit<
|
|
|
22
23
|
isForRadioInput?: boolean;
|
|
23
24
|
isForTextAreaInput?: boolean;
|
|
24
25
|
inputContainerClassName?: string;
|
|
26
|
+
hint?: string;
|
|
25
27
|
className?: string;
|
|
26
28
|
} & {
|
|
27
29
|
ref?: React.LegacyRef<HTMLDivElement>;
|
|
@@ -6,6 +6,7 @@ declare const RowLabelInput: import('react').ForwardRefExoticComponent<(Omit<{
|
|
|
6
6
|
isForRadioInput?: boolean;
|
|
7
7
|
isForTextAreaInput?: boolean;
|
|
8
8
|
inputContainerClassName?: string;
|
|
9
|
+
hint?: string;
|
|
9
10
|
className?: string;
|
|
10
11
|
} & {
|
|
11
12
|
ref?: React.LegacyRef<HTMLDivElement>;
|
|
@@ -22,6 +23,7 @@ declare const RowLabelInput: import('react').ForwardRefExoticComponent<(Omit<{
|
|
|
22
23
|
isForRadioInput?: boolean;
|
|
23
24
|
isForTextAreaInput?: boolean;
|
|
24
25
|
inputContainerClassName?: string;
|
|
26
|
+
hint?: string;
|
|
25
27
|
className?: string;
|
|
26
28
|
} & {
|
|
27
29
|
ref?: React.LegacyRef<HTMLDivElement>;
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var oe=Object.defineProperty;var ae=(e,t,r)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var C=(e,t,r)=>ae(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./nivo-bar.es-CRYH7xvU.cjs"),u=require("react"),N=require("@azure/msal-browser"),ie=require("@azure/msal-react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");const le=require("./Loading-DVzR10eX.cjs"),ue=require("./useGetApiData-C6zACwiC.cjs"),ce=require("./useLocalStorageState-BFc8Gc8H.cjs");function fe(e){const t=o.toDate(e);return t.setHours(23,59,59,999),t}function de(){return fe(Date.now())}function me(e,t){const r=+o.toDate(e),[n,s]=[+o.toDate(t.start),+o.toDate(t.end)].sort((a,f)=>a-f);return r>=n&&r<=s}function pe(){return o.startOfDay(Date.now())}const he=({children:e})=>{const[t,r]=u.useState(!1),[n,s]=u.useState(""),a=u.useCallback(l=>{r(!0),s(l)},[]),f=u.useCallback(()=>{r(!1)},[]),i=u.useMemo(()=>({show:t,text:n,showConfirm:a,hideConfirm:f}),[t,n,a,f]);return o.jsxRuntimeExports.jsxs(o.ConfirmContext.Provider,{value:i,children:[o.jsxRuntimeExports.jsx(Ze,{}),e]})},xe=()=>{const{texts:{confirm:e}}=u.useContext(o.LuminusComponentsContext),{isShown:t,text:r,onFinish:n}=o.usePrompt(),{options:s}=u.useContext(o.PromptContext),[a,f]=u.useState(s.defaultValue??""),i=u.useCallback(()=>{n(null)},[n]),l=u.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&n(a)},[n,s.required,a]);u.useEffect(()=>{t===!0&&f(s.defaultValue??"")},[t,s.defaultValue]);const c=u.useMemo(()=>({value:a,onChange:d=>f(d.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return o.jsxRuntimeExports.jsxs(o.Modal,{show:t,size:"sm",centered:!0,onHide:i,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:r})}),o.jsxRuntimeExports.jsxs("form",{onSubmit:l,children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...c,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...c,type:s.type}):void 0]}),o.jsxRuntimeExports.jsxs(o.Modal.Footer,{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{variant:"outlined",color:"secondary",onClick:i,className:"flex-grow-1",children:e.cancel}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{color:"primary",disabled:s.required&&!a,type:"submit",className:"flex-grow-1",children:e.confirm})]})]})]})},ge=({children:e})=>{const[t,r]=u.useState(!1),[n,s]=u.useState(""),[a,f]=u.useState({input:"textarea",type:"text"}),i=u.useRef(()=>{}),l=u.useCallback(m=>{s(m),r(!0)},[]),c=u.useCallback(()=>{r(!1)},[]),d=u.useMemo(()=>({isShown:t,text:n,showPrompt:l,hidePrompt:c,resolveRef:i,options:a,setOptions:f}),[t,n,l,c,a]);return o.jsxRuntimeExports.jsxs(o.PromptContext.Provider,{value:d,children:[e,o.jsxRuntimeExports.jsx(xe,{})]})},ye=({cookieDomain:e,axiosOptions:t,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:f,children:i})=>{const l=u.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:f}),[t,e,r,s,a,n,f]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:l,children:o.jsxRuntimeExports.jsx(he,{children:o.jsxRuntimeExports.jsxs(ge,{children:[o.jsxRuntimeExports.jsx(o.Ie,{}),i]})})})},ve=({children:e})=>{const[t,r]=u.useState(!1),[n]=u.useState(new Set),s=u.useCallback(i=>{n.add(i),r(!0)},[n]),a=u.useCallback(i=>{n.delete(i),n.size===0&&r(!1)},[n]),f=u.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:f,children:[t&&o.jsxRuntimeExports.jsx(le.Loading,{}),e]})},Te=({children:e})=>{const t=o.useAxios(),{msalInstance:r}=u.useContext(o.AuthContext),{delegation:n,setDelegation:s,setAvailableDelegations:a,refreshAvailableDelegations:f}=u.useContext(o.DelegationContext),{getToken:i}=o.useAuth(),[l,c]=u.useState(null),d=u.useCallback(async()=>{const x=await i();x&&c(x)},[i]);u.useEffect(()=>{d()},[d]);const h=u.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x??""):null},[])(),[p,g]=u.useState({state:h?o.LoginState.LOGGED_IN:o.LoginState.LOGGING_IN,user:h}),P=u.useCallback(async x=>{let v=null;return await t.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(M=>{v=M.data}).catch(()=>{v=null}),v},[t]),S=u.useCallback(()=>{localStorage.removeItem("user"),g({state:o.LoginState.LOGGED_OUT,user:null}),s(null),a(null)},[a,s]),E=u.useCallback(async x=>{g({state:o.LoginState.LOGGING_IN,user:null});const v=await P(x);return v?(g({state:o.LoginState.LOGGED_IN,user:v}),localStorage.setItem("user",JSON.stringify(v)),await f(),!0):(g({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[P,f]),b=u.useCallback(()=>{S()},[S]);u.useEffect(()=>{if(r){const x=r.addEventCallback(v=>{if(v.eventType===N.EventType.LOGIN_SUCCESS&&v.payload){const M=v.payload;c(M.accessToken)}});return()=>{x&&r.removeEventCallback(x)}}return()=>{}},[r,E,b]);const K=u.useCallback(async x=>{x&&await E(x).catch(()=>{b(),s(null)})},[E,b,s]);u.useEffect(()=>{K(l)},[l,n==null?void 0:n.id,K]);const se=u.useMemo(()=>({user:p.user,userLoginState:p,loginUser:E,logoutUser:b}),[p,E,b]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:se,children:e})},Ce=({...e})=>{const{cookieDomain:t}=u.useContext(o.LuminusComponentsContext),[,r]=o.useCookies(["Authorization"]),n=u.useMemo(()=>({useMsal:e.useMsal??!1,msalInstance:e.useMsal?e.msalInstance??null:null,msalScopes:e.useMsal?e.msalScopes??[]:[]}),[e]);return u.useEffect(()=>{if(e.useMsal){const s=e.msalInstance.addEventCallback(a=>{if(a.eventType===N.EventType.LOGIN_SUCCESS||a.eventType===N.EventType.ACQUIRE_TOKEN_SUCCESS&&a.payload){const f=a.payload,i=f.account;e.msalInstance.setActiveAccount(i);const l=f.accessToken,c=f.expiresOn;r("Authorization",l,{path:"/",secure:!0,sameSite:"none",domain:t,expires:c??void 0})}a.error&&console.error("AuthProvider MSAL Error",a)});return()=>{s&&e.msalInstance.removeEventCallback(s)}}return()=>{}},[e,r,t]),o.jsxRuntimeExports.jsx(o.AuthContext.Provider,{value:n,children:e.useMsal?o.jsxRuntimeExports.jsx(ie.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Ee=({children:e,relativeEndpoint:t})=>{const[r,n,s]=ce.useLocalStorageState("user-delegation",null),a=u.useMemo(()=>{if(!r)return null;const m=r.from?o.parseISO(r.from):pe(),h=r.to?o.parseISO(r.to):de();return me(new Date(Date.now()),{start:m,end:h})?r:(n(null),null)},[r,n]),{data:f,setData:i,reloadData:l}=ue.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),c=u.useRef(null);u.useEffect(()=>{const m=()=>{l(),c.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{c.current!==null&&window.clearTimeout(c.current)}},[l]),u.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,l]);const d=u.useMemo(()=>({delegation:a,setDelegation:n,availableDelegations:f,setAvailableDelegations:i,refreshAvailableDelegations:l}),[a,n,f,i,l]);return o.jsxRuntimeExports.jsx(o.DelegationContext.Provider,{value:d,children:e})};var Se=typeof Element<"u",be=typeof Map=="function",Ae=typeof Set=="function",je=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function k(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!k(e[n],t[n]))return!1;return!0}var a;if(be&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!k(n.value[1],t.get(n.value[0])))return!1;return!0}if(Ae&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(je&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if(Se&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!k(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var Oe=function(t,r){try{return k(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const we=o.getDefaultExportFromCjs(Oe);var Pe=function(t,r,n,s){var a=n?n.call(s,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var f=Object.keys(t),i=Object.keys(r);if(f.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c<f.length;c++){var d=f[c];if(!l(d))return!1;var m=t[d],h=r[d];if(a=n?n.call(s,m,h,d):void 0,a===!1||a===void 0&&m!==h)return!1}return!0};const Re=o.getDefaultExportFromCjs(Pe);var Z=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Z||{}),H={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},V=Object.values(Z),B={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},De=Object.entries(B).reduce((e,[t,r])=>(e[r]=t,e),{}),T="data-rh",O={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},w=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Ie=e=>{let t=w(e,"title");const r=w(e,O.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=w(e,O.DEFAULT_TITLE);return t||n||void 0},ke=e=>w(e,O.ON_CHANGE_CLIENT_STATE)||(()=>{}),_=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),Le=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let a=0;a<s.length;a+=1){const i=s[a].toLowerCase();if(e.indexOf(i)!==-1&&n[i])return r.concat(n)}}return r},[]),Me=e=>console&&typeof console.warn=="function"&&console.warn(e),R=(e,t,r)=>{const n={};return r.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&Me(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,a)=>{const f={};a.filter(l=>{let c;const d=Object.keys(l);for(let h=0;h<d.length;h+=1){const p=d[h],g=p.toLowerCase();t.indexOf(g)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(g==="rel"&&l[g].toLowerCase()==="stylesheet")&&(c=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const m=l[c].toLowerCase();return n[c]||(n[c]={}),f[c]||(f[c]={}),n[c][m]?!1:(f[c][m]=!0,!0)}).reverse().forEach(l=>s.push(l));const i=Object.keys(f);for(let l=0;l<i.length;l+=1){const c=i[l],d={...n[c],...f[c]};n[c]=d}return s},[]).reverse()},He=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},_e=e=>({baseTag:Le(["href"],e),bodyAttributes:_("bodyAttributes",e),defer:w(e,O.DEFER),encode:w(e,O.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:_("htmlAttributes",e),linkTags:R("link",["rel","href"],e),metaTags:R("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:R("noscript",["innerHTML"],e),onChangeClientState:ke(e),scriptTags:R("script",["src","innerHTML"],e),styleTags:R("style",["cssText"],e),title:Ie(e),titleAttributes:_("titleAttributes",e),prioritizeSeoTags:He(e,O.PRIORITIZE_SEO_TAGS)}),Q=e=>Array.isArray(e)?e.join(""):e,$e=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},$=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>($e(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Y=(e,t)=>({...e,[t]:void 0}),Ue=["noscript","script","style"],q=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),X=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),Ne=(e,t,r,n)=>{const s=X(r),a=Q(t);return s?`<${e} ${T}="true" ${s}>${q(a,n)}</${e}>`:`<${e} ${T}="true">${q(a,n)}</${e}>`},qe=(e,t,r=!0)=>t.reduce((n,s)=>{const a=s,f=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const m=typeof a[d]>"u"?d:`${d}="${q(a[d],r)}"`;return c?`${c} ${m}`:m},""),i=a.innerHTML||a.cssText||"",l=Ue.indexOf(e)===-1;return`${n}<${e} ${T}="true" ${f}${l?"/>":`>${i}</${e}>`}`},""),ee=(e,t={})=>Object.keys(e).reduce((r,n)=>{const s=B[n];return r[s||n]=e[n],r},t),Fe=(e,t,r)=>{const n={key:t,[T]:!0},s=ee(r,n);return[u.createElement("title",s,t)]},L=(e,t)=>t.map((r,n)=>{const s={key:n,[T]:!0};return Object.keys(r).forEach(a=>{const i=B[a]||a;if(i==="innerHTML"||i==="cssText"){const l=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[i]=r[a]}),u.createElement(e,s)}),y=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>Fe(e,t.title,t.titleAttributes),toString:()=>Ne(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ee(t),toString:()=>X(t)};default:return{toComponent:()=>L(e,t),toString:()=>qe(e,t,r)}}},Ge=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=$(e,H.meta),a=$(t,H.link),f=$(r,H.script);return{priorityMethods:{toComponent:()=>[...L("meta",s.priority),...L("link",a.priority),...L("script",f.priority)],toString:()=>`${y("meta",s.priority,n)} ${y("link",a.priority,n)} ${y("script",f.priority,n)}`},metaTags:s.default,linkTags:a.default,scriptTags:f.default}},ze=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:a,styleTags:f,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:m,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:d,metaTags:m,scriptTags:h}=Ge(e)),{priority:p,base:y("base",t,n),bodyAttributes:y("bodyAttributes",r,n),htmlAttributes:y("htmlAttributes",s,n),link:y("link",d,n),meta:y("meta",m,n),noscript:y("noscript",a,n),script:y("script",h,n),style:y("style",f,n),title:y("title",{title:i,titleAttributes:l},n)}},F=ze,I=[],te=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){C(this,"instances",[]);C(this,"canUseDOM",te);C(this,"context");C(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?I:this.instances,add:e=>{(this.canUseDOM?I:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?I:this.instances).indexOf(e);(this.canUseDOM?I:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=F({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Be={},re=u.createContext(Be),A,ne=(A=class extends u.Component{constructor(r){super(r);C(this,"helmetData");this.helmetData=new G(this.props.context||{},A.canUseDOM)}render(){return u.createElement(re.Provider,{value:this.helmetData.value},this.props.children)}},C(A,"canUseDOM",te),A),j=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${T}]`),s=[].slice.call(n),a=[];let f;return t&&t.length&&t.forEach(i=>{const l=document.createElement(e);for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c))if(c==="innerHTML")l.innerHTML=i.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=i.cssText:l.appendChild(document.createTextNode(i.cssText));else{const d=c,m=typeof i[d]>"u"?"":i[d];l.setAttribute(c,m)}l.setAttribute(T,"true"),s.some((c,d)=>(f=d,l.isEqualNode(c)))?s.splice(f,1):a.push(l)}),s.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),a.forEach(i=>r.appendChild(i)),{oldTags:s,newTags:a}},z=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(T),s=n?n.split(","):[],a=[...s],f=Object.keys(t);for(const i of f){const l=t[i]||"";r.getAttribute(i)!==l&&r.setAttribute(i,l),s.indexOf(i)===-1&&s.push(i);const c=a.indexOf(i);c!==-1&&a.splice(c,1)}for(let i=a.length-1;i>=0;i-=1)r.removeAttribute(a[i]);s.length===a.length?r.removeAttribute(T):r.getAttribute(T)!==f.join(",")&&r.setAttribute(T,f.join(","))},Ke=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Q(e)),z("title",t)},J=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:a,metaTags:f,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:d,title:m,titleAttributes:h}=e;z("body",n),z("html",s),Ke(m,h);const p={baseTag:j("base",r),linkTags:j("link",a),metaTags:j("meta",f),noscriptTags:j("noscript",i),scriptTags:j("script",c),styleTags:j("style",d)},g={},P={};Object.keys(p).forEach(S=>{const{newTags:E,oldTags:b}=p[S];E.length&&(g[S]=E),b.length&&(P[S]=p[S].oldTags)}),t&&t(),l(e,g,P)},D=null,Ve=e=>{D&&cancelAnimationFrame(D),e.defer?D=requestAnimationFrame(()=>{J(e,()=>{D=null})}):(J(e),D=null)},Ye=Ve,W=class extends u.Component{constructor(){super(...arguments);C(this,"rendered",!1)}shouldComponentUpdate(t){return!Re(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const s=_e(t.get().map(a=>{const f={...a.props};return delete f.context,f}));ne.canUseDOM?Ye(s):F&&(n=F(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},U,Je=(U=class extends u.Component{shouldComponentUpdate(e){return!we(Y(this.props,"helmetData"),Y(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return o.invariant(V.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${V.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),o.invariant(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return u.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:s,...a}=n.props,f=Object.keys(a).reduce((l,c)=>(l[De[c]||c]=a[c],l),{});let{type:i}=n;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(n,s),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,f,s);break;default:t=this.mapObjectTypeChildren(n,t,f,s);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof G)){const s=n;n=new G(s.context,!0),delete r.helmetData}return n?u.createElement(W,{...r,context:n.value}):u.createElement(re.Consumer,null,s=>u.createElement(W,{...r,context:s}))}},C(U,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),U);const We=({defaultHelmet:e,children:t})=>{const[r,n]=u.useState([e]),s=u.useCallback(l=>{n(c=>[...c,l])},[]),a=u.useCallback(()=>{n(l=>l.length>1?l.slice(0,-1):l)},[n]),f=u.useMemo(()=>r.at(-1)??"",[r]),i=u.useMemo(()=>({addHelmet:s,removeHelmet:a}),[s,a]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:i,children:o.jsxRuntimeExports.jsxs(ne,{children:[o.jsxRuntimeExports.jsx(Je,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:f})}),t]})})},Ze=()=>{const{texts:{confirm:e}}=u.useContext(o.LuminusComponentsContext),{onConfirm:t,onCancel:r,text:n,show:s}=o.useConfirm();return o.jsxRuntimeExports.jsxs(o.Modal,{show:s,size:"sm",centered:!0,onHide:r,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:n})}),o.jsxRuntimeExports.jsx(o.Modal.Body,{children:o.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:r,children:e.no}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",color:"primary",onClick:t,className:"w-100 ml",children:e.yes})]})})]})};exports.AuthContext=o.AuthContext;exports.DelegationContext=o.DelegationContext;exports.HelmetContext=o.HelmetContext;exports.LoadingContext=o.LoadingContext;exports.LuminusComponentsContext=o.LuminusComponentsContext;exports.UserContext=o.UserContext;exports.AuthProvider=Ce;exports.DelegationProvider=Ee;exports.HelmetProvider=We;exports.LoadingProvider=ve;exports.LuminusComponentsProvider=ye;exports.UserProvider=Te;
|
|
1
|
+
"use strict";var oe=Object.defineProperty;var ae=(e,t,r)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var C=(e,t,r)=>ae(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./nivo-bar.es-C8-VCzr1.cjs"),u=require("react"),N=require("@azure/msal-browser"),ie=require("@azure/msal-react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");const le=require("./Loading-C-Dsxusq.cjs"),ue=require("./useGetApiData-D4Xo7Loy.cjs"),ce=require("./useLocalStorageState-BFc8Gc8H.cjs");function fe(e){const t=o.toDate(e);return t.setHours(23,59,59,999),t}function de(){return fe(Date.now())}function me(e,t){const r=+o.toDate(e),[n,s]=[+o.toDate(t.start),+o.toDate(t.end)].sort((a,f)=>a-f);return r>=n&&r<=s}function pe(){return o.startOfDay(Date.now())}const he=({children:e})=>{const[t,r]=u.useState(!1),[n,s]=u.useState(""),a=u.useCallback(l=>{r(!0),s(l)},[]),f=u.useCallback(()=>{r(!1)},[]),i=u.useMemo(()=>({show:t,text:n,showConfirm:a,hideConfirm:f}),[t,n,a,f]);return o.jsxRuntimeExports.jsxs(o.ConfirmContext.Provider,{value:i,children:[o.jsxRuntimeExports.jsx(Ze,{}),e]})},xe=()=>{const{texts:{confirm:e}}=u.useContext(o.LuminusComponentsContext),{isShown:t,text:r,onFinish:n}=o.usePrompt(),{options:s}=u.useContext(o.PromptContext),[a,f]=u.useState(s.defaultValue??""),i=u.useCallback(()=>{n(null)},[n]),l=u.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&n(a)},[n,s.required,a]);u.useEffect(()=>{t===!0&&f(s.defaultValue??"")},[t,s.defaultValue]);const c=u.useMemo(()=>({value:a,onChange:d=>f(d.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return o.jsxRuntimeExports.jsxs(o.Modal,{show:t,size:"sm",centered:!0,onHide:i,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:r})}),o.jsxRuntimeExports.jsxs("form",{onSubmit:l,children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...c,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...c,type:s.type}):void 0]}),o.jsxRuntimeExports.jsxs(o.Modal.Footer,{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{variant:"outlined",color:"secondary",onClick:i,className:"flex-grow-1",children:e.cancel}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{color:"primary",disabled:s.required&&!a,type:"submit",className:"flex-grow-1",children:e.confirm})]})]})]})},ge=({children:e})=>{const[t,r]=u.useState(!1),[n,s]=u.useState(""),[a,f]=u.useState({input:"textarea",type:"text"}),i=u.useRef(()=>{}),l=u.useCallback(m=>{s(m),r(!0)},[]),c=u.useCallback(()=>{r(!1)},[]),d=u.useMemo(()=>({isShown:t,text:n,showPrompt:l,hidePrompt:c,resolveRef:i,options:a,setOptions:f}),[t,n,l,c,a]);return o.jsxRuntimeExports.jsxs(o.PromptContext.Provider,{value:d,children:[e,o.jsxRuntimeExports.jsx(xe,{})]})},ye=({cookieDomain:e,axiosOptions:t,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:f,children:i})=>{const l=u.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:f}),[t,e,r,s,a,n,f]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:l,children:o.jsxRuntimeExports.jsx(he,{children:o.jsxRuntimeExports.jsxs(ge,{children:[o.jsxRuntimeExports.jsx(o.Ie,{}),i]})})})},ve=({children:e})=>{const[t,r]=u.useState(!1),[n]=u.useState(new Set),s=u.useCallback(i=>{n.add(i),r(!0)},[n]),a=u.useCallback(i=>{n.delete(i),n.size===0&&r(!1)},[n]),f=u.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:f,children:[t&&o.jsxRuntimeExports.jsx(le.Loading,{}),e]})},Te=({children:e})=>{const t=o.useAxios(),{msalInstance:r}=u.useContext(o.AuthContext),{delegation:n,setDelegation:s,setAvailableDelegations:a,refreshAvailableDelegations:f}=u.useContext(o.DelegationContext),{getToken:i}=o.useAuth(),[l,c]=u.useState(null),d=u.useCallback(async()=>{const x=await i();x&&c(x)},[i]);u.useEffect(()=>{d()},[d]);const h=u.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x??""):null},[])(),[p,g]=u.useState({state:h?o.LoginState.LOGGED_IN:o.LoginState.LOGGING_IN,user:h}),P=u.useCallback(async x=>{let v=null;return await t.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(M=>{v=M.data}).catch(()=>{v=null}),v},[t]),S=u.useCallback(()=>{localStorage.removeItem("user"),g({state:o.LoginState.LOGGED_OUT,user:null}),s(null),a(null)},[a,s]),E=u.useCallback(async x=>{g({state:o.LoginState.LOGGING_IN,user:null});const v=await P(x);return v?(g({state:o.LoginState.LOGGED_IN,user:v}),localStorage.setItem("user",JSON.stringify(v)),await f(),!0):(g({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[P,f]),b=u.useCallback(()=>{S()},[S]);u.useEffect(()=>{if(r){const x=r.addEventCallback(v=>{if(v.eventType===N.EventType.LOGIN_SUCCESS&&v.payload){const M=v.payload;c(M.accessToken)}});return()=>{x&&r.removeEventCallback(x)}}return()=>{}},[r,E,b]);const K=u.useCallback(async x=>{x&&await E(x).catch(()=>{b(),s(null)})},[E,b,s]);u.useEffect(()=>{K(l)},[l,n==null?void 0:n.id,K]);const se=u.useMemo(()=>({user:p.user,userLoginState:p,loginUser:E,logoutUser:b}),[p,E,b]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:se,children:e})},Ce=({...e})=>{const{cookieDomain:t}=u.useContext(o.LuminusComponentsContext),[,r]=o.useCookies(["Authorization"]),n=u.useMemo(()=>({useMsal:e.useMsal??!1,msalInstance:e.useMsal?e.msalInstance??null:null,msalScopes:e.useMsal?e.msalScopes??[]:[]}),[e]);return u.useEffect(()=>{if(e.useMsal){const s=e.msalInstance.addEventCallback(a=>{if(a.eventType===N.EventType.LOGIN_SUCCESS||a.eventType===N.EventType.ACQUIRE_TOKEN_SUCCESS&&a.payload){const f=a.payload,i=f.account;e.msalInstance.setActiveAccount(i);const l=f.accessToken,c=f.expiresOn;r("Authorization",l,{path:"/",secure:!0,sameSite:"none",domain:t,expires:c??void 0})}a.error&&console.error("AuthProvider MSAL Error",a)});return()=>{s&&e.msalInstance.removeEventCallback(s)}}return()=>{}},[e,r,t]),o.jsxRuntimeExports.jsx(o.AuthContext.Provider,{value:n,children:e.useMsal?o.jsxRuntimeExports.jsx(ie.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Ee=({children:e,relativeEndpoint:t})=>{const[r,n,s]=ce.useLocalStorageState("user-delegation",null),a=u.useMemo(()=>{if(!r)return null;const m=r.from?o.parseISO(r.from):pe(),h=r.to?o.parseISO(r.to):de();return me(new Date(Date.now()),{start:m,end:h})?r:(n(null),null)},[r,n]),{data:f,setData:i,reloadData:l}=ue.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),c=u.useRef(null);u.useEffect(()=>{const m=()=>{l(),c.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{c.current!==null&&window.clearTimeout(c.current)}},[l]),u.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,l]);const d=u.useMemo(()=>({delegation:a,setDelegation:n,availableDelegations:f,setAvailableDelegations:i,refreshAvailableDelegations:l}),[a,n,f,i,l]);return o.jsxRuntimeExports.jsx(o.DelegationContext.Provider,{value:d,children:e})};var Se=typeof Element<"u",be=typeof Map=="function",Ae=typeof Set=="function",je=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function k(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!k(e[n],t[n]))return!1;return!0}var a;if(be&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!k(n.value[1],t.get(n.value[0])))return!1;return!0}if(Ae&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(je&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;if(Se&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&e.$$typeof)&&!k(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var Oe=function(t,r){try{return k(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const we=o.getDefaultExportFromCjs(Oe);var Pe=function(t,r,n,s){var a=n?n.call(s,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var f=Object.keys(t),i=Object.keys(r);if(f.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c<f.length;c++){var d=f[c];if(!l(d))return!1;var m=t[d],h=r[d];if(a=n?n.call(s,m,h,d):void 0,a===!1||a===void 0&&m!==h)return!1}return!0};const Re=o.getDefaultExportFromCjs(Pe);var Z=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Z||{}),H={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},V=Object.values(Z),B={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},De=Object.entries(B).reduce((e,[t,r])=>(e[r]=t,e),{}),T="data-rh",O={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},w=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Ie=e=>{let t=w(e,"title");const r=w(e,O.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=w(e,O.DEFAULT_TITLE);return t||n||void 0},ke=e=>w(e,O.ON_CHANGE_CLIENT_STATE)||(()=>{}),_=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),Le=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let a=0;a<s.length;a+=1){const i=s[a].toLowerCase();if(e.indexOf(i)!==-1&&n[i])return r.concat(n)}}return r},[]),Me=e=>console&&typeof console.warn=="function"&&console.warn(e),R=(e,t,r)=>{const n={};return r.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&Me(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,a)=>{const f={};a.filter(l=>{let c;const d=Object.keys(l);for(let h=0;h<d.length;h+=1){const p=d[h],g=p.toLowerCase();t.indexOf(g)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(g==="rel"&&l[g].toLowerCase()==="stylesheet")&&(c=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const m=l[c].toLowerCase();return n[c]||(n[c]={}),f[c]||(f[c]={}),n[c][m]?!1:(f[c][m]=!0,!0)}).reverse().forEach(l=>s.push(l));const i=Object.keys(f);for(let l=0;l<i.length;l+=1){const c=i[l],d={...n[c],...f[c]};n[c]=d}return s},[]).reverse()},He=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},_e=e=>({baseTag:Le(["href"],e),bodyAttributes:_("bodyAttributes",e),defer:w(e,O.DEFER),encode:w(e,O.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:_("htmlAttributes",e),linkTags:R("link",["rel","href"],e),metaTags:R("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:R("noscript",["innerHTML"],e),onChangeClientState:ke(e),scriptTags:R("script",["src","innerHTML"],e),styleTags:R("style",["cssText"],e),title:Ie(e),titleAttributes:_("titleAttributes",e),prioritizeSeoTags:He(e,O.PRIORITIZE_SEO_TAGS)}),Q=e=>Array.isArray(e)?e.join(""):e,$e=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},$=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>($e(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},Y=(e,t)=>({...e,[t]:void 0}),Ue=["noscript","script","style"],q=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),X=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),Ne=(e,t,r,n)=>{const s=X(r),a=Q(t);return s?`<${e} ${T}="true" ${s}>${q(a,n)}</${e}>`:`<${e} ${T}="true">${q(a,n)}</${e}>`},qe=(e,t,r=!0)=>t.reduce((n,s)=>{const a=s,f=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,d)=>{const m=typeof a[d]>"u"?d:`${d}="${q(a[d],r)}"`;return c?`${c} ${m}`:m},""),i=a.innerHTML||a.cssText||"",l=Ue.indexOf(e)===-1;return`${n}<${e} ${T}="true" ${f}${l?"/>":`>${i}</${e}>`}`},""),ee=(e,t={})=>Object.keys(e).reduce((r,n)=>{const s=B[n];return r[s||n]=e[n],r},t),Fe=(e,t,r)=>{const n={key:t,[T]:!0},s=ee(r,n);return[u.createElement("title",s,t)]},L=(e,t)=>t.map((r,n)=>{const s={key:n,[T]:!0};return Object.keys(r).forEach(a=>{const i=B[a]||a;if(i==="innerHTML"||i==="cssText"){const l=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[i]=r[a]}),u.createElement(e,s)}),y=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>Fe(e,t.title,t.titleAttributes),toString:()=>Ne(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ee(t),toString:()=>X(t)};default:return{toComponent:()=>L(e,t),toString:()=>qe(e,t,r)}}},Ge=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=$(e,H.meta),a=$(t,H.link),f=$(r,H.script);return{priorityMethods:{toComponent:()=>[...L("meta",s.priority),...L("link",a.priority),...L("script",f.priority)],toString:()=>`${y("meta",s.priority,n)} ${y("link",a.priority,n)} ${y("script",f.priority,n)}`},metaTags:s.default,linkTags:a.default,scriptTags:f.default}},ze=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:a,styleTags:f,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:d,metaTags:m,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:d,metaTags:m,scriptTags:h}=Ge(e)),{priority:p,base:y("base",t,n),bodyAttributes:y("bodyAttributes",r,n),htmlAttributes:y("htmlAttributes",s,n),link:y("link",d,n),meta:y("meta",m,n),noscript:y("noscript",a,n),script:y("script",h,n),style:y("style",f,n),title:y("title",{title:i,titleAttributes:l},n)}},F=ze,I=[],te=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){C(this,"instances",[]);C(this,"canUseDOM",te);C(this,"context");C(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?I:this.instances,add:e=>{(this.canUseDOM?I:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?I:this.instances).indexOf(e);(this.canUseDOM?I:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=F({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Be={},re=u.createContext(Be),A,ne=(A=class extends u.Component{constructor(r){super(r);C(this,"helmetData");this.helmetData=new G(this.props.context||{},A.canUseDOM)}render(){return u.createElement(re.Provider,{value:this.helmetData.value},this.props.children)}},C(A,"canUseDOM",te),A),j=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${T}]`),s=[].slice.call(n),a=[];let f;return t&&t.length&&t.forEach(i=>{const l=document.createElement(e);for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c))if(c==="innerHTML")l.innerHTML=i.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=i.cssText:l.appendChild(document.createTextNode(i.cssText));else{const d=c,m=typeof i[d]>"u"?"":i[d];l.setAttribute(c,m)}l.setAttribute(T,"true"),s.some((c,d)=>(f=d,l.isEqualNode(c)))?s.splice(f,1):a.push(l)}),s.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),a.forEach(i=>r.appendChild(i)),{oldTags:s,newTags:a}},z=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(T),s=n?n.split(","):[],a=[...s],f=Object.keys(t);for(const i of f){const l=t[i]||"";r.getAttribute(i)!==l&&r.setAttribute(i,l),s.indexOf(i)===-1&&s.push(i);const c=a.indexOf(i);c!==-1&&a.splice(c,1)}for(let i=a.length-1;i>=0;i-=1)r.removeAttribute(a[i]);s.length===a.length?r.removeAttribute(T):r.getAttribute(T)!==f.join(",")&&r.setAttribute(T,f.join(","))},Ke=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Q(e)),z("title",t)},J=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:a,metaTags:f,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:d,title:m,titleAttributes:h}=e;z("body",n),z("html",s),Ke(m,h);const p={baseTag:j("base",r),linkTags:j("link",a),metaTags:j("meta",f),noscriptTags:j("noscript",i),scriptTags:j("script",c),styleTags:j("style",d)},g={},P={};Object.keys(p).forEach(S=>{const{newTags:E,oldTags:b}=p[S];E.length&&(g[S]=E),b.length&&(P[S]=p[S].oldTags)}),t&&t(),l(e,g,P)},D=null,Ve=e=>{D&&cancelAnimationFrame(D),e.defer?D=requestAnimationFrame(()=>{J(e,()=>{D=null})}):(J(e),D=null)},Ye=Ve,W=class extends u.Component{constructor(){super(...arguments);C(this,"rendered",!1)}shouldComponentUpdate(t){return!Re(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const s=_e(t.get().map(a=>{const f={...a.props};return delete f.context,f}));ne.canUseDOM?Ye(s):F&&(n=F(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},U,Je=(U=class extends u.Component{shouldComponentUpdate(e){return!we(Y(this.props,"helmetData"),Y(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return o.invariant(V.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${V.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),o.invariant(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return u.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:s,...a}=n.props,f=Object.keys(a).reduce((l,c)=>(l[De[c]||c]=a[c],l),{});let{type:i}=n;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(n,s),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,f,s);break;default:t=this.mapObjectTypeChildren(n,t,f,s);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof G)){const s=n;n=new G(s.context,!0),delete r.helmetData}return n?u.createElement(W,{...r,context:n.value}):u.createElement(re.Consumer,null,s=>u.createElement(W,{...r,context:s}))}},C(U,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),U);const We=({defaultHelmet:e,children:t})=>{const[r,n]=u.useState([e]),s=u.useCallback(l=>{n(c=>[...c,l])},[]),a=u.useCallback(()=>{n(l=>l.length>1?l.slice(0,-1):l)},[n]),f=u.useMemo(()=>r.at(-1)??"",[r]),i=u.useMemo(()=>({addHelmet:s,removeHelmet:a}),[s,a]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:i,children:o.jsxRuntimeExports.jsxs(ne,{children:[o.jsxRuntimeExports.jsx(Je,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:f})}),t]})})},Ze=()=>{const{texts:{confirm:e}}=u.useContext(o.LuminusComponentsContext),{onConfirm:t,onCancel:r,text:n,show:s}=o.useConfirm();return o.jsxRuntimeExports.jsxs(o.Modal,{show:s,size:"sm",centered:!0,onHide:r,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:n})}),o.jsxRuntimeExports.jsx(o.Modal.Body,{children:o.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:r,children:e.no}),o.jsxRuntimeExports.jsx(o.PrimaryButton,{type:"button",color:"primary",onClick:t,className:"w-100 ml",children:e.yes})]})})]})};exports.AuthContext=o.AuthContext;exports.DelegationContext=o.DelegationContext;exports.HelmetContext=o.HelmetContext;exports.LoadingContext=o.LoadingContext;exports.LuminusComponentsContext=o.LuminusComponentsContext;exports.UserContext=o.UserContext;exports.AuthProvider=Ce;exports.DelegationProvider=Ee;exports.HelmetProvider=We;exports.LoadingProvider=ve;exports.LuminusComponentsProvider=ye;exports.UserProvider=Te;
|