@hiver/connector-agent 4.27.0-appWidgets-beta.9 → 4.27.0-appWidgets-beta.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,eAAe,CAAC;AAG1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+EAA+E;IAC/E,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAoBF,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,QAAe,OAAO,QAAQ,iBAAiB,KAAG,OAAO,CAAC,iBAAiB,CAU1G,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,SACtB,KAAK,8CACiC,iBAAiB,0BAE5D,OAAO,CAAC,iBAAiB,CAgB3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SACvB,iBAAiB,gBACF;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KACzC,OAAO,CAAC,cAAc,GAAG,IAAI,CAM/B,CAAC"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/loader.ts"],"names":[],"mappings":"AA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;CAC7B,CAAC;AAmBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,SAAU,aAAa,GAAG,IAAI,KAAG,GAAG,EAuB3D,CAAC;AAmBF,eAAO,MAAM,QAAQ,UAAW,cAAc,GAAG,SAAS,KAAG,MAAM,GAAG,IAIrE,CAAC;AAOF,gFAAgF;AAChF,eAAO,MAAM,WAAW,WAAY,MAAM,aAAa,MAAM,KAAG,MAU/D,CAAC;AAoTF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAS,OAAO,SAAS,iBAAiB,EAAE,0BAAqB,cAsBhG,CAAC"}
package/index.es.js CHANGED
@@ -3118,11 +3118,11 @@ const Qr = async () => {
3118
3118
  }, j8 = async (e) => {
3119
3119
  const t = await UF(e);
3120
3120
  return t && !ac(t) ? !1 : await Rf(e) && !t ? !0 : !!(await KF(e)).length;
3121
- }, CK = async (e, t) => {
3121
+ }, FK = async (e, t) => {
3122
3122
  await GF(e, t);
3123
3123
  }, ls = async (e) => {
3124
3124
  e && await VF(e);
3125
- }, FK = async (e, t) => {
3125
+ }, mK = async (e, t) => {
3126
3126
  const n = await Rf(e);
3127
3127
  t ? n !== !1 && await bd(e, t) : await bd(e, void 0);
3128
3128
  }, YF = async (e) => await WF(e) && await j8(e), qF = async (e) => {
@@ -7051,7 +7051,7 @@ const tr = {
7051
7051
  if (!tr.baseUrl)
7052
7052
  throw new Error("Base url is not setup. please call the initConnectorsBifrost function with the appropriate value");
7053
7053
  return tr;
7054
- }, bK = ({
7054
+ }, xK = ({
7055
7055
  baseUrl: e,
7056
7056
  appEnv: t,
7057
7057
  tier: n,
@@ -16017,7 +16017,7 @@ const mk = (e, t) => ({
16017
16017
  DELETE: "DELETE",
16018
16018
  PATCH: "PATCH",
16019
16019
  PUT: "PUT"
16020
- }, vk = "Required Field", Bk = "Invalid date", w4 = /^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i, wk = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, I4 = "Please enter a valid URL", Ik = "Please enter valid ID", Sk = "Please enter valid input", kk = "URL must start with https://", Tk = "URL should not end with a slash", Lk = "Invalid email address", Rk = "Email must be a string", K3 = "Invalid date", Ok = "Date cannot be in the past", _k = "Date cannot be in the future", jk = "Invalid number", Nk = "Invalid text", xK = async (e) => {
16020
+ }, vk = "Required Field", Bk = "Invalid date", w4 = /^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i, wk = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, I4 = "Please enter a valid URL", Ik = "Please enter valid ID", Sk = "Please enter valid input", kk = "URL must start with https://", Tk = "URL should not end with a slash", Lk = "Invalid email address", Rk = "Email must be a string", K3 = "Invalid date", Ok = "Date cannot be in the past", _k = "Date cannot be in the future", jk = "Invalid number", Nk = "Invalid text", yK = async (e) => {
16021
16021
  const t = new URLSearchParams(), { inboxIds: n, channelType: r, conversationId: o, fetchAuthenticatedConnectors: u } = e || {};
16022
16022
  return n == null || n.forEach((s) => {
16023
16023
  t.append("inbox_ids", s);
@@ -20945,7 +20945,7 @@ const dA = {
20945
20945
  });
20946
20946
  }
20947
20947
  }
20948
- ), { resetState: yK, resetPreviewCardData: Jr, setSelectedSuggestionType: vO, resetDropdownOptionsCache: BO } = A6.actions, wO = A6.reducer, br = "/v1/api", IO = `${br}/connectors/forms/list`, SO = `${br}/connectors/cards/:id/unlink`, kO = `${br}/connectors/forms/:id/link`, TO = `${br}/connectors/form/:formId`, LO = `${br}/connectors/forms/:formId/data`, RO = `${br}/connectors/forms/:formId/get_forms_custom_fields`, OO = `${br}/connectors/forms/:formId/field/:fieldName/custom_fields`, p6 = `${br}/connectors/forms/:formId/defaults`, _O = `${br}/connectors/forms/:formId/default-values`, jO = `${br}/connectors/conversation-summary`, NO = `${br}/connectors/attachments`, g6 = ({
20948
+ ), { resetState: vK, resetPreviewCardData: Jr, setSelectedSuggestionType: vO, resetDropdownOptionsCache: BO } = A6.actions, wO = A6.reducer, br = "/v1/api", IO = `${br}/connectors/forms/list`, SO = `${br}/connectors/cards/:id/unlink`, kO = `${br}/connectors/forms/:id/link`, TO = `${br}/connectors/form/:formId`, LO = `${br}/connectors/forms/:formId/data`, RO = `${br}/connectors/forms/:formId/get_forms_custom_fields`, OO = `${br}/connectors/forms/:formId/field/:fieldName/custom_fields`, p6 = `${br}/connectors/forms/:formId/defaults`, _O = `${br}/connectors/forms/:formId/default-values`, jO = `${br}/connectors/conversation-summary`, NO = `${br}/connectors/attachments`, g6 = ({
20949
20949
  inboxIds: e,
20950
20950
  channelType: t,
20951
20951
  conversationId: n,
@@ -21379,7 +21379,7 @@ Do you want to continue?`, YO = "Select an object to create", pA = "Select an ob
21379
21379
  return et({ message: ro, type: St }), t(s);
21380
21380
  }
21381
21381
  }
21382
- ), { resetState: vK, setCurrentCardInEdit: Wo, resetCurrentResourceDetails: r_, setHasUnsavedChanges: au } = x6.actions, o_ = x6.reducer, u_ = () => {
21382
+ ), { resetState: BK, setCurrentCardInEdit: Wo, resetCurrentResourceDetails: r_, setHasUnsavedChanges: au } = x6.actions, o_ = x6.reducer, u_ = () => {
21383
21383
  const [e, t] = P(null), [n, r] = P({
21384
21384
  isVertical: !1,
21385
21385
  isHorizontal: !1,
@@ -22592,9 +22592,9 @@ const mA = /* @__PURE__ */ new Set(), CD = () => Zc.forEach((e) => e()), s1 = (e
22592
22592
  userAuthStatusReceived: Kc,
22593
22593
  userAuthRequired: vj,
22594
22594
  userAuthInProgress: Bj,
22595
- userAuthCompleted: BK,
22595
+ userAuthCompleted: wK,
22596
22596
  userAuthFailed: ju,
22597
- userAuthReset: wK
22597
+ userAuthReset: IK
22598
22598
  } = Y6.actions, wj = Y6.reducer, Ij = { state: "unknown" }, Oi = (e, t) => e.userAuth.byConnectorId[t] || Ij, Sj = /* @__PURE__ */ new Set([
22599
22599
  "disconnected",
22600
22600
  "in_progress",
@@ -27292,7 +27292,7 @@ const NQ = w(U)`
27292
27292
  let tl = {};
27293
27293
  const nl = /* @__PURE__ */ new Set(), jH = (e, t) => {
27294
27294
  tl = { ...tl, [e]: t }, nl.forEach((n) => n());
27295
- }, NH = (e) => (nl.add(e), () => nl.delete(e)), IK = (e) => dl(NH, () => tl)[e], MH = async ({ id: e, searchString: t, args: n, smId: r, smIds: o }) => {
27295
+ }, NH = (e) => (nl.add(e), () => nl.delete(e)), SK = (e) => dl(NH, () => tl)[e], MH = async ({ id: e, searchString: t, args: n, smId: r, smIds: o }) => {
27296
27296
  try {
27297
27297
  if (e === void 0 || t === void 0)
27298
27298
  return [];
@@ -28247,7 +28247,7 @@ const LD = () => {
28247
28247
  children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: e })
28248
28248
  }
28249
28249
  ) }) }) }) });
28250
- }, SK = ({
28250
+ }, kK = ({
28251
28251
  userEmail: e = "",
28252
28252
  contactEmail: t = "",
28253
28253
  baseUrls: n = {},
@@ -28290,7 +28290,7 @@ const LD = () => {
28290
28290
  ]
28291
28291
  }
28292
28292
  ) });
28293
- }, kK = {
28293
+ }, TK = {
28294
28294
  /**
28295
28295
  * @deprecated Nothing listens to this any more. Opening the expanded create form now goes
28296
28296
  * through the ActionQueue (`ACTIONS.OPEN_CREATE_FORM` with a `connectorId`): the request
@@ -28984,7 +28984,7 @@ const GU = ({
28984
28984
  }
28985
28985
  }
28986
28986
  ) });
28987
- }, VU = ({ children: e, theme: t }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(ji, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: e }) }) }) }), TK = ({
28987
+ }, VU = ({ children: e, theme: t }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(ji, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: e }) }) }) }), LK = ({
28988
28988
  conversationId: e,
28989
28989
  hasSmList: t,
28990
28990
  smIds: n,
@@ -29016,7 +29016,7 @@ const GU = ({
29016
29016
  const r = n.payload;
29017
29017
  return r.conversationId !== e ? !1 : (t({ ...r, connectorId: n.connectorId }), !0);
29018
29018
  }, ZU = ({ conversationId: e, openLink: t }) => (n) => n.payload.conversationId !== e || !t ? !1 : (t(), !0);
29019
- class LK {
29019
+ class RK {
29020
29020
  constructor({ processDelay: t = 1e3 }) {
29021
29021
  lt(this, "_processDelay");
29022
29022
  lt(this, "_queue", []);
@@ -30742,7 +30742,7 @@ const DG = w(U)`
30742
30742
  );
30743
30743
  return /* @__PURE__ */ a.jsx(xn.Provider, { value: i, children: u });
30744
30744
  }, qg = ({ children: e, theme: t, ...n }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(a6, { enabled: n.tenant === "HIVERWEB", children: /* @__PURE__ */ a.jsx(ji, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: /* @__PURE__ */ a.jsx(rV, { ...n, children: e }) }) }) }) }) }), as = ".hiver-log-crm-button", is = ".hiver-log-crm-compose-button", o2 = ".hiver-log-crm-subject-button";
30745
- class RK {
30745
+ class OK {
30746
30746
  constructor({
30747
30747
  emailNodeFilter: t,
30748
30748
  composeNodeFilter: n,
@@ -30839,7 +30839,7 @@ class RK {
30839
30839
  document.querySelectorAll(as).forEach((r) => r.remove()), document.querySelectorAll(is).forEach((r) => r.remove()), this.observer && (this.observer.disconnect(), this.observer = null);
30840
30840
  }
30841
30841
  }
30842
- const OK = ({
30842
+ const _K = ({
30843
30843
  observer: e,
30844
30844
  theme: t = Ur,
30845
30845
  ...n
@@ -31874,7 +31874,7 @@ const mV = w("div")`
31874
31874
  ]
31875
31875
  }
31876
31876
  );
31877
- }, _K = ({
31877
+ }, jK = ({
31878
31878
  onVisibilityChange: e,
31879
31879
  theme: t = Ur,
31880
31880
  ...n
@@ -39947,7 +39947,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
39947
39947
  MuiMenuItem: { styleOverrides: { root: { fontFamily: `${Ru} !important` } } },
39948
39948
  MuiChip: { styleOverrides: { root: { fontFamily: `${Ru} !important` } } }
39949
39949
  }
39950
- }, jZ = (e) => yi(e, _Z), Kh = ({ children: e, theme: t, ...n }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(kf, { theme: jZ, children: /* @__PURE__ */ a.jsx(OZ, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: /* @__PURE__ */ a.jsx(Qg, { value: { ...n, tenant: "omni" }, children: e }) }) }) }) }) }), jK = ({ theme: e = Ur, ...t }) => {
39950
+ }, jZ = (e) => yi(e, _Z), Kh = ({ children: e, theme: t, ...n }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(kf, { theme: jZ, children: /* @__PURE__ */ a.jsx(OZ, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: /* @__PURE__ */ a.jsx(Qg, { value: { ...n, tenant: "omni" }, children: e }) }) }) }) }) }), NK = ({ theme: e = Ur, ...t }) => {
39951
39951
  const n = bu(e);
39952
39952
  return /* @__PURE__ */ a.jsx(ga, { className: "connector-theme-root", "data-color-scheme": e.mode, style: n, children: /* @__PURE__ */ a.jsxs(Kh, { ...t, theme: e, children: [
39953
39953
  /* @__PURE__ */ a.jsx(Jh, {}),
@@ -39969,7 +39969,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
39969
39969
  document.body
39970
39970
  )
39971
39971
  ] }) });
39972
- }, NK = ({
39972
+ }, MK = ({
39973
39973
  connectorId: e,
39974
39974
  open: t,
39975
39975
  onClose: n,
@@ -40060,7 +40060,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
40060
40060
  }
40061
40061
  )
40062
40062
  ] });
40063
- }, MK = ({
40063
+ }, PK = ({
40064
40064
  theme: e = { mode: "light" },
40065
40065
  flow: t,
40066
40066
  unlinkLinkId: n,
@@ -40094,7 +40094,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
40094
40094
  value: { ...n, showChannelHeader: !0, boxedMessages: !0, tenant: "hig" },
40095
40095
  children: e
40096
40096
  }
40097
- ) }) }) }) }) }), PK = ({ theme: e = Ur, ...t }) => {
40097
+ ) }) }) }) }) }), QK = ({ theme: e = Ur, ...t }) => {
40098
40098
  const n = bu(e);
40099
40099
  return /* @__PURE__ */ a.jsx(ga, { className: "connector-theme-root", "data-color-scheme": e.mode, style: n, children: /* @__PURE__ */ a.jsxs(ZD, { ...t, theme: e, children: [
40100
40100
  /* @__PURE__ */ a.jsx(Jh, {}),
@@ -40537,13 +40537,13 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
40537
40537
  v && W(),
40538
40538
  ae
40539
40539
  ] });
40540
- }, QK = ({
40540
+ }, HK = ({
40541
40541
  onViewAll: e,
40542
40542
  onOpenLink: t,
40543
40543
  onUnreadCountChange: n,
40544
40544
  theme: r,
40545
40545
  ...o
40546
- }) => /* @__PURE__ */ a.jsx(ZD, { ...o, theme: r, children: /* @__PURE__ */ a.jsx(Yh, { onViewAll: e, onOpenLink: t, onUnreadCountChange: n }) }), HK = ({
40546
+ }) => /* @__PURE__ */ a.jsx(ZD, { ...o, theme: r, children: /* @__PURE__ */ a.jsx(Yh, { onViewAll: e, onOpenLink: t, onUnreadCountChange: n }) }), UK = ({
40547
40547
  onViewAll: e,
40548
40548
  onOpenLink: t,
40549
40549
  onUnreadCountChange: n,
@@ -40558,12 +40558,12 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
40558
40558
  headerless: !0
40559
40559
  }
40560
40560
  ) });
40561
- function UK(e) {
40561
+ function WK(e) {
40562
40562
  var n;
40563
40563
  const t = p1(e, !0, 0);
40564
40564
  return (n = t.data) != null && n.channelName ? { label: t.data.channelName, isLinked: !0 } : { label: "Slack", isLinked: !1 };
40565
40565
  }
40566
- function WK(e, t = 0) {
40566
+ function GK(e, t = 0) {
40567
40567
  const r = PD(e, !0, t).data;
40568
40568
  return {
40569
40569
  links: ((r == null ? void 0 : r.links) ?? []).map((o) => ({
@@ -40578,11 +40578,11 @@ function WK(e, t = 0) {
40578
40578
  remainingSlots: (r == null ? void 0 : r.remainingSlots) ?? 0
40579
40579
  };
40580
40580
  }
40581
- const GK = (e) => ke({
40581
+ const VK = (e) => ke({
40582
40582
  url: mO,
40583
40583
  method: je.POST,
40584
40584
  data: e
40585
- }), VK = (e) => ke({
40585
+ }), zK = (e) => ke({
40586
40586
  url: EO,
40587
40587
  method: je.POST,
40588
40588
  data: e
@@ -40603,7 +40603,7 @@ const GK = (e) => ke({
40603
40603
  fetchConnectors: r,
40604
40604
  abort: n.abort.bind(n)
40605
40605
  };
40606
- }, zK = (e = {}) => {
40606
+ }, XK = (e = {}) => {
40607
40607
  const t = wt(e.availableFeatures, h7), n = {
40608
40608
  connectorApiPending: !1,
40609
40609
  connectorApiAbort: null,
@@ -40759,7 +40759,7 @@ const GK = (e) => ke({
40759
40759
  renderHighlight: c
40760
40760
  }
40761
40761
  );
40762
- }, XK = ({ theme: e, ...t }) => /* @__PURE__ */ a.jsx(uJ, { theme: e, children: /* @__PURE__ */ a.jsx(dJ, { ...t }) }), AJ = LD(), qh = ({ children: e }) => /* @__PURE__ */ a.jsx(bl, { client: AJ, children: e }), pJ = (e) => {
40762
+ }, ZK = ({ theme: e, ...t }) => /* @__PURE__ */ a.jsx(uJ, { theme: e, children: /* @__PURE__ */ a.jsx(dJ, { ...t }) }), AJ = LD(), qh = ({ children: e }) => /* @__PURE__ */ a.jsx(bl, { client: AJ, children: e }), pJ = (e) => {
40763
40763
  var t;
40764
40764
  switch (e.category) {
40765
40765
  case "ecommerce":
@@ -41057,7 +41057,7 @@ const GK = (e) => ke({
41057
41057
  const t = (n = e.fields.find((r) => r.key === "currency")) == null ? void 0 : n.value;
41058
41058
  return typeof t == "string" && /^[A-Z]{3}$/.test(t) ? t : void 0;
41059
41059
  }, Po = (e, t) => {
41060
- const n = { notation: "compact", maximumFractionDigits: 1 };
41060
+ const n = { notation: "compact", minimumFractionDigits: 0, maximumFractionDigits: 1 };
41061
41061
  try {
41062
41062
  return new Intl.NumberFormat("en-US", t ? { ...n, style: "currency", currency: t } : n).format(
41063
41063
  e
@@ -41268,11 +41268,13 @@ const GK = (e) => ke({
41268
41268
  externalResourceId: e.externalResourceId,
41269
41269
  linked: e.linked,
41270
41270
  restricted: e.restricted
41271
- }), eK = async ({ connectorId: e, conversationId: t, inboxIds: n }) => {
41271
+ }), eK = /* @__PURE__ */ new Set(["create", "link", "search_and_link"]), tK = async ({ connectorId: e, conversationId: t, inboxIds: n }) => {
41272
41272
  var r;
41273
41273
  try {
41274
41274
  const o = await g6({ inboxIds: n, channelType: "email", conversationId: t, connectorId: e }), u = (r = o == null ? void 0 : o.data) == null ? void 0 : r.formsList;
41275
- return Array.isArray(u) ? u.some((i) => !i.connectorId || i.connectorId === e) : !0;
41275
+ return Array.isArray(u) ? u.some(
41276
+ (i) => (!i.connectorId || i.connectorId === e) && eK.has(String(i.type))
41277
+ ) : !0;
41276
41278
  } catch {
41277
41279
  return !0;
41278
41280
  }
@@ -41282,7 +41284,9 @@ const GK = (e) => ke({
41282
41284
  return {
41283
41285
  // PM widgets list only linked records, so their lookup cards are never read.
41284
41286
  cards: s.filter((c) => e.category !== "pm" || !!c.externalResourceId),
41285
- available: s.length > 0 || await eK(t)
41287
+ // Only a PM app falls back to its forms: its link-only cards are left out until something is
41288
+ // linked. Any other app with no cards has nothing to look up ("Enable Cards" in the app tab).
41289
+ available: s.length > 0 || e.category === "pm" && await tK(t)
41286
41290
  };
41287
41291
  }, iC = async (e, { conversationId: t, contactEmail: n, inboxIds: r }, o = !1) => {
41288
41292
  var u;
@@ -41301,12 +41305,12 @@ const GK = (e) => ke({
41301
41305
  } catch (i) {
41302
41306
  return { card: e, data: null, errorStatus: (u = i == null ? void 0 : i.response) == null ? void 0 : u.status };
41303
41307
  }
41304
- }, ZK = async (e, { refresh: t = !1 } = {}) => {
41308
+ }, JK = async (e, { refresh: t = !1 } = {}) => {
41305
41309
  const n = tC(e.connectorName);
41306
41310
  if (!n || !e.conversationId) return null;
41307
41311
  const { cards: r, available: o } = await aC(n, e), u = await Promise.all(r.map((i) => iC(i, e, t)));
41308
41312
  return uC(n, u, o);
41309
- }, tK = 5e3, M2 = /* @__PURE__ */ new Map(), P2 = (e, t) => ["appWidget", e, t], sC = ({
41313
+ }, nK = 5e3, M2 = /* @__PURE__ */ new Map(), P2 = (e, t) => ["appWidget", e, t], sC = ({
41310
41314
  connectorId: e,
41311
41315
  connectorName: t,
41312
41316
  conversationId: n,
@@ -41334,7 +41338,7 @@ const GK = (e) => ke({
41334
41338
  g.filter((B) => !!B),
41335
41339
  p
41336
41340
  ), [i, C.isLoading, d, F, p]), E = ie(() => {
41337
- M2.set(c, Date.now() + tK), f.invalidateQueries({ queryKey: P2(e, n) });
41341
+ M2.set(c, Date.now() + nK), f.invalidateQueries({ queryKey: P2(e, n) });
41338
41342
  }, [f, c, e, n]);
41339
41343
  return {
41340
41344
  app: i,
@@ -41360,7 +41364,7 @@ const GK = (e) => ke({
41360
41364
  ...e.trackingContext,
41361
41365
  ...r
41362
41366
  });
41363
- }, nK = (e) => {
41367
+ }, rK = (e) => {
41364
41368
  const { app: t, model: n, isLoading: r } = sC(e), { tokens: o } = o1(), u = fC(r, $h), i = (n == null ? void 0 : n.connection) === "expired", s = vJ(n, !!e.isAdmin), f = (n == null ? void 0 : n.available) ?? !0, { onSummaryChange: c } = e;
41365
41369
  re(() => {
41366
41370
  c == null || c({ text: s, isLoading: r, disconnected: i, available: f });
@@ -41381,14 +41385,14 @@ const GK = (e) => ke({
41381
41385
  children: s
41382
41386
  }
41383
41387
  ) : null;
41384
- }, rK = (e) => {
41388
+ }, oK = (e) => {
41385
41389
  const { app: t, model: n, isLoading: r, refresh: o } = sC(e), { tokens: u } = o1(), i = fC(r, $h);
41386
41390
  if (!t) return null;
41387
41391
  const s = (f, c, l) => {
41388
41392
  c && js(e, t, c, l), e.onAction(f);
41389
41393
  };
41390
- return r ? i ? /* @__PURE__ */ a.jsx(sK, {}) : null : !n || !n.available ? null : n.connection === "expired" ? /* @__PURE__ */ a.jsx(
41391
- fK,
41394
+ return r ? i ? /* @__PURE__ */ a.jsx(fK, {}) : null : !n || !n.available ? null : n.connection === "expired" ? /* @__PURE__ */ a.jsx(
41395
+ cK,
41392
41396
  {
41393
41397
  app: t,
41394
41398
  appName: e.connectorName,
@@ -41400,7 +41404,7 @@ const GK = (e) => ke({
41400
41404
  }
41401
41405
  ) : /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-body", spacing: 1, sx: { pb: 1 }, children: [
41402
41406
  /* @__PURE__ */ a.jsx(
41403
- uK,
41407
+ aK,
41404
41408
  {
41405
41409
  lookupKey: t.category === "pm" ? "" : e.contactEmail,
41406
41410
  tokens: u,
@@ -41410,7 +41414,7 @@ const GK = (e) => ke({
41410
41414
  }
41411
41415
  ),
41412
41416
  n.records.length === 0 ? /* @__PURE__ */ a.jsx(Y, { variant: "body2", sx: { color: u.textSecondary, fontSize: 13 }, children: pJ(t) }) : n.records.map((f) => /* @__PURE__ */ a.jsx(
41413
- aK,
41417
+ iK,
41414
41418
  {
41415
41419
  record: f,
41416
41420
  tokens: u,
@@ -41438,7 +41442,7 @@ const GK = (e) => ke({
41438
41442
  }
41439
41443
  ),
41440
41444
  /* @__PURE__ */ a.jsx(
41441
- iK,
41445
+ sK,
41442
41446
  {
41443
41447
  app: t,
41444
41448
  tokens: u,
@@ -41449,10 +41453,10 @@ const GK = (e) => ke({
41449
41453
  }
41450
41454
  )
41451
41455
  ] });
41452
- }, oK = () => /* @__PURE__ */ a.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": !0, children: [
41456
+ }, uK = () => /* @__PURE__ */ a.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": !0, children: [
41453
41457
  /* @__PURE__ */ a.jsx("path", { d: "M13.5 8a5.5 5.5 0 1 1-1.6-3.9", strokeLinecap: "round" }),
41454
41458
  /* @__PURE__ */ a.jsx("path", { d: "M13.5 2.5v3h-3", strokeLinecap: "round", strokeLinejoin: "round" })
41455
- ] }), uK = ({
41459
+ ] }), aK = ({
41456
41460
  lookupKey: e,
41457
41461
  tokens: t,
41458
41462
  onRefresh: n
@@ -41475,10 +41479,10 @@ const GK = (e) => ke({
41475
41479
  borderRadius: 1,
41476
41480
  "&:hover": { background: t.surfaceHover }
41477
41481
  },
41478
- children: /* @__PURE__ */ a.jsx(oK, {})
41482
+ children: /* @__PURE__ */ a.jsx(uK, {})
41479
41483
  }
41480
41484
  ) })
41481
- ] }), aK = ({ record: e, tokens: t, onOpen: n, onOpenInApp: r }) => /* @__PURE__ */ a.jsx(
41485
+ ] }), iK = ({ record: e, tokens: t, onOpen: n, onOpenInApp: r }) => /* @__PURE__ */ a.jsx(
41482
41486
  Q,
41483
41487
  {
41484
41488
  "data-testid": "app-widget-card",
@@ -41539,7 +41543,7 @@ const GK = (e) => ke({
41539
41543
  ) })
41540
41544
  ] })
41541
41545
  }
41542
- ), iK = ({ app: e, tokens: t, onCreate: n, onSearchLink: r }) => /* @__PURE__ */ a.jsxs(U, { direction: "row", spacing: 1, children: [
41546
+ ), sK = ({ app: e, tokens: t, onCreate: n, onSearchLink: r }) => /* @__PURE__ */ a.jsxs(U, { direction: "row", spacing: 1, children: [
41543
41547
  e.createLabel && /* @__PURE__ */ a.jsx(
41544
41548
  Re,
41545
41549
  {
@@ -41566,54 +41570,54 @@ const GK = (e) => ke({
41566
41570
  children: bJ
41567
41571
  }
41568
41572
  )
41569
- ] }), sK = () => /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-loading", spacing: 1, sx: { pb: 1 }, children: [
41573
+ ] }), fK = () => /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-loading", spacing: 1, sx: { pb: 1 }, children: [
41570
41574
  /* @__PURE__ */ a.jsx(fu, { variant: "rounded", height: 64 }),
41571
41575
  /* @__PURE__ */ a.jsx(fu, { variant: "rounded", height: 64 })
41572
- ] }), fK = ({ app: e, appName: t, isAdmin: n, adminNotified: r, tokens: o, onReconnect: u, onNotifyAdmin: i }) => /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-disconnected", spacing: 1, sx: { pb: 1 }, children: [
41576
+ ] }), cK = ({ app: e, appName: t, isAdmin: n, adminNotified: r, tokens: o, onReconnect: u, onNotifyAdmin: i }) => /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-disconnected", spacing: 1, sx: { pb: 1 }, children: [
41573
41577
  /* @__PURE__ */ a.jsx(Y, { variant: "body2", sx: { color: o.textSecondary, fontSize: 13 }, children: gJ(e, t, n) }),
41574
41578
  n ? /* @__PURE__ */ a.jsx(Re, { variant: "contained", size: "small", onClick: u, children: hJ(t) }) : /* @__PURE__ */ a.jsx(Re, { variant: "outlined", size: "small", disabled: r, onClick: i, children: r ? FJ : CJ })
41575
41579
  ] }), cC = ({ theme: e, children: t }) => {
41576
41580
  const n = bu(e), r = $(() => ({ ...n, display: "contents" }), [n]);
41577
41581
  return /* @__PURE__ */ a.jsx("span", { className: "connector-theme-root", "data-color-scheme": e.mode, style: r, children: /* @__PURE__ */ a.jsx(So, { config: e, children: t }) });
41578
- }, JK = ({ theme: e = Ur, ...t }) => /* @__PURE__ */ a.jsx(cC, { theme: e, children: /* @__PURE__ */ a.jsx(qh, { children: /* @__PURE__ */ a.jsx(nK, { ...t }) }) }), KK = ({ theme: e = Ur, ...t }) => /* @__PURE__ */ a.jsx(cC, { theme: e, children: /* @__PURE__ */ a.jsx(qh, { children: /* @__PURE__ */ a.jsx(rK, { ...t }) }) });
41582
+ }, KK = ({ theme: e = Ur, ...t }) => /* @__PURE__ */ a.jsx(cC, { theme: e, children: /* @__PURE__ */ a.jsx(qh, { children: /* @__PURE__ */ a.jsx(rK, { ...t }) }) }), YK = ({ theme: e = Ur, ...t }) => /* @__PURE__ */ a.jsx(cC, { theme: e, children: /* @__PURE__ */ a.jsx(qh, { children: /* @__PURE__ */ a.jsx(oK, { ...t }) }) });
41579
41583
  export {
41580
41584
  zr as APP_WIDGET_EVENTS,
41581
- LK as ActionQueue,
41582
- KK as AppWidgetBody,
41583
- JK as AppWidgetSummary,
41584
- kK as CONNECTORS_AGENT_EVENTS,
41585
- SK as ConnectorCardList,
41586
- OK as EmailLogger,
41587
- RK as GmailLogObserver,
41588
- NK as HigSlackConnectModalIsland,
41589
- QK as HigSlackSection,
41590
- HK as HigSlackSectionBody,
41591
- PK as HigSlackTab,
41585
+ RK as ActionQueue,
41586
+ YK as AppWidgetBody,
41587
+ KK as AppWidgetSummary,
41588
+ TK as CONNECTORS_AGENT_EVENTS,
41589
+ kK as ConnectorCardList,
41590
+ _K as EmailLogger,
41591
+ OK as GmailLogObserver,
41592
+ MK as HigSlackConnectModalIsland,
41593
+ HK as HigSlackSection,
41594
+ UK as HigSlackSectionBody,
41595
+ QK as HigSlackTab,
41592
41596
  ke as HiverConnectorBifrostAuth,
41593
- TK as IntegrationSense,
41594
- _K as OmniEmailLogger,
41595
- jK as OmniSlackTab,
41597
+ LK as IntegrationSense,
41598
+ jK as OmniEmailLogger,
41599
+ NK as OmniSlackTab,
41596
41600
  zV as SLACK_LINKS_API,
41597
- NK as SlackConnectModalIsland,
41598
- MK as SlackLinkActionsIsland,
41599
- XK as SplitAppsNudge,
41600
- CK as addNewConnectors,
41601
+ MK as SlackConnectModalIsland,
41602
+ PK as SlackLinkActionsIsland,
41603
+ ZK as SplitAppsNudge,
41604
+ FK as addNewConnectors,
41601
41605
  vJ as appWidgetSummaryText,
41602
41606
  dD as connectorThemeDefaults,
41603
- zK as createAppStore,
41607
+ XK as createAppStore,
41604
41608
  qF as dismissNotification,
41605
- GK as fetchAppCfValues,
41606
- VK as fetchDeferredAppCfValues,
41609
+ VK as fetchAppCfValues,
41610
+ zK as fetchDeferredAppCfValues,
41607
41611
  tC as getAppWidgetSpec,
41608
41612
  _n as getConnectorsBifrostConfigs,
41609
- xK as getMetaData,
41610
- bK as initConnectorsBifrost,
41611
- ZK as loadAppWidgetModel,
41613
+ yK as getMetaData,
41614
+ xK as initConnectorsBifrost,
41615
+ JK as loadAppWidgetModel,
41612
41616
  s6 as resolveConnectorThemeTokens,
41613
- FK as setCaptureFeedbackOnDemand,
41617
+ mK as setCaptureFeedbackOnDemand,
41614
41618
  j8 as shouldCaptureFeedback,
41615
41619
  YF as shouldShowNotification,
41616
- IK as useConnectorSelectedEmail,
41617
- WK as useSlackLinksSummary,
41618
- UK as useSlackTabLabel
41620
+ SK as useConnectorSelectedEmail,
41621
+ GK as useSlackLinksSummary,
41622
+ WK as useSlackTabLabel
41619
41623
  };