@flarehr/apollo-super-selection 5.84.52699 → 5.85.53162

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 (18) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/{p-6dfc46fa.entry.js → p-03211c1e.entry.js} +4 -4
  3. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  4. package/dist/lib/apollo-super-selection/{p-4874e7a2.system.entry.js → p-ead1bc07.system.entry.js} +11 -11
  5. package/dist/lib/cjs/sss-button_32.cjs.entry.js +18 -10
  6. package/dist/lib/collection/components/super-campaign/fund-tile-clicked.handler.js +7 -3
  7. package/dist/lib/collection/components/super-campaign/promoted-fund-joined.handler.js +4 -4
  8. package/dist/lib/collection/components/super-campaign/super-campaign.js +3 -1
  9. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js +3 -1
  10. package/dist/lib/esm/sss-button_32.entry.js +18 -10
  11. package/dist/lib/esm-es5/sss-button_32.entry.js +5 -5
  12. package/dist/lib/types/components/super-campaign/fund-tile-clicked.handler.d.ts +3 -1
  13. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +10 -0
  14. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +4 -0
  15. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +2 -0
  16. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.d.ts +2 -0
  17. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +2 -0
  18. package/package.json +1 -1
@@ -285,7 +285,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
285
285
  }
286
286
  }
287
287
 
288
- const AppVersion = '5.84.52699';
288
+ const AppVersion = '5.85.53162';
289
289
 
290
290
  class Lazy {
291
291
  constructor(factory) {
@@ -2826,7 +2826,7 @@ const getSuperCampaignState = () => {
2826
2826
  return customFundChoice_api.superSelectionAppService.superCampaignState;
2827
2827
  throw new Error('Super campaign state has not been initialized');
2828
2828
  };
2829
- const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType }) => {
2829
+ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType, sourceOfJoin, isDefaultExclusive }) => {
2830
2830
  if (sender === 'super-campaign' || sender === 'featured-funds') {
2831
2831
  const promotedFundsShown = getSuperCampaignState().PromotedFundIds;
2832
2832
  const defaultFundUsiSet = customFundChoice_api.Option.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi);
@@ -2839,7 +2839,9 @@ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName,
2839
2839
  promotedFundsShown,
2840
2840
  defaultFundUsiSet,
2841
2841
  superCampaignEnabled: true,
2842
- placementId
2842
+ placementId,
2843
+ sourceOfJoin,
2844
+ isDefaultExclusive
2843
2845
  })
2844
2846
  : await customFundChoice_api.EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
2845
2847
  fundUsi: fundUsi !== null && fundUsi !== void 0 ? fundUsi : undefined,
@@ -2848,7 +2850,9 @@ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName,
2848
2850
  promotedFundsShown,
2849
2851
  defaultFundUsiSet,
2850
2852
  superCampaignEnabled: true,
2851
- placementId
2853
+ placementId,
2854
+ sourceOfJoin,
2855
+ isDefaultExclusive
2852
2856
  }),
2853
2857
  miscService.trackClickPromotedTileAsync(fundType === 'promoted-default'
2854
2858
  ? {
@@ -12627,7 +12631,7 @@ class PromotedFundJoinedEventHandler {
12627
12631
  else {
12628
12632
  await promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
12629
12633
  standardChoiceFormSignature,
12630
- defaultFundUsiSet, placementId: this.placementId }, this.PromotedFundsConfig));
12634
+ defaultFundUsiSet, placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig));
12631
12635
  }
12632
12636
  }
12633
12637
  });
@@ -12649,7 +12653,7 @@ class PromotedFundJoinedEventHandler {
12649
12653
  promotedFundId: data.fundId
12650
12654
  },
12651
12655
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: data.fundId, usi,
12652
- standardChoiceFormSignature, defaultFundUsiSet: customFundChoice_api.Option.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
12656
+ standardChoiceFormSignature, defaultFundUsiSet: customFundChoice_api.Option.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi), placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig))
12653
12657
  });
12654
12658
  };
12655
12659
  this.handlePromotedDefaultFundWithJoinWasJoined = (data) => {
@@ -12670,7 +12674,7 @@ class PromotedFundJoinedEventHandler {
12670
12674
  promotedFundId: data.fundId
12671
12675
  },
12672
12676
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
12673
- standardChoiceFormSignature, defaultFundUsiSet: customFundChoice_api.Option.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
12677
+ standardChoiceFormSignature, defaultFundUsiSet: customFundChoice_api.Option.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi), placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig))
12674
12678
  });
12675
12679
  };
12676
12680
  this.handleDefinedBenefitsJoined = async (data) => {
@@ -12678,7 +12682,7 @@ class PromotedFundJoinedEventHandler {
12678
12682
  appInsights.trackErrorTrace('Super Campaign did not return (DefinedBenefits) memberNumber and/or usi');
12679
12683
  return;
12680
12684
  }
12681
- await customFundChoice_api.customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax }, this.PromotedFundsConfig));
12685
+ await customFundChoice_api.customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig));
12682
12686
  customFundChoice_api.superSelectionAppService.markSuperSelectionAsSubmitted();
12683
12687
  };
12684
12688
  this.history = history;
@@ -12719,7 +12723,9 @@ const FeaturedFunds = class {
12719
12723
  fundId: event.detail.fundId,
12720
12724
  fundUsi: event.detail.fundUsi,
12721
12725
  fundName: event.detail.fundName,
12722
- fundType: event.detail.fundType
12726
+ fundType: event.detail.fundType,
12727
+ sourceOfJoin: event.detail.sourceOfJoin,
12728
+ isDefaultExclusive: event.detail.isDefaultExclusive
12723
12729
  });
12724
12730
  };
12725
12731
  this.fundPanelShown = async (event) => {
@@ -12844,7 +12850,9 @@ const SuperCampaignHost = class {
12844
12850
  fundId: event.detail.fundId,
12845
12851
  fundUsi: event.detail.fundUsi,
12846
12852
  fundName: event.detail.fundName,
12847
- fundType: event.detail.fundType
12853
+ fundType: event.detail.fundType,
12854
+ sourceOfJoin: event.detail.sourceOfJoin,
12855
+ isDefaultExclusive: event.detail.isDefaultExclusive
12848
12856
  });
12849
12857
  };
12850
12858
  this.fundPdsViewed = async (event) => {
@@ -7,7 +7,7 @@ const getSuperCampaignState = () => {
7
7
  return superSelectionAppService.superCampaignState;
8
8
  throw new Error('Super campaign state has not been initialized');
9
9
  };
10
- export const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType }) => {
10
+ export const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType, sourceOfJoin, isDefaultExclusive }) => {
11
11
  if (sender === 'super-campaign' || sender === 'featured-funds') {
12
12
  const promotedFundsShown = getSuperCampaignState().PromotedFundIds;
13
13
  const defaultFundUsiSet = O.toUndefined(superSelectionAppService.defaultFundUsi);
@@ -20,7 +20,9 @@ export const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fu
20
20
  promotedFundsShown,
21
21
  defaultFundUsiSet,
22
22
  superCampaignEnabled: true,
23
- placementId
23
+ placementId,
24
+ sourceOfJoin,
25
+ isDefaultExclusive
24
26
  })
25
27
  : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
26
28
  fundUsi: fundUsi !== null && fundUsi !== void 0 ? fundUsi : undefined,
@@ -29,7 +31,9 @@ export const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fu
29
31
  promotedFundsShown,
30
32
  defaultFundUsiSet,
31
33
  superCampaignEnabled: true,
32
- placementId
34
+ placementId,
35
+ sourceOfJoin,
36
+ isDefaultExclusive
33
37
  }),
34
38
  miscService.trackClickPromotedTileAsync(fundType === 'promoted-default'
35
39
  ? {
@@ -58,7 +58,7 @@ export class PromotedFundJoinedEventHandler {
58
58
  else {
59
59
  await promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
60
60
  standardChoiceFormSignature,
61
- defaultFundUsiSet, placementId: this.placementId }, this.PromotedFundsConfig));
61
+ defaultFundUsiSet, placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig));
62
62
  }
63
63
  }
64
64
  });
@@ -80,7 +80,7 @@ export class PromotedFundJoinedEventHandler {
80
80
  promotedFundId: data.fundId
81
81
  },
82
82
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: data.fundId, usi,
83
- standardChoiceFormSignature, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
83
+ standardChoiceFormSignature, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig))
84
84
  });
85
85
  };
86
86
  this.handlePromotedDefaultFundWithJoinWasJoined = (data) => {
@@ -101,7 +101,7 @@ export class PromotedFundJoinedEventHandler {
101
101
  promotedFundId: data.fundId
102
102
  },
103
103
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
104
- standardChoiceFormSignature, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
104
+ standardChoiceFormSignature, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig))
105
105
  });
106
106
  };
107
107
  this.handleDefinedBenefitsJoined = async (data) => {
@@ -109,7 +109,7 @@ export class PromotedFundJoinedEventHandler {
109
109
  appInsightsService.trackErrorTrace('Super Campaign did not return (DefinedBenefits) memberNumber and/or usi');
110
110
  return;
111
111
  }
112
- await customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax }, this.PromotedFundsConfig));
112
+ await customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig));
113
113
  superSelectionAppService.markSuperSelectionAsSubmitted();
114
114
  };
115
115
  this.history = history;
@@ -66,7 +66,9 @@ export class SuperCampaignHost {
66
66
  fundId: event.detail.fundId,
67
67
  fundUsi: event.detail.fundUsi,
68
68
  fundName: event.detail.fundName,
69
- fundType: event.detail.fundType
69
+ fundType: event.detail.fundType,
70
+ sourceOfJoin: event.detail.sourceOfJoin,
71
+ isDefaultExclusive: event.detail.isDefaultExclusive
70
72
  });
71
73
  };
72
74
  this.fundPdsViewed = async (event) => {
@@ -35,7 +35,9 @@ export class FeaturedFunds {
35
35
  fundId: event.detail.fundId,
36
36
  fundUsi: event.detail.fundUsi,
37
37
  fundName: event.detail.fundName,
38
- fundType: event.detail.fundType
38
+ fundType: event.detail.fundType,
39
+ sourceOfJoin: event.detail.sourceOfJoin,
40
+ isDefaultExclusive: event.detail.isDefaultExclusive
39
41
  });
40
42
  };
41
43
  this.fundPanelShown = async (event) => {
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
261
261
  }
262
262
  }
263
263
 
264
- const AppVersion = '5.84.52699';
264
+ const AppVersion = '5.85.53162';
265
265
 
266
266
  class Lazy {
267
267
  constructor(factory) {
@@ -2802,7 +2802,7 @@ const getSuperCampaignState = () => {
2802
2802
  return superSelectionAppService.superCampaignState;
2803
2803
  throw new Error('Super campaign state has not been initialized');
2804
2804
  };
2805
- const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType }) => {
2805
+ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType, sourceOfJoin, isDefaultExclusive }) => {
2806
2806
  if (sender === 'super-campaign' || sender === 'featured-funds') {
2807
2807
  const promotedFundsShown = getSuperCampaignState().PromotedFundIds;
2808
2808
  const defaultFundUsiSet = Option.toUndefined(superSelectionAppService.defaultFundUsi);
@@ -2815,7 +2815,9 @@ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName,
2815
2815
  promotedFundsShown,
2816
2816
  defaultFundUsiSet,
2817
2817
  superCampaignEnabled: true,
2818
- placementId
2818
+ placementId,
2819
+ sourceOfJoin,
2820
+ isDefaultExclusive
2819
2821
  })
2820
2822
  : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
2821
2823
  fundUsi: fundUsi !== null && fundUsi !== void 0 ? fundUsi : undefined,
@@ -2824,7 +2826,9 @@ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName,
2824
2826
  promotedFundsShown,
2825
2827
  defaultFundUsiSet,
2826
2828
  superCampaignEnabled: true,
2827
- placementId
2829
+ placementId,
2830
+ sourceOfJoin,
2831
+ isDefaultExclusive
2828
2832
  }),
2829
2833
  miscService.trackClickPromotedTileAsync(fundType === 'promoted-default'
2830
2834
  ? {
@@ -12603,7 +12607,7 @@ class PromotedFundJoinedEventHandler {
12603
12607
  else {
12604
12608
  await promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
12605
12609
  standardChoiceFormSignature,
12606
- defaultFundUsiSet, placementId: this.placementId }, this.PromotedFundsConfig));
12610
+ defaultFundUsiSet, placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig));
12607
12611
  }
12608
12612
  }
12609
12613
  });
@@ -12625,7 +12629,7 @@ class PromotedFundJoinedEventHandler {
12625
12629
  promotedFundId: data.fundId
12626
12630
  },
12627
12631
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: data.fundId, usi,
12628
- standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
12632
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig))
12629
12633
  });
12630
12634
  };
12631
12635
  this.handlePromotedDefaultFundWithJoinWasJoined = (data) => {
@@ -12646,7 +12650,7 @@ class PromotedFundJoinedEventHandler {
12646
12650
  promotedFundId: data.fundId
12647
12651
  },
12648
12652
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
12649
- standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
12653
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig))
12650
12654
  });
12651
12655
  };
12652
12656
  this.handleDefinedBenefitsJoined = async (data) => {
@@ -12654,7 +12658,7 @@ class PromotedFundJoinedEventHandler {
12654
12658
  appInsights.trackErrorTrace('Super Campaign did not return (DefinedBenefits) memberNumber and/or usi');
12655
12659
  return;
12656
12660
  }
12657
- await customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax }, this.PromotedFundsConfig));
12661
+ await customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax, sourceOfJoin: data.sourceOfJoin, isDefaultExclusive: data.isDefaultExclusive }, this.PromotedFundsConfig));
12658
12662
  superSelectionAppService.markSuperSelectionAsSubmitted();
12659
12663
  };
12660
12664
  this.history = history;
@@ -12695,7 +12699,9 @@ const FeaturedFunds = class {
12695
12699
  fundId: event.detail.fundId,
12696
12700
  fundUsi: event.detail.fundUsi,
12697
12701
  fundName: event.detail.fundName,
12698
- fundType: event.detail.fundType
12702
+ fundType: event.detail.fundType,
12703
+ sourceOfJoin: event.detail.sourceOfJoin,
12704
+ isDefaultExclusive: event.detail.isDefaultExclusive
12699
12705
  });
12700
12706
  };
12701
12707
  this.fundPanelShown = async (event) => {
@@ -12820,7 +12826,9 @@ const SuperCampaignHost = class {
12820
12826
  fundId: event.detail.fundId,
12821
12827
  fundUsi: event.detail.fundUsi,
12822
12828
  fundName: event.detail.fundName,
12823
- fundType: event.detail.fundType
12829
+ fundType: event.detail.fundType,
12830
+ sourceOfJoin: event.detail.sourceOfJoin,
12831
+ isDefaultExclusive: event.detail.isDefaultExclusive
12824
12832
  });
12825
12833
  };
12826
12834
  this.fundPdsViewed = async (event) => {