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.
- package/dist/tf-checkout-react.cjs.development.js +13 -7
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +13 -7
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/preRegistration/FieldsSection.tsx +12 -6
|
@@ -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
|
-
|
|
8354
|
+
if (isDocumentDefined$1) {
|
|
8355
|
+
var elem = document && document.getElementById(elementId);
|
|
8353
8356
|
|
|
8354
|
-
|
|
8355
|
-
|
|
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
|
-
|
|
8366
|
+
if (isDocumentDefined$1) {
|
|
8367
|
+
var _elem$parentElement;
|
|
8363
8368
|
|
|
8364
|
-
|
|
8369
|
+
var elem = document && document.getElementById(id);
|
|
8365
8370
|
|
|
8366
|
-
|
|
8367
|
-
|
|
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;
|