@flarehr/apollo-super-selection 5.24.54264 → 5.25.54575

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 (144) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  3. package/dist/lib/apollo-super-selection/p-64e00db6.entry.js +14 -0
  4. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  5. package/dist/lib/apollo-super-selection/p-cf19c194.system.entry.js +69 -0
  6. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  7. package/dist/lib/cjs/loader.cjs.js +1 -1
  8. package/dist/lib/cjs/{sss-button_43.cjs.entry.js → sss-button_31.cjs.entry.js} +947 -2250
  9. package/dist/lib/collection/apollo-super-selection.css +1 -1
  10. package/dist/lib/collection/collection-manifest.json +1 -25
  11. package/dist/lib/collection/components/super-campaign/super-campaign.js +8 -16
  12. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +26 -25
  13. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -9
  14. package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +5 -9
  15. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +9 -13
  16. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate.js +4 -0
  17. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.js +3 -3
  18. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-smsf.js +2 -2
  19. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +3 -3
  20. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +3 -3
  21. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill.js +1 -1
  22. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +4 -16
  23. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -9
  24. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +1 -35
  25. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -3
  26. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +16 -13
  27. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +3 -17
  28. package/dist/lib/esm/apollo-super-selection.js +1 -1
  29. package/dist/lib/esm/loader.js +1 -1
  30. package/dist/lib/esm/{sss-button_43.entry.js → sss-button_31.entry.js} +948 -2239
  31. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  32. package/dist/lib/esm-es5/loader.js +1 -1
  33. package/dist/lib/esm-es5/sss-button_31.entry.js +69 -0
  34. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +4 -0
  35. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +0 -1
  36. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +1 -2
  37. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -10
  38. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +1 -2
  39. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate.d.ts +4 -0
  40. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -4
  41. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -3
  42. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -3
  43. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -2
  44. package/dist/lib/types/components.d.ts +2 -203
  45. package/package.json +1 -1
  46. package/dist/lib/apollo-super-selection/assets/icon-check.svg +0 -3
  47. package/dist/lib/apollo-super-selection/assets/logo-active.svg +0 -1
  48. package/dist/lib/apollo-super-selection/assets/logo-art.svg +0 -7
  49. package/dist/lib/apollo-super-selection/assets/logo-aus-eth.svg +0 -31
  50. package/dist/lib/apollo-super-selection/assets/logo-aware.svg +0 -58
  51. package/dist/lib/apollo-super-selection/assets/logo-first.svg +0 -15
  52. package/dist/lib/apollo-super-selection/assets/logo-hesta.svg +0 -5
  53. package/dist/lib/apollo-super-selection/assets/logo-mercer-mychoice.svg +0 -1
  54. package/dist/lib/apollo-super-selection/assets/logo-rei.svg +0 -27
  55. package/dist/lib/apollo-super-selection/assets/logo-slate.png +0 -0
  56. package/dist/lib/apollo-super-selection/assets/logo-spirit.svg +0 -141
  57. package/dist/lib/apollo-super-selection/assets/logo-unisuper.svg +0 -15
  58. package/dist/lib/apollo-super-selection/assets/logo-virgin.svg +0 -8
  59. package/dist/lib/apollo-super-selection/assets/unisuper-default-badge1.svg +0 -25
  60. package/dist/lib/apollo-super-selection/assets/unisuper-default-badge2.svg +0 -109
  61. package/dist/lib/apollo-super-selection/assets/unisuper-default-badge3.svg +0 -102
  62. package/dist/lib/apollo-super-selection/p-203c74a8.entry.js +0 -14
  63. package/dist/lib/apollo-super-selection/p-b0120851.system.entry.js +0 -69
  64. package/dist/lib/collection/components/super-selection-app/assets/icon-check.svg +0 -3
  65. package/dist/lib/collection/components/super-selection-app/consent/consent-wrapper.js +0 -32
  66. package/dist/lib/collection/components/super-selection-app/consent/consent.js +0 -88
  67. package/dist/lib/collection/components/super-selection-app/funds/constants.js +0 -43
  68. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/active.js +0 -26
  69. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/australian-ethical.js +0 -43
  70. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/australian-retirement-trust.js +0 -32
  71. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/aware.js +0 -38
  72. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/first.js +0 -27
  73. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/hesta-default.js +0 -34
  74. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/mercermychoice.js +0 -33
  75. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/rei.js +0 -33
  76. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/slate.js +0 -32
  77. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/spirit.js +0 -43
  78. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/unisuper-default-v2.js +0 -56
  79. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/unisuper-default.js +0 -49
  80. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/virgin.js +0 -37
  81. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-v1-page.js +0 -30
  82. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-v2-page.js +0 -30
  83. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +0 -10
  84. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +0 -125
  85. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +0 -271
  86. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-types.js +0 -1
  87. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/types.js +0 -15
  88. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +0 -143
  89. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +0 -30
  90. package/dist/lib/collection/components/super-selection-app/loading-component/loading-component.js +0 -29
  91. package/dist/lib/collection/components/super-selection-app/loading-super-indicator/loading-super-indicator.js +0 -11
  92. package/dist/lib/collection/components/super-selection-app/misc/iframe-host.js +0 -32
  93. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-active.svg +0 -1
  94. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-art.svg +0 -7
  95. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-aus-eth.svg +0 -31
  96. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-aware.svg +0 -58
  97. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-first.svg +0 -15
  98. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-hesta.svg +0 -5
  99. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-mercer-mychoice.svg +0 -1
  100. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-rei.svg +0 -27
  101. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-slate.png +0 -0
  102. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-spirit.svg +0 -141
  103. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-unisuper.svg +0 -15
  104. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-virgin.svg +0 -8
  105. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/unisuper-default-badge1.svg +0 -25
  106. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/unisuper-default-badge2.svg +0 -109
  107. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/unisuper-default-badge3.svg +0 -102
  108. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.js +0 -112
  109. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +0 -178
  110. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page-wrapper.js +0 -32
  111. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +0 -171
  112. package/dist/lib/esm-es5/sss-button_43.entry.js +0 -69
  113. package/dist/lib/types/components/super-selection-app/consent/consent-wrapper.d.ts +0 -5
  114. package/dist/lib/types/components/super-selection-app/consent/consent.d.ts +0 -9
  115. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -9
  116. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/active.d.ts +0 -3
  117. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/australian-ethical.d.ts +0 -3
  118. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/australian-retirement-trust.d.ts +0 -3
  119. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/aware.d.ts +0 -3
  120. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/first.d.ts +0 -3
  121. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/hesta-default.d.ts +0 -3
  122. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/mercermychoice.d.ts +0 -3
  123. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/rei.d.ts +0 -3
  124. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/slate.d.ts +0 -4
  125. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/spirit.d.ts +0 -3
  126. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/unisuper-default-v2.d.ts +0 -3
  127. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/unisuper-default.d.ts +0 -3
  128. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/virgin.d.ts +0 -3
  129. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-join-v1-page.d.ts +0 -5
  130. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-join-v2-page.d.ts +0 -5
  131. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +0 -10
  132. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.d.ts +0 -10
  133. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.d.ts +0 -12
  134. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-types.d.ts +0 -75
  135. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/types.d.ts +0 -26
  136. package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +0 -14
  137. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +0 -5
  138. package/dist/lib/types/components/super-selection-app/loading-component/loading-component.d.ts +0 -4
  139. package/dist/lib/types/components/super-selection-app/loading-super-indicator/loading-super-indicator.d.ts +0 -3
  140. package/dist/lib/types/components/super-selection-app/misc/iframe-host.d.ts +0 -6
  141. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.d.ts +0 -10
  142. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.d.ts +0 -12
  143. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page-wrapper.d.ts +0 -5
  144. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -10
@@ -1,69 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();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,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-80178f87.system.js"],(function(e,t){"use strict";var n,r,i,a,o,s,u,l,c,d,f,p,m,h,v,g,y,b,w,x,S,C,_,F,I,N,A;return{setters:[function(e){n=e.r;r=e.h;i=e.g;a=e.f;o=e.a;s=e.H;u=e.c;l=e.F;c=e.s;d=e.d;f=e.e},function(e){p=e.f;m=e.m;h=e.S;v=e.a;g=e.i;y=e.b;b=e.O;w=e.c;x=e.d;S=e.g;C=e.h;_=e.j;F=e.k;I=e.l;N=e.Q},function(e){A=e.A}],execute:function(){var E;function k(){}function T(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(T((function(n,r){return p(e(n,r)).pipe(m((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new P(e,n))}}var P=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new D(e,this.project,this.concurrent))};return e}();var D=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new v(this);var n=this.destination;n.add(t);var r=g(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(h);function M(e,t,n,r){if(w(n)){r=n;n=undefined}if(r){return M(e,t,n).pipe(m((function(e){return y(e)?r.apply(void 0,e):r(e)})))}return new b((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}O(e,t,i,r,n)}))}function O(e,t,n,r,i){var a;if(U(e)){var o=e;e.addEventListener(t,n,i);a=function(){return o.removeEventListener(t,n,i)}}else if(R(e)){var s=e;e.on(t,n);a=function(){return s.off(t,n)}}else if(L(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var l=0,c=e.length;l<c;l++){O(e[l],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function L(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function R(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function U(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function B(e,t){if(t===void 0){t=x}return function(n){return n.lift(new V(e,t))}}var V=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new j(e,this.dueTime,this.scheduler))};return e}();var j=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(q,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(S);function q(e){e.debouncedNext()}function z(e,t,n){return function r(i){return i.lift(new H(e,t,n))}}var H=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new W(e,this.nextOrObserver,this.error,this.complete))};return e}();var W=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=k;a._tapError=k;a._tapComplete=k;a._tapError=r||k;a._tapComplete=i||k;if(w(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||k;a._tapError=n.error||k;a._tapComplete=n.complete||k}return a}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(S);var G="5.24.54264";var J=function(e){return e._tag==="Some"};var K=function(e){return e._tag==="None"};var X={_tag:"None"};var Y=function(e){return{_tag:"Some",value:e}};function $(e){return e==null?X:Y(e)}function Q(e){return K(e)?undefined:e.value}var Z=function(e){return function(t){return K(t)?e():t.value}};var ee=Z;var te=function(){function e(e){this.factory=e;this._value=X}Object.defineProperty(e.prototype,"value",{get:function(){if(J(this._value)){return this._value.value}var e=this.factory();this._value=Y(e);return e},enumerable:false,configurable:true});return e}();function ne(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function re(e){A.injectProps(e,["history","location"])}var ie="/";var ae="./";var oe=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var se=function(e,t){var n=[];var r=0;var i=0;var a="";var o=t&&t.delimiter||ie;var s=t&&t.delimiters||ae;var u=false;var l;while((l=oe.exec(e))!==null){var c=l[0];var d=l[1];var f=l.index;a+=e.slice(i,f);i=f+c.length;if(d){a+=d[1];u=true;continue}var p="";var m=e[i];var h=l[2];var v=l[3];var g=l[4];var y=l[5];if(!u&&a.length){var b=a.length-1;if(s.indexOf(a[b])>-1){p=a[b];a=a.slice(0,b)}}if(a){n.push(a);a="";u=false}var w=p!==""&&m!==undefined&&m!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var C=p||o;var _=v||g;n.push({name:h||r++,prefix:p,delimiter:C,optional:S,repeat:x,partial:w,pattern:_?le(_):"[^"+ue(C)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var ue=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var le=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var ce=function(e){return e&&e.sensitive?"":"i"};var de=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var fe=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(he(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",ce(n))};var pe=function(e,t,n){return me(se(e,n),t,n)};var me=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=ue(n.delimiter||ie);var o=n.delimiters||ae;var s=[].concat(n.endsWith||[]).map(ue).concat("$").join("|");var u="";var l=false;for(var c=0;c<e.length;c++){var d=e[c];if(typeof d==="string"){u+=ue(d);l=c===e.length-1&&o.indexOf(d[d.length-1])>-1}else{var f=ue(d.prefix||"");var p=d.repeat?"(?:"+d.pattern+")(?:"+f+"(?:"+d.pattern+"))*":d.pattern;if(t)t.push(d);if(d.optional){if(d.partial){u+=f+"("+p+")?"}else{u+="(?:"+f+"("+p+"))?"}}else{u+=f+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+a+"(?="+s+"))?";if(!l)u+="(?="+a+"|"+s+")"}return new RegExp("^"+u,ce(n))};var he=function(e,t,n){if(e instanceof RegExp){return de(e,t)}if(Array.isArray(e)){return fe(e,t,n)}return pe(e,t,n)};var ve=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var ge=function(e,t){return ve(e,t)?e.substr(t.length):e};var ye=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var be=function(e){return e.charAt(0)==="/"?e:"/"+e};var we=function(e){return e.charAt(0)==="/"?e.substr(1):e};var xe=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var a=t.indexOf("?");if(a!==-1){n=t.substr(a);t=t.substr(0,a)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var Se=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var Ce=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var _e=function(e){return e.charAt(0)==="/"};var Fe=function(e){return Math.random().toString(36).substr(2,e)};var Ie=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var Ne=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var a=e&&e.split("/")||[];var o=e&&_e(e);var s=t&&_e(t);var u=o||s;if(e&&_e(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var l=n[n.length-1];r=l==="."||l===".."||l===""}else{r=false}for(var c=n.length;c>=0;c--){var d=n[c];if(d==="."){Ie(n,c)}else if(d===".."){Ie(n,c);i++}else if(i){Ie(n,c);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!_e(n[0]))){n.unshift("")}var f=n.join("/");if(r&&f.substr(-1)!=="/"){f+="/"}return f};var Ae=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Ae(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var a=t.valueOf();if(i!==e||a!==t){return Ae(i,a)}var o=Object.keys(e);var s=Object.keys(t);if(o.length!==s.length){return false}return o.every((function(n){return Ae(e[n],t[n])}))}return false};var Ee=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Ae(e.state,t.state)};var ke=function(e,t,n,r){var i;if(typeof e==="string"){i=xe(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=Ne(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=Ce(i.search||"");return i};var Te=0;var Pe={};var De=1e4;var Me=function(e,t){var n=""+t.end+t.strict;var r=Pe[n]||(Pe[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var o=he(e,a,t);var s={re:o,keys:a};if(Te<De){r[i]=s;Te+=1}return s};var Oe=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,a=i===void 0?false:i,o=t.strict,s=o===void 0?false:o;var u=Me(r,{end:a,strict:s}),l=u.re,c=u.keys;var d=l.exec(e);if(!d){return null}var f=d[0],p=d.slice(1);var m=e===f;if(a&&!m){return null}return{path:r,url:r==="/"&&f===""?"/":f,isExact:m,params:c.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Le=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&Ae(e.params,t.params)};var Re;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Re||(Re={}));var Ue=e("sss_button",function(){function e(e){n(this,e);this.fillWidth=false;this.fillWidthOnMobile=false;this.disabled=false;this.variant="primary";this.size="base";this.promiseFn=function(){return Promise.resolve()};this.state=Re.Available}e.prototype.render=function(){var e;var t=this;var n={xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"};return r("button",{"data-testid":this.testid,class:(e={},e[n[this.size]]=true,e["inline-flex items-center justify-center border font-medium"]=true,e["rounded-md shadow-sm focus:outline-none focus:ring-2"]=true,e["focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto"]=true,e["disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400"]=true,e["border-transparent text-white bg-primary-base hover:bg-primary-hover"]=this.variant==="primary",e["border-gray-300 text-gray-700 bg-white hover:bg-gray-50"]=this.variant==="secondary",e["border-transparent bg-primary-light hover:bg-primary-base text-primary-dark hover:text-white"]=this.variant==="light",e["w-full"]=this.fillWidth||this.fillWidthOnMobile,e["sm:w-auto"]=this.fillWidthOnMobile,e),disabled:this.disabled,onClick:function(){return t.clicked()}},this.state===Re.Pending&&r("sss-loading-indicator",{theme:this.variant==="primary"?"light":"primary",size:16}),r("div",{class:{hidden:this.state===Re.Pending}},r("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.promiseFn||this.state===Re.Pending)return[2];t.label=1;case 1:t.trys.push([1,3,,4]);this.state=Re.Pending;return[4,this.promiseFn()];case 2:t.sent();this.state=Re.Available;return[3,4];case 3:e=t.sent();this.state=Re.Error;throw e;case 4:return[2]}}))}))};return e}());function Be(e,t,n){return n={path:t,exports:{},require:function(e,t){return Ve()}},e(n,n.exports),n.exports}function Ve(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var je=Be((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function a(e){return function(t,n){return e(n,t)}}t.flip=a;function o(e,t,n,r,i,a,o,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=o;function s(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=s;function u(e){return e+1}t.increment=u;function l(e){return e-1}t.decrement=l;function c(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=c;function d(e){return function(t){return e.apply(void 0,t)}}t.tupled=d;function f(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=f;function p(e,t,n,r,i,a,o,s,u,l,c,d,f,p,m,h,v,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return a(i(r(n(t(e)))));case 7:return o(a(i(r(n(t(e))))));case 8:return s(o(a(i(r(n(t(e)))))));case 9:return u(s(o(a(i(r(n(t(e))))))));case 10:return l(u(s(o(a(i(r(n(t(e)))))))));case 11:return c(l(u(s(o(a(i(r(n(t(e))))))))));case 12:return d(c(l(u(s(o(a(i(r(n(t(e)))))))))));case 13:return f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))));case 14:return p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))));case 15:return m(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))));case 16:return h(m(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))));case 17:return v(h(m(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))))));case 18:return g(v(h(m(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))))));case 19:return y(g(v(h(m(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(v(h(m(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=c;var m=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=m;var h=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=h}));var qe=Be((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function a(e){return e==null?t.none:t.some(e)}t.fromNullable=a;function o(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=o;function s(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=s;function u(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=u;function l(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=l;t.fromEither=l;function c(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=c;function d(e){return t.isNone(e)?null:e.value}t.toNullable=d;function f(e){return t.isNone(e)?undefined:e.value}t.toUndefined=f;var p=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=p;t.getOrElse=t.getOrElseW;function m(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return a(e.apply(void 0,t))}}t.fromNullableK=m;t.mapNullable=h;function h(e){return function(n){return t.isNone(n)?t.none:a(e(n.value))}}t.chainNullableK=h;var v=function(e,n){return je.pipe(e,t.map(n))};var g=function(e,n){return je.pipe(e,t.ap(n))};var y=function(e,n){return je.pipe(e,t.chain(n))};var b=function(e,n,r){return je.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return je.pipe(e,n(t))}};var x=function(e,n,r){return je.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return je.pipe(e,n(t))}};var C=function(e,n){return je.pipe(e,t.alt(n))};var _=function(e,n){return je.pipe(e,t.filter(n))};var F=function(e,n){return je.pipe(e,t.filterMap(n))};var I=function(e,n){return je.pipe(e,t.extend(n))};var N=function(e,n){return je.pipe(e,t.partition(n))};var A=function(e,n){return je.pipe(e,t.partitionMap(n))};var E=function(e){var n=t.wither(e);return function(e,t){return je.pipe(e,n(t))}};var k=function(e){var n=t.wilt(e);return function(e,t){return je.pipe(e,n(t))}};var T=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=T;var P=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=P;var D=function(e){return je.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=D;var M=function(e){return je.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=M;t.of=t.some;var O=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=O;var L=function(e){return t.chain((function(n){return je.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=L;t.flatten=t.chain(je.identity);var R=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=R;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var B=function(){return t.none};t.throwError=B;var V=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=V;t.duplicate=t.extend(je.identity);var j=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=j;var q=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=q;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var H={left:t.none,right:t.none};var W=function(e){var n=je.pipe(e,t.map((function(e){return{left:u(e),right:l(e)}})));return t.isNone(n)?H:n.value};t.separate=W;var G=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=G;var J=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=J;var K=function(e){return function(t){return{left:_(t,(function(t){return!e(t)})),right:_(t,e)}}};t.partition=K;var X=function(e){return je.flow(t.map(e),t.separate)};t.partitionMap=X;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Q=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Q;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:u(e),right:l(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ae(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ae;function oe(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=oe;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:v};t.Applicative={URI:t.URI,map:v,ap:g,of:t.of};t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:x};t.Alt={URI:t.URI,map:v,alt:C};t.Alternative={URI:t.URI,map:v,ap:g,of:t.of,alt:C,zero:t.zero};t.Extend={URI:t.URI,map:v,extend:I};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:v,compact:t.compact,separate:t.separate,filter:_,filterMap:F,partition:N,partitionMap:A};t.Traversable={URI:t.URI,map:v,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:v,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:_,filterMap:F,partition:N,partitionMap:A,wither:E,wilt:k};t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:v,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,zero:t.zero,alt:C,extend:I,compact:t.compact,separate:t.separate,filter:_,filterMap:F,partition:N,partitionMap:A,wither:E,wilt:k,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function le(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=le;function ce(e){return function(n){return t.isSome(e(n))}}t.getRefinement=ce;t.Do=t.of({});var de=function(e){return t.map(je.bindTo_(e))};t.bindTo=de;var fe=function(e,n){return t.chain((function(r){return je.pipe(n(r),t.map((function(t){return je.bind_(r,e,t)})))}))};t.bind=fe;var pe=function(e,n){return je.flow(t.map((function(t){return function(n){return je.bind_(t,e,n)}})),t.ap(n))};t.apS=pe;var me=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var a=e(i,n[i]);if(t.isNone(a)){return t.none}r.push(a.value)}return t.some(r)}};t.traverseArrayWithIndex=me;var he=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=he;t.sequenceArray=t.traverseArray(je.identity)}));var ze=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var He=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var We=function(e){return!("isConnected"in e)||e.isConnected};var Ge=He((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(We))}}),2e3);var Je=function(e){var t=e.on;var n=new Map;if(typeof i==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=i();if(t){ze(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(a))}Ge(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(a)}));Ge(n)}))}};var Ke=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var a=function(){r.dispose.forEach((function(e){return e()}));i()};var o=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var s=function(e,i){var a=n.get(e);if(t(i,a,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,a)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){s(t,n);return true}});var l=function(e,t){r[e].push(t);return function(){Xe(r[e],t)}};var c=function(t,n){var r=l("set",(function(e,r){if(e===t){n(r)}}));var i=l("reset",(function(){return n(e[t])}));return function(){r();i()}};var d=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:o,set:s,on:l,onChange:c,use:d,dispose:a,reset:i}};var Xe=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var Ye=function(e,t){var n=Ke(e,t);Je(n);return n};function $e(e){this.message=e}$e.prototype=new Error,$e.prototype.name="InvalidCharacterError";var Qe="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new $e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function Ze(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Qe(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Qe(t)}}function et(e){this.message=e}function tt(e,t){if("string"!=typeof e)throw new et("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Ze(e.split(".")[n]))}catch(e){throw new et("Invalid token specified: "+e.message)}}et.prototype=new Error,et.prototype.name="InvalidTokenError";var nt=undefined&&undefined.__assign||function(){nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return nt.apply(this,arguments)};var rt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var it=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=nt({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?rt(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=it(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var at=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var ot={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,a=n.instance,o=a===void 0?false:a;var s=[];for(var u=2;u<arguments.length;u++){s[u-2]=arguments[u]}var l=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!l)throw new Error(e+" is not defined");return o&&l?new(l.bind.apply(l,at([void 0],s))):l}};var st=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);lt.callbacks.delete(t);if(lt.callbacks.size<1){lt.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var ut=function(e,t){if(!lt.observer&&e&&t){lt.observer=new t((function(t){lt.callbacks.forEach((function(n,r){st(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return lt.observer};var lt={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=ot.polyfill("performance",{doThrow:false});var r=ot.polyfill("PerformanceObserver",{doThrow:false});if(!ut(n,r))return;if(!st(n,e,t,n)){if(lt.callbacks.size<1)lt.observer.observe({entryTypes:["resource","measure"]});lt.callbacks.set(e,t)}}};var ct=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var dt=function(){function e(e){this.error=e}return e}();var ft=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,a=e._options;var o=new Map(n);var s=it(ot.defaults,a);var u=ot.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var l={ref:null,clear:function(){if(l.ref){clearTimeout(l.ref);l.ref=null}}};var c=ct(i)(ot.polyfill("fetch"))(t,s);var d=c.catch((function(e){throw new dt(e)})).then((function(e){l.clear();if(!e.ok){return e[ot.errorType||"text"]().then((function(t){var n=new Error(t);n[ot.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var f=function(t){return t.catch((function(t){l.clear();var n=t instanceof dt?t.error:t;if(t instanceof dt&&o.has("__fromFetch"))return o.get("__fromFetch")(n,e);else if(o.has(n.status))return o.get(n.status)(n,e);else if(o.has(n.name))return o.get(n.name)(n,e);else throw n}))};var p=function(e){return function(t){return e?f(d.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):f(d.then((function(e){return t?t(e):e})))}};var m={res:p(null),json:p("json"),blob:p("blob"),formData:p("formData"),arrayBuffer:p("arrayBuffer"),text:p("text"),perfs:function(e){c.then((function(t){return lt.observe(t.url,e)}));return m},setTimeout:function(e,t){if(t===void 0){t=u}l.clear();l.ref=setTimeout((function(){return t.abort()}),e);return m},controller:function(){return[u,m]},error:function(e,t){o.set(e,t);return m},badRequest:function(e){return m.error(400,e)},unauthorized:function(e){return m.error(401,e)},forbidden:function(e){return m.error(403,e)},notFound:function(e){return m.error(404,e)},timeout:function(e){return m.error(408,e)},internalError:function(e){return m.error(500,e)},fetchError:function(e){return m.error("__fromFetch",e)},onAbort:function(e){return m.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),m)};var pt=undefined&&undefined.__assign||function(){pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return pt.apply(this,arguments)};var mt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var ht="application/json";var vt="Content-Type";var gt=function(){function e(e,t,n,r,i,a){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(a===void 0){a=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=a}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,a=n.options,o=a===void 0?this._options:a,s=n.catchers,u=s===void 0?this._catchers:s,l=n.resolvers,c=l===void 0?this._resolvers:l,d=n.middlewares,f=d===void 0?this._middlewares:d,p=n.deferredChain,m=p===void 0?this._deferredChain:p;return new e(i,pt({},o),new Map(u),mt(c),mt(f),mt(m))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}ot.defaults=t?it(ot.defaults,e):e;return this};e.prototype.errorType=function(e){ot.errorType=e;return this};e.prototype.polyfills=function(e){ot.polyfills=pt(pt({},ot.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?it(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:yt(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:it(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[vt]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:pt(pt({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:mt(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:mt(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:mt(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==vt.toLowerCase()||n.startsWith(ht)})))?this.json(n):this.body(n);i=i.options(pt(pt({},t),{method:e}));var a=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return ft(a)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:pt(pt({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===vt.toLowerCase()&&n.startsWith(ht)})))===null||t===void 0?void 0:t[1];return this.content(n||ht).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(bt(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:xt(e)).content("application/x-www-form-urlencoded")};return e}();var yt=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=ot.polyfill("URLSearchParams",{instance:true});for(var a in t){if(t[a]instanceof Array){for(var o=0,s=t[a];o<s.length;o++){var u=s[o];i.append(a,u)}}else{i.append(a,t[a])}}r=i.toString()}var l=e.split("?");if(n||l.length<2)return l[0]+"?"+r;return e+"&"+r};function bt(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=ot.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],a=e[1];var o=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);o=o?o+"["+i+"]":i;if(a instanceof Array){for(var s=0,u=a;s<u.length;s++){var l=u[s];n.append(o+"[]",l)}}else if(t&&typeof a==="object"&&(!(t instanceof Array)||!t.includes(i))){if(a!==null){bt(a,t,n,mt(r,[i]))}}else{n.append(o,a)}}));return n}function wt(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function xt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return wt(t,e)})).join("&")}return wt(t,n)})).join("&")}var St=gt.factory;St["default"]=gt.factory;function Ct(){var e=Rt.jwt;var t=Rt.profileId;var n=Rt.accountIdOrDefault;var r=Rt.partnerIdOrDefault;return St(Rt.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}function _t(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function Ft(e){switch(e.kind){case"slate":return X;case"australianRetirementTrust":return Y(e.australianRetirementTrust.usi);case"aware":return Y(e.aware.usi);case"active":return Y(e.active.usi);case"australianEthical":return Y(e.australianEthical.usi);case"virgin":return Y(e.virgin.usi);case"spirit":return Y(e.spirit.usi);case"firstSuper":return Y(e.firstSuper.usi);case"mercerMyChoice":return Y(e.mercerMyChoice.usi);case"generic":return Y(e.generic.usi);default:return X}}function It(e){switch(e.kind){case"slate":return"slate";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 e.generic.fundId;default:return""}}function Nt(e){switch(e.kind){case"Promoted":return Ft(e.promoted);case"MyOwnFund":return Y(e.myOwnFund.usi);case"SMSF":return X;case"Default":return Y(e.default.usi);case"PromotedDefault":return Y(e.promotedDefault.usi);case"DefinedBenefits":return Y(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return Y(e.promotedDefaultWithJoin.usi);default:return X}}function At(e){switch(e.kind){case"slate":return Y(e.slate.memberNumber);case"australianRetirementTrust":return Y(e.australianRetirementTrust.memberNumber);case"aware":return Y(e.aware.memberNumber);case"active":return Y(e.active.memberNumber);case"australianEthical":return Y(e.australianEthical.memberNumber);case"virgin":return Y(e.virgin.memberNumber);case"spirit":return Y(e.spirit.memberNumber);case"firstSuper":return Y(e.firstSuper.memberNumber);case"mercerMyChoice":return Y(e.mercerMyChoice.memberNumber);case"generic":return Y(e.generic.memberNumber);default:return X}}function Et(e){switch(e.kind){case"Promoted":return At(e.promoted);case"MyOwnFund":return Y(e.myOwnFund.memberNumber);case"DefinedBenefits":return Y(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return Y(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return X;default:return X}}function kt(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var Tt=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,Ct().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,Ct().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,Ct().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){kt(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":_t(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.getCampaignConnectAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Ct().url("campaign-connect").get().notFound((function(){throw new Error("Failed to fetch campaign connect.")})).json()]}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var Pt=new Tt;var Dt;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(Dt||(Dt={}));var Mt=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var Ot={apiBaseUrl:qe.none,appBaseUrl:qe.none,profileId:qe.none,jwt:qe.none,superBuyer:qe.none,superChoicePrefill:qe.none,promotedFunds:qe.none,accountConfiguration:qe.none,profileConfiguration:qe.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,campaignConnectEnabled:false,isDefinedBenefitsEligible:qe.none,campaignConnect:qe.none,superCampaignEnabled:false,superCampaignState:undefined,superCampaignComponentStatus:Dt.NotLoaded,superCampaignIsInView:false};var Lt=function(){function e(){var e=this;var t=Ye(Ot),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=je.pipe(t,qe.chain((function(e){return qe.fromNullable(tt(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(qe.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(qe.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(qe.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(this._state.campaignConnectEnabled&&qe.isSome(this._state.campaignConnect)){return this._state.campaignConnect.value.promotedFunds.map((function(e){return e.fundId}))}if(qe.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return qe.fromNullable(this.superCampaignState.DefaultFundPosition)}if(this._state.campaignConnectEnabled&&qe.isSome(this._state.campaignConnect)){var e=this._state.campaignConnect.value.promotedFunds.findIndex((function(e){return e.type==="promoted-default"}));if(e===-1){return qe.fromNullable(null)}else{return qe.fromNullable(e+1)}}return qe.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:qe.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":qe.isSome(this._state.campaignConnect)?"campaignConnect":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"definedBenefitsFundId",{get:function(){if(qe.isSome(this._state.campaignConnect)){var e=this._state.campaignConnect.value.promotedFunds.find((function(e){return e.type=="defined-benefits"}));return qe.fromNullable(e===null||e===void 0?void 0:e.fundId)}return qe.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(qe.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){var e=je.pipe(this._state.profileConfiguration,qe.map((function(e){return qe.fromNullable(e.defaultFundUsi)})),qe.flatten);if(qe.isSome(e)){return e}return je.pipe(this._state.accountConfiguration,qe.map((function(e){return qe.fromNullable(e.defaultFundUsi)})),qe.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return je.pipe(this._state.accountConfiguration,qe.map((function(e){return e.accountId})),qe.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return je.pipe(this._state.superBuyer,qe.map((function(e){return e.partnerId})),qe.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(qe.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"campaignConnectEnabled",{get:function(){return this._state.campaignConnectEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable:true});e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,Pt.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=qe.fromNullable(e.accountConfiguration);this._state.profileConfiguration=qe.fromNullable(e.profileConfiguration);this._state.superBuyer=qe.fromNullable(e.superBuyer);this._state.promotedFunds=qe.fromNullable(e.promotedFunds);this._state.campaignConnectEnabled=e.campaignConnectEnabled;this._state.superCampaignEnabled=e.superCampaignEnabled;this._state.superChoicePrefill=qe.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=qe.fromNullable(e.isDefinedBenefitsEligible);return[2]}}))}))};e.prototype.loadCampaignConnectAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this._state.campaignConnectEnabled)return[3,2];return[4,Pt.getCampaignConnectAsync()];case 1:e=t.sent();this._state.campaignConnect=qe.fromNullable(e);t.label=2;case 2:return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e){return Pt.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:e?e:this.promotedFundsConfig.shownFunds}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===Dt.Loaded){this._state.superCampaignComponentStatus=Dt.Loaded;this._state.superCampaignState=new Mt}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSuperCampaignFallbackActivated",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignComponentStatus===Dt.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignIsInView",{get:function(){return this._state.superCampaignIsInView},set:function(e){this._state.superCampaignIsInView=e},enumerable:false,configurable:true});return e}();var Rt=new Lt;var Ut={create:function(e){var t="Not set";if(qe.isSome(Rt.isDefinedBenefitsEligible)){t=Rt.isDefinedBenefitsEligible.value?"True":"False"}return{isDefinedBenefitsEligible:t,superCampaignEnabled:e}}};var Bt={fund:{id:"",type:"null"}};var Vt=Ye(Bt),jt=Vt.state,qt=Vt.reset;var zt=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("analytics-events").post(e).res()]}))}))};return e}();var Ht=function(){function e(){this.eventTrackingApi=zt.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();function Wt(){Gt({type:"appReady"})}function Gt(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function Jt(e,t){Gt({type:"contentResized",height:e,width:t})}function Kt(e){Gt({type:"pageNavigated",url:e})}function Xt(){Gt({type:"complete"})}function Yt(){Gt({type:"submitSuccess"})}var $t={appReady:Wt,resize:Jt,navigation:Kt,complete:Xt,submitSuccess:Yt};var Qt={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var Zt=Ye(Qt).state;var en;(function(e){e["ConsentPage"]="/consent";e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["SlateJoin"]="/slate/join/";e["PromotedFundJoinV1"]="/promoted-fund/join/v1";e["PromotedFundJoinV2"]="/promoted-fund/join/v2";e["MyOwnFund"]="/super-choice/my-own-fund/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(en||(en={}));var tn=[r("stencil-route",{url:en.ConsentPage,component:"sss-consent-page-wrapper"}),r("stencil-route",{url:en.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:en.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:en.ChoicePage,component:"sss-super-choice-page-wrapper"}),r("stencil-route",{url:en.SlateJoin,component:"sss-slate-join-page"}),r("stencil-route",{url:en.PromotedFundJoinV1,component:"sss-promoted-fund-join-v1-page"}),r("stencil-route",{url:en.PromotedFundJoinV2,component:"sss-promoted-fund-join-v2-page"}),r("stencil-route",{url:en.MyOwnFund,component:"sss-my-own-fund"}),r("stencil-route",{url:en.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:en.Prefill,component:"sss-prefill"}),r("stencil-route",{url:en.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:en.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:en.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:en.SelfManagedFund,component:"sss-self-managed-fund"}),r("stencil-route",{url:en.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:en.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:en.Success,component:"sss-success"})];var nn=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);$t.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){Zt.handleSubmitFn=e.handleSubmitFn;Zt.fundName=e.fundName;Zt.fundDetails=e.fundDetails;Zt.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,en.StandardChoice)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=Rt.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var rn=new nn;var an=function(e,t){return r("a",{class:e.className||"font-medium underline underline-offset-2 hover:text-gray-600",target:"_blank",href:rn.toExternalUrl(e.href),onClick:e.onClick},t)};var on="Powered by Flare FS";function sn(e,t){return Ht.Instance.TrackSuperFundPdsViewedAsync({fundUsi:t,fundName:e,pageName:"Panel Fund Page",superCampaignEnabled:false})}var un=e("sss_consent_page",function(){function e(e){n(this,e);this.campaignConnectRequestInProgress=false;this.eventTrackingService=Ht.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync(Ut.create(false))};e.prototype.render=function(){var e=this;if(this.campaignConnectRequestInProgress){return r("sss-loading-super-indicator",null)}return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center leading-8"},"Important information about super"),r("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7 sm:leading-8"},"The choice of superannuation fund is an important personal financial decision. Next, you’ll be asked to nominate a super fund to receive your employer contributions."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"border shadow-sm p-4 pb-6 sm:p-6 sm:pb-8 max-w-560 rounded-lg"},r("div",{class:"sm:text-lg font-bold leading-6"},"By clicking “Continue” you acknowledge that:"),r("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 text-sm leading-6"},r("li",null,"Flare (we/us) provides this paperless employee management service, will feature superannuation funds and offer you employee benefits that you may be interested in;"),r("li",null,"all content contained in the following pages does not take into account any of your objectives, financial situation or needs and does not constitute financial product advice;"),r("li",null,"in featuring any superannuation funds, we, the technology partner you are accessing us via, or your employer, are not providing any opinion or recommendation (actual or implied) in relation to the suitability or appropriateness of the featured funds;"),r("li",null,"Trustees of the featured superannuation funds pay fees to Flare and/or its associates. Some funds pay us a fee if you choose one of the featured funds, while others pay us to have their application form on our platform;"),r("li",null,"in the event that you choose one of the featured superannuation funds, we may pass on your personal information and TFN to a related party for the purpose of completing your chosen fund's application form."),r("li",null,"Your personal data that is provided to us will be subject to our"," ",r(an,{className:"font-medium text-blue-600 hover:text-blue-800",href:"https://www.flarehr.com/privacy-policy"},"Privacy Policy"),".")),r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSuperFundDisclaimerAccepted()}},"Continue"))))};e.prototype.handleSuperFundDisclaimerAccepted=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync({superCampaignEnabled:false})];case 1:e.sent();if(!Rt.campaignConnectEnabled)return[3,3];this.campaignConnectRequestInProgress=true;return[4,Rt.loadCampaignConnectAsync()];case 2:e.sent();if(Rt.isDefinedBenefitsEligible&&qe.isSome(Rt.definedBenefitsFundId)){jt.fund={id:Rt.definedBenefitsFundId.value,type:"DefinedBenefits"};rn.navigateInternally(this.history,en.PromotedFundJoinV2);return[2]}e.label=3;case 3:rn.navigateInternally(this.history,en.ChoicePage);return[2]}}))}))};return e}());re(un);var ln=e("sss_consent_page_wrapper",function(){function e(e){n(this,e)}e.prototype.render=function(){return Rt.state.superCampaignEnabled?r("sss-super-campaign-host",null):r("sss-consent-page",null)};return e}());re(ln);var cn;(function(e){e["MyOwnFund"]="Your current super fund";e["DefaultFund"]="Your employer's default fund";e["SelfManagedFund"]="Your self-managed super fund"})(cn||(cn={}));var dn={continueAllowed:false,nextRoute:"/",myOwnFundForm:{fundUsi:X,fundName:X,memberNumber:X,memberFirstName:X,memberFamilyName:X},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""},currentCustomFundType:cn.MyOwnFund,customFunds:[{label:cn.MyOwnFund,value:en.MyOwnFund},{label:cn.SelfManagedFund,value:en.SelfManagedFund},{label:cn.DefaultFund,value:en.DefaultFund}]};var fn=Ye(dn),pn=fn.state,mn=fn.reset;var hn=pn.customFunds;var vn=e("sss_custom_fund",function(){function e(e){n(this,e);this.currentCustomFund=hn[0];this.fundOptionsList=hn;this.showFundOptionsSelection=false}e.prototype.componentWillLoad=function(){var e="";if(window.location.pathname.includes(en.MyOwnFund))e=en.MyOwnFund;if(window.location.pathname.includes(en.DefaultFund))e=en.DefaultFund;if(window.location.pathname.includes(en.SelfManagedFund))e=en.SelfManagedFund;this.currentCustomFund=hn.find((function(t){return t.value===e}))||hn[0];rn.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;var t=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},r("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}))};var n=function(){return r("svg",{class:"h-5 w-5 fill-primary-base group-hover:fill-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},r("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}))};return r("div",{class:"max-w-560 relative"},r("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),r("div",{class:"mt-1 mb-4"},r("button",{type:"button",class:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-primary-focus focus:border-primary-base text-base sm:text-sm",onClick:function(){return e.showFundOptionsSelection=!e.showFundOptionsSelection}},r("span",{class:{"block truncate":true,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},r(t,null))),this.showFundOptionsSelection&&r("ul",{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none text-base sm:text-sm"},this.fundOptionsList.map((function(t){return r("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base",onClick:function(){e.showFundOptionsSelection=!e.showFundOptionsSelection;rn.navigateInternally(e.history,t.value)}},r("span",{class:{"block truncate":true,"font-semibold":e.currentCustomFund===t}},t.label),e.currentCustomFund===t&&r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},r(n,null)))})))),r("div",{onClick:function(){return e.showFundOptionsSelection=false}},r("slot",null)))};return e}());re(vn);var gn=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,Pt.getAustralianFundsAsync({searchString:e,maxRecordCount:t})]}))}))};e.prototype.getFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,Pt.getAustralianFundAsync(e,t)];case 1:n=r.sent();return[2,qe.some(n)]}}))}))};return e}();var yn=new gn;var bn=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,Ct().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var wn=new bn;var xn=e("sss_default_fund",function(){function e(e){n(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=Ht.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=Rt.defaultFundUsi;if(qe.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,yn.getFundAsync(e.value,true)];case 1:t=n.sent();if(qe.isNone(t)){this.isInvalidDefaultFund=true;return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){var e,t,n,r;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:(t=(e=this.defaultFund)===null||e===void 0?void 0:e.usi)!==null&&t!==void 0?t:"",fundName:(r=(n=this.defaultFund)===null||n===void 0?void 0:n.productName)!==null&&r!==void 0?r:"",promotedFundsShown:Rt.promotedFunds,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)})};e.prototype.render=function(){var e=this;return r(s,null,r("sss-header-section",{currentPage:"own-fund"}),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},r("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:o("assets/icon-exclamation.svg")})),r("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},r("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&r("div",null,r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),r("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),r("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),r("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),r("div",{class:"text-sm text-gray-700"},r("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),r("ul",{class:"list-disc list-outside pl-5"},r("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),r("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),r("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&r("div",{class:"mb-4"},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()}},"Continue")),r("stencil-route-link",{url:en.ChoicePage},r("sss-button",{testid:"back-button",fillWidth:true,variant:"secondary"},"Back")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(this.isInvalidDefaultFund){return[2]}rn.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,wn.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:t},Rt.promotedFundsConfig))];case 1:e.sent();return[2]}}))}))}});return[2]}))}))};return e}());var Sn="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";var Cn=3;var _n=e("sss_dropdown_async",function(){function e(e){var t=this;n(this,e);this.valueChanged=u(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=Cn;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var n;return t.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=t.minSearchStringLength&&((n=t.selectedOption)===null||n===void 0?void 0:n.label)!==e};this.onBeginSearch=function(e){t.inputValue=e;t.searchState="in progress"};this.onCompleteSearch=function(e){t.highlightedOptionIndex=undefined;switch(e.kind){case"too-many-results":t.searchState="too many results";t.filteredOptions=[];break;case"success":t.searchState="done";t.filteredOptions=e.value;break;default:t.searchState="done";t.filteredOptions=[];break}};this.renderFilteredResults=function(){if(t.searchState==="pristine"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results")}if(t.searchState==="in progress"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching...")}if(t.searchState==="too many results"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Keep typing to narrow down your search.")}if(t.filteredOptions.length===0){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search")}return t.filteredOptions.map((function(e,n){return r("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":true,"bg-primary-base":t.isOptionSelected(e)},onClick:function(r){t.highlightedOptionIndex=n;t.toggleDropdown(false);t.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,n;t.inputValue=(n=(e=t.selectedOption)===null||e===void 0?void 0:e.label)!==null&&n!==void 0?n:""};this.toggleDropdown=function(e){t.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var n="Enter";var r="ArrowDown";var i="ArrowUp";var a="Escape";switch(e.key){case r:t.toggleDropdown(true);t.highlightItem("Next");return true;case i:t.highlightItem("Prev");return true;case n:if(t.highlightedOptionIndex!==undefined){t.toggleDropdown(false);t.selectOption(t.filteredOptions[t.highlightedOptionIndex])}return true;case a:t.inputElement.blur();return true}return false};this.highlightItem=function(e){var n=e==="Next"?1:-1;if(t.filteredOptions.length===0){return}t.highlightedOptionIndex=t.highlightedOptionIndex===undefined?0:Math.min(Math.max(0,t.highlightedOptionIndex+n),t.filteredOptions.length-1);if(t.highlightedOptionIndex!==undefined)t.selectOption(t.filteredOptions[t.highlightedOptionIndex])};this.selectOption=function(e){t.selectedOption=e;t.inputValue=e.label;t.valueChanged.emit(e)};this.isOptionSelected=function(e){var n;return((n=t.selectedOption)===null||n===void 0?void 0:n.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=M(this.inputElement,"keyup").pipe(B(500),m((function(t){return e.inputElement.value})),C(),_(this.shouldExecuteSearch),z(this.onBeginSearch),T(this._searchFunction),z(this.onCompleteSearch)).subscribe();this.resetInput()};e.prototype.disconnectedCallback=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return r(s,null,r("div",{class:"relative"},r("input",{"data-testid":this.testId,type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":true,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:function(t){return e.inputElement=t}}),r("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":true,hidden:!this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),r("div",{class:{"sss-dropdown-menu absolute shadow rounded-md border mt-0.5 w-full overflow-auto bg-white z-50 py-2 text-sm":true,hidden:!this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults())))};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());_n.style=Sn;var Fn="Active Super";var In={fundId:"active",name:Fn,logo:"logo-active.svg",route:en.PromotedFundJoinV1,features:[r("p",null,"Winner of Canstar's 2023 Outstanding Value – Superannuation Award considering investment performance, fees and product features*"),r("p",null,"Recognised as a leader in responsible investment"),r("p",null,"Calls answered in 20 seconds (average over 5 years)")],featureSubText:r("span",null,"*Based on a comparison of the Active Super Accumulation Scheme held by those aged 20-69 years and balances between $30,000 and $1.5 million."),disclaimer:r("p",null,"Issued by LGSS Pty Limited as trustee for Local Government Super (Active Super ABN:28 901 371 321). Consider the PDS and TMD at"," ",r(an,{onClick:function(){return sn(Fn)},href:"https://www.activesuper.com.au/pds"},"activesuper.com.au")," ","before making a decision."),footnoteTextOverride:qe.some(on),dtoPropName:"active"};var Nn="Australian Ethical";var An="https://www.australianethical.com.au/super/pds-forms/";var En={fundId:"australian-ethical",name:Nn,logo:"logo-aus-eth.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Fastest growing super fund in Australia",r("sup",{class:"text-tiny"},"1")),r("p",null,"Nil investments in fossil fuel companies",r("sup",{class:"text-tiny"},"2")),r("p",null,"Competitive returns")],featureSubText:r("ol",{class:"list-decimal list-outside ml-3"},r("li",null,"Source: KPMG Super Insights Report 2022."),r("li",null,"All our options go through positive and negative ethical screening in accordance with the Australian Ethical Charter (in place since 1986).")),disclaimer:r("p",null,"Issued by Australian Ethical Superannuation Pty Ltd (ABN 43 079 259 733, RSE L0001441, AFSL 526055). Please consider the"," ",r(an,{href:"https://www.australianethical.com.au/globalassets/pdf-files/forms--pds/superpension/important-information/ae-financial-services-guide_sec.pdf"},"Financial Services Guide"),", the"," ",r(an,{href:An,onClick:function(){return sn(Nn)}},"Product Disclosure Statement")," ","and"," ",r(an,{href:An,onClick:function(){return sn(Nn)}},"Target Market Determination")," ","available on our"," ",r(an,{href:An,onClick:function(){return sn(Nn)}},"website"),"."),footnoteTextOverride:qe.none,dtoPropName:"australianEthical"};var kn="Australian Retirement Trust";var Tn={fundId:"australian-retirement-trust",name:kn,logo:"logo-art.svg",route:en.PromotedFundJoinV1,features:[r("p",null,"$200 billion in retirement savings"),r("p",null,"2+ million members"),r("p",null,"A focus on delivering strong, long‑term returns")],featureSubText:r("span",null,"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option."),disclaimer:r("p",null,"You should consider the"," ",r(an,{href:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",onClick:function(){return sn(kn)}},"Product Disclosure Statement")," ","and"," ",r(an,{href:"https://www.australianretirementtrust.com.au/tmd"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:kn,abn:"60 905 115 063",footnoteTextOverride:qe.none,dtoPropName:"australianRetirementTrust"};var Pn="Aware Super";var Dn={fundId:"aware",name:Pn,logo:"logo-aware.svg",route:en.PromotedFundJoinV1,features:[r("p",null,"Awarded Canstar’s Outstanding Value Super^ in 2022 and 2023."),r("p",null,"Over 1 million",r("sup",{class:"text-tiny"},"‡")," Australians trust us with their super."),r("p",null,"Our super helpful app helps you stay in control of your super.")],featureSubText:r("div",{class:"space-y-0.5"},r("p",null,"^ See ",r(an,{href:"https://aware.com.au/awards"},"aware.com.au/awards")," for more information"),r("p",null,r("sup",{class:"text-tiny"},"‡")," Member numbers as of December 2023")),disclaimer:r("p",null,"You should consider the"," ",r(an,{href:"https://aware.com.au/member/campaign/flare-documents?cid=par-aq-no-su-Flare-PDSTMD-Direct-ImpDocs-",onClick:function(){return sn(Pn)}},"Product Disclosure Statement and Target Market Determination")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:"53 226 460 365",footnoteTextOverride:qe.none,dtoPropName:"aware"};var Mn="First Super";var On={fundId:"first-super",name:Mn,logo:"logo-first.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Industry SuperFund that offers five investment options and default insurance"),r("p",null,"Strong long-term investment returns and superior customer service - members first"),r("p",null,"Established super fund – anyone can join including KiwiSaver members")],disclaimer:r("div",null,r("p",null,"General advice only which has been prepared without taking into account your objectives, financial situation or needs. Consider whether the advice is appropriate for you and read the Product Disclosure Statement (PDS) before making any investment decisions. PDS and Target Market Determination are available at our"," ",r(an,{onClick:function(){return sn(Mn)},href:"https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/"},"website"),". Past performance is not a reliable indicator of future performance."),r("br",null),r("p",null,"Issued by First Super Pty Ltd ABN 42 053 498 472, AFSL 223988 (Trustee) as Trustee of First Super ABN 56 286 625 181.")),footnoteTextOverride:qe.none,dtoPropName:"firstSuper"};var Ln="HESTA";var Rn={fundId:"hesta-default",name:Ln,logo:"logo-hesta.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"A top-performing super fund* working for real-world impact"),r("p",null,"1+ million members"),r("p",null,"Expert help whenever you need it to help you face the future with confidence")],featureSubText:undefined,disclaimer:r("div",{class:"space-y-2"},r("p",{class:"italic"},"* SuperRatings 10 Year Platinum Performance 2014-2024 (MySuper). Investment performance contributes to but is not the only factor in determining this product rating. Product ratings and awards are only one factor to be considered. See"," ",r(an,{className:"underline underline-offset-2 hover:text-gray-600",href:"https://www.hesta.com.au/ratings"},"hesta.com.au/ratings")," ","for more information."),r("p",null,"Consider whether this product is appropriate for you by reading the Product Disclosure Statement and Target Market Determination at"," ",r(an,{onClick:function(){return sn(Ln)},href:"https://www.hesta.com.au/pds"},"hesta.com.au/pds")," ","In considering your own circumstances about the suitability of HESTA products, you may wish to consult an adviser or use the ATO YourSuper comparison tool. Please also consider the relevant risks."),r("p",null,"Issued by H.E.S.T. Australia Ltd ABN 66 006 818 695 AFSL No. 235249, Trustee of HESTA")),footnoteTextOverride:qe.none,isPromotedDefault:true};var Un="Mercer MyChoice";var Bn={fundId:"mercermychoice",name:Un,logo:"logo-mercer-mychoice.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Save more super with our low fees"),r("p",null,"Take control with 6 MyChoice investment options"),r("p",null,"Join 850,000 Australians who trust our global expertise")],disclaimer:r("div",null,r("p",null,"You should consider the"," ",r(an,{href:"https://www.mercersuper.com.au/campaign-page/mercer-mychoice",onClick:function(){return sn(Un)}},"Product Disclosure Statement")," ","and"," ",r(an,{href:"https://www.mercersuper.com.au/documents/target-market-determinations"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),r("br",null),r("p",null,"Issued by Mercer Superannuation (Australia) Limited (‘Mercer Super’) ABN: 79 004 717 533")),footnoteTextOverride:qe.some(on),dtoPropName:"mercerMyChoice",extraBadge:r("span",{class:"text-xs bg-green-100 text-green-800 font-medium rounded-xl py-0.5 px-2.5 mr-1"},"Low fees")};var Vn="REI Super";var jn={fundId:"reisuper",name:Vn,logo:"logo-rei.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Built by and for the real estate industry"),r("p",null,"Consistent long-term performance with competitive fees*"),r("p",null,"All profits to members, not shareholders")],disclaimer:r("div",{class:"space-y-2"},r("p",null,"*Balanced Option net investment return of 9.45% for year ending 30 June 2023."),r("p",null,"You should consider the"," ",r(an,{href:"https://www.reisuper.com.au/docs/default-source/super/rei-super-pds.pdf?utm_source=flarehr&utm_medium=banners&utm_campaign=flarehr_join&utm_term=pds",onClick:function(){return sn(Vn)}},"Product Disclosure Statement")," ","and"," ",r(an,{href:"https://www.reisuper.com.au/publications-and-forms/target-market-determination?utm_source=flarehr&utm_medium=banners&utm_campaign=flarehr_join&utm_term=tmd"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund.")),abnInfo:"REI Superannuation Fund Pty Ltd",abn:"68 056 044 770",footnoteTextOverride:qe.none,dtoPropName:"reisuper"};var qn="Slate Super";var zn="32367272075001";var Hn={fundId:"slate",name:qn,logo:"logo-slate.png",route:en.SlateJoin,features:[r("p",null,"A lifestage investment strategy that evolves with you"),r("p",null,"Advanced mobile app with retirement forecast and smart features"),r("p",null,"Member advocates at Slate to assist with your account")],disclaimer:r("p",{class:"small text-muted"},"You should consider the"," ",r(an,{href:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",onClick:function(){return sn(qn,zn)}},"Product Disclosure Statement")," ","and"," ",r(an,{href:"https://slate.co/forms-and-documents/target-market-determination/"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited",abn:"49 006 421 638",footnoteTextOverride:qe.none,dtoPropName:"slate"};var Wn="Spirit Super";var Gn={fundId:"spirit",name:Wn,logo:"logo-spirit.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Proud Industry SuperFund - all profits go back to members"),r("p",null,"Best customer experience in super",r("sup",{class:"text-tiny"},"1")," and best for value",r("sup",{class:"text-tiny"},"2")),r("p",null,"Low fees",r("sup",{class:"text-tiny"},"3")," with a focus on strong returns and investing with impact in communities",r("sup",{class:"text-tiny"},"4"))],featureSubText:r("div",{class:"m-4 pt-2"},r("ol",{class:"list-decimal space-y-2"},r("li",null,r("span",null,"CSBA SenseCX Benchmark 2021-22")),r("li",null,r("span",null,"Awarded Best for Value in the WeMoney Superannuation Awards 2022")),r("li",null,r("span",null,"Just $67.60 + 0.15% pa admin fees, capped at $517.60")),r("li",null,r("span",null,"Rainmaker ESG Leader Rating 2022")))),disclaimer:r("p",null,"Past performance isn’t a reliable indicator of future performance. Consider the PDS and TMD at"," ",r(an,{href:"https://www.spiritsuper.com.au/pds",onClick:function(){return sn(Wn)}},"www.spiritsuper.com.au/pds")," ","before making a decision. Issuer is Motor Trades Association of Australia Superannuation Fund Pty Ltd (AFSL 238 718, ABN 14 008 650 628), the trustee of Spirit Super (ABN 74 559 365 913). Advice is provided by Quadrant First Pty Ltd (ABN 78 102 167 877, AFSL 284443)."),footnoteTextOverride:qe.none,dtoPropName:"spirit"};var Jn="Unisuper";var Kn="https://www.unisuper.com.au/-/media/files/pds/accumulation-1/accumulation-1-pds.pdf?rev=eb3a50fed45543ef91e2d1a38fa1fc0b&hash=B76A6A338550310C27DE1A021C854F84";var Xn="https://www.unisuper.com.au/-/media/files/tmd/accumulation-1/accumulation-1-tmd.pdf?rev=f4aa3f08d0494f52a7a5e02c69385ead&hash=AC77283EFBF97948DC0CF768FD3E82F8";var Yn={fundId:"unisuper-default",name:Jn,logo:"logo-unisuper.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Low fees, better value – Our fees are among the lowest in the industry.^"),r("p",null,"Strong, long-term performance – We regularly exceed industry averages.*"),r("p",null,"Award winning super – Continually recognised as one of Australia’s best-performing funds.",r("sup",{class:"text-tiny"},"#"))],disclaimer:r("div",{class:"space-y-2"},r("p",null,"^Read more about our fees and how we compare"," ",r(an,{href:"https://www.unisuper.com.au/super/products-and-fees"},"here"),"."),r("p",null,"*Past performance is not an indicator of future performance. Read more about our performance and how we compare"," ",r(an,{href:"https://www.unisuper.com.au/campaigns/greater-super"},"here"),"."),r("p",null,r("sup",{class:"text-tiny"},"#"),"See our awards"," ",r(an,{href:"https://www.unisuper.com.au/about-us/who-we-are/awards-and-ratings"},"here"),"."),r("p",null,"Remember to consider the"," ",r(an,{href:Kn,onClick:function(){return sn(Jn)}},"Product Disclosure Statement")," ","and ",r(an,{href:Xn},"Target Market Determination")," that is relevant to you."),r("p",null,"Issued by UniSuper Management Pty Ltd. ABN: 91 385 943 850")),footnoteTextOverride:qe.none,isPromotedDefault:true};var $n="Unisuper";var Qn="https://www.unisuper.com.au/-/media/files/pds/accumulation-1/accumulation-1-pds.pdf?rev=eb3a50fed45543ef91e2d1a38fa1fc0b&hash=B76A6A338550310C27DE1A021C854F84";var Zn="https://www.unisuper.com.au/-/media/files/tmd/accumulation-1/accumulation-1-tmd.pdf?rev=f4aa3f08d0494f52a7a5e02c69385ead&hash=AC77283EFBF97948DC0CF768FD3E82F8";var er={fundId:"unisuper-default-v2",name:$n,logo:"logo-unisuper.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Low fees, better value – Our fees are among the lowest in the industry.^"),r("p",null,"Strong, long-term performance – We regularly exceed industry averages.*"),r("p",null,"Award winning super – Continually recognised as one of Australia’s best-performing funds.",r("sup",{class:"text-tiny"},"#"))],customContent:r("div",{class:"mt-6 flex gap-3"},r("div",null,r("img",{alt:$n,src:o("assets/unisuper-default-badge1.svg")})),r("div",null,r("img",{alt:$n,src:o("assets/unisuper-default-badge2.svg")})),r("div",null,r("img",{alt:$n,src:o("assets/unisuper-default-badge3.svg")}))),disclaimer:r("div",{class:"space-y-2"},r("p",null,"^Read more about our fees and how we compare"," ",r(an,{href:"https://www.unisuper.com.au/super/products-and-fees"},"here"),"."),r("p",null,"*Past performance is not an indicator of future performance. Read more about our performance and how we compare"," ",r(an,{href:"https://www.unisuper.com.au/campaigns/greater-super"},"here"),"."),r("p",null,r("sup",{class:"text-tiny"},"#"),"See our awards"," ",r(an,{href:"https://www.unisuper.com.au/about-us/who-we-are/awards-and-ratings"},"here"),"."),r("p",null,"Remember to consider the"," ",r(an,{href:Qn,onClick:function(){return sn($n)}},"Product Disclosure Statement")," ","and ",r(an,{href:Zn},"Target Market Determination")," that is relevant to you."),r("p",null,"Issued by UniSuper Management Pty Ltd. ABN: 91 385 943 850")),footnoteTextOverride:qe.none,isPromotedDefault:true};var tr="Virgin Money Super";var nr={fundId:"virgin",name:tr,logo:"logo-virgin.svg",route:en.PromotedFundJoinV2,features:[r("p",null,"Returns above industry and retail super fund medians over the past 5 years",r("sup",{class:"text-tiny"},"1")),r("p",null,"One of the lowest fees in the market"),r("p",null,"Virgin Money rewards you with Velocity Points on your contributions",r("sup",{class:"text-tiny"},"2"))],featureSubText:r("div",{class:"m-4 pt-2"},r("ol",{class:"list-decimal space-y-2"},r("li",null,r("span",null,"Past performance is not a reliable indicator of future performance. Source: SuperRatings Fund Crediting Rate Survey April 2022.")),r("li",null,r("span",null,r(an,{className:"underline underline-offset-2 hover:text-gray-600",href:"https://virginmoney.com.au/superannuation/forms-and-key-information/key-documents"},"Eligibility and T&Cs apply"))))),disclaimer:r("p",null,"Prepared by Virgin Money Financial Services Pty Ltd ABN 51 113 285 395 AFSL 286869 (‘Virgin Money’). Virgin Money Super is a plan in the Mercer Super Trust ABN 19 905 422 981. Virgin Money Super is issued by Mercer Superannuation (Australia) Limited (MSAL) ABN 79 004 717 533 AFSL 235906 as trustee of the Mercer Super Trust. Consider the PDS and TMD at"," ",r(an,{href:"https://virginmoney.com.au/superannuation/",onClick:function(){return sn(tr)}},"www.virginmoney.com.au")," ","before making a decision"),footnoteTextOverride:qe.some(on),dtoPropName:"virgin",extraBadge:r("span",{class:"text-xs bg-green-100 text-green-800 font-medium rounded-xl py-0.5 px-2.5 mr-1"},"Low fees")};var rr=(E={},E[Hn.fundId]=Hn,E[Tn.fundId]=Tn,E[Dn.fundId]=Dn,E[In.fundId]=In,E[En.fundId]=En,E[nr.fundId]=nr,E[Gn.fundId]=Gn,E[On.fundId]=On,E[Bn.fundId]=Bn,E[Rn.fundId]=Rn,E[Yn.fundId]=Yn,E[er.fundId]=er,E[jn.fundId]=jn,E);var ir=Object.values(rr);var ar=function(e){var t=ir.find((function(t){return t.dtoPropName==e}));return t?Y(t):X};var or=function(e){var t=ir.find((function(t){return t.fundId==e}));return t?Y(t):X};var sr=function(e){return rr[e]!=undefined?Y(rr[e].name):X};var ur=function(e){var t,n;return(n=(t=rr[e])===null||t===void 0?void 0:t.footnoteTextOverride)!==null&&n!==void 0?n:X};var lr=function(e){return e==Hn.fundId?Y(zn):X};var cr=function(e){return rr[e]!=undefined?Y(o("assets/"+rr[e].logo)):X};var dr=function(){function e(){}e.prototype.GetExistingFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,s,u,l,c,d,f,p,f,p,f,m,f,p;return __generator(this,(function(h){switch(h.label){case 0:t=Rt.superBuyer.superChoice;n=(e=Rt.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!t)return[2,X];if(!n)return[2,X];r=t.dateSubmitted==undefined?X:Y(new Date(t.dateSubmitted));i=Nt(n);a=Et(n);o=n.kind;switch(o){case"Promoted":return[3,1];case"MyOwnFund":return[3,6];case"SMSF":return[3,8];case"Default":return[3,9];case"PromotedDefault":return[3,11];case"DefinedBenefits":return[3,13];case"PromotedDefaultWithJoin":return[3,15]}return[3,17];case 1:s=n.promoted["generic"]?or(n.promoted["generic"].fundId):ar(Object.keys(n.promoted)[0]);u="";if(!J(s))return[3,2];u=s.value.name;return[3,5];case 2:if(!J(i))return[3,4];return[4,this.getFundByUsiAsync(i.value)];case 3:l=h.sent();u=J(l)?l.value.productName:i.value;return[3,5];case 4:return[2,X];case 5:return[2,Y({type:"Promoted Fund",id:It(n.promoted),name:u,usi:i,valid:"Active",memberNumber:a,lastNominatedAt:r})];case 6:c=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(c)];case 7:d=h.sent();return[2,Y({type:"My Own Fund",name:J(d)?d.value.productName:c,usi:i,valid:this.toFundValidState(d),memberNumber:a,lastNominatedAt:r})];case 8:return[2,Y({type:"Self Managed Fund",name:n.smsf.fundName,valid:"Unknown",lastNominatedAt:r})];case 9:f=n.default.usi;return[4,this.getFundByUsiAsync(f)];case 10:p=h.sent();return[2,Y({type:"Default Fund",name:J(p)?p.value.productName:f,usi:i,valid:this.toFundValidState(p),lastNominatedAt:r})];case 11:f=n.promotedDefault.usi;return[4,this.getFundByUsiAsync(f)];case 12:p=h.sent();return[2,Y({type:"Promoted Default Fund",id:n.promotedDefault.fundId,name:J(p)?p.value.productName:f,usi:i,valid:this.toFundValidState(p),lastNominatedAt:r})];case 13:f=n.definedBenefits.usi;return[4,this.getFundByUsiAsync(f)];case 14:m=h.sent();return[2,Y({type:"Defined Benefits Fund",name:J(m)?m.value.productName:f,usi:i,valid:this.toFundValidState(m),lastNominatedAt:r})];case 15:f=n.promotedDefaultWithJoin.usi;return[4,this.getFundByUsiAsync(f)];case 16:p=h.sent();return[2,Y({type:"Promoted Default Fund With Join",id:n.promotedDefaultWithJoin.fundId,name:J(p)?p.value.productName:f,usi:i,valid:this.toFundValidState(p),memberNumber:a,lastNominatedAt:r})];case 17:return[2,X]}}))}))};e.prototype.submitRetainSuperFundAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/retain-super-fund").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.getFundByUsiAsync=function(e){return yn.getFundAsync(e,true)};e.prototype.toFundValidState=function(e){if(J(e)){return e.value.isActive?"Active":"Inactive"}else{return"Unknown"}};return e}();var fr=new dr;var pr=e("sss_existing_choice_page",function(){function e(e){n(this,e);this.eventTrackingService=Ht.Instance;this.createSuperFundNominationDetail=function(e){function t(e){return J(e)?e.value:undefined}function n(e){return"usi"in e?t(e.usi):undefined}function r(e){return"memberNumber"in e?t(e.memberNumber):undefined}return{fundType:e.type.toString(),fundName:e.name,fundUsi:n(e),memberNumber:r(e),fundStatus:e.valid.toString(),lastNominatedAt:J(e.lastNominatedAt)?e.lastNominatedAt.value.toISOString():""}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,fr.GetExistingFundAsync()];case 1:e=t.sent();if(J(e)&&e.value.valid!=="Inactive"){this.existingFund=e.value}else{rn.navigateInternally(this.history,en.ConsentPage)}return[2]}}))}))};e.prototype.render=function(){var e=this;var t=function(e){var t=cr(e.id);var n=sr(e.id);return r("div",{class:"flex justify-center"},r("img",{class:"h-16 object-contain w-full max-w-140",alt:J(n)?n.value:undefined,src:J(t)?t.value:undefined}))};var n=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"}))))};var i=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("path",{d:"M248.9 192H272v48C272 248.8 279.2 256 288 256C296.8 256 304 248.8 304 240V192h23.12C411.4 192 480 113 480 16C480 7.164 472.8 0 464 0h-39.13C364.9 0 313 40.13 288 98.13C263 40.13 211.1 0 151.1 0H112C103.2 0 96 7.164 96 16C96 113 164.6 192 248.9 192zM424.9 32h22.38c-6.625 71.88-58 128-120 128h-22.5C311.4 88.13 362.8 32 424.9 32zM151.1 32C213.3 32 264.5 88.13 271.3 160h-22.5c-62 0-113.4-56.13-120-128H151.1zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99S7.198 383.1 15.1 383.1l80.01-.0238l46.86-35.25c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z"}))))};var a=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},r("path",{d:"M448 96h-64V48C384 21.53 362.5 0 336 0h-160C149.5 0 128 21.53 128 48V96H64C28.65 96 0 124.7 0 160v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C512 124.7 483.3 96 448 96zM160 48C160 39.17 167.2 32 176 32h160C344.8 32 352 39.17 352 48V96H160V48zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h144v64c0 8.844 7.156 16 16 16h128c8.844 0 16-7.156 16-16V288H480V416zM208 336V288h96v48H208zM480 256H32V160c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V256z"}))))};var o=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"}))))};var s=function(){return e.existingFund.type=="Defined Benefits Fund"?null:r("div",{class:"mt-4"},r("sss-button",{testid:"choose-another-fund-button",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))};return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),this.existingFund.type=="Defined Benefits Fund"?null:r("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Continue with your chosen fund or choose another fund below."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-400 w-full"},r("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},r("div",{class:"space-y-4"},function(){switch(e.existingFund.type){case"Promoted Fund":case"Promoted Default Fund":return r(t,{id:e.existingFund.id});case"Self Managed Fund":return r(i,null);case"My Own Fund":case"Promoted Default Fund With Join":return r(n,null);case"Default Fund":return r(a,null);case"Defined Benefits Fund":return r(o,null);default:return r("div",null)}}(),r("div",{class:"sm:text-lg font-bold leading-6 break-words"},function(){switch(e.existingFund.type){case"Default Fund":return"Employer's default fund";case"My Own Fund":case"Promoted Fund":case"Self Managed Fund":case"Promoted Default Fund":case"Defined Benefits Fund":case"Promoted Default Fund With Join":return e.existingFund.name;default:return""}}())),r("div",{class:"mt-6"},r("sss-button",{testid:"continue-with-this-fund-button",fillWidth:true,promiseFn:function(){return e.handleFundNominationAccepted()}},"Continue with this fund"))),r(s,null))))};e.prototype.handleFundNominationAccepted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,fr.submitRetainSuperFundAsync(e)];case 1:t.sent();Rt.markSuperSelectionAsSubmitted();return[2]}}))}))};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(e)];case 1:t.sent();rn.navigateInternally(this.history,en.ConsentPage);return[2]}}))}))};return e}());var mr="Powered by Flare";var hr=e("sss_footer_section",function(){function e(e){var t=this;n(this,e);this.footerText=function(){return qe.isSome(t.textOverride)?t.textOverride.value:mr}}e.prototype.render=function(){return r("div",{class:{"text-center text-gray-500 text-xs w-full max-w-960 mx-auto":true,"mt-8 sm:mt-20":!Rt.superCampaignIsInView}},!Rt.superCampaignIsInView&&r("span",null,this.footerText()),r("p",{class:"block text-transparent"},"v",G))};return e}());var vr=function(e,t){return r("stencil-route-link",{exact:true,url:e.route},r("div",{class:{"block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full":true,"bg-white shadow-sm text-primary-base":e.isActive,"hover:bg-primary-hover text-white":!e.isActive}},t))};var gr=function(e){var t=en.MyOwnFund;if(window.location.href.includes(en.SelfManagedFund)){t=en.SelfManagedFund}else if(window.location.href.includes(en.DefaultFund)){t=en.DefaultFund}return r(vr,{route:t,isActive:e.isActive},"Choose another fund")};var yr=e("sss_header_section",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex justify-center"},r("div",{class:"text-center max-w-800"},r("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),r(l,null,r("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},Rt.isSuperCampaignFallbackActivated?r(l,null,"You can choose any super fund, including your current fund/SMSF or your employer’s default fund."):r(l,null,"You can choose any super fund, including your current fund/SMSF, your employer’s default fund, or alternatively, you can select from one of the featured funds.")),!Rt.isSuperCampaignFallbackActivated&&r("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},r(vr,{route:en.ChoicePage,isActive:this.currentPage==="choice"},"Featured super funds"),r(gr,{isActive:this.currentPage==="own-fund"})))))};return e}());var br=e("sss_iframe_host",function(){function e(e){n(this,e)}e.prototype.componentDidLoad=function(){this.build(this.iframeElement)};e.prototype.render=function(){var e=this;return r("div",{class:"w-screen"},r("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var wr=e("sss_loading_component",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"w-full bg-white flex flex-col items-center"},r("sss-loading-indicator",null),r("h5",{class:"mt-4 text-xl font-bold leading-7"},this.header),r("slot",null))};return e}());var xr=e("sss_loading_indicator",function(){function e(e){n(this,e);this.theme="primary";this.size=48}e.prototype.render=function(){return r("div",{class:"inline-block animate-spin"},r("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",fill:"white","fill-opacity":"0.3"}),r("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:this.theme==="primary"?"fill-primary-base":"fill-white"})))};return e}());var Sr=e("sss_loading_page",function(){function e(e){n(this,e)}e.prototype.render=function(){return r(s,{class:"flex flex-col justify-center items-center"},r("h5",{class:"text-lg"},"Loading your superannuation step"),r("sss-loading-indicator",null))};return e}());var Cr=e("sss_loading_super_indicator",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("sss-loading-component",{header:"Loading Super"},r("p",{class:"text-base text-gray-600 mt-4 max-w-560 text-center font-normal leading-7"},"This can take up to 30 seconds.",r("br",null),"Please don’t navigate away or refresh your browser."))};return e}());var _r=e("sss_my_own_fund",function(){function e(e){n(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.isSubmitDisabled=true;this.eventTrackingService=Ht.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Rt.promotedFunds,defaultFundUsiSet:Q(Rt.defaultFundUsi)})};e.prototype.render=function(){var e=this;var t=Rt.isSuperCampaignFallbackActivated;return r(s,null,r("sss-header-section",{currentPage:"own-fund"}),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=!e.formElement.checkValidity()}},r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},r("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:o("assets/icon-exclamation.svg")})),r("div",{class:"ml-2"},r("ul",{class:"list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"},r("li",null,"Make sure you are a current member of the fund before completing this step."),r("li",null,"Please check that the fund USI is correct as some funds have similar names."))))),r("sss-my-own-fund-inputs",{myOwnFundForm:pn.myOwnFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){pn.myOwnFundForm=Object.assign(Object.assign({},pn.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}}),this.isNotAllInformationProvidedMessageVisible&&r("div",{class:"mt-4 rounded-md bg-red-50 p-4 text-sm text-red-700"},"All fields are required to complete submission. Make sure you have selected a fund.")),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},r("div",{class:"mb-4",onClick:function(){return e.formState="validated"}},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),!t&&r("stencil-route-link",{url:en.ChoicePage},r("sss-button",{testid:"back-button",fillWidth:true,variant:"secondary"},"Back"))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(n){this.formState="validated";if(!this.formElement.checkValidity()){return[2]}e=J(pn.myOwnFundForm.fundUsi)&&J(pn.myOwnFundForm.memberNumber)&&J(pn.myOwnFundForm.memberFirstName)&&J(pn.myOwnFundForm.memberFamilyName);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}rn.navigateInternallyToStandardChoice({history:this.history,fundName:this.getOrError(pn.myOwnFundForm.fundName),fundDetails:{type:"myOwnFund",fundName:this.getOrError(pn.myOwnFundForm.fundName),fundUsi:this.getOrError(pn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(pn.myOwnFundForm.memberNumber)},handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Object.assign({fundUsi:this.getOrError(pn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(pn.myOwnFundForm.memberNumber),memberFirstName:this.getOrError(pn.myOwnFundForm.memberFirstName),memberFamilyName:this.getOrError(pn.myOwnFundForm.memberFamilyName),standardChoiceFormSignature:e},Rt.promotedFundsConfig);return[4,wn.submitCustomFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.getOrError=function(e){return je.pipe(e,ee((function(){throw new Error("Option value is none.")})))};return e}());re(_r);var Fr=e("sss_my_own_fund_inputs",function(){function e(e){var t=this;n(this,e);this.formChanged=u(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=25;this.searchFundsAsync=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:return[4,yn.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=r.sent();switch(t.result){case"TooManyResults":{return[2,{kind:"too-many-results"}]}default:{n=t.data.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}));return[2,{kind:"success",value:n}]}}return[2]}}))}))};if(J(this.myOwnFundForm.fundUsi)&&J(this.myOwnFundForm.fundName)){this.selectedOption={label:this.myOwnFundForm.fundName.value,value:this.myOwnFundForm.fundUsi.value}}}e.prototype.render=function(){var e=this;return r("div",null,r("div",null,r("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),r("div",{class:"mt-1"},r("sss-dropdown-async",{testId:"fund-search-input",searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:true,requiredValidationMessage:"Select a fund",placeholder:"Type to search by name or USI...",value:this.selectedOption,onValueChanged:function(t){e.selectedOption=t.detail;e.updateFund(t.detail)},showValidationErrors:this.showValidationErrors})),J(this.myOwnFundForm.fundUsi)&&r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),r("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.myOwnFundForm.fundUsi.value))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Member number"),r("div",{class:"mt-1"},r("input",{"data-testid":"member-number-input",type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:true,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:Q(pn.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid member number (only numbers and / or letters)"))),r("div",{class:"flex space-x-4"},r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Given name(s)"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-given-names-input",name:"memberFirstName",readableName:"Member given name(s)",showValidationErrors:this.showValidationErrors,value:Q(pn.myOwnFundForm.memberFirstName),onChange:function(t){return e.updateMemberFirstName(t.target.value.trim())}}))),r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Last name"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-last-name-input",name:"memberFamilyName",readableName:"Member last name",showValidationErrors:this.showValidationErrors,value:Q(pn.myOwnFundForm.memberFamilyName),onChange:function(t){return e.updateMemberFamilyName(t.target.value.trim())}})))))};e.prototype.updateFund=function(e){this.formChanged.emit({fundUsi:Y(e.value),fundName:Y(e.label)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:Y(e)})};e.prototype.updateMemberFirstName=function(e){this.formChanged.emit({memberFirstName:Y(e)})};e.prototype.updateMemberFamilyName=function(e){this.formChanged.emit({memberFamilyName:Y(e)})};return e}());var Ir=e("sss_name_input",function(){function e(e){n(this,e);this.myInputChange=u(this,"myInputChange",7);this.value="";this.name="";this.readableName="";this.showValidationErrors=false;this.errorMessage="";this.NAME_PATTERN="[A-Za-z]+(( |-)[A-Za-z][A-Za-z']+)*\\s*$"}e.prototype.render=function(){var e=this;return r(s,null,r("input",{"data-testid":this.testId,type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:true,pattern:this.NAME_PATTERN,name:this.name,value:this.value,onInput:function(t){return e.handleInput(t)}}),this.errorMessage&&r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},this.errorMessage))};e.prototype.handleInput=function(e){var t=e.target;t.value=t.value.replace(/\s+/g," ");this.validateInput(t);this.myInputChange.emit(t.value.trim())};e.prototype.validateInput=function(e){if(!e.checkValidity()){if(e.validity.valueMissing){this.errorMessage=this.readableName+" is required."}else if(e.validity.patternMismatch){if(e.value.startsWith("-")||e.value.startsWith("'")){this.errorMessage=this.readableName+" must start with a letter."}else if(e.value.includes("--")){this.errorMessage=this.readableName+" must not have a double hypen."}else{this.errorMessage=this.readableName+" contains unsupported characters."}}else{this.errorMessage="Invalid input."}}else{this.errorMessage=""}};return e}());var Nr=e("sss_prefill",function(){function e(e){n(this,e);this.prefill=undefined;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.prefill=J(Rt.state.superChoicePrefill)?Rt.state.superChoicePrefill.value:undefined;return[2]}))}))};e.prototype.render=function(){if(this.prefill&&this.prefill.type==="myOwnFund"){if(this.prefill.data.fundDetail.type==="Valid"){return this.renderMyOwnFund(this.prefill.data)}else{return this.renderInvalidMyOwnFund(this.prefill.data)}}if(this.prefill&&this.prefill.type==="smsf"){if(this.prefill.data.fundAbn.valid){return this.renderSMSF(this.prefill.data)}else{return this.renderInvalidSMSF(this.prefill.data)}}rn.navigateInternally(this.history,en.ConsentPage);return null};e.prototype.renderMyOwnFund=function(e){return r("sss-prefill-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderInvalidMyOwnFund=function(e){return r("sss-prefill-invalid-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderSMSF=function(e){return r("sss-prefill-smsf",{history:this.history,prefill:e})};e.prototype.renderInvalidSMSF=function(e){return r("sss-prefill-invalid-smsf",{history:this.history,prefill:e})};return e}());var Ar=e("sss_prefill_display_field",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex w-full flex-col sm:flex-row sm:min-h-5 justify-center items-start gap-0.5 sm:gap-4 self-stretch"},r("div",{class:{"sm:w-2/5 sm:max-w-40 self-stretch text-gray-500 text-xs sm:text-sm not-italic font-medium leading-4 sm:leading-5":true,"text-red-600":!this.field.isValid}},this.field.name),r("div",{"data-testid":this.field.testId,class:{"sm:w-3/5 max-w-[300px] self-stretch text-gray-900 text-sm not-italic font-normal leading-5 break-words":true,"h-5 sm:h-auto":this.field.isEmpty,"text-red-600":!this.field.isValid}},this.field.value))};return e}());var Er=e("sss_prefill_error_box",function(){function e(e){n(this,e);this.withHeader=false}e.prototype.render=function(){var e=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM8.70711 7.29289C8.31658 6.90237 7.68342 6.90237 7.29289 7.29289C6.90237 7.68342 6.90237 8.31658 7.29289 8.70711L8.58579 10L7.29289 11.2929C6.90237 11.6834 6.90237 12.3166 7.29289 12.7071C7.68342 13.0976 8.31658 13.0976 8.70711 12.7071L10 11.4142L11.2929 12.7071C11.6834 13.0976 12.3166 13.0976 12.7071 12.7071C13.0976 12.3166 13.0976 11.6834 12.7071 11.2929L11.4142 10L12.7071 8.70711C13.0976 8.31658 13.0976 7.68342 12.7071 7.29289C12.3166 6.90237 11.6834 6.90237 11.2929 7.29289L10 8.58579L8.70711 7.29289Z",fill:"#F87171"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-red-50"},r("div",{class:"w-1 self-stretch bg-red-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(e,null),r("div",{class:"flex-col justify-start items-start gap-2 inline-flex"},this.withHeader&&r("div",{class:"self-stretch text-red-800 text-sm font-medium leading-tight"},"Please correct ",this.notificationList.length," issues with your fund details"),this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"self-stretch h-5 flex-col justify-start items-start gap-1 flex"},r("div",{class:"self-stretch pl-1.5 justify-start items-start gap-[7px] inline-flex"},r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-red-700 rounded-full"})),r("div",{class:"grow shrink basis-0 text-red-700 text-sm font-normal leading-tight"},e)))})),!this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"text-sm font-medium leading-tight text-red-800"},e)})))))};return e}());function kr(e){return e==null||e.trim()===""}var Tr=function(e,t,n){return r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},e),r("div",{"data-testid":t,class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},n))};var Pr=function(){return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),r("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Review or update the below super fund nomination details provided by your employer."))};var Dr=function(){function e(){}e.Input=function(e){return{"relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10":true,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":e}};return e}();var Mr="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";var Or=function(){function e(e,t,n){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._errorMessage=this.validateAndReturnErrorMessage(this._value)}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._errorMessage=this.validateAndReturnErrorMessage(e);this._value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._errorMessage===null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return kr(this._value)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:false,configurable:true});return e}();var Lr=function(){function e(e,t,n,r){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._isValid=r}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return kr(this._value)},enumerable:false,configurable:true});return e}();var Rr=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund USI","fund-usi",t,n)||this}return t}(Lr);var Ur=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund name","fund-name",t,n)||this}return t}(Lr);var Br=function(e){__extends(t,e);function t(t){return e.call(this,"Fund name","smsf-fund-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(kr(e)){return"Fund name is required."}else if(e.length<2){return"Enter a valid Fund name."}else{return null}};return t}(Or);var Vr=function(e){__extends(t,e);function t(t){return e.call(this,"Member number","member-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[A-Za-z0-9]{4,16}$/;if(kr(e)){return"Member number is required."}else if(!t.test(e)){return"Enter a valid member number (only numbers and / or letters)"}else{return null}};return t}(Or);var jr=function(e){__extends(t,e);function t(t){return e.call(this,"Member last name","member-last-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Mr);if(kr(e)){return"Member last name is required."}else if(!t.test(e)){return"Member last name contains unsupported characters."}else{return null}};return t}(Or);var qr=function(e){__extends(t,e);function t(t){return e.call(this,"Member given name(s)","member-given-names",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Mr);if(kr(e)){return"Member given name(s) is required."}else if(!t.test(e)){return"Member given name(s) contains unsupported characters."}else{return null}};return t}(Or);var zr=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund ABN","fund-abn",t,n)||this}return t}(Lr);var Hr=function(e){__extends(t,e);function t(t){return e.call(this,"Fund ESA","fund-esa",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(kr(e)){return"Fund ESA is required."}else if(e.length<2){return"Enter a valid Fund ESA."}else{return null}};return t}(Or);var Wr=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 1","address-line-one",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(kr(e)){return"Address line 1 is required."}else if(e.length<2){return"Enter a valid Address line 1."}else{return null}};return t}(Or);var Gr=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 2","address-line-two",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){return null};return t}(Or);var Jr=function(e){__extends(t,e);function t(t){return e.call(this,"City/suburb","city-suburb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(kr(e)){return"City/suburb is required."}else{return null}};return t}(Or);var Kr=function(e){__extends(t,e);function t(t){return e.call(this,"Postcode","postcode",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{4}$/;if(kr(e)){return"Postcode is required."}else if(!t.test(e)){return"Enter a valid postcode."}else{return null}};return t}(Or);var Xr=function(e){__extends(t,e);function t(t){return e.call(this,"State","state",t)||this}Object.defineProperty(t.prototype,"options",{get:function(){return[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}]},enumerable:false,configurable:true});t.prototype.validateAndReturnErrorMessage=function(e){if(kr(e)){return"State is required."}else if(this.options.find((function(t){return t.value=e}))===undefined){return"Enter a valid state."}else{return null}};return t}(Or);var Yr=function(e){__extends(t,e);function t(t,n,r,i,a){var o=this;var s=[t,n,r,i,a].map((function(e){return e.value})).filter((function(e){return e})).join(", ");var u=t.isValid&&n.isValid&&r.isValid&&i.isValid&&a.isValid;o=e.call(this,"Fund address","fund-address",s,u)||this;return o}return t}(Lr);var $r=function(e){__extends(t,e);function t(t){return e.call(this,"Account name","account-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(kr(e)){return"Account name is required."}else if(e.length<2){return"Enter a valid Account name."}else{return null}};return t}(Or);var Qr=function(e){__extends(t,e);function t(t,n){return e.call(this,"Bank name","bank-name",t,n)||this}return t}(Lr);var Zr=function(e){__extends(t,e);function t(t){return e.call(this,"BSB","bsb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{6,7}$/;if(kr(e)){return"BSB is required."}else if(!t.test(e)){return"Enter a valid BSB."}else{return null}};return t}(Or);var ei=function(e){__extends(t,e);function t(t){return e.call(this,"Account number","account-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{2,11}$/;if(kr(e)){return"Account number is required."}else if(!t.test(e)){return"Enter a valid Account number."}else{return null}};return t}(Or);var ti=e("sss_prefill_invalid_my_own_fund",function(){function e(e){n(this,e);this.eventTrackingService=Ht.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!kr(e.memberNumber),isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!kr(e.memberNumber),isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Invalid"){this.fundUsi=new Rr(this.prefill.fundDetail.fundUsi,false);this.fundName=new Ur("",false);this.memberNumber=new Vr(this.prefill.memberNumber);this.memberGivenNames=new qr(this.prefill.memberFirstName);this.memberLastName=new jr(this.prefill.memberFamilyName)}else{rn.navigateInternally(this.history,en.ConsentPage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Pr,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund USI is invalid, or no longer in use. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleChooseAnotherFund()}},"Choose another fund"))))};e.prototype.handleChooseAnotherFund=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,rn.navigateInternally(this.history,en.ConsentPage)]}}))}))};return e}());var ni=e("sss_prefill_invalid_smsf",function(){function e(e){n(this,e);this.eventTrackingService=Ht.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&!this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{rn.navigateInternally(this.history,en.PrefillInvalidMyOwnFundPage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Pr,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund ABN is invalid. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),r("sss-prefill-display-field",{field:this.bankAccountNumber})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.initialiseComponent=function(e){this.fundName=new Br(e.fundName);this.fundAbn=new zr(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Hr(e.electronicServiceAddress);this.fundAddressLine1=new Wr(e.addressLine1);this.fundAddressLine2=new Gr(e.addressLine2);this.fundAddressCity=new Jr(e.addressCity);this.fundAddressPostcode=new Kr(e.addressPostcode);this.fundAddressState=new Xr(e.addressState);this.fundAddress=new Yr(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new qr(e.memberFirstName);this.memberLastName=new jr(e.memberFamilyName);this.bankAccountName=new $r(e.bankAccountName);this.bankAccountBsb=new Zr(e.bankAccountBsb);this.bankAccountNumber=new ei(e.bankAccountNumber)};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,rn.navigateInternally(this.history,en.ConsentPage)]}}))}))};return e}());var ri=e("sss_prefill_my_own_fund",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=Ht.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!kr(e.memberNumber),isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!kr(e.memberNumber),isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Valid"){this.initialiseComponent(this.prefill.fundDetail.fundName,this.prefill)}else{rn.navigateInternally(this.history,en.ConsentPage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.memberNumber.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Pr,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3.5 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure you are a current member of the fund before completing this step.","Please check that the fund USI is correct as some funds have similar names."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=e.formHasMissingData()}},Tr(this.fundName.name,this.fundName.testId,this.fundName.value),Tr(this.fundUsi.name,this.fundUsi.testId,this.fundUsi.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,pattern:"[A-Za-z0-9]{4,16}","data-testid":this.memberNumber.testId,value:this.memberNumber.value,onInput:function(t){e.updateMemberNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberNumber.errorMessage))),r("div",{class:"flex mt-3 gap-x-4 flex-col sm:flex-row"},r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,pattern:Mr,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,pattern:Mr,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage))))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))))};e.prototype.initialiseComponent=function(e,t){this.fundUsi=new Rr(t.fundDetail.fundUsi,true);this.fundName=new Ur(e,true);this.memberNumber=new Vr(t.memberNumber);this.memberGivenNames=new qr(t.memberFirstName);this.memberLastName=new jr(t.memberFamilyName);this.isSubmitDisabled=this.formHasMissingData()};e.prototype.isFormValid=function(){return this.fundUsi.isValid&&this.fundName.isValid&&this.memberNumber.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid};e.prototype.formHasMissingData=function(){return this.fundUsi.isEmpty||this.fundName.isEmpty||this.memberNumber.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateMemberNumber=function(e){this.memberNumber=new Vr(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new qr(e.trimStart())};e.prototype.updateMemberLastName=function(e){this.memberLastName=new jr(e.trim())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}rn.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName.value,fundDetails:{type:"myOwnFund",fundName:this.fundName.value,fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value,standardChoiceFormSignature:t},Rt.promotedFundsConfig);return[4,wn.submitCustomFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,rn.navigateInternally(this.history,en.ConsentPage)]}}))}))};return e}());var ii={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"};var ai=e("sss_prefill_smsf",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=Ht.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!kr(e.memberFirstName),isMemberLastNamePresent:!kr(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{rn.navigateInternally(this.history,en.PrefillInvalidMyOwnFundPage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.fundName.errorMessage,this.fundEsa.errorMessage,this.fundAddressLine1.errorMessage,this.fundAddressLine2.errorMessage,this.fundAddressCity.errorMessage,this.fundAddressPostcode.errorMessage,this.fundAddressState.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage,this.bankAccountName.errorMessage,this.bankAccountBsb.errorMessage,this.bankAccountNumber.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Pr,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),this.bankName.isValid&&r("sss-prefill-display-field",{field:this.bankName}),r("sss-prefill-display-field",{field:this.bankAccountNumber})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"w-full":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=e.formHasMissingData()}},r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,"data-testid":this.fundName.testId,value:this.fundName.value,onInput:function(t){e.updateFundName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundName.errorMessage))),Tr(this.fundAbn.name,this.fundAbn.testId,this.fundAbn.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundEsa.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,minlength:"2","data-testid":this.fundEsa.testId,value:this.fundEsa.value,onInput:function(t){e.updateFundEsa(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundEsa.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),r("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},r("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},Dr.Input(this.formState==="validated")),{"rounded-none rounded-t-md shadow-none border-b-0":true}),required:true,minlength:"2",name:"addressLine1",id:"addressLine1","data-testid":this.fundAddressLine1.testId,value:this.fundAddressLine1.value,onInput:function(t){e.updateAddressLine1(t.target.value)}}),r("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},Dr.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),"data-testid":this.fundAddressLine2.testId,value:this.fundAddressLine2.value,onInput:function(t){return e.updateAddressLine2(t.target.value)}}),r("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},Dr.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),required:true,"data-testid":this.fundAddressCity.testId,value:this.fundAddressCity.value,onInput:function(t){e.updateAddressCity(t.target.value)}}),r("div",{class:"flex -space-x-px"},r("div",{class:"w-1/2 flex-1 min-w-0"},r("input",{placeholder:"Postcode",type:"text",required:true,class:Object.assign(Object.assign({},Dr.Input(this.formState==="validated")),{"rounded-none rounded-bl-md shadow-none border-r-0":true}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode","data-testid":this.fundAddressPostcode.testId,value:this.fundAddressPostcode.value,inputmode:"numeric",onInput:function(t){e.updateAddressPostcode(t.target.value)}})),r("div",{class:"flex-1 min-w-0"},r("select",{class:Object.assign(Object.assign({},Dr.Input(this.formState==="validated")),{"rounded-none rounded-br-md shadow-none":true,"text-gray-500":this.formState!=="validated"}),name:"state",required:true,"data-testid":this.fundAddressState.testId,id:"state",onInput:function(t){e.updateAddressState(t.target.value)}},r("option",{disabled:true,selected:this.fundAddressState.value!==undefined,value:""},"State"),this.fundAddressState.options.map((function(t){return r("option",{value:t.value,selected:e.fundAddressState.value===t.value},t.label)})))))),this.formState==="validated"&&r("div",{class:"mt-2 text-sm text-red-600"},this.fundAddressLine1.errorMessage||this.fundAddressLine1.errorMessage||this.fundAddressCity.errorMessage||this.fundAddressPostcode.errorMessage||this.fundAddressState.errorMessage)),r("div",{class:"flex gap-x-4 flex-col sm:flex-row"},r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage)))),r("div",{class:"mt-6 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountName.testId,value:this.bankAccountName.value,onInput:function(t){e.updateBankAccountName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountName.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountBsb.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountBsb.testId,value:this.bankAccountBsb.value,onInput:function(t){var n=t.target.value;e.updateBankName(n);e.updateBankAccountBsb(n)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountBsb.errorMessage))),this.bankName.isValid&&Tr(this.bankName.name,this.bankName.testId,this.bankName.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Dr.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountNumber.testId,value:this.bankAccountNumber.value,onInput:function(t){e.updateBankAccountNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountNumber.errorMessage)))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.isFormValid=function(){return this.fundName.isValid&&this.fundAbn.isValid&&this.fundEsa.isValid&&this.fundAddressLine1.isValid&&this.fundAddressLine2.isValid&&this.fundAddressCity.isValid&&this.fundAddressPostcode.isValid&&this.fundAddressState.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid&&this.bankAccountName.isValid&&this.bankAccountBsb.isValid&&this.bankAccountNumber.isValid};e.prototype.formHasMissingData=function(){return this.fundName.isEmpty||this.fundAbn.isEmpty||this.fundEsa.isEmpty||this.fundAddressLine1.isEmpty||this.fundAddressCity.isEmpty||this.fundAddressPostcode.isEmpty||this.fundAddressState.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty||this.bankAccountName.isEmpty||this.bankAccountBsb.isEmpty||this.bankAccountNumber.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateFundName=function(e){this.fundName=new Br(e.trim())};e.prototype.updateFundEsa=function(e){this.fundEsa=new Hr(e.trim())};e.prototype.updateAddressLine1=function(e){this.fundAddressLine1=new Wr(e.trim())};e.prototype.updateAddressLine2=function(e){this.fundAddressLine2=new Gr(e.trim())};e.prototype.updateAddressCity=function(e){this.fundAddressCity=new Jr(e.trim())};e.prototype.updateAddressPostcode=function(e){this.fundAddressPostcode=new Kr(e.trim())};e.prototype.updateAddressState=function(e){this.fundAddressState=new Xr(e.trim())};e.prototype.updateBankAccountName=function(e){this.bankAccountName=new $r(e.trim())};e.prototype.updateBankAccountBsb=function(e){this.bankAccountBsb=new Zr(e.trim())};e.prototype.updateBankAccountNumber=function(e){this.bankAccountNumber=new ei(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new qr(e)};e.prototype.updateMemberLastName=function(e){this.memberLastName=new jr(e.trim())};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.tryGetBankName=function(e){if(e==null)return null;var t=this.filterDigits(e);var n=t.substring(0,2);var r=t.substring(0,3);var i=ii[n];var a=ii[r];if(i)return i;if(a)return a;return null};e.prototype.updateBankName=function(e){var t=this.tryGetBankName(e);this.bankName=new Qr(t,t!=null)};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}rn.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName.value,fundEsa:this.fundEsa.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({smsfChoice:{abn:this.fundAbn.value,fundName:this.fundName.value,fundAddress:{addressLine1:this.fundAddressLine1.value,addressLine2:this.fundAddressLine2.value.trim()===""?null:this.fundAddressLine2.value.trim(),city:this.fundAddressCity.value,state:this.fundAddressState.value,postcode:this.fundAddressPostcode.value},bsb:this.bankAccountBsb.value,bankAccountName:this.bankAccountName.value,bankAccountNumber:this.bankAccountNumber.value,electronicServiceAddress:this.fundEsa.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value},standardChoiceFormSignature:t},Rt.promotedFundsConfig);return[4,wn.submitSelfManagedFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.initialiseComponent=function(e){this.fundName=new Br(e.fundName);this.fundAbn=new zr(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Hr(e.electronicServiceAddress);this.fundAddressLine1=new Wr(e.addressLine1);this.fundAddressLine2=new Gr(e.addressLine2);this.fundAddressCity=new Jr(e.addressCity);this.fundAddressPostcode=new Kr(e.addressPostcode);this.fundAddressState=new Xr(e.addressState);this.fundAddress=new Yr(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new qr(e.memberFirstName);this.memberLastName=new jr(e.memberFamilyName);this.bankAccountName=new $r(e.bankAccountName);var t=this.tryGetBankName(e.bankAccountBsb);this.bankName=new Qr(t,t!=null);this.bankAccountBsb=new Zr(e.bankAccountBsb);this.bankAccountNumber=new ei(e.bankAccountNumber);this.isSubmitDisabled=this.formHasMissingData()};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,rn.navigateInternally(this.history,en.ConsentPage)]}}))}))};return e}());var oi=e("sss_prefill_warning_box",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;var t=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z",fill:"#FBBF24"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-yellow-50"},r("div",{class:"w-1 self-stretch bg-yellow-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(t,null),r("div",{class:"flex flex-col items-start gap-2 flex-[1_0_0]"},r("div",{class:"flex flex-col items-start gap-1 self-stretch"},this.notificationList.map((function(t){return r("div",{class:"flex items-start gap-[7px] self-stretch pl-0"},e.notificationList.length>1&&r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-yellow-700 rounded-full"})),r("div",{class:"flex-[1_0_0] text-sm not-italic font-normal leading-5 text-yellow-700"},t))}))))))};return e}());var si=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};e.prototype.submitDefaultChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/promoted-fund/default").post(e).badRequest((function(){throw new Error("Failed to process Promoted Default Fund choice request")})).text()]}))}))};e.prototype.submitDefaultChoiceWithJoinAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/promoted-fund/default-with-join").post(e).badRequest((function(){throw new Error("Failed to process Promoted Default Fund With Join choice request")})).text()]}))}))};return e}();var ui=new si;var li=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin==="http://localhost:7100"};this.environmentDiscriminator=function(){return e.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0]};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+".flarehr.com/promoted-fund-join/embed/v1.0/web"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Rt.partnerIdOrDefault,accountId:Rt.accountIdOrDefault,fundId:jt.fund.id,authToken:Rt.jwt});var r=function(n){var i=n.data;if(!i){return}if(i.sender==="promoted-fund-redirect"){window.removeEventListener("message",r);switch(i.type){case"cancel":rn.navigateInternally(t,en.ChoicePage);break;case"success":if(i.memberNumber){var a=jt.fund.id;var o=je.pipe(sr(a),qe.getOrElse((function(){return""})));var s=i.usi.replace(/ /g,"");rn.navigateInternallyToStandardChoice({history:t,fundName:o,fundDetails:{type:"promoted",fundName:o,fundUsi:s,memberNumber:i.memberNumber,promotedFundId:a},handleSubmitFn:function(e){return ui.submitChoiceAsync(Object.assign({fundId:a,memberNumber:i.memberNumber,memberFirstName:i.memberFirstName,memberFamilyName:i.memberFamilyName,usi:s,standardChoiceFormSignature:e,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},Rt.promotedFundsConfig))},promotedFundId:a});break}default:rn.navigateInternally(t,en.ChoicePage);break}qt();return}if(i.sender==="promoted-fund-join"){switch(i.type){case"contentResized":e.height=i.height>0?i.height:e.height;e.width=i.width>0?i.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);$t.navigation(window.location.href);break}}};window.addEventListener("message",r);var i=e.contentDocument;i.open();var a=i.createElement("form");a.method="POST";a.target="_self";a.action=this.promotedFundJoinAppUrl();var o;for(o in n){var s=n[o];if(s!==undefined){var u=document.createElement("input");u.type="hidden";u.name=o;u.value=s;a.append(u)}}i.appendChild(a);i.close();a.submit()};e.prototype.getMemberData=function(){var e,t;var n=Rt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var ci=new li;var di=e("sss_promoted_fund_join_v1_page",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;return r("sss-iframe-host",{build:function(t){return ci.build(t,e.history)}})};return e}());var fi="function";var pi="object";var mi="undefined";var hi="prototype";var vi="hasOwnProperty";function gi(){if(typeof globalThis!==mi&&globalThis){return globalThis}if(typeof self!==mi&&self){return self}if(typeof window!==mi&&window){return window}if(typeof global!==mi&&global){return global}return null}function yi(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==pi&&n!==fi){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[hi]=e;return new r}function bi(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[hi][vi].call(t,i)){e[i]=t[i]}}}return e}var wi=function(e,t){wi=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[vi](n)){e[n]=t[n]}}};return wi(e,t)};function xi(e,t){wi(e,t);function n(){this.constructor=e}e[hi]=t===null?yi(t):(n[hi]=t[hi],new n)}var Si=gi()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Si,bi,xi);if(!__assign){__assign=Si.__assign}if(!__extends){__extends=Si.__extends}var Ci={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var _i=mi;var Fi=pi;var Ii=hi;var Ni=fi;var Ai="window";var Ei="document";var ki="navigator";var Ti="history";var Pi="location";var Di="console";var Mi="performance";var Oi="JSON";var Li="crypto";var Ri="msCrypto";var Ui="ReactNative";var Bi=gi;function Vi(e){var t=Bi();if(t&&t[e]){return t[e]}if(e===Ai&&ji()){return window}return null}function ji(){return Boolean(typeof window===Fi&&window)}function qi(){if(ji()){return window}return Vi(Ai)}function zi(){return Boolean(typeof document===Fi&&document)}function Hi(){if(zi()){return document}return Vi(Ei)}function Wi(){return Boolean(typeof navigator===Fi&&navigator)}function Gi(){if(Wi()){return navigator}return Vi(ki)}function Ji(){return Boolean(typeof history===Fi&&history)}function Ki(){if(Ji()){return history}return Vi(Ti)}function Xi(){if(typeof location===Fi&&location){return location}return Vi(Pi)}function Yi(){if(typeof console!==_i){return console}return Vi(Di)}function $i(){return Vi(Mi)}function Qi(){return Boolean(typeof JSON===Fi&&JSON||Vi(Oi)!==null)}function Zi(){if(Qi()){return JSON||Vi(Oi)}return null}function ea(){return Vi(Li)}function ta(){return Vi(Ri)}function na(){var e=Gi();if(e&&e.product){return e.product===Ui}return false}var ra="on";var ia="attachEvent";var aa="addEventListener";var oa="detachEvent";var sa="removeEventListener";var ua=4294967296;var la=4294967295;var ca=null;var da=false;var fa=123456789;var pa=987654321;function ma(e){if(e<0){e>>>=0}fa=123456789+e&la;pa=987654321-e&la;da=true}function ha(){ma(Math.random()*ua^(new Date).getTime())}function va(e,t){return typeof e===t}function ga(e){return va(e,mi)||e===undefined}function ya(e){return ga(e)||e===null}function ba(e,t){return e&&Object[hi].hasOwnProperty.call(e,t)}function wa(e){return va(e,pi)}function xa(e){return va(e,fi)}function Sa(e,t,n,r){if(r===void 0){r=false}var i=false;if(!ya(e)){try{if(!ya(e[aa])){e[aa](t,n,r);i=true}else if(!ya(e[ia])){e[ia](ra+t,n);i=true}}catch(e){}}return i}function Ca(e,t,n,r){if(r===void 0){r=false}if(!ya(e)){try{if(!ya(e[sa])){e[sa](t,n,r)}else if(!ya(e[oa])){e[oa](ra+t,n)}}catch(e){}}}function _a(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Fa(e,t){if(e&&wa(e)){for(var n in e){if(ba(e,n)){t.call(e,n,e[n])}}}}var Ia=function(){function e(){}e.isDate=function(e){return Object[hi].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[hi].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[hi].toString.call(e)==="[object Error]"};e.isString=function(e){return va(e,"string")};e.isNumber=function(e){return va(e,"number")};e.isBoolean=function(e){return va(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Na,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++){if(a in e&&e[a]===t){return a}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var a=new Array(r);for(var o=0;o<r;o++){if(o in e){a[o]=t.call(i,e[o],e)}}return a};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var a;if(arguments.length>=3){a=arguments[2]}else{while(i<r&&!(i in e)){i++}a=e[i++]}while(i<r){if(i in e){a=t(a,e[i],i,e)}i++}return a};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!xa(e)&&(!wa(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(ba(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var a=i.length;for(var o=0;o<a;o++){if(ba(e,i[o])){n.push(i[o])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var a={enumerable:true,configurable:true};if(n){a.get=n}if(r){a.set=r}i(e,t,a);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=qi();if(r){n=Sa(r,e,t);n=Sa(r["body"],e,t)||n}var i=Hi();if(i){n=Aa.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=$i();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var a="";while(a.length<t){i++;a+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return a};e.isIE=function(){if(ca===null){var e=Gi()||{};var t=(e.userAgent||"").toLowerCase();ca=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return ca};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/la*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=ea()||ta();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&la}else if(e.isIE()){if(!da){ha()}n=e.mwcRandom32()&la}else{n=Math.floor(ua*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){ha()}else{ma(e)}};e.mwcRandom32=function(e){pa=36969*(pa&65535)+(pa>>16)&la;fa=18e3*(fa&65535)+(fa>>16)&la;var t=(pa<<16)+(fa&65535)>>>0&la|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var a=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)};e.isTypeof=va;e.isUndefined=ga;e.isNullOrUndefined=ya;e.hasOwnProperty=ba;e.isFunction=xa;e.isObject=wa;e.objCreate=yi;return e}();var Na=/[xy]/g;var Aa=function(){function e(){}e.Attach=Sa;e.AttachEvent=Sa;e.Detach=Ca;e.DetachEvent=Ca;return e}();var Ea;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(Ea||(Ea={}));var ka={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
2
- /*!
3
- * Microsoft Dynamic Proto Utility, 1.1.0
4
- * Copyright (c) Microsoft and contributors. All rights reserved.
5
- */var Ta="constructor";var Pa="prototype";var Da="function";var Ma="_dynInstFuncs";var Oa="_isDynProxy";var La="_dynClass";var Ra="_dynCls$";var Ua="_dynInstChk";var Ba=Ua;var Va="_dfOpts";var ja="_unknown_";var qa="__proto__";var za="useBaseInst";var Ha="setInstFuncs";var Wa=Object["getPrototypeOf"];var Ga=0;function Ja(e,t){return e&&Object[Pa].hasOwnProperty.call(e,t)}function Ka(e){return typeof e===Da}function Xa(e){return e&&(e===Object[Pa]||e===Array[Pa])}function Ya(e){return Xa(e)||e===Function[Pa]}function $a(e){if(e){if(Wa){return Wa(e)}var t=e[qa]||e[Pa]||e[Ta];if(t){return t}}return null}function Qa(e,t,n){return t!==Ta&&Ka(e[t])&&(n||Ja(e,t))}function Za(e){throw new TypeError("DynamicProto: "+e)}function eo(e){var t={};for(var n in e){if(!t[n]&&Qa(e,n,false)){t[n]=e[n]}}return t}function to(e,t){for(var n=e.length-1;n>=0;n--){if(e[n]===t){return true}}return false}function no(e,t,n,r){function i(e,t,n){var i=t[o];if(i[Oa]&&r){var a=e[Ma]||{};if(a[Ba]!==false){i=(a[t[La]]||{})[n]||i}}return function(){return i.apply(e,arguments)}}var a={};for(var o in n){a[o]=i(t,n,o)}var s=$a(e);var u=[];while(s&&!Ya(s)&&!to(u,s)){for(var o in s){if(!a[o]&&Qa(s,o,!Wa)){a[o]=i(t,s,o)}}u.push(s);s=$a(s)}return a}function ro(e,t,n,r){var i=null;if(e&&Ja(n,La)){var a=e[Ma]||{};i=(a[n[La]]||{})[t];if(!i){Za("Missing ["+t+"] "+Da)}if(!i[Ua]&&a[Ba]!==false){var o=!Ja(e,t);var s=$a(e);var u=[];while(o&&s&&!Ya(s)&&!to(u,s)){var l=s[t];if(l){o=l===r;break}u.push(s);s=$a(s)}try{if(o){e[t]=i}i[Ua]=1}catch(e){a[Ba]=false}}}return i}function io(e,t,n){var r=t[e];if(r===n){r=$a(t)[e]}if(!Ka(r)){Za("["+e+"] is not a "+Da)}return r}function ao(e,t,n,r,i){function a(e,t){var n=function(){var r=ro(this,t,e,n)||io(t,e,n);return r.apply(this,arguments)};n[Oa]=1;return n}if(!Xa(e)){var o=n[Ma]=n[Ma]||{};var s=o[t]=o[t]||{};if(o[Ba]!==false){o[Ba]=!!i}for(var u in n){if(Qa(n,u,false)&&n[u]!==r[u]){s[u]=n[u];delete n[u];if(!Ja(e,u)||e[u]&&!e[u][Oa]){e[u]=a(e,u)}}}}}function oo(e,t){var n=$a(t);while(n&&!Ya(n)){if(n===e){return true}n=$a(n)}return false}function so(e,t){if(Ja(e,Pa)){return e.name||t||ja}return((e||{})[Ta]||{}).name||t||ja}function uo(e,t,n,r){if(!Ja(e,Pa)){Za("theClass is an invalid class definition.")}var i=e[Pa];if(!oo(i,t)){Za("["+so(e)+"] is not in class hierarchy of ["+so(t)+"]")}var a=null;if(Ja(i,La)){a=i[La]}else{a=Ra+so(e,"_")+"$"+Ga;Ga++;i[La]=a}var o=uo[Va];var s=!!o[za];if(s&&r&&r[za]!==undefined){s=!!r[za]}var u=eo(t);var l=no(i,t,u,s);n(t,l);var c=!!Wa&&!!o[Ha];if(c&&r){c=!!r[Ha]}ao(i,a,t,u,c!==false)}var lo={setInstFuncs:true,useBaseInst:true};uo[Va]=lo;var co="AI (Internal): ";var fo="AI: ";var po="AITR_";function mo(e){if(e){return'"'+e.replace(/\"/g,"")+'"'}return""}var ho=function(){function e(e,t,n,r){if(n===void 0){n=false}var i=this;i.messageId=e;i.message=(n?fo:co)+e;var a="";if(Qi()){a=Zi().stringify(r)}var o=(t?" message:"+mo(t):"")+(r?" props:"+mo(a):"");i.message+=o}e.dataType="MessageData";return e}();var vo=function(){function e(t){this.identifier="DiagnosticLogger";this.queue=[];var n=0;var r={};uo(e,this,(function(e){var i=Ia.isNullOrUndefined;var a=Ia.isUndefined;var o=Ia.isFunction;if(i(t)){t={}}e.consoleLoggingLevel=function(){return s("loggingLevelConsole",0)};e.telemetryLoggingLevel=function(){return s("loggingLevelTelemetry",1)};e.maxInternalMessageLimit=function(){return s("maxMessageLimit",25)};e.enableDebugExceptions=function(){return s("enableDebugExceptions",false)};e.throwInternal=function(t,n,i,o,s){if(s===void 0){s=false}var u=new ho(n,i,s,o);if(e.enableDebugExceptions()){throw u}else{if(!a(u)&&!!u){if(!a(u.message)){if(s){var l=+u.messageId;if(!r[l]&&e.consoleLoggingLevel()>=Ea.WARNING){e.warnToConsole(u.message);r[l]=true}}else{if(e.consoleLoggingLevel()>=Ea.WARNING){e.warnToConsole(u.message)}}e.logInternalMessage(t,u)}}}};e.warnToConsole=function(e){var t=Yi();if(!!t){var n="log";if(t.warn){n="warn"}if(o(t[n])){t[n](e)}}};e.resetInternalMessageCount=function(){n=0;r={}};e.logInternalMessage=function(t,i){if(u()){return}var a=true;var o=po+i.messageId;if(r[o]){a=false}else{r[o]=true}if(a){if(t<=e.telemetryLoggingLevel()){e.queue.push(i);n++}if(n===e.maxInternalMessageLimit()){var s="Internal events throttle limit per PageView reached for this app.";var l=new ho(ka.MessageLimitPerPVExceeded,s,false);e.queue.push(l);e.warnToConsole(s)}}};function s(e,n){var r=t[e];if(!i(r)){return r}return n}function u(){return n>=e.maxInternalMessageLimit()}}))}e.prototype.enableDebugExceptions=function(){return false};e.prototype.consoleLoggingLevel=function(){return 0};e.prototype.telemetryLoggingLevel=function(){return 1};e.prototype.maxInternalMessageLimit=function(){return 25};e.prototype.throwInternal=function(e,t,n,r,i){};e.prototype.warnToConsole=function(e){};e.prototype.resetInternalMessageCount=function(){};e.prototype.logInternalMessage=function(e,t){};return e}();var go="ctx";var yo=function(){function e(t,n,r){var i=this;var a=false;i.start=Ia.dateNow();i.name=t;i.isAsync=r;i.isChildEvt=function(){return false};if(Ia.isFunction(n)){var o;a=Ia.objDefineAccessors(i,"payload",(function(){if(!o&&Ia.isFunction(n)){o=n();n=null}return o}))}i.getCtx=function(t){if(t){if(t===e.ParentContextKey||t===e.ChildrenContextKey){return i[t]}return(i[go]||{})[t]}return null};i.setCtx=function(t,n){if(t){if(t===e.ParentContextKey){if(!i[t]){i.isChildEvt=function(){return true}}i[t]=n}else if(t===e.ChildrenContextKey){i[t]=n}else{var r=i[go]=i[go]||{};r[t]=n}}};i.complete=function(){var t=0;var r=i.getCtx(e.ChildrenContextKey);if(Ia.isArray(r)){for(var o=0;o<r.length;o++){var s=r[o];if(s){t+=s.time}}}i.time=Ia.dateNow()-i.start;i.exTime=i.time-t;i.complete=function(){};if(!a&&Ia.isFunction(n)){i.payload=n()}}}e.ParentContextKey="parent";e.ChildrenContextKey="childEvts";return e}();var bo=function(){function e(t){this.ctx={};uo(e,this,(function(e){e.create=function(e,t,n){return new yo(e,t,n)};e.fire=function(e){if(e){e.complete();if(t){t.perfEvent(e)}}};e.setCtx=function(t,n){if(t){var r=e[go]=e[go]||{};r[t]=n}};e.getCtx=function(t){return(e[go]||{})[t]}}))}e.prototype.create=function(e,t,n){return null};e.prototype.fire=function(e){};e.prototype.setCtx=function(e,t){};e.prototype.getCtx=function(e){};return e}();var wo="CoreUtils.doPerf";function xo(e,t,n,r,i){if(e){var a=e;if(a&&Ia.isFunction(a["getPerfMgr"])){a=a["getPerfMgr"]()}if(a){var o=void 0;var s=a.getCtx(wo);try{o=a.create(t(),r,i);if(o){if(s&&o.setCtx){o.setCtx(yo.ParentContextKey,s);if(s.getCtx&&s.setCtx){var u=s.getCtx(yo.ChildrenContextKey);if(!u){u=[];s.setCtx(yo.ChildrenContextKey,u)}u.push(o)}}a.setCtx(wo,o);return n(o)}}catch(e){if(o&&o.setCtx){o.setCtx("exception",e)}}finally{if(o){a.fire(o)}a.setCtx(wo,s)}}}return n()}var So=Ia.isFunction;var Co=function(){function e(e,t){var n=this;var r=null;var i=So(e.processTelemetry);var a=So(e.setNextPlugin);n._hasRun=false;n.getPlugin=function(){return e};n.getNext=function(){return r};n.setNext=function(e){r=e};n.processTelemetry=function(o,s){if(!s){s=t}var u=e?e.identifier:"TelemetryPluginChain";xo(s?s.core():null,(function(){return u+":processTelemetry"}),(function(){if(e&&i){n._hasRun=true;try{s.setNext(r);if(a){e.setNextPlugin(r)}r&&(r._hasRun=false);e.processTelemetry(o,s)}catch(n){var t=r&&r._hasRun;if(!r||!t){s.diagLog().throwInternal(Ea.CRITICAL,ka.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+n)}if(r&&!t){r.processTelemetry(o,s)}}}else if(r){n._hasRun=true;r.processTelemetry(o,s)}}),(function(){return{item:o}}),!o.sync)}}return e}();var _o=Ia.isNullOrUndefined;function Fo(e,t){var n=[];if(e&&e.length>0){var r=null;for(var i=0;i<e.length;i++){var a=e[i];if(a&&Ia.isFunction(a.processTelemetry)){var o=new Co(a,t);n.push(o);if(r){r.setNext(o)}r=o}}}return n.length>0?n[0]:null}function Io(e,t,n){var r=[];var i=n?false:true;if(e){while(e){var a=e.getPlugin();if(i||a===n){i=true;r.push(a)}e=e.getNext()}}if(!i){r.push(n)}return Fo(r,t)}function No(e,t,n){var r=e;var i=false;if(n&&e){r=[];Ia.arrForEach(e,(function(e){if(i||e===n){i=true;r.push(e)}}))}if(n&&!i){if(!r){r=[]}r.push(n)}return Fo(r,t)}var Ao=function(){function e(t,n,r,i){var a=this;var o=null;if(i!==null){if(t&&Ia.isFunction(t.getPlugin)){o=Io(t,a,i||t.getPlugin())}else{if(i){o=No(t,a,i)}else if(Ia.isUndefined(i)){o=Fo(t,a)}}}a.core=function(){return r};a.diagLog=function(){var e=(r||{}).logger;if(!e){e=new vo(n||{})}return e};a.getCfg=function(){return n};a.getExtCfg=function(e,t){if(t===void 0){t={}}var r;if(n){var i=n.extensionConfig;if(i&&e){r=i[e]}}return r?r:t};a.getConfig=function(e,t,r){if(r===void 0){r=false}var i;var o=a.getExtCfg(e,null);if(o&&!_o(o[t])){i=o[t]}else if(n&&!_o(n[t])){i=n[t]}return!_o(i)?i:r};a.hasNext=function(){return o!=null};a.getNext=function(){return o};a.setNext=function(e){o=e};a.processNext=function(e){var t=o;if(t){o=t.getNext();t.processTelemetry(e,a)}};a.createNew=function(t,i){if(t===void 0){t=null}return new e(t||o,n,r,i)}}return e}();var Eo=Ia.isFunction;var ko="getPlugin";var To=function(){function e(){var e=this;var t=false;var n=null;var r=null;e.core=null;e.diagLog=function(t){return e._getTelCtx(t).diagLog()};e.isInitialized=function(){return t};e.setInitialized=function(e){t=e};e.setNextPlugin=function(e){r=e};e.processNext=function(e,t){if(t){t.processNext(e)}else if(r&&Eo(r.processTelemetry)){r.processTelemetry(e,null)}};e._getTelCtx=function(t){if(t===void 0){t=null}var i=t;if(!i){var a=n||new Ao(null,{},e.core);if(r&&r[ko]){i=a.createNew(null,r[ko])}else{i=a.createNew(null,r)}}return i};e._baseTelInit=function(i,a,o,s){if(i){i.extensionConfig=i.extensionConfig||[]}if(!s&&a){s=a.getProcessTelContext().getNext()}var u=r;if(r&&r[ko]){u=r[ko]()}e.core=a;n=new Ao(s,i,a,u);t=true}}e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)};return e}();var Po=Ia.isFunction;var Do="processTelemetry";var Mo="priority";var Oo="setNextPlugin";var Lo="isInitialized";function Ro(e,t){var n=[];var r=null;var i=e.getNext();while(i){var a=i.getPlugin();if(a){if(r&&Po(r[Oo])&&Po(a[Do])){r[Oo](a)}if(!Po(a[Lo])||!a[Lo]()){n.push(a)}r=a;i=i.getNext()}}Ia.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function Uo(e){return e.sort((function(e,t){var n=0;var r=Po(t[Do]);if(Po(e[Do])){n=r?e[Mo]-t[Mo]:1}else if(r){n=-1}return n}))}var Bo=500;var Vo="Channel has invalid priority";var jo=Ia.objDefineAccessors;var qo=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin";n.priority=Bo;var r=Ia.arrForEach;var i;uo(t,n,(function(e,t){e.setNextPlugin=function(e){};e.processTelemetry=function(e,t){if(i){r(i,(function(r){if(r.length>0){var i=n._getTelCtx(t).createNew(r);i.processNext(e)}}))}};e.getChannelControls=function(){return i};e.initialize=function(n,a,o){if(e.isInitialized()){return}t.initialize(n,a,o);if(n.isCookieUseDisabled){Ia.disableCookies()}s((n||{}).channels,o);r(i,(function(e){return Ro(new Ao(e,n,a),o)}))}}));function a(e){r(e,(function(e){if(e.priority<Bo){throw Error(Vo+e.identifier)}}))}function o(e){if(e&&e.length>0){e=e.sort((function(e,t){return e.priority-t.priority}));a(e);i.push(e)}}function s(e,t){i=[];if(e){r(e,(function(e){return o(e)}))}if(t){var n=[];r(t,(function(e){if(e.priority>Bo){n.push(e)}}));o(n)}}return n}t.prototype.processTelemetry=function(e,t){};t.prototype.getChannelControls=function(){return null};t.prototype.initialize=function(e,t,n){};t._staticInit=function(){jo(t.prototype,"ChannelControls",t.prototype.getChannelControls);jo(t.prototype,"channelQueue",t.prototype.getChannelControls)}();return t}(To);var zo="Extensions must provide callback to initialize";var Ho=Ia.arrForEach;var Wo=Ia.isNullOrUndefined;var Go="_notificationManager";var Jo=function(){function e(){var t=false;var n;var r;var i;var a;uo(e,this,(function(e){e._extensions=new Array;r=new qo;e.logger=Ia.objCreate({throwInternal:function(e,t,n,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}});n=[];e.isInitialized=function(){return t};e.initialize=function(n,a,o,s){if(e.isInitialized()){throw Error("Core should not be initialized more than once")}if(!n||Wo(n.instrumentationKey)){throw Error("Please provide instrumentation key")}i=s;e[Go]=s;e.config=n||{};n.extensions=Wo(n.extensions)?[]:n.extensions;var u=n.extensionConfig=Wo(n.extensionConfig)?{}:n.extensionConfig;u.NotificationManager=s;if(o){e.logger=o}var l=[];l.push.apply(l,a.concat(n.extensions));l=Uo(l);var c=[];var d={};Ho(l,(function(e){if(Wo(e)||Wo(e.initialize)){throw Error(zo)}var t=e.priority;var n=e.identifier;if(e&&t){if(!Wo(d[t])){o.warnToConsole("Two extensions have same priority #"+t+" - "+d[t]+", "+n)}else{d[t]=n}}if(!t||t<r.priority){c.push(e)}}));l.push(r);c.push(r);l=Uo(l);e._extensions=l;Ro(new Ao([r],n,e),l);Ro(new Ao(c,n,e),l);e._extensions=c;if(e.getTransmissionControls().length===0){throw new Error("No channels available")}t=true;e.releaseQueue()};e.getTransmissionControls=function(){return r.getChannelControls()};e.track=function(t){if(!t.iKey){t.iKey=e.config.instrumentationKey}if(!t.time){t.time=Ia.toISOString(new Date)}if(Wo(t.ver)){t.ver="4.0"}if(e.isInitialized()){e.getProcessTelContext().processNext(t)}else{n.push(t)}};e.getProcessTelContext=function(){var t=e._extensions;var n=t;if(!t||t.length===0){n=[r]}return new Ao(n,e.config,e)};e.getNotifyMgr=function(){if(!i){i=Ia.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}});e[Go]=i}return i};e.getPerfMgr=function(){if(!a){if(e.config&&e.config.enablePerfMgr){a=new bo(e.getNotifyMgr())}}return a};e.setPerfMgr=function(e){a=e};e.eventCnt=function(){return n.length};e.releaseQueue=function(){if(n.length>0){Ho(n,(function(t){e.getProcessTelContext().processNext(t)}));n=[]}}}))}e.prototype.initialize=function(e,t,n,r){};e.prototype.getTransmissionControls=function(){return null};e.prototype.track=function(e){};e.prototype.getProcessTelContext=function(){return null};e.prototype.getNotifyMgr=function(){return null};e.prototype.getPerfMgr=function(){return null};e.prototype.setPerfMgr=function(e){};e.prototype.eventCnt=function(){return 0};e.prototype.releaseQueue=function(){};return e}();var Ko=function(){function e(t){this.listeners=[];var n=Ia.arrForEach;var r=!!(t||{}).perfEvtsSendAll;uo(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)};e.removeNotificationListener=function(t){var n=Ia.arrIndexOf(e.listeners,t);while(n>-1){e.listeners.splice(n,1);n=Ia.arrIndexOf(e.listeners,t)}};e.eventsSent=function(t){n(e.listeners,(function(e){if(e&&e.eventsSent){setTimeout((function(){return e.eventsSent(t)}),0)}}))};e.eventsDiscarded=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsDiscarded){setTimeout((function(){return e.eventsDiscarded(t,r)}),0)}}))};e.eventsSendRequest=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsSendRequest){if(r){setTimeout((function(){return e.eventsSendRequest(t,r)}),0)}else{try{e.eventsSendRequest(t,r)}catch(e){}}}}))};e.perfEvent=function(t){if(t){if(r||!t.isChildEvt()){n(e.listeners,(function(e){if(e&&e.perfEvent){if(t.isAsync){setTimeout((function(){return e.perfEvent(t)}),0)}else{try{e.perfEvent(t)}catch(e){}}}}))}}}}))}e.prototype.addNotificationListener=function(e){};e.prototype.removeNotificationListener=function(e){};e.prototype.eventsSent=function(e){};e.prototype.eventsDiscarded=function(e,t){};e.prototype.eventsSendRequest=function(e,t){};return e}();var Xo=function(e){__extends(t,e);function t(){var n=e.call(this)||this;uo(t,n,(function(e,t){e.initialize=function(e,n,r,i){t.initialize(e,n,r||new vo(e),i||new Ko(e))};e.track=function(i){xo(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){if(i===null){r(i);throw Error("Invalid telemetry item")}n(i);t.track(i)}),(function(){return{item:i}}),!i.sync)};e.addNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.addNotificationListener(t)}};e.removeNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.removeNotificationListener(t)}};e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;if(!n||!(n>0)){n=1e4}return setInterval((function(){var n=e.logger?e.logger.queue:[];Ia.arrForEach(n,(function(n){var r={name:t?t:"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:Ia.toISOString(new Date),baseType:ho.dataType,baseData:{message:n.message}};e.track(r)}));n.length=0}),n)};function n(e){if(Ia.isNullOrUndefined(e.name)){r(e);throw Error("telemetry name required")}}function r(t){var n=e.getNotifyMgr();if(n){n.eventsDiscarded([t],Ci.InvalidEvent)}}}));return n}t.prototype.initialize=function(e,t,n,r){};t.prototype.track=function(e){};t.prototype.addNotificationListener=function(e){};t.prototype.removeNotificationListener=function(e){};t.prototype.pollInternalLogs=function(e){return 0};return t}(Jo);var Yo="_aiHooks";var $o=["req","rsp","hkErr","fnErr"];var Qo="__proto__";var Zo="constructor";function es(e,t){if(e){for(var n=0;n<e.length;n++){if(t(e[n],n)){break}}}}function ts(e,t,n,r,i){if(i>=0&&i<=2){es(e,(function(e,a){var o=e.cbks;var s=o[$o[i]];if(s){t.ctx=function(){var e=r[a]=r[a]||{};return e};try{s.apply(t.inst,n)}catch(e){var u=t.err;try{var l=o[$o[2]];if(l){t.err=e;l.apply(t.inst,n)}}catch(e){}finally{t.err=u}}}}))}}function ns(e){return function(){var t=this;var n=arguments;var r=e.h;var i={name:e.n,inst:t,ctx:null,set:u};var a=[];var o=s([i],n);function s(e,t){es(t,(function(t){e.push(t)}));return e}function u(e,t){n=s([],n);n[e]=t;o=s([i],n)}ts(r,i,o,a,0);var l=e.f;try{i.rslt=l.apply(t,n)}catch(e){i.err=e;ts(r,i,o,a,3);throw e}ts(r,i,o,a,1);return i.rslt}}var rs=Object["getPrototypeOf"];function is(e){if(e){if(rs){return rs(e)}var t=e[Qo]||e[Ii]||e[Zo];if(t){return t}}return null}function as(e,t,n){var r=null;if(e){if(Ia.hasOwnProperty(e,t)){r=e}else if(n){r=as(is(e),t,false)}}return r}function os(e,t,n){if(e){return ss(e[Ii],t,n,false)}return null}function ss(e,t,n,r){if(r===void 0){r=true}if(e&&t&&n){var i=as(e,t,r);if(i){var a=i[t];if(typeof a===Ni){var o=a[Yo];if(!o){o={i:0,n:t,f:a,h:[]};var s=ns(o);s[Yo]=o;i[t]=s}var u={id:o.i,cbks:n,rm:function(){var e=this.id;es(o.h,(function(t,n){if(t.id===e){o.h.splice(n,1);return 1}}))}};o.i++;o.h.push(u);return u}}}return null}var us;(function(e){e[e["LocalStorage"]=0]="LocalStorage";e[e["SessionStorage"]=1]="SessionStorage"})(us||(us={}));var ls;(function(e){e[e["Default"]=0]="Default";e[e["Required"]=1]="Required";e[e["Array"]=2]="Array";e[e["Hidden"]=4]="Hidden"})(ls||(ls={}));var cs;(function(e){e[e["AI"]=0]="AI";e[e["AI_AND_W3C"]=1]="AI_AND_W3C";e[e["W3C"]=2]="W3C"})(cs||(cs={}));var ds=function(){function e(){}e.requestContextHeader="Request-Context";e.requestContextTargetKey="appId";e.requestContextAppIdFormat="appId=cid-v1:";e.requestIdHeader="Request-Id";e.traceParentHeader="traceparent";e.sdkContextHeader="Sdk-Context";e.sdkContextHeaderAppIdRequest="appId";e.requestContextHeaderLowerCase="request-context";return e}();var fs=function(){function e(){}e.sanitizeKeyAndAddUniqueness=function(t,n,r){var i=n.length;var a=e.sanitizeKey(t,n);if(a.length!==i){var o=0;var s=a;while(r[s]!==undefined){o++;s=a.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(o)}a=s}return a};e.sanitizeKey=function(t,n){var r;if(n){n=e.trim(n.toString());if(n.length>e.MAX_NAME_LENGTH){r=n.substring(0,e.MAX_NAME_LENGTH);t.throwInternal(Ea.WARNING,ka.NameTooLong,"name is too long. It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},true)}}return r||n};e.sanitizeString=function(t,n,r){if(r===void 0){r=e.MAX_STRING_LENGTH}var i;if(n){r=r?r:e.MAX_STRING_LENGTH;n=e.trim(n);if(n.toString().length>r){i=n.toString().substring(0,r);t.throwInternal(Ea.WARNING,ka.StringValueTooLong,"string value is too long. It has been truncated to "+r+" characters.",{value:n},true)}}return i||n};e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,ka.UrlTooLong)};e.sanitizeMessage=function(t,n){var r;if(n){if(n.length>e.MAX_MESSAGE_LENGTH){r=n.substring(0,e.MAX_MESSAGE_LENGTH);t.throwInternal(Ea.WARNING,ka.MessageTruncated,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},true)}}return r||n};e.sanitizeException=function(t,n){var r;if(n){if(n.length>e.MAX_EXCEPTION_LENGTH){r=n.substring(0,e.MAX_EXCEPTION_LENGTH);t.throwInternal(Ea.WARNING,ka.ExceptionTruncated,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},true)}}return r||n};e.sanitizeProperties=function(t,n){if(n){var r={};Fa(n,(function(n,i){if(Ia.isObject(i)&&Qi()){try{i=Zi().stringify(i)}catch(e){t.throwInternal(Ea.WARNING,ka.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:e},true)}}i=e.sanitizeString(t,i,e.MAX_PROPERTY_LENGTH);n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeMeasurements=function(t,n){if(n){var r={};Fa(n,(function(n,i){n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,ka.IdTooLong).toString():n};e.sanitizeInput=function(t,n,r,i){var a;if(n){n=e.trim(n);if(n.length>r){a=n.substring(0,r);t.throwInternal(Ea.WARNING,i,"input is too long, it has been truncated to "+r+" characters.",{data:n},true)}}return a||n};e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)};e.trim=function(e){if(!Ia.isString(e)){return e}return e.replace(/^\s+|\s+$/g,"")};e.MAX_NAME_LENGTH=150;e.MAX_ID_LENGTH=128;e.MAX_PROPERTY_LENGTH=8192;e.MAX_STRING_LENGTH=1024;e.MAX_URL_LENGTH=2048;e.MAX_MESSAGE_LENGTH=32768;e.MAX_EXCEPTION_LENGTH=32768;return e}();var ps=Gi();var ms=Ia.isString;var hs=null;function vs(e,t){var n=e.length;var r=n-t.length;return e.substring(r>=0?r:0,n)===t}var gs=function(){function e(){}e.createDomEvent=function(e){var t=null;if(Ia.isFunction(Event)){t=new Event(e)}else{var n=Hi();if(n&&n.createEvent){t=n.createEvent("Event");t.initEvent(e,true,true)}}return t};e.disableStorage=function(){e._canUseLocalStorage=false;e._canUseSessionStorage=false};e._getLocalStorageObject=function(){if(e.canUseLocalStorage()){return e._getVerifiedStorageObject(us.LocalStorage)}return null};e._getVerifiedStorageObject=function(e){var t=null;var n;var r;try{if(Ia.isNullOrUndefined(Bi())){return null}r=new Date;t=e===us.LocalStorage?Vi("localStorage"):Vi("sessionStorage");t.setItem(r.toString(),r.toString());n=t.getItem(r.toString())!==r.toString();t.removeItem(r.toString());if(n){t=null}}catch(e){t=null}return t};e.isInternalApplicationInsightsEndpoint=function(t){return e._internalEndpoints.indexOf(t.toLowerCase())!==-1};e.canUseLocalStorage=function(){if(e._canUseLocalStorage===undefined){e._canUseLocalStorage=!!e._getVerifiedStorageObject(us.LocalStorage)}return e._canUseLocalStorage};e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ea.WARNING,ka.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setStorage=function(t,n,r){var i=e._getLocalStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ea.WARNING,ka.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ea.WARNING,ka.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e._getSessionStorageObject=function(){if(e.canUseSessionStorage()){return e._getVerifiedStorageObject(us.SessionStorage)}return null};e.canUseSessionStorage=function(){if(e._canUseSessionStorage===undefined){e._canUseSessionStorage=!!e._getVerifiedStorageObject(us.SessionStorage)}return e._canUseSessionStorage};e.getSessionStorageKeys=function(){var t=[];if(e.canUseSessionStorage()){Fa(Vi("sessionStorage"),(function(e){t.push(e)}))}return t};e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ea.WARNING,ka.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setSessionStorage=function(t,n,r){var i=e._getSessionStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ea.WARNING,ka.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ea.WARNING,ka.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.disableCookies=function(){Ia.disableCookies()};e.canUseCookies=function(t){if(Ia._canUseCookies===undefined){Ia._canUseCookies=false;try{Ia._canUseCookies=e.document.cookie!==undefined}catch(n){t.throwInternal(Ea.WARNING,ka.CannotAccessCookie,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return Ia._canUseCookies};e.disallowsSameSiteNone=function(e){if(!ms(e)){return false}if(e.indexOf("CPU iPhone OS 12")!==-1||e.indexOf("iPad; CPU OS 12")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&e.indexOf("Version/")!==-1&&e.indexOf("Safari")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&vs(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")){return true}if(e.indexOf("Chrome/5")!==-1||e.indexOf("Chrome/6")!==-1){return true}if(e.indexOf("UnrealEngine")!==-1&&e.indexOf("Chrome")===-1){return true}if(e.indexOf("UCBrowser/12")!==-1||e.indexOf("UCBrowser/11")!==-1){return true}return false};e.setCookie=function(t,n,r,i){if(e.canUseCookies(t)){var a="";var o="";if(i){a=";domain="+i}var s=Xi();if(s&&s.protocol==="https:"){o=";secure";if(hs===null){hs=e.disallowsSameSiteNone((Gi()||{}).userAgent)}if(!hs){r=r+";SameSite=None"}}e.document.cookie=n+"="+r+a+";path=/"+o}};e.stringToBoolOrDefault=function(e,t){if(t===void 0){t=false}if(e===undefined||e===null){return t}return e.toString().toLowerCase()==="true"};e.getCookie=function(t,n){if(!e.canUseCookies(t)){return}var r="";if(n&&n.length){var i=n+"=";var a=e.document.cookie.split(";");for(var o=0;o<a.length;o++){var s=a[o];s=e.trim(s);if(s&&s.indexOf(i)===0){r=s.substring(i.length,a[o].length);break}}}return r};e.deleteCookie=function(t,n){if(e.canUseCookies(t)){e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;"}};e.random32=function(){return Ia.random32(true)};e.getIEVersion=function(e){if(e===void 0){e=null}var t=e?e.toLowerCase():ps?(ps.userAgent||"").toLowerCase():"";if(t.indexOf("msie")!==-1){return parseInt(t.split("msie")[1])}else if(t.indexOf("trident/")){var n=parseInt(t.split("trident/")[1]);if(n){return n+4}}return null};e.msToTimeSpan=function(e){if(isNaN(e)||e<0){e=0}e=Math.round(e);var t=""+e%1e3;var n=""+Math.floor(e/1e3)%60;var r=""+Math.floor(e/(1e3*60))%60;var i=""+Math.floor(e/(1e3*60*60))%24;var a=Math.floor(e/(1e3*60*60*24));t=t.length===1?"00"+t:t.length===2?"0"+t:t;n=n.length<2?"0"+n:n;r=r.length<2?"0"+r:r;i=i.length<2?"0"+i:i;return(a>0?a+".":"")+i+":"+r+":"+n+"."+t};e.isCrossOriginError=function(e,t,n,r,i){return(e==="Script error."||e==="Script error")&&!i};e.dump=function(e){var t=Object[Ii].toString.call(e);var n="";if(t==="[object Error]"){n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"}else if(Qi()){n=Zi().stringify(e)}return t+n};e.getExceptionName=function(e){var t=Object[Ii].toString.call(e);if(t==="[object Error]"){return e.name}return""};e.addEventHandler=function(e,t){return Aa.Attach(qi(),e,t)};e.IsBeaconApiSupported=function(){return"sendBeacon"in ps&&ps.sendBeacon};e.getExtension=function(e,t){var n=null;var r=0;while(!n&&r<e.length){if(e[r]&&e[r].identifier===t){n=e[r]}r++}return n};e.document=Hi()||{};e._canUseLocalStorage=undefined;e._canUseSessionStorage=undefined;e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];e.NotSpecified="not_specified";e.trim=Ia.strTrim;e.newId=Ia.newId;e.generateW3CId=Ia.generateW3CId;e.isArray=Ia.isArray;e.isError=Ia.isError;e.isDate=Ia.isDate;e.toISOStringForIE8=Ia.toISOString;return e}();var ys=function(){function e(){}e.parseUrl=function(t){var n=e._htmlAnchorIdx;var r=e._htmlAnchorElement;var i=r[n];if(!e.document.createElement){i={host:e.parseHost(t,true)}}else if(!r[n]){i=r[n]=e.document.createElement("a")}i.href=t;n++;if(n>=r.length){n=0}e._htmlAnchorIdx=n;return i};e.getAbsoluteUrl=function(t){var n;var r=e.parseUrl(t);if(r){n=r.href}return n};e.getPathName=function(t){var n;var r=e.parseUrl(t);if(r){n=r.pathname}return n};e.getCompleteUrl=function(e,t){if(e){return e.toUpperCase()+" "+t}else{return t}};e.parseHost=function(t,n){var r=e.parseFullHost(t,n);if(r){var i=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(i!=null&&i.length>3&&ms(i[2])&&i[2].length>0){return i[2]+(i[3]||"")}}return r};e.parseFullHost=function(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(r!=null&&r.length>2&&ms(r[2])&&r[2].length>0){n=r[2]||"";if(t&&r.length>2){var i=(r[1]||"").toLowerCase();var a=r[3]||"";if(i==="http"&&a===":80"){a=""}else if(i==="https"&&a===":443"){a=""}n+=a}}}return n};e.document=Hi()||{};e._htmlAnchorIdx=0;e._htmlAnchorElement=[null,null,null,null,null];return e}();var bs=function(){function e(){}e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders){return false}if(e&&e.correlationHeaderExcludePatterns){for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++){if(e.correlationHeaderExcludePatterns[r].test(t)){return false}}}var i=ys.parseUrl(t).host.toLowerCase();if(i&&(i.indexOf(":443")!==-1||i.indexOf(":80")!==-1)){i=(ys.parseFullHost(t,true)||"").toLowerCase()}if((!e||!e.enableCorsCorrelation)&&i!==n){return false}var a=e&&e.correlationHeaderDomains;if(a){var o;Ia.arrForEach(a,(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));o=o||t.test(i)}));if(!o){return false}}var s=e&&e.correlationHeaderExcludedDomains;if(!s||s.length===0){return true}for(var r=0;r<s.length;r++){var u=new RegExp(s[r].toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));if(u.test(i)){return false}}return i&&i.length>0};e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,ds.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix){return n}}};e.getCorrelationContextValue=function(e,t){if(e){var n=e.split(",");for(var r=0;r<n.length;++r){var i=n[r].split("=");if(i.length===2&&i[0]===t){return i[1]}}}};e.correlationIdPrefix="cid-v1:";return e}();var ws=function(){function e(){}e.ParseDependencyPath=function(e,t,n,r){var i,a=r,o=r;if(t&&t.length>0){var s=ys.parseUrl(t);i=s.host;if(!a){if(s.pathname!=null){var u=s.pathname.length===0?"/":s.pathname;if(u.charAt(0)!=="/"){u="/"+u}o=s.pathname;a=fs.sanitizeString(e,n?n+" "+u:u)}else{a=fs.sanitizeString(e,t)}}}else{i=r;a=r}return{target:i,name:a,data:o}};return e}();var xs=function(){function e(){}e.Now=function(){var e=$i();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0){return t}}return(new Date).getTime()};e.GetDuration=function(e,t){var n=null;if(e!==0&&t!==0&&!Ia.isNullOrUndefined(e)&&!Ia.isNullOrUndefined(t)){n=t-e}return n};return e}();var Ss="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";var Cs="sampleRate";var _s="ProcessLegacy";var Fs="http.method";var Is="https://dc.services.visualstudio.com";var Ns=function(){function e(){}e.parse=function(t){if(!t){return{}}var n=t.split(e._FIELDS_SEPARATOR);var r=Ia.arrReduce(n,(function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(r.length===2){var i=r[0].toLowerCase();var a=r[1];t[i]=a}return t}),{});if(Ia.objKeys(r).length>0){if(r.endpointsuffix){var i=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+i+"dc."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||Is}return r};e._FIELDS_SEPARATOR=";";e._FIELD_KEY_VALUE_SEPARATOR="=";return e}();var As=function(){function e(){}return e}();var Es=function(e){__extends(t,e);function t(){return e.call(this)||this}return t}(As);var ks=function(){function e(){this.ver=1;this.sampleRate=100;this.tags={}}return e}();var Ts=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this)||this;i.name=fs.sanitizeString(t,r)||gs.NotSpecified;i.data=n;i.time=Ia.toISOString(new Date);i.aiDataContract={time:ls.Required,iKey:ls.Required,name:ls.Required,sampleRate:function(){return i.sampleRate===100?ls.Hidden:ls.Required},tags:ls.Required,data:ls.Required};return i}return t}(ks);var Ps=function(){function e(){}return e}();var Ds=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Ps);var Ms=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.aiDataContract={ver:ls.Required,name:ls.Required,properties:ls.Default,measurements:ls.Default};a.name=fs.sanitizeString(t,n)||gs.NotSpecified;a.properties=fs.sanitizeProperties(t,r);a.measurements=fs.sanitizeMeasurements(t,i);return a}t.envelopeType="Microsoft.ApplicationInsights.{0}.Event";t.dataType="EventData";return t}(Ds);var Os=function(){function e(){}return e}();var Ls=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.exceptions=[];t.properties={};t.measurements={};return t}return t}(Ps);var Rs=function(){function e(){this.hasFullStack=true;this.parsedStack=[]}return e}();var Us="error";function Bs(e){return"hasFullStack"in e&&"typeName"in e}function Vs(e){return"ver"in e&&"exceptions"in e&&"properties"in e}function js(e){var t="";if(e){t=e.typeName||e.name||"";if(!t){try{var n=/function (.{1,})\(/;var r=n.exec(e.constructor.toString());t=r&&r.length>1?r[1]:""}catch(e){}}}return t}var qs=function(e){__extends(t,e);function t(t,n,r,i,a,o){var s=e.call(this)||this;s.aiDataContract={ver:ls.Required,exceptions:ls.Required,severityLevel:ls.Default,properties:ls.Default,measurements:ls.Default};if(!Vs(n)){s.exceptions=[new zs(t,n)];s.properties=fs.sanitizeProperties(t,r)||{};s.measurements=fs.sanitizeMeasurements(t,i);if(a){s.severityLevel=a}if(o){s.id=o}}else{s.exceptions=n.exceptions;s.properties=n.properties;s.measurements=n.measurements;if(n.severityLevel){s.severityLevel=n.severityLevel}if(n.id){s.id=n.id}if(n.problemGroup){s.problemGroup=n.problemGroup}s.ver=2;if(!Ia.isNullOrUndefined(n.isManual)){s.isManual=n.isManual}}return s}t.CreateFromInterface=function(e,n,r,i){var a=n.exceptions&&Ia.arrMap(n.exceptions,(function(t){return zs.CreateFromInterface(e,t)}));var o=new t(e,__assign({},n,{exceptions:a}),r,i);return o};t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,i=e.severityLevel,a=e.problemGroup,o=e.id,s=e.isManual;var u=t instanceof Array&&Ia.arrMap(t,(function(e){return e.toInterface()}))||undefined;return{ver:"4.0",exceptions:u,severityLevel:i,properties:n,measurements:r,problemGroup:a,id:o,isManual:s}};t.CreateSimpleException=function(e,t,n,r,i,a){return{exceptions:[{hasFullStack:true,message:e,stack:i,typeName:t}]}};t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception";t.dataType="ExceptionData";return t}(Ls);var zs=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.aiDataContract={id:ls.Default,outerId:ls.Default,typeName:ls.Required,message:ls.Required,hasFullStack:ls.Default,stack:ls.Default,parsedStack:ls.Array};if(!Bs(r)){var a=r;if(!gs.isError(a)){a=a[Us]||a.evt||a}i.typeName=fs.sanitizeString(n,js(a))||gs.NotSpecified;i.message=fs.sanitizeMessage(n,r.message)||gs.NotSpecified;var o=r.stack;i.parsedStack=t.parseStack(o);i.stack=fs.sanitizeException(n,o);i.hasFullStack=gs.isArray(i.parsedStack)&&i.parsedStack.length>0}else{i.typeName=r.typeName;i.message=r.message;i.stack=r.stack;i.parsedStack=r.parsedStack;i.hasFullStack=r.hasFullStack}return i}t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Ia.arrMap(this.parsedStack,(function(e){return e.toInterface()}));var t={id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined};return t};t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&Ia.arrMap(n.parsedStack,(function(e){return Hs.CreateFromInterface(e)}))||n.parsedStack;var i=new t(e,__assign({},n,{parsedStack:r}));return i};t.parseStack=function(e){var t;if(Ia.isString(e)){var n=e.split("\n");t=[];var r=0;var i=0;for(var a=0;a<=n.length;a++){var o=n[a];if(Hs.regex.test(o)){var s=new Hs(n[a],r++);i+=s.sizeInBytes;t.push(s)}}var u=32*1024;if(i>u){var l=0;var c=t.length-1;var d=0;var f=l;var p=c;while(l<c){var m=t[l].sizeInBytes;var h=t[c].sizeInBytes;d+=m+h;if(d>u){var v=p-f+1;t.splice(f,v);break}f=l;p=c;l++;c--}}}return t};return t}(Rs);var Hs=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.sizeInBytes=0;i.aiDataContract={level:ls.Required,method:ls.Required,assembly:ls.Default,fileName:ls.Default,line:ls.Default};if(typeof n==="string"){var a=n;i.level=r;i.method="<no_method>";i.assembly=gs.trim(a);i.fileName="";i.line=0;var o=a.match(t.regex);if(o&&o.length>=5){i.method=gs.trim(o[2])||i.method;i.fileName=gs.trim(o[4]);i.line=parseInt(o[5])||0}}else{i.level=n.level;i.method=n.method;i.assembly=n.assembly;i.fileName=n.fileName;i.line=n.line;i.sizeInBytes=0}i.sizeInBytes+=i.method.length;i.sizeInBytes+=i.fileName.length;i.sizeInBytes+=i.assembly.length;i.sizeInBytes+=t.baseSize;i.sizeInBytes+=i.level.toString().length;i.sizeInBytes+=i.line.toString().length;return i}t.CreateFromInterface=function(e){return new t(e,null)};t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}};t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/;t.baseSize=58;return t}(Os);var Ws=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.metrics=[];t.properties={};t.measurements={};return t}return t}(Ps);var Gs;(function(e){e[e["Measurement"]=0]="Measurement";e[e["Aggregation"]=1]="Aggregation"})(Gs||(Gs={}));var Js=function(){function e(){this.kind=Gs.Measurement}return e}();var Ks=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.aiDataContract={name:ls.Required,kind:ls.Default,value:ls.Required,count:ls.Default,min:ls.Default,max:ls.Default,stdDev:ls.Default};return t}return t}(Js);var Xs=function(e){__extends(t,e);function t(t,n,r,i,a,o,s,u){var l=e.call(this)||this;l.aiDataContract={ver:ls.Required,metrics:ls.Required,properties:ls.Default};var c=new Ks;c.count=i>0?i:undefined;c.max=isNaN(o)||o===null?undefined:o;c.min=isNaN(a)||a===null?undefined:a;c.name=fs.sanitizeString(t,n)||gs.NotSpecified;c.value=r;l.metrics=[c];l.properties=fs.sanitizeProperties(t,s);l.measurements=fs.sanitizeMeasurements(t,u);return l}t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric";t.dataType="MetricData";return t}(Ws);var Ys=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Ds);var $s=function(e){__extends(t,e);function t(t,n,r,i,a,o,s){var u=e.call(this)||this;u.aiDataContract={ver:ls.Required,name:ls.Default,url:ls.Default,duration:ls.Default,properties:ls.Default,measurements:ls.Default,id:ls.Default};u.id=fs.sanitizeId(t,s);u.url=fs.sanitizeUrl(t,r);u.name=fs.sanitizeString(t,n)||gs.NotSpecified;if(!isNaN(i)){u.duration=gs.msToTimeSpan(i)}u.properties=fs.sanitizeProperties(t,a);u.measurements=fs.sanitizeMeasurements(t,o);return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview";t.dataType="PageviewData";return t}(Ys);var Qs=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.success=true;t.properties={};t.measurements={};return t}return t}(Ps);var Zs=function(e){__extends(t,e);function t(t,n,r,i,a,o,s,u,l,c,d,f){if(l===void 0){l="Ajax"}var p=e.call(this)||this;p.aiDataContract={id:ls.Required,ver:ls.Required,name:ls.Default,resultCode:ls.Default,duration:ls.Default,success:ls.Default,data:ls.Default,target:ls.Default,type:ls.Default,properties:ls.Default,measurements:ls.Default,kind:ls.Default,value:ls.Default,count:ls.Default,min:ls.Default,max:ls.Default,stdDev:ls.Default,dependencyKind:ls.Default,dependencySource:ls.Default,commandName:ls.Default,dependencyTypeName:ls.Default};p.id=n;p.duration=gs.msToTimeSpan(a);p.success=o;p.resultCode=s+"";p.type=fs.sanitizeString(t,l);var m=ws.ParseDependencyPath(t,r,u,i);p.data=fs.sanitizeUrl(t,i)||m.data;p.target=fs.sanitizeString(t,m.target);if(c){p.target=p.target+" | "+c}p.name=fs.sanitizeString(t,m.name);p.properties=fs.sanitizeProperties(t,d);p.measurements=fs.sanitizeMeasurements(t,f);return p}t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency";t.dataType="RemoteDependencyData";return t}(Qs);var eu=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Ps);var tu=function(e){__extends(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;o.aiDataContract={ver:ls.Required,message:ls.Required,severityLevel:ls.Default,properties:ls.Default};n=n||gs.NotSpecified;o.message=fs.sanitizeMessage(t,n);o.properties=fs.sanitizeProperties(t,i);o.measurements=fs.sanitizeMeasurements(t,a);if(r){o.severityLevel=r}return o}t.envelopeType="Microsoft.ApplicationInsights.{0}.Message";t.dataType="MessageData";return t}(eu);var nu=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Ys);var ru=function(e){__extends(t,e);function t(t,n,r,i,a,o,s){var u=e.call(this)||this;u.aiDataContract={ver:ls.Required,name:ls.Default,url:ls.Default,duration:ls.Default,perfTotal:ls.Default,networkConnect:ls.Default,sentRequest:ls.Default,receivedResponse:ls.Default,domProcessing:ls.Default,properties:ls.Default,measurements:ls.Default};u.url=fs.sanitizeUrl(t,r);u.name=fs.sanitizeString(t,n)||gs.NotSpecified;u.properties=fs.sanitizeProperties(t,a);u.measurements=fs.sanitizeMeasurements(t,o);if(s){u.domProcessing=s.domProcessing;u.duration=s.duration;u.networkConnect=s.networkConnect;u.perfTotal=s.perfTotal;u.receivedResponse=s.receivedResponse;u.sentRequest=s.sentRequest}return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance";t.dataType="PageviewPerformanceData";return t}(nu);var iu=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.aiDataContract={baseType:ls.Required,baseData:ls.Required};r.baseType=t;r.baseData=n;return r}return t}(Es);var au;(function(e){e[e["Verbose"]=0]="Verbose";e[e["Information"]=1]="Information";e[e["Warning"]=2]="Warning";e[e["Error"]=3]="Error";e[e["Critical"]=4]="Critical"})(au||(au={}));var ou=function(){function e(){this.applicationVersion="ai.application.ver";this.applicationBuild="ai.application.build";this.applicationTypeId="ai.application.typeId";this.applicationId="ai.application.applicationId";this.applicationLayer="ai.application.layer";this.deviceId="ai.device.id";this.deviceIp="ai.device.ip";this.deviceLanguage="ai.device.language";this.deviceLocale="ai.device.locale";this.deviceModel="ai.device.model";this.deviceFriendlyName="ai.device.friendlyName";this.deviceNetwork="ai.device.network";this.deviceNetworkName="ai.device.networkName";this.deviceOEMName="ai.device.oemName";this.deviceOS="ai.device.os";this.deviceOSVersion="ai.device.osVersion";this.deviceRoleInstance="ai.device.roleInstance";this.deviceRoleName="ai.device.roleName";this.deviceScreenResolution="ai.device.screenResolution";this.deviceType="ai.device.type";this.deviceMachineName="ai.device.machineName";this.deviceVMName="ai.device.vmName";this.deviceBrowser="ai.device.browser";this.deviceBrowserVersion="ai.device.browserVersion";this.locationIp="ai.location.ip";this.locationCountry="ai.location.country";this.locationProvince="ai.location.province";this.locationCity="ai.location.city";this.operationId="ai.operation.id";this.operationName="ai.operation.name";this.operationParentId="ai.operation.parentId";this.operationRootId="ai.operation.rootId";this.operationSyntheticSource="ai.operation.syntheticSource";this.operationCorrelationVector="ai.operation.correlationVector";this.sessionId="ai.session.id";this.sessionIsFirst="ai.session.isFirst";this.sessionIsNew="ai.session.isNew";this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate";this.userAccountId="ai.user.accountId";this.userAgent="ai.user.userAgent";this.userId="ai.user.id";this.userStoreRegion="ai.user.storeRegion";this.userAuthUserId="ai.user.authUserId";this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate";this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate";this.cloudName="ai.cloud.name";this.cloudRole="ai.cloud.role";this.cloudRoleVer="ai.cloud.roleVer";this.cloudRoleInstance="ai.cloud.roleInstance";this.cloudEnvironment="ai.cloud.environment";this.cloudLocation="ai.cloud.location";this.cloudDeploymentUnit="ai.cloud.deploymentUnit";this.internalNodeName="ai.internal.nodeName";this.internalSdkVersion="ai.internal.sdkVersion";this.internalAgentVersion="ai.internal.agentVersion";this.internalSnippet="ai.internal.snippet";this.internalSdkSrc="ai.internal.sdkSrc"}return e}();var su=function(){function e(){}e.create=function(e,t,n,r,i,a){n=fs.sanitizeString(r,n)||gs.NotSpecified;if(Ia.isNullOrUndefined(e)||Ia.isNullOrUndefined(t)||Ia.isNullOrUndefined(n)){throw Error("Input doesn't contain all required fields")}var o={name:n,time:Ia.toISOString(new Date),iKey:"",ext:a?a:{},tags:[],data:{},baseType:t,baseData:e};if(!Ia.isNullOrUndefined(i)){Fa(i,(function(e,t){o.data[e]=t}))}return o};return e}();var uu=function(){function e(){}e.UserExt="user";e.DeviceExt="device";e.TraceExt="trace";e.WebExt="web";e.AppExt="app";e.OSExt="os";e.SessionExt="ses";e.SDKExt="sdk";return e}();var lu=new ou;var cu="AppInsightsPropertiesPlugin";var du="AppInsightsChannelPlugin";var fu="ApplicationInsightsAnalytics";
6
- /*!
7
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
8
- * Copyright (c) Microsoft and contributors. All rights reserved.
9
- */var pu=function(){function e(t,n,r,i){uo(e,this,(function(e){var a=Ia.arrForEach;var o=Ia.isNullOrUndefined;var s=null;var u=[];var l=false;var c;if(r){c=r.logger}function d(){if(r){a(r.getTransmissionControls(),(function(e){a(e,(function(e){return e.flush(true)}))}))}}function f(e){u.push(e);if(!s){s=setInterval((function(){var e=u.slice(0);var t=false;u=[];a(e,(function(e){if(!e()){u.push(e)}else{t=true}}));if(u.length===0){clearInterval(s);s=null}if(t){d()}}),100)}}e.trackPageView=function(e,r){var a=e.name;if(o(a)||typeof a!=="string"){var s=Hi();a=e.name=s&&s.title||""}var u=e.uri;if(o(u)||typeof u!=="string"){var p=Xi();u=e.uri=p&&p.href||""}if(!i.isPerformanceTimingSupported()){t.sendPageViewInternal(e,r);d();c.throwInternal(Ea.WARNING,ka.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var m=false;var h;var v=i.getPerformanceTiming().navigationStart;if(v>0){h=xs.GetDuration(v,+new Date);if(!i.shouldCollectDuration(h)){h=undefined}}var g;if(!o(r)&&!o(r.duration)){g=r.duration}if(n||!isNaN(g)){if(isNaN(g)){if(!r){r={}}r["duration"]=h}t.sendPageViewInternal(e,r);d();m=true}var y=6e4;if(!r){r={}}f((function(){var n=false;try{if(i.isPerformanceTimingDataReady()){n=true;var o={name:a,uri:u};i.populatePageViewPerformanceEvent(o);if(!o.isValid&&!m){r["duration"]=h;t.sendPageViewInternal(e,r)}else{if(!m){r["duration"]=o.durationMs;t.sendPageViewInternal(e,r)}if(!l){t.sendPageViewPerformanceInternal(o,r);l=true}}}else if(v>0&&xs.GetDuration(v,+new Date)>y){n=true;if(!m){r["duration"]=y;t.sendPageViewInternal(e,r)}}}catch(e){c.throwInternal(Ea.CRITICAL,ka.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+gs.getExceptionName(e),{exception:gs.dump(e)})}return n}))}}))}return e}();
10
- /*!
11
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
12
- * Copyright (c) Microsoft and contributors. All rights reserved.
13
- */var mu=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData";this.pageVisitTimeTrackingHandler=t;this._logger=e}e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);if(n){this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+gs.dump(e))}};e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();this.startPageVisitTimer(e,t);return n}catch(e){this._logger.warnToConsole("Call to restart failed: "+gs.dump(e));return null}};e.prototype.startPageVisitTimer=function(e,t){try{if(gs.canUseSessionStorage()){if(gs.getSessionStorage(this._logger,this.prevPageVisitDataKeyName)!=null){throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit")}var n=new hu(e,t);var r=Zi().stringify(n);gs.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(e){this._logger.warnToConsole("Call to start failed: "+gs.dump(e))}};e.prototype.stopPageVisitTimer=function(){try{if(gs.canUseSessionStorage()){var e=Ia.dateNow();var t=gs.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t&&Qi()){var n=Zi().parse(t);n.pageVisitTime=e-n.pageVisitStartTime;gs.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName);return n}else{return null}}return null}catch(e){this._logger.warnToConsole("Stop page visit timer failed: "+gs.dump(e));return null}};return e}();var hu=function(){function e(e,t){this.pageVisitStartTime=Ia.dateNow();this.pageName=e;this.pageUrl=t}return e}();
14
- /*!
15
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
16
- * Copyright (c) Microsoft and contributors. All rights reserved.
17
- */var vu=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5;if(e){this._logger=e.logger}}e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=false;var t=this.getPerformanceNavigationTiming();var n=this.getPerformanceTiming();if(t||n){if(t){var r=t.duration;var i=xs.GetDuration(t.startTime,t.connectEnd);var a=xs.GetDuration(t.requestStart,t.responseStart);var o=xs.GetDuration(t.responseStart,t.responseEnd);var s=xs.GetDuration(t.responseEnd,t.loadEventEnd)}else{var r=xs.GetDuration(n.navigationStart,n.loadEventEnd);var i=xs.GetDuration(n.navigationStart,n.connectEnd);var a=xs.GetDuration(n.requestStart,n.responseStart);var o=xs.GetDuration(n.responseStart,n.responseEnd);var s=xs.GetDuration(n.responseEnd,n.loadEventEnd)}if(r===0){this._logger.throwInternal(Ea.WARNING,ka.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:a,response:o,dom:s})}else if(!this.shouldCollectDuration(r,i,a,o,s)){this._logger.throwInternal(Ea.WARNING,ka.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:i,request:a,response:o,dom:s})}else if(r<Math.floor(i)+Math.floor(a)+Math.floor(o)+Math.floor(s)){this._logger.throwInternal(Ea.WARNING,ka.ClientPerformanceMathError,"client performance math error.",{total:r,network:i,request:a,response:o,dom:s})}else{e.durationMs=r;e.perfTotal=e.duration=gs.msToTimeSpan(r);e.networkConnect=gs.msToTimeSpan(i);e.sentRequest=gs.msToTimeSpan(a);e.receivedResponse=gs.msToTimeSpan(o);e.domProcessing=gs.msToTimeSpan(s);e.isValid=true}}};e.prototype.getPerformanceTiming=function(){if(this.isPerformanceTimingSupported()){return $i().timing}return null};e.prototype.getPerformanceNavigationTiming=function(){if(this.isPerformanceNavigationTimingSupported()){return $i().getEntriesByType("navigation")[0]}return null};e.prototype.isPerformanceNavigationTimingSupported=function(){var e=$i();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0};e.prototype.isPerformanceTimingSupported=function(){var e=$i();return e&&e.timing};e.prototype.isPerformanceTimingDataReady=function(){var e=$i();var t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0};e.prototype.shouldCollectDuration=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=Gi()||{};var r=["googlebot","adsbot-google","apis-google","mediapartners-google"];var i=n.userAgent;var a=false;if(i){for(var o=0;o<r.length;o++){a=a||i.toLowerCase().indexOf(r[o])!==-1}}if(a){return false}else{for(var o=0;o<e.length;o++){if(e[o]<0||e[o]>=this.MAX_DURATION_ALLOWED){return false}}}return true};return e}();
18
- /*!
19
- * Application Insights JavaScript SDK - Web Analytics, 2.5.10
20
- * Copyright (c) Microsoft and contributors. All rights reserved.
21
- */var gu="duration";function yu(e,t){if(e&&e.dispatchEvent&&t){e.dispatchEvent(t)}}var bu=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.identifier=fu;t.priority=180;t.autoRoutePVDelay=500;t._trackAjaxAttempts=0;var n=Xi();t._prevUri=n&&n.href||"";return t}t.getDefaultConfig=function(e){if(!e){e={}}e.sessionRenewalMs=30*60*1e3;e.sessionExpirationMs=24*60*60*1e3;e.disableExceptionTracking=gs.stringToBoolOrDefault(e.disableExceptionTracking);e.autoTrackPageVisitTime=gs.stringToBoolOrDefault(e.autoTrackPageVisitTime);e.overridePageViewDuration=gs.stringToBoolOrDefault(e.overridePageViewDuration);e.enableUnhandledPromiseRejectionTracking=gs.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking);if(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100){e.samplingPercentage=100}e.isCookieUseDisabled=gs.stringToBoolOrDefault(e.isCookieUseDisabled);e.isStorageUseDisabled=gs.stringToBoolOrDefault(e.isStorageUseDisabled);e.isBrowserLinkTrackingEnabled=gs.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled);e.enableAutoRouteTracking=gs.stringToBoolOrDefault(e.enableAutoRouteTracking);e.namePrefix=e.namePrefix||"";return e};t.prototype.processTelemetry=function(e,t){var n=this;xo(this.core,(function(){return n.identifier+":processTelemetry"}),(function(){var r=false;var i=n._telemetryInitializers.length;t=n._getTelCtx(t);for(var a=0;a<i;++a){var o=n._telemetryInitializers[a];if(o){try{if(o.apply(null,[e])===false){r=true;break}}catch(e){t.diagLog().throwInternal(Ea.CRITICAL,ka.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+gs.getExceptionName(e),{exception:gs.dump(e)},true)}}}if(!r){n.processNext(e,t)}}),(function(){return{item:e}}),!e.sync)};t.prototype.trackEvent=function(e,t){try{var n=su.create(e,Ms.dataType,Ms.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(Ea.WARNING,ka.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.trackTrace=function(e,t){try{var n=su.create(e,tu.dataType,tu.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(Ea.WARNING,ka.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.trackMetric=function(e,t){try{var n=su.create(e,Xs.dataType,Xs.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t));if(this.config.autoTrackPageVisitTime){this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.TrackPVFailed,"trackPageView failed, page view will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.sendPageViewInternal=function(e,t,n){var r=Hi();if(r){e.refUri=e.refUri===undefined?r.referrer:e.refUri}var i=su.create(e,$s.dataType,$s.envelopeType,this.diagLog(),t,n);this.core.track(i);this._trackAjaxAttempts=0};t.prototype.sendPageViewPerformanceInternal=function(e,t,n){var r=su.create(e,ru.dataType,ru.envelopeType,this.diagLog(),t,n);this.core.track(r)};t.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e);this.sendPageViewPerformanceInternal(e,t)}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.startTrackPage=function(e){try{if(typeof e!=="string"){var t=Hi();e=t&&t.title||""}this._pageTracking.start(e)}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.stopTrackPage=function(e,t,n,r){try{if(typeof e!=="string"){var i=Hi();e=i&&i.title||""}if(typeof t!=="string"){var a=Xi();t=a&&a.href||""}this._pageTracking.stop(e,t,n,r);if(this.config.autoTrackPageVisitTime){this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype.sendExceptionInternal=function(e,t,n){var r=new qs(this.diagLog(),e.exception||new Error(gs.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface();var i=su.create(r,qs.dataType,qs.envelopeType,this.diagLog(),t,n);this.core.track(i)};t.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(e){this.diagLog().throwInternal(Ea.CRITICAL,ka.TrackExceptionFailed,"trackException failed, exception will not be collected: "+gs.getExceptionName(e),{exception:gs.dump(e)})}};t.prototype._onerror=function(e){try{var t={url:e&&e.url||(Hi()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(gs.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error)){this._sendCORSException(t.url)}else{if(!gs.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=new Error(e.message);e.error.stack=n}this.trackException({exception:e.error,severityLevel:au.Error},t)}}catch(t){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal(Ea.CRITICAL,ka.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+gs.getExceptionName(t),{exception:gs.dump(t),errorString:r})}};t.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)};t.prototype.initialize=function(n,r,i,a){var o=this;if(this.isInitialized()){return}if(Ia.isNullOrUndefined(r)){throw Error("Error initializing")}e.prototype.initialize.call(this,n,r,i,a);this.setInitialized(false);var s=this._getTelCtx();var u=this.identifier;this._globalconfig={instrumentationKey:n.instrumentationKey,endpointUrl:n.endpointUrl||"https://dc.services.visualstudio.com/v2/track"};this.config=s.getExtCfg(u);var l=t.getDefaultConfig();if(l!==undefined){Fa(l,(function(e,t){o.config[e]=s.getConfig(u,e,t)}));if(this._globalconfig){Fa(l,(function(e,t){if(o._globalconfig[e]===undefined){o._globalconfig[e]=t}}))}}if(this.config.isCookieUseDisabled){gs.disableCookies()}if(this.config.isStorageUseDisabled){gs.disableStorage()}var c={instrumentationKey:function(){return n.instrumentationKey},accountId:function(){return o.config.accountId||n.accountId},sessionRenewalMs:function(){return o.config.sessionRenewalMs||n.sessionRenewalMs},sessionExpirationMs:function(){return o.config.sessionExpirationMs||n.sessionExpirationMs},sampleRate:function(){return o.config.samplingPercentage||n.samplingPercentage},cookieDomain:function(){return o.config.cookieDomain||n.cookieDomain},sdkExtension:function(){return o.config.sdkExtension||n.sdkExtension},isBrowserLinkTrackingEnabled:function(){return o.config.isBrowserLinkTrackingEnabled||n.isBrowserLinkTrackingEnabled},appId:function(){return o.config.appId||n.appId}};this._pageViewPerformanceManager=new vu(this.core);this._pageViewManager=new pu(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager);this._pageVisitTimeManager=new mu(this.diagLog(),(function(e,t,n){return o.trackPageVisitTime(e,t,n)}));this._telemetryInitializers=this._telemetryInitializers||[];this._addDefaultTelemetryInitializers(c);this._eventTracking=new wu(this.diagLog(),"trackEvent");this._eventTracking.action=function(e,t,n,r){if(!r){r={}}r[gu]=n.toString();o.trackEvent({name:e,properties:r})};this._pageTracking=new wu(this.diagLog(),"trackPageView");this._pageTracking.action=function(e,t,n,r,i){if(Ia.isNullOrUndefined(r)){r={}}r[gu]=n.toString();var a={name:e,uri:t,properties:r,measurements:i};o.sendPageViewInternal(a,r)};var d=qi();var f=Ki();var p=Xi();var m=this;if(this.config.disableExceptionTracking===false&&!this.config.autoExceptionInstrumented&&d){var h="onerror";var v=d[h];d.onerror=function(e,t,n,r,i){var a=v&&v(e,t,n,r,i);if(a!==true){m._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i})}return a};this.config.autoExceptionInstrumented=true}if(this.config.disableExceptionTracking===false&&this.config.enableUnhandledPromiseRejectionTracking===true&&!this.config.autoUnhandledPromiseInstrumented&&d){var g="onunhandledrejection";var y=d[g];d[g]=function(e){var t=y&&y.call(d,e);if(t!==true){m._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:new Error(e.reason.toString()),url:p?p.href:"",lineNumber:0,columnNumber:0})}return t};this.config.autoUnhandledPromiseInstrumented=true}if(this.config.enableAutoRouteTracking===true&&f&&Ia.isFunction(f.pushState)&&Ia.isFunction(f.replaceState)&&d&&typeof Event!=="undefined"){var b=this;Ia.arrForEach(i,(function(e){if(e.identifier===cu){o._properties=e}}));f.pushState=function(e){return function t(){var n=e.apply(this,arguments);yu(d,gs.createDomEvent(b.config.namePrefix+"pushState"));yu(d,gs.createDomEvent(b.config.namePrefix+"locationchange"));return n}}(f.pushState);f.replaceState=function(e){return function t(){var n=e.apply(this,arguments);yu(d,gs.createDomEvent(b.config.namePrefix+"replaceState"));yu(d,gs.createDomEvent(b.config.namePrefix+"locationchange"));return n}}(f.replaceState);if(d.addEventListener){d.addEventListener(b.config.namePrefix+"popstate",(function(){yu(d,gs.createDomEvent(b.config.namePrefix+"locationchange"))}));d.addEventListener(b.config.namePrefix+"locationchange",(function(){if(b._properties&&b._properties.context&&b._properties.context.telemetryTrace){b._properties.context.telemetryTrace.traceID=gs.generateW3CId();b._properties.context.telemetryTrace.name=p&&p.pathname||"_unknown_"}if(o._currUri){o._prevUri=o._currUri;o._currUri=p&&p.href||""}else{o._currUri=p&&p.href||""}setTimeout(function(e){b.trackPageView({refUri:e,properties:{duration:0}})}.bind(o,o._prevUri),b.autoRoutePVDelay)}))}}this.setInitialized(true)};t.prototype.trackPageVisitTime=function(e,t,n){var r={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},r)};t.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var t=["/browserLinkSignalR/","/__browserLink/"];var n=function(e){if(e.baseType===Zs.dataType){var n=e.baseData;if(n){for(var r=0;r<t.length;r++){if(n.target&&n.target.indexOf(t[r])>=0){return false}}}}return true};this._addTelemetryInitializer(n)}};t.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)};t.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined};var n=su.create(t,qs.dataType,qs.envelopeType,this.diagLog(),{url:e});this.core.track(n)};t.Version="2.5.10";return t}(To);var wu=function(){function e(e,t){this._name=t;this._events={};this._logger=e}e.prototype.start=function(e){if(typeof this._events[e]!=="undefined"){this._logger.throwInternal(Ea.WARNING,ka.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:this._name,key:e},true)}this._events[e]=+new Date};e.prototype.stop=function(e,t,n,r){var i=this._events[e];if(isNaN(i)){this._logger.throwInternal(Ea.WARNING,ka.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:this._name,key:e},true)}else{var a=+new Date;var o=xs.GetDuration(i,a);this.action(e,t,o,n,r)}delete this._events[e];this._events[e]=undefined};return e}();
22
- /*!
23
- * Application Insights JavaScript SDK - Channel, 2.5.10
24
- * Copyright (c) Microsoft and contributors. All rights reserved.
25
- */var xu=function(){function e(t){var n=[];uo(e,this,(function(e){e.enqueue=function(e){n.push(e)};e.count=function(){return n.length};e.clear=function(){n.length=0};e.getItems=function(){return n.slice(0)};e.batchPayloads=function(e){if(e&&e.length>0){var n=t.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]";return n}return null};e.markAsSent=function(t){e.clear()};e.clearSent=function(e){}}))}return e}();var Su=function(){function e(t,n){var r=false;var i;uo(e,this,(function(a){var o=l(e.BUFFER_KEY);var s=l(e.SENT_BUFFER_KEY);i=o.concat(s);if(i.length>e.MAX_BUFFER_SIZE){i.length=e.MAX_BUFFER_SIZE}c(e.SENT_BUFFER_KEY,[]);c(e.BUFFER_KEY,i);a.enqueue=function(n){if(i.length>=e.MAX_BUFFER_SIZE){if(!r){t.throwInternal(Ea.WARNING,ka.SessionStorageBufferFull,"Maximum buffer size reached: "+i.length,true);r=true}return}i.push(n);c(e.BUFFER_KEY,i)};a.count=function(){return i.length};a.clear=function(){i=[];c(e.BUFFER_KEY,[]);c(e.SENT_BUFFER_KEY,[]);r=false};a.getItems=function(){return i.slice(0)};a.batchPayloads=function(e){if(e&&e.length>0){var t=n.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]";return t}return null};a.markAsSent=function(n){i=u(n,i);c(e.BUFFER_KEY,i);var r=l(e.SENT_BUFFER_KEY);if(r instanceof Array&&n instanceof Array){r=r.concat(n);if(r.length>e.MAX_BUFFER_SIZE){t.throwInternal(Ea.CRITICAL,ka.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+r.length,true);r.length=e.MAX_BUFFER_SIZE}c(e.SENT_BUFFER_KEY,r)}};a.clearSent=function(t){var n=l(e.SENT_BUFFER_KEY);n=u(t,n);c(e.SENT_BUFFER_KEY,n)};function u(e,t){var n=[];Ia.arrForEach(t,(function(t){if(!Ia.isFunction(t)&&Ia.arrIndexOf(e,t)===-1){n.push(t)}}));return n}function l(e){var r=e;try{r=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+r:r;var i=gs.getSessionStorage(t,r);if(i){var a=Zi().parse(i);if(Ia.isString(a)){a=Zi().parse(a)}if(a&&gs.isArray(a)){return a}}}catch(e){t.throwInternal(Ea.CRITICAL,ka.FailedToRestoreStorageBuffer," storage key: "+r+", "+gs.getExceptionName(e),{exception:gs.dump(e)})}return[]}function c(e,r){var i=e;try{i=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+i:i;var a=JSON.stringify(r);gs.setSessionStorage(t,i,a)}catch(e){gs.setSessionStorage(t,i,JSON.stringify([]));t.throwInternal(Ea.WARNING,ka.FailedToSetStorageBuffer," storage key: "+i+", "+gs.getExceptionName(e)+". Buffer cleared",{exception:gs.dump(e)})}}}))}e.BUFFER_KEY="AI_buffer";e.SENT_BUFFER_KEY="AI_sentBuffer";e.MAX_BUFFER_SIZE=2e3;return e}();
26
- /*!
27
- * Application Insights JavaScript SDK - Channel, 2.5.10
28
- * Copyright (c) Microsoft and contributors. All rights reserved.
29
- */var Cu="baseType";var _u="baseData";var Fu="properties";var Iu="true";var Nu=Ia.isNullOrUndefined;function Au(e,t,n){if(e&&n){e[t]=n;return e[t]}return null}var Eu=function(){function e(){}e.extractPropsAndMeasurements=function(e,t,n){if(!Nu(e)){Fa(e,(function(e,r){if(Ia.isNumber(r)){n[e]=r}else if(Ia.isString(r)){t[e]=r}else if(Qi()){t[e]=Zi().stringify(r)}}))}};e.createEnvelope=function(t,n,r,i){var a=new Ts(t,i,n);Au(a,"sampleRate",r[Cs]);if((r[_u]||{}).startTime){a.time=Ia.toISOString(r[_u].startTime)}a.iKey=r.iKey;var o=r.iKey.replace(/-/g,"");a.name=a.name.replace("{0}",o);e.extractPartAExtensions(r,a);r.tags=r.tags||[];return a};e.extractPartAExtensions=function(t,n){var r=n.tags=n.tags||{};var i=t.ext=t.ext||{};var a=t.tags=t.tags||[];var o=i.user;if(o){Au(r,lu.userAuthUserId,o.authId);Au(r,lu.userId,o.id||o.localId)}var s=i.app;if(s){Au(r,lu.sessionId,s.sesId)}var u=i.device;if(u){Au(r,lu.deviceId,u.id||u.localId);Au(r,lu.deviceType,u.deviceClass);Au(r,lu.deviceIp,u.ip);Au(r,lu.deviceModel,u.model);Au(r,lu.deviceType,u.deviceType)}var l=t.ext.web;if(l){Au(r,lu.deviceLanguage,l.browserLang);Au(r,lu.deviceBrowserVersion,l.browserVer);Au(r,lu.deviceBrowser,l.browser);var c=n.data=n.data||{};var d=c[_u]=c[_u]||{};var f=d[Fu]=d[Fu]||{};Au(f,"domain",l.domain);Au(f,"isManual",l.isManual?Iu:null);Au(f,"screenRes",l.screenRes);Au(f,"userConsent",l.userConsent?Iu:null)}var p=i.os;if(p){Au(r,lu.deviceOS,p.name)}var m=i.trace;if(m){Au(r,lu.operationParentId,m.parentID);Au(r,lu.operationName,m.name);Au(r,lu.operationId,m.traceID)}var h={};for(var v=a.length-1;v>=0;v--){var g=a[v];Fa(g,(function(e,t){h[e]=t}));a.splice(v,1)}Fa(a,(function(e,t){h[e]=t}));n.tags=__assign({},r,h);if(!n.tags[lu.internalSdkVersion]){n.tags[lu.internalSdkVersion]="javascript:"+e.Version}};e.prototype.Init=function(e,t){this._logger=e;if(Nu(t[_u])){this._logger.throwInternal(Ea.CRITICAL,ka.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}};e.Version="2.5.10";return e}();var ku=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_u].measurements||{};var i=n[_u][Fu]||{};Eu.extractPropsAndMeasurements(n.data,i,r);var a=n[_u];if(Nu(a)){t.warnToConsole("Invalid input for dependency data");return null}var o=a[Fu]&&a[Fu][Fs]?a[Fu][Fs]:"GET";var s=new Zs(t,a.id,a.target,a.name,a.duration,a.success,a.responseCode,o,a.type,a.correlationContext,i,r);var u=new iu(Zs.dataType,s);return Eu.createEnvelope(t,Zs.envelopeType,n,u)};t.DependencyEnvelopeCreator=new t;return t}(Eu);var Tu=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r={};var i={};if(n[Cu]!==Ms.dataType){r["baseTypeSource"]=n[Cu]}if(n[Cu]===Ms.dataType){r=n[_u][Fu]||{};i=n[_u].measurements||{}}else{if(n[_u]){Eu.extractPropsAndMeasurements(n[_u],r,i)}}Eu.extractPropsAndMeasurements(n.data,r,i);var a=n[_u].name;var o=new Ms(t,a,r,i);var s=new iu(Ms.dataType,o);return Eu.createEnvelope(t,Ms.envelopeType,n,s)};t.EventEnvelopeCreator=new t;return t}(Eu);var Pu=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_u].measurements||{};var i=n[_u][Fu]||{};Eu.extractPropsAndMeasurements(n.data,i,r);var a=n[_u];var o=qs.CreateFromInterface(t,a,i,r);var s=new iu(qs.dataType,o);return Eu.createEnvelope(t,qs.envelopeType,n,s)};t.ExceptionEnvelopeCreator=new t;return t}(Eu);var Du=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_u];var i=r[Fu]||{};var a=r.measurements||{};Eu.extractPropsAndMeasurements(n.data,i,a);var o=new Xs(t,r.name,r.average,r.sampleCount,r.min,r.max,i,a);var s=new iu(Xs.dataType,o);return Eu.createEnvelope(t,Xs.envelopeType,n,s)};t.MetricEnvelopeCreator=new t;return t}(Eu);var Mu=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r="duration";var i;var a=n[_u];if(!Nu(a)&&!Nu(a[Fu])&&!Nu(a[Fu][r])){i=a[Fu][r];delete a[Fu][r]}else if(!Nu(n.data)&&!Nu(n.data[r])){i=n.data[r];delete n.data[r]}var o=n[_u];var s;if(((n.ext||{}).trace||{}).traceID){s=n.ext.trace.traceID}var u=o.id||s;var l=o.name;var c=o.uri;var d=o[Fu]||{};var f=o.measurements||{};if(!Nu(o.refUri)){d["refUri"]=o.refUri}if(!Nu(o.pageType)){d["pageType"]=o.pageType}if(!Nu(o.isLoggedIn)){d["isLoggedIn"]=o.isLoggedIn.toString()}if(!Nu(o[Fu])){var p=o[Fu];Fa(p,(function(e,t){d[e]=t}))}Eu.extractPropsAndMeasurements(n.data,d,f);var m=new $s(t,l,c,i,d,f,u);var h=new iu($s.dataType,m);return Eu.createEnvelope(t,$s.envelopeType,n,h)};t.PageViewEnvelopeCreator=new t;return t}(Eu);var Ou=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_u];var i=r.name;var a=r.uri||r.url;var o=r[Fu]||{};var s=r.measurements||{};Eu.extractPropsAndMeasurements(n.data,o,s);var u=new ru(t,i,a,undefined,o,s,r);var l=new iu(ru.dataType,u);return Eu.createEnvelope(t,ru.envelopeType,n,l)};t.PageViewPerformanceEnvelopeCreator=new t;return t}(Eu);var Lu=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[_u].message;var i=n[_u].severityLevel;var a=n[_u][Fu]||{};var o=n[_u].measurements||{};Eu.extractPropsAndMeasurements(n.data,a,o);var s=new tu(t,r,i,a,o);var u=new iu(tu.dataType,s);return Eu.createEnvelope(t,tu.envelopeType,n,u)};t.TraceEnvelopeCreator=new t;return t}(Eu);
30
- /*!
31
- * Application Insights JavaScript SDK - Channel, 2.5.10
32
- * Copyright (c) Microsoft and contributors. All rights reserved.
33
- */var Ru=function(){function e(t){uo(e,this,(function(e){e.serialize=function(e){var r=n(e,"root");try{return Zi().stringify(r)}catch(e){t.throwInternal(Ea.CRITICAL,ka.CannotSerializeObject,e&&Ia.isFunction(e.toString)?e.toString():"Error serializing object",null,true)}};function n(e,a){var o="__aiCircularRefCheck";var s={};if(!e){t.throwInternal(Ea.CRITICAL,ka.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:a},true);return s}if(e[o]){t.throwInternal(Ea.WARNING,ka.CircularReferenceDetected,"Circular reference detected while serializing object",{name:a},true);return s}if(!e.aiDataContract){if(a==="measurements"){s=i(e,"number",a)}else if(a==="properties"){s=i(e,"string",a)}else if(a==="tags"){s=i(e,"string",a)}else if(gs.isArray(e)){s=r(e,a)}else{t.throwInternal(Ea.WARNING,ka.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:a},true);try{Zi().stringify(e);s=e}catch(e){t.throwInternal(Ea.CRITICAL,ka.CannotSerializeObject,e&&Ia.isFunction(e.toString)?e.toString():"Error serializing object",null,true)}}return s}e[o]=true;Fa(e.aiDataContract,(function(i,o){var u=Ia.isFunction(o)?o()&ls.Required:o&ls.Required;var l=Ia.isFunction(o)?o()&ls.Hidden:o&ls.Hidden;var c=o&ls.Array;var d=e[i]!==undefined;var f=Ia.isObject(e[i])&&e[i]!==null;if(u&&!d&&!c){t.throwInternal(Ea.CRITICAL,ka.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:i,name:a})}else if(!l){var p=void 0;if(f){if(c){p=r(e[i],i)}else{p=n(e[i],i)}}else{p=e[i]}if(p!==undefined){s[i]=p}}}));delete e[o];return s}function r(e,r){var i;if(!!e){if(!gs.isArray(e)){t.throwInternal(Ea.CRITICAL,ka.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:r},true)}else{i=[];for(var a=0;a<e.length;a++){var o=e[a];var s=n(o,r+"["+a+"]");i.push(s)}}}return i}function i(e,n,r){var i;if(e){i={};Fa(e,(function(e,a){if(n==="string"){if(a===undefined){i[e]="undefined"}else if(a===null){i[e]="null"}else if(!a.toString){i[e]="invalid field: toString() is not defined."}else{i[e]=a.toString()}}else if(n==="number"){if(a===undefined){i[e]="undefined"}else if(a===null){i[e]="null"}else{var o=parseFloat(a);if(isNaN(o)){i[e]="NaN"}else{i[e]=o}}}else{i[e]="invalid field: "+r+" is of unknown type.";t.throwInternal(Ea.CRITICAL,i[e],null,true)}}))}return i}}))}return e}();
34
- /*!
35
- * Application Insights JavaScript SDK - Channel, 2.5.10
36
- * Copyright (c) Microsoft and contributors. All rights reserved.
37
- */var Uu=function(){function e(){var t=qi();var n=Hi();var r=false;var i=true;uo(e,this,(function(e){try{if(t){if(Aa.Attach(t,"online",o)){Aa.Attach(t,"offline",s);r=true}}if(n){var a=n.body||n;if(!Ia.isUndefined(a.ononline)){a.ononline=o;a.onoffline=s;r=true}}}catch(e){r=false}e.isListening=r;e.isOnline=function(){var e=true;var t=Gi();if(r){e=i}else if(t&&!Ia.isNullOrUndefined(t.onLine)){e=t.onLine}return e};e.isOffline=function(){return!e.isOnline()};function o(){i=true}function s(){i=false}}))}e.Offline=new e;return e}();var Bu=Uu.Offline;
38
- /*!
39
- * Application Insights JavaScript SDK - Channel, 2.5.10
40
- * Copyright (c) Microsoft and contributors. All rights reserved.
41
- */var Vu=function(){function e(){}e.prototype.getHashCodeScore=function(t){var n=this.getHashCode(t)/e.INT_MAX_VALUE;return n*100};e.prototype.getHashCode=function(t){if(t===""){return 0}while(t.length<e.MIN_INPUT_LENGTH){t=t.concat(t)}var n=5381;for(var r=0;r<t.length;++r){n=(n<<5)+n+t.charCodeAt(r);n=n&n}return Math.abs(n)};e.INT_MAX_VALUE=2147483647;e.MIN_INPUT_LENGTH=8;return e}();
42
- /*!
43
- * Application Insights JavaScript SDK - Channel, 2.5.10
44
- * Copyright (c) Microsoft and contributors. All rights reserved.
45
- */var ju=function(){function e(){this.hashCodeGeneragor=new Vu;this.keys=new ou}e.prototype.getSamplingScore=function(e){var t=0;if(e.tags&&e.tags[this.keys.userId]){t=this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.userId])}else if(e.ext&&e.ext.user&&e.ext.user.id){t=this.hashCodeGeneragor.getHashCodeScore(e.ext.user.id)}else if(e.tags&&e.tags[this.keys.operationId]){t=this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.operationId])}else if(e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID){t=this.hashCodeGeneragor.getHashCodeScore(e.ext.telemetryTrace.traceID)}else{t=Math.random()*100}return t};return e}();
46
- /*!
47
- * Application Insights JavaScript SDK - Channel, 2.5.10
48
- * Copyright (c) Microsoft and contributors. All rights reserved.
49
- */var qu=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;this._logger=Ia.isNullOrUndefined(t)?new vo:t;if(e>100||e<0){this._logger.throwInternal(Ea.WARNING,ka.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},true);this.sampleRate=100}this.sampleRate=e;this.samplingScoreGenerator=new ju}e.prototype.isSampledIn=function(e){var t=this.sampleRate;var n=false;if(t===null||t===undefined||t>=100){return true}else if(e.baseType===Xs.dataType){return true}n=this.samplingScoreGenerator.getSamplingScore(e)<t;return n};return e}();
50
- /*!
51
- * Application Insights JavaScript SDK - Channel, 2.5.10
52
- * Copyright (c) Microsoft and contributors. All rights reserved.
53
- */function zu(e){try{return e.responseText}catch(e){}return null}var Hu=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.priority=1001;n.identifier=du;n._XMLHttpRequestSupported=false;var r;var i;var a;var o;uo(t,n,(function(e,s){function u(){throw new Error("Method not implemented.")}e.pause=u;e.resume=u;e.flush=function(){try{e.triggerSend(true,null,1)}catch(t){e.diagLog().throwInternal(Ea.CRITICAL,ka.FlushFailed,"flush failed, telemetry will not be collected: "+gs.getExceptionName(t),{exception:gs.dump(t)})}};e.onunloadFlush=function(){if((e._senderConfig.onunloadDisableBeacon()===false||e._senderConfig.isBeaconApiDisabled()===false)&&gs.IsBeaconApiSupported()){try{e.triggerSend(true,c,2)}catch(t){e.diagLog().throwInternal(Ea.CRITICAL,ka.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+gs.getExceptionName(t),{exception:gs.dump(t)})}}else{e.flush()}};e.teardown=u;e.initialize=function(n,a,u,l){s.initialize(n,a,u,l);var f=e._getTelCtx();var p=e.identifier;o=new Ru(a.logger);r=0;i=null;e._sender=null;var m=t._getDefaultAppInsightsChannelConfig();e._senderConfig=t._getEmptyAppInsightsChannelConfig();Fa(m,(function(t,n){e._senderConfig[t]=function(){return f.getConfig(p,t,n())}}));e._buffer=e._senderConfig.enableSessionStorageBuffer()&&gs.canUseSessionStorage()?new Su(e.diagLog(),e._senderConfig):new xu(e._senderConfig);e._sample=new qu(e._senderConfig.samplingPercentage(),e.diagLog());if(!S(n)){e.diagLog().throwInternal(Ea.CRITICAL,ka.InvalidInstrumentationKey,"Invalid Instrumentation key "+n.instrumentationKey)}if(!e._senderConfig.isBeaconApiDisabled()&&gs.IsBeaconApiSupported()){e._sender=c}else{if(typeof XMLHttpRequest!==undefined){var h=Vi("XMLHttpRequest");if(h){var v=new h;if("withCredentials"in v){e._sender=d;e._XMLHttpRequestSupported=true}else if(typeof XDomainRequest!==undefined){e._sender=y}}}}};e.processTelemetry=function(n,r){r=e._getTelCtx(r);try{if(e._senderConfig.disableTelemetry()){return}if(!n){r.diagLog().throwInternal(Ea.CRITICAL,ka.CannotSendEmptyTelemetry,"Cannot send empty telemetry");return}if(n.baseData&&!n.baseType){r.diagLog().throwInternal(Ea.CRITICAL,ka.InvalidEvent,"Cannot send telemetry without baseData and baseType");return}if(!n.baseType){n.baseType="EventData"}if(!e._sender){r.diagLog().throwInternal(Ea.CRITICAL,ka.SenderNotInitialized,"Sender was not initialized");return}if(!l(n)){r.diagLog().throwInternal(Ea.WARNING,ka.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:e._sample.sampleRate});return}else{n[Cs]=e._sample.sampleRate}var i=t.constructEnvelope(n,e._senderConfig.instrumentationKey(),r.diagLog());if(!i){r.diagLog().throwInternal(Ea.CRITICAL,ka.CreateEnvelopeError,"Unable to create an AppInsights envelope");return}var a=false;if(n.tags&&n.tags[_s]){Ia.arrForEach(n.tags[_s],(function(e){try{if(e&&e(i)===false){a=true;r.diagLog().warnToConsole("Telemetry processor check returns false")}}catch(e){r.diagLog().throwInternal(Ea.CRITICAL,ka.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+gs.getExceptionName(e),{exception:gs.dump(e)},true)}}));delete n.tags[_s]}if(a){return}var s=o.serialize(i);var u=e._buffer.getItems();var c=e._buffer.batchPayloads(u);if(c&&c.length+s.length>e._senderConfig.maxBatchSizeInBytes()){e.triggerSend(true,null,10)}e._buffer.enqueue(s);h()}catch(e){r.diagLog().throwInternal(Ea.WARNING,ka.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+gs.getExceptionName(e),{exception:gs.dump(e)})}e.processNext(n,r)};e._xhrReadyStateChange=function(t,n,i){if(t.readyState===4){var a=null;if(!e._appId){a=f(zu(t)||t.response);if(a&&a.appId){e._appId=a.appId}}if((t.status<200||t.status>=300)&&t.status!==0){if(!e._senderConfig.isRetryDisabled()&&v(t.status)){p(n);e.diagLog().throwInternal(Ea.WARNING,ka.TransmissionFailed,". "+"Response code "+t.status+". Will retry to send "+n.length+" items.")}else{e._onError(n,g(t))}}else if(Bu.isOffline()){if(!e._senderConfig.isRetryDisabled()){var o=10;p(n,o);e.diagLog().throwInternal(Ea.WARNING,ka.TransmissionFailed,". Offline - Response Code: "+t.status+". Offline status: "+Bu.isOffline()+". Will retry to send "+n.length+" items.")}}else{if(t.status===206){if(!a){a=f(zu(t)||t.response)}if(a&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,a)}else{e._onError(n,g(t))}}else{r=0;e._onSuccess(n,i)}}}};e.triggerSend=function(t,r,o){if(t===void 0){t=true}try{if(!e._senderConfig.disableTelemetry()){if(e._buffer.count()>0){var s=e._buffer.getItems();x(o||0,t);if(r){r.call(n,s,t)}else{e._sender(s,t)}}}else{e._buffer.clear()}clearTimeout(a);a=null;i=null}catch(t){var u=gs.getIEVersion();if(!u||u>9){e.diagLog().throwInternal(Ea.CRITICAL,ka.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+gs.getExceptionName(t),{exception:gs.dump(t)})}}};e._onError=function(t,n,r){e.diagLog().throwInternal(Ea.WARNING,ka.OnError,"Failed to send telemetry.",{message:n});e._buffer.clearSent(t)};e._onPartialSuccess=function(t,n){var r=[];var i=[];var a=n.errors.reverse();for(var o=0,s=a;o<s.length;o++){var u=s[o];var l=t.splice(u.index,1)[0];if(v(u.statusCode)){i.push(l)}else{r.push(l)}}if(t.length>0){e._onSuccess(t,n.itemsAccepted)}if(r.length>0){e._onError(r,g(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" ")))}if(i.length>0){p(i);e.diagLog().throwInternal(Ea.WARNING,ka.TransmissionFailed,"Partial success. "+"Delivered: "+t.length+", Failed: "+r.length+". Will retry to send "+i.length+" our of "+n.itemsReceived+" items")}};e._onSuccess=function(t,n){e._buffer.clearSent(t)};e._xdrOnLoad=function(t,n){var i=zu(t);if(t&&(i+""==="200"||i==="")){r=0;e._onSuccess(n,0)}else{var a=f(i);if(a&&a.itemsReceived&&a.itemsReceived>a.itemsAccepted&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,a)}else{e._onError(n,b(t))}}};function l(t){return e._sample.isSampledIn(t)}function c(t,n){var r=e._senderConfig.endpointUrl();var i=e._buffer.batchPayloads(t);var a=new Blob([i],{type:"text/plain;charset=UTF-8"});var o=Gi().sendBeacon(r,a);if(o){e._buffer.markAsSent(t);e._onSuccess(t,t.length)}else{d(t,true);e.diagLog().throwInternal(Ea.WARNING,ka.TransmissionFailed,". "+"Failed to send telemetry with Beacon API, retried with xhrSender.")}}function d(t,n){var r=new XMLHttpRequest;var i=e._senderConfig.endpointUrl();try{r[Ss]=true}catch(e){}r.open("POST",i,n);r.setRequestHeader("Content-type","application/json");if(gs.isInternalApplicationInsightsEndpoint(i)){r.setRequestHeader(ds.sdkContextHeader,ds.sdkContextHeaderAppIdRequest)}r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t.length)};r.onerror=function(n){return e._onError(t,g(r),n)};var a=e._buffer.batchPayloads(t);r.send(a);e._buffer.markAsSent(t)}function f(t){try{if(t&&t!==""){var n=Zi().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length){return n}}}catch(n){e.diagLog().throwInternal(Ea.CRITICAL,ka.InvalidBackendResponse,"Cannot parse the response. "+gs.getExceptionName(n),{response:t})}return null}function p(t,n){if(n===void 0){n=1}if(!t||t.length===0){return}e._buffer.clearSent(t);r++;for(var i=0,a=t;i<a.length;i++){var o=a[i];e._buffer.enqueue(o)}m(n);h()}function m(e){var t=10;var n;if(r<=1){n=t}else{var a=(Math.pow(2,r)-1)/2;var o=Math.floor(Math.random()*a*t)+1;o=e*o;n=Math.max(Math.min(o,3600),t)}var s=Ia.dateNow()+n*1e3;i=s}function h(){if(!a){var t=i?Math.max(0,i-Ia.dateNow()):0;var n=Math.max(e._senderConfig.maxBatchInterval(),t);a=setTimeout((function(){e.triggerSend(true,null,1)}),n)}}function v(e){return e===408||e===429||e===500||e===503}function g(e,t){if(e){return"XMLHttpRequest,Status:"+e.status+",Response:"+zu(e)||e.response||""}return t}function y(t,n){var r=qi();var i=new XDomainRequest;i.onload=function(){return e._xdrOnLoad(i,t)};i.onerror=function(n){return e._onError(t,b(i),n)};var a=r&&r.location&&r.location.protocol||"";if(e._senderConfig.endpointUrl().lastIndexOf(a,0)!==0){e.diagLog().throwInternal(Ea.WARNING,ka.TransmissionFailed,". "+"Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.");e._buffer.clear();return}var o=e._senderConfig.endpointUrl().replace(/^(https?:)/,"");i.open("POST",o);var s=e._buffer.batchPayloads(t);i.send(s);e._buffer.markAsSent(t)}function b(e,t){if(e){return"XDomainRequest,Response:"+zu(e)||""}return t}function w(){var t="getNotifyMgr";if(e.core[t]){return e.core[t]()}return e.core["_notificationManager"]}function x(t,n){var r=w();if(r&&r.eventsSendRequest){try{r.eventsSendRequest(t,n)}catch(t){e.diagLog().throwInternal(Ea.CRITICAL,ka.NotificationException,"send request notification failed: "+gs.getExceptionName(t),{exception:gs.dump(t)})}}}function S(e){var t=Ia.isNullOrUndefined(e.disableInstrumentaionKeyValidation)?false:e.disableInstrumentaionKeyValidation;if(t){return true}var n="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";var r=new RegExp(n);return r.test(e.instrumentationKey)}}));return n}t.constructEnvelope=function(e,t,n){var r;if(t!==e.iKey&&!Ia.isNullOrUndefined(t)){r=__assign({},e,{iKey:t})}else{r=e}switch(r.baseType){case Ms.dataType:return Tu.EventEnvelopeCreator.Create(n,r);case tu.dataType:return Lu.TraceEnvelopeCreator.Create(n,r);case $s.dataType:return Mu.PageViewEnvelopeCreator.Create(n,r);case ru.dataType:return Ou.PageViewPerformanceEnvelopeCreator.Create(n,r);case qs.dataType:return Pu.ExceptionEnvelopeCreator.Create(n,r);case Xs.dataType:return Du.MetricEnvelopeCreator.Create(n,r);case Zs.dataType:return ku.DependencyEnvelopeCreator.Create(n,r);default:return Tu.EventEnvelopeCreator.Create(n,r)}};t._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return false},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return false},enableSessionStorageBuffer:function(){return true},isRetryDisabled:function(){return false},isBeaconApiDisabled:function(){return true},onunloadDisableBeacon:function(){return false},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100}}};t._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:undefined,emitLineDelimitedJson:undefined,maxBatchInterval:undefined,maxBatchSizeInBytes:undefined,disableTelemetry:undefined,enableSessionStorageBuffer:undefined,isRetryDisabled:undefined,isBeaconApiDisabled:undefined,onunloadDisableBeacon:undefined,instrumentationKey:undefined,namePrefix:undefined,samplingPercentage:undefined}};return t}(To);var Wu=function(){function e(){}return e}();var Gu=function(){function e(t,n){var r=this;if(Ia.isNullOrUndefined(n)){this._logger=new vo}else{this._logger=n}if(!t){t={}}if(!(typeof t.sessionExpirationMs==="function")){t.sessionExpirationMs=function(){return e.acquisitionSpan}}if(!(typeof t.sessionRenewalMs==="function")){t.sessionRenewalMs=function(){return e.renewalSpan}}this.config=t;this._storageNamePrefix=function(){return r.config.namePrefix&&r.config.namePrefix()?e.cookieNameConst+r.config.namePrefix():e.cookieNameConst};this.automaticSession=new Wu}e.prototype.update=function(){if(!this.automaticSession.id){this.initializeAutomaticSession()}var t=(new Date).getTime();var n=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs();var r=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.renewalDate>this.config.sessionRenewalMs();if(n||r){this.renew()}else{if(!this.cookieUpdatedTimestamp||t-this.cookieUpdatedTimestamp>e.cookieUpdateInterval){this.automaticSession.renewalDate=t;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)}}};e.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)};e.prototype.initializeAutomaticSession=function(){var e=gs.getCookie(this._logger,this._storageNamePrefix());if(e&&typeof e.split==="function"){this.initializeAutomaticSessionWithData(e)}else{var t=gs.getStorage(this._logger,this._storageNamePrefix());if(t){this.initializeAutomaticSessionWithData(t)}}if(!this.automaticSession.id){this.renew()}};e.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");if(t.length>0){this.automaticSession.id=t[0]}try{if(t.length>1){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n);this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0}if(t.length>2){var r=+t[2];this.automaticSession.renewalDate=+new Date(r);this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(Ea.CRITICAL,ka.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+gs.getExceptionName(e),{exception:gs.dump(e)})}if(this.automaticSession.renewalDate===0){this._logger.throwInternal(Ea.WARNING,ka.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")}};e.prototype.renew=function(){var e=(new Date).getTime();this.automaticSession.id=gs.newId(this.config&&this.config.idLength?this.config.idLength():22);this.automaticSession.acquisitionDate=e;this.automaticSession.renewalDate=e;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate);if(!gs.canUseLocalStorage()){this._logger.throwInternal(Ea.WARNING,ka.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}};e.prototype.setCookie=function(e,t,n){var r=t+this.config.sessionExpirationMs();var i=n+this.config.sessionRenewalMs();var a=new Date;var o=[e,t,n];if(r<i){a.setTime(r)}else{a.setTime(i)}var s=this.config.cookieDomain?this.config.cookieDomain():null;var u=this.config.sessionExpirationMs()===0?"0":a.toUTCString();gs.setCookie(this._logger,this._storageNamePrefix(),o.join("|")+";expires="+u,s);this.cookieUpdatedTimestamp=(new Date).getTime()};e.prototype.setStorage=function(e,t,n){gs.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))};e.acquisitionSpan=864e5;e.renewalSpan=18e5;e.cookieUpdateInterval=6e4;e.cookieNameConst="ai_session";return e}();var Ju=function(){function e(){}return e}();var Ku=function(){function e(){this.id="browser";this.deviceClass="Browser"}return e}();var Xu="2.5.10";var Yu=function(){function e(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:"+Xu}return e}();var $u=function(){function e(t,n){this.isNewUser=false;this._logger=n;var r=gs.getCookie(this._logger,e.userCookieName);if(r){this.isNewUser=false;var i=r.split(e.cookieSeparator);if(i.length>0){this.id=i[0]}}this.config=t;if(!this.id){this.id=Ia.newId(t&&t.idLength?t.idLength():22);var a=new Date;var o=Ia.toISOString(a);this.accountAcquisitionDate=o;this.isNewUser=true;a.setTime(a.getTime()+31536e6);var s=[this.id,o];var u=this.config.cookieDomain?this.config.cookieDomain():undefined;gs.setCookie(this._logger,e.userCookieName,s.join(e.cookieSeparator)+";expires="+a.toUTCString(),u);var l=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";gs.removeStorage(this._logger,l)}this.accountId=t.accountId?t.accountId():undefined;var c=gs.getCookie(this._logger,e.authUserCookieName);if(c){c=decodeURI(c);var d=c.split(e.cookieSeparator);if(d[0]){this.authenticatedId=d[0]}if(d.length>1&&d[1]){this.accountId=d[1]}}}e.prototype.setAuthenticatedUserContext=function(t,n,r){if(r===void 0){r=false}var i=!this.validateUserInput(t)||n&&!this.validateUserInput(n);if(i){this._logger.throwInternal(Ea.WARNING,ka.SetAuthContextFailedAccountName,"Setting auth user context failed. "+"User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",true);return}this.authenticatedId=t;var a=this.authenticatedId;if(n){this.accountId=n;a=[this.authenticatedId,this.accountId].join(e.cookieSeparator)}if(r){gs.setCookie(this._logger,e.authUserCookieName,encodeURI(a),this.config.cookieDomain())}};e.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null;this.accountId=null;gs.deleteCookie(this._logger,e.authUserCookieName)};e.prototype.validateUserInput=function(e){if(typeof e!=="string"||!e||e.match(/,|;|=| |\|/)){return false}return true};e.cookieSeparator="|";e.userCookieName="ai_user";e.authUserCookieName="ai_authUser";return e}();var Qu=function(){function e(){}return e}();var Zu=function(){function e(e,t,n,r){this.traceID=e||gs.generateW3CId();this.parentID=t;this.name=n;var i=Xi();if(!n&&i&&i.pathname){this.name=i.pathname}this.name=fs.sanitizeString(r,this.name)}return e}();var el=function(){function e(e,t){var n=this;n.application=new Ju;n.internal=new Yu(t);if(ji()){n.sessionManager=new Gu(t,e);n.device=new Ku;n.location=new Qu;n.user=new $u(t,e);n.telemetryTrace=new Zu(undefined,undefined,undefined,e);n.session=new Wu}n.appId=function(){return null}}e.prototype.applySessionContext=function(e,t){var n=this.session;var r=this.sessionManager;var i=n||r&&r.automaticSession;if(i){if(Ia.isString(i.id)){e.ext.app.sesId=i.id}}if(n){if(Ia.isString(n.id)){e.ext.app.sesId=n.id}else{e.ext.app.sesId=r.automaticSession.id}}};e.prototype.applyOperatingSystemContxt=function(e,t){var n=this.os;if(n&&n.name){e.ext.os=n}};e.prototype.applyApplicationContext=function(e,t){var n=this.application;if(n){if(Ia.isString(n.ver)){e.tags[lu.applicationVersion]=n.ver}if(Ia.isString(n.build)){e.tags[lu.applicationBuild]=n.build}}};e.prototype.applyDeviceContext=function(e,t){var n=this.device;if(n){if(Ia.isString(n.id)){e.ext.device.localId=n.id}if(Ia.isString(n.ip)){e.ext.device.ip=n.ip}if(Ia.isString(n.model)){e.ext.device.model=n.model}if(Ia.isString(n.deviceClass)){e.ext.device.deviceClass=n.deviceClass}}};e.prototype.applyInternalContext=function(e,t){var n=this.internal;if(n){if(Ia.isString(n.agentVersion)){e.tags[lu.internalAgentVersion]=n.agentVersion}if(Ia.isString(n.sdkVersion)){e.tags[lu.internalSdkVersion]=n.sdkVersion}if(e.baseType===ho.dataType||e.baseType===$s.dataType){if(Ia.isString(n.snippetVer)){e.tags[lu.internalSnippet]=n.snippetVer}if(Ia.isString(n.sdkSrc)){e.tags[lu.internalSdkSrc]=n.sdkSrc}}}};e.prototype.applyLocationContext=function(e,t){var n=this.location;if(n){if(Ia.isString(n.ip)){e.tags[lu.locationIp]=n.ip}}};e.prototype.applyOperationContext=function(e,t){var n=this.telemetryTrace;if(n){var r=e.ext.trace||{traceID:undefined,parentID:undefined};if(Ia.isString(n.traceID)){r.traceID=n.traceID}if(Ia.isString(n.name)){r.name=n.name}if(Ia.isString(n.parentID)){r.parentID=n.parentID}e.ext.trace=r}};e.prototype.applyWebContext=function(e,t){var n=this.web;if(n){e.ext.web=e.ext.web||{};e.ext.web=n}};e.prototype.applyUserContext=function(e,t){var n=this.user;if(n){if(!e.tags){e.tags=[]}if(Ia.isString(n.accountId)){e.tags[lu.userAccountId]=n.accountId}if(Ia.isString(n.id)){e.ext.user.id=n.id}if(Ia.isString(n.authenticatedId)){e.ext.user.authId=n.authenticatedId}}};e.prototype.cleanUp=function(e,t){if(e.ext[uu.DeviceExt]&&Ia.objKeys(e.ext[uu.DeviceExt]).length===0){delete e.ext[uu.DeviceExt]}if(e.ext[uu.UserExt]&&Ia.objKeys(e.ext[uu.UserExt]).length===0){delete e.ext[uu.UserExt]}if(e.ext[uu.WebExt]&&Ia.objKeys(e.ext[uu.WebExt]).length===0){delete e.ext[uu.WebExt]}if(e.ext[uu.OSExt]&&Ia.objKeys(e.ext[uu.OSExt]).length===0){delete e.ext[uu.OSExt]}if(e.ext[uu.AppExt]&&Ia.objKeys(e.ext[uu.AppExt]).length===0){delete e.ext[uu.AppExt]}if(e.ext[uu.TraceExt]&&Ia.objKeys(e.ext[uu.TraceExt]).length===0){delete e.ext[uu.TraceExt]}};return e}();var tl=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.priority=110;t.identifier=cu;return t}t.getDefaultConfig=function(){var e={instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 30*60*1e3},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 24*60*60*1e3},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return false},appId:function(){return null},namePrefix:function(){return undefined},idLength:function(){return 22}};return e};t.prototype.initialize=function(n,r,i,a){var o=this;e.prototype.initialize.call(this,n,r,i,a);var s=this._getTelCtx();var u=this.identifier;var l=t.getDefaultConfig();this._extensionConfig=this._extensionConfig||t.getDefaultConfig();Fa(l,(function(e,t){o._extensionConfig[e]=function(){return s.getConfig(u,e,t())}}));this.context=new el(r.logger,this._extensionConfig);this._breezeChannel=gs.getExtension(i,du);this.context.appId=function(){return o._breezeChannel?o._breezeChannel["_appId"]:null}};t.prototype.processTelemetry=function(e,t){if(Ia.isNullOrUndefined(e));else{t=this._getTelCtx(t);if(e.name===$s.envelopeType){t.diagLog().resetInternalMessageCount()}if(this.context.session){if(typeof this.context.session.id!=="string"){this.context.sessionManager.update()}}this._processTelemetryInternal(e,t);if(this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=false;var n=new ho(ka.SendBrowserInfoOnUserInit,(Gi()||{}).userAgent||"");t.diagLog().logInternalMessage(Ea.CRITICAL,n)}this.processNext(e,t)}};t.prototype._processTelemetryInternal=function(e,t){if(!e.tags){e.tags=[]}if(!e.ext){e.ext={}}var n=e.ext;n[uu.DeviceExt]=n[uu.DeviceExt]||{};n[uu.WebExt]=n[uu.WebExt]||{};n[uu.UserExt]=n[uu.UserExt]||{};n[uu.OSExt]=n[uu.OSExt]||{};n[uu.AppExt]=n[uu.AppExt]||{};n[uu.TraceExt]=n[uu.TraceExt]||{};var r=this.context;r.applySessionContext(e,t);r.applyApplicationContext(e,t);r.applyDeviceContext(e,t);r.applyOperationContext(e,t);r.applyUserContext(e,t);r.applyOperatingSystemContxt(e,t);r.applyWebContext(e,t);r.applyLocationContext(e,t);r.applyInternalContext(e,t);r.cleanUp(e,t)};return t}(To);
54
- /*!
55
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
56
- * Copyright (c) Microsoft and contributors. All rights reserved.
57
- */var nl="properties";var rl=Ia.objKeys;var il=Ia.arrForEach;function al(e,t,n){var r=0;var i=e[t];var a=e[n];if(i&&a){r=xs.GetDuration(i,a)}return r}function ol(e,t,n,r,i){var a=0;var o=al(n,r,i);if(o){a=sl(e,t,gs.msToTimeSpan(o))}return a}function sl(e,t,n){var r="ajaxPerf";var i=0;if(e&&t&&n){var a=e[r]=e[r]||{};a[t]=n;i=1}return i}function ul(e,t){var n=e.perfTiming;var r=t[nl]||{};var i=0;var a=Ia.isString;var o="name";var s="Start";var u="End";var l="domainLookup";var c="connect";var d="redirect";var f="request";var p="response";var m="duration";var h="startTime";var v=l+s;var g=l+u;var y=c+s;var b=c+u;var w=f+s;var x=f+u;var S=p+s;var C=p+u;var _=d+s;var F=d=u;var I="transferSize";var N="encodedBodySize";var A="decodedBodySize";var E="serverTiming";if(n){i|=ol(r,d,n,_,F);i|=ol(r,l,n,v,g);i|=ol(r,c,n,y,b);i|=ol(r,f,n,w,x);i|=ol(r,p,n,S,C);i|=ol(r,"networkConnect",n,h,b);i|=ol(r,"sentRequest",n,w,C);var k=n[m];if(!k){k=al(n,h,C)||0}i|=sl(r,m,k);i|=sl(r,"perfTotal",k);var T=n[E];if(T){var P={};il(T,(function(e,t){var n=_a(e[o]||""+t);var r=P[n]||{};Fa(e,(function(e,t){if(e!==o&&a(t)||Ia.isNumber(t)){if(r[e]){t=r[e]+";"+t}if(t||!a(t)){r[e]=t}}}));P[n]=r}));i|=sl(r,E,P)}i|=sl(r,I,n[I]);i|=sl(r,N,n[N]);i|=sl(r,A,n[A])}else{if(e.perfMark){i|=sl(r,"missing",e.perfAttempts)}}if(i){t[nl]=r}}var ll=function(){function e(){var e=this;e.openDone=false;e.setRequestHeaderDone=false;e.sendDone=false;e.abortDone=false;e.stateChangeAttached=false}return e}();var cl=function(){function e(t,n,r){var i=this;var a=r;var o="responseText";i.perfMark=null;i.completed=false;i.requestHeadersSize=null;i.requestHeaders=null;i.responseReceivingDuration=null;i.callbackDuration=null;i.ajaxTotalDuration=null;i.aborted=0;i.pageUrl=null;i.requestUrl=null;i.requestSize=0;i.method=null;i.status=null;i.requestSentTime=null;i.responseStartedTime=null;i.responseFinishedTime=null;i.callbackFinishedTime=null;i.endTime=null;i.xhrMonitoringState=new ll;i.clientFailure=0;i.traceID=t;i.spanID=n;uo(e,i,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?ys.getAbsoluteUrl(e.requestUrl):null};e.getPathName=function(){return e.requestUrl?fs.sanitizeUrl(a,ys.getCompleteUrl(e.method,e.requestUrl)):null};e.CreateTrackItem=function(t,n,r){e.ajaxTotalDuration=Math.round(xs.GetDuration(e.requestSentTime,e.responseFinishedTime)*1e3)/1e3;if(e.ajaxTotalDuration<0){return null}var i=(l={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl(),name:e.getPathName(),type:t,duration:e.ajaxTotalDuration,success:+e.status>=200&&+e.status<400,responseCode:+e.status,method:e.method},l[nl]={HttpMethod:e.method},l);ul(e,i);if(n){if(rl(e.requestHeaders).length>0){i[nl]=i[nl]||{};i[nl].requestHeaders=e.requestHeaders}}if(r){var a=r();if(a){var s=a.correlationContext;if(s){i.correlationContext=s}if(a.headerMap){if(rl(a.headerMap).length>0){i[nl]=i[nl]||{};i[nl].responseHeaders=a.headerMap}}if(e.status>=400){var u=a.type;i[nl]=i[nl]||{};if(u===""||u==="text"){i[nl][o]=a[o]?a.statusText+" - "+a[o]:a.statusText}if(u==="json"){i[nl][o]=a.response?a.statusText+" - "+JSON.stringify(a.response):a.statusText}}}}return i;var l}}))}return e}();
58
- /*!
59
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
60
- * Copyright (c) Microsoft and contributors. All rights reserved.
61
- */var dl=function(){function e(t,n){var r=this;r.traceFlag=e.DEFAULT_TRACE_FLAG;r.version=e.DEFAULT_VERSION;if(t&&e.isValidTraceId(t)){r.traceId=t}else{r.traceId=gs.generateW3CId()}if(n&&e.isValidSpanId(n)){r.spanId=n}else{r.spanId=gs.generateW3CId().substr(0,16)}}e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&e!=="00000000000000000000000000000000"};e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&e!=="0000000000000000"};e.prototype.toString=function(){var e=this;return e.version+"-"+e.traceId+"-"+e.spanId+"-"+e.traceFlag};e.DEFAULT_TRACE_FLAG="01";e.DEFAULT_VERSION="00";return e}();
62
- /*!
63
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
64
- * Copyright (c) Microsoft and contributors. All rights reserved.
65
- */var fl="ai.ajxmn.";var pl="diagLog";var ml="ajaxData";var hl="throwInternal";var vl="fetch";var gl=Ia.isNullOrUndefined;var yl=Ia.arrForEach;var bl=0;function wl(){var e=Bi();if(!e||gl(e.Request)||gl(e.Request[Ii])||gl(e[vl])){return null}return e[vl]}function xl(e){var t=false;if(typeof XMLHttpRequest!==_i&&!gl(XMLHttpRequest)){var n=XMLHttpRequest[Ii];t=!gl(n)&&!gl(n.open)&&!gl(n.send)&&!gl(n.abort)}var r=gs.getIEVersion();if(r&&r<9){t=false}if(t){try{var i=new XMLHttpRequest;i[ml]={};var a=XMLHttpRequest[Ii].open;XMLHttpRequest[Ii].open=a}catch(n){t=false;Cl(e,ka.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:gs.dump(n)})}}return t}function Sl(e){var t="";try{if(!gl(e)&&!gl(e[ml])&&!gl(e[ml].requestUrl)){t+="(url: '"+e[ml].requestUrl+"')"}}catch(e){}return t}function Cl(e,t,n,r,i){e[pl]()[hl](Ea.CRITICAL,t,n,r,i)}function _l(e,t,n,r,i){e[pl]()[hl](Ea.WARNING,t,n,r,i)}function Fl(e,t,n){return function(r){Cl(e,t,n,{ajaxDiagnosticsMessage:Sl(r.inst),exception:gs.dump(r.err)})}}function Il(e,t){if(e&&t){return e.indexOf(t)}return-1}var Nl=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier;n.priority=120;var r="trackDependencyDataInternal";var i=Xi();var a=false;var o=false;var s=i&&i.host&&i.host.toLowerCase();var u=t.getEmptyConfig();var l=false;var c=0;var d;var f;var p;var m;var h=false;var v=0;var g=false;var y=[];var b={};uo(t,n,(function(e,n){e.initialize=function(r,a,o,s){if(!e.isInitialized()){n.initialize(r,a,o,s);var c=e._getTelCtx();var y=t.getDefaultConfig();Fa(y,(function(e,n){u[e]=c.getConfig(t.identifier,e,n)}));var b=u.distributedTracingMode;l=u.enableRequestHeaderTracking;h=u.enableAjaxPerfTracking;v=u.maxAjaxCallsPerView;g=u.enableResponseHeaderTracking;p=b===cs.AI||b===cs.AI_AND_W3C;f=b===cs.AI_AND_W3C||b===cs.W3C;if(h){var w=r.instrumentationKey||"unkwn";if(w.length>5){m=fl+w.substring(w.length-5)+"."}else{m=fl+w+"."}}if(u.disableAjaxTracking===false){x()}i();if(o.length>0&&o){var S=void 0,C=0;while(!S&&C<o.length){if(o[C]&&o[C].identifier===cu){S=o[C]}C++}if(S){d=S.context}}}};e.teardown=function(){yl(y,(function(e){e.rm()}));y=[];a=false;o=false;e.setInitialized(false)};e.trackDependencyData=function(t,n){e[r](t,n)};e.includeCorrelationHeaders=function(t,n,r,i){var a=e["_currentWindowHost"]||s;if(n){if(bs.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),a)){if(!r){r={}}r.headers=new Headers(r.headers||(n instanceof Request?n.headers||{}:{}));if(p){var o="|"+t.traceID+"."+t.spanID;r.headers.set(ds.requestIdHeader,o);if(l){t.requestHeaders[ds.requestIdHeader]=o}}var c=u.appId||d&&d.appId();if(c){r.headers.set(ds.requestContextHeader,ds.requestContextAppIdFormat+c);if(l){t.requestHeaders[ds.requestContextHeader]=ds.requestContextAppIdFormat+c}}if(f){var m=new dl(t.traceID,t.spanID);r.headers.set(ds.traceParentHeader,m.toString());if(l){t.requestHeaders[ds.traceParentHeader]=m.toString()}}}return r}else if(i){if(bs.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),a)){if(p){var o="|"+t.traceID+"."+t.spanID;i.setRequestHeader(ds.requestIdHeader,o);if(l){t.requestHeaders[ds.requestIdHeader]=o}}var c=u.appId||d&&d.appId();if(c){i.setRequestHeader(ds.requestContextHeader,ds.requestContextAppIdFormat+c);if(l){t.requestHeaders[ds.requestContextHeader]=ds.requestContextAppIdFormat+c}}if(f){var m=new dl(t.traceID,t.spanID);i.setRequestHeader(ds.traceParentHeader,m.toString());if(l){t.requestHeaders[ds.traceParentHeader]=m.toString()}}}return i}return undefined};e[r]=function(t,n,r){if(v===-1||c<v){if((u.distributedTracingMode===cs.W3C||u.distributedTracingMode===cs.AI_AND_W3C)&&typeof t.id==="string"&&t.id[t.id.length-1]!=="."){t.id+="."}if(Ia.isNullOrUndefined(t.startTime)){t.startTime=new Date}var i=su.create(t,Zs.dataType,Zs.envelopeType,e[pl](),n,r);e.core.track(i)}else if(c===v){Cl(e,ka.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",true)}++c};function i(){var t=wl();if(!t){return}var n=Bi();var r=t.polyfill;if(u.disableFetchTracking===false){y.push(ss(n,vl,{req:function(t,n,i){var s;if(a&&!S(null,n,i)&&!(r&&o)){var u=t.ctx();s=T(n,i);var l=e.includeCorrelationHeaders(s,n,i);if(l!==i){t.set(1,l)}u.data=s}},rsp:function(e,t){var n=e.ctx().data;if(n){e.rslt=e.rslt.then((function(t){D(e,(t||{}).status,t,n,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:M(t)};if(g){var n={};t.headers.forEach((function(e,t){n[t]=e}));e.headerMap=n}return e}));return t}))["catch"]((function(r){D(e,0,t,n,null);throw r}))}},hkErr:Fl(e,ka.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")}));a=true}else if(r){y.push(ss(n,vl,{req:function(e,t,n){S(null,t,n)}}))}if(r){n[vl].polyfill=r}}function w(e,t,n){y.push(os(e,t,n))}function x(){if(xl(e)&&!o){w(XMLHttpRequest,"open",{req:function(e,t,n,r){var i=e.inst;var a=i[ml];if(!S(i,n)&&C(i,true)&&(!a||!a.xhrMonitoringState.openDone)){_(i,t,n,r)}},hkErr:Fl(e,ka.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"send",{req:function(t,n){var r=t.inst;var i=r[ml];if(C(r)&&!i.xhrMonitoringState.sendDone){E("xhr",i);i.requestSentTime=xs.Now();r=e.includeCorrelationHeaders(i,undefined,undefined,r);i.xhrMonitoringState.sendDone=true}},hkErr:Fl(e,ka.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"abort",{req:function(e){var t=e.inst;var n=t[ml];if(C(t)&&!n.xhrMonitoringState.abortDone){n.aborted=1;n.xhrMonitoringState.abortDone=true}},hkErr:Fl(e,ka.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")});if(l){w(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){var r=e.inst;if(C(r)){r[ml].requestHeaders[t]=n}},hkErr:Fl(e,ka.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")})}o=true}}function S(e,t,n){var r=false;var i=((!Ia.isString(t)?(t||{}).url||"":t)||"").toLowerCase();var a=Il(i,"?");var o=Il(i,"#");if(a===-1||o!==-1&&o<a){a=o}if(a!==-1){i=i.substring(0,a)}if(!gl(e)){r=e[Ss]===true||i[Ss]===true}else if(!gl(t)){r=(typeof t==="object"?t[Ss]===true:false)||(n?n[Ss]===true:false)}if(r){if(!b[i]){b[i]=1}}else{if(b[i]){r=true}}return r}function C(e,t){var n=true;var r=o;if(!gl(e)){n=t===true||!gl(e[ml])}return r&&n}function _(t,n,r,i){var a=d&&d.telemetryTrace&&d.telemetryTrace.traceID||gs.generateW3CId();var o=gs.generateW3CId().substr(0,16);var s=new cl(a,o,e[pl]());s.method=n;s.requestUrl=r;s.xhrMonitoringState.openDone=true;s.requestHeaders={};s.async=i;t[ml]=s;F(t)}function F(t){t[ml].xhrMonitoringState.stateChangeAttached=Aa.Attach(t,"readystatechange",(function(){try{if(t&&t.readyState===4&&C(t)){N(t)}}catch(r){var n=gs.dump(r);if(!n||Il(n.toLowerCase(),"c00c023f")===-1){Cl(e,ka.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Sl(t),exception:n})}}}))}function I(e){try{var t=e.responseType;if(t===""||t==="text"){return e.responseText}}catch(e){}return null}function N(t){var n=t[ml];n.responseFinishedTime=xs.Now();n.status=t.status;function i(n,r){var i=r||{};i["ajaxDiagnosticsMessage"]=Sl(t);if(n){i["exception"]=gs.dump(n)}_l(e,ka.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}k("xmlhttprequest",n,(function(){try{var a=n.CreateTrackItem("Ajax",l,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:A(t),type:t.responseType,responseText:I(t),response:t.response};if(g){var n=t.getAllResponseHeaders();if(n){var r=Ia.strTrim(n).split(/[\r\n]+/);var i={};yl(r,(function(e){var t=e.split(": ");var n=t.shift();var r=t.join(": ");i[n]=r}));e.headerMap=i}}return e}));if(a){e[r](a)}else{i(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}}finally{try{t[ml]=null}catch(e){}}}),(function(e){i(e,null)}))}function A(t){try{var n=t.getAllResponseHeaders();if(n!==null){var r=Il(n.toLowerCase(),ds.requestContextHeaderLowerCase);if(r!==-1){var i=t.getResponseHeader(ds.requestContextHeader);return bs.getCorrelationContext(i)}}}catch(n){_l(e,ka.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Sl(t),exception:gs.dump(n)})}}function E(e,t){if(t.requestUrl&&m&&h){var n=$i();if(n&&Ia.isFunction(n.mark)){bl++;var r=m+e+"#"+bl;n.mark(r);var i=n.getEntriesByName(r);if(i&&i.length===1){t.perfMark=i[0]}}}}function k(e,t,n,r){var i=t.perfMark;var a=$i();var o=u.maxAjaxPerfLookupAttempts;var s=u.ajaxPerfLookupDelay;var l=t.requestUrl;var c=0;(function u(){try{if(a&&i){c++;var d=null;var f=a.getEntries();for(var p=f.length-1;p>=0;p--){var m=f[p];if(m){if(m.entryType==="resource"){if(m.initiatorType===e&&(Il(m.name,l)!==-1||Il(l,m.name)!==-1)){d=m}}else if(m.entryType==="mark"&&m.name===i.name){t.perfTiming=d;break}if(m.startTime<i.startTime-1e3){break}}}}if(!i||t.perfTiming||c>=o||t.async===false){if(i&&Ia.isFunction(a.clearMarks)){a.clearMarks(i.name)}t.perfAttempts=c;n()}else{setTimeout(u,s)}}catch(e){r(e)}})()}function T(t,n){var r=d&&d.telemetryTrace&&d.telemetryTrace.traceID||gs.generateW3CId();var i=gs.generateW3CId().substr(0,16);var a=new cl(r,i,e[pl]());a.requestSentTime=xs.Now();if(t instanceof Request){a.requestUrl=t?t.url:""}else{a.requestUrl=t}var o="GET";if(n&&n.method){o=n.method}else if(t&&t instanceof Request){o=t.method}a.method=o;var s={};if(l){var u=new Headers((n?n.headers:0)||(t instanceof Request?t.headers||{}:{}));u.forEach((function(e,t){s[t]=e}))}a.requestHeaders=s;E("fetch",a);return a}function P(t){var n="";try{if(!gl(t)){if(typeof t==="string"){n+="(url: '"+t+"')"}else{n+="(url: '"+t.url+"')"}}}catch(t){Cl(e,ka.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:gs.dump(t)})}return n}function D(t,n,i,a,o,s){if(!a){return}function u(t,n,r){var a=r||{};a["fetchDiagnosticsMessage"]=P(i);if(n){a["exception"]=gs.dump(n)}_l(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",a)}a.responseFinishedTime=xs.Now();a.status=n;k("fetch",a,(function(){var t=a.CreateTrackItem("Fetch",l,o);if(t){e[r](t)}else{u(ka.FailedMonitorAjaxDur,null,{requestSentTime:a.requestSentTime,responseFinishedTime:a.responseFinishedTime})}}),(function(e){u(ka.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function M(t){if(t&&t.headers){try{var n=t.headers.get(ds.requestContextHeader);return bs.getCorrelationContext(n)}catch(n){_l(e,ka.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:P(t),exception:gs.dump(n)})}}}}));return n}t.getDefaultConfig=function(){var e={maxAjaxCallsPerView:500,disableAjaxTracking:false,disableFetchTracking:true,disableCorrelationHeaders:false,distributedTracingMode:cs.AI,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,appId:undefined,enableCorsCorrelation:false,enableRequestHeaderTracking:false,enableResponseHeaderTracking:false,enableAjaxErrorStatusText:false,enableAjaxPerfTracking:false,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25};return e};t.getEmptyConfig=function(){var e=this.getDefaultConfig();Fa(e,(function(t){e[t]=undefined}));return e};t.prototype.processTelemetry=function(e,t){this.processNext(e,t)};t.identifier="AjaxDependencyPlugin";return t}(To);
66
- /*!
67
- * Application Insights JavaScript SDK - Web, 2.5.10
68
- * Copyright (c) Microsoft and contributors. All rights reserved.
69
- */var Al;var El=function(){function e(e){var t=this;t._snippetVersion=""+(e.sv||e.version||"");e.queue=e.queue||[];e.version=e.version||2;var n=e.config||{};if(n.connectionString){var r=Ns.parse(n.connectionString);var i=r.ingestionendpoint;n.endpointUrl=i?i+"/v2/track":n.endpointUrl;n.instrumentationKey=r.instrumentationkey||n.instrumentationKey}t.appInsights=new bu;t.properties=new tl;t.dependencies=new Nl;t.core=new Xo;t.snippet=e;t.config=n;t.getSKUDefaults()}e.prototype.trackEvent=function(e,t){this.appInsights.trackEvent(e,t)};e.prototype.trackPageView=function(e){var t=e||{};this.appInsights.trackPageView(t)};e.prototype.trackPageViewPerformance=function(e){var t=e||{};this.appInsights.trackPageViewPerformance(t)};e.prototype.trackException=function(e){if(!e.exception&&e.error){e.exception=e.error}this.appInsights.trackException(e)};e.prototype._onerror=function(e){this.appInsights._onerror(e)};e.prototype.trackTrace=function(e,t){this.appInsights.trackTrace(e,t)};e.prototype.trackMetric=function(e,t){this.appInsights.trackMetric(e,t)};e.prototype.startTrackPage=function(e){this.appInsights.startTrackPage(e)};e.prototype.stopTrackPage=function(e,t,n,r){this.appInsights.stopTrackPage(e,t,n,r)};e.prototype.startTrackEvent=function(e){this.appInsights.startTrackEvent(e)};e.prototype.stopTrackEvent=function(e,t,n){this.appInsights.stopTrackEvent(e,t,n)};e.prototype.addTelemetryInitializer=function(e){return this.appInsights.addTelemetryInitializer(e)};e.prototype.setAuthenticatedUserContext=function(e,t,n){if(n===void 0){n=false}this.properties.context.user.setAuthenticatedUserContext(e,t,n)};e.prototype.clearAuthenticatedUserContext=function(){this.properties.context.user.clearAuthenticatedUserContext()};e.prototype.trackDependencyData=function(e){this.dependencies.trackDependencyData(e)};e.prototype.flush=function(e){var t=this;if(e===void 0){e=true}xo(this.core,(function(){return"AISKU.flush"}),(function(){Ia.arrForEach(t.core.getTransmissionControls(),(function(t){Ia.arrForEach(t,(function(t){t.flush(e)}))}))}),null,e)};e.prototype.onunloadFlush=function(e){if(e===void 0){e=true}Ia.arrForEach(this.core.getTransmissionControls(),(function(t){Ia.arrForEach(t,(function(t){if(t.onunloadFlush){t.onunloadFlush()}else{t.flush(e)}}))}))};e.prototype.loadAppInsights=function(e,t,n){var r=this;if(e===void 0){e=false}var i=this;function a(t){if(t){var n="";if(!Ia.isNullOrUndefined(i._snippetVersion)){n+=i._snippetVersion}if(e){n+=".lg"}if(i.context&&i.context.internal){i.context.internal.snippetVer=n||"-"}Fa(i,(function(e,n){if(Ia.isString(e)&&!Ia.isFunction(n)&&e.substring(0,1)!=="_"){t[e]=n}}))}}if(e&&i.config.extensions&&i.config.extensions.length>0){throw new Error("Extensions not allowed in legacy mode")}xo(i.core,(function(){return"AISKU.loadAppInsights"}),(function(){var e=[];var o=new Hu;e.push(o);e.push(i.properties);e.push(i.dependencies);e.push(i.appInsights);i.core.initialize(i.config,e,t,n);i.context=i.properties.context;if(Al&&i.context){i.context.internal.sdkSrc=Al}a(i.snippet);i.emptyQueue();i.pollInternalLogs();i.addHousekeepingBeforeUnload(r)}));return i};e.prototype.updateSnippetDefinitions=function(e){Fa(this,(function(t,n){if(Ia.isString(t)){e[t]=n}}))};e.prototype.emptyQueue=function(){var e=this;try{if(gs.isArray(e.snippet.queue)){var t=e.snippet.queue.length;for(var n=0;n<t;n++){var r=e.snippet.queue[n];r()}e.snippet.queue=undefined;delete e.snippet.queue}}catch(e){var i={};if(e&&Ia.isFunction(e.toString)){i.exception=e.toString()}}};e.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()};e.prototype.addHousekeepingBeforeUnload=function(e){if(ji()||zi()){var t=function(){e.onunloadFlush(false);var t=e.appInsights.core["_extensions"][cu];if(t&&t.context&&t.context._sessionManager){t.context._sessionManager.backup()}};if(!e.appInsights.config.disableFlushOnBeforeUnload){var n=Ia.addEventHandler("beforeunload",t);n=Ia.addEventHandler("pagehide",t)||n;if(!n&&!na()){e.appInsights.core.logger.throwInternal(Ea.CRITICAL,ka.FailedToAddHandlerForOnBeforeUnload,"Could not add handler for beforeunload and pagehide")}}if(!e.appInsights.config.disableFlushOnUnload){Ia.addEventHandler("pagehide",t)}}};e.prototype.getSKUDefaults=function(){var e=this;e.config.diagnosticLogInterval=e.config.diagnosticLogInterval&&e.config.diagnosticLogInterval>0?e.config.diagnosticLogInterval:1e4};return e}();(function(){var e=null;var t=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;if(n){e=n.src}}catch(e){}if(e){try{var r=e.toLowerCase();if(r){var i="";for(var a=0;a<t.length;a++){if(r.indexOf(t[a])!==-1){i="cdn"+(a+1);if(r.indexOf("/scripts/")===-1){if(r.indexOf("/next/")!==-1){i+="-next"}else if(r.indexOf("/beta/")!==-1){i+="-beta"}}Al=i+"";break}}}}catch(e){}}})();var kl=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(o=e[s])a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Tl;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(Tl||(Tl={}));var Pl=function(){function e(){}return e}();function Dl(){return{authenticationState:Tl.Unauthorized,jwt:X,reactNativeInterop:X,iframeInterop:X,appConfiguration:X,ignoreExistingSelection:false}}var Ml=function(e){__extends(t,e);function t(){return e.call(this,Dl())||this}return t}(I);Ml=kl([F({name:"sss-session",resettable:true})],Ml);var Ol=new Ml;var Ll=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;n.appConfiguration$=n.select((function(e){return e.appConfiguration}));return n}Object.defineProperty(t.prototype,"configuration",{get:function(){var e=this.getValue().appConfiguration;if(K(e)){throw Error("App configuration is not yet loaded")}return e.value},enumerable:false,configurable:true});return t}(N);var Rl=new Ll(Ol);var Ul=function(){function e(){this.appInsights=new te((function(){return new El({config:{instrumentationKey:Rl.configuration.AppInsightsKey,enableAutoRouteTracking:true,autoTrackPageVisitTime:true,maxBatchInterval:1e3,enableUnhandledPromiseRejectionTracking:true}})}))}e.prototype.init=function(){var e=this;this.appInsights.value.loadAppInsights();c((function(t){return e.appInsightsErrorHandler(t)}))};e.prototype.getAppInsights=function(){return this.appInsights.value};e.prototype.addCustomProperties=function(e){this.appInsights.value.addTelemetryInitializer((function(t){t.data=t.data?t.data:{};for(var n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],o=i[1];t.data[a]=o}}))};e.prototype.trackErrorTrace=function(e){this.appInsights.value.trackTrace({message:e,severityLevel:au.Error})};e.prototype.appInsightsErrorHandler=function(e){this.appInsights.value.trackException({error:e,severityLevel:au.Error});var t=function(e){return console.error(e)};t(e)};return e}();var Bl=new Ul;var Vl=function(){function e(){var e=this;this.getFundName=function(e){return je.pipe(sr(e),qe.getOrElse((function(){return""})))};this.cleanUsi=function(e){return e.replace(/ /g,"")};this.stringIsNullOrEmtpty=function(e){return!(typeof e==="string"&&e.trim().length>0)};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"api.simplefinancialchoices.com/promoted-funds/embed"}}e.prototype.build=function(e,t){var n=this;if(!(e===null||e===void 0?void 0:e.contentDocument))return;var r=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Rt.partnerIdOrDefault,accountId:Rt.accountIdOrDefault,fundId:jt.fund.id,authToken:Rt.jwt,employerDefault:jt.fund.type==="PromotedDefault",definedBenefitsEligibility:qe.toUndefined(Rt.isDefinedBenefitsEligible)});var i=function(r){return __awaiter(n,void 0,void 0,(function(){var n,a,o,s,u,l,s,c,s,d,s;return __generator(this,(function(f){switch(f.label){case 0:n=r.data;if(!n){return[2]}if(!(n.sender==="promoted-fund-redirect"))return[3,10];window.removeEventListener("message",i);a=n.type;switch(a){case"cancel":return[3,1];case"success":return[3,2];case"success-promoted":return[3,3];case"success-promoted-default":return[3,4];case"success-promoted-default-with-join":return[3,5];case"success-defined-benefits":return[3,6]}return[3,8];case 1:if(jt.fund.type==="DefinedBenefits"){rn.navigateInternally(t,en.ConsentPage)}else{rn.navigateInternally(t,en.ChoicePage)}return[3,9];case 2:{o=jt.fund.id;s=this.getFundName(o);u=this.cleanUsi(n.usi);switch(jt.fund.type){case"Promoted":if(this.stringIsNullOrEmtpty(n.memberNumber)||this.stringIsNullOrEmtpty(n.usi)){Bl.trackErrorTrace("PFJ C# did not return (Promoted) memberNumber and/or usi");rn.navigateInternally(t,en.ChoicePage);break}rn.navigateInternallyToStandardChoice({history:t,fundName:s,promotedFundId:o,fundDetails:{type:"promoted",fundName:s,fundUsi:u,memberNumber:n.memberNumber,promotedFundId:o},handleSubmitFn:function(e){return ui.submitChoiceAsync(Object.assign({fundId:o,memberNumber:n.memberNumber,memberFirstName:n.memberFirstName,memberFamilyName:n.memberFamilyName,usi:n.usi.replace(/ /g,""),standardChoiceFormSignature:e,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},Rt.promotedFundsConfig))}});break;case"PromotedDefault":if(this.stringIsNullOrEmtpty(n.usi)){Bl.trackErrorTrace("PFJ C# did not return (PromotedDefault) usi");rn.navigateInternally(t,en.ChoicePage);break}rn.navigateInternallyToStandardChoice({history:t,fundName:s,promotedFundId:o,fundDetails:{type:"promotedDefault",fundName:s,fundUsi:u,promotedFundId:o},handleSubmitFn:function(e){return ui.submitDefaultChoiceAsync(Object.assign({fundId:o,usi:u,standardChoiceFormSignature:e,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},Rt.promotedFundsConfig))}});break;case"DefinedBenefits":throw Error('DefinedBenefits is not supported in legacy "success" message');case"null":throw Error("PromotedFundState.type was not set.")}return[3,9]}f.label=3;case 3:{if(this.stringIsNullOrEmtpty(n.memberNumber)||this.stringIsNullOrEmtpty(n.usi)){Bl.trackErrorTrace("PFJ C# did not return (Promoted) memberNumber and/or usi");rn.navigateInternally(t,en.ChoicePage);return[3,9]}l=this.cleanUsi(n.usi);s=this.getFundName(n.fundId);rn.navigateInternallyToStandardChoice({history:t,fundName:s,promotedFundId:n.fundId,fundDetails:{type:"promoted",fundName:s,fundUsi:l,memberNumber:n.memberNumber,promotedFundId:n.fundId},handleSubmitFn:function(e){return ui.submitChoiceAsync(Object.assign({fundId:n.fundId,memberNumber:n.memberNumber,memberFirstName:n.memberFirstName,memberFamilyName:n.memberFamilyName,usi:l,standardChoiceFormSignature:e,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},Rt.promotedFundsConfig))}});return[3,9]}f.label=4;case 4:{if(this.stringIsNullOrEmtpty(n.usi)){Bl.trackErrorTrace("PFJ C# did not return (PromotedDefault) usi");rn.navigateInternally(t,en.ChoicePage);return[3,9]}c=this.cleanUsi(n.usi);s=this.getFundName(n.fundId);rn.navigateInternallyToStandardChoice({history:t,fundName:s,promotedFundId:n.fundId,fundDetails:{type:"promotedDefault",fundName:s,fundUsi:c,promotedFundId:n.fundId},handleSubmitFn:function(e){return ui.submitDefaultChoiceAsync(Object.assign({fundId:n.fundId,usi:c,standardChoiceFormSignature:e,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},Rt.promotedFundsConfig))}});return[3,9]}f.label=5;case 5:{if(this.stringIsNullOrEmtpty(n.memberNumber)||this.stringIsNullOrEmtpty(n.usi)){Bl.trackErrorTrace("PFJ C# did not return (PromotedDefaultWithJoin) memberNumber and/or usi");rn.navigateInternally(t,en.ChoicePage);return[3,9]}d=this.cleanUsi(n.usi);s=this.getFundName(n.fundId);rn.navigateInternallyToStandardChoice({history:t,fundName:s,promotedFundId:n.fundId,fundDetails:{type:"promotedDefaultWithJoin",fundName:s,fundUsi:d,memberNumber:n.memberNumber,promotedFundId:n.fundId},handleSubmitFn:function(e){return ui.submitDefaultChoiceWithJoinAsync(Object.assign({fundId:n.fundId,memberNumber:n.memberNumber,memberFirstName:n.memberFirstName,memberFamilyName:n.memberFamilyName,usi:d,standardChoiceFormSignature:e,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},Rt.promotedFundsConfig))}});return[3,9]}f.label=6;case 6:if(this.stringIsNullOrEmtpty(n.memberNumber)||this.stringIsNullOrEmtpty(n.usi)){Bl.trackErrorTrace("PFJ C# did not return (DefinedBenefits) memberNumber and/or usi");rn.navigateInternally(t,en.ConsentPage);return[3,9]}return[4,wn.submitDefinedBenefitsChoiceAsync(Object.assign(Object.assign({fundUsi:this.cleanUsi(n.usi)},n),Rt.promotedFundsConfig))];case 7:f.sent();Rt.markSuperSelectionAsSubmitted();return[3,9];case 8:rn.navigateInternally(t,en.ChoicePage);return[3,9];case 9:qt();return[2];case 10:if(n.sender==="promoted-fund-join"){switch(n.type){case"contentResized":e.height=n.height>0?String(n.height):e.height;e.width=n.width>0?String(n.width):e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);$t.navigation(window.location.href);break}}return[2]}}))}))};window.addEventListener("message",i);var a=e.contentDocument;a.open();var o=a.createElement("form");o.method="POST";o.target="_self";o.action=this.promotedFundJoinAppUrl();var s;for(s in r){var u=r[s];if(u!==undefined){var l=document.createElement("input");l.name=s;l.type="hidden";if(typeof u==="boolean"){l.value=u?"true":"false"}else{l.value=u}o.append(l)}}a.appendChild(o);a.close();o.submit()};e.prototype.getMemberData=function(){var e,t;var n=Rt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var jl=new Vl;var ql=e("sss_promoted_fund_join_v2_page",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;return r("sss-iframe-host",{build:function(t){return jl.build(t,e.history)}})};return e}());function zl(e){var t=e.split("").map(Number);var n=t.every((function(e){return!isNaN(e)}));var r=[10,1,3,5,7,9,11,13,15,17,19];if(!n||t.length!==r.length){return false}t[0]--;var i=t.reduce((function(e,t,n){return e+t*r[n]}),0);return i%89===0}var Hl=e("sss_self_managed_fund",function(){function e(e){var t=this;n(this,e);this.isSubmitDisabled=true;this.isAbnValid=zl(pn.selfManagedFundForm.fundAbn);this.eventTrackingService=Ht.Instance;this.success=function(){rn.navigateInternallyToStandardChoice({history:t.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:pn.selfManagedFundForm.fundName,fundEsa:pn.selfManagedFundForm.fundEsa},handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Object.assign({smsfChoice:{abn:pn.selfManagedFundForm.fundAbn,fundName:pn.selfManagedFundForm.fundName,fundAddress:{addressLine1:pn.selfManagedFundForm.addressLine1,addressLine2:pn.selfManagedFundForm.addressLine2,city:pn.selfManagedFundForm.city,state:pn.selfManagedFundForm.state,postcode:pn.selfManagedFundForm.postcode},bsb:pn.selfManagedFundForm.bsb,bankAccountName:pn.selfManagedFundForm.bankAccountName,bankAccountNumber:pn.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:pn.selfManagedFundForm.fundEsa,memberFirstName:pn.selfManagedFundForm.memberFirstName,memberFamilyName:pn.selfManagedFundForm.memberFamilyName},standardChoiceFormSignature:e},Rt.promotedFundsConfig);return[4,wn.submitSelfManagedFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}})}}e.prototype.componentDidLoad=function(){this.updateIsSubmitDisabled();return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Rt.promotedFunds,defaultFundUsiSet:Q(Rt.defaultFundUsi)})};e.prototype.render=function(){var e=this;return r(s,null,r("sss-header-section",{currentPage:"own-fund"}),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.updateIsSubmitDisabled()}},r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"},r("p",{class:"sm:text-lg font-bold"},"Fund details"),r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:o("assets/icon-exclamation.svg")})),r("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."))),r("sss-self-managed-fund-inputs",{fundForm:pn.selfManagedFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){pn.selfManagedFundForm=Object.assign(Object.assign({},pn.selfManagedFundForm),t.detail);if(t.detail.isAbnValid!==undefined)e.isAbnValid=t.detail.isAbnValid;e.updateIsSubmitDisabled()}})),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},r("div",{class:"mb-4",onClick:function(){return e.formState="validated"}},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),r("stencil-route-link",{url:en.ChoicePage},r("sss-button",{testid:"back-button",fillWidth:true,variant:"secondary"},"Back"))))))))};e.prototype.updateIsSubmitDisabled=function(){this.isSubmitDisabled=!this.formElement.checkValidity()||!this.isAbnValid};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.formState="validated";if(this.formElement.checkValidity())this.success();return[2]}))}))};return e}());re(Hl);var Wl;(function(e){e[e["Invalid"]=1]="Invalid";e[e["AbnIsUsedForRegulatedFund"]=2]="AbnIsUsedForRegulatedFund";e[e["Valid"]=3]="Valid"})(Wl||(Wl={}));var Gl=e("sss_self_managed_fund_inputs",function(){function e(e){n(this,e);this.formChanged=u(this,"formChanged",7);this.abnValidationStatus=Wl.Invalid;this.isAbnTouched=false;this.currentBank=X;this.addressErrorMessage=X;this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}];this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/);this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}e.prototype.render=function(){var e=this;var t={"relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10":true,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors};return r("div",null,r("div",null,r("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),r("div",{class:"mt-1"},r("input",{type:"text",class:t,required:true,minlength:"2",name:"fundName",id:"fundName",value:pn.selfManagedFundForm.fundName,onChange:function(t){return e.updateFormField("fundName",t.target.value.trim())}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund name"))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund ABN"),r("div",{class:"mt-1"},r("input",{type:"text",class:t,required:true,minlength:"2",name:"fundAbn",id:"fundAbn",value:pn.selfManagedFundForm.fundAbn,inputmode:"numeric",pattern:"[0-9]*",onKeyUp:function(t){return __awaiter(e,void 0,void 0,(function(){var e,n,r;return __generator(this,(function(i){switch(i.label){case 0:e=t.target;this.updateFormField("fundAbn",e.value.trim());this.abnValidationStatus=Wl.Invalid;if(!zl(e.value))return[3,2];return[4,this.isAbnUsedForRegulatedAsync(e.value)];case 1:n=i.sent();this.abnValidationStatus=n?Wl.AbnIsUsedForRegulatedFund:Wl.Valid;i.label=2;case 2:r=this.abnValidationStatus===Wl.Valid?"":"Enter a valid fund ABN (digits only)";e.setCustomValidity(r);this.updateFormField("isAbnValid",this.abnValidationStatus===Wl.Valid);return[2]}}))}))},onBlur:function(){return e.isAbnTouched=true}}),this.renderAbnValidationError())),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Electronic service address alias (ESA)"),r("div",{class:"mt-1"},r("input",{type:"text",class:t,required:true,minlength:"2",name:"fundEsa",id:"fundEsa",value:pn.selfManagedFundForm.fundEsa,onChange:function(t){return e.updateFormField("fundEsa",t.target.value.trim())}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund ESA"))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),r("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},r("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none rounded-t-md shadow-none":true}),required:true,minlength:"2",name:"addressLine1",id:"addressLine1",value:pn.selfManagedFundForm.addressLine1,onChange:function(t){e.updateFormField("addressLine1",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.addressLine1Element=t}}),r("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":true}),name:"addressLine2",id:"addressLine2",value:pn.selfManagedFundForm.addressLine2,onChange:function(t){return e.updateFormField("addressLine2",t.target.value.trim())}}),r("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":true}),name:"city",required:true,id:"city",value:pn.selfManagedFundForm.city,onChange:function(t){e.updateFormField("city",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.cityElement=t}}),r("div",{class:"flex -space-x-px"},r("div",{class:"w-1/2 flex-1 min-w-0"},r("input",{placeholder:"Postcode",type:"text",required:true,class:Object.assign(Object.assign({},t),{"rounded-none rounded-bl-md shadow-none":true}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:pn.selfManagedFundForm.postcode,inputmode:"numeric",onChange:function(t){e.updateFormField("postcode",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.postcodeElement=t}})),r("div",{class:"flex-1 min-w-0"},r("select",{class:Object.assign(Object.assign({},t),{"rounded-none rounded-br-md shadow-none":true,"text-gray-500":this.fundForm.state!==undefined}),name:"state",required:true,id:"state",onChange:function(t){e.updateFormField("state",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.stateElement=t}},r("option",{disabled:true,selected:this.fundForm.state!==undefined,value:""},"State"),this.stateOptions.map((function(t){return r("option",{value:t.value,selected:e.fundForm.state===t.value},t.label)})))))),J(this.addressErrorMessage)&&this.showValidationErrors&&r("div",{class:"mt-2 text-sm text-red-600"},this.addressErrorMessage.value)),r("div",{class:"flex space-x-4"},r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Given name(s)"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-given-names-input",name:"memberFirstName",readableName:"Member given name(s)",showValidationErrors:this.showValidationErrors,value:pn.selfManagedFundForm.memberFirstName,onChange:function(t){return e.updateFormField("memberFirstName",t.target.value.trim())}}))),r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Last name"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-last-name-input",name:"memberFamilyName",readableName:"Member last name",showValidationErrors:this.showValidationErrors,value:pn.selfManagedFundForm.memberFamilyName,onChange:function(t){return e.updateFormField("memberFamilyName",t.target.value.trim())}})))),r("h3",{class:"text-lg font-bold mt-6"},"Fund bank details"),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Account name"),r("div",{class:"mt-1"},r("input",{type:"text",required:true,class:t,name:"bankAccountName",minlength:"2",id:"bankAccountName",value:pn.selfManagedFundForm.bankAccountName,onChange:function(t){return e.updateFormField("bankAccountName",t.target.value.trim())}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account name"))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"BSB"),r("div",{class:"mt-1"},r("input",{type:"text",required:true,class:t,name:"bsb",id:"bsb",minlength:"6",maxlength:"7",inputmode:"numeric",onKeyUp:function(t){return e.updateCurrentBank(t)},pattern:this.bsbRegex.source,value:pn.selfManagedFundForm.bsb}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid BSB"))),J(this.currentBank)&&r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Bank name"),r("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm"},this.currentBank.value)),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Account number"),r("div",{class:"mt-1"},r("input",{type:"text",required:true,class:t,name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,inputmode:"numeric",value:pn.selfManagedFundForm.bankAccountNumber,onKeyUp:function(t){return e.updateCurrentBankAccountNumber(t)},onChange:function(t){return e.updateFormField("bankAccountNumber",t.target.value.trim())}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account number"))))};e.prototype.updateFormField=function(e,t){var n;this.formChanged.emit((n={},n[e]=t,n))};e.prototype.isAbnUsedForRegulatedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,wn.validateAbnForSMSF(e)];case 1:return[2,!t.sent()]}}))}))};e.prototype.renderAbnValidationError=function(){if(this.isAbnTouched||this.showValidationErrors){switch(this.abnValidationStatus){case Wl.Invalid:return r("div",{class:"mt-2 text-sm text-red-600"},"Enter a valid fund ABN (digits only)");case Wl.AbnIsUsedForRegulatedFund:return r("div",{class:"mt-2 text-sm text-red-600"},"The supplied ABN is for a regulated fund");case Wl.Valid:return[]}}return[]};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.updateCurrentBank=function(e){var t=this.filterDigits(e.target.value);var n=t.substring(0,2);var r=t.substring(0,3);var i=ii[n];var a=ii[r];if(i)this.currentBank=Y(i);if(a)this.currentBank=Y(a);if(t===""||t.length>6)this.currentBank=X;this.updateFormField("bsb",t)};e.prototype.updateCurrentBankAccountNumber=function(e){var t=this.filterDigits(e.target.value);this.updateFormField("bankAccountNumber",t)};e.prototype.updateAddressErrorMessage=function(){var e=X;if(K(e)&&!this.addressLine1Element.checkValidity()){e=Y("Enter a valid address line 1")}if(K(e)&&!this.cityElement.checkValidity()){e=Y("Enter a valid city/suburb")}if(K(e)&&!this.postcodeElement.checkValidity()){e=Y("Enter a valid post code")}if(K(e)&&!this.stateElement.checkValidity()){e=Y("Select a state")}this.addressErrorMessage=e};return e}());var Jl=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return J(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return J(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(K(e)){throw Error("Failed to get iframe interop information: no data in store")}if(!this.isIframeInteropEnabled()){throw Error("Failed to get iframe interop information: iframe mode is disabled")}return e.value};return t}(N);var Kl=new Jl(Ol);var Xl=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ct().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var Yl=new Xl;var $l=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin==="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.skipConsolidation=function(){return Kl.isReactNativeInteropEnabled()?"true":"false"};this.skipInsurance=function(){return Kl.isReactNativeInteropEnabled()?"true":"false"};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.slateJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"join.slatesuper.com.au/confirm"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";var r=n+"/slate-redirect.html";var i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:r,cancelRedirectUrl:r,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});if(this.includeJwt()){i.authToken=Rt.jwt}var a=function(n){var r=n.data,i=n.origin;if(!r){return}if(r.sender==="slate-redirect"){window.removeEventListener("message",a);switch(r.type){case"success":if(r.memberNumber){rn.navigateInternallyToStandardChoice({history:t,fundName:Hn.name,fundDetails:{type:"promoted",fundName:Hn.name,fundUsi:zn,memberNumber:r.memberNumber,promotedFundId:Hn.fundId},handleSubmitFn:function(e){return Yl.submitSlateChoiceAsync(Object.assign({memberNumber:r.memberNumber,memberFirstName:r.memberFirstName,memberFamilyName:r.memberFamilyName,standardChoiceFormSignature:e,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},Rt.promotedFundsConfig))},promotedFundId:Hn.fundId});break}default:rn.navigateInternally(t,en.ChoicePage);break}qt();return}if(r.sender==="flare"&&i.endsWith("join.slatesuper.com.au")){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break}}};window.addEventListener("message",a);var o=e.contentDocument;o.open();var s=o.createElement("form");s.method="POST";s.target="_self";s.action=this.slateJoinAppUrl();var u;for(u in i){var l=i[u];if(l!==undefined){var c=document.createElement("input");c.type="hidden";c.name=u;c.value=l;s.append(c)}}o.appendChild(s);o.close();s.submit()};e.prototype.getSlateJoinMemberData=function(){var e,t;var n=Rt.superBuyer;var r=function(e){switch(e){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}};return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:r(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};e.prototype.includeJwt=function(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)};return e}();var Ql=new $l;var Zl=e("sss_slate_join_page",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;return r("sss-iframe-host",{build:function(t){return Ql.build(t,e.history)}})};return e}());var ec=e("sss_standard_choice_form",function(){function e(e){n(this,e);this.standardChoiceFormSignature="";this.isSubmitDisabled=true;this.eventTrackingService=Ht.Instance;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=this;return r(s,null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),r("div",{class:"sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8"},"Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-560"},r("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},this.renderLogo(),r("div",{class:"flex justify-between w-full"},r("div",null,r("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),r("div",{class:"text-sm mt-2"},Zt.fundName)),r("div",{class:"grid content-center ml-4"},r("sss-button",{testid:"change-fund-button",size:"xs",variant:"secondary",promiseFn:function(){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.trackChangeRequestedAsync()];case 1:t.sent();e=qe.isSome(Rt.state.superChoicePrefill)?en.ConsentPage:en.ChoicePage;rn.navigateInternally(this.history,e);return[2]}}))}))}},"Change")))),r("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},r("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),r("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:o("assets/icon-information-circle.svg")})),r("div",{class:"ml-2"},r("p",{class:"text-sm text-blue-800 leading-5"},"Applying your full name in the text field below is the same as applying your written signature and is legally binding.")))),r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"mt-3":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=!e.formElement.checkValidity()}},r("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),r("input",{"data-testid":"standard-choice-form-signature-input",type:"text",autocomplete:"off",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-focus w-full text-base sm:text-sm border-gray-300 rounded-md mt-1":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.formState==="validated"},required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:function(t){return e.standardChoiceFormSignature=t.target.value}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),r("div",{class:"mt-6"},r("sss-button",{testid:"confirm-and-continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Confirm and continue")))))))};e.prototype.renderLogo=function(){if(Zt.promotedFundId==undefined)return;var e=cr(Zt.promotedFundId);if(qe.isSome(e)){return r("div",{class:"pb-4 mb-4 border-b flex justify-center sm:pb-0 sm:mb-0 sm:border-b-0 sm:pr-8 sm:mr-8 sm:border-r sm:justify-start"},r("img",{class:"h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain",alt:Zt.fundName,src:e.value}))}};e.prototype.trackChangeRequestedAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e={promotedFundsShown:Rt.promotedFunds,defaultFundUsiSet:Q(Rt.defaultFundUsi)};t=Zt.fundDetails.type;switch(t){case"default":return[3,1];case"myOwnFund":return[3,3];case"smsf":return[3,5];case"promoted":return[3,7];case"promotedDefault":return[3,9];case"promotedDefaultWithJoin":return[3,11];case"null":return[3,13]}return[3,14];case 1:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({DefaultFund:Object.assign(Object.assign({},Zt.fundDetails),e)})];case 2:n.sent();return[3,14];case 3:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({MyOwnFund:Object.assign(Object.assign({},Zt.fundDetails),e)})];case 4:n.sent();return[3,14];case 5:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({Smsf:Object.assign(Object.assign({},Zt.fundDetails),e)})];case 6:n.sent();return[3,14];case 7:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedFund:Object.assign(Object.assign({},Zt.fundDetails),e)})];case 8:n.sent();return[3,14];case 9:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFund:Object.assign(Object.assign({},Zt.fundDetails),e)})];case 10:n.sent();return[3,14];case 11:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFundWithJoin:Object.assign(Object.assign({},Zt.fundDetails),e)})];case 12:n.sent();return[3,14];case 13:throw"standardChoiceFormState.fundDetails was not set";case 14:return[2]}}))}))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Zt.handleSubmitFn(this.standardChoiceFormSignature.trim())];case 1:e.sent();Rt.markSuperSelectionAsSubmitted();e.label=2;case 2:return[2]}}))}))};return e}());var tc=e("sss_success",function(){function e(e){n(this,e);this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},r("path",{d:"M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z"}))};return r(s,{class:"text-center"},r("div",{class:"flex justify-center"},r("div",{class:"relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},r(e,null)))),r("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),r("p",{class:"mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto"},"Your superannuation details have been updated successfully and will be submitted to your employer."),r("div",{class:"flex justify-center mt-8"},r("div",{class:"max-w-[200px] w-full"},r("sss-button",{testid:"continue-button",size:"xl",fillWidth:true,onClick:this.handleContinueButtonClick},r("span",null,"Continue")))))};e.prototype.handleContinueButtonClick=function(e){Rt.completeSuperSelectionFlow()};return e}());var nc=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostError=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){Ct().url("super-campaign/errors").post(e);return[2]}))}))};return e}();var rc=function(){function e(){}e.prototype.trackClickPromotedTileAsync=function(e){return Pt.clickPromotedTileAsync(e)};return e}();var ic=new rc;var ac={clean:function(e){return e.replace(/ /g,"")}};var oc=3e4;var sc=e("sss_super_campaign_host",function(){function e(e){var t=this;n(this,e);this.scriptImported=false;this.getEnvironmentTag=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":return"autodev";case"test-partner":return"test";case"partner":return"prod";case"sandbox-partner":return"sandbox";default:return"autodev"}};this.subscribeToSuperCampaignEvents=function(){for(var e in t.superCampaignEventHandlers){document.addEventListener(e,t.superCampaignEventHandlers[e])}};this.unSubscribeFromSuperCampaignEvents=function(){for(var e in t.superCampaignEventHandlers){document.removeEventListener(e,t.superCampaignEventHandlers[e])}};this.superCampaignLoaded=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];Rt.superCampaignComponentStatus=Dt.Loaded;clearTimeout(this.loadingTimeoutRef);return[4,Ht.Instance.TrackSuperCampaignActivationSucceededAsync({})];case 1:t.sent();t.label=2;case 2:return[2,Promise.resolve()]}}))}))};this.superCampaignLoadFailed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];return[4,this.activateFallbackMechanism({type:"SuperCampaignActivationFailed",reason:e.detail.reason||"Unknown"})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.superCampaignFailed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];return[4,this.activateFallbackMechanism({type:"SuperCampaignOperationFailed",reason:e.detail.reason||"Unknown"})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.chooseAnotherFundRequested=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];return[4,rn.navigateInternally(this.history,en.MyOwnFund)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.fundPanelShown=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];Rt.setSuperCampaignPromotedFundsShown(e.detail.shownFunds);return[4,Rt.viewSuperFundPanelAsync()];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.fundTileClicked=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n,r,i,a,o,s,u;return __generator(this,(function(l){switch(l.label){case 0:r=e.detail;if(!(r.sender=="super-campaign"))return[3,6];i=this.SuperCampaignState.PromotedFundIds;a=qe.toUndefined(Rt.defaultFundUsi);s=(o=Promise).all;if(!(r.fundType=="promoted-default"))return[3,2];return[4,Ht.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({fundUsi:(t=r.fundUsi)!==null&&t!==void 0?t:"",fundName:r.fundName,promotedFundId:r.fundId,promotedFundsShown:i,defaultFundUsiSet:a,superCampaignEnabled:true})];case 1:u=l.sent();return[3,4];case 2:return[4,Ht.Instance.TrackPromotedSuperFundDetailViewedAsync({fundUsi:(n=r.fundUsi)!==null&&n!==void 0?n:undefined,fundName:r.fundName,promotedFundId:r.fundId,promotedFundsShown:i,defaultFundUsiSet:a,superCampaignEnabled:true})];case 3:u=l.sent();l.label=4;case 4:return[4,s.apply(o,[[u,ic.trackClickPromotedTileAsync(r.fundType=="promoted-default"?{promotedDefault:{fundId:r.fundId}}:{promoted:{fundId:r.fundId}})]])];case 5:l.sent();l.label=6;case 6:return[2]}}))}))};this.fundPdsViewed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];return[4,Ht.Instance.TrackSuperFundPdsViewedAsync({fundName:e.detail.fundName,fundUsi:e.detail.fundUsi,pageName:e.detail.pageName,superCampaignEnabled:true})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.disclaimerViewed=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];return[4,Ht.Instance.TrackSuperFundDisclaimerViewedAsync(Ut.create(true))];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.disclaimerAccepted=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,2];return[4,Ht.Instance.TrackSuperFundDisclaimerAcceptedAsync({superCampaignEnabled:true})];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.promotedFundJoined=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:if(!(e.detail.sender=="super-campaign"))return[3,6];t=e.detail.fundJoinInfo;n=t.fundType;switch(n){case"Promoted":return[3,1];case"DefinedBenefits":return[3,2];case"PromotedDefault":return[3,4];case"PromotedDefaultWithJoin":return[3,5]}return[3,6];case 1:this.handlePromotedFundJoined(t);return[3,6];case 2:return[4,this.handleDefinedBenefitsJoined(t)];case 3:r.sent();return[3,6];case 4:this.handlePromotedDefaultFundJoined(t);return[3,6];case 5:this.handlePromotedDefaultFundWithJoinWasJoined(t);return[3,6];case 6:return[2,Promise.resolve()]}}))}))};this.getFundName=function(e){return je.pipe(sr(e),qe.getOrElse((function(){return""})))};this.stringIsNullOrEmtpty=function(e){return!(typeof e==="string"&&e.trim().length>0)};this.handlePromotedFundJoined=function(e){if(t.stringIsNullOrEmtpty(e.memberNumber)||t.stringIsNullOrEmtpty(e.usi)){Bl.trackErrorTrace("Super Campaign did not return (Promoted) memberNumber and/or usi");return}var n=ac.clean(e.usi);var r=t.getFundName(e.fundId);var i=qe.toUndefined(Rt.defaultFundUsi);rn.navigateInternallyToStandardChoice({history:t.history,fundName:r,promotedFundId:e.fundId,fundDetails:{type:"promoted",fundName:r,fundUsi:n,memberNumber:e.memberNumber,promotedFundId:e.fundId},handleSubmitFn:function(r){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.fundId==Hn.fundId))return[3,2];return[4,Yl.submitSlateChoiceAsync(Object.assign({memberNumber:e.memberNumber,memberFirstName:e.memberFirstName,memberFamilyName:e.memberFamilyName,standardChoiceFormSignature:r,defaultFundUsiSet:i},this.PromotedFundsConfig))];case 1:t.sent();return[3,4];case 2:return[4,ui.submitChoiceAsync(Object.assign({fundId:e.fundId,memberNumber:e.memberNumber,memberFirstName:e.memberFirstName,memberFamilyName:e.memberFamilyName,usi:n,standardChoiceFormSignature:r,defaultFundUsiSet:i},this.PromotedFundsConfig))];case 3:t.sent();t.label=4;case 4:return[2]}}))}))}})};this.handlePromotedDefaultFundJoined=function(e){if(t.stringIsNullOrEmtpty(e.usi)){Bl.trackErrorTrace("Super Campaign did not return (PromotedDefault) usi");return}var n=ac.clean(e.usi);var r=t.getFundName(e.fundId);rn.navigateInternallyToStandardChoice({history:t.history,fundName:r,promotedFundId:e.fundId,fundDetails:{type:"promotedDefault",fundName:r,fundUsi:n,promotedFundId:e.fundId},handleSubmitFn:function(r){return ui.submitDefaultChoiceAsync(Object.assign({fundId:e.fundId,usi:n,standardChoiceFormSignature:r,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},t.PromotedFundsConfig))}})};this.handlePromotedDefaultFundWithJoinWasJoined=function(e){if(t.stringIsNullOrEmtpty(e.memberNumber)||t.stringIsNullOrEmtpty(e.usi)){Bl.trackErrorTrace("Super Campaign did not return (PromotedDefaultWithJoin) memberNumber and/or usi");return}var n=ac.clean(e.usi);var r=t.getFundName(e.fundId);rn.navigateInternallyToStandardChoice({history:t.history,fundName:r,promotedFundId:e.fundId,fundDetails:{type:"promotedDefaultWithJoin",fundName:r,fundUsi:n,memberNumber:e.memberNumber,promotedFundId:e.fundId},handleSubmitFn:function(r){return ui.submitDefaultChoiceWithJoinAsync(Object.assign({fundId:e.fundId,memberNumber:e.memberNumber,memberFirstName:e.memberFirstName,memberFamilyName:e.memberFamilyName,usi:n,standardChoiceFormSignature:r,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi)},t.PromotedFundsConfig))}})};this.handleDefinedBenefitsJoined=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(this.stringIsNullOrEmtpty(e.memberNumber)||this.stringIsNullOrEmtpty(e.usi)){Bl.trackErrorTrace("Super Campaign did not return (DefinedBenefits) memberNumber and/or usi");return[2]}return[4,wn.submitDefinedBenefitsChoiceAsync(Object.assign({fundUsi:ac.clean(e.usi),fundId:e.fundId,memberNumber:e.memberNumber,memberElectContributionRatePreTax:e.memberElectContributionRatePreTax,memberElectContributionRatePostTax:e.memberElectContributionRatePostTax},this.PromotedFundsConfig))];case 1:t.sent();Rt.markSuperSelectionAsSubmitted();return[2]}}))}))};this.superCampaignEventHandlers={"choose-another-fund-requested":this.chooseAnotherFundRequested.bind(this),"fund-panel-shown":this.fundPanelShown.bind(this),"fund-tile-clicked":this.fundTileClicked.bind(this),"fund-pds-viewed":this.fundPdsViewed.bind(this),"disclaimer-viewed":this.disclaimerViewed.bind(this),"disclaimer-accepted":this.disclaimerAccepted.bind(this),"promoted-fund-joined":this.promotedFundJoined.bind(this),"super-campaign-loaded":this.superCampaignLoaded.bind(this),"super-campaign-load-failed":this.superCampaignLoadFailed.bind(this),"super-campaign-failed":this.superCampaignFailed.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:if(!(Rt.state.superCampaignComponentStatus===Dt.NotWorking))return[3,2];return[4,rn.navigateInternally(this.history,en.MyOwnFund)];case 1:r.sent();return[2];case 2:e=undefined;r.label=3;case 3:r.trys.push([3,8,,9]);if(!(qe.isSome(Rt.state.apiBaseUrl)&&qe.isSome(Rt.state.jwt)))return[3,6];this.backendUrl=this.getBaseUrl(Rt.state.apiBaseUrl.value);this.accessToken=Rt.state.jwt.value;this.unSubscribeFromSuperCampaignEvents();if(!(Rt.state.superCampaignComponentStatus===Dt.NotLoaded))return[3,5];e=this.createApolloSuperCampaignScriptUrl(this.getEnvironmentTag());return[4,t.import(e)];case 4:r.sent();this.loadingTimeoutRef=setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this),oc);r.label=5;case 5:this.subscribeToSuperCampaignEvents();this.scriptImported=true;Rt.superCampaignIsInView=true;return[3,7];case 6:throw Error("SuperCampaignHost pre-requisites not met.");case 7:return[3,9];case 8:n=r.sent();this.activateFallbackMechanism({type:"SuperCampaignActivationFailed",reason:"Problem in loading SuperCampaing script from:"+e+" Error: "+n});return[3,9];case 9:return[2]}}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperCampaignEvents();Rt.superCampaignIsInView=false};e.prototype.render=function(){return r("div",null,this.scriptImported?r("apollo-super-campaign",{"backend-url":this.backendUrl,"access-token":this.accessToken}):null)};e.prototype.activateFallbackMechanism=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(Rt.superCampaignComponentStatus!==Dt.NotWorking))return[3,3];Rt.superCampaignComponentStatus=Dt.NotWorking;return[4,nc.Instance.PostError(e)];case 1:t.sent();return[4,rn.navigateInternally(this.history,en.MyOwnFund)];case 2:t.sent();t.label=3;case 3:return[2]}}))}))};e.prototype.superCampaignLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(Rt.superCampaignComponentStatus!==Dt.Loaded){this.activateFallbackMechanism({type:"SuperCampaignActivationFailed",reason:"Activation timeout was triggered after:"+oc/1e3+" seconds"})}return[2]}))}))};e.prototype.createApolloSuperCampaignScriptUrl=function(e){return"https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@"+e+"/dist/apollo-super-campaign.js"};e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};Object.defineProperty(e.prototype,"SuperCampaignState",{get:function(){if(Rt.superCampaignState!=undefined)return Rt.superCampaignState;throw new Error("Super campaign state has not been initialized")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"PromotedFundsConfig",{get:function(){return Rt.promotedFundsConfig},enumerable:false,configurable:true});return e}());re(sc);var uc=e("sss_super_choice_item_bottom",function(){function e(e){n(this,e);this.joinFundClicked=u(this,"joinFundClicked",7)}e.prototype.render=function(){var e=this;return r(s,null,r("div",{class:"py-6 px-4 flex flex-col justify-between h-full"},r("div",null,r("div",{class:{"md:max-w-[240px]":true,"lg:max-w-full":this.isMultiFund}},r("sss-button",{testid:"choose-this-fund-button",class:"uuid-button-continue",fillWidth:true,onClick:function(){return e.handleFundClick()}},"Choose this fund")),r("div",{class:"text-xs text-gray-500 mt-6 leading-4"},this.disclaimer)),this.abnInfo&&this.abn&&r("div",{class:"text-xs text-gray-500 mt-2"},r("p",null,"Issued by ",this.abnInfo,"."),r("p",null,"ABN: ",this.abn))))};e.prototype.handleFundClick=function(){return this.joinFundClicked.emit()};return e}());var lc=e("sss_super_choice_item_top",function(){function e(e){n(this,e)}e.prototype.render=function(){return r(s,null,r("div",{class:"px-4 pt-6"},r("div",{class:"text-right w-100 -mt-5 -mr-2"},this.extraBadge,this.isPromotedDefault&&r("span",{class:"text-xs bg-blue-100 text-blue-800 font-medium rounded-xl py-0.5 px-2.5 mr-1"},"Employer Default"),r("span",{class:"text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5"},"Featured")),r("div",{class:{"flex lg:block mt-2 md:mt-0":true,"lg:mt-4":this.isMultiFund}},r("img",{class:{"h-12 md:h-14 lg:h-16 object-contain w-[80px] md:w-[96px] lg:w-[140px] md:hidden lg:object-left":true,"lg:block":this.isMultiFund},alt:this.name,src:o("assets/"+this.logo)}),r("div",{class:"grid content-center"},r("p",{class:{"text-base md:text-lg font-bold ml-4 md:ml-0 md:mb-0":true,"lg:mt-4":this.isMultiFund}},this.name))),r("div",{class:"mt-4 sm:mt-2 text-sm space-y-2"},this.features.map((function(e){return r("div",{class:"flex"},r("div",{class:"h-5 w-5 flex-none mr-1.5"},r("img",{alt:"checked",src:o("assets/icon-check.svg")})),r("div",{class:"leading-5"},e))}))),this.featureSubText&&r("p",{class:"text-xs text-gray-500 italic mt-4 leading-4"},this.featureSubText),this.customContent))};return e}());var cc=e("sss_super_choice_page",function(){function e(e){n(this,e);this.promotedFunds=this.getPromotedFunds();this.eventTrackingService=Ht.Instance}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.promotedFunds.map((function(e){return e.fundId}));return[4,Rt.viewSuperFundPanelAsync(e)];case 1:t.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var t="https://my.gov.au";var n="www.my.gov.au";var i="https://www.apra.gov.au/register-of-superannuation-institutions";var a="www.apra.gov.au";var u=this.promotedFunds.length>1;return r(s,null,r("div",null,r("sss-header-section",{currentPage:"choice"}),r("div",{class:"mt-8 text-sm text-center leading-6"},r("p",{class:"leading-6"},"Not ready to join a new fund, or want to nominate another super fund?"),r("stencil-route-link",{url:en.MyOwnFund},r("span",{class:"inline-block text-primary-base font-medium mt-3"},"Skip Featured Funds ",r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"inline h-5 w-5 fill-primary-base group-hover:fill-white"},r("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"}))))),r("div",{class:"flex justify-center mt-8"},r("div",{class:{"lg:grid border-l border-t lg:border-b rounded-lg":true,"lg:grid-cols-1 max-w-720":this.promotedFunds.length===1,"lg:grid-cols-2 max-w-720":this.promotedFunds.length===2,"lg:grid-cols-3 max-w-960":this.promotedFunds.length===3}},this.promotedFunds.map((function(t,n){return r("div",{class:{"border-r":true,"rounded-tr-lg":n===0,"lg:rounded-tr-none":n===0&&n!==e.promotedFunds.length-1,"rounded-br-lg lg:rounded-br-none lg:rounded-tr-lg":n===e.promotedFunds.length-1}},r("div",{class:{"flex border-b lg:border-b-0":true,"rounded-b-lg":n===e.promotedFunds.length-1}},r("div",{class:{"hidden md:flex w-36 justify-center pt-6 pl-6":true,"lg:hidden":u}},r("img",{class:"h-16 object-contain w-full max-w-[96px]",alt:t.name,src:o("assets/"+t.logo)})),r("div",{class:"w-full"},r("sss-super-choice-item-top",{logo:t.logo,name:t.name,features:t.features,featureSubText:t.featureSubText,customContent:t.customContent,isMultiFund:u,isPromotedDefault:t.isPromotedDefault,extraBadge:t.extraBadge}),r("div",{class:{"lg:hidden":u}},r("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,isMultiFund:u,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}})))))})),this.promotedFunds.map((function(t,n){return r("div",{class:{"hidden border-r":true,"lg:block":u,"rounded-br-lg":n===e.promotedFunds.length-1}},r("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,isMultiFund:u,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}}))})))),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"pb-8 sm:pb-12 max-w-720 border-b"},r("h5",{class:"font-bold sm:text-lg"},"Or, choose another super fund:"),r("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 leading-6 text-sm sm:text-base"},r("li",null,"Select this option if you'd like to use your current account with another super fund, your self-managed super fund, or your employer's default fund."),r("li",null,"If you are unsure of your current super fund details, you can find out at"," ",r("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:rn.toExternalUrl(t)},n)),r("li",null,"A full list of super funds can be viewed at"," ",r("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:rn.toExternalUrl(i)},a))),r("stencil-route-link",{url:en.MyOwnFund},r("sss-button",{testid:"choose-another-super-fund-button",fillWidthOnMobile:true},"Choose another super fund")))),r("div",{class:"flex justify-center"},r("div",{class:"pt-8 sm:pt-12 max-w-720"},r("h5",{class:"font-semibold"},"IMPORTANT INFORMATION:"),r("ul",{class:"list-disc list-outside ml-6 mt-3 space-y-2 text-sm leading-6"},r("li",null,"The superannuation funds featured above are for your information only. The order, position and placement of content should not be interpreted as an opinion or recommendation (actual or implied) by Flare as to the suitability or appropriateness of any superannuation fund for you. In featuring these superannuation funds, Flare has not taken into account your objectives, financial situation or needs."),r("li",null,"This is not a comparison service. This page contains factual information only and does not constitute either general or personal advice about any financial products. We do not take into account your objectives, financial situation or needs. If you have questions or need help making a decision about your superannuation fund, you should speak to a licensed financial product advice provider."),r("li",null,"Flare, the technology partner you are accessing Flare via and your employer do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the featured superannuation funds. Flare does not endorse or accept responsibility for any of the content shown about any of the featured superannuation funds."),r("li",null,"You should consider the relevant superannuation fund’s PDS and TMD (if applicable) in deciding whether to apply to join the superannuation fund. Each of the superannuation funds featured above include a link to their PDS and TMD (if applicable) for your convenience. If you are considering joining another superannuation fund, you can typically find the PDS and TMD (if applicable) on that fund’s website."),r("li",null,"You should be aware that the trustees of featured superannuation funds pay fees to Flare and/or its associates. Some funds pay us a fee if you choose one of the featured funds, while others pay us to have their application form on our platform."))))))};e.prototype.getPromotedFunds=function(){var e=[];Rt.promotedFunds.forEach((function(t){var n=ir.find((function(e){return t===e.fundId}));if(n!==undefined){e.push(n)}}));return e};e.prototype.handleJoinSuperClickAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(i){switch(i.label){case 0:t=Rt.promotedFunds;n=lr(e.fundId);r=sr(e.fundId);return[4,Promise.all([e.isPromotedDefault==true?this.eventTrackingService.TrackPromotedDefaultSuperFundDetailViewedAsync({fundUsi:qe.isSome(n)?n.value:"",fundName:qe.isSome(r)?r.value:"",promotedFundId:e.fundId,promotedFundsShown:t,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi),superCampaignEnabled:false}):this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:qe.isSome(n)?n.value:undefined,fundName:qe.isSome(r)?r.value:"",promotedFundId:e.fundId,promotedFundsShown:t,defaultFundUsiSet:qe.toUndefined(Rt.defaultFundUsi),superCampaignEnabled:false}),ic.trackClickPromotedTileAsync(e.isPromotedDefault?{promotedDefault:{fundId:e.fundId}}:{promoted:{fundId:e.fundId}})])];case 1:i.sent();jt.fund={id:e.fundId,type:e.isPromotedDefault?"PromotedDefault":"Promoted"};return[2,rn.navigateInternally(this.history,e.route)]}}))}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());re(cc);var dc=e("sss_super_choice_page_wrapper",function(){function e(e){n(this,e)}e.prototype.render=function(){return Rt.state.superCampaignEnabled?r("sss-super-campaign-host",null):r("sss-super-choice-page",null)};return e}());re(dc);var fc="stencil-route.inactive{display:none}";var pc=e("stencil_route",function(){function e(e){n(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=Oe(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Le(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return r(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());A.injectProps(pc,["location","history","historyType","routeViewsUpdated"]);pc.style=fc;var mc=function(e,t,n){return n(e.confirm(t))};var hc=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var vc=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var gc=function(e){return e.userAgent.indexOf("Trident")===-1};var yc=function(e){return e.userAgent.indexOf("Firefox")===-1};var bc=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var wc=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var xc=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var Sc=e("stencil_route_link",function(){function e(e){n(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=Oe(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(hc(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(xc(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})}return r(this.custom,Object.assign({},t),r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());A.injectProps(Sc,["history","location","root"]);var Cc=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var _c=function(e,t,n){return Oe(e,{path:t,exact:n,strict:true})};var Fc=function(e){return e.tagName==="STENCIL-ROUTE"};var Ic=e("stencil_route_switch",function(){function e(e){n(this,e);this.group=Cc();this.subscribers=[];this.queue=f(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(Fc).map((function(n,r){var i=_c(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return r("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());A.injectProps(Ic,["location","routeViewsUpdated"]);var Nc=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var Ac=function(){var e;var t=[];var n=function(t){Nc(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var a=typeof e==="function"?e(t,n):e;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{Nc(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(a!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var a=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:a}};var Ec=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(wc(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var a=function(e){return n.has(e)};var o=function(t){r(t,[e.scrollX,e.scrollY])};if(wc(e,"sessionStorage")){var s=e.sessionStorage.getItem(t);n=s?new Map(JSON.parse(s)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:a,capture:o}};var kc="popstate";var Tc="hashchange";var Pc=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var a=e.navigator;var o=vc(e);var s=!gc(a);var u=Ec(e);var l=t.forceRefresh!=null?t.forceRefresh:false;var c=t.getUserConfirmation!=null?t.getUserConfirmation:mc;var d=t.keyLength!=null?t.keyLength:6;var f=t.basename?ye(be(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var m=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,a=i.search,o=i.hash;var s=r+a+o;Nc(!f||ve(s,f),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+s+'" to begin with "'+f+'".');if(f){s=ge(s,f)}return ke(s,n,t||Fe(d))};var h=Ac();var v=function(e){u.capture(M.location.key);Object.assign(M,e);M.location.scrollPosition=u.get(M.location.key);M.length=r.length;h.notifyListeners(M.location,M.action)};var g=function(e){if(!bc(a,e)){b(m(e.state))}};var y=function(){b(m(p()))};var b=function(e){if(n){n=false;v()}else{var t="POP";h.confirmTransitionTo(e,t,c,(function(n){if(n){v({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=M.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;A(a)}};var x=m(p());var S=[x.key];var C=0;var _=false;var F=function(e){return f+Se(e)};var I=function(e,t){Nc(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to push when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="PUSH";var a=ke(e,t,Fe(d),M.location);h.confirmTransitionTo(a,n,c,(function(e){if(!e){return}var t=F(a);var s=a.key,u=a.state;if(o){r.pushState({key:s,state:u},"",t);if(l){i.href=t}else{var c=S.indexOf(M.location.key);var d=S.slice(0,c===-1?0:c+1);d.push(a.key);S=d;v({action:n,location:a})}}else{Nc(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var N=function(e,t){Nc(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to replace when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="REPLACE";var a=ke(e,t,Fe(d),M.location);h.confirmTransitionTo(a,n,c,(function(e){if(!e){return}var t=F(a);var s=a.key,u=a.state;if(o){r.replaceState({key:s,state:u},"",t);if(l){i.replace(t)}else{var c=S.indexOf(M.location.key);if(c!==-1){S[c]=a.key}v({action:n,location:a})}}else{Nc(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var A=function(e){r.go(e)};var E=function(){return A(-1)};var k=function(){return A(1)};var T=function(t){C+=t;if(C===1){e.addEventListener(kc,g);if(s){e.addEventListener(Tc,y)}}else if(C===0){e.removeEventListener(kc,g);if(s){e.removeEventListener(Tc,y)}}};var P=function(e){if(e===void 0){e=""}var t=h.setPrompt(e);if(!_){T(1);_=true}return function(){if(_){_=false;T(-1)}return t()}};var D=function(e){var t=h.appendListener(e);T(1);return function(){T(-1);t()}};var M={length:r.length,action:"POP",location:x,createHref:F,push:I,replace:N,go:A,goBack:E,goForward:k,block:P,listen:D,win:e};return M};var Dc="hashchange";var Mc={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+we(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:we,decodePath:be},slash:{encodePath:be,decodePath:be}};var Oc=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var a=false;var o=e.location;var s=e.history;var u=yc(e.navigator);var l=t.keyLength!=null?t.keyLength:6;var c=t.getUserConfirmation,d=c===void 0?mc:c,f=t.hashType,p=f===void 0?"slash":f;var m=t.basename?ye(be(t.basename)):"";var h=Mc[p],v=h.encodePath,g=h.decodePath;var y=function(){var e=o.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return o.hash=e};var w=function(e){var t=o.href.indexOf("#");o.replace(o.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=g(y());Nc(!m||ve(e,m),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+m+'".');if(m){e=ge(e,m)}return ke(e,undefined,Fe(l))};var S=Ac();var C=function(e){Object.assign(V,e);V.length=s.length;S.notifyListeners(V.location,V.action)};var _=function(){var e=y();var t=v(e);if(e!==t){w(t)}else{var i=x();var a=V.location;if(!n&&Ee(a,i)){return}if(r===Se(i)){return}r=null;F(i)}};var F=function(e){if(n){n=false;C()}else{var t="POP";S.confirmTransitionTo(e,t,d,(function(n){if(n){C({action:t,location:e})}else{I(e)}}))}};var I=function(e){var t=V.location;var r=k.lastIndexOf(Se(t));var i=k.lastIndexOf(Se(e));if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;M(a)}};var N=y();var A=v(N);if(N!==A){w(A)}var E=x();var k=[Se(E)];var T=function(e){return"#"+v(m+Se(e))};var P=function(e,t){Nc(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=ke(e,undefined,Fe(l),V.location);S.confirmTransitionTo(i,n,d,(function(e){if(!e){return}var t=Se(i);var a=v(m+t);var o=y()!==a;if(o){r=t;b(a);var s=k.lastIndexOf(Se(V.location));var u=k.slice(0,s===-1?0:s+1);u.push(t);k=u;C({action:n,location:i})}else{Nc(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");C()}}))};var D=function(e,t){Nc(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=ke(e,undefined,Fe(l),V.location);S.confirmTransitionTo(i,n,d,(function(e){if(!e){return}var t=Se(i);var a=v(m+t);var o=y()!==a;if(o){r=t;w(a)}var s=k.indexOf(Se(V.location));if(s!==-1){k[s]=t}C({action:n,location:i})}))};var M=function(e){Nc(u,"Hash history go(n) causes a full page reload in this browser");s.go(e)};var O=function(){return M(-1)};var L=function(){return M(1)};var R=function(e,t){i+=t;if(i===1){e.addEventListener(Dc,_)}else if(i===0){e.removeEventListener(Dc,_)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!a){R(e,1);a=true}return function(){if(a){a=false;R(e,-1)}return n()}};var B=function(t){var n=S.appendListener(t);R(e,1);return function(){R(e,-1);n()}};var V={length:s.length,action:"POP",location:E,createHref:T,push:P,replace:D,go:M,goBack:O,goForward:L,block:U,listen:B,win:e};return V};var Lc=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var Rc={browser:Pc,hash:Oc};var Uc=e("stencil_router",function(){function e(e){var t=this;n(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(t.history&&e.scrollToId&&t.historyType==="browser"){var n=t.history.win.document.getElementById(e.scrollToId);if(n){return n.scrollIntoView()}}t.scrollTo(e.scrollTopOffset||t.scrollTopOffset)};this.isServer=f(this,"isServer");this.queue=f(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=Rc[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=Lc(t,e.root);e.location=t}));this.location=Lc(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return r(A.Provider,{state:e},r("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return d(this)},enumerable:false,configurable:true});return e}());var Bc="html{scroll-behavior:smooth}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-pack:center;justify-content:center}stencil-route:empty{display:none}input+.invalid-feedback{display:none}select+.invalid-feedback{display:none}.was-validated input:invalid+.invalid-feedback{display:block}.was-validated select:invalid+.invalid-feedback{display:block}";var Vc=e("super_selection_app",function(){function e(e){n(this,e);this.stepSubmitSuccess=u(this,"step-completion",7);this.successPageAcknowledged=u(this,"successPageAcknowledged",5);this.initialised=u(this,"initialised",7);this.isSelfHosted=false;this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=qe.fromNullable(this.accessToken);if(qe.isNone(e)){throw Error("jwt property is missing.")}Rt.state.jwt=e;t=qe.fromNullable(this.backendUrl);if(qe.isNone(t)){throw Error("apiBaseUrl property is missing.")}Rt.state.apiBaseUrl=qe.some(t.value.replace(/\/$/,"")+"/");n=qe.fromNullable(this.appBaseUrl);if(qe.isNone(n)){throw Error("appBaseUrl property is missing.")}Rt.state.appBaseUrl=qe.some(n.value.replace(/\/$/,""));Rt.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));Rt.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();Rt.state.hasSuperSelectionBeenSubmitted=false;if(r.isSelfHosted){rn.navigateInternally(r.history,en.Success)}}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:return[4,Rt.loadAppStateAsync()];case 1:i.sent();return[4,fr.GetExistingFundAsync()];case 2:e=i.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:Rt.accountIdOrDefault,partnerIdOrDefault:Rt.partnerIdOrDefault,profileId:Rt.profileId});$t.appReady();t=qe.fromNullable(this.ignoreExistingSelection);n=qe.isSome(e)&&e.value.type=="Defined Benefits Fund"&&(qe.isNone(Rt.isDefinedBenefitsEligible)||!Rt.isDefinedBenefitsEligible.value);r=qe.isSome(t)&&t.value||n;if(qe.isSome(Rt.state.superChoicePrefill)){rn.navigateInternally(this.history,en.Prefill)}else if(qe.isSome(e)&&e.value.valid!=="Inactive"&&!r){rn.navigateInternally(this.history,en.ExistingChoicePage)}else{rn.navigateInternally(this.history,en.ConsentPage)}return[2]}}))}))};e.prototype.authTokenChanged=function(e){Rt.state.jwt=qe.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return r(s,null,r("link",{rel:"stylesheet",href:o("apollo-super-selection.css"),media:"all"}),this.renderAppContent())};e.prototype.isFundJoinPage=function(){return window.location.pathname.includes(en.SlateJoin)||window.location.pathname.includes(en.PromotedFundJoinV1)||window.location.pathname.includes(en.PromotedFundJoinV2)};e.prototype.getFooterTextOverride=function(){return ur(jt.fund.id)};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return r("stencil-router",{root:this.routerBaseUrl(),class:"font-inter"},r("stencil-route-switch",{scrollTopOffset:0},this.isAppInitialised?r("div",{class:{"pt-28":true,"-mt-12 pb-6":!this.isFundJoinPage(),"-mt-28":this.isFundJoinPage()}},tn,r("sss-footer-section",{textOverride:this.getFooterTextOverride()})):r("div",{class:"flex justify-center py-20"},r("sss-loading-indicator",null))))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());re(Vc);Vc.style=Bc;var jc=[];var qc=function(){return jc.some((function(e){return e.activeTargets.length>0}))};var zc=function(){return jc.some((function(e){return e.skippedTargets.length>0}))};var Hc="ResizeObserver loop completed with undelivered notifications.";var Wc=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:Hc})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=Hc}window.dispatchEvent(e)};var Gc;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(Gc||(Gc={}));var Jc=function(e){return Object.freeze(e)};var Kc=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Jc(this)}return e}();var Xc=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Jc(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,a=e.bottom,o=e.left,s=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:a,left:o,width:s,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var Yc=function(e){return e instanceof SVGElement&&"getBBox"in e};var $c=function(e){if(Yc(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)};var Qc=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var Zc=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var ed=typeof window!=="undefined"?window:{};var td=new WeakMap;var nd=/auto|scroll/;var rd=/^tb|vertical/;var id=/msie|trident/i.test(ed.navigator&&ed.navigator.userAgent);var ad=function(e){return parseFloat(e||"0")};var od=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Kc((n?t:e)||0,(n?e:t)||0)};var sd=Jc({devicePixelContentBoxSize:od(),borderBoxSize:od(),contentBoxSize:od(),contentRect:new Xc(0,0,0,0)});var ud=function(e,t){if(t===void 0){t=false}if(td.has(e)&&!t){return td.get(e)}if($c(e)){td.set(e,sd);return sd}var n=getComputedStyle(e);var r=Yc(e)&&e.ownerSVGElement&&e.getBBox();var i=!id&&n.boxSizing==="border-box";var a=rd.test(n.writingMode||"");var o=!r&&nd.test(n.overflowY||"");var s=!r&&nd.test(n.overflowX||"");var u=r?0:ad(n.paddingTop);var l=r?0:ad(n.paddingRight);var c=r?0:ad(n.paddingBottom);var d=r?0:ad(n.paddingLeft);var f=r?0:ad(n.borderTopWidth);var p=r?0:ad(n.borderRightWidth);var m=r?0:ad(n.borderBottomWidth);var h=r?0:ad(n.borderLeftWidth);var v=d+l;var g=u+c;var y=h+p;var b=f+m;var w=!s?0:e.offsetHeight-b-e.clientHeight;var x=!o?0:e.offsetWidth-y-e.clientWidth;var S=i?v+y:0;var C=i?g+b:0;var _=r?r.width:ad(n.width)-S-x;var F=r?r.height:ad(n.height)-C-w;var I=_+v+x+y;var N=F+g+w+b;var A=Jc({devicePixelContentBoxSize:od(Math.round(_*devicePixelRatio),Math.round(F*devicePixelRatio),a),borderBoxSize:od(I,N,a),contentBoxSize:od(_,F,a),contentRect:new Xc(d,u,_,F)});td.set(e,A);return A};var ld=function(e,t,n){var r=ud(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Gc.DEVICE_PIXEL_CONTENT_BOX:return o;case Gc.BORDER_BOX:return i;default:return a}};var cd=function(){function e(e){var t=ud(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Jc([t.borderBoxSize]);this.contentBoxSize=Jc([t.contentBoxSize]);this.devicePixelContentBoxSize=Jc([t.devicePixelContentBoxSize])}return e}();var dd=function(e){if($c(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var fd=function(){var e=Infinity;var t=[];jc.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new cd(n.target);var a=dd(n.target);i.push(r);n.lastReportedSize=ld(n.target,n.observedBox);if(a<e){e=a}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var pd=function(e){jc.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(dd(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var md=function(){var e=0;pd(e);while(qc()){e=fd();pd(e)}if(zc()){Wc()}return e>0};var hd;var vd=[];var gd=function(){return vd.splice(0).forEach((function(e){return e()}))};var yd=function(e){if(!hd){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return gd()})).observe(n,r);hd=function(){n.textContent=""+(t?t--:t++)}}vd.push(e);hd()};var bd=function(e){yd((function t(){requestAnimationFrame(e)}))};var wd=0;var xd=function(){return!!wd};var Sd=250;var Cd={attributes:true,characterData:true,childList:true,subtree:true};var _d=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var Fd=function(e){if(e===void 0){e=0}return Date.now()+e};var Id=false;var Nd=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=Sd}if(Id){return}Id=true;var n=Fd(e);bd((function(){var r=false;try{r=md()}finally{Id=false;e=n-Fd();if(!xd()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,Cd)};document.body?t():ed.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();_d.forEach((function(t){return ed.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();_d.forEach((function(t){return ed.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var Ad=new Nd;var Ed=function(e){!wd&&e>0&&Ad.start();wd+=e;!wd&&Ad.stop()};var kd=function(e){return!Yc(e)&&!Zc(e)&&getComputedStyle(e).display==="inline"};var Td=function(){function e(e,t){this.target=e;this.observedBox=t||Gc.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=ld(this.target,this.observedBox,true);if(kd(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var Pd=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var Dd=new WeakMap;var Md=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var Od=function(){function e(){}e.connect=function(e,t){var n=new Pd(e,t);Dd.set(e,n)};e.observe=function(e,t,n){var r=Dd.get(e);var i=r.observationTargets.length===0;if(Md(r.observationTargets,t)<0){i&&jc.push(r);r.observationTargets.push(new Td(t,n&&n.box));Ed(1);Ad.schedule()}};e.unobserve=function(e,t){var n=Dd.get(e);var r=Md(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&jc.splice(jc.indexOf(n),1);n.observationTargets.splice(r,1);Ed(-1)}};e.disconnect=function(e){var t=this;var n=Dd.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var Ld=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}Od.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Qc(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}Od.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Qc(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}Od.unobserve(this,e)};e.prototype.disconnect=function(){Od.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var Rd=function(){function e(){var e=this;this._appRootUrl=new te((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,St(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();Ol.update({appConfiguration:qe.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=qe.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(qe.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var Ud=new Rd;var Bd=function(){function e(){this.ignoreExistingSelectionQueryParameter="ignoreExistingSelection"}e.prototype.init=function(e){var t=new URLSearchParams(e);var n=qe.fromNullable(t.get(this.ignoreExistingSelectionQueryParameter));var r=qe.fold((function(){return false}),(function(e){return e==="true"}))(n);Ol.update({ignoreExistingSelection:r})};return e}();var Vd=new Bd;var jd=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;n.sessionState$=n.select((function(e){return e.authenticationState}));n.jwt$=n.select((function(e){return e.jwt}));return n}Object.defineProperty(t.prototype,"sessionState",{get:function(){return this.getValue().authenticationState},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isUnauthorized",{get:function(){return this.getValue().authenticationState===Tl.Unauthorized||this.getValue().authenticationState===Tl.Error},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isAuthorized",{get:function(){return this.getValue().authenticationState===Tl.Authenticated},enumerable:false,configurable:true});return t}(N);var qd=new jd(Ol);function zd(e,t){if(window["gtag"]){window["gtag"]("event",e,t)}}var Hd=function(){function e(){this.authCodeQueryParameter="code"}e.prototype.authorizationCodeIsPresent=function(e){var t=this.getAuthorizationCodeFromRoute(e);return qe.isSome(t)};e.prototype.initFromRoute=function(e){var t=this.getAuthorizationCodeFromRoute(e);if(qe.isNone(t)){Ol.update({authenticationState:Tl.Error});throw Error('"'+this.authCodeQueryParameter+'" URL query parameter missing')}this.authCodeExchangeAsync(t.value)};e.prototype.authCodeExchangeAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:t=new URLSearchParams([["grant_type","authorization_code"],["client_id","apollo-super-selection-app"],["code",e],["redirect_uri",""+Ud.getAppHostUrl()]]);return[4,St(Rl.configuration.OidcAuthority+"/connect/token").headers({"Content-Type":"application/x-www-form-urlencoded"}).post(t.toString()).badRequest((function(){Ol.update({authenticationState:Tl.Error});throw new Error("Failed to authenticate.")})).json()];case 1:n=r.sent();Ol.update({jwt:qe.fromNullable(n.access_token),authenticationState:Tl.Authenticated});zd("oidc_sign_in",{});window.history.replaceState(null,"",Ud.getAppRootUrl());return[2]}}))}))};e.prototype.getAuthorizationCodeFromRoute=function(e){var t=new URLSearchParams(e);return qe.fromNullable(t.get(this.authCodeQueryParameter))};return e}();var Wd=new Hd;var Gd=function(){function e(){}e.completeSuperSelectionStep=function(){var e=Kl.getIframeInteropMode().successRedirectionUrl;if(qe.isSome(e)){window.top.location.href=e.value}else{$t.complete()}};e.initFromRoute=function(e){var t="success-redirection-url";var n=new URLSearchParams(e);var r=qe.fromNullable(n.get(t));var i={successRedirectionUrl:qe.none};if(qe.isSome(r)){try{var a=new URL(r.value);i.successRedirectionUrl=qe.some(a.toString())}catch(e){throw Error('"'+r.value+'" is not a valid URL')}}return i};return e}();var Jd=function(){function e(){}e.init=function(){var e=window["ReactNativeWebView"]!==undefined;if(!e){throw Error("React Native WebView messaging is not enabled. Please, refer to https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#the-windowreactnativewebviewpostmessage-method-and-onmessage-prop")}return new Pl};e.completeSuperSelectionStep=function(){this.postRNMessage()};e.postRNMessage=function(){var t={stepStatus:"completed"};e.getRnInterop().postMessage(JSON.stringify(t))};return e}();Jd.getRnInterop=function(){return window["ReactNativeWebView"]};var Kd=function(){function e(){this.interopModeQueryParameter="interop-mode"}e.prototype.completeSuperSelectionStep=function(){if(Kl.isIframeInteropEnabled()){Gd.completeSuperSelectionStep()}else if(Kl.isReactNativeInteropEnabled()){Jd.completeSuperSelectionStep()}else{throw Error("Unknown interop mode")}};e.prototype.init=function(e){var t=new URLSearchParams(e);var n=$(t.get(this.interopModeQueryParameter));if(J(n)&&n.value==="react-native"){Ol.update({reactNativeInterop:Y(Jd.init())});return}Ol.update({iframeInterop:Y(Gd.initFromRoute(e))})};return e}();var Xd=new Kd;function Yd(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:Vd.init(window.location.search);return[4,Ud.loadConfigurationAsync()];case 1:t.sent();Bl.init();ne();e=qd.isUnauthorized||Wd.authorizationCodeIsPresent(window.location.search);if(!e){return[2]}Xd.init(window.location.search);Wd.initFromRoute(window.location.search);return[2]}}))}))}var $d=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;n.ignoreExistingSelection$=n.select((function(e){return e.ignoreExistingSelection}));return n}Object.defineProperty(t.prototype,"ignoreExistingSelection",{get:function(){return this.getValue().ignoreExistingSelection},enumerable:false,configurable:true});return t}(N);var Qd=new $d(Ol);var Zd="html{scroll-behavior:smooth}.sss-app-container{--fl-color-primary:#fdbd00;--fl-color-primary-light:#fef3c7;--fl-color-primary-dark:#d97706;--fl-color-primary-disabled:#ffde7e;--fl-color-primary-hover:#e4aa00;--fl-color-primary-focus:#ca9700;--fl-color-primary-text:#3d3d3d;--fl-color-secondary:#e5e5e5;--fl-color-secondary-hover:#b3b3b3;--fl-color-secondary-focus:#b3b3b3}@media screen and (-webkit-min-device-pixel-ratio: 0){select,textarea,input{font-size:16px}}";var ef=e("super_selection_app_host",function(){function e(e){n(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,Yd()];case 1:t.sent();qd.sessionState$.subscribe((function(t){return e.sessionState=t}));qd.jwt$.subscribe((function(t){return e.jwt=t}));Rl.appConfiguration$.subscribe((function(t){return e.appConfiguration=t}));Qd.ignoreExistingSelection$.subscribe((function(t){return e.ignoreExistingSelection=t}));return[2]}}))}))};e.prototype.render=function(){var e=this;return r(s,null,r("link",{rel:"stylesheet",href:o("apollo-super-selection.css"),media:"all"}),r("div",{ref:function(t){return e.observeContentResize(t)}},qe.isNone(this.appConfiguration)?r("sss-loading-page",{class:"font-inter"}):this.renderAppContent()))};e.prototype.renderAppContent=function(){var e=this;return r("stencil-router",{root:Ud.getAppRootUrl(),class:"sss-app-container"},r("stencil-route-switch",{scrollTopOffset:0},r("stencil-route",{url:"/",routeRender:this.renderProtectedRoute((function(t){return r("super-selection-app",Object.assign({accessToken:qe.toUndefined(e.jwt),ignoreExistingSelection:e.ignoreExistingSelection,backendUrl:Rl.configuration.ApiBaseUrl,appBaseUrl:e.getAppBaseUrl(),onSuccessPageAcknowledged:e.handleSuccessPageAcknowledged,"onStep-completion":e.handleStepSubmitSuccess,onInitialised:e.handleAppInitialised,isSelfHosted:true},t))}))})))};e.prototype.getAppBaseUrl=function(){var e=window.location.pathname.split("app");return e[0]+"app/"};e.prototype.handleSuccessPageAcknowledged=function(){Xd.completeSuperSelectionStep()};e.prototype.handleStepSubmitSuccess=function(){$t.submitSuccess()};e.prototype.handleAppInitialised=function(e){Bl.addCustomProperties({"X-ACCOUNT-ID":e.detail.accountIdOrDefault,"X-PARTNER-ID":e.detail.partnerIdOrDefault,"X-PROFILE-ID":e.detail.profileId});Bl.getAppInsights().trackPageView();var t=document.getElementById("sss-external-loading-page-container");if(t){document.body.removeChild(t)}};e.prototype.observeContentResize=function(e){var t=window.ResizeObserver||Ld;new t((function(){$t.resize(e.offsetHeight,-1)})).observe(e)};e.prototype.renderProtectedRoute=function(e){switch(this.sessionState){case Tl.Authenticated:return e;case Tl.Unauthorized:return function(){return r("sss-loading-page",null)};case Tl.Error:return function(){return r("h1",null,"Authentication Error")};default:return function(){return r("h1",null,"Authentication Error")}}};return e}());ef.style=Zd}}}));