@flarehr/apollo-super-selection 3.34.55209 → 3.37.55611

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 (23) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/{p-d49edf54.entry.js → p-3c47d71b.entry.js} +1 -1
  3. package/dist/lib/apollo-super-selection/{p-5983f429.system.entry.js → p-7e591639.system.entry.js} +6 -6
  4. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
  5. package/dist/lib/cjs/fl-button_46.cjs.entry.js +47 -23
  6. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +2 -1
  7. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +3 -1
  8. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +3 -1
  9. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +1 -1
  10. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +5 -0
  11. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +2 -1
  12. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +2 -1
  13. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +1 -1
  14. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +8 -4
  15. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +15 -6
  16. package/dist/lib/esm/fl-button_46.entry.js +47 -23
  17. package/dist/lib/esm-es5/fl-button_46.entry.js +9 -9
  18. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +15 -10
  19. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +1 -0
  20. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +1 -0
  21. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +1 -0
  22. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -2
  23. package/package.json +1 -1
@@ -1 +1 @@
1
- System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-381262c1.system.js"],(function(s,e){"use strict";var t,o,n;return{setters:[function(s){t=s.p;o=s.b},function(){},function(){},function(s){n=s.g}],execute:function(){var s=function(){var s=e.meta.url;var o={};if(s!==""){o.resourcesUrl=new URL(".",s).href}return t(o)};s().then((function(s){n();return o([["p-64ebe17d.system",[[1,"fl-style-guide",{themeCssUrl:[1,"theme-css-url"]}]]],["p-cd49a6b7.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-8cbfc343.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-642db1f7.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-285da037.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-f15bf700.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-5983f429.system",[[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32]}],[0,"sss-qsuper-question-1"],[0,"sss-qsuper-question-2"],[0,"sss-qsuper-question-3"],[0,"sss-qsuper-question-4"],[0,"sss-qsuper-question-5"],[0,"sss-qsuper-question-6"],[0,"sss-qsuper-question-7"],[0,"sss-qsuper-question-8"],[0,"sss-self-managed-fund",{history:[16],formState:[32],showSmsfNotSupported:[32]}],[0,"sss-default-fund",{history:[16],formState:[32],defaultFundProductName:[32]}],[0,"sss-qsuper-insurance-opt-in",{insuranceChosen:[32]}],[0,"sss-qsuper-join"],[0,"sss-slate-standard-choice-page",{history:[16],formState:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],areStylesLoaded:[32]}],[0,"sss-qsuper-consent"],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],chosenFund:[32]}],[0,"sss-promoted-fund-standard-choice-page",{history:[16],formState:[32]}],[0,"sss-success"],[0,"sss-promoted-fund-join-page",{history:[16]}],[0,"sss-slate-join-page",{history:[16]}],[0,"super-selection-app",{accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],selectedOption:[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{fundForm:[16],currentBank:[32]}],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item",{isSelected:[4,"is-selected"],usi:[1],name:[1],subText:[1,"sub-text"],logo:[1],pdsLink:[1,"pds-link"],features:[1],disclaimer:[16],abnInfo:[1,"abn-info"],history:[16]}],[0,"fl-dropdown",{placeholder:[1],options:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-selected-super-choice-section",{fundType:[1,"fund-type"],fundName:[1,"fund-name"]}],[0,"sss-slatesuper-header"],[0,"sss-footer-section"],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32]}],[0,"fl-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-standard-choice-form",{standardChoiceFormSignature:[32]}],[4,"sss-qsuper-insurance-questions"],[0,"sss-qsuper-question-yes-no-buttons",{history:[16]}],[0,"sss-qsuper-confirm-header"],[4,"sss-qsuper-layout",{history:[16]}],[0,"sss-notifications-section"],[4,"fl-promise-button",{isBlockElement:[4,"is-block-element"],isRounded:[4,"is-rounded"],disabled:[4],variant:[1],promiseFn:[16],state:[32]}],[4,"fl-button",{isBlockElement:[4,"is-block-element"],disabled:[4],variant:[1]}],[0,"fl-loading-indicator",{theme:[1]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],s)}))}}}));
1
+ System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-381262c1.system.js"],(function(s,e){"use strict";var t,o,n;return{setters:[function(s){t=s.p;o=s.b},function(){},function(){},function(s){n=s.g}],execute:function(){var s=function(){var s=e.meta.url;var o={};if(s!==""){o.resourcesUrl=new URL(".",s).href}return t(o)};s().then((function(s){n();return o([["p-64ebe17d.system",[[1,"fl-style-guide",{themeCssUrl:[1,"theme-css-url"]}]]],["p-cd49a6b7.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-8cbfc343.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-642db1f7.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-285da037.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-f15bf700.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-7e591639.system",[[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32]}],[0,"sss-qsuper-question-1"],[0,"sss-qsuper-question-2"],[0,"sss-qsuper-question-3"],[0,"sss-qsuper-question-4"],[0,"sss-qsuper-question-5"],[0,"sss-qsuper-question-6"],[0,"sss-qsuper-question-7"],[0,"sss-qsuper-question-8"],[0,"sss-self-managed-fund",{history:[16],formState:[32],showSmsfNotSupported:[32]}],[0,"sss-default-fund",{history:[16],formState:[32],defaultFundProductName:[32]}],[0,"sss-qsuper-insurance-opt-in",{insuranceChosen:[32]}],[0,"sss-qsuper-join"],[0,"sss-slate-standard-choice-page",{history:[16],formState:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],areStylesLoaded:[32]}],[0,"sss-qsuper-consent"],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],chosenFund:[32]}],[0,"sss-promoted-fund-standard-choice-page",{history:[16],formState:[32]}],[0,"sss-success"],[0,"sss-promoted-fund-join-page",{history:[16]}],[0,"sss-slate-join-page",{history:[16]}],[0,"super-selection-app",{accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],selectedOption:[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{fundForm:[16],currentBank:[32]}],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item",{isSelected:[4,"is-selected"],usi:[1],name:[1],subText:[1,"sub-text"],logo:[1],pdsLink:[1,"pds-link"],features:[1],disclaimer:[16],abnInfo:[1,"abn-info"],history:[16]}],[0,"fl-dropdown",{placeholder:[1],options:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-selected-super-choice-section",{fundType:[1,"fund-type"],fundName:[1,"fund-name"]}],[0,"sss-slatesuper-header"],[0,"sss-footer-section"],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32]}],[0,"fl-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-standard-choice-form",{standardChoiceFormSignature:[32]}],[4,"sss-qsuper-insurance-questions"],[0,"sss-qsuper-question-yes-no-buttons",{history:[16]}],[0,"sss-qsuper-confirm-header"],[4,"sss-qsuper-layout",{history:[16]}],[0,"sss-notifications-section"],[4,"fl-promise-button",{isBlockElement:[4,"is-block-element"],isRounded:[4,"is-rounded"],disabled:[4],variant:[1],promiseFn:[16],state:[32]}],[4,"fl-button",{isBlockElement:[4,"is-block-element"],disabled:[4],variant:[1]}],[0,"fl-loading-indicator",{theme:[1]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],s)}))}}}));
@@ -265,7 +265,7 @@ class TapSubscriber extends delay.Subscriber {
265
265
  }
266
266
  }
267
267
 
268
- const AppVersion = '3.34.55209';
268
+ const AppVersion = '3.37.55611';
269
269
 
270
270
  // -------------------------------------------------------------------------------------
271
271
  // guards
@@ -4078,14 +4078,18 @@ class EventTrackingService {
4078
4078
  }
4079
4079
  });
4080
4080
  }
4081
- async TrackMyOwnSuperFundDetailViewedAsync() {
4081
+ async TrackMyOwnSuperFundDetailViewedAsync(detail) {
4082
4082
  return this.trackEventAsync({
4083
- SuperFundDetailViewed: 'MyOwnFund'
4083
+ SuperFundDetailViewed: {
4084
+ MyOwnFund: detail
4085
+ }
4084
4086
  });
4085
4087
  }
4086
- async TrackSmsfSuperFundDetailViewedAsync() {
4088
+ async TrackSmsfSuperFundDetailViewedAsync(detail) {
4087
4089
  return this.trackEventAsync({
4088
- SuperFundDetailViewed: 'Smsf'
4090
+ SuperFundDetailViewed: {
4091
+ Smsf: detail
4092
+ }
4089
4093
  });
4090
4094
  }
4091
4095
  async TrackDefaultSuperFundDetailViewedAsync(detail) {
@@ -4208,7 +4212,8 @@ const DefaultFund = class {
4208
4212
  componentDidLoad() {
4209
4213
  return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
4210
4214
  fundUsi: this.defaultFund.usi,
4211
- fundName: this.defaultFund.productName
4215
+ fundName: this.defaultFund.productName,
4216
+ promotedFundsShown: superSelectionAppService.promotedFunds
4212
4217
  });
4213
4218
  }
4214
4219
  render() {
@@ -4267,7 +4272,9 @@ const MyOwnFund = class {
4267
4272
  this.eventTrackingService = EventTrackingService.Instance;
4268
4273
  }
4269
4274
  componentDidLoad() {
4270
- return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync();
4275
+ return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
4276
+ promotedFundsShown: superSelectionAppService.promotedFunds
4277
+ });
4271
4278
  }
4272
4279
  render() {
4273
4280
  return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("sss-custom-fund", { class: "flex-fill" }, index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
@@ -4380,8 +4387,8 @@ class PromotedFundJoinIFrameBuilder {
4380
4387
  return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
4381
4388
  };
4382
4389
  }
4383
- build(iframe, history) {
4384
- if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
4390
+ build(iframe$1, history) {
4391
+ if (!(iframe$1 === null || iframe$1 === void 0 ? void 0 : iframe$1.contentDocument))
4385
4392
  return;
4386
4393
  const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
4387
4394
  ? `${window.location.origin}/super-selection/embed/v1.0/app`
@@ -4413,14 +4420,18 @@ class PromotedFundJoinIFrameBuilder {
4413
4420
  if (data.sender === 'promoted-fund-join') {
4414
4421
  switch (data.type) {
4415
4422
  case 'contentResized':
4416
- iframe.height = data.height > 0 ? data.height : iframe.height;
4417
- iframe.width = data.width > 0 ? data.width : iframe.width;
4423
+ iframe$1.height = data.height > 0 ? data.height : iframe$1.height;
4424
+ iframe$1.width = data.width > 0 ? data.width : iframe$1.width;
4425
+ break;
4426
+ case 'pageNavigated':
4427
+ window.scroll(iframe$1.offsetLeft, iframe$1.offsetTop);
4428
+ iframe.navigation(window.location.href);
4418
4429
  break;
4419
4430
  }
4420
4431
  }
4421
4432
  };
4422
4433
  window.addEventListener('message', handleMessage);
4423
- const iframeDoc = iframe.contentDocument;
4434
+ const iframeDoc = iframe$1.contentDocument;
4424
4435
  iframeDoc.open();
4425
4436
  const form = iframeDoc.createElement('form');
4426
4437
  form.method = 'POST';
@@ -4504,7 +4515,7 @@ const PromotedFundStandardChoicePage = class {
4504
4515
  async handleSubmitForm() {
4505
4516
  this.formState = 'validated';
4506
4517
  if (this.formElement.checkValidity()) {
4507
- promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
4518
+ promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$1), { shownFunds: superSelectionAppService.promotedFunds }));
4508
4519
  superSelectionAppService.markSuperSelectionAsSubmitted();
4509
4520
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
4510
4521
  }
@@ -4928,7 +4939,8 @@ async function handleConfirmClickAsync() {
4928
4939
  state$2.qSuperQuestionnaire.acceptedDeclaration = true;
4929
4940
  const qSuperJoinRequest = {
4930
4941
  questionnaire: state$2.qSuperQuestionnaire,
4931
- standardChoiceFormSignature: state$2.standardChoiceFormSignature
4942
+ standardChoiceFormSignature: state$2.standardChoiceFormSignature,
4943
+ shownFunds: superSelectionAppService.promotedFunds
4932
4944
  };
4933
4945
  await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
4934
4946
  superSelectionAppService.markSuperSelectionAsSubmitted();
@@ -5113,7 +5125,9 @@ const SelfManagedFund = class {
5113
5125
  };
5114
5126
  }
5115
5127
  componentDidLoad() {
5116
- return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync();
5128
+ return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
5129
+ promotedFundsShown: superSelectionAppService.promotedFunds
5130
+ });
5117
5131
  }
5118
5132
  render() {
5119
5133
  return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("sss-custom-fund", { class: "flex-fill" }, index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
@@ -5382,7 +5396,8 @@ const interopQuery = new InteropQuery(sessionStore);
5382
5396
  const initialSlateSuper = {
5383
5397
  slateFundForm: {
5384
5398
  memberNumber: '',
5385
- standardChoiceFormSignature: ''
5399
+ standardChoiceFormSignature: '',
5400
+ shownFunds: []
5386
5401
  }
5387
5402
  };
5388
5403
  const { state: state$3 } = createStore(initialSlateSuper);
@@ -5548,7 +5563,7 @@ const SlateStandardChoicePage = class {
5548
5563
  async handleSubmitForm() {
5549
5564
  this.formState = 'validated';
5550
5565
  if (this.formElement.checkValidity()) {
5551
- await slateChoiceApi.submitSlateChoiceAsync(state$3.slateFundForm);
5566
+ await slateChoiceApi.submitSlateChoiceAsync(Object.assign(Object.assign({}, state$3.slateFundForm), { shownFunds: superSelectionAppService.promotedFunds }));
5552
5567
  superSelectionAppService.markSuperSelectionAsSubmitted();
5553
5568
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
5554
5569
  }
@@ -5703,9 +5718,9 @@ const SuperChoicePage = class {
5703
5718
  }
5704
5719
  componentDidLoad() {
5705
5720
  iframe.appReady();
5706
- const enabledFundIds = this.promotedFunds.map((item) => item.fundId);
5721
+ const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
5707
5722
  this.eventTrackingService.TrackSuperFundPanelViewedAsync({
5708
- enabledFundIds
5723
+ promotedFundsShown
5709
5724
  });
5710
5725
  }
5711
5726
  async componentWillLoad() {
@@ -5797,27 +5812,36 @@ const SuperChoicePage = class {
5797
5812
  return fundTiles;
5798
5813
  }
5799
5814
  async handleJoinSuperClickAsync(fund) {
5815
+ const promotedFundsShown = superSelectionAppService.promotedFunds;
5800
5816
  if (fund.fundId === Slate.Id) {
5801
5817
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5802
5818
  fundUsi: Slate.Usi,
5803
- fundName: Slate.Name
5819
+ fundName: Slate.Name,
5820
+ promotedFundId: Slate.Id,
5821
+ promotedFundsShown
5804
5822
  });
5805
5823
  }
5806
5824
  else if (fund.fundId === QSuper.Id) {
5807
5825
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5808
5826
  fundUsi: QSuper.Usi,
5809
- fundName: QSuper.Name
5827
+ fundName: QSuper.Name,
5828
+ promotedFundId: QSuper.Id,
5829
+ promotedFundsShown
5810
5830
  });
5811
5831
  }
5812
5832
  else if (fund.fundId === AustralianRetirementTrust.Id) {
5813
5833
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5814
- fundName: AustralianRetirementTrust.Name
5834
+ fundName: AustralianRetirementTrust.Name,
5835
+ promotedFundId: AustralianRetirementTrust.Id,
5836
+ promotedFundsShown
5815
5837
  });
5816
5838
  state$1.fundId = fund.fundId;
5817
5839
  }
5818
5840
  else if (fund.fundId === Aware.Id) {
5819
5841
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5820
- fundName: Aware.Name
5842
+ fundName: Aware.Name,
5843
+ promotedFundId: Aware.Id,
5844
+ promotedFundsShown
5821
5845
  });
5822
5846
  state$1.fundId = fund.fundId;
5823
5847
  }
@@ -34,7 +34,8 @@ export class DefaultFund {
34
34
  componentDidLoad() {
35
35
  return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
36
36
  fundUsi: this.defaultFund.usi,
37
- fundName: this.defaultFund.productName
37
+ fundName: this.defaultFund.productName,
38
+ promotedFundsShown: superSelectionAppService.promotedFunds
38
39
  });
39
40
  }
40
41
  render() {
@@ -14,7 +14,9 @@ export class MyOwnFund {
14
14
  this.eventTrackingService = EventTrackingService.Instance;
15
15
  }
16
16
  componentDidLoad() {
17
- return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync();
17
+ return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
18
+ promotedFundsShown: superSelectionAppService.promotedFunds
19
+ });
18
20
  }
19
21
  render() {
20
22
  return (h(Host, { class: "d-flex flex-fill" },
@@ -16,7 +16,9 @@ export class SelfManagedFund {
16
16
  };
17
17
  }
18
18
  componentDidLoad() {
19
- return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync();
19
+ return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
20
+ promotedFundsShown: superSelectionAppService.promotedFunds
21
+ });
20
22
  }
21
23
  render() {
22
24
  return (h(Host, { class: "d-flex flex-fill" },
@@ -28,7 +28,7 @@ export class PromotedFundStandardChoicePage {
28
28
  async handleSubmitForm() {
29
29
  this.formState = 'validated';
30
30
  if (this.formElement.checkValidity()) {
31
- promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, promotedFundState));
31
+ promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, promotedFundState), { shownFunds: superSelectionAppService.promotedFunds }));
32
32
  superSelectionAppService.markSuperSelectionAsSubmitted();
33
33
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
34
34
  }
@@ -2,6 +2,7 @@ import navigationService from '../../../services/navigation.service';
2
2
  import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
3
3
  import superSelectionAppService from '../../../services/super-selection-app.service';
4
4
  import promotedFundState from '../promoted-fund.store';
5
+ import iframeUtil from '../../../../../utils/iframe';
5
6
  class PromotedFundJoinIFrameBuilder {
6
7
  constructor() {
7
8
  this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
@@ -51,6 +52,10 @@ class PromotedFundJoinIFrameBuilder {
51
52
  iframe.height = data.height > 0 ? data.height : iframe.height;
52
53
  iframe.width = data.width > 0 ? data.width : iframe.width;
53
54
  break;
55
+ case 'pageNavigated':
56
+ window.scroll(iframe.offsetLeft, iframe.offsetTop);
57
+ iframeUtil.navigation(window.location.href);
58
+ break;
54
59
  default:
55
60
  break;
56
61
  }
@@ -29,7 +29,8 @@ export async function handleConfirmClickAsync() {
29
29
  qSuperState.qSuperQuestionnaire.acceptedDeclaration = true;
30
30
  const qSuperJoinRequest = {
31
31
  questionnaire: qSuperState.qSuperQuestionnaire,
32
- standardChoiceFormSignature: qSuperState.standardChoiceFormSignature
32
+ standardChoiceFormSignature: qSuperState.standardChoiceFormSignature,
33
+ shownFunds: superSelectionAppService.promotedFunds
33
34
  };
34
35
  await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
35
36
  superSelectionAppService.markSuperSelectionAsSubmitted();
@@ -2,7 +2,8 @@ import { createStore } from '@stencil/store';
2
2
  export const initialSlateSuper = {
3
3
  slateFundForm: {
4
4
  memberNumber: '',
5
- standardChoiceFormSignature: ''
5
+ standardChoiceFormSignature: '',
6
+ shownFunds: []
6
7
  }
7
8
  };
8
9
  const { state } = createStore(initialSlateSuper);
@@ -33,7 +33,7 @@ export class SlateStandardChoicePage {
33
33
  async handleSubmitForm() {
34
34
  this.formState = 'validated';
35
35
  if (this.formElement.checkValidity()) {
36
- await slateChoiceApi.submitSlateChoiceAsync(slateState.slateFundForm);
36
+ await slateChoiceApi.submitSlateChoiceAsync(Object.assign(Object.assign({}, slateState.slateFundForm), { shownFunds: superSelectionAppService.promotedFunds }));
37
37
  superSelectionAppService.markSuperSelectionAsSubmitted();
38
38
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
39
39
  }
@@ -38,14 +38,18 @@ export class EventTrackingService {
38
38
  }
39
39
  });
40
40
  }
41
- async TrackMyOwnSuperFundDetailViewedAsync() {
41
+ async TrackMyOwnSuperFundDetailViewedAsync(detail) {
42
42
  return this.trackEventAsync({
43
- SuperFundDetailViewed: 'MyOwnFund'
43
+ SuperFundDetailViewed: {
44
+ MyOwnFund: detail
45
+ }
44
46
  });
45
47
  }
46
- async TrackSmsfSuperFundDetailViewedAsync() {
48
+ async TrackSmsfSuperFundDetailViewedAsync(detail) {
47
49
  return this.trackEventAsync({
48
- SuperFundDetailViewed: 'Smsf'
50
+ SuperFundDetailViewed: {
51
+ Smsf: detail
52
+ }
49
53
  });
50
54
  }
51
55
  async TrackDefaultSuperFundDetailViewedAsync(detail) {
@@ -22,9 +22,9 @@ export class SuperChoicePage {
22
22
  }
23
23
  componentDidLoad() {
24
24
  iframe.appReady();
25
- const enabledFundIds = this.promotedFunds.map((item) => item.fundId);
25
+ const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
26
26
  this.eventTrackingService.TrackSuperFundPanelViewedAsync({
27
- enabledFundIds
27
+ promotedFundsShown
28
28
  });
29
29
  }
30
30
  async componentWillLoad() {
@@ -183,27 +183,36 @@ export class SuperChoicePage {
183
183
  return fundTiles;
184
184
  }
185
185
  async handleJoinSuperClickAsync(fund) {
186
+ const promotedFundsShown = SuperSelectionAppService.promotedFunds;
186
187
  if (fund.fundId === constants.Slate.Id) {
187
188
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
188
189
  fundUsi: constants.Slate.Usi,
189
- fundName: constants.Slate.Name
190
+ fundName: constants.Slate.Name,
191
+ promotedFundId: constants.Slate.Id,
192
+ promotedFundsShown
190
193
  });
191
194
  }
192
195
  else if (fund.fundId === constants.QSuper.Id) {
193
196
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
194
197
  fundUsi: constants.QSuper.Usi,
195
- fundName: constants.QSuper.Name
198
+ fundName: constants.QSuper.Name,
199
+ promotedFundId: constants.QSuper.Id,
200
+ promotedFundsShown
196
201
  });
197
202
  }
198
203
  else if (fund.fundId === constants.AustralianRetirementTrust.Id) {
199
204
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
200
- fundName: constants.AustralianRetirementTrust.Name
205
+ fundName: constants.AustralianRetirementTrust.Name,
206
+ promotedFundId: constants.AustralianRetirementTrust.Id,
207
+ promotedFundsShown
201
208
  });
202
209
  promotedFundState.fundId = fund.fundId;
203
210
  }
204
211
  else if (fund.fundId === constants.Aware.Id) {
205
212
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
206
- fundName: constants.Aware.Name
213
+ fundName: constants.Aware.Name,
214
+ promotedFundId: constants.Aware.Id,
215
+ promotedFundsShown
207
216
  });
208
217
  promotedFundState.fundId = fund.fundId;
209
218
  }
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
261
261
  }
262
262
  }
263
263
 
264
- const AppVersion = '3.34.55209';
264
+ const AppVersion = '3.37.55611';
265
265
 
266
266
  // -------------------------------------------------------------------------------------
267
267
  // guards
@@ -4074,14 +4074,18 @@ class EventTrackingService {
4074
4074
  }
4075
4075
  });
4076
4076
  }
4077
- async TrackMyOwnSuperFundDetailViewedAsync() {
4077
+ async TrackMyOwnSuperFundDetailViewedAsync(detail) {
4078
4078
  return this.trackEventAsync({
4079
- SuperFundDetailViewed: 'MyOwnFund'
4079
+ SuperFundDetailViewed: {
4080
+ MyOwnFund: detail
4081
+ }
4080
4082
  });
4081
4083
  }
4082
- async TrackSmsfSuperFundDetailViewedAsync() {
4084
+ async TrackSmsfSuperFundDetailViewedAsync(detail) {
4083
4085
  return this.trackEventAsync({
4084
- SuperFundDetailViewed: 'Smsf'
4086
+ SuperFundDetailViewed: {
4087
+ Smsf: detail
4088
+ }
4085
4089
  });
4086
4090
  }
4087
4091
  async TrackDefaultSuperFundDetailViewedAsync(detail) {
@@ -4204,7 +4208,8 @@ const DefaultFund = class {
4204
4208
  componentDidLoad() {
4205
4209
  return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
4206
4210
  fundUsi: this.defaultFund.usi,
4207
- fundName: this.defaultFund.productName
4211
+ fundName: this.defaultFund.productName,
4212
+ promotedFundsShown: superSelectionAppService.promotedFunds
4208
4213
  });
4209
4214
  }
4210
4215
  render() {
@@ -4263,7 +4268,9 @@ const MyOwnFund = class {
4263
4268
  this.eventTrackingService = EventTrackingService.Instance;
4264
4269
  }
4265
4270
  componentDidLoad() {
4266
- return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync();
4271
+ return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
4272
+ promotedFundsShown: superSelectionAppService.promotedFunds
4273
+ });
4267
4274
  }
4268
4275
  render() {
4269
4276
  return (h(Host, { class: "d-flex flex-fill" }, h("sss-custom-fund", { class: "flex-fill" }, h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
@@ -4376,8 +4383,8 @@ class PromotedFundJoinIFrameBuilder {
4376
4383
  return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
4377
4384
  };
4378
4385
  }
4379
- build(iframe, history) {
4380
- if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
4386
+ build(iframe$1, history) {
4387
+ if (!(iframe$1 === null || iframe$1 === void 0 ? void 0 : iframe$1.contentDocument))
4381
4388
  return;
4382
4389
  const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
4383
4390
  ? `${window.location.origin}/super-selection/embed/v1.0/app`
@@ -4409,14 +4416,18 @@ class PromotedFundJoinIFrameBuilder {
4409
4416
  if (data.sender === 'promoted-fund-join') {
4410
4417
  switch (data.type) {
4411
4418
  case 'contentResized':
4412
- iframe.height = data.height > 0 ? data.height : iframe.height;
4413
- iframe.width = data.width > 0 ? data.width : iframe.width;
4419
+ iframe$1.height = data.height > 0 ? data.height : iframe$1.height;
4420
+ iframe$1.width = data.width > 0 ? data.width : iframe$1.width;
4421
+ break;
4422
+ case 'pageNavigated':
4423
+ window.scroll(iframe$1.offsetLeft, iframe$1.offsetTop);
4424
+ iframe.navigation(window.location.href);
4414
4425
  break;
4415
4426
  }
4416
4427
  }
4417
4428
  };
4418
4429
  window.addEventListener('message', handleMessage);
4419
- const iframeDoc = iframe.contentDocument;
4430
+ const iframeDoc = iframe$1.contentDocument;
4420
4431
  iframeDoc.open();
4421
4432
  const form = iframeDoc.createElement('form');
4422
4433
  form.method = 'POST';
@@ -4500,7 +4511,7 @@ const PromotedFundStandardChoicePage = class {
4500
4511
  async handleSubmitForm() {
4501
4512
  this.formState = 'validated';
4502
4513
  if (this.formElement.checkValidity()) {
4503
- promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
4514
+ promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$1), { shownFunds: superSelectionAppService.promotedFunds }));
4504
4515
  superSelectionAppService.markSuperSelectionAsSubmitted();
4505
4516
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
4506
4517
  }
@@ -4924,7 +4935,8 @@ async function handleConfirmClickAsync() {
4924
4935
  state$2.qSuperQuestionnaire.acceptedDeclaration = true;
4925
4936
  const qSuperJoinRequest = {
4926
4937
  questionnaire: state$2.qSuperQuestionnaire,
4927
- standardChoiceFormSignature: state$2.standardChoiceFormSignature
4938
+ standardChoiceFormSignature: state$2.standardChoiceFormSignature,
4939
+ shownFunds: superSelectionAppService.promotedFunds
4928
4940
  };
4929
4941
  await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
4930
4942
  superSelectionAppService.markSuperSelectionAsSubmitted();
@@ -5109,7 +5121,9 @@ const SelfManagedFund = class {
5109
5121
  };
5110
5122
  }
5111
5123
  componentDidLoad() {
5112
- return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync();
5124
+ return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
5125
+ promotedFundsShown: superSelectionAppService.promotedFunds
5126
+ });
5113
5127
  }
5114
5128
  render() {
5115
5129
  return (h(Host, { class: "d-flex flex-fill" }, h("sss-custom-fund", { class: "flex-fill" }, h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
@@ -5378,7 +5392,8 @@ const interopQuery = new InteropQuery(sessionStore);
5378
5392
  const initialSlateSuper = {
5379
5393
  slateFundForm: {
5380
5394
  memberNumber: '',
5381
- standardChoiceFormSignature: ''
5395
+ standardChoiceFormSignature: '',
5396
+ shownFunds: []
5382
5397
  }
5383
5398
  };
5384
5399
  const { state: state$3 } = createStore(initialSlateSuper);
@@ -5544,7 +5559,7 @@ const SlateStandardChoicePage = class {
5544
5559
  async handleSubmitForm() {
5545
5560
  this.formState = 'validated';
5546
5561
  if (this.formElement.checkValidity()) {
5547
- await slateChoiceApi.submitSlateChoiceAsync(state$3.slateFundForm);
5562
+ await slateChoiceApi.submitSlateChoiceAsync(Object.assign(Object.assign({}, state$3.slateFundForm), { shownFunds: superSelectionAppService.promotedFunds }));
5548
5563
  superSelectionAppService.markSuperSelectionAsSubmitted();
5549
5564
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
5550
5565
  }
@@ -5699,9 +5714,9 @@ const SuperChoicePage = class {
5699
5714
  }
5700
5715
  componentDidLoad() {
5701
5716
  iframe.appReady();
5702
- const enabledFundIds = this.promotedFunds.map((item) => item.fundId);
5717
+ const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
5703
5718
  this.eventTrackingService.TrackSuperFundPanelViewedAsync({
5704
- enabledFundIds
5719
+ promotedFundsShown
5705
5720
  });
5706
5721
  }
5707
5722
  async componentWillLoad() {
@@ -5793,27 +5808,36 @@ const SuperChoicePage = class {
5793
5808
  return fundTiles;
5794
5809
  }
5795
5810
  async handleJoinSuperClickAsync(fund) {
5811
+ const promotedFundsShown = superSelectionAppService.promotedFunds;
5796
5812
  if (fund.fundId === Slate.Id) {
5797
5813
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5798
5814
  fundUsi: Slate.Usi,
5799
- fundName: Slate.Name
5815
+ fundName: Slate.Name,
5816
+ promotedFundId: Slate.Id,
5817
+ promotedFundsShown
5800
5818
  });
5801
5819
  }
5802
5820
  else if (fund.fundId === QSuper.Id) {
5803
5821
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5804
5822
  fundUsi: QSuper.Usi,
5805
- fundName: QSuper.Name
5823
+ fundName: QSuper.Name,
5824
+ promotedFundId: QSuper.Id,
5825
+ promotedFundsShown
5806
5826
  });
5807
5827
  }
5808
5828
  else if (fund.fundId === AustralianRetirementTrust.Id) {
5809
5829
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5810
- fundName: AustralianRetirementTrust.Name
5830
+ fundName: AustralianRetirementTrust.Name,
5831
+ promotedFundId: AustralianRetirementTrust.Id,
5832
+ promotedFundsShown
5811
5833
  });
5812
5834
  state$1.fundId = fund.fundId;
5813
5835
  }
5814
5836
  else if (fund.fundId === Aware.Id) {
5815
5837
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5816
- fundName: Aware.Name
5838
+ fundName: Aware.Name,
5839
+ promotedFundId: Aware.Id,
5840
+ promotedFundsShown
5817
5841
  });
5818
5842
  state$1.fundId = fund.fundId;
5819
5843
  }