@flarehr/apollo-super-selection 5.86.53344 → 5.87.56845

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-07893761.system.entry.js +1 -0
  3. package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +1 -0
  4. package/dist/lib/apollo-super-selection/p-37ed5963.system.entry.js +1 -0
  5. package/dist/lib/apollo-super-selection/p-4a95528c.js +1 -0
  6. package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
  7. package/dist/lib/apollo-super-selection/p-5716179f.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-6d4e757b.system.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-9cd765f5.system.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +1 -0
  12. package/dist/lib/apollo-super-selection/p-a99c601b.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-b3f43d1a.entry.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-bbe230d9.entry.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  16. package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-d64c4c69.entry.js +14 -0
  18. package/dist/lib/apollo-super-selection/p-dac37462.system.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-e56506e8.system.entry.js +69 -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 +3 -2
  69. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
  70. package/dist/lib/apollo-super-selection/p-40bfe38f.entry.js +0 -14
  71. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
  72. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
  73. package/dist/lib/apollo-super-selection/p-b2de6265.system.entry.js +0 -69
  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
+ import{e as t,f as n}from"./p-db0bded8.js";var r=function(t){return"Some"===t._tag},e=function(t){return"None"===t._tag},u={_tag:"None"},i=function(t){return{_tag:"Some",value:t}};function o(t){return null==t?u:i(t)}function c(t){return e(t)?void 0:t.value}const a=t=>!("isConnected"in t)||t.isConnected,s=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(a))})(...n)}),2e3)}})(),f=(r,e)=>{const u=((t,n=((t,n)=>t!==n))=>{let r=new Map(Object.entries(null!=t?t:{}));const e={dispose:[],get:[],set:[],reset:[]},u=()=>{r=new Map(Object.entries(null!=t?t:{})),e.reset.forEach((t=>t()))},i=t=>(e.get.forEach((n=>n(t))),r.get(t)),o=(t,u)=>{const i=r.get(t);n(u,i,t)&&(r.set(t,u),e.set.forEach((n=>n(t,u,i))))},c="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,n)=>i(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>r.has(n),set:(t,n,r)=>(o(n,r),!0)}),a=(t,n)=>(e[t].push(n),()=>{((t,n)=>{const r=t.indexOf(n);r>=0&&(t[r]=t[t.length-1],t.length--)})(e[t],n)});return{state:c,get:i,set:o,on:a,onChange:(n,r)=>{const e=a("set",((t,e)=>{t===n&&r(e)})),u=a("reset",(()=>r(t[n])));return()=>{e(),u()}},use:(...t)=>t.forEach((t=>{t.set&&a("set",t.set),t.get&&a("get",t.get),t.reset&&a("reset",t.reset)})),dispose:()=>{e.dispose.forEach((t=>t())),u()},reset:u}})(r,e);return(({on:r})=>{const e=new Map;"function"==typeof t&&(r("dispose",(()=>{e.clear()})),r("get",(n=>{const r=t();r&&((t,n,r)=>{const e=t.get(n);e?e.includes(r)||e.push(r):t.set(n,[r])})(e,n,r)})),r("set",(t=>{const r=e.get(t);r&&e.set(t,r.filter(n)),s(e)})),r("reset",(()=>{e.forEach((t=>t.forEach(n))),s(e)})))})(u),u};function h(t,n,r){return t(r={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var l=h((function(t,n){function r(t){return t}function e(t){return function(){return t}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(n,"__esModule",{value:!0}),n.bindTo_=n.bind_=n.hole=n.pipe=n.untupled=n.tupled=n.absurd=n.decrement=n.increment=n.tuple=n.flow=n.flip=n.constVoid=n.constUndefined=n.constNull=n.constFalse=n.constTrue=n.constant=n.not=n.unsafeCoerce=n.identity=void 0,n.identity=r,n.unsafeCoerce=r,n.not=function(t){return function(n){return!t(n)}},n.constant=e,n.constTrue=e(!0),n.constFalse=e(!1),n.constNull=e(null),n.constUndefined=e(void 0),n.constVoid=n.constUndefined,n.flip=function(t){return function(n,r){return t(r,n)}},n.flow=function(t,n,r,e,u,i,o,c,a){switch(arguments.length){case 1:return t;case 2:return function(){return n(t.apply(this,arguments))};case 3:return function(){return r(n(t.apply(this,arguments)))};case 4:return function(){return e(r(n(t.apply(this,arguments))))};case 5:return function(){return u(e(r(n(t.apply(this,arguments)))))};case 6:return function(){return i(u(e(r(n(t.apply(this,arguments))))))};case 7:return function(){return o(i(u(e(r(n(t.apply(this,arguments)))))))};case 8:return function(){return c(o(i(u(e(r(n(t.apply(this,arguments))))))))};case 9:return function(){return a(c(o(i(u(e(r(n(t.apply(this,arguments)))))))))}}},n.tuple=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},n.increment=function(t){return t+1},n.decrement=function(t){return t-1},n.absurd=u,n.tupled=function(t){return function(n){return t.apply(void 0,n)}},n.untupled=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(n)}},n.pipe=function(t,n,r,e,u,i,o,c,a,s,f,h,l,d,p,v,m,w,g,y){switch(arguments.length){case 1:return t;case 2:return n(t);case 3:return r(n(t));case 4:return e(r(n(t)));case 5:return u(e(r(n(t))));case 6:return i(u(e(r(n(t)))));case 7:return o(i(u(e(r(n(t))))));case 8:return c(o(i(u(e(r(n(t)))))));case 9:return a(c(o(i(u(e(r(n(t))))))));case 10:return s(a(c(o(i(u(e(r(n(t)))))))));case 11:return f(s(a(c(o(i(u(e(r(n(t))))))))));case 12:return h(f(s(a(c(o(i(u(e(r(n(t)))))))))));case 13:return l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))));case 14:return d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))));case 15:return p(d(l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))))));case 16:return v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))))));case 17:return m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))))))));case 18:return w(m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))))))));case 19:return g(w(m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))))))))));case 20:return y(g(w(m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))))))))))}},n.hole=u,n.bind_=function(t,n,r){var e;return Object.assign({},t,((e={})[n]=r,e))},n.bindTo_=function(t){return function(n){var r;return(r={})[t]=n,r}}})),d=h((function(t,n){function r(t){return null==t?n.none:n.some(t)}function e(t){return"Right"===t._tag?n.none:n.some(t.left)}function u(t){return"Left"===t._tag?n.none:n.some(t.right)}function i(t){return function(e){return n.isNone(e)?n.none:r(t(e.value))}}Object.defineProperty(n,"__esModule",{value:!0}),n.getApplySemigroup=n.getOrd=n.getEq=n.getShow=n.URI=n.wilt=n.wither=n.sequence=n.traverse=n.partitionMap=n.partition=n.filterMap=n.filter=n.separate=n.compact=n.reduceRight=n.foldMap=n.reduce=n.duplicate=n.extend=n.throwError=n.zero=n.alt=n.altW=n.flatten=n.chainFirst=n.chain=n.of=n.apSecond=n.apFirst=n.ap=n.map=n.chainNullableK=n.mapNullable=n.fromNullableK=n.getOrElse=n.getOrElseW=n.toUndefined=n.toNullable=n.fold=n.fromEither=n.getRight=n.getLeft=n.tryCatch=n.fromPredicate=n.fromNullable=n.some=n.none=n.isNone=n.isSome=void 0,n.sequenceArray=n.traverseArray=n.traverseArrayWithIndex=n.apS=n.bind=n.bindTo=n.Do=n.getRefinement=n.exists=n.elem=n.option=n.MonadThrow=n.Witherable=n.Traversable=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.Alt=n.Foldable=n.Monad=n.Applicative=n.Functor=n.getMonoid=n.getLastMonoid=n.getFirstMonoid=n.getApplyMonoid=void 0,n.isSome=function(t){return"Some"===t._tag},n.isNone=function(t){return"None"===t._tag},n.none={_tag:"None"},n.some=function(t){return{_tag:"Some",value:t}},n.fromNullable=r,n.fromPredicate=function(t){return function(r){return t(r)?n.some(r):n.none}},n.tryCatch=function(t){try{return n.some(t())}catch(t){return n.none}},n.getLeft=e,n.getRight=u,n.fromEither=u,n.fold=function(t,r){return function(e){return n.isNone(e)?t():r(e.value)}},n.toNullable=function(t){return n.isNone(t)?null:t.value},n.toUndefined=function(t){return n.isNone(t)?void 0:t.value},n.getOrElseW=function(t){return function(r){return n.isNone(r)?t():r.value}},n.getOrElse=n.getOrElseW,n.fromNullableK=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return r(t.apply(void 0,n))}},n.mapNullable=i,n.chainNullableK=i;var o=function(t,r){return l.pipe(t,n.map(r))},c=function(t,r){return l.pipe(t,n.ap(r))},a=function(t,r){return l.pipe(t,n.chain(r))},s=function(t,r,e){return l.pipe(t,n.reduce(r,e))},f=function(t){var r=n.foldMap(t);return function(t,n){return l.pipe(t,r(n))}},h=function(t,r,e){return l.pipe(t,n.reduceRight(r,e))},d=function(t){var r=n.traverse(t);return function(t,n){return l.pipe(t,r(n))}},p=function(t,r){return l.pipe(t,n.alt(r))},v=function(t,r){return l.pipe(t,n.filter(r))},m=function(t,r){return l.pipe(t,n.filterMap(r))},w=function(t,r){return l.pipe(t,n.extend(r))},g=function(t,r){return l.pipe(t,n.partition(r))},y=function(t,r){return l.pipe(t,n.partitionMap(r))},b=function(t){var r=n.wither(t);return function(t,n){return l.pipe(t,r(n))}},S=function(t){var r=n.wilt(t);return function(t,n){return l.pipe(t,r(n))}};n.map=function(t){return function(r){return n.isNone(r)?n.none:n.some(t(r.value))}},n.ap=function(t){return function(r){return n.isNone(r)||n.isNone(t)?n.none:n.some(r.value(t.value))}},n.apFirst=function(t){return l.flow(n.map((function(t){return function(){return t}})),n.ap(t))},n.apSecond=function(t){return l.flow(n.map((function(){return function(t){return t}})),n.ap(t))},n.of=n.some,n.chain=function(t){return function(r){return n.isNone(r)?n.none:t(r.value)}},n.chainFirst=function(t){return n.chain((function(r){return l.pipe(t(r),n.map((function(){return r})))}))},n.flatten=n.chain(l.identity),n.altW=function(t){return function(r){return n.isNone(r)?t():r}},n.alt=n.altW,n.zero=function(){return n.none},n.throwError=function(){return n.none},n.extend=function(t){return function(r){return n.isNone(r)?n.none:n.some(t(r))}},n.duplicate=n.extend(l.identity),n.reduce=function(t,r){return function(e){return n.isNone(e)?t:r(t,e.value)}},n.foldMap=function(t){return function(r){return function(e){return n.isNone(e)?t.empty:r(e.value)}}},n.reduceRight=function(t,r){return function(e){return n.isNone(e)?t:r(e.value,t)}},n.compact=n.flatten;var C={left:n.none,right:n.none};function F(t){return{equals:function(r,e){return r===e||(n.isNone(r)?n.isNone(e):!n.isNone(e)&&t.equals(r.value,e.value))}}}function E(t){return{concat:function(r,e){return n.isSome(r)&&n.isSome(e)?n.some(t.concat(r.value,e.value)):n.none}}}n.separate=function(t){var r=l.pipe(t,n.map((function(t){return{left:e(t),right:u(t)}})));return n.isNone(r)?C:r.value},n.filter=function(t){return function(r){return n.isNone(r)?n.none:t(r.value)?r:n.none}},n.filterMap=function(t){return function(r){return n.isNone(r)?n.none:t(r.value)}},n.partition=function(t){return function(n){return{left:v(n,(function(n){return!t(n)})),right:v(n,t)}}},n.partitionMap=function(t){return l.flow(n.map(t),n.separate)},n.traverse=function(t){return function(r){return function(e){return n.isNone(e)?t.of(n.none):t.map(r(e.value),n.some)}}},n.sequence=function(t){return function(r){return n.isNone(r)?t.of(n.none):t.map(r.value,n.some)}},n.wither=function(t){return function(r){return function(e){return n.isNone(e)?t.of(n.none):r(e.value)}}},n.wilt=function(t){return function(r){return function(i){return n.isNone(i)?t.of({left:n.none,right:n.none}):t.map(r(i.value),(function(t){return{left:e(t),right:u(t)}}))}}},n.URI="Option",n.getShow=function(t){return{show:function(r){return n.isNone(r)?"none":"some("+t.show(r.value)+")"}}},n.getEq=F,n.getOrd=function(t){return{equals:F(t).equals,compare:function(r,e){return r===e?0:n.isSome(r)?n.isSome(e)?t.compare(r.value,e.value):1:-1}}},n.getApplySemigroup=E,n.getApplyMonoid=function(t){return{concat:E(t).concat,empty:n.some(t.empty)}},n.getFirstMonoid=function(){return{concat:function(t,r){return n.isNone(t)?r:t},empty:n.none}},n.getLastMonoid=function(){return{concat:function(t,r){return n.isNone(r)?t:r},empty:n.none}},n.getMonoid=function(t){return{concat:function(r,e){return n.isNone(r)?e:n.isNone(e)?r:n.some(t.concat(r.value,e.value))},empty:n.none}},n.Functor={URI:n.URI,map:o},n.Applicative={URI:n.URI,map:o,ap:c,of:n.of},n.Monad={URI:n.URI,map:o,ap:c,of:n.of,chain:a},n.Foldable={URI:n.URI,reduce:s,foldMap:f,reduceRight:h},n.Alt={URI:n.URI,map:o,alt:p},n.Alternative={URI:n.URI,map:o,ap:c,of:n.of,alt:p,zero:n.zero},n.Extend={URI:n.URI,map:o,extend:w},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:o,compact:n.compact,separate:n.separate,filter:v,filterMap:m,partition:g,partitionMap:y},n.Traversable={URI:n.URI,map:o,reduce:s,foldMap:f,reduceRight:h,traverse:d,sequence:n.sequence},n.Witherable={URI:n.URI,map:o,reduce:s,foldMap:f,reduceRight:h,traverse:d,sequence:n.sequence,compact:n.compact,separate:n.separate,filter:v,filterMap:m,partition:g,partitionMap:y,wither:b,wilt:S},n.MonadThrow={URI:n.URI,map:o,ap:c,of:n.of,chain:a,throwError:n.throwError},n.option={URI:n.URI,map:o,of:n.of,ap:c,chain:a,reduce:s,foldMap:f,reduceRight:h,traverse:d,sequence:n.sequence,zero:n.zero,alt:p,extend:w,compact:n.compact,separate:n.separate,filter:v,filterMap:m,partition:g,partitionMap:y,wither:b,wilt:S,throwError:n.throwError},n.elem=function(t){return function(r,e){return!n.isNone(e)&&t.equals(r,e.value)}},n.exists=function(t){return function(r){return!n.isNone(r)&&t(r.value)}},n.getRefinement=function(t){return function(r){return n.isSome(t(r))}},n.Do=n.of({}),n.bindTo=function(t){return n.map(l.bindTo_(t))},n.bind=function(t,r){return n.chain((function(e){return l.pipe(r(e),n.map((function(n){return l.bind_(e,t,n)})))}))},n.apS=function(t,r){return l.flow(n.map((function(n){return function(r){return l.bind_(n,t,r)}})),n.ap(r))},n.traverseArrayWithIndex=function(t){return function(r){for(var e=[],u=0;u<r.length;u++){var i=t(u,r[u]);if(n.isNone(i))return n.none;e.push(i.value)}return n.some(e)}},n.traverseArray=function(t){return n.traverseArrayWithIndex((function(n,r){return t(r)}))},n.sequenceArray=n.traverseArray(l.identity)}));function p(t){this.message=t}(p.prototype=new Error).name="InvalidCharacterError";var v="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new p("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,u=0,i=0,o="";e=n.charAt(i++);~e&&(r=u%4?64*r+e:e,u++%4)?o+=String.fromCharCode(255&r>>(-2*u&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return o};function m(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(v(t).replace(/(.)/g,(function(t,n){var r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(n)}catch(t){return v(n)}}function w(t){this.message=t}(w.prototype=new Error).name="InvalidTokenError";var g=function(){return(g=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var u in n=arguments[r])Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u]);return t}).apply(this,arguments)},y=function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var e=Array(t),u=0;for(n=0;n<r;n++)for(var i=arguments[n],o=0,c=i.length;o<c;o++,u++)e[u]=i[o];return e},b=function(t,n,r){if(void 0===r&&(r=!1),!t||!n||"object"!=typeof t||"object"!=typeof n)return t;var e=g({},t);for(var u in n)n.hasOwnProperty(u)&&(e[u]=n[u]instanceof Array&&t[u]instanceof Array?r?y(t[u],n[u]):n[u]:"object"==typeof n[u]&&"object"==typeof t[u]?b(t[u],n[u],r):n[u]);return e},S=function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var e=Array(t),u=0;for(n=0;n<r;n++)for(var i=arguments[n],o=0,c=i.length;o<c;o++,u++)e[u]=i[o];return e},C={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,n){for(var r=void 0===n?{}:n,e=r.doThrow,u=void 0===e||e,i=r.instance,o=void 0!==i&&i,c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];var s=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(u&&!s)throw new Error(t+" is not defined");return o&&s?new(s.bind.apply(s,S([void 0],c))):s}},F=function(t,n,r,e){if(!t.getEntriesByName)return!1;var u=t.getEntriesByName(n);return!!(u&&u.length>0)&&(r(u.reverse()[0]),e.clearMeasures&&e.clearMeasures(n),E.callbacks.delete(n),E.callbacks.size<1&&(E.observer.disconnect(),e.clearResourceTimings&&e.clearResourceTimings()),!0)},E={callbacks:new Map,observer:null,observe:function(t,n){if(t&&n){var r=C.polyfill("performance",{doThrow:!1});(function(t,n){return!E.observer&&t&&n&&(E.observer=new n((function(n){E.callbacks.forEach((function(r,e){F(n,e,r,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),E.observer})(r,C.polyfill("PerformanceObserver",{doThrow:!1}))&&(F(r,t,n,r)||(E.callbacks.size<1&&E.observer.observe({entryTypes:["resource","measure"]}),E.callbacks.set(t,n)))}}},A=function(t){this.error=t},I=function(){return(I=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var u in n=arguments[r])Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u]);return t}).apply(this,arguments)},O=function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var e=Array(t),u=0;for(n=0;n<r;n++)for(var i=arguments[n],o=0,c=i.length;o<c;o++,u++)e[u]=i[o];return e},P=function(){function t(t,n,r,e,u,i){void 0===r&&(r=new Map),void 0===e&&(e=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=t,this._options=n,this._catchers=r,this._resolvers=e,this._middlewares=u,this._deferredChain=i}return t.factory=function(n,r){return void 0===n&&(n=""),void 0===r&&(r={}),new t(n,r)},t.prototype.selfFactory=function(n){var r=void 0===n?{}:n,e=r.url,u=r.options,i=r.catchers,o=void 0===i?this._catchers:i,c=r.resolvers,a=void 0===c?this._resolvers:c,s=r.middlewares,f=void 0===s?this._middlewares:s,h=r.deferredChain,l=void 0===h?this._deferredChain:h;return new t(void 0===e?this._url:e,I({},void 0===u?this._options:u),new Map(o),O(a),O(f),O(l))},t.prototype.defaults=function(t,n){return void 0===n&&(n=!1),C.defaults=n?b(C.defaults,t):t,this},t.prototype.errorType=function(t){return C.errorType=t,this},t.prototype.polyfills=function(t){return C.polyfills=I(I({},C.polyfills),t),this},t.prototype.url=function(t,n){if(void 0===n&&(n=!1),n)return this.selfFactory({url:t});var r=this._url.split("?");return this.selfFactory({url:r.length>1?r[0]+t+"?"+r[1]:this._url+t})},t.prototype.options=function(t,n){return void 0===n&&(n=!0),this.selfFactory({options:n?b(this._options,t):t})},t.prototype.query=function(t,n){return void 0===n&&(n=!1),this.selfFactory({url:R(this._url,t,n)})},t.prototype.headers=function(t){return this.selfFactory({options:b(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var n;return this.headers(((n={})["Content-Type"]=t,n))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,n){var r=new Map(this._catchers);return r.set(t,n),this.selfFactory({catchers:r})},t.prototype.signal=function(t){return this.selfFactory({options:I(I({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,n){return void 0===n&&(n=!1),this.selfFactory({resolvers:n?[t]:O(this._resolvers,[t])})},t.prototype.defer=function(t,n){return void 0===n&&(n=!1),this.selfFactory({deferredChain:n?[t]:O(this._deferredChain,[t])})},t.prototype.middlewares=function(t,n){return void 0===n&&(n=!1),this.selfFactory({middlewares:n?t:O(this._middlewares,t)})},t.prototype.method=function(t,n,r){void 0===n&&(n={}),void 0===r&&(r=null);var e=this._options.headers,u=r?"object"!=typeof r||e&&!Object.entries(e).every((function(t){var n=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||n.startsWith("application/json")}))?this.body(r):this.json(r):this;return function(t){var n=t._url,r=t._resolvers,e=t._middlewares,u=t._options,i=new Map(t._catchers),o=b(C.defaults,u),c=C.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&c&&(o.signal=c.signal);var a={ref:null,clear:function(){a.ref&&(clearTimeout(a.ref),a.ref=null)}},s=function(t){return function(n){return 0===t.length?n:1===t.length?t[0](n):t.reduceRight((function(r,e,u){return e(u===t.length-2?r(n):r)}))}}(e)(C.polyfill("fetch"))(n,o),f=s.catch((function(t){throw new A(t)})).then((function(t){return a.clear(),t.ok?t:t[C.errorType||"text"]().then((function(n){var r=new Error(n);throw r[C.errorType||"text"]=n,r.status=t.status,r.response=t,r}))})),h=function(n){return function(r){return(n?f.then((function(t){return t&&t[n]()})).then((function(t){return r?r(t):t})):f.then((function(t){return r?r(t):t}))).catch((function(n){a.clear();var r=n instanceof A?n.error:n;if(n instanceof A&&i.has("__fromFetch"))return i.get("__fromFetch")(r,t);if(i.has(r.status))return i.get(r.status)(r,t);if(i.has(r.name))return i.get(r.name)(r,t);throw r}))}},l={res:h(null),json:h("json"),blob:h("blob"),formData:h("formData"),arrayBuffer:h("arrayBuffer"),text:h("text"),perfs:function(t){return s.then((function(n){return E.observe(n.url,t)})),l},setTimeout:function(t,n){return void 0===n&&(n=c),a.clear(),a.ref=setTimeout((function(){return n.abort()}),t),l},controller:function(){return[c,l]},error:function(t,n){return i.set(t,n),l},badRequest:function(t){return l.error(400,t)},unauthorized:function(t){return l.error(401,t)},forbidden:function(t){return l.error(403,t)},notFound:function(t){return l.error(404,t)},timeout:function(t){return l.error(408,t)},internalError:function(t){return l.error(500,t)},fetchError:function(t){return l.error("__fromFetch",t)},onAbort:function(t){return l.error("AbortError",t)}};return r.reduce((function(n,r){return r(n,t)}),l)}((u=u.options(I(I({},n),{method:t})))._deferredChain.reduce((function(t,n){return n(t,t._url,t._options)}),u))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,n){return this.method("PUT",n,t)},t.prototype.post=function(t,n){return this.method("POST",n,t)},t.prototype.patch=function(t,n){return this.method("PATCH",n,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:I(I({},this._options),{body:t})})},t.prototype.json=function(t){var n,r=null===(n=Object.entries(this._options.headers||{}).find((function(t){var n=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&n.startsWith("application/json")})))||void 0===n?void 0:n[1];return this.content(r||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,n){return void 0===n&&(n=!1),this.body(D(t,n))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(n=t,Object.keys(n).map((function(t){var r=n[t];return r instanceof Array?r.map((function(n){return j(t,n)})).join("&"):j(t,r)})).join("&"))).content("application/x-www-form-urlencoded");var n},t}(),R=function(t,n,r){var e;if("string"==typeof n)e=n;else{var u=C.polyfill("URLSearchParams",{instance:!0});for(var i in n)if(n[i]instanceof Array)for(var o=0,c=n[i];o<c.length;o++)u.append(i,c[o]);else u.append(i,n[i]);e=u.toString()}var a=t.split("?");return r||a.length<2?a[0]+"?"+e:t+"&"+e};function D(t,n,r,e){return void 0===n&&(n=!1),void 0===r&&(r=C.polyfill("FormData",{instance:!0})),void 0===e&&(e=[]),Object.entries(t).forEach((function(t){var u=t[0],i=t[1],o=e.reduce((function(t,n){return t?t+"["+n+"]":n}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var c=0,a=i;c<a.length;c++)r.append(o+"[]",a[c]);else!n||"object"!=typeof i||n instanceof Array&&n.includes(u)?r.append(o,i):null!==i&&D(i,n,r,O(e,[u]))})),r}function j(t,n){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof n?JSON.stringify(n):""+n)}var U=P.factory;function M(){const t=J.jwt,n=J.profileId,r=J.accountIdOrDefault,e=J.partnerIdOrDefault;return U(J.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":n,"X-PARTNER-ID":e,"X-ACCOUNT-ID":r})}U.default=P.factory;const T={fundId:"slate",usi:"32367272075001"};function B(t){switch(t.kind){case"slate":return T.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return t.generic.fundId;default:return""}}function N(t){switch(t.kind){case"Promoted":return i(function(t){switch(t.kind){case"slate":return T.usi;case"australianRetirementTrust":return t.australianRetirementTrust.usi;case"aware":return t.aware.usi;case"active":return t.active.usi;case"australianEthical":return t.australianEthical.usi;case"virgin":return t.virgin.usi;case"spirit":return t.spirit.usi;case"firstSuper":return t.firstSuper.usi;case"mercerMyChoice":return t.mercerMyChoice.usi;case"generic":return t.generic.usi;default:return""}}(t.promoted));case"MyOwnFund":return i(t.myOwnFund.usi);case"SMSF":return u;case"Default":return i(t.default.usi);case"PromotedDefault":return i(t.promotedDefault.usi);case"DefinedBenefits":return i(t.definedBenefits.usi);case"PromotedDefaultWithJoin":return i(t.promotedDefaultWithJoin.usi);default:return u}}function k(t){switch(t.kind){case"Promoted":return i(function(t){switch(t.kind){case"slate":return t.slate.memberNumber;case"australianRetirementTrust":return t.australianRetirementTrust.memberNumber;case"aware":return t.aware.memberNumber;case"active":return t.active.memberNumber;case"australianEthical":return t.australianEthical.memberNumber;case"virgin":return t.virgin.memberNumber;case"spirit":return t.spirit.memberNumber;case"firstSuper":return t.firstSuper.memberNumber;case"mercerMyChoice":return t.mercerMyChoice.memberNumber;case"generic":return t.generic.memberNumber;default:return""}}(t.promoted));case"MyOwnFund":return i(t.myOwnFund.memberNumber);case"DefinedBenefits":return i(t.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return i(t.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return u}}const _=new class{async getAustralianFundsAsync(t,n=!1){return M().url("super-choice/australian-funds-v2?"+this.toQueryString(n,t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(t,n){const r=n?"?includeInactive=true":"";return M().url(`super-choice/australian-funds/${t}${r}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var t;const n=await M().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(t=n.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails)switch("promoted"in(r=n.superBuyer.superChoice.choiceDetails)?r.kind="Promoted":"myOwnFund"in r?r.kind="MyOwnFund":"smsf"in r?r.kind="SMSF":"default"in r?r.kind="Default":"promotedDefault"in r?r.kind="PromotedDefault":"definedBenefits"in r?r.kind="DefinedBenefits":"promotedDefaultWithJoin"in r&&(r.kind="PromotedDefaultWithJoin"),n.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(t){"slate"in t?t.kind="slate":"australianRetirementTrust"in t?t.kind="australianRetirementTrust":"aware"in t?t.kind="aware":"active"in t?t.kind="active":"australianEthical"in t?t.kind="australianEthical":"virgin"in t?t.kind="virgin":"spirit"in t?t.kind="spirit":"firstSuper"in t?t.kind="firstSuper":"mercerMyChoice"in t?t.kind="mercerMyChoice":"generic"in t&&(t.kind="generic")}(n.superBuyer.superChoice.choiceDetails.promoted)}var r;return n}async clickPromotedTileAsync(t){return M().url("click-promoted-tile").post(t).res()}async viewSuperFundPanelAsync(t){return M().url("view-super-fund-panel").post(t).res()}toSearchFilterQueryString(t){return"search="+t.searchString+(t.maxRecordCount>0?"&maxRecordCount="+t.maxRecordCount:"")}toQueryString(t,n){return[this.toSearchFilterQueryString(n),t?"includeInactive=true":""].filter((t=>t&&t.length)).join("&")}};var x;!function(t){t[t.NotLoaded=1]="NotLoaded",t[t.Loaded=2]="Loaded",t[t.NotWorking=3]="NotWorking"}(x||(x={}));class L{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((t=>t.fundId))}set promotedFundsShown(t){this._promotedFundsShown=t}get DefaultFundPosition(){const t=this._promotedFundsShown.findIndex((t=>"promoted-default"===t.fundType));if(-1!==t)return t+1}}const q={apiBaseUrl:d.none,appBaseUrl:d.none,profileId:d.none,jwt:d.none,superBuyer:d.none,superChoicePrefill:d.none,promotedFunds:d.none,accountConfiguration:d.none,profileConfiguration:d.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:d.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:x.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,smsfCustomStepEnabled:!1,featuredFundsEnabled:!1,defaultFundNewComponentEnabled:!1},J=new class{constructor(){const{state:t,onChange:n}=f(q);this._state=t,this._onChange=n,n("jwt",(t=>{this._state.profileId=l.pipe(t,d.chain((t=>d.fromNullable(function(t,n){if("string"!=typeof t)throw new w("Invalid token specified");var r=!0===(n=n||{}).header?0:1;try{return JSON.parse(m(t.split(".")[r]))}catch(t){throw new w("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(d.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(d.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(d.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(this.state.superCampaignEnabled&&void 0!==this.superCampaignState)return this.superCampaignState.PromotedFundIds;if(d.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get promotedDefaultFundPosition(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState?d.fromNullable(this.superCampaignState.DefaultFundPosition):d.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:d.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(d.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const t=l.pipe(this._state.profileConfiguration,d.map((t=>d.fromNullable(t.defaultFundUsi))),d.flatten);return d.isSome(t)?t:l.pipe(this._state.accountConfiguration,d.map((t=>d.fromNullable(t.defaultFundUsi))),d.flatten)}get accountIdOrDefault(){return l.pipe(this._state.accountConfiguration,d.map((t=>t.accountId)),d.getOrElse((()=>"")))}get partnerIdOrDefault(){return l.pipe(this._state.superBuyer,d.map((t=>t.partnerId)),d.getOrElse((()=>"")))}get jwt(){if(d.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}get isDefinedBenefitsEligible(){return this._state.isDefinedBenefitsEligible}async loadAppStateAsync(){const t=await _.getAppStateAsync();this._state.accountConfiguration=d.fromNullable(t.accountConfiguration),this._state.profileConfiguration=d.fromNullable(t.profileConfiguration),this._state.superBuyer=d.fromNullable(t.superBuyer),this._state.promotedFunds=d.fromNullable(t.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=t.bringYourOwnFundCustomStepEnabled,this._state.smsfCustomStepEnabled=t.smsfCustomStepEnabled,this._state.featuredFundsEnabled=t.featuredFundsEnabled,this._state.defaultFundNewComponentEnabled=t.defaultFundNewComponentEnabled,this._state.superChoicePrefill=d.fromNullable(t.prefill),this._state.isDefinedBenefitsEligible=d.fromNullable(t.isDefinedBenefitsEligible),d.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(t){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=t}viewSuperFundPanelAsync(t,n){return _.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:n||this.promotedFundsConfig.shownFunds,placementId:t}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(t){t===x.Loaded?(this._state.superCampaignComponentStatus=x.Loaded,this._state.superCampaignState=new L):(this._state.superCampaignComponentStatus=t,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isSmsfCustomStepEnabled(){return this.state.smsfCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get isDefaultFundNewComponentEnabled(){return this.state.defaultFundNewComponentEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===x.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(t){this._state.hideFooterSection=t}get backendUrl(){return d.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(t){const n=new URL(t);return`${n.protocol}//${n.hostname}${n.port.length>0?":"+n.port:""}`}};export{d as O,x as S,J as a,e as b,M as c,N as d,k as e,_ as f,B as g,T as h,r as i,U as j,o as k,f as l,u as n,i as s,c as t}
@@ -18,5 +18,5 @@ const patchBrowser = () => {
18
18
 
19
19
  patchBrowser().then(options => {
20
20
  appGlobals.globalScripts();
21
- return index.bootstrapLazy([["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32],"accountId":[32],"partnerId":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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,"sss-button",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[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"]}]]]], options);
21
+ return index.bootstrapLazy([["sss-default-fund-router.cjs",[[0,"sss-default-fund-router",{"history":[16]}]]],["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32],"accountId":[32],"partnerId":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-default-fund-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[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,"sss-button",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[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"]}]]],["sss-default-fund.cjs",[[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}]]]], options);
22
22
  });
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
4
+
5
+ class AustralianFundLookupService {
6
+ async searchFundsAsync(searchString, maxRecordCount) {
7
+ return superSelectionApp_service.superSelectionApi.getAustralianFundsAsync({
8
+ searchString,
9
+ maxRecordCount
10
+ });
11
+ }
12
+ async getFundAsync(usi, includeInactive) {
13
+ const result = await superSelectionApp_service.superSelectionApi.getAustralianFundAsync(usi, includeInactive);
14
+ return superSelectionApp_service.Option.some(result);
15
+ }
16
+ }
17
+ const australianFundLookupService = new AustralianFundLookupService();
18
+
19
+ exports.australianFundLookupService = australianFundLookupService;
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
4
+
5
+ (function (CustomFundTypes) {
6
+ CustomFundTypes["MyOwnFund"] = "Existing super fund";
7
+ CustomFundTypes["DefaultFund"] = "Default super fund";
8
+ CustomFundTypes["SelfManagedFund"] = "Self-managed super fund";
9
+ CustomFundTypes["FeaturedFunds"] = "Featured super funds";
10
+ })(exports.CustomFundTypes || (exports.CustomFundTypes = {}));
11
+ const initialStateCustomFund = {
12
+ myOwnFundForm: {
13
+ fundUsi: superSelectionApp_service.none,
14
+ fundName: superSelectionApp_service.none,
15
+ memberNumber: superSelectionApp_service.none,
16
+ memberFirstName: superSelectionApp_service.none,
17
+ memberFamilyName: superSelectionApp_service.none
18
+ },
19
+ selfManagedFundForm: {
20
+ fundName: '',
21
+ fundAbn: '',
22
+ fundEsa: '',
23
+ addressLine1: '',
24
+ addressLine2: '',
25
+ state: '',
26
+ postcode: '',
27
+ city: '',
28
+ bankAccountName: '',
29
+ bsb: '',
30
+ bankAccountNumber: '',
31
+ memberFirstName: '',
32
+ memberFamilyName: ''
33
+ }
34
+ };
35
+ const { state, reset } = superSelectionApp_service.createStore(initialStateCustomFund);
36
+
37
+ exports.state = state;
@@ -0,0 +1,296 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-eb4f212f.js');
4
+ const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
5
+
6
+ function appReady() {
7
+ postMessage({
8
+ type: 'appReady'
9
+ });
10
+ }
11
+ function postMessage(message, origin) {
12
+ if (origin === undefined)
13
+ origin = '*';
14
+ message.sender = 'flare';
15
+ window.parent.postMessage(message, origin);
16
+ }
17
+ function resize(height, width) {
18
+ postMessage({
19
+ type: 'contentResized',
20
+ height,
21
+ width
22
+ });
23
+ }
24
+ function navigation(url) {
25
+ postMessage({
26
+ type: 'pageNavigated',
27
+ url
28
+ });
29
+ }
30
+ function complete() {
31
+ postMessage({ type: 'complete' });
32
+ }
33
+ function submitSuccess() {
34
+ postMessage({
35
+ type: 'submitSuccess'
36
+ });
37
+ }
38
+ const iframe = { appReady, resize, navigation, complete, submitSuccess };
39
+
40
+ const initial = {
41
+ handleSubmitFn: async function () {
42
+ return;
43
+ },
44
+ fundName: '',
45
+ fundDetails: { type: 'null' },
46
+ promotedFundId: undefined
47
+ };
48
+ const { state } = superSelectionApp_service.createStore(initial);
49
+
50
+ (function (SuperSelectionAppRoutes) {
51
+ SuperSelectionAppRoutes["ExistingChoicePage"] = "/existing";
52
+ SuperSelectionAppRoutes["SuperCampaign"] = "/super-campaign";
53
+ SuperSelectionAppRoutes["ChoicePage"] = "/";
54
+ SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
55
+ SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund-engagement/";
56
+ SuperSelectionAppRoutes["SmsfEngagementStep"] = "/super-choice/smsf-engagement/";
57
+ SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
58
+ SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
59
+ SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
60
+ SuperSelectionAppRoutes["PrefillSMSFPage"] = "/super-choice/prefill-smsf/";
61
+ SuperSelectionAppRoutes["PrefillInvalidSMSFPage"] = "/super-choice/prefill-invalid-smsf/";
62
+ SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
63
+ SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
64
+ SuperSelectionAppRoutes["FeaturedFunds"] = "/super-choice/featured-funds/";
65
+ SuperSelectionAppRoutes["StandardChoice"] = "/standard-choice/";
66
+ SuperSelectionAppRoutes["Success"] = "/success/";
67
+ })(exports.SuperSelectionAppRoutes || (exports.SuperSelectionAppRoutes = {}));
68
+ const superSelectionAppStencilRoutes = [
69
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.ExistingChoicePage, component: "sss-existing-choice-page" }),
70
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SuperCampaign, component: "sss-super-campaign-host" }),
71
+ index.h("stencil-route", { exact: true, url: exports.SuperSelectionAppRoutes.ChoicePage, component: "sss-choice-router" }),
72
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFund, component: "sss-super-byof-host" }),
73
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
74
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SmsfEngagementStep, component: "sss-smsf-engagement-step-host" }),
75
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
76
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
77
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
78
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillSMSFPage, component: "sss-prefill-smsf" }),
79
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillInvalidSMSFPage, component: "sss-prefill-invalid-smsf" }),
80
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SelfManagedFund, component: "sss-super-smsf-host" }),
81
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.DefaultFund, component: "sss-default-fund-router" }),
82
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.FeaturedFunds, component: "sss-super-campaign-featured-funds" }),
83
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.StandardChoice, component: "sss-standard-choice-form" }),
84
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.Success, component: "sss-success" })
85
+ ];
86
+
87
+ class NavigationService {
88
+ navigateInternally(history, route) {
89
+ const path = `${this.appBaseUrl}${this.toRouteWithLeadingSlash(route)}`;
90
+ iframe.navigation(path);
91
+ history.push(path);
92
+ }
93
+ navigateInternallyToStandardChoice(options) {
94
+ state.handleSubmitFn = options.handleSubmitFn;
95
+ state.fundName = options.fundName;
96
+ state.fundDetails = options.fundDetails;
97
+ state.promotedFundId = options.promotedFundId;
98
+ this.navigateInternally(options.history, exports.SuperSelectionAppRoutes.StandardChoice);
99
+ }
100
+ toExternalUrl(url) {
101
+ const externalUrl = new URL(url);
102
+ externalUrl.searchParams.append('_extnav', 'true');
103
+ return externalUrl.href;
104
+ }
105
+ get appBaseUrl() {
106
+ const baseUrl = superSelectionApp_service.superSelectionAppService.appBaseUrl;
107
+ return baseUrl.replace(/\/$/, '');
108
+ }
109
+ toRouteWithLeadingSlash(route) {
110
+ return route.length > 0 && route[0] === '/' ? route : `/${route}`;
111
+ }
112
+ }
113
+ const navigationService = new NavigationService();
114
+
115
+ class CustomFundChoiceApi {
116
+ async submitDefaultFundChoiceAsync(dto) {
117
+ return superSelectionApp_service.buildBackendApiClient()
118
+ .url('super-choice/default')
119
+ .post(dto)
120
+ .badRequest(() => {
121
+ throw new Error('Failed to process default fund join request');
122
+ })
123
+ .text();
124
+ }
125
+ async submitCustomFundChoiceAsync(dto) {
126
+ return superSelectionApp_service.buildBackendApiClient()
127
+ .url('super-choice/custom-fund')
128
+ .post(dto)
129
+ .badRequest(() => {
130
+ throw new Error('Failed to process custom fund join request');
131
+ })
132
+ .text();
133
+ }
134
+ async submitSelfManagedFundChoiceAsync(dto) {
135
+ return superSelectionApp_service.buildBackendApiClient()
136
+ .url('super-choice/smsf')
137
+ .post(dto)
138
+ .badRequest(() => {
139
+ throw new Error('Failed to process SMSF choice request');
140
+ })
141
+ .text();
142
+ }
143
+ async submitDefinedBenefitsChoiceAsync(dto) {
144
+ return superSelectionApp_service.buildBackendApiClient()
145
+ .url('super-choice/defined-benefits')
146
+ .post(dto)
147
+ .badRequest(() => {
148
+ throw new Error('Failed to process Defined Benefits choice request');
149
+ })
150
+ .text();
151
+ }
152
+ async validateAbnForSMSF(abn) {
153
+ const response = await superSelectionApp_service.buildBackendApiClient()
154
+ .url(`super-choice/smsf/${abn}/validate`)
155
+ .get()
156
+ .badRequest(() => {
157
+ throw new Error('Failed to verify that if the provided abn is used for regulated fund');
158
+ })
159
+ .json();
160
+ return response.result;
161
+ }
162
+ }
163
+ const customFundChoiceApi = new CustomFundChoiceApi();
164
+
165
+ class EventTrackingApi {
166
+ static get Instance() {
167
+ return this.instance || (this.instance = new this());
168
+ }
169
+ async PostAnalyticsEventAsync(event) {
170
+ return superSelectionApp_service.buildBackendApiClient().url('analytics-events').post(event).res();
171
+ }
172
+ }
173
+
174
+ class EventTrackingService {
175
+ constructor() {
176
+ this.eventTrackingApi = EventTrackingApi.Instance;
177
+ }
178
+ static get Instance() {
179
+ return this.instance || (this.instance = new this());
180
+ }
181
+ async TrackSuperFundPdsViewedAsync(detail) {
182
+ return this.trackEventAsync({
183
+ SuperFundPdsViewed: detail
184
+ });
185
+ }
186
+ async TrackPromotedSuperFundDetailViewedAsync(detail) {
187
+ return this.trackEventAsync({
188
+ SuperFundDetailViewed: {
189
+ PromotedFund: detail
190
+ }
191
+ });
192
+ }
193
+ async TrackPromotedDefaultSuperFundDetailViewedAsync(detail) {
194
+ return this.trackEventAsync({
195
+ SuperFundDetailViewed: {
196
+ PromotedDefaultFund: detail
197
+ }
198
+ });
199
+ }
200
+ async TrackMyOwnSuperFundDetailViewedAsync(detail) {
201
+ return this.trackEventAsync({
202
+ SuperFundDetailViewed: {
203
+ MyOwnFund: detail
204
+ }
205
+ });
206
+ }
207
+ async TrackSmsfSuperFundDetailViewedAsync(detail) {
208
+ return this.trackEventAsync({
209
+ SuperFundDetailViewed: {
210
+ Smsf: detail
211
+ }
212
+ });
213
+ }
214
+ async TrackDefaultSuperFundDetailViewedAsync(detail) {
215
+ return this.trackEventAsync({
216
+ SuperFundDetailViewed: {
217
+ DefaultFund: detail
218
+ }
219
+ });
220
+ }
221
+ async TrackSuperFundNominationViewedAsync(detail) {
222
+ return this.trackEventAsync({
223
+ SuperFundNominationViewed: detail
224
+ });
225
+ }
226
+ async TrackSuperFundNominationDeclinedAsync(detail) {
227
+ return this.trackEventAsync({
228
+ SuperFundNominationDeclined: detail
229
+ });
230
+ }
231
+ async TrackSuperFundDisclaimerViewedAsync(detail) {
232
+ return this.trackEventAsync({
233
+ SuperFundDisclaimerViewed: detail
234
+ });
235
+ }
236
+ async TrackSuperFundDisclaimerAcceptedAsync(detail) {
237
+ return this.trackEventAsync({
238
+ SuperFundDisclaimerAccepted: detail
239
+ });
240
+ }
241
+ async TrackSuperFundPrefillViewedAsync(detail) {
242
+ return this.trackEventAsync({
243
+ SuperFundPrefillViewed: detail
244
+ });
245
+ }
246
+ async TrackSuperFundPrefillDeclinedAsync(detail) {
247
+ return this.trackEventAsync({
248
+ SuperFundPrefillDeclined: detail
249
+ });
250
+ }
251
+ async TrackSuperFundDetailChangeRequestedAsync(detail) {
252
+ return this.trackEventAsync({
253
+ SuperFundDetailChangeRequested: detail
254
+ });
255
+ }
256
+ async TrackSuperCampaignActivationSucceededAsync(detail) {
257
+ return this.trackEventAsync({
258
+ SuperCampaignActivationSucceeded: detail
259
+ });
260
+ }
261
+ async TrackSuperMyOwnFundEngagementStepActivationSucceeded(fundUsi) {
262
+ return this.trackEventAsync({
263
+ SuperMyOwnFundEngagementStepActivationSucceeded: { fundUsi }
264
+ });
265
+ }
266
+ async TrackSuperMyOwnFundEngagementStepContinued(fundUsi, reason) {
267
+ return this.trackEventAsync({
268
+ SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
269
+ });
270
+ }
271
+ async TrackSuperSmsfEngagementStepActivationSucceeded() {
272
+ return this.trackEventAsync({
273
+ SuperSmsfEngagementStepActivationSucceeded: {}
274
+ });
275
+ }
276
+ async TrackSuperSmsfEngagementStepContinued(reason) {
277
+ return this.trackEventAsync({
278
+ SuperSmsfEngagementStepContinued: { reason }
279
+ });
280
+ }
281
+ async trackEventAsync(event) {
282
+ try {
283
+ await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
284
+ }
285
+ catch (_a) {
286
+ return;
287
+ }
288
+ }
289
+ }
290
+
291
+ exports.EventTrackingService = EventTrackingService;
292
+ exports.customFundChoiceApi = customFundChoiceApi;
293
+ exports.iframe = iframe;
294
+ exports.navigationService = navigationService;
295
+ exports.state = state;
296
+ exports.superSelectionAppStencilRoutes = superSelectionAppStencilRoutes;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const activeRouter = require('./active-router-1f555f75.js');
4
+
5
+ function injectHistory(Component) {
6
+ activeRouter.ActiveRouter.injectProps(Component, ['history', 'location']);
7
+ }
8
+
9
+ exports.injectHistory = injectHistory;
@@ -17,7 +17,7 @@ const defineCustomElements = (win, options) => {
17
17
  if (typeof window === 'undefined') return Promise.resolve();
18
18
  return patchEsm().then(() => {
19
19
  appGlobals.globalScripts();
20
- return index.bootstrapLazy([["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32],"accountId":[32],"partnerId":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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,"sss-button",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[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"]}]]]], options);
20
+ return index.bootstrapLazy([["sss-default-fund-router.cjs",[[0,"sss-default-fund-router",{"history":[16]}]]],["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32],"accountId":[32],"partnerId":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-default-fund-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[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,"sss-button",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[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"]}]]],["sss-default-fund.cjs",[[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}]]]], options);
21
21
  });
22
22
  };
23
23