@myxtra/authentication-green 1.12.0 → 1.12.1

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.
@@ -1,4 +1,4 @@
1
- import { r as d, j as n, g as xt, u as H, a as Qe, P as Se, b as bt, E as wt } from "./index-7ce3748d.mjs";
1
+ import { r as d, j as n, g as xt, u as H, a as Qe, P as Se, b as bt, E as wt } from "./index-bea22842.mjs";
2
2
  class V {
3
3
  constructor() {
4
4
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -3195,39 +3195,41 @@ const Mr = () => {
3195
3195
  }, Te = (e) => e ? `+${e.countryCode} ${e.number}` : "", Ue = (e, t) => t == null ? void 0 : t.find((s) => s.type === e), Nr = (e) => {
3196
3196
  const t = new Date(e.dateOfBirth), s = Ue(Se.Mobile, e.phone), r = Ue(Se.Fixed, e.phone), i = Te(s) ?? Te(r) ?? "";
3197
3197
  return {
3198
- firstName: () => e.firstName,
3199
- lastName: () => e.lastName,
3200
- dob: () => t.getDate(),
3201
- mob: () => t.getMonth() + 1,
3202
- yob: () => t.getFullYear(),
3203
- gender: () => e.genderCode,
3204
- phone: () => i,
3205
- streetName: () => {
3206
- var a;
3207
- return (a = e.address) == null ? void 0 : a.streetName;
3208
- },
3209
- houseNr: () => {
3210
- var a;
3211
- return (a = e.address) == null ? void 0 : a.houseNumber;
3212
- },
3213
- box: () => {
3214
- var a;
3215
- return (a = e.address) == null ? void 0 : a.letterBoxName;
3216
- },
3217
- zip: () => {
3218
- var a;
3219
- return (a = e.address) == null ? void 0 : a.postalCode;
3220
- },
3221
- city: () => {
3222
- var a;
3223
- return (a = e.address) == null ? void 0 : a.locationName;
3224
- },
3225
- country: () => {
3226
- var a;
3227
- return (a = e.address) == null ? void 0 : a.countryCode;
3228
- },
3229
- email: () => e.email,
3230
- cbh: () => e.customerIdentifier
3198
+ user: {
3199
+ firstName: () => e.firstName,
3200
+ lastName: () => e.lastName,
3201
+ dob: () => t.getDate(),
3202
+ mob: () => t.getMonth() + 1,
3203
+ yob: () => t.getFullYear(),
3204
+ gender: () => e.genderCode,
3205
+ phone: () => i,
3206
+ streetName: () => {
3207
+ var a;
3208
+ return (a = e.address) == null ? void 0 : a.streetName;
3209
+ },
3210
+ houseNr: () => {
3211
+ var a;
3212
+ return (a = e.address) == null ? void 0 : a.houseNumber;
3213
+ },
3214
+ box: () => {
3215
+ var a;
3216
+ return (a = e.address) == null ? void 0 : a.letterBoxName;
3217
+ },
3218
+ zip: () => {
3219
+ var a;
3220
+ return (a = e.address) == null ? void 0 : a.postalCode;
3221
+ },
3222
+ city: () => {
3223
+ var a;
3224
+ return (a = e.address) == null ? void 0 : a.locationName;
3225
+ },
3226
+ country: () => {
3227
+ var a;
3228
+ return (a = e.address) == null ? void 0 : a.countryCode;
3229
+ },
3230
+ email: () => e.email,
3231
+ cbh: () => e.customerIdentifier
3232
+ }
3231
3233
  };
3232
3234
  }, yt = () => {
3233
3235
  const e = Mr(), t = me.get("profile"), s = !!t, [r, i] = d.useState(
@@ -8414,7 +8414,7 @@ class Xm extends HTMLElement {
8414
8414
  async connectedCallback() {
8415
8415
  const t = this.attachShadow({ mode: "open" });
8416
8416
  Gm(t);
8417
- const n = $c(t), i = (await import("./App-138b721c.mjs")).default;
8417
+ const n = $c(t), i = (await import("./App-f91d1da8.mjs")).default;
8418
8418
  n.render(
8419
8419
  /* @__PURE__ */ Mn.jsx(
8420
8420
  i,
@@ -1,4 +1,4 @@
1
- import { c as f } from "./index-7ce3748d.mjs";
1
+ import { c as f } from "./index-bea22842.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myxtra/authentication-green",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "main": "./dist/xtra-authentication.mjs",
5
5
  "publishConfig": {
6
6
  "access": "public",