react-luminus-components 1.3.180 → 1.3.182
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 +50 -50
- package/dist/{Loading-p3e9Gzhg.js → Loading-B4je8S-e.js} +1 -1
- package/dist/{Loading-Bk8nuc7m.cjs → Loading-CqwJLxrt.cjs} +1 -1
- package/dist/{ShortcutLinksContext-G4qml_ty.js → ShortcutLinksContext-BU8EEAxv.js} +7 -4
- package/dist/{ShortcutLinksContext-BHkUz5Ni.cjs → ShortcutLinksContext-BwGYXGO6.cjs} +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
- package/dist/components/common/NumericFormat/NumericFormat.d.ts +2 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +5 -5
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +7 -7
- package/dist/{searchUtils-CAFmov02.cjs → searchUtils-D2VF4fZJ.cjs} +1 -1
- package/dist/{searchUtils-C-UwY_U2.js → searchUtils-DtwPe7Fi.js} +1 -1
- package/dist/{useClipboard-Cmv1qHBe.js → useClipboard-DzqY3ual.js} +1 -1
- package/dist/{useClipboard-C_48qvNs.cjs → useClipboard-E93qAl2u.cjs} +1 -1
- package/dist/{useLocalStorageState-CZ_ylSZc.cjs → useLocalStorageState-BPSmbE8f.cjs} +1 -1
- package/dist/{useLocalStorageState-CK4KgExg.js → useLocalStorageState-eavHUAXf.js} +1 -1
- package/dist/{usePermissions-BpC7MDk7.js → usePermissions-BFLauTCy.js} +1 -1
- package/dist/{usePermissions-B9y2XrwP.cjs → usePermissions-CV4qKyE9.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +3 -3
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_Loading-
|
|
3
|
-
"file": "Loading-
|
|
2
|
+
"_Loading-B4je8S-e.js": {
|
|
3
|
+
"file": "Loading-B4je8S-e.js",
|
|
4
4
|
"name": "Loading",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_ShortcutLinksContext-
|
|
6
|
+
"_ShortcutLinksContext-BU8EEAxv.js"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_Loading-
|
|
10
|
-
"file": "Loading-
|
|
9
|
+
"_Loading-CqwJLxrt.cjs": {
|
|
10
|
+
"file": "Loading-CqwJLxrt.cjs",
|
|
11
11
|
"name": "Loading",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_ShortcutLinksContext-
|
|
13
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_ShortcutLinksContext-
|
|
17
|
-
"file": "ShortcutLinksContext-
|
|
16
|
+
"_ShortcutLinksContext-BU8EEAxv.js": {
|
|
17
|
+
"file": "ShortcutLinksContext-BU8EEAxv.js",
|
|
18
18
|
"name": "ShortcutLinksContext"
|
|
19
19
|
},
|
|
20
|
-
"_ShortcutLinksContext-
|
|
21
|
-
"file": "ShortcutLinksContext-
|
|
20
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs": {
|
|
21
|
+
"file": "ShortcutLinksContext-BwGYXGO6.cjs",
|
|
22
22
|
"name": "ShortcutLinksContext"
|
|
23
23
|
},
|
|
24
|
-
"_searchUtils-
|
|
25
|
-
"file": "searchUtils-
|
|
24
|
+
"_searchUtils-D2VF4fZJ.cjs": {
|
|
25
|
+
"file": "searchUtils-D2VF4fZJ.cjs",
|
|
26
26
|
"name": "searchUtils",
|
|
27
27
|
"imports": [
|
|
28
|
-
"_ShortcutLinksContext-
|
|
28
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs"
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
|
-
"_searchUtils-
|
|
32
|
-
"file": "searchUtils-
|
|
31
|
+
"_searchUtils-DtwPe7Fi.js": {
|
|
32
|
+
"file": "searchUtils-DtwPe7Fi.js",
|
|
33
33
|
"name": "searchUtils",
|
|
34
34
|
"imports": [
|
|
35
|
-
"_ShortcutLinksContext-
|
|
35
|
+
"_ShortcutLinksContext-BU8EEAxv.js"
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"_useClipboard-
|
|
39
|
-
"file": "useClipboard-
|
|
38
|
+
"_useClipboard-DzqY3ual.js": {
|
|
39
|
+
"file": "useClipboard-DzqY3ual.js",
|
|
40
40
|
"name": "useClipboard",
|
|
41
41
|
"imports": [
|
|
42
|
-
"_ShortcutLinksContext-
|
|
42
|
+
"_ShortcutLinksContext-BU8EEAxv.js"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
|
-
"_useClipboard-
|
|
46
|
-
"file": "useClipboard-
|
|
45
|
+
"_useClipboard-E93qAl2u.cjs": {
|
|
46
|
+
"file": "useClipboard-E93qAl2u.cjs",
|
|
47
47
|
"name": "useClipboard",
|
|
48
48
|
"imports": [
|
|
49
|
-
"_ShortcutLinksContext-
|
|
49
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs"
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
|
-
"_useLocalStorageState-
|
|
53
|
-
"file": "useLocalStorageState-
|
|
52
|
+
"_useLocalStorageState-BPSmbE8f.cjs": {
|
|
53
|
+
"file": "useLocalStorageState-BPSmbE8f.cjs",
|
|
54
54
|
"name": "useLocalStorageState",
|
|
55
55
|
"imports": [
|
|
56
|
-
"_ShortcutLinksContext-
|
|
56
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
-
"_useLocalStorageState-
|
|
60
|
-
"file": "useLocalStorageState-
|
|
59
|
+
"_useLocalStorageState-eavHUAXf.js": {
|
|
60
|
+
"file": "useLocalStorageState-eavHUAXf.js",
|
|
61
61
|
"name": "useLocalStorageState",
|
|
62
62
|
"imports": [
|
|
63
|
-
"_ShortcutLinksContext-
|
|
63
|
+
"_ShortcutLinksContext-BU8EEAxv.js"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"_usePermissions-
|
|
67
|
-
"file": "usePermissions-
|
|
66
|
+
"_usePermissions-BFLauTCy.js": {
|
|
67
|
+
"file": "usePermissions-BFLauTCy.js",
|
|
68
68
|
"name": "usePermissions",
|
|
69
69
|
"imports": [
|
|
70
|
-
"_ShortcutLinksContext-
|
|
70
|
+
"_ShortcutLinksContext-BU8EEAxv.js"
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
|
-
"_usePermissions-
|
|
74
|
-
"file": "usePermissions-
|
|
73
|
+
"_usePermissions-CV4qKyE9.cjs": {
|
|
74
|
+
"file": "usePermissions-CV4qKyE9.cjs",
|
|
75
75
|
"name": "usePermissions",
|
|
76
76
|
"imports": [
|
|
77
|
-
"_ShortcutLinksContext-
|
|
77
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs"
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
80
|
"_useWindowSize-CE6DJWzn.cjs": {
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"src": "src/contexts/index.ts",
|
|
92
92
|
"isEntry": true,
|
|
93
93
|
"imports": [
|
|
94
|
-
"_ShortcutLinksContext-
|
|
95
|
-
"_Loading-
|
|
96
|
-
"_useLocalStorageState-
|
|
94
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs",
|
|
95
|
+
"_Loading-CqwJLxrt.cjs",
|
|
96
|
+
"_useLocalStorageState-BPSmbE8f.cjs"
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
99
|
"src/hooks/index.ts": {
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
"src": "src/hooks/index.ts",
|
|
103
103
|
"isEntry": true,
|
|
104
104
|
"imports": [
|
|
105
|
-
"_ShortcutLinksContext-
|
|
105
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs",
|
|
106
106
|
"_useWindowSize-CE6DJWzn.cjs",
|
|
107
|
-
"_usePermissions-
|
|
108
|
-
"_useClipboard-
|
|
109
|
-
"_useLocalStorageState-
|
|
107
|
+
"_usePermissions-CV4qKyE9.cjs",
|
|
108
|
+
"_useClipboard-E93qAl2u.cjs",
|
|
109
|
+
"_useLocalStorageState-BPSmbE8f.cjs"
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
"src/layout/index.ts": {
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
"src": "src/layout/index.ts",
|
|
116
116
|
"isEntry": true,
|
|
117
117
|
"imports": [
|
|
118
|
-
"_ShortcutLinksContext-
|
|
118
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs",
|
|
119
119
|
"_useWindowSize-CE6DJWzn.cjs",
|
|
120
|
-
"_usePermissions-
|
|
120
|
+
"_usePermissions-CV4qKyE9.cjs"
|
|
121
121
|
]
|
|
122
122
|
},
|
|
123
123
|
"src/main.ts": {
|
|
@@ -126,12 +126,12 @@
|
|
|
126
126
|
"src": "src/main.ts",
|
|
127
127
|
"isEntry": true,
|
|
128
128
|
"imports": [
|
|
129
|
-
"_ShortcutLinksContext-
|
|
130
|
-
"_Loading-
|
|
129
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs",
|
|
130
|
+
"_Loading-CqwJLxrt.cjs",
|
|
131
131
|
"_useWindowSize-CE6DJWzn.cjs",
|
|
132
|
-
"_searchUtils-
|
|
133
|
-
"_useClipboard-
|
|
134
|
-
"_useLocalStorageState-
|
|
132
|
+
"_searchUtils-D2VF4fZJ.cjs",
|
|
133
|
+
"_useClipboard-E93qAl2u.cjs",
|
|
134
|
+
"_useLocalStorageState-BPSmbE8f.cjs"
|
|
135
135
|
]
|
|
136
136
|
},
|
|
137
137
|
"src/utils/index.ts": {
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"src": "src/utils/index.ts",
|
|
141
141
|
"isEntry": true,
|
|
142
142
|
"imports": [
|
|
143
|
-
"_ShortcutLinksContext-
|
|
144
|
-
"_searchUtils-
|
|
143
|
+
"_ShortcutLinksContext-BwGYXGO6.cjs",
|
|
144
|
+
"_searchUtils-D2VF4fZJ.cjs"
|
|
145
145
|
]
|
|
146
146
|
},
|
|
147
147
|
"style.css": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r, c as n } from "./ShortcutLinksContext-
|
|
1
|
+
import { j as r, c as n } from "./ShortcutLinksContext-BU8EEAxv.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 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./ShortcutLinksContext-
|
|
1
|
+
"use strict";const s=require("./ShortcutLinksContext-BwGYXGO6.cjs"),r="_loading_rgybp_1",o="_spinner-grow_rgybp_10",e="_second_rgybp_14",i="_third_rgybp_17",t="_loadingBlock_rgybp_21",n={loading:r,"spinner-grow":"_spinner-grow_rgybp_10",spinnerGrow:o,second:e,third:i,loadingBlock:t},a=()=>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=a;exports.classes=n;
|
|
@@ -9074,10 +9074,13 @@ const Wd = (e) => e == null ? !0 : !(typeof e == "object" || typeof e == "functi
|
|
|
9074
9074
|
var n;
|
|
9075
9075
|
const t = (n = e.response) == null ? void 0 : n.data;
|
|
9076
9076
|
return t != null && t.permissions && t.permissions.length > 0 ? t.permissions : null;
|
|
9077
|
-
}, AO = ({ heading: e, content: t, placement: n, children: r, trigger: a, popoverClassName: i, small: o, delay: s, ...c }) =>
|
|
9078
|
-
|
|
9079
|
-
/* @__PURE__ */ v.jsx(Ns
|
|
9080
|
-
|
|
9077
|
+
}, AO = ({ heading: e, content: t, placement: n, children: r, trigger: a = ["hover"], popoverClassName: i, small: o, delay: s, ...c }) => {
|
|
9078
|
+
const l = a.includes("hover") && !a.includes("focus") ? [...a, "focus"] : a;
|
|
9079
|
+
return /* @__PURE__ */ v.jsx(hb, { placement: n, overlay: /* @__PURE__ */ v.jsxs(Ns, { className: ie("luminus-popover", { "luminus-popover-sm": o }, i), onClick: (u) => u.stopPropagation(), children: [
|
|
9080
|
+
e && /* @__PURE__ */ v.jsx(Ns.Header, { children: typeof e == "string" ? /* @__PURE__ */ v.jsx(tl, { variant: "h6", className: "text-primary", children: e }) : e }),
|
|
9081
|
+
/* @__PURE__ */ v.jsx(Ns.Body, { children: t })
|
|
9082
|
+
] }), trigger: l, rootClose: !0, show: c.controlled ? c.isOpen : void 0, onToggle: c.controlled ? (u) => c.setIsOpen(u) : void 0, delay: s, children: r });
|
|
9083
|
+
}, RO = "_h1_14r4v_1", jO = "_h3_14r4v_8", PO = "_h6_14r4v_15", IO = "_subtitle_14r4v_22", DO = "_body_14r4v_29", NO = "_body2_14r4v_36", FO = "_caption_14r4v_43", LO = "_form-label_14r4v_50", Or = {
|
|
9081
9084
|
h1: RO,
|
|
9082
9085
|
h3: jO,
|
|
9083
9086
|
h6: PO,
|
|
@@ -231,7 +231,7 @@ to {
|
|
|
231
231
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[Zm]=this[Zm]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Mi(o);r[s]||(DS(a,o),r[s]=!0)}return B.isArray(t)?t.forEach(i):i(t),this}}un.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(un.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});B.freezeMethods(un);function Bl(e,t){const n=this||Go,r=t||n,a=un.from(r.headers);let i=r.data;return B.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Gy(e){return!!(e&&e.__CANCEL__)}function li(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(li,Oe,{__CANCEL__:!0});function Zy(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function FS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),l=r[i];o||(o=u),n[a]=c,r[a]=u;let d=i,f=0;for(;d!==a;)f+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const h=l&&u-l;return h?Math.round(f*1e3/h):void 0}}function LS(e,t){let n=0,r=1e3/t,a,i;const o=(u,l=Date.now())=>{n=l,a=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?o(u,l):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-d)))},()=>a&&o(a)]}const rc=(e,t,n=3)=>{let r=0;const a=FS(50,250);return LS(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,c=o-r,u=a(c),l=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&l?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},Km=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xm=e=>(...t)=>B.asap(()=>e(...t)),US=cn.hasStandardBrowserEnv?function(){const t=cn.navigator&&/(msie|trident)/i.test(cn.navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=B.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),BS=cn.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),B.isString(r)&&o.push("path="+r),B.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function WS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ky(e,t){return e&&!WS(t)?zS(e,t):t}const Jm=e=>e instanceof un?{...e}:e;function la(e,t){t=t||{};const n={};function r(u,l,d){return B.isPlainObject(u)&&B.isPlainObject(l)?B.merge.call({caseless:d},u,l):B.isPlainObject(l)?B.merge({},l):B.isArray(l)?l.slice():l}function a(u,l,d){if(B.isUndefined(l)){if(!B.isUndefined(u))return r(void 0,u,d)}else return r(u,l,d)}function i(u,l){if(!B.isUndefined(l))return r(void 0,l)}function o(u,l){if(B.isUndefined(l)){if(!B.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function s(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,l)=>a(Jm(u),Jm(l),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=c[l]||a,f=d(e[l],t[l],l);B.isUndefined(f)&&d!==s||(n[l]=f)}),n}const Xy=e=>{const t=la({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=un.from(o),t.url=Vy(Ky(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(B.isFormData(n)){if(cn.hasStandardBrowserEnv||cn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...l]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...l].join("; "))}}if(cn.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(t)),r||r!==!1&&US(t.url))){const u=a&&i&&BS.read(i);u&&o.set(a,u)}return t},HS=typeof XMLHttpRequest<"u",VS=HS&&function(e){return new Promise(function(n,r){const a=Xy(e);let i=a.data;const o=un.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,l,d,f,h,g;function p(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function x(){if(!v)return;const y=un.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};Zy(function($){n($),p()},function($){r($),p()},w),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Oe("Network Error",Oe.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let T=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||qy;a.timeoutErrorMessage&&(T=a.timeoutErrorMessage),r(new Oe(T,w.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&B.forEach(o.toJSON(),function(T,w){v.setRequestHeader(w,T)}),B.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),s&&s!=="json"&&(v.responseType=a.responseType),u&&([f,g]=rc(u,!0),v.addEventListener("progress",f)),c&&v.upload&&([d,h]=rc(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(l=y=>{v&&(r(!y||y.type?new li(null,e,v):y),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));const _=NS(a.url);if(_&&cn.protocols.indexOf(_)===-1){r(new Oe("Unsupported protocol "+_+":",Oe.ERR_BAD_REQUEST,e));return}v.send(i||null)})},qS=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const i=function(u){if(!a){a=!0,s();const l=u instanceof Error?u:this.reason;r.abort(l instanceof Oe?l:new li(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>B.asap(s),c}},YS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},GS=async function*(e,t){for await(const n of ZS(e))yield*YS(n,t)},ZS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Qm=(e,t,n,r)=>{const a=GS(e,t);let i=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:l}=await a.next();if(u){s(),c.close();return}let d=l.byteLength;if(n){let f=i+=d;n(f)}c.enqueue(new Uint8Array(l))}catch(u){throw s(u),u}},cancel(c){return s(c),a.return()}},{highWaterMark:2})},au=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jy=au&&typeof ReadableStream=="function",KS=au&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},XS=Jy&&Qy(()=>{let e=!1;const t=new Request(cn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),eg=64*1024,qd=Jy&&Qy(()=>B.isReadableStream(new Response("").body)),ac={stream:qd&&(e=>e.body)};au&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ac[t]&&(ac[t]=B.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Oe(`Response type '${t}' is not supported`,Oe.ERR_NOT_SUPPORT,r)})})})(new Response);const JS=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(cn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await KS(e)).byteLength},QS=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return n??JS(t)},e5=au&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=Xy(e);u=u?(u+"").toLowerCase():"text";let h=qS([a,i&&i.toAbortSignal()],o),g;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&XS&&n!=="get"&&n!=="head"&&(v=await QS(l,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(B.isFormData(r)&&(C=w.headers.get("content-type"))&&l.setContentType(C),w.body){const[$,R]=Km(v,rc(Xm(c)));r=Qm(w.body,eg,$,R)}}B.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:x?d:void 0});let _=await fetch(g);const y=qd&&(u==="stream"||u==="response");if(qd&&(s||y&&p)){const w={};["status","statusText","headers"].forEach(I=>{w[I]=_[I]});const C=B.toFiniteNumber(_.headers.get("content-length")),[$,R]=s&&Km(C,rc(Xm(s),!0))||[];_=new Response(Qm(_.body,eg,$,()=>{R&&R(),p&&p()}),w)}u=u||"text";let T=await ac[B.findKey(ac,u)||"text"](_,e);return!y&&p&&p(),await new Promise((w,C)=>{Zy(w,C,{data:T,headers:un.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:g})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,e,g),{cause:x.cause||x}):Oe.from(x,x&&x.code,e,g)}}),Yd={http:mS,xhr:VS,fetch:e5};B.forEach(Yd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tg=e=>`- ${e}`,t5=e=>B.isFunction(e)||e===null||e===!1,e1={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!t5(n)&&(r=Yd[(o=String(n)).toLowerCase()],r===void 0))throw new Oe(`Unknown adapter '${o}'`);if(r)break;a[o||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
|
|
232
232
|
`+i.map(tg).join(`
|
|
233
233
|
`):" "+tg(i[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Yd};function Wl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new li(null,e)}function ng(e){return Wl(e),e.headers=un.from(e.headers),e.data=Bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e1.getAdapter(e.adapter||Go.adapter)(e).then(function(r){return Wl(e),r.data=Bl.call(e,e.transformResponse,r),r.headers=un.from(r.headers),r},function(r){return Gy(r)||(Wl(e),r&&r.response&&(r.response.data=Bl.call(e,e.transformResponse,r.response),r.response.headers=un.from(r.response.headers))),Promise.reject(r)})}const t1="1.7.7",vh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rg={};vh.transitional=function(t,n,r){function a(i,o){return"[Axios v"+t1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new Oe(a(o," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!rg[o]&&(rg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function n5(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],c=s===void 0||o(s,i,e);if(c!==!0)throw new Oe("option "+i+" must be "+c,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+i,Oe.ERR_BAD_OPTION)}}const Gd={assertOptions:n5,validators:vh},yr=Gd.validators;class ra{constructor(t){this.defaults=t,this.interceptors={request:new Gm,response:new Gm}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
234
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=la(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Gd.assertOptions(r,{silentJSONParsing:yr.transitional(yr.boolean),forcedJSONParsing:yr.transitional(yr.boolean),clarifyTimeoutError:yr.transitional(yr.boolean)},!1),a!=null&&(B.isFunction(a)?n.paramsSerializer={serialize:a}:Gd.assertOptions(a,{encode:yr.function,serialize:yr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&B.merge(i.common,i[n.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=un.concat(o,i);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let l,d=0,f;if(!c){const g=[ng.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,l=Promise.resolve(n);d<f;)l=l.then(g[d++],g[d++]);return l}f=s.length;let h=n;for(d=0;d<f;){const g=s[d++],p=s[d++];try{h=g(h)}catch(v){p.call(this,v);break}}try{l=ng.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,f=u.length;d<f;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=la(this.defaults,t);const n=Ky(t.baseURL,t.url);return Vy(n,t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(t){ra.prototype[t]=function(n,r){return this.request(la(r||{},{method:t,url:n,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,s){return this.request(la(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ra.prototype[t]=n(),ra.prototype[t+"Form"]=n(!0)});class bh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new li(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bh(function(a){t=a}),cancel:t}}}function r5(e){return function(n){return e.apply(null,n)}}function a5(e){return B.isObject(e)&&e.isAxiosError===!0}const Zd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zd).forEach(([e,t])=>{Zd[t]=e});function n1(e){const t=new ra(e),n=jy(ra.prototype.request,t);return B.extend(n,ra.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return n1(la(e,a))},n}const dt=n1(Go);dt.Axios=ra;dt.CanceledError=li;dt.CancelToken=bh;dt.isCancel=Gy;dt.VERSION=t1;dt.toFormData=ru;dt.AxiosError=Oe;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=r5;dt.isAxiosError=a5;dt.mergeConfig=la;dt.AxiosHeaders=un;dt.formToJSON=e=>Yy(B.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=e1.getAdapter;dt.HttpStatusCode=Zd;dt.default=dt;const ic=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),r1=e=>{ic(e)||Object.keys(e).forEach(t=>{const n=e[t];if(ic(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:r1(n)})},a1=e=>Object.values(e).every(t=>t===null),i5=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&a1(r)?t[n]=null:t[n]=r}),t},yh=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(i=>`${i.charAt(0).toLowerCase()}${i.slice(1)}`).join("."),errors:r.errors})):[]},o5=(e,t)=>{yh(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),ic(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},i1=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},o1=({heading:e,content:t,placement:n,children:r,trigger:a,popoverClassName:i,small:o,delay:s,...c})=>b.jsx(_y,{placement:n,overlay:b.jsxs(js,{className:ae("luminus-popover",{"luminus-popover-sm":o},i),onClick:u=>u.stopPropagation(),children:[e&&b.jsx(js.Header,{children:typeof e=="string"?b.jsx(Zo,{variant:"h6",className:"text-primary",children:e}):e}),b.jsx(js.Body,{children:t})]}),trigger:a??"hover",rootClose:!0,show:c.controlled?c.isOpen:void 0,onToggle:c.controlled?u=>c.setIsOpen(u):void 0,delay:s,children:r}),s5="_h1_14r4v_1",c5="_h3_14r4v_8",u5="_h6_14r4v_15",l5="_subtitle_14r4v_22",d5="_body_14r4v_29",f5="_body2_14r4v_36",h5="_caption_14r4v_43",p5="_form-label_14r4v_50",xr={h1:s5,h3:c5,h6:u5,subtitle:l5,body:d5,body2:f5,caption:h5,"form-label":"_form-label_14r4v_50",formLabel:p5},m5=({variant:e,className:t,children:n})=>{switch(e){case"h1":return b.jsx("h1",{className:ae("luminus-text-primary luminus-h1",xr.h1,t),children:n});case"h3":return b.jsx("h3",{className:ae("luminus-text luminus-h3",xr.h3,t),children:n});case"h6":return b.jsx("h6",{className:ae("luminus-text luminus-h6",xr.h6,t),children:n});case"subtitle":return b.jsx("div",{className:ae("luminus-text luminus-subtitle",xr.subtitle,t),children:n});case"body":return b.jsx("div",{className:ae("luminus-text luminus-body",xr.body,t),children:n});case"body2":return b.jsx("div",{className:ae("luminus-text luminus-body2",xr.body2,t),children:n});case"caption":return b.jsx("div",{className:ae("luminus-text-muted luminus-caption",xr.caption,t),children:n});case"form-label":return b.jsx("div",{className:ae("luminus-text luminus-form-label",xr.formLabel,t),children:n});default:return b.jsx(b.Fragment,{children:n})}},Zo=({variant:e,className:t,children:n})=>b.jsx(m5,{variant:e,className:t,children:n}),xh=({text:e,placement:t,children:n,delay:r})=>b.jsx(o1,{content:b.jsx(Zo,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),s1=e=>e.length<300?e:e.substring(0,300)+"...",iu=e=>e<1024?`${e} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`;function so(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Kd=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),g5=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function v5(e){return e==null?"":Wf(Uc(e),"dd.MM.yyyy")}function ou(e){return(e==null?void 0:e.toString().split("T")[0])??""}function b5(e){return e==null?"":Wf(Uc(e),"dd.MM.yyyy HH:mm")}function y5(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const x5=(e,t)=>so(" ",e?`${e},`:void 0,t),_5=(e,t)=>`${t}${e!=null?` (${e})`:""}`,w5=(e,t)=>`[${e??""}] ${t??""}`,c1=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),u1=e=>{const t=Uc(e);return!Number.isNaN(t.getTime())};function T5(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function C5(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function k5(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function S5(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function O5(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const a=n.getTime()-r.getTime();return Math.floor(a/(1e3*3600*24))}function l1(e=new Date){const t=new Date(e);return t.setDate(1),t}function d1(e=new Date){const t=new Date(e);return t.setMonth(t.getMonth()+1),t.setDate(0),t}function E5(e){const t=new Date;return t.setMonth(t.getMonth()+e),l1(t)}function $5(e){const t=new Date;return t.setMonth(t.getMonth()+e),d1(t)}function M5(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function R5(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function A5(e){return ou(e.toISOString())}function f1(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const a=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,i=r.match(a);if(i){const o=i[2].toUpperCase(),s=i[3];try{return o==="B"?r=c1(s):o==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,u)=>String.fromCharCode(parseInt(u,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(o){return console.error("Error decoding filename:",o),r}}return null}function oc(e,t,n){const r=URL.createObjectURL(e),a=document.createElement("a");a.href=r,a.setAttribute("download",t),a.setAttribute("style","display: none"),n&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)}function j5(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const r=e.headers.get("Content-disposition");typeof r=="string"&&r.length>0&&(n=f1(e.headers.get("Content-disposition"))??n)}oc(e.data,n,t==null?void 0:t.tryToOpen)}function _h(e,t=_h.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}_h.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ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ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};var ms={};/*!
|
|
234
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=la(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Gd.assertOptions(r,{silentJSONParsing:yr.transitional(yr.boolean),forcedJSONParsing:yr.transitional(yr.boolean),clarifyTimeoutError:yr.transitional(yr.boolean)},!1),a!=null&&(B.isFunction(a)?n.paramsSerializer={serialize:a}:Gd.assertOptions(a,{encode:yr.function,serialize:yr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&B.merge(i.common,i[n.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=un.concat(o,i);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let l,d=0,f;if(!c){const g=[ng.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,l=Promise.resolve(n);d<f;)l=l.then(g[d++],g[d++]);return l}f=s.length;let h=n;for(d=0;d<f;){const g=s[d++],p=s[d++];try{h=g(h)}catch(v){p.call(this,v);break}}try{l=ng.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,f=u.length;d<f;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=la(this.defaults,t);const n=Ky(t.baseURL,t.url);return Vy(n,t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(t){ra.prototype[t]=function(n,r){return this.request(la(r||{},{method:t,url:n,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,s){return this.request(la(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ra.prototype[t]=n(),ra.prototype[t+"Form"]=n(!0)});class bh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new li(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bh(function(a){t=a}),cancel:t}}}function r5(e){return function(n){return e.apply(null,n)}}function a5(e){return B.isObject(e)&&e.isAxiosError===!0}const Zd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zd).forEach(([e,t])=>{Zd[t]=e});function n1(e){const t=new ra(e),n=jy(ra.prototype.request,t);return B.extend(n,ra.prototype,t,{allOwnKeys:!0}),B.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return n1(la(e,a))},n}const dt=n1(Go);dt.Axios=ra;dt.CanceledError=li;dt.CancelToken=bh;dt.isCancel=Gy;dt.VERSION=t1;dt.toFormData=ru;dt.AxiosError=Oe;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=r5;dt.isAxiosError=a5;dt.mergeConfig=la;dt.AxiosHeaders=un;dt.formToJSON=e=>Yy(B.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=e1.getAdapter;dt.HttpStatusCode=Zd;dt.default=dt;const ic=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),r1=e=>{ic(e)||Object.keys(e).forEach(t=>{const n=e[t];if(ic(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:r1(n)})},a1=e=>Object.values(e).every(t=>t===null),i5=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&a1(r)?t[n]=null:t[n]=r}),t},yh=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t&&t.errorFields&&t.errorFields.length>0?t.errorFields.map(r=>({name:r.name.split(".").map(i=>`${i.charAt(0).toLowerCase()}${i.slice(1)}`).join("."),errors:r.errors})):[]},o5=(e,t)=>{yh(t).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),ic(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},i1=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},o1=({heading:e,content:t,placement:n,children:r,trigger:a=["hover"],popoverClassName:i,small:o,delay:s,...c})=>{const u=a.includes("hover")&&!a.includes("focus")?[...a,"focus"]:a;return b.jsx(_y,{placement:n,overlay:b.jsxs(js,{className:ae("luminus-popover",{"luminus-popover-sm":o},i),onClick:l=>l.stopPropagation(),children:[e&&b.jsx(js.Header,{children:typeof e=="string"?b.jsx(Zo,{variant:"h6",className:"text-primary",children:e}):e}),b.jsx(js.Body,{children:t})]}),trigger:u,rootClose:!0,show:c.controlled?c.isOpen:void 0,onToggle:c.controlled?l=>c.setIsOpen(l):void 0,delay:s,children:r})},s5="_h1_14r4v_1",c5="_h3_14r4v_8",u5="_h6_14r4v_15",l5="_subtitle_14r4v_22",d5="_body_14r4v_29",f5="_body2_14r4v_36",h5="_caption_14r4v_43",p5="_form-label_14r4v_50",xr={h1:s5,h3:c5,h6:u5,subtitle:l5,body:d5,body2:f5,caption:h5,"form-label":"_form-label_14r4v_50",formLabel:p5},m5=({variant:e,className:t,children:n})=>{switch(e){case"h1":return b.jsx("h1",{className:ae("luminus-text-primary luminus-h1",xr.h1,t),children:n});case"h3":return b.jsx("h3",{className:ae("luminus-text luminus-h3",xr.h3,t),children:n});case"h6":return b.jsx("h6",{className:ae("luminus-text luminus-h6",xr.h6,t),children:n});case"subtitle":return b.jsx("div",{className:ae("luminus-text luminus-subtitle",xr.subtitle,t),children:n});case"body":return b.jsx("div",{className:ae("luminus-text luminus-body",xr.body,t),children:n});case"body2":return b.jsx("div",{className:ae("luminus-text luminus-body2",xr.body2,t),children:n});case"caption":return b.jsx("div",{className:ae("luminus-text-muted luminus-caption",xr.caption,t),children:n});case"form-label":return b.jsx("div",{className:ae("luminus-text luminus-form-label",xr.formLabel,t),children:n});default:return b.jsx(b.Fragment,{children:n})}},Zo=({variant:e,className:t,children:n})=>b.jsx(m5,{variant:e,className:t,children:n}),xh=({text:e,placement:t,children:n,delay:r})=>b.jsx(o1,{content:b.jsx(Zo,{variant:"body2",className:"text-center",children:e}),placement:t,delay:r,small:!0,children:n}),s1=e=>e.length<300?e:e.substring(0,300)+"...",iu=e=>e<1024?`${e} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`;function so(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const Kd=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),g5=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function v5(e){return e==null?"":Wf(Uc(e),"dd.MM.yyyy")}function ou(e){return(e==null?void 0:e.toString().split("T")[0])??""}function b5(e){return e==null?"":Wf(Uc(e),"dd.MM.yyyy HH:mm")}function y5(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const x5=(e,t)=>so(" ",e?`${e},`:void 0,t),_5=(e,t)=>`${t}${e!=null?` (${e})`:""}`,w5=(e,t)=>`[${e??""}] ${t??""}`,c1=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),u1=e=>{const t=Uc(e);return!Number.isNaN(t.getTime())};function T5(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function C5(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function k5(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function S5(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function O5(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const a=n.getTime()-r.getTime();return Math.floor(a/(1e3*3600*24))}function l1(e=new Date){const t=new Date(e);return t.setDate(1),t}function d1(e=new Date){const t=new Date(e);return t.setMonth(t.getMonth()+1),t.setDate(0),t}function E5(e){const t=new Date;return t.setMonth(t.getMonth()+e),l1(t)}function $5(e){const t=new Date;return t.setMonth(t.getMonth()+e),d1(t)}function M5(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function R5(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function A5(e){return ou(e.toISOString())}function f1(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const a=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,i=r.match(a);if(i){const o=i[2].toUpperCase(),s=i[3];try{return o==="B"?r=c1(s):o==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(c,u)=>String.fromCharCode(parseInt(u,16)))),decodeURIComponent(r)}catch(c){return console.error("Error decoding MIME encoded filename:",c),r}}try{return decodeURIComponent(r)}catch(o){return console.error("Error decoding filename:",o),r}}return null}function oc(e,t,n){const r=URL.createObjectURL(e),a=document.createElement("a");a.href=r,a.setAttribute("download",t),a.setAttribute("style","display: none"),n&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)}function j5(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const r=e.headers.get("Content-disposition");typeof r=="string"&&r.length>0&&(n=f1(e.headers.get("Content-disposition"))??n)}oc(e.data,n,t==null?void 0:t.tryToOpen)}function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:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};var ms={};/*!
|
|
235
235
|
* cookie
|
|
236
236
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
237
237
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
@@ -6,7 +6,7 @@ type TooltipProps = {
|
|
|
6
6
|
content: ReactElement;
|
|
7
7
|
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
8
8
|
children: ReactElement;
|
|
9
|
-
trigger?: OverlayTriggerType
|
|
9
|
+
trigger?: OverlayTriggerType[];
|
|
10
10
|
popoverClassName?: string;
|
|
11
11
|
delay?: OverlayDelay;
|
|
12
12
|
small?: boolean;
|
|
@@ -23,5 +23,5 @@ type Props = TooltipProps & ((UncontrolledProps & {
|
|
|
23
23
|
}) | (ControlledProps & {
|
|
24
24
|
controlled: true;
|
|
25
25
|
}));
|
|
26
|
-
declare const HtmlTooltip: ({ heading, content, placement, children, trigger, popoverClassName, small, delay, ...rest }: Props) => import("react").JSX.Element;
|
|
26
|
+
declare const HtmlTooltip: ({ heading, content, placement, children, trigger: triggerProp, popoverClassName, small, delay, ...rest }: Props) => import("react").JSX.Element;
|
|
27
27
|
export default HtmlTooltip;
|
|
@@ -3,7 +3,8 @@ type Props = {
|
|
|
3
3
|
numberPrefix?: string;
|
|
4
4
|
numberSuffix?: string;
|
|
5
5
|
decimalScale?: number;
|
|
6
|
+
fixedDecimalScale?: boolean;
|
|
6
7
|
className?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const NumericFormat: ({ value, numberPrefix, numberSuffix, decimalScale, className, }: Props) => import("react").JSX.Element;
|
|
9
|
+
declare const NumericFormat: ({ value, numberPrefix, numberSuffix, decimalScale, fixedDecimalScale, className, }: Props) => import("react").JSX.Element;
|
|
9
10
|
export default NumericFormat;
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ie=Object.defineProperty;var le=(e,t,r)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var C=(e,t,r)=>le(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ShortcutLinksContext-BHkUz5Ni.cjs"),u=require("react"),N=require("@azure/msal-browser"),ue=require("@azure/msal-react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");const ce=require("./Loading-Bk8nuc7m.cjs"),V=require("./useLocalStorageState-CZ_ylSZc.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,c)=>a-c);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(f=>{r(!0),s(f)},[]),c=u.useCallback(()=>{r(!1)},[]),i=u.useMemo(()=>({show:t,text:n,showConfirm:a,hideConfirm:c}),[t,n,a,c]);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,c]=u.useState(s.defaultValue??""),i=u.useCallback(()=>{n(null)},[n]),f=u.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&n(a)},[n,s.required,a]);u.useEffect(()=>{t===!0&&c(s.defaultValue??"")},[t,s.defaultValue]);const l=u.useMemo(()=>({value:a,onChange:d=>c(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:f,children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...l,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...l,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,c]=u.useState({input:"textarea",type:"text"}),i=u.useRef(()=>{}),f=u.useCallback(m=>{s(m),r(!0)},[]),l=u.useCallback(()=>{r(!1)},[]),d=u.useMemo(()=>({isShown:t,text:n,showPrompt:f,hidePrompt:l,resolveRef:i,options:a,setOptions:c}),[t,n,f,l,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:c,children:i})=>{const f=u.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:c}),[t,e,r,s,a,n,c]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:f,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]),c=u.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:c,children:[t&&o.jsxRuntimeExports.jsx(ce.Loading,{}),e]})},Te=({children:e})=>{const t=o.useAxios(),{msalInstance:r}=u.useContext(o.AuthContext),{delegation:n,setDelegation:s,setAvailableDelegations:a,refreshAvailableDelegations:c}=u.useContext(o.DelegationContext),{getToken:i}=o.useAuth(),[f,l]=u.useState(null),d=u.useCallback(async()=>{const x=await i();x&&l(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 c(),!0):(g({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[P,c]),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;l(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(f)},[f,n==null?void 0:n.id,K]);const ae=u.useMemo(()=>({user:p.user,userLoginState:p,loginUser:E,logoutUser:b}),[p,E,b]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:ae,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??[]:[],msalExtraScopes:e.useMsal?e.msalExtraScopes??[]:[]}),[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 c=a.payload,i=c.account;e.msalInstance.setActiveAccount(i);const f=c.accessToken,l=c.expiresOn;r("Authorization",f,{path:"/",secure:!0,sameSite:"none",domain:t,expires:l??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(ue.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Ee=({children:e,relativeEndpoint:t})=>{const[r,n,s]=V.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:c,setData:i,reloadData:f}=V.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),l=u.useRef(null);u.useEffect(()=>{const m=()=>{f(),l.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{l.current!==null&&window.clearTimeout(l.current)}},[f]),u.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,f]);const d=u.useMemo(()=>({delegation:a,setDelegation:n,availableDelegations:c,setAvailableDelegations:i,refreshAvailableDelegations:f}),[a,n,c,i,f]);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 D(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(!D(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(!D(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)&&!D(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var Oe=function(t,r){try{return D(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 c=Object.keys(t),i=Object.keys(r);if(c.length!==i.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(r),l=0;l<c.length;l++){var d=c[l];if(!f(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 X=(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))(X||{}),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"]}},Y=Object.values(X),B={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ie=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},ke=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},De=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 c={};a.filter(f=>{let l;const d=Object.keys(f);for(let h=0;h<d.length;h+=1){const p=d[h],g=p.toLowerCase();t.indexOf(g)!==-1&&!(l==="rel"&&f[l].toLowerCase()==="canonical")&&!(g==="rel"&&f[g].toLowerCase()==="stylesheet")&&(l=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(l=p)}if(!l||!f[l])return!1;const m=f[l].toLowerCase();return n[l]||(n[l]={}),c[l]||(c[l]={}),n[l][m]?!1:(c[l][m]=!0,!0)}).reverse().forEach(f=>s.push(f));const i=Object.keys(c);for(let f=0;f<i.length;f+=1){const l=i[f],d={...n[l],...c[l]};n[l]=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:De(e),scriptTags:R("script",["src","innerHTML"],e),styleTags:R("style",["cssText"],e),title:ke(e),titleAttributes:$("titleAttributes",e),prioritizeSeoTags:He(e,O.PRIORITIZE_SEO_TAGS)}),ee=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:[]},J=(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,"'"),te=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=te(r),a=ee(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,c=Object.keys(a).filter(l=>!(l==="innerHTML"||l==="cssText")).reduce((l,d)=>{const m=typeof a[d]>"u"?d:`${d}="${q(a[d],r)}"`;return l?`${l} ${m}`:m},""),i=a.innerHTML||a.cssText||"",f=Ue.indexOf(e)===-1;return`${n}<${e} ${T}="true" ${c}${f?"/>":`>${i}</${e}>`}`},""),re=(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=re(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 f=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:f}}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:()=>re(t),toString:()=>te(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),c=_(r,H.script);return{priorityMethods:{toComponent:()=>[...L("meta",s.priority),...L("link",a.priority),...L("script",c.priority)],toString:()=>`${y("meta",s.priority,n)} ${y("link",a.priority,n)} ${y("script",c.priority,n)}`},metaTags:s.default,linkTags:a.default,scriptTags:c.default}},ze=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:a,styleTags:c,title:i="",titleAttributes:f,prioritizeSeoTags:l}=e;let{linkTags:d,metaTags:m,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return l&&({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",c,n),title:y("title",{title:i,titleAttributes:f},n)}},F=ze,k=[],ne=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){C(this,"instances",[]);C(this,"canUseDOM",ne);C(this,"context");C(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?k:this.instances,add:e=>{(this.canUseDOM?k:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?k:this.instances).indexOf(e);(this.canUseDOM?k: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={},se=u.createContext(Be),A,oe=(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(se.Provider,{value:this.helmetData.value},this.props.children)}},C(A,"canUseDOM",ne),A),j=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${T}]`),s=[].slice.call(n),a=[];let c;return t&&t.length&&t.forEach(i=>{const f=document.createElement(e);for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l))if(l==="innerHTML")f.innerHTML=i.innerHTML;else if(l==="cssText")f.styleSheet?f.styleSheet.cssText=i.cssText:f.appendChild(document.createTextNode(i.cssText));else{const d=l,m=typeof i[d]>"u"?"":i[d];f.setAttribute(l,m)}f.setAttribute(T,"true"),s.some((l,d)=>(c=d,f.isEqualNode(l)))?s.splice(c,1):a.push(f)}),s.forEach(i=>{var f;return(f=i.parentNode)==null?void 0:f.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],c=Object.keys(t);for(const i of c){const f=t[i]||"";r.getAttribute(i)!==f&&r.setAttribute(i,f),s.indexOf(i)===-1&&s.push(i);const l=a.indexOf(i);l!==-1&&a.splice(l,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)!==c.join(",")&&r.setAttribute(T,c.join(","))},Ke=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ee(e)),z("title",t)},W=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:a,metaTags:c,noscriptTags:i,onChangeClientState:f,scriptTags:l,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",c),noscriptTags:j("noscript",i),scriptTags:j("script",l),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(),f(e,g,P)},I=null,Ve=e=>{I&&cancelAnimationFrame(I),e.defer?I=requestAnimationFrame(()=>{W(e,()=>{I=null})}):(W(e),I=null)},Ye=Ve,Z=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 c={...a.props};return delete c.context,c}));oe.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(J(this.props,"helmetData"),J(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(Y.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 ${Y.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,c=Object.keys(a).reduce((f,l)=>(f[Ie[l]||l]=a[l],f),{});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,c,s);break;default:t=this.mapObjectTypeChildren(n,t,c,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(Z,{...r,context:n.value}):u.createElement(se.Consumer,null,s=>u.createElement(Z,{...r,context:s}))}},C(U,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),U);const Q=(e,t)=>e?`${e} | ${t}`:t,We=({defaultHelmet:e,children:t,helmetPrefix:r})=>{const[n,s]=u.useState([Q(r??"",e)]),a=u.useCallback(l=>{s(d=>[...d,Q(r??"",l)])},[r]),c=u.useCallback(()=>{s(l=>l.length>1?l.slice(0,-1):l)},[s]),i=u.useMemo(()=>n.at(-1)??"",[n]),f=u.useMemo(()=>({addHelmet:a,removeHelmet:c}),[a,c]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:f,children:o.jsxRuntimeExports.jsxs(oe,{children:[o.jsxRuntimeExports.jsx(Je,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:i})}),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 ie=Object.defineProperty;var le=(e,t,r)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var C=(e,t,r)=>le(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ShortcutLinksContext-BwGYXGO6.cjs"),u=require("react"),N=require("@azure/msal-browser"),ue=require("@azure/msal-react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");const ce=require("./Loading-CqwJLxrt.cjs"),V=require("./useLocalStorageState-BPSmbE8f.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,c)=>a-c);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(f=>{r(!0),s(f)},[]),c=u.useCallback(()=>{r(!1)},[]),i=u.useMemo(()=>({show:t,text:n,showConfirm:a,hideConfirm:c}),[t,n,a,c]);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,c]=u.useState(s.defaultValue??""),i=u.useCallback(()=>{n(null)},[n]),f=u.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&n(a)},[n,s.required,a]);u.useEffect(()=>{t===!0&&c(s.defaultValue??"")},[t,s.defaultValue]);const l=u.useMemo(()=>({value:a,onChange:d=>c(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:f,children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...l,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...l,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,c]=u.useState({input:"textarea",type:"text"}),i=u.useRef(()=>{}),f=u.useCallback(m=>{s(m),r(!0)},[]),l=u.useCallback(()=>{r(!1)},[]),d=u.useMemo(()=>({isShown:t,text:n,showPrompt:f,hidePrompt:l,resolveRef:i,options:a,setOptions:c}),[t,n,f,l,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:c,children:i})=>{const f=u.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:r,texts:n,ProjectIconComponent:s,localizationContext:a,chartColorPalette:c}),[t,e,r,s,a,n,c]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:f,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]),c=u.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:c,children:[t&&o.jsxRuntimeExports.jsx(ce.Loading,{}),e]})},Te=({children:e})=>{const t=o.useAxios(),{msalInstance:r}=u.useContext(o.AuthContext),{delegation:n,setDelegation:s,setAvailableDelegations:a,refreshAvailableDelegations:c}=u.useContext(o.DelegationContext),{getToken:i}=o.useAuth(),[f,l]=u.useState(null),d=u.useCallback(async()=>{const x=await i();x&&l(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 c(),!0):(g({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[P,c]),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;l(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(f)},[f,n==null?void 0:n.id,K]);const ae=u.useMemo(()=>({user:p.user,userLoginState:p,loginUser:E,logoutUser:b}),[p,E,b]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:ae,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??[]:[],msalExtraScopes:e.useMsal?e.msalExtraScopes??[]:[]}),[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 c=a.payload,i=c.account;e.msalInstance.setActiveAccount(i);const f=c.accessToken,l=c.expiresOn;r("Authorization",f,{path:"/",secure:!0,sameSite:"none",domain:t,expires:l??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(ue.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Ee=({children:e,relativeEndpoint:t})=>{const[r,n,s]=V.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:c,setData:i,reloadData:f}=V.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),l=u.useRef(null);u.useEffect(()=>{const m=()=>{f(),l.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{l.current!==null&&window.clearTimeout(l.current)}},[f]),u.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,f]);const d=u.useMemo(()=>({delegation:a,setDelegation:n,availableDelegations:c,setAvailableDelegations:i,refreshAvailableDelegations:f}),[a,n,c,i,f]);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 D(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(!D(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(!D(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)&&!D(e[s[n]],t[s[n]]))return!1;return!0}return e!==e&&t!==t}var Oe=function(t,r){try{return D(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 c=Object.keys(t),i=Object.keys(r);if(c.length!==i.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(r),l=0;l<c.length;l++){var d=c[l];if(!f(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 X=(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))(X||{}),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"]}},Y=Object.values(X),B={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ie=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},ke=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},De=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 c={};a.filter(f=>{let l;const d=Object.keys(f);for(let h=0;h<d.length;h+=1){const p=d[h],g=p.toLowerCase();t.indexOf(g)!==-1&&!(l==="rel"&&f[l].toLowerCase()==="canonical")&&!(g==="rel"&&f[g].toLowerCase()==="stylesheet")&&(l=g),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(l=p)}if(!l||!f[l])return!1;const m=f[l].toLowerCase();return n[l]||(n[l]={}),c[l]||(c[l]={}),n[l][m]?!1:(c[l][m]=!0,!0)}).reverse().forEach(f=>s.push(f));const i=Object.keys(c);for(let f=0;f<i.length;f+=1){const l=i[f],d={...n[l],...c[l]};n[l]=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:De(e),scriptTags:R("script",["src","innerHTML"],e),styleTags:R("style",["cssText"],e),title:ke(e),titleAttributes:$("titleAttributes",e),prioritizeSeoTags:He(e,O.PRIORITIZE_SEO_TAGS)}),ee=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:[]},J=(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,"'"),te=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=te(r),a=ee(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,c=Object.keys(a).filter(l=>!(l==="innerHTML"||l==="cssText")).reduce((l,d)=>{const m=typeof a[d]>"u"?d:`${d}="${q(a[d],r)}"`;return l?`${l} ${m}`:m},""),i=a.innerHTML||a.cssText||"",f=Ue.indexOf(e)===-1;return`${n}<${e} ${T}="true" ${c}${f?"/>":`>${i}</${e}>`}`},""),re=(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=re(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 f=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:f}}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:()=>re(t),toString:()=>te(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),c=_(r,H.script);return{priorityMethods:{toComponent:()=>[...L("meta",s.priority),...L("link",a.priority),...L("script",c.priority)],toString:()=>`${y("meta",s.priority,n)} ${y("link",a.priority,n)} ${y("script",c.priority,n)}`},metaTags:s.default,linkTags:a.default,scriptTags:c.default}},ze=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:a,styleTags:c,title:i="",titleAttributes:f,prioritizeSeoTags:l}=e;let{linkTags:d,metaTags:m,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return l&&({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",c,n),title:y("title",{title:i,titleAttributes:f},n)}},F=ze,k=[],ne=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){C(this,"instances",[]);C(this,"canUseDOM",ne);C(this,"context");C(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?k:this.instances,add:e=>{(this.canUseDOM?k:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?k:this.instances).indexOf(e);(this.canUseDOM?k: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={},se=u.createContext(Be),A,oe=(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(se.Provider,{value:this.helmetData.value},this.props.children)}},C(A,"canUseDOM",ne),A),j=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${T}]`),s=[].slice.call(n),a=[];let c;return t&&t.length&&t.forEach(i=>{const f=document.createElement(e);for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l))if(l==="innerHTML")f.innerHTML=i.innerHTML;else if(l==="cssText")f.styleSheet?f.styleSheet.cssText=i.cssText:f.appendChild(document.createTextNode(i.cssText));else{const d=l,m=typeof i[d]>"u"?"":i[d];f.setAttribute(l,m)}f.setAttribute(T,"true"),s.some((l,d)=>(c=d,f.isEqualNode(l)))?s.splice(c,1):a.push(f)}),s.forEach(i=>{var f;return(f=i.parentNode)==null?void 0:f.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],c=Object.keys(t);for(const i of c){const f=t[i]||"";r.getAttribute(i)!==f&&r.setAttribute(i,f),s.indexOf(i)===-1&&s.push(i);const l=a.indexOf(i);l!==-1&&a.splice(l,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)!==c.join(",")&&r.setAttribute(T,c.join(","))},Ke=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ee(e)),z("title",t)},W=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:a,metaTags:c,noscriptTags:i,onChangeClientState:f,scriptTags:l,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",c),noscriptTags:j("noscript",i),scriptTags:j("script",l),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(),f(e,g,P)},I=null,Ve=e=>{I&&cancelAnimationFrame(I),e.defer?I=requestAnimationFrame(()=>{W(e,()=>{I=null})}):(W(e),I=null)},Ye=Ve,Z=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 c={...a.props};return delete c.context,c}));oe.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(J(this.props,"helmetData"),J(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(Y.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 ${Y.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,c=Object.keys(a).reduce((f,l)=>(f[Ie[l]||l]=a[l],f),{});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,c,s);break;default:t=this.mapObjectTypeChildren(n,t,c,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(Z,{...r,context:n.value}):u.createElement(se.Consumer,null,s=>u.createElement(Z,{...r,context:s}))}},C(U,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),U);const Q=(e,t)=>e?`${e} | ${t}`:t,We=({defaultHelmet:e,children:t,helmetPrefix:r})=>{const[n,s]=u.useState([Q(r??"",e)]),a=u.useCallback(l=>{s(d=>[...d,Q(r??"",l)])},[r]),c=u.useCallback(()=>{s(l=>l.length>1?l.slice(0,-1):l)},[s]),i=u.useMemo(()=>n.at(-1)??"",[n]),f=u.useMemo(()=>({addHelmet:a,removeHelmet:c}),[a,c]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:f,children:o.jsxRuntimeExports.jsxs(oe,{children:[o.jsxRuntimeExports.jsx(Je,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:i})}),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;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var Se = Object.defineProperty;
|
|
2
2
|
var Oe = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var A = (e, t, r) => Oe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { t as N, bj as Ee, j as f, bk as we, $ as z, b3 as Ie, bl as fe, ab as S, b2 as je, a0 as G, bm as De, aT as Pe, as as ke, aA as de, bn as me, aB as Le, aD as P, aC as He, bo as $e, aR as se, bp as _e, bq as pe, br as oe, bs as Me, aV as Re } from "./ShortcutLinksContext-
|
|
4
|
+
import { t as N, bj as Ee, j as f, bk as we, $ as z, b3 as Ie, bl as fe, ab as S, b2 as je, a0 as G, bm as De, aT as Pe, as as ke, aA as de, bn as me, aB as Le, aD as P, aC as He, bo as $e, aR as se, bp as _e, bq as pe, br as oe, bs as Me, aV as Re } from "./ShortcutLinksContext-BU8EEAxv.js";
|
|
5
5
|
import E, { useState as C, useCallback as p, useMemo as b, useContext as $, useEffect as D, useRef as he, Component as te } from "react";
|
|
6
6
|
import { EventType as W } from "@azure/msal-browser";
|
|
7
7
|
import { MsalProvider as Ue } from "@azure/msal-react";
|
|
8
8
|
import "react-router-dom";
|
|
9
9
|
import "react-hook-form";
|
|
10
10
|
import "react-flexmonster";
|
|
11
|
-
import { L as Ne } from "./Loading-
|
|
12
|
-
import { a as Fe, u as qe } from "./useLocalStorageState-
|
|
11
|
+
import { L as Ne } from "./Loading-B4je8S-e.js";
|
|
12
|
+
import { a as Fe, u as qe } from "./useLocalStorageState-eavHUAXf.js";
|
|
13
13
|
function Ge(e) {
|
|
14
14
|
const t = N(e);
|
|
15
15
|
return t.setHours(23, 59, 59, 999), t;
|
package/dist/hooks.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./ShortcutLinksContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./ShortcutLinksContext-BwGYXGO6.cjs"),P=require("./useWindowSize-CE6DJWzn.cjs"),T=require("./usePermissions-CV4qKyE9.cjs"),d=require("./useClipboard-E93qAl2u.cjs"),k=require("./useLocalStorageState-BPSmbE8f.cjs"),c=require("react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const L=r=>{let e="pending",a;const t=r.then(s=>{e="success",a=s},s=>{e="error",a=s});return()=>{switch(e){case"pending":throw t;case"success":return a;case"error":throw a;default:throw new Error("Unknown status")}}};function B(r,e){const a=u.useAxios({silent:!0,differentBaseUrl:e==null?void 0:e.customBaseUrl,customToken:e==null?void 0:e.customToken}),[t,s]=c.useState(null);return c.useEffect(()=>{(async()=>{const n=a.get(r).then(o=>o.data);s(L(n))})()},[a,r]),t}const E=(r,e,a)=>{let t="pending",s;const l=r.then(n=>{t="success",s=n},n=>{const o=n==null?void 0:n.response;(o==null?void 0:o.status)===404&&a?(t="error-404",s=n):(t="error",s=n)});return()=>{switch(t){case"pending":throw l;case"success":return s;case"error":return null;case"error-404":throw new Error("404");default:throw new Error("Unknown status")}}},i={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},G=(r,{loadOnInit:e=i.loadOnInit,enabled:a=i.enabled,silent:t=i.silent,nullStateBeforeLoad:s=i.nullStateBeforeLoad,nullStateOnFail:l=i.nullStateOnFail,customApiUrl:n,customBearerToken:o,dataTransformer:h,errorBoundaryOn404:S}=i)=>{const g=u.useAxios({silent:t,customToken:o,differentBaseUrl:n,noToastOnStatus:S?[404]:void 0}),{startLoading:w,stopLoading:D}=c.useContext(u.LoadingContext),q=c.useRef(0),{isAuthenticated:C}=u.useAuth(),[b,m]=c.useState(null),p=c.useCallback(async(f,y)=>{if(!C()||a===!1)return;!t&&w(`loadData-${r}-${y}`),s&&m(null);const x=g.get(r,{signal:f}).then(A=>h?h(A.data):A.data).finally(()=>!t&&D(`loadData-${r}-${y}`));m(E(x,l??!1,S??!1))},[C,a,t,w,r,s,g,h,D,l,S]);return c.useEffect(()=>{if(e===!1)return;const f=new AbortController;return p(f.signal,++q.current),()=>{f.abort()}},[p,e]),{data:b,setData:m,reloadData:p}};exports.cancelToken=u.cancelToken;exports.useAuth=u.useAuth;exports.useAxios=u.useAxios;exports.useConfirm=u.useConfirm;exports.useFormControlType=u.useFormControlType;exports.useNotifications=u.useNotifications;exports.usePrompt=u.usePrompt;exports.useZodSchemaTypes=u.useZodSchemaTypes;exports.useClickOutside=P.useClickOutside;exports.useWindowSize=P.useWindowSize;exports.usePermissions=T.usePermissions;exports.useClipboard=d.useClipboard;exports.useEmployeePhotoPath=d.useEmployeePhotoPath;exports.useKeyPress=d.useKeyPress;exports.useSearchQuery=d.useSearchQuery;exports.useSearchQueryState=d.useSearchQueryState;exports.useGetApiData=k.useGetApiData;exports.useLocalStorageState=k.useLocalStorageState;exports.useGetApiDataBound=G;exports.useGetDataBound=B;
|