@monei-js/components 1.7.3 → 1.7.4

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.
@@ -15610,18 +15610,18 @@ var options$4 = {
15610
15610
  required: false,
15611
15611
  value: function value(_ref2) {
15612
15612
  var props = _ref2.props;
15613
- var shouldOpen = true;
15614
-
15615
- if (props.onBeforeOpen) {
15616
- shouldOpen = props.onBeforeOpen();
15617
- }
15618
-
15619
- if (!shouldOpen) return function () {};
15620
15613
  var rootNode = document.createElement('div');
15621
15614
  document.body.appendChild(rootNode);
15622
15615
  return function (_ref3) {
15623
15616
  var amount = _ref3.amount,
15624
15617
  currency = _ref3.currency;
15618
+ var shouldOpen = true;
15619
+
15620
+ if (props.onBeforeOpen) {
15621
+ shouldOpen = props.onBeforeOpen();
15622
+ }
15623
+
15624
+ if (!shouldOpen) return;
15625
15625
  var bizumModal = new BizumModal(_extends({
15626
15626
  amount: amount,
15627
15627
  currency: currency
@@ -15922,19 +15922,19 @@ var options$7 = {
15922
15922
  required: false,
15923
15923
  value: function value(_ref2) {
15924
15924
  var props = _ref2.props;
15925
- var shouldOpen = true;
15926
-
15927
- if (props.onBeforeOpen) {
15928
- shouldOpen = props.onBeforeOpen();
15929
- }
15930
-
15931
- if (!shouldOpen) return;
15932
15925
  var rootNode = document.createElement('div');
15933
15926
  document.body.appendChild(rootNode);
15934
15927
  return function (_ref3) {
15935
15928
  var amount = _ref3.amount,
15936
15929
  currency = _ref3.currency,
15937
15930
  accountId = _ref3.accountId;
15931
+ var shouldOpen = true;
15932
+
15933
+ if (props.onBeforeOpen) {
15934
+ shouldOpen = props.onBeforeOpen();
15935
+ }
15936
+
15937
+ if (!shouldOpen) return;
15938
15938
  var cofidisModal = new CofidisModal(_extends({}, props, {
15939
15939
  amount: amount,
15940
15940
  currency: currency,
@@ -16237,19 +16237,19 @@ var options$a = {
16237
16237
  required: false,
16238
16238
  value: function value(_ref2) {
16239
16239
  var props = _ref2.props;
16240
- var shouldOpen = true;
16241
-
16242
- if (props.onBeforeOpen) {
16243
- shouldOpen = props.onBeforeOpen();
16244
- }
16245
-
16246
- if (!shouldOpen) return;
16247
16240
  var rootNode = document.createElement('div');
16248
16241
  document.body.appendChild(rootNode);
16249
16242
  return function (_ref3) {
16250
16243
  var amount = _ref3.amount,
16251
16244
  currency = _ref3.currency,
16252
16245
  accountId = _ref3.accountId;
16246
+ var shouldOpen = true;
16247
+
16248
+ if (props.onBeforeOpen) {
16249
+ shouldOpen = props.onBeforeOpen();
16250
+ }
16251
+
16252
+ if (!shouldOpen) return;
16253
16253
  var cofidisModal = new CofidisLoanModal(_extends({}, props, {
16254
16254
  amount: amount,
16255
16255
  currency: currency,