@flarehr/apollo-super-selection 1.3.41671 → 1.3.41733

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 (20) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-99c23afc.system.entry.js +69 -0
  3. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  4. package/dist/lib/apollo-super-selection/p-c6192b69.entry.js +14 -0
  5. package/dist/lib/cjs/sss-button_41.cjs.entry.js +91 -8
  6. package/dist/lib/collection/components/super-selection-app/funds/constants.js +3 -1
  7. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +9 -0
  8. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/unisuper-default-v2.js +49 -0
  9. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +25 -2
  10. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +5 -0
  11. package/dist/lib/esm/sss-button_41.entry.js +91 -8
  12. package/dist/lib/esm-es5/sss-button_41.entry.js +4 -4
  13. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +4 -0
  14. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +2 -1
  15. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +12 -0
  16. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/unisuper-default-v2.d.ts +3 -0
  17. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +6 -0
  18. package/package.json +1 -1
  19. package/dist/lib/apollo-super-selection/p-7aecd826.entry.js +0 -14
  20. package/dist/lib/apollo-super-selection/p-aa7b5568.system.entry.js +0 -69
@@ -284,7 +284,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
284
284
  }
285
285
  }
286
286
 
287
- const AppVersion = '1.3.41671';
287
+ const AppVersion = '1.3.41733';
288
288
 
289
289
  // -------------------------------------------------------------------------------------
290
290
  // guards
@@ -4658,10 +4658,55 @@ const fund$9 = {
4658
4658
  isPromotedDefault: true
4659
4659
  };
4660
4660
 
4661
- const name$a = 'Virgin Money Super';
4661
+ const name$a = 'Unisuper';
4662
+ const pdsUrl$2 = 'https://www.unisuper.com.au/-/media/files/pds/accumulation-1/accumulation-1-pds.pdf?rev=eb3a50fed45543ef91e2d1a38fa1fc0b&hash=B76A6A338550310C27DE1A021C854F84';
4663
+ const tmdUrl$1 = 'https://www.unisuper.com.au/-/media/files/tmd/accumulation-1/accumulation-1-tmd.pdf?rev=f4aa3f08d0494f52a7a5e02c69385ead&hash=AC77283EFBF97948DC0CF768FD3E82F8';
4662
4664
  const fund$a = {
4663
- fundId: 'virgin',
4665
+ fundId: 'unisuper-default-v2',
4664
4666
  name: name$a,
4667
+ logo: 'logo-unisuper.svg',
4668
+ route: SuperSelectionAppRoutes.PromotedFundJoinV2,
4669
+ features: [
4670
+ index.h("p", null, "Low fees, better value \u2013 Our fees are among the lowest in the industry.^"),
4671
+ index.h("p", null, "Strong, long-term performance \u2013 We regularly exceed industry averages.*"),
4672
+ index.h("p", null,
4673
+ "Award winning super \u2013 Continually recognised as one of Australia\u2019s best-performing funds.",
4674
+ index.h("sup", { class: "text-tiny" }, "#"))
4675
+ ],
4676
+ disclaimer: (index.h("div", { class: "space-y-2" },
4677
+ index.h("p", null,
4678
+ "^Read more about our fees and how we compare",
4679
+ ' ',
4680
+ index.h(Link, { href: "https://www.unisuper.com.au/super/products-and-fees" }, "here"),
4681
+ "."),
4682
+ index.h("p", null,
4683
+ "*Past performance is not an indicator of future performance. Read more about our performance and how we compare",
4684
+ ' ',
4685
+ index.h(Link, { href: "https://www.unisuper.com.au/campaigns/greater-super" }, "here"),
4686
+ "."),
4687
+ index.h("p", null,
4688
+ index.h("sup", { class: "text-tiny" }, "#"),
4689
+ "See our awards",
4690
+ ' ',
4691
+ index.h(Link, { href: "https://www.unisuper.com.au/about-us/who-we-are/awards-and-ratings" }, "here"),
4692
+ "."),
4693
+ index.h("p", null,
4694
+ "Remember to consider the",
4695
+ ' ',
4696
+ index.h(Link, { href: pdsUrl$2, onClick: () => pdsViewedAsync(name$a) }, "Product Disclosure Statement"),
4697
+ ' ',
4698
+ "and ",
4699
+ index.h(Link, { href: tmdUrl$1 }, "Target Market Determination"),
4700
+ " that is relevant to you."),
4701
+ index.h("p", null, "Issued by UniSuper Management Pty Ltd. ABN: 91 385 943 850"))),
4702
+ footnoteTextOverride: Option.none,
4703
+ isPromotedDefault: true
4704
+ };
4705
+
4706
+ const name$b = 'Virgin Money Super';
4707
+ const fund$b = {
4708
+ fundId: 'virgin',
4709
+ name: name$b,
4665
4710
  logo: 'logo-virgin.svg',
4666
4711
  route: SuperSelectionAppRoutes.PromotedFundJoinV2,
4667
4712
  features: [
@@ -4683,7 +4728,7 @@ const fund$a = {
4683
4728
  disclaimer: (index.h("p", null,
4684
4729
  "Prepared by Virgin Money Financial Services Pty Ltd ABN 51 113 285 395 AFSL 286869 (\u2018Virgin Money\u2019). Virgin Money Super is a plan in the Mercer Super Trust ABN 19 905 422 981. Virgin Money Super is issued by Mercer Superannuation (Australia) Limited (MSAL) ABN 79 004 717 533 AFSL 235906 as trustee of the Mercer Super Trust. Consider the PDS and TMD at",
4685
4730
  ' ',
4686
- index.h(Link, { href: "https://virginmoney.com.au/superannuation/", onClick: () => pdsViewedAsync(name$a) }, "www.virginmoney.com.au"),
4731
+ index.h(Link, { href: "https://virginmoney.com.au/superannuation/", onClick: () => pdsViewedAsync(name$b) }, "www.virginmoney.com.au"),
4687
4732
  ' ',
4688
4733
  "before making a decision")),
4689
4734
  footnoteTextOverride: Option.some(PoweredByFlareFS),
@@ -4696,12 +4741,13 @@ const fundsById = {
4696
4741
  [fund$3.fundId]: fund$3,
4697
4742
  [fund.fundId]: fund,
4698
4743
  [fund$1.fundId]: fund$1,
4699
- [fund$a.fundId]: fund$a,
4744
+ [fund$b.fundId]: fund$b,
4700
4745
  [fund$8.fundId]: fund$8,
4701
4746
  [fund$4.fundId]: fund$4,
4702
4747
  [fund$6.fundId]: fund$6,
4703
4748
  [fund$5.fundId]: fund$5,
4704
- [fund$9.fundId]: fund$9
4749
+ [fund$9.fundId]: fund$9,
4750
+ [fund$a.fundId]: fund$a
4705
4751
  };
4706
4752
  const allPromotedFunds = Object.values(fundsById);
4707
4753
  const getFundByDtoPropName = (dtoPropName) => {
@@ -6212,6 +6258,15 @@ class PromotedFundChoiceApi {
6212
6258
  })
6213
6259
  .text();
6214
6260
  }
6261
+ async submitDefaultChoiceWithJoinAsync(dto) {
6262
+ return buildBackendApiClient()
6263
+ .url('super-choice/promoted-fund/default-with-join')
6264
+ .post(dto)
6265
+ .badRequest(() => {
6266
+ throw new Error('Failed to process Promoted Default With Join Fund choice request');
6267
+ })
6268
+ .text();
6269
+ }
6215
6270
  }
6216
6271
  const promotedFundChoiceApi = new PromotedFundChoiceApi();
6217
6272
 
@@ -16145,8 +16200,31 @@ class PromotedFundJoinV2IFrameBuilder {
16145
16200
  });
16146
16201
  break;
16147
16202
  }
16148
- case 'success-promoted-default-with-join':
16149
- throw 'TO BE IMPLEMENTED';
16203
+ case 'success-promoted-default-with-join': {
16204
+ if (this.stringIsNullOrEmtpty(data.memberNumber) ||
16205
+ this.stringIsNullOrEmtpty(data.usi)) {
16206
+ appInsights.trackErrorTrace('PFJ C# did not return (PromotedDefaultWithJoin) memberNumber and/or usi');
16207
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
16208
+ break;
16209
+ }
16210
+ const usi = this.cleanUsi(data.usi);
16211
+ const fundName = this.getFundName(data.fundId);
16212
+ navigationService.navigateInternallyToStandardChoice({
16213
+ history,
16214
+ fundName,
16215
+ promotedFundId: data.fundId,
16216
+ fundDetails: {
16217
+ type: 'promotedDefaultWithJoin',
16218
+ fundName,
16219
+ fundUsi: usi,
16220
+ memberNumber: data.memberNumber,
16221
+ promotedFundId: data.fundId
16222
+ },
16223
+ handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
16224
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
16225
+ });
16226
+ break;
16227
+ }
16150
16228
  case 'success-defined-benefits':
16151
16229
  if (this.stringIsNullOrEmtpty(data.memberNumber) ||
16152
16230
  this.stringIsNullOrEmtpty(data.usi)) {
@@ -16673,6 +16751,11 @@ const StandardChoiceFormInputDefaultFund = class {
16673
16751
  PromotedDefaultFund: Object.assign(Object.assign({}, state$1.fundDetails), common)
16674
16752
  });
16675
16753
  break;
16754
+ case 'promotedDefaultWithJoin':
16755
+ await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
16756
+ PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, state$1.fundDetails), common)
16757
+ });
16758
+ break;
16676
16759
  case 'null':
16677
16760
  throw 'standardChoiceFormState.fundDetails was not set';
16678
16761
  }
@@ -10,6 +10,7 @@ import mercerMyChoice from './promoted-fund/funds/mercermychoice';
10
10
  import slate, { slateUsi } from './promoted-fund/funds/slate';
11
11
  import spirit from './promoted-fund/funds/spirit';
12
12
  import unisuperDefault from './promoted-fund/funds/unisuper-default';
13
+ import unisuperDefaultV2 from './promoted-fund/funds/unisuper-default-v2';
13
14
  import virgin from './promoted-fund/funds/virgin';
14
15
  const fundsById = {
15
16
  [slate.fundId]: slate,
@@ -22,7 +23,8 @@ const fundsById = {
22
23
  [first.fundId]: first,
23
24
  [mercerMyChoice.fundId]: mercerMyChoice,
24
25
  [hestaDefault.fundId]: hestaDefault,
25
- [unisuperDefault.fundId]: unisuperDefault
26
+ [unisuperDefault.fundId]: unisuperDefault,
27
+ [unisuperDefaultV2.fundId]: unisuperDefaultV2
26
28
  };
27
29
  export const allPromotedFunds = Object.values(fundsById);
28
30
  export const getFundByDtoPropName = (dtoPropName) => {
@@ -18,5 +18,14 @@ export class PromotedFundChoiceApi {
18
18
  })
19
19
  .text();
20
20
  }
21
+ async submitDefaultChoiceWithJoinAsync(dto) {
22
+ return buildBackendApiClient()
23
+ .url('super-choice/promoted-fund/default-with-join')
24
+ .post(dto)
25
+ .badRequest(() => {
26
+ throw new Error('Failed to process Promoted Default With Join Fund choice request');
27
+ })
28
+ .text();
29
+ }
21
30
  }
22
31
  export default new PromotedFundChoiceApi();
@@ -0,0 +1,49 @@
1
+ import { h } from '@stencil/core';
2
+ import { none } from 'fp-ts/lib/Option';
3
+ import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
4
+ import { Link, pdsViewedAsync } from '../types';
5
+ const name = 'Unisuper';
6
+ const pdsUrl = 'https://www.unisuper.com.au/-/media/files/pds/accumulation-1/accumulation-1-pds.pdf?rev=eb3a50fed45543ef91e2d1a38fa1fc0b&hash=B76A6A338550310C27DE1A021C854F84';
7
+ const tmdUrl = 'https://www.unisuper.com.au/-/media/files/tmd/accumulation-1/accumulation-1-tmd.pdf?rev=f4aa3f08d0494f52a7a5e02c69385ead&hash=AC77283EFBF97948DC0CF768FD3E82F8';
8
+ const fund = {
9
+ fundId: 'unisuper-default-v2',
10
+ name,
11
+ logo: 'logo-unisuper.svg',
12
+ route: SuperSelectionAppRoutes.PromotedFundJoinV2,
13
+ features: [
14
+ h("p", null, "Low fees, better value \u2013 Our fees are among the lowest in the industry.^"),
15
+ h("p", null, "Strong, long-term performance \u2013 We regularly exceed industry averages.*"),
16
+ h("p", null,
17
+ "Award winning super \u2013 Continually recognised as one of Australia\u2019s best-performing funds.",
18
+ h("sup", { class: "text-tiny" }, "#"))
19
+ ],
20
+ disclaimer: (h("div", { class: "space-y-2" },
21
+ h("p", null,
22
+ "^Read more about our fees and how we compare",
23
+ ' ',
24
+ h(Link, { href: "https://www.unisuper.com.au/super/products-and-fees" }, "here"),
25
+ "."),
26
+ h("p", null,
27
+ "*Past performance is not an indicator of future performance. Read more about our performance and how we compare",
28
+ ' ',
29
+ h(Link, { href: "https://www.unisuper.com.au/campaigns/greater-super" }, "here"),
30
+ "."),
31
+ h("p", null,
32
+ h("sup", { class: "text-tiny" }, "#"),
33
+ "See our awards",
34
+ ' ',
35
+ h(Link, { href: "https://www.unisuper.com.au/about-us/who-we-are/awards-and-ratings" }, "here"),
36
+ "."),
37
+ h("p", null,
38
+ "Remember to consider the",
39
+ ' ',
40
+ h(Link, { href: pdsUrl, onClick: () => pdsViewedAsync(name) }, "Product Disclosure Statement"),
41
+ ' ',
42
+ "and ",
43
+ h(Link, { href: tmdUrl }, "Target Market Determination"),
44
+ " that is relevant to you."),
45
+ h("p", null, "Issued by UniSuper Management Pty Ltd. ABN: 91 385 943 850"))),
46
+ footnoteTextOverride: none,
47
+ isPromotedDefault: true
48
+ };
49
+ export default fund;
@@ -162,8 +162,31 @@ class PromotedFundJoinV2IFrameBuilder {
162
162
  });
163
163
  break;
164
164
  }
165
- case 'success-promoted-default-with-join':
166
- throw 'TO BE IMPLEMENTED';
165
+ case 'success-promoted-default-with-join': {
166
+ if (this.stringIsNullOrEmtpty(data.memberNumber) ||
167
+ this.stringIsNullOrEmtpty(data.usi)) {
168
+ appInsightsService.trackErrorTrace('PFJ C# did not return (PromotedDefaultWithJoin) memberNumber and/or usi');
169
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
170
+ break;
171
+ }
172
+ const usi = this.cleanUsi(data.usi);
173
+ const fundName = this.getFundName(data.fundId);
174
+ navigationService.navigateInternallyToStandardChoice({
175
+ history,
176
+ fundName,
177
+ promotedFundId: data.fundId,
178
+ fundDetails: {
179
+ type: 'promotedDefaultWithJoin',
180
+ fundName,
181
+ fundUsi: usi,
182
+ memberNumber: data.memberNumber,
183
+ promotedFundId: data.fundId
184
+ },
185
+ handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
186
+ standardChoiceFormSignature, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
187
+ });
188
+ break;
189
+ }
167
190
  case 'success-defined-benefits':
168
191
  if (this.stringIsNullOrEmtpty(data.memberNumber) ||
169
192
  this.stringIsNullOrEmtpty(data.usi)) {
@@ -103,6 +103,11 @@ export class StandardChoiceFormInputDefaultFund {
103
103
  PromotedDefaultFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
104
104
  });
105
105
  break;
106
+ case 'promotedDefaultWithJoin':
107
+ await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
108
+ PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
109
+ });
110
+ break;
106
111
  case 'null':
107
112
  throw 'standardChoiceFormState.fundDetails was not set';
108
113
  default:
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
260
260
  }
261
261
  }
262
262
 
263
- const AppVersion = '1.3.41671';
263
+ const AppVersion = '1.3.41733';
264
264
 
265
265
  // -------------------------------------------------------------------------------------
266
266
  // guards
@@ -4634,10 +4634,55 @@ const fund$9 = {
4634
4634
  isPromotedDefault: true
4635
4635
  };
4636
4636
 
4637
- const name$a = 'Virgin Money Super';
4637
+ const name$a = 'Unisuper';
4638
+ const pdsUrl$2 = 'https://www.unisuper.com.au/-/media/files/pds/accumulation-1/accumulation-1-pds.pdf?rev=eb3a50fed45543ef91e2d1a38fa1fc0b&hash=B76A6A338550310C27DE1A021C854F84';
4639
+ const tmdUrl$1 = 'https://www.unisuper.com.au/-/media/files/tmd/accumulation-1/accumulation-1-tmd.pdf?rev=f4aa3f08d0494f52a7a5e02c69385ead&hash=AC77283EFBF97948DC0CF768FD3E82F8';
4638
4640
  const fund$a = {
4639
- fundId: 'virgin',
4641
+ fundId: 'unisuper-default-v2',
4640
4642
  name: name$a,
4643
+ logo: 'logo-unisuper.svg',
4644
+ route: SuperSelectionAppRoutes.PromotedFundJoinV2,
4645
+ features: [
4646
+ h("p", null, "Low fees, better value \u2013 Our fees are among the lowest in the industry.^"),
4647
+ h("p", null, "Strong, long-term performance \u2013 We regularly exceed industry averages.*"),
4648
+ h("p", null,
4649
+ "Award winning super \u2013 Continually recognised as one of Australia\u2019s best-performing funds.",
4650
+ h("sup", { class: "text-tiny" }, "#"))
4651
+ ],
4652
+ disclaimer: (h("div", { class: "space-y-2" },
4653
+ h("p", null,
4654
+ "^Read more about our fees and how we compare",
4655
+ ' ',
4656
+ h(Link, { href: "https://www.unisuper.com.au/super/products-and-fees" }, "here"),
4657
+ "."),
4658
+ h("p", null,
4659
+ "*Past performance is not an indicator of future performance. Read more about our performance and how we compare",
4660
+ ' ',
4661
+ h(Link, { href: "https://www.unisuper.com.au/campaigns/greater-super" }, "here"),
4662
+ "."),
4663
+ h("p", null,
4664
+ h("sup", { class: "text-tiny" }, "#"),
4665
+ "See our awards",
4666
+ ' ',
4667
+ h(Link, { href: "https://www.unisuper.com.au/about-us/who-we-are/awards-and-ratings" }, "here"),
4668
+ "."),
4669
+ h("p", null,
4670
+ "Remember to consider the",
4671
+ ' ',
4672
+ h(Link, { href: pdsUrl$2, onClick: () => pdsViewedAsync(name$a) }, "Product Disclosure Statement"),
4673
+ ' ',
4674
+ "and ",
4675
+ h(Link, { href: tmdUrl$1 }, "Target Market Determination"),
4676
+ " that is relevant to you."),
4677
+ h("p", null, "Issued by UniSuper Management Pty Ltd. ABN: 91 385 943 850"))),
4678
+ footnoteTextOverride: Option.none,
4679
+ isPromotedDefault: true
4680
+ };
4681
+
4682
+ const name$b = 'Virgin Money Super';
4683
+ const fund$b = {
4684
+ fundId: 'virgin',
4685
+ name: name$b,
4641
4686
  logo: 'logo-virgin.svg',
4642
4687
  route: SuperSelectionAppRoutes.PromotedFundJoinV2,
4643
4688
  features: [
@@ -4659,7 +4704,7 @@ const fund$a = {
4659
4704
  disclaimer: (h("p", null,
4660
4705
  "Prepared by Virgin Money Financial Services Pty Ltd ABN 51 113 285 395 AFSL 286869 (\u2018Virgin Money\u2019). Virgin Money Super is a plan in the Mercer Super Trust ABN 19 905 422 981. Virgin Money Super is issued by Mercer Superannuation (Australia) Limited (MSAL) ABN 79 004 717 533 AFSL 235906 as trustee of the Mercer Super Trust. Consider the PDS and TMD at",
4661
4706
  ' ',
4662
- h(Link, { href: "https://virginmoney.com.au/superannuation/", onClick: () => pdsViewedAsync(name$a) }, "www.virginmoney.com.au"),
4707
+ h(Link, { href: "https://virginmoney.com.au/superannuation/", onClick: () => pdsViewedAsync(name$b) }, "www.virginmoney.com.au"),
4663
4708
  ' ',
4664
4709
  "before making a decision")),
4665
4710
  footnoteTextOverride: Option.some(PoweredByFlareFS),
@@ -4672,12 +4717,13 @@ const fundsById = {
4672
4717
  [fund$3.fundId]: fund$3,
4673
4718
  [fund.fundId]: fund,
4674
4719
  [fund$1.fundId]: fund$1,
4675
- [fund$a.fundId]: fund$a,
4720
+ [fund$b.fundId]: fund$b,
4676
4721
  [fund$8.fundId]: fund$8,
4677
4722
  [fund$4.fundId]: fund$4,
4678
4723
  [fund$6.fundId]: fund$6,
4679
4724
  [fund$5.fundId]: fund$5,
4680
- [fund$9.fundId]: fund$9
4725
+ [fund$9.fundId]: fund$9,
4726
+ [fund$a.fundId]: fund$a
4681
4727
  };
4682
4728
  const allPromotedFunds = Object.values(fundsById);
4683
4729
  const getFundByDtoPropName = (dtoPropName) => {
@@ -6188,6 +6234,15 @@ class PromotedFundChoiceApi {
6188
6234
  })
6189
6235
  .text();
6190
6236
  }
6237
+ async submitDefaultChoiceWithJoinAsync(dto) {
6238
+ return buildBackendApiClient()
6239
+ .url('super-choice/promoted-fund/default-with-join')
6240
+ .post(dto)
6241
+ .badRequest(() => {
6242
+ throw new Error('Failed to process Promoted Default With Join Fund choice request');
6243
+ })
6244
+ .text();
6245
+ }
6191
6246
  }
6192
6247
  const promotedFundChoiceApi = new PromotedFundChoiceApi();
6193
6248
 
@@ -16121,8 +16176,31 @@ class PromotedFundJoinV2IFrameBuilder {
16121
16176
  });
16122
16177
  break;
16123
16178
  }
16124
- case 'success-promoted-default-with-join':
16125
- throw 'TO BE IMPLEMENTED';
16179
+ case 'success-promoted-default-with-join': {
16180
+ if (this.stringIsNullOrEmtpty(data.memberNumber) ||
16181
+ this.stringIsNullOrEmtpty(data.usi)) {
16182
+ appInsights.trackErrorTrace('PFJ C# did not return (PromotedDefaultWithJoin) memberNumber and/or usi');
16183
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
16184
+ break;
16185
+ }
16186
+ const usi = this.cleanUsi(data.usi);
16187
+ const fundName = this.getFundName(data.fundId);
16188
+ navigationService.navigateInternallyToStandardChoice({
16189
+ history,
16190
+ fundName,
16191
+ promotedFundId: data.fundId,
16192
+ fundDetails: {
16193
+ type: 'promotedDefaultWithJoin',
16194
+ fundName,
16195
+ fundUsi: usi,
16196
+ memberNumber: data.memberNumber,
16197
+ promotedFundId: data.fundId
16198
+ },
16199
+ handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
16200
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
16201
+ });
16202
+ break;
16203
+ }
16126
16204
  case 'success-defined-benefits':
16127
16205
  if (this.stringIsNullOrEmtpty(data.memberNumber) ||
16128
16206
  this.stringIsNullOrEmtpty(data.usi)) {
@@ -16649,6 +16727,11 @@ const StandardChoiceFormInputDefaultFund = class {
16649
16727
  PromotedDefaultFund: Object.assign(Object.assign({}, state$1.fundDetails), common)
16650
16728
  });
16651
16729
  break;
16730
+ case 'promotedDefaultWithJoin':
16731
+ await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
16732
+ PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, state$1.fundDetails), common)
16733
+ });
16734
+ break;
16652
16735
  case 'null':
16653
16736
  throw 'standardChoiceFormState.fundDetails was not set';
16654
16737
  }