react-luminus-components 1.2.114 → 1.2.115
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 +42 -42
- package/dist/{NoInputContainer-BK9oG3tT.cjs → NoInputContainer-BTMhF5K2.cjs} +1 -1
- package/dist/{NoInputContainer-BAgsWdLH.js → NoInputContainer-Bgh3cEfG.js} +62 -62
- package/dist/{PrimaryButton-7SShR5CP.cjs → PrimaryButton-B7gtCSk7.cjs} +1 -1
- package/dist/{PrimaryButton-DEmq1lC9.js → PrimaryButton-DDQG35ET.js} +1 -1
- package/dist/{SimpleTooltip-4RS28Xw5.cjs → SimpleTooltip-CDomgLDx.cjs} +1 -1
- package/dist/{SimpleTooltip-DcjdypSH.js → SimpleTooltip-YiM19KZ0.js} +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- 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 +4 -4
- package/dist/{useConfirm-D0XQit1K.js → useConfirm-7xib-j-y.js} +1 -1
- package/dist/{useConfirm-DnHLBOB6.cjs → useConfirm-B4xXl3s9.cjs} +1 -1
- package/dist/{usePermissions-CZ9GOCPf.cjs → usePermissions-CZMCXjYH.cjs} +1 -1
- package/dist/{usePermissions-giXiX-A0.js → usePermissions-D1HAjQat.js} +1 -1
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_NoInputContainer-
|
|
3
|
-
"file": "NoInputContainer-
|
|
2
|
+
"_NoInputContainer-BTMhF5K2.cjs": {
|
|
3
|
+
"file": "NoInputContainer-BTMhF5K2.cjs",
|
|
4
4
|
"name": "NoInputContainer",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_latinize-
|
|
6
|
+
"_latinize-DaqzUOla.cjs"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_NoInputContainer-
|
|
10
|
-
"file": "NoInputContainer-
|
|
9
|
+
"_NoInputContainer-Bgh3cEfG.js": {
|
|
10
|
+
"file": "NoInputContainer-Bgh3cEfG.js",
|
|
11
11
|
"name": "NoInputContainer",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_latinize-
|
|
13
|
+
"_latinize-BQrinury.js"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_PrimaryButton-
|
|
17
|
-
"file": "PrimaryButton-
|
|
16
|
+
"_PrimaryButton-B7gtCSk7.cjs": {
|
|
17
|
+
"file": "PrimaryButton-B7gtCSk7.cjs",
|
|
18
18
|
"name": "PrimaryButton",
|
|
19
19
|
"imports": [
|
|
20
|
-
"_NoInputContainer-
|
|
20
|
+
"_NoInputContainer-BTMhF5K2.cjs",
|
|
21
21
|
"_latinize-DaqzUOla.cjs"
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
|
-
"_PrimaryButton-
|
|
25
|
-
"file": "PrimaryButton-
|
|
24
|
+
"_PrimaryButton-DDQG35ET.js": {
|
|
25
|
+
"file": "PrimaryButton-DDQG35ET.js",
|
|
26
26
|
"name": "PrimaryButton",
|
|
27
27
|
"imports": [
|
|
28
|
-
"_NoInputContainer-
|
|
28
|
+
"_NoInputContainer-Bgh3cEfG.js",
|
|
29
29
|
"_latinize-BQrinury.js"
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
|
-
"_SimpleTooltip-
|
|
33
|
-
"file": "SimpleTooltip-
|
|
32
|
+
"_SimpleTooltip-CDomgLDx.cjs": {
|
|
33
|
+
"file": "SimpleTooltip-CDomgLDx.cjs",
|
|
34
34
|
"name": "SimpleTooltip",
|
|
35
35
|
"imports": [
|
|
36
|
-
"_NoInputContainer-
|
|
36
|
+
"_NoInputContainer-BTMhF5K2.cjs"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
-
"_SimpleTooltip-
|
|
40
|
-
"file": "SimpleTooltip-
|
|
39
|
+
"_SimpleTooltip-YiM19KZ0.js": {
|
|
40
|
+
"file": "SimpleTooltip-YiM19KZ0.js",
|
|
41
41
|
"name": "SimpleTooltip",
|
|
42
42
|
"imports": [
|
|
43
|
-
"_NoInputContainer-
|
|
43
|
+
"_NoInputContainer-Bgh3cEfG.js"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"_dateUtils-7nL2BXlo.js": {
|
|
@@ -79,18 +79,18 @@
|
|
|
79
79
|
"_latinize-BQrinury.js"
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
"_useConfirm-
|
|
83
|
-
"file": "useConfirm-
|
|
82
|
+
"_useConfirm-7xib-j-y.js": {
|
|
83
|
+
"file": "useConfirm-7xib-j-y.js",
|
|
84
84
|
"name": "useConfirm",
|
|
85
85
|
"imports": [
|
|
86
|
-
"_NoInputContainer-
|
|
86
|
+
"_NoInputContainer-Bgh3cEfG.js"
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
-
"_useConfirm-
|
|
90
|
-
"file": "useConfirm-
|
|
89
|
+
"_useConfirm-B4xXl3s9.cjs": {
|
|
90
|
+
"file": "useConfirm-B4xXl3s9.cjs",
|
|
91
91
|
"name": "useConfirm",
|
|
92
92
|
"imports": [
|
|
93
|
-
"_NoInputContainer-
|
|
93
|
+
"_NoInputContainer-BTMhF5K2.cjs"
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
96
|
"_useFormControlType-BAFqxupC.js": {
|
|
@@ -101,19 +101,19 @@
|
|
|
101
101
|
"file": "useFormControlType-Dqz8sV4J.cjs",
|
|
102
102
|
"name": "useFormControlType"
|
|
103
103
|
},
|
|
104
|
-
"_usePermissions-
|
|
105
|
-
"file": "usePermissions-
|
|
104
|
+
"_usePermissions-CZMCXjYH.cjs": {
|
|
105
|
+
"file": "usePermissions-CZMCXjYH.cjs",
|
|
106
106
|
"name": "usePermissions",
|
|
107
107
|
"imports": [
|
|
108
|
-
"_NoInputContainer-
|
|
108
|
+
"_NoInputContainer-BTMhF5K2.cjs",
|
|
109
109
|
"_latinize-DaqzUOla.cjs"
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
|
-
"_usePermissions-
|
|
113
|
-
"file": "usePermissions-
|
|
112
|
+
"_usePermissions-D1HAjQat.js": {
|
|
113
|
+
"file": "usePermissions-D1HAjQat.js",
|
|
114
114
|
"name": "usePermissions",
|
|
115
115
|
"imports": [
|
|
116
|
-
"_NoInputContainer-
|
|
116
|
+
"_NoInputContainer-Bgh3cEfG.js",
|
|
117
117
|
"_latinize-BQrinury.js"
|
|
118
118
|
]
|
|
119
119
|
},
|
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
"src": "src/contexts/index.ts",
|
|
124
124
|
"isEntry": true,
|
|
125
125
|
"imports": [
|
|
126
|
-
"_NoInputContainer-
|
|
126
|
+
"_NoInputContainer-BTMhF5K2.cjs",
|
|
127
127
|
"_latinize-DaqzUOla.cjs",
|
|
128
|
-
"_useConfirm-
|
|
129
|
-
"_PrimaryButton-
|
|
128
|
+
"_useConfirm-B4xXl3s9.cjs",
|
|
129
|
+
"_PrimaryButton-B7gtCSk7.cjs"
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
132
|
"src/hooks/index.ts": {
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
"src": "src/hooks/index.ts",
|
|
136
136
|
"isEntry": true,
|
|
137
137
|
"imports": [
|
|
138
|
-
"_NoInputContainer-
|
|
139
|
-
"_useConfirm-
|
|
138
|
+
"_NoInputContainer-BTMhF5K2.cjs",
|
|
139
|
+
"_useConfirm-B4xXl3s9.cjs",
|
|
140
140
|
"_latinize-DaqzUOla.cjs",
|
|
141
141
|
"_dateUtils-DUA3CKds.cjs",
|
|
142
142
|
"_useFormControlType-Dqz8sV4J.cjs",
|
|
143
|
-
"_usePermissions-
|
|
143
|
+
"_usePermissions-CZMCXjYH.cjs"
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
146
|
"src/layout/index.ts": {
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
"src": "src/layout/index.ts",
|
|
150
150
|
"isEntry": true,
|
|
151
151
|
"imports": [
|
|
152
|
-
"_NoInputContainer-
|
|
152
|
+
"_NoInputContainer-BTMhF5K2.cjs",
|
|
153
153
|
"_latinize-DaqzUOla.cjs",
|
|
154
|
-
"_usePermissions-
|
|
155
|
-
"_SimpleTooltip-
|
|
154
|
+
"_usePermissions-CZMCXjYH.cjs",
|
|
155
|
+
"_SimpleTooltip-CDomgLDx.cjs"
|
|
156
156
|
]
|
|
157
157
|
},
|
|
158
158
|
"src/main.ts": {
|
|
@@ -161,11 +161,11 @@
|
|
|
161
161
|
"src": "src/main.ts",
|
|
162
162
|
"isEntry": true,
|
|
163
163
|
"imports": [
|
|
164
|
-
"_NoInputContainer-
|
|
165
|
-
"_PrimaryButton-
|
|
164
|
+
"_NoInputContainer-BTMhF5K2.cjs",
|
|
165
|
+
"_PrimaryButton-B7gtCSk7.cjs",
|
|
166
166
|
"_latinize-DaqzUOla.cjs",
|
|
167
167
|
"_useFormControlType-Dqz8sV4J.cjs",
|
|
168
|
-
"_SimpleTooltip-
|
|
168
|
+
"_SimpleTooltip-CDomgLDx.cjs",
|
|
169
169
|
"_searchUtils-Do20vjZW.cjs"
|
|
170
170
|
]
|
|
171
171
|
},
|
|
@@ -250,4 +250,4 @@ to {
|
|
|
250
250
|
*
|
|
251
251
|
* This source code is licensed under the MIT license found in the
|
|
252
252
|
* LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/var Yo;function ad(){return Yo||(Yo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function R(b){return typeof b=="string"||typeof b=="function"||b===n||b===l||b===i||b===o||b===f||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===m||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===E||b.$$typeof===T||b.$$typeof===S||b.$$typeof===g)}function C(b){if(typeof b=="object"&&b!==null){var ge=b.$$typeof;switch(ge){case t:var Re=b.type;switch(Re){case c:case l:case n:case i:case o:case f:return Re;default:var Ae=Re&&Re.$$typeof;switch(Ae){case s:case u:case h:case m:case a:return Ae;default:return ge}}case r:return ge}}}var p=c,A=l,k=s,J=a,Z=t,K=u,ie=n,fe=h,V=m,X=r,Q=i,ae=o,ue=f,Oe=!1;function Ee(b){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(b)||C(b)===c}function O(b){return C(b)===l}function _(b){return C(b)===s}function D(b){return C(b)===a}function $(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function j(b){return C(b)===u}function U(b){return C(b)===n}function N(b){return C(b)===h}function I(b){return C(b)===m}function L(b){return C(b)===r}function H(b){return C(b)===i}function B(b){return C(b)===o}function de(b){return C(b)===f}oe.AsyncMode=p,oe.ConcurrentMode=A,oe.ContextConsumer=k,oe.ContextProvider=J,oe.Element=Z,oe.ForwardRef=K,oe.Fragment=ie,oe.Lazy=fe,oe.Memo=V,oe.Portal=X,oe.Profiler=Q,oe.StrictMode=ae,oe.Suspense=ue,oe.isAsyncMode=Ee,oe.isConcurrentMode=O,oe.isContextConsumer=_,oe.isContextProvider=D,oe.isElement=$,oe.isForwardRef=j,oe.isFragment=U,oe.isLazy=N,oe.isMemo=I,oe.isPortal=L,oe.isProfiler=H,oe.isStrictMode=B,oe.isSuspense=de,oe.isValidElementType=R,oe.typeOf=C}()),oe}process.env.NODE_ENV==="production"?gn.exports=id():gn.exports=ad();var sd=gn.exports,fa=sd,cd={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ud={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},da={};da[fa.ForwardRef]=cd;da[fa.Memo]=ud;function ld(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Un(e){const t=v.useContext(od);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=v.useState(()=>t.getAll({doNotUpdate:!0}));ld()&&v.useLayoutEffect(()=>{function s(){const c=t.getAll({doNotUpdate:!0});fd(e||null,c,r)&&n(c)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const o=v.useMemo(()=>t.set.bind(t),[t]),i=v.useMemo(()=>t.remove.bind(t),[t]),a=v.useMemo(()=>t.update.bind(t),[t]);return[r,o,i,a]}function fd(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}const dd=()=>{const{axiosOptions:e,cookieDomain:t}=v.useContext(Nn),[,r,n]=Un(["Authorization"]),o=le.create(e),i=v.useCallback(()=>localStorage.getItem("token")??null,[]),a=v.useCallback(()=>{const l=i();return l!==null&&l.length>0},[i]),s=v.useCallback(async(l,u)=>o.post("/user/login",{kid:l,password:u}).then(f=>(localStorage.setItem("token",f.data),r("Authorization",f.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Va(new Date(Date.now()),24)}),f.data)).catch(f=>(console.log(f),null)),[o,r,t]),c=v.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),n("Authorization")},[n]);return{isAuthenticated:a,login:s,logout:c,getToken:i}};/*! @azure/msal-react v2.0.16 2024-05-07 */const pd={instance:Ml,inProgress:Rr.None,accounts:[],logger:new Er({})},Bn=Y.createContext(pd);Bn.Consumer;/*! @azure/msal-react v2.0.16 2024-05-07 */function hd(e,t){return typeof e=="function"?e(t):e}function md(e,t){if(e.length!==t.length)return!1;const r=[...t];return e.every(n=>{const o=r.shift();return!n||!o?!1:n.homeAccountId===o.homeAccountId&&n.localAccountId===o.localAccountId&&n.username===o.username})}function pa(e,t){return e.length>0&&(t.homeAccountId||t.localAccountId||t.username)&&e.filter(n=>!(t.username&&t.username.toLowerCase()!==n.username.toLowerCase()||t.homeAccountId&&t.homeAccountId.toLowerCase()!==n.homeAccountId.toLowerCase()||t.localAccountId&&t.localAccountId.toLowerCase()!==n.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.16 2024-05-07 */const zn=()=>v.useContext(Bn);/*! @azure/msal-react v2.0.16 2024-05-07 */function vd(e,t){return t&&(t.username||t.homeAccountId||t.localAccountId)?!!pa(e,t):e.length>0}function ha(e){const{accounts:t,inProgress:r}=zn();return v.useMemo(()=>r===Rr.Startup?!1:vd(t,e),[t,r,e])}const gd=()=>{const[,,e]=Un(["Authorization"]),{msalScopes:t}=v.useContext(Hn),{instance:r,inProgress:n}=zn(),o=ha(),i=v.useCallback(async()=>r.acquireTokenSilent({scopes:t}).then(u=>u.accessToken).catch(()=>null),[r,t]),a=v.useCallback(()=>o,[o]),s=v.useCallback(()=>!a()&&n!==Rr.None,[a,n]),c=v.useCallback(async()=>r.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[r,t]),l=v.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:a,isAuthenticating:s,login:c,logout:l,getToken:i}},ma=()=>{const{useMsal:e}=v.useContext(Hn),t=dd(),r=gd();return{isAuthenticated:e?r.isAuthenticated:t.isAuthenticated,isAuthenticating:e?r.isAuthenticating:()=>!1,getToken:e?r.getToken:t.getToken,login:e?r.login:t.login,logout:e?r.logout:t.logout}},yd="_toast_1s57i_1",kt={toast:yd},bd=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},va=()=>({addNotification:(t,r)=>{const n=Lt.truncateText(t),o=bd(r),i=M.jsxs(M.Fragment,{children:[n,M.jsx($i,{onClick:()=>gt.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(r){case"success":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(Ru,{size:12}),className:ce("luminus-toast-success rounded shadow bg-success",kt.toast)});break}case"danger":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(Eu,{size:12}),className:ce("luminus-toast-danger rounded shadow bg-danger",kt.toast)});break}case"warning":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(mu,{size:12}),className:ce("luminus-toast-warning rounded shadow bg-warning",kt.toast)});break}case"info":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(yu,{size:12}),className:ce("luminus-toast-info rounded shadow bg-info",kt.toast)});break}case"prompt":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(bu,{size:12}),className:ce("luminus-toast-prompt rounded shadow bg-light",kt.toast)});break}}}}),Ed=le.CancelToken,wd=e=>{const{authenticated:t=!0,differentBaseUrl:r,silent:n=!1,customToken:o}={...e},{language:i,axiosTexts:a,axiosOptions:s}=v.useContext(Nn),{addNotification:c}=va(),{getToken:l}=ma(),u=v.useMemo(()=>le.create(s),[s]),f=v.useCallback(async m=>{var h,g,E;if(t&&!m.headers.Authorization){const T=o??await l();if(!T)return Promise.reject(new Error("No bearer token"));m.headers.Authorization=`Bearer ${T}`}return(h=m.url)!=null&&h.includes("culture=")?m.url=(g=m.url)==null?void 0:g.replace(/culture=[a-z]{2}/,`culture=${i}`):m.url=`${m.url}${(E=m.url)!=null&&E.includes("?")?"&":"?"}culture=${i}`,m},[t,l,i,o]),y=v.useCallback(m=>{var E;if(console.log(m),le.isCancel(m))return Promise.reject(m);const h=Lt.extractErrorsFromResponse(m);if(h.length>0){const T=h.find(S=>S.name.toLowerCase()==="others");return T?(!n&&c(T.errors,"danger"),Promise.reject(m)):(!n&&c(a.validationError,"warning"),Promise.reject(m))}const g=Lt.extractPermissionsFromResponse(m);return g!==null?(c(`${a.permissionError}: ${Lt.joinStrings(", ",...g)}`,"danger"),Promise.reject(m)):((E=m.response)==null?void 0:E.status)===403?(!n&&c(a.forbiddenError,"danger"),Promise.reject(m)):m.message&&m.message==="Network Error"?(!n&&c(a.networkError,"danger"),Promise.reject(m)):(le.isCancel(m)||!n&&c(a.unexpectedError,"danger"),Promise.reject(m))},[c,a.forbiddenError,a.networkError,a.permissionError,a.unexpectedError,a.validationError,n]);return v.useEffect(()=>{r&&(u.defaults.baseURL=r),u.interceptors.request.clear(),u.interceptors.response.clear();const m=u.interceptors.request.use(f,g=>Promise.reject(g)),h=u.interceptors.response.use(g=>g,y);return()=>{u.interceptors.request.eject(m),u.interceptors.response.eject(h)}},[u.defaults,u.interceptors.request,u.interceptors.response,r,f,y]),u},Hn=v.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),Od="_h1_14r4v_1",xd="_h3_14r4v_8",Td="_h6_14r4v_15",Sd="_subtitle_14r4v_22",Cd="_body_14r4v_29",Rd="_body2_14r4v_36",_d="_caption_14r4v_43",Pd="_form-label_14r4v_50",Ke={h1:Od,h3:xd,h6:Td,subtitle:Sd,body:Cd,body2:Rd,caption:_d,"form-label":"_form-label_14r4v_50",formLabel:Pd},Ad=({variant:e,className:t,children:r})=>{switch(e){case"h1":return M.jsx("h1",{className:ce("luminus-text-primary luminus-h1",Ke.h1,t),children:r});case"h3":return M.jsx("h3",{className:ce("luminus-text luminus-h3",Ke.h3,t),children:r});case"h6":return M.jsx("h6",{className:ce("luminus-text luminus-h6",Ke.h6,t),children:r});case"subtitle":return M.jsx("div",{className:ce("luminus-text luminus-subtitle",Ke.subtitle,t),children:r});case"body":return M.jsx("div",{className:ce("luminus-text luminus-body",Ke.body,t),children:r});case"body2":return M.jsx("div",{className:ce("luminus-text luminus-body2",Ke.body2,t),children:r});case"caption":return M.jsx("div",{className:ce("luminus-text-muted luminus-caption",Ke.caption,t),children:r});case"form-label":return M.jsx("div",{className:ce("luminus-text luminus-form-label",Ke.formLabel,t),children:r});default:return M.jsx(M.Fragment,{children:r})}},ga=({variant:e,className:t,children:r})=>M.jsx(Ad,{variant:e,className:t,children:r}),Md="_button_qhwih_1",jd={button:Md},kd=v.forwardRef(({color:e="primary",icon:t=M.jsx(Pu,{size:21}),text:r,onClick:n,className:o,children:i,...a},s)=>M.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),n(c)},"aria-label":"dropdown toggle",className:ce(`btn luminus-context-button text-${e} ${o??""}`,jd.button),...a,children:[t,r]})),Nd="_avatar-icon_1axl6_1",Id={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:Nd},ya=({name:e,fontSize:t,size:r})=>{const n=o=>{let i=0,a;for(a=0;a<o.length;a+=1)i=o.charCodeAt(a)+((i<<5)-i);let s="#";for(a=0;a<3;a+=1){const c=i>>a*8&255;s+=`00${c.toString(16)}`.slice(-2)}return s};return M.jsx(Ii,{placement:"bottom",overlay:M.jsx(kn,{children:e}),children:M.jsx("div",{className:ce("luminus-avatar-icon",Id.avatarIcon),style:{backgroundColor:n(e),fontSize:t??void 0,minHeight:r??void 0,height:r??void 0,maxHeight:r??void 0,minWidth:r??void 0,width:r??void 0,maxWidth:r??void 0},children:M.jsx("div",{children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`})})})},Ld=v.forwardRef(({userName:e,onClick:t,children:r},n)=>M.jsxs("button",{type:"button",ref:n,onClick:o=>{o.preventDefault(),t(o)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[M.jsx(ya,{name:e}),r]})),Dd="_floating-label_1gef3_1",$d="_without-label_1gef3_21",qo={"floating-label":"_floating-label_1gef3_1",floatingLabel:Dd,"without-label":"_without-label_1gef3_21",withoutLabel:$d},ba=v.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,inputContainerClassName:i,isForCheckInput:a,...s},c)=>a?M.jsx(M.Fragment,{children:t}):M.jsx(Mn,{ref:c,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ce(`luminus-floating-label ${r??""}`,qo.floatingLabel,{[i??""]:i},{[qo.withoutLabel]:s.withoutLabel}),children:t}));ba.displayName="FloatingLabelInput";const Fd="_row-label-input_rc09e_1",Ud="_label_rc09e_4",Bd="_input-container_rc09e_9",zd="_invalid-feedback_rc09e_100",Hd="_keep-check-label_rc09e_128",Vd="_is-invalid_rc09e_156",Nt={"row-label-input":"_row-label-input_rc09e_1",rowLabelInput:Fd,label:Ud,"input-container":"_input-container_rc09e_9",inputContainer:Bd,"invalid-feedback":"_invalid-feedback_rc09e_100",invalidFeedback:zd,"keep-check-label":"_keep-check-label_rc09e_128",keepCheckLabel:Hd,"is-invalid":"_is-invalid_rc09e_156",isInvalid:Vd},Ea=v.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,isForTextAreaInput:i,inputContainerClassName:a,...s},c)=>M.jsxs("div",{ref:c,className:ce("luminus-row-label row gx-0 gy-0",{"is-invalid":n},{[Nt.isInvalid]:n},{[r??""]:r},{"d-none":e},Nt.rowLabelInput),children:[!s.withoutLabel&&M.jsx("label",{className:ce("label col-6",{"col-12":i},Nt.label),children:M.jsx(ga,{variant:"form-label",className:n?"text-danger":"",children:s.label})}),M.jsx("div",{className:ce("input-container",Nt.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Nt.keepCheckLabel]:o},{[a??""]:a}),children:t})]}));Ea.displayName="RowLabelInput";const wa=v.forwardRef(({children:e,className:t,hidden:r},n)=>M.jsx("div",{ref:n,className:`${r?"d-none":""} ${t}`,children:e}));wa.displayName="NoInputContainer";exports.AuthContext=Hn;exports.AuthError=Cr;exports.AvatarIcon=ya;exports.CacheAccountType=Sl;exports.ConfirmContext=Mu;exports.Constants=me;exports.ENTERED=Xe;exports.ENTERING=ze;exports.EXITED=Je;exports.EXITING=fr;exports.Fade=hr;exports.FloatingLabel=Mn;exports.FloatingLabelInput=ba;exports.FormContext=Si;exports.FormGroup=An;exports.GenIcon=pe;exports.Ie=Ol;exports.InteractionStatus=Rr;exports.LoadingContext=xl;exports.LuminusComponentsContext=Nn;exports.MdCheck=pu;exports.MdCircle=du;exports.MdClear=fu;exports.MdOutlineAddCircleOutline=wu;exports.MdOutlineArrowOutward=hu;exports.MdOutlineCameraAlt=Su;exports.MdOutlineChevronRight=_u;exports.MdOutlineClose=$i;exports.MdOutlineDelete=vu;exports.MdOutlineEdit=Cu;exports.MdOutlineExpand=gu;exports.MdOutlineFileUpload=Ou;exports.MdOutlineKeyboardArrowLeft=xu;exports.MdOutlineKeyboardArrowRight=Tu;exports.MdOutlineStar=Au;exports.MsalContext=Bn;exports.NoInputContainer=wa;exports.OIDC_DEFAULT_SCOPES=zi;exports.OverlayTrigger=Ii;exports.Popover=ji;exports.PromptContext=ju;exports.PropTypes=z;exports.RowLabelInput=Ea;exports.Separators=Cl;exports.SimpleDropdownToggle=kd;exports.Tooltip=kn;exports.TransitionWrapper=si;exports.Typography=ga;exports.UserAvatarToggle=Ld;exports.UserContext=Tl;exports.WrapperSKU=Rl;exports.accountArraysAreEqual=md;exports.addEventListener=ri;exports.canUseDOM=xr;exports.cancelToken=Ed;exports.classNames=ce;exports.constructFrom=Jo;exports.contains=vr;exports.getAccountByIdentifiers=pa;exports.getChildrenOrFunction=hd;exports.getDefaultExportFromCjs=wr;exports.hasClass=cn;exports.isEscKey=Ci;exports.jsxRuntimeExports=M;exports.listen=Qe;exports.mergeOptionsWithPopperConfig=Oi;exports.ownerDocument=Ht;exports.removeEventListener=ni;exports.renderTransition=Ri;exports.style=bn;exports.toDate=Ko;exports.transitionEnd=oi;exports.transitionEndListener=ii;exports.triggerBrowserReflow=ai;exports.useAuth=ma;exports.useAxios=wd;exports.useBootstrapBreakpoints=Xa;exports.useBootstrapMinBreakpoint=Za;exports.useBootstrapPrefix=et;exports.useCallbackRef=rn;exports.useClickOutside=wi;exports.useCookies=Un;exports.useEventCallback=ct;exports.useIsAuthenticated=ha;exports.useIsRTL=yn;exports.useIsomorphicEffect=pr;exports.useMergedRefs=rt;exports.useMounted=wn;exports.useMsal=zn;exports.useNotifications=va;exports.usePopper=bi;exports.useUncontrolled=qa;exports.useWaitForDOMRef=sn;exports.useWillUnmount=ci;exports.useWindow=Ti;exports.warning=Pn;
|
|
253
|
+
*/var Yo;function ad(){return Yo||(Yo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function R(b){return typeof b=="string"||typeof b=="function"||b===n||b===l||b===i||b===o||b===f||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===m||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===E||b.$$typeof===T||b.$$typeof===S||b.$$typeof===g)}function C(b){if(typeof b=="object"&&b!==null){var ge=b.$$typeof;switch(ge){case t:var Re=b.type;switch(Re){case c:case l:case n:case i:case o:case f:return Re;default:var Ae=Re&&Re.$$typeof;switch(Ae){case s:case u:case h:case m:case a:return Ae;default:return ge}}case r:return ge}}}var p=c,A=l,k=s,J=a,Z=t,K=u,ie=n,fe=h,V=m,X=r,Q=i,ae=o,ue=f,Oe=!1;function Ee(b){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(b)||C(b)===c}function O(b){return C(b)===l}function _(b){return C(b)===s}function D(b){return C(b)===a}function $(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function j(b){return C(b)===u}function U(b){return C(b)===n}function N(b){return C(b)===h}function I(b){return C(b)===m}function L(b){return C(b)===r}function H(b){return C(b)===i}function B(b){return C(b)===o}function de(b){return C(b)===f}oe.AsyncMode=p,oe.ConcurrentMode=A,oe.ContextConsumer=k,oe.ContextProvider=J,oe.Element=Z,oe.ForwardRef=K,oe.Fragment=ie,oe.Lazy=fe,oe.Memo=V,oe.Portal=X,oe.Profiler=Q,oe.StrictMode=ae,oe.Suspense=ue,oe.isAsyncMode=Ee,oe.isConcurrentMode=O,oe.isContextConsumer=_,oe.isContextProvider=D,oe.isElement=$,oe.isForwardRef=j,oe.isFragment=U,oe.isLazy=N,oe.isMemo=I,oe.isPortal=L,oe.isProfiler=H,oe.isStrictMode=B,oe.isSuspense=de,oe.isValidElementType=R,oe.typeOf=C}()),oe}process.env.NODE_ENV==="production"?gn.exports=id():gn.exports=ad();var sd=gn.exports,fa=sd,cd={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ud={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},da={};da[fa.ForwardRef]=cd;da[fa.Memo]=ud;function ld(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Un(e){const t=v.useContext(od);if(!t)throw new Error("Missing <CookiesProvider>");const[r,n]=v.useState(()=>t.getAll({doNotUpdate:!0}));ld()&&v.useLayoutEffect(()=>{function s(){const c=t.getAll({doNotUpdate:!0});fd(e||null,c,r)&&n(c)}return t.addChangeListener(s),()=>{t.removeChangeListener(s)}},[t,r]);const o=v.useMemo(()=>t.set.bind(t),[t]),i=v.useMemo(()=>t.remove.bind(t),[t]),a=v.useMemo(()=>t.update.bind(t),[t]);return[r,o,i,a]}function fd(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1}const dd=()=>{const{axiosOptions:e,cookieDomain:t}=v.useContext(Nn),[,r,n]=Un(["Authorization"]),o=le.create(e),i=v.useCallback(()=>localStorage.getItem("token")??null,[]),a=v.useCallback(()=>{const l=i();return l!==null&&l.length>0},[i]),s=v.useCallback(async(l,u)=>o.post("/user/login",{kid:l,password:u}).then(f=>(localStorage.setItem("token",f.data),r("Authorization",f.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Va(new Date(Date.now()),24)}),f.data)).catch(f=>(console.log(f),null)),[o,r,t]),c=v.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),n("Authorization")},[n]);return{isAuthenticated:a,login:s,logout:c,getToken:i}};/*! @azure/msal-react v2.0.16 2024-05-07 */const pd={instance:Ml,inProgress:Rr.None,accounts:[],logger:new Er({})},Bn=Y.createContext(pd);Bn.Consumer;/*! @azure/msal-react v2.0.16 2024-05-07 */function hd(e,t){return typeof e=="function"?e(t):e}function md(e,t){if(e.length!==t.length)return!1;const r=[...t];return e.every(n=>{const o=r.shift();return!n||!o?!1:n.homeAccountId===o.homeAccountId&&n.localAccountId===o.localAccountId&&n.username===o.username})}function pa(e,t){return e.length>0&&(t.homeAccountId||t.localAccountId||t.username)&&e.filter(n=>!(t.username&&t.username.toLowerCase()!==n.username.toLowerCase()||t.homeAccountId&&t.homeAccountId.toLowerCase()!==n.homeAccountId.toLowerCase()||t.localAccountId&&t.localAccountId.toLowerCase()!==n.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.16 2024-05-07 */const zn=()=>v.useContext(Bn);/*! @azure/msal-react v2.0.16 2024-05-07 */function vd(e,t){return t&&(t.username||t.homeAccountId||t.localAccountId)?!!pa(e,t):e.length>0}function ha(e){const{accounts:t,inProgress:r}=zn();return v.useMemo(()=>r===Rr.Startup?!1:vd(t,e),[t,r,e])}const gd=()=>{const[,,e]=Un(["Authorization"]),{msalScopes:t}=v.useContext(Hn),{instance:r,inProgress:n}=zn(),o=ha(),i=v.useCallback(async()=>r.acquireTokenSilent({scopes:t}).then(u=>u.accessToken).catch(()=>null),[r,t]),a=v.useCallback(()=>o,[o]),s=v.useCallback(()=>!a()&&n!==Rr.None,[a,n]),c=v.useCallback(async()=>r.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[r,t]),l=v.useCallback(()=>{r.logout(),localStorage.removeItem("user"),e("Authorization")},[e,r]);return{isAuthenticated:a,isAuthenticating:s,login:c,logout:l,getToken:i}},ma=()=>{const{useMsal:e}=v.useContext(Hn),t=dd(),r=gd();return{isAuthenticated:e?r.isAuthenticated:t.isAuthenticated,isAuthenticating:e?r.isAuthenticating:()=>!1,getToken:e?r.getToken:t.getToken,login:e?r.login:t.login,logout:e?r.logout:t.logout}},yd="_toast_1s57i_1",kt={toast:yd},bd=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},va=()=>({addNotification:v.useCallback((t,r)=>{const n=Lt.truncateText(t),o=bd(r),i=M.jsxs(M.Fragment,{children:[n,M.jsx($i,{onClick:()=>gt.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(r){case"success":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(Ru,{size:12}),className:ce("luminus-toast-success rounded shadow bg-success",kt.toast)});break}case"danger":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(Eu,{size:12}),className:ce("luminus-toast-danger rounded shadow bg-danger",kt.toast)});break}case"warning":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(mu,{size:12}),className:ce("luminus-toast-warning rounded shadow bg-warning",kt.toast)});break}case"info":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(yu,{size:12}),className:ce("luminus-toast-info rounded shadow bg-info",kt.toast)});break}case"prompt":{gt(i,{id:n,duration:o,position:"top-center",icon:M.jsx(bu,{size:12}),className:ce("luminus-toast-prompt rounded shadow bg-light",kt.toast)});break}}},[])}),Ed=le.CancelToken,wd=e=>{const{authenticated:t=!0,differentBaseUrl:r,silent:n=!1,customToken:o}={...e},{language:i,axiosTexts:a,axiosOptions:s}=v.useContext(Nn),{addNotification:c}=va(),{getToken:l}=ma(),u=v.useMemo(()=>le.create(s),[s]),f=v.useCallback(async m=>{var h,g,E;if(t&&!m.headers.Authorization){const T=o??await l();if(!T)return Promise.reject(new Error("No bearer token"));m.headers.Authorization=`Bearer ${T}`}return(h=m.url)!=null&&h.includes("culture=")?m.url=(g=m.url)==null?void 0:g.replace(/culture=[a-z]{2}/,`culture=${i}`):m.url=`${m.url}${(E=m.url)!=null&&E.includes("?")?"&":"?"}culture=${i}`,m},[t,l,i,o]),y=v.useCallback(m=>{var E;if(console.log(m),le.isCancel(m))return Promise.reject(m);const h=Lt.extractErrorsFromResponse(m);if(h.length>0){const T=h.find(S=>S.name.toLowerCase()==="others");return T?(!n&&c(T.errors,"danger"),Promise.reject(m)):(!n&&c(a.validationError,"warning"),Promise.reject(m))}const g=Lt.extractPermissionsFromResponse(m);return g!==null?(c(`${a.permissionError}: ${Lt.joinStrings(", ",...g)}`,"danger"),Promise.reject(m)):((E=m.response)==null?void 0:E.status)===403?(!n&&c(a.forbiddenError,"danger"),Promise.reject(m)):m.message&&m.message==="Network Error"?(!n&&c(a.networkError,"danger"),Promise.reject(m)):(le.isCancel(m)||!n&&c(a.unexpectedError,"danger"),Promise.reject(m))},[c,a.forbiddenError,a.networkError,a.permissionError,a.unexpectedError,a.validationError,n]);return v.useEffect(()=>{r&&(u.defaults.baseURL=r),u.interceptors.request.clear(),u.interceptors.response.clear();const m=u.interceptors.request.use(f,g=>Promise.reject(g)),h=u.interceptors.response.use(g=>g,y);return()=>{u.interceptors.request.eject(m),u.interceptors.response.eject(h)}},[u.defaults,u.interceptors.request,u.interceptors.response,r,f,y]),u},Hn=v.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),Od="_h1_14r4v_1",xd="_h3_14r4v_8",Td="_h6_14r4v_15",Sd="_subtitle_14r4v_22",Cd="_body_14r4v_29",Rd="_body2_14r4v_36",_d="_caption_14r4v_43",Pd="_form-label_14r4v_50",Ke={h1:Od,h3:xd,h6:Td,subtitle:Sd,body:Cd,body2:Rd,caption:_d,"form-label":"_form-label_14r4v_50",formLabel:Pd},Ad=({variant:e,className:t,children:r})=>{switch(e){case"h1":return M.jsx("h1",{className:ce("luminus-text-primary luminus-h1",Ke.h1,t),children:r});case"h3":return M.jsx("h3",{className:ce("luminus-text luminus-h3",Ke.h3,t),children:r});case"h6":return M.jsx("h6",{className:ce("luminus-text luminus-h6",Ke.h6,t),children:r});case"subtitle":return M.jsx("div",{className:ce("luminus-text luminus-subtitle",Ke.subtitle,t),children:r});case"body":return M.jsx("div",{className:ce("luminus-text luminus-body",Ke.body,t),children:r});case"body2":return M.jsx("div",{className:ce("luminus-text luminus-body2",Ke.body2,t),children:r});case"caption":return M.jsx("div",{className:ce("luminus-text-muted luminus-caption",Ke.caption,t),children:r});case"form-label":return M.jsx("div",{className:ce("luminus-text luminus-form-label",Ke.formLabel,t),children:r});default:return M.jsx(M.Fragment,{children:r})}},ga=({variant:e,className:t,children:r})=>M.jsx(Ad,{variant:e,className:t,children:r}),Md="_button_qhwih_1",jd={button:Md},kd=v.forwardRef(({color:e="primary",icon:t=M.jsx(Pu,{size:21}),text:r,onClick:n,className:o,children:i,...a},s)=>M.jsxs("button",{type:"button",ref:s,onClick:c=>{c.preventDefault(),n(c)},"aria-label":"dropdown toggle",className:ce(`btn luminus-context-button text-${e} ${o??""}`,jd.button),...a,children:[t,r]})),Nd="_avatar-icon_1axl6_1",Id={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:Nd},ya=({name:e,fontSize:t,size:r})=>{const n=o=>{let i=0,a;for(a=0;a<o.length;a+=1)i=o.charCodeAt(a)+((i<<5)-i);let s="#";for(a=0;a<3;a+=1){const c=i>>a*8&255;s+=`00${c.toString(16)}`.slice(-2)}return s};return M.jsx(Ii,{placement:"bottom",overlay:M.jsx(kn,{children:e}),children:M.jsx("div",{className:ce("luminus-avatar-icon",Id.avatarIcon),style:{backgroundColor:n(e),fontSize:t??void 0,minHeight:r??void 0,height:r??void 0,maxHeight:r??void 0,minWidth:r??void 0,width:r??void 0,maxWidth:r??void 0},children:M.jsx("div",{children:`${e.split(" ")[0][0]}${e.split(" ")[1][0]}`})})})},Ld=v.forwardRef(({userName:e,onClick:t,children:r},n)=>M.jsxs("button",{type:"button",ref:n,onClick:o=>{o.preventDefault(),t(o)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[M.jsx(ya,{name:e}),r]})),Dd="_floating-label_1gef3_1",$d="_without-label_1gef3_21",qo={"floating-label":"_floating-label_1gef3_1",floatingLabel:Dd,"without-label":"_without-label_1gef3_21",withoutLabel:$d},ba=v.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,inputContainerClassName:i,isForCheckInput:a,...s},c)=>a?M.jsx(M.Fragment,{children:t}):M.jsx(Mn,{ref:c,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ce(`luminus-floating-label ${r??""}`,qo.floatingLabel,{[i??""]:i},{[qo.withoutLabel]:s.withoutLabel}),children:t}));ba.displayName="FloatingLabelInput";const Fd="_row-label-input_rc09e_1",Ud="_label_rc09e_4",Bd="_input-container_rc09e_9",zd="_invalid-feedback_rc09e_100",Hd="_keep-check-label_rc09e_128",Vd="_is-invalid_rc09e_156",Nt={"row-label-input":"_row-label-input_rc09e_1",rowLabelInput:Fd,label:Ud,"input-container":"_input-container_rc09e_9",inputContainer:Bd,"invalid-feedback":"_invalid-feedback_rc09e_100",invalidFeedback:zd,"keep-check-label":"_keep-check-label_rc09e_128",keepCheckLabel:Hd,"is-invalid":"_is-invalid_rc09e_156",isInvalid:Vd},Ea=v.forwardRef(({hidden:e,children:t,className:r,isInvalid:n,isForRadioInput:o,isForTextAreaInput:i,inputContainerClassName:a,...s},c)=>M.jsxs("div",{ref:c,className:ce("luminus-row-label row gx-0 gy-0",{"is-invalid":n},{[Nt.isInvalid]:n},{[r??""]:r},{"d-none":e},Nt.rowLabelInput),children:[!s.withoutLabel&&M.jsx("label",{className:ce("label col-6",{"col-12":i},Nt.label),children:M.jsx(ga,{variant:"form-label",className:n?"text-danger":"",children:s.label})}),M.jsx("div",{className:ce("input-container",Nt.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Nt.keepCheckLabel]:o},{[a??""]:a}),children:t})]}));Ea.displayName="RowLabelInput";const wa=v.forwardRef(({children:e,className:t,hidden:r},n)=>M.jsx("div",{ref:n,className:`${r?"d-none":""} ${t}`,children:e}));wa.displayName="NoInputContainer";exports.AuthContext=Hn;exports.AuthError=Cr;exports.AvatarIcon=ya;exports.CacheAccountType=Sl;exports.ConfirmContext=Mu;exports.Constants=me;exports.ENTERED=Xe;exports.ENTERING=ze;exports.EXITED=Je;exports.EXITING=fr;exports.Fade=hr;exports.FloatingLabel=Mn;exports.FloatingLabelInput=ba;exports.FormContext=Si;exports.FormGroup=An;exports.GenIcon=pe;exports.Ie=Ol;exports.InteractionStatus=Rr;exports.LoadingContext=xl;exports.LuminusComponentsContext=Nn;exports.MdCheck=pu;exports.MdCircle=du;exports.MdClear=fu;exports.MdOutlineAddCircleOutline=wu;exports.MdOutlineArrowOutward=hu;exports.MdOutlineCameraAlt=Su;exports.MdOutlineChevronRight=_u;exports.MdOutlineClose=$i;exports.MdOutlineDelete=vu;exports.MdOutlineEdit=Cu;exports.MdOutlineExpand=gu;exports.MdOutlineFileUpload=Ou;exports.MdOutlineKeyboardArrowLeft=xu;exports.MdOutlineKeyboardArrowRight=Tu;exports.MdOutlineStar=Au;exports.MsalContext=Bn;exports.NoInputContainer=wa;exports.OIDC_DEFAULT_SCOPES=zi;exports.OverlayTrigger=Ii;exports.Popover=ji;exports.PromptContext=ju;exports.PropTypes=z;exports.RowLabelInput=Ea;exports.Separators=Cl;exports.SimpleDropdownToggle=kd;exports.Tooltip=kn;exports.TransitionWrapper=si;exports.Typography=ga;exports.UserAvatarToggle=Ld;exports.UserContext=Tl;exports.WrapperSKU=Rl;exports.accountArraysAreEqual=md;exports.addEventListener=ri;exports.canUseDOM=xr;exports.cancelToken=Ed;exports.classNames=ce;exports.constructFrom=Jo;exports.contains=vr;exports.getAccountByIdentifiers=pa;exports.getChildrenOrFunction=hd;exports.getDefaultExportFromCjs=wr;exports.hasClass=cn;exports.isEscKey=Ci;exports.jsxRuntimeExports=M;exports.listen=Qe;exports.mergeOptionsWithPopperConfig=Oi;exports.ownerDocument=Ht;exports.removeEventListener=ni;exports.renderTransition=Ri;exports.style=bn;exports.toDate=Ko;exports.transitionEnd=oi;exports.transitionEndListener=ii;exports.triggerBrowserReflow=ai;exports.useAuth=ma;exports.useAxios=wd;exports.useBootstrapBreakpoints=Xa;exports.useBootstrapMinBreakpoint=Za;exports.useBootstrapPrefix=et;exports.useCallbackRef=rn;exports.useClickOutside=wi;exports.useCookies=Un;exports.useEventCallback=ct;exports.useIsAuthenticated=ha;exports.useIsRTL=yn;exports.useIsomorphicEffect=pr;exports.useMergedRefs=rt;exports.useMounted=wn;exports.useMsal=zn;exports.useNotifications=va;exports.usePopper=bi;exports.useUncontrolled=qa;exports.useWaitForDOMRef=sn;exports.useWillUnmount=ci;exports.useWindow=Ti;exports.warning=Pn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Y from "react";
|
|
2
|
-
import Ee, { useRef as ge, useState as Ke, useCallback as
|
|
2
|
+
import Ee, { useRef as ge, useState as Ke, useCallback as U, useContext as Ue, useMemo as Fe, useEffect as _e, useLayoutEffect as Wo, createContext as ht, cloneElement as Or, forwardRef as yn } from "react";
|
|
3
3
|
import { b as Ea, t as wa, e as Oa, c as xa, j as Ta } from "./latinize-BQrinury.js";
|
|
4
4
|
import "react-hook-form";
|
|
5
5
|
import Tt from "react-dom";
|
|
@@ -212,16 +212,16 @@ function _a() {
|
|
|
212
212
|
` + L + d;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
var z = !1,
|
|
215
|
+
var z = !1, B;
|
|
216
216
|
{
|
|
217
217
|
var de = typeof WeakMap == "function" ? WeakMap : Map;
|
|
218
|
-
|
|
218
|
+
B = new de();
|
|
219
219
|
}
|
|
220
220
|
function y(d, O) {
|
|
221
221
|
if (!d || z)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
224
|
-
var C =
|
|
224
|
+
var C = B.get(d);
|
|
225
225
|
if (C !== void 0)
|
|
226
226
|
return C;
|
|
227
227
|
}
|
|
@@ -276,7 +276,7 @@ function _a() {
|
|
|
276
276
|
if (pe--, me--, me < 0 || W[pe] !== Se[me]) {
|
|
277
277
|
var Le = `
|
|
278
278
|
` + W[pe].replace(" at new ", " at ");
|
|
279
|
-
return d.displayName && Le.includes("<anonymous>") && (Le = Le.replace("<anonymous>", d.displayName)), typeof d == "function" &&
|
|
279
|
+
return d.displayName && Le.includes("<anonymous>") && (Le = Le.replace("<anonymous>", d.displayName)), typeof d == "function" && B.set(d, Le), Le;
|
|
280
280
|
}
|
|
281
281
|
while (pe >= 1 && me >= 0);
|
|
282
282
|
break;
|
|
@@ -286,7 +286,7 @@ function _a() {
|
|
|
286
286
|
z = !1, M.current = se, F(), Error.prepareStackTrace = ee;
|
|
287
287
|
}
|
|
288
288
|
var wt = d ? d.displayName || d.name : "", at = wt ? D(wt) : "";
|
|
289
|
-
return typeof d == "function" &&
|
|
289
|
+
return typeof d == "function" && B.set(d, at), at;
|
|
290
290
|
}
|
|
291
291
|
function ye(d, O, C) {
|
|
292
292
|
return y(d, !1);
|
|
@@ -734,7 +734,7 @@ function Ma(e, t) {
|
|
|
734
734
|
}
|
|
735
735
|
function Go(e, t, r) {
|
|
736
736
|
var n = ge(e !== void 0), o = Ke(t), i = o[0], a = o[1], s = e !== void 0, c = n.current;
|
|
737
|
-
return n.current = s, !s && c && i !== t && a(t), [s ? e : i,
|
|
737
|
+
return n.current = s, !s && c && i !== t && a(t), [s ? e : i, U(function(l) {
|
|
738
738
|
for (var u = arguments.length, f = new Array(u > 1 ? u - 1 : 0), g = 1; g < u; g++)
|
|
739
739
|
f[g - 1] = arguments[g];
|
|
740
740
|
r && r.apply(void 0, [l].concat(f)), a(l);
|
|
@@ -973,13 +973,13 @@ function Wa() {
|
|
|
973
973
|
function z(y) {
|
|
974
974
|
return S(y) === i;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function B(y) {
|
|
977
977
|
return S(y) === o;
|
|
978
978
|
}
|
|
979
979
|
function de(y) {
|
|
980
980
|
return S(y) === f;
|
|
981
981
|
}
|
|
982
|
-
re.AsyncMode = p, re.ConcurrentMode = P, re.ContextConsumer = N, re.ContextProvider = J, re.Element = Z, re.ForwardRef = K, re.Fragment = ie, re.Lazy = fe, re.Memo = V, re.Portal = X, re.Profiler = Q, re.StrictMode = ae, re.Suspense = ue, re.isAsyncMode = Oe, re.isConcurrentMode = w, re.isContextConsumer = R, re.isContextProvider = k, re.isElement = I, re.isForwardRef = j, re.isFragment = F, re.isLazy = M, re.isMemo = L, re.isPortal = D, re.isProfiler = z, re.isStrictMode =
|
|
982
|
+
re.AsyncMode = p, re.ConcurrentMode = P, re.ContextConsumer = N, re.ContextProvider = J, re.Element = Z, re.ForwardRef = K, re.Fragment = ie, re.Lazy = fe, re.Memo = V, re.Portal = X, re.Profiler = Q, re.StrictMode = ae, re.Suspense = ue, re.isAsyncMode = Oe, re.isConcurrentMode = w, re.isContextConsumer = R, re.isContextProvider = k, re.isElement = I, re.isForwardRef = j, re.isFragment = F, re.isLazy = M, re.isMemo = L, re.isPortal = D, re.isProfiler = z, re.isStrictMode = B, re.isSuspense = de, re.isValidElementType = _, re.typeOf = S;
|
|
983
983
|
}()), re;
|
|
984
984
|
}
|
|
985
985
|
var Xn;
|
|
@@ -1156,8 +1156,8 @@ function Ga() {
|
|
|
1156
1156
|
function b(w) {
|
|
1157
1157
|
if (process.env.NODE_ENV !== "production")
|
|
1158
1158
|
var R = {}, k = 0;
|
|
1159
|
-
function I(F, M, L, D, z,
|
|
1160
|
-
if (D = D || g,
|
|
1159
|
+
function I(F, M, L, D, z, B, de) {
|
|
1160
|
+
if (D = D || g, B = B || L, de !== r) {
|
|
1161
1161
|
if (c) {
|
|
1162
1162
|
var y = new Error(
|
|
1163
1163
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1167,11 +1167,11 @@ function Ga() {
|
|
|
1167
1167
|
var ye = D + ":" + L;
|
|
1168
1168
|
!R[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1169
1169
|
k < 3 && (i(
|
|
1170
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1170
|
+
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1171
1171
|
), R[ye] = !0, k++);
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
|
-
return M[L] == null ? F ? M[L] === null ? new v("The " + z + " `" +
|
|
1174
|
+
return M[L] == null ? F ? M[L] === null ? new v("The " + z + " `" + B + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new v("The " + z + " `" + B + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : w(M, L, D, z, B);
|
|
1175
1175
|
}
|
|
1176
1176
|
var j = I.bind(null, !1);
|
|
1177
1177
|
return j.isRequired = I.bind(null, !0), j;
|
|
@@ -1180,9 +1180,9 @@ function Ga() {
|
|
|
1180
1180
|
function R(k, I, j, F, M, L) {
|
|
1181
1181
|
var D = k[I], z = ae(D);
|
|
1182
1182
|
if (z !== w) {
|
|
1183
|
-
var
|
|
1183
|
+
var B = ue(D);
|
|
1184
1184
|
return new v(
|
|
1185
|
-
"Invalid " + F + " `" + M + "` of type " + ("`" +
|
|
1185
|
+
"Invalid " + F + " `" + M + "` of type " + ("`" + B + "` supplied to `" + j + "`, expected ") + ("`" + w + "`."),
|
|
1186
1186
|
{ expectedType: w }
|
|
1187
1187
|
);
|
|
1188
1188
|
}
|
|
@@ -1203,9 +1203,9 @@ function Ga() {
|
|
|
1203
1203
|
return new v("Invalid " + F + " `" + M + "` of type " + ("`" + D + "` supplied to `" + j + "`, expected an array."));
|
|
1204
1204
|
}
|
|
1205
1205
|
for (var z = 0; z < L.length; z++) {
|
|
1206
|
-
var
|
|
1207
|
-
if (
|
|
1208
|
-
return
|
|
1206
|
+
var B = w(L, z, j, F, M + "[" + z + "]", r);
|
|
1207
|
+
if (B instanceof Error)
|
|
1208
|
+
return B;
|
|
1209
1209
|
}
|
|
1210
1210
|
return null;
|
|
1211
1211
|
}
|
|
@@ -1269,9 +1269,9 @@ function Ga() {
|
|
|
1269
1269
|
return new v("Invalid " + F + " `" + M + "` of type " + ("`" + D + "` supplied to `" + j + "`, expected an object."));
|
|
1270
1270
|
for (var z in L)
|
|
1271
1271
|
if (n(L, z)) {
|
|
1272
|
-
var
|
|
1273
|
-
if (
|
|
1274
|
-
return
|
|
1272
|
+
var B = w(L, z, j, F, M + "." + z, r);
|
|
1273
|
+
if (B instanceof Error)
|
|
1274
|
+
return B;
|
|
1275
1275
|
}
|
|
1276
1276
|
return null;
|
|
1277
1277
|
}
|
|
@@ -1288,8 +1288,8 @@ function Ga() {
|
|
|
1288
1288
|
), a;
|
|
1289
1289
|
}
|
|
1290
1290
|
function I(j, F, M, L, D) {
|
|
1291
|
-
for (var z = [],
|
|
1292
|
-
var de = w[
|
|
1291
|
+
for (var z = [], B = 0; B < w.length; B++) {
|
|
1292
|
+
var de = w[B], y = de(j, F, M, L, D, r);
|
|
1293
1293
|
if (y == null)
|
|
1294
1294
|
return null;
|
|
1295
1295
|
y.data && n(y.data, "expectedType") && z.push(y.data.expectedType);
|
|
@@ -1316,10 +1316,10 @@ function Ga() {
|
|
|
1316
1316
|
if (D !== "object")
|
|
1317
1317
|
return new v("Invalid " + F + " `" + M + "` of type `" + D + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1318
1318
|
for (var z in w) {
|
|
1319
|
-
var
|
|
1320
|
-
if (typeof
|
|
1321
|
-
return ie(j, F, M, z, ue(
|
|
1322
|
-
var de =
|
|
1319
|
+
var B = w[z];
|
|
1320
|
+
if (typeof B != "function")
|
|
1321
|
+
return ie(j, F, M, z, ue(B));
|
|
1322
|
+
var de = B(L, z, j, F, M + "." + z, r);
|
|
1323
1323
|
if (de)
|
|
1324
1324
|
return de;
|
|
1325
1325
|
}
|
|
@@ -1333,16 +1333,16 @@ function Ga() {
|
|
|
1333
1333
|
if (D !== "object")
|
|
1334
1334
|
return new v("Invalid " + F + " `" + M + "` of type `" + D + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1335
1335
|
var z = t({}, k[I], w);
|
|
1336
|
-
for (var
|
|
1337
|
-
var de = w[
|
|
1338
|
-
if (n(w,
|
|
1339
|
-
return ie(j, F, M,
|
|
1336
|
+
for (var B in z) {
|
|
1337
|
+
var de = w[B];
|
|
1338
|
+
if (n(w, B) && typeof de != "function")
|
|
1339
|
+
return ie(j, F, M, B, ue(de));
|
|
1340
1340
|
if (!de)
|
|
1341
1341
|
return new v(
|
|
1342
|
-
"Invalid " + F + " `" + M + "` key `" +
|
|
1342
|
+
"Invalid " + F + " `" + M + "` key `" + B + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(k[I], null, " ") + `
|
|
1343
1343
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
1344
1344
|
);
|
|
1345
|
-
var y = de(L,
|
|
1345
|
+
var y = de(L, B, j, F, M + "." + B, r);
|
|
1346
1346
|
if (y)
|
|
1347
1347
|
return y;
|
|
1348
1348
|
}
|
|
@@ -1925,7 +1925,7 @@ const ls = /* @__PURE__ */ Ee.forwardRef(({
|
|
|
1925
1925
|
g(vr(P));
|
|
1926
1926
|
}, h = (P) => (N) => {
|
|
1927
1927
|
P && f.current && P(f.current, N);
|
|
1928
|
-
}, v =
|
|
1928
|
+
}, v = U(h(e), [e]), b = U(h(t), [t]), x = U(h(r), [r]), T = U(h(n), [n]), _ = U(h(o), [o]), S = U(h(i), [i]), p = U(h(a), [a]);
|
|
1929
1929
|
return /* @__PURE__ */ A.jsx(Je, {
|
|
1930
1930
|
ref: u,
|
|
1931
1931
|
...l,
|
|
@@ -1956,7 +1956,7 @@ function fs(e) {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
function St(e) {
|
|
1958
1958
|
const t = fs(e);
|
|
1959
|
-
return
|
|
1959
|
+
return U(function(...r) {
|
|
1960
1960
|
return t.current && t.current(...r);
|
|
1961
1961
|
}, [t]);
|
|
1962
1962
|
}
|
|
@@ -1988,7 +1988,7 @@ global.navigator.product === "ReactNative", ps = typeof document < "u", rn = ps
|
|
|
1988
1988
|
unmountOnExit: !1,
|
|
1989
1989
|
appear: !1,
|
|
1990
1990
|
...o
|
|
1991
|
-
}, s =
|
|
1991
|
+
}, s = U((c, l) => {
|
|
1992
1992
|
cs(c), n == null || n(c, l);
|
|
1993
1993
|
}, [n]);
|
|
1994
1994
|
return /* @__PURE__ */ A.jsx(ls, {
|
|
@@ -2094,7 +2094,7 @@ function Ht(e, t) {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
function ys(e) {
|
|
2096
2096
|
const t = ei();
|
|
2097
|
-
return [e[0],
|
|
2097
|
+
return [e[0], U((r) => {
|
|
2098
2098
|
if (t())
|
|
2099
2099
|
return e[1](r);
|
|
2100
2100
|
}, [t, e[1]])];
|
|
@@ -2751,7 +2751,7 @@ function uc(e) {
|
|
|
2751
2751
|
var V, X = S === "y" ? Ce : Pe, Q = S === "y" ? Ie : $e, ae = S === "y" ? "height" : "width", ue = P[S], Te = ue + b[X], Oe = ue - b[Q], w = m ? -J[ae] / 2 : 0, R = T === _t ? N[ae] : J[ae], k = T === _t ? -J[ae] : -N[ae], I = t.elements.arrow, j = m && I ? Tn(I) : {
|
|
2752
2752
|
width: 0,
|
|
2753
2753
|
height: 0
|
|
2754
|
-
}, F = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ai(), M = F[X], L = F[Q], D = Vt(0, N[ae], j[ae]), z = _ ? N[ae] / 2 - w - D - M - K.mainAxis : R - D - M - K.mainAxis,
|
|
2754
|
+
}, F = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ai(), M = F[X], L = F[Q], D = Vt(0, N[ae], j[ae]), z = _ ? N[ae] / 2 - w - D - M - K.mainAxis : R - D - M - K.mainAxis, B = _ ? -N[ae] / 2 + w + D + L + K.mainAxis : k + D + L + K.mainAxis, de = t.elements.arrow && Jt(t.elements.arrow), y = de ? S === "y" ? de.clientTop || 0 : de.clientLeft || 0 : 0, ye = (V = ie == null ? void 0 : ie[S]) != null ? V : 0, Ae = ue + z - ye - y, Me = ue + B - ye, Xe = Vt(m ? gr(Te, Ae) : Te, ue, m ? lt(Oe, Me) : Oe);
|
|
2755
2755
|
P[S] = Xe, fe[S] = Xe - ue;
|
|
2756
2756
|
}
|
|
2757
2757
|
if (s) {
|
|
@@ -3014,10 +3014,10 @@ function _c(e, t, r = {}) {
|
|
|
3014
3014
|
strategy: i = "absolute",
|
|
3015
3015
|
modifiers: a = Sc
|
|
3016
3016
|
} = r, s = Oc(r, wc);
|
|
3017
|
-
const c = ge(a), l = ge(), u =
|
|
3017
|
+
const c = ge(a), l = ge(), u = U(() => {
|
|
3018
3018
|
var b;
|
|
3019
3019
|
(b = l.current) == null || b.update();
|
|
3020
|
-
}, []), f =
|
|
3020
|
+
}, []), f = U(() => {
|
|
3021
3021
|
var b;
|
|
3022
3022
|
(b = l.current) == null || b.forceUpdate();
|
|
3023
3023
|
}, []), [g, m] = ys(Ke({
|
|
@@ -3125,7 +3125,7 @@ function Nc(e, t = Eo, {
|
|
|
3125
3125
|
disabled: r,
|
|
3126
3126
|
clickTrigger: n = "click"
|
|
3127
3127
|
} = {}) {
|
|
3128
|
-
const o = ge(!1), i = ge(!1), a =
|
|
3128
|
+
const o = ge(!1), i = ge(!1), a = U((l) => {
|
|
3129
3129
|
const u = lr(e);
|
|
3130
3130
|
di(!!u, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), o.current = !u || jc(l) || !Ac(l) || !!cn(u, l.target) || i.current, i.current = !1;
|
|
3131
3131
|
}, [e]), s = St((l) => {
|
|
@@ -3312,7 +3312,7 @@ function Hc(e) {
|
|
|
3312
3312
|
major: u
|
|
3313
3313
|
} = Uc(), f = u >= 19 ? c.props.ref : c.ref, g = ge(null), m = mt(g, typeof c == "function" ? null : f), h = (P) => (N) => {
|
|
3314
3314
|
P && g.current && P(g.current, N);
|
|
3315
|
-
}, v =
|
|
3315
|
+
}, v = U(h(t), [t]), b = U(h(r), [r]), x = U(h(n), [n]), T = U(h(o), [o]), _ = U(h(i), [i]), S = U(h(a), [a]), p = U(h(s), [s]);
|
|
3316
3316
|
return Object.assign({}, l, {
|
|
3317
3317
|
nodeRef: g
|
|
3318
3318
|
}, t && {
|
|
@@ -3743,7 +3743,7 @@ const nu = ({
|
|
|
3743
3743
|
onClick: S
|
|
3744
3744
|
} = typeof r != "function" ? Y.Children.only(r).props : {}, p = (Q) => {
|
|
3745
3745
|
g(vr(Q));
|
|
3746
|
-
}, P =
|
|
3746
|
+
}, P = U(() => {
|
|
3747
3747
|
if (m.clear(), h.current = "show", !x.show) {
|
|
3748
3748
|
b(!0);
|
|
3749
3749
|
return;
|
|
@@ -3751,7 +3751,7 @@ const nu = ({
|
|
|
3751
3751
|
m.set(() => {
|
|
3752
3752
|
h.current === "show" && b(!0);
|
|
3753
3753
|
}, x.show);
|
|
3754
|
-
}, [x.show, b, m]), N =
|
|
3754
|
+
}, [x.show, b, m]), N = U(() => {
|
|
3755
3755
|
if (m.clear(), h.current = "hide", !x.hide) {
|
|
3756
3756
|
b(!1);
|
|
3757
3757
|
return;
|
|
@@ -3759,15 +3759,15 @@ const nu = ({
|
|
|
3759
3759
|
m.set(() => {
|
|
3760
3760
|
h.current === "hide" && b(!1);
|
|
3761
3761
|
}, x.hide);
|
|
3762
|
-
}, [x.hide, b, m]), J =
|
|
3762
|
+
}, [x.hide, b, m]), J = U((...Q) => {
|
|
3763
3763
|
P(), T == null || T(...Q);
|
|
3764
|
-
}, [P, T]), Z =
|
|
3764
|
+
}, [P, T]), Z = U((...Q) => {
|
|
3765
3765
|
N(), _ == null || _(...Q);
|
|
3766
|
-
}, [N, _]), K =
|
|
3766
|
+
}, [N, _]), K = U((...Q) => {
|
|
3767
3767
|
b(!v), S == null || S(...Q);
|
|
3768
|
-
}, [S, b, v]), ie =
|
|
3768
|
+
}, [S, b, v]), ie = U((...Q) => {
|
|
3769
3769
|
To(P, Q, "fromElement");
|
|
3770
|
-
}, [P]), fe =
|
|
3770
|
+
}, [P]), fe = U((...Q) => {
|
|
3771
3771
|
To(N, Q, "toElement");
|
|
3772
3772
|
}, [N]), V = e == null ? [] : [].concat(e), X = {
|
|
3773
3773
|
ref: p
|
|
@@ -4163,9 +4163,9 @@ var Mu = (e, t) => {
|
|
|
4163
4163
|
a.forEach((s) => s && clearTimeout(s));
|
|
4164
4164
|
};
|
|
4165
4165
|
}, [t, r]);
|
|
4166
|
-
let n =
|
|
4166
|
+
let n = U(() => {
|
|
4167
4167
|
r && vt({ type: 6, time: Date.now() });
|
|
4168
|
-
}, [r]), o =
|
|
4168
|
+
}, [r]), o = U((i, a) => {
|
|
4169
4169
|
let { reverseOrder: s = !1, gutter: c = 8, defaultPosition: l } = a || {}, u = t.filter((m) => (m.position || l) === (i.position || l) && m.height), f = u.findIndex((m) => m.id === i.id), g = u.filter((m, h) => h < f && m.visible).length;
|
|
4170
4170
|
return u.filter((m) => m.visible).slice(...s ? [g + 1] : [0, g]).reduce((m, h) => m + (h.height || 0) + c, 0);
|
|
4171
4171
|
}, [t]);
|
|
@@ -6526,13 +6526,13 @@ function Uf() {
|
|
|
6526
6526
|
function z(y) {
|
|
6527
6527
|
return S(y) === i;
|
|
6528
6528
|
}
|
|
6529
|
-
function
|
|
6529
|
+
function B(y) {
|
|
6530
6530
|
return S(y) === o;
|
|
6531
6531
|
}
|
|
6532
6532
|
function de(y) {
|
|
6533
6533
|
return S(y) === f;
|
|
6534
6534
|
}
|
|
6535
|
-
oe.AsyncMode = p, oe.ConcurrentMode = P, oe.ContextConsumer = N, oe.ContextProvider = J, oe.Element = Z, oe.ForwardRef = K, oe.Fragment = ie, oe.Lazy = fe, oe.Memo = V, oe.Portal = X, oe.Profiler = Q, oe.StrictMode = ae, oe.Suspense = ue, oe.isAsyncMode = Oe, oe.isConcurrentMode = w, oe.isContextConsumer = R, oe.isContextProvider = k, oe.isElement = I, oe.isForwardRef = j, oe.isFragment = F, oe.isLazy = M, oe.isMemo = L, oe.isPortal = D, oe.isProfiler = z, oe.isStrictMode =
|
|
6535
|
+
oe.AsyncMode = p, oe.ConcurrentMode = P, oe.ContextConsumer = N, oe.ContextProvider = J, oe.Element = Z, oe.ForwardRef = K, oe.Fragment = ie, oe.Lazy = fe, oe.Memo = V, oe.Portal = X, oe.Profiler = Q, oe.StrictMode = ae, oe.Suspense = ue, oe.isAsyncMode = Oe, oe.isConcurrentMode = w, oe.isContextConsumer = R, oe.isContextProvider = k, oe.isElement = I, oe.isForwardRef = j, oe.isFragment = F, oe.isLazy = M, oe.isMemo = L, oe.isPortal = D, oe.isProfiler = z, oe.isStrictMode = B, oe.isSuspense = de, oe.isValidElementType = _, oe.typeOf = S;
|
|
6536
6536
|
}()), oe;
|
|
6537
6537
|
}
|
|
6538
6538
|
process.env.NODE_ENV === "production" ? gn.exports = Ff() : gn.exports = Uf();
|
|
@@ -6583,16 +6583,16 @@ function Wf(e, t, r) {
|
|
|
6583
6583
|
return !1;
|
|
6584
6584
|
}
|
|
6585
6585
|
const Yf = () => {
|
|
6586
|
-
const { axiosOptions: e, cookieDomain: t } = Ue(Si), [, r, n] = Qi(["Authorization"]), o = le.create(e), i =
|
|
6586
|
+
const { axiosOptions: e, cookieDomain: t } = Ue(Si), [, r, n] = Qi(["Authorization"]), o = le.create(e), i = U(() => localStorage.getItem("token") ?? null, []), a = U(() => {
|
|
6587
6587
|
const l = i();
|
|
6588
6588
|
return l !== null && l.length > 0;
|
|
6589
|
-
}, [i]), s =
|
|
6589
|
+
}, [i]), s = U(async (l, u) => o.post("/user/login", { kid: l, password: u }).then((f) => (localStorage.setItem("token", f.data), r("Authorization", f.data, {
|
|
6590
6590
|
path: "/",
|
|
6591
6591
|
secure: !0,
|
|
6592
6592
|
sameSite: "none",
|
|
6593
6593
|
domain: t,
|
|
6594
6594
|
expires: ja(new Date(Date.now()), 24)
|
|
6595
|
-
}), f.data)).catch((f) => (console.log(f), null)), [o, r, t]), c =
|
|
6595
|
+
}), f.data)).catch((f) => (console.log(f), null)), [o, r, t]), c = U(() => {
|
|
6596
6596
|
localStorage.removeItem("token"), localStorage.removeItem("user"), n("Authorization");
|
|
6597
6597
|
}, [n]);
|
|
6598
6598
|
return { isAuthenticated: a, login: s, logout: c, getToken: i };
|
|
@@ -6632,9 +6632,9 @@ function Jf(e) {
|
|
|
6632
6632
|
return Fe(() => r === jn.Startup ? !1 : Kf(t, e), [t, r, e]);
|
|
6633
6633
|
}
|
|
6634
6634
|
const Xf = () => {
|
|
6635
|
-
const [, , e] = Qi(["Authorization"]), { msalScopes: t } = Ue(ra), { instance: r, inProgress: n } = ta(), o = Jf(), i =
|
|
6635
|
+
const [, , e] = Qi(["Authorization"]), { msalScopes: t } = Ue(ra), { instance: r, inProgress: n } = ta(), o = Jf(), i = U(async () => r.acquireTokenSilent({ scopes: t }).then((u) => u.accessToken).catch(() => null), [r, t]), a = U(() => o, [o]), s = U(() => !a() && n !== jn.None, [a, n]), c = U(async () => r.loginRedirect({
|
|
6636
6636
|
scopes: t
|
|
6637
|
-
}).then(() => "").catch(() => null), [r, t]), l =
|
|
6637
|
+
}).then(() => "").catch(() => null), [r, t]), l = U(() => {
|
|
6638
6638
|
r.logout(), localStorage.removeItem("user"), e("Authorization");
|
|
6639
6639
|
}, [e, r]);
|
|
6640
6640
|
return {
|
|
@@ -6670,7 +6670,7 @@ const Xf = () => {
|
|
|
6670
6670
|
default:
|
|
6671
6671
|
return 5e3;
|
|
6672
6672
|
}
|
|
6673
|
-
}, td = () => ({ addNotification: (t, r) => {
|
|
6673
|
+
}, td = () => ({ addNotification: U((t, r) => {
|
|
6674
6674
|
const n = wa(t), o = ed(r), i = /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
6675
6675
|
n,
|
|
6676
6676
|
/* @__PURE__ */ A.jsx(vu, { onClick: () => xt.dismiss(n), type: "button", style: {
|
|
@@ -6732,8 +6732,8 @@ const Xf = () => {
|
|
|
6732
6732
|
break;
|
|
6733
6733
|
}
|
|
6734
6734
|
}
|
|
6735
|
-
} }), ip = le.CancelToken, ap = (e) => {
|
|
6736
|
-
const { authenticated: t = !0, differentBaseUrl: r, silent: n = !1, customToken: o } = { ...e }, { language: i, axiosTexts: a, axiosOptions: s } = Ue(Si), { addNotification: c } = td(), { getToken: l } = Zf(), u = Fe(() => le.create(s), [s]), f =
|
|
6735
|
+
}, []) }), ip = le.CancelToken, ap = (e) => {
|
|
6736
|
+
const { authenticated: t = !0, differentBaseUrl: r, silent: n = !1, customToken: o } = { ...e }, { language: i, axiosTexts: a, axiosOptions: s } = Ue(Si), { addNotification: c } = td(), { getToken: l } = Zf(), u = Fe(() => le.create(s), [s]), f = U(async (m) => {
|
|
6737
6737
|
var h, v, b;
|
|
6738
6738
|
if (t && !m.headers.Authorization) {
|
|
6739
6739
|
const x = o ?? await l();
|
|
@@ -6742,7 +6742,7 @@ const Xf = () => {
|
|
|
6742
6742
|
m.headers.Authorization = `Bearer ${x}`;
|
|
6743
6743
|
}
|
|
6744
6744
|
return (h = m.url) != null && h.includes("culture=") ? m.url = (v = m.url) == null ? void 0 : v.replace(/culture=[a-z]{2}/, `culture=${i}`) : m.url = `${m.url}${(b = m.url) != null && b.includes("?") ? "&" : "?"}culture=${i}`, m;
|
|
6745
|
-
}, [t, l, i, o]), g =
|
|
6745
|
+
}, [t, l, i, o]), g = U(
|
|
6746
6746
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6747
6747
|
(m) => {
|
|
6748
6748
|
var b;
|