mozrest-sdk-react-dev 0.2.98 → 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 +3 -3
- package/package.json +1 -1
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: (
|
|
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,
|