@adstore/templates 2.7.6 → 2.7.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/templates.js.js +97 -97
- package/package.json +1 -1
- package/CHANGELOG.md +0 -436
package/dist/templates.js.js
CHANGED
@@ -125,7 +125,7 @@ function Yo(t, e, o) {
|
|
125
125
|
}
|
126
126
|
return n.__N || n.__;
|
127
127
|
}
|
128
|
-
function
|
128
|
+
function q(t, e) {
|
129
129
|
var o = It(vt++, 3);
|
130
130
|
!g.__s && ce(o.__H, e) && (o.__ = t, o.i = e, C.__H.__h.push(o));
|
131
131
|
}
|
@@ -133,7 +133,7 @@ function lo(t, e) {
|
|
133
133
|
var o = It(vt++, 4);
|
134
134
|
!g.__s && ce(o.__H, e) && (o.__ = t, o.i = e, C.__h.push(o));
|
135
135
|
}
|
136
|
-
function
|
136
|
+
function U(t) {
|
137
137
|
return mt = 5, Pt(function() {
|
138
138
|
return { current: t };
|
139
139
|
}, []);
|
@@ -1004,10 +1004,10 @@ t_(function(t, e, o) {
|
|
1004
1004
|
Yl(t, e, o);
|
1005
1005
|
});
|
1006
1006
|
const ht = (t, e, o) => Array.isArray(t) ? t.map((n, s) => {
|
1007
|
-
const r = [o, s].filter(
|
1007
|
+
const r = [o, s].filter(G).join(".");
|
1008
1008
|
return ht(e(s, n, r), e, r);
|
1009
1009
|
}) : typeof t == "object" && t ? Object.entries(t).reduce((n, [s, r]) => {
|
1010
|
-
const i = [o, s].filter(
|
1010
|
+
const i = [o, s].filter(G).join(".");
|
1011
1011
|
return n[s] = ht(e(s, r, i), e, i), n;
|
1012
1012
|
}, {}) : t, e_ = (t) => {
|
1013
1013
|
const e = document.getElementsByTagName("head")[0], o = document.createElement("link");
|
@@ -1063,7 +1063,7 @@ const ht = (t, e, o) => Array.isArray(t) ? t.map((n, s) => {
|
|
1063
1063
|
At(o, "markets", s);
|
1064
1064
|
}
|
1065
1065
|
return o;
|
1066
|
-
}, i_ = (t = 300, e) => new Promise((o) => setTimeout(() => o(e), t)), c_ = (t) => !t && t == null,
|
1066
|
+
}, i_ = (t = 300, e) => new Promise((o) => setTimeout(() => o(e), t)), c_ = (t) => !t && t == null, G = (t) => !c_(t), no = (t) => typeof t != "object" && typeof t != "function" || t === null, l_ = (t) => typeof t == "object" && !Array.isArray(t) && G(t), __ = (t) => t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, o) => (o ? "-" : "") + e.toLowerCase()), nt = (t, ...e) => e.reduce((o, n) => (o[n] = t[n], o), {});
|
1067
1067
|
function at(t, ...e) {
|
1068
1068
|
const o = h({}, t);
|
1069
1069
|
return e.forEach((n) => {
|
@@ -1180,10 +1180,10 @@ const Bo = Ko(), dt = ({
|
|
1180
1180
|
id: o
|
1181
1181
|
}, r))
|
1182
1182
|
}), e);
|
1183
|
-
}), E = () => en(Bo), V_ = (t = {}) => typeof t == "object" &&
|
1183
|
+
}), E = () => en(Bo), V_ = (t = {}) => typeof t == "object" && G(t) && Eo.every((e) => e in t), D_ = (t, e) => t && ht(t, (o, n) => {
|
1184
1184
|
if (V_(n)) {
|
1185
1185
|
const s = n[e];
|
1186
|
-
return s && "parent" in s &&
|
1186
|
+
return s && "parent" in s && G(s.parent) ? h(h({}, n[s.parent]), at(s, "parent")) : s;
|
1187
1187
|
}
|
1188
1188
|
return n;
|
1189
1189
|
}), ct = (t, e) => D_(t, e), ut = ({
|
@@ -1204,7 +1204,7 @@ const Bo = Ko(), dt = ({
|
|
1204
1204
|
const l = e.current.closest(`[data-${o}='${t}']`) || document.body;
|
1205
1205
|
l && (new ResizeObserver(() => i(l)).observe(l), i(l));
|
1206
1206
|
}, []), s;
|
1207
|
-
}, qt = (t, e) =>
|
1207
|
+
}, qt = (t, e) => G(t) && !(typeof t == "number" ? t.toString() : t).includes(e) ? `${t}${e}` : t, G_ = (t) => t.startsWith("px_"), F_ = (t) => t.startsWith("percent_"), W_ = (t, e) => {
|
1208
1208
|
let o = t, n = e;
|
1209
1209
|
return G_(o) && (o = o.replace("px_", ""), n = qt(e, "px")), F_(o) && (o = o.replace("percent_", ""), n = qt(e, "%")), {
|
1210
1210
|
key: o,
|
@@ -1218,12 +1218,12 @@ const Bo = Ko(), dt = ({
|
|
1218
1218
|
} = W_(o, n);
|
1219
1219
|
if (l_(r) && (e[s] = Vo(r)), e[s] = r, s === "hidden" && r)
|
1220
1220
|
return e.display = "none", e;
|
1221
|
-
if (s === "innerHTML" && (e.innerHTML =
|
1221
|
+
if (s === "innerHTML" && (e.innerHTML = G(r) ? `${r}` : ""), s === "innerText" && (e.innerText = G(r) ? `${r}` : ""), s === "children" && (e.children = typeof r == "string" ? G(r) ? `${r}` : "" : r), s.includes("borderWidth") && (e.borderStyle = "solid"), s === "corner" && (e.borderRadius = qt(r, "px")), s === "backgroundFit" && (e.backgroundSize = r, e.objectFit = r), s === "backgroundImage" && G(r) && (e.backgroundImage = `url(${r})`, e.backgroundRepeat = "no-repeat", e.imageSource = r), s === "backgroundColorOpacity" && G(e.backgroundColorOpacity) && G(e.backgroundColor)) {
|
1222
1222
|
const i = u_(e.backgroundColor);
|
1223
1223
|
i && (e.backgroundColor = p_(`rgb(${i.r}, ${i.g}, ${i.b})`, +e.backgroundColorOpacity / 100));
|
1224
1224
|
}
|
1225
1225
|
return s === "fontFamily" && /auto/i.test(r) && (e.fontFamily = q_), s === "isBold" && (e.fontWeight = r ? "bold" : "initial"), s === "isItalic" && (e.fontStyle = r ? "italic" : "initial"), s === "isThrough" && (e.textDecoration = r ? "line-through" : "initial"), e;
|
1226
|
-
}, t), z_ = (t) => typeof t == "object" && !Array.isArray(t) && "parent" in t, j = (t) =>
|
1226
|
+
}, t), z_ = (t) => typeof t == "object" && !Array.isArray(t) && "parent" in t, j = (t) => G(t) ? Object.entries(t).reduce((e, [o, n]) => (e[o] = z_(n) ? Vo(h({}, t[o])) : n, e), {}) : t, Z_ = (t) => t in document.createElement("div").style || t.startsWith("--"), K_ = (t) => `<span style="${t}">$1</span>`, O = (r) => {
|
1227
1227
|
var i = r, {
|
1228
1228
|
children: t,
|
1229
1229
|
typography: e,
|
@@ -1278,7 +1278,7 @@ const Bo = Ko(), dt = ({
|
|
1278
1278
|
wiggle: `${t.wiggle} 2s linear infinite`,
|
1279
1279
|
gradient: `${t.gradient} 3s ease infinite`
|
1280
1280
|
}), Do = (t, e) => {
|
1281
|
-
var d, p, u, f, m, v, b, B,
|
1281
|
+
var d, p, u, f, m, v, b, B, F, L, A, I, S;
|
1282
1282
|
const o = X_(e), n = j(t), s = (d = n == null ? void 0 : n.icon) == null ? void 0 : d.hasIcon, r = {
|
1283
1283
|
left: `${+(((p = t == null ? void 0 : t.container) == null ? void 0 : p.left) || 0) * -1 + 8}px`,
|
1284
1284
|
backgroundColor: (u = n == null ? void 0 : n.container) == null ? void 0 : u.backgroundColor,
|
@@ -1290,7 +1290,7 @@ const Bo = Ko(), dt = ({
|
|
1290
1290
|
borderLeftStyle: "solid"
|
1291
1291
|
}, i = {
|
1292
1292
|
left: (B = n == null ? void 0 : n.container) == null ? void 0 : B.left
|
1293
|
-
}, l = (((
|
1293
|
+
}, l = (((F = n == null ? void 0 : n.icon) == null ? void 0 : F.animations) || []).map(($) => o[$]).join(", "), _ = G((L = n == null ? void 0 : n.icon) == null ? void 0 : L.gradientColor) && ((A = n == null ? void 0 : n.icon) != null && A.animations.includes("gradient")) ? {
|
1294
1294
|
background: `linear-gradient(-90deg, ${(I = n.icon) == null ? void 0 : I.backgroundColor} 0%, ${(S = n == null ? void 0 : n.icon) == null ? void 0 : S.gradientColor} 100%) 0% 0% / 400% 400%`,
|
1295
1295
|
backgroundSize: "400% 400%"
|
1296
1296
|
} : n == null ? void 0 : n.icon, c = h(k(h({}, (n == null ? void 0 : n.icon) || {}), {
|
@@ -1309,7 +1309,7 @@ const Bo = Ko(), dt = ({
|
|
1309
1309
|
rel: "stylesheet",
|
1310
1310
|
href: `https://fonts.googleapis.com/css?family=${n}:300,400,500,700&display=swap`
|
1311
1311
|
})), [e]);
|
1312
|
-
|
1312
|
+
q(() => {
|
1313
1313
|
o.forEach(e_);
|
1314
1314
|
}, [o]);
|
1315
1315
|
}, Q = ["backgroundColor", "backgroundColorOpacity", "backgroundImage", "backgroundSize", "backgroundRepeat"], J_ = ["borderWidth", "borderColor", "borderStyle"], ro = ["imageSource", "objectFit"], zt = ["marginTop", "marginBottom", "marginLeft", "marginRight", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"], Q_ = ({
|
@@ -1320,19 +1320,19 @@ const Bo = Ko(), dt = ({
|
|
1320
1320
|
crossCloseEmitter: s,
|
1321
1321
|
disableAutoOpen: r
|
1322
1322
|
}) => {
|
1323
|
-
const [i, l] = rt(!1), _ =
|
1323
|
+
const [i, l] = rt(!1), _ = U(null), c = (u) => {
|
1324
1324
|
clearTimeout(_.current), _.current = null;
|
1325
1325
|
}, d = () => {
|
1326
1326
|
c(_.current), l((u) => (u && n && n(), !u));
|
1327
1327
|
}, p = () => {
|
1328
1328
|
d(), s && s();
|
1329
1329
|
};
|
1330
|
-
return
|
1330
|
+
return q(() => {
|
1331
1331
|
if (!r)
|
1332
1332
|
return _.current = setTimeout(() => {
|
1333
1333
|
l(!0), o && o();
|
1334
1334
|
}, t || 1e3), () => c(_.current);
|
1335
|
-
}, [t, r]),
|
1335
|
+
}, [t, r]), q(() => {
|
1336
1336
|
i && !_.current && e && e();
|
1337
1337
|
}, [i]), {
|
1338
1338
|
isOpen: i,
|
@@ -1344,7 +1344,7 @@ const Bo = Ko(), dt = ({
|
|
1344
1344
|
openDelay: e,
|
1345
1345
|
disableAutoOpen: o
|
1346
1346
|
}) => {
|
1347
|
-
const n =
|
1347
|
+
const n = U(Ht()), s = (u) => n.current.on("open", u), r = (u) => n.current.on("click", u), i = (u) => n.current.on("autoOpen", u), l = (u) => n.current.on("close", u), _ = (u) => n.current.on("crossClose", u), {
|
1348
1348
|
isOpen: c,
|
1349
1349
|
toggle: d,
|
1350
1350
|
onCrossClick: p
|
@@ -1364,7 +1364,7 @@ const Bo = Ko(), dt = ({
|
|
1364
1364
|
onClose: l,
|
1365
1365
|
onAutoOpen: i,
|
1366
1366
|
resetListeners: n.current.reset
|
1367
|
-
})),
|
1367
|
+
})), q(() => n.current.reset, []), {
|
1368
1368
|
isOpen: c,
|
1369
1369
|
toggle: d,
|
1370
1370
|
onCrossClick: p,
|
@@ -1374,8 +1374,8 @@ const Bo = Ko(), dt = ({
|
|
1374
1374
|
id: t,
|
1375
1375
|
disableAutoOpen: e
|
1376
1376
|
}, o) => {
|
1377
|
-
var L, A, I, S, $,
|
1378
|
-
const n =
|
1377
|
+
var L, A, I, S, $, V, W, X, z;
|
1378
|
+
const n = U(null), [s, r] = Mt(), i = E(), l = ut({
|
1379
1379
|
targetRef: n,
|
1380
1380
|
id: t
|
1381
1381
|
}), _ = ct(i, l), c = j(_), {
|
@@ -1399,7 +1399,7 @@ const Bo = Ko(), dt = ({
|
|
1399
1399
|
disableAutoOpen: e
|
1400
1400
|
});
|
1401
1401
|
lt(_);
|
1402
|
-
const
|
1402
|
+
const F = s ? nt(c.container, ...J_) : {};
|
1403
1403
|
return a("div", {
|
1404
1404
|
className: T(w.root, {
|
1405
1405
|
[w.legalOpen]: s
|
@@ -1451,18 +1451,18 @@ const Bo = Ko(), dt = ({
|
|
1451
1451
|
[w.buttonAnimated]: c == null ? void 0 : c.button.isAnimated
|
1452
1452
|
}),
|
1453
1453
|
style: c == null ? void 0 : c.button,
|
1454
|
-
children: (
|
1454
|
+
children: (V = c == null ? void 0 : c.button) == null ? void 0 : V.children
|
1455
1455
|
})]
|
1456
1456
|
}), a("div", {
|
1457
1457
|
className: w.legalGap
|
1458
1458
|
}), a("div", {
|
1459
1459
|
className: w.legal,
|
1460
|
-
style: h(h({}, c == null ? void 0 : c.legal),
|
1460
|
+
style: h(h({}, c == null ? void 0 : c.legal), F),
|
1461
1461
|
children: a("span", {
|
1462
1462
|
className: w.legalText,
|
1463
1463
|
children: a("span", {
|
1464
1464
|
children: [a("span", {
|
1465
|
-
children: (
|
1465
|
+
children: (W = c == null ? void 0 : c.legal) == null ? void 0 : W.children
|
1466
1466
|
}), a("span", {
|
1467
1467
|
className: w.legalButton,
|
1468
1468
|
onClick: r,
|
@@ -1562,7 +1562,7 @@ const Bo = Ko(), dt = ({
|
|
1562
1562
|
disableAutoOpen: e
|
1563
1563
|
}, o) => {
|
1564
1564
|
var L, A, I, S;
|
1565
|
-
const n =
|
1565
|
+
const n = U(null), s = E(), r = ut({
|
1566
1566
|
targetRef: n,
|
1567
1567
|
id: t
|
1568
1568
|
}), i = ct(s, r), l = j(i), {
|
@@ -1586,7 +1586,7 @@ const Bo = Ko(), dt = ({
|
|
1586
1586
|
pulse: P.pulse,
|
1587
1587
|
wiggle: P.wiggle,
|
1588
1588
|
gradient: P.gradient
|
1589
|
-
}), b = (A = l == null ? void 0 : l.title) == null ? void 0 : A.hasIcon, B = nt(l == null ? void 0 : l.title, ...zt),
|
1589
|
+
}), b = (A = l == null ? void 0 : l.title) == null ? void 0 : A.hasIcon, B = nt(l == null ? void 0 : l.title, ...zt), F = at(l == null ? void 0 : l.title, ...zt);
|
1590
1590
|
return a("div", {
|
1591
1591
|
ref: n,
|
1592
1592
|
className: T(P.root, {
|
@@ -1622,7 +1622,7 @@ const Bo = Ko(), dt = ({
|
|
1622
1622
|
children: a(Ut, {})
|
1623
1623
|
}), a("div", {
|
1624
1624
|
className: P.headTitle,
|
1625
|
-
style:
|
1625
|
+
style: F,
|
1626
1626
|
children: (I = l.title) == null ? void 0 : I.children
|
1627
1627
|
}), a("div", {
|
1628
1628
|
className: P.close,
|
@@ -1635,7 +1635,7 @@ const Bo = Ko(), dt = ({
|
|
1635
1635
|
children: (l.children || []).map(($) => a(dt, {
|
1636
1636
|
value: $,
|
1637
1637
|
children: a(Ad, {
|
1638
|
-
onClick: () => c() && d()
|
1638
|
+
onClick: (V) => c(V) && d()
|
1639
1639
|
})
|
1640
1640
|
}))
|
1641
1641
|
}), a("div", {
|
@@ -1680,12 +1680,12 @@ const Bo = Ko(), dt = ({
|
|
1680
1680
|
})
|
1681
1681
|
});
|
1682
1682
|
}, pe = (t, e = 0, o = !1) => {
|
1683
|
-
const n =
|
1683
|
+
const n = U(Ht()), [s, r] = rt(!1), [i, l] = rt(), [_, c] = rt(o), d = (b) => n.current.on("visible", b), p = (b) => n.current.on("click", b), u = (b) => n.current.on("clickHide", b), f = () => wt(void 0, null, function* () {
|
1684
1684
|
yield i_(+e), r(!0);
|
1685
1685
|
}), m = () => r(!1), v = () => {
|
1686
1686
|
n.current.emit("clickHide"), m();
|
1687
1687
|
};
|
1688
|
-
return
|
1688
|
+
return q(() => {
|
1689
1689
|
_ && n.current.emit("visible", s);
|
1690
1690
|
}, [s, _]), St(t, () => ({
|
1691
1691
|
onVisible: d,
|
@@ -1695,7 +1695,7 @@ const Bo = Ko(), dt = ({
|
|
1695
1695
|
hide: m,
|
1696
1696
|
setApiHost: l,
|
1697
1697
|
resetListeners: n.current.reset
|
1698
|
-
})),
|
1698
|
+
})), q(() => n.current.reset, []), {
|
1699
1699
|
isReady: _,
|
1700
1700
|
isOpen: s,
|
1701
1701
|
apiHost: i,
|
@@ -1715,8 +1715,8 @@ const Jd = _t(({
|
|
1715
1715
|
id: t,
|
1716
1716
|
className: e
|
1717
1717
|
}, o) => {
|
1718
|
-
var A, I, S, $,
|
1719
|
-
const n =
|
1718
|
+
var A, I, S, $, V, W, X;
|
1719
|
+
const n = U(null), s = U(null), r = ut({
|
1720
1720
|
targetRef: n,
|
1721
1721
|
id: t
|
1722
1722
|
}), i = E(), l = ct(i, r);
|
@@ -1728,7 +1728,7 @@ const Jd = _t(({
|
|
1728
1728
|
clickHide: f,
|
1729
1729
|
click: m
|
1730
1730
|
} = pe(o, c);
|
1731
|
-
|
1731
|
+
q(() => {
|
1732
1732
|
const z = s.current;
|
1733
1733
|
if (!z)
|
1734
1734
|
return;
|
@@ -1746,8 +1746,8 @@ const Jd = _t(({
|
|
1746
1746
|
}, b = k(h({}, _ == null ? void 0 : _.button), {
|
1747
1747
|
justifyContent: pt(($ = _.root) == null ? void 0 : $.textAlign)
|
1748
1748
|
}), B = k(h({}, _ == null ? void 0 : _.legal), {
|
1749
|
-
justifyContent: pt((
|
1750
|
-
}),
|
1749
|
+
justifyContent: pt((V = _.root) == null ? void 0 : V.textAlign)
|
1750
|
+
}), F = at(_.root, ...ro, ...Q), L = nt(_.root, ...ro);
|
1751
1751
|
return a("div", {
|
1752
1752
|
className: T(K.root, e, {
|
1753
1753
|
[K.desktop]: r === "desktop",
|
@@ -1772,13 +1772,13 @@ const Jd = _t(({
|
|
1772
1772
|
}), a(O, {
|
1773
1773
|
className: K.promotion,
|
1774
1774
|
style: _.promotion,
|
1775
|
-
children: (
|
1775
|
+
children: (W = _.promotion) == null ? void 0 : W.children
|
1776
1776
|
}), a("a", {
|
1777
1777
|
href: (X = _.root) == null ? void 0 : X.offer,
|
1778
1778
|
target: "_blank",
|
1779
1779
|
rel: "nofollow noopener noreferrer",
|
1780
1780
|
className: K.content,
|
1781
|
-
style:
|
1781
|
+
style: F,
|
1782
1782
|
onClick: () => m(_.id),
|
1783
1783
|
children: [a("img", {
|
1784
1784
|
ref: s,
|
@@ -1891,7 +1891,7 @@ const Jd = _t(({
|
|
1891
1891
|
id: t
|
1892
1892
|
}, e) => {
|
1893
1893
|
var p, u;
|
1894
|
-
const o =
|
1894
|
+
const o = U(null), n = ut({
|
1895
1895
|
targetRef: o,
|
1896
1896
|
id: t
|
1897
1897
|
}), s = E(), r = ct(s, n), i = j(r);
|
@@ -1943,7 +1943,7 @@ const Jd = _t(({
|
|
1943
1943
|
})]
|
1944
1944
|
})]
|
1945
1945
|
});
|
1946
|
-
}), Of = it(a(yu, {})), bu = "_root_tsejc_1", $u = "_content_tsejc_11", ku = "_close_tsejc_18", xu = "_promotion_tsejc_31", Nu = "_overlay_tsejc_39", Cu = "_body_tsejc_45", wu = "_desktop_tsejc_53", Tu = "_laptop_tsejc_53", Ou = "_tablet_tsejc_57", ju = "_head_tsejc_62", Lu = "_title_tsejc_72", Au = "_logo_tsejc_85", Iu = "_wrapper_tsejc_92", Su = "_text_tsejc_99", Pu = "_button_tsejc_107", Ru = "_buttonHead_tsejc_122", Hu = "_buttonTarget_tsejc_139", Mu = "_legal_tsejc_153",
|
1946
|
+
}), Of = it(a(yu, {})), bu = "_root_tsejc_1", $u = "_content_tsejc_11", ku = "_close_tsejc_18", xu = "_promotion_tsejc_31", Nu = "_overlay_tsejc_39", Cu = "_body_tsejc_45", wu = "_desktop_tsejc_53", Tu = "_laptop_tsejc_53", Ou = "_tablet_tsejc_57", ju = "_head_tsejc_62", Lu = "_title_tsejc_72", Au = "_logo_tsejc_85", Iu = "_wrapper_tsejc_92", Su = "_text_tsejc_99", Pu = "_button_tsejc_107", Ru = "_buttonHead_tsejc_122", Hu = "_buttonTarget_tsejc_139", Mu = "_legal_tsejc_153", D = {
|
1947
1947
|
root: bu,
|
1948
1948
|
content: $u,
|
1949
1949
|
close: ku,
|
@@ -2080,7 +2080,7 @@ const Jd = _t(({
|
|
2080
2080
|
}).then((d) => d.json());
|
2081
2081
|
i(c.data);
|
2082
2082
|
}), [l, e, n, s]);
|
2083
|
-
return
|
2083
|
+
return q(() => {
|
2084
2084
|
e || _();
|
2085
2085
|
}, [l, e]), {
|
2086
2086
|
data: r,
|
@@ -2088,15 +2088,15 @@ const Jd = _t(({
|
|
2088
2088
|
};
|
2089
2089
|
};
|
2090
2090
|
function Wo(t) {
|
2091
|
-
const e =
|
2092
|
-
return
|
2091
|
+
const e = U();
|
2092
|
+
return q(() => {
|
2093
2093
|
e.current = t;
|
2094
2094
|
}, [t]), e.current;
|
2095
2095
|
}
|
2096
2096
|
const tp = (t, e) => {
|
2097
2097
|
const o = (c) => {
|
2098
2098
|
var d;
|
2099
|
-
return
|
2099
|
+
return G(c == null ? void 0 : c.matchSlug) && ((d = c == null ? void 0 : c.matchSlug) == null ? void 0 : d.length) > 0;
|
2100
2100
|
}, n = t.children || [], s = n.filter((c) => o(c.root.targetMatch)).map((c) => c.root.targetMatch), r = Wo(s), {
|
2101
2101
|
data: i,
|
2102
2102
|
execute: l
|
@@ -2114,13 +2114,13 @@ const tp = (t, e) => {
|
|
2114
2114
|
},
|
2115
2115
|
pause: !e || s.length === 0
|
2116
2116
|
});
|
2117
|
-
return
|
2117
|
+
return q(() => {
|
2118
2118
|
Ho(r, s) || l();
|
2119
2119
|
}, [s]), n.map((c) => {
|
2120
2120
|
const d = (i || []).find((f) => f.slug === c.root.targetMatch.matchSlug);
|
2121
2121
|
if (!d)
|
2122
2122
|
return;
|
2123
|
-
const p = Ro(d), u = Mo(p, c.root.customMatch, (f, [m, v]) =>
|
2123
|
+
const p = Ro(d), u = Mo(p, c.root.customMatch, (f, [m, v]) => G(v));
|
2124
2124
|
return k(h({}, c), {
|
2125
2125
|
match: u
|
2126
2126
|
});
|
@@ -2128,12 +2128,12 @@ const tp = (t, e) => {
|
|
2128
2128
|
}, ep = _t(({
|
2129
2129
|
id: t
|
2130
2130
|
}, e) => {
|
2131
|
-
var
|
2132
|
-
const o =
|
2131
|
+
var F, L, A, I, S, $, V, W, X, z, Ct, he, fe, ge;
|
2132
|
+
const o = U(null), n = ut({
|
2133
2133
|
targetRef: o,
|
2134
2134
|
id: t
|
2135
2135
|
}), s = E(), r = ct(s, n);
|
2136
|
-
At(r, "buttonWrapper.percent_width", (
|
2136
|
+
At(r, "buttonWrapper.percent_width", (F = r == null ? void 0 : r.buttonWrapper) == null ? void 0 : F.width), At(r, "legal.percent_width", (L = r == null ? void 0 : r.legal) == null ? void 0 : L.width);
|
2137
2137
|
const i = j(r);
|
2138
2138
|
lt(r);
|
2139
2139
|
const l = y(i, "root.delay", 0), {
|
@@ -2150,33 +2150,33 @@ const tp = (t, e) => {
|
|
2150
2150
|
}), b = k(h({}, i == null ? void 0 : i.button), {
|
2151
2151
|
justifyContent: pt(($ = i.root) == null ? void 0 : $.textAlign)
|
2152
2152
|
}), B = k(h({}, i == null ? void 0 : i.legal), {
|
2153
|
-
justifyContent: pt((
|
2153
|
+
justifyContent: pt((V = i.root) == null ? void 0 : V.textAlign)
|
2154
2154
|
});
|
2155
2155
|
return a("div", {
|
2156
|
-
className: T(
|
2157
|
-
[
|
2158
|
-
[
|
2159
|
-
[
|
2156
|
+
className: T(D.root, {
|
2157
|
+
[D.desktop]: n === "desktop",
|
2158
|
+
[D.laptop]: n === "laptop",
|
2159
|
+
[D.tablet]: n === "tablet"
|
2160
2160
|
}),
|
2161
2161
|
ref: o,
|
2162
2162
|
style: {
|
2163
2163
|
display: _ ? "flex" : "none"
|
2164
2164
|
},
|
2165
2165
|
children: [a("div", {
|
2166
|
-
className:
|
2166
|
+
className: D.overlay,
|
2167
2167
|
style: i.overlay,
|
2168
2168
|
onClick: d
|
2169
2169
|
}), a("div", {
|
2170
|
-
className:
|
2170
|
+
className: D.content,
|
2171
2171
|
children: [a("div", {
|
2172
|
-
className:
|
2172
|
+
className: D.close,
|
2173
2173
|
style: gt(i.close),
|
2174
2174
|
onClick: d,
|
2175
2175
|
children: a(Nt, {})
|
2176
2176
|
}), a(O, {
|
2177
|
-
className:
|
2177
|
+
className: D.promotion,
|
2178
2178
|
style: i.promotion,
|
2179
|
-
children: (
|
2179
|
+
children: (W = i.promotion) == null ? void 0 : W.children
|
2180
2180
|
}), a("a", {
|
2181
2181
|
ref: o,
|
2182
2182
|
href: (X = i.root) == null ? void 0 : X.offer,
|
@@ -2184,20 +2184,20 @@ const tp = (t, e) => {
|
|
2184
2184
|
rel: "nofollow noopener noreferrer",
|
2185
2185
|
onClick: () => p(i.id),
|
2186
2186
|
children: a("div", {
|
2187
|
-
className:
|
2187
|
+
className: D.body,
|
2188
2188
|
style: f,
|
2189
2189
|
children: [a("div", {
|
2190
|
-
className:
|
2190
|
+
className: D.head,
|
2191
2191
|
children: [a("div", {
|
2192
|
-
className:
|
2192
|
+
className: D.title,
|
2193
2193
|
style: i.title,
|
2194
2194
|
children: (z = i.title) == null ? void 0 : z.children
|
2195
2195
|
}), a("div", {
|
2196
|
-
className:
|
2196
|
+
className: D.logo,
|
2197
2197
|
style: i.logo
|
2198
2198
|
})]
|
2199
2199
|
}), a("div", {
|
2200
|
-
className:
|
2200
|
+
className: D.wrapper,
|
2201
2201
|
style: m,
|
2202
2202
|
children: (u || []).map((qo) => a(dt, {
|
2203
2203
|
value: k(h({}, qo), {
|
@@ -2206,25 +2206,25 @@ const tp = (t, e) => {
|
|
2206
2206
|
children: a(Yu, {})
|
2207
2207
|
}))
|
2208
2208
|
}), a(O, {
|
2209
|
-
className:
|
2209
|
+
className: D.text,
|
2210
2210
|
style: v,
|
2211
2211
|
typography: v.typography,
|
2212
2212
|
accentTypography: v.accentTypography,
|
2213
2213
|
children: (Ct = i.text) == null ? void 0 : Ct.children
|
2214
2214
|
}), a("div", {
|
2215
|
-
className:
|
2215
|
+
className: D.button,
|
2216
2216
|
style: i.buttonWrapper,
|
2217
2217
|
children: [a("div", {
|
2218
|
-
className:
|
2218
|
+
className: D.buttonHead,
|
2219
2219
|
style: i.buttonHead,
|
2220
2220
|
children: (he = i.buttonHead) == null ? void 0 : he.children
|
2221
2221
|
}), a("div", {
|
2222
|
-
className:
|
2222
|
+
className: D.buttonTarget,
|
2223
2223
|
style: b,
|
2224
2224
|
children: (fe = i.button) == null ? void 0 : fe.children
|
2225
2225
|
})]
|
2226
2226
|
}), a(O, {
|
2227
|
-
className:
|
2227
|
+
className: D.legal,
|
2228
2228
|
style: B,
|
2229
2229
|
children: (ge = i.legal) == null ? void 0 : ge.children
|
2230
2230
|
})]
|
@@ -2299,17 +2299,17 @@ const tp = (t, e) => {
|
|
2299
2299
|
})]
|
2300
2300
|
});
|
2301
2301
|
}, hp = (t) => {
|
2302
|
-
const e =
|
2302
|
+
const e = U(Ht()), o = (n) => e.current.on("click", n);
|
2303
2303
|
return St(t, () => ({
|
2304
2304
|
promoId: "ContentCards",
|
2305
2305
|
onClick: o,
|
2306
2306
|
resetListeners: e.current.reset
|
2307
|
-
})),
|
2307
|
+
})), q(() => e.current.reset, []), {
|
2308
2308
|
click: (...n) => e.current.emit("click", ...n),
|
2309
2309
|
onClick: o
|
2310
2310
|
};
|
2311
2311
|
}, fp = _t((t, e) => {
|
2312
|
-
const o =
|
2312
|
+
const o = U(null), n = E(), r = ct(n, "mobile"), i = j(r);
|
2313
2313
|
lt(r);
|
2314
2314
|
const {
|
2315
2315
|
click: l
|
@@ -2537,7 +2537,7 @@ const tp = (t, e) => {
|
|
2537
2537
|
}, dh = (t = []) => {
|
2538
2538
|
var r;
|
2539
2539
|
const e = t.length, [o, n] = rt(0), s = (r = t[o || 0]) == null ? void 0 : r.animationDuration;
|
2540
|
-
return
|
2540
|
+
return q(() => {
|
2541
2541
|
const l = setTimeout(() => {
|
2542
2542
|
n((_) => _ + 1 < e ? _ + 1 : 0);
|
2543
2543
|
}, s);
|
@@ -2549,7 +2549,7 @@ const tp = (t, e) => {
|
|
2549
2549
|
}, so = (t) => [uh[t]], ph = (t, e) => {
|
2550
2550
|
const o = (c) => {
|
2551
2551
|
var d;
|
2552
|
-
return
|
2552
|
+
return G(c == null ? void 0 : c.matchSlug) && ((d = c == null ? void 0 : c.matchSlug) == null ? void 0 : d.length) > 0;
|
2553
2553
|
}, n = (t == null ? void 0 : t.children) || [], s = n.filter((c) => o(c.root.targetMatch)).map((c) => k(h({}, c.root.targetMatch), {
|
2554
2554
|
markets: so(c.name)
|
2555
2555
|
})), r = Wo(s), {
|
@@ -2569,7 +2569,7 @@ const tp = (t, e) => {
|
|
2569
2569
|
},
|
2570
2570
|
pause: !e || s.length === 0
|
2571
2571
|
});
|
2572
|
-
return
|
2572
|
+
return q(() => {
|
2573
2573
|
Ho(r, s) || l();
|
2574
2574
|
}, [s]), n.map((c) => {
|
2575
2575
|
if ("targetMatch" in c.root) {
|
@@ -2578,7 +2578,7 @@ const tp = (t, e) => {
|
|
2578
2578
|
return;
|
2579
2579
|
const p = so(c.name), u = Ro(d, {
|
2580
2580
|
markets: p
|
2581
|
-
}), f = Mo(u, c.root.customMatch, (m, [v, b]) =>
|
2581
|
+
}), f = Mo(u, c.root.customMatch, (m, [v, b]) => G(b));
|
2582
2582
|
return k(h({}, c), {
|
2583
2583
|
match: f
|
2584
2584
|
});
|
@@ -2586,12 +2586,12 @@ const tp = (t, e) => {
|
|
2586
2586
|
return c;
|
2587
2587
|
}).filter(Boolean);
|
2588
2588
|
}, hh = (t) => {
|
2589
|
-
const e =
|
2589
|
+
const e = U(Ht()), [o, n] = rt(!1), [s, r] = rt(), i = (u) => e.current.on("visible", u), l = (u) => e.current.on("click", u), _ = (u) => e.current.on("clickHide", u), c = () => wt(void 0, null, function* () {
|
2590
2590
|
n(!0);
|
2591
2591
|
}), d = () => n(!1), p = () => {
|
2592
2592
|
e.current.emit("clickHide"), d();
|
2593
2593
|
};
|
2594
|
-
return
|
2594
|
+
return q(() => {
|
2595
2595
|
e.current.emit("visible", o);
|
2596
2596
|
}, [o]), St(t, () => ({
|
2597
2597
|
onVisible: i,
|
@@ -2601,7 +2601,7 @@ const tp = (t, e) => {
|
|
2601
2601
|
hide: d,
|
2602
2602
|
setApiHost: r,
|
2603
2603
|
resetListeners: e.current.reset
|
2604
|
-
})),
|
2604
|
+
})), q(() => e.current.reset, []), {
|
2605
2605
|
isOpen: o,
|
2606
2606
|
apiHost: s,
|
2607
2607
|
show: c,
|
@@ -2614,8 +2614,8 @@ const tp = (t, e) => {
|
|
2614
2614
|
}, fh = 3700, gh = _t(({
|
2615
2615
|
id: t
|
2616
2616
|
}, e) => {
|
2617
|
-
var
|
2618
|
-
const o =
|
2617
|
+
var F, L, A, I, S;
|
2618
|
+
const o = U(null), n = E(), s = ut({
|
2619
2619
|
id: t,
|
2620
2620
|
targetRef: o
|
2621
2621
|
}), r = ct(n, s), i = j(r);
|
@@ -2630,12 +2630,12 @@ const tp = (t, e) => {
|
|
2630
2630
|
matches: a(Jp, {}),
|
2631
2631
|
matchesOneTwo: a(_h, {})
|
2632
2632
|
})[$], f = p.filter(Boolean).map(($) => {
|
2633
|
-
var
|
2633
|
+
var V, W;
|
2634
2634
|
return k(h({}, $), {
|
2635
|
-
animationName: (
|
2636
|
-
animationDuration: ((
|
2635
|
+
animationName: (V = $ == null ? void 0 : $.root) == null ? void 0 : V.animationName,
|
2636
|
+
animationDuration: ((W = $ == null ? void 0 : $.root) == null ? void 0 : W.animationDuration) || fh
|
2637
2637
|
});
|
2638
|
-
}), m = dh(f), v = j(f[m] || {}), b = at(i.root, ...Q), B = (
|
2638
|
+
}), m = dh(f), v = j(f[m] || {}), b = at(i.root, ...Q), B = (F = v == null ? void 0 : v.root) != null && F.hasCustomBackground ? nt((v == null ? void 0 : v.root) || {}, ...Q) : nt(i.root, ...Q);
|
2639
2639
|
return a("div", {
|
2640
2640
|
ref: o,
|
2641
2641
|
className: T(H.root, {
|
@@ -2674,12 +2674,12 @@ const tp = (t, e) => {
|
|
2674
2674
|
})
|
2675
2675
|
}), a("div", {
|
2676
2676
|
className: H.center,
|
2677
|
-
children: (f || []).map(($,
|
2678
|
-
var
|
2677
|
+
children: (f || []).map(($, V) => {
|
2678
|
+
var W, X;
|
2679
2679
|
return a("div", {
|
2680
2680
|
className: H.slide,
|
2681
2681
|
style: {
|
2682
|
-
animationName: m ===
|
2682
|
+
animationName: m === V ? H[((W = $.root) == null ? void 0 : W.animationName) || "fade-in-out"] : "none",
|
2683
2683
|
animationDuration: `${(X = $.root) == null ? void 0 : X.animationDuration}ms`
|
2684
2684
|
},
|
2685
2685
|
children: a(dt, {
|
@@ -2886,22 +2886,22 @@ const tp = (t, e) => {
|
|
2886
2886
|
})]
|
2887
2887
|
});
|
2888
2888
|
}, Wh = (t) => {
|
2889
|
-
const e =
|
2889
|
+
const e = U(Ht()), o = (s) => e.current.on("click", s), n = (s) => e.current.on("visible", s);
|
2890
2890
|
return St(t, () => ({
|
2891
2891
|
promoId: "ContentCards",
|
2892
2892
|
onClick: o,
|
2893
2893
|
onVisible: n,
|
2894
2894
|
resetListeners: e.current.reset
|
2895
|
-
})),
|
2895
|
+
})), q(() => {
|
2896
2896
|
e.current.emit("visible");
|
2897
|
-
}, []),
|
2897
|
+
}, []), q(() => e.current.reset, []), {
|
2898
2898
|
click: (...s) => e.current.emit("click", ...s),
|
2899
2899
|
onClick: o
|
2900
2900
|
};
|
2901
2901
|
}, qh = _t(({
|
2902
2902
|
id: t
|
2903
2903
|
}, e) => {
|
2904
|
-
const o =
|
2904
|
+
const o = U(null), n = E(), s = ut({
|
2905
2905
|
targetRef: o,
|
2906
2906
|
id: t
|
2907
2907
|
}), r = ct(n, s), i = j(r);
|
@@ -3012,8 +3012,8 @@ const tp = (t, e) => {
|
|
3012
3012
|
</svg>`, yf = ({
|
3013
3013
|
id: t
|
3014
3014
|
}) => {
|
3015
|
-
var p, u, f, m, v, b, B,
|
3016
|
-
const e =
|
3015
|
+
var p, u, f, m, v, b, B, F, L, A, I, S, $, V, W, X;
|
3016
|
+
const e = U(null), o = E(), n = ut({
|
3017
3017
|
targetRef: e,
|
3018
3018
|
id: t
|
3019
3019
|
}), s = ct(o, n);
|
@@ -3066,7 +3066,7 @@ const tp = (t, e) => {
|
|
3066
3066
|
children: a(O, {
|
3067
3067
|
typography: r == null ? void 0 : r.fullDescription,
|
3068
3068
|
replacer: (z) => `<div class="${x.item}" style="${z}">${io} $1</div>`,
|
3069
|
-
children: (
|
3069
|
+
children: (F = r == null ? void 0 : r.fullDescription) == null ? void 0 : F.children
|
3070
3070
|
})
|
3071
3071
|
}), a("div", {
|
3072
3072
|
className: T(x.legal, {
|
@@ -3107,11 +3107,11 @@ const tp = (t, e) => {
|
|
3107
3107
|
className: x.codeTitle,
|
3108
3108
|
children: a(O, {
|
3109
3109
|
typography: r == null ? void 0 : r.promoCode,
|
3110
|
-
children: (
|
3110
|
+
children: (V = r == null ? void 0 : r.promoCode) == null ? void 0 : V.children
|
3111
3111
|
})
|
3112
3112
|
}), a("div", {
|
3113
3113
|
className: x.codeDescription,
|
3114
|
-
children: (
|
3114
|
+
children: (W = r == null ? void 0 : r.promoCode) == null ? void 0 : W.description
|
3115
3115
|
})]
|
3116
3116
|
})]
|
3117
3117
|
}), a("div", {
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
@@ -1,436 +0,0 @@
|
|
1
|
-
# @adstore/templates
|
2
|
-
|
3
|
-
## 2.7.6
|
4
|
-
|
5
|
-
### Patch Changes
|
6
|
-
|
7
|
-
- Remove deprecated logs
|
8
|
-
|
9
|
-
## 2.7.3
|
10
|
-
|
11
|
-
### Patch Changes
|
12
|
-
|
13
|
-
- Pass only ESM for templates. Init Statex.
|
14
|
-
|
15
|
-
## 2.7.2
|
16
|
-
|
17
|
-
### Patch Changes
|
18
|
-
|
19
|
-
- Add min-size for close icon. Close Gift after click by promo.
|
20
|
-
|
21
|
-
## 2.7.0
|
22
|
-
|
23
|
-
### Minor Changes
|
24
|
-
|
25
|
-
- Add promotion layer for Popups. Add new metrik
|
26
|
-
|
27
|
-
## 2.6.14
|
28
|
-
|
29
|
-
### Patch Changes
|
30
|
-
|
31
|
-
- Pass only ESM module.
|
32
|
-
|
33
|
-
## 2.6.13
|
34
|
-
|
35
|
-
### Patch Changes
|
36
|
-
|
37
|
-
- Modify close icon for WideCard, CopmlexGift, SimpleGift
|
38
|
-
|
39
|
-
## 2.6.10
|
40
|
-
|
41
|
-
### Patch Changes
|
42
|
-
|
43
|
-
- add new method for custom close
|
44
|
-
|
45
|
-
## 2.6.9
|
46
|
-
|
47
|
-
### Patch Changes
|
48
|
-
|
49
|
-
- Fixes for ContentCards
|
50
|
-
|
51
|
-
## 2.6.7
|
52
|
-
|
53
|
-
### Patch Changes
|
54
|
-
|
55
|
-
- Update paddings for ContentCards
|
56
|
-
|
57
|
-
## 2.6.6
|
58
|
-
|
59
|
-
### Patch Changes
|
60
|
-
|
61
|
-
- Add onVisible and onClick actions for ContentCards
|
62
|
-
|
63
|
-
## 2.6.5
|
64
|
-
|
65
|
-
### Patch Changes
|
66
|
-
|
67
|
-
- Fix error on empty state for WideCard
|
68
|
-
|
69
|
-
## 2.6.3
|
70
|
-
|
71
|
-
### Patch Changes
|
72
|
-
|
73
|
-
- Fix paddings/margins
|
74
|
-
|
75
|
-
## 2.6.1
|
76
|
-
|
77
|
-
### Patch Changes
|
78
|
-
|
79
|
-
- Fix onClick action. Add link for variant2
|
80
|
-
|
81
|
-
## 2.6.0
|
82
|
-
|
83
|
-
### Minor Changes
|
84
|
-
|
85
|
-
- Add ContentCards promotion
|
86
|
-
|
87
|
-
## 2.5.13
|
88
|
-
|
89
|
-
### Patch Changes
|
90
|
-
|
91
|
-
- Add limit width and height for CloseIcon
|
92
|
-
|
93
|
-
## 2.5.12
|
94
|
-
|
95
|
-
### Patch Changes
|
96
|
-
|
97
|
-
- Reduce Popup width on mobile. Fix editable color for close icon. Add size config for CloseIcon. Fix onVisible for popups.
|
98
|
-
|
99
|
-
## 2.5.11
|
100
|
-
|
101
|
-
### Patch Changes
|
102
|
-
|
103
|
-
- Remove paddings for body (ComplexPopup)
|
104
|
-
|
105
|
-
## 2.5.10
|
106
|
-
|
107
|
-
### Patch Changes
|
108
|
-
|
109
|
-
- Add background for logo (ComplexPopup)
|
110
|
-
|
111
|
-
## 2.5.9
|
112
|
-
|
113
|
-
### Patch Changes
|
114
|
-
|
115
|
-
- Dont hide WideCard after click
|
116
|
-
|
117
|
-
## 2.5.8
|
118
|
-
|
119
|
-
### Patch Changes
|
120
|
-
|
121
|
-
- Fix DisplayText
|
122
|
-
|
123
|
-
## 2.5.7
|
124
|
-
|
125
|
-
### Patch Changes
|
126
|
-
|
127
|
-
- Fixes for WideCard
|
128
|
-
|
129
|
-
## 2.5.5
|
130
|
-
|
131
|
-
### Patch Changes
|
132
|
-
|
133
|
-
- Fixes for WideCard
|
134
|
-
|
135
|
-
## 2.5.4
|
136
|
-
|
137
|
-
### Patch Changes
|
138
|
-
|
139
|
-
- Add dep for national teamChange margin for BonusCardFew fixes
|
140
|
-
|
141
|
-
## 2.5.3
|
142
|
-
|
143
|
-
### Patch Changes
|
144
|
-
|
145
|
-
- Fixes for WideCard
|
146
|
-
|
147
|
-
## 2.5.2
|
148
|
-
|
149
|
-
### Patch Changes
|
150
|
-
|
151
|
-
- Fixes for WideCard
|
152
|
-
|
153
|
-
## 2.5.1
|
154
|
-
|
155
|
-
### Patch Changes
|
156
|
-
|
157
|
-
- Fix isOpen Simple popup when image is invalid
|
158
|
-
|
159
|
-
## 2.5.0
|
160
|
-
|
161
|
-
### Minor Changes
|
162
|
-
|
163
|
-
- Add more options for Accent typography
|
164
|
-
- 9c412ae: Update 1X2 slide for WideCard
|
165
|
-
|
166
|
-
## 2.4.4
|
167
|
-
|
168
|
-
### Patch Changes
|
169
|
-
|
170
|
-
- Fix close for Popups. Cnage close color
|
171
|
-
|
172
|
-
## 2.4.3
|
173
|
-
|
174
|
-
### Patch Changes
|
175
|
-
|
176
|
-
- Add action for WideCard
|
177
|
-
|
178
|
-
## 2.4.2
|
179
|
-
|
180
|
-
### Patch Changes
|
181
|
-
|
182
|
-
- Move promotion to botton of ComplexGift
|
183
|
-
- Make fixes for WideCard
|
184
|
-
|
185
|
-
## 2.4.1
|
186
|
-
|
187
|
-
### Patch Changes
|
188
|
-
|
189
|
-
- Fix image loading
|
190
|
-
|
191
|
-
## 2.4.0
|
192
|
-
|
193
|
-
### Minor Changes
|
194
|
-
|
195
|
-
- d355a72: Make integrations for WideCard
|
196
|
-
|
197
|
-
### Patch Changes
|
198
|
-
|
199
|
-
- 48a0b14: Change size of Gift Icon
|
200
|
-
|
201
|
-
## 2.3.1
|
202
|
-
|
203
|
-
### Patch Changes
|
204
|
-
|
205
|
-
- Fix initial title paddings for title of ComplexGift. Updates for ExpressPopup
|
206
|
-
|
207
|
-
## 2.3.0
|
208
|
-
|
209
|
-
### Minor Changes
|
210
|
-
|
211
|
-
- Can upload matches to ExpressPopup
|
212
|
-
|
213
|
-
## 2.2.12
|
214
|
-
|
215
|
-
### Patch Changes
|
216
|
-
|
217
|
-
- 6209eb0: Add auto-font for typography
|
218
|
-
- 89a7916: Remove hide element if he has empty string
|
219
|
-
- 26056f0: Updates for WideCard
|
220
|
-
|
221
|
-
## 2.2.11
|
222
|
-
|
223
|
-
### Patch Changes
|
224
|
-
|
225
|
-
- Updates for BonusCards
|
226
|
-
|
227
|
-
## 2.2.10
|
228
|
-
|
229
|
-
### Patch Changes
|
230
|
-
|
231
|
-
- Make fixes for BonusCards. Add unsubscribe listeners when BonusCards unmounted
|
232
|
-
- Add ref actions for BonusCards
|
233
|
-
- Add resetListeners method
|
234
|
-
|
235
|
-
## 2.2.7
|
236
|
-
|
237
|
-
### Patch Changes
|
238
|
-
|
239
|
-
- df01b04: Add updates for BonusCards
|
240
|
-
|
241
|
-
## 2.2.6
|
242
|
-
|
243
|
-
### Patch Changes
|
244
|
-
|
245
|
-
- 16d67c9: Deattach all subscribtion after unmount promos
|
246
|
-
- 16d67c9: Add Broadcast values
|
247
|
-
|
248
|
-
## 2.2.5
|
249
|
-
|
250
|
-
### Patch Changes
|
251
|
-
|
252
|
-
- 349746d: Add onClickHide action for Popups
|
253
|
-
|
254
|
-
## 2.2.3
|
255
|
-
|
256
|
-
### Patch Changes
|
257
|
-
|
258
|
-
- c64af77: Add separate metrics for ComplexPopup and ComplexGift
|
259
|
-
|
260
|
-
## 2.2.2
|
261
|
-
|
262
|
-
### Patch Changes
|
263
|
-
|
264
|
-
- bba33be: Add Layer Visibility functional
|
265
|
-
|
266
|
-
## 2.2.1
|
267
|
-
|
268
|
-
### Patch Changes
|
269
|
-
|
270
|
-
- 1132005: Fixes for ExpressPopup
|
271
|
-
|
272
|
-
## 2.2.0
|
273
|
-
|
274
|
-
### Minor Changes
|
275
|
-
|
276
|
-
- Update sizes for popups
|
277
|
-
|
278
|
-
### Patch Changes
|
279
|
-
|
280
|
-
- d8b5fc7: Remove base paddings for Popups. Fix crash SimpleGift
|
281
|
-
- 3f5399e: Remove height from config
|
282
|
-
- 3f5399e: Change build target es6
|
283
|
-
|
284
|
-
## 2.1.9
|
285
|
-
|
286
|
-
### Patch Changes
|
287
|
-
|
288
|
-
- 5e9b4fa: Add gifts and popups ref actions
|
289
|
-
- b0541ac: Add onMount action
|
290
|
-
- b0541ac: Add className prop. Make popups as fixed
|
291
|
-
- b0541ac: Remove onMount action
|
292
|
-
|
293
|
-
## 2.1.2
|
294
|
-
|
295
|
-
### Patch Changes
|
296
|
-
|
297
|
-
- b0afa96: Add fixes for ExpressPopup
|
298
|
-
- e378372: Add polifill for ResizeObserver
|
299
|
-
|
300
|
-
## 2.1.1
|
301
|
-
|
302
|
-
### Patch Changes
|
303
|
-
|
304
|
-
- Call isOpen method by human click
|
305
|
-
|
306
|
-
## 2.1.0
|
307
|
-
|
308
|
-
### Minor Changes
|
309
|
-
|
310
|
-
- d4bfb19: Add lifecycle methods for gifts
|
311
|
-
|
312
|
-
## 2.0.19
|
313
|
-
|
314
|
-
### Patch Changes
|
315
|
-
|
316
|
-
- d25ccf2: Make "parent" rewritable
|
317
|
-
|
318
|
-
## 2.0.18
|
319
|
-
|
320
|
-
### Patch Changes
|
321
|
-
|
322
|
-
- 6a175ce: Remove offset from container (SimpleGift, ComplexGift)
|
323
|
-
|
324
|
-
## 2.0.16
|
325
|
-
|
326
|
-
### Patch Changes
|
327
|
-
|
328
|
-
- 7db235d: Fix horizontal line between offers (Complex gift)
|
329
|
-
|
330
|
-
## 2.0.15
|
331
|
-
|
332
|
-
### Patch Changes
|
333
|
-
|
334
|
-
- e608bb5: Unlink border from legal info to container (SimpleGift)
|
335
|
-
|
336
|
-
## 2.0.14
|
337
|
-
|
338
|
-
### Patch Changes
|
339
|
-
|
340
|
-
- 55e4ed7: Fix display Gifts
|
341
|
-
|
342
|
-
## 2.0.13
|
343
|
-
|
344
|
-
### Patch Changes
|
345
|
-
|
346
|
-
- 4d88789: Fix size of legal info. Change width of SimpleGift container. Add path to Iterator tool. Make centred logo for all promos.
|
347
|
-
|
348
|
-
## 2.0.12
|
349
|
-
|
350
|
-
### Patch Changes
|
351
|
-
|
352
|
-
- 1bb97d0: Remove reset css
|
353
|
-
|
354
|
-
## 2.0.11
|
355
|
-
|
356
|
-
### Patch Changes
|
357
|
-
|
358
|
-
- 0590d2d: Add max-width on mobile for ComplexGift
|
359
|
-
|
360
|
-
## 2.0.10
|
361
|
-
|
362
|
-
### Patch Changes
|
363
|
-
|
364
|
-
- Release version
|
365
|
-
- 605b897: Fixes for SimpleGift + ComplexGift
|
366
|
-
- 18cdeee: Fixes
|
367
|
-
- 484e490: Fix display title icon (ComplexGift)
|
368
|
-
|
369
|
-
## 2.0.6
|
370
|
-
|
371
|
-
### Patch Changes
|
372
|
-
|
373
|
-
- Fix modifyState tool
|
374
|
-
|
375
|
-
## 2.0.5
|
376
|
-
|
377
|
-
### Patch Changes
|
378
|
-
|
379
|
-
- debb49a: Fix parent extend. Fix legal info scroll (SimpleGift)
|
380
|
-
- 89e63db: Add method for modify state
|
381
|
-
|
382
|
-
## 2.0.4
|
383
|
-
|
384
|
-
### Patch Changes
|
385
|
-
|
386
|
-
- f67824b: Lock usless fuctions
|
387
|
-
- f67824b: Add button animation (SimpleGift)
|
388
|
-
|
389
|
-
## 2.0.3
|
390
|
-
|
391
|
-
### Patch Changes
|
392
|
-
|
393
|
-
- 8251580: Fix matrics for all promos
|
394
|
-
- 4f83f9b: Make parser for SimpleGift. Style fixes for SimpleGift
|
395
|
-
- 75acf6b: Add spacing functional
|
396
|
-
|
397
|
-
## 2.0.2
|
398
|
-
|
399
|
-
### Patch Changes
|
400
|
-
|
401
|
-
- 573bc56: Fix container detect device. Fix load custom font from GoogleFonts
|
402
|
-
- fda304d: Add logo config. Fix size of bonuses. (Complex popup)
|
403
|
-
- 52e29b5: Fix render children (Simple popup)
|
404
|
-
- 64004e9: Fixes for Express popup
|
405
|
-
- 2f4475e: Fix animations (SimpleGift, ComplexGift)
|
406
|
-
- b4fffd7: Make fixes for WideCard
|
407
|
-
- d722719: Fix hidden children after reload
|
408
|
-
|
409
|
-
## 2.0.1
|
410
|
-
|
411
|
-
### Patch Changes
|
412
|
-
|
413
|
-
- febb0f1: Fixed functionality of changing the background color of slides (WideCard template)
|
414
|
-
- 984694e: Fix offer for templates
|
415
|
-
|
416
|
-
## 2.0.0
|
417
|
-
|
418
|
-
### Major Changes
|
419
|
-
|
420
|
-
- f8e0c35: Full replace templates to templates-preact. Update web version
|
421
|
-
|
422
|
-
### Minor Changes
|
423
|
-
|
424
|
-
- 3ee1297: Integrate new template by Preact
|
425
|
-
|
426
|
-
### Patch Changes
|
427
|
-
|
428
|
-
- ca46788: Integrade SimplePopup
|
429
|
-
- 76702f5: Remake BonusCard
|
430
|
-
- dcedd4f: Fix accent typo for ExpressPopup
|
431
|
-
- 6c050a8: Remake ExpressPopup
|
432
|
-
- b148e96: Remake ComplexGift + ComplexPopup
|
433
|
-
- dcedd4f: Add offers config for all templates
|
434
|
-
- 7486894: Add new util methods + contants. Fixes for React adapter
|
435
|
-
- d3964cd: Remake WideCard
|
436
|
-
- dcedd4f: Fix device resolver for initialState
|