@nuskin/nextgen-header 1.23.0 → 1.23.1
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/package-dist/index.js +9 -2
- package/package-dist/index.js.map +1 -1
- package/package-dist/index.mjs +104846 -0
- package/package-dist/index.mjs.map +1 -0
- package/package.json +1 -1
package/package-dist/index.js
CHANGED
|
@@ -101132,6 +101132,7 @@ Brand.defaultProps = {
|
|
|
101132
101132
|
$: null
|
|
101133
101133
|
};
|
|
101134
101134
|
;// ./src/components/brand/brand.helpers.js
|
|
101135
|
+
function brand_helpers_typeof(o) { "@babel/helpers - typeof"; return brand_helpers_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, brand_helpers_typeof(o); }
|
|
101135
101136
|
function parseLogoData(logoData) {
|
|
101136
101137
|
if (!logoData) {
|
|
101137
101138
|
return {
|
|
@@ -101153,8 +101154,14 @@ function parseLogoData(logoData) {
|
|
|
101153
101154
|
var logoUrl;
|
|
101154
101155
|
if (header_logo) {
|
|
101155
101156
|
try {
|
|
101156
|
-
var
|
|
101157
|
-
var
|
|
101157
|
+
var _parsed;
|
|
101158
|
+
var parsed;
|
|
101159
|
+
if (typeof header_logo === "string") {
|
|
101160
|
+
parsed = JSON.parse(header_logo);
|
|
101161
|
+
} else if (brand_helpers_typeof(header_logo) === "object") {
|
|
101162
|
+
parsed = header_logo;
|
|
101163
|
+
}
|
|
101164
|
+
var imageArray = (_parsed = parsed) === null || _parsed === void 0 ? void 0 : _parsed.image;
|
|
101158
101165
|
if (Array.isArray(imageArray) && imageArray.length > 0) {
|
|
101159
101166
|
var _firstImage$selected, _firstImage$files, _firstImage$files2;
|
|
101160
101167
|
var firstImage = imageArray[0];
|