@flarehr/apollo-super-selection 3.51.59881 → 3.54.61365

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 (162) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -0
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.js +1 -1
  4. package/dist/lib/apollo-super-selection/assets/icon-check.svg +3 -0
  5. package/dist/lib/apollo-super-selection/assets/icon-exclamation.svg +3 -0
  6. package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +3 -0
  7. package/dist/lib/apollo-super-selection/p-03373b03.system.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-14885f78.system.js +15 -0
  9. package/dist/lib/apollo-super-selection/{p-381262c1.system.js → p-15f0e5eb.system.js} +1 -1
  10. package/dist/lib/apollo-super-selection/p-29c11183.js +15 -0
  11. package/dist/lib/apollo-super-selection/p-37369ee1.system.entry.js +69 -0
  12. package/dist/lib/apollo-super-selection/p-52c08b79.entry.js +14 -0
  13. package/dist/lib/apollo-super-selection/p-86e3e03f.js +1 -0
  14. package/dist/lib/cjs/apollo-super-selection.cjs.js +3 -4
  15. package/dist/lib/cjs/{app-globals-45007120.js → app-globals-b1125d8c.js} +1 -1
  16. package/dist/lib/cjs/{datorama-akita-7f4b082a.js → datorama-akita-6c9cb8fb.js} +1005 -68
  17. package/dist/lib/cjs/loader.cjs.js +3 -4
  18. package/dist/lib/cjs/{fl-button_31.cjs.entry.js → sss-button_28.cjs.entry.js} +2096 -2162
  19. package/dist/lib/collection/apollo-super-selection.css +1 -0
  20. package/dist/lib/collection/collection-manifest.json +16 -28
  21. package/dist/lib/collection/components/app-host/loading-page.js +3 -3
  22. package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -4
  23. package/dist/lib/collection/components/app-host/super-selection-app-host.js +7 -19
  24. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +69 -1
  25. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +9 -3
  26. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +16 -21
  27. package/dist/lib/collection/components/super-selection-app/assets/icon-check.svg +3 -0
  28. package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +3 -0
  29. package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +3 -0
  30. package/dist/lib/collection/components/super-selection-app/consent/consent.js +57 -0
  31. package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +131 -0
  32. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +6 -18
  33. package/dist/lib/collection/components/super-selection-app/funds/constants.js +50 -0
  34. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +32 -16
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +10 -14
  36. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +36 -45
  37. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +40 -19
  38. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +45 -40
  39. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +104 -58
  40. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +53 -49
  41. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +6 -16
  42. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +1 -1
  43. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +1 -4
  44. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +10 -4
  45. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +13 -4
  46. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +2 -3
  47. package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +28 -0
  48. package/dist/lib/collection/components/super-selection-app/misc/button.js +146 -0
  49. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +7 -0
  50. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +359 -0
  51. package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +52 -0
  52. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +8 -4
  53. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +20 -0
  54. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +95 -0
  55. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +8 -0
  56. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +6 -4
  57. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +69 -34
  58. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +10 -0
  59. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.js +94 -0
  60. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +89 -0
  61. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +67 -90
  62. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +16 -4
  63. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +54 -11
  64. package/dist/lib/esm/apollo-super-selection.js +3 -4
  65. package/dist/lib/esm/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
  66. package/dist/lib/esm/{datorama-akita-79ce4385.js → datorama-akita-127aea91.js} +960 -28
  67. package/dist/lib/esm/loader.js +3 -4
  68. package/dist/lib/esm/{fl-button_31.entry.js → sss-button_28.entry.js} +2083 -2146
  69. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  70. package/dist/lib/esm-es5/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
  71. package/dist/lib/esm-es5/datorama-akita-127aea91.js +15 -0
  72. package/dist/lib/esm-es5/loader.js +1 -1
  73. package/dist/lib/esm-es5/sss-button_28.entry.js +69 -0
  74. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -3
  75. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +30 -0
  76. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -1
  77. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +19 -4
  78. package/dist/lib/types/components/super-selection-app/consent/consent.d.ts +9 -0
  79. package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +12 -0
  80. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -1
  81. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +3 -0
  82. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +1 -1
  83. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +4 -6
  84. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -2
  85. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +2 -1
  86. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +1 -0
  87. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +7 -0
  88. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +1 -0
  89. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -1
  90. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +0 -3
  91. package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +4 -0
  92. package/dist/lib/types/components/super-selection-app/misc/button.d.ts +11 -0
  93. package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +44 -0
  94. package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +5 -0
  95. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +1 -0
  96. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +4 -0
  97. package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +51 -0
  98. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +6 -0
  99. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +3 -2
  100. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +6 -3
  101. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +8 -0
  102. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.d.ts +9 -0
  103. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.d.ts +7 -0
  104. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -3
  105. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +2 -1
  106. package/dist/lib/types/components.d.ts +148 -97
  107. package/package.json +12 -7
  108. package/dist/lib/apollo-super-selection/assets/logo-qsuper-square.png +0 -0
  109. package/dist/lib/apollo-super-selection/assets/logo-qsuper.png +0 -0
  110. package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
  111. package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
  112. package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
  113. package/dist/lib/apollo-super-selection/p-5c1ee0f8.system.entry.js +0 -69
  114. package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +0 -1
  115. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
  116. package/dist/lib/apollo-super-selection/p-9317c049.entry.js +0 -14
  117. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +0 -1
  118. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
  119. package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +0 -1
  120. package/dist/lib/cjs/delay-81aff2f1.js +0 -955
  121. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
  122. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
  123. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +0 -23
  124. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +0 -62
  125. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -10
  126. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
  127. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  128. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
  129. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
  130. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
  131. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
  132. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -50
  133. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
  134. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper-square.png +0 -0
  135. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper.png +0 -0
  136. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
  137. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
  138. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -296
  139. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -70
  140. package/dist/lib/esm/delay-c0555599.js +0 -935
  141. package/dist/lib/esm/fl-style-guide.entry.js +0 -86
  142. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
  143. package/dist/lib/esm-es5/delay-c0555599.js +0 -1
  144. package/dist/lib/esm-es5/fl-button_31.entry.js +0 -69
  145. package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
  146. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  147. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  148. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  149. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  150. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  151. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  152. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +0 -8
  153. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
  154. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
  155. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
  156. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
  157. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
  158. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
  159. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
  160. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
  161. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
  162. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -22
@@ -5,21 +5,52 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { ButtonVariant } from "./components/super-selection-app/misc/button";
8
9
  import { LocationSegments, RouterHistory } from "@stencil/router";
10
+ import { SelectInputOption } from "./components/super-selection-app/misc/dropdown-async";
9
11
  import { MyOwnFundFormState } from "./components/super-selection-app/funds/custom-fund/custom-fund.store";
10
12
  import { SelfManagedFundForm } from "./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form";
11
- import { StandardChoiceInput } from "./components/super-selection-app/standard-choice/api/standard-choice.model";
12
13
  import { VNode } from "./stencil-public-runtime";
13
14
  import { InitialisedWith } from "./components/super-selection-app/super-selection-app";
14
15
  export namespace Components {
16
+ interface SssButton {
17
+ "disabled": boolean;
18
+ "fillWidth": boolean;
19
+ "fillWidthOnMobile": boolean;
20
+ "promiseFn"?: () => Promise<unknown>;
21
+ "variant": ButtonVariant;
22
+ }
23
+ interface SssConsentPage {
24
+ "history": RouterHistory;
25
+ }
15
26
  interface SssCustomFund {
16
27
  "history": RouterHistory;
17
28
  }
18
29
  interface SssDefaultFund {
19
30
  "history": RouterHistory;
20
31
  }
32
+ interface SssDropdownAsync {
33
+ "disabled": boolean;
34
+ "minSearchStringLength": number;
35
+ "placeholder"?: string;
36
+ "required": boolean;
37
+ "requiredValidationMessage"?: string;
38
+ "searchFunction"?: (query: string) => Promise<SelectInputOption<unknown>[]>;
39
+ "showValidationErrors": boolean;
40
+ "value"?: SelectInputOption<unknown>;
41
+ }
42
+ interface SssExistingChoicePage {
43
+ "history": RouterHistory;
44
+ }
21
45
  interface SssFooterSection {
22
46
  }
47
+ interface SssHeaderSection {
48
+ "currentPage": 'choice' | 'own-fund';
49
+ }
50
+ interface SssLoadingIndicator {
51
+ "size": number;
52
+ "theme": 'primary' | 'light';
53
+ }
23
54
  interface SssLoadingPage {
24
55
  }
25
56
  interface SssMyOwnFund {
@@ -27,53 +58,38 @@ export namespace Components {
27
58
  }
28
59
  interface SssMyOwnFundInputs {
29
60
  "myOwnFundForm": MyOwnFundFormState;
30
- }
31
- interface SssNotificationsSection {
61
+ "showValidationErrors": boolean;
32
62
  }
33
63
  interface SssPromotedFundJoinPage {
34
64
  "history": RouterHistory;
35
65
  }
36
- interface SssPromotedFundStandardChoicePage {
37
- "history": RouterHistory;
38
- }
39
- interface SssSelectedSuperChoiceSection {
40
- "fundName": string;
41
- "fundType": string;
42
- }
43
66
  interface SssSelfManagedFund {
44
67
  "history": RouterHistory;
45
68
  }
46
69
  interface SssSelfManagedFundInputs {
47
70
  "fundForm": Partial<SelfManagedFundForm>;
71
+ "showValidationErrors": boolean;
48
72
  }
49
73
  interface SssSlateJoinPage {
50
74
  "history": RouterHistory;
51
75
  }
52
- interface SssSlateStandardChoicePage {
53
- "history": RouterHistory;
54
- }
55
- interface SssSlatesuperHeader {
56
- }
57
76
  interface SssSmsfNotSupportedDialog {
58
77
  }
59
78
  interface SssStandardChoiceForm {
79
+ "history": RouterHistory;
60
80
  }
61
81
  interface SssSuccess {
62
82
  }
63
- interface SssSuperChoiceItem {
83
+ interface SssSuperChoiceItemBottom {
64
84
  "abn"?: string;
65
85
  "abnInfo"?: string;
66
86
  "disclaimer": VNode;
87
+ }
88
+ interface SssSuperChoiceItemTop {
67
89
  "featureSubText"?: string;
68
90
  "features": string;
69
- "history": RouterHistory;
70
- "isSelected": boolean;
71
91
  "logo": string;
72
92
  "name": string;
73
- "pdsLink": string;
74
- "pdsLinkText"?: string;
75
- "subText"?: string;
76
- "usi"?: string;
77
93
  }
78
94
  interface SssSuperChoicePage {
79
95
  "history": RouterHistory;
@@ -83,12 +99,25 @@ export namespace Components {
83
99
  "appBaseUrl"?: string;
84
100
  "backendUrl"?: string;
85
101
  "history": RouterHistory;
102
+ "isSelfHosted": boolean;
86
103
  "location"?: LocationSegments;
87
104
  }
88
105
  interface SuperSelectionAppHost {
89
106
  }
90
107
  }
91
108
  declare global {
109
+ interface HTMLSssButtonElement extends Components.SssButton, HTMLStencilElement {
110
+ }
111
+ var HTMLSssButtonElement: {
112
+ prototype: HTMLSssButtonElement;
113
+ new (): HTMLSssButtonElement;
114
+ };
115
+ interface HTMLSssConsentPageElement extends Components.SssConsentPage, HTMLStencilElement {
116
+ }
117
+ var HTMLSssConsentPageElement: {
118
+ prototype: HTMLSssConsentPageElement;
119
+ new (): HTMLSssConsentPageElement;
120
+ };
92
121
  interface HTMLSssCustomFundElement extends Components.SssCustomFund, HTMLStencilElement {
93
122
  }
94
123
  var HTMLSssCustomFundElement: {
@@ -101,12 +130,36 @@ declare global {
101
130
  prototype: HTMLSssDefaultFundElement;
102
131
  new (): HTMLSssDefaultFundElement;
103
132
  };
133
+ interface HTMLSssDropdownAsyncElement extends Components.SssDropdownAsync, HTMLStencilElement {
134
+ }
135
+ var HTMLSssDropdownAsyncElement: {
136
+ prototype: HTMLSssDropdownAsyncElement;
137
+ new (): HTMLSssDropdownAsyncElement;
138
+ };
139
+ interface HTMLSssExistingChoicePageElement extends Components.SssExistingChoicePage, HTMLStencilElement {
140
+ }
141
+ var HTMLSssExistingChoicePageElement: {
142
+ prototype: HTMLSssExistingChoicePageElement;
143
+ new (): HTMLSssExistingChoicePageElement;
144
+ };
104
145
  interface HTMLSssFooterSectionElement extends Components.SssFooterSection, HTMLStencilElement {
105
146
  }
106
147
  var HTMLSssFooterSectionElement: {
107
148
  prototype: HTMLSssFooterSectionElement;
108
149
  new (): HTMLSssFooterSectionElement;
109
150
  };
151
+ interface HTMLSssHeaderSectionElement extends Components.SssHeaderSection, HTMLStencilElement {
152
+ }
153
+ var HTMLSssHeaderSectionElement: {
154
+ prototype: HTMLSssHeaderSectionElement;
155
+ new (): HTMLSssHeaderSectionElement;
156
+ };
157
+ interface HTMLSssLoadingIndicatorElement extends Components.SssLoadingIndicator, HTMLStencilElement {
158
+ }
159
+ var HTMLSssLoadingIndicatorElement: {
160
+ prototype: HTMLSssLoadingIndicatorElement;
161
+ new (): HTMLSssLoadingIndicatorElement;
162
+ };
110
163
  interface HTMLSssLoadingPageElement extends Components.SssLoadingPage, HTMLStencilElement {
111
164
  }
112
165
  var HTMLSssLoadingPageElement: {
@@ -125,30 +178,12 @@ declare global {
125
178
  prototype: HTMLSssMyOwnFundInputsElement;
126
179
  new (): HTMLSssMyOwnFundInputsElement;
127
180
  };
128
- interface HTMLSssNotificationsSectionElement extends Components.SssNotificationsSection, HTMLStencilElement {
129
- }
130
- var HTMLSssNotificationsSectionElement: {
131
- prototype: HTMLSssNotificationsSectionElement;
132
- new (): HTMLSssNotificationsSectionElement;
133
- };
134
181
  interface HTMLSssPromotedFundJoinPageElement extends Components.SssPromotedFundJoinPage, HTMLStencilElement {
135
182
  }
136
183
  var HTMLSssPromotedFundJoinPageElement: {
137
184
  prototype: HTMLSssPromotedFundJoinPageElement;
138
185
  new (): HTMLSssPromotedFundJoinPageElement;
139
186
  };
140
- interface HTMLSssPromotedFundStandardChoicePageElement extends Components.SssPromotedFundStandardChoicePage, HTMLStencilElement {
141
- }
142
- var HTMLSssPromotedFundStandardChoicePageElement: {
143
- prototype: HTMLSssPromotedFundStandardChoicePageElement;
144
- new (): HTMLSssPromotedFundStandardChoicePageElement;
145
- };
146
- interface HTMLSssSelectedSuperChoiceSectionElement extends Components.SssSelectedSuperChoiceSection, HTMLStencilElement {
147
- }
148
- var HTMLSssSelectedSuperChoiceSectionElement: {
149
- prototype: HTMLSssSelectedSuperChoiceSectionElement;
150
- new (): HTMLSssSelectedSuperChoiceSectionElement;
151
- };
152
187
  interface HTMLSssSelfManagedFundElement extends Components.SssSelfManagedFund, HTMLStencilElement {
153
188
  }
154
189
  var HTMLSssSelfManagedFundElement: {
@@ -167,18 +202,6 @@ declare global {
167
202
  prototype: HTMLSssSlateJoinPageElement;
168
203
  new (): HTMLSssSlateJoinPageElement;
169
204
  };
170
- interface HTMLSssSlateStandardChoicePageElement extends Components.SssSlateStandardChoicePage, HTMLStencilElement {
171
- }
172
- var HTMLSssSlateStandardChoicePageElement: {
173
- prototype: HTMLSssSlateStandardChoicePageElement;
174
- new (): HTMLSssSlateStandardChoicePageElement;
175
- };
176
- interface HTMLSssSlatesuperHeaderElement extends Components.SssSlatesuperHeader, HTMLStencilElement {
177
- }
178
- var HTMLSssSlatesuperHeaderElement: {
179
- prototype: HTMLSssSlatesuperHeaderElement;
180
- new (): HTMLSssSlatesuperHeaderElement;
181
- };
182
205
  interface HTMLSssSmsfNotSupportedDialogElement extends Components.SssSmsfNotSupportedDialog, HTMLStencilElement {
183
206
  }
184
207
  var HTMLSssSmsfNotSupportedDialogElement: {
@@ -197,11 +220,17 @@ declare global {
197
220
  prototype: HTMLSssSuccessElement;
198
221
  new (): HTMLSssSuccessElement;
199
222
  };
200
- interface HTMLSssSuperChoiceItemElement extends Components.SssSuperChoiceItem, HTMLStencilElement {
223
+ interface HTMLSssSuperChoiceItemBottomElement extends Components.SssSuperChoiceItemBottom, HTMLStencilElement {
224
+ }
225
+ var HTMLSssSuperChoiceItemBottomElement: {
226
+ prototype: HTMLSssSuperChoiceItemBottomElement;
227
+ new (): HTMLSssSuperChoiceItemBottomElement;
228
+ };
229
+ interface HTMLSssSuperChoiceItemTopElement extends Components.SssSuperChoiceItemTop, HTMLStencilElement {
201
230
  }
202
- var HTMLSssSuperChoiceItemElement: {
203
- prototype: HTMLSssSuperChoiceItemElement;
204
- new (): HTMLSssSuperChoiceItemElement;
231
+ var HTMLSssSuperChoiceItemTopElement: {
232
+ prototype: HTMLSssSuperChoiceItemTopElement;
233
+ new (): HTMLSssSuperChoiceItemTopElement;
205
234
  };
206
235
  interface HTMLSssSuperChoicePageElement extends Components.SssSuperChoicePage, HTMLStencilElement {
207
236
  }
@@ -222,39 +251,72 @@ declare global {
222
251
  new (): HTMLSuperSelectionAppHostElement;
223
252
  };
224
253
  interface HTMLElementTagNameMap {
254
+ "sss-button": HTMLSssButtonElement;
255
+ "sss-consent-page": HTMLSssConsentPageElement;
225
256
  "sss-custom-fund": HTMLSssCustomFundElement;
226
257
  "sss-default-fund": HTMLSssDefaultFundElement;
258
+ "sss-dropdown-async": HTMLSssDropdownAsyncElement;
259
+ "sss-existing-choice-page": HTMLSssExistingChoicePageElement;
227
260
  "sss-footer-section": HTMLSssFooterSectionElement;
261
+ "sss-header-section": HTMLSssHeaderSectionElement;
262
+ "sss-loading-indicator": HTMLSssLoadingIndicatorElement;
228
263
  "sss-loading-page": HTMLSssLoadingPageElement;
229
264
  "sss-my-own-fund": HTMLSssMyOwnFundElement;
230
265
  "sss-my-own-fund-inputs": HTMLSssMyOwnFundInputsElement;
231
- "sss-notifications-section": HTMLSssNotificationsSectionElement;
232
266
  "sss-promoted-fund-join-page": HTMLSssPromotedFundJoinPageElement;
233
- "sss-promoted-fund-standard-choice-page": HTMLSssPromotedFundStandardChoicePageElement;
234
- "sss-selected-super-choice-section": HTMLSssSelectedSuperChoiceSectionElement;
235
267
  "sss-self-managed-fund": HTMLSssSelfManagedFundElement;
236
268
  "sss-self-managed-fund-inputs": HTMLSssSelfManagedFundInputsElement;
237
269
  "sss-slate-join-page": HTMLSssSlateJoinPageElement;
238
- "sss-slate-standard-choice-page": HTMLSssSlateStandardChoicePageElement;
239
- "sss-slatesuper-header": HTMLSssSlatesuperHeaderElement;
240
270
  "sss-smsf-not-supported-dialog": HTMLSssSmsfNotSupportedDialogElement;
241
271
  "sss-standard-choice-form": HTMLSssStandardChoiceFormElement;
242
272
  "sss-success": HTMLSssSuccessElement;
243
- "sss-super-choice-item": HTMLSssSuperChoiceItemElement;
273
+ "sss-super-choice-item-bottom": HTMLSssSuperChoiceItemBottomElement;
274
+ "sss-super-choice-item-top": HTMLSssSuperChoiceItemTopElement;
244
275
  "sss-super-choice-page": HTMLSssSuperChoicePageElement;
245
276
  "super-selection-app": HTMLSuperSelectionAppElement;
246
277
  "super-selection-app-host": HTMLSuperSelectionAppHostElement;
247
278
  }
248
279
  }
249
280
  declare namespace LocalJSX {
281
+ interface SssButton {
282
+ "disabled"?: boolean;
283
+ "fillWidth"?: boolean;
284
+ "fillWidthOnMobile"?: boolean;
285
+ "promiseFn"?: () => Promise<unknown>;
286
+ "variant"?: ButtonVariant;
287
+ }
288
+ interface SssConsentPage {
289
+ "history"?: RouterHistory;
290
+ }
250
291
  interface SssCustomFund {
251
292
  "history"?: RouterHistory;
252
293
  }
253
294
  interface SssDefaultFund {
254
295
  "history"?: RouterHistory;
255
296
  }
297
+ interface SssDropdownAsync {
298
+ "disabled"?: boolean;
299
+ "minSearchStringLength"?: number;
300
+ "onValueChanged"?: (event: CustomEvent<SelectInputOption<unknown>>) => void;
301
+ "placeholder"?: string;
302
+ "required"?: boolean;
303
+ "requiredValidationMessage"?: string;
304
+ "searchFunction"?: (query: string) => Promise<SelectInputOption<unknown>[]>;
305
+ "showValidationErrors"?: boolean;
306
+ "value"?: SelectInputOption<unknown>;
307
+ }
308
+ interface SssExistingChoicePage {
309
+ "history"?: RouterHistory;
310
+ }
256
311
  interface SssFooterSection {
257
312
  }
313
+ interface SssHeaderSection {
314
+ "currentPage"?: 'choice' | 'own-fund';
315
+ }
316
+ interface SssLoadingIndicator {
317
+ "size"?: number;
318
+ "theme"?: 'primary' | 'light';
319
+ }
258
320
  interface SssLoadingPage {
259
321
  }
260
322
  interface SssMyOwnFund {
@@ -263,57 +325,41 @@ declare namespace LocalJSX {
263
325
  interface SssMyOwnFundInputs {
264
326
  "myOwnFundForm"?: MyOwnFundFormState;
265
327
  "onFormChanged"?: (event: CustomEvent<Partial<MyOwnFundFormState>>) => void;
266
- }
267
- interface SssNotificationsSection {
328
+ "showValidationErrors"?: boolean;
268
329
  }
269
330
  interface SssPromotedFundJoinPage {
270
331
  "history"?: RouterHistory;
271
332
  }
272
- interface SssPromotedFundStandardChoicePage {
273
- "history"?: RouterHistory;
274
- }
275
- interface SssSelectedSuperChoiceSection {
276
- "fundName"?: string;
277
- "fundType"?: string;
278
- }
279
333
  interface SssSelfManagedFund {
280
334
  "history"?: RouterHistory;
281
335
  }
282
336
  interface SssSelfManagedFundInputs {
283
337
  "fundForm"?: Partial<SelfManagedFundForm>;
284
338
  "onFormChanged"?: (event: CustomEvent<Partial<SelfManagedFundForm>>) => void;
339
+ "showValidationErrors"?: boolean;
285
340
  }
286
341
  interface SssSlateJoinPage {
287
342
  "history"?: RouterHistory;
288
343
  }
289
- interface SssSlateStandardChoicePage {
290
- "history"?: RouterHistory;
291
- }
292
- interface SssSlatesuperHeader {
293
- }
294
344
  interface SssSmsfNotSupportedDialog {
295
345
  "onContinue"?: (event: CustomEvent<void>) => void;
296
346
  }
297
347
  interface SssStandardChoiceForm {
298
- "onStandardChoiceFormSignatureUpdated"?: (event: CustomEvent<StandardChoiceInput>) => void;
348
+ "history"?: RouterHistory;
299
349
  }
300
350
  interface SssSuccess {
301
351
  }
302
- interface SssSuperChoiceItem {
352
+ interface SssSuperChoiceItemBottom {
303
353
  "abn"?: string;
304
354
  "abnInfo"?: string;
305
355
  "disclaimer"?: VNode;
356
+ "onJoinFundClicked"?: (event: CustomEvent<void>) => void;
357
+ }
358
+ interface SssSuperChoiceItemTop {
306
359
  "featureSubText"?: string;
307
360
  "features"?: string;
308
- "history"?: RouterHistory;
309
- "isSelected"?: boolean;
310
361
  "logo"?: string;
311
362
  "name"?: string;
312
- "onJoinFundClicked"?: (event: CustomEvent<void>) => void;
313
- "pdsLink"?: string;
314
- "pdsLinkText"?: string;
315
- "subText"?: string;
316
- "usi"?: string;
317
363
  }
318
364
  interface SssSuperChoicePage {
319
365
  "history"?: RouterHistory;
@@ -323,6 +369,7 @@ declare namespace LocalJSX {
323
369
  "appBaseUrl"?: string;
324
370
  "backendUrl"?: string;
325
371
  "history"?: RouterHistory;
372
+ "isSelfHosted"?: boolean;
326
373
  "location"?: LocationSegments;
327
374
  "onInitialised"?: (event: CustomEvent<InitialisedWith>) => void;
328
375
  "onStep-completion"?: (event: CustomEvent<void>) => void;
@@ -331,25 +378,27 @@ declare namespace LocalJSX {
331
378
  interface SuperSelectionAppHost {
332
379
  }
333
380
  interface IntrinsicElements {
381
+ "sss-button": SssButton;
382
+ "sss-consent-page": SssConsentPage;
334
383
  "sss-custom-fund": SssCustomFund;
335
384
  "sss-default-fund": SssDefaultFund;
385
+ "sss-dropdown-async": SssDropdownAsync;
386
+ "sss-existing-choice-page": SssExistingChoicePage;
336
387
  "sss-footer-section": SssFooterSection;
388
+ "sss-header-section": SssHeaderSection;
389
+ "sss-loading-indicator": SssLoadingIndicator;
337
390
  "sss-loading-page": SssLoadingPage;
338
391
  "sss-my-own-fund": SssMyOwnFund;
339
392
  "sss-my-own-fund-inputs": SssMyOwnFundInputs;
340
- "sss-notifications-section": SssNotificationsSection;
341
393
  "sss-promoted-fund-join-page": SssPromotedFundJoinPage;
342
- "sss-promoted-fund-standard-choice-page": SssPromotedFundStandardChoicePage;
343
- "sss-selected-super-choice-section": SssSelectedSuperChoiceSection;
344
394
  "sss-self-managed-fund": SssSelfManagedFund;
345
395
  "sss-self-managed-fund-inputs": SssSelfManagedFundInputs;
346
396
  "sss-slate-join-page": SssSlateJoinPage;
347
- "sss-slate-standard-choice-page": SssSlateStandardChoicePage;
348
- "sss-slatesuper-header": SssSlatesuperHeader;
349
397
  "sss-smsf-not-supported-dialog": SssSmsfNotSupportedDialog;
350
398
  "sss-standard-choice-form": SssStandardChoiceForm;
351
399
  "sss-success": SssSuccess;
352
- "sss-super-choice-item": SssSuperChoiceItem;
400
+ "sss-super-choice-item-bottom": SssSuperChoiceItemBottom;
401
+ "sss-super-choice-item-top": SssSuperChoiceItemTop;
353
402
  "sss-super-choice-page": SssSuperChoicePage;
354
403
  "super-selection-app": SuperSelectionApp;
355
404
  "super-selection-app-host": SuperSelectionAppHost;
@@ -359,25 +408,27 @@ export { LocalJSX as JSX };
359
408
  declare module "@stencil/core" {
360
409
  export namespace JSX {
361
410
  interface IntrinsicElements {
411
+ "sss-button": LocalJSX.SssButton & JSXBase.HTMLAttributes<HTMLSssButtonElement>;
412
+ "sss-consent-page": LocalJSX.SssConsentPage & JSXBase.HTMLAttributes<HTMLSssConsentPageElement>;
362
413
  "sss-custom-fund": LocalJSX.SssCustomFund & JSXBase.HTMLAttributes<HTMLSssCustomFundElement>;
363
414
  "sss-default-fund": LocalJSX.SssDefaultFund & JSXBase.HTMLAttributes<HTMLSssDefaultFundElement>;
415
+ "sss-dropdown-async": LocalJSX.SssDropdownAsync & JSXBase.HTMLAttributes<HTMLSssDropdownAsyncElement>;
416
+ "sss-existing-choice-page": LocalJSX.SssExistingChoicePage & JSXBase.HTMLAttributes<HTMLSssExistingChoicePageElement>;
364
417
  "sss-footer-section": LocalJSX.SssFooterSection & JSXBase.HTMLAttributes<HTMLSssFooterSectionElement>;
418
+ "sss-header-section": LocalJSX.SssHeaderSection & JSXBase.HTMLAttributes<HTMLSssHeaderSectionElement>;
419
+ "sss-loading-indicator": LocalJSX.SssLoadingIndicator & JSXBase.HTMLAttributes<HTMLSssLoadingIndicatorElement>;
365
420
  "sss-loading-page": LocalJSX.SssLoadingPage & JSXBase.HTMLAttributes<HTMLSssLoadingPageElement>;
366
421
  "sss-my-own-fund": LocalJSX.SssMyOwnFund & JSXBase.HTMLAttributes<HTMLSssMyOwnFundElement>;
367
422
  "sss-my-own-fund-inputs": LocalJSX.SssMyOwnFundInputs & JSXBase.HTMLAttributes<HTMLSssMyOwnFundInputsElement>;
368
- "sss-notifications-section": LocalJSX.SssNotificationsSection & JSXBase.HTMLAttributes<HTMLSssNotificationsSectionElement>;
369
423
  "sss-promoted-fund-join-page": LocalJSX.SssPromotedFundJoinPage & JSXBase.HTMLAttributes<HTMLSssPromotedFundJoinPageElement>;
370
- "sss-promoted-fund-standard-choice-page": LocalJSX.SssPromotedFundStandardChoicePage & JSXBase.HTMLAttributes<HTMLSssPromotedFundStandardChoicePageElement>;
371
- "sss-selected-super-choice-section": LocalJSX.SssSelectedSuperChoiceSection & JSXBase.HTMLAttributes<HTMLSssSelectedSuperChoiceSectionElement>;
372
424
  "sss-self-managed-fund": LocalJSX.SssSelfManagedFund & JSXBase.HTMLAttributes<HTMLSssSelfManagedFundElement>;
373
425
  "sss-self-managed-fund-inputs": LocalJSX.SssSelfManagedFundInputs & JSXBase.HTMLAttributes<HTMLSssSelfManagedFundInputsElement>;
374
426
  "sss-slate-join-page": LocalJSX.SssSlateJoinPage & JSXBase.HTMLAttributes<HTMLSssSlateJoinPageElement>;
375
- "sss-slate-standard-choice-page": LocalJSX.SssSlateStandardChoicePage & JSXBase.HTMLAttributes<HTMLSssSlateStandardChoicePageElement>;
376
- "sss-slatesuper-header": LocalJSX.SssSlatesuperHeader & JSXBase.HTMLAttributes<HTMLSssSlatesuperHeaderElement>;
377
427
  "sss-smsf-not-supported-dialog": LocalJSX.SssSmsfNotSupportedDialog & JSXBase.HTMLAttributes<HTMLSssSmsfNotSupportedDialogElement>;
378
428
  "sss-standard-choice-form": LocalJSX.SssStandardChoiceForm & JSXBase.HTMLAttributes<HTMLSssStandardChoiceFormElement>;
379
429
  "sss-success": LocalJSX.SssSuccess & JSXBase.HTMLAttributes<HTMLSssSuccessElement>;
380
- "sss-super-choice-item": LocalJSX.SssSuperChoiceItem & JSXBase.HTMLAttributes<HTMLSssSuperChoiceItemElement>;
430
+ "sss-super-choice-item-bottom": LocalJSX.SssSuperChoiceItemBottom & JSXBase.HTMLAttributes<HTMLSssSuperChoiceItemBottomElement>;
431
+ "sss-super-choice-item-top": LocalJSX.SssSuperChoiceItemTop & JSXBase.HTMLAttributes<HTMLSssSuperChoiceItemTopElement>;
381
432
  "sss-super-choice-page": LocalJSX.SssSuperChoicePage & JSXBase.HTMLAttributes<HTMLSssSuperChoicePageElement>;
382
433
  "super-selection-app": LocalJSX.SuperSelectionApp & JSXBase.HTMLAttributes<HTMLSuperSelectionAppElement>;
383
434
  "super-selection-app-host": LocalJSX.SuperSelectionAppHost & JSXBase.HTMLAttributes<HTMLSuperSelectionAppHostElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection",
3
- "version": "3.51.59881",
3
+ "version": "3.54.61365",
4
4
  "description": "Apollo Super Selection",
5
5
  "main": "dist/lib/index.cjs.js",
6
6
  "module": "dist/lib/index.js",
@@ -14,9 +14,13 @@
14
14
  "dist/lib"
15
15
  ],
16
16
  "scripts": {
17
- "build": "stencil build --ci",
18
- "build:dev": "stencil build --dev --config stencil.dev.config.ts",
19
- "start": "stencil build --dev --watch --serve --config stencil.dev.config.ts",
17
+ "build": "npm run build:tailwind && stencil build --ci",
18
+ "build:tailwind": "tailwindcss -i ./tailwind-source.css -o ./tailwind-generated.css --minify",
19
+ "build:dev": "npm run build:dev:tailwind && stencil build --dev --config stencil.dev.config.ts",
20
+ "build:dev:tailwind": "tailwindcss -i ./tailwind-source.css -o ./tailwind-generated.css",
21
+ "start": "concurrently \"npm run start:tailwind\" \"npm run start:stencil\"",
22
+ "start:stencil": "stencil build --dev --watch --serve --config stencil.dev.config.ts",
23
+ "start:tailwind": "tailwindcss -i ./tailwind-source.css -o ./tailwind-generated.css --watch",
20
24
  "start:api": "cd ../api/SuperSelection.Api && func start --build",
21
25
  "lint": "eslint src/**/*{.ts,.tsx}",
22
26
  "lint:fix": "eslint src/**/*{.ts,.tsx} --fix",
@@ -30,12 +34,14 @@
30
34
  "@stencil/eslint-plugin": "^0.3.1",
31
35
  "@stencil/sass": "1.3.x",
32
36
  "@stencil/store": "^1.3.0",
37
+ "@tailwindcss/forms": "^0.5.1",
33
38
  "@types/jest": "^26.0.20",
34
39
  "@types/node": "^14.14.21",
35
40
  "@types/puppeteer": "^5.4.2",
36
41
  "@types/resize-observer-browser": "^0.1.5",
37
42
  "@typescript-eslint/eslint-plugin": "^4.14.0",
38
43
  "@typescript-eslint/parser": "^4.14.0",
44
+ "concurrently": "^7.1.0",
39
45
  "cross-zip": "^4.0.0",
40
46
  "env-cmd": "^10.1.0",
41
47
  "eslint": "^7.18.0",
@@ -50,15 +56,14 @@
50
56
  "lint-staged": "^10.5.3",
51
57
  "prettier": "^2.2.1",
52
58
  "puppeteer": "^5.5.0",
53
- "rollup-plugin-ignore": "^1.0.6"
59
+ "rollup-plugin-ignore": "^1.0.6",
60
+ "tailwindcss": "^3.1.4"
54
61
  },
55
62
  "dependencies": {
56
63
  "@datorama/akita": "^5.3.0",
57
- "@flarehr/beacon": "^0.1.2",
58
64
  "@juggle/resize-observer": "^3.3.0",
59
65
  "@microsoft/applicationinsights-web": "^2.5.10",
60
66
  "@stencil/router": "1.0.1",
61
- "bootstrap": "^4.5.3",
62
67
  "date-fns": "^2.16.1",
63
68
  "fp-ts": "^2.9.3",
64
69
  "jwt-decode": "^3.1.2",
@@ -1,15 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __spreadArrays=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};System.register(["./p-7dbe5a2f.system.js"],(function(t){"use strict";var e,n,r,i,o,s,a,u,c,f,p,h,l,d,v;return{setters:[function(t){e=t.S;n=t.O;r=t.r;i=t.a;o=t.A;s=t.b;a=t.N;u=t.h;c=t.o;f=t.s;p=t.i;h=t.c;l=t.e;d=t.d;v=t.f}],execute:function(){t({b:ot,c:pe,d:ut,e:Ct,f:et,i:it,m:M});
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function y(t,e){var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0)n[r]=t[r];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++){if(e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i]))n[r[i]]=t[r[i]]}return n}function g(t,e,n,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)if(s=t[a])o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o;return i>3&&o&&Object.defineProperty(e,n,o),o}function b(t,e){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(t,e)}var _=function(){function t(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}t.prototype=Object.create(Error.prototype);return t}();var m=_;var w=function(t){__extends(e,t);function e(e,n){var r=t.call(this)||this;r.subject=e;r.subscriber=n;r.closed=false;return r}e.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var t=this.subject;var e=t.observers;this.subject=null;if(!e||e.length===0||t.isStopped||t.closed){return}var n=e.indexOf(this.subscriber);if(n!==-1){e.splice(n,1)}};return e}(e);var S=function(t){__extends(e,t);function e(e){var n=t.call(this,e)||this;n.destination=e;return n}return e}(i);var O=function(t){__extends(i,t);function i(){var e=t.call(this)||this;e.observers=[];e.closed=false;e.isStopped=false;e.hasError=false;e.thrownError=null;return e}i.prototype[r]=function(){return new S(this)};i.prototype.lift=function(t){var e=new P(this,this);e.operator=t;return e};i.prototype.next=function(t){if(this.closed){throw new m}if(!this.isStopped){var e=this.observers;var n=e.length;var r=e.slice();for(var i=0;i<n;i++){r[i].next(t)}}};i.prototype.error=function(t){if(this.closed){throw new m}this.hasError=true;this.thrownError=t;this.isStopped=true;var e=this.observers;var n=e.length;var r=e.slice();for(var i=0;i<n;i++){r[i].error(t)}this.observers.length=0};i.prototype.complete=function(){if(this.closed){throw new m}this.isStopped=true;var t=this.observers;var e=t.length;var n=t.slice();for(var r=0;r<e;r++){n[r].complete()}this.observers.length=0};i.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};i.prototype._trySubscribe=function(e){if(this.closed){throw new m}else{return t.prototype._trySubscribe.call(this,e)}};i.prototype._subscribe=function(t){if(this.closed){throw new m}else if(this.hasError){t.error(this.thrownError);return e.EMPTY}else if(this.isStopped){t.complete();return e.EMPTY}else{this.observers.push(t);return new w(this,t)}};i.prototype.asObservable=function(){var t=new n;t.source=this;return t};return i}(n);O.create=function(t,e){return new P(t,e)};var P=function(t){__extends(n,t);function n(e,n){var r=t.call(this)||this;r.destination=e;r.source=n;return r}n.prototype.next=function(t){var e=this.destination;if(e&&e.next){e.next(t)}};n.prototype.error=function(t){var e=this.destination;if(e&&e.error){this.destination.error(t)}};n.prototype.complete=function(){var t=this.destination;if(t&&t.complete){this.destination.complete()}};n.prototype._subscribe=function(t){var n=this.source;if(n){return this.source.subscribe(t)}else{return e.EMPTY}};return n}(O);var E=function(t){__extends(e,t);function e(e){var n=t.call(this)||this;n._value=e;return n}Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:false,configurable:true});e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);if(n&&!n.closed){e.next(this._value)}return n};e.prototype.getValue=function(){if(this.hasError){throw this.thrownError}else if(this.closed){throw new m}else{return this._value}};e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)};return e}(O);var j=function(t){__extends(e,t);function e(e,n){var r=t.call(this,e,n)||this;r.scheduler=e;r.work=n;return r}e.prototype.schedule=function(e,n){if(n===void 0){n=0}if(n>0){return t.prototype.schedule.call(this,e,n)}this.delay=n;this.state=e;this.scheduler.flush(this);return this};e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)};e.prototype.requestAsyncId=function(e,n,r){if(r===void 0){r=0}if(r!==null&&r>0||r===null&&this.delay>0){return t.prototype.requestAsyncId.call(this,e,n,r)}return e.flush(this)};return e}(o);var x=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(s);var A=new x(j);var I=A;var C=function(t){__extends(e,t);function e(e,n,r){if(r===void 0){r=0}var i=t.call(this,e)||this;i.scheduler=n;i.delay=r;return i}e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n);this.unsubscribe()};e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new N(t,this.destination)))};e.prototype._next=function(t){this.scheduleMessage(a.createNext(t))};e.prototype._error=function(t){this.scheduleMessage(a.createError(t));this.unsubscribe()};e.prototype._complete=function(){this.scheduleMessage(a.createComplete());this.unsubscribe()};return e}(i);var N=function(){function t(t,e){this.notification=t;this.destination=e}return t}();var U=function(t){__extends(n,t);function n(e,n,r){if(e===void 0){e=Number.POSITIVE_INFINITY}if(n===void 0){n=Number.POSITIVE_INFINITY}var i=t.call(this)||this;i.scheduler=r;i._events=[];i._infiniteTimeWindow=false;i._bufferSize=e<1?1:e;i._windowTime=n<1?1:n;if(n===Number.POSITIVE_INFINITY){i._infiniteTimeWindow=true;i.next=i.nextInfiniteTimeWindow}else{i.next=i.nextTimeWindow}return i}n.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e);if(n.length>this._bufferSize){n.shift()}}t.prototype.next.call(this,e)};n.prototype.nextTimeWindow=function(e){if(!this.isStopped){this._events.push(new F(this._getNow(),e));this._trimBufferThenGetEvents()}t.prototype.next.call(this,e)};n.prototype._subscribe=function(t){var n=this._infiniteTimeWindow;var r=n?this._events:this._trimBufferThenGetEvents();var i=this.scheduler;var o=r.length;var s;if(this.closed){throw new m}else if(this.isStopped||this.hasError){s=e.EMPTY}else{this.observers.push(t);s=new w(this,t)}if(i){t.add(t=new C(t,i))}if(n){for(var a=0;a<o&&!t.closed;a++){t.next(r[a])}}else{for(var a=0;a<o&&!t.closed;a++){t.next(r[a].value)}}if(this.hasError){t.error(this.thrownError)}else if(this.isStopped){t.complete()}return s};n.prototype._getNow=function(){return(this.scheduler||I).now()};n.prototype._trimBufferThenGetEvents=function(){var t=this._getNow();var e=this._bufferSize;var n=this._windowTime;var r=this._events;var i=r.length;var o=0;while(o<i){if(t-r[o].time<n){break}o++}if(i>e){o=Math.max(o,i-e)}if(o>0){r.splice(0,o)}return r};return n}(O);var F=function(){function t(t,e){this.time=t;this.value=e}return t}();function k(t){return!!t&&(t instanceof n||typeof t.lift==="function"&&typeof t.subscribe==="function")}var K=function(){function t(){Error.call(this);this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}t.prototype=Object.create(Error.prototype);return t}();var R=K;function M(t,e){return function n(r){if(typeof t!=="function"){throw new TypeError("argument is not a function. Are you looking for `mapTo()`?")}return r.lift(new L(t,e))}}var L=function(){function t(t,e){this.project=t;this.thisArg=e}t.prototype.call=function(t,e){return e.subscribe(new V(t,this.project,this.thisArg))};return t}();var V=function(t){__extends(e,t);function e(e,n,r){var i=t.call(this,e)||this;i.project=n;i.count=0;i.thisArg=r||i;return i}e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)};return e}(i);var W=function(t){return function(e){t.then((function(t){if(!e.closed){e.next(t);e.complete()}}),(function(t){return e.error(t)})).then(null,u);return e}};function Y(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}var $=Y();var q=function(t){return function(e){var n=t[$]();do{var r=void 0;try{r=n.next()}catch(t){e.error(t);return e}if(r.done){e.complete();break}e.next(r.value);if(e.closed){break}}while(true);if(typeof n.return==="function"){e.add((function(){if(n.return){n.return()}}))}return e}};var Q=function(t){return function(e){var n=t[c]();if(typeof n.subscribe!=="function"){throw new TypeError("Provided object does not correctly implement Symbol.observable")}else{return n.subscribe(e)}}};var z=function(t){return t&&typeof t.length==="number"&&typeof t!=="function"};function D(t){return!!t&&typeof t.subscribe!=="function"&&typeof t.then==="function"}var H=function(t){if(!!t&&typeof t[c]==="function"){return Q(t)}else if(z(t)){return f(t)}else if(D(t)){return W(t)}else if(!!t&&typeof t[$]==="function"){return q(t)}else{var e=p(t)?"an invalid object":"'"+t+"'";var n="You provided "+e+" where a stream was expected."+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)}};function B(t,r){return new n((function(n){var i=new e;i.add(r.schedule((function(){var e=t[c]();i.add(e.subscribe({next:function(t){i.add(r.schedule((function(){return n.next(t)})))},error:function(t){i.add(r.schedule((function(){return n.error(t)})))},complete:function(){i.add(r.schedule((function(){return n.complete()})))}}))})));return i}))}function G(t,r){return new n((function(n){var i=new e;i.add(r.schedule((function(){return t.then((function(t){i.add(r.schedule((function(){n.next(t);i.add(r.schedule((function(){return n.complete()})))})))}),(function(t){i.add(r.schedule((function(){return n.error(t)})))}))})));return i}))}function J(t,r){if(!t){throw new Error("Iterable cannot be null")}return new n((function(n){var i=new e;var o;i.add((function(){if(o&&typeof o.return==="function"){o.return()}}));i.add(r.schedule((function(){o=t[$]();i.add(r.schedule((function(){if(n.closed){return}var t;var e;try{var r=o.next();t=r.value;e=r.done}catch(t){n.error(t);return}if(e){n.complete()}else{n.next(t);this.schedule()}})))})));return i}))}function X(t){return t&&typeof t[c]==="function"}function Z(t){return t&&typeof t[$]==="function"}function tt(t,e){if(t!=null){if(X(t)){return B(t,e)}else if(D(t)){return G(t,e)}else if(z(t)){return h(t,e)}else if(Z(t)||typeof t==="string"){return J(t,e)}}throw new TypeError((t!==null&&typeof t||t)+" is not observable")}function et(t,e){if(!e){if(t instanceof n){return t}return new n(H(t))}else{return tt(t,e)}}var nt=function(t){__extends(e,t);function e(e){var n=t.call(this)||this;n.parent=e;return n}e.prototype._next=function(t){this.parent.notifyNext(t)};e.prototype._error=function(t){this.parent.notifyError(t);this.unsubscribe()};e.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};return e}(i);t("a",nt);var rt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.notifyNext=function(t){this.destination.next(t)};e.prototype.notifyError=function(t){this.destination.error(t)};e.prototype.notifyComplete=function(){this.destination.complete()};return e}(i);t("S",rt);function it(t,e){if(e.closed){return undefined}if(t instanceof n){return t.subscribe(e)}return H(t)(e)}function ot(t,e){return function n(r){return r.lift(new st(t,e))}}var st=function(){function t(t,e){this.predicate=t;this.thisArg=e}t.prototype.call=function(t,e){return e.subscribe(new at(t,this.predicate,this.thisArg))};return t}();var at=function(t){__extends(e,t);function e(e,n,r){var i=t.call(this,e)||this;i.predicate=n;i.thisArg=r;i.count=0;return i}e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}if(e){this.destination.next(t)}};return e}(i);function ut(t,e){return function(n){return n.lift(new ct(t,e))}}var ct=function(){function t(t,e){this.compare=t;this.keySelector=e}t.prototype.call=function(t,e){return e.subscribe(new ft(t,this.compare,this.keySelector))};return t}();var ft=function(t){__extends(e,t);function e(e,n,r){var i=t.call(this,e)||this;i.keySelector=r;i.hasKey=false;if(typeof n==="function"){i.compare=n}return i}e.prototype.compare=function(t,e){return t===e};e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=false;if(this.hasKey){try{var i=this.compare;r=i(this.key,e)}catch(t){return this.destination.error(t)}}else{this.hasKey=true}if(!r){this.key=e;this.destination.next(t)}};return e}(i);function pt(t){return function(e){if(t===0){return l()}else{return e.lift(new ht(t))}}}var ht=function(){function t(t){this.total=t;if(this.total<0){throw new R}}t.prototype.call=function(t,e){return e.subscribe(new lt(t,this.total))};return t}();var lt=function(t){__extends(e,t);function e(e,n){var r=t.call(this,e)||this;r.total=n;r.count=0;return r}e.prototype._next=function(t){var e=this.total;var n=++this.count;if(n<=e){this.destination.next(t);if(n===e){this.destination.complete();this.unsubscribe()}}};return e}(i);function dt(t,e){if(typeof e==="function"){return function(n){return n.pipe(dt((function(n,r){return et(t(n,r)).pipe(M((function(t,i){return e(n,t,r,i)})))})))}}return function(e){return e.lift(new vt(t))}}var vt=function(){function t(t){this.project=t}t.prototype.call=function(t,e){return e.subscribe(new yt(t,this.project))};return t}();var yt=function(t){__extends(e,t);function e(e,n){var r=t.call(this,e)||this;r.project=n;r.index=0;return r}e.prototype._next=function(t){var e;var n=this.index++;try{e=this.project(t,n)}catch(t){this.destination.error(t);return}this._innerSub(e)};e.prototype._innerSub=function(t){var e=this.innerSubscription;if(e){e.unsubscribe()}var n=new nt(this);var r=this.destination;r.add(n);this.innerSubscription=it(t,n);if(this.innerSubscription!==n){r.add(this.innerSubscription)}};e.prototype._complete=function(){var e=this.innerSubscription;if(!e||e.closed){t.prototype._complete.call(this)}this.unsubscribe()};e.prototype._unsubscribe=function(){this.innerSubscription=undefined};e.prototype.notifyComplete=function(){this.innerSubscription=undefined;if(this.isStopped){t.prototype._complete.call(this)}};e.prototype.notifyNext=function(t){this.destination.next(t)};return e}(rt);var gt={type:null,entityIds:null,skip:false};var bt=false;function _t(){bt=false}function mt(t,e){wt(t,e);bt=true}function wt(t,e){if(bt===false){gt.type=t;gt.entityIds=e}}function St(t,e){return function(n,r,i){var o=i.value;i.value=function(){var n=[];for(var r=0;r<arguments.length;r++){n[r]=arguments[r]}mt(t,e);return o.apply(this,n)};return i}}function Ot(t,e){return t.hasOwnProperty(e)}function Pt(t){var e=t.state,n=t.entities,r=t.idKey,i=t.options,o=i===void 0?{}:i,s=t.preAddEntity;var a={};var u=[];var c=false;for(var f=0,p=n;f<p.length;f++){var h=p[f];if(Ot(e.entities,h[r])===false){var l=s(h);var d=l[r];a[d]=l;if(o.prepend)u.unshift(d);else u.push(d);c=true}}return c?{newState:Object.assign({},e,{entities:Object.assign({},e.entities,a),ids:o.prepend?__spreadArrays(u,e.ids):__spreadArrays(e.ids,u)}),newIds:u}:null}function Et(t){return t===null||t===undefined}function jt(t){if(Et(t)){return[]}return Array.isArray(t)?t:[t]}var xt="id";var At;(function(t){t["Set"]="Set";t["Add"]="Add";t["Update"]="Update";t["Remove"]="Remove"})(At||(At={}));var Tt=typeof window!=="undefined";var It=true;function Ct(){It=false;if(Tt){delete window.$$stores;delete window.$$queries}}function Nt(){return It}function Ut(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function Ft(t){return Array.isArray(t)}function kt(t,e,n){var r;if(Ft(t)){r=t}else{if(Ut(t)){if(Et(n))return;t=Object.assign({wrap:true},t);var i=e.indexOf(n);if(t.prev){var o=i===0;if(o&&!t.wrap)return;r=o?e[e.length-1]:e[i-1]}else if(t.next){var s=e.length===i+1;if(s&&!t.wrap)return;r=s?e[0]:e[i+1]}}else{if(t===n)return;r=t}}return r}var Kt=function(){return{entities:{},ids:[],loading:true,error:null}};function Rt(t){return Et(t)===false}function Mt(t){if(Ft(t)){return t.length===0}return false}function Lt(t){return typeof t==="function"}function Vt(t){return t===undefined}function Wt(t){return t.hasOwnProperty("active")}function Yt(t){return Ft(t)}function $t(t){var e=t.active,n=t.ids,r=t.entities;if(Yt(e)){return qt(e,n)}if(Ot(r,e)===false){return null}return e}function qt(t,e){var n=t.filter((function(t){return e.indexOf(t)>-1}));if(n.length===t.length){return t}return n}function Qt(t){var e=t.state,n=t.ids;if(Et(n))return zt(e);var r=e.entities;var i={};for(var o=0,s=e.ids;o<s.length;o++){var a=s[o];if(n.includes(a)===false){i[a]=r[a]}}var u=Object.assign({},e,{entities:i,ids:e.ids.filter((function(t){return n.includes(t)===false}))});if(Wt(e)){u.active=$t(u)}return u}function zt(t){return Object.assign({},t,{entities:{},ids:[],active:Yt(t.active)?[]:null})}function Dt(t,e,n){var r={entities:{},ids:[]};for(var i=0,o=t;i<o.length;i++){var s=o[i];var a=n(s);r.entities[a[e]]=a;r.ids.push(a[e])}return r}function Ht(t){return t.entities&&t.ids}function Bt(t,e){var n={};for(var r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=e(t[o])}return n}function Gt(t){var e=t.state,n=t.entities,r=t.idKey,i=t.preAddEntity,o=t.isNativePreAdd;var s;var a;if(Ft(n)){var u=Dt(n,r,i);s=u.entities;a=u.ids}else if(Ht(n)){s=o?n.entities:Bt(n.entities,i);a=n.ids}else{s=o?n:Bt(n,i);a=Object.keys(s).map((function(t){return isNaN(t)?t:Number(t)}))}var c=Object.assign({},e,{entities:s,ids:a,loading:false});if(Wt(e)){c.active=$t(c)}return c}var Jt={resettable:false,ttl:null,producerFn:undefined};function Xt(){return Jt}function Zt(){return Jt.producerFn}function te(t){Object.freeze(t);var e=typeof t==="function";var n=Object.prototype.hasOwnProperty;Object.getOwnPropertyNames(t).forEach((function(r){if(n.call(t,r)&&(e?r!=="caller"&&r!=="callee"&&r!=="arguments":true)&&t[r]!==null&&(typeof t[r]==="object"||typeof t[r]==="function")&&!Object.isFrozen(t[r])){te(t[r])}}));return t}var ee=new O;var ne=new U(50,5e3);var re=new O;function ie(t){ee.next(t)}function oe(t){ne.next(t)}function se(t,e){re.next({storeName:t,action:e})}function ae(t,e){if(!t){console.error("@StoreConfig({ name }) is missing in "+e)}}function ue(t){return t!=null&&""+t!=="false"}function ce(t){return ue(t)&&t.constructor.name==="Object"}var fe="akitaConfig";function pe(t){return function(e){e[fe]={idKey:"id"};for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];if(i==="name"){e[fe]["storeName"]=t[i]}else{e[fe][i]=t[i]}}}}var he={};var le={};if(Tt){window.$$stores=he;window.$$queries=le}var de=new O;var ve=new E(false);var ye={activeTransactions:0,batchTransaction:null};function ge(){if(!_e()){ye.batchTransaction=new O}ye.activeTransactions++;ve.next(true)}function be(){if(--ye.activeTransactions===0){ye.batchTransaction.next(true);ye.batchTransaction.complete();ve.next(false);de.next(true)}}function _e(){return ye.activeTransactions>0}function me(){return ye.batchTransaction?ye.batchTransaction.asObservable():d(true)}function we(t,e){if(e===void 0){e=undefined}ge();try{return t.apply(e)}finally{mt("@Transaction");be()}}function Se(){return function(t,e,n){var r=n.value;n.value=function(){var t=this;var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}return we((function(){return r.apply(t,e)}),this)};return n}}var Oe=function(){function t(t,e){if(e===void 0){e={}}this.options=e;this.inTransaction=false;this.cache={active:new E(false),ttl:null};this.onInit(t)}t.prototype.setLoading=function(t){if(t===void 0){t=false}if(t!==this._value().loading){Nt()&&wt("Set Loading");this._setState((function(e){return Object.assign({},e,{loading:t})}))}};t.prototype.setHasCache=function(t,e){var n=this;if(e===void 0){e={restartTTL:false}}if(t!==this.cache.active.value){this.cache.active.next(t)}if(e.restartTTL){var r=this.getCacheTTL();if(r){if(this.cache.ttl!==null){clearTimeout(this.cache.ttl)}this.cache.ttl=setTimeout((function(){return n.setHasCache(false)}),r)}}};t.prototype.getValue=function(){return this.storeValue};t.prototype.setError=function(t){if(t!==this._value().error){Nt()&&wt("Set Error");this._setState((function(e){return Object.assign({},e,{error:t})}))}};t.prototype._select=function(t){return this.store.asObservable().pipe(M((function(e){return t(e.state)})),ut())};t.prototype._value=function(){return this.storeValue};t.prototype._cache=function(){return this.cache.active};Object.defineProperty(t.prototype,"config",{get:function(){return this.constructor[fe]||{}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"storeName",{get:function(){return this.config.storeName||this.options.storeName||this.options.name},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"deepFreeze",{get:function(){return this.config.deepFreezeFn||this.options.deepFreezeFn||te},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cacheConfig",{get:function(){return this.config.cache||this.options.cache},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"_producerFn",{get:function(){return this.config.producerFn||this.options.producerFn||Zt()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"resettable",{get:function(){return Rt(this.config.resettable)?this.config.resettable:this.options.resettable},enumerable:false,configurable:true});t.prototype._setState=function(t,e){var n=this;if(e===void 0){e=true}if(Lt(t)){var r=t(this._value());this.storeValue=It?this.deepFreeze(r):r}else{this.storeValue=t}if(!this.store){this.store=new E({state:this.storeValue});if(Nt()){this.store.subscribe((function(t){var e=t.action;if(e){se(n.storeName,e)}}))}return}if(_e()){this.handleTransaction();return}this.dispatch(this.storeValue,e)};t.prototype.reset=function(){var t=this;if(this.isResettable()){Nt()&&wt("Reset");this._setState((function(){return Object.assign({},t._initialState)}));this.setHasCache(false)}else{Nt()&&console.warn("You need to enable the reset functionality")}};t.prototype.update=function(t){Nt()&&wt("Update");var e;var n=this._value();if(Lt(t)){e=Lt(this._producerFn)?this._producerFn(n,t):t(n)}else{e=t}var r=this.akitaPreUpdate(n,Object.assign({},n,e));var i=ce(n)?r:new n.constructor(r);this._setState(i)};t.prototype.updateStoreConfig=function(t){this.options=Object.assign({},this.options,t)};t.prototype.akitaPreUpdate=function(t,e){return e};t.prototype.ngOnDestroy=function(){this.destroy()};t.prototype.destroy=function(){var t=Tt?window.hmrEnabled:false;if(!t&&this===he[this.storeName]){delete he[this.storeName];ie(this.storeName);this.setHasCache(false);this.cache.active.complete();this.store.complete()}};t.prototype.onInit=function(t){he[this.storeName]=this;this._setState((function(){return t}));oe(this.storeName);if(this.isResettable()){this._initialState=t}Nt()&&ae(this.storeName,this.constructor.name)};t.prototype.dispatch=function(t,e){if(e===void 0){e=true}var n=undefined;if(e){n=gt;_t()}this.store.next({state:t,action:n})};t.prototype.watchTransaction=function(){var t=this;me().subscribe((function(){t.inTransaction=false;t.dispatch(t._value())}))};t.prototype.isResettable=function(){if(this.resettable===false){return false}return this.resettable||Xt().resettable};t.prototype.handleTransaction=function(){if(!this.inTransaction){this.watchTransaction();this.inTransaction=true}};t.prototype.getCacheTTL=function(){return this.cacheConfig&&this.cacheConfig.ttl||Xt().ttl};return t}();t("g",Oe);function Pe(t){var e=t.state,n=t.ids,r=t.idKey,i=t.newStateOrFn,o=t.preUpdateEntity,s=t.producerFn,a=t.onEntityIdChanges;var u={};var c=false;var f;for(var p=0,h=n;p<h.length;p++){var l=h[p];if(Ot(e.entities,l)===false){continue}var d=e.entities[l];var v=void 0;if(Lt(i)){v=Lt(s)?s(d,i):i(d)}else{v=i}var g=v.hasOwnProperty(r)&&v[r]!==d[r];var b=void 0;f=l;if(g){c=true;f=v[r]}var _=Object.assign({},d,v);if(ce(d)){b=_}else{if(ce(v)){b=new d.constructor(_)}else{b=new v.constructor(_)}}u[f]=o(d,b)}var m=e.ids;var w=e.entities;if(c){var S=n[0];var O=e.entities,P=S,E=y(O,[typeof P==="symbol"?P:P+""]);w=E;m=e.ids.map((function(t){return t===S?f:t}));a(S,f)}return Object.assign({},e,{entities:Object.assign({},w,u),ids:m})}var Ee;var je=function(t){__extends(e,t);function e(e,n){if(e===void 0){e={}}if(n===void 0){n={}}var r=t.call(this,Object.assign({},Kt(),e),n)||this;r.options=n;r.entityActions=new O;r.entityIdChanges=new O;return r}Object.defineProperty(e.prototype,"selectEntityAction$",{get:function(){return this.entityActions.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectEntityIdChanges$",{get:function(){return this.entityIdChanges.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"idKey",{get:function(){return this.config.idKey||this.options.idKey||xt},enumerable:false,configurable:true});e.prototype.set=function(t,n){var r=this;if(n===void 0){n={}}if(Et(t))return;Nt()&&wt("Set Entity");var i=this.akitaPreAddEntity===e.prototype.akitaPreAddEntity;this.setHasCache(true,{restartTTL:true});this._setState((function(e){var o=Gt({state:e,entities:t,idKey:r.idKey,preAddEntity:r.akitaPreAddEntity,isNativePreAdd:i});if(Vt(n.activeId)===false){o.active=n.activeId}return o}));if(this.hasInitialUIState()){this.handleUICreation()}this.entityActions.next({type:At.Set,ids:this.ids})};e.prototype.add=function(t,e){if(e===void 0){e={loading:false}}var n=jt(t);if(Mt(n))return;var r=Pt({state:this._value(),preAddEntity:this.akitaPreAddEntity,entities:n,idKey:this.idKey,options:e});if(r){Nt()&&wt("Add Entity");r.newState.loading=e.loading;this._setState((function(){return r.newState}));if(this.hasInitialUIState()){this.handleUICreation(true)}this.entityActions.next({type:At.Add,ids:r.newIds})}};e.prototype.update=function(e,n){var r=this;if(Vt(n)){t.prototype.update.call(this,e);return}var i=[];if(Lt(e)){i=this.ids.filter((function(t){return e(r.entities[t])}))}else{i=Et(e)?this.ids:jt(e)}if(Mt(i))return;Nt()&&wt("Update Entity",i);var o;this._setState((function(t){return Pe({idKey:r.idKey,ids:i,preUpdateEntity:r.akitaPreUpdateEntity,state:t,newStateOrFn:n,producerFn:r._producerFn,onEntityIdChanges:function(t,e){o={oldId:t,newId:e};r.entityIdChanges.next(Object.assign({},o,{pending:true}))}})}));if(o){this.entityIdChanges.next(Object.assign({},o,{pending:false}))}this.entityActions.next({type:At.Update,ids:i})};e.prototype.upsert=function(t,e,n,r){var i=this;if(r===void 0){r={}}var o=jt(t);var s=function(t){return function(e){return Ot(i.entities,e)===t}};var a=Lt(n)?r.baseClass:n?n.baseClass:undefined;var u=Lt(a);var c=o.filter(s(true));var f=o.filter(s(false)).map((function(t){var r;var o=typeof e==="function"?e({}):e;var s=Lt(n)?n(t,o):o;var c=Object.assign({},s,(r={},r[i.idKey]=t,r));if(u){return new a(c)}return c}));this.update(c,e);this.add(f);Nt()&&mt("Upsert Entity")};e.prototype.upsertMany=function(t,e){if(e===void 0){e={}}var n=[];var r=[];var i={};for(var o=0,s=t;o<s.length;o++){var a=s[o];var u=this.akitaPreCheckEntity(a);var c=u[this.idKey];if(Ot(this.entities,c)){var f=this._value().entities[c];var p=Object.assign({},this._value().entities[c],u);var h=e.baseClass?new e.baseClass(p):p;var l=this.akitaPreUpdateEntity(f,h);var d=l[this.idKey];i[d]=l;r.push(d)}else{var v=e.baseClass?new e.baseClass(u):u;var l=this.akitaPreAddEntity(v);var d=l[this.idKey];n.push(d);i[d]=l}}Nt()&&mt("Upsert Many");this._setState((function(t){return Object.assign({},t,{ids:n.length?__spreadArrays(t.ids,n):t.ids,entities:Object.assign({},t.entities,i),loading:!!e.loading})}));r.length&&this.entityActions.next({type:At.Update,ids:r});n.length&&this.entityActions.next({type:At.Add,ids:n});if(n.length&&this.hasUIStore()){this.handleUICreation(true)}};e.prototype.replace=function(t,e){var n=jt(t);if(Mt(n))return;var r={};for(var i=0,o=n;i<o.length;i++){var s=o[i];e[this.idKey]=s;r[s]=e}Nt()&&wt("Replace Entity",t);this._setState((function(t){return Object.assign({},t,{entities:Object.assign({},t.entities,r)})}))};e.prototype.move=function(t,e){var n=this.ids.slice();n.splice(e<0?n.length+e:e,0,n.splice(t,1)[0]);Nt()&&wt("Move Entity");this._setState((function(t){return Object.assign({},t,{entities:Object.assign({},t.entities),ids:n})}))};e.prototype.remove=function(t){var e=this;if(Mt(this.ids))return;var n=Rt(t);var r=[];if(Lt(t)){r=this.ids.filter((function(n){return t(e.entities[n])}))}else{r=n?jt(t):this.ids}if(Mt(r))return;Nt()&&wt("Remove Entity",r);this._setState((function(t){return Qt({state:t,ids:r})}));if(!n){this.setHasCache(false)}this.handleUIRemove(r);this.entityActions.next({type:At.Remove,ids:r})};e.prototype.updateActive=function(t){var e=jt(this.active);Nt()&&wt("Update Active",e);this.update(e,t)};e.prototype.setActive=function(t){var e=kt(t,this.ids,this.active);if(e===undefined){return}Nt()&&wt("Set Active",e);this._setActive(e)};e.prototype.addActive=function(t){var e=this;var n=jt(t);if(Mt(n))return;var r=n.every((function(t){return e.active.indexOf(t)>-1}));if(r)return;Nt()&&wt("Add Active",t);this._setState((function(t){var e=Array.from(new Set(__spreadArrays(t.active,n)));return Object.assign({},t,{active:e})}))};e.prototype.removeActive=function(t){var e=this;var n=jt(t);if(Mt(n))return;var r=n.some((function(t){return e.active.indexOf(t)>-1}));if(!r)return;Nt()&&wt("Remove Active",t);this._setState((function(t){return Object.assign({},t,{active:Array.isArray(t.active)?t.active.filter((function(t){return n.indexOf(t)===-1})):null})}))};e.prototype.toggleActive=function(t){var e=this;var n=jt(t);var r=function(t){return function(n){return e.active.includes(n)===t}};var i=n.filter(r(true));var o=n.filter(r(false));this.removeActive(i);this.addActive(o);Nt()&&mt("Toggle Active")};e.prototype.createUIStore=function(t,e){if(t===void 0){t={}}if(e===void 0){e={}}var n={name:"UI/"+this.storeName,idKey:this.idKey};this.ui=new xe(t,Object.assign({},n,e));return this.ui};e.prototype.destroy=function(){t.prototype.destroy.call(this);if(this.ui instanceof e){this.ui.destroy()}this.entityActions.complete()};e.prototype.akitaPreUpdateEntity=function(t,e){return e};e.prototype.akitaPreAddEntity=function(t){return t};e.prototype.akitaPreCheckEntity=function(t){return t};Object.defineProperty(e.prototype,"ids",{get:function(){return this._value().ids},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"entities",{get:function(){return this._value().entities},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"active",{get:function(){return this._value().active},enumerable:false,configurable:true});e.prototype._setActive=function(t){this._setState((function(e){return Object.assign({},e,{active:t})}))};e.prototype.handleUICreation=function(t){var e=this;if(t===void 0){t=false}var n=this.ids;var r=Lt(this.ui._akitaCreateEntityFn);var i;var o=function(t){var n;var i=e.entities[t];var o=r?e.ui._akitaCreateEntityFn(i):e.ui._akitaCreateEntityFn;return Object.assign((n={},n[e.idKey]=i[e.idKey],n),o)};if(t){i=this.ids.filter((function(t){return Vt(e.ui.entities[t])})).map(o)}else{i=n.map(o)}t?this.ui.add(i):this.ui.set(i)};e.prototype.hasInitialUIState=function(){return this.hasUIStore()&&Vt(this.ui._akitaCreateEntityFn)===false};e.prototype.handleUIRemove=function(t){if(this.hasUIStore()){this.ui.remove(t)}};e.prototype.hasUIStore=function(){return this.ui instanceof xe};return e}(Oe);g([Se(),b("design:type",Function),b("design:paramtypes",[Object,Object,Object,Object]),b("design:returntype",void 0)],je.prototype,"upsert",null);g([Se(),b("design:type",Function),b("design:paramtypes",[typeof(Ee=typeof T!=="undefined"&&T)==="function"?Ee:Object]),b("design:returntype",void 0)],je.prototype,"toggleActive",null);var xe=function(t){__extends(e,t);function e(e,n){if(e===void 0){e={}}if(n===void 0){n={}}return t.call(this,e,n)||this}e.prototype.setInitialEntityState=function(t){this._akitaCreateEntityFn=t};return e}(je);var Ae;(function(t){t["ASC"]="asc";t["DESC"]="desc"})(Ae||(Ae={}));function Te(t){return typeof t==="string"}var Ie="akitaQueryConfig";function Ce(t){return function(e,n){var r=Lt(t[0]);return t.some((function(t){if(r){return t(e)!==t(n)}return e[t]!==n[t]}))===false}}var Ne=function(){function t(t){this.store=t;this.__store__=t;if(Nt()){le[t.storeName]=this}}t.prototype.select=function(t){var e;if(Lt(t)){e=t}else if(Te(t)){e=function(e){return e[t]}}else if(Array.isArray(t)){return this.store._select((function(t){return t})).pipe(ut(Ce(t)),M((function(e){if(Lt(t[0])){return t.map((function(t){return t(e)}))}return t.reduce((function(t,n){t[n]=e[n];return t}),{})})))}else{e=function(t){return t}}return this.store._select(e)};t.prototype.selectLoading=function(){return this.select((function(t){return t.loading}))};t.prototype.selectError=function(){return this.select((function(t){return t.error}))};t.prototype.getValue=function(){return this.store._value()};t.prototype.selectHasCache=function(){return this.store._cache().asObservable()};t.prototype.getHasCache=function(){return this.store._cache().value};Object.defineProperty(t.prototype,"config",{get:function(){return this.constructor[Ie]},enumerable:false,configurable:true});return t}();t("Q",Ne);var Ue=function(t){return t.pipe(ot((function(t){return t!==null&&typeof t!=="undefined"})))};function Fe(t,e){if(e.split(".").length===1){return t}var n=e.split(".").slice(1).join(".");return n.split(".").reduce((function(t,e){return t&&t[e]}),t)}function ke(t,e,n){var r=e.split(".");if(r.length===1){return Object.assign({},t,n)}t=Object.assign({},t);var i=r.length-2;var o=e.split(".").slice(1);o.reduce((function(t,e,r){if(r!==i){t[e]=Object.assign({},t[e]);return t&&t[e]}t[e]=Array.isArray(t[e])||!Ut(t[e])?n:Object.assign({},t[e],n);return t&&t[e]}),t);return t}var Ke=new U(1);var Re=function(){function t(t,e){this.query=t;if(e&&e.resetFn){if(Xt().resettable){this.onReset(e.resetFn)}}}t.prototype.getQuery=function(){return this.query};t.prototype.getStore=function(){return this.getQuery().__store__};t.prototype.isEntityBased=function(t){return ue(t)};t.prototype.selectSource=function(t,e){var n=this;if(this.isEntityBased(t)){return this.getQuery().selectEntity(t).pipe(Ue)}if(e){return this.getQuery().select((function(t){return Fe(t,n.withStoreName(e))}))}return this.getQuery().select()};t.prototype.getSource=function(t,e){if(this.isEntityBased(t)){return this.getQuery().getEntity(t)}var n=this.getQuery().getValue();if(e){return Fe(n,this.withStoreName(e))}return n};t.prototype.withStoreName=function(t){return this.storeName+"."+t};Object.defineProperty(t.prototype,"storeName",{get:function(){return this.getStore().storeName},enumerable:false,configurable:true});t.prototype.updateStore=function(t,e,n){var r=this;if(this.isEntityBased(e)){this.getStore().update(e,t)}else{if(n){this.getStore()._setState((function(e){return ke(e,r.withStoreName(n),t)}));return}this.getStore()._setState((function(e){return Object.assign({},e,t)}))}};t.prototype.onReset=function(t){var e=this;var n=this.getStore().reset;this.getStore().reset=function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}setTimeout((function(){n.apply(e.getStore(),r);t()}))}};return t}();var Me={pagesControls:false,range:false,startWith:1,cacheTimeout:undefined,clearStoreWithCache:true};var Le=function(t){__extends(e,t);function e(e,n){if(n===void 0){n={}}var r=t.call(this,e,{resetFn:function(){r.initial=false;r.destroy({clearCache:true,currentPage:1})}})||this;r.query=e;r.config=n;r.metadata=new Map;r.pages=new Map;r.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]};r.initial=true;r.isLoading$=r.query.selectLoading().pipe(v(0));r.config=Object.assign(Me,n);var i=r.config,o=i.startWith,s=i.cacheTimeout;r.page=new E(o);if(k(s)){r.clearCacheSubscription=s.subscribe((function(){return r.clearCache()}))}return r}Object.defineProperty(e.prototype,"pageChanges",{get:function(){return this.page.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.pagination.currentPage},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.currentPage===1},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isLast",{get:function(){return this.currentPage===this.pagination.lastPage},enumerable:false,configurable:true});e.prototype.withControls=function(){this.config.pagesControls=true;return this};e.prototype.withRange=function(){this.config.range=true;return this};e.prototype.setLoading=function(t){if(t===void 0){t=true}this.getStore().setLoading(t)};e.prototype.update=function(t){this.pagination=t;this.addPage(t.data)};e.prototype.addPage=function(t){var e=this;this.pages.set(this.currentPage,{ids:t.map((function(t){return t[e.getStore().idKey]}))});this.getStore().upsertMany(t)};e.prototype.clearCache=function(t){if(t===void 0){t={}}if(!this.initial){mt("@Pagination - Clear Cache");if(t.clearStore!==false&&(this.config.clearStoreWithCache||t.clearStore)){this.getStore().remove()}this.pages=new Map;this.metadata=new Map}this.initial=false};e.prototype.clearPage=function(t){this.pages.delete(t)};e.prototype.destroy=function(t){var e=t===void 0?{}:t,n=e.clearCache,r=e.currentPage;if(this.clearCacheSubscription){this.clearCacheSubscription.unsubscribe()}if(n){this.clearCache()}if(!Vt(r)){this.setPage(r)}this.initial=true};e.prototype.isPageActive=function(t){return this.currentPage===t};e.prototype.setPage=function(t){if(t!==this.currentPage||!this.hasPage(t)){this.page.next(this.pagination.currentPage=t)}};e.prototype.nextPage=function(){if(this.currentPage!==this.pagination.lastPage){this.setPage(this.pagination.currentPage+1)}};e.prototype.prevPage=function(){if(this.pagination.currentPage>1){this.setPage(this.pagination.currentPage-1)}};e.prototype.setLastPage=function(){this.setPage(this.pagination.lastPage)};e.prototype.setFirstPage=function(){this.setPage(1)};e.prototype.hasPage=function(t){return this.pages.has(t)};e.prototype.getPage=function(t){var e=this;var n=this.pagination.currentPage;if(this.hasPage(n)){return this.selectPage(n)}else{this.setLoading(true);return et(t()).pipe(dt((function(t){n=t.currentPage;we((function(){e.setLoading(false);e.update(t)}));return e.selectPage(n)})))}};e.prototype.getQuery=function(){return this.query};e.prototype.refreshCurrentPage=function(){if(Et(this.currentPage)===false){this.clearPage(this.currentPage);this.setPage(this.currentPage)}};e.prototype.getFrom=function(){if(this.isFirst){return 1}return(this.currentPage-1)*this.pagination.perPage+1};e.prototype.getTo=function(){if(this.isLast){return this.pagination.total}return this.currentPage*this.pagination.perPage};e.prototype.selectPage=function(t){var e=this;return this.query.selectAll({asObject:true}).pipe(pt(1),M((function(n){var r=Object.assign({},e.pagination,{data:e.pages.get(t).ids.map((function(t){return n[t]}))});var i=e.config,o=i.range,s=i.pagesControls;if(isNaN(e.pagination.total)){if(r.lastPage===1){r.total=r.data?r.data.length:0}else{r.total=r.perPage*r.lastPage}e.pagination.total=r.total}if(o){r.from=e.getFrom();r.to=e.getTo()}if(s){r.pageControls=Ve(e.pagination.total,e.pagination.perPage)}return r})))};return e}(Re);g([St("@Pagination - New Page"),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],Le.prototype,"update",null);function Ve(t,e){var n=Math.ceil(t/e);var r=[];for(var i=0;i<n;i++){r.push(i+1)}return r}var We;(function(t){t["Update"]="UPDATE"})(We||(We={}));var Ye;(function(t){t["Update"]="UPDATE";t["AddEntities"]="ADD_ENTITIES";t["SetEntities"]="SET_ENTITIES";t["UpdateEntities"]="UPDATE_ENTITIES";t["RemoveEntities"]="REMOVE_ENTITIES";t["UpsertEntities"]="UPSERT_ENTITIES";t["UpsertManyEntities"]="UPSERT_MANY_ENTITIES"})(Ye||(Ye={}))}}}));