@flarehr/apollo-super-selection 3.17.52781 → 3.18.52782
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -0
- package/dist/lib/apollo-super-selection/apollo-super-selection.js +130 -0
- package/dist/lib/apollo-super-selection/index.esm.js +0 -0
- package/dist/lib/apollo-super-selection/p-01a9f4a4.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-082669d9.js +1 -0
- package/dist/lib/apollo-super-selection/p-13573238.system.js +15 -0
- package/dist/lib/apollo-super-selection/p-20136efe.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-285da037.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-31bdba35.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-342cee5a.js +1 -0
- package/dist/lib/apollo-super-selection/p-381262c1.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-38ee2795.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-38f24f69.js +1 -0
- package/dist/lib/apollo-super-selection/p-50ea2036.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-61734b66.js +1 -0
- package/dist/lib/apollo-super-selection/p-642db1f7.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-8cbfc343.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-a98c2760.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-abedb220.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-ae4f5e0b.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-bd258159.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-c5e41889.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-cd49a6b7.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-df9ce4b7.js +15 -0
- package/dist/lib/apollo-super-selection/p-f15bf700.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +1 -0
- package/dist/lib/cjs/active-router-e92fd784.js +75 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +23 -0
- package/dist/lib/cjs/app-globals-45007120.js +25 -0
- package/dist/lib/cjs/context-consumer.cjs.entry.js +29 -0
- package/dist/lib/cjs/datorama-akita-7f4b082a.js +2704 -0
- package/dist/lib/cjs/delay-81aff2f1.js +955 -0
- package/dist/lib/cjs/fl-button_44.cjs.entry.js +17003 -0
- package/dist/lib/cjs/fl-style-guide.cjs.entry.js +90 -0
- package/dist/lib/cjs/index-942e6faa.js +1767 -0
- package/dist/lib/cjs/index.cjs.js +2 -0
- package/dist/lib/cjs/loader.cjs.js +25 -0
- package/dist/lib/cjs/stencil-async-content.cjs.entry.js +32 -0
- package/dist/lib/cjs/stencil-route-title.cjs.entry.js +32 -0
- package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +59 -0
- package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +32 -0
- package/dist/lib/collection/collection-manifest.json +127 -0
- package/dist/lib/collection/components/app-host/loading-page.js +9 -0
- package/dist/lib/collection/components/app-host/services/app-configuration.query.js +18 -0
- package/dist/lib/collection/components/app-host/services/app-configuration.service.js +25 -0
- package/dist/lib/collection/components/app-host/services/appinsights.service.js +43 -0
- package/dist/lib/collection/components/app-host/services/authentication.query.js +21 -0
- package/dist/lib/collection/components/app-host/services/authentication.service.js +50 -0
- package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +31 -0
- package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +30 -0
- package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +20 -0
- package/dist/lib/collection/components/app-host/services/interop.query.js +26 -0
- package/dist/lib/collection/components/app-host/services/session.store.js +37 -0
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +28 -0
- package/dist/lib/collection/components/app-host/super-selection-app-host.js +92 -0
- package/dist/lib/collection/components/super-selection-app/api/api-client.js +14 -0
- package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +1 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +30 -0
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +31 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +11 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +29 -0
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +31 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +68 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +53 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +108 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +93 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +103 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +111 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +153 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +111 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +23 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +52 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +37 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +89 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +31 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +38 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +63 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +95 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +99 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +18 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +95 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +50 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +66 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +64 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +127 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +9 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +35 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +67 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +19 -0
- package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +25 -0
- package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +22 -0
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +71 -0
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +22 -0
- package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +37 -0
- package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +3 -0
- package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +53 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +42 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +76 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +11 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +1 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +49 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +18 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +53 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +216 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +53 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +152 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.css +15 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +229 -0
- package/dist/lib/collection/global/init-host.js +22 -0
- package/dist/lib/collection/global/main.dev.js +26 -0
- package/dist/lib/collection/global/main.js +11 -0
- package/dist/lib/collection/global/stencil-router-workaround.js +12 -0
- package/dist/lib/collection/index.js +2 -0
- package/dist/lib/collection/utils/config.js +2 -0
- package/dist/lib/collection/utils/gtm.js +5 -0
- package/dist/lib/collection/utils/iframe.js +33 -0
- package/dist/lib/collection/utils/index.js +8 -0
- package/dist/lib/collection/utils/lazy.js +29 -0
- package/dist/lib/collection/utils/storage.js +5 -0
- package/dist/lib/esm/active-router-4c80d3d2.js +73 -0
- package/dist/lib/esm/apollo-super-selection.js +21 -0
- package/dist/lib/esm/app-globals-7ac1ffba.js +23 -0
- package/dist/lib/esm/context-consumer.entry.js +25 -0
- package/dist/lib/esm/datorama-akita-79ce4385.js +2692 -0
- package/dist/lib/esm/delay-c0555599.js +935 -0
- package/dist/lib/esm/fl-button_44.entry.js +16956 -0
- package/dist/lib/esm/fl-style-guide.entry.js +86 -0
- package/dist/lib/esm/index-0496d1af.js +1734 -0
- package/dist/lib/esm/index.js +1 -0
- package/dist/lib/esm/loader.js +21 -0
- package/dist/lib/esm/polyfills/core-js.js +11 -0
- package/dist/lib/esm/polyfills/css-shim.js +1 -0
- package/dist/lib/esm/polyfills/dom.js +79 -0
- package/dist/lib/esm/polyfills/es5-html-element.js +1 -0
- package/dist/lib/esm/polyfills/index.js +34 -0
- package/dist/lib/esm/polyfills/system.js +6 -0
- package/dist/lib/esm/stencil-async-content.entry.js +28 -0
- package/dist/lib/esm/stencil-route-title.entry.js +28 -0
- package/dist/lib/esm/stencil-router-prompt.entry.js +55 -0
- package/dist/lib/esm/stencil-router-redirect.entry.js +28 -0
- package/dist/lib/esm-es5/active-router-4c80d3d2.js +1 -0
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -0
- package/dist/lib/esm-es5/app-globals-7ac1ffba.js +1 -0
- package/dist/lib/esm-es5/context-consumer.entry.js +1 -0
- package/dist/lib/esm-es5/datorama-akita-79ce4385.js +15 -0
- package/dist/lib/esm-es5/delay-c0555599.js +1 -0
- package/dist/lib/esm-es5/fl-button_44.entry.js +69 -0
- package/dist/lib/esm-es5/fl-style-guide.entry.js +1 -0
- package/dist/lib/esm-es5/index-0496d1af.js +1 -0
- package/dist/lib/esm-es5/index.js +0 -0
- package/dist/lib/esm-es5/loader.js +1 -0
- package/dist/lib/esm-es5/stencil-async-content.entry.js +1 -0
- package/dist/lib/esm-es5/stencil-route-title.entry.js +1 -0
- package/dist/lib/esm-es5/stencil-router-prompt.entry.js +1 -0
- package/dist/lib/esm-es5/stencil-router-redirect.entry.js +1 -0
- package/dist/lib/index.cjs.js +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/loader/cdn.js +3 -0
- package/dist/lib/loader/index.cjs.js +3 -0
- package/dist/lib/loader/index.d.ts +13 -0
- package/dist/lib/loader/index.es2017.js +3 -0
- package/dist/lib/loader/index.js +4 -0
- package/dist/lib/loader/package.json +10 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +45 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +9 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +9 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +141 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +5 -0
- 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 +3 -0
- package/dist/lib/types/components/app-host/loading-page.d.ts +3 -0
- package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +11 -0
- package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +9 -0
- package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +14 -0
- package/dist/lib/types/components/app-host/services/authentication.query.d.ts +13 -0
- package/dist/lib/types/components/app-host/services/authentication.service.d.ts +9 -0
- package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +7 -0
- package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +5 -0
- package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +7 -0
- package/dist/lib/types/components/app-host/services/interop.query.d.ts +11 -0
- package/dist/lib/types/components/app-host/services/session.store.d.ts +30 -0
- package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +73 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +16 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +82 -0
- package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +13 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +28 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +30 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +112 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +21 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +58 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +13 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +18 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +21 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +25 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +13 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +13 -0
- package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +26 -0
- package/dist/lib/types/components.d.ts +546 -0
- package/dist/lib/types/global/init-host.d.ts +1 -0
- package/dist/lib/types/global/main.d.ts +1 -0
- package/dist/lib/types/global/main.dev.d.ts +1 -0
- package/dist/lib/types/global/stencil-router-workaround.d.ts +1 -0
- package/dist/lib/types/index.d.ts +2 -0
- package/dist/lib/types/stencil-public-runtime.d.ts +1555 -0
- package/dist/lib/types/utils/config.d.ts +2 -0
- package/dist/lib/types/utils/gtm.d.ts +7 -0
- package/dist/lib/types/utils/iframe.d.ts +13 -0
- package/dist/lib/types/utils/index.d.ts +3 -0
- package/dist/lib/types/utils/lazy.d.ts +12 -0
- package/dist/lib/types/utils/storage.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,955 @@
|
|
|
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
|
+
class Action extends Subscription {
|
|
569
|
+
constructor(scheduler, work) {
|
|
570
|
+
super();
|
|
571
|
+
}
|
|
572
|
+
schedule(state, delay = 0) {
|
|
573
|
+
return this;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
class AsyncAction extends Action {
|
|
578
|
+
constructor(scheduler, work) {
|
|
579
|
+
super(scheduler, work);
|
|
580
|
+
this.scheduler = scheduler;
|
|
581
|
+
this.work = work;
|
|
582
|
+
this.pending = false;
|
|
583
|
+
}
|
|
584
|
+
schedule(state, delay = 0) {
|
|
585
|
+
if (this.closed) {
|
|
586
|
+
return this;
|
|
587
|
+
}
|
|
588
|
+
this.state = state;
|
|
589
|
+
const id = this.id;
|
|
590
|
+
const scheduler = this.scheduler;
|
|
591
|
+
if (id != null) {
|
|
592
|
+
this.id = this.recycleAsyncId(scheduler, id, delay);
|
|
593
|
+
}
|
|
594
|
+
this.pending = true;
|
|
595
|
+
this.delay = delay;
|
|
596
|
+
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
|
597
|
+
return this;
|
|
598
|
+
}
|
|
599
|
+
requestAsyncId(scheduler, id, delay = 0) {
|
|
600
|
+
return setInterval(scheduler.flush.bind(scheduler, this), delay);
|
|
601
|
+
}
|
|
602
|
+
recycleAsyncId(scheduler, id, delay = 0) {
|
|
603
|
+
if (delay !== null && this.delay === delay && this.pending === false) {
|
|
604
|
+
return id;
|
|
605
|
+
}
|
|
606
|
+
clearInterval(id);
|
|
607
|
+
return undefined;
|
|
608
|
+
}
|
|
609
|
+
execute(state, delay) {
|
|
610
|
+
if (this.closed) {
|
|
611
|
+
return new Error('executing a cancelled action');
|
|
612
|
+
}
|
|
613
|
+
this.pending = false;
|
|
614
|
+
const error = this._execute(state, delay);
|
|
615
|
+
if (error) {
|
|
616
|
+
return error;
|
|
617
|
+
}
|
|
618
|
+
else if (this.pending === false && this.id != null) {
|
|
619
|
+
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
_execute(state, delay) {
|
|
623
|
+
let errored = false;
|
|
624
|
+
let errorValue = undefined;
|
|
625
|
+
try {
|
|
626
|
+
this.work(state);
|
|
627
|
+
}
|
|
628
|
+
catch (e) {
|
|
629
|
+
errored = true;
|
|
630
|
+
errorValue = !!e && e || new Error(e);
|
|
631
|
+
}
|
|
632
|
+
if (errored) {
|
|
633
|
+
this.unsubscribe();
|
|
634
|
+
return errorValue;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
_unsubscribe() {
|
|
638
|
+
const id = this.id;
|
|
639
|
+
const scheduler = this.scheduler;
|
|
640
|
+
const actions = scheduler.actions;
|
|
641
|
+
const index = actions.indexOf(this);
|
|
642
|
+
this.work = null;
|
|
643
|
+
this.state = null;
|
|
644
|
+
this.pending = false;
|
|
645
|
+
this.scheduler = null;
|
|
646
|
+
if (index !== -1) {
|
|
647
|
+
actions.splice(index, 1);
|
|
648
|
+
}
|
|
649
|
+
if (id != null) {
|
|
650
|
+
this.id = this.recycleAsyncId(scheduler, id, null);
|
|
651
|
+
}
|
|
652
|
+
this.delay = null;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
class Scheduler {
|
|
657
|
+
constructor(SchedulerAction, now = Scheduler.now) {
|
|
658
|
+
this.SchedulerAction = SchedulerAction;
|
|
659
|
+
this.now = now;
|
|
660
|
+
}
|
|
661
|
+
schedule(work, delay = 0, state) {
|
|
662
|
+
return new this.SchedulerAction(this, work).schedule(state, delay);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
Scheduler.now = () => Date.now();
|
|
666
|
+
|
|
667
|
+
class AsyncScheduler extends Scheduler {
|
|
668
|
+
constructor(SchedulerAction, now = Scheduler.now) {
|
|
669
|
+
super(SchedulerAction, () => {
|
|
670
|
+
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
|
|
671
|
+
return AsyncScheduler.delegate.now();
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
674
|
+
return now();
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
this.actions = [];
|
|
678
|
+
this.active = false;
|
|
679
|
+
this.scheduled = undefined;
|
|
680
|
+
}
|
|
681
|
+
schedule(work, delay = 0, state) {
|
|
682
|
+
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
|
|
683
|
+
return AsyncScheduler.delegate.schedule(work, delay, state);
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
return super.schedule(work, delay, state);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
flush(action) {
|
|
690
|
+
const { actions } = this;
|
|
691
|
+
if (this.active) {
|
|
692
|
+
actions.push(action);
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
let error;
|
|
696
|
+
this.active = true;
|
|
697
|
+
do {
|
|
698
|
+
if (error = action.execute(action.state, action.delay)) {
|
|
699
|
+
break;
|
|
700
|
+
}
|
|
701
|
+
} while (action = actions.shift());
|
|
702
|
+
this.active = false;
|
|
703
|
+
if (error) {
|
|
704
|
+
while (action = actions.shift()) {
|
|
705
|
+
action.unsubscribe();
|
|
706
|
+
}
|
|
707
|
+
throw error;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
const EMPTY = new Observable(subscriber => subscriber.complete());
|
|
713
|
+
function empty$1(scheduler) {
|
|
714
|
+
return scheduler ? emptyScheduled(scheduler) : EMPTY;
|
|
715
|
+
}
|
|
716
|
+
function emptyScheduled(scheduler) {
|
|
717
|
+
return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
function isScheduler(value) {
|
|
721
|
+
return value && typeof value.schedule === 'function';
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
const subscribeToArray = (array) => (subscriber) => {
|
|
725
|
+
for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {
|
|
726
|
+
subscriber.next(array[i]);
|
|
727
|
+
}
|
|
728
|
+
subscriber.complete();
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
function scheduleArray(input, scheduler) {
|
|
732
|
+
return new Observable(subscriber => {
|
|
733
|
+
const sub = new Subscription();
|
|
734
|
+
let i = 0;
|
|
735
|
+
sub.add(scheduler.schedule(function () {
|
|
736
|
+
if (i === input.length) {
|
|
737
|
+
subscriber.complete();
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
subscriber.next(input[i++]);
|
|
741
|
+
if (!subscriber.closed) {
|
|
742
|
+
sub.add(this.schedule());
|
|
743
|
+
}
|
|
744
|
+
}));
|
|
745
|
+
return sub;
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
function fromArray(input, scheduler) {
|
|
750
|
+
if (!scheduler) {
|
|
751
|
+
return new Observable(subscribeToArray(input));
|
|
752
|
+
}
|
|
753
|
+
else {
|
|
754
|
+
return scheduleArray(input, scheduler);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
function of(...args) {
|
|
759
|
+
let scheduler = args[args.length - 1];
|
|
760
|
+
if (isScheduler(scheduler)) {
|
|
761
|
+
args.pop();
|
|
762
|
+
return scheduleArray(args, scheduler);
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
return fromArray(args);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
function throwError(error, scheduler) {
|
|
770
|
+
if (!scheduler) {
|
|
771
|
+
return new Observable(subscriber => subscriber.error(error));
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
return new Observable(subscriber => scheduler.schedule(dispatch, 0, { error, subscriber }));
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
function dispatch({ error, subscriber }) {
|
|
778
|
+
subscriber.error(error);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
var NotificationKind;
|
|
782
|
+
(function (NotificationKind) {
|
|
783
|
+
NotificationKind["NEXT"] = "N";
|
|
784
|
+
NotificationKind["ERROR"] = "E";
|
|
785
|
+
NotificationKind["COMPLETE"] = "C";
|
|
786
|
+
})(NotificationKind || (NotificationKind = {}));
|
|
787
|
+
class Notification {
|
|
788
|
+
constructor(kind, value, error) {
|
|
789
|
+
this.kind = kind;
|
|
790
|
+
this.value = value;
|
|
791
|
+
this.error = error;
|
|
792
|
+
this.hasValue = kind === 'N';
|
|
793
|
+
}
|
|
794
|
+
observe(observer) {
|
|
795
|
+
switch (this.kind) {
|
|
796
|
+
case 'N':
|
|
797
|
+
return observer.next && observer.next(this.value);
|
|
798
|
+
case 'E':
|
|
799
|
+
return observer.error && observer.error(this.error);
|
|
800
|
+
case 'C':
|
|
801
|
+
return observer.complete && observer.complete();
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
do(next, error, complete) {
|
|
805
|
+
const kind = this.kind;
|
|
806
|
+
switch (kind) {
|
|
807
|
+
case 'N':
|
|
808
|
+
return next && next(this.value);
|
|
809
|
+
case 'E':
|
|
810
|
+
return error && error(this.error);
|
|
811
|
+
case 'C':
|
|
812
|
+
return complete && complete();
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
accept(nextOrObserver, error, complete) {
|
|
816
|
+
if (nextOrObserver && typeof nextOrObserver.next === 'function') {
|
|
817
|
+
return this.observe(nextOrObserver);
|
|
818
|
+
}
|
|
819
|
+
else {
|
|
820
|
+
return this.do(nextOrObserver, error, complete);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
toObservable() {
|
|
824
|
+
const kind = this.kind;
|
|
825
|
+
switch (kind) {
|
|
826
|
+
case 'N':
|
|
827
|
+
return of(this.value);
|
|
828
|
+
case 'E':
|
|
829
|
+
return throwError(this.error);
|
|
830
|
+
case 'C':
|
|
831
|
+
return empty$1();
|
|
832
|
+
}
|
|
833
|
+
throw new Error('unexpected notification kind value');
|
|
834
|
+
}
|
|
835
|
+
static createNext(value) {
|
|
836
|
+
if (typeof value !== 'undefined') {
|
|
837
|
+
return new Notification('N', value);
|
|
838
|
+
}
|
|
839
|
+
return Notification.undefinedValueNotification;
|
|
840
|
+
}
|
|
841
|
+
static createError(err) {
|
|
842
|
+
return new Notification('E', undefined, err);
|
|
843
|
+
}
|
|
844
|
+
static createComplete() {
|
|
845
|
+
return Notification.completeNotification;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
Notification.completeNotification = new Notification('C');
|
|
849
|
+
Notification.undefinedValueNotification = new Notification('N', undefined);
|
|
850
|
+
|
|
851
|
+
const asyncScheduler = new AsyncScheduler(AsyncAction);
|
|
852
|
+
const async = asyncScheduler;
|
|
853
|
+
|
|
854
|
+
function isDate(value) {
|
|
855
|
+
return value instanceof Date && !isNaN(+value);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function delay(delay, scheduler = async) {
|
|
859
|
+
const absoluteDelay = isDate(delay);
|
|
860
|
+
const delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);
|
|
861
|
+
return (source) => source.lift(new DelayOperator(delayFor, scheduler));
|
|
862
|
+
}
|
|
863
|
+
class DelayOperator {
|
|
864
|
+
constructor(delay, scheduler) {
|
|
865
|
+
this.delay = delay;
|
|
866
|
+
this.scheduler = scheduler;
|
|
867
|
+
}
|
|
868
|
+
call(subscriber, source) {
|
|
869
|
+
return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
class DelaySubscriber extends Subscriber {
|
|
873
|
+
constructor(destination, delay, scheduler) {
|
|
874
|
+
super(destination);
|
|
875
|
+
this.delay = delay;
|
|
876
|
+
this.scheduler = scheduler;
|
|
877
|
+
this.queue = [];
|
|
878
|
+
this.active = false;
|
|
879
|
+
this.errored = false;
|
|
880
|
+
}
|
|
881
|
+
static dispatch(state) {
|
|
882
|
+
const source = state.source;
|
|
883
|
+
const queue = source.queue;
|
|
884
|
+
const scheduler = state.scheduler;
|
|
885
|
+
const destination = state.destination;
|
|
886
|
+
while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {
|
|
887
|
+
queue.shift().notification.observe(destination);
|
|
888
|
+
}
|
|
889
|
+
if (queue.length > 0) {
|
|
890
|
+
const delay = Math.max(0, queue[0].time - scheduler.now());
|
|
891
|
+
this.schedule(state, delay);
|
|
892
|
+
}
|
|
893
|
+
else {
|
|
894
|
+
this.unsubscribe();
|
|
895
|
+
source.active = false;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
_schedule(scheduler) {
|
|
899
|
+
this.active = true;
|
|
900
|
+
const destination = this.destination;
|
|
901
|
+
destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {
|
|
902
|
+
source: this, destination: this.destination, scheduler: scheduler
|
|
903
|
+
}));
|
|
904
|
+
}
|
|
905
|
+
scheduleNotification(notification) {
|
|
906
|
+
if (this.errored === true) {
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
const scheduler = this.scheduler;
|
|
910
|
+
const message = new DelayMessage(scheduler.now() + this.delay, notification);
|
|
911
|
+
this.queue.push(message);
|
|
912
|
+
if (this.active === false) {
|
|
913
|
+
this._schedule(scheduler);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
_next(value) {
|
|
917
|
+
this.scheduleNotification(Notification.createNext(value));
|
|
918
|
+
}
|
|
919
|
+
_error(err) {
|
|
920
|
+
this.errored = true;
|
|
921
|
+
this.queue = [];
|
|
922
|
+
this.destination.error(err);
|
|
923
|
+
this.unsubscribe();
|
|
924
|
+
}
|
|
925
|
+
_complete() {
|
|
926
|
+
this.scheduleNotification(Notification.createComplete());
|
|
927
|
+
this.unsubscribe();
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
class DelayMessage {
|
|
931
|
+
constructor(time, notification) {
|
|
932
|
+
this.time = time;
|
|
933
|
+
this.notification = notification;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
exports.AsyncAction = AsyncAction;
|
|
938
|
+
exports.AsyncScheduler = AsyncScheduler;
|
|
939
|
+
exports.Notification = Notification;
|
|
940
|
+
exports.Observable = Observable;
|
|
941
|
+
exports.Subscriber = Subscriber;
|
|
942
|
+
exports.Subscription = Subscription;
|
|
943
|
+
exports.async = async;
|
|
944
|
+
exports.delay = delay;
|
|
945
|
+
exports.empty = empty$1;
|
|
946
|
+
exports.hostReportError = hostReportError;
|
|
947
|
+
exports.isArray = isArray;
|
|
948
|
+
exports.isFunction = isFunction;
|
|
949
|
+
exports.isObject = isObject;
|
|
950
|
+
exports.isScheduler = isScheduler;
|
|
951
|
+
exports.observable = observable;
|
|
952
|
+
exports.of = of;
|
|
953
|
+
exports.rxSubscriber = rxSubscriber;
|
|
954
|
+
exports.scheduleArray = scheduleArray;
|
|
955
|
+
exports.subscribeToArray = subscribeToArray;
|