@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
@@ -34,8 +34,8 @@ require('./ErrorView-3f91e5ab.js');
34
34
  const sqmQrCodeView = require('./sqm-qr-code-view-4ccf89da.js');
35
35
  const ShadowViewAddon = require('./ShadowViewAddon-4753ff2d.js');
36
36
  const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
37
- const sqmUserInfoFormView = require('./sqm-user-info-form-view-c14ba407.js');
38
- const data = require('./data-24028727.js');
37
+ const sqmUserInfoFormView = require('./sqm-user-info-form-view-a61124db.js');
38
+ const data = require('./data-62fc9ba5.js');
39
39
  const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-2006001f.js');
40
40
 
41
41
  /**
@@ -10719,7 +10719,7 @@ const column = "@author:noah\n@owner:noah\nFeature: Referral Table User Column\n
10719
10719
 
10720
10720
  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 |";
10721
10721
 
10722
- 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";
10722
+ 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";
10723
10723
 
10724
10724
  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";
10725
10725
 
@@ -11798,6 +11798,308 @@ const ReferralTable = /*#__PURE__*/Object.freeze({
11798
11798
  ColumnsMobileHidden: ColumnsMobileHidden
11799
11799
  });
11800
11800
 
11801
+ const TaxAndCashReferralTableRewardsCell_stories = {
11802
+ title: "Components/Tax And Cash Referral Table Rewards Cell",
11803
+ };
11804
+ function getDays$1() {
11805
+ return luxon.luxon.DateTime.now().toMillis() + 600000000;
11806
+ }
11807
+ function getMonths$1() {
11808
+ return luxon.luxon.DateTime.now().toMillis() + 10000000000;
11809
+ }
11810
+ const cashReward = {
11811
+ id: "1234",
11812
+ type: "CREDIT",
11813
+ value: 50,
11814
+ unit: "USD",
11815
+ name: "test",
11816
+ dateScheduledFor: getDays$1(),
11817
+ dateExpires: getMonths$1(),
11818
+ dateCancelled: 134400,
11819
+ dateRedeemed: 0,
11820
+ fuelTankCode: null,
11821
+ fuelTankType: null,
11822
+ currency: "USD",
11823
+ prettyValue: "$50.00",
11824
+ statuses: ["AVAILABLE"],
11825
+ globalRewardKey: "Key",
11826
+ rewardRedemptionTransactions: null,
11827
+ partnerFundsTransfer: null,
11828
+ };
11829
+ const taxConnection = {
11830
+ connected: true,
11831
+ taxHandlingEnabled: true,
11832
+ publisher: {
11833
+ requiredTaxDocumentType: "W9",
11834
+ withdrawalSettings: { paymentMethod: "BANK_TRANSFER" },
11835
+ payoutsAccount: null,
11836
+ currentTaxDocument: {
11837
+ status: "ACTIVE",
11838
+ type: "W9",
11839
+ dateCreated: 1627427794891,
11840
+ },
11841
+ },
11842
+ };
11843
+ const defaultPFT = {
11844
+ id: "ID1234",
11845
+ status: null,
11846
+ dateCreated: null,
11847
+ dateScheduled: null,
11848
+ dateTransferred: null,
11849
+ };
11850
+ const defaultTaxDocument = {
11851
+ status: "NOT_VERIFIED",
11852
+ type: "W9",
11853
+ dateCreated: luxon.luxon.DateTime.now().toMillis() - 1000000,
11854
+ };
11855
+ const defaultProps$o = {
11856
+ 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} }",
11857
+ 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} }",
11858
+ rewardReceivedText: "Reward received on",
11859
+ hideDetails: false,
11860
+ };
11861
+ const CashReward = () => {
11862
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [{ ...cashReward }], taxConnection: taxConnection }, defaultProps$o)));
11863
+ };
11864
+ const PayoutApproved = () => {
11865
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11866
+ {
11867
+ ...cashReward,
11868
+ partnerFundsTransfer: {
11869
+ ...defaultPFT,
11870
+ status: "TRANSFERRED",
11871
+ dateScheduled: Date.now() - 600000000,
11872
+ },
11873
+ },
11874
+ ], taxConnection: taxConnection }, defaultProps$o)));
11875
+ };
11876
+ const PayoutProcessing = () => {
11877
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11878
+ {
11879
+ ...cashReward,
11880
+ partnerFundsTransfer: {
11881
+ ...defaultPFT,
11882
+ dateCreated: 1355612521321,
11883
+ dateScheduled: getDays$1(),
11884
+ },
11885
+ },
11886
+ ], taxConnection: taxConnection }, defaultProps$o)));
11887
+ };
11888
+ const PayoutFailed$1 = () => {
11889
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11890
+ {
11891
+ ...cashReward,
11892
+ partnerFundsTransfer: {
11893
+ ...defaultPFT,
11894
+ status: "OVERDUE",
11895
+ dateScheduled: Date.now() - 100000,
11896
+ },
11897
+ },
11898
+ ], taxConnection: taxConnection }, defaultProps$o)));
11899
+ };
11900
+ const PayoutCancelled$1 = () => {
11901
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11902
+ {
11903
+ ...cashReward,
11904
+ partnerFundsTransfer: {
11905
+ ...defaultPFT,
11906
+ status: "REVERSED",
11907
+ dateScheduled: Date.now() - 100000,
11908
+ },
11909
+ },
11910
+ ], taxConnection: taxConnection }, defaultProps$o)));
11911
+ };
11912
+ const PendingTaxReview$1 = () => {
11913
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11914
+ {
11915
+ ...cashReward,
11916
+ statuses: ["PENDING"],
11917
+ pendingReasons: ["US_TAX"],
11918
+ },
11919
+ ], taxConnection: {
11920
+ ...taxConnection,
11921
+ publisher: {
11922
+ ...taxConnection.publisher,
11923
+ currentTaxDocument: {
11924
+ ...defaultTaxDocument,
11925
+ status: "NOT_VERIFIED",
11926
+ },
11927
+ },
11928
+ } }, defaultProps$o)));
11929
+ };
11930
+ const PendingNewTaxForm$1 = () => {
11931
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11932
+ {
11933
+ ...cashReward,
11934
+ statuses: ["PENDING"],
11935
+ pendingReasons: ["US_TAX"],
11936
+ },
11937
+ ], taxConnection: {
11938
+ ...taxConnection,
11939
+ publisher: {
11940
+ ...taxConnection.publisher,
11941
+ currentTaxDocument: {
11942
+ ...defaultTaxDocument,
11943
+ status: "INACTIVE",
11944
+ },
11945
+ },
11946
+ } }, defaultProps$o)));
11947
+ };
11948
+ const PendingTaxSubmission$1 = () => {
11949
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11950
+ {
11951
+ ...cashReward,
11952
+ statuses: ["PENDING"],
11953
+ pendingReasons: ["US_TAX"],
11954
+ },
11955
+ ], taxConnection: {
11956
+ ...taxConnection,
11957
+ publisher: {
11958
+ ...taxConnection.publisher,
11959
+ currentTaxDocument: null,
11960
+ },
11961
+ } }, defaultProps$o)));
11962
+ };
11963
+ const PendingPartnerCreation$1 = () => {
11964
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11965
+ {
11966
+ ...cashReward,
11967
+ statuses: ["PENDING"],
11968
+ pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
11969
+ },
11970
+ ], taxConnection: {
11971
+ ...taxConnection,
11972
+ connected: false,
11973
+ } }, defaultProps$o)));
11974
+ };
11975
+ const PendingW9 = () => {
11976
+ return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
11977
+ {
11978
+ ...cashReward,
11979
+ statuses: ["PENDING"],
11980
+ pendingReasons: ["US_TAX"],
11981
+ },
11982
+ ], taxConnection: {
11983
+ ...taxConnection,
11984
+ taxHandlingEnabled: false,
11985
+ } }, defaultProps$o)));
11986
+ };
11987
+
11988
+ const TaxAndCashReferralTableRewardsCell = /*#__PURE__*/Object.freeze({
11989
+ __proto__: null,
11990
+ 'default': TaxAndCashReferralTableRewardsCell_stories,
11991
+ CashReward: CashReward,
11992
+ PayoutApproved: PayoutApproved,
11993
+ PayoutProcessing: PayoutProcessing,
11994
+ PayoutFailed: PayoutFailed$1,
11995
+ PayoutCancelled: PayoutCancelled$1,
11996
+ PendingTaxReview: PendingTaxReview$1,
11997
+ PendingNewTaxForm: PendingNewTaxForm$1,
11998
+ PendingTaxSubmission: PendingTaxSubmission$1,
11999
+ PendingPartnerCreation: PendingPartnerCreation$1,
12000
+ PendingW9: PendingW9
12001
+ });
12002
+
12003
+ const TaxAndCashReferralTable_stories = {
12004
+ title: "Components/Tax And Cash Referral Table",
12005
+ };
12006
+ const taxAndCashTableProps = {
12007
+ states: {
12008
+ hasPrev: false,
12009
+ hasNext: true,
12010
+ show: "rows",
12011
+ namespace: "sqm-referral-table",
12012
+ },
12013
+ data: {
12014
+ textOverrides: {
12015
+ showLabels: true,
12016
+ prevLabel: "Prev",
12017
+ moreLabel: "View More",
12018
+ },
12019
+ hiddenColumns: "",
12020
+ mdBreakpoint: 799,
12021
+ smBreakpoint: 599,
12022
+ },
12023
+ callbacks: {
12024
+ prevPage: () => console.log("Prev"),
12025
+ nextPage: () => console.log("Next"),
12026
+ },
12027
+ elements: {
12028
+ columns: ["Customer", "Status", "Date converted", "Rewards"],
12029
+ rows: [
12030
+ [
12031
+ index.h("sqm-referral-table-user-cell", { name: "Payout Approved User" }),
12032
+ index.h(Converted, null),
12033
+ index.h(DateCell$1, null),
12034
+ index.h(PayoutApproved, null),
12035
+ ],
12036
+ [
12037
+ index.h("sqm-referral-table-user-cell", { name: "Payout Failed User" }),
12038
+ index.h(Converted, null),
12039
+ index.h(DateCell$1, null),
12040
+ index.h(PayoutFailed$1, null),
12041
+ ],
12042
+ [
12043
+ index.h("sqm-referral-table-user-cell", { name: "Payout Cancelled User" }),
12044
+ index.h(Converted, null),
12045
+ index.h(DateCell$1, null),
12046
+ index.h(PayoutCancelled$1, null),
12047
+ ],
12048
+ [
12049
+ index.h("sqm-referral-table-user-cell", { name: "Tax Review User" }),
12050
+ index.h(Converted, null),
12051
+ index.h(DateCell$1, null),
12052
+ index.h(PendingTaxReview$1, null),
12053
+ ],
12054
+ [
12055
+ index.h("sqm-referral-table-user-cell", { name: "Payout Processing User" }),
12056
+ index.h(Converted, null),
12057
+ index.h(DateCell$1, null),
12058
+ index.h(PayoutProcessing, null),
12059
+ ],
12060
+ [
12061
+ index.h("sqm-referral-table-user-cell", { name: "New Tax Form User" }),
12062
+ index.h(Converted, null),
12063
+ index.h(DateCell$1, null),
12064
+ index.h(PendingNewTaxForm$1, null),
12065
+ ],
12066
+ [
12067
+ index.h("sqm-referral-table-user-cell", { name: "Tax Submission User" }),
12068
+ index.h(Converted, null),
12069
+ index.h(DateCell$1, null),
12070
+ index.h(PendingTaxSubmission$1, null),
12071
+ ],
12072
+ [
12073
+ index.h("sqm-referral-table-user-cell", { name: "Partner Creation User" }),
12074
+ index.h(Converted, null),
12075
+ index.h(DateCell$1, null),
12076
+ index.h(PendingPartnerCreation$1, null),
12077
+ ],
12078
+ [
12079
+ index.h("sqm-referral-table-user-cell", { name: "Missing W9 User" }),
12080
+ index.h(Converted, null),
12081
+ index.h(DateCell$1, null),
12082
+ index.h(PendingW9, null),
12083
+ ],
12084
+ [
12085
+ index.h("sqm-referral-table-user-cell", { name: "Standard Cash User" }),
12086
+ index.h(Converted, null),
12087
+ index.h(DateCell$1, null),
12088
+ index.h(CashReward, null),
12089
+ ],
12090
+ ],
12091
+ },
12092
+ };
12093
+ const TaxAndCashReferralTable = () => {
12094
+ return index.h(GenericTableView.GenericTableView, Object.assign({}, taxAndCashTableProps));
12095
+ };
12096
+
12097
+ const TaxAndCashReferralTable$1 = /*#__PURE__*/Object.freeze({
12098
+ __proto__: null,
12099
+ 'default': TaxAndCashReferralTable_stories,
12100
+ TaxAndCashReferralTable: TaxAndCashReferralTable
12101
+ });
12102
+
11801
12103
  const UseReferralTable_stories = {
11802
12104
  title: "Hooks / useReferralTable",
11803
12105
  };
@@ -12115,7 +12417,7 @@ const scenario2 = "@author:derek\n@owner:derek\nFeature: Reward Table reward Col
12115
12417
 
12116
12418
  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";
12117
12419
 
12118
- 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";
12420
+ 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. |";
12119
12421
 
12120
12422
  const scenario$x = scenario1 + scenario2 + scenario3 + scenario4;
12121
12423
  const RewardsTableCell_stories = {
@@ -12155,22 +12457,7 @@ const rewardsData$1 = {
12155
12457
  rewardRedemptionTransactions: {
12156
12458
  data: null,
12157
12459
  },
12158
- };
12159
- const taxConnection = {
12160
- connected: true,
12161
- taxHandlingEnabled: true,
12162
- publisher: {
12163
- requiredTaxDocumentType: "W8BEN",
12164
- currentTaxDocument: {
12165
- status: "NOT_VERIFIED",
12166
- type: "W8BEN",
12167
- dateCreated: 321321487,
12168
- },
12169
- withdrawalSettings: {
12170
- paymentMethod: "BANK_TRANSFER",
12171
- },
12172
- payoutsAccount: null,
12173
- },
12460
+ partnerFundsTransfer: null,
12174
12461
  };
12175
12462
  const RewardsCellCreditSingle = () => {
12176
12463
  return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...singleRedeemed } }));
@@ -12375,16 +12662,6 @@ const StatusCellExpired = () => {
12375
12662
  const pending = {
12376
12663
  statuses: ["PENDING"],
12377
12664
  };
12378
- const payoutSent = {
12379
- statuses: ["PAYOUT_SENT"],
12380
- };
12381
- const payoutFailed = {
12382
- statuses: ["PAYOUT_FAILED"],
12383
- };
12384
- const payoutCancelled = {
12385
- statuses: ["PAYOUT_CANCELLED"],
12386
- dateCancelled: 1355612521321,
12387
- };
12388
12665
  const us_tax = {
12389
12666
  pendingReasons: ["US_TAX"],
12390
12667
  };
@@ -12398,57 +12675,6 @@ const unhandled = {
12398
12675
  const StatusCellPending = () => {
12399
12676
  return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1, ...pending } }));
12400
12677
  };
12401
- const StatusCellPendingTaxReview = () => {
12402
- return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1 }, taxConnection: {
12403
- ...taxConnection,
12404
- publisher: {
12405
- requiredTaxDocumentType: "W8BEN",
12406
- currentTaxDocument: {
12407
- status: "",
12408
- },
12409
- ...taxConnection.publisher,
12410
- },
12411
- } }));
12412
- };
12413
- const StatusCellPendingNewTaxForm = () => {
12414
- return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1 }, taxConnection: {
12415
- ...taxConnection,
12416
- publisher: {
12417
- ...taxConnection.publisher,
12418
- requiredTaxDocumentType: "W8BEN",
12419
- currentTaxDocument: {
12420
- status: "INACTIVE",
12421
- type: "W8BEN",
12422
- dateCreated: 321321487,
12423
- },
12424
- },
12425
- } }));
12426
- };
12427
- const StatusCellPendingTaxSubmission = () => {
12428
- return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...rewardsData$1 }, taxConnection: {
12429
- ...taxConnection,
12430
- publisher: {
12431
- ...taxConnection.publisher,
12432
- requiredTaxDocumentType: "W8BEN",
12433
- currentTaxDocument: null,
12434
- },
12435
- } }));
12436
- };
12437
- const StatusCellPendingPartnerCreation = () => {
12438
- return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12439
- ...rewardsData$1,
12440
- pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
12441
- } }));
12442
- };
12443
- const StatusCellPayoutSent = () => {
12444
- return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Sent", reward: { ...rewardsData$1, ...payoutSent }, taxConnection: taxConnection }));
12445
- };
12446
- const StatusCellPayoutFailed = () => {
12447
- return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Failed", reward: { ...rewardsData$1, ...payoutFailed } }));
12448
- };
12449
- const StatusCellPayoutCancelled = () => {
12450
- return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Cancelled", reward: { ...rewardsData$1, ...payoutCancelled } }));
12451
- };
12452
12678
  const StatusCellPendingWithLongText = () => {
12453
12679
  return (index.h("div", { style: { width: "200px" } },
12454
12680
  index.h("sqm-rewards-table-status-cell", { statusText: "Pending for 300,000,000 months and some change", reward: { ...rewardsData$1, ...pending } })));
@@ -12507,61 +12733,388 @@ const StatusCellDenied = () => {
12507
12733
  },
12508
12734
  } }));
12509
12735
  };
12510
- const DateCell$2 = () => {
12511
- return (index.h("sqm-rewards-table-date-cell", { date: 1640038417468 }));
12736
+ const DateCell$2 = () => {
12737
+ return (index.h("sqm-rewards-table-date-cell", { date: 1640038417468 }));
12738
+ };
12739
+ const CustomerNoteCell = () => {
12740
+ return (index.h("sqm-rewards-table-customer-note-cell", { note: rewardsData$1.meta.message }));
12741
+ };
12742
+ const EmptyCell$3 = () => {
12743
+ return index.h("sqm-rewards-table-date-cell", null);
12744
+ };
12745
+
12746
+ const RewardsTableCell = /*#__PURE__*/Object.freeze({
12747
+ __proto__: null,
12748
+ 'default': RewardsTableCell_stories,
12749
+ RewardsCellCreditSingle: RewardsCellCreditSingle,
12750
+ RewardsCellCreditFull: RewardsCellCreditFull,
12751
+ RewardsCellCreditPartial: RewardsCellCreditPartial,
12752
+ RewardsCellCreditCancelled: RewardsCellCreditCancelled,
12753
+ RewardsCellCreditExpired: RewardsCellCreditExpired,
12754
+ RewardsCellCreditPending: RewardsCellCreditPending,
12755
+ RewardsCellCreditRedeemed: RewardsCellCreditRedeemed,
12756
+ RewardsCellCreditLong: RewardsCellCreditLong,
12757
+ RewardsCellNonCredit: RewardsCellNonCredit,
12758
+ RewardsCellFueltank: RewardsCellFueltank,
12759
+ RewardsCellFueltankLong: RewardsCellFueltankLong,
12760
+ SourceCellManual: SourceCellManual,
12761
+ SourceCellProgram: SourceCellProgram,
12762
+ SourceCellExchange: SourceCellExchange,
12763
+ SourceCellReferral: SourceCellReferral,
12764
+ SourceCellWithLongText: SourceCellWithLongText,
12765
+ SourceCellReferred: SourceCellReferred,
12766
+ SourceCellAnonymousUser: SourceCellAnonymousUser,
12767
+ SourceCellDeletedUser: SourceCellDeletedUser,
12768
+ SourceCellDeletedReferral: SourceCellDeletedReferral,
12769
+ StatusCellAvailable: StatusCellAvailable,
12770
+ StatusCellAvailableExpiry: StatusCellAvailableExpiry,
12771
+ StatusCellRedeemed: StatusCellRedeemed,
12772
+ StatusCellCancelled: StatusCellCancelled,
12773
+ StatusCellExpired: StatusCellExpired,
12774
+ StatusCellPending: StatusCellPending,
12775
+ StatusCellPendingWithLongText: StatusCellPendingWithLongText,
12776
+ StatusCellPendingUsTax: StatusCellPendingUsTax,
12777
+ StatusCellPendingScheduled: StatusCellPendingScheduled,
12778
+ StatusCellPendingUnhandled: StatusCellPendingUnhandled,
12779
+ StatusCellPendingReview: StatusCellPendingReview,
12780
+ StatusCellDenied: StatusCellDenied,
12781
+ DateCell: DateCell$2,
12782
+ CustomerNoteCell: CustomerNoteCell,
12783
+ EmptyCell: EmptyCell$3
12784
+ });
12785
+
12786
+ const TaxAndCashRewardsTableCell_stories = {
12787
+ title: "Components/Tax And Cash Rewards Table Cell",
12788
+ };
12789
+ const cashReward$1 = {
12790
+ id: "68c34fd98a6cb4f5f8394084",
12791
+ type: "CREDIT",
12792
+ value: 59900,
12793
+ prettyValue: "$599.00",
12794
+ availableValue: 0,
12795
+ prettyAvailableValue: "$0.00",
12796
+ prettyAssignedCredit: "$599.00",
12797
+ prettyRedeemedCredit: "$599.00",
12798
+ prettyValueNumber: "599",
12799
+ prettyAvailableNumber: "0",
12800
+ prettyRedeemedNumber: "599",
12801
+ unit: "CASH/USD",
12802
+ baseUnit: "CASH",
12803
+ rewardUnit: {
12804
+ key: "CASH/USD",
12805
+ name: "Cash",
12806
+ },
12807
+ name: null,
12808
+ dateCreated: 1757630425085,
12809
+ dateScheduledFor: 1757631025115,
12810
+ dateGiven: 1757630737115,
12811
+ dateExpires: null,
12812
+ dateCancelled: null,
12813
+ dateRedeemed: 1757630737115,
12814
+ dateModified: 1757630737115,
12815
+ rewardSource: "MANUAL",
12816
+ fuelTankCode: null,
12817
+ fuelTankType: null,
12818
+ fuelTankSyncSetting: null,
12819
+ currency: "USD",
12820
+ meta: null,
12821
+ programId: "40444",
12822
+ programRewardKey: null,
12823
+ globalRewardKey: "cash",
12824
+ program: {
12825
+ id: "40444",
12826
+ name: "Make Money Program",
12827
+ template: {
12828
+ id: "2qdmAx1fi31deo3P9O36sQ",
12829
+ name: "Referral Program With Objectives",
12830
+ },
12831
+ },
12832
+ partnerFundsTransfer: null,
12833
+ user: {
12834
+ id: "8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",
12835
+ accountId: "8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",
12836
+ firstName: "Billy",
12837
+ lastName: "Jean",
12838
+ email: "billy.jean@impact.com",
12839
+ impactConnection: {
12840
+ connected: true,
12841
+ taxHandlingEnabled: true,
12842
+ publisher: null,
12843
+ },
12844
+ },
12845
+ referral: null,
12846
+ description: null,
12847
+ statuses: ["REDEEMED"],
12848
+ rewardRedemptionTransactions: {
12849
+ data: null,
12850
+ },
12851
+ exchangedRewardRedemptionTransaction: null,
12852
+ pendingReasons: [],
12853
+ };
12854
+ const pending$1 = {
12855
+ statuses: ["PENDING"],
12856
+ };
12857
+ const processingPFT = {
12858
+ partnerFundsTransfer: {
12859
+ id: "123",
12860
+ status: null,
12861
+ dateCreated: 1355612521321,
12862
+ dateScheduled: 2779257600000,
12863
+ dateTransferred: null,
12864
+ },
12865
+ };
12866
+ const taxConnection$1 = {
12867
+ connected: true,
12868
+ taxHandlingEnabled: true,
12869
+ publisher: {
12870
+ requiredTaxDocumentType: "W8BEN",
12871
+ currentTaxDocument: {
12872
+ status: "NOT_VERIFIED",
12873
+ type: "W8BEN",
12874
+ dateCreated: 321321487,
12875
+ },
12876
+ withdrawalSettings: {
12877
+ paymentMethod: "BANK_TRANSFER",
12878
+ },
12879
+ payoutsAccount: null,
12880
+ },
12881
+ };
12882
+ const CashReward$1 = () => {
12883
+ return (index.h("sqm-rewards-table-reward-cell", { reward: { ...cashReward$1 }, availableText: "{availableAmount} remaining" }));
12884
+ };
12885
+ const StatusCellPendingTaxReview = () => {
12886
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$1, ...pending$1, pendingReasons: ["US_TAX"] }, taxConnection: {
12887
+ ...taxConnection$1,
12888
+ publisher: {
12889
+ requiredTaxDocumentType: "W8BEN",
12890
+ currentTaxDocument: {
12891
+ status: "",
12892
+ },
12893
+ ...taxConnection$1.publisher,
12894
+ },
12895
+ } }));
12896
+ };
12897
+ const StatusCellPendingNewTaxForm = () => {
12898
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12899
+ ...cashReward$1,
12900
+ statuses: ["PENDING"],
12901
+ pendingReasons: ["US_TAX"],
12902
+ }, taxConnection: {
12903
+ connected: true,
12904
+ taxHandlingEnabled: true,
12905
+ publisher: {
12906
+ requiredTaxDocumentType: "W8BEN",
12907
+ withdrawalSettings: {
12908
+ paymentMethod: "BANK_TRANSFER",
12909
+ },
12910
+ payoutsAccount: null,
12911
+ currentTaxDocument: {
12912
+ status: "INACTIVE",
12913
+ type: "W8BEN",
12914
+ dateCreated: 321321487,
12915
+ },
12916
+ },
12917
+ } }));
12918
+ };
12919
+ const StatusCellPendingTaxSubmission = () => {
12920
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$1, ...pending$1, pendingReasons: ["US_TAX"] }, taxConnection: {
12921
+ ...taxConnection$1,
12922
+ publisher: {
12923
+ ...taxConnection$1.publisher,
12924
+ requiredTaxDocumentType: "W8BEN",
12925
+ currentTaxDocument: null,
12926
+ },
12927
+ } }));
12928
+ };
12929
+ const StatusCellPendingPartnerCreation = () => {
12930
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12931
+ ...cashReward$1,
12932
+ ...pending$1,
12933
+ pendingReasons: ["US_TAX"],
12934
+ }, taxConnection: {
12935
+ ...taxConnection$1,
12936
+ connected: false,
12937
+ } }));
12938
+ };
12939
+ const StatusCellPendingW9 = () => {
12940
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
12941
+ ...cashReward$1,
12942
+ ...pending$1,
12943
+ pendingReasons: ["US_TAX"],
12944
+ }, taxConnection: {
12945
+ ...taxConnection$1,
12946
+ taxHandlingEnabled: false,
12947
+ } }));
12512
12948
  };
12513
- const CustomerNoteCell = () => {
12514
- return (index.h("sqm-rewards-table-customer-note-cell", { note: rewardsData$1.meta.message }));
12949
+ const StatusCellPayoutSent = () => {
12950
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Sent", reward: {
12951
+ ...cashReward$1,
12952
+ partnerFundsTransfer: {
12953
+ id: "transfer-123",
12954
+ status: "TRANSFERRED",
12955
+ dateScheduled: 1640995200000,
12956
+ dateTransferred: 1640995200000,
12957
+ dateCreated: 1640995200000,
12958
+ },
12959
+ }, taxConnection: taxConnection$1 }));
12515
12960
  };
12516
- const EmptyCell$3 = () => {
12517
- return index.h("sqm-rewards-table-date-cell", null);
12961
+ const StatusCellPayoutFailed = () => {
12962
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Failed", reward: {
12963
+ ...cashReward$1,
12964
+ partnerFundsTransfer: {
12965
+ id: "transfer-failed",
12966
+ status: "OVERDUE",
12967
+ dateScheduled: 1640995200000,
12968
+ dateTransferred: null,
12969
+ dateCreated: 1640995200000,
12970
+ },
12971
+ } }));
12972
+ };
12973
+ const StatusCellPayoutProcessing = () => {
12974
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Payment Processing", reward: { ...cashReward$1, ...processingPFT } }));
12975
+ };
12976
+ const StatusCellPayoutCancelled = () => {
12977
+ return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Cancelled", reward: {
12978
+ ...cashReward$1,
12979
+ partnerFundsTransfer: {
12980
+ id: "transfer-reversed",
12981
+ status: "REVERSED",
12982
+ dateScheduled: 1640995200000,
12983
+ dateTransferred: null,
12984
+ dateCreated: 1640995200000,
12985
+ },
12986
+ } }));
12518
12987
  };
12519
12988
 
12520
- const RewardsTableCell = /*#__PURE__*/Object.freeze({
12989
+ const TaxAndCashRewardsTableCell = /*#__PURE__*/Object.freeze({
12521
12990
  __proto__: null,
12522
- 'default': RewardsTableCell_stories,
12523
- RewardsCellCreditSingle: RewardsCellCreditSingle,
12524
- RewardsCellCreditFull: RewardsCellCreditFull,
12525
- RewardsCellCreditPartial: RewardsCellCreditPartial,
12526
- RewardsCellCreditCancelled: RewardsCellCreditCancelled,
12527
- RewardsCellCreditExpired: RewardsCellCreditExpired,
12528
- RewardsCellCreditPending: RewardsCellCreditPending,
12529
- RewardsCellCreditRedeemed: RewardsCellCreditRedeemed,
12530
- RewardsCellCreditLong: RewardsCellCreditLong,
12531
- RewardsCellNonCredit: RewardsCellNonCredit,
12532
- RewardsCellFueltank: RewardsCellFueltank,
12533
- RewardsCellFueltankLong: RewardsCellFueltankLong,
12534
- SourceCellManual: SourceCellManual,
12535
- SourceCellProgram: SourceCellProgram,
12536
- SourceCellExchange: SourceCellExchange,
12537
- SourceCellReferral: SourceCellReferral,
12538
- SourceCellWithLongText: SourceCellWithLongText,
12539
- SourceCellReferred: SourceCellReferred,
12540
- SourceCellAnonymousUser: SourceCellAnonymousUser,
12541
- SourceCellDeletedUser: SourceCellDeletedUser,
12542
- SourceCellDeletedReferral: SourceCellDeletedReferral,
12543
- StatusCellAvailable: StatusCellAvailable,
12544
- StatusCellAvailableExpiry: StatusCellAvailableExpiry,
12545
- StatusCellRedeemed: StatusCellRedeemed,
12546
- StatusCellCancelled: StatusCellCancelled,
12547
- StatusCellExpired: StatusCellExpired,
12548
- StatusCellPending: StatusCellPending,
12991
+ 'default': TaxAndCashRewardsTableCell_stories,
12992
+ CashReward: CashReward$1,
12549
12993
  StatusCellPendingTaxReview: StatusCellPendingTaxReview,
12550
12994
  StatusCellPendingNewTaxForm: StatusCellPendingNewTaxForm,
12551
12995
  StatusCellPendingTaxSubmission: StatusCellPendingTaxSubmission,
12552
12996
  StatusCellPendingPartnerCreation: StatusCellPendingPartnerCreation,
12997
+ StatusCellPendingW9: StatusCellPendingW9,
12553
12998
  StatusCellPayoutSent: StatusCellPayoutSent,
12554
12999
  StatusCellPayoutFailed: StatusCellPayoutFailed,
12555
- StatusCellPayoutCancelled: StatusCellPayoutCancelled,
12556
- StatusCellPendingWithLongText: StatusCellPendingWithLongText,
12557
- StatusCellPendingUsTax: StatusCellPendingUsTax,
12558
- StatusCellPendingScheduled: StatusCellPendingScheduled,
12559
- StatusCellPendingUnhandled: StatusCellPendingUnhandled,
12560
- StatusCellPendingReview: StatusCellPendingReview,
12561
- StatusCellDenied: StatusCellDenied,
12562
- DateCell: DateCell$2,
12563
- CustomerNoteCell: CustomerNoteCell,
12564
- EmptyCell: EmptyCell$3
13000
+ StatusCellPayoutProcessing: StatusCellPayoutProcessing,
13001
+ StatusCellPayoutCancelled: StatusCellPayoutCancelled
13002
+ });
13003
+
13004
+ const TaxAndCashRewardsTable_stories = {
13005
+ title: "Components/Tax And Cash Rewards Table",
13006
+ };
13007
+ const rewardsTableProps = (rows, empty = false, loading = false, prev = "Prev", next = "Next", hidden = "") => ({
13008
+ states: {
13009
+ hasPrev: false,
13010
+ hasNext: true,
13011
+ show: empty
13012
+ ? "empty"
13013
+ : loading
13014
+ ? "loading"
13015
+ : "rows",
13016
+ namespace: "sqm-rewards-table",
13017
+ },
13018
+ data: {
13019
+ textOverrides: {
13020
+ showLabels: true,
13021
+ prevLabel: prev,
13022
+ moreLabel: next,
13023
+ },
13024
+ hiddenColumns: hidden,
13025
+ mdBreakpoint: 799,
13026
+ smBreakpoint: 599,
13027
+ },
13028
+ callbacks: {
13029
+ prevPage: () => console.log("Prev"),
13030
+ nextPage: () => console.log("Next"),
13031
+ },
13032
+ elements: {
13033
+ columns: ["Rewards", "Status", "Source", "Date received"],
13034
+ rows: rows,
13035
+ },
13036
+ });
13037
+ /* -------------------------------------------------------------------------- */
13038
+ /* PENDING ROWS */
13039
+ /* -------------------------------------------------------------------------- */
13040
+ const r_pending_new_tax_form = [
13041
+ index.h(CashReward$1, null),
13042
+ index.h(StatusCellPendingNewTaxForm, null),
13043
+ index.h(SourceCellReferral, null),
13044
+ index.h(DateCell$2, null),
13045
+ ];
13046
+ const r_pending_tax_submission = [
13047
+ index.h(CashReward$1, null),
13048
+ index.h(StatusCellPendingTaxSubmission, null),
13049
+ index.h(SourceCellReferral, null),
13050
+ index.h(DateCell$2, null),
13051
+ ];
13052
+ const r_pending_tax_review = [
13053
+ index.h(CashReward$1, null),
13054
+ index.h(StatusCellPendingTaxReview, null),
13055
+ index.h(SourceCellReferral, null),
13056
+ index.h(DateCell$2, null),
13057
+ ];
13058
+ const r_pending_partner_creation = [
13059
+ index.h(CashReward$1, null),
13060
+ index.h(StatusCellPendingPartnerCreation, null),
13061
+ index.h(SourceCellReferral, null),
13062
+ index.h(DateCell$2, null),
13063
+ ];
13064
+ const r_pending_w9 = [
13065
+ index.h(CashReward$1, null),
13066
+ index.h(StatusCellPendingW9, null),
13067
+ index.h(SourceCellReferral, null),
13068
+ index.h(DateCell$2, null),
13069
+ ];
13070
+ /* -------------------------------------------------------------------------- */
13071
+ /* SUCCESS / PROCESSING ROWS */
13072
+ /* -------------------------------------------------------------------------- */
13073
+ const r_payout_sent = [
13074
+ index.h(CashReward$1, null),
13075
+ index.h(StatusCellPayoutSent, null),
13076
+ index.h(SourceCellReferral, null),
13077
+ index.h(DateCell$2, null),
13078
+ ];
13079
+ const r_payout_processing = [
13080
+ index.h(CashReward$1, null),
13081
+ index.h(StatusCellPayoutProcessing, null),
13082
+ index.h(SourceCellReferral, null),
13083
+ index.h(DateCell$2, null),
13084
+ ];
13085
+ /* -------------------------------------------------------------------------- */
13086
+ /* ERROR / CANCELLED ROWS */
13087
+ /* -------------------------------------------------------------------------- */
13088
+ const r_payout_failed = [
13089
+ index.h(CashReward$1, null),
13090
+ index.h(StatusCellPayoutFailed, null),
13091
+ index.h(SourceCellReferral, null),
13092
+ index.h(DateCell$2, null),
13093
+ ];
13094
+ const r_payout_cancelled = [
13095
+ index.h(CashReward$1, null),
13096
+ index.h(StatusCellPayoutCancelled, null),
13097
+ index.h(SourceCellReferral, null),
13098
+ index.h(DateCell$2, null),
13099
+ ];
13100
+ const RewardsTable = () => {
13101
+ return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([
13102
+ r_pending_new_tax_form,
13103
+ r_pending_tax_submission,
13104
+ r_pending_tax_review,
13105
+ r_pending_partner_creation,
13106
+ r_pending_w9,
13107
+ r_payout_processing,
13108
+ r_payout_sent,
13109
+ r_payout_failed,
13110
+ r_payout_cancelled,
13111
+ ]))));
13112
+ };
13113
+
13114
+ const RewardsTable$1 = /*#__PURE__*/Object.freeze({
13115
+ __proto__: null,
13116
+ 'default': TaxAndCashRewardsTable_stories,
13117
+ RewardsTable: RewardsTable
12565
13118
  });
12566
13119
 
12567
13120
  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";
@@ -12589,7 +13142,7 @@ const loadingElement$2 = (index.h("div", { slot: "loading", style: { display: "c
12589
13142
  index.h("sqm-table-cell", { colspan: 5 },
12590
13143
  index.h("sl-skeleton", null)))));
12591
13144
  const emptyElement$2 = (index.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" }));
12592
- const rewardsTableProps = (rows, empty = false, loading = false, prev = "Prev", next = "Next", hidden = "") => ({
13145
+ const rewardsTableProps$1 = (rows, empty = false, loading = false, prev = "Prev", next = "Next", hidden = "") => ({
12593
13146
  states: {
12594
13147
  hasPrev: false,
12595
13148
  hasNext: true,
@@ -12681,44 +13234,8 @@ const r_fueltank_long = [
12681
13234
  index.h(SourceCellManual, null),
12682
13235
  index.h(DateCell$2, null),
12683
13236
  ];
12684
- const r_payout_sent = [
12685
- index.h(RewardsCellCreditRedeemed, null),
12686
- index.h(StatusCellPayoutSent, null),
12687
- index.h(SourceCellReferral, null),
12688
- index.h(DateCell$2, null),
12689
- ];
12690
- const r_payout_failed = [
12691
- index.h(RewardsCellCreditRedeemed, null),
12692
- index.h(StatusCellPayoutFailed, null),
12693
- index.h(SourceCellReferral, null),
12694
- index.h(DateCell$2, null),
12695
- ];
12696
- const r_pending_new_tax_form = [
12697
- index.h(RewardsCellCreditRedeemed, null),
12698
- index.h(StatusCellPendingNewTaxForm, null),
12699
- index.h(SourceCellReferral, null),
12700
- index.h(DateCell$2, null),
12701
- ];
12702
- const r_pending_partner_creation = [
12703
- index.h(RewardsCellCreditRedeemed, null),
12704
- index.h(StatusCellPendingPartnerCreation, null),
12705
- index.h(SourceCellReferral, null),
12706
- index.h(DateCell$2, null),
12707
- ];
12708
- const r_pending_tax_review = [
12709
- index.h(RewardsCellCreditRedeemed, null),
12710
- index.h(StatusCellPendingTaxReview, null),
12711
- index.h(SourceCellReferral, null),
12712
- index.h(DateCell$2, null),
12713
- ];
12714
- const r_pending_tax_submission = [
12715
- index.h(RewardsCellCreditRedeemed, null),
12716
- index.h(StatusCellPendingTaxSubmission, null),
12717
- index.h(SourceCellReferral, null),
12718
- index.h(DateCell$2, null),
12719
- ];
12720
- const RewardsTable = () => {
12721
- return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([
13237
+ const RewardsTable$2 = () => {
13238
+ return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps$1([
12722
13239
  r_available,
12723
13240
  r_redeemed,
12724
13241
  r_cancelled,
@@ -12726,37 +13243,31 @@ const RewardsTable = () => {
12726
13243
  r_expired,
12727
13244
  r_denied,
12728
13245
  r_pending_review,
12729
- r_payout_sent,
12730
- r_payout_failed,
12731
- r_pending_new_tax_form,
12732
- r_pending_partner_creation,
12733
- r_pending_tax_submission,
12734
- r_pending_tax_review,
12735
13246
  ]))));
12736
13247
  };
12737
13248
  const RewardsTableSingle = () => {
12738
- return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([r_fueltank]))));
13249
+ return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps$1([r_fueltank]))));
12739
13250
  };
12740
13251
  const RewardsTableLong = () => {
12741
- return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([r_fueltank_long, r_long]))));
13252
+ return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps$1([r_fueltank_long, r_long]))));
12742
13253
  };
12743
13254
  const RewardsTableEmpty = () => {
12744
- return index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([], true)));
13255
+ return index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps$1([], true)));
12745
13256
  };
12746
13257
  const RewardsTableLoading = () => {
12747
- return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([], false, true))));
13258
+ return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps$1([], false, true))));
12748
13259
  };
12749
13260
  const CustomButtonTextTable$1 = () => {
12750
- return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([r_available, r_redeemed, r_cancelled, r_expired], false, false, "CUSTOM PREVIOUS TEXT", "CUSTOM NEXT TEXT"))));
13261
+ return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps$1([r_available, r_redeemed, r_cancelled, r_expired], false, false, "CUSTOM PREVIOUS TEXT", "CUSTOM NEXT TEXT"))));
12751
13262
  };
12752
13263
  const ColumnsMobileHidden$1 = () => {
12753
- return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps([r_available, r_redeemed, r_cancelled, r_expired], false, false, undefined, undefined, "0,1,2,3"))));
13264
+ return (index.h(GenericTableView.GenericTableView, Object.assign({}, rewardsTableProps$1([r_available, r_redeemed, r_cancelled, r_expired], false, false, undefined, undefined, "0,1,2,3"))));
12754
13265
  };
12755
13266
 
12756
- const RewardsTable$1 = /*#__PURE__*/Object.freeze({
13267
+ const TaxAndCashRewardsTable = /*#__PURE__*/Object.freeze({
12757
13268
  __proto__: null,
12758
13269
  'default': RewardsTable_stories,
12759
- RewardsTable: RewardsTable,
13270
+ RewardsTable: RewardsTable$2,
12760
13271
  RewardsTableSingle: RewardsTableSingle,
12761
13272
  RewardsTableLong: RewardsTableLong,
12762
13273
  RewardsTableEmpty: RewardsTableEmpty,
@@ -14777,13 +15288,13 @@ const UseTaskCard = /*#__PURE__*/Object.freeze({
14777
15288
  const ProgressBar_stories = {
14778
15289
  title: "Components/Progress Bar",
14779
15290
  };
14780
- const defaultProps$o = {
15291
+ const defaultProps$p = {
14781
15292
  progress: 2,
14782
15293
  goal: 4,
14783
15294
  steps: true,
14784
15295
  };
14785
15296
  const TaxAndPayoutsProgressBar = () => {
14786
- return index.h(ShadowViewAddon.ProgressBar, Object.assign({}, defaultProps$o, { stageCount: 4, currentStage: 2 }));
15297
+ return index.h(ShadowViewAddon.ProgressBar, Object.assign({}, defaultProps$p, { stageCount: 4, currentStage: 2 }));
14787
15298
  };
14788
15299
 
14789
15300
  const ProgressBar$1 = /*#__PURE__*/Object.freeze({
@@ -15159,35 +15670,35 @@ const UserName = /*#__PURE__*/Object.freeze({
15159
15670
  const WidgetCodeVerification_stories = {
15160
15671
  title: "Components/Widget Code Verification",
15161
15672
  };
15162
- const defaultProps$p = {
15673
+ const defaultProps$q = {
15163
15674
  initialiseLoading: false,
15164
15675
  email: "testemail@example.com",
15165
15676
  loading: false,
15166
15677
  verifyFailed: false,
15167
15678
  emailResent: false,
15168
15679
  };
15169
- const Default$o = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$p } }));
15680
+ const Default$o = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$q } }));
15170
15681
  const InitialLoading = () => (index.h("sqm-code-verification", { demoData: {
15171
15682
  states: {
15172
- ...defaultProps$p,
15683
+ ...defaultProps$q,
15173
15684
  initialiseLoading: true,
15174
15685
  },
15175
15686
  } }));
15176
15687
  const Loading$9 = () => (index.h("sqm-code-verification", { demoData: {
15177
15688
  states: {
15178
- ...defaultProps$p,
15689
+ ...defaultProps$q,
15179
15690
  loading: true,
15180
15691
  },
15181
15692
  } }));
15182
15693
  const CodeResent = () => (index.h("sqm-code-verification", { demoData: {
15183
15694
  states: {
15184
- ...defaultProps$p,
15695
+ ...defaultProps$q,
15185
15696
  emailResent: true,
15186
15697
  },
15187
15698
  } }));
15188
15699
  const VerificationFailed = () => (index.h("sqm-code-verification", { demoData: {
15189
15700
  states: {
15190
- ...defaultProps$p,
15701
+ ...defaultProps$q,
15191
15702
  verifyFailed: true,
15192
15703
  },
15193
15704
  } }));
@@ -15205,7 +15716,7 @@ const WidgetCodeVerification = /*#__PURE__*/Object.freeze({
15205
15716
  const WidgetEmailVerification_stories = {
15206
15717
  title: "Components/Widget Email Verification",
15207
15718
  };
15208
- const defaultProps$q = {
15719
+ const defaultProps$r = {
15209
15720
  email: "",
15210
15721
  error: false,
15211
15722
  loading: false,
@@ -15220,19 +15731,19 @@ const EmailIsPrefilled = () => (index.h("div", null,
15220
15731
  index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
15221
15732
  index.h("sqm-email-verification", { demoData: {
15222
15733
  states: {
15223
- ...defaultProps$q,
15734
+ ...defaultProps$r,
15224
15735
  email: "test@example.com",
15225
15736
  },
15226
15737
  } })));
15227
15738
  const Loading$a = () => (index.h("sqm-email-verification", { demoData: {
15228
15739
  states: {
15229
- ...defaultProps$q,
15740
+ ...defaultProps$r,
15230
15741
  initialLoading: true,
15231
15742
  },
15232
15743
  } }));
15233
15744
  const SaveLoading = () => (index.h("sqm-email-verification", { demoData: {
15234
15745
  states: {
15235
- ...defaultProps$q,
15746
+ ...defaultProps$r,
15236
15747
  loading: true,
15237
15748
  },
15238
15749
  } }));
@@ -15243,19 +15754,19 @@ const WithHeader$1 = () => (index.h("div", null,
15243
15754
  index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
15244
15755
  index.h("sqm-email-verification", { demoData: {
15245
15756
  states: {
15246
- ...defaultProps$q,
15757
+ ...defaultProps$r,
15247
15758
  email: "test@example.com",
15248
15759
  },
15249
15760
  } })));
15250
15761
  const InvalidEmail = () => (index.h("sqm-email-verification", { demoData: {
15251
15762
  states: {
15252
- ...defaultProps$q,
15763
+ ...defaultProps$r,
15253
15764
  error: true,
15254
15765
  },
15255
15766
  } }));
15256
15767
  const SendCodeError = () => (index.h("sqm-email-verification", { demoData: {
15257
15768
  states: {
15258
- ...defaultProps$q,
15769
+ ...defaultProps$r,
15259
15770
  sendCodeError: true,
15260
15771
  },
15261
15772
  } }));
@@ -17052,34 +17563,34 @@ const PayoutDetailsCard = /*#__PURE__*/Object.freeze({
17052
17563
  const PayoutStatusAlert_stories = {
17053
17564
  title: "Components/Payout Status Alert",
17054
17565
  };
17055
- const defaultProps$r = {
17566
+ const defaultProps$s = {
17056
17567
  error: false,
17057
17568
  status: "INFORMATION_REQUIRED",
17058
17569
  loading: false,
17059
17570
  veriffLoading: false,
17060
17571
  };
17061
- const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$r } }));
17062
- const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:REQUIRED" } } }));
17063
- const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:INTERNAL" } } }));
17064
- const VerifyIdentityReviewInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:REVIEW" } } }));
17065
- const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "VERIFICATION:FAILED" } } }));
17066
- const W9ThresholdReached = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "OVER_W9_THRESHOLD" } } }));
17067
- const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "HOLD" } } }));
17068
- const Loading$c = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, loading: true } } }));
17069
- const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, error: true } } }));
17070
- const NewPayeeReview = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "NEW_PAYEE_REVIEW" } } }));
17071
- const PaymentHoldOnChange = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
17572
+ const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$s } }));
17573
+ const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:REQUIRED" } } }));
17574
+ const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:INTERNAL" } } }));
17575
+ const VerifyIdentityReviewInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:REVIEW" } } }));
17576
+ const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "VERIFICATION:FAILED" } } }));
17577
+ const W9ThresholdReached = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "OVER_W9_THRESHOLD" } } }));
17578
+ const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "HOLD" } } }));
17579
+ const Loading$c = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, loading: true } } }));
17580
+ const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, error: true } } }));
17581
+ const NewPayeeReview = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "NEW_PAYEE_REVIEW" } } }));
17582
+ const PaymentHoldOnChange = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
17072
17583
  const BeneficiaryNameInvalid = () => (index.h("sqm-payout-status-alert", { demoData: {
17073
- states: { ...defaultProps$r, status: "BENEFICIARY_NAME_INVALID" },
17584
+ states: { ...defaultProps$s, status: "BENEFICIARY_NAME_INVALID" },
17074
17585
  } }));
17075
17586
  const BeneficiaryNameMismatch = () => (index.h("sqm-payout-status-alert", { demoData: {
17076
- states: { ...defaultProps$r, status: "BENEFICIARY_NAME_MISMATCH" },
17587
+ states: { ...defaultProps$s, status: "BENEFICIARY_NAME_MISMATCH" },
17077
17588
  } }));
17078
- const BankTaxNameMismatch = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "BANK_TAX_NAME_MISMATCH" } } }));
17589
+ const BankTaxNameMismatch = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "BANK_TAX_NAME_MISMATCH" } } }));
17079
17590
  const WithdrawalSettingsInvalid = () => (index.h("sqm-payout-status-alert", { demoData: {
17080
- states: { ...defaultProps$r, status: "WITHDRAWAL_SETTINGS_INVALID" },
17591
+ states: { ...defaultProps$s, status: "WITHDRAWAL_SETTINGS_INVALID" },
17081
17592
  } }));
17082
- const PaymentReturned = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "PAYMENT_RETURNED" } } }));
17593
+ const PaymentReturned = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$s, status: "PAYMENT_RETURNED" } } }));
17083
17594
 
17084
17595
  const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
17085
17596
  __proto__: null,
@@ -17234,7 +17745,7 @@ const EmailRegistration_stories = {
17234
17745
  // scenario,
17235
17746
  },
17236
17747
  };
17237
- const defaultProps$s = {
17748
+ const defaultProps$t = {
17238
17749
  states: {
17239
17750
  error: "",
17240
17751
  loading: false,
@@ -17253,59 +17764,59 @@ const defaultProps$s = {
17253
17764
  fraudErrorMessageTitle: "Looks like you tried referring yourself",
17254
17765
  },
17255
17766
  };
17256
- const Default$q = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$s));
17767
+ const Default$q = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$t));
17257
17768
  const HasFirstNameLastName = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17258
- ...defaultProps$s,
17769
+ ...defaultProps$t,
17259
17770
  content: {
17260
- ...defaultProps$s.content,
17771
+ ...defaultProps$t.content,
17261
17772
  includeName: true,
17262
17773
  },
17263
17774
  })));
17264
17775
  const WithSlots = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17265
- ...defaultProps$s,
17776
+ ...defaultProps$t,
17266
17777
  content: {
17267
- ...defaultProps$s.content,
17778
+ ...defaultProps$t.content,
17268
17779
  topSlot: index.h("div", null, "Hello this is the top slot"),
17269
17780
  bottomSlot: index.h("div", null, "Hello this is the bottom slot"),
17270
17781
  },
17271
17782
  })));
17272
17783
  const NoBorder$1 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17273
- ...defaultProps$s,
17784
+ ...defaultProps$t,
17274
17785
  content: {
17275
- ...defaultProps$s.content,
17786
+ ...defaultProps$t.content,
17276
17787
  hideBorder: true,
17277
17788
  },
17278
17789
  })));
17279
17790
  const BackgroundColor$2 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17280
- ...defaultProps$s,
17791
+ ...defaultProps$t,
17281
17792
  content: {
17282
- ...defaultProps$s.content,
17793
+ ...defaultProps$t.content,
17283
17794
  backgroundColor: "aquamarine",
17284
17795
  },
17285
17796
  })));
17286
17797
  const Loading$d = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17287
- ...defaultProps$s,
17798
+ ...defaultProps$t,
17288
17799
  states: {
17289
17800
  error: "",
17290
17801
  loading: true,
17291
17802
  },
17292
17803
  })));
17293
17804
  const Error$c = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17294
- ...defaultProps$s,
17805
+ ...defaultProps$t,
17295
17806
  states: {
17296
17807
  error: "Something went wrong. Please try again.",
17297
17808
  loading: false,
17298
17809
  },
17299
17810
  })));
17300
17811
  const FraudError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17301
- ...defaultProps$s,
17812
+ ...defaultProps$t,
17302
17813
  states: {
17303
17814
  error: "FRAUD",
17304
17815
  loading: false,
17305
17816
  },
17306
17817
  })));
17307
17818
  const EmptyEmailError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
17308
- ...defaultProps$s,
17819
+ ...defaultProps$t,
17309
17820
  states: {
17310
17821
  error: "Something went wrong. Please try again.",
17311
17822
  loading: false,
@@ -17332,7 +17843,7 @@ const EmailRegistration = /*#__PURE__*/Object.freeze({
17332
17843
  const LeadForm_stories = {
17333
17844
  title: "Components/Lead Form",
17334
17845
  };
17335
- const defaultProps$t = {
17846
+ const defaultProps$u = {
17336
17847
  states: {
17337
17848
  success: false,
17338
17849
  leadFormState: {},
@@ -17361,21 +17872,21 @@ const defaultProps$t = {
17361
17872
  },
17362
17873
  };
17363
17874
  const successProps$5 = {
17364
- ...defaultProps$t,
17875
+ ...defaultProps$u,
17365
17876
  states: {
17366
- ...defaultProps$t.states,
17877
+ ...defaultProps$u.states,
17367
17878
  success: true,
17368
17879
  error: null,
17369
17880
  },
17370
17881
  content: {
17371
- ...defaultProps$t.content,
17882
+ ...defaultProps$u.content,
17372
17883
  pageLabel: "Refer your friend",
17373
17884
  },
17374
17885
  };
17375
17886
  const errorProps$c = {
17376
- ...defaultProps$t,
17887
+ ...defaultProps$u,
17377
17888
  states: {
17378
- ...defaultProps$t.states,
17889
+ ...defaultProps$u.states,
17379
17890
  error: "Something went wrong. Please try again.",
17380
17891
  leadFormState: {
17381
17892
  validationErrors: {
@@ -17387,16 +17898,16 @@ const errorProps$c = {
17387
17898
  },
17388
17899
  };
17389
17900
  const loadingProps$9 = {
17390
- ...defaultProps$t,
17901
+ ...defaultProps$u,
17391
17902
  states: {
17392
- ...defaultProps$t.states,
17903
+ ...defaultProps$u.states,
17393
17904
  loading: true,
17394
17905
  },
17395
17906
  };
17396
17907
  const slottedProps$2 = {
17397
- ...defaultProps$t,
17908
+ ...defaultProps$u,
17398
17909
  content: {
17399
- ...defaultProps$t.content,
17910
+ ...defaultProps$u.content,
17400
17911
  formData: (index.h("div", null,
17401
17912
  index.h("sqm-lead-input-field", { "field-name": "firstName", "field-label": "First Name", "field-type": "text", "required-field-error-message": "Please enter a first name" }),
17402
17913
  index.h("sqm-lead-input-field", { "field-name": "lastName", "field-label": "Last Name", "field-type": "text", "required-field-error-message": "Please enter a last name" }),
@@ -17404,7 +17915,7 @@ const slottedProps$2 = {
17404
17915
  index.h("sqm-lead-dropdown-field", null))),
17405
17916
  },
17406
17917
  };
17407
- const Default$r = () => index.h(ShadowViewAddon.LeadFormView, Object.assign({}, defaultProps$t));
17918
+ const Default$r = () => index.h(ShadowViewAddon.LeadFormView, Object.assign({}, defaultProps$u));
17408
17919
  const LeadSubmitSuccess = () => index.h(ShadowViewAddon.LeadFormView, Object.assign({}, successProps$5));
17409
17920
  const LeadSubmitWithError = () => index.h(ShadowViewAddon.LeadFormView, Object.assign({}, errorProps$c));
17410
17921
  const LeadSubmitLoading = () => index.h(ShadowViewAddon.LeadFormView, Object.assign({}, loadingProps$9));
@@ -17435,7 +17946,7 @@ const LeadForm = /*#__PURE__*/Object.freeze({
17435
17946
  const LeadInputField_stories = {
17436
17947
  title: "Components/Lead Form Input Field",
17437
17948
  };
17438
- const defaultProps$u = {
17949
+ const defaultProps$v = {
17439
17950
  states: {
17440
17951
  leadFormState: {
17441
17952
  validationErrors: {},
@@ -17453,27 +17964,27 @@ const defaultProps$u = {
17453
17964
  fieldOptional: false,
17454
17965
  },
17455
17966
  };
17456
- const Default$s = () => index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$u));
17457
- const WithError$1 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$u, { states: {
17458
- ...defaultProps$u.states,
17967
+ const Default$s = () => index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$v));
17968
+ const WithError$1 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$v, { states: {
17969
+ ...defaultProps$v.states,
17459
17970
  leadFormState: {
17460
- ...defaultProps$u.states.leadFormState,
17971
+ ...defaultProps$v.states.leadFormState,
17461
17972
  validationErrors: {
17462
17973
  firstName: "Please enter a first name",
17463
17974
  },
17464
17975
  },
17465
17976
  } })));
17466
- const Disabled$2 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$u, { states: {
17467
- ...defaultProps$u.states,
17977
+ const Disabled$2 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$v, { states: {
17978
+ ...defaultProps$v.states,
17468
17979
  leadFormState: {
17469
- ...defaultProps$u.states.leadFormState,
17980
+ ...defaultProps$v.states.leadFormState,
17470
17981
  disabled: true,
17471
17982
  },
17472
17983
  } })));
17473
- const WithInitialValue = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$u, { states: {
17474
- ...defaultProps$u.states,
17984
+ const WithInitialValue = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$v, { states: {
17985
+ ...defaultProps$v.states,
17475
17986
  leadFormState: {
17476
- ...defaultProps$u.states.leadFormState,
17987
+ ...defaultProps$v.states.leadFormState,
17477
17988
  initialData: {
17478
17989
  firstName: "Jane",
17479
17990
  },
@@ -17492,7 +18003,7 @@ const LeadInputField = /*#__PURE__*/Object.freeze({
17492
18003
  const LeadFormDropdownField_stories = {
17493
18004
  title: "Components/Lead Form Dropdown Field",
17494
18005
  };
17495
- const defaultProps$v = {
18006
+ const defaultProps$w = {
17496
18007
  states: {
17497
18008
  leadFormState: {
17498
18009
  validationErrors: {},
@@ -17515,35 +18026,35 @@ const defaultProps$v = {
17515
18026
  ],
17516
18027
  },
17517
18028
  };
17518
- const Default$t = () => index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$v));
17519
- const Multiple = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$v, { content: { ...defaultProps$v.content, multiple: true } })));
17520
- const WithError$2 = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17521
- ...defaultProps$v.states,
18029
+ const Default$t = () => index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$w));
18030
+ const Multiple = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$w, { content: { ...defaultProps$w.content, multiple: true } })));
18031
+ const WithError$2 = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18032
+ ...defaultProps$w.states,
17522
18033
  leadFormState: {
17523
- ...defaultProps$v.states.leadFormState,
18034
+ ...defaultProps$w.states.leadFormState,
17524
18035
  validationErrors: {
17525
18036
  country: "Please select a country",
17526
18037
  },
17527
18038
  },
17528
18039
  } })));
17529
- const Disabled$3 = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17530
- ...defaultProps$v.states,
18040
+ const Disabled$3 = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18041
+ ...defaultProps$w.states,
17531
18042
  leadFormState: {
17532
- ...defaultProps$v.states.leadFormState,
18043
+ ...defaultProps$w.states.leadFormState,
17533
18044
  disabled: true,
17534
18045
  },
17535
18046
  } })));
17536
- const Loading$e = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17537
- ...defaultProps$v.states,
18047
+ const Loading$e = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18048
+ ...defaultProps$w.states,
17538
18049
  leadFormState: {
17539
- ...defaultProps$v.states.leadFormState,
18050
+ ...defaultProps$w.states.leadFormState,
17540
18051
  loading: true,
17541
18052
  },
17542
18053
  } })));
17543
- const WithInitialValue$1 = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$v, { states: {
17544
- ...defaultProps$v.states,
18054
+ const WithInitialValue$1 = () => (index.h(ShadowViewAddon.LeadDropdownFieldView, Object.assign({}, defaultProps$w, { states: {
18055
+ ...defaultProps$w.states,
17545
18056
  leadFormState: {
17546
- ...defaultProps$v.states.leadFormState,
18057
+ ...defaultProps$w.states.leadFormState,
17547
18058
  initialData: {
17548
18059
  country: "Canada",
17549
18060
  },
@@ -17564,7 +18075,7 @@ const LeadFormDropdownField = /*#__PURE__*/Object.freeze({
17564
18075
  const LeadCheckboxField_stories = {
17565
18076
  title: "Components/Lead Checkbox Field",
17566
18077
  };
17567
- const defaultProps$w = {
18078
+ const defaultProps$x = {
17568
18079
  states: {
17569
18080
  leadFormState: {
17570
18081
  validationErrors: {},
@@ -17578,28 +18089,28 @@ const defaultProps$w = {
17578
18089
  errorMessage: "{checkboxLabel} Must be checked",
17579
18090
  },
17580
18091
  };
17581
- const Default$u = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$w))));
17582
- const CustomLabel$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$w, { content: {
17583
- ...defaultProps$w.content,
18092
+ const Default$u = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$x))));
18093
+ const CustomLabel$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$x, { content: {
18094
+ ...defaultProps$x.content,
17584
18095
  checkboxLabel: "I Agree",
17585
18096
  } }))));
17586
- const Error$d = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$w, { states: {
17587
- ...defaultProps$w.states,
18097
+ const Error$d = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$x, { states: {
18098
+ ...defaultProps$x.states,
17588
18099
  leadFormState: {
17589
18100
  validationErrors: {
17590
18101
  terms: "{checkboxLabel} Must be checked",
17591
18102
  },
17592
18103
  },
17593
18104
  } }))));
17594
- const CustomError$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$w, { states: {
17595
- ...defaultProps$w.states,
18105
+ const CustomError$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$x, { states: {
18106
+ ...defaultProps$x.states,
17596
18107
  leadFormState: {
17597
18108
  validationErrors: {
17598
18109
  terms: "{checkboxLabel} Must be checked",
17599
18110
  },
17600
18111
  },
17601
18112
  }, content: {
17602
- ...defaultProps$w.content,
18113
+ ...defaultProps$x.content,
17603
18114
  errorMessage: "This checkbox must be checked to continue",
17604
18115
  } }))));
17605
18116
 
@@ -20642,6 +21153,10 @@ const stories = [
20642
21153
  LeadInputField,
20643
21154
  LeadFormDropdownField,
20644
21155
  LeadCheckboxField,
21156
+ TaxAndCashRewardsTableCell,
21157
+ TaxAndCashRewardsTable,
21158
+ TaxAndCashReferralTableRewardsCell,
21159
+ TaxAndCashReferralTable$1,
20645
21160
  ];
20646
21161
  const StencilStorybook = class {
20647
21162
  constructor(hostRef) {