@saasquatch/mint-components 1.5.0-2 → 1.5.0-3

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.
Files changed (68) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-brand_31.cjs.entry.js +295 -121
  4. package/dist/cjs/sqm-program-explainer-step-view-98958ab1.js +64 -0
  5. package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +3 -16
  6. package/dist/cjs/sqm-program-explainer-view-ba7ed24a.js +44 -0
  7. package/dist/cjs/sqm-program-explainer.cjs.entry.js +4 -33
  8. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +42 -29
  9. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +35 -28
  10. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +112 -5
  11. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +35 -20
  12. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +23 -46
  13. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +5 -3
  14. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +38 -19
  15. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +3 -0
  16. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +133 -87
  17. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +349 -3
  18. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +17 -4
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/mint-components.js +1 -1
  21. package/dist/esm/sqm-brand_31.entry.js +295 -121
  22. package/dist/esm/sqm-program-explainer-step-view-64fc0c37.js +62 -0
  23. package/dist/esm/sqm-program-explainer-step.entry.js +3 -16
  24. package/dist/esm/sqm-program-explainer-view-68f0d242.js +42 -0
  25. package/dist/esm/sqm-program-explainer.entry.js +7 -36
  26. package/dist/esm-es5/loader.js +1 -1
  27. package/dist/esm-es5/mint-components.js +1 -1
  28. package/dist/esm-es5/sqm-brand_31.entry.js +2 -2
  29. package/dist/esm-es5/sqm-program-explainer-step-view-64fc0c37.js +1 -0
  30. package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
  31. package/dist/esm-es5/sqm-program-explainer-view-68f0d242.js +1 -0
  32. package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
  33. package/dist/mint-components/mint-components.esm.js +1 -1
  34. package/dist/mint-components/mint-components.js +1 -1
  35. package/dist/mint-components/p-1435350e.system.js +1 -0
  36. package/dist/mint-components/p-16f5a7cb.system.js +1 -1
  37. package/dist/mint-components/p-259d31fc.entry.js +1 -0
  38. package/dist/mint-components/p-5cda79ed.system.entry.js +1 -0
  39. package/dist/mint-components/p-6d6be8bd.system.js +1 -0
  40. package/dist/mint-components/p-864f49d2.system.entry.js +1 -0
  41. package/dist/mint-components/p-8c4931a5.js +1 -0
  42. package/dist/mint-components/p-adcde089.system.entry.js +58 -0
  43. package/dist/mint-components/p-bf7fcf0c.js +1 -0
  44. package/dist/mint-components/{p-7300b0ae.entry.js → p-dd865aa8.entry.js} +15 -15
  45. package/dist/mint-components/p-f52bc20c.entry.js +1 -0
  46. package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +3 -1
  47. package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +9 -0
  48. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +23 -3
  49. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +9 -12
  50. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +2 -0
  51. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +85 -0
  52. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
  53. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
  54. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +53 -0
  55. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +16 -0
  56. package/dist/types/components.d.ts +166 -19
  57. package/grapesjs/grapesjs.js +1 -1
  58. package/package.json +1 -1
  59. package/dist/cjs/sqm-program-explainer-step-view-0e66bea1.js +0 -49
  60. package/dist/esm/sqm-program-explainer-step-view-26920cf9.js +0 -47
  61. package/dist/esm-es5/sqm-program-explainer-step-view-26920cf9.js +0 -1
  62. package/dist/mint-components/p-1ea0804d.js +0 -1
  63. package/dist/mint-components/p-244f3d9b.system.entry.js +0 -1
  64. package/dist/mint-components/p-4fd17832.entry.js +0 -1
  65. package/dist/mint-components/p-9bda1dc4.system.entry.js +0 -1
  66. package/dist/mint-components/p-d12c666e.system.js +0 -1
  67. package/dist/mint-components/p-ded1509b.entry.js +0 -1
  68. package/dist/mint-components/p-f8c5f710.system.entry.js +0 -58
@@ -17,8 +17,8 @@ const sqmPortalSectionView = require('./sqm-portal-section-view-3b008930.js');
17
17
  const sqmTextSpanView = require('./sqm-text-span-view-b5ae787b.js');
18
18
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-7dd44d62.js');
19
19
  const reRender = require('./re-render-6111d4bd.js');
20
- const useDemoBigStat = require('./useDemoBigStat-2786227e.js');
21
20
  const sqmShareLinkView = require('./sqm-share-link-view-a935d07e.js');
21
+ const useDemoBigStat = require('./useDemoBigStat-2786227e.js');
22
22
  const ShadowViewAddon = require('./ShadowViewAddon-a85b8c8d.js');
23
23
  const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-d06e1885.js');
24
24
  const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-6c7f78e6.js');
@@ -32,7 +32,8 @@ const sqmAssetCardView = require('./sqm-asset-card-view-07f86880.js');
32
32
  const sqmPortalFooterView = require('./sqm-portal-footer-view-69c73802.js');
33
33
  const sqmHeroView = require('./sqm-hero-view-bb3d00a1.js');
34
34
  const sqmNameFieldsView = require('./sqm-name-fields-view-24614ac7.js');
35
- const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-0e66bea1.js');
35
+ const sqmProgramExplainerView = require('./sqm-program-explainer-view-ba7ed24a.js');
36
+ const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-98958ab1.js');
36
37
 
37
38
  var chroma = _extends.createCommonjsModule(function (module, exports) {
38
39
  /**
@@ -18038,6 +18039,7 @@ const ReferralTableUserCell = class {
18038
18039
  }
18039
18040
  };
18040
18041
 
18042
+ // TODO: add rewardInput once it works
18041
18043
  const GET_EXCHANGE_LIST = index_module.dist.gql `
18042
18044
  query getExchangeList {
18043
18045
  viewer {
@@ -18103,10 +18105,11 @@ function useRewardExchangeList(props) {
18103
18105
  amount: 0,
18104
18106
  exchangeError: false,
18105
18107
  });
18108
+ const [open, setOpen] = _extends.useState(false);
18106
18109
  const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
18107
18110
  const user = index_module.T();
18108
- const [exchange, { data: exchangeResponse, errors }] = index_module.be(EXCHANGE);
18109
- const { data, loading, refetch } = index_module.en(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
18111
+ const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.be(EXCHANGE);
18112
+ const { data, loading, refetch, errors: queryError, } = index_module.en(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
18110
18113
  _extends.useEffect(() => {
18111
18114
  var _a, _b;
18112
18115
  if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
@@ -18196,6 +18199,14 @@ function useRewardExchangeList(props) {
18196
18199
  function setStage(stage) {
18197
18200
  setExchangeState({ redeemStage: stage });
18198
18201
  }
18202
+ function copyFuelTankCode() {
18203
+ var _a, _b;
18204
+ // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
18205
+ // Only if called from a user-initiated event
18206
+ navigator.clipboard.writeText((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.fuelTankCode);
18207
+ setOpen(true);
18208
+ setTimeout(() => setOpen(false), 1000);
18209
+ }
18199
18210
  return {
18200
18211
  states: {
18201
18212
  content: {
@@ -18206,7 +18217,9 @@ function useRewardExchangeList(props) {
18206
18217
  amount,
18207
18218
  selectedStep,
18208
18219
  exchangeError,
18209
- loading,
18220
+ queryError: !!queryError,
18221
+ loading: loading || exchangeLoading,
18222
+ open,
18210
18223
  },
18211
18224
  data: {
18212
18225
  exchangeList: (_b = (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.visibleRewardExchangeItems) === null || _b === void 0 ? void 0 : _b.data,
@@ -18217,6 +18230,7 @@ function useRewardExchangeList(props) {
18217
18230
  setExchangeState,
18218
18231
  setStage,
18219
18232
  resetState,
18233
+ copyFuelTankCode,
18220
18234
  },
18221
18235
  };
18222
18236
  }
@@ -18225,6 +18239,9 @@ const ExchangeArrows = () => (index.h("svg", { width: 19, height: 15, fill: "non
18225
18239
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.125 14.783a.6.6 0 0 1-.851 0l-3.9-3.923a.6.6 0 1 1 .85-.846L4.1 12.905V1.52a.6.6 0 0 1 1.2 0v11.385l2.875-2.891a.6.6 0 1 1 .85.846l-3.9 3.923Zm9.6-13.686a.6.6 0 0 0-.851 0l-3.9 3.923a.6.6 0 0 0 .85.846L13.7 2.975V14.36a.6.6 0 1 0 1.2 0V2.975l2.875 2.891a.6.6 0 1 0 .85-.846l-3.9-3.923Z", fill: "#333" })));
18226
18240
  const CheckMark = () => (index.h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
18227
18241
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.58.23c.475.371.56 1.057.19 1.532L5.69 9.554a1.091 1.091 0 0 1-1.631.1L.32 5.915a1.09 1.09 0 1 1 1.542-1.542L4.73 7.239 10.049.42A1.09 1.09 0 0 1 11.58.23Z", fill: "#fff" })));
18242
+ const CheckmarkFilled = () => (index.h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
18243
+ index.h("path", { d: "M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z", fill: "currentColor" }),
18244
+ index.h("path", { d: "M5.68394 8.77046C5.28103 8.39273 4.64819 8.41315 4.27046 8.81606C3.89273 9.21897 3.91315 9.85181 4.31606 10.2295L5.68394 8.77046ZM7.66667 12L6.98273 12.7295C7.36738 13.0902 7.96595 13.0902 8.35061 12.7295L7.66667 12ZM13.6839 7.72954C14.0869 7.35181 14.1073 6.71897 13.7295 6.31606C13.3518 5.91315 12.719 5.89273 12.3161 6.27046L13.6839 7.72954ZM4.31606 10.2295L6.98273 12.7295L8.35061 11.2705L5.68394 8.77046L4.31606 10.2295ZM8.35061 12.7295L13.6839 7.72954L12.3161 6.27046L6.98273 11.2705L8.35061 12.7295Z", fill: "white" })));
18228
18245
  const Gift = () => (index.h("svg", { width: 156, height: 157, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
18229
18246
  index.h("path", { d: "M40.18 126h83.663a3 3 0 0 0 3-3V73.966a3 3 0 0 0-3-3H40.18a3 3 0 0 0-3 3V123a3 3 0 0 0 3 3Z", fill: "#FFD34F" }),
18230
18247
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M37.18 73.862v7.966h89.663v-7.966H37.18Z", fill: "#E9BB30" }),
@@ -18307,12 +18324,14 @@ function ProgressBar({ stageCount, currentStage, }) {
18307
18324
  }
18308
18325
 
18309
18326
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
18310
- const stageProgressList = {
18311
- chooseReward: "Choose reward",
18312
- chooseAmount: "Amount",
18313
- confirmation: "Confirm",
18314
- };
18315
18327
  function RewardExchangeView(props) {
18328
+ const { states, data, callbacks } = props;
18329
+ const { selectedItem, selectedStep } = states;
18330
+ const stageProgressList = {
18331
+ chooseReward: states.content.text.chooseRewardTitle,
18332
+ chooseAmount: states.content.text.chooseAmountTitle,
18333
+ confirmation: states.content.text.confirmationTitle,
18334
+ };
18316
18335
  const style = {
18317
18336
  HostBlock: mixins.HostBlock,
18318
18337
  Container: {
@@ -18376,17 +18395,6 @@ function RewardExchangeView(props) {
18376
18395
  color: "var(--sl-color-primary-500)",
18377
18396
  },
18378
18397
  },
18379
- Buttons: {
18380
- marginLeft: "auto",
18381
- width: "100%",
18382
- maxWidth: "300px",
18383
- },
18384
- Button: {
18385
- margin: "10px 0",
18386
- display: "block",
18387
- textAlign: "center",
18388
- cursor: "pointer",
18389
- },
18390
18398
  ProgressBar: {
18391
18399
  maxWidth: "350px",
18392
18400
  width: "100%",
@@ -18408,7 +18416,13 @@ function RewardExchangeView(props) {
18408
18416
  },
18409
18417
  },
18410
18418
  },
18411
- KutayCard: {
18419
+ CardLayout: {
18420
+ display: "flex",
18421
+ width: "100%",
18422
+ borderRadius: "3px",
18423
+ background: "rgba(0, 0, 0, 0)",
18424
+ },
18425
+ Card: {
18412
18426
  display: "flex",
18413
18427
  userSelect: "none",
18414
18428
  height: "120px",
@@ -18420,21 +18434,12 @@ function RewardExchangeView(props) {
18420
18434
  display: "flex",
18421
18435
  padding: 0,
18422
18436
  },
18423
- "& .selected-outline": {
18424
- width: "18px",
18425
- height: "18px",
18426
- minWidth: "18px",
18427
- borderRadius: "50%",
18428
- background: "var(--sl-color-primary-500)",
18437
+ "& .selected": {
18429
18438
  position: "relative",
18430
- margin: "-9px",
18439
+ top: "-2%",
18431
18440
  left: "100%",
18432
- },
18433
- "& .selected-checkmark": {
18434
- position: "relative",
18435
- left: "12%",
18436
- top: "-29%",
18437
- transform: "scale(0.8)",
18441
+ color: "var(--sl-color-primary-500)",
18442
+ margin: "-9px",
18438
18443
  },
18439
18444
  },
18440
18445
  Square: {
@@ -18453,14 +18458,18 @@ function RewardExchangeView(props) {
18453
18458
  },
18454
18459
  },
18455
18460
  Image: {
18461
+ padding: "8px",
18462
+ minWidth: "96px",
18463
+ maxWidth: "96px",
18456
18464
  "& .image": {
18465
+ width: "100%",
18466
+ height: "100%",
18457
18467
  objectFit: "contain",
18458
- width: "120px",
18459
- height: "118px",
18460
- flex: 0.33,
18468
+ borderRadius: "4px",
18461
18469
  },
18462
- "& .image.black": {
18463
- filter: "brightness(20%)",
18470
+ "& .image.subdued": {
18471
+ filter: "brightness(0.95)",
18472
+ opacity: "0.5",
18464
18473
  },
18465
18474
  },
18466
18475
  TextArea: {
@@ -18471,12 +18480,20 @@ function RewardExchangeView(props) {
18471
18480
  lineHeight: "20px",
18472
18481
  fontWeight: "600",
18473
18482
  color: "var(--sl-color-neutral-1000)",
18483
+ display: "-webkit-box",
18484
+ "-webkit-line-clamp": "1",
18485
+ "-webkit-box-orient": "vertical",
18486
+ overflow: "hidden",
18474
18487
  },
18475
18488
  "& .amount": {
18476
18489
  fontSize: "14px",
18477
18490
  lineHeight: "18px",
18478
18491
  marginTop: "8px",
18479
18492
  color: "var(--sl-color-neutral-500)",
18493
+ display: "-webkit-box",
18494
+ "-webkit-line-clamp": "1",
18495
+ "-webkit-box-orient": "vertical",
18496
+ overflow: "hidden",
18480
18497
  },
18481
18498
  "& .error": {
18482
18499
  fontSize: "14px",
@@ -18484,6 +18501,10 @@ function RewardExchangeView(props) {
18484
18501
  marginTop: "8px",
18485
18502
  fontWeight: "600",
18486
18503
  color: "var(--sl-color-warning-500)",
18504
+ display: "-webkit-box",
18505
+ "-webkit-line-clamp": "1",
18506
+ "-webkit-box-orient": "vertical",
18507
+ overflow: "hidden",
18487
18508
  },
18488
18509
  },
18489
18510
  ChooseAmount: {
@@ -18498,7 +18519,7 @@ function RewardExchangeView(props) {
18498
18519
  //fontSize: "var(--sl-font-size-large)",
18499
18520
  fontSize: "113%",
18500
18521
  fontWeight: "var(--sl-font-weight-semibold)",
18501
- color: "var(--sl-color-sky-500)",
18522
+ color: "var(--sl-color-primary-500)",
18502
18523
  },
18503
18524
  "& .description": {
18504
18525
  fontSize: "var(--sl-font-size-medium)",
@@ -18535,7 +18556,7 @@ function RewardExchangeView(props) {
18535
18556
  gap: "20px",
18536
18557
  gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
18537
18558
  },
18538
- KutayButton: {
18559
+ Button: {
18539
18560
  display: "flex",
18540
18561
  flexWrap: "wrap-reverse",
18541
18562
  margin: "var(--sl-spacing-medium) 0",
@@ -18574,18 +18595,18 @@ function RewardExchangeView(props) {
18574
18595
  jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
18575
18596
  const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
18576
18597
  const styleString = sheet.toString();
18577
- const { states, data, callbacks } = props;
18578
- const { selectedItem, selectedStep } = states;
18579
18598
  function getInput() {
18580
18599
  var _a, _b;
18581
18600
  const item = states.selectedItem;
18582
18601
  if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
18583
18602
  return index.h("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
18584
18603
  if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
18585
- return index.h("p", null,
18586
- "Not enough ",
18587
- item.sourceUnit,
18588
- " to redeem for this reward.");
18604
+ return (index.h("p", null, global.intl.formatMessage({
18605
+ id: "notEnoughError",
18606
+ defaultMessage: states.content.text.notEnoughError,
18607
+ }, {
18608
+ sourceUnit: item.sourceUnit,
18609
+ })));
18589
18610
  }
18590
18611
  return (index.h("sl-select", { style: { width: "auto" }, label: "Select amount to receive", class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
18591
18612
  var _a, _b, _c, _d, _e;
@@ -18604,6 +18625,7 @@ function RewardExchangeView(props) {
18604
18625
  defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
18605
18626
  }, {
18606
18627
  unavailableReason: step.unavailableReasonCode,
18628
+ sourceValue: step.prettySourceValue || item.prettySourceMinValue,
18607
18629
  }))))));
18608
18630
  })));
18609
18631
  }
@@ -18611,57 +18633,70 @@ function RewardExchangeView(props) {
18611
18633
  var _a;
18612
18634
  return [
18613
18635
  index.h("div", { class: sheet.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
18614
- var _a, _b;
18636
+ var _a, _b, _c, _d, _e;
18615
18637
  const style = {
18616
18638
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
18617
18639
  ? "0 0 0 2px var(--sl-color-primary-500)"
18618
18640
  : "none",
18641
+ borderRadius: "4px",
18619
18642
  };
18620
18643
  const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
18621
18644
  ? item.prettySourceValue
18622
- : item.prettySourceMinValue && item.prettySourceMaxValue
18623
- ? `${item.prettySourceMinValue} to ${item.prettySourceMaxValue}`
18624
- : "";
18645
+ : item.ruleType === "STEPPED_FIXED_GLOBAL_REWARD"
18646
+ ? `${(_a = item.steps[0]) === null || _a === void 0 ? void 0 : _a.sourceValue} to ${(_b = item.steps.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.prettySourceValue}`
18647
+ : `${item.prettySourceMinValue} to ${item.prettySourceMaxValue}`;
18625
18648
  return (index.h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
18626
- index.h("sl-card", { class: sheet.classes.KutayCard, style: {
18649
+ index.h("sl-card", { class: sheet.classes.Card, style: {
18627
18650
  cursor: item.unavailableReasonCode
18628
18651
  ? "not-allowed"
18629
18652
  : "pointer",
18630
18653
  }, onClick: () => item.available &&
18631
18654
  callbacks.setExchangeState({ selectedItem: item }) },
18632
- item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (index.h("div", { class: "selected-outline" },
18633
- index.h("div", { class: "selected-checkmark" },
18634
- index.h(CheckMark, null)))),
18655
+ item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (index.h("div", { class: "selected" },
18656
+ index.h(CheckmarkFilled, null))),
18635
18657
  index.h("div", { style: {
18636
18658
  display: "flex",
18637
18659
  width: "100%",
18660
+ height: "120px",
18638
18661
  borderRadius: "3px",
18639
18662
  background: item.unavailableReasonCode
18640
18663
  ? "rgba(0, 0, 0, 0.05)"
18641
18664
  : "rgba(0, 0, 0, 0)",
18642
18665
  } },
18643
- index.h("div", { class: sheet.classes.Square },
18666
+ index.h("div", { class: sheet.classes.Image, style: {
18667
+ opacity: item.unavailableReasonCode ? "0.5" : "1",
18668
+ } },
18644
18669
  index.h("img", { class: item.unavailableReasonCode ? "image subdued" : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
18645
18670
  index.getAssetPath("./assets/placeholder.png") })),
18646
18671
  index.h("div", { class: sheet.classes.TextArea, style: {
18647
18672
  opacity: item.unavailableReasonCode ? "0.5" : "1",
18648
18673
  } },
18649
- index.h("div", { class: "title" }, item.name),
18650
- index.h("div", { class: "amount" }, amount),
18674
+ index.h("div", { class: "title", style: {
18675
+ "-webkit-line-clamp": item.unavailableReasonCode
18676
+ ? "1"
18677
+ : "2",
18678
+ } }, (_c = item.name) !== null && _c !== void 0 ? _c : ""),
18679
+ index.h("div", { class: "amount", style: {
18680
+ "-webkit-line-clamp": item.unavailableReasonCode
18681
+ ? "1"
18682
+ : "2",
18683
+ } }, amount),
18651
18684
  item.unavailableReasonCode && (index.h("div", { class: "error" }, global.intl.formatMessage({
18652
18685
  id: "unavailableCode",
18653
- defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
18686
+ defaultMessage: (_e = (_d = states.content) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.notAvailableError,
18654
18687
  }, {
18655
18688
  unavailableReason: item.unavailableReason ||
18656
18689
  item.unavailableReasonCode,
18690
+ sourceValue: item.prettySourceValue ||
18691
+ item.prettySourceMinValue,
18657
18692
  }))))))));
18658
18693
  })),
18659
- index.h("div", { class: sheet.classes.KutayButton },
18660
- index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), disabled: !states.selectedItem }, "Continue")),
18694
+ index.h("div", { class: sheet.classes.Button },
18695
+ index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText)),
18661
18696
  ];
18662
18697
  }
18663
18698
  function chooseAmount() {
18664
- var _a, _b, _c;
18699
+ var _a, _b, _c, _d;
18665
18700
  const input = getInput();
18666
18701
  const isDisabled = ((_a = states.selectedItem) === null || _a === void 0 ? void 0 : _a.ruleType) === "FIXED_GLOBAL_REWARD"
18667
18702
  ? false
@@ -18670,17 +18705,18 @@ function RewardExchangeView(props) {
18670
18705
  index.h("div", null, index.h("img", { class: sheet.classes.FullImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
18671
18706
  index.getAssetPath("./assets/placeholder.png") })),
18672
18707
  index.h("div", { class: sheet.classes.ChooseAmount },
18673
- index.h("div", { class: "title" }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""),
18674
- ((_b = states.selectedItem) === null || _b === void 0 ? void 0 : _b.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
18675
- ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", { class: "points" }, input)),
18708
+ index.h("div", { class: "title" }, (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : ""),
18709
+ ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
18710
+ ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", { class: "points" }, input)),
18676
18711
  index.h("div", { class: "space" })),
18677
- index.h("div", { class: sheet.classes.KutayButton },
18678
- index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, "Cancel"),
18679
- index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, "Continue to confirmation"))));
18712
+ index.h("div", { class: sheet.classes.Button },
18713
+ index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
18714
+ index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText))));
18680
18715
  }
18681
18716
  function confirmation() {
18717
+ var _a, _b;
18682
18718
  return (index.h("div", null,
18683
- index.h("h2", { style: { margin: "20px 0" } }, "Confirm and redeem"),
18719
+ index.h("h2", { style: { margin: "20px 0" } }, states.content.text.redeemTitle),
18684
18720
  index.h("div", { style: {
18685
18721
  textAlign: "center",
18686
18722
  marginBottom: "var(--sl-spacing-xxx-large)",
@@ -18695,27 +18731,39 @@ function RewardExchangeView(props) {
18695
18731
  flex: "1",
18696
18732
  minWidth: "100%",
18697
18733
  } },
18698
- index.h("sl-card", { style: { width: "auto", maxWidth: "350px", margin: "auto" }, class: sheet.classes.KutayCard },
18734
+ index.h("sl-card", { style: { width: "auto", maxWidth: "350px", margin: "auto" }, class: sheet.classes.Card },
18699
18735
  index.h("div", { class: sheet.classes.Square },
18700
18736
  index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
18701
18737
  index.getAssetPath("./assets/placeholder.png") })),
18702
18738
  index.h("div", { class: sheet.classes.TextArea, style: {
18703
18739
  lineHeight: "18px",
18704
18740
  alignSelf: "center",
18705
- } }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) +
18706
- " " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""
18707
- : (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || "")))),
18708
- index.h("div", { class: sheet.classes.KutayButton },
18709
- index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, "Back"),
18710
- index.h("sl-button", { class: "continue", size: "large", onClick: callbacks.exchangeReward }, "Redeem"))));
18741
+ } }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? (_a = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) +
18742
+ " " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name)) !== null && _a !== void 0 ? _a : "" : (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : "")))),
18743
+ index.h("div", { class: sheet.classes.Button },
18744
+ index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
18745
+ index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText))));
18711
18746
  }
18712
18747
  function success() {
18748
+ var _a, _b, _c;
18713
18749
  return (index.h("div", { class: sheet.classes.Success },
18714
18750
  index.h(Gift, null),
18715
- index.h("div", { class: "title" }, "Reward Redeemed"),
18716
- index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description),
18717
- index.h("div", { class: sheet.classes.KutayButton },
18718
- index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, "Done"))));
18751
+ index.h("div", { class: "title" }, states.content.text.rewardRedeemedText),
18752
+ index.h("div", { class: "description" }, global.intl.formatMessage({
18753
+ id: "successMessage",
18754
+ defaultMessage: states.content.text.redemptionSuccessText,
18755
+ }, {
18756
+ sourceValue: (_a = states.selectedItem.prettySourceValue) !== null && _a !== void 0 ? _a : (_b = states.selectedStep) === null || _b === void 0 ? void 0 : _b.prettySourceValue,
18757
+ destinationValue: ((_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettyDestinationValue) ||
18758
+ states.selectedItem.globalRewardKey,
18759
+ })),
18760
+ (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { style: {
18761
+ width: "40%",
18762
+ margin: "-30px auto var(--sl-spacing-xxx-large) auto",
18763
+ } },
18764
+ index.h(sqmShareLinkView.ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: "Copied", open: states.open, onClick: callbacks.copyFuelTankCode }))),
18765
+ index.h("div", { class: sheet.classes.Button },
18766
+ index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
18719
18767
  }
18720
18768
  const stages = {
18721
18769
  chooseReward: () => chooseReward(),
@@ -18738,26 +18786,40 @@ function RewardExchangeView(props) {
18738
18786
  index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
18739
18787
  }
18740
18788
  function loading() {
18741
- return (index.h("div", { style: {
18742
- display: "flex",
18743
- height: "400px",
18744
- alignItems: "center",
18745
- justifyContent: "center",
18746
- } },
18747
- index.h("div", { style: { transform: "scale(5)" } },
18748
- index.h("sl-spinner", null))));
18789
+ return (index.h("div", { class: sheet.classes.Grid }, [...Array(8)].map(() => {
18790
+ return (index.h("div", { class: sheet.classes.CardContainer },
18791
+ index.h("sl-card", { class: sheet.classes.Card },
18792
+ index.h("div", { class: sheet.classes.CardLayout },
18793
+ index.h("div", null,
18794
+ index.h("sl-skeleton", { style: {
18795
+ width: "100px",
18796
+ height: "100px",
18797
+ margin: "9px",
18798
+ "--border-radius": "4px",
18799
+ } })),
18800
+ index.h("div", { style: { margin: "12px 12px 0 0", width: "100%" } },
18801
+ index.h("sl-skeleton", { style: { marginBottom: "12px" } }),
18802
+ index.h("sl-skeleton", { style: { marginBottom: "12px" } }),
18803
+ index.h("sl-skeleton", { style: { width: "45%" } }))))));
18804
+ })));
18749
18805
  }
18750
18806
  function errorMessage() {
18751
18807
  return (index.h("sl-alert", { type: "danger", open: true },
18752
18808
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
18753
- "An error occured trying to redeem this reward. Please try again."));
18809
+ states.content.text.redemptionError));
18810
+ }
18811
+ function queryErrorMessage() {
18812
+ return (index.h("sl-alert", { type: "danger", open: true },
18813
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
18814
+ states.content.text.queryError));
18754
18815
  }
18755
18816
  return (index.h("div", { class: sheet.classes.Container },
18756
18817
  index.h("style", { type: "text/css" }, styleString),
18757
18818
  index.h("div", null,
18758
18819
  stageMap(),
18759
- states.loading && loading(),
18820
+ states.redeemStage === "chooseReward" && states.loading && loading(),
18760
18821
  states.exchangeError && errorMessage(),
18822
+ states.queryError && queryErrorMessage(),
18761
18823
  currentStage && currentStage())));
18762
18824
  }
18763
18825
 
@@ -18772,7 +18834,60 @@ const SqmRewardExchangeList = class {
18772
18834
  /**
18773
18835
  * @uiName Exchange button text
18774
18836
  */
18775
- this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
18837
+ this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} other {Not available} }";
18838
+ /**
18839
+ * @uiName Choose Reward Progress Title
18840
+ */
18841
+ this.chooseRewardTitle = "Choose reward";
18842
+ /**
18843
+ * @uiName Choose Amount Progress Title
18844
+ */
18845
+ this.chooseAmountTitle = "Amount";
18846
+ /**
18847
+ * @uiName Confirmation Progress Title
18848
+ */
18849
+ this.confirmationTitle = "Confirm";
18850
+ /**
18851
+ * @uiName Cancel Button Text
18852
+ */
18853
+ this.cancelText = "Cancel";
18854
+ /**
18855
+ * @uiName Back Button Text
18856
+ */
18857
+ this.backText = "Back";
18858
+ /**
18859
+ * @uiName Continue Button Text
18860
+ */
18861
+ this.continueText = "Continue";
18862
+ /**
18863
+ * @uiName Continue to Confirmation Button Text
18864
+ */
18865
+ this.continueToConfirmationText = "Continue to confirmation";
18866
+ /**
18867
+ * @uiName Redeem Button Text
18868
+ */
18869
+ this.redeemText = "Redeem";
18870
+ /**
18871
+ * @uiName Confirmation Title Text
18872
+ */
18873
+ this.redeemTitle = "Confirm and redeem";
18874
+ this.redemptionSuccessText = "Successfully redeemed {sourceValue} for {destinationValue}";
18875
+ /**
18876
+ * @uiName Done Text
18877
+ */
18878
+ this.doneText = "Done";
18879
+ /**
18880
+ * @uiName Reward List Error Message
18881
+ */
18882
+ this.queryError = "Unable to load reward exchange list";
18883
+ /**
18884
+ * @uiName Redemption Error Message
18885
+ */
18886
+ this.redemptionError = "An error occured trying to redeem this reward. Please try again";
18887
+ /**
18888
+ * @uiName Not Enough Available Error Message
18889
+ */
18890
+ this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
18776
18891
  _extends.h$1(this);
18777
18892
  }
18778
18893
  disconnectedCallback() { }
@@ -18803,6 +18918,7 @@ function useRewardExchangeListDemo(props) {
18803
18918
  amount: 0,
18804
18919
  selectedStep: undefined,
18805
18920
  exchangeError: false,
18921
+ queryError: false,
18806
18922
  loading: false,
18807
18923
  },
18808
18924
  data: {
@@ -18813,6 +18929,7 @@ function useRewardExchangeListDemo(props) {
18813
18929
  setExchangeState: (_) => { },
18814
18930
  setStage: (_) => { },
18815
18931
  resetState: () => { },
18932
+ copyFuelTankCode: () => { },
18816
18933
  },
18817
18934
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
18818
18935
  }
@@ -29198,7 +29315,7 @@ const NameFields$1 = /*#__PURE__*/Object.freeze({
29198
29315
  NameFieldsWithErrors: NameFieldsWithErrors
29199
29316
  });
29200
29317
 
29201
- const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false) => ({
29318
+ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
29202
29319
  states: {
29203
29320
  content: {
29204
29321
  text: {
@@ -29211,15 +29328,18 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
29211
29328
  loading: loading,
29212
29329
  selectedItem: selectedItem,
29213
29330
  selectedStep: selectedStep,
29331
+ open: false,
29214
29332
  },
29215
29333
  data: {
29216
29334
  exchangeList: data,
29335
+ fuelTankCode: fueltank,
29217
29336
  },
29218
29337
  callbacks: {
29219
29338
  exchangeReward: null,
29220
29339
  resetState: null,
29221
29340
  setStage: null,
29222
29341
  setExchangeState: null,
29342
+ copyFuelTankCode: null,
29223
29343
  refs: null,
29224
29344
  },
29225
29345
  refs: null,
@@ -29268,12 +29388,12 @@ const name = (props) => ({
29268
29388
  const fixedValue = (props) => ({
29269
29389
  prettySourceValue: props,
29270
29390
  });
29271
- const variableValue = (min, max, text) => ({
29391
+ const variableValue = (min, max, unit) => ({
29272
29392
  ruleType: "VARIABLE_CREDIT_REWARD",
29273
29393
  sourceMinValue: min,
29274
- prettySourceMinValue: min + " " + text,
29394
+ prettySourceMinValue: min + " " + unit,
29275
29395
  sourceMaxValue: max,
29276
- prettySourceMaxValue: max + " " + text,
29396
+ prettySourceMaxValue: max + " " + unit,
29277
29397
  });
29278
29398
  const data = [
29279
29399
  {
@@ -29287,7 +29407,7 @@ const data = [
29287
29407
  ...selected,
29288
29408
  ...name("Visa® Prepaid Card USD"),
29289
29409
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29290
- ...variableValue(20, 80, "SaaSquatch Points"),
29410
+ ...variableValue(20, 80, "Points"),
29291
29411
  },
29292
29412
  {
29293
29413
  ...baseReward$2,
@@ -29305,7 +29425,7 @@ const data = [
29305
29425
  ...baseReward$2,
29306
29426
  ...name("Variable amount of store credit"),
29307
29427
  ...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
29308
- ...variableValue(20, 100, "SaaSquatch Points"),
29428
+ ...variableValue(20, 100, "Points"),
29309
29429
  },
29310
29430
  {
29311
29431
  ...baseReward$2,
@@ -29317,9 +29437,9 @@ const data = [
29317
29437
  {
29318
29438
  ...baseReward$2,
29319
29439
  ...usTax,
29320
- ...name("$1000 Store credit"),
29440
+ ...name("$1000 Store credit with a really super long name in the front page"),
29321
29441
  ...imageUrl("https://i.imgur.com/y9HSls1.png"),
29322
- ...fixedValue("2000 SaaSquatch Points"),
29442
+ ...fixedValue("2000 SaaSquatch Long Points"),
29323
29443
  },
29324
29444
  {
29325
29445
  ...baseReward$2,
@@ -29338,7 +29458,7 @@ const rewardExchangeSelected = {
29338
29458
  ...selected,
29339
29459
  ...name("Visa® Prepaid Card USD"),
29340
29460
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29341
- ...variableValue(20, 80, "SaaSquatch Points"),
29461
+ ...variableValue(20, 80, "Points"),
29342
29462
  }),
29343
29463
  };
29344
29464
  const baseStep = (dst, dstUnit, src, srcUnit, available = true) => ({
@@ -29355,13 +29475,13 @@ const chooseAmountVariable = {
29355
29475
  ...baseReward$2,
29356
29476
  ...name("Visa® Prepaid Card USD"),
29357
29477
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29358
- ...variableValue(20, 80, "SaaSquatch Points"),
29478
+ ...variableValue(20, 80, "Points"),
29359
29479
  steps: [
29360
- baseStep(20, "$", 40, "SaaSquatch Points"),
29361
- baseStep(30, "$", 60, "SaaSquatch Points"),
29362
- baseStep(40, "$", 80, "SaaSquatch Points"),
29363
- baseStep(50, "$", 100, "SaaSquatch Points"),
29364
- baseStep(60, "$", 120, "SaaSquatch Points"),
29480
+ baseStep(20, "$", 40, "Points"),
29481
+ baseStep(30, "$", 60, "Points"),
29482
+ baseStep(40, "$", 80, "Points"),
29483
+ baseStep(50, "$", 100, "Points"),
29484
+ baseStep(60, "$", 120, "Points"),
29365
29485
  ],
29366
29486
  }),
29367
29487
  };
@@ -29386,16 +29506,16 @@ const confirmVariable = {
29386
29506
  ...baseReward$2,
29387
29507
  ...name("Visa® Prepaid Card USD"),
29388
29508
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29389
- ...variableValue(20, 80, "SaaSquatch Points"),
29390
- }, baseStep(20, "$", 40, "SaaSquatch Points")),
29509
+ ...variableValue(20, 80, "Points"),
29510
+ }, baseStep(20, "$", 40, "Points")),
29391
29511
  };
29392
29512
  const error$1 = {
29393
29513
  ...baseResponse(data, "confirmation", {
29394
29514
  ...baseReward$2,
29395
29515
  ...name("Visa® Prepaid Card USD"),
29396
29516
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29397
- ...variableValue(20, 80, "SaaSquatch Points"),
29398
- }, baseStep(20, "$", 40, "SaaSquatch Points"), true),
29517
+ ...variableValue(20, 80, "Points"),
29518
+ }, baseStep(20, "$", 40, "Points"), true),
29399
29519
  };
29400
29520
  const success = {
29401
29521
  ...baseResponse(data, "success", {
@@ -29405,6 +29525,22 @@ const success = {
29405
29525
  ...fixedValue("30 SaaSquatch Points"),
29406
29526
  }),
29407
29527
  };
29528
+ const success2 = {
29529
+ ...baseResponse(data, "success", {
29530
+ ...baseReward$2,
29531
+ ...name("Visa® Prepaid Card USD"),
29532
+ ...imageUrl("https://i.imgur.com/93BvEgH.png"),
29533
+ ...variableValue(20, 80, "Points"),
29534
+ }, baseStep(20, "$", 40, "Points")),
29535
+ };
29536
+ const success3 = {
29537
+ ...baseResponse(data, "success", {
29538
+ ...baseReward$2,
29539
+ ...name("A very exclusive gift box"),
29540
+ ...imageUrl("https://i.imgur.com/93BvEgH.png"),
29541
+ ...fixedValue("30 SaaSquatch Points"),
29542
+ }, undefined, undefined, undefined, "4ah2-hh46-gk7r"),
29543
+ };
29408
29544
  const loading = {
29409
29545
  ...baseResponse(null, "chooseReward", null, null, false, true),
29410
29546
  };
@@ -29413,8 +29549,8 @@ const RewardExchangeList_stories = {
29413
29549
  title: "Components/Reward Exchange List",
29414
29550
  };
29415
29551
  const StoryBase = (props) => () => {
29416
- return index.h(Resizer, null,
29417
- index.h(RewardExchangeView, Object.assign({}, props)));
29552
+ return (index.h(Resizer, null,
29553
+ index.h(RewardExchangeView, Object.assign({}, props))));
29418
29554
  };
29419
29555
  const ChooseReward = StoryBase(rewardExchange);
29420
29556
  const ChooseRewardSelected = StoryBase(rewardExchangeSelected);
@@ -29424,6 +29560,8 @@ const Confirm = StoryBase(confirmFixed);
29424
29560
  const ConfirmVariable = StoryBase(confirmVariable);
29425
29561
  const Error$3 = StoryBase(error$1);
29426
29562
  const Success$2 = StoryBase(success);
29563
+ const SuccessVariable = StoryBase(success2);
29564
+ const SuccessPromo = StoryBase(success3);
29427
29565
  const Loading$3 = StoryBase(loading);
29428
29566
 
29429
29567
  const RewardExchangeList = /*#__PURE__*/Object.freeze({
@@ -29437,25 +29575,61 @@ const RewardExchangeList = /*#__PURE__*/Object.freeze({
29437
29575
  ConfirmVariable: ConfirmVariable,
29438
29576
  Error: Error$3,
29439
29577
  Success: Success$2,
29578
+ SuccessVariable: SuccessVariable,
29579
+ SuccessPromo: SuccessPromo,
29440
29580
  Loading: Loading$3
29441
29581
  });
29442
29582
 
29443
29583
  const ProgramExplainer_stories = {
29444
29584
  title: "Components/Program Explainer",
29445
29585
  };
29446
- const DefaultProgramExplainerView = () => {
29447
- return ("asd"
29448
- // <ProgramExplainerView {...barProps}>
29449
- // <ProgramExplainerStepView {...item1Props} />
29450
- // <ProgramExplainerStepView {...item2Props} />
29451
- // </ProgramExplainerView>
29452
- );
29586
+ const props$2 = {
29587
+ header: "Klip Rewards",
29588
+ title: "Earn rewards with our loyalty program",
29589
+ description: "Earn points by completing tasks like uploading your first video or sharing videos with friends. Use your points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America.",
29590
+ color: "black",
29591
+ background: "#F3F0EC",
29592
+ };
29593
+ const steps1 = {
29594
+ title: "Invite your friends to Klip",
29595
+ description: "Earn up to $1200 in rewards for each referral",
29596
+ color: "white",
29597
+ background: "#5B3EDA",
29598
+ };
29599
+ const steps2 = {
29600
+ title: "If your friend signs up for a Klip Business plan",
29601
+ description: "Get a $50 VISA giftcard when they pay for their first month",
29602
+ color: "black",
29603
+ background: "#F3CC66",
29604
+ };
29605
+ const steps3 = {
29606
+ title: "If your friend signs up for a Klip Enterprise plan",
29607
+ description: "Get up to $1200 in rewards - a $200 VISA giftcard when our sales team qualifies them as a good fit for Klip, and a $1000 VISA giftcard when they become a paying customer",
29608
+ color: "black",
29609
+ background: "#D3CCF5",
29610
+ };
29611
+ const OneStep = () => {
29612
+ return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
29613
+ index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps1))));
29614
+ };
29615
+ const TwoSteps = () => {
29616
+ return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
29617
+ index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps1)),
29618
+ index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps2))));
29619
+ };
29620
+ const ThreeSteps = () => {
29621
+ return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
29622
+ index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps1)),
29623
+ index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps2)),
29624
+ index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps3))));
29453
29625
  };
29454
29626
 
29455
29627
  const ProgramExplainer = /*#__PURE__*/Object.freeze({
29456
29628
  __proto__: null,
29457
29629
  'default': ProgramExplainer_stories,
29458
- DefaultProgramExplainerView: DefaultProgramExplainerView
29630
+ OneStep: OneStep,
29631
+ TwoSteps: TwoSteps,
29632
+ ThreeSteps: ThreeSteps
29459
29633
  });
29460
29634
 
29461
29635
  const ProgramExplainerStep_stories = {