@pontive/pontkit-core 1.52.0 → 1.54.0

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/index.mjs CHANGED
@@ -9054,7 +9054,7 @@ function vh(s, t = {}) {
9054
9054
  if (typeof DOMException < "u" && s instanceof DOMException && (s.name === "NotAllowedError" || s.name === "AbortError"))
9055
9055
  return { message: e("passkey_cancelled"), restartable: !1 };
9056
9056
  const { status: n, code: r, message: a } = xm(s);
9057
- return r === lt ? (Em(a), { message: c(lt), restartable: !1, unavailable: !0 }) : r === Ob ? { message: e("scope_not_allowed"), restartable: !1 } : n === Pb ? { message: i(r, a) ?? e("flow_ended"), restartable: !0 } : n === void 0 && (r === "NETWORK_ERROR" || r === "TIMEOUT") ? { message: e("connection_failed"), restartable: !1 } : n === 429 ? { message: e("too_many_attempts"), restartable: !1 } : n !== void 0 && n >= 500 ? { message: e("server_error"), restartable: !1 } : { message: i(r, a) ?? e("generic_error"), restartable: !1 };
9057
+ return r === lt ? (Em(a), { message: c(lt), restartable: !1, unavailable: !0, final: !0 }) : r === Ob ? { message: e("scope_not_allowed"), restartable: !1, final: !0 } : n === Pb ? { message: i(r, a) ?? e("flow_ended"), restartable: !0 } : n === void 0 && (r === "NETWORK_ERROR" || r === "TIMEOUT") ? { message: e("connection_failed"), restartable: !1 } : n === 429 ? { message: e("too_many_attempts"), restartable: !1 } : n !== void 0 && n >= 500 ? { message: e("server_error"), restartable: !1 } : { message: i(r, a) ?? e("generic_error"), restartable: !1 };
9058
9058
  }
9059
9059
  function Db(s, t) {
9060
9060
  var e;
@@ -9419,7 +9419,7 @@ const rp = 5e3, Ze = class Ze extends y {
9419
9419
  i != null && i.messages && this.receiveMessages(i.messages), typeof (i == null ? void 0 : i.render_spec) == "string" && (this.renderSpec = i.render_spec);
9420
9420
  } catch (e) {
9421
9421
  console.error(`[pont] <${this.localName}>: starting the flow failed:`, e), this.started = !1, this.renderSpec = "<pont-block></pont-block>";
9422
- const { message: i, unavailable: n } = vh(e, this.messages);
9422
+ const { message: i, final: n } = vh(e, this.messages);
9423
9423
  this.startError = { message: i, restartable: !n };
9424
9424
  } finally {
9425
9425
  this.starting = !1;
@@ -12971,10 +12971,12 @@ function Km(s, t, e) {
12971
12971
  return r === "invalid_scope" ? e && !Kn.some((a) => e.includes(a)) ? {
12972
12972
  message: c("billing_app_unavailable"),
12973
12973
  retry: !1,
12974
+ final: !0,
12974
12975
  hint: `${n} this app can't manage billing: it does not request the billing scopes. To enable the element, ${Ep}`
12975
12976
  } : {
12976
12977
  message: c("billing_app_unavailable"),
12977
12978
  retry: !1,
12979
+ final: !0,
12978
12980
  hint: `${n} the management token holds no billing scope. The app may not allow ${Kn.join(" or ")}, or the session was signed in before they were requested. ${Ep}`
12979
12981
  } : r === "invalid_target" || r === "INVALID_REQUEST" || s instanceof Q && s.code === "INVALID_REQUEST" ? {
12980
12982
  message: c("billing_app_unavailable"),
@@ -13465,7 +13467,7 @@ const Tp = "pont_checkout_session", el = ["country", "line1", "line2", "city", "
13465
13467
  i = void 0;
13466
13468
  }
13467
13469
  const n = Km(t, "pont-checkout", i);
13468
- n.hint && console.warn(n.hint), this.problem = { ...n, restart: e && !this.session }, this.phase = "problem";
13470
+ n.hint && console.warn(n.hint), this.problem = { ...n, restart: e && !this.session && !n.final }, this.phase = "problem";
13469
13471
  }
13470
13472
  async load(t = !1) {
13471
13473
  const e = ++this.loadSeq;