@lystech/core 3.0.90 → 3.0.91

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.
@@ -41715,6 +41715,10 @@ function gW({
41715
41715
  localStorage.setItem("currentSubscriptionEndpoint", (s == null ? void 0 : s.endpoint) || "");
41716
41716
  }, [s == null ? void 0 : s.endpoint]);
41717
41717
  const p = qt(async () => {
41718
+ if (typeof Notification < "u" && Notification.permission === "denied") {
41719
+ const y = "Les notifications sont bloquées pour ce site dans votre navigateur. Réactivez-les dans ses réglages (icône à gauche de l'adresse), puis réessayez.";
41720
+ throw h(y), new Error(y);
41721
+ }
41718
41722
  if (!r || !u) {
41719
41723
  const y = r ? "Les notifications sont temporairement indisponibles. Réessayez plus tard." : "Votre navigateur ne supporte pas les notifications.";
41720
41724
  throw h(y), new Error(y);
@@ -42995,14 +42999,14 @@ function ay(e) {
42995
42999
  }
42996
43000
  }
42997
43001
  function tU({ enableInstallAppButton: e, enablePushNotificationButton: t }) {
42998
- const { isProgressiveWebAppInstalled: n, canInstallProgressiveWebApp: r } = DA(), { isPushSupported: a, isSubscribed: i, isPushSubscriptionLoading: o } = _g(), [s, c] = Oe(() => ry("pwa", $W)), [u, d] = Oe(() => ry("push", eU)), f = !n && r && !s && e, h = !f && a && !o && !i && !u && t;
43002
+ const { isProgressiveWebAppInstalled: n, canInstallProgressiveWebApp: r, requiresManualInstall: a } = DA(), { isPushSupported: i, isSubscribed: o, isPushSubscriptionLoading: s } = _g(), [c, u] = Oe(() => ry("pwa", $W)), [d, f] = Oe(() => ry("push", eU)), h = !n && r && !c && !!e, v = i && !s && !o && !d && !!t, g = h && (a || !v), p = v && !g;
42999
43003
  return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
43000
43004
  /* @__PURE__ */ b.jsx(
43001
43005
  JW,
43002
43006
  {
43003
- visible: f,
43007
+ visible: g,
43004
43008
  onPopupClose: () => {
43005
- c(!0), ay("pwa");
43009
+ u(!0), ay("pwa");
43006
43010
  },
43007
43011
  knowMoreUrl: "/install-app",
43008
43012
  knowMoreText: "En savoir plus"
@@ -43011,9 +43015,9 @@ function tU({ enableInstallAppButton: e, enablePushNotificationButton: t }) {
43011
43015
  /* @__PURE__ */ b.jsx(
43012
43016
  _W,
43013
43017
  {
43014
- visible: h,
43018
+ visible: p,
43015
43019
  onPopupClose: () => {
43016
- d(!0), ay("push");
43020
+ f(!0), ay("push");
43017
43021
  },
43018
43022
  knowMoreUrl: "/install-app",
43019
43023
  knowMoreText: "En savoir plus"
@@ -43535,7 +43539,7 @@ const lh = {
43535
43539
  padding: 2,
43536
43540
  lineHeight: 0,
43537
43541
  flexShrink: 0
43538
- }, fU = "@lystech/core", hU = "lystechcorenpmpackage:last-version", mU = "3.0.90";
43542
+ }, fU = "@lystech/core", hU = "lystechcorenpmpackage:last-version", mU = "3.0.91";
43539
43543
  function vU(e = {}) {
43540
43544
  const {
43541
43545
  packageName: t = fU,