@nuskin/nextgen-header 1.32.0 → 1.34.0
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 +613 -94
- package/package-dist/index.js.map +1 -1
- package/package-dist/index.mjs +609 -94
- package/package-dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/package-dist/index.mjs
CHANGED
|
@@ -87015,6 +87015,165 @@ module.exports = values;
|
|
|
87015
87015
|
|
|
87016
87016
|
/***/ },
|
|
87017
87017
|
|
|
87018
|
+
/***/ 5925
|
|
87019
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
87020
|
+
|
|
87021
|
+
|
|
87022
|
+
|
|
87023
|
+
var _warn = __webpack_require__(8441);
|
|
87024
|
+
|
|
87025
|
+
var _warn2 = _interopRequireDefault(_warn);
|
|
87026
|
+
|
|
87027
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
87028
|
+
|
|
87029
|
+
// https://developers.google.com/tag-manager/quickstart
|
|
87030
|
+
|
|
87031
|
+
var Snippets = {
|
|
87032
|
+
tags: function tags(_ref) {
|
|
87033
|
+
var id = _ref.id,
|
|
87034
|
+
events = _ref.events,
|
|
87035
|
+
dataLayer = _ref.dataLayer,
|
|
87036
|
+
dataLayerName = _ref.dataLayerName,
|
|
87037
|
+
preview = _ref.preview,
|
|
87038
|
+
auth = _ref.auth;
|
|
87039
|
+
|
|
87040
|
+
var gtm_auth = '>m_auth=' + auth;
|
|
87041
|
+
var gtm_preview = '>m_preview=' + preview;
|
|
87042
|
+
|
|
87043
|
+
if (!id) (0, _warn2.default)('GTM Id is required');
|
|
87044
|
+
|
|
87045
|
+
var iframe = '\n <iframe src="https://www.googletagmanager.com/ns.html?id=' + id + gtm_auth + gtm_preview + '>m_cookies_win=x"\n height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>';
|
|
87046
|
+
|
|
87047
|
+
var script = '\n (function(w,d,s,l,i){w[l]=w[l]||[];\n w[l].push({\'gtm.start\': new Date().getTime(),event:\'gtm.js\', ' + JSON.stringify(events).slice(1, -1) + '});\n var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';\n j.async=true;j.src=\'https://www.googletagmanager.com/gtm.js?id=\'+i+dl+\'' + gtm_auth + gtm_preview + '>m_cookies_win=x\';\n f.parentNode.insertBefore(j,f);\n })(window,document,\'script\',\'' + dataLayerName + '\',\'' + id + '\');';
|
|
87048
|
+
|
|
87049
|
+
var dataLayerVar = this.dataLayer(dataLayer, dataLayerName);
|
|
87050
|
+
|
|
87051
|
+
return {
|
|
87052
|
+
iframe: iframe,
|
|
87053
|
+
script: script,
|
|
87054
|
+
dataLayerVar: dataLayerVar
|
|
87055
|
+
};
|
|
87056
|
+
},
|
|
87057
|
+
dataLayer: function dataLayer(_dataLayer, dataLayerName) {
|
|
87058
|
+
return '\n window.' + dataLayerName + ' = window.' + dataLayerName + ' || [];\n window.' + dataLayerName + '.push(' + JSON.stringify(_dataLayer) + ')';
|
|
87059
|
+
}
|
|
87060
|
+
};
|
|
87061
|
+
|
|
87062
|
+
module.exports = Snippets;
|
|
87063
|
+
|
|
87064
|
+
/***/ },
|
|
87065
|
+
|
|
87066
|
+
/***/ 6324
|
|
87067
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
87068
|
+
|
|
87069
|
+
|
|
87070
|
+
|
|
87071
|
+
var _Snippets = __webpack_require__(5925);
|
|
87072
|
+
|
|
87073
|
+
var _Snippets2 = _interopRequireDefault(_Snippets);
|
|
87074
|
+
|
|
87075
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
87076
|
+
|
|
87077
|
+
var TagManager = {
|
|
87078
|
+
dataScript: function dataScript(dataLayer) {
|
|
87079
|
+
var script = document.createElement('script');
|
|
87080
|
+
script.innerHTML = dataLayer;
|
|
87081
|
+
return script;
|
|
87082
|
+
},
|
|
87083
|
+
gtm: function gtm(args) {
|
|
87084
|
+
var snippets = _Snippets2.default.tags(args);
|
|
87085
|
+
|
|
87086
|
+
var noScript = function noScript() {
|
|
87087
|
+
var noscript = document.createElement('noscript');
|
|
87088
|
+
noscript.innerHTML = snippets.iframe;
|
|
87089
|
+
return noscript;
|
|
87090
|
+
};
|
|
87091
|
+
|
|
87092
|
+
var script = function script() {
|
|
87093
|
+
var script = document.createElement('script');
|
|
87094
|
+
script.innerHTML = snippets.script;
|
|
87095
|
+
return script;
|
|
87096
|
+
};
|
|
87097
|
+
|
|
87098
|
+
var dataScript = this.dataScript(snippets.dataLayerVar);
|
|
87099
|
+
|
|
87100
|
+
return {
|
|
87101
|
+
noScript: noScript,
|
|
87102
|
+
script: script,
|
|
87103
|
+
dataScript: dataScript
|
|
87104
|
+
};
|
|
87105
|
+
},
|
|
87106
|
+
initialize: function initialize(_ref) {
|
|
87107
|
+
var gtmId = _ref.gtmId,
|
|
87108
|
+
_ref$events = _ref.events,
|
|
87109
|
+
events = _ref$events === undefined ? {} : _ref$events,
|
|
87110
|
+
dataLayer = _ref.dataLayer,
|
|
87111
|
+
_ref$dataLayerName = _ref.dataLayerName,
|
|
87112
|
+
dataLayerName = _ref$dataLayerName === undefined ? 'dataLayer' : _ref$dataLayerName,
|
|
87113
|
+
_ref$auth = _ref.auth,
|
|
87114
|
+
auth = _ref$auth === undefined ? '' : _ref$auth,
|
|
87115
|
+
_ref$preview = _ref.preview,
|
|
87116
|
+
preview = _ref$preview === undefined ? '' : _ref$preview;
|
|
87117
|
+
|
|
87118
|
+
var gtm = this.gtm({
|
|
87119
|
+
id: gtmId,
|
|
87120
|
+
events: events,
|
|
87121
|
+
dataLayer: dataLayer || undefined,
|
|
87122
|
+
dataLayerName: dataLayerName,
|
|
87123
|
+
auth: auth,
|
|
87124
|
+
preview: preview
|
|
87125
|
+
});
|
|
87126
|
+
if (dataLayer) document.head.appendChild(gtm.dataScript);
|
|
87127
|
+
document.head.insertBefore(gtm.script(), document.head.childNodes[0]);
|
|
87128
|
+
document.body.insertBefore(gtm.noScript(), document.body.childNodes[0]);
|
|
87129
|
+
},
|
|
87130
|
+
dataLayer: function dataLayer(_ref2) {
|
|
87131
|
+
var _dataLayer = _ref2.dataLayer,
|
|
87132
|
+
_ref2$dataLayerName = _ref2.dataLayerName,
|
|
87133
|
+
dataLayerName = _ref2$dataLayerName === undefined ? 'dataLayer' : _ref2$dataLayerName;
|
|
87134
|
+
|
|
87135
|
+
if (window[dataLayerName]) return window[dataLayerName].push(_dataLayer);
|
|
87136
|
+
var snippets = _Snippets2.default.dataLayer(_dataLayer, dataLayerName);
|
|
87137
|
+
var dataScript = this.dataScript(snippets);
|
|
87138
|
+
document.head.insertBefore(dataScript, document.head.childNodes[0]);
|
|
87139
|
+
}
|
|
87140
|
+
};
|
|
87141
|
+
|
|
87142
|
+
module.exports = TagManager;
|
|
87143
|
+
|
|
87144
|
+
/***/ },
|
|
87145
|
+
|
|
87146
|
+
/***/ 1003
|
|
87147
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
87148
|
+
|
|
87149
|
+
|
|
87150
|
+
|
|
87151
|
+
var _TagManager = __webpack_require__(6324);
|
|
87152
|
+
|
|
87153
|
+
var _TagManager2 = _interopRequireDefault(_TagManager);
|
|
87154
|
+
|
|
87155
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
87156
|
+
|
|
87157
|
+
module.exports = _TagManager2.default;
|
|
87158
|
+
|
|
87159
|
+
/***/ },
|
|
87160
|
+
|
|
87161
|
+
/***/ 8441
|
|
87162
|
+
(__unused_webpack_module, exports) {
|
|
87163
|
+
|
|
87164
|
+
|
|
87165
|
+
|
|
87166
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
87167
|
+
value: true
|
|
87168
|
+
}));
|
|
87169
|
+
var warn = function warn(s) {
|
|
87170
|
+
console.warn('[react-gtm]', s);
|
|
87171
|
+
};
|
|
87172
|
+
|
|
87173
|
+
exports["default"] = warn;
|
|
87174
|
+
|
|
87175
|
+
/***/ },
|
|
87176
|
+
|
|
87018
87177
|
/***/ 9223
|
|
87019
87178
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
87020
87179
|
|
|
@@ -100176,62 +100335,73 @@ var colors = {
|
|
|
100176
100335
|
accentHover: "#0d9488"
|
|
100177
100336
|
};
|
|
100178
100337
|
var HeaderRoot = /*#__PURE__*/createStyled("header", true ? {
|
|
100179
|
-
target: "
|
|
100338
|
+
target: "e1607tyl45"
|
|
100180
100339
|
} : 0)("box-sizing:border-box;width:100%;font-family:\"Inter\",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:", colors.text, ";background:", colors.surface, ";border-bottom:1px solid ", colors.borderLight, ";*,*::before,*::after{box-sizing:border-box;}button{font:inherit;cursor:pointer;}button:disabled{cursor:not-allowed;opacity:0.55;}" + ( true ? "" : 0));
|
|
100181
100340
|
|
|
100182
100341
|
/** Logo (left) + utility + search (stacked right) */
|
|
100183
100342
|
var TopHeaderRow = /*#__PURE__*/createStyled("div", true ? {
|
|
100184
|
-
target: "
|
|
100343
|
+
target: "e1607tyl44"
|
|
100185
100344
|
} : 0)( true ? {
|
|
100186
100345
|
name: "1dro8oz",
|
|
100187
100346
|
styles: "display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 0.5rem;padding:1rem clamp(1rem, 4vw, 2rem) 0.75rem;max-width:1440px;margin:0 auto;@media (min-width: 1025px){gap:1rem 2rem;}"
|
|
100188
100347
|
} : 0);
|
|
100189
100348
|
var LogoSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
100190
|
-
target: "
|
|
100349
|
+
target: "e1607tyl43"
|
|
100191
100350
|
} : 0)("flex:0 0 auto;align-self:center;@media (max-width: 1024px){margin-right:auto;}[data-copy-loading]{display:flex;align-items:center;min-height:2.75rem;}.header-copy-placeholder{color:", colors.muted, ";letter-spacing:0.02em;}" + ( true ? "" : 0));
|
|
100192
100351
|
var WordmarkButton = /*#__PURE__*/createStyled("button", true ? {
|
|
100193
|
-
target: "
|
|
100352
|
+
target: "e1607tyl42"
|
|
100194
100353
|
} : 0)("margin:0;padding:0.25rem 0;border:none;background:none;font-size:1.5rem;font-weight:700;letter-spacing:0.2em;color:", colors.text, ";text-transform:uppercase;line-height:1.2;transition:opacity 0.15s ease;&:hover{opacity:0.72;}" + ( true ? "" : 0));
|
|
100195
100354
|
|
|
100196
100355
|
/** Utility row only (search moved to nav row) */
|
|
100197
100356
|
var RightHeaderCluster = /*#__PURE__*/createStyled("div", true ? {
|
|
100198
|
-
target: "
|
|
100357
|
+
target: "e1607tyl41"
|
|
100199
100358
|
} : 0)( true ? {
|
|
100200
100359
|
name: "qu4zte",
|
|
100201
100360
|
styles: "display:none;@media (min-width: 1025px){display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:0.35rem 1rem;flex:1 1 auto;}"
|
|
100202
100361
|
} : 0);
|
|
100203
100362
|
var UtilityBar = /*#__PURE__*/createStyled("div", true ? {
|
|
100204
|
-
target: "
|
|
100363
|
+
target: "e1607tyl40"
|
|
100205
100364
|
} : 0)("display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0.35rem 1rem;width:100%;font-size:0.8125rem;line-height:1.35;color:", colors.text, ";" + ( true ? "" : 0));
|
|
100206
100365
|
var UtilityBarDivider = /*#__PURE__*/createStyled("span", true ? {
|
|
100207
|
-
target: "
|
|
100366
|
+
target: "e1607tyl39"
|
|
100208
100367
|
} : 0)("color:", colors.muted, ";user-select:none;" + ( true ? "" : 0));
|
|
100209
100368
|
var UtilityButton = /*#__PURE__*/createStyled("button", true ? {
|
|
100210
|
-
target: "
|
|
100369
|
+
target: "e1607tyl38"
|
|
100211
100370
|
} : 0)( true ? {
|
|
100212
100371
|
name: "1f5cjb2",
|
|
100213
100372
|
styles: "display:inline-flex;align-items:center;gap:0.35rem;margin:0;padding:0.2rem 0.35rem;border:none;border-radius:4px;background:transparent;color:inherit;white-space:nowrap;transition:background 0.15s ease;&:not(:disabled):hover{background:rgba(0, 0, 0, 0.05);}svg{flex-shrink:0;opacity:0.85;}"
|
|
100214
100373
|
} : 0);
|
|
100374
|
+
var LoyaltyPillInner = /*#__PURE__*/createStyled("span", true ? {
|
|
100375
|
+
target: "e1607tyl37"
|
|
100376
|
+
} : 0)( true ? {
|
|
100377
|
+
name: "99qhl1",
|
|
100378
|
+
styles: "display:inline-flex;align-items:center;gap:0;color:inherit;border-bottom:1px solid transparent;box-sizing:border-box"
|
|
100379
|
+
} : 0);
|
|
100380
|
+
|
|
100381
|
+
/** Loyalty anchor in the utility bar — pill aligned with market selector visual spec */
|
|
100382
|
+
var LoyaltyUtilityLink = /*#__PURE__*/createStyled("a", true ? {
|
|
100383
|
+
target: "e1607tyl36"
|
|
100384
|
+
} : 0)("appearance:none;margin:0;border:0;background:transparent;color:#5f5f5f;font-family:Lora,sans-serif;font-weight:500;font-size:16px;line-height:22px;min-height:44px;padding:11px 16px;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;&:visited{color:#5f5f5f;text-decoration:none;}&:hover{background:#efefef;color:#2f2f2f;text-decoration:none;", LoyaltyPillInner, "{border-bottom-color:currentColor;}}&:hover:visited{color:#2f2f2f;text-decoration:none;}&:focus-visible{outline:1px solid #007bff;outline-offset:1px;color:#2f2f2f;text-decoration:none;", LoyaltyPillInner, "{border-bottom-color:currentColor;}}&:active{text-decoration:none;}" + ( true ? "" : 0));
|
|
100215
100385
|
var LocaleLabel = /*#__PURE__*/createStyled("span", true ? {
|
|
100216
|
-
target: "
|
|
100386
|
+
target: "e1607tyl35"
|
|
100217
100387
|
} : 0)( true ? {
|
|
100218
100388
|
name: "101gt3q",
|
|
100219
100389
|
styles: "display:inline-flex;align-items:center;gap:0.3rem"
|
|
100220
100390
|
} : 0);
|
|
100221
100391
|
var AccountCluster = /*#__PURE__*/createStyled("div", true ? {
|
|
100222
|
-
target: "
|
|
100392
|
+
target: "e1607tyl34"
|
|
100223
100393
|
} : 0)( true ? {
|
|
100224
100394
|
name: "m6tz52",
|
|
100225
100395
|
styles: "display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.125rem 0.35rem;@media (max-width: 1024px){.account-icon{display:none;}.account-sign-up{display:none;}.account-divider{display:none;}.account-sign-in{font-size:1rem;font-weight:400;padding:0;}}"
|
|
100226
100396
|
} : 0);
|
|
100227
100397
|
var CartButtonInner = /*#__PURE__*/createStyled("span", true ? {
|
|
100228
|
-
target: "
|
|
100398
|
+
target: "e1607tyl33"
|
|
100229
100399
|
} : 0)( true ? {
|
|
100230
100400
|
name: "ww3r3k",
|
|
100231
100401
|
styles: "display:inline-flex;align-items:center;position:relative"
|
|
100232
100402
|
} : 0);
|
|
100233
100403
|
var CartBadge = /*#__PURE__*/createStyled("span", true ? {
|
|
100234
|
-
target: "
|
|
100404
|
+
target: "e1607tyl32"
|
|
100235
100405
|
} : 0)( true ? {
|
|
100236
100406
|
name: "1sj9dvc",
|
|
100237
100407
|
styles: "position:absolute;top:-8px;right:-8px;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:50%;font-size:0.75rem;font-weight:600;line-height:1;background:#5b81a5;color:#fff;border:2px solid #fff"
|
|
@@ -100239,162 +100409,170 @@ var CartBadge = /*#__PURE__*/createStyled("span", true ? {
|
|
|
100239
100409
|
|
|
100240
100410
|
/** Pill search: icon left, full-width field, submit control on right */
|
|
100241
100411
|
var SearchSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
100242
|
-
target: "
|
|
100412
|
+
target: "e1607tyl31"
|
|
100243
100413
|
} : 0)( true ? {
|
|
100244
100414
|
name: "kuwwf0",
|
|
100245
100415
|
styles: "width:100%;[data-region=\"search\"]{width:100%;}"
|
|
100246
100416
|
} : 0);
|
|
100247
100417
|
var SearchPillForm = /*#__PURE__*/createStyled("form", true ? {
|
|
100248
|
-
target: "
|
|
100418
|
+
target: "e1607tyl30"
|
|
100249
100419
|
} : 0)("display:flex;align-items:center;width:100%;min-height:2.75rem;padding:0 0.35rem 0 0.85rem;border:1px solid ", colors.border, ";border-radius:999px;background:", colors.surface, ";overflow:hidden;transition:border-color 0.15s ease,box-shadow 0.15s ease;&:focus-within{border-color:", colors.muted, ";box-shadow:0 0 0 1px rgba(17, 24, 39, 0.08);}.search-pill__icon{flex-shrink:0;margin-right:0.5rem;color:", colors.muted, ";}input{flex:1;min-width:0;padding:0.5rem 0;border:none;background:transparent;font-size:0.9375rem;outline:none;&::placeholder{color:", colors.muted, ";}}button[type=\"submit\"]{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;margin:0.1rem 0.1rem 0.1rem 0.25rem;padding:0;border:none;border-radius:50%;background:", colors.text, ";color:#fff;transition:opacity 0.15s ease,transform 0.1s ease;&:hover:not(:disabled){opacity:0.88;}&:disabled{opacity:0.4;}svg{width:16px;height:16px;}}" + ( true ? "" : 0));
|
|
100250
100420
|
var NavSection = /*#__PURE__*/createStyled("div", true ? {
|
|
100251
|
-
target: "
|
|
100421
|
+
target: "e1607tyl29"
|
|
100252
100422
|
} : 0)("display:none;background:", colors.surface, ";@media (min-width: 1025px){display:block;[role=\"tablist\"]{padding-right:calc(\n clamp(200px, 22vw, 340px) + clamp(1rem, 4vw, 2rem) + 1.5rem\n );}}", function (p) {
|
|
100253
100423
|
return p.$isEditing && "display: block;";
|
|
100254
100424
|
}, ";" + ( true ? "" : 0));
|
|
100255
100425
|
|
|
100256
100426
|
/** Search pill anchored to the top-right of NavSection, vertically centred in the tab row (68 px tall). */
|
|
100257
100427
|
var NavSectionInner = /*#__PURE__*/createStyled("div", true ? {
|
|
100258
|
-
target: "
|
|
100428
|
+
target: "e1607tyl28"
|
|
100259
100429
|
} : 0)( true ? {
|
|
100260
100430
|
name: "15qmolt",
|
|
100261
100431
|
styles: "position:relative;max-width:1440px;margin:0 auto"
|
|
100262
100432
|
} : 0);
|
|
100263
100433
|
var NavSearchSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
100264
|
-
target: "
|
|
100434
|
+
target: "e1607tyl27"
|
|
100265
100435
|
} : 0)( true ? {
|
|
100266
100436
|
name: "913s6b",
|
|
100267
100437
|
styles: "display:none;@media (min-width: 1025px){display:flex;align-items:center;position:absolute;top:0;right:clamp(1rem, 4vw, 2rem);height:68px;width:clamp(200px, 22vw, 340px);[data-region=\"search\"]{width:100%;}}"
|
|
100268
100438
|
} : 0);
|
|
100269
100439
|
var PrimaryNav = /*#__PURE__*/createStyled("nav", true ? {
|
|
100270
|
-
target: "
|
|
100440
|
+
target: "e1607tyl26"
|
|
100271
100441
|
} : 0)("max-width:1440px;margin:0 auto;padding:0 clamp(1rem, 4vw, 2rem);ul{display:flex;flex-wrap:wrap;align-items:stretch;gap:0;margin:0;padding:0;list-style:none;}li{margin:0;}li>span,li>button{display:block;width:100%;margin:0;padding:0.95rem 0.85rem;border:none;background:none;font-size:0.9375rem;font-weight:500;text-align:left;color:", colors.text, ";border-bottom:3px solid transparent;transition:color 0.15s ease,border-color 0.15s ease;}li>button{cursor:pointer;font-family:inherit;}li:hover>span,li:hover>button{color:", colors.accent, ";}li[data-nav-active=\"true\"]>span,li[data-nav-active=\"true\"]>button{font-weight:700;border-bottom-color:", colors.navActive, ";}&[data-copy-loading] li>span{color:", colors.muted, ";}" + ( true ? "" : 0));
|
|
100272
100442
|
var MegaMenuPreview = /*#__PURE__*/createStyled("section", true ? {
|
|
100273
|
-
target: "
|
|
100443
|
+
target: "e1607tyl25"
|
|
100274
100444
|
} : 0)("border-top:1px solid ", colors.borderLight, ";background:#f9fafb;" + ( true ? "" : 0));
|
|
100275
100445
|
var MegaMenuInner = /*#__PURE__*/createStyled("div", true ? {
|
|
100276
|
-
target: "
|
|
100446
|
+
target: "e1607tyl24"
|
|
100277
100447
|
} : 0)( true ? {
|
|
100278
100448
|
name: "1awwgt4",
|
|
100279
100449
|
styles: "display:grid;grid-template-columns:minmax(11rem, 14rem) 1fr;gap:1.5rem 2.5rem;max-width:1440px;margin:0 auto;padding:1.25rem clamp(1rem, 4vw, 2rem) 1.75rem;@media (max-width: 800px){grid-template-columns:1fr;}"
|
|
100280
100450
|
} : 0);
|
|
100281
100451
|
var JumpToColumn = /*#__PURE__*/createStyled("div", true ? {
|
|
100282
|
-
target: "
|
|
100452
|
+
target: "e1607tyl23"
|
|
100283
100453
|
} : 0)("padding:1rem;border:1px solid ", colors.border, ";border-radius:6px;background:", colors.surface, ";" + ( true ? "" : 0));
|
|
100284
100454
|
var JumpToTitle = /*#__PURE__*/createStyled("h3", true ? {
|
|
100285
|
-
target: "
|
|
100455
|
+
target: "e1607tyl22"
|
|
100286
100456
|
} : 0)("margin:0 0 0.75rem;font-size:0.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:", colors.text, ";" + ( true ? "" : 0));
|
|
100287
100457
|
var JumpToList = /*#__PURE__*/createStyled("ul", true ? {
|
|
100288
|
-
target: "
|
|
100458
|
+
target: "e1607tyl21"
|
|
100289
100459
|
} : 0)( true ? {
|
|
100290
100460
|
name: "gt7hyk",
|
|
100291
100461
|
styles: "display:flex;flex-direction:column;gap:0.5rem;margin:0;padding:0;list-style:none"
|
|
100292
100462
|
} : 0);
|
|
100293
100463
|
var JumpToPill = /*#__PURE__*/createStyled("button", true ? {
|
|
100294
|
-
target: "
|
|
100464
|
+
target: "e1607tyl20"
|
|
100295
100465
|
} : 0)("display:block;width:100%;margin:0;padding:0.5rem 0.85rem;border:1px solid ", colors.border, ";border-radius:999px;background:", colors.surface, ";font-size:0.8125rem;font-weight:500;text-align:left;color:", colors.text, ";transition:background 0.15s ease,border-color 0.15s ease;&:hover:not(:disabled){background:#f3f4f6;border-color:", colors.muted, ";}" + ( true ? "" : 0));
|
|
100296
100466
|
var CategoriesPane = /*#__PURE__*/createStyled("div", true ? {
|
|
100297
|
-
target: "
|
|
100467
|
+
target: "e1607tyl19"
|
|
100298
100468
|
} : 0)("padding:1rem 1.25rem;border:1px solid ", colors.border, ";border-radius:6px;background:", colors.surface, ";" + ( true ? "" : 0));
|
|
100299
100469
|
var CategoryHeaderStrip = /*#__PURE__*/createStyled("div", true ? {
|
|
100300
|
-
target: "
|
|
100470
|
+
target: "e1607tyl18"
|
|
100301
100471
|
} : 0)("display:flex;flex-wrap:wrap;align-items:center;gap:0.35rem 0.5rem;margin-bottom:1.25rem;padding-bottom:0.65rem;border-bottom:1px solid ", colors.borderLight, ";font-size:0.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;color:", colors.text, ";span{white-space:nowrap;}svg{flex-shrink:0;color:", colors.muted, ";}" + ( true ? "" : 0));
|
|
100302
100472
|
var CategoryColumns = /*#__PURE__*/createStyled("div", true ? {
|
|
100303
|
-
target: "
|
|
100473
|
+
target: "e1607tyl17"
|
|
100304
100474
|
} : 0)( true ? {
|
|
100305
100475
|
name: "xxda9t",
|
|
100306
100476
|
styles: "display:grid;grid-template-columns:repeat(3, 1fr);gap:1.25rem 1.5rem;@media (max-width: 900px){grid-template-columns:1fr;}"
|
|
100307
100477
|
} : 0);
|
|
100308
100478
|
var CategoryColumn = /*#__PURE__*/(/* unused pure expression or super */ null && (_styled("div", true ? {
|
|
100309
|
-
target: "
|
|
100479
|
+
target: "e1607tyl16"
|
|
100310
100480
|
} : 0)( true ? "" : 0)));
|
|
100311
100481
|
var CategorySubLabel = /*#__PURE__*/createStyled("p", true ? {
|
|
100312
|
-
target: "
|
|
100482
|
+
target: "e1607tyl15"
|
|
100313
100483
|
} : 0)("margin:0 0 0.5rem;font-size:0.75rem;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:", colors.muted, ";" + ( true ? "" : 0));
|
|
100314
100484
|
var CategoryLinkList = /*#__PURE__*/createStyled("ul", true ? {
|
|
100315
|
-
target: "
|
|
100485
|
+
target: "e1607tyl14"
|
|
100316
100486
|
} : 0)("margin:0;padding:0;list-style:none;li{margin:0;padding:0;}button.link-like{display:block;width:100%;margin:0;padding:0.35rem 0;border:none;background:none;font-size:0.875rem;text-align:left;color:", colors.text, ";text-decoration:none;cursor:pointer;transition:color 0.12s ease;&:hover{color:", colors.accent, ";text-decoration:underline;}}" + ( true ? "" : 0));
|
|
100317
100487
|
var MobileMenuButton = /*#__PURE__*/createStyled("button", true ? {
|
|
100318
|
-
target: "
|
|
100488
|
+
target: "e1607tyl13"
|
|
100319
100489
|
} : 0)("display:flex;align-items:center;justify-content:center;margin:0;padding:0.5rem;border:none;background:transparent;color:", colors.text, ";cursor:pointer;transition:background 0.15s ease;&:hover{background:rgba(0, 0, 0, 0.05);}@media (min-width: 1025px){display:none;}" + ( true ? "" : 0));
|
|
100320
100490
|
var MobileUtilityBar = /*#__PURE__*/createStyled("div", true ? {
|
|
100321
|
-
target: "
|
|
100491
|
+
target: "e1607tyl12"
|
|
100322
100492
|
} : 0)("display:flex;align-items:center;gap:1rem;margin-left:auto;font-size:1rem;@media (min-width: 1025px){display:none;}[data-region=\"account\"] button,[data-region=\"cart\"] button{display:flex;align-items:center;padding:0;background:none;border:none;color:", colors.text, ";cursor:pointer;font-size:1rem;svg{width:24px;height:24px;}}" + ( true ? "" : 0));
|
|
100323
100493
|
var MobileDrawer = /*#__PURE__*/createStyled("div", true ? {
|
|
100324
|
-
target: "
|
|
100494
|
+
target: "e1607tyl11"
|
|
100325
100495
|
} : 0)( true ? {
|
|
100326
100496
|
name: "kxea5q",
|
|
100327
100497
|
styles: "position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;display:flex"
|
|
100328
100498
|
} : 0);
|
|
100329
100499
|
var MobileDrawerBackdrop = /*#__PURE__*/createStyled("div", true ? {
|
|
100330
|
-
target: "
|
|
100500
|
+
target: "e1607tyl10"
|
|
100331
100501
|
} : 0)( true ? {
|
|
100332
100502
|
name: "eq959j",
|
|
100333
100503
|
styles: "position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);cursor:pointer"
|
|
100334
100504
|
} : 0);
|
|
100335
100505
|
var MobileDrawerContent = /*#__PURE__*/createStyled("div", true ? {
|
|
100336
|
-
target: "
|
|
100506
|
+
target: "e1607tyl9"
|
|
100337
100507
|
} : 0)("position:relative;z-index:1;width:85%;max-width:375px;height:100%;background:", colors.surface, ";display:flex;flex-direction:column;gap:16px;box-shadow:2px 0 8px rgba(0, 0, 0, 0.15);" + ( true ? "" : 0));
|
|
100338
100508
|
var MobileDrawerHeader = /*#__PURE__*/createStyled("div", true ? {
|
|
100339
|
-
target: "
|
|
100509
|
+
target: "e1607tyl8"
|
|
100340
100510
|
} : 0)( true ? {
|
|
100341
100511
|
name: "dvskpv",
|
|
100342
100512
|
styles: "box-sizing:border-box;width:100%;height:98px;min-height:98px;flex-shrink:0;padding:66px 0 0;background:#ffffff;opacity:1"
|
|
100343
100513
|
} : 0);
|
|
100344
100514
|
var MobileDrawerHeaderRow = /*#__PURE__*/createStyled("div", true ? {
|
|
100345
|
-
target: "
|
|
100515
|
+
target: "e1607tyl7"
|
|
100346
100516
|
} : 0)( true ? {
|
|
100347
100517
|
name: "150vzce",
|
|
100348
100518
|
styles: "display:flex;align-items:center;justify-content:space-between;height:32px;min-height:32px;max-height:32px;width:100%;box-sizing:border-box;padding-left:20px;padding-right:20px"
|
|
100349
100519
|
} : 0);
|
|
100350
100520
|
var MobileDrawerMarketTriggerSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
100351
|
-
target: "
|
|
100521
|
+
target: "e1607tyl6"
|
|
100352
100522
|
} : 0)( true ? {
|
|
100353
100523
|
name: "u09th4",
|
|
100354
100524
|
styles: "flex:0 1 auto;min-width:0;height:32px;display:flex;align-items:center;justify-content:flex-end"
|
|
100355
100525
|
} : 0);
|
|
100356
100526
|
var MobileDrawerLogoSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
100357
|
-
target: "
|
|
100527
|
+
target: "e1607tyl5"
|
|
100358
100528
|
} : 0)( true ? {
|
|
100359
100529
|
name: "1659k0q",
|
|
100360
100530
|
styles: "display:flex;align-items:center;justify-content:flex-start;min-width:0;flex:1 1 auto;height:100%;overflow:hidden"
|
|
100361
100531
|
} : 0);
|
|
100362
100532
|
var MobileDrawerNav = /*#__PURE__*/createStyled("nav", true ? {
|
|
100363
|
-
target: "
|
|
100533
|
+
target: "e1607tyl4"
|
|
100364
100534
|
} : 0)( true ? {
|
|
100365
100535
|
name: "tvz3vz",
|
|
100366
100536
|
styles: "flex:1;overflow-y:auto;padding:0 0 1rem;[data-drawer-top-nav]>*{max-width:none;margin:0;padding:0;width:100%;}"
|
|
100367
100537
|
} : 0);
|
|
100368
100538
|
var MobileDrawerNavItem = /*#__PURE__*/createStyled("div", true ? {
|
|
100369
|
-
target: "
|
|
100539
|
+
target: "e1607tyl3"
|
|
100370
100540
|
} : 0)( true ? "" : 0);
|
|
100371
100541
|
var MobileDrawerNavButton = /*#__PURE__*/createStyled("button", true ? {
|
|
100372
|
-
target: "
|
|
100542
|
+
target: "e1607tyl2"
|
|
100373
100543
|
} : 0)("display:flex;align-items:center;justify-content:", function (p) {
|
|
100374
100544
|
return p.$alignStart ? "flex-start" : "space-between";
|
|
100375
100545
|
}, ";width:100%;margin:0;padding:1.125rem 1.5rem;border:none;background:none;font-size:1rem;font-weight:400;text-align:left;color:", colors.text, ";cursor:pointer;transition:background 0.15s ease;text-decoration:none;&:hover{background:rgba(0, 0, 0, 0.03);}svg{flex-shrink:0;color:", colors.muted, ";transition:transform 0.2s ease;}" + ( true ? "" : 0));
|
|
100546
|
+
|
|
100547
|
+
/** Nav row without trailing icon (e.g. loyalty link). */
|
|
100548
|
+
var MobileDrawerNavLink = /*#__PURE__*/createStyled(MobileDrawerNavButton, true ? {
|
|
100549
|
+
target: "e1607tyl1"
|
|
100550
|
+
} : 0)( true ? {
|
|
100551
|
+
name: "11g6mpt",
|
|
100552
|
+
styles: "justify-content:flex-start"
|
|
100553
|
+
} : 0);
|
|
100376
100554
|
var MobileDrawerLocaleButton = /*#__PURE__*/createStyled("button", true ? {
|
|
100377
100555
|
target: "e1607tyl0"
|
|
100378
100556
|
} : 0)("display:inline-flex;align-items:center;gap:0.5rem;margin:15px 18px;padding:7px;border:1px solid ", colors.border, ";border-radius:24px;background:transparent;font-size:0.875rem;color:", colors.text, ";cursor:pointer;justify-content:center;transition:all 0.15s ease;&:hover{background:rgba(0, 0, 0, 0.03);border-color:", colors.text, ";}svg{flex-shrink:0;color:", colors.muted, ";width:16px;height:16px;}" + ( true ? "" : 0));
|
|
100379
100557
|
// EXTERNAL MODULE: ./node_modules/@nuskin/foundation-ui-components/dist/index.js
|
|
100380
100558
|
var dist = __webpack_require__(4814);
|
|
100381
|
-
;// ./src/components/brand/Brand.styled.
|
|
100559
|
+
;// ./src/components/brand/Brand.styled.js
|
|
100382
100560
|
|
|
100383
100561
|
function Brand_styled_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
100384
100562
|
var BrandRoot = /*#__PURE__*/createStyled("div", true ? {
|
|
100385
|
-
target: "
|
|
100563
|
+
target: "e1tne4ou3"
|
|
100386
100564
|
} : 0)("display:flex;position:relative;", function (_ref) {
|
|
100387
100565
|
var isEditing = _ref.isEditing;
|
|
100388
100566
|
return isEditing && "\n & > * {\n pointer-events: none;\n }\n ";
|
|
100389
100567
|
}, ";" + ( true ? "" : 0));
|
|
100390
100568
|
var BrandLogoLink = /*#__PURE__*/createStyled("a", true ? {
|
|
100391
|
-
target: "
|
|
100569
|
+
target: "e1tne4ou2"
|
|
100392
100570
|
} : 0)( true ? {
|
|
100393
100571
|
name: "1puv40q",
|
|
100394
100572
|
styles: "display:inline-flex;align-items:center;line-height:0;text-decoration:none"
|
|
100395
100573
|
} : 0);
|
|
100396
100574
|
var ResponsiveBrandWrapper = /*#__PURE__*/createStyled("div", true ? {
|
|
100397
|
-
target: "
|
|
100575
|
+
target: "e1tne4ou1"
|
|
100398
100576
|
} : 0)("display:flex;align-items:center;", function (_ref2) {
|
|
100399
100577
|
var mobileWidth = _ref2.mobileWidth,
|
|
100400
100578
|
desktopWidth = _ref2.desktopWidth,
|
|
@@ -100403,7 +100581,7 @@ var ResponsiveBrandWrapper = /*#__PURE__*/createStyled("div", true ? {
|
|
|
100403
100581
|
return "\n width: ".concat(mobileWidth, ";\n height: ").concat(mobileHeight, ";\n\n & > * {\n width: 100%;\n height: 100%;\n }\n\n && img,\n && svg {\n height: 100%;\n width: 100%;\n max-height: 100%;\n max-width: 100%;\n object-fit: contain;\n }\n\n @media (min-width: 1024px) {\n width: ").concat(desktopWidth, ";\n height: ").concat(desktopHeight, ";\n }\n ");
|
|
100404
100582
|
}, ";" + ( true ? "" : 0));
|
|
100405
100583
|
var BrandLogoImg = /*#__PURE__*/createStyled("img", true ? {
|
|
100406
|
-
target: "
|
|
100584
|
+
target: "e1tne4ou0"
|
|
100407
100585
|
} : 0)( true ? {
|
|
100408
100586
|
name: "kmohbm",
|
|
100409
100587
|
styles: "display:block;width:auto;height:24px"
|
|
@@ -100442,6 +100620,19 @@ var CONTENTSTACK_API_KEY = process.env.CONTENTSTACK_API_KEY;
|
|
|
100442
100620
|
var CONTENTSTACK_DELIVERY_TOKEN = process.env.CONTENTSTACK_DELIVERY_TOKEN;
|
|
100443
100621
|
var CONTENTSTACK_ENVIRONMENT = process.env.CONTENTSTACK_ENVIRONMENT;
|
|
100444
100622
|
var CONTENTSTACK_PREVIEW_TOKEN = process.env.CONTENTSTACK_PREVIEW_TOKEN;
|
|
100623
|
+
var GTM_TRACKING_CONFIG = {
|
|
100624
|
+
loyalty: {
|
|
100625
|
+
componentName: "Loyalty",
|
|
100626
|
+
impressionEvent: "header_loyalty_impression",
|
|
100627
|
+
impressionElement: "Impression",
|
|
100628
|
+
impressionTriggerType: "Element Visibility",
|
|
100629
|
+
clickEvent: "vb_button_cta_click",
|
|
100630
|
+
clickElement: "CTA Click",
|
|
100631
|
+
clickTriggerType: "Click - Just Links",
|
|
100632
|
+
// Loyalty is always an anchor (`data-gtm-loyalty`); selector works for GTM delegation.
|
|
100633
|
+
clickSelector: "[data-gtm-loyalty]"
|
|
100634
|
+
}
|
|
100635
|
+
};
|
|
100445
100636
|
|
|
100446
100637
|
;// ./src/utils/contentstack.js
|
|
100447
100638
|
/* unused harmony import specifier */ var ContentstackLivePreview;
|
|
@@ -102419,6 +102610,12 @@ TopNavigation.defaultProps = {
|
|
|
102419
102610
|
translations: undefined
|
|
102420
102611
|
};
|
|
102421
102612
|
;// ./src/components/header/MobileHeaderDrawer.jsx
|
|
102613
|
+
function MobileHeaderDrawer_typeof(o) { "@babel/helpers - typeof"; return MobileHeaderDrawer_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; }, MobileHeaderDrawer_typeof(o); }
|
|
102614
|
+
function MobileHeaderDrawer_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
102615
|
+
function MobileHeaderDrawer_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? MobileHeaderDrawer_ownKeys(Object(t), !0).forEach(function (r) { MobileHeaderDrawer_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : MobileHeaderDrawer_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
102616
|
+
function MobileHeaderDrawer_defineProperty(e, r, t) { return (r = MobileHeaderDrawer_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
102617
|
+
function MobileHeaderDrawer_toPropertyKey(t) { var i = MobileHeaderDrawer_toPrimitive(t, "string"); return "symbol" == MobileHeaderDrawer_typeof(i) ? i : i + ""; }
|
|
102618
|
+
function MobileHeaderDrawer_toPrimitive(t, r) { if ("object" != MobileHeaderDrawer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != MobileHeaderDrawer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
102422
102619
|
|
|
102423
102620
|
|
|
102424
102621
|
|
|
@@ -102464,13 +102661,16 @@ function MobileHeaderDrawer(_ref) {
|
|
|
102464
102661
|
data: navigationData,
|
|
102465
102662
|
locale: locale
|
|
102466
102663
|
})
|
|
102467
|
-
}), (loyaltyData === null || loyaltyData === void 0 ? void 0 : loyaltyData.
|
|
102468
|
-
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(
|
|
102664
|
+
}), (loyaltyData === null || loyaltyData === void 0 ? void 0 : loyaltyData.label) && (loyaltyData === null || loyaltyData === void 0 ? void 0 : loyaltyData.url) && /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerNavItem, {
|
|
102665
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerNavLink, MobileHeaderDrawer_objectSpread(MobileHeaderDrawer_objectSpread({
|
|
102469
102666
|
as: "a",
|
|
102470
|
-
href: loyaltyData.
|
|
102471
|
-
|
|
102472
|
-
|
|
102473
|
-
|
|
102667
|
+
href: loyaltyData.url
|
|
102668
|
+
}, loyaltyData.open_in_new_tab ? {
|
|
102669
|
+
target: "_blank",
|
|
102670
|
+
rel: "noopener noreferrer"
|
|
102671
|
+
} : {}), {}, {
|
|
102672
|
+
children: loyaltyData.label
|
|
102673
|
+
}))
|
|
102474
102674
|
}), marketTriggerMountRef ? null : /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerNavItem, {
|
|
102475
102675
|
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileDrawerLocaleButton, {
|
|
102476
102676
|
children: [localeData.control_label, /*#__PURE__*/(0,jsx_runtime_.jsx)(IconChevronDown, {})]
|
|
@@ -102506,19 +102706,26 @@ function HeaderLoyaltyRegion_toPrimitive(t, r) { if ("object" != HeaderLoyaltyRe
|
|
|
102506
102706
|
function HeaderLoyaltyRegion(_ref) {
|
|
102507
102707
|
var _data$$;
|
|
102508
102708
|
var data = _ref.data;
|
|
102509
|
-
|
|
102510
|
-
|
|
102511
|
-
|
|
102512
|
-
|
|
102513
|
-
|
|
102709
|
+
var url = data === null || data === void 0 ? void 0 : data.url;
|
|
102710
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(LoyaltyUtilityLink, HeaderLoyaltyRegion_objectSpread(HeaderLoyaltyRegion_objectSpread({
|
|
102711
|
+
"data-gtm-loyalty": true,
|
|
102712
|
+
href: url
|
|
102713
|
+
}, data !== null && data !== void 0 && data.open_in_new_tab ? {
|
|
102714
|
+
target: "_blank",
|
|
102715
|
+
rel: "noopener noreferrer"
|
|
102716
|
+
} : {}), {}, {
|
|
102717
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(LoyaltyPillInner, HeaderLoyaltyRegion_objectSpread(HeaderLoyaltyRegion_objectSpread({}, data === null || data === void 0 || (_data$$ = data.$) === null || _data$$ === void 0 ? void 0 : _data$$.label), {}, {
|
|
102718
|
+
children: data === null || data === void 0 ? void 0 : data.label
|
|
102719
|
+
}))
|
|
102514
102720
|
}));
|
|
102515
102721
|
}
|
|
102516
102722
|
HeaderLoyaltyRegion.propTypes = {
|
|
102517
102723
|
data: external_prop_types_["default"].shape({
|
|
102518
|
-
label: external_prop_types_["default"].string
|
|
102519
|
-
url: external_prop_types_["default"].string,
|
|
102724
|
+
label: external_prop_types_["default"].string,
|
|
102725
|
+
url: external_prop_types_["default"].string.isRequired,
|
|
102726
|
+
open_in_new_tab: external_prop_types_["default"].bool,
|
|
102520
102727
|
$: external_prop_types_["default"].object
|
|
102521
|
-
})
|
|
102728
|
+
})
|
|
102522
102729
|
};
|
|
102523
102730
|
;// ./src/components/signup-signin/SignUpOrSignIn.helpers.js
|
|
102524
102731
|
var DEFAULT_SIGN_UP = {
|
|
@@ -103022,10 +103229,10 @@ HeaderAccountRegion.propTypes = {
|
|
|
103022
103229
|
sign_in_url: external_prop_types_["default"].object
|
|
103023
103230
|
})
|
|
103024
103231
|
};
|
|
103025
|
-
;// ./src/components/cart/Cart.styled.
|
|
103232
|
+
;// ./src/components/cart/Cart.styled.js
|
|
103026
103233
|
|
|
103027
103234
|
var CartIconWrapper = /*#__PURE__*/createStyled("div", true ? {
|
|
103028
|
-
target: "
|
|
103235
|
+
target: "e1157io20"
|
|
103029
103236
|
} : 0)("display:flex;align-items:center;position:relative;background:none;border:none;padding:0;font:inherit;", function (_ref) {
|
|
103030
103237
|
var isEditing = _ref.isEditing;
|
|
103031
103238
|
return isEditing && "\n & > * {\n pointer-events: none;\n }\n ";
|
|
@@ -103038,6 +103245,7 @@ var DEFAULT_ITEM_COUNT = 0;
|
|
|
103038
103245
|
var DEFAULT_ARIA_LABEL = "Shopping cart";
|
|
103039
103246
|
var DEFAULT_SHOW_CART_ICON = true;
|
|
103040
103247
|
var DEFAULT_SHOW_CART_COUNT = true;
|
|
103248
|
+
var MOBILE_BREAKPOINT = 768;
|
|
103041
103249
|
// EXTERNAL MODULE: ./node_modules/pubsub-js/src/pubsub.js
|
|
103042
103250
|
var pubsub = __webpack_require__(3224);
|
|
103043
103251
|
var pubsub_default = /*#__PURE__*/__webpack_require__.n(pubsub);
|
|
@@ -103084,7 +103292,9 @@ var PUBSUB = {
|
|
|
103084
103292
|
// [RESERVED] For future auth/logout flows
|
|
103085
103293
|
SIGN_OUT: 'SignOut',
|
|
103086
103294
|
// [RESERVED] For cross-MFE navigation
|
|
103087
|
-
INTERNAL_ROUTING: 'InternalRouting'
|
|
103295
|
+
INTERNAL_ROUTING: 'InternalRouting',
|
|
103296
|
+
// [ACTIVE] Header MFE publishes when cart clicked from checkout page
|
|
103297
|
+
NAVIGATE_TO_VIEW_CART: 'NavigateToViewCart'
|
|
103088
103298
|
};
|
|
103089
103299
|
;// ./src/components/cart/Cart.jsx
|
|
103090
103300
|
function Cart_typeof(o) { "@babel/helpers - typeof"; return Cart_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; }, Cart_typeof(o); }
|
|
@@ -103136,6 +103346,27 @@ function Cart(_ref) {
|
|
|
103136
103346
|
if (editing) {
|
|
103137
103347
|
return;
|
|
103138
103348
|
}
|
|
103349
|
+
if (typeof window !== 'undefined') {
|
|
103350
|
+
var pathname = window.location.pathname;
|
|
103351
|
+
var isMobile = window.innerWidth < MOBILE_BREAKPOINT;
|
|
103352
|
+
var isViewCartPage = pathname.includes('/viewCart');
|
|
103353
|
+
var isCheckoutPage = pathname.includes('/checkout') || pathname.includes('/expressCheckout') || pathname.includes('/subscriptionCheckout');
|
|
103354
|
+
if (isViewCartPage) {
|
|
103355
|
+
return;
|
|
103356
|
+
}
|
|
103357
|
+
if (isMobile) {
|
|
103358
|
+
publish(PUBSUB.NAVIGATE_TO_VIEW_CART, {
|
|
103359
|
+
fromMobile: true
|
|
103360
|
+
});
|
|
103361
|
+
return;
|
|
103362
|
+
}
|
|
103363
|
+
if (isCheckoutPage) {
|
|
103364
|
+
publish(PUBSUB.NAVIGATE_TO_VIEW_CART, {
|
|
103365
|
+
fromCheckout: true
|
|
103366
|
+
});
|
|
103367
|
+
return;
|
|
103368
|
+
}
|
|
103369
|
+
}
|
|
103139
103370
|
publish(PUBSUB.TOGGLE_MINI_CART, {
|
|
103140
103371
|
isVisible: true
|
|
103141
103372
|
});
|
|
@@ -106058,7 +106289,7 @@ CancelButton.propTypes = {
|
|
|
106058
106289
|
showIcon: external_prop_types_["default"].bool,
|
|
106059
106290
|
parent$: external_prop_types_["default"].object
|
|
106060
106291
|
};
|
|
106061
|
-
;// ./src/components/modal/SearchModal.styled.
|
|
106292
|
+
;// ./src/components/modal/SearchModal.styled.js
|
|
106062
106293
|
|
|
106063
106294
|
function SearchModal_styled_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
106064
106295
|
var SearchModal_styled_colors = {
|
|
@@ -106068,61 +106299,61 @@ var SearchModal_styled_colors = {
|
|
|
106068
106299
|
muted: "#6b7280"
|
|
106069
106300
|
};
|
|
106070
106301
|
var MobileSearchButton = /*#__PURE__*/createStyled("button", true ? {
|
|
106071
|
-
target: "
|
|
106302
|
+
target: "ehota0013"
|
|
106072
106303
|
} : 0)( true ? {
|
|
106073
106304
|
name: "1ff2nft",
|
|
106074
106305
|
styles: "display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:none;border:none;padding:0;cursor:pointer;color:inherit;svg{width:24px;height:24px;}@media (min-width: 1024px){display:none;}"
|
|
106075
106306
|
} : 0);
|
|
106076
106307
|
var DesktopSearchWrapper = /*#__PURE__*/createStyled("button", true ? {
|
|
106077
|
-
target: "
|
|
106308
|
+
target: "ehota0012"
|
|
106078
106309
|
} : 0)("display:none;align-items:center;width:100%;border:1px solid ", SearchModal_styled_colors.border, ";border-radius:999px;background:", SearchModal_styled_colors.surface, ";min-height:46px;margin-left:auto;padding:0 5px 0 3px;box-sizing:border-box;overflow:hidden;&:focus{outline:none;}&:focus-visible{outline:2px solid currentColor;outline-offset:-2px;border-radius:999px;}@media (min-width: 1024px){display:flex;width:", function (_ref) {
|
|
106079
106310
|
var $sizeVariant = _ref.$sizeVariant;
|
|
106080
106311
|
return $sizeVariant === "full" ? "100%" : "min(100%, 320px)";
|
|
106081
106312
|
}, ";cursor:pointer;transition:background-color 0.15s ease,border-color 0.15s ease,box-shadow 0.15s ease;min-height:32px;&:hover{background:#f3f4f6;}&:hover>[data-testid=\"search-trigger-input\"]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;}&:focus-visible{border-color:", SearchModal_styled_colors.muted, ";box-shadow:0 0 0 1px rgba(17, 24, 39, 0.08);}}" + ( true ? "" : 0));
|
|
106082
106313
|
var DesktopTriggerInput = /*#__PURE__*/createStyled("span", true ? {
|
|
106083
|
-
target: "
|
|
106314
|
+
target: "ehota0011"
|
|
106084
106315
|
} : 0)("flex:1;min-width:0;padding:8px 0;font-size:16px;line-height:22px;color:", SearchModal_styled_colors.muted, ";cursor:pointer;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" + ( true ? "" : 0));
|
|
106085
106316
|
var DesktopTriggerSparkleSlot = /*#__PURE__*/createStyled("span", true ? {
|
|
106086
|
-
target: "
|
|
106317
|
+
target: "ehota0010"
|
|
106087
106318
|
} : 0)( true ? {
|
|
106088
106319
|
name: "q79a68",
|
|
106089
106320
|
styles: "flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 8px 0 4px;svg,img{width:18px;height:26px;object-fit:contain;display:block;}"
|
|
106090
106321
|
} : 0);
|
|
106091
106322
|
var DesktopTriggerIconButton = /*#__PURE__*/createStyled("span", true ? {
|
|
106092
|
-
target: "
|
|
106323
|
+
target: "ehota009"
|
|
106093
106324
|
} : 0)( true ? {
|
|
106094
106325
|
name: "1oufgfl",
|
|
106095
106326
|
styles: "flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 5px 0 16px;padding:0;color:#64686f;svg,img{width:22px;height:22px;object-fit:contain;}"
|
|
106096
106327
|
} : 0);
|
|
106097
106328
|
var ModalOverlay = /*#__PURE__*/createStyled("div", true ? {
|
|
106098
|
-
target: "
|
|
106329
|
+
target: "ehota008"
|
|
106099
106330
|
} : 0)( true ? {
|
|
106100
106331
|
name: "15ant65",
|
|
106101
106332
|
styles: "position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:stretch;overflow:hidden"
|
|
106102
106333
|
} : 0);
|
|
106103
106334
|
var ModalPanel = /*#__PURE__*/createStyled("dialog", true ? {
|
|
106104
|
-
target: "
|
|
106335
|
+
target: "ehota007"
|
|
106105
106336
|
} : 0)("box-sizing:border-box;background:", SearchModal_styled_colors.surface, ";width:100%;flex:1;min-height:100%;padding:12px 16px;display:flex;flex-direction:column;gap:30px;box-shadow:0 4px 24px rgba(0, 0, 0, 0.08);border:none;margin:0;max-width:none;max-height:none;@media (max-width: 767px){padding:30px 0;}@media (min-width: 768px) and (max-width: 1023px){padding:30px 0 35px;}@media (min-width: 1024px){flex:0 0 auto;min-height:unset;padding:20px clamp(12px, 4vw, 32px) 45px;}" + ( true ? "" : 0));
|
|
106106
106337
|
var ModalTopBar = /*#__PURE__*/createStyled("div", true ? {
|
|
106107
|
-
target: "
|
|
106338
|
+
target: "ehota006"
|
|
106108
106339
|
} : 0)( true ? {
|
|
106109
106340
|
name: "19ii5hn",
|
|
106110
106341
|
styles: "display:none;align-items:center;justify-content:space-between;width:100%;@media (min-width: 1024px){display:flex;}"
|
|
106111
106342
|
} : 0);
|
|
106112
106343
|
var SearchModal_styled_LogoSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
106113
|
-
target: "
|
|
106344
|
+
target: "ehota005"
|
|
106114
106345
|
} : 0)( true ? {
|
|
106115
106346
|
name: "ou8xsw",
|
|
106116
106347
|
styles: "flex:0 0 auto"
|
|
106117
106348
|
} : 0);
|
|
106118
106349
|
var SearchRow = /*#__PURE__*/createStyled("div", true ? {
|
|
106119
|
-
target: "
|
|
106350
|
+
target: "ehota004"
|
|
106120
106351
|
} : 0)( true ? {
|
|
106121
106352
|
name: "vg66lk",
|
|
106122
106353
|
styles: "display:flex;align-items:flex-start;gap:12px;width:100%;@media (max-width: 1023px){align-items:center;}"
|
|
106123
106354
|
} : 0);
|
|
106124
106355
|
var MobileCancelSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
106125
|
-
target: "
|
|
106356
|
+
target: "ehota003"
|
|
106126
106357
|
} : 0)( true ? {
|
|
106127
106358
|
name: "kob85u",
|
|
106128
106359
|
styles: "flex-shrink:0;display:flex;align-items:center;@media (min-width: 1024px){display:none;}"
|
|
@@ -106130,19 +106361,19 @@ var MobileCancelSlot = /*#__PURE__*/createStyled("div", true ? {
|
|
|
106130
106361
|
|
|
106131
106362
|
/** Wraps the fallback search form so Cancel stays on the same row as the input (mobile). */
|
|
106132
106363
|
var SearchFormGrow = /*#__PURE__*/createStyled("div", true ? {
|
|
106133
|
-
target: "
|
|
106364
|
+
target: "ehota002"
|
|
106134
106365
|
} : 0)( true ? {
|
|
106135
106366
|
name: "fxp7t8",
|
|
106136
106367
|
styles: "flex:1;min-width:0"
|
|
106137
106368
|
} : 0);
|
|
106138
106369
|
var AutoCompleteWrapper = /*#__PURE__*/createStyled("div", true ? {
|
|
106139
|
-
target: "
|
|
106370
|
+
target: "ehota001"
|
|
106140
106371
|
} : 0)( true ? {
|
|
106141
106372
|
name: "1g4wbcn",
|
|
106142
106373
|
styles: "width:100%;min-width:0;@media (min-width: 1024px){max-width:860px;margin:0 auto;}ul li span{white-space:normal;word-break:break-word;overflow-wrap:anywhere;min-width:0;}form:hover input::placeholder,form:hover [data-testid=\"autocomplete-rotating-placeholder\"]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;}form:focus-within input,form:focus-within input::placeholder{text-decoration:none;}form:focus-within [data-testid=\"autocomplete-rotating-placeholder\"]{text-decoration:none;}"
|
|
106143
106374
|
} : 0);
|
|
106144
106375
|
var SearchForm = /*#__PURE__*/createStyled("form", true ? {
|
|
106145
|
-
target: "
|
|
106376
|
+
target: "ehota000"
|
|
106146
106377
|
} : 0)( true ? {
|
|
106147
106378
|
name: "1lnhxsx",
|
|
106148
106379
|
styles: "box-sizing:border-box;width:100%;min-width:0;@media (min-width: 1024px){max-width:860px;margin:0 auto;}& div:focus-within [data-placeholder=\"true\"],& div:focus-within input{text-decoration:none;}& div:hover [data-placeholder=\"true\"],& div:hover input{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;}"
|
|
@@ -107335,14 +107566,271 @@ HeaderNavigationRegion.propTypes = {
|
|
|
107335
107566
|
locale: external_prop_types_["default"].string,
|
|
107336
107567
|
translations: external_prop_types_["default"].object
|
|
107337
107568
|
};
|
|
107569
|
+
// EXTERNAL MODULE: ./node_modules/react-gtm-module/dist/index.js
|
|
107570
|
+
var react_gtm_module_dist = __webpack_require__(1003);
|
|
107571
|
+
;// ./src/utils/datalayer.js
|
|
107572
|
+
function datalayer_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
107573
|
+
function datalayer_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? datalayer_ownKeys(Object(t), !0).forEach(function (r) { datalayer_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : datalayer_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
107574
|
+
function datalayer_defineProperty(e, r, t) { return (r = datalayer_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
107575
|
+
function datalayer_toPropertyKey(t) { var i = datalayer_toPrimitive(t, "string"); return "symbol" == datalayer_typeof(i) ? i : i + ""; }
|
|
107576
|
+
function datalayer_toPrimitive(t, r) { if ("object" != datalayer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != datalayer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
107577
|
+
function datalayer_typeof(o) { "@babel/helpers - typeof"; return datalayer_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; }, datalayer_typeof(o); }
|
|
107578
|
+
|
|
107579
|
+
var gtmInitialized = false;
|
|
107580
|
+
|
|
107581
|
+
/** Resets init guard — for unit tests only */
|
|
107582
|
+
function resetGtmInitForTesting() {
|
|
107583
|
+
gtmInitialized = false;
|
|
107584
|
+
}
|
|
107585
|
+
var initDataLayer = function initDataLayer() {
|
|
107586
|
+
if ((typeof window === "undefined" ? "undefined" : datalayer_typeof(window)) !== "object") return;
|
|
107587
|
+
var gtmId = process.env.REACT_APP_GTM_KEY;
|
|
107588
|
+
if (!gtmId || gtmInitialized) return;
|
|
107589
|
+
try {
|
|
107590
|
+
var gtmArgs = {
|
|
107591
|
+
gtmId: gtmId
|
|
107592
|
+
};
|
|
107593
|
+
react_gtm_module_dist.initialize(gtmArgs);
|
|
107594
|
+
gtmInitialized = true;
|
|
107595
|
+
} catch (error) {
|
|
107596
|
+
console.error("Error initializing GTM:", error);
|
|
107597
|
+
}
|
|
107598
|
+
};
|
|
107599
|
+
var pushDataLayerEvent = function pushDataLayerEvent() {
|
|
107600
|
+
var eventData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
107601
|
+
if ((typeof window === "undefined" ? "undefined" : datalayer_typeof(window)) !== "object") return;
|
|
107602
|
+
initDataLayer();
|
|
107603
|
+
var dataToTrack = datalayer_objectSpread({}, eventData);
|
|
107604
|
+
react_gtm_module_dist.dataLayer({
|
|
107605
|
+
dataLayer: dataToTrack
|
|
107606
|
+
});
|
|
107607
|
+
};
|
|
107608
|
+
var getDataLayer = function getDataLayer() {
|
|
107609
|
+
return [];
|
|
107610
|
+
};
|
|
107611
|
+
;// ./src/utils/eventFactory.js
|
|
107612
|
+
function eventFactory_typeof(o) { "@babel/helpers - typeof"; return eventFactory_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; }, eventFactory_typeof(o); }
|
|
107613
|
+
var eventFactory_excluded = ["component_name", "event", "event_action", "element", "trigger_type"];
|
|
107614
|
+
function eventFactory_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
107615
|
+
function eventFactory_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? eventFactory_ownKeys(Object(t), !0).forEach(function (r) { eventFactory_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : eventFactory_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
107616
|
+
function eventFactory_defineProperty(e, r, t) { return (r = eventFactory_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
107617
|
+
function eventFactory_toPropertyKey(t) { var i = eventFactory_toPrimitive(t, "string"); return "symbol" == eventFactory_typeof(i) ? i : i + ""; }
|
|
107618
|
+
function eventFactory_toPrimitive(t, r) { if ("object" != eventFactory_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != eventFactory_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
107619
|
+
function eventFactory_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = eventFactory_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
107620
|
+
function eventFactory_objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
107621
|
+
|
|
107622
|
+
var VB_EVENT_CONFIG = {
|
|
107623
|
+
view: {
|
|
107624
|
+
element: "Impression",
|
|
107625
|
+
trigger_type: "Element Visibility",
|
|
107626
|
+
event_category: "engagement"
|
|
107627
|
+
},
|
|
107628
|
+
click: {
|
|
107629
|
+
element: "CTA Click",
|
|
107630
|
+
trigger_type: "Click",
|
|
107631
|
+
event_category: "engagement"
|
|
107632
|
+
},
|
|
107633
|
+
navigate: {
|
|
107634
|
+
element: "Navigation",
|
|
107635
|
+
trigger_type: "Click",
|
|
107636
|
+
event_category: "engagement"
|
|
107637
|
+
}
|
|
107638
|
+
};
|
|
107639
|
+
var trackVisualBuilderEvent = function trackVisualBuilderEvent(_ref) {
|
|
107640
|
+
var component_name = _ref.component_name,
|
|
107641
|
+
event = _ref.event,
|
|
107642
|
+
event_action = _ref.event_action,
|
|
107643
|
+
element = _ref.element,
|
|
107644
|
+
trigger_type = _ref.trigger_type,
|
|
107645
|
+
customFields = eventFactory_objectWithoutProperties(_ref, eventFactory_excluded);
|
|
107646
|
+
var config = VB_EVENT_CONFIG[event_action] || VB_EVENT_CONFIG.view;
|
|
107647
|
+
var eventList = eventFactory_objectSpread({
|
|
107648
|
+
component_name: component_name,
|
|
107649
|
+
element: element || config.element,
|
|
107650
|
+
trigger_type: trigger_type || config.trigger_type,
|
|
107651
|
+
event: event,
|
|
107652
|
+
event_category: config.event_category,
|
|
107653
|
+
event_action: event_action
|
|
107654
|
+
}, customFields);
|
|
107655
|
+
pushDataLayerEvent(eventList);
|
|
107656
|
+
return eventList;
|
|
107657
|
+
};
|
|
107658
|
+
;// ./src/components/gtm-tracker/GTMTracker.styled.js
|
|
107659
|
+
|
|
107660
|
+
function GTMTracker_styled_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
107661
|
+
var GTMTrackerRoot = /*#__PURE__*/createStyled("div", true ? {
|
|
107662
|
+
target: "e191ba190"
|
|
107663
|
+
} : 0)( true ? {
|
|
107664
|
+
name: "13udsys",
|
|
107665
|
+
styles: "height:100%"
|
|
107666
|
+
} : 0);
|
|
107667
|
+
;// ./src/components/gtm-tracker/GTMTracker.jsx
|
|
107668
|
+
function GTMTracker_typeof(o) { "@babel/helpers - typeof"; return GTMTracker_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; }, GTMTracker_typeof(o); }
|
|
107669
|
+
function GTMTracker_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
107670
|
+
function GTMTracker_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? GTMTracker_ownKeys(Object(t), !0).forEach(function (r) { GTMTracker_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : GTMTracker_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
107671
|
+
function GTMTracker_defineProperty(e, r, t) { return (r = GTMTracker_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
107672
|
+
function GTMTracker_toPropertyKey(t) { var i = GTMTracker_toPrimitive(t, "string"); return "symbol" == GTMTracker_typeof(i) ? i : i + ""; }
|
|
107673
|
+
function GTMTracker_toPrimitive(t, r) { if ("object" != GTMTracker_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != GTMTracker_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
107674
|
+
|
|
107675
|
+
|
|
107676
|
+
|
|
107677
|
+
|
|
107678
|
+
|
|
107679
|
+
var isServer = typeof window === "undefined";
|
|
107680
|
+
|
|
107681
|
+
/** Stable reference — default `customFields = {}` in params creates a new object every render. */
|
|
107682
|
+
var EMPTY_CUSTOM_FIELDS = {};
|
|
107683
|
+
function pageNameFromPathname(pathname) {
|
|
107684
|
+
var parts = String(pathname || "").split("/").filter(Boolean);
|
|
107685
|
+
if (parts.length <= 2) {
|
|
107686
|
+
return "";
|
|
107687
|
+
}
|
|
107688
|
+
return parts.slice(2).join("/");
|
|
107689
|
+
}
|
|
107690
|
+
var GTMTracker = function GTMTracker(_ref) {
|
|
107691
|
+
var componentName = _ref.componentName,
|
|
107692
|
+
impressionEvent = _ref.impressionEvent,
|
|
107693
|
+
impressionElement = _ref.impressionElement,
|
|
107694
|
+
impressionTriggerType = _ref.impressionTriggerType,
|
|
107695
|
+
clickEvent = _ref.clickEvent,
|
|
107696
|
+
clickElement = _ref.clickElement,
|
|
107697
|
+
clickTriggerType = _ref.clickTriggerType,
|
|
107698
|
+
_ref$clickSelector = _ref.clickSelector,
|
|
107699
|
+
clickSelector = _ref$clickSelector === void 0 ? "a" : _ref$clickSelector,
|
|
107700
|
+
_ref$clickEventAction = _ref.clickEventAction,
|
|
107701
|
+
clickEventAction = _ref$clickEventAction === void 0 ? "click" : _ref$clickEventAction,
|
|
107702
|
+
customFields = _ref.customFields,
|
|
107703
|
+
children = _ref.children;
|
|
107704
|
+
// On the server, just render children — tracking is client-only.
|
|
107705
|
+
if (isServer) {
|
|
107706
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(GTMTrackerRoot, {
|
|
107707
|
+
children: children
|
|
107708
|
+
});
|
|
107709
|
+
}
|
|
107710
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(GTMTrackerClient, {
|
|
107711
|
+
componentName: componentName,
|
|
107712
|
+
impressionEvent: impressionEvent,
|
|
107713
|
+
impressionElement: impressionElement,
|
|
107714
|
+
impressionTriggerType: impressionTriggerType,
|
|
107715
|
+
clickEvent: clickEvent,
|
|
107716
|
+
clickElement: clickElement,
|
|
107717
|
+
clickTriggerType: clickTriggerType,
|
|
107718
|
+
clickSelector: clickSelector,
|
|
107719
|
+
clickEventAction: clickEventAction,
|
|
107720
|
+
customFields: customFields !== null && customFields !== void 0 ? customFields : EMPTY_CUSTOM_FIELDS,
|
|
107721
|
+
children: children
|
|
107722
|
+
});
|
|
107723
|
+
};
|
|
107724
|
+
|
|
107725
|
+
// Client-only component with hooks (useRef, useEffect, useLocation)
|
|
107726
|
+
function GTMTrackerClient(_ref2) {
|
|
107727
|
+
var componentName = _ref2.componentName,
|
|
107728
|
+
impressionEvent = _ref2.impressionEvent,
|
|
107729
|
+
impressionElement = _ref2.impressionElement,
|
|
107730
|
+
impressionTriggerType = _ref2.impressionTriggerType,
|
|
107731
|
+
clickEvent = _ref2.clickEvent,
|
|
107732
|
+
clickElement = _ref2.clickElement,
|
|
107733
|
+
clickTriggerType = _ref2.clickTriggerType,
|
|
107734
|
+
clickSelector = _ref2.clickSelector,
|
|
107735
|
+
clickEventAction = _ref2.clickEventAction,
|
|
107736
|
+
customFields = _ref2.customFields,
|
|
107737
|
+
children = _ref2.children;
|
|
107738
|
+
var componentRef = (0,external_react_.useRef)(null);
|
|
107739
|
+
var impressionTrackedRef = (0,external_react_.useRef)(false);
|
|
107740
|
+
var pageName = pageNameFromPathname(typeof window !== "undefined" ? window.location.pathname : "");
|
|
107741
|
+
(0,external_react_.useEffect)(function () {
|
|
107742
|
+
if (!impressionEvent) return;
|
|
107743
|
+
var observer = new IntersectionObserver(function (entries) {
|
|
107744
|
+
entries.forEach(function (entry) {
|
|
107745
|
+
if (entry.isIntersecting && !impressionTrackedRef.current) {
|
|
107746
|
+
impressionTrackedRef.current = true;
|
|
107747
|
+
trackVisualBuilderEvent(GTMTracker_objectSpread(GTMTracker_objectSpread(GTMTracker_objectSpread({
|
|
107748
|
+
component_name: componentName,
|
|
107749
|
+
event: impressionEvent,
|
|
107750
|
+
event_action: "view",
|
|
107751
|
+
page_name: pageName
|
|
107752
|
+
}, impressionElement && {
|
|
107753
|
+
element: impressionElement
|
|
107754
|
+
}), impressionTriggerType && {
|
|
107755
|
+
trigger_type: impressionTriggerType
|
|
107756
|
+
}), customFields));
|
|
107757
|
+
}
|
|
107758
|
+
});
|
|
107759
|
+
}, {
|
|
107760
|
+
threshold: 0.1
|
|
107761
|
+
});
|
|
107762
|
+
var el = componentRef.current;
|
|
107763
|
+
if (el) {
|
|
107764
|
+
observer.observe(el);
|
|
107765
|
+
}
|
|
107766
|
+
return function () {
|
|
107767
|
+
if (el) {
|
|
107768
|
+
observer.unobserve(el);
|
|
107769
|
+
}
|
|
107770
|
+
};
|
|
107771
|
+
}, [componentName, impressionEvent, customFields, pageName, impressionElement, impressionTriggerType]);
|
|
107772
|
+
(0,external_react_.useEffect)(function () {
|
|
107773
|
+
if (!clickEvent) return;
|
|
107774
|
+
var el = componentRef.current;
|
|
107775
|
+
if (!el) return;
|
|
107776
|
+
var handleClick = function handleClick(e) {
|
|
107777
|
+
var target = e.target.closest(clickSelector);
|
|
107778
|
+
if (target) {
|
|
107779
|
+
trackVisualBuilderEvent(GTMTracker_objectSpread(GTMTracker_objectSpread(GTMTracker_objectSpread({
|
|
107780
|
+
component_name: componentName,
|
|
107781
|
+
event: clickEvent,
|
|
107782
|
+
event_action: clickEventAction,
|
|
107783
|
+
page_name: pageName
|
|
107784
|
+
}, clickElement && {
|
|
107785
|
+
element: clickElement
|
|
107786
|
+
}), clickTriggerType && {
|
|
107787
|
+
trigger_type: clickTriggerType
|
|
107788
|
+
}), customFields));
|
|
107789
|
+
}
|
|
107790
|
+
};
|
|
107791
|
+
el.addEventListener("click", handleClick, true);
|
|
107792
|
+
return function () {
|
|
107793
|
+
return el.removeEventListener("click", handleClick, true);
|
|
107794
|
+
};
|
|
107795
|
+
}, [componentName, clickEvent, clickElement, clickTriggerType, clickSelector, clickEventAction, customFields, pageName]);
|
|
107796
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(GTMTrackerRoot, {
|
|
107797
|
+
ref: componentRef,
|
|
107798
|
+
children: children
|
|
107799
|
+
});
|
|
107800
|
+
}
|
|
107801
|
+
GTMTracker.propTypes = {
|
|
107802
|
+
componentName: external_prop_types_["default"].string.isRequired,
|
|
107803
|
+
impressionEvent: external_prop_types_["default"].string,
|
|
107804
|
+
impressionElement: external_prop_types_["default"].string,
|
|
107805
|
+
impressionTriggerType: external_prop_types_["default"].string,
|
|
107806
|
+
clickEvent: external_prop_types_["default"].string,
|
|
107807
|
+
clickElement: external_prop_types_["default"].string,
|
|
107808
|
+
clickTriggerType: external_prop_types_["default"].string,
|
|
107809
|
+
clickSelector: external_prop_types_["default"].string,
|
|
107810
|
+
clickEventAction: external_prop_types_["default"].string,
|
|
107811
|
+
customFields: external_prop_types_["default"].object,
|
|
107812
|
+
children: external_prop_types_["default"].node.isRequired
|
|
107813
|
+
};
|
|
107814
|
+
GTMTrackerClient.propTypes = GTMTracker.propTypes;
|
|
107815
|
+
/* harmony default export */ const gtm_tracker_GTMTracker = (GTMTracker);
|
|
107338
107816
|
;// ./src/utils/common.js
|
|
107817
|
+
function common_typeof(o) { "@babel/helpers - typeof"; return common_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; }, common_typeof(o); }
|
|
107818
|
+
function common_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
107819
|
+
function common_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? common_ownKeys(Object(t), !0).forEach(function (r) { common_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : common_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
107820
|
+
function common_defineProperty(e, r, t) { return (r = common_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
107821
|
+
function common_toPropertyKey(t) { var i = common_toPrimitive(t, "string"); return "symbol" == common_typeof(i) ? i : i + ""; }
|
|
107822
|
+
function common_toPrimitive(t, r) { if ("object" != common_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != common_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
107339
107823
|
function common_slicedToArray(r, e) { return common_arrayWithHoles(r) || common_iterableToArrayLimit(r, e) || common_unsupportedIterableToArray(r, e) || common_nonIterableRest(); }
|
|
107340
107824
|
function common_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
107341
107825
|
function common_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return common_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? common_arrayLikeToArray(r, a) : void 0; } }
|
|
107342
107826
|
function common_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
107343
107827
|
function common_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
107344
107828
|
function common_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
107345
|
-
|
|
107829
|
+
|
|
107830
|
+
|
|
107831
|
+
|
|
107832
|
+
|
|
107833
|
+
var common_isServer = typeof window === "undefined";
|
|
107346
107834
|
var hasLocalePrefix = function hasLocalePrefix(path) {
|
|
107347
107835
|
return /^\/[a-z]{2}\/[a-z]{2}(\/|$)/i.test(path);
|
|
107348
107836
|
};
|
|
@@ -107485,6 +107973,17 @@ var convertToLocalizedUrl = function convertToLocalizedUrl(inputUrl) {
|
|
|
107485
107973
|
localizedBase: localizedBase
|
|
107486
107974
|
});
|
|
107487
107975
|
};
|
|
107976
|
+
var withTracking = function withTracking(component) {
|
|
107977
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
107978
|
+
var componentType = options.componentType;
|
|
107979
|
+
var trackingConfig = GTM_TRACKING_CONFIG[componentType];
|
|
107980
|
+
if (!trackingConfig) {
|
|
107981
|
+
return component;
|
|
107982
|
+
}
|
|
107983
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(gtm_tracker_GTMTracker, common_objectSpread(common_objectSpread({}, trackingConfig), {}, {
|
|
107984
|
+
children: component
|
|
107985
|
+
}));
|
|
107986
|
+
};
|
|
107488
107987
|
;// ./src/components/top-ribbon/types.js
|
|
107489
107988
|
|
|
107490
107989
|
var NavigationLinkPropTypes = external_prop_types_["default"].shape({
|
|
@@ -110145,6 +110644,7 @@ function HeaderView_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
110145
110644
|
|
|
110146
110645
|
|
|
110147
110646
|
|
|
110647
|
+
|
|
110148
110648
|
var DEFAULT_LOGO = {
|
|
110149
110649
|
wordmark: "NU SKIN",
|
|
110150
110650
|
home_href: "/",
|
|
@@ -110161,10 +110661,6 @@ var DEFAULT_MARKET_SELECTOR = {
|
|
|
110161
110661
|
cancel_text: "Cancel",
|
|
110162
110662
|
control_label: DEFAULT_LOCALE.control_label
|
|
110163
110663
|
};
|
|
110164
|
-
var DEFAULT_LOYALTY = {
|
|
110165
|
-
link_label: "Nu Skin Rewards",
|
|
110166
|
-
href: "/rewards"
|
|
110167
|
-
};
|
|
110168
110664
|
var DEFAULT_ACCOUNT = {
|
|
110169
110665
|
show: true,
|
|
110170
110666
|
icon: "userOutline",
|
|
@@ -110178,6 +110674,12 @@ var DEFAULT_ACCOUNT = {
|
|
|
110178
110674
|
url: ""
|
|
110179
110675
|
}
|
|
110180
110676
|
};
|
|
110677
|
+
var DEFAULT_LOYALTY = {
|
|
110678
|
+
label: "Nu Skin Rewards",
|
|
110679
|
+
url: "/rewards",
|
|
110680
|
+
open_in_new_tab: true,
|
|
110681
|
+
show: true
|
|
110682
|
+
};
|
|
110181
110683
|
var DEFAULT_CART = {
|
|
110182
110684
|
aria_label: "Shopping cart",
|
|
110183
110685
|
count: 0
|
|
@@ -110258,14 +110760,27 @@ function buildAccountParentTags(_ref2) {
|
|
|
110258
110760
|
sign_in_url: pickTag("sign_in_url")
|
|
110259
110761
|
};
|
|
110260
110762
|
}
|
|
110261
|
-
function
|
|
110262
|
-
var
|
|
110263
|
-
var
|
|
110264
|
-
|
|
110265
|
-
|
|
110266
|
-
|
|
110267
|
-
|
|
110268
|
-
|
|
110763
|
+
function LoyaltyComponent(_ref3) {
|
|
110764
|
+
var data = _ref3.data;
|
|
110765
|
+
var show = normalizeShowFlag(data === null || data === void 0 ? void 0 : data.show, true);
|
|
110766
|
+
if (!show) return null;
|
|
110767
|
+
return withTracking(/*#__PURE__*/(0,jsx_runtime_.jsx)(HeaderLoyaltyRegion, {
|
|
110768
|
+
data: data
|
|
110769
|
+
}), {
|
|
110770
|
+
componentType: "loyalty"
|
|
110771
|
+
});
|
|
110772
|
+
}
|
|
110773
|
+
LoyaltyComponent.propTypes = {
|
|
110774
|
+
data: external_prop_types_["default"].object
|
|
110775
|
+
};
|
|
110776
|
+
function HeaderView(_ref4) {
|
|
110777
|
+
var _headerEntry$logo, _headerEntry$locale_s, _utilityLinksEntry$lo, _utilityLinksEntry$lo2, _headerEntry$cart, _storefrontParams$car, _headerEntry$$, _headerEntry$top_ribb, _headerEntry$market_s, _headerEntry$translat, _headerEntry$translat2, _topRibbon$top_ribbon, _headerEntry$$2, _ref5, _headerEntry$locale, _headerEntry$$3, _headerEntry$$4;
|
|
110778
|
+
var country = _ref4.country,
|
|
110779
|
+
language = _ref4.language,
|
|
110780
|
+
locale = _ref4.locale,
|
|
110781
|
+
headerEntry = _ref4.headerEntry,
|
|
110782
|
+
searchConfig = _ref4.searchConfig,
|
|
110783
|
+
storefrontParams = _ref4.storefrontParams;
|
|
110269
110784
|
var _useState = (0,external_react_.useState)(false),
|
|
110270
110785
|
_useState2 = HeaderView_slicedToArray(_useState, 2),
|
|
110271
110786
|
isMobileMenuOpen = _useState2[0],
|
|
@@ -110345,12 +110860,12 @@ function HeaderView(_ref3) {
|
|
|
110345
110860
|
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MarketSelector, {
|
|
110346
110861
|
data: marketSelector,
|
|
110347
110862
|
logo: logoData,
|
|
110348
|
-
locale: String((
|
|
110863
|
+
locale: String((_ref5 = (_headerEntry$locale = headerEntry === null || headerEntry === void 0 ? void 0 : headerEntry.locale) !== null && _headerEntry$locale !== void 0 ? _headerEntry$locale : locale) !== null && _ref5 !== void 0 ? _ref5 : "").trim(),
|
|
110349
110864
|
parent$: headerEntry === null || headerEntry === void 0 || (_headerEntry$$3 = headerEntry.$) === null || _headerEntry$$3 === void 0 ? void 0 : _headerEntry$$3.market_selector__0,
|
|
110350
110865
|
mobileTriggerMode: "drawerPortal",
|
|
110351
110866
|
drawerOpen: isMobileMenuOpen,
|
|
110352
110867
|
drawerTriggerMountRef: mobileMarketTriggerMountRef
|
|
110353
|
-
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(
|
|
110868
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(LoyaltyComponent, {
|
|
110354
110869
|
data: loyaltyData
|
|
110355
110870
|
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(HeaderAccountRegion, {
|
|
110356
110871
|
data: accountData,
|