@logora/debate 0.4.95 → 0.4.98
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/assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css +1 -0
- package/dist/components/embed/embed_header/EmbedHeader.js +32 -34
- package/dist/components/embed/embed_header/EmbedHeader.module.scss.js +8 -8
- package/package.json +1 -1
- package/dist/assets/components/embed/embed_header/EmbedHeader.module-BiboXUr0.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._headerBox_czmub_3{display:flex!important;flex-direction:column!important;padding:0!important}._headerBoxLabel_czmub_9{display:flex!important;justify-content:flex-start!important}._headerBoxLabel_czmub_9>._titleRedirectUrl_czmub_13{background:var(--background-color-primary, white)!important}._headerBoxLabel_czmub_9>._titleRedirectUrl_czmub_13:hover{background:var(--background-color-primary, white)!important}._headerBoxLabel_czmub_9 a{text-decoration:none!important}._headerLiveStat_czmub_24{margin-left:auto!important;margin-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;color:var(--call-primary-color, #434343);font-size:var(--font-size-small, 16px);margin-left:30px}._headerLiveStat_czmub_24 span{margin-left:10px;margin-bottom:0!important}@media(prefers-color-scheme:dark){.logoraDarkMode ._headerLiveStat_czmub_24{color:#fff!important}.logoraDarkMode ._headerLiveNow_czmub_43{background-color:#fff!important}.logoraDarkMode ._headerLiveNow_czmub_43:before{background-color:#fff!important}}._headerLiveNow_czmub_43{min-width:8px;width:8px;height:8px;border-radius:50%;background-color:var(--call-primary-color, #434343);position:relative}._headerLiveNow_czmub_43:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background-color:var(--call-primary-color, #434343);opacity:.4;animation-name:_livePin_czmub_1;animation-duration:1.6s;animation-iteration-count:infinite}@container (min-width: 576px){._headerLivePin_czmub_72{display:block!important}}._headerLivePin_czmub_72{display:none!important}@container (min-width: 576px){._headerLivePinMobile_czmub_81{display:none!important}}._headerLivePinMobile_czmub_81{display:block!important}@keyframes _livePin_czmub_1{0%{transform:scale(2.3)}50%{transform:scale(0)}to{transform:scale(2.3)}}._headerLabelText_czmub_100{background-color:var(--call-primary-color, #434343);color:var(--text-light, white);border-bottom:1px solid;border-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px) 0 var(--box-border-radius, 6px) 0;font-size:var(--font-size-normal, 16px);flex-wrap:nowrap;white-space:nowrap;padding-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._debateName_czmub_115{color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);text-align:center;width:100%;display:flex!important;align-items:center!important;justify-content:center!important;padding-bottom:0!important;padding-top:var(--space-unit, 1em)!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}@container (min-width: 576px){._debateName_czmub_115{padding-right:0!important}}@container (min-width: 576px){._debateName_czmub_115{padding-left:0!important}}._debateName_czmub_115 a._debateLink_czmub_139{color:var(--text-primary, #222222)!important}._debateLink_czmub_139{font-size:var(--font-size-large, 20px);line-height:var(--line-height-normal, 1.26em);background:var(--background-color-primary, white)!important;text-decoration:none!important;color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._debateLink_czmub_139:hover{background:var(--background-color-primary, white)!important;text-decoration:underline!important}._left_czmub_157{justify-content:flex-start!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--space-unit, 1em)!important;padding-bottom:0!important;text-align:left}._headerLogo_czmub_166{width:100px!important;height:40px!important;object-fit:contain;object-position:left}._debateNameWithLogo_czmub_173{padding-right:0!important;padding-left:0!important}
|
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import r from "classnames";
|
|
3
3
|
import "react";
|
|
4
|
-
import { FormattedMessage as
|
|
4
|
+
import { FormattedMessage as n } from "react-intl";
|
|
5
5
|
import e from "./EmbedHeader.module.scss.js";
|
|
6
|
-
import { Link as
|
|
7
|
-
const
|
|
8
|
-
title:
|
|
9
|
-
titleRedirectUrl:
|
|
10
|
-
headerLabel:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
logoUrl: s,
|
|
6
|
+
import { Link as o } from "../../action/link/Link.js";
|
|
7
|
+
const x = ({
|
|
8
|
+
title: m,
|
|
9
|
+
titleRedirectUrl: s,
|
|
10
|
+
headerLabel: l,
|
|
11
|
+
onlineUsersCount: t,
|
|
12
|
+
textLeft: c,
|
|
13
|
+
className: h,
|
|
14
|
+
logoUrl: d,
|
|
16
15
|
logoAlt: b
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
}) => /* @__PURE__ */ i("div", { className: r(e.headerBox, h), children: [
|
|
17
|
+
l && /* @__PURE__ */ i("div", { className: e.headerBoxLabel, children: [
|
|
18
|
+
/* @__PURE__ */ a(
|
|
19
|
+
o,
|
|
21
20
|
{
|
|
22
|
-
to:
|
|
21
|
+
to: s,
|
|
23
22
|
target: "_top",
|
|
24
23
|
external: !0,
|
|
25
24
|
"data-tid": "link_debate_index_embed",
|
|
26
25
|
rel: "nofollow",
|
|
27
|
-
children:
|
|
26
|
+
children: d ? /* @__PURE__ */ a(
|
|
28
27
|
"img",
|
|
29
28
|
{
|
|
30
29
|
loading: "lazy",
|
|
31
30
|
className: e.headerLogo,
|
|
32
|
-
src:
|
|
31
|
+
src: d,
|
|
33
32
|
width: 100,
|
|
34
33
|
height: 40,
|
|
35
34
|
alt: b
|
|
36
35
|
}
|
|
37
|
-
) : /* @__PURE__ */ a("div", { className: e.headerLabelText, children:
|
|
36
|
+
) : /* @__PURE__ */ a("div", { className: e.headerLabelText, children: l })
|
|
38
37
|
}
|
|
39
38
|
),
|
|
40
|
-
|
|
41
|
-
t && i ? /* @__PURE__ */ l("div", { className: e.headerLiveStat, children: [
|
|
39
|
+
t ? /* @__PURE__ */ i("div", { className: e.headerLiveStat, children: [
|
|
42
40
|
/* @__PURE__ */ a("div", { className: e.headerLiveNow }),
|
|
43
41
|
/* @__PURE__ */ a(
|
|
44
42
|
"span",
|
|
@@ -46,10 +44,10 @@ const g = ({
|
|
|
46
44
|
className: e.headerLivePin,
|
|
47
45
|
"data-testid": "online-users-count",
|
|
48
46
|
children: /* @__PURE__ */ a(
|
|
49
|
-
|
|
47
|
+
n,
|
|
50
48
|
{
|
|
51
49
|
id: "embed.embed_header.online_users",
|
|
52
|
-
values: { count:
|
|
50
|
+
values: { count: t },
|
|
53
51
|
defaultMessage: "{count} online users"
|
|
54
52
|
}
|
|
55
53
|
)
|
|
@@ -61,10 +59,10 @@ const g = ({
|
|
|
61
59
|
className: e.headerLivePinMobile,
|
|
62
60
|
"data-testid": "online-users-count-mobile",
|
|
63
61
|
children: /* @__PURE__ */ a(
|
|
64
|
-
|
|
62
|
+
n,
|
|
65
63
|
{
|
|
66
64
|
id: "embed.embed_header.online",
|
|
67
|
-
values: { count:
|
|
65
|
+
values: { count: t },
|
|
68
66
|
defaultMessage: "{count} online"
|
|
69
67
|
}
|
|
70
68
|
)
|
|
@@ -75,26 +73,26 @@ const g = ({
|
|
|
75
73
|
/* @__PURE__ */ a(
|
|
76
74
|
"div",
|
|
77
75
|
{
|
|
78
|
-
className:
|
|
79
|
-
[e.left]:
|
|
80
|
-
[e.debateNameWithLogo]:
|
|
76
|
+
className: r(e.debateName, {
|
|
77
|
+
[e.left]: c,
|
|
78
|
+
[e.debateNameWithLogo]: d
|
|
81
79
|
}),
|
|
82
80
|
"data-testid": "debate-name",
|
|
83
81
|
children: /* @__PURE__ */ a(
|
|
84
|
-
|
|
82
|
+
o,
|
|
85
83
|
{
|
|
86
84
|
className: e.debateLink,
|
|
87
|
-
to:
|
|
85
|
+
to: s,
|
|
88
86
|
target: "_top",
|
|
89
87
|
external: !0,
|
|
90
88
|
"data-tid": "link_debate_title_embed",
|
|
91
89
|
rel: "nofollow",
|
|
92
|
-
children:
|
|
90
|
+
children: m
|
|
93
91
|
}
|
|
94
92
|
)
|
|
95
93
|
}
|
|
96
94
|
)
|
|
97
95
|
] });
|
|
98
96
|
export {
|
|
99
|
-
|
|
97
|
+
x as EmbedHeader
|
|
100
98
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import '../../../assets/components/embed/embed_header/EmbedHeader.module-
|
|
1
|
+
import '../../../assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css';const e = "_headerBox_czmub_3", a = "_headerBoxLabel_czmub_9", t = "_headerLiveStat_czmub_24", o = "_headerLiveNow_czmub_43", _ = "_headerLivePin_czmub_72", d = "_headerLivePinMobile_czmub_81", b = "_headerLabelText_czmub_100", h = "_debateName_czmub_115", i = "_debateLink_czmub_139", L = "_left_czmub_157", c = "_headerLogo_czmub_166", r = "_debateNameWithLogo_czmub_173", n = {
|
|
2
2
|
headerBox: e,
|
|
3
3
|
headerBoxLabel: a,
|
|
4
4
|
headerLiveStat: t,
|
|
5
5
|
headerLiveNow: o,
|
|
6
6
|
headerLivePin: _,
|
|
7
7
|
headerLivePinMobile: d,
|
|
8
|
-
headerLabelText:
|
|
8
|
+
headerLabelText: b,
|
|
9
9
|
debateName: h,
|
|
10
10
|
debateLink: i,
|
|
11
11
|
left: L,
|
|
12
|
-
headerLogo:
|
|
13
|
-
debateNameWithLogo:
|
|
12
|
+
headerLogo: c,
|
|
13
|
+
debateNameWithLogo: r
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
16
|
i as debateLink,
|
|
17
17
|
h as debateName,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
r as debateNameWithLogo,
|
|
19
|
+
n as default,
|
|
20
20
|
e as headerBox,
|
|
21
21
|
a as headerBoxLabel,
|
|
22
|
-
|
|
22
|
+
b as headerLabelText,
|
|
23
23
|
o as headerLiveNow,
|
|
24
24
|
_ as headerLivePin,
|
|
25
25
|
d as headerLivePinMobile,
|
|
26
26
|
t as headerLiveStat,
|
|
27
|
-
|
|
27
|
+
c as headerLogo,
|
|
28
28
|
L as left
|
|
29
29
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._headerBox_p2vn2_3{display:flex!important;flex-direction:column!important;padding:0!important}._headerBoxLabel_p2vn2_9{display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._headerBoxLabel_p2vn2_9>._titleRedirectUrl_p2vn2_16{background:var(--background-color-primary, white)!important}._headerBoxLabel_p2vn2_9>._titleRedirectUrl_p2vn2_16:hover{background:var(--background-color-primary, white)!important}._headerBoxLabel_p2vn2_9 a{text-decoration:none!important}._headerLiveStat_p2vn2_27{margin-left:auto!important;margin-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;color:var(--call-primary-color, #434343);font-size:var(--font-size-small, 16px);margin-left:30px}._headerLiveStat_p2vn2_27 span{margin-left:10px;margin-bottom:0!important}@media(prefers-color-scheme:dark){.logoraDarkMode ._headerLiveStat_p2vn2_27{color:#fff!important}.logoraDarkMode ._headerLiveNow_p2vn2_46{background-color:#fff!important}.logoraDarkMode ._headerLiveNow_p2vn2_46:before{background-color:#fff!important}}._headerLiveNow_p2vn2_46{min-width:8px;width:8px;height:8px;border-radius:50%;background-color:var(--call-primary-color, #434343);position:relative}._headerLiveNow_p2vn2_46:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background-color:var(--call-primary-color, #434343);opacity:.4;animation-name:_livePin_p2vn2_1;animation-duration:1.6s;animation-iteration-count:infinite}@container (min-width: 576px){._headerLivePin_p2vn2_75{display:block!important}}._headerLivePin_p2vn2_75{display:none!important}@container (min-width: 576px){._headerLivePinMobile_p2vn2_84{display:none!important}}._headerLivePinMobile_p2vn2_84{display:block!important}@keyframes _livePin_p2vn2_1{0%{transform:scale(2.3)}50%{transform:scale(0)}to{transform:scale(2.3)}}._headerLabelText_p2vn2_103{background-color:var(--call-primary-color, #434343);color:var(--text-light, white);border-bottom:1px solid;border-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px) 0 var(--box-border-radius, 6px) 0;font-size:var(--font-size-normal, 16px);flex-wrap:nowrap;white-space:nowrap;padding-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._debateName_p2vn2_118{color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);text-align:center;width:100%;display:flex!important;align-items:center!important;justify-content:center!important;padding-bottom:0!important;padding-top:var(--space-unit, 1em)!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}@container (min-width: 576px){._debateName_p2vn2_118{padding-right:0!important}}@container (min-width: 576px){._debateName_p2vn2_118{padding-left:0!important}}._debateName_p2vn2_118 a._debateLink_p2vn2_142{color:var(--text-primary, #222222)!important}._debateLink_p2vn2_142{font-size:var(--font-size-large, 20px);line-height:var(--line-height-normal, 1.26em);background:var(--background-color-primary, white)!important;text-decoration:none!important;color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._debateLink_p2vn2_142:hover{background:var(--background-color-primary, white)!important;text-decoration:underline!important}._left_p2vn2_160{justify-content:flex-start!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--space-unit, 1em)!important;padding-bottom:0!important;text-align:left}._headerLogo_p2vn2_169{width:100px!important;height:40px!important;object-fit:contain;object-position:left}._debateNameWithLogo_p2vn2_176{padding-right:0!important;padding-left:0!important}
|