@ukpc-lib/react 0.13.1-dev.23 → 0.13.1-dev.25
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/components/StyledDateRangePicker/index.d.ts +1 -0
- package/dist/components/index.cjs +15 -15
- package/dist/components/index.js +1150 -1142
- package/dist/{index.esm2017-Ck_qm_fd.cjs → index.esm2017-BRdyW06b.cjs} +79 -79
- package/dist/{index.esm2017-DhUKCOpT.js → index.esm2017-DiJ5f9ER.js} +2612 -2602
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +12 -12
- package/package.json +3 -4
- package/web-components-bundle/access-denied/index.js +2 -1
- package/web-components-bundle/base-breadcrumbs/index.js +1 -1
- package/web-components-bundle/favorite-menu/index.js +4 -4
- package/web-components-bundle/global-menu/index.js +4 -4
- package/web-components-bundle/global-topbar/index.js +4 -4
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/index-Bk42Mf7H.js +3206 -0
- package/web-components-bundle/{index-BtUzqnTK.js → index-Bu7DHdEJ.js} +18 -16
- package/web-components-bundle/{index-B9QTeqBB.js → index-CDpevgH4.js} +4269 -4254
- package/web-components-bundle/{index-CAmMT_XN.js → index-CHcaOev7.js} +24 -25
- package/web-components-bundle/page-not-found/index.js +4 -2
- package/web-components-bundle/useTranslation-Xt9Mgi4Q.js +337 -0
- package/web-components-bundle/index-DSTem_oO.js +0 -3528
- package/web-components-bundle/index.css +0 -1
- package/web-components-bundle/index2.css +0 -1
|
@@ -2,7 +2,22 @@ import { e as pt, r as d, j as _, d as ce, a as J, s as pa } from "./react-to-we
|
|
|
2
2
|
import { _ as w, q as ha } from "./SaasThemeProvider-8W2MaSUF.js";
|
|
3
3
|
import { c as q } from "./clsx-DB4S2d7J.js";
|
|
4
4
|
import { a as ma, _ as ga } from "./setPrototypeOf-CP0c5ut2.js";
|
|
5
|
-
|
|
5
|
+
function V(e, t) {
|
|
6
|
+
if (e == null)
|
|
7
|
+
return {};
|
|
8
|
+
var r = {};
|
|
9
|
+
for (var n in e)
|
|
10
|
+
if ({}.hasOwnProperty.call(e, n)) {
|
|
11
|
+
if (t.indexOf(n) !== -1)
|
|
12
|
+
continue;
|
|
13
|
+
r[n] = e[n];
|
|
14
|
+
}
|
|
15
|
+
return r;
|
|
16
|
+
}
|
|
17
|
+
const ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
default: V
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = {
|
|
6
21
|
primary: "#93D500",
|
|
7
22
|
primary100: "#F0F6E1",
|
|
8
23
|
primary200: "#E5F5ED",
|
|
@@ -73,7 +88,7 @@ const Ce = {
|
|
|
73
88
|
500: "#ff9800",
|
|
74
89
|
700: "#f57c00",
|
|
75
90
|
900: "#e65100"
|
|
76
|
-
},
|
|
91
|
+
}, ba = {
|
|
77
92
|
50: "#fafafa",
|
|
78
93
|
100: "#f5f5f5",
|
|
79
94
|
200: "#eeeeee",
|
|
@@ -95,26 +110,10 @@ function Ke(e) {
|
|
|
95
110
|
t += "&args[]=" + encodeURIComponent(arguments[r]);
|
|
96
111
|
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
|
|
97
112
|
}
|
|
98
|
-
const
|
|
113
|
+
const va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
99
114
|
__proto__: null,
|
|
100
115
|
default: Ke
|
|
101
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
102
|
-
function V(e, t) {
|
|
103
|
-
if (e == null)
|
|
104
|
-
return {};
|
|
105
|
-
var r = {};
|
|
106
|
-
for (var n in e)
|
|
107
|
-
if ({}.hasOwnProperty.call(e, n)) {
|
|
108
|
-
if (t.indexOf(n) !== -1)
|
|
109
|
-
continue;
|
|
110
|
-
r[n] = e[n];
|
|
111
|
-
}
|
|
112
|
-
return r;
|
|
113
|
-
}
|
|
114
|
-
const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
115
|
-
__proto__: null,
|
|
116
|
-
default: V
|
|
117
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
116
|
+
}, Symbol.toStringTag, { value: "Module" })), xa = "$$material";
|
|
118
117
|
function Sa(e) {
|
|
119
118
|
if (e.sheet)
|
|
120
119
|
return e.sheet;
|
|
@@ -2747,7 +2746,7 @@ var L = {}, Po = { exports: {} };
|
|
|
2747
2746
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
2748
2747
|
})(Po);
|
|
2749
2748
|
var Ur = Po.exports;
|
|
2750
|
-
const pl = /* @__PURE__ */ ce(
|
|
2749
|
+
const pl = /* @__PURE__ */ ce(va), hl = /* @__PURE__ */ ce(Fs);
|
|
2751
2750
|
var Ro = Ur;
|
|
2752
2751
|
Object.defineProperty(L, "__esModule", {
|
|
2753
2752
|
value: !0
|
|
@@ -3114,7 +3113,7 @@ function Fl(e) {
|
|
|
3114
3113
|
name: "success"
|
|
3115
3114
|
}),
|
|
3116
3115
|
// The grey colors.
|
|
3117
|
-
grey:
|
|
3116
|
+
grey: ba,
|
|
3118
3117
|
// Used by `getContrastText()` to maximize the contrast between
|
|
3119
3118
|
// the background and the text.
|
|
3120
3119
|
contrastThreshold: r,
|
|
@@ -3289,7 +3288,7 @@ function Xl(e = {}, ...t) {
|
|
|
3289
3288
|
}
|
|
3290
3289
|
const Jl = Xl();
|
|
3291
3290
|
var tt = {};
|
|
3292
|
-
const Zl = /* @__PURE__ */ ce(ha), Ql = /* @__PURE__ */ ce(
|
|
3291
|
+
const Zl = /* @__PURE__ */ ce(ha), Ql = /* @__PURE__ */ ce(ya), ec = /* @__PURE__ */ ce($i), tc = /* @__PURE__ */ ce(Ti), rc = /* @__PURE__ */ ce(Bi), nc = /* @__PURE__ */ ce(As), oc = /* @__PURE__ */ ce(ws), ac = /* @__PURE__ */ ce(Rs);
|
|
3293
3292
|
var Fe = Ur;
|
|
3294
3293
|
Object.defineProperty(tt, "__esModule", {
|
|
3295
3294
|
value: !0
|
|
@@ -3459,7 +3458,7 @@ function xc(e) {
|
|
|
3459
3458
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
3460
3459
|
}
|
|
3461
3460
|
const Sc = (e) => xc(e) && e !== "classes", ge = ic({
|
|
3462
|
-
themeId:
|
|
3461
|
+
themeId: xa,
|
|
3463
3462
|
defaultTheme: Jl,
|
|
3464
3463
|
rootShouldForwardProp: Sc
|
|
3465
3464
|
});
|
|
@@ -5152,7 +5151,7 @@ export {
|
|
|
5152
5151
|
ho as a,
|
|
5153
5152
|
Ut as b,
|
|
5154
5153
|
Ce as c,
|
|
5155
|
-
|
|
5154
|
+
xa as d,
|
|
5156
5155
|
mo as e,
|
|
5157
5156
|
Jl as f,
|
|
5158
5157
|
$c as g,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('._page-container_1pwo1_1{padding-top:16px;background-color:#fafafa;width:100%;height:800px}._page-main-content_1pwo1_8{padding:16px 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:23px;margin-left:auto;margin-right:auto}._page-title_1pwo1_19{font-weight:500;font-size:20px;line-height:26px;text-align:center}._text-base_1pwo1_26{font-size:14px;line-height:18px;color:#85858a;text-align:center}._mt-4_1pwo1_33{margin-top:1rem}:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.daterangepicker{position:absolute;color:inherit;background-color:#fff;border-radius:4px;border:1px solid #ddd;width:278px;max-width:none;padding:0;margin-top:7px;top:100px;left:20px;z-index:3001;display:none;font-family:arial;font-size:15px;line-height:1em}.daterangepicker:before,.daterangepicker:after{position:absolute;display:inline-block;border-bottom-color:#0003;content:""}.daterangepicker:before{top:-7px;border-right:7px solid transparent;border-left:7px solid transparent;border-bottom:7px solid #ccc}.daterangepicker:after{top:-6px;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent}.daterangepicker.opensleft:before{right:9px}.daterangepicker.opensleft:after{right:10px}.daterangepicker.openscenter:before{left:0;right:0;width:0;margin-left:auto;margin-right:auto}.daterangepicker.openscenter:after{left:0;right:0;width:0;margin-left:auto;margin-right:auto}.daterangepicker.opensright:before{left:9px}.daterangepicker.opensright:after{left:10px}.daterangepicker.drop-up{margin-top:-7px}.daterangepicker.drop-up:before{top:initial;bottom:-7px;border-bottom:initial;border-top:7px solid #ccc}.daterangepicker.drop-up:after{top:initial;bottom:-6px;border-bottom:initial;border-top:6px solid #fff}.daterangepicker.single .daterangepicker .ranges,.daterangepicker.single .drp-calendar{float:none}.daterangepicker.single .drp-selected{display:none}.daterangepicker.show-calendar .drp-calendar,.daterangepicker.show-calendar .drp-buttons{display:block}.daterangepicker.auto-apply .drp-buttons{display:none}.daterangepicker .drp-calendar{display:none;max-width:270px}.daterangepicker .drp-calendar.left{padding:8px 0 8px 8px}.daterangepicker .drp-calendar.right{padding:8px}.daterangepicker .drp-calendar.single .calendar-table{border:none}.daterangepicker .calendar-table .next span,.daterangepicker .calendar-table .prev span{color:#fff;border:solid black;border-width:0 2px 2px 0;border-radius:0;display:inline-block;padding:3px}.daterangepicker .calendar-table .next span{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.daterangepicker .calendar-table .prev span{transform:rotate(135deg);-webkit-transform:rotate(135deg)}.daterangepicker .calendar-table th,.daterangepicker .calendar-table td{text-align:center;vertical-align:middle;min-width:32px;width:32px;height:24px;line-height:24px;font-size:12px;border-radius:4px;border:1px solid transparent;white-space:nowrap;cursor:pointer}.daterangepicker .calendar-table{border:1px solid #fff;border-radius:4px;background-color:#fff}.daterangepicker .calendar-table table{width:100%;margin:0;border-spacing:0;border-collapse:collapse}.daterangepicker td.available:hover,.daterangepicker th.available:hover{background-color:#eee;border-color:transparent;color:inherit}.daterangepicker td.week,.daterangepicker th.week{font-size:80%;color:#ccc}.daterangepicker td.off,.daterangepicker td.off.in-range,.daterangepicker td.off.start-date,.daterangepicker td.off.end-date{background-color:#fff;border-color:transparent;color:#999}.daterangepicker td.in-range{background-color:#ebf4f8;border-color:transparent;color:#000;border-radius:0}.daterangepicker td.start-date{border-radius:4px 0 0 4px}.daterangepicker td.end-date{border-radius:0 4px 4px 0}.daterangepicker td.start-date.end-date{border-radius:4px}.daterangepicker td.active,.daterangepicker td.active:hover{background-color:#357ebd;border-color:transparent;color:#fff}.daterangepicker th.month{width:auto}.daterangepicker td.disabled,.daterangepicker option.disabled{color:#999;cursor:not-allowed;text-decoration:line-through}.daterangepicker select.monthselect,.daterangepicker select.yearselect{font-size:12px;padding:1px;height:auto;margin:0;cursor:default}.daterangepicker select.monthselect{margin-right:2%;width:56%}.daterangepicker select.yearselect{width:40%}.daterangepicker select.hourselect,.daterangepicker select.minuteselect,.daterangepicker select.secondselect,.daterangepicker select.ampmselect{width:50px;margin:0 auto;background:#eee;border:1px solid #eee;padding:2px;outline:0;font-size:12px}.daterangepicker .calendar-time{text-align:center;margin:4px auto 0;line-height:30px;position:relative}.daterangepicker .calendar-time select.disabled{color:#ccc;cursor:not-allowed}.daterangepicker .drp-buttons{clear:both;text-align:right;padding:8px;border-top:1px solid #ddd;display:none;line-height:12px;vertical-align:middle}.daterangepicker .drp-selected{display:inline-block;font-size:12px;padding-right:8px}.daterangepicker .drp-buttons .btn{margin-left:8px;font-size:12px;font-weight:700;padding:4px 8px}.daterangepicker.show-ranges.single.rtl .drp-calendar.left{border-right:1px solid #ddd}.daterangepicker.show-ranges.single.ltr .drp-calendar.left{border-left:1px solid #ddd}.daterangepicker.show-ranges.rtl .drp-calendar.right{border-right:1px solid #ddd}.daterangepicker.show-ranges.ltr .drp-calendar.left{border-left:1px solid #ddd}.daterangepicker .ranges{float:none;text-align:left;margin:0}.daterangepicker.show-calendar .ranges{margin-top:8px}.daterangepicker .ranges ul{list-style:none;margin:0 auto;padding:0;width:100%}.daterangepicker .ranges li{font-size:12px;padding:8px 12px;cursor:pointer}.daterangepicker .ranges li:hover{background-color:#eee}.daterangepicker .ranges li.active{background-color:#08c;color:#fff}@media (min-width: 564px){.daterangepicker{width:auto}.daterangepicker .ranges ul{width:140px}.daterangepicker.single .ranges ul{width:100%}.daterangepicker.single .drp-calendar.left{clear:none}.daterangepicker.single .ranges,.daterangepicker.single .drp-calendar{float:left}.daterangepicker{direction:ltr;text-align:left}.daterangepicker .drp-calendar.left{clear:left;margin-right:0}.daterangepicker .drp-calendar.left .calendar-table{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.daterangepicker .drp-calendar.right{margin-left:0}.daterangepicker .drp-calendar.right .calendar-table{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.daterangepicker .drp-calendar.left .calendar-table{padding-right:8px}.daterangepicker .ranges,.daterangepicker .drp-calendar{float:left}}@media (min-width: 730px){.daterangepicker .ranges{width:auto;float:left}.daterangepicker.rtl .ranges{float:right}.daterangepicker .drp-calendar.left{clear:none!important}}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
1
2
|
import "../react-to-web-component-CXwKHjZr.js";
|
|
2
|
-
import { P as
|
|
3
|
+
import { P as i } from "../index-Bu7DHdEJ.js";
|
|
3
4
|
import "../SaasThemeProvider-8W2MaSUF.js";
|
|
5
|
+
import "../useTranslation-Xt9Mgi4Q.js";
|
|
4
6
|
export {
|
|
5
|
-
|
|
7
|
+
i as PageNotFound
|
|
6
8
|
};
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { r as d } from "./react-to-web-component-CXwKHjZr.js";
|
|
2
|
+
function h(n) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
+
return typeof e;
|
|
6
|
+
} : function(e) {
|
|
7
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
+
}, h(n);
|
|
9
|
+
}
|
|
10
|
+
function $(n, e) {
|
|
11
|
+
if (!(n instanceof e))
|
|
12
|
+
throw new TypeError("Cannot call a class as a function");
|
|
13
|
+
}
|
|
14
|
+
function q(n, e) {
|
|
15
|
+
if (h(n) != "object" || !n)
|
|
16
|
+
return n;
|
|
17
|
+
var t = n[Symbol.toPrimitive];
|
|
18
|
+
if (t !== void 0) {
|
|
19
|
+
var r = t.call(n, e);
|
|
20
|
+
if (h(r) != "object")
|
|
21
|
+
return r;
|
|
22
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
23
|
+
}
|
|
24
|
+
return (e === "string" ? String : Number)(n);
|
|
25
|
+
}
|
|
26
|
+
function R(n) {
|
|
27
|
+
var e = q(n, "string");
|
|
28
|
+
return h(e) == "symbol" ? e : e + "";
|
|
29
|
+
}
|
|
30
|
+
function A(n, e) {
|
|
31
|
+
for (var t = 0; t < e.length; t++) {
|
|
32
|
+
var r = e[t];
|
|
33
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, R(r.key), r);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function J(n, e, t) {
|
|
37
|
+
return e && A(n.prototype, e), t && A(n, t), Object.defineProperty(n, "prototype", {
|
|
38
|
+
writable: !1
|
|
39
|
+
}), n;
|
|
40
|
+
}
|
|
41
|
+
function B(n, e, t) {
|
|
42
|
+
return (e = R(e)) in n ? Object.defineProperty(n, e, {
|
|
43
|
+
value: t,
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
configurable: !0,
|
|
46
|
+
writable: !0
|
|
47
|
+
}) : n[e] = t, n;
|
|
48
|
+
}
|
|
49
|
+
function Y(n) {
|
|
50
|
+
if (Array.isArray(n))
|
|
51
|
+
return n;
|
|
52
|
+
}
|
|
53
|
+
function k(n, e) {
|
|
54
|
+
(e == null || e > n.length) && (e = n.length);
|
|
55
|
+
for (var t = 0, r = Array(e); t < e; t++)
|
|
56
|
+
r[t] = n[t];
|
|
57
|
+
return r;
|
|
58
|
+
}
|
|
59
|
+
function G(n, e) {
|
|
60
|
+
if (n) {
|
|
61
|
+
if (typeof n == "string")
|
|
62
|
+
return k(n, e);
|
|
63
|
+
var t = {}.toString.call(n).slice(8, -1);
|
|
64
|
+
return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? k(n, e) : void 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function Q() {
|
|
68
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
70
|
+
}
|
|
71
|
+
function X() {
|
|
72
|
+
if (console && console.warn) {
|
|
73
|
+
for (var n, e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
74
|
+
t[r] = arguments[r];
|
|
75
|
+
typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (n = console).warn.apply(n, t);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
var _ = {};
|
|
79
|
+
function N() {
|
|
80
|
+
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
81
|
+
e[t] = arguments[t];
|
|
82
|
+
typeof e[0] == "string" && _[e[0]] || (typeof e[0] == "string" && (_[e[0]] = /* @__PURE__ */ new Date()), X.apply(void 0, e));
|
|
83
|
+
}
|
|
84
|
+
var K = function(e, t) {
|
|
85
|
+
return function() {
|
|
86
|
+
if (e.isInitialized)
|
|
87
|
+
t();
|
|
88
|
+
else {
|
|
89
|
+
var r = function o() {
|
|
90
|
+
setTimeout(function() {
|
|
91
|
+
e.off("initialized", o);
|
|
92
|
+
}, 0), t();
|
|
93
|
+
};
|
|
94
|
+
e.on("initialized", r);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
function F(n, e, t) {
|
|
99
|
+
n.loadNamespaces(e, K(n, t));
|
|
100
|
+
}
|
|
101
|
+
function H(n, e, t, r) {
|
|
102
|
+
typeof t == "string" && (t = [t]), t.forEach(function(o) {
|
|
103
|
+
n.options.ns.indexOf(o) < 0 && n.options.ns.push(o);
|
|
104
|
+
}), n.loadLanguages(e, K(n, r));
|
|
105
|
+
}
|
|
106
|
+
function Z(n, e) {
|
|
107
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = e.languages[0], o = e.options ? e.options.fallbackLng : !1, c = e.languages[e.languages.length - 1];
|
|
108
|
+
if (r.toLowerCase() === "cimode")
|
|
109
|
+
return !0;
|
|
110
|
+
var a = function(f, u) {
|
|
111
|
+
var m = e.services.backendConnector.state["".concat(f, "|").concat(u)];
|
|
112
|
+
return m === -1 || m === 2;
|
|
113
|
+
};
|
|
114
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !a(e.isLanguageChangingTo, n) ? !1 : !!(e.hasResourceBundle(r, n) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || a(r, n) && (!o || a(c, n)));
|
|
115
|
+
}
|
|
116
|
+
function V(n, e) {
|
|
117
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
118
|
+
if (!e.languages || !e.languages.length)
|
|
119
|
+
return N("i18n.languages were undefined or empty", e.languages), !0;
|
|
120
|
+
var r = e.options.ignoreJSONStructure !== void 0;
|
|
121
|
+
return r ? e.hasLoadedNamespace(n, {
|
|
122
|
+
lng: t.lng,
|
|
123
|
+
precheck: function(c, a) {
|
|
124
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && c.services.backendConnector.backend && c.isLanguageChangingTo && !a(c.isLanguageChangingTo, n))
|
|
125
|
+
return !1;
|
|
126
|
+
}
|
|
127
|
+
}) : Z(n, e, t);
|
|
128
|
+
}
|
|
129
|
+
var ee = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ne = {
|
|
130
|
+
"&": "&",
|
|
131
|
+
"&": "&",
|
|
132
|
+
"<": "<",
|
|
133
|
+
"<": "<",
|
|
134
|
+
">": ">",
|
|
135
|
+
">": ">",
|
|
136
|
+
"'": "'",
|
|
137
|
+
"'": "'",
|
|
138
|
+
""": '"',
|
|
139
|
+
""": '"',
|
|
140
|
+
" ": " ",
|
|
141
|
+
" ": " ",
|
|
142
|
+
"©": "©",
|
|
143
|
+
"©": "©",
|
|
144
|
+
"®": "®",
|
|
145
|
+
"®": "®",
|
|
146
|
+
"…": "…",
|
|
147
|
+
"…": "…",
|
|
148
|
+
"/": "/",
|
|
149
|
+
"/": "/"
|
|
150
|
+
}, te = function(e) {
|
|
151
|
+
return ne[e];
|
|
152
|
+
}, re = function(e) {
|
|
153
|
+
return e.replace(ee, te);
|
|
154
|
+
};
|
|
155
|
+
function U(n, e) {
|
|
156
|
+
var t = Object.keys(n);
|
|
157
|
+
if (Object.getOwnPropertySymbols) {
|
|
158
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
159
|
+
e && (r = r.filter(function(o) {
|
|
160
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
161
|
+
})), t.push.apply(t, r);
|
|
162
|
+
}
|
|
163
|
+
return t;
|
|
164
|
+
}
|
|
165
|
+
function z(n) {
|
|
166
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
167
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
168
|
+
e % 2 ? U(Object(t), !0).forEach(function(r) {
|
|
169
|
+
B(n, r, t[r]);
|
|
170
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : U(Object(t)).forEach(function(r) {
|
|
171
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return n;
|
|
175
|
+
}
|
|
176
|
+
var I = {
|
|
177
|
+
bindI18n: "languageChanged",
|
|
178
|
+
bindI18nStore: "",
|
|
179
|
+
transEmptyNodeValue: "",
|
|
180
|
+
transSupportBasicHtmlNodes: !0,
|
|
181
|
+
transWrapTextNodes: "",
|
|
182
|
+
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
183
|
+
useSuspense: !0,
|
|
184
|
+
unescape: re
|
|
185
|
+
};
|
|
186
|
+
function pe() {
|
|
187
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
188
|
+
I = z(z({}, I), n);
|
|
189
|
+
}
|
|
190
|
+
function ae() {
|
|
191
|
+
return I;
|
|
192
|
+
}
|
|
193
|
+
var M;
|
|
194
|
+
function de(n) {
|
|
195
|
+
M = n;
|
|
196
|
+
}
|
|
197
|
+
function oe() {
|
|
198
|
+
return M;
|
|
199
|
+
}
|
|
200
|
+
var ie = d.createContext(), ue = function() {
|
|
201
|
+
function n() {
|
|
202
|
+
$(this, n), this.usedNamespaces = {};
|
|
203
|
+
}
|
|
204
|
+
return J(n, [{
|
|
205
|
+
key: "addUsedNamespaces",
|
|
206
|
+
value: function(t) {
|
|
207
|
+
var r = this;
|
|
208
|
+
t.forEach(function(o) {
|
|
209
|
+
r.usedNamespaces[o] || (r.usedNamespaces[o] = !0);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}, {
|
|
213
|
+
key: "getUsedNamespaces",
|
|
214
|
+
value: function() {
|
|
215
|
+
return Object.keys(this.usedNamespaces);
|
|
216
|
+
}
|
|
217
|
+
}]), n;
|
|
218
|
+
}();
|
|
219
|
+
function se(n, e) {
|
|
220
|
+
var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
221
|
+
if (t != null) {
|
|
222
|
+
var r, o, c, a, g = [], f = !0, u = !1;
|
|
223
|
+
try {
|
|
224
|
+
if (c = (t = t.call(n)).next, e !== 0)
|
|
225
|
+
for (; !(f = (r = c.call(t)).done) && (g.push(r.value), g.length !== e); f = !0)
|
|
226
|
+
;
|
|
227
|
+
} catch (m) {
|
|
228
|
+
u = !0, o = m;
|
|
229
|
+
} finally {
|
|
230
|
+
try {
|
|
231
|
+
if (!f && t.return != null && (a = t.return(), Object(a) !== a))
|
|
232
|
+
return;
|
|
233
|
+
} finally {
|
|
234
|
+
if (u)
|
|
235
|
+
throw o;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return g;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function ce(n, e) {
|
|
242
|
+
return Y(n) || se(n, e) || G(n, e) || Q();
|
|
243
|
+
}
|
|
244
|
+
function D(n, e) {
|
|
245
|
+
var t = Object.keys(n);
|
|
246
|
+
if (Object.getOwnPropertySymbols) {
|
|
247
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
248
|
+
e && (r = r.filter(function(o) {
|
|
249
|
+
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
250
|
+
})), t.push.apply(t, r);
|
|
251
|
+
}
|
|
252
|
+
return t;
|
|
253
|
+
}
|
|
254
|
+
function j(n) {
|
|
255
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
256
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
257
|
+
e % 2 ? D(Object(t), !0).forEach(function(r) {
|
|
258
|
+
B(n, r, t[r]);
|
|
259
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : D(Object(t)).forEach(function(r) {
|
|
260
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
return n;
|
|
264
|
+
}
|
|
265
|
+
var fe = function(e, t) {
|
|
266
|
+
var r = d.useRef();
|
|
267
|
+
return d.useEffect(function() {
|
|
268
|
+
r.current = e;
|
|
269
|
+
}, [e, t]), r.current;
|
|
270
|
+
};
|
|
271
|
+
function ge(n) {
|
|
272
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, r = d.useContext(ie) || {}, o = r.i18n, c = r.defaultNS, a = t || o || oe();
|
|
273
|
+
if (a && !a.reportNamespaces && (a.reportNamespaces = new ue()), !a) {
|
|
274
|
+
N("You will need to pass in an i18next instance by using initReactI18next");
|
|
275
|
+
var g = function(p, s) {
|
|
276
|
+
return typeof s == "string" ? s : s && h(s) === "object" && typeof s.defaultValue == "string" ? s.defaultValue : Array.isArray(p) ? p[p.length - 1] : p;
|
|
277
|
+
}, f = [g, {}, !1];
|
|
278
|
+
return f.t = g, f.i18n = {}, f.ready = !1, f;
|
|
279
|
+
}
|
|
280
|
+
a.options.react && a.options.react.wait !== void 0 && N("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
281
|
+
var u = j(j(j({}, ae()), a.options.react), e), m = u.useSuspense, C = u.keyPrefix, i = c || a.options && a.options.defaultNS;
|
|
282
|
+
i = typeof i == "string" ? [i] : i || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(i);
|
|
283
|
+
var b = (a.isInitialized || a.initializedStoreOnce) && i.every(function(l) {
|
|
284
|
+
return V(l, a, u);
|
|
285
|
+
});
|
|
286
|
+
function v() {
|
|
287
|
+
return a.getFixedT(e.lng || null, u.nsMode === "fallback" ? i : i[0], C);
|
|
288
|
+
}
|
|
289
|
+
var W = d.useState(v), x = ce(W, 2), E = x[0], O = x[1], w = i.join();
|
|
290
|
+
e.lng && (w = "".concat(e.lng).concat(w));
|
|
291
|
+
var T = fe(w), y = d.useRef(!0);
|
|
292
|
+
d.useEffect(function() {
|
|
293
|
+
var l = u.bindI18n, p = u.bindI18nStore;
|
|
294
|
+
y.current = !0, !b && !m && (e.lng ? H(a, e.lng, i, function() {
|
|
295
|
+
y.current && O(v);
|
|
296
|
+
}) : F(a, i, function() {
|
|
297
|
+
y.current && O(v);
|
|
298
|
+
})), b && T && T !== w && y.current && O(v);
|
|
299
|
+
function s() {
|
|
300
|
+
y.current && O(v);
|
|
301
|
+
}
|
|
302
|
+
return l && a && a.on(l, s), p && a && a.store.on(p, s), function() {
|
|
303
|
+
y.current = !1, l && a && l.split(" ").forEach(function(P) {
|
|
304
|
+
return a.off(P, s);
|
|
305
|
+
}), p && a && p.split(" ").forEach(function(P) {
|
|
306
|
+
return a.store.off(P, s);
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
}, [a, w]);
|
|
310
|
+
var L = d.useRef(!0);
|
|
311
|
+
d.useEffect(function() {
|
|
312
|
+
y.current && !L.current && O(v), L.current = !1;
|
|
313
|
+
}, [a, C]);
|
|
314
|
+
var S = [E, a, b];
|
|
315
|
+
if (S.t = E, S.i18n = a, S.ready = b, b || !b && !m)
|
|
316
|
+
return S;
|
|
317
|
+
throw new Promise(function(l) {
|
|
318
|
+
e.lng ? H(a, e.lng, i, function() {
|
|
319
|
+
return l();
|
|
320
|
+
}) : F(a, i, function() {
|
|
321
|
+
return l();
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
export {
|
|
326
|
+
ie as I,
|
|
327
|
+
h as _,
|
|
328
|
+
Y as a,
|
|
329
|
+
G as b,
|
|
330
|
+
Q as c,
|
|
331
|
+
J as d,
|
|
332
|
+
B as e,
|
|
333
|
+
$ as f,
|
|
334
|
+
de as g,
|
|
335
|
+
pe as s,
|
|
336
|
+
ge as u
|
|
337
|
+
};
|