@syncfy/authentication-widget 0.0.5 → 0.0.6

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.
@@ -8326,26 +8326,26 @@ const Jb = ga().noUnknown().shape({
8326
8326
  let Jm = {
8327
8327
  git: {
8328
8328
  dirty: !1,
8329
- raw: "v0.0.5-0-g405162e",
8330
- hash: "g405162e",
8329
+ raw: "v0.0.6-0-g7912f63",
8330
+ hash: "g7912f63",
8331
8331
  distance: 0,
8332
- tag: "v0.0.5",
8332
+ tag: "v0.0.6",
8333
8333
  semver: {
8334
8334
  options: {
8335
8335
  loose: !1,
8336
8336
  includePrerelease: !1
8337
8337
  },
8338
8338
  loose: !1,
8339
- raw: "v0.0.5",
8339
+ raw: "v0.0.6",
8340
8340
  major: 0,
8341
8341
  minor: 0,
8342
- patch: 5,
8342
+ patch: 6,
8343
8343
  prerelease: [],
8344
8344
  build: [],
8345
- version: "0.0.5"
8345
+ version: "0.0.6"
8346
8346
  },
8347
- suffix: "0-g405162e",
8348
- semverString: "0.0.5"
8347
+ suffix: "0-g7912f63",
8348
+ semverString: "0.0.6"
8349
8349
  }
8350
8350
  };
8351
8351
  function jc() {
@@ -69349,7 +69349,8 @@ const OTe = ["src"], RTe = { class: "el-form-item__error" }, PTe = /* @__PURE__
69349
69349
  Ue("label", {
69350
69350
  class: Te(s.$style["external-action-label"])
69351
69351
  }, ot(p.label), 3)
69352
- ])) : p.type !== "connection" && p.type !== "challenge" ? (me(), Qe(W(H3), {
69352
+ ])) : Xe("", !0),
69353
+ V(p.type) ? (me(), Qe(W(H3), {
69353
69354
  key: 2,
69354
69355
  label: p.label,
69355
69356
  prop: p.name,
@@ -69367,7 +69368,7 @@ const OTe = ["src"], RTe = { class: "el-form-item__error" }, PTe = /* @__PURE__
69367
69368
  alt: "",
69368
69369
  onLoad: (b) => N(g)
69369
69370
  }, null, 46, aAe)) : Xe("", !0),
69370
- V(p.type) ? (me(), Qe(W(Cm), {
69371
+ p.type === "text" || p.type === "password" ? (me(), Qe(W(Cm), {
69371
69372
  key: 1,
69372
69373
  ref_for: !0,
69373
69374
  ref: g === 0 && "firstInput",
@@ -71353,7 +71354,7 @@ class Pm extends Wo.EventEmitter {
71353
71354
  const r = this.findTwofaByType(
71354
71355
  "other_message_encrypted"
71355
71356
  );
71356
- this.connection === "eai_otp_GO3" && (this.bluetoothDevice = this.findTwofaByType("bluetooth_device").label === "S", this.bluetoothDevice && this.sendBbvaNetcashBluetoothTimeChallenge()), this.messageEncrypted && this.setBbvaNetcashBluetoothFakeToken(), r && this.getBbvaNetcashBluetoothFinalToken(r.label);
71357
+ this.connection === "eai_otp_GO3" && (this.bluetoothDevice = this.findTwofaByType("bluetooth_device").label === "S", this.bluetoothDevice ? this.sendBbvaNetcashBluetoothTimeChallenge() : this.setBbvaNetcashUsbFields()), this.messageEncrypted && this.setBbvaNetcashBluetoothFakeToken(), r && this.getBbvaNetcashBluetoothFinalToken(r.label);
71357
71358
  }
71358
71359
  sendBbvaNetcashBluetoothTimeChallenge() {
71359
71360
  const r = this.findTwofaByType("challenge").label, n = this.findTwofaByType("device").label, a = this.findTwofaByName("token").label;
@@ -71377,7 +71378,13 @@ class Pm extends Wo.EventEmitter {
71377
71378
  }
71378
71379
  sendBbvaNetcashUsbToken() {
71379
71380
  return aU(this.data.token, this.data.challenge).then((r) => this.http.post(this.config.address, {
71380
- twofa: { ...this.data, ...r }
71381
+ twofa: {
71382
+ ...this.data,
71383
+ ...r,
71384
+ bluetooth_device: "bluetooth_device",
71385
+ challenge: "challenge",
71386
+ connection: "connection"
71387
+ }
71381
71388
  }).then((n) => (this.emit("login-success"), n)).catch((n) => (this.loading = !1, this.emit("twofa-api-error"), Promise.reject(n)))).catch((r) => (this.loading = !1, this.emit("twofa-api-error"), Promise.reject(
71382
71389
  r.response ? { ...r, response: { ...r.response, status: 500 } } : r
71383
71390
  )));
@@ -71403,6 +71410,9 @@ class Pm extends Wo.EventEmitter {
71403
71410
  }
71404
71411
  );
71405
71412
  }
71413
+ setBbvaNetcashUsbFields() {
71414
+ this.config.twofa = [this.findTwofaByType("text")];
71415
+ }
71406
71416
  setRules(r, n) {
71407
71417
  const a = [];
71408
71418
  return a.push({