mozrest-sdk-react-dev 0.1.92 → 0.1.93
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 +14 -14
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -2048,10 +2048,10 @@ const config$1 = {
|
|
|
2048
2048
|
url_api: "https://api-pre.mozrest.com",
|
|
2049
2049
|
url: {}.VITE_URL,
|
|
2050
2050
|
maps_key: "AIzaSyC2uXu-Z4dFWYolIQ8tPB6wkIlYWn_Bu7U",
|
|
2051
|
-
fb_graph_url:
|
|
2052
|
-
paddle_env:
|
|
2053
|
-
paddle_vendor_id:
|
|
2054
|
-
paddle_product_id:
|
|
2051
|
+
fb_graph_url: "https://graph.facebook.com/v12.0",
|
|
2052
|
+
paddle_env: "sandbox",
|
|
2053
|
+
paddle_vendor_id: "6925",
|
|
2054
|
+
paddle_product_id: "42937"
|
|
2055
2055
|
};
|
|
2056
2056
|
const refreshToken = async () => {
|
|
2057
2057
|
try {
|
|
@@ -77681,7 +77681,7 @@ const formatComparedPeriod = (range4) => {
|
|
|
77681
77681
|
return "";
|
|
77682
77682
|
return `${formatDate(range4.from, dateFormat)} - ${formatDate(range4.till, dateFormat)}`;
|
|
77683
77683
|
};
|
|
77684
|
-
const Analytics$
|
|
77684
|
+
const Analytics$3 = ({ venueListingId, venueId }) => {
|
|
77685
77685
|
const { t: t2 } = useTranslation();
|
|
77686
77686
|
const [filter2, setFilters] = useState({
|
|
77687
77687
|
range: getCurrentRange(),
|
|
@@ -78069,7 +78069,7 @@ const singleVenue$2 = async () => {
|
|
|
78069
78069
|
}
|
|
78070
78070
|
});
|
|
78071
78071
|
};
|
|
78072
|
-
const Analytics$
|
|
78072
|
+
const Analytics$2 = ({ venueListingId, venueId }) => {
|
|
78073
78073
|
const { t: t2 } = useTranslation();
|
|
78074
78074
|
const [listingId, setListingId] = useState(venueListingId);
|
|
78075
78075
|
const [formattedStats, setFormattedStats] = useState();
|
|
@@ -78202,7 +78202,7 @@ const GetBookingAnalytics = async ({ params }) => {
|
|
|
78202
78202
|
});
|
|
78203
78203
|
return data2;
|
|
78204
78204
|
};
|
|
78205
|
-
const
|
|
78205
|
+
const DasboardBookingAnalytics = ({ venueListingId, venueId }) => {
|
|
78206
78206
|
const { t: t2 } = useTranslation();
|
|
78207
78207
|
const { data: data2, isLoading, error: error3 } = useFetch(GetBookingAnalytics, {
|
|
78208
78208
|
cacheId: `booking-analytics-${venueListingId}`,
|
|
@@ -100784,7 +100784,7 @@ const CommercialFeeTypes = {
|
|
|
100784
100784
|
subscription: "month",
|
|
100785
100785
|
na: "Free"
|
|
100786
100786
|
};
|
|
100787
|
-
const userData = JSON.parse((_a2 = sessionStorage.getItem("sdk_user")) != null ? _a2 : "");
|
|
100787
|
+
const userData = JSON.parse((_a2 = sessionStorage.getItem("sdk_user")) != null ? _a2 : "{}");
|
|
100788
100788
|
const conditionsContainer$2 = "_conditionsContainer_1yf4e_1";
|
|
100789
100789
|
const conditionsCardContainer$2 = "_conditionsCardContainer_1yf4e_7";
|
|
100790
100790
|
var styles$9 = {
|
|
@@ -100834,7 +100834,7 @@ const ChannelPayment = ({ venueListingId, venueId }) => {
|
|
|
100834
100834
|
};
|
|
100835
100835
|
const paddleEmbed = (opportunityId, venueId, onCheckoutComplete) => {
|
|
100836
100836
|
const Paddle = window.Paddle;
|
|
100837
|
-
|
|
100837
|
+
{
|
|
100838
100838
|
Paddle.Environment.set("sandbox");
|
|
100839
100839
|
}
|
|
100840
100840
|
Paddle.Setup({ vendor: parseInt(config$1.paddle_vendor_id) });
|
|
@@ -102062,12 +102062,12 @@ function App({
|
|
|
102062
102062
|
element: /* @__PURE__ */ React__default.createElement(Permissions, null)
|
|
102063
102063
|
}), /* @__PURE__ */ React__default.createElement(Route, {
|
|
102064
102064
|
path: "/analytics/listing",
|
|
102065
|
-
element: /* @__PURE__ */ React__default.createElement(Analytics$
|
|
102065
|
+
element: /* @__PURE__ */ React__default.createElement(Analytics$2, {
|
|
102066
102066
|
venueListingId
|
|
102067
102067
|
})
|
|
102068
102068
|
}), /* @__PURE__ */ React__default.createElement(Route, {
|
|
102069
102069
|
path: "/analytics/review",
|
|
102070
|
-
element: /* @__PURE__ */ React__default.createElement(Analytics$
|
|
102070
|
+
element: /* @__PURE__ */ React__default.createElement(Analytics$3, {
|
|
102071
102071
|
venueListingId
|
|
102072
102072
|
})
|
|
102073
102073
|
}), /* @__PURE__ */ React__default.createElement(Route, {
|
|
@@ -102082,10 +102082,10 @@ const pages = {
|
|
|
102082
102082
|
Roles: App$1,
|
|
102083
102083
|
Notifications,
|
|
102084
102084
|
ReplyTemplates,
|
|
102085
|
-
ReviewAnalytics: Analytics$
|
|
102086
|
-
ListingAnalytics: Analytics$
|
|
102085
|
+
ReviewAnalytics: Analytics$3,
|
|
102086
|
+
ListingAnalytics: Analytics$2,
|
|
102087
102087
|
DashboardListingAnalytics: Analytics$1,
|
|
102088
|
-
DashboardBookingAnalytics:
|
|
102088
|
+
DashboardBookingAnalytics: DasboardBookingAnalytics,
|
|
102089
102089
|
DashboardReviewAnalytics: Analytics,
|
|
102090
102090
|
Users: App$2,
|
|
102091
102091
|
ProfileManagement,
|