@yosgo/swap-ui 1.0.142 → 2.0.0-beta.1
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/README.md +50 -36
- package/build/index.cjs +3693 -0
- package/build/index.cjs.map +1 -0
- package/build/index.d.cts +710 -0
- package/build/index.d.ts +710 -50
- package/build/index.js +3553 -13927
- package/build/index.js.map +1 -1
- package/package.json +63 -63
- package/build/AppBar/AppBar.d.ts +0 -4
- package/build/AppBar/AppBar.types.d.ts +0 -2
- package/build/AutoComplete/AutoComplete.d.ts +0 -6
- package/build/AutoComplete/AutoComplete.types.d.ts +0 -23
- package/build/AutoComplete/BankCodes.d.ts +0 -5
- package/build/Banner/Banner.d.ts +0 -4
- package/build/Banner/Banner.types.d.ts +0 -10
- package/build/Breadcrumb/Breadcrumb.d.ts +0 -4
- package/build/Breadcrumb/Breadcrumb.types.d.ts +0 -7
- package/build/BreadcrumbItem/BreadcrumbItem.d.ts +0 -4
- package/build/BreadcrumbItem/BreadcrumbItem.types.d.ts +0 -4
- package/build/Button/Button.d.ts +0 -4
- package/build/Button/Button.types.d.ts +0 -13
- package/build/Card/Card.d.ts +0 -4
- package/build/Card/Card.types.d.ts +0 -17
- package/build/CheckBox/CheckBox.d.ts +0 -4
- package/build/CheckBox/CheckBox.types.d.ts +0 -7
- package/build/CheckBox/CheckBoxList.d.ts +0 -4
- package/build/CheckBox/CheckBoxList.types.d.ts +0 -9
- package/build/CheckBox/RadioButton.d.ts +0 -4
- package/build/CheckBox/RadioButton.types.d.ts +0 -7
- package/build/CheckBox/RadioList.d.ts +0 -4
- package/build/CheckBox/RadioList.types.d.ts +0 -9
- package/build/Chip/Chip.d.ts +0 -4
- package/build/Chip/Chip.types.d.ts +0 -11
- package/build/CircularProgress/CircularProgress.d.ts +0 -4
- package/build/CircularProgress/CircularProgress.types.d.ts +0 -5
- package/build/Container/Container.d.ts +0 -4
- package/build/Container/Container.types.d.ts +0 -7
- package/build/DatePicker/DatePicker.d.ts +0 -4
- package/build/DatePicker/DatePicker.types.d.ts +0 -14
- package/build/Dropdown/Dropdown.d.ts +0 -4
- package/build/Dropdown/Dropdown.types.d.ts +0 -9
- package/build/IconButton/IconButton.d.ts +0 -4
- package/build/IconButton/IconButton.types.d.ts +0 -7
- package/build/LandingPage/LandingPage.d.ts +0 -4
- package/build/LandingPage/LandingPage.types.d.ts +0 -14
- package/build/LandingPage/LandingPageMobile.d.ts +0 -4
- package/build/LandingPage/LandingPageMobile.types.d.ts +0 -14
- package/build/Link/Link.d.ts +0 -4
- package/build/Link/Link.types.d.ts +0 -4
- package/build/Menu/Menu.d.ts +0 -4
- package/build/Menu/Menu.types.d.ts +0 -3
- package/build/Menu/MenuItem.d.ts +0 -4
- package/build/Menu/MenuItem.types.d.ts +0 -12
- package/build/Menu/Select.d.ts +0 -4
- package/build/Menu/Select.types.d.ts +0 -41
- package/build/Modal/Modal.d.ts +0 -4
- package/build/Modal/Modal.types.d.ts +0 -55
- package/build/Pagination/Pagination.d.ts +0 -4
- package/build/Pagination/Pagination.types.d.ts +0 -3
- package/build/Paper/Paper.d.ts +0 -4
- package/build/Paper/Paper.types.d.ts +0 -5
- package/build/Progress/Progress.d.ts +0 -4
- package/build/Progress/Progress.types.d.ts +0 -8
- package/build/SWAPAppBar/SWAPAppBar.d.ts +0 -4
- package/build/SWAPAppBar/SWAPAppBar.types.d.ts +0 -19
- package/build/SWAPBanner/SWAPBanner.d.ts +0 -4
- package/build/SWAPBanner/SWAPBanner.types.d.ts +0 -16
- package/build/SWAPCopyField/SWAPCopyField.d.ts +0 -4
- package/build/SWAPCopyField/SWAPCopyField.types.d.ts +0 -8
- package/build/SWAPDialog/SWAPDialog.d.ts +0 -4
- package/build/SWAPDialog/SWAPDialog.types.d.ts +0 -18
- package/build/SWAPLogo/SWAPLogo.d.ts +0 -4
- package/build/SWAPLogo/SWAPLogo.types.d.ts +0 -10
- package/build/SWAPModal/SWAPModal.d.ts +0 -4
- package/build/SWAPModal/SWAPModal.types.d.ts +0 -29
- package/build/SWAPShare/SWAPShare.d.ts +0 -4
- package/build/SWAPShare/SWAPShare.types.d.ts +0 -6
- package/build/SWAPSpace/SWAPSpace.d.ts +0 -4
- package/build/SWAPSpace/SWAPSpace.types.d.ts +0 -3
- package/build/SWAPTaxField/SWAPTaxField.d.ts +0 -24
- package/build/SWAPTaxField/SWAPTaxField.types.d.ts +0 -13
- package/build/SWAPTheme/SWAPTheme.d.ts +0 -7
- package/build/SWAPTheme/SWAPTheme.types.d.ts +0 -166
- package/build/Skeleton/Skeleton.d.ts +0 -4
- package/build/Skeleton/Skeleton.types.d.ts +0 -3
- package/build/Snackbar/Snackbar.d.ts +0 -4
- package/build/Snackbar/Snackbar.types.d.ts +0 -20
- package/build/Styles/Styles.d.ts +0 -4
- package/build/Styles/Styles.types.d.ts +0 -8
- package/build/Switch/Switch.d.ts +0 -4
- package/build/Switch/Switch.types.d.ts +0 -3
- package/build/Tab/SegmentedTab.d.ts +0 -4
- package/build/Tab/SegmentedTab.types.d.ts +0 -7
- package/build/Tab/SegmentedTabs.d.ts +0 -4
- package/build/Tab/SegmentedTabs.types.d.ts +0 -5
- package/build/Tab/Tab.d.ts +0 -4
- package/build/Tab/Tab.types.d.ts +0 -10
- package/build/Tab/TabPanel.d.ts +0 -10
- package/build/Tab/Tabs.d.ts +0 -4
- package/build/Tab/Tabs.types.d.ts +0 -3
- package/build/Table/Table.d.ts +0 -4
- package/build/Table/Table.types.d.ts +0 -2
- package/build/TaxTextField/TaxTextField.d.ts +0 -24
- package/build/TaxTextField/TaxTextField.types.d.ts +0 -26
- package/build/TextField/TextField.d.ts +0 -4
- package/build/TextField/TextField.types.d.ts +0 -7
- package/build/Tooltip/Tooltip.d.ts +0 -4
- package/build/Tooltip/Tooltip.types.d.ts +0 -15
- package/build/Typography/Typography.d.ts +0 -4
- package/build/Typography/Typography.types.d.ts +0 -8
- package/build/index.esm.js +0 -13931
- package/build/index.esm.js.map +0 -1
- package/build/utils/useBreakpoints.d.ts +0 -2
package/build/index.cjs
ADDED
|
@@ -0,0 +1,3693 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all)
|
|
13
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
+
|
|
33
|
+
// node_modules/react-is/cjs/react-is.production.js
|
|
34
|
+
var require_react_is_production = __commonJS({
|
|
35
|
+
"node_modules/react-is/cjs/react-is.production.js"(exports2) {
|
|
36
|
+
"use strict";
|
|
37
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
38
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
39
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
40
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
|
|
41
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
|
|
42
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
|
|
43
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
|
|
44
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
45
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
46
|
+
var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list");
|
|
47
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
48
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
49
|
+
var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
|
|
50
|
+
var REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
51
|
+
function typeOf(object) {
|
|
52
|
+
if ("object" === typeof object && null !== object) {
|
|
53
|
+
var $$typeof = object.$$typeof;
|
|
54
|
+
switch ($$typeof) {
|
|
55
|
+
case REACT_ELEMENT_TYPE:
|
|
56
|
+
switch (object = object.type, object) {
|
|
57
|
+
case REACT_FRAGMENT_TYPE:
|
|
58
|
+
case REACT_PROFILER_TYPE:
|
|
59
|
+
case REACT_STRICT_MODE_TYPE:
|
|
60
|
+
case REACT_SUSPENSE_TYPE:
|
|
61
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
62
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
63
|
+
return object;
|
|
64
|
+
default:
|
|
65
|
+
switch (object = object && object.$$typeof, object) {
|
|
66
|
+
case REACT_CONTEXT_TYPE:
|
|
67
|
+
case REACT_FORWARD_REF_TYPE:
|
|
68
|
+
case REACT_LAZY_TYPE:
|
|
69
|
+
case REACT_MEMO_TYPE:
|
|
70
|
+
return object;
|
|
71
|
+
case REACT_CONSUMER_TYPE:
|
|
72
|
+
return object;
|
|
73
|
+
default:
|
|
74
|
+
return $$typeof;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
case REACT_PORTAL_TYPE:
|
|
78
|
+
return $$typeof;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports2.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
83
|
+
exports2.ContextProvider = REACT_CONTEXT_TYPE;
|
|
84
|
+
exports2.Element = REACT_ELEMENT_TYPE;
|
|
85
|
+
exports2.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
86
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
87
|
+
exports2.Lazy = REACT_LAZY_TYPE;
|
|
88
|
+
exports2.Memo = REACT_MEMO_TYPE;
|
|
89
|
+
exports2.Portal = REACT_PORTAL_TYPE;
|
|
90
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
91
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
92
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
93
|
+
exports2.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
94
|
+
exports2.isContextConsumer = function(object) {
|
|
95
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
96
|
+
};
|
|
97
|
+
exports2.isContextProvider = function(object) {
|
|
98
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
99
|
+
};
|
|
100
|
+
exports2.isElement = function(object) {
|
|
101
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
102
|
+
};
|
|
103
|
+
exports2.isForwardRef = function(object) {
|
|
104
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
105
|
+
};
|
|
106
|
+
exports2.isFragment = function(object) {
|
|
107
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
108
|
+
};
|
|
109
|
+
exports2.isLazy = function(object) {
|
|
110
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
111
|
+
};
|
|
112
|
+
exports2.isMemo = function(object) {
|
|
113
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
114
|
+
};
|
|
115
|
+
exports2.isPortal = function(object) {
|
|
116
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
117
|
+
};
|
|
118
|
+
exports2.isProfiler = function(object) {
|
|
119
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
120
|
+
};
|
|
121
|
+
exports2.isStrictMode = function(object) {
|
|
122
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
123
|
+
};
|
|
124
|
+
exports2.isSuspense = function(object) {
|
|
125
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
126
|
+
};
|
|
127
|
+
exports2.isSuspenseList = function(object) {
|
|
128
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
129
|
+
};
|
|
130
|
+
exports2.isValidElementType = function(type) {
|
|
131
|
+
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
132
|
+
};
|
|
133
|
+
exports2.typeOf = typeOf;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// node_modules/react-is/cjs/react-is.development.js
|
|
138
|
+
var require_react_is_development = __commonJS({
|
|
139
|
+
"node_modules/react-is/cjs/react-is.development.js"(exports2) {
|
|
140
|
+
"use strict";
|
|
141
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
142
|
+
function typeOf(object) {
|
|
143
|
+
if ("object" === typeof object && null !== object) {
|
|
144
|
+
var $$typeof = object.$$typeof;
|
|
145
|
+
switch ($$typeof) {
|
|
146
|
+
case REACT_ELEMENT_TYPE:
|
|
147
|
+
switch (object = object.type, object) {
|
|
148
|
+
case REACT_FRAGMENT_TYPE:
|
|
149
|
+
case REACT_PROFILER_TYPE:
|
|
150
|
+
case REACT_STRICT_MODE_TYPE:
|
|
151
|
+
case REACT_SUSPENSE_TYPE:
|
|
152
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
153
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
154
|
+
return object;
|
|
155
|
+
default:
|
|
156
|
+
switch (object = object && object.$$typeof, object) {
|
|
157
|
+
case REACT_CONTEXT_TYPE:
|
|
158
|
+
case REACT_FORWARD_REF_TYPE:
|
|
159
|
+
case REACT_LAZY_TYPE:
|
|
160
|
+
case REACT_MEMO_TYPE:
|
|
161
|
+
return object;
|
|
162
|
+
case REACT_CONSUMER_TYPE:
|
|
163
|
+
return object;
|
|
164
|
+
default:
|
|
165
|
+
return $$typeof;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
case REACT_PORTAL_TYPE:
|
|
169
|
+
return $$typeof;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
174
|
+
exports2.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
175
|
+
exports2.ContextProvider = REACT_CONTEXT_TYPE;
|
|
176
|
+
exports2.Element = REACT_ELEMENT_TYPE;
|
|
177
|
+
exports2.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
178
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
179
|
+
exports2.Lazy = REACT_LAZY_TYPE;
|
|
180
|
+
exports2.Memo = REACT_MEMO_TYPE;
|
|
181
|
+
exports2.Portal = REACT_PORTAL_TYPE;
|
|
182
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
183
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
184
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
185
|
+
exports2.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
186
|
+
exports2.isContextConsumer = function(object) {
|
|
187
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
188
|
+
};
|
|
189
|
+
exports2.isContextProvider = function(object) {
|
|
190
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
191
|
+
};
|
|
192
|
+
exports2.isElement = function(object) {
|
|
193
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
194
|
+
};
|
|
195
|
+
exports2.isForwardRef = function(object) {
|
|
196
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
197
|
+
};
|
|
198
|
+
exports2.isFragment = function(object) {
|
|
199
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
200
|
+
};
|
|
201
|
+
exports2.isLazy = function(object) {
|
|
202
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
203
|
+
};
|
|
204
|
+
exports2.isMemo = function(object) {
|
|
205
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
206
|
+
};
|
|
207
|
+
exports2.isPortal = function(object) {
|
|
208
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
209
|
+
};
|
|
210
|
+
exports2.isProfiler = function(object) {
|
|
211
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
212
|
+
};
|
|
213
|
+
exports2.isStrictMode = function(object) {
|
|
214
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
215
|
+
};
|
|
216
|
+
exports2.isSuspense = function(object) {
|
|
217
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
218
|
+
};
|
|
219
|
+
exports2.isSuspenseList = function(object) {
|
|
220
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
221
|
+
};
|
|
222
|
+
exports2.isValidElementType = function(type) {
|
|
223
|
+
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
224
|
+
};
|
|
225
|
+
exports2.typeOf = typeOf;
|
|
226
|
+
})();
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
// node_modules/react-is/index.js
|
|
231
|
+
var require_react_is = __commonJS({
|
|
232
|
+
"node_modules/react-is/index.js"(exports2, module2) {
|
|
233
|
+
"use strict";
|
|
234
|
+
if (process.env.NODE_ENV === "production") {
|
|
235
|
+
module2.exports = require_react_is_production();
|
|
236
|
+
} else {
|
|
237
|
+
module2.exports = require_react_is_development();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// src/index.ts
|
|
243
|
+
var index_exports = {};
|
|
244
|
+
__export(index_exports, {
|
|
245
|
+
AutoComplete: () => AutoComplete_default,
|
|
246
|
+
Banner: () => Banner_default,
|
|
247
|
+
Breadcrumb: () => Breadcrumb_default,
|
|
248
|
+
BreadcrumbItem: () => BreadcrumbItem_default,
|
|
249
|
+
Card: () => Card_default,
|
|
250
|
+
CheckBox: () => CheckBox_default,
|
|
251
|
+
CheckBoxList: () => CheckBoxList_default,
|
|
252
|
+
Chip: () => Chip_default,
|
|
253
|
+
CircularProgress: () => CircularProgress_default,
|
|
254
|
+
Container: () => Container_default,
|
|
255
|
+
DatePicker: () => DatePicker_default,
|
|
256
|
+
Dropdown: () => Dropdown_default,
|
|
257
|
+
IconButton: () => IconButton_default,
|
|
258
|
+
Link: () => Link_default,
|
|
259
|
+
MenuItem: () => MenuItem_default,
|
|
260
|
+
Modal: () => Modal_default,
|
|
261
|
+
Paper: () => Paper_default,
|
|
262
|
+
Progress: () => Progress_default,
|
|
263
|
+
RadioButton: () => RadioButton_default,
|
|
264
|
+
RadioList: () => RadioList_default,
|
|
265
|
+
SWAPExpenseTypes: () => SWAPExpenseTypes,
|
|
266
|
+
SWAPIncomeTypes: () => SWAPIncomeTypes,
|
|
267
|
+
SWAPLogo: () => SWAPLogo_default,
|
|
268
|
+
SWAPShare: () => SWAPShare_default,
|
|
269
|
+
SWAPTaxDescription: () => SWAPTaxDescription,
|
|
270
|
+
SWAPTaxExpenseLabel: () => SWAPTaxExpenseLabel,
|
|
271
|
+
SWAPTaxIncomeLabel: () => SWAPTaxIncomeLabel,
|
|
272
|
+
SWAPThemeProvider: () => SWAPThemeProvider,
|
|
273
|
+
SWAP_UI_VERSION: () => SWAP_UI_VERSION,
|
|
274
|
+
SegmentedTab: () => SegmentedTab_default,
|
|
275
|
+
SegmentedTabs: () => SegmentedTabs_default,
|
|
276
|
+
Select: () => Select_default,
|
|
277
|
+
Snackbar: () => Snackbar_default,
|
|
278
|
+
Switch: () => Switch_default,
|
|
279
|
+
Tab: () => Tab_default,
|
|
280
|
+
TabPanel: () => TabPanel_default,
|
|
281
|
+
Tabs: () => Tabs_default,
|
|
282
|
+
TaxTextField: () => TaxTextField_default,
|
|
283
|
+
TextField: () => TextField_default,
|
|
284
|
+
Tooltip: () => Tooltip_default,
|
|
285
|
+
Typography: () => Typography_default,
|
|
286
|
+
createSwapTheme: () => createSwapTheme,
|
|
287
|
+
swapBreakpoints: () => swapBreakpoints,
|
|
288
|
+
swapColors: () => swapColors,
|
|
289
|
+
swapFontFamily: () => swapFontFamily,
|
|
290
|
+
swapRadius: () => swapRadius,
|
|
291
|
+
swapShadows: () => swapShadows,
|
|
292
|
+
useBreakpoints: () => useBreakpoints
|
|
293
|
+
});
|
|
294
|
+
module.exports = __toCommonJS(index_exports);
|
|
295
|
+
|
|
296
|
+
// src/theme/SWAPThemeProvider.tsx
|
|
297
|
+
var import_styles2 = require("@mui/material/styles");
|
|
298
|
+
var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"), 1);
|
|
299
|
+
|
|
300
|
+
// src/theme/createSwapTheme.ts
|
|
301
|
+
var import_styles = require("@mui/material/styles");
|
|
302
|
+
|
|
303
|
+
// node_modules/@mui/utils/deepmerge/deepmerge.mjs
|
|
304
|
+
var React = __toESM(require("react"), 1);
|
|
305
|
+
var import_react_is = __toESM(require_react_is(), 1);
|
|
306
|
+
function isPlainObject(item) {
|
|
307
|
+
if (typeof item !== "object" || item === null) {
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
const prototype = Object.getPrototypeOf(item);
|
|
311
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
|
|
312
|
+
}
|
|
313
|
+
function deepClone(source) {
|
|
314
|
+
if (/* @__PURE__ */ React.isValidElement(source) || (0, import_react_is.isValidElementType)(source) || !isPlainObject(source)) {
|
|
315
|
+
return source;
|
|
316
|
+
}
|
|
317
|
+
const output = {};
|
|
318
|
+
Object.keys(source).forEach((key) => {
|
|
319
|
+
output[key] = deepClone(source[key]);
|
|
320
|
+
});
|
|
321
|
+
return output;
|
|
322
|
+
}
|
|
323
|
+
function deepmerge(target, source, options = {
|
|
324
|
+
clone: true
|
|
325
|
+
}) {
|
|
326
|
+
const output = options.clone ? {
|
|
327
|
+
...target
|
|
328
|
+
} : target;
|
|
329
|
+
if (isPlainObject(target) && isPlainObject(source)) {
|
|
330
|
+
Object.keys(source).forEach((key) => {
|
|
331
|
+
if (/* @__PURE__ */ React.isValidElement(source[key]) || (0, import_react_is.isValidElementType)(source[key])) {
|
|
332
|
+
output[key] = source[key];
|
|
333
|
+
} else if (isPlainObject(source[key]) && // Avoid prototype pollution
|
|
334
|
+
Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
|
|
335
|
+
output[key] = deepmerge(target[key], source[key], options);
|
|
336
|
+
} else if (options.clone) {
|
|
337
|
+
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
|
|
338
|
+
} else {
|
|
339
|
+
output[key] = source[key];
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
return output;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// src/theme/tokens.ts
|
|
347
|
+
var swapColors = {
|
|
348
|
+
primary: {
|
|
349
|
+
primary50: "#E6E9F8",
|
|
350
|
+
primary100: "#C1C7ED",
|
|
351
|
+
primary200: "#97A3E1",
|
|
352
|
+
primary300: "#6C7FD5",
|
|
353
|
+
primary400: "#4862CC",
|
|
354
|
+
primary500: "#1747C2",
|
|
355
|
+
primary600: "#0F3FB8",
|
|
356
|
+
primary700: "#0035AC",
|
|
357
|
+
primary800: "#1F3C8E",
|
|
358
|
+
primary900: "#002BA1",
|
|
359
|
+
primaryA11y: "#071E60"
|
|
360
|
+
},
|
|
361
|
+
secondary: {
|
|
362
|
+
secondary50: "#FEF8E3",
|
|
363
|
+
secondary100: "#FCECB7",
|
|
364
|
+
secondary200: "#FBDF8A",
|
|
365
|
+
secondary300: "#FAD45C",
|
|
366
|
+
secondary400: "#F9C93F",
|
|
367
|
+
secondary500: "#F8C131",
|
|
368
|
+
secondary600: "#F7B52C",
|
|
369
|
+
secondary700: "#F6A128",
|
|
370
|
+
secondary800: "#F59225",
|
|
371
|
+
secondary900: "#F27521",
|
|
372
|
+
secondaryA11y: "#E5640C"
|
|
373
|
+
},
|
|
374
|
+
danger: {
|
|
375
|
+
danger50: "#FFEBED",
|
|
376
|
+
danger100: "#FFCCD0",
|
|
377
|
+
danger200: "#F99894",
|
|
378
|
+
danger300: "#F26E6A",
|
|
379
|
+
danger400: "#FC4A43",
|
|
380
|
+
danger500: "#FF3622",
|
|
381
|
+
danger600: "#F32A23",
|
|
382
|
+
danger700: "#E11C1E",
|
|
383
|
+
danger800: "#D40F14",
|
|
384
|
+
danger900: "#C60003",
|
|
385
|
+
dangerA11y: "#A80003"
|
|
386
|
+
},
|
|
387
|
+
success: {
|
|
388
|
+
success50: "#E6F6E8",
|
|
389
|
+
success100: "#C3E8C6",
|
|
390
|
+
success200: "#9BD9A1",
|
|
391
|
+
success300: "#70CB7A",
|
|
392
|
+
success400: "#4CC05D",
|
|
393
|
+
success500: "#1EB43F",
|
|
394
|
+
success600: "#10A535",
|
|
395
|
+
success700: "#00932A",
|
|
396
|
+
success800: "#00821E",
|
|
397
|
+
success900: "#006305",
|
|
398
|
+
successA11y: "#015C16"
|
|
399
|
+
},
|
|
400
|
+
black: {
|
|
401
|
+
white: "#FFFFFF",
|
|
402
|
+
black100: "#F9F9F9",
|
|
403
|
+
black200: "#F6F6F6",
|
|
404
|
+
black300: "#F2F2F2",
|
|
405
|
+
black400: "#ECECEC",
|
|
406
|
+
black500: "#CCCCCC",
|
|
407
|
+
black600: "#909090",
|
|
408
|
+
black700: "#6F6F6F",
|
|
409
|
+
black800: "#4B4B4B",
|
|
410
|
+
black900: "#2D2D2D",
|
|
411
|
+
black1000: "#000000"
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
var swapRadius = {
|
|
415
|
+
s: "4px",
|
|
416
|
+
m: "8px",
|
|
417
|
+
l: "12px",
|
|
418
|
+
xl: "20px"
|
|
419
|
+
};
|
|
420
|
+
var swapShadows = {
|
|
421
|
+
s: "0px 2px 4px rgba(0, 0, 0, 0.12)",
|
|
422
|
+
m: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
423
|
+
l: "0px 6px 24px rgba(0, 0, 0, 0.1)",
|
|
424
|
+
xl: "0px 8px 40px rgba(0, 0, 0, 0.12)"
|
|
425
|
+
};
|
|
426
|
+
var swapBreakpoints = {
|
|
427
|
+
xxs: 0,
|
|
428
|
+
xs: 375,
|
|
429
|
+
sm: 576,
|
|
430
|
+
md: 768,
|
|
431
|
+
lg: 992,
|
|
432
|
+
xl: 1200,
|
|
433
|
+
xxl: 1400
|
|
434
|
+
};
|
|
435
|
+
var swapFontFamily = ['"M PLUS Rounded 1c"', '"Noto Sans TC"', "sans-serif"].join(", ");
|
|
436
|
+
|
|
437
|
+
// src/theme/button.styles.ts
|
|
438
|
+
var c = swapColors;
|
|
439
|
+
var buttonRootStyles = {
|
|
440
|
+
textTransform: "unset",
|
|
441
|
+
borderRadius: "8px",
|
|
442
|
+
fontWeight: 700,
|
|
443
|
+
lineHeight: 1.125,
|
|
444
|
+
whiteSpace: "nowrap"
|
|
445
|
+
// v1 將 children 包 nowrap 容器:按鈕文字不換行
|
|
446
|
+
};
|
|
447
|
+
var variantColor = [
|
|
448
|
+
{
|
|
449
|
+
variant: "primary",
|
|
450
|
+
color: c.black.white,
|
|
451
|
+
backgroundColor: c.primary.primary400,
|
|
452
|
+
border: `1px solid ${c.primary.primary600}`,
|
|
453
|
+
hoverBg: c.primary.primary300,
|
|
454
|
+
activeBg: c.primary.primary500,
|
|
455
|
+
focusShadow: "0px 0px 0px 4px #D7DFF8"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
variant: "secondary",
|
|
459
|
+
color: c.primary.primary400,
|
|
460
|
+
backgroundColor: c.black.white,
|
|
461
|
+
border: `1px solid ${c.primary.primary400}`,
|
|
462
|
+
hoverBg: c.primary.primary50,
|
|
463
|
+
activeBg: c.primary.primary100,
|
|
464
|
+
focusShadow: "0px 0px 0px 4px #D7DFF8"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
variant: "tertiary",
|
|
468
|
+
color: c.black.black800,
|
|
469
|
+
backgroundColor: c.black.black400,
|
|
470
|
+
border: "none",
|
|
471
|
+
hoverBg: c.black.black500,
|
|
472
|
+
activeBg: c.black.black600,
|
|
473
|
+
focusShadow: "0px 0px 0px 4px rgba(0, 0, 0, 0.1)"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
variant: "text",
|
|
477
|
+
color: c.primary.primary400,
|
|
478
|
+
backgroundColor: c.black.white,
|
|
479
|
+
border: "none",
|
|
480
|
+
hoverBg: c.primary.primary50,
|
|
481
|
+
activeBg: c.primary.primary100,
|
|
482
|
+
focusShadow: "0px 0px 0px 4px #D7DFF8"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
variant: "black",
|
|
486
|
+
color: c.black.black800,
|
|
487
|
+
backgroundColor: c.black.white,
|
|
488
|
+
border: "none",
|
|
489
|
+
hoverBg: c.black.black400,
|
|
490
|
+
activeBg: c.black.black500,
|
|
491
|
+
focusShadow: "0px 0px 0px 4px #CCCCCC"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
variant: "danger",
|
|
495
|
+
color: c.black.white,
|
|
496
|
+
backgroundColor: c.danger.danger800,
|
|
497
|
+
border: `1px solid ${c.danger.dangerA11y}`,
|
|
498
|
+
hoverBg: c.danger.danger600,
|
|
499
|
+
activeBg: c.danger.danger900,
|
|
500
|
+
focusShadow: "0px 0px 0px 4px #FFCCD0"
|
|
501
|
+
}
|
|
502
|
+
];
|
|
503
|
+
var sizeStyle = [
|
|
504
|
+
{ size: "small", height: "40px", padding: "12px 16px", fontSize: 14 },
|
|
505
|
+
{ size: "medium", height: "48px", padding: "15px 24px", fontSize: 16 },
|
|
506
|
+
{ size: "large", height: "56px", padding: "19px 32px", fontSize: 16 }
|
|
507
|
+
];
|
|
508
|
+
var buttonVariants = [
|
|
509
|
+
...variantColor.map((v) => ({
|
|
510
|
+
props: { variant: v.variant },
|
|
511
|
+
style: {
|
|
512
|
+
color: v.color,
|
|
513
|
+
backgroundColor: v.backgroundColor,
|
|
514
|
+
border: v.border,
|
|
515
|
+
"&:hover": { backgroundColor: v.hoverBg },
|
|
516
|
+
"&:active": { backgroundColor: v.activeBg },
|
|
517
|
+
"&:focus-visible": { boxShadow: v.focusShadow },
|
|
518
|
+
// 只夾透明度:文字色/底色由 root 提供,覆蓋會擋掉 MUI loading 時隱藏文字的機制
|
|
519
|
+
"&:disabled": { opacity: 0.4 },
|
|
520
|
+
// loading spinner 顏色跟隨 variant 文字色(否則 MUI 預設灰 rgba(0,0,0,0.26) 幾乎隱形)
|
|
521
|
+
"& .MuiButton-loadingIndicator": { color: v.color }
|
|
522
|
+
}
|
|
523
|
+
})),
|
|
524
|
+
...sizeStyle.map((s) => ({
|
|
525
|
+
props: { size: s.size },
|
|
526
|
+
style: { height: s.height, padding: s.padding, fontSize: s.fontSize }
|
|
527
|
+
}))
|
|
528
|
+
];
|
|
529
|
+
|
|
530
|
+
// src/theme/typography.styles.ts
|
|
531
|
+
var FONT_SIZE = {
|
|
532
|
+
d1: "4.5rem",
|
|
533
|
+
d2: "4rem",
|
|
534
|
+
d3: "3.5rem",
|
|
535
|
+
d4: "3rem",
|
|
536
|
+
h1: "2.5rem",
|
|
537
|
+
h2: "2rem",
|
|
538
|
+
h3: "1.75rem",
|
|
539
|
+
h4: "1.5rem",
|
|
540
|
+
h5: "1.25rem",
|
|
541
|
+
h6: "1.125rem",
|
|
542
|
+
title: "1rem",
|
|
543
|
+
subtitle: "0.875rem",
|
|
544
|
+
body1: "1rem",
|
|
545
|
+
body2: "0.875rem",
|
|
546
|
+
caption1: "0.75rem",
|
|
547
|
+
caption2: "0.75rem",
|
|
548
|
+
small1: "0.6875rem",
|
|
549
|
+
small2: "0.6875rem",
|
|
550
|
+
tiny1: "0.625rem",
|
|
551
|
+
tiny2: "0.625rem",
|
|
552
|
+
button_l: "1rem",
|
|
553
|
+
button_s: "0.875rem"
|
|
554
|
+
};
|
|
555
|
+
var LOOSE_BASES = [
|
|
556
|
+
"title",
|
|
557
|
+
"subtitle",
|
|
558
|
+
"body1",
|
|
559
|
+
"body2",
|
|
560
|
+
"caption1",
|
|
561
|
+
"caption2",
|
|
562
|
+
"small1",
|
|
563
|
+
"small2",
|
|
564
|
+
"tiny1",
|
|
565
|
+
"tiny2"
|
|
566
|
+
];
|
|
567
|
+
var WEIGHT_400 = /* @__PURE__ */ new Set(["body1", "body2", "caption2", "small2", "tiny2"]);
|
|
568
|
+
var LH_125 = /* @__PURE__ */ new Set(["d1", "d2", "d3", "h1", "h2", "h3"]);
|
|
569
|
+
var LH_1125 = /* @__PURE__ */ new Set(["button_l", "button_s"]);
|
|
570
|
+
function baseName(variant) {
|
|
571
|
+
return variant.endsWith("_loose") ? variant.slice(0, -"_loose".length) : variant;
|
|
572
|
+
}
|
|
573
|
+
function weightOf(variant) {
|
|
574
|
+
return WEIGHT_400.has(baseName(variant)) ? 400 : 700;
|
|
575
|
+
}
|
|
576
|
+
function lineHeightOf(variant) {
|
|
577
|
+
if (variant.endsWith("_loose")) return 1.6;
|
|
578
|
+
if (LH_125.has(variant)) return 1.25;
|
|
579
|
+
if (LH_1125.has(variant)) return 1.125;
|
|
580
|
+
return 1.4;
|
|
581
|
+
}
|
|
582
|
+
var ALL_VARIANTS = [
|
|
583
|
+
"d1",
|
|
584
|
+
"d2",
|
|
585
|
+
"d3",
|
|
586
|
+
"d4",
|
|
587
|
+
"h1",
|
|
588
|
+
"h2",
|
|
589
|
+
"h3",
|
|
590
|
+
"h4",
|
|
591
|
+
"h5",
|
|
592
|
+
"h6",
|
|
593
|
+
...Object.keys(FONT_SIZE).filter((k) => !/^d\d|^h\d/.test(k)),
|
|
594
|
+
...LOOSE_BASES.map((b) => `${b}_loose`)
|
|
595
|
+
];
|
|
596
|
+
var SWAP_TYPOGRAPHY_VARIANTS = Array.from(new Set(ALL_VARIANTS));
|
|
597
|
+
var swapTypographyVariants = Object.fromEntries(
|
|
598
|
+
SWAP_TYPOGRAPHY_VARIANTS.map((v) => [
|
|
599
|
+
v,
|
|
600
|
+
{
|
|
601
|
+
fontSize: FONT_SIZE[baseName(v)],
|
|
602
|
+
fontWeight: weightOf(v),
|
|
603
|
+
lineHeight: lineHeightOf(v),
|
|
604
|
+
letterSpacing: "0em"
|
|
605
|
+
}
|
|
606
|
+
])
|
|
607
|
+
);
|
|
608
|
+
var swapTypographyVariantMapping = Object.fromEntries(
|
|
609
|
+
SWAP_TYPOGRAPHY_VARIANTS.map((v) => {
|
|
610
|
+
if (/^h[1-6]$/.test(v)) return [v, v];
|
|
611
|
+
if (/^d[1-4]$/.test(v)) return [v, "h1"];
|
|
612
|
+
if (v.startsWith("button")) return [v, "span"];
|
|
613
|
+
return [v, "p"];
|
|
614
|
+
})
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
// src/theme/createSwapTheme.ts
|
|
618
|
+
var c2 = swapColors;
|
|
619
|
+
function createSwapTheme(options) {
|
|
620
|
+
const base = {
|
|
621
|
+
cssVariables: true,
|
|
622
|
+
palette: {
|
|
623
|
+
primary: { main: c2.primary.primary400 },
|
|
624
|
+
error: { main: c2.danger.danger800 },
|
|
625
|
+
success: { main: c2.success.success500 },
|
|
626
|
+
warning: { main: c2.secondary.secondary500 },
|
|
627
|
+
swap: c2
|
|
628
|
+
},
|
|
629
|
+
breakpoints: {
|
|
630
|
+
values: {
|
|
631
|
+
xxs: swapBreakpoints.xxs,
|
|
632
|
+
xs: swapBreakpoints.xs,
|
|
633
|
+
sm: swapBreakpoints.sm,
|
|
634
|
+
md: swapBreakpoints.md,
|
|
635
|
+
lg: swapBreakpoints.lg,
|
|
636
|
+
xl: swapBreakpoints.xl,
|
|
637
|
+
xxl: swapBreakpoints.xxl
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
shape: { borderRadius: 8 },
|
|
641
|
+
typography: { fontFamily: swapFontFamily, ...swapTypographyVariants },
|
|
642
|
+
components: {
|
|
643
|
+
MuiTypography: {
|
|
644
|
+
defaultProps: { variantMapping: swapTypographyVariantMapping }
|
|
645
|
+
},
|
|
646
|
+
MuiSkeleton: {
|
|
647
|
+
styleOverrides: {
|
|
648
|
+
root: { backgroundColor: c2.black.black400, transform: "unset" }
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
MuiPagination: {
|
|
652
|
+
defaultProps: { shape: "rounded", variant: "outlined" }
|
|
653
|
+
},
|
|
654
|
+
MuiPaginationItem: {
|
|
655
|
+
styleOverrides: {
|
|
656
|
+
root: {
|
|
657
|
+
minWidth: 24,
|
|
658
|
+
width: 24,
|
|
659
|
+
height: 24,
|
|
660
|
+
borderRadius: "5px",
|
|
661
|
+
borderColor: c2.black.black500,
|
|
662
|
+
color: c2.black.black800,
|
|
663
|
+
padding: 0,
|
|
664
|
+
margin: "0px 2px",
|
|
665
|
+
fontSize: 11,
|
|
666
|
+
fontWeight: 700,
|
|
667
|
+
lineHeight: 1.4,
|
|
668
|
+
transition: "color 250ms, background-color 250ms",
|
|
669
|
+
"&:hover": {
|
|
670
|
+
borderColor: c2.black.black800,
|
|
671
|
+
backgroundColor: c2.black.white
|
|
672
|
+
},
|
|
673
|
+
"&.Mui-selected": {
|
|
674
|
+
color: c2.black.white,
|
|
675
|
+
backgroundColor: c2.primary.primary400,
|
|
676
|
+
border: "none",
|
|
677
|
+
boxShadow: swapShadows.s,
|
|
678
|
+
"&:hover": { backgroundColor: c2.primary.primary400 }
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
MuiButton: {
|
|
684
|
+
defaultProps: {
|
|
685
|
+
variant: "primary",
|
|
686
|
+
disableElevation: true,
|
|
687
|
+
disableFocusRipple: true
|
|
688
|
+
},
|
|
689
|
+
styleOverrides: {
|
|
690
|
+
root: { ...buttonRootStyles, variants: buttonVariants }
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
MuiCard: {
|
|
694
|
+
styleOverrides: {
|
|
695
|
+
root: { borderRadius: "18px", border: "1px solid rgba(0, 0, 0, 0.13)" }
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
MuiPaper: {
|
|
699
|
+
styleOverrides: {
|
|
700
|
+
root: { border: `1px solid ${c2.black.black500}` },
|
|
701
|
+
rounded: { borderRadius: swapRadius.m },
|
|
702
|
+
elevation8: { boxShadow: swapShadows.m }
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
MuiOutlinedInput: {
|
|
706
|
+
styleOverrides: { root: { borderRadius: swapRadius.m } }
|
|
707
|
+
},
|
|
708
|
+
MuiFormHelperText: {
|
|
709
|
+
styleOverrides: {
|
|
710
|
+
root: {
|
|
711
|
+
marginTop: 4,
|
|
712
|
+
fontSize: 14,
|
|
713
|
+
color: c2.black.black700,
|
|
714
|
+
"&.Mui-error": { color: c2.danger.danger800 }
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
MuiIconButton: {
|
|
719
|
+
styleOverrides: { root: { padding: 0 } }
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
return (0, import_styles.createTheme)(deepmerge(base, options ?? {}));
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// src/theme/SWAPThemeProvider.tsx
|
|
727
|
+
var import__ = require("@fontsource/m-plus-rounded-1c/400.css");
|
|
728
|
+
var import__2 = require("@fontsource/m-plus-rounded-1c/700.css");
|
|
729
|
+
var import__3 = require("@fontsource/noto-sans-tc/400.css");
|
|
730
|
+
var import__4 = require("@fontsource/noto-sans-tc/700.css");
|
|
731
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
732
|
+
var defaultTheme = createSwapTheme();
|
|
733
|
+
var SWAPThemeProvider = ({ theme, children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles2.ThemeProvider, { theme: theme ?? defaultTheme, children: [
|
|
734
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CssBaseline.default, {}),
|
|
735
|
+
children
|
|
736
|
+
] });
|
|
737
|
+
|
|
738
|
+
// src/components/Typography.tsx
|
|
739
|
+
var React2 = __toESM(require("react"), 1);
|
|
740
|
+
var import_Typography = __toESM(require("@mui/material/Typography"), 1);
|
|
741
|
+
|
|
742
|
+
// src/theme/textColor.ts
|
|
743
|
+
var c3 = swapColors;
|
|
744
|
+
var swapTokenMap = {
|
|
745
|
+
...c3.primary,
|
|
746
|
+
...c3.secondary,
|
|
747
|
+
...c3.danger,
|
|
748
|
+
...c3.success,
|
|
749
|
+
...c3.black
|
|
750
|
+
};
|
|
751
|
+
function resolveSwapTextColor(color, mode) {
|
|
752
|
+
const dark = mode === "dark";
|
|
753
|
+
if (color === "primary") return dark ? c3.black.white : c3.black.black1000;
|
|
754
|
+
if (color === "secondary") return dark ? c3.black.black500 : c3.black.black800;
|
|
755
|
+
if (color === "tertiary") return dark ? c3.black.black600 : c3.black.black700;
|
|
756
|
+
if (color && color in swapTokenMap) return swapTokenMap[color];
|
|
757
|
+
return c3.black.black1000;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
// src/components/Typography.tsx
|
|
761
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
762
|
+
var Typography = React2.memo(function Typography2({
|
|
763
|
+
variant = "body1",
|
|
764
|
+
color,
|
|
765
|
+
mode,
|
|
766
|
+
children,
|
|
767
|
+
style
|
|
768
|
+
}) {
|
|
769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Typography.default, { variant, sx: { color: resolveSwapTextColor(color, mode) }, style, children });
|
|
770
|
+
});
|
|
771
|
+
var Typography_default = Typography;
|
|
772
|
+
|
|
773
|
+
// src/components/Chip.tsx
|
|
774
|
+
var React3 = __toESM(require("react"), 1);
|
|
775
|
+
var import_Box = __toESM(require("@mui/material/Box"), 1);
|
|
776
|
+
|
|
777
|
+
// src/utils/cssSize.ts
|
|
778
|
+
function cssSize(v) {
|
|
779
|
+
if (typeof v === "string" && /^\d+(\.\d+)?$/.test(v.trim())) return Number(v);
|
|
780
|
+
return v;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// src/components/Chip.tsx
|
|
784
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
785
|
+
var SHADE = {
|
|
786
|
+
neutral: { fill: swapColors.black.black300, border: swapColors.black.black500, text: swapColors.black.black800 },
|
|
787
|
+
primary: { fill: swapColors.primary.primary50, border: swapColors.primary.primary800, text: swapColors.primary.primary800 },
|
|
788
|
+
success: { fill: swapColors.success.success50, border: swapColors.success.success800, text: swapColors.success.success800 },
|
|
789
|
+
danger: { fill: swapColors.danger.danger50, border: swapColors.danger.danger800, text: swapColors.danger.danger800 }
|
|
790
|
+
};
|
|
791
|
+
var successIcon = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
792
|
+
"path",
|
|
793
|
+
{
|
|
794
|
+
d: "M14 4.66666L6 12.6667L2.33333 9L3.27333 8.06L6 10.78L13.06 3.72666L14 4.66666Z",
|
|
795
|
+
fill: "#00821E"
|
|
796
|
+
}
|
|
797
|
+
) });
|
|
798
|
+
var Chip = React3.forwardRef(function Chip2({ variant = "primary", outlined, contained, width, height, label, icon, sx, ...rest }, ref) {
|
|
799
|
+
const s = SHADE[variant];
|
|
800
|
+
const isOutlined = outlined || !contained;
|
|
801
|
+
const ourStyles = {
|
|
802
|
+
display: "flex",
|
|
803
|
+
alignItems: "center",
|
|
804
|
+
justifyContent: "center",
|
|
805
|
+
borderRadius: "4px",
|
|
806
|
+
fontSize: "0.75rem",
|
|
807
|
+
lineHeight: "17px",
|
|
808
|
+
fontWeight: 700,
|
|
809
|
+
width: cssSize(width) ?? "fit-content",
|
|
810
|
+
height: cssSize(height) ?? 24,
|
|
811
|
+
padding: isOutlined ? "0px 8px" : "0px 9px",
|
|
812
|
+
backgroundColor: isOutlined ? swapColors.black.white : s.fill,
|
|
813
|
+
border: isOutlined ? `1px solid ${s.border}` : "none",
|
|
814
|
+
color: s.text
|
|
815
|
+
};
|
|
816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_Box.default, { ref, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest, children: [
|
|
817
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Box.default, { component: "span", sx: { marginRight: variant === "success" ? "4px" : 0 }, children: label }),
|
|
818
|
+
variant === "success" && !icon ? successIcon : icon
|
|
819
|
+
] });
|
|
820
|
+
});
|
|
821
|
+
var Chip_default = Chip;
|
|
822
|
+
|
|
823
|
+
// src/components/CircularProgress.tsx
|
|
824
|
+
var React4 = __toESM(require("react"), 1);
|
|
825
|
+
var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"), 1);
|
|
826
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
827
|
+
var CircularProgress = React4.forwardRef(
|
|
828
|
+
function CircularProgress2({ dark, size = 20, thickness = 5, style, ...rest }, ref) {
|
|
829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ref, style: { position: "relative", width: cssSize(size), height: cssSize(size), ...style }, ...rest, children: [
|
|
830
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
831
|
+
import_CircularProgress.default,
|
|
832
|
+
{
|
|
833
|
+
variant: "determinate",
|
|
834
|
+
value: 100,
|
|
835
|
+
size,
|
|
836
|
+
thickness,
|
|
837
|
+
style: {
|
|
838
|
+
position: "absolute",
|
|
839
|
+
left: 0,
|
|
840
|
+
top: 0,
|
|
841
|
+
color: dark ? swapColors.black.white : swapColors.black.black500,
|
|
842
|
+
opacity: dark ? 0.4 : 1
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
),
|
|
846
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
847
|
+
import_CircularProgress.default,
|
|
848
|
+
{
|
|
849
|
+
variant: "indeterminate",
|
|
850
|
+
size,
|
|
851
|
+
thickness,
|
|
852
|
+
style: {
|
|
853
|
+
position: "absolute",
|
|
854
|
+
left: 0,
|
|
855
|
+
top: 0,
|
|
856
|
+
color: dark ? swapColors.black.white : swapColors.primary.primary800
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
)
|
|
860
|
+
] });
|
|
861
|
+
}
|
|
862
|
+
);
|
|
863
|
+
var CircularProgress_default = CircularProgress;
|
|
864
|
+
|
|
865
|
+
// src/components/Tooltip.tsx
|
|
866
|
+
var import_Tooltip = __toESM(require("@mui/material/Tooltip"), 1);
|
|
867
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
868
|
+
function resolveMargin(p) {
|
|
869
|
+
if (p.margin) return p.margin;
|
|
870
|
+
if (p.marginTop) return `0px 0px ${p.marginTop}px 0px`;
|
|
871
|
+
if (p.marginBottom) return `${p.marginBottom}px 0px 0px 0px`;
|
|
872
|
+
if (p.marginRight) return `0px 0px 0px ${p.marginRight}px`;
|
|
873
|
+
if (p.marginLeft) return `0px ${p.marginLeft}px 0px 0px`;
|
|
874
|
+
return "10px 0px";
|
|
875
|
+
}
|
|
876
|
+
var Tooltip = (props) => {
|
|
877
|
+
const {
|
|
878
|
+
dark,
|
|
879
|
+
light,
|
|
880
|
+
arrow,
|
|
881
|
+
margin,
|
|
882
|
+
marginTop,
|
|
883
|
+
marginBottom,
|
|
884
|
+
marginRight,
|
|
885
|
+
marginLeft,
|
|
886
|
+
width = 240,
|
|
887
|
+
children,
|
|
888
|
+
childrenStyle,
|
|
889
|
+
slotProps: userSlotProps,
|
|
890
|
+
...other
|
|
891
|
+
} = props;
|
|
892
|
+
const bg = light ? swapColors.black.white : swapColors.black.black900;
|
|
893
|
+
const fg = light ? swapColors.black.black800 : swapColors.black.white;
|
|
894
|
+
const ourTooltipSx = {
|
|
895
|
+
margin: resolveMargin(props),
|
|
896
|
+
backgroundColor: bg,
|
|
897
|
+
color: fg,
|
|
898
|
+
padding: arrow ? "7.5px 12px" : "12px",
|
|
899
|
+
boxShadow: swapShadows.m,
|
|
900
|
+
border: light ? `1px solid ${swapColors.black.black500}` : "none",
|
|
901
|
+
maxWidth: cssSize(width),
|
|
902
|
+
fontSize: 12,
|
|
903
|
+
lineHeight: 1.4,
|
|
904
|
+
fontWeight: arrow ? 700 : 400
|
|
905
|
+
};
|
|
906
|
+
const us = userSlotProps ?? {};
|
|
907
|
+
const asArr = (v) => Array.isArray(v) ? v : v ? [v] : [];
|
|
908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
909
|
+
import_Tooltip.default,
|
|
910
|
+
{
|
|
911
|
+
...other,
|
|
912
|
+
arrow,
|
|
913
|
+
slotProps: {
|
|
914
|
+
...us,
|
|
915
|
+
tooltip: { ...us.tooltip, sx: [ourTooltipSx, ...asArr(us.tooltip?.sx)] },
|
|
916
|
+
arrow: { ...us.arrow, sx: [{ color: bg }, ...asArr(us.arrow?.sx)] }
|
|
917
|
+
},
|
|
918
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
919
|
+
"span",
|
|
920
|
+
{
|
|
921
|
+
style: {
|
|
922
|
+
width: "fit-content",
|
|
923
|
+
height: "fit-content",
|
|
924
|
+
display: "inline-flex",
|
|
925
|
+
alignItems: "center",
|
|
926
|
+
justifyContent: "center",
|
|
927
|
+
...childrenStyle
|
|
928
|
+
},
|
|
929
|
+
children
|
|
930
|
+
}
|
|
931
|
+
)
|
|
932
|
+
}
|
|
933
|
+
);
|
|
934
|
+
};
|
|
935
|
+
var Tooltip_default = Tooltip;
|
|
936
|
+
|
|
937
|
+
// src/components/Container.tsx
|
|
938
|
+
var React5 = __toESM(require("react"), 1);
|
|
939
|
+
var import_Box2 = __toESM(require("@mui/material/Box"), 1);
|
|
940
|
+
var import_useMediaQuery = __toESM(require("@mui/material/useMediaQuery"), 1);
|
|
941
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
942
|
+
var MAXW = { lg: 960, xl: 1140, xxl: 1320 };
|
|
943
|
+
var PAD = { xxs: "0px 8px", xs: "0px 16px", sm: "0px 24px", md: "0px 24px" };
|
|
944
|
+
var Container = React5.forwardRef(function Container2({ children, maxWidth, padding, sx, ...rest }, ref) {
|
|
945
|
+
const upXXL = (0, import_useMediaQuery.default)(`(min-width:${swapBreakpoints.xxl}px)`);
|
|
946
|
+
const upXL = (0, import_useMediaQuery.default)(`(min-width:${swapBreakpoints.xl}px)`);
|
|
947
|
+
const upLG = (0, import_useMediaQuery.default)(`(min-width:${swapBreakpoints.lg}px)`);
|
|
948
|
+
const upMD = (0, import_useMediaQuery.default)(`(min-width:${swapBreakpoints.md}px)`);
|
|
949
|
+
const upSM = (0, import_useMediaQuery.default)(`(min-width:${swapBreakpoints.sm}px)`);
|
|
950
|
+
const upXS = (0, import_useMediaQuery.default)(`(min-width:${swapBreakpoints.xs}px)`);
|
|
951
|
+
const resolvedMaxWidth = typeof maxWidth === "number" ? maxWidth : maxWidth ? MAXW[maxWidth] : upXXL ? 1320 : upXL ? 1140 : upLG ? 960 : void 0;
|
|
952
|
+
const resolvedPadding = typeof padding === "number" ? padding : padding ? PAD[padding] : upXXL || upXL || upLG ? "0px 0px" : upMD || upSM ? "0px 24px" : upXS ? "0px 16px" : "0px 8px";
|
|
953
|
+
const ourStyles = {
|
|
954
|
+
marginLeft: "auto",
|
|
955
|
+
marginRight: "auto",
|
|
956
|
+
width: "100%",
|
|
957
|
+
maxWidth: resolvedMaxWidth,
|
|
958
|
+
padding: resolvedPadding
|
|
959
|
+
};
|
|
960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_Box2.default, { ref, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest, children });
|
|
961
|
+
});
|
|
962
|
+
var Container_default = Container;
|
|
963
|
+
|
|
964
|
+
// src/components/Paper.tsx
|
|
965
|
+
var React6 = __toESM(require("react"), 1);
|
|
966
|
+
var import_Paper = __toESM(require("@mui/material/Paper"), 1);
|
|
967
|
+
var import_useMediaQuery2 = __toESM(require("@mui/material/useMediaQuery"), 1);
|
|
968
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
969
|
+
var Paper = React6.forwardRef(function Paper2({ width, height, sx, ...rest }, ref) {
|
|
970
|
+
const upSM = (0, import_useMediaQuery2.default)(`(min-width:${swapBreakpoints.sm}px)`);
|
|
971
|
+
const upXS = (0, import_useMediaQuery2.default)(`(min-width:${swapBreakpoints.xs}px)`);
|
|
972
|
+
const padding = upSM ? 40 : upXS ? 24 : 16;
|
|
973
|
+
const ourStyles = {
|
|
974
|
+
boxShadow: swapShadows.xl,
|
|
975
|
+
borderRadius: "12px",
|
|
976
|
+
border: `1px solid ${swapColors.black.black500}`,
|
|
977
|
+
width: cssSize(width) ?? "100%",
|
|
978
|
+
height: cssSize(height) ?? "100%",
|
|
979
|
+
padding: `${padding}px`
|
|
980
|
+
};
|
|
981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
982
|
+
import_Paper.default,
|
|
983
|
+
{
|
|
984
|
+
ref,
|
|
985
|
+
variant: "outlined",
|
|
986
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
987
|
+
...rest
|
|
988
|
+
}
|
|
989
|
+
);
|
|
990
|
+
});
|
|
991
|
+
var Paper_default = Paper;
|
|
992
|
+
|
|
993
|
+
// src/components/Link.tsx
|
|
994
|
+
var React7 = __toESM(require("react"), 1);
|
|
995
|
+
var import_Link = __toESM(require("@mui/material/Link"), 1);
|
|
996
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
997
|
+
var Link = React7.forwardRef(function Link2({ color, sx, ...rest }, ref) {
|
|
998
|
+
const ourStyles = {
|
|
999
|
+
cursor: "pointer",
|
|
1000
|
+
color: color && swapTokenMap[color] || swapColors.black.black1000,
|
|
1001
|
+
fontWeight: 700,
|
|
1002
|
+
borderRadius: "4px",
|
|
1003
|
+
lineHeight: 1.4,
|
|
1004
|
+
outline: "none",
|
|
1005
|
+
boxSizing: "border-box",
|
|
1006
|
+
"&:focus-visible": {
|
|
1007
|
+
padding: "8px",
|
|
1008
|
+
border: `1px solid ${swapColors.primary.primary400}`
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1012
|
+
import_Link.default,
|
|
1013
|
+
{
|
|
1014
|
+
ref,
|
|
1015
|
+
underline: "hover",
|
|
1016
|
+
tabIndex: 0,
|
|
1017
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1018
|
+
...rest
|
|
1019
|
+
}
|
|
1020
|
+
);
|
|
1021
|
+
});
|
|
1022
|
+
var Link_default = Link;
|
|
1023
|
+
|
|
1024
|
+
// src/components/IconButton.tsx
|
|
1025
|
+
var React8 = __toESM(require("react"), 1);
|
|
1026
|
+
var import_IconButton = __toESM(require("@mui/material/IconButton"), 1);
|
|
1027
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1028
|
+
var resolve = (v) => v ? swapTokenMap[v] ?? v : void 0;
|
|
1029
|
+
var IconButton = React8.forwardRef(function IconButton2({ width = 32, height = 32, hoverColor, hoverIconColor, sx, ...rest }, ref) {
|
|
1030
|
+
const hoverBg = resolve(hoverColor) ?? swapColors.black.black400;
|
|
1031
|
+
const hoverFill = resolve(hoverIconColor);
|
|
1032
|
+
const ourStyles = {
|
|
1033
|
+
width: cssSize(width),
|
|
1034
|
+
height: cssSize(height),
|
|
1035
|
+
borderRadius: "8px",
|
|
1036
|
+
"&:hover": {
|
|
1037
|
+
backgroundColor: hoverBg,
|
|
1038
|
+
...hoverFill ? { "& svg path": { fill: hoverFill } } : {}
|
|
1039
|
+
}
|
|
1040
|
+
};
|
|
1041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_IconButton.default, { ref, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest });
|
|
1042
|
+
});
|
|
1043
|
+
var IconButton_default = IconButton;
|
|
1044
|
+
|
|
1045
|
+
// src/components/Breadcrumb.tsx
|
|
1046
|
+
var React9 = __toESM(require("react"), 1);
|
|
1047
|
+
var import_Menu = __toESM(require("@mui/material/Menu"), 1);
|
|
1048
|
+
var import_MenuItem = __toESM(require("@mui/material/MenuItem"), 1);
|
|
1049
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1050
|
+
var Sep = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Typography_default, { variant: "body2", style: { margin: "0 8px" }, children });
|
|
1051
|
+
var dotsPath = "M1.946 16.182C2.45 16.182 2.87 15.79 2.87 15.216C2.87 14.642 2.45 14.222 1.946 14.222C1.442 14.222 1.022 14.642 1.022 15.216C1.022 15.79 1.442 16.182 1.946 16.182ZM5.84248 16.182C6.34648 16.182 6.76648 15.79 6.76648 15.216C6.76648 14.642 6.34648 14.222 5.84248 14.222C5.33848 14.222 4.91848 14.642 4.91848 15.216C4.91848 15.79 5.33848 16.182 5.84248 16.182ZM9.73897 16.182C10.243 16.182 10.663 15.79 10.663 15.216C10.663 14.642 10.243 14.222 9.73897 14.222C9.23497 14.222 8.81497 14.642 8.81497 15.216C8.81497 15.79 9.23497 16.182 9.73897 16.182Z";
|
|
1052
|
+
var ThreeDots = ({ hover }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("svg", { width: "12", height: "20", viewBox: "0 0 12 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1053
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { d: dotsPath, fill: "#4B4B4B" }),
|
|
1054
|
+
hover && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { d: "M0 18.1H11.685V18.8H0V18.1Z", fill: "#4B4B4B" })
|
|
1055
|
+
] });
|
|
1056
|
+
var Breadcrumb = React9.forwardRef(function Breadcrumb2({ maxItems, separator = "/", children, style, ...rest }, ref) {
|
|
1057
|
+
const [anchorEl, setAnchorEl] = React9.useState(null);
|
|
1058
|
+
const [hoverDots, setHoverDots] = React9.useState(false);
|
|
1059
|
+
const items = React9.Children.toArray(children);
|
|
1060
|
+
const collapsed = !!maxItems && items.length > maxItems;
|
|
1061
|
+
const tail = collapsed ? items.slice(items.length - maxItems + 1) : items;
|
|
1062
|
+
const hidden = collapsed ? items.slice(1, items.length - maxItems + 1) : [];
|
|
1063
|
+
const row = (node, isLast, key) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1064
|
+
"div",
|
|
1065
|
+
{
|
|
1066
|
+
style: { display: "flex", alignItems: "center", fontSize: 14, fontWeight: isLast ? 700 : 400 },
|
|
1067
|
+
children: [
|
|
1068
|
+
node,
|
|
1069
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Sep, { children: separator })
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
key
|
|
1073
|
+
);
|
|
1074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { ref, style: { display: "flex", alignItems: "center", ...style }, ...rest, children: [
|
|
1075
|
+
collapsed ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
|
|
1076
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { style: { display: "flex", alignItems: "center", fontSize: 14 }, children: [
|
|
1077
|
+
items[0],
|
|
1078
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Sep, { children: separator }),
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1080
|
+
"div",
|
|
1081
|
+
{
|
|
1082
|
+
"data-testid": "breadcrumb-ellipsis",
|
|
1083
|
+
onClick: (e) => setAnchorEl(e.currentTarget),
|
|
1084
|
+
onMouseEnter: () => setHoverDots(true),
|
|
1085
|
+
onMouseLeave: () => setHoverDots(false),
|
|
1086
|
+
style: { cursor: "pointer" },
|
|
1087
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ThreeDots, { hover: hoverDots })
|
|
1088
|
+
}
|
|
1089
|
+
),
|
|
1090
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Sep, { children: separator })
|
|
1091
|
+
] }),
|
|
1092
|
+
tail.map((node, i) => row(node, i === tail.length - 1, i))
|
|
1093
|
+
] }) : items.map((node, i) => row(node, i === items.length - 1, i)),
|
|
1094
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Menu.default, { anchorEl, open: Boolean(anchorEl), onClose: () => setAnchorEl(null), children: hidden.map((node, i) => {
|
|
1095
|
+
const el = node;
|
|
1096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1097
|
+
import_MenuItem.default,
|
|
1098
|
+
{
|
|
1099
|
+
onClick: () => {
|
|
1100
|
+
const { href, target } = el.props;
|
|
1101
|
+
if (href) {
|
|
1102
|
+
if (target === "_blank") window.open(href);
|
|
1103
|
+
else window.location.href = href;
|
|
1104
|
+
}
|
|
1105
|
+
setAnchorEl(null);
|
|
1106
|
+
},
|
|
1107
|
+
children: el.props.children
|
|
1108
|
+
},
|
|
1109
|
+
i
|
|
1110
|
+
);
|
|
1111
|
+
}) })
|
|
1112
|
+
] });
|
|
1113
|
+
});
|
|
1114
|
+
var Breadcrumb_default = Breadcrumb;
|
|
1115
|
+
|
|
1116
|
+
// src/components/BreadcrumbItem.tsx
|
|
1117
|
+
var React10 = __toESM(require("react"), 1);
|
|
1118
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1119
|
+
var BreadcrumbItem = React10.forwardRef(
|
|
1120
|
+
function BreadcrumbItem2({ last, sx, ...rest }, ref) {
|
|
1121
|
+
const ourStyles = {
|
|
1122
|
+
fontWeight: last ? 700 : 400,
|
|
1123
|
+
...last ? { cursor: "unset", textDecoration: "none", "&:hover": { textDecoration: "none" } } : {}
|
|
1124
|
+
};
|
|
1125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1126
|
+
Link_default,
|
|
1127
|
+
{
|
|
1128
|
+
ref,
|
|
1129
|
+
color: last ? "black1000" : "black800",
|
|
1130
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1131
|
+
...rest
|
|
1132
|
+
}
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
);
|
|
1136
|
+
var BreadcrumbItem_default = BreadcrumbItem;
|
|
1137
|
+
|
|
1138
|
+
// src/components/TextField.tsx
|
|
1139
|
+
var React11 = __toESM(require("react"), 1);
|
|
1140
|
+
var import_TextField = __toESM(require("@mui/material/TextField"), 1);
|
|
1141
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1142
|
+
var TextField = React11.forwardRef(function TextField2({ width, height, sx, ...rest }, ref) {
|
|
1143
|
+
const resolvedHeight = cssSize(height) ?? (rest.multiline ? void 0 : 48);
|
|
1144
|
+
const ourStyles = {
|
|
1145
|
+
"& .MuiFormHelperText-root": { marginLeft: "16px", marginRight: "16px" },
|
|
1146
|
+
"& .MuiOutlinedInput-root": {
|
|
1147
|
+
width: cssSize(width),
|
|
1148
|
+
height: resolvedHeight,
|
|
1149
|
+
padding: "0px 16px",
|
|
1150
|
+
backgroundColor: "white",
|
|
1151
|
+
fontSize: 16,
|
|
1152
|
+
fontWeight: 400,
|
|
1153
|
+
"& fieldset": { borderColor: swapColors.black.black500, "& legend": { width: "0.01px" } },
|
|
1154
|
+
"&.Mui-focused": {
|
|
1155
|
+
boxShadow: "0px 0px 0px 4px #D7DFF8",
|
|
1156
|
+
"& fieldset": { border: `1px solid ${swapColors.primary.primary400} !important` },
|
|
1157
|
+
"&.Mui-error": {
|
|
1158
|
+
boxShadow: "none",
|
|
1159
|
+
"& fieldset": { border: `1px solid ${swapColors.danger.danger800} !important` }
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"&.Mui-error fieldset": { border: `1px solid ${swapColors.danger.danger800} !important` }
|
|
1163
|
+
},
|
|
1164
|
+
"& .MuiInputBase-input": {
|
|
1165
|
+
padding: 0,
|
|
1166
|
+
"&::placeholder": { color: swapColors.black.black700, opacity: 1 },
|
|
1167
|
+
"&:-webkit-autofill": { WebkitBoxShadow: "0 0 0 100px #FFFFFF inset" }
|
|
1168
|
+
},
|
|
1169
|
+
// resting label 垂直置中隨欄位高度自適應(MUI 預設偏移是按 56px 高算的,
|
|
1170
|
+
// 48px 下會偏下 ~3.5px;label 行高約 23px)
|
|
1171
|
+
...typeof resolvedHeight === "number" ? {
|
|
1172
|
+
"& .MuiInputLabel-root:not(.MuiInputLabel-shrink)": {
|
|
1173
|
+
transform: `translate(14px, ${Math.round((resolvedHeight - 23) / 2)}px)`
|
|
1174
|
+
}
|
|
1175
|
+
} : {},
|
|
1176
|
+
"& .MuiInputLabel-root.MuiInputLabel-shrink": {
|
|
1177
|
+
transform: "translate(14px, -10px)",
|
|
1178
|
+
backgroundColor: "white",
|
|
1179
|
+
padding: "0 4px",
|
|
1180
|
+
fontSize: 14,
|
|
1181
|
+
fontWeight: 700,
|
|
1182
|
+
color: swapColors.black.black800,
|
|
1183
|
+
"&.Mui-focused, &.Mui-error": { color: swapColors.black.black800 }
|
|
1184
|
+
},
|
|
1185
|
+
// select 模式(v1 selectRoot)
|
|
1186
|
+
"& .MuiSelect-select": {
|
|
1187
|
+
borderRadius: "8px",
|
|
1188
|
+
fontWeight: 400,
|
|
1189
|
+
minWidth: rest.fullWidth ? "100%" : "unset",
|
|
1190
|
+
display: "flex",
|
|
1191
|
+
alignItems: "center",
|
|
1192
|
+
"&:focus": { backgroundColor: "white", borderRadius: "8px" }
|
|
1193
|
+
},
|
|
1194
|
+
"& .MuiSelect-icon": { color: swapColors.black.black700 }
|
|
1195
|
+
};
|
|
1196
|
+
const slotProps = rest.select ? {
|
|
1197
|
+
...rest.slotProps,
|
|
1198
|
+
select: {
|
|
1199
|
+
MenuProps: { anchorOrigin: { vertical: -9, horizontal: -16 } },
|
|
1200
|
+
...rest.slotProps?.select
|
|
1201
|
+
}
|
|
1202
|
+
} : rest.slotProps;
|
|
1203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1204
|
+
import_TextField.default,
|
|
1205
|
+
{
|
|
1206
|
+
ref,
|
|
1207
|
+
variant: "outlined",
|
|
1208
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1209
|
+
...rest,
|
|
1210
|
+
slotProps
|
|
1211
|
+
}
|
|
1212
|
+
);
|
|
1213
|
+
});
|
|
1214
|
+
var TextField_default = TextField;
|
|
1215
|
+
|
|
1216
|
+
// src/components/CheckBox.tsx
|
|
1217
|
+
var React12 = __toESM(require("react"), 1);
|
|
1218
|
+
var import_Checkbox = __toESM(require("@mui/material/Checkbox"), 1);
|
|
1219
|
+
var import_FormControlLabel = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
1220
|
+
var import_Box3 = __toESM(require("@mui/material/Box"), 1);
|
|
1221
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1222
|
+
var checkSvg = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M1.5 8.5L7 13L15 2", stroke: "white", strokeWidth: "3", strokeLinecap: "round" }) });
|
|
1223
|
+
function iconSx(disableHover) {
|
|
1224
|
+
return {
|
|
1225
|
+
position: "absolute",
|
|
1226
|
+
width: 24,
|
|
1227
|
+
height: 24,
|
|
1228
|
+
borderRadius: "4px",
|
|
1229
|
+
backgroundColor: swapColors.black.white,
|
|
1230
|
+
border: `1px solid ${swapColors.black.black500}`,
|
|
1231
|
+
"input:hover ~ &": {
|
|
1232
|
+
border: `1px solid ${disableHover ? swapColors.black.black500 : swapColors.black.black1000}`
|
|
1233
|
+
},
|
|
1234
|
+
"input:focus-visible ~ &": { boxShadow: "0px 0px 0px 4px #D7DFF8" },
|
|
1235
|
+
"input:disabled ~ &": { opacity: 0.4 },
|
|
1236
|
+
"input:disabled:hover ~ &": { border: `1px solid ${swapColors.black.black500}` }
|
|
1237
|
+
};
|
|
1238
|
+
}
|
|
1239
|
+
function checkedIconSx(disableHover) {
|
|
1240
|
+
return {
|
|
1241
|
+
position: "absolute",
|
|
1242
|
+
width: 24,
|
|
1243
|
+
height: 24,
|
|
1244
|
+
borderRadius: "4px",
|
|
1245
|
+
display: "flex",
|
|
1246
|
+
justifyContent: "center",
|
|
1247
|
+
alignItems: "center",
|
|
1248
|
+
backgroundColor: swapColors.primary.primary400,
|
|
1249
|
+
border: `1px solid ${swapColors.primary.primary600}`,
|
|
1250
|
+
"input:hover ~ &": {
|
|
1251
|
+
border: `1px solid ${disableHover ? swapColors.primary.primary600 : swapColors.primary.primaryA11y}`
|
|
1252
|
+
},
|
|
1253
|
+
"input:focus-visible ~ &": { boxShadow: "0px 0px 0px 4px #D7DFF8" },
|
|
1254
|
+
"input:disabled ~ &": { opacity: 0.4 },
|
|
1255
|
+
"input:disabled:hover ~ &": { border: `1px solid ${swapColors.primary.primary600}` }
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
var CheckBox = React12.forwardRef(function CheckBox2({ disableHover, label, labelPlacement, checkedIcon, icon, sx, ...rest }, ref) {
|
|
1259
|
+
const ourStyles = {
|
|
1260
|
+
width: 40,
|
|
1261
|
+
height: 40,
|
|
1262
|
+
boxShadow: "none",
|
|
1263
|
+
"&:hover, &.Mui-checked:hover": {
|
|
1264
|
+
backgroundColor: disableHover ? "unset" : swapColors.black.black300
|
|
1265
|
+
}
|
|
1266
|
+
};
|
|
1267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1268
|
+
import_FormControlLabel.default,
|
|
1269
|
+
{
|
|
1270
|
+
label,
|
|
1271
|
+
labelPlacement,
|
|
1272
|
+
style: { marginRight: 0 },
|
|
1273
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1274
|
+
import_Checkbox.default,
|
|
1275
|
+
{
|
|
1276
|
+
ref,
|
|
1277
|
+
disableFocusRipple: true,
|
|
1278
|
+
disableTouchRipple: true,
|
|
1279
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1280
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Box3.default, { component: "span", sx: checkedIconSx(disableHover), children: checkedIcon ?? checkSvg }),
|
|
1281
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Box3.default, { component: "span", sx: iconSx(disableHover), children: icon ?? null }),
|
|
1282
|
+
...rest
|
|
1283
|
+
}
|
|
1284
|
+
)
|
|
1285
|
+
}
|
|
1286
|
+
);
|
|
1287
|
+
});
|
|
1288
|
+
var CheckBox_default = CheckBox;
|
|
1289
|
+
|
|
1290
|
+
// src/components/RadioButton.tsx
|
|
1291
|
+
var React13 = __toESM(require("react"), 1);
|
|
1292
|
+
var import_Radio = __toESM(require("@mui/material/Radio"), 1);
|
|
1293
|
+
var import_FormControlLabel2 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
1294
|
+
var import_Box4 = __toESM(require("@mui/material/Box"), 1);
|
|
1295
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1296
|
+
var dotSvg = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("circle", { cx: "5", cy: "5", r: "5", fill: "white" }) });
|
|
1297
|
+
function iconSx2(disableHover) {
|
|
1298
|
+
return {
|
|
1299
|
+
position: "absolute",
|
|
1300
|
+
width: 24,
|
|
1301
|
+
height: 24,
|
|
1302
|
+
borderRadius: "100px",
|
|
1303
|
+
backgroundColor: swapColors.black.white,
|
|
1304
|
+
border: `1px solid ${swapColors.black.black500}`,
|
|
1305
|
+
"input:hover ~ &": {
|
|
1306
|
+
border: `1px solid ${disableHover ? swapColors.black.black500 : swapColors.black.black1000}`
|
|
1307
|
+
},
|
|
1308
|
+
"input:focus-visible ~ &": { boxShadow: "0px 0px 0px 4px #D7DFF8" },
|
|
1309
|
+
"input:disabled ~ &": { opacity: 0.4 },
|
|
1310
|
+
"input:disabled:hover ~ &": { border: `1px solid ${swapColors.black.black500}` }
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
function checkedIconSx2(disableHover) {
|
|
1314
|
+
return {
|
|
1315
|
+
position: "absolute",
|
|
1316
|
+
width: 24,
|
|
1317
|
+
height: 24,
|
|
1318
|
+
borderRadius: "100px",
|
|
1319
|
+
display: "flex",
|
|
1320
|
+
justifyContent: "center",
|
|
1321
|
+
alignItems: "center",
|
|
1322
|
+
backgroundColor: swapColors.primary.primary400,
|
|
1323
|
+
border: `1px solid ${swapColors.primary.primary600}`,
|
|
1324
|
+
"input:hover ~ &": {
|
|
1325
|
+
border: `1px solid ${disableHover ? swapColors.primary.primary600 : swapColors.primary.primaryA11y}`
|
|
1326
|
+
},
|
|
1327
|
+
"input:focus-visible ~ &": { boxShadow: "0px 0px 0px 4px #D7DFF8" },
|
|
1328
|
+
"input:disabled ~ &": { opacity: 0.4 },
|
|
1329
|
+
"input:disabled:hover ~ &": { border: `1px solid ${swapColors.primary.primary600}` }
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
var RadioButton = React13.forwardRef(function RadioButton2({ disableHover, label, labelPlacement, sx, ...rest }, ref) {
|
|
1333
|
+
const ourStyles = {
|
|
1334
|
+
width: 40,
|
|
1335
|
+
height: 40,
|
|
1336
|
+
boxShadow: "none",
|
|
1337
|
+
"&:hover, &.Mui-checked:hover": {
|
|
1338
|
+
backgroundColor: disableHover ? "unset" : swapColors.black.black300
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1342
|
+
import_FormControlLabel2.default,
|
|
1343
|
+
{
|
|
1344
|
+
label,
|
|
1345
|
+
labelPlacement,
|
|
1346
|
+
style: { marginRight: 0 },
|
|
1347
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1348
|
+
import_Radio.default,
|
|
1349
|
+
{
|
|
1350
|
+
ref,
|
|
1351
|
+
disableFocusRipple: true,
|
|
1352
|
+
disableTouchRipple: true,
|
|
1353
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1354
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Box4.default, { component: "span", sx: checkedIconSx2(disableHover), children: dotSvg }),
|
|
1355
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Box4.default, { component: "span", sx: iconSx2(disableHover) }),
|
|
1356
|
+
...rest
|
|
1357
|
+
}
|
|
1358
|
+
)
|
|
1359
|
+
}
|
|
1360
|
+
);
|
|
1361
|
+
});
|
|
1362
|
+
var RadioButton_default = RadioButton;
|
|
1363
|
+
|
|
1364
|
+
// src/components/Switch.tsx
|
|
1365
|
+
var React14 = __toESM(require("react"), 1);
|
|
1366
|
+
var import_Switch = __toESM(require("@mui/material/Switch"), 1);
|
|
1367
|
+
var import_Fade = __toESM(require("@mui/material/Fade"), 1);
|
|
1368
|
+
var import_Box5 = __toESM(require("@mui/material/Box"), 1);
|
|
1369
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1370
|
+
var checkSvg2 = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1371
|
+
"path",
|
|
1372
|
+
{
|
|
1373
|
+
d: "M4.5 10.21L1.395 7.105L2.81 5.69L4.5 7.385L9.44 2.44L10.855 3.855L4.5 10.21Z",
|
|
1374
|
+
fill: "#4862CC"
|
|
1375
|
+
}
|
|
1376
|
+
) });
|
|
1377
|
+
var Switch = React14.forwardRef(function Switch2({ disabled, sx, ...rest }, ref) {
|
|
1378
|
+
const ourStyles = {
|
|
1379
|
+
width: 40,
|
|
1380
|
+
height: 24,
|
|
1381
|
+
padding: 0,
|
|
1382
|
+
"& .MuiSwitch-switchBase": {
|
|
1383
|
+
padding: "2px",
|
|
1384
|
+
transition: "left 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
1385
|
+
"&.Mui-checked": {
|
|
1386
|
+
transform: "translateX(16px)",
|
|
1387
|
+
"& + .MuiSwitch-track": {
|
|
1388
|
+
border: `1px solid ${swapColors.primary.primary800}`,
|
|
1389
|
+
backgroundColor: swapColors.primary.primary400,
|
|
1390
|
+
opacity: 1
|
|
1391
|
+
},
|
|
1392
|
+
"&:hover + .MuiSwitch-track": { backgroundColor: swapColors.primary.primary600 }
|
|
1393
|
+
},
|
|
1394
|
+
"&:hover + .MuiSwitch-track": { backgroundColor: swapColors.black.black800 },
|
|
1395
|
+
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1396
|
+
opacity: 1,
|
|
1397
|
+
border: `1px solid ${swapColors.black.black800}`,
|
|
1398
|
+
backgroundColor: swapColors.black.black600
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
"& .MuiSwitch-thumb": {
|
|
1402
|
+
width: 20,
|
|
1403
|
+
height: 20,
|
|
1404
|
+
backgroundColor: "white",
|
|
1405
|
+
boxShadow: "0px 2px 2px rgba(0, 0, 0, 0.15)"
|
|
1406
|
+
},
|
|
1407
|
+
"& .MuiSwitch-track": {
|
|
1408
|
+
borderRadius: "12px",
|
|
1409
|
+
border: `1px solid ${swapColors.black.black800}`,
|
|
1410
|
+
backgroundColor: swapColors.black.black600,
|
|
1411
|
+
opacity: 1,
|
|
1412
|
+
transition: "all 200ms ease-out"
|
|
1413
|
+
}
|
|
1414
|
+
};
|
|
1415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1416
|
+
import_Box5.default,
|
|
1417
|
+
{
|
|
1418
|
+
component: "span",
|
|
1419
|
+
tabIndex: 0,
|
|
1420
|
+
sx: {
|
|
1421
|
+
display: "inline-block",
|
|
1422
|
+
width: "fit-content",
|
|
1423
|
+
borderRadius: "12px",
|
|
1424
|
+
opacity: disabled ? 0.4 : 1,
|
|
1425
|
+
"&:focus-visible": {
|
|
1426
|
+
boxShadow: disabled ? "unset" : "0px 0px 0px 4px #D7DFF8",
|
|
1427
|
+
outline: "none"
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1431
|
+
import_Switch.default,
|
|
1432
|
+
{
|
|
1433
|
+
ref,
|
|
1434
|
+
disabled,
|
|
1435
|
+
disableRipple: true,
|
|
1436
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1437
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1438
|
+
import_Box5.default,
|
|
1439
|
+
{
|
|
1440
|
+
sx: {
|
|
1441
|
+
width: 20,
|
|
1442
|
+
height: 20,
|
|
1443
|
+
display: "flex",
|
|
1444
|
+
justifyContent: "center",
|
|
1445
|
+
alignItems: "center",
|
|
1446
|
+
backgroundColor: "white",
|
|
1447
|
+
borderRadius: "50%",
|
|
1448
|
+
boxShadow: "0px 2px 2px rgba(0, 0, 0, 0.15)"
|
|
1449
|
+
},
|
|
1450
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Fade.default, { in: true, timeout: { enter: 200, exit: 200 }, children: checkSvg2 })
|
|
1451
|
+
}
|
|
1452
|
+
),
|
|
1453
|
+
...rest
|
|
1454
|
+
}
|
|
1455
|
+
)
|
|
1456
|
+
}
|
|
1457
|
+
);
|
|
1458
|
+
});
|
|
1459
|
+
var Switch_default = Switch;
|
|
1460
|
+
|
|
1461
|
+
// src/components/Select.tsx
|
|
1462
|
+
var import_Select = __toESM(require("@mui/material/Select"), 1);
|
|
1463
|
+
var import_FormControl = __toESM(require("@mui/material/FormControl"), 1);
|
|
1464
|
+
var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
1465
|
+
var import_InputLabel = __toESM(require("@mui/material/InputLabel"), 1);
|
|
1466
|
+
var import_OutlinedInput = __toESM(require("@mui/material/OutlinedInput"), 1);
|
|
1467
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1468
|
+
var Select = ({
|
|
1469
|
+
children,
|
|
1470
|
+
style,
|
|
1471
|
+
value,
|
|
1472
|
+
onChange,
|
|
1473
|
+
defaultValue,
|
|
1474
|
+
error,
|
|
1475
|
+
disabled,
|
|
1476
|
+
type,
|
|
1477
|
+
InputProps,
|
|
1478
|
+
autoFocus,
|
|
1479
|
+
placeholder,
|
|
1480
|
+
fullWidth,
|
|
1481
|
+
required,
|
|
1482
|
+
helperText,
|
|
1483
|
+
width,
|
|
1484
|
+
height,
|
|
1485
|
+
horizontal = "left",
|
|
1486
|
+
vertical = "bottom",
|
|
1487
|
+
open,
|
|
1488
|
+
placeholderStyle,
|
|
1489
|
+
selectStyle,
|
|
1490
|
+
helperTextStyle,
|
|
1491
|
+
onClick,
|
|
1492
|
+
transformOrigin,
|
|
1493
|
+
paddingTop,
|
|
1494
|
+
paddingLeft,
|
|
1495
|
+
dropdown
|
|
1496
|
+
}) => {
|
|
1497
|
+
const hasCustomPadding = Boolean(paddingTop || paddingLeft);
|
|
1498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1499
|
+
import_FormControl.default,
|
|
1500
|
+
{
|
|
1501
|
+
variant: "outlined",
|
|
1502
|
+
style,
|
|
1503
|
+
sx: { width: cssSize(width) ?? "100%" },
|
|
1504
|
+
children: [
|
|
1505
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1506
|
+
import_InputLabel.default,
|
|
1507
|
+
{
|
|
1508
|
+
style: placeholderStyle,
|
|
1509
|
+
sx: {
|
|
1510
|
+
"&.MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
|
|
1511
|
+
transform: hasCustomPadding ? `translate(${(paddingLeft ?? 0) - 4}px, ${(paddingTop ?? 0) + 2}px) scale(1)` : "translate(12px, 14px) scale(1)"
|
|
1512
|
+
},
|
|
1513
|
+
"&.MuiInputLabel-shrink": {
|
|
1514
|
+
width: "fit-content",
|
|
1515
|
+
padding: "0 4px",
|
|
1516
|
+
backgroundColor: "white",
|
|
1517
|
+
fontSize: 12,
|
|
1518
|
+
fontWeight: 700,
|
|
1519
|
+
color: swapColors.black.black800,
|
|
1520
|
+
"&.Mui-focused": { fontWeight: 700, color: swapColors.black.black800 }
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
children: placeholder
|
|
1524
|
+
}
|
|
1525
|
+
),
|
|
1526
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1527
|
+
import_Select.default,
|
|
1528
|
+
{
|
|
1529
|
+
style: selectStyle,
|
|
1530
|
+
open,
|
|
1531
|
+
value,
|
|
1532
|
+
onChange,
|
|
1533
|
+
label: placeholder,
|
|
1534
|
+
defaultValue,
|
|
1535
|
+
error,
|
|
1536
|
+
disabled,
|
|
1537
|
+
type,
|
|
1538
|
+
autoFocus,
|
|
1539
|
+
required,
|
|
1540
|
+
fullWidth,
|
|
1541
|
+
onClick,
|
|
1542
|
+
inputProps: InputProps,
|
|
1543
|
+
input: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1544
|
+
import_OutlinedInput.default,
|
|
1545
|
+
{
|
|
1546
|
+
sx: {
|
|
1547
|
+
"& .MuiOutlinedInput-notchedOutline": { borderColor: swapColors.black.black500 },
|
|
1548
|
+
"&:hover": {
|
|
1549
|
+
borderColor: swapColors.black.black1000,
|
|
1550
|
+
"& svg": { color: swapColors.black.black1000 }
|
|
1551
|
+
},
|
|
1552
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
1553
|
+
borderColor: swapColors.black.black1000,
|
|
1554
|
+
borderWidth: 1
|
|
1555
|
+
},
|
|
1556
|
+
"&.Mui-focused svg": { color: swapColors.black.black1000 }
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
),
|
|
1560
|
+
sx: {
|
|
1561
|
+
"& .MuiSelect-select": {
|
|
1562
|
+
height: height ? height - 32 : 16,
|
|
1563
|
+
padding: hasCustomPadding ? `${paddingTop ?? 12}px ${paddingLeft ?? 16}px` : "12px 16px",
|
|
1564
|
+
display: "flex",
|
|
1565
|
+
alignItems: "center",
|
|
1566
|
+
fontSize: dropdown ? 14 : 16,
|
|
1567
|
+
fontWeight: dropdown ? 700 : 400,
|
|
1568
|
+
border: "none",
|
|
1569
|
+
color: swapColors.black.black800,
|
|
1570
|
+
"&:focus": { backgroundColor: "white", color: swapColors.black.black1000 },
|
|
1571
|
+
"&:hover": { backgroundColor: "white", color: swapColors.black.black1000 }
|
|
1572
|
+
},
|
|
1573
|
+
"& .MuiSelect-icon": { color: swapColors.black.black800 }
|
|
1574
|
+
},
|
|
1575
|
+
MenuProps: {
|
|
1576
|
+
transformOrigin,
|
|
1577
|
+
anchorOrigin: { vertical, horizontal },
|
|
1578
|
+
slotProps: { paper: { sx: { marginTop: "8px" } } }
|
|
1579
|
+
},
|
|
1580
|
+
children
|
|
1581
|
+
}
|
|
1582
|
+
),
|
|
1583
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_FormHelperText.default, { style: helperTextStyle, children: helperText })
|
|
1584
|
+
]
|
|
1585
|
+
}
|
|
1586
|
+
);
|
|
1587
|
+
};
|
|
1588
|
+
var Select_default = Select;
|
|
1589
|
+
|
|
1590
|
+
// src/components/MenuItem.tsx
|
|
1591
|
+
var React15 = __toESM(require("react"), 1);
|
|
1592
|
+
var import_MenuItem2 = __toESM(require("@mui/material/MenuItem"), 1);
|
|
1593
|
+
var import_ListItemIcon = __toESM(require("@mui/material/ListItemIcon"), 1);
|
|
1594
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1595
|
+
var MenuItem2 = React15.forwardRef(function MenuItem3({
|
|
1596
|
+
children,
|
|
1597
|
+
width,
|
|
1598
|
+
height,
|
|
1599
|
+
hoverBackgroundColor,
|
|
1600
|
+
hoverFontColor,
|
|
1601
|
+
hoverIconColor,
|
|
1602
|
+
rippleColor,
|
|
1603
|
+
iconChildren,
|
|
1604
|
+
button: _button,
|
|
1605
|
+
// v4 遺留 prop,丟棄避免流入 DOM
|
|
1606
|
+
sx,
|
|
1607
|
+
...rest
|
|
1608
|
+
}, ref) {
|
|
1609
|
+
const ourStyles = {
|
|
1610
|
+
fontSize: 14,
|
|
1611
|
+
fontWeight: 700,
|
|
1612
|
+
width: cssSize(width),
|
|
1613
|
+
minHeight: cssSize(height),
|
|
1614
|
+
"&:focus": { backgroundColor: "unset" },
|
|
1615
|
+
"&:hover": {
|
|
1616
|
+
backgroundColor: hoverBackgroundColor ?? swapColors.primary.primary50,
|
|
1617
|
+
color: hoverFontColor ?? swapColors.primary.primary800,
|
|
1618
|
+
"& svg path": { fill: hoverIconColor ?? swapColors.primary.primary800 }
|
|
1619
|
+
},
|
|
1620
|
+
"& span": { color: rippleColor ?? void 0 }
|
|
1621
|
+
};
|
|
1622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_MenuItem2.default, { ref, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest, children: [
|
|
1623
|
+
children,
|
|
1624
|
+
iconChildren != null && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ListItemIcon.default, { style: { justifyContent: "flex-end" }, children: iconChildren })
|
|
1625
|
+
] });
|
|
1626
|
+
});
|
|
1627
|
+
var MenuItem_default = MenuItem2;
|
|
1628
|
+
|
|
1629
|
+
// src/components/Tab.tsx
|
|
1630
|
+
var React16 = __toESM(require("react"), 1);
|
|
1631
|
+
var import_Tab = __toESM(require("@mui/material/Tab"), 1);
|
|
1632
|
+
var import_Box6 = __toESM(require("@mui/material/Box"), 1);
|
|
1633
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1634
|
+
var Tab = React16.forwardRef(function Tab2({ label, selected, width, height, margin, fontSize, noIndicator, animation, sx, ...rest }, ref) {
|
|
1635
|
+
const ourStyles = {
|
|
1636
|
+
minWidth: 0,
|
|
1637
|
+
minHeight: 0,
|
|
1638
|
+
padding: 0,
|
|
1639
|
+
margin: margin ?? "0px 12px",
|
|
1640
|
+
fontWeight: 700,
|
|
1641
|
+
fontSize: fontSize ?? 14,
|
|
1642
|
+
lineHeight: 1.4,
|
|
1643
|
+
opacity: 1,
|
|
1644
|
+
color: swapColors.black.black700,
|
|
1645
|
+
"&:hover": { color: "#000000" },
|
|
1646
|
+
"&.Mui-selected": { color: "#000000" }
|
|
1647
|
+
};
|
|
1648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1649
|
+
import_Tab.default,
|
|
1650
|
+
{
|
|
1651
|
+
ref,
|
|
1652
|
+
disableRipple: true,
|
|
1653
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1654
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1655
|
+
import_Box6.default,
|
|
1656
|
+
{
|
|
1657
|
+
sx: {
|
|
1658
|
+
width: cssSize(width) ?? 56,
|
|
1659
|
+
height: cssSize(height) ?? 56,
|
|
1660
|
+
display: "flex",
|
|
1661
|
+
justifyContent: "center",
|
|
1662
|
+
alignItems: "center",
|
|
1663
|
+
position: "relative"
|
|
1664
|
+
},
|
|
1665
|
+
children: [
|
|
1666
|
+
label,
|
|
1667
|
+
selected && !noIndicator ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1668
|
+
import_Box6.default,
|
|
1669
|
+
{
|
|
1670
|
+
sx: {
|
|
1671
|
+
height: "4px",
|
|
1672
|
+
width: "100%",
|
|
1673
|
+
backgroundColor: swapColors.primary.primary400,
|
|
1674
|
+
position: "absolute",
|
|
1675
|
+
bottom: 0,
|
|
1676
|
+
borderRadius: "100px 100px 0px 0px",
|
|
1677
|
+
...animation ? {
|
|
1678
|
+
animation: "swap-tab-selected 300ms",
|
|
1679
|
+
"@keyframes swap-tab-selected": {
|
|
1680
|
+
from: { width: 0 },
|
|
1681
|
+
to: { width: "100%" }
|
|
1682
|
+
}
|
|
1683
|
+
} : {}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
) : null
|
|
1687
|
+
]
|
|
1688
|
+
}
|
|
1689
|
+
),
|
|
1690
|
+
...rest
|
|
1691
|
+
}
|
|
1692
|
+
);
|
|
1693
|
+
});
|
|
1694
|
+
var Tab_default = Tab;
|
|
1695
|
+
|
|
1696
|
+
// src/components/Tabs.tsx
|
|
1697
|
+
var React17 = __toESM(require("react"), 1);
|
|
1698
|
+
var import_Tabs = __toESM(require("@mui/material/Tabs"), 1);
|
|
1699
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1700
|
+
var Tabs = React17.forwardRef(function Tabs2({ children, sx, ...rest }, ref) {
|
|
1701
|
+
const ourStyles = {
|
|
1702
|
+
"& .MuiTabs-indicator": { backgroundColor: "transparent" }
|
|
1703
|
+
};
|
|
1704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Tabs.default, { ref, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest, children });
|
|
1705
|
+
});
|
|
1706
|
+
var Tabs_default = Tabs;
|
|
1707
|
+
|
|
1708
|
+
// src/components/TabPanel.tsx
|
|
1709
|
+
var import_Box7 = __toESM(require("@mui/material/Box"), 1);
|
|
1710
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1711
|
+
var TabPanel = ({ children, value, index, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1712
|
+
"div",
|
|
1713
|
+
{
|
|
1714
|
+
role: "tabpanel",
|
|
1715
|
+
hidden: value !== index,
|
|
1716
|
+
id: `scrollable-auto-tabpanel-${index}`,
|
|
1717
|
+
"aria-labelledby": `scrollable-auto-tab-${index}`,
|
|
1718
|
+
...rest,
|
|
1719
|
+
children: value === index && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Box7.default, { children })
|
|
1720
|
+
}
|
|
1721
|
+
);
|
|
1722
|
+
var TabPanel_default = TabPanel;
|
|
1723
|
+
|
|
1724
|
+
// src/components/Banner.tsx
|
|
1725
|
+
var React18 = __toESM(require("react"), 1);
|
|
1726
|
+
var import_Box8 = __toESM(require("@mui/material/Box"), 1);
|
|
1727
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1728
|
+
var PALETTE = {
|
|
1729
|
+
normal: { bg: swapColors.black.black100, border: swapColors.black.black500, iconFill: swapColors.black.black700 },
|
|
1730
|
+
info: { bg: swapColors.primary.primary50, border: swapColors.primary.primary200, iconFill: swapColors.primary.primary400 },
|
|
1731
|
+
success: { bg: swapColors.success.success50, border: swapColors.success.success400, iconFill: "#00932A" },
|
|
1732
|
+
warning: { bg: swapColors.secondary.secondary50, border: swapColors.secondary.secondary600, iconFill: "#E5640C" },
|
|
1733
|
+
error: { bg: swapColors.danger.danger50, border: swapColors.danger.danger300, iconFill: swapColors.danger.danger700 }
|
|
1734
|
+
};
|
|
1735
|
+
var infoPath = "M13 9H11V7H13V9ZM13 17H11V11H13V17ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2Z";
|
|
1736
|
+
var successPath = "M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z";
|
|
1737
|
+
var warningPath = "M13 14H11V9H13V14ZM13 18H11V16H13V18ZM1 21H23L12 2L1 21Z";
|
|
1738
|
+
function defaultIcon(variant) {
|
|
1739
|
+
const path = variant === "success" ? successPath : variant === "warning" ? warningPath : infoPath;
|
|
1740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: path, fill: PALETTE[variant].iconFill }) });
|
|
1741
|
+
}
|
|
1742
|
+
var Banner = React18.forwardRef(function Banner2({ icon, variant = "info", width, height, mobile, children, sx, ...rest }, ref) {
|
|
1743
|
+
const innerRef = React18.useRef(null);
|
|
1744
|
+
const [alignStart, setAlignStart] = React18.useState(false);
|
|
1745
|
+
React18.useEffect(() => {
|
|
1746
|
+
if (innerRef.current && innerRef.current.offsetHeight > 60) setAlignStart(true);
|
|
1747
|
+
}, []);
|
|
1748
|
+
const p = PALETTE[variant];
|
|
1749
|
+
const ourStyles = {
|
|
1750
|
+
backgroundColor: p.bg,
|
|
1751
|
+
border: `1px solid ${p.border}`,
|
|
1752
|
+
borderRadius: "8px",
|
|
1753
|
+
padding: "12px 16px",
|
|
1754
|
+
width: cssSize(width),
|
|
1755
|
+
height: cssSize(height),
|
|
1756
|
+
display: "flex",
|
|
1757
|
+
alignItems: mobile || alignStart ? "flex-start" : "center"
|
|
1758
|
+
};
|
|
1759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1760
|
+
import_Box8.default,
|
|
1761
|
+
{
|
|
1762
|
+
ref: (node) => {
|
|
1763
|
+
innerRef.current = node;
|
|
1764
|
+
if (typeof ref === "function") ref(node);
|
|
1765
|
+
else if (ref) ref.current = node;
|
|
1766
|
+
},
|
|
1767
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
1768
|
+
...rest,
|
|
1769
|
+
children: [
|
|
1770
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_Box8.default, { sx: { width: 24, height: 24, marginRight: "8px", flexShrink: 0 }, children: icon ?? defaultIcon(variant) }),
|
|
1771
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typography_default, { variant: "caption2", children })
|
|
1772
|
+
]
|
|
1773
|
+
}
|
|
1774
|
+
);
|
|
1775
|
+
});
|
|
1776
|
+
var Banner_default = Banner;
|
|
1777
|
+
|
|
1778
|
+
// src/components/Card.tsx
|
|
1779
|
+
var React19 = __toESM(require("react"), 1);
|
|
1780
|
+
var import_Box9 = __toESM(require("@mui/material/Box"), 1);
|
|
1781
|
+
var import_Button = __toESM(require("@mui/material/Button"), 1);
|
|
1782
|
+
var import_Skeleton = __toESM(require("@mui/material/Skeleton"), 1);
|
|
1783
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1784
|
+
var Card = React19.forwardRef(function Card2({ width, height, children, buttons, bodyStyle, loading, sx, ...rest }, ref) {
|
|
1785
|
+
const ourStyles = {
|
|
1786
|
+
width: cssSize(width) ?? 350,
|
|
1787
|
+
height: cssSize(height) ?? "100%",
|
|
1788
|
+
backgroundColor: swapColors.black.white,
|
|
1789
|
+
boxSizing: "border-box",
|
|
1790
|
+
border: `1px solid ${swapColors.black.black500}`,
|
|
1791
|
+
borderRadius: "8px",
|
|
1792
|
+
display: "flex",
|
|
1793
|
+
flexDirection: "column",
|
|
1794
|
+
justifyContent: "space-between",
|
|
1795
|
+
overflow: "hidden"
|
|
1796
|
+
};
|
|
1797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_Box9.default, { ref, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest, children: [
|
|
1798
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Box9.default, { sx: { padding: "24px", width: "100%", height: "100%" }, style: bodyStyle, children: !loading ? children : /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_Box9.default, { sx: { width: "100%", height: "100%" }, children: [
|
|
1799
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Skeleton.default, { width: "40%", height: "calc((100% - 16px) / 3)" }),
|
|
1800
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Box9.default, { sx: { height: "8px" } }),
|
|
1801
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Skeleton.default, { width: "100%", height: "calc((100% - 16px) / 3)" }),
|
|
1802
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Box9.default, { sx: { height: "8px" } }),
|
|
1803
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
1804
|
+
import_Box9.default,
|
|
1805
|
+
{
|
|
1806
|
+
sx: {
|
|
1807
|
+
display: "flex",
|
|
1808
|
+
justifyContent: "space-between",
|
|
1809
|
+
width: "100%",
|
|
1810
|
+
height: "calc((100% - 16px) / 3)"
|
|
1811
|
+
},
|
|
1812
|
+
children: [
|
|
1813
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Skeleton.default, { width: "26.4%", height: "100%" }),
|
|
1814
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Skeleton.default, { width: "26.4%", height: "100%" })
|
|
1815
|
+
]
|
|
1816
|
+
}
|
|
1817
|
+
)
|
|
1818
|
+
] }) }),
|
|
1819
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1820
|
+
import_Box9.default,
|
|
1821
|
+
{
|
|
1822
|
+
sx: {
|
|
1823
|
+
width: "100%",
|
|
1824
|
+
boxShadow: `0px -1px 0px ${swapColors.black.black400}`,
|
|
1825
|
+
borderRadius: "0px 0px 8px 8px",
|
|
1826
|
+
display: "flex",
|
|
1827
|
+
padding: 0
|
|
1828
|
+
},
|
|
1829
|
+
children: !loading ? buttons?.map((b, index) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1830
|
+
import_Button.default,
|
|
1831
|
+
{
|
|
1832
|
+
fullWidth: true,
|
|
1833
|
+
variant: b.variant ?? "black",
|
|
1834
|
+
style: {
|
|
1835
|
+
borderRight: index + 1 === buttons.length ? void 0 : `1px solid ${swapColors.black.black400}`,
|
|
1836
|
+
borderRadius: "0px 0px 0px 0px",
|
|
1837
|
+
...b.style
|
|
1838
|
+
},
|
|
1839
|
+
onClick: b.onClick,
|
|
1840
|
+
disabled: b.disabled,
|
|
1841
|
+
loading: b.loading,
|
|
1842
|
+
children: b.title
|
|
1843
|
+
},
|
|
1844
|
+
index
|
|
1845
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Box9.default, { sx: { padding: "16px 24px", width: "100%", height: 48 }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Skeleton.default, { width: "100%", height: "100%" }) })
|
|
1846
|
+
}
|
|
1847
|
+
)
|
|
1848
|
+
] });
|
|
1849
|
+
});
|
|
1850
|
+
var Card_default = Card;
|
|
1851
|
+
|
|
1852
|
+
// src/components/Progress.tsx
|
|
1853
|
+
var React20 = __toESM(require("react"), 1);
|
|
1854
|
+
var import_Box10 = __toESM(require("@mui/material/Box"), 1);
|
|
1855
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1856
|
+
var Progress = React20.forwardRef(function Progress2({ width, size, label, step, count, sx, ...rest }, ref) {
|
|
1857
|
+
const circle = cssSize(size) ?? 24;
|
|
1858
|
+
const ourStyles = {
|
|
1859
|
+
width: cssSize(width) ?? "100%",
|
|
1860
|
+
display: "flex",
|
|
1861
|
+
alignItems: "flex-start"
|
|
1862
|
+
};
|
|
1863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_Box10.default, { ref, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest, children: Array.from(Array(count).keys()).map((i) => {
|
|
1864
|
+
const isCurrent = i === step - 1;
|
|
1865
|
+
const isDone = i + 1 < step;
|
|
1866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1867
|
+
import_Box10.default,
|
|
1868
|
+
{
|
|
1869
|
+
sx: { width: "100%", display: "flex", flexDirection: "column", textAlign: "center" },
|
|
1870
|
+
children: [
|
|
1871
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_Box10.default, { sx: { width: "100%", display: "flex", alignItems: "center" }, children: [
|
|
1872
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1873
|
+
import_Box10.default,
|
|
1874
|
+
{
|
|
1875
|
+
sx: {
|
|
1876
|
+
height: "2px",
|
|
1877
|
+
width: "calc((100% - 24px)/2)",
|
|
1878
|
+
backgroundColor: i !== 0 ? i + 1 <= step ? swapColors.primary.primary800 : swapColors.black.black500 : "transparent"
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
),
|
|
1882
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1883
|
+
import_Box10.default,
|
|
1884
|
+
{
|
|
1885
|
+
sx: {
|
|
1886
|
+
display: "flex",
|
|
1887
|
+
alignItems: "center",
|
|
1888
|
+
justifyContent: "center",
|
|
1889
|
+
fontSize: 12,
|
|
1890
|
+
lineHeight: 1.4,
|
|
1891
|
+
fontWeight: 700,
|
|
1892
|
+
width: circle,
|
|
1893
|
+
height: circle,
|
|
1894
|
+
borderRadius: "50%",
|
|
1895
|
+
boxSizing: "border-box",
|
|
1896
|
+
backgroundColor: isCurrent ? "white" : isDone ? swapColors.primary.primary800 : swapColors.black.black600,
|
|
1897
|
+
color: isCurrent ? swapColors.primary.primary800 : "white",
|
|
1898
|
+
border: isCurrent ? `2px solid ${swapColors.primary.primary800}` : "none",
|
|
1899
|
+
boxShadow: isCurrent ? "0px 0px 0px 4px #D7DFF8" : "unset"
|
|
1900
|
+
},
|
|
1901
|
+
children: i + 1
|
|
1902
|
+
}
|
|
1903
|
+
),
|
|
1904
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1905
|
+
import_Box10.default,
|
|
1906
|
+
{
|
|
1907
|
+
sx: {
|
|
1908
|
+
height: "2px",
|
|
1909
|
+
width: "calc((100% - 24px)/2)",
|
|
1910
|
+
backgroundColor: i + 1 !== count ? i + 1 < step ? swapColors.primary.primary800 : swapColors.black.black500 : "transparent"
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
)
|
|
1914
|
+
] }),
|
|
1915
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1916
|
+
Typography_default,
|
|
1917
|
+
{
|
|
1918
|
+
variant: "caption1",
|
|
1919
|
+
color: i + 1 === step ? "black1000" : "black700",
|
|
1920
|
+
style: { marginTop: 8 },
|
|
1921
|
+
children: label ? label[i] : null
|
|
1922
|
+
}
|
|
1923
|
+
)
|
|
1924
|
+
]
|
|
1925
|
+
},
|
|
1926
|
+
i
|
|
1927
|
+
);
|
|
1928
|
+
}) });
|
|
1929
|
+
});
|
|
1930
|
+
var Progress_default = Progress;
|
|
1931
|
+
|
|
1932
|
+
// src/components/Modal.tsx
|
|
1933
|
+
var React21 = __toESM(require("react"), 1);
|
|
1934
|
+
var import_Modal = __toESM(require("@mui/material/Modal"), 1);
|
|
1935
|
+
var import_Paper2 = __toESM(require("@mui/material/Paper"), 1);
|
|
1936
|
+
var import_Divider = __toESM(require("@mui/material/Divider"), 1);
|
|
1937
|
+
var import_Slide = __toESM(require("@mui/material/Slide"), 1);
|
|
1938
|
+
var import_Box11 = __toESM(require("@mui/material/Box"), 1);
|
|
1939
|
+
|
|
1940
|
+
// node_modules/@mui/icons-material/utils/createSvgIcon.mjs
|
|
1941
|
+
var import_SvgIcon = require("@mui/material/SvgIcon");
|
|
1942
|
+
|
|
1943
|
+
// node_modules/@mui/icons-material/Close.mjs
|
|
1944
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1945
|
+
var Close_default = (0, import_SvgIcon.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", {
|
|
1946
|
+
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1947
|
+
}), "Close");
|
|
1948
|
+
|
|
1949
|
+
// node_modules/@mui/icons-material/CheckCircle.mjs
|
|
1950
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1951
|
+
var CheckCircle_default = (0, import_SvgIcon.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", {
|
|
1952
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
|
|
1953
|
+
}), "CheckCircle");
|
|
1954
|
+
|
|
1955
|
+
// node_modules/@mui/icons-material/Warning.mjs
|
|
1956
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1957
|
+
var Warning_default = (0, import_SvgIcon.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", {
|
|
1958
|
+
d: "M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"
|
|
1959
|
+
}), "Warning");
|
|
1960
|
+
|
|
1961
|
+
// src/hooks/useBreakpoints.ts
|
|
1962
|
+
var import_useMediaQuery3 = __toESM(require("@mui/material/useMediaQuery"), 1);
|
|
1963
|
+
function useBreakpoints(breakpoint) {
|
|
1964
|
+
const px = typeof breakpoint === "number" ? breakpoint : swapBreakpoints[breakpoint ?? "xxs"];
|
|
1965
|
+
return (0, import_useMediaQuery3.default)(`(min-width:${px}px)`);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
// src/components/Modal.tsx
|
|
1969
|
+
var import_Button2 = __toESM(require("@mui/material/Button"), 1);
|
|
1970
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1971
|
+
var SIZE_WIDTH = { large: 800, medium: 640, small: 480, extraSmall: 320 };
|
|
1972
|
+
function FooterButton({
|
|
1973
|
+
item,
|
|
1974
|
+
fullWidth,
|
|
1975
|
+
fallbackVariant
|
|
1976
|
+
}) {
|
|
1977
|
+
const btn = /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1978
|
+
import_Button2.default,
|
|
1979
|
+
{
|
|
1980
|
+
fullWidth,
|
|
1981
|
+
variant: item.variant ?? fallbackVariant,
|
|
1982
|
+
size: "small",
|
|
1983
|
+
onClick: item.onClick,
|
|
1984
|
+
disabled: item.disabled,
|
|
1985
|
+
loading: item.loading,
|
|
1986
|
+
style: item.style,
|
|
1987
|
+
children: item.title
|
|
1988
|
+
}
|
|
1989
|
+
);
|
|
1990
|
+
return item.tooltip ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Tooltip_default, { ...item.tooltip, children: btn }) : btn;
|
|
1991
|
+
}
|
|
1992
|
+
var Modal = React21.forwardRef(function Modal2(props, ref) {
|
|
1993
|
+
const {
|
|
1994
|
+
width,
|
|
1995
|
+
height,
|
|
1996
|
+
open,
|
|
1997
|
+
onClose,
|
|
1998
|
+
title,
|
|
1999
|
+
helpText,
|
|
2000
|
+
size,
|
|
2001
|
+
headpadding,
|
|
2002
|
+
headChildren,
|
|
2003
|
+
checked,
|
|
2004
|
+
failed,
|
|
2005
|
+
icon,
|
|
2006
|
+
checkIconColor,
|
|
2007
|
+
iconColor,
|
|
2008
|
+
children,
|
|
2009
|
+
label,
|
|
2010
|
+
buttonFullWidth,
|
|
2011
|
+
footerDisplayColumn,
|
|
2012
|
+
secondaryButton,
|
|
2013
|
+
primaryButton,
|
|
2014
|
+
mobile,
|
|
2015
|
+
fullWidth,
|
|
2016
|
+
fullScreen,
|
|
2017
|
+
bodyPadding,
|
|
2018
|
+
maxWidth,
|
|
2019
|
+
disCloseIcon,
|
|
2020
|
+
titleStyle,
|
|
2021
|
+
bodyStyle,
|
|
2022
|
+
onExit,
|
|
2023
|
+
bodyMaxHeight,
|
|
2024
|
+
multiline,
|
|
2025
|
+
disUnderLine,
|
|
2026
|
+
footer
|
|
2027
|
+
} = props;
|
|
2028
|
+
const [clientHeight, setClientHeight] = React21.useState(0);
|
|
2029
|
+
const [scrollbarWidth, setScrollbarWidth] = React21.useState(0);
|
|
2030
|
+
React21.useEffect(() => {
|
|
2031
|
+
if (mobile || fullWidth) {
|
|
2032
|
+
if ((helpText || multiline) && !label) setClientHeight(window.innerHeight - 64 - 73 - 64);
|
|
2033
|
+
else if (!helpText && label) setClientHeight(window.innerHeight - 64 - 56 - 99);
|
|
2034
|
+
else if ((helpText || multiline) && label) setClientHeight(window.innerHeight - 64 - 73 - 99);
|
|
2035
|
+
else setClientHeight(window.innerHeight - 64 - 56 - 64);
|
|
2036
|
+
}
|
|
2037
|
+
}, [fullWidth, mobile, helpText, multiline, label]);
|
|
2038
|
+
React21.useEffect(() => {
|
|
2039
|
+
setScrollbarWidth((window.innerWidth - document.body.clientWidth) / 2);
|
|
2040
|
+
}, []);
|
|
2041
|
+
const matchXS = useBreakpoints("xs");
|
|
2042
|
+
const slide = fullWidth || fullScreen;
|
|
2043
|
+
const resolvedWidth = fullScreen ? "100vw" : cssSize(width) ?? (size ? SIZE_WIDTH[size] : "100%");
|
|
2044
|
+
const iconSx3 = {
|
|
2045
|
+
"& path": { width: 20, height: 20 },
|
|
2046
|
+
color: iconColor && swapTokenMap[iconColor] || checkIconColor && swapTokenMap[checkIconColor] || swapColors.black.black700,
|
|
2047
|
+
marginRight: "10px"
|
|
2048
|
+
};
|
|
2049
|
+
const headPad = headpadding ? headpadding : mobile ? disCloseIcon && !helpText && !multiline ? "17px 16px" : "12px 16px" : disCloseIcon && !helpText && !multiline ? "19.5px 24px" : "16px 24px";
|
|
2050
|
+
const bodyPad = bodyPadding ?? (mobile ? 16 : 24);
|
|
2051
|
+
const panel = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2052
|
+
import_Paper2.default,
|
|
2053
|
+
{
|
|
2054
|
+
sx: {
|
|
2055
|
+
width: resolvedWidth,
|
|
2056
|
+
maxWidth: cssSize(maxWidth),
|
|
2057
|
+
borderRadius: fullScreen ? 0 : fullWidth ? "12px 12px 0px 0px" : "12px",
|
|
2058
|
+
border: "unset",
|
|
2059
|
+
boxShadow: fullScreen ? "unset" : swapShadows.l,
|
|
2060
|
+
display: "flex",
|
|
2061
|
+
flexDirection: "column",
|
|
2062
|
+
outline: 0,
|
|
2063
|
+
// v1 用 react-spring 做 200ms 淡入+上移;v2 以 CSS keyframes 等效(少一依賴)
|
|
2064
|
+
...slide ? {} : {
|
|
2065
|
+
animation: open ? "swap-modal-in 200ms ease-in-out" : "none",
|
|
2066
|
+
"@keyframes swap-modal-in": {
|
|
2067
|
+
from: { opacity: 0, transform: "translateY(50px)" },
|
|
2068
|
+
to: { opacity: 1, transform: "translateY(0px)" }
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
children: [
|
|
2073
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2074
|
+
import_Box11.default,
|
|
2075
|
+
{
|
|
2076
|
+
sx: {
|
|
2077
|
+
borderRadius: fullScreen ? 0 : "12px 12px 0px 0px",
|
|
2078
|
+
padding: headPad,
|
|
2079
|
+
display: "flex",
|
|
2080
|
+
alignItems: "center",
|
|
2081
|
+
justifyContent: "space-between",
|
|
2082
|
+
position: "relative",
|
|
2083
|
+
pointerEvents: onExit ? "none" : "unset"
|
|
2084
|
+
},
|
|
2085
|
+
style: titleStyle,
|
|
2086
|
+
children: [
|
|
2087
|
+
onExit ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2088
|
+
import_Box11.default,
|
|
2089
|
+
{
|
|
2090
|
+
sx: {
|
|
2091
|
+
position: "absolute",
|
|
2092
|
+
width: "100%",
|
|
2093
|
+
height: "100%",
|
|
2094
|
+
background: "black",
|
|
2095
|
+
top: 0,
|
|
2096
|
+
left: 0,
|
|
2097
|
+
opacity: 0.5,
|
|
2098
|
+
borderRadius: "12px 12px 0px 0px",
|
|
2099
|
+
zIndex: 10
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
) : null,
|
|
2103
|
+
headChildren ?? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_Box11.default, { sx: { display: "flex", alignItems: "center", justifyContent: "center" }, children: [
|
|
2104
|
+
icon ?? null,
|
|
2105
|
+
checked ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CheckCircle_default, { sx: iconSx3 }) : null,
|
|
2106
|
+
failed ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Warning_default, { sx: iconSx3 }) : null,
|
|
2107
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
|
|
2108
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typography_default, { variant: !mobile ? "h6" : "title", children: title }),
|
|
2109
|
+
helpText ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typography_default, { variant: "body2_loose", color: "black800", style: { marginTop: 4 }, children: helpText }) : null
|
|
2110
|
+
] })
|
|
2111
|
+
] }),
|
|
2112
|
+
disCloseIcon ? null : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(IconButton_default, { sx: { marginLeft: "16px" }, onClick: () => onClose(), "aria-label": "\u95DC\u9589", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Close_default, { sx: { color: swapColors.black.black1000, width: 20, height: 20 } }) })
|
|
2113
|
+
]
|
|
2114
|
+
}
|
|
2115
|
+
),
|
|
2116
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
2117
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_Divider.default, { sx: { backgroundColor: onExit ? "#6d6d6d" : "#DADADA" } }),
|
|
2118
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2119
|
+
import_Box11.default,
|
|
2120
|
+
{
|
|
2121
|
+
sx: {
|
|
2122
|
+
transition: "all 0.2s ease-in-out",
|
|
2123
|
+
height: fullScreen ? "calc(100dvh - 146px)" : cssSize(height) ?? "100%",
|
|
2124
|
+
padding: `${bodyPad}px`,
|
|
2125
|
+
position: "relative",
|
|
2126
|
+
pointerEvents: onExit ? "none" : "unset",
|
|
2127
|
+
maxHeight: fullScreen ? "calc(100dvh - 146px)" : cssSize(bodyMaxHeight) ?? (fullWidth ? clientHeight : "unset"),
|
|
2128
|
+
overflowY: !onExit ? "scroll" : "hidden",
|
|
2129
|
+
"&::-webkit-scrollbar": { backgroundColor: "transparent", width: 5 },
|
|
2130
|
+
"&::-webkit-scrollbar-thumb": {
|
|
2131
|
+
backgroundColor: swapColors.black.black600,
|
|
2132
|
+
borderRadius: "100px"
|
|
2133
|
+
},
|
|
2134
|
+
"&::-webkit-scrollbar-track-piece:start": { marginTop: "12px" },
|
|
2135
|
+
"&::-webkit-scrollbar-track-piece:end": { marginBottom: "12px" }
|
|
2136
|
+
},
|
|
2137
|
+
style: bodyStyle,
|
|
2138
|
+
children: [
|
|
2139
|
+
onExit ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2140
|
+
import_Box11.default,
|
|
2141
|
+
{
|
|
2142
|
+
sx: {
|
|
2143
|
+
marginLeft: `${-bodyPad}px`,
|
|
2144
|
+
marginTop: `${-bodyPad}px`,
|
|
2145
|
+
position: bodyMaxHeight || height || mobile && fullWidth || fullScreen ? "fixed" : "absolute",
|
|
2146
|
+
width: resolvedWidth,
|
|
2147
|
+
height: fullScreen ? "100dvh" : cssSize(bodyMaxHeight) ?? cssSize(height) ?? (mobile && fullWidth ? clientHeight : "100%"),
|
|
2148
|
+
background: "black",
|
|
2149
|
+
opacity: 0.5,
|
|
2150
|
+
zIndex: 10
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
) : null,
|
|
2154
|
+
children
|
|
2155
|
+
]
|
|
2156
|
+
}
|
|
2157
|
+
)
|
|
2158
|
+
] }) : null,
|
|
2159
|
+
(label || secondaryButton || primaryButton) && !disUnderLine ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_Divider.default, {}) : null,
|
|
2160
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2161
|
+
import_Box11.default,
|
|
2162
|
+
{
|
|
2163
|
+
sx: {
|
|
2164
|
+
padding: label || secondaryButton || primaryButton ? mobile ? "12px 16px" : "16px 24px" : void 0,
|
|
2165
|
+
borderRadius: "0px 0px 12px 12px",
|
|
2166
|
+
display: "flex",
|
|
2167
|
+
flexDirection: mobile ? "column" : "row",
|
|
2168
|
+
alignItems: "center",
|
|
2169
|
+
justifyContent: "space-between"
|
|
2170
|
+
},
|
|
2171
|
+
children: footer ?? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
2172
|
+
!buttonFullWidth || !footerDisplayColumn ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2173
|
+
import_Box11.default,
|
|
2174
|
+
{
|
|
2175
|
+
sx: {
|
|
2176
|
+
marginBottom: mobile && label ? "12px" : 0,
|
|
2177
|
+
fontSize: mobile ? 16 : 18,
|
|
2178
|
+
fontWeight: 700,
|
|
2179
|
+
lineHeight: 1.4
|
|
2180
|
+
},
|
|
2181
|
+
children: label
|
|
2182
|
+
}
|
|
2183
|
+
) : null,
|
|
2184
|
+
secondaryButton || primaryButton ? /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2185
|
+
import_Box11.default,
|
|
2186
|
+
{
|
|
2187
|
+
sx: {
|
|
2188
|
+
width: buttonFullWidth || footerDisplayColumn || mobile ? "100%" : void 0,
|
|
2189
|
+
display: "flex",
|
|
2190
|
+
flexDirection: footerDisplayColumn ? "column-reverse" : "row",
|
|
2191
|
+
alignItems: "center"
|
|
2192
|
+
},
|
|
2193
|
+
children: [
|
|
2194
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2195
|
+
import_Box11.default,
|
|
2196
|
+
{
|
|
2197
|
+
sx: {
|
|
2198
|
+
width: mobile && !buttonFullWidth && !footerDisplayColumn ? void 0 : "100%",
|
|
2199
|
+
marginRight: !footerDisplayColumn && secondaryButton ? "8px" : 0
|
|
2200
|
+
},
|
|
2201
|
+
children: secondaryButton ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2202
|
+
FooterButton,
|
|
2203
|
+
{
|
|
2204
|
+
item: secondaryButton,
|
|
2205
|
+
fullWidth: Boolean(buttonFullWidth || footerDisplayColumn),
|
|
2206
|
+
fallbackVariant: "secondary"
|
|
2207
|
+
}
|
|
2208
|
+
) : null
|
|
2209
|
+
}
|
|
2210
|
+
),
|
|
2211
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_Box11.default, { sx: { width: "100%", marginBottom: footerDisplayColumn ? "8px" : 0 }, children: primaryButton ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2212
|
+
FooterButton,
|
|
2213
|
+
{
|
|
2214
|
+
item: primaryButton,
|
|
2215
|
+
fullWidth: Boolean(buttonFullWidth || footerDisplayColumn || mobile),
|
|
2216
|
+
fallbackVariant: "primary"
|
|
2217
|
+
}
|
|
2218
|
+
) : null })
|
|
2219
|
+
]
|
|
2220
|
+
}
|
|
2221
|
+
) : null
|
|
2222
|
+
] })
|
|
2223
|
+
}
|
|
2224
|
+
)
|
|
2225
|
+
]
|
|
2226
|
+
}
|
|
2227
|
+
);
|
|
2228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2229
|
+
import_Modal.default,
|
|
2230
|
+
{
|
|
2231
|
+
ref,
|
|
2232
|
+
open,
|
|
2233
|
+
onClose: () => onClose(),
|
|
2234
|
+
sx: {
|
|
2235
|
+
display: "flex",
|
|
2236
|
+
alignItems: fullWidth ? "flex-end" : "center",
|
|
2237
|
+
justifyContent: "center",
|
|
2238
|
+
border: "unset",
|
|
2239
|
+
margin: fullWidth || fullScreen ? 0 : matchXS ? "0px 24px" : "0px 16px"
|
|
2240
|
+
},
|
|
2241
|
+
slotProps: {
|
|
2242
|
+
backdrop: {
|
|
2243
|
+
sx: { transition: "all 0.2s ease-in-out !important" },
|
|
2244
|
+
style: { overflow: "auto", WebkitOverflowScrolling: "touch" }
|
|
2245
|
+
}
|
|
2246
|
+
},
|
|
2247
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2248
|
+
import_Box11.default,
|
|
2249
|
+
{
|
|
2250
|
+
sx: {
|
|
2251
|
+
outline: "none",
|
|
2252
|
+
width: "100%",
|
|
2253
|
+
display: "flex",
|
|
2254
|
+
justifyContent: "center",
|
|
2255
|
+
alignItems: "center",
|
|
2256
|
+
left: open ? 0 : scrollbarWidth,
|
|
2257
|
+
position: "absolute",
|
|
2258
|
+
...fullWidth ? { bottom: 0 } : {}
|
|
2259
|
+
},
|
|
2260
|
+
children: slide ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_Slide.default, { in: open, direction: "up", mountOnEnter: true, unmountOnExit: true, timeout: { enter: 300, exit: 300 }, children: panel }) : panel
|
|
2261
|
+
}
|
|
2262
|
+
)
|
|
2263
|
+
}
|
|
2264
|
+
);
|
|
2265
|
+
});
|
|
2266
|
+
var Modal_default = Modal;
|
|
2267
|
+
|
|
2268
|
+
// src/components/Snackbar.tsx
|
|
2269
|
+
var import_Snackbar = __toESM(require("@mui/material/Snackbar"), 1);
|
|
2270
|
+
var import_Slide2 = __toESM(require("@mui/material/Slide"), 1);
|
|
2271
|
+
var import_Fade2 = __toESM(require("@mui/material/Fade"), 1);
|
|
2272
|
+
var import_Box12 = __toESM(require("@mui/material/Box"), 1);
|
|
2273
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2274
|
+
var TransitionLeft = (p) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Slide2.default, { ...p, direction: "left" });
|
|
2275
|
+
var TransitionRight = (p) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Slide2.default, { ...p, direction: "right" });
|
|
2276
|
+
var TransitionUp = (p) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Slide2.default, { ...p, direction: "up" });
|
|
2277
|
+
var TransitionDown = (p) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Slide2.default, { ...p, direction: "down" });
|
|
2278
|
+
var TransitionFade = (p) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Fade2.default, { ...p });
|
|
2279
|
+
var iconClose = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2280
|
+
"path",
|
|
2281
|
+
{
|
|
2282
|
+
d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",
|
|
2283
|
+
fill: "white"
|
|
2284
|
+
}
|
|
2285
|
+
) });
|
|
2286
|
+
var iconChecked = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { d: "M21 7.00003L9 19L3.5 13.5L4.91 12.09L9 16.17L19.59 5.59003L21 7.00003Z", fill: "white" }) });
|
|
2287
|
+
var iconError = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2288
|
+
"path",
|
|
2289
|
+
{
|
|
2290
|
+
d: "M13 13H11V7H13V13ZM13 17H11V15H13V17ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2Z",
|
|
2291
|
+
fill: "white"
|
|
2292
|
+
}
|
|
2293
|
+
) });
|
|
2294
|
+
var Snackbar = ({
|
|
2295
|
+
message,
|
|
2296
|
+
transitionDirection,
|
|
2297
|
+
transitionDuration,
|
|
2298
|
+
width,
|
|
2299
|
+
height,
|
|
2300
|
+
variant,
|
|
2301
|
+
action,
|
|
2302
|
+
revertButton,
|
|
2303
|
+
closeIcon,
|
|
2304
|
+
icon,
|
|
2305
|
+
checkIcon,
|
|
2306
|
+
errorIcon,
|
|
2307
|
+
sx,
|
|
2308
|
+
...rest
|
|
2309
|
+
}) => {
|
|
2310
|
+
const bg = variant === "success" ? swapColors.success.success800 : variant === "error" ? swapColors.danger.danger900 : swapColors.black.black1000;
|
|
2311
|
+
const border = variant === "success" ? swapColors.success.successA11y : variant === "error" ? swapColors.danger.dangerA11y : swapColors.black.black1000;
|
|
2312
|
+
const leadingIcon = checkIcon ? iconChecked : errorIcon ? icon ?? iconError : icon;
|
|
2313
|
+
const ourStyles = {
|
|
2314
|
+
"@media only screen and (min-width: 600px)": { width: "fit-content", marginRight: "24px" },
|
|
2315
|
+
"@media only screen and (max-width: 600px)": {
|
|
2316
|
+
width: "unset",
|
|
2317
|
+
bottom: 16,
|
|
2318
|
+
left: 16,
|
|
2319
|
+
right: 16
|
|
2320
|
+
},
|
|
2321
|
+
"& .MuiSnackbarContent-root": {
|
|
2322
|
+
flexWrap: "nowrap",
|
|
2323
|
+
minWidth: 320,
|
|
2324
|
+
maxWidth: 640,
|
|
2325
|
+
width: cssSize(width) ?? "unset",
|
|
2326
|
+
height: cssSize(height) ?? "unset",
|
|
2327
|
+
boxShadow: swapShadows.l,
|
|
2328
|
+
borderRadius: swapRadius.m,
|
|
2329
|
+
backgroundColor: bg,
|
|
2330
|
+
border: `1px solid ${border}`,
|
|
2331
|
+
padding: "12px 16px",
|
|
2332
|
+
boxSizing: "border-box"
|
|
2333
|
+
},
|
|
2334
|
+
"& .MuiSnackbarContent-message": { padding: 0 },
|
|
2335
|
+
"& .MuiSnackbarContent-action": { padding: 0 }
|
|
2336
|
+
};
|
|
2337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2338
|
+
import_Snackbar.default,
|
|
2339
|
+
{
|
|
2340
|
+
...rest,
|
|
2341
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
2342
|
+
message: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2343
|
+
import_Box12.default,
|
|
2344
|
+
{
|
|
2345
|
+
sx: {
|
|
2346
|
+
display: "flex",
|
|
2347
|
+
alignItems: "center",
|
|
2348
|
+
fontSize: 14,
|
|
2349
|
+
fontWeight: 400,
|
|
2350
|
+
lineHeight: 1.6,
|
|
2351
|
+
color: "#ffffff"
|
|
2352
|
+
},
|
|
2353
|
+
children: [
|
|
2354
|
+
leadingIcon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
2355
|
+
leadingIcon,
|
|
2356
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Box12.default, { sx: { width: "8px", height: "100%" } })
|
|
2357
|
+
] }) : null,
|
|
2358
|
+
message
|
|
2359
|
+
]
|
|
2360
|
+
}
|
|
2361
|
+
),
|
|
2362
|
+
action: action ?? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
2363
|
+
revertButton ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2364
|
+
import_Box12.default,
|
|
2365
|
+
{
|
|
2366
|
+
sx: {
|
|
2367
|
+
fontSize: 14,
|
|
2368
|
+
fontWeight: 700,
|
|
2369
|
+
lineHeight: 1.4,
|
|
2370
|
+
color: swapColors.secondary.secondary600,
|
|
2371
|
+
cursor: "pointer",
|
|
2372
|
+
whiteSpace: "nowrap",
|
|
2373
|
+
marginLeft: "8px"
|
|
2374
|
+
},
|
|
2375
|
+
onClick: revertButton.onClick,
|
|
2376
|
+
children: revertButton.label ?? "\u6536\u56DE\u64CD\u4F5C"
|
|
2377
|
+
}
|
|
2378
|
+
) : null,
|
|
2379
|
+
closeIcon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2380
|
+
IconButton_default,
|
|
2381
|
+
{
|
|
2382
|
+
hoverColor: variant === "success" ? "#006818" : variant === "error" ? "#A00204" : closeIcon.hoverColor ?? "#333333",
|
|
2383
|
+
onClick: closeIcon.onClick,
|
|
2384
|
+
sx: { marginLeft: "8px" },
|
|
2385
|
+
children: closeIcon.icon ?? iconClose
|
|
2386
|
+
}
|
|
2387
|
+
) : null
|
|
2388
|
+
] }),
|
|
2389
|
+
slots: {
|
|
2390
|
+
transition: transitionDirection === "left" ? TransitionLeft : transitionDirection === "right" ? TransitionRight : transitionDirection === "up" ? TransitionUp : transitionDirection === "down" ? TransitionDown : TransitionFade,
|
|
2391
|
+
...rest.slots
|
|
2392
|
+
},
|
|
2393
|
+
transitionDuration
|
|
2394
|
+
}
|
|
2395
|
+
);
|
|
2396
|
+
};
|
|
2397
|
+
var Snackbar_default = Snackbar;
|
|
2398
|
+
|
|
2399
|
+
// src/components/RadioList.tsx
|
|
2400
|
+
var React22 = __toESM(require("react"), 1);
|
|
2401
|
+
var import_Box13 = __toESM(require("@mui/material/Box"), 1);
|
|
2402
|
+
|
|
2403
|
+
// src/components/selectionList.styles.ts
|
|
2404
|
+
function selectionListStyles(opts) {
|
|
2405
|
+
const { checked, multiline, line, width, height } = opts;
|
|
2406
|
+
return {
|
|
2407
|
+
width: cssSize(width) ?? (multiline ? 240 : line ? 342 : 327),
|
|
2408
|
+
height: cssSize(height) ?? (multiline ? 69 : line ? 76 : 54),
|
|
2409
|
+
padding: line ? "16px" : multiline ? "12px 16px" : "15px 16px",
|
|
2410
|
+
border: checked ? `1px solid ${swapColors.primary.primary400}` : `1px solid ${swapColors.black.black500}`,
|
|
2411
|
+
boxSizing: "border-box",
|
|
2412
|
+
borderRadius: "8px",
|
|
2413
|
+
display: "flex",
|
|
2414
|
+
alignItems: "center",
|
|
2415
|
+
justifyContent: "space-between",
|
|
2416
|
+
cursor: "pointer",
|
|
2417
|
+
backgroundColor: checked ? swapColors.primary.primary50 : "white",
|
|
2418
|
+
WebkitTapHighlightColor: "transparent",
|
|
2419
|
+
"&:hover": {
|
|
2420
|
+
backgroundColor: checked ? swapColors.primary.primary50 : swapColors.black.black100,
|
|
2421
|
+
border: checked ? `1px solid ${swapColors.primary.primary400}` : `1px solid ${swapColors.black.black600}`
|
|
2422
|
+
}
|
|
2423
|
+
};
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
// src/components/RadioList.tsx
|
|
2427
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2428
|
+
function SelectionListInner({
|
|
2429
|
+
control,
|
|
2430
|
+
title,
|
|
2431
|
+
subtitle,
|
|
2432
|
+
multiline,
|
|
2433
|
+
line
|
|
2434
|
+
}) {
|
|
2435
|
+
const ref = React22.useRef(null);
|
|
2436
|
+
const [lineHeight, setLineHeight] = React22.useState(44);
|
|
2437
|
+
React22.useEffect(() => {
|
|
2438
|
+
if (ref.current) setLineHeight(Math.max(ref.current.offsetHeight, 44));
|
|
2439
|
+
}, []);
|
|
2440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
2441
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_Box13.default, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
2442
|
+
control,
|
|
2443
|
+
line ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_Box13.default, { sx: { display: "flex", alignItems: "center", marginLeft: "4px" }, children: [
|
|
2444
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2445
|
+
Typography_default,
|
|
2446
|
+
{
|
|
2447
|
+
variant: "title",
|
|
2448
|
+
style: { maxWidth: 56, minWidth: 56, textAlign: "center", wordBreak: "break-word" },
|
|
2449
|
+
children: title
|
|
2450
|
+
}
|
|
2451
|
+
),
|
|
2452
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_Box13.default, { sx: { height: lineHeight, width: "1px", margin: "0 12px", backgroundColor: "#909090" } }),
|
|
2453
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2454
|
+
Typography_default,
|
|
2455
|
+
{
|
|
2456
|
+
variant: "body2_loose",
|
|
2457
|
+
color: "black800",
|
|
2458
|
+
style: { width: "100%", wordBreak: "break-word" },
|
|
2459
|
+
children: subtitle
|
|
2460
|
+
}
|
|
2461
|
+
) })
|
|
2462
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_Box13.default, { sx: { display: "flex", flexDirection: "column" }, children: [
|
|
2463
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Typography_default, { variant: "title", children: title }),
|
|
2464
|
+
multiline ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Typography_default, { variant: "body2_loose", color: "black800", children: subtitle }) : null
|
|
2465
|
+
] })
|
|
2466
|
+
] }),
|
|
2467
|
+
!multiline && !line ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Typography_default, { variant: "body2_loose", color: "black800", children: subtitle }) : null
|
|
2468
|
+
] });
|
|
2469
|
+
}
|
|
2470
|
+
var RadioList = React22.forwardRef(function RadioList2({ width, height, title, subtitle, multiline, checked, line, sx, ...rest }, ref) {
|
|
2471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2472
|
+
import_Box13.default,
|
|
2473
|
+
{
|
|
2474
|
+
ref,
|
|
2475
|
+
sx: [
|
|
2476
|
+
selectionListStyles({ checked, multiline, line, width, height }),
|
|
2477
|
+
...Array.isArray(sx) ? sx : [sx]
|
|
2478
|
+
],
|
|
2479
|
+
...rest,
|
|
2480
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2481
|
+
SelectionListInner,
|
|
2482
|
+
{
|
|
2483
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RadioButton_default, { disableHover: true, checked: Boolean(checked), sx: { marginLeft: "4px" } }),
|
|
2484
|
+
title,
|
|
2485
|
+
subtitle,
|
|
2486
|
+
multiline,
|
|
2487
|
+
line
|
|
2488
|
+
}
|
|
2489
|
+
)
|
|
2490
|
+
}
|
|
2491
|
+
);
|
|
2492
|
+
});
|
|
2493
|
+
var RadioList_default = RadioList;
|
|
2494
|
+
|
|
2495
|
+
// src/components/CheckBoxList.tsx
|
|
2496
|
+
var React23 = __toESM(require("react"), 1);
|
|
2497
|
+
var import_Box14 = __toESM(require("@mui/material/Box"), 1);
|
|
2498
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2499
|
+
var CheckBoxList = React23.forwardRef(function CheckBoxList2({ width, height, title, subtitle, multiline, checked, line, sx, ...rest }, ref) {
|
|
2500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2501
|
+
import_Box14.default,
|
|
2502
|
+
{
|
|
2503
|
+
ref,
|
|
2504
|
+
sx: [
|
|
2505
|
+
selectionListStyles({ checked, multiline, line, width, height }),
|
|
2506
|
+
...Array.isArray(sx) ? sx : [sx]
|
|
2507
|
+
],
|
|
2508
|
+
...rest,
|
|
2509
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2510
|
+
SelectionListInner,
|
|
2511
|
+
{
|
|
2512
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CheckBox_default, { disableHover: true, checked: Boolean(checked), sx: { marginLeft: "4px" } }),
|
|
2513
|
+
title,
|
|
2514
|
+
subtitle,
|
|
2515
|
+
multiline,
|
|
2516
|
+
line
|
|
2517
|
+
}
|
|
2518
|
+
)
|
|
2519
|
+
}
|
|
2520
|
+
);
|
|
2521
|
+
});
|
|
2522
|
+
var CheckBoxList_default = CheckBoxList;
|
|
2523
|
+
|
|
2524
|
+
// src/components/AutoComplete.tsx
|
|
2525
|
+
var React24 = __toESM(require("react"), 1);
|
|
2526
|
+
var import_Autocomplete = __toESM(require("@mui/material/Autocomplete"), 1);
|
|
2527
|
+
var import_InputBase = __toESM(require("@mui/material/InputBase"), 1);
|
|
2528
|
+
var import_Popper = __toESM(require("@mui/material/Popper"), 1);
|
|
2529
|
+
var import_Box15 = __toESM(require("@mui/material/Box"), 1);
|
|
2530
|
+
var import_styles3 = require("@mui/material/styles");
|
|
2531
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2532
|
+
var checkSvg3 = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2533
|
+
"path",
|
|
2534
|
+
{
|
|
2535
|
+
d: "M17.4998 5.83345L7.49984 15.8334L2.9165 11.2501L4.0915 10.0751L7.49984 13.4751L16.3248 4.65845L17.4998 5.83345Z",
|
|
2536
|
+
fill: "#4862CC"
|
|
2537
|
+
}
|
|
2538
|
+
) });
|
|
2539
|
+
var AutoComplete = (props) => {
|
|
2540
|
+
const [inputValue, setInputValue] = React24.useState("");
|
|
2541
|
+
const {
|
|
2542
|
+
open = false,
|
|
2543
|
+
helperText,
|
|
2544
|
+
value,
|
|
2545
|
+
handleNoOptionsValueChange,
|
|
2546
|
+
options = [],
|
|
2547
|
+
placeholder,
|
|
2548
|
+
placement,
|
|
2549
|
+
title,
|
|
2550
|
+
width,
|
|
2551
|
+
anchorEl,
|
|
2552
|
+
disableFreeInput,
|
|
2553
|
+
renderOption,
|
|
2554
|
+
getOptionLabel,
|
|
2555
|
+
noOptionsText,
|
|
2556
|
+
renderInput,
|
|
2557
|
+
optionsMaxHeight,
|
|
2558
|
+
anchorOrigin,
|
|
2559
|
+
addNewOptionsText,
|
|
2560
|
+
...other
|
|
2561
|
+
} = props;
|
|
2562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2563
|
+
import_Popper.default,
|
|
2564
|
+
{
|
|
2565
|
+
open,
|
|
2566
|
+
anchorEl,
|
|
2567
|
+
placement: placement ?? "bottom-start",
|
|
2568
|
+
sx: {
|
|
2569
|
+
border: `1px solid ${swapColors.black.black500}`,
|
|
2570
|
+
boxShadow: swapShadows.m,
|
|
2571
|
+
borderRadius: "8px",
|
|
2572
|
+
width: cssSize(width) ?? 320,
|
|
2573
|
+
zIndex: 1301,
|
|
2574
|
+
fontSize: 13,
|
|
2575
|
+
color: "#586069",
|
|
2576
|
+
backgroundColor: "#fff",
|
|
2577
|
+
marginTop: `${anchorOrigin?.vertical ?? -65}px !important`,
|
|
2578
|
+
marginLeft: `${anchorOrigin?.horizontal ?? 0}px !important`,
|
|
2579
|
+
boxSizing: "border-box"
|
|
2580
|
+
},
|
|
2581
|
+
children: [
|
|
2582
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_Box15.default, { sx: { padding: "16px 16px 8px 16px", fontWeight: 600 }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typography_default, { variant: "caption1", color: "black800", children: title }) }),
|
|
2583
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2584
|
+
import_Autocomplete.default,
|
|
2585
|
+
{
|
|
2586
|
+
disablePortal: true,
|
|
2587
|
+
...other,
|
|
2588
|
+
open: true,
|
|
2589
|
+
options,
|
|
2590
|
+
renderOption,
|
|
2591
|
+
getOptionLabel,
|
|
2592
|
+
onInputChange: (_, v) => setInputValue(v),
|
|
2593
|
+
slotProps: {
|
|
2594
|
+
paper: {
|
|
2595
|
+
sx: {
|
|
2596
|
+
boxShadow: "none",
|
|
2597
|
+
margin: 0,
|
|
2598
|
+
color: "#586069",
|
|
2599
|
+
fontSize: 13,
|
|
2600
|
+
border: "none",
|
|
2601
|
+
paddingRight: "5px"
|
|
2602
|
+
}
|
|
2603
|
+
},
|
|
2604
|
+
listbox: {
|
|
2605
|
+
sx: {
|
|
2606
|
+
maxHeight: cssSize(optionsMaxHeight),
|
|
2607
|
+
"& .MuiAutocomplete-option": {
|
|
2608
|
+
fontSize: 14,
|
|
2609
|
+
fontWeight: 700,
|
|
2610
|
+
minHeight: "auto",
|
|
2611
|
+
alignItems: "flex-start",
|
|
2612
|
+
padding: "8px 16px",
|
|
2613
|
+
color: "#000",
|
|
2614
|
+
'&[aria-selected="true"]': { display: "none" },
|
|
2615
|
+
"&.Mui-focused": {
|
|
2616
|
+
backgroundColor: swapColors.primary.primary50,
|
|
2617
|
+
color: swapColors.primary.primary800
|
|
2618
|
+
}
|
|
2619
|
+
},
|
|
2620
|
+
"&::-webkit-scrollbar": { backgroundColor: "transparent", width: 5 },
|
|
2621
|
+
"&::-webkit-scrollbar-thumb": {
|
|
2622
|
+
backgroundColor: swapColors.black.black600,
|
|
2623
|
+
borderRadius: "100px"
|
|
2624
|
+
},
|
|
2625
|
+
"&::-webkit-scrollbar-track-piece:start": { marginTop: "12px" },
|
|
2626
|
+
"&::-webkit-scrollbar-track-piece:end": { marginBottom: "12px" }
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2629
|
+
// popper.js 會寫入 inline 的 absolute/transform,需 !important 拉回文流,
|
|
2630
|
+
// 讓清單留在面板內、排在已選面板下方
|
|
2631
|
+
popper: {
|
|
2632
|
+
sx: {
|
|
2633
|
+
position: "static !important",
|
|
2634
|
+
transform: "none !important",
|
|
2635
|
+
width: "100% !important"
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
},
|
|
2639
|
+
noOptionsText: disableFreeInput ? "\u7121\u6B64\u9078\u9805" : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2640
|
+
import_Box15.default,
|
|
2641
|
+
{
|
|
2642
|
+
sx: {
|
|
2643
|
+
fontSize: 14,
|
|
2644
|
+
fontWeight: 700,
|
|
2645
|
+
lineHeight: 1.4,
|
|
2646
|
+
display: "flex",
|
|
2647
|
+
justifyContent: "space-between",
|
|
2648
|
+
alignItems: "center",
|
|
2649
|
+
flexWrap: "wrap"
|
|
2650
|
+
},
|
|
2651
|
+
children: [
|
|
2652
|
+
noOptionsText ?? "\u7121\u6B64\u9078\u9805",
|
|
2653
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2654
|
+
import_Box15.default,
|
|
2655
|
+
{
|
|
2656
|
+
sx: {
|
|
2657
|
+
color: swapColors.primary.primary400,
|
|
2658
|
+
cursor: "pointer",
|
|
2659
|
+
"&:hover": { textDecoration: "underline" }
|
|
2660
|
+
},
|
|
2661
|
+
onMouseDown: () => handleNoOptionsValueChange?.(inputValue),
|
|
2662
|
+
children: [
|
|
2663
|
+
addNewOptionsText ?? "\u4F7F\u7528",
|
|
2664
|
+
" \u300C",
|
|
2665
|
+
inputValue,
|
|
2666
|
+
"\u300D"
|
|
2667
|
+
]
|
|
2668
|
+
}
|
|
2669
|
+
)
|
|
2670
|
+
]
|
|
2671
|
+
}
|
|
2672
|
+
),
|
|
2673
|
+
renderInput: renderInput ?? ((params) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2674
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2675
|
+
import_InputBase.default,
|
|
2676
|
+
{
|
|
2677
|
+
placeholder,
|
|
2678
|
+
ref: params.slotProps.input.ref,
|
|
2679
|
+
inputProps: params.slotProps.htmlInput,
|
|
2680
|
+
autoFocus: true,
|
|
2681
|
+
sx: {
|
|
2682
|
+
padding: "0 16px 16px 16px",
|
|
2683
|
+
width: "100%",
|
|
2684
|
+
borderBottom: "1px solid #dfe2e5",
|
|
2685
|
+
"& input": {
|
|
2686
|
+
height: 16,
|
|
2687
|
+
borderRadius: "8px",
|
|
2688
|
+
backgroundColor: swapColors.black.white,
|
|
2689
|
+
padding: "13px 16px",
|
|
2690
|
+
border: "1px solid #ced4da",
|
|
2691
|
+
fontSize: 14,
|
|
2692
|
+
"&:focus": {
|
|
2693
|
+
boxShadow: `${(0, import_styles3.alpha)(swapColors.primary.primary400, 0.25)} 0 0 0 0.2rem`,
|
|
2694
|
+
borderColor: swapColors.primary.primary400
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
),
|
|
2700
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2701
|
+
import_Box15.default,
|
|
2702
|
+
{
|
|
2703
|
+
sx: {
|
|
2704
|
+
minHeight: 52,
|
|
2705
|
+
padding: "16px 16px",
|
|
2706
|
+
display: "grid",
|
|
2707
|
+
gap: "10px",
|
|
2708
|
+
alignItems: "center",
|
|
2709
|
+
gridTemplateColumns: "auto 20px",
|
|
2710
|
+
backgroundColor: "transparent",
|
|
2711
|
+
color: swapColors.primary.primary400,
|
|
2712
|
+
fontSize: 14,
|
|
2713
|
+
fontWeight: 700,
|
|
2714
|
+
lineHeight: 1.4,
|
|
2715
|
+
boxShadow: "inset 0px -1px 0px #ECECEC"
|
|
2716
|
+
},
|
|
2717
|
+
children: [
|
|
2718
|
+
value,
|
|
2719
|
+
checkSvg3
|
|
2720
|
+
]
|
|
2721
|
+
}
|
|
2722
|
+
) : null
|
|
2723
|
+
] }))
|
|
2724
|
+
}
|
|
2725
|
+
)
|
|
2726
|
+
]
|
|
2727
|
+
}
|
|
2728
|
+
) });
|
|
2729
|
+
};
|
|
2730
|
+
var AutoComplete_default = AutoComplete;
|
|
2731
|
+
|
|
2732
|
+
// src/components/Dropdown.tsx
|
|
2733
|
+
var import_Select2 = __toESM(require("@mui/material/Select"), 1);
|
|
2734
|
+
var import_FormControl2 = __toESM(require("@mui/material/FormControl"), 1);
|
|
2735
|
+
var import_FormHelperText2 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
2736
|
+
var import_OutlinedInput2 = __toESM(require("@mui/material/OutlinedInput"), 1);
|
|
2737
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2738
|
+
var Dropdown = ({
|
|
2739
|
+
children,
|
|
2740
|
+
formControlStyle,
|
|
2741
|
+
inputProps,
|
|
2742
|
+
MenuProps,
|
|
2743
|
+
helperText,
|
|
2744
|
+
width,
|
|
2745
|
+
height,
|
|
2746
|
+
helperTextStyle,
|
|
2747
|
+
sx,
|
|
2748
|
+
...rest
|
|
2749
|
+
}) => {
|
|
2750
|
+
const large = (height ?? 0) >= 56;
|
|
2751
|
+
const ourStyles = {
|
|
2752
|
+
"& .MuiSelect-select": {
|
|
2753
|
+
height: height ? large ? height - 38 : height - 24 : 16,
|
|
2754
|
+
display: "flex",
|
|
2755
|
+
alignItems: "center",
|
|
2756
|
+
padding: large ? "19px 8px 19px 24px" : "12px 4px 12px 16px",
|
|
2757
|
+
fontSize: large ? 16 : 14,
|
|
2758
|
+
lineHeight: large ? "18px" : "15.75px",
|
|
2759
|
+
fontWeight: 700,
|
|
2760
|
+
color: swapColors.black.black800,
|
|
2761
|
+
"&:hover": { color: swapColors.black.black1000, backgroundColor: "white", fontWeight: 700 },
|
|
2762
|
+
"&:focus-visible": { color: swapColors.black.black1000, backgroundColor: "white", fontWeight: 700 }
|
|
2763
|
+
},
|
|
2764
|
+
"& .MuiSelect-icon": { marginTop: "2px", width: 20, height: 20, color: swapColors.black.black800 }
|
|
2765
|
+
};
|
|
2766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_FormControl2.default, { variant: "outlined", style: formControlStyle, sx: { width: cssSize(width) ?? "100%" }, children: [
|
|
2767
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2768
|
+
import_Select2.default,
|
|
2769
|
+
{
|
|
2770
|
+
...rest,
|
|
2771
|
+
inputProps,
|
|
2772
|
+
input: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2773
|
+
import_OutlinedInput2.default,
|
|
2774
|
+
{
|
|
2775
|
+
sx: {
|
|
2776
|
+
"& .MuiOutlinedInput-notchedOutline": { borderColor: swapColors.black.black500 },
|
|
2777
|
+
"&:hover": { borderColor: swapColors.black.black1000, "& svg": { color: swapColors.black.black1000 } },
|
|
2778
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
2779
|
+
borderColor: swapColors.black.black1000,
|
|
2780
|
+
borderWidth: 1
|
|
2781
|
+
},
|
|
2782
|
+
"&.Mui-focused svg": { color: swapColors.black.black1000 }
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
),
|
|
2786
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
2787
|
+
MenuProps: {
|
|
2788
|
+
slotProps: { paper: { sx: { marginTop: "8px" } } },
|
|
2789
|
+
...MenuProps
|
|
2790
|
+
},
|
|
2791
|
+
children
|
|
2792
|
+
}
|
|
2793
|
+
),
|
|
2794
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_FormHelperText2.default, { style: helperTextStyle, children: helperText })
|
|
2795
|
+
] });
|
|
2796
|
+
};
|
|
2797
|
+
var Dropdown_default = Dropdown;
|
|
2798
|
+
|
|
2799
|
+
// src/components/SegmentedTab.tsx
|
|
2800
|
+
var React25 = __toESM(require("react"), 1);
|
|
2801
|
+
var import_Tab2 = __toESM(require("@mui/material/Tab"), 1);
|
|
2802
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2803
|
+
var SegmentedTab = React25.forwardRef(function SegmentedTab2({ width, height, fontSize, flex, sx, ...rest }, ref) {
|
|
2804
|
+
const ourStyles = {
|
|
2805
|
+
textTransform: "unset",
|
|
2806
|
+
padding: "12px 16px",
|
|
2807
|
+
minWidth: 0,
|
|
2808
|
+
minHeight: cssSize(height) ?? 40,
|
|
2809
|
+
width: cssSize(width) ?? "fit-content",
|
|
2810
|
+
fontWeight: 700,
|
|
2811
|
+
fontSize: fontSize ?? 14,
|
|
2812
|
+
lineHeight: 1.4,
|
|
2813
|
+
color: "#6F6F6F",
|
|
2814
|
+
opacity: 1,
|
|
2815
|
+
whiteSpace: "nowrap",
|
|
2816
|
+
flex,
|
|
2817
|
+
"&:hover": { color: "#000000" },
|
|
2818
|
+
// 讓文字墊在 slide 指示層之上
|
|
2819
|
+
"& .MuiTab-wrapper, &": { position: "relative", zIndex: 5 }
|
|
2820
|
+
};
|
|
2821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_Tab2.default, { ref, disableRipple: true, sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]], ...rest });
|
|
2822
|
+
});
|
|
2823
|
+
var SegmentedTab_default = SegmentedTab;
|
|
2824
|
+
|
|
2825
|
+
// src/components/SegmentedTabs.tsx
|
|
2826
|
+
var React26 = __toESM(require("react"), 1);
|
|
2827
|
+
var import_Tabs2 = __toESM(require("@mui/material/Tabs"), 1);
|
|
2828
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2829
|
+
var SegmentedTabs = React26.forwardRef(function SegmentedTabs2({ children, width, slide, sx, ...rest }, ref) {
|
|
2830
|
+
const innerRef = React26.useRef(null);
|
|
2831
|
+
React26.useEffect(() => {
|
|
2832
|
+
if (innerRef.current && rest.variant === "scrollable") {
|
|
2833
|
+
const el = innerRef.current.querySelector(".MuiTab-root.Mui-selected");
|
|
2834
|
+
if (el) {
|
|
2835
|
+
setTimeout(() => {
|
|
2836
|
+
el.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
2837
|
+
}, 1e3);
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
}, []);
|
|
2841
|
+
const ourStyles = {
|
|
2842
|
+
width: cssSize(width),
|
|
2843
|
+
boxSizing: "border-box",
|
|
2844
|
+
border: `1px solid ${swapColors.black.black500}`,
|
|
2845
|
+
borderRadius: "9px",
|
|
2846
|
+
padding: "4px 0",
|
|
2847
|
+
"& button": {
|
|
2848
|
+
borderRadius: "8px",
|
|
2849
|
+
margin: "0 4px",
|
|
2850
|
+
"&.Mui-selected": {
|
|
2851
|
+
backgroundColor: slide ? "unset" : swapColors.primary.primary50,
|
|
2852
|
+
color: swapColors.primary.primary500
|
|
2853
|
+
}
|
|
2854
|
+
},
|
|
2855
|
+
"& .MuiTabs-indicator": {
|
|
2856
|
+
borderRadius: "8px",
|
|
2857
|
+
height: slide ? "100%" : 0,
|
|
2858
|
+
backgroundColor: swapColors.primary.primary50
|
|
2859
|
+
},
|
|
2860
|
+
"& .MuiTabs-scrollButtons": {
|
|
2861
|
+
width: 32,
|
|
2862
|
+
overflow: "hidden",
|
|
2863
|
+
"&.Mui-disabled": { width: "4px" }
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2867
|
+
import_Tabs2.default,
|
|
2868
|
+
{
|
|
2869
|
+
ref: (node) => {
|
|
2870
|
+
innerRef.current = node;
|
|
2871
|
+
if (typeof ref === "function") ref(node);
|
|
2872
|
+
else if (ref) ref.current = node;
|
|
2873
|
+
},
|
|
2874
|
+
sx: [ourStyles, ...Array.isArray(sx) ? sx : [sx]],
|
|
2875
|
+
...rest,
|
|
2876
|
+
children
|
|
2877
|
+
}
|
|
2878
|
+
);
|
|
2879
|
+
});
|
|
2880
|
+
var SegmentedTabs_default = SegmentedTabs;
|
|
2881
|
+
|
|
2882
|
+
// src/components/SWAPLogo.tsx
|
|
2883
|
+
var import_Box16 = __toESM(require("@mui/material/Box"), 1);
|
|
2884
|
+
|
|
2885
|
+
// src/components/assets/SWAP_web logo.svg
|
|
2886
|
+
var SWAP_web_logo_default = 'data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0A<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0A<svg version="1.1" id="\u5716\u5C64_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0A%09 viewBox="70 0 430 226.8" style="enable-background:new 0 0 566.9 226.8;" xml:space="preserve">%0A<style type="text/css">%0A%09.st0{fill:none;}%0A%09.st1{fill:%23F7B52C;}%0A%09.st2{fill:%234862CC;}%0A</style>%0A<g>%0A%09<g>%0A%09%09<g>%0A%09%09%09<path class="st0" d="M126.6,126.9c-13.7,2.6-27.6,4.3-41.5,5.7c-0.1,2.5-0.1,4.9,0.3,7.4c1.8,13.2,10.4,24.2,22.6,29.2%0A%09%09%09%09c11.3,4.7,24.3,2.8,34.4-3.8c-3.5-8.1-6.9-16.1-10.2-24.4C130.2,136.6,128.3,131.7,126.6,126.9z"/>%0A%09%09%09<path class="st0" d="M118.6,100c-0.3-1.5-0.6-3-0.9-4.6c-7.4,2.8-14.7,6.2-20.5,11.4c-5.3,4.8-9,11-10.9,17.8%0A%09%09%09%09c12.6-1.4,25.1-3,37.5-5.2C121.8,113,120,106.5,118.6,100z"/>%0A%09%09%09<path class="st0" d="M164,107.5c2.4-1.3,4.6-2.8,6.5-4.6c6-5.3,9.4-13.4,9.3-21.4c-7.4,1-14.8,2.2-22.2,3.6%0A%09%09%09%09C160,92.4,162.2,99.9,164,107.5z"/>%0A%09%09%09<path class="st0" d="M163.1,56.6c-5.3-2.3-11.2-2.6-16.7-1.3c1.1,2.7,2.1,5.2,3.2,7.9c1.9,4.8,3.7,9.5,5.4,14.4%0A%09%09%09%09c7.8-1.5,15.7-2.8,23.6-3.9C176.2,66.1,170.6,59.9,163.1,56.6z"/>%0A%09%09%09<path class="st1" d="M158.1,118.8c-0.4-2.7-1-5.2-1.6-7.9c-1.1-4.7-2.3-9.2-3.7-13.7c-1.1-3.6-2.2-7-3.3-10.5%0A%09%09%09%09c-0.8-2.5-1.7-5-2.6-7.5c-2.5-7-5.1-14.1-7.9-21c-1,0.6-2,1.2-3,1.9c-8.6,6.2-11.4,15.1-11.4,24.7c0,2.7,0.2,5.4,0.6,8.2%0A%09%09%09%09c0.9,6.2,2.6,12.5,4.3,18c0.7,2.3,1.4,4.7,2.2,6.9c0.8,2.5,1.7,5,2.6,7.5c4.3,11.9,9.2,23.6,14.2,35.1%0A%09%09%09%09c6.6-6.7,10.3-15.7,10.7-25.3C159.5,129.7,159,124.2,158.1,118.8z"/>%0A%09%09%09<path class="st2" d="M187.6,80.6c-0.1-2.7-0.5-5.3-1.2-7.9c-2-7.5-6.4-14.3-12.8-19c-8.7-6.5-20-8.7-30.4-5.7%0A%09%09%09%09c-0.5,0.1-0.9,0.3-1.4,0.4c-2,0.7-4,1.5-5.8,2.5c-8.2,4.4-14.6,11.7-17.6,20.5c-1.6,5.1-2,10.6-1.6,16%0A%09%09%09%09c-7.6,2.7-14.9,6.1-21.3,10.9c-9.1,6.7-15.2,16.5-17.4,27.4c-0.5,2.6-0.9,5.1-1,7.8c0,0.1,0,0.2,0,0.3%0A%09%09%09%09c-0.5,14.5,6,28.6,17.6,37.3c11.9,8.9,27.4,11.5,41.5,6.5c3.3-1.2,6.3-2.7,9.3-4.5c2.3-1.4,4.5-3.1,6.5-4.9%0A%09%09%09%09c6.2-5.5,11-12.6,13.5-20.7c3.1-10.2,2.2-21.5,0.2-32c3-1.5,5.7-3.2,8.3-5.1c8.5-6.4,13.4-16.7,13.8-27.3%0A%09%09%09%09C187.7,82.1,187.7,81.3,187.6,80.6z M163.1,56.6c7.5,3.3,13.1,9.5,15.4,17.1c-7.9,1.1-15.7,2.4-23.6,3.9%0A%09%09%09%09c-1.8-4.9-3.6-9.6-5.4-14.4c-1-2.7-2.1-5.2-3.2-7.9C151.9,54,157.7,54.2,163.1,56.6z M97.4,106.8c5.8-5.1,13.1-8.7,20.5-11.4%0A%09%09%09%09c0.3,1.5,0.5,3.1,0.9,4.6c1.4,6.6,3.2,13.1,5.3,19.5c-12.4,2.3-24.9,3.9-37.5,5.2C88.3,117.8,92,111.5,97.4,106.8z M108,169.5%0A%09%09%09%09c-12.3-5-20.8-16.1-22.6-29.2c-0.3-2.5-0.4-5-0.3-7.4c13.9-1.6,27.8-3.3,41.5-5.7c1.8,4.9,3.7,9.6,5.5,14.4%0A%09%09%09%09c3.3,8.2,6.7,16.2,10.2,24.4C132.2,172.2,119.2,174.1,108,169.5z M159.3,135.2c-0.4,9.6-4.1,18.6-10.7,25.3%0A%09%09%09%09c-5-11.6-9.9-23.3-14.2-35.1c-0.9-2.5-1.8-5-2.6-7.5c-0.8-2.3-1.5-4.6-2.2-6.9c-1.7-5.6-3.4-11.8-4.3-18%0A%09%09%09%09c-0.4-2.8-0.6-5.4-0.6-8.2c0-9.5,2.8-18.3,11.4-24.7c0.9-0.7,1.9-1.3,3-1.9c2.8,6.9,5.4,14,7.9,21c0.9,2.5,1.8,5,2.6,7.5%0A%09%09%09%09c1.2,3.5,2.3,7,3.3,10.5c1.3,4.5,2.6,9,3.7,13.7c0.6,2.6,1.1,5.2,1.6,7.9C159,124.2,159.5,129.7,159.3,135.2z M170.5,102.9%0A%09%09%09%09c-2,1.8-4.2,3.3-6.5,4.6c-1.8-7.5-4-14.9-6.4-22.4c7.3-1.4,14.8-2.6,22.2-3.6C179.8,89.6,176.6,97.6,170.5,102.9z"/>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path class="st2" d="M234.1,161.1c-10.1,0-18-1.9-24.8-7.4c-1.6-1.3-1.6-3.6-0.2-5l4.8-4.8c1.2-1.2,3.1-1.3,4.5-0.3%0A%09%09%09%09c4.5,3.3,10,4.5,15.9,4.5c8.7,0,13.4-3.3,13.4-9.3c0-2.7-0.7-4.9-2.4-6.3c-1.5-1.4-3.2-2.1-6.6-2.7l-9.1-1.3%0A%09%09%09%09c-6.4-1-11.2-3-14.7-6.2c-3.6-3.6-5.4-8.5-5.4-14.8c0-13.5,10-22.9,26.2-22.9c8.9,0,15.6,1.9,21.5,6.3c1.6,1.2,1.7,3.7,0.3,5%0A%09%09%09%09l-4.6,4.6c-1.2,1.2-3,1.3-4.4,0.3c-4.3-3-9-3.4-13.3-3.4c-7.8,0-11.7,4.4-11.7,9.5c0,1.9,0.6,4,2.2,5.4c1.5,1.4,4,2.6,7,3%0A%09%09%09%09l8.9,1.3c6.9,1,11.2,2.9,14.4,5.8c4.1,3.9,5.8,9.3,5.8,16C262,152.8,249.8,161.1,234.1,161.1z"/>%0A%09%09%09<path class="st2" d="M337.5,160.4h-7.1c-1.5,0-2.8-1-3.3-2.4l-9.9-32.7c-1-3.2-5.5-3.2-6.5,0l-9.9,32.7c-0.4,1.4-1.8,2.4-3.3,2.4%0A%09%09%09%09h-7.1c-1.6,0-2.9-1-3.3-2.5l-18.3-68.6c-0.6-2.2,1.1-4.3,3.3-4.3h8.3c1.6,0,3,1.1,3.3,2.6l8,32.7c0.8,3.4,5.5,3.5,6.5,0.1%0A%09%09%09%09l9.5-32.9c0.4-1.5,1.8-2.5,3.3-2.5h5.9c1.5,0,2.9,1,3.3,2.5l9.5,33c1,3.4,5.7,3.3,6.5-0.1l8.1-32.7c0.4-1.5,1.8-2.6,3.3-2.6h8.3%0A%09%09%09%09c2.3,0,3.9,2.1,3.3,4.3l-18.4,68.6C340.4,159.5,339.1,160.4,337.5,160.4z"/>%0A%09%09%09<path class="st2" d="M410.2,158.2l-2.9-8.7c-0.5-1.4-1.8-2.3-3.3-2.3h-21.9c-1.5,0-2.8,0.9-3.2,2.3l-3,8.7%0A%09%09%09%09c-0.5,1.4-1.8,2.3-3.2,2.3h-8.2c-2.4,0-4-2.4-3.2-4.6l24.9-68.6c0.5-1.4,1.8-2.3,3.2-2.3h6.8c1.4,0,2.7,0.9,3.2,2.3l25,68.6%0A%09%09%09%09c0.8,2.2-0.8,4.6-3.2,4.6h-8C412,160.4,410.7,159.6,410.2,158.2z M390.2,116.7l-4.8,13.6c-0.8,2.2,0.9,4.6,3.2,4.6h9.2%0A%09%09%09%09c2.3,0,4-2.3,3.3-4.5l-4.6-13.6C395.5,113.7,391.2,113.6,390.2,116.7z"/>%0A%09%09%09<path class="st2" d="M464.9,132.1h-11.2c-1.9,0-3.4,1.5-3.4,3.4v21.6c0,1.9-1.5,3.4-3.4,3.4h-7.9c-1.9,0-3.4-1.5-3.4-3.4V88.5%0A%09%09%09%09c0-1.9,1.5-3.4,3.4-3.4h25.8c15.5,0,24.8,10.7,24.8,23.5C489.8,121.4,480.5,132.1,464.9,132.1z M464.2,98.2h-10.4%0A%09%09%09%09c-1.9,0-3.4,1.5-3.4,3.4v13.9c0,1.9,1.5,3.4,3.4,3.4h10.4c6.6,0,10.9-4.2,10.9-10.3C475,102.4,470.8,98.2,464.2,98.2z"/>%0A%09%09</g>%0A%09</g>%0A</g>%0A</svg>%0A';
|
|
2887
|
+
|
|
2888
|
+
// src/components/assets/SWAP_web logo-white.svg
|
|
2889
|
+
var SWAP_web_logo_white_default = 'data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0A<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0A<svg version="1.1" id="\u5716\u5C64_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0A%09 viewBox="0 0 566.9 226.8" style="enable-background:new 0 0 566.9 226.8;" xml:space="preserve">%0A<style type="text/css">%0A%09.st0{fill:%234862CC;}%0A%09.st1{fill:none;}%0A%09.st2{fill:%23F7B52C;}%0A%09.st3{fill:%23FFFFFF;}%0A</style>%0A<rect x="-24.3" y="-18.3" class="st0" width="615.5" height="263.3"/>%0A<g>%0A%09<g>%0A%09%09<g>%0A%09%09%09<path class="st1" d="M126.6,126.9c-13.7,2.6-27.6,4.3-41.5,5.7c-0.1,2.5-0.1,4.9,0.3,7.4c1.8,13.2,10.4,24.2,22.6,29.2%0A%09%09%09%09c11.3,4.7,24.3,2.8,34.4-3.8c-3.5-8.1-6.9-16.1-10.2-24.4C130.2,136.6,128.3,131.7,126.6,126.9z"/>%0A%09%09%09<path class="st1" d="M118.6,100c-0.3-1.5-0.6-3-0.9-4.6c-7.4,2.8-14.7,6.2-20.5,11.4c-5.3,4.8-9,11-10.9,17.8%0A%09%09%09%09c12.6-1.4,25.1-3,37.5-5.2C121.8,113,120,106.5,118.6,100z"/>%0A%09%09%09<path class="st1" d="M164,107.5c2.4-1.3,4.6-2.8,6.5-4.6c6-5.3,9.4-13.4,9.3-21.4c-7.4,1-14.8,2.2-22.2,3.6%0A%09%09%09%09C160,92.4,162.2,99.9,164,107.5z"/>%0A%09%09%09<path class="st1" d="M163.1,56.6c-5.3-2.3-11.2-2.6-16.7-1.3c1.1,2.7,2.1,5.2,3.2,7.9c1.9,4.8,3.7,9.5,5.4,14.4%0A%09%09%09%09c7.8-1.5,15.7-2.8,23.6-3.9C176.2,66.1,170.6,59.9,163.1,56.6z"/>%0A%09%09%09<path class="st2" d="M158.1,118.8c-0.4-2.7-1-5.2-1.6-7.9c-1.1-4.7-2.3-9.2-3.7-13.7c-1.1-3.6-2.2-7-3.3-10.5%0A%09%09%09%09c-0.8-2.5-1.7-5-2.6-7.5c-2.5-7-5.1-14.1-7.9-21c-1,0.6-2,1.2-3,1.9c-8.6,6.2-11.4,15.1-11.4,24.7c0,2.7,0.2,5.4,0.6,8.2%0A%09%09%09%09c0.9,6.2,2.6,12.5,4.3,18c0.7,2.3,1.4,4.7,2.2,6.9c0.8,2.5,1.7,5,2.6,7.5c4.3,11.9,9.2,23.6,14.2,35.1%0A%09%09%09%09c6.6-6.7,10.3-15.7,10.7-25.3C159.5,129.7,159,124.2,158.1,118.8z"/>%0A%09%09%09<path class="st3" d="M187.6,80.6c-0.1-2.7-0.5-5.3-1.2-7.9c-2-7.5-6.4-14.3-12.8-19c-8.7-6.5-20-8.7-30.4-5.7%0A%09%09%09%09c-0.5,0.1-0.9,0.3-1.4,0.4c-2,0.7-4,1.5-5.8,2.5c-8.2,4.4-14.6,11.7-17.6,20.5c-1.6,5.1-2,10.6-1.6,16%0A%09%09%09%09c-7.6,2.7-14.9,6.1-21.3,10.9c-9.1,6.7-15.2,16.5-17.4,27.4c-0.5,2.6-0.9,5.1-1,7.8c0,0.1,0,0.2,0,0.3%0A%09%09%09%09c-0.5,14.5,6,28.6,17.6,37.3c11.9,8.9,27.4,11.5,41.5,6.5c3.3-1.2,6.3-2.7,9.3-4.5c2.3-1.4,4.5-3.1,6.5-4.9%0A%09%09%09%09c6.2-5.5,11-12.6,13.5-20.7c3.1-10.2,2.2-21.5,0.2-32c3-1.5,5.7-3.2,8.3-5.1c8.5-6.4,13.4-16.7,13.8-27.3%0A%09%09%09%09C187.7,82.1,187.7,81.3,187.6,80.6z M163.1,56.6c7.5,3.3,13.1,9.5,15.4,17.1c-7.9,1.1-15.7,2.4-23.6,3.9%0A%09%09%09%09c-1.8-4.9-3.6-9.6-5.4-14.4c-1-2.7-2.1-5.2-3.2-7.9C151.9,54,157.7,54.2,163.1,56.6z M97.4,106.8c5.8-5.1,13.1-8.7,20.5-11.4%0A%09%09%09%09c0.3,1.5,0.5,3.1,0.9,4.6c1.4,6.6,3.2,13.1,5.3,19.5c-12.4,2.3-24.9,3.9-37.5,5.2C88.3,117.8,92,111.5,97.4,106.8z M108,169.5%0A%09%09%09%09c-12.3-5-20.8-16.1-22.6-29.2c-0.3-2.5-0.4-5-0.3-7.4c13.9-1.6,27.8-3.3,41.5-5.7c1.8,4.9,3.7,9.6,5.5,14.4%0A%09%09%09%09c3.3,8.2,6.7,16.2,10.2,24.4C132.2,172.2,119.2,174.1,108,169.5z M159.3,135.2c-0.4,9.6-4.1,18.6-10.7,25.3%0A%09%09%09%09c-5-11.6-9.9-23.3-14.2-35.1c-0.9-2.5-1.8-5-2.6-7.5c-0.8-2.3-1.5-4.6-2.2-6.9c-1.7-5.6-3.4-11.8-4.3-18%0A%09%09%09%09c-0.4-2.8-0.6-5.4-0.6-8.2c0-9.5,2.8-18.3,11.4-24.7c0.9-0.7,1.9-1.3,3-1.9c2.8,6.9,5.4,14,7.9,21c0.9,2.5,1.8,5,2.6,7.5%0A%09%09%09%09c1.2,3.5,2.3,7,3.3,10.5c1.3,4.5,2.6,9,3.7,13.7c0.6,2.6,1.1,5.2,1.6,7.9C159,124.2,159.5,129.7,159.3,135.2z M170.5,102.9%0A%09%09%09%09c-2,1.8-4.2,3.3-6.5,4.6c-1.8-7.5-4-14.9-6.4-22.4c7.3-1.4,14.8-2.6,22.2-3.6C179.8,89.6,176.6,97.6,170.5,102.9z"/>%0A%09%09</g>%0A%09%09<g>%0A%09%09%09<path class="st3" d="M234.1,161.1c-10.1,0-18-1.9-24.8-7.4c-1.6-1.3-1.6-3.6-0.2-5l4.8-4.8c1.2-1.2,3.1-1.3,4.5-0.3%0A%09%09%09%09c4.5,3.3,10,4.5,15.9,4.5c8.7,0,13.4-3.3,13.4-9.3c0-2.7-0.7-4.9-2.4-6.3c-1.5-1.4-3.2-2.1-6.6-2.7l-9.1-1.3%0A%09%09%09%09c-6.4-1-11.2-3-14.7-6.2c-3.6-3.6-5.4-8.5-5.4-14.8c0-13.5,10-22.9,26.2-22.9c8.9,0,15.6,1.9,21.5,6.3c1.6,1.2,1.7,3.7,0.3,5%0A%09%09%09%09l-4.6,4.6c-1.2,1.2-3,1.3-4.4,0.3c-4.3-3-9-3.4-13.3-3.4c-7.8,0-11.7,4.4-11.7,9.5c0,1.9,0.6,4,2.2,5.4c1.5,1.4,4,2.6,7,3%0A%09%09%09%09l8.9,1.3c6.9,1,11.2,2.9,14.4,5.8c4.1,3.9,5.8,9.3,5.8,16C262,152.8,249.8,161.1,234.1,161.1z"/>%0A%09%09%09<path class="st3" d="M337.5,160.4h-7.1c-1.5,0-2.8-1-3.3-2.4l-9.9-32.7c-1-3.2-5.5-3.2-6.5,0l-9.9,32.7c-0.4,1.4-1.8,2.4-3.3,2.4%0A%09%09%09%09h-7.1c-1.6,0-2.9-1-3.3-2.5l-18.3-68.6c-0.6-2.2,1.1-4.3,3.3-4.3h8.3c1.6,0,3,1.1,3.3,2.6l8,32.7c0.8,3.4,5.5,3.5,6.5,0.1%0A%09%09%09%09l9.5-32.9c0.4-1.5,1.8-2.5,3.3-2.5h5.9c1.5,0,2.9,1,3.3,2.5l9.5,33c1,3.4,5.7,3.3,6.5-0.1l8.1-32.7c0.4-1.5,1.8-2.6,3.3-2.6h8.3%0A%09%09%09%09c2.3,0,3.9,2.1,3.3,4.3l-18.4,68.6C340.4,159.5,339.1,160.4,337.5,160.4z"/>%0A%09%09%09<path class="st3" d="M410.2,158.2l-2.9-8.7c-0.5-1.4-1.8-2.3-3.3-2.3h-21.9c-1.5,0-2.8,0.9-3.2,2.3l-3,8.7%0A%09%09%09%09c-0.5,1.4-1.8,2.3-3.2,2.3h-8.2c-2.4,0-4-2.4-3.2-4.6l24.9-68.6c0.5-1.4,1.8-2.3,3.2-2.3h6.8c1.4,0,2.7,0.9,3.2,2.3l25,68.6%0A%09%09%09%09c0.8,2.2-0.8,4.6-3.2,4.6h-8C412,160.4,410.7,159.6,410.2,158.2z M390.2,116.7l-4.8,13.6c-0.8,2.2,0.9,4.6,3.2,4.6h9.2%0A%09%09%09%09c2.3,0,4-2.3,3.3-4.5l-4.6-13.6C395.5,113.7,391.2,113.6,390.2,116.7z"/>%0A%09%09%09<path class="st3" d="M464.9,132.1h-11.2c-1.9,0-3.4,1.5-3.4,3.4v21.6c0,1.9-1.5,3.4-3.4,3.4h-7.9c-1.9,0-3.4-1.5-3.4-3.4V88.5%0A%09%09%09%09c0-1.9,1.5-3.4,3.4-3.4h25.8c15.5,0,24.8,10.7,24.8,23.5C489.8,121.4,480.5,132.1,464.9,132.1z M464.2,98.2h-10.4%0A%09%09%09%09c-1.9,0-3.4,1.5-3.4,3.4v13.9c0,1.9,1.5,3.4,3.4,3.4h10.4c6.6,0,10.9-4.2,10.9-10.3C475,102.4,470.8,98.2,464.2,98.2z"/>%0A%09%09</g>%0A%09</g>%0A</g>%0A</svg>%0A';
|
|
2890
|
+
|
|
2891
|
+
// src/components/assets/SWAP BIZ_web logo_test-01.svg
|
|
2892
|
+
var SWAP_BIZ_web_logo_test_01_default = 'data:image/svg+xml,<?xml version="1.0" encoding="utf-8"?>%0A<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0A<svg version="1.1" id="\u5716\u5C64_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"%0A%09 viewBox="75 0 680.3 226.8" style="enable-background:new 0 0 680.3 226.8;" xml:space="preserve">%0A<style type="text/css">%0A%09.st0{fill:%234862CC;}%0A%09.st1{fill:%23F59225;}%0A%09.st2{fill:none;}%0A%09.st3{fill:%23F7B52C;}%0A%09.st4{fill:%2397A3E1;}%0A%09.st5{fill:%23FFFFFF;}%0A%09.st6{fill:%23C1C7ED;}%0A</style>%0A<g>%0A%09<g>%0A%09%09<path class="st1" d="M531.8,160.6H515c-1.1,0-2-0.9-2-2v-41c0-1.1,0.9-2,2-2H531c8.8,0,13.9,4.9,13.9,12.7c0,3.5-1.6,6.1-3.3,7.7%0A%09%09%09c-0.9,0.8-0.8,2.3,0.2,3c2,1.6,3.8,4.3,3.8,8.6C545.6,156,539.8,160.6,531.8,160.6z M530.3,123.4h-6.6c-1.1,0-2,0.9-2,2v6.3%0A%09%09%09c0,1.1,0.9,2,2,2h6.6c3.7,0,5.8-2.1,5.8-5.2C536.2,125.5,534.1,123.4,530.3,123.4z M530.9,141.7h-7.1c-1.1,0-2,0.9-2,2v7%0A%09%09%09c0,1.1,0.9,2,2,2h7.1c4,0,5.9-2.5,5.9-5.6C536.8,144.1,534.9,141.7,530.9,141.7z"/>%0A%09%09<path class="st1" d="M554.6,158.6v-41c0-1.1,0.9-2,2-2h4.7c1.1,0,2,0.9,2,2v41c0,1.1-0.9,2-2,2h-4.7%0A%09%09%09C555.5,160.6,554.6,159.7,554.6,158.6z"/>%0A%09%09<path class="st1" d="M571.2,158.6v-4.5c0-0.4,0.1-0.8,0.3-1.1l16.9-26.5c0.9-1.4-0.1-3.1-1.7-3.1H574c-1.1,0-2-0.9-2-2v-3.8%0A%09%09%09c0-1.1,0.9-2,2-2h24.7c1.1,0,2,0.9,2,2v4.3c0,0.4-0.1,0.8-0.3,1.1l-17,26.6c-0.9,1.4,0.1,3.1,1.7,3.1h13.6c1.1,0,2,0.9,2,2v3.8%0A%09%09%09c0,1.1-0.9,2-2,2h-25.6C572.1,160.6,571.2,159.7,571.2,158.6z"/>%0A%09</g>%0A%09<g>%0A%09%09<path class="st0" d="M236.7,161.2c-10.1,0-18-1.9-24.8-7.5c-1.5-1.3-1.6-3.6-0.2-5l4.8-4.8c1.2-1.2,3.1-1.3,4.5-0.3%0A%09%09%09c4.5,3.3,10,4.4,16,4.4c8.7,0,13.4-3.3,13.4-9.3c0-2.6-0.7-4.9-2.3-6.4c-1.5-1.4-3.2-2.1-6.7-2.7l-9.1-1.3c-6.5-1-11.2-3-14.6-6.3%0A%09%09%09c-3.6-3.6-5.4-8.5-5.4-14.8c0-13.5,10-22.9,26.3-22.9c8.9,0,15.7,1.9,21.5,6.3c1.6,1.2,1.7,3.6,0.3,5.1l-4.6,4.5%0A%09%09%09c-1.2,1.2-3,1.3-4.4,0.3c-4.3-2.9-9-3.4-13.3-3.4c-7.8,0-11.7,4.3-11.7,9.5c0,1.9,0.6,3.9,2.2,5.4c1.5,1.4,3.9,2.5,7,3l8.9,1.3%0A%09%09%09c6.9,1,11.2,2.9,14.4,5.8c4,3.8,5.8,9.3,5.8,16C264.6,153,252.4,161.2,236.7,161.2z"/>%0A%09%09<path class="st0" d="M340.3,160.6h-7.2c-1.5,0-2.8-1-3.3-2.4l-9.9-32.7c-1-3.2-5.5-3.2-6.5,0l-9.9,32.7c-0.4,1.4-1.8,2.4-3.3,2.4%0A%09%09%09h-7.2c-1.5,0-2.9-1-3.3-2.5l-18.3-68.7c-0.6-2.2,1.1-4.3,3.3-4.3h8.3c1.6,0,2.9,1.1,3.3,2.6l8,32.7c0.8,3.4,5.6,3.5,6.6,0.1%0A%09%09%09l9.5-32.9c0.4-1.5,1.8-2.5,3.3-2.5h5.9c1.5,0,2.8,1,3.3,2.5l9.5,33c1,3.3,5.7,3.2,6.6-0.1l8.1-32.7c0.4-1.5,1.7-2.6,3.3-2.6h8.3%0A%09%09%09c2.2,0,3.9,2.1,3.3,4.3l-18.4,68.7C343.1,159.6,341.8,160.6,340.3,160.6z"/>%0A%09%09<path class="st0" d="M413,158.3l-2.9-8.7c-0.5-1.4-1.8-2.3-3.2-2.3h-21.9c-1.5,0-2.7,0.9-3.2,2.3l-3,8.8c-0.5,1.4-1.8,2.3-3.2,2.3%0A%09%09%09h-8.1c-2.4,0-4-2.3-3.2-4.6l25-68.7c0.5-1.3,1.8-2.2,3.2-2.2h6.8c1.4,0,2.7,0.9,3.2,2.2l25.1,68.7c0.8,2.2-0.8,4.6-3.2,4.6h-8.1%0A%09%09%09C414.8,160.6,413.5,159.6,413,158.3z M392.9,116.8l-4.7,13.5c-0.8,2.2,0.9,4.5,3.2,4.5h9.3c2.3,0,4-2.3,3.2-4.5l-4.6-13.5%0A%09%09%09C398.3,113.7,394,113.7,392.9,116.8z"/>%0A%09%09<path class="st0" d="M467.7,132.2h-11.1c-1.9,0-3.4,1.5-3.4,3.4v21.6c0,1.9-1.5,3.4-3.4,3.4h-7.9c-1.9,0-3.4-1.5-3.4-3.4V88.5%0A%09%09%09c0-1.9,1.5-3.4,3.4-3.4h25.9c15.6,0,24.9,10.7,24.9,23.5C492.6,121.5,483.3,132.2,467.7,132.2z M467,98.3h-10.4%0A%09%09%09c-1.9,0-3.4,1.5-3.4,3.4v13.9c0,1.9,1.5,3.4,3.4,3.4H467c6.7,0,10.9-4.1,10.9-10.3C477.9,102.5,473.7,98.3,467,98.3z"/>%0A%09</g>%0A%09<g>%0A%09%09<path class="st2" d="M129.1,127c-13.7,2.6-27.6,4.2-41.5,5.8c-0.1,2.5-0.1,5,0.3,7.5c1.8,13.2,10.4,24.2,22.6,29.3%0A%09%09%09c11.3,4.7,24.3,2.8,34.4-3.8c-3.5-8.1-6.9-16.2-10.2-24.4C132.8,136.6,130.9,131.8,129.1,127z"/>%0A%09%09<path class="st2" d="M121.2,99.9c-0.3-1.5-0.6-3-0.8-4.5c-7.4,2.7-14.7,6.3-20.5,11.4c-5.3,4.7-9,11-10.9,17.8%0A%09%09%09c12.6-1.4,25.2-2.9,37.6-5.2C124.4,113,122.5,106.5,121.2,99.9z"/>%0A%09%09<path class="st2" d="M166.5,107.5c2.3-1.3,4.5-2.8,6.5-4.5c6.1-5.3,9.4-13.3,9.3-21.4c-7.4,1-14.9,2.2-22.2,3.6%0A%09%09%09C162.6,92.5,164.8,99.9,166.5,107.5z"/>%0A%09%09<path class="st2" d="M165.7,56.6c-5.3-2.3-11.2-2.6-16.7-1.2c1.1,2.6,2.1,5.3,3.1,7.9c1.9,4.8,3.7,9.5,5.4,14.4%0A%09%09%09c7.8-1.5,15.7-2.7,23.6-3.9C178.8,66.1,173.2,59.9,165.7,56.6z"/>%0A%09%09<path class="st3" d="M160.7,118.8c-0.4-2.6-1-5.3-1.6-7.9c-1.1-4.6-2.3-9.2-3.7-13.7c-1-3.5-2.2-7-3.3-10.5%0A%09%09%09c-0.8-2.5-1.7-5-2.6-7.5c-2.5-7-5.2-14-8-21c-1,0.6-2,1.2-2.9,1.9c-8.6,6.3-11.4,15.2-11.4,24.6c0,2.7,0.2,5.4,0.6,8.2%0A%09%09%09c0.9,6.2,2.6,12.4,4.3,18.1c0.7,2.3,1.4,4.6,2.2,6.9c0.8,2.5,1.7,5,2.6,7.5c4.2,11.9,9.2,23.6,14.2,35.2%0A%09%09%09c6.6-6.8,10.3-15.7,10.7-25.3C162.1,129.7,161.6,124.2,160.7,118.8z"/>%0A%09%09<path class="st0" d="M190.3,80.5c-0.1-2.7-0.5-5.3-1.2-7.9c-2-7.5-6.4-14.3-12.8-19c-8.7-6.5-20-8.7-30.4-5.7%0A%09%09%09c-0.5,0.1-0.9,0.3-1.4,0.4c-2,0.7-4,1.5-5.8,2.5c-8.2,4.4-14.6,11.6-17.6,20.6c-1.7,5.1-2.1,10.5-1.7,15.9%0A%09%09%09c-7.6,2.7-14.9,6.1-21.4,10.9c-9.1,6.7-15.2,16.5-17.5,27.4c-0.5,2.5-0.8,5.1-0.9,7.8c0,0.1,0,0.2,0,0.3%0A%09%09%09c-0.5,14.5,6,28.6,17.7,37.4c11.9,8.9,27.5,11.5,41.5,6.5c3.3-1.2,6.4-2.7,9.3-4.5c2.3-1.4,4.5-3,6.5-4.8%0A%09%09%09c6.2-5.5,11-12.6,13.5-20.7c3.1-10.2,2.2-21.5,0.2-32c2.9-1.5,5.7-3.2,8.3-5.2c8.5-6.5,13.4-16.7,13.7-27.4%0A%09%09%09C190.3,82.2,190.3,81.3,190.3,80.5z M165.7,56.6c7.5,3.3,13.1,9.5,15.5,17.2c-7.9,1.1-15.8,2.4-23.6,3.9%0A%09%09%09c-1.7-4.8-3.6-9.6-5.4-14.4c-1-2.6-2.1-5.3-3.1-7.9C154.4,54,160.3,54.3,165.7,56.6z M99.8,106.9c5.8-5.2,13.1-8.7,20.5-11.4%0A%09%09%09c0.3,1.5,0.5,3,0.8,4.5c1.3,6.6,3.2,13.1,5.3,19.5c-12.4,2.3-25,3.8-37.6,5.2C90.8,117.9,94.5,111.6,99.8,106.9z M110.5,169.5%0A%09%09%09c-12.3-5.1-20.8-16.1-22.6-29.3c-0.3-2.5-0.4-5-0.3-7.5c13.9-1.6,27.8-3.2,41.5-5.8c1.8,4.8,3.6,9.6,5.6,14.4%0A%09%09%09c3.3,8.2,6.7,16.3,10.2,24.4C134.8,172.3,121.7,174.2,110.5,169.5z M161.9,135.2c-0.4,9.6-4.1,18.6-10.7,25.3%0A%09%09%09c-5-11.6-9.9-23.3-14.2-35.2c-0.9-2.5-1.8-5-2.6-7.5c-0.8-2.3-1.5-4.6-2.2-6.9c-1.7-5.6-3.4-11.8-4.3-18.1%0A%09%09%09c-0.4-2.7-0.6-5.5-0.6-8.2c0-9.5,2.8-18.4,11.4-24.6c0.9-0.7,1.9-1.3,2.9-1.9c2.8,6.9,5.5,13.9,8,21c0.9,2.5,1.7,5,2.6,7.5%0A%09%09%09c1.2,3.5,2.3,7,3.3,10.5c1.3,4.5,2.6,9,3.7,13.7c0.6,2.6,1.1,5.3,1.6,7.9C161.6,124.2,162.1,129.7,161.9,135.2z M173.1,103%0A%09%09%09c-2,1.7-4.2,3.2-6.5,4.5c-1.7-7.5-4-15-6.4-22.3c7.4-1.4,14.8-2.5,22.2-3.6C182.4,89.6,179.1,97.6,173.1,103z"/>%0A%09</g>%0A</g>%0A</svg>%0A';
|
|
2893
|
+
|
|
2894
|
+
// src/components/assets/Blue - Biz.svg
|
|
2895
|
+
var Blue_Biz_default = 'data:image/svg+xml,<svg width="132" height="40" viewBox="0 0 132 40" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M97.966 22.542H101.704V21.044H97.966V18.16H96.202V25.342H94.242V20.456H92.59V25.342H91.078V26.84H102.978V25.342H97.966V22.542ZM96.762 14.016C95.362 16.116 92.8 17.782 90.294 18.762C90.714 19.14 91.19 19.742 91.428 20.176C93.458 19.252 95.446 17.936 97 16.284C98.904 18.314 100.752 19.336 102.684 20.176C102.88 19.672 103.328 19.084 103.734 18.734C101.746 18.034 99.8 17.082 97.966 15.15C98.064 15.024 98.162 14.884 98.26 14.758L96.762 14.016ZM108.648 24.502C107.794 25.02 106.17 25.496 104.77 25.692C105.106 26 105.54 26.546 105.75 26.896C107.192 26.56 108.872 25.832 109.824 25.034L108.648 24.502ZM112.414 25.202C113.59 25.692 115.228 26.434 116.04 26.896L117.216 25.986C116.32 25.538 114.668 24.838 113.534 24.418L112.414 25.202ZM113.002 17.726C112.806 18.062 112.512 18.482 112.288 18.804L112.792 18.958H108.97L109.726 18.776C109.614 18.482 109.39 18.076 109.166 17.726H113.002ZM111.812 22.668V22.052H116.012V20.848H111.812V20.218H116.67V18.958H113.968C114.22 18.706 114.514 18.398 114.822 18.062L113.506 17.726H117.202V16.424H115.396C115.746 15.934 116.124 15.304 116.516 14.66L114.766 14.254C114.57 14.856 114.192 15.71 113.87 16.27L114.374 16.424H113.128V14.142H111.56V16.424H110.51V14.142H108.97V16.424H107.682L108.354 16.172C108.172 15.64 107.71 14.8 107.29 14.212L105.862 14.688C106.184 15.22 106.548 15.892 106.758 16.424H104.854V17.726H108.424L107.486 17.936C107.668 18.244 107.878 18.636 108.004 18.958H105.428V20.218H110.16V20.848H106.128V22.052H110.16V22.668H104.826V24.04H110.16V27.232H111.812V24.04H117.244V22.668H111.812ZM120.758 19.7H123.628V14.548H122.13V18.244H120.758V14.254H119.288V19.784C119.288 21.828 119.19 24.544 118.378 26.28C118.714 26.504 119.26 26.994 119.526 27.288C120.254 25.958 120.562 24.138 120.688 22.318H122.018V27.176H123.53V20.848H120.744C120.758 20.484 120.758 20.134 120.758 19.784V19.7ZM125.546 25.748C126.022 24.25 126.176 22.472 126.218 20.918C126.568 22.038 126.974 23.074 127.506 23.998C126.932 24.726 126.288 25.328 125.546 25.748ZM129.396 19.84C129.172 20.806 128.85 21.716 128.43 22.528C127.996 21.702 127.632 20.792 127.366 19.84H129.396ZM130.18 18.272L129.9 18.328H126.232V16.438H131.006V14.94H124.678V19.882C124.678 21.814 124.566 24.642 123.572 26.434C123.964 26.616 124.566 27.05 124.86 27.33C125.098 26.938 125.294 26.504 125.448 26.042C125.77 26.378 126.148 26.882 126.344 27.246C127.142 26.77 127.856 26.14 128.472 25.412C129.06 26.112 129.732 26.7 130.516 27.148C130.768 26.728 131.272 26.084 131.65 25.776C130.81 25.356 130.068 24.754 129.452 24.026C130.306 22.57 130.894 20.764 131.202 18.594L130.18 18.272Z" fill="black"/>%0A<path d="M18.4791 20.6971C18.3985 20.1529 18.2776 19.6289 18.1566 19.0847C17.9349 18.1373 17.6931 17.2102 17.4109 16.3032C17.1892 15.5776 16.9675 14.8722 16.7457 14.1667C16.5845 13.6628 16.4031 13.1388 16.2217 12.6349C15.7178 11.2039 15.1736 9.77282 14.6093 8.36194C14.4077 8.48287 14.2062 8.6038 14.0046 8.74489C12.2511 10.0147 11.6867 11.8287 11.6867 13.7636C11.6867 14.3078 11.727 14.8722 11.8077 15.4365C11.9891 16.7063 12.3317 17.9761 12.6743 19.1048C12.8154 19.5684 12.9565 20.0521 13.1178 20.5157C13.279 21.0196 13.4604 21.5436 13.6418 22.0475C14.5085 24.4662 15.5163 26.8445 16.524 29.2027C17.8745 27.8321 18.6202 25.998 18.7008 24.0429C18.7613 22.9142 18.6605 21.8056 18.4791 20.6971Z" fill="%23F7B52C"/>%0A<path d="M24.4856 12.9169C24.4654 12.3727 24.3848 11.8286 24.2437 11.3045C23.8406 9.77269 22.9336 8.40212 21.6436 7.43466C19.8699 6.10439 17.5722 5.66097 15.4559 6.26564C15.3551 6.28579 15.2745 6.3261 15.1737 6.34626C14.7706 6.48735 14.3675 6.64859 13.9845 6.85015C12.3116 7.73699 11.0217 9.22849 10.3969 11.0223C10.0744 12.0704 9.99376 13.179 10.0744 14.2875C8.52241 14.8317 7.03091 15.5372 5.74096 16.5046C3.88665 17.8752 2.63701 19.8706 2.19359 22.0877C2.09281 22.6117 2.01219 23.1358 1.99203 23.68C1.99203 23.7001 1.99203 23.7203 1.99203 23.7404C1.89126 26.6831 3.22152 29.5654 5.57971 31.3391C7.99837 33.1531 11.1628 33.6771 14.0249 32.6693C14.69 32.4275 15.3148 32.1251 15.9195 31.7623C16.383 31.4801 16.8265 31.1375 17.2497 30.7747C18.5195 29.646 19.487 28.215 19.9909 26.5622C20.6157 24.4862 20.4343 22.1885 20.0312 20.052C20.6359 19.7497 21.2002 19.407 21.7243 19.0039C23.4576 17.6938 24.4452 15.5976 24.5259 13.441C24.5057 13.2394 24.5057 13.0782 24.4856 12.9169ZM19.487 8.03932C21.0188 8.70445 22.1475 9.97425 22.6312 11.5262C21.0188 11.7479 19.4265 12.01 17.8342 12.3123C17.4714 11.3247 17.1086 10.3572 16.7257 9.38974C16.5241 8.84554 16.3024 8.3215 16.0807 7.7773C17.2094 7.51528 18.3986 7.55559 19.487 8.03932ZM6.10375 18.2582C7.29293 17.2101 8.76428 16.4845 10.2759 15.9403C10.3364 16.2426 10.3767 16.5651 10.4573 16.8674C10.7395 18.2178 11.1023 19.5279 11.5457 20.8381C9.0263 21.3016 6.46655 21.6241 3.90681 21.9063C4.2696 20.4954 5.01536 19.2256 6.10375 18.2582ZM8.26039 31.0166C5.76111 29.9886 4.02774 27.7312 3.66494 25.0707C3.60447 24.5668 3.58432 24.0629 3.60447 23.559C6.42624 23.2366 9.26816 22.8939 12.0496 22.39C12.4124 23.3776 12.7954 24.3451 13.1783 25.3126C13.8435 26.9855 14.5489 28.6181 15.2543 30.2708C13.1985 31.5809 10.5581 31.9639 8.26039 31.0166ZM18.7211 24.0428C18.6405 25.9979 17.8947 27.832 16.5443 29.2026C15.5164 26.8444 14.5287 24.466 13.6621 22.0474C13.4807 21.5435 13.2993 21.0195 13.138 20.5156C12.9768 20.052 12.8357 19.5884 12.6946 19.1047C12.352 17.9558 12.0093 16.7062 11.8279 15.4364C11.7473 14.872 11.707 14.3278 11.707 13.7635C11.707 11.8286 12.2713 10.0347 14.0249 8.74476C14.2063 8.60367 14.4078 8.48274 14.6295 8.36181C15.1939 9.77269 15.7381 11.2037 16.242 12.6348C16.4234 13.1387 16.6048 13.6627 16.766 14.1666C17.0079 14.872 17.2296 15.5976 17.4311 16.3031C17.6932 17.2101 17.9552 18.1372 18.1769 19.0845C18.2978 19.6086 18.3986 20.1528 18.4994 20.697C18.6606 21.8055 18.7614 22.9141 18.7211 24.0428ZM20.9987 17.4721C20.5955 17.8349 20.1521 18.1372 19.6684 18.3992C19.3056 16.8674 18.8622 15.3558 18.3583 13.8441C19.8498 13.5619 21.3615 13.3201 22.8731 13.1185C22.8933 14.7511 22.2281 16.3837 20.9987 17.4721Z" fill="%234862CC"/>%0A<path d="M33.9386 29.3236C31.8828 29.3236 30.2703 28.9406 28.8796 27.8119C28.5571 27.5499 28.5571 27.0863 28.8393 26.8041L29.8067 25.8367C30.0486 25.5948 30.4316 25.5746 30.7137 25.7762C31.6207 26.4413 32.7494 26.6832 33.9588 26.6832C35.7325 26.6832 36.6798 26.0181 36.6798 24.7886C36.6798 24.2444 36.5387 23.801 36.196 23.4986C35.8937 23.2165 35.5511 23.0754 34.8456 22.9544L32.9913 22.6924C31.6812 22.4909 30.7137 22.0877 30.0083 21.4226C29.2827 20.697 28.8997 19.6892 28.8997 18.3993C28.8997 15.6581 30.9354 13.7434 34.2409 13.7434C36.0549 13.7434 37.4255 14.1263 38.6147 15.0333C38.9372 15.2752 38.9573 15.7791 38.6752 16.0613L37.748 16.9884C37.5061 17.2303 37.1433 17.2504 36.8612 17.0489C35.9945 16.4442 35.027 16.3636 34.1603 16.3636C32.568 16.3636 31.782 17.2504 31.782 18.2985C31.782 18.6815 31.9029 19.1047 32.2254 19.4071C32.5277 19.6892 33.0316 19.9311 33.6564 20.0117L35.4704 20.2738C36.8813 20.4753 37.748 20.8583 38.393 21.4629C39.2193 22.249 39.5821 23.3575 39.5821 24.7281C39.6225 27.6305 37.1433 29.3236 33.9386 29.3236Z" fill="%234862CC"/>%0A<path d="M55.0008 29.1825H53.5496C53.2473 29.1825 52.9853 28.9809 52.8845 28.6987L50.869 22.0474C50.6674 21.4025 49.7403 21.4025 49.5387 22.0474L47.5232 28.6987C47.4425 28.9809 47.1604 29.1825 46.858 29.1825H45.4068C45.0843 29.1825 44.8223 28.9809 44.7417 28.6786L41.0129 14.7108C40.892 14.2674 41.2346 13.8441 41.6781 13.8441H43.3711C43.6936 13.8441 43.9758 14.0659 44.0363 14.3682L45.6689 21.0195C45.8301 21.7048 46.7976 21.7249 46.9991 21.0397L48.934 14.348C49.0147 14.0457 49.2968 13.8441 49.5992 13.8441H50.8085C51.1108 13.8441 51.393 14.0457 51.4736 14.348L53.4086 21.0598C53.6101 21.7451 54.5776 21.7249 54.7388 21.0397L56.3916 14.3883C56.4722 14.086 56.7544 13.8643 57.0567 13.8643H58.7498C59.2133 13.8643 59.5358 14.2876 59.4149 14.731L55.666 28.6987C55.5854 28.9809 55.3233 29.1825 55.0008 29.1825Z" fill="%234862CC"/>%0A<path d="M69.7949 28.7188L69.2104 26.9452C69.1096 26.663 68.8476 26.4816 68.5453 26.4816H64.0909C63.7886 26.4816 63.5265 26.663 63.4459 26.9452L62.8413 28.7188C62.7405 29.001 62.4785 29.1824 62.1963 29.1824H60.5234C60.0396 29.1824 59.7172 28.6987 59.8784 28.2553L64.9576 14.2875C65.0584 14.0053 65.3204 13.8239 65.6026 13.8239H66.9933C67.2755 13.8239 67.5375 14.0053 67.6383 14.2875L72.7376 28.2553C72.8988 28.6987 72.5764 29.1824 72.0926 29.1824H70.46C70.1577 29.1824 69.8957 29.001 69.7949 28.7188ZM65.7235 20.2737L64.756 23.035C64.5948 23.4784 64.9374 23.9622 65.401 23.9622H67.2755C67.739 23.9622 68.0817 23.4986 67.9406 23.0552L67.0134 20.2939C66.8119 19.669 65.925 19.6489 65.7235 20.2737Z" fill="%234862CC"/>%0A<path d="M80.941 23.418H78.6634C78.2805 23.418 77.9781 23.7203 77.9781 24.1033V28.4972C77.9781 28.8801 77.6758 29.1825 77.2928 29.1825H75.6804C75.2975 29.1825 74.9951 28.8801 74.9951 28.4972V14.5294C74.9951 14.1465 75.2975 13.8441 75.6804 13.8441H80.941C84.1054 13.8441 86 16.0209 86 18.621C86 21.2412 84.1054 23.418 80.941 23.418ZM80.7797 16.5047H78.6634C78.2805 16.5047 77.9781 16.807 77.9781 17.19V20.0117C77.9781 20.3947 78.2805 20.697 78.6634 20.697H80.7797C82.1302 20.697 82.9968 19.8505 82.9968 18.6008C82.9968 17.3714 82.1302 16.5047 80.7797 16.5047Z" fill="%234862CC"/>%0A</svg>%0A';
|
|
2896
|
+
|
|
2897
|
+
// src/components/assets/Color=Black.svg
|
|
2898
|
+
var Color_Black_default = 'data:image/svg+xml,<svg width="88" height="40" viewBox="0 0 88 40" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect width="88" height="40" fill="white"/>%0A<path d="M18.4924 20.6971C18.4118 20.1529 18.2909 19.6289 18.1699 19.0847C17.9482 18.1373 17.7064 17.2102 17.4242 16.3032C17.2025 15.5776 16.9808 14.8722 16.7591 14.1667C16.5978 13.6628 16.4164 13.1388 16.235 12.6349C15.7311 11.2039 15.1869 9.77282 14.6226 8.36194C14.421 8.48287 14.2195 8.6038 14.0179 8.74489C12.2644 10.0147 11.7 11.8287 11.7 13.7636C11.7 14.3078 11.7403 14.8722 11.821 15.4365C12.0024 16.7063 12.345 17.9761 12.6876 19.1048C12.8287 19.5684 12.9698 20.0521 13.1311 20.5157C13.2923 21.0196 13.4737 21.5436 13.6551 22.0475C14.5218 24.4662 15.5296 26.8445 16.5373 29.2027C17.8878 27.8321 18.6335 25.998 18.7141 24.0429C18.7746 22.9142 18.6738 21.8056 18.4924 20.6971Z" fill="%23CCCCCC"/>%0A<path d="M24.4989 12.9169C24.4787 12.3727 24.3981 11.8286 24.257 11.3045C23.8539 9.77269 22.9469 8.40212 21.6569 7.43466C19.8833 6.10439 17.5855 5.66097 15.4692 6.26564C15.3684 6.28579 15.2878 6.3261 15.187 6.34626C14.7839 6.48735 14.3808 6.64859 13.9979 6.85015C12.3249 7.73699 11.035 9.22849 10.4102 11.0223C10.0877 12.0704 10.0071 13.179 10.0877 14.2875C8.53572 14.8317 7.04421 15.5372 5.75426 16.5046C3.89996 17.8752 2.65032 19.8706 2.2069 22.0877C2.10612 22.6117 2.0255 23.1358 2.00534 23.68C2.00534 23.7001 2.00534 23.7203 2.00534 23.7404C1.90456 26.6831 3.23483 29.5654 5.59302 31.3391C8.01167 33.1531 11.1761 33.6771 14.0382 32.6693C14.7033 32.4275 15.3281 32.1251 15.9328 31.7623C16.3964 31.4801 16.8398 31.1375 17.263 30.7747C18.5328 29.646 19.5003 28.215 20.0042 26.5622C20.629 24.4862 20.4476 22.1885 20.0445 20.052C20.6492 19.7497 21.2135 19.407 21.7376 19.0039C23.4709 17.6938 24.4585 15.5976 24.5392 13.441C24.519 13.2394 24.519 13.0782 24.4989 12.9169ZM19.5003 8.03932C21.0321 8.70445 22.1608 9.97425 22.6446 11.5262C21.0321 11.7479 19.4398 12.01 17.8475 12.3123C17.4848 11.3247 17.122 10.3572 16.739 9.38974C16.5374 8.84554 16.3157 8.3215 16.094 7.7773C17.2227 7.51528 18.4119 7.55559 19.5003 8.03932ZM6.11706 18.2582C7.30623 17.2101 8.77758 16.4845 10.2892 15.9403C10.3497 16.2426 10.39 16.5651 10.4706 16.8674C10.7528 18.2178 11.1156 19.5279 11.559 20.8381C9.0396 21.3016 6.47986 21.6241 3.92011 21.9063C4.28291 20.4954 5.02866 19.2256 6.11706 18.2582ZM8.2737 31.0166C5.77442 29.9886 4.04104 27.7312 3.67825 25.0707C3.61778 24.5668 3.59762 24.0629 3.61778 23.559C6.43955 23.2366 9.28147 22.8939 12.0629 22.39C12.4257 23.3776 12.8087 24.3451 13.1916 25.3126C13.8568 26.9855 14.5622 28.6181 15.2676 30.2708C13.2118 31.5809 10.5714 31.9639 8.2737 31.0166ZM18.7344 24.0428C18.6538 25.9979 17.908 27.832 16.5576 29.2026C15.5297 26.8444 14.5421 24.466 13.6754 22.0474C13.494 21.5435 13.3126 21.0195 13.1513 20.5156C12.9901 20.052 12.849 19.5884 12.7079 19.1047C12.3653 17.9558 12.0226 16.7062 11.8412 15.4364C11.7606 14.872 11.7203 14.3278 11.7203 13.7635C11.7203 11.8286 12.2846 10.0347 14.0382 8.74476C14.2196 8.60367 14.4211 8.48274 14.6428 8.36181C15.2072 9.77269 15.7514 11.2037 16.2553 12.6348C16.4367 13.1387 16.6181 13.6627 16.7793 14.1666C17.0212 14.872 17.2429 15.5976 17.4444 16.3031C17.7065 17.2101 17.9685 18.1372 18.1902 19.0845C18.3111 19.6086 18.4119 20.1528 18.5127 20.697C18.6739 21.8055 18.7747 22.9141 18.7344 24.0428ZM21.012 17.4721C20.6089 17.8349 20.1654 18.1372 19.6817 18.3992C19.3189 16.8674 18.8755 15.3558 18.3716 13.8441C19.8631 13.5619 21.3748 13.3201 22.8864 13.1185C22.9066 14.7511 22.2414 16.3837 21.012 17.4721Z" fill="%234B4B4B"/>%0A<path d="M33.9519 29.3236C31.8961 29.3236 30.2836 28.9406 28.8929 27.8119C28.5704 27.5499 28.5704 27.0863 28.8526 26.8041L29.82 25.8367C30.0619 25.5948 30.4449 25.5747 30.727 25.7762C31.634 26.4413 32.7627 26.6832 33.9721 26.6832C35.7458 26.6832 36.6931 26.0181 36.6931 24.7886C36.6931 24.2444 36.552 23.801 36.2093 23.4986C35.907 23.2165 35.5644 23.0754 34.8589 22.9544L33.0046 22.6924C31.6945 22.4909 30.727 22.0878 30.0216 21.4226C29.296 20.697 28.913 19.6893 28.913 18.3993C28.913 15.6582 30.9488 13.7434 34.2543 13.7434C36.0682 13.7434 37.4388 14.1263 38.628 15.0333C38.9505 15.2752 38.9706 15.7791 38.6885 16.0613L37.7613 16.9884C37.5194 17.2303 37.1566 17.2504 36.8745 17.0489C36.0078 16.4442 35.0403 16.3636 34.1736 16.3636C32.5813 16.3636 31.7953 17.2504 31.7953 18.2985C31.7953 18.6815 31.9162 19.1048 32.2387 19.4071C32.541 19.6893 33.0449 19.9311 33.6697 20.0117L35.4837 20.2738C36.8946 20.4753 37.7613 20.8583 38.4063 21.4629C39.2327 22.249 39.5955 23.3576 39.5955 24.7281C39.6358 27.6305 37.1566 29.3236 33.9519 29.3236Z" fill="%234B4B4B"/>%0A<path d="M55.0141 29.1825H53.563C53.2606 29.1825 52.9986 28.9809 52.8978 28.6987L50.8823 22.0474C50.6807 21.4025 49.7536 21.4025 49.552 22.0474L47.5365 28.6987C47.4558 28.9809 47.1737 29.1825 46.8713 29.1825H45.4201C45.0977 29.1825 44.8356 28.9809 44.755 28.6786L41.0262 14.7108C40.9053 14.2674 41.248 13.8441 41.6914 13.8441H43.3844C43.7069 13.8441 43.9891 14.0659 44.0496 14.3682L45.6822 21.0195C45.8434 21.7048 46.8109 21.7249 47.0124 21.0397L48.9473 14.348C49.028 14.0457 49.3101 13.8441 49.6125 13.8441H50.8218C51.1241 13.8441 51.4063 14.0457 51.4869 14.348L53.4219 21.0598C53.6234 21.7451 54.5909 21.7249 54.7521 21.0397L56.4049 14.3883C56.4855 14.086 56.7677 13.8643 57.07 13.8643H58.7631C59.2266 13.8643 59.5491 14.2876 59.4282 14.731L55.6793 28.6987C55.5987 28.9809 55.3366 29.1825 55.0141 29.1825Z" fill="%234B4B4B"/>%0A<path d="M69.8082 28.7189L69.2237 26.9452C69.1229 26.663 68.8609 26.4816 68.5586 26.4816H64.1042C63.8019 26.4816 63.5399 26.663 63.4592 26.9452L62.8546 28.7189C62.7538 29.001 62.4918 29.1824 62.2096 29.1824H60.5367C60.053 29.1824 59.7305 28.6987 59.8917 28.2553L64.9709 14.2875C65.0717 14.0054 65.3337 13.824 65.6159 13.824H67.0066C67.2888 13.824 67.5508 14.0054 67.6516 14.2875L72.7509 28.2553C72.9122 28.6987 72.5897 29.1824 72.1059 29.1824H70.4733C70.171 29.1824 69.909 29.001 69.8082 28.7189ZM65.7368 20.2737L64.7693 23.035C64.6081 23.4784 64.9507 23.9622 65.4143 23.9622H67.2888C67.7523 23.9622 68.095 23.4986 67.9539 23.0552L67.0268 20.2939C66.8252 19.6691 65.9384 19.6489 65.7368 20.2737Z" fill="%234B4B4B"/>%0A<path d="M80.9543 23.418H78.6767C78.2938 23.418 77.9914 23.7203 77.9914 24.1033V28.4972C77.9914 28.8801 77.6891 29.1825 77.3062 29.1825H75.6937C75.3108 29.1825 75.0084 28.8801 75.0084 28.4972V14.5294C75.0084 14.1465 75.3108 13.8441 75.6937 13.8441H80.9543C84.1187 13.8441 86.0133 16.0209 86.0133 18.621C86.0133 21.2412 84.1187 23.418 80.9543 23.418ZM80.793 16.5047H78.6767C78.2938 16.5047 77.9914 16.807 77.9914 17.19V20.0117C77.9914 20.3947 78.2938 20.697 78.6767 20.697H80.793C82.1435 20.697 83.0102 19.8505 83.0102 18.6008C83.0102 17.3714 82.1435 16.5047 80.793 16.5047Z" fill="%234B4B4B"/>%0A</svg>%0A';
|
|
2899
|
+
|
|
2900
|
+
// src/components/assets/Color=White.svg
|
|
2901
|
+
var Color_White_default = 'data:image/svg+xml,<svg width="88" height="40" viewBox="0 0 88 40" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect width="88" height="40" fill="black"/>%0A<path d="M18.4924 20.6971C18.4118 20.1529 18.2909 19.6289 18.1699 19.0847C17.9482 18.1373 17.7064 17.2102 17.4242 16.3032C17.2025 15.5776 16.9808 14.8722 16.7591 14.1667C16.5978 13.6628 16.4164 13.1388 16.235 12.6349C15.7311 11.2039 15.1869 9.77282 14.6226 8.36194C14.421 8.48287 14.2195 8.6038 14.0179 8.74489C12.2644 10.0147 11.7 11.8287 11.7 13.7636C11.7 14.3078 11.7403 14.8722 11.821 15.4365C12.0024 16.7063 12.345 17.9761 12.6876 19.1048C12.8287 19.5684 12.9698 20.0521 13.1311 20.5157C13.2923 21.0196 13.4737 21.5436 13.6551 22.0475C14.5218 24.4662 15.5296 26.8445 16.5373 29.2027C17.8878 27.8321 18.6335 25.998 18.7141 24.0429C18.7746 22.9142 18.6738 21.8056 18.4924 20.6971Z" fill="%23F7B52C"/>%0A<path d="M24.4989 12.9169C24.4787 12.3727 24.3981 11.8286 24.257 11.3045C23.8539 9.77269 22.9469 8.40212 21.6569 7.43466C19.8833 6.10439 17.5855 5.66097 15.4692 6.26564C15.3684 6.28579 15.2878 6.3261 15.187 6.34626C14.7839 6.48735 14.3808 6.64859 13.9979 6.85015C12.3249 7.73699 11.035 9.22849 10.4102 11.0223C10.0877 12.0704 10.0071 13.179 10.0877 14.2875C8.53572 14.8317 7.04421 15.5372 5.75426 16.5046C3.89996 17.8752 2.65032 19.8706 2.2069 22.0877C2.10612 22.6117 2.0255 23.1358 2.00534 23.68C2.00534 23.7001 2.00534 23.7203 2.00534 23.7404C1.90456 26.6831 3.23483 29.5654 5.59302 31.3391C8.01167 33.1531 11.1761 33.6771 14.0382 32.6693C14.7033 32.4275 15.3281 32.1251 15.9328 31.7623C16.3964 31.4801 16.8398 31.1375 17.263 30.7747C18.5328 29.646 19.5003 28.215 20.0042 26.5622C20.629 24.4862 20.4476 22.1885 20.0445 20.052C20.6492 19.7497 21.2135 19.407 21.7376 19.0039C23.4709 17.6938 24.4585 15.5976 24.5392 13.441C24.519 13.2394 24.519 13.0782 24.4989 12.9169ZM19.5003 8.03932C21.0321 8.70445 22.1608 9.97425 22.6446 11.5262C21.0321 11.7479 19.4398 12.01 17.8475 12.3123C17.4848 11.3247 17.122 10.3572 16.739 9.38974C16.5374 8.84554 16.3157 8.3215 16.094 7.7773C17.2227 7.51528 18.4119 7.55559 19.5003 8.03932ZM6.11706 18.2582C7.30623 17.2101 8.77758 16.4845 10.2892 15.9403C10.3497 16.2426 10.39 16.5651 10.4706 16.8674C10.7528 18.2178 11.1156 19.5279 11.559 20.8381C9.0396 21.3016 6.47986 21.6241 3.92011 21.9063C4.28291 20.4954 5.02866 19.2256 6.11706 18.2582ZM8.2737 31.0166C5.77442 29.9886 4.04104 27.7312 3.67825 25.0707C3.61778 24.5668 3.59762 24.0629 3.61778 23.559C6.43955 23.2366 9.28147 22.8939 12.0629 22.39C12.4257 23.3776 12.8087 24.3451 13.1916 25.3126C13.8568 26.9855 14.5622 28.6181 15.2676 30.2708C13.2118 31.5809 10.5714 31.9639 8.2737 31.0166ZM18.7344 24.0428C18.6538 25.9979 17.908 27.832 16.5576 29.2026C15.5297 26.8444 14.5421 24.466 13.6754 22.0474C13.494 21.5435 13.3126 21.0195 13.1513 20.5156C12.9901 20.052 12.849 19.5884 12.7079 19.1047C12.3653 17.9558 12.0226 16.7062 11.8412 15.4364C11.7606 14.872 11.7203 14.3278 11.7203 13.7635C11.7203 11.8286 12.2846 10.0347 14.0382 8.74476C14.2196 8.60367 14.4211 8.48274 14.6428 8.36181C15.2072 9.77269 15.7514 11.2037 16.2553 12.6348C16.4367 13.1387 16.6181 13.6627 16.7793 14.1666C17.0212 14.872 17.2429 15.5976 17.4444 16.3031C17.7065 17.2101 17.9685 18.1372 18.1902 19.0845C18.3111 19.6086 18.4119 20.1528 18.5127 20.697C18.6739 21.8055 18.7747 22.9141 18.7344 24.0428ZM21.012 17.4721C20.6089 17.8349 20.1654 18.1372 19.6817 18.3992C19.3189 16.8674 18.8755 15.3558 18.3716 13.8441C19.8631 13.5619 21.3748 13.3201 22.8864 13.1185C22.9066 14.7511 22.2414 16.3837 21.012 17.4721Z" fill="white"/>%0A<path d="M33.9519 29.3236C31.8961 29.3236 30.2836 28.9406 28.8929 27.8119C28.5704 27.5499 28.5704 27.0863 28.8526 26.8041L29.82 25.8367C30.0619 25.5948 30.4449 25.5747 30.727 25.7762C31.634 26.4413 32.7627 26.6832 33.9721 26.6832C35.7458 26.6832 36.6931 26.0181 36.6931 24.7886C36.6931 24.2444 36.552 23.801 36.2093 23.4986C35.907 23.2165 35.5644 23.0754 34.8589 22.9544L33.0046 22.6924C31.6945 22.4909 30.727 22.0878 30.0216 21.4226C29.296 20.697 28.913 19.6893 28.913 18.3993C28.913 15.6582 30.9488 13.7434 34.2543 13.7434C36.0682 13.7434 37.4388 14.1263 38.628 15.0333C38.9505 15.2752 38.9706 15.7791 38.6885 16.0613L37.7613 16.9884C37.5194 17.2303 37.1566 17.2504 36.8745 17.0489C36.0078 16.4442 35.0403 16.3636 34.1736 16.3636C32.5813 16.3636 31.7953 17.2504 31.7953 18.2985C31.7953 18.6815 31.9162 19.1048 32.2387 19.4071C32.541 19.6893 33.0449 19.9311 33.6697 20.0117L35.4837 20.2738C36.8946 20.4753 37.7613 20.8583 38.4063 21.4629C39.2327 22.249 39.5955 23.3576 39.5955 24.7281C39.6358 27.6305 37.1566 29.3236 33.9519 29.3236Z" fill="white"/>%0A<path d="M55.0141 29.1825H53.563C53.2606 29.1825 52.9986 28.9809 52.8978 28.6987L50.8823 22.0474C50.6807 21.4025 49.7536 21.4025 49.552 22.0474L47.5365 28.6987C47.4558 28.9809 47.1737 29.1825 46.8713 29.1825H45.4201C45.0977 29.1825 44.8356 28.9809 44.755 28.6786L41.0262 14.7108C40.9053 14.2674 41.248 13.8441 41.6914 13.8441H43.3844C43.7069 13.8441 43.9891 14.0659 44.0496 14.3682L45.6822 21.0195C45.8434 21.7048 46.8109 21.7249 47.0124 21.0397L48.9473 14.348C49.028 14.0457 49.3101 13.8441 49.6125 13.8441H50.8218C51.1241 13.8441 51.4063 14.0457 51.4869 14.348L53.4219 21.0598C53.6234 21.7451 54.5909 21.7249 54.7521 21.0397L56.4049 14.3883C56.4855 14.086 56.7677 13.8643 57.07 13.8643H58.7631C59.2266 13.8643 59.5491 14.2876 59.4282 14.731L55.6793 28.6987C55.5987 28.9809 55.3366 29.1825 55.0141 29.1825Z" fill="white"/>%0A<path d="M69.8082 28.7189L69.2237 26.9452C69.1229 26.663 68.8609 26.4816 68.5586 26.4816H64.1042C63.8019 26.4816 63.5399 26.663 63.4592 26.9452L62.8546 28.7189C62.7538 29.001 62.4918 29.1824 62.2096 29.1824H60.5367C60.053 29.1824 59.7305 28.6987 59.8917 28.2553L64.9709 14.2875C65.0717 14.0054 65.3337 13.824 65.6159 13.824H67.0066C67.2888 13.824 67.5508 14.0054 67.6516 14.2875L72.7509 28.2553C72.9122 28.6987 72.5897 29.1824 72.1059 29.1824H70.4733C70.171 29.1824 69.909 29.001 69.8082 28.7189ZM65.7368 20.2737L64.7693 23.035C64.6081 23.4784 64.9507 23.9622 65.4143 23.9622H67.2888C67.7523 23.9622 68.095 23.4986 67.9539 23.0552L67.0268 20.2939C66.8252 19.6691 65.9384 19.6489 65.7368 20.2737Z" fill="white"/>%0A<path d="M80.9543 23.418H78.6767C78.2938 23.418 77.9914 23.7203 77.9914 24.1033V28.4972C77.9914 28.8801 77.6891 29.1825 77.3062 29.1825H75.6937C75.3108 29.1825 75.0084 28.8801 75.0084 28.4972V14.5294C75.0084 14.1465 75.3108 13.8441 75.6937 13.8441H80.9543C84.1187 13.8441 86.0133 16.0209 86.0133 18.621C86.0133 21.2412 84.1187 23.418 80.9543 23.418ZM80.793 16.5047H78.6767C78.2938 16.5047 77.9914 16.807 77.9914 17.19V20.0117C77.9914 20.3947 78.2938 20.697 78.6767 20.697H80.793C82.1435 20.697 83.0102 19.8505 83.0102 18.6008C83.0102 17.3714 82.1435 16.5047 80.793 16.5047Z" fill="white"/>%0A</svg>%0A';
|
|
2902
|
+
|
|
2903
|
+
// src/components/assets/Color=Blue.svg
|
|
2904
|
+
var Color_Blue_default = 'data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M27.3482 21.9154C27.239 21.178 27.0751 20.4679 26.9112 19.7305C26.6108 18.4468 26.283 17.1905 25.9007 15.9614C25.6002 14.9782 25.2998 14.0223 24.9994 13.0664C24.7809 12.3836 24.5351 11.6735 24.2893 10.9907C23.6065 9.05153 22.8691 7.11238 22.1043 5.20055C21.8312 5.36443 21.5581 5.5283 21.285 5.71948C18.9088 7.44013 18.1441 9.89819 18.1441 12.5201C18.1441 13.2576 18.1987 14.0223 18.308 14.787C18.5538 16.5077 19.0181 18.2283 19.4824 19.7578C19.6736 20.3859 19.8648 21.0414 20.0832 21.6696C20.3017 22.3524 20.5475 23.0625 20.7934 23.7453C21.9678 27.0227 23.3334 30.2455 24.699 33.441C26.5288 31.5838 27.5394 29.0984 27.6486 26.4492C27.7306 24.9197 27.594 23.4176 27.3482 21.9154Z" fill="%23F7B52C"/>%0A<path d="M35.4873 11.3729C35.46 10.6355 35.3507 9.89803 35.1595 9.18792C34.6133 7.11222 33.3843 5.25501 31.6363 3.94404C29.2329 2.14146 26.1193 1.5406 23.2516 2.35996C23.115 2.38727 23.0058 2.44189 22.8692 2.4692C22.323 2.66039 21.7767 2.87888 21.2578 3.152C18.9909 4.35372 17.243 6.3748 16.3963 8.80556C15.9593 10.2258 15.85 11.7279 15.9593 13.2301C13.8563 13.9675 11.8352 14.9234 10.0872 16.2344C7.57455 18.0916 5.88122 20.7955 5.28036 23.7998C5.1438 24.5099 5.03455 25.22 5.00724 25.9574C5.00724 25.9847 5.00724 26.012 5.00724 26.0393C4.87068 30.0269 6.67326 33.9325 9.86875 36.3359C13.1462 38.794 17.4341 39.5041 21.3124 38.1385C22.2137 37.8108 23.0604 37.4011 23.8797 36.9095C24.5079 36.5271 25.1088 36.0628 25.6823 35.5712C27.403 34.0417 28.7139 32.1026 29.3967 29.863C30.2434 27.0499 29.9976 23.9363 29.4514 21.0413C30.2707 20.6316 31.0354 20.1673 31.7456 19.6211C34.0944 17.8458 35.4327 15.0054 35.5419 12.083C35.5146 11.8099 35.5146 11.5914 35.4873 11.3729ZM28.7139 4.7634C30.7896 5.66469 32.3191 7.38534 32.9746 9.48835C30.7896 9.78878 28.632 10.1438 26.4744 10.5535C25.9827 9.21523 25.4911 7.90426 24.9722 6.5933C24.6991 5.85588 24.3987 5.14577 24.0982 4.40835C25.6277 4.05329 27.2391 4.10792 28.7139 4.7634ZM10.5789 18.6105C12.1903 17.1903 14.184 16.2071 16.2324 15.4697C16.3143 15.8793 16.369 16.3163 16.4782 16.726C16.8606 18.5559 17.3522 20.3312 17.9531 22.1064C14.5391 22.7346 11.0705 23.1716 7.60186 23.554C8.09348 21.6421 9.10402 19.9215 10.5789 18.6105ZM13.5012 35.8989C10.1146 34.506 7.76574 31.4471 7.27412 27.8419C7.19219 27.1591 7.16487 26.4763 7.19219 25.7935C11.0158 25.3565 14.8668 24.8922 18.6359 24.2094C19.1275 25.5477 19.6464 26.8587 20.1653 28.1697C21.0666 30.4366 22.0225 32.6488 22.9784 34.8884C20.1926 36.6637 16.6148 37.1826 13.5012 35.8989ZM27.6761 26.449C27.5668 29.0983 26.5563 31.5837 24.7264 33.4409C23.3335 30.2454 21.9952 27.0226 20.8208 23.7451C20.575 23.0623 20.3292 22.3522 20.1107 21.6694C19.8922 21.0413 19.701 20.4131 19.5098 19.7576C19.0455 18.2008 18.5812 16.5075 18.3354 14.7869C18.2262 14.0221 18.1716 13.2847 18.1716 12.52C18.1716 9.89803 18.9363 7.46727 21.3124 5.71932C21.5582 5.52813 21.8313 5.36426 22.1318 5.20039C22.8965 7.11222 23.6339 9.05136 24.3167 10.9905C24.5625 11.6733 24.8083 12.3834 25.0268 13.0662C25.3546 14.0221 25.655 15.0053 25.9281 15.9613C26.2832 17.1903 26.6382 18.4466 26.9387 19.7303C27.1025 20.4404 27.2391 21.1778 27.3757 21.9153C27.5941 23.4174 27.7307 24.9196 27.6761 26.449ZM30.7623 17.5454C30.2161 18.037 29.6152 18.4466 28.9597 18.8017C28.4681 16.726 27.8673 14.6776 27.1845 12.6292C29.2055 12.2469 31.2539 11.9191 33.3023 11.646C33.3296 13.8582 32.4284 16.0705 30.7623 17.5454Z" fill="%234862CC"/>%0A</svg>%0A';
|
|
2905
|
+
|
|
2906
|
+
// src/components/assets/Color=White_icon.svg
|
|
2907
|
+
var Color_White_icon_default = 'data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect width="40" height="40" fill="black"/>%0A<path d="M27.3482 21.9154C27.239 21.178 27.0751 20.4679 26.9112 19.7305C26.6108 18.4468 26.283 17.1905 25.9007 15.9614C25.6002 14.9782 25.2998 14.0223 24.9994 13.0664C24.7809 12.3836 24.5351 11.6735 24.2893 10.9907C23.6065 9.05153 22.8691 7.11238 22.1043 5.20055C21.8312 5.36443 21.5581 5.5283 21.285 5.71948C18.9088 7.44013 18.1441 9.89819 18.1441 12.5201C18.1441 13.2576 18.1987 14.0223 18.308 14.787C18.5538 16.5077 19.0181 18.2283 19.4824 19.7578C19.6736 20.3859 19.8648 21.0414 20.0832 21.6696C20.3017 22.3524 20.5475 23.0625 20.7934 23.7453C21.9678 27.0227 23.3334 30.2455 24.699 33.441C26.5288 31.5838 27.5394 29.0984 27.6486 26.4492C27.7306 24.9197 27.594 23.4176 27.3482 21.9154Z" fill="%23F7B52C"/>%0A<path d="M35.4873 11.3729C35.46 10.6355 35.3507 9.89803 35.1595 9.18792C34.6133 7.11222 33.3843 5.25501 31.6363 3.94404C29.2329 2.14146 26.1193 1.5406 23.2516 2.35996C23.115 2.38727 23.0058 2.44189 22.8692 2.4692C22.323 2.66039 21.7767 2.87888 21.2578 3.152C18.9909 4.35372 17.243 6.3748 16.3963 8.80556C15.9593 10.2258 15.85 11.7279 15.9593 13.2301C13.8563 13.9675 11.8352 14.9234 10.0872 16.2344C7.57455 18.0916 5.88122 20.7955 5.28036 23.7998C5.1438 24.5099 5.03455 25.22 5.00724 25.9574C5.00724 25.9847 5.00724 26.012 5.00724 26.0393C4.87068 30.0269 6.67326 33.9325 9.86875 36.3359C13.1462 38.794 17.4341 39.5041 21.3124 38.1385C22.2137 37.8108 23.0604 37.4011 23.8797 36.9095C24.5079 36.5271 25.1088 36.0628 25.6823 35.5712C27.403 34.0417 28.7139 32.1026 29.3967 29.863C30.2434 27.0499 29.9976 23.9363 29.4514 21.0413C30.2707 20.6316 31.0354 20.1673 31.7456 19.6211C34.0944 17.8458 35.4327 15.0054 35.5419 12.083C35.5146 11.8099 35.5146 11.5914 35.4873 11.3729ZM28.7139 4.7634C30.7896 5.66469 32.3191 7.38534 32.9746 9.48835C30.7896 9.78878 28.632 10.1438 26.4744 10.5535C25.9827 9.21523 25.4911 7.90426 24.9722 6.5933C24.6991 5.85588 24.3987 5.14577 24.0982 4.40835C25.6277 4.05329 27.2391 4.10792 28.7139 4.7634ZM10.5789 18.6105C12.1903 17.1903 14.184 16.2071 16.2324 15.4697C16.3143 15.8793 16.369 16.3163 16.4782 16.726C16.8606 18.5559 17.3522 20.3312 17.9531 22.1064C14.5391 22.7346 11.0705 23.1716 7.60186 23.554C8.09348 21.6421 9.10402 19.9215 10.5789 18.6105ZM13.5012 35.8989C10.1146 34.506 7.76574 31.4471 7.27412 27.8419C7.19219 27.1591 7.16487 26.4763 7.19219 25.7935C11.0158 25.3565 14.8668 24.8922 18.6359 24.2094C19.1275 25.5477 19.6464 26.8587 20.1653 28.1697C21.0666 30.4366 22.0225 32.6488 22.9784 34.8884C20.1926 36.6637 16.6148 37.1826 13.5012 35.8989ZM27.6761 26.449C27.5668 29.0983 26.5563 31.5837 24.7264 33.4409C23.3335 30.2454 21.9952 27.0226 20.8208 23.7451C20.575 23.0623 20.3292 22.3522 20.1107 21.6694C19.8922 21.0413 19.701 20.4131 19.5098 19.7576C19.0455 18.2008 18.5812 16.5075 18.3354 14.7869C18.2262 14.0221 18.1716 13.2847 18.1716 12.52C18.1716 9.89803 18.9363 7.46727 21.3124 5.71932C21.5582 5.52813 21.8313 5.36426 22.1318 5.20039C22.8965 7.11222 23.6339 9.05136 24.3167 10.9905C24.5625 11.6733 24.8083 12.3834 25.0268 13.0662C25.3546 14.0221 25.655 15.0053 25.9281 15.9613C26.2832 17.1903 26.6382 18.4466 26.9387 19.7303C27.1025 20.4404 27.2391 21.1778 27.3757 21.9153C27.5941 23.4174 27.7307 24.9196 27.6761 26.449ZM30.7623 17.5454C30.2161 18.037 29.6152 18.4466 28.9597 18.8017C28.4681 16.726 27.8673 14.6776 27.1845 12.6292C29.2055 12.2469 31.2539 11.9191 33.3023 11.646C33.3296 13.8582 32.4284 16.0705 30.7623 17.5454Z" fill="white"/>%0A</svg>%0A';
|
|
2908
|
+
|
|
2909
|
+
// src/components/SWAPLogo.tsx
|
|
2910
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2911
|
+
function pickSrc(p) {
|
|
2912
|
+
if (p.business) return p.chinese ? Blue_Biz_default : SWAP_BIZ_web_logo_test_01_default;
|
|
2913
|
+
if (p.black) {
|
|
2914
|
+
if (p.iconOnly) return Color_White_icon_default;
|
|
2915
|
+
if (p.dark) return Color_White_default;
|
|
2916
|
+
return Color_Black_default;
|
|
2917
|
+
}
|
|
2918
|
+
if (p.iconOnly) return Color_Blue_default;
|
|
2919
|
+
if (p.dark) return SWAP_web_logo_white_default;
|
|
2920
|
+
return SWAP_web_logo_default;
|
|
2921
|
+
}
|
|
2922
|
+
function logoHeight(size, business) {
|
|
2923
|
+
const map = business ? { small: "48px", middle: "72px", large: "81px" } : { small: "30px", middle: "40px", large: "48px" };
|
|
2924
|
+
if (size === "small" || size === "middle" || size === "large") return map[size];
|
|
2925
|
+
if (typeof size === "number") return `${size}px`;
|
|
2926
|
+
if (typeof size === "string") return size;
|
|
2927
|
+
return business ? "42px" : "100%";
|
|
2928
|
+
}
|
|
2929
|
+
var SWAPLogo = (props) => {
|
|
2930
|
+
const { size = "middle", width, height } = props;
|
|
2931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_Box16.default, { component: "span", sx: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2932
|
+
"img",
|
|
2933
|
+
{
|
|
2934
|
+
src: pickSrc(props),
|
|
2935
|
+
alt: props.business ? "SWAP BIZ" : "SWAP",
|
|
2936
|
+
style: {
|
|
2937
|
+
height: cssSize(height) ?? logoHeight(size, props.business),
|
|
2938
|
+
width: cssSize(width)
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
) });
|
|
2942
|
+
};
|
|
2943
|
+
var SWAPLogo_default = SWAPLogo;
|
|
2944
|
+
|
|
2945
|
+
// src/components/SWAPShare.tsx
|
|
2946
|
+
var import_react = require("react");
|
|
2947
|
+
var import_Box17 = __toESM(require("@mui/material/Box"), 1);
|
|
2948
|
+
var import_react_share = require("react-share");
|
|
2949
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2950
|
+
var SWAPShare = ({
|
|
2951
|
+
url,
|
|
2952
|
+
size = 36,
|
|
2953
|
+
emailSubject = "",
|
|
2954
|
+
sharedContent = ""
|
|
2955
|
+
}) => {
|
|
2956
|
+
const [sharedUrl, setSharedUrl] = (0, import_react.useState)("");
|
|
2957
|
+
(0, import_react.useEffect)(() => {
|
|
2958
|
+
if (url && url.length > 0) {
|
|
2959
|
+
setSharedUrl(url);
|
|
2960
|
+
} else {
|
|
2961
|
+
setSharedUrl(window.location.href);
|
|
2962
|
+
}
|
|
2963
|
+
}, []);
|
|
2964
|
+
const handleEmailOnClick = () => {
|
|
2965
|
+
const email = encodeURI(`mailto:
|
|
2966
|
+
?subject=${emailSubject}&body=${sharedContent}
|
|
2967
|
+
|
|
2968
|
+
${sharedUrl}`);
|
|
2969
|
+
window.location.href = email;
|
|
2970
|
+
};
|
|
2971
|
+
const handleMessengerOnClick = () => {
|
|
2972
|
+
const appId = 549090209290719;
|
|
2973
|
+
const mobileDevide = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
|
2974
|
+
const mobile = "fb-messenger://share?link=" + encodeURIComponent(`${sharedUrl}`) + `&app_id=` + encodeURIComponent(appId);
|
|
2975
|
+
const desktop = `https://www.facebook.com/dialog/send?link=${encodeURIComponent(
|
|
2976
|
+
sharedUrl
|
|
2977
|
+
)}&redirect_uri=${encodeURIComponent(sharedUrl)}&app_id=${appId}`;
|
|
2978
|
+
window.open(mobileDevide ? mobile : desktop, "_blank");
|
|
2979
|
+
};
|
|
2980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2981
|
+
import_Box17.default,
|
|
2982
|
+
{
|
|
2983
|
+
sx: {
|
|
2984
|
+
height: 40,
|
|
2985
|
+
position: "relative",
|
|
2986
|
+
display: "flex",
|
|
2987
|
+
gap: "8px",
|
|
2988
|
+
"& .swap_share_icon": { cursor: "pointer", width: 40, height: 40 }
|
|
2989
|
+
},
|
|
2990
|
+
children: [
|
|
2991
|
+
{
|
|
2992
|
+
el: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2993
|
+
"div",
|
|
2994
|
+
{
|
|
2995
|
+
className: "swap_share_icon",
|
|
2996
|
+
onClick: () => handleMessengerOnClick(),
|
|
2997
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2998
|
+
"svg",
|
|
2999
|
+
{
|
|
3000
|
+
width: "40",
|
|
3001
|
+
height: "40",
|
|
3002
|
+
viewBox: "0 0 40 40",
|
|
3003
|
+
fill: "none",
|
|
3004
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3005
|
+
children: [
|
|
3006
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3007
|
+
"path",
|
|
3008
|
+
{
|
|
3009
|
+
d: "M0 10C0 4.47715 4.47715 0 10 0H30C35.5228 0 40 4.47715 40 10V30C40 35.5228 35.5228 40 30 40H10C4.47715 40 0 35.5228 0 30V10Z",
|
|
3010
|
+
fill: "#ECECEC"
|
|
3011
|
+
}
|
|
3012
|
+
),
|
|
3013
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3014
|
+
"path",
|
|
3015
|
+
{
|
|
3016
|
+
d: "M19.9999 10C14.3599 10 9.99988 14.13 9.99988 19.7C9.99988 22.61 11.1899 25.14 13.1399 26.87C13.2999 27 13.3999 27.22 13.4099 27.44L13.4599 29.22C13.4999 29.79 14.0699 30.16 14.5899 29.93L16.5699 29.06C16.7399 29 16.9299 28.97 17.0999 29C17.9999 29.27 18.9999 29.4 19.9999 29.4C25.6399 29.4 29.9999 25.27 29.9999 19.7C29.9999 14.13 25.6399 10 19.9999 10ZM25.9999 17.46L23.0699 22.13C22.5999 22.86 21.5999 23.05 20.8999 22.5L18.5599 20.77C18.3499 20.61 18.0499 20.61 17.8399 20.77L14.6799 23.17C14.2599 23.5 13.7099 23 13.9999 22.54L16.9299 17.87C17.3999 17.14 18.3999 16.95 19.0999 17.47L21.4399 19.23C21.6599 19.39 21.9499 19.39 22.1599 19.23L25.3199 16.83C25.7399 16.5 26.2899 17 25.9999 17.46Z",
|
|
3017
|
+
fill: "#6F6F6F"
|
|
3018
|
+
}
|
|
3019
|
+
)
|
|
3020
|
+
]
|
|
3021
|
+
}
|
|
3022
|
+
)
|
|
3023
|
+
}
|
|
3024
|
+
)
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
el: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_share.LineShareButton, { url: sharedUrl, title: sharedContent, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
3028
|
+
"svg",
|
|
3029
|
+
{
|
|
3030
|
+
width: "40",
|
|
3031
|
+
height: "40",
|
|
3032
|
+
viewBox: "0 0 40 40",
|
|
3033
|
+
fill: "none",
|
|
3034
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3035
|
+
children: [
|
|
3036
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3037
|
+
"path",
|
|
3038
|
+
{
|
|
3039
|
+
d: "M0 10C0 4.47715 4.47715 0 10 0H30C35.5228 0 40 4.47715 40 10V30C40 35.5228 35.5228 40 30 40H10C4.47715 40 0 35.5228 0 30V10Z",
|
|
3040
|
+
fill: "#ECECEC"
|
|
3041
|
+
}
|
|
3042
|
+
),
|
|
3043
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3044
|
+
"path",
|
|
3045
|
+
{
|
|
3046
|
+
d: "M10 20C10 14.4772 14.4772 10 20 10C25.5228 10 30 14.4772 30 20C30 25.5228 25.5228 30 20 30C14.4772 30 10 25.5228 10 20Z",
|
|
3047
|
+
fill: "#6F6F6F"
|
|
3048
|
+
}
|
|
3049
|
+
),
|
|
3050
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3051
|
+
"path",
|
|
3052
|
+
{
|
|
3053
|
+
d: "M20.1666 14.667C16.7666 14.667 14 16.8957 14 19.6352C14 22.0912 16.1938 24.148 19.1573 24.5369C19.3581 24.5799 19.6314 24.6683 19.7006 24.8388C19.7628 24.9936 19.7413 25.236 19.7205 25.3924C19.7205 25.3924 19.6481 25.8244 19.6325 25.9164C19.6057 26.0712 19.5086 26.5218 20.1666 26.2464C20.8248 25.9711 23.718 24.1704 25.0118 22.6919C25.9053 21.719 26.3333 20.7316 26.3333 19.6352C26.3333 16.8957 23.5671 14.667 20.1666 14.667Z",
|
|
3054
|
+
fill: "white"
|
|
3055
|
+
}
|
|
3056
|
+
),
|
|
3057
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3058
|
+
"path",
|
|
3059
|
+
{
|
|
3060
|
+
d: "M18.4525 18.3335C18.3868 18.3335 18.3334 18.3886 18.3334 18.4564V21.2106C18.3334 21.2785 18.3868 21.3335 18.4525 21.3335H18.881C18.9468 21.3335 19 21.2785 19 21.2106V18.4564C19 18.3886 18.9468 18.3335 18.881 18.3335H18.4525Z",
|
|
3061
|
+
fill: "#6F6F6F"
|
|
3062
|
+
}
|
|
3063
|
+
),
|
|
3064
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3065
|
+
"path",
|
|
3066
|
+
{
|
|
3067
|
+
d: "M21.8746 18.3335H21.4235C21.3543 18.3335 21.2982 18.3886 21.2982 18.4564V20.0927L20.014 18.3881C20.011 18.3838 20.0077 18.3797 20.0042 18.3757L20.0034 18.3749C20.0009 18.3722 19.9984 18.3697 19.9958 18.3673C19.9951 18.3666 19.9944 18.366 19.9935 18.3652C19.9914 18.3633 19.9892 18.3615 19.9868 18.3598C19.9859 18.3588 19.9848 18.3581 19.9836 18.3572C19.9814 18.3558 19.9793 18.3542 19.9771 18.3529C19.9759 18.352 19.9746 18.3513 19.9733 18.3507C19.9711 18.3494 19.9688 18.348 19.9666 18.3469C19.9653 18.3463 19.964 18.3456 19.9627 18.3451C19.9603 18.344 19.958 18.3429 19.9555 18.3421C19.9541 18.3416 19.9528 18.3411 19.9515 18.3406C19.949 18.3398 19.9465 18.3389 19.9439 18.3383C19.9426 18.3379 19.9411 18.3376 19.9396 18.3371C19.9372 18.3366 19.9348 18.336 19.9325 18.3356C19.9307 18.3353 19.9289 18.3351 19.9272 18.335C19.925 18.3345 19.9227 18.3343 19.9205 18.3341C19.9184 18.3339 19.9163 18.3339 19.9141 18.3337C19.9125 18.3337 19.9113 18.3335 19.9097 18.3335H19.4586C19.3895 18.3335 19.3333 18.3886 19.3333 18.4564V21.2106C19.3333 21.2785 19.3895 21.3335 19.4586 21.3335H19.9097C19.979 21.3335 20.0351 21.2785 20.0351 21.2106V19.5748L21.3209 21.2815C21.3298 21.2939 21.3408 21.3039 21.3527 21.3119C21.3531 21.3122 21.3536 21.3125 21.354 21.3129C21.3566 21.3145 21.3591 21.316 21.3617 21.3175C21.363 21.3182 21.3641 21.3187 21.3653 21.3193C21.3672 21.3204 21.3693 21.3214 21.3712 21.3222C21.3733 21.3231 21.3752 21.3239 21.3774 21.3248C21.3786 21.3253 21.3799 21.3257 21.3811 21.3261C21.3841 21.3272 21.3868 21.328 21.3896 21.3289C21.3902 21.3289 21.3908 21.3291 21.3914 21.3293C21.4017 21.3319 21.4124 21.3335 21.4235 21.3335H21.8746C21.9439 21.3335 21.9999 21.2785 21.9999 21.2106V18.4564C21.9999 18.3886 21.9439 18.3335 21.8746 18.3335Z",
|
|
3068
|
+
fill: "#6F6F6F"
|
|
3069
|
+
}
|
|
3070
|
+
),
|
|
3071
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3072
|
+
"path",
|
|
3073
|
+
{
|
|
3074
|
+
d: "M17.8782 20.6438H16.6837V18.4566C16.6837 18.3886 16.6291 18.3335 16.5618 18.3335H16.1221C16.0547 18.3335 16 18.3886 16 18.4566V21.2103V21.2105C16 21.2436 16.0131 21.2735 16.0341 21.2956C16.0346 21.2962 16.0351 21.2968 16.0358 21.2974C16.0364 21.298 16.037 21.2985 16.0376 21.2991C16.0596 21.3204 16.0891 21.3335 16.1219 21.3335H17.8782C17.9456 21.3335 18 21.2782 18 21.2103V20.7669C18 20.6989 17.9456 20.6438 17.8782 20.6438Z",
|
|
3075
|
+
fill: "#6F6F6F"
|
|
3076
|
+
}
|
|
3077
|
+
),
|
|
3078
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3079
|
+
"path",
|
|
3080
|
+
{
|
|
3081
|
+
d: "M24.2115 19.0232C24.2789 19.0232 24.3334 18.9682 24.3334 18.9001V18.4567C24.3334 18.3887 24.2789 18.3335 24.2115 18.3335H22.4554H22.4552C22.4223 18.3335 22.3926 18.3468 22.3706 18.3683C22.3701 18.3688 22.3695 18.3691 22.3692 18.3696C22.3685 18.3703 22.3679 18.3711 22.3673 18.3718C22.3463 18.3938 22.3334 18.4236 22.3334 18.4566V18.4567V21.2104V21.2105C22.3334 21.2436 22.3465 21.2735 22.3675 21.2956C22.368 21.2962 22.3686 21.2969 22.3692 21.2974C22.3697 21.298 22.3704 21.2986 22.371 21.2991C22.3928 21.3203 22.4225 21.3335 22.4552 21.3335H24.2115C24.2789 21.3335 24.3334 21.2782 24.3334 21.2104V20.7669C24.3334 20.6991 24.2789 20.6438 24.2115 20.6438H23.0172V20.1783H24.2115C24.2789 20.1783 24.3334 20.1231 24.3334 20.0552V19.6118C24.3334 19.5438 24.2789 19.4886 24.2115 19.4886H23.0172V19.0232H24.2115Z",
|
|
3082
|
+
fill: "#6F6F6F"
|
|
3083
|
+
}
|
|
3084
|
+
)
|
|
3085
|
+
]
|
|
3086
|
+
}
|
|
3087
|
+
) })
|
|
3088
|
+
},
|
|
3089
|
+
{
|
|
3090
|
+
el: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "swap_share_icon", onClick: handleEmailOnClick, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
3091
|
+
"svg",
|
|
3092
|
+
{
|
|
3093
|
+
width: "40",
|
|
3094
|
+
height: "40",
|
|
3095
|
+
viewBox: "0 0 40 40",
|
|
3096
|
+
fill: "none",
|
|
3097
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3098
|
+
children: [
|
|
3099
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3100
|
+
"path",
|
|
3101
|
+
{
|
|
3102
|
+
d: "M0 10C0 4.47715 4.47715 0 10 0H30C35.5228 0 40 4.47715 40 10V30C40 35.5228 35.5228 40 30 40H10C4.47715 40 0 35.5228 0 30V10Z",
|
|
3103
|
+
fill: "#ECECEC"
|
|
3104
|
+
}
|
|
3105
|
+
),
|
|
3106
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3107
|
+
"path",
|
|
3108
|
+
{
|
|
3109
|
+
d: "M28 16L20 21L12 16V14L20 19L28 14V16ZM28 12H12C10.89 12 10 12.89 10 14V26C10 26.5304 10.2107 27.0391 10.5858 27.4142C10.9609 27.7893 11.4696 28 12 28H28C28.5304 28 29.0391 27.7893 29.4142 27.4142C29.7893 27.0391 30 26.5304 30 26V14C30 12.89 29.1 12 28 12Z",
|
|
3110
|
+
fill: "#6F6F6F"
|
|
3111
|
+
}
|
|
3112
|
+
)
|
|
3113
|
+
]
|
|
3114
|
+
}
|
|
3115
|
+
) })
|
|
3116
|
+
}
|
|
3117
|
+
].map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: item.el }, `share_btn_${index}`))
|
|
3118
|
+
}
|
|
3119
|
+
);
|
|
3120
|
+
};
|
|
3121
|
+
var SWAPShare_default = SWAPShare;
|
|
3122
|
+
|
|
3123
|
+
// src/components/TaxTextField.tsx
|
|
3124
|
+
var React27 = __toESM(require("react"), 1);
|
|
3125
|
+
var import_react2 = require("react");
|
|
3126
|
+
|
|
3127
|
+
// src/tax/constants.ts
|
|
3128
|
+
var SWAPIncomeTypes = [
|
|
3129
|
+
{
|
|
3130
|
+
code: "9A",
|
|
3131
|
+
label: "\u57F7\u884C\u696D\u52D9\u6240\u5F97"
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
code: "9B",
|
|
3135
|
+
label: "\u7A3F\u8CBB"
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
code: "50",
|
|
3139
|
+
label: "\u85AA\u8CC7\u6240\u5F97"
|
|
3140
|
+
}
|
|
3141
|
+
];
|
|
3142
|
+
var SWAPExpenseTypes = [
|
|
3143
|
+
{ label: "\u5F8B\u5E2B", expenseRatio: "30%", code: "10", source: "9A" },
|
|
3144
|
+
{ label: "\u6703\u8A08\u5E2B", expenseRatio: "30%", code: "11", source: "9A" },
|
|
3145
|
+
{ label: "\u7CBE\u7B97\u5E2B", expenseRatio: "20%", code: "12", source: "9A" },
|
|
3146
|
+
{ label: "\u5730\u653F\u58EB", expenseRatio: "30%", code: "13", source: "9A" },
|
|
3147
|
+
{ label: "\u8A18\u5E33\u58EB", expenseRatio: "30%", code: "14", source: "9A" },
|
|
3148
|
+
{ label: "\u4EF2\u88C1\u4EBA", expenseRatio: "15%", code: "15", source: "9A" },
|
|
3149
|
+
{ label: "\u6C11\u9593\u516C\u8B49\u4EBA", expenseRatio: "30%", code: "16", source: "9A" },
|
|
3150
|
+
{ label: "\u4E0D\u52D5\u7522\u4F30\u50F9\u5E2B", expenseRatio: "35%", code: "17", source: "9A" },
|
|
3151
|
+
{
|
|
3152
|
+
label: "\u53D7\u59D4\u8A17\u4EE3\u8FA6\u570B\u6709\u975E\u516C\u7528\u4E0D\u52D5\u7522\u4E4B\u627F\u79DF\u3001\u7E8C\u79DF\u3001\u904E\u6236\u53CA\u7E7C\u627F\u7B49\u7533\u8ACB\u8005",
|
|
3153
|
+
expenseRatio: "30%",
|
|
3154
|
+
code: "18",
|
|
3155
|
+
source: "9A"
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
label: "\u8A18\u5E33\u53CA\u5831\u7A05\u4EE3\u7406\u696D\u4EBA",
|
|
3159
|
+
expenseRatio: "30%",
|
|
3160
|
+
code: "19",
|
|
3161
|
+
source: "9A"
|
|
3162
|
+
},
|
|
3163
|
+
{ label: "\u6280\u5E2B", expenseRatio: "35%", code: "20", source: "9A" },
|
|
3164
|
+
{ label: "\u5EFA\u7BC9\u5E2B", expenseRatio: "35%", code: "21", source: "9A" },
|
|
3165
|
+
{ label: "\u516C\u5171\u5B89\u6AA2\u4EBA\u54E1", expenseRatio: "35%", code: "22", source: "9A" },
|
|
3166
|
+
{
|
|
3167
|
+
label: "\u672A\u5177\u6703\u8A08\u5E2B\u8CC7\u683C\uFF0C\u8FA6\u7406\u5DE5\u5546\u767B\u8A18\u7B49\u696D\u52D9\u8005",
|
|
3168
|
+
expenseRatio: "30%",
|
|
3169
|
+
code: "23",
|
|
3170
|
+
source: "9A"
|
|
3171
|
+
},
|
|
3172
|
+
{ label: "\u5DE5\u5320\uFF08\u5DE5\u8CC7\u6536\u5165\uFF09", expenseRatio: "20%", code: "24", source: "9A" },
|
|
3173
|
+
{ label: "\u5DE5\u5320\uFF08\u5DE5\u6599\u6536\u5165\uFF09", expenseRatio: "62%", code: "25", source: "9A" },
|
|
3174
|
+
{ label: "\u5F15\u6C34\u4EBA", expenseRatio: "25%", code: "26", source: "9A" },
|
|
3175
|
+
{
|
|
3176
|
+
label: "\u5F8B\u5E2B\u914D\u5408\u653F\u5E9C\u653F\u7B56\u8FA6\u7406\u6CD5\u5F8B\u6276\u52A9\u6848\u4EF6\u4E4B\u6536\u5165",
|
|
3177
|
+
expenseRatio: "50%",
|
|
3178
|
+
code: "27",
|
|
3179
|
+
source: "9A"
|
|
3180
|
+
},
|
|
3181
|
+
{ label: "\u5167\u79D1\u91AB\u5E2B", expenseRatio: "40%", code: "30", source: "9A" },
|
|
3182
|
+
{ label: "\u5916\u79D1\u91AB\u5E2B", expenseRatio: "45%", code: "31", source: "9A" },
|
|
3183
|
+
{ label: "\u5C0F\u5152\u79D1\u91AB\u5E2B", expenseRatio: "40%", code: "32", source: "9A" },
|
|
3184
|
+
{ label: "\u5A66\u7522\u79D1\u91AB\u5E2B", expenseRatio: "45%", code: "33", source: "9A" },
|
|
3185
|
+
{ label: "\u773C\u79D1\u91AB\u5E2B", expenseRatio: "40%", code: "34", source: "9A" },
|
|
3186
|
+
{ label: "\u8033\u9F3B\u5589\u79D1\u91AB\u5E2B", expenseRatio: "40%", code: "35", source: "9A" },
|
|
3187
|
+
{ label: "\u7259\u79D1\u91AB\u5E2B", expenseRatio: "40%", code: "36", source: "9A" },
|
|
3188
|
+
{ label: "\u7CBE\u795E\u79D1\u91AB\u5E2B", expenseRatio: "46%", code: "37", source: "9A" },
|
|
3189
|
+
{ label: "\u9AA8\u79D1\u91AB\u5E2B", expenseRatio: "45%", code: "38", source: "9A" },
|
|
3190
|
+
{ label: "\u5176\u4ED6\u79D1\u5225\u91AB\u5E2B", expenseRatio: "43%", code: "39", source: "9A" },
|
|
3191
|
+
{
|
|
3192
|
+
label: "\u52A9\u7522\u5E2B\uFF08\u58EB\uFF09",
|
|
3193
|
+
expenseRatio: "31%",
|
|
3194
|
+
code: "40",
|
|
3195
|
+
source: "9A"
|
|
3196
|
+
},
|
|
3197
|
+
{ label: "\u85E5\u5E2B", expenseRatio: "20%", code: "41", source: "9A" },
|
|
3198
|
+
{
|
|
3199
|
+
label: "\u91AB\u4E8B\u6AA2\u9A57\u5E2B\uFF08\u751F\uFF09",
|
|
3200
|
+
expenseRatio: "43%",
|
|
3201
|
+
code: "42",
|
|
3202
|
+
source: "9A"
|
|
3203
|
+
},
|
|
3204
|
+
{ label: "\u71DF\u990A\u5E2B", expenseRatio: "20%", code: "45", source: "9A" },
|
|
3205
|
+
{
|
|
3206
|
+
label: "\u91AB\u7642\u6A5F\u69CB\u91AB\u5E2B\u7D93\u6838\u51C6\u524D\u5F80\u4ED6\u91AB\u7642\u6A5F\u69CB\u5F9E\u4E8B\u91AB\u7642\u696D\u52D9\u4E14\u4E0D\u5177\u50F1\u50AD\u95DC\u4FC2\u8005",
|
|
3207
|
+
expenseRatio: "10%",
|
|
3208
|
+
code: "46",
|
|
3209
|
+
source: "9A"
|
|
3210
|
+
},
|
|
3211
|
+
{ label: "\u7378\u91AB\u5E2B", expenseRatio: "32%", code: "47", source: "9A" },
|
|
3212
|
+
{ label: "\u76AE\u819A\u79D1\u91AB\u5E2B", expenseRatio: "40%", code: "48", source: "9A" },
|
|
3213
|
+
{ label: "\u5BB6\u5EAD\u91AB\u5B78\u79D1\u91AB\u5E2B", expenseRatio: "40%", code: "49", source: "9A" },
|
|
3214
|
+
{ label: "\u4E2D\u91AB\u5E2B", expenseRatio: "20%", code: "50", source: "9A" },
|
|
3215
|
+
{ label: "\u8A9E\u8A00\u6CBB\u7642\u5E2B", expenseRatio: "20%", code: "51", source: "9A" },
|
|
3216
|
+
{ label: "\u4EBA\u58FD\u4FDD\u96AA\u91AB\u7642\u6AA2\u67E5", expenseRatio: "35%", code: "52", source: "9A" },
|
|
3217
|
+
{ label: "\u7269\u7406\u6CBB\u7642\u5E2B", expenseRatio: "43%", code: "53", source: "9A" },
|
|
3218
|
+
{ label: "\u8077\u80FD\u6CBB\u7642\u5E2B", expenseRatio: "43%", code: "54", source: "9A" },
|
|
3219
|
+
{ label: "\u5FC3\u7406\u5E2B", expenseRatio: "20%", code: "55", source: "9A" },
|
|
3220
|
+
{ label: "\u7259\u9AD4\u6280\u8853\u5E2B", expenseRatio: "40%", code: "56", source: "9A" },
|
|
3221
|
+
{
|
|
3222
|
+
label: "\u897F\u91AB\u5E2B\uFF08\u914D\u5408\u653F\u5E9C\u653F\u7B56\u8FA6\u7406\u8001\u4EBA\u3001\u5152\u7AE5\u3001\u5A66\u5973\u3001\u4E2D\u4F4E\u6536\u5165\u8005\u3001\u8EAB\u5FC3\u969C\u7919\u8005\u53CA\u5176\u4ED6\u7279\u5B9A\u5C0D\u8C61\u88DC\u52A9\u8A08\u756B\u4E4B\u696D\u52D9\u6536\u5165\uFF09",
|
|
3223
|
+
expenseRatio: "78%",
|
|
3224
|
+
code: "57",
|
|
3225
|
+
source: "9A"
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
label: "\u897F\u91AB\u5E2B\uFF08\u81EA\u8CBB\u75AB\u82D7\u6CE8\u5C04\u6536\u5165\uFF09",
|
|
3229
|
+
expenseRatio: "78%",
|
|
3230
|
+
code: "58",
|
|
3231
|
+
source: "9A"
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
label: "\u897F\u91AB\u5E2B\uFF08C\u578B\u809D\u708E\u5168\u53E3\u670D\u65B0\u85E5\u5065\u4FDD\u7D66\u4ED8\u6536\u5165\uFF09",
|
|
3235
|
+
expenseRatio: "96%",
|
|
3236
|
+
code: "59",
|
|
3237
|
+
source: "9A"
|
|
3238
|
+
},
|
|
3239
|
+
{ label: "\u66F8\u756B\u5BB6\u3001\u7248\u756B\u5BB6", expenseRatio: "30%", code: "61", source: "9A" },
|
|
3240
|
+
{ label: "\u547D\u7406\u535C\u5366", expenseRatio: "20%", code: "62", source: "9A" },
|
|
3241
|
+
{
|
|
3242
|
+
label: "\u8868\u6F14\u4EBA\uFF08\u6F14\u54E1\u3001\u6B4C\u624B\u3001\u6A21\u7279\u5152\u3001\u7BC0\u76EE\u4E3B\u6301\u4EBA\u3001\u821E\u8E48\u8868\u6F14\u4EBA\u3001\u76F8\u8072\u8868\u6F14\u4EBA\u3001\u7279\u6280\u8868\u6F14\u4EBA\u3001\u6A02\u5668\u8868\u6F14\u4EBA\u3001\u9B54\u8853\u8868\u6F14\u4EBA\u3001\u5176\u4ED6\u8868\u6F14\u4EBA\uFF09",
|
|
3243
|
+
expenseRatio: "45%",
|
|
3244
|
+
code: "70",
|
|
3245
|
+
source: "9A"
|
|
3246
|
+
},
|
|
3247
|
+
{ label: "\u4FDD\u96AA\u7D93\u7D00\u4EBA", expenseRatio: "26%", code: "71", source: "9A" },
|
|
3248
|
+
{ label: "\u7BC0\u76EE\u88FD\u4F5C\u4EBA", expenseRatio: "45%", code: "72", source: "9A" },
|
|
3249
|
+
{
|
|
3250
|
+
label: "\u516C\u76CA\u5F69\u5238\u7ACB\u5373\u578B\u5F69\u5238\u7D93\u92B7\u5546",
|
|
3251
|
+
expenseRatio: "60%",
|
|
3252
|
+
code: "73",
|
|
3253
|
+
source: "9A"
|
|
3254
|
+
},
|
|
3255
|
+
{ label: "\u4E00\u822C\u7D93\u7D00\u4EBA", expenseRatio: "20%", code: "76", source: "9A" },
|
|
3256
|
+
{ label: "\u5176\u4ED6", expenseRatio: "0%", code: "90", source: "9A" },
|
|
3257
|
+
{ label: "\u5546\u6A19\u4EE3\u7406\u4EBA", expenseRatio: "30%", code: "91", source: "9A" },
|
|
3258
|
+
{ label: "\u7A0B\u5F0F\u8A2D\u8A08\u5E2B", expenseRatio: "20%", code: "92", source: "9A" },
|
|
3259
|
+
{ label: "\u5C08\u5229\u5E2B\u53CA\u5C08\u5229\u4EE3\u7406", expenseRatio: "30%", code: "93", source: "9A" },
|
|
3260
|
+
{
|
|
3261
|
+
label: "\u672A\u5177\u5F8B\u5E2B\u8CC7\u683C\uFF0C\u8FA6\u7406\u8A34\u8A1F\u4EE3\u7406\u4EBA\u696D\u52D9",
|
|
3262
|
+
expenseRatio: "23%",
|
|
3263
|
+
code: "94",
|
|
3264
|
+
source: "9A"
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
label: "\u672A\u5177\u5EFA\u7BC9\u5E2B\u8CC7\u683C\uFF0C\u8FA6\u7406\u5EFA\u7BC9\u898F\u5283\u8A2D\u8A08\u53CA\u76E3\u9020\u7B49\u696D\u52D9\u8005",
|
|
3268
|
+
expenseRatio: "35%",
|
|
3269
|
+
code: "95",
|
|
3270
|
+
source: "9A"
|
|
3271
|
+
},
|
|
3272
|
+
{
|
|
3273
|
+
label: "\u672A\u5177\u5730\u653F\u58EB\u8CC7\u683C\uFF0C\u8FA6\u7406\u571F\u5730\u767B\u8A18\u7B49\u696D\u52D9\u8005",
|
|
3274
|
+
expenseRatio: "30%",
|
|
3275
|
+
code: "96",
|
|
3276
|
+
source: "9A"
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
label: "\u53D7\u5927\u9678\u5730\u5340\u4EBA\u6C11\u59D4\u8A17\u8FA6\u7406\u7E7C\u627F\u3001\u516C\u6CD5\u7D66\u4ED8\u6216\u5176\u4ED6\u4E8B\u52D9\u8005",
|
|
3280
|
+
expenseRatio: "23%",
|
|
3281
|
+
code: "97",
|
|
3282
|
+
source: "9A"
|
|
3283
|
+
},
|
|
3284
|
+
{ label: "\u81EA\u884C\u51FA\u7248", expenseRatio: "30%", code: "99", source: "9B" },
|
|
3285
|
+
{ label: "\u975E\u81EA\u884C\u51FA\u7248", expenseRatio: "75%", code: "98", source: "9B" }
|
|
3286
|
+
];
|
|
3287
|
+
var SWAPTaxIncomeLabel = (incomeCode) => {
|
|
3288
|
+
if (incomeCode) {
|
|
3289
|
+
return SWAPIncomeTypes.filter((type) => type.code === incomeCode)[0]?.label || "";
|
|
3290
|
+
} else {
|
|
3291
|
+
return "";
|
|
3292
|
+
}
|
|
3293
|
+
};
|
|
3294
|
+
var SWAPTaxExpenseLabel = (expenseCode) => {
|
|
3295
|
+
if (expenseCode) {
|
|
3296
|
+
return SWAPExpenseTypes.filter((type) => type.code === expenseCode)[0]?.label || "";
|
|
3297
|
+
} else {
|
|
3298
|
+
return "";
|
|
3299
|
+
}
|
|
3300
|
+
};
|
|
3301
|
+
var SWAPTaxDescription = (incomeCode, expenseCode) => {
|
|
3302
|
+
let incomeLabel = SWAPTaxIncomeLabel(incomeCode);
|
|
3303
|
+
let expenseLabel = SWAPTaxExpenseLabel(expenseCode);
|
|
3304
|
+
let taxDescription = `${incomeCode} ${incomeLabel}${expenseLabel.length > 0 ? ` - [${expenseCode}] ${expenseLabel}` : ""}`;
|
|
3305
|
+
if (incomeCode && expenseCode) {
|
|
3306
|
+
return taxDescription;
|
|
3307
|
+
} else if (incomeCode === "50") {
|
|
3308
|
+
return `${incomeCode} ${incomeLabel}`;
|
|
3309
|
+
} else {
|
|
3310
|
+
return "";
|
|
3311
|
+
}
|
|
3312
|
+
};
|
|
3313
|
+
|
|
3314
|
+
// src/components/TaxTextField.tsx
|
|
3315
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3316
|
+
var checkSvg4 = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3317
|
+
"path",
|
|
3318
|
+
{
|
|
3319
|
+
d: "M17.4998 5.83345L7.49984 15.8334L2.9165 11.2501L4.0915 10.0751L7.49984 13.4751L16.3248 4.65845L17.4998 5.83345Z",
|
|
3320
|
+
fill: "#4862CC"
|
|
3321
|
+
}
|
|
3322
|
+
) });
|
|
3323
|
+
var headerItemStyle = {
|
|
3324
|
+
fontSize: 12,
|
|
3325
|
+
fontWeight: 700,
|
|
3326
|
+
lineHeight: 1.4,
|
|
3327
|
+
color: "#4b4b4b",
|
|
3328
|
+
opacity: 1,
|
|
3329
|
+
backgroundColor: "white"
|
|
3330
|
+
};
|
|
3331
|
+
var TaxTextField = ({
|
|
3332
|
+
onChange,
|
|
3333
|
+
codeValue,
|
|
3334
|
+
domainValue,
|
|
3335
|
+
domainCodeValue,
|
|
3336
|
+
codeError,
|
|
3337
|
+
codeHelperText,
|
|
3338
|
+
domainError,
|
|
3339
|
+
domainHelperText,
|
|
3340
|
+
codeOnClick,
|
|
3341
|
+
domainOnClick,
|
|
3342
|
+
mobile,
|
|
3343
|
+
codeFocused,
|
|
3344
|
+
domainFocused
|
|
3345
|
+
}) => {
|
|
3346
|
+
const [modalIncome, setModalIncome] = (0, import_react2.useState)("");
|
|
3347
|
+
const [modalExpense, setModalExpense] = (0, import_react2.useState)("");
|
|
3348
|
+
const [anchorEl, setAnchorEl] = React27.useState(null);
|
|
3349
|
+
(0, import_react2.useEffect)(() => {
|
|
3350
|
+
if (!modalIncome) return;
|
|
3351
|
+
onChange?.({
|
|
3352
|
+
incomeCode: modalIncome,
|
|
3353
|
+
expenseCode: modalExpense,
|
|
3354
|
+
incomeLabel: SWAPTaxIncomeLabel(modalIncome),
|
|
3355
|
+
expenseLabel: SWAPTaxExpenseLabel(modalExpense),
|
|
3356
|
+
taxDescription: SWAPTaxDescription(modalIncome, modalExpense),
|
|
3357
|
+
expenseCodeAndLabel: modalExpense ? `[${modalExpense}] ${SWAPTaxExpenseLabel(modalExpense)}` : ""
|
|
3358
|
+
});
|
|
3359
|
+
}, [modalIncome, modalExpense]);
|
|
3360
|
+
const handleCodeClick = () => {
|
|
3361
|
+
codeOnClick?.();
|
|
3362
|
+
setAnchorEl(null);
|
|
3363
|
+
};
|
|
3364
|
+
const handleDomainClick = (event) => {
|
|
3365
|
+
setAnchorEl(anchorEl ? null : event.currentTarget);
|
|
3366
|
+
if (codeValue) setModalIncome(codeValue);
|
|
3367
|
+
domainOnClick?.();
|
|
3368
|
+
};
|
|
3369
|
+
const handleClose = (_e, reason) => {
|
|
3370
|
+
if (reason === "toggleInput") return;
|
|
3371
|
+
anchorEl?.focus();
|
|
3372
|
+
setAnchorEl(null);
|
|
3373
|
+
};
|
|
3374
|
+
const selectedIcon = (active) => active ? checkSvg4 : null;
|
|
3375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3376
|
+
"div",
|
|
3377
|
+
{
|
|
3378
|
+
style: {
|
|
3379
|
+
display: "flex",
|
|
3380
|
+
flexDirection: mobile ? "column" : "row",
|
|
3381
|
+
alignItems: "flex-start",
|
|
3382
|
+
justifyContent: "space-between"
|
|
3383
|
+
},
|
|
3384
|
+
children: [
|
|
3385
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3386
|
+
TextField_default,
|
|
3387
|
+
{
|
|
3388
|
+
focused: codeFocused,
|
|
3389
|
+
fullWidth: true,
|
|
3390
|
+
select: true,
|
|
3391
|
+
error: codeError,
|
|
3392
|
+
helperText: codeHelperText,
|
|
3393
|
+
height: 56,
|
|
3394
|
+
label: "\u9078\u64C7\u7533\u5831\u985E\u5225",
|
|
3395
|
+
value: codeValue ?? "",
|
|
3396
|
+
onClick: handleCodeClick,
|
|
3397
|
+
onChange: (e) => {
|
|
3398
|
+
setModalIncome(e.target.value);
|
|
3399
|
+
setModalExpense("");
|
|
3400
|
+
},
|
|
3401
|
+
children: [
|
|
3402
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MenuItem_default, { height: 36, disabled: true, style: headerItemStyle, children: "\u8ACB\u9078\u64C7\u7533\u5831\u985E\u5225" }),
|
|
3403
|
+
SWAPIncomeTypes.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3404
|
+
MenuItem_default,
|
|
3405
|
+
{
|
|
3406
|
+
height: 36,
|
|
3407
|
+
value: option.code,
|
|
3408
|
+
style: {
|
|
3409
|
+
backgroundColor: modalIncome === option.code ? "white" : void 0,
|
|
3410
|
+
opacity: modalIncome === option.code ? 1 : void 0,
|
|
3411
|
+
display: "flex",
|
|
3412
|
+
justifyContent: "space-between",
|
|
3413
|
+
flexWrap: "nowrap",
|
|
3414
|
+
color: modalIncome === option.code ? swapColors.primary.primary400 : void 0
|
|
3415
|
+
},
|
|
3416
|
+
disabled: modalIncome === option.code,
|
|
3417
|
+
iconChildren: selectedIcon(modalIncome === option.code),
|
|
3418
|
+
children: [
|
|
3419
|
+
option.code,
|
|
3420
|
+
" ",
|
|
3421
|
+
option.label
|
|
3422
|
+
]
|
|
3423
|
+
},
|
|
3424
|
+
`case_${index}`
|
|
3425
|
+
))
|
|
3426
|
+
]
|
|
3427
|
+
}
|
|
3428
|
+
) }),
|
|
3429
|
+
codeValue === "9A" || codeValue === "9B" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { style: { width: "100%", margin: mobile ? "24px 0 0 0" : "0 0 0 8px" }, children: codeValue === "9B" ? (
|
|
3430
|
+
// 9B:下拉選單
|
|
3431
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3432
|
+
TextField_default,
|
|
3433
|
+
{
|
|
3434
|
+
focused: domainFocused,
|
|
3435
|
+
select: true,
|
|
3436
|
+
fullWidth: true,
|
|
3437
|
+
error: domainError,
|
|
3438
|
+
helperText: domainHelperText,
|
|
3439
|
+
height: 56,
|
|
3440
|
+
label: "\u8F38\u5165\u57F7\u884C\u696D\u52D9\u985E\u5225",
|
|
3441
|
+
value: domainCodeValue ?? "",
|
|
3442
|
+
onClick: handleDomainClick,
|
|
3443
|
+
onChange: (e) => {
|
|
3444
|
+
setModalExpense(e.target.value);
|
|
3445
|
+
setAnchorEl(null);
|
|
3446
|
+
},
|
|
3447
|
+
children: [
|
|
3448
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MenuItem_default, { height: 36, disabled: true, style: headerItemStyle, children: "\u9078\u64C7\u57F7\u884C\u696D\u52D9\u985E\u5225" }),
|
|
3449
|
+
SWAPExpenseTypes.filter((i) => i.source === codeValue).map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3450
|
+
MenuItem_default,
|
|
3451
|
+
{
|
|
3452
|
+
height: 36,
|
|
3453
|
+
value: option.code,
|
|
3454
|
+
style: {
|
|
3455
|
+
backgroundColor: modalExpense === option.code ? "white" : void 0,
|
|
3456
|
+
opacity: modalExpense === option.code ? 1 : void 0,
|
|
3457
|
+
display: "flex",
|
|
3458
|
+
justifyContent: "space-between",
|
|
3459
|
+
flexWrap: "nowrap",
|
|
3460
|
+
color: modalExpense === option.code ? swapColors.primary.primary400 : void 0
|
|
3461
|
+
},
|
|
3462
|
+
disabled: modalExpense === option.code,
|
|
3463
|
+
iconChildren: selectedIcon(modalExpense === option.code),
|
|
3464
|
+
children: [
|
|
3465
|
+
"[",
|
|
3466
|
+
option.code,
|
|
3467
|
+
"] ",
|
|
3468
|
+
option.label
|
|
3469
|
+
]
|
|
3470
|
+
},
|
|
3471
|
+
`case_${index}`
|
|
3472
|
+
))
|
|
3473
|
+
]
|
|
3474
|
+
}
|
|
3475
|
+
)
|
|
3476
|
+
) : (
|
|
3477
|
+
// 9A:搜尋式選單
|
|
3478
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
3479
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3480
|
+
TextField_default,
|
|
3481
|
+
{
|
|
3482
|
+
focused: domainFocused,
|
|
3483
|
+
error: domainError,
|
|
3484
|
+
helperText: domainHelperText,
|
|
3485
|
+
fullWidth: true,
|
|
3486
|
+
label: "\u8F38\u5165\u57F7\u884C\u696D\u52D9\u985E\u5225",
|
|
3487
|
+
height: 56,
|
|
3488
|
+
value: domainValue ?? "",
|
|
3489
|
+
onClick: handleDomainClick,
|
|
3490
|
+
slotProps: {
|
|
3491
|
+
input: {
|
|
3492
|
+
readOnly: true,
|
|
3493
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { style: { width: 24, height: 24 }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M7 10L12 15L17 10H7Z", fill: "black" }) }) })
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
),
|
|
3498
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3499
|
+
AutoComplete_default,
|
|
3500
|
+
{
|
|
3501
|
+
width: mobile ? "calc(100% - 32px)" : "292px",
|
|
3502
|
+
optionsMaxHeight: 150,
|
|
3503
|
+
disableFreeInput: true,
|
|
3504
|
+
multiple: true,
|
|
3505
|
+
disableCloseOnSelect: true,
|
|
3506
|
+
anchorEl,
|
|
3507
|
+
open: Boolean(anchorEl),
|
|
3508
|
+
onClose: handleClose,
|
|
3509
|
+
onChange: (_, newValue) => {
|
|
3510
|
+
const arr = newValue;
|
|
3511
|
+
const last = arr[arr.length - 1];
|
|
3512
|
+
if (last?.code) setModalExpense(last.code);
|
|
3513
|
+
setAnchorEl(null);
|
|
3514
|
+
},
|
|
3515
|
+
value: domainValue,
|
|
3516
|
+
options: SWAPExpenseTypes.filter((i) => i.source === codeValue),
|
|
3517
|
+
placement: "bottom-start",
|
|
3518
|
+
placeholder: "\u8F38\u5165\u57F7\u884C\u696D\u52D9\u985E\u5225",
|
|
3519
|
+
title: "\u9078\u64C7\u57F7\u884C\u696D\u52D9\u985E\u5225",
|
|
3520
|
+
renderOption: (liProps, option) => {
|
|
3521
|
+
const o = option;
|
|
3522
|
+
const { key, ...rest } = liProps;
|
|
3523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("li", { ...rest, children: [
|
|
3524
|
+
"[",
|
|
3525
|
+
o.code,
|
|
3526
|
+
"] ",
|
|
3527
|
+
o.label
|
|
3528
|
+
] }, key);
|
|
3529
|
+
},
|
|
3530
|
+
getOptionLabel: (option) => {
|
|
3531
|
+
const o = option;
|
|
3532
|
+
return o.code + o.label;
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
)
|
|
3536
|
+
] })
|
|
3537
|
+
) }) : null
|
|
3538
|
+
]
|
|
3539
|
+
}
|
|
3540
|
+
);
|
|
3541
|
+
};
|
|
3542
|
+
var TaxTextField_default = TaxTextField;
|
|
3543
|
+
|
|
3544
|
+
// src/components/DatePicker.tsx
|
|
3545
|
+
var import_dayjs = __toESM(require("dayjs"), 1);
|
|
3546
|
+
var import_LocalizationProvider = require("@mui/x-date-pickers/LocalizationProvider");
|
|
3547
|
+
var import_AdapterDayjs = require("@mui/x-date-pickers/AdapterDayjs");
|
|
3548
|
+
var import_DateCalendar = require("@mui/x-date-pickers/DateCalendar");
|
|
3549
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3550
|
+
var VIEWS = {
|
|
3551
|
+
year: ["year"],
|
|
3552
|
+
month: ["year", "month"],
|
|
3553
|
+
day: ["year", "month", "day"]
|
|
3554
|
+
};
|
|
3555
|
+
function toV1String(d, format) {
|
|
3556
|
+
if (format === "year") return String(d.year());
|
|
3557
|
+
if (format === "month") return `${d.year()}-${d.month() + 1}`;
|
|
3558
|
+
return `${d.year()}-${d.month() + 1}-${d.date()}`;
|
|
3559
|
+
}
|
|
3560
|
+
var DatePicker = ({
|
|
3561
|
+
format = "day",
|
|
3562
|
+
open = false,
|
|
3563
|
+
onClose,
|
|
3564
|
+
mobile,
|
|
3565
|
+
ModalProps,
|
|
3566
|
+
min,
|
|
3567
|
+
max,
|
|
3568
|
+
defaultValue,
|
|
3569
|
+
value,
|
|
3570
|
+
getValue
|
|
3571
|
+
}) => {
|
|
3572
|
+
const parsed = value ? (0, import_dayjs.default)(value) : defaultValue ? (0, import_dayjs.default)(defaultValue) : void 0;
|
|
3573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3574
|
+
Modal_default,
|
|
3575
|
+
{
|
|
3576
|
+
open,
|
|
3577
|
+
onClose: () => onClose?.(),
|
|
3578
|
+
title: "\u9078\u64C7\u65E5\u671F",
|
|
3579
|
+
width: "fit-content",
|
|
3580
|
+
bodyPadding: 8,
|
|
3581
|
+
mobile,
|
|
3582
|
+
...ModalProps,
|
|
3583
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_LocalizationProvider.LocalizationProvider, { dateAdapter: import_AdapterDayjs.AdapterDayjs, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3584
|
+
import_DateCalendar.DateCalendar,
|
|
3585
|
+
{
|
|
3586
|
+
views: [...VIEWS[format]],
|
|
3587
|
+
openTo: format,
|
|
3588
|
+
value: parsed && parsed.isValid() ? parsed : null,
|
|
3589
|
+
minDate: min ? (0, import_dayjs.default)(min) : void 0,
|
|
3590
|
+
maxDate: max ? (0, import_dayjs.default)(max) : void 0,
|
|
3591
|
+
onChange: (newValue, selectionState) => {
|
|
3592
|
+
if (!newValue) return;
|
|
3593
|
+
const finished = format === "day" ? selectionState === "finish" : true;
|
|
3594
|
+
const isTargetView = format === "day" || selectionState === "finish";
|
|
3595
|
+
if (finished && isTargetView) {
|
|
3596
|
+
getValue?.(toV1String(newValue, format));
|
|
3597
|
+
onClose?.();
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
}
|
|
3601
|
+
) })
|
|
3602
|
+
}
|
|
3603
|
+
);
|
|
3604
|
+
};
|
|
3605
|
+
var DatePicker_default = DatePicker;
|
|
3606
|
+
|
|
3607
|
+
// src/index.ts
|
|
3608
|
+
var SWAP_UI_VERSION = "2.0.0-beta.1";
|
|
3609
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3610
|
+
0 && (module.exports = {
|
|
3611
|
+
AutoComplete,
|
|
3612
|
+
Banner,
|
|
3613
|
+
Breadcrumb,
|
|
3614
|
+
BreadcrumbItem,
|
|
3615
|
+
Card,
|
|
3616
|
+
CheckBox,
|
|
3617
|
+
CheckBoxList,
|
|
3618
|
+
Chip,
|
|
3619
|
+
CircularProgress,
|
|
3620
|
+
Container,
|
|
3621
|
+
DatePicker,
|
|
3622
|
+
Dropdown,
|
|
3623
|
+
IconButton,
|
|
3624
|
+
Link,
|
|
3625
|
+
MenuItem,
|
|
3626
|
+
Modal,
|
|
3627
|
+
Paper,
|
|
3628
|
+
Progress,
|
|
3629
|
+
RadioButton,
|
|
3630
|
+
RadioList,
|
|
3631
|
+
SWAPExpenseTypes,
|
|
3632
|
+
SWAPIncomeTypes,
|
|
3633
|
+
SWAPLogo,
|
|
3634
|
+
SWAPShare,
|
|
3635
|
+
SWAPTaxDescription,
|
|
3636
|
+
SWAPTaxExpenseLabel,
|
|
3637
|
+
SWAPTaxIncomeLabel,
|
|
3638
|
+
SWAPThemeProvider,
|
|
3639
|
+
SWAP_UI_VERSION,
|
|
3640
|
+
SegmentedTab,
|
|
3641
|
+
SegmentedTabs,
|
|
3642
|
+
Select,
|
|
3643
|
+
Snackbar,
|
|
3644
|
+
Switch,
|
|
3645
|
+
Tab,
|
|
3646
|
+
TabPanel,
|
|
3647
|
+
Tabs,
|
|
3648
|
+
TaxTextField,
|
|
3649
|
+
TextField,
|
|
3650
|
+
Tooltip,
|
|
3651
|
+
Typography,
|
|
3652
|
+
createSwapTheme,
|
|
3653
|
+
swapBreakpoints,
|
|
3654
|
+
swapColors,
|
|
3655
|
+
swapFontFamily,
|
|
3656
|
+
swapRadius,
|
|
3657
|
+
swapShadows,
|
|
3658
|
+
useBreakpoints
|
|
3659
|
+
});
|
|
3660
|
+
/*! Bundled license information:
|
|
3661
|
+
|
|
3662
|
+
react-is/cjs/react-is.production.js:
|
|
3663
|
+
(**
|
|
3664
|
+
* @license React
|
|
3665
|
+
* react-is.production.js
|
|
3666
|
+
*
|
|
3667
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3668
|
+
*
|
|
3669
|
+
* This source code is licensed under the MIT license found in the
|
|
3670
|
+
* LICENSE file in the root directory of this source tree.
|
|
3671
|
+
*)
|
|
3672
|
+
|
|
3673
|
+
react-is/cjs/react-is.development.js:
|
|
3674
|
+
(**
|
|
3675
|
+
* @license React
|
|
3676
|
+
* react-is.development.js
|
|
3677
|
+
*
|
|
3678
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3679
|
+
*
|
|
3680
|
+
* This source code is licensed under the MIT license found in the
|
|
3681
|
+
* LICENSE file in the root directory of this source tree.
|
|
3682
|
+
*)
|
|
3683
|
+
|
|
3684
|
+
@mui/utils/index.mjs:
|
|
3685
|
+
(**
|
|
3686
|
+
* @mui/utils v9.2.0
|
|
3687
|
+
*
|
|
3688
|
+
* @license MIT
|
|
3689
|
+
* This source code is licensed under the MIT license found in the
|
|
3690
|
+
* LICENSE file in the root directory of this source tree.
|
|
3691
|
+
*)
|
|
3692
|
+
*/
|
|
3693
|
+
//# sourceMappingURL=index.cjs.map
|