@flarehr/apollo-benefits 0.1.109 → 0.3.2940

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 (215) hide show
  1. package/README.md +19 -0
  2. package/dist/assets/@splitsoftware-3446d8d5.js +18 -0
  3. package/dist/assets/all_tab_color-548783b9.svg +21 -0
  4. package/dist/assets/all_tab_gray-a5051313.svg +6 -0
  5. package/dist/assets/check-57fe1dcb.svg +15 -0
  6. package/dist/assets/datadog-78cdac02.js +5 -0
  7. package/dist/assets/date-fns-cebe152d.js +1 -0
  8. package/dist/assets/default_backdrop-fdd955b8.png +0 -0
  9. package/dist/assets/external_link-599a0aec.svg +3 -0
  10. package/dist/assets/framer-motion-a9ae3803.js +1 -0
  11. package/dist/assets/index-7fd4ded4.js +5 -0
  12. package/dist/assets/index-bac93cdd.js +35 -0
  13. package/dist/assets/index-ed3c23ba.css +1 -0
  14. package/dist/assets/lodash-5d893f8c.js +1 -0
  15. package/dist/assets/logo-a34e9b4b.png +0 -0
  16. package/dist/assets/oidc-client-6f6e47c2.js +101 -0
  17. package/dist/assets/padlock-8c081120.svg +26 -0
  18. package/dist/assets/suitcase-6471ad05.svg +17 -0
  19. package/dist/assets/vendor-00105f87.js +792 -0
  20. package/dist/assets/warning-a7f1af23.svg +14 -0
  21. package/dist/assets/welcome_image_mobile-dbde6c80.png +0 -0
  22. package/dist/assets/welcome_image_v2-869c59e4.png +0 -0
  23. package/dist/assets/wellbeing_banner-6903d615.png +0 -0
  24. package/dist/assets/workplace_link_banner_mobile-6ebaa24b.png +0 -0
  25. package/dist/assets/workplace_link_banner_v2-c81ed849.png +0 -0
  26. package/dist/config.json +14 -0
  27. package/dist/favicon.ico +0 -0
  28. package/dist/icons/android-chrome-192x192.png +0 -0
  29. package/dist/icons/android-chrome-512x512.png +0 -0
  30. package/dist/icons/apple-touch-icon.png +0 -0
  31. package/dist/icons/favicon-16x16.png +0 -0
  32. package/dist/icons/favicon-32x32.png +0 -0
  33. package/dist/index.html +115 -0
  34. package/dist/manifest.json +21 -0
  35. package/dist/sw-esm.js +16 -0
  36. package/package.json +129 -60
  37. package/LICENSE +0 -21
  38. package/dist/lib/apollo-benefits/apollo-benefits.esm.js +0 -1
  39. package/dist/lib/apollo-benefits/assets/car-placeholder.svg +0 -5
  40. package/dist/lib/apollo-benefits/assets/check.svg +0 -13
  41. package/dist/lib/apollo-benefits/index.esm.js +0 -0
  42. package/dist/lib/apollo-benefits/p-06a1f65f.js +0 -1
  43. package/dist/lib/apollo-benefits/p-077d7f8d.entry.js +0 -1
  44. package/dist/lib/apollo-benefits/p-14054f15.js +0 -1
  45. package/dist/lib/apollo-benefits/p-24a37d64.js +0 -1
  46. package/dist/lib/apollo-benefits/p-2b3f3b72.entry.js +0 -1
  47. package/dist/lib/apollo-benefits/p-3111d565.entry.js +0 -1
  48. package/dist/lib/apollo-benefits/p-327396fa.entry.js +0 -1
  49. package/dist/lib/apollo-benefits/p-3d4d2683.js +0 -1
  50. package/dist/lib/apollo-benefits/p-4474bcf8.entry.js +0 -1
  51. package/dist/lib/apollo-benefits/p-4bff99bd.entry.js +0 -1
  52. package/dist/lib/apollo-benefits/p-50fe790f.js +0 -1
  53. package/dist/lib/apollo-benefits/p-53bcbd1d.js +0 -1
  54. package/dist/lib/apollo-benefits/p-68c136da.js +0 -1
  55. package/dist/lib/apollo-benefits/p-6bd16f5b.js +0 -1
  56. package/dist/lib/apollo-benefits/p-71dbc8ff.entry.js +0 -1
  57. package/dist/lib/apollo-benefits/p-774d9bc5.entry.js +0 -1
  58. package/dist/lib/apollo-benefits/p-7a2ca86d.entry.js +0 -1
  59. package/dist/lib/apollo-benefits/p-7a572b50.js +0 -1
  60. package/dist/lib/apollo-benefits/p-7c2cd94a.entry.js +0 -1
  61. package/dist/lib/apollo-benefits/p-839493d7.entry.js +0 -1
  62. package/dist/lib/apollo-benefits/p-a24d169b.entry.js +0 -1
  63. package/dist/lib/apollo-benefits/p-b33fc683.js +0 -1
  64. package/dist/lib/apollo-benefits/p-beb8f728.entry.js +0 -1
  65. package/dist/lib/apollo-benefits/p-e241f55b.entry.js +0 -1
  66. package/dist/lib/apollo-benefits/p-e28cee25.js +0 -1
  67. package/dist/lib/apollo-benefits/p-e3cf51f1.entry.js +0 -1
  68. package/dist/lib/apollo-benefits/p-ef8ea713.entry.js +0 -1
  69. package/dist/lib/apollo-benefits/p-f0a7c9fa.entry.js +0 -1
  70. package/dist/lib/apollo-benefits/p-f603197d.js +0 -15
  71. package/dist/lib/cjs/active-router-0ecaf2b8.js +0 -75
  72. package/dist/lib/cjs/ap-ben-choose-vehicle-section_4.cjs.entry.js +0 -2708
  73. package/dist/lib/cjs/ap-ben-complete-section_4.cjs.entry.js +0 -108
  74. package/dist/lib/cjs/ap-ben-notifications-section.cjs.entry.js +0 -238
  75. package/dist/lib/cjs/apollo-benefits.cjs.js +0 -25
  76. package/dist/lib/cjs/app-globals-67583b8b.js +0 -12
  77. package/dist/lib/cjs/async-6a7926f0.js +0 -753
  78. package/dist/lib/cjs/cars-calculator-app.cjs.entry.js +0 -55
  79. package/dist/lib/cjs/cars-calculator.service-c0e51584.js +0 -904
  80. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  81. package/dist/lib/cjs/datorama-akita-31d23240.js +0 -2551
  82. package/dist/lib/cjs/delay-d31618c3.js +0 -206
  83. package/dist/lib/cjs/distinctUntilChanged-e8538790.js +0 -371
  84. package/dist/lib/cjs/dom-utils-b8befdd5.js +0 -63
  85. package/dist/lib/cjs/fl-button_2.cjs.entry.js +0 -50
  86. package/dist/lib/cjs/fl-dropdown-async_2.cjs.entry.js +0 -467
  87. package/dist/lib/cjs/fl-dropdown.cjs.entry.js +0 -232
  88. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -91
  89. package/dist/lib/cjs/index-f1fadf90.js +0 -1735
  90. package/dist/lib/cjs/index.cjs.js +0 -2
  91. package/dist/lib/cjs/loader.cjs.js +0 -27
  92. package/dist/lib/cjs/location-utils-36fe7e5e.js +0 -237
  93. package/dist/lib/cjs/match-path-be4ea5f6.js +0 -279
  94. package/dist/lib/cjs/session.query-d61ba7ec.js +0 -1731
  95. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  96. package/dist/lib/cjs/stencil-route-link.cjs.entry.js +0 -78
  97. package/dist/lib/cjs/stencil-route-switch.cjs.entry.js +0 -104
  98. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  99. package/dist/lib/cjs/stencil-route.cjs.entry.js +0 -97
  100. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  101. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  102. package/dist/lib/cjs/stencil-router.cjs.entry.js +0 -640
  103. package/dist/lib/collection/assets/image/complete.svg +0 -122
  104. package/dist/lib/collection/collection-manifest.json +0 -53
  105. package/dist/lib/collection/components/cars-calculator-app/api/api-client.js +0 -5
  106. package/dist/lib/collection/components/cars-calculator-app/api/cars-calculator.api.js +0 -45
  107. package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.css +0 -22
  108. package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.js +0 -97
  109. package/dist/lib/collection/components/cars-calculator-app/modal-section/modal-section.css +0 -0
  110. package/dist/lib/collection/components/cars-calculator-app/modal-section/modal-section.js +0 -144
  111. package/dist/lib/collection/components/cars-calculator-app/notifications-section/notifications-section.js +0 -25
  112. package/dist/lib/collection/components/cars-calculator-app/pages/assets/car-placeholder.svg +0 -5
  113. package/dist/lib/collection/components/cars-calculator-app/pages/assets/check.svg +0 -13
  114. package/dist/lib/collection/components/cars-calculator-app/pages/choose-vehicle-section.component.js +0 -196
  115. package/dist/lib/collection/components/cars-calculator-app/pages/complete-section.component.js +0 -38
  116. package/dist/lib/collection/components/cars-calculator-app/pages/cost-breakdown-section.component.js +0 -45
  117. package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.css +0 -34
  118. package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.js +0 -85
  119. package/dist/lib/collection/components/cars-calculator-app/pages/personal-info-section.component.js +0 -66
  120. package/dist/lib/collection/components/cars-calculator-app/pages/quote-result-section.component.js +0 -86
  121. package/dist/lib/collection/components/cars-calculator-app/pages/submit-quote-section.component.js +0 -75
  122. package/dist/lib/collection/components/cars-calculator-app/services/app-configuration.service.js +0 -13
  123. package/dist/lib/collection/components/cars-calculator-app/services/cars-calculator.service.js +0 -106
  124. package/dist/lib/collection/components/cars-calculator-app/services/notifications.service.js +0 -37
  125. package/dist/lib/collection/components/cars-calculator-app/services/notifications.store.js +0 -3
  126. package/dist/lib/collection/components/cars-calculator-app/services/session.query.js +0 -35
  127. package/dist/lib/collection/components/cars-calculator-app/services/session.store.js +0 -78
  128. package/dist/lib/collection/global/config.js +0 -2
  129. package/dist/lib/collection/global/main.dev.js +0 -5
  130. package/dist/lib/collection/global/main.js +0 -5
  131. package/dist/lib/collection/index.js +0 -2
  132. package/dist/lib/collection/utils/config.js +0 -2
  133. package/dist/lib/collection/utils/index.js +0 -15
  134. package/dist/lib/collection/utils/lazy.js +0 -29
  135. package/dist/lib/esm/active-router-7c2ca849.js +0 -73
  136. package/dist/lib/esm/ap-ben-choose-vehicle-section_4.entry.js +0 -2701
  137. package/dist/lib/esm/ap-ben-complete-section_4.entry.js +0 -101
  138. package/dist/lib/esm/ap-ben-notifications-section.entry.js +0 -234
  139. package/dist/lib/esm/apollo-benefits.js +0 -23
  140. package/dist/lib/esm/app-globals-65714cca.js +0 -10
  141. package/dist/lib/esm/async-68e9cad7.js +0 -738
  142. package/dist/lib/esm/cars-calculator-app.entry.js +0 -51
  143. package/dist/lib/esm/cars-calculator.service-27826530.js +0 -897
  144. package/dist/lib/esm/context-consumer.entry.js +0 -25
  145. package/dist/lib/esm/datorama-akita-c87196a0.js +0 -2545
  146. package/dist/lib/esm/delay-115d4292.js +0 -200
  147. package/dist/lib/esm/distinctUntilChanged-bf69e0f8.js +0 -363
  148. package/dist/lib/esm/dom-utils-109a7d75.js +0 -55
  149. package/dist/lib/esm/fl-button_2.entry.js +0 -45
  150. package/dist/lib/esm/fl-dropdown-async_2.entry.js +0 -462
  151. package/dist/lib/esm/fl-dropdown.entry.js +0 -228
  152. package/dist/lib/esm/fl-style-guide.entry.js +0 -87
  153. package/dist/lib/esm/index-19c4d245.js +0 -1703
  154. package/dist/lib/esm/index.js +0 -1
  155. package/dist/lib/esm/loader.js +0 -23
  156. package/dist/lib/esm/location-utils-312665d3.js +0 -226
  157. package/dist/lib/esm/match-path-4b5c7d98.js +0 -276
  158. package/dist/lib/esm/polyfills/core-js.js +0 -11
  159. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  160. package/dist/lib/esm/polyfills/dom.js +0 -79
  161. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  162. package/dist/lib/esm/polyfills/index.js +0 -34
  163. package/dist/lib/esm/polyfills/system.js +0 -6
  164. package/dist/lib/esm/session.query-0f1c9503.js +0 -1719
  165. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  166. package/dist/lib/esm/stencil-route-link.entry.js +0 -74
  167. package/dist/lib/esm/stencil-route-switch.entry.js +0 -100
  168. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  169. package/dist/lib/esm/stencil-route.entry.js +0 -93
  170. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  171. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  172. package/dist/lib/esm/stencil-router.entry.js +0 -636
  173. package/dist/lib/index.cjs.js +0 -1
  174. package/dist/lib/index.js +0 -1
  175. package/dist/lib/loader/cdn.js +0 -3
  176. package/dist/lib/loader/index.cjs.js +0 -3
  177. package/dist/lib/loader/index.d.ts +0 -13
  178. package/dist/lib/loader/index.es2017.js +0 -3
  179. package/dist/lib/loader/index.js +0 -4
  180. package/dist/lib/loader/package.json +0 -10
  181. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  182. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  183. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  184. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  185. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  186. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  187. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  188. package/dist/lib/types/components/cars-calculator-app/api/api-client.d.ts +0 -2
  189. package/dist/lib/types/components/cars-calculator-app/api/cars-calculator.api.d.ts +0 -99
  190. package/dist/lib/types/components/cars-calculator-app/cars-calculator-app.d.ts +0 -17
  191. package/dist/lib/types/components/cars-calculator-app/modal-section/modal-section.d.ts +0 -16
  192. package/dist/lib/types/components/cars-calculator-app/notifications-section/notifications-section.d.ts +0 -5
  193. package/dist/lib/types/components/cars-calculator-app/pages/choose-vehicle-section.component.d.ts +0 -23
  194. package/dist/lib/types/components/cars-calculator-app/pages/complete-section.component.d.ts +0 -5
  195. package/dist/lib/types/components/cars-calculator-app/pages/cost-breakdown-section.component.d.ts +0 -6
  196. package/dist/lib/types/components/cars-calculator-app/pages/model-variants-section.component.d.ts +0 -12
  197. package/dist/lib/types/components/cars-calculator-app/pages/personal-info-section.component.d.ts +0 -10
  198. package/dist/lib/types/components/cars-calculator-app/pages/quote-result-section.component.d.ts +0 -13
  199. package/dist/lib/types/components/cars-calculator-app/pages/submit-quote-section.component.d.ts +0 -10
  200. package/dist/lib/types/components/cars-calculator-app/services/app-configuration.service.d.ts +0 -7
  201. package/dist/lib/types/components/cars-calculator-app/services/cars-calculator.service.d.ts +0 -11
  202. package/dist/lib/types/components/cars-calculator-app/services/notifications.service.d.ts +0 -15
  203. package/dist/lib/types/components/cars-calculator-app/services/notifications.store.d.ts +0 -14
  204. package/dist/lib/types/components/cars-calculator-app/services/session.query.d.ts +0 -25
  205. package/dist/lib/types/components/cars-calculator-app/services/session.store.d.ts +0 -77
  206. package/dist/lib/types/components.d.ts +0 -170
  207. package/dist/lib/types/global/config.d.ts +0 -2
  208. package/dist/lib/types/global/main.d.ts +0 -1
  209. package/dist/lib/types/global/main.dev.d.ts +0 -1
  210. package/dist/lib/types/index.d.ts +0 -2
  211. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  212. package/dist/lib/types/utils/config.d.ts +0 -2
  213. package/dist/lib/types/utils/index.d.ts +0 -7
  214. package/dist/lib/types/utils/lazy.d.ts +0 -12
  215. package/readme.md +0 -1
@@ -1,206 +0,0 @@
1
- 'use strict';
2
-
3
- const async = require('./async-6a7926f0.js');
4
-
5
- const EMPTY = new async.Observable(subscriber => subscriber.complete());
6
- function empty(scheduler) {
7
- return scheduler ? emptyScheduled(scheduler) : EMPTY;
8
- }
9
- function emptyScheduled(scheduler) {
10
- return new async.Observable(subscriber => scheduler.schedule(() => subscriber.complete()));
11
- }
12
-
13
- function isScheduler(value) {
14
- return value && typeof value.schedule === 'function';
15
- }
16
-
17
- function fromArray(input, scheduler) {
18
- if (!scheduler) {
19
- return new async.Observable(async.subscribeToArray(input));
20
- }
21
- else {
22
- return async.scheduleArray(input, scheduler);
23
- }
24
- }
25
-
26
- function of(...args) {
27
- let scheduler = args[args.length - 1];
28
- if (isScheduler(scheduler)) {
29
- args.pop();
30
- return async.scheduleArray(args, scheduler);
31
- }
32
- else {
33
- return fromArray(args);
34
- }
35
- }
36
-
37
- function throwError(error, scheduler) {
38
- if (!scheduler) {
39
- return new async.Observable(subscriber => subscriber.error(error));
40
- }
41
- else {
42
- return new async.Observable(subscriber => scheduler.schedule(dispatch, 0, { error, subscriber }));
43
- }
44
- }
45
- function dispatch({ error, subscriber }) {
46
- subscriber.error(error);
47
- }
48
-
49
- var NotificationKind;
50
- (function (NotificationKind) {
51
- NotificationKind["NEXT"] = "N";
52
- NotificationKind["ERROR"] = "E";
53
- NotificationKind["COMPLETE"] = "C";
54
- })(NotificationKind || (NotificationKind = {}));
55
- class Notification {
56
- constructor(kind, value, error) {
57
- this.kind = kind;
58
- this.value = value;
59
- this.error = error;
60
- this.hasValue = kind === 'N';
61
- }
62
- observe(observer) {
63
- switch (this.kind) {
64
- case 'N':
65
- return observer.next && observer.next(this.value);
66
- case 'E':
67
- return observer.error && observer.error(this.error);
68
- case 'C':
69
- return observer.complete && observer.complete();
70
- }
71
- }
72
- do(next, error, complete) {
73
- const kind = this.kind;
74
- switch (kind) {
75
- case 'N':
76
- return next && next(this.value);
77
- case 'E':
78
- return error && error(this.error);
79
- case 'C':
80
- return complete && complete();
81
- }
82
- }
83
- accept(nextOrObserver, error, complete) {
84
- if (nextOrObserver && typeof nextOrObserver.next === 'function') {
85
- return this.observe(nextOrObserver);
86
- }
87
- else {
88
- return this.do(nextOrObserver, error, complete);
89
- }
90
- }
91
- toObservable() {
92
- const kind = this.kind;
93
- switch (kind) {
94
- case 'N':
95
- return of(this.value);
96
- case 'E':
97
- return throwError(this.error);
98
- case 'C':
99
- return empty();
100
- }
101
- throw new Error('unexpected notification kind value');
102
- }
103
- static createNext(value) {
104
- if (typeof value !== 'undefined') {
105
- return new Notification('N', value);
106
- }
107
- return Notification.undefinedValueNotification;
108
- }
109
- static createError(err) {
110
- return new Notification('E', undefined, err);
111
- }
112
- static createComplete() {
113
- return Notification.completeNotification;
114
- }
115
- }
116
- Notification.completeNotification = new Notification('C');
117
- Notification.undefinedValueNotification = new Notification('N', undefined);
118
-
119
- function isDate(value) {
120
- return value instanceof Date && !isNaN(+value);
121
- }
122
-
123
- function delay(delay, scheduler = async.async) {
124
- const absoluteDelay = isDate(delay);
125
- const delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);
126
- return (source) => source.lift(new DelayOperator(delayFor, scheduler));
127
- }
128
- class DelayOperator {
129
- constructor(delay, scheduler) {
130
- this.delay = delay;
131
- this.scheduler = scheduler;
132
- }
133
- call(subscriber, source) {
134
- return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));
135
- }
136
- }
137
- class DelaySubscriber extends async.Subscriber {
138
- constructor(destination, delay, scheduler) {
139
- super(destination);
140
- this.delay = delay;
141
- this.scheduler = scheduler;
142
- this.queue = [];
143
- this.active = false;
144
- this.errored = false;
145
- }
146
- static dispatch(state) {
147
- const source = state.source;
148
- const queue = source.queue;
149
- const scheduler = state.scheduler;
150
- const destination = state.destination;
151
- while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {
152
- queue.shift().notification.observe(destination);
153
- }
154
- if (queue.length > 0) {
155
- const delay = Math.max(0, queue[0].time - scheduler.now());
156
- this.schedule(state, delay);
157
- }
158
- else {
159
- this.unsubscribe();
160
- source.active = false;
161
- }
162
- }
163
- _schedule(scheduler) {
164
- this.active = true;
165
- const destination = this.destination;
166
- destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {
167
- source: this, destination: this.destination, scheduler: scheduler
168
- }));
169
- }
170
- scheduleNotification(notification) {
171
- if (this.errored === true) {
172
- return;
173
- }
174
- const scheduler = this.scheduler;
175
- const message = new DelayMessage(scheduler.now() + this.delay, notification);
176
- this.queue.push(message);
177
- if (this.active === false) {
178
- this._schedule(scheduler);
179
- }
180
- }
181
- _next(value) {
182
- this.scheduleNotification(Notification.createNext(value));
183
- }
184
- _error(err) {
185
- this.errored = true;
186
- this.queue = [];
187
- this.destination.error(err);
188
- this.unsubscribe();
189
- }
190
- _complete() {
191
- this.scheduleNotification(Notification.createComplete());
192
- this.unsubscribe();
193
- }
194
- }
195
- class DelayMessage {
196
- constructor(time, notification) {
197
- this.time = time;
198
- this.notification = notification;
199
- }
200
- }
201
-
202
- exports.Notification = Notification;
203
- exports.delay = delay;
204
- exports.empty = empty;
205
- exports.isScheduler = isScheduler;
206
- exports.of = of;
@@ -1,371 +0,0 @@
1
- 'use strict';
2
-
3
- const async = require('./async-6a7926f0.js');
4
-
5
- function map(project, thisArg) {
6
- return function mapOperation(source) {
7
- if (typeof project !== 'function') {
8
- throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');
9
- }
10
- return source.lift(new MapOperator(project, thisArg));
11
- };
12
- }
13
- class MapOperator {
14
- constructor(project, thisArg) {
15
- this.project = project;
16
- this.thisArg = thisArg;
17
- }
18
- call(subscriber, source) {
19
- return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));
20
- }
21
- }
22
- class MapSubscriber extends async.Subscriber {
23
- constructor(destination, project, thisArg) {
24
- super(destination);
25
- this.project = project;
26
- this.count = 0;
27
- this.thisArg = thisArg || this;
28
- }
29
- _next(value) {
30
- let result;
31
- try {
32
- result = this.project.call(this.thisArg, value, this.count++);
33
- }
34
- catch (err) {
35
- this.destination.error(err);
36
- return;
37
- }
38
- this.destination.next(result);
39
- }
40
- }
41
-
42
- const subscribeToPromise = (promise) => (subscriber) => {
43
- promise.then((value) => {
44
- if (!subscriber.closed) {
45
- subscriber.next(value);
46
- subscriber.complete();
47
- }
48
- }, (err) => subscriber.error(err))
49
- .then(null, async.hostReportError);
50
- return subscriber;
51
- };
52
-
53
- function getSymbolIterator() {
54
- if (typeof Symbol !== 'function' || !Symbol.iterator) {
55
- return '@@iterator';
56
- }
57
- return Symbol.iterator;
58
- }
59
- const iterator = getSymbolIterator();
60
-
61
- const subscribeToIterable = (iterable) => (subscriber) => {
62
- const iterator$1 = iterable[iterator]();
63
- do {
64
- let item;
65
- try {
66
- item = iterator$1.next();
67
- }
68
- catch (err) {
69
- subscriber.error(err);
70
- return subscriber;
71
- }
72
- if (item.done) {
73
- subscriber.complete();
74
- break;
75
- }
76
- subscriber.next(item.value);
77
- if (subscriber.closed) {
78
- break;
79
- }
80
- } while (true);
81
- if (typeof iterator$1.return === 'function') {
82
- subscriber.add(() => {
83
- if (iterator$1.return) {
84
- iterator$1.return();
85
- }
86
- });
87
- }
88
- return subscriber;
89
- };
90
-
91
- const subscribeToObservable = (obj) => (subscriber) => {
92
- const obs = obj[async.observable]();
93
- if (typeof obs.subscribe !== 'function') {
94
- throw new TypeError('Provided object does not correctly implement Symbol.observable');
95
- }
96
- else {
97
- return obs.subscribe(subscriber);
98
- }
99
- };
100
-
101
- const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');
102
-
103
- function isPromise(value) {
104
- return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
105
- }
106
-
107
- const subscribeTo = (result) => {
108
- if (!!result && typeof result[async.observable] === 'function') {
109
- return subscribeToObservable(result);
110
- }
111
- else if (isArrayLike(result)) {
112
- return async.subscribeToArray(result);
113
- }
114
- else if (isPromise(result)) {
115
- return subscribeToPromise(result);
116
- }
117
- else if (!!result && typeof result[iterator] === 'function') {
118
- return subscribeToIterable(result);
119
- }
120
- else {
121
- const value = async.isObject(result) ? 'an invalid object' : `'${result}'`;
122
- const msg = `You provided ${value} where a stream was expected.`
123
- + ' You can provide an Observable, Promise, Array, or Iterable.';
124
- throw new TypeError(msg);
125
- }
126
- };
127
-
128
- function scheduleObservable(input, scheduler) {
129
- return new async.Observable(subscriber => {
130
- const sub = new async.Subscription();
131
- sub.add(scheduler.schedule(() => {
132
- const observable = input[async.observable]();
133
- sub.add(observable.subscribe({
134
- next(value) { sub.add(scheduler.schedule(() => subscriber.next(value))); },
135
- error(err) { sub.add(scheduler.schedule(() => subscriber.error(err))); },
136
- complete() { sub.add(scheduler.schedule(() => subscriber.complete())); },
137
- }));
138
- }));
139
- return sub;
140
- });
141
- }
142
-
143
- function schedulePromise(input, scheduler) {
144
- return new async.Observable(subscriber => {
145
- const sub = new async.Subscription();
146
- sub.add(scheduler.schedule(() => input.then(value => {
147
- sub.add(scheduler.schedule(() => {
148
- subscriber.next(value);
149
- sub.add(scheduler.schedule(() => subscriber.complete()));
150
- }));
151
- }, err => {
152
- sub.add(scheduler.schedule(() => subscriber.error(err)));
153
- })));
154
- return sub;
155
- });
156
- }
157
-
158
- function scheduleIterable(input, scheduler) {
159
- if (!input) {
160
- throw new Error('Iterable cannot be null');
161
- }
162
- return new async.Observable(subscriber => {
163
- const sub = new async.Subscription();
164
- let iterator$1;
165
- sub.add(() => {
166
- if (iterator$1 && typeof iterator$1.return === 'function') {
167
- iterator$1.return();
168
- }
169
- });
170
- sub.add(scheduler.schedule(() => {
171
- iterator$1 = input[iterator]();
172
- sub.add(scheduler.schedule(function () {
173
- if (subscriber.closed) {
174
- return;
175
- }
176
- let value;
177
- let done;
178
- try {
179
- const result = iterator$1.next();
180
- value = result.value;
181
- done = result.done;
182
- }
183
- catch (err) {
184
- subscriber.error(err);
185
- return;
186
- }
187
- if (done) {
188
- subscriber.complete();
189
- }
190
- else {
191
- subscriber.next(value);
192
- this.schedule();
193
- }
194
- }));
195
- }));
196
- return sub;
197
- });
198
- }
199
-
200
- function isInteropObservable(input) {
201
- return input && typeof input[async.observable] === 'function';
202
- }
203
-
204
- function isIterable(input) {
205
- return input && typeof input[iterator] === 'function';
206
- }
207
-
208
- function scheduled(input, scheduler) {
209
- if (input != null) {
210
- if (isInteropObservable(input)) {
211
- return scheduleObservable(input, scheduler);
212
- }
213
- else if (isPromise(input)) {
214
- return schedulePromise(input, scheduler);
215
- }
216
- else if (isArrayLike(input)) {
217
- return async.scheduleArray(input, scheduler);
218
- }
219
- else if (isIterable(input) || typeof input === 'string') {
220
- return scheduleIterable(input, scheduler);
221
- }
222
- }
223
- throw new TypeError((input !== null && typeof input || input) + ' is not observable');
224
- }
225
-
226
- function from(input, scheduler) {
227
- if (!scheduler) {
228
- if (input instanceof async.Observable) {
229
- return input;
230
- }
231
- return new async.Observable(subscribeTo(input));
232
- }
233
- else {
234
- return scheduled(input, scheduler);
235
- }
236
- }
237
-
238
- class SimpleInnerSubscriber extends async.Subscriber {
239
- constructor(parent) {
240
- super();
241
- this.parent = parent;
242
- }
243
- _next(value) {
244
- this.parent.notifyNext(value);
245
- }
246
- _error(error) {
247
- this.parent.notifyError(error);
248
- this.unsubscribe();
249
- }
250
- _complete() {
251
- this.parent.notifyComplete();
252
- this.unsubscribe();
253
- }
254
- }
255
- class SimpleOuterSubscriber extends async.Subscriber {
256
- notifyNext(innerValue) {
257
- this.destination.next(innerValue);
258
- }
259
- notifyError(err) {
260
- this.destination.error(err);
261
- }
262
- notifyComplete() {
263
- this.destination.complete();
264
- }
265
- }
266
- function innerSubscribe(result, innerSubscriber) {
267
- if (innerSubscriber.closed) {
268
- return undefined;
269
- }
270
- if (result instanceof async.Observable) {
271
- return result.subscribe(innerSubscriber);
272
- }
273
- return subscribeTo(result)(innerSubscriber);
274
- }
275
-
276
- function filter(predicate, thisArg) {
277
- return function filterOperatorFunction(source) {
278
- return source.lift(new FilterOperator(predicate, thisArg));
279
- };
280
- }
281
- class FilterOperator {
282
- constructor(predicate, thisArg) {
283
- this.predicate = predicate;
284
- this.thisArg = thisArg;
285
- }
286
- call(subscriber, source) {
287
- return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));
288
- }
289
- }
290
- class FilterSubscriber extends async.Subscriber {
291
- constructor(destination, predicate, thisArg) {
292
- super(destination);
293
- this.predicate = predicate;
294
- this.thisArg = thisArg;
295
- this.count = 0;
296
- }
297
- _next(value) {
298
- let result;
299
- try {
300
- result = this.predicate.call(this.thisArg, value, this.count++);
301
- }
302
- catch (err) {
303
- this.destination.error(err);
304
- return;
305
- }
306
- if (result) {
307
- this.destination.next(value);
308
- }
309
- }
310
- }
311
-
312
- function distinctUntilChanged(compare, keySelector) {
313
- return (source) => source.lift(new DistinctUntilChangedOperator(compare, keySelector));
314
- }
315
- class DistinctUntilChangedOperator {
316
- constructor(compare, keySelector) {
317
- this.compare = compare;
318
- this.keySelector = keySelector;
319
- }
320
- call(subscriber, source) {
321
- return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));
322
- }
323
- }
324
- class DistinctUntilChangedSubscriber extends async.Subscriber {
325
- constructor(destination, compare, keySelector) {
326
- super(destination);
327
- this.keySelector = keySelector;
328
- this.hasKey = false;
329
- if (typeof compare === 'function') {
330
- this.compare = compare;
331
- }
332
- }
333
- compare(x, y) {
334
- return x === y;
335
- }
336
- _next(value) {
337
- let key;
338
- try {
339
- const { keySelector } = this;
340
- key = keySelector ? keySelector(value) : value;
341
- }
342
- catch (err) {
343
- return this.destination.error(err);
344
- }
345
- let result = false;
346
- if (this.hasKey) {
347
- try {
348
- const { compare } = this;
349
- result = compare(this.key, key);
350
- }
351
- catch (err) {
352
- return this.destination.error(err);
353
- }
354
- }
355
- else {
356
- this.hasKey = true;
357
- }
358
- if (!result) {
359
- this.key = key;
360
- this.destination.next(value);
361
- }
362
- }
363
- }
364
-
365
- exports.SimpleInnerSubscriber = SimpleInnerSubscriber;
366
- exports.SimpleOuterSubscriber = SimpleOuterSubscriber;
367
- exports.distinctUntilChanged = distinctUntilChanged;
368
- exports.filter = filter;
369
- exports.from = from;
370
- exports.innerSubscribe = innerSubscribe;
371
- exports.map = map;
@@ -1,63 +0,0 @@
1
- 'use strict';
2
-
3
- const getConfirmation = (win, message, callback) => (callback(win.confirm(message)));
4
- const isModifiedEvent = (ev) => (ev.metaKey || ev.altKey || ev.ctrlKey || ev.shiftKey);
5
- /**
6
- * Returns true if the HTML5 history API is supported. Taken from Modernizr.
7
- *
8
- * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
9
- * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
10
- * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
11
- */
12
- const supportsHistory = (win) => {
13
- const ua = win.navigator.userAgent;
14
- if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
15
- ua.indexOf('Mobile Safari') !== -1 &&
16
- ua.indexOf('Chrome') === -1 &&
17
- ua.indexOf('Windows Phone') === -1) {
18
- return false;
19
- }
20
- return win.history && 'pushState' in win.history;
21
- };
22
- /**
23
- * Returns true if browser fires popstate on hash change.
24
- * IE10 and IE11 do not.
25
- */
26
- const supportsPopStateOnHashChange = (nav) => (nav.userAgent.indexOf('Trident') === -1);
27
- /**
28
- * Returns false if using go(n) with hash history causes a full page reload.
29
- */
30
- const supportsGoWithoutReloadUsingHash = (nav) => (nav.userAgent.indexOf('Firefox') === -1);
31
- const isExtraneousPopstateEvent = (nav, event) => (event.state === undefined &&
32
- nav.userAgent.indexOf('CriOS') === -1);
33
- const storageAvailable = (win, type) => {
34
- const storage = win[type];
35
- const x = '__storage_test__';
36
- try {
37
- storage.setItem(x, x);
38
- storage.removeItem(x);
39
- return true;
40
- }
41
- catch (e) {
42
- return e instanceof DOMException && (
43
- // everything except Firefox
44
- e.code === 22 ||
45
- // Firefox
46
- e.code === 1014 ||
47
- // test name field too, because code might not be present
48
- // everything except Firefox
49
- e.name === 'QuotaExceededError' ||
50
- // Firefox
51
- e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&
52
- // acknowledge QuotaExceededError only if there's something already stored
53
- storage.length !== 0;
54
- }
55
- };
56
-
57
- exports.getConfirmation = getConfirmation;
58
- exports.isExtraneousPopstateEvent = isExtraneousPopstateEvent;
59
- exports.isModifiedEvent = isModifiedEvent;
60
- exports.storageAvailable = storageAvailable;
61
- exports.supportsGoWithoutReloadUsingHash = supportsGoWithoutReloadUsingHash;
62
- exports.supportsHistory = supportsHistory;
63
- exports.supportsPopStateOnHashChange = supportsPopStateOnHashChange;
@@ -1,50 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-f1fadf90.js');
6
-
7
- const buttonCss = ":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";
8
-
9
- const ButtonComponent = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.isBlockElement = false;
13
- this.disabled = false;
14
- this.variant = 'primary';
15
- }
16
- render() {
17
- return (index.h("button", { class: {
18
- 'btn position-relative px-3 py-2': true,
19
- 'is-primary': this.variant === 'primary',
20
- 'is-secondary': this.variant === 'secondary',
21
- 'btn-block': this.isBlockElement,
22
- disabled: this.disabled
23
- }, style: {
24
- 'pointer-events': this.disabled ? 'none' : 'auto'
25
- }, disabled: this.disabled }, index.h("span", { class: "label" }, index.h("slot", null))));
26
- }
27
- };
28
- ButtonComponent.style = buttonCss;
29
-
30
- const loadingIndicatorCss = "fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;animation:dot-flashing-default 2s infinite linear;animation-delay:0.5s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:\"\";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;animation:dot-flashing-default 2s infinite linear;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;animation:dot-flashing-default 2s infinite linear;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;animation:dot-flashing-dark 2s infinite linear;animation-delay:0.5s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:\"\";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;animation:dot-flashing-dark 2s infinite linear;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;animation:dot-flashing-dark 2s infinite linear;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}";
31
-
32
- const LoadingIndicator = class {
33
- constructor(hostRef) {
34
- index.registerInstance(this, hostRef);
35
- this.theme = 'default';
36
- }
37
- render() {
38
- return (index.h("span", { class: {
39
- 'dots-container d-inline-flex justify-content-center': true
40
- } }, index.h("span", { class: {
41
- 'dot-flashing': true,
42
- 'theme-default': this.theme === 'default',
43
- 'theme-dark': this.theme === 'dark'
44
- } })));
45
- }
46
- };
47
- LoadingIndicator.style = loadingIndicatorCss;
48
-
49
- exports.fl_button = ButtonComponent;
50
- exports.fl_loading_indicator = LoadingIndicator;