@salesgenterp/ui-components 0.4.554 → 0.4.556

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2941,6 +2941,21 @@ var saveExcessPayment = function saveExcessPayment(_ref2) {
2941
2941
  return Promise.reject(e);
2942
2942
  }
2943
2943
  };
2944
+ var verifyExcessPaymentToken = function verifyExcessPaymentToken(_ref3) {
2945
+ var apiEndPoint = _ref3.apiEndPoint,
2946
+ token = _ref3.token,
2947
+ excessPaymentToken = _ref3.excessPaymentToken;
2948
+ try {
2949
+ return Promise.resolve(API({
2950
+ url: "/ecommerce/customer/verifyExcessPaymentLink?token=" + excessPaymentToken,
2951
+ apiEndPoint: apiEndPoint,
2952
+ token: token,
2953
+ method: 'POST'
2954
+ }));
2955
+ } catch (e) {
2956
+ return Promise.reject(e);
2957
+ }
2958
+ };
2944
2959
 
2945
2960
  var ExcessPaymentForm = function ExcessPaymentForm(_ref) {
2946
2961
  var paymentMethods = _ref.paymentMethods,
@@ -3034,7 +3049,8 @@ var ExcessPaymentDialog = function ExcessPaymentDialog(_ref2) {
3034
3049
  token = _ref2.token,
3035
3050
  styles = _ref2.styles,
3036
3051
  onSave = _ref2.onSave,
3037
- customerData = _ref2.customerData;
3052
+ customerData = _ref2.customerData,
3053
+ excessPaymentToken = _ref2.excessPaymentToken;
3038
3054
  var _useForm = reactHookForm.useForm({
3039
3055
  defaultValues: {
3040
3056
  paymentModeId: '',
@@ -3105,26 +3121,51 @@ var ExcessPaymentDialog = function ExcessPaymentDialog(_ref2) {
3105
3121
  token: token,
3106
3122
  asyncService: function asyncService() {
3107
3123
  try {
3108
- return Promise.resolve(getPaymentMethods({
3124
+ return Promise.resolve(verifyExcessPaymentToken({
3109
3125
  apiEndPoint: apiEndPoint,
3110
- token: token
3126
+ token: token,
3127
+ excessPaymentToken: excessPaymentToken
3111
3128
  }));
3112
3129
  } catch (e) {
3113
3130
  return Promise.reject(e);
3114
3131
  }
3115
3132
  }
3116
3133
  }, function (data) {
3117
- var paymentMethods = (data === null || data === void 0 ? void 0 : data.filter(function (item) {
3118
- return item === null || item === void 0 ? void 0 : item.ecommerce;
3119
- })) || [];
3120
- return /*#__PURE__*/React__default.createElement(ExcessPaymentForm, {
3121
- loading: loading,
3122
- paymentMethods: paymentMethods,
3123
- control: control,
3124
- styles: styles,
3125
- handleSubmit: handleSubmit,
3126
- onSubmit: onSubmit,
3127
- onClose: onClose
3134
+ if (data === false) {
3135
+ return /*#__PURE__*/React__default.createElement("div", {
3136
+ style: {
3137
+ color: 'red',
3138
+ textAlign: 'center',
3139
+ padding: '16px 8px'
3140
+ }
3141
+ }, "This excess payment link has already been used. An excess payment was previously added using this link.");
3142
+ }
3143
+ return /*#__PURE__*/React__default.createElement(AsyncDataLoadComponent, {
3144
+ apiEndPoint: apiEndPoint,
3145
+ token: token,
3146
+ asyncService: function asyncService() {
3147
+ try {
3148
+ return Promise.resolve(getPaymentMethods({
3149
+ apiEndPoint: apiEndPoint,
3150
+ token: token
3151
+ }));
3152
+ } catch (e) {
3153
+ return Promise.reject(e);
3154
+ }
3155
+ }
3156
+ }, function (paymentMethodsData) {
3157
+ var paymentMethods = (paymentMethodsData === null || paymentMethodsData === void 0 ? void 0 : paymentMethodsData.filter(function (item) {
3158
+ return item === null || item === void 0 ? void 0 : item.ecommerce;
3159
+ })) || [];
3160
+ return /*#__PURE__*/React__default.createElement(ExcessPaymentForm, {
3161
+ loading: loading,
3162
+ paymentMethods: paymentMethods,
3163
+ control: control,
3164
+ styles: styles,
3165
+ handleSubmit: handleSubmit,
3166
+ onSubmit: onSubmit,
3167
+ onClose: onClose
3168
+ });
3128
3169
  });
3129
3170
  })));
3130
3171
  };
@@ -3147,7 +3188,7 @@ var totalIcons = [{
3147
3188
  icon: /*#__PURE__*/React__default.createElement(tb.TbFileDollar, null)
3148
3189
  }];
3149
3190
  var Dashboard = function Dashboard(_ref) {
3150
- var _customerData$custome, _selectDates$salesOrd, _selectDates$recentIn, _selectDates$salesOrd2, _selectDates$recentIn2, _customerData$custome2, _customerData$custome3, _customerData$custome4;
3191
+ var _queryParams$excessPa, _customerData$custome, _selectDates$salesOrd, _selectDates$recentIn, _selectDates$salesOrd2, _selectDates$recentIn2, _customerData$custome2, _customerData$custome3, _customerData$custome4;
3151
3192
  var apiEndPoint = _ref.apiEndPoint,
3152
3193
  serviceApiEndPoint = _ref.serviceApiEndPoint,
3153
3194
  token = _ref.token,
@@ -3213,11 +3254,13 @@ var Dashboard = function Dashboard(_ref) {
3213
3254
  var _useState8 = React.useState(0),
3214
3255
  value = _useState8[0],
3215
3256
  setValue = _useState8[1];
3257
+ var showSalesOrderTable = !hideSalesOrderTab;
3258
+ var showInvoiceTable = !hideInvoiceTab;
3259
+ var showTableSection = showSalesOrderTable || showInvoiceTable;
3216
3260
  React.useEffect(function () {
3217
- if (hideSalesOrderTab) {
3261
+ if (hideSalesOrderTab && !hideInvoiceTab) {
3218
3262
  setValue(1);
3219
- }
3220
- if (hideInvoiceTab) {
3263
+ } else if (hideInvoiceTab && !hideSalesOrderTab) {
3221
3264
  setValue(0);
3222
3265
  }
3223
3266
  }, [hideSalesOrderTab, hideInvoiceTab]);
@@ -3514,6 +3557,7 @@ var Dashboard = function Dashboard(_ref) {
3514
3557
  setTriggerTableData: setTriggerTableData,
3515
3558
  styles: styles
3516
3559
  }), (isExcessPaymentModal === null || isExcessPaymentModal === void 0 ? void 0 : isExcessPaymentModal.open) && /*#__PURE__*/React__default.createElement(ExcessPaymentDialog, {
3560
+ excessPaymentToken: (_queryParams$excessPa = queryParams === null || queryParams === void 0 ? void 0 : queryParams.excessPayment) != null ? _queryParams$excessPa : '',
3517
3561
  customerData: customerData,
3518
3562
  apiEndPoint: apiEndPoint,
3519
3563
  token: token,
@@ -3657,7 +3701,7 @@ var Dashboard = function Dashboard(_ref) {
3657
3701
  style: {
3658
3702
  marginTop: '1rem'
3659
3703
  }
3660
- })))))), /*#__PURE__*/React__default.createElement(TableContainer, null, /*#__PURE__*/React__default.createElement(APITable, {
3704
+ })))))), showTableSection && /*#__PURE__*/React__default.createElement(TableContainer, null, /*#__PURE__*/React__default.createElement(APITable, {
3661
3705
  key: value,
3662
3706
  cacheFilters: true,
3663
3707
  extraFilterParams: value === 0 ? selectDates.recentInvoices : selectDates.salesOrders,
@@ -3668,7 +3712,7 @@ var Dashboard = function Dashboard(_ref) {
3668
3712
  }, /*#__PURE__*/React__default.createElement(material.Grid, {
3669
3713
  item: true,
3670
3714
  xs: 12
3671
- }, /*#__PURE__*/React__default.createElement(material.Box, {
3715
+ }, showSalesOrderTable && showInvoiceTable && /*#__PURE__*/React__default.createElement(material.Box, {
3672
3716
  sx: {
3673
3717
  borderBottom: 1,
3674
3718
  borderColor: 'divider'
@@ -3679,9 +3723,9 @@ var Dashboard = function Dashboard(_ref) {
3679
3723
  "aria-label": "basic tabs example",
3680
3724
  primaryColor: primaryColor,
3681
3725
  fontColor: fontColor
3682
- }, !hideSalesOrderTab && /*#__PURE__*/React__default.createElement(material.Tab, _extends({
3726
+ }, /*#__PURE__*/React__default.createElement(material.Tab, _extends({
3683
3727
  label: "Sales Orders"
3684
- }, a11yProps(0))), !hideInvoiceTab && /*#__PURE__*/React__default.createElement(material.Tab, _extends({
3728
+ }, a11yProps(0))), /*#__PURE__*/React__default.createElement(material.Tab, _extends({
3685
3729
  label: "Recent Invoices"
3686
3730
  }, a11yProps(1)))))), /*#__PURE__*/React__default.createElement(TypographyContainer$2, {
3687
3731
  variant: "h4",
@@ -8161,6 +8205,10 @@ var formatCurrency = function formatCurrency(amount) {
8161
8205
  maximumFractionDigits: 2
8162
8206
  });
8163
8207
  };
8208
+ var getPerQuantitySaveLabel = function getPerQuantitySaveLabel(amount, coupon) {
8209
+ var prefix = (coupon === null || coupon === void 0 ? void 0 : coupon.maxAllowedDiscount) > 0 ? 'Save up to' : 'Save';
8210
+ return prefix + " $" + formatCurrency(amount) + " per quantity";
8211
+ };
8164
8212
  var getUnitSaving = function getUnitSaving(coupon, productPrice) {
8165
8213
  if (coupon !== null && coupon !== void 0 && coupon.percentage && coupon !== null && coupon !== void 0 && coupon.offPercentage && productPrice > 0) {
8166
8214
  return productPrice * (coupon.offPercentage / 100);
@@ -8179,10 +8227,19 @@ var formatCartCount = function formatCartCount(cartQuantity) {
8179
8227
  var formatRemainingQuantity = function formatRemainingQuantity(remaining) {
8180
8228
  return remaining + " more " + (remaining === 1 ? 'quantity' : 'quantities');
8181
8229
  };
8230
+ var formatQuantityLabel = function formatQuantityLabel(count) {
8231
+ return count + " " + (count === 1 ? 'quantity' : 'quantities');
8232
+ };
8182
8233
  var isBuyXGetFreeProduct = function isBuyXGetFreeProduct(coupon) {
8183
8234
  var _coupon$freeProducts;
8184
8235
  return (coupon === null || coupon === void 0 ? void 0 : coupon.discountType) === 'BuyXGetFreeProduct' || (coupon === null || coupon === void 0 ? void 0 : (_coupon$freeProducts = coupon.freeProducts) === null || _coupon$freeProducts === void 0 ? void 0 : _coupon$freeProducts.length) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0;
8185
8236
  };
8237
+ var isBuyXGetDiscount = function isBuyXGetDiscount(coupon) {
8238
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.discountType) === 'BuyXGetDiscount') return true;
8239
+ if (isBuyXGetFreeProduct(coupon)) return false;
8240
+ if (!((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0) || (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) return false;
8241
+ return Boolean(coupon === null || coupon === void 0 ? void 0 : coupon.offPercentage) || Boolean(coupon === null || coupon === void 0 ? void 0 : coupon.offAmount);
8242
+ };
8186
8243
  var getBuyXGetFreeProductOffPercent = function getBuyXGetFreeProductOffPercent(coupon) {
8187
8244
  var pct = Number(coupon === null || coupon === void 0 ? void 0 : coupon.offPercentage);
8188
8245
  if (Number.isFinite(pct) && pct > 0) return pct;
@@ -8196,6 +8253,22 @@ var getBuyXGetFreeProductOfferLabel = function getBuyXGetFreeProductOfferLabel(c
8196
8253
  if (offPercent >= 100) return 'free';
8197
8254
  return offPercent + "% off on these products";
8198
8255
  };
8256
+ var getBuyXGetDiscountOffLabel = function getBuyXGetDiscountOffLabel(coupon, productPrice) {
8257
+ if (productPrice === void 0) {
8258
+ productPrice = 0;
8259
+ }
8260
+ if (coupon !== null && coupon !== void 0 && coupon.percentage && coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8261
+ return coupon.offPercentage + "% off";
8262
+ }
8263
+ var unitSaving = getUnitSaving(coupon, productPrice);
8264
+ if (unitSaving) {
8265
+ return "$" + formatCurrency(unitSaving) + " off";
8266
+ }
8267
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.offAmount) > 0) {
8268
+ return "$" + formatCurrency(coupon.offAmount) + " off";
8269
+ }
8270
+ return 'discount';
8271
+ };
8199
8272
  var getFreeProductHref = function getFreeProductHref(product) {
8200
8273
  return "/product-details/" + paramCase.paramCase((product === null || product === void 0 ? void 0 : product.productAlias) || (product === null || product === void 0 ? void 0 : product.productName) || '') + "?id=" + (product === null || product === void 0 ? void 0 : product.productId);
8201
8274
  };
@@ -8204,8 +8277,8 @@ var getBuyXGetFreeProductMessages = function getBuyXGetFreeProductMessages(quant
8204
8277
  offPercentage = 100;
8205
8278
  }
8206
8279
  var isFullyFree = offPercentage >= 100;
8207
- var buyTimes = quantityToBuy + " " + (quantityToBuy === 1 ? 'time' : 'times');
8208
- var benefitSummary = isFullyFree ? "Buy this product " + buyTimes + ", get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') : "Buy this product " + buyTimes + ", get " + offPercentage + "% off on these products";
8280
+ var addQtyLabel = formatQuantityLabel(quantityToBuy);
8281
+ var benefitSummary = isFullyFree ? "Add " + addQtyLabel + " of this product and get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') : "Add " + addQtyLabel + " of this product and get " + offPercentage + "% off on these products";
8209
8282
  var lines = [benefitSummary];
8210
8283
  if (cartQuantity <= 0) {
8211
8284
  return lines;
@@ -8221,7 +8294,7 @@ var getBuyXGetFreeProductMessages = function getBuyXGetFreeProductMessages(quant
8221
8294
  };
8222
8295
  var getBuyXGetYMessages = function getBuyXGetYMessages(quantityToBuy, quantityToGet, cartQuantity) {
8223
8296
  var totalNeeded = quantityToBuy + quantityToGet;
8224
- var lines = ["Buy " + quantityToBuy + ", get " + quantityToGet + " for free"];
8297
+ var lines = ["Add " + formatQuantityLabel(quantityToBuy) + ", get " + formatQuantityLabel(quantityToGet) + " for free"];
8225
8298
  if (cartQuantity <= 0) {
8226
8299
  return lines;
8227
8300
  }
@@ -8234,8 +8307,34 @@ var getBuyXGetYMessages = function getBuyXGetYMessages(quantityToBuy, quantityTo
8234
8307
  lines.push(formatCartCount(cartQuantity));
8235
8308
  lines.push("Add " + formatRemainingQuantity(_remaining) + " to apply this coupon");
8236
8309
  } else {
8237
- var freeLabel = quantityToGet === 1 ? 'item' : 'items';
8238
- lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get " + quantityToGet + " " + freeLabel + " for free");
8310
+ lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get " + formatQuantityLabel(quantityToGet) + " for free");
8311
+ }
8312
+ return lines;
8313
+ };
8314
+ var getBuyXGetDiscountMessages = function getBuyXGetDiscountMessages(coupon, _temp) {
8315
+ var _ref = _temp === void 0 ? {} : _temp,
8316
+ _ref$productPrice = _ref.productPrice,
8317
+ productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8318
+ _ref$cartQuantity = _ref.cartQuantity,
8319
+ cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity;
8320
+ var quantityToBuy = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) || 0;
8321
+ var offLabel = getBuyXGetDiscountOffLabel(coupon, productPrice);
8322
+ var addLabel = formatQuantityLabel(quantityToBuy);
8323
+ var unitSaving = getUnitSaving(coupon, productPrice);
8324
+ var lines = ["Add " + addLabel + ", get " + offLabel];
8325
+ if (unitSaving) {
8326
+ lines[0] = "Add " + addLabel + ", get " + offLabel + " \xB7 " + getPerQuantitySaveLabel(unitSaving, coupon);
8327
+ }
8328
+ if (cartQuantity <= 0) {
8329
+ return lines;
8330
+ }
8331
+ if (cartQuantity < quantityToBuy) {
8332
+ var remaining = quantityToBuy - cartQuantity;
8333
+ lines.push(formatCartCount(cartQuantity));
8334
+ lines.push("Add " + formatRemainingQuantity(remaining) + " to qualify");
8335
+ } else {
8336
+ var totalSaving = unitSaving ? unitSaving * cartQuantity : null;
8337
+ lines.push(totalSaving ? formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get $" + formatCurrency(totalSaving) + " off" : formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get " + offLabel);
8239
8338
  }
8240
8339
  return lines;
8241
8340
  };
@@ -8243,10 +8342,21 @@ var getCouponTypeIcon = function getCouponTypeIcon(coupon) {
8243
8342
  if (isBuyXGetFreeProduct(coupon)) {
8244
8343
  return isFullyFreeBuyXOffer(coupon) ? fi.FiGift : fi.FiPercent;
8245
8344
  }
8345
+ if (isBuyXGetDiscount(coupon)) return fi.FiLayers;
8246
8346
  if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) return fi.FiLayers;
8247
8347
  if (coupon !== null && coupon !== void 0 && coupon.offPercentage) return fi.FiPercent;
8248
8348
  return fi.FiTag;
8249
8349
  };
8350
+ var getCouponLimitMessages = function getCouponLimitMessages(coupon) {
8351
+ var lines = [];
8352
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.maxAllowedDiscount) > 0) {
8353
+ lines.push("Maximum saving is up to $" + formatCurrency(coupon.maxAllowedDiscount) + ".");
8354
+ }
8355
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.maxAllowedAmount) > 0) {
8356
+ lines.push("Applies when your order is more than $" + formatCurrency(coupon.maxAllowedAmount) + ".");
8357
+ }
8358
+ return lines;
8359
+ };
8250
8360
  var getDetailMeta = function getDetailMeta(line) {
8251
8361
  if (line.includes('added in the cart') && line.includes('Apply')) {
8252
8362
  return {
@@ -8277,15 +8387,21 @@ var getDetailMeta = function getDetailMeta(line) {
8277
8387
  tone: 'info'
8278
8388
  };
8279
8389
  };
8280
- var getCouponBenefit = function getCouponBenefit(coupon, _temp) {
8281
- var _ref = _temp === void 0 ? {} : _temp,
8282
- _ref$productPrice = _ref.productPrice,
8283
- productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8284
- _ref$cartQuantity = _ref.cartQuantity,
8285
- cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity;
8390
+ var getCouponBenefit = function getCouponBenefit(coupon, _temp2) {
8391
+ var _ref2 = _temp2 === void 0 ? {} : _temp2,
8392
+ _ref2$productPrice = _ref2.productPrice,
8393
+ productPrice = _ref2$productPrice === void 0 ? 0 : _ref2$productPrice,
8394
+ _ref2$cartQuantity = _ref2.cartQuantity,
8395
+ cartQuantity = _ref2$cartQuantity === void 0 ? 0 : _ref2$cartQuantity;
8286
8396
  if (isBuyXGetFreeProduct(coupon)) {
8287
8397
  return getBuyXGetFreeProductMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity, getBuyXGetFreeProductOffPercent(coupon));
8288
8398
  }
8399
+ if (isBuyXGetDiscount(coupon)) {
8400
+ return getBuyXGetDiscountMessages(coupon, {
8401
+ productPrice: productPrice,
8402
+ cartQuantity: cartQuantity
8403
+ });
8404
+ }
8289
8405
  var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8290
8406
  if (hasBuyXGetY) {
8291
8407
  return getBuyXGetYMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity);
@@ -8294,9 +8410,9 @@ var getCouponBenefit = function getCouponBenefit(coupon, _temp) {
8294
8410
  if (!unitSaving) return null;
8295
8411
  var lines = [];
8296
8412
  if (coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8297
- lines.push(coupon.offPercentage + "% off \xB7 Save $" + formatCurrency(unitSaving) + " per item");
8413
+ lines.push(coupon.offPercentage + "% off \xB7 " + getPerQuantitySaveLabel(unitSaving, coupon));
8298
8414
  } else {
8299
- lines.push("Save $" + formatCurrency(unitSaving) + " per item");
8415
+ lines.push(getPerQuantitySaveLabel(unitSaving, coupon));
8300
8416
  }
8301
8417
  if (cartQuantity > 0) {
8302
8418
  var totalSaving = unitSaving * cartQuantity;
@@ -8304,47 +8420,44 @@ var getCouponBenefit = function getCouponBenefit(coupon, _temp) {
8304
8420
  }
8305
8421
  return lines;
8306
8422
  };
8307
- var getSuggestionPreviewText = function getSuggestionPreviewText(coupon, _temp2) {
8308
- var _ref2 = _temp2 === void 0 ? {} : _temp2,
8309
- _ref2$productPrice = _ref2.productPrice,
8310
- productPrice = _ref2$productPrice === void 0 ? 0 : _ref2$productPrice,
8311
- _ref2$cartQuantity = _ref2.cartQuantity,
8312
- cartQuantity = _ref2$cartQuantity === void 0 ? 0 : _ref2$cartQuantity;
8423
+ var getSuggestionPreviewText = function getSuggestionPreviewText(coupon, _temp3) {
8424
+ var _ref3 = _temp3 === void 0 ? {} : _temp3,
8425
+ _ref3$productPrice = _ref3.productPrice,
8426
+ productPrice = _ref3$productPrice === void 0 ? 0 : _ref3$productPrice,
8427
+ _ref3$cartQuantity = _ref3.cartQuantity,
8428
+ cartQuantity = _ref3$cartQuantity === void 0 ? 0 : _ref3$cartQuantity;
8313
8429
  if (!coupon) return null;
8314
8430
  if (isBuyXGetFreeProduct(coupon)) {
8315
- var _quantityToBuy = coupon.quantityToBuy || 1;
8431
+ var quantityToBuy = coupon.quantityToBuy || 1;
8316
8432
  var quantityToGet = coupon.quantityToGet || 1;
8317
- var buyTimes = _quantityToBuy + " " + (_quantityToBuy === 1 ? 'time' : 'times');
8433
+ var addQtyLabel = formatQuantityLabel(quantityToBuy);
8318
8434
  var offPercent = getBuyXGetFreeProductOffPercent(coupon);
8319
8435
  if (offPercent >= 100) {
8320
- return "Buy this product " + buyTimes + ", get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') + ". Click View All offers to know more";
8436
+ return "Add " + addQtyLabel + " of this product and get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') + ". Click View All offers to know more";
8321
8437
  }
8322
- return "Buy this product " + buyTimes + ", get " + offPercent + "% off on some products. Click View All offers to know more";
8438
+ return "Add " + addQtyLabel + " of this product and get " + offPercent + "% off on some products. Click View All offers to know more";
8323
8439
  }
8324
- var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8325
- if (hasBuyXGetY) {
8440
+ if (isBuyXGetDiscount(coupon)) {
8326
8441
  var _getCouponBenefit;
8327
8442
  return ((_getCouponBenefit = getCouponBenefit(coupon, {
8328
8443
  productPrice: productPrice,
8329
8444
  cartQuantity: cartQuantity
8330
8445
  })) === null || _getCouponBenefit === void 0 ? void 0 : _getCouponBenefit[0]) || null;
8331
8446
  }
8332
- var unitSaving = getUnitSaving(coupon, productPrice);
8333
- var quantityToBuy = coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy;
8334
- var hasBuyQuantityRequirement = quantityToBuy > 0 && !((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0);
8335
- if (hasBuyQuantityRequirement && coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8336
- var qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8337
- return "Buy " + quantityToBuy + " " + qtyLabel + ", get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8338
- }
8339
- if (hasBuyQuantityRequirement && unitSaving) {
8340
- var _qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8341
- return "Buy " + quantityToBuy + " " + _qtyLabel + ", save $" + formatCurrency(unitSaving) + " per item";
8447
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8448
+ if (hasBuyXGetY) {
8449
+ var _getCouponBenefit2;
8450
+ return ((_getCouponBenefit2 = getCouponBenefit(coupon, {
8451
+ productPrice: productPrice,
8452
+ cartQuantity: cartQuantity
8453
+ })) === null || _getCouponBenefit2 === void 0 ? void 0 : _getCouponBenefit2[0]) || null;
8342
8454
  }
8455
+ var unitSaving = getUnitSaving(coupon, productPrice);
8343
8456
  if (coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8344
- return "get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8457
+ return "get " + coupon.offPercentage + "% off, " + getPerQuantitySaveLabel(unitSaving, coupon).toLowerCase();
8345
8458
  }
8346
8459
  if (unitSaving) {
8347
- return "save $" + formatCurrency(unitSaving) + " per item";
8460
+ return getPerQuantitySaveLabel(unitSaving, coupon).toLowerCase();
8348
8461
  }
8349
8462
  return null;
8350
8463
  };
@@ -8364,6 +8477,23 @@ var getSavingsBadge = function getSavingsBadge(coupon, productPrice) {
8364
8477
  bottom: 'GIFT'
8365
8478
  };
8366
8479
  }
8480
+ if (isBuyXGetDiscount(coupon)) {
8481
+ if (coupon !== null && coupon !== void 0 && coupon.percentage && coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8482
+ return {
8483
+ variant: 'percent',
8484
+ top: coupon.offPercentage + "%",
8485
+ bottom: 'OFF'
8486
+ };
8487
+ }
8488
+ var _unitSaving = getUnitSaving(coupon, productPrice);
8489
+ if (_unitSaving) {
8490
+ return {
8491
+ variant: 'amount',
8492
+ top: "$" + formatCurrency(_unitSaving),
8493
+ bottom: 'SAVE'
8494
+ };
8495
+ }
8496
+ }
8367
8497
  if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) {
8368
8498
  return {
8369
8499
  variant: 'bogo',
@@ -8408,8 +8538,29 @@ var getProgressInfo = function getProgressInfo(coupon, cartQuantity) {
8408
8538
  target: _target,
8409
8539
  percent: _percent,
8410
8540
  qualified: qualified,
8411
- unitLabel: _target === 1 ? 'Item' : 'Items',
8412
- message: qualified ? "You're eligible — apply your code at checkout!" : _remaining2 === 1 ? "Only 1 more item to unlock " + unlockLabel + "!" : "Only " + _remaining2 + " more items to unlock " + unlockLabel + "!"
8541
+ unitLabel: _target === 1 ? 'Quantity' : 'Quantities',
8542
+ message: qualified ? "You're eligible — apply your code at checkout!" : _remaining2 === 1 ? "Only 1 more quantity to unlock " + unlockLabel + "!" : "Only " + _remaining2 + " more quantities to unlock " + unlockLabel + "!"
8543
+ };
8544
+ }
8545
+ if (isBuyXGetDiscount(coupon)) {
8546
+ var _target2 = coupon.quantityToBuy || 0;
8547
+ if (!_target2) return null;
8548
+ var _current2 = Math.min(cartQuantity, _target2);
8549
+ var _percent2 = Math.min(100, _current2 / _target2 * 100);
8550
+ var _remaining3 = Math.max(0, _target2 - cartQuantity);
8551
+ var _qualified = cartQuantity >= _target2;
8552
+ var offLabel = getBuyXGetDiscountOffLabel(coupon);
8553
+ return {
8554
+ type: 'buyxgetdiscount',
8555
+ current: _current2,
8556
+ target: _target2,
8557
+ percent: _percent2,
8558
+ qualified: _qualified,
8559
+ unitLabel: _target2 === 1 ? 'Quantity' : 'Quantities',
8560
+ showTimeline: true,
8561
+ quantityToBuy: _target2,
8562
+ offLabel: offLabel,
8563
+ message: _qualified ? "You're eligible — apply your code at checkout!" : _remaining3 === 1 ? "Only 1 more quantity to unlock " + offLabel + "!" : "Only " + _remaining3 + " more quantities to unlock " + offLabel + "!"
8413
8564
  };
8414
8565
  }
8415
8566
  var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
@@ -8427,18 +8578,18 @@ var getProgressInfo = function getProgressInfo(coupon, cartQuantity) {
8427
8578
  };
8428
8579
  }
8429
8580
  if (cartQuantity >= quantityToBuy) {
8430
- var _current2 = cartQuantity;
8431
- var _target2 = totalNeeded;
8432
- var _percent2 = Math.min(100, _current2 / _target2 * 100);
8433
- var _remaining3 = totalNeeded - cartQuantity;
8581
+ var _current3 = cartQuantity;
8582
+ var _target3 = totalNeeded;
8583
+ var _percent3 = Math.min(100, _current3 / _target3 * 100);
8584
+ var _remaining4 = totalNeeded - cartQuantity;
8434
8585
  return {
8435
8586
  type: 'quantity',
8436
- current: _current2,
8437
- target: _target2,
8438
- percent: _percent2,
8587
+ current: _current3,
8588
+ target: _target3,
8589
+ percent: _percent3,
8439
8590
  qualified: false,
8440
- unitLabel: _target2 === 1 ? 'Item' : 'Items',
8441
- message: _remaining3 === 1 ? 'Only 1 more item to apply this coupon' : "Only " + _remaining3 + " more items to apply this coupon",
8591
+ unitLabel: _target3 === 1 ? 'Quantity' : 'Quantities',
8592
+ message: _remaining4 === 1 ? 'Only 1 more quantity to apply this coupon' : "Only " + _remaining4 + " more quantities to apply this coupon",
8442
8593
  showTimeline: true,
8443
8594
  quantityToBuy: quantityToBuy,
8444
8595
  quantityToGet: quantityToGet
@@ -8454,8 +8605,8 @@ var getProgressInfo = function getProgressInfo(coupon, cartQuantity) {
8454
8605
  target: target,
8455
8606
  percent: percent,
8456
8607
  qualified: false,
8457
- unitLabel: target === 1 ? 'Item' : 'Items',
8458
- message: remaining === 1 ? 'Only 1 more item to qualify' : "Only " + remaining + " more items to qualify",
8608
+ unitLabel: target === 1 ? 'Quantity' : 'Quantities',
8609
+ message: remaining === 1 ? 'Only 1 more quantity to qualify' : "Only " + remaining + " more quantities to qualify",
8459
8610
  showTimeline: true,
8460
8611
  quantityToBuy: quantityToBuy,
8461
8612
  quantityToGet: quantityToGet
@@ -8464,17 +8615,17 @@ var getProgressInfo = function getProgressInfo(coupon, cartQuantity) {
8464
8615
  var isProgressDetailLine = function isProgressDetailLine(line) {
8465
8616
  return line === null || line === void 0 ? void 0 : line.startsWith('Add ');
8466
8617
  };
8467
- var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8468
- var open = _ref3.open,
8469
- onClose = _ref3.onClose,
8470
- productName = _ref3.productName,
8471
- _ref3$productDiscount = _ref3.productDiscounts,
8472
- productDiscounts = _ref3$productDiscount === void 0 ? [] : _ref3$productDiscount,
8473
- primaryColor = _ref3.primaryColor,
8474
- _ref3$cartQuantity = _ref3.cartQuantity,
8475
- cartQuantity = _ref3$cartQuantity === void 0 ? 0 : _ref3$cartQuantity,
8476
- _ref3$productPrice = _ref3.productPrice,
8477
- productPrice = _ref3$productPrice === void 0 ? 0 : _ref3$productPrice;
8618
+ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref4) {
8619
+ var open = _ref4.open,
8620
+ onClose = _ref4.onClose,
8621
+ productName = _ref4.productName,
8622
+ _ref4$productDiscount = _ref4.productDiscounts,
8623
+ productDiscounts = _ref4$productDiscount === void 0 ? [] : _ref4$productDiscount,
8624
+ primaryColor = _ref4.primaryColor,
8625
+ _ref4$cartQuantity = _ref4.cartQuantity,
8626
+ cartQuantity = _ref4$cartQuantity === void 0 ? 0 : _ref4$cartQuantity,
8627
+ _ref4$productPrice = _ref4.productPrice,
8628
+ productPrice = _ref4$productPrice === void 0 ? 0 : _ref4$productPrice;
8478
8629
  var _useState = React.useState(null),
8479
8630
  copiedCode = _useState[0],
8480
8631
  setCopiedCode = _useState[1];
@@ -8482,7 +8633,7 @@ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8482
8633
  var copyCouponCode = React.useCallback(function (code) {
8483
8634
  try {
8484
8635
  if (!code) return Promise.resolve();
8485
- var _temp3 = _catch(function () {
8636
+ var _temp4 = _catch(function () {
8486
8637
  var _navigator, _navigator$clipboard;
8487
8638
  return Promise.resolve((_navigator = navigator) === null || _navigator === void 0 ? void 0 : (_navigator$clipboard = _navigator.clipboard) === null || _navigator$clipboard === void 0 ? void 0 : _navigator$clipboard.writeText(code)).then(function () {
8488
8639
  var _window;
@@ -8494,7 +8645,7 @@ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8494
8645
  }, function (error) {
8495
8646
  console.error('Failed to copy coupon code', error);
8496
8647
  });
8497
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
8648
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
8498
8649
  } catch (e) {
8499
8650
  return Promise.reject(e);
8500
8651
  }
@@ -8520,10 +8671,10 @@ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8520
8671
  };
8521
8672
  document.addEventListener('keydown', handleKeyDown);
8522
8673
  return function () {
8523
- scrollLocks.forEach(function (_ref4) {
8524
- var el = _ref4.el,
8525
- overflow = _ref4.overflow,
8526
- overscrollBehavior = _ref4.overscrollBehavior;
8674
+ scrollLocks.forEach(function (_ref5) {
8675
+ var el = _ref5.el,
8676
+ overflow = _ref5.overflow,
8677
+ overscrollBehavior = _ref5.overscrollBehavior;
8527
8678
  el.style.overflow = overflow;
8528
8679
  el.style.overscrollBehavior = overscrollBehavior;
8529
8680
  });
@@ -8588,8 +8739,9 @@ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8588
8739
  productPrice: productPrice,
8589
8740
  cartQuantity: cartQuantity
8590
8741
  });
8742
+ var limitMessages = getCouponLimitMessages(coupon);
8591
8743
  var benefitSummary = (benefit === null || benefit === void 0 ? void 0 : benefit[0]) || null;
8592
- var benefitDetails = (benefit === null || benefit === void 0 ? void 0 : benefit.length) > 1 ? benefit.slice(1) : [];
8744
+ var benefitDetails = [].concat((benefit === null || benefit === void 0 ? void 0 : benefit.length) > 1 ? benefit.slice(1) : [], limitMessages);
8593
8745
  var statusDetails = benefitDetails.filter(function (line) {
8594
8746
  return !isProgressDetailLine(line);
8595
8747
  });
@@ -8605,7 +8757,8 @@ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8605
8757
  var savingsBadge = getSavingsBadge(coupon, productPrice);
8606
8758
  var progressInfo = getProgressInfo(coupon, cartQuantity);
8607
8759
  var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8608
- var showTimeline = hasBuyXGetY && ((progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.showTimeline) || (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'buyxgety');
8760
+ var isQtyDiscount = isBuyXGetDiscount(coupon);
8761
+ var showTimeline = (hasBuyXGetY || isQtyDiscount) && ((progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.showTimeline) || (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'buyxgety' || (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'buyxgetdiscount');
8609
8762
  return /*#__PURE__*/React__default.createElement(OfferCard, {
8610
8763
  key: (_coupon$discountId = coupon === null || coupon === void 0 ? void 0 : coupon.discountId) != null ? _coupon$discountId : coupon === null || coupon === void 0 ? void 0 : coupon.couponCode,
8611
8764
  $accentColor: accentColor,
@@ -8615,7 +8768,7 @@ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8615
8768
  $variant: savingsBadge.variant
8616
8769
  }, /*#__PURE__*/React__default.createElement(BadgeTop, null, savingsBadge.top), /*#__PURE__*/React__default.createElement(BadgeBottom, null, savingsBadge.bottom)), /*#__PURE__*/React__default.createElement(CardHeaderCopy, null, /*#__PURE__*/React__default.createElement(CardMetaRow, null, /*#__PURE__*/React__default.createElement(TypePill, {
8617
8770
  $accentColor: accentColor
8618
- }, /*#__PURE__*/React__default.createElement(TypeIcon, null), /*#__PURE__*/React__default.createElement("span", null, isBuyXGetFreeProduct(coupon) ? isFullyFreeOffer ? 'Free Gift' : getBuyXGetFreeProductOffPercent(coupon) + "% Off" : hasBuyXGetY ? 'Buy & Get' : coupon !== null && coupon !== void 0 && coupon.offPercentage ? 'Percent Off' : 'Instant Save')), (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.qualified) && /*#__PURE__*/React__default.createElement(QualifiedPill, {
8771
+ }, /*#__PURE__*/React__default.createElement(TypeIcon, null), /*#__PURE__*/React__default.createElement("span", null, isBuyXGetFreeProduct(coupon) ? isFullyFreeOffer ? 'Free Gift' : getBuyXGetFreeProductOffPercent(coupon) + "% Off" : isQtyDiscount ? 'Add & Save' : hasBuyXGetY ? 'Add & Get' : coupon !== null && coupon !== void 0 && coupon.offPercentage ? 'Percent Off' : 'Instant Save')), (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.qualified) && /*#__PURE__*/React__default.createElement(QualifiedPill, {
8619
8772
  $accentColor: accentColor
8620
8773
  }, /*#__PURE__*/React__default.createElement(hi2.HiSparkles, null), "Ready")), /*#__PURE__*/React__default.createElement(TitleRow, null, /*#__PURE__*/React__default.createElement(OfferTitle, {
8621
8774
  title: coupon === null || coupon === void 0 ? void 0 : coupon.discountName
@@ -8636,36 +8789,24 @@ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8636
8789
  onClick: function onClick() {
8637
8790
  return copyCouponCode(coupon === null || coupon === void 0 ? void 0 : coupon.couponCode);
8638
8791
  }
8639
- }, isCopied ? /*#__PURE__*/React__default.createElement("div", {
8640
- style: {
8641
- display: 'flex',
8642
- alignItems: 'center',
8643
- gap: '4px'
8644
- }
8645
- }, /*#__PURE__*/React__default.createElement(fi.FiCheck, null), /*#__PURE__*/React__default.createElement("span", null, "Copied")) : /*#__PURE__*/React__default.createElement("div", {
8646
- style: {
8647
- display: 'flex',
8648
- alignItems: 'center',
8649
- gap: '4px'
8650
- }
8651
- }, /*#__PURE__*/React__default.createElement(fi.FiCopy, null), /*#__PURE__*/React__default.createElement("span", null, "Copy")))))))), benefitSummary && /*#__PURE__*/React__default.createElement(OfferDescription, null, benefitSummary), showTimeline && /*#__PURE__*/React__default.createElement(BuyXTimeline, {
8792
+ }, isCopied ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(fi.FiCheck, null), /*#__PURE__*/React__default.createElement("span", null, "Copied")) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(fi.FiCopy, null), /*#__PURE__*/React__default.createElement("span", null, "Copy")))))))), benefitSummary && /*#__PURE__*/React__default.createElement(OfferDescription, null, benefitSummary), showTimeline && /*#__PURE__*/React__default.createElement(BuyXTimeline, {
8652
8793
  $accentColor: accentColor
8653
8794
  }, /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8654
8795
  $accentColor: accentColor
8655
- }, /*#__PURE__*/React__default.createElement(fi.FiShoppingCart, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, "Buy ", coupon.quantityToBuy)), /*#__PURE__*/React__default.createElement(TimelineTrack, {
8796
+ }, /*#__PURE__*/React__default.createElement(fi.FiShoppingCart, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, "Add ", coupon.quantityToBuy)), /*#__PURE__*/React__default.createElement(TimelineTrack, {
8656
8797
  $accentColor: accentColor
8657
8798
  }, /*#__PURE__*/React__default.createElement(TimelineArrow, {
8658
8799
  $accentColor: accentColor
8659
8800
  })), /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8660
8801
  $accentColor: accentColor,
8661
8802
  $highlight: true
8662
- }, /*#__PURE__*/React__default.createElement(fi.FiGift, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, "Get ", coupon.quantityToGet, " FREE"))), (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'quantity' && !progressInfo.qualified && /*#__PURE__*/React__default.createElement(ProgressBlock, null, /*#__PURE__*/React__default.createElement(ProgressTrack, {
8803
+ }, isQtyDiscount ? /*#__PURE__*/React__default.createElement(fi.FiPercent, null) : /*#__PURE__*/React__default.createElement(fi.FiGift, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, isQtyDiscount ? "Get " + ((progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.offLabel) || getBuyXGetDiscountOffLabel(coupon, productPrice)) : "Get " + coupon.quantityToGet + " FREE"))), ((progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'quantity' || (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'buyxgetdiscount') && !progressInfo.qualified && /*#__PURE__*/React__default.createElement(ProgressBlock, null, /*#__PURE__*/React__default.createElement(ProgressTrack, {
8663
8804
  $accentColor: accentColor,
8664
8805
  role: "progressbar",
8665
8806
  "aria-valuenow": progressInfo.current,
8666
8807
  "aria-valuemin": 0,
8667
8808
  "aria-valuemax": progressInfo.target,
8668
- "aria-label": progressInfo.current + " of " + progressInfo.target + " items toward eligibility"
8809
+ "aria-label": progressInfo.current + " of " + progressInfo.target + " quantities toward eligibility"
8669
8810
  }, /*#__PURE__*/React__default.createElement(ProgressFill, {
8670
8811
  $accentColor: accentColor,
8671
8812
  $percent: progressInfo.percent
@@ -8707,95 +8848,95 @@ var DialogTitle = styled__default.h2(_templateObject11$3 || (_templateObject11$3
8707
8848
  var CloseButton = styled__default.button(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n cursor: pointer;\n transition: background-color 0.2s ease;\n\n svg {\n font-size: 1.25rem;\n }\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n\n &:focus-visible {\n outline: 2px solid #437c0f;\n outline-offset: 1px;\n }\n"])));
8708
8849
  var ScrollableBody = styled__default.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n padding: 0.85rem;\n"])));
8709
8850
  var EmptyState$1 = styled__default.p(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 1.5rem 0.5rem;\n text-align: center;\n font-size: 0.9rem;\n font-weight: 600;\n color: #5a6354;\n"])));
8710
- var SavingsCenter = styled__default.section(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n --accent: ", ";\n position: relative;\n width: 100%;\n border-radius: 0.85rem;\n border: 1px solid ", ";\n background: linear-gradient(165deg, #ffffff 0%, #fafcf7 45%, #f6f9f2 100%);\n overflow: hidden;\n box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04),\n 0 8px 24px ", ";\n animation: ", " 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;\n font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',\n 'Inter', Roboto, sans-serif;\n ", "\n"])), function (_ref5) {
8711
- var $accentColor = _ref5.$accentColor;
8712
- return $accentColor;
8713
- }, function (_ref6) {
8851
+ var SavingsCenter = styled__default.section(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n --accent: ", ";\n position: relative;\n width: 100%;\n border-radius: 0.85rem;\n border: 1px solid ", ";\n background: linear-gradient(165deg, #ffffff 0%, #fafcf7 45%, #f6f9f2 100%);\n overflow: hidden;\n box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04),\n 0 8px 24px ", ";\n animation: ", " 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;\n font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',\n 'Inter', Roboto, sans-serif;\n ", "\n"])), function (_ref6) {
8714
8852
  var $accentColor = _ref6.$accentColor;
8715
- return $accentColor + "20";
8853
+ return $accentColor;
8716
8854
  }, function (_ref7) {
8717
8855
  var $accentColor = _ref7.$accentColor;
8856
+ return $accentColor + "20";
8857
+ }, function (_ref8) {
8858
+ var $accentColor = _ref8.$accentColor;
8718
8859
  return $accentColor + "10";
8719
8860
  }, fadeSlideUp, reducedMotion);
8720
- var AmbientGlow = styled__default.div(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -40%;\n right: -15%;\n width: 55%;\n height: 80%;\n background: radial-gradient(\n circle,\n ", " 0%,\n transparent 70%\n );\n pointer-events: none;\n"])), function (_ref8) {
8721
- var $accentColor = _ref8.$accentColor;
8861
+ var AmbientGlow = styled__default.div(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -40%;\n right: -15%;\n width: 55%;\n height: 80%;\n background: radial-gradient(\n circle,\n ", " 0%,\n transparent 70%\n );\n pointer-events: none;\n"])), function (_ref9) {
8862
+ var $accentColor = _ref9.$accentColor;
8722
8863
  return $accentColor + "18";
8723
8864
  });
8724
- var Sparkle = styled__default.span(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: ", ";\n left: ", ";\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background: ", ";\n box-shadow: 0 0 12px ", ";\n animation: ", " 4s ease-in-out infinite;\n animation-delay: ", ";\n pointer-events: none;\n opacity: 0.3;\n\n ", "\n"])), function (_ref9) {
8725
- var $top = _ref9.$top;
8865
+ var Sparkle = styled__default.span(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: ", ";\n left: ", ";\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background: ", ";\n box-shadow: 0 0 12px ", ";\n animation: ", " 4s ease-in-out infinite;\n animation-delay: ", ";\n pointer-events: none;\n opacity: 0.3;\n\n ", "\n"])), function (_ref10) {
8866
+ var $top = _ref10.$top;
8726
8867
  return $top;
8727
- }, function (_ref10) {
8728
- var $left = _ref10.$left;
8729
- return $left;
8730
8868
  }, function (_ref11) {
8731
- var $size = _ref11.$size;
8732
- return $size === 'sm' ? '4px' : '6px';
8869
+ var $left = _ref11.$left;
8870
+ return $left;
8733
8871
  }, function (_ref12) {
8734
8872
  var $size = _ref12.$size;
8735
8873
  return $size === 'sm' ? '4px' : '6px';
8736
8874
  }, function (_ref13) {
8737
- var $accentColor = _ref13.$accentColor;
8738
- return $accentColor;
8875
+ var $size = _ref13.$size;
8876
+ return $size === 'sm' ? '4px' : '6px';
8739
8877
  }, function (_ref14) {
8740
8878
  var $accentColor = _ref14.$accentColor;
8879
+ return $accentColor;
8880
+ }, function (_ref15) {
8881
+ var $accentColor = _ref15.$accentColor;
8741
8882
  return $accentColor + "80";
8742
- }, sparkleFloat, function (_ref15) {
8743
- var $delay = _ref15.$delay;
8883
+ }, sparkleFloat, function (_ref16) {
8884
+ var $delay = _ref16.$delay;
8744
8885
  return $delay;
8745
8886
  }, reducedMotion);
8746
- var SectionHeader = styled__default.header(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.6rem;\n padding: 0.65rem 0.8rem;\n background: linear-gradient(\n 135deg,\n ", " 0%,\n ", " 55%,\n transparent 100%\n );\n border-bottom: 1px solid ", ";\n position: relative;\n overflow: hidden;\n\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 105deg,\n transparent 38%,\n rgba(255, 255, 255, 0.45) 50%,\n transparent 62%\n );\n background-size: 200% 100%;\n animation: ", " 6s ease-in-out infinite;\n pointer-events: none;\n }\n\n ", "\n"])), function (_ref16) {
8747
- var $accentColor = _ref16.$accentColor;
8748
- return $accentColor + "16";
8749
- }, function (_ref17) {
8887
+ var SectionHeader = styled__default.header(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.6rem;\n padding: 0.65rem 0.8rem;\n background: linear-gradient(\n 135deg,\n ", " 0%,\n ", " 55%,\n transparent 100%\n );\n border-bottom: 1px solid ", ";\n position: relative;\n overflow: hidden;\n\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 105deg,\n transparent 38%,\n rgba(255, 255, 255, 0.45) 50%,\n transparent 62%\n );\n background-size: 200% 100%;\n animation: ", " 6s ease-in-out infinite;\n pointer-events: none;\n }\n\n ", "\n"])), function (_ref17) {
8750
8888
  var $accentColor = _ref17.$accentColor;
8751
- return $accentColor + "05";
8889
+ return $accentColor + "16";
8752
8890
  }, function (_ref18) {
8753
8891
  var $accentColor = _ref18.$accentColor;
8892
+ return $accentColor + "05";
8893
+ }, function (_ref19) {
8894
+ var $accentColor = _ref19.$accentColor;
8754
8895
  return $accentColor + "12";
8755
8896
  }, shimmer, reducedMotion);
8756
- var HeaderIconWrap = styled__default.div(_templateObject19$2 || (_templateObject19$2 = _taggedTemplateLiteralLoose(["\n --icon-shadow: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: 0.55rem;\n flex-shrink: 0;\n color: #fff;\n background: linear-gradient(\n 145deg,\n ", " 0%,\n ", " 100%\n );\n box-shadow: 0 4px 12px var(--icon-shadow);\n z-index: 1;\n\n svg {\n font-size: 1.05rem;\n }\n"])), function (_ref19) {
8757
- var $accentColor = _ref19.$accentColor;
8758
- return $accentColor + "40";
8759
- }, function (_ref20) {
8897
+ var HeaderIconWrap = styled__default.div(_templateObject19$2 || (_templateObject19$2 = _taggedTemplateLiteralLoose(["\n --icon-shadow: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: 0.55rem;\n flex-shrink: 0;\n color: #fff;\n background: linear-gradient(\n 145deg,\n ", " 0%,\n ", " 100%\n );\n box-shadow: 0 4px 12px var(--icon-shadow);\n z-index: 1;\n\n svg {\n font-size: 1.05rem;\n }\n"])), function (_ref20) {
8760
8898
  var $accentColor = _ref20.$accentColor;
8761
- return $accentColor;
8899
+ return $accentColor + "40";
8762
8900
  }, function (_ref21) {
8763
8901
  var $accentColor = _ref21.$accentColor;
8902
+ return $accentColor;
8903
+ }, function (_ref22) {
8904
+ var $accentColor = _ref22.$accentColor;
8764
8905
  return $accentColor + "cc";
8765
8906
  });
8766
8907
  var HeaderCopy = styled__default.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n z-index: 1;\n"])));
8767
- var Eyebrow = styled__default.span(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n font-size: 0.6rem;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.08em;\n color: ", ";\n\n svg {\n font-size: 0.65rem;\n }\n"])), function (_ref22) {
8768
- var $accentColor = _ref22.$accentColor;
8908
+ var Eyebrow = styled__default.span(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n font-size: 0.6rem;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.08em;\n color: ", ";\n\n svg {\n font-size: 0.65rem;\n }\n"])), function (_ref23) {
8909
+ var $accentColor = _ref23.$accentColor;
8769
8910
  return $accentColor;
8770
8911
  });
8771
8912
  var SectionHeading = styled__default.h3(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n margin: 0.1rem 0 0;\n font-size: 0.95rem;\n font-weight: 800;\n letter-spacing: -0.02em;\n color: #12180d;\n line-height: 1.2;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
8772
- var OfferCountBadge = styled__default.div(_templateObject23$1 || (_templateObject23$1 = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n padding: 0.28rem 0.55rem;\n border-radius: 999px;\n background: rgba(18, 24, 13, 0.92);\n color: #f8fff0;\n font-size: 0.65rem;\n font-weight: 600;\n z-index: 1;\n\n strong {\n font-size: 0.82rem;\n font-weight: 800;\n line-height: 1;\n }\n\n svg {\n font-size: 0.72rem;\n color: ", ";\n }\n"])), function (_ref23) {
8773
- var $accentColor = _ref23.$accentColor;
8913
+ var OfferCountBadge = styled__default.div(_templateObject23$1 || (_templateObject23$1 = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n padding: 0.28rem 0.55rem;\n border-radius: 999px;\n background: rgba(18, 24, 13, 0.92);\n color: #f8fff0;\n font-size: 0.65rem;\n font-weight: 600;\n z-index: 1;\n\n strong {\n font-size: 0.82rem;\n font-weight: 800;\n line-height: 1;\n }\n\n svg {\n font-size: 0.72rem;\n color: ", ";\n }\n"])), function (_ref24) {
8914
+ var $accentColor = _ref24.$accentColor;
8774
8915
  return $accentColor;
8775
8916
  });
8776
8917
  var OfferStack = styled__default.div(_templateObject24$1 || (_templateObject24$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.55rem;\n"])));
8777
- var OfferCard = styled__default.article(_templateObject25$1 || (_templateObject25$1 = _taggedTemplateLiteralLoose(["\n border-radius: 0.7rem;\n border: 1px solid ", ";\n background: #fff;\n box-shadow: 0 1px 4px rgba(16, 20, 12, 0.04);\n opacity: 0;\n animation: ", " 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n animation-delay: ", "s;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n overflow: hidden;\n\n &:hover {\n border-color: ", ";\n box-shadow: 0 4px 14px ", ";\n }\n\n &:focus-within {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n"])), function (_ref24) {
8778
- var $accentColor = _ref24.$accentColor;
8918
+ var OfferCard = styled__default.article(_templateObject25$1 || (_templateObject25$1 = _taggedTemplateLiteralLoose(["\n border-radius: 0.7rem;\n border: 1px solid ", ";\n background: #fff;\n box-shadow: 0 1px 4px rgba(16, 20, 12, 0.04);\n opacity: 0;\n animation: ", " 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n animation-delay: ", "s;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n overflow: hidden;\n\n &:hover {\n border-color: ", ";\n box-shadow: 0 4px 14px ", ";\n }\n\n &:focus-within {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n"])), function (_ref25) {
8919
+ var $accentColor = _ref25.$accentColor;
8779
8920
  return $accentColor + "20";
8780
- }, fadeSlideUp, function (_ref25) {
8781
- var $index = _ref25.$index;
8921
+ }, fadeSlideUp, function (_ref26) {
8922
+ var $index = _ref26.$index;
8782
8923
  return 0.06 + $index * 0.04;
8783
- }, function (_ref26) {
8784
- var $accentColor = _ref26.$accentColor;
8785
- return $accentColor + "45";
8786
8924
  }, function (_ref27) {
8787
8925
  var $accentColor = _ref27.$accentColor;
8788
- return $accentColor + "12";
8926
+ return $accentColor + "45";
8789
8927
  }, function (_ref28) {
8790
8928
  var $accentColor = _ref28.$accentColor;
8929
+ return $accentColor + "12";
8930
+ }, function (_ref29) {
8931
+ var $accentColor = _ref29.$accentColor;
8791
8932
  return $accentColor + "50";
8792
8933
  }, reducedMotion);
8793
8934
  var CardBody = styled__default.div(_templateObject26$1 || (_templateObject26$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.35rem;\n padding: 0.6rem 0.65rem;\n"])));
8794
8935
  var CardHeader = styled__default.div(_templateObject27$1 || (_templateObject27$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n gap: 0.55rem;\n"])));
8795
8936
  var CardHeaderCopy = styled__default.div(_templateObject28$1 || (_templateObject28$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 0.15rem;\n"])));
8796
- var SavingsBadge = styled__default.div(_templateObject29$1 || (_templateObject29$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-width: 3.1rem;\n padding: 0.3rem 0.35rem;\n border-radius: 0.5rem;\n flex-shrink: 0;\n text-align: center;\n color: #fff;\n line-height: 1;\n background: ", ";\n box-shadow: 0 3px 10px ", ";\n"])), function (_ref29) {
8797
- var $accentColor = _ref29.$accentColor,
8798
- $variant = _ref29.$variant;
8937
+ var SavingsBadge = styled__default.div(_templateObject29$1 || (_templateObject29$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-width: 3.1rem;\n padding: 0.3rem 0.35rem;\n border-radius: 0.5rem;\n flex-shrink: 0;\n text-align: center;\n color: #fff;\n line-height: 1;\n background: ", ";\n box-shadow: 0 3px 10px ", ";\n"])), function (_ref30) {
8938
+ var $accentColor = _ref30.$accentColor,
8939
+ $variant = _ref30.$variant;
8799
8940
  if ($variant === 'gift') {
8800
8941
  return "linear-gradient(145deg, #e8a317 0%, #c47d0a 100%)";
8801
8942
  }
@@ -8803,152 +8944,152 @@ var SavingsBadge = styled__default.div(_templateObject29$1 || (_templateObject29
8803
8944
  return "linear-gradient(145deg, " + $accentColor + " 0%, #2d5f0a 100%)";
8804
8945
  }
8805
8946
  return "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "cc 100%)";
8806
- }, function (_ref30) {
8807
- var $accentColor = _ref30.$accentColor;
8947
+ }, function (_ref31) {
8948
+ var $accentColor = _ref31.$accentColor;
8808
8949
  return $accentColor + "28";
8809
8950
  });
8810
8951
  var BadgeTop = styled__default.span(_templateObject30$1 || (_templateObject30$1 = _taggedTemplateLiteralLoose(["\n font-size: 0.82rem;\n font-weight: 900;\n letter-spacing: -0.02em;\n"])));
8811
8952
  var BadgeBottom = styled__default.span(_templateObject31$1 || (_templateObject31$1 = _taggedTemplateLiteralLoose(["\n margin-top: 0.1rem;\n font-size: 0.52rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n opacity: 0.92;\n"])));
8812
8953
  var CardMetaRow = styled__default.div(_templateObject32$1 || (_templateObject32$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.28rem;\n"])));
8813
- var TypePill = styled__default.span(_templateObject33$1 || (_templateObject33$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.22rem;\n padding: 0.12rem 0.4rem;\n border-radius: 999px;\n font-size: 0.6rem;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n font-size: 0.65rem;\n }\n"])), function (_ref31) {
8814
- var $accentColor = _ref31.$accentColor;
8815
- return $accentColor;
8816
- }, function (_ref32) {
8954
+ var TypePill = styled__default.span(_templateObject33$1 || (_templateObject33$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.22rem;\n padding: 0.12rem 0.4rem;\n border-radius: 999px;\n font-size: 0.6rem;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n font-size: 0.65rem;\n }\n"])), function (_ref32) {
8817
8955
  var $accentColor = _ref32.$accentColor;
8818
- return $accentColor + "10";
8956
+ return $accentColor;
8819
8957
  }, function (_ref33) {
8820
8958
  var $accentColor = _ref33.$accentColor;
8959
+ return $accentColor + "10";
8960
+ }, function (_ref34) {
8961
+ var $accentColor = _ref34.$accentColor;
8821
8962
  return $accentColor + "22";
8822
8963
  });
8823
- var QualifiedPill = styled__default.span(_templateObject34$1 || (_templateObject34$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.2rem;\n padding: 0.12rem 0.4rem;\n border-radius: 999px;\n font-size: 0.6rem;\n font-weight: 700;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n font-size: 0.62rem;\n }\n"])), function (_ref34) {
8824
- var $accentColor = _ref34.$accentColor;
8825
- return $accentColor;
8826
- }, function (_ref35) {
8964
+ var QualifiedPill = styled__default.span(_templateObject34$1 || (_templateObject34$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.2rem;\n padding: 0.12rem 0.4rem;\n border-radius: 999px;\n font-size: 0.6rem;\n font-weight: 700;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n font-size: 0.62rem;\n }\n"])), function (_ref35) {
8827
8965
  var $accentColor = _ref35.$accentColor;
8828
- return $accentColor + "12";
8966
+ return $accentColor;
8829
8967
  }, function (_ref36) {
8830
8968
  var $accentColor = _ref36.$accentColor;
8969
+ return $accentColor + "12";
8970
+ }, function (_ref37) {
8971
+ var $accentColor = _ref37.$accentColor;
8831
8972
  return $accentColor + "30";
8832
8973
  });
8833
8974
  var TitleRow = styled__default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.45rem;\n min-width: 0;\n flex-wrap: wrap;\n"])));
8834
8975
  var OfferTitle = styled__default.h4(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n margin: 0;\n flex: 1;\n min-width: 0;\n font-size: 0.88rem;\n font-weight: 800;\n letter-spacing: -0.015em;\n color: #141a10;\n line-height: 1.25;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
8835
8976
  var OfferDescription = styled__default.p(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-size: 0.74rem;\n font-weight: 500;\n color: #4a5540;\n line-height: 1.35;\n"])));
8836
- var BuyXTimeline = styled__default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.35rem;\n padding: 0.4rem 0.55rem;\n border-radius: 0.5rem;\n background: ", ";\n border: 1px solid ", ";\n"])), function (_ref37) {
8837
- var $accentColor = _ref37.$accentColor;
8838
- return $accentColor + "07";
8839
- }, function (_ref38) {
8977
+ var BuyXTimeline = styled__default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.35rem;\n padding: 0.4rem 0.55rem;\n border-radius: 0.5rem;\n background: ", ";\n border: 1px solid ", ";\n"])), function (_ref38) {
8840
8978
  var $accentColor = _ref38.$accentColor;
8979
+ return $accentColor + "07";
8980
+ }, function (_ref39) {
8981
+ var $accentColor = _ref39.$accentColor;
8841
8982
  return $accentColor + "14";
8842
8983
  });
8843
8984
  var TimelineStep = styled__default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n"])));
8844
- var TimelineIcon = styled__default.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.45rem;\n height: 1.45rem;\n border-radius: 0.35rem;\n color: ", ";\n background: ", ";\n\n svg {\n font-size: 0.72rem;\n }\n"])), function (_ref39) {
8845
- var $accentColor = _ref39.$accentColor,
8846
- $highlight = _ref39.$highlight;
8847
- return $highlight ? '#fff' : $accentColor;
8848
- }, function (_ref40) {
8985
+ var TimelineIcon = styled__default.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.45rem;\n height: 1.45rem;\n border-radius: 0.35rem;\n color: ", ";\n background: ", ";\n\n svg {\n font-size: 0.72rem;\n }\n"])), function (_ref40) {
8849
8986
  var $accentColor = _ref40.$accentColor,
8850
8987
  $highlight = _ref40.$highlight;
8988
+ return $highlight ? '#fff' : $accentColor;
8989
+ }, function (_ref41) {
8990
+ var $accentColor = _ref41.$accentColor,
8991
+ $highlight = _ref41.$highlight;
8851
8992
  return $highlight ? $accentColor : $accentColor + "14";
8852
8993
  });
8853
8994
  var TimelineLabel = styled__default.span(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n font-size: 0.65rem;\n font-weight: 700;\n color: #3a4334;\n white-space: nowrap;\n"])));
8854
8995
  var TimelineTrack = styled__default.div(_templateObject42 || (_templateObject42 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n align-items: center;\n min-width: 2rem;\n padding: 0 0.15rem;\n"])));
8855
- var TimelineArrow = styled__default.div(_templateObject43 || (_templateObject43 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 2px;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n ", ",\n ", "\n );\n position: relative;\n\n &::after {\n content: '';\n position: absolute;\n right: -1px;\n top: 50%;\n transform: translateY(-50%);\n border: 5px solid transparent;\n border-left-color: ", ";\n }\n"])), function (_ref41) {
8856
- var $accentColor = _ref41.$accentColor;
8857
- return $accentColor + "44";
8858
- }, function (_ref42) {
8996
+ var TimelineArrow = styled__default.div(_templateObject43 || (_templateObject43 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 2px;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n ", ",\n ", "\n );\n position: relative;\n\n &::after {\n content: '';\n position: absolute;\n right: -1px;\n top: 50%;\n transform: translateY(-50%);\n border: 5px solid transparent;\n border-left-color: ", ";\n }\n"])), function (_ref42) {
8859
8997
  var $accentColor = _ref42.$accentColor;
8860
- return $accentColor;
8998
+ return $accentColor + "44";
8861
8999
  }, function (_ref43) {
8862
9000
  var $accentColor = _ref43.$accentColor;
8863
9001
  return $accentColor;
9002
+ }, function (_ref44) {
9003
+ var $accentColor = _ref44.$accentColor;
9004
+ return $accentColor;
8864
9005
  });
8865
9006
  var ProgressBlock = styled__default.div(_templateObject44 || (_templateObject44 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8866
9007
  var ProgressTrack = styled__default.div(_templateObject45 || (_templateObject45 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 0.35rem;\n border-radius: 999px;\n background: #e8ede3;\n overflow: hidden;\n"])));
8867
- var ProgressFill = styled__default.div(_templateObject46 || (_templateObject46 = _taggedTemplateLiteralLoose(["\n height: 100%;\n width: ", "%;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n ", " 0%,\n ", " 100%\n );\n animation: ", " 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;\n transition: width 0.4s ease;\n\n ", "\n"])), function (_ref44) {
8868
- var $percent = _ref44.$percent;
9008
+ var ProgressFill = styled__default.div(_templateObject46 || (_templateObject46 = _taggedTemplateLiteralLoose(["\n height: 100%;\n width: ", "%;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n ", " 0%,\n ", " 100%\n );\n animation: ", " 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;\n transition: width 0.4s ease;\n\n ", "\n"])), function (_ref45) {
9009
+ var $percent = _ref45.$percent;
8869
9010
  return $percent;
8870
- }, function (_ref45) {
8871
- var $accentColor = _ref45.$accentColor;
8872
- return $accentColor + "cc";
8873
9011
  }, function (_ref46) {
8874
9012
  var $accentColor = _ref46.$accentColor;
9013
+ return $accentColor + "cc";
9014
+ }, function (_ref47) {
9015
+ var $accentColor = _ref47.$accentColor;
8875
9016
  return $accentColor;
8876
9017
  }, progressGrow, reducedMotion);
8877
9018
  var ProgressMeta = styled__default.div(_templateObject47 || (_templateObject47 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 0.2rem 0.5rem;\n"])));
8878
9019
  var ProgressCount = styled__default.div(_templateObject48 || (_templateObject48 = _taggedTemplateLiteralLoose(["\n font-size: 0.7rem;\n font-weight: 600;\n color: #2f3829;\n\n strong {\n font-size: 0.78rem;\n font-weight: 800;\n }\n\n span {\n color: #6a7364;\n }\n"])));
8879
9020
  var ProgressHint = styled__default.span(_templateObject49 || (_templateObject49 = _taggedTemplateLiteralLoose(["\n font-size: 0.68rem;\n font-weight: 600;\n color: #7a5e12;\n line-height: 1.3;\n"])));
8880
- var SuccessBanner = styled__default.div(_templateObject50 || (_templateObject50 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.3rem;\n padding: 0.32rem 0.5rem;\n border-radius: 0.45rem;\n font-size: 0.7rem;\n font-weight: 600;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n flex-shrink: 0;\n font-size: 0.75rem;\n }\n"])), function (_ref47) {
8881
- var $accentColor = _ref47.$accentColor;
8882
- return $accentColor;
8883
- }, function (_ref48) {
9021
+ var SuccessBanner = styled__default.div(_templateObject50 || (_templateObject50 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.3rem;\n padding: 0.32rem 0.5rem;\n border-radius: 0.45rem;\n font-size: 0.7rem;\n font-weight: 600;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n flex-shrink: 0;\n font-size: 0.75rem;\n }\n"])), function (_ref48) {
8884
9022
  var $accentColor = _ref48.$accentColor;
8885
- return $accentColor + "10";
9023
+ return $accentColor;
8886
9024
  }, function (_ref49) {
8887
9025
  var $accentColor = _ref49.$accentColor;
9026
+ return $accentColor + "10";
9027
+ }, function (_ref50) {
9028
+ var $accentColor = _ref50.$accentColor;
8888
9029
  return $accentColor + "25";
8889
9030
  });
8890
9031
  var StatusList = styled__default.div(_templateObject51 || (_templateObject51 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8891
- var StatusItem = styled__default.div(_templateObject52 || (_templateObject52 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n gap: 0.3rem;\n padding: 0.28rem 0.45rem;\n border-radius: 0.45rem;\n font-size: 0.7rem;\n font-weight: 600;\n line-height: 1.35;\n opacity: 0;\n animation: ", " 0.28s ease forwards;\n animation-delay: ", "s;\n\n background-color: ", ";\n\n color: ", ";\n\n border: 1px solid\n ", ";\n\n svg {\n flex-shrink: 0;\n margin-top: 0.1rem;\n font-size: 0.82rem;\n }\n\n ", "\n"])), chipIn, function (_ref50) {
8892
- var $chipIndex = _ref50.$chipIndex;
9032
+ var StatusItem = styled__default.div(_templateObject52 || (_templateObject52 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n gap: 0.3rem;\n padding: 0.28rem 0.45rem;\n border-radius: 0.45rem;\n font-size: 0.7rem;\n font-weight: 600;\n line-height: 1.35;\n opacity: 0;\n animation: ", " 0.28s ease forwards;\n animation-delay: ", "s;\n\n background-color: ", ";\n\n color: ", ";\n\n border: 1px solid\n ", ";\n\n svg {\n flex-shrink: 0;\n margin-top: 0.1rem;\n font-size: 0.82rem;\n }\n\n ", "\n"])), chipIn, function (_ref51) {
9033
+ var $chipIndex = _ref51.$chipIndex;
8893
9034
  return 0.1 + $chipIndex * 0.05;
8894
- }, function (_ref51) {
8895
- var $accentColor = _ref51.$accentColor,
8896
- $tone = _ref51.$tone;
8897
- if ($tone === 'warning') return '#fff8eb';
8898
- if ($tone === 'success') return $accentColor + "10";
8899
- return '#f4f6f1';
8900
9035
  }, function (_ref52) {
8901
9036
  var $accentColor = _ref52.$accentColor,
8902
9037
  $tone = _ref52.$tone;
8903
- if ($tone === 'warning') return '#8a6400';
8904
- if ($tone === 'success') return $accentColor;
8905
- return '#45503c';
9038
+ if ($tone === 'warning') return '#fff8eb';
9039
+ if ($tone === 'success') return $accentColor + "10";
9040
+ return '#f4f6f1';
8906
9041
  }, function (_ref53) {
8907
9042
  var $accentColor = _ref53.$accentColor,
8908
9043
  $tone = _ref53.$tone;
9044
+ if ($tone === 'warning') return '#8a6400';
9045
+ if ($tone === 'success') return $accentColor;
9046
+ return '#45503c';
9047
+ }, function (_ref54) {
9048
+ var $accentColor = _ref54.$accentColor,
9049
+ $tone = _ref54.$tone;
8909
9050
  if ($tone === 'warning') return '#f0d48a';
8910
9051
  if ($tone === 'success') return $accentColor + "28";
8911
9052
  return '#e0e5da';
8912
9053
  }, reducedMotion);
8913
9054
  var GiftSection = styled__default.div(_templateObject53 || (_templateObject53 = _taggedTemplateLiteralLoose(["\n padding-top: 0.35rem;\n border-top: 1px solid #eef1e9;\n"])));
8914
- var GiftSectionHeader = styled__default.div(_templateObject54 || (_templateObject54 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.28rem;\n margin-bottom: 0.3rem;\n font-size: 0.62rem;\n font-weight: 800;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: ", ";\n\n svg {\n font-size: 0.72rem;\n }\n"])), function (_ref54) {
8915
- var $accentColor = _ref54.$accentColor;
9055
+ var GiftSectionHeader = styled__default.div(_templateObject54 || (_templateObject54 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.28rem;\n margin-bottom: 0.3rem;\n font-size: 0.62rem;\n font-weight: 800;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: ", ";\n\n svg {\n font-size: 0.72rem;\n }\n"])), function (_ref55) {
9056
+ var $accentColor = _ref55.$accentColor;
8916
9057
  return $accentColor;
8917
9058
  });
8918
9059
  var GiftList = styled__default.div(_templateObject55 || (_templateObject55 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.22rem;\n"])));
8919
- var GiftLink = styled__default.a(_templateObject56 || (_templateObject56 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.35rem;\n padding: 0.32rem 0.45rem;\n border-radius: 0.4rem;\n border: 1px solid ", ";\n background: #fafcf8;\n color: #2a3325;\n font-size: 0.72rem;\n font-weight: 600;\n line-height: 1.3;\n text-decoration: none;\n cursor: pointer;\n transition: background-color 0.18s ease, border-color 0.18s ease;\n\n span {\n flex: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n svg {\n flex-shrink: 0;\n font-size: 0.72rem;\n color: ", ";\n transition: transform 0.18s ease;\n }\n\n &:hover {\n border-color: ", ";\n background: ", ";\n\n svg {\n transform: translateX(2px);\n }\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n"])), function (_ref55) {
8920
- var $accentColor = _ref55.$accentColor;
8921
- return $accentColor + "1e";
8922
- }, function (_ref56) {
9060
+ var GiftLink = styled__default.a(_templateObject56 || (_templateObject56 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.35rem;\n padding: 0.32rem 0.45rem;\n border-radius: 0.4rem;\n border: 1px solid ", ";\n background: #fafcf8;\n color: #2a3325;\n font-size: 0.72rem;\n font-weight: 600;\n line-height: 1.3;\n text-decoration: none;\n cursor: pointer;\n transition: background-color 0.18s ease, border-color 0.18s ease;\n\n span {\n flex: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n svg {\n flex-shrink: 0;\n font-size: 0.72rem;\n color: ", ";\n transition: transform 0.18s ease;\n }\n\n &:hover {\n border-color: ", ";\n background: ", ";\n\n svg {\n transform: translateX(2px);\n }\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n"])), function (_ref56) {
8923
9061
  var $accentColor = _ref56.$accentColor;
8924
- return $accentColor;
9062
+ return $accentColor + "1e";
8925
9063
  }, function (_ref57) {
8926
9064
  var $accentColor = _ref57.$accentColor;
8927
9065
  return $accentColor;
8928
9066
  }, function (_ref58) {
8929
9067
  var $accentColor = _ref58.$accentColor;
8930
- return $accentColor + "08";
9068
+ return $accentColor;
8931
9069
  }, function (_ref59) {
8932
9070
  var $accentColor = _ref59.$accentColor;
9071
+ return $accentColor + "08";
9072
+ }, function (_ref60) {
9073
+ var $accentColor = _ref60.$accentColor;
8933
9074
  return $accentColor;
8934
9075
  }, reducedMotion);
8935
9076
  var CodeRow = styled__default.div(_templateObject57 || (_templateObject57 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.3rem;\n flex-shrink: 0;\n"])));
8936
- var CodeValue = styled__default.code(_templateObject58 || (_templateObject58 = _taggedTemplateLiteralLoose(["\n min-width: 0;\n max-width: 8.5rem;\n padding: 0.28rem 0.45rem;\n border-radius: 0.4rem;\n border: 1.5px dashed ", ";\n background: #fff;\n font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;\n font-size: 0.68rem;\n font-weight: 800;\n letter-spacing: 0.04em;\n color: #141a10;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_ref60) {
8937
- var $accentColor = _ref60.$accentColor;
9077
+ var CodeValue = styled__default.code(_templateObject58 || (_templateObject58 = _taggedTemplateLiteralLoose(["\n min-width: 0;\n max-width: 8.5rem;\n padding: 0.28rem 0.45rem;\n border-radius: 0.4rem;\n border: 1.5px dashed ", ";\n background: #fff;\n font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;\n font-size: 0.68rem;\n font-weight: 800;\n letter-spacing: 0.04em;\n color: #141a10;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_ref61) {
9078
+ var $accentColor = _ref61.$accentColor;
8938
9079
  return $accentColor;
8939
9080
  });
8940
- var PrimaryCopyButton = styled__default.button(_templateObject59 || (_templateObject59 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.22rem;\n flex-shrink: 0;\n height: 1.7rem;\n padding: 0 0.55rem;\n border: none;\n border-radius: 0.4rem;\n font-size: 0.68rem;\n font-weight: 800;\n color: #fff;\n cursor: pointer;\n background: ", ";\n box-shadow: 0 2px 8px ", ";\n transition: transform 0.15s ease, background 0.2s ease;\n animation: ", " 0.35s ease;\n\n svg {\n font-size: 0.72rem;\n }\n\n &:hover {\n transform: translateY(-1px);\n }\n\n &:active {\n transform: scale(0.98);\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n"])), function (_ref61) {
8941
- var $accentColor = _ref61.$accentColor,
8942
- $copied = _ref61.$copied;
9081
+ var PrimaryCopyButton = styled__default.button(_templateObject59 || (_templateObject59 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.22rem;\n flex-shrink: 0;\n height: 1.7rem;\n padding: 0 0.55rem;\n border: none;\n border-radius: 0.4rem;\n font-size: 0.68rem;\n font-weight: 800;\n color: #fff;\n cursor: pointer;\n background: ", ";\n box-shadow: 0 2px 8px ", ";\n transition: transform 0.15s ease, background 0.2s ease;\n animation: ", " 0.35s ease;\n\n svg {\n font-size: 0.72rem;\n }\n\n &:hover {\n transform: translateY(-1px);\n }\n\n &:active {\n transform: scale(0.98);\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n"])), function (_ref62) {
9082
+ var $accentColor = _ref62.$accentColor,
9083
+ $copied = _ref62.$copied;
8943
9084
  return $copied ? "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "dd 100%)" : 'linear-gradient(145deg, #1a2114 0%, #0f140c 100%)';
8944
- }, function (_ref62) {
8945
- var $accentColor = _ref62.$accentColor;
8946
- return $accentColor + "28";
8947
9085
  }, function (_ref63) {
8948
- var $copied = _ref63.$copied;
8949
- return $copied ? copyPop : 'none';
9086
+ var $accentColor = _ref63.$accentColor;
9087
+ return $accentColor + "28";
8950
9088
  }, function (_ref64) {
8951
- var $accentColor = _ref64.$accentColor;
9089
+ var $copied = _ref64.$copied;
9090
+ return $copied ? copyPop : 'none';
9091
+ }, function (_ref65) {
9092
+ var $accentColor = _ref65.$accentColor;
8952
9093
  return $accentColor;
8953
9094
  }, reducedMotion);
8954
9095
 
@@ -9196,7 +9337,7 @@ var CardRow = function CardRow(_ref3) {
9196
9337
  discountName: row === null || row === void 0 ? void 0 : row.couponCode
9197
9338
  }), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
9198
9339
  coupon: firstSuggestion,
9199
- productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0,
9340
+ productPrice: (row === null || row === void 0 ? void 0 : row.tierPrice) || (row === null || row === void 0 ? void 0 : row.standardPrice) || 0,
9200
9341
  cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
9201
9342
  primaryColor: accentColor,
9202
9343
  loading: loading,
@@ -9300,7 +9441,7 @@ var CardRow = function CardRow(_ref3) {
9300
9441
  productDiscounts: productDiscounts,
9301
9442
  primaryColor: accentColor,
9302
9443
  cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
9303
- productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0
9444
+ productPrice: (row === null || row === void 0 ? void 0 : row.tierPrice) || (row === null || row === void 0 ? void 0 : row.standardPrice) || 0
9304
9445
  })));
9305
9446
  };
9306
9447
 
@@ -9754,7 +9895,7 @@ var CartPageProductCard = function CartPageProductCard(_ref3) {
9754
9895
  discountAmount: item === null || item === void 0 ? void 0 : item.discountAmount
9755
9896
  }))), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
9756
9897
  coupon: firstSuggestion,
9757
- productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0,
9898
+ productPrice: (item === null || item === void 0 ? void 0 : item.tierPrice) || (item === null || item === void 0 ? void 0 : item.standardPrice) || 0,
9758
9899
  cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9759
9900
  primaryColor: accentColor,
9760
9901
  loading: loading,
@@ -9818,7 +9959,7 @@ var CartPageProductCard = function CartPageProductCard(_ref3) {
9818
9959
  productDiscounts: productDiscounts,
9819
9960
  primaryColor: accentColor,
9820
9961
  cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9821
- productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0
9962
+ productPrice: (item === null || item === void 0 ? void 0 : item.tierPrice) || (item === null || item === void 0 ? void 0 : item.standardPrice) || 0
9822
9963
  }));
9823
9964
  };
9824
9965
 
@@ -13635,7 +13776,7 @@ var Step2 = function Step2(_ref) {
13635
13776
  icon: /*#__PURE__*/React__default.createElement(fi.FiTruck, {
13636
13777
  className: "icon"
13637
13778
  })
13638
- }), /*#__PURE__*/React__default.createElement(StepsContent, null, showShipping && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(material.Grid, {
13779
+ }), /*#__PURE__*/React__default.createElement(StepsContent, null, showShipping && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.Grid, {
13639
13780
  container: true
13640
13781
  }, /*#__PURE__*/React__default.createElement(material.Grid, {
13641
13782
  item: true,