@sendoutcards/quantum-design-ui 1.7.59 → 1.7.60
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/dist/index.es.js +16 -17
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -22138,6 +22138,8 @@ var UpsaleOptions = function (_a) {
|
|
|
22138
22138
|
|
|
22139
22139
|
var SOC_FRONT_Z_INDEX = 103;
|
|
22140
22140
|
var UpsaleDialog = function (_a) {
|
|
22141
|
+
var _b;
|
|
22142
|
+
|
|
22141
22143
|
var title = _a.title,
|
|
22142
22144
|
description = _a.description,
|
|
22143
22145
|
checkoutTitle = _a.checkoutTitle,
|
|
@@ -22153,26 +22155,26 @@ var UpsaleDialog = function (_a) {
|
|
|
22153
22155
|
insetOverride = _a.insetOverride,
|
|
22154
22156
|
maxWidth = _a.maxWidth,
|
|
22155
22157
|
maxHeight = _a.maxHeight,
|
|
22156
|
-
|
|
22157
|
-
zIndex =
|
|
22158
|
+
_c = _a.zIndex,
|
|
22159
|
+
zIndex = _c === void 0 ? SOC_FRONT_Z_INDEX : _c,
|
|
22158
22160
|
//Soc-frontend
|
|
22159
22161
|
successComponent = _a.successComponent,
|
|
22160
22162
|
upsaleContentTitle = _a.upsaleContentTitle,
|
|
22161
|
-
|
|
22162
|
-
sponsorId =
|
|
22163
|
+
_d = _a.sponsorId,
|
|
22164
|
+
sponsorId = _d === void 0 ? '9070' : _d,
|
|
22163
22165
|
extraLink = _a.extraLink,
|
|
22164
22166
|
defaultNumOptionsShown = _a.defaultNumOptionsShown,
|
|
22165
22167
|
submitAction = _a.submitAction,
|
|
22166
22168
|
acceptSelectedAction = _a.acceptSelectedAction;
|
|
22167
22169
|
|
|
22168
|
-
var
|
|
22169
|
-
shouldShowCheckoutView =
|
|
22170
|
-
setShouldShowCheckoutView =
|
|
22170
|
+
var _e = React.useState(false),
|
|
22171
|
+
shouldShowCheckoutView = _e[0],
|
|
22172
|
+
setShouldShowCheckoutView = _e[1];
|
|
22171
22173
|
|
|
22172
|
-
var
|
|
22173
|
-
ref =
|
|
22174
|
-
width =
|
|
22175
|
-
height =
|
|
22174
|
+
var _f = useResizeObserver(),
|
|
22175
|
+
ref = _f.ref,
|
|
22176
|
+
width = _f.width,
|
|
22177
|
+
height = _f.height;
|
|
22176
22178
|
|
|
22177
22179
|
var dialogFooterHeight = '170px';
|
|
22178
22180
|
var device = useWindowSize().width;
|
|
@@ -22187,11 +22189,8 @@ var UpsaleDialog = function (_a) {
|
|
|
22187
22189
|
var activeSelectedOption = findOption(selectedOption);
|
|
22188
22190
|
|
|
22189
22191
|
var handleOnClick = function () {
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
} else {
|
|
22193
|
-
setShouldShowCheckoutView(true);
|
|
22194
|
-
}
|
|
22192
|
+
setShouldShowCheckoutView(true);
|
|
22193
|
+
acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.onClick();
|
|
22195
22194
|
};
|
|
22196
22195
|
|
|
22197
22196
|
return jsx(Dialog, {
|
|
@@ -22289,7 +22288,7 @@ var UpsaleDialog = function (_a) {
|
|
|
22289
22288
|
}, jsx(Button, {
|
|
22290
22289
|
type: 'primary',
|
|
22291
22290
|
size: "large",
|
|
22292
|
-
title: acceptSelectedAction ? acceptSelectedAction.title : 'Continue to Checkout',
|
|
22291
|
+
title: (_b = acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.title) !== null && _b !== void 0 ? _b : 'Continue to Checkout',
|
|
22293
22292
|
disabled: !selectedOption.length,
|
|
22294
22293
|
onClick: handleOnClick
|
|
22295
22294
|
}))), !isMobile && jsx(Div, {
|