@hiver/connector-admin 4.14.0-slack3-beta.0 → 4.14.0-slack3-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/index.es.js +106 -115
- package/index.umd.js +18 -18
- package/package.json +1 -1
- package/v2/app/connectors/pages/app-detail/Overview.d.ts +5 -0
- package/v2/app/connectors/pages/app-detail/Overview.d.ts.map +1 -1
- package/v2/app/connectors/pages/app-detail/index.d.ts.map +1 -1
- package/v2/app/connectors/pages/app-detail/registry.d.ts +17 -14
- package/v2/app/connectors/pages/app-detail/registry.d.ts.map +1 -1
- package/v2/app/connectors/pages/app-detail/schema.d.ts +1 -37
- package/v2/app/connectors/pages/app-detail/schema.d.ts.map +1 -1
- package/v2/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/v2/types/connector.d.ts +39 -0
- package/v2/types/connector.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -6835,7 +6835,7 @@ const _r = {
|
|
|
6835
6835
|
if (!_r.baseUrl)
|
|
6836
6836
|
throw new Error("Base url is not setup. please call the initConnectorsBifrost function with the appropriate value");
|
|
6837
6837
|
return _r;
|
|
6838
|
-
},
|
|
6838
|
+
}, NK = ({
|
|
6839
6839
|
baseUrl: e,
|
|
6840
6840
|
appEnv: t,
|
|
6841
6841
|
tier: n,
|
|
@@ -27362,7 +27362,7 @@ const tM = w(Io)`
|
|
|
27362
27362
|
DELETE: "DELETE",
|
|
27363
27363
|
PATCH: "PATCH",
|
|
27364
27364
|
PUT: "PUT"
|
|
27365
|
-
}, AM = "Invalid text",
|
|
27365
|
+
}, AM = "Invalid text", kK = async (e) => {
|
|
27366
27366
|
const t = new URLSearchParams(), { inboxIds: n, channelType: r, conversationId: o, fetchAuthenticatedConnectors: A } = e || {};
|
|
27367
27367
|
return n == null || n.forEach((a) => {
|
|
27368
27368
|
t.append("inbox_ids", a);
|
|
@@ -27376,7 +27376,7 @@ const tM = w(Io)`
|
|
|
27376
27376
|
url: `${oM}?${t.toString()}`,
|
|
27377
27377
|
method: aa.GET
|
|
27378
27378
|
});
|
|
27379
|
-
}, iM = "/v1/api/connectors/ug",
|
|
27379
|
+
}, iM = "/v1/api/connectors/ug", MK = async (e) => {
|
|
27380
27380
|
const t = new URLSearchParams();
|
|
27381
27381
|
for (const [A, i] of Object.entries(e || {}))
|
|
27382
27382
|
if (Array.isArray(i))
|
|
@@ -27424,7 +27424,7 @@ const tM = w(Io)`
|
|
|
27424
27424
|
fieldLabel: r.fieldLabel,
|
|
27425
27425
|
fieldSource: r.fieldSource
|
|
27426
27426
|
}))
|
|
27427
|
-
),
|
|
27427
|
+
), jK = async (e) => {
|
|
27428
27428
|
var A, i;
|
|
27429
27429
|
const [t, n] = await Promise.all([
|
|
27430
27430
|
We({
|
|
@@ -27446,14 +27446,14 @@ const tM = w(Io)`
|
|
|
27446
27446
|
return { objectName: n.objectName, fields: r };
|
|
27447
27447
|
});
|
|
27448
27448
|
return I2(t);
|
|
27449
|
-
},
|
|
27449
|
+
}, UK = async (e) => {
|
|
27450
27450
|
var n;
|
|
27451
27451
|
const t = await We({
|
|
27452
27452
|
url: `/v1/api/connectors/${e}/object-fields/static`,
|
|
27453
27453
|
method: aa.GET
|
|
27454
27454
|
});
|
|
27455
27455
|
return h2(((n = t == null ? void 0 : t.data) == null ? void 0 : n.objects) ?? []);
|
|
27456
|
-
},
|
|
27456
|
+
}, VK = async (e) => {
|
|
27457
27457
|
var n;
|
|
27458
27458
|
const t = await We({
|
|
27459
27459
|
url: `/v1/api/connectors/${e}/object-fields/dynamic`,
|
|
@@ -33247,31 +33247,7 @@ function bW({ mode: e, id: t }) {
|
|
|
33247
33247
|
};
|
|
33248
33248
|
}
|
|
33249
33249
|
const Ib = {
|
|
33250
|
-
slack:
|
|
33251
|
-
configuration: {
|
|
33252
|
-
title: "Configure Slack app",
|
|
33253
|
-
subtitle: "Choose which Shared Inboxes and roles to enable Slack for.",
|
|
33254
|
-
blocks: [
|
|
33255
|
-
{
|
|
33256
|
-
field: "inboxes",
|
|
33257
|
-
icon: "mail",
|
|
33258
|
-
title: "Select Shared Inboxes",
|
|
33259
|
-
subtitle: "Inboxes where Slack is visible"
|
|
33260
|
-
},
|
|
33261
|
-
{
|
|
33262
|
-
field: "roles",
|
|
33263
|
-
icon: "message",
|
|
33264
|
-
title: "Select who can start internal discussions on Slack",
|
|
33265
|
-
subtitle: "Who can access this info"
|
|
33266
|
-
}
|
|
33267
|
-
],
|
|
33268
|
-
saveLabel: "Save configuration",
|
|
33269
|
-
cancelLabel: "Cancel"
|
|
33270
|
-
},
|
|
33271
|
-
features: ["Start a channel or thread and message directly from Hiver", "Link a slack thread to a conversation"],
|
|
33272
|
-
logoUrl: "https://cdn.hiverhq.com/connectors-module/connectors-icons/v2/connector_slack.svg",
|
|
33273
|
-
useController: bW
|
|
33274
|
-
}
|
|
33250
|
+
slack: bW
|
|
33275
33251
|
}, vW = (e) => Ib[e] ?? null, ga = (e) => e in Ib, Op = ({ showSuggestedApps: e }) => {
|
|
33276
33252
|
const { sendTrackingEvent: t, availableFeatures: n, suggestedAppsMap: r = {} } = Ue(wt), o = an(), A = Pe(X2), i = Pe(no), a = Pe(Da), s = Pe(iG), c = (u) => {
|
|
33277
33253
|
var d, C;
|
|
@@ -38281,18 +38257,28 @@ const KX = w(le)`
|
|
|
38281
38257
|
] });
|
|
38282
38258
|
}, nK = ({
|
|
38283
38259
|
carouselImages: e,
|
|
38284
|
-
|
|
38285
|
-
|
|
38286
|
-
|
|
38287
|
-
|
|
38260
|
+
illustrationUrl: t,
|
|
38261
|
+
overviewHelpHeading: n,
|
|
38262
|
+
showScheduleCall: r,
|
|
38263
|
+
templateDescription: o,
|
|
38264
|
+
features: A,
|
|
38265
|
+
supportLinks: i,
|
|
38266
|
+
appName: a
|
|
38288
38267
|
}) => {
|
|
38289
|
-
var
|
|
38290
|
-
const
|
|
38268
|
+
var c;
|
|
38269
|
+
const s = (e ?? []).map(({ url: u }) => ({ src: u }));
|
|
38291
38270
|
return /* @__PURE__ */ l.jsxs(Zb, { children: [
|
|
38292
38271
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
38293
|
-
|
|
38294
|
-
|
|
38295
|
-
|
|
38272
|
+
t ? /* @__PURE__ */ l.jsx(
|
|
38273
|
+
"img",
|
|
38274
|
+
{
|
|
38275
|
+
src: t,
|
|
38276
|
+
alt: `${a ?? "App"} overview`,
|
|
38277
|
+
style: { width: "100%", maxWidth: 772, height: "auto", borderRadius: 12, display: "block" }
|
|
38278
|
+
}
|
|
38279
|
+
) : s.length > 0 && /* @__PURE__ */ l.jsx(Db, { previewList: s }),
|
|
38280
|
+
o && /* @__PURE__ */ l.jsx($, { variant: "body2", sx: { color: (c = q.palette.gray) == null ? void 0 : c.gray1, marginTop: 2 }, children: /* @__PURE__ */ l.jsx("span", { dangerouslySetInnerHTML: { __html: o } }) }),
|
|
38281
|
+
A && A.length > 0 && /* @__PURE__ */ l.jsxs(KX, { children: [
|
|
38296
38282
|
/* @__PURE__ */ l.jsx(
|
|
38297
38283
|
$,
|
|
38298
38284
|
{
|
|
@@ -38307,34 +38293,34 @@ const KX = w(le)`
|
|
|
38307
38293
|
children: "Features"
|
|
38308
38294
|
}
|
|
38309
38295
|
),
|
|
38310
|
-
|
|
38311
|
-
var
|
|
38296
|
+
A.map((u, g) => {
|
|
38297
|
+
var E;
|
|
38312
38298
|
return /* @__PURE__ */ l.jsxs(
|
|
38313
38299
|
$,
|
|
38314
38300
|
{
|
|
38315
38301
|
sx: {
|
|
38316
38302
|
fontSize: "13px",
|
|
38317
38303
|
lineHeight: "20px",
|
|
38318
|
-
color: ((
|
|
38304
|
+
color: ((E = q.palette.gray) == null ? void 0 : E.gray2) ?? "#4D596C"
|
|
38319
38305
|
},
|
|
38320
38306
|
children: [
|
|
38321
|
-
|
|
38307
|
+
g + 1,
|
|
38322
38308
|
". ",
|
|
38323
|
-
|
|
38309
|
+
u
|
|
38324
38310
|
]
|
|
38325
38311
|
},
|
|
38326
|
-
|
|
38312
|
+
g
|
|
38327
38313
|
);
|
|
38328
38314
|
})
|
|
38329
38315
|
] })
|
|
38330
38316
|
] }),
|
|
38331
38317
|
/* @__PURE__ */ l.jsxs(H, { gap: "12px", children: [
|
|
38332
|
-
/* @__PURE__ */ l.jsx($, { variant: "h2", marginBottom: "8px", children: mb }),
|
|
38333
|
-
/* @__PURE__ */ l.jsx(Yu, { isSettingsPage: !0 }),
|
|
38334
|
-
/* @__PURE__ */ l.jsx(Hb, { connectorName:
|
|
38318
|
+
/* @__PURE__ */ l.jsx($, { variant: "h2", marginBottom: "8px", children: n ?? mb }),
|
|
38319
|
+
r !== !1 && /* @__PURE__ */ l.jsx(Yu, { isSettingsPage: !0 }),
|
|
38320
|
+
/* @__PURE__ */ l.jsx(Hb, { connectorName: a, supportLinks: i })
|
|
38335
38321
|
] })
|
|
38336
38322
|
] });
|
|
38337
|
-
}, Zp = ["Overview", "Configuration"], rK = YE("'Hanken Grotesk', system-ui, sans-serif");
|
|
38323
|
+
}, Zp = ["Overview", "Configuration"], rK = { title: "Configuration", visibility: !0 }, oK = YE("'Hanken Grotesk', system-ui, sans-serif");
|
|
38338
38324
|
var QB;
|
|
38339
38325
|
const $p = {
|
|
38340
38326
|
textTransform: "none",
|
|
@@ -38351,12 +38337,12 @@ const $p = {
|
|
|
38351
38337
|
if (he(() => {
|
|
38352
38338
|
if (r) {
|
|
38353
38339
|
if (e === "template") {
|
|
38354
|
-
|
|
38340
|
+
n(qA(r));
|
|
38355
38341
|
return;
|
|
38356
38342
|
}
|
|
38357
|
-
s ? s.templateId &&
|
|
38343
|
+
s ? s.templateId && n(qA(s.templateId)) : n(Ni(r));
|
|
38358
38344
|
}
|
|
38359
|
-
}, [r, e,
|
|
38345
|
+
}, [r, e, s, n]), e === "template") {
|
|
38360
38346
|
const h = (o == null ? void 0 : o[r]) ?? null;
|
|
38361
38347
|
return h ? ga(h.type) ? /* @__PURE__ */ l.jsx(tB, { mode: "template", id: r, headerSource: h }) : /* @__PURE__ */ l.jsx(Tc, { to: `${Ne.BASEPATH}${Ne.API_VIEW}/${r}`, replace: !0 }) : i === be.FAILED ? /* @__PURE__ */ l.jsxs(yi, { children: [
|
|
38362
38348
|
/* @__PURE__ */ l.jsxs(pC, { onClick: () => t(`${Ne.BASEPATH}${Ne.DASHBOARD}`), children: [
|
|
@@ -38385,12 +38371,12 @@ const $p = {
|
|
|
38385
38371
|
] }) : /* @__PURE__ */ l.jsx(yi, { children: /* @__PURE__ */ l.jsx(Jg, {}) });
|
|
38386
38372
|
}, tB = ({ mode: e, id: t, headerSource: n }) => {
|
|
38387
38373
|
var d;
|
|
38388
|
-
const r = an(), [o, A] = mA(),
|
|
38374
|
+
const r = an(), [o, A] = mA(), a = vW(n.type)({ mode: e, id: t }), s = n.logo, u = o.get("tab") === "configuration" ? 1 : 0, [g, E] = ee(u), h = (C, p) => {
|
|
38389
38375
|
E(p);
|
|
38390
38376
|
const I = new URLSearchParams(o);
|
|
38391
38377
|
I.set("tab", p === 1 ? "configuration" : "overview"), A(I, { replace: !0 });
|
|
38392
38378
|
}, f = () => h({}, 1);
|
|
38393
|
-
return /* @__PURE__ */ l.jsx(nu, { theme:
|
|
38379
|
+
return /* @__PURE__ */ l.jsx(nu, { theme: oK, children: /* @__PURE__ */ l.jsxs(yi, { children: [
|
|
38394
38380
|
/* @__PURE__ */ l.jsxs(pC, { onClick: () => r(`${Ne.BASEPATH}${Ne.DASHBOARD}`), children: [
|
|
38395
38381
|
/* @__PURE__ */ l.jsx("img", { src: hC, alt: "", width: 20, height: 20 }),
|
|
38396
38382
|
"Apps Marketplace"
|
|
@@ -38436,7 +38422,9 @@ const $p = {
|
|
|
38436
38422
|
TabIndicatorProps: { sx: { backgroundColor: q.palette.purple.primary, height: "2px" } },
|
|
38437
38423
|
sx: {
|
|
38438
38424
|
marginTop: 4,
|
|
38439
|
-
minHeight: "auto"
|
|
38425
|
+
minHeight: "auto",
|
|
38426
|
+
width: "100%",
|
|
38427
|
+
borderBottom: "1px solid #D6DDE8"
|
|
38440
38428
|
},
|
|
38441
38429
|
children: [
|
|
38442
38430
|
/* @__PURE__ */ l.jsx(Zi, { label: Zp[0], sx: $p }),
|
|
@@ -38448,15 +38436,18 @@ const $p = {
|
|
|
38448
38436
|
nK,
|
|
38449
38437
|
{
|
|
38450
38438
|
carouselImages: n.carouselImages,
|
|
38439
|
+
illustrationUrl: n.illustrationUrl,
|
|
38440
|
+
overviewHelpHeading: n.overviewHelpHeading,
|
|
38441
|
+
showScheduleCall: n.showScheduleCall,
|
|
38451
38442
|
templateDescription: n.templateDescription,
|
|
38452
|
-
features:
|
|
38443
|
+
features: n.features,
|
|
38453
38444
|
supportLinks: n.supportLinks,
|
|
38454
38445
|
appName: n.name
|
|
38455
38446
|
}
|
|
38456
38447
|
) }),
|
|
38457
|
-
/* @__PURE__ */ l.jsx("div", { hidden: g !== 1, style: { paddingTop: 24 }, children: /* @__PURE__ */ l.jsx(tK, { schema:
|
|
38448
|
+
/* @__PURE__ */ l.jsx("div", { hidden: g !== 1, style: { paddingTop: 24 }, children: /* @__PURE__ */ l.jsx(tK, { schema: n.configuration ?? rK, controller: a }) })
|
|
38458
38449
|
] }) });
|
|
38459
|
-
},
|
|
38450
|
+
}, AK = (e) => RQ(
|
|
38460
38451
|
[
|
|
38461
38452
|
{
|
|
38462
38453
|
path: Ne.BASEPATH,
|
|
@@ -38498,45 +38489,45 @@ const $p = {
|
|
|
38498
38489
|
{
|
|
38499
38490
|
basename: e
|
|
38500
38491
|
}
|
|
38501
|
-
),
|
|
38492
|
+
), iK = ({
|
|
38502
38493
|
basename: e = "/",
|
|
38503
38494
|
metaData: t,
|
|
38504
38495
|
userId: n
|
|
38505
38496
|
}) => {
|
|
38506
38497
|
var o;
|
|
38507
|
-
const r = Te(() =>
|
|
38498
|
+
const r = Te(() => AK(e), [e]);
|
|
38508
38499
|
return (o = t == null ? void 0 : t.templateUpdates) != null && o.version && n && (AY(t.templateUpdates.version), lY(n)), /* @__PURE__ */ l.jsx(OQ, { router: r });
|
|
38509
|
-
},
|
|
38500
|
+
}, aK = "internal-chat", sK = w(le)`
|
|
38510
38501
|
padding: 43px 0px 0 35px;
|
|
38511
38502
|
box-sizing: border-box;
|
|
38512
38503
|
width: 100%;
|
|
38513
38504
|
`, $b = w(H)`
|
|
38514
38505
|
align-items: center;
|
|
38515
38506
|
flex-direction: row;
|
|
38516
|
-
`,
|
|
38507
|
+
`, lK = w($b)`
|
|
38517
38508
|
margin-top: 32px;
|
|
38518
38509
|
a {
|
|
38519
38510
|
cursor: pointer;
|
|
38520
38511
|
}
|
|
38521
|
-
`,
|
|
38512
|
+
`, cK = w(H)`
|
|
38522
38513
|
align-items: center;
|
|
38523
38514
|
justify-content: space-between;
|
|
38524
38515
|
flex-direction: row;
|
|
38525
38516
|
margin-bottom: 111px;
|
|
38526
|
-
`,
|
|
38517
|
+
`, uK = w(H)`
|
|
38527
38518
|
align-items: center;
|
|
38528
38519
|
justify-content: space-between;
|
|
38529
38520
|
flex-direction: row;
|
|
38530
38521
|
margin-left: 102px;
|
|
38531
38522
|
max-width: 868px;
|
|
38532
38523
|
max-height: 380px;
|
|
38533
|
-
`,
|
|
38524
|
+
`, gK = w(le)`
|
|
38534
38525
|
box-sizing: border-box;
|
|
38535
38526
|
padding: 69px 40px;
|
|
38536
38527
|
width: 434px;
|
|
38537
38528
|
height: 380px;
|
|
38538
38529
|
background-color: rgba(246, 248, 252, 1);
|
|
38539
|
-
`,
|
|
38530
|
+
`, dK = w(H)`
|
|
38540
38531
|
background-color: #e5eeff;
|
|
38541
38532
|
width: 434px;
|
|
38542
38533
|
justify-content: center;
|
|
@@ -38544,7 +38535,7 @@ const $p = {
|
|
|
38544
38535
|
padding: 28px 93px 0 94px;
|
|
38545
38536
|
box-sizing: border-box;
|
|
38546
38537
|
max-height: 380px;
|
|
38547
|
-
`,
|
|
38538
|
+
`, CK = w(H)`
|
|
38548
38539
|
flex-direction: row;
|
|
38549
38540
|
background-color: #fbb401;
|
|
38550
38541
|
padding: 4px 8px;
|
|
@@ -38557,7 +38548,7 @@ const $p = {
|
|
|
38557
38548
|
width: 11px;
|
|
38558
38549
|
margin-right: 5px;
|
|
38559
38550
|
}
|
|
38560
|
-
`,
|
|
38551
|
+
`, EK = w($)`
|
|
38561
38552
|
font-weight: 500;
|
|
38562
38553
|
justify-content: center;
|
|
38563
38554
|
align-items: center;
|
|
@@ -38566,16 +38557,16 @@ const $p = {
|
|
|
38566
38557
|
color: white;
|
|
38567
38558
|
line-height: 12px;
|
|
38568
38559
|
letter-spacing: 0.01px;
|
|
38569
|
-
`,
|
|
38560
|
+
`, fK = w($)`
|
|
38570
38561
|
color: ${q.palette.gray.gray2};
|
|
38571
38562
|
margin-top: 8px;
|
|
38572
38563
|
margin-bottom: 20px;
|
|
38573
|
-
`,
|
|
38564
|
+
`, IK = w(rt)`
|
|
38574
38565
|
width: 95px;
|
|
38575
38566
|
height: 32px;
|
|
38576
38567
|
display: flex;
|
|
38577
38568
|
align-items: center;
|
|
38578
|
-
`,
|
|
38569
|
+
`, hK = w(rt)`
|
|
38579
38570
|
height: 32px;
|
|
38580
38571
|
white-space: pre;
|
|
38581
38572
|
display: flex;
|
|
@@ -38632,36 +38623,36 @@ w($)`
|
|
|
38632
38623
|
overflow: hidden;
|
|
38633
38624
|
text-overflow: ellipsis;
|
|
38634
38625
|
`;
|
|
38635
|
-
const
|
|
38626
|
+
const pK = "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='M1.44441%207.72259C1.2339%206.35423%201.02339%204.98592%200.812876%203.61756C0.766191%203.31424%201.11132%203.10736%201.35682%203.2915C2.01269%203.7834%202.66853%204.27527%203.32439%204.76717C3.54034%204.92913%203.84799%204.87642%203.9977%204.65182L5.63574%202.19474C5.80885%201.93509%206.19035%201.93509%206.36346%202.19474L8.0015%204.65182C8.15121%204.87642%208.45886%204.92909%208.67481%204.76717C9.33068%204.27527%209.98651%203.7834%2010.6424%203.2915C10.8879%203.10736%2011.233%203.31424%2011.1864%203.61756C10.9758%204.98592%2010.7653%206.35423%2010.5548%207.72259H1.44441Z'%20fill='white'/%3e%3cpath%20d='M10.0788%2010.0027H1.91834C1.65602%2010.0027%201.44336%209.79009%201.44336%209.52777V8.48438H10.5538V9.52777C10.5537%209.79009%2010.3411%2010.0027%2010.0788%2010.0027Z'%20fill='white'/%3e%3c/svg%3e", BK = ({ availableFeatures: e }) => {
|
|
38636
38627
|
const { connectorFunctions: t } = Ue(wt), n = (o) => {
|
|
38637
|
-
o.stopPropagation(), br(e,
|
|
38628
|
+
o.stopPropagation(), br(e, aK) && KV();
|
|
38638
38629
|
}, r = () => {
|
|
38639
38630
|
t != null && t.redirectToUpgradePage && t.redirectToUpgradePage();
|
|
38640
38631
|
};
|
|
38641
|
-
return /* @__PURE__ */ l.jsxs(
|
|
38642
|
-
/* @__PURE__ */ l.jsx(
|
|
38643
|
-
/* @__PURE__ */ l.jsxs(
|
|
38644
|
-
/* @__PURE__ */ l.jsxs(
|
|
38645
|
-
/* @__PURE__ */ l.jsxs(
|
|
38646
|
-
/* @__PURE__ */ l.jsx("img", { src:
|
|
38647
|
-
/* @__PURE__ */ l.jsx(
|
|
38632
|
+
return /* @__PURE__ */ l.jsxs(sK, { children: [
|
|
38633
|
+
/* @__PURE__ */ l.jsx(cK, { children: /* @__PURE__ */ l.jsx(rB, { variant: "h2", children: Jc }) }),
|
|
38634
|
+
/* @__PURE__ */ l.jsxs(uK, { children: [
|
|
38635
|
+
/* @__PURE__ */ l.jsxs(gK, { children: [
|
|
38636
|
+
/* @__PURE__ */ l.jsxs(CK, { children: [
|
|
38637
|
+
/* @__PURE__ */ l.jsx("img", { src: pK }),
|
|
38638
|
+
/* @__PURE__ */ l.jsx(EK, { variant: "caption", children: _V })
|
|
38648
38639
|
] }),
|
|
38649
38640
|
/* @__PURE__ */ l.jsx(rB, { variant: "h2", children: Jc }),
|
|
38650
|
-
/* @__PURE__ */ l.jsx(
|
|
38641
|
+
/* @__PURE__ */ l.jsx(fK, { variant: "body2", children: RV }),
|
|
38651
38642
|
/* @__PURE__ */ l.jsxs($b, { children: [
|
|
38652
|
-
/* @__PURE__ */ l.jsx(
|
|
38653
|
-
/* @__PURE__ */ l.jsx(
|
|
38643
|
+
/* @__PURE__ */ l.jsx(IK, { onClick: r, children: DV }),
|
|
38644
|
+
/* @__PURE__ */ l.jsx(hK, { variant: "outlined", children: OV })
|
|
38654
38645
|
] }),
|
|
38655
|
-
/* @__PURE__ */ l.jsxs(
|
|
38646
|
+
/* @__PURE__ */ l.jsxs(lK, { children: [
|
|
38656
38647
|
/* @__PURE__ */ l.jsx(nB, { variant: "body1", children: LV }),
|
|
38657
38648
|
" ",
|
|
38658
38649
|
/* @__PURE__ */ l.jsx(nB, { component: "a", variant: "body1", color: "#1a70e0", onClick: (o) => n(o), children: FV })
|
|
38659
38650
|
] })
|
|
38660
38651
|
] }),
|
|
38661
|
-
/* @__PURE__ */ l.jsx(
|
|
38652
|
+
/* @__PURE__ */ l.jsx(dK, { children: /* @__PURE__ */ l.jsx("img", { src: LW }) })
|
|
38662
38653
|
] })
|
|
38663
38654
|
] });
|
|
38664
|
-
},
|
|
38655
|
+
}, QK = w(le)`
|
|
38665
38656
|
:root {
|
|
38666
38657
|
--toastify-color-light: #fff;
|
|
38667
38658
|
--toastify-color-dark: #121212;
|
|
@@ -39392,7 +39383,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39392
39383
|
transform: rotate(360deg);
|
|
39393
39384
|
}
|
|
39394
39385
|
}
|
|
39395
|
-
`,
|
|
39386
|
+
`, mK = w(QK)`
|
|
39396
39387
|
.Toastify__toast-container {
|
|
39397
39388
|
min-width: 320px !important;
|
|
39398
39389
|
font-size: 16px;
|
|
@@ -39441,7 +39432,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39441
39432
|
align-self: auto !important;
|
|
39442
39433
|
margin-left: 12px;
|
|
39443
39434
|
}
|
|
39444
|
-
`,
|
|
39435
|
+
`, bK = ({
|
|
39445
39436
|
basename: e,
|
|
39446
39437
|
baseUrls: t,
|
|
39447
39438
|
extraParams: n = {},
|
|
@@ -39462,10 +39453,10 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39462
39453
|
nativeIntegrations: A,
|
|
39463
39454
|
suggestedAppsMap: i,
|
|
39464
39455
|
overrideFont: a,
|
|
39465
|
-
children: XV(r) ? /* @__PURE__ */ l.jsx(
|
|
39466
|
-
/* @__PURE__ */ l.jsx(
|
|
39456
|
+
children: XV(r) ? /* @__PURE__ */ l.jsx(BK, { availableFeatures: r }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
39457
|
+
/* @__PURE__ */ l.jsx(iK, { basename: e, metaData: n.metaData, userId: s }),
|
|
39467
39458
|
tu(
|
|
39468
|
-
/* @__PURE__ */ l.jsx(
|
|
39459
|
+
/* @__PURE__ */ l.jsx(mK, { id: "toast-message", children: /* @__PURE__ */ l.jsx(
|
|
39469
39460
|
PB,
|
|
39470
39461
|
{
|
|
39471
39462
|
position: "bottom-left",
|
|
@@ -39483,7 +39474,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39483
39474
|
] })
|
|
39484
39475
|
}
|
|
39485
39476
|
) });
|
|
39486
|
-
},
|
|
39477
|
+
}, GK = (e) => e.isUnifiedView ? /* @__PURE__ */ l.jsx(bK, { ...e }) : /* @__PURE__ */ l.jsx(IV, { ...e }), vK = async ({ formId: e }) => {
|
|
39487
39478
|
const t = await We({
|
|
39488
39479
|
url: Fr(bG, { formId: e }),
|
|
39489
39480
|
method: An.GET
|
|
@@ -39491,11 +39482,11 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39491
39482
|
if (!n.fieldList.length)
|
|
39492
39483
|
throw new Error("Form has no fields");
|
|
39493
39484
|
return n;
|
|
39494
|
-
},
|
|
39485
|
+
}, yK = ({ formId: e, enabled: t }) => yo({
|
|
39495
39486
|
queryKey: ["fetchFormById", e],
|
|
39496
|
-
queryFn: () =>
|
|
39487
|
+
queryFn: () => vK({ formId: e }),
|
|
39497
39488
|
enabled: !!e && t
|
|
39498
|
-
}),
|
|
39489
|
+
}), xK = async ({ entityId: e }) => {
|
|
39499
39490
|
try {
|
|
39500
39491
|
const t = new URLSearchParams();
|
|
39501
39492
|
t.append("entity_type", "step_automation");
|
|
@@ -39512,11 +39503,11 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39512
39503
|
"ConnectorLibrary",
|
|
39513
39504
|
"FormDefaultsById",
|
|
39514
39505
|
e
|
|
39515
|
-
],
|
|
39506
|
+
], wK = ({ entityId: e, enabled: t }) => {
|
|
39516
39507
|
const n = ke(!0), r = yo({
|
|
39517
39508
|
queryKey: ev({ entityId: e }),
|
|
39518
39509
|
queryFn: async () => {
|
|
39519
|
-
const o = await
|
|
39510
|
+
const o = await xK({ entityId: e });
|
|
39520
39511
|
return n.current = !1, o;
|
|
39521
39512
|
},
|
|
39522
39513
|
refetchOnMount: !0,
|
|
@@ -39527,7 +39518,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39527
39518
|
enabledRef: n,
|
|
39528
39519
|
...r
|
|
39529
39520
|
};
|
|
39530
|
-
},
|
|
39521
|
+
}, TK = async ({
|
|
39531
39522
|
formId: e,
|
|
39532
39523
|
entityId: t,
|
|
39533
39524
|
data: n
|
|
@@ -39550,7 +39541,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39550
39541
|
} catch (r) {
|
|
39551
39542
|
throw console.error(r), r;
|
|
39552
39543
|
}
|
|
39553
|
-
},
|
|
39544
|
+
}, SK = ({
|
|
39554
39545
|
formId: e,
|
|
39555
39546
|
entityId: t,
|
|
39556
39547
|
onSuccess: n,
|
|
@@ -39558,7 +39549,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39558
39549
|
}) => {
|
|
39559
39550
|
const o = Ho();
|
|
39560
39551
|
return BA({
|
|
39561
|
-
mutationFn: (A) =>
|
|
39552
|
+
mutationFn: (A) => TK({ formId: e, entityId: t, data: A }),
|
|
39562
39553
|
onSuccess: (A) => {
|
|
39563
39554
|
t && o.invalidateQueries({ queryKey: ev({ entityId: t }) }), ir({ message: "Form defaults updated successfully", type: ra }), n == null || n(A);
|
|
39564
39555
|
},
|
|
@@ -39566,7 +39557,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39566
39557
|
r == null || r(), ir({ message: "Failed to update form defaults", type: Mo });
|
|
39567
39558
|
}
|
|
39568
39559
|
});
|
|
39569
|
-
},
|
|
39560
|
+
}, _K = ({
|
|
39570
39561
|
open: e,
|
|
39571
39562
|
formId: t,
|
|
39572
39563
|
entityId: n,
|
|
@@ -39581,7 +39572,7 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39581
39572
|
data: g,
|
|
39582
39573
|
isLoading: E,
|
|
39583
39574
|
isError: h
|
|
39584
|
-
} =
|
|
39575
|
+
} = yK({
|
|
39585
39576
|
formId: t,
|
|
39586
39577
|
enabled: e && !!t
|
|
39587
39578
|
}), {
|
|
@@ -39600,10 +39591,10 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39600
39591
|
data: Q,
|
|
39601
39592
|
enabledRef: m,
|
|
39602
39593
|
isLoading: v
|
|
39603
|
-
} =
|
|
39594
|
+
} = wK({
|
|
39604
39595
|
entityId: n,
|
|
39605
39596
|
enabled: !!e && !!n
|
|
39606
|
-
}), { mutate: y, isPending: b } =
|
|
39597
|
+
}), { mutate: y, isPending: b } = SK({
|
|
39607
39598
|
formId: t,
|
|
39608
39599
|
entityId: n,
|
|
39609
39600
|
onSuccess: (R) => {
|
|
@@ -39660,19 +39651,19 @@ const hK = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%20
|
|
|
39660
39651
|
onFieldChange: U
|
|
39661
39652
|
}
|
|
39662
39653
|
);
|
|
39663
|
-
},
|
|
39654
|
+
}, RK = ({ children: e }) => {
|
|
39664
39655
|
const t = YE("Open Sans");
|
|
39665
39656
|
return /* @__PURE__ */ l.jsx(nu, { theme: t, children: /* @__PURE__ */ l.jsx(BC, { fallback: /* @__PURE__ */ l.jsx(l.Fragment, {}), children: /* @__PURE__ */ l.jsx(IQ, { children: e }) }) });
|
|
39666
|
-
},
|
|
39657
|
+
}, HK = (e) => /* @__PURE__ */ l.jsx(RK, { children: /* @__PURE__ */ l.jsx(_K, { ...e, className: "connectorAdmin-portal" }) });
|
|
39667
39658
|
export {
|
|
39668
|
-
|
|
39669
|
-
|
|
39659
|
+
HK as AutomationMapDefaults,
|
|
39660
|
+
GK as ConnectorsApp,
|
|
39670
39661
|
We as HiverConnectorBifrostAuth,
|
|
39671
|
-
|
|
39672
|
-
|
|
39673
|
-
|
|
39662
|
+
VK as getConnectorDynamicFieldOptions,
|
|
39663
|
+
jK as getConnectorFieldDropdownOptions,
|
|
39664
|
+
UK as getConnectorStaticFieldOptions,
|
|
39674
39665
|
eo as getConnectorsBifrostConfigs,
|
|
39675
|
-
|
|
39676
|
-
|
|
39677
|
-
|
|
39666
|
+
MK as getEnabledAuthenticatedConnectors,
|
|
39667
|
+
kK as getMetaData,
|
|
39668
|
+
NK as initConnectorsBifrost
|
|
39678
39669
|
};
|