@flarehr/apollo-benefits 1.2.100 → 1.3.54122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/assets/@splitsoftware-7d799540.js +18 -0
- package/dist/assets/all_tab_color-548783b9.svg +21 -0
- package/dist/assets/all_tab_gray-a5051313.svg +6 -0
- package/dist/assets/check-57fe1dcb.svg +15 -0
- package/dist/assets/datadog-350af017.js +5 -0
- package/dist/assets/date-fns-c5d8fbc0.js +1 -0
- package/dist/assets/default_backdrop-fdd955b8.png +0 -0
- package/dist/assets/external_link-599a0aec.svg +3 -0
- package/dist/assets/external_link_white-55111b2e.svg +3 -0
- package/dist/assets/framer-motion-bb8d6b82.js +1 -0
- package/dist/assets/index-1f3a05d4.js +5 -0
- package/dist/assets/index-a281aa90.js +35 -0
- package/dist/assets/index-cfa25e28.css +1 -0
- package/dist/assets/lodash-5d893f8c.js +1 -0
- package/dist/assets/logo-a34e9b4b.png +0 -0
- package/dist/assets/oidc-client-6f6e47c2.js +101 -0
- package/dist/assets/padlock-8c081120.svg +26 -0
- package/dist/assets/suitcase-6471ad05.svg +17 -0
- package/dist/assets/vendor-2d0139ca.js +788 -0
- package/dist/assets/warning-a7f1af23.svg +14 -0
- package/dist/assets/welcome_image_mobile-dbde6c80.png +0 -0
- package/dist/assets/welcome_image_v2-869c59e4.png +0 -0
- package/dist/assets/wellbeing_banner-6903d615.png +0 -0
- package/dist/assets/workplace_link_banner_mobile-6ebaa24b.png +0 -0
- package/dist/assets/workplace_link_banner_v2-c81ed849.png +0 -0
- package/dist/config.json +14 -0
- package/dist/favicon.ico +0 -0
- package/dist/icons/android-chrome-192x192.png +0 -0
- package/dist/icons/android-chrome-512x512.png +0 -0
- package/dist/icons/apple-touch-icon.png +0 -0
- package/dist/icons/favicon-16x16.png +0 -0
- package/dist/icons/favicon-32x32.png +0 -0
- package/dist/index.html +114 -0
- package/dist/manifest.json +21 -0
- package/dist/sw-esm.js +16 -0
- package/package.json +127 -69
- package/LICENSE +0 -21
- package/dist/lib/apollo-benefits/apollo-benefits.esm.js +0 -1
- package/dist/lib/apollo-benefits/assets/Hero_Background.png +0 -0
- package/dist/lib/apollo-benefits/assets/car-placeholder.svg +0 -5
- package/dist/lib/apollo-benefits/assets/check.svg +0 -13
- package/dist/lib/apollo-benefits/common-assets/icon-info.svg +0 -4
- package/dist/lib/apollo-benefits/index.esm.js +0 -0
- package/dist/lib/apollo-benefits/p-054d1471.js +0 -1
- package/dist/lib/apollo-benefits/p-066d8e7b.js +0 -15
- package/dist/lib/apollo-benefits/p-08376428.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-1d7ab1b9.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-25a89275.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-26d363c9.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-337ce3df.js +0 -1
- package/dist/lib/apollo-benefits/p-3dc9a379.js +0 -1
- package/dist/lib/apollo-benefits/p-4376366b.js +0 -46
- package/dist/lib/apollo-benefits/p-4e2d34f4.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-50bbf713.js +0 -1
- package/dist/lib/apollo-benefits/p-53c5e861.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-556fdb43.js +0 -1
- package/dist/lib/apollo-benefits/p-57d4702d.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-58ee670f.js +0 -1
- package/dist/lib/apollo-benefits/p-6a54654f.entry.js +0 -11
- package/dist/lib/apollo-benefits/p-6bd33850.js +0 -1
- package/dist/lib/apollo-benefits/p-79c3b633.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-7f3a2f3b.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-82d42c2b.js +0 -1
- package/dist/lib/apollo-benefits/p-9b3e978e.js +0 -1
- package/dist/lib/apollo-benefits/p-a1dd0cba.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-aa379cfe.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-aaf0e527.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-b0b9425b.js +0 -1
- package/dist/lib/apollo-benefits/p-d0ef83f8.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-db4a65f0.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-dc67f942.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-e1fd79bb.entry.js +0 -1
- package/dist/lib/apollo-benefits/p-ea120e31.js +0 -1
- package/dist/lib/apollo-benefits/p-ef5f33ca.js +0 -1
- package/dist/lib/apollo-benefits/p-f5254031.js +0 -1
- package/dist/lib/apollo-benefits/p-f63d9d89.js +0 -1
- package/dist/lib/apollo-benefits/p-fcfa5255.entry.js +0 -1
- package/dist/lib/cjs/Option-98dab0b8.js +0 -1988
- package/dist/lib/cjs/active-router-90429847.js +0 -75
- package/dist/lib/cjs/ap-ben-asset_5.cjs.entry.js +0 -1856
- package/dist/lib/cjs/ap-ben-benefit-card.cjs.entry.js +0 -45
- package/dist/lib/cjs/ap-ben-benefit-list-item.cjs.entry.js +0 -56
- package/dist/lib/cjs/ap-ben-benefit-url_27.cjs.entry.js +0 -48767
- package/dist/lib/cjs/ap-ben-benefits-list_3.cjs.entry.js +0 -55
- package/dist/lib/cjs/ap-ben-benefits-page.cjs.entry.js +0 -55
- package/dist/lib/cjs/ap-ben-choose-vehicle-section_4.cjs.entry.js +0 -2779
- package/dist/lib/cjs/ap-ben-notifications-section.cjs.entry.js +0 -243
- package/dist/lib/cjs/ap-ben-oidc-callback-page.cjs.entry.js +0 -40
- package/dist/lib/cjs/apollo-benefits.cjs.js +0 -25
- package/dist/lib/cjs/app-globals-e04ab04b.js +0 -12
- package/dist/lib/cjs/authentication.service-11c30071.js +0 -237
- package/dist/lib/cjs/benefits.api-b46ee2ea.js +0 -35
- package/dist/lib/cjs/cars-calculator-app.cjs.entry.js +0 -60
- package/dist/lib/cjs/cars-calculator.service-a8beab79.js +0 -166
- package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
- package/dist/lib/cjs/datorama-akita-792b4d1d.js +0 -2553
- package/dist/lib/cjs/delay-e91dba76.js +0 -206
- package/dist/lib/cjs/event-tracking.service-6f723d9c.js +0 -155
- package/dist/lib/cjs/event-tracking.service-d6f9a51c.js +0 -259
- package/dist/lib/cjs/filter-c38164e6.js +0 -378
- package/dist/lib/cjs/fl-dropdown-async.cjs.entry.js +0 -422
- package/dist/lib/cjs/fl-dropdown.cjs.entry.js +0 -232
- package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -91
- package/dist/lib/cjs/index-4f00f593.js +0 -994
- package/dist/lib/cjs/index-6e643fec.js +0 -1734
- package/dist/lib/cjs/index-889ce6c6.js +0 -27
- package/dist/lib/cjs/index.cjs.js +0 -2
- package/dist/lib/cjs/loader.cjs.js +0 -27
- package/dist/lib/cjs/scheduleArray-0ba3d6f8.js +0 -753
- package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
- package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
- package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
- package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
- package/dist/lib/cjs/view.service-ec43dea6.js +0 -21
- package/dist/lib/collection/assets/image/complete.svg +0 -122
- package/dist/lib/collection/collection-manifest.json +0 -81
- package/dist/lib/collection/components/benefits-app/apis/api-client.js +0 -16
- package/dist/lib/collection/components/benefits-app/apis/benefits-api/benefits-api.dto.js +0 -16
- package/dist/lib/collection/components/benefits-app/apis/benefits-api/benefits.api.js +0 -30
- package/dist/lib/collection/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.js +0 -1
- package/dist/lib/collection/components/benefits-app/apis/event-tracking-api/event-tracking-api.js +0 -7
- package/dist/lib/collection/components/benefits-app/apis/user-api/user-api.dto.js +0 -8
- package/dist/lib/collection/components/benefits-app/apis/user-api/user.api.js +0 -16
- package/dist/lib/collection/components/benefits-app/benefits-app.css +0 -399
- package/dist/lib/collection/components/benefits-app/benefits-app.js +0 -216
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefit-list-item.css +0 -23
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefits-list-item.js +0 -80
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefits-list.js +0 -32
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-page.js +0 -47
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/assets/Hero_Background.png +0 -0
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.css +0 -8
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.js +0 -53
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.css +0 -3
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.js +0 -62
- package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/promoted-benefits.js +0 -33
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/api/manage-benefits-api.dto.js +0 -36
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/api/manage-benefits.api.js +0 -23
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/confirm-dialog.js +0 -158
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.css +0 -8
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.js +0 -126
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/edit-benefit-form.js +0 -138
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.css +0 -24
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.js +0 -102
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.css +0 -18
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.js +0 -120
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-page.js +0 -154
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.query.js +0 -18
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.service.js +0 -155
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/empty-benefits.js +0 -36
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-header-row.js +0 -13
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.css +0 -3
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.js +0 -88
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.routes.js +0 -24
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits.service.js +0 -37
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.css +0 -10
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.js +0 -89
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.query.js +0 -11
- package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.store.js +0 -51
- package/dist/lib/collection/components/benefits-app/pages/role-management-page/api/role-management.api.js +0 -21
- package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-editors-section/role-editors-section.js +0 -104
- package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-management-page.js +0 -50
- package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-management.service.js +0 -44
- package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-owner-section/role-owner-section.js +0 -40
- package/dist/lib/collection/components/benefits-app/pages/role-management-page/store/role-management.query.js +0 -13
- package/dist/lib/collection/components/benefits-app/pages/role-management-page/store/role-management.store.js +0 -42
- package/dist/lib/collection/components/benefits-app/services/benefits-app.service.js +0 -36
- package/dist/lib/collection/components/benefits-app/services/benefits.service.js +0 -11
- package/dist/lib/collection/components/benefits-app/services/event-tracking.service.js +0 -40
- package/dist/lib/collection/components/benefits-app/services/navigation.service.js +0 -34
- package/dist/lib/collection/components/benefits-app/store/benefits-app.query.js +0 -13
- package/dist/lib/collection/components/benefits-app/store/benefits-app.store.js +0 -24
- package/dist/lib/collection/components/benefits-app-host/benefits-app-host.js +0 -48
- package/dist/lib/collection/components/benefits-app-host/loading-page.js +0 -9
- package/dist/lib/collection/components/benefits-app-host/oidc-callback-page/oidc-callback-page.js +0 -65
- package/dist/lib/collection/components/benefits-app-host/oidc-callback-page/oidc-callback-page.routes.js +0 -11
- package/dist/lib/collection/components/benefits-app-host/services/app-configuration.query.js +0 -18
- package/dist/lib/collection/components/benefits-app-host/services/app-configuration.service.js +0 -23
- package/dist/lib/collection/components/benefits-app-host/services/authentication.query.js +0 -21
- package/dist/lib/collection/components/benefits-app-host/services/authentication.service.js +0 -96
- package/dist/lib/collection/components/benefits-app-host/services/session.store.js +0 -33
- package/dist/lib/collection/components/cars-calculator-app/api/api-client.js +0 -5
- package/dist/lib/collection/components/cars-calculator-app/api/cars-calculator-events.model.js +0 -1
- package/dist/lib/collection/components/cars-calculator-app/api/cars-calculator.api.js +0 -45
- package/dist/lib/collection/components/cars-calculator-app/api/event-tracking.api.js +0 -7
- package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.css +0 -22
- package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.js +0 -97
- package/dist/lib/collection/components/cars-calculator-app/notifications-section/notifications-section.js +0 -25
- package/dist/lib/collection/components/cars-calculator-app/pages/asset.component.js +0 -27
- package/dist/lib/collection/components/cars-calculator-app/pages/assets/car-placeholder.svg +0 -5
- package/dist/lib/collection/components/cars-calculator-app/pages/assets/check.svg +0 -13
- package/dist/lib/collection/components/cars-calculator-app/pages/choose-vehicle-section.component.js +0 -234
- package/dist/lib/collection/components/cars-calculator-app/pages/common-assets/icon-info.svg +0 -4
- package/dist/lib/collection/components/cars-calculator-app/pages/complete-section.component.js +0 -38
- package/dist/lib/collection/components/cars-calculator-app/pages/cost-breakdown-section.component.js +0 -45
- package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.css +0 -34
- package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.js +0 -93
- package/dist/lib/collection/components/cars-calculator-app/pages/personal-info-section.component.js +0 -71
- package/dist/lib/collection/components/cars-calculator-app/pages/quote-result-section.component.js +0 -117
- package/dist/lib/collection/components/cars-calculator-app/pages/submit-quote-section.component.js +0 -87
- package/dist/lib/collection/components/cars-calculator-app/services/app-configuration.service.js +0 -13
- package/dist/lib/collection/components/cars-calculator-app/services/cars-calculator.service.js +0 -117
- package/dist/lib/collection/components/cars-calculator-app/services/event-tracking.service.js +0 -37
- package/dist/lib/collection/components/cars-calculator-app/services/notifications.service.js +0 -37
- package/dist/lib/collection/components/cars-calculator-app/services/notifications.store.js +0 -3
- package/dist/lib/collection/components/cars-calculator-app/services/session.query.js +0 -38
- package/dist/lib/collection/components/cars-calculator-app/services/session.store.js +0 -80
- package/dist/lib/collection/components/cars-calculator-app/services/view.service.js +0 -16
- package/dist/lib/collection/components/shared/file-icon/file-icon.css +0 -15
- package/dist/lib/collection/components/shared/file-icon/file-icon.js +0 -84
- package/dist/lib/collection/components/shared/icon.js +0 -77
- package/dist/lib/collection/components/shared/icons-library.js +0 -11
- package/dist/lib/collection/components/shared/modal-section.js +0 -138
- package/dist/lib/collection/components/shared/tooltip.css +0 -3
- package/dist/lib/collection/components/shared/tooltip.js +0 -115
- package/dist/lib/collection/components/shared/ui-container/ui-container.css +0 -39
- package/dist/lib/collection/components/shared/ui-container/ui-container.js +0 -27
- package/dist/lib/collection/global/config.js +0 -2
- package/dist/lib/collection/global/main.dev.js +0 -31
- package/dist/lib/collection/global/main.js +0 -5
- package/dist/lib/collection/index.js +0 -2
- package/dist/lib/collection/utils/config.js +0 -2
- package/dist/lib/collection/utils/index.js +0 -28
- package/dist/lib/collection/utils/lazy.js +0 -29
- package/dist/lib/collection/utils/promise.js +0 -7
- package/dist/lib/esm/Option-53ef163a.js +0 -1982
- package/dist/lib/esm/active-router-134fe07f.js +0 -73
- package/dist/lib/esm/ap-ben-asset_5.entry.js +0 -1848
- package/dist/lib/esm/ap-ben-benefit-card.entry.js +0 -41
- package/dist/lib/esm/ap-ben-benefit-list-item.entry.js +0 -52
- package/dist/lib/esm/ap-ben-benefit-url_27.entry.js +0 -48737
- package/dist/lib/esm/ap-ben-benefits-list_3.entry.js +0 -49
- package/dist/lib/esm/ap-ben-benefits-page.entry.js +0 -51
- package/dist/lib/esm/ap-ben-choose-vehicle-section_4.entry.js +0 -2772
- package/dist/lib/esm/ap-ben-notifications-section.entry.js +0 -239
- package/dist/lib/esm/ap-ben-oidc-callback-page.entry.js +0 -36
- package/dist/lib/esm/apollo-benefits.js +0 -23
- package/dist/lib/esm/app-globals-ff43b669.js +0 -10
- package/dist/lib/esm/authentication.service-4dbff8a5.js +0 -232
- package/dist/lib/esm/benefits.api-5a0c5fa7.js +0 -33
- package/dist/lib/esm/cars-calculator-app.entry.js +0 -56
- package/dist/lib/esm/cars-calculator.service-1278f563.js +0 -163
- package/dist/lib/esm/context-consumer.entry.js +0 -25
- package/dist/lib/esm/datorama-akita-e42d9911.js +0 -2547
- package/dist/lib/esm/delay-d08c267f.js +0 -200
- package/dist/lib/esm/event-tracking.service-27d79066.js +0 -253
- package/dist/lib/esm/event-tracking.service-429d997c.js +0 -146
- package/dist/lib/esm/filter-aeb65cac.js +0 -370
- package/dist/lib/esm/fl-dropdown-async.entry.js +0 -418
- package/dist/lib/esm/fl-dropdown.entry.js +0 -228
- package/dist/lib/esm/fl-style-guide.entry.js +0 -87
- package/dist/lib/esm/index-1351f893.js +0 -979
- package/dist/lib/esm/index-8676bf1e.js +0 -22
- package/dist/lib/esm/index-d4b319a7.js +0 -1702
- package/dist/lib/esm/index.js +0 -1
- package/dist/lib/esm/loader.js +0 -23
- package/dist/lib/esm/polyfills/core-js.js +0 -11
- package/dist/lib/esm/polyfills/css-shim.js +0 -1
- package/dist/lib/esm/polyfills/dom.js +0 -79
- package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
- package/dist/lib/esm/polyfills/index.js +0 -34
- package/dist/lib/esm/polyfills/system.js +0 -6
- package/dist/lib/esm/scheduleArray-b9669898.js +0 -738
- package/dist/lib/esm/stencil-async-content.entry.js +0 -28
- package/dist/lib/esm/stencil-route-title.entry.js +0 -28
- package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
- package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
- package/dist/lib/esm/view.service-6adbec31.js +0 -19
- package/dist/lib/index.cjs.js +0 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/loader/cdn.js +0 -3
- package/dist/lib/loader/index.cjs.js +0 -3
- package/dist/lib/loader/index.d.ts +0 -13
- package/dist/lib/loader/index.es2017.js +0 -3
- package/dist/lib/loader/index.js +0 -4
- package/dist/lib/loader/package.json +0 -10
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -118
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
- package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
- package/dist/lib/types/components/benefits-app/apis/api-client.d.ts +0 -7
- package/dist/lib/types/components/benefits-app/apis/benefits-api/benefits-api.dto.d.ts +0 -44
- package/dist/lib/types/components/benefits-app/apis/benefits-api/benefits.api.d.ts +0 -9
- package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.d.ts +0 -6
- package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.d.ts +0 -18
- package/dist/lib/types/components/benefits-app/apis/user-api/user-api.dto.d.ts +0 -30
- package/dist/lib/types/components/benefits-app/apis/user-api/user.api.d.ts +0 -8
- package/dist/lib/types/components/benefits-app/benefits-app.d.ts +0 -22
- package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-list/benefits-list-item.d.ts +0 -10
- package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-list/benefits-list.d.ts +0 -5
- package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-page.d.ts +0 -10
- package/dist/lib/types/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.d.ts +0 -5
- package/dist/lib/types/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.d.ts +0 -8
- package/dist/lib/types/components/benefits-app/pages/benefits-page/promoted-benefits/promoted-benefits.d.ts +0 -5
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/api/manage-benefits-api.dto.d.ts +0 -39
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/api/manage-benefits.api.d.ts +0 -9
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/confirm-dialog.d.ts +0 -16
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.d.ts +0 -21
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/edit-benefit-form.d.ts +0 -12
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.d.ts +0 -16
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.d.ts +0 -17
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-page.d.ts +0 -24
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.query.d.ts +0 -16
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.service.d.ts +0 -20
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/empty-benefits.d.ts +0 -5
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-header-row.d.ts +0 -3
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.d.ts +0 -16
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.routes.d.ts +0 -6
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits.service.d.ts +0 -8
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.d.ts +0 -11
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.query.d.ts +0 -10
- package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.store.d.ts +0 -51
- package/dist/lib/types/components/benefits-app/pages/role-management-page/api/role-management.api.d.ts +0 -7
- package/dist/lib/types/components/benefits-app/pages/role-management-page/role-editors-section/role-editors-section.d.ts +0 -15
- package/dist/lib/types/components/benefits-app/pages/role-management-page/role-management-page.d.ts +0 -9
- package/dist/lib/types/components/benefits-app/pages/role-management-page/role-management.service.d.ts +0 -11
- package/dist/lib/types/components/benefits-app/pages/role-management-page/role-owner-section/role-owner-section.d.ts +0 -5
- package/dist/lib/types/components/benefits-app/pages/role-management-page/store/role-management.query.d.ts +0 -12
- package/dist/lib/types/components/benefits-app/pages/role-management-page/store/role-management.store.d.ts +0 -17
- package/dist/lib/types/components/benefits-app/services/benefits-app.service.d.ts +0 -13
- package/dist/lib/types/components/benefits-app/services/benefits.service.d.ts +0 -8
- package/dist/lib/types/components/benefits-app/services/event-tracking.service.d.ts +0 -11
- package/dist/lib/types/components/benefits-app/services/navigation.service.d.ts +0 -14
- package/dist/lib/types/components/benefits-app/store/benefits-app.query.d.ts +0 -12
- package/dist/lib/types/components/benefits-app/store/benefits-app.store.d.ts +0 -31
- package/dist/lib/types/components/benefits-app-host/benefits-app-host.d.ts +0 -9
- package/dist/lib/types/components/benefits-app-host/loading-page.d.ts +0 -3
- package/dist/lib/types/components/benefits-app-host/oidc-callback-page/oidc-callback-page.d.ts +0 -8
- package/dist/lib/types/components/benefits-app-host/oidc-callback-page/oidc-callback-page.routes.d.ts +0 -1
- package/dist/lib/types/components/benefits-app-host/services/app-configuration.query.d.ts +0 -11
- package/dist/lib/types/components/benefits-app-host/services/app-configuration.service.d.ts +0 -9
- package/dist/lib/types/components/benefits-app-host/services/authentication.query.d.ts +0 -13
- package/dist/lib/types/components/benefits-app-host/services/authentication.service.d.ts +0 -25
- package/dist/lib/types/components/benefits-app-host/services/session.store.d.ts +0 -25
- package/dist/lib/types/components/cars-calculator-app/api/api-client.d.ts +0 -2
- package/dist/lib/types/components/cars-calculator-app/api/cars-calculator-events.model.d.ts +0 -39
- package/dist/lib/types/components/cars-calculator-app/api/cars-calculator.api.d.ts +0 -100
- package/dist/lib/types/components/cars-calculator-app/api/event-tracking.api.d.ts +0 -6
- package/dist/lib/types/components/cars-calculator-app/cars-calculator-app.d.ts +0 -18
- package/dist/lib/types/components/cars-calculator-app/notifications-section/notifications-section.d.ts +0 -5
- package/dist/lib/types/components/cars-calculator-app/pages/asset.component.d.ts +0 -4
- package/dist/lib/types/components/cars-calculator-app/pages/choose-vehicle-section.component.d.ts +0 -23
- package/dist/lib/types/components/cars-calculator-app/pages/complete-section.component.d.ts +0 -5
- package/dist/lib/types/components/cars-calculator-app/pages/cost-breakdown-section.component.d.ts +0 -6
- package/dist/lib/types/components/cars-calculator-app/pages/model-variants-section.component.d.ts +0 -12
- package/dist/lib/types/components/cars-calculator-app/pages/personal-info-section.component.d.ts +0 -10
- package/dist/lib/types/components/cars-calculator-app/pages/quote-result-section.component.d.ts +0 -16
- package/dist/lib/types/components/cars-calculator-app/pages/submit-quote-section.component.d.ts +0 -12
- package/dist/lib/types/components/cars-calculator-app/services/app-configuration.service.d.ts +0 -7
- package/dist/lib/types/components/cars-calculator-app/services/cars-calculator.service.d.ts +0 -11
- package/dist/lib/types/components/cars-calculator-app/services/event-tracking.service.d.ts +0 -13
- package/dist/lib/types/components/cars-calculator-app/services/notifications.service.d.ts +0 -15
- package/dist/lib/types/components/cars-calculator-app/services/notifications.store.d.ts +0 -14
- package/dist/lib/types/components/cars-calculator-app/services/session.query.d.ts +0 -26
- package/dist/lib/types/components/cars-calculator-app/services/session.store.d.ts +0 -78
- package/dist/lib/types/components/cars-calculator-app/services/view.service.d.ts +0 -8
- package/dist/lib/types/components/shared/file-icon/file-icon.d.ts +0 -11
- package/dist/lib/types/components/shared/icon.d.ts +0 -7
- package/dist/lib/types/components/shared/icons-library.d.ts +0 -1
- package/dist/lib/types/components/shared/modal-section.d.ts +0 -16
- package/dist/lib/types/components/shared/tooltip.d.ts +0 -13
- package/dist/lib/types/components/shared/ui-container/ui-container.d.ts +0 -5
- package/dist/lib/types/components.d.ts +0 -606
- package/dist/lib/types/global/config.d.ts +0 -2
- package/dist/lib/types/global/main.d.ts +0 -1
- package/dist/lib/types/global/main.dev.d.ts +0 -1
- package/dist/lib/types/index.d.ts +0 -2
- package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
- package/dist/lib/types/utils/config.d.ts +0 -2
- package/dist/lib/types/utils/index.d.ts +0 -10
- package/dist/lib/types/utils/lazy.d.ts +0 -12
- package/dist/lib/types/utils/promise.d.ts +0 -1
- package/readme.md +0 -1
|
@@ -1,753 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function isFunction(x) {
|
|
4
|
-
return typeof x === 'function';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
let _enable_super_gross_mode_that_will_cause_bad_things = false;
|
|
8
|
-
const config = {
|
|
9
|
-
Promise: undefined,
|
|
10
|
-
set useDeprecatedSynchronousErrorHandling(value) {
|
|
11
|
-
if (value) {
|
|
12
|
-
const error = new Error();
|
|
13
|
-
console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack);
|
|
14
|
-
}
|
|
15
|
-
else if (_enable_super_gross_mode_that_will_cause_bad_things) {
|
|
16
|
-
console.log('RxJS: Back to a better error behavior. Thank you. <3');
|
|
17
|
-
}
|
|
18
|
-
_enable_super_gross_mode_that_will_cause_bad_things = value;
|
|
19
|
-
},
|
|
20
|
-
get useDeprecatedSynchronousErrorHandling() {
|
|
21
|
-
return _enable_super_gross_mode_that_will_cause_bad_things;
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
function hostReportError(err) {
|
|
26
|
-
setTimeout(() => { throw err; }, 0);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const empty = {
|
|
30
|
-
closed: true,
|
|
31
|
-
next(value) { },
|
|
32
|
-
error(err) {
|
|
33
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
34
|
-
throw err;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
hostReportError(err);
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
complete() { }
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const isArray = (() => Array.isArray || ((x) => x && typeof x.length === 'number'))();
|
|
44
|
-
|
|
45
|
-
function isObject(x) {
|
|
46
|
-
return x !== null && typeof x === 'object';
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const UnsubscriptionErrorImpl = (() => {
|
|
50
|
-
function UnsubscriptionErrorImpl(errors) {
|
|
51
|
-
Error.call(this);
|
|
52
|
-
this.message = errors ?
|
|
53
|
-
`${errors.length} errors occurred during unsubscription:
|
|
54
|
-
${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
|
|
55
|
-
this.name = 'UnsubscriptionError';
|
|
56
|
-
this.errors = errors;
|
|
57
|
-
return this;
|
|
58
|
-
}
|
|
59
|
-
UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);
|
|
60
|
-
return UnsubscriptionErrorImpl;
|
|
61
|
-
})();
|
|
62
|
-
const UnsubscriptionError = UnsubscriptionErrorImpl;
|
|
63
|
-
|
|
64
|
-
class Subscription {
|
|
65
|
-
constructor(unsubscribe) {
|
|
66
|
-
this.closed = false;
|
|
67
|
-
this._parentOrParents = null;
|
|
68
|
-
this._subscriptions = null;
|
|
69
|
-
if (unsubscribe) {
|
|
70
|
-
this._ctorUnsubscribe = true;
|
|
71
|
-
this._unsubscribe = unsubscribe;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
unsubscribe() {
|
|
75
|
-
let errors;
|
|
76
|
-
if (this.closed) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
let { _parentOrParents, _ctorUnsubscribe, _unsubscribe, _subscriptions } = this;
|
|
80
|
-
this.closed = true;
|
|
81
|
-
this._parentOrParents = null;
|
|
82
|
-
this._subscriptions = null;
|
|
83
|
-
if (_parentOrParents instanceof Subscription) {
|
|
84
|
-
_parentOrParents.remove(this);
|
|
85
|
-
}
|
|
86
|
-
else if (_parentOrParents !== null) {
|
|
87
|
-
for (let index = 0; index < _parentOrParents.length; ++index) {
|
|
88
|
-
const parent = _parentOrParents[index];
|
|
89
|
-
parent.remove(this);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
if (isFunction(_unsubscribe)) {
|
|
93
|
-
if (_ctorUnsubscribe) {
|
|
94
|
-
this._unsubscribe = undefined;
|
|
95
|
-
}
|
|
96
|
-
try {
|
|
97
|
-
_unsubscribe.call(this);
|
|
98
|
-
}
|
|
99
|
-
catch (e) {
|
|
100
|
-
errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (isArray(_subscriptions)) {
|
|
104
|
-
let index = -1;
|
|
105
|
-
let len = _subscriptions.length;
|
|
106
|
-
while (++index < len) {
|
|
107
|
-
const sub = _subscriptions[index];
|
|
108
|
-
if (isObject(sub)) {
|
|
109
|
-
try {
|
|
110
|
-
sub.unsubscribe();
|
|
111
|
-
}
|
|
112
|
-
catch (e) {
|
|
113
|
-
errors = errors || [];
|
|
114
|
-
if (e instanceof UnsubscriptionError) {
|
|
115
|
-
errors = errors.concat(flattenUnsubscriptionErrors(e.errors));
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
errors.push(e);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
if (errors) {
|
|
125
|
-
throw new UnsubscriptionError(errors);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
add(teardown) {
|
|
129
|
-
let subscription = teardown;
|
|
130
|
-
if (!teardown) {
|
|
131
|
-
return Subscription.EMPTY;
|
|
132
|
-
}
|
|
133
|
-
switch (typeof teardown) {
|
|
134
|
-
case 'function':
|
|
135
|
-
subscription = new Subscription(teardown);
|
|
136
|
-
case 'object':
|
|
137
|
-
if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {
|
|
138
|
-
return subscription;
|
|
139
|
-
}
|
|
140
|
-
else if (this.closed) {
|
|
141
|
-
subscription.unsubscribe();
|
|
142
|
-
return subscription;
|
|
143
|
-
}
|
|
144
|
-
else if (!(subscription instanceof Subscription)) {
|
|
145
|
-
const tmp = subscription;
|
|
146
|
-
subscription = new Subscription();
|
|
147
|
-
subscription._subscriptions = [tmp];
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
default: {
|
|
151
|
-
throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
let { _parentOrParents } = subscription;
|
|
155
|
-
if (_parentOrParents === null) {
|
|
156
|
-
subscription._parentOrParents = this;
|
|
157
|
-
}
|
|
158
|
-
else if (_parentOrParents instanceof Subscription) {
|
|
159
|
-
if (_parentOrParents === this) {
|
|
160
|
-
return subscription;
|
|
161
|
-
}
|
|
162
|
-
subscription._parentOrParents = [_parentOrParents, this];
|
|
163
|
-
}
|
|
164
|
-
else if (_parentOrParents.indexOf(this) === -1) {
|
|
165
|
-
_parentOrParents.push(this);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return subscription;
|
|
169
|
-
}
|
|
170
|
-
const subscriptions = this._subscriptions;
|
|
171
|
-
if (subscriptions === null) {
|
|
172
|
-
this._subscriptions = [subscription];
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
subscriptions.push(subscription);
|
|
176
|
-
}
|
|
177
|
-
return subscription;
|
|
178
|
-
}
|
|
179
|
-
remove(subscription) {
|
|
180
|
-
const subscriptions = this._subscriptions;
|
|
181
|
-
if (subscriptions) {
|
|
182
|
-
const subscriptionIndex = subscriptions.indexOf(subscription);
|
|
183
|
-
if (subscriptionIndex !== -1) {
|
|
184
|
-
subscriptions.splice(subscriptionIndex, 1);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
Subscription.EMPTY = (function (empty) {
|
|
190
|
-
empty.closed = true;
|
|
191
|
-
return empty;
|
|
192
|
-
}(new Subscription()));
|
|
193
|
-
function flattenUnsubscriptionErrors(errors) {
|
|
194
|
-
return errors.reduce((errs, err) => errs.concat((err instanceof UnsubscriptionError) ? err.errors : err), []);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
const rxSubscriber = (() => typeof Symbol === 'function'
|
|
198
|
-
? Symbol('rxSubscriber')
|
|
199
|
-
: '@@rxSubscriber_' + Math.random())();
|
|
200
|
-
|
|
201
|
-
class Subscriber extends Subscription {
|
|
202
|
-
constructor(destinationOrNext, error, complete) {
|
|
203
|
-
super();
|
|
204
|
-
this.syncErrorValue = null;
|
|
205
|
-
this.syncErrorThrown = false;
|
|
206
|
-
this.syncErrorThrowable = false;
|
|
207
|
-
this.isStopped = false;
|
|
208
|
-
switch (arguments.length) {
|
|
209
|
-
case 0:
|
|
210
|
-
this.destination = empty;
|
|
211
|
-
break;
|
|
212
|
-
case 1:
|
|
213
|
-
if (!destinationOrNext) {
|
|
214
|
-
this.destination = empty;
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
if (typeof destinationOrNext === 'object') {
|
|
218
|
-
if (destinationOrNext instanceof Subscriber) {
|
|
219
|
-
this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
|
|
220
|
-
this.destination = destinationOrNext;
|
|
221
|
-
destinationOrNext.add(this);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
this.syncErrorThrowable = true;
|
|
225
|
-
this.destination = new SafeSubscriber(this, destinationOrNext);
|
|
226
|
-
}
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
default:
|
|
230
|
-
this.syncErrorThrowable = true;
|
|
231
|
-
this.destination = new SafeSubscriber(this, destinationOrNext, error, complete);
|
|
232
|
-
break;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
[rxSubscriber]() { return this; }
|
|
236
|
-
static create(next, error, complete) {
|
|
237
|
-
const subscriber = new Subscriber(next, error, complete);
|
|
238
|
-
subscriber.syncErrorThrowable = false;
|
|
239
|
-
return subscriber;
|
|
240
|
-
}
|
|
241
|
-
next(value) {
|
|
242
|
-
if (!this.isStopped) {
|
|
243
|
-
this._next(value);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
error(err) {
|
|
247
|
-
if (!this.isStopped) {
|
|
248
|
-
this.isStopped = true;
|
|
249
|
-
this._error(err);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
complete() {
|
|
253
|
-
if (!this.isStopped) {
|
|
254
|
-
this.isStopped = true;
|
|
255
|
-
this._complete();
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
unsubscribe() {
|
|
259
|
-
if (this.closed) {
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
this.isStopped = true;
|
|
263
|
-
super.unsubscribe();
|
|
264
|
-
}
|
|
265
|
-
_next(value) {
|
|
266
|
-
this.destination.next(value);
|
|
267
|
-
}
|
|
268
|
-
_error(err) {
|
|
269
|
-
this.destination.error(err);
|
|
270
|
-
this.unsubscribe();
|
|
271
|
-
}
|
|
272
|
-
_complete() {
|
|
273
|
-
this.destination.complete();
|
|
274
|
-
this.unsubscribe();
|
|
275
|
-
}
|
|
276
|
-
_unsubscribeAndRecycle() {
|
|
277
|
-
const { _parentOrParents } = this;
|
|
278
|
-
this._parentOrParents = null;
|
|
279
|
-
this.unsubscribe();
|
|
280
|
-
this.closed = false;
|
|
281
|
-
this.isStopped = false;
|
|
282
|
-
this._parentOrParents = _parentOrParents;
|
|
283
|
-
return this;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
class SafeSubscriber extends Subscriber {
|
|
287
|
-
constructor(_parentSubscriber, observerOrNext, error, complete) {
|
|
288
|
-
super();
|
|
289
|
-
this._parentSubscriber = _parentSubscriber;
|
|
290
|
-
let next;
|
|
291
|
-
let context = this;
|
|
292
|
-
if (isFunction(observerOrNext)) {
|
|
293
|
-
next = observerOrNext;
|
|
294
|
-
}
|
|
295
|
-
else if (observerOrNext) {
|
|
296
|
-
next = observerOrNext.next;
|
|
297
|
-
error = observerOrNext.error;
|
|
298
|
-
complete = observerOrNext.complete;
|
|
299
|
-
if (observerOrNext !== empty) {
|
|
300
|
-
context = Object.create(observerOrNext);
|
|
301
|
-
if (isFunction(context.unsubscribe)) {
|
|
302
|
-
this.add(context.unsubscribe.bind(context));
|
|
303
|
-
}
|
|
304
|
-
context.unsubscribe = this.unsubscribe.bind(this);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
this._context = context;
|
|
308
|
-
this._next = next;
|
|
309
|
-
this._error = error;
|
|
310
|
-
this._complete = complete;
|
|
311
|
-
}
|
|
312
|
-
next(value) {
|
|
313
|
-
if (!this.isStopped && this._next) {
|
|
314
|
-
const { _parentSubscriber } = this;
|
|
315
|
-
if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
|
|
316
|
-
this.__tryOrUnsub(this._next, value);
|
|
317
|
-
}
|
|
318
|
-
else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
|
|
319
|
-
this.unsubscribe();
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
error(err) {
|
|
324
|
-
if (!this.isStopped) {
|
|
325
|
-
const { _parentSubscriber } = this;
|
|
326
|
-
const { useDeprecatedSynchronousErrorHandling } = config;
|
|
327
|
-
if (this._error) {
|
|
328
|
-
if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
|
|
329
|
-
this.__tryOrUnsub(this._error, err);
|
|
330
|
-
this.unsubscribe();
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
this.__tryOrSetError(_parentSubscriber, this._error, err);
|
|
334
|
-
this.unsubscribe();
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
else if (!_parentSubscriber.syncErrorThrowable) {
|
|
338
|
-
this.unsubscribe();
|
|
339
|
-
if (useDeprecatedSynchronousErrorHandling) {
|
|
340
|
-
throw err;
|
|
341
|
-
}
|
|
342
|
-
hostReportError(err);
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
if (useDeprecatedSynchronousErrorHandling) {
|
|
346
|
-
_parentSubscriber.syncErrorValue = err;
|
|
347
|
-
_parentSubscriber.syncErrorThrown = true;
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
hostReportError(err);
|
|
351
|
-
}
|
|
352
|
-
this.unsubscribe();
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
complete() {
|
|
357
|
-
if (!this.isStopped) {
|
|
358
|
-
const { _parentSubscriber } = this;
|
|
359
|
-
if (this._complete) {
|
|
360
|
-
const wrappedComplete = () => this._complete.call(this._context);
|
|
361
|
-
if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
|
|
362
|
-
this.__tryOrUnsub(wrappedComplete);
|
|
363
|
-
this.unsubscribe();
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
this.__tryOrSetError(_parentSubscriber, wrappedComplete);
|
|
367
|
-
this.unsubscribe();
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
this.unsubscribe();
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
__tryOrUnsub(fn, value) {
|
|
376
|
-
try {
|
|
377
|
-
fn.call(this._context, value);
|
|
378
|
-
}
|
|
379
|
-
catch (err) {
|
|
380
|
-
this.unsubscribe();
|
|
381
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
382
|
-
throw err;
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
hostReportError(err);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
__tryOrSetError(parent, fn, value) {
|
|
390
|
-
if (!config.useDeprecatedSynchronousErrorHandling) {
|
|
391
|
-
throw new Error('bad call');
|
|
392
|
-
}
|
|
393
|
-
try {
|
|
394
|
-
fn.call(this._context, value);
|
|
395
|
-
}
|
|
396
|
-
catch (err) {
|
|
397
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
398
|
-
parent.syncErrorValue = err;
|
|
399
|
-
parent.syncErrorThrown = true;
|
|
400
|
-
return true;
|
|
401
|
-
}
|
|
402
|
-
else {
|
|
403
|
-
hostReportError(err);
|
|
404
|
-
return true;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return false;
|
|
408
|
-
}
|
|
409
|
-
_unsubscribe() {
|
|
410
|
-
const { _parentSubscriber } = this;
|
|
411
|
-
this._context = null;
|
|
412
|
-
this._parentSubscriber = null;
|
|
413
|
-
_parentSubscriber.unsubscribe();
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
function canReportError(observer) {
|
|
418
|
-
while (observer) {
|
|
419
|
-
const { closed, destination, isStopped } = observer;
|
|
420
|
-
if (closed || isStopped) {
|
|
421
|
-
return false;
|
|
422
|
-
}
|
|
423
|
-
else if (destination && destination instanceof Subscriber) {
|
|
424
|
-
observer = destination;
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
observer = null;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
return true;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
function toSubscriber(nextOrObserver, error, complete) {
|
|
434
|
-
if (nextOrObserver) {
|
|
435
|
-
if (nextOrObserver instanceof Subscriber) {
|
|
436
|
-
return nextOrObserver;
|
|
437
|
-
}
|
|
438
|
-
if (nextOrObserver[rxSubscriber]) {
|
|
439
|
-
return nextOrObserver[rxSubscriber]();
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
if (!nextOrObserver && !error && !complete) {
|
|
443
|
-
return new Subscriber(empty);
|
|
444
|
-
}
|
|
445
|
-
return new Subscriber(nextOrObserver, error, complete);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();
|
|
449
|
-
|
|
450
|
-
function identity(x) {
|
|
451
|
-
return x;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
function pipeFromArray(fns) {
|
|
455
|
-
if (fns.length === 0) {
|
|
456
|
-
return identity;
|
|
457
|
-
}
|
|
458
|
-
if (fns.length === 1) {
|
|
459
|
-
return fns[0];
|
|
460
|
-
}
|
|
461
|
-
return function piped(input) {
|
|
462
|
-
return fns.reduce((prev, fn) => fn(prev), input);
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
class Observable {
|
|
467
|
-
constructor(subscribe) {
|
|
468
|
-
this._isScalar = false;
|
|
469
|
-
if (subscribe) {
|
|
470
|
-
this._subscribe = subscribe;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
lift(operator) {
|
|
474
|
-
const observable = new Observable();
|
|
475
|
-
observable.source = this;
|
|
476
|
-
observable.operator = operator;
|
|
477
|
-
return observable;
|
|
478
|
-
}
|
|
479
|
-
subscribe(observerOrNext, error, complete) {
|
|
480
|
-
const { operator } = this;
|
|
481
|
-
const sink = toSubscriber(observerOrNext, error, complete);
|
|
482
|
-
if (operator) {
|
|
483
|
-
sink.add(operator.call(sink, this.source));
|
|
484
|
-
}
|
|
485
|
-
else {
|
|
486
|
-
sink.add(this.source || (config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?
|
|
487
|
-
this._subscribe(sink) :
|
|
488
|
-
this._trySubscribe(sink));
|
|
489
|
-
}
|
|
490
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
491
|
-
if (sink.syncErrorThrowable) {
|
|
492
|
-
sink.syncErrorThrowable = false;
|
|
493
|
-
if (sink.syncErrorThrown) {
|
|
494
|
-
throw sink.syncErrorValue;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
return sink;
|
|
499
|
-
}
|
|
500
|
-
_trySubscribe(sink) {
|
|
501
|
-
try {
|
|
502
|
-
return this._subscribe(sink);
|
|
503
|
-
}
|
|
504
|
-
catch (err) {
|
|
505
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
|
506
|
-
sink.syncErrorThrown = true;
|
|
507
|
-
sink.syncErrorValue = err;
|
|
508
|
-
}
|
|
509
|
-
if (canReportError(sink)) {
|
|
510
|
-
sink.error(err);
|
|
511
|
-
}
|
|
512
|
-
else {
|
|
513
|
-
console.warn(err);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
forEach(next, promiseCtor) {
|
|
518
|
-
promiseCtor = getPromiseCtor(promiseCtor);
|
|
519
|
-
return new promiseCtor((resolve, reject) => {
|
|
520
|
-
let subscription;
|
|
521
|
-
subscription = this.subscribe((value) => {
|
|
522
|
-
try {
|
|
523
|
-
next(value);
|
|
524
|
-
}
|
|
525
|
-
catch (err) {
|
|
526
|
-
reject(err);
|
|
527
|
-
if (subscription) {
|
|
528
|
-
subscription.unsubscribe();
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}, reject, resolve);
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
_subscribe(subscriber) {
|
|
535
|
-
const { source } = this;
|
|
536
|
-
return source && source.subscribe(subscriber);
|
|
537
|
-
}
|
|
538
|
-
[observable]() {
|
|
539
|
-
return this;
|
|
540
|
-
}
|
|
541
|
-
pipe(...operations) {
|
|
542
|
-
if (operations.length === 0) {
|
|
543
|
-
return this;
|
|
544
|
-
}
|
|
545
|
-
return pipeFromArray(operations)(this);
|
|
546
|
-
}
|
|
547
|
-
toPromise(promiseCtor) {
|
|
548
|
-
promiseCtor = getPromiseCtor(promiseCtor);
|
|
549
|
-
return new promiseCtor((resolve, reject) => {
|
|
550
|
-
let value;
|
|
551
|
-
this.subscribe((x) => value = x, (err) => reject(err), () => resolve(value));
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
Observable.create = (subscribe) => {
|
|
556
|
-
return new Observable(subscribe);
|
|
557
|
-
};
|
|
558
|
-
function getPromiseCtor(promiseCtor) {
|
|
559
|
-
if (!promiseCtor) {
|
|
560
|
-
promiseCtor = Promise;
|
|
561
|
-
}
|
|
562
|
-
if (!promiseCtor) {
|
|
563
|
-
throw new Error('no Promise impl found');
|
|
564
|
-
}
|
|
565
|
-
return promiseCtor;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
const subscribeToArray = (array) => (subscriber) => {
|
|
569
|
-
for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {
|
|
570
|
-
subscriber.next(array[i]);
|
|
571
|
-
}
|
|
572
|
-
subscriber.complete();
|
|
573
|
-
};
|
|
574
|
-
|
|
575
|
-
class Action extends Subscription {
|
|
576
|
-
constructor(scheduler, work) {
|
|
577
|
-
super();
|
|
578
|
-
}
|
|
579
|
-
schedule(state, delay = 0) {
|
|
580
|
-
return this;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
class AsyncAction extends Action {
|
|
585
|
-
constructor(scheduler, work) {
|
|
586
|
-
super(scheduler, work);
|
|
587
|
-
this.scheduler = scheduler;
|
|
588
|
-
this.work = work;
|
|
589
|
-
this.pending = false;
|
|
590
|
-
}
|
|
591
|
-
schedule(state, delay = 0) {
|
|
592
|
-
if (this.closed) {
|
|
593
|
-
return this;
|
|
594
|
-
}
|
|
595
|
-
this.state = state;
|
|
596
|
-
const id = this.id;
|
|
597
|
-
const scheduler = this.scheduler;
|
|
598
|
-
if (id != null) {
|
|
599
|
-
this.id = this.recycleAsyncId(scheduler, id, delay);
|
|
600
|
-
}
|
|
601
|
-
this.pending = true;
|
|
602
|
-
this.delay = delay;
|
|
603
|
-
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
|
604
|
-
return this;
|
|
605
|
-
}
|
|
606
|
-
requestAsyncId(scheduler, id, delay = 0) {
|
|
607
|
-
return setInterval(scheduler.flush.bind(scheduler, this), delay);
|
|
608
|
-
}
|
|
609
|
-
recycleAsyncId(scheduler, id, delay = 0) {
|
|
610
|
-
if (delay !== null && this.delay === delay && this.pending === false) {
|
|
611
|
-
return id;
|
|
612
|
-
}
|
|
613
|
-
clearInterval(id);
|
|
614
|
-
return undefined;
|
|
615
|
-
}
|
|
616
|
-
execute(state, delay) {
|
|
617
|
-
if (this.closed) {
|
|
618
|
-
return new Error('executing a cancelled action');
|
|
619
|
-
}
|
|
620
|
-
this.pending = false;
|
|
621
|
-
const error = this._execute(state, delay);
|
|
622
|
-
if (error) {
|
|
623
|
-
return error;
|
|
624
|
-
}
|
|
625
|
-
else if (this.pending === false && this.id != null) {
|
|
626
|
-
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
_execute(state, delay) {
|
|
630
|
-
let errored = false;
|
|
631
|
-
let errorValue = undefined;
|
|
632
|
-
try {
|
|
633
|
-
this.work(state);
|
|
634
|
-
}
|
|
635
|
-
catch (e) {
|
|
636
|
-
errored = true;
|
|
637
|
-
errorValue = !!e && e || new Error(e);
|
|
638
|
-
}
|
|
639
|
-
if (errored) {
|
|
640
|
-
this.unsubscribe();
|
|
641
|
-
return errorValue;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
_unsubscribe() {
|
|
645
|
-
const id = this.id;
|
|
646
|
-
const scheduler = this.scheduler;
|
|
647
|
-
const actions = scheduler.actions;
|
|
648
|
-
const index = actions.indexOf(this);
|
|
649
|
-
this.work = null;
|
|
650
|
-
this.state = null;
|
|
651
|
-
this.pending = false;
|
|
652
|
-
this.scheduler = null;
|
|
653
|
-
if (index !== -1) {
|
|
654
|
-
actions.splice(index, 1);
|
|
655
|
-
}
|
|
656
|
-
if (id != null) {
|
|
657
|
-
this.id = this.recycleAsyncId(scheduler, id, null);
|
|
658
|
-
}
|
|
659
|
-
this.delay = null;
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
class Scheduler {
|
|
664
|
-
constructor(SchedulerAction, now = Scheduler.now) {
|
|
665
|
-
this.SchedulerAction = SchedulerAction;
|
|
666
|
-
this.now = now;
|
|
667
|
-
}
|
|
668
|
-
schedule(work, delay = 0, state) {
|
|
669
|
-
return new this.SchedulerAction(this, work).schedule(state, delay);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
Scheduler.now = () => Date.now();
|
|
673
|
-
|
|
674
|
-
class AsyncScheduler extends Scheduler {
|
|
675
|
-
constructor(SchedulerAction, now = Scheduler.now) {
|
|
676
|
-
super(SchedulerAction, () => {
|
|
677
|
-
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
|
|
678
|
-
return AsyncScheduler.delegate.now();
|
|
679
|
-
}
|
|
680
|
-
else {
|
|
681
|
-
return now();
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
this.actions = [];
|
|
685
|
-
this.active = false;
|
|
686
|
-
this.scheduled = undefined;
|
|
687
|
-
}
|
|
688
|
-
schedule(work, delay = 0, state) {
|
|
689
|
-
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
|
|
690
|
-
return AsyncScheduler.delegate.schedule(work, delay, state);
|
|
691
|
-
}
|
|
692
|
-
else {
|
|
693
|
-
return super.schedule(work, delay, state);
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
flush(action) {
|
|
697
|
-
const { actions } = this;
|
|
698
|
-
if (this.active) {
|
|
699
|
-
actions.push(action);
|
|
700
|
-
return;
|
|
701
|
-
}
|
|
702
|
-
let error;
|
|
703
|
-
this.active = true;
|
|
704
|
-
do {
|
|
705
|
-
if (error = action.execute(action.state, action.delay)) {
|
|
706
|
-
break;
|
|
707
|
-
}
|
|
708
|
-
} while (action = actions.shift());
|
|
709
|
-
this.active = false;
|
|
710
|
-
if (error) {
|
|
711
|
-
while (action = actions.shift()) {
|
|
712
|
-
action.unsubscribe();
|
|
713
|
-
}
|
|
714
|
-
throw error;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
const asyncScheduler = new AsyncScheduler(AsyncAction);
|
|
720
|
-
const async = asyncScheduler;
|
|
721
|
-
|
|
722
|
-
function scheduleArray(input, scheduler) {
|
|
723
|
-
return new Observable(subscriber => {
|
|
724
|
-
const sub = new Subscription();
|
|
725
|
-
let i = 0;
|
|
726
|
-
sub.add(scheduler.schedule(function () {
|
|
727
|
-
if (i === input.length) {
|
|
728
|
-
subscriber.complete();
|
|
729
|
-
return;
|
|
730
|
-
}
|
|
731
|
-
subscriber.next(input[i++]);
|
|
732
|
-
if (!subscriber.closed) {
|
|
733
|
-
sub.add(this.schedule());
|
|
734
|
-
}
|
|
735
|
-
}));
|
|
736
|
-
return sub;
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
exports.AsyncAction = AsyncAction;
|
|
741
|
-
exports.AsyncScheduler = AsyncScheduler;
|
|
742
|
-
exports.Observable = Observable;
|
|
743
|
-
exports.Subscriber = Subscriber;
|
|
744
|
-
exports.Subscription = Subscription;
|
|
745
|
-
exports.async = async;
|
|
746
|
-
exports.hostReportError = hostReportError;
|
|
747
|
-
exports.isArray = isArray;
|
|
748
|
-
exports.isFunction = isFunction;
|
|
749
|
-
exports.isObject = isObject;
|
|
750
|
-
exports.observable = observable;
|
|
751
|
-
exports.rxSubscriber = rxSubscriber;
|
|
752
|
-
exports.scheduleArray = scheduleArray;
|
|
753
|
-
exports.subscribeToArray = subscribeToArray;
|