@nok-integration/storefront-react 0.19.40 → 0.19.42

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.
@@ -4647,7 +4647,7 @@ function requireOrderTracking() {
4647
4647
  Object.defineProperty(exports, "__esModule", {
4648
4648
  value: true
4649
4649
  });
4650
- exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.OrderList = exports.OrderSummaryItem = exports.ReturnStatus = exports.OrderItem = exports.OrderTracking = exports.OrderProgressEntry = exports.OrderProgressStep = void 0;
4650
+ exports.ReturnDetail = exports.ReturnItem = exports.ReturnProgressEntry = exports.CreateReturnRequest = exports.ReturnRequestItem = exports.FanReturnReason = exports.RequestCancellationRequest = exports.FanCancelReason = exports.OrderDetail = exports.ReturnSummary = exports.OrderList = exports.OrderSummaryItem = exports.ReturnOutcome = exports.ReturnStatus = exports.OrderItem = exports.OrderTracking = exports.OrderProgressEntry = exports.OrderProgressStep = void 0;
4651
4651
  const zod_1 = requireZod();
4652
4652
  const money_1 = requireMoney();
4653
4653
  const ids_1 = requireIds();
@@ -4680,6 +4680,7 @@ function requireOrderTracking() {
4680
4680
  returned_qty: zod_1.z.number().int().nonnegative().optional()
4681
4681
  });
4682
4682
  exports.ReturnStatus = zod_1.z.enum(["reported", "package_received", "completed"]);
4683
+ exports.ReturnOutcome = zod_1.z.enum(["accepted", "rejected", "partial"]);
4683
4684
  exports.OrderSummaryItem = zod_1.z.object({
4684
4685
  order_ref: ids_1.OrderRef,
4685
4686
  placed_at: common_1.Timestamp,
@@ -5523,13 +5524,13 @@ function Skeleton({ width, height, radius, className, circle }) {
5523
5524
  style
5524
5525
  });
5525
5526
  }
5526
- const surface$1 = "_surface_zq8bq_10";
5527
- const fill = "_fill_zq8bq_35";
5527
+ const surface$1 = "_surface_ekrjo_10";
5528
+ const fill = "_fill_ekrjo_35";
5528
5529
  const styles$O = {
5529
5530
  surface: surface$1,
5530
5531
  fill
5531
5532
  };
5532
- const SETTLE_MS$1 = 150;
5533
+ const SETTLE_MS = 150;
5533
5534
  function scrolledOffOrigin(el) {
5534
5535
  for (let node = el.parentElement; node; node = node.parentElement) {
5535
5536
  if (node.scrollTop > 0) return true;
@@ -5553,11 +5554,11 @@ function useTopOffset(ref, property, enabled = true) {
5553
5554
  };
5554
5555
  const settle = () => {
5555
5556
  if (timer2) clearTimeout(timer2);
5556
- timer2 = setTimeout(measure, SETTLE_MS$1);
5557
+ timer2 = setTimeout(measure, SETTLE_MS);
5557
5558
  };
5558
5559
  measure();
5559
5560
  const frame2 = typeof requestAnimationFrame === "undefined" ? void 0 : requestAnimationFrame(measure);
5560
- const settleAfterMount = setTimeout(measure, SETTLE_MS$1);
5561
+ const settleAfterMount = setTimeout(measure, SETTLE_MS);
5561
5562
  window.addEventListener("resize", measure);
5562
5563
  window.addEventListener("orientationchange", measure);
5563
5564
  document.addEventListener("scroll", settle, {
@@ -6598,27 +6599,27 @@ function renderValue(key, pricing, format, t) {
6598
6599
  }
6599
6600
  return key === "discount" ? null : format(pricing[key]);
6600
6601
  }
6601
- const lines$1 = "_lines_10z1i_19";
6602
- const line$2 = "_line_10z1i_19";
6603
- const thumb$2 = "_thumb_10z1i_34";
6604
- const image$9 = "_image_10z1i_44";
6605
- const placeholder$8 = "_placeholder_10z1i_51";
6606
- const lineBody = "_lineBody_10z1i_56";
6607
- const lineText = "_lineText_10z1i_65";
6608
- const lineTitle = "_lineTitle_10z1i_75";
6609
- const lineMeta = "_lineMeta_10z1i_107";
6610
- const detail$1 = "_detail_10z1i_104";
6611
- const linePrice = "_linePrice_10z1i_128";
6612
- const paid$3 = "_paid_10z1i_140";
6613
- const was$4 = "_was_10z1i_153";
6614
- const card$4 = "_card_10z1i_176";
6615
- const cardTitle = "_cardTitle_10z1i_184";
6616
- const cardBody = "_cardBody_10z1i_196";
6617
- const summaryCard = "_summaryCard_10z1i_168";
6618
- const itemsHeader = "_itemsHeader_10z1i_14";
6619
- const itemsTitle = "_itemsTitle_10z1i_239";
6620
- const itemsCount = "_itemsCount_10z1i_250";
6621
- const cardLines = "_cardLines_10z1i_269";
6602
+ const lines$1 = "_lines_1nchz_19";
6603
+ const line$2 = "_line_1nchz_19";
6604
+ const thumb$2 = "_thumb_1nchz_34";
6605
+ const image$9 = "_image_1nchz_44";
6606
+ const placeholder$8 = "_placeholder_1nchz_51";
6607
+ const lineBody = "_lineBody_1nchz_56";
6608
+ const lineText = "_lineText_1nchz_65";
6609
+ const lineTitle = "_lineTitle_1nchz_75";
6610
+ const lineMeta = "_lineMeta_1nchz_107";
6611
+ const detail$1 = "_detail_1nchz_104";
6612
+ const linePrice = "_linePrice_1nchz_128";
6613
+ const paid$3 = "_paid_1nchz_140";
6614
+ const was$4 = "_was_1nchz_153";
6615
+ const card$4 = "_card_1nchz_176";
6616
+ const cardTitle = "_cardTitle_1nchz_184";
6617
+ const cardBody = "_cardBody_1nchz_196";
6618
+ const summaryCard = "_summaryCard_1nchz_168";
6619
+ const itemsHeader = "_itemsHeader_1nchz_14";
6620
+ const itemsTitle = "_itemsTitle_1nchz_239";
6621
+ const itemsCount = "_itemsCount_1nchz_250";
6622
+ const cardLines = "_cardLines_1nchz_269";
6622
6623
  const styles$F = {
6623
6624
  lines: lines$1,
6624
6625
  line: line$2,
@@ -7056,17 +7057,17 @@ function ReturnItemRow({ item: item2, className }) {
7056
7057
  })]
7057
7058
  });
7058
7059
  }
7059
- const page$6 = "_page_j1rbn_7";
7060
- const titles$2 = "_titles_j1rbn_15";
7061
- const title$k = "_title_j1rbn_15";
7062
- const subtitle$7 = "_subtitle_j1rbn_30";
7063
- const list$2 = "_list_j1rbn_38";
7064
- const card$3 = "_card_j1rbn_48";
7065
- const checkSlot = "_checkSlot_j1rbn_61";
7066
- const check = "_check_j1rbn_61";
7067
- const row$6 = "_row_j1rbn_105";
7068
- const reason = "_reason_j1rbn_130";
7069
- const reasonSet = "_reasonSet_j1rbn_150";
7060
+ const page$6 = "_page_1wude_7";
7061
+ const titles$2 = "_titles_1wude_15";
7062
+ const title$k = "_title_1wude_15";
7063
+ const subtitle$7 = "_subtitle_1wude_30";
7064
+ const list$2 = "_list_1wude_38";
7065
+ const card$3 = "_card_1wude_48";
7066
+ const checkSlot = "_checkSlot_1wude_61";
7067
+ const check = "_check_1wude_61";
7068
+ const row$6 = "_row_1wude_105";
7069
+ const reason = "_reason_1wude_130";
7070
+ const reasonSet = "_reasonSet_1wude_150";
7070
7071
  const styles$B = {
7071
7072
  page: page$6,
7072
7073
  titles: titles$2,
@@ -7942,13 +7943,13 @@ function HelpRow({ label: label2, status, onClick }) {
7942
7943
  function shortRef$1(orderRef) {
7943
7944
  return orderRef.replace(/^ord_/, "");
7944
7945
  }
7945
- const page$2 = "_page_2uqhz_6";
7946
- const confirmed = "_confirmed_2uqhz_16";
7947
- const title$h = "_title_2uqhz_22";
7948
- const headline = "_headline_2uqhz_47";
7949
- const subtitle$4 = "_subtitle_2uqhz_65";
7950
- const rule = "_rule_2uqhz_90";
7951
- const done = "_done_2uqhz_107";
7946
+ const page$2 = "_page_o6awf_6";
7947
+ const confirmed = "_confirmed_o6awf_16";
7948
+ const title$h = "_title_o6awf_22";
7949
+ const headline = "_headline_o6awf_47";
7950
+ const subtitle$4 = "_subtitle_o6awf_65";
7951
+ const rule = "_rule_o6awf_89";
7952
+ const done = "_done_o6awf_106";
7952
7953
  const styles$x = {
7953
7954
  page: page$2,
7954
7955
  confirmed,
@@ -9138,11 +9139,11 @@ function ShippingInfo() {
9138
9139
  })]
9139
9140
  });
9140
9141
  }
9141
- const bar = "_bar_coyti_1";
9142
- const floating$1 = "_floating_coyti_53";
9143
- const divider = "_divider_coyti_59";
9144
- const info$1 = "_info_coyti_63";
9145
- const actions = "_actions_coyti_71";
9142
+ const bar = "_bar_1e0f6_1";
9143
+ const floating$1 = "_floating_1e0f6_53";
9144
+ const divider = "_divider_1e0f6_59";
9145
+ const info$1 = "_info_1e0f6_63";
9146
+ const actions = "_actions_1e0f6_71";
9146
9147
  const styles$k = {
9147
9148
  bar,
9148
9149
  floating: floating$1,
@@ -9162,14 +9163,14 @@ function StickyCtaBar({ children, info: info2, variant = "floating" }) {
9162
9163
  })]
9163
9164
  });
9164
9165
  }
9165
- const surface = "_surface_nkc99_15";
9166
- const screen = "_screen_nkc99_20";
9167
- const body$3 = "_body_nkc99_12";
9168
- const items = "_items_nkc99_34";
9169
- const sectionHeader = "_sectionHeader_nkc99_40";
9170
- const sectionTitle = "_sectionTitle_nkc99_46";
9171
- const count = "_count_nkc99_67";
9172
- const lines = "_lines_nkc99_91";
9166
+ const surface = "_surface_3g1wi_15";
9167
+ const screen = "_screen_3g1wi_20";
9168
+ const body$3 = "_body_3g1wi_12";
9169
+ const items = "_items_3g1wi_34";
9170
+ const sectionHeader = "_sectionHeader_3g1wi_40";
9171
+ const sectionTitle = "_sectionTitle_3g1wi_46";
9172
+ const count = "_count_3g1wi_67";
9173
+ const lines = "_lines_3g1wi_91";
9173
9174
  const styles$j = {
9174
9175
  surface,
9175
9176
  screen,
@@ -9428,14 +9429,14 @@ function CartSheetProvider({ children }) {
9428
9429
  })]
9429
9430
  });
9430
9431
  }
9431
- const gallery = "_gallery_16d26_1";
9432
- const track$2 = "_track_16d26_5";
9433
- const slide$1 = "_slide_16d26_29";
9434
- const image$4 = "_image_16d26_36";
9435
- const placeholder$1 = "_placeholder_16d26_40";
9436
- const dots$2 = "_dots_16d26_58";
9437
- const dot$2 = "_dot_16d26_58";
9438
- const dotActive$2 = "_dotActive_16d26_109";
9432
+ const gallery = "_gallery_o876w_1";
9433
+ const track$2 = "_track_o876w_5";
9434
+ const slide$1 = "_slide_o876w_29";
9435
+ const image$4 = "_image_o876w_36";
9436
+ const placeholder$1 = "_placeholder_o876w_40";
9437
+ const dots$2 = "_dots_o876w_58";
9438
+ const dot$2 = "_dot_o876w_58";
9439
+ const dotActive$2 = "_dotActive_o876w_109";
9439
9440
  const styles$i = {
9440
9441
  gallery,
9441
9442
  track: track$2,
@@ -10401,14 +10402,14 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [] })
10401
10402
  })]
10402
10403
  });
10403
10404
  }
10404
- const hero$1 = "_hero_1tiqx_10";
10405
- const image$2 = "_image_1tiqx_42";
10406
- const scrim$1 = "_scrim_1tiqx_70";
10407
- const fade = "_fade_1tiqx_94";
10408
- const text$2 = "_text_1tiqx_108";
10409
- const title$5 = "_title_1tiqx_157";
10410
- const subtitle$2 = "_subtitle_1tiqx_168";
10411
- const noImage = "_noImage_1tiqx_183";
10405
+ const hero$1 = "_hero_s25l3_10";
10406
+ const image$2 = "_image_s25l3_42";
10407
+ const scrim$1 = "_scrim_s25l3_70";
10408
+ const fade = "_fade_s25l3_94";
10409
+ const text$2 = "_text_s25l3_108";
10410
+ const title$5 = "_title_s25l3_157";
10411
+ const subtitle$2 = "_subtitle_s25l3_168";
10412
+ const noImage = "_noImage_s25l3_183";
10412
10413
  const styles$9 = {
10413
10414
  hero: hero$1,
10414
10415
  image: image$2,
@@ -10924,24 +10925,24 @@ function ProductView({ sku, initialData, showRecommendations = true, onNotFound
10924
10925
  })
10925
10926
  });
10926
10927
  }
10927
- const showcase = "_showcase_1qnt2_44";
10928
- const panel = "_panel_1qnt2_48";
10929
- const image = "_image_1qnt2_76";
10930
- const hero = "_hero_1qnt2_116";
10931
- const heroContent = "_heroContent_1qnt2_197";
10932
- const heroText = "_heroText_1qnt2_221";
10933
- const logo = "_logo_1qnt2_230";
10934
- const heroTitle = "_heroTitle_1qnt2_250";
10935
- const heroSub = "_heroSub_1qnt2_274";
10936
- const swipe = "_swipe_1qnt2_293";
10937
- const swipeLabel = "_swipeLabel_1qnt2_300";
10938
- const chevron$1 = "_chevron_1qnt2_306";
10939
- const overlay$1 = "_overlay_1qnt2_11";
10940
- const copy = "_copy_1qnt2_341";
10941
- const title$2 = "_title_1qnt2_346";
10942
- const subtitle$1 = "_subtitle_1qnt2_353";
10943
- const cta = "_cta_1qnt2_359";
10944
- const mosaic = "_mosaic_1qnt2_403";
10928
+ const showcase = "_showcase_t7w1s_59";
10929
+ const panel = "_panel_t7w1s_63";
10930
+ const image = "_image_t7w1s_91";
10931
+ const hero = "_hero_t7w1s_131";
10932
+ const heroContent = "_heroContent_t7w1s_212";
10933
+ const heroText = "_heroText_t7w1s_236";
10934
+ const logo = "_logo_t7w1s_245";
10935
+ const heroTitle = "_heroTitle_t7w1s_265";
10936
+ const heroSub = "_heroSub_t7w1s_289";
10937
+ const swipe = "_swipe_t7w1s_308";
10938
+ const swipeLabel = "_swipeLabel_t7w1s_315";
10939
+ const chevron$1 = "_chevron_t7w1s_321";
10940
+ const overlay$1 = "_overlay_t7w1s_11";
10941
+ const copy = "_copy_t7w1s_356";
10942
+ const title$2 = "_title_t7w1s_361";
10943
+ const subtitle$1 = "_subtitle_t7w1s_368";
10944
+ const cta = "_cta_t7w1s_374";
10945
+ const mosaic = "_mosaic_t7w1s_418";
10945
10946
  const styles$2 = {
10946
10947
  showcase,
10947
10948
  panel,
@@ -10962,7 +10963,6 @@ const styles$2 = {
10962
10963
  cta,
10963
10964
  mosaic
10964
10965
  };
10965
- const SETTLE_MS = 150;
10966
10966
  function useDocumentSnap(ref, enabled = true) {
10967
10967
  useEffect(() => {
10968
10968
  const el = ref.current;
@@ -10970,23 +10970,9 @@ function useDocumentSnap(ref, enabled = true) {
10970
10970
  const root2 = document.documentElement;
10971
10971
  const previousType = root2.style.scrollSnapType;
10972
10972
  const previousPadding = root2.style.scrollPaddingTop;
10973
- let timer2;
10974
- const syncPadding = () => {
10975
- const top2 = getComputedStyle(el).getPropertyValue("--showcase-top").trim();
10976
- root2.style.scrollPaddingTop = top2 === "" ? "0px" : top2;
10977
- };
10978
- const schedule = () => {
10979
- if (timer2) clearTimeout(timer2);
10980
- timer2 = setTimeout(syncPadding, SETTLE_MS);
10981
- };
10982
10973
  root2.style.scrollSnapType = "y mandatory";
10983
- syncPadding();
10984
- window.addEventListener("resize", schedule);
10985
- window.addEventListener("orientationchange", schedule);
10974
+ root2.style.scrollPaddingTop = "0px";
10986
10975
  return () => {
10987
- if (timer2) clearTimeout(timer2);
10988
- window.removeEventListener("resize", schedule);
10989
- window.removeEventListener("orientationchange", schedule);
10990
10976
  root2.style.scrollSnapType = previousType;
10991
10977
  root2.style.scrollPaddingTop = previousPadding;
10992
10978
  };
@@ -11113,7 +11099,6 @@ function HomeShowcase() {
11113
11099
  const assetUrl = useAssetUrl();
11114
11100
  const panels = useSlides();
11115
11101
  const showcaseRef = useRef(null);
11116
- useTopOffset(showcaseRef, "--showcase-top");
11117
11102
  useDocumentSnap(showcaseRef);
11118
11103
  return jsx(ShopSurface, {
11119
11104
  tone: "dark",
@@ -11232,18 +11217,18 @@ function useCartCount() {
11232
11217
  }, [subscribe]);
11233
11218
  return count2;
11234
11219
  }
11235
- const header$1 = "_header_8o3d7_25";
11236
- const floating = "_floating_8o3d7_44";
11237
- const scrolled = "_scrolled_8o3d7_79";
11238
- const title$1 = "_title_8o3d7_172";
11239
- const leading = "_leading_8o3d7_199";
11240
- const right = "_right_8o3d7_205";
11241
- const spacer = "_spacer_8o3d7_218";
11242
- const iconBtn = "_iconBtn_8o3d7_223";
11243
- const menuBtn = "_menuBtn_8o3d7_250";
11244
- const badge = "_badge_8o3d7_278";
11245
- const closeSlot = "_closeSlot_8o3d7_305";
11246
- const centred = "_centred_8o3d7_320";
11220
+ const header$1 = "_header_1a3o7_25";
11221
+ const floating = "_floating_1a3o7_44";
11222
+ const scrolled = "_scrolled_1a3o7_79";
11223
+ const title$1 = "_title_1a3o7_172";
11224
+ const leading = "_leading_1a3o7_199";
11225
+ const right = "_right_1a3o7_205";
11226
+ const spacer = "_spacer_1a3o7_218";
11227
+ const iconBtn = "_iconBtn_1a3o7_223";
11228
+ const menuBtn = "_menuBtn_1a3o7_250";
11229
+ const badge = "_badge_1a3o7_278";
11230
+ const closeSlot = "_closeSlot_1a3o7_305";
11231
+ const centred = "_centred_1a3o7_320";
11247
11232
  const styles$1 = {
11248
11233
  header: header$1,
11249
11234
  floating,
@@ -11724,4 +11709,3 @@ export {
11724
11709
  useToast,
11725
11710
  variantLabel
11726
11711
  };
11727
- //# sourceMappingURL=storefront.mjs.map