@hiver/connector-admin 0.0.10-beta.29 → 0.0.10-beta.30
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/{hooks-DpcVYJXR.js → hooks-ifkdv1ol.js} +1 -1
- package/{index-Du4S5Yfo.js → index-B9g6rlBA.js} +4 -4
- package/{index-BFXKDv3m.js → index-BjaVn1Co.js} +123 -123
- package/{index-Dao6ezy3.js → index-BnpcGmOR.js} +3 -3
- package/{index-D_r_Y_Wk.js → index-BxLkVcij.js} +2 -2
- package/{index-DbemKBA2.js → index-CL0sq41h.js} +1 -1
- package/{index-5M_E1pZV.js → index-COXinNcD.js} +4 -4
- package/{index-BKhb3wFl.js → index-D-USZBk6.js} +1 -1
- package/{index-BWOd9jTI.js → index-DZlhP0UN.js} +7 -7
- package/index.es.js +1 -1
- package/index.umd.js +144 -144
- package/package.json +1 -1
- package/{showMessage-Bg-woyGL.js → showMessage-Dp8_L6W6.js} +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as $A, j as I, e as g0, f as M2, g as r2, h as Q0, _ as w, i as a2, k as s2, s as r, l as u, m as c2, n as UA, o as AA, P as g, p as i2, q as R, r as z2, t as k2, v as B0, w as L2, x as FA, y as b2, z as VA, I as j2, A as q2, D as I0, E as X2, F as E0, G as e0, H as o0, J as K, u as t0, K as r0, L as n0, N as U2, Q as a0, R as s0, U as c0, V as i0, W as m2, T as b, X as l2, b as k, B as iA, Y as xA, Z as l0, $ as d0, a0 as f0, a1 as D0, a2 as w0 } from "./index-
|
|
1
|
+
import { d as $A, j as I, e as g0, f as M2, g as r2, h as Q0, _ as w, i as a2, k as s2, s as r, l as u, m as c2, n as UA, o as AA, P as g, p as i2, q as R, r as z2, t as k2, v as B0, w as L2, x as FA, y as b2, z as VA, I as j2, A as q2, D as I0, E as X2, F as E0, G as e0, H as o0, J as K, u as t0, K as r0, L as n0, N as U2, Q as a0, R as s0, U as c0, V as i0, W as m2, T as b, X as l2, b as k, B as iA, Y as xA, Z as l0, $ as d0, a0 as f0, a1 as D0, a2 as w0 } from "./index-DZlhP0UN.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { useEffect as WA, useState as uA } from "react";
|
|
4
|
-
import { S as u0, E as p0, a as v0, R as R2, C as M0, b as L0, c as P0, d as F0, T as U0, e as x0, f as H0, g as h0, h as O0, i as Y0, j as k0, k as b0, l as X0, m as m0, M as N0, n as N2 } from "./index-
|
|
5
|
-
import { u as x2, a as rA } from "./hooks-
|
|
6
|
-
import { P as Z2, C as P2, s as S2, a as G0, b as T0, c as W2, d as y0, e as V0, E as K0 } from "./showMessage-
|
|
4
|
+
import { S as u0, E as p0, a as v0, R as R2, C as M0, b as L0, c as P0, d as F0, T as U0, e as x0, f as H0, g as h0, h as O0, i as Y0, j as k0, k as b0, l as X0, m as m0, M as N0, n as N2 } from "./index-BjaVn1Co.js";
|
|
5
|
+
import { u as x2, a as rA } from "./hooks-ifkdv1ol.js";
|
|
6
|
+
import { P as Z2, C as P2, s as S2, a as G0, b as T0, c as W2, d as y0, e as V0, E as K0 } from "./showMessage-Dp8_L6W6.js";
|
|
7
7
|
const J0 = (A) => {
|
|
8
8
|
const C = v.useRef({});
|
|
9
9
|
return v.useEffect(() => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as K, k as Z, s as l, t as he, _ as p, G as ge, n as J, f as me, af as be, j as a, o as M, P as o, H as se, l as m, p as ee, ag as xe, ah as fe, A as ie, m as re, ai as Ce, e as we, aj as Ee, q as ae, ak as ke, al as ye, B as H, J as G, T as q, b as f, Y as oe, I as ce, u as Te, N as Le, am as ve, W as O } from "./index-DZlhP0UN.js";
|
|
2
2
|
import * as j from "react";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { a as
|
|
5
|
-
import { T as Y, i as
|
|
6
|
-
function
|
|
7
|
-
return
|
|
3
|
+
import { useState as Se } from "react";
|
|
4
|
+
import { a as _e, u as Re } from "./hooks-ifkdv1ol.js";
|
|
5
|
+
import { T as Y, i as Ne, e as ne, j as De, I as Oe, k as je, E as Be } from "./showMessage-Dp8_L6W6.js";
|
|
6
|
+
function Pe(e) {
|
|
7
|
+
return K("PrivateSwitchBase", e);
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
const
|
|
9
|
+
Z("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
10
|
+
const Ae = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], Ie = (e) => {
|
|
11
11
|
const {
|
|
12
12
|
classes: t,
|
|
13
13
|
checked: s,
|
|
@@ -17,8 +17,8 @@ const Pe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
17
17
|
root: ["root", s && "checked", i && "disabled", c && `edge${m(c)}`],
|
|
18
18
|
input: ["input"]
|
|
19
19
|
};
|
|
20
|
-
return ee(r,
|
|
21
|
-
}, $e = l(
|
|
20
|
+
return ee(r, Pe, t);
|
|
21
|
+
}, $e = l(he)(({
|
|
22
22
|
ownerState: e
|
|
23
23
|
}) => p({
|
|
24
24
|
padding: 9,
|
|
@@ -27,8 +27,8 @@ const Pe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
27
27
|
marginLeft: e.size === "small" ? -3 : -12
|
|
28
28
|
}, e.edge === "end" && {
|
|
29
29
|
marginRight: e.size === "small" ? -3 : -12
|
|
30
|
-
})),
|
|
31
|
-
shouldForwardProp:
|
|
30
|
+
})), We = l("input", {
|
|
31
|
+
shouldForwardProp: ge
|
|
32
32
|
})({
|
|
33
33
|
cursor: "inherit",
|
|
34
34
|
position: "absolute",
|
|
@@ -40,7 +40,7 @@ const Pe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
40
40
|
margin: 0,
|
|
41
41
|
padding: 0,
|
|
42
42
|
zIndex: 1
|
|
43
|
-
}),
|
|
43
|
+
}), le = /* @__PURE__ */ j.forwardRef(function(t, s) {
|
|
44
44
|
const {
|
|
45
45
|
autoFocus: i,
|
|
46
46
|
checked: c,
|
|
@@ -63,14 +63,14 @@ const Pe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
63
63
|
tabIndex: h,
|
|
64
64
|
type: D,
|
|
65
65
|
value: U
|
|
66
|
-
} = t, F = J(t,
|
|
66
|
+
} = t, F = J(t, Ae), [z, V] = me({
|
|
67
67
|
controlled: c,
|
|
68
68
|
default: !!C,
|
|
69
69
|
name: "SwitchBase",
|
|
70
70
|
state: "checked"
|
|
71
|
-
}), g =
|
|
71
|
+
}), g = be(), A = (T) => {
|
|
72
72
|
L && L(T), g && g.onFocus && g.onFocus(T);
|
|
73
|
-
},
|
|
73
|
+
}, I = (T) => {
|
|
74
74
|
_ && _(T), g && g.onBlur && g.onBlur(T);
|
|
75
75
|
}, Q = (T) => {
|
|
76
76
|
if (T.nativeEvent.defaultPrevented)
|
|
@@ -80,12 +80,12 @@ const Pe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
80
80
|
};
|
|
81
81
|
let N = E;
|
|
82
82
|
g && typeof N > "u" && (N = g.disabled);
|
|
83
|
-
const
|
|
83
|
+
const $ = D === "checkbox" || D === "radio", W = p({}, t, {
|
|
84
84
|
checked: z,
|
|
85
85
|
disabled: N,
|
|
86
86
|
disableFocusRipple: w,
|
|
87
87
|
edge: x
|
|
88
|
-
}), y =
|
|
88
|
+
}), y = Ie(W);
|
|
89
89
|
return /* @__PURE__ */ a.jsxs($e, p({
|
|
90
90
|
component: "span",
|
|
91
91
|
className: M(y.root, u),
|
|
@@ -95,17 +95,17 @@ const Pe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
95
95
|
tabIndex: null,
|
|
96
96
|
role: void 0,
|
|
97
97
|
onFocus: A,
|
|
98
|
-
onBlur:
|
|
98
|
+
onBlur: I,
|
|
99
99
|
ownerState: W,
|
|
100
100
|
ref: s
|
|
101
101
|
}, F, {
|
|
102
|
-
children: [/* @__PURE__ */ a.jsx(
|
|
102
|
+
children: [/* @__PURE__ */ a.jsx(We, p({
|
|
103
103
|
autoFocus: i,
|
|
104
104
|
checked: c,
|
|
105
105
|
defaultChecked: C,
|
|
106
106
|
className: y.input,
|
|
107
107
|
disabled: N,
|
|
108
|
-
id:
|
|
108
|
+
id: $ ? k : void 0,
|
|
109
109
|
name: P,
|
|
110
110
|
onChange: Q,
|
|
111
111
|
readOnly: v,
|
|
@@ -119,7 +119,7 @@ const Pe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
119
119
|
}, S)), z ? r : b]
|
|
120
120
|
}));
|
|
121
121
|
});
|
|
122
|
-
process.env.NODE_ENV !== "production" && (
|
|
122
|
+
process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
123
123
|
/**
|
|
124
124
|
* If `true`, the `input` element is focused during the first mount.
|
|
125
125
|
*/
|
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
|
176
176
|
/**
|
|
177
177
|
* Pass a ref to the `input` element.
|
|
178
178
|
*/
|
|
179
|
-
inputRef:
|
|
179
|
+
inputRef: se,
|
|
180
180
|
/*
|
|
181
181
|
* @ignore
|
|
182
182
|
*/
|
|
@@ -222,19 +222,19 @@ process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
|
222
222
|
*/
|
|
223
223
|
value: o.any
|
|
224
224
|
});
|
|
225
|
-
function
|
|
226
|
-
return
|
|
225
|
+
function Me(e) {
|
|
226
|
+
return K("MuiDialog", e);
|
|
227
227
|
}
|
|
228
|
-
const X =
|
|
229
|
-
process.env.NODE_ENV !== "production" && (
|
|
230
|
-
const
|
|
228
|
+
const X = Z("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), de = /* @__PURE__ */ j.createContext({});
|
|
229
|
+
process.env.NODE_ENV !== "production" && (de.displayName = "DialogContext");
|
|
230
|
+
const Ue = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], Fe = l(xe, {
|
|
231
231
|
name: "MuiDialog",
|
|
232
232
|
slot: "Backdrop",
|
|
233
233
|
overrides: (e, t) => t.backdrop
|
|
234
234
|
})({
|
|
235
235
|
// Improve scrollable dialog support.
|
|
236
236
|
zIndex: -1
|
|
237
|
-
}),
|
|
237
|
+
}), ze = (e) => {
|
|
238
238
|
const {
|
|
239
239
|
classes: t,
|
|
240
240
|
scroll: s,
|
|
@@ -246,8 +246,8 @@ const Me = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
246
246
|
container: ["container", `scroll${m(s)}`],
|
|
247
247
|
paper: ["paper", `paperScroll${m(s)}`, `paperWidth${m(String(i))}`, c && "paperFullWidth", r && "paperFullScreen"]
|
|
248
248
|
};
|
|
249
|
-
return ee(u,
|
|
250
|
-
},
|
|
249
|
+
return ee(u, Me, t);
|
|
250
|
+
}, qe = l(fe, {
|
|
251
251
|
name: "MuiDialog",
|
|
252
252
|
slot: "Root",
|
|
253
253
|
overridesResolver: (e, t) => t.root
|
|
@@ -256,7 +256,7 @@ const Me = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
256
256
|
// Use !important to override the Modal inline-style.
|
|
257
257
|
position: "absolute !important"
|
|
258
258
|
}
|
|
259
|
-
}),
|
|
259
|
+
}), He = l("div", {
|
|
260
260
|
name: "MuiDialog",
|
|
261
261
|
slot: "Container",
|
|
262
262
|
overridesResolver: (e, t) => {
|
|
@@ -289,7 +289,7 @@ const Me = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
289
289
|
height: "100%",
|
|
290
290
|
width: "0"
|
|
291
291
|
}
|
|
292
|
-
})),
|
|
292
|
+
})), Ve = l(ie, {
|
|
293
293
|
name: "MuiDialog",
|
|
294
294
|
slot: "Paper",
|
|
295
295
|
overridesResolver: (e, t) => {
|
|
@@ -348,11 +348,11 @@ const Me = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
348
348
|
margin: 0,
|
|
349
349
|
maxWidth: "100%"
|
|
350
350
|
}
|
|
351
|
-
})),
|
|
352
|
-
const i =
|
|
351
|
+
})), pe = /* @__PURE__ */ j.forwardRef(function(t, s) {
|
|
352
|
+
const i = re({
|
|
353
353
|
props: t,
|
|
354
354
|
name: "MuiDialog"
|
|
355
|
-
}), c =
|
|
355
|
+
}), c = Ce(), r = {
|
|
356
356
|
enter: c.transitions.duration.enteringScreen,
|
|
357
357
|
exit: c.transitions.duration.leavingScreen
|
|
358
358
|
}, {
|
|
@@ -370,30 +370,30 @@ const Me = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
370
370
|
onClick: R,
|
|
371
371
|
onClose: L,
|
|
372
372
|
open: v,
|
|
373
|
-
PaperComponent: n =
|
|
373
|
+
PaperComponent: n = ie,
|
|
374
374
|
PaperProps: h = {},
|
|
375
375
|
scroll: D = "paper",
|
|
376
|
-
TransitionComponent: U =
|
|
376
|
+
TransitionComponent: U = Ee,
|
|
377
377
|
transitionDuration: F = r,
|
|
378
378
|
TransitionProps: z
|
|
379
|
-
} = i, V = J(i,
|
|
379
|
+
} = i, V = J(i, Ue), g = p({}, i, {
|
|
380
380
|
disableEscapeKeyDown: k,
|
|
381
381
|
fullScreen: S,
|
|
382
382
|
fullWidth: B,
|
|
383
383
|
maxWidth: P,
|
|
384
384
|
scroll: D
|
|
385
|
-
}), A =
|
|
386
|
-
|
|
385
|
+
}), A = ze(g), I = j.useRef(), Q = (y) => {
|
|
386
|
+
I.current = y.target === y.currentTarget;
|
|
387
387
|
}, N = (y) => {
|
|
388
|
-
R && R(y),
|
|
389
|
-
},
|
|
390
|
-
titleId:
|
|
391
|
-
}), [
|
|
392
|
-
return /* @__PURE__ */ a.jsx(
|
|
388
|
+
R && R(y), I.current && (I.current = null, _ && _(y), L && L(y, "backdropClick"));
|
|
389
|
+
}, $ = we(C), W = j.useMemo(() => ({
|
|
390
|
+
titleId: $
|
|
391
|
+
}), [$]);
|
|
392
|
+
return /* @__PURE__ */ a.jsx(qe, p({
|
|
393
393
|
className: M(A.root, b),
|
|
394
394
|
closeAfterTransition: !0,
|
|
395
395
|
components: {
|
|
396
|
-
Backdrop:
|
|
396
|
+
Backdrop: Fe
|
|
397
397
|
},
|
|
398
398
|
componentsProps: {
|
|
399
399
|
backdrop: p({
|
|
@@ -414,20 +414,20 @@ const Me = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
414
414
|
timeout: F,
|
|
415
415
|
role: "presentation"
|
|
416
416
|
}, z, {
|
|
417
|
-
children: /* @__PURE__ */ a.jsx(
|
|
417
|
+
children: /* @__PURE__ */ a.jsx(He, {
|
|
418
418
|
className: M(A.container),
|
|
419
419
|
onMouseDown: Q,
|
|
420
420
|
ownerState: g,
|
|
421
|
-
children: /* @__PURE__ */ a.jsx(
|
|
421
|
+
children: /* @__PURE__ */ a.jsx(Ve, p({
|
|
422
422
|
as: n,
|
|
423
423
|
elevation: 24,
|
|
424
424
|
role: "dialog",
|
|
425
425
|
"aria-describedby": u,
|
|
426
|
-
"aria-labelledby":
|
|
426
|
+
"aria-labelledby": $
|
|
427
427
|
}, h, {
|
|
428
428
|
className: M(A.paper, h.className),
|
|
429
429
|
ownerState: g,
|
|
430
|
-
children: /* @__PURE__ */ a.jsx(
|
|
430
|
+
children: /* @__PURE__ */ a.jsx(de.Provider, {
|
|
431
431
|
value: W,
|
|
432
432
|
children: x
|
|
433
433
|
})
|
|
@@ -436,7 +436,7 @@ const Me = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
436
436
|
}))
|
|
437
437
|
}));
|
|
438
438
|
});
|
|
439
|
-
process.env.NODE_ENV !== "production" && (
|
|
439
|
+
process.env.NODE_ENV !== "production" && (pe.propTypes = {
|
|
440
440
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
441
441
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
442
442
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -568,10 +568,10 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
|
568
568
|
*/
|
|
569
569
|
TransitionProps: o.object
|
|
570
570
|
});
|
|
571
|
-
function
|
|
572
|
-
return
|
|
571
|
+
function Qe(e) {
|
|
572
|
+
return K("MuiSwitch", e);
|
|
573
573
|
}
|
|
574
|
-
const d =
|
|
574
|
+
const d = Z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), Xe = ["className", "color", "edge", "size", "sx"], Ge = (e) => {
|
|
575
575
|
const {
|
|
576
576
|
classes: t,
|
|
577
577
|
edge: s,
|
|
@@ -585,9 +585,9 @@ const d = K("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
585
585
|
thumb: ["thumb"],
|
|
586
586
|
track: ["track"],
|
|
587
587
|
input: ["input"]
|
|
588
|
-
}, E = ee(C,
|
|
588
|
+
}, E = ee(C, Qe, t);
|
|
589
589
|
return p({}, t, E);
|
|
590
|
-
},
|
|
590
|
+
}, Ye = l("span", {
|
|
591
591
|
name: "MuiSwitch",
|
|
592
592
|
slot: "Root",
|
|
593
593
|
overridesResolver: (e, t) => {
|
|
@@ -646,7 +646,7 @@ const d = K("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}]
|
|
649
|
-
}),
|
|
649
|
+
}), Ke = l(le, {
|
|
650
650
|
name: "MuiSwitch",
|
|
651
651
|
slot: "SwitchBase",
|
|
652
652
|
overridesResolver: (e, t) => {
|
|
@@ -709,7 +709,7 @@ const d = K("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
709
709
|
}
|
|
710
710
|
},
|
|
711
711
|
[`&.${d.disabled}`]: {
|
|
712
|
-
color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ?
|
|
712
|
+
color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? ke(e.palette[t].main, 0.62) : ye(e.palette[t].main, 0.55)}`
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
[`&.${d.checked} + .${d.track}`]: {
|
|
@@ -733,7 +733,7 @@ const d = K("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
733
733
|
}),
|
|
734
734
|
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
735
735
|
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? 0.38 : 0.3}`
|
|
736
|
-
})),
|
|
736
|
+
})), Je = l("span", {
|
|
737
737
|
name: "MuiSwitch",
|
|
738
738
|
slot: "Thumb",
|
|
739
739
|
overridesResolver: (e, t) => t.thumb
|
|
@@ -745,8 +745,8 @@ const d = K("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
745
745
|
width: 20,
|
|
746
746
|
height: 20,
|
|
747
747
|
borderRadius: "50%"
|
|
748
|
-
})),
|
|
749
|
-
const i =
|
|
748
|
+
})), ue = /* @__PURE__ */ j.forwardRef(function(t, s) {
|
|
749
|
+
const i = re({
|
|
750
750
|
props: t,
|
|
751
751
|
name: "MuiSwitch"
|
|
752
752
|
}), {
|
|
@@ -755,19 +755,19 @@ const d = K("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
755
755
|
edge: u = !1,
|
|
756
756
|
size: C = "medium",
|
|
757
757
|
sx: E
|
|
758
|
-
} = i, w = J(i,
|
|
758
|
+
} = i, w = J(i, Xe), x = p({}, i, {
|
|
759
759
|
color: r,
|
|
760
760
|
edge: u,
|
|
761
761
|
size: C
|
|
762
|
-
}), b =
|
|
762
|
+
}), b = Ge(x), k = /* @__PURE__ */ a.jsx(Je, {
|
|
763
763
|
className: b.thumb,
|
|
764
764
|
ownerState: x
|
|
765
765
|
});
|
|
766
|
-
return /* @__PURE__ */ a.jsxs(
|
|
766
|
+
return /* @__PURE__ */ a.jsxs(Ye, {
|
|
767
767
|
className: M(b.root, c),
|
|
768
768
|
sx: E,
|
|
769
769
|
ownerState: x,
|
|
770
|
-
children: [/* @__PURE__ */ a.jsx(
|
|
770
|
+
children: [/* @__PURE__ */ a.jsx(Ke, p({
|
|
771
771
|
type: "checkbox",
|
|
772
772
|
icon: k,
|
|
773
773
|
checkedIcon: k,
|
|
@@ -783,7 +783,7 @@ const d = K("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
783
783
|
})]
|
|
784
784
|
});
|
|
785
785
|
});
|
|
786
|
-
process.env.NODE_ENV !== "production" && (
|
|
786
|
+
process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
787
787
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
788
788
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
789
789
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -847,7 +847,7 @@ process.env.NODE_ENV !== "production" && (he.propTypes = {
|
|
|
847
847
|
/**
|
|
848
848
|
* Pass a ref to the `input` element.
|
|
849
849
|
*/
|
|
850
|
-
inputRef:
|
|
850
|
+
inputRef: se,
|
|
851
851
|
/**
|
|
852
852
|
* Callback fired when the state is changed.
|
|
853
853
|
*
|
|
@@ -877,10 +877,10 @@ process.env.NODE_ENV !== "production" && (he.propTypes = {
|
|
|
877
877
|
*/
|
|
878
878
|
value: o.any
|
|
879
879
|
});
|
|
880
|
-
const
|
|
880
|
+
const _o = "Enhance with Custom Connectors", Ro = "Let us know your use case, and we'll design and deliver a custom connector tailored to your needs within 2-3 working days.", No = "Request new connector", Do = "Create your own (coming soon)", Oo = "Request new API", jo = "Request a new connector", eo = "Tell us your use case and we will create a connector for you in 2-3 working days.", Bo = `Request new connectors to get better customer context and key actions right into your inbox. ${eo}`, Po = "Select an API", Ao = "Select a connector", Io = "Feel free to add specific details (Optional)", $o = "Submit Request", Wo = "Request submitted", Mo = "Your request has been submitted successfully. We will get back to you within 2-3 working days", Uo = "Done", oo = "+Request new API", to = "Add connector", ao = "Edit connector", no = "Enable", so = "Disable", Fo = {
|
|
881
881
|
CONNECTOR: "connector",
|
|
882
882
|
API: "api"
|
|
883
|
-
},
|
|
883
|
+
}, io = l(H)`
|
|
884
884
|
height: 60px;
|
|
885
885
|
margin-bottom: 32px;
|
|
886
886
|
max-width: 892px;
|
|
@@ -926,16 +926,16 @@ const So = "Enhance with Custom Connectors", _o = "Let us know your use case, an
|
|
|
926
926
|
cursor: pointer;
|
|
927
927
|
padding: 5px;
|
|
928
928
|
}
|
|
929
|
-
`,
|
|
929
|
+
`, ro = l(q)`
|
|
930
930
|
height: 100%;
|
|
931
931
|
display: flex;
|
|
932
932
|
align-items: center;
|
|
933
|
-
`,
|
|
933
|
+
`, co = l(f)`
|
|
934
934
|
align-items: center;
|
|
935
935
|
flex-direction: row;
|
|
936
|
-
`,
|
|
936
|
+
`, lo = l(ue)`
|
|
937
937
|
margin-left: 10px;
|
|
938
|
-
`,
|
|
938
|
+
`, po = l(f)`
|
|
939
939
|
flex-direction: row;
|
|
940
940
|
align-items: center;
|
|
941
941
|
justify-content: center;
|
|
@@ -943,7 +943,7 @@ const So = "Enhance with Custom Connectors", _o = "Let us know your use case, an
|
|
|
943
943
|
height: 38px;
|
|
944
944
|
position: relative;
|
|
945
945
|
margin-left: 10px;
|
|
946
|
-
`,
|
|
946
|
+
`, uo = l(H)`
|
|
947
947
|
margin-left: 30px;
|
|
948
948
|
width: 50px;
|
|
949
949
|
aspect-ratio: 1;
|
|
@@ -969,12 +969,12 @@ const So = "Enhance with Custom Connectors", _o = "Let us know your use case, an
|
|
|
969
969
|
transform: rotate(360deg);
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
-
`,
|
|
972
|
+
`, ho = l(oe)`
|
|
973
973
|
white-space: pre;
|
|
974
974
|
width: 133px;
|
|
975
975
|
height: 32px;
|
|
976
|
-
`,
|
|
977
|
-
|
|
976
|
+
`, go = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_68286)'%3e%3cpath%20d='M16.192%2010.8165C16.2254%2010.5498%2016.2504%2010.2832%2016.2504%209.99984C16.2504%209.7165%2016.2254%209.44984%2016.192%209.18317L17.9504%207.80817C18.1087%207.68317%2018.1504%207.45817%2018.0504%207.27484L16.3837%204.3915C16.3087%204.25817%2016.167%204.18317%2016.017%204.18317C15.967%204.18317%2015.917%204.1915%2015.8754%204.20817L13.8004%205.0415C13.367%204.70817%2012.9004%204.43317%2012.392%204.22484L12.0754%202.0165C12.0504%201.8165%2011.8754%201.6665%2011.667%201.6665H8.33369C8.12535%201.6665%207.95035%201.8165%207.92535%202.0165L7.60869%204.22484C7.10035%204.43317%206.63369%204.7165%206.20035%205.0415L4.12535%204.20817C4.07535%204.1915%204.02535%204.18317%203.97535%204.18317C3.83369%204.18317%203.69202%204.25817%203.61702%204.3915L1.95035%207.27484C1.84202%207.45817%201.89202%207.68317%202.05035%207.80817L3.80869%209.18317C3.77535%209.44984%203.75035%209.72484%203.75035%209.99984C3.75035%2010.2748%203.77535%2010.5498%203.80869%2010.8165L2.05035%2012.1915C1.89202%2012.3165%201.85035%2012.5415%201.95035%2012.7248L3.61702%2015.6082C3.69202%2015.7415%203.83369%2015.8165%203.98369%2015.8165C4.03369%2015.8165%204.08369%2015.8082%204.12535%2015.7915L6.20035%2014.9582C6.63369%2015.2915%207.10035%2015.5665%207.60869%2015.7748L7.92535%2017.9832C7.95035%2018.1832%208.12535%2018.3332%208.33369%2018.3332H11.667C11.8754%2018.3332%2012.0504%2018.1832%2012.0754%2017.9832L12.392%2015.7748C12.9004%2015.5665%2013.367%2015.2832%2013.8004%2014.9582L15.8754%2015.7915C15.9254%2015.8082%2015.9754%2015.8165%2016.0254%2015.8165C16.167%2015.8165%2016.3087%2015.7415%2016.3837%2015.6082L18.0504%2012.7248C18.1504%2012.5415%2018.1087%2012.3165%2017.9504%2012.1915L16.192%2010.8165ZM14.542%209.3915C14.5754%209.64984%2014.5837%209.82484%2014.5837%209.99984C14.5837%2010.1748%2014.567%2010.3582%2014.542%2010.6082L14.4254%2011.5498L15.167%2012.1332L16.067%2012.8332L15.4837%2013.8415L14.4254%2013.4165L13.5587%2013.0665L12.8087%2013.6332C12.4504%2013.8998%2012.1087%2014.0998%2011.767%2014.2415L10.8837%2014.5998L10.7504%2015.5415L10.5837%2016.6665H9.41702L9.25869%2015.5415L9.12535%2014.5998L8.24202%2014.2415C7.88369%2014.0915%207.55035%2013.8998%207.21702%2013.6498L6.45869%2013.0665L5.57535%2013.4248L4.51702%2013.8498L3.93369%2012.8415L4.83369%2012.1415L5.57535%2011.5582L5.45869%2010.6165C5.43369%2010.3582%205.41702%2010.1665%205.41702%209.99984C5.41702%209.83317%205.43369%209.6415%205.45869%209.3915L5.57535%208.44984L4.83369%207.8665L3.93369%207.1665L4.51702%206.15817L5.57535%206.58317L6.44202%206.93317L7.19202%206.3665C7.55035%206.09984%207.89202%205.89984%208.23369%205.75817L9.11702%205.39984L9.25035%204.45817L9.41702%203.33317H10.5754L10.7337%204.45817L10.867%205.39984L11.7504%205.75817C12.1087%205.90817%2012.442%206.09984%2012.7754%206.34984L13.5337%206.93317L14.417%206.57484L15.4754%206.14984L16.0587%207.15817L15.167%207.8665L14.4254%208.44984L14.542%209.3915ZM10.0004%206.6665C8.15869%206.6665%206.66702%208.15817%206.66702%209.99984C6.66702%2011.8415%208.15869%2013.3332%2010.0004%2013.3332C11.842%2013.3332%2013.3337%2011.8415%2013.3337%209.99984C13.3337%208.15817%2011.842%206.6665%2010.0004%206.6665ZM10.0004%2011.6665C9.08369%2011.6665%208.33369%2010.9165%208.33369%209.99984C8.33369%209.08317%209.08369%208.33317%2010.0004%208.33317C10.917%208.33317%2011.667%209.08317%2011.667%209.99984C11.667%2010.9165%2010.917%2011.6665%2010.0004%2011.6665Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_68286'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", mo = "data:image/svg+xml,%3csvg%20width='92'%20height='92'%20viewBox='0%200%2092%2092'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='46'%20cy='46'%20r='23'%20fill='%2336A40F'/%3e%3ccircle%20opacity='0.1'%20cx='45.5'%20cy='45.5'%20r='34.5'%20fill='%235AAA3D'/%3e%3ccircle%20opacity='0.1'%20cx='46'%20cy='46'%20r='46'%20fill='%232CAA00'/%3e%3cpath%20d='M37%2046L44%2053L58%2039'%20stroke='white'%20stroke-width='3'/%3e%3c/svg%3e", bo = "Connector enabled", xo = "Access and manage the information from the connector directly from Hiver’s right panel for seamless integration and easy reference. Learn more", fo = "Got it", Co = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_73646)'%3e%3cpath%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_73646'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", wo = ({ shown: e, setShown: t, children: s, showCloseButton: i = !1 }) => /* @__PURE__ */ a.jsx(
|
|
977
|
+
pe,
|
|
978
978
|
{
|
|
979
979
|
"data-testid": "modal",
|
|
980
980
|
open: e,
|
|
@@ -989,49 +989,49 @@ const So = "Enhance with Custom Connectors", _o = "Let us know your use case, an
|
|
|
989
989
|
}
|
|
990
990
|
},
|
|
991
991
|
children: /* @__PURE__ */ a.jsxs(f, { direction: "row", children: [
|
|
992
|
-
i && /* @__PURE__ */ a.jsx(H, { position: "absolute", right: 10, top: 10, children: /* @__PURE__ */ a.jsx(Y, { title: "Close", placement: "bottom", children: /* @__PURE__ */ a.jsx(
|
|
992
|
+
i && /* @__PURE__ */ a.jsx(H, { position: "absolute", right: 10, top: 10, children: /* @__PURE__ */ a.jsx(Y, { title: "Close", placement: "bottom", children: /* @__PURE__ */ a.jsx(ce, { onClick: () => t(!1), "data-testid": "close-modal", children: /* @__PURE__ */ a.jsx("img", { src: Co }) }) }) }),
|
|
993
993
|
s
|
|
994
994
|
] })
|
|
995
995
|
}
|
|
996
|
-
),
|
|
996
|
+
), Eo = l(H)`
|
|
997
997
|
.connector-enabled-img {
|
|
998
998
|
width: 562px;
|
|
999
999
|
height: 500px;
|
|
1000
1000
|
}
|
|
1001
|
-
`,
|
|
1002
|
-
const { VITE_HIVER_CDN_URL: i } =
|
|
1001
|
+
`, ko = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_HIVER_CDN_URL: "https://cdn.hiverhq.com/", VITE_MY_ENV_VAR: "Environment Variable from admin" }, yo = ({ shown: e, connectorName: t, setShown: s }) => {
|
|
1002
|
+
const { VITE_HIVER_CDN_URL: i } = ko, c = i + "connectors-module/assets/ConnectorsEnabled.gif", r = () => {
|
|
1003
1003
|
s(!1);
|
|
1004
|
-
}, u = `${t} ${
|
|
1005
|
-
return /* @__PURE__ */ a.jsxs(
|
|
1004
|
+
}, u = `${t} ${bo}`;
|
|
1005
|
+
return /* @__PURE__ */ a.jsxs(wo, { shown: e, setShown: s, children: [
|
|
1006
1006
|
/* @__PURE__ */ a.jsx(f, { children: /* @__PURE__ */ a.jsxs(f, { padding: "30px", height: "100%", children: [
|
|
1007
1007
|
/* @__PURE__ */ a.jsx(f, { width: "378px", height: "100%", justifyContent: "center", children: /* @__PURE__ */ a.jsxs(f, { gap: "14px", children: [
|
|
1008
|
-
/* @__PURE__ */ a.jsx("img", { src:
|
|
1008
|
+
/* @__PURE__ */ a.jsx("img", { src: mo, alt: "checkmark", width: 92, height: 92 }),
|
|
1009
1009
|
/* @__PURE__ */ a.jsxs(f, { gap: "4px", children: [
|
|
1010
1010
|
/* @__PURE__ */ a.jsx(q, { variant: "h2", children: u }),
|
|
1011
|
-
/* @__PURE__ */ a.jsx(q, { variant: "body2", children:
|
|
1011
|
+
/* @__PURE__ */ a.jsx(q, { variant: "body2", children: xo })
|
|
1012
1012
|
] })
|
|
1013
1013
|
] }) }),
|
|
1014
|
-
/* @__PURE__ */ a.jsx(f, { alignItems: "flex-end", children: /* @__PURE__ */ a.jsx(oe, { onClick: r, variant: "outlined", color: "tertiary", size: "medium", children:
|
|
1014
|
+
/* @__PURE__ */ a.jsx(f, { alignItems: "flex-end", children: /* @__PURE__ */ a.jsx(oe, { onClick: r, variant: "outlined", color: "tertiary", size: "medium", children: fo }) })
|
|
1015
1015
|
] }) }),
|
|
1016
|
-
/* @__PURE__ */ a.jsx(
|
|
1016
|
+
/* @__PURE__ */ a.jsx(Eo, { children: /* @__PURE__ */ a.jsx("img", { className: "connector-enabled-img", src: c, alt: "Connector enabled" }) })
|
|
1017
1017
|
] });
|
|
1018
|
-
},
|
|
1018
|
+
}, zo = ({
|
|
1019
1019
|
connector: e,
|
|
1020
1020
|
setModal: t,
|
|
1021
1021
|
setConnectorId: s,
|
|
1022
1022
|
isConfigSettingsPage: i,
|
|
1023
1023
|
isEdit: c = !1
|
|
1024
1024
|
}) => {
|
|
1025
|
-
const { id: r, name: u, logo: C, description: E } = e, w =
|
|
1026
|
-
n == null || n.stopPropagation(), k(
|
|
1025
|
+
const { id: r, name: u, logo: C, description: E } = e, w = _e(Ne), [x, b] = Se(!1), k = Re(), S = Te(), B = (n, h) => {
|
|
1026
|
+
n == null || n.stopPropagation(), k(ve({ id: h, enabled: n.target.checked })).unwrap().then(() => {
|
|
1027
1027
|
n.target.checked ? b(!0) : ne({
|
|
1028
|
-
message:
|
|
1029
|
-
type:
|
|
1028
|
+
message: De,
|
|
1029
|
+
type: Oe
|
|
1030
1030
|
});
|
|
1031
1031
|
}).catch(() => {
|
|
1032
1032
|
ne({
|
|
1033
1033
|
message: je,
|
|
1034
|
-
type:
|
|
1034
|
+
type: Be
|
|
1035
1035
|
});
|
|
1036
1036
|
});
|
|
1037
1037
|
}, P = (n, h) => {
|
|
@@ -1046,24 +1046,24 @@ const So = "Enhance with Custom Connectors", _o = "Let us know your use case, an
|
|
|
1046
1046
|
let v = !1;
|
|
1047
1047
|
return "isEnabled" in e && typeof e.isEnabled == "boolean" && (v = e.isEnabled), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1048
1048
|
/* @__PURE__ */ a.jsx(
|
|
1049
|
-
|
|
1049
|
+
yo,
|
|
1050
1050
|
{
|
|
1051
1051
|
shown: x,
|
|
1052
1052
|
setShown: b,
|
|
1053
1053
|
connectorName: e.name
|
|
1054
1054
|
}
|
|
1055
1055
|
),
|
|
1056
|
-
/* @__PURE__ */ a.jsxs(
|
|
1056
|
+
/* @__PURE__ */ a.jsxs(io, { "data-testid": r, className: "connector-grid", onClick: (n) => L(n, r), children: [
|
|
1057
1057
|
/* @__PURE__ */ a.jsxs(f, { className: `connector-flex ${i ? "connector-settings" : ""}`, width: "100%", children: [
|
|
1058
1058
|
/* @__PURE__ */ a.jsxs(f, { flexDirection: "row", alignItems: "center", children: [
|
|
1059
1059
|
i ? /* @__PURE__ */ a.jsx("img", { src: C ?? "", className: "logoIcon", width: "28xp", height: "28px", alt: u }) : null,
|
|
1060
|
-
/* @__PURE__ */ a.jsx(
|
|
1060
|
+
/* @__PURE__ */ a.jsx(ro, { variant: "body1_medium", children: u })
|
|
1061
1061
|
] }),
|
|
1062
|
-
i && !c ? /* @__PURE__ */ a.jsx(
|
|
1063
|
-
i ? null : /* @__PURE__ */ a.jsx(oe, { variant: "text", onClick: (n) => P(n, r), children:
|
|
1064
|
-
/* @__PURE__ */ a.jsx(Y, { title:
|
|
1065
|
-
(w == null ? void 0 : w[r]) !==
|
|
1066
|
-
|
|
1062
|
+
i && !c ? /* @__PURE__ */ a.jsx(ho, { variant: "contained", onClick: (n) => _(n, r), children: to }) : /* @__PURE__ */ a.jsxs(co, { children: [
|
|
1063
|
+
i ? null : /* @__PURE__ */ a.jsx(oe, { variant: "text", onClick: (n) => P(n, r), children: oo }),
|
|
1064
|
+
/* @__PURE__ */ a.jsx(Y, { title: ao, placement: "bottom", children: /* @__PURE__ */ a.jsx(ce, { onClick: (n) => R(n, r), children: /* @__PURE__ */ a.jsx("img", { src: go, className: "settingsIcon" }) }) }),
|
|
1065
|
+
(w == null ? void 0 : w[r]) !== Le.LOADING ? /* @__PURE__ */ a.jsx(Y, { title: v ? so : no, placement: "bottom", children: /* @__PURE__ */ a.jsx(
|
|
1066
|
+
lo,
|
|
1067
1067
|
{
|
|
1068
1068
|
id: `switch_${r}`,
|
|
1069
1069
|
checked: v,
|
|
@@ -1071,14 +1071,14 @@ const So = "Enhance with Custom Connectors", _o = "Let us know your use case, an
|
|
|
1071
1071
|
onChange: (n) => B(n, r)
|
|
1072
1072
|
}
|
|
1073
1073
|
) }) : /* @__PURE__ */ a.jsx(
|
|
1074
|
-
|
|
1074
|
+
po,
|
|
1075
1075
|
{
|
|
1076
1076
|
width: "58px",
|
|
1077
1077
|
height: "38px",
|
|
1078
1078
|
alignItems: "center",
|
|
1079
1079
|
flexDirection: "row",
|
|
1080
1080
|
justifyContent: "center",
|
|
1081
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1081
|
+
children: /* @__PURE__ */ a.jsx(uo, { "data-testid": "loading" })
|
|
1082
1082
|
}
|
|
1083
1083
|
)
|
|
1084
1084
|
] })
|
|
@@ -1088,24 +1088,24 @@ const So = "Enhance with Custom Connectors", _o = "Let us know your use case, an
|
|
|
1088
1088
|
] });
|
|
1089
1089
|
};
|
|
1090
1090
|
export {
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1091
|
+
Do as C,
|
|
1092
|
+
_o as E,
|
|
1093
|
+
wo as M,
|
|
1094
|
+
No as R,
|
|
1095
|
+
le as S,
|
|
1096
|
+
eo as T,
|
|
1097
|
+
Ro as a,
|
|
1098
|
+
zo as b,
|
|
1099
|
+
Oo as c,
|
|
1100
|
+
jo as d,
|
|
1101
|
+
Bo as e,
|
|
1102
|
+
Po as f,
|
|
1103
|
+
Ao as g,
|
|
1104
|
+
Io as h,
|
|
1105
1105
|
$o as i,
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1106
|
+
mo as j,
|
|
1107
|
+
Wo as k,
|
|
1108
|
+
Mo as l,
|
|
1109
|
+
Uo as m,
|
|
1110
|
+
Fo as n
|
|
1111
1111
|
};
|