@platform-x/hcltechx-mfe-wrapper 2.0.52 → 2.0.53
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/{ArticleVodList-Cj_nAPnG.mjs → ArticleVodList-Dsyyfp6e.mjs} +138 -380
- package/ArticleVodListComponent-PlsH-f5h.mjs +29 -0
- package/{ChallengeDetailComponent-kF-tb095.mjs → ChallengeDetailComponent-BVQEIRup.mjs} +44 -52
- package/CommonContentComponent-H-QExV88.mjs +72 -0
- package/{DailyMotion-0-c2CjmZ.mjs → DailyMotion-DdNE34qp.mjs} +3 -3
- package/{EngagementHomeComponent-B6LFyKjA.mjs → EngagementHomeComponent-DCX0si1h.mjs} +52 -60
- package/{EventDetailComponent-Cl8k2wJl.mjs → EventDetailComponent-D9w_19gt.mjs} +34 -42
- package/{EventList-CxFoCi9G.mjs → EventList-339OFsl3.mjs} +470 -1282
- package/EventListComponent-DtIBqM0T.mjs +85 -0
- package/{Facebook-D3mBmxJ4.mjs → Facebook-DhQeIyvB.mjs} +1 -1
- package/{FilePlayer-ChxlE7Mq.mjs → FilePlayer-BsJrOpAP.mjs} +3 -3
- package/{FilterModal-Co-pXytt.mjs → FilterModal-CF2QgDkk.mjs} +82 -211
- package/{IndividualChallengeComponent-lcfNvAG2.mjs → IndividualChallengeComponent-ZMWhw023.mjs} +40 -48
- package/{Kaltura-CVM_RV_2.mjs → Kaltura-CGVRq0mj.mjs} +1 -1
- package/{Mixcloud-CrAs0_VC.mjs → Mixcloud-Dhs4QuRX.mjs} +1 -1
- package/{Mux-DUOqA2mZ.mjs → Mux-DwiqqZNF.mjs} +1 -1
- package/PageComponent-BRn03517.mjs +73 -0
- package/{Preview-BAaYuYFo.mjs → Preview-Ctmbj649.mjs} +1 -1
- package/RecentCarousel-DucxR0dk.mjs +247 -0
- package/Share-BpDSCb81.mjs +1578 -0
- package/{SoundCloud-CJSQ2ZP7.mjs → SoundCloud-CHShAvYz.mjs} +3 -3
- package/{Streamable-CcMyPRKJ.mjs → Streamable-pFKgEoyk.mjs} +1 -1
- package/{Twitch-zIalaDyC.mjs → Twitch-G3mDoLJD.mjs} +4 -4
- package/{Vidyard-DYZnDhS1.mjs → Vidyard-CoJmezRy.mjs} +3 -3
- package/{Vimeo-B9h2Hwv0.mjs → Vimeo-DY3pPtZi.mjs} +1 -1
- package/{Wistia-iTgHdNz1.mjs → Wistia-Cs2ATiGV.mjs} +1 -1
- package/{YouTube-jcHqrx6u.mjs → YouTube-DqH8hN56.mjs} +15 -15
- package/{index-CFrb1iB4.mjs → index-DILUBQmh.mjs} +98841 -110084
- package/index-DVpfQAPU.mjs +704 -0
- package/index.mjs +2 -2
- package/package.json +2 -2
- package/ArticleVodListComponent-COHApmSr.mjs +0 -37
- package/CommonContentComponent-F8B9Upz1.mjs +0 -80
- package/EventListComponent-C3kGym6X.mjs +0 -93
- package/PageComponent-C1KnYfvg.mjs +0 -101
- package/RecentCarousel-Ijkg2aEl.mjs +0 -342
- package/Share-DxWLmWXU.mjs +0 -1938
- package/index-DpnyhOiJ.mjs +0 -1235
|
@@ -0,0 +1,1578 @@
|
|
|
1
|
+
import he, { jsx as a, jsxs as k, Fragment as we } from "react/jsx-runtime";
|
|
2
|
+
import * as pe from "react";
|
|
3
|
+
import fe, { forwardRef as ge, useState as M, useEffect as ne, useRef as me, useCallback as be } from "react";
|
|
4
|
+
import { i as ve, j as xe, k as ye, _ as z, u as ke, l as Ce, n as Se, P as x, o as Ae, p as Le, q as ie, r as _e, t as je, v as Pe, w as Ee, x as re, G as T, B as m, y as Te, z as Ne, T as _, A as We, S as R, D as Z, H as Be, J as De, K as Oe, L as Re, M as J } from "./index-DILUBQmh.mjs";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
function He(e) {
|
|
7
|
+
return xe("MuiCardActions", e);
|
|
8
|
+
}
|
|
9
|
+
ve("MuiCardActions", ["root", "spacing"]);
|
|
10
|
+
const Me = ["disableSpacing", "className"], $e = (e) => {
|
|
11
|
+
const {
|
|
12
|
+
classes: t,
|
|
13
|
+
disableSpacing: n
|
|
14
|
+
} = e;
|
|
15
|
+
return Ae({
|
|
16
|
+
root: ["root", !n && "spacing"]
|
|
17
|
+
}, He, t);
|
|
18
|
+
}, Ue = ye("div", {
|
|
19
|
+
name: "MuiCardActions",
|
|
20
|
+
slot: "Root",
|
|
21
|
+
overridesResolver: (e, t) => {
|
|
22
|
+
const {
|
|
23
|
+
ownerState: n
|
|
24
|
+
} = e;
|
|
25
|
+
return [t.root, !n.disableSpacing && t.spacing];
|
|
26
|
+
}
|
|
27
|
+
})(({
|
|
28
|
+
ownerState: e
|
|
29
|
+
}) => z({
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
padding: 8
|
|
33
|
+
}, !e.disableSpacing && {
|
|
34
|
+
"& > :not(:first-of-type)": {
|
|
35
|
+
marginLeft: 8
|
|
36
|
+
}
|
|
37
|
+
})), oe = /* @__PURE__ */ pe.forwardRef(function(t, n) {
|
|
38
|
+
const i = ke({
|
|
39
|
+
props: t,
|
|
40
|
+
name: "MuiCardActions"
|
|
41
|
+
}), {
|
|
42
|
+
disableSpacing: r = !1,
|
|
43
|
+
className: c
|
|
44
|
+
} = i, l = Ce(i, Me), u = z({}, i, {
|
|
45
|
+
disableSpacing: r
|
|
46
|
+
}), s = $e(u);
|
|
47
|
+
return /* @__PURE__ */ a(Ue, z({
|
|
48
|
+
className: Se(s.root, c),
|
|
49
|
+
ownerState: u,
|
|
50
|
+
ref: n
|
|
51
|
+
}, l));
|
|
52
|
+
});
|
|
53
|
+
process.env.NODE_ENV !== "production" && (oe.propTypes = {
|
|
54
|
+
// ----------------------------- Warning --------------------------------
|
|
55
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
57
|
+
// ----------------------------------------------------------------------
|
|
58
|
+
/**
|
|
59
|
+
* The content of the component.
|
|
60
|
+
*/
|
|
61
|
+
children: x.node,
|
|
62
|
+
/**
|
|
63
|
+
* Override or extend the styles applied to the component.
|
|
64
|
+
*/
|
|
65
|
+
classes: x.object,
|
|
66
|
+
/**
|
|
67
|
+
* @ignore
|
|
68
|
+
*/
|
|
69
|
+
className: x.string,
|
|
70
|
+
/**
|
|
71
|
+
* If `true`, the actions do not have additional margin.
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
disableSpacing: x.bool,
|
|
75
|
+
/**
|
|
76
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
77
|
+
*/
|
|
78
|
+
sx: x.oneOfType([x.arrayOf(x.oneOfType([x.func, x.object, x.bool])), x.func, x.object])
|
|
79
|
+
});
|
|
80
|
+
const Ve = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.828%209.41a.794.794%200%200%201-.556-.23.793.793%200%200%201%200-1.12l1.682-1.681a1.587%201.587%200%200%200%200-2.246l-1.127-1.127a1.635%201.635%200%200%200-2.245%200L7.9%204.688a.793.793%200%200%201-1.12-1.11l1.683-1.683a3.253%203.253%200%200%201%204.491%200l1.12%201.12a3.176%203.176%200%200%201%200%204.49L12.382%209.18a.793.793%200%200%201-.555.23zM4.536%2015.718a3.173%203.173%200%200%201-2.246-.928L1.171%2013.67a3.175%203.175%200%200%201%200-4.491l1.69-1.683a.793.793%200%200%201%201.111%201.12L2.29%2010.298a1.586%201.586%200%200%200%200%202.245l1.127%201.127a1.635%201.635%200%200%200%202.245%200l1.683-1.682a.793.793%200%201%201%201.119%201.11L6.78%2014.783a3.174%203.174%200%200%201-2.245.936z'%20fill='%232D2D39'/%3e%3cpath%20d='M5.099%2011.655a.793.793%200%200%201-.564-1.356L9.59%205.252a.794.794%200%201%201%201.119%201.127l-5.055%205.046a.793.793%200%200%201-.555.23z'%20fill='%232D2D39'/%3e%3c/svg%3e", ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD6SURBVHgB7ZM9CsIwGIa/GI8gWkV0dyhdXHTxCN5APIl6E0dXN0fdxEmldFYqkrZnaD6ToRj736pbXwh88CbPEwIBqFLlr9H10UKusr0MTTuMiEsxThqN9tbznkztDWNkcI4b2WtaDxzHPuQWKHDwfZxb1mkX3sOYzVqt7h2ATNMkNBt+XENCXPdxzpLQsvC8EvoNPI+kFmzinJNgrtcpQsEQ8j6jsqhyi32z2SUiEwCcalr/Jm5xyQPX9fEMka/lLF5hZZrHZURQVpIGjwiKSrLgsYI4SafT3jL2+dEGg6Eh+l0aPFGgSsR4uF5Pm3Avf3bQJ8GrVPlNXpHyzr4dW2vdAAAAAElFTkSuQmCC", Ke = "data:image/svg+xml,%3csvg%20width='9'%20height='16'%20viewBox='0%200%209%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.069%205.153H5.555V3.525c0-.612.41-.754.699-.754h1.774V.083L5.585.073c-2.713%200-3.33%202.005-3.33%203.288v1.792H.687v2.77h1.568v7.837h3.3V7.923H7.78l.288-2.77z'%20fill='%232D2D39'/%3e%3c/svg%3e", Fe = "data:image/svg+xml,%3csvg%20width='15'%20height='14'%20viewBox='0%200%2015%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.26%2014H0V4.455h3.26V14zM1.632%203.182C.73%203.182%200%202.468%200%201.59%200%20.712.73%200%201.631%200c.899%200%201.63.713%201.63%201.59%200%20.878-.731%201.592-1.63%201.592zM15%2014h-3.135V9.355c0-1.108-.021-2.533-1.63-2.533-1.632%200-1.883%201.206-1.883%202.452V14H5.217V4.448h3.01v1.305h.042c.419-.751%201.442-1.543%202.968-1.543C14.413%204.21%2015%206.19%2015%208.76V14z'%20fill='%232D2D39'/%3e%3c/svg%3e";
|
|
81
|
+
var K = { exports: {} }, F = { exports: {} }, N = 1e3, W = N * 60, B = W * 60, D = B * 24, Ge = D * 365.25, qe = function(e, t) {
|
|
82
|
+
t = t || {};
|
|
83
|
+
var n = typeof e;
|
|
84
|
+
if (n === "string" && e.length > 0)
|
|
85
|
+
return Xe(e);
|
|
86
|
+
if (n === "number" && isNaN(e) === !1)
|
|
87
|
+
return t.long ? Ye(e) : Qe(e);
|
|
88
|
+
throw new Error(
|
|
89
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(e)
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
function Xe(e) {
|
|
93
|
+
if (e = String(e), !(e.length > 100)) {
|
|
94
|
+
var t = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
|
|
95
|
+
e
|
|
96
|
+
);
|
|
97
|
+
if (t) {
|
|
98
|
+
var n = parseFloat(t[1]), i = (t[2] || "ms").toLowerCase();
|
|
99
|
+
switch (i) {
|
|
100
|
+
case "years":
|
|
101
|
+
case "year":
|
|
102
|
+
case "yrs":
|
|
103
|
+
case "yr":
|
|
104
|
+
case "y":
|
|
105
|
+
return n * Ge;
|
|
106
|
+
case "days":
|
|
107
|
+
case "day":
|
|
108
|
+
case "d":
|
|
109
|
+
return n * D;
|
|
110
|
+
case "hours":
|
|
111
|
+
case "hour":
|
|
112
|
+
case "hrs":
|
|
113
|
+
case "hr":
|
|
114
|
+
case "h":
|
|
115
|
+
return n * B;
|
|
116
|
+
case "minutes":
|
|
117
|
+
case "minute":
|
|
118
|
+
case "mins":
|
|
119
|
+
case "min":
|
|
120
|
+
case "m":
|
|
121
|
+
return n * W;
|
|
122
|
+
case "seconds":
|
|
123
|
+
case "second":
|
|
124
|
+
case "secs":
|
|
125
|
+
case "sec":
|
|
126
|
+
case "s":
|
|
127
|
+
return n * N;
|
|
128
|
+
case "milliseconds":
|
|
129
|
+
case "millisecond":
|
|
130
|
+
case "msecs":
|
|
131
|
+
case "msec":
|
|
132
|
+
case "ms":
|
|
133
|
+
return n;
|
|
134
|
+
default:
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function Qe(e) {
|
|
141
|
+
return e >= D ? Math.round(e / D) + "d" : e >= B ? Math.round(e / B) + "h" : e >= W ? Math.round(e / W) + "m" : e >= N ? Math.round(e / N) + "s" : e + "ms";
|
|
142
|
+
}
|
|
143
|
+
function Ye(e) {
|
|
144
|
+
return H(e, D, "day") || H(e, B, "hour") || H(e, W, "minute") || H(e, N, "second") || e + " ms";
|
|
145
|
+
}
|
|
146
|
+
function H(e, t, n) {
|
|
147
|
+
if (!(e < t))
|
|
148
|
+
return e < t * 1.5 ? Math.floor(e / t) + " " + n : Math.ceil(e / t) + " " + n + "s";
|
|
149
|
+
}
|
|
150
|
+
(function(e, t) {
|
|
151
|
+
t = e.exports = r.debug = r.default = r, t.coerce = s, t.disable = l, t.enable = c, t.enabled = u, t.humanize = qe, t.names = [], t.skips = [], t.formatters = {};
|
|
152
|
+
var n;
|
|
153
|
+
function i(o) {
|
|
154
|
+
var d = 0, h;
|
|
155
|
+
for (h in o)
|
|
156
|
+
d = (d << 5) - d + o.charCodeAt(h), d |= 0;
|
|
157
|
+
return t.colors[Math.abs(d) % t.colors.length];
|
|
158
|
+
}
|
|
159
|
+
function r(o) {
|
|
160
|
+
function d() {
|
|
161
|
+
if (d.enabled) {
|
|
162
|
+
var h = d, p = +/* @__PURE__ */ new Date(), v = p - (n || p);
|
|
163
|
+
h.diff = v, h.prev = n, h.curr = p, n = p;
|
|
164
|
+
for (var b = new Array(arguments.length), A = 0; A < b.length; A++)
|
|
165
|
+
b[A] = arguments[A];
|
|
166
|
+
b[0] = t.coerce(b[0]), typeof b[0] != "string" && b.unshift("%O");
|
|
167
|
+
var C = 0;
|
|
168
|
+
b[0] = b[0].replace(/%([a-zA-Z%])/g, function(S, U) {
|
|
169
|
+
if (S === "%%")
|
|
170
|
+
return S;
|
|
171
|
+
C++;
|
|
172
|
+
var E = t.formatters[U];
|
|
173
|
+
if (typeof E == "function") {
|
|
174
|
+
var V = b[C];
|
|
175
|
+
S = E.call(h, V), b.splice(C, 1), C--;
|
|
176
|
+
}
|
|
177
|
+
return S;
|
|
178
|
+
}), t.formatArgs.call(h, b);
|
|
179
|
+
var L = d.log || t.log || console.log.bind(console);
|
|
180
|
+
L.apply(h, b);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return d.namespace = o, d.enabled = t.enabled(o), d.useColors = t.useColors(), d.color = i(o), typeof t.init == "function" && t.init(d), d;
|
|
184
|
+
}
|
|
185
|
+
function c(o) {
|
|
186
|
+
t.save(o), t.names = [], t.skips = [];
|
|
187
|
+
for (var d = (typeof o == "string" ? o : "").split(/[\s,]+/), h = d.length, p = 0; p < h; p++)
|
|
188
|
+
d[p] && (o = d[p].replace(/\*/g, ".*?"), o[0] === "-" ? t.skips.push(new RegExp("^" + o.substr(1) + "$")) : t.names.push(new RegExp("^" + o + "$")));
|
|
189
|
+
}
|
|
190
|
+
function l() {
|
|
191
|
+
t.enable("");
|
|
192
|
+
}
|
|
193
|
+
function u(o) {
|
|
194
|
+
var d, h;
|
|
195
|
+
for (d = 0, h = t.skips.length; d < h; d++)
|
|
196
|
+
if (t.skips[d].test(o))
|
|
197
|
+
return !1;
|
|
198
|
+
for (d = 0, h = t.names.length; d < h; d++)
|
|
199
|
+
if (t.names[d].test(o))
|
|
200
|
+
return !0;
|
|
201
|
+
return !1;
|
|
202
|
+
}
|
|
203
|
+
function s(o) {
|
|
204
|
+
return o instanceof Error ? o.stack || o.message : o;
|
|
205
|
+
}
|
|
206
|
+
})(F, F.exports);
|
|
207
|
+
var Ze = F.exports;
|
|
208
|
+
(function(e, t) {
|
|
209
|
+
t = e.exports = Ze, t.log = r, t.formatArgs = i, t.save = c, t.load = l, t.useColors = n, t.storage = typeof chrome < "u" && typeof chrome.storage < "u" ? chrome.storage.local : u(), t.colors = [
|
|
210
|
+
"lightseagreen",
|
|
211
|
+
"forestgreen",
|
|
212
|
+
"goldenrod",
|
|
213
|
+
"dodgerblue",
|
|
214
|
+
"darkorchid",
|
|
215
|
+
"crimson"
|
|
216
|
+
];
|
|
217
|
+
function n() {
|
|
218
|
+
return typeof window < "u" && window.process && window.process.type === "renderer" ? !0 : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773
|
|
219
|
+
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?
|
|
220
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
221
|
+
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker
|
|
222
|
+
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
223
|
+
}
|
|
224
|
+
t.formatters.j = function(s) {
|
|
225
|
+
try {
|
|
226
|
+
return JSON.stringify(s);
|
|
227
|
+
} catch (o) {
|
|
228
|
+
return "[UnexpectedJSONParseError]: " + o.message;
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
function i(s) {
|
|
232
|
+
var o = this.useColors;
|
|
233
|
+
if (s[0] = (o ? "%c" : "") + this.namespace + (o ? " %c" : " ") + s[0] + (o ? "%c " : " ") + "+" + t.humanize(this.diff), !!o) {
|
|
234
|
+
var d = "color: " + this.color;
|
|
235
|
+
s.splice(1, 0, d, "color: inherit");
|
|
236
|
+
var h = 0, p = 0;
|
|
237
|
+
s[0].replace(/%[a-zA-Z%]/g, function(v) {
|
|
238
|
+
v !== "%%" && (h++, v === "%c" && (p = h));
|
|
239
|
+
}), s.splice(p, 0, d);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
function r() {
|
|
243
|
+
return typeof console == "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
|
|
244
|
+
}
|
|
245
|
+
function c(s) {
|
|
246
|
+
try {
|
|
247
|
+
s == null ? t.storage.removeItem("debug") : t.storage.debug = s;
|
|
248
|
+
} catch {
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function l() {
|
|
252
|
+
var s;
|
|
253
|
+
try {
|
|
254
|
+
s = t.storage.debug;
|
|
255
|
+
} catch {
|
|
256
|
+
}
|
|
257
|
+
return !s && typeof process < "u" && "env" in process && (s = process.env.DEBUG), s;
|
|
258
|
+
}
|
|
259
|
+
t.enable(l());
|
|
260
|
+
function u() {
|
|
261
|
+
try {
|
|
262
|
+
return window.localStorage;
|
|
263
|
+
} catch {
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
})(K, K.exports);
|
|
267
|
+
var Je = K.exports, I = Je("jsonp"), Ie = nt, et = 0;
|
|
268
|
+
function tt() {
|
|
269
|
+
}
|
|
270
|
+
function nt(e, t, n) {
|
|
271
|
+
typeof t == "function" && (n = t, t = {}), t || (t = {});
|
|
272
|
+
var i = t.prefix || "__jp", r = t.name || i + et++, c = t.param || "callback", l = t.timeout != null ? t.timeout : 6e4, u = encodeURIComponent, s = document.getElementsByTagName("script")[0] || document.head, o, d;
|
|
273
|
+
l && (d = setTimeout(function() {
|
|
274
|
+
h(), n && n(new Error("Timeout"));
|
|
275
|
+
}, l));
|
|
276
|
+
function h() {
|
|
277
|
+
o.parentNode && o.parentNode.removeChild(o), window[r] = tt, d && clearTimeout(d);
|
|
278
|
+
}
|
|
279
|
+
function p() {
|
|
280
|
+
window[r] && h();
|
|
281
|
+
}
|
|
282
|
+
return window[r] = function(v) {
|
|
283
|
+
I("jsonp got", v), h(), n && n(null, v);
|
|
284
|
+
}, e += (~e.indexOf("?") ? "&" : "?") + c + "=" + u(r), e = e.replace("?&", "?"), I('jsonp req "%s"', e), o = document.createElement("script"), o.src = e, s.parentNode.insertBefore(o, s), p;
|
|
285
|
+
}
|
|
286
|
+
const j = /* @__PURE__ */ Le(Ie);
|
|
287
|
+
var it = Object.defineProperty, rt = Object.defineProperties, ot = Object.getOwnPropertyDescriptors, $ = Object.getOwnPropertySymbols, ae = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable, ee = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, y = (e, t) => {
|
|
288
|
+
for (var n in t || (t = {}))
|
|
289
|
+
ae.call(t, n) && ee(e, n, t[n]);
|
|
290
|
+
if ($)
|
|
291
|
+
for (var n of $(t))
|
|
292
|
+
se.call(t, n) && ee(e, n, t[n]);
|
|
293
|
+
return e;
|
|
294
|
+
}, G = (e, t) => rt(e, ot(t)), q = (e, t) => {
|
|
295
|
+
var n = {};
|
|
296
|
+
for (var i in e)
|
|
297
|
+
ae.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
298
|
+
if (e != null && $)
|
|
299
|
+
for (var i of $(e))
|
|
300
|
+
t.indexOf(i) < 0 && se.call(e, i) && (n[i] = e[i]);
|
|
301
|
+
return n;
|
|
302
|
+
};
|
|
303
|
+
function w(e) {
|
|
304
|
+
const t = Object.entries(e).filter(([, n]) => n != null).map(([n, i]) => `${encodeURIComponent(n)}=${encodeURIComponent(String(i))}`);
|
|
305
|
+
return t.length > 0 ? `?${t.join("&")}` : "";
|
|
306
|
+
}
|
|
307
|
+
const at = (e) => !!e && (typeof e == "object" || typeof e == "function") && typeof e.then == "function", st = (e, t) => ({
|
|
308
|
+
left: window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - e / 2,
|
|
309
|
+
top: window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - t / 2
|
|
310
|
+
}), dt = (e, t) => ({
|
|
311
|
+
top: (window.screen.height - t) / 2,
|
|
312
|
+
left: (window.screen.width - e) / 2
|
|
313
|
+
});
|
|
314
|
+
function lt(e, t, n) {
|
|
315
|
+
var i = t, { height: r, width: c } = i, l = q(i, ["height", "width"]);
|
|
316
|
+
const u = y({
|
|
317
|
+
height: r,
|
|
318
|
+
width: c,
|
|
319
|
+
location: "no",
|
|
320
|
+
toolbar: "no",
|
|
321
|
+
status: "no",
|
|
322
|
+
directories: "no",
|
|
323
|
+
menubar: "no",
|
|
324
|
+
scrollbars: "yes",
|
|
325
|
+
resizable: "no",
|
|
326
|
+
centerscreen: "yes",
|
|
327
|
+
chrome: "yes"
|
|
328
|
+
}, l), s = window.open(
|
|
329
|
+
e,
|
|
330
|
+
"",
|
|
331
|
+
Object.keys(u).map((o) => `${o}=${u[o]}`).join(", ")
|
|
332
|
+
);
|
|
333
|
+
if (n) {
|
|
334
|
+
const o = window.setInterval(() => {
|
|
335
|
+
try {
|
|
336
|
+
(s === null || s.closed) && (window.clearInterval(o), n(s));
|
|
337
|
+
} catch (d) {
|
|
338
|
+
console.error(d);
|
|
339
|
+
}
|
|
340
|
+
}, 1e3);
|
|
341
|
+
}
|
|
342
|
+
return s;
|
|
343
|
+
}
|
|
344
|
+
function ct(e) {
|
|
345
|
+
var t = e, {
|
|
346
|
+
beforeOnClick: n,
|
|
347
|
+
children: i,
|
|
348
|
+
className: r,
|
|
349
|
+
disabled: c,
|
|
350
|
+
disabledStyle: l = { opacity: 0.6 },
|
|
351
|
+
forwardedRef: u,
|
|
352
|
+
htmlTitle: s,
|
|
353
|
+
networkLink: o,
|
|
354
|
+
networkName: d,
|
|
355
|
+
onClick: h,
|
|
356
|
+
onShareWindowClose: p,
|
|
357
|
+
openShareDialogOnClick: v = !0,
|
|
358
|
+
opts: b,
|
|
359
|
+
resetButtonStyle: A = !0,
|
|
360
|
+
style: C,
|
|
361
|
+
url: L,
|
|
362
|
+
windowHeight: S = 400,
|
|
363
|
+
windowPosition: U = "windowCenter",
|
|
364
|
+
windowWidth: E = 550
|
|
365
|
+
} = t, V = q(t, [
|
|
366
|
+
"beforeOnClick",
|
|
367
|
+
"children",
|
|
368
|
+
"className",
|
|
369
|
+
"disabled",
|
|
370
|
+
"disabledStyle",
|
|
371
|
+
"forwardedRef",
|
|
372
|
+
"htmlTitle",
|
|
373
|
+
"networkLink",
|
|
374
|
+
"networkName",
|
|
375
|
+
"onClick",
|
|
376
|
+
"onShareWindowClose",
|
|
377
|
+
"openShareDialogOnClick",
|
|
378
|
+
"opts",
|
|
379
|
+
"resetButtonStyle",
|
|
380
|
+
"style",
|
|
381
|
+
"url",
|
|
382
|
+
"windowHeight",
|
|
383
|
+
"windowPosition",
|
|
384
|
+
"windowWidth"
|
|
385
|
+
]);
|
|
386
|
+
const le = async (Q) => {
|
|
387
|
+
const Y = o(L, b);
|
|
388
|
+
if (!c) {
|
|
389
|
+
if (Q.preventDefault(), n) {
|
|
390
|
+
const O = n();
|
|
391
|
+
at(O) && await O;
|
|
392
|
+
}
|
|
393
|
+
if (v) {
|
|
394
|
+
const O = y({
|
|
395
|
+
height: S,
|
|
396
|
+
width: E
|
|
397
|
+
}, U === "windowCenter" ? st(E, S) : dt(E, S));
|
|
398
|
+
lt(Y, O, p);
|
|
399
|
+
}
|
|
400
|
+
h && h(Q, Y);
|
|
401
|
+
}
|
|
402
|
+
}, ce = ie(
|
|
403
|
+
"react-share__ShareButton",
|
|
404
|
+
{
|
|
405
|
+
"react-share__ShareButton--disabled": !!c,
|
|
406
|
+
disabled: !!c
|
|
407
|
+
},
|
|
408
|
+
r
|
|
409
|
+
), ue = y(y(A ? {
|
|
410
|
+
backgroundColor: "transparent",
|
|
411
|
+
border: "none",
|
|
412
|
+
padding: 0,
|
|
413
|
+
font: "inherit",
|
|
414
|
+
color: "inherit",
|
|
415
|
+
cursor: "pointer"
|
|
416
|
+
} : {}, C), c && l);
|
|
417
|
+
return /* @__PURE__ */ a(
|
|
418
|
+
"button",
|
|
419
|
+
G(y({}, V), {
|
|
420
|
+
className: ce,
|
|
421
|
+
onClick: le,
|
|
422
|
+
ref: u,
|
|
423
|
+
style: ue,
|
|
424
|
+
title: s,
|
|
425
|
+
children: i
|
|
426
|
+
})
|
|
427
|
+
);
|
|
428
|
+
}
|
|
429
|
+
function g(e, t, n, i) {
|
|
430
|
+
function r(c, l) {
|
|
431
|
+
const u = n(c), s = y({}, c);
|
|
432
|
+
return Object.keys(u).forEach((d) => {
|
|
433
|
+
delete s[d];
|
|
434
|
+
}), /* @__PURE__ */ a(
|
|
435
|
+
ct,
|
|
436
|
+
G(y(y({}, i), s), {
|
|
437
|
+
forwardedRef: l,
|
|
438
|
+
networkName: e,
|
|
439
|
+
networkLink: t,
|
|
440
|
+
opts: n(c)
|
|
441
|
+
})
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
return r.displayName = `ShareButton-${e}`, ge(r);
|
|
445
|
+
}
|
|
446
|
+
function ut(e, { subject: t, body: n, separator: i }) {
|
|
447
|
+
return "mailto:" + w({ subject: t, body: n ? n + i + e : e });
|
|
448
|
+
}
|
|
449
|
+
g(
|
|
450
|
+
"email",
|
|
451
|
+
ut,
|
|
452
|
+
(e) => ({
|
|
453
|
+
subject: e.subject,
|
|
454
|
+
body: e.body,
|
|
455
|
+
separator: e.separator || " "
|
|
456
|
+
}),
|
|
457
|
+
{
|
|
458
|
+
openShareDialogOnClick: !1,
|
|
459
|
+
onClick: (e, t) => {
|
|
460
|
+
window.location.href = t;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
);
|
|
464
|
+
function ht(e, { appId: t, redirectUri: n, to: i }) {
|
|
465
|
+
return "https://www.facebook.com/dialog/send" + w({
|
|
466
|
+
link: e,
|
|
467
|
+
redirect_uri: n || e,
|
|
468
|
+
app_id: t,
|
|
469
|
+
to: i
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
g(
|
|
473
|
+
"facebookmessenger",
|
|
474
|
+
ht,
|
|
475
|
+
(e) => ({
|
|
476
|
+
appId: e.appId,
|
|
477
|
+
redirectUri: e.redirectUri,
|
|
478
|
+
to: e.to
|
|
479
|
+
}),
|
|
480
|
+
{
|
|
481
|
+
windowWidth: 1e3,
|
|
482
|
+
windowHeight: 820
|
|
483
|
+
}
|
|
484
|
+
);
|
|
485
|
+
class wt extends Error {
|
|
486
|
+
constructor(t) {
|
|
487
|
+
super(t), this.name = "AssertionError";
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function f(e, t) {
|
|
491
|
+
if (!e)
|
|
492
|
+
throw new wt(t);
|
|
493
|
+
}
|
|
494
|
+
function pt(e, { hashtag: t }) {
|
|
495
|
+
return f(e, "facebook.url"), "https://www.facebook.com/sharer/sharer.php" + w({ u: e, hashtag: t });
|
|
496
|
+
}
|
|
497
|
+
const ft = g(
|
|
498
|
+
"facebook",
|
|
499
|
+
pt,
|
|
500
|
+
(e) => ({ hashtag: e.hashtag }),
|
|
501
|
+
{
|
|
502
|
+
windowWidth: 550,
|
|
503
|
+
windowHeight: 400
|
|
504
|
+
}
|
|
505
|
+
), gt = ft;
|
|
506
|
+
function mt() {
|
|
507
|
+
const e = me(!1);
|
|
508
|
+
return ne(() => (e.current = !0, () => {
|
|
509
|
+
e.current = !1;
|
|
510
|
+
}), []), be(() => e.current, []);
|
|
511
|
+
}
|
|
512
|
+
function bt(e) {
|
|
513
|
+
var t = e, {
|
|
514
|
+
children: n = (p) => p,
|
|
515
|
+
className: i,
|
|
516
|
+
getCount: r,
|
|
517
|
+
url: c
|
|
518
|
+
} = t, l = q(t, [
|
|
519
|
+
"children",
|
|
520
|
+
"className",
|
|
521
|
+
"getCount",
|
|
522
|
+
"url"
|
|
523
|
+
]);
|
|
524
|
+
const u = mt(), [s, o] = M(void 0), [d, h] = M(!1);
|
|
525
|
+
return ne(() => {
|
|
526
|
+
h(!0), r(c, (p) => {
|
|
527
|
+
u() && (o(p), h(!1));
|
|
528
|
+
});
|
|
529
|
+
}, [c]), /* @__PURE__ */ a("span", G(y({ className: ie("react-share__ShareCount", i) }, l), { children: !d && s !== void 0 && n(s) }));
|
|
530
|
+
}
|
|
531
|
+
function P(e) {
|
|
532
|
+
const t = (n) => /* @__PURE__ */ a(bt, y({ getCount: e }, n));
|
|
533
|
+
return t.displayName = `ShareCount(${e.name})`, t;
|
|
534
|
+
}
|
|
535
|
+
function vt(e, t) {
|
|
536
|
+
const n = `https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;
|
|
537
|
+
j(n, (i, r) => {
|
|
538
|
+
t(
|
|
539
|
+
!i && r && r.og_object && r.og_object.engagement ? r.og_object.engagement.count : void 0
|
|
540
|
+
);
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
P(vt);
|
|
544
|
+
function xt(e, { title: t }) {
|
|
545
|
+
return f(e, "hatena.url"), `http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`;
|
|
546
|
+
}
|
|
547
|
+
g(
|
|
548
|
+
"hatena",
|
|
549
|
+
xt,
|
|
550
|
+
(e) => ({
|
|
551
|
+
title: e.title
|
|
552
|
+
}),
|
|
553
|
+
{
|
|
554
|
+
windowWidth: 660,
|
|
555
|
+
windowHeight: 460,
|
|
556
|
+
windowPosition: "windowCenter"
|
|
557
|
+
}
|
|
558
|
+
);
|
|
559
|
+
function yt(e, t) {
|
|
560
|
+
j(
|
|
561
|
+
"https://bookmark.hatenaapis.com/count/entry" + w({
|
|
562
|
+
url: e
|
|
563
|
+
}),
|
|
564
|
+
(i, r) => {
|
|
565
|
+
t(r ?? void 0);
|
|
566
|
+
}
|
|
567
|
+
);
|
|
568
|
+
}
|
|
569
|
+
P(yt);
|
|
570
|
+
function kt(e, { title: t, description: n }) {
|
|
571
|
+
return f(e, "instapaper.url"), "http://www.instapaper.com/hello2" + w({
|
|
572
|
+
url: e,
|
|
573
|
+
title: t,
|
|
574
|
+
description: n
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
g(
|
|
578
|
+
"instapaper",
|
|
579
|
+
kt,
|
|
580
|
+
(e) => ({
|
|
581
|
+
title: e.title,
|
|
582
|
+
description: e.description
|
|
583
|
+
}),
|
|
584
|
+
{
|
|
585
|
+
windowWidth: 500,
|
|
586
|
+
windowHeight: 500,
|
|
587
|
+
windowPosition: "windowCenter"
|
|
588
|
+
}
|
|
589
|
+
);
|
|
590
|
+
function Ct(e, { title: t }) {
|
|
591
|
+
return f(e, "line.url"), "https://social-plugins.line.me/lineit/share" + w({
|
|
592
|
+
url: e,
|
|
593
|
+
text: t
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
g(
|
|
597
|
+
"line",
|
|
598
|
+
Ct,
|
|
599
|
+
(e) => ({
|
|
600
|
+
title: e.title
|
|
601
|
+
}),
|
|
602
|
+
{
|
|
603
|
+
windowWidth: 500,
|
|
604
|
+
windowHeight: 500
|
|
605
|
+
}
|
|
606
|
+
);
|
|
607
|
+
function St(e, { title: t, summary: n, source: i }) {
|
|
608
|
+
return f(e, "linkedin.url"), "https://linkedin.com/shareArticle" + w({ url: e, mini: "true", title: t, summary: n, source: i });
|
|
609
|
+
}
|
|
610
|
+
const At = g(
|
|
611
|
+
"linkedin",
|
|
612
|
+
St,
|
|
613
|
+
({ title: e, summary: t, source: n }) => ({ title: e, summary: t, source: n }),
|
|
614
|
+
{
|
|
615
|
+
windowWidth: 750,
|
|
616
|
+
windowHeight: 600
|
|
617
|
+
}
|
|
618
|
+
), Lt = At;
|
|
619
|
+
function _t(e, { title: t, description: n }) {
|
|
620
|
+
return f(e, "livejournal.url"), "https://www.livejournal.com/update.bml" + w({
|
|
621
|
+
subject: t,
|
|
622
|
+
event: n
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
g(
|
|
626
|
+
"livejournal",
|
|
627
|
+
_t,
|
|
628
|
+
(e) => ({
|
|
629
|
+
title: e.title,
|
|
630
|
+
description: e.description
|
|
631
|
+
}),
|
|
632
|
+
{
|
|
633
|
+
windowWidth: 660,
|
|
634
|
+
windowHeight: 460
|
|
635
|
+
}
|
|
636
|
+
);
|
|
637
|
+
function jt(e, { title: t, description: n, imageUrl: i }) {
|
|
638
|
+
return f(e, "mailru.url"), "https://connect.mail.ru/share" + w({
|
|
639
|
+
url: e,
|
|
640
|
+
title: t,
|
|
641
|
+
description: n,
|
|
642
|
+
image_url: i
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
g(
|
|
646
|
+
"mailru",
|
|
647
|
+
jt,
|
|
648
|
+
(e) => ({
|
|
649
|
+
title: e.title,
|
|
650
|
+
description: e.description,
|
|
651
|
+
imageUrl: e.imageUrl
|
|
652
|
+
}),
|
|
653
|
+
{
|
|
654
|
+
windowWidth: 660,
|
|
655
|
+
windowHeight: 460
|
|
656
|
+
}
|
|
657
|
+
);
|
|
658
|
+
function Pt(e, { title: t, description: n, image: i }) {
|
|
659
|
+
return f(e, "ok.url"), "https://connect.ok.ru/offer" + w({
|
|
660
|
+
url: e,
|
|
661
|
+
title: t,
|
|
662
|
+
description: n,
|
|
663
|
+
imageUrl: i
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
g(
|
|
667
|
+
"ok",
|
|
668
|
+
Pt,
|
|
669
|
+
(e) => ({
|
|
670
|
+
title: e.title,
|
|
671
|
+
description: e.description,
|
|
672
|
+
image: e.image
|
|
673
|
+
}),
|
|
674
|
+
{
|
|
675
|
+
windowWidth: 588,
|
|
676
|
+
windowHeight: 480,
|
|
677
|
+
windowPosition: "screenCenter"
|
|
678
|
+
}
|
|
679
|
+
);
|
|
680
|
+
function Et(e, t) {
|
|
681
|
+
window.OK || (window.OK = {
|
|
682
|
+
Share: {
|
|
683
|
+
count: function(c, l) {
|
|
684
|
+
var u, s;
|
|
685
|
+
(s = (u = window.OK.callbacks)[c]) == null || s.call(u, l);
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
callbacks: []
|
|
689
|
+
});
|
|
690
|
+
const n = "https://connect.ok.ru/dk", i = window.OK.callbacks.length;
|
|
691
|
+
return window.ODKL = {
|
|
692
|
+
updateCount(r, c) {
|
|
693
|
+
var l, u;
|
|
694
|
+
const s = r === "" ? 0 : parseInt(r.replace("react-share-", ""), 10);
|
|
695
|
+
(u = (l = window.OK.callbacks)[s]) == null || u.call(l, c === "" ? void 0 : parseInt(c, 10));
|
|
696
|
+
}
|
|
697
|
+
}, window.OK.callbacks.push(t), j(
|
|
698
|
+
n + w({
|
|
699
|
+
"st.cmd": "extLike",
|
|
700
|
+
uid: `react-share-${i}`,
|
|
701
|
+
ref: e
|
|
702
|
+
})
|
|
703
|
+
);
|
|
704
|
+
}
|
|
705
|
+
P(Et);
|
|
706
|
+
function Tt(e, { media: t, description: n, pinId: i }) {
|
|
707
|
+
return i ? `https://pinterest.com/pin/${i}/repin/x/` : (f(e, "pinterest.url"), f(t, "pinterest.media"), "https://pinterest.com/pin/create/button/" + w({
|
|
708
|
+
url: e,
|
|
709
|
+
media: t,
|
|
710
|
+
description: n
|
|
711
|
+
}));
|
|
712
|
+
}
|
|
713
|
+
g(
|
|
714
|
+
"pinterest",
|
|
715
|
+
Tt,
|
|
716
|
+
(e) => ({
|
|
717
|
+
media: e.media,
|
|
718
|
+
description: e.description,
|
|
719
|
+
pinId: e.pinId
|
|
720
|
+
}),
|
|
721
|
+
{
|
|
722
|
+
windowWidth: 1e3,
|
|
723
|
+
windowHeight: 730
|
|
724
|
+
}
|
|
725
|
+
);
|
|
726
|
+
function Nt(e, t) {
|
|
727
|
+
j(
|
|
728
|
+
"https://api.pinterest.com/v1/urls/count.json" + w({
|
|
729
|
+
url: e
|
|
730
|
+
}),
|
|
731
|
+
(i, r) => {
|
|
732
|
+
t(r ? r.count : void 0);
|
|
733
|
+
}
|
|
734
|
+
);
|
|
735
|
+
}
|
|
736
|
+
P(Nt);
|
|
737
|
+
function Wt(e, { title: t }) {
|
|
738
|
+
return f(e, "pocket.url"), "https://getpocket.com/save" + w({
|
|
739
|
+
url: e,
|
|
740
|
+
title: t
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
g(
|
|
744
|
+
"pocket",
|
|
745
|
+
Wt,
|
|
746
|
+
(e) => ({
|
|
747
|
+
title: e.title
|
|
748
|
+
}),
|
|
749
|
+
{
|
|
750
|
+
windowWidth: 500,
|
|
751
|
+
windowHeight: 500
|
|
752
|
+
}
|
|
753
|
+
);
|
|
754
|
+
function Bt(e, { title: t }) {
|
|
755
|
+
return f(e, "reddit.url"), "https://www.reddit.com/submit" + w({
|
|
756
|
+
url: e,
|
|
757
|
+
title: t
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
g(
|
|
761
|
+
"reddit",
|
|
762
|
+
Bt,
|
|
763
|
+
(e) => ({
|
|
764
|
+
title: e.title
|
|
765
|
+
}),
|
|
766
|
+
{
|
|
767
|
+
windowWidth: 660,
|
|
768
|
+
windowHeight: 460,
|
|
769
|
+
windowPosition: "windowCenter"
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
function Dt(e, { title: t }) {
|
|
773
|
+
return f(e, "gab.url"), "https://gab.com/compose" + w({
|
|
774
|
+
url: e,
|
|
775
|
+
text: t
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
g(
|
|
779
|
+
"gab",
|
|
780
|
+
Dt,
|
|
781
|
+
(e) => ({
|
|
782
|
+
title: e.title
|
|
783
|
+
}),
|
|
784
|
+
{
|
|
785
|
+
windowWidth: 660,
|
|
786
|
+
windowHeight: 640,
|
|
787
|
+
windowPosition: "windowCenter"
|
|
788
|
+
}
|
|
789
|
+
);
|
|
790
|
+
function Ot(e, t) {
|
|
791
|
+
const n = `https://www.reddit.com/api/info.json?limit=1&url=${e}`;
|
|
792
|
+
j(n, { param: "jsonp" }, (i, r) => {
|
|
793
|
+
t(
|
|
794
|
+
!i && r && r.data && r.data.children.length > 0 && r.data.children[0].data.score ? r.data.children[0].data.score : void 0
|
|
795
|
+
);
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
P(Ot);
|
|
799
|
+
function Rt(e, { title: t }) {
|
|
800
|
+
return f(e, "telegram.url"), "https://telegram.me/share/url" + w({
|
|
801
|
+
url: e,
|
|
802
|
+
text: t
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
g(
|
|
806
|
+
"telegram",
|
|
807
|
+
Rt,
|
|
808
|
+
(e) => ({
|
|
809
|
+
title: e.title
|
|
810
|
+
}),
|
|
811
|
+
{
|
|
812
|
+
windowWidth: 550,
|
|
813
|
+
windowHeight: 400
|
|
814
|
+
}
|
|
815
|
+
);
|
|
816
|
+
function Ht(e, {
|
|
817
|
+
title: t,
|
|
818
|
+
caption: n,
|
|
819
|
+
tags: i,
|
|
820
|
+
posttype: r
|
|
821
|
+
}) {
|
|
822
|
+
return f(e, "tumblr.url"), "https://www.tumblr.com/widgets/share/tool" + w({
|
|
823
|
+
canonicalUrl: e,
|
|
824
|
+
title: t,
|
|
825
|
+
caption: n,
|
|
826
|
+
tags: i,
|
|
827
|
+
posttype: r
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
g(
|
|
831
|
+
"tumblr",
|
|
832
|
+
Ht,
|
|
833
|
+
(e) => ({
|
|
834
|
+
title: e.title,
|
|
835
|
+
tags: (e.tags || []).join(","),
|
|
836
|
+
caption: e.caption,
|
|
837
|
+
posttype: e.posttype || "link"
|
|
838
|
+
}),
|
|
839
|
+
{
|
|
840
|
+
windowWidth: 660,
|
|
841
|
+
windowHeight: 460
|
|
842
|
+
}
|
|
843
|
+
);
|
|
844
|
+
function Mt(e, t) {
|
|
845
|
+
return j(
|
|
846
|
+
"https://api.tumblr.com/v2/share/stats" + w({
|
|
847
|
+
url: e
|
|
848
|
+
}),
|
|
849
|
+
(i, r) => {
|
|
850
|
+
t(!i && r && r.response ? r.response.note_count : void 0);
|
|
851
|
+
}
|
|
852
|
+
);
|
|
853
|
+
}
|
|
854
|
+
P(Mt);
|
|
855
|
+
function $t(e, {
|
|
856
|
+
title: t,
|
|
857
|
+
via: n,
|
|
858
|
+
hashtags: i = [],
|
|
859
|
+
related: r = []
|
|
860
|
+
}) {
|
|
861
|
+
return f(e, "twitter.url"), f(Array.isArray(i), "twitter.hashtags is not an array"), f(Array.isArray(r), "twitter.related is not an array"), "https://twitter.com/intent/tweet" + w({
|
|
862
|
+
url: e,
|
|
863
|
+
text: t,
|
|
864
|
+
via: n,
|
|
865
|
+
hashtags: i.length > 0 ? i.join(",") : void 0,
|
|
866
|
+
related: r.length > 0 ? r.join(",") : void 0
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
g(
|
|
870
|
+
"twitter",
|
|
871
|
+
$t,
|
|
872
|
+
(e) => ({
|
|
873
|
+
hashtags: e.hashtags,
|
|
874
|
+
title: e.title,
|
|
875
|
+
via: e.via,
|
|
876
|
+
related: e.related
|
|
877
|
+
}),
|
|
878
|
+
{
|
|
879
|
+
windowWidth: 550,
|
|
880
|
+
windowHeight: 400
|
|
881
|
+
}
|
|
882
|
+
);
|
|
883
|
+
function Ut(e, { title: t, separator: n }) {
|
|
884
|
+
return f(e, "viber.url"), "viber://forward" + w({
|
|
885
|
+
text: t ? t + n + e : e
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
g(
|
|
889
|
+
"viber",
|
|
890
|
+
Ut,
|
|
891
|
+
(e) => ({
|
|
892
|
+
title: e.title,
|
|
893
|
+
separator: e.separator || " "
|
|
894
|
+
}),
|
|
895
|
+
{
|
|
896
|
+
windowWidth: 660,
|
|
897
|
+
windowHeight: 460
|
|
898
|
+
}
|
|
899
|
+
);
|
|
900
|
+
function Vt(e, { title: t, image: n, noParse: i, noVkLinks: r }) {
|
|
901
|
+
return f(e, "vk.url"), "https://vk.com/share.php" + w({
|
|
902
|
+
url: e,
|
|
903
|
+
title: t,
|
|
904
|
+
image: n,
|
|
905
|
+
noparse: i ? 1 : 0,
|
|
906
|
+
no_vk_links: r ? 1 : 0
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
g(
|
|
910
|
+
"vk",
|
|
911
|
+
Vt,
|
|
912
|
+
(e) => ({
|
|
913
|
+
title: e.title,
|
|
914
|
+
image: e.image,
|
|
915
|
+
noParse: e.noParse,
|
|
916
|
+
noVkLinks: e.noVkLinks
|
|
917
|
+
}),
|
|
918
|
+
{
|
|
919
|
+
windowWidth: 660,
|
|
920
|
+
windowHeight: 460
|
|
921
|
+
}
|
|
922
|
+
);
|
|
923
|
+
function zt(e, t) {
|
|
924
|
+
window.VK || (window.VK = {}), window.VK.Share = {
|
|
925
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
926
|
+
count: (r, c) => {
|
|
927
|
+
var l, u;
|
|
928
|
+
return (u = (l = window.VK.callbacks) == null ? void 0 : l[r]) == null ? void 0 : u.call(l, c);
|
|
929
|
+
}
|
|
930
|
+
}, window.VK.callbacks = [];
|
|
931
|
+
const n = "https://vk.com/share.php", i = window.VK.callbacks.length;
|
|
932
|
+
return window.VK.callbacks.push(t), j(
|
|
933
|
+
n + w({
|
|
934
|
+
act: "count",
|
|
935
|
+
index: i,
|
|
936
|
+
url: e
|
|
937
|
+
})
|
|
938
|
+
);
|
|
939
|
+
}
|
|
940
|
+
P(zt);
|
|
941
|
+
function Kt(e, { title: t, image: n }) {
|
|
942
|
+
return f(e, "weibo.url"), "http://service.weibo.com/share/share.php" + w({
|
|
943
|
+
url: e,
|
|
944
|
+
title: t,
|
|
945
|
+
pic: n
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
g(
|
|
949
|
+
"weibo",
|
|
950
|
+
Kt,
|
|
951
|
+
(e) => ({
|
|
952
|
+
title: e.title,
|
|
953
|
+
image: e.image
|
|
954
|
+
}),
|
|
955
|
+
{
|
|
956
|
+
windowWidth: 660,
|
|
957
|
+
windowHeight: 550,
|
|
958
|
+
windowPosition: "screenCenter"
|
|
959
|
+
}
|
|
960
|
+
);
|
|
961
|
+
function Ft() {
|
|
962
|
+
return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);
|
|
963
|
+
}
|
|
964
|
+
function Gt(e, { title: t, separator: n }) {
|
|
965
|
+
return f(e, "whatsapp.url"), "https://" + (Ft() ? "api" : "web") + ".whatsapp.com/send" + w({
|
|
966
|
+
text: t ? t + n + e : e
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
g(
|
|
970
|
+
"whatsapp",
|
|
971
|
+
Gt,
|
|
972
|
+
(e) => ({
|
|
973
|
+
title: e.title,
|
|
974
|
+
separator: e.separator || " "
|
|
975
|
+
}),
|
|
976
|
+
{
|
|
977
|
+
windowWidth: 550,
|
|
978
|
+
windowHeight: 400
|
|
979
|
+
}
|
|
980
|
+
);
|
|
981
|
+
function qt(e, { quote: t, hashtag: n }) {
|
|
982
|
+
return f(e, "workplace.url"), "https://work.facebook.com/sharer.php" + w({
|
|
983
|
+
u: e,
|
|
984
|
+
quote: t,
|
|
985
|
+
hashtag: n
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
g(
|
|
989
|
+
"workplace",
|
|
990
|
+
qt,
|
|
991
|
+
(e) => ({
|
|
992
|
+
quote: e.quote,
|
|
993
|
+
hashtag: e.hashtag
|
|
994
|
+
}),
|
|
995
|
+
{
|
|
996
|
+
windowWidth: 550,
|
|
997
|
+
windowHeight: 400
|
|
998
|
+
}
|
|
999
|
+
);
|
|
1000
|
+
var X = {}, Xt = je;
|
|
1001
|
+
Object.defineProperty(X, "__esModule", {
|
|
1002
|
+
value: !0
|
|
1003
|
+
});
|
|
1004
|
+
var de = X.default = void 0, Qt = Xt(_e()), Yt = he, Zt = (0, Qt.default)(/* @__PURE__ */ (0, Yt.jsx)("circle", {
|
|
1005
|
+
cx: "12",
|
|
1006
|
+
cy: "12",
|
|
1007
|
+
r: "8"
|
|
1008
|
+
}), "FiberManualRecord");
|
|
1009
|
+
de = X.default = Zt;
|
|
1010
|
+
const Jt = Pe((e) => {
|
|
1011
|
+
var t, n, i, r, c, l, u, s, o;
|
|
1012
|
+
return {
|
|
1013
|
+
embedDesktopTabCardWp: {
|
|
1014
|
+
boxShadow: "none !important",
|
|
1015
|
+
overflow: "hidden",
|
|
1016
|
+
borderRadius: `${(t = e == null ? void 0 : e.borderRadius) == null ? void 0 : t.value} !important`,
|
|
1017
|
+
border: `1px solid ${(i = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.customColor) == null ? void 0 : i.LINE}`,
|
|
1018
|
+
background: (c = (r = e == null ? void 0 : e.palette) == null ? void 0 : r.customColor) == null ? void 0 : c.BGLIGHT,
|
|
1019
|
+
cursor: "pointer",
|
|
1020
|
+
"& .card-container": {
|
|
1021
|
+
width: "100%",
|
|
1022
|
+
overflow: "hidden",
|
|
1023
|
+
[e.breakpoints.up("sm")]: {
|
|
1024
|
+
height: "270px"
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
"& .card-content-area": {
|
|
1028
|
+
overflow: "hidden",
|
|
1029
|
+
display: "flex",
|
|
1030
|
+
flexDirection: "column",
|
|
1031
|
+
background: (u = (l = e == null ? void 0 : e.palette) == null ? void 0 : l.customColor) == null ? void 0 : u.BGLIGHT,
|
|
1032
|
+
"& .contentBox": {
|
|
1033
|
+
flex: "1 0 auto",
|
|
1034
|
+
padding: "20px 20px 0px 20px !important",
|
|
1035
|
+
overflow: "hidden",
|
|
1036
|
+
flexDirection: "column",
|
|
1037
|
+
[e.breakpoints.down("sm")]: {
|
|
1038
|
+
overflow: "initial"
|
|
1039
|
+
},
|
|
1040
|
+
"& .cardActionWp": {
|
|
1041
|
+
borderTop: `1px solid ${(o = (s = e == null ? void 0 : e.palette) == null ? void 0 : s.customColor) == null ? void 0 : o.LINE}`,
|
|
1042
|
+
padding: "20px 0px",
|
|
1043
|
+
display: "flex",
|
|
1044
|
+
justifyContent: "start",
|
|
1045
|
+
width: "100%",
|
|
1046
|
+
marginTop: "20px",
|
|
1047
|
+
[e.breakpoints.down("sm")]: {
|
|
1048
|
+
alignItems: "baseline"
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
"& .TopContentBox": {
|
|
1052
|
+
width: "100%"
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
1058
|
+
}), It = `
|
|
1059
|
+
.doticon .Platform-x-SvgIcon-root{
|
|
1060
|
+
font-size: 6px;
|
|
1061
|
+
}
|
|
1062
|
+
.doticon svg.MuiSvgIcon-root {
|
|
1063
|
+
font-size: 6px;
|
|
1064
|
+
}
|
|
1065
|
+
.embededtitle {
|
|
1066
|
+
display: -webkit-box;
|
|
1067
|
+
-webkit-box-orient: vertical;
|
|
1068
|
+
overflow: hidden;
|
|
1069
|
+
word-wrap: break-word;
|
|
1070
|
+
}
|
|
1071
|
+
.embededdesc {
|
|
1072
|
+
display: -webkit-box;
|
|
1073
|
+
-webkit-box-orient: vertical;
|
|
1074
|
+
overflow: hidden;
|
|
1075
|
+
word-wrap: break-word;
|
|
1076
|
+
}
|
|
1077
|
+
`, en = ({ content: e }) => {
|
|
1078
|
+
const t = Ee(e == null ? void 0 : e.Description) || "", n = Jt();
|
|
1079
|
+
return /* @__PURE__ */ a(
|
|
1080
|
+
re,
|
|
1081
|
+
{
|
|
1082
|
+
className: n.embedDesktopTabCardWp,
|
|
1083
|
+
sx: {
|
|
1084
|
+
margin: { xs: "8px 0px 8px 0", sm: "0" }
|
|
1085
|
+
},
|
|
1086
|
+
onClick: () => window.open(e == null ? void 0 : e.LandingPage, "_blank"),
|
|
1087
|
+
children: /* @__PURE__ */ k(T, { container: !0, children: [
|
|
1088
|
+
/* @__PURE__ */ k(T, { item: !0, xs: 12, className: "card-container", children: [
|
|
1089
|
+
/* @__PURE__ */ a("style", { children: It }),
|
|
1090
|
+
(e == null ? void 0 : e.colorCode) !== void 0 && (e == null ? void 0 : e.colorCode) !== "" ? /* @__PURE__ */ a(
|
|
1091
|
+
m,
|
|
1092
|
+
{
|
|
1093
|
+
sx: {
|
|
1094
|
+
height: "100%",
|
|
1095
|
+
width: "100%",
|
|
1096
|
+
background: e == null ? void 0 : e.colorCode
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
) : /* @__PURE__ */ a(
|
|
1100
|
+
Te,
|
|
1101
|
+
{
|
|
1102
|
+
component: "img",
|
|
1103
|
+
image: e == null ? void 0 : e.Thumbnail,
|
|
1104
|
+
sx: {
|
|
1105
|
+
overflow: "hidden",
|
|
1106
|
+
height: "100%"
|
|
1107
|
+
},
|
|
1108
|
+
alt: "Image",
|
|
1109
|
+
className: "cardmediaimg"
|
|
1110
|
+
}
|
|
1111
|
+
)
|
|
1112
|
+
] }),
|
|
1113
|
+
/* @__PURE__ */ a(T, { item: !0, xs: 12, className: "card-content-area", children: /* @__PURE__ */ k(Ne, { className: "contentBox", children: [
|
|
1114
|
+
/* @__PURE__ */ k(m, { className: "TopContentBox", children: [
|
|
1115
|
+
/* @__PURE__ */ a(
|
|
1116
|
+
_,
|
|
1117
|
+
{
|
|
1118
|
+
gutterBottom: !0,
|
|
1119
|
+
variant: "h3bold",
|
|
1120
|
+
className: "embededtitle",
|
|
1121
|
+
sx: {
|
|
1122
|
+
WebkitLineClamp: { xs: "2" }
|
|
1123
|
+
},
|
|
1124
|
+
children: e == null ? void 0 : e.Title
|
|
1125
|
+
}
|
|
1126
|
+
),
|
|
1127
|
+
/* @__PURE__ */ a(
|
|
1128
|
+
_,
|
|
1129
|
+
{
|
|
1130
|
+
variant: "p3regular",
|
|
1131
|
+
sx: {
|
|
1132
|
+
WebkitLineClamp: { xs: "2" }
|
|
1133
|
+
},
|
|
1134
|
+
className: "embededdesc",
|
|
1135
|
+
children: t
|
|
1136
|
+
}
|
|
1137
|
+
)
|
|
1138
|
+
] }),
|
|
1139
|
+
/* @__PURE__ */ k(oe, { className: "cardActionWp", children: [
|
|
1140
|
+
/* @__PURE__ */ a(_, { variant: "p4semibold", children: e == null ? void 0 : e.Author }),
|
|
1141
|
+
/* @__PURE__ */ a(
|
|
1142
|
+
_,
|
|
1143
|
+
{
|
|
1144
|
+
variant: "p4regular",
|
|
1145
|
+
sx: {
|
|
1146
|
+
display: { xs: "block", sm: "none" },
|
|
1147
|
+
marginLeft: "8px"
|
|
1148
|
+
},
|
|
1149
|
+
className: "doticon",
|
|
1150
|
+
children: /* @__PURE__ */ a(de, {})
|
|
1151
|
+
}
|
|
1152
|
+
),
|
|
1153
|
+
/* @__PURE__ */ a(_, { variant: "p4regular", children: We(e == null ? void 0 : e.creationDate) })
|
|
1154
|
+
] })
|
|
1155
|
+
] }) })
|
|
1156
|
+
] })
|
|
1157
|
+
}
|
|
1158
|
+
);
|
|
1159
|
+
};
|
|
1160
|
+
function te({ maxWidth: e = 350, maxHeight: t }) {
|
|
1161
|
+
return /* @__PURE__ */ k(
|
|
1162
|
+
re,
|
|
1163
|
+
{
|
|
1164
|
+
sx: {
|
|
1165
|
+
maxWidth: e,
|
|
1166
|
+
maxHeight: t,
|
|
1167
|
+
m: 2,
|
|
1168
|
+
border: "none",
|
|
1169
|
+
boxShadow: "none"
|
|
1170
|
+
},
|
|
1171
|
+
children: [
|
|
1172
|
+
/* @__PURE__ */ a(R, { sx: { height: 190, marginBottom: 2 }, animation: "wave", variant: "rectangular" }),
|
|
1173
|
+
/* @__PURE__ */ a(R, { animation: "wave", width: "40%", height: 15, style: { marginBottom: 15 } }),
|
|
1174
|
+
/* @__PURE__ */ a(R, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }),
|
|
1175
|
+
/* @__PURE__ */ a(R, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } })
|
|
1176
|
+
]
|
|
1177
|
+
}
|
|
1178
|
+
);
|
|
1179
|
+
}
|
|
1180
|
+
const tn = ({ selectedItem: e }) => {
|
|
1181
|
+
const [t, n] = M(!1), i = {
|
|
1182
|
+
Title: e == null ? void 0 : e.Title,
|
|
1183
|
+
Description: e == null ? void 0 : e.Description,
|
|
1184
|
+
Thumbnail: e == null ? void 0 : e.Thumbnail,
|
|
1185
|
+
Author: e == null ? void 0 : e.Author,
|
|
1186
|
+
creationDate: e == null ? void 0 : e.creationDate,
|
|
1187
|
+
Page: e == null ? void 0 : e.Page,
|
|
1188
|
+
LandingPage: e == null ? void 0 : e.LandingPage,
|
|
1189
|
+
ContentURL: e == null ? void 0 : e.ContentURL
|
|
1190
|
+
}, r = `
|
|
1191
|
+
<iframe src="${i == null ? void 0 : i.Page}" width="360" height="203" style="border:none;overflow:hidden"></iframe>
|
|
1192
|
+
`, c = `
|
|
1193
|
+
<iframe src="${i == null ? void 0 : i.Page}" width="480" height="270" style="border:none;overflow:hidden"></iframe>
|
|
1194
|
+
`, l = (u) => {
|
|
1195
|
+
navigator.clipboard.writeText(u), n(!0);
|
|
1196
|
+
};
|
|
1197
|
+
return /* @__PURE__ */ a(
|
|
1198
|
+
m,
|
|
1199
|
+
{
|
|
1200
|
+
sx: {
|
|
1201
|
+
overflowY: "auto"
|
|
1202
|
+
},
|
|
1203
|
+
children: /* @__PURE__ */ k(T, { container: !0, children: [
|
|
1204
|
+
/* @__PURE__ */ a(
|
|
1205
|
+
T,
|
|
1206
|
+
{
|
|
1207
|
+
item: !0,
|
|
1208
|
+
xs: 12,
|
|
1209
|
+
em: 7,
|
|
1210
|
+
sx: {
|
|
1211
|
+
background: "#f5f6f8",
|
|
1212
|
+
display: "flex",
|
|
1213
|
+
alignItems: { xs: "start", md: "center" },
|
|
1214
|
+
height: { xs: "520px", sm: "initial", md: "initial", em: "480px" }
|
|
1215
|
+
},
|
|
1216
|
+
children: /* @__PURE__ */ a(
|
|
1217
|
+
m,
|
|
1218
|
+
{
|
|
1219
|
+
sx: {
|
|
1220
|
+
width: { xs: "100%", md: "100%", lg: "100%" },
|
|
1221
|
+
padding: {
|
|
1222
|
+
xs: "56px 10px 0px 10px",
|
|
1223
|
+
md: "65px 0px"
|
|
1224
|
+
// lg: "82px 20px",
|
|
1225
|
+
},
|
|
1226
|
+
display: "flex",
|
|
1227
|
+
justifyContent: "center",
|
|
1228
|
+
alignItems: "center"
|
|
1229
|
+
},
|
|
1230
|
+
className: "card1",
|
|
1231
|
+
children: e && (e != null && e.Thumbnail) ? /* @__PURE__ */ a(en, { content: i }) : /* @__PURE__ */ a(te, { maxWidth: 480, maxHeight: 500 })
|
|
1232
|
+
}
|
|
1233
|
+
)
|
|
1234
|
+
}
|
|
1235
|
+
),
|
|
1236
|
+
/* @__PURE__ */ a(
|
|
1237
|
+
T,
|
|
1238
|
+
{
|
|
1239
|
+
item: !0,
|
|
1240
|
+
xs: 12,
|
|
1241
|
+
em: 5,
|
|
1242
|
+
sx: {
|
|
1243
|
+
padding: {
|
|
1244
|
+
xs: "30px 10px 0px 10px",
|
|
1245
|
+
sm: "30px 20px 0px 20px",
|
|
1246
|
+
md: "35px 25px",
|
|
1247
|
+
lg: "0px 25px 0px 20px"
|
|
1248
|
+
},
|
|
1249
|
+
display: "flex",
|
|
1250
|
+
justifyContent: "center",
|
|
1251
|
+
alignItems: "center"
|
|
1252
|
+
},
|
|
1253
|
+
children: /* @__PURE__ */ a(
|
|
1254
|
+
m,
|
|
1255
|
+
{
|
|
1256
|
+
sx: {
|
|
1257
|
+
padding: {
|
|
1258
|
+
xs: "20px 0 0 0",
|
|
1259
|
+
md: "0"
|
|
1260
|
+
//lg: '20px 0px 0 0',
|
|
1261
|
+
},
|
|
1262
|
+
width: { xs: "360px", sm: "480px" }
|
|
1263
|
+
},
|
|
1264
|
+
children: e && (e != null && e.Thumbnail) ? /* @__PURE__ */ k(we, { children: [
|
|
1265
|
+
/* @__PURE__ */ k(
|
|
1266
|
+
m,
|
|
1267
|
+
{
|
|
1268
|
+
sx: {
|
|
1269
|
+
marginBottom: { md: "25px", lg: "0" },
|
|
1270
|
+
padding: { xs: "0 0 10px 0", md: "0" }
|
|
1271
|
+
},
|
|
1272
|
+
children: [
|
|
1273
|
+
/* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(
|
|
1274
|
+
_,
|
|
1275
|
+
{
|
|
1276
|
+
variant: "h3bold",
|
|
1277
|
+
color: "textColor1",
|
|
1278
|
+
padding: 0,
|
|
1279
|
+
margin: 0,
|
|
1280
|
+
sx: { textTransform: "capitalize" },
|
|
1281
|
+
children: "Social Embed link"
|
|
1282
|
+
}
|
|
1283
|
+
) }),
|
|
1284
|
+
/* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(
|
|
1285
|
+
_,
|
|
1286
|
+
{
|
|
1287
|
+
variant: "h7regular",
|
|
1288
|
+
padding: 0,
|
|
1289
|
+
margin: 0,
|
|
1290
|
+
sx: { color: "#89909a" },
|
|
1291
|
+
children: "Embed this content type anywhere on the web"
|
|
1292
|
+
}
|
|
1293
|
+
) })
|
|
1294
|
+
]
|
|
1295
|
+
}
|
|
1296
|
+
),
|
|
1297
|
+
/* @__PURE__ */ a(
|
|
1298
|
+
m,
|
|
1299
|
+
{
|
|
1300
|
+
sx: {
|
|
1301
|
+
height: { lg: "295px", xl: "225px" },
|
|
1302
|
+
// height: "auto",
|
|
1303
|
+
overflowY: "auto",
|
|
1304
|
+
borderRadius: "5px",
|
|
1305
|
+
border: "solid 1px #ced3d9",
|
|
1306
|
+
flexGrow: " 0",
|
|
1307
|
+
margin: { lg: "18px 0 34px" },
|
|
1308
|
+
padding: "16px 20px 24px 25px",
|
|
1309
|
+
overflowWrap: "break-word",
|
|
1310
|
+
display: { xs: "block", md: "none" },
|
|
1311
|
+
fontFamily: "Roboto Mono",
|
|
1312
|
+
wordBreak: "break-word"
|
|
1313
|
+
},
|
|
1314
|
+
children: r
|
|
1315
|
+
}
|
|
1316
|
+
),
|
|
1317
|
+
/* @__PURE__ */ a(
|
|
1318
|
+
m,
|
|
1319
|
+
{
|
|
1320
|
+
sx: {
|
|
1321
|
+
height: { md: "215px", lg: "215px" },
|
|
1322
|
+
//height: 'auto',
|
|
1323
|
+
overflowY: "auto",
|
|
1324
|
+
borderRadius: "5px",
|
|
1325
|
+
border: "solid 1px #ced3d9",
|
|
1326
|
+
flexGrow: " 0",
|
|
1327
|
+
margin: { md: "15px 0" },
|
|
1328
|
+
padding: "16px 20px 24px 25px",
|
|
1329
|
+
overflowWrap: "break-word",
|
|
1330
|
+
display: { xs: "none", md: "block" },
|
|
1331
|
+
fontFamily: "Roboto Mono",
|
|
1332
|
+
wordBreak: "break-word"
|
|
1333
|
+
},
|
|
1334
|
+
children: c
|
|
1335
|
+
}
|
|
1336
|
+
),
|
|
1337
|
+
/* @__PURE__ */ k(
|
|
1338
|
+
m,
|
|
1339
|
+
{
|
|
1340
|
+
sx: {
|
|
1341
|
+
display: "flex",
|
|
1342
|
+
flexDirection: "row-reverse"
|
|
1343
|
+
},
|
|
1344
|
+
children: [
|
|
1345
|
+
/* @__PURE__ */ a(
|
|
1346
|
+
Z,
|
|
1347
|
+
{
|
|
1348
|
+
variant: "primaryButton1",
|
|
1349
|
+
sx: {
|
|
1350
|
+
display: { xs: "none", md: "flex" },
|
|
1351
|
+
margin: "0",
|
|
1352
|
+
padding: "0"
|
|
1353
|
+
},
|
|
1354
|
+
onClick: () => l(c),
|
|
1355
|
+
"data-testid": "copy-desktop-embedded-code",
|
|
1356
|
+
children: t ? "Copied" : "Copy Code"
|
|
1357
|
+
}
|
|
1358
|
+
),
|
|
1359
|
+
/* @__PURE__ */ a(
|
|
1360
|
+
Z,
|
|
1361
|
+
{
|
|
1362
|
+
variant: "primaryButton1",
|
|
1363
|
+
sx: {
|
|
1364
|
+
padding: "0",
|
|
1365
|
+
minWidth: { xs: "100%" },
|
|
1366
|
+
display: { xs: "flex", md: "none" },
|
|
1367
|
+
margin: { xs: "20px 0 0 0", md: 0 }
|
|
1368
|
+
},
|
|
1369
|
+
onClick: () => l(r),
|
|
1370
|
+
"data-testid": "copy-mobile-embedded-code",
|
|
1371
|
+
children: t ? "Copied" : "Copy Code"
|
|
1372
|
+
}
|
|
1373
|
+
)
|
|
1374
|
+
]
|
|
1375
|
+
}
|
|
1376
|
+
)
|
|
1377
|
+
] }) : /* @__PURE__ */ a(te, { maxWidth: 480, maxHeight: 500 })
|
|
1378
|
+
}
|
|
1379
|
+
)
|
|
1380
|
+
}
|
|
1381
|
+
)
|
|
1382
|
+
] })
|
|
1383
|
+
}
|
|
1384
|
+
);
|
|
1385
|
+
};
|
|
1386
|
+
function nn({
|
|
1387
|
+
isDialogOpen: e,
|
|
1388
|
+
closeEmbedButtonHandle: t,
|
|
1389
|
+
setSelectedItem: n
|
|
1390
|
+
}) {
|
|
1391
|
+
return /* @__PURE__ */ a(m, { className: "embedmodal", children: /* @__PURE__ */ k(
|
|
1392
|
+
Be,
|
|
1393
|
+
{
|
|
1394
|
+
fullWidth: !0,
|
|
1395
|
+
open: e,
|
|
1396
|
+
onClose: t,
|
|
1397
|
+
"aria-labelledby": "alert-dialog-title",
|
|
1398
|
+
"aria-describedby": "alert-dialog-description",
|
|
1399
|
+
PaperProps: {
|
|
1400
|
+
sx: {
|
|
1401
|
+
maxWidth: { xs: "97%", sm: "1080px" },
|
|
1402
|
+
width: "97%",
|
|
1403
|
+
margin: { xs: "0px" },
|
|
1404
|
+
overflow: "hidden",
|
|
1405
|
+
height: { md: "480px" }
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
sx: {
|
|
1409
|
+
display: "block",
|
|
1410
|
+
height: { xs: "100vh", sm: "auto" }
|
|
1411
|
+
},
|
|
1412
|
+
children: [
|
|
1413
|
+
/* @__PURE__ */ a(
|
|
1414
|
+
m,
|
|
1415
|
+
{
|
|
1416
|
+
sx: {
|
|
1417
|
+
paddingLeft: "20px",
|
|
1418
|
+
marginTop: "8px",
|
|
1419
|
+
marginLeft: { xs: "initial", md: "auto" },
|
|
1420
|
+
position: "absolute",
|
|
1421
|
+
right: "-10px"
|
|
1422
|
+
},
|
|
1423
|
+
children: /* @__PURE__ */ a(
|
|
1424
|
+
m,
|
|
1425
|
+
{
|
|
1426
|
+
sx: { textAlign: "right", cursor: "pointer", zIndex: "99999" },
|
|
1427
|
+
mt: 1,
|
|
1428
|
+
mr: 3,
|
|
1429
|
+
onClick: t,
|
|
1430
|
+
children: /* @__PURE__ */ a(De, {})
|
|
1431
|
+
}
|
|
1432
|
+
)
|
|
1433
|
+
}
|
|
1434
|
+
),
|
|
1435
|
+
/* @__PURE__ */ a(tn, { selectedItem: n })
|
|
1436
|
+
]
|
|
1437
|
+
}
|
|
1438
|
+
) });
|
|
1439
|
+
}
|
|
1440
|
+
const rn = (e) => {
|
|
1441
|
+
const t = Oe(), { shareUrl: n = "", domainUrl: i = "", enablePreview: r, showRecentArticles: c } = e, l = () => {
|
|
1442
|
+
if (e.whiteIcon)
|
|
1443
|
+
return {
|
|
1444
|
+
filter: "brightness(0) invert(1)"
|
|
1445
|
+
};
|
|
1446
|
+
}, u = (L = "#2d2d39") => ({
|
|
1447
|
+
display: "flex",
|
|
1448
|
+
justifyContent: "center",
|
|
1449
|
+
alignItems: "center",
|
|
1450
|
+
height: "33px !important",
|
|
1451
|
+
width: "33px !important",
|
|
1452
|
+
borderRadius: "3px",
|
|
1453
|
+
cursor: "pointer",
|
|
1454
|
+
marginRight: "12px",
|
|
1455
|
+
background: e.whiteIcon ? " " : t.palette.textColor,
|
|
1456
|
+
"&:hover": {
|
|
1457
|
+
img: {
|
|
1458
|
+
filter: "brightness(0) invert(1)"
|
|
1459
|
+
},
|
|
1460
|
+
background: L
|
|
1461
|
+
},
|
|
1462
|
+
border: e.border
|
|
1463
|
+
}), s = {
|
|
1464
|
+
display: "flex",
|
|
1465
|
+
justifyContent: "center",
|
|
1466
|
+
alignItems: "center",
|
|
1467
|
+
cursor: r ? "default" : "pointer"
|
|
1468
|
+
}, o = {
|
|
1469
|
+
opacity: 1
|
|
1470
|
+
}, d = async () => {
|
|
1471
|
+
"clipboard" in navigator && i ? (await navigator.clipboard.writeText(i), Re("URL copied successfully.")) : J(
|
|
1472
|
+
"We have not been able to complete the requested action. Please try again later"
|
|
1473
|
+
);
|
|
1474
|
+
}, h = () => {
|
|
1475
|
+
}, [p, v] = M(!1), b = (L = "") => {
|
|
1476
|
+
L || J(
|
|
1477
|
+
"We have not been able to complete the requested action. Please try again later"
|
|
1478
|
+
);
|
|
1479
|
+
}, A = () => {
|
|
1480
|
+
v(!0);
|
|
1481
|
+
}, C = () => {
|
|
1482
|
+
v(!1);
|
|
1483
|
+
};
|
|
1484
|
+
return /* @__PURE__ */ k(
|
|
1485
|
+
m,
|
|
1486
|
+
{
|
|
1487
|
+
sx: {
|
|
1488
|
+
display: "flex",
|
|
1489
|
+
mt: "5px"
|
|
1490
|
+
},
|
|
1491
|
+
children: [
|
|
1492
|
+
/* @__PURE__ */ a(
|
|
1493
|
+
gt,
|
|
1494
|
+
{
|
|
1495
|
+
disabled: r,
|
|
1496
|
+
onClick: () => !r && b(n),
|
|
1497
|
+
onShareWindowClose: h,
|
|
1498
|
+
url: n,
|
|
1499
|
+
style: s,
|
|
1500
|
+
disabledStyle: o,
|
|
1501
|
+
"data-testid": "facebook-share",
|
|
1502
|
+
children: /* @__PURE__ */ a(
|
|
1503
|
+
m,
|
|
1504
|
+
{
|
|
1505
|
+
sx: {
|
|
1506
|
+
...u("#1078f0"),
|
|
1507
|
+
cursor: r ? "default" : "pointer"
|
|
1508
|
+
},
|
|
1509
|
+
onClick: () => !r && b(n),
|
|
1510
|
+
children: /* @__PURE__ */ a("img", { alt: "share1", width: 15, height: 15, src: Ke, style: { ...l() } })
|
|
1511
|
+
}
|
|
1512
|
+
)
|
|
1513
|
+
}
|
|
1514
|
+
),
|
|
1515
|
+
/* @__PURE__ */ a(
|
|
1516
|
+
Lt,
|
|
1517
|
+
{
|
|
1518
|
+
disabled: r,
|
|
1519
|
+
onShareWindowClose: h,
|
|
1520
|
+
url: n,
|
|
1521
|
+
style: s,
|
|
1522
|
+
disabledStyle: o,
|
|
1523
|
+
children: /* @__PURE__ */ a(
|
|
1524
|
+
m,
|
|
1525
|
+
{
|
|
1526
|
+
sx: {
|
|
1527
|
+
...u("#2d67b3"),
|
|
1528
|
+
cursor: r ? "default" : "pointer"
|
|
1529
|
+
},
|
|
1530
|
+
onClick: () => !r && b(n),
|
|
1531
|
+
"data-testid": "linkedin-share",
|
|
1532
|
+
children: /* @__PURE__ */ a("img", { alt: "share4", width: 15, height: 15, src: Fe, style: { ...l() } })
|
|
1533
|
+
}
|
|
1534
|
+
)
|
|
1535
|
+
}
|
|
1536
|
+
),
|
|
1537
|
+
/* @__PURE__ */ a(
|
|
1538
|
+
m,
|
|
1539
|
+
{
|
|
1540
|
+
sx: {
|
|
1541
|
+
...u("#229af1"),
|
|
1542
|
+
cursor: r ? "default" : "pointer"
|
|
1543
|
+
},
|
|
1544
|
+
onClick: () => !r && d(),
|
|
1545
|
+
"data-testid": "copy-clipboard-data",
|
|
1546
|
+
children: /* @__PURE__ */ a("img", { alt: "share5", width: 15, height: 15, src: Ve, style: { ...l() } })
|
|
1547
|
+
}
|
|
1548
|
+
),
|
|
1549
|
+
c && /* @__PURE__ */ a(
|
|
1550
|
+
m,
|
|
1551
|
+
{
|
|
1552
|
+
sx: {
|
|
1553
|
+
...u("#2d2d39"),
|
|
1554
|
+
cursor: r ? "default" : "pointer",
|
|
1555
|
+
marginRight: 0
|
|
1556
|
+
},
|
|
1557
|
+
onClick: () => {
|
|
1558
|
+
!r && A();
|
|
1559
|
+
},
|
|
1560
|
+
"data-testid": "preview-and-embed",
|
|
1561
|
+
children: /* @__PURE__ */ a("img", { alt: "share6", width: 15, height: 15, src: ze, style: { ...l() } })
|
|
1562
|
+
}
|
|
1563
|
+
),
|
|
1564
|
+
p ? /* @__PURE__ */ a(
|
|
1565
|
+
nn,
|
|
1566
|
+
{
|
|
1567
|
+
isDialogOpen: p,
|
|
1568
|
+
closeEmbedButtonHandle: C,
|
|
1569
|
+
setSelectedItem: e == null ? void 0 : e.embedData
|
|
1570
|
+
}
|
|
1571
|
+
) : null
|
|
1572
|
+
]
|
|
1573
|
+
}
|
|
1574
|
+
);
|
|
1575
|
+
}, ln = fe.memo(rn);
|
|
1576
|
+
export {
|
|
1577
|
+
ln as default
|
|
1578
|
+
};
|