@flarehr/apollo-super-selection 1.4.56819 → 1.4.56843

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 (75) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-0726177d.system.entry.js +69 -0
  3. package/dist/lib/apollo-super-selection/p-07893761.system.entry.js +1 -0
  4. package/dist/lib/apollo-super-selection/p-1a574672.entry.js +14 -0
  5. package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +1 -0
  6. package/dist/lib/apollo-super-selection/p-37ed5963.system.entry.js +1 -0
  7. package/dist/lib/apollo-super-selection/p-4a95528c.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-5716179f.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-6d4e757b.system.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +1 -0
  12. package/dist/lib/apollo-super-selection/p-9cd765f5.system.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-a99c601b.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-b3f43d1a.entry.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-bbe230d9.entry.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  18. package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-dac37462.system.js +1 -0
  20. package/dist/lib/apollo-super-selection/p-f8bb280b.js +1 -0
  21. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  22. package/dist/lib/cjs/australian-fund-lookup.service-4be59dec.js +19 -0
  23. package/dist/lib/cjs/custom-fund.store-3d1ac996.js +37 -0
  24. package/dist/lib/cjs/event-tracking.service-ed12699a.js +296 -0
  25. package/dist/lib/cjs/injectHistory-eb188cf0.js +9 -0
  26. package/dist/lib/cjs/loader.cjs.js +1 -1
  27. package/dist/lib/cjs/sss-button_32.cjs.entry.js +382 -351
  28. package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +23 -0
  29. package/dist/lib/cjs/sss-default-fund.cjs.entry.js +61 -0
  30. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +24 -21
  31. package/dist/lib/cjs/{custom-fund-choice.api-293c1ace.js → super-selection-app.service-ca52a1fc.js} +7 -331
  32. package/dist/lib/collection/collection-manifest.json +3 -1
  33. package/dist/lib/collection/components/default-fund/super-default-fund-types.js +1 -0
  34. package/dist/lib/collection/components/default-fund/super-default-fund.js +130 -0
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +37 -0
  36. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
  37. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  38. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +2 -1
  39. package/dist/lib/esm/apollo-super-selection.js +1 -1
  40. package/dist/lib/esm/australian-fund-lookup.service-a2f593d3.js +17 -0
  41. package/dist/lib/esm/custom-fund.store-dcc61edf.js +36 -0
  42. package/dist/lib/esm/event-tracking.service-9398a317.js +290 -0
  43. package/dist/lib/esm/injectHistory-e92e4664.js +7 -0
  44. package/dist/lib/esm/loader.js +1 -1
  45. package/dist/lib/esm/sss-button_32.entry.js +89 -58
  46. package/dist/lib/esm/sss-default-fund-router.entry.js +19 -0
  47. package/dist/lib/esm/sss-default-fund.entry.js +57 -0
  48. package/dist/lib/esm/sss-super-byof-host.entry.js +4 -1
  49. package/dist/lib/esm/{custom-fund-choice.api-42801d64.js → super-selection-app.service-50f199de.js} +8 -327
  50. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  51. package/dist/lib/esm-es5/australian-fund-lookup.service-a2f593d3.js +1 -0
  52. package/dist/lib/esm-es5/custom-fund.store-dcc61edf.js +1 -0
  53. package/dist/lib/esm-es5/event-tracking.service-9398a317.js +1 -0
  54. package/dist/lib/esm-es5/injectHistory-e92e4664.js +1 -0
  55. package/dist/lib/esm-es5/loader.js +1 -1
  56. package/dist/lib/esm-es5/sss-button_32.entry.js +5 -5
  57. package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -0
  58. package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -0
  59. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  60. package/dist/lib/esm-es5/super-selection-app.service-50f199de.js +1 -0
  61. package/dist/lib/types/components/default-fund/super-default-fund-types.d.ts +23 -0
  62. package/dist/lib/types/components/default-fund/super-default-fund.d.ts +20 -0
  63. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  64. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.d.ts +5 -0
  65. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  66. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  67. package/dist/lib/types/components.d.ts +30 -0
  68. package/package.json +1 -1
  69. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
  70. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
  71. package/dist/lib/apollo-super-selection/p-aa9dedee.system.entry.js +0 -69
  72. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
  73. package/dist/lib/apollo-super-selection/p-c7ab3701.entry.js +0 -14
  74. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
  75. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-9cd765f5.system.js","./p-97188c78.system.js","./p-524b1ff5.system.js","./p-a2b4e667.system.js","./p-dac37462.system.js"],(function(e){"use strict";var t,n,r,i,o,a,s,u,d,l,f;return{setters:[function(e){t=e.r;n=e.h;r=e.H},function(e){i=e.a;o=e.O},function(){},function(e){a=e.i},function(e){s=e.E;u=e.n;d=e.S;l=e.c},function(e){f=e.s}],execute:function(){var c=3e4;var m;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded"})(m||(m={}));var b=m.NotLoaded;var h=e("sss_super_byof_host",function(){function e(e){var n=this;t(this,e);this.eventTrackingService=s.Instance;this.subscribeToSuperByofEvents=function(){for(var e in n.byofEventHandlers){document.addEventListener(e,n.byofEventHandlers[e])}};this.unSubscribeFromSuperByofEvents=function(){for(var e in n.byofEventHandlers){document.removeEventListener(e,n.byofEventHandlers[e])}};this.byofLoaded=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){if(e.detail.sender==="super-byof"){b=m.Loaded;clearTimeout(this.loadingTimeoutRef);this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:i.promotedFunds,defaultFundUsiSet:o.toUndefined(i.defaultFundUsi)})}return[2,Promise.resolve()]}))}))};this.byofCompleted=function(e){return __awaiter(n,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){if(e.detail.sender==="super-byof"){f.myOwnFundForm={fundUsi:o.fromNullable(e.detail.fundUsi),fundName:o.fromNullable(e.detail.fundName),memberNumber:o.fromNullable(e.detail.memberNumber),memberFirstName:o.fromNullable(e.detail.memberFirstName),memberFamilyName:o.fromNullable(e.detail.memberLastName)};if(i.isBringYourOwnFundCustomStepEnabled&&i.isUsingSuperCampaign){u.navigateInternally(this.history,d.MyOwnFundEngagementStep);return[2]}u.navigateInternallyToStandardChoice({history:this.history,fundName:e.detail.fundName,fundDetails:{type:"myOwnFund",fundName:e.detail.fundName,fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber},handleSubmitFn:function(n){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=Object.assign({fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber,memberFirstName:e.detail.memberFirstName,memberFamilyName:e.detail.memberLastName,standardChoiceFormSignature:n},i.promotedFundsConfig);return[4,l.submitCustomFundChoiceAsync(t)];case 1:r.sent();return[2]}}))}))}})}return[2]}))}))};this.byofCancelled=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-byof"))return[3,2];return[4,u.navigateInternally(this.history,d.ChoicePage)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(o.isSome(i.backendUrl)&&o.isSome(i.state.jwt)){this.backendUrl=i.backendUrl.value;this.accessToken=i.state.jwt.value;if(b===m.NotLoaded){this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),c)}this.subscribeToSuperByofEvents()}else{throw Error("SuperByofHost pre-requisites not met.")}return[2]}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperByofEvents()};e.prototype.render=function(){return n(r,null,n("sss-header-section",null),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))};e.prototype.byofLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(b!==m.Loaded){throw Error("BYOF component failed to load.")}return[2]}))}))};return e}());a(h)}}}));