Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
63 lines
1.9 KiB
TypeScript
63 lines
1.9 KiB
TypeScript
// Module ID: 11172
|
|
// Function ID: 11173
|
|
// Name: BalanceWidgetPillButton
|
|
// Dependencies: [19, 21, 5025, 8907, 1114, 2]
|
|
|
|
// Module 11172 (BalanceWidgetPillButton)
|
|
import components_Button_Button from "components/Button/Button" /* 5025 */;
|
|
import _modDef8907 from "module_8907" /* 8907 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
class BalanceWidgetPillButton {
|
|
constructor(arg0) {
|
|
({ balance, variant } = global);
|
|
if (variant === undefined) {
|
|
variant = "tertiary";
|
|
}
|
|
flag = global.accessible;
|
|
if (flag === undefined) {
|
|
flag = true;
|
|
}
|
|
tmp2 = closure_0;
|
|
tmp3 = closure_2;
|
|
tmp = jsx;
|
|
obj = { variant, onPress: global.onPress, size: "sm", text: null, icon: null, accessible: null, accessibilityElementsHidden: null, importantForAccessibility: null, accessibilityLabel: null, disabled: null, loading: null };
|
|
str = undefined;
|
|
if (balance != null) {
|
|
str = balance.toString();
|
|
}
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
obj.text = str;
|
|
obj.icon = closure_1(tmp3[3]);
|
|
obj.accessible = flag;
|
|
obj.accessibilityElementsHidden = !flag;
|
|
str2 = "no";
|
|
if (flag) {
|
|
str2 = "auto";
|
|
}
|
|
tmp4 = null === balance;
|
|
obj.importantForAccessibility = str2;
|
|
intl = tmp2(tmp3[4]).intl;
|
|
if (tmp4) {
|
|
stringResult = intl.string(tmp2(tmp3[4]).t.y0WGqP);
|
|
} else {
|
|
obj1 = { balance: null };
|
|
obj1.balance = balance.toString();
|
|
stringResult = intl.formatToPlainString(tmp2(tmp3[4]).t.zPaLL9, obj1);
|
|
}
|
|
obj.accessibilityLabel = stringResult;
|
|
obj.disabled = tmp4;
|
|
obj.loading = tmp4;
|
|
return tmp(closure_0(closure_2[2]).Button, obj);
|
|
}
|
|
}
|
|
const jsx = fn(21).jsx;
|
|
BalanceWidgetPillButton.displayName = "BalanceWidgetPillButton";
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/virtual_currency/native/BalanceWidgetPillButton.tsx");
|
|
|
|
export default BalanceWidgetPillButton;
|
|
export { BalanceWidgetPillButton };
|