101 lines
3.3 KiB
JavaScript
101 lines
3.3 KiB
JavaScript
// Metro module 1133 (f1134).
|
|
import { getClient } from "./Module817";
|
|
let name, _getClientIntegration;
|
|
let c940_2 = (this ? this.__rest : this) || function(a0, a1) {
|
|
const r5 = {};
|
|
for (const key in a0) {
|
|
if (Object.prototype.hasOwnProperty.call(a0, key) && a1.indexOf(key) < 0) {
|
|
r5[key] = a0[key];
|
|
}
|
|
}
|
|
if (a0 != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
const ownPropertySymbols = Object.getOwnPropertySymbols(a0);
|
|
const r27 = 0 < ownPropertySymbols.length;
|
|
let r29 = 0;
|
|
if (r27) {
|
|
do {
|
|
let r33 = a1.indexOf(ownPropertySymbols[r29]) < 0;
|
|
const r1 = r29;
|
|
if (r33) {
|
|
r33 = Object.prototype.propertyIsEnumerable.call(a0, ownPropertySymbols[r1]);
|
|
}
|
|
if (r33) {
|
|
r5[ownPropertySymbols[r1]] = a0[ownPropertySymbols[r1]];
|
|
}
|
|
r29 = r1 + 1;
|
|
} while (r29 < ownPropertySymbols.length);
|
|
}
|
|
}
|
|
return r5;
|
|
};
|
|
name = "MobileFeedback";
|
|
_getClientIntegration = () => {};
|
|
export const MOBILE_FEEDBACK_INTEGRATION_NAME = "MobileFeedback";
|
|
export const feedbackIntegration = function(r9 = {}) {
|
|
let buttonOptions = r9.buttonOptions;
|
|
let screenshotButtonOptions = r9.screenshotButtonOptions;
|
|
let colorScheme = r9.colorScheme;
|
|
let themeLight = r9.themeLight;
|
|
let themeDark = r9.themeDark;
|
|
const r12 = {
|
|
name,
|
|
options: c940_2(r9, ["buttonOptions", "screenshotButtonOptions", "colorScheme", "themeLight", "themeDark"]),
|
|
buttonOptions: null,
|
|
screenshotButtonOptions: null,
|
|
colorScheme: null,
|
|
themeLight: null,
|
|
themeDark: null
|
|
};
|
|
if (!buttonOptions) {
|
|
buttonOptions = {};
|
|
}
|
|
r12.buttonOptions = buttonOptions;
|
|
if (!screenshotButtonOptions) {
|
|
screenshotButtonOptions = {};
|
|
}
|
|
r12.screenshotButtonOptions = screenshotButtonOptions;
|
|
if (!colorScheme) {
|
|
colorScheme = "system";
|
|
}
|
|
r12.colorScheme = colorScheme;
|
|
if (!themeLight) {
|
|
themeLight = {};
|
|
}
|
|
r12.themeLight = themeLight;
|
|
if (!themeDark) {
|
|
themeDark = {};
|
|
}
|
|
r12.themeDark = themeDark;
|
|
return r12;
|
|
};
|
|
export const getFeedbackOptions = () => {
|
|
const client = getClient();
|
|
const r12 = client !== null ? client !== void 0 ? client.getIntegrationByName(name) : void 0 : void 0;
|
|
return r12 ? r12.options : {};
|
|
};
|
|
export const getFeedbackButtonOptions = () => {
|
|
const client = getClient();
|
|
const r12 = client !== null ? client !== void 0 ? client.getIntegrationByName(name) : void 0 : void 0;
|
|
return r12 ? r12.buttonOptions : {};
|
|
};
|
|
export const getScreenshotButtonOptions = () => {
|
|
const client = getClient();
|
|
const r12 = client !== null ? client !== void 0 ? client.getIntegrationByName(name) : void 0 : void 0;
|
|
return r12 ? r12.screenshotButtonOptions : {};
|
|
};
|
|
export const getColorScheme = () => {
|
|
const client = getClient();
|
|
const r12 = client !== null ? client !== void 0 ? client.getIntegrationByName(name) : void 0 : void 0;
|
|
return r12?.colorScheme ? r12.colorScheme : "system";
|
|
};
|
|
export const getFeedbackLightTheme = () => {
|
|
const client = getClient();
|
|
const r12 = client !== null ? client !== void 0 ? client.getIntegrationByName(name) : void 0 : void 0;
|
|
return r12 ? r12.themeLight : {};
|
|
};
|
|
export const getFeedbackDarkTheme = () => {
|
|
const client = getClient();
|
|
const r12 = client !== null ? client !== void 0 ? client.getIntegrationByName(name) : void 0 : void 0;
|
|
return r12 ? r12.themeDark : {};
|
|
};
|