mozrest-sdk-react-dev 0.2.31 → 0.2.33
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 +5 -8
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -38377,7 +38377,7 @@ const ReplyForm = ({
|
|
|
38377
38377
|
const { t: t2 } = useTranslation();
|
|
38378
38378
|
const { execute, isExecuting } = useService(AddReviewReply);
|
|
38379
38379
|
useContext(ContextTemplate);
|
|
38380
|
-
|
|
38380
|
+
useContext(ContextUserRole);
|
|
38381
38381
|
const ref = useRef(null);
|
|
38382
38382
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
38383
38383
|
const handleExecute = async (data2) => {
|
|
@@ -38422,7 +38422,7 @@ const ReplyForm = ({
|
|
|
38422
38422
|
children: t2("REPLYTEMPLATES")
|
|
38423
38423
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
38424
38424
|
style: { display: "flex", gap: 5 }
|
|
38425
|
-
}, !isMobile2 &&
|
|
38425
|
+
}, !isMobile2 && /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
38426
38426
|
isLoading: isExecuting || isSuggesting,
|
|
38427
38427
|
size: "small",
|
|
38428
38428
|
icon: "robot",
|
|
@@ -43892,8 +43892,6 @@ const DetailMobile = ({
|
|
|
43892
43892
|
isSuggesting
|
|
43893
43893
|
}) => {
|
|
43894
43894
|
const { t: t2 } = useTranslation();
|
|
43895
|
-
useContext(ContextTemplate);
|
|
43896
|
-
const [roles] = useContext(ContextUserRole);
|
|
43897
43895
|
const [showTemplates, setShowTemplates] = useState(false);
|
|
43898
43896
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
43899
43897
|
const openModal = () => setShowTemplates(true);
|
|
@@ -43957,7 +43955,7 @@ const DetailMobile = ({
|
|
|
43957
43955
|
open: showTemplates,
|
|
43958
43956
|
rating,
|
|
43959
43957
|
onClose: closeModal
|
|
43960
|
-
}), !reply2 && platform2 !== "tripadvisor" ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null,
|
|
43958
|
+
}), !reply2 && platform2 !== "tripadvisor" ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
43961
43959
|
isLoading: isSuggesting,
|
|
43962
43960
|
onClick: () => onSuggestTemplate(),
|
|
43963
43961
|
style: { marginBottom: 10 },
|
|
@@ -85359,12 +85357,12 @@ const BingButton$1 = ({
|
|
|
85359
85357
|
}, t2("CONNECT")));
|
|
85360
85358
|
};
|
|
85361
85359
|
const useConnect = ({ venueId }) => {
|
|
85362
|
-
var _a2;
|
|
85360
|
+
var _a2, _b;
|
|
85363
85361
|
const { data: data2, isLoading, reload } = useFetch(GetVenueListingModule, {
|
|
85364
85362
|
cacheId: `module-${venueId}`,
|
|
85365
85363
|
venueId
|
|
85366
85364
|
});
|
|
85367
|
-
const activeModules = (_a2 = data2 == null ? void 0 : data2.data.map(({ module: module2 }) => module2.name)) != null ?
|
|
85365
|
+
const activeModules = (_b = (_a2 = data2 == null ? void 0 : data2.data) == null ? void 0 : _a2.map(({ module: module2 }) => module2.name)) != null ? _b : [];
|
|
85368
85366
|
const FacebookConnected = activeModules.includes("Facebook");
|
|
85369
85367
|
const GoogleConnected = activeModules.includes("Google");
|
|
85370
85368
|
const BingConnected = activeModules.includes("Bing");
|
|
@@ -102403,7 +102401,6 @@ const ExportDataModal = ({ open, onClose: onClose2, filters: filters2, isExportL
|
|
|
102403
102401
|
}));
|
|
102404
102402
|
};
|
|
102405
102403
|
const ToolBar = ({ filters: filters2, setFilters, setTotalDays, userEmail, userFullName }) => {
|
|
102406
|
-
useTranslation();
|
|
102407
102404
|
const [openExportDataModal, setOpenExportDataModal] = useState(false);
|
|
102408
102405
|
const onOpenExportDataModal = () => setOpenExportDataModal(true);
|
|
102409
102406
|
const onCloseExportDataModal = () => setOpenExportDataModal(false);
|