@flarehr/cars-calculator 2.3.49 → 2.3.57
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/cars-calculator/cars-calculator.esm.js +1 -1
- package/dist/lib/cars-calculator/cars-calculator.js +1 -1
- package/dist/lib/cars-calculator/{p-b7e7dc0f.system.entry.js → p-08f08988.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-0b08c63c.system.js → p-19b00569.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-92efd97a.system.entry.js → p-2f318de8.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-cc24e248.js → p-34be9e94.js} +1 -1
- package/dist/lib/cars-calculator/{p-9e42ba48.system.entry.js → p-3986811b.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-69382409.entry.js → p-40adf333.entry.js} +1 -1
- package/dist/lib/cars-calculator/p-45d6fbc2.system.js +1 -0
- package/dist/lib/cars-calculator/{p-82b4b9ca.entry.js → p-5feb27ac.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-5e27b626.js → p-628050dd.js} +1 -1
- package/dist/lib/cars-calculator/{p-f91aa986.system.js → p-6339bd49.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-a0ed3a75.system.js → p-63ad215f.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-03836e14.entry.js → p-6a379ac2.entry.js} +1 -1
- package/dist/lib/cars-calculator/p-7062880e.js +1 -0
- package/dist/lib/cars-calculator/{p-20a242dc.entry.js → p-7141bc11.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-ac38cb9d.system.entry.js → p-7234d34c.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-9cc8b374.system.entry.js → p-7fed1bfc.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-192dd4a3.system.js → p-8d4bb973.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-25e24da6.system.entry.js → p-94ba6def.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-5efd0fbd.entry.js → p-a54b8d09.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-50451ff0.entry.js → p-aa6eeef5.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-98bd1117.system.entry.js → p-aa7dc5dc.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-819cfa63.js → p-ab3a7737.js} +1 -1
- package/dist/lib/cars-calculator/{p-821b5928.entry.js → p-af1b58b9.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-78c4dce3.system.js → p-b41f72c8.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-598f4a0b.system.js → p-b51215ae.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-69960bb6.system.js → p-bdb3fb61.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-5c2cc99d.js → p-bf086b51.js} +1 -1
- package/dist/lib/cars-calculator/p-c39a8fe9.entry.js +1 -0
- package/dist/lib/cars-calculator/p-c3b6466e.js +1 -0
- package/dist/lib/cars-calculator/{p-3126f655.system.entry.js → p-c3d37683.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/p-c49546ea.entry.js +1 -0
- package/dist/lib/cars-calculator/{p-88c232fe.system.entry.js → p-c77c24a6.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-1bc2b206.system.js → p-c9562e73.system.js} +1 -1
- package/dist/lib/cars-calculator/p-cbc447c7.system.entry.js +1 -0
- package/dist/lib/cars-calculator/{p-2e1b766b.system.entry.js → p-cd0073f4.system.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-c35d387e.js → p-d14b00d9.js} +1 -1
- package/dist/lib/cars-calculator/{p-c4cda1ba.entry.js → p-e385dbe0.entry.js} +1 -1
- package/dist/lib/cars-calculator/{p-066d8e7b.js → p-f3effa5d.js} +1 -1
- package/dist/lib/cars-calculator/{p-4b3e246f.js → p-fa160c9f.js} +1 -1
- package/dist/lib/cars-calculator/{p-8ec3baa9.system.js → p-fa7a5280.system.js} +1 -1
- package/dist/lib/cars-calculator/{p-e45ce69c.entry.js → p-ffa283e3.entry.js} +1 -1
- package/dist/lib/cjs/ap-ben-asset_15.cjs.entry.js +1 -1
- package/dist/lib/cjs/ap-ben-benefit-card.cjs.entry.js +3 -3
- package/dist/lib/cjs/ap-ben-benefit-list-item.cjs.entry.js +3 -3
- package/dist/lib/cjs/ap-ben-benefit-url_10.cjs.entry.js +6 -6
- package/dist/lib/cjs/ap-ben-benefits-list_3.cjs.entry.js +3 -3
- package/dist/lib/cjs/ap-ben-benefits-page.cjs.entry.js +4 -4
- package/dist/lib/cjs/ap-ben-confirm-dialog_4.cjs.entry.js +3 -3
- package/dist/lib/cjs/ap-ben-edit-benefit-page_5.cjs.entry.js +4 -4
- package/dist/lib/cjs/ap-ben-loading-page_2.cjs.entry.js +4 -4
- package/dist/lib/cjs/ap-ben-oidc-callback-page.cjs.entry.js +2 -2
- package/dist/lib/cjs/api-client-00edc9b6.js +107 -0
- package/dist/lib/cjs/{app-globals-086f9d49.js → app-globals-dec360ac.js} +1 -1
- package/dist/lib/cjs/{authentication.service-11c30071.js → authentication.service-12f9ead3.js} +1 -1
- package/dist/lib/cjs/benefits-app-host.cjs.entry.js +2 -2
- package/dist/lib/cjs/{benefits-app.query-97410065.js → benefits-app.query-98898e4c.js} +2 -2
- package/dist/lib/cjs/{benefits.api-053c4334.js → benefits.api-a4bd9804.js} +1 -1
- package/dist/lib/cjs/cars-calculator.cjs.js +2 -2
- package/dist/lib/cjs/{datorama-akita-792b4d1d.js → datorama-akita-bb801820.js} +15 -5
- package/dist/lib/cjs/{event-tracking.service-6ae64142.js → event-tracking.service-fcc820f1.js} +1 -1
- package/dist/lib/cjs/loader.cjs.js +2 -2
- package/dist/lib/cjs/{manage-benefits.service-04883c9b.js → manage-benefits.service-f45b4602.js} +3 -3
- package/dist/lib/cjs/{role-management.service-120cb99a.js → role-management.service-2109723c.js} +2 -2
- package/dist/lib/esm/ap-ben-asset_15.entry.js +1 -1
- package/dist/lib/esm/ap-ben-benefit-card.entry.js +3 -3
- package/dist/lib/esm/ap-ben-benefit-list-item.entry.js +3 -3
- package/dist/lib/esm/ap-ben-benefit-url_10.entry.js +6 -6
- package/dist/lib/esm/ap-ben-benefits-list_3.entry.js +3 -3
- package/dist/lib/esm/ap-ben-benefits-page.entry.js +4 -4
- package/dist/lib/esm/ap-ben-confirm-dialog_4.entry.js +3 -3
- package/dist/lib/esm/ap-ben-edit-benefit-page_5.entry.js +4 -4
- package/dist/lib/esm/ap-ben-loading-page_2.entry.js +4 -4
- package/dist/lib/esm/ap-ben-oidc-callback-page.entry.js +2 -2
- package/dist/lib/esm/api-client-a68152b8.js +99 -0
- package/dist/lib/esm/{app-globals-aa396171.js → app-globals-2a868a4d.js} +1 -1
- package/dist/lib/esm/{authentication.service-05da74e1.js → authentication.service-905f97c2.js} +1 -1
- package/dist/lib/esm/benefits-app-host.entry.js +2 -2
- package/dist/lib/esm/{benefits-app.query-9179a170.js → benefits-app.query-bfee691f.js} +2 -2
- package/dist/lib/esm/{benefits.api-5ecab17a.js → benefits.api-806ca0bc.js} +1 -1
- package/dist/lib/esm/cars-calculator.js +2 -2
- package/dist/lib/esm/{datorama-akita-e42d9911.js → datorama-akita-d2413fd0.js} +15 -5
- package/dist/lib/esm/{event-tracking.service-bc65ac3b.js → event-tracking.service-8d44e7ac.js} +1 -1
- package/dist/lib/esm/loader.js +2 -2
- package/dist/lib/esm/{manage-benefits.service-08338cf7.js → manage-benefits.service-aca7df4c.js} +3 -3
- package/dist/lib/esm/{role-management.service-0e339b49.js → role-management.service-a7592363.js} +2 -2
- package/dist/lib/esm-es5/ap-ben-asset_15.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefit-card.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefit-list-item.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefit-url_10.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefits-list_3.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-benefits-page.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-confirm-dialog_4.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-edit-benefit-page_5.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-loading-page_2.entry.js +1 -1
- package/dist/lib/esm-es5/ap-ben-oidc-callback-page.entry.js +1 -1
- package/dist/lib/esm-es5/api-client-a68152b8.js +1 -0
- package/dist/lib/esm-es5/{app-globals-aa396171.js → app-globals-2a868a4d.js} +1 -1
- package/dist/lib/esm-es5/{authentication.service-05da74e1.js → authentication.service-905f97c2.js} +1 -1
- package/dist/lib/esm-es5/benefits-app-host.entry.js +1 -1
- package/dist/lib/esm-es5/{benefits-app.query-9179a170.js → benefits-app.query-bfee691f.js} +1 -1
- package/dist/lib/esm-es5/{benefits.api-5ecab17a.js → benefits.api-806ca0bc.js} +1 -1
- package/dist/lib/esm-es5/cars-calculator.js +1 -1
- package/dist/lib/esm-es5/{datorama-akita-e42d9911.js → datorama-akita-d2413fd0.js} +1 -1
- package/dist/lib/esm-es5/{event-tracking.service-bc65ac3b.js → event-tracking.service-8d44e7ac.js} +1 -1
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/{manage-benefits.service-08338cf7.js → manage-benefits.service-aca7df4c.js} +1 -1
- package/dist/lib/esm-es5/{role-management.service-0e339b49.js → role-management.service-a7592363.js} +1 -1
- package/package.json +7 -3
- package/dist/lib/cars-calculator/p-1bdb5093.entry.js +0 -1
- package/dist/lib/cars-calculator/p-307f91bf.system.entry.js +0 -1
- package/dist/lib/cars-calculator/p-56fb974f.entry.js +0 -1
- package/dist/lib/cars-calculator/p-69cf2679.system.js +0 -1
- package/dist/lib/cars-calculator/p-dc58dd5c.js +0 -1
- package/dist/lib/cars-calculator/p-df0a267a.js +0 -1
- package/dist/lib/cjs/api-client-a3c12426.js +0 -107
- package/dist/lib/esm/api-client-8974d2bd.js +0 -99
- package/dist/lib/esm-es5/api-client-8974d2bd.js +0 -1
|
@@ -7,13 +7,13 @@ const activeRouter = require('./active-router-3742ead6.js');
|
|
|
7
7
|
const Option = require('./Option-98dab0b8.js');
|
|
8
8
|
const index$1 = require('./index-889ce6c6.js');
|
|
9
9
|
const index_es = require('./index.es-1e4fc9cc.js');
|
|
10
|
-
const apiClient = require('./api-client-
|
|
10
|
+
const apiClient = require('./api-client-00edc9b6.js');
|
|
11
11
|
const navigation_service = require('./navigation.service-23bf9ce2.js');
|
|
12
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
13
|
-
const benefitsApp_query = require('./benefits-app.query-
|
|
12
|
+
const eventTracking_service = require('./event-tracking.service-fcc820f1.js');
|
|
13
|
+
const benefitsApp_query = require('./benefits-app.query-98898e4c.js');
|
|
14
14
|
const scheduleArray = require('./scheduleArray-0ba3d6f8.js');
|
|
15
15
|
require('./index-4f00f593.js');
|
|
16
|
-
require('./datorama-akita-
|
|
16
|
+
require('./datorama-akita-bb801820.js');
|
|
17
17
|
require('./delay-e91dba76.js');
|
|
18
18
|
require('./filter-c38164e6.js');
|
|
19
19
|
require('./iframe-a50670af.js');
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d685a739.js');
|
|
6
|
-
const authentication_service = require('./authentication.service-
|
|
6
|
+
const authentication_service = require('./authentication.service-12f9ead3.js');
|
|
7
7
|
require('./Option-98dab0b8.js');
|
|
8
8
|
require('./index-4f00f593.js');
|
|
9
|
-
require('./datorama-akita-
|
|
9
|
+
require('./datorama-akita-bb801820.js');
|
|
10
10
|
require('./scheduleArray-0ba3d6f8.js');
|
|
11
11
|
require('./delay-e91dba76.js');
|
|
12
12
|
require('./filter-c38164e6.js');
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-4f00f593.js');
|
|
4
|
+
const index$1 = require('./index-889ce6c6.js');
|
|
5
|
+
const datoramaAkita = require('./datorama-akita-bb801820.js');
|
|
6
|
+
|
|
7
|
+
class UserApi {
|
|
8
|
+
async getUserProfile() {
|
|
9
|
+
return (await BackendApiClient.instance.url(`users/self`).get().json());
|
|
10
|
+
}
|
|
11
|
+
async getBasicProfileByEmail(email) {
|
|
12
|
+
const res = await BackendApiClient.instance
|
|
13
|
+
.url(`users?email=${email}`)
|
|
14
|
+
.get()
|
|
15
|
+
.notFound(() => null)
|
|
16
|
+
.json();
|
|
17
|
+
return index.fromNullable(res);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const userApi = new UserApi();
|
|
21
|
+
|
|
22
|
+
class UserProfileDto {
|
|
23
|
+
static toDomain(dto) {
|
|
24
|
+
return {
|
|
25
|
+
basicProfile: dto.basicProfile,
|
|
26
|
+
benefitsProfile: dto.benefitsProfile
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(n){return !!n&&!!n[Q]}function r(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var t=Object.getPrototypeOf(n);if(null===t)return !0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n);})):n.forEach((function(r,e){return t(e,r,n)}));}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r;}function c(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),t)}function d(n,e){return void 0===e&&(e=!1),y(n)||t(n)||!r(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,t){return d(t,!0)}),!0),n)}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(t){var r=rn[t];return r||n(18,t),r}function _(){return U}function j(n,t){t&&(b("Patches"),n.u=[],n.s=[],n.v=t);}function O(n){g(n),n.p.forEach(S),n.p=null;}function g(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.O=!0;}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b("ES5").S(e,t,o),o?(i[Q].P&&(O(e),n(4)),r(t)&&(t=M(e,t),e.l||x(e,t)),e.u&&b("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(n,t,r){if(y(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A(n,e,o,t,i,r)})),x(n,o,!1),r&&n.u&&b("Patches").R(e,r,n.u,n.s);}return e.o}function A(e,i,o,a,c,s){if(t(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!t(v))return;e.m=!1;}if(r(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d(t,r);}function z(n,t){var r=n[Q];return (r?p(r):n)[t]}function I(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function R(n,t,r){var e=s(t)?b("MapSet").N(t,r):v(t)?b("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b("ES5").J(t,r);return (r?r.A:_()).p.push(e),e}function D(e){return t(e)||n(22,e),function n(t){if(!r(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(t,c),u.I=!1;}else e=F(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f(e,t,n(r));})),3===c?new Set(e):e}(e)}function F(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r);})),t},rn={},en={get:function(n,t){if(t===Q)return n;var e=p(n);if(!u(e,t))return function(n,t,r){var e,i=I(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r(i)?i:i===z(n.t,t)?(E(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,t,r){var e=I(p(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z(p(n),t),o=null==i?void 0:i[Q];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c(r,i)&&(void 0!==r||u(n.t,t)))return !0;E(n),k(n);}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z(n.t,t)||t in n.t?(n.D[t]=!1,E(n),k(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)};})),on.deleteProperty=function(t,r){return en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return (r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),r(t)){var c=w(e),s=R(e,t,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O(c):g(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H)return;return void 0===f&&(f=t),e.F&&d(f,!0),f}n(21,t);},this.produceWithPatches=function(n,t){return "function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t;})),r,i];var r,i;},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){r(e)||n(8),t(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(t,r){var e=t&&t[Q];var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(t){t&&!B&&n(20),this.g=t;},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b("Patches").$;return t(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
|
|
32
|
+
|
|
33
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
34
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
35
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38
|
+
};
|
|
39
|
+
function createInitialState() {
|
|
40
|
+
return {
|
|
41
|
+
user: index.none
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
let BenefitsAppStore = class BenefitsAppStore extends datoramaAkita.Store {
|
|
45
|
+
constructor() {
|
|
46
|
+
super(createInitialState());
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
BenefitsAppStore = __decorate([
|
|
50
|
+
datoramaAkita.StoreConfig({ name: 'benefits-app', resettable: true, producerFn: fn })
|
|
51
|
+
], BenefitsAppStore);
|
|
52
|
+
const benefitsAppStore = new BenefitsAppStore();
|
|
53
|
+
|
|
54
|
+
class BenefitsAppService {
|
|
55
|
+
static set profileId(profileId) {
|
|
56
|
+
this._profileId = index.fromNullable(profileId);
|
|
57
|
+
}
|
|
58
|
+
static get profileId() {
|
|
59
|
+
if (index.isNone(this._profileId)) {
|
|
60
|
+
throw Error(`ProfileId is missing.`);
|
|
61
|
+
}
|
|
62
|
+
return this._profileId.value;
|
|
63
|
+
}
|
|
64
|
+
static set accountId(accountId) {
|
|
65
|
+
this._accountId = index.fromNullable(accountId);
|
|
66
|
+
}
|
|
67
|
+
static get accountIdOrDefault() {
|
|
68
|
+
return index$1.getOrDefault(this._accountId, '');
|
|
69
|
+
}
|
|
70
|
+
async loadSignedInUserProfileAsync() {
|
|
71
|
+
const user = UserProfileDto.toDomain(await userApi.getUserProfile());
|
|
72
|
+
BenefitsAppService.accountId = user.basicProfile.accountId;
|
|
73
|
+
benefitsAppStore.update((state) => {
|
|
74
|
+
state.user = index.fromNullable(user);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
static get partnerIdOrDefault() {
|
|
78
|
+
return index$1.getOrDefault(this._partnerId, '');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
BenefitsAppService._profileId = index.none;
|
|
82
|
+
BenefitsAppService._accountId = index.none;
|
|
83
|
+
BenefitsAppService._partnerId = index.none;
|
|
84
|
+
const benefitsAppService = new BenefitsAppService();
|
|
85
|
+
|
|
86
|
+
class BackendApiClient {
|
|
87
|
+
static setParameters(apiBaseUrl, jwt) {
|
|
88
|
+
this._apiBaseUrl = apiBaseUrl;
|
|
89
|
+
this._jwt = jwt;
|
|
90
|
+
}
|
|
91
|
+
static get instance() {
|
|
92
|
+
return index.factory(this._apiBaseUrl).headers({
|
|
93
|
+
Authorization: `Bearer ${this._jwt}`,
|
|
94
|
+
'X-PROFILE-ID': BenefitsAppService.profileId,
|
|
95
|
+
'X-ACCOUNT-ID': BenefitsAppService.accountIdOrDefault,
|
|
96
|
+
'X-PARTNER-ID': BenefitsAppService.partnerIdOrDefault
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
exports.BackendApiClient = BackendApiClient;
|
|
102
|
+
exports.BenefitsAppService = BenefitsAppService;
|
|
103
|
+
exports.UserProfileDto = UserProfileDto;
|
|
104
|
+
exports.benefitsAppService = benefitsAppService;
|
|
105
|
+
exports.benefitsAppStore = benefitsAppStore;
|
|
106
|
+
exports.fn = fn;
|
|
107
|
+
exports.userApi = userApi;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const datoramaAkita = require('./datorama-akita-
|
|
3
|
+
const datoramaAkita = require('./datorama-akita-bb801820.js');
|
|
4
4
|
|
|
5
5
|
function appGlobalScript () {
|
|
6
6
|
datoramaAkita.persistState({ storage: window.sessionStorage, key: "cars-calculator" });
|
package/dist/lib/cjs/{authentication.service-11c30071.js → authentication.service-12f9ead3.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const Option = require('./Option-98dab0b8.js');
|
|
4
4
|
const index = require('./index-4f00f593.js');
|
|
5
|
-
const datoramaAkita = require('./datorama-akita-
|
|
5
|
+
const datoramaAkita = require('./datorama-akita-bb801820.js');
|
|
6
6
|
|
|
7
7
|
class Lazy {
|
|
8
8
|
constructor(factory) {
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-d685a739.js');
|
|
6
6
|
const Option = require('./Option-98dab0b8.js');
|
|
7
7
|
const iframe = require('./iframe-a50670af.js');
|
|
8
|
-
const authentication_service = require('./authentication.service-
|
|
9
|
-
const datoramaAkita = require('./datorama-akita-
|
|
8
|
+
const authentication_service = require('./authentication.service-12f9ead3.js');
|
|
9
|
+
const datoramaAkita = require('./datorama-akita-bb801820.js');
|
|
10
10
|
require('./index-4f00f593.js');
|
|
11
11
|
require('./scheduleArray-0ba3d6f8.js');
|
|
12
12
|
require('./delay-e91dba76.js');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const datoramaAkita = require('./datorama-akita-
|
|
3
|
+
const datoramaAkita = require('./datorama-akita-bb801820.js');
|
|
4
4
|
const Option = require('./Option-98dab0b8.js');
|
|
5
5
|
const index = require('./index-4f00f593.js');
|
|
6
|
-
const apiClient = require('./api-client-
|
|
6
|
+
const apiClient = require('./api-client-00edc9b6.js');
|
|
7
7
|
|
|
8
8
|
class BenefitsAppQuery extends datoramaAkita.Query {
|
|
9
9
|
constructor(store) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-d685a739.js');
|
|
4
|
-
const appGlobals = require('./app-globals-
|
|
5
|
-
require('./datorama-akita-
|
|
4
|
+
const appGlobals = require('./app-globals-dec360ac.js');
|
|
5
|
+
require('./datorama-akita-bb801820.js');
|
|
6
6
|
require('./scheduleArray-0ba3d6f8.js');
|
|
7
7
|
require('./delay-e91dba76.js');
|
|
8
8
|
require('./filter-c38164e6.js');
|
|
@@ -676,11 +676,6 @@ function coerceArray(value) {
|
|
|
676
676
|
|
|
677
677
|
const DEFAULT_ID_KEY = 'id';
|
|
678
678
|
|
|
679
|
-
// @internal
|
|
680
|
-
function isFunction(value) {
|
|
681
|
-
return typeof value === 'function';
|
|
682
|
-
}
|
|
683
|
-
|
|
684
679
|
// @internal
|
|
685
680
|
function isEmpty(arr) {
|
|
686
681
|
if (isArray(arr)) {
|
|
@@ -689,6 +684,11 @@ function isEmpty(arr) {
|
|
|
689
684
|
return false;
|
|
690
685
|
}
|
|
691
686
|
|
|
687
|
+
// @internal
|
|
688
|
+
function isFunction(value) {
|
|
689
|
+
return typeof value === 'function';
|
|
690
|
+
}
|
|
691
|
+
|
|
692
692
|
// @internal
|
|
693
693
|
function isObject(value) {
|
|
694
694
|
const type = typeof value;
|
|
@@ -1241,6 +1241,16 @@ class Store {
|
|
|
1241
1241
|
akitaPreUpdate(_, nextState) {
|
|
1242
1242
|
return nextState;
|
|
1243
1243
|
}
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @deprecated
|
|
1247
|
+
*
|
|
1248
|
+
* This method will be removed in v7
|
|
1249
|
+
*
|
|
1250
|
+
* Akita isn't coupled to Angular and should not use Angular
|
|
1251
|
+
* specific code
|
|
1252
|
+
*
|
|
1253
|
+
*/
|
|
1244
1254
|
ngOnDestroy() {
|
|
1245
1255
|
this.destroy();
|
|
1246
1256
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d685a739.js');
|
|
6
|
-
const appGlobals = require('./app-globals-
|
|
7
|
-
require('./datorama-akita-
|
|
6
|
+
const appGlobals = require('./app-globals-dec360ac.js');
|
|
7
|
+
require('./datorama-akita-bb801820.js');
|
|
8
8
|
require('./scheduleArray-0ba3d6f8.js');
|
|
9
9
|
require('./delay-e91dba76.js');
|
|
10
10
|
require('./filter-c38164e6.js');
|
package/dist/lib/cjs/{manage-benefits.service-04883c9b.js → manage-benefits.service-f45b4602.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const datoramaAkita = require('./datorama-akita-
|
|
3
|
+
const datoramaAkita = require('./datorama-akita-bb801820.js');
|
|
4
4
|
const Option = require('./Option-98dab0b8.js');
|
|
5
5
|
const index = require('./index-4f00f593.js');
|
|
6
|
-
const apiClient = require('./api-client-
|
|
6
|
+
const apiClient = require('./api-client-00edc9b6.js');
|
|
7
7
|
const promise = require('./promise-f77cab90.js');
|
|
8
|
-
const benefits_api = require('./benefits.api-
|
|
8
|
+
const benefits_api = require('./benefits.api-a4bd9804.js');
|
|
9
9
|
const index$1 = require('./index-889ce6c6.js');
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/lib/cjs/{role-management.service-120cb99a.js → role-management.service-2109723c.js}
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const index = require('./index-4f00f593.js');
|
|
4
4
|
const index$1 = require('./index-889ce6c6.js');
|
|
5
5
|
const promise = require('./promise-f77cab90.js');
|
|
6
|
-
const apiClient = require('./api-client-
|
|
7
|
-
const datoramaAkita = require('./datorama-akita-
|
|
6
|
+
const apiClient = require('./api-client-00edc9b6.js');
|
|
7
|
+
const datoramaAkita = require('./datorama-akita-bb801820.js');
|
|
8
8
|
|
|
9
9
|
class RoleManagementApi {
|
|
10
10
|
async getEditorProfiles() {
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getAssetPath, H as Host, c as createEven
|
|
|
2
2
|
import { f as factory, n as none, s as some, a as fold, i as isNone, b as fromNullable, p as pipe, g as getOrElse, c as isSome, d as getOrElseW } from './index-6869168f.js';
|
|
3
3
|
import { g as getOrDefault, a as getOrError, t as toSelectInputOptionsArray } from './index-8f0ba0c8.js';
|
|
4
4
|
import { O as Option, _ as _function } from './Option-53ef163a.js';
|
|
5
|
-
import { S as StoreConfig, a as Store, Q as Query } from './datorama-akita-
|
|
5
|
+
import { S as StoreConfig, a as Store, Q as Query } from './datorama-akita-d2413fd0.js';
|
|
6
6
|
import { d as delay } from './delay-d08c267f.js';
|
|
7
7
|
import './scheduleArray-b9669898.js';
|
|
8
8
|
import './filter-aeb65cac.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-67f7ec52.js';
|
|
2
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
3
|
-
import './api-client-
|
|
2
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-8d44e7ac.js';
|
|
3
|
+
import './api-client-a68152b8.js';
|
|
4
4
|
import './index-6869168f.js';
|
|
5
5
|
import './index-8f0ba0c8.js';
|
|
6
|
-
import './datorama-akita-
|
|
6
|
+
import './datorama-akita-d2413fd0.js';
|
|
7
7
|
import './scheduleArray-b9669898.js';
|
|
8
8
|
import './delay-d08c267f.js';
|
|
9
9
|
import './filter-aeb65cac.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-67f7ec52.js';
|
|
2
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
3
|
-
import './api-client-
|
|
2
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-8d44e7ac.js';
|
|
3
|
+
import './api-client-a68152b8.js';
|
|
4
4
|
import './index-6869168f.js';
|
|
5
5
|
import './index-8f0ba0c8.js';
|
|
6
|
-
import './datorama-akita-
|
|
6
|
+
import './datorama-akita-d2413fd0.js';
|
|
7
7
|
import './scheduleArray-b9669898.js';
|
|
8
8
|
import './delay-d08c267f.js';
|
|
9
9
|
import './filter-aeb65cac.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, h, c as createEvent, H as Host, d as getElement } from './index-67f7ec52.js';
|
|
2
2
|
import { O as Option, c as createCommonjsModule, _ as _function } from './Option-53ef163a.js';
|
|
3
|
-
import { e as editBenefitQuery, a as editBenefitService, B as BenefitCategories, m as manageBenefitsService, c as matchPath, n as matchesAreEqual } from './manage-benefits.service-
|
|
3
|
+
import { e as editBenefitQuery, a as editBenefitService, B as BenefitCategories, m as manageBenefitsService, c as matchPath, n as matchesAreEqual } from './manage-benefits.service-aca7df4c.js';
|
|
4
4
|
import { a as Subscription } from './scheduleArray-b9669898.js';
|
|
5
5
|
import { n as none, e as chain, h as toUndefined, b as fromNullable, i as isNone, m as map, g as getOrElse, c as isSome } from './index-6869168f.js';
|
|
6
|
-
import { f as fn } from './api-client-
|
|
6
|
+
import { f as fn } from './api-client-a68152b8.js';
|
|
7
7
|
import { a as getOrError } from './index-8f0ba0c8.js';
|
|
8
|
-
import { b as benefitsAppQuery } from './benefits-app.query-
|
|
9
|
-
import { r as roleManagementStore, a as roleManagementService, b as roleManagementQuery } from './role-management.service-
|
|
8
|
+
import { b as benefitsAppQuery } from './benefits-app.query-bfee691f.js';
|
|
9
|
+
import { r as roleManagementStore, a as roleManagementService, b as roleManagementQuery } from './role-management.service-a7592363.js';
|
|
10
10
|
import { A as ActiveRouter } from './active-router-2beca2cb.js';
|
|
11
|
-
import './datorama-akita-
|
|
11
|
+
import './datorama-akita-d2413fd0.js';
|
|
12
12
|
import './delay-d08c267f.js';
|
|
13
13
|
import './filter-aeb65cac.js';
|
|
14
14
|
import './promise-b835604e.js';
|
|
15
|
-
import './benefits.api-
|
|
15
|
+
import './benefits.api-806ca0bc.js';
|
|
16
16
|
|
|
17
17
|
const benefitUrlCss = "ap-ben-benefit-url .blur-backdrop{opacity:0;position:fixed;top:0;left:0;width:100%;height:100%}";
|
|
18
18
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getAssetPath } from './index-67f7ec52.js';
|
|
2
2
|
import { O as Option } from './Option-53ef163a.js';
|
|
3
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
4
|
-
import './api-client-
|
|
3
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-8d44e7ac.js';
|
|
4
|
+
import './api-client-a68152b8.js';
|
|
5
5
|
import './index-6869168f.js';
|
|
6
6
|
import './index-8f0ba0c8.js';
|
|
7
|
-
import './datorama-akita-
|
|
7
|
+
import './datorama-akita-d2413fd0.js';
|
|
8
8
|
import './scheduleArray-b9669898.js';
|
|
9
9
|
import './delay-d08c267f.js';
|
|
10
10
|
import './filter-aeb65cac.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-67f7ec52.js';
|
|
2
2
|
import { b as fromNullable, n as none, c as isSome, s as some } from './index-6869168f.js';
|
|
3
|
-
import { b as benefitsApi } from './benefits.api-
|
|
4
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
5
|
-
import './api-client-
|
|
3
|
+
import { b as benefitsApi } from './benefits.api-806ca0bc.js';
|
|
4
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-8d44e7ac.js';
|
|
5
|
+
import './api-client-a68152b8.js';
|
|
6
6
|
import './index-8f0ba0c8.js';
|
|
7
|
-
import './datorama-akita-
|
|
7
|
+
import './datorama-akita-d2413fd0.js';
|
|
8
8
|
import './scheduleArray-b9669898.js';
|
|
9
9
|
import './delay-d08c267f.js';
|
|
10
10
|
import './filter-aeb65cac.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-67f7ec52.js';
|
|
2
2
|
import { i as isNone } from './index-6869168f.js';
|
|
3
|
-
import { a as roleManagementService, b as roleManagementQuery } from './role-management.service-
|
|
3
|
+
import { a as roleManagementService, b as roleManagementQuery } from './role-management.service-a7592363.js';
|
|
4
4
|
import { a as Subscription } from './scheduleArray-b9669898.js';
|
|
5
5
|
import './index-8f0ba0c8.js';
|
|
6
6
|
import './promise-b835604e.js';
|
|
7
|
-
import './api-client-
|
|
8
|
-
import './datorama-akita-
|
|
7
|
+
import './api-client-a68152b8.js';
|
|
8
|
+
import './datorama-akita-d2413fd0.js';
|
|
9
9
|
import './delay-d08c267f.js';
|
|
10
10
|
import './filter-aeb65cac.js';
|
|
11
11
|
|
|
@@ -2,17 +2,17 @@ import { r as registerInstance, h, H as Host, d as getElement, e as getContext }
|
|
|
2
2
|
import { n as none, c as isSome } from './index-6869168f.js';
|
|
3
3
|
import { a as getOrError } from './index-8f0ba0c8.js';
|
|
4
4
|
import { n as navigationService, M as ManagePageRouteName, A as AddBenefitPageRouteName, E as EditBenefitPageRouteName } from './navigation.service-948825b9.js';
|
|
5
|
-
import { e as editBenefitQuery, a as editBenefitService, m as manageBenefitsService, b as manageBenefitsQuery, c as matchPath, s as stripTrailingSlash, d as addLeadingSlash, f as createLocation, g as createKey, h as hasBasename, i as stripBasename, j as createPath, k as stripLeadingSlash, l as locationsAreEqual } from './manage-benefits.service-
|
|
5
|
+
import { e as editBenefitQuery, a as editBenefitService, m as manageBenefitsService, b as manageBenefitsQuery, c as matchPath, s as stripTrailingSlash, d as addLeadingSlash, f as createLocation, g as createKey, h as hasBasename, i as stripBasename, j as createPath, k as stripLeadingSlash, l as locationsAreEqual } from './manage-benefits.service-aca7df4c.js';
|
|
6
6
|
import { a as Subscription } from './scheduleArray-b9669898.js';
|
|
7
7
|
import { A as ActiveRouter } from './active-router-2beca2cb.js';
|
|
8
8
|
import './Option-53ef163a.js';
|
|
9
9
|
import './iframe-d1a2bbb3.js';
|
|
10
|
-
import './datorama-akita-
|
|
10
|
+
import './datorama-akita-d2413fd0.js';
|
|
11
11
|
import './delay-d08c267f.js';
|
|
12
12
|
import './filter-aeb65cac.js';
|
|
13
|
-
import './api-client-
|
|
13
|
+
import './api-client-a68152b8.js';
|
|
14
14
|
import './promise-b835604e.js';
|
|
15
|
-
import './benefits.api-
|
|
15
|
+
import './benefits.api-806ca0bc.js';
|
|
16
16
|
|
|
17
17
|
const EditBenefitPage = class {
|
|
18
18
|
constructor(hostRef) {
|
|
@@ -3,13 +3,13 @@ import { A as ActiveRouter } from './active-router-2beca2cb.js';
|
|
|
3
3
|
import { O as Option } from './Option-53ef163a.js';
|
|
4
4
|
import { a as getOrError } from './index-8f0ba0c8.js';
|
|
5
5
|
import { l as library } from './index.es-f2237e9d.js';
|
|
6
|
-
import { B as BackendApiClient, b as benefitsAppService, a as BenefitsAppService } from './api-client-
|
|
6
|
+
import { B as BackendApiClient, b as benefitsAppService, a as BenefitsAppService } from './api-client-a68152b8.js';
|
|
7
7
|
import { n as navigationService, r as renderManagePageRoutes } from './navigation.service-948825b9.js';
|
|
8
|
-
import { b as benefitsEventTrackingService } from './event-tracking.service-
|
|
9
|
-
import { b as benefitsAppQuery } from './benefits-app.query-
|
|
8
|
+
import { b as benefitsEventTrackingService } from './event-tracking.service-8d44e7ac.js';
|
|
9
|
+
import { b as benefitsAppQuery } from './benefits-app.query-bfee691f.js';
|
|
10
10
|
import { a as Subscription } from './scheduleArray-b9669898.js';
|
|
11
11
|
import './index-6869168f.js';
|
|
12
|
-
import './datorama-akita-
|
|
12
|
+
import './datorama-akita-d2413fd0.js';
|
|
13
13
|
import './delay-d08c267f.js';
|
|
14
14
|
import './filter-aeb65cac.js';
|
|
15
15
|
import './iframe-d1a2bbb3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-67f7ec52.js';
|
|
2
|
-
import { o as oidcService, a as appConfigurationService } from './authentication.service-
|
|
2
|
+
import { o as oidcService, a as appConfigurationService } from './authentication.service-905f97c2.js';
|
|
3
3
|
import './Option-53ef163a.js';
|
|
4
4
|
import './index-6869168f.js';
|
|
5
|
-
import './datorama-akita-
|
|
5
|
+
import './datorama-akita-d2413fd0.js';
|
|
6
6
|
import './scheduleArray-b9669898.js';
|
|
7
7
|
import './delay-d08c267f.js';
|
|
8
8
|
import './filter-aeb65cac.js';
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { b as fromNullable, n as none, i as isNone, f as factory } from './index-6869168f.js';
|
|
2
|
+
import { g as getOrDefault } from './index-8f0ba0c8.js';
|
|
3
|
+
import { S as StoreConfig, a as Store } from './datorama-akita-d2413fd0.js';
|
|
4
|
+
|
|
5
|
+
class UserApi {
|
|
6
|
+
async getUserProfile() {
|
|
7
|
+
return (await BackendApiClient.instance.url(`users/self`).get().json());
|
|
8
|
+
}
|
|
9
|
+
async getBasicProfileByEmail(email) {
|
|
10
|
+
const res = await BackendApiClient.instance
|
|
11
|
+
.url(`users?email=${email}`)
|
|
12
|
+
.get()
|
|
13
|
+
.notFound(() => null)
|
|
14
|
+
.json();
|
|
15
|
+
return fromNullable(res);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const userApi = new UserApi();
|
|
19
|
+
|
|
20
|
+
class UserProfileDto {
|
|
21
|
+
static toDomain(dto) {
|
|
22
|
+
return {
|
|
23
|
+
basicProfile: dto.basicProfile,
|
|
24
|
+
benefitsProfile: dto.benefitsProfile
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(n){return !!n&&!!n[Q]}function r(n){return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var t=Object.getPrototypeOf(n);if(null===t)return !0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n);})):n.forEach((function(r,e){return t(e,r,n)}));}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r;}function c(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),t)}function d(n,e){return void 0===e&&(e=!1),y(n)||t(n)||!r(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,t){return d(t,!0)}),!0),n)}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(t){var r=rn[t];return r||n(18,t),r}function _(){return U}function j(n,t){t&&(b("Patches"),n.u=[],n.s=[],n.v=t);}function O(n){g(n),n.p.forEach(S),n.p=null;}function g(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.O=!0;}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b("ES5").S(e,t,o),o?(i[Q].P&&(O(e),n(4)),r(t)&&(t=M(e,t),e.l||x(e,t)),e.u&&b("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(n,t,r){if(y(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A(n,e,o,t,i,r)})),x(n,o,!1),r&&n.u&&b("Patches").R(e,r,n.u,n.s);}return e.o}function A(e,i,o,a,c,s){if(t(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!t(v))return;e.m=!1;}if(r(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d(t,r);}function z(n,t){var r=n[Q];return (r?p(r):n)[t]}function I(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function R(n,t,r){var e=s(t)?b("MapSet").N(t,r):v(t)?b("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b("ES5").J(t,r);return (r?r.A:_()).p.push(e),e}function D(e){return t(e)||n(22,e),function n(t){if(!r(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(t,c),u.I=!1;}else e=F(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f(e,t,n(r));})),3===c?new Set(e):e}(e)}function F(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r);})),t},rn={},en={get:function(n,t){if(t===Q)return n;var e=p(n);if(!u(e,t))return function(n,t,r){var e,i=I(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r(i)?i:i===z(n.t,t)?(E(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,t,r){var e=I(p(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z(p(n),t),o=null==i?void 0:i[Q];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c(r,i)&&(void 0!==r||u(n.t,t)))return !0;E(n),k(n);}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z(n.t,t)||t in n.t?(n.D[t]=!1,E(n),k(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)};})),on.deleteProperty=function(t,r){return en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return (r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),r(t)){var c=w(e),s=R(e,t,void 0),v=!0;try{f=i(s),v=!1;}finally{v?O(c):g(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H)return;return void 0===f&&(f=t),e.F&&d(f,!0),f}n(21,t);},this.produceWithPatches=function(n,t){return "function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t;})),r,i];var r,i;},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){r(e)||n(8),t(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(t,r){var e=t&&t[Q];var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n;},i.setUseProxies=function(t){t&&!B&&n(20),this.g=t;},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b("Patches").$;return t(n)?o(n,r):this.produce(n,(function(n){return o(n,r.slice(e+1))}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);
|
|
30
|
+
|
|
31
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
32
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
33
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
34
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
35
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
36
|
+
};
|
|
37
|
+
function createInitialState() {
|
|
38
|
+
return {
|
|
39
|
+
user: none
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
let BenefitsAppStore = class BenefitsAppStore extends Store {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(createInitialState());
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
BenefitsAppStore = __decorate([
|
|
48
|
+
StoreConfig({ name: 'benefits-app', resettable: true, producerFn: fn })
|
|
49
|
+
], BenefitsAppStore);
|
|
50
|
+
const benefitsAppStore = new BenefitsAppStore();
|
|
51
|
+
|
|
52
|
+
class BenefitsAppService {
|
|
53
|
+
static set profileId(profileId) {
|
|
54
|
+
this._profileId = fromNullable(profileId);
|
|
55
|
+
}
|
|
56
|
+
static get profileId() {
|
|
57
|
+
if (isNone(this._profileId)) {
|
|
58
|
+
throw Error(`ProfileId is missing.`);
|
|
59
|
+
}
|
|
60
|
+
return this._profileId.value;
|
|
61
|
+
}
|
|
62
|
+
static set accountId(accountId) {
|
|
63
|
+
this._accountId = fromNullable(accountId);
|
|
64
|
+
}
|
|
65
|
+
static get accountIdOrDefault() {
|
|
66
|
+
return getOrDefault(this._accountId, '');
|
|
67
|
+
}
|
|
68
|
+
async loadSignedInUserProfileAsync() {
|
|
69
|
+
const user = UserProfileDto.toDomain(await userApi.getUserProfile());
|
|
70
|
+
BenefitsAppService.accountId = user.basicProfile.accountId;
|
|
71
|
+
benefitsAppStore.update((state) => {
|
|
72
|
+
state.user = fromNullable(user);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
static get partnerIdOrDefault() {
|
|
76
|
+
return getOrDefault(this._partnerId, '');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
BenefitsAppService._profileId = none;
|
|
80
|
+
BenefitsAppService._accountId = none;
|
|
81
|
+
BenefitsAppService._partnerId = none;
|
|
82
|
+
const benefitsAppService = new BenefitsAppService();
|
|
83
|
+
|
|
84
|
+
class BackendApiClient {
|
|
85
|
+
static setParameters(apiBaseUrl, jwt) {
|
|
86
|
+
this._apiBaseUrl = apiBaseUrl;
|
|
87
|
+
this._jwt = jwt;
|
|
88
|
+
}
|
|
89
|
+
static get instance() {
|
|
90
|
+
return factory(this._apiBaseUrl).headers({
|
|
91
|
+
Authorization: `Bearer ${this._jwt}`,
|
|
92
|
+
'X-PROFILE-ID': BenefitsAppService.profileId,
|
|
93
|
+
'X-ACCOUNT-ID': BenefitsAppService.accountIdOrDefault,
|
|
94
|
+
'X-PARTNER-ID': BenefitsAppService.partnerIdOrDefault
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { BackendApiClient as B, UserProfileDto as U, BenefitsAppService as a, benefitsAppService as b, benefitsAppStore as c, fn as f, userApi as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as persistState, e as enableAkitaProdMode } from './datorama-akita-
|
|
1
|
+
import { p as persistState, e as enableAkitaProdMode } from './datorama-akita-d2413fd0.js';
|
|
2
2
|
|
|
3
3
|
function appGlobalScript () {
|
|
4
4
|
persistState({ storage: window.sessionStorage, key: "cars-calculator" });
|
package/dist/lib/esm/{authentication.service-05da74e1.js → authentication.service-905f97c2.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as Option, c as createCommonjsModule, a as commonjsGlobal, g as getDefaultExportFromCjs } from './Option-53ef163a.js';
|
|
2
2
|
import { n as none, c as isSome, s as some, f as factory, i as isNone } from './index-6869168f.js';
|
|
3
|
-
import { S as StoreConfig, a as Store, Q as Query } from './datorama-akita-
|
|
3
|
+
import { S as StoreConfig, a as Store, Q as Query } from './datorama-akita-d2413fd0.js';
|
|
4
4
|
|
|
5
5
|
class Lazy {
|
|
6
6
|
constructor(factory) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, r as registerInstance, H as Host } from './index-67f7ec52.js';
|
|
2
2
|
import { O as Option } from './Option-53ef163a.js';
|
|
3
3
|
import { i as iframe } from './iframe-d1a2bbb3.js';
|
|
4
|
-
import { O as OidcRoutes, a as appConfigurationService, s as sessionStore, A as AuthenticationState, o as oidcService, b as appConfigurationQuery } from './authentication.service-
|
|
5
|
-
import { Q as Query } from './datorama-akita-
|
|
4
|
+
import { O as OidcRoutes, a as appConfigurationService, s as sessionStore, A as AuthenticationState, o as oidcService, b as appConfigurationQuery } from './authentication.service-905f97c2.js';
|
|
5
|
+
import { Q as Query } from './datorama-akita-d2413fd0.js';
|
|
6
6
|
import './index-6869168f.js';
|
|
7
7
|
import './scheduleArray-b9669898.js';
|
|
8
8
|
import './delay-d08c267f.js';
|