@alipay/ams-checkout 0.0.1758783821-dev.13 → 0.0.1758783821-dev.14
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 +1 -1
- package/dist/umd/ams-checkout.min.js +1 -1
- package/esm/component/popupWindow.style.js +3 -2
- package/esm/config/index.d.ts +8 -8
- package/esm/config/index.js +8 -8
- package/esm/constant/index.d.ts +1 -1
- package/esm/constant/index.js +5 -5
- package/esm/core/component/element/elementController/index.js +2 -2
- package/esm/core/component/element/type.d.ts +3 -0
- package/esm/foundation/core/index.js +16 -6
- package/esm/foundation/index.d.ts +1 -0
- package/esm/foundation/product-processor/easysafepay/index.js +4 -2
- package/esm/plugin/component/popupWindow.style.js +4 -3
- package/package.json +1 -1
|
@@ -163,7 +163,8 @@ export var destroyModal = function destroyModal() {
|
|
|
163
163
|
modal.classList.add("".concat(AMSPOPUP_PREFIX, "-drawer-exit"));
|
|
164
164
|
}
|
|
165
165
|
setTimeout(function () {
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
var _overlay$parentNode, _modal$parentNode;
|
|
167
|
+
(_overlay$parentNode = overlay.parentNode) === null || _overlay$parentNode === void 0 || _overlay$parentNode.removeChild(overlay);
|
|
168
|
+
(_modal$parentNode = modal.parentNode) === null || _modal$parentNode === void 0 || _modal$parentNode.removeChild(modal);
|
|
168
169
|
}, ANIMATION_TIME);
|
|
169
170
|
};
|
package/esm/config/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ export declare const sdkVersion: string;
|
|
|
6
6
|
* @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
|
|
7
7
|
* TODO 这里考虑直接换成packagejson.version
|
|
8
8
|
*/
|
|
9
|
-
export declare const AMSCheckoutAppVersion = "1.
|
|
10
|
-
export declare const AMSAutoDebitAppVersion = "1.
|
|
11
|
-
export declare const AMSEasyPayAppVersion = "1.
|
|
12
|
-
export declare const AMSCashierPaymentAppVersion = "1.
|
|
13
|
-
export declare const AMSVaultingAppVersion = "1.
|
|
14
|
-
export declare const AMSPaymentElementAppVersion = "1.
|
|
15
|
-
export declare const ADDRESSElementAppVersion = "1.
|
|
16
|
-
export declare const AUTHElementAppVersion = "1.
|
|
9
|
+
export declare const AMSCheckoutAppVersion = "1.47.2";
|
|
10
|
+
export declare const AMSAutoDebitAppVersion = "1.47.2";
|
|
11
|
+
export declare const AMSEasyPayAppVersion = "1.47.2";
|
|
12
|
+
export declare const AMSCashierPaymentAppVersion = "1.47.2";
|
|
13
|
+
export declare const AMSVaultingAppVersion = "1.47.2";
|
|
14
|
+
export declare const AMSPaymentElementAppVersion = "1.47.2";
|
|
15
|
+
export declare const ADDRESSElementAppVersion = "1.47.2";
|
|
16
|
+
export declare const AUTHElementAppVersion = "1.47.2";
|
package/esm/config/index.js
CHANGED
|
@@ -36,11 +36,11 @@ export var sdkVersion = json.version;
|
|
|
36
36
|
* @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
|
|
37
37
|
* TODO 这里考虑直接换成packagejson.version
|
|
38
38
|
*/
|
|
39
|
-
export var AMSCheckoutAppVersion = '1.
|
|
40
|
-
export var AMSAutoDebitAppVersion = '1.
|
|
41
|
-
export var AMSEasyPayAppVersion = '1.
|
|
42
|
-
export var AMSCashierPaymentAppVersion = '1.
|
|
43
|
-
export var AMSVaultingAppVersion = '1.
|
|
44
|
-
export var AMSPaymentElementAppVersion = '1.
|
|
45
|
-
export var ADDRESSElementAppVersion = '1.
|
|
46
|
-
export var AUTHElementAppVersion = '1.
|
|
39
|
+
export var AMSCheckoutAppVersion = '1.47.2'; // 兜底版本号
|
|
40
|
+
export var AMSAutoDebitAppVersion = '1.47.2'; // 代扣
|
|
41
|
+
export var AMSEasyPayAppVersion = '1.47.2'; // easypay
|
|
42
|
+
export var AMSCashierPaymentAppVersion = '1.47.2'; // 收银台(卡、apm)
|
|
43
|
+
export var AMSVaultingAppVersion = '1.47.2'; // 绑卡
|
|
44
|
+
export var AMSPaymentElementAppVersion = '1.47.2'; // payment element
|
|
45
|
+
export var ADDRESSElementAppVersion = '1.47.2'; // address element
|
|
46
|
+
export var AUTHElementAppVersion = '1.47.2'; // auth element
|
package/esm/constant/index.d.ts
CHANGED
package/esm/constant/index.js
CHANGED
|
@@ -98,14 +98,14 @@ export var ERRORMESSAGE = {
|
|
|
98
98
|
code: 'UI_STATE_ERROR',
|
|
99
99
|
message: 'An error occurred. The transaction cannot be initiated.'
|
|
100
100
|
},
|
|
101
|
-
|
|
102
|
-
code: '
|
|
101
|
+
INITIALIZE_TIMEOUT: {
|
|
102
|
+
code: 'INITIALIZE_TIMEOUT',
|
|
103
103
|
API: {
|
|
104
|
-
code: '
|
|
104
|
+
code: 'INITIALIZE_API_TIMEOUT',
|
|
105
105
|
message: 'An error occurred. The transaction cannot be initiated.'
|
|
106
106
|
},
|
|
107
107
|
WEB: {
|
|
108
|
-
code: '
|
|
108
|
+
code: 'INITIALIZE_WEB_TIMEOUT',
|
|
109
109
|
message: 'An error occurred; the transaction cannot be initiated.'
|
|
110
110
|
}
|
|
111
111
|
},
|
|
@@ -287,7 +287,7 @@ export var EVENT = {
|
|
|
287
287
|
},
|
|
288
288
|
// Element支付完成后事件
|
|
289
289
|
submitPromiseCallback: {
|
|
290
|
-
name: '
|
|
290
|
+
name: 'onSubmitPayCallback'
|
|
291
291
|
},
|
|
292
292
|
validateFieldsResult: {
|
|
293
293
|
name: 'validateFieldsResult',
|
|
@@ -195,7 +195,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
195
195
|
title: 'sdk_event_web_app_timeout'
|
|
196
196
|
});
|
|
197
197
|
resolve({
|
|
198
|
-
error: ERRORMESSAGE.
|
|
198
|
+
error: ERRORMESSAGE.INITIALIZE_TIMEOUT.WEB
|
|
199
199
|
});
|
|
200
200
|
}, TIMEOUT_DURATION);
|
|
201
201
|
}
|
|
@@ -646,7 +646,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
646
646
|
_context5.t0 = _context5["catch"](1);
|
|
647
647
|
this.handleInitializationError();
|
|
648
648
|
readyCallback({
|
|
649
|
-
error: _objectSpread(_objectSpread({}, ERRORMESSAGE.
|
|
649
|
+
error: _objectSpread(_objectSpread({}, ERRORMESSAGE.INITIALIZE_TIMEOUT.API), {}, {
|
|
650
650
|
traceId: _context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.traceId
|
|
651
651
|
})
|
|
652
652
|
});
|
|
@@ -180,6 +180,9 @@ export interface PaymentMountOptions extends BaseMountOptions {
|
|
|
180
180
|
'radius-button': string;
|
|
181
181
|
'warpper-padding': string;
|
|
182
182
|
}>>;
|
|
183
|
+
card?: {
|
|
184
|
+
showBrandIcon?: boolean;
|
|
185
|
+
};
|
|
183
186
|
};
|
|
184
187
|
notRedirectAfterComplete?: boolean;
|
|
185
188
|
merchantAppointParam?: IMerchantAppointParam;
|
|
@@ -243,7 +243,7 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
|
243
243
|
value: function () {
|
|
244
244
|
var _startBizFlow = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(options) {
|
|
245
245
|
var _this$paymentContext$, _this$paymentContext$2, _this$paymentContext$3;
|
|
246
|
-
var paymentSession, displayInfo, _convertPaymentSessio2, paymentSessionId, paymentSessionMetaData, mid, webAppMatchConfig, webAppVersion, productScene, paymentMethod, _this$bizFlowStartBeh, payload, eventCenter, data;
|
|
246
|
+
var paymentSession, displayInfo, _convertPaymentSessio2, paymentSessionId, paymentSessionMetaData, mid, webAppMatchConfig, webAppVersion, productScene, paymentMethod, _this$bizFlowStartBeh, payload, eventCenter, data, normalUrl;
|
|
247
247
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
248
248
|
while (1) switch (_context4.prev = _context4.next) {
|
|
249
249
|
case 0:
|
|
@@ -324,14 +324,18 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
|
324
324
|
return _context4.abrupt("return");
|
|
325
325
|
case 36:
|
|
326
326
|
if (!(this.bizFlowStartBehavior.behaviorType === 'REDIRECT')) {
|
|
327
|
-
_context4.next =
|
|
327
|
+
_context4.next = 49;
|
|
328
328
|
break;
|
|
329
329
|
}
|
|
330
330
|
payload = (_this$bizFlowStartBeh = this.bizFlowStartBehavior) === null || _this$bizFlowStartBeh === void 0 ? void 0 : _this$bizFlowStartBeh.payload;
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
console.log('sdk 打印', payload);
|
|
332
|
+
console.log('sdk 触发', options);
|
|
333
|
+
//Sessiondata中authUrlInfo的openInApp为true,说明端内打开,不需要处理isNativeAppWebview的外跳事件逻辑
|
|
334
|
+
if (!(options.isNativeAppWebview && !!!payload.openInApp)) {
|
|
335
|
+
_context4.next = 46;
|
|
333
336
|
break;
|
|
334
337
|
}
|
|
338
|
+
console.log('sdk 打印跳转', options);
|
|
335
339
|
eventCenter = ServiceProvider.getInstance(this.instanceId).getService('EventCenter');
|
|
336
340
|
data = {
|
|
337
341
|
normalUrl: (payload === null || payload === void 0 ? void 0 : payload.url) || '',
|
|
@@ -345,10 +349,16 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
|
345
349
|
}
|
|
346
350
|
});
|
|
347
351
|
return _context4.abrupt("return");
|
|
348
|
-
case
|
|
352
|
+
case 46:
|
|
353
|
+
if (payload.url && payload.openInApp && options.isNativeAppWebview) {
|
|
354
|
+
//Sessiondata中authUrlInfo的openInApp为true,normalUrl存在,isNativeAppWebview为true,拼接source=embedded
|
|
355
|
+
normalUrl = new URL(payload.url);
|
|
356
|
+
normalUrl.searchParams.set('source', 'embedded');
|
|
357
|
+
payload.url = normalUrl.toString();
|
|
358
|
+
}
|
|
349
359
|
redirect(payload, this.instanceId);
|
|
350
360
|
return _context4.abrupt("return");
|
|
351
|
-
case
|
|
361
|
+
case 49:
|
|
352
362
|
case "end":
|
|
353
363
|
return _context4.stop();
|
|
354
364
|
}
|
|
@@ -62,6 +62,7 @@ export interface RedirectBehaviorPayload {
|
|
|
62
62
|
browserLinkTarget?: TargetEnum;
|
|
63
63
|
isCallApp?: boolean;
|
|
64
64
|
callAppDetectSuccessDelay?: number;
|
|
65
|
+
openInApp?: boolean;
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
67
68
|
* Provide some capability, such as MonitorService, EventBusService, SecurityService
|
|
@@ -153,13 +153,15 @@ export var EasySafePayProcessor = /*#__PURE__*/function () {
|
|
|
153
153
|
data = {
|
|
154
154
|
url: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.authUrl,
|
|
155
155
|
schemeUrl: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.authUrl,
|
|
156
|
-
applinkUrl: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.authUrl
|
|
156
|
+
applinkUrl: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.authUrl,
|
|
157
|
+
openInApp: (authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.openInApp) || false
|
|
157
158
|
};
|
|
158
159
|
} else {
|
|
159
160
|
data = {
|
|
160
161
|
url: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.normalUrl,
|
|
161
162
|
schemeUrl: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.schemeUrl,
|
|
162
|
-
applinkUrl: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.applinkUrl
|
|
163
|
+
applinkUrl: authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.applinkUrl,
|
|
164
|
+
openInApp: (authUrlInfo === null || authUrlInfo === void 0 ? void 0 : authUrlInfo.openInApp) || false
|
|
163
165
|
};
|
|
164
166
|
}
|
|
165
167
|
var result = {
|
|
@@ -2,7 +2,7 @@ import { AMSPOPUP_PREFIX, ANIMATION_TIME, MOCKUP_ID, POPUPLOADING_ID } from "../
|
|
|
2
2
|
import { getDesignFontSize } from "../../util";
|
|
3
3
|
|
|
4
4
|
// CSS样式字符串
|
|
5
|
-
var modalStyles = "\n .".concat(AMSPOPUP_PREFIX, "modal {\n /* \u6DFB\u52A0\u5F39\u7A97\u6837\u5F0F */\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999; /* \u8BBE\u7F6E\u5F39\u7A97\u7684\u5C42\u7EA7\u4E3A 9999 */\n overflow: hidden;\n }\n .").concat(AMSPOPUP_PREFIX, "modal-mobile{\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n bottom: 0;\n left: 0%;\n z-index: 9999; /* \u8BBE\u7F6E\u5F39\u7A97\u7684\u5C42\u7EA7\u4E3A 9999 */\n overflow: hidden;\n }\n\n .").concat(AMSPOPUP_PREFIX, "overlay {\n /* \u6DFB\u52A0\u8499\u5C42\u6837\u5F0F */\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeIn {\n /* \u6DFB\u52A0\u6DE1\u5165\u52A8\u753B */\n animation: fadeIn ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeOut {\n /* \u6DFB\u52A0\u6DE1\u51FA\u52A8\u753B */\n animation: fadeOut ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(AMSPOPUP_PREFIX, "-drawer-enter {\n animation: slideIn ").concat(ANIMATION_TIME, "ms forwards;\n }\n
|
|
5
|
+
var modalStyles = "\n .".concat(AMSPOPUP_PREFIX, "modal {\n /* \u6DFB\u52A0\u5F39\u7A97\u6837\u5F0F */\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999; /* \u8BBE\u7F6E\u5F39\u7A97\u7684\u5C42\u7EA7\u4E3A 9999 */\n overflow: hidden;\n }\n .").concat(AMSPOPUP_PREFIX, "modal-mobile{\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n bottom: 0;\n left: 0%;\n z-index: 9999; /* \u8BBE\u7F6E\u5F39\u7A97\u7684\u5C42\u7EA7\u4E3A 9999 */\n overflow: hidden;\n }\n\n .").concat(AMSPOPUP_PREFIX, "overlay {\n /* \u6DFB\u52A0\u8499\u5C42\u6837\u5F0F */\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeIn {\n /* \u6DFB\u52A0\u6DE1\u5165\u52A8\u753B */\n animation: fadeIn ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeOut {\n /* \u6DFB\u52A0\u6DE1\u51FA\u52A8\u753B */\n animation: fadeOut ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(AMSPOPUP_PREFIX, "-drawer-enter {\n animation: slideIn ").concat(ANIMATION_TIME, "ms forwards;\n }\n @keyframes slideIn {\n from {\n transform: translateY(100%); /* \u6ED1\u5165\u65F6\u5728\u89C6\u53E3\u5E95\u90E8\u5916 */\n opacity: 0; /* \u521D\u59CB\u900F\u660E\u5EA6\u4E3A 0 */\n }\n to {\n transform: translateY(0); /* \u6ED1\u5165\u7ED3\u675F\u65F6\u5728\u539F\u4F4D\u7F6E */\n opacity: 1; /* \u7ED3\u675F\u65F6\u900F\u660E\u5EA6\u4E3A 1 */\n }\n }\n\n /* \u62BD\u5C49\u4ECE\u5E95\u90E8\u6ED1\u51FA */\n .").concat(AMSPOPUP_PREFIX, "-drawer-exit {\n animation: slideOut ").concat(ANIMATION_TIME, "ms forwards;\n }\n\n @keyframes slideOut {\n from {\n transform: translateY(0); /* \u6ED1\u51FA\u65F6\u4ECE\u5F53\u524D\u4F4D\u7F6E\u5F00\u59CB */\n opacity: 1; /* \u521D\u59CB\u900F\u660E\u5EA6\u4E3A 1 */\n }\n to {\n transform: translateY(100%); /* \u6ED1\u51FA\u7ED3\u675F\u65F6\u5728\u89C6\u53E3\u5E95\u90E8\u5916 */\n opacity: 0; /* \u7ED3\u675F\u65F6\u900F\u660E\u5EA6\u4E3A 0 */\n }\n }\n\n /* \u5B9A\u4E49\u6DE1\u5165\u52A8\u753B */\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-webkit-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-moz-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n /* \u5B9A\u4E49\u6DE1\u51FA\u52A8\u753B */\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-webkit-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-moz-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n\n.ams-component-popup-loading {\n width: 0.8em;\n height:0.8em;\n border-radius: 8px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.ams-component-popup-loading .line {\n width: 40px;\n height: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-popup-loading .line div {\n position: absolute;\n left: 17.67px;\n top: 0;\n width: 5.33px;\n height: 40px;\n}\n\n.ams-component-popup-loading .line div:before,\n.ams-component-popup-loading .line div:after {\n content: '';\n display: block;\n height: 13.33px;\n background: black;\n border-radius: 5.3px;\n}\n.ams-component-popup-loading .line div:after {\n margin-top: 13.33px;\n}\n\n.ams-component-popup-loading .line div:nth-child(2) {\n -webkit-transform: rotate(45deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(3) {\n -webkit-transform: rotate(90deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(4) {\n -webkit-transform: rotate(135deg);\n}\n\n/** \u52A0\u8F7D\u52A8\u753B **/\n@-webkit-keyframes load {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading-logo {\n width: 0.44em;\n height: 0.44em;\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg);\n -webkit-transition:-webkit-transform 1s linear;\n transition:transform 1s linear;\n animation: ams-component-loading-logo 1s linear infinite;\n}\n");
|
|
6
6
|
var getCurrentTheme = function getCurrentTheme() {
|
|
7
7
|
var curTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';
|
|
8
8
|
var theme = {
|
|
@@ -115,7 +115,8 @@ export var destroyModal = function destroyModal() {
|
|
|
115
115
|
modal.classList.add("".concat(AMSPOPUP_PREFIX, "-drawer-exit"));
|
|
116
116
|
}
|
|
117
117
|
setTimeout(function () {
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
var _overlay$parentNode, _modal$parentNode;
|
|
119
|
+
(_overlay$parentNode = overlay.parentNode) === null || _overlay$parentNode === void 0 || _overlay$parentNode.removeChild(overlay);
|
|
120
|
+
(_modal$parentNode = modal.parentNode) === null || _modal$parentNode === void 0 || _modal$parentNode.removeChild(modal);
|
|
120
121
|
}, ANIMATION_TIME);
|
|
121
122
|
};
|