react-luminus-components 1.3.48 → 1.3.49
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 +69 -69
- package/dist/{PrimaryButton-R456AnRz.js → PrimaryButton-ByKyWqwd.js} +1 -1
- package/dist/{PrimaryButton-CPcXJhYt.cjs → PrimaryButton-CFqOb1bv.cjs} +1 -1
- package/dist/{SimpleTooltip-DYrAVkD0.cjs → SimpleTooltip-DYxPkXgn.cjs} +1 -1
- package/dist/{SimpleTooltip-CN7Is6YN.js → SimpleTooltip-DqIdlcRY.js} +1 -1
- package/dist/components/common/SearchBox/SearchBox.d.ts +8 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +8 -8
- package/dist/{dateUtils-DLb1nP1q.js → dateUtils-D3ihjADH.js} +13 -13
- package/dist/{dateUtils-Bc-kGMdV.cjs → dateUtils-Sm1hYKnO.cjs} +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +37 -37
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +1344 -1334
- package/dist/{nivo-pie.es-BJ1l5OpS.cjs → nivo-pie.es-CeZbGy8u.cjs} +40 -40
- package/dist/{nivo-pie.es-CoN57YDH.js → nivo-pie.es-mdfdQL4R.js} +219 -215
- package/dist/{searchUtils-CKVGpXMd.js → searchUtils-pmMfjkU3.js} +1 -1
- package/dist/{searchUtils-BV44hoaC.cjs → searchUtils-qC84J1Yy.cjs} +1 -1
- package/dist/{useConfirm-DZ-jWpsy.js → useConfirm-Ck4Qo5KA.js} +1 -1
- package/dist/{useConfirm-CUsacgMv.cjs → useConfirm-cHBuY98J.cjs} +1 -1
- package/dist/{useLocalStorageState-CnG22J8a.js → useLocalStorageState-CTM-VtC2.js} +11 -11
- package/dist/{useLocalStorageState-isx3MAJp.cjs → useLocalStorageState-ClBA0936.cjs} +1 -1
- package/dist/{usePermissions-3oMWt-B1.cjs → usePermissions-Bzr5Et1a.cjs} +1 -1
- package/dist/{usePermissions-Ca5nob2q.js → usePermissions-RgnKfews.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +15 -15
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_PrimaryButton-
|
|
3
|
-
"file": "PrimaryButton-
|
|
2
|
+
"_PrimaryButton-ByKyWqwd.js": {
|
|
3
|
+
"file": "PrimaryButton-ByKyWqwd.js",
|
|
4
4
|
"name": "PrimaryButton",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_nivo-pie.es-
|
|
6
|
+
"_nivo-pie.es-mdfdQL4R.js"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_PrimaryButton-
|
|
10
|
-
"file": "PrimaryButton-
|
|
9
|
+
"_PrimaryButton-CFqOb1bv.cjs": {
|
|
10
|
+
"file": "PrimaryButton-CFqOb1bv.cjs",
|
|
11
11
|
"name": "PrimaryButton",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_nivo-pie.es-
|
|
13
|
+
"_nivo-pie.es-CeZbGy8u.cjs"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_SimpleTooltip-
|
|
17
|
-
"file": "SimpleTooltip-
|
|
16
|
+
"_SimpleTooltip-DYxPkXgn.cjs": {
|
|
17
|
+
"file": "SimpleTooltip-DYxPkXgn.cjs",
|
|
18
18
|
"name": "SimpleTooltip",
|
|
19
19
|
"imports": [
|
|
20
|
-
"_nivo-pie.es-
|
|
20
|
+
"_nivo-pie.es-CeZbGy8u.cjs"
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
|
-
"_SimpleTooltip-
|
|
24
|
-
"file": "SimpleTooltip-
|
|
23
|
+
"_SimpleTooltip-DqIdlcRY.js": {
|
|
24
|
+
"file": "SimpleTooltip-DqIdlcRY.js",
|
|
25
25
|
"name": "SimpleTooltip",
|
|
26
26
|
"imports": [
|
|
27
|
-
"_nivo-pie.es-
|
|
27
|
+
"_nivo-pie.es-mdfdQL4R.js"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
"_dateUtils-
|
|
31
|
-
"file": "dateUtils-
|
|
30
|
+
"_dateUtils-D3ihjADH.js": {
|
|
31
|
+
"file": "dateUtils-D3ihjADH.js",
|
|
32
32
|
"name": "dateUtils",
|
|
33
33
|
"imports": [
|
|
34
|
-
"_nivo-pie.es-
|
|
34
|
+
"_nivo-pie.es-mdfdQL4R.js"
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
-
"_dateUtils-
|
|
38
|
-
"file": "dateUtils-
|
|
37
|
+
"_dateUtils-Sm1hYKnO.cjs": {
|
|
38
|
+
"file": "dateUtils-Sm1hYKnO.cjs",
|
|
39
39
|
"name": "dateUtils",
|
|
40
40
|
"imports": [
|
|
41
|
-
"_nivo-pie.es-
|
|
41
|
+
"_nivo-pie.es-CeZbGy8u.cjs"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
-
"_nivo-pie.es-
|
|
45
|
-
"file": "nivo-pie.es-
|
|
44
|
+
"_nivo-pie.es-CeZbGy8u.cjs": {
|
|
45
|
+
"file": "nivo-pie.es-CeZbGy8u.cjs",
|
|
46
46
|
"name": "nivo-pie.es"
|
|
47
47
|
},
|
|
48
|
-
"_nivo-pie.es-
|
|
49
|
-
"file": "nivo-pie.es-
|
|
48
|
+
"_nivo-pie.es-mdfdQL4R.js": {
|
|
49
|
+
"file": "nivo-pie.es-mdfdQL4R.js",
|
|
50
50
|
"name": "nivo-pie.es"
|
|
51
51
|
},
|
|
52
|
-
"_searchUtils-
|
|
53
|
-
"file": "searchUtils-
|
|
52
|
+
"_searchUtils-pmMfjkU3.js": {
|
|
53
|
+
"file": "searchUtils-pmMfjkU3.js",
|
|
54
54
|
"name": "searchUtils",
|
|
55
55
|
"imports": [
|
|
56
|
-
"_nivo-pie.es-
|
|
56
|
+
"_nivo-pie.es-mdfdQL4R.js"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
-
"_searchUtils-
|
|
60
|
-
"file": "searchUtils-
|
|
59
|
+
"_searchUtils-qC84J1Yy.cjs": {
|
|
60
|
+
"file": "searchUtils-qC84J1Yy.cjs",
|
|
61
61
|
"name": "searchUtils",
|
|
62
62
|
"imports": [
|
|
63
|
-
"_nivo-pie.es-
|
|
63
|
+
"_nivo-pie.es-CeZbGy8u.cjs"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"_useConfirm-
|
|
67
|
-
"file": "useConfirm-
|
|
66
|
+
"_useConfirm-Ck4Qo5KA.js": {
|
|
67
|
+
"file": "useConfirm-Ck4Qo5KA.js",
|
|
68
68
|
"name": "useConfirm",
|
|
69
69
|
"imports": [
|
|
70
|
-
"_nivo-pie.es-
|
|
70
|
+
"_nivo-pie.es-mdfdQL4R.js"
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
|
-
"_useConfirm-
|
|
74
|
-
"file": "useConfirm-
|
|
73
|
+
"_useConfirm-cHBuY98J.cjs": {
|
|
74
|
+
"file": "useConfirm-cHBuY98J.cjs",
|
|
75
75
|
"name": "useConfirm",
|
|
76
76
|
"imports": [
|
|
77
|
-
"_nivo-pie.es-
|
|
77
|
+
"_nivo-pie.es-CeZbGy8u.cjs"
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
80
|
"_useEmployeePhotoPath-BgHzjvUU.cjs": {
|
|
@@ -85,32 +85,32 @@
|
|
|
85
85
|
"file": "useEmployeePhotoPath-DjxgOb6H.js",
|
|
86
86
|
"name": "useEmployeePhotoPath"
|
|
87
87
|
},
|
|
88
|
-
"_useLocalStorageState-
|
|
89
|
-
"file": "useLocalStorageState-
|
|
88
|
+
"_useLocalStorageState-CTM-VtC2.js": {
|
|
89
|
+
"file": "useLocalStorageState-CTM-VtC2.js",
|
|
90
90
|
"name": "useLocalStorageState",
|
|
91
91
|
"imports": [
|
|
92
|
-
"_nivo-pie.es-
|
|
92
|
+
"_nivo-pie.es-mdfdQL4R.js"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"_useLocalStorageState-
|
|
96
|
-
"file": "useLocalStorageState-
|
|
95
|
+
"_useLocalStorageState-ClBA0936.cjs": {
|
|
96
|
+
"file": "useLocalStorageState-ClBA0936.cjs",
|
|
97
97
|
"name": "useLocalStorageState",
|
|
98
98
|
"imports": [
|
|
99
|
-
"_nivo-pie.es-
|
|
99
|
+
"_nivo-pie.es-CeZbGy8u.cjs"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
|
-
"_usePermissions-
|
|
103
|
-
"file": "usePermissions-
|
|
102
|
+
"_usePermissions-Bzr5Et1a.cjs": {
|
|
103
|
+
"file": "usePermissions-Bzr5Et1a.cjs",
|
|
104
104
|
"name": "usePermissions",
|
|
105
105
|
"imports": [
|
|
106
|
-
"_nivo-pie.es-
|
|
106
|
+
"_nivo-pie.es-CeZbGy8u.cjs"
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
-
"_usePermissions-
|
|
110
|
-
"file": "usePermissions-
|
|
109
|
+
"_usePermissions-RgnKfews.js": {
|
|
110
|
+
"file": "usePermissions-RgnKfews.js",
|
|
111
111
|
"name": "usePermissions",
|
|
112
112
|
"imports": [
|
|
113
|
-
"_nivo-pie.es-
|
|
113
|
+
"_nivo-pie.es-mdfdQL4R.js"
|
|
114
114
|
]
|
|
115
115
|
},
|
|
116
116
|
"src/contexts/index.ts": {
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
"src": "src/contexts/index.ts",
|
|
120
120
|
"isEntry": true,
|
|
121
121
|
"imports": [
|
|
122
|
-
"_nivo-pie.es-
|
|
123
|
-
"_useConfirm-
|
|
124
|
-
"_PrimaryButton-
|
|
125
|
-
"_useLocalStorageState-
|
|
126
|
-
"_dateUtils-
|
|
122
|
+
"_nivo-pie.es-CeZbGy8u.cjs",
|
|
123
|
+
"_useConfirm-cHBuY98J.cjs",
|
|
124
|
+
"_PrimaryButton-CFqOb1bv.cjs",
|
|
125
|
+
"_useLocalStorageState-ClBA0936.cjs",
|
|
126
|
+
"_dateUtils-Sm1hYKnO.cjs"
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
129
|
"src/hooks/index.ts": {
|
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
"src": "src/hooks/index.ts",
|
|
133
133
|
"isEntry": true,
|
|
134
134
|
"imports": [
|
|
135
|
-
"_nivo-pie.es-
|
|
136
|
-
"_useConfirm-
|
|
137
|
-
"_useLocalStorageState-
|
|
138
|
-
"_dateUtils-
|
|
135
|
+
"_nivo-pie.es-CeZbGy8u.cjs",
|
|
136
|
+
"_useConfirm-cHBuY98J.cjs",
|
|
137
|
+
"_useLocalStorageState-ClBA0936.cjs",
|
|
138
|
+
"_dateUtils-Sm1hYKnO.cjs",
|
|
139
139
|
"_useEmployeePhotoPath-BgHzjvUU.cjs",
|
|
140
|
-
"_usePermissions-
|
|
140
|
+
"_usePermissions-Bzr5Et1a.cjs"
|
|
141
141
|
]
|
|
142
142
|
},
|
|
143
143
|
"src/layout/index.ts": {
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
"src": "src/layout/index.ts",
|
|
147
147
|
"isEntry": true,
|
|
148
148
|
"imports": [
|
|
149
|
-
"_nivo-pie.es-
|
|
150
|
-
"_usePermissions-
|
|
151
|
-
"_SimpleTooltip-
|
|
149
|
+
"_nivo-pie.es-CeZbGy8u.cjs",
|
|
150
|
+
"_usePermissions-Bzr5Et1a.cjs",
|
|
151
|
+
"_SimpleTooltip-DYxPkXgn.cjs"
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
154
|
"src/main.ts": {
|
|
@@ -157,13 +157,13 @@
|
|
|
157
157
|
"src": "src/main.ts",
|
|
158
158
|
"isEntry": true,
|
|
159
159
|
"imports": [
|
|
160
|
-
"_nivo-pie.es-
|
|
161
|
-
"_PrimaryButton-
|
|
162
|
-
"_dateUtils-
|
|
163
|
-
"_SimpleTooltip-
|
|
160
|
+
"_nivo-pie.es-CeZbGy8u.cjs",
|
|
161
|
+
"_PrimaryButton-CFqOb1bv.cjs",
|
|
162
|
+
"_dateUtils-Sm1hYKnO.cjs",
|
|
163
|
+
"_SimpleTooltip-DYxPkXgn.cjs",
|
|
164
164
|
"_useEmployeePhotoPath-BgHzjvUU.cjs",
|
|
165
|
-
"_useConfirm-
|
|
166
|
-
"_searchUtils-
|
|
165
|
+
"_useConfirm-cHBuY98J.cjs",
|
|
166
|
+
"_searchUtils-qC84J1Yy.cjs"
|
|
167
167
|
]
|
|
168
168
|
},
|
|
169
169
|
"src/utils/index.ts": {
|
|
@@ -172,10 +172,10 @@
|
|
|
172
172
|
"src": "src/utils/index.ts",
|
|
173
173
|
"isEntry": true,
|
|
174
174
|
"imports": [
|
|
175
|
-
"_nivo-pie.es-
|
|
176
|
-
"_dateUtils-
|
|
177
|
-
"_searchUtils-
|
|
178
|
-
"_SimpleTooltip-
|
|
175
|
+
"_nivo-pie.es-CeZbGy8u.cjs",
|
|
176
|
+
"_dateUtils-Sm1hYKnO.cjs",
|
|
177
|
+
"_searchUtils-qC84J1Yy.cjs",
|
|
178
|
+
"_SimpleTooltip-DYxPkXgn.cjs"
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
181
|
"style.css": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r, c as d, P as D, M as tt, v as R, J as nt,
|
|
1
|
+
import { j as r, c as d, P as D, M as tt, v as R, J as nt, aw as be, ax as Se, o as V, G as $e, ay as ot, az as st, w as T, aA as je, aB as ke, aC as Le, aD as at, aE as _e, aF as rt, A as it, I as lt, L as dt, aG as Oe, F as De, H as ct, aH as ut } from "./nivo-pie.es-mdfdQL4R.js";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import { useRef as N, useEffect as we, useContext as Ie, forwardRef as ft, useState as ve, useImperativeHandle as mt, useCallback as Ee, useMemo as gt } from "react";
|
|
4
4
|
import ht from "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./nivo-pie.es-BJ1l5OpS.cjs"),c=require("react"),Ke=require("react-dom"),qe=require("react-router-dom");function Ve(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const u=Ve(c),ze="_loading_rgybp_1",Pe="_spinner-grow_rgybp_10",Xe="_second_rgybp_14",Ye="_third_rgybp_17",Je="_loadingBlock_rgybp_21",N={loading:ze,"spinner-grow":"_spinner-grow_rgybp_10",spinnerGrow:Pe,second:Xe,third:Ye,loadingBlock:Je},Qe=()=>n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-loading",N.loading),children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary"),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary",N.second),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary",N.third),role:"status"})]}),we=t=>u.forwardRef((e,s)=>n.jsxRuntimeExports.jsx("div",{...e,ref:s,className:n.classNames(e.className,t)}));function Ne(t){const e=c.useRef(null);return c.useEffect(()=>{e.current=t}),e.current}const Ze={"aria-label":n.Oe.string,onClick:n.Oe.func,variant:n.Oe.oneOf(["white"])},Z=u.forwardRef(({className:t,variant:e,"aria-label":s="Close",...o},r)=>n.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:n.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":s,...o}));Z.displayName="CloseButton";Z.propTypes=Ze;var et=Function.prototype.bind.call(Function.prototype.call,[].slice);function j(t,e){return et(t.querySelectorAll(e))}const tt="data-rr-ui-";function je(t){return`${tt}${t}`}const nt={type:n.Oe.string,tooltip:n.Oe.bool,as:n.Oe.elementType},ee=u.forwardRef(({as:t="div",className:e,type:s="valid",tooltip:o=!1,...r},a)=>n.jsxRuntimeExports.jsx(t,{...r,ref:a,className:n.classNames(e,`${s}-${o?"tooltip":"feedback"}`)}));ee.displayName="Feedback";ee.propTypes=nt;const Ce=u.forwardRef(({bsPrefix:t,type:e,size:s,htmlSize:o,id:r,className:a,isValid:g=!1,isInvalid:m=!1,plaintext:h,readOnly:y,as:f="input",...v},x)=>{const{controlId:E}=c.useContext(n.FormContext);return t=n.useBootstrapPrefix(t,"form-control"),process.env.NODE_ENV!=="production"&&n.warning(E==null||!r,"`controlId` is ignored on `<FormControl>` when `id` is specified."),n.jsxRuntimeExports.jsx(f,{...v,type:e,size:o,ref:x,readOnly:y,id:r||E,className:n.classNames(a,h?`${t}-plaintext`:t,s&&`${t}-${s}`,e==="color"&&`${t}-color`,g&&"is-valid",m&&"is-invalid")})});Ce.displayName="FormControl";const st=Object.assign(Ce,{Feedback:ee});var Q;function Re(t){if((!Q&&Q!==0||t)&&n.canUseDOM){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),Q=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Q}function me(t){t===void 0&&(t=n.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function ot(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const be=je("modal-open");class ge{constructor({ownerDocument:e,handleContainerOverflow:s=!0,isRTL:o=!1}={}){this.handleContainerOverflow=s,this.isRTL=o,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return ot(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const s={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[o]:r.style[o]},e.scrollBarWidth&&(s[o]=`${parseInt(n.style(r,o)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(be,""),n.style(r,s)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const s=this.getElement();s.removeAttribute(be),Object.assign(s.style,e.style)}add(e){let s=this.modals.indexOf(e);return s!==-1||(s=this.modals.length,this.modals.push(e),this.setModalAttributes(e),s!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),s}remove(e){const s=this.modals.indexOf(e);s!==-1&&(this.modals.splice(s,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const rt=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function at(t,e){if(t==null)return{};var s={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;s[o]=t[o]}return s}let fe;function it(t){return fe||(fe=new ge({ownerDocument:t==null?void 0:t.document})),fe}function lt(t){const e=n.useWindow(),s=t||it(e),o=c.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>s.add(o.current),remove:()=>s.remove(o.current),isTopModal:()=>s.isTopModal(o.current),setDialogRef:c.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:c.useCallback(r=>{o.current.backdrop=r},[])})}const Me=c.forwardRef((t,e)=>{let{show:s=!1,role:o="dialog",className:r,style:a,children:g,backdrop:m=!0,keyboard:h=!0,onBackdropClick:y,onEscapeKeyDown:f,transition:v,runTransition:x,backdropTransition:E,runBackdropTransition:te,autoFocus:H=!0,enforceFocus:ne=!0,restoreFocus:C=!0,restoreFocusOptions:se,renderDialog:U,renderBackdrop:oe=l=>n.jsxRuntimeExports.jsx("div",Object.assign({},l)),manager:re,container:ae,onShow:G,onHide:F=()=>{},onExit:ie,onExited:$,onExiting:K,onEnter:q,onEntering:V,onEntered:z}=t,le=at(t,rt);const R=n.useWindow(),M=n.useWaitForDOMRef(ae),d=lt(re),ce=n.useMounted(),P=Ne(s),[w,T]=c.useState(!s),p=c.useRef(null);c.useImperativeHandle(e,()=>d,[d]),n.canUseDOM&&!P&&s&&(p.current=me(R==null?void 0:R.document)),s&&w&&T(!1);const b=n.useEventCallback(()=>{if(d.add(),k.current=n.listen(document,"keydown",ue),L.current=n.listen(document,"focus",()=>setTimeout(de),!0),G&&G(),H){var l,J;const W=me((l=(J=d.dialog)==null?void 0:J.ownerDocument)!=null?l:R==null?void 0:R.document);d.dialog&&W&&!n.contains(d.dialog,W)&&(p.current=W,d.dialog.focus())}}),D=n.useEventCallback(()=>{if(d.remove(),k.current==null||k.current(),L.current==null||L.current(),C){var l;(l=p.current)==null||l.focus==null||l.focus(se),p.current=null}});c.useEffect(()=>{!s||!M||b()},[s,M,b]),c.useEffect(()=>{w&&D()},[w,D]),n.useWillUnmount(()=>{D()});const de=n.useEventCallback(()=>{if(!ne||!ce()||!d.isTopModal())return;const l=me(R==null?void 0:R.document);d.dialog&&l&&!n.contains(d.dialog,l)&&d.dialog.focus()}),X=n.useEventCallback(l=>{l.target===l.currentTarget&&(y==null||y(l),m===!0&&F())}),ue=n.useEventCallback(l=>{h&&n.isEscKey(l)&&d.isTopModal()&&(f==null||f(l),l.defaultPrevented||F())}),L=c.useRef(),k=c.useRef(),Y=(...l)=>{T(!0),$==null||$(...l)};if(!M)return null;const O=Object.assign({role:o,ref:d.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},le,{style:a,className:r,tabIndex:-1});let I=U?U(O):n.jsxRuntimeExports.jsx("div",Object.assign({},O,{children:u.cloneElement(g,{role:"document"})}));I=n.renderTransition(v,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!s,onExit:ie,onExiting:K,onExited:Y,onEnter:q,onEntering:V,onEntered:z,children:I});let _=null;return m&&(_=oe({ref:d.setBackdropRef,onClick:X}),_=n.renderTransition(E,te,{in:!!s,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:_})),n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Ke.createPortal(n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[_,I]}),M)})});Me.displayName="Modal";const Te=Object.assign(Me,{Manager:ge});function ct(t,e){t.classList?t.classList.add(e):n.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ve(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dt(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ve(t.className,e):t.setAttribute("class",ve(t.className&&t.className.baseVal||"",e))}const S={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ke extends ge{adjustAndStore(e,s,o){const r=s.style[e];s.dataset[e]=r,n.style(s,{[e]:`${parseFloat(n.style(s,e))+o}px`})}restore(e,s){const o=s.dataset[e];o!==void 0&&(delete s.dataset[e],n.style(s,{[e]:o}))}setContainerStyle(e){super.setContainerStyle(e);const s=this.getElement();if(ct(s,"modal-open"),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,S.FIXED_CONTENT).forEach(a=>this.adjustAndStore(o,a,e.scrollBarWidth)),j(s,S.STICKY_CONTENT).forEach(a=>this.adjustAndStore(r,a,-e.scrollBarWidth)),j(s,S.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(r,a,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const s=this.getElement();dt(s,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,S.FIXED_CONTENT).forEach(a=>this.restore(o,a)),j(s,S.STICKY_CONTENT).forEach(a=>this.restore(r,a)),j(s,S.NAVBAR_TOGGLER).forEach(a=>this.restore(r,a))}}let pe;function Oe(t){return pe||(pe=new ke(t)),pe}const _e=u.forwardRef(({className:t,bsPrefix:e,as:s="div",...o},r)=>(e=n.useBootstrapPrefix(e,"modal-body"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));_e.displayName="ModalBody";const he=u.createContext({onHide(){}}),xe=u.forwardRef(({bsPrefix:t,className:e,contentClassName:s,centered:o,size:r,fullscreen:a,children:g,scrollable:m,...h},y)=>{t=n.useBootstrapPrefix(t,"modal");const f=`${t}-dialog`,v=typeof a=="string"?`${t}-fullscreen-${a}`:`${t}-fullscreen`;return n.jsxRuntimeExports.jsx("div",{...h,ref:y,className:n.classNames(f,e,r&&`${t}-${r}`,o&&`${f}-centered`,m&&`${f}-scrollable`,a&&v),children:n.jsxRuntimeExports.jsx("div",{className:n.classNames(`${t}-content`,s),children:g})})});xe.displayName="ModalDialog";const Be=u.forwardRef(({className:t,bsPrefix:e,as:s="div",...o},r)=>(e=n.useBootstrapPrefix(e,"modal-footer"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));Be.displayName="ModalFooter";const Se=u.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:s=!1,onHide:o,children:r,...a},g)=>{const m=c.useContext(he),h=n.useEventCallback(()=>{m==null||m.onHide(),o==null||o()});return n.jsxRuntimeExports.jsxs("div",{ref:g,...a,children:[r,s&&n.jsxRuntimeExports.jsx(Z,{"aria-label":t,variant:e,onClick:h})]})}),Ae=u.forwardRef(({bsPrefix:t,className:e,closeLabel:s="Close",closeButton:o=!1,...r},a)=>(t=n.useBootstrapPrefix(t,"modal-header"),n.jsxRuntimeExports.jsx(Se,{ref:a,...r,className:n.classNames(e,t),closeLabel:s,closeButton:o})));Ae.displayName="ModalHeader";const ut=we("h4"),Fe=u.forwardRef(({className:t,bsPrefix:e,as:s=ut,...o},r)=>(e=n.useBootstrapPrefix(e,"modal-title"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));Fe.displayName="ModalTitle";function mt(t){return n.jsxRuntimeExports.jsx(n.Fade,{...t,timeout:null})}function ft(t){return n.jsxRuntimeExports.jsx(n.Fade,{...t,timeout:null})}const $e=u.forwardRef(({bsPrefix:t,className:e,style:s,dialogClassName:o,contentClassName:r,children:a,dialogAs:g=xe,"data-bs-theme":m,"aria-labelledby":h,"aria-describedby":y,"aria-label":f,show:v=!1,animation:x=!0,backdrop:E=!0,keyboard:te=!0,onEscapeKeyDown:H,onShow:ne,onHide:C,container:se,autoFocus:U=!0,enforceFocus:oe=!0,restoreFocus:re=!0,restoreFocusOptions:ae,onEntered:G,onExit:F,onExiting:ie,onEnter:$,onEntering:K,onExited:q,backdropClassName:V,manager:z,...le},R)=>{const[M,d]=c.useState({}),[ce,P]=c.useState(!1),w=c.useRef(!1),T=c.useRef(!1),p=c.useRef(null),[b,D]=n.useCallbackRef(),de=n.useMergedRefs(R,D),X=n.useEventCallback(C),ue=n.useIsRTL();t=n.useBootstrapPrefix(t,"modal");const L=c.useMemo(()=>({onHide:X}),[X]);function k(){return z||Oe({isRTL:ue})}function Y(i){if(!n.canUseDOM)return;const B=k().getScrollbarWidth()>0,ye=i.scrollHeight>n.ownerDocument(i).documentElement.clientHeight;d({paddingRight:B&&!ye?Re():void 0,paddingLeft:!B&&ye?Re():void 0})}const O=n.useEventCallback(()=>{b&&Y(b.dialog)});n.useWillUnmount(()=>{n.removeEventListener(window,"resize",O),p.current==null||p.current()});const I=()=>{w.current=!0},_=i=>{w.current&&b&&i.target===b.dialog&&(T.current=!0),w.current=!1},l=()=>{P(!0),p.current=n.transitionEnd(b.dialog,()=>{P(!1)})},J=i=>{i.target===i.currentTarget&&l()},W=i=>{if(E==="static"){J(i);return}if(T.current||i.target!==i.currentTarget){T.current=!1;return}C==null||C()},De=i=>{te?H==null||H(i):(i.preventDefault(),E==="static"&&l())},Le=(i,B)=>{i&&Y(i),$==null||$(i,B)},Ie=i=>{p.current==null||p.current(),F==null||F(i)},We=(i,B)=>{K==null||K(i,B),n.addEventListener(window,"resize",O)},He=i=>{i&&(i.style.display=""),q==null||q(i),n.removeEventListener(window,"resize",O)},Ue=c.useCallback(i=>n.jsxRuntimeExports.jsx("div",{...i,className:n.classNames(`${t}-backdrop`,V,!x&&"show")}),[x,V,t]),Ee={...s,...M};Ee.display="block";const Ge=i=>n.jsxRuntimeExports.jsx("div",{role:"dialog",...i,style:Ee,className:n.classNames(e,t,ce&&`${t}-static`,!x&&"show"),onClick:E?W:void 0,onMouseUp:_,"data-bs-theme":m,"aria-label":f,"aria-labelledby":h,"aria-describedby":y,children:n.jsxRuntimeExports.jsx(g,{...le,onMouseDown:I,className:o,contentClassName:r,children:a})});return n.jsxRuntimeExports.jsx(he.Provider,{value:L,children:n.jsxRuntimeExports.jsx(Te,{show:v,ref:de,backdrop:E,container:se,keyboard:!0,autoFocus:U,enforceFocus:oe,restoreFocus:re,restoreFocusOptions:ae,onEscapeKeyDown:De,onShow:ne,onHide:C,onEnter:Le,onEntering:We,onEntered:G,onExit:Ie,onExiting:ie,onExited:He,manager:k(),transition:x?mt:void 0,backdropTransition:x?ft:void 0,renderBackdrop:Ue,renderDialog:Ge})})});$e.displayName="Modal";const pt=Object.assign($e,{Body:_e,Header:Ae,Title:Fe,Footer:Be,Dialog:xe,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),gt="_button_1wjon_1",ht="_filled_1wjon_7",xt="_sm_1wjon_13",Et="_md_1wjon_18",yt="_lg_1wjon_23",A={button:gt,filled:ht,sm:xt,md:Et,lg:yt},Rt=({variant:t="filled",color:e="primary",size:s="md",className:o,children:r,...a})=>a.as==="link"?n.jsxRuntimeExports.jsx(qe.Link,{to:a.href??"/",className:n.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,A.button,A[t],A[s]),...a,children:r}):a.as==="button"||a.as===void 0?n.jsxRuntimeExports.jsx("button",{type:"button",className:n.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,A.button,A[t],A[s]),...a,children:r}):null;exports.AbstractModalHeader=Se;exports.BaseModal=Te;exports.BootstrapModalManager=ke;exports.CloseButton=Z;exports.Feedback=ee;exports.FormControl=st;exports.Loading=Qe;exports.Modal=pt;exports.ModalContext=he;exports.PrimaryButton=Rt;exports.classes=N;exports.dataAttr=je;exports.divWithClassName=we;exports.getSharedManager=Oe;exports.qsa=j;exports.usePrevious=Ne;
|
|
1
|
+
"use strict";const n=require("./nivo-pie.es-CeZbGy8u.cjs"),c=require("react"),Ke=require("react-dom"),qe=require("react-router-dom");function Ve(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const u=Ve(c),ze="_loading_rgybp_1",Pe="_spinner-grow_rgybp_10",Xe="_second_rgybp_14",Ye="_third_rgybp_17",Je="_loadingBlock_rgybp_21",N={loading:ze,"spinner-grow":"_spinner-grow_rgybp_10",spinnerGrow:Pe,second:Xe,third:Ye,loadingBlock:Je},Qe=()=>n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-loading",N.loading),children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary"),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary",N.second),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary",N.third),role:"status"})]}),we=t=>u.forwardRef((e,s)=>n.jsxRuntimeExports.jsx("div",{...e,ref:s,className:n.classNames(e.className,t)}));function Ne(t){const e=c.useRef(null);return c.useEffect(()=>{e.current=t}),e.current}const Ze={"aria-label":n.Oe.string,onClick:n.Oe.func,variant:n.Oe.oneOf(["white"])},Z=u.forwardRef(({className:t,variant:e,"aria-label":s="Close",...o},r)=>n.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:n.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":s,...o}));Z.displayName="CloseButton";Z.propTypes=Ze;var et=Function.prototype.bind.call(Function.prototype.call,[].slice);function j(t,e){return et(t.querySelectorAll(e))}const tt="data-rr-ui-";function je(t){return`${tt}${t}`}const nt={type:n.Oe.string,tooltip:n.Oe.bool,as:n.Oe.elementType},ee=u.forwardRef(({as:t="div",className:e,type:s="valid",tooltip:o=!1,...r},a)=>n.jsxRuntimeExports.jsx(t,{...r,ref:a,className:n.classNames(e,`${s}-${o?"tooltip":"feedback"}`)}));ee.displayName="Feedback";ee.propTypes=nt;const Ce=u.forwardRef(({bsPrefix:t,type:e,size:s,htmlSize:o,id:r,className:a,isValid:g=!1,isInvalid:m=!1,plaintext:h,readOnly:y,as:f="input",...v},x)=>{const{controlId:E}=c.useContext(n.FormContext);return t=n.useBootstrapPrefix(t,"form-control"),process.env.NODE_ENV!=="production"&&n.warning(E==null||!r,"`controlId` is ignored on `<FormControl>` when `id` is specified."),n.jsxRuntimeExports.jsx(f,{...v,type:e,size:o,ref:x,readOnly:y,id:r||E,className:n.classNames(a,h?`${t}-plaintext`:t,s&&`${t}-${s}`,e==="color"&&`${t}-color`,g&&"is-valid",m&&"is-invalid")})});Ce.displayName="FormControl";const st=Object.assign(Ce,{Feedback:ee});var Q;function Re(t){if((!Q&&Q!==0||t)&&n.canUseDOM){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),Q=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Q}function me(t){t===void 0&&(t=n.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function ot(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const be=je("modal-open");class ge{constructor({ownerDocument:e,handleContainerOverflow:s=!0,isRTL:o=!1}={}){this.handleContainerOverflow=s,this.isRTL=o,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return ot(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const s={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[o]:r.style[o]},e.scrollBarWidth&&(s[o]=`${parseInt(n.style(r,o)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(be,""),n.style(r,s)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const s=this.getElement();s.removeAttribute(be),Object.assign(s.style,e.style)}add(e){let s=this.modals.indexOf(e);return s!==-1||(s=this.modals.length,this.modals.push(e),this.setModalAttributes(e),s!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),s}remove(e){const s=this.modals.indexOf(e);s!==-1&&(this.modals.splice(s,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const rt=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function at(t,e){if(t==null)return{};var s={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;s[o]=t[o]}return s}let fe;function it(t){return fe||(fe=new ge({ownerDocument:t==null?void 0:t.document})),fe}function lt(t){const e=n.useWindow(),s=t||it(e),o=c.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>s.add(o.current),remove:()=>s.remove(o.current),isTopModal:()=>s.isTopModal(o.current),setDialogRef:c.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:c.useCallback(r=>{o.current.backdrop=r},[])})}const Me=c.forwardRef((t,e)=>{let{show:s=!1,role:o="dialog",className:r,style:a,children:g,backdrop:m=!0,keyboard:h=!0,onBackdropClick:y,onEscapeKeyDown:f,transition:v,runTransition:x,backdropTransition:E,runBackdropTransition:te,autoFocus:H=!0,enforceFocus:ne=!0,restoreFocus:C=!0,restoreFocusOptions:se,renderDialog:U,renderBackdrop:oe=l=>n.jsxRuntimeExports.jsx("div",Object.assign({},l)),manager:re,container:ae,onShow:G,onHide:F=()=>{},onExit:ie,onExited:$,onExiting:K,onEnter:q,onEntering:V,onEntered:z}=t,le=at(t,rt);const R=n.useWindow(),M=n.useWaitForDOMRef(ae),d=lt(re),ce=n.useMounted(),P=Ne(s),[w,T]=c.useState(!s),p=c.useRef(null);c.useImperativeHandle(e,()=>d,[d]),n.canUseDOM&&!P&&s&&(p.current=me(R==null?void 0:R.document)),s&&w&&T(!1);const b=n.useEventCallback(()=>{if(d.add(),k.current=n.listen(document,"keydown",ue),L.current=n.listen(document,"focus",()=>setTimeout(de),!0),G&&G(),H){var l,J;const W=me((l=(J=d.dialog)==null?void 0:J.ownerDocument)!=null?l:R==null?void 0:R.document);d.dialog&&W&&!n.contains(d.dialog,W)&&(p.current=W,d.dialog.focus())}}),D=n.useEventCallback(()=>{if(d.remove(),k.current==null||k.current(),L.current==null||L.current(),C){var l;(l=p.current)==null||l.focus==null||l.focus(se),p.current=null}});c.useEffect(()=>{!s||!M||b()},[s,M,b]),c.useEffect(()=>{w&&D()},[w,D]),n.useWillUnmount(()=>{D()});const de=n.useEventCallback(()=>{if(!ne||!ce()||!d.isTopModal())return;const l=me(R==null?void 0:R.document);d.dialog&&l&&!n.contains(d.dialog,l)&&d.dialog.focus()}),X=n.useEventCallback(l=>{l.target===l.currentTarget&&(y==null||y(l),m===!0&&F())}),ue=n.useEventCallback(l=>{h&&n.isEscKey(l)&&d.isTopModal()&&(f==null||f(l),l.defaultPrevented||F())}),L=c.useRef(),k=c.useRef(),Y=(...l)=>{T(!0),$==null||$(...l)};if(!M)return null;const O=Object.assign({role:o,ref:d.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},le,{style:a,className:r,tabIndex:-1});let I=U?U(O):n.jsxRuntimeExports.jsx("div",Object.assign({},O,{children:u.cloneElement(g,{role:"document"})}));I=n.renderTransition(v,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!s,onExit:ie,onExiting:K,onExited:Y,onEnter:q,onEntering:V,onEntered:z,children:I});let _=null;return m&&(_=oe({ref:d.setBackdropRef,onClick:X}),_=n.renderTransition(E,te,{in:!!s,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:_})),n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Ke.createPortal(n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[_,I]}),M)})});Me.displayName="Modal";const Te=Object.assign(Me,{Manager:ge});function ct(t,e){t.classList?t.classList.add(e):n.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ve(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dt(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ve(t.className,e):t.setAttribute("class",ve(t.className&&t.className.baseVal||"",e))}const S={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ke extends ge{adjustAndStore(e,s,o){const r=s.style[e];s.dataset[e]=r,n.style(s,{[e]:`${parseFloat(n.style(s,e))+o}px`})}restore(e,s){const o=s.dataset[e];o!==void 0&&(delete s.dataset[e],n.style(s,{[e]:o}))}setContainerStyle(e){super.setContainerStyle(e);const s=this.getElement();if(ct(s,"modal-open"),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,S.FIXED_CONTENT).forEach(a=>this.adjustAndStore(o,a,e.scrollBarWidth)),j(s,S.STICKY_CONTENT).forEach(a=>this.adjustAndStore(r,a,-e.scrollBarWidth)),j(s,S.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(r,a,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const s=this.getElement();dt(s,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,S.FIXED_CONTENT).forEach(a=>this.restore(o,a)),j(s,S.STICKY_CONTENT).forEach(a=>this.restore(r,a)),j(s,S.NAVBAR_TOGGLER).forEach(a=>this.restore(r,a))}}let pe;function Oe(t){return pe||(pe=new ke(t)),pe}const _e=u.forwardRef(({className:t,bsPrefix:e,as:s="div",...o},r)=>(e=n.useBootstrapPrefix(e,"modal-body"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));_e.displayName="ModalBody";const he=u.createContext({onHide(){}}),xe=u.forwardRef(({bsPrefix:t,className:e,contentClassName:s,centered:o,size:r,fullscreen:a,children:g,scrollable:m,...h},y)=>{t=n.useBootstrapPrefix(t,"modal");const f=`${t}-dialog`,v=typeof a=="string"?`${t}-fullscreen-${a}`:`${t}-fullscreen`;return n.jsxRuntimeExports.jsx("div",{...h,ref:y,className:n.classNames(f,e,r&&`${t}-${r}`,o&&`${f}-centered`,m&&`${f}-scrollable`,a&&v),children:n.jsxRuntimeExports.jsx("div",{className:n.classNames(`${t}-content`,s),children:g})})});xe.displayName="ModalDialog";const Be=u.forwardRef(({className:t,bsPrefix:e,as:s="div",...o},r)=>(e=n.useBootstrapPrefix(e,"modal-footer"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));Be.displayName="ModalFooter";const Se=u.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:s=!1,onHide:o,children:r,...a},g)=>{const m=c.useContext(he),h=n.useEventCallback(()=>{m==null||m.onHide(),o==null||o()});return n.jsxRuntimeExports.jsxs("div",{ref:g,...a,children:[r,s&&n.jsxRuntimeExports.jsx(Z,{"aria-label":t,variant:e,onClick:h})]})}),Ae=u.forwardRef(({bsPrefix:t,className:e,closeLabel:s="Close",closeButton:o=!1,...r},a)=>(t=n.useBootstrapPrefix(t,"modal-header"),n.jsxRuntimeExports.jsx(Se,{ref:a,...r,className:n.classNames(e,t),closeLabel:s,closeButton:o})));Ae.displayName="ModalHeader";const ut=we("h4"),Fe=u.forwardRef(({className:t,bsPrefix:e,as:s=ut,...o},r)=>(e=n.useBootstrapPrefix(e,"modal-title"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));Fe.displayName="ModalTitle";function mt(t){return n.jsxRuntimeExports.jsx(n.Fade,{...t,timeout:null})}function ft(t){return n.jsxRuntimeExports.jsx(n.Fade,{...t,timeout:null})}const $e=u.forwardRef(({bsPrefix:t,className:e,style:s,dialogClassName:o,contentClassName:r,children:a,dialogAs:g=xe,"data-bs-theme":m,"aria-labelledby":h,"aria-describedby":y,"aria-label":f,show:v=!1,animation:x=!0,backdrop:E=!0,keyboard:te=!0,onEscapeKeyDown:H,onShow:ne,onHide:C,container:se,autoFocus:U=!0,enforceFocus:oe=!0,restoreFocus:re=!0,restoreFocusOptions:ae,onEntered:G,onExit:F,onExiting:ie,onEnter:$,onEntering:K,onExited:q,backdropClassName:V,manager:z,...le},R)=>{const[M,d]=c.useState({}),[ce,P]=c.useState(!1),w=c.useRef(!1),T=c.useRef(!1),p=c.useRef(null),[b,D]=n.useCallbackRef(),de=n.useMergedRefs(R,D),X=n.useEventCallback(C),ue=n.useIsRTL();t=n.useBootstrapPrefix(t,"modal");const L=c.useMemo(()=>({onHide:X}),[X]);function k(){return z||Oe({isRTL:ue})}function Y(i){if(!n.canUseDOM)return;const B=k().getScrollbarWidth()>0,ye=i.scrollHeight>n.ownerDocument(i).documentElement.clientHeight;d({paddingRight:B&&!ye?Re():void 0,paddingLeft:!B&&ye?Re():void 0})}const O=n.useEventCallback(()=>{b&&Y(b.dialog)});n.useWillUnmount(()=>{n.removeEventListener(window,"resize",O),p.current==null||p.current()});const I=()=>{w.current=!0},_=i=>{w.current&&b&&i.target===b.dialog&&(T.current=!0),w.current=!1},l=()=>{P(!0),p.current=n.transitionEnd(b.dialog,()=>{P(!1)})},J=i=>{i.target===i.currentTarget&&l()},W=i=>{if(E==="static"){J(i);return}if(T.current||i.target!==i.currentTarget){T.current=!1;return}C==null||C()},De=i=>{te?H==null||H(i):(i.preventDefault(),E==="static"&&l())},Le=(i,B)=>{i&&Y(i),$==null||$(i,B)},Ie=i=>{p.current==null||p.current(),F==null||F(i)},We=(i,B)=>{K==null||K(i,B),n.addEventListener(window,"resize",O)},He=i=>{i&&(i.style.display=""),q==null||q(i),n.removeEventListener(window,"resize",O)},Ue=c.useCallback(i=>n.jsxRuntimeExports.jsx("div",{...i,className:n.classNames(`${t}-backdrop`,V,!x&&"show")}),[x,V,t]),Ee={...s,...M};Ee.display="block";const Ge=i=>n.jsxRuntimeExports.jsx("div",{role:"dialog",...i,style:Ee,className:n.classNames(e,t,ce&&`${t}-static`,!x&&"show"),onClick:E?W:void 0,onMouseUp:_,"data-bs-theme":m,"aria-label":f,"aria-labelledby":h,"aria-describedby":y,children:n.jsxRuntimeExports.jsx(g,{...le,onMouseDown:I,className:o,contentClassName:r,children:a})});return n.jsxRuntimeExports.jsx(he.Provider,{value:L,children:n.jsxRuntimeExports.jsx(Te,{show:v,ref:de,backdrop:E,container:se,keyboard:!0,autoFocus:U,enforceFocus:oe,restoreFocus:re,restoreFocusOptions:ae,onEscapeKeyDown:De,onShow:ne,onHide:C,onEnter:Le,onEntering:We,onEntered:G,onExit:Ie,onExiting:ie,onExited:He,manager:k(),transition:x?mt:void 0,backdropTransition:x?ft:void 0,renderBackdrop:Ue,renderDialog:Ge})})});$e.displayName="Modal";const pt=Object.assign($e,{Body:_e,Header:Ae,Title:Fe,Footer:Be,Dialog:xe,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),gt="_button_1wjon_1",ht="_filled_1wjon_7",xt="_sm_1wjon_13",Et="_md_1wjon_18",yt="_lg_1wjon_23",A={button:gt,filled:ht,sm:xt,md:Et,lg:yt},Rt=({variant:t="filled",color:e="primary",size:s="md",className:o,children:r,...a})=>a.as==="link"?n.jsxRuntimeExports.jsx(qe.Link,{to:a.href??"/",className:n.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,A.button,A[t],A[s]),...a,children:r}):a.as==="button"||a.as===void 0?n.jsxRuntimeExports.jsx("button",{type:"button",className:n.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,A.button,A[t],A[s]),...a,children:r}):null;exports.AbstractModalHeader=Se;exports.BaseModal=Te;exports.BootstrapModalManager=ke;exports.CloseButton=Z;exports.Feedback=ee;exports.FormControl=st;exports.Loading=Qe;exports.Modal=pt;exports.ModalContext=he;exports.PrimaryButton=Rt;exports.classes=N;exports.dataAttr=je;exports.divWithClassName=we;exports.getSharedManager=Oe;exports.qsa=j;exports.usePrevious=Ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./nivo-pie.es-
|
|
1
|
+
"use strict";const e=require("./nivo-pie.es-CeZbGy8u.cjs"),t=({text:i,placement:o,children:s})=>e.jsxRuntimeExports.jsx(e.OverlayTrigger,{placement:o,overlay:e.jsxRuntimeExports.jsx(e.Tooltip,{className:"luminus-tooltip",children:i}),children:s});exports.SimpleTooltip=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o, Q as a,
|
|
1
|
+
import { j as o, Q as a, aV as e } from "./nivo-pie.es-mdfdQL4R.js";
|
|
2
2
|
const l = ({ text: s, placement: r, children: t }) => /* @__PURE__ */ o.jsx(a, { placement: r, overlay: /* @__PURE__ */ o.jsx(e, { className: "luminus-tooltip", children: s }), children: t });
|
|
3
3
|
export {
|
|
4
4
|
l as S
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
setText: (s: string) => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
onSearchButtonClick?: (s: string) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const SearchBox: ({ text, setText, onSearchButtonClick, className }: Props) => import("react").JSX.Element;
|
|
8
|
+
export default SearchBox;
|
|
@@ -36,3 +36,4 @@ export { default as DisabledRowLabelLink } from './DisabledRowLabelLink/Disabled
|
|
|
36
36
|
export { default as LanguageSwitch } from './LanguageSwitch/LanguageSwitch';
|
|
37
37
|
export { default as TypedFormGroup } from './TypedFormGroup/TypedFormGroup';
|
|
38
38
|
export { default as EmployeeSmallPhoto } from './EmployeeSmallPhoto/EmployeeSmallPhoto';
|
|
39
|
+
export { default as SearchBox } from './SearchBox/SearchBox';
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-pie.es-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-pie.es-CeZbGy8u.cjs"),t=require("react"),v=require("@azure/msal-browser"),w=require("@azure/msal-react");require("react-router-dom");require("react-hook-form");const I=require("./useConfirm-cHBuY98J.cjs"),d=require("./PrimaryButton-CFqOb1bv.cjs"),S=require("./useLocalStorageState-ClBA0936.cjs"),M=require("./dateUtils-Sm1hYKnO.cjs"),T=({children:s})=>{const[u,a]=t.useState(!1),[r,n]=t.useState(""),o=t.useCallback(c=>{a(!0),n(c)},[]),l=t.useCallback(()=>{a(!1)},[]),i=t.useMemo(()=>({show:u,text:r,showConfirm:o,hideConfirm:l}),[u,r,o,l]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:i,children:[e.jsxRuntimeExports.jsx(_,{}),s]})},D=()=>{const{texts:{confirm:s}}=t.useContext(e.LuminusComponentsContext),{isShown:u,text:a,onFinish:r}=S.usePrompt(),{options:n}=t.useContext(e.PromptContext),[o,l]=t.useState(n.defaultValue??""),i=t.useCallback(()=>{r(null)},[r]),c=t.useCallback(m=>{m.preventDefault(),!(n.required&&!o)&&r(o)},[r,n.required,o]);t.useEffect(()=>{u===!0&&l(n.defaultValue??"")},[u,n.defaultValue]);const C=t.useMemo(()=>({value:o,onChange:m=>l(m.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[o]);return e.jsxRuntimeExports.jsxs(d.Modal,{show:u,size:"sm",centered:!0,onHide:i,children:[e.jsxRuntimeExports.jsx(d.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(d.Modal.Title,{children:a})}),e.jsxRuntimeExports.jsxs("form",{onSubmit:c,children:[e.jsxRuntimeExports.jsxs(d.Modal.Body,{children:[n.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...C,rows:5}):void 0,n.input==="input"?e.jsxRuntimeExports.jsx(d.FormControl,{...C,type:n.type}):void 0]}),e.jsxRuntimeExports.jsxs(d.Modal.Footer,{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(d.PrimaryButton,{variant:"outlined",color:"secondary",onClick:i,className:"flex-grow-1",children:s.cancel}),e.jsxRuntimeExports.jsx(d.PrimaryButton,{color:"primary",disabled:n.required&&!o,type:"submit",className:"flex-grow-1",children:s.confirm})]})]})]})},A=({children:s})=>{const[u,a]=t.useState(!1),[r,n]=t.useState(""),[o,l]=t.useState({input:"textarea",type:"text"}),i=t.useRef(()=>{}),c=t.useCallback(L=>{n(L),a(!0)},[]),C=t.useCallback(()=>{a(!1)},[]),m=t.useMemo(()=>({isShown:u,text:r,showPrompt:c,hidePrompt:C,resolveRef:i,options:o,setOptions:l}),[u,r,c,C,o]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:m,children:[s,e.jsxRuntimeExports.jsx(D,{})]})},N=({cookieDomain:s,axiosOptions:u,language:a,texts:r,ProjectIconComponent:n,localizationContext:o,chartColorPalette:l,children:i})=>{const c=t.useMemo(()=>({axiosOptions:u,cookieDomain:s,language:a,texts:r,ProjectIconComponent:n,localizationContext:o,chartColorPalette:l}),[u,s,a,n,o,r,l]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:c,children:e.jsxRuntimeExports.jsx(T,{children:e.jsxRuntimeExports.jsxs(A,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),i]})})})},U=({children:s})=>{const[u,a]=t.useState(!1),[r]=t.useState(new Set),n=t.useCallback(i=>{r.add(i),a(!0)},[r]),o=t.useCallback(i=>{r.delete(i),r.size===0&&a(!1)},[r]),l=t.useMemo(()=>({isLoading:u,startLoading:n,stopLoading:o}),[u,n,o]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:l,children:[u&&e.jsxRuntimeExports.jsx(d.Loading,{}),s]})},O=({children:s})=>{const u=e.useAxios(),{msalInstance:a}=t.useContext(e.AuthContext),{delegation:r,setDelegation:n,setAvailableDelegations:o,refreshAvailableDelegations:l}=t.useContext(e.DelegationContext),{getToken:i}=e.useAuth(),[c,C]=t.useState(null),m=t.useCallback(async()=>{const x=await i();x&&C(x)},[i]);t.useEffect(()=>{m()},[m]);const R=t.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x??""):null},[])(),[p,h]=t.useState({state:R?e.LoginState.LOGGED_IN:e.LoginState.LOGGING_IN,user:R}),y=t.useCallback(async x=>{let f=null;return await u.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(E=>{f=E.data}).catch(()=>{f=null}),f},[u]),b=t.useCallback(()=>{localStorage.removeItem("user"),h({state:e.LoginState.LOGGED_OUT,user:null}),n(null),o(null)},[o,n]),j=t.useCallback(async x=>{h({state:e.LoginState.LOGGING_IN,user:null});const f=await y(x);return f?(h({state:e.LoginState.LOGGED_IN,user:f}),localStorage.setItem("user",JSON.stringify(f)),await l(),!0):(h({state:e.LoginState.LOGIN_FAILED,user:null}),!1)},[y,l]),g=t.useCallback(()=>{b()},[b]);t.useEffect(()=>{if(a){const x=a.addEventCallback(f=>{if(f.eventType===v.EventType.LOGIN_SUCCESS&&f.payload){const E=f.payload;C(E.accessToken)}});return()=>{x&&a.removeEventCallback(x)}}return()=>{}},[a,j,g]);const P=t.useCallback(async x=>{x&&await j(x).catch(()=>{g(),n(null)})},[j,g,n]);t.useEffect(()=>{P(c)},[c,r==null?void 0:r.id,P]);const k=t.useMemo(()=>({user:p.user,userLoginState:p,loginUser:j,logoutUser:g}),[p,j,g]);return e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:k,children:s})},G=({...s})=>{const{cookieDomain:u}=t.useContext(e.LuminusComponentsContext),[,a]=e.useCookies(["Authorization"]),r=t.useMemo(()=>({useMsal:s.useMsal??!1,msalInstance:s.useMsal?s.msalInstance??null:null,msalScopes:s.useMsal?s.msalScopes??[]:[]}),[s]);return t.useEffect(()=>{if(s.useMsal){const n=s.msalInstance.addEventCallback(o=>{if(o.eventType===v.EventType.LOGIN_SUCCESS||o.eventType===v.EventType.ACQUIRE_TOKEN_SUCCESS&&o.payload){const l=o.payload,i=l.account;s.msalInstance.setActiveAccount(i);const c=l.accessToken,C=l.expiresOn;a("Authorization",c,{path:"/",secure:!0,sameSite:"none",domain:u,expires:C??void 0})}o.error&&console.error("AuthProvider MSAL Error",o)});return()=>{n&&s.msalInstance.removeEventCallback(n)}}return()=>{}},[s,a,u]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:r,children:s.useMsal?e.jsxRuntimeExports.jsx(w.MsalProvider,{instance:s.msalInstance,children:s.children}):s.children})},q=({children:s,relativeEndpoint:u})=>{const[a,r,n]=S.useLocalStorageState("user-delegation",null),{data:o,setData:l,reloadData:i}=S.useGetApiData(u,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),c=t.useRef(null);t.useEffect(()=>{const m=()=>{i(),c.current=window.setTimeout(m,M.msToStartOfNextDay()+5e3)};return m(),()=>{c.current!==null&&window.clearTimeout(c.current)}},[i]),t.useEffect(()=>{const m=()=>{n()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[n,i]);const C=t.useMemo(()=>({delegation:a,setDelegation:r,availableDelegations:o,setAvailableDelegations:l,refreshAvailableDelegations:i}),[a,r,o,l,i]);return e.jsxRuntimeExports.jsx(e.DelegationContext.Provider,{value:C,children:s})},_=()=>{const{texts:{confirm:s}}=t.useContext(e.LuminusComponentsContext),{onConfirm:u,onCancel:a,text:r,show:n}=I.useConfirm();return e.jsxRuntimeExports.jsxs(d.Modal,{show:n,size:"sm",centered:!0,onHide:a,children:[e.jsxRuntimeExports.jsx(d.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(d.Modal.Title,{children:r})}),e.jsxRuntimeExports.jsx(d.Modal.Body,{children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(d.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:a,children:s.no}),e.jsxRuntimeExports.jsx(d.PrimaryButton,{type:"button",color:"primary",onClick:u,className:"w-100 ml",children:s.yes})]})})]})};exports.AuthContext=e.AuthContext;exports.DelegationContext=e.DelegationContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=G;exports.DelegationProvider=q;exports.LoadingProvider=U;exports.LuminusComponentsProvider=N;exports.UserProvider=O;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as n,
|
|
1
|
+
import { j as n, ar as R, U as L, as as U, at as z, ak as F, a5 as B, a9 as G, au as O, aa as H, ac as C, ab as q, av as V } from "./nivo-pie.es-mdfdQL4R.js";
|
|
2
2
|
import { useState as h, useCallback as d, useMemo as g, useContext as j, useEffect as S, useRef as M } from "react";
|
|
3
3
|
import { EventType as b } from "@azure/msal-browser";
|
|
4
4
|
import { MsalProvider as J } from "@azure/msal-react";
|
|
5
5
|
import "react-router-dom";
|
|
6
6
|
import "react-hook-form";
|
|
7
|
-
import { u as K } from "./useConfirm-
|
|
8
|
-
import { f as v, b as Q, P as I, L as $ } from "./PrimaryButton-
|
|
9
|
-
import { u as W, a as X, b as Y } from "./useLocalStorageState-
|
|
10
|
-
import { m as Z } from "./dateUtils-
|
|
7
|
+
import { u as K } from "./useConfirm-Ck4Qo5KA.js";
|
|
8
|
+
import { f as v, b as Q, P as I, L as $ } from "./PrimaryButton-ByKyWqwd.js";
|
|
9
|
+
import { u as W, a as X, b as Y } from "./useLocalStorageState-CTM-VtC2.js";
|
|
10
|
+
import { m as Z } from "./dateUtils-D3ihjADH.js";
|
|
11
11
|
const ee = ({ children: e }) => {
|
|
12
12
|
const [r, a] = h(!1), [o, t] = h(""), s = d((c) => {
|
|
13
13
|
a(!0), t(c);
|
|
@@ -99,7 +99,7 @@ const ee = ({ children: e }) => {
|
|
|
99
99
|
e
|
|
100
100
|
] });
|
|
101
101
|
}, ve = ({ children: e }) => {
|
|
102
|
-
const r = B(), { msalInstance: a } = j(G), { delegation: o, setDelegation: t, setAvailableDelegations: s, refreshAvailableDelegations: i } = j(O), { getToken: l } =
|
|
102
|
+
const r = B(), { msalInstance: a } = j(G), { delegation: o, setDelegation: t, setAvailableDelegations: s, refreshAvailableDelegations: i } = j(O), { getToken: l } = H(), [c, x] = h(null), m = d(async () => {
|
|
103
103
|
const u = await l();
|
|
104
104
|
u && x(u);
|
|
105
105
|
}, [l]);
|
|
@@ -169,7 +169,7 @@ const ee = ({ children: e }) => {
|
|
|
169
169
|
loginUser: w,
|
|
170
170
|
logoutUser: y
|
|
171
171
|
}), [P, w, y]);
|
|
172
|
-
return /* @__PURE__ */ n.jsx(
|
|
172
|
+
return /* @__PURE__ */ n.jsx(q.Provider, { value: _, children: e });
|
|
173
173
|
}, ge = ({ ...e }) => {
|
|
174
174
|
const { cookieDomain: r } = j(L), [, a] = V(["Authorization"]), o = g(() => ({
|
|
175
175
|
useMsal: e.useMsal ?? !1,
|
|
@@ -253,6 +253,6 @@ export {
|
|
|
253
253
|
he as LoadingProvider,
|
|
254
254
|
L as LuminusComponentsContext,
|
|
255
255
|
fe as LuminusComponentsProvider,
|
|
256
|
-
|
|
256
|
+
q as UserContext,
|
|
257
257
|
ve as UserProvider
|
|
258
258
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as h, a as b,
|
|
1
|
+
import { t as h, a as b, aW as J, m as X, b as j, d as A, aR as Z } from "./nivo-pie.es-mdfdQL4R.js";
|
|
2
2
|
let K = {};
|
|
3
3
|
function S() {
|
|
4
4
|
return K;
|
|
@@ -493,7 +493,7 @@ function Lt(t) {
|
|
|
493
493
|
const e = h(t);
|
|
494
494
|
return tt(e, at(e)) + 1;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Rt(t) {
|
|
497
497
|
const e = h(t), n = +W(e) - +et(e);
|
|
498
498
|
return Math.round(n / X) + 1;
|
|
499
499
|
}
|
|
@@ -506,13 +506,13 @@ function G(t, e) {
|
|
|
506
506
|
const d = x(o, e);
|
|
507
507
|
return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Qt(t, e) {
|
|
510
510
|
var c, o, d, m;
|
|
511
511
|
const n = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = G(t, e), i = b(t, 0);
|
|
512
512
|
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), x(i, e);
|
|
513
513
|
}
|
|
514
514
|
function _t(t, e) {
|
|
515
|
-
const n = h(t), r = +x(n, e) - +
|
|
515
|
+
const n = h(t), r = +x(n, e) - +Qt(n, e);
|
|
516
516
|
return Math.round(r / X) + 1;
|
|
517
517
|
}
|
|
518
518
|
function u(t, e) {
|
|
@@ -582,7 +582,7 @@ const w = {
|
|
|
582
582
|
afternoon: "afternoon",
|
|
583
583
|
evening: "evening",
|
|
584
584
|
night: "night"
|
|
585
|
-
},
|
|
585
|
+
}, R = {
|
|
586
586
|
// Era
|
|
587
587
|
G: function(t, e, n) {
|
|
588
588
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -745,7 +745,7 @@ const w = {
|
|
|
745
745
|
},
|
|
746
746
|
// ISO week of year
|
|
747
747
|
I: function(t, e, n) {
|
|
748
|
-
const r =
|
|
748
|
+
const r = Rt(t);
|
|
749
749
|
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
|
|
750
750
|
},
|
|
751
751
|
// Day of the month
|
|
@@ -1040,7 +1040,7 @@ const w = {
|
|
|
1040
1040
|
case "O":
|
|
1041
1041
|
case "OO":
|
|
1042
1042
|
case "OOO":
|
|
1043
|
-
return "GMT" +
|
|
1043
|
+
return "GMT" + Q(r, ":");
|
|
1044
1044
|
case "OOOO":
|
|
1045
1045
|
default:
|
|
1046
1046
|
return "GMT" + y(r, ":");
|
|
@@ -1053,7 +1053,7 @@ const w = {
|
|
|
1053
1053
|
case "z":
|
|
1054
1054
|
case "zz":
|
|
1055
1055
|
case "zzz":
|
|
1056
|
-
return "GMT" +
|
|
1056
|
+
return "GMT" + Q(r, ":");
|
|
1057
1057
|
case "zzzz":
|
|
1058
1058
|
default:
|
|
1059
1059
|
return "GMT" + y(r, ":");
|
|
@@ -1070,7 +1070,7 @@ const w = {
|
|
|
1070
1070
|
return u(r, e.length);
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Q(t, e = "") {
|
|
1074
1074
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
|
|
1075
1075
|
return i === 0 ? n + String(a) : n + String(a) + e + u(i, 2);
|
|
1076
1076
|
}
|
|
@@ -1163,7 +1163,7 @@ function V(t, e, n) {
|
|
|
1163
1163
|
const f = l[0];
|
|
1164
1164
|
if (f === "'")
|
|
1165
1165
|
return { isToken: !1, value: ne(l) };
|
|
1166
|
-
if (
|
|
1166
|
+
if (R[f])
|
|
1167
1167
|
return { isToken: !0, value: l };
|
|
1168
1168
|
if (f.match(ee))
|
|
1169
1169
|
throw new RangeError(
|
|
@@ -1181,7 +1181,7 @@ function V(t, e, n) {
|
|
|
1181
1181
|
if (!l.isToken) return l.value;
|
|
1182
1182
|
const f = l.value;
|
|
1183
1183
|
(!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && Gt(f)) && Vt(f, e, String(t));
|
|
1184
|
-
const Y =
|
|
1184
|
+
const Y = R[f[0]];
|
|
1185
1185
|
return Y(c, f, a.localize, d);
|
|
1186
1186
|
}).join("");
|
|
1187
1187
|
}
|
|
@@ -1367,11 +1367,11 @@ function Le(t) {
|
|
|
1367
1367
|
const e = t ?? (/* @__PURE__ */ new Date()).getFullYear(), n = new Date(e, 11, 31);
|
|
1368
1368
|
return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Re(t) {
|
|
1371
1371
|
return be(t.toISOString());
|
|
1372
1372
|
}
|
|
1373
1373
|
export {
|
|
1374
|
-
|
|
1374
|
+
Re as A,
|
|
1375
1375
|
u as a,
|
|
1376
1376
|
De as b,
|
|
1377
1377
|
Ie as c,
|