@hiver/connector-agent 1.1.1 → 1.2.0
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/app/provider.d.ts.map +1 -1
- package/constants/global-constants.d.ts +1 -0
- package/constants/global-constants.d.ts.map +1 -1
- package/context/index.d.ts +2 -0
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts +2 -1
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/connector-cards/api/index.d.ts +4 -1
- package/features/connector-cards/api/index.d.ts.map +1 -1
- package/features/connector-cards/store/slice.d.ts +4 -1
- package/features/connector-cards/store/slice.d.ts.map +1 -1
- package/index.es.js +65 -51
- package/index.umd.js +4 -4
- package/package.json +1 -1
package/app/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/app/provider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,WAAW,qDAAsD,gBAAgB,
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/app/provider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,WAAW,qDAAsD,gBAAgB,4CAc7F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-constants.d.ts","sourceRoot":"","sources":["../../src/constants/global-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CACnE"}
|
|
1
|
+
{"version":3,"file":"global-constants.d.ts","sourceRoot":"","sources":["../../src/constants/global-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CACnE"}
|
package/context/index.d.ts
CHANGED
|
@@ -18,11 +18,13 @@ export interface ITrackingData {
|
|
|
18
18
|
export interface IMainAppContext {
|
|
19
19
|
email: string | null;
|
|
20
20
|
baseUrls: IBaseUrls;
|
|
21
|
+
currentSmId: string;
|
|
21
22
|
sendTrackingEvent: (event: string, data?: ITrackingData) => void;
|
|
22
23
|
}
|
|
23
24
|
export declare const defaultMainAppvalues: {
|
|
24
25
|
email: string;
|
|
25
26
|
baseUrls: {};
|
|
27
|
+
currentSmId: string;
|
|
26
28
|
sendTrackingEvent: () => void;
|
|
27
29
|
};
|
|
28
30
|
export declare const MainAppContext: import('react').Context<IMainAppContext>;
|
package/context/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;CAClC;AAED,MAAM,WAAW,aAAa;IAE5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAClE;AAED,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;CAClC;AAED,MAAM,WAAW,aAAa;IAE5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAClE;AAED,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAAuD,CAAC"}
|
|
@@ -5,7 +5,8 @@ interface IProps {
|
|
|
5
5
|
sendTrackingEvent?: (event: string, data?: ITrackingData | undefined) => void;
|
|
6
6
|
senderEmail?: string | null;
|
|
7
7
|
baseUrls?: IBaseUrls;
|
|
8
|
+
currentSmId?: string;
|
|
8
9
|
}
|
|
9
|
-
declare const MainAppProvider: ({ children, sendTrackingEvent, senderEmail, baseUrls }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const MainAppProvider: ({ children, sendTrackingEvent, senderEmail, baseUrls, currentSmId }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default MainAppProvider;
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/main-app-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAkB,MAAM,aAAa,CAAC;AAEvE,UAAU,MAAM;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/main-app-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAkB,MAAM,aAAa,CAAC;AAEvE,UAAU,MAAM;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,KAAK,IAAI,CAAC;IAC9E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,eAAe,wEAMlB,MAAM,4CAYR,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export declare const getConnectorData: (
|
|
1
|
+
export declare const getConnectorData: ({ inboxId, channelType }: {
|
|
2
|
+
inboxId: string;
|
|
3
|
+
channelType?: string;
|
|
4
|
+
}) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
2
5
|
export declare const getSpecificConnectorData: (id: string, email: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,6BAAwC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,iEAS7G,CAAC;AAEF,eAAO,MAAM,wBAAwB,OAAQ,MAAM,SAAS,MAAM,iEAKjE,CAAC"}
|
|
@@ -9,7 +9,10 @@ export declare const connectorCardLibrary: import('@reduxjs/toolkit').Slice<impo
|
|
|
9
9
|
}, "connectorCardLibrary", "connectorCardLibrary", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').IConnectorState>>;
|
|
10
10
|
declare const fetchAllCardsData: import('@reduxjs/toolkit').AsyncThunk<{
|
|
11
11
|
cards: ICard[];
|
|
12
|
-
},
|
|
12
|
+
}, {
|
|
13
|
+
inboxId: string;
|
|
14
|
+
channelType?: string;
|
|
15
|
+
}, {
|
|
13
16
|
state?: unknown;
|
|
14
17
|
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
15
18
|
extra?: unknown;
|
|
@@ -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,EAAE,MAAM,eAAe,CAAC;AAIrD,eAAO,MAAM,oBAAoB;;;;;;uKAsD/B,CAAC;AAIH,QAAA,MAAM,iBAAiB
|
|
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,EAAE,MAAM,eAAe,CAAC;AAIrD,eAAO,MAAM,oBAAoB;;;;;;uKAsD/B,CAAC;AAIH,QAAA,MAAM,iBAAiB;;;aAEuB,MAAM;kBAAgB,MAAM;;;;;;;;;;EAUzE,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;QAEc,MAAM;WAAS,MAAM;gBAAc,OAAO;;;;;;;;;;EAuBlF,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
|
@@ -23794,19 +23794,27 @@ function G7({ theme: e, dark: t, darkAuto: n, children: r, custom: o, ...A }) {
|
|
|
23794
23794
|
const X7 = ({ cache: e, theme: t, children: n, ...r }) => b.createElement(z7, e, b.createElement(G7, gr({ theme: t }, r), n)), ZC = { AccountCircle: W1, Add: nh, ArchiveOutlined: rh, ArrowBack: oh, ArrowBackIos: Ah, ArrowDropDown: ih, ArrowDropUp: ah, ArrowForward: sh, ArrowOutward: lh, CalendarTodayOutlinedIcon: q1, Cancel: ch, CancelOutlined: uh, CheckCircle: gh, ChevronRightOutlined: fh, Close: dh, CodeSharp: Ch, DeleteOutline: Eh, DownloadOutlined: ph, DragIndicator: Bh, EditOutlined: Ih, Error: Qh, ErrorOutline: hh, GroupsOutlined: mh, InfoOutlined: yh, LabelOutlined: vh, Link: bh, LockOutlined: wh, MailOutlined: xh, MicNone: Th, MoreVert: Fh, NotificationsOutlined: Oh, OpenInNew: kh, Pause: Rh, PersonOutline: Sh, PersonOutlined: Mh, Phone: Uh, PlayArrow: Dh, Public: Ph, Search: Lh, Settings: Nh, SettingsOutlined: jh, StickyNote2Outlined: Hh, ThumbDownAlt: Vh, ThumbDownOffAlt: zh, ThumbUpAlt: Yh, ThumbUpOffAlt: Wh, TimerOutlined: Kh, TrackChanges: qh, UnarchiveOutlined: Jh, Voicemail: Gh, Warning: Xh, WarningAmber: Zh }, _C = S7, Z7 = {
|
|
23795
23795
|
email: "",
|
|
23796
23796
|
baseUrls: {},
|
|
23797
|
+
currentSmId: "",
|
|
23797
23798
|
sendTrackingEvent: () => {
|
|
23798
23799
|
}
|
|
23799
|
-
}, Ms = Ep(Z7), _7 = ({
|
|
23800
|
-
|
|
23800
|
+
}, Ms = Ep(Z7), _7 = ({
|
|
23801
|
+
children: e,
|
|
23802
|
+
sendTrackingEvent: t,
|
|
23803
|
+
senderEmail: n = "",
|
|
23804
|
+
baseUrls: r = {},
|
|
23805
|
+
currentSmId: o = ""
|
|
23806
|
+
}) => {
|
|
23807
|
+
const A = pp(
|
|
23801
23808
|
() => ({
|
|
23802
23809
|
email: n,
|
|
23803
23810
|
baseUrls: r,
|
|
23811
|
+
currentSmId: o,
|
|
23804
23812
|
sendTrackingEvent: t || (() => {
|
|
23805
23813
|
})
|
|
23806
23814
|
}),
|
|
23807
|
-
[n, r, t]
|
|
23815
|
+
[n, r, t, o]
|
|
23808
23816
|
);
|
|
23809
|
-
return /* @__PURE__ */ F.jsx(Ms.Provider, { value:
|
|
23817
|
+
return /* @__PURE__ */ F.jsx(Ms.Provider, { value: A, children: e });
|
|
23810
23818
|
};
|
|
23811
23819
|
function Rt(e) {
|
|
23812
23820
|
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
@@ -29104,40 +29112,38 @@ function tp() {
|
|
|
29104
29112
|
}();
|
|
29105
29113
|
e.Bifrost = l;
|
|
29106
29114
|
})(hE);
|
|
29107
|
-
const OF = new hE.Bifrost(), kF = ({
|
|
29108
|
-
const { appEnv:
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29113
|
-
|
|
29114
|
-
|
|
29115
|
-
|
|
29116
|
-
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29120
|
-
|
|
29121
|
-
|
|
29122
|
-
|
|
29123
|
-
|
|
29124
|
-
|
|
29125
|
-
userId: Number(s),
|
|
29126
|
-
usergroupId: Number(c)
|
|
29115
|
+
const OF = new hE.Bifrost(), kF = ({ configHiver: e, withCredentials: t }) => async (r) => {
|
|
29116
|
+
const { appEnv: o, tier: A } = ox(), a = nx(), s = rx(), { url: c, method: l, root_url: u } = r, E = {
|
|
29117
|
+
root_url: (u || Ax()) + ((r == null ? void 0 : r.prefix) || ""),
|
|
29118
|
+
url: c,
|
|
29119
|
+
method: l,
|
|
29120
|
+
withCredentials: t,
|
|
29121
|
+
appEnv: o,
|
|
29122
|
+
tier: A,
|
|
29123
|
+
headers: r == null ? void 0 : r.headers,
|
|
29124
|
+
csrfToken: r == null ? void 0 : r.csrfToken,
|
|
29125
|
+
onSuccess: r == null ? void 0 : r.onSuccess,
|
|
29126
|
+
onFail: r == null ? void 0 : r.onFail,
|
|
29127
|
+
data: r == null ? void 0 : r.data,
|
|
29128
|
+
params: r == null ? void 0 : r.params,
|
|
29129
|
+
timeout: r == null ? void 0 : r.timeout,
|
|
29130
|
+
formData: r == null ? void 0 : r.formData,
|
|
29131
|
+
userId: Number(a),
|
|
29132
|
+
usergroupId: Number(s)
|
|
29127
29133
|
};
|
|
29128
29134
|
try {
|
|
29129
29135
|
console.log(
|
|
29130
29136
|
"--- requestParams - ",
|
|
29131
|
-
|
|
29137
|
+
E,
|
|
29132
29138
|
" --- configHiver - ",
|
|
29133
|
-
|
|
29139
|
+
e,
|
|
29134
29140
|
" --- isHiverApiDomain - ",
|
|
29135
29141
|
!0
|
|
29136
29142
|
);
|
|
29137
|
-
const
|
|
29138
|
-
return console.log("--- response - ",
|
|
29139
|
-
} catch (
|
|
29140
|
-
throw console.error("API call failed with error: ",
|
|
29143
|
+
const Q = await OF.hiverAxios(E, { ...e, isHiverApiDomain: !0 });
|
|
29144
|
+
return console.log("--- response - ", Q), Q;
|
|
29145
|
+
} catch (Q) {
|
|
29146
|
+
throw console.error("API call failed with error: ", Q), Q;
|
|
29141
29147
|
}
|
|
29142
29148
|
}, np = kF({
|
|
29143
29149
|
configHiver: {
|
|
@@ -29146,9 +29152,13 @@ const OF = new hE.Bifrost(), kF = ({ rootUrl: e, configHiver: t, withCredentials
|
|
|
29146
29152
|
isHiverApiDomain: !0
|
|
29147
29153
|
},
|
|
29148
29154
|
withCredentials: !0
|
|
29149
|
-
}), rp = "/v1/api", RF = `${rp}/connectors/cards`, SF = `${rp}/connectors/cards/:id/data?senderEmail={{email}}`, MF = () => np({
|
|
29155
|
+
}), rp = "/v1/api", RF = `${rp}/connectors/cards`, SF = `${rp}/connectors/cards/:id/data?senderEmail={{email}}`, MF = ({ inboxId: e, channelType: t = "email" }) => np({
|
|
29150
29156
|
url: RF,
|
|
29151
|
-
method: QE.GET
|
|
29157
|
+
method: QE.GET,
|
|
29158
|
+
data: {
|
|
29159
|
+
inbox_id: e,
|
|
29160
|
+
channel_type: t
|
|
29161
|
+
}
|
|
29152
29162
|
}), UF = (e, t) => np({
|
|
29153
29163
|
url: SF.replace(":id", e).replace("{{email}}", t),
|
|
29154
29164
|
method: QE.GET
|
|
@@ -29264,13 +29274,16 @@ const qF = "success", JF = "error", GF = "Some error occured. Please contact sup
|
|
|
29264
29274
|
};
|
|
29265
29275
|
});
|
|
29266
29276
|
}
|
|
29267
|
-
}), ua = IE(
|
|
29268
|
-
|
|
29269
|
-
|
|
29270
|
-
|
|
29271
|
-
|
|
29272
|
-
|
|
29273
|
-
|
|
29277
|
+
}), ua = IE(
|
|
29278
|
+
"connectorCardLibrary/fetchAllCard",
|
|
29279
|
+
async ({ inboxId: e, channelType: t }) => {
|
|
29280
|
+
var o;
|
|
29281
|
+
const n = await MF({ inboxId: e, channelType: t });
|
|
29282
|
+
return Array.isArray((o = n == null ? void 0 : n.data) == null ? void 0 : o.cards) ? { cards: n.data.cards.sort((A, a) => (a == null ? void 0 : a.priority) - (A == null ? void 0 : A.priority)) } : {
|
|
29283
|
+
cards: []
|
|
29284
|
+
};
|
|
29285
|
+
}
|
|
29286
|
+
), No = IE(
|
|
29274
29287
|
"connectorCardLibrary/fetchSpecificCard",
|
|
29275
29288
|
async ({ id: e, email: t, isRefresh: n }) => {
|
|
29276
29289
|
const r = await UF(e, t), o = r == null ? void 0 : r.data;
|
|
@@ -29297,6 +29310,7 @@ const qF = "success", JF = "error", GF = "Some error occured. Please contact sup
|
|
|
29297
29310
|
{
|
|
29298
29311
|
sendTrackingEvent: t == null ? void 0 : t.sendTrackingEvent,
|
|
29299
29312
|
senderEmail: n,
|
|
29313
|
+
currentSmId: t == null ? void 0 : t.currentSmId,
|
|
29300
29314
|
baseUrls: r,
|
|
29301
29315
|
children: /* @__PURE__ */ F.jsx(Bp, { fallback: /* @__PURE__ */ F.jsx(F.Fragment, {}), children: e })
|
|
29302
29316
|
}
|
|
@@ -29614,26 +29628,26 @@ const qF = "success", JF = "error", GF = "Some error occured. Please contact sup
|
|
|
29614
29628
|
/* @__PURE__ */ F.jsx(jo, { variant: "rounded", width: "253px", height: "46px", animation: "wave" })
|
|
29615
29629
|
] })
|
|
29616
29630
|
] }), LO = ({ isAdmin: e = !1 }) => {
|
|
29617
|
-
const { email: t } = za(Ms),
|
|
29618
|
-
return Ho(() => (t && n(ua()), () => {
|
|
29619
|
-
|
|
29620
|
-
}), [
|
|
29621
|
-
|
|
29631
|
+
const { email: t, currentSmId: n } = za(Ms), r = Ap(), o = qi(DF), A = qi(LF), a = qi(NF), s = qi(PF);
|
|
29632
|
+
return Ho(() => (t && n && r(ua({ inboxId: n })), () => {
|
|
29633
|
+
r(_F.clearConnectorList());
|
|
29634
|
+
}), [r, t, n]), s === Nn.LOADING ? /* @__PURE__ */ F.jsx(PO, {}) : /* @__PURE__ */ F.jsxs(sp, { "data-testid": Array.isArray(o) ? "connector-agent" : "loading", children: [
|
|
29635
|
+
o != null && o.length ? /* @__PURE__ */ F.jsxs(An, { direction: "row", sx: { marginBottom: "20px" }, children: [
|
|
29622
29636
|
/* @__PURE__ */ F.jsx(ip, {}),
|
|
29623
29637
|
/* @__PURE__ */ F.jsx(ap, { variant: "h2", children: "Connectors" })
|
|
29624
29638
|
] }) : null,
|
|
29625
|
-
|
|
29626
|
-
const { id:
|
|
29639
|
+
o != null && o.length ? o.map((c, l) => {
|
|
29640
|
+
const { id: u } = c;
|
|
29627
29641
|
return /* @__PURE__ */ F.jsx("div", { children: /* @__PURE__ */ F.jsx(
|
|
29628
29642
|
QO,
|
|
29629
29643
|
{
|
|
29630
|
-
card:
|
|
29631
|
-
specificCardData:
|
|
29644
|
+
card: c,
|
|
29645
|
+
specificCardData: A,
|
|
29632
29646
|
email: t ?? "",
|
|
29633
|
-
defaultOpenState:
|
|
29634
|
-
specificConnectorApiStatus:
|
|
29647
|
+
defaultOpenState: l === 0,
|
|
29648
|
+
specificConnectorApiStatus: a
|
|
29635
29649
|
}
|
|
29636
|
-
) },
|
|
29650
|
+
) }, u);
|
|
29637
29651
|
}) : /* @__PURE__ */ F.jsx(DO, { isAdmin: e })
|
|
29638
29652
|
] });
|
|
29639
29653
|
}, NO = K(Gn)`
|