mozrest-sdk-react-dev 0.2.97 → 0.2.99

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/mozrest-sdk.es.js CHANGED
@@ -54938,7 +54938,7 @@ const Notifications = ({
54938
54938
  venueId,
54939
54939
  venueListingId
54940
54940
  }) => {
54941
- var _a2, _b, _c;
54941
+ var _a2, _b, _c, _d, _e2;
54942
54942
  const { t: t2 } = useTranslation();
54943
54943
  const [showModal, setShowmodal] = useState(false);
54944
54944
  const closeModal = () => setShowmodal(false);
@@ -54958,7 +54958,7 @@ const Notifications = ({
54958
54958
  cacheId: `user-data`
54959
54959
  }
54960
54960
  );
54961
- const showAiPrompt = userData2 == null ? void 0 : userData2.roles.some(
54961
+ const showAiPrompt = (_b = (_a2 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a2.roles) == null ? void 0 : _b.some(
54962
54962
  (role) => role === "ROLE_COMPANY_SUPER_ADMIN" || role === "ROLE_COMPANY_SUPER_ADMIN_BOT"
54963
54963
  );
54964
54964
  const _reload = () => {
@@ -55056,7 +55056,7 @@ const Notifications = ({
55056
55056
  }), /* @__PURE__ */ React__default.createElement(AiPromptForm, {
55057
55057
  open: showAiPromptModal,
55058
55058
  onCloseForm: closeAiPromptModal,
55059
- initialValues: { aiPrompt: (_c = (_b = (_a2 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a2.company) == null ? void 0 : _b.aiPrompt) != null ? _c : "" },
55059
+ initialValues: { aiPrompt: (_e2 = (_d = (_c = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _c.company) == null ? void 0 : _d.aiPrompt) != null ? _e2 : "" },
55060
55060
  reload: reloadUserData
55061
55061
  }), /* @__PURE__ */ React__default.createElement(EmailForm, {
55062
55062
  open: showModal,
@@ -108949,6 +108949,7 @@ const index$a = ({ filtersData, venueId }) => {
108949
108949
  return;
108950
108950
  }
108951
108951
  if (!selectedBooking) {
108952
+ console.log("data", data22);
108952
108953
  const toSend = {
108953
108954
  bookingChannel: (_a2 = data22 == null ? void 0 : data22.source) == null ? void 0 : _a2.value,
108954
108955
  partySize: (_b = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _b.value,
@@ -109088,7 +109089,7 @@ const index$a = ({ filtersData, venueId }) => {
109088
109089
  id: "source",
109089
109090
  name: "source",
109090
109091
  label: t2("source"),
109091
- options: sourceOptions.map((item2) => ({ value: item2.code, label: t2(item2.label) }))
109092
+ options: sourceOptions.map((item2) => ({ value: item2.value, label: t2(item2.label) }))
109092
109093
  })), /* @__PURE__ */ React__default.createElement("div", {
109093
109094
  style: { display: "flex", gap: 10 }
109094
109095
  }, /* @__PURE__ */ React__default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.2.97",
3
+ "version": "0.2.99",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {