@hiver/connector-agent 2.0.1-errorState-beta.0 → 2.0.1-errorState-beta.1
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/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/card-content-value.d.ts.map +1 -1
- package/features/connector-cards/store/slice.d.ts.map +1 -1
- package/index.es.js +129 -125
- package/index.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAiBhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAmBxC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AAiBhE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAmBxC,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;KAC9B,GAAG,IAAI,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,EAAE;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,GAAG,IAAI,CAAC;IACT,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,UAAW,MAAM,4CA2LjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-content-value.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/card-content-value.tsx"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,gBAAgB,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"card-content-value.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/card-content-value.tsx"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,gBAAgB,UAAW,MAAM,4CA2E7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/slice.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAsB,MAAM,eAAe,CAAC;AAKzE,eAAO,MAAM,oBAAoB;;;;;;
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/slice.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAsB,MAAM,eAAe,CAAC;AAKzE,eAAO,MAAM,oBAAoB;;;;;;uKAgE/B,CAAC;AAIH,QAAA,MAAM,iBAAiB;;;;cAOT,MAAM,EAAE;kBACJ,MAAM;oBACJ,MAAM;;;;;;;;;;EAazB,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;QAUjB,MAAM;WACH,MAAM;qBACI,MAAM;gBACX,OAAO;yBACE,MAAM;;;;;;;;;;EA2BhC,CAAC;;AAEF,wBAA4C;AAC5C,eAAO,MAAM,OAAO;;;;;;0BAA+B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -2444,7 +2444,7 @@ function VQ({
|
|
|
2444
2444
|
});
|
|
2445
2445
|
}
|
|
2446
2446
|
process.env.NODE_ENV !== "production" && (a.node, a.object.isRequired);
|
|
2447
|
-
function
|
|
2447
|
+
function Ue(e) {
|
|
2448
2448
|
return VQ(e);
|
|
2449
2449
|
}
|
|
2450
2450
|
var gs = {}, SC = { exports: {} };
|
|
@@ -5604,7 +5604,7 @@ const _3 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5604
5604
|
}[t.color]
|
|
5605
5605
|
};
|
|
5606
5606
|
}), cr = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
5607
|
-
const o =
|
|
5607
|
+
const o = Ue({
|
|
5608
5608
|
props: t,
|
|
5609
5609
|
name: "MuiSvgIcon"
|
|
5610
5610
|
}), {
|
|
@@ -7278,7 +7278,7 @@ const G5 = ["className", "component", "elevation", "square", "variant"], X5 = (e
|
|
|
7278
7278
|
backgroundImage: (n = e.vars.overlays) == null ? void 0 : n[t.elevation]
|
|
7279
7279
|
}));
|
|
7280
7280
|
}), Xo = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
7281
|
-
const o =
|
|
7281
|
+
const o = Ue({
|
|
7282
7282
|
props: t,
|
|
7283
7283
|
name: "MuiPaper"
|
|
7284
7284
|
}), {
|
|
@@ -7555,7 +7555,7 @@ const Vu = 550, e4 = 80, t4 = $r(p0 || (p0 = Nl`
|
|
|
7555
7555
|
}) => e.transitions.easing.easeInOut, jn.childPulsate, o4, ({
|
|
7556
7556
|
theme: e
|
|
7557
7557
|
}) => e.transitions.easing.easeInOut), kE = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
7558
|
-
const o =
|
|
7558
|
+
const o = Ue({
|
|
7559
7559
|
props: t,
|
|
7560
7560
|
name: "MuiTouchRipple"
|
|
7561
7561
|
}), {
|
|
@@ -7741,7 +7741,7 @@ const s4 = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), A4 = ["act
|
|
|
7741
7741
|
colorAdjust: "exact"
|
|
7742
7742
|
}
|
|
7743
7743
|
}), Ul = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
7744
|
-
const o =
|
|
7744
|
+
const o = Ue({
|
|
7745
7745
|
props: t,
|
|
7746
7746
|
name: "MuiButtonBase"
|
|
7747
7747
|
}), {
|
|
@@ -8102,7 +8102,7 @@ const d4 = pe("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
8102
8102
|
}
|
|
8103
8103
|
});
|
|
8104
8104
|
}), nn = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
8105
|
-
const o =
|
|
8105
|
+
const o = Ue({
|
|
8106
8106
|
props: t,
|
|
8107
8107
|
name: "MuiIconButton"
|
|
8108
8108
|
}), {
|
|
@@ -8255,7 +8255,7 @@ const E4 = ["align", "className", "component", "gutterBottom", "noWrap", "paragr
|
|
|
8255
8255
|
textSecondary: "text.secondary",
|
|
8256
8256
|
error: "error.main"
|
|
8257
8257
|
}, m4 = (e) => B4[e] || e, Ge = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
8258
|
-
const o =
|
|
8258
|
+
const o = Ue({
|
|
8259
8259
|
props: t,
|
|
8260
8260
|
name: "MuiTypography"
|
|
8261
8261
|
}), r = m4(o.color), i = Is(T({}, o, {
|
|
@@ -9669,7 +9669,7 @@ const H9 = ["anchorEl", "component", "components", "componentsProps", "container
|
|
|
9669
9669
|
overridesResolver: (e, t) => t.root
|
|
9670
9670
|
})({}), Hl = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
9671
9671
|
var o;
|
|
9672
|
-
const r = RE(), i =
|
|
9672
|
+
const r = RE(), i = Ue({
|
|
9673
9673
|
props: t,
|
|
9674
9674
|
name: "MuiPopper"
|
|
9675
9675
|
}), {
|
|
@@ -10186,7 +10186,7 @@ const Yr = pe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
10186
10186
|
}
|
|
10187
10187
|
}), Xl = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
10188
10188
|
var o;
|
|
10189
|
-
const r =
|
|
10189
|
+
const r = Ue({
|
|
10190
10190
|
props: t,
|
|
10191
10191
|
name: "MuiInputBase"
|
|
10192
10192
|
}), {
|
|
@@ -10710,7 +10710,7 @@ function c6({
|
|
|
10710
10710
|
}, [e, t, n, o]), r;
|
|
10711
10711
|
}
|
|
10712
10712
|
const ig = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
10713
|
-
const o =
|
|
10713
|
+
const o = Ue({
|
|
10714
10714
|
props: t,
|
|
10715
10715
|
name: "MuiAvatar"
|
|
10716
10716
|
}), {
|
|
@@ -10873,7 +10873,7 @@ const d6 = pe("MuiAvatarGroup", ["root", "avatar"]), g6 = ["children", "classNam
|
|
|
10873
10873
|
};
|
|
10874
10874
|
}), XE = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
10875
10875
|
var o;
|
|
10876
|
-
const r =
|
|
10876
|
+
const r = Ue({
|
|
10877
10877
|
props: t,
|
|
10878
10878
|
name: "MuiAvatarGroup"
|
|
10879
10879
|
}), {
|
|
@@ -11181,7 +11181,7 @@ const h6 = ["children", "className", "component", "components", "componentsProps
|
|
|
11181
11181
|
backgroundColor: "transparent"
|
|
11182
11182
|
})), ag = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
11183
11183
|
var o, r, i;
|
|
11184
|
-
const s =
|
|
11184
|
+
const s = Ue({
|
|
11185
11185
|
props: t,
|
|
11186
11186
|
name: "MuiBackdrop"
|
|
11187
11187
|
}), {
|
|
@@ -11539,7 +11539,7 @@ const y6 = ["children", "color", "component", "className", "disabled", "disableE
|
|
|
11539
11539
|
}, e.size === "small" && {
|
|
11540
11540
|
marginRight: -2
|
|
11541
11541
|
}, ZE(e))), Gt = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
11542
|
-
const o = x.useContext(KE), r = x.useContext(_E), i = Xa(o, t), s =
|
|
11542
|
+
const o = x.useContext(KE), r = x.useContext(_E), i = Xa(o, t), s = Ue({
|
|
11543
11543
|
props: i,
|
|
11544
11544
|
name: "MuiButton"
|
|
11545
11545
|
}), {
|
|
@@ -12123,7 +12123,7 @@ const K6 = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
|
12123
12123
|
zIndex: -1
|
|
12124
12124
|
}), sg = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
12125
12125
|
var o, r, i, s, A, l;
|
|
12126
|
-
const c =
|
|
12126
|
+
const c = Ue({
|
|
12127
12127
|
name: "MuiModal",
|
|
12128
12128
|
props: t
|
|
12129
12129
|
}), {
|
|
@@ -12526,7 +12526,7 @@ const $6 = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
|
|
|
12526
12526
|
maxWidth: "100%"
|
|
12527
12527
|
}
|
|
12528
12528
|
})), Ag = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
12529
|
-
const o =
|
|
12529
|
+
const o = Ue({
|
|
12530
12530
|
props: t,
|
|
12531
12531
|
name: "MuiDialog"
|
|
12532
12532
|
}), r = Go(), i = {
|
|
@@ -12779,7 +12779,7 @@ const aw = ["className", "disableSpacing"], sw = (e) => {
|
|
|
12779
12779
|
marginLeft: 8
|
|
12780
12780
|
}
|
|
12781
12781
|
})), qE = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
12782
|
-
const o =
|
|
12782
|
+
const o = Ue({
|
|
12783
12783
|
props: t,
|
|
12784
12784
|
name: "MuiDialogActions"
|
|
12785
12785
|
}), {
|
|
@@ -12860,7 +12860,7 @@ const cw = pe("MuiDialogTitle", ["root"]), uw = ["className", "dividers"], dw =
|
|
|
12860
12860
|
paddingTop: 0
|
|
12861
12861
|
}
|
|
12862
12862
|
})), $E = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
12863
|
-
const o =
|
|
12863
|
+
const o = Ue({
|
|
12864
12864
|
props: t,
|
|
12865
12865
|
name: "MuiDialogContent"
|
|
12866
12866
|
}), {
|
|
@@ -13064,7 +13064,7 @@ const fw = ["disableUnderline", "components", "componentsProps", "fullWidth", "h
|
|
|
13064
13064
|
paddingRight: 0
|
|
13065
13065
|
})), Kl = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
13066
13066
|
var o, r, i, s;
|
|
13067
|
-
const A =
|
|
13067
|
+
const A = Ue({
|
|
13068
13068
|
props: t,
|
|
13069
13069
|
name: "MuiFilledInput"
|
|
13070
13070
|
}), {
|
|
@@ -13339,7 +13339,7 @@ const hw = ["children", "className", "color", "component", "disabled", "error",
|
|
|
13339
13339
|
}, e.fullWidth && {
|
|
13340
13340
|
width: "100%"
|
|
13341
13341
|
})), e2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
13342
|
-
const o =
|
|
13342
|
+
const o = Ue({
|
|
13343
13343
|
props: t,
|
|
13344
13344
|
name: "MuiFormControl"
|
|
13345
13345
|
}), {
|
|
@@ -13510,18 +13510,18 @@ process.env.NODE_ENV !== "production" && (e2.propTypes = {
|
|
|
13510
13510
|
*/
|
|
13511
13511
|
variant: a.oneOf(["filled", "outlined", "standard"])
|
|
13512
13512
|
});
|
|
13513
|
-
const
|
|
13513
|
+
const Ne = F5({
|
|
13514
13514
|
createStyledComponent: V("div", {
|
|
13515
13515
|
name: "MuiStack",
|
|
13516
13516
|
slot: "Root",
|
|
13517
13517
|
overridesResolver: (e, t) => t.root
|
|
13518
13518
|
}),
|
|
13519
|
-
useThemeProps: (e) =>
|
|
13519
|
+
useThemeProps: (e) => Ue({
|
|
13520
13520
|
props: e,
|
|
13521
13521
|
name: "MuiStack"
|
|
13522
13522
|
})
|
|
13523
13523
|
});
|
|
13524
|
-
process.env.NODE_ENV !== "production" && (
|
|
13524
|
+
process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
13525
13525
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
13526
13526
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
13527
13527
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -13616,7 +13616,7 @@ const vw = ["children", "className", "component", "disabled", "error", "filled",
|
|
|
13616
13616
|
marginLeft: 14,
|
|
13617
13617
|
marginRight: 14
|
|
13618
13618
|
})), t2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
13619
|
-
const o =
|
|
13619
|
+
const o = Ue({
|
|
13620
13620
|
props: t,
|
|
13621
13621
|
name: "MuiFormHelperText"
|
|
13622
13622
|
}), {
|
|
@@ -13763,7 +13763,7 @@ const Ua = pe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
13763
13763
|
color: (e.vars || e).palette.error.main
|
|
13764
13764
|
}
|
|
13765
13765
|
})), n2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
13766
|
-
const o =
|
|
13766
|
+
const o = Ue({
|
|
13767
13767
|
props: t,
|
|
13768
13768
|
name: "MuiFormLabel"
|
|
13769
13769
|
}), {
|
|
@@ -14123,7 +14123,7 @@ const Ww = (e) => {
|
|
|
14123
14123
|
};
|
|
14124
14124
|
return Ie(p, Sw, t);
|
|
14125
14125
|
}, Si = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
14126
|
-
const o =
|
|
14126
|
+
const o = Ue({
|
|
14127
14127
|
props: t,
|
|
14128
14128
|
name: "MuiGrid"
|
|
14129
14129
|
}), {
|
|
@@ -14543,7 +14543,7 @@ const Xw = ["baseClassName", "className", "color", "component", "fontSize"], Kw
|
|
|
14543
14543
|
inherit: void 0
|
|
14544
14544
|
}[t.color]
|
|
14545
14545
|
})), _l = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
14546
|
-
const o =
|
|
14546
|
+
const o = Ue({
|
|
14547
14547
|
props: t,
|
|
14548
14548
|
name: "MuiIcon"
|
|
14549
14549
|
}), {
|
|
@@ -14707,7 +14707,7 @@ const Zw = ["disableUnderline", "components", "componentsProps", "fullWidth", "i
|
|
|
14707
14707
|
overridesResolver: zl
|
|
14708
14708
|
})({}), Zl = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
14709
14709
|
var o, r, i, s;
|
|
14710
|
-
const A =
|
|
14710
|
+
const A = Ue({
|
|
14711
14711
|
props: t,
|
|
14712
14712
|
name: "MuiInput"
|
|
14713
14713
|
}), {
|
|
@@ -14981,7 +14981,7 @@ const t8 = ["children", "className", "component", "disablePointerEvents", "disab
|
|
|
14981
14981
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
14982
14982
|
pointerEvents: "none"
|
|
14983
14983
|
})), lg = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
14984
|
-
const o =
|
|
14984
|
+
const o = Ue({
|
|
14985
14985
|
props: t,
|
|
14986
14986
|
name: "MuiInputAdornment"
|
|
14987
14987
|
}), {
|
|
@@ -15165,7 +15165,7 @@ const a8 = ["disableAnimation", "margin", "shrink", "variant", "className"], s8
|
|
|
15165
15165
|
maxWidth: "calc(133% - 32px)",
|
|
15166
15166
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
15167
15167
|
}))), r2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
15168
|
-
const o =
|
|
15168
|
+
const o = Ue({
|
|
15169
15169
|
name: "MuiInputLabel",
|
|
15170
15170
|
props: t
|
|
15171
15171
|
}), {
|
|
@@ -15347,7 +15347,7 @@ const c8 = pe("MuiLink", ["root", "underlineNone", "underlineHover", "underlineA
|
|
|
15347
15347
|
outline: "auto"
|
|
15348
15348
|
}
|
|
15349
15349
|
})), Jl = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
15350
|
-
const o =
|
|
15350
|
+
const o = Ue({
|
|
15351
15351
|
props: t,
|
|
15352
15352
|
name: "MuiLink"
|
|
15353
15353
|
}), {
|
|
@@ -15483,7 +15483,7 @@ const E8 = ["children", "className", "component", "dense", "disablePadding", "su
|
|
|
15483
15483
|
}, e.subheader && {
|
|
15484
15484
|
paddingTop: 0
|
|
15485
15485
|
})), s2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
15486
|
-
const o =
|
|
15486
|
+
const o = Ue({
|
|
15487
15487
|
props: t,
|
|
15488
15488
|
name: "MuiList"
|
|
15489
15489
|
}), {
|
|
@@ -15755,7 +15755,7 @@ const y8 = (e) => {
|
|
|
15755
15755
|
outline: 0
|
|
15756
15756
|
}), u2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
15757
15757
|
var o, r, i;
|
|
15758
|
-
const s =
|
|
15758
|
+
const s = Ue({
|
|
15759
15759
|
props: t,
|
|
15760
15760
|
name: "MuiPopover"
|
|
15761
15761
|
}), {
|
|
@@ -16147,7 +16147,7 @@ const T8 = ["onEntering"], F8 = ["autoFocus", "children", "className", "disableA
|
|
|
16147
16147
|
outline: 0
|
|
16148
16148
|
}), d2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
16149
16149
|
var o, r;
|
|
16150
|
-
const i =
|
|
16150
|
+
const i = Ue({
|
|
16151
16151
|
props: t,
|
|
16152
16152
|
name: "MuiMenu"
|
|
16153
16153
|
}), {
|
|
@@ -16753,7 +16753,7 @@ const z8 = ["components", "fullWidth", "inputComponent", "label", "multiline", "
|
|
|
16753
16753
|
paddingRight: 0
|
|
16754
16754
|
})), ql = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
16755
16755
|
var o, r, i, s, A;
|
|
16756
|
-
const l =
|
|
16756
|
+
const l = Ue({
|
|
16757
16757
|
props: t,
|
|
16758
16758
|
name: "MuiOutlinedInput"
|
|
16759
16759
|
}), {
|
|
@@ -17006,7 +17006,7 @@ const Z8 = ["className", "component", "enableColorScheme"], J8 = (e) => {
|
|
|
17006
17006
|
}
|
|
17007
17007
|
}, n);
|
|
17008
17008
|
}), E2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
17009
|
-
const o =
|
|
17009
|
+
const o = Ue({
|
|
17010
17010
|
props: t,
|
|
17011
17011
|
name: "MuiScopedCssBaseline"
|
|
17012
17012
|
}), {
|
|
@@ -17533,7 +17533,7 @@ const a7 = ["autoWidth", "children", "classes", "className", "defaultOpen", "dis
|
|
|
17533
17533
|
shouldForwardProp: (e) => io(e) && e !== "variant",
|
|
17534
17534
|
slot: "Root"
|
|
17535
17535
|
}, l7 = V(Zl, ug)(""), c7 = V(ql, ug)(""), u7 = V(Kl, ug)(""), dg = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
17536
|
-
const o =
|
|
17536
|
+
const o = Ue({
|
|
17537
17537
|
name: "MuiSelect",
|
|
17538
17538
|
props: t
|
|
17539
17539
|
}), {
|
|
@@ -17882,7 +17882,7 @@ const f7 = (e) => {
|
|
|
17882
17882
|
top: 0;
|
|
17883
17883
|
}
|
|
17884
17884
|
`), C7, (t.vars || t).palette.action.hover)), gg = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
17885
|
-
const o =
|
|
17885
|
+
const o = Ue({
|
|
17886
17886
|
props: t,
|
|
17887
17887
|
name: "MuiSkeleton"
|
|
17888
17888
|
}), {
|
|
@@ -18015,7 +18015,7 @@ const h7 = ["action", "className", "message", "role"], B7 = (e) => {
|
|
|
18015
18015
|
paddingLeft: 16,
|
|
18016
18016
|
marginRight: -8
|
|
18017
18017
|
}), h2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
18018
|
-
const o =
|
|
18018
|
+
const o = Ue({
|
|
18019
18019
|
props: t,
|
|
18020
18020
|
name: "MuiSnackbarContent"
|
|
18021
18021
|
}), {
|
|
@@ -18257,7 +18257,7 @@ function qs(e, t) {
|
|
|
18257
18257
|
}
|
|
18258
18258
|
const zt = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
18259
18259
|
var o, r, i, s, A, l, c, u, p, f, B, C, g, d, E, m, h, Q, I;
|
|
18260
|
-
const v =
|
|
18260
|
+
const v = Ue({
|
|
18261
18261
|
props: t,
|
|
18262
18262
|
name: "MuiTooltip"
|
|
18263
18263
|
}), {
|
|
@@ -18681,7 +18681,7 @@ const k7 = ["className", "component", "padding", "size", "stickyHeader"], R7 = (
|
|
|
18681
18681
|
}, t.stickyHeader && {
|
|
18682
18682
|
borderCollapse: "separate"
|
|
18683
18683
|
})), _0 = "table", B2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
18684
|
-
const o =
|
|
18684
|
+
const o = Ue({
|
|
18685
18685
|
props: t,
|
|
18686
18686
|
name: "MuiTable"
|
|
18687
18687
|
}), {
|
|
@@ -18777,7 +18777,7 @@ const P7 = ["className", "component"], L7 = (e) => {
|
|
|
18777
18777
|
}), U7 = {
|
|
18778
18778
|
variant: "body"
|
|
18779
18779
|
}, Z0 = "tbody", m2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
18780
|
-
const o =
|
|
18780
|
+
const o = Ue({
|
|
18781
18781
|
props: t,
|
|
18782
18782
|
name: "MuiTableBody"
|
|
18783
18783
|
}), {
|
|
@@ -18901,7 +18901,7 @@ const V7 = pe("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "s
|
|
|
18901
18901
|
zIndex: 2,
|
|
18902
18902
|
backgroundColor: (e.vars || e).palette.background.default
|
|
18903
18903
|
})), xs = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
18904
|
-
const o =
|
|
18904
|
+
const o = Ue({
|
|
18905
18905
|
props: t,
|
|
18906
18906
|
name: "MuiTableCell"
|
|
18907
18907
|
}), {
|
|
@@ -19014,7 +19014,7 @@ const G7 = ["className", "component"], X7 = (e) => {
|
|
|
19014
19014
|
width: "100%",
|
|
19015
19015
|
overflowX: "auto"
|
|
19016
19016
|
}), Q2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
19017
|
-
const o =
|
|
19017
|
+
const o = Ue({
|
|
19018
19018
|
props: t,
|
|
19019
19019
|
name: "MuiTableContainer"
|
|
19020
19020
|
}), {
|
|
@@ -19077,7 +19077,7 @@ const Z7 = ["className", "component"], J7 = (e) => {
|
|
|
19077
19077
|
}), $7 = {
|
|
19078
19078
|
variant: "head"
|
|
19079
19079
|
}, J0 = "thead", v2 = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
19080
|
-
const o =
|
|
19080
|
+
const o = Ue({
|
|
19081
19081
|
props: t,
|
|
19082
19082
|
name: "MuiTableHead"
|
|
19083
19083
|
}), {
|
|
@@ -19165,7 +19165,7 @@ const q0 = pe("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), t
|
|
|
19165
19165
|
}
|
|
19166
19166
|
}
|
|
19167
19167
|
})), $0 = "tr", pg = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
19168
|
-
const o =
|
|
19168
|
+
const o = Ue({
|
|
19169
19169
|
props: t,
|
|
19170
19170
|
name: "MuiTableRow"
|
|
19171
19171
|
}), {
|
|
@@ -19245,7 +19245,7 @@ const ix = ["autoComplete", "autoFocus", "children", "className", "color", "defa
|
|
|
19245
19245
|
slot: "Root",
|
|
19246
19246
|
overridesResolver: (e, t) => t.root
|
|
19247
19247
|
})({}), Cg = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
19248
|
-
const o =
|
|
19248
|
+
const o = Ue({
|
|
19249
19249
|
props: t,
|
|
19250
19250
|
name: "MuiTextField"
|
|
19251
19251
|
}), {
|
|
@@ -27383,8 +27383,8 @@ const oh = V(Cg)(({ theme: e }) => ({ "& .MuiOutlinedInput-root": { gap: e.spaci
|
|
|
27383
27383
|
oh.defaultProps = { className: "MuiDateTextField", variant: "outlined" };
|
|
27384
27384
|
const EM = V(nn)(({ theme: e }) => ({ position: "absolute", top: e.spacing(2), right: e.spacing(2), padding: e.spacing() }));
|
|
27385
27385
|
EM.defaultProps = { "aria-label": "close", size: "medium", children: O.createElement(b2, null) };
|
|
27386
|
-
V(
|
|
27387
|
-
const IM = V(
|
|
27386
|
+
V(Ne)(({ theme: e }) => ({ flexDirection: "row", alignItems: "center", "& .MuiLinearProgress-withLabel-progress": { width: "100%", marginRight: e.spacing() }, "& .MuiLinearProgress-withLabel-label": { minWidth: 35 } }));
|
|
27387
|
+
const IM = V(Ne)(({ theme: e }) => ({ flex: "1 1 auto", overflow: "auto", maxHeight: "176px" }));
|
|
27388
27388
|
IM.defaultProps = { className: "MuiMenuScrollable" };
|
|
27389
27389
|
const hM = V(It)(({ theme: e }) => ({ flex: "0 0 auto", padding: e.spacing(1.5, 1.5, 0.5, 1.5), gap: e.spacing(1.5), display: "flex", flexDirection: "row", justifyContent: "flex-end", alignItems: "center", "& .MuiButton-textPrimary": { color: e.palette.gray.gray3 } }));
|
|
27390
27390
|
hM.defaultProps = { className: "MuiMenuButton" };
|
|
@@ -27401,7 +27401,7 @@ const Ke = ({ children: e, ...t }) => O.createElement(cr, Wo({ viewBox: "0 0 20
|
|
|
27401
27401
|
c(!1), typeof o == "function" && o(f);
|
|
27402
27402
|
}, onChange: (f) => {
|
|
27403
27403
|
p(f.target.value), typeof n == "function" && n(f);
|
|
27404
|
-
}, inputProps: { maxLength: t, ...s.inputProps }, label: s.label ? O.createElement(
|
|
27404
|
+
}, inputProps: { maxLength: t, ...s.inputProps }, label: s.label ? O.createElement(Ne, { className: "MuiFormLabel-withIcon", direction: "row", alignItems: "center", gap: 1 }, e, O.createElement("span", null, s.label)) : e, helperText: O.createElement(Ne, { direction: "row", justifyContent: "space-between", alignItems: "center", gap: 1 }, O.createElement("span", null, s.helperText), t ? (l || i) && `${u.length}/${t}` : null) }));
|
|
27405
27405
|
}), bM = V(Gt)(({ theme: e }) => ({ ...e.typography.h4, color: e.palette.gray.gray1, borderColor: e.palette.gray.gray4, height: e.spacing(4.5), display: "flex", letterSpacing: "0.5px", borderRadius: e.shape.borderRadius, "& .MuiButton-startIcon .MuiSvgIcon-root": { height: e.spacing(2), width: e.spacing(2) }, "&:not(.MuiButton-disableElevation) .MuiButton-startIcon": { color: e.palette.gray.gray2 }, "&:not(.MuiButton-disableElevation) .MuiButton-endIcon": { color: e.palette.gray.gray2 }, "&:hover": { backgroundColor: e.palette.gray.gray7, color: e.palette.gray.gray1, borderColor: e.palette.gray.gray4, boxShadow: "none" } }));
|
|
27406
27406
|
bM.defaultProps = { className: "MuiTimeButton", variant: "text" };
|
|
27407
27407
|
const Nn = ({ children: e, ...t }) => O.createElement(cr, Wo({ viewBox: "0 0 20 20", sx: { fill: "none" } }, t), e), br = ({ children: e, ...t }) => O.createElement(cr, Wo({ viewBox: "0 0 20 20", sx: { fill: "none" } }, t), e);
|
|
@@ -30093,10 +30093,10 @@ var ee = {
|
|
|
30093
30093
|
setImmediate: fh,
|
|
30094
30094
|
asap: TD
|
|
30095
30095
|
};
|
|
30096
|
-
function
|
|
30096
|
+
function je(e, t, n, o, r) {
|
|
30097
30097
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), o && (this.request = o), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
30098
30098
|
}
|
|
30099
|
-
ee.inherits(
|
|
30099
|
+
ee.inherits(je, Error, {
|
|
30100
30100
|
toJSON: function() {
|
|
30101
30101
|
return {
|
|
30102
30102
|
// Standard
|
|
@@ -30117,7 +30117,7 @@ ee.inherits(Ue, Error, {
|
|
|
30117
30117
|
};
|
|
30118
30118
|
}
|
|
30119
30119
|
});
|
|
30120
|
-
const ph =
|
|
30120
|
+
const ph = je.prototype, Ch = {};
|
|
30121
30121
|
[
|
|
30122
30122
|
"ERR_BAD_OPTION_VALUE",
|
|
30123
30123
|
"ERR_BAD_OPTION",
|
|
@@ -30135,13 +30135,13 @@ const ph = Ue.prototype, Ch = {};
|
|
|
30135
30135
|
].forEach((e) => {
|
|
30136
30136
|
Ch[e] = { value: e };
|
|
30137
30137
|
});
|
|
30138
|
-
Object.defineProperties(
|
|
30138
|
+
Object.defineProperties(je, Ch);
|
|
30139
30139
|
Object.defineProperty(ph, "isAxiosError", { value: !0 });
|
|
30140
|
-
|
|
30140
|
+
je.from = (e, t, n, o, r, i) => {
|
|
30141
30141
|
const s = Object.create(ph);
|
|
30142
30142
|
return ee.toFlatObject(e, s, function(l) {
|
|
30143
30143
|
return l !== Error.prototype;
|
|
30144
|
-
}, (A) => A !== "isAxiosError"),
|
|
30144
|
+
}, (A) => A !== "isAxiosError"), je.call(s, e.message, t, n, o, r), s.cause = e, s.name = e.name, i && Object.assign(s, i), s;
|
|
30145
30145
|
};
|
|
30146
30146
|
var FD = null;
|
|
30147
30147
|
function id(e) {
|
|
@@ -30179,7 +30179,7 @@ function fc(e, t, n) {
|
|
|
30179
30179
|
if (ee.isDate(C))
|
|
30180
30180
|
return C.toISOString();
|
|
30181
30181
|
if (!l && ee.isBlob(C))
|
|
30182
|
-
throw new
|
|
30182
|
+
throw new je("Blob is not supported. Use a Buffer instead.");
|
|
30183
30183
|
return ee.isArrayBuffer(C) || ee.isTypedArray(C) ? l && typeof Blob == "function" ? new Blob([C]) : Buffer.from(C) : C;
|
|
30184
30184
|
}
|
|
30185
30185
|
function u(C, g, d) {
|
|
@@ -30427,7 +30427,7 @@ const Xg = {
|
|
|
30427
30427
|
return JSON.parse(t);
|
|
30428
30428
|
} catch (A) {
|
|
30429
30429
|
if (s)
|
|
30430
|
-
throw A.name === "SyntaxError" ?
|
|
30430
|
+
throw A.name === "SyntaxError" ? je.from(A, je.ERR_BAD_RESPONSE, this, null, this.response) : A;
|
|
30431
30431
|
}
|
|
30432
30432
|
}
|
|
30433
30433
|
return t;
|
|
@@ -30666,16 +30666,16 @@ function Qh(e) {
|
|
|
30666
30666
|
return !!(e && e.__CANCEL__);
|
|
30667
30667
|
}
|
|
30668
30668
|
function sa(e, t, n) {
|
|
30669
|
-
|
|
30669
|
+
je.call(this, e ?? "canceled", je.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
30670
30670
|
}
|
|
30671
|
-
ee.inherits(sa,
|
|
30671
|
+
ee.inherits(sa, je, {
|
|
30672
30672
|
__CANCEL__: !0
|
|
30673
30673
|
});
|
|
30674
30674
|
function vh(e, t, n) {
|
|
30675
30675
|
const o = n.config.validateStatus;
|
|
30676
|
-
!n.status || !o || o(n.status) ? e(n) : t(new
|
|
30676
|
+
!n.status || !o || o(n.status) ? e(n) : t(new je(
|
|
30677
30677
|
"Request failed with status code " + n.status,
|
|
30678
|
-
[
|
|
30678
|
+
[je.ERR_BAD_REQUEST, je.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
30679
30679
|
n.config,
|
|
30680
30680
|
n.request,
|
|
30681
30681
|
n
|
|
@@ -30928,15 +30928,15 @@ var aP = iP && function(e) {
|
|
|
30928
30928
|
"onloadend" in d ? d.onloadend = E : d.onreadystatechange = function() {
|
|
30929
30929
|
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
30930
30930
|
}, d.onabort = function() {
|
|
30931
|
-
d && (o(new
|
|
30931
|
+
d && (o(new je("Request aborted", je.ECONNABORTED, e, d)), d = null);
|
|
30932
30932
|
}, d.onerror = function() {
|
|
30933
|
-
o(new
|
|
30933
|
+
o(new je("Network Error", je.ERR_NETWORK, e, d)), d = null;
|
|
30934
30934
|
}, d.ontimeout = function() {
|
|
30935
30935
|
let Q = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
30936
30936
|
const I = r.transitional || Bh;
|
|
30937
|
-
r.timeoutErrorMessage && (Q = r.timeoutErrorMessage), o(new
|
|
30937
|
+
r.timeoutErrorMessage && (Q = r.timeoutErrorMessage), o(new je(
|
|
30938
30938
|
Q,
|
|
30939
|
-
I.clarifyTimeoutError ?
|
|
30939
|
+
I.clarifyTimeoutError ? je.ETIMEDOUT : je.ECONNABORTED,
|
|
30940
30940
|
e,
|
|
30941
30941
|
d
|
|
30942
30942
|
)), d = null;
|
|
@@ -30947,7 +30947,7 @@ var aP = iP && function(e) {
|
|
|
30947
30947
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
30948
30948
|
const m = qD(r.url);
|
|
30949
30949
|
if (m && mn.protocols.indexOf(m) === -1) {
|
|
30950
|
-
o(new
|
|
30950
|
+
o(new je("Unsupported protocol " + m + ":", je.ERR_BAD_REQUEST, e));
|
|
30951
30951
|
return;
|
|
30952
30952
|
}
|
|
30953
30953
|
d.send(i || null);
|
|
@@ -30961,11 +30961,11 @@ const sP = (e, t) => {
|
|
|
30961
30961
|
if (!r) {
|
|
30962
30962
|
r = !0, A();
|
|
30963
30963
|
const u = c instanceof Error ? c : this.reason;
|
|
30964
|
-
o.abort(u instanceof
|
|
30964
|
+
o.abort(u instanceof je ? u : new sa(u instanceof Error ? u.message : u));
|
|
30965
30965
|
}
|
|
30966
30966
|
};
|
|
30967
30967
|
let s = t && setTimeout(() => {
|
|
30968
|
-
s = null, i(new
|
|
30968
|
+
s = null, i(new je(`timeout ${t} of ms exceeded`, je.ETIMEDOUT));
|
|
30969
30969
|
}, t);
|
|
30970
30970
|
const A = () => {
|
|
30971
30971
|
e && (s && clearTimeout(s), s = null, e.forEach((c) => {
|
|
@@ -31057,7 +31057,7 @@ const lP = function* (e, t) {
|
|
|
31057
31057
|
Cc && ((e) => {
|
|
31058
31058
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
31059
31059
|
!rl[t] && (rl[t] = ee.isFunction(e[t]) ? (n) => n[t]() : (n, o) => {
|
|
31060
|
-
throw new
|
|
31060
|
+
throw new je(`Response type '${t}' is not supported`, je.ERR_NOT_SUPPORT, o);
|
|
31061
31061
|
});
|
|
31062
31062
|
});
|
|
31063
31063
|
})(new Response());
|
|
@@ -31158,11 +31158,11 @@ var CP = Cc && (async (e) => {
|
|
|
31158
31158
|
});
|
|
31159
31159
|
} catch (E) {
|
|
31160
31160
|
throw g && g(), E && E.name === "TypeError" && /fetch/i.test(E.message) ? Object.assign(
|
|
31161
|
-
new
|
|
31161
|
+
new je("Network Error", je.ERR_NETWORK, e, C),
|
|
31162
31162
|
{
|
|
31163
31163
|
cause: E.cause || E
|
|
31164
31164
|
}
|
|
31165
|
-
) :
|
|
31165
|
+
) : je.from(E, E && E.code, e, C);
|
|
31166
31166
|
}
|
|
31167
31167
|
});
|
|
31168
31168
|
const Ad = {
|
|
@@ -31190,7 +31190,7 @@ var Th = {
|
|
|
31190
31190
|
n = e[i];
|
|
31191
31191
|
let s;
|
|
31192
31192
|
if (o = n, !EP(n) && (o = Ad[(s = String(n)).toLowerCase()], o === void 0))
|
|
31193
|
-
throw new
|
|
31193
|
+
throw new je(`Unknown adapter '${s}'`);
|
|
31194
31194
|
if (o)
|
|
31195
31195
|
break;
|
|
31196
31196
|
r[s || "#" + i] = o;
|
|
@@ -31202,7 +31202,7 @@ var Th = {
|
|
|
31202
31202
|
let s = t ? i.length > 1 ? `since :
|
|
31203
31203
|
` + i.map(_1).join(`
|
|
31204
31204
|
`) : " " + _1(i[0]) : "as no adapter specified";
|
|
31205
|
-
throw new
|
|
31205
|
+
throw new je(
|
|
31206
31206
|
"There is no suitable adapter to dispatch the request " + s,
|
|
31207
31207
|
"ERR_NOT_SUPPORT"
|
|
31208
31208
|
);
|
|
@@ -31246,9 +31246,9 @@ _g.transitional = function(t, n, o) {
|
|
|
31246
31246
|
}
|
|
31247
31247
|
return (i, s, A) => {
|
|
31248
31248
|
if (t === !1)
|
|
31249
|
-
throw new
|
|
31249
|
+
throw new je(
|
|
31250
31250
|
r(s, " has been removed" + (n ? " in " + n : "")),
|
|
31251
|
-
|
|
31251
|
+
je.ERR_DEPRECATED
|
|
31252
31252
|
);
|
|
31253
31253
|
return n && !J1[s] && (J1[s] = !0, console.warn(
|
|
31254
31254
|
r(
|
|
@@ -31260,7 +31260,7 @@ _g.transitional = function(t, n, o) {
|
|
|
31260
31260
|
};
|
|
31261
31261
|
function IP(e, t, n) {
|
|
31262
31262
|
if (typeof e != "object")
|
|
31263
|
-
throw new
|
|
31263
|
+
throw new je("options must be an object", je.ERR_BAD_OPTION_VALUE);
|
|
31264
31264
|
const o = Object.keys(e);
|
|
31265
31265
|
let r = o.length;
|
|
31266
31266
|
for (; r-- > 0; ) {
|
|
@@ -31268,11 +31268,11 @@ function IP(e, t, n) {
|
|
|
31268
31268
|
if (s) {
|
|
31269
31269
|
const A = e[i], l = A === void 0 || s(A, i, e);
|
|
31270
31270
|
if (l !== !0)
|
|
31271
|
-
throw new
|
|
31271
|
+
throw new je("option " + i + " must be " + l, je.ERR_BAD_OPTION_VALUE);
|
|
31272
31272
|
continue;
|
|
31273
31273
|
}
|
|
31274
31274
|
if (n !== !0)
|
|
31275
|
-
throw new
|
|
31275
|
+
throw new je("Unknown option " + i, je.ERR_BAD_OPTION);
|
|
31276
31276
|
}
|
|
31277
31277
|
}
|
|
31278
31278
|
var ld = {
|
|
@@ -31566,7 +31566,7 @@ Yt.CancelToken = hP;
|
|
|
31566
31566
|
Yt.isCancel = Qh;
|
|
31567
31567
|
Yt.VERSION = Fh;
|
|
31568
31568
|
Yt.toFormData = fc;
|
|
31569
|
-
Yt.AxiosError =
|
|
31569
|
+
Yt.AxiosError = je;
|
|
31570
31570
|
Yt.Cancel = Yt.CanceledError;
|
|
31571
31571
|
Yt.all = function(t) {
|
|
31572
31572
|
return Promise.all(t);
|
|
@@ -33804,7 +33804,7 @@ const $n = {
|
|
|
33804
33804
|
break;
|
|
33805
33805
|
}
|
|
33806
33806
|
return e;
|
|
33807
|
-
}, NL = "enable_connectors_clicked", UL = "learn_more_clicked", jL = "connector_card_expand_clicked", VL = "connector_card_collapsed_clicked", HL = "connector_card_refresh_clicked", WL = "connector_cards_loaded", zL = "connector_whats_new_card_viewed", YL = "connector_whats_new_explore_now_clicked", GL = "connector_whats_new_learn_more_clicked", XL = "connector_whats_new_dismissed", KL = "connector_create_new_object_clicked", _L = "connector_link_new_object_clicked", ZL = "connector_new_object_created_by_form", JL = "connector_new_object_linked_by_form", qL = "connector_object_unlinked_by_form", $L = "connector_link_preview_clicked", eN = "connector_create_panel_cancel_clicked", tN = "connector_create_panel_back_clicked", nN = "card_loaded_on_click", oN = "card_loaded", rN = "schedule_call_clicked", iN = "schedule_call_cross_clicked", Zh = "CONNECTOR_EDIT_CLICKED", aN = "CONNECTOR_EDIT_REQUEST_SEND", sN = "CONNECTOR_EDIT_CANCELLED", AN = "CONNECTOR_EDIT_BACK_CLICKED", lN = "CONNECTOR_EDIT_SUCCESS", cN = "connector_video_clicked", uN = "connector_card_error", dN = "Need setup help?", gN = "Expert setup assistance available! Book a 15 min call with our integration specialist.", fN = "Schedule call", pN = "https://calendly.com/aditya-s-grexit/15-min-connector-setup", ap = "agent_panel", Au = "hiver_schedule_call_close_button_click", CN = V(
|
|
33807
|
+
}, NL = "enable_connectors_clicked", UL = "learn_more_clicked", jL = "connector_card_expand_clicked", VL = "connector_card_collapsed_clicked", HL = "connector_card_refresh_clicked", WL = "connector_cards_loaded", zL = "connector_whats_new_card_viewed", YL = "connector_whats_new_explore_now_clicked", GL = "connector_whats_new_learn_more_clicked", XL = "connector_whats_new_dismissed", KL = "connector_create_new_object_clicked", _L = "connector_link_new_object_clicked", ZL = "connector_new_object_created_by_form", JL = "connector_new_object_linked_by_form", qL = "connector_object_unlinked_by_form", $L = "connector_link_preview_clicked", eN = "connector_create_panel_cancel_clicked", tN = "connector_create_panel_back_clicked", nN = "card_loaded_on_click", oN = "card_loaded", rN = "schedule_call_clicked", iN = "schedule_call_cross_clicked", Zh = "CONNECTOR_EDIT_CLICKED", aN = "CONNECTOR_EDIT_REQUEST_SEND", sN = "CONNECTOR_EDIT_CANCELLED", AN = "CONNECTOR_EDIT_BACK_CLICKED", lN = "CONNECTOR_EDIT_SUCCESS", cN = "connector_video_clicked", uN = "connector_card_error", dN = "Need setup help?", gN = "Expert setup assistance available! Book a 15 min call with our integration specialist.", fN = "Schedule call", pN = "https://calendly.com/aditya-s-grexit/15-min-connector-setup", ap = "agent_panel", Au = "hiver_schedule_call_close_button_click", CN = V(Ne)`
|
|
33808
33808
|
padding: 12px;
|
|
33809
33809
|
width: 250px;
|
|
33810
33810
|
min-height: 151px;
|
|
@@ -33812,7 +33812,7 @@ const $n = {
|
|
|
33812
33812
|
margin-bottom: 5px;
|
|
33813
33813
|
background-color: ${Pe.palette.gray.white};
|
|
33814
33814
|
box-shadow: 0px 0px 8px 0px #0000001a;
|
|
33815
|
-
`, EN = V(
|
|
33815
|
+
`, EN = V(Ne)`
|
|
33816
33816
|
width: 100%;
|
|
33817
33817
|
gap: 4px;
|
|
33818
33818
|
justify-content: space-between;
|
|
@@ -33857,13 +33857,13 @@ const $n = {
|
|
|
33857
33857
|
};
|
|
33858
33858
|
return !o || !n ? null : /* @__PURE__ */ b.jsxs(CN, { justifyContent: "space-between", alignItems: "baseline", gap: "16px", children: [
|
|
33859
33859
|
/* @__PURE__ */ b.jsxs(EN, { gap: "4px", children: [
|
|
33860
|
-
/* @__PURE__ */ b.jsxs(
|
|
33860
|
+
/* @__PURE__ */ b.jsxs(Ne, { direction: "row", justifyContent: "space-between", children: [
|
|
33861
33861
|
/* @__PURE__ */ b.jsx(mN, { variant: "body1_medium", children: dN }),
|
|
33862
|
-
/* @__PURE__ */ b.jsx(
|
|
33862
|
+
/* @__PURE__ */ b.jsx(Ne, { onClick: i, position: "absolute", top: "4px", right: "4px", children: /* @__PURE__ */ b.jsx(zt, { title: "Close", placement: "bottom", children: /* @__PURE__ */ b.jsx(nn, { children: /* @__PURE__ */ b.jsx(hN, {}) }) }) })
|
|
33863
33863
|
] }),
|
|
33864
33864
|
/* @__PURE__ */ b.jsx(QN, { variant: "body2", children: gN })
|
|
33865
33865
|
] }),
|
|
33866
|
-
/* @__PURE__ */ b.jsx(
|
|
33866
|
+
/* @__PURE__ */ b.jsx(Ne, { onClick: s, direction: "row", alignItems: "center", children: /* @__PURE__ */ b.jsxs(IN, { variant: "outlined", size: "small", children: [
|
|
33867
33867
|
/* @__PURE__ */ b.jsx(BN, {}),
|
|
33868
33868
|
fN
|
|
33869
33869
|
] }) })
|
|
@@ -34290,7 +34290,7 @@ const YN = V(It)`
|
|
|
34290
34290
|
border: 1px solid ${Pe.palette.gray.gray5};
|
|
34291
34291
|
border-radius: 8px;
|
|
34292
34292
|
width: 100%;
|
|
34293
|
-
`, GN = V(
|
|
34293
|
+
`, GN = V(Ne)`
|
|
34294
34294
|
padding: 11px;
|
|
34295
34295
|
box-sizing: border-box;
|
|
34296
34296
|
width: 100%;
|
|
@@ -34302,9 +34302,9 @@ const YN = V(It)`
|
|
|
34302
34302
|
&.hiver-card-expanded {
|
|
34303
34303
|
background: ${Pe.palette.gray.gray6};
|
|
34304
34304
|
}
|
|
34305
|
-
`, oB = V(
|
|
34305
|
+
`, oB = V(Ne)`
|
|
34306
34306
|
flex-direction: row;
|
|
34307
|
-
align-items:
|
|
34307
|
+
align-items: stretch;
|
|
34308
34308
|
`, XN = V(Ge)`
|
|
34309
34309
|
max-width: 179px;
|
|
34310
34310
|
letter-spacing: 0.5px;
|
|
@@ -34487,7 +34487,7 @@ const YN = V(It)`
|
|
|
34487
34487
|
`, sU = V(It)`
|
|
34488
34488
|
border: 1px solid ${Ae.gray.gray5};
|
|
34489
34489
|
border-radius: 4px;
|
|
34490
|
-
`, AU = V(
|
|
34490
|
+
`, AU = V(Ne)`
|
|
34491
34491
|
flex-direction: row;
|
|
34492
34492
|
align-items: center;
|
|
34493
34493
|
background-color: #e1e8ff;
|
|
@@ -34514,7 +34514,7 @@ const YN = V(It)`
|
|
|
34514
34514
|
li {
|
|
34515
34515
|
display: list-item;
|
|
34516
34516
|
}
|
|
34517
|
-
`, dU = V(
|
|
34517
|
+
`, dU = V(Ne)`
|
|
34518
34518
|
margin-bottom: 6px;
|
|
34519
34519
|
list-style-type: disc;
|
|
34520
34520
|
margin-left: ${(e) => e.marginLeft ? `${e.marginLeft}` : "14px"};
|
|
@@ -36090,7 +36090,7 @@ const _r = "success", dr = "error", xB = "Some error occured. Please contact sup
|
|
|
36090
36090
|
width: "26px",
|
|
36091
36091
|
color: "#FFFFFF",
|
|
36092
36092
|
marginRight: "4px"
|
|
36093
|
-
})), xj = V(
|
|
36093
|
+
})), xj = V(Ne)`
|
|
36094
36094
|
flex-direction: row;
|
|
36095
36095
|
padding: 0 10px;
|
|
36096
36096
|
img {
|
|
@@ -36673,7 +36673,7 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36673
36673
|
sm_ids: s
|
|
36674
36674
|
}), r(Di({ ...n, externalResourceId: E })));
|
|
36675
36675
|
};
|
|
36676
|
-
return /* @__PURE__ */ b.jsxs(
|
|
36676
|
+
return /* @__PURE__ */ b.jsxs(Ne, { maxHeight: "340px", maxWidth: "700px", padding: "32px 0px 32px 32px", overflow: "auto", children: [
|
|
36677
36677
|
/* @__PURE__ */ b.jsx(Ge, { variant: "h2", color: "gray.black", marginBottom: "16px", children: t }),
|
|
36678
36678
|
/* @__PURE__ */ b.jsx(Q2, { ref: c, children: /* @__PURE__ */ b.jsxs(B2, { stickyHeader: !0, children: [
|
|
36679
36679
|
/* @__PURE__ */ b.jsx(qN, { children: /* @__PURE__ */ b.jsxs(pg, { children: [
|
|
@@ -36715,8 +36715,8 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36715
36715
|
) : I
|
|
36716
36716
|
);
|
|
36717
36717
|
};
|
|
36718
|
-
return i ? /* @__PURE__ */ b.jsx(Ur, { variant: "rounded", width: "100%", height: 16, animation: "wave", margin: "4px 0 0 0" }) : g ? /* @__PURE__ */ b.jsxs(oB, { gap: "
|
|
36719
|
-
/* @__PURE__ */ b.jsx("img", { src: MV }),
|
|
36718
|
+
return i ? /* @__PURE__ */ b.jsx(Ur, { variant: "rounded", width: "100%", height: 16, animation: "wave", margin: "4px 0 0 0" }) : g ? /* @__PURE__ */ b.jsxs(oB, { gap: "7px", children: [
|
|
36719
|
+
/* @__PURE__ */ b.jsx(Ne, { marginTop: "6px", children: /* @__PURE__ */ b.jsx("img", { src: MV }) }),
|
|
36720
36720
|
/* @__PURE__ */ b.jsx(rB, { variant: "body2", children: A ? E(A) : QL })
|
|
36721
36721
|
] }) : /* @__PURE__ */ b.jsx(zt, { title: p ? C : null, placement: "bottom", children: o ? /* @__PURE__ */ b.jsx(iB, { ref: u, target: "_blank", underline: "none", href: o, fontSize: "13px", children: C || xA }) : /* @__PURE__ */ b.jsx(JN, { ref: c, variant: "body2", children: C || xA }) });
|
|
36722
36722
|
}, XV = "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", lf = ({
|
|
@@ -36739,7 +36739,7 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36739
36739
|
maxWidth: "none"
|
|
36740
36740
|
}
|
|
36741
36741
|
},
|
|
36742
|
-
children: /* @__PURE__ */ b.jsxs(
|
|
36742
|
+
children: /* @__PURE__ */ b.jsxs(Ne, { direction: "row", children: [
|
|
36743
36743
|
o && /* @__PURE__ */ b.jsx(It, { position: "absolute", right: 10, top: 10, children: /* @__PURE__ */ b.jsx(zt, { title: "Close", placement: "bottom", children: /* @__PURE__ */ b.jsx(nn, { onClick: () => t(!1), children: /* @__PURE__ */ b.jsx("img", { src: XV }) }) }) }),
|
|
36744
36744
|
n
|
|
36745
36745
|
] })
|
|
@@ -36792,7 +36792,7 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36792
36792
|
setShowModal: P
|
|
36793
36793
|
}
|
|
36794
36794
|
) }),
|
|
36795
|
-
/* @__PURE__ */ b.jsx(KN, { className: c ? "" : "slideUp", height: H, children: /* @__PURE__ */ b.jsx(
|
|
36795
|
+
/* @__PURE__ */ b.jsx(KN, { className: c ? "" : "slideUp", height: H, children: /* @__PURE__ */ b.jsx(Ne, { ref: W, gap: 1, margin: "12px", children: B && (!(L != null && L.length) || K) ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
36796
36796
|
/* @__PURE__ */ b.jsx(Ur, { variant: "rounded", width: "100%", height: 20, animation: "wave" }),
|
|
36797
36797
|
/* @__PURE__ */ b.jsx(Ur, { variant: "rounded", width: "100%", height: 20, animation: "wave" })
|
|
36798
36798
|
] }) : /* @__PURE__ */ b.jsx(b.Fragment, { children: K ? /* @__PURE__ */ b.jsx(It, { margin: "8px 0", children: /* @__PURE__ */ b.jsx(
|
|
@@ -36822,7 +36822,7 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36822
36822
|
)
|
|
36823
36823
|
] }, Z);
|
|
36824
36824
|
}) : /* @__PURE__ */ b.jsx(It, { margin: "8px 0", children: /* @__PURE__ */ b.jsx(rB, { children: vL }) }) }) }) }),
|
|
36825
|
-
G && /* @__PURE__ */ b.jsx(iU, { variant: "body2_medium", onClick: _, children: F ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
36825
|
+
!E && G && /* @__PURE__ */ b.jsx(iU, { variant: "body2_medium", onClick: _, children: F ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
36826
36826
|
I ? EU : dp,
|
|
36827
36827
|
/* @__PURE__ */ b.jsx(rU, { src: CU, transformAngle: D })
|
|
36828
36828
|
] }) : dp })
|
|
@@ -36894,7 +36894,7 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36894
36894
|
r && (i = `${i}_${r}`), t.specificConnectorApiStatus = {
|
|
36895
36895
|
...t.specificConnectorApiStatus ?? {},
|
|
36896
36896
|
[i]: ke.FAILED
|
|
36897
|
-
};
|
|
36897
|
+
}, console.log("SWETHA fetchSpecificCardData state : ", t), console.log("SWETHA fetchSpecificCardData action : ", n);
|
|
36898
36898
|
});
|
|
36899
36899
|
}
|
|
36900
36900
|
}), DA = To(
|
|
@@ -36924,13 +36924,15 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36924
36924
|
externalResourceId: r
|
|
36925
36925
|
}, i) => {
|
|
36926
36926
|
try {
|
|
36927
|
-
const s = await $V(e, t, n, r)
|
|
36928
|
-
|
|
36927
|
+
const s = await $V(e, t, n, r);
|
|
36928
|
+
console.log("SWETHA fetchSpecificCardData ayncthunk 1 : ", s);
|
|
36929
|
+
const A = s == null ? void 0 : s.data, l = s == null ? void 0 : s.status;
|
|
36930
|
+
return A ? (o && un({ message: TB, type: _r }), { data: _h(A), status: l }) : (console.log("SWETHA fetchSpecificCardData ayncthunk 2 : ", l), o && un({ message: xB, type: dr }), {
|
|
36929
36931
|
data: {},
|
|
36930
36932
|
status: l
|
|
36931
36933
|
});
|
|
36932
36934
|
} catch (s) {
|
|
36933
|
-
return i.rejectWithValue(s);
|
|
36935
|
+
return console.log("SWETHA fetchSpecificCardData ayncthunk 3 : ", s), i.rejectWithValue(s);
|
|
36934
36936
|
}
|
|
36935
36937
|
}
|
|
36936
36938
|
), iH = LB.reducer, Op = LB.actions, NB = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.76618%202.23341C8.79952%201.26675%207.47285%200.666748%205.99952%200.666748C3.05285%200.666748%200.672852%203.05341%200.672852%206.00008C0.672852%208.94675%203.05285%2011.3334%205.99952%2011.3334C8.48619%2011.3334%2010.5595%209.63341%2011.1529%207.33341H9.76618C9.21952%208.88675%207.73952%2010.0001%205.99952%2010.0001C3.79285%2010.0001%201.99952%208.20675%201.99952%206.00008C1.99952%203.79341%203.79285%202.00008%205.99952%202.00008C7.10618%202.00008%208.09285%202.46008%208.81285%203.18675L6.66618%205.33341H11.3329V0.666748L9.76618%202.23341Z'%20fill='%236C7B94'/%3e%3c/svg%3e", aH = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.4587%206.7528C11.2244%206.51848%2010.8445%206.51848%2010.6102%206.7528C10.3759%206.98711%2010.3759%207.36701%2010.6102%207.60132L11.4587%206.7528ZM12.1916%208.33414L12.6158%207.90988L12.1916%208.33414ZM8.33462%2012.1911L8.75888%2011.7668L8.33462%2012.1911ZM7.6018%2010.6097C7.36748%2010.3754%206.98758%2010.3754%206.75327%2010.6097C6.51895%2010.8441%206.51895%2011.224%206.75327%2011.4583L7.6018%2010.6097ZM4.43911%209.14411C4.67343%209.37842%205.05333%209.37842%205.28764%209.14411C5.52196%208.9098%205.52196%208.5299%205.28764%208.29558L4.43911%209.14411ZM3.70629%207.56276L4.13056%207.1385L3.70629%207.56276ZM7.56324%203.70582L7.9875%203.28155L7.56324%203.70582ZM8.29606%205.28716C8.53037%205.52148%208.91027%205.52148%209.14459%205.28716C9.3789%205.05285%209.3789%204.67295%209.14459%204.43864L8.29606%205.28716ZM10.6102%207.60132L11.7673%208.75841L12.6158%207.90988L11.4587%206.7528L10.6102%207.60132ZM11.7673%208.75841C12.1662%209.15735%2012.3904%209.69843%2012.3904%2010.2626L13.5904%2010.2626C13.5904%209.38017%2013.2398%208.53387%2012.6158%207.90988L11.7673%208.75841ZM12.3904%2010.2626C12.3904%2010.8268%2012.1662%2011.3679%2011.7673%2011.7668L12.6158%2012.6154C13.2398%2011.9914%2013.5904%2011.1451%2013.5904%2010.2626L12.3904%2010.2626ZM11.7673%2011.7668C10.9365%2012.5976%209.58963%2012.5976%208.75888%2011.7668L7.91035%2012.6154C9.20973%2013.9147%2011.3164%2013.9147%2012.6158%2012.6154L11.7673%2011.7668ZM8.75888%2011.7668L7.6018%2010.6097L6.75327%2011.4583L7.91035%2012.6154L8.75888%2011.7668ZM5.28764%208.29558L4.13056%207.1385L3.28203%207.98703L4.43911%209.14411L5.28764%208.29558ZM4.13056%207.1385C3.73162%206.73956%203.50749%206.19848%203.50749%205.63429L2.30749%205.63429C2.30749%206.51674%202.65804%207.36304%203.28203%207.98703L4.13056%207.1385ZM3.50749%205.63429C3.50749%205.0701%203.73162%204.52902%204.13056%204.13008L3.28203%203.28155C2.65804%203.90554%202.30749%204.75184%202.30749%205.63429L3.50749%205.63429ZM4.13056%204.13008C4.96131%203.29933%206.30822%203.29933%207.13897%204.13008L7.9875%203.28155C6.68812%201.98217%204.58141%201.98217%203.28203%203.28155L4.13056%204.13008ZM7.13897%204.13008L8.29606%205.28716L9.14459%204.43864L7.9875%203.28155L7.13897%204.13008Z'%20fill='%236C7B94'/%3e%3crect%20x='5.08887'%20y='6.0791'%20width='1.33333'%20height='6.66667'%20rx='0.666667'%20transform='rotate(-45%205.08887%206.0791)'%20fill='%236C7B94'/%3e%3cpath%20d='M5.59961%2014.3998V12.7998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.7998%205.59961H14.3998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.40039%2011.2002H4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2002%202.40039V4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", sH = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5908_39767)'%3e%3cpath%20d='M9.37333%206.01333L9.98667%206.62667L3.94667%2012.6667H3.33333V12.0533L9.37333%206.01333ZM11.7733%202C11.6067%202%2011.4333%202.06667%2011.3067%202.19333L10.0867%203.41333L12.5867%205.91333L13.8067%204.69333C14.0667%204.43333%2014.0667%204.01333%2013.8067%203.75333L12.2467%202.19333C12.1133%202.06%2011.9467%202%2011.7733%202ZM9.37333%204.12667L2%2011.5V14H4.5L11.8733%206.62667L9.37333%204.12667Z'%20fill='%236C7B94'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5908_39767'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", UB = (e) => e.write.createObjectList, jB = (e) => e.write.linkObjectList, AH = (e) => e.write.editObjectList, lH = (e) => e.write.objectDict, cH = (e) => e.write.formFields, uH = (e) => e.write.previewCardData, dH = (e) => e.write.previewCardApiStatus, gH = (e) => e.write.linkCardApiStatus, fH = (e) => e.write.unlinkCardApiStatus, pH = (e) => e.write.dependentFieldsMap, CH = (e) => e.write.createFormApiStatus, EH = (e) => e.write.updateFormApiStatus, IH = (e) => e.write.currentResourceDetails, hH = (e) => e.write.currentResourceDetailsApiStatus, VB = (e) => e.write.currentCardInEdit, HB = (e) => e.write.hasUnsavedChanges, BH = ({
|
|
@@ -36958,10 +36960,10 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36958
36960
|
});
|
|
36959
36961
|
});
|
|
36960
36962
|
};
|
|
36961
|
-
return /* @__PURE__ */ b.jsx(lf, { shown: e, setShown: t, showCloseButton: !0, children: /* @__PURE__ */ b.jsxs(
|
|
36963
|
+
return /* @__PURE__ */ b.jsx(lf, { shown: e, setShown: t, showCloseButton: !0, children: /* @__PURE__ */ b.jsxs(Ne, { width: "400px", padding: "20px", gap: "8px", children: [
|
|
36962
36964
|
/* @__PURE__ */ b.jsx(Ge, { variant: "h2", children: OL }),
|
|
36963
36965
|
/* @__PURE__ */ b.jsx(Ge, { variant: "body2", children: SL }),
|
|
36964
|
-
/* @__PURE__ */ b.jsxs(
|
|
36966
|
+
/* @__PURE__ */ b.jsxs(Ne, { direction: "row", gap: "8px", marginTop: "20px", justifyContent: "flex-end", children: [
|
|
36965
36967
|
/* @__PURE__ */ b.jsx(Gt, { variant: "text", onClick: () => t(!1), children: nf }),
|
|
36966
36968
|
/* @__PURE__ */ b.jsx(Gt, { disabled: u, color: "error", onClick: p, children: Wh })
|
|
36967
36969
|
] })
|
|
@@ -36977,7 +36979,9 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
36977
36979
|
} = e, A = ri(), { availableFeatures: l, sendTrackingEvent: c, conversationId: u, currentSmIds: p } = Xn(so), { userGroupId: f } = ca() || {}, [B, C] = be(!!i), [g, d] = be(!1), [E, m] = be(!1), { id: h, title: Q, externalResourceId: I = "", connectorName: v = "", forms: y = [] } = t;
|
|
36978
36980
|
let w = h;
|
|
36979
36981
|
I && (w = `${w}_${I}`);
|
|
36980
|
-
const { data: F, cardType: S } = (n == null ? void 0 : n[w]) ?? {}, M = (r == null ? void 0 : r[w]) === ke.LOADING
|
|
36982
|
+
const { data: F, cardType: S } = (n == null ? void 0 : n[w]) ?? {}, M = (r == null ? void 0 : r[w]) === ke.LOADING;
|
|
36983
|
+
console.log("SWETHA in Card.tsx specificConnectorApiStatus: ", r);
|
|
36984
|
+
const P = !!(Ki(l, jh) && I), k = tn(() => {
|
|
36981
36985
|
var X, D;
|
|
36982
36986
|
if (!(Ki(l, BL) && y.some((z) => z.type === "edit")))
|
|
36983
36987
|
return !1;
|
|
@@ -37075,7 +37079,7 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
37075
37079
|
}
|
|
37076
37080
|
)
|
|
37077
37081
|
] });
|
|
37078
|
-
}, QH = V(
|
|
37082
|
+
}, QH = V(Ne)`
|
|
37079
37083
|
width: 100%;
|
|
37080
37084
|
height: 97px;
|
|
37081
37085
|
background-color: ${Pe.palette.purple.light};
|
|
@@ -37113,7 +37117,7 @@ Do you want to continue?`, cV = "Select an object to create", uV = "Select an ob
|
|
|
37113
37117
|
background-color: #e3dfff;
|
|
37114
37118
|
border: 1px solid ${Pe.palette.purple.primary};
|
|
37115
37119
|
}
|
|
37116
|
-
`, wH = V(
|
|
37120
|
+
`, wH = V(Ne)`
|
|
37117
37121
|
margin-top: 16px;
|
|
37118
37122
|
justify-content: center;
|
|
37119
37123
|
align-items: center;
|
|
@@ -40642,7 +40646,7 @@ const El = (e) => {
|
|
|
40642
40646
|
);
|
|
40643
40647
|
}
|
|
40644
40648
|
};
|
|
40645
|
-
return /* @__PURE__ */ b.jsxs(
|
|
40649
|
+
return /* @__PURE__ */ b.jsxs(Ne, { spacing: C, useFlexGap: !0, children: [
|
|
40646
40650
|
r ? /* @__PURE__ */ b.jsxs(
|
|
40647
40651
|
Ge,
|
|
40648
40652
|
{
|
|
@@ -40663,7 +40667,7 @@ const El = (e) => {
|
|
|
40663
40667
|
w()
|
|
40664
40668
|
] })
|
|
40665
40669
|
] });
|
|
40666
|
-
}, HY = V(
|
|
40670
|
+
}, HY = V(Ne)`
|
|
40667
40671
|
& .authform__section-title {
|
|
40668
40672
|
margin-top: 32px;
|
|
40669
40673
|
margin-bottom: -12px;
|
|
@@ -40689,7 +40693,7 @@ const El = (e) => {
|
|
|
40689
40693
|
};
|
|
40690
40694
|
return /* @__PURE__ */ b.jsx(HY, { spacing: c, children: e.map(({ id: g, title: d, formFields: E }) => /* @__PURE__ */ b.jsxs(O.Fragment, { children: [
|
|
40691
40695
|
d ? /* @__PURE__ */ b.jsx(Ge, { variant: "h3", className: "authform__section-title", children: d }) : null,
|
|
40692
|
-
/* @__PURE__ */ b.jsx(
|
|
40696
|
+
/* @__PURE__ */ b.jsx(Ne, { useFlexGap: !0, spacing: u, children: E.map((m) => {
|
|
40693
40697
|
var h, Q;
|
|
40694
40698
|
return i && typeof i == "object" && m.name in i && i[m.name] === !1 ? null : /* @__PURE__ */ b.jsx(
|
|
40695
40699
|
El,
|
|
@@ -40783,11 +40787,11 @@ const El = (e) => {
|
|
|
40783
40787
|
] })
|
|
40784
40788
|
] });
|
|
40785
40789
|
}, ZY = () => /* @__PURE__ */ b.jsxs(nB, { children: [
|
|
40786
|
-
/* @__PURE__ */ b.jsxs(
|
|
40790
|
+
/* @__PURE__ */ b.jsxs(Ne, { direction: "row", marginBottom: "12px", height: "36px", alignItems: "center", children: [
|
|
40787
40791
|
/* @__PURE__ */ b.jsx(eB, {}),
|
|
40788
40792
|
/* @__PURE__ */ b.jsx(tB, { variant: "h2", children: "Connectors" })
|
|
40789
40793
|
] }),
|
|
40790
|
-
/* @__PURE__ */ b.jsxs(
|
|
40794
|
+
/* @__PURE__ */ b.jsxs(Ne, { gap: "12px", children: [
|
|
40791
40795
|
/* @__PURE__ */ b.jsx(Ur, { variant: "rounded", width: "100%", height: "46px", animation: "wave" }),
|
|
40792
40796
|
/* @__PURE__ */ b.jsx(Ur, { variant: "rounded", width: "100%", height: "46px", animation: "wave" }),
|
|
40793
40797
|
/* @__PURE__ */ b.jsx(Ur, { variant: "rounded", width: "100%", height: "46px", animation: "wave" })
|
|
@@ -40856,7 +40860,7 @@ const El = (e) => {
|
|
|
40856
40860
|
] }) }, S);
|
|
40857
40861
|
})
|
|
40858
40862
|
] }, Q)),
|
|
40859
|
-
/* @__PURE__ */ b.jsx(
|
|
40863
|
+
/* @__PURE__ */ b.jsx(Ne, { flexDirection: "row", gap: "8px", marginBottom: "11.5px", children: d.map(({ text: Q, link: I, isAdminPanelLink: v }) => /* @__PURE__ */ b.jsx(gU, { variant: v ? "contained" : "text", children: /* @__PURE__ */ b.jsx(fU, { variant: "caption", onClick: (y) => m(y, I, v, !0), children: Q }) }, Q)) })
|
|
40860
40864
|
] }) })
|
|
40861
40865
|
] });
|
|
40862
40866
|
}, qY = V(Xo)`
|
|
@@ -40913,7 +40917,7 @@ const El = (e) => {
|
|
|
40913
40917
|
}
|
|
40914
40918
|
}, [t]), t && l && A.current && yd(
|
|
40915
40919
|
/* @__PURE__ */ b.jsxs(qY, { className: "layover-paper", elevation: 0, children: [
|
|
40916
|
-
/* @__PURE__ */ b.jsxs(
|
|
40920
|
+
/* @__PURE__ */ b.jsxs(Ne, { direction: "row", alignItems: "center", marginLeft: "-8px", children: [
|
|
40917
40921
|
/* @__PURE__ */ b.jsx(zt, { title: s, placement: "bottom", children: /* @__PURE__ */ b.jsx(nn, { onClick: o, children: /* @__PURE__ */ b.jsx($Y, { src: tG }) }) }),
|
|
40918
40922
|
/* @__PURE__ */ b.jsx(Ge, { children: i })
|
|
40919
40923
|
] }),
|
|
@@ -40921,11 +40925,11 @@ const El = (e) => {
|
|
|
40921
40925
|
] }),
|
|
40922
40926
|
A.current
|
|
40923
40927
|
);
|
|
40924
|
-
}, nG = V(
|
|
40928
|
+
}, nG = V(Ne)`
|
|
40925
40929
|
width: 100%;
|
|
40926
40930
|
border-radius: 8px;
|
|
40927
40931
|
border: 1px solid ${Pe.palette.gray.gray5};
|
|
40928
|
-
`, oG = V(
|
|
40932
|
+
`, oG = V(Ne)`
|
|
40929
40933
|
padding: 11px;
|
|
40930
40934
|
height: 46px;
|
|
40931
40935
|
background: ${Pe.palette.gray.gray6};
|
|
@@ -40959,7 +40963,7 @@ const El = (e) => {
|
|
|
40959
40963
|
return /* @__PURE__ */ b.jsxs(nG, { children: [
|
|
40960
40964
|
/* @__PURE__ */ b.jsxs(oG, { direction: "row", justifyContent: "space-between", children: [
|
|
40961
40965
|
p ? /* @__PURE__ */ b.jsx(Ur, { width: "100px", height: "24px" }) : /* @__PURE__ */ b.jsx(zt, { title: i ? u : "", children: /* @__PURE__ */ b.jsx(Ge, { variant: "h4", onMouseOver: (C) => f(C), onMouseLeave: (C) => f(C), children: u }) }),
|
|
40962
|
-
/* @__PURE__ */ b.jsxs(
|
|
40966
|
+
/* @__PURE__ */ b.jsxs(Ne, { direction: "row", alignItems: "center", children: [
|
|
40963
40967
|
A ? /* @__PURE__ */ b.jsx(zt, { title: Vh, placement: "bottom", children: /* @__PURE__ */ b.jsx(Rr, { onClick: (C) => B(C), children: /* @__PURE__ */ b.jsx("img", { src: NB }) }) }) : null,
|
|
40964
40968
|
/* @__PURE__ */ b.jsx(zt, { title: A ? Hh : tf, placement: "bottom", children: /* @__PURE__ */ b.jsx(Rr, { onClick: () => l((C) => !C), children: /* @__PURE__ */ b.jsx(af, { className: A ? "" : "hiver-up" }) }) })
|
|
40965
40969
|
] })
|
|
@@ -40985,7 +40989,7 @@ const El = (e) => {
|
|
|
40985
40989
|
padding: 12px;
|
|
40986
40990
|
display: flex;
|
|
40987
40991
|
justify-content: flex-end;
|
|
40988
|
-
`, vm = V(
|
|
40992
|
+
`, vm = V(Ne)`
|
|
40989
40993
|
margin-bottom: 25px;
|
|
40990
40994
|
padding-right: 12px;
|
|
40991
40995
|
flex-grow: 1;
|
|
@@ -40994,7 +40998,7 @@ const El = (e) => {
|
|
|
40994
40998
|
position: relative;
|
|
40995
40999
|
top: -5px;
|
|
40996
41000
|
}
|
|
40997
|
-
`, bm = V(
|
|
41001
|
+
`, bm = V(Ne)`
|
|
40998
41002
|
height: calc(100% - 44px);
|
|
40999
41003
|
overflow: auto;
|
|
41000
41004
|
&::-webkit-scrollbar {
|
|
@@ -41174,11 +41178,11 @@ const El = (e) => {
|
|
|
41174
41178
|
return wm;
|
|
41175
41179
|
}
|
|
41176
41180
|
return e;
|
|
41177
|
-
}, xm = ({ setShown: e, shown: t, title: n, description: o, buttons: r }) => /* @__PURE__ */ b.jsx(lf, { shown: t, setShown: e, showCloseButton: !0, children: /* @__PURE__ */ b.jsxs(
|
|
41181
|
+
}, xm = ({ setShown: e, shown: t, title: n, description: o, buttons: r }) => /* @__PURE__ */ b.jsx(lf, { shown: t, setShown: e, showCloseButton: !0, children: /* @__PURE__ */ b.jsxs(Ne, { width: "400px", padding: "20px", children: [
|
|
41178
41182
|
/* @__PURE__ */ b.jsx(Ge, { variant: "h2", marginBottom: "8px", children: n }),
|
|
41179
|
-
/* @__PURE__ */ b.jsx(
|
|
41183
|
+
/* @__PURE__ */ b.jsx(Ne, { gap: "4px", marginBottom: "20px", children: o.split(`
|
|
41180
41184
|
`).map((i, s) => /* @__PURE__ */ b.jsx(Ge, { variant: "body2", children: i }, s)) }),
|
|
41181
|
-
/* @__PURE__ */ b.jsx(
|
|
41185
|
+
/* @__PURE__ */ b.jsx(Ne, { direction: "row", justifyContent: "flex-end", gap: "8px", children: r.map((i) => /* @__PURE__ */ b.jsx(
|
|
41182
41186
|
Gt,
|
|
41183
41187
|
{
|
|
41184
41188
|
variant: i.variant,
|
|
@@ -41435,9 +41439,9 @@ const El = (e) => {
|
|
|
41435
41439
|
}
|
|
41436
41440
|
`, cG = (e) => /* @__PURE__ */ x.createElement("svg", { width: 20, height: 21, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ x.createElement("mask", { id: "mask0_4649_80352", style: {
|
|
41437
41441
|
maskType: "alpha"
|
|
41438
|
-
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 20, height: 21 }, /* @__PURE__ */ x.createElement("rect", { y: 0.320312, width: 20, height: 20, fill: "#D9D9D9" })), /* @__PURE__ */ x.createElement("g", { mask: "url(#mask0_4649_80352)" }, /* @__PURE__ */ x.createElement("path", { d: "M9.16797 14.4873H10.8346V11.154H14.168V9.4873H10.8346V6.15397H9.16797V9.4873H5.83464V11.154H9.16797V14.4873ZM10.0013 18.654C8.84852 18.654 7.76519 18.4352 6.7513 17.9977C5.73741 17.5602 4.85547 16.9665 4.10547 16.2165C3.35547 15.4665 2.76172 14.5845 2.32422 13.5706C1.88672 12.5567 1.66797 11.4734 1.66797 10.3206C1.66797 9.16786 1.88672 8.08453 2.32422 7.07064C2.76172 6.05675 3.35547 5.1748 4.10547 4.4248C4.85547 3.6748 5.73741 3.08105 6.7513 2.64355C7.76519 2.20605 8.84852 1.9873 10.0013 1.9873C11.1541 1.9873 12.2374 2.20605 13.2513 2.64355C14.2652 3.08105 15.1471 3.6748 15.8971 4.4248C16.6471 5.1748 17.2409 6.05675 17.6784 7.07064C18.1159 8.08453 18.3346 9.16786 18.3346 10.3206C18.3346 11.4734 18.1159 12.5567 17.6784 13.5706C17.2409 14.5845 16.6471 15.4665 15.8971 16.2165C15.1471 16.9665 14.2652 17.5602 13.2513 17.9977C12.2374 18.4352 11.1541 18.654 10.0013 18.654ZM10.0013 16.9873C11.8624 16.9873 13.4388 16.3415 14.7305 15.0498C16.0221 13.7581 16.668 12.1817 16.668 10.3206C16.668 8.45953 16.0221 6.88314 14.7305 5.59147C13.4388 4.2998 11.8624 3.65397 10.0013 3.65397C8.14019 3.65397 6.5638 4.2998 5.27214 5.59147C3.98047 6.88314 3.33464 8.45953 3.33464 10.3206C3.33464 12.1817 3.98047 13.7581 5.27214 15.0498C6.5638 16.3415 8.14019 16.9873 10.0013 16.9873Z", fill: "#4D596C" }))), uG = (e) => /* @__PURE__ */ x.createElement("svg", { width: 20, height: 21, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ x.createElement("path", { d: "M14.3462 8.73757C14.0406 8.43198 13.5451 8.43198 13.2395 8.73757C12.9339 9.04316 12.9339 9.53863 13.2395 9.84422L14.3462 8.73757ZM15.2392 10.7372L15.7925 10.1839L15.2392 10.7372ZM16.2377 13.1478L15.4552 13.1478L16.2377 13.1478ZM15.2392 15.5584L14.6859 15.0051L15.2392 15.5584ZM10.418 15.5584L9.86469 16.1118L10.418 15.5584ZM9.52499 13.5588C9.2194 13.2532 8.72393 13.2532 8.41834 13.5588C8.11275 13.8643 8.11275 14.3598 8.41834 14.6654L9.52499 13.5588ZM5.52477 11.7731C5.83036 12.0787 6.32583 12.0787 6.63142 11.7731C6.93701 11.4675 6.93701 10.972 6.63142 10.6665L5.52477 11.7731ZM9.45292 4.95224L10.0062 4.39892L9.45292 4.95224ZM10.346 6.95192C10.6515 7.25752 11.147 7.25752 11.4526 6.95192C11.7582 6.64633 11.7582 6.15087 11.4526 5.84527L10.346 6.95192ZM13.2395 9.84422L14.6859 11.2906L15.7925 10.1839L14.3462 8.73757L13.2395 9.84422ZM14.6859 11.2906C15.1785 11.7832 15.4552 12.4512 15.4552 13.1478L17.0202 13.1478C17.0202 12.0362 16.5786 10.97 15.7925 10.1839L14.6859 11.2906ZM15.4552 13.1478C15.4552 13.8445 15.1785 14.5125 14.6859 15.0051L15.7925 16.1118C16.5786 15.3257 17.0202 14.2595 17.0202 13.1478L15.4552 13.1478ZM14.6859 15.0051C13.6601 16.0308 11.9971 16.0308 10.9713 15.0051L9.86469 16.1118C11.5016 17.7487 14.1556 17.7487 15.7925 16.1118L14.6859 15.0051ZM10.9713 15.0051L9.52499 13.5588L8.41834 14.6654L9.86469 16.1118L10.9713 15.0051ZM6.63142 10.6665L5.18507 9.2201L4.07842 10.3268L5.52477 11.7731L6.63142 10.6665ZM5.18507 9.2201C4.69249 8.72752 4.41576 8.05944 4.41576 7.36283H2.85072C2.85072 8.47452 3.29234 9.54067 4.07842 10.3268L5.18507 9.2201ZM4.41576 7.36283C4.41576 6.66622 4.69249 5.99815 5.18507 5.50557L4.07842 4.39892C3.29234 5.185 2.85072 6.25115 2.85072 7.36283H4.41576ZM5.18507 5.50557C6.21081 4.47983 7.87386 4.47983 8.8996 5.50557L10.0062 4.39892C8.36932 2.76199 5.71534 2.76199 4.07842 4.39892L5.18507 5.50557ZM8.8996 5.50557L10.346 6.95192L11.4526 5.84527L10.0062 4.39892L8.8996 5.50557Z", fill: "#4D596C" }), /* @__PURE__ */ x.createElement("rect", { x: 6.36328, y: 7.91895, width: 1.66667, height: 8.33333, rx: 0.833333, transform: "rotate(-45 6.36328 7.91895)", fill: "#4D596C" })), dG = ({ onCreateClick: e, onLinkClick: t }) => /* @__PURE__ */ b.jsxs(
|
|
41442
|
+
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 20, height: 21 }, /* @__PURE__ */ x.createElement("rect", { y: 0.320312, width: 20, height: 20, fill: "#D9D9D9" })), /* @__PURE__ */ x.createElement("g", { mask: "url(#mask0_4649_80352)" }, /* @__PURE__ */ x.createElement("path", { d: "M9.16797 14.4873H10.8346V11.154H14.168V9.4873H10.8346V6.15397H9.16797V9.4873H5.83464V11.154H9.16797V14.4873ZM10.0013 18.654C8.84852 18.654 7.76519 18.4352 6.7513 17.9977C5.73741 17.5602 4.85547 16.9665 4.10547 16.2165C3.35547 15.4665 2.76172 14.5845 2.32422 13.5706C1.88672 12.5567 1.66797 11.4734 1.66797 10.3206C1.66797 9.16786 1.88672 8.08453 2.32422 7.07064C2.76172 6.05675 3.35547 5.1748 4.10547 4.4248C4.85547 3.6748 5.73741 3.08105 6.7513 2.64355C7.76519 2.20605 8.84852 1.9873 10.0013 1.9873C11.1541 1.9873 12.2374 2.20605 13.2513 2.64355C14.2652 3.08105 15.1471 3.6748 15.8971 4.4248C16.6471 5.1748 17.2409 6.05675 17.6784 7.07064C18.1159 8.08453 18.3346 9.16786 18.3346 10.3206C18.3346 11.4734 18.1159 12.5567 17.6784 13.5706C17.2409 14.5845 16.6471 15.4665 15.8971 16.2165C15.1471 16.9665 14.2652 17.5602 13.2513 17.9977C12.2374 18.4352 11.1541 18.654 10.0013 18.654ZM10.0013 16.9873C11.8624 16.9873 13.4388 16.3415 14.7305 15.0498C16.0221 13.7581 16.668 12.1817 16.668 10.3206C16.668 8.45953 16.0221 6.88314 14.7305 5.59147C13.4388 4.2998 11.8624 3.65397 10.0013 3.65397C8.14019 3.65397 6.5638 4.2998 5.27214 5.59147C3.98047 6.88314 3.33464 8.45953 3.33464 10.3206C3.33464 12.1817 3.98047 13.7581 5.27214 15.0498C6.5638 16.3415 8.14019 16.9873 10.0013 16.9873Z", fill: "#4D596C" }))), uG = (e) => /* @__PURE__ */ x.createElement("svg", { width: 20, height: 21, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ x.createElement("path", { d: "M14.3462 8.73757C14.0406 8.43198 13.5451 8.43198 13.2395 8.73757C12.9339 9.04316 12.9339 9.53863 13.2395 9.84422L14.3462 8.73757ZM15.2392 10.7372L15.7925 10.1839L15.2392 10.7372ZM16.2377 13.1478L15.4552 13.1478L16.2377 13.1478ZM15.2392 15.5584L14.6859 15.0051L15.2392 15.5584ZM10.418 15.5584L9.86469 16.1118L10.418 15.5584ZM9.52499 13.5588C9.2194 13.2532 8.72393 13.2532 8.41834 13.5588C8.11275 13.8643 8.11275 14.3598 8.41834 14.6654L9.52499 13.5588ZM5.52477 11.7731C5.83036 12.0787 6.32583 12.0787 6.63142 11.7731C6.93701 11.4675 6.93701 10.972 6.63142 10.6665L5.52477 11.7731ZM9.45292 4.95224L10.0062 4.39892L9.45292 4.95224ZM10.346 6.95192C10.6515 7.25752 11.147 7.25752 11.4526 6.95192C11.7582 6.64633 11.7582 6.15087 11.4526 5.84527L10.346 6.95192ZM13.2395 9.84422L14.6859 11.2906L15.7925 10.1839L14.3462 8.73757L13.2395 9.84422ZM14.6859 11.2906C15.1785 11.7832 15.4552 12.4512 15.4552 13.1478L17.0202 13.1478C17.0202 12.0362 16.5786 10.97 15.7925 10.1839L14.6859 11.2906ZM15.4552 13.1478C15.4552 13.8445 15.1785 14.5125 14.6859 15.0051L15.7925 16.1118C16.5786 15.3257 17.0202 14.2595 17.0202 13.1478L15.4552 13.1478ZM14.6859 15.0051C13.6601 16.0308 11.9971 16.0308 10.9713 15.0051L9.86469 16.1118C11.5016 17.7487 14.1556 17.7487 15.7925 16.1118L14.6859 15.0051ZM10.9713 15.0051L9.52499 13.5588L8.41834 14.6654L9.86469 16.1118L10.9713 15.0051ZM6.63142 10.6665L5.18507 9.2201L4.07842 10.3268L5.52477 11.7731L6.63142 10.6665ZM5.18507 9.2201C4.69249 8.72752 4.41576 8.05944 4.41576 7.36283H2.85072C2.85072 8.47452 3.29234 9.54067 4.07842 10.3268L5.18507 9.2201ZM4.41576 7.36283C4.41576 6.66622 4.69249 5.99815 5.18507 5.50557L4.07842 4.39892C3.29234 5.185 2.85072 6.25115 2.85072 7.36283H4.41576ZM5.18507 5.50557C6.21081 4.47983 7.87386 4.47983 8.8996 5.50557L10.0062 4.39892C8.36932 2.76199 5.71534 2.76199 4.07842 4.39892L5.18507 5.50557ZM8.8996 5.50557L10.346 6.95192L11.4526 5.84527L10.0062 4.39892L8.8996 5.50557Z", fill: "#4D596C" }), /* @__PURE__ */ x.createElement("rect", { x: 6.36328, y: 7.91895, width: 1.66667, height: 8.33333, rx: 0.833333, transform: "rotate(-45 6.36328 7.91895)", fill: "#4D596C" })), dG = ({ onCreateClick: e, onLinkClick: t }) => /* @__PURE__ */ b.jsxs(Ne, { gap: 2, marginTop: "12px", children: [
|
|
41439
41443
|
/* @__PURE__ */ b.jsx(Ge, { variant: "body2", color: Pe.palette.gray.gray1, children: iV }),
|
|
41440
|
-
/* @__PURE__ */ b.jsxs(
|
|
41444
|
+
/* @__PURE__ */ b.jsxs(Ne, { gap: "12px", children: [
|
|
41441
41445
|
/* @__PURE__ */ b.jsxs(lG, { fullWidth: !0, onClick: e, size: "medium", children: [
|
|
41442
41446
|
/* @__PURE__ */ b.jsx(cG, {}),
|
|
41443
41447
|
/* @__PURE__ */ b.jsx("span", { className: "content__btn", children: Yh })
|
|
@@ -41536,12 +41540,12 @@ const El = (e) => {
|
|
|
41536
41540
|
}
|
|
41537
41541
|
),
|
|
41538
41542
|
/* @__PURE__ */ b.jsx(zN, { children: h ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
41539
|
-
/* @__PURE__ */ b.jsxs(
|
|
41540
|
-
/* @__PURE__ */ b.jsxs(
|
|
41543
|
+
/* @__PURE__ */ b.jsxs(Ne, { direction: "row", justifyContent: "space-between", marginBottom: "12px", height: "36px", children: [
|
|
41544
|
+
/* @__PURE__ */ b.jsxs(Ne, { direction: "row", alignItems: "center", children: [
|
|
41541
41545
|
/* @__PURE__ */ b.jsx(eB, {}),
|
|
41542
41546
|
/* @__PURE__ */ b.jsx(tB, { variant: "h2", children: bL })
|
|
41543
41547
|
] }),
|
|
41544
|
-
/* @__PURE__ */ b.jsx(
|
|
41548
|
+
/* @__PURE__ */ b.jsx(Ne, { direction: "row", gap: "4px", children: P && (m != null && m.length) ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
41545
41549
|
y.length ? /* @__PURE__ */ b.jsx(zt, { title: Yh, placement: "bottom", children: /* @__PURE__ */ b.jsx(nn, { onClick: N, children: /* @__PURE__ */ b.jsx("img", { src: gG, alt: "Add", height: "20px" }) }) }) : null,
|
|
41546
41550
|
w.length ? /* @__PURE__ */ b.jsx(zt, { title: Gh, placement: "bottom", children: /* @__PURE__ */ b.jsx(nn, { onClick: W, children: /* @__PURE__ */ b.jsx("img", { src: fG, alt: "Link Task", height: "20px" }) }) }) : null
|
|
41547
41551
|
] }) : null })
|
package/index.umd.js
CHANGED
|
@@ -2151,7 +2151,7 @@ Selectors that return the entire state are almost certainly a mistake, as they w
|
|
|
2151
2151
|
}
|
|
2152
2152
|
`,eh=V(Ne)`
|
|
2153
2153
|
flex-direction: row;
|
|
2154
|
-
align-items:
|
|
2154
|
+
align-items: stretch;
|
|
2155
2155
|
`,vN=V(We)`
|
|
2156
2156
|
max-width: 179px;
|
|
2157
2157
|
letter-spacing: 0.5px;
|
|
@@ -2416,7 +2416,7 @@ Take a look at the reducer(s) handling this action type: ${B.type}.
|
|
|
2416
2416
|
width: 10px;
|
|
2417
2417
|
}
|
|
2418
2418
|
`,Ij=(e,{closeToast:t})=>b.jsx(Ej,{children:b.jsx("img",{src:gj,onClick:t})}),Hl=({message:e})=>b.jsxs(fj,{children:[b.jsx(Cj,{}),b.jsx(pj,{children:e})]});function an(e){const{message:t,type:n,autoClose:o}=e,r={closeButton:b.jsx(Ij,{}),autoClose:o??5e3,pauseOnHover:!0,position:"bottom-left",rtl:!1,draggable:!0,closeOnClick:!0,hideProgressBar:!0};let i;switch(n){case"success":{i=rt.success(b.jsx(Hl,{message:t}),{...r,icon:!1});break}case"error":{i=rt.error(b.jsx(Hl,{message:t}),{...r,icon:!1});break}case"info-dark":{i=rt.info(b.jsx(Hl,{message:t}),{...r,icon:!1,className:"toast_dark"});break}default:{i=rt.info(b.jsx(Hl,{message:t}),{...r,icon:!1});break}}return setTimeout(()=>{hj(i)},o&&!isNaN(o)?Number(o):5e3),i}function hj(e){rt.dismiss(e)}const Hh={updateFormApiStatus:Oe.IDLE,createObjectList:[],linkObjectList:[],editObjectList:[],objectDict:null,formFields:null,previewCardData:null,objectListApiStatus:Oe.IDLE,unlinkCardApiStatus:Oe.IDLE,linkCardApiStatus:Oe.IDLE,previewCardApiStatus:Oe.IDLE,optionsMap:null,dropdownOptionsApis:Oe.IDLE,dependentFieldsMap:{},createFormApiStatus:Oe.IDLE,currentResourceDetailsApiStatus:Oe.IDLE,currentResourceDetails:null,currentCardInEdit:null,hasUnsavedChanges:!1},Xr="/v1/api",Bj=`${Xr}/connectors/forms/list`,mj=`${Xr}/connectors/cards/:id/unlink`,Qj=`${Xr}/connectors/forms/:id/link`,vj=`${Xr}/connectors/forms/:id/preview`,bj=`${Xr}/connectors/forms/:formId/field/:fieldName/data`,yj=`${Xr}/connectors/form/:formId`,wj=`${Xr}/connectors/forms/:formId/data`,xj=({inboxIds:e,channelType:t,conversationId:n})=>{const o=new URLSearchParams;return e.forEach(r=>o.append("inbox_ids",r)),o.append("channel_type",t),o.append("conversation_id",String(n)),Bo({url:`${Bj}?${o.toString()}`,method:Wo.GET})},Tj=(e,t,n="email")=>{const o=new URLSearchParams;return o.append("channel_type",n),Bo({url:N2(`${bj}?${o.toString()}`,e),method:Wo.POST,data:t})},Wh=(e,t,n="email")=>{const o=new URLSearchParams;return o.append("channel_type",n),Bo({url:N2(`${yj}?${o.toString()}`,e),method:Wo.POST,data:t})},Fj=(e,t="email",n,o)=>{const r=new URLSearchParams;return r.append("channel_type",t),Bo({url:`${mj.replace(":id",e)}?${r.toString()}`,method:Wo.POST,data:{externalResourceId:n,conversationId:o}})},Sj=(e,t,n="email",o)=>{const r=new URLSearchParams;return r.append("channel_type",n),Bo({url:`${Qj.replace(":id",e)}?${r.toString()}`,method:Wo.POST,data:{externalResourceId:t,conversationId:o}})},Oj=(e,t,n="email")=>{const o=new URLSearchParams;return o.append("channel_type",n),Bo({url:`${vj.replace(":id",e)}?${o.toString()}`,method:Wo.POST,data:{args:t}})},kj=(e,t="email",n,o,r)=>{const i=new URLSearchParams;return i.append("channel_type",t),i.append("conversation_id",String(n||"")),i.append("senderEmail",r),i.append("externalResourceId",o),Bo({url:`${wj.replace(":formId",e)}?${i.toString()}`,method:Wo.GET})},Mj="Error in previewing the card",Dj="Card linked successfully",Pj="Error in linking the card",zh="Please enter a valid URL",Rj="Please enter valid ID",Lj="Please enter valid input",Nj="URL must start with https://",Uj="URL should not end with a slash",jj="Invalid email address",Vj="Email must be a string",Yh="Invalid date",Hj="Date cannot be in the past",Wj="Date cannot be in the future",zj="Invalid number",Yj="Invalid text",Gj="New card created",Xj="Card creation failed",Kj="https://avatars.githubusercontent.com/u/62397590",_j="Create and link objects from different apps to this conversation",Zj="Are you sure you want to change the primary object?",Jj="Changing the primary object will reset all the information you’ve entered and all data will be lost and can’t be recovered.",qj="Are you sure you want to leave?",$j=`If you go back now, all the information you’ve entered will be lost and can’t be recovered.
|
|
2419
|
-
Do you want to continue?`,eV="Select an object to create",tV="Select an object to link",Gh="Select object",nV="Paste URL or ID",oV="Object ID/Link",rV="Card updated",iV="Card updation failed",sV="Required Field",aV="Invalid date",Xh=/^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i,AV=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,lV=(e,t)=>t?Object.values(t).filter(o=>e.values[o]&&!e.errors[o]):[],Kh=(e,t)=>t?Object.keys(t).reduce((o,r)=>{let i="";const a=t[r];return e.values&&e.values[a]&&typeof e.values[a]=="object"&&"value"in e.values[a]?i=e.values[a].value:e.values&&e.values[a]&&typeof e.values[a]!="object"?i=e.values[a]:i=null,{...o,[r]:i}},{}):{},_h=(e,t,n)=>{let o=`${t}_${n}`;return Object.keys(e).forEach(r=>{o=`${o}_${r}:${e[r]}`}),o},cV=e=>t=>{if(t&&typeof t=="string"){const n=t.replace(/\/$/,"");return n.startsWith("https://")?t.endsWith("/")?Uj:Xh.test(n)?!0:e||zh:Nj}return!1},uV=e=>t=>t&&typeof t=="string"?AV.test(t)?!0:e||jj:Vj,dV=e=>t=>t==null||t===""?e||sV:!0,gV=e=>(t,n)=>{var o;if(!t||(t==null?void 0:t.toString())===aV)return Yh;if(typeof t=="object"){const r=t,i=new Date;i.setHours(0,0,0,0);const a=n.disablePast,A=n.disableFuture;return a&&r<i?e||Hj:A&&r>i?e||Wj:!0}return typeof t=="string"&&((o=new Date(t))==null?void 0:o.toString())!=="Invalid Date"?!0:Yh},fV=e=>(t,n)=>{if(t=Number(t),typeof t=="number"&&!isNaN(t)){const o=n.min,r=n.max;return o!==void 0&&t<o?e||`Value should not be less than ${o}`:r!==void 0&&t>r?e||`Value should not be greater than ${r}`:!0}return e||zj},pV=e=>(t,n)=>{if(typeof t=="string"){const o=n.limit;return o!==void 0&&t.length>o?e||`Maximum characters allowed are ${o}`:!0}return e||Yj},CV=e=>t=>typeof t=="string"?t.startsWith("https:")?Xh.test(t)?!0:e||zh:t.trim().length>0?!0:e||Rj:e||Lj,EV=({formFields:e})=>{const t={};return e.forEach(n=>{var o,r,i,a,A,l;if(t[n.name]={},(o=n.validations)!=null&&o.isRequired&&(typeof n.validations.isRequired=="object"?t[n.name].isRequired=dV(n.validations.isRequired.msg):t[n.name].isRequired=!0),n.type==="date"){let c=typeof((r=n.validations)==null?void 0:r.disableFuture)=="object"?n.validations.disableFuture.msg:"";c=typeof((i=n.validations)==null?void 0:i.disablePast)=="object"?n.validations.disablePast.msg:c,t[n.name].validate=gV(c);return}if(n.type==="number"&&((a=n.validations)!=null&&a.range)){t[n.name].validate=fV();return}if(n.type==="text"&&n.limit){t[n.name].validate=pV();return}if((A=n.validations)!=null&&A.isUrl){const c=typeof n.validations.isUrl=="object"?n.validations.isUrl.msg:"";t[n.name].validate=cV(c)}else if((l=n.validations)!=null&&l.isEmail){const c=typeof n.validations.isEmail=="object"?n.validations.isEmail.msg:"";t[n.name].validate=uV(c)}}),t},Dg=(e,t)=>Object.keys(t).reduce((n,o)=>{const r=e.values[t[o]];let i;return Array.isArray(r)?i=r.map(a=>a.value):r&&typeof r=="object"&&"label"in r?i=r.value:r&&typeof r=="object"?i=r.toISOString():i=r||"",n[o]=i,n},{}),IV=e=>typeof e=="string"?/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/.test(e):typeof e=="object"&&"_isValid"in e,Zh=e=>Object.keys(e).sort((n,o)=>o.localeCompare(n)).reduce((n,o)=>{var r;return(typeof e[o]=="string"||typeof e[o]=="object"&&e[o]!==null)&&IV(e[o])?n[o]=(r=new Date(`${e[o]}`))==null?void 0:r.toString():n[o]=e[o],n},{}),Jh=Nh({name:"writeCapability",initialState:Hh,reducers:{resetState:()=>Hh,resetCurrentResourceDetails:e=>{e.currentResourceDetails=null,e.currentResourceDetailsApiStatus=Oe.IDLE},setCurrentCardInEdit:(e,t)=>{e.currentCardInEdit=t.payload},setHasUnsavedChanges:(e,t)=>{e.hasUnsavedChanges=t.payload}},extraReducers:e=>{e.addCase(Wl.pending,t=>{t.objectListApiStatus=Oe.LOADING}).addCase(Wl.fulfilled,(t,n)=>{const{createObjectList:o,linkObjectList:r,editObjectList:i,formFields:a,objectDict:A,dependentFieldsMap:l}=n.payload;t.objectListApiStatus=Oe.IDLE,t.createObjectList=o,t.linkObjectList=r,t.editObjectList=i,t.formFields=a,t.objectDict=A,t.dependentFieldsMap=l}).addCase(Wl.rejected,t=>{t.objectListApiStatus=Oe.FAILED}).addCase(zl.pending,t=>{t.dropdownOptionsApis=Oe.LOADING}).addCase(zl.fulfilled,(t,n)=>{const o=t.optionsMap||{},{optionsList:r,hasMore:i,currentPage:a,key:A}=n.payload;t.dropdownOptionsApis=Oe.IDLE,t.optionsMap={...o,[A]:{options:r,hasMore:i,currentPage:a}}}).addCase(zl.rejected,t=>{t.dropdownOptionsApis=Oe.FAILED}).addCase(Yl.pending,t=>{t.createFormApiStatus=Oe.LOADING}).addCase(Yl.fulfilled,t=>{t.createFormApiStatus=Oe.IDLE}).addCase(Yl.rejected,t=>{t.createFormApiStatus=Oe.FAILED}).addCase(Kl.pending,t=>{t.linkCardApiStatus=Oe.LOADING}).addCase(Kl.fulfilled,t=>{t.linkCardApiStatus=Oe.IDLE}).addCase(Kl.rejected,t=>{t.linkCardApiStatus=Oe.FAILED}).addCase(Xl.pending,t=>{t.unlinkCardApiStatus=Oe.LOADING}).addCase(Xl.fulfilled,t=>{t.unlinkCardApiStatus=Oe.IDLE}).addCase(Xl.rejected,t=>{t.unlinkCardApiStatus=Oe.FAILED}).addCase(Qa.pending,t=>{t.previewCardApiStatus=Oe.LOADING}).addCase(Qa.fulfilled,(t,n)=>{const{data:o}=n.payload;o&&(t.previewCardData=o),t.previewCardApiStatus=Oe.IDLE}).addCase(Qa.rejected,t=>{t.previewCardApiStatus=Oe.FAILED}).addCase(Gl.pending,t=>{t.updateFormApiStatus=Oe.LOADING}).addCase(Gl.fulfilled,t=>{t.updateFormApiStatus=Oe.IDLE}).addCase(Gl.rejected,t=>{t.updateFormApiStatus=Oe.FAILED}).addCase(_l.pending,t=>{t.currentResourceDetailsApiStatus=Oe.LOADING}).addCase(_l.fulfilled,(t,n)=>{const{data:o}=n.payload;o&&(t.currentResourceDetails=o),t.currentResourceDetailsApiStatus=Oe.IDLE}).addCase(_l.rejected,t=>{t.currentResourceDetailsApiStatus=Oe.FAILED})}}),Wl=mo("writeCapability/fetchObjectList",async e=>{const{inboxIds:t,channelType:n,conversationId:o}=e,r=await xj({inboxIds:t,channelType:n,conversationId:o});if(!r||!r.data||!("formsList"in r.data)||!Array.isArray(r.data.formsList))return{createObjectList:[],linkObjectList:[],editObjectList:[],formFields:null,objectDict:null,dependentFieldsMap:{}};const i=r.data.formsList,a={},A=[],l=[],c=[],u={},p={};return i==null||i.forEach(f=>{var C,g;const B={...f};"fieldList"in B&&delete B.fieldList,p[f.id]=B,a[f.id]||(a[f.id]={}),u[f.id]||(u[f.id]=[]),f.type==="create"&&f.authenticated?A.push({value:f.id,label:f.name}):f.type==="link"&&f.authenticated?l.push({value:f.id,label:f.name}):f.type==="edit"&&f.authenticated&&c.push({value:f.id,label:f.name}),(C=f.fieldList)==null||C.sort((d,E)=>d.priority-E.priority),(g=f.fieldList)==null||g.forEach(d=>{var m,h,Q,I,v,y,x,S,O,D,R,k;let E={};switch(d.type){case"select":case"multi-select":{E={...d,defaultOptions:!!d.interfaceDetails,isInfiniteScrollable:((h=(m=d.interfaceDetails)==null?void 0:m.pagination)==null?void 0:h.enabled)||!1,loadOptionsOnFocus:Object.keys(((Q=d.interfaceDetails)==null?void 0:Q.args)||{}).length>0,isMultiSelect:d.type==="multi-select",type:f.interfaceDetails?"async-select":"select",isClearable:!0};break}case"date":{E={...d,type:"date",disablePast:!!((I=d.validations)!=null&&I.disablePast)||!1,disableFuture:!!((v=d.validations)!=null&&v.disableFuture)||!1};break}case"number":{E={...d,type:"number",min:((x=(y=d.validations)==null?void 0:y.range)==null?void 0:x.min)||Number.MIN_SAFE_INTEGER,max:((O=(S=d.validations)==null?void 0:S.range)==null?void 0:O.max)||Number.MAX_SAFE_INTEGER};break}case"multiline":{E={...d,type:"text",maxRows:((D=d.validations)==null?void 0:D.maxRows)||5,limit:(R=d.validations)==null?void 0:R.maxCharacters,rows:5,multiline:!0};break}case"text":{E={...d,type:"text",limit:(k=d.validations)==null?void 0:k.maxCharacters};break}default:E={...d}}if("value"in E&&(E.defaultValue=E.value,delete E.value),u[f.id]=[...u[f.id],E],d.interfaceDetails&&(d.interfaceDetails.args||d.interfaceDetails.optionalArgs)){const M={...d.interfaceDetails.args,...d.interfaceDetails.optionalArgs};Object.values(M).forEach(L=>{a[f.id][L]?a[f.id][L]=[...a[f.id][L],d.name]:a[f.id][L]=[d.name]})}})}),{createObjectList:A,linkObjectList:l,editObjectList:c,formFields:u,objectDict:p,dependentFieldsMap:a}}),zl=mo("writeCapability/fetchDropDownOptions",async(e,{getState:t,rejectWithValue:n})=>{var h;const{fieldName:o,formId:r,fieldConfig:i,callback:a,args:A={},interfaceId:l="",pagination:c={enabled:!1}}=e,u=_h(A||{},r,o),{write:p}=t();let f=!1;i.meta&&"showAvatar"in i.meta&&typeof i.meta.showAvatar=="boolean"&&(f=i.meta.showAvatar);const{options:B=[],hasMore:C=!0,currentPage:g=0}=((h=p.optionsMap)==null?void 0:h[u])||{},{enabled:d,limit:E}=c,m=E||10;try{let Q;const I=d?{pageNumber:g+1,limit:m}:null;if(C?Q=await Tj({fieldName:o,formId:r},{pagination:I||{},args:A,interfaceId:l}):a==null||a(B),!Q||!Q.data||!("data"in Q.data)||!Array.isArray(Q.data.data))return{optionsList:[...B],fieldName:"",formId:"",hasMore:!1,currentPage:g,key:u};const y=Q.data.data.map(O=>f?{...O,avatarUrl:O.avatarUrl||Kj}:{label:O.label,value:O.value}),x=d?y.length>=m:!1,S=[...B,...y];return a==null||a(S),{optionsList:S,fieldName:o,formId:r,currentPage:g+1,hasMore:x,key:u}}catch(Q){return a==null||a(B),n(Q)}},{condition:(e,{getState:t})=>{var c,u;if(e.isScrollToBottomEvent)return!0;const{fieldName:n,formId:o,callback:r,args:i}=e,a=_h(i||{},o,n),{write:A}=t(),l=((u=(c=A.optionsMap)==null?void 0:c[a])==null?void 0:u.options)||[];return l&&l.length?(r==null||r(l),!1):!0}}),Yl=mo("writeCapability/createForm",async(e,{rejectWithValue:t})=>{const{formId:n,successCallback:o,failureCallback:r,args:i={},interfaceId:a,conversationId:A}=e;try{await Wh({formId:n},{args:i,interfaceId:a,conversationId:A}),o==null||o(),an({message:Gj,type:Gr})}catch(l){return r==null||r(l),an({message:Xj,type:cr}),t(l)}}),Gl=mo("writeCapability/updateForm",async(e,{rejectWithValue:t})=>{const{formId:n,successCallback:o,failureCallback:r,args:i={},interfaceId:a,conversationId:A,externalResourceId:l,previousArgs:c={}}=e;try{await Wh({formId:n},{args:i,interfaceId:a,conversationId:A,externalResourceId:l,previousArgs:c}),o==null||o(),an({message:rV,type:Gr})}catch(u){return r==null||r(u),an({message:iV,type:cr}),t(u)}}),Xl=mo("writeCapability/unlinkCard",async({id:e,channelType:t,externalResourceId:n,conversationId:o})=>{await Fj(e,t,n,o)}),Kl=mo("writeCapability/linkCard",async({id:e,externalResourceId:t,channelType:n,conversationId:o})=>{await Sj(e,t,n,o)}),Qa=mo("writeCapability/previewCard",async({id:e,args:t,channelType:n,isRefresh:o})=>{const r=await Oj(e,t,n),i=r==null?void 0:r.data;return i?(o&&an({message:jh,type:Gr}),{data:j2(i)}):(o&&an({message:Uh,type:cr}),{data:null})}),_l=mo("connectorCardLibrary/fetchCurrentResourceDetails",async(e,{rejectWithValue:t})=>{const{id:n,channelType:o,conversationId:r,externalResourceId:i,contactEmail:a}=e;try{const A=await kj(n,o,r,i,a),l=A==null?void 0:A.data,c=A==null?void 0:A.status,u={values:{},errors:{}};return Object.entries(l.formData).forEach(([p,f])=>{"label"in f&&(f.type&&f.type==="date"?u.values[p]=f.label?new Date(parseInt(f.label)).toISOString():"":f.type&&f.type==="multi-select"&&"value"in f&&"label"in f&&f.value&&f.label?u.values[p]=[{value:f.value,label:f.label}]:f.value?u.values[p]={value:f.value,label:f.label}:u.values[p]=f.label)}),{data:u,status:c}}catch(A){return an({message:Vh,type:cr}),t(A)}}),{resetState:FG,setCurrentCardInEdit:Zi,resetCurrentResourceDetails:hV,setHasUnsavedChanges:qh}=Jh.actions,BV=Jh.reducer,mV=()=>{const[e,t]=w.useState(null),[n,o]=w.useState({isVertical:!1,isHorizontal:!1,isScrolling:!1}),r=w.useCallback(i=>{t(i)},[]);return w.useEffect(()=>{if(!e)return;e.dataset.prevScrollLeft="0",e.dataset.prevScrollTop="0";let i=null;const a=100;let A=null;const l=150,c=u=>{i||(i=window.setTimeout(()=>{const p=u.target,f=Number(e.dataset.prevScrollLeft)||0,B=Number(e.dataset.prevScrollTop)||0,C=p.scrollLeft,g=p.scrollTop,d=C-f,E=g-B,m=Math.abs(E)>Math.abs(d),h=Math.abs(d)>Math.abs(E);o({isVertical:m,isHorizontal:h,isScrolling:!0}),e.dataset.prevScrollLeft=String(C),e.dataset.prevScrollTop=String(g),i=null},a),A&&window.clearTimeout(A),A=window.setTimeout(()=>{o(p=>({...p,isScrolling:!1})),A=null},l))};return e.addEventListener("scroll",c),()=>{e.removeEventListener("scroll",c),i&&window.clearTimeout(i),A&&window.clearTimeout(A)}},[e]),[n,r]},QV="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.8016%2011.709L12.3416%205.16893L11.4298%204.25712L4.88979%2010.7972V11.709H5.8016ZM6.33618%2012.9987H3.6001V10.2626L10.9739%202.88875C11.0948%202.76786%2011.2588%202.69995%2011.4298%202.69995C11.6008%202.69995%2011.7648%202.76786%2011.8857%202.88875L13.71%204.71302C13.8309%204.83395%2013.8988%204.99794%2013.8988%205.16893C13.8988%205.33992%2013.8309%205.50391%2013.71%205.62484L6.33618%2012.9987ZM3.6001%2014.2884H15.2073V15.578H3.6001V14.2884Z'%20fill='%236C7B94'/%3e%3c/svg%3e",vV=({data:e,title:t,currentCard:n,setShowModal:o})=>{const r=Ur(),{sendTrackingEvent:i,currentSmIds:a}=w.useContext(eo),{userGroupId:A}=Nr()||{},[l,c]=mV(),{isScrolling:u,isVertical:p}=l,f=u&&p,B=w.useMemo(()=>(e==null?void 0:e[0].data.map(E=>E.label))||[],[e]),C=w.useMemo(()=>e.map(E=>{const m={cells:{},externalResourceId:E.externalResourceId};return E.data.forEach((h,Q)=>{if(B[Q]){let I=h.value?h.value:Sl;I&&h.type==="date"&&(I=new Date(parseInt(I)).toLocaleDateString(navigator.language)),m.cells[B[Q]]={label:I,deepLink:h==null?void 0:h.deepLink}}}),m}),[e,B]),g=(E,m)=>b.jsx(ON,{align:"left",children:E.deepLink?b.jsx(UA,{target:"_blank",underline:"none",href:E.deepLink,children:E.label}):b.jsx(We,{variant:"body2",color:"gray.black",children:E.label})},`${m}_${E.label}`),d=E=>{!E||!n||(o(!1),i(V2,{card_title:n.title,connector_name:n.connectorName,ug_id:A,sm_ids:a}),r(Zi({...n,externalResourceId:E})))};return b.jsxs(Ne,{maxHeight:"340px",maxWidth:"700px",padding:"32px 0px 32px 32px",overflow:"auto",children:[b.jsx(We,{variant:"h2",color:"gray.black",marginBottom:"16px",children:t}),b.jsx(rC,{ref:c,children:b.jsxs(tC,{stickyHeader:!0,children:[b.jsx(TN,{children:b.jsxs(zu,{children:[B.map(E=>b.jsx(FN,{children:b.jsx(We,{variant:"overline",color:"gray.gray3",children:E})},E)),b.jsx(MN,{})]})}),b.jsx(oC,{children:C.map((E,m)=>b.jsxs(SN,{children:[Object.values(E.cells).map((h,Q)=>g(h,Q)),b.jsx(kN,{children:!f&&E.externalResourceId&&b.jsx(Nt,{title:D2,placement:"bottom",children:b.jsx(Jt,{className:"row-edit",onClick:()=>d(E.externalResourceId),children:b.jsx("img",{src:QV})})})})]},`id_${m}`))})]})})]})},bV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_602_78902)'%3e%3cpath%20d='M0.666992%2013.9999H15.3337L8.00033%201.33325L0.666992%2013.9999ZM8.66699%2011.9999H7.33366V10.6666H8.66699V11.9999ZM8.66699%209.33325H7.33366V6.66659H8.66699V9.33325Z'%20fill='%23F07530'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_602_78902'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",yV="Bring your favourite tools into Hiver",wV="Plugin image",xV="Integrate tools like Salesforce, HubSpot, and Shopify to boost productivity",TV="Enable Connectors",FV="app/custom-connectors",SV="Learn more",OV="https://help.hiverhq.com/custom-connectors/hiver-s-custom-connectors",kV="Contact your admin to enable this",MV="https://youtu.be/ODcJnzZLb50",DV="connectors-module/assets/connectors-images/connector-mainpage.png",PV="Explore connectors",RV="Connectors",$h=e=>{const{value:t,error:n,deepLink:o,statusCode:r,isLoading:i,type:a,showErrorMessage:A,redirectToAdminTab:l}=e,c=w.useRef(null),u=w.useRef(null),[p,f]=w.useState(!1);w.useEffect(()=>{const m=o?u.current:c.current;if(m){const h=m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth;f(h)}},[t,o]);const B=r==cg.NOT_FOUND;let C=B?Sl:t;a==="date"&&C&&!B&&(C=new Date(parseInt(C)).toLocaleDateString(navigator.language));const g=!B&&!!n||!!A,d=()=>{var m,h;l?(h=(m=window==null?void 0:window.grexit)==null?void 0:m.iframeHandler)==null||h.openIframe(FV,!0):window.open("https://www.google.com","_blank")},E=m=>{const h=/<>(.*?)<>/g;return m.split(h).map((I,v)=>v%2===1?b.jsx("span",{style:{color:"blue",cursor:"pointer",textDecoration:"none"},onClick:()=>d(),children:I},v):I)};return i?b.jsx(jr,{variant:"rounded",width:"100%",height:16,animation:"wave",margin:"4px 0 0 0"}):g?b.jsxs(eh,{gap:"5px",children:[b.jsx("img",{src:bV}),b.jsx(th,{variant:"body2",children:A?E(A):qR})]}):b.jsx(Nt,{title:p?C:null,placement:"bottom",children:o?b.jsx(nh,{ref:u,target:"_blank",underline:"none",href:o,fontSize:"13px",children:C||Sl}):b.jsx(xN,{ref:c,variant:"body2",children:C||Sl})})},LV="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",Pg=({shown:e,setShown:t,children:n,showCloseButton:o=!1,borderRadius:r=4})=>b.jsx(Mu,{open:e,onClose:()=>t(!1),PaperProps:{style:{borderRadius:r,padding:0,height:"fit-content",width:"fit-content",maxWidth:"none"}},children:b.jsxs(Ne,{direction:"row",children:[o&&b.jsx(gt,{position:"absolute",right:10,top:10,children:b.jsx(Nt,{title:"Close",placement:"bottom",children:b.jsx(Jt,{onClick:()=>t(!1),children:b.jsx("img",{src:LV})})})}),n]})}),NV=e=>{const t=/\(Error code: (.*?)\)$/,n=e.match(t),o=n?n[1]:null,r=n?e.replace(t,"").trim():e;return{error_code:o,error_message:r}},eB=e=>{var $,te;const{email:t,currentSmIds:n,conversationId:o,sendTrackingEvent:r}=w.useContext(eo),{id:i,cardTitle:a,specificCardData:A,specificConnectorApiStatus:l,isOpen:c,currentCard:u}=e,p=24,f=(l==null?void 0:l[i])===Oe.IDLE,B=(l==null?void 0:l[i])===Oe.LOADING,C=(l==null?void 0:l[i])===Oe.FAILED,{cardType:g,data:d,showErrorMessage:E,redirectToAdminTab:m,connectorNames:h}=(A==null?void 0:A[i])||{},Q=g==="flat",[I,v]=w.useState(!1),[y,x]=w.useState(!1),[S,O]=w.useState(!1),[D,R]=w.useState(!1),k=w.useMemo(()=>{var Y,q,Z,ne;return Q&&((Y=d==null?void 0:d.flatDisplay)!=null&&Y.data)?d.flatDisplay.data:!Q&&((ne=(Z=(q=d==null?void 0:d.listItems)==null?void 0:q.fields)==null?void 0:Z[0])!=null&&ne.data)?d.listItems.fields[0].data:[]},[Q,d]),M=w.useMemo(()=>k==null?void 0:k.slice(0,5),[k]),[L,N]=w.useState([]),W=w.useRef(null),[H,X]=w.useState(0),P=I?-180:0,z=Q?!1:!!(($=d==null?void 0:d.listItems)!=null&&$.errorMessage),K=z||C||E,G=f&&!z&&c&&(S||y);w.useLayoutEffect(()=>{var Y;(Y=W.current)!=null&&Y.scrollHeight&&X(W.current.scrollHeight+p)},[l==null?void 0:l[i],L,W]),w.useEffect(()=>{var ne,re;const Y=((k==null?void 0:k.length)||0)>5,q=!Q&&(((re=(ne=d==null?void 0:d.listItems)==null?void 0:ne.fields)==null?void 0:re.length)||0)>1;O(Y&&!q),x(q)},[d,Q,k==null?void 0:k.length]),w.useEffect(()=>{N(I?k:M)},[d,I,M,k]),w.useEffect(()=>{if(E){const{error_code:Y,error_message:q}=NV(E);r(VL,{sm_ids:n,frontend_req_params:{email:t,conversationId:o,externalResourceId:u==null?void 0:u.externalResourceId},card_title:a,connector_name:h,error_code:Y,error_message:q})}},[E,u==null?void 0:u.externalResourceId,h,a]);const _=()=>{S?v(Y=>!Y):R(Y=>!Y)};return b.jsxs(b.Fragment,{children:[b.jsx(Pg,{shown:D,setShown:R,showCloseButton:!0,borderRadius:12,children:b.jsx(vV,{data:((te=d==null?void 0:d.listItems)==null?void 0:te.fields)||[],title:a,currentCard:u,setShowModal:R})}),b.jsx(bN,{className:c?"":"slideUp",height:H,children:b.jsx(Ne,{ref:W,gap:1,margin:"12px",children:B&&(!(L!=null&&L.length)||K)?b.jsxs(b.Fragment,{children:[b.jsx(jr,{variant:"rounded",width:"100%",height:20,animation:"wave"}),b.jsx(jr,{variant:"rounded",width:"100%",height:20,animation:"wave"})]}):b.jsx(b.Fragment,{children:K?b.jsx(gt,{margin:"8px 0",children:b.jsx($h,{error:K,isLoading:B,showErrorMessage:E,redirectToAdminTab:m})}):L!=null&&L.length?L==null?void 0:L.map(Y=>{const{value:q,label:Z,deepLink:ne,type:re}=Y,U="errorMessage"in Y?Y.errorMessage:null,oe="statusCode"in Y?Y.statusCode:null;return b.jsxs("div",{children:[b.jsx(yN,{variant:"overline",children:Z}),b.jsx($h,{value:q,error:U,deepLink:ne,statusCode:oe,isLoading:B,type:re,showErrorMessage:E,redirectToAdminTab:m})]},Z)}):b.jsx(gt,{margin:"8px 0",children:b.jsx(th,{children:$R})})})})}),G&&b.jsx(PN,{variant:"body2_medium",onClick:_,children:S?b.jsxs(b.Fragment,{children:[I?XN:oh,b.jsx(DN,{src:GN,transformAngle:P})]}):oh})]})},UV={connectorCards:null,cardSpecificData:null,connectorApiStatus:Oe.IDLE,specificConnectorApiStatus:null,threadId:null,connectorsEnabled:!1},tB="/v1/api",jV=`${tB}/connectors/cards`,VV=`${tB}/connectors/cards/:id/data`,HV=({inboxIds:e,conversationId:t,channelType:n="email"})=>{const o=new URLSearchParams;return e.forEach(r=>o.append("inbox_ids",r)),o.append("channel_type",n),o.append("conversation_id",String(t||"")),Bo({url:`${jV}?${o.toString()}`,method:Wo.GET})},WV=(e,t,n,o)=>{const r=new URLSearchParams;return r.append("senderEmail",t),r.append("conversation_id",String(n||"")),o&&r.append("externalResourceId",o),Bo({url:`${VV.replace(":id",e)}?${r.toString()}`,method:Wo.GET})},zV=e=>e.cardList.connectorCards,YV=e=>e.cardList.connectorsEnabled,GV=e=>e.cardList.connectorApiStatus,XV=e=>e.cardList.cardSpecificData,KV=e=>e.cardList.specificConnectorApiStatus,nB=Nh({name:"connectorCardLibrary",initialState:UV,reducers:{updateThreadId(e,t){const{payload:n}=t;e.threadId=n.threadId,e.connectorCards=null},clearConnectorList(e){e.connectorCards=null,e.cardSpecificData=null}},extraReducers:e=>{e.addCase(Zl.pending,t=>{t.connectorApiStatus=Oe.LOADING}).addCase(Zl.fulfilled,(t,n)=>{t.connectorApiStatus=Oe.IDLE,t.connectorCards=n.payload.cards,t.connectorsEnabled=n.payload.connectorsEnabled}).addCase(Zl.rejected,t=>{t.connectorApiStatus=Oe.FAILED}).addCase(va.pending,(t,n)=>{const{id:o,externalResourceId:r=""}=n.meta.arg;let i=o;r&&(i=`${i}_${r}`),t.specificConnectorApiStatus={...t.specificConnectorApiStatus??{},[i]:Oe.LOADING}}).addCase(va.fulfilled,(t,n)=>{const{id:o,externalResourceId:r=""}=n.meta.arg;let i=o;r&&(i=`${i}_${r}`);const{data:a}=n.payload||{};a&&(t.cardSpecificData={...t.cardSpecificData?t.cardSpecificData:{},[i]:a}),t.specificConnectorApiStatus={...t.specificConnectorApiStatus??{},[i]:Oe.IDLE}}).addCase(va.rejected,(t,n)=>{const{id:o,externalResourceId:r=""}=n.meta.arg;let i=o;r&&(i=`${i}_${r}`),t.specificConnectorApiStatus={...t.specificConnectorApiStatus??{},[i]:Oe.FAILED}})}}),Zl=mo("connectorCardLibrary/fetchAllCard",async({inboxIds:e,channelType:t,conversationId:n})=>{var A;const o=await HV({inboxIds:e,channelType:t,conversationId:n});if(!Array.isArray((A=o==null?void 0:o.data)==null?void 0:A.cards))return{cards:[],connectorsEnabled:!1};const{cards:r,connectorsEnabled:i=!1}=o.data;return{cards:r.sort((l,c)=>(l==null?void 0:l.priority)-(c==null?void 0:c.priority)),connectorsEnabled:i}}),va=mo("connectorCardLibrary/fetchSpecificCard",async({id:e,email:t,conversationId:n,isRefresh:o,externalResourceId:r},i)=>{try{const a=await WV(e,t,n,r),A=a==null?void 0:a.data,l=a==null?void 0:a.status;return A?(o&&an({message:jh,type:Gr}),{data:j2(A),status:l}):(o&&an({message:Uh,type:cr}),{data:{},status:l})}catch(a){return i.rejectWithValue(a)}}),_V=nB.reducer,oB=nB.actions,rB="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.76618%202.23341C8.79952%201.26675%207.47285%200.666748%205.99952%200.666748C3.05285%200.666748%200.672852%203.05341%200.672852%206.00008C0.672852%208.94675%203.05285%2011.3334%205.99952%2011.3334C8.48619%2011.3334%2010.5595%209.63341%2011.1529%207.33341H9.76618C9.21952%208.88675%207.73952%2010.0001%205.99952%2010.0001C3.79285%2010.0001%201.99952%208.20675%201.99952%206.00008C1.99952%203.79341%203.79285%202.00008%205.99952%202.00008C7.10618%202.00008%208.09285%202.46008%208.81285%203.18675L6.66618%205.33341H11.3329V0.666748L9.76618%202.23341Z'%20fill='%236C7B94'/%3e%3c/svg%3e",ZV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.4587%206.7528C11.2244%206.51848%2010.8445%206.51848%2010.6102%206.7528C10.3759%206.98711%2010.3759%207.36701%2010.6102%207.60132L11.4587%206.7528ZM12.1916%208.33414L12.6158%207.90988L12.1916%208.33414ZM8.33462%2012.1911L8.75888%2011.7668L8.33462%2012.1911ZM7.6018%2010.6097C7.36748%2010.3754%206.98758%2010.3754%206.75327%2010.6097C6.51895%2010.8441%206.51895%2011.224%206.75327%2011.4583L7.6018%2010.6097ZM4.43911%209.14411C4.67343%209.37842%205.05333%209.37842%205.28764%209.14411C5.52196%208.9098%205.52196%208.5299%205.28764%208.29558L4.43911%209.14411ZM3.70629%207.56276L4.13056%207.1385L3.70629%207.56276ZM7.56324%203.70582L7.9875%203.28155L7.56324%203.70582ZM8.29606%205.28716C8.53037%205.52148%208.91027%205.52148%209.14459%205.28716C9.3789%205.05285%209.3789%204.67295%209.14459%204.43864L8.29606%205.28716ZM10.6102%207.60132L11.7673%208.75841L12.6158%207.90988L11.4587%206.7528L10.6102%207.60132ZM11.7673%208.75841C12.1662%209.15735%2012.3904%209.69843%2012.3904%2010.2626L13.5904%2010.2626C13.5904%209.38017%2013.2398%208.53387%2012.6158%207.90988L11.7673%208.75841ZM12.3904%2010.2626C12.3904%2010.8268%2012.1662%2011.3679%2011.7673%2011.7668L12.6158%2012.6154C13.2398%2011.9914%2013.5904%2011.1451%2013.5904%2010.2626L12.3904%2010.2626ZM11.7673%2011.7668C10.9365%2012.5976%209.58963%2012.5976%208.75888%2011.7668L7.91035%2012.6154C9.20973%2013.9147%2011.3164%2013.9147%2012.6158%2012.6154L11.7673%2011.7668ZM8.75888%2011.7668L7.6018%2010.6097L6.75327%2011.4583L7.91035%2012.6154L8.75888%2011.7668ZM5.28764%208.29558L4.13056%207.1385L3.28203%207.98703L4.43911%209.14411L5.28764%208.29558ZM4.13056%207.1385C3.73162%206.73956%203.50749%206.19848%203.50749%205.63429L2.30749%205.63429C2.30749%206.51674%202.65804%207.36304%203.28203%207.98703L4.13056%207.1385ZM3.50749%205.63429C3.50749%205.0701%203.73162%204.52902%204.13056%204.13008L3.28203%203.28155C2.65804%203.90554%202.30749%204.75184%202.30749%205.63429L3.50749%205.63429ZM4.13056%204.13008C4.96131%203.29933%206.30822%203.29933%207.13897%204.13008L7.9875%203.28155C6.68812%201.98217%204.58141%201.98217%203.28203%203.28155L4.13056%204.13008ZM7.13897%204.13008L8.29606%205.28716L9.14459%204.43864L7.9875%203.28155L7.13897%204.13008Z'%20fill='%236C7B94'/%3e%3crect%20x='5.08887'%20y='6.0791'%20width='1.33333'%20height='6.66667'%20rx='0.666667'%20transform='rotate(-45%205.08887%206.0791)'%20fill='%236C7B94'/%3e%3cpath%20d='M5.59961%2014.3998V12.7998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.7998%205.59961H14.3998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.40039%2011.2002H4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2002%202.40039V4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",JV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5908_39767)'%3e%3cpath%20d='M9.37333%206.01333L9.98667%206.62667L3.94667%2012.6667H3.33333V12.0533L9.37333%206.01333ZM11.7733%202C11.6067%202%2011.4333%202.06667%2011.3067%202.19333L10.0867%203.41333L12.5867%205.91333L13.8067%204.69333C14.0667%204.43333%2014.0667%204.01333%2013.8067%203.75333L12.2467%202.19333C12.1133%202.06%2011.9467%202%2011.7733%202ZM9.37333%204.12667L2%2011.5V14H4.5L11.8733%206.62667L9.37333%204.12667Z'%20fill='%236C7B94'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5908_39767'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",iB=e=>e.write.createObjectList,sB=e=>e.write.linkObjectList,qV=e=>e.write.editObjectList,$V=e=>e.write.objectDict,eH=e=>e.write.formFields,tH=e=>e.write.previewCardData,nH=e=>e.write.previewCardApiStatus,oH=e=>e.write.linkCardApiStatus,rH=e=>e.write.unlinkCardApiStatus,iH=e=>e.write.dependentFieldsMap,sH=e=>e.write.createFormApiStatus,aH=e=>e.write.updateFormApiStatus,AH=e=>e.write.currentResourceDetails,lH=e=>e.write.currentResourceDetailsApiStatus,aB=e=>e.write.currentCardInEdit,AB=e=>e.write.hasUnsavedChanges,cH=({showUnlinkModal:e,setShowUnlinkModal:t,cardId:n,onCardUnlinking:o,externalResourceId:r,conversationId:i,connectorName:a})=>{const A=Ur(),{sendTrackingEvent:l}=w.useContext(eo),u=wt(rH)===Oe.LOADING,p=()=>{i&&r&&A(Xl({id:n,conversationId:i,externalResourceId:r})).unwrap().then(()=>{l(TL,{connector_name:a,conversation_id:i}),t(!1),o(),an({message:uj,type:Gr})}).catch(()=>{an({message:dj,type:Gr})})};return b.jsx(Pg,{shown:e,setShown:t,showCloseButton:!0,children:b.jsxs(Ne,{width:"400px",padding:"20px",gap:"8px",children:[b.jsx(We,{variant:"h2",children:sL}),b.jsx(We,{variant:"body2",children:aL}),b.jsxs(Ne,{direction:"row",gap:"8px",marginTop:"20px",justifyContent:"flex-end",children:[b.jsx(zt,{variant:"text",onClick:()=>t(!1),children:dg}),b.jsx(zt,{disabled:u,color:"error",onClick:p,children:M2})]})]})})},uH=e=>{const{card:t,specificCardData:n,email:o,specificConnectorApiStatus:r,defaultOpenState:i=!1,onCardUnlinking:a}=e,A=Ur(),{availableFeatures:l,sendTrackingEvent:c,conversationId:u,currentSmIds:p}=w.useContext(eo),{userGroupId:f}=Nr()||{},[B,C]=w.useState(!!i),[g,d]=w.useState(!1),[E,m]=w.useState(!1),{id:h,title:Q,externalResourceId:I="",connectorName:v="",forms:y=[]}=t;let x=h;I&&(x=`${x}_${I}`);const{data:S,cardType:O}=(n==null?void 0:n[x])??{},D=(r==null?void 0:r[x])===Oe.LOADING,R=!!(Ki(l,S2)&&I),k=w.useMemo(()=>{var X,P;if(!(Ki(l,ZR)&&y.some(z=>z.type==="edit")))return!1;switch(O){case"flat":return!!((S==null?void 0:S.flatDisplay.externalResourceId)??t.externalResourceId);case"flat_with_list":return((X=S==null?void 0:S.listItems)==null?void 0:X.fields.length)===1?(P=S==null?void 0:S.listItems)==null?void 0:P.fields.some(z=>z.externalResourceId):!1;default:return!1}},[S,O,l,y,t]),M=w.useCallback((X=!1)=>{const P=X?ML:kL;o&&h&&u&&A(va({id:h,email:o,conversationId:u,externalResourceId:I})).unwrap().then(z=>{const K=U2(z,Q,X,!0);c(P,K)}).catch(z=>{const K=U2(z,Q,X,!1);c(P,K)})},[A,o,h,Q,c,u,I]);w.useEffect(()=>{i&&M(!0)},[i,M]);const L=(X,P)=>{var K;X==null||X.stopPropagation(),A(va({id:P,email:o,conversationId:u,isRefresh:!0,externalResourceId:I})).unwrap().then(()=>{c(IL,{id:P})});const z=X.target.tagName==="BUTTON"?(K=X.target)==null?void 0:K.firstChild:X.target;z.className&&(z.className=""),setTimeout(()=>z.className="selected",1)},N=(X,P)=>{X.stopPropagation(),!(n!=null&&n[P])&&!D&&M(),c(B?EL:CL,{id:P}),C(z=>!z)},W=X=>{X.stopPropagation();const P=X.currentTarget.offsetWidth<X.currentTarget.scrollWidth;d(!!P)},H=()=>{var P,z;c(V2,{card_title:Q,connector_name:v,ug_id:f,sm_ids:p});let X;O==="flat"?X=(S==null?void 0:S.flatDisplay.externalResourceId)??t.externalResourceId:O==="flat_with_list"&&(X=(z=(P=S==null?void 0:S.listItems)==null?void 0:P.fields[0])==null?void 0:z.externalResourceId),X?A(Zi({...t,externalResourceId:X})):an({message:Vh,type:cr})};return b.jsxs(mN,{"data-testid":`test_${h}`,children:[b.jsxs(QN,{className:B?"hiver-card-expanded":"",children:[b.jsx(Nt,{title:g?Q:"",placement:"bottom",children:b.jsx(vN,{variant:"h4",onMouseOver:X=>W(X),onMouseLeave:X=>W(X),children:Q})}),b.jsxs(eh,{children:[B&&k?b.jsx(Nt,{title:D2,placement:"bottom",children:b.jsx(Vr,{onClick:H,children:b.jsx("img",{src:JV})})}):null,B&&R?b.jsx(Nt,{title:M2,placement:"bottom",children:b.jsx(Vr,{onClick:()=>m(!0),children:b.jsx("img",{src:ZV})})}):null,B?b.jsx(Nt,{title:O2,placement:"bottom",children:b.jsx(Vr,{"data-testid":D?"loading":"reloadIcon",onClick:X=>L(X,h),className:D?"disabled":"",children:b.jsx("img",{src:rB})})}):null,b.jsx(Nt,{title:B?k2:ug,placement:"bottom",children:b.jsx(Vr,{onClick:X=>N(X,x),children:b.jsx(Bg,{className:B?"":"hiver-up"})})})]})]}),b.jsx(eB,{id:x,cardTitle:t.title,currentCard:t,specificCardData:n,specificConnectorApiStatus:r,isOpen:B}),b.jsx(cH,{showUnlinkModal:E,setShowUnlinkModal:m,cardId:h,onCardUnlinking:a,conversationId:u,externalResourceId:I,connectorName:v})]})},dH=V(Ne)`
|
|
2419
|
+
Do you want to continue?`,eV="Select an object to create",tV="Select an object to link",Gh="Select object",nV="Paste URL or ID",oV="Object ID/Link",rV="Card updated",iV="Card updation failed",sV="Required Field",aV="Invalid date",Xh=/^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i,AV=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,lV=(e,t)=>t?Object.values(t).filter(o=>e.values[o]&&!e.errors[o]):[],Kh=(e,t)=>t?Object.keys(t).reduce((o,r)=>{let i="";const a=t[r];return e.values&&e.values[a]&&typeof e.values[a]=="object"&&"value"in e.values[a]?i=e.values[a].value:e.values&&e.values[a]&&typeof e.values[a]!="object"?i=e.values[a]:i=null,{...o,[r]:i}},{}):{},_h=(e,t,n)=>{let o=`${t}_${n}`;return Object.keys(e).forEach(r=>{o=`${o}_${r}:${e[r]}`}),o},cV=e=>t=>{if(t&&typeof t=="string"){const n=t.replace(/\/$/,"");return n.startsWith("https://")?t.endsWith("/")?Uj:Xh.test(n)?!0:e||zh:Nj}return!1},uV=e=>t=>t&&typeof t=="string"?AV.test(t)?!0:e||jj:Vj,dV=e=>t=>t==null||t===""?e||sV:!0,gV=e=>(t,n)=>{var o;if(!t||(t==null?void 0:t.toString())===aV)return Yh;if(typeof t=="object"){const r=t,i=new Date;i.setHours(0,0,0,0);const a=n.disablePast,A=n.disableFuture;return a&&r<i?e||Hj:A&&r>i?e||Wj:!0}return typeof t=="string"&&((o=new Date(t))==null?void 0:o.toString())!=="Invalid Date"?!0:Yh},fV=e=>(t,n)=>{if(t=Number(t),typeof t=="number"&&!isNaN(t)){const o=n.min,r=n.max;return o!==void 0&&t<o?e||`Value should not be less than ${o}`:r!==void 0&&t>r?e||`Value should not be greater than ${r}`:!0}return e||zj},pV=e=>(t,n)=>{if(typeof t=="string"){const o=n.limit;return o!==void 0&&t.length>o?e||`Maximum characters allowed are ${o}`:!0}return e||Yj},CV=e=>t=>typeof t=="string"?t.startsWith("https:")?Xh.test(t)?!0:e||zh:t.trim().length>0?!0:e||Rj:e||Lj,EV=({formFields:e})=>{const t={};return e.forEach(n=>{var o,r,i,a,A,l;if(t[n.name]={},(o=n.validations)!=null&&o.isRequired&&(typeof n.validations.isRequired=="object"?t[n.name].isRequired=dV(n.validations.isRequired.msg):t[n.name].isRequired=!0),n.type==="date"){let c=typeof((r=n.validations)==null?void 0:r.disableFuture)=="object"?n.validations.disableFuture.msg:"";c=typeof((i=n.validations)==null?void 0:i.disablePast)=="object"?n.validations.disablePast.msg:c,t[n.name].validate=gV(c);return}if(n.type==="number"&&((a=n.validations)!=null&&a.range)){t[n.name].validate=fV();return}if(n.type==="text"&&n.limit){t[n.name].validate=pV();return}if((A=n.validations)!=null&&A.isUrl){const c=typeof n.validations.isUrl=="object"?n.validations.isUrl.msg:"";t[n.name].validate=cV(c)}else if((l=n.validations)!=null&&l.isEmail){const c=typeof n.validations.isEmail=="object"?n.validations.isEmail.msg:"";t[n.name].validate=uV(c)}}),t},Dg=(e,t)=>Object.keys(t).reduce((n,o)=>{const r=e.values[t[o]];let i;return Array.isArray(r)?i=r.map(a=>a.value):r&&typeof r=="object"&&"label"in r?i=r.value:r&&typeof r=="object"?i=r.toISOString():i=r||"",n[o]=i,n},{}),IV=e=>typeof e=="string"?/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/.test(e):typeof e=="object"&&"_isValid"in e,Zh=e=>Object.keys(e).sort((n,o)=>o.localeCompare(n)).reduce((n,o)=>{var r;return(typeof e[o]=="string"||typeof e[o]=="object"&&e[o]!==null)&&IV(e[o])?n[o]=(r=new Date(`${e[o]}`))==null?void 0:r.toString():n[o]=e[o],n},{}),Jh=Nh({name:"writeCapability",initialState:Hh,reducers:{resetState:()=>Hh,resetCurrentResourceDetails:e=>{e.currentResourceDetails=null,e.currentResourceDetailsApiStatus=Oe.IDLE},setCurrentCardInEdit:(e,t)=>{e.currentCardInEdit=t.payload},setHasUnsavedChanges:(e,t)=>{e.hasUnsavedChanges=t.payload}},extraReducers:e=>{e.addCase(Wl.pending,t=>{t.objectListApiStatus=Oe.LOADING}).addCase(Wl.fulfilled,(t,n)=>{const{createObjectList:o,linkObjectList:r,editObjectList:i,formFields:a,objectDict:A,dependentFieldsMap:l}=n.payload;t.objectListApiStatus=Oe.IDLE,t.createObjectList=o,t.linkObjectList=r,t.editObjectList=i,t.formFields=a,t.objectDict=A,t.dependentFieldsMap=l}).addCase(Wl.rejected,t=>{t.objectListApiStatus=Oe.FAILED}).addCase(zl.pending,t=>{t.dropdownOptionsApis=Oe.LOADING}).addCase(zl.fulfilled,(t,n)=>{const o=t.optionsMap||{},{optionsList:r,hasMore:i,currentPage:a,key:A}=n.payload;t.dropdownOptionsApis=Oe.IDLE,t.optionsMap={...o,[A]:{options:r,hasMore:i,currentPage:a}}}).addCase(zl.rejected,t=>{t.dropdownOptionsApis=Oe.FAILED}).addCase(Yl.pending,t=>{t.createFormApiStatus=Oe.LOADING}).addCase(Yl.fulfilled,t=>{t.createFormApiStatus=Oe.IDLE}).addCase(Yl.rejected,t=>{t.createFormApiStatus=Oe.FAILED}).addCase(Kl.pending,t=>{t.linkCardApiStatus=Oe.LOADING}).addCase(Kl.fulfilled,t=>{t.linkCardApiStatus=Oe.IDLE}).addCase(Kl.rejected,t=>{t.linkCardApiStatus=Oe.FAILED}).addCase(Xl.pending,t=>{t.unlinkCardApiStatus=Oe.LOADING}).addCase(Xl.fulfilled,t=>{t.unlinkCardApiStatus=Oe.IDLE}).addCase(Xl.rejected,t=>{t.unlinkCardApiStatus=Oe.FAILED}).addCase(Qa.pending,t=>{t.previewCardApiStatus=Oe.LOADING}).addCase(Qa.fulfilled,(t,n)=>{const{data:o}=n.payload;o&&(t.previewCardData=o),t.previewCardApiStatus=Oe.IDLE}).addCase(Qa.rejected,t=>{t.previewCardApiStatus=Oe.FAILED}).addCase(Gl.pending,t=>{t.updateFormApiStatus=Oe.LOADING}).addCase(Gl.fulfilled,t=>{t.updateFormApiStatus=Oe.IDLE}).addCase(Gl.rejected,t=>{t.updateFormApiStatus=Oe.FAILED}).addCase(_l.pending,t=>{t.currentResourceDetailsApiStatus=Oe.LOADING}).addCase(_l.fulfilled,(t,n)=>{const{data:o}=n.payload;o&&(t.currentResourceDetails=o),t.currentResourceDetailsApiStatus=Oe.IDLE}).addCase(_l.rejected,t=>{t.currentResourceDetailsApiStatus=Oe.FAILED})}}),Wl=mo("writeCapability/fetchObjectList",async e=>{const{inboxIds:t,channelType:n,conversationId:o}=e,r=await xj({inboxIds:t,channelType:n,conversationId:o});if(!r||!r.data||!("formsList"in r.data)||!Array.isArray(r.data.formsList))return{createObjectList:[],linkObjectList:[],editObjectList:[],formFields:null,objectDict:null,dependentFieldsMap:{}};const i=r.data.formsList,a={},A=[],l=[],c=[],u={},p={};return i==null||i.forEach(f=>{var C,g;const B={...f};"fieldList"in B&&delete B.fieldList,p[f.id]=B,a[f.id]||(a[f.id]={}),u[f.id]||(u[f.id]=[]),f.type==="create"&&f.authenticated?A.push({value:f.id,label:f.name}):f.type==="link"&&f.authenticated?l.push({value:f.id,label:f.name}):f.type==="edit"&&f.authenticated&&c.push({value:f.id,label:f.name}),(C=f.fieldList)==null||C.sort((d,E)=>d.priority-E.priority),(g=f.fieldList)==null||g.forEach(d=>{var m,h,Q,I,v,y,x,S,O,D,R,k;let E={};switch(d.type){case"select":case"multi-select":{E={...d,defaultOptions:!!d.interfaceDetails,isInfiniteScrollable:((h=(m=d.interfaceDetails)==null?void 0:m.pagination)==null?void 0:h.enabled)||!1,loadOptionsOnFocus:Object.keys(((Q=d.interfaceDetails)==null?void 0:Q.args)||{}).length>0,isMultiSelect:d.type==="multi-select",type:f.interfaceDetails?"async-select":"select",isClearable:!0};break}case"date":{E={...d,type:"date",disablePast:!!((I=d.validations)!=null&&I.disablePast)||!1,disableFuture:!!((v=d.validations)!=null&&v.disableFuture)||!1};break}case"number":{E={...d,type:"number",min:((x=(y=d.validations)==null?void 0:y.range)==null?void 0:x.min)||Number.MIN_SAFE_INTEGER,max:((O=(S=d.validations)==null?void 0:S.range)==null?void 0:O.max)||Number.MAX_SAFE_INTEGER};break}case"multiline":{E={...d,type:"text",maxRows:((D=d.validations)==null?void 0:D.maxRows)||5,limit:(R=d.validations)==null?void 0:R.maxCharacters,rows:5,multiline:!0};break}case"text":{E={...d,type:"text",limit:(k=d.validations)==null?void 0:k.maxCharacters};break}default:E={...d}}if("value"in E&&(E.defaultValue=E.value,delete E.value),u[f.id]=[...u[f.id],E],d.interfaceDetails&&(d.interfaceDetails.args||d.interfaceDetails.optionalArgs)){const M={...d.interfaceDetails.args,...d.interfaceDetails.optionalArgs};Object.values(M).forEach(L=>{a[f.id][L]?a[f.id][L]=[...a[f.id][L],d.name]:a[f.id][L]=[d.name]})}})}),{createObjectList:A,linkObjectList:l,editObjectList:c,formFields:u,objectDict:p,dependentFieldsMap:a}}),zl=mo("writeCapability/fetchDropDownOptions",async(e,{getState:t,rejectWithValue:n})=>{var h;const{fieldName:o,formId:r,fieldConfig:i,callback:a,args:A={},interfaceId:l="",pagination:c={enabled:!1}}=e,u=_h(A||{},r,o),{write:p}=t();let f=!1;i.meta&&"showAvatar"in i.meta&&typeof i.meta.showAvatar=="boolean"&&(f=i.meta.showAvatar);const{options:B=[],hasMore:C=!0,currentPage:g=0}=((h=p.optionsMap)==null?void 0:h[u])||{},{enabled:d,limit:E}=c,m=E||10;try{let Q;const I=d?{pageNumber:g+1,limit:m}:null;if(C?Q=await Tj({fieldName:o,formId:r},{pagination:I||{},args:A,interfaceId:l}):a==null||a(B),!Q||!Q.data||!("data"in Q.data)||!Array.isArray(Q.data.data))return{optionsList:[...B],fieldName:"",formId:"",hasMore:!1,currentPage:g,key:u};const y=Q.data.data.map(O=>f?{...O,avatarUrl:O.avatarUrl||Kj}:{label:O.label,value:O.value}),x=d?y.length>=m:!1,S=[...B,...y];return a==null||a(S),{optionsList:S,fieldName:o,formId:r,currentPage:g+1,hasMore:x,key:u}}catch(Q){return a==null||a(B),n(Q)}},{condition:(e,{getState:t})=>{var c,u;if(e.isScrollToBottomEvent)return!0;const{fieldName:n,formId:o,callback:r,args:i}=e,a=_h(i||{},o,n),{write:A}=t(),l=((u=(c=A.optionsMap)==null?void 0:c[a])==null?void 0:u.options)||[];return l&&l.length?(r==null||r(l),!1):!0}}),Yl=mo("writeCapability/createForm",async(e,{rejectWithValue:t})=>{const{formId:n,successCallback:o,failureCallback:r,args:i={},interfaceId:a,conversationId:A}=e;try{await Wh({formId:n},{args:i,interfaceId:a,conversationId:A}),o==null||o(),an({message:Gj,type:Gr})}catch(l){return r==null||r(l),an({message:Xj,type:cr}),t(l)}}),Gl=mo("writeCapability/updateForm",async(e,{rejectWithValue:t})=>{const{formId:n,successCallback:o,failureCallback:r,args:i={},interfaceId:a,conversationId:A,externalResourceId:l,previousArgs:c={}}=e;try{await Wh({formId:n},{args:i,interfaceId:a,conversationId:A,externalResourceId:l,previousArgs:c}),o==null||o(),an({message:rV,type:Gr})}catch(u){return r==null||r(u),an({message:iV,type:cr}),t(u)}}),Xl=mo("writeCapability/unlinkCard",async({id:e,channelType:t,externalResourceId:n,conversationId:o})=>{await Fj(e,t,n,o)}),Kl=mo("writeCapability/linkCard",async({id:e,externalResourceId:t,channelType:n,conversationId:o})=>{await Sj(e,t,n,o)}),Qa=mo("writeCapability/previewCard",async({id:e,args:t,channelType:n,isRefresh:o})=>{const r=await Oj(e,t,n),i=r==null?void 0:r.data;return i?(o&&an({message:jh,type:Gr}),{data:j2(i)}):(o&&an({message:Uh,type:cr}),{data:null})}),_l=mo("connectorCardLibrary/fetchCurrentResourceDetails",async(e,{rejectWithValue:t})=>{const{id:n,channelType:o,conversationId:r,externalResourceId:i,contactEmail:a}=e;try{const A=await kj(n,o,r,i,a),l=A==null?void 0:A.data,c=A==null?void 0:A.status,u={values:{},errors:{}};return Object.entries(l.formData).forEach(([p,f])=>{"label"in f&&(f.type&&f.type==="date"?u.values[p]=f.label?new Date(parseInt(f.label)).toISOString():"":f.type&&f.type==="multi-select"&&"value"in f&&"label"in f&&f.value&&f.label?u.values[p]=[{value:f.value,label:f.label}]:f.value?u.values[p]={value:f.value,label:f.label}:u.values[p]=f.label)}),{data:u,status:c}}catch(A){return an({message:Vh,type:cr}),t(A)}}),{resetState:FG,setCurrentCardInEdit:Zi,resetCurrentResourceDetails:hV,setHasUnsavedChanges:qh}=Jh.actions,BV=Jh.reducer,mV=()=>{const[e,t]=w.useState(null),[n,o]=w.useState({isVertical:!1,isHorizontal:!1,isScrolling:!1}),r=w.useCallback(i=>{t(i)},[]);return w.useEffect(()=>{if(!e)return;e.dataset.prevScrollLeft="0",e.dataset.prevScrollTop="0";let i=null;const a=100;let A=null;const l=150,c=u=>{i||(i=window.setTimeout(()=>{const p=u.target,f=Number(e.dataset.prevScrollLeft)||0,B=Number(e.dataset.prevScrollTop)||0,C=p.scrollLeft,g=p.scrollTop,d=C-f,E=g-B,m=Math.abs(E)>Math.abs(d),h=Math.abs(d)>Math.abs(E);o({isVertical:m,isHorizontal:h,isScrolling:!0}),e.dataset.prevScrollLeft=String(C),e.dataset.prevScrollTop=String(g),i=null},a),A&&window.clearTimeout(A),A=window.setTimeout(()=>{o(p=>({...p,isScrolling:!1})),A=null},l))};return e.addEventListener("scroll",c),()=>{e.removeEventListener("scroll",c),i&&window.clearTimeout(i),A&&window.clearTimeout(A)}},[e]),[n,r]},QV="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.8016%2011.709L12.3416%205.16893L11.4298%204.25712L4.88979%2010.7972V11.709H5.8016ZM6.33618%2012.9987H3.6001V10.2626L10.9739%202.88875C11.0948%202.76786%2011.2588%202.69995%2011.4298%202.69995C11.6008%202.69995%2011.7648%202.76786%2011.8857%202.88875L13.71%204.71302C13.8309%204.83395%2013.8988%204.99794%2013.8988%205.16893C13.8988%205.33992%2013.8309%205.50391%2013.71%205.62484L6.33618%2012.9987ZM3.6001%2014.2884H15.2073V15.578H3.6001V14.2884Z'%20fill='%236C7B94'/%3e%3c/svg%3e",vV=({data:e,title:t,currentCard:n,setShowModal:o})=>{const r=Ur(),{sendTrackingEvent:i,currentSmIds:a}=w.useContext(eo),{userGroupId:A}=Nr()||{},[l,c]=mV(),{isScrolling:u,isVertical:p}=l,f=u&&p,B=w.useMemo(()=>(e==null?void 0:e[0].data.map(E=>E.label))||[],[e]),C=w.useMemo(()=>e.map(E=>{const m={cells:{},externalResourceId:E.externalResourceId};return E.data.forEach((h,Q)=>{if(B[Q]){let I=h.value?h.value:Sl;I&&h.type==="date"&&(I=new Date(parseInt(I)).toLocaleDateString(navigator.language)),m.cells[B[Q]]={label:I,deepLink:h==null?void 0:h.deepLink}}}),m}),[e,B]),g=(E,m)=>b.jsx(ON,{align:"left",children:E.deepLink?b.jsx(UA,{target:"_blank",underline:"none",href:E.deepLink,children:E.label}):b.jsx(We,{variant:"body2",color:"gray.black",children:E.label})},`${m}_${E.label}`),d=E=>{!E||!n||(o(!1),i(V2,{card_title:n.title,connector_name:n.connectorName,ug_id:A,sm_ids:a}),r(Zi({...n,externalResourceId:E})))};return b.jsxs(Ne,{maxHeight:"340px",maxWidth:"700px",padding:"32px 0px 32px 32px",overflow:"auto",children:[b.jsx(We,{variant:"h2",color:"gray.black",marginBottom:"16px",children:t}),b.jsx(rC,{ref:c,children:b.jsxs(tC,{stickyHeader:!0,children:[b.jsx(TN,{children:b.jsxs(zu,{children:[B.map(E=>b.jsx(FN,{children:b.jsx(We,{variant:"overline",color:"gray.gray3",children:E})},E)),b.jsx(MN,{})]})}),b.jsx(oC,{children:C.map((E,m)=>b.jsxs(SN,{children:[Object.values(E.cells).map((h,Q)=>g(h,Q)),b.jsx(kN,{children:!f&&E.externalResourceId&&b.jsx(Nt,{title:D2,placement:"bottom",children:b.jsx(Jt,{className:"row-edit",onClick:()=>d(E.externalResourceId),children:b.jsx("img",{src:QV})})})})]},`id_${m}`))})]})})]})},bV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_602_78902)'%3e%3cpath%20d='M0.666992%2013.9999H15.3337L8.00033%201.33325L0.666992%2013.9999ZM8.66699%2011.9999H7.33366V10.6666H8.66699V11.9999ZM8.66699%209.33325H7.33366V6.66659H8.66699V9.33325Z'%20fill='%23F07530'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_602_78902'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",yV="Bring your favourite tools into Hiver",wV="Plugin image",xV="Integrate tools like Salesforce, HubSpot, and Shopify to boost productivity",TV="Enable Connectors",FV="app/custom-connectors",SV="Learn more",OV="https://help.hiverhq.com/custom-connectors/hiver-s-custom-connectors",kV="Contact your admin to enable this",MV="https://youtu.be/ODcJnzZLb50",DV="connectors-module/assets/connectors-images/connector-mainpage.png",PV="Explore connectors",RV="Connectors",$h=e=>{const{value:t,error:n,deepLink:o,statusCode:r,isLoading:i,type:a,showErrorMessage:A,redirectToAdminTab:l}=e,c=w.useRef(null),u=w.useRef(null),[p,f]=w.useState(!1);w.useEffect(()=>{const m=o?u.current:c.current;if(m){const h=m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth;f(h)}},[t,o]);const B=r==cg.NOT_FOUND;let C=B?Sl:t;a==="date"&&C&&!B&&(C=new Date(parseInt(C)).toLocaleDateString(navigator.language));const g=!B&&!!n||!!A,d=()=>{var m,h;l?(h=(m=window==null?void 0:window.grexit)==null?void 0:m.iframeHandler)==null||h.openIframe(FV,!0):window.open("https://www.google.com","_blank")},E=m=>{const h=/<>(.*?)<>/g;return m.split(h).map((I,v)=>v%2===1?b.jsx("span",{style:{color:"blue",cursor:"pointer",textDecoration:"none"},onClick:()=>d(),children:I},v):I)};return i?b.jsx(jr,{variant:"rounded",width:"100%",height:16,animation:"wave",margin:"4px 0 0 0"}):g?b.jsxs(eh,{gap:"7px",children:[b.jsx(Ne,{marginTop:"6px",children:b.jsx("img",{src:bV})}),b.jsx(th,{variant:"body2",children:A?E(A):qR})]}):b.jsx(Nt,{title:p?C:null,placement:"bottom",children:o?b.jsx(nh,{ref:u,target:"_blank",underline:"none",href:o,fontSize:"13px",children:C||Sl}):b.jsx(xN,{ref:c,variant:"body2",children:C||Sl})})},LV="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",Pg=({shown:e,setShown:t,children:n,showCloseButton:o=!1,borderRadius:r=4})=>b.jsx(Mu,{open:e,onClose:()=>t(!1),PaperProps:{style:{borderRadius:r,padding:0,height:"fit-content",width:"fit-content",maxWidth:"none"}},children:b.jsxs(Ne,{direction:"row",children:[o&&b.jsx(gt,{position:"absolute",right:10,top:10,children:b.jsx(Nt,{title:"Close",placement:"bottom",children:b.jsx(Jt,{onClick:()=>t(!1),children:b.jsx("img",{src:LV})})})}),n]})}),NV=e=>{const t=/\(Error code: (.*?)\)$/,n=e.match(t),o=n?n[1]:null,r=n?e.replace(t,"").trim():e;return{error_code:o,error_message:r}},eB=e=>{var $,te;const{email:t,currentSmIds:n,conversationId:o,sendTrackingEvent:r}=w.useContext(eo),{id:i,cardTitle:a,specificCardData:A,specificConnectorApiStatus:l,isOpen:c,currentCard:u}=e,p=24,f=(l==null?void 0:l[i])===Oe.IDLE,B=(l==null?void 0:l[i])===Oe.LOADING,C=(l==null?void 0:l[i])===Oe.FAILED,{cardType:g,data:d,showErrorMessage:E,redirectToAdminTab:m,connectorNames:h}=(A==null?void 0:A[i])||{},Q=g==="flat",[I,v]=w.useState(!1),[y,x]=w.useState(!1),[S,O]=w.useState(!1),[D,R]=w.useState(!1),k=w.useMemo(()=>{var Y,q,Z,ne;return Q&&((Y=d==null?void 0:d.flatDisplay)!=null&&Y.data)?d.flatDisplay.data:!Q&&((ne=(Z=(q=d==null?void 0:d.listItems)==null?void 0:q.fields)==null?void 0:Z[0])!=null&&ne.data)?d.listItems.fields[0].data:[]},[Q,d]),M=w.useMemo(()=>k==null?void 0:k.slice(0,5),[k]),[L,N]=w.useState([]),W=w.useRef(null),[H,X]=w.useState(0),P=I?-180:0,z=Q?!1:!!(($=d==null?void 0:d.listItems)!=null&&$.errorMessage),K=z||C||E,G=f&&!z&&c&&(S||y);w.useLayoutEffect(()=>{var Y;(Y=W.current)!=null&&Y.scrollHeight&&X(W.current.scrollHeight+p)},[l==null?void 0:l[i],L,W]),w.useEffect(()=>{var ne,re;const Y=((k==null?void 0:k.length)||0)>5,q=!Q&&(((re=(ne=d==null?void 0:d.listItems)==null?void 0:ne.fields)==null?void 0:re.length)||0)>1;O(Y&&!q),x(q)},[d,Q,k==null?void 0:k.length]),w.useEffect(()=>{N(I?k:M)},[d,I,M,k]),w.useEffect(()=>{if(E){const{error_code:Y,error_message:q}=NV(E);r(VL,{sm_ids:n,frontend_req_params:{email:t,conversationId:o,externalResourceId:u==null?void 0:u.externalResourceId},card_title:a,connector_name:h,error_code:Y,error_message:q})}},[E,u==null?void 0:u.externalResourceId,h,a]);const _=()=>{S?v(Y=>!Y):R(Y=>!Y)};return b.jsxs(b.Fragment,{children:[b.jsx(Pg,{shown:D,setShown:R,showCloseButton:!0,borderRadius:12,children:b.jsx(vV,{data:((te=d==null?void 0:d.listItems)==null?void 0:te.fields)||[],title:a,currentCard:u,setShowModal:R})}),b.jsx(bN,{className:c?"":"slideUp",height:H,children:b.jsx(Ne,{ref:W,gap:1,margin:"12px",children:B&&(!(L!=null&&L.length)||K)?b.jsxs(b.Fragment,{children:[b.jsx(jr,{variant:"rounded",width:"100%",height:20,animation:"wave"}),b.jsx(jr,{variant:"rounded",width:"100%",height:20,animation:"wave"})]}):b.jsx(b.Fragment,{children:K?b.jsx(gt,{margin:"8px 0",children:b.jsx($h,{error:K,isLoading:B,showErrorMessage:E,redirectToAdminTab:m})}):L!=null&&L.length?L==null?void 0:L.map(Y=>{const{value:q,label:Z,deepLink:ne,type:re}=Y,U="errorMessage"in Y?Y.errorMessage:null,oe="statusCode"in Y?Y.statusCode:null;return b.jsxs("div",{children:[b.jsx(yN,{variant:"overline",children:Z}),b.jsx($h,{value:q,error:U,deepLink:ne,statusCode:oe,isLoading:B,type:re,showErrorMessage:E,redirectToAdminTab:m})]},Z)}):b.jsx(gt,{margin:"8px 0",children:b.jsx(th,{children:$R})})})})}),!E&&G&&b.jsx(PN,{variant:"body2_medium",onClick:_,children:S?b.jsxs(b.Fragment,{children:[I?XN:oh,b.jsx(DN,{src:GN,transformAngle:P})]}):oh})]})},UV={connectorCards:null,cardSpecificData:null,connectorApiStatus:Oe.IDLE,specificConnectorApiStatus:null,threadId:null,connectorsEnabled:!1},tB="/v1/api",jV=`${tB}/connectors/cards`,VV=`${tB}/connectors/cards/:id/data`,HV=({inboxIds:e,conversationId:t,channelType:n="email"})=>{const o=new URLSearchParams;return e.forEach(r=>o.append("inbox_ids",r)),o.append("channel_type",n),o.append("conversation_id",String(t||"")),Bo({url:`${jV}?${o.toString()}`,method:Wo.GET})},WV=(e,t,n,o)=>{const r=new URLSearchParams;return r.append("senderEmail",t),r.append("conversation_id",String(n||"")),o&&r.append("externalResourceId",o),Bo({url:`${VV.replace(":id",e)}?${r.toString()}`,method:Wo.GET})},zV=e=>e.cardList.connectorCards,YV=e=>e.cardList.connectorsEnabled,GV=e=>e.cardList.connectorApiStatus,XV=e=>e.cardList.cardSpecificData,KV=e=>e.cardList.specificConnectorApiStatus,nB=Nh({name:"connectorCardLibrary",initialState:UV,reducers:{updateThreadId(e,t){const{payload:n}=t;e.threadId=n.threadId,e.connectorCards=null},clearConnectorList(e){e.connectorCards=null,e.cardSpecificData=null}},extraReducers:e=>{e.addCase(Zl.pending,t=>{t.connectorApiStatus=Oe.LOADING}).addCase(Zl.fulfilled,(t,n)=>{t.connectorApiStatus=Oe.IDLE,t.connectorCards=n.payload.cards,t.connectorsEnabled=n.payload.connectorsEnabled}).addCase(Zl.rejected,t=>{t.connectorApiStatus=Oe.FAILED}).addCase(va.pending,(t,n)=>{const{id:o,externalResourceId:r=""}=n.meta.arg;let i=o;r&&(i=`${i}_${r}`),t.specificConnectorApiStatus={...t.specificConnectorApiStatus??{},[i]:Oe.LOADING}}).addCase(va.fulfilled,(t,n)=>{const{id:o,externalResourceId:r=""}=n.meta.arg;let i=o;r&&(i=`${i}_${r}`);const{data:a}=n.payload||{};a&&(t.cardSpecificData={...t.cardSpecificData?t.cardSpecificData:{},[i]:a}),t.specificConnectorApiStatus={...t.specificConnectorApiStatus??{},[i]:Oe.IDLE}}).addCase(va.rejected,(t,n)=>{const{id:o,externalResourceId:r=""}=n.meta.arg;let i=o;r&&(i=`${i}_${r}`),t.specificConnectorApiStatus={...t.specificConnectorApiStatus??{},[i]:Oe.FAILED},console.log("SWETHA fetchSpecificCardData state : ",t),console.log("SWETHA fetchSpecificCardData action : ",n)})}}),Zl=mo("connectorCardLibrary/fetchAllCard",async({inboxIds:e,channelType:t,conversationId:n})=>{var A;const o=await HV({inboxIds:e,channelType:t,conversationId:n});if(!Array.isArray((A=o==null?void 0:o.data)==null?void 0:A.cards))return{cards:[],connectorsEnabled:!1};const{cards:r,connectorsEnabled:i=!1}=o.data;return{cards:r.sort((l,c)=>(l==null?void 0:l.priority)-(c==null?void 0:c.priority)),connectorsEnabled:i}}),va=mo("connectorCardLibrary/fetchSpecificCard",async({id:e,email:t,conversationId:n,isRefresh:o,externalResourceId:r},i)=>{try{const a=await WV(e,t,n,r);console.log("SWETHA fetchSpecificCardData ayncthunk 1 : ",a);const A=a==null?void 0:a.data,l=a==null?void 0:a.status;return A?(o&&an({message:jh,type:Gr}),{data:j2(A),status:l}):(console.log("SWETHA fetchSpecificCardData ayncthunk 2 : ",l),o&&an({message:Uh,type:cr}),{data:{},status:l})}catch(a){return console.log("SWETHA fetchSpecificCardData ayncthunk 3 : ",a),i.rejectWithValue(a)}}),_V=nB.reducer,oB=nB.actions,rB="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.76618%202.23341C8.79952%201.26675%207.47285%200.666748%205.99952%200.666748C3.05285%200.666748%200.672852%203.05341%200.672852%206.00008C0.672852%208.94675%203.05285%2011.3334%205.99952%2011.3334C8.48619%2011.3334%2010.5595%209.63341%2011.1529%207.33341H9.76618C9.21952%208.88675%207.73952%2010.0001%205.99952%2010.0001C3.79285%2010.0001%201.99952%208.20675%201.99952%206.00008C1.99952%203.79341%203.79285%202.00008%205.99952%202.00008C7.10618%202.00008%208.09285%202.46008%208.81285%203.18675L6.66618%205.33341H11.3329V0.666748L9.76618%202.23341Z'%20fill='%236C7B94'/%3e%3c/svg%3e",ZV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.4587%206.7528C11.2244%206.51848%2010.8445%206.51848%2010.6102%206.7528C10.3759%206.98711%2010.3759%207.36701%2010.6102%207.60132L11.4587%206.7528ZM12.1916%208.33414L12.6158%207.90988L12.1916%208.33414ZM8.33462%2012.1911L8.75888%2011.7668L8.33462%2012.1911ZM7.6018%2010.6097C7.36748%2010.3754%206.98758%2010.3754%206.75327%2010.6097C6.51895%2010.8441%206.51895%2011.224%206.75327%2011.4583L7.6018%2010.6097ZM4.43911%209.14411C4.67343%209.37842%205.05333%209.37842%205.28764%209.14411C5.52196%208.9098%205.52196%208.5299%205.28764%208.29558L4.43911%209.14411ZM3.70629%207.56276L4.13056%207.1385L3.70629%207.56276ZM7.56324%203.70582L7.9875%203.28155L7.56324%203.70582ZM8.29606%205.28716C8.53037%205.52148%208.91027%205.52148%209.14459%205.28716C9.3789%205.05285%209.3789%204.67295%209.14459%204.43864L8.29606%205.28716ZM10.6102%207.60132L11.7673%208.75841L12.6158%207.90988L11.4587%206.7528L10.6102%207.60132ZM11.7673%208.75841C12.1662%209.15735%2012.3904%209.69843%2012.3904%2010.2626L13.5904%2010.2626C13.5904%209.38017%2013.2398%208.53387%2012.6158%207.90988L11.7673%208.75841ZM12.3904%2010.2626C12.3904%2010.8268%2012.1662%2011.3679%2011.7673%2011.7668L12.6158%2012.6154C13.2398%2011.9914%2013.5904%2011.1451%2013.5904%2010.2626L12.3904%2010.2626ZM11.7673%2011.7668C10.9365%2012.5976%209.58963%2012.5976%208.75888%2011.7668L7.91035%2012.6154C9.20973%2013.9147%2011.3164%2013.9147%2012.6158%2012.6154L11.7673%2011.7668ZM8.75888%2011.7668L7.6018%2010.6097L6.75327%2011.4583L7.91035%2012.6154L8.75888%2011.7668ZM5.28764%208.29558L4.13056%207.1385L3.28203%207.98703L4.43911%209.14411L5.28764%208.29558ZM4.13056%207.1385C3.73162%206.73956%203.50749%206.19848%203.50749%205.63429L2.30749%205.63429C2.30749%206.51674%202.65804%207.36304%203.28203%207.98703L4.13056%207.1385ZM3.50749%205.63429C3.50749%205.0701%203.73162%204.52902%204.13056%204.13008L3.28203%203.28155C2.65804%203.90554%202.30749%204.75184%202.30749%205.63429L3.50749%205.63429ZM4.13056%204.13008C4.96131%203.29933%206.30822%203.29933%207.13897%204.13008L7.9875%203.28155C6.68812%201.98217%204.58141%201.98217%203.28203%203.28155L4.13056%204.13008ZM7.13897%204.13008L8.29606%205.28716L9.14459%204.43864L7.9875%203.28155L7.13897%204.13008Z'%20fill='%236C7B94'/%3e%3crect%20x='5.08887'%20y='6.0791'%20width='1.33333'%20height='6.66667'%20rx='0.666667'%20transform='rotate(-45%205.08887%206.0791)'%20fill='%236C7B94'/%3e%3cpath%20d='M5.59961%2014.3998V12.7998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.7998%205.59961H14.3998'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.40039%2011.2002H4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2002%202.40039V4.00039'%20stroke='%236C7B94'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",JV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5908_39767)'%3e%3cpath%20d='M9.37333%206.01333L9.98667%206.62667L3.94667%2012.6667H3.33333V12.0533L9.37333%206.01333ZM11.7733%202C11.6067%202%2011.4333%202.06667%2011.3067%202.19333L10.0867%203.41333L12.5867%205.91333L13.8067%204.69333C14.0667%204.43333%2014.0667%204.01333%2013.8067%203.75333L12.2467%202.19333C12.1133%202.06%2011.9467%202%2011.7733%202ZM9.37333%204.12667L2%2011.5V14H4.5L11.8733%206.62667L9.37333%204.12667Z'%20fill='%236C7B94'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5908_39767'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",iB=e=>e.write.createObjectList,sB=e=>e.write.linkObjectList,qV=e=>e.write.editObjectList,$V=e=>e.write.objectDict,eH=e=>e.write.formFields,tH=e=>e.write.previewCardData,nH=e=>e.write.previewCardApiStatus,oH=e=>e.write.linkCardApiStatus,rH=e=>e.write.unlinkCardApiStatus,iH=e=>e.write.dependentFieldsMap,sH=e=>e.write.createFormApiStatus,aH=e=>e.write.updateFormApiStatus,AH=e=>e.write.currentResourceDetails,lH=e=>e.write.currentResourceDetailsApiStatus,aB=e=>e.write.currentCardInEdit,AB=e=>e.write.hasUnsavedChanges,cH=({showUnlinkModal:e,setShowUnlinkModal:t,cardId:n,onCardUnlinking:o,externalResourceId:r,conversationId:i,connectorName:a})=>{const A=Ur(),{sendTrackingEvent:l}=w.useContext(eo),u=wt(rH)===Oe.LOADING,p=()=>{i&&r&&A(Xl({id:n,conversationId:i,externalResourceId:r})).unwrap().then(()=>{l(TL,{connector_name:a,conversation_id:i}),t(!1),o(),an({message:uj,type:Gr})}).catch(()=>{an({message:dj,type:Gr})})};return b.jsx(Pg,{shown:e,setShown:t,showCloseButton:!0,children:b.jsxs(Ne,{width:"400px",padding:"20px",gap:"8px",children:[b.jsx(We,{variant:"h2",children:sL}),b.jsx(We,{variant:"body2",children:aL}),b.jsxs(Ne,{direction:"row",gap:"8px",marginTop:"20px",justifyContent:"flex-end",children:[b.jsx(zt,{variant:"text",onClick:()=>t(!1),children:dg}),b.jsx(zt,{disabled:u,color:"error",onClick:p,children:M2})]})]})})},uH=e=>{const{card:t,specificCardData:n,email:o,specificConnectorApiStatus:r,defaultOpenState:i=!1,onCardUnlinking:a}=e,A=Ur(),{availableFeatures:l,sendTrackingEvent:c,conversationId:u,currentSmIds:p}=w.useContext(eo),{userGroupId:f}=Nr()||{},[B,C]=w.useState(!!i),[g,d]=w.useState(!1),[E,m]=w.useState(!1),{id:h,title:Q,externalResourceId:I="",connectorName:v="",forms:y=[]}=t;let x=h;I&&(x=`${x}_${I}`);const{data:S,cardType:O}=(n==null?void 0:n[x])??{},D=(r==null?void 0:r[x])===Oe.LOADING;console.log("SWETHA in Card.tsx specificConnectorApiStatus: ",r);const R=!!(Ki(l,S2)&&I),k=w.useMemo(()=>{var X,P;if(!(Ki(l,ZR)&&y.some(z=>z.type==="edit")))return!1;switch(O){case"flat":return!!((S==null?void 0:S.flatDisplay.externalResourceId)??t.externalResourceId);case"flat_with_list":return((X=S==null?void 0:S.listItems)==null?void 0:X.fields.length)===1?(P=S==null?void 0:S.listItems)==null?void 0:P.fields.some(z=>z.externalResourceId):!1;default:return!1}},[S,O,l,y,t]),M=w.useCallback((X=!1)=>{const P=X?ML:kL;o&&h&&u&&A(va({id:h,email:o,conversationId:u,externalResourceId:I})).unwrap().then(z=>{const K=U2(z,Q,X,!0);c(P,K)}).catch(z=>{const K=U2(z,Q,X,!1);c(P,K)})},[A,o,h,Q,c,u,I]);w.useEffect(()=>{i&&M(!0)},[i,M]);const L=(X,P)=>{var K;X==null||X.stopPropagation(),A(va({id:P,email:o,conversationId:u,isRefresh:!0,externalResourceId:I})).unwrap().then(()=>{c(IL,{id:P})});const z=X.target.tagName==="BUTTON"?(K=X.target)==null?void 0:K.firstChild:X.target;z.className&&(z.className=""),setTimeout(()=>z.className="selected",1)},N=(X,P)=>{X.stopPropagation(),!(n!=null&&n[P])&&!D&&M(),c(B?EL:CL,{id:P}),C(z=>!z)},W=X=>{X.stopPropagation();const P=X.currentTarget.offsetWidth<X.currentTarget.scrollWidth;d(!!P)},H=()=>{var P,z;c(V2,{card_title:Q,connector_name:v,ug_id:f,sm_ids:p});let X;O==="flat"?X=(S==null?void 0:S.flatDisplay.externalResourceId)??t.externalResourceId:O==="flat_with_list"&&(X=(z=(P=S==null?void 0:S.listItems)==null?void 0:P.fields[0])==null?void 0:z.externalResourceId),X?A(Zi({...t,externalResourceId:X})):an({message:Vh,type:cr})};return b.jsxs(mN,{"data-testid":`test_${h}`,children:[b.jsxs(QN,{className:B?"hiver-card-expanded":"",children:[b.jsx(Nt,{title:g?Q:"",placement:"bottom",children:b.jsx(vN,{variant:"h4",onMouseOver:X=>W(X),onMouseLeave:X=>W(X),children:Q})}),b.jsxs(eh,{children:[B&&k?b.jsx(Nt,{title:D2,placement:"bottom",children:b.jsx(Vr,{onClick:H,children:b.jsx("img",{src:JV})})}):null,B&&R?b.jsx(Nt,{title:M2,placement:"bottom",children:b.jsx(Vr,{onClick:()=>m(!0),children:b.jsx("img",{src:ZV})})}):null,B?b.jsx(Nt,{title:O2,placement:"bottom",children:b.jsx(Vr,{"data-testid":D?"loading":"reloadIcon",onClick:X=>L(X,h),className:D?"disabled":"",children:b.jsx("img",{src:rB})})}):null,b.jsx(Nt,{title:B?k2:ug,placement:"bottom",children:b.jsx(Vr,{onClick:X=>N(X,x),children:b.jsx(Bg,{className:B?"":"hiver-up"})})})]})]}),b.jsx(eB,{id:x,cardTitle:t.title,currentCard:t,specificCardData:n,specificConnectorApiStatus:r,isOpen:B}),b.jsx(cH,{showUnlinkModal:E,setShowUnlinkModal:m,cardId:h,onCardUnlinking:a,conversationId:u,externalResourceId:I,connectorName:v})]})},dH=V(Ne)`
|
|
2420
2420
|
width: 100%;
|
|
2421
2421
|
height: 97px;
|
|
2422
2422
|
background-color: ${Pe.palette.purple.light};
|