react-luminus-components 1.5.5 → 1.5.7
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 +32 -32
- package/dist/{FormDisabledProvider-CgpUjxI0.js → FormDisabledProvider-CB-JXGnI.js} +5 -5
- package/dist/{FormDisabledProvider-6S4xKAVc.cjs → FormDisabledProvider-DtQ7YOqf.cjs} +1 -1
- package/dist/{ShortcutLinksContext-DG4gWgPW.cjs → ShortcutLinksContext-AgOPPcPf.cjs} +17 -17
- package/dist/{ShortcutLinksContext-CQY8nrGK.js → ShortcutLinksContext-CNZMOV_j.js} +61 -60
- package/dist/components/common/Approvals/Approvals/Approvals.d.ts +17 -0
- package/dist/components/common/Approvals/Approvals/comps/ApprovalDetail/ApprovalDetail.d.ts +12 -0
- package/dist/components/common/Approvals/Approvals/comps/ApprovalDetail/comps/ApprovalDelegations/ApprovalDelegations.d.ts +9 -0
- package/dist/components/common/Approvals/Approvals/comps/ApprovalDetail/comps/ApprovalLevel/ApprovalLevel.d.ts +11 -0
- package/dist/components/common/Approvals/Approvals/comps/ApprovalDetail/comps/ApprovalLevel/comps/ChangeEmployeeModal/ChangeEmployeeModal.d.ts +13 -0
- package/dist/components/common/Approvals/Approvals/comps/ApprovalDetail/comps/ApprovalLevel/comps/index.d.ts +1 -0
- package/dist/components/common/Approvals/Approvals/comps/ApprovalDetail/comps/index.d.ts +2 -0
- package/dist/components/common/Approvals/Approvals/comps/index.d.ts +1 -0
- package/dist/components/common/Approvals/Delegations/ApprovalsDelegations.d.ts +16 -0
- package/dist/components/common/Approvals/Delegations/comps/DelegationModal/DelegationModal.d.ts +14 -0
- package/dist/components/common/Approvals/Delegations/comps/DelegationModal/hooks/useDelegationModalApi.d.ts +8 -0
- package/dist/components/common/Approvals/Delegations/comps/DelegationsTable/DelegationsTable.d.ts +10 -0
- package/dist/components/common/Approvals/Delegations/comps/index.d.ts +2 -0
- package/dist/components/common/index.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +38 -38
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +13 -13
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +10 -10
- package/dist/localStorageUtils-CBQuZzg0.cjs +1 -0
- package/dist/localStorageUtils-DBNNyBcc.js +57 -0
- package/dist/main.cjs.js +53 -53
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +5257 -4993
- package/dist/models/api/approval/ApprovalDefinitionIndexModel.d.ts +6 -0
- package/dist/models/api/approval/ApprovalDefinitionLevelApproverModel.d.ts +7 -0
- package/dist/models/api/approval/ApprovalDefinitionLevelModel.d.ts +8 -0
- package/dist/models/api/approval/ApprovalDefinitionModel.d.ts +8 -0
- package/dist/models/api/approval/ApprovalDelegationModel.d.ts +11 -0
- package/dist/models/api/approval/ApprovalPersonModel.d.ts +3 -3
- package/dist/models/index.d.ts +6 -0
- package/dist/models/texts/ApprovalTexts.d.ts +44 -0
- package/dist/models/types/EmployeePickerBaseProps.d.ts +8 -0
- package/dist/{useLocalStorageState--TbsAeFu.cjs → useLocalStorageState-B_unZcbQ.cjs} +1 -1
- package/dist/{useLocalStorageState-KRZlwyU3.js → useLocalStorageState-Uqlj_lt1.js} +1 -1
- package/dist/utils/constants/CommonLuminusIconsArray.d.ts +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +74 -81
- package/package.json +1 -1
- package/dist/localStorageUtils-CHdu9Xvf.js +0 -46
- package/dist/localStorageUtils-DUQHXXBp.cjs +0 -1
|
@@ -28132,7 +28132,7 @@ export {
|
|
|
28132
28132
|
G7 as ay,
|
|
28133
28133
|
H7 as az,
|
|
28134
28134
|
nb as b,
|
|
28135
|
-
|
|
28135
|
+
pre as b$,
|
|
28136
28136
|
pM as b0,
|
|
28137
28137
|
jne as b1,
|
|
28138
28138
|
$ne as b2,
|
|
@@ -28143,33 +28143,33 @@ export {
|
|
|
28143
28143
|
Ob as b7,
|
|
28144
28144
|
bM as b8,
|
|
28145
28145
|
Ere as b9,
|
|
28146
|
-
|
|
28147
|
-
|
|
28148
|
-
|
|
28149
|
-
|
|
28150
|
-
|
|
28151
|
-
|
|
28152
|
-
|
|
28153
|
-
|
|
28154
|
-
|
|
28155
|
-
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
|
|
28161
|
-
|
|
28162
|
-
|
|
28163
|
-
|
|
28164
|
-
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28168
|
-
|
|
28169
|
-
|
|
28170
|
-
|
|
28171
|
-
|
|
28172
|
-
|
|
28146
|
+
yre as bA,
|
|
28147
|
+
$re as bB,
|
|
28148
|
+
Bne as bC,
|
|
28149
|
+
Vne as bD,
|
|
28150
|
+
lte as bE,
|
|
28151
|
+
qg as bF,
|
|
28152
|
+
kO as bG,
|
|
28153
|
+
EO as bH,
|
|
28154
|
+
Gne as bI,
|
|
28155
|
+
p2 as bJ,
|
|
28156
|
+
are as bK,
|
|
28157
|
+
Qg as bL,
|
|
28158
|
+
V$ as bM,
|
|
28159
|
+
q$ as bN,
|
|
28160
|
+
gre as bO,
|
|
28161
|
+
O2 as bP,
|
|
28162
|
+
H$ as bQ,
|
|
28163
|
+
Sk as bR,
|
|
28164
|
+
Nk as bS,
|
|
28165
|
+
ore as bT,
|
|
28166
|
+
sre as bU,
|
|
28167
|
+
cre as bV,
|
|
28168
|
+
lre as bW,
|
|
28169
|
+
Fk as bX,
|
|
28170
|
+
ure as bY,
|
|
28171
|
+
dre as bZ,
|
|
28172
|
+
hre as b_,
|
|
28173
28173
|
Ck as ba,
|
|
28174
28174
|
W$ as bb,
|
|
28175
28175
|
Zne as bc,
|
|
@@ -28182,39 +28182,40 @@ export {
|
|
|
28182
28182
|
bn as bj,
|
|
28183
28183
|
Ag as bk,
|
|
28184
28184
|
Xne as bl,
|
|
28185
|
-
|
|
28186
|
-
|
|
28187
|
-
|
|
28188
|
-
|
|
28189
|
-
|
|
28190
|
-
|
|
28191
|
-
|
|
28192
|
-
|
|
28193
|
-
|
|
28194
|
-
|
|
28195
|
-
|
|
28196
|
-
|
|
28197
|
-
|
|
28198
|
-
|
|
28185
|
+
M6 as bm,
|
|
28186
|
+
wk as bn,
|
|
28187
|
+
$O as bo,
|
|
28188
|
+
dx as bp,
|
|
28189
|
+
Ane as bq,
|
|
28190
|
+
Mne as br,
|
|
28191
|
+
Mre as bs,
|
|
28192
|
+
Kt as bt,
|
|
28193
|
+
ene as bu,
|
|
28194
|
+
Ine as bv,
|
|
28195
|
+
U$ as bw,
|
|
28196
|
+
Px as bx,
|
|
28197
|
+
wre as by,
|
|
28198
|
+
P3 as bz,
|
|
28199
28199
|
se as c,
|
|
28200
|
-
|
|
28201
|
-
|
|
28202
|
-
|
|
28203
|
-
|
|
28204
|
-
|
|
28205
|
-
|
|
28206
|
-
|
|
28207
|
-
|
|
28208
|
-
|
|
28209
|
-
|
|
28210
|
-
|
|
28211
|
-
|
|
28212
|
-
|
|
28213
|
-
|
|
28214
|
-
|
|
28215
|
-
|
|
28216
|
-
|
|
28217
|
-
|
|
28200
|
+
Bk as c0,
|
|
28201
|
+
zk as c1,
|
|
28202
|
+
Hk as c2,
|
|
28203
|
+
oh as c3,
|
|
28204
|
+
Tk as c4,
|
|
28205
|
+
Kne as c5,
|
|
28206
|
+
Vk as c6,
|
|
28207
|
+
qk as c7,
|
|
28208
|
+
ere as c8,
|
|
28209
|
+
tre as c9,
|
|
28210
|
+
nre as ca,
|
|
28211
|
+
rre as cb,
|
|
28212
|
+
ire as cc,
|
|
28213
|
+
Dk as cd,
|
|
28214
|
+
Ik as ce,
|
|
28215
|
+
ys as cf,
|
|
28216
|
+
Cl as cg,
|
|
28217
|
+
N0 as ch,
|
|
28218
|
+
Qne as ci,
|
|
28218
28219
|
OT as d,
|
|
28219
28220
|
At as e,
|
|
28220
28221
|
mi as f,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EmployeePickerBaseProps } from '../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
appUrls?: {
|
|
5
|
+
appApprovalsDelegations?: string;
|
|
6
|
+
appEmployeeDetail?: (id: number) => string;
|
|
7
|
+
};
|
|
8
|
+
apiUrls?: {
|
|
9
|
+
apiApprovalDefinitions?: string;
|
|
10
|
+
apiApprovalDefinitionDetail?: (id: number) => string;
|
|
11
|
+
apiPostChangeEmployee?: string;
|
|
12
|
+
apiApprovalDelegations?: string;
|
|
13
|
+
};
|
|
14
|
+
EmployeePickerComponent: React.FC<EmployeePickerBaseProps>;
|
|
15
|
+
};
|
|
16
|
+
declare const Approvals: ({ appUrls: { appApprovalsDelegations, appEmployeeDetail, }, apiUrls: { apiApprovalDefinitions, apiApprovalDefinitionDetail, apiPostChangeEmployee, apiApprovalDelegations, }, EmployeePickerComponent, }: Props) => import("react").JSX.Element;
|
|
17
|
+
export default Approvals;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApprovalDefinitionModel, EmployeePickerBaseProps } from '../../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
approval: ApprovalDefinitionModel;
|
|
5
|
+
reloadApproval: () => void;
|
|
6
|
+
appEmployeeDetail: (id: number) => string;
|
|
7
|
+
apiPostChangeEmployee: string;
|
|
8
|
+
apiApprovalDelegations: string;
|
|
9
|
+
EmployeePickerComponent: React.FC<EmployeePickerBaseProps>;
|
|
10
|
+
};
|
|
11
|
+
declare const ApprovalDetail: ({ approval, reloadApproval, appEmployeeDetail, apiPostChangeEmployee, apiApprovalDelegations, EmployeePickerComponent, }: Props) => import("react").JSX.Element;
|
|
12
|
+
export default ApprovalDetail;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApprovalDefinitionModel } from '../../../../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
approval: ApprovalDefinitionModel;
|
|
5
|
+
apiApprovalDelegations: string;
|
|
6
|
+
appEmployeeDetail: (id: number) => string;
|
|
7
|
+
};
|
|
8
|
+
declare const ApprovalDelegations: ({ approval, apiApprovalDelegations, appEmployeeDetail }: Props) => import("react").JSX.Element;
|
|
9
|
+
export default ApprovalDelegations;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApprovalDefinitionLevelModel, EmployeePickerBaseProps } from '../../../../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
level: ApprovalDefinitionLevelModel;
|
|
5
|
+
reloadApproval: () => void;
|
|
6
|
+
appEmployeeDetail: (id: number) => string;
|
|
7
|
+
apiPostChangeEmployee: string;
|
|
8
|
+
EmployeePickerComponent: React.FC<EmployeePickerBaseProps>;
|
|
9
|
+
};
|
|
10
|
+
declare const ApprovalLevel: ({ level, reloadApproval, appEmployeeDetail, apiPostChangeEmployee, EmployeePickerComponent, }: Props) => import("react").JSX.Element;
|
|
11
|
+
export default ApprovalLevel;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EmployeePickerBaseProps, NameIdIntModel } from '../../../../../../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
approvalApproverId: number;
|
|
5
|
+
currentEmployee: NameIdIntModel | null;
|
|
6
|
+
show: boolean;
|
|
7
|
+
handleClose: () => void;
|
|
8
|
+
onConfirm: () => void;
|
|
9
|
+
apiPostChangeEmployee: string;
|
|
10
|
+
EmployeePickerComponent: React.FC<EmployeePickerBaseProps>;
|
|
11
|
+
};
|
|
12
|
+
declare const ChangeEmployeeModal: ({ show, handleClose, onConfirm, currentEmployee, approvalApproverId, apiPostChangeEmployee, EmployeePickerComponent, }: Props) => import("react").JSX.Element;
|
|
13
|
+
export default ChangeEmployeeModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ChangeEmployeeModal } from './ChangeEmployeeModal/ChangeEmployeeModal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ApprovalDetail } from './ApprovalDetail/ApprovalDetail';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EmployeePickerBaseProps } from '../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
apiUrls?: {
|
|
5
|
+
apiApprovalDelegations?: string;
|
|
6
|
+
apiHasRunningProcess?: string;
|
|
7
|
+
apiPostEditDelegation?: string;
|
|
8
|
+
apiDeleteDelegation?: (id: number) => string;
|
|
9
|
+
apiApprovalDefinitions?: string;
|
|
10
|
+
};
|
|
11
|
+
BnfTableComponent: React.ElementType;
|
|
12
|
+
tableIdentifier: number;
|
|
13
|
+
EmployeePickerComponent: React.FC<EmployeePickerBaseProps>;
|
|
14
|
+
};
|
|
15
|
+
declare const ApprovalsDelegations: ({ apiUrls: { apiApprovalDelegations, apiHasRunningProcess, apiPostEditDelegation, apiDeleteDelegation, apiApprovalDefinitions, }, BnfTableComponent, tableIdentifier, EmployeePickerComponent, }: Props) => import("react").JSX.Element;
|
|
16
|
+
export default ApprovalsDelegations;
|
package/dist/components/common/Approvals/Delegations/comps/DelegationModal/DelegationModal.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApprovalDelegationModel, EmployeePickerBaseProps } from '../../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
model: ApprovalDelegationModel | null;
|
|
5
|
+
handleClose: () => void;
|
|
6
|
+
onConfirm: () => void;
|
|
7
|
+
apiApprovalDefinitions: string;
|
|
8
|
+
apiHasRunningProcess: string;
|
|
9
|
+
apiPostEditDelegation: string;
|
|
10
|
+
apiDeleteDelegation: (id: number) => string;
|
|
11
|
+
EmployeePickerComponent: React.FC<EmployeePickerBaseProps>;
|
|
12
|
+
};
|
|
13
|
+
declare const DelegationModal: ({ model, handleClose, onConfirm, apiApprovalDefinitions, apiHasRunningProcess, apiPostEditDelegation, apiDeleteDelegation, EmployeePickerComponent, }: Props) => import("react").JSX.Element;
|
|
14
|
+
export default DelegationModal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApprovalDelegationModel } from '../../../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
declare const useDelegationModalApi: (model: ApprovalDelegationModel | null, apiHasRunningProcess?: string, apiPostEditDelegation?: string, apiDeleteDelegation?: (id: number) => string) => {
|
|
4
|
+
getHasRunningProcesses: (employeeId: number, approvalId: number) => Promise<boolean>;
|
|
5
|
+
postEditDelegation: (editModel: ApprovalDelegationModel, formMethods: any) => Promise<boolean>;
|
|
6
|
+
postDeleteDelegation: () => Promise<boolean>;
|
|
7
|
+
};
|
|
8
|
+
export default useDelegationModalApi;
|
package/dist/components/common/Approvals/Delegations/comps/DelegationsTable/DelegationsTable.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApprovalDelegationModel } from '../../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
BnfTableComponent: React.ElementType;
|
|
5
|
+
tableIdentifier: number;
|
|
6
|
+
items: ApprovalDelegationModel[];
|
|
7
|
+
onEditItem: (item: ApprovalDelegationModel) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const DelegationsTable: ({ BnfTableComponent, items, onEditItem, tableIdentifier }: Props) => import("react").JSX.Element;
|
|
10
|
+
export default DelegationsTable;
|
|
@@ -51,3 +51,5 @@ export { default as Approval } from './Approval/Approval';
|
|
|
51
51
|
export { default as StateToggle } from './StateToggle/StateToggle';
|
|
52
52
|
export { default as PermissionSubstituteTable } from './PermissionsSubstitute/SubstituteTable/SubstituteTable';
|
|
53
53
|
export { default as PermissionSubstituteDetail } from './PermissionsSubstitute/Detail/PermissionSubstituteDetail';
|
|
54
|
+
export { default as ApprovalsDelegations } from './Approvals/Delegations/ApprovalsDelegations';
|
|
55
|
+
export { default as Approvals } from './Approvals/Approvals/Approvals';
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ue=Object.defineProperty;var ce=(e,t,n)=>t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var S=(e,t,n)=>ce(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ShortcutLinksContext-DG4gWgPW.cjs"),l=require("react"),R=require("@azure/msal-browser"),fe=require("@azure/msal-react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");const K=require("./FormDisabledProvider-6S4xKAVc.cjs"),Y=require("./useLocalStorageState--TbsAeFu.cjs");function de(e){const t=o.toDate(e);return t.setHours(23,59,59,999),t}function me(){return de(Date.now())}function pe(e,t){const n=+o.toDate(e),[r,s]=[+o.toDate(t.start),+o.toDate(t.end)].sort((a,c)=>a-c);return n>=r&&n<=s}function he(){return o.startOfDay(Date.now())}const xe=({children:e})=>{const[t,n]=l.useState(!1),[r,s]=l.useState(""),[a,c]=l.useState(void 0),u=l.useCallback((d,m)=>{n(!0),s(d),c(m)},[]),f=l.useCallback(()=>{n(!1)},[]),i=l.useMemo(()=>({show:t,text:r,showConfirm:u,hideConfirm:f,textSm:a}),[t,r,u,f,a]);return o.jsxRuntimeExports.jsxs(o.ConfirmContext.Provider,{value:i,children:[o.jsxRuntimeExports.jsx(Qe,{}),e]})},ge=()=>{const{texts:{confirm:e}}=l.useContext(o.LuminusComponentsContext),{isShown:t,text:n,onFinish:r}=o.usePrompt(),{options:s}=l.useContext(o.PromptContext),[a,c]=l.useState(s.defaultValue??""),u=l.useCallback(()=>{r(null)},[r]),f=l.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&(r(a),c(""))},[r,s.required,a]),i=l.useMemo(()=>({value:a,onChange:d=>c(d.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return l.useEffect(()=>{t===!0&&c(s.defaultValue??"")},[t,s.defaultValue]),o.jsxRuntimeExports.jsxs(o.Modal,{show:t,size:"sm",centered:!0,onHide:u,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:n})}),o.jsxRuntimeExports.jsxs("form",{onSubmit:f,onKeyDown:d=>d.stopPropagation(),children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...i,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...i,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:u,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})]})]})]})},ye=({children:e})=>{const[t,n]=l.useState(!1),[r,s]=l.useState(""),[a,c]=l.useState({input:"textarea",type:"text"}),u=l.useRef(()=>{}),f=l.useCallback(m=>{s(m),n(!0)},[]),i=l.useCallback(()=>{n(!1)},[]),d=l.useMemo(()=>({isShown:t,text:r,showPrompt:f,hidePrompt:i,resolveRef:u,options:a,setOptions:c}),[t,r,f,i,a]);return o.jsxRuntimeExports.jsxs(o.PromptContext.Provider,{value:d,children:[e,o.jsxRuntimeExports.jsx(ge,{})]})},ve=({cookieDomain:e,axiosOptions:t,language:n,texts:r,ProjectIconComponent:s,localizationContext:a,chartColorPalette:c,children:u})=>{const f=l.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:n,texts:r,ProjectIconComponent:s,localizationContext:a,chartColorPalette:c}),[t,e,n,s,a,r,c]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:f,children:o.jsxRuntimeExports.jsx(xe,{children:o.jsxRuntimeExports.jsxs(ye,{children:[o.jsxRuntimeExports.jsx(o.Ie,{}),u]})})})},Te=({children:e})=>{const[t,n]=l.useState(!1),[r]=l.useState(new Set),s=l.useCallback(u=>{r.add(u),n(!0)},[r]),a=l.useCallback(u=>{r.delete(u),r.size===0&&n(!1)},[r]),c=l.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:c,children:[t&&o.jsxRuntimeExports.jsx(K.Loading,{}),e]})},Ce=({children:e})=>{const t=o.useAxios(),{msalInstance:n,getToken:r}=l.useContext(o.AuthContext),{delegation:s,setDelegation:a,setAvailableDelegations:c,refreshAvailableDelegations:u}=l.useContext(o.DelegationContext),[f,i]=l.useState(null),d=l.useCallback(async()=>{const g=await r();g&&i(g.token)},[r]);l.useEffect(()=>{d()},[d]);const p=l.useCallback(()=>{const g=localStorage.getItem("user")??null;return g?JSON.parse(g??""):null},[])(),[h,x]=l.useState({state:p?o.LoginState.LOGGED_IN:o.LoginState.LOGGING_IN,user:p}),y=l.useCallback(async g=>{let T=null;return await t.get("/user/detail",g?{headers:{Authorization:`Bearer ${g}`}}:void 0).then(H=>{T=H.data}).catch(()=>{T=null}),T},[t]),E=l.useCallback(()=>{localStorage.removeItem("user"),x({state:o.LoginState.LOGGED_OUT,user:null}),a(null),c(null)},[c,a]),b=l.useCallback(async g=>{x({state:o.LoginState.LOGGING_IN,user:null});const T=await y(g);return T?(x({state:o.LoginState.LOGGED_IN,user:T}),localStorage.setItem("user",JSON.stringify(T)),await u(),!0):(x({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[y,u]),A=l.useCallback(()=>{E()},[E]);l.useEffect(()=>{if(n){const g=n.addEventCallback(T=>{if(T.eventType===R.EventType.LOGIN_SUCCESS&&T.payload){const H=T.payload;i(H.accessToken)}});return()=>{g&&n.removeEventCallback(g)}}return()=>{}},[n,b,A]);const V=l.useCallback(async g=>{g&&await b(g).catch(()=>{A(),a(null)})},[b,A,a]);l.useEffect(()=>{V(f)},[f,s==null?void 0:s.id,V]);const le=l.useMemo(()=>({user:h.user,userLoginState:h,loginUser:b,logoutUser:A}),[h,b,A]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:le,children:e})},Ee=({...e})=>{const{cookieDomain:t}=l.useContext(o.LuminusComponentsContext),[,n]=o.useCookies(["Authorization"]),r=l.useMemo(()=>e.useMsal?e.msalInstance:null,[e.useMsal,e.useMsal?e.msalInstance:null]),s=l.useMemo(()=>e.useMsal?e.msalScopes:[],[e.useMsal,e.useMsal?e.msalScopes:null]),a=l.useMemo(()=>e.useMsal?e.msalExtraScopes:[],[e.useMsal,e.useMsal?e.msalExtraScopes:null]),c=l.useRef(null),u=l.useCallback(()=>{const m=localStorage.getItem("token");return m?{token:m,expiresOn:K.addYears(new Date(Date.now()),1)}:null},[]),f=l.useCallback(async()=>{var x;if(c.current)return c.current;const m=r==null?void 0:r.getActiveAccount(),p=m??((x=r==null?void 0:r.getAllAccounts())==null?void 0:x.at(0))??void 0;if(!p)return null;m||r==null||r.setActiveAccount(p);const h=r==null?void 0:r.acquireTokenSilent({scopes:s,account:p}).then(y=>({token:y.accessToken,expiresOn:y.expiresOn??new Date(Date.now())})).catch(y=>{if(console.error("Error acquiring token",y),y instanceof R.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),r==null||r.acquireTokenRedirect({scopes:s,extraScopesToConsent:a}),null;throw y}).finally(()=>{c.current=null});return c.current=h??null,h??null},[r,s,a]),i=l.useCallback(async()=>e.useMsal?f():u(),[u,f,e.useMsal]),d=l.useMemo(()=>({useMsal:e.useMsal??!1,msalInstance:r,msalScopes:s,msalExtraScopes:a,getToken:i}),[e.useMsal,r,s,a,i]);return l.useEffect(()=>{if(e.useMsal&&r){const m=r.addEventCallback(p=>{if(p.eventType===R.EventType.LOGIN_SUCCESS||p.eventType===R.EventType.ACQUIRE_TOKEN_SUCCESS&&p.payload){const h=p.payload,x=h.account;r.setActiveAccount(x);const y=h.accessToken,E=h.expiresOn;n("Authorization",y,{path:"/",secure:!0,sameSite:"none",domain:t,expires:E??void 0})}p.error&&console.error("AuthProvider MSAL Error",p)});return()=>{m&&r.removeEventCallback(m)}}return()=>{}},[e.useMsal,r,n,t]),o.jsxRuntimeExports.jsx(o.AuthContext.Provider,{value:d,children:e.useMsal?o.jsxRuntimeExports.jsx(fe.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Se=({children:e,relativeEndpoint:t})=>{const[n,r,s]=Y.useLocalStorageState("user-delegation",null),a=l.useMemo(()=>{if(!n)return null;const m=n.from?o.parseISO(n.from):he(),p=n.to?o.parseISO(n.to):me();return pe(new Date(Date.now()),{start:m,end:p})?n:(r(null),null)},[n,r]),{data:c,setData:u,reloadData:f}=Y.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),i=l.useRef(null);l.useEffect(()=>{const m=()=>{f(),i.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{i.current!==null&&window.clearTimeout(i.current)}},[f]),l.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,f]);const d=l.useMemo(()=>({delegation:a,setDelegation:r,availableDelegations:c,setAvailableDelegations:u,refreshAvailableDelegations:f}),[a,r,c,u,f]);return o.jsxRuntimeExports.jsx(o.DelegationContext.Provider,{value:d,children:e})};var be=typeof Element<"u",Ae=typeof Map=="function",je=typeof Set=="function",Oe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function L(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!L(e[r],t[r]))return!1;return!0}var a;if(Ae&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!L(r.value[1],t.get(r.value[0])))return!1;return!0}if(je&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Oe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])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),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(be&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!L(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var we=function(t,n){try{return L(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const ke=o.getDefaultExportFromCjs(we);var De=function(t,n,r,s){var a=r?r.call(s,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var c=Object.keys(t),u=Object.keys(n);if(c.length!==u.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(n),i=0;i<c.length;i++){var d=c[i];if(!f(d))return!1;var m=t[d],p=n[d];if(a=r?r.call(s,m,p,d):void 0,a===!1||a===void 0&&m!==p)return!1}return!0};const Pe=o.getDefaultExportFromCjs(De);var te=(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))(te||{}),_={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"]}},W=Object.values(te),B={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Me=Object.entries(B).reduce((e,[t,n])=>(e[n]=t,e),{}),C="data-rh",w={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},k=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Re=e=>{let t=k(e,"title");const n=k(e,w.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=k(e,w.DEFAULT_TITLE);return t||r||void 0},Le=e=>k(e,w.ON_CHANGE_CLIENT_STATE)||(()=>{}),$=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),Ie=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let a=0;a<s.length;a+=1){const u=s[a].toLowerCase();if(e.indexOf(u)!==-1&&r[u])return n.concat(r)}}return n},[]),He=e=>console&&typeof console.warn=="function"&&console.warn(e),D=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&He(`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 i;const d=Object.keys(f);for(let p=0;p<d.length;p+=1){const h=d[p],x=h.toLowerCase();t.indexOf(x)!==-1&&!(i==="rel"&&f[i].toLowerCase()==="canonical")&&!(x==="rel"&&f[x].toLowerCase()==="stylesheet")&&(i=x),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(i=h)}if(!i||!f[i])return!1;const m=f[i].toLowerCase();return r[i]||(r[i]={}),c[i]||(c[i]={}),r[i][m]?!1:(c[i][m]=!0,!0)}).reverse().forEach(f=>s.push(f));const u=Object.keys(c);for(let f=0;f<u.length;f+=1){const i=u[f],d={...r[i],...c[i]};r[i]=d}return s},[]).reverse()},_e=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},$e=e=>({baseTag:Ie(["href"],e),bodyAttributes:$("bodyAttributes",e),defer:k(e,w.DEFER),encode:k(e,w.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:$("htmlAttributes",e),linkTags:D("link",["rel","href"],e),metaTags:D("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:D("noscript",["innerHTML"],e),onChangeClientState:Le(e),scriptTags:D("script",["src","innerHTML"],e),styleTags:D("style",["cssText"],e),title:Re(e),titleAttributes:$("titleAttributes",e),prioritizeSeoTags:_e(e,w.PRIORITIZE_SEO_TAGS)}),re=e=>Array.isArray(e)?e.join(""):e,Ue=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},U=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(Ue(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},J=(e,t)=>({...e,[t]:void 0}),qe=["noscript","script","style"],F=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ne=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Fe=(e,t,n,r)=>{const s=ne(n),a=re(t);return s?`<${e} ${C}="true" ${s}>${F(a,r)}</${e}>`:`<${e} ${C}="true">${F(a,r)}</${e}>`},Ne=(e,t,n=!0)=>t.reduce((r,s)=>{const a=s,c=Object.keys(a).filter(i=>!(i==="innerHTML"||i==="cssText")).reduce((i,d)=>{const m=typeof a[d]>"u"?d:`${d}="${F(a[d],n)}"`;return i?`${i} ${m}`:m},""),u=a.innerHTML||a.cssText||"",f=qe.indexOf(e)===-1;return`${r}<${e} ${C}="true" ${c}${f?"/>":`>${u}</${e}>`}`},""),se=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=B[r];return n[s||r]=e[r],n},t),Ge=(e,t,n)=>{const r={key:t,[C]:!0},s=se(n,r);return[l.createElement("title",s,t)]},I=(e,t)=>t.map((n,r)=>{const s={key:r,[C]:!0};return Object.keys(n).forEach(a=>{const u=B[a]||a;if(u==="innerHTML"||u==="cssText"){const f=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:f}}else s[u]=n[a]}),l.createElement(e,s)}),v=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Ge(e,t.title,t.titleAttributes),toString:()=>Fe(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>se(t),toString:()=>ne(t)};default:return{toComponent:()=>I(e,t),toString:()=>Ne(e,t,n)}}},ze=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=U(e,_.meta),a=U(t,_.link),c=U(n,_.script);return{priorityMethods:{toComponent:()=>[...I("meta",s.priority),...I("link",a.priority),...I("script",c.priority)],toString:()=>`${v("meta",s.priority,r)} ${v("link",a.priority,r)} ${v("script",c.priority,r)}`},metaTags:s.default,linkTags:a.default,scriptTags:c.default}},Ke=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:a,styleTags:c,title:u="",titleAttributes:f,prioritizeSeoTags:i}=e;let{linkTags:d,metaTags:m,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return i&&({priorityMethods:h,linkTags:d,metaTags:m,scriptTags:p}=ze(e)),{priority:h,base:v("base",t,r),bodyAttributes:v("bodyAttributes",n,r),htmlAttributes:v("htmlAttributes",s,r),link:v("link",d,r),meta:v("meta",m,r),noscript:v("noscript",a,r),script:v("script",p,r),style:v("style",c,r),title:v("title",{title:u,titleAttributes:f},r)}},N=Ke,M=[],oe=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){S(this,"instances",[]);S(this,"canUseDOM",oe);S(this,"context");S(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?M:this.instances,add:e=>{(this.canUseDOM?M:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?M:this.instances).indexOf(e);(this.canUseDOM?M:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=N({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Be={},ae=l.createContext(Be),j,ie=(j=class extends l.Component{constructor(n){super(n);S(this,"helmetData");this.helmetData=new G(this.props.context||{},j.canUseDOM)}render(){return l.createElement(ae.Provider,{value:this.helmetData.value},this.props.children)}},S(j,"canUseDOM",oe),j),O=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${C}]`),s=[].slice.call(r),a=[];let c;return t&&t.length&&t.forEach(u=>{const f=document.createElement(e);for(const i in u)if(Object.prototype.hasOwnProperty.call(u,i))if(i==="innerHTML")f.innerHTML=u.innerHTML;else if(i==="cssText")f.styleSheet?f.styleSheet.cssText=u.cssText:f.appendChild(document.createTextNode(u.cssText));else{const d=i,m=typeof u[d]>"u"?"":u[d];f.setAttribute(i,m)}f.setAttribute(C,"true"),s.some((i,d)=>(c=d,f.isEqualNode(i)))?s.splice(c,1):a.push(f)}),s.forEach(u=>{var f;return(f=u.parentNode)==null?void 0:f.removeChild(u)}),a.forEach(u=>n.appendChild(u)),{oldTags:s,newTags:a}},z=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(C),s=r?r.split(","):[],a=[...s],c=Object.keys(t);for(const u of c){const f=t[u]||"";n.getAttribute(u)!==f&&n.setAttribute(u,f),s.indexOf(u)===-1&&s.push(u);const i=a.indexOf(u);i!==-1&&a.splice(i,1)}for(let u=a.length-1;u>=0;u-=1)n.removeAttribute(a[u]);s.length===a.length?n.removeAttribute(C):n.getAttribute(C)!==c.join(",")&&n.setAttribute(C,c.join(","))},Ve=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=re(e)),z("title",t)},Z=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:a,metaTags:c,noscriptTags:u,onChangeClientState:f,scriptTags:i,styleTags:d,title:m,titleAttributes:p}=e;z("body",r),z("html",s),Ve(m,p);const h={baseTag:O("base",n),linkTags:O("link",a),metaTags:O("meta",c),noscriptTags:O("noscript",u),scriptTags:O("script",i),styleTags:O("style",d)},x={},y={};Object.keys(h).forEach(E=>{const{newTags:b,oldTags:A}=h[E];b.length&&(x[E]=b),A.length&&(y[E]=h[E].oldTags)}),t&&t(),f(e,x,y)},P=null,Ye=e=>{P&&cancelAnimationFrame(P),e.defer?P=requestAnimationFrame(()=>{Z(e,()=>{P=null})}):(Z(e),P=null)},We=Ye,Q=class extends l.Component{constructor(){super(...arguments);S(this,"rendered",!1)}shouldComponentUpdate(t){return!Pe(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=$e(t.get().map(a=>{const c={...a.props};return delete c.context,c}));ie.canUseDOM?We(s):N&&(r=N(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},q,Je=(q=class extends l.Component{shouldComponentUpdate(e){return!ke(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,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return o.invariant(W.some(n=>e.type===n),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 ${W.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(n=>typeof n!="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 n={};return l.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...a}=r.props,c=Object.keys(a).reduce((f,i)=>(f[Me[i]||i]=a[i],f),{});let{type:u}=r;switch(typeof u=="symbol"?u=u.toString():this.warnOnInvalidChildren(r,s),u){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,c,s);break;default:t=this.mapObjectTypeChildren(r,t,c,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof G)){const s=r;r=new G(s.context,!0),delete n.helmetData}return r?l.createElement(Q,{...n,context:r.value}):l.createElement(ae.Consumer,null,s=>l.createElement(Q,{...n,context:s}))}},S(q,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),q);const X=(e,t)=>e?`${e} | ${t}`:t,Ze=({defaultHelmet:e,children:t,helmetPrefix:n})=>{const[r,s]=l.useState([X(n??"",e)]),a=l.useCallback(i=>{s(d=>[...d,X(n??"",i)])},[n]),c=l.useCallback(()=>{s(i=>i.length>1?i.slice(0,-1):i)},[s]),u=l.useMemo(()=>r.at(-1)??"",[r]),f=l.useMemo(()=>({addHelmet:a,removeHelmet:c}),[a,c]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:f,children:o.jsxRuntimeExports.jsxs(ie,{children:[o.jsxRuntimeExports.jsx(Je,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:u})}),t]})})},ee=50,Qe=()=>{const{texts:{confirm:e}}=l.useContext(o.LuminusComponentsContext),{onConfirm:t,onCancel:n,text:r,show:s,textSm:a}=o.useConfirm(),c=l.useMemo(()=>a===void 0?r.length>ee:a,[r,a]),u=l.useMemo(()=>r.length>ee,[r]),f=l.useCallback(i=>{if(s)switch(i.key){case"Enter":i.preventDefault(),i.stopPropagation(),t();break;case"Escape":i.preventDefault(),i.stopPropagation(),n();break}},[t,n,s]);return o.useKeyPress(f),o.jsxRuntimeExports.jsxs(o.Modal,{show:s,size:u?void 0:"sm",centered:!0,onHide:n,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:c?o.jsxRuntimeExports.jsx(o.Typography,{variant:"body",children:r}):o.jsxRuntimeExports.jsx(o.Modal.Title,{children:r})}),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:n,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.FormDisabledContext=o.FormDisabledContext;exports.HelmetContext=o.HelmetContext;exports.LoadingContext=o.LoadingContext;exports.LuminusComponentsContext=o.LuminusComponentsContext;exports.UserContext=o.UserContext;exports.useFormDisabledContext=o.useFormDisabledContext;exports.FormDisabledProvider=K.FormDisabledProvider;exports.AuthProvider=Ee;exports.DelegationProvider=Se;exports.HelmetProvider=Ze;exports.LoadingProvider=Te;exports.LuminusComponentsProvider=ve;exports.UserProvider=Ce;
|
|
1
|
+
"use strict";var ue=Object.defineProperty;var ce=(e,t,n)=>t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var S=(e,t,n)=>ce(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ShortcutLinksContext-AgOPPcPf.cjs"),l=require("react"),R=require("@azure/msal-browser"),fe=require("@azure/msal-react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");const K=require("./FormDisabledProvider-DtQ7YOqf.cjs"),Y=require("./useLocalStorageState-B_unZcbQ.cjs");function de(e){const t=o.toDate(e);return t.setHours(23,59,59,999),t}function me(){return de(Date.now())}function pe(e,t){const n=+o.toDate(e),[r,s]=[+o.toDate(t.start),+o.toDate(t.end)].sort((a,c)=>a-c);return n>=r&&n<=s}function he(){return o.startOfDay(Date.now())}const xe=({children:e})=>{const[t,n]=l.useState(!1),[r,s]=l.useState(""),[a,c]=l.useState(void 0),u=l.useCallback((d,m)=>{n(!0),s(d),c(m)},[]),f=l.useCallback(()=>{n(!1)},[]),i=l.useMemo(()=>({show:t,text:r,showConfirm:u,hideConfirm:f,textSm:a}),[t,r,u,f,a]);return o.jsxRuntimeExports.jsxs(o.ConfirmContext.Provider,{value:i,children:[o.jsxRuntimeExports.jsx(Qe,{}),e]})},ge=()=>{const{texts:{confirm:e}}=l.useContext(o.LuminusComponentsContext),{isShown:t,text:n,onFinish:r}=o.usePrompt(),{options:s}=l.useContext(o.PromptContext),[a,c]=l.useState(s.defaultValue??""),u=l.useCallback(()=>{r(null)},[r]),f=l.useCallback(d=>{d.preventDefault(),!(s.required&&!a)&&(r(a),c(""))},[r,s.required,a]),i=l.useMemo(()=>({value:a,onChange:d=>c(d.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[a]);return l.useEffect(()=>{t===!0&&c(s.defaultValue??"")},[t,s.defaultValue]),o.jsxRuntimeExports.jsxs(o.Modal,{show:t,size:"sm",centered:!0,onHide:u,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:o.jsxRuntimeExports.jsx(o.Modal.Title,{children:n})}),o.jsxRuntimeExports.jsxs("form",{onSubmit:f,onKeyDown:d=>d.stopPropagation(),children:[o.jsxRuntimeExports.jsxs(o.Modal.Body,{children:[s.input==="textarea"?o.jsxRuntimeExports.jsx("textarea",{...i,rows:5}):void 0,s.input==="input"?o.jsxRuntimeExports.jsx(o.FormControl,{...i,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:u,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})]})]})]})},ye=({children:e})=>{const[t,n]=l.useState(!1),[r,s]=l.useState(""),[a,c]=l.useState({input:"textarea",type:"text"}),u=l.useRef(()=>{}),f=l.useCallback(m=>{s(m),n(!0)},[]),i=l.useCallback(()=>{n(!1)},[]),d=l.useMemo(()=>({isShown:t,text:r,showPrompt:f,hidePrompt:i,resolveRef:u,options:a,setOptions:c}),[t,r,f,i,a]);return o.jsxRuntimeExports.jsxs(o.PromptContext.Provider,{value:d,children:[e,o.jsxRuntimeExports.jsx(ge,{})]})},ve=({cookieDomain:e,axiosOptions:t,language:n,texts:r,ProjectIconComponent:s,localizationContext:a,chartColorPalette:c,children:u})=>{const f=l.useMemo(()=>({axiosOptions:t,cookieDomain:e,language:n,texts:r,ProjectIconComponent:s,localizationContext:a,chartColorPalette:c}),[t,e,n,s,a,r,c]);return o.jsxRuntimeExports.jsx(o.LuminusComponentsContext.Provider,{value:f,children:o.jsxRuntimeExports.jsx(xe,{children:o.jsxRuntimeExports.jsxs(ye,{children:[o.jsxRuntimeExports.jsx(o.Ie,{}),u]})})})},Te=({children:e})=>{const[t,n]=l.useState(!1),[r]=l.useState(new Set),s=l.useCallback(u=>{r.add(u),n(!0)},[r]),a=l.useCallback(u=>{r.delete(u),r.size===0&&n(!1)},[r]),c=l.useMemo(()=>({isLoading:t,startLoading:s,stopLoading:a}),[t,s,a]);return o.jsxRuntimeExports.jsxs(o.LoadingContext.Provider,{value:c,children:[t&&o.jsxRuntimeExports.jsx(K.Loading,{}),e]})},Ce=({children:e})=>{const t=o.useAxios(),{msalInstance:n,getToken:r}=l.useContext(o.AuthContext),{delegation:s,setDelegation:a,setAvailableDelegations:c,refreshAvailableDelegations:u}=l.useContext(o.DelegationContext),[f,i]=l.useState(null),d=l.useCallback(async()=>{const g=await r();g&&i(g.token)},[r]);l.useEffect(()=>{d()},[d]);const p=l.useCallback(()=>{const g=localStorage.getItem("user")??null;return g?JSON.parse(g??""):null},[])(),[h,x]=l.useState({state:p?o.LoginState.LOGGED_IN:o.LoginState.LOGGING_IN,user:p}),y=l.useCallback(async g=>{let T=null;return await t.get("/user/detail",g?{headers:{Authorization:`Bearer ${g}`}}:void 0).then(H=>{T=H.data}).catch(()=>{T=null}),T},[t]),E=l.useCallback(()=>{localStorage.removeItem("user"),x({state:o.LoginState.LOGGED_OUT,user:null}),a(null),c(null)},[c,a]),b=l.useCallback(async g=>{x({state:o.LoginState.LOGGING_IN,user:null});const T=await y(g);return T?(x({state:o.LoginState.LOGGED_IN,user:T}),localStorage.setItem("user",JSON.stringify(T)),await u(),!0):(x({state:o.LoginState.LOGIN_FAILED,user:null}),!1)},[y,u]),A=l.useCallback(()=>{E()},[E]);l.useEffect(()=>{if(n){const g=n.addEventCallback(T=>{if(T.eventType===R.EventType.LOGIN_SUCCESS&&T.payload){const H=T.payload;i(H.accessToken)}});return()=>{g&&n.removeEventCallback(g)}}return()=>{}},[n,b,A]);const V=l.useCallback(async g=>{g&&await b(g).catch(()=>{A(),a(null)})},[b,A,a]);l.useEffect(()=>{V(f)},[f,s==null?void 0:s.id,V]);const le=l.useMemo(()=>({user:h.user,userLoginState:h,loginUser:b,logoutUser:A}),[h,b,A]);return o.jsxRuntimeExports.jsx(o.UserContext.Provider,{value:le,children:e})},Ee=({...e})=>{const{cookieDomain:t}=l.useContext(o.LuminusComponentsContext),[,n]=o.useCookies(["Authorization"]),r=l.useMemo(()=>e.useMsal?e.msalInstance:null,[e.useMsal,e.useMsal?e.msalInstance:null]),s=l.useMemo(()=>e.useMsal?e.msalScopes:[],[e.useMsal,e.useMsal?e.msalScopes:null]),a=l.useMemo(()=>e.useMsal?e.msalExtraScopes:[],[e.useMsal,e.useMsal?e.msalExtraScopes:null]),c=l.useRef(null),u=l.useCallback(()=>{const m=localStorage.getItem("token");return m?{token:m,expiresOn:K.addYears(new Date(Date.now()),1)}:null},[]),f=l.useCallback(async()=>{var x;if(c.current)return c.current;const m=r==null?void 0:r.getActiveAccount(),p=m??((x=r==null?void 0:r.getAllAccounts())==null?void 0:x.at(0))??void 0;if(!p)return null;m||r==null||r.setActiveAccount(p);const h=r==null?void 0:r.acquireTokenSilent({scopes:s,account:p}).then(y=>({token:y.accessToken,expiresOn:y.expiresOn??new Date(Date.now())})).catch(y=>{if(console.error("Error acquiring token",y),y instanceof R.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),r==null||r.acquireTokenRedirect({scopes:s,extraScopesToConsent:a}),null;throw y}).finally(()=>{c.current=null});return c.current=h??null,h??null},[r,s,a]),i=l.useCallback(async()=>e.useMsal?f():u(),[u,f,e.useMsal]),d=l.useMemo(()=>({useMsal:e.useMsal??!1,msalInstance:r,msalScopes:s,msalExtraScopes:a,getToken:i}),[e.useMsal,r,s,a,i]);return l.useEffect(()=>{if(e.useMsal&&r){const m=r.addEventCallback(p=>{if(p.eventType===R.EventType.LOGIN_SUCCESS||p.eventType===R.EventType.ACQUIRE_TOKEN_SUCCESS&&p.payload){const h=p.payload,x=h.account;r.setActiveAccount(x);const y=h.accessToken,E=h.expiresOn;n("Authorization",y,{path:"/",secure:!0,sameSite:"none",domain:t,expires:E??void 0})}p.error&&console.error("AuthProvider MSAL Error",p)});return()=>{m&&r.removeEventCallback(m)}}return()=>{}},[e.useMsal,r,n,t]),o.jsxRuntimeExports.jsx(o.AuthContext.Provider,{value:d,children:e.useMsal?o.jsxRuntimeExports.jsx(fe.MsalProvider,{instance:e.msalInstance,children:e.children}):e.children})},Se=({children:e,relativeEndpoint:t})=>{const[n,r,s]=Y.useLocalStorageState("user-delegation",null),a=l.useMemo(()=>{if(!n)return null;const m=n.from?o.parseISO(n.from):he(),p=n.to?o.parseISO(n.to):me();return pe(new Date(Date.now()),{start:m,end:p})?n:(r(null),null)},[n,r]),{data:c,setData:u,reloadData:f}=Y.useGetApiData(t,{nullStateBeforeLoad:!1,nullStateOnFail:!0}),i=l.useRef(null);l.useEffect(()=>{const m=()=>{f(),i.current=window.setTimeout(m,o.msToStartOfNextDay()+5e3)};return m(),()=>{i.current!==null&&window.clearTimeout(i.current)}},[f]),l.useEffect(()=>{const m=()=>{s()};return window.addEventListener("focus",m),()=>{window.removeEventListener("focus",m)}},[s,f]);const d=l.useMemo(()=>({delegation:a,setDelegation:r,availableDelegations:c,setAvailableDelegations:u,refreshAvailableDelegations:f}),[a,r,c,u,f]);return o.jsxRuntimeExports.jsx(o.DelegationContext.Provider,{value:d,children:e})};var be=typeof Element<"u",Ae=typeof Map=="function",je=typeof Set=="function",Oe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function L(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!L(e[r],t[r]))return!1;return!0}var a;if(Ae&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!L(r.value[1],t.get(r.value[0])))return!1;return!0}if(je&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Oe&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])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),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(be&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!L(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var we=function(t,n){try{return L(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const ke=o.getDefaultExportFromCjs(we);var De=function(t,n,r,s){var a=r?r.call(s,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var c=Object.keys(t),u=Object.keys(n);if(c.length!==u.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(n),i=0;i<c.length;i++){var d=c[i];if(!f(d))return!1;var m=t[d],p=n[d];if(a=r?r.call(s,m,p,d):void 0,a===!1||a===void 0&&m!==p)return!1}return!0};const Pe=o.getDefaultExportFromCjs(De);var te=(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))(te||{}),_={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"]}},W=Object.values(te),B={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Me=Object.entries(B).reduce((e,[t,n])=>(e[n]=t,e),{}),C="data-rh",w={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},k=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Re=e=>{let t=k(e,"title");const n=k(e,w.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=k(e,w.DEFAULT_TITLE);return t||r||void 0},Le=e=>k(e,w.ON_CHANGE_CLIENT_STATE)||(()=>{}),$=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),Ie=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let a=0;a<s.length;a+=1){const u=s[a].toLowerCase();if(e.indexOf(u)!==-1&&r[u])return n.concat(r)}}return n},[]),He=e=>console&&typeof console.warn=="function"&&console.warn(e),D=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&He(`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 i;const d=Object.keys(f);for(let p=0;p<d.length;p+=1){const h=d[p],x=h.toLowerCase();t.indexOf(x)!==-1&&!(i==="rel"&&f[i].toLowerCase()==="canonical")&&!(x==="rel"&&f[x].toLowerCase()==="stylesheet")&&(i=x),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(i=h)}if(!i||!f[i])return!1;const m=f[i].toLowerCase();return r[i]||(r[i]={}),c[i]||(c[i]={}),r[i][m]?!1:(c[i][m]=!0,!0)}).reverse().forEach(f=>s.push(f));const u=Object.keys(c);for(let f=0;f<u.length;f+=1){const i=u[f],d={...r[i],...c[i]};r[i]=d}return s},[]).reverse()},_e=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},$e=e=>({baseTag:Ie(["href"],e),bodyAttributes:$("bodyAttributes",e),defer:k(e,w.DEFER),encode:k(e,w.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:$("htmlAttributes",e),linkTags:D("link",["rel","href"],e),metaTags:D("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:D("noscript",["innerHTML"],e),onChangeClientState:Le(e),scriptTags:D("script",["src","innerHTML"],e),styleTags:D("style",["cssText"],e),title:Re(e),titleAttributes:$("titleAttributes",e),prioritizeSeoTags:_e(e,w.PRIORITIZE_SEO_TAGS)}),re=e=>Array.isArray(e)?e.join(""):e,Ue=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},U=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(Ue(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},J=(e,t)=>({...e,[t]:void 0}),qe=["noscript","script","style"],F=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ne=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Fe=(e,t,n,r)=>{const s=ne(n),a=re(t);return s?`<${e} ${C}="true" ${s}>${F(a,r)}</${e}>`:`<${e} ${C}="true">${F(a,r)}</${e}>`},Ne=(e,t,n=!0)=>t.reduce((r,s)=>{const a=s,c=Object.keys(a).filter(i=>!(i==="innerHTML"||i==="cssText")).reduce((i,d)=>{const m=typeof a[d]>"u"?d:`${d}="${F(a[d],n)}"`;return i?`${i} ${m}`:m},""),u=a.innerHTML||a.cssText||"",f=qe.indexOf(e)===-1;return`${r}<${e} ${C}="true" ${c}${f?"/>":`>${u}</${e}>`}`},""),se=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=B[r];return n[s||r]=e[r],n},t),Ge=(e,t,n)=>{const r={key:t,[C]:!0},s=se(n,r);return[l.createElement("title",s,t)]},I=(e,t)=>t.map((n,r)=>{const s={key:r,[C]:!0};return Object.keys(n).forEach(a=>{const u=B[a]||a;if(u==="innerHTML"||u==="cssText"){const f=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:f}}else s[u]=n[a]}),l.createElement(e,s)}),v=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Ge(e,t.title,t.titleAttributes),toString:()=>Fe(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>se(t),toString:()=>ne(t)};default:return{toComponent:()=>I(e,t),toString:()=>Ne(e,t,n)}}},ze=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=U(e,_.meta),a=U(t,_.link),c=U(n,_.script);return{priorityMethods:{toComponent:()=>[...I("meta",s.priority),...I("link",a.priority),...I("script",c.priority)],toString:()=>`${v("meta",s.priority,r)} ${v("link",a.priority,r)} ${v("script",c.priority,r)}`},metaTags:s.default,linkTags:a.default,scriptTags:c.default}},Ke=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:a,styleTags:c,title:u="",titleAttributes:f,prioritizeSeoTags:i}=e;let{linkTags:d,metaTags:m,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return i&&({priorityMethods:h,linkTags:d,metaTags:m,scriptTags:p}=ze(e)),{priority:h,base:v("base",t,r),bodyAttributes:v("bodyAttributes",n,r),htmlAttributes:v("htmlAttributes",s,r),link:v("link",d,r),meta:v("meta",m,r),noscript:v("noscript",a,r),script:v("script",p,r),style:v("style",c,r),title:v("title",{title:u,titleAttributes:f},r)}},N=Ke,M=[],oe=!!(typeof window<"u"&&window.document&&window.document.createElement),G=class{constructor(e,t){S(this,"instances",[]);S(this,"canUseDOM",oe);S(this,"context");S(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?M:this.instances,add:e=>{(this.canUseDOM?M:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?M:this.instances).indexOf(e);(this.canUseDOM?M:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=N({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Be={},ae=l.createContext(Be),j,ie=(j=class extends l.Component{constructor(n){super(n);S(this,"helmetData");this.helmetData=new G(this.props.context||{},j.canUseDOM)}render(){return l.createElement(ae.Provider,{value:this.helmetData.value},this.props.children)}},S(j,"canUseDOM",oe),j),O=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${C}]`),s=[].slice.call(r),a=[];let c;return t&&t.length&&t.forEach(u=>{const f=document.createElement(e);for(const i in u)if(Object.prototype.hasOwnProperty.call(u,i))if(i==="innerHTML")f.innerHTML=u.innerHTML;else if(i==="cssText")f.styleSheet?f.styleSheet.cssText=u.cssText:f.appendChild(document.createTextNode(u.cssText));else{const d=i,m=typeof u[d]>"u"?"":u[d];f.setAttribute(i,m)}f.setAttribute(C,"true"),s.some((i,d)=>(c=d,f.isEqualNode(i)))?s.splice(c,1):a.push(f)}),s.forEach(u=>{var f;return(f=u.parentNode)==null?void 0:f.removeChild(u)}),a.forEach(u=>n.appendChild(u)),{oldTags:s,newTags:a}},z=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(C),s=r?r.split(","):[],a=[...s],c=Object.keys(t);for(const u of c){const f=t[u]||"";n.getAttribute(u)!==f&&n.setAttribute(u,f),s.indexOf(u)===-1&&s.push(u);const i=a.indexOf(u);i!==-1&&a.splice(i,1)}for(let u=a.length-1;u>=0;u-=1)n.removeAttribute(a[u]);s.length===a.length?n.removeAttribute(C):n.getAttribute(C)!==c.join(",")&&n.setAttribute(C,c.join(","))},Ve=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=re(e)),z("title",t)},Z=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:a,metaTags:c,noscriptTags:u,onChangeClientState:f,scriptTags:i,styleTags:d,title:m,titleAttributes:p}=e;z("body",r),z("html",s),Ve(m,p);const h={baseTag:O("base",n),linkTags:O("link",a),metaTags:O("meta",c),noscriptTags:O("noscript",u),scriptTags:O("script",i),styleTags:O("style",d)},x={},y={};Object.keys(h).forEach(E=>{const{newTags:b,oldTags:A}=h[E];b.length&&(x[E]=b),A.length&&(y[E]=h[E].oldTags)}),t&&t(),f(e,x,y)},P=null,Ye=e=>{P&&cancelAnimationFrame(P),e.defer?P=requestAnimationFrame(()=>{Z(e,()=>{P=null})}):(Z(e),P=null)},We=Ye,Q=class extends l.Component{constructor(){super(...arguments);S(this,"rendered",!1)}shouldComponentUpdate(t){return!Pe(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=$e(t.get().map(a=>{const c={...a.props};return delete c.context,c}));ie.canUseDOM?We(s):N&&(r=N(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},q,Je=(q=class extends l.Component{shouldComponentUpdate(e){return!ke(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,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return o.invariant(W.some(n=>e.type===n),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 ${W.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(n=>typeof n!="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 n={};return l.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...a}=r.props,c=Object.keys(a).reduce((f,i)=>(f[Me[i]||i]=a[i],f),{});let{type:u}=r;switch(typeof u=="symbol"?u=u.toString():this.warnOnInvalidChildren(r,s),u){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,c,s);break;default:t=this.mapObjectTypeChildren(r,t,c,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof G)){const s=r;r=new G(s.context,!0),delete n.helmetData}return r?l.createElement(Q,{...n,context:r.value}):l.createElement(ae.Consumer,null,s=>l.createElement(Q,{...n,context:s}))}},S(q,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),q);const X=(e,t)=>e?`${e} | ${t}`:t,Ze=({defaultHelmet:e,children:t,helmetPrefix:n})=>{const[r,s]=l.useState([X(n??"",e)]),a=l.useCallback(i=>{s(d=>[...d,X(n??"",i)])},[n]),c=l.useCallback(()=>{s(i=>i.length>1?i.slice(0,-1):i)},[s]),u=l.useMemo(()=>r.at(-1)??"",[r]),f=l.useMemo(()=>({addHelmet:a,removeHelmet:c}),[a,c]);return o.jsxRuntimeExports.jsx(o.HelmetContext.Provider,{value:f,children:o.jsxRuntimeExports.jsxs(ie,{children:[o.jsxRuntimeExports.jsx(Je,{defer:!1,children:o.jsxRuntimeExports.jsx("title",{children:u})}),t]})})},ee=50,Qe=()=>{const{texts:{confirm:e}}=l.useContext(o.LuminusComponentsContext),{onConfirm:t,onCancel:n,text:r,show:s,textSm:a}=o.useConfirm(),c=l.useMemo(()=>a===void 0?r.length>ee:a,[r,a]),u=l.useMemo(()=>r.length>ee,[r]),f=l.useCallback(i=>{if(s)switch(i.key){case"Enter":i.preventDefault(),i.stopPropagation(),t();break;case"Escape":i.preventDefault(),i.stopPropagation(),n();break}},[t,n,s]);return o.useKeyPress(f),o.jsxRuntimeExports.jsxs(o.Modal,{show:s,size:u?void 0:"sm",centered:!0,onHide:n,children:[o.jsxRuntimeExports.jsx(o.Modal.Header,{className:"justify-content-center",children:c?o.jsxRuntimeExports.jsx(o.Typography,{variant:"body",children:r}):o.jsxRuntimeExports.jsx(o.Modal.Title,{children:r})}),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:n,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.FormDisabledContext=o.FormDisabledContext;exports.HelmetContext=o.HelmetContext;exports.LoadingContext=o.LoadingContext;exports.LuminusComponentsContext=o.LuminusComponentsContext;exports.UserContext=o.UserContext;exports.useFormDisabledContext=o.useFormDisabledContext;exports.FormDisabledProvider=K.FormDisabledProvider;exports.AuthProvider=Ee;exports.DelegationProvider=Se;exports.HelmetProvider=Ze;exports.LoadingProvider=Te;exports.LuminusComponentsProvider=ve;exports.UserProvider=Ce;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
2
|
var Oe = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var E = (e, t, n) => Oe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
4
|
+
import { t as N, bF as we, j as d, bG as De, P as z, bo as Pe, bH as me, $ as O, bg as ke, Q as G, bI as je, aX as Ie, aw as Me, aq as pe, bi as he, at as I, as as Le, bJ as He, aP as oe, bK as _e, ab as ye, bL as ae, bM as $e, aR as Re, af as Ue, a1 as Ne } from "./ShortcutLinksContext-CNZMOV_j.js";
|
|
5
|
+
import { bN as Bt, bd as Yt } from "./ShortcutLinksContext-CNZMOV_j.js";
|
|
6
6
|
import D, { useState as S, useCallback as h, useMemo as T, useContext as _, useEffect as j, useRef as te, Component as re } from "react";
|
|
7
|
-
import { EventType as W, InteractionRequiredAuthError as
|
|
7
|
+
import { EventType as W, InteractionRequiredAuthError as Fe } from "@azure/msal-browser";
|
|
8
8
|
import { MsalProvider as qe } from "@azure/msal-react";
|
|
9
9
|
import "react-router-dom";
|
|
10
10
|
import "react-dom";
|
|
11
11
|
import "react-hook-form";
|
|
12
12
|
import "react-flexmonster";
|
|
13
|
-
import { L as Ge, b as ze } from "./FormDisabledProvider-
|
|
14
|
-
import { F as Wt } from "./FormDisabledProvider-
|
|
15
|
-
import { a as Ke, u as Ve } from "./useLocalStorageState-
|
|
13
|
+
import { L as Ge, b as ze } from "./FormDisabledProvider-CB-JXGnI.js";
|
|
14
|
+
import { F as Wt } from "./FormDisabledProvider-CB-JXGnI.js";
|
|
15
|
+
import { a as Ke, u as Ve } from "./useLocalStorageState-Uqlj_lt1.js";
|
|
16
16
|
function Be(e) {
|
|
17
|
-
const t =
|
|
17
|
+
const t = N(e);
|
|
18
18
|
return t.setHours(23, 59, 59, 999), t;
|
|
19
19
|
}
|
|
20
20
|
function Ye() {
|
|
21
21
|
return Be(Date.now());
|
|
22
22
|
}
|
|
23
23
|
function Je(e, t) {
|
|
24
|
-
const n = +
|
|
25
|
-
+
|
|
26
|
-
+
|
|
24
|
+
const n = +N(e), [r, s] = [
|
|
25
|
+
+N(t.start),
|
|
26
|
+
+N(t.end)
|
|
27
27
|
].sort((o, l) => o - l);
|
|
28
28
|
return n >= r && n <= s;
|
|
29
29
|
}
|
|
@@ -108,7 +108,7 @@ const Qe = ({ children: e }) => {
|
|
|
108
108
|
/* @__PURE__ */ d.jsx(je, {}),
|
|
109
109
|
i
|
|
110
110
|
] }) }) });
|
|
111
|
-
},
|
|
111
|
+
}, Nt = ({ children: e }) => {
|
|
112
112
|
const [t, n] = S(!1), [r] = S(/* @__PURE__ */ new Set()), s = h((i) => {
|
|
113
113
|
r.add(i), n(!0);
|
|
114
114
|
}, [r]), o = h((i) => {
|
|
@@ -118,8 +118,8 @@ const Qe = ({ children: e }) => {
|
|
|
118
118
|
t && /* @__PURE__ */ d.jsx(Ge, {}),
|
|
119
119
|
e
|
|
120
120
|
] });
|
|
121
|
-
},
|
|
122
|
-
const t =
|
|
121
|
+
}, Ft = ({ children: e }) => {
|
|
122
|
+
const t = Me(), { msalInstance: n, getToken: r } = _(pe), { delegation: s, setDelegation: o, setAvailableDelegations: l, refreshAvailableDelegations: i } = _(he), [c, a] = S(null), u = h(async () => {
|
|
123
123
|
const g = await r();
|
|
124
124
|
g && a(g.token);
|
|
125
125
|
}, [r]);
|
|
@@ -189,7 +189,7 @@ const Qe = ({ children: e }) => {
|
|
|
189
189
|
loginUser: w,
|
|
190
190
|
logoutUser: P
|
|
191
191
|
}), [p, w, P]);
|
|
192
|
-
return /* @__PURE__ */ d.jsx(
|
|
192
|
+
return /* @__PURE__ */ d.jsx(Le.Provider, { value: Ce, children: e });
|
|
193
193
|
}, qt = ({ ...e }) => {
|
|
194
194
|
const { cookieDomain: t } = _(z), [, n] = He(["Authorization"]), r = T(
|
|
195
195
|
() => e.useMsal ? e.msalInstance : null,
|
|
@@ -224,7 +224,7 @@ const Qe = ({ children: e }) => {
|
|
|
224
224
|
token: v.accessToken,
|
|
225
225
|
expiresOn: v.expiresOn ?? new Date(Date.now())
|
|
226
226
|
})).catch((v) => {
|
|
227
|
-
if (console.error("Error acquiring token", v), v instanceof
|
|
227
|
+
if (console.error("Error acquiring token", v), v instanceof Fe)
|
|
228
228
|
return console.log("Silent token acquisition failed. Acquiring token using redirect"), r == null || r.acquireTokenRedirect({
|
|
229
229
|
scopes: s,
|
|
230
230
|
extraScopesToConsent: o
|
|
@@ -306,7 +306,7 @@ const Qe = ({ children: e }) => {
|
|
|
306
306
|
return /* @__PURE__ */ d.jsx(he.Provider, { value: u, children: e });
|
|
307
307
|
};
|
|
308
308
|
var et = typeof Element < "u", tt = typeof Map == "function", rt = typeof Set == "function", nt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
309
|
-
function
|
|
309
|
+
function F(e, t) {
|
|
310
310
|
if (e === t) return !0;
|
|
311
311
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
312
312
|
if (e.constructor !== t.constructor) return !1;
|
|
@@ -314,7 +314,7 @@ function N(e, t) {
|
|
|
314
314
|
if (Array.isArray(e)) {
|
|
315
315
|
if (n = e.length, n != t.length) return !1;
|
|
316
316
|
for (r = n; r-- !== 0; )
|
|
317
|
-
if (!
|
|
317
|
+
if (!F(e[r], t[r])) return !1;
|
|
318
318
|
return !0;
|
|
319
319
|
}
|
|
320
320
|
var o;
|
|
@@ -323,7 +323,7 @@ function N(e, t) {
|
|
|
323
323
|
for (o = e.entries(); !(r = o.next()).done; )
|
|
324
324
|
if (!t.has(r.value[0])) return !1;
|
|
325
325
|
for (o = e.entries(); !(r = o.next()).done; )
|
|
326
|
-
if (!
|
|
326
|
+
if (!F(r.value[1], t.get(r.value[0]))) return !1;
|
|
327
327
|
return !0;
|
|
328
328
|
}
|
|
329
329
|
if (rt && e instanceof Set && t instanceof Set) {
|
|
@@ -346,7 +346,7 @@ function N(e, t) {
|
|
|
346
346
|
if (!Object.prototype.hasOwnProperty.call(t, s[r])) return !1;
|
|
347
347
|
if (et && e instanceof Element) return !1;
|
|
348
348
|
for (r = n; r-- !== 0; )
|
|
349
|
-
if (!((s[r] === "_owner" || s[r] === "__v" || s[r] === "__o") && e.$$typeof) && !
|
|
349
|
+
if (!((s[r] === "_owner" || s[r] === "__v" || s[r] === "__o") && e.$$typeof) && !F(e[s[r]], t[s[r]]))
|
|
350
350
|
return !1;
|
|
351
351
|
return !0;
|
|
352
352
|
}
|
|
@@ -354,7 +354,7 @@ function N(e, t) {
|
|
|
354
354
|
}
|
|
355
355
|
var st = function(t, n) {
|
|
356
356
|
try {
|
|
357
|
-
return
|
|
357
|
+
return F(t, n);
|
|
358
358
|
} catch (r) {
|
|
359
359
|
if ((r.message || "").match(/stack|recursion/i))
|
|
360
360
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
@@ -418,7 +418,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
418
418
|
}, lt = Object.entries(ne).reduce(
|
|
419
419
|
(e, [t, n]) => (e[n] = t, e),
|
|
420
420
|
{}
|
|
421
|
-
), A = "data-rh",
|
|
421
|
+
), A = "data-rh", L = {
|
|
422
422
|
DEFAULT_TITLE: "defaultTitle",
|
|
423
423
|
DEFER: "defer",
|
|
424
424
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
@@ -438,12 +438,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
438
438
|
"title"
|
|
439
439
|
/* TITLE */
|
|
440
440
|
);
|
|
441
|
-
const n = H(e,
|
|
441
|
+
const n = H(e, L.TITLE_TEMPLATE);
|
|
442
442
|
if (Array.isArray(t) && (t = t.join("")), n && t)
|
|
443
443
|
return n.replace(/%s/g, () => t);
|
|
444
|
-
const r = H(e,
|
|
444
|
+
const r = H(e, L.DEFAULT_TITLE);
|
|
445
445
|
return t || r || void 0;
|
|
446
|
-
}, ut = (e) => H(e,
|
|
446
|
+
}, ut = (e) => H(e, L.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
447
447
|
}), B = (e, t) => t.filter((n) => typeof n[e] < "u").map((n) => n[e]).reduce((n, r) => ({ ...n, ...r }), {}), ft = (e, t) => t.filter((n) => typeof n.base < "u").map((n) => n.base).reverse().reduce((n, r) => {
|
|
448
448
|
if (!n.length) {
|
|
449
449
|
const s = Object.keys(r);
|
|
@@ -495,8 +495,8 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
495
495
|
/* HREF */
|
|
496
496
|
], e),
|
|
497
497
|
bodyAttributes: B("bodyAttributes", e),
|
|
498
|
-
defer: H(e,
|
|
499
|
-
encode: H(e,
|
|
498
|
+
defer: H(e, L.DEFER),
|
|
499
|
+
encode: H(e, L.ENCODE_SPECIAL_CHARACTERS),
|
|
500
500
|
htmlAttributes: B("htmlAttributes", e),
|
|
501
501
|
linkTags: $(
|
|
502
502
|
"link",
|
|
@@ -539,7 +539,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
539
539
|
], e),
|
|
540
540
|
title: ct(e),
|
|
541
541
|
titleAttributes: B("titleAttributes", e),
|
|
542
|
-
prioritizeSeoTags: mt(e,
|
|
542
|
+
prioritizeSeoTags: mt(e, L.PRIORITIZE_SEO_TAGS)
|
|
543
543
|
}), Te = (e) => Array.isArray(e) ? e.join("") : e, ht = (e, t) => {
|
|
544
544
|
const n = Object.keys(e);
|
|
545
545
|
for (let r = 0; r < n.length; r += 1)
|
|
@@ -712,7 +712,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
712
712
|
render() {
|
|
713
713
|
return /* @__PURE__ */ D.createElement(be.Provider, { value: this.helmetData.value }, this.props.children);
|
|
714
714
|
}
|
|
715
|
-
}, E(k, "canUseDOM", Se), k),
|
|
715
|
+
}, E(k, "canUseDOM", Se), k), M = (e, t) => {
|
|
716
716
|
const n = document.head || document.querySelector(
|
|
717
717
|
"head"
|
|
718
718
|
/* HEAD */
|
|
@@ -770,12 +770,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
770
770
|
} = e;
|
|
771
771
|
ee("body", r), ee("html", s), At(f, m);
|
|
772
772
|
const p = {
|
|
773
|
-
baseTag:
|
|
774
|
-
linkTags:
|
|
775
|
-
metaTags:
|
|
776
|
-
noscriptTags:
|
|
777
|
-
scriptTags:
|
|
778
|
-
styleTags:
|
|
773
|
+
baseTag: M("base", n),
|
|
774
|
+
linkTags: M("link", o),
|
|
775
|
+
metaTags: M("meta", l),
|
|
776
|
+
noscriptTags: M("noscript", i),
|
|
777
|
+
scriptTags: M("script", a),
|
|
778
|
+
styleTags: M("style", u)
|
|
779
779
|
}, y = {}, v = {};
|
|
780
780
|
Object.keys(p).forEach((C) => {
|
|
781
781
|
const { newTags: w, oldTags: P } = p[C];
|
|
@@ -974,7 +974,7 @@ const fe = (e, t) => e ? `${e} | ${t}` : t, zt = ({ defaultHelmet: e, children:
|
|
|
974
974
|
}
|
|
975
975
|
}, [t, n, s]);
|
|
976
976
|
return Ue(c), /* @__PURE__ */ d.jsxs(O, { show: s, size: i ? void 0 : "sm", centered: !0, onHide: n, children: [
|
|
977
|
-
/* @__PURE__ */ d.jsx(O.Header, { className: "justify-content-center", children: l ? /* @__PURE__ */ d.jsx(
|
|
977
|
+
/* @__PURE__ */ d.jsx(O.Header, { className: "justify-content-center", children: l ? /* @__PURE__ */ d.jsx(Ne, { variant: "body", children: r }) : /* @__PURE__ */ d.jsx(O.Title, { children: r }) }),
|
|
978
978
|
/* @__PURE__ */ d.jsx(O.Body, { children: /* @__PURE__ */ d.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
979
979
|
/* @__PURE__ */ d.jsx(G, { type: "button", variant: "outlined", color: "secondary", className: "w-100", onClick: n, children: e.no }),
|
|
980
980
|
/* @__PURE__ */ d.jsx(G, { type: "button", color: "primary", onClick: t, className: "w-100 ml", children: e.yes })
|
|
@@ -991,10 +991,10 @@ export {
|
|
|
991
991
|
$e as HelmetContext,
|
|
992
992
|
zt as HelmetProvider,
|
|
993
993
|
Ie as LoadingContext,
|
|
994
|
-
|
|
994
|
+
Nt as LoadingProvider,
|
|
995
995
|
z as LuminusComponentsContext,
|
|
996
996
|
Ut as LuminusComponentsProvider,
|
|
997
|
-
|
|
998
|
-
|
|
997
|
+
Le as UserContext,
|
|
998
|
+
Ft as UserProvider,
|
|
999
999
|
Yt as useFormDisabledContext
|
|
1000
1000
|
};
|