@flarehr/apollo-benefits 0.1.109 → 0.3.53405

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