@flarehr/apollo-super-selection 3.52.60060 → 3.55.61713
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.css +1 -0
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/apollo-super-selection.js +1 -1
- package/dist/lib/apollo-super-selection/assets/icon-check.svg +3 -0
- package/dist/lib/apollo-super-selection/assets/icon-exclamation.svg +3 -0
- package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +3 -0
- package/dist/lib/apollo-super-selection/p-0d3b8084.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-0ef73515.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-0f723eb4.system.js +1 -0
- package/dist/lib/apollo-super-selection/{p-01a9f4a4.entry.js → p-12d77532.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-14885f78.system.js +15 -0
- package/dist/lib/apollo-super-selection/{p-381262c1.system.js → p-15f0e5eb.system.js} +1 -1
- package/dist/lib/apollo-super-selection/p-29c11183.js +15 -0
- package/dist/lib/apollo-super-selection/{p-20136efe.entry.js → p-375401a0.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-285da037.system.entry.js → p-3ce021a5.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-61734b66.js → p-40e504c4.js} +1 -1
- package/dist/lib/apollo-super-selection/p-67b71067.entry.js +1 -0
- package/dist/lib/apollo-super-selection/{p-082669d9.js → p-683b6e23.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-38ee2795.system.js → p-6cdec249.system.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-cd49a6b7.system.entry.js → p-76eee25a.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-86e3e03f.js +1 -0
- package/dist/lib/apollo-super-selection/{p-8cbfc343.system.entry.js → p-918a740c.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-93f7a547.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-c249f6ed.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-c2b9cfa5.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/{p-a98c2760.entry.js → p-cb6b386e.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-f15bf700.system.entry.js → p-e9a34be2.system.entry.js} +1 -1
- package/dist/lib/cjs/{active-router-e92fd784.js → active-router-71d965f4.js} +1 -1
- package/dist/lib/cjs/apollo-super-selection.cjs.js +4 -5
- package/dist/lib/cjs/{app-globals-45007120.js → app-globals-b1125d8c.js} +1 -1
- package/dist/lib/cjs/context-consumer.cjs.entry.js +1 -1
- package/dist/lib/cjs/{datorama-akita-7f4b082a.js → datorama-akita-6c9cb8fb.js} +1005 -68
- package/dist/lib/cjs/{index-942e6faa.js → index-f746d8f0.js} +2 -0
- package/dist/lib/cjs/loader.cjs.js +4 -5
- package/dist/lib/cjs/{fl-button_31.cjs.entry.js → sss-button_28.cjs.entry.js} +2138 -2177
- package/dist/lib/cjs/stencil-async-content.cjs.entry.js +1 -1
- package/dist/lib/cjs/stencil-route-title.cjs.entry.js +2 -2
- package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +2 -2
- package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +2 -2
- package/dist/lib/collection/apollo-super-selection.css +1 -0
- package/dist/lib/collection/collection-manifest.json +16 -28
- package/dist/lib/collection/components/app-host/loading-page.js +3 -3
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -4
- package/dist/lib/collection/components/app-host/super-selection-app-host.js +7 -19
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +69 -1
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +9 -3
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +16 -21
- package/dist/lib/collection/components/super-selection-app/assets/icon-check.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/consent/consent.js +57 -0
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +136 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +6 -18
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +50 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +32 -16
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +10 -14
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +36 -45
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +40 -19
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +45 -40
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +104 -58
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +53 -49
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +6 -16
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +1 -4
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +10 -4
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +13 -4
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +2 -3
- package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +45 -0
- package/dist/lib/collection/components/super-selection-app/misc/button.js +146 -0
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +7 -0
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +359 -0
- package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +52 -0
- package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +8 -4
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +20 -0
- package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +95 -0
- package/dist/lib/collection/components/super-selection-app/services/feature-flag.service.js +11 -0
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +8 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +6 -4
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +69 -34
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +10 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.js +94 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +90 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +85 -92
- package/dist/lib/collection/components/super-selection-app/super-selection-app.css +16 -4
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +59 -11
- package/dist/lib/esm/{active-router-4c80d3d2.js → active-router-2056f552.js} +1 -1
- package/dist/lib/esm/apollo-super-selection.js +4 -5
- package/dist/lib/esm/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
- package/dist/lib/esm/context-consumer.entry.js +1 -1
- package/dist/lib/esm/{datorama-akita-79ce4385.js → datorama-akita-127aea91.js} +960 -28
- package/dist/lib/esm/{index-0496d1af.js → index-e1e930c8.js} +2 -1
- package/dist/lib/esm/loader.js +4 -5
- package/dist/lib/esm/{fl-button_31.entry.js → sss-button_28.entry.js} +2124 -2160
- package/dist/lib/esm/stencil-async-content.entry.js +1 -1
- package/dist/lib/esm/stencil-route-title.entry.js +2 -2
- package/dist/lib/esm/stencil-router-prompt.entry.js +2 -2
- package/dist/lib/esm/stencil-router-redirect.entry.js +2 -2
- package/dist/lib/esm-es5/{active-router-4c80d3d2.js → active-router-2056f552.js} +1 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
- package/dist/lib/esm-es5/context-consumer.entry.js +1 -1
- package/dist/lib/esm-es5/datorama-akita-127aea91.js +15 -0
- package/dist/lib/esm-es5/{index-0496d1af.js → index-e1e930c8.js} +1 -1
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_28.entry.js +69 -0
- package/dist/lib/esm-es5/stencil-async-content.entry.js +1 -1
- package/dist/lib/esm-es5/stencil-route-title.entry.js +1 -1
- package/dist/lib/esm-es5/stencil-router-prompt.entry.js +1 -1
- package/dist/lib/esm-es5/stencil-router-redirect.entry.js +1 -1
- package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +30 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +19 -4
- package/dist/lib/types/components/super-selection-app/consent/consent.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +4 -6
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -2
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/misc/button.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +44 -0
- package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +51 -0
- package/dist/lib/types/components/super-selection-app/services/feature-flag.service.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +3 -2
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +6 -3
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +1 -4
- package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +2 -1
- package/dist/lib/types/components.d.ts +148 -97
- package/package.json +12 -7
- package/dist/lib/apollo-super-selection/assets/logo-qsuper-square.png +0 -0
- package/dist/lib/apollo-super-selection/assets/logo-qsuper.png +0 -0
- package/dist/lib/apollo-super-selection/p-0623b20a.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
- package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
- package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
- package/dist/lib/apollo-super-selection/p-642db1f7.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-abedb220.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-ae4f5e0b.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-c5e41889.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
- package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-fbe8c6d1.entry.js +0 -14
- package/dist/lib/cjs/delay-81aff2f1.js +0 -955
- package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +0 -23
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +0 -62
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
- 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 +0 -19
- package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
- package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
- package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
- package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -50
- package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
- package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper-square.png +0 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper.png +0 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -296
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -70
- package/dist/lib/esm/delay-c0555599.js +0 -935
- package/dist/lib/esm/fl-style-guide.entry.js +0 -86
- package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
- package/dist/lib/esm-es5/delay-c0555599.js +0 -1
- package/dist/lib/esm-es5/fl-button_31.entry.js +0 -69
- package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
- 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/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
- package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
- package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
- package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -22
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __spreadArrays=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};System.register(["./p-7dbe5a2f.system.js"],(function(t){"use strict";var e,n,r,i,o,s,a,u,c,f,p,h,l,d,v;return{setters:[function(t){e=t.S;n=t.O;r=t.r;i=t.a;o=t.A;s=t.b;a=t.N;u=t.h;c=t.o;f=t.s;p=t.i;h=t.c;l=t.e;d=t.d;v=t.f}],execute:function(){t({b:ot,c:pe,d:ut,e:Ct,f:et,i:it,m:M});
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function y(t,e){var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0)n[r]=t[r];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++){if(e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i]))n[r[i]]=t[r[i]]}return n}function g(t,e,n,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)if(s=t[a])o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o;return i>3&&o&&Object.defineProperty(e,n,o),o}function b(t,e){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(t,e)}var _=function(){function t(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}t.prototype=Object.create(Error.prototype);return t}();var m=_;var w=function(t){__extends(e,t);function e(e,n){var r=t.call(this)||this;r.subject=e;r.subscriber=n;r.closed=false;return r}e.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var t=this.subject;var e=t.observers;this.subject=null;if(!e||e.length===0||t.isStopped||t.closed){return}var n=e.indexOf(this.subscriber);if(n!==-1){e.splice(n,1)}};return e}(e);var S=function(t){__extends(e,t);function e(e){var n=t.call(this,e)||this;n.destination=e;return n}return e}(i);var O=function(t){__extends(i,t);function i(){var e=t.call(this)||this;e.observers=[];e.closed=false;e.isStopped=false;e.hasError=false;e.thrownError=null;return e}i.prototype[r]=function(){return new S(this)};i.prototype.lift=function(t){var e=new P(this,this);e.operator=t;return e};i.prototype.next=function(t){if(this.closed){throw new m}if(!this.isStopped){var e=this.observers;var n=e.length;var r=e.slice();for(var i=0;i<n;i++){r[i].next(t)}}};i.prototype.error=function(t){if(this.closed){throw new m}this.hasError=true;this.thrownError=t;this.isStopped=true;var e=this.observers;var n=e.length;var r=e.slice();for(var i=0;i<n;i++){r[i].error(t)}this.observers.length=0};i.prototype.complete=function(){if(this.closed){throw new m}this.isStopped=true;var t=this.observers;var e=t.length;var n=t.slice();for(var r=0;r<e;r++){n[r].complete()}this.observers.length=0};i.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};i.prototype._trySubscribe=function(e){if(this.closed){throw new m}else{return t.prototype._trySubscribe.call(this,e)}};i.prototype._subscribe=function(t){if(this.closed){throw new m}else if(this.hasError){t.error(this.thrownError);return e.EMPTY}else if(this.isStopped){t.complete();return e.EMPTY}else{this.observers.push(t);return new w(this,t)}};i.prototype.asObservable=function(){var t=new n;t.source=this;return t};return i}(n);O.create=function(t,e){return new P(t,e)};var P=function(t){__extends(n,t);function n(e,n){var r=t.call(this)||this;r.destination=e;r.source=n;return r}n.prototype.next=function(t){var e=this.destination;if(e&&e.next){e.next(t)}};n.prototype.error=function(t){var e=this.destination;if(e&&e.error){this.destination.error(t)}};n.prototype.complete=function(){var t=this.destination;if(t&&t.complete){this.destination.complete()}};n.prototype._subscribe=function(t){var n=this.source;if(n){return this.source.subscribe(t)}else{return e.EMPTY}};return n}(O);var E=function(t){__extends(e,t);function e(e){var n=t.call(this)||this;n._value=e;return n}Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:false,configurable:true});e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);if(n&&!n.closed){e.next(this._value)}return n};e.prototype.getValue=function(){if(this.hasError){throw this.thrownError}else if(this.closed){throw new m}else{return this._value}};e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)};return e}(O);var j=function(t){__extends(e,t);function e(e,n){var r=t.call(this,e,n)||this;r.scheduler=e;r.work=n;return r}e.prototype.schedule=function(e,n){if(n===void 0){n=0}if(n>0){return t.prototype.schedule.call(this,e,n)}this.delay=n;this.state=e;this.scheduler.flush(this);return this};e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)};e.prototype.requestAsyncId=function(e,n,r){if(r===void 0){r=0}if(r!==null&&r>0||r===null&&this.delay>0){return t.prototype.requestAsyncId.call(this,e,n,r)}return e.flush(this)};return e}(o);var x=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(s);var A=new x(j);var I=A;var C=function(t){__extends(e,t);function e(e,n,r){if(r===void 0){r=0}var i=t.call(this,e)||this;i.scheduler=n;i.delay=r;return i}e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n);this.unsubscribe()};e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new N(t,this.destination)))};e.prototype._next=function(t){this.scheduleMessage(a.createNext(t))};e.prototype._error=function(t){this.scheduleMessage(a.createError(t));this.unsubscribe()};e.prototype._complete=function(){this.scheduleMessage(a.createComplete());this.unsubscribe()};return e}(i);var N=function(){function t(t,e){this.notification=t;this.destination=e}return t}();var U=function(t){__extends(n,t);function n(e,n,r){if(e===void 0){e=Number.POSITIVE_INFINITY}if(n===void 0){n=Number.POSITIVE_INFINITY}var i=t.call(this)||this;i.scheduler=r;i._events=[];i._infiniteTimeWindow=false;i._bufferSize=e<1?1:e;i._windowTime=n<1?1:n;if(n===Number.POSITIVE_INFINITY){i._infiniteTimeWindow=true;i.next=i.nextInfiniteTimeWindow}else{i.next=i.nextTimeWindow}return i}n.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e);if(n.length>this._bufferSize){n.shift()}}t.prototype.next.call(this,e)};n.prototype.nextTimeWindow=function(e){if(!this.isStopped){this._events.push(new F(this._getNow(),e));this._trimBufferThenGetEvents()}t.prototype.next.call(this,e)};n.prototype._subscribe=function(t){var n=this._infiniteTimeWindow;var r=n?this._events:this._trimBufferThenGetEvents();var i=this.scheduler;var o=r.length;var s;if(this.closed){throw new m}else if(this.isStopped||this.hasError){s=e.EMPTY}else{this.observers.push(t);s=new w(this,t)}if(i){t.add(t=new C(t,i))}if(n){for(var a=0;a<o&&!t.closed;a++){t.next(r[a])}}else{for(var a=0;a<o&&!t.closed;a++){t.next(r[a].value)}}if(this.hasError){t.error(this.thrownError)}else if(this.isStopped){t.complete()}return s};n.prototype._getNow=function(){return(this.scheduler||I).now()};n.prototype._trimBufferThenGetEvents=function(){var t=this._getNow();var e=this._bufferSize;var n=this._windowTime;var r=this._events;var i=r.length;var o=0;while(o<i){if(t-r[o].time<n){break}o++}if(i>e){o=Math.max(o,i-e)}if(o>0){r.splice(0,o)}return r};return n}(O);var F=function(){function t(t,e){this.time=t;this.value=e}return t}();function k(t){return!!t&&(t instanceof n||typeof t.lift==="function"&&typeof t.subscribe==="function")}var K=function(){function t(){Error.call(this);this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}t.prototype=Object.create(Error.prototype);return t}();var R=K;function M(t,e){return function n(r){if(typeof t!=="function"){throw new TypeError("argument is not a function. Are you looking for `mapTo()`?")}return r.lift(new L(t,e))}}var L=function(){function t(t,e){this.project=t;this.thisArg=e}t.prototype.call=function(t,e){return e.subscribe(new V(t,this.project,this.thisArg))};return t}();var V=function(t){__extends(e,t);function e(e,n,r){var i=t.call(this,e)||this;i.project=n;i.count=0;i.thisArg=r||i;return i}e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)};return e}(i);var W=function(t){return function(e){t.then((function(t){if(!e.closed){e.next(t);e.complete()}}),(function(t){return e.error(t)})).then(null,u);return e}};function Y(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}var $=Y();var q=function(t){return function(e){var n=t[$]();do{var r=void 0;try{r=n.next()}catch(t){e.error(t);return e}if(r.done){e.complete();break}e.next(r.value);if(e.closed){break}}while(true);if(typeof n.return==="function"){e.add((function(){if(n.return){n.return()}}))}return e}};var Q=function(t){return function(e){var n=t[c]();if(typeof n.subscribe!=="function"){throw new TypeError("Provided object does not correctly implement Symbol.observable")}else{return n.subscribe(e)}}};var z=function(t){return t&&typeof t.length==="number"&&typeof t!=="function"};function D(t){return!!t&&typeof t.subscribe!=="function"&&typeof t.then==="function"}var H=function(t){if(!!t&&typeof t[c]==="function"){return Q(t)}else if(z(t)){return f(t)}else if(D(t)){return W(t)}else if(!!t&&typeof t[$]==="function"){return q(t)}else{var e=p(t)?"an invalid object":"'"+t+"'";var n="You provided "+e+" where a stream was expected."+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)}};function B(t,r){return new n((function(n){var i=new e;i.add(r.schedule((function(){var e=t[c]();i.add(e.subscribe({next:function(t){i.add(r.schedule((function(){return n.next(t)})))},error:function(t){i.add(r.schedule((function(){return n.error(t)})))},complete:function(){i.add(r.schedule((function(){return n.complete()})))}}))})));return i}))}function G(t,r){return new n((function(n){var i=new e;i.add(r.schedule((function(){return t.then((function(t){i.add(r.schedule((function(){n.next(t);i.add(r.schedule((function(){return n.complete()})))})))}),(function(t){i.add(r.schedule((function(){return n.error(t)})))}))})));return i}))}function J(t,r){if(!t){throw new Error("Iterable cannot be null")}return new n((function(n){var i=new e;var o;i.add((function(){if(o&&typeof o.return==="function"){o.return()}}));i.add(r.schedule((function(){o=t[$]();i.add(r.schedule((function(){if(n.closed){return}var t;var e;try{var r=o.next();t=r.value;e=r.done}catch(t){n.error(t);return}if(e){n.complete()}else{n.next(t);this.schedule()}})))})));return i}))}function X(t){return t&&typeof t[c]==="function"}function Z(t){return t&&typeof t[$]==="function"}function tt(t,e){if(t!=null){if(X(t)){return B(t,e)}else if(D(t)){return G(t,e)}else if(z(t)){return h(t,e)}else if(Z(t)||typeof t==="string"){return J(t,e)}}throw new TypeError((t!==null&&typeof t||t)+" is not observable")}function et(t,e){if(!e){if(t instanceof n){return t}return new n(H(t))}else{return tt(t,e)}}var nt=function(t){__extends(e,t);function e(e){var n=t.call(this)||this;n.parent=e;return n}e.prototype._next=function(t){this.parent.notifyNext(t)};e.prototype._error=function(t){this.parent.notifyError(t);this.unsubscribe()};e.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};return e}(i);t("a",nt);var rt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.notifyNext=function(t){this.destination.next(t)};e.prototype.notifyError=function(t){this.destination.error(t)};e.prototype.notifyComplete=function(){this.destination.complete()};return e}(i);t("S",rt);function it(t,e){if(e.closed){return undefined}if(t instanceof n){return t.subscribe(e)}return H(t)(e)}function ot(t,e){return function n(r){return r.lift(new st(t,e))}}var st=function(){function t(t,e){this.predicate=t;this.thisArg=e}t.prototype.call=function(t,e){return e.subscribe(new at(t,this.predicate,this.thisArg))};return t}();var at=function(t){__extends(e,t);function e(e,n,r){var i=t.call(this,e)||this;i.predicate=n;i.thisArg=r;i.count=0;return i}e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}if(e){this.destination.next(t)}};return e}(i);function ut(t,e){return function(n){return n.lift(new ct(t,e))}}var ct=function(){function t(t,e){this.compare=t;this.keySelector=e}t.prototype.call=function(t,e){return e.subscribe(new ft(t,this.compare,this.keySelector))};return t}();var ft=function(t){__extends(e,t);function e(e,n,r){var i=t.call(this,e)||this;i.keySelector=r;i.hasKey=false;if(typeof n==="function"){i.compare=n}return i}e.prototype.compare=function(t,e){return t===e};e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=false;if(this.hasKey){try{var i=this.compare;r=i(this.key,e)}catch(t){return this.destination.error(t)}}else{this.hasKey=true}if(!r){this.key=e;this.destination.next(t)}};return e}(i);function pt(t){return function(e){if(t===0){return l()}else{return e.lift(new ht(t))}}}var ht=function(){function t(t){this.total=t;if(this.total<0){throw new R}}t.prototype.call=function(t,e){return e.subscribe(new lt(t,this.total))};return t}();var lt=function(t){__extends(e,t);function e(e,n){var r=t.call(this,e)||this;r.total=n;r.count=0;return r}e.prototype._next=function(t){var e=this.total;var n=++this.count;if(n<=e){this.destination.next(t);if(n===e){this.destination.complete();this.unsubscribe()}}};return e}(i);function dt(t,e){if(typeof e==="function"){return function(n){return n.pipe(dt((function(n,r){return et(t(n,r)).pipe(M((function(t,i){return e(n,t,r,i)})))})))}}return function(e){return e.lift(new vt(t))}}var vt=function(){function t(t){this.project=t}t.prototype.call=function(t,e){return e.subscribe(new yt(t,this.project))};return t}();var yt=function(t){__extends(e,t);function e(e,n){var r=t.call(this,e)||this;r.project=n;r.index=0;return r}e.prototype._next=function(t){var e;var n=this.index++;try{e=this.project(t,n)}catch(t){this.destination.error(t);return}this._innerSub(e)};e.prototype._innerSub=function(t){var e=this.innerSubscription;if(e){e.unsubscribe()}var n=new nt(this);var r=this.destination;r.add(n);this.innerSubscription=it(t,n);if(this.innerSubscription!==n){r.add(this.innerSubscription)}};e.prototype._complete=function(){var e=this.innerSubscription;if(!e||e.closed){t.prototype._complete.call(this)}this.unsubscribe()};e.prototype._unsubscribe=function(){this.innerSubscription=undefined};e.prototype.notifyComplete=function(){this.innerSubscription=undefined;if(this.isStopped){t.prototype._complete.call(this)}};e.prototype.notifyNext=function(t){this.destination.next(t)};return e}(rt);var gt={type:null,entityIds:null,skip:false};var bt=false;function _t(){bt=false}function mt(t,e){wt(t,e);bt=true}function wt(t,e){if(bt===false){gt.type=t;gt.entityIds=e}}function St(t,e){return function(n,r,i){var o=i.value;i.value=function(){var n=[];for(var r=0;r<arguments.length;r++){n[r]=arguments[r]}mt(t,e);return o.apply(this,n)};return i}}function Ot(t,e){return t.hasOwnProperty(e)}function Pt(t){var e=t.state,n=t.entities,r=t.idKey,i=t.options,o=i===void 0?{}:i,s=t.preAddEntity;var a={};var u=[];var c=false;for(var f=0,p=n;f<p.length;f++){var h=p[f];if(Ot(e.entities,h[r])===false){var l=s(h);var d=l[r];a[d]=l;if(o.prepend)u.unshift(d);else u.push(d);c=true}}return c?{newState:Object.assign({},e,{entities:Object.assign({},e.entities,a),ids:o.prepend?__spreadArrays(u,e.ids):__spreadArrays(e.ids,u)}),newIds:u}:null}function Et(t){return t===null||t===undefined}function jt(t){if(Et(t)){return[]}return Array.isArray(t)?t:[t]}var xt="id";var At;(function(t){t["Set"]="Set";t["Add"]="Add";t["Update"]="Update";t["Remove"]="Remove"})(At||(At={}));var Tt=typeof window!=="undefined";var It=true;function Ct(){It=false;if(Tt){delete window.$$stores;delete window.$$queries}}function Nt(){return It}function Ut(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function Ft(t){return Array.isArray(t)}function kt(t,e,n){var r;if(Ft(t)){r=t}else{if(Ut(t)){if(Et(n))return;t=Object.assign({wrap:true},t);var i=e.indexOf(n);if(t.prev){var o=i===0;if(o&&!t.wrap)return;r=o?e[e.length-1]:e[i-1]}else if(t.next){var s=e.length===i+1;if(s&&!t.wrap)return;r=s?e[0]:e[i+1]}}else{if(t===n)return;r=t}}return r}var Kt=function(){return{entities:{},ids:[],loading:true,error:null}};function Rt(t){return Et(t)===false}function Mt(t){if(Ft(t)){return t.length===0}return false}function Lt(t){return typeof t==="function"}function Vt(t){return t===undefined}function Wt(t){return t.hasOwnProperty("active")}function Yt(t){return Ft(t)}function $t(t){var e=t.active,n=t.ids,r=t.entities;if(Yt(e)){return qt(e,n)}if(Ot(r,e)===false){return null}return e}function qt(t,e){var n=t.filter((function(t){return e.indexOf(t)>-1}));if(n.length===t.length){return t}return n}function Qt(t){var e=t.state,n=t.ids;if(Et(n))return zt(e);var r=e.entities;var i={};for(var o=0,s=e.ids;o<s.length;o++){var a=s[o];if(n.includes(a)===false){i[a]=r[a]}}var u=Object.assign({},e,{entities:i,ids:e.ids.filter((function(t){return n.includes(t)===false}))});if(Wt(e)){u.active=$t(u)}return u}function zt(t){return Object.assign({},t,{entities:{},ids:[],active:Yt(t.active)?[]:null})}function Dt(t,e,n){var r={entities:{},ids:[]};for(var i=0,o=t;i<o.length;i++){var s=o[i];var a=n(s);r.entities[a[e]]=a;r.ids.push(a[e])}return r}function Ht(t){return t.entities&&t.ids}function Bt(t,e){var n={};for(var r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=e(t[o])}return n}function Gt(t){var e=t.state,n=t.entities,r=t.idKey,i=t.preAddEntity,o=t.isNativePreAdd;var s;var a;if(Ft(n)){var u=Dt(n,r,i);s=u.entities;a=u.ids}else if(Ht(n)){s=o?n.entities:Bt(n.entities,i);a=n.ids}else{s=o?n:Bt(n,i);a=Object.keys(s).map((function(t){return isNaN(t)?t:Number(t)}))}var c=Object.assign({},e,{entities:s,ids:a,loading:false});if(Wt(e)){c.active=$t(c)}return c}var Jt={resettable:false,ttl:null,producerFn:undefined};function Xt(){return Jt}function Zt(){return Jt.producerFn}function te(t){Object.freeze(t);var e=typeof t==="function";var n=Object.prototype.hasOwnProperty;Object.getOwnPropertyNames(t).forEach((function(r){if(n.call(t,r)&&(e?r!=="caller"&&r!=="callee"&&r!=="arguments":true)&&t[r]!==null&&(typeof t[r]==="object"||typeof t[r]==="function")&&!Object.isFrozen(t[r])){te(t[r])}}));return t}var ee=new O;var ne=new U(50,5e3);var re=new O;function ie(t){ee.next(t)}function oe(t){ne.next(t)}function se(t,e){re.next({storeName:t,action:e})}function ae(t,e){if(!t){console.error("@StoreConfig({ name }) is missing in "+e)}}function ue(t){return t!=null&&""+t!=="false"}function ce(t){return ue(t)&&t.constructor.name==="Object"}var fe="akitaConfig";function pe(t){return function(e){e[fe]={idKey:"id"};for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];if(i==="name"){e[fe]["storeName"]=t[i]}else{e[fe][i]=t[i]}}}}var he={};var le={};if(Tt){window.$$stores=he;window.$$queries=le}var de=new O;var ve=new E(false);var ye={activeTransactions:0,batchTransaction:null};function ge(){if(!_e()){ye.batchTransaction=new O}ye.activeTransactions++;ve.next(true)}function be(){if(--ye.activeTransactions===0){ye.batchTransaction.next(true);ye.batchTransaction.complete();ve.next(false);de.next(true)}}function _e(){return ye.activeTransactions>0}function me(){return ye.batchTransaction?ye.batchTransaction.asObservable():d(true)}function we(t,e){if(e===void 0){e=undefined}ge();try{return t.apply(e)}finally{mt("@Transaction");be()}}function Se(){return function(t,e,n){var r=n.value;n.value=function(){var t=this;var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}return we((function(){return r.apply(t,e)}),this)};return n}}var Oe=function(){function t(t,e){if(e===void 0){e={}}this.options=e;this.inTransaction=false;this.cache={active:new E(false),ttl:null};this.onInit(t)}t.prototype.setLoading=function(t){if(t===void 0){t=false}if(t!==this._value().loading){Nt()&&wt("Set Loading");this._setState((function(e){return Object.assign({},e,{loading:t})}))}};t.prototype.setHasCache=function(t,e){var n=this;if(e===void 0){e={restartTTL:false}}if(t!==this.cache.active.value){this.cache.active.next(t)}if(e.restartTTL){var r=this.getCacheTTL();if(r){if(this.cache.ttl!==null){clearTimeout(this.cache.ttl)}this.cache.ttl=setTimeout((function(){return n.setHasCache(false)}),r)}}};t.prototype.getValue=function(){return this.storeValue};t.prototype.setError=function(t){if(t!==this._value().error){Nt()&&wt("Set Error");this._setState((function(e){return Object.assign({},e,{error:t})}))}};t.prototype._select=function(t){return this.store.asObservable().pipe(M((function(e){return t(e.state)})),ut())};t.prototype._value=function(){return this.storeValue};t.prototype._cache=function(){return this.cache.active};Object.defineProperty(t.prototype,"config",{get:function(){return this.constructor[fe]||{}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"storeName",{get:function(){return this.config.storeName||this.options.storeName||this.options.name},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"deepFreeze",{get:function(){return this.config.deepFreezeFn||this.options.deepFreezeFn||te},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cacheConfig",{get:function(){return this.config.cache||this.options.cache},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"_producerFn",{get:function(){return this.config.producerFn||this.options.producerFn||Zt()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"resettable",{get:function(){return Rt(this.config.resettable)?this.config.resettable:this.options.resettable},enumerable:false,configurable:true});t.prototype._setState=function(t,e){var n=this;if(e===void 0){e=true}if(Lt(t)){var r=t(this._value());this.storeValue=It?this.deepFreeze(r):r}else{this.storeValue=t}if(!this.store){this.store=new E({state:this.storeValue});if(Nt()){this.store.subscribe((function(t){var e=t.action;if(e){se(n.storeName,e)}}))}return}if(_e()){this.handleTransaction();return}this.dispatch(this.storeValue,e)};t.prototype.reset=function(){var t=this;if(this.isResettable()){Nt()&&wt("Reset");this._setState((function(){return Object.assign({},t._initialState)}));this.setHasCache(false)}else{Nt()&&console.warn("You need to enable the reset functionality")}};t.prototype.update=function(t){Nt()&&wt("Update");var e;var n=this._value();if(Lt(t)){e=Lt(this._producerFn)?this._producerFn(n,t):t(n)}else{e=t}var r=this.akitaPreUpdate(n,Object.assign({},n,e));var i=ce(n)?r:new n.constructor(r);this._setState(i)};t.prototype.updateStoreConfig=function(t){this.options=Object.assign({},this.options,t)};t.prototype.akitaPreUpdate=function(t,e){return e};t.prototype.ngOnDestroy=function(){this.destroy()};t.prototype.destroy=function(){var t=Tt?window.hmrEnabled:false;if(!t&&this===he[this.storeName]){delete he[this.storeName];ie(this.storeName);this.setHasCache(false);this.cache.active.complete();this.store.complete()}};t.prototype.onInit=function(t){he[this.storeName]=this;this._setState((function(){return t}));oe(this.storeName);if(this.isResettable()){this._initialState=t}Nt()&&ae(this.storeName,this.constructor.name)};t.prototype.dispatch=function(t,e){if(e===void 0){e=true}var n=undefined;if(e){n=gt;_t()}this.store.next({state:t,action:n})};t.prototype.watchTransaction=function(){var t=this;me().subscribe((function(){t.inTransaction=false;t.dispatch(t._value())}))};t.prototype.isResettable=function(){if(this.resettable===false){return false}return this.resettable||Xt().resettable};t.prototype.handleTransaction=function(){if(!this.inTransaction){this.watchTransaction();this.inTransaction=true}};t.prototype.getCacheTTL=function(){return this.cacheConfig&&this.cacheConfig.ttl||Xt().ttl};return t}();t("g",Oe);function Pe(t){var e=t.state,n=t.ids,r=t.idKey,i=t.newStateOrFn,o=t.preUpdateEntity,s=t.producerFn,a=t.onEntityIdChanges;var u={};var c=false;var f;for(var p=0,h=n;p<h.length;p++){var l=h[p];if(Ot(e.entities,l)===false){continue}var d=e.entities[l];var v=void 0;if(Lt(i)){v=Lt(s)?s(d,i):i(d)}else{v=i}var g=v.hasOwnProperty(r)&&v[r]!==d[r];var b=void 0;f=l;if(g){c=true;f=v[r]}var _=Object.assign({},d,v);if(ce(d)){b=_}else{if(ce(v)){b=new d.constructor(_)}else{b=new v.constructor(_)}}u[f]=o(d,b)}var m=e.ids;var w=e.entities;if(c){var S=n[0];var O=e.entities,P=S,E=y(O,[typeof P==="symbol"?P:P+""]);w=E;m=e.ids.map((function(t){return t===S?f:t}));a(S,f)}return Object.assign({},e,{entities:Object.assign({},w,u),ids:m})}var Ee;var je=function(t){__extends(e,t);function e(e,n){if(e===void 0){e={}}if(n===void 0){n={}}var r=t.call(this,Object.assign({},Kt(),e),n)||this;r.options=n;r.entityActions=new O;r.entityIdChanges=new O;return r}Object.defineProperty(e.prototype,"selectEntityAction$",{get:function(){return this.entityActions.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectEntityIdChanges$",{get:function(){return this.entityIdChanges.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"idKey",{get:function(){return this.config.idKey||this.options.idKey||xt},enumerable:false,configurable:true});e.prototype.set=function(t,n){var r=this;if(n===void 0){n={}}if(Et(t))return;Nt()&&wt("Set Entity");var i=this.akitaPreAddEntity===e.prototype.akitaPreAddEntity;this.setHasCache(true,{restartTTL:true});this._setState((function(e){var o=Gt({state:e,entities:t,idKey:r.idKey,preAddEntity:r.akitaPreAddEntity,isNativePreAdd:i});if(Vt(n.activeId)===false){o.active=n.activeId}return o}));if(this.hasInitialUIState()){this.handleUICreation()}this.entityActions.next({type:At.Set,ids:this.ids})};e.prototype.add=function(t,e){if(e===void 0){e={loading:false}}var n=jt(t);if(Mt(n))return;var r=Pt({state:this._value(),preAddEntity:this.akitaPreAddEntity,entities:n,idKey:this.idKey,options:e});if(r){Nt()&&wt("Add Entity");r.newState.loading=e.loading;this._setState((function(){return r.newState}));if(this.hasInitialUIState()){this.handleUICreation(true)}this.entityActions.next({type:At.Add,ids:r.newIds})}};e.prototype.update=function(e,n){var r=this;if(Vt(n)){t.prototype.update.call(this,e);return}var i=[];if(Lt(e)){i=this.ids.filter((function(t){return e(r.entities[t])}))}else{i=Et(e)?this.ids:jt(e)}if(Mt(i))return;Nt()&&wt("Update Entity",i);var o;this._setState((function(t){return Pe({idKey:r.idKey,ids:i,preUpdateEntity:r.akitaPreUpdateEntity,state:t,newStateOrFn:n,producerFn:r._producerFn,onEntityIdChanges:function(t,e){o={oldId:t,newId:e};r.entityIdChanges.next(Object.assign({},o,{pending:true}))}})}));if(o){this.entityIdChanges.next(Object.assign({},o,{pending:false}))}this.entityActions.next({type:At.Update,ids:i})};e.prototype.upsert=function(t,e,n,r){var i=this;if(r===void 0){r={}}var o=jt(t);var s=function(t){return function(e){return Ot(i.entities,e)===t}};var a=Lt(n)?r.baseClass:n?n.baseClass:undefined;var u=Lt(a);var c=o.filter(s(true));var f=o.filter(s(false)).map((function(t){var r;var o=typeof e==="function"?e({}):e;var s=Lt(n)?n(t,o):o;var c=Object.assign({},s,(r={},r[i.idKey]=t,r));if(u){return new a(c)}return c}));this.update(c,e);this.add(f);Nt()&&mt("Upsert Entity")};e.prototype.upsertMany=function(t,e){if(e===void 0){e={}}var n=[];var r=[];var i={};for(var o=0,s=t;o<s.length;o++){var a=s[o];var u=this.akitaPreCheckEntity(a);var c=u[this.idKey];if(Ot(this.entities,c)){var f=this._value().entities[c];var p=Object.assign({},this._value().entities[c],u);var h=e.baseClass?new e.baseClass(p):p;var l=this.akitaPreUpdateEntity(f,h);var d=l[this.idKey];i[d]=l;r.push(d)}else{var v=e.baseClass?new e.baseClass(u):u;var l=this.akitaPreAddEntity(v);var d=l[this.idKey];n.push(d);i[d]=l}}Nt()&&mt("Upsert Many");this._setState((function(t){return Object.assign({},t,{ids:n.length?__spreadArrays(t.ids,n):t.ids,entities:Object.assign({},t.entities,i),loading:!!e.loading})}));r.length&&this.entityActions.next({type:At.Update,ids:r});n.length&&this.entityActions.next({type:At.Add,ids:n});if(n.length&&this.hasUIStore()){this.handleUICreation(true)}};e.prototype.replace=function(t,e){var n=jt(t);if(Mt(n))return;var r={};for(var i=0,o=n;i<o.length;i++){var s=o[i];e[this.idKey]=s;r[s]=e}Nt()&&wt("Replace Entity",t);this._setState((function(t){return Object.assign({},t,{entities:Object.assign({},t.entities,r)})}))};e.prototype.move=function(t,e){var n=this.ids.slice();n.splice(e<0?n.length+e:e,0,n.splice(t,1)[0]);Nt()&&wt("Move Entity");this._setState((function(t){return Object.assign({},t,{entities:Object.assign({},t.entities),ids:n})}))};e.prototype.remove=function(t){var e=this;if(Mt(this.ids))return;var n=Rt(t);var r=[];if(Lt(t)){r=this.ids.filter((function(n){return t(e.entities[n])}))}else{r=n?jt(t):this.ids}if(Mt(r))return;Nt()&&wt("Remove Entity",r);this._setState((function(t){return Qt({state:t,ids:r})}));if(!n){this.setHasCache(false)}this.handleUIRemove(r);this.entityActions.next({type:At.Remove,ids:r})};e.prototype.updateActive=function(t){var e=jt(this.active);Nt()&&wt("Update Active",e);this.update(e,t)};e.prototype.setActive=function(t){var e=kt(t,this.ids,this.active);if(e===undefined){return}Nt()&&wt("Set Active",e);this._setActive(e)};e.prototype.addActive=function(t){var e=this;var n=jt(t);if(Mt(n))return;var r=n.every((function(t){return e.active.indexOf(t)>-1}));if(r)return;Nt()&&wt("Add Active",t);this._setState((function(t){var e=Array.from(new Set(__spreadArrays(t.active,n)));return Object.assign({},t,{active:e})}))};e.prototype.removeActive=function(t){var e=this;var n=jt(t);if(Mt(n))return;var r=n.some((function(t){return e.active.indexOf(t)>-1}));if(!r)return;Nt()&&wt("Remove Active",t);this._setState((function(t){return Object.assign({},t,{active:Array.isArray(t.active)?t.active.filter((function(t){return n.indexOf(t)===-1})):null})}))};e.prototype.toggleActive=function(t){var e=this;var n=jt(t);var r=function(t){return function(n){return e.active.includes(n)===t}};var i=n.filter(r(true));var o=n.filter(r(false));this.removeActive(i);this.addActive(o);Nt()&&mt("Toggle Active")};e.prototype.createUIStore=function(t,e){if(t===void 0){t={}}if(e===void 0){e={}}var n={name:"UI/"+this.storeName,idKey:this.idKey};this.ui=new xe(t,Object.assign({},n,e));return this.ui};e.prototype.destroy=function(){t.prototype.destroy.call(this);if(this.ui instanceof e){this.ui.destroy()}this.entityActions.complete()};e.prototype.akitaPreUpdateEntity=function(t,e){return e};e.prototype.akitaPreAddEntity=function(t){return t};e.prototype.akitaPreCheckEntity=function(t){return t};Object.defineProperty(e.prototype,"ids",{get:function(){return this._value().ids},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"entities",{get:function(){return this._value().entities},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"active",{get:function(){return this._value().active},enumerable:false,configurable:true});e.prototype._setActive=function(t){this._setState((function(e){return Object.assign({},e,{active:t})}))};e.prototype.handleUICreation=function(t){var e=this;if(t===void 0){t=false}var n=this.ids;var r=Lt(this.ui._akitaCreateEntityFn);var i;var o=function(t){var n;var i=e.entities[t];var o=r?e.ui._akitaCreateEntityFn(i):e.ui._akitaCreateEntityFn;return Object.assign((n={},n[e.idKey]=i[e.idKey],n),o)};if(t){i=this.ids.filter((function(t){return Vt(e.ui.entities[t])})).map(o)}else{i=n.map(o)}t?this.ui.add(i):this.ui.set(i)};e.prototype.hasInitialUIState=function(){return this.hasUIStore()&&Vt(this.ui._akitaCreateEntityFn)===false};e.prototype.handleUIRemove=function(t){if(this.hasUIStore()){this.ui.remove(t)}};e.prototype.hasUIStore=function(){return this.ui instanceof xe};return e}(Oe);g([Se(),b("design:type",Function),b("design:paramtypes",[Object,Object,Object,Object]),b("design:returntype",void 0)],je.prototype,"upsert",null);g([Se(),b("design:type",Function),b("design:paramtypes",[typeof(Ee=typeof T!=="undefined"&&T)==="function"?Ee:Object]),b("design:returntype",void 0)],je.prototype,"toggleActive",null);var xe=function(t){__extends(e,t);function e(e,n){if(e===void 0){e={}}if(n===void 0){n={}}return t.call(this,e,n)||this}e.prototype.setInitialEntityState=function(t){this._akitaCreateEntityFn=t};return e}(je);var Ae;(function(t){t["ASC"]="asc";t["DESC"]="desc"})(Ae||(Ae={}));function Te(t){return typeof t==="string"}var Ie="akitaQueryConfig";function Ce(t){return function(e,n){var r=Lt(t[0]);return t.some((function(t){if(r){return t(e)!==t(n)}return e[t]!==n[t]}))===false}}var Ne=function(){function t(t){this.store=t;this.__store__=t;if(Nt()){le[t.storeName]=this}}t.prototype.select=function(t){var e;if(Lt(t)){e=t}else if(Te(t)){e=function(e){return e[t]}}else if(Array.isArray(t)){return this.store._select((function(t){return t})).pipe(ut(Ce(t)),M((function(e){if(Lt(t[0])){return t.map((function(t){return t(e)}))}return t.reduce((function(t,n){t[n]=e[n];return t}),{})})))}else{e=function(t){return t}}return this.store._select(e)};t.prototype.selectLoading=function(){return this.select((function(t){return t.loading}))};t.prototype.selectError=function(){return this.select((function(t){return t.error}))};t.prototype.getValue=function(){return this.store._value()};t.prototype.selectHasCache=function(){return this.store._cache().asObservable()};t.prototype.getHasCache=function(){return this.store._cache().value};Object.defineProperty(t.prototype,"config",{get:function(){return this.constructor[Ie]},enumerable:false,configurable:true});return t}();t("Q",Ne);var Ue=function(t){return t.pipe(ot((function(t){return t!==null&&typeof t!=="undefined"})))};function Fe(t,e){if(e.split(".").length===1){return t}var n=e.split(".").slice(1).join(".");return n.split(".").reduce((function(t,e){return t&&t[e]}),t)}function ke(t,e,n){var r=e.split(".");if(r.length===1){return Object.assign({},t,n)}t=Object.assign({},t);var i=r.length-2;var o=e.split(".").slice(1);o.reduce((function(t,e,r){if(r!==i){t[e]=Object.assign({},t[e]);return t&&t[e]}t[e]=Array.isArray(t[e])||!Ut(t[e])?n:Object.assign({},t[e],n);return t&&t[e]}),t);return t}var Ke=new U(1);var Re=function(){function t(t,e){this.query=t;if(e&&e.resetFn){if(Xt().resettable){this.onReset(e.resetFn)}}}t.prototype.getQuery=function(){return this.query};t.prototype.getStore=function(){return this.getQuery().__store__};t.prototype.isEntityBased=function(t){return ue(t)};t.prototype.selectSource=function(t,e){var n=this;if(this.isEntityBased(t)){return this.getQuery().selectEntity(t).pipe(Ue)}if(e){return this.getQuery().select((function(t){return Fe(t,n.withStoreName(e))}))}return this.getQuery().select()};t.prototype.getSource=function(t,e){if(this.isEntityBased(t)){return this.getQuery().getEntity(t)}var n=this.getQuery().getValue();if(e){return Fe(n,this.withStoreName(e))}return n};t.prototype.withStoreName=function(t){return this.storeName+"."+t};Object.defineProperty(t.prototype,"storeName",{get:function(){return this.getStore().storeName},enumerable:false,configurable:true});t.prototype.updateStore=function(t,e,n){var r=this;if(this.isEntityBased(e)){this.getStore().update(e,t)}else{if(n){this.getStore()._setState((function(e){return ke(e,r.withStoreName(n),t)}));return}this.getStore()._setState((function(e){return Object.assign({},e,t)}))}};t.prototype.onReset=function(t){var e=this;var n=this.getStore().reset;this.getStore().reset=function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}setTimeout((function(){n.apply(e.getStore(),r);t()}))}};return t}();var Me={pagesControls:false,range:false,startWith:1,cacheTimeout:undefined,clearStoreWithCache:true};var Le=function(t){__extends(e,t);function e(e,n){if(n===void 0){n={}}var r=t.call(this,e,{resetFn:function(){r.initial=false;r.destroy({clearCache:true,currentPage:1})}})||this;r.query=e;r.config=n;r.metadata=new Map;r.pages=new Map;r.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]};r.initial=true;r.isLoading$=r.query.selectLoading().pipe(v(0));r.config=Object.assign(Me,n);var i=r.config,o=i.startWith,s=i.cacheTimeout;r.page=new E(o);if(k(s)){r.clearCacheSubscription=s.subscribe((function(){return r.clearCache()}))}return r}Object.defineProperty(e.prototype,"pageChanges",{get:function(){return this.page.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.pagination.currentPage},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.currentPage===1},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isLast",{get:function(){return this.currentPage===this.pagination.lastPage},enumerable:false,configurable:true});e.prototype.withControls=function(){this.config.pagesControls=true;return this};e.prototype.withRange=function(){this.config.range=true;return this};e.prototype.setLoading=function(t){if(t===void 0){t=true}this.getStore().setLoading(t)};e.prototype.update=function(t){this.pagination=t;this.addPage(t.data)};e.prototype.addPage=function(t){var e=this;this.pages.set(this.currentPage,{ids:t.map((function(t){return t[e.getStore().idKey]}))});this.getStore().upsertMany(t)};e.prototype.clearCache=function(t){if(t===void 0){t={}}if(!this.initial){mt("@Pagination - Clear Cache");if(t.clearStore!==false&&(this.config.clearStoreWithCache||t.clearStore)){this.getStore().remove()}this.pages=new Map;this.metadata=new Map}this.initial=false};e.prototype.clearPage=function(t){this.pages.delete(t)};e.prototype.destroy=function(t){var e=t===void 0?{}:t,n=e.clearCache,r=e.currentPage;if(this.clearCacheSubscription){this.clearCacheSubscription.unsubscribe()}if(n){this.clearCache()}if(!Vt(r)){this.setPage(r)}this.initial=true};e.prototype.isPageActive=function(t){return this.currentPage===t};e.prototype.setPage=function(t){if(t!==this.currentPage||!this.hasPage(t)){this.page.next(this.pagination.currentPage=t)}};e.prototype.nextPage=function(){if(this.currentPage!==this.pagination.lastPage){this.setPage(this.pagination.currentPage+1)}};e.prototype.prevPage=function(){if(this.pagination.currentPage>1){this.setPage(this.pagination.currentPage-1)}};e.prototype.setLastPage=function(){this.setPage(this.pagination.lastPage)};e.prototype.setFirstPage=function(){this.setPage(1)};e.prototype.hasPage=function(t){return this.pages.has(t)};e.prototype.getPage=function(t){var e=this;var n=this.pagination.currentPage;if(this.hasPage(n)){return this.selectPage(n)}else{this.setLoading(true);return et(t()).pipe(dt((function(t){n=t.currentPage;we((function(){e.setLoading(false);e.update(t)}));return e.selectPage(n)})))}};e.prototype.getQuery=function(){return this.query};e.prototype.refreshCurrentPage=function(){if(Et(this.currentPage)===false){this.clearPage(this.currentPage);this.setPage(this.currentPage)}};e.prototype.getFrom=function(){if(this.isFirst){return 1}return(this.currentPage-1)*this.pagination.perPage+1};e.prototype.getTo=function(){if(this.isLast){return this.pagination.total}return this.currentPage*this.pagination.perPage};e.prototype.selectPage=function(t){var e=this;return this.query.selectAll({asObject:true}).pipe(pt(1),M((function(n){var r=Object.assign({},e.pagination,{data:e.pages.get(t).ids.map((function(t){return n[t]}))});var i=e.config,o=i.range,s=i.pagesControls;if(isNaN(e.pagination.total)){if(r.lastPage===1){r.total=r.data?r.data.length:0}else{r.total=r.perPage*r.lastPage}e.pagination.total=r.total}if(o){r.from=e.getFrom();r.to=e.getTo()}if(s){r.pageControls=Ve(e.pagination.total,e.pagination.perPage)}return r})))};return e}(Re);g([St("@Pagination - New Page"),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],Le.prototype,"update",null);function Ve(t,e){var n=Math.ceil(t/e);var r=[];for(var i=0;i<n;i++){r.push(i+1)}return r}var We;(function(t){t["Update"]="UPDATE"})(We||(We={}));var Ye;(function(t){t["Update"]="UPDATE";t["AddEntities"]="ADD_ENTITIES";t["SetEntities"]="SET_ENTITIES";t["UpdateEntities"]="UPDATE_ENTITIES";t["RemoveEntities"]="REMOVE_ENTITIES";t["UpsertEntities"]="UPSERT_ENTITIES";t["UpsertManyEntities"]="UPSERT_MANY_ENTITIES"})(Ye||(Ye={}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t){return"function"==typeof t}let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function e(t){setTimeout((()=>{throw t}),0)}const r={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;e(t)},complete(){}},n=Array.isArray||(t=>t&&"number"==typeof t.length);function h(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map(((t,s)=>`${s+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class o{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let s;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:e,_unsubscribe:r,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof o)i.remove(this);else if(null!==i)for(let t=0;t<i.length;++t)i[t].remove(this);if(t(r)){e&&(this._unsubscribe=void 0);try{r.call(this)}catch(t){s=t instanceof c?u(t.errors):[t]}}if(n(a)){let t=-1,i=a.length;for(;++t<i;){const i=a[t];if(h(i))try{i.unsubscribe()}catch(t){s=s||[],t instanceof c?s=s.concat(u(t.errors)):s.push(t)}}}if(s)throw new c(s)}add(t){let s=t;if(!t)return o.EMPTY;switch(typeof t){case"function":s=new o(t);case"object":if(s===this||s.closed||"function"!=typeof s.unsubscribe)return s;if(this.closed)return s.unsubscribe(),s;if(!(s instanceof o)){const t=s;s=new o,s._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=s;if(null===i)s._parentOrParents=this;else if(i instanceof o){if(i===this)return s;s._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return s;i.push(this)}const e=this._subscriptions;return null===e?this._subscriptions=[s]:e.push(s),s}remove(t){const s=this._subscriptions;if(s){const i=s.indexOf(t);-1!==i&&s.splice(i,1)}}}function u(t){return t.reduce(((t,s)=>t.concat(s instanceof c?s.errors:s)),[])}o.EMPTY=function(t){return t.closed=!0,t}(new o);const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class l extends o{constructor(t,s,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r;break;case 1:if(!t){this.destination=r;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,s,i)}}[a](){return this}static create(t,s,i){const e=new l(t,s,i);return e.syncErrorThrowable=!1,e}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class f extends l{constructor(s,i,e,n){let h;super(),this._parentSubscriber=s;let c=this;t(i)?h=i:i&&(h=i.next,e=i.error,n=i.complete,i!==r&&(c=Object.create(i),t(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=h,this._error=e,this._complete=n}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:s}=this;i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable?this.__tryOrSetError(s,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:s}=this,{useDeprecatedSynchronousErrorHandling:r}=i;if(this._error)r&&s.syncErrorThrowable?(this.__tryOrSetError(s,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(s.syncErrorThrowable)r?(s.syncErrorValue=t,s.syncErrorThrown=!0):e(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;e(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const s=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,s),this.unsubscribe()):(this.__tryOrUnsub(s),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,s){try{t.call(this._context,s)}catch(t){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw t;e(t)}}__tryOrSetError(t,s,r){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{s.call(this._context,r)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(e(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const b="function"==typeof Symbol&&Symbol.observable||"@@observable";function d(t){return t}class w{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const s=new w;return s.source=this,s.operator=t,s}subscribe(t,s,e){const{operator:n}=this,h=function(t,s,i){if(t){if(t instanceof l)return t;if(t[a])return t[a]()}return t||s||i?new l(t,s,i):new l(r)}(t,s,e);if(h.add(n?n.call(h,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!h.syncErrorThrowable?this._subscribe(h):this._trySubscribe(h)),i.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable&&(h.syncErrorThrowable=!1,h.syncErrorThrown))throw h.syncErrorValue;return h}_trySubscribe(t){try{return this._subscribe(t)}catch(s){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=s),function(t){for(;t;){const{closed:s,destination:i,isStopped:e}=t;if(s||e)return!1;t=i&&i instanceof l?i:null}return!0}(t)?t.error(s):console.warn(s)}}forEach(t,s){return new(s=p(s))(((s,i)=>{let e;e=this.subscribe((s=>{try{t(s)}catch(t){i(t),e&&e.unsubscribe()}}),i,s)}))}_subscribe(t){const{source:s}=this;return s&&s.subscribe(t)}[b](){return this}pipe(...t){return 0===t.length?this:(0===(s=t).length?d:1===s.length?s[0]:function(t){return s.reduce(((t,s)=>s(t)),t)})(this);var s}toPromise(t){return new(t=p(t))(((t,s)=>{let i;this.subscribe((t=>i=t),(t=>s(t)),(()=>t(i)))}))}}function p(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}w.create=t=>new w(t);class y extends o{constructor(t,s){super()}schedule(t,s=0){return this}}class _ extends y{constructor(t,s){super(t,s),this.scheduler=t,this.work=s,this.pending=!1}schedule(t,s=0){if(this.closed)return this;this.state=t;const i=this.id,e=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(e,i,s)),this.pending=!0,this.delay=s,this.id=this.id||this.requestAsyncId(e,this.id,s),this}requestAsyncId(t,s,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,s,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return s;clearInterval(s)}execute(t,s){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,s);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,s){let i=!1,e=void 0;try{this.work(t)}catch(t){i=!0,e=!!t&&t||new Error(t)}if(i)return this.unsubscribe(),e}_unsubscribe(){const t=this.id,s=this.scheduler,i=s.actions,e=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==e&&i.splice(e,1),null!=t&&(this.id=this.recycleAsyncId(s,t,null)),this.delay=null}}class E{constructor(t,s=E.now){this.SchedulerAction=t,this.now=s}schedule(t,s=0,i){return new this.SchedulerAction(this,t).schedule(i,s)}}E.now=()=>Date.now();class v extends E{constructor(t,s=E.now){super(t,(()=>v.delegate&&v.delegate!==this?v.delegate.now():s())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,s=0,i){return v.delegate&&v.delegate!==this?v.delegate.schedule(t,s,i):super.schedule(t,s,i)}flush(t){const{actions:s}=this;if(this.active)return void s.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=s.shift());if(this.active=!1,i){for(;t=s.shift();)t.unsubscribe();throw i}}}const x=new w((t=>t.complete()));function S(t){return t?function(t){return new w((s=>t.schedule((()=>s.complete()))))}(t):x}function m(t){return t&&"function"==typeof t.schedule}const N=t=>s=>{for(let i=0,e=t.length;i<e&&!s.closed;i++)s.next(t[i]);s.complete()};function g(t,s){return new w((i=>{const e=new o;let r=0;return e.add(s.schedule((function(){r!==t.length?(i.next(t[r++]),i.closed||e.add(this.schedule())):i.complete()}))),e}))}function k(...t){let s=t[t.length-1];return m(s)?(t.pop(),g(t,s)):new w(N(t))}var O;!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(O||(O={}));class P{constructor(t,s,i){this.kind=t,this.value=s,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,s,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return s&&s(this.error);case"C":return i&&i()}}accept(t,s,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,s,i)}toObservable(){switch(this.kind){case"N":return k(this.value);case"E":return t=this.error,new w((s=>s.error(t)));case"C":return S()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new P("N",t):P.undefinedValueNotification}static createError(t){return new P("E",void 0,t)}static createComplete(){return P.completeNotification}}P.completeNotification=new P("C"),P.undefinedValueNotification=new P("N",void 0);const C=new v(_);function D(t,s=C){var i;const e=(i=t)instanceof Date&&!isNaN(+i)?+t-s.now():Math.abs(t);return t=>t.lift(new j(e,s))}class j{constructor(t,s){this.delay=t,this.scheduler=s}call(t,s){return s.subscribe(new A(t,this.delay,this.scheduler))}}class A extends l{constructor(t,s,i){super(t),this.delay=s,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const s=t.source,i=s.queue,e=t.scheduler,r=t.destination;for(;i.length>0&&i[0].time-e.now()<=0;)i.shift().notification.observe(r);if(i.length>0){const s=Math.max(0,i[0].time-e.now());this.schedule(t,s)}else this.unsubscribe(),s.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(A.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const s=this.scheduler,i=new I(s.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(s)}_next(t){this.scheduleNotification(P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(P.createComplete()),this.unsubscribe()}}class I{constructor(t,s){this.time=t,this.notification=s}}export{_ as A,P as N,w as O,o as S,l as a,v as b,g as c,k as d,S as e,D as f,n as g,e as h,h as i,t as j,C as k,m as l,b as o,a as r,N as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as o}from"./p-df9ce4b7.js";const n=async function(){window.location!=window.parent.location&&(delete window.sessionStorage,window.sessionStorage={}),o()};export{n as g}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-38ee2795.system.js","./p-ae4f5e0b.system.js"],(function(e){"use strict";var t,i,n;return{setters:[function(e){t=e.r;i=e.d},function(e){n=e.A}],execute:function(){var r=e("stencil_route_title",function(){function e(e){t(this,e);this.titleSuffix="";this.pageTitle=""}e.prototype.updateDocumentTitle=function(){var e=this.el;if(e.ownerDocument){e.ownerDocument.title=""+this.pageTitle+(this.titleSuffix||"")}};e.prototype.componentWillLoad=function(){this.updateDocumentTitle()};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{pageTitle:["updateDocumentTitle"]}},enumerable:false,configurable:true});return e}());n.injectProps(r,["titleSuffix"])}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function l(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function s(t){try{a(r.next(t))}catch(t){i(t)}}function o(t){try{a(r["throw"](t))}catch(t){i(t)}}function a(t){t.done?n(t.value):l(t.value).then(s,o)}a((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,l,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return a([t,e])}}function a(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,l&&(i=s[0]&2?l["return"]:s[0]?l["throw"]||((i=l["return"])&&i.call(l),0):l.next)&&!(i=i.call(l,s[1])).done)return i;if(l=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;l=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];l=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-38ee2795.system.js","./p-7dbe5a2f.system.js"],(function(t){"use strict";var e,n,r,l,i,s,o,a,u;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){l=t.g;i=t.O;s=t.l;o=t.k;a=t.d;u=t.f}],execute:function(){function c(t){return!l(t)&&t-parseFloat(t)+1>=0}function d(t,e,n){if(t===void 0){t=0}var r=-1;if(c(e)){r=Number(e)<1&&1||Number(e)}else if(s(e)){n=e}if(!s(n)){n=o}return new i((function(e){var l=c(t)?t:+t-n.now();return n.schedule(f,l,{index:0,period:r,subscriber:e})}))}function f(t){var e=t.index,n=t.period,r=t.subscriber;r.next(e);if(r.closed){return}else if(n===-1){return r.complete()}t.index=e+1;this.schedule(t,n)}var m=function(t){var e=document.querySelector('script[data-fl-namespace="design-system"][data-fl-resources-url]');var n=e&&e.getAttribute("data-fl-resources-url")||"";try{return new URL(t,n).href}catch(e){return n+"/"+t}};var p="";var h=t("fl_style_guide",function(){function t(t){var n=this;e(this,t);this.data=["Apple","Application","Appetizer","Anna","Banana","Archery","Apogee"].map((function(t){return{label:t,value:t}}));this.searchFunction=function(t){var e=n.data.filter((function(e){return e.label.toLowerCase().includes(t.toLowerCase())}));return a(e).pipe(u(1e3)).toPromise()}}t.prototype.render=function(){var t=this;return n(r,null,n("link",{rel:"stylesheet",href:m("beacon.css"),media:"all"}),this.themeCssUrl&&n("link",{rel:"stylesheet",href:this.themeCssUrl,media:"all"}),n("div",{class:"container m-3 p-5 shadow"},n("h1",null,"Beacon"),n("h5",null,"Flare-Apollo Component Library 🚀"),n("div",{class:"row"},n("div",{class:"col"},n("ul",{class:"list-group"},n("li",{class:"list-group-item"},n("small",{class:"text-muted"},"Typography"),n("div",{class:"col"},n("h1",null,"h1 Heading"),n("h2",null,"h2 Sub-heading"),n("h3",null,"h3 Sub-heading"),n("h4",null,"h4 Sub-heading"),n("p",null,"Paragraph"),n("div",{class:"d-flex flex-column"},n("strong",null,"Strong"),n("small",null,"small"),n("a",{href:"https://www.flarehr.com",target:"_blank"},"Weblink")))),n("li",{class:"list-group-item"},n("small",{class:"text-muted"},"Buttons"),n("div",{class:"col-3 my-2"},this.renderButtonVariants())),n("li",{class:"list-group-item"},n("small",{class:"text-muted"},"Loading indicator"),n("div",{class:"col"},n("fl-loading-indicator",null),n("fl-loading-indicator",{theme:"dark"}))),n("li",{class:"list-group-item"},n("small",{class:"text-muted"},"Dropdown"),n("div",{class:"col-4"},n("fl-dropdown",{options:this.data}))),n("li",{class:"list-group-item"},n("small",{class:"text-muted"},"Async Dropdown"),n("div",{class:"col-4"},n("fl-dropdown-async",{"min-search-string-length":"2",searchFunction:this.searchFunction}))),n("li",{class:"list-group-item"},n("small",{class:"text-muted"},"Promise Button"),n("div",{class:"col-3 my-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return t.takeTime()}},"Promise Button block")),n("div",{class:"col-3 my-2"},n("fl-promise-button",{promiseFn:function(){return t.takeTime()}},"Promise Button")),n("div",{class:"col-3 my-2"},n("fl-promise-button",{variant:"secondary",promiseFn:function(){return t.takeTime()}},"Secondary Promise Button"))))))))};t.prototype.renderButtonVariants=function(){return n("ul",{class:"list-group"},n("li",{class:"list-group-item"},n("i",null,"Primary"),n("fl-button",{isBlockElement:true},"Button")),n("li",{class:"list-group-item"},n("i",null,"Primary, disabled"),n("fl-button",{isBlockElement:true,disabled:true},"Button")),n("li",{class:"list-group-item"},n("i",null,"Secondary"),n("fl-button",{isBlockElement:true,variant:"secondary"},"Button")),n("li",{class:"list-group-item"},n("i",null,"Secondary, disabled"),n("fl-button",{isBlockElement:true,disabled:true,variant:"secondary"},"Button")))};t.prototype.takeTime=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,d(Math.random()*2e3+2e3).toPromise()]}))}))};return t}());h.style=p}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();System.register([],(function(e){"use strict";return{execute:function(){e({c:A,d:j,e:N,f:J,h:i,i:u,j:r,l:k});function r(e){return typeof e==="function"}var t=false;var n={Promise:undefined,set useDeprecatedSynchronousErrorHandling(e){if(e){var r=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+r.stack)}else if(t){console.log("RxJS: Back to a better error behavior. Thank you. <3")}t=e},get useDeprecatedSynchronousErrorHandling(){return t}};function i(e){setTimeout((function(){throw e}),0)}var s={closed:true,next:function(e){},error:function(e){if(n.useDeprecatedSynchronousErrorHandling){throw e}else{i(e)}},complete:function(){}};var o=e("g",function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}());function u(e){return e!==null&&typeof e==="object"}var c=function(){function e(e){Error.call(this);this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,r){return r+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=e;return this}e.prototype=Object.create(Error.prototype);return e}();var a=c;var h=function(){function e(e){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(e){this._ctorUnsubscribe=true;this._unsubscribe=e}}e.prototype.unsubscribe=function(){var t;if(this.closed){return}var n=this,i=n._parentOrParents,s=n._ctorUnsubscribe,c=n._unsubscribe,h=n._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(i instanceof e){i.remove(this)}else if(i!==null){for(var l=0;l<i.length;++l){var p=i[l];p.remove(this)}}if(r(c)){if(s){this._unsubscribe=undefined}try{c.call(this)}catch(e){t=e instanceof a?f(e.errors):[e]}}if(o(h)){var l=-1;var d=h.length;while(++l<d){var b=h[l];if(u(b)){try{b.unsubscribe()}catch(e){t=t||[];if(e instanceof a){t=t.concat(f(e.errors))}else{t.push(e)}}}}}if(t){throw new a(t)}};e.prototype.add=function(r){var t=r;if(!r){return e.EMPTY}switch(typeof r){case"function":t=new e(r);case"object":if(t===this||t.closed||typeof t.unsubscribe!=="function"){return t}else if(this.closed){t.unsubscribe();return t}else if(!(t instanceof e)){var n=t;t=new e;t._subscriptions=[n]}break;default:{throw new Error("unrecognized teardown "+r+" added to Subscription.")}}var i=t._parentOrParents;if(i===null){t._parentOrParents=this}else if(i instanceof e){if(i===this){return t}t._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return t}var s=this._subscriptions;if(s===null){this._subscriptions=[t]}else{s.push(t)}return t};e.prototype.remove=function(e){var r=this._subscriptions;if(r){var t=r.indexOf(e);if(t!==-1){r.splice(t,1)}}};return e}();e("S",h);h.EMPTY=function(e){e.closed=true;return e}(new h);function f(e){return e.reduce((function(e,r){return e.concat(r instanceof a?r.errors:r)}),[])}var l=e("r",function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}());var p=function(e){__extends(r,e);function r(t,n,i){var o=e.call(this)||this;o.syncErrorValue=null;o.syncErrorThrown=false;o.syncErrorThrowable=false;o.isStopped=false;switch(arguments.length){case 0:o.destination=s;break;case 1:if(!t){o.destination=s;break}if(typeof t==="object"){if(t instanceof r){o.syncErrorThrowable=t.syncErrorThrowable;o.destination=t;t.add(o)}else{o.syncErrorThrowable=true;o.destination=new d(o,t)}break}default:o.syncErrorThrowable=true;o.destination=new d(o,t,n,i);break}return o}r.prototype[l]=function(){return this};r.create=function(e,t,n){var i=new r(e,t,n);i.syncErrorThrowable=false;return i};r.prototype.next=function(e){if(!this.isStopped){this._next(e)}};r.prototype.error=function(e){if(!this.isStopped){this.isStopped=true;this._error(e)}};r.prototype.complete=function(){if(!this.isStopped){this.isStopped=true;this._complete()}};r.prototype.unsubscribe=function(){if(this.closed){return}this.isStopped=true;e.prototype.unsubscribe.call(this)};r.prototype._next=function(e){this.destination.next(e)};r.prototype._error=function(e){this.destination.error(e);this.unsubscribe()};r.prototype._complete=function(){this.destination.complete();this.unsubscribe()};r.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.closed=false;this.isStopped=false;this._parentOrParents=e;return this};return r}(h);e("a",p);var d=function(e){__extends(t,e);function t(t,n,i,o){var u=e.call(this)||this;u._parentSubscriber=t;var c;var a=u;if(r(n)){c=n}else if(n){c=n.next;i=n.error;o=n.complete;if(n!==s){a=Object.create(n);if(r(a.unsubscribe)){u.add(a.unsubscribe.bind(a))}a.unsubscribe=u.unsubscribe.bind(u)}}u._context=a;u._next=c;u._error=i;u._complete=o;return u}t.prototype.next=function(e){if(!this.isStopped&&this._next){var r=this._parentSubscriber;if(!n.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable){this.__tryOrUnsub(this._next,e)}else if(this.__tryOrSetError(r,this._next,e)){this.unsubscribe()}}};t.prototype.error=function(e){if(!this.isStopped){var r=this._parentSubscriber;var t=n.useDeprecatedSynchronousErrorHandling;if(this._error){if(!t||!r.syncErrorThrowable){this.__tryOrUnsub(this._error,e);this.unsubscribe()}else{this.__tryOrSetError(r,this._error,e);this.unsubscribe()}}else if(!r.syncErrorThrowable){this.unsubscribe();if(t){throw e}i(e)}else{if(t){r.syncErrorValue=e;r.syncErrorThrown=true}else{i(e)}this.unsubscribe()}}};t.prototype.complete=function(){var e=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};if(!n.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable){this.__tryOrUnsub(t);this.unsubscribe()}else{this.__tryOrSetError(r,t);this.unsubscribe()}}else{this.unsubscribe()}}};t.prototype.__tryOrUnsub=function(e,r){try{e.call(this._context,r)}catch(e){this.unsubscribe();if(n.useDeprecatedSynchronousErrorHandling){throw e}else{i(e)}}};t.prototype.__tryOrSetError=function(e,r,t){if(!n.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{r.call(this._context,t)}catch(r){if(n.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=r;e.syncErrorThrown=true;return true}else{i(r);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(p);function b(e){while(e){var r=e.closed,t=e.destination,n=e.isStopped;if(r||n){return false}else if(t&&t instanceof p){e=t}else{e=null}}return true}function y(e,r,t){if(e){if(e instanceof p){return e}if(e[l]){return e[l]()}}if(!e&&!r&&!t){return new p(s)}return new p(e,r,t)}var v=e("o",function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}());function _(e){return e}function w(e){if(e.length===0){return _}if(e.length===1){return e[0]}return function r(t){return e.reduce((function(e,r){return r(e)}),t)}}var E=function(){function e(e){this._isScalar=false;if(e){this._subscribe=e}}e.prototype.lift=function(r){var t=new e;t.source=this;t.operator=r;return t};e.prototype.subscribe=function(e,r,t){var i=this.operator;var s=y(e,r,t);if(i){s.add(i.call(s,this.source))}else{s.add(this.source||n.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s))}if(n.useDeprecatedSynchronousErrorHandling){if(s.syncErrorThrowable){s.syncErrorThrowable=false;if(s.syncErrorThrown){throw s.syncErrorValue}}}return s};e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){if(n.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=r}if(b(e)){e.error(r)}else{console.warn(r)}}};e.prototype.forEach=function(e,r){var t=this;r=S(r);return new r((function(r,n){var i;i=t.subscribe((function(r){try{e(r)}catch(e){n(e);if(i){i.unsubscribe()}}}),n,r)}))};e.prototype._subscribe=function(e){var r=this.source;return r&&r.subscribe(e)};e.prototype[v]=function(){return this};e.prototype.pipe=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}if(e.length===0){return this}return w(e)(this)};e.prototype.toPromise=function(e){var r=this;e=S(e);return new e((function(e,t){var n;r.subscribe((function(e){return n=e}),(function(e){return t(e)}),(function(){return e(n)}))}))};return e}();e("O",E);E.create=function(e){return new E(e)};function S(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var g=function(e){__extends(r,e);function r(r,t){return e.call(this)||this}r.prototype.schedule=function(e,r){if(r===void 0){r=0}return this};return r}(h);var x=function(e){__extends(r,e);function r(r,t){var n=e.call(this,r,t)||this;n.scheduler=r;n.work=t;n.pending=false;return n}r.prototype.schedule=function(e,r){if(r===void 0){r=0}if(this.closed){return this}this.state=e;var t=this.id;var n=this.scheduler;if(t!=null){this.id=this.recycleAsyncId(n,t,r)}this.pending=true;this.delay=r;this.id=this.id||this.requestAsyncId(n,this.id,r);return this};r.prototype.requestAsyncId=function(e,r,t){if(t===void 0){t=0}return setInterval(e.flush.bind(e,this),t)};r.prototype.recycleAsyncId=function(e,r,t){if(t===void 0){t=0}if(t!==null&&this.delay===t&&this.pending===false){return r}clearInterval(r);return undefined};r.prototype.execute=function(e,r){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var t=this._execute(e,r);if(t){return t}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};r.prototype._execute=function(e,r){var t=false;var n=undefined;try{this.work(e)}catch(e){t=true;n=!!e&&e||new Error(e)}if(t){this.unsubscribe();return n}};r.prototype._unsubscribe=function(){var e=this.id;var r=this.scheduler;var t=r.actions;var n=t.indexOf(this);this.work=null;this.state=null;this.pending=false;this.scheduler=null;if(n!==-1){t.splice(n,1)}if(e!=null){this.id=this.recycleAsyncId(r,e,null)}this.delay=null};return r}(g);e("A",x);var m=function(){function e(r,t){if(t===void 0){t=e.now}this.SchedulerAction=r;this.now=t}e.prototype.schedule=function(e,r,t){if(r===void 0){r=0}return new this.SchedulerAction(this,e).schedule(t,r)};return e}();m.now=function(){return Date.now()};var O=function(e){__extends(r,e);function r(t,n){if(n===void 0){n=m.now}var i=e.call(this,t,(function(){if(r.delegate&&r.delegate!==i){return r.delegate.now()}else{return n()}}))||this;i.actions=[];i.active=false;i.scheduled=undefined;return i}r.prototype.schedule=function(t,n,i){if(n===void 0){n=0}if(r.delegate&&r.delegate!==this){return r.delegate.schedule(t,n,i)}else{return e.prototype.schedule.call(this,t,n,i)}};r.prototype.flush=function(e){var r=this.actions;if(this.active){r.push(e);return}var t;this.active=true;do{if(t=e.execute(e.state,e.delay)){break}}while(e=r.shift());this.active=false;if(t){while(e=r.shift()){e.unsubscribe()}throw t}};return r}(m);e("b",O);var T=new E((function(e){return e.complete()}));function N(e){return e?P(e):T}function P(e){return new E((function(r){return e.schedule((function(){return r.complete()}))}))}function k(e){return e&&typeof e.schedule==="function"}var D=e("s",(function(e){return function(r){for(var t=0,n=e.length;t<n&&!r.closed;t++){r.next(e[t])}r.complete()}}));function A(e,r){return new E((function(t){var n=new h;var i=0;n.add(r.schedule((function(){if(i===e.length){t.complete();return}t.next(e[i++]);if(!t.closed){n.add(this.schedule())}})));return n}))}function H(e,r){if(!r){return new E(D(e))}else{return A(e,r)}}function j(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t=e[e.length-1];if(k(t)){e.pop();return A(e,t)}else{return H(e)}}function C(e,r){if(!r){return new E((function(r){return r.error(e)}))}else{return new E((function(t){return r.schedule(I,0,{error:e,subscriber:t})}))}}function I(e){var r=e.error,t=e.subscriber;t.error(r)}var V;(function(e){e["NEXT"]="N";e["ERROR"]="E";e["COMPLETE"]="C"})(V||(V={}));var R=function(){function e(e,r,t){this.kind=e;this.value=r;this.error=t;this.hasValue=e==="N"}e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}};e.prototype.do=function(e,r,t){var n=this.kind;switch(n){case"N":return e&&e(this.value);case"E":return r&&r(this.error);case"C":return t&&t()}};e.prototype.accept=function(e,r,t){if(e&&typeof e.next==="function"){return this.observe(e)}else{return this.do(e,r,t)}};e.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return j(this.value);case"E":return C(this.error);case"C":return N()}throw new Error("unexpected notification kind value")};e.createNext=function(r){if(typeof r!=="undefined"){return new e("N",r)}return e.undefinedValueNotification};e.createError=function(r){return new e("E",undefined,r)};e.createComplete=function(){return e.completeNotification};return e}();e("N",R);R.completeNotification=new R("C");R.undefinedValueNotification=new R("N",undefined);var U=new O(x);var q=e("k",U);function M(e){return e instanceof Date&&!isNaN(+e)}function J(e,r){if(r===void 0){r=q}var t=M(e);var n=t?+e-r.now():Math.abs(e);return function(e){return e.lift(new Y(n,r))}}var Y=function(){function e(e,r){this.delay=e;this.scheduler=r}e.prototype.call=function(e,r){return r.subscribe(new z(e,this.delay,this.scheduler))};return e}();var z=function(e){__extends(r,e);function r(r,t,n){var i=e.call(this,r)||this;i.delay=t;i.scheduler=n;i.queue=[];i.active=false;i.errored=false;return i}r.dispatch=function(e){var r=e.source;var t=r.queue;var n=e.scheduler;var i=e.destination;while(t.length>0&&t[0].time-n.now()<=0){t.shift().notification.observe(i)}if(t.length>0){var s=Math.max(0,t[0].time-n.now());this.schedule(e,s)}else{this.unsubscribe();r.active=false}};r.prototype._schedule=function(e){this.active=true;var t=this.destination;t.add(e.schedule(r.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))};r.prototype.scheduleNotification=function(e){if(this.errored===true){return}var r=this.scheduler;var t=new B(r.now()+this.delay,e);this.queue.push(t);if(this.active===false){this._schedule(r)}};r.prototype._next=function(e){this.scheduleNotification(R.createNext(e))};r.prototype._error=function(e){this.errored=true;this.queue=[];this.destination.error(e);this.unsubscribe()};r.prototype._complete=function(){this.scheduleNotification(R.createComplete());this.unsubscribe()};return r}(p);var B=function(){function e(e,r){this.time=e;this.notification=r}return e}()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as s}from"./p-082669d9.js";import{A as e}from"./p-61734b66.js";const i=class{constructor(s){t(this,s),this.titleSuffix="",this.pageTitle=""}updateDocumentTitle(){const t=this.el;t.ownerDocument&&(t.ownerDocument.title=`${this.pageTitle}${this.titleSuffix||""}`)}componentWillLoad(){this.updateDocumentTitle()}get el(){return s(this)}static get watchers(){return{pageTitle:["updateDocumentTitle"]}}};e.injectProps(i,["titleSuffix"]);export{i as stencil_route_title}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __spreadArrays=this&&this.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),a=0,e=0;e<t;e++)for(var i=arguments[e],c=0,o=i.length;c<o;c++,a++)n[a]=i[c];return n};System.register(["./p-38ee2795.system.js"],(function(r){"use strict";var e;return{setters:[function(r){e=r.h}],execute:function(){var t=function(r,e){var t=new Map;var n=r;var a=function(r,e){if(Array.isArray(r)){__spreadArrays(r).forEach((function(r){e[r]=n[r]}))}else{e[r]=Object.assign({},n)}};var i=function(r,e){if(!t.has(r)){t.set(r,e);a(e,r)}return function(){if(t.has(r)){t.delete(r)}}};var c=function(r,e){var i=r.state;n=i;t.forEach(a);return e};var o=function(r,t){return e(i,t[0])};var s=function(r,e){var n=r.prototype;var a=n.connectedCallback;var c=n.disconnectedCallback;n.connectedCallback=function(){i(this,e);if(a){return a.call(this)}};n.disconnectedCallback=function(){t.delete(this);if(c){c.call(this)}}};return{Provider:c,Consumer:o,injectProps:s}};var n=r("A",t({historyType:"browser",location:{pathname:"",query:{},key:""},titleSuffix:"",root:"/",routeViewsUpdated:function(){}},(function(r,t){return e("context-consumer",{subscribe:r,renderer:t})})))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as n}from"./p-082669d9.js";const e=class{constructor(n){t(this,n),this.content=""}componentWillLoad(){if(null!=this.documentLocation)return this.fetchNewContent(this.documentLocation)}fetchNewContent(t){return fetch(t).then((t=>t.text())).then((t=>{this.content=t}))}render(){return n("div",{innerHTML:this.content})}static get watchers(){return{documentLocation:["fetchNewContent"]}}};export{e as stencil_async_content}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-381262c1.system.js"],(function(e,s){"use strict";var t,o,n;return{setters:[function(e){t=e.p;o=e.b},function(){},function(){},function(e){n=e.g}],execute:function(){var e=function(){var e=s.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return t(o)};e().then((function(e){n();return o([["p-64ebe17d.system",[[1,"fl-style-guide",{themeCssUrl:[1,"theme-css-url"]}]]],["p-cd49a6b7.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-8cbfc343.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-642db1f7.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-285da037.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-f15bf700.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-0623b20a.system",[[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],showSmsfNotSupported:[32]}],[0,"sss-default-fund",{history:[16],formState:[32],defaultFundProductName:[32]}],[0,"sss-slate-standard-choice-page",{history:[16],formState:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],areStylesLoaded:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],chosenFund:[32]}],[0,"sss-promoted-fund-standard-choice-page",{history:[16],formState:[32]}],[0,"sss-success"],[0,"sss-promoted-fund-join-page",{history:[16]}],[0,"sss-slate-join-page",{history:[16]}],[0,"super-selection-app",{accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],selectedOption:[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{fundForm:[16],currentBank:[32]}],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item",{isSelected:[4,"is-selected"],usi:[1],name:[1],subText:[1,"sub-text"],logo:[1],pdsLinkText:[1,"pds-link-text"],pdsLink:[1,"pds-link"],features:[1],featureSubText:[1,"feature-sub-text"],disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1],history:[16]}],[0,"fl-dropdown",{placeholder:[1],options:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-selected-super-choice-section",{fundType:[1,"fund-type"],fundName:[1,"fund-name"]}],[0,"sss-slatesuper-header"],[0,"sss-footer-section"],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32]}],[0,"fl-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-notifications-section"],[0,"sss-standard-choice-form",{standardChoiceFormSignature:[32]}],[4,"fl-promise-button",{isBlockElement:[4,"is-block-element"],isRounded:[4,"is-rounded"],disabled:[4],variant:[1],promiseFn:[16],state:[32]}],[4,"fl-button",{isBlockElement:[4,"is-block-element"],disabled:[4],variant:[1]}],[0,"fl-loading-indicator",{theme:[1]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}))}}}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{S as t,O as e,r as s,a as i,A as n,b as r,N as h,h as o,o as c,s as u,i as a,c as f,e as l,d,f as p}from"./p-342cee5a.js";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function y(t,e,s,i){var n,r=arguments.length,h=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,s,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(h=(r<3?n(h):r>3?n(e,s,h):n(e,s))||h);return r>3&&h&&Object.defineProperty(e,s,h),h}function b(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}const g=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends t{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const s=e.indexOf(this.subscriber);-1!==s&&e.splice(s,1)}}class v extends i{constructor(t){super(t),this.destination=t}}class O extends e{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[s](){return new v(this)}lift(t){const e=new j(this,this);return e.operator=t,e}next(t){if(this.closed)throw new g;if(!this.isStopped){const{observers:e}=this,s=e.length,i=e.slice();for(let e=0;e<s;e++)i[e].next(t)}}error(t){if(this.closed)throw new g;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,s=e.length,i=e.slice();for(let e=0;e<s;e++)i[e].error(t);this.observers.length=0}complete(){if(this.closed)throw new g;this.isStopped=!0;const{observers:t}=this,e=t.length,s=t.slice();for(let t=0;t<e;t++)s[t].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new g;return super._trySubscribe(t)}_subscribe(e){if(this.closed)throw new g;return this.hasError?(e.error(this.thrownError),t.EMPTY):this.isStopped?(e.complete(),t.EMPTY):(this.observers.push(e),new w(this,e))}asObservable(){const t=new e;return t.source=this,t}}O.create=(t,e)=>new j(t,e);class j extends O{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(e){const{source:s}=this;return s?this.source.subscribe(e):t.EMPTY}}class m extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new g;return this._value}next(t){super.next(this._value=t)}}const E=new class extends r{}(class extends n{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,s=0){return null!==s&&s>0||null===s&&this.delay>0?super.requestAsyncId(t,e,s):t.flush(this)}});class S extends i{constructor(t,e,s=0){super(t),this.scheduler=e,this.delay=s}static dispatch(t){const{notification:e,destination:s}=t;e.observe(s),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(S.dispatch,this.delay,new A(t,this.destination)))}_next(t){this.scheduleMessage(h.createNext(t))}_error(t){this.scheduleMessage(h.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.createComplete()),this.unsubscribe()}}class A{constructor(t,e){this.notification=t,this.destination=e}}class x extends O{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,s){super(),this.scheduler=s,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new P(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(e){const s=this._infiniteTimeWindow,i=s?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,r=i.length;let h;if(this.closed)throw new g;if(this.isStopped||this.hasError?h=t.EMPTY:(this.observers.push(e),h=new w(this,e)),n&&e.add(e=new S(e,n)),s)for(let t=0;t<r&&!e.closed;t++)e.next(i[t]);else for(let t=0;t<r&&!e.closed;t++)e.next(i[t].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),h}_getNow(){return(this.scheduler||E).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,s=this._windowTime,i=this._events,n=i.length;let r=0;for(;r<n&&!(t-i[r].time<s);)r++;return n>e&&(r=Math.max(r,n-e)),r>0&&i.splice(0,r),i}}class P{constructor(t,e){this.time=t,this.value=e}}const _=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function I(t,e){return function(s){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return s.lift(new N(t,e))}}class N{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new C(t,this.project,this.thisArg))}}class C extends i{constructor(t,e,s){super(t),this.project=e,this.count=0,this.thisArg=s||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}const U="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",R=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function F(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const M=t=>{if(t&&"function"==typeof t[c])return i=t,t=>{const e=i[c]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return u(t);if(F(t))return s=t,t=>(s.then((e=>{t.closed||(t.next(e),t.complete())}),(e=>t.error(e))).then(null,o),t);if(t&&"function"==typeof t[U])return e=t,t=>{const s=e[U]();for(;;){let e;try{e=s.next()}catch(e){return t.error(e),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof s.return&&t.add((()=>{s.return&&s.return()})),t};{const e=a(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,s,i};function k(s,i){return i?function(s,i){if(null!=s){if(function(t){return t&&"function"==typeof t[c]}(s))return function(s,i){return new e((e=>{const n=new t;return n.add(i.schedule((()=>{const t=s[c]();n.add(t.subscribe({next(t){n.add(i.schedule((()=>e.next(t))))},error(t){n.add(i.schedule((()=>e.error(t))))},complete(){n.add(i.schedule((()=>e.complete())))}}))}))),n}))}(s,i);if(F(s))return function(s,i){return new e((e=>{const n=new t;return n.add(i.schedule((()=>s.then((t=>{n.add(i.schedule((()=>{e.next(t),n.add(i.schedule((()=>e.complete())))})))}),(t=>{n.add(i.schedule((()=>e.error(t))))}))))),n}))}(s,i);if(R(s))return f(s,i);if(function(t){return t&&"function"==typeof t[U]}(s)||"string"==typeof s)return function(s,i){if(!s)throw new Error("Iterable cannot be null");return new e((e=>{const n=new t;let r;return n.add((()=>{r&&"function"==typeof r.return&&r.return()})),n.add(i.schedule((()=>{r=s[U](),n.add(i.schedule((function(){if(e.closed)return;let t,s;try{const e=r.next();t=e.value,s=e.done}catch(t){return void e.error(t)}s?e.complete():(e.next(t),this.schedule())})))}))),n}))}(s,i)}throw new TypeError((null!==s&&typeof s||s)+" is not observable")}(s,i):s instanceof e?s:new e(M(s))}class K extends i{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends i{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function D(t,s){if(!s.closed)return t instanceof e?t.subscribe(s):M(t)(s)}function $(t,e){return function(s){return s.lift(new W(t,e))}}class W{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new V(t,this.predicate,this.thisArg))}}class V extends i{constructor(t,e,s){super(t),this.predicate=e,this.thisArg=s,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}function Y(t,e){return s=>s.lift(new H(t,e))}class H{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Q(t,this.compare,this.keySelector))}}class Q extends i{constructor(t,e,s){super(t),this.keySelector=s,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:s}=this;e=s?s(t):t}catch(t){return this.destination.error(t)}let s=!1;if(this.hasKey)try{const{compare:t}=this;s=t(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;s||(this.key=e,this.destination.next(t))}}class B{constructor(t){if(this.total=t,this.total<0)throw new _}call(t,e){return e.subscribe(new q(t,this.total))}}class q extends i{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,s=++this.count;s<=e&&(this.destination.next(t),s===e&&(this.destination.complete(),this.unsubscribe()))}}function z(t,e){return"function"==typeof e?s=>s.pipe(z(((s,i)=>k(t(s,i)).pipe(I(((t,n)=>e(s,t,i,n))))))):e=>e.lift(new G(t))}class G{constructor(t){this.project=t}call(t,e){return e.subscribe(new J(t,this.project))}}class J extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const s=this.index++;try{e=this.project(t,s)}catch(t){return void this.destination.error(t)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const s=new K(this),i=this.destination;i.add(s),this.innerSubscription=D(t,s),this.innerSubscription!==s&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const X={type:null,entityIds:null,skip:!1};let Z=!1;function tt(t,e){et(t,e),Z=!0}function et(t,e){!1===Z&&(X.type=t,X.entityIds=e)}function st(t,e){return t.hasOwnProperty(e)}function it(t){return null==t}function nt(t){return it(t)?[]:Array.isArray(t)?t:[t]}var rt;!function(t){t.Set="Set",t.Add="Add",t.Update="Update",t.Remove="Remove"}(rt||(rt={}));const ht="undefined"!=typeof window;let ot=!0;function ct(){ot=!1,ht&&(delete window.$$stores,delete window.$$queries)}function ut(){return ot}function at(t){const e=typeof t;return null!=t&&("object"==e||"function"==e)}function ft(t){return Array.isArray(t)}function lt(t){return!1===it(t)}function dt(t){return!!ft(t)&&0===t.length}function pt(t){return"function"==typeof t}function yt(t){return void 0===t}function bt(t){return t.hasOwnProperty("active")}function gt(t){return ft(t)}function wt({active:t,ids:e,entities:s}){return gt(t)?function(t,e){const s=t.filter((t=>e.indexOf(t)>-1));return s.length===t.length?t:s}(t,e):!1===st(s,t)?null:t}function vt(t,e){let s={};for(const i of Object.keys(t))s[i]=e(t[i]);return s}let Ot={resettable:!1,ttl:null,producerFn:void 0};function jt(){return Ot}function mt(t){Object.freeze(t);const e="function"==typeof t,s=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach((function(i){!s.call(t,i)||e&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||mt(t[i])})),t}const Et=new O,Tt=new x(50,5e3),St=new O;function At(t){return null!=t&&""+t!="false"}function xt(t){return At(t)&&"Object"===t.constructor.name}function Pt(t){return function(e){e.akitaConfig={idKey:"id"};for(let s=0,i=Object.keys(t);s<i.length;s++){const n=i[s];"name"===n?e.akitaConfig.storeName=t[n]:e.akitaConfig[n]=t[n]}}}const _t={},It={};ht&&(window.$$stores=_t,window.$$queries=It);const Nt=new O,Ct=new m(!1),Ut={activeTransactions:0,batchTransaction:null};function Rt(){return Ut.activeTransactions>0}function Ft(t,e){Rt()||(Ut.batchTransaction=new O),Ut.activeTransactions++,Ct.next(!0);try{return t.apply(e)}finally{tt("@Transaction"),0==--Ut.activeTransactions&&(Ut.batchTransaction.next(!0),Ut.batchTransaction.complete(),Ct.next(!1),Nt.next(!0))}}function Mt(){return function(t,e,s){const i=s.value;return s.value=function(...t){return Ft((()=>i.apply(this,t)),this)},s}}class kt{constructor(t,e={}){this.options=e,this.inTransaction=!1,this.cache={active:new m(!1),ttl:null},this.onInit(t)}setLoading(t=!1){t!==this._value().loading&&(ut()&&et("Set Loading"),this._setState((e=>Object.assign({},e,{loading:t}))))}setHasCache(t,e={restartTTL:!1}){if(t!==this.cache.active.value&&this.cache.active.next(t),e.restartTTL){const t=this.getCacheTTL();t&&(null!==this.cache.ttl&&clearTimeout(this.cache.ttl),this.cache.ttl=setTimeout((()=>this.setHasCache(!1)),t))}}getValue(){return this.storeValue}setError(t){t!==this._value().error&&(ut()&&et("Set Error"),this._setState((e=>Object.assign({},e,{error:t}))))}_select(t){return this.store.asObservable().pipe(I((e=>t(e.state))),Y())}_value(){return this.storeValue}_cache(){return this.cache.active}get config(){return this.constructor.akitaConfig||{}}get storeName(){return this.config.storeName||this.options.storeName||this.options.name}get deepFreeze(){return this.config.deepFreezeFn||this.options.deepFreezeFn||mt}get cacheConfig(){return this.config.cache||this.options.cache}get _producerFn(){return this.config.producerFn||this.options.producerFn||Ot.producerFn}get resettable(){return lt(this.config.resettable)?this.config.resettable:this.options.resettable}_setState(t,e=!0){if(pt(t)){const e=t(this._value());this.storeValue=ot?this.deepFreeze(e):e}else this.storeValue=t;if(!this.store)return this.store=new m({state:this.storeValue}),void(ut()&&this.store.subscribe((({action:t})=>{t&&function(t,e){St.next({storeName:t,action:e})}(this.storeName,t)})));Rt()?this.handleTransaction():this.dispatch(this.storeValue,e)}reset(){this.isResettable()?(ut()&&et("Reset"),this._setState((()=>Object.assign({},this._initialState))),this.setHasCache(!1)):ut()&&console.warn("You need to enable the reset functionality")}update(t){let e;ut()&&et("Update");const s=this._value();e=pt(t)?pt(this._producerFn)?this._producerFn(s,t):t(s):t;const i=this.akitaPreUpdate(s,Object.assign({},s,e)),n=xt(s)?i:new s.constructor(i);this._setState(n)}updateStoreConfig(t){this.options=Object.assign({},this.options,t)}akitaPreUpdate(t,e){return e}ngOnDestroy(){this.destroy()}destroy(){ht&&window.hmrEnabled||this!==_t[this.storeName]||(delete _t[this.storeName],Et.next(this.storeName),this.setHasCache(!1),this.cache.active.complete(),this.store.complete())}onInit(t){_t[this.storeName]=this,this._setState((()=>t)),Tt.next(this.storeName),this.isResettable()&&(this._initialState=t),ut()&&(this.storeName||console.error("@StoreConfig({ name }) is missing in "+this.constructor.name))}dispatch(t,e=!0){let s=void 0;e&&(s=X,Z=!1),this.store.next({state:t,action:s})}watchTransaction(){(Ut.batchTransaction?Ut.batchTransaction.asObservable():d(!0)).subscribe((()=>{this.inTransaction=!1,this.dispatch(this._value())}))}isResettable(){return!1!==this.resettable&&(this.resettable||jt().resettable)}handleTransaction(){this.inTransaction||(this.watchTransaction(),this.inTransaction=!0)}getCacheTTL(){return this.cacheConfig&&this.cacheConfig.ttl||jt().ttl}}var Kt,Lt;class Dt extends kt{constructor(t={},e={}){super(Object.assign({},{entities:{},ids:[],loading:!0,error:null},t),e),this.options=e,this.entityActions=new O,this.entityIdChanges=new O}get selectEntityAction$(){return this.entityActions.asObservable()}get selectEntityIdChanges$(){return this.entityIdChanges.asObservable()}get idKey(){return this.config.idKey||this.options.idKey||"id"}set(t,e={}){if(it(t))return;ut()&&et("Set Entity");const s=this.akitaPreAddEntity===Dt.prototype.akitaPreAddEntity;this.setHasCache(!0,{restartTTL:!0}),this._setState((i=>{const n=function({state:t,entities:e,idKey:s,preAddEntity:i,isNativePreAdd:n}){let r,h;if(ft(e)){const t=function(t,e,s){const i={entities:{},ids:[]};for(const n of t){const t=s(n);i.entities[t[e]]=t,i.ids.push(t[e])}return i}(e,s,i);r=t.entities,h=t.ids}else!function(t){return t.entities&&t.ids}(e)?(r=n?e:vt(e,i),h=Object.keys(r).map((t=>isNaN(t)?t:Number(t)))):(r=n?e.entities:vt(e.entities,i),h=e.ids);const o=Object.assign({},t,{entities:r,ids:h,loading:!1});return bt(t)&&(o.active=wt(o)),o}({state:i,entities:t,idKey:this.idKey,preAddEntity:this.akitaPreAddEntity,isNativePreAdd:s});return!1===yt(e.activeId)&&(n.active=e.activeId),n})),this.hasInitialUIState()&&this.handleUICreation(),this.entityActions.next({type:rt.Set,ids:this.ids})}add(t,e={loading:!1}){const s=nt(t);if(dt(s))return;const i=function({state:t,entities:e,idKey:s,options:i={},preAddEntity:n}){let r={},h=[],o=!1;for(const c of e)if(!1===st(t.entities,c[s])){const t=n(c),e=t[s];r[e]=t,i.prepend?h.unshift(e):h.push(e),o=!0}return o?{newState:Object.assign({},t,{entities:Object.assign({},t.entities,r),ids:i.prepend?[...h,...t.ids]:[...t.ids,...h]}),newIds:h}:null}({state:this._value(),preAddEntity:this.akitaPreAddEntity,entities:s,idKey:this.idKey,options:e});i&&(ut()&&et("Add Entity"),i.newState.loading=e.loading,this._setState((()=>i.newState)),this.hasInitialUIState()&&this.handleUICreation(!0),this.entityActions.next({type:rt.Add,ids:i.newIds}))}update(t,e){if(yt(e))return void super.update(t);let s,i=[];i=pt(t)?this.ids.filter((e=>t(this.entities[e]))):it(t)?this.ids:nt(t),dt(i)||(ut()&&et("Update Entity",i),this._setState((t=>function({state:t,ids:e,idKey:s,newStateOrFn:i,preUpdateEntity:n,producerFn:r,onEntityIdChanges:h}){const o={};let c,u=!1;for(const h of e){if(!1===st(t.entities,h))continue;const e=t.entities[h];let a;a=pt(i)?pt(r)?r(e,i):i(e):i;const f=a.hasOwnProperty(s)&&a[s]!==e[s];let l;c=h,f&&(u=!0,c=a[s]);const d=Object.assign({},e,a);l=xt(e)?d:xt(a)?new e.constructor(d):new a.constructor(d),o[c]=n(e,l)}let a=t.ids,f=t.entities;if(u){const[s]=e,i=s;f=function(t,e){var s={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(s[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(s[i[n]]=t[i[n]])}return s}(t.entities,["symbol"==typeof i?i:i+""]),a=t.ids.map((t=>t===s?c:t)),h(s,c)}return Object.assign({},t,{entities:Object.assign({},f,o),ids:a})}({idKey:this.idKey,ids:i,preUpdateEntity:this.akitaPreUpdateEntity,state:t,newStateOrFn:e,producerFn:this._producerFn,onEntityIdChanges:(t,e)=>{s={oldId:t,newId:e},this.entityIdChanges.next(Object.assign({},s,{pending:!0}))}}))),s&&this.entityIdChanges.next(Object.assign({},s,{pending:!1})),this.entityActions.next({type:rt.Update,ids:i}))}upsert(t,e,s,i={}){const n=nt(t),r=t=>e=>st(this.entities,e)===t,h=pt(s)?i.baseClass:s?s.baseClass:void 0,o=pt(h),c=n.filter(r(!0)),u=n.filter(r(!1)).map((t=>{const i="function"==typeof e?e({}):e,n=pt(s)?s(t,i):i,r=Object.assign({},n,{[this.idKey]:t});return o?new h(r):r}));this.update(c,e),this.add(u),ut()&&tt("Upsert Entity")}upsertMany(t,e={}){const s=[],i=[],n={};for(const r of t){const t=this.akitaPreCheckEntity(r),h=t[this.idKey];if(st(this.entities,h)){const s=this._value().entities[h],r=Object.assign({},this._value().entities[h],t),o=e.baseClass?new e.baseClass(r):r,c=this.akitaPreUpdateEntity(s,o),u=c[this.idKey];n[u]=c,i.push(u)}else{const i=e.baseClass?new e.baseClass(t):t,r=this.akitaPreAddEntity(i),h=r[this.idKey];s.push(h),n[h]=r}}ut()&&tt("Upsert Many"),this._setState((t=>Object.assign({},t,{ids:s.length?[...t.ids,...s]:t.ids,entities:Object.assign({},t.entities,n),loading:!!e.loading}))),i.length&&this.entityActions.next({type:rt.Update,ids:i}),s.length&&this.entityActions.next({type:rt.Add,ids:s}),s.length&&this.hasUIStore()&&this.handleUICreation(!0)}replace(t,e){const s=nt(t);if(dt(s))return;let i={};for(const t of s)e[this.idKey]=t,i[t]=e;ut()&&et("Replace Entity",t),this._setState((t=>Object.assign({},t,{entities:Object.assign({},t.entities,i)})))}move(t,e){const s=this.ids.slice();s.splice(e<0?s.length+e:e,0,s.splice(t,1)[0]),ut()&&et("Move Entity"),this._setState((t=>Object.assign({},t,{entities:Object.assign({},t.entities),ids:s})))}remove(t){if(dt(this.ids))return;const e=lt(t);let s=[];s=pt(t)?this.ids.filter((e=>t(this.entities[e]))):e?nt(t):this.ids,dt(s)||(ut()&&et("Remove Entity",s),this._setState((t=>function({state:t,ids:e}){if(it(e))return function(t){return Object.assign({},t,{entities:{},ids:[],active:gt(t.active)?[]:null})}(t);const s=t.entities;let i={};for(const n of t.ids)!1===e.includes(n)&&(i[n]=s[n]);const n=Object.assign({},t,{entities:i,ids:t.ids.filter((t=>!1===e.includes(t)))});return bt(t)&&(n.active=wt(n)),n}({state:t,ids:s}))),e||this.setHasCache(!1),this.handleUIRemove(s),this.entityActions.next({type:rt.Remove,ids:s}))}updateActive(t){const e=nt(this.active);ut()&&et("Update Active",e),this.update(e,t)}setActive(t){const e=function(t,e,s){let i;if(ft(t))i=t;else if(at(t)){if(it(s))return;t=Object.assign({wrap:!0},t);const n=e.indexOf(s);if(t.prev){const s=0===n;if(s&&!t.wrap)return;i=s?e[e.length-1]:e[n-1]}else if(t.next){const s=e.length===n+1;if(s&&!t.wrap)return;i=s?e[0]:e[n+1]}}else{if(t===s)return;i=t}return i}(t,this.ids,this.active);void 0!==e&&(ut()&&et("Set Active",e),this._setActive(e))}addActive(t){const e=nt(t);dt(e)||e.every((t=>this.active.indexOf(t)>-1))||(ut()&&et("Add Active",t),this._setState((t=>{const s=Array.from(new Set([...t.active,...e]));return Object.assign({},t,{active:s})})))}removeActive(t){const e=nt(t);dt(e)||e.some((t=>this.active.indexOf(t)>-1))&&(ut()&&et("Remove Active",t),this._setState((t=>Object.assign({},t,{active:Array.isArray(t.active)?t.active.filter((t=>-1===e.indexOf(t))):null}))))}toggleActive(t){const e=nt(t),s=t=>e=>this.active.includes(e)===t,i=e.filter(s(!0)),n=e.filter(s(!1));this.removeActive(i),this.addActive(n),ut()&&tt("Toggle Active")}createUIStore(t={},e={}){return this.ui=new $t(t,Object.assign({},{name:"UI/"+this.storeName,idKey:this.idKey},e)),this.ui}destroy(){super.destroy(),this.ui instanceof Dt&&this.ui.destroy(),this.entityActions.complete()}akitaPreUpdateEntity(t,e){return e}akitaPreAddEntity(t){return t}akitaPreCheckEntity(t){return t}get ids(){return this._value().ids}get entities(){return this._value().entities}get active(){return this._value().active}_setActive(t){this._setState((e=>Object.assign({},e,{active:t})))}handleUICreation(t=!1){const e=this.ids,s=pt(this.ui._akitaCreateEntityFn);let i;const n=t=>{const e=this.entities[t],i=s?this.ui._akitaCreateEntityFn(e):this.ui._akitaCreateEntityFn;return Object.assign({[this.idKey]:e[this.idKey]},i)};i=t?this.ids.filter((t=>yt(this.ui.entities[t]))).map(n):e.map(n),t?this.ui.add(i):this.ui.set(i)}hasInitialUIState(){return this.hasUIStore()&&!1===yt(this.ui._akitaCreateEntityFn)}handleUIRemove(t){this.hasUIStore()&&this.ui.remove(t)}hasUIStore(){return this.ui instanceof $t}}y([Mt(),b("design:type",Function),b("design:paramtypes",[Object,Object,Object,Object]),b("design:returntype",void 0)],Dt.prototype,"upsert",null),y([Mt(),b("design:type",Function),b("design:paramtypes",["function"==typeof(Kt="undefined"!=typeof T&&T)?Kt:Object]),b("design:returntype",void 0)],Dt.prototype,"toggleActive",null);class $t extends Dt{constructor(t={},e={}){super(t,e)}setInitialEntityState(t){this._akitaCreateEntityFn=t}}!function(t){t.ASC="asc",t.DESC="desc"}(Lt||(Lt={}));class Wt{constructor(t){this.store=t,this.__store__=t,ut()&&(It[t.storeName]=this)}select(t){let e;if(pt(t))e=t;else if("string"==typeof t)e=e=>e[t];else{if(Array.isArray(t))return this.store._select((t=>t)).pipe(Y((s=t,function(t,e){const i=pt(s[0]);return!1===s.some((s=>i?s(t)!==s(e):t[s]!==e[s]))})),I((e=>pt(t[0])?t.map((t=>t(e))):t.reduce(((t,s)=>(t[s]=e[s],t)),{}))));e=t=>t}var s;return this.store._select(e)}selectLoading(){return this.select((t=>t.loading))}selectError(){return this.select((t=>t.error))}getValue(){return this.store._value()}selectHasCache(){return this.store._cache().asObservable()}getHasCache(){return this.store._cache().value}get config(){return this.constructor.akitaQueryConfig}}const Vt=t=>t.pipe($((t=>null!=t)));function Yt(t,e){return 1===e.split(".").length?t:e.split(".").slice(1).join(".").split(".").reduce(((t,e)=>t&&t[e]),t)}new x(1);const Ht={pagesControls:!1,range:!1,startWith:1,cacheTimeout:void 0,clearStoreWithCache:!0};var Qt,Bt;y([function(t,e,s){const i=s.value;return s.value=function(...t){return tt("@Pagination - New Page",void 0),i.apply(this,t)},s},b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],class extends class{constructor(t,e){this.query=t,e&&e.resetFn&&jt().resettable&&this.onReset(e.resetFn)}getQuery(){return this.query}getStore(){return this.getQuery().__store__}isEntityBased(t){return At(t)}selectSource(t,e){return this.isEntityBased(t)?this.getQuery().selectEntity(t).pipe(Vt):e?this.getQuery().select((t=>Yt(t,this.withStoreName(e)))):this.getQuery().select()}getSource(t,e){if(this.isEntityBased(t))return this.getQuery().getEntity(t);const s=this.getQuery().getValue();return e?Yt(s,this.withStoreName(e)):s}withStoreName(t){return`${this.storeName}.${t}`}get storeName(){return this.getStore().storeName}updateStore(t,e,s){if(this.isEntityBased(e))this.getStore().update(e,t);else{if(s)return void this.getStore()._setState((e=>function(t,e,s){const i=e.split(".");if(1===i.length)return Object.assign({},t,s);t=Object.assign({},t);const n=i.length-2;return e.split(".").slice(1).reduce(((t,e,i)=>i!==n?(t[e]=Object.assign({},t[e]),t&&t[e]):(t[e]=Array.isArray(t[e])||!at(t[e])?s:Object.assign({},t[e],s),t&&t[e])),t),t}(e,this.withStoreName(s),t)));this.getStore()._setState((e=>Object.assign({},e,t)))}}onReset(t){const e=this.getStore().reset;this.getStore().reset=(...s)=>{setTimeout((()=>{e.apply(this.getStore(),s),t()}))}}}{constructor(t,s={}){super(t,{resetFn:()=>{this.initial=!1,this.destroy({clearCache:!0,currentPage:1})}}),this.query=t,this.config=s,this.metadata=new Map,this.pages=new Map,this.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]},this.initial=!0,this.isLoading$=this.query.selectLoading().pipe(p(0)),this.config=Object.assign(Ht,s);const{startWith:i,cacheTimeout:n}=this.config;var r;this.page=new m(i),(r=n)&&(r instanceof e||"function"==typeof r.lift&&"function"==typeof r.subscribe)&&(this.clearCacheSubscription=n.subscribe((()=>this.clearCache())))}get pageChanges(){return this.page.asObservable()}get currentPage(){return this.pagination.currentPage}get isFirst(){return 1===this.currentPage}get isLast(){return this.currentPage===this.pagination.lastPage}withControls(){return this.config.pagesControls=!0,this}withRange(){return this.config.range=!0,this}setLoading(t=!0){this.getStore().setLoading(t)}update(t){this.pagination=t,this.addPage(t.data)}addPage(t){this.pages.set(this.currentPage,{ids:t.map((t=>t[this.getStore().idKey]))}),this.getStore().upsertMany(t)}clearCache(t={}){this.initial||(tt("@Pagination - Clear Cache"),!1!==t.clearStore&&(this.config.clearStoreWithCache||t.clearStore)&&this.getStore().remove(),this.pages=new Map,this.metadata=new Map),this.initial=!1}clearPage(t){this.pages.delete(t)}destroy({clearCache:t,currentPage:e}={}){this.clearCacheSubscription&&this.clearCacheSubscription.unsubscribe(),t&&this.clearCache(),yt(e)||this.setPage(e),this.initial=!0}isPageActive(t){return this.currentPage===t}setPage(t){t===this.currentPage&&this.hasPage(t)||this.page.next(this.pagination.currentPage=t)}nextPage(){this.currentPage!==this.pagination.lastPage&&this.setPage(this.pagination.currentPage+1)}prevPage(){this.pagination.currentPage>1&&this.setPage(this.pagination.currentPage-1)}setLastPage(){this.setPage(this.pagination.lastPage)}setFirstPage(){this.setPage(1)}hasPage(t){return this.pages.has(t)}getPage(t){let e=this.pagination.currentPage;return this.hasPage(e)?this.selectPage(e):(this.setLoading(!0),k(t()).pipe(z((t=>(e=t.currentPage,Ft((()=>{this.setLoading(!1),this.update(t)})),this.selectPage(e))))))}getQuery(){return this.query}refreshCurrentPage(){!1===it(this.currentPage)&&(this.clearPage(this.currentPage),this.setPage(this.currentPage))}getFrom(){return this.isFirst?1:(this.currentPage-1)*this.pagination.perPage+1}getTo(){return this.isLast?this.pagination.total:this.currentPage*this.pagination.perPage}selectPage(t){return this.query.selectAll({asObject:!0}).pipe((1,t=>t.lift(new B(1))),I((e=>{let s=Object.assign({},this.pagination,{data:this.pages.get(t).ids.map((t=>e[t]))});const{range:i,pagesControls:n}=this.config;return isNaN(this.pagination.total)&&(s.total=1===s.lastPage?s.data?s.data.length:0:s.perPage*s.lastPage,this.pagination.total=s.total),i&&(s.from=this.getFrom(),s.to=this.getTo()),n&&(s.pageControls=function(t,e){const s=Math.ceil(t/e);let i=[];for(let t=0;t<s;t++)i.push(t+1);return i}(this.pagination.total,this.pagination.perPage)),s})))}}.prototype,"update",null),function(t){t.Update="UPDATE"}(Qt||(Qt={})),function(t){t.Update="UPDATE",t.AddEntities="ADD_ENTITIES",t.SetEntities="SET_ENTITIES",t.UpdateEntities="UPDATE_ENTITIES",t.RemoveEntities="REMOVE_ENTITIES",t.UpsertEntities="UPSERT_ENTITIES",t.UpsertManyEntities="UPSERT_MANY_ENTITIES"}(Bt||(Bt={}));export{Wt as Q,L as S,K as a,$ as b,Pt as c,Y as d,ct as e,k as f,kt as g,D as i,I as m}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,h as s,H as t}from"./p-082669d9.js";import{g as e,O as i,l as a,k as n,d as r,f as o}from"./p-342cee5a.js";function c(l){return!e(l)&&l-parseFloat(l)+1>=0}function u(l){const{index:s,period:t,subscriber:e}=l;if(e.next(s),!e.closed){if(-1===t)return e.complete();l.index=s+1,this.schedule(l,t)}}const d=l=>{const s=document.querySelector('script[data-fl-namespace="design-system"][data-fl-resources-url]'),t=s&&s.getAttribute("data-fl-resources-url")||"";try{return new URL(l,t).href}catch(s){return`${t}/${l}`}},m=class{constructor(s){l(this,s),this.data=["Apple","Application","Appetizer","Anna","Banana","Archery","Apogee"].map((l=>({label:l,value:l}))),this.searchFunction=l=>{const s=this.data.filter((s=>s.label.toLowerCase().includes(l.toLowerCase())));return r(s).pipe(o(1e3)).toPromise()}}render(){return s(t,null,s("link",{rel:"stylesheet",href:d("beacon.css"),media:"all"}),this.themeCssUrl&&s("link",{rel:"stylesheet",href:this.themeCssUrl,media:"all"}),s("div",{class:"container m-3 p-5 shadow"},s("h1",null,"Beacon"),s("h5",null,"Flare-Apollo Component Library 🚀"),s("div",{class:"row"},s("div",{class:"col"},s("ul",{class:"list-group"},s("li",{class:"list-group-item"},s("small",{class:"text-muted"},"Typography"),s("div",{class:"col"},s("h1",null,"h1 Heading"),s("h2",null,"h2 Sub-heading"),s("h3",null,"h3 Sub-heading"),s("h4",null,"h4 Sub-heading"),s("p",null,"Paragraph"),s("div",{class:"d-flex flex-column"},s("strong",null,"Strong"),s("small",null,"small"),s("a",{href:"https://www.flarehr.com",target:"_blank"},"Weblink")))),s("li",{class:"list-group-item"},s("small",{class:"text-muted"},"Buttons"),s("div",{class:"col-3 my-2"},this.renderButtonVariants())),s("li",{class:"list-group-item"},s("small",{class:"text-muted"},"Loading indicator"),s("div",{class:"col"},s("fl-loading-indicator",null),s("fl-loading-indicator",{theme:"dark"}))),s("li",{class:"list-group-item"},s("small",{class:"text-muted"},"Dropdown"),s("div",{class:"col-4"},s("fl-dropdown",{options:this.data}))),s("li",{class:"list-group-item"},s("small",{class:"text-muted"},"Async Dropdown"),s("div",{class:"col-4"},s("fl-dropdown-async",{"min-search-string-length":"2",searchFunction:this.searchFunction}))),s("li",{class:"list-group-item"},s("small",{class:"text-muted"},"Promise Button"),s("div",{class:"col-3 my-2"},s("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.takeTime()},"Promise Button block")),s("div",{class:"col-3 my-2"},s("fl-promise-button",{promiseFn:()=>this.takeTime()},"Promise Button")),s("div",{class:"col-3 my-2"},s("fl-promise-button",{variant:"secondary",promiseFn:()=>this.takeTime()},"Secondary Promise Button"))))))))}renderButtonVariants(){return s("ul",{class:"list-group"},s("li",{class:"list-group-item"},s("i",null,"Primary"),s("fl-button",{isBlockElement:!0},"Button")),s("li",{class:"list-group-item"},s("i",null,"Primary, disabled"),s("fl-button",{isBlockElement:!0,disabled:!0},"Button")),s("li",{class:"list-group-item"},s("i",null,"Secondary"),s("fl-button",{isBlockElement:!0,variant:"secondary"},"Button")),s("li",{class:"list-group-item"},s("i",null,"Secondary, disabled"),s("fl-button",{isBlockElement:!0,disabled:!0,variant:"secondary"},"Button")))}async takeTime(){return function(l=0,s,t){let e=-1;return c(s)?e=Number(s)<1?1:Number(s):a(s)&&(t=s),a(t)||(t=n),new i((s=>{const i=c(l)?l:+l-t.now();return t.schedule(u,i,{index:0,period:e,subscriber:s})}))}(2e3*Math.random()+2e3).toPromise()}};m.style="";export{m as fl_style_guide}
|