@monei-js/components 1.7.0 → 1.7.2
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/bizum/types.d.ts +3 -1
- package/dist/cofidis/types.d.ts +1 -0
- package/dist/cofidisLoan/types.d.ts +1 -0
- package/dist/components.cjs.development.js +132 -54
- package/dist/components.cjs.development.js.map +1 -1
- package/dist/components.cjs.production.min.js +1 -1
- package/dist/components.cjs.production.min.js.map +1 -1
- package/dist/components.esm.js +132 -54
- package/dist/components.esm.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/paymentRequest/types.d.ts +1 -0
- package/dist/types.d.ts +1 -1
- package/package.json +3 -3
- package/types/component.d.ts +3 -5
package/dist/bizum/types.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface BizumProps {
|
|
|
16
16
|
error?: string;
|
|
17
17
|
}) => void;
|
|
18
18
|
onLoad?: (isSupported: boolean) => void;
|
|
19
|
+
onBeforeOpen?: () => boolean;
|
|
19
20
|
onOpen?: () => void;
|
|
20
21
|
style?: {
|
|
21
22
|
height?: number;
|
|
@@ -24,5 +25,6 @@ export interface BizumProps {
|
|
|
24
25
|
}
|
|
25
26
|
export interface BizumModalProps extends BizumProps {
|
|
26
27
|
isOpen?: boolean;
|
|
27
|
-
|
|
28
|
+
isHidden?: boolean;
|
|
29
|
+
onError?: (error: any) => void;
|
|
28
30
|
}
|
package/dist/cofidis/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface CofidisProps {
|
|
|
6
6
|
onError?: (error: any) => void;
|
|
7
7
|
onProps?: (cb: (props: CofidisProps) => void) => Promise<void>;
|
|
8
8
|
onLoad?: (isSupported: boolean) => void;
|
|
9
|
+
onBeforeOpen?: () => boolean;
|
|
9
10
|
onOpen?: () => void;
|
|
10
11
|
onSubmit: (data: {
|
|
11
12
|
token?: string;
|
|
@@ -6,6 +6,7 @@ export interface CofidisLoanProps {
|
|
|
6
6
|
onError?: (error: any) => void;
|
|
7
7
|
onProps?: (cb: (props: CofidisLoanProps) => void) => Promise<void>;
|
|
8
8
|
onLoad?: (isSupported: boolean) => void;
|
|
9
|
+
onBeforeOpen?: () => boolean;
|
|
9
10
|
onOpen?: () => void;
|
|
10
11
|
onSubmit: (data: {
|
|
11
12
|
token?: string;
|
|
@@ -970,7 +970,7 @@ var _utils = {
|
|
|
970
970
|
|
|
971
971
|
var stage = "prod" ;
|
|
972
972
|
var domain = "https://js.monei.com" ;
|
|
973
|
-
var version = "
|
|
973
|
+
var version = "v2" ;
|
|
974
974
|
var globalConfig = {
|
|
975
975
|
domain: domain,
|
|
976
976
|
version: version,
|
|
@@ -997,32 +997,35 @@ var globalConfig = {
|
|
|
997
997
|
var stageConfig = {
|
|
998
998
|
local: {
|
|
999
999
|
paymentPageUrl: "http://localhost:8080/",
|
|
1000
|
-
posPaymentPageUrl: "http://
|
|
1001
|
-
cardInputUrl: "http://
|
|
1002
|
-
paymentModalUrl: "http://
|
|
1003
|
-
paypalUrl: "http://
|
|
1004
|
-
bizumUrl: "http://
|
|
1005
|
-
bizumButtonUrl: "http://
|
|
1006
|
-
googlePayUrl: "http://
|
|
1000
|
+
posPaymentPageUrl: "http://localhost:8080/",
|
|
1001
|
+
cardInputUrl: "http://localhost:3001/" + version + "/inner-card-input/",
|
|
1002
|
+
paymentModalUrl: "http://localhost:3002/" + version + "/inner-payment-modal/",
|
|
1003
|
+
paypalUrl: "http://localhost:3003/" + version + "/inner-paypal/",
|
|
1004
|
+
bizumUrl: "http://localhost:3004/" + version + "/inner-bizum/",
|
|
1005
|
+
bizumButtonUrl: "http://localhost:3005/" + version + "/inner-bizum-button/",
|
|
1006
|
+
googlePayUrl: "http://localhost:3006/" + version + "/inner-google-pay/",
|
|
1007
1007
|
paymentRequestUrl: "https://monei-local.ngrok.io/" + version + "/inner-payment-request/",
|
|
1008
|
-
click2PayUrl: "http://
|
|
1009
|
-
click2PayButtonUrl: "http://
|
|
1010
|
-
cofidisUrl: "http://
|
|
1011
|
-
cofidisButtonUrl: "http://
|
|
1012
|
-
cofidisWidgetUrl: "http://
|
|
1013
|
-
cofidisLoanUrl: "http://
|
|
1014
|
-
cofidisLoanButtonUrl: "http://
|
|
1015
|
-
cofidisLoanWidgetUrl: "http://
|
|
1008
|
+
click2PayUrl: "http://localhost:3008/inner-click2pay/",
|
|
1009
|
+
click2PayButtonUrl: "http://localhost:3009/inner-click2pay-button/",
|
|
1010
|
+
cofidisUrl: "http://localhost:3010/" + version + "/inner-cofidis/",
|
|
1011
|
+
cofidisButtonUrl: "http://localhost:3011/" + version + "/inner-cofidis-button/",
|
|
1012
|
+
cofidisWidgetUrl: "http://localhost:3012/" + version + "/inner-cofidis-widget/",
|
|
1013
|
+
cofidisLoanUrl: "http://localhost:3013/" + version + "/inner-cofidis-loan/",
|
|
1014
|
+
cofidisLoanButtonUrl: "http://localhost:3014/" + version + "/inner-cofidis-loan-button/",
|
|
1015
|
+
cofidisLoanWidgetUrl: "http://localhost:3015/" + version + "/inner-cofidis-loan-widget/",
|
|
1016
1016
|
apiUrl: 'https://api.monei.com/v1',
|
|
1017
|
-
secureDomain: 'https://secure.monei.com'
|
|
1017
|
+
secureDomain: 'https://secure.monei.com',
|
|
1018
|
+
rootDomain: 'monei.com'
|
|
1018
1019
|
},
|
|
1019
1020
|
dev: {
|
|
1020
1021
|
apiUrl: 'https://api.microapps-staging.com/v1',
|
|
1021
|
-
secureDomain: 'https://secure.microapps-staging.com'
|
|
1022
|
+
secureDomain: 'https://secure.microapps-staging.com',
|
|
1023
|
+
rootDomain: 'microapps-staging.com'
|
|
1022
1024
|
},
|
|
1023
1025
|
prod: {
|
|
1024
1026
|
apiUrl: 'https://api.monei.com/v1',
|
|
1025
|
-
secureDomain: 'https://secure.monei.com'
|
|
1027
|
+
secureDomain: 'https://secure.monei.com',
|
|
1028
|
+
rootDomain: 'monei.com'
|
|
1026
1029
|
}
|
|
1027
1030
|
};
|
|
1028
1031
|
var config = /*#__PURE__*/_extends({}, globalConfig, stageConfig[stage]);
|
|
@@ -5627,7 +5630,7 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
5627
5630
|
var _result = {};
|
|
5628
5631
|
|
|
5629
5632
|
var _loop3 = function _loop3(key) {
|
|
5630
|
-
if (!item.hasOwnProperty(key)) return
|
|
5633
|
+
if (!item.hasOwnProperty(key)) return 1;
|
|
5631
5634
|
defineLazyProp(_result, key, function () {
|
|
5632
5635
|
var itemKey = fullKey ? fullKey + "." + key : "" + key;
|
|
5633
5636
|
var child = replacer(item[key], key, itemKey);
|
|
@@ -7355,7 +7358,8 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
7355
7358
|
if (messages) {
|
|
7356
7359
|
markWindowKnown(source);
|
|
7357
7360
|
|
|
7358
|
-
var
|
|
7361
|
+
var _ret,
|
|
7362
|
+
_loop = function _loop() {
|
|
7359
7363
|
var message = messages[_i2];
|
|
7360
7364
|
if (receivedMessages.has(message.id)) return {
|
|
7361
7365
|
v: void 0
|
|
@@ -7469,9 +7473,7 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
7469
7473
|
};
|
|
7470
7474
|
|
|
7471
7475
|
for (var _i2 = 0; _i2 < messages.length; _i2++) {
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
if ("object" == typeof _ret) return _ret.v;
|
|
7476
|
+
if (_ret = _loop()) return _ret.v;
|
|
7475
7477
|
}
|
|
7476
7478
|
}
|
|
7477
7479
|
}
|
|
@@ -7803,8 +7805,8 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
7803
7805
|
|
|
7804
7806
|
function lib_global_getGlobal(win) {
|
|
7805
7807
|
if (!isSameDomain(win)) throw new Error("Can not get global for window on different domain");
|
|
7806
|
-
win.
|
|
7807
|
-
return win.
|
|
7808
|
+
win.__zoid_10_3_3__ || (win.__zoid_10_3_3__ = {});
|
|
7809
|
+
return win.__zoid_10_3_3__;
|
|
7808
7810
|
}
|
|
7809
7811
|
|
|
7810
7812
|
function tryGlobal(win, handler) {
|
|
@@ -8267,6 +8269,7 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
8267
8269
|
var childComponent;
|
|
8268
8270
|
var currentChildDomain;
|
|
8269
8271
|
var currentContainer;
|
|
8272
|
+
var isRenderFinished = !1;
|
|
8270
8273
|
var onErrorOverride = overrides.onError;
|
|
8271
8274
|
var getProxyContainerOverride = overrides.getProxyContainer;
|
|
8272
8275
|
var showOverride = overrides.show;
|
|
@@ -8478,11 +8481,21 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
8478
8481
|
|
|
8479
8482
|
var initChild = function initChild(childDomain, childExports) {
|
|
8480
8483
|
return promise_ZalgoPromise["try"](function () {
|
|
8484
|
+
var _currentProxyWin;
|
|
8485
|
+
|
|
8481
8486
|
currentChildDomain = childDomain;
|
|
8482
8487
|
childComponent = childExports;
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8488
|
+
null == (_currentProxyWin = currentProxyWin) || _currentProxyWin.isPopup().then(function (isPopup) {
|
|
8489
|
+
if ("" !== (null == childExports ? void 0 : childExports.name) && isPopup) {
|
|
8490
|
+
var _currentProxyWin2;
|
|
8491
|
+
|
|
8492
|
+
null == (_currentProxyWin2 = currentProxyWin) || _currentProxyWin2.setName(null == childExports ? void 0 : childExports.name);
|
|
8493
|
+
}
|
|
8494
|
+
})["finally"](function () {
|
|
8495
|
+
resolveInitPromise();
|
|
8496
|
+
clean.register(function () {
|
|
8497
|
+
return childExports.close.fireAndForget()["catch"](src_util_noop);
|
|
8498
|
+
});
|
|
8486
8499
|
});
|
|
8487
8500
|
});
|
|
8488
8501
|
};
|
|
@@ -9275,7 +9288,7 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
9275
9288
|
context: context,
|
|
9276
9289
|
tag: tag,
|
|
9277
9290
|
childDomainMatch: childDomainMatch,
|
|
9278
|
-
version: "
|
|
9291
|
+
version: "10_3_3",
|
|
9279
9292
|
props: childProps,
|
|
9280
9293
|
exports: (win = proxyWin, {
|
|
9281
9294
|
init: function init(childExports) {
|
|
@@ -9423,7 +9436,11 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
9423
9436
|
return promise_ZalgoPromise.delay(2e3).then(function () {
|
|
9424
9437
|
return proxyWin.isClosed();
|
|
9425
9438
|
}).then(function (isClosed) {
|
|
9426
|
-
if (!cancelled)
|
|
9439
|
+
if (!cancelled) {
|
|
9440
|
+
if (context === CONTEXT.POPUP && isClosed) return close(new Error("Detected popup close"));
|
|
9441
|
+
var isCurrentContainerClosed = Boolean(currentContainer && isElementClosed(currentContainer));
|
|
9442
|
+
return context === CONTEXT.IFRAME && isClosed && (isCurrentContainerClosed || isRenderFinished) ? close(new Error("Detected iframe close")) : watchForClose(proxyWin, context);
|
|
9443
|
+
}
|
|
9427
9444
|
});
|
|
9428
9445
|
}(proxyWin, context);
|
|
9429
9446
|
});
|
|
@@ -9460,6 +9477,7 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
9460
9477
|
});
|
|
9461
9478
|
});
|
|
9462
9479
|
var onRenderedPromise = initPromise.then(function () {
|
|
9480
|
+
isRenderFinished = !0;
|
|
9463
9481
|
return event.trigger(EVENT.RENDERED);
|
|
9464
9482
|
});
|
|
9465
9483
|
return promise_ZalgoPromise.hash({
|
|
@@ -10166,9 +10184,9 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
10166
10184
|
context = payload.context,
|
|
10167
10185
|
initialProps = payload.props;
|
|
10168
10186
|
if (!function (version1, version2) {
|
|
10169
|
-
if (!/_/.test(version1) || !/_/.test("
|
|
10170
|
-
return version1.split("_")[0] === "
|
|
10171
|
-
}(version)) throw new Error("Parent window has zoid version " + version + ", child window has version
|
|
10187
|
+
if (!/_/.test(version1) || !/_/.test("10_3_3")) throw new Error("Versions are in an invalid format (" + version1 + ", 10_3_3)");
|
|
10188
|
+
return version1.split("_")[0] === "10_3_3".split("_")[0];
|
|
10189
|
+
}(version)) throw new Error("Parent window has zoid version " + version + ", child window has version 10_3_3");
|
|
10172
10190
|
var show = parentExports.show,
|
|
10173
10191
|
hide = parentExports.hide,
|
|
10174
10192
|
close = parentExports.close,
|
|
@@ -10297,7 +10315,8 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
10297
10315
|
return {
|
|
10298
10316
|
init: function init() {
|
|
10299
10317
|
return promise_ZalgoPromise["try"](function () {
|
|
10300
|
-
|
|
10318
|
+
var updatedChildName = "";
|
|
10319
|
+
isSameDomain(parentComponentWindow) && (updatedChildName = function (_ref3) {
|
|
10301
10320
|
var componentName = _ref3.componentName,
|
|
10302
10321
|
parentComponentWindow = _ref3.parentComponentWindow;
|
|
10303
10322
|
|
|
@@ -10311,30 +10330,30 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
10311
10330
|
sender = _crossDomainDeseriali2.sender;
|
|
10312
10331
|
|
|
10313
10332
|
if ("uid" === _crossDomainDeseriali2.reference.type || "global" === _crossDomainDeseriali2.metaData.windowRef.type) {
|
|
10314
|
-
var
|
|
10315
|
-
data: _crossDomainDeseriali2.data,
|
|
10316
|
-
metaData: {
|
|
10317
|
-
windowRef: window_getWindowRef(parentComponentWindow)
|
|
10318
|
-
},
|
|
10319
|
-
sender: {
|
|
10320
|
-
domain: sender.domain
|
|
10321
|
-
},
|
|
10322
|
-
receiver: {
|
|
10323
|
-
win: window,
|
|
10324
|
-
domain: getDomain()
|
|
10325
|
-
},
|
|
10326
|
-
basic: !0
|
|
10327
|
-
});
|
|
10328
|
-
|
|
10329
|
-
window.name = buildChildWindowName({
|
|
10333
|
+
var childWindowName = buildChildWindowName({
|
|
10330
10334
|
name: componentName,
|
|
10331
|
-
serializedPayload:
|
|
10335
|
+
serializedPayload: crossDomainSerialize({
|
|
10336
|
+
data: _crossDomainDeseriali2.data,
|
|
10337
|
+
metaData: {
|
|
10338
|
+
windowRef: window_getWindowRef(parentComponentWindow)
|
|
10339
|
+
},
|
|
10340
|
+
sender: {
|
|
10341
|
+
domain: sender.domain
|
|
10342
|
+
},
|
|
10343
|
+
receiver: {
|
|
10344
|
+
win: window,
|
|
10345
|
+
domain: getDomain()
|
|
10346
|
+
},
|
|
10347
|
+
basic: !0
|
|
10348
|
+
}).serializedData
|
|
10332
10349
|
});
|
|
10350
|
+
window.name = childWindowName;
|
|
10351
|
+
return childWindowName;
|
|
10333
10352
|
}
|
|
10334
10353
|
}({
|
|
10335
10354
|
componentName: options.name,
|
|
10336
10355
|
parentComponentWindow: parentComponentWindow
|
|
10337
|
-
});
|
|
10356
|
+
}) || "");
|
|
10338
10357
|
lib_global_getGlobal(window).exports = options.exports({
|
|
10339
10358
|
getExports: function getExports() {
|
|
10340
10359
|
return exportsPromise;
|
|
@@ -10356,6 +10375,7 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
10356
10375
|
});
|
|
10357
10376
|
}();
|
|
10358
10377
|
return parentInit({
|
|
10378
|
+
name: updatedChildName,
|
|
10359
10379
|
updateProps: updateProps,
|
|
10360
10380
|
close: child_destroy
|
|
10361
10381
|
});
|
|
@@ -10693,7 +10713,7 @@ var zoid_frameworks = createCommonjsModule(function (module, exports) {
|
|
|
10693
10713
|
|
|
10694
10714
|
function component_destroy(err) {
|
|
10695
10715
|
destroyAll();
|
|
10696
|
-
delete window.
|
|
10716
|
+
delete window.__zoid_10_3_3__;
|
|
10697
10717
|
!function () {
|
|
10698
10718
|
!function () {
|
|
10699
10719
|
var responseListeners = globalStore("responseListeners");
|
|
@@ -15344,6 +15364,15 @@ function containerTemplate$1(_ref) {
|
|
|
15344
15364
|
}
|
|
15345
15365
|
|
|
15346
15366
|
var div = doc.createElement('div');
|
|
15367
|
+
|
|
15368
|
+
if (props.isHidden) {
|
|
15369
|
+
div.setAttribute('id', uid);
|
|
15370
|
+
div.style.display = 'none';
|
|
15371
|
+
div.appendChild(frame);
|
|
15372
|
+
div.appendChild(prerenderFrame);
|
|
15373
|
+
return div;
|
|
15374
|
+
}
|
|
15375
|
+
|
|
15347
15376
|
var backdrop = doc.createElement('div');
|
|
15348
15377
|
div.setAttribute('id', uid);
|
|
15349
15378
|
backdrop.classList.add('backdrop');
|
|
@@ -15439,6 +15468,10 @@ var options$3 = {
|
|
|
15439
15468
|
type: zoid.PROP_TYPE.STRING,
|
|
15440
15469
|
required: false
|
|
15441
15470
|
},
|
|
15471
|
+
isHidden: {
|
|
15472
|
+
type: zoid.PROP_TYPE.BOOLEAN,
|
|
15473
|
+
required: false
|
|
15474
|
+
},
|
|
15442
15475
|
onError: {
|
|
15443
15476
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
15444
15477
|
required: false
|
|
@@ -15465,6 +15498,14 @@ var options$3 = {
|
|
|
15465
15498
|
};
|
|
15466
15499
|
}
|
|
15467
15500
|
}
|
|
15501
|
+
},
|
|
15502
|
+
exports: {
|
|
15503
|
+
setPhoneNumber: {
|
|
15504
|
+
type: 'function'
|
|
15505
|
+
},
|
|
15506
|
+
getPhoneNumber: {
|
|
15507
|
+
type: 'function'
|
|
15508
|
+
}
|
|
15468
15509
|
}
|
|
15469
15510
|
};
|
|
15470
15511
|
var BizumModal = /*#__PURE__*/zoid.create(options$3);
|
|
@@ -15526,6 +15567,10 @@ var options$4 = {
|
|
|
15526
15567
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
15527
15568
|
required: false
|
|
15528
15569
|
},
|
|
15570
|
+
onBeforeOpen: {
|
|
15571
|
+
type: zoid.PROP_TYPE.FUNCTION,
|
|
15572
|
+
required: false
|
|
15573
|
+
},
|
|
15529
15574
|
onSubmit: {
|
|
15530
15575
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
15531
15576
|
required: false
|
|
@@ -15552,6 +15597,13 @@ var options$4 = {
|
|
|
15552
15597
|
required: false,
|
|
15553
15598
|
value: function value(_ref2) {
|
|
15554
15599
|
var props = _ref2.props;
|
|
15600
|
+
var shouldOpen = true;
|
|
15601
|
+
|
|
15602
|
+
if (props.onBeforeOpen) {
|
|
15603
|
+
shouldOpen = props.onBeforeOpen();
|
|
15604
|
+
}
|
|
15605
|
+
|
|
15606
|
+
if (!shouldOpen) return function () {};
|
|
15555
15607
|
var rootNode = document.createElement('div');
|
|
15556
15608
|
document.body.appendChild(rootNode);
|
|
15557
15609
|
return function (_ref3) {
|
|
@@ -15822,6 +15874,10 @@ var options$7 = {
|
|
|
15822
15874
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
15823
15875
|
required: false
|
|
15824
15876
|
},
|
|
15877
|
+
onBeforeOpen: {
|
|
15878
|
+
type: zoid.PROP_TYPE.FUNCTION,
|
|
15879
|
+
required: false
|
|
15880
|
+
},
|
|
15825
15881
|
onOpen: {
|
|
15826
15882
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
15827
15883
|
required: false
|
|
@@ -15853,6 +15909,13 @@ var options$7 = {
|
|
|
15853
15909
|
required: false,
|
|
15854
15910
|
value: function value(_ref2) {
|
|
15855
15911
|
var props = _ref2.props;
|
|
15912
|
+
var shouldOpen = true;
|
|
15913
|
+
|
|
15914
|
+
if (props.onBeforeOpen) {
|
|
15915
|
+
shouldOpen = props.onBeforeOpen();
|
|
15916
|
+
}
|
|
15917
|
+
|
|
15918
|
+
if (!shouldOpen) return;
|
|
15856
15919
|
var rootNode = document.createElement('div');
|
|
15857
15920
|
document.body.appendChild(rootNode);
|
|
15858
15921
|
return function (_ref3) {
|
|
@@ -16126,6 +16189,10 @@ var options$a = {
|
|
|
16126
16189
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
16127
16190
|
required: false
|
|
16128
16191
|
},
|
|
16192
|
+
onBeforeOpen: {
|
|
16193
|
+
type: zoid.PROP_TYPE.FUNCTION,
|
|
16194
|
+
required: false
|
|
16195
|
+
},
|
|
16129
16196
|
onOpen: {
|
|
16130
16197
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
16131
16198
|
required: false
|
|
@@ -16157,6 +16224,13 @@ var options$a = {
|
|
|
16157
16224
|
required: false,
|
|
16158
16225
|
value: function value(_ref2) {
|
|
16159
16226
|
var props = _ref2.props;
|
|
16227
|
+
var shouldOpen = true;
|
|
16228
|
+
|
|
16229
|
+
if (props.onBeforeOpen) {
|
|
16230
|
+
shouldOpen = props.onBeforeOpen();
|
|
16231
|
+
}
|
|
16232
|
+
|
|
16233
|
+
if (!shouldOpen) return;
|
|
16160
16234
|
var rootNode = document.createElement('div');
|
|
16161
16235
|
document.body.appendChild(rootNode);
|
|
16162
16236
|
return function (_ref3) {
|
|
@@ -16433,6 +16507,10 @@ var options$c = {
|
|
|
16433
16507
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
16434
16508
|
required: false
|
|
16435
16509
|
},
|
|
16510
|
+
onBeforeOpen: {
|
|
16511
|
+
type: zoid.PROP_TYPE.FUNCTION,
|
|
16512
|
+
required: false
|
|
16513
|
+
},
|
|
16436
16514
|
onSubmit: {
|
|
16437
16515
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
16438
16516
|
required: false
|