@flarehr/apollo-super-selection 4.58.46161 → 4.59.46171
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.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-8263f5b7.system.entry.js → p-8c9c7343.system.entry.js} +2 -2
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/apollo-super-selection/{p-26251f49.entry.js → p-ec0700f8.entry.js} +4 -4
- package/dist/lib/cjs/sss-button_41.cjs.entry.js +16 -9
- package/dist/lib/collection/components/super-campaign/super-campaign.js +1 -6
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +14 -3
- package/dist/lib/esm/sss-button_41.entry.js +16 -9
- package/dist/lib/esm-es5/sss-button_41.entry.js +2 -2
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -284,7 +284,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
const AppVersion = '4.
|
|
287
|
+
const AppVersion = '4.59.46171';
|
|
288
288
|
|
|
289
289
|
// -------------------------------------------------------------------------------------
|
|
290
290
|
// guards
|
|
@@ -3589,6 +3589,9 @@ class SuperSelectionAppService {
|
|
|
3589
3589
|
return this._state.appBaseUrl.value;
|
|
3590
3590
|
}
|
|
3591
3591
|
get promotedFunds() {
|
|
3592
|
+
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
3593
|
+
return this.superCampaignState.PromotedFundIds;
|
|
3594
|
+
}
|
|
3592
3595
|
if (this._state.campaignConnectEnabled && Option.isSome(this._state.campaignConnect)) {
|
|
3593
3596
|
return this._state.campaignConnect.value.promotedFunds.map((v) => v.fundId);
|
|
3594
3597
|
}
|
|
@@ -3598,6 +3601,9 @@ class SuperSelectionAppService {
|
|
|
3598
3601
|
return this._state.promotedFunds.value;
|
|
3599
3602
|
}
|
|
3600
3603
|
get promotedDefaultFundPosition() {
|
|
3604
|
+
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
3605
|
+
return Option.fromNullable(this.superCampaignState.DefaultFundPosition);
|
|
3606
|
+
}
|
|
3601
3607
|
if (this._state.campaignConnectEnabled && Option.isSome(this._state.campaignConnect)) {
|
|
3602
3608
|
const index = this._state.campaignConnect.value.promotedFunds.findIndex((v) => (v.type = 'promoted-default'));
|
|
3603
3609
|
if (index == -1) {
|
|
@@ -3613,9 +3619,11 @@ class SuperSelectionAppService {
|
|
|
3613
3619
|
return {
|
|
3614
3620
|
shownFunds: this.promotedFunds,
|
|
3615
3621
|
promotedDefaultFundPosition: Option.toUndefined(this.promotedDefaultFundPosition),
|
|
3616
|
-
promotedFundsConfigSource:
|
|
3617
|
-
? '
|
|
3618
|
-
:
|
|
3622
|
+
promotedFundsConfigSource: this.isUsingSuperCampaign
|
|
3623
|
+
? 'superCampaign'
|
|
3624
|
+
: Option.isSome(this._state.campaignConnect)
|
|
3625
|
+
? 'campaignConnect'
|
|
3626
|
+
: 'superSelection'
|
|
3619
3627
|
};
|
|
3620
3628
|
}
|
|
3621
3629
|
get definedBenefitsFundId() {
|
|
@@ -3685,6 +3693,9 @@ class SuperSelectionAppService {
|
|
|
3685
3693
|
get superCampaignState() {
|
|
3686
3694
|
return this._state.superCampaignState;
|
|
3687
3695
|
}
|
|
3696
|
+
get isUsingSuperCampaign() {
|
|
3697
|
+
return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
|
|
3698
|
+
}
|
|
3688
3699
|
}
|
|
3689
3700
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
3690
3701
|
|
|
@@ -17129,11 +17140,7 @@ const SuperCampaignHost = class {
|
|
|
17129
17140
|
throw new Error('Super campaign state has not been initialized');
|
|
17130
17141
|
}
|
|
17131
17142
|
get PromotedFundsConfig() {
|
|
17132
|
-
return
|
|
17133
|
-
shownFunds: this.SuperCampaignState.PromotedFundIds,
|
|
17134
|
-
promotedDefaultFundPosition: this.SuperCampaignState.DefaultFundPosition,
|
|
17135
|
-
promotedFundsConfigSource: 'superCampaign'
|
|
17136
|
-
};
|
|
17143
|
+
return superSelectionAppService.promotedFundsConfig;
|
|
17137
17144
|
}
|
|
17138
17145
|
};
|
|
17139
17146
|
injectHistory(SuperCampaignHost);
|
|
@@ -294,12 +294,7 @@ export class SuperCampaignHost {
|
|
|
294
294
|
throw new Error('Super campaign state has not been initialized');
|
|
295
295
|
}
|
|
296
296
|
get PromotedFundsConfig() {
|
|
297
|
-
superSelectionAppService.
|
|
298
|
-
return {
|
|
299
|
-
shownFunds: this.SuperCampaignState.PromotedFundIds,
|
|
300
|
-
promotedDefaultFundPosition: this.SuperCampaignState.DefaultFundPosition,
|
|
301
|
-
promotedFundsConfigSource: 'superCampaign'
|
|
302
|
-
};
|
|
297
|
+
return superSelectionAppService.promotedFundsConfig;
|
|
303
298
|
}
|
|
304
299
|
static get is() { return "sss-super-campaign-host"; }
|
|
305
300
|
static get properties() { return {
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js
CHANGED
|
@@ -38,6 +38,9 @@ export class SuperSelectionAppService {
|
|
|
38
38
|
return this._state.appBaseUrl.value;
|
|
39
39
|
}
|
|
40
40
|
get promotedFunds() {
|
|
41
|
+
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
42
|
+
return this.superCampaignState.PromotedFundIds;
|
|
43
|
+
}
|
|
41
44
|
if (this._state.campaignConnectEnabled && O.isSome(this._state.campaignConnect)) {
|
|
42
45
|
return this._state.campaignConnect.value.promotedFunds.map((v) => v.fundId);
|
|
43
46
|
}
|
|
@@ -47,6 +50,9 @@ export class SuperSelectionAppService {
|
|
|
47
50
|
return this._state.promotedFunds.value;
|
|
48
51
|
}
|
|
49
52
|
get promotedDefaultFundPosition() {
|
|
53
|
+
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
54
|
+
return O.fromNullable(this.superCampaignState.DefaultFundPosition);
|
|
55
|
+
}
|
|
50
56
|
if (this._state.campaignConnectEnabled && O.isSome(this._state.campaignConnect)) {
|
|
51
57
|
const index = this._state.campaignConnect.value.promotedFunds.findIndex((v) => (v.type = 'promoted-default'));
|
|
52
58
|
if (index == -1) {
|
|
@@ -62,9 +68,11 @@ export class SuperSelectionAppService {
|
|
|
62
68
|
return {
|
|
63
69
|
shownFunds: this.promotedFunds,
|
|
64
70
|
promotedDefaultFundPosition: O.toUndefined(this.promotedDefaultFundPosition),
|
|
65
|
-
promotedFundsConfigSource:
|
|
66
|
-
? '
|
|
67
|
-
:
|
|
71
|
+
promotedFundsConfigSource: this.isUsingSuperCampaign
|
|
72
|
+
? 'superCampaign'
|
|
73
|
+
: O.isSome(this._state.campaignConnect)
|
|
74
|
+
? 'campaignConnect'
|
|
75
|
+
: 'superSelection'
|
|
68
76
|
};
|
|
69
77
|
}
|
|
70
78
|
get definedBenefitsFundId() {
|
|
@@ -134,5 +142,8 @@ export class SuperSelectionAppService {
|
|
|
134
142
|
get superCampaignState() {
|
|
135
143
|
return this._state.superCampaignState;
|
|
136
144
|
}
|
|
145
|
+
get isUsingSuperCampaign() {
|
|
146
|
+
return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
|
|
147
|
+
}
|
|
137
148
|
}
|
|
138
149
|
export default new SuperSelectionAppService();
|
|
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
const AppVersion = '4.
|
|
263
|
+
const AppVersion = '4.59.46171';
|
|
264
264
|
|
|
265
265
|
// -------------------------------------------------------------------------------------
|
|
266
266
|
// guards
|
|
@@ -3565,6 +3565,9 @@ class SuperSelectionAppService {
|
|
|
3565
3565
|
return this._state.appBaseUrl.value;
|
|
3566
3566
|
}
|
|
3567
3567
|
get promotedFunds() {
|
|
3568
|
+
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
3569
|
+
return this.superCampaignState.PromotedFundIds;
|
|
3570
|
+
}
|
|
3568
3571
|
if (this._state.campaignConnectEnabled && Option.isSome(this._state.campaignConnect)) {
|
|
3569
3572
|
return this._state.campaignConnect.value.promotedFunds.map((v) => v.fundId);
|
|
3570
3573
|
}
|
|
@@ -3574,6 +3577,9 @@ class SuperSelectionAppService {
|
|
|
3574
3577
|
return this._state.promotedFunds.value;
|
|
3575
3578
|
}
|
|
3576
3579
|
get promotedDefaultFundPosition() {
|
|
3580
|
+
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
3581
|
+
return Option.fromNullable(this.superCampaignState.DefaultFundPosition);
|
|
3582
|
+
}
|
|
3577
3583
|
if (this._state.campaignConnectEnabled && Option.isSome(this._state.campaignConnect)) {
|
|
3578
3584
|
const index = this._state.campaignConnect.value.promotedFunds.findIndex((v) => (v.type = 'promoted-default'));
|
|
3579
3585
|
if (index == -1) {
|
|
@@ -3589,9 +3595,11 @@ class SuperSelectionAppService {
|
|
|
3589
3595
|
return {
|
|
3590
3596
|
shownFunds: this.promotedFunds,
|
|
3591
3597
|
promotedDefaultFundPosition: Option.toUndefined(this.promotedDefaultFundPosition),
|
|
3592
|
-
promotedFundsConfigSource:
|
|
3593
|
-
? '
|
|
3594
|
-
:
|
|
3598
|
+
promotedFundsConfigSource: this.isUsingSuperCampaign
|
|
3599
|
+
? 'superCampaign'
|
|
3600
|
+
: Option.isSome(this._state.campaignConnect)
|
|
3601
|
+
? 'campaignConnect'
|
|
3602
|
+
: 'superSelection'
|
|
3595
3603
|
};
|
|
3596
3604
|
}
|
|
3597
3605
|
get definedBenefitsFundId() {
|
|
@@ -3661,6 +3669,9 @@ class SuperSelectionAppService {
|
|
|
3661
3669
|
get superCampaignState() {
|
|
3662
3670
|
return this._state.superCampaignState;
|
|
3663
3671
|
}
|
|
3672
|
+
get isUsingSuperCampaign() {
|
|
3673
|
+
return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
|
|
3674
|
+
}
|
|
3664
3675
|
}
|
|
3665
3676
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
3666
3677
|
|
|
@@ -17105,11 +17116,7 @@ const SuperCampaignHost = class {
|
|
|
17105
17116
|
throw new Error('Super campaign state has not been initialized');
|
|
17106
17117
|
}
|
|
17107
17118
|
get PromotedFundsConfig() {
|
|
17108
|
-
return
|
|
17109
|
-
shownFunds: this.SuperCampaignState.PromotedFundIds,
|
|
17110
|
-
promotedDefaultFundPosition: this.SuperCampaignState.DefaultFundPosition,
|
|
17111
|
-
promotedFundsConfigSource: 'superCampaign'
|
|
17112
|
-
};
|
|
17119
|
+
return superSelectionAppService.promotedFundsConfig;
|
|
17113
17120
|
}
|
|
17114
17121
|
};
|
|
17115
17122
|
injectHistory(SuperCampaignHost);
|