@hiver/connector-agent 1.3.4-beta.4 → 1.3.4-beta.6

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.
@@ -10,7 +10,7 @@ interface Iprops {
10
10
  specificConnectorApiStatus: {
11
11
  [key: string]: ApiStatus;
12
12
  } | null;
13
- setHasUnlinkedACard: (value: boolean) => void;
13
+ onCardUnlinking: () => void;
14
14
  }
15
15
  export declare const Card: (props: Iprops) => import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -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,EAAE,MAAM,eAAe,CAAC;AAgBrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,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,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,IAAI,UAAW,MAAM,4CAoHjC,CAAC"}
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,EAAE,MAAM,eAAe,CAAC;AAgBrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,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,4CAoHjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA2C,MAAM,OAAO,CAAC;AAuCpE,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,SAAS,CAiGlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA2C,MAAM,OAAO,CAAC;AAuCpE,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,SAAS,CAkGlC,CAAC"}
@@ -2,8 +2,8 @@ interface IProps {
2
2
  showUnlinkModal: boolean;
3
3
  setShowUnlinkModal: React.Dispatch<React.SetStateAction<boolean>>;
4
4
  cardId: string;
5
- setHasUnlinkedACard: (value: boolean) => void;
5
+ onCardUnlinking: () => void;
6
6
  }
7
- export declare const UnlinkCardModal: ({ showUnlinkModal, setShowUnlinkModal, cardId, setHasUnlinkedACard }: IProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const UnlinkCardModal: ({ showUnlinkModal, setShowUnlinkModal, cardId, onCardUnlinking }: IProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=unlink-card-modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unlink-card-modal.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/unlink-card-modal.tsx"],"names":[],"mappings":"AAUA,UAAU,MAAM;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,eAAe,yEAA0E,MAAM,4CAsC3G,CAAC"}
1
+ {"version":3,"file":"unlink-card-modal.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/card-linking/unlink-card-modal.tsx"],"names":[],"mappings":"AAUA,UAAU,MAAM;IACd,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,eAAe,qEAAsE,MAAM,4CAsCvG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAAiC,CAAC;AACtE,eAAO,MAAM,eAAe,EAAE,MAAkD,CAAC;AACjF,eAAO,MAAM,aAAa,EAAE,MAAgD,CAAC;AAC7E,eAAO,MAAM,gBAAgB,EAAE,MAAmD,CAAC;AACnF,eAAO,MAAM,gBAAgB,EAAE,MAAoE,CAAC;AACpG,eAAO,MAAM,WAAW,EAAE,MAA8C,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/write-form/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,qBAAqB,EAAE,MAA4C,CAAC;AACjF,eAAO,MAAM,eAAe,EAAE,MAAkD,CAAC;AACjF,eAAO,MAAM,aAAa,EAAE,MAAgD,CAAC;AAC7E,eAAO,MAAM,gBAAgB,EAAE,MAAmD,CAAC;AACnF,eAAO,MAAM,gBAAgB,EAAE,MAAoE,CAAC;AACpG,eAAO,MAAM,WAAW,EAAE,MAA8C,CAAC"}
package/index.es.js CHANGED
@@ -35649,7 +35649,7 @@ const Hi = "success", ss = "error", JB = "Some error occured. Please contact sup
35649
35649
  localStorage.setItem(mA, JSON.stringify(i));
35650
35650
  return;
35651
35651
  }
35652
- }, sd = (e = {}, t) => (e == null ? void 0 : e[t]) === !0, th = (e, t) => e.replace(/:(\w+)/g, (n, o) => String(t[o]) || ""), oa = "/v1/api", OU = `${oa}/objectList`, SU = `${oa}/connectors/cards/:id/unlink`, MU = `${oa}/connectors/forms/:id/link`, RU = `${oa}/connectors/forms/:id/preview`, DU = `${oa}/connectors/form/:formId/field/:fieldName/data`, PU = `${oa}/connectors/form/:formId`, LU = ({
35652
+ }, sd = (e = {}, t) => (e == null ? void 0 : e[t]) === !0, th = (e, t) => e.replace(/:(\w+)/g, (n, o) => String(t[o]) || ""), oa = "/v1/api", OU = `${oa}/connectors/forms/list`, SU = `${oa}/connectors/cards/:id/unlink`, MU = `${oa}/connectors/forms/:id/link`, RU = `${oa}/connectors/forms/:id/preview`, DU = `${oa}/connectors/form/:formId/field/:fieldName/data`, PU = `${oa}/connectors/form/:formId`, LU = ({
35653
35653
  inboxIds: e,
35654
35654
  channelType: t,
35655
35655
  conversationId: n
@@ -36322,7 +36322,7 @@ const MN = V(mt)`
36322
36322
  }
36323
36323
  }, [t, o]);
36324
36324
  const u = r == xU.NOT_FOUND, f = u ? wA : t, p = !u && !!n;
36325
- return i ? /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: 229, height: 16, animation: "wave", margin: "4px 0 0 0" }) : p ? /* @__PURE__ */ y.jsxs(dh, { gap: "5px", children: [
36325
+ return i ? /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: 16, animation: "wave", margin: "4px 0 0 0" }) : p ? /* @__PURE__ */ y.jsxs(dh, { gap: "5px", children: [
36326
36326
  /* @__PURE__ */ y.jsx("img", { src: lj }),
36327
36327
  /* @__PURE__ */ y.jsx(gh, { variant: "body2", children: QN })
36328
36328
  ] }) : /* @__PURE__ */ y.jsx(en, { title: l ? f : null, placement: "bottom", children: o ? /* @__PURE__ */ y.jsx(fh, { ref: A, target: "_blank", underline: "none", href: o, fontSize: "13px", children: f || wA }) : /* @__PURE__ */ y.jsx(NN, { ref: s, variant: "body2", children: f || wA }) });
@@ -36345,8 +36345,8 @@ const MN = V(mt)`
36345
36345
  return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
36346
36346
  /* @__PURE__ */ y.jsx(ph, { shown: h, setShown: b, showCloseButton: !0, children: /* @__PURE__ */ y.jsx(Aj, { data: ((D = f == null ? void 0 : f.listItems) == null ? void 0 : D.fields) || [], title: n }) }),
36347
36347
  /* @__PURE__ */ y.jsx(PN, { className: i ? "" : "slideUp", height: O, children: /* @__PURE__ */ y.jsx(Ze, { ref: F, gap: 1, margin: "12px", children: l && (!(v != null && v.length) || S) ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
36348
- /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: 229, height: 20, animation: "wave" }),
36349
- /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: 229, height: 20, animation: "wave" })
36348
+ /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: 20, animation: "wave" }),
36349
+ /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: 20, animation: "wave" })
36350
36350
  ] }) : /* @__PURE__ */ y.jsx(y.Fragment, { children: S ? /* @__PURE__ */ y.jsx(mt, { margin: "8px 0", children: /* @__PURE__ */ y.jsx(c1, { error: S, isLoading: l }) }) : v != null && v.length ? v == null ? void 0 : v.map((Y) => {
36351
36351
  const { value: z, label: X, deepLink: K } = Y, q = "errorMessage" in Y ? Y.errorMessage : null, ee = "statusCode" in Y ? Y.statusCode : null;
36352
36352
  return /* @__PURE__ */ y.jsxs("div", { children: [
@@ -36368,10 +36368,10 @@ const MN = V(mt)`
36368
36368
  /* @__PURE__ */ y.jsx(YN, { src: oj, transformAngle: M })
36369
36369
  ] }) : l1 })
36370
36370
  ] });
36371
- }, Eh = "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", cj = "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", uj = "enable_connectors_clicked", dj = "learn_more_clicked", gj = "connector_card_expand_clicked", fj = "connector_card_collapsed_clicked", pj = "connector_card_refresh_clicked", Cj = "connector_cards_loaded", Ej = "connector_whats_new_card_viewed", Ij = "connector_whats_new_explore_now_clicked", Bj = "connector_whats_new_learn_more_clicked", hj = "connector_whats_new_dismissed", Ih = (e) => e.write.objectList, mj = (e) => e.write.objectDict, Qj = (e) => e.write.formFields, bj = (e) => e.write.previewCardData, vj = (e) => e.write.previewCardApiStatus, yj = (e) => e.write.linkCardApiStatus, wj = (e) => e.write.unlinkCardApiStatus, xj = (e) => e.write.dependentFieldsMap, Tj = (e) => e.write.createFormApiStatus, Fj = ({ showUnlinkModal: e, setShowUnlinkModal: t, cardId: n, setHasUnlinkedACard: o }) => {
36371
+ }, Eh = "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", cj = "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", uj = "enable_connectors_clicked", dj = "learn_more_clicked", gj = "connector_card_expand_clicked", fj = "connector_card_collapsed_clicked", pj = "connector_card_refresh_clicked", Cj = "connector_cards_loaded", Ej = "connector_whats_new_card_viewed", Ij = "connector_whats_new_explore_now_clicked", Bj = "connector_whats_new_learn_more_clicked", hj = "connector_whats_new_dismissed", Ih = (e) => e.write.objectList, mj = (e) => e.write.objectDict, Qj = (e) => e.write.formFields, bj = (e) => e.write.previewCardData, vj = (e) => e.write.previewCardApiStatus, yj = (e) => e.write.linkCardApiStatus, wj = (e) => e.write.unlinkCardApiStatus, xj = (e) => e.write.dependentFieldsMap, Tj = (e) => e.write.createFormApiStatus, Fj = ({ showUnlinkModal: e, setShowUnlinkModal: t, cardId: n, onCardUnlinking: o }) => {
36372
36372
  const r = ra(), s = fn(wj) === Pe.LOADING, A = () => {
36373
36373
  r(vA({ id: n })).unwrap().then(() => {
36374
- t(!1), o(!0), $n({
36374
+ t(!1), o(), $n({
36375
36375
  message: bU,
36376
36376
  type: Hi
36377
36377
  });
@@ -36397,7 +36397,7 @@ const MN = V(mt)`
36397
36397
  email: o,
36398
36398
  specificConnectorApiStatus: r,
36399
36399
  defaultOpenState: i = !1,
36400
- setHasUnlinkedACard: s
36400
+ onCardUnlinking: s
36401
36401
  } = e, { availableFeatures: A, sendTrackingEvent: l, conversationId: c } = ar(_r), [u, f] = Oe(!1), [p, B] = Oe(!1), [g, C] = Oe(!1), { id: d, title: E } = t, m = (r == null ? void 0 : r[d]) === Pe.LOADING, h = (sd(A, $B) && (t == null ? void 0 : t.externalResourceId)) ?? !1, b = ra();
36402
36402
  bt(() => {
36403
36403
  f(!!i);
@@ -36455,7 +36455,7 @@ const MN = V(mt)`
36455
36455
  showUnlinkModal: g,
36456
36456
  setShowUnlinkModal: C,
36457
36457
  cardId: d,
36458
- setHasUnlinkedACard: s
36458
+ onCardUnlinking: s
36459
36459
  }
36460
36460
  )
36461
36461
  ] });
@@ -36530,9 +36530,9 @@ const MN = V(mt)`
36530
36530
  /* @__PURE__ */ y.jsx(ch, { variant: "h2", children: "Connectors" })
36531
36531
  ] }),
36532
36532
  /* @__PURE__ */ y.jsxs(Ze, { gap: "12px", children: [
36533
- /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "253px", height: "46px", animation: "wave" }),
36534
- /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "253px", height: "46px", animation: "wave" }),
36535
- /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "253px", height: "46px", animation: "wave" })
36533
+ /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: "46px", animation: "wave" }),
36534
+ /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: "46px", animation: "wave" }),
36535
+ /* @__PURE__ */ y.jsx(Rr, { variant: "rounded", width: "100%", height: "46px", animation: "wave" })
36536
36536
  ] })
36537
36537
  ] }), Xj = () => {
36538
36538
  const { metaData: e, sendTrackingEvent: t } = ar(_r), [n, o] = Oe(!1), r = Qt(null), [i, s] = Oe(0), { templateUpdates: A } = e || {}, { sections: l, actionButtons: c, title: u } = A || {}, { version: f } = A || {}, p = kU(f), B = jn(
@@ -40518,14 +40518,18 @@ const cl = (e) => {
40518
40518
  ] })
40519
40519
  ] });
40520
40520
  }, mY = ({ isAdmin: e = !1 }) => {
40521
- const { email: t, currentSmIds: n, sendTrackingEvent: o, availableFeatures: r, conversationId: i } = ar(_r), s = ra(), A = fn(dU), l = fn(fU), c = fn(pU), u = fn(gU), f = sd(r, TU), p = sd(r, $B), B = Qt(null), [g, C] = Oe(!1), [d, E] = Oe(!1), [m, h] = Oe(!1);
40522
- return bt(() => (m && t && n.length && i && s(La({ inboxIds: n, conversationId: i })), t && n.length && i && s(La({ inboxIds: n, conversationId: i })), () => {
40523
- s(wU.clearConnectorList()), h(!1);
40524
- }), [s, t, n, m, i]), bt(() => {
40521
+ const { email: t, currentSmIds: n, sendTrackingEvent: o, availableFeatures: r, conversationId: i } = ar(_r), s = ra(), A = fn(dU), l = fn(fU), c = fn(pU), u = fn(gU), f = sd(r, TU), p = sd(r, $B), B = Qt(null), [g, C] = Oe(!1), [d, E] = Oe(!1);
40522
+ bt(() => (t && n.length && i && s(La({ inboxIds: n, conversationId: i })), () => {
40523
+ s(wU.clearConnectorList());
40524
+ }), [s, t, n, i]), bt(() => {
40525
40525
  A && A.length && o(Cj, {
40526
40526
  numOfCards: A.length
40527
40527
  });
40528
- }, [A, o, n]), u === Pe.LOADING ? /* @__PURE__ */ y.jsx(Gj, {}) : /* @__PURE__ */ y.jsx(uh, { ref: B, "data-testid": Array.isArray(A) ? "connector-agent" : "loading", children: A != null && A.length ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
40528
+ }, [A, o, n]);
40529
+ const m = () => {
40530
+ t && n.length && i && s(La({ inboxIds: n, conversationId: i }));
40531
+ };
40532
+ return u === Pe.LOADING ? /* @__PURE__ */ y.jsx(Gj, {}) : /* @__PURE__ */ y.jsx(uh, { ref: B, "data-testid": Array.isArray(A) ? "connector-agent" : "loading", children: A != null && A.length ? /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
40529
40533
  /* @__PURE__ */ y.jsxs(Ze, { direction: "row", justifyContent: "space-between", marginBottom: "12px", height: "36px", children: [
40530
40534
  /* @__PURE__ */ y.jsxs(Ze, { direction: "row", alignItems: "center", children: [
40531
40535
  /* @__PURE__ */ y.jsx(lh, {}),
@@ -40537,19 +40541,19 @@ const cl = (e) => {
40537
40541
  ] }) : null })
40538
40542
  ] }),
40539
40543
  f ? /* @__PURE__ */ y.jsx(Xj, {}) : null,
40540
- A.map((b, I) => {
40541
- const { id: Q } = b;
40544
+ A.map((h, b) => {
40545
+ const { id: I } = h;
40542
40546
  return /* @__PURE__ */ y.jsx("div", { children: /* @__PURE__ */ y.jsx(
40543
40547
  kj,
40544
40548
  {
40545
- card: b,
40549
+ card: h,
40546
40550
  specificCardData: l,
40547
40551
  email: t ?? "",
40548
- defaultOpenState: I === 0,
40552
+ defaultOpenState: b === 0,
40549
40553
  specificConnectorApiStatus: c,
40550
- setHasUnlinkedACard: h
40554
+ onCardUnlinking: m
40551
40555
  }
40552
- ) }, Q);
40556
+ ) }, I);
40553
40557
  }),
40554
40558
  /* @__PURE__ */ y.jsx(d1, { onClose: () => C(!1), containerRef: B, isOpen: g, children: /* @__PURE__ */ y.jsx(hY, { onClose: () => C(!1) }) }),
40555
40559
  /* @__PURE__ */ y.jsx(d1, { onClose: () => E(!1), containerRef: B, isOpen: d, children: /* @__PURE__ */ y.jsx(pY, { setOpenTaskLinking: E }) })