uapp-communication-sdk 1.0.0-dev.88 → 1.0.0-dev.89

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.
@@ -39597,7 +39597,7 @@ var I0 = () => {
39597
39597
  }, r.id);
39598
39598
  })
39599
39599
  }), j6 = 1e4, M6 = () => {
39600
- let e = ct(), t = qQ(j6), n = ZQ(), r = QQ(), [i, a] = T("upcoming"), o = t.data ?? [], s = [...o].filter((e) => e.bucket === i).sort((e, t) => new Date(e.startUtc).getTime() - new Date(t.startUtc).getTime()), c = {
39600
+ let e = ct(), t = qQ(j6), n = ZQ(), r = QQ(), [i, a] = T("upcoming"), o = t.data ?? [], s = t.data === void 0, c = [...o].filter((e) => e.bucket === i).sort((e, t) => new Date(e.startUtc).getTime() - new Date(t.startUtc).getTime()), l = {
39601
39601
  upcoming: o.filter((e) => e.bucket === "upcoming").length,
39602
39602
  passed: o.filter((e) => e.bucket === "passed").length,
39603
39603
  canceled: o.filter((e) => e.bucket === "canceled").length
@@ -39607,16 +39607,21 @@ var I0 = () => {
39607
39607
  children: [
39608
39608
  /* @__PURE__ */ (0, A.jsx)(A6, {
39609
39609
  bucket: i,
39610
- counts: c,
39610
+ counts: l,
39611
39611
  onSelect: a
39612
39612
  }),
39613
39613
  t.isPending ? /* @__PURE__ */ (0, A.jsx)(E6, {}) : null,
39614
- t.isError && /* @__PURE__ */ (0, A.jsx)(Hi, {
39614
+ t.isError && s ? /* @__PURE__ */ (0, A.jsx)(Hi, {
39615
39615
  tone: "error",
39616
39616
  title: "Could not load meetings",
39617
39617
  children: t.error.message
39618
- }),
39619
- t.isSuccess && s.length === 0 ? /* @__PURE__ */ (0, A.jsxs)("div", {
39618
+ }) : null,
39619
+ t.isError && !s ? /* @__PURE__ */ (0, A.jsx)(Hi, {
39620
+ tone: "info",
39621
+ title: "Showing the last known meetings",
39622
+ children: "Could not refresh just now. This will update on its own."
39623
+ }) : null,
39624
+ !s && c.length === 0 ? /* @__PURE__ */ (0, A.jsxs)("div", {
39620
39625
  className: p6.empty,
39621
39626
  children: [
39622
39627
  /* @__PURE__ */ (0, A.jsx)("div", {
@@ -39637,14 +39642,14 @@ var I0 = () => {
39637
39642
  })
39638
39643
  ]
39639
39644
  }) : null,
39640
- t.isSuccess && s.length > 0 ? /* @__PURE__ */ (0, A.jsx)(h_, {
39645
+ !s && c.length > 0 ? /* @__PURE__ */ (0, A.jsx)(h_, {
39641
39646
  mode: "wait",
39642
39647
  children: /* @__PURE__ */ (0, A.jsx)(M.div, {
39643
39648
  className: p6.meetingList,
39644
39649
  variants: k6,
39645
39650
  initial: "hidden",
39646
39651
  animate: "visible",
39647
- children: s.map((t) => /* @__PURE__ */ (0, A.jsx)(w6, {
39652
+ children: c.map((t) => /* @__PURE__ */ (0, A.jsx)(w6, {
39648
39653
  meeting: t,
39649
39654
  onRespond: (e) => {
39650
39655
  n.mutate({