tf-checkout-react 1.3.12-beta.2 → 1.3.12-beta.3

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.
@@ -8336,6 +8336,8 @@ var updateFormFieldsAttributes = function updateFormFieldsAttributes(formFields,
8336
8336
  return formFields;
8337
8337
  };
8338
8338
 
8339
+ var isDocumentDefined$1 = typeof document !== 'undefined';
8340
+
8339
8341
  var SectionContainer = function SectionContainer(_ref) {
8340
8342
  var children = _ref.children,
8341
8343
  className = _ref.className;
@@ -8349,22 +8351,26 @@ var insertHTML = function insertHTML(elementId, text) {
8349
8351
  text = '';
8350
8352
  }
8351
8353
 
8352
- var elem = document && document.getElementById(elementId);
8354
+ if (isDocumentDefined$1) {
8355
+ var elem = document && document.getElementById(elementId);
8353
8356
 
8354
- if (!(elem != null && elem.childNodes.length)) {
8355
- elem == null ? void 0 : elem.insertAdjacentHTML('afterbegin', text);
8357
+ if (!(elem != null && elem.childNodes.length)) {
8358
+ elem == null ? void 0 : elem.insertAdjacentHTML('afterbegin', text);
8359
+ }
8356
8360
  }
8357
8361
 
8358
8362
  return null;
8359
8363
  };
8360
8364
 
8361
8365
  var getFieldClassNames = function getFieldClassNames(id, existingClassNames) {
8362
- var _elem$parentElement;
8366
+ if (isDocumentDefined$1) {
8367
+ var _elem$parentElement;
8363
8368
 
8364
- var elem = document && document.getElementById(id);
8369
+ var elem = document && document.getElementById(id);
8365
8370
 
8366
- if (((elem == null ? void 0 : (_elem$parentElement = elem.parentElement) == null ? void 0 : _elem$parentElement.clientWidth) || 0) < 375) {
8367
- return existingClassNames + ' full-width';
8371
+ if (((elem == null ? void 0 : (_elem$parentElement = elem.parentElement) == null ? void 0 : _elem$parentElement.clientWidth) || 0) < 375) {
8372
+ return existingClassNames + ' full-width';
8373
+ }
8368
8374
  }
8369
8375
 
8370
8376
  return existingClassNames;