react-luminus-components 1.3.40 → 1.3.41
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/README.md +349 -349
- package/dist/.vite/manifest.json +64 -64
- package/dist/{FromToDatePickerDropdownToggle-U9J8VvT9.cjs → FromToDatePickerDropdownToggle-BCwF6VkO.cjs} +1 -1
- package/dist/{FromToDatePickerDropdownToggle-DrEcMDSn.js → FromToDatePickerDropdownToggle-CzfOe1nC.js} +59 -59
- package/dist/{PrimaryButton-Dqcs3CVC.js → PrimaryButton-C02v_GlZ.js} +1 -1
- package/dist/{PrimaryButton-Da4GxIOm.cjs → PrimaryButton-Ct8WgIre.cjs} +1 -1
- package/dist/{SimpleTooltip-Dzk5Xqz6.cjs → SimpleTooltip-C0dAO5Mm.cjs} +1 -1
- package/dist/{SimpleTooltip-BAj8LkNU.js → SimpleTooltip-niijtN07.js} +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +40 -40
- package/dist/{dateUtils-BBdAuKvy.js → dateUtils-DrwxA2JS.js} +72 -71
- package/dist/{dateUtils--qPvcQrY.cjs → dateUtils-inGq3OTd.cjs} +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +6 -6
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1467 -1467
- package/dist/{searchUtils-BRuoWynE.cjs → searchUtils-CfdzpUt_.cjs} +1 -1
- package/dist/{searchUtils-D44ZkVNs.js → searchUtils-Dc5EhzQd.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useFormControlType-BAFqxupC.js → useFormControlType-oJGqgThz.js} +3 -3
- package/dist/{useLocalStorageState-BuXnU9lw.js → useLocalStorageState--QCnJ6Yt.js} +1 -1
- package/dist/{useLocalStorageState-CBt0FNic.cjs → useLocalStorageState-CTWtPpAn.cjs} +1 -1
- package/dist/{usePermissions-BrYbzBzf.cjs → usePermissions-C0v67oim.cjs} +1 -1
- package/dist/{usePermissions-DF_q-wC1.js → usePermissions-D-_3huge.js} +3 -3
- package/dist/utils/text/string.d.ts +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +92 -76
- package/dist/variables.scss +171 -171
- package/package.json +106 -106
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FromToDatePickerDropdownToggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FromToDatePickerDropdownToggle-BCwF6VkO.cjs"),t=require("react"),S=require("@azure/msal-browser"),w=require("@azure/msal-react");require("react-router-dom");require("react-hook-form");const p=require("./useLocalStorageState-CTWtPpAn.cjs"),d=require("./PrimaryButton-Ct8WgIre.cjs"),I=require("./dateUtils-inGq3OTd.cjs"),T=({children:s})=>{const[u,a]=t.useState(!1),[r,n]=t.useState(""),o=t.useCallback(x=>{a(!0),n(x)},[]),l=t.useCallback(()=>{a(!1)},[]),i=t.useMemo(()=>({show:u,text:r,showConfirm:o,hideConfirm:l}),[u,r,o,l]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:i,children:[e.jsxRuntimeExports.jsx(q,{}),s]})},D=()=>{const{texts:{confirm:s}}=t.useContext(e.LuminusComponentsContext),{isShown:u,text:a,onFinish:r}=p.usePrompt(),{options:n}=t.useContext(e.PromptContext),[o,l]=t.useState(n.defaultValue??""),i=t.useCallback(()=>{r(null)},[r]),x=t.useCallback(m=>{m.preventDefault(),!(n.required&&!o)&&r(o)},[r,n.required,o]);t.useEffect(()=>{u===!0&&l(n.defaultValue??"")},[u,n.defaultValue]);const C=t.useMemo(()=>({value:o,onChange:m=>l(m.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[o]);return e.jsxRuntimeExports.jsxs(d.Modal,{show:u,size:"sm",centered:!0,onHide:i,children:[e.jsxRuntimeExports.jsx(d.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(d.Modal.Title,{children:a})}),e.jsxRuntimeExports.jsxs("form",{onSubmit:x,children:[e.jsxRuntimeExports.jsxs(d.Modal.Body,{children:[n.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...C,rows:5}):void 0,n.input==="input"?e.jsxRuntimeExports.jsx(d.FormControl,{...C,type:n.type}):void 0]}),e.jsxRuntimeExports.jsxs(d.Modal.Footer,{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(d.PrimaryButton,{variant:"outlined",color:"secondary",onClick:i,className:"flex-grow-1",children:s.cancel}),e.jsxRuntimeExports.jsx(d.PrimaryButton,{color:"primary",disabled:n.required&&!o,type:"submit",className:"flex-grow-1",children:s.confirm})]})]})]})},M=({children:s})=>{const[u,a]=t.useState(!1),[r,n]=t.useState(""),[o,l]=t.useState({input:"textarea",type:"text"}),i=t.useRef(()=>{}),x=t.useCallback(L=>{n(L),a(!0)},[]),C=t.useCallback(()=>{a(!1)},[]),m=t.useMemo(()=>({isShown:u,text:r,showPrompt:x,hidePrompt:C,resolveRef:i,options:o,setOptions:l}),[u,r,x,C,o]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:m,children:[s,e.jsxRuntimeExports.jsx(D,{})]})},A=({cookieDomain:s,axiosOptions:u,language:a,texts:r,ProjectIconComponent:n,localizationContext:o,children:l})=>{const i=t.useMemo(()=>({axiosOptions:u,cookieDomain:s,language:a,texts:r,ProjectIconComponent:n,localizationContext:o}),[u,s,a,n,o,r]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:i,children:e.jsxRuntimeExports.jsx(T,{children:e.jsxRuntimeExports.jsxs(M,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),l]})})})},N=({children:s})=>{const[u,a]=t.useState(!1),[r]=t.useState(new Set),n=t.useCallback(i=>{r.add(i),a(!0)},[r]),o=t.useCallback(i=>{r.delete(i),r.size===0&&a(!1)},[r]),l=t.useMemo(()=>({isLoading:u,startLoading:n,stopLoading:o}),[u,n,o]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:l,children:[u&&e.jsxRuntimeExports.jsx(d.Loading,{}),s]})},U=({children:s})=>{const u=e.useAxios(),{msalInstance:a}=t.useContext(e.AuthContext),{delegation:r,setDelegation:n,setAvailableDelegations:o,refreshAvailableDelegations:l}=t.useContext(e.DelegationContext),{getToken:i}=e.useAuth(),[x,C]=t.useState(null),m=t.useCallback(async()=>{const c=await i();c&&C(c)},[i]);t.useEffect(()=>{m()},[m]);const R=t.useCallback(()=>{const c=localStorage.getItem("user")??null;return c?JSON.parse(c??""):null},[])(),[E,h]=t.useState({state:R?e.LoginState.LOGGED_IN:e.LoginState.LOGGING_IN,user:R}),y=t.useCallback(async c=>{let f=null;return await u.get("/user/detail",c?{headers:{Authorization:`Bearer ${c}`}}:void 0).then(v=>{f=v.data}).catch(()=>{f=null}),f},[u]),b=t.useCallback(()=>{localStorage.removeItem("user"),h({state:e.LoginState.LOGGED_OUT,user:null}),n(null),o(null)},[o,n]),j=t.useCallback(async c=>{h({state:e.LoginState.LOGGING_IN,user:null});const f=await y(c);return f?(h({state:e.LoginState.LOGGED_IN,user:f}),localStorage.setItem("user",JSON.stringify(f)),await l(),!0):(h({state:e.LoginState.LOGIN_FAILED,user:null}),!1)},[y,l]),g=t.useCallback(()=>{b()},[b]);t.useEffect(()=>{if(a){const c=a.addEventCallback(f=>{if(f.eventType===S.EventType.LOGIN_SUCCESS&&f.payload){const v=f.payload;C(v.accessToken)}});return()=>{c&&a.removeEventCallback(c)}}return()=>{}},[a,j,g]);const P=t.useCallback(async c=>{c&&await j(c).catch(()=>{g(),n(null)})},[j,g,n]);t.useEffect(()=>{P(x)},[x,r==null?void 0:r.id,P]);const k=t.useMemo(()=>({user:E.user,userLoginState:E,loginUser:j,logoutUser:g}),[E,j,g]);return e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:k,children:s})},O=({...s})=>{const{cookieDomain:u}=t.useContext(e.LuminusComponentsContext),[,a]=e.useCookies(["Authorization"]),r=t.useMemo(()=>({useMsal:s.useMsal??!1,msalInstance:s.useMsal?s.msalInstance??null:null,msalScopes:s.useMsal?s.msalScopes??[]:[]}),[s]);return t.useEffect(()=>{if(s.useMsal){const n=s.msalInstance.addEventCallback(o=>{if(o.eventType===S.EventType.LOGIN_SUCCESS||o.eventType===S.EventType.ACQUIRE_TOKEN_SUCCESS&&o.payload){const l=o.payload,i=l.account;s.msalInstance.setActiveAccount(i);const x=l.accessToken,C=l.expiresOn;a("Authorization",x,{path:"/",secure:!0,sameSite:"none",domain:u,expires:C??void 0})}o.error&&console.error("AuthProvider MSAL Error",o)});return()=>{n&&s.msalInstance.removeEventCallback(n)}}return()=>{}},[s,a,u]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:r,children:s.useMsal?e.jsxRuntimeExports.jsx(w.MsalProvider,{instance:s.msalInstance,children:s.children}):s.children})},G=({children:s,relativeEndpoint:u})=>{const[a,r,n]=p.useLocalStorageState("user-delegation",null),{data:o,setData:l,reloadData:i}=p.useGetApiData(u,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),x=t.useRef(null);t.useEffect(()=>{const m=()=>{i(),x.current=window.setTimeout(m,I.msToStartOfNextDay()+5e3)};return m(),()=>{x.current!==null&&window.clearTimeout(x.current)}},[i]),t.useEffect(()=>{const m=()=>{n()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[n,i]);const C=t.useMemo(()=>({delegation:a,setDelegation:r,availableDelegations:o,setAvailableDelegations:l,refreshAvailableDelegations:i}),[a,r,o,l,i]);return e.jsxRuntimeExports.jsx(e.DelegationContext.Provider,{value:C,children:s})},q=()=>{const{texts:{confirm:s}}=t.useContext(e.LuminusComponentsContext),{onConfirm:u,onCancel:a,text:r,show:n}=p.useConfirm();return e.jsxRuntimeExports.jsxs(d.Modal,{show:n,size:"sm",centered:!0,onHide:a,children:[e.jsxRuntimeExports.jsx(d.Modal.Header,{className:"justify-content-center",children:e.jsxRuntimeExports.jsx(d.Modal.Title,{children:r})}),e.jsxRuntimeExports.jsx(d.Modal.Body,{children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx(d.PrimaryButton,{type:"button",variant:"outlined",color:"secondary",className:"w-100",onClick:a,children:s.no}),e.jsxRuntimeExports.jsx(d.PrimaryButton,{type:"button",color:"primary",onClick:u,className:"w-100 ml",children:s.yes})]})})]})};exports.AuthContext=e.AuthContext;exports.DelegationContext=e.DelegationContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=O;exports.DelegationProvider=G;exports.LoadingProvider=N;exports.LuminusComponentsProvider=A;exports.UserProvider=U;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { j as n, al as R, U as L, am as U, an as z, ao as F,
|
|
1
|
+
import { j as n, al as R, U as L, am as U, an as z, ao as F, a4 as B, ad as G, ap as O, ae as q, ag as S, af as H, aq as V } from "./FromToDatePickerDropdownToggle-CzfOe1nC.js";
|
|
2
2
|
import { useState as h, useCallback as d, useMemo as g, useContext as j, useEffect as C, useRef as M } from "react";
|
|
3
|
-
import { EventType as
|
|
3
|
+
import { EventType as N } from "@azure/msal-browser";
|
|
4
4
|
import { MsalProvider as J } from "@azure/msal-react";
|
|
5
5
|
import "react-router-dom";
|
|
6
6
|
import "react-hook-form";
|
|
7
|
-
import { u as K, a as Q, b as $, c as W } from "./useLocalStorageState
|
|
8
|
-
import { f as v, b as X, P as I, L as Y } from "./PrimaryButton-
|
|
9
|
-
import { m as Z } from "./dateUtils-
|
|
7
|
+
import { u as K, a as Q, b as $, c as W } from "./useLocalStorageState--QCnJ6Yt.js";
|
|
8
|
+
import { f as v, b as X, P as I, L as Y } from "./PrimaryButton-C02v_GlZ.js";
|
|
9
|
+
import { m as Z } from "./dateUtils-DrwxA2JS.js";
|
|
10
10
|
const ee = ({ children: e }) => {
|
|
11
11
|
const [r, a] = h(!1), [o, t] = h(""), s = d((u) => {
|
|
12
12
|
a(!0), t(u);
|
|
13
|
-
}, []),
|
|
13
|
+
}, []), i = d(() => {
|
|
14
14
|
a(!1);
|
|
15
|
-
}, []), l = g(() => ({ show: r, text: o, showConfirm: s, hideConfirm:
|
|
15
|
+
}, []), l = g(() => ({ show: r, text: o, showConfirm: s, hideConfirm: i }), [r, o, s, i]);
|
|
16
16
|
return /* @__PURE__ */ n.jsxs(R.Provider, { value: l, children: [
|
|
17
17
|
/* @__PURE__ */ n.jsx(ne, {}),
|
|
18
18
|
e
|
|
19
19
|
] });
|
|
20
20
|
}, te = () => {
|
|
21
|
-
const { texts: { confirm: e } } = j(L), { isShown: r, text: a, onFinish: o } = K(), { options: t } = j(U), [s,
|
|
21
|
+
const { texts: { confirm: e } } = j(L), { isShown: r, text: a, onFinish: o } = K(), { options: t } = j(U), [s, i] = h(t.defaultValue ?? ""), l = d(() => {
|
|
22
22
|
o(null);
|
|
23
23
|
}, [o]), u = d((m) => {
|
|
24
24
|
m.preventDefault(), !(t.required && !s) && o(s);
|
|
25
25
|
}, [o, t.required, s]);
|
|
26
26
|
C(() => {
|
|
27
|
-
r === !0 &&
|
|
27
|
+
r === !0 && i(t.defaultValue ?? "");
|
|
28
28
|
}, [r, t.defaultValue]);
|
|
29
29
|
const x = g(() => ({
|
|
30
30
|
value: s,
|
|
31
|
-
onChange: (m) =>
|
|
31
|
+
onChange: (m) => i(m.currentTarget.value),
|
|
32
32
|
className: "w-100",
|
|
33
33
|
autoFocus: !0,
|
|
34
34
|
tabIndex: 0
|
|
@@ -47,9 +47,9 @@ const ee = ({ children: e }) => {
|
|
|
47
47
|
] })
|
|
48
48
|
] });
|
|
49
49
|
}, se = ({ children: e }) => {
|
|
50
|
-
const [r, a] = h(!1), [o, t] = h(""), [s,
|
|
51
|
-
}), u = d((
|
|
52
|
-
t(
|
|
50
|
+
const [r, a] = h(!1), [o, t] = h(""), [s, i] = h({ input: "textarea", type: "text" }), l = M(() => {
|
|
51
|
+
}), u = d((b) => {
|
|
52
|
+
t(b), a(!0);
|
|
53
53
|
}, []), x = d(() => {
|
|
54
54
|
a(!1);
|
|
55
55
|
}, []), m = g(() => ({
|
|
@@ -59,13 +59,13 @@ const ee = ({ children: e }) => {
|
|
|
59
59
|
hidePrompt: x,
|
|
60
60
|
resolveRef: l,
|
|
61
61
|
options: s,
|
|
62
|
-
setOptions:
|
|
62
|
+
setOptions: i
|
|
63
63
|
}), [r, o, u, x, s]);
|
|
64
64
|
return /* @__PURE__ */ n.jsxs(U.Provider, { value: m, children: [
|
|
65
65
|
e,
|
|
66
66
|
/* @__PURE__ */ n.jsx(te, {})
|
|
67
67
|
] });
|
|
68
|
-
}, xe = ({ cookieDomain: e, axiosOptions: r, language: a, texts: o, ProjectIconComponent: t, localizationContext: s, children:
|
|
68
|
+
}, xe = ({ cookieDomain: e, axiosOptions: r, language: a, texts: o, ProjectIconComponent: t, localizationContext: s, children: i }) => {
|
|
69
69
|
const l = g(() => ({
|
|
70
70
|
axiosOptions: r,
|
|
71
71
|
cookieDomain: e,
|
|
@@ -76,35 +76,35 @@ const ee = ({ children: e }) => {
|
|
|
76
76
|
}), [r, e, a, t, s, o]);
|
|
77
77
|
return /* @__PURE__ */ n.jsx(L.Provider, { value: l, children: /* @__PURE__ */ n.jsx(ee, { children: /* @__PURE__ */ n.jsxs(se, { children: [
|
|
78
78
|
/* @__PURE__ */ n.jsx(z, {}),
|
|
79
|
-
|
|
79
|
+
i
|
|
80
80
|
] }) }) });
|
|
81
81
|
}, fe = ({ children: e }) => {
|
|
82
82
|
const [r, a] = h(!1), [o] = h(/* @__PURE__ */ new Set()), t = d((l) => {
|
|
83
83
|
o.add(l), a(!0);
|
|
84
84
|
}, [o]), s = d((l) => {
|
|
85
85
|
o.delete(l), o.size === 0 && a(!1);
|
|
86
|
-
}, [o]),
|
|
87
|
-
return /* @__PURE__ */ n.jsxs(F.Provider, { value:
|
|
86
|
+
}, [o]), i = g(() => ({ isLoading: r, startLoading: t, stopLoading: s }), [r, t, s]);
|
|
87
|
+
return /* @__PURE__ */ n.jsxs(F.Provider, { value: i, children: [
|
|
88
88
|
r && /* @__PURE__ */ n.jsx(Y, {}),
|
|
89
89
|
e
|
|
90
90
|
] });
|
|
91
91
|
}, he = ({ children: e }) => {
|
|
92
|
-
const r = B(), { msalInstance: a } = j(G), { delegation: o, setDelegation: t, setAvailableDelegations: s, refreshAvailableDelegations:
|
|
93
|
-
const
|
|
94
|
-
|
|
92
|
+
const r = B(), { msalInstance: a } = j(G), { delegation: o, setDelegation: t, setAvailableDelegations: s, refreshAvailableDelegations: i } = j(O), { getToken: l } = q(), [u, x] = h(null), m = d(async () => {
|
|
93
|
+
const c = await l();
|
|
94
|
+
c && x(c);
|
|
95
95
|
}, [l]);
|
|
96
96
|
C(() => {
|
|
97
97
|
m();
|
|
98
98
|
}, [m]);
|
|
99
99
|
const D = d(() => {
|
|
100
|
-
const
|
|
101
|
-
return
|
|
100
|
+
const c = localStorage.getItem("user") ?? null;
|
|
101
|
+
return c ? JSON.parse(c ?? "") : null;
|
|
102
102
|
}, [])(), [P, p] = h({
|
|
103
103
|
state: D ? S.LOGGED_IN : S.LOGGING_IN,
|
|
104
104
|
user: D
|
|
105
|
-
}), k = d(async (
|
|
105
|
+
}), k = d(async (c) => {
|
|
106
106
|
let f = null;
|
|
107
|
-
return await r.get("/user/detail",
|
|
107
|
+
return await r.get("/user/detail", c ? { headers: { Authorization: `Bearer ${c}` } } : void 0).then((T) => {
|
|
108
108
|
f = T.data;
|
|
109
109
|
}).catch(() => {
|
|
110
110
|
f = null;
|
|
@@ -114,39 +114,39 @@ const ee = ({ children: e }) => {
|
|
|
114
114
|
state: S.LOGGED_OUT,
|
|
115
115
|
user: null
|
|
116
116
|
}), t(null), s(null);
|
|
117
|
-
}, [s, t]), w = d(async (
|
|
117
|
+
}, [s, t]), w = d(async (c) => {
|
|
118
118
|
p({
|
|
119
119
|
state: S.LOGGING_IN,
|
|
120
120
|
user: null
|
|
121
121
|
});
|
|
122
|
-
const f = await k(
|
|
122
|
+
const f = await k(c);
|
|
123
123
|
return f ? (p({
|
|
124
124
|
state: S.LOGGED_IN,
|
|
125
125
|
user: f
|
|
126
|
-
}), localStorage.setItem("user", JSON.stringify(f)), await
|
|
126
|
+
}), localStorage.setItem("user", JSON.stringify(f)), await i(), !0) : (p({
|
|
127
127
|
state: S.LOGIN_FAILED,
|
|
128
128
|
user: null
|
|
129
129
|
}), !1);
|
|
130
|
-
}, [k,
|
|
130
|
+
}, [k, i]), y = d(() => {
|
|
131
131
|
A();
|
|
132
132
|
}, [A]);
|
|
133
133
|
C(() => {
|
|
134
134
|
if (a) {
|
|
135
|
-
const
|
|
136
|
-
if (f.eventType ===
|
|
135
|
+
const c = a.addEventCallback((f) => {
|
|
136
|
+
if (f.eventType === N.LOGIN_SUCCESS && f.payload) {
|
|
137
137
|
const T = f.payload;
|
|
138
138
|
x(T.accessToken);
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
return () => {
|
|
142
|
-
|
|
142
|
+
c && a.removeEventCallback(c);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
return () => {
|
|
146
146
|
};
|
|
147
147
|
}, [a, w, y]);
|
|
148
|
-
const E = d(async (
|
|
149
|
-
|
|
148
|
+
const E = d(async (c) => {
|
|
149
|
+
c && await w(c).catch(() => {
|
|
150
150
|
y(), t(null);
|
|
151
151
|
});
|
|
152
152
|
}, [w, y, t]);
|
|
@@ -169,10 +169,10 @@ const ee = ({ children: e }) => {
|
|
|
169
169
|
return C(() => {
|
|
170
170
|
if (e.useMsal) {
|
|
171
171
|
const t = e.msalInstance.addEventCallback((s) => {
|
|
172
|
-
if (s.eventType ===
|
|
173
|
-
const
|
|
172
|
+
if (s.eventType === N.LOGIN_SUCCESS || s.eventType === N.ACQUIRE_TOKEN_SUCCESS && s.payload) {
|
|
173
|
+
const i = s.payload, l = i.account;
|
|
174
174
|
e.msalInstance.setActiveAccount(l);
|
|
175
|
-
const u =
|
|
175
|
+
const u = i.accessToken, x = i.expiresOn;
|
|
176
176
|
a("Authorization", u, {
|
|
177
177
|
path: "/",
|
|
178
178
|
secure: !0,
|
|
@@ -191,7 +191,7 @@ const ee = ({ children: e }) => {
|
|
|
191
191
|
};
|
|
192
192
|
}, [e, a, r]), /* @__PURE__ */ n.jsx(G.Provider, { value: o, children: e.useMsal ? /* @__PURE__ */ n.jsx(J, { instance: e.msalInstance, children: e.children }) : e.children });
|
|
193
193
|
}, ge = ({ children: e, relativeEndpoint: r }) => {
|
|
194
|
-
const [a, o, t] = Q("user-delegation", null), { data: s, setData:
|
|
194
|
+
const [a, o, t] = Q("user-delegation", null), { data: s, setData: i, reloadData: l } = $(r, {
|
|
195
195
|
nullStateBeforeLoad: !1,
|
|
196
196
|
nullStateOnFail: !0
|
|
197
197
|
}), u = M(null);
|
|
@@ -214,13 +214,13 @@ const ee = ({ children: e }) => {
|
|
|
214
214
|
delegation: a,
|
|
215
215
|
setDelegation: o,
|
|
216
216
|
availableDelegations: s,
|
|
217
|
-
setAvailableDelegations:
|
|
217
|
+
setAvailableDelegations: i,
|
|
218
218
|
refreshAvailableDelegations: l
|
|
219
219
|
}), [
|
|
220
220
|
a,
|
|
221
221
|
o,
|
|
222
222
|
s,
|
|
223
|
-
|
|
223
|
+
i,
|
|
224
224
|
l
|
|
225
225
|
]);
|
|
226
226
|
return /* @__PURE__ */ n.jsx(O.Provider, { value: x, children: e });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as h, a as b, aT as J, m as
|
|
1
|
+
import { t as h, a as b, aT as J, m as X, b as j, d as $, aO as Z } from "./FromToDatePickerDropdownToggle-CzfOe1nC.js";
|
|
2
2
|
let K = {};
|
|
3
3
|
function S() {
|
|
4
4
|
return K;
|
|
@@ -11,7 +11,7 @@ function x(t, e) {
|
|
|
11
11
|
function W(t) {
|
|
12
12
|
return x(t, { weekStartsOn: 1 });
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function A(t) {
|
|
15
15
|
const e = h(t), n = e.getFullYear(), r = b(t, 0);
|
|
16
16
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
17
17
|
const a = W(r), i = b(t, 0);
|
|
@@ -42,7 +42,7 @@ function tt(t, e) {
|
|
|
42
42
|
return Math.round((a - i) / J);
|
|
43
43
|
}
|
|
44
44
|
function et(t) {
|
|
45
|
-
const e =
|
|
45
|
+
const e = A(t), n = b(t, 0);
|
|
46
46
|
return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), W(n);
|
|
47
47
|
}
|
|
48
48
|
function nt(t) {
|
|
@@ -418,12 +418,12 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, xt = /\d+/i, vt = {
|
|
|
418
418
|
/^n/i,
|
|
419
419
|
/^d/i
|
|
420
420
|
]
|
|
421
|
-
},
|
|
421
|
+
}, Ct = {
|
|
422
422
|
narrow: /^[smtwf]/i,
|
|
423
423
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
424
424
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
425
425
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
426
|
-
},
|
|
426
|
+
}, Ft = {
|
|
427
427
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
428
428
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
429
429
|
}, Et = {
|
|
@@ -466,9 +466,9 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, xt = /\d+/i, vt = {
|
|
|
466
466
|
defaultParseWidth: "any"
|
|
467
467
|
}),
|
|
468
468
|
day: P({
|
|
469
|
-
matchPatterns:
|
|
469
|
+
matchPatterns: Ct,
|
|
470
470
|
defaultMatchWidth: "wide",
|
|
471
|
-
parsePatterns:
|
|
471
|
+
parsePatterns: Ft,
|
|
472
472
|
defaultParseWidth: "any"
|
|
473
473
|
}),
|
|
474
474
|
dayPeriod: P({
|
|
@@ -493,11 +493,11 @@ function Lt(t) {
|
|
|
493
493
|
const e = h(t);
|
|
494
494
|
return tt(e, at(e)) + 1;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Rt(t) {
|
|
497
497
|
const e = h(t), n = +W(e) - +et(e);
|
|
498
|
-
return Math.round(n /
|
|
498
|
+
return Math.round(n / X) + 1;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function G(t, e) {
|
|
501
501
|
var m, g, M, O;
|
|
502
502
|
const n = h(t), r = n.getFullYear(), a = S(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((O = (M = a.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = b(t, 0);
|
|
503
503
|
s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
|
|
@@ -506,14 +506,14 @@ function A(t, e) {
|
|
|
506
506
|
const d = x(o, e);
|
|
507
507
|
return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Qt(t, e) {
|
|
510
510
|
var c, o, d, m;
|
|
511
|
-
const n = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a =
|
|
511
|
+
const n = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = G(t, e), i = b(t, 0);
|
|
512
512
|
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), x(i, e);
|
|
513
513
|
}
|
|
514
514
|
function _t(t, e) {
|
|
515
|
-
const n = h(t), r = +x(n, e) - +
|
|
516
|
-
return Math.round(r /
|
|
515
|
+
const n = h(t), r = +x(n, e) - +Qt(n, e);
|
|
516
|
+
return Math.round(r / X) + 1;
|
|
517
517
|
}
|
|
518
518
|
function u(t, e) {
|
|
519
519
|
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
@@ -582,7 +582,7 @@ const w = {
|
|
|
582
582
|
afternoon: "afternoon",
|
|
583
583
|
evening: "evening",
|
|
584
584
|
night: "night"
|
|
585
|
-
},
|
|
585
|
+
}, R = {
|
|
586
586
|
// Era
|
|
587
587
|
G: function(t, e, n) {
|
|
588
588
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -608,7 +608,7 @@ const w = {
|
|
|
608
608
|
},
|
|
609
609
|
// Local week-numbering year
|
|
610
610
|
Y: function(t, e, n, r) {
|
|
611
|
-
const a =
|
|
611
|
+
const a = G(t, r), i = a > 0 ? a : 1 - a;
|
|
612
612
|
if (e === "YY") {
|
|
613
613
|
const s = i % 100;
|
|
614
614
|
return u(s, 2);
|
|
@@ -617,7 +617,7 @@ const w = {
|
|
|
617
617
|
},
|
|
618
618
|
// ISO week-numbering year
|
|
619
619
|
R: function(t, e) {
|
|
620
|
-
const n =
|
|
620
|
+
const n = A(t);
|
|
621
621
|
return u(n, e.length);
|
|
622
622
|
},
|
|
623
623
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -745,7 +745,7 @@ const w = {
|
|
|
745
745
|
},
|
|
746
746
|
// ISO week of year
|
|
747
747
|
I: function(t, e, n) {
|
|
748
|
-
const r =
|
|
748
|
+
const r = Rt(t);
|
|
749
749
|
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
|
|
750
750
|
},
|
|
751
751
|
// Day of the month
|
|
@@ -1040,7 +1040,7 @@ const w = {
|
|
|
1040
1040
|
case "O":
|
|
1041
1041
|
case "OO":
|
|
1042
1042
|
case "OOO":
|
|
1043
|
-
return "GMT" +
|
|
1043
|
+
return "GMT" + Q(r, ":");
|
|
1044
1044
|
case "OOOO":
|
|
1045
1045
|
default:
|
|
1046
1046
|
return "GMT" + y(r, ":");
|
|
@@ -1053,7 +1053,7 @@ const w = {
|
|
|
1053
1053
|
case "z":
|
|
1054
1054
|
case "zz":
|
|
1055
1055
|
case "zzz":
|
|
1056
|
-
return "GMT" +
|
|
1056
|
+
return "GMT" + Q(r, ":");
|
|
1057
1057
|
case "zzzz":
|
|
1058
1058
|
default:
|
|
1059
1059
|
return "GMT" + y(r, ":");
|
|
@@ -1070,7 +1070,7 @@ const w = {
|
|
|
1070
1070
|
return u(r, e.length);
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Q(t, e = "") {
|
|
1074
1074
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
|
|
1075
1075
|
return i === 0 ? n + String(a) : n + String(a) + e + u(i, 2);
|
|
1076
1076
|
}
|
|
@@ -1081,7 +1081,7 @@ function y(t, e = "") {
|
|
|
1081
1081
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = u(Math.trunc(r / 60), 2), i = u(r % 60, 2);
|
|
1082
1082
|
return n + a + e + i;
|
|
1083
1083
|
}
|
|
1084
|
-
const
|
|
1084
|
+
const U = (t, e) => {
|
|
1085
1085
|
switch (t) {
|
|
1086
1086
|
case "P":
|
|
1087
1087
|
return e.date({ width: "short" });
|
|
@@ -1105,10 +1105,10 @@ const X = (t, e) => {
|
|
|
1105
1105
|
default:
|
|
1106
1106
|
return e.time({ width: "full" });
|
|
1107
1107
|
}
|
|
1108
|
-
},
|
|
1108
|
+
}, Ut = (t, e) => {
|
|
1109
1109
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1110
1110
|
if (!a)
|
|
1111
|
-
return
|
|
1111
|
+
return U(t, e);
|
|
1112
1112
|
let i;
|
|
1113
1113
|
switch (r) {
|
|
1114
1114
|
case "P":
|
|
@@ -1125,20 +1125,20 @@ const X = (t, e) => {
|
|
|
1125
1125
|
i = e.dateTime({ width: "full" });
|
|
1126
1126
|
break;
|
|
1127
1127
|
}
|
|
1128
|
-
return i.replace("{{date}}",
|
|
1129
|
-
},
|
|
1128
|
+
return i.replace("{{date}}", U(r, e)).replace("{{time}}", B(a, e));
|
|
1129
|
+
}, Xt = {
|
|
1130
1130
|
p: B,
|
|
1131
|
-
P:
|
|
1132
|
-
},
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1131
|
+
P: Ut
|
|
1132
|
+
}, jt = /^D+$/, $t = /^Y+$/, At = ["D", "DD", "YY", "YYYY"];
|
|
1133
|
+
function Gt(t) {
|
|
1134
|
+
return jt.test(t);
|
|
1135
1135
|
}
|
|
1136
1136
|
function Bt(t) {
|
|
1137
|
-
return
|
|
1137
|
+
return $t.test(t);
|
|
1138
1138
|
}
|
|
1139
1139
|
function Vt(t, e, n) {
|
|
1140
1140
|
const r = zt(t, e, n);
|
|
1141
|
-
if (console.warn(r),
|
|
1141
|
+
if (console.warn(r), At.includes(t)) throw new RangeError(r);
|
|
1142
1142
|
}
|
|
1143
1143
|
function zt(t, e, n) {
|
|
1144
1144
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
@@ -1146,14 +1146,14 @@ function zt(t, e, n) {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
const Jt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Kt = /^'([^]*?)'?$/, te = /''/g, ee = /[a-zA-Z]/;
|
|
1148
1148
|
function V(t, e, n) {
|
|
1149
|
-
var m, g, M, O,
|
|
1150
|
-
const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? It, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((E = (
|
|
1149
|
+
var m, g, M, O, F, E, q, H;
|
|
1150
|
+
const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? It, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((E = (F = n == null ? void 0 : n.locale) == null ? void 0 : F.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((H = (q = r.locale) == null ? void 0 : q.options) == null ? void 0 : H.weekStartsOn) ?? 0, c = h(t);
|
|
1151
1151
|
if (!rt(c))
|
|
1152
1152
|
throw new RangeError("Invalid time value");
|
|
1153
1153
|
let o = e.match(Zt).map((l) => {
|
|
1154
1154
|
const f = l[0];
|
|
1155
1155
|
if (f === "p" || f === "P") {
|
|
1156
|
-
const Y =
|
|
1156
|
+
const Y = Xt[f];
|
|
1157
1157
|
return Y(l, a.formatLong);
|
|
1158
1158
|
}
|
|
1159
1159
|
return l;
|
|
@@ -1163,7 +1163,7 @@ function V(t, e, n) {
|
|
|
1163
1163
|
const f = l[0];
|
|
1164
1164
|
if (f === "'")
|
|
1165
1165
|
return { isToken: !1, value: ne(l) };
|
|
1166
|
-
if (
|
|
1166
|
+
if (R[f])
|
|
1167
1167
|
return { isToken: !0, value: l };
|
|
1168
1168
|
if (f.match(ee))
|
|
1169
1169
|
throw new RangeError(
|
|
@@ -1180,8 +1180,8 @@ function V(t, e, n) {
|
|
|
1180
1180
|
return o.map((l) => {
|
|
1181
1181
|
if (!l.isToken) return l.value;
|
|
1182
1182
|
const f = l.value;
|
|
1183
|
-
(!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) &&
|
|
1184
|
-
const Y =
|
|
1183
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && Gt(f)) && Vt(f, e, String(t));
|
|
1184
|
+
const Y = R[f[0]];
|
|
1185
1185
|
return Y(c, f, a.localize, d);
|
|
1186
1186
|
}).join("");
|
|
1187
1187
|
}
|
|
@@ -1189,7 +1189,7 @@ function ne(t) {
|
|
|
1189
1189
|
const e = t.match(Kt);
|
|
1190
1190
|
return e ? e[1].replace(te, "'") : t;
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function C(t, e) {
|
|
1193
1193
|
const r = se(t);
|
|
1194
1194
|
let a;
|
|
1195
1195
|
if (r.date) {
|
|
@@ -1269,7 +1269,7 @@ function ce(t) {
|
|
|
1269
1269
|
const e = t.match(ae);
|
|
1270
1270
|
if (!e) return NaN;
|
|
1271
1271
|
const n = N(e[1]), r = N(e[2]), a = N(e[3]);
|
|
1272
|
-
return we(n, r, a) ? n *
|
|
1272
|
+
return we(n, r, a) ? n * j + r * $ + a * 1e3 : NaN;
|
|
1273
1273
|
}
|
|
1274
1274
|
function N(t) {
|
|
1275
1275
|
return t && parseFloat(t.replace(",", ".")) || 0;
|
|
@@ -1279,7 +1279,7 @@ function de(t) {
|
|
|
1279
1279
|
const e = t.match(ie);
|
|
1280
1280
|
if (!e) return 0;
|
|
1281
1281
|
const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
|
|
1282
|
-
return ye(r, a) ? n * (r *
|
|
1282
|
+
return ye(r, a) ? n * (r * j + a * $) : NaN;
|
|
1283
1283
|
}
|
|
1284
1284
|
function fe(t, e, n) {
|
|
1285
1285
|
const r = /* @__PURE__ */ new Date(0);
|
|
@@ -1307,29 +1307,29 @@ function ye(t, e) {
|
|
|
1307
1307
|
return e >= 0 && e <= 59;
|
|
1308
1308
|
}
|
|
1309
1309
|
function Te(t) {
|
|
1310
|
-
return t == null ? "" : V(
|
|
1310
|
+
return t == null ? "" : V(C(t), "dd.MM.yyyy");
|
|
1311
1311
|
}
|
|
1312
1312
|
function be(t) {
|
|
1313
1313
|
return (t == null ? void 0 : t.toString().split("T")[0]) ?? "";
|
|
1314
1314
|
}
|
|
1315
1315
|
function Pe(t) {
|
|
1316
|
-
return t == null ? "" : V(
|
|
1316
|
+
return t == null ? "" : V(C(t), "dd.MM.yyyy HH:mm");
|
|
1317
1317
|
}
|
|
1318
1318
|
function ke(t) {
|
|
1319
1319
|
return t && t.charAt(0).toUpperCase() + t.slice(1);
|
|
1320
1320
|
}
|
|
1321
|
-
const xe = (t, e) => Z(" ", t ? `${t},` : void 0, e), ve = (t, e) => `${e}${t != null ? ` (${t})` : ""}`, We = (t, e) => `[${t ?? ""}] ${e ?? ""}`, Se = (t) => {
|
|
1322
|
-
const e =
|
|
1321
|
+
const xe = (t, e) => Z(" ", t ? `${t},` : void 0, e), ve = (t, e) => `${e}${t != null ? ` (${t})` : ""}`, We = (t, e) => `[${t ?? ""}] ${e ?? ""}`, Se = (t) => decodeURIComponent(atob(t).split("").map((e) => "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2)).join("")), Ye = (t) => {
|
|
1322
|
+
const e = C(t);
|
|
1323
1323
|
return !Number.isNaN(e.getTime());
|
|
1324
1324
|
};
|
|
1325
|
-
function
|
|
1325
|
+
function pe() {
|
|
1326
1326
|
const t = /* @__PURE__ */ new Date(), e = new Date(t);
|
|
1327
1327
|
return e.setHours(24, 0, 0, 0), e.getTime() - t.getTime();
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Ne(t) {
|
|
1330
1330
|
return t instanceof Date && !Number.isNaN(t.getTime());
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Ce(t, e) {
|
|
1333
1333
|
const n = new Date(t), r = new Date(e);
|
|
1334
1334
|
return n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0), n.getTime() - r.getTime();
|
|
1335
1335
|
}
|
|
@@ -1337,7 +1337,7 @@ function Fe(t, e) {
|
|
|
1337
1337
|
const n = new Date(t), r = new Date(e);
|
|
1338
1338
|
return n.getTime() - r.getTime();
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function Ee(t = Date.now(), e = Date.now()) {
|
|
1341
1341
|
const n = new Date(t), r = new Date(e);
|
|
1342
1342
|
n.setHours(10, 0, 0, 0), r.setHours(0, 0, 0, 0);
|
|
1343
1343
|
const a = n.getTime() - r.getTime();
|
|
@@ -1351,49 +1351,50 @@ function Me(t = /* @__PURE__ */ new Date()) {
|
|
|
1351
1351
|
const e = new Date(t);
|
|
1352
1352
|
return e.setMonth(e.getMonth() + 1), e.setDate(0), e;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function qe(t) {
|
|
1355
1355
|
const e = /* @__PURE__ */ new Date();
|
|
1356
1356
|
return e.setMonth(e.getMonth() + t), De(e);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function He(t) {
|
|
1359
1359
|
const e = /* @__PURE__ */ new Date();
|
|
1360
1360
|
return e.setMonth(e.getMonth() + t), Me(e);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function Ie(t) {
|
|
1363
1363
|
const e = t ?? (/* @__PURE__ */ new Date()).getFullYear(), n = new Date(e, 0, 1);
|
|
1364
1364
|
return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Le(t) {
|
|
1367
1367
|
const e = t ?? (/* @__PURE__ */ new Date()).getFullYear(), n = new Date(e, 11, 31);
|
|
1368
1368
|
return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Re(t) {
|
|
1371
1371
|
return be(t.toISOString());
|
|
1372
1372
|
}
|
|
1373
1373
|
export {
|
|
1374
1374
|
De as a,
|
|
1375
|
-
|
|
1376
|
-
|
|
1375
|
+
Ie as b,
|
|
1376
|
+
Se as c,
|
|
1377
1377
|
tt as d,
|
|
1378
|
-
|
|
1378
|
+
Te as e,
|
|
1379
1379
|
V as f,
|
|
1380
1380
|
L as g,
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1381
|
+
Pe as h,
|
|
1382
|
+
Ye as i,
|
|
1383
|
+
ke as j,
|
|
1384
|
+
xe as k,
|
|
1385
|
+
ve as l,
|
|
1386
|
+
pe as m,
|
|
1387
|
+
We as n,
|
|
1388
1388
|
Ne as o,
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1389
|
+
C as p,
|
|
1390
|
+
Ce as q,
|
|
1391
|
+
Fe as r,
|
|
1392
1392
|
x as s,
|
|
1393
1393
|
be as t,
|
|
1394
|
-
|
|
1395
|
-
|
|
1394
|
+
Ee as u,
|
|
1395
|
+
Me as v,
|
|
1396
1396
|
qe as w,
|
|
1397
|
-
|
|
1398
|
-
Le as y
|
|
1397
|
+
He as x,
|
|
1398
|
+
Le as y,
|
|
1399
|
+
Re as z
|
|
1399
1400
|
};
|