@mobielnl/elements 0.13.2 → 0.13.3
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.
|
@@ -16353,6 +16353,7 @@ const xK = {
|
|
|
16353
16353
|
retentionNo: "No",
|
|
16354
16354
|
modificationTitle: "Customer benefit",
|
|
16355
16355
|
modificationDescription: "Do you have a home internet provider and/or multiple (mobile) subscriptions at your address?",
|
|
16356
|
+
modificationFixedDescription: "Do you have multiple (mobile) subscriptions at your address?",
|
|
16356
16357
|
modificationYes: "Yes",
|
|
16357
16358
|
modificationNo: "No"
|
|
16358
16359
|
},
|
|
@@ -16680,6 +16681,7 @@ const xK = {
|
|
|
16680
16681
|
retentionNo: "Nee",
|
|
16681
16682
|
modificationTitle: "Klantvoordeel",
|
|
16682
16683
|
modificationDescription: "Heb je op je adres een thuis internet provider en/of meerdere (mobiele) abonnementen?",
|
|
16684
|
+
modificationFixedDescription: "Heb je op je adres meerdere (mobiele) abonnementen?",
|
|
16683
16685
|
modificationYes: "Ja",
|
|
16684
16686
|
modificationNo: "Nee"
|
|
16685
16687
|
},
|
|
@@ -25781,7 +25783,7 @@ function gh(e, t) {
|
|
|
25781
25783
|
})
|
|
25782
25784
|
};
|
|
25783
25785
|
}
|
|
25784
|
-
var Hq = () => import("./index-
|
|
25786
|
+
var Hq = () => import("./index-Hz7Cp6-d.js").then((e) => e.default), w$ = (e) => {
|
|
25785
25787
|
const { ripples: t = [], motionProps: r, color: n = "currentColor", style: o, onClear: i } = e;
|
|
25786
25788
|
return /* @__PURE__ */ x(or, { children: t.map((a) => {
|
|
25787
25789
|
const s = bz(0.01 * a.size, 0.2, a.size > 100 ? 0.75 : 0.5);
|
|
@@ -26590,7 +26592,7 @@ function SS() {
|
|
|
26590
26592
|
height: xi && xi?.height || window.innerHeight
|
|
26591
26593
|
};
|
|
26592
26594
|
}
|
|
26593
|
-
var PS = () => import("./index-
|
|
26595
|
+
var PS = () => import("./index-Hz7Cp6-d.js").then((e) => e.default), F$ = (e) => {
|
|
26594
26596
|
const { as: t, children: r, role: n = "dialog", ...o } = e, {
|
|
26595
26597
|
Component: i,
|
|
26596
26598
|
domRef: a,
|
|
@@ -35686,7 +35688,7 @@ function _J(e) {
|
|
|
35686
35688
|
getContentProps: kt
|
|
35687
35689
|
};
|
|
35688
35690
|
}
|
|
35689
|
-
var x_ = () => import("./index-
|
|
35691
|
+
var x_ = () => import("./index-Hz7Cp6-d.js").then((e) => e.default), w_ = ut(
|
|
35690
35692
|
({
|
|
35691
35693
|
children: e,
|
|
35692
35694
|
motionProps: t,
|
|
@@ -41447,7 +41449,7 @@ var qk = {
|
|
|
41447
41449
|
}
|
|
41448
41450
|
}
|
|
41449
41451
|
}
|
|
41450
|
-
}, Gk = () => import("./index-
|
|
41452
|
+
}, Gk = () => import("./index-Hz7Cp6-d.js").then((e) => e.default), lI = ut((e, t) => {
|
|
41451
41453
|
const {
|
|
41452
41454
|
Component: r,
|
|
41453
41455
|
HeadingComponent: n,
|
|
@@ -44786,7 +44788,7 @@ function Xte(e) {
|
|
|
44786
44788
|
getTooltipProps: Ee
|
|
44787
44789
|
};
|
|
44788
44790
|
}
|
|
44789
|
-
var Qte = () => import("./index-
|
|
44791
|
+
var Qte = () => import("./index-Hz7Cp6-d.js").then((e) => e.default), CI = ut((e, t) => {
|
|
44790
44792
|
var r;
|
|
44791
44793
|
const {
|
|
44792
44794
|
Component: n,
|
|
@@ -49404,8 +49406,9 @@ function hN(e, t, r, n) {
|
|
|
49404
49406
|
return `${s.name}${l}${i}`;
|
|
49405
49407
|
}
|
|
49406
49408
|
function mN(e, t) {
|
|
49407
|
-
if (e.keepCurrentMsisdn ===
|
|
49408
|
-
if (
|
|
49409
|
+
if (e.keepCurrentMsisdn === !1) return Ie.t("profile.newNumber");
|
|
49410
|
+
if (e.keepCurrentMsisdn === void 0 || !e.currentProviderSlug)
|
|
49411
|
+
return Ie.t("profile.askNumberPreservation");
|
|
49409
49412
|
const r = e.currentMsisdn ? `${e.currentMsisdn} • ` : "", n = t.find((o) => o.slug === e.currentProviderSlug)?.name || Ie.t("numberPreservation.otherProvider");
|
|
49410
49413
|
return `${r}${n}`;
|
|
49411
49414
|
}
|
|
@@ -51478,7 +51481,7 @@ function $E({
|
|
|
51478
51481
|
{
|
|
51479
51482
|
title: n("profile.numberPreservation"),
|
|
51480
51483
|
description: mN(o, s),
|
|
51481
|
-
selected: o.keepCurrentMsisdn
|
|
51484
|
+
selected: o.keepCurrentMsisdn === !1 || o.keepCurrentMsisdn && !!o.currentProviderSlug,
|
|
51482
51485
|
onClick: () => i("number-preservation"),
|
|
51483
51486
|
avatarName: "0 6",
|
|
51484
51487
|
classNames: a
|
|
@@ -63458,19 +63461,21 @@ function Lue() {
|
|
|
63458
63461
|
] });
|
|
63459
63462
|
}
|
|
63460
63463
|
function Bue() {
|
|
63461
|
-
const { t: e } = ht(), { profile: t, setProfile: r } = Kn(), { openModal: n } = cr(), {
|
|
63462
|
-
profileButton:
|
|
63463
|
-
promotionList:
|
|
63464
|
-
modificationSelector:
|
|
63465
|
-
} = zt(), { proposition:
|
|
63464
|
+
const { t: e } = ht(), { profile: t, setProfile: r } = Kn(), { openModal: n, isModalOpen: o } = cr(), {
|
|
63465
|
+
profileButton: i,
|
|
63466
|
+
promotionList: a,
|
|
63467
|
+
modificationSelector: s
|
|
63468
|
+
} = zt(), { proposition: l } = fs(), c = l?.productType === "fixed", d = Uh(c ? "fixed" : "mobile"), p = gN(
|
|
63466
63469
|
t.currentMobileProviders,
|
|
63467
|
-
|
|
63468
|
-
),
|
|
63469
|
-
(
|
|
63470
|
-
) :
|
|
63470
|
+
d.otherBlocks
|
|
63471
|
+
), h = c ? (t.currentMobileProviders || []).some(
|
|
63472
|
+
(b) => d.otherBlocks.some((C) => C.scope === b.scope)
|
|
63473
|
+
) : d.fixedBlocks.some((b) => b.scope === t.currentFixedProviderScope) || t.currentFixedProviderScope === "other", m = o("combi-deal"), [g, v] = me(h);
|
|
63471
63474
|
return Ce(() => {
|
|
63472
|
-
|
|
63473
|
-
}, [
|
|
63475
|
+
v(h);
|
|
63476
|
+
}, [h]), Ce(() => {
|
|
63477
|
+
m || h || v(!1);
|
|
63478
|
+
}, [m]), /* @__PURE__ */ U("div", { className: "flex flex-col gap-3", children: [
|
|
63474
63479
|
/* @__PURE__ */ x(
|
|
63475
63480
|
em,
|
|
63476
63481
|
{
|
|
@@ -63479,40 +63484,40 @@ function Bue() {
|
|
|
63479
63484
|
{ value: "yes", label: e("propositionSelector.modificationYes") },
|
|
63480
63485
|
{ value: "no", label: e("propositionSelector.modificationNo") }
|
|
63481
63486
|
],
|
|
63482
|
-
value:
|
|
63483
|
-
onValueChange: (
|
|
63484
|
-
|
|
63485
|
-
|
|
63486
|
-
...
|
|
63487
|
+
value: g ? "yes" : "no",
|
|
63488
|
+
onValueChange: (b) => {
|
|
63489
|
+
v(b === "yes"), b === "yes" && !h && n("combi-deal"), b === "no" && r({
|
|
63490
|
+
currentMobileProviders: [],
|
|
63491
|
+
...c ? {} : { currentFixedProviderScope: void 0 }
|
|
63487
63492
|
});
|
|
63488
63493
|
},
|
|
63489
|
-
classNames:
|
|
63494
|
+
classNames: s?.radioGroup
|
|
63490
63495
|
}
|
|
63491
63496
|
),
|
|
63492
|
-
|
|
63497
|
+
g && /* @__PURE__ */ x(
|
|
63493
63498
|
Hl,
|
|
63494
63499
|
{
|
|
63495
63500
|
title: e("profile.customerBenefit"),
|
|
63496
63501
|
description: hN(
|
|
63497
|
-
|
|
63498
|
-
|
|
63502
|
+
d.fixedBlocks.map((b) => ({ slug: b.scope.split("/")[1] ?? "", name: b.provider.name })),
|
|
63503
|
+
p,
|
|
63499
63504
|
t.currentFixedProviderScope,
|
|
63500
|
-
|
|
63505
|
+
c
|
|
63501
63506
|
),
|
|
63502
|
-
selected:
|
|
63507
|
+
selected: h,
|
|
63503
63508
|
onClick: () => n("combi-deal"),
|
|
63504
63509
|
Icon: Kc,
|
|
63505
|
-
classNames:
|
|
63510
|
+
classNames: i
|
|
63506
63511
|
}
|
|
63507
63512
|
),
|
|
63508
63513
|
/* @__PURE__ */ x(
|
|
63509
63514
|
qh,
|
|
63510
63515
|
{
|
|
63511
|
-
promotions:
|
|
63512
|
-
classNames:
|
|
63516
|
+
promotions: l?.modificationPromotions ?? [],
|
|
63517
|
+
classNames: a
|
|
63513
63518
|
}
|
|
63514
63519
|
),
|
|
63515
|
-
/* @__PURE__ */ x(wN, { isFixed:
|
|
63520
|
+
/* @__PURE__ */ x(wN, { isFixed: c })
|
|
63516
63521
|
] });
|
|
63517
63522
|
}
|
|
63518
63523
|
function O7(e) {
|
|
@@ -63900,8 +63905,10 @@ function Vue() {
|
|
|
63900
63905
|
);
|
|
63901
63906
|
}
|
|
63902
63907
|
function Wue() {
|
|
63903
|
-
const { t: e } = ht(), { profile: t, setProfile: r } = Kn(), { openModal: n } = cr(), { profileButton:
|
|
63904
|
-
return
|
|
63908
|
+
const { t: e } = ht(), { profile: t, setProfile: r } = Kn(), { openModal: n, isModalOpen: o } = cr(), { profileButton: i, retentionSelector: a } = zt(), s = Vx(), l = !!(t.currentMsisdn && t.currentProviderSlug), c = o("number-preservation");
|
|
63909
|
+
return Ce(() => {
|
|
63910
|
+
c || l || t.keepCurrentMsisdn && r({ keepCurrentMsisdn: !1 });
|
|
63911
|
+
}, [c]), /* @__PURE__ */ U("div", { className: "flex flex-col gap-3", children: [
|
|
63905
63912
|
/* @__PURE__ */ x(
|
|
63906
63913
|
em,
|
|
63907
63914
|
{
|
|
@@ -63911,21 +63918,21 @@ function Wue() {
|
|
|
63911
63918
|
{ value: "no", label: e("propositionSelector.retentionNo") }
|
|
63912
63919
|
],
|
|
63913
63920
|
value: t.keepCurrentMsisdn ? "yes" : "no",
|
|
63914
|
-
onValueChange: (
|
|
63915
|
-
r({
|
|
63921
|
+
onValueChange: (d) => {
|
|
63922
|
+
r({ keepCurrentMsisdn: d === "yes" }), d === "yes" && !l && n("number-preservation");
|
|
63916
63923
|
},
|
|
63917
|
-
classNames:
|
|
63924
|
+
classNames: a?.radioGroup
|
|
63918
63925
|
}
|
|
63919
63926
|
),
|
|
63920
|
-
|
|
63927
|
+
t.keepCurrentMsisdn && /* @__PURE__ */ x(
|
|
63921
63928
|
Hl,
|
|
63922
63929
|
{
|
|
63923
63930
|
title: e("profile.numberPreservation"),
|
|
63924
|
-
description: mN(t,
|
|
63925
|
-
selected:
|
|
63931
|
+
description: mN(t, s),
|
|
63932
|
+
selected: l,
|
|
63926
63933
|
onClick: () => n("number-preservation"),
|
|
63927
63934
|
avatarName: "0 6",
|
|
63928
|
-
classNames:
|
|
63935
|
+
classNames: i
|
|
63929
63936
|
}
|
|
63930
63937
|
),
|
|
63931
63938
|
/* @__PURE__ */ x(SN, {})
|
|
@@ -64087,7 +64094,7 @@ function Uue({
|
|
|
64087
64094
|
Mf,
|
|
64088
64095
|
{
|
|
64089
64096
|
title: a("propositionSelector.modificationTitle"),
|
|
64090
|
-
description: a("propositionSelector.modificationDescription"),
|
|
64097
|
+
description: a(M ? "propositionSelector.modificationFixedDescription" : "propositionSelector.modificationDescription"),
|
|
64091
64098
|
number: F(1),
|
|
64092
64099
|
classNames: h?.modificationSelector,
|
|
64093
64100
|
children: /* @__PURE__ */ x(Bue, {})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-
|
|
2
|
+
import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-DqXrmLgh.js";
|
|
3
3
|
import { Fragment as un } from "react";
|
|
4
4
|
var It = typeof globalThis < "u" && globalThis.process ? globalThis.process : { env: { NODE_ENV: "production" } };
|
|
5
5
|
const re = (...t) => t.reduce((e, n) => (i) => n(e(i))), nt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
package/dist/index.d.ts
CHANGED