@alma/widgets 4.1.0 → 4.1.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.
package/dist/widgets.js CHANGED
@@ -5068,7 +5068,7 @@ const nl = {
5068
5068
  ),
5069
5069
  0
5070
5070
  ).toString().replace("-", "A"), ml = (e) => Date.now() - e >= 36e5;
5071
- var fl = { BUILD_VERSION: "v4.1.0" };
5071
+ var fl = { BUILD_VERSION: "v4.1.1" };
5072
5072
  const dl = () => ({
5073
5073
  setCache: (i, o) => {
5074
5074
  const s = Date.now();
@@ -5128,7 +5128,7 @@ const hl = (e, t) => e.eligible && t ? e.purchase_amount >= (t == null ? void 0
5128
5128
  }) : e.filter(
5129
5129
  (n) => !(n.installments_count === 1 && n.deferred_days === 0 && n.deferred_months === 0)
5130
5130
  );
5131
- var vl = { BUILD_VERSION: "v4.1.0" };
5131
+ var vl = { BUILD_VERSION: "v4.1.1" };
5132
5132
  const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
5133
5133
  var E, N;
5134
5134
  const [o, s] = Q([]), [l, u] = Q(ue.PENDING), { getCache: m, setCache: c, createKey: d, clearCache: p } = dl(), g = d({
@@ -6923,7 +6923,7 @@ const wc = "_openModalInfo_a4893_1", Nc = {
6923
6923
  const s = (l) => {
6924
6924
  l >= 0 && l < e.length && (o.current = !0, n(l));
6925
6925
  };
6926
- return /* @__PURE__ */ f.createElement("div", null, /* @__PURE__ */ f.createElement("h5", { id: "payment-plans-title", className: "sr-only" }, r.formatMessage({
6926
+ return /* @__PURE__ */ f.createElement("div", null, /* @__PURE__ */ f.createElement("div", { id: "payment-plans-title", className: "sr-only", role: "heading", "aria-level": 2 }, r.formatMessage({
6927
6927
  id: "accessibility.payment-plans.section-title",
6928
6928
  defaultMessage: "Options de paiement disponibles"
6929
6929
  })), /* @__PURE__ */ f.createElement(
@@ -7080,7 +7080,7 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7080
7080
  "aria-describedby": "payment-schedule-description",
7081
7081
  tabIndex: -1
7082
7082
  },
7083
- /* @__PURE__ */ f.createElement("h6", { id: "payment-schedule-title", className: "sr-only" }, /* @__PURE__ */ f.createElement(
7083
+ /* @__PURE__ */ f.createElement("div", { id: "payment-schedule-title", className: "sr-only", role: "heading", "aria-level": 2 }, /* @__PURE__ */ f.createElement(
7084
7084
  H,
7085
7085
  {
7086
7086
  id: "accessibility.payment-schedule-title",
@@ -7305,7 +7305,7 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7305
7305
  "aria-describedby": "payment-info-description",
7306
7306
  tabIndex: -1
7307
7307
  },
7308
- /* @__PURE__ */ f.createElement("h5", { id: "payment-info-title", className: "sr-only" }, /* @__PURE__ */ f.createElement(
7308
+ /* @__PURE__ */ f.createElement("div", { id: "payment-info-title", className: "sr-only", role: "heading", "aria-level": 2 }, /* @__PURE__ */ f.createElement(
7309
7309
  H,
7310
7310
  {
7311
7311
  id: "eligibility-modal.info-title",
@@ -7363,11 +7363,13 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7363
7363
  isSomePlanDeferred: e,
7364
7364
  isCurrentPlanP1X: t
7365
7365
  }) => /* @__PURE__ */ f.createElement(
7366
- "h5",
7366
+ "div",
7367
7367
  {
7368
7368
  id: "modal-title",
7369
7369
  className: R(cm.title, Z.title),
7370
- "data-testid": "modal-title-element"
7370
+ "data-testid": "modal-title-element",
7371
+ role: "heading",
7372
+ "aria-level": 1
7371
7373
  },
7372
7374
  e && /* @__PURE__ */ f.createElement(
7373
7375
  H,
@@ -7404,7 +7406,7 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7404
7406
  "aria-modal": "true",
7405
7407
  "aria-labelledby": "modal-title"
7406
7408
  },
7407
- /* @__PURE__ */ f.createElement("aside", { className: R([ut.block, ut.left, Z.leftSide]) }, /* @__PURE__ */ f.createElement(Ji, { isSomePlanDeferred: t, isCurrentPlanP1X: a }), /* @__PURE__ */ f.createElement(Ki, { id: "payment-info", isCurrentPlanP1X: a }), n && /* @__PURE__ */ f.createElement(Xi, { cards: n }), /* @__PURE__ */ f.createElement(aa, { className: ut.logo, width: "75" })),
7409
+ /* @__PURE__ */ f.createElement("div", { className: R([ut.block, ut.left, Z.leftSide]) }, /* @__PURE__ */ f.createElement(Ji, { isSomePlanDeferred: t, isCurrentPlanP1X: a }), /* @__PURE__ */ f.createElement(Ki, { id: "payment-info", isCurrentPlanP1X: a }), n && /* @__PURE__ */ f.createElement(Xi, { cards: n }), /* @__PURE__ */ f.createElement(aa, { className: ut.logo, width: "75" })),
7408
7410
  /* @__PURE__ */ f.createElement("div", { className: R(ut.block, Z.rightSide) }, e)
7409
7411
  ), gm = "_noEligibility_3lnq8_1", ym = "_loader_3lnq8_9", vm = "_scheduleArea_3lnq8_16", _m = "_verticalLine_3lnq8_20", $t = {
7410
7412
  noEligibility: gm,
@@ -7491,7 +7493,7 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7491
7493
  defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionné."
7492
7494
  }
7493
7495
  )),
7494
- a === ue.SUCCESS && u.length >= 1 && /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("section", { "aria-labelledby": "payment-plans-title" }, /* @__PURE__ */ f.createElement(
7496
+ a === ue.SUCCESS && u.length >= 1 && /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("div", { role: "region", "aria-labelledby": "payment-plans-title" }, /* @__PURE__ */ f.createElement(
7495
7497
  Dc,
7496
7498
  {
7497
7499
  id: "payment-plans",
@@ -7499,7 +7501,7 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7499
7501
  currentPlanIndex: i,
7500
7502
  setCurrentPlanIndex: o
7501
7503
  }
7502
- )), /* @__PURE__ */ f.createElement("section", { className: $t.scheduleArea, "aria-labelledby": "payment-schedule-title" }, /* @__PURE__ */ f.createElement("div", { className: $t.verticalLine }), /* @__PURE__ */ f.createElement(em, { id: "payment-schedule", currentPlan: m })))
7504
+ )), /* @__PURE__ */ f.createElement("div", { className: $t.scheduleArea, role: "region", "aria-labelledby": "payment-schedule-title" }, /* @__PURE__ */ f.createElement("div", { className: $t.verticalLine }), /* @__PURE__ */ f.createElement(em, { id: "payment-schedule", currentPlan: m })))
7503
7505
  )
7504
7506
  );
7505
7507
  }, Cm = ({
@@ -7731,12 +7733,13 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7731
7733
  "data-testid": "widget-container"
7732
7734
  },
7733
7735
  /* @__PURE__ */ f.createElement(
7734
- "section",
7736
+ "div",
7735
7737
  {
7738
+ role: "region",
7736
7739
  "aria-labelledby": "payment-plans-title",
7737
7740
  className: R(J.primaryContainer, Le.eligibilityLine)
7738
7741
  },
7739
- /* @__PURE__ */ f.createElement("h5", { id: "payment-plans-title", className: "sr-only" }, d.formatMessage({
7742
+ /* @__PURE__ */ f.createElement("div", { id: "payment-plans-title", className: "sr-only", role: "heading", "aria-level": 2 }, d.formatMessage({
7740
7743
  id: "accessibility.payment-plans.section-title",
7741
7744
  defaultMessage: "Options de paiement disponibles"
7742
7745
  })),
@@ -7827,7 +7830,7 @@ const wc = "_openModalInfo_a4893_1", Nc = {
7827
7830
  })
7828
7831
  )
7829
7832
  ),
7830
- /* @__PURE__ */ f.createElement("aside", { "aria-labelledby": "payment-info-title", className: J.infoContainer }, /* @__PURE__ */ f.createElement("h6", { id: "payment-info-title", className: "sr-only" }, d.formatMessage({
7833
+ /* @__PURE__ */ f.createElement("div", { role: "region", "aria-labelledby": "payment-info-title", className: J.infoContainer }, /* @__PURE__ */ f.createElement("div", { id: "payment-info-title", className: "sr-only", role: "heading", "aria-level": 2 }, d.formatMessage({
7831
7834
  id: "accessibility.payment-info.section-title",
7832
7835
  defaultMessage: "Informations sur le plan de paiement sélectionné"
7833
7836
  })), /* @__PURE__ */ f.createElement(