@saasquatch/mint-components 2.0.10 → 2.0.11-2

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 (80) hide show
  1. package/dist/cjs/{data-24028727.js → data-62fc9ba5.js} +3 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +3 -3
  5. package/dist/cjs/sqm-big-stat_49.cjs.entry.js +1 -1
  6. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +23 -13
  7. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +35 -10
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +785 -270
  9. package/dist/cjs/{sqm-user-info-form-view-c14ba407.js → sqm-user-info-form-view-a61124db.js} +1 -1
  10. package/dist/cjs/{useReferralTable-90d4d6e9.js → useReferralTable-d0c7097e.js} +6 -0
  11. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +97 -0
  12. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +188 -0
  13. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +28 -15
  14. package/dist/collection/components/sqm-referral-table/useReferralTable.js +6 -0
  15. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +1 -43
  16. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +91 -61
  17. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +113 -0
  18. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +213 -0
  19. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +49 -9
  20. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
  21. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +3 -0
  22. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +9 -1
  23. package/dist/collection/components/tax-and-cash/data.js +3 -0
  24. package/dist/esm/{data-f2f77358.js → data-4a551ba6.js} +3 -0
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/esm/mint-components.js +1 -1
  27. package/dist/esm/sqm-banking-info-form_10.entry.js +3 -3
  28. package/dist/esm/sqm-big-stat_49.entry.js +1 -1
  29. package/dist/esm/sqm-referral-table_11.entry.js +23 -13
  30. package/dist/esm/sqm-rewards-table_9.entry.js +35 -10
  31. package/dist/esm/sqm-stencilbook.entry.js +785 -270
  32. package/dist/esm/{sqm-user-info-form-view-0a8999d0.js → sqm-user-info-form-view-74dcb6d0.js} +1 -1
  33. package/dist/esm/{useReferralTable-8e0acee0.js → useReferralTable-8128f0b2.js} +6 -0
  34. package/dist/esm-es5/data-4a551ba6.js +1 -0
  35. package/dist/esm-es5/loader.js +1 -1
  36. package/dist/esm-es5/mint-components.js +1 -1
  37. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  38. package/dist/esm-es5/sqm-big-stat_49.entry.js +1 -1
  39. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  40. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  41. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  42. package/dist/esm-es5/{sqm-user-info-form-view-0a8999d0.js → sqm-user-info-form-view-74dcb6d0.js} +1 -1
  43. package/dist/esm-es5/useReferralTable-8128f0b2.js +1 -0
  44. package/dist/mint-components/mint-components.esm.js +1 -1
  45. package/dist/mint-components/p-1086ca86.system.entry.js +1 -0
  46. package/dist/mint-components/{p-4d60b275.entry.js → p-190769c2.entry.js} +2 -2
  47. package/dist/mint-components/{p-704c903b.system.entry.js → p-25474a76.system.entry.js} +1 -1
  48. package/dist/mint-components/{p-50eaba5b.system.entry.js → p-25703088.system.entry.js} +1 -1
  49. package/dist/mint-components/{p-10ad4cec.js → p-4df0492c.js} +7 -1
  50. package/dist/mint-components/p-517c454d.entry.js +147 -0
  51. package/dist/mint-components/{p-cbeab288.js → p-68be450f.js} +1 -1
  52. package/dist/mint-components/p-68e65602.system.js +1 -0
  53. package/dist/mint-components/p-9c116b6b.entry.js +1 -0
  54. package/dist/mint-components/p-af123d2b.system.js +1 -1
  55. package/dist/mint-components/p-c0f50724.system.entry.js +1 -0
  56. package/dist/mint-components/{p-fb8927aa.js → p-c2e5108e.js} +8 -5
  57. package/dist/mint-components/{p-d0a256b8.entry.js → p-d693782f.entry.js} +1 -1
  58. package/dist/mint-components/p-e599f3fb.system.js +1 -0
  59. package/dist/mint-components/{p-78fc0c3c.entry.js → p-e971050e.entry.js} +1 -1
  60. package/dist/mint-components/{p-55f1801e.system.entry.js → p-ef8b63cd.system.entry.js} +1 -1
  61. package/dist/mint-components/{p-33e1a29e.system.js → p-f61005ce.system.js} +1 -1
  62. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTable.stories.d.ts +5 -0
  63. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +14 -0
  64. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +0 -7
  65. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.d.ts +5 -0
  66. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +14 -0
  67. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
  68. package/dist/types/components.d.ts +2 -0
  69. package/docs/docs.docx +0 -0
  70. package/docs/raisins.json +1 -1
  71. package/grapesjs/grapesjs.js +1 -1
  72. package/package.json +1 -1
  73. package/dist/esm-es5/data-f2f77358.js +0 -1
  74. package/dist/esm-es5/useReferralTable-8e0acee0.js +0 -1
  75. package/dist/mint-components/p-342921b9.system.js +0 -1
  76. package/dist/mint-components/p-636a841f.entry.js +0 -1
  77. package/dist/mint-components/p-63a928e0.system.entry.js +0 -1
  78. package/dist/mint-components/p-98e0a022.system.js +0 -1
  79. package/dist/mint-components/p-9d19a0f7.system.entry.js +0 -1
  80. package/dist/mint-components/p-f08dd2a8.entry.js +0 -144
@@ -30,8 +30,8 @@ import './ErrorView-bbf0a042.js';
30
30
  import { Q as QrCodeView } from './sqm-qr-code-view-ea505213.js';
31
31
  import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as PortalRegisterView, f as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, g as ChangeMarktingView, h as PortalFooterView, i as PortalForgotPasswordView, j as PortalFrameView, k as PortalLoginView, R as ReferralIframeView, l as RewardExchangeView, r as rewardExchangeCustomErrorMsg, m as rewardExchangeLongText, n as rewardExchangeSelected, o as chooseAmountFixed, p as chooseAmountFixedNoDescription, q as chooseAmountVariable, s as chooseAmountVariableNoDescription, t as chooseAmountVariableDisabled, v as chooseAmountVariableUnavailable, w as confirmFixed, x as confirmVariable, y as redemptionError, z as queryError, A as success, F as successVariable, G as loading, J as empty$1, K as rewardExchange, M as useShareButton, O as useShareLink, Q as ProgressBarView, U as ProgressBar$2, V as LeadFormView, W as LeadDropdownFieldView, X as ShadowViewAddon } from './ShadowViewAddon-4c1699d3.js';
32
32
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
33
- import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-0a8999d0.js';
34
- import { t as taxTypeToName, L as LoadingView } from './data-f2f77358.js';
33
+ import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-74dcb6d0.js';
34
+ import { t as taxTypeToName, L as LoadingView } from './data-4a551ba6.js';
35
35
  import { L as LeadInputFieldView } from './sqm-lead-input-field-view-9cf60eea.js';
36
36
 
37
37
  /**
@@ -10715,7 +10715,7 @@ const column = "@author:noah\n@owner:noah\nFeature: Referral Table User Column\n
10715
10715
 
10716
10716
  const date = "@author:noah\n@owner:noah\nFeature: Referral Table Date Column\n\n Shows the date of each referral\n\n Background:\n Given the date column is included in the referral table\n\n @motivating\n @ui\n Scenario Outline: The title of the date column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the date column is shown with <columTitle>\n Examples:\n | value | columnTitle |\n | | Date Converted |\n | My column title | My column title |\n\n @motivating\n Scenario Outline: A configurable date associated with the referral is shown for each referral\n Given the \"date-shown\" prop is set to <dateType>\n And referrals exist\n Then for each referral the <referralDate> is shown in the table\n And the date is localized to the users locale\n Examples:\n | dateType | referralDate |\n | dateReferralStarted | date referral started |\n | dateReferralPaid | date referral paid |\n | dateReferralEnded | date referral ended |\n | dateModerated | date moderated |\n | dateUserModified | date user modified |\n | dateConverted | date converted |\n | dateModified | date modified |\n | | date converted |";
10717
10717
 
10718
- const rewards = "@author:noah @owner:noah\nFeature: Referral Table Reward Column\n Shows the reward associated with each referral\n\n Background: \n Given the status column is included in the referral table\n And at least one referral exists\n\n @motivating @ui\n Scenario Outline: The referral reward and it's status are shown for each referral\n Then for each referral reward there exists a reward cell\n And the reward type and value is displayed in the cell\n And the status of each reward is displayed as a pill in the cell\n And rewards of <status> have a <pillColour> pill with the text <statusText>\n\n Examples: \n | status | pillColour | statusText |\n | Available | green | Available |\n | Pending | orange | Pending |\n | Pending Tax Review | orange | Pending |\n | Pending New Tax Form | orange | Pending |\n | Pending Tax Submission | orange | Pending |\n | Pending Partner Creation | orange | Pending |\n | Cancelled | red | Cancelled |\n | Payout Overdue | red | Payout Failed |\n | Payout Reversed | red | Payout Cancelled |\n | Expired | red | Expired |\n | Redeemed | blue | Redeemed |\n | Payout Transferred | blue | Payout Approved |\n | Payout Not Yet Due | blue | Payout Approved |\n | Pending Review | orange | Pending Review |\n | Denied | red | Denied |\n\n @motivating\n Scenario: The pending period of a referral reward is shown if it exists\n Given a reward that is pending\n And the reward has a set pending period\n Then the status pill of the reward will instead have the text \"Pending for <relativeTime>\"\n And all dates are localized to the users locale\n\n Examples: \n | relativeTime |\n | 2 days |\n | 1 week |\n | 3 months |\n | 2 years |\n\n @motivating\n Scenario: The expiry date of a reward is shown if it exists\n Given a reward that is available\n And the reward has a set expiry date\n Then an additional grey pill will appear next to the status pill with the text \"Expiring in <relativeTime>\"\n And all dates are localized to the users locale\n\n Examples: \n | relativeTime |\n | 2 days |\n | 1 week |\n | 3 months |\n | 2 years |\n\n @motivating\n Scenario: Each reward can be expanded to show additional details about the reward\n When a reward cell is clicked\n Then it expands to show the following additional information (if it's available):\n | Date the reward was received |\n | Date the reward was cancelled |\n | Date the reward expires |\n | Date the reward is pending until |\n | Payout process start date |\n | Payout retry date on failure |\n | Description for tax pending reason |\n | Coupon code |\n And all dates are localized to a users locale\n";
10718
+ const rewards = "@author:noah @owner:noah\nFeature: Referral Table Reward Column\n Shows the reward associated with each referral\n\n Background: \n Given the status column is included in the referral table\n And at least one referral exists\n\n\n\n @motivating @ui\n Scenario Outline: The referral reward and its status are shown for each referral\n Then for each referral reward there exists a reward cell\n And the reward type and value is displayed in the cell\n And the status of each reward is displayed as a pill in the cell\n And rewards of <status> have a <pillColour> pill with the text <statusText>\n\n Examples: \n | status | pillColour | statusText |\n | Available | success | Available |\n | Pending | warning | Pending |\n | Pending Fraud Review | warning | Pending |\n | Pending Tax Review | warning | Pending |\n | Pending New Tax Form | warning | Pending |\n | Pending Tax Submission | warning | Pending |\n | Pending Partner Creation | warning | Pending |\n | Cancelled | danger | Cancelled |\n | Payout Overdue | danger | Payout Failed |\n | Payout Reversed | danger | Payout Cancelled |\n | Expired | danger | Expired |\n | Denied | danger | Denied |\n | Redeemed | primary | Redeemed |\n | Payout Transferred | primary | Payout Approved |\n | Payout Not Yet Due | primary | Payout Approved |\n | Payout Processing | primary | Payment Processing |\n\n @motivating\n Scenario: The pending period of a referral reward is shown inside the pill if scheduled\n Given a reward that is pending\n And the reward has a scheduled date in the future\n Then the status pill of the reward will contain the text \"Pending for <relativeTime>\"\n And the date is localized to the user's locale\n\n Examples: \n | relativeTime |\n | 2 days |\n | 1 week |\n | 3 months |\n\n @motivating\n Scenario: The expiry date of a reward is shown in a secondary pill\n Given a reward that is available\n And the reward has a set expiry date\n Then an additional info pill will appear next to the status pill with the text \"Expiring in <relativeTime>\"\n And the date is localized to the user's locale\n\n Examples: \n | relativeTime |\n | 2 days |\n | 1 week |\n\n @motivating @ui\n Scenario Outline: Expanding the reward cell shows specific detailed status messages\n When a reward cell is clicked\n Then it expands to show the detail view\n And if the reward status is <status>\n Then the detail text displays <detailMessage>\n\n Examples: Payout States\n | status | detailMessage |\n | Payout Approved | Processing until {date}. Payout is then scheduled based your settings. |\n | Payout Failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | Payout Cancelled | If you think this is a mistake, contact our Support team. |\n | Processing | Processing until {date}. Payout is then scheduled based your settings. |\n\n Examples: Tax Compliance States\n | status | detailMessage |\n | Pending Tax Review | Awaiting tax form review |\n | Pending New Tax Form | Invalid tax form. Submit a new form to receive your rewards. |\n | Pending Tax Submission | Submit your tax documents to receive your rewards |\n | Pending Partner Creation | Complete your tax and cash payout setup to receive your rewards |\n\n Examples: Standard States\n | status | detailMessage |\n | Available | Reward expiring on |\n | Cancelled | Reward cancelled on |\n | Pending | Available on |\n | Pending Review | Pending since |\n | Denied | Denied on |\n | Expired | Reward expired on |\n | Redeemed | Redeemed |\n\n @motivating\n Scenario: Fuel Tank codes are displayed in the expanded view\n Given a reward has a Fuel Tank code\n When the reward cell is clicked\n Then the expanded details display the text \"Your code is\"\n And the code <fuelTankCode> is displayed in bold\n\n @motivating\n Scenario: Fraud denial help text is displayed\n Given a reward has been denied due to fraud\n And the component has \"deniedHelpText\" configured\n When the reward cell is clicked\n Then the expanded details display the denied help text next to the denial date\n\n @minutia\n Scenario: Payout-related reward statuses are determined by the state of the Paid Funds Transfer\n Given a reward exists\n And the reward has a connected Paid Funds Transfer (PFT)\n When the PFT is in <pftState>\n Then the reward's status is <status>\n And the status text displays <text>\n And the status is displayed in a <pillColour> pill\n\n Examples:\n | pftState | status | text | pillColour |\n | transfer date is in the future | PAYOUT_PROCESSING | Payment Processing | primary |\n | successfully transferred to payment provider | PAYOUT_TRANSFERRED | Payout Approved | primary |\n | approved but payout scheduled date not yet arrived | PAYOUT_NOT_YET_DUE | Payout Approved | primary |\n | failed due to fulfillment issue and retrying | PAYOUT_OVERDUE | Payout Failed | danger |\n | reversed or cancelled after being processed | PAYOUT_REVERSED | Payout Cancelled | danger |\n";
10719
10719
 
10720
10720
  const status = "@author:noah\n@owner:noah\nFeature: Referral Table Status Column\n\n Shows the status of each referral\n\n Background:\n Given the status column is included in the referral table\n\n @motivating\n @ui\n Scenario: The title of the date column is configurable\n Given the \"column-title\" prop is set to \"My column title\"\n Then the date column is shown with \"My column title\"\n\n @motivating\n Scenario: The status column's fraudStatus maps to the fraud status of the referral\n Given at least one referral\n Then the referral cell fraud status is set to `moderationStatus` of the referral\n\n @motivating\n Scenario Outline: The status column displays the status of each referral\n Given referrals exist\n Then the status of each referral is displayed\n And the status <status> is displayed as text from <statusTextProp> in a <pillColour> pill\n\n Examples:\n | status | statusTextProp | pillColour |\n | In Progress | inProgressStatusText | Orange |\n | Converted | convertedStatusText | Green |\n | Pending | pendingReviewStatusText | Orange |\n | Denied | deniedStatusText | Red |\n";
10721
10721
 
@@ -11794,6 +11794,308 @@ const ReferralTable = /*#__PURE__*/Object.freeze({
11794
11794
  ColumnsMobileHidden: ColumnsMobileHidden
11795
11795
  });
11796
11796
 
11797
+ const TaxAndCashReferralTableRewardsCell_stories = {
11798
+ title: "Components/Tax And Cash Referral Table Rewards Cell",
11799
+ };
11800
+ function getDays$1() {
11801
+ return luxon.DateTime.now().toMillis() + 600000000;
11802
+ }
11803
+ function getMonths$1() {
11804
+ return luxon.DateTime.now().toMillis() + 10000000000;
11805
+ }
11806
+ const cashReward = {
11807
+ id: "1234",
11808
+ type: "CREDIT",
11809
+ value: 50,
11810
+ unit: "USD",
11811
+ name: "test",
11812
+ dateScheduledFor: getDays$1(),
11813
+ dateExpires: getMonths$1(),
11814
+ dateCancelled: 134400,
11815
+ dateRedeemed: 0,
11816
+ fuelTankCode: null,
11817
+ fuelTankType: null,
11818
+ currency: "USD",
11819
+ prettyValue: "$50.00",
11820
+ statuses: ["AVAILABLE"],
11821
+ globalRewardKey: "Key",
11822
+ rewardRedemptionTransactions: null,
11823
+ partnerFundsTransfer: null,
11824
+ };
11825
+ const taxConnection = {
11826
+ connected: true,
11827
+ taxHandlingEnabled: true,
11828
+ publisher: {
11829
+ requiredTaxDocumentType: "W9",
11830
+ withdrawalSettings: { paymentMethod: "BANK_TRANSFER" },
11831
+ payoutsAccount: null,
11832
+ currentTaxDocument: {
11833
+ status: "ACTIVE",
11834
+ type: "W9",
11835
+ dateCreated: 1627427794891,
11836
+ },
11837
+ },
11838
+ };
11839
+ const defaultPFT = {
11840
+ id: "ID1234",
11841
+ status: null,
11842
+ dateCreated: null,
11843
+ dateScheduled: null,
11844
+ dateTransferred: null,
11845
+ };
11846
+ const defaultTaxDocument = {
11847
+ status: "NOT_VERIFIED",
11848
+ type: "W9",
11849
+ dateCreated: luxon.DateTime.now().toMillis() - 1000000,
11850
+ };
11851
+ const defaultProps$o = {
11852
+ statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",
11853
+ statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",
11854
+ rewardReceivedText: "Reward received on",
11855
+ hideDetails: false,
11856
+ };
11857
+ const CashReward = () => {
11858
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [{ ...cashReward }], taxConnection: taxConnection }, defaultProps$o)));
11859
+ };
11860
+ const PayoutApproved = () => {
11861
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11862
+ {
11863
+ ...cashReward,
11864
+ partnerFundsTransfer: {
11865
+ ...defaultPFT,
11866
+ status: "TRANSFERRED",
11867
+ dateScheduled: Date.now() - 600000000,
11868
+ },
11869
+ },
11870
+ ], taxConnection: taxConnection }, defaultProps$o)));
11871
+ };
11872
+ const PayoutProcessing = () => {
11873
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11874
+ {
11875
+ ...cashReward,
11876
+ partnerFundsTransfer: {
11877
+ ...defaultPFT,
11878
+ dateCreated: 1355612521321,
11879
+ dateScheduled: getDays$1(),
11880
+ },
11881
+ },
11882
+ ], taxConnection: taxConnection }, defaultProps$o)));
11883
+ };
11884
+ const PayoutFailed$1 = () => {
11885
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11886
+ {
11887
+ ...cashReward,
11888
+ partnerFundsTransfer: {
11889
+ ...defaultPFT,
11890
+ status: "OVERDUE",
11891
+ dateScheduled: Date.now() - 100000,
11892
+ },
11893
+ },
11894
+ ], taxConnection: taxConnection }, defaultProps$o)));
11895
+ };
11896
+ const PayoutCancelled$1 = () => {
11897
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11898
+ {
11899
+ ...cashReward,
11900
+ partnerFundsTransfer: {
11901
+ ...defaultPFT,
11902
+ status: "REVERSED",
11903
+ dateScheduled: Date.now() - 100000,
11904
+ },
11905
+ },
11906
+ ], taxConnection: taxConnection }, defaultProps$o)));
11907
+ };
11908
+ const PendingTaxReview$1 = () => {
11909
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11910
+ {
11911
+ ...cashReward,
11912
+ statuses: ["PENDING"],
11913
+ pendingReasons: ["US_TAX"],
11914
+ },
11915
+ ], taxConnection: {
11916
+ ...taxConnection,
11917
+ publisher: {
11918
+ ...taxConnection.publisher,
11919
+ currentTaxDocument: {
11920
+ ...defaultTaxDocument,
11921
+ status: "NOT_VERIFIED",
11922
+ },
11923
+ },
11924
+ } }, defaultProps$o)));
11925
+ };
11926
+ const PendingNewTaxForm$1 = () => {
11927
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11928
+ {
11929
+ ...cashReward,
11930
+ statuses: ["PENDING"],
11931
+ pendingReasons: ["US_TAX"],
11932
+ },
11933
+ ], taxConnection: {
11934
+ ...taxConnection,
11935
+ publisher: {
11936
+ ...taxConnection.publisher,
11937
+ currentTaxDocument: {
11938
+ ...defaultTaxDocument,
11939
+ status: "INACTIVE",
11940
+ },
11941
+ },
11942
+ } }, defaultProps$o)));
11943
+ };
11944
+ const PendingTaxSubmission$1 = () => {
11945
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11946
+ {
11947
+ ...cashReward,
11948
+ statuses: ["PENDING"],
11949
+ pendingReasons: ["US_TAX"],
11950
+ },
11951
+ ], taxConnection: {
11952
+ ...taxConnection,
11953
+ publisher: {
11954
+ ...taxConnection.publisher,
11955
+ currentTaxDocument: null,
11956
+ },
11957
+ } }, defaultProps$o)));
11958
+ };
11959
+ const PendingPartnerCreation$1 = () => {
11960
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11961
+ {
11962
+ ...cashReward,
11963
+ statuses: ["PENDING"],
11964
+ pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
11965
+ },
11966
+ ], taxConnection: {
11967
+ ...taxConnection,
11968
+ connected: false,
11969
+ } }, defaultProps$o)));
11970
+ };
11971
+ const PendingW9 = () => {
11972
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11973
+ {
11974
+ ...cashReward,
11975
+ statuses: ["PENDING"],
11976
+ pendingReasons: ["US_TAX"],
11977
+ },
11978
+ ], taxConnection: {
11979
+ ...taxConnection,
11980
+ taxHandlingEnabled: false,
11981
+ } }, defaultProps$o)));
11982
+ };
11983
+
11984
+ const TaxAndCashReferralTableRewardsCell = /*#__PURE__*/Object.freeze({
11985
+ __proto__: null,
11986
+ 'default': TaxAndCashReferralTableRewardsCell_stories,
11987
+ CashReward: CashReward,
11988
+ PayoutApproved: PayoutApproved,
11989
+ PayoutProcessing: PayoutProcessing,
11990
+ PayoutFailed: PayoutFailed$1,
11991
+ PayoutCancelled: PayoutCancelled$1,
11992
+ PendingTaxReview: PendingTaxReview$1,
11993
+ PendingNewTaxForm: PendingNewTaxForm$1,
11994
+ PendingTaxSubmission: PendingTaxSubmission$1,
11995
+ PendingPartnerCreation: PendingPartnerCreation$1,
11996
+ PendingW9: PendingW9
11997
+ });
11998
+
11999
+ const TaxAndCashReferralTable_stories = {
12000
+ title: "Components/Tax And Cash Referral Table",
12001
+ };
12002
+ const taxAndCashTableProps = {
12003
+ states: {
12004
+ hasPrev: false,
12005
+ hasNext: true,
12006
+ show: "rows",
12007
+ namespace: "sqm-referral-table",
12008
+ },
12009
+ data: {
12010
+ textOverrides: {
12011
+ showLabels: true,
12012
+ prevLabel: "Prev",
12013
+ moreLabel: "View More",
12014
+ },
12015
+ hiddenColumns: "",
12016
+ mdBreakpoint: 799,
12017
+ smBreakpoint: 599,
12018
+ },
12019
+ callbacks: {
12020
+ prevPage: () => console.log("Prev"),
12021
+ nextPage: () => console.log("Next"),
12022
+ },
12023
+ elements: {
12024
+ columns: ["Customer", "Status", "Date converted", "Rewards"],
12025
+ rows: [
12026
+ [
12027
+ h("sqm-referral-table-user-cell", { name: "Payout Approved User" }),
12028
+ h(Converted, null),
12029
+ h(DateCell$1, null),
12030
+ h(PayoutApproved, null),
12031
+ ],
12032
+ [
12033
+ h("sqm-referral-table-user-cell", { name: "Payout Failed User" }),
12034
+ h(Converted, null),
12035
+ h(DateCell$1, null),
12036
+ h(PayoutFailed$1, null),
12037
+ ],
12038
+ [
12039
+ h("sqm-referral-table-user-cell", { name: "Payout Cancelled User" }),
12040
+ h(Converted, null),
12041
+ h(DateCell$1, null),
12042
+ h(PayoutCancelled$1, null),
12043
+ ],
12044
+ [
12045
+ h("sqm-referral-table-user-cell", { name: "Tax Review User" }),
12046
+ h(Converted, null),
12047
+ h(DateCell$1, null),
12048
+ h(PendingTaxReview$1, null),
12049
+ ],
12050
+ [
12051
+ h("sqm-referral-table-user-cell", { name: "Payout Processing User" }),
12052
+ h(Converted, null),
12053
+ h(DateCell$1, null),
12054
+ h(PayoutProcessing, null),
12055
+ ],
12056
+ [
12057
+ h("sqm-referral-table-user-cell", { name: "New Tax Form User" }),
12058
+ h(Converted, null),
12059
+ h(DateCell$1, null),
12060
+ h(PendingNewTaxForm$1, null),
12061
+ ],
12062
+ [
12063
+ h("sqm-referral-table-user-cell", { name: "Tax Submission User" }),
12064
+ h(Converted, null),
12065
+ h(DateCell$1, null),
12066
+ h(PendingTaxSubmission$1, null),
12067
+ ],
12068
+ [
12069
+ h("sqm-referral-table-user-cell", { name: "Partner Creation User" }),
12070
+ h(Converted, null),
12071
+ h(DateCell$1, null),
12072
+ h(PendingPartnerCreation$1, null),
12073
+ ],
12074
+ [
12075
+ h("sqm-referral-table-user-cell", { name: "Missing W9 User" }),
12076
+ h(Converted, null),
12077
+ h(DateCell$1, null),
12078
+ h(PendingW9, null),
12079
+ ],
12080
+ [
12081
+ h("sqm-referral-table-user-cell", { name: "Standard Cash User" }),
12082
+ h(Converted, null),
12083
+ h(DateCell$1, null),
12084
+ h(CashReward, null),
12085
+ ],
12086
+ ],
12087
+ },
12088
+ };
12089
+ const TaxAndCashReferralTable = () => {
12090
+ return h(GenericTableView, Object.assign({}, taxAndCashTableProps));
12091
+ };
12092
+
12093
+ const TaxAndCashReferralTable$1 = /*#__PURE__*/Object.freeze({
12094
+ __proto__: null,
12095
+ 'default': TaxAndCashReferralTable_stories,
12096
+ TaxAndCashReferralTable: TaxAndCashReferralTable
12097
+ });
12098
+
11797
12099
  const UseReferralTable_stories = {
11798
12100
  title: "Hooks / useReferralTable",
11799
12101
  };
@@ -12111,7 +12413,7 @@ const scenario2 = "@author:derek\n@owner:derek\nFeature: Reward Table reward Col
12111
12413
 
12112
12414
  const scenario4 = "@author:derek @owner:derek\nFeature: Reward Table Source Column\n Shows the source of each reward\n\n @motivating @ui\n Scenario Outline: The title of the source column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the source column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Source | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario: The source column displays manual if the reward is caused by a manual action\n Given a user with a \"MANUAL\" reward\n When they view the rewards table\n Then the source of their reward is displayed as \"Manual\"\n\n @motivating @ui\n Scenario: The source column displays the program name if the reward is caused automatically by a program\n Given a user with a \"AUTOMATED\" program reward\n And the program has name \"Loyalty Program\"\n When they view the rewards table\n Then the source of their reward is displayed as \"Loyalty Program\"\n\n @motivating @ui\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\n Given the \"reward-exchange-text\" prop is <propValue>\n And a user with a \"MANUAL\" reward\n But it was created by a reward exchange\n Then they view the rewards table\n Then the source displays <exchangeText>\n And under it displays the following\n | prettyRedeemedCredit → prettyValue |\n\n Examples:\n | propValue | exchangeText |\n | | Reward Exchange |\n | Exchanged | Exchanged |\n\n @motivating @ui\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\n Given the \"reward-source-text\" prop is <propValue>\n And a user with a referral reward\n And that reward has <rewardSource>\n When they view the rewards table\n Then then source displays <referralText>\n And under it displays the full name of the <referralUser>\n\n Examples:\n | propValue | rewardSource | referralText | referralUser |\n | | REFERRED | Referred by | referrer user |\n | | FRIEND_SIGNUP | Referral to | referred user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\n\n @motivating @ui\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\n Given a user with a referral reward\n And referral user exists\n And referral user has <name>\n But referral user has no <otherName>\n When they view the rewards table\n Then referral user's name is displayed as <name>\n\n Examples:\n | name | otherName |\n | first.name | last.name |\n | last.name | first.name |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Anonymous User\" if the referral user has no names\n Given a user with a referral reward\n And that reward has <rewardSource>\n And the <referralUser> has no first name\n And the <referralUser> has no last name\n When they view the rewards table\n Then then source displays <sourceText>\n And under it displays \"Anonymous User\"\n\n Examples:\n | rewardSource | referralUser | sourceText |\n | FRIEND_SIGNUP | referrer | Referral to |\n | REFERRED | referred user | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted User\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted User\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted referral\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted referral\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @minutia @ui\n Scenario Outline: Name fallbacks for referral users without names are customizable\n Given <prop> with <value>\n And a user with a referral reward\n But the referral user <hadAction>\n When they view the rewards table\n Then the source displays <value> as the referral user\n\n Examples:\n | prop | value | hadAction |\n | deleted-user | Former Customer | was deleted |\n | anonymous-user | Nameless User | had first and last name deleted |\n\n @motivating\n Scenario Outline: Source text can be customized\n Given the \"reward-source-text\" prop is \"{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}\"\n And a user with a <rewardSource> reward\n When they view the rewards table\n Then the source is <sourceText>\n\n Examples:\n | rewardSource | sourceText |\n | MANUAL | Support |\n | AUTOMATED | Loyalty Program |\n";
12113
12415
 
12114
- const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background:\n Given the status column is included in the reward table\n\n @motivating @ui\n Scenario Outline: The title of the status column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the status column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Status | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario Outline: The status column displays the status of each reward\n Given a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Available | Green |\n | CANCELLED | Cancelled | Red |\n | PENDING | Pending | Orange |\n | EXPIRED | Expired | Red |\n | REDEEMED | Redeemed | Blue |\n | PENDING_REVIEW | Pending | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved | blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved | blue |\n | PAYOUT_OVERDUE | Payout Failed | Red |\n | PAYOUT_REVERSED | Payout Cancelled | Red |\n | PENDING_TAX_REVIEW | Pending | Orange |\n | PENDING_NEW_TAX_FORM | Pending | Orange |\n | PENDING_TAX_SUBMISSION | Pending | Orange |\n | PENDING_PARTNER_CREATION | Pending | Orange |\n | DENIED | Denied | Red |\n\n @motivating\n Scenario Outline: Reward status related information is displayed under status pills\n Given a user\n And they have a <reward>\n And their program is\n When they view the reward table\n Then they see their reward\n And under the pill is <text>\n And the date is localized to the users locale\n\n Examples:\n | reward | text |\n | available reward with an expiry date | localized expiry date in format \"Month-Day-Year\" |\n | redeemed reward | localized redemption date in format \"Month-Day-Year\" |\n | expired reward | localized expired date in format \"Month-Day-Year\" |\n | cancelled reward | localized cancelled date in format \"Month-Day-Year\" |\n | pending reward with a end date | localized pending for date in format \"Month-Day-Year\" |\n | pending reward due to W9 | W-9 required |\n | pending reward due to fufillment error | Fulfillment error |\n | reward pending review of referral | Pending review |\n | pending reward due to no connected Impact partner | Complete your tax and cash payout setup to receive your rewards. |\n | pending reward due to an invalid tax document | Invalid tax form. Submit a new form to receive your rewards. |\n | pending reward due to user required to submit a tax document | Submit your tax documents to receive your rewards. |\n | pending reward due to tax document being in review | Awaiting tax form review. |\n | reward whose payout failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | reward whose payout was approved | Reward approved for payout and was scheduled for payment based on your settings. |\n | reward whose payout was cancelled | If you think this is a mistake, contact our Support team. |\n | cancelled reward from denied referral | Flagged as fraud |\n\n @minutia\n Scenario Outline: Tax-related reward statuses are based on the user's Impact tax connection\n Given a user\n And they are in a program that has Impact tax handling enabled\n And they have at least one pending reward\n And the reward's pending reasons include \"MISSING_PAYOUT_CONFIGURATION\"\n Then the status description will be\n \"\"\"\n Complete your tax and cash payout setup to receive your rewards.\n \"\"\"\n\n @motivating\n Scenario Outline: Statuses can be customized\n Given the \"status-text\" prop is \"{status, select, AVAILABLE {Redeem me!} CANCELLED {Unavailable} PENDING {Coming soon!} EXPIRED {Past due} REDEEMED {Spent} PENDING_REVIEW {Pending Review!} PAYOUT_SENT {Payout Sent!} PAYOUT_FAILED {Payout Failed!} PENDING_TAX_REVIEW {Pending Tax Review!} PENDING_NEW_TAX_FORM {Pending new tax form!} PENDING_TAX_SUBMISSION {Pending tax submission!} PENDING_PARTNER_CREATION {Pending partner creation!} DENIED {Unlucky!}}\"\n And a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Redeem me! | Green |\n | CANCELLED | Unavailable | Red |\n | PENDING | Coming soon! | Orange |\n | EXPIRED | Past due | Red |\n | REDEEMED | Spent | Blue |\n | PENDING_REVIEW | Pending Review! | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved! | Blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved! | Blue |\n | PAYOUT_OVERDUE | Payout Failed! | Red |\n | PAYOUT_REVERSED | Payout Cancelled! | Red |\n | DENIED | Unlucky! | Red |\n\n @minutia @ui\n Scenario: Expiry status date text can be configured\n Given the \"expiry-text\" prop has <value>\n And a user with an available reward with an expiry date\n When they view the reward table\n Then they see <text> under the Available Status pill\n\n Examples:\n | value | text |\n | | Expires on <EXPIRY DATE> |\n | Redeem before | Redeem before <EXPIRY DATE> |\n";
12416
+ const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background:\n Given the status column is included in the reward table\n\n @motivating @ui\n Scenario Outline: The title of the status column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the status column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Status | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario Outline: The status column displays the status of each reward\n Given a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Available | success |\n | CANCELLED | Cancelled | danger |\n | PENDING | Pending | warning |\n | EXPIRED | Expired | danger |\n | REDEEMED | Redeemed | primary |\n | PENDING_REVIEW | Pending | warning |\n | PAYOUT_TRANSFERRED | Payout Approved | primary |\n | PAYOUT_NOT_YET_DUE | Payout Approved | primary |\n | PAYOUT_OVERDUE | Payout Failed | danger |\n | PAYOUT_REVERSED | Payout Cancelled | danger |\n | PAYOUT_PROCESSING | Processing | warning |\n | PENDING_TAX_REVIEW | Pending | warning |\n | PENDING_NEW_TAX_FORM | Pending | warning |\n | PENDING_TAX_SUBMISSION | Pending | warning |\n | PENDING_PARTNER_CREATION | Pending | warning |\n | DENIED | Denied | danger |\n\n @motivating\n Scenario Outline: Reward status related information is displayed under status pills\n Given a user\n And they have a <reward>\n And their program is\n When they view the reward table\n Then they see their reward\n And under the pill is <text>\n And the date is localized to the users locale\n\n Examples: Standard Rewards\n | reward | text |\n | available reward with an expiry date | Expires <localized date> |\n | redeemed reward | <localized date> |\n | expired reward | <localized date> |\n | cancelled reward | <localized date> |\n | pending reward with a scheduled date | Until <localized date> |\n \n Examples: Tax & Payout Rewards\n | reward | text |\n | pending reward due to W9 | W-9 required |\n | pending reward due to fufillment error | Fulfillment error |\n | reward pending review of referral | Awaiting review |\n | pending reward due to no connected Impact partner | Complete your tax and cash payout setup to receive your rewards. |\n | pending reward due to an invalid tax document | Invalid tax form. Submit a new form to receive your rewards. |\n | pending reward due to user required to submit a tax document | Submit your tax documents to receive your rewards. |\n | pending reward due to tax document being in review | Awaiting tax form review. |\n | reward whose payout is processing | Processing until <localized date>. Payout is then scheduled based your settings.|\n | reward whose payout failed | Payout failed due to a fulfillment issue and is current being retried. |\n | reward whose payout was approved | Payout approved and scheduled for payment based on your settings. |\n | reward whose payout was cancelled | If you think this is a mistake, contact our Support team. |\n | cancelled reward from denied referral | Detected self-referral |\n\n @minutia\n Scenario Outline: Tax-related reward statuses are based on the user's Impact tax connection\n Given a user\n And they are in a program that has Impact tax handling enabled\n And they have at least one pending reward\n And the reward's pending reasons include \"MISSING_PAYOUT_CONFIGURATION\"\n Then the status description will be\n \"\"\"\n Complete your tax and cash payout setup to receive your rewards.\n \"\"\"\n\n @motivating\n Scenario Outline: Statuses can be customized via ICU format\n Given the \"status-text\" prop is \"{status, select, AVAILABLE {Redeem me!} CANCELLED {Unavailable} PENDING {Coming soon!} EXPIRED {Past due} REDEEMED {Spent} PENDING_REVIEW {Pending Review!} PAYOUT_SENT {Payout Sent!} PAYOUT_FAILED {Payout Failed!} PENDING_TAX_REVIEW {Pending Tax Review!} PENDING_NEW_TAX_FORM {Pending new tax form!} PENDING_TAX_SUBMISSION {Pending tax submission!} PENDING_PARTNER_CREATION {Pending partner creation!} DENIED {Unlucky!}}\"\n And a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Redeem me! | success |\n | CANCELLED | Unavailable | danger |\n | PENDING | Coming soon! | warning |\n | EXPIRED | Past due | danger |\n | REDEEMED | Spent | primary |\n | PENDING_REVIEW | Pending Review! | warning |\n | PAYOUT_TRANSFERRED | Payout Approved! | primary |\n | PAYOUT_NOT_YET_DUE | Payout Approved! | primary |\n | PAYOUT_OVERDUE | Payout Failed! | danger |\n | PAYOUT_REVERSED | Payout Cancelled! | danger |\n | DENIED | Unlucky! | danger |\n\n @minutia @ui\n Scenario Outline: Expiry status date text can be configured\n Given the \"expiry-text\" prop has <value>\n And a user with an available reward with an expiry date\n When they view the reward table\n Then they see <text> under the Available Status pill\n\n Examples:\n | value | text |\n | Expires | Expires <localized date> |\n | Redeem before | Redeem before <localized date> |\n\n @motivating\n Scenario: Payout-related reward statuses are determined by the state of the Paid Funds Transfer\n Given a user has a reward with a connected Paid Funds Transfer (PFT)\n When the PFT is in <pftState>\n Then the reward's status is <status>\n And the status is displayed in a <pillColour> pill with <text>\n And under the pill is <description>\n\n Examples:\n | pftState | status | text | pillColour | description |\n | transfer date is in the future | PAYOUT_PROCESSING | Processing | warning | Processing until <localized date>. Payout is then scheduled based your settings.|\n | successfully transferred to payment provider | PAYOUT_TRANSFERRED | Payout Approved | primary | Payout approved and scheduled for payment based on your settings. |\n | approved but payout scheduled date not yet arrived | PAYOUT_NOT_YET_DUE | Payout Approved | primary | Payout approved and scheduled for payment based on your settings. |\n | failed due to fulfillment issue and retrying | PAYOUT_OVERDUE | Payout Failed | danger | Payout failed due to a fulfillment issue and is current being retried. |\n | reversed or cancelled after being processed | PAYOUT_REVERSED | Payout Cancelled | danger | If you think this is a mistake, contact our Support team. |";
12115
12417
 
12116
12418
  const scenario$x = scenario1 + scenario2 + scenario3 + scenario4;
12117
12419
  const RewardsTableCell_stories = {
@@ -12151,22 +12453,7 @@ const rewardsData$1 = {
12151
12453
  rewardRedemptionTransactions: {
12152
12454
  data: null,
12153
12455
  },
12154
- };
12155
- const taxConnection = {
12156
- connected: true,
12157
- taxHandlingEnabled: true,
12158
- publisher: {
12159
- requiredTaxDocumentType: "W8BEN",
12160
- currentTaxDocument: {
12161
- status: "NOT_VERIFIED",
12162
- type: "W8BEN",
12163
- dateCreated: 321321487,
12164
- },
12165
- withdrawalSettings: {
12166
- paymentMethod: "BANK_TRANSFER",
12167
- },
12168
- payoutsAccount: null,
12169
- },
12456
+ partnerFundsTransfer: null,
12170
12457
  };
12171
12458
  const RewardsCellCreditSingle = () => {
12172
12459
  return (h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...singleRedeemed } }));
@@ -12371,16 +12658,6 @@ const StatusCellExpired = () => {
12371
12658
  const pending = {
12372
12659
  statuses: ["PENDING"],
12373
12660
  };
12374
- const payoutSent = {
12375
- statuses: ["PAYOUT_SENT"],
12376
- };
12377
- const payoutFailed = {
12378
- statuses: ["PAYOUT_FAILED"],
12379
- };
12380
- const payoutCancelled = {
12381
- statuses: ["PAYOUT_CANCELLED"],
12382
- dateCancelled: 1355612521321,
12383
- };
12384
12661
  const us_tax = {
12385
12662
  pendingReasons: ["US_TAX"],
12386
12663
  };
@@ -12394,57 +12671,6 @@ const unhandled = {
12394
12671
  const StatusCellPending = () => {
12395
12672
  return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1, ...pending } }));
12396
12673
  };
12397
- const StatusCellPendingTaxReview = () => {
12398
- return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1 }, taxConnection: {
12399
- ...taxConnection,
12400
- publisher: {
12401
- requiredTaxDocumentType: "W8BEN",
12402
- currentTaxDocument: {
12403
- status: "",
12404
- },
12405
- ...taxConnection.publisher,
12406
- },
12407
- } }));
12408
- };
12409
- const StatusCellPendingNewTaxForm = () => {
12410
- return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1 }, taxConnection: {
12411
- ...taxConnection,
12412
- publisher: {
12413
- ...taxConnection.publisher,
12414
- requiredTaxDocumentType: "W8BEN",
12415
- currentTaxDocument: {
12416
- status: "INACTIVE",
12417
- type: "W8BEN",
12418
- dateCreated: 321321487,
12419
- },
12420
- },
12421
- } }));
12422
- };
12423
- const StatusCellPendingTaxSubmission = () => {
12424
- return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1 }, taxConnection: {
12425
- ...taxConnection,
12426
- publisher: {
12427
- ...taxConnection.publisher,
12428
- requiredTaxDocumentType: "W8BEN",
12429
- currentTaxDocument: null,
12430
- },
12431
- } }));
12432
- };
12433
- const StatusCellPendingPartnerCreation = () => {
12434
- return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12435
- ...rewardsData$1,
12436
- pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
12437
- } }));
12438
- };
12439
- const StatusCellPayoutSent = () => {
12440
- return (h("sqm-rewards-table-status-cell", { statusText: "Payout Sent", reward: { ...rewardsData$1, ...payoutSent }, taxConnection: taxConnection }));
12441
- };
12442
- const StatusCellPayoutFailed = () => {
12443
- return (h("sqm-rewards-table-status-cell", { statusText: "Payout Failed", reward: { ...rewardsData$1, ...payoutFailed } }));
12444
- };
12445
- const StatusCellPayoutCancelled = () => {
12446
- return (h("sqm-rewards-table-status-cell", { statusText: "Payout Cancelled", reward: { ...rewardsData$1, ...payoutCancelled } }));
12447
- };
12448
12674
  const StatusCellPendingWithLongText = () => {
12449
12675
  return (h("div", { style: { width: "200px" } },
12450
12676
  h("sqm-rewards-table-status-cell", { statusText: "Pending for 300,000,000 months and some change", reward: { ...rewardsData$1, ...pending } })));
@@ -12503,61 +12729,388 @@ const StatusCellDenied = () => {
12503
12729
  },
12504
12730
  } }));
12505
12731
  };
12506
- const DateCell$2 = () => {
12507
- return (h("sqm-rewards-table-date-cell", { date: 1640038417468 }));
12732
+ const DateCell$2 = () => {
12733
+ return (h("sqm-rewards-table-date-cell", { date: 1640038417468 }));
12734
+ };
12735
+ const CustomerNoteCell = () => {
12736
+ return (h("sqm-rewards-table-customer-note-cell", { note: rewardsData$1.meta.message }));
12737
+ };
12738
+ const EmptyCell$3 = () => {
12739
+ return h("sqm-rewards-table-date-cell", null);
12740
+ };
12741
+
12742
+ const RewardsTableCell = /*#__PURE__*/Object.freeze({
12743
+ __proto__: null,
12744
+ 'default': RewardsTableCell_stories,
12745
+ RewardsCellCreditSingle: RewardsCellCreditSingle,
12746
+ RewardsCellCreditFull: RewardsCellCreditFull,
12747
+ RewardsCellCreditPartial: RewardsCellCreditPartial,
12748
+ RewardsCellCreditCancelled: RewardsCellCreditCancelled,
12749
+ RewardsCellCreditExpired: RewardsCellCreditExpired,
12750
+ RewardsCellCreditPending: RewardsCellCreditPending,
12751
+ RewardsCellCreditRedeemed: RewardsCellCreditRedeemed,
12752
+ RewardsCellCreditLong: RewardsCellCreditLong,
12753
+ RewardsCellNonCredit: RewardsCellNonCredit,
12754
+ RewardsCellFueltank: RewardsCellFueltank,
12755
+ RewardsCellFueltankLong: RewardsCellFueltankLong,
12756
+ SourceCellManual: SourceCellManual,
12757
+ SourceCellProgram: SourceCellProgram,
12758
+ SourceCellExchange: SourceCellExchange,
12759
+ SourceCellReferral: SourceCellReferral,
12760
+ SourceCellWithLongText: SourceCellWithLongText,
12761
+ SourceCellReferred: SourceCellReferred,
12762
+ SourceCellAnonymousUser: SourceCellAnonymousUser,
12763
+ SourceCellDeletedUser: SourceCellDeletedUser,
12764
+ SourceCellDeletedReferral: SourceCellDeletedReferral,
12765
+ StatusCellAvailable: StatusCellAvailable,
12766
+ StatusCellAvailableExpiry: StatusCellAvailableExpiry,
12767
+ StatusCellRedeemed: StatusCellRedeemed,
12768
+ StatusCellCancelled: StatusCellCancelled,
12769
+ StatusCellExpired: StatusCellExpired,
12770
+ StatusCellPending: StatusCellPending,
12771
+ StatusCellPendingWithLongText: StatusCellPendingWithLongText,
12772
+ StatusCellPendingUsTax: StatusCellPendingUsTax,
12773
+ StatusCellPendingScheduled: StatusCellPendingScheduled,
12774
+ StatusCellPendingUnhandled: StatusCellPendingUnhandled,
12775
+ StatusCellPendingReview: StatusCellPendingReview,
12776
+ StatusCellDenied: StatusCellDenied,
12777
+ DateCell: DateCell$2,
12778
+ CustomerNoteCell: CustomerNoteCell,
12779
+ EmptyCell: EmptyCell$3
12780
+ });
12781
+
12782
+ const TaxAndCashRewardsTableCell_stories = {
12783
+ title: "Components/Tax And Cash Rewards Table Cell",
12784
+ };
12785
+ const cashReward$1 = {
12786
+ id: "68c34fd98a6cb4f5f8394084",
12787
+ type: "CREDIT",
12788
+ value: 59900,
12789
+ prettyValue: "$599.00",
12790
+ availableValue: 0,
12791
+ prettyAvailableValue: "$0.00",
12792
+ prettyAssignedCredit: "$599.00",
12793
+ prettyRedeemedCredit: "$599.00",
12794
+ prettyValueNumber: "599",
12795
+ prettyAvailableNumber: "0",
12796
+ prettyRedeemedNumber: "599",
12797
+ unit: "CASH/USD",
12798
+ baseUnit: "CASH",
12799
+ rewardUnit: {
12800
+ key: "CASH/USD",
12801
+ name: "Cash",
12802
+ },
12803
+ name: null,
12804
+ dateCreated: 1757630425085,
12805
+ dateScheduledFor: 1757631025115,
12806
+ dateGiven: 1757630737115,
12807
+ dateExpires: null,
12808
+ dateCancelled: null,
12809
+ dateRedeemed: 1757630737115,
12810
+ dateModified: 1757630737115,
12811
+ rewardSource: "MANUAL",
12812
+ fuelTankCode: null,
12813
+ fuelTankType: null,
12814
+ fuelTankSyncSetting: null,
12815
+ currency: "USD",
12816
+ meta: null,
12817
+ programId: "40444",
12818
+ programRewardKey: null,
12819
+ globalRewardKey: "cash",
12820
+ program: {
12821
+ id: "40444",
12822
+ name: "Make Money Program",
12823
+ template: {
12824
+ id: "2qdmAx1fi31deo3P9O36sQ",
12825
+ name: "Referral Program With Objectives",
12826
+ },
12827
+ },
12828
+ partnerFundsTransfer: null,
12829
+ user: {
12830
+ id: "8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",
12831
+ accountId: "8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",
12832
+ firstName: "Billy",
12833
+ lastName: "Jean",
12834
+ email: "billy.jean@impact.com",
12835
+ impactConnection: {
12836
+ connected: true,
12837
+ taxHandlingEnabled: true,
12838
+ publisher: null,
12839
+ },
12840
+ },
12841
+ referral: null,
12842
+ description: null,
12843
+ statuses: ["REDEEMED"],
12844
+ rewardRedemptionTransactions: {
12845
+ data: null,
12846
+ },
12847
+ exchangedRewardRedemptionTransaction: null,
12848
+ pendingReasons: [],
12849
+ };
12850
+ const pending$1 = {
12851
+ statuses: ["PENDING"],
12852
+ };
12853
+ const processingPFT = {
12854
+ partnerFundsTransfer: {
12855
+ id: "123",
12856
+ status: null,
12857
+ dateCreated: 1355612521321,
12858
+ dateScheduled: 2779257600000,
12859
+ dateTransferred: null,
12860
+ },
12861
+ };
12862
+ const taxConnection$1 = {
12863
+ connected: true,
12864
+ taxHandlingEnabled: true,
12865
+ publisher: {
12866
+ requiredTaxDocumentType: "W8BEN",
12867
+ currentTaxDocument: {
12868
+ status: "NOT_VERIFIED",
12869
+ type: "W8BEN",
12870
+ dateCreated: 321321487,
12871
+ },
12872
+ withdrawalSettings: {
12873
+ paymentMethod: "BANK_TRANSFER",
12874
+ },
12875
+ payoutsAccount: null,
12876
+ },
12877
+ };
12878
+ const CashReward$1 = () => {
12879
+ return (h("sqm-rewards-table-reward-cell", { reward: { ...cashReward$1 }, availableText: "{availableAmount} remaining" }));
12880
+ };
12881
+ const StatusCellPendingTaxReview = () => {
12882
+ return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$1, ...pending$1, pendingReasons: ["US_TAX"] }, taxConnection: {
12883
+ ...taxConnection$1,
12884
+ publisher: {
12885
+ requiredTaxDocumentType: "W8BEN",
12886
+ currentTaxDocument: {
12887
+ status: "",
12888
+ },
12889
+ ...taxConnection$1.publisher,
12890
+ },
12891
+ } }));
12892
+ };
12893
+ const StatusCellPendingNewTaxForm = () => {
12894
+ return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12895
+ ...cashReward$1,
12896
+ statuses: ["PENDING"],
12897
+ pendingReasons: ["US_TAX"],
12898
+ }, taxConnection: {
12899
+ connected: true,
12900
+ taxHandlingEnabled: true,
12901
+ publisher: {
12902
+ requiredTaxDocumentType: "W8BEN",
12903
+ withdrawalSettings: {
12904
+ paymentMethod: "BANK_TRANSFER",
12905
+ },
12906
+ payoutsAccount: null,
12907
+ currentTaxDocument: {
12908
+ status: "INACTIVE",
12909
+ type: "W8BEN",
12910
+ dateCreated: 321321487,
12911
+ },
12912
+ },
12913
+ } }));
12914
+ };
12915
+ const StatusCellPendingTaxSubmission = () => {
12916
+ return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$1, ...pending$1, pendingReasons: ["US_TAX"] }, taxConnection: {
12917
+ ...taxConnection$1,
12918
+ publisher: {
12919
+ ...taxConnection$1.publisher,
12920
+ requiredTaxDocumentType: "W8BEN",
12921
+ currentTaxDocument: null,
12922
+ },
12923
+ } }));
12924
+ };
12925
+ const StatusCellPendingPartnerCreation = () => {
12926
+ return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12927
+ ...cashReward$1,
12928
+ ...pending$1,
12929
+ pendingReasons: ["US_TAX"],
12930
+ }, taxConnection: {
12931
+ ...taxConnection$1,
12932
+ connected: false,
12933
+ } }));
12934
+ };
12935
+ const StatusCellPendingW9 = () => {
12936
+ return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12937
+ ...cashReward$1,
12938
+ ...pending$1,
12939
+ pendingReasons: ["US_TAX"],
12940
+ }, taxConnection: {
12941
+ ...taxConnection$1,
12942
+ taxHandlingEnabled: false,
12943
+ } }));
12508
12944
  };
12509
- const CustomerNoteCell = () => {
12510
- return (h("sqm-rewards-table-customer-note-cell", { note: rewardsData$1.meta.message }));
12945
+ const StatusCellPayoutSent = () => {
12946
+ return (h("sqm-rewards-table-status-cell", { statusText: "Payout Sent", reward: {
12947
+ ...cashReward$1,
12948
+ partnerFundsTransfer: {
12949
+ id: "transfer-123",
12950
+ status: "TRANSFERRED",
12951
+ dateScheduled: 1640995200000,
12952
+ dateTransferred: 1640995200000,
12953
+ dateCreated: 1640995200000,
12954
+ },
12955
+ }, taxConnection: taxConnection$1 }));
12511
12956
  };
12512
- const EmptyCell$3 = () => {
12513
- return h("sqm-rewards-table-date-cell", null);
12957
+ const StatusCellPayoutFailed = () => {
12958
+ return (h("sqm-rewards-table-status-cell", { statusText: "Payout Failed", reward: {
12959
+ ...cashReward$1,
12960
+ partnerFundsTransfer: {
12961
+ id: "transfer-failed",
12962
+ status: "OVERDUE",
12963
+ dateScheduled: 1640995200000,
12964
+ dateTransferred: null,
12965
+ dateCreated: 1640995200000,
12966
+ },
12967
+ } }));
12968
+ };
12969
+ const StatusCellPayoutProcessing = () => {
12970
+ return (h("sqm-rewards-table-status-cell", { statusText: "Payment Processing", reward: { ...cashReward$1, ...processingPFT } }));
12971
+ };
12972
+ const StatusCellPayoutCancelled = () => {
12973
+ return (h("sqm-rewards-table-status-cell", { statusText: "Payout Cancelled", reward: {
12974
+ ...cashReward$1,
12975
+ partnerFundsTransfer: {
12976
+ id: "transfer-reversed",
12977
+ status: "REVERSED",
12978
+ dateScheduled: 1640995200000,
12979
+ dateTransferred: null,
12980
+ dateCreated: 1640995200000,
12981
+ },
12982
+ } }));
12514
12983
  };
12515
12984
 
12516
- const RewardsTableCell = /*#__PURE__*/Object.freeze({
12985
+ const TaxAndCashRewardsTableCell = /*#__PURE__*/Object.freeze({
12517
12986
  __proto__: null,
12518
- 'default': RewardsTableCell_stories,
12519
- RewardsCellCreditSingle: RewardsCellCreditSingle,
12520
- RewardsCellCreditFull: RewardsCellCreditFull,
12521
- RewardsCellCreditPartial: RewardsCellCreditPartial,
12522
- RewardsCellCreditCancelled: RewardsCellCreditCancelled,
12523
- RewardsCellCreditExpired: RewardsCellCreditExpired,
12524
- RewardsCellCreditPending: RewardsCellCreditPending,
12525
- RewardsCellCreditRedeemed: RewardsCellCreditRedeemed,
12526
- RewardsCellCreditLong: RewardsCellCreditLong,
12527
- RewardsCellNonCredit: RewardsCellNonCredit,
12528
- RewardsCellFueltank: RewardsCellFueltank,
12529
- RewardsCellFueltankLong: RewardsCellFueltankLong,
12530
- SourceCellManual: SourceCellManual,
12531
- SourceCellProgram: SourceCellProgram,
12532
- SourceCellExchange: SourceCellExchange,
12533
- SourceCellReferral: SourceCellReferral,
12534
- SourceCellWithLongText: SourceCellWithLongText,
12535
- SourceCellReferred: SourceCellReferred,
12536
- SourceCellAnonymousUser: SourceCellAnonymousUser,
12537
- SourceCellDeletedUser: SourceCellDeletedUser,
12538
- SourceCellDeletedReferral: SourceCellDeletedReferral,
12539
- StatusCellAvailable: StatusCellAvailable,
12540
- StatusCellAvailableExpiry: StatusCellAvailableExpiry,
12541
- StatusCellRedeemed: StatusCellRedeemed,
12542
- StatusCellCancelled: StatusCellCancelled,
12543
- StatusCellExpired: StatusCellExpired,
12544
- StatusCellPending: StatusCellPending,
12987
+ 'default': TaxAndCashRewardsTableCell_stories,
12988
+ CashReward: CashReward$1,
12545
12989
  StatusCellPendingTaxReview: StatusCellPendingTaxReview,
12546
12990
  StatusCellPendingNewTaxForm: StatusCellPendingNewTaxForm,
12547
12991
  StatusCellPendingTaxSubmission: StatusCellPendingTaxSubmission,
12548
12992
  StatusCellPendingPartnerCreation: StatusCellPendingPartnerCreation,
12993
+ StatusCellPendingW9: StatusCellPendingW9,
12549
12994
  StatusCellPayoutSent: StatusCellPayoutSent,
12550
12995
  StatusCellPayoutFailed: StatusCellPayoutFailed,
12551
- StatusCellPayoutCancelled: StatusCellPayoutCancelled,
12552
- StatusCellPendingWithLongText: StatusCellPendingWithLongText,
12553
- StatusCellPendingUsTax: StatusCellPendingUsTax,
12554
- StatusCellPendingScheduled: StatusCellPendingScheduled,
12555
- StatusCellPendingUnhandled: StatusCellPendingUnhandled,
12556
- StatusCellPendingReview: StatusCellPendingReview,
12557
- StatusCellDenied: StatusCellDenied,
12558
- DateCell: DateCell$2,
12559
- CustomerNoteCell: CustomerNoteCell,
12560
- EmptyCell: EmptyCell$3
12996
+ StatusCellPayoutProcessing: StatusCellPayoutProcessing,
12997
+ StatusCellPayoutCancelled: StatusCellPayoutCancelled
12998
+ });
12999
+
13000
+ const TaxAndCashRewardsTable_stories = {
13001
+ title: "Components/Tax And Cash Rewards Table",
13002
+ };
13003
+ const rewardsTableProps = (rows, empty = false, loading = false, prev = "Prev", next = "Next", hidden = "") => ({
13004
+ states: {
13005
+ hasPrev: false,
13006
+ hasNext: true,
13007
+ show: empty
13008
+ ? "empty"
13009
+ : loading
13010
+ ? "loading"
13011
+ : "rows",
13012
+ namespace: "sqm-rewards-table",
13013
+ },
13014
+ data: {
13015
+ textOverrides: {
13016
+ showLabels: true,
13017
+ prevLabel: prev,
13018
+ moreLabel: next,
13019
+ },
13020
+ hiddenColumns: hidden,
13021
+ mdBreakpoint: 799,
13022
+ smBreakpoint: 599,
13023
+ },
13024
+ callbacks: {
13025
+ prevPage: () => console.log("Prev"),
13026
+ nextPage: () => console.log("Next"),
13027
+ },
13028
+ elements: {
13029
+ columns: ["Rewards", "Status", "Source", "Date received"],
13030
+ rows: rows,
13031
+ },
13032
+ });
13033
+ /* -------------------------------------------------------------------------- */
13034
+ /* PENDING ROWS */
13035
+ /* -------------------------------------------------------------------------- */
13036
+ const r_pending_new_tax_form = [
13037
+ h(CashReward$1, null),
13038
+ h(StatusCellPendingNewTaxForm, null),
13039
+ h(SourceCellReferral, null),
13040
+ h(DateCell$2, null),
13041
+ ];
13042
+ const r_pending_tax_submission = [
13043
+ h(CashReward$1, null),
13044
+ h(StatusCellPendingTaxSubmission, null),
13045
+ h(SourceCellReferral, null),
13046
+ h(DateCell$2, null),
13047
+ ];
13048
+ const r_pending_tax_review = [
13049
+ h(CashReward$1, null),
13050
+ h(StatusCellPendingTaxReview, null),
13051
+ h(SourceCellReferral, null),
13052
+ h(DateCell$2, null),
13053
+ ];
13054
+ const r_pending_partner_creation = [
13055
+ h(CashReward$1, null),
13056
+ h(StatusCellPendingPartnerCreation, null),
13057
+ h(SourceCellReferral, null),
13058
+ h(DateCell$2, null),
13059
+ ];
13060
+ const r_pending_w9 = [
13061
+ h(CashReward$1, null),
13062
+ h(StatusCellPendingW9, null),
13063
+ h(SourceCellReferral, null),
13064
+ h(DateCell$2, null),
13065
+ ];
13066
+ /* -------------------------------------------------------------------------- */
13067
+ /* SUCCESS / PROCESSING ROWS */
13068
+ /* -------------------------------------------------------------------------- */
13069
+ const r_payout_sent = [
13070
+ h(CashReward$1, null),
13071
+ h(StatusCellPayoutSent, null),
13072
+ h(SourceCellReferral, null),
13073
+ h(DateCell$2, null),
13074
+ ];
13075
+ const r_payout_processing = [
13076
+ h(CashReward$1, null),
13077
+ h(StatusCellPayoutProcessing, null),
13078
+ h(SourceCellReferral, null),
13079
+ h(DateCell$2, null),
13080
+ ];
13081
+ /* -------------------------------------------------------------------------- */
13082
+ /* ERROR / CANCELLED ROWS */
13083
+ /* -------------------------------------------------------------------------- */
13084
+ const r_payout_failed = [
13085
+ h(CashReward$1, null),
13086
+ h(StatusCellPayoutFailed, null),
13087
+ h(SourceCellReferral, null),
13088
+ h(DateCell$2, null),
13089
+ ];
13090
+ const r_payout_cancelled = [
13091
+ h(CashReward$1, null),
13092
+ h(StatusCellPayoutCancelled, null),
13093
+ h(SourceCellReferral, null),
13094
+ h(DateCell$2, null),
13095
+ ];
13096
+ const RewardsTable = () => {
13097
+ return (h(GenericTableView, Object.assign({}, rewardsTableProps([
13098
+ r_pending_new_tax_form,
13099
+ r_pending_tax_submission,
13100
+ r_pending_tax_review,
13101
+ r_pending_partner_creation,
13102
+ r_pending_w9,
13103
+ r_payout_processing,
13104
+ r_payout_sent,
13105
+ r_payout_failed,
13106
+ r_payout_cancelled,
13107
+ ]))));
13108
+ };
13109
+
13110
+ const RewardsTable$1 = /*#__PURE__*/Object.freeze({
13111
+ __proto__: null,
13112
+ 'default': TaxAndCashRewardsTable_stories,
13113
+ RewardsTable: RewardsTable
12561
13114
  });
12562
13115
 
12563
13116
  const scenario$y = "@owner:sam\n@author:sam\nFeature: Rewards Table\n\n Shows a list of rewards as a table\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no rewards\n Given a user with rewards\n When they view the reward table\n Then no rewards are displayed\n And they see an image with a user icon\n And \"View your rewards\" in bold\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no rewards\n And a custom empty state has been supplied in the \"empty\" slot\n When they view the reward table\n Then they see the custom empty state\n\n @minutia\n @ui\n Scenario: The loading state is shown while rewards are loading\n Given the table is loading\n Then the loading state is shown in the table\n And a custom loading state can be supplied in the \"loading\" slot\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\n Given the user has <number of rewards>\n And the table is configured to show <page limit> rewards per page\n Then the table will have <number of pages> page(s)\n And pagination buttons will allow users to navigate between pages\n And the pagination button to go to the next page is disabled on the last page of rewards\n And the pagination button to go to the previous page is disabled on the first page of rewards\n Examples:\n | number of rewards | page limit | number of pages |\n | 0 | 4 | 1 |\n | 1 | 4 | 1 |\n | 3 | 4 | 1 |\n | 5 | 4 | 2 |\n | 42 | 4 | 11 |\n\n @motivating\n @ui\n Scenario: The table converts to a card view on tablet and mobile window sizes\n Given a user with rewards\n When they view the table\n And their window size is smaller than \"799px\"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario: Table and Mobile beakpoints can be configured\n Given the reward table has been configured with the following props\n | prop | value |\n | smBreakpoint | 599 |\n | mdBreakpoint | 799 |\n And a user with rewards\n When they view the table\n And their window size is smaller than \"799px\"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario Outline: By default the first column heading is hidden in mobile\n Given a reward table with 4 columns\n And prop \"hidden-columns\" with <hideColumnValue>\n And a user with rewards\n When they view the reward table\n And their window size is below the tablet breakpoint\n Then reward cards are displayed\n And the titles of <columnsArehidden> within the card\n Examples:\n | hideColumnValue | columnsArehidden |\n | | the first column |\n | 0,1,2 | the first, second and third columns |\n | 3 | the fourth column |\n\n @motivating\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\n Given the table is configured with \"program-id\"\n Then only rewards from the program with \"program-id\" are shown\n\n @landmine\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\n There is no easy way for the backend to filter for \"classic\" programs,\n thus we are filtering for rewards without programId's.\n\n Given the \"program-id\" of the table is set to \"classic\"\n Then rewards from classic programs are shown\n And manual rewards are shown\n\n @minutia\n @ui\n Scenario: Column heading can be hidden\n Given the table is configured with \"hide-labels\" set to \"true\"\n Then the table is displayed without column headings";
@@ -12585,7 +13138,7 @@ const loadingElement$2 = (h("div", { slot: "loading", style: { display: "content
12585
13138
  h("sqm-table-cell", { colspan: 5 },
12586
13139
  h("sl-skeleton", null)))));
12587
13140
  const emptyElement$2 = (h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png", "empty-state-header": "View your rewards", "empty-state-text": "See all the rewards you have earned from referring friends and completing tasks" }));
12588
- const rewardsTableProps = (rows, empty = false, loading = false, prev = "Prev", next = "Next", hidden = "") => ({
13141
+ const rewardsTableProps$1 = (rows, empty = false, loading = false, prev = "Prev", next = "Next", hidden = "") => ({
12589
13142
  states: {
12590
13143
  hasPrev: false,
12591
13144
  hasNext: true,
@@ -12677,44 +13230,8 @@ const r_fueltank_long = [
12677
13230
  h(SourceCellManual, null),
12678
13231
  h(DateCell$2, null),
12679
13232
  ];
12680
- const r_payout_sent = [
12681
- h(RewardsCellCreditRedeemed, null),
12682
- h(StatusCellPayoutSent, null),
12683
- h(SourceCellReferral, null),
12684
- h(DateCell$2, null),
12685
- ];
12686
- const r_payout_failed = [
12687
- h(RewardsCellCreditRedeemed, null),
12688
- h(StatusCellPayoutFailed, null),
12689
- h(SourceCellReferral, null),
12690
- h(DateCell$2, null),
12691
- ];
12692
- const r_pending_new_tax_form = [
12693
- h(RewardsCellCreditRedeemed, null),
12694
- h(StatusCellPendingNewTaxForm, null),
12695
- h(SourceCellReferral, null),
12696
- h(DateCell$2, null),
12697
- ];
12698
- const r_pending_partner_creation = [
12699
- h(RewardsCellCreditRedeemed, null),
12700
- h(StatusCellPendingPartnerCreation, null),
12701
- h(SourceCellReferral, null),
12702
- h(DateCell$2, null),
12703
- ];
12704
- const r_pending_tax_review = [
12705
- h(RewardsCellCreditRedeemed, null),
12706
- h(StatusCellPendingTaxReview, null),
12707
- h(SourceCellReferral, null),
12708
- h(DateCell$2, null),
12709
- ];
12710
- const r_pending_tax_submission = [
12711
- h(RewardsCellCreditRedeemed, null),
12712
- h(StatusCellPendingTaxSubmission, null),
12713
- h(SourceCellReferral, null),
12714
- h(DateCell$2, null),
12715
- ];
12716
- const RewardsTable = () => {
12717
- return (h(GenericTableView, Object.assign({}, rewardsTableProps([
13233
+ const RewardsTable$2 = () => {
13234
+ return (h(GenericTableView, Object.assign({}, rewardsTableProps$1([
12718
13235
  r_available,
12719
13236
  r_redeemed,
12720
13237
  r_cancelled,
@@ -12722,37 +13239,31 @@ const RewardsTable = () => {
12722
13239
  r_expired,
12723
13240
  r_denied,
12724
13241
  r_pending_review,
12725
- r_payout_sent,
12726
- r_payout_failed,
12727
- r_pending_new_tax_form,
12728
- r_pending_partner_creation,
12729
- r_pending_tax_submission,
12730
- r_pending_tax_review,
12731
13242
  ]))));
12732
13243
  };
12733
13244
  const RewardsTableSingle = () => {
12734
- return (h(GenericTableView, Object.assign({}, rewardsTableProps([r_fueltank]))));
13245
+ return (h(GenericTableView, Object.assign({}, rewardsTableProps$1([r_fueltank]))));
12735
13246
  };
12736
13247
  const RewardsTableLong = () => {
12737
- return (h(GenericTableView, Object.assign({}, rewardsTableProps([r_fueltank_long, r_long]))));
13248
+ return (h(GenericTableView, Object.assign({}, rewardsTableProps$1([r_fueltank_long, r_long]))));
12738
13249
  };
12739
13250
  const RewardsTableEmpty = () => {
12740
- return h(GenericTableView, Object.assign({}, rewardsTableProps([], true)));
13251
+ return h(GenericTableView, Object.assign({}, rewardsTableProps$1([], true)));
12741
13252
  };
12742
13253
  const RewardsTableLoading = () => {
12743
- return (h(GenericTableView, Object.assign({}, rewardsTableProps([], false, true))));
13254
+ return (h(GenericTableView, Object.assign({}, rewardsTableProps$1([], false, true))));
12744
13255
  };
12745
13256
  const CustomButtonTextTable$1 = () => {
12746
- return (h(GenericTableView, Object.assign({}, rewardsTableProps([r_available, r_redeemed, r_cancelled, r_expired], false, false, "CUSTOM PREVIOUS TEXT", "CUSTOM NEXT TEXT"))));
13257
+ return (h(GenericTableView, Object.assign({}, rewardsTableProps$1([r_available, r_redeemed, r_cancelled, r_expired], false, false, "CUSTOM PREVIOUS TEXT", "CUSTOM NEXT TEXT"))));
12747
13258
  };
12748
13259
  const ColumnsMobileHidden$1 = () => {
12749
- return (h(GenericTableView, Object.assign({}, rewardsTableProps([r_available, r_redeemed, r_cancelled, r_expired], false, false, undefined, undefined, "0,1,2,3"))));
13260
+ return (h(GenericTableView, Object.assign({}, rewardsTableProps$1([r_available, r_redeemed, r_cancelled, r_expired], false, false, undefined, undefined, "0,1,2,3"))));
12750
13261
  };
12751
13262
 
12752
- const RewardsTable$1 = /*#__PURE__*/Object.freeze({
13263
+ const TaxAndCashRewardsTable = /*#__PURE__*/Object.freeze({
12753
13264
  __proto__: null,
12754
13265
  'default': RewardsTable_stories,
12755
- RewardsTable: RewardsTable,
13266
+ RewardsTable: RewardsTable$2,
12756
13267
  RewardsTableSingle: RewardsTableSingle,
12757
13268
  RewardsTableLong: RewardsTableLong,
12758
13269
  RewardsTableEmpty: RewardsTableEmpty,
@@ -14773,13 +15284,13 @@ const UseTaskCard = /*#__PURE__*/Object.freeze({
14773
15284
  const ProgressBar_stories = {
14774
15285
  title: "Components/Progress Bar",
14775
15286
  };
14776
- const defaultProps$o = {
15287
+ const defaultProps$p = {
14777
15288
  progress: 2,
14778
15289
  goal: 4,
14779
15290
  steps: true,
14780
15291
  };
14781
15292
  const TaxAndPayoutsProgressBar = () => {
14782
- return h(ProgressBar$2, Object.assign({}, defaultProps$o, { stageCount: 4, currentStage: 2 }));
15293
+ return h(ProgressBar$2, Object.assign({}, defaultProps$p, { stageCount: 4, currentStage: 2 }));
14783
15294
  };
14784
15295
 
14785
15296
  const ProgressBar$1 = /*#__PURE__*/Object.freeze({
@@ -15155,35 +15666,35 @@ const UserName = /*#__PURE__*/Object.freeze({
15155
15666
  const WidgetCodeVerification_stories = {
15156
15667
  title: "Components/Widget Code Verification",
15157
15668
  };
15158
- const defaultProps$p = {
15669
+ const defaultProps$q = {
15159
15670
  initialiseLoading: false,
15160
15671
  email: "testemail@example.com",
15161
15672
  loading: false,
15162
15673
  verifyFailed: false,
15163
15674
  emailResent: false,
15164
15675
  };
15165
- const Default$o = () => (h("sqm-code-verification", { demoData: { states: defaultProps$p } }));
15676
+ const Default$o = () => (h("sqm-code-verification", { demoData: { states: defaultProps$q } }));
15166
15677
  const InitialLoading = () => (h("sqm-code-verification", { demoData: {
15167
15678
  states: {
15168
- ...defaultProps$p,
15679
+ ...defaultProps$q,
15169
15680
  initialiseLoading: true,
15170
15681
  },
15171
15682
  } }));
15172
15683
  const Loading$9 = () => (h("sqm-code-verification", { demoData: {
15173
15684
  states: {
15174
- ...defaultProps$p,
15685
+ ...defaultProps$q,
15175
15686
  loading: true,
15176
15687
  },
15177
15688
  } }));
15178
15689
  const CodeResent = () => (h("sqm-code-verification", { demoData: {
15179
15690
  states: {
15180
- ...defaultProps$p,
15691
+ ...defaultProps$q,
15181
15692
  emailResent: true,
15182
15693
  },
15183
15694
  } }));
15184
15695
  const VerificationFailed = () => (h("sqm-code-verification", { demoData: {
15185
15696
  states: {
15186
- ...defaultProps$p,
15697
+ ...defaultProps$q,
15187
15698
  verifyFailed: true,
15188
15699
  },
15189
15700
  } }));
@@ -15201,7 +15712,7 @@ const WidgetCodeVerification = /*#__PURE__*/Object.freeze({
15201
15712
  const WidgetEmailVerification_stories = {
15202
15713
  title: "Components/Widget Email Verification",
15203
15714
  };
15204
- const defaultProps$q = {
15715
+ const defaultProps$r = {
15205
15716
  email: "",
15206
15717
  error: false,
15207
15718
  loading: false,
@@ -15216,19 +15727,19 @@ const EmailIsPrefilled = () => (h("div", null,
15216
15727
  h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
15217
15728
  h("sqm-email-verification", { demoData: {
15218
15729
  states: {
15219
- ...defaultProps$q,
15730
+ ...defaultProps$r,
15220
15731
  email: "test@example.com",
15221
15732
  },
15222
15733
  } })));
15223
15734
  const Loading$a = () => (h("sqm-email-verification", { demoData: {
15224
15735
  states: {
15225
- ...defaultProps$q,
15736
+ ...defaultProps$r,
15226
15737
  initialLoading: true,
15227
15738
  },
15228
15739
  } }));
15229
15740
  const SaveLoading = () => (h("sqm-email-verification", { demoData: {
15230
15741
  states: {
15231
- ...defaultProps$q,
15742
+ ...defaultProps$r,
15232
15743
  loading: true,
15233
15744
  },
15234
15745
  } }));
@@ -15239,19 +15750,19 @@ const WithHeader$1 = () => (h("div", null,
15239
15750
  h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
15240
15751
  h("sqm-email-verification", { demoData: {
15241
15752
  states: {
15242
- ...defaultProps$q,
15753
+ ...defaultProps$r,
15243
15754
  email: "test@example.com",
15244
15755
  },
15245
15756
  } })));
15246
15757
  const InvalidEmail = () => (h("sqm-email-verification", { demoData: {
15247
15758
  states: {
15248
- ...defaultProps$q,
15759
+ ...defaultProps$r,
15249
15760
  error: true,
15250
15761
  },
15251
15762
  } }));
15252
15763
  const SendCodeError = () => (h("sqm-email-verification", { demoData: {
15253
15764
  states: {
15254
- ...defaultProps$q,
15765
+ ...defaultProps$r,
15255
15766
  sendCodeError: true,
15256
15767
  },
15257
15768
  } }));
@@ -17048,34 +17559,34 @@ const PayoutDetailsCard = /*#__PURE__*/Object.freeze({
17048
17559
  const PayoutStatusAlert_stories = {
17049
17560
  title: "Components/Payout Status Alert",
17050
17561
  };
17051
- const defaultProps$r = {
17562
+ const defaultProps$s = {
17052
17563
  error: false,
17053
17564
  status: "INFORMATION_REQUIRED",
17054
17565
  loading: false,
17055
17566
  veriffLoading: false,
17056
17567
  };
17057
- const InformationRequired = () => (h("sqm-payout-status-alert", { demoData: { states: defaultProps$r } }));
17058
- const VerifyIdentity = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:REQUIRED" } } }));
17059
- const VerifyIdentityRequiredInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:INTERNAL" } } }));
17060
- const VerifyIdentityReviewInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:REVIEW" } } }));
17061
- const VerifyIdentityFailedInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:FAILED" } } }));
17062
- const W9ThresholdReached = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "OVER_W9_THRESHOLD" } } }));
17063
- const Hold = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "HOLD" } } }));
17064
- const Loading$c = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, loading: true } } }));
17065
- const Error$b = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, error: true } } }));
17066
- const NewPayeeReview = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "NEW_PAYEE_REVIEW" } } }));
17067
- const PaymentHoldOnChange = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
17568
+ const InformationRequired = () => (h("sqm-payout-status-alert", { demoData: { states: defaultProps$s } }));
17569
+ const VerifyIdentity = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:REQUIRED" } } }));
17570
+ const VerifyIdentityRequiredInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:INTERNAL" } } }));
17571
+ const VerifyIdentityReviewInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:REVIEW" } } }));
17572
+ const VerifyIdentityFailedInternal = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:FAILED" } } }));
17573
+ const W9ThresholdReached = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "OVER_W9_THRESHOLD" } } }));
17574
+ const Hold = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "HOLD" } } }));
17575
+ const Loading$c = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, loading: true } } }));
17576
+ const Error$b = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, error: true } } }));
17577
+ const NewPayeeReview = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "NEW_PAYEE_REVIEW" } } }));
17578
+ const PaymentHoldOnChange = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
17068
17579
  const BeneficiaryNameInvalid = () => (h("sqm-payout-status-alert", { demoData: {
17069
- states: { ...defaultProps$r, status: "BENEFICIARY_NAME_INVALID" },
17580
+ states: { ...defaultProps$s, status: "BENEFICIARY_NAME_INVALID" },
17070
17581
  } }));
17071
17582
  const BeneficiaryNameMismatch = () => (h("sqm-payout-status-alert", { demoData: {
17072
- states: { ...defaultProps$r, status: "BENEFICIARY_NAME_MISMATCH" },
17583
+ states: { ...defaultProps$s, status: "BENEFICIARY_NAME_MISMATCH" },
17073
17584
  } }));
17074
- const BankTaxNameMismatch = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "BANK_TAX_NAME_MISMATCH" } } }));
17585
+ const BankTaxNameMismatch = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "BANK_TAX_NAME_MISMATCH" } } }));
17075
17586
  const WithdrawalSettingsInvalid = () => (h("sqm-payout-status-alert", { demoData: {
17076
- states: { ...defaultProps$r, status: "WITHDRAWAL_SETTINGS_INVALID" },
17587
+ states: { ...defaultProps$s, status: "WITHDRAWAL_SETTINGS_INVALID" },
17077
17588
  } }));
17078
- const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "PAYMENT_RETURNED" } } }));
17589
+ const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "PAYMENT_RETURNED" } } }));
17079
17590
 
17080
17591
  const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
17081
17592
  __proto__: null,
@@ -17230,7 +17741,7 @@ const EmailRegistration_stories = {
17230
17741
  // scenario,
17231
17742
  },
17232
17743
  };
17233
- const defaultProps$s = {
17744
+ const defaultProps$t = {
17234
17745
  states: {
17235
17746
  error: "",
17236
17747
  loading: false,
@@ -17249,59 +17760,59 @@ const defaultProps$s = {
17249
17760
  fraudErrorMessageTitle: "Looks like you tried referring yourself",
17250
17761
  },
17251
17762
  };
17252
- const Default$q = () => h(EmailRegistrationView, Object.assign({}, defaultProps$s));
17763
+ const Default$q = () => h(EmailRegistrationView, Object.assign({}, defaultProps$t));
17253
17764
  const HasFirstNameLastName = () => (h(EmailRegistrationView, Object.assign({}, {
17254
- ...defaultProps$s,
17765
+ ...defaultProps$t,
17255
17766
  content: {
17256
- ...defaultProps$s.content,
17767
+ ...defaultProps$t.content,
17257
17768
  includeName: true,
17258
17769
  },
17259
17770
  })));
17260
17771
  const WithSlots = () => (h(EmailRegistrationView, Object.assign({}, {
17261
- ...defaultProps$s,
17772
+ ...defaultProps$t,
17262
17773
  content: {
17263
- ...defaultProps$s.content,
17774
+ ...defaultProps$t.content,
17264
17775
  topSlot: h("div", null, "Hello this is the top slot"),
17265
17776
  bottomSlot: h("div", null, "Hello this is the bottom slot"),
17266
17777
  },
17267
17778
  })));
17268
17779
  const NoBorder$1 = () => (h(EmailRegistrationView, Object.assign({}, {
17269
- ...defaultProps$s,
17780
+ ...defaultProps$t,
17270
17781
  content: {
17271
- ...defaultProps$s.content,
17782
+ ...defaultProps$t.content,
17272
17783
  hideBorder: true,
17273
17784
  },
17274
17785
  })));
17275
17786
  const BackgroundColor$2 = () => (h(EmailRegistrationView, Object.assign({}, {
17276
- ...defaultProps$s,
17787
+ ...defaultProps$t,
17277
17788
  content: {
17278
- ...defaultProps$s.content,
17789
+ ...defaultProps$t.content,
17279
17790
  backgroundColor: "aquamarine",
17280
17791
  },
17281
17792
  })));
17282
17793
  const Loading$d = () => (h(EmailRegistrationView, Object.assign({}, {
17283
- ...defaultProps$s,
17794
+ ...defaultProps$t,
17284
17795
  states: {
17285
17796
  error: "",
17286
17797
  loading: true,
17287
17798
  },
17288
17799
  })));
17289
17800
  const Error$c = () => (h(EmailRegistrationView, Object.assign({}, {
17290
- ...defaultProps$s,
17801
+ ...defaultProps$t,
17291
17802
  states: {
17292
17803
  error: "Something went wrong. Please try again.",
17293
17804
  loading: false,
17294
17805
  },
17295
17806
  })));
17296
17807
  const FraudError = () => (h(EmailRegistrationView, Object.assign({}, {
17297
- ...defaultProps$s,
17808
+ ...defaultProps$t,
17298
17809
  states: {
17299
17810
  error: "FRAUD",
17300
17811
  loading: false,
17301
17812
  },
17302
17813
  })));
17303
17814
  const EmptyEmailError = () => (h(EmailRegistrationView, Object.assign({}, {
17304
- ...defaultProps$s,
17815
+ ...defaultProps$t,
17305
17816
  states: {
17306
17817
  error: "Something went wrong. Please try again.",
17307
17818
  loading: false,
@@ -17328,7 +17839,7 @@ const EmailRegistration = /*#__PURE__*/Object.freeze({
17328
17839
  const LeadForm_stories = {
17329
17840
  title: "Components/Lead Form",
17330
17841
  };
17331
- const defaultProps$t = {
17842
+ const defaultProps$u = {
17332
17843
  states: {
17333
17844
  success: false,
17334
17845
  leadFormState: {},
@@ -17357,21 +17868,21 @@ const defaultProps$t = {
17357
17868
  },
17358
17869
  };
17359
17870
  const successProps$5 = {
17360
- ...defaultProps$t,
17871
+ ...defaultProps$u,
17361
17872
  states: {
17362
- ...defaultProps$t.states,
17873
+ ...defaultProps$u.states,
17363
17874
  success: true,
17364
17875
  error: null,
17365
17876
  },
17366
17877
  content: {
17367
- ...defaultProps$t.content,
17878
+ ...defaultProps$u.content,
17368
17879
  pageLabel: "Refer your friend",
17369
17880
  },
17370
17881
  };
17371
17882
  const errorProps$c = {
17372
- ...defaultProps$t,
17883
+ ...defaultProps$u,
17373
17884
  states: {
17374
- ...defaultProps$t.states,
17885
+ ...defaultProps$u.states,
17375
17886
  error: "Something went wrong. Please try again.",
17376
17887
  leadFormState: {
17377
17888
  validationErrors: {
@@ -17383,16 +17894,16 @@ const errorProps$c = {
17383
17894
  },
17384
17895
  };
17385
17896
  const loadingProps$9 = {
17386
- ...defaultProps$t,
17897
+ ...defaultProps$u,
17387
17898
  states: {
17388
- ...defaultProps$t.states,
17899
+ ...defaultProps$u.states,
17389
17900
  loading: true,
17390
17901
  },
17391
17902
  };
17392
17903
  const slottedProps$2 = {
17393
- ...defaultProps$t,
17904
+ ...defaultProps$u,
17394
17905
  content: {
17395
- ...defaultProps$t.content,
17906
+ ...defaultProps$u.content,
17396
17907
  formData: (h("div", null,
17397
17908
  h("sqm-lead-input-field", { "field-name": "firstName", "field-label": "First Name", "field-type": "text", "required-field-error-message": "Please enter a first name" }),
17398
17909
  h("sqm-lead-input-field", { "field-name": "lastName", "field-label": "Last Name", "field-type": "text", "required-field-error-message": "Please enter a last name" }),
@@ -17400,7 +17911,7 @@ const slottedProps$2 = {
17400
17911
  h("sqm-lead-dropdown-field", null))),
17401
17912
  },
17402
17913
  };
17403
- const Default$r = () => h(LeadFormView, Object.assign({}, defaultProps$t));
17914
+ const Default$r = () => h(LeadFormView, Object.assign({}, defaultProps$u));
17404
17915
  const LeadSubmitSuccess = () => h(LeadFormView, Object.assign({}, successProps$5));
17405
17916
  const LeadSubmitWithError = () => h(LeadFormView, Object.assign({}, errorProps$c));
17406
17917
  const LeadSubmitLoading = () => h(LeadFormView, Object.assign({}, loadingProps$9));
@@ -17431,7 +17942,7 @@ const LeadForm = /*#__PURE__*/Object.freeze({
17431
17942
  const LeadInputField_stories = {
17432
17943
  title: "Components/Lead Form Input Field",
17433
17944
  };
17434
- const defaultProps$u = {
17945
+ const defaultProps$v = {
17435
17946
  states: {
17436
17947
  leadFormState: {
17437
17948
  validationErrors: {},
@@ -17449,27 +17960,27 @@ const defaultProps$u = {
17449
17960
  fieldOptional: false,
17450
17961
  },
17451
17962
  };
17452
- const Default$s = () => h(LeadInputFieldView, Object.assign({}, defaultProps$u));
17453
- const WithError$1 = () => (h(LeadInputFieldView, Object.assign({}, defaultProps$u, { states: {
17454
- ...defaultProps$u.states,
17963
+ const Default$s = () => h(LeadInputFieldView, Object.assign({}, defaultProps$v));
17964
+ const WithError$1 = () => (h(LeadInputFieldView, Object.assign({}, defaultProps$v, { states: {
17965
+ ...defaultProps$v.states,
17455
17966
  leadFormState: {
17456
- ...defaultProps$u.states.leadFormState,
17967
+ ...defaultProps$v.states.leadFormState,
17457
17968
  validationErrors: {
17458
17969
  firstName: "Please enter a first name",
17459
17970
  },
17460
17971
  },
17461
17972
  } })));
17462
- const Disabled$2 = () => (h(LeadInputFieldView, Object.assign({}, defaultProps$u, { states: {
17463
- ...defaultProps$u.states,
17973
+ const Disabled$2 = () => (h(LeadInputFieldView, Object.assign({}, defaultProps$v, { states: {
17974
+ ...defaultProps$v.states,
17464
17975
  leadFormState: {
17465
- ...defaultProps$u.states.leadFormState,
17976
+ ...defaultProps$v.states.leadFormState,
17466
17977
  disabled: true,
17467
17978
  },
17468
17979
  } })));
17469
- const WithInitialValue = () => (h(LeadInputFieldView, Object.assign({}, defaultProps$u, { states: {
17470
- ...defaultProps$u.states,
17980
+ const WithInitialValue = () => (h(LeadInputFieldView, Object.assign({}, defaultProps$v, { states: {
17981
+ ...defaultProps$v.states,
17471
17982
  leadFormState: {
17472
- ...defaultProps$u.states.leadFormState,
17983
+ ...defaultProps$v.states.leadFormState,
17473
17984
  initialData: {
17474
17985
  firstName: "Jane",
17475
17986
  },
@@ -17488,7 +17999,7 @@ const LeadInputField = /*#__PURE__*/Object.freeze({
17488
17999
  const LeadFormDropdownField_stories = {
17489
18000
  title: "Components/Lead Form Dropdown Field",
17490
18001
  };
17491
- const defaultProps$v = {
18002
+ const defaultProps$w = {
17492
18003
  states: {
17493
18004
  leadFormState: {
17494
18005
  validationErrors: {},
@@ -17511,35 +18022,35 @@ const defaultProps$v = {
17511
18022
  ],
17512
18023
  },
17513
18024
  };
17514
- const Default$t = () => h(LeadDropdownFieldView, Object.assign({}, defaultProps$v));
17515
- const Multiple = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$v, { content: { ...defaultProps$v.content, multiple: true } })));
17516
- const WithError$2 = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17517
- ...defaultProps$v.states,
18025
+ const Default$t = () => h(LeadDropdownFieldView, Object.assign({}, defaultProps$w));
18026
+ const Multiple = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$w, { content: { ...defaultProps$w.content, multiple: true } })));
18027
+ const WithError$2 = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18028
+ ...defaultProps$w.states,
17518
18029
  leadFormState: {
17519
- ...defaultProps$v.states.leadFormState,
18030
+ ...defaultProps$w.states.leadFormState,
17520
18031
  validationErrors: {
17521
18032
  country: "Please select a country",
17522
18033
  },
17523
18034
  },
17524
18035
  } })));
17525
- const Disabled$3 = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17526
- ...defaultProps$v.states,
18036
+ const Disabled$3 = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18037
+ ...defaultProps$w.states,
17527
18038
  leadFormState: {
17528
- ...defaultProps$v.states.leadFormState,
18039
+ ...defaultProps$w.states.leadFormState,
17529
18040
  disabled: true,
17530
18041
  },
17531
18042
  } })));
17532
- const Loading$e = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17533
- ...defaultProps$v.states,
18043
+ const Loading$e = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18044
+ ...defaultProps$w.states,
17534
18045
  leadFormState: {
17535
- ...defaultProps$v.states.leadFormState,
18046
+ ...defaultProps$w.states.leadFormState,
17536
18047
  loading: true,
17537
18048
  },
17538
18049
  } })));
17539
- const WithInitialValue$1 = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17540
- ...defaultProps$v.states,
18050
+ const WithInitialValue$1 = () => (h(LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18051
+ ...defaultProps$w.states,
17541
18052
  leadFormState: {
17542
- ...defaultProps$v.states.leadFormState,
18053
+ ...defaultProps$w.states.leadFormState,
17543
18054
  initialData: {
17544
18055
  country: "Canada",
17545
18056
  },
@@ -17560,7 +18071,7 @@ const LeadFormDropdownField = /*#__PURE__*/Object.freeze({
17560
18071
  const LeadCheckboxField_stories = {
17561
18072
  title: "Components/Lead Checkbox Field",
17562
18073
  };
17563
- const defaultProps$w = {
18074
+ const defaultProps$x = {
17564
18075
  states: {
17565
18076
  leadFormState: {
17566
18077
  validationErrors: {},
@@ -17574,28 +18085,28 @@ const defaultProps$w = {
17574
18085
  errorMessage: "{checkboxLabel} Must be checked",
17575
18086
  },
17576
18087
  };
17577
- const Default$u = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$w))));
17578
- const CustomLabel$3 = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$w, { content: {
17579
- ...defaultProps$w.content,
18088
+ const Default$u = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$x))));
18089
+ const CustomLabel$3 = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$x, { content: {
18090
+ ...defaultProps$x.content,
17580
18091
  checkboxLabel: "I Agree",
17581
18092
  } }))));
17582
- const Error$d = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$w, { states: {
17583
- ...defaultProps$w.states,
18093
+ const Error$d = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$x, { states: {
18094
+ ...defaultProps$x.states,
17584
18095
  leadFormState: {
17585
18096
  validationErrors: {
17586
18097
  terms: "{checkboxLabel} Must be checked",
17587
18098
  },
17588
18099
  },
17589
18100
  } }))));
17590
- const CustomError$3 = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$w, { states: {
17591
- ...defaultProps$w.states,
18101
+ const CustomError$3 = createHookStory(() => (h(LeadCheckboxFieldView, Object.assign({}, defaultProps$x, { states: {
18102
+ ...defaultProps$x.states,
17592
18103
  leadFormState: {
17593
18104
  validationErrors: {
17594
18105
  terms: "{checkboxLabel} Must be checked",
17595
18106
  },
17596
18107
  },
17597
18108
  }, content: {
17598
- ...defaultProps$w.content,
18109
+ ...defaultProps$x.content,
17599
18110
  errorMessage: "This checkbox must be checked to continue",
17600
18111
  } }))));
17601
18112
 
@@ -20638,6 +21149,10 @@ const stories = [
20638
21149
  LeadInputField,
20639
21150
  LeadFormDropdownField,
20640
21151
  LeadCheckboxField,
21152
+ TaxAndCashRewardsTableCell,
21153
+ TaxAndCashRewardsTable,
21154
+ TaxAndCashReferralTableRewardsCell,
21155
+ TaxAndCashReferralTable$1,
20641
21156
  ];
20642
21157
  const StencilStorybook = class {
20643
21158
  constructor(hostRef) {