@nuskin/nextgen-header 1.19.0 → 1.21.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.
@@ -100564,151 +100564,600 @@ var colors = {
100564
100564
  accentHover: "#0d9488"
100565
100565
  };
100566
100566
  var HeaderRoot = /*#__PURE__*/createStyled("header", true ? {
100567
- target: "e1607tyl27"
100567
+ target: "e1607tyl38"
100568
100568
  } : 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));
100569
100569
 
100570
100570
  /** Logo (left) + utility + search (stacked right) */
100571
100571
  var TopHeaderRow = /*#__PURE__*/createStyled("div", true ? {
100572
- target: "e1607tyl26"
100572
+ target: "e1607tyl37"
100573
100573
  } : 0)( true ? {
100574
- name: "bqxjfk",
100575
- styles: "display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;padding:1rem clamp(1rem, 4vw, 2rem) 0.75rem;max-width:1440px;margin:0 auto"
100574
+ name: "gzk91",
100575
+ 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: 1024px){gap:1rem 2rem;}"
100576
100576
  } : 0);
100577
100577
  var LogoSlot = /*#__PURE__*/createStyled("div", true ? {
100578
- target: "e1607tyl25"
100579
- } : 0)("flex:0 0 auto;align-self:center;[data-copy-loading]{display:flex;align-items:center;min-height:2.75rem;}.header-copy-placeholder{color:", colors.muted, ";letter-spacing:0.02em;}" + ( true ? "" : 0));
100578
+ target: "e1607tyl36"
100579
+ } : 0)("flex:0 0 auto;align-self:center;@media (max-width: 1023px){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));
100580
100580
  var WordmarkButton = /*#__PURE__*/createStyled("button", true ? {
100581
- target: "e1607tyl24"
100581
+ target: "e1607tyl35"
100582
100582
  } : 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));
100583
100583
 
100584
100584
  /** Utility row + search — wireframe: separate from each other, top-aligned within column */
100585
100585
  var RightHeaderCluster = /*#__PURE__*/createStyled("div", true ? {
100586
- target: "e1607tyl23"
100586
+ target: "e1607tyl34"
100587
100587
  } : 0)( true ? {
100588
- name: "1smm9bm",
100589
- styles: "display:flex;flex-direction:column;align-items:flex-end;gap:0.65rem;flex:1 1 320px;min-width:min(100%, 280px);max-width:42rem"
100588
+ name: "1g7lzn0",
100589
+ styles: "display:none;@media (min-width: 1024px){display:flex;flex-direction:column;align-items:flex-end;gap:0.65rem;flex:1 1 320px;min-width:min(100%, 280px);max-width:42rem;}"
100590
100590
  } : 0);
100591
100591
  var UtilityBar = /*#__PURE__*/createStyled("div", true ? {
100592
- target: "e1607tyl22"
100592
+ target: "e1607tyl33"
100593
100593
  } : 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));
100594
100594
  var UtilityBarDivider = /*#__PURE__*/createStyled("span", true ? {
100595
- target: "e1607tyl21"
100595
+ target: "e1607tyl32"
100596
100596
  } : 0)("color:", colors.muted, ";user-select:none;" + ( true ? "" : 0));
100597
100597
  var UtilityButton = /*#__PURE__*/createStyled("button", true ? {
100598
- target: "e1607tyl20"
100598
+ target: "e1607tyl31"
100599
100599
  } : 0)( true ? {
100600
100600
  name: "1f5cjb2",
100601
100601
  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;}"
100602
100602
  } : 0);
100603
100603
  var LocaleLabel = /*#__PURE__*/createStyled("span", true ? {
100604
- target: "e1607tyl19"
100604
+ target: "e1607tyl30"
100605
100605
  } : 0)( true ? {
100606
100606
  name: "101gt3q",
100607
100607
  styles: "display:inline-flex;align-items:center;gap:0.3rem"
100608
100608
  } : 0);
100609
100609
  var AccountCluster = /*#__PURE__*/createStyled("div", true ? {
100610
- target: "e1607tyl18"
100610
+ target: "e1607tyl29"
100611
100611
  } : 0)( true ? {
100612
- name: "b18bkv",
100613
- styles: "display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.125rem 0.35rem"
100612
+ name: "bo3els",
100613
+ styles: "display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.125rem 0.35rem;@media (max-width: 1023px){.account-icon{display:none;}.account-sign-up{display:none;}.account-divider{display:none;}.account-sign-in{font-size:1rem;font-weight:400;padding:0;}}"
100614
100614
  } : 0);
100615
100615
  var CartButtonInner = /*#__PURE__*/createStyled("span", true ? {
100616
- target: "e1607tyl17"
100616
+ target: "e1607tyl28"
100617
100617
  } : 0)( true ? {
100618
- name: "ml2e3u",
100619
- styles: "display:inline-flex;align-items:center;gap:0.4rem"
100618
+ name: "ww3r3k",
100619
+ styles: "display:inline-flex;align-items:center;position:relative"
100620
100620
  } : 0);
100621
100621
  var CartBadge = /*#__PURE__*/createStyled("span", true ? {
100622
- target: "e1607tyl16"
100623
- } : 0)("display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 0.35rem;border-radius:999px;font-size:0.7rem;font-weight:700;line-height:1;background:", colors.text, ";color:#fff;" + ( true ? "" : 0));
100622
+ target: "e1607tyl27"
100623
+ } : 0)( true ? {
100624
+ name: "1sj9dvc",
100625
+ 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"
100626
+ } : 0);
100624
100627
 
100625
100628
  /** Pill search: icon left, full-width field, submit control on right */
100626
100629
  var SearchSlot = /*#__PURE__*/createStyled("div", true ? {
100627
- target: "e1607tyl15"
100630
+ target: "e1607tyl26"
100628
100631
  } : 0)( true ? {
100629
100632
  name: "kuwwf0",
100630
100633
  styles: "width:100%;[data-region=\"search\"]{width:100%;}"
100631
100634
  } : 0);
100632
100635
  var SearchPillForm = /*#__PURE__*/createStyled("form", true ? {
100633
- target: "e1607tyl14"
100636
+ target: "e1607tyl25"
100634
100637
  } : 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));
100635
100638
  var NavSection = /*#__PURE__*/createStyled("div", true ? {
100636
- target: "e1607tyl13"
100637
- } : 0)("border-top:1px solid ", colors.borderLight, ";background:", colors.surface, ";" + ( true ? "" : 0));
100639
+ target: "e1607tyl24"
100640
+ } : 0)("display:none;border-top:1px solid ", colors.borderLight, ";background:", colors.surface, ";@media (min-width: 1024px){display:block;}" + ( true ? "" : 0));
100638
100641
  var PrimaryNav = /*#__PURE__*/createStyled("nav", true ? {
100639
- target: "e1607tyl12"
100642
+ target: "e1607tyl23"
100640
100643
  } : 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));
100641
100644
  var MegaMenuPreview = /*#__PURE__*/createStyled("section", true ? {
100642
- target: "e1607tyl11"
100645
+ target: "e1607tyl22"
100643
100646
  } : 0)("border-top:1px solid ", colors.borderLight, ";background:#f9fafb;" + ( true ? "" : 0));
100644
100647
  var MegaMenuInner = /*#__PURE__*/createStyled("div", true ? {
100645
- target: "e1607tyl10"
100648
+ target: "e1607tyl21"
100646
100649
  } : 0)( true ? {
100647
100650
  name: "1awwgt4",
100648
100651
  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;}"
100649
100652
  } : 0);
100650
100653
  var JumpToColumn = /*#__PURE__*/createStyled("div", true ? {
100651
- target: "e1607tyl9"
100654
+ target: "e1607tyl20"
100652
100655
  } : 0)("padding:1rem;border:1px solid ", colors.border, ";border-radius:6px;background:", colors.surface, ";" + ( true ? "" : 0));
100653
100656
  var JumpToTitle = /*#__PURE__*/createStyled("h3", true ? {
100654
- target: "e1607tyl8"
100657
+ target: "e1607tyl19"
100655
100658
  } : 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));
100656
100659
  var JumpToList = /*#__PURE__*/createStyled("ul", true ? {
100657
- target: "e1607tyl7"
100660
+ target: "e1607tyl18"
100658
100661
  } : 0)( true ? {
100659
100662
  name: "gt7hyk",
100660
100663
  styles: "display:flex;flex-direction:column;gap:0.5rem;margin:0;padding:0;list-style:none"
100661
100664
  } : 0);
100662
100665
  var JumpToPill = /*#__PURE__*/createStyled("button", true ? {
100663
- target: "e1607tyl6"
100666
+ target: "e1607tyl17"
100664
100667
  } : 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));
100665
100668
  var CategoriesPane = /*#__PURE__*/createStyled("div", true ? {
100666
- target: "e1607tyl5"
100669
+ target: "e1607tyl16"
100667
100670
  } : 0)("padding:1rem 1.25rem;border:1px solid ", colors.border, ";border-radius:6px;background:", colors.surface, ";" + ( true ? "" : 0));
100668
100671
  var CategoryHeaderStrip = /*#__PURE__*/createStyled("div", true ? {
100669
- target: "e1607tyl4"
100672
+ target: "e1607tyl15"
100670
100673
  } : 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));
100671
100674
  var CategoryColumns = /*#__PURE__*/createStyled("div", true ? {
100672
- target: "e1607tyl3"
100675
+ target: "e1607tyl14"
100673
100676
  } : 0)( true ? {
100674
100677
  name: "xxda9t",
100675
100678
  styles: "display:grid;grid-template-columns:repeat(3, 1fr);gap:1.25rem 1.5rem;@media (max-width: 900px){grid-template-columns:1fr;}"
100676
100679
  } : 0);
100677
100680
  var CategoryColumn = /*#__PURE__*/createStyled("div", true ? {
100678
- target: "e1607tyl2"
100681
+ target: "e1607tyl13"
100679
100682
  } : 0)( true ? "" : 0);
100680
100683
  var CategorySubLabel = /*#__PURE__*/createStyled("p", true ? {
100681
- target: "e1607tyl1"
100684
+ target: "e1607tyl12"
100682
100685
  } : 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));
100683
100686
  var CategoryLinkList = /*#__PURE__*/createStyled("ul", true ? {
100684
- target: "e1607tyl0"
100687
+ target: "e1607tyl11"
100685
100688
  } : 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));
100689
+ var MobileMenuButton = /*#__PURE__*/createStyled("button", true ? {
100690
+ target: "e1607tyl10"
100691
+ } : 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: 1024px){display:none;}" + ( true ? "" : 0));
100692
+ var MobileUtilityBar = /*#__PURE__*/createStyled("div", true ? {
100693
+ target: "e1607tyl9"
100694
+ } : 0)("display:flex;align-items:center;gap:1rem;margin-left:auto;font-size:1rem;@media (min-width: 1024px){display:none;}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));
100695
+ var MobileDrawer = /*#__PURE__*/createStyled("div", true ? {
100696
+ target: "e1607tyl8"
100697
+ } : 0)( true ? {
100698
+ name: "kxea5q",
100699
+ styles: "position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;display:flex"
100700
+ } : 0);
100701
+ var MobileDrawerBackdrop = /*#__PURE__*/createStyled("div", true ? {
100702
+ target: "e1607tyl7"
100703
+ } : 0)( true ? {
100704
+ name: "eq959j",
100705
+ styles: "position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);cursor:pointer"
100706
+ } : 0);
100707
+ var MobileDrawerContent = /*#__PURE__*/createStyled("div", true ? {
100708
+ target: "e1607tyl6"
100709
+ } : 0)("position:relative;z-index:1;width:85%;max-width:375px;height:100%;background:", colors.surface, ";display:flex;flex-direction:column;box-shadow:2px 0 8px rgba(0, 0, 0, 0.15);" + ( true ? "" : 0));
100710
+ var MobileDrawerHeader = /*#__PURE__*/createStyled("div", true ? {
100711
+ target: "e1607tyl5"
100712
+ } : 0)("padding:1.5rem 1.5rem 1rem;border-bottom:1px solid ", colors.borderLight, ";flex-shrink:0;" + ( true ? "" : 0));
100713
+ var MobileDrawerLogoSlot = /*#__PURE__*/createStyled("div", true ? {
100714
+ target: "e1607tyl4"
100715
+ } : 0)( true ? {
100716
+ name: "zjik7",
100717
+ styles: "display:flex"
100718
+ } : 0);
100719
+ var MobileDrawerNav = /*#__PURE__*/createStyled("nav", true ? {
100720
+ target: "e1607tyl3"
100721
+ } : 0)( true ? {
100722
+ name: "j6pmxf",
100723
+ styles: "flex:1;overflow-y:auto;padding:1rem 0"
100724
+ } : 0);
100725
+ var MobileDrawerNavItem = /*#__PURE__*/createStyled("div", true ? {
100726
+ target: "e1607tyl2"
100727
+ } : 0)( true ? "" : 0);
100728
+ var MobileDrawerNavButton = /*#__PURE__*/createStyled("button", true ? {
100729
+ target: "e1607tyl1"
100730
+ } : 0)("display:flex;align-items:center;justify-content:space-between;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));
100731
+ var MobileDrawerLocaleButton = /*#__PURE__*/createStyled("button", true ? {
100732
+ target: "e1607tyl0"
100733
+ } : 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));
100734
+ // EXTERNAL MODULE: ./node_modules/@nuskin/foundation-ui-components/dist/index.js
100735
+ var dist = __webpack_require__(4814);
100736
+ ;// ./src/components/brand/Brand.styled.jsx
100737
+
100738
+ 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)."; }
100739
+ var BrandRoot = /*#__PURE__*/createStyled("div", true ? {
100740
+ target: "eum1fxs3"
100741
+ } : 0)("display:flex;position:relative;", function (_ref) {
100742
+ var isEditing = _ref.isEditing;
100743
+ return isEditing && "\n & > * {\n pointer-events: none;\n }\n ";
100744
+ }, ";" + ( true ? "" : 0));
100745
+ var BrandLogoLink = /*#__PURE__*/createStyled("a", true ? {
100746
+ target: "eum1fxs2"
100747
+ } : 0)( true ? {
100748
+ name: "1puv40q",
100749
+ styles: "display:inline-flex;align-items:center;line-height:0;text-decoration:none"
100750
+ } : 0);
100751
+ var ResponsiveBrandWrapper = /*#__PURE__*/createStyled("div", true ? {
100752
+ target: "eum1fxs1"
100753
+ } : 0)("display:flex;align-items:center;", function (_ref2) {
100754
+ var mobileWidth = _ref2.mobileWidth,
100755
+ desktopWidth = _ref2.desktopWidth,
100756
+ mobileHeight = _ref2.mobileHeight,
100757
+ desktopHeight = _ref2.desktopHeight;
100758
+ 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 ");
100759
+ }, ";" + ( true ? "" : 0));
100760
+ var BrandLogoImg = /*#__PURE__*/createStyled("img", true ? {
100761
+ target: "eum1fxs0"
100762
+ } : 0)( true ? {
100763
+ name: "kmohbm",
100764
+ styles: "display:block;width:auto;height:24px"
100765
+ } : 0);
100766
+ ;// ./src/components/brand/constants.js
100767
+ var DEFAULT_LOGO_ALT = "Nuskin Brand Logo";
100768
+ var DEFAULT_HREF = typeof window !== "undefined" ? window.location.origin : "/";
100769
+ var SIZE_MAP = {
100770
+ desktop: {
100771
+ Small: "68.18px",
100772
+ Medium: "108px",
100773
+ Large: "136.36px"
100774
+ },
100775
+ mobile: {
100776
+ Small: "45px",
100777
+ Medium: "64px",
100778
+ Large: "90px"
100779
+ }
100780
+ };
100781
+ var HEIGHT_MAP = {
100782
+ desktop: "30px",
100783
+ mobile: "18px"
100784
+ };
100785
+ ;// external "@contentstack/delivery-sdk"
100786
+ const delivery_sdk_namespaceObject = require("@contentstack/delivery-sdk");
100787
+ var delivery_sdk_default = /*#__PURE__*/__webpack_require__.n(delivery_sdk_namespaceObject);
100788
+ ;// external "@contentstack/live-preview-utils"
100789
+ const live_preview_utils_namespaceObject = require("@contentstack/live-preview-utils");
100790
+ var live_preview_utils_default = /*#__PURE__*/__webpack_require__.n(live_preview_utils_namespaceObject);
100791
+ ;// external "@contentstack/utils"
100792
+ const utils_namespaceObject = require("@contentstack/utils");
100793
+ ;// ./src/utils/constants.js
100794
+ var HEADER_CONTENT_ENTRY_UID = "global_header";
100795
+ var referenceFields = (/* unused pure expression or super */ null && (["top_navigation", "top_navigation.menu_items.menu_item", "top_navigation.menu_items.menu_item.sub_categories.category_section.items.product_category.category", "market_selector.regions.markets.languages"]));
100796
+ var CONTENTSTACK_API_KEY = process.env.CONTENTSTACK_API_KEY;
100797
+ var CONTENTSTACK_DELIVERY_TOKEN = process.env.CONTENTSTACK_DELIVERY_TOKEN;
100798
+ var CONTENTSTACK_ENVIRONMENT = process.env.CONTENTSTACK_ENVIRONMENT;
100799
+ var CONTENTSTACK_PREVIEW_TOKEN = process.env.CONTENTSTACK_PREVIEW_TOKEN;
100800
+
100801
+ ;// ./src/utils/contentstack.js
100802
+ /* unused harmony import specifier */ var ContentstackLivePreview;
100803
+ /* unused harmony import specifier */ var addEditableTags;
100804
+ /* unused harmony import specifier */ var contentstack_CONTENTSTACK_API_KEY;
100805
+ /* unused harmony import specifier */ var contentstack_CONTENTSTACK_ENVIRONMENT;
100806
+ function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
100807
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
100808
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
100809
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
100810
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
100811
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
100812
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
100813
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _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) ? _arrayLikeToArray(r, a) : void 0; } }
100814
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
100815
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
100816
+ function _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; }
100817
+ function 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; }
100818
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
100819
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
100820
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
100821
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
100822
+
100823
+
100824
+
100825
+
100826
+
100827
+ /**
100828
+ * Contentstack delivery stack, live preview, and entry fetch.
100829
+ * TODO: Call getContent from header UI once the URL/slug strategy is defined;
100830
+ * wire initLivePreview / onEntryChange in Visual Builder.
100831
+ */
100832
+
100833
+ // Detect cs_branch from the current URL.
100834
+ // Client-side: read from window.location.search at module load time.
100835
+ // SSR: call setRequestUrl(req.url) from the server before rendering.
100836
+ var _branch = "main";
100837
+ if (typeof window !== "undefined") {
100838
+ var _params$get;
100839
+ var params = new URLSearchParams(window.location.search);
100840
+ _branch = (_params$get = params.get("cs_branch")) !== null && _params$get !== void 0 ? _params$get : "main";
100841
+ }
100842
+
100843
+ // Called by the server render layer to detect cs_branch from the request URL.
100844
+ function setRequestUrl(url) {
100845
+ var _url$split$, _params$get2;
100846
+ var search = (_url$split$ = url === null || url === void 0 ? void 0 : url.split("?")[1]) !== null && _url$split$ !== void 0 ? _url$split$ : "";
100847
+ var params = new URLSearchParams(search);
100848
+ var newBranch = (_params$get2 = params.get("cs_branch")) !== null && _params$get2 !== void 0 ? _params$get2 : "main";
100849
+ if (newBranch !== _branch) {
100850
+ _branch = newBranch;
100851
+ _stack = null;
100852
+ _livePreviewInitialized = false; // ← add this
100853
+ }
100854
+ }
100855
+
100856
+ // Lazy-initialize the stack to avoid "API key is required" errors
100857
+ // when this module is loaded via Module Federation on the host server
100858
+ // (where env vars may not be available).
100859
+ var _stack = null;
100860
+ function getStack() {
100861
+ if (!_stack) {
100862
+ _stack = delivery_sdk_default().stack(_objectSpread(_objectSpread({
100863
+ apiKey: CONTENTSTACK_API_KEY,
100864
+ deliveryToken: CONTENTSTACK_DELIVERY_TOKEN,
100865
+ environment: CONTENTSTACK_ENVIRONMENT
100866
+ }, _branch && {
100867
+ branch: _branch
100868
+ }), {}, {
100869
+ live_preview: {
100870
+ enable: true,
100871
+ preview_token: CONTENTSTACK_PREVIEW_TOKEN,
100872
+ host: "rest-preview.contentstack.com"
100873
+ }
100874
+ }));
100875
+ }
100876
+ return _stack;
100877
+ }
100878
+ var BRIDGED_CONFIG_KEYS = ["live_preview", "headers", "environment"];
100879
+ var stack = new Proxy({}, {
100880
+ get: function get(_, prop) {
100881
+ var s = getStack();
100882
+ if (BRIDGED_CONFIG_KEYS.includes(prop)) {
100883
+ var _s$config;
100884
+ return (_s$config = s.config) === null || _s$config === void 0 ? void 0 : _s$config[prop];
100885
+ }
100886
+ return s[prop];
100887
+ },
100888
+ set: function set(_, prop, value) {
100889
+ var s = getStack();
100890
+ if (BRIDGED_CONFIG_KEYS.includes(prop)) {
100891
+ if (!s.config) return false;
100892
+ s.config[prop] = value;
100893
+ return true;
100894
+ }
100895
+ s[prop] = value;
100896
+ return true;
100897
+ },
100898
+ has: function has(_, prop) {
100899
+ if (BRIDGED_CONFIG_KEYS.includes(prop)) return true;
100900
+ return prop in getStack();
100901
+ },
100902
+ ownKeys: function ownKeys() {
100903
+ return _toConsumableArray(new Set([].concat(_toConsumableArray(Reflect.ownKeys(getStack())), BRIDGED_CONFIG_KEYS)));
100904
+ },
100905
+ getOwnPropertyDescriptor: function getOwnPropertyDescriptor(_, prop) {
100906
+ if (BRIDGED_CONFIG_KEYS.includes(prop)) {
100907
+ var _getStack$config;
100908
+ return {
100909
+ configurable: true,
100910
+ enumerable: true,
100911
+ writable: true,
100912
+ value: (_getStack$config = getStack().config) === null || _getStack$config === void 0 ? void 0 : _getStack$config[prop]
100913
+ };
100914
+ }
100915
+ return Object.getOwnPropertyDescriptor(getStack(), prop);
100916
+ }
100917
+ });
100918
+ var _livePreviewInitialized = false;
100919
+ var onEntryChange = live_preview_utils_default().onEntryChange.bind((live_preview_utils_default()));
100920
+ function initLivePreview() {
100921
+ if (_livePreviewInitialized) return;
100922
+ _livePreviewInitialized = true;
100923
+ ContentstackLivePreview.init({
100924
+ ssr: false,
100925
+ enable: true,
100926
+ mode: "builder",
100927
+ stackSdk: stack,
100928
+ stackDetails: {
100929
+ apiKey: contentstack_CONTENTSTACK_API_KEY,
100930
+ environment: contentstack_CONTENTSTACK_ENVIRONMENT
100931
+ },
100932
+ clientUrlParams: {
100933
+ host: "app.contentstack.com"
100934
+ },
100935
+ editButton: {
100936
+ enable: false
100937
+ }
100938
+ });
100939
+ }
100940
+ function isEditingMode() {
100941
+ if (typeof window === "undefined") {
100942
+ return false;
100943
+ }
100944
+ if (window.self !== window.top) {
100945
+ return true;
100946
+ }
100947
+ var params = new URLSearchParams(window.location.search);
100948
+ return params.has("visual-builder") || params.has("contentstack") || params.has("live_preview");
100949
+ }
100950
+ var getContent = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
100951
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
100952
+ var _ref2,
100953
+ url,
100954
+ uid,
100955
+ contentType,
100956
+ language,
100957
+ _ref2$referenceFields,
100958
+ referenceFields,
100959
+ tryFetch,
100960
+ result,
100961
+ fallbackResult,
100962
+ _args2 = arguments,
100963
+ _t,
100964
+ _t2;
100965
+ return _regenerator().w(function (_context2) {
100966
+ while (1) switch (_context2.p = _context2.n) {
100967
+ case 0:
100968
+ _ref2 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, url = _ref2.url, uid = _ref2.uid, contentType = _ref2.contentType, language = _ref2.language, _ref2$referenceFields = _ref2.referenceFields, referenceFields = _ref2$referenceFields === void 0 ? [] : _ref2$referenceFields;
100969
+ tryFetch = /*#__PURE__*/function () {
100970
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(locale) {
100971
+ var CT, fetched, _result$entries, urlWithSlash, result;
100972
+ return _regenerator().w(function (_context) {
100973
+ while (1) switch (_context.n) {
100974
+ case 0:
100975
+ CT = stack.contentType(contentType);
100976
+ fetched = null;
100977
+ if (!uid) {
100978
+ _context.n = 2;
100979
+ break;
100980
+ }
100981
+ _context.n = 1;
100982
+ return CT.entry(uid).locale(locale).includeReference(referenceFields).fetch();
100983
+ case 1:
100984
+ fetched = _context.v;
100985
+ _context.n = 4;
100986
+ break;
100987
+ case 2:
100988
+ if (!url) {
100989
+ _context.n = 4;
100990
+ break;
100991
+ }
100992
+ urlWithSlash = url.startsWith("/") ? url : "/".concat(url);
100993
+ _context.n = 3;
100994
+ return CT.entry().locale(locale).includeReference(referenceFields).query({
100995
+ url: urlWithSlash
100996
+ }).find();
100997
+ case 3:
100998
+ result = _context.v;
100999
+ fetched = (_result$entries = result.entries) === null || _result$entries === void 0 ? void 0 : _result$entries[0];
101000
+ case 4:
101001
+ if (isEditingMode() && fetched) {
101002
+ addEditableTags(fetched, contentType, true, language, {
101003
+ useLowerCaseLocale: false
101004
+ });
101005
+ }
101006
+ return _context.a(2, fetched);
101007
+ }
101008
+ }, _callee);
101009
+ }));
101010
+ return function tryFetch(_x) {
101011
+ return _ref3.apply(this, arguments);
101012
+ };
101013
+ }();
101014
+ _context2.p = 1;
101015
+ _context2.n = 2;
101016
+ return tryFetch(language);
101017
+ case 2:
101018
+ result = _context2.v;
101019
+ return _context2.a(2, result);
101020
+ case 3:
101021
+ _context2.p = 3;
101022
+ _t = _context2.v;
101023
+ console.warn("Failed to fetch content with language:", language, _t.message);
101024
+ _context2.p = 4;
101025
+ _context2.n = 5;
101026
+ return tryFetch("en");
101027
+ case 5:
101028
+ fallbackResult = _context2.v;
101029
+ return _context2.a(2, fallbackResult);
101030
+ case 6:
101031
+ _context2.p = 6;
101032
+ _t2 = _context2.v;
101033
+ console.warn("Failed to fetch content with fallback language:", _t2.message);
101034
+ return _context2.a(2, null);
101035
+ }
101036
+ }, _callee2, null, [[4, 6], [1, 3]]);
101037
+ }));
101038
+ return function getContent() {
101039
+ return _ref.apply(this, arguments);
101040
+ };
101041
+ }()));
100686
101042
  // EXTERNAL MODULE: external "react/jsx-runtime"
100687
101043
  var jsx_runtime_ = __webpack_require__(8732);
100688
- ;// ./src/components/header/regions/HeaderLogoRegion.jsx
101044
+ ;// ./src/components/brand/Brand.jsx
101045
+ function Brand_typeof(o) { "@babel/helpers - typeof"; return Brand_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_typeof(o); }
101046
+ function Brand_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; }
101047
+ function Brand_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Brand_ownKeys(Object(t), !0).forEach(function (r) { Brand_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Brand_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
101048
+ function Brand_defineProperty(e, r, t) { return (r = Brand_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
101049
+ function Brand_toPropertyKey(t) { var i = Brand_toPrimitive(t, "string"); return "symbol" == Brand_typeof(i) ? i : i + ""; }
101050
+ function Brand_toPrimitive(t, r) { if ("object" != Brand_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Brand_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
100689
101051
 
100690
101052
 
100691
101053
 
100692
101054
 
100693
- function HeaderLogoRegion(_ref) {
100694
- var _data$aria_label;
100695
- var data = _ref.data;
100696
- return /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
100697
- "data-region": "logo",
100698
- children: /*#__PURE__*/(0,jsx_runtime_.jsx)(WordmarkButton, {
100699
- type: "button",
100700
- "aria-label": (_data$aria_label = data.aria_label) !== null && _data$aria_label !== void 0 ? _data$aria_label : "Nu Skin home",
100701
- children: data.wordmark
101055
+
101056
+
101057
+
101058
+ function getResponsiveSize(size) {
101059
+ return {
101060
+ mobileWidth: SIZE_MAP.mobile[size] || SIZE_MAP.mobile.Large,
101061
+ desktopWidth: SIZE_MAP.desktop[size] || SIZE_MAP.desktop.Large,
101062
+ mobileHeight: HEIGHT_MAP.mobile,
101063
+ desktopHeight: HEIGHT_MAP.desktop
101064
+ };
101065
+ }
101066
+ function Brand(_ref) {
101067
+ var logo = _ref.logo,
101068
+ logoAlt = _ref.logoAlt,
101069
+ href = _ref.href,
101070
+ showLogo = _ref.showLogo,
101071
+ size = _ref.size,
101072
+ $ = _ref.$;
101073
+ var resolvedHref = href || DEFAULT_HREF;
101074
+ var responsiveSize = getResponsiveSize(size);
101075
+ var editing = isEditingMode();
101076
+ if (!showLogo) return null;
101077
+ return /*#__PURE__*/(0,jsx_runtime_.jsx)(BrandRoot, Brand_objectSpread(Brand_objectSpread({
101078
+ "data-testid": "brand",
101079
+ isEditing: editing
101080
+ }, ($ === null || $ === void 0 ? void 0 : $.header_logo) || {}), {}, {
101081
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(BrandLogoLink, {
101082
+ href: resolvedHref,
101083
+ "data-testid": "brand-logo-link",
101084
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(ResponsiveBrandWrapper, {
101085
+ mobileWidth: responsiveSize.mobileWidth,
101086
+ desktopWidth: responsiveSize.desktopWidth,
101087
+ mobileHeight: responsiveSize.mobileHeight,
101088
+ desktopHeight: responsiveSize.desktopHeight,
101089
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(dist.NsBrandComponent, Brand_objectSpread(Brand_objectSpread(Brand_objectSpread({}, logo && {
101090
+ logoUrl: logo,
101091
+ logoAlt: logoAlt
101092
+ }), !logo && {
101093
+ variant: "wordmark",
101094
+ color: "black"
101095
+ }), {}, {
101096
+ size: responsiveSize.desktopWidth,
101097
+ "data-testid": "brand-logo-img"
101098
+ }))
101099
+ })
100702
101100
  })
100703
- });
101101
+ }));
100704
101102
  }
100705
- HeaderLogoRegion.propTypes = {
100706
- data: external_prop_types_default().shape({
100707
- wordmark: (external_prop_types_default()).string,
100708
- home_href: (external_prop_types_default()).string,
100709
- aria_label: (external_prop_types_default()).string
100710
- })
101103
+ Brand.propTypes = {
101104
+ logo: (external_prop_types_default()).string,
101105
+ logoAlt: (external_prop_types_default()).string,
101106
+ href: (external_prop_types_default()).string,
101107
+ showLogo: (external_prop_types_default()).bool,
101108
+ size: external_prop_types_default().oneOf(["Small", "Medium", "Large"]),
101109
+ $: (external_prop_types_default()).object
101110
+ };
101111
+ Brand.defaultProps = {
101112
+ logo: undefined,
101113
+ logoAlt: DEFAULT_LOGO_ALT,
101114
+ href: DEFAULT_HREF,
101115
+ showLogo: true,
101116
+ size: "Large",
101117
+ $: null
100711
101118
  };
101119
+ ;// ./src/components/brand/brand.helpers.js
101120
+ function parseLogoData(logoData) {
101121
+ if (!logoData) {
101122
+ return {
101123
+ logo: undefined,
101124
+ logoAlt: undefined,
101125
+ href: undefined,
101126
+ showLogo: true,
101127
+ size: "Large",
101128
+ $: null
101129
+ };
101130
+ }
101131
+ var _logoData$show = logoData.show,
101132
+ show = _logoData$show === void 0 ? true : _logoData$show,
101133
+ header_logo = logoData.header_logo,
101134
+ logo_alt = logoData.logo_alt,
101135
+ logo_url = logoData.logo_url,
101136
+ _logoData$logo_size = logoData.logo_size,
101137
+ logo_size = _logoData$logo_size === void 0 ? "Large" : _logoData$logo_size;
101138
+ var logoUrl;
101139
+ if (header_logo) {
101140
+ try {
101141
+ var parsed = JSON.parse(header_logo);
101142
+ var imageArray = parsed === null || parsed === void 0 ? void 0 : parsed.image;
101143
+ if (Array.isArray(imageArray) && imageArray.length > 0) {
101144
+ var _firstImage$selected, _firstImage$files, _firstImage$files2;
101145
+ var firstImage = imageArray[0];
101146
+ logoUrl = (firstImage === null || firstImage === void 0 || (_firstImage$selected = firstImage.selected) === null || _firstImage$selected === void 0 ? void 0 : _firstImage$selected.url) || (firstImage === null || firstImage === void 0 || (_firstImage$files = firstImage.files) === null || _firstImage$files === void 0 || (_firstImage$files = _firstImage$files.transformBaseUrl) === null || _firstImage$files === void 0 ? void 0 : _firstImage$files.url) || (firstImage === null || firstImage === void 0 || (_firstImage$files2 = firstImage.files) === null || _firstImage$files2 === void 0 || (_firstImage$files2 = _firstImage$files2.thumbnail) === null || _firstImage$files2 === void 0 ? void 0 : _firstImage$files2.url);
101147
+ }
101148
+ } catch (err) {
101149
+ console.warn("Failed to parse header_logo JSON:", err);
101150
+ }
101151
+ }
101152
+ return {
101153
+ logo: logoUrl,
101154
+ logoAlt: logo_alt,
101155
+ href: logo_url,
101156
+ showLogo: show,
101157
+ size: logo_size,
101158
+ $: logoData.$ || null
101159
+ };
101160
+ }
100712
101161
  ;// ./src/components/header/regions/HeaderLoyaltyRegion.jsx
100713
101162
 
100714
101163
 
@@ -100728,19 +101177,36 @@ HeaderLoyaltyRegion.propTypes = {
100728
101177
  }).isRequired
100729
101178
  };
100730
101179
  ;// ./src/components/header/HeaderIcons.jsx
100731
- /* unused harmony import specifier */ var _jsx;
100732
- function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
100733
- function 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; }
100734
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
100735
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
100736
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
100737
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
101180
+ function HeaderIcons_typeof(o) { "@babel/helpers - typeof"; return HeaderIcons_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; }, HeaderIcons_typeof(o); }
101181
+ function HeaderIcons_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; }
101182
+ function HeaderIcons_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? HeaderIcons_ownKeys(Object(t), !0).forEach(function (r) { HeaderIcons_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : HeaderIcons_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
101183
+ function HeaderIcons_defineProperty(e, r, t) { return (r = HeaderIcons_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
101184
+ function HeaderIcons_toPropertyKey(t) { var i = HeaderIcons_toPrimitive(t, "string"); return "symbol" == HeaderIcons_typeof(i) ? i : i + ""; }
101185
+ function HeaderIcons_toPrimitive(t, r) { if ("object" != HeaderIcons_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != HeaderIcons_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
100738
101186
 
100739
101187
 
100740
101188
  /** 16–20px inline SVGs for header chrome (wireframe parity). */
100741
101189
 
101190
+ function IconMenu(props) {
101191
+ return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", HeaderIcons_objectSpread(HeaderIcons_objectSpread({
101192
+ width: "24",
101193
+ height: "24",
101194
+ viewBox: "0 0 24 24",
101195
+ fill: "none",
101196
+ xmlns: "http://www.w3.org/2000/svg",
101197
+ "aria-hidden": true
101198
+ }, props), {}, {
101199
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)("path", {
101200
+ d: "M3 12h18M3 6h18M3 18h18",
101201
+ stroke: "currentColor",
101202
+ strokeWidth: "2",
101203
+ strokeLinecap: "round",
101204
+ strokeLinejoin: "round"
101205
+ })
101206
+ }));
101207
+ }
100742
101208
  function IconSearch(props) {
100743
- return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", _objectSpread(_objectSpread({
101209
+ return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", HeaderIcons_objectSpread(HeaderIcons_objectSpread({
100744
101210
  width: "20",
100745
101211
  height: "20",
100746
101212
  viewBox: "0 0 24 24",
@@ -100757,7 +101223,7 @@ function IconSearch(props) {
100757
101223
  }));
100758
101224
  }
100759
101225
  function IconChevronDown(props) {
100760
- return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
101226
+ return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", HeaderIcons_objectSpread(HeaderIcons_objectSpread({
100761
101227
  width: "12",
100762
101228
  height: "12",
100763
101229
  viewBox: "0 0 12 12",
@@ -100765,7 +101231,7 @@ function IconChevronDown(props) {
100765
101231
  xmlns: "http://www.w3.org/2000/svg",
100766
101232
  "aria-hidden": true
100767
101233
  }, props), {}, {
100768
- children: /*#__PURE__*/_jsx("path", {
101234
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)("path", {
100769
101235
  d: "M2.5 4.5L6 8l3.5-3.5",
100770
101236
  stroke: "currentColor",
100771
101237
  strokeWidth: "1.5",
@@ -100775,7 +101241,7 @@ function IconChevronDown(props) {
100775
101241
  }));
100776
101242
  }
100777
101243
  function IconUser(props) {
100778
- return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", _objectSpread(_objectSpread({
101244
+ return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", HeaderIcons_objectSpread(HeaderIcons_objectSpread({
100779
101245
  width: "18",
100780
101246
  height: "18",
100781
101247
  viewBox: "0 0 24 24",
@@ -100792,7 +101258,7 @@ function IconUser(props) {
100792
101258
  }));
100793
101259
  }
100794
101260
  function IconCart(props) {
100795
- return /*#__PURE__*/(0,jsx_runtime_.jsxs)("svg", _objectSpread(_objectSpread({
101261
+ return /*#__PURE__*/(0,jsx_runtime_.jsxs)("svg", HeaderIcons_objectSpread(HeaderIcons_objectSpread({
100796
101262
  width: "20",
100797
101263
  height: "20",
100798
101264
  viewBox: "0 0 24 24",
@@ -100820,7 +101286,7 @@ function IconCart(props) {
100820
101286
  }));
100821
101287
  }
100822
101288
  function IconArrowRight(props) {
100823
- return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", _objectSpread(_objectSpread({
101289
+ return /*#__PURE__*/(0,jsx_runtime_.jsx)("svg", HeaderIcons_objectSpread(HeaderIcons_objectSpread({
100824
101290
  width: "14",
100825
101291
  height: "14",
100826
101292
  viewBox: "0 0 24 24",
@@ -100847,14 +101313,19 @@ function HeaderAccountRegion(_ref) {
100847
101313
  var data = _ref.data;
100848
101314
  return /*#__PURE__*/(0,jsx_runtime_.jsxs)(AccountCluster, {
100849
101315
  "data-region": "account",
100850
- children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(IconUser, {}), /*#__PURE__*/(0,jsx_runtime_.jsx)(UtilityButton, {
101316
+ children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(IconUser, {
101317
+ className: "account-icon"
101318
+ }), /*#__PURE__*/(0,jsx_runtime_.jsx)(UtilityButton, {
100851
101319
  type: "button",
101320
+ className: "account-sign-up",
100852
101321
  children: data.sign_up_label
100853
101322
  }), /*#__PURE__*/(0,jsx_runtime_.jsx)(UtilityBarDivider, {
100854
101323
  "aria-hidden": true,
101324
+ className: "account-divider",
100855
101325
  children: "/"
100856
101326
  }), /*#__PURE__*/(0,jsx_runtime_.jsx)(UtilityButton, {
100857
101327
  type: "button",
101328
+ className: "account-sign-in",
100858
101329
  children: data.sign_in_label
100859
101330
  })]
100860
101331
  });
@@ -100891,10 +101362,10 @@ HeaderCartRegion.propTypes = {
100891
101362
  }).isRequired
100892
101363
  };
100893
101364
  ;// ./src/components/header/regions/HeaderSearchRegion.jsx
100894
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
101365
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || HeaderSearchRegion_unsupportedIterableToArray(r, e) || _nonIterableRest(); }
100895
101366
  function _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."); }
100896
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _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) ? _arrayLikeToArray(r, a) : void 0; } }
100897
- function _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; }
101367
+ function HeaderSearchRegion_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return HeaderSearchRegion_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) ? HeaderSearchRegion_arrayLikeToArray(r, a) : void 0; } }
101368
+ function HeaderSearchRegion_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; }
100898
101369
  function _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; } }
100899
101370
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
100900
101371
 
@@ -101226,124 +101697,70 @@ var TopRibbon = function TopRibbon(_ref) {
101226
101697
  };
101227
101698
  TopRibbon.propTypes = TopRibbonPropTypes;
101228
101699
  /* harmony default export */ const top_ribbon_TopRibbon = (TopRibbon);
101229
- // EXTERNAL MODULE: ./node_modules/@nuskin/foundation-ui-components/dist/index.js
101230
- var dist = __webpack_require__(4814);
101231
- ;// ./src/components/brand/Brand.styled.jsx
101232
-
101233
- 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)."; }
101234
- var BrandRoot = /*#__PURE__*/createStyled("div", true ? {
101235
- target: "eum1fxs3"
101236
- } : 0)( true ? {
101237
- name: "zjik7",
101238
- styles: "display:flex"
101239
- } : 0);
101240
- var BrandLogoLink = /*#__PURE__*/createStyled("a", true ? {
101241
- target: "eum1fxs2"
101242
- } : 0)( true ? {
101243
- name: "1puv40q",
101244
- styles: "display:inline-flex;align-items:center;line-height:0;text-decoration:none"
101245
- } : 0);
101246
- var ResponsiveBrandWrapper = /*#__PURE__*/createStyled("div", true ? {
101247
- target: "eum1fxs1"
101248
- } : 0)("display:flex;align-items:center;", function (_ref) {
101249
- var mobileWidth = _ref.mobileWidth,
101250
- desktopWidth = _ref.desktopWidth,
101251
- mobileHeight = _ref.mobileHeight,
101252
- desktopHeight = _ref.desktopHeight;
101253
- 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 ");
101254
- }, ";" + ( true ? "" : 0));
101255
- var BrandLogoImg = /*#__PURE__*/createStyled("img", true ? {
101256
- target: "eum1fxs0"
101257
- } : 0)( true ? {
101258
- name: "kmohbm",
101259
- styles: "display:block;width:auto;height:24px"
101260
- } : 0);
101261
- ;// ./src/components/brand/constants.js
101262
- var DEFAULT_LOGO_ALT = "Nuskin Brand Logo";
101263
- var DEFAULT_HREF = typeof window !== "undefined" ? window.location.origin : "/";
101264
- var SIZE_MAP = {
101265
- desktop: {
101266
- small: "68.18px",
101267
- medium: "108px",
101268
- large: "136.36px"
101269
- },
101270
- mobile: {
101271
- small: "45px",
101272
- medium: "64px",
101273
- large: "90px"
101274
- }
101275
- };
101276
- var HEIGHT_MAP = {
101277
- desktop: "30px",
101278
- mobile: "18px"
101279
- };
101280
- ;// ./src/components/brand/Brand.jsx
101281
- function Brand_typeof(o) { "@babel/helpers - typeof"; return Brand_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_typeof(o); }
101282
- function Brand_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; }
101283
- function Brand_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Brand_ownKeys(Object(t), !0).forEach(function (r) { Brand_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Brand_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
101284
- function Brand_defineProperty(e, r, t) { return (r = Brand_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
101285
- function Brand_toPropertyKey(t) { var i = Brand_toPrimitive(t, "string"); return "symbol" == Brand_typeof(i) ? i : i + ""; }
101286
- function Brand_toPrimitive(t, r) { if ("object" != Brand_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Brand_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
101700
+ ;// ./src/components/header/MobileHeaderDrawer.jsx
101287
101701
 
101288
101702
 
101289
101703
 
101290
101704
 
101291
101705
 
101292
101706
 
101293
- function getResponsiveSize(size) {
101294
- return {
101295
- mobileWidth: SIZE_MAP.mobile[size] || SIZE_MAP.mobile.medium,
101296
- desktopWidth: SIZE_MAP.desktop[size] || SIZE_MAP.desktop.medium,
101297
- mobileHeight: HEIGHT_MAP.mobile,
101298
- desktopHeight: HEIGHT_MAP.desktop
101299
- };
101300
- }
101301
- function Brand(_ref) {
101302
- var logo = _ref.logo,
101303
- logoAlt = _ref.logoAlt,
101304
- href = _ref.href,
101305
- showLogo = _ref.showLogo,
101306
- size = _ref.size;
101307
- var resolvedHref = href || DEFAULT_HREF;
101308
- var responsiveSize = getResponsiveSize(size);
101309
- if (!showLogo) return null;
101310
- return /*#__PURE__*/(0,jsx_runtime_.jsx)(BrandRoot, {
101311
- "data-testid": "brand",
101312
- children: /*#__PURE__*/(0,jsx_runtime_.jsx)(BrandLogoLink, {
101313
- href: resolvedHref,
101314
- "data-testid": "brand-logo-link",
101315
- children: /*#__PURE__*/(0,jsx_runtime_.jsx)(ResponsiveBrandWrapper, {
101316
- mobileWidth: responsiveSize.mobileWidth,
101317
- desktopWidth: responsiveSize.desktopWidth,
101318
- mobileHeight: responsiveSize.mobileHeight,
101319
- desktopHeight: responsiveSize.desktopHeight,
101320
- children: /*#__PURE__*/(0,jsx_runtime_.jsx)(dist.NsBrandComponent, Brand_objectSpread(Brand_objectSpread(Brand_objectSpread({}, logo && {
101321
- logoUrl: logo,
101322
- logoAlt: logoAlt
101323
- }), !logo && {
101324
- variant: "wordmark",
101325
- color: "black"
101326
- }), {}, {
101327
- size: responsiveSize.desktopWidth,
101328
- "data-testid": "brand-logo-img"
101329
- }))
101330
- })
101331
- })
101332
- });
101333
- }
101334
- Brand.propTypes = {
101335
- logo: (external_prop_types_default()).string,
101336
- logoAlt: (external_prop_types_default()).string,
101337
- href: (external_prop_types_default()).string,
101338
- showLogo: (external_prop_types_default()).bool,
101339
- size: external_prop_types_default().oneOf(["small", "medium", "large"])
101340
- };
101341
- Brand.defaultProps = {
101342
- logo: undefined,
101343
- logoAlt: DEFAULT_LOGO_ALT,
101344
- href: DEFAULT_HREF,
101345
- showLogo: true,
101346
- size: "medium"
101707
+ function MobileHeaderDrawer(_ref) {
101708
+ var _navigationData$topNa;
101709
+ var isOpen = _ref.isOpen,
101710
+ onClose = _ref.onClose,
101711
+ logoData = _ref.logoData,
101712
+ localeData = _ref.localeData,
101713
+ navigationData = _ref.navigationData,
101714
+ loyaltyData = _ref.loyaltyData;
101715
+ if (!isOpen) return null;
101716
+ return /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileDrawer, {
101717
+ children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerBackdrop, {
101718
+ onClick: onClose,
101719
+ "aria-label": "Close menu"
101720
+ }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileDrawerContent, {
101721
+ children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerHeader, {
101722
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerLogoSlot, {
101723
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(Brand, {
101724
+ logo: logoData.logo,
101725
+ logoAlt: logoData.logoAlt,
101726
+ href: logoData.href,
101727
+ showLogo: logoData.showLogo,
101728
+ size: logoData.size || "Large",
101729
+ $: logoData.$
101730
+ })
101731
+ })
101732
+ }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileDrawerNav, {
101733
+ children: [(_navigationData$topNa = navigationData.topNavItems) === null || _navigationData$topNa === void 0 ? void 0 : _navigationData$topNa.map(function (item) {
101734
+ return /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerNavItem, {
101735
+ children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileDrawerNavButton, {
101736
+ children: [item.label, /*#__PURE__*/(0,jsx_runtime_.jsx)(IconChevronDown, {})]
101737
+ })
101738
+ }, item.id);
101739
+ }), (loyaltyData === null || loyaltyData === void 0 ? void 0 : loyaltyData.link_label) && /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerNavItem, {
101740
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerNavButton, {
101741
+ as: "a",
101742
+ href: loyaltyData.href,
101743
+ style: {
101744
+ justifyContent: 'flex-start'
101745
+ },
101746
+ children: loyaltyData.link_label
101747
+ })
101748
+ }), /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileDrawerNavItem, {
101749
+ children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileDrawerLocaleButton, {
101750
+ children: [localeData.control_label, /*#__PURE__*/(0,jsx_runtime_.jsx)(IconChevronDown, {})]
101751
+ })
101752
+ })]
101753
+ })]
101754
+ })]
101755
+ });
101756
+ }
101757
+ MobileHeaderDrawer.propTypes = {
101758
+ isOpen: (external_prop_types_default()).bool.isRequired,
101759
+ onClose: (external_prop_types_default()).func.isRequired,
101760
+ logoData: (external_prop_types_default()).object.isRequired,
101761
+ localeData: (external_prop_types_default()).object.isRequired,
101762
+ navigationData: (external_prop_types_default()).object.isRequired,
101763
+ loyaltyData: (external_prop_types_default()).object
101347
101764
  };
101348
101765
  // EXTERNAL MODULE: ./node_modules/@mui/material/Button/Button.js
101349
101766
  var Button = __webpack_require__(1629);
@@ -102573,10 +102990,10 @@ var EmptyState = /*#__PURE__*/createStyled("p", true ? {
102573
102990
  } : 0)("margin:0;text-align:center;color:", CountryListSelectorTheme.colors.mutedText, ";" + ( true ? "" : 0));
102574
102991
  ;// ./src/components/country-list-selector/CountryListSelector.jsx
102575
102992
  function CountryListSelector_typeof(o) { "@babel/helpers - typeof"; return CountryListSelector_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; }, CountryListSelector_typeof(o); }
102576
- function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
102577
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
102578
- function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
102579
- function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
102993
+ function CountryListSelector_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return CountryListSelector_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (CountryListSelector_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, CountryListSelector_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, CountryListSelector_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), CountryListSelector_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", CountryListSelector_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), CountryListSelector_regeneratorDefine2(u), CountryListSelector_regeneratorDefine2(u, o, "Generator"), CountryListSelector_regeneratorDefine2(u, n, function () { return this; }), CountryListSelector_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (CountryListSelector_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
102994
+ function CountryListSelector_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } CountryListSelector_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { CountryListSelector_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, CountryListSelector_regeneratorDefine2(e, r, n, t); }
102995
+ function CountryListSelector_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
102996
+ function CountryListSelector_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { CountryListSelector_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { CountryListSelector_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
102580
102997
  function CountryListSelector_slicedToArray(r, e) { return CountryListSelector_arrayWithHoles(r) || CountryListSelector_iterableToArrayLimit(r, e) || CountryListSelector_unsupportedIterableToArray(r, e) || CountryListSelector_nonIterableRest(); }
102581
102998
  function CountryListSelector_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."); }
102582
102999
  function CountryListSelector_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return CountryListSelector_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) ? CountryListSelector_arrayLikeToArray(r, a) : void 0; } }
@@ -102797,9 +103214,9 @@ function CountryListSelector(_ref3) {
102797
103214
  var effectiveSelectedCountryId = selectedCountryId !== null && selectedCountryId !== void 0 ? selectedCountryId : internalSelection.countryId;
102798
103215
  var effectiveSelectedLocaleId = (_ref4 = selectedLocaleId !== null && selectedLocaleId !== void 0 ? selectedLocaleId : selectedLocaleCode) !== null && _ref4 !== void 0 ? _ref4 : internalSelection.localeId;
102799
103216
  var navigateByLocale = (0,external_react_.useCallback)(/*#__PURE__*/function () {
102800
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref5) {
103217
+ var _ref6 = CountryListSelector_asyncToGenerator(/*#__PURE__*/CountryListSelector_regenerator().m(function _callee(_ref5) {
102801
103218
  var country, locale, region, onNavigate, resolved, _t, _t2;
102802
- return _regenerator().w(function (_context) {
103219
+ return CountryListSelector_regenerator().w(function (_context) {
102803
103220
  while (1) switch (_context.p = _context.n) {
102804
103221
  case 0:
102805
103222
  country = _ref5.country, locale = _ref5.locale, region = _ref5.region, onNavigate = _ref5.onNavigate;
@@ -103504,263 +103921,6 @@ function createHeaderMarketSelectorService() {
103504
103921
  }
103505
103922
  };
103506
103923
  }
103507
- ;// external "@contentstack/delivery-sdk"
103508
- const delivery_sdk_namespaceObject = require("@contentstack/delivery-sdk");
103509
- var delivery_sdk_default = /*#__PURE__*/__webpack_require__.n(delivery_sdk_namespaceObject);
103510
- ;// external "@contentstack/live-preview-utils"
103511
- const live_preview_utils_namespaceObject = require("@contentstack/live-preview-utils");
103512
- var live_preview_utils_default = /*#__PURE__*/__webpack_require__.n(live_preview_utils_namespaceObject);
103513
- ;// external "@contentstack/utils"
103514
- const utils_namespaceObject = require("@contentstack/utils");
103515
- ;// ./src/utils/constants.js
103516
- var HEADER_CONTENT_ENTRY_UID = "global_header";
103517
- var referenceFields = (/* unused pure expression or super */ null && (["top_navigation", "top_navigation.menu_items.menu_item", "top_navigation.menu_items.menu_item.sub_categories.category_section.items.product_category.category", "market_selector.regions.markets.languages"]));
103518
- var CONTENTSTACK_API_KEY = process.env.CONTENTSTACK_API_KEY;
103519
- var CONTENTSTACK_DELIVERY_TOKEN = process.env.CONTENTSTACK_DELIVERY_TOKEN;
103520
- var CONTENTSTACK_ENVIRONMENT = process.env.CONTENTSTACK_ENVIRONMENT;
103521
- var CONTENTSTACK_PREVIEW_TOKEN = process.env.CONTENTSTACK_PREVIEW_TOKEN;
103522
-
103523
- ;// ./src/utils/contentstack.js
103524
- /* unused harmony import specifier */ var ContentstackLivePreview;
103525
- /* unused harmony import specifier */ var addEditableTags;
103526
- /* unused harmony import specifier */ var contentstack_CONTENTSTACK_API_KEY;
103527
- /* unused harmony import specifier */ var contentstack_CONTENTSTACK_ENVIRONMENT;
103528
- function contentstack_typeof(o) { "@babel/helpers - typeof"; return contentstack_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; }, contentstack_typeof(o); }
103529
- function contentstack_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return contentstack_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (contentstack_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, contentstack_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, contentstack_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), contentstack_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", contentstack_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), contentstack_regeneratorDefine2(u), contentstack_regeneratorDefine2(u, o, "Generator"), contentstack_regeneratorDefine2(u, n, function () { return this; }), contentstack_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (contentstack_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
103530
- function contentstack_regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } contentstack_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { contentstack_regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, contentstack_regeneratorDefine2(e, r, n, t); }
103531
- function contentstack_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
103532
- function contentstack_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { contentstack_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { contentstack_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
103533
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || contentstack_unsupportedIterableToArray(r) || _nonIterableSpread(); }
103534
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
103535
- function contentstack_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return contentstack_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) ? contentstack_arrayLikeToArray(r, a) : void 0; } }
103536
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
103537
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return contentstack_arrayLikeToArray(r); }
103538
- function contentstack_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; }
103539
- function contentstack_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; }
103540
- function contentstack_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? contentstack_ownKeys(Object(t), !0).forEach(function (r) { contentstack_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : contentstack_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
103541
- function contentstack_defineProperty(e, r, t) { return (r = contentstack_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
103542
- function contentstack_toPropertyKey(t) { var i = contentstack_toPrimitive(t, "string"); return "symbol" == contentstack_typeof(i) ? i : i + ""; }
103543
- function contentstack_toPrimitive(t, r) { if ("object" != contentstack_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != contentstack_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
103544
-
103545
-
103546
-
103547
-
103548
-
103549
- /**
103550
- * Contentstack delivery stack, live preview, and entry fetch.
103551
- * TODO: Call getContent from header UI once the URL/slug strategy is defined;
103552
- * wire initLivePreview / onEntryChange in Visual Builder.
103553
- */
103554
-
103555
- // Detect cs_branch from the current URL.
103556
- // Client-side: read from window.location.search at module load time.
103557
- // SSR: call setRequestUrl(req.url) from the server before rendering.
103558
- var _branch = "main";
103559
- if (typeof window !== "undefined") {
103560
- var _params$get;
103561
- var params = new URLSearchParams(window.location.search);
103562
- _branch = (_params$get = params.get("cs_branch")) !== null && _params$get !== void 0 ? _params$get : "main";
103563
- }
103564
-
103565
- // Called by the server render layer to detect cs_branch from the request URL.
103566
- function setRequestUrl(url) {
103567
- var _url$split$, _params$get2;
103568
- var search = (_url$split$ = url === null || url === void 0 ? void 0 : url.split("?")[1]) !== null && _url$split$ !== void 0 ? _url$split$ : "";
103569
- var params = new URLSearchParams(search);
103570
- var newBranch = (_params$get2 = params.get("cs_branch")) !== null && _params$get2 !== void 0 ? _params$get2 : "main";
103571
- if (newBranch !== _branch) {
103572
- _branch = newBranch;
103573
- _stack = null;
103574
- _livePreviewInitialized = false; // ← add this
103575
- }
103576
- }
103577
-
103578
- // Lazy-initialize the stack to avoid "API key is required" errors
103579
- // when this module is loaded via Module Federation on the host server
103580
- // (where env vars may not be available).
103581
- var _stack = null;
103582
- function getStack() {
103583
- if (!_stack) {
103584
- _stack = delivery_sdk_default().stack(contentstack_objectSpread(contentstack_objectSpread({
103585
- apiKey: CONTENTSTACK_API_KEY,
103586
- deliveryToken: CONTENTSTACK_DELIVERY_TOKEN,
103587
- environment: CONTENTSTACK_ENVIRONMENT
103588
- }, _branch && {
103589
- branch: _branch
103590
- }), {}, {
103591
- live_preview: {
103592
- enable: true,
103593
- preview_token: CONTENTSTACK_PREVIEW_TOKEN,
103594
- host: "rest-preview.contentstack.com"
103595
- }
103596
- }));
103597
- }
103598
- return _stack;
103599
- }
103600
- var BRIDGED_CONFIG_KEYS = ["live_preview", "headers", "environment"];
103601
- var stack = new Proxy({}, {
103602
- get: function get(_, prop) {
103603
- var s = getStack();
103604
- if (BRIDGED_CONFIG_KEYS.includes(prop)) {
103605
- var _s$config;
103606
- return (_s$config = s.config) === null || _s$config === void 0 ? void 0 : _s$config[prop];
103607
- }
103608
- return s[prop];
103609
- },
103610
- set: function set(_, prop, value) {
103611
- var s = getStack();
103612
- if (BRIDGED_CONFIG_KEYS.includes(prop)) {
103613
- if (!s.config) return false;
103614
- s.config[prop] = value;
103615
- return true;
103616
- }
103617
- s[prop] = value;
103618
- return true;
103619
- },
103620
- has: function has(_, prop) {
103621
- if (BRIDGED_CONFIG_KEYS.includes(prop)) return true;
103622
- return prop in getStack();
103623
- },
103624
- ownKeys: function ownKeys() {
103625
- return _toConsumableArray(new Set([].concat(_toConsumableArray(Reflect.ownKeys(getStack())), BRIDGED_CONFIG_KEYS)));
103626
- },
103627
- getOwnPropertyDescriptor: function getOwnPropertyDescriptor(_, prop) {
103628
- if (BRIDGED_CONFIG_KEYS.includes(prop)) {
103629
- var _getStack$config;
103630
- return {
103631
- configurable: true,
103632
- enumerable: true,
103633
- writable: true,
103634
- value: (_getStack$config = getStack().config) === null || _getStack$config === void 0 ? void 0 : _getStack$config[prop]
103635
- };
103636
- }
103637
- return Object.getOwnPropertyDescriptor(getStack(), prop);
103638
- }
103639
- });
103640
- var _livePreviewInitialized = false;
103641
- var onEntryChange = live_preview_utils_default().onEntryChange.bind((live_preview_utils_default()));
103642
- function initLivePreview() {
103643
- if (_livePreviewInitialized) return;
103644
- _livePreviewInitialized = true;
103645
- ContentstackLivePreview.init({
103646
- ssr: false,
103647
- enable: true,
103648
- mode: "builder",
103649
- stackSdk: stack,
103650
- stackDetails: {
103651
- apiKey: contentstack_CONTENTSTACK_API_KEY,
103652
- environment: contentstack_CONTENTSTACK_ENVIRONMENT
103653
- },
103654
- clientUrlParams: {
103655
- host: "app.contentstack.com"
103656
- },
103657
- editButton: {
103658
- enable: false
103659
- }
103660
- });
103661
- }
103662
- function isEditingMode() {
103663
- if (typeof window === "undefined") {
103664
- return false;
103665
- }
103666
- if (window.self !== window.top) {
103667
- return true;
103668
- }
103669
- var params = new URLSearchParams(window.location.search);
103670
- return params.has("visual-builder") || params.has("contentstack") || params.has("live_preview");
103671
- }
103672
- var getContent = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
103673
- var _ref = contentstack_asyncToGenerator(/*#__PURE__*/contentstack_regenerator().m(function _callee2() {
103674
- var _ref2,
103675
- url,
103676
- uid,
103677
- contentType,
103678
- language,
103679
- _ref2$referenceFields,
103680
- referenceFields,
103681
- tryFetch,
103682
- result,
103683
- fallbackResult,
103684
- _args2 = arguments,
103685
- _t,
103686
- _t2;
103687
- return contentstack_regenerator().w(function (_context2) {
103688
- while (1) switch (_context2.p = _context2.n) {
103689
- case 0:
103690
- _ref2 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, url = _ref2.url, uid = _ref2.uid, contentType = _ref2.contentType, language = _ref2.language, _ref2$referenceFields = _ref2.referenceFields, referenceFields = _ref2$referenceFields === void 0 ? [] : _ref2$referenceFields;
103691
- tryFetch = /*#__PURE__*/function () {
103692
- var _ref3 = contentstack_asyncToGenerator(/*#__PURE__*/contentstack_regenerator().m(function _callee(locale) {
103693
- var CT, fetched, _result$entries, urlWithSlash, result;
103694
- return contentstack_regenerator().w(function (_context) {
103695
- while (1) switch (_context.n) {
103696
- case 0:
103697
- CT = stack.contentType(contentType);
103698
- fetched = null;
103699
- if (!uid) {
103700
- _context.n = 2;
103701
- break;
103702
- }
103703
- _context.n = 1;
103704
- return CT.entry(uid).locale(locale).includeReference(referenceFields).fetch();
103705
- case 1:
103706
- fetched = _context.v;
103707
- _context.n = 4;
103708
- break;
103709
- case 2:
103710
- if (!url) {
103711
- _context.n = 4;
103712
- break;
103713
- }
103714
- urlWithSlash = url.startsWith("/") ? url : "/".concat(url);
103715
- _context.n = 3;
103716
- return CT.entry().locale(locale).includeReference(referenceFields).query({
103717
- url: urlWithSlash
103718
- }).find();
103719
- case 3:
103720
- result = _context.v;
103721
- fetched = (_result$entries = result.entries) === null || _result$entries === void 0 ? void 0 : _result$entries[0];
103722
- case 4:
103723
- if (isEditingMode() && fetched) {
103724
- addEditableTags(fetched, contentType, true, language, {
103725
- useLowerCaseLocale: false
103726
- });
103727
- }
103728
- return _context.a(2, fetched);
103729
- }
103730
- }, _callee);
103731
- }));
103732
- return function tryFetch(_x) {
103733
- return _ref3.apply(this, arguments);
103734
- };
103735
- }();
103736
- _context2.p = 1;
103737
- _context2.n = 2;
103738
- return tryFetch(language);
103739
- case 2:
103740
- result = _context2.v;
103741
- return _context2.a(2, result);
103742
- case 3:
103743
- _context2.p = 3;
103744
- _t = _context2.v;
103745
- console.warn("Failed to fetch content with language:", language, _t.message);
103746
- _context2.p = 4;
103747
- _context2.n = 5;
103748
- return tryFetch("en");
103749
- case 5:
103750
- fallbackResult = _context2.v;
103751
- return _context2.a(2, fallbackResult);
103752
- case 6:
103753
- _context2.p = 6;
103754
- _t2 = _context2.v;
103755
- console.warn("Failed to fetch content with fallback language:", _t2.message);
103756
- return _context2.a(2, null);
103757
- }
103758
- }, _callee2, null, [[4, 6], [1, 3]]);
103759
- }));
103760
- return function getContent() {
103761
- return _ref.apply(this, arguments);
103762
- };
103763
- }()));
103764
103924
  ;// ./src/components/market-selector/MarketSelector.jsx
103765
103925
  function MarketSelector_typeof(o) { "@babel/helpers - typeof"; return MarketSelector_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; }, MarketSelector_typeof(o); }
103766
103926
  function MarketSelector_regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return MarketSelector_regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (MarketSelector_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, MarketSelector_regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, MarketSelector_regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), MarketSelector_regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", MarketSelector_regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), MarketSelector_regeneratorDefine2(u), MarketSelector_regeneratorDefine2(u, o, "Generator"), MarketSelector_regeneratorDefine2(u, n, function () { return this; }), MarketSelector_regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (MarketSelector_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
@@ -104323,6 +104483,15 @@ MarketSelector.propTypes = {
104323
104483
  }), external_prop_types_default().arrayOf((external_prop_types_default()).object)])
104324
104484
  };
104325
104485
  ;// ./src/components/header/HeaderView.jsx
104486
+ function HeaderView_slicedToArray(r, e) { return HeaderView_arrayWithHoles(r) || HeaderView_iterableToArrayLimit(r, e) || HeaderView_unsupportedIterableToArray(r, e) || HeaderView_nonIterableRest(); }
104487
+ function HeaderView_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."); }
104488
+ function HeaderView_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return HeaderView_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) ? HeaderView_arrayLikeToArray(r, a) : void 0; } }
104489
+ function HeaderView_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; }
104490
+ function HeaderView_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; } }
104491
+ function HeaderView_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
104492
+
104493
+
104494
+
104326
104495
 
104327
104496
 
104328
104497
 
@@ -104411,12 +104580,17 @@ var DEFAULT_TOP_RIBBON_LINKS = [{
104411
104580
  ariaLabel: "Shop Gifts"
104412
104581
  }];
104413
104582
  function HeaderView(_ref) {
104414
- var _headerEntry$logo, _headerEntry$loyalty, _headerEntry$account, _headerEntry$cart, _headerEntry$search, _headerEntry$top_ribb, _headerEntry$navigati, _headerEntry$market_s, _ref2, _headerEntry$locale, _headerEntry$$;
104583
+ var _headerEntry$logo, _headerEntry$locale_s, _headerEntry$loyalty, _headerEntry$account, _headerEntry$cart, _headerEntry$search, _headerEntry$top_ribb, _headerEntry$navigati, _headerEntry$market_s, _ref2, _headerEntry$locale, _headerEntry$$;
104415
104584
  var country = _ref.country,
104416
104585
  language = _ref.language,
104417
104586
  locale = _ref.locale,
104418
104587
  headerEntry = _ref.headerEntry;
104419
- var logoData = (_headerEntry$logo = headerEntry === null || headerEntry === void 0 ? void 0 : headerEntry.logo) !== null && _headerEntry$logo !== void 0 ? _headerEntry$logo : DEFAULT_LOGO;
104588
+ var _useState = (0,external_react_.useState)(false),
104589
+ _useState2 = HeaderView_slicedToArray(_useState, 2),
104590
+ isMobileMenuOpen = _useState2[0],
104591
+ setIsMobileMenuOpen = _useState2[1];
104592
+ var logoData = parseLogoData((_headerEntry$logo = headerEntry === null || headerEntry === void 0 ? void 0 : headerEntry.logo) !== null && _headerEntry$logo !== void 0 ? _headerEntry$logo : DEFAULT_LOGO);
104593
+ var localeData = (_headerEntry$locale_s = headerEntry === null || headerEntry === void 0 ? void 0 : headerEntry.locale_selector) !== null && _headerEntry$locale_s !== void 0 ? _headerEntry$locale_s : DEFAULT_LOCALE;
104420
104594
  var loyaltyData = (_headerEntry$loyalty = headerEntry === null || headerEntry === void 0 ? void 0 : headerEntry.loyalty) !== null && _headerEntry$loyalty !== void 0 ? _headerEntry$loyalty : DEFAULT_LOYALTY;
104421
104595
  var accountData = (_headerEntry$account = headerEntry === null || headerEntry === void 0 ? void 0 : headerEntry.account) !== null && _headerEntry$account !== void 0 ? _headerEntry$account : DEFAULT_ACCOUNT;
104422
104596
  var cartData = (_headerEntry$cart = headerEntry === null || headerEntry === void 0 ? void 0 : headerEntry.cart) !== null && _headerEntry$cart !== void 0 ? _headerEntry$cart : DEFAULT_CART;
@@ -104434,10 +104608,31 @@ function HeaderView(_ref) {
104434
104608
  ariaLabel: "Top navigation",
104435
104609
  dataTestId: "header-top-ribbon"
104436
104610
  }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(TopHeaderRow, {
104437
- children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(LogoSlot, {
104438
- children: /*#__PURE__*/(0,jsx_runtime_.jsx)(HeaderLogoRegion, {
104439
- data: logoData
104611
+ children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MobileMenuButton, {
104612
+ onClick: function onClick() {
104613
+ return setIsMobileMenuOpen(true);
104614
+ },
104615
+ "aria-label": "Open menu",
104616
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(IconMenu, {})
104617
+ }), /*#__PURE__*/(0,jsx_runtime_.jsx)(LogoSlot, {
104618
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(Brand, {
104619
+ logo: logoData.logo,
104620
+ logoAlt: logoData.logoAlt,
104621
+ href: logoData.href,
104622
+ showLogo: logoData.showLogo,
104623
+ size: logoData.size,
104624
+ $: logoData.$
104440
104625
  })
104626
+ }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileUtilityBar, {
104627
+ children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(HeaderAccountRegion, {
104628
+ data: accountData
104629
+ }), /*#__PURE__*/(0,jsx_runtime_.jsx)(UtilityButton, {
104630
+ type: "button",
104631
+ "aria-label": searchData.input_aria_label,
104632
+ children: /*#__PURE__*/(0,jsx_runtime_.jsx)(IconSearch, {})
104633
+ }), /*#__PURE__*/(0,jsx_runtime_.jsx)(HeaderCartRegion, {
104634
+ data: cartData
104635
+ })]
104441
104636
  }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(RightHeaderCluster, {
104442
104637
  children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)(UtilityBar, {
104443
104638
  "data-region": "utility-bar",
@@ -104462,6 +104657,15 @@ function HeaderView(_ref) {
104462
104657
  children: /*#__PURE__*/(0,jsx_runtime_.jsx)(HeaderNavigationRegion, {
104463
104658
  data: navigationData
104464
104659
  })
104660
+ }), /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileHeaderDrawer, {
104661
+ isOpen: isMobileMenuOpen,
104662
+ onClose: function onClose() {
104663
+ return setIsMobileMenuOpen(false);
104664
+ },
104665
+ logoData: logoData,
104666
+ localeData: localeData,
104667
+ navigationData: navigationData,
104668
+ loyaltyData: loyaltyData
104465
104669
  })]
104466
104670
  });
104467
104671
  }