@platform-x/hcltechx-mfe-wrapper 1.0.1 → 1.0.2

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.
Files changed (39) hide show
  1. package/ArticleVodListComponent-DgZ6wbE6.mjs +31 -0
  2. package/ChallengeDetailComponent-DZ0Mb5m5.mjs +110 -0
  3. package/CommonContentComponent-DXE7sBm_.mjs +80 -0
  4. package/{DailyMotion-Bh6b_1ls.mjs → DailyMotion-xEJ61IQY.mjs} +2 -2
  5. package/EngagementHomeComponent-ALy06OvY.mjs +100 -0
  6. package/EventDetailComponent-D2veM5iY.mjs +99 -0
  7. package/EventList-DXQ-oa5g.mjs +206513 -0
  8. package/{EventListComponent-D8VOmErB.mjs → EventListComponent-DnkVgGqe.mjs} +34 -42
  9. package/{Facebook-r_ieGEWi.mjs → Facebook-DA5tgcm8.mjs} +2 -2
  10. package/{FilePlayer-DPtnkI4h.mjs → FilePlayer-CEsa8i-J.mjs} +2 -2
  11. package/{Kaltura-Clw99-2t.mjs → Kaltura-BDp01A2S.mjs} +2 -2
  12. package/{Mixcloud-BQqSy7W9.mjs → Mixcloud-DNiDSnQA.mjs} +2 -2
  13. package/{Mux-C9Horywf.mjs → Mux-pF13ayAx.mjs} +2 -2
  14. package/{Preview-BJ-Gf50H.mjs → Preview-D-pHl8Fi.mjs} +1 -1
  15. package/RecentCarousel-psPkzOV1.mjs +254 -0
  16. package/Share-Ch0qBMpO.mjs +2243 -0
  17. package/{SoundCloud-UekA8rWW.mjs → SoundCloud-D6LK2YU5.mjs} +2 -2
  18. package/{Streamable-DlIJ8RtX.mjs → Streamable-DKCmr2s6.mjs} +2 -2
  19. package/{Twitch-CvJR_NQ9.mjs → Twitch-ZFblvc_i.mjs} +2 -2
  20. package/{Vidyard-Lj1xUYwG.mjs → Vidyard-Cha8ZZKP.mjs} +2 -2
  21. package/{Vimeo-CwmHUqrS.mjs → Vimeo-BSkldfP5.mjs} +2 -2
  22. package/{Wistia-DdGRHB57.mjs → Wistia-DgjI7KW3.mjs} +2 -2
  23. package/{YouTube-gou2t6Mz.mjs → YouTube-uSLCmqZG.mjs} +2 -2
  24. package/{index-BgFUpOs6.mjs → index-CsL6vpdD.mjs} +5 -5
  25. package/{index-DmoNrWks.mjs → index-wEg0PxHn.mjs} +1480 -2221
  26. package/index.mjs +2 -2
  27. package/lib/utils/MfeLogin.d.ts +2 -0
  28. package/{mutateApi-Cl3UXuv1.mjs → mutateApi-Dh8u3Xc5.mjs} +1 -1
  29. package/package.json +1 -1
  30. package/ArticleVodListComponent-labwXONw.mjs +0 -39
  31. package/ChallengeDetailComponent-B0mhcUHW.mjs +0 -118
  32. package/CommonContentComponent-XIY0Eqyp.mjs +0 -86
  33. package/EngagementHomeComponent-DUWRp7Rk.mjs +0 -99
  34. package/EventDetailComponent-DZHIR5sb.mjs +0 -103
  35. package/EventList-CrFIwonY.mjs +0 -32151
  36. package/RecentCarousel-DXczqGTg.mjs +0 -345
  37. package/Share-841HxAfy.mjs +0 -2603
  38. package/lib/login.d.ts +0 -0
  39. package/lib/ssoLogin.d.ts +0 -9
@@ -1,2603 +0,0 @@
1
- import { g as ze, c as H, d as G, e as U, u as F, _ as K, h as k, i as I, P as i, k as Ne, l as X, j as d, t as Ce } from "./index-DmoNrWks.mjs";
2
- import { Box as v, Card as Ae, Skeleton as oe, Grid as ae, Typography as he, Button as be, Dialog as $e, useTheme as qe } from "@mui/material";
3
- import * as M from "react";
4
- import Le, { forwardRef as Pe, useState as re, useEffect as ye, useRef as We, useCallback as Re } from "react";
5
- import Be, { jsx as E } from "react/jsx-runtime";
6
- import { s as _e, t as He, v as Ge, w as Ue, e as Fe, x as Ke, y as Ie, T as q, l as Xe, g as Ee, z as Qe, B as Ye, D as xe } from "./EventList-CrFIwonY.mjs";
7
- import { makeStyles as Ze } from "@mui/styles";
8
- import { unstable_extendSxProp as Je, unstable_resolveBreakpointValues as te, handleBreakpoints as de } from "@mui/system";
9
- import "react-dom";
10
- const eo = "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", oo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD6SURBVHgB7ZM9CsIwGIa/GI8gWkV0dyhdXHTxCN5APIl6E0dXN0fdxEmldFYqkrZnaD6ToRj736pbXwh88CbPEwIBqFLlr9H10UKusr0MTTuMiEsxThqN9tbznkztDWNkcI4b2WtaDxzHPuQWKHDwfZxb1mkX3sOYzVqt7h2ATNMkNBt+XENCXPdxzpLQsvC8EvoNPI+kFmzinJNgrtcpQsEQ8j6jsqhyi32z2SUiEwCcalr/Jm5xyQPX9fEMka/lLF5hZZrHZURQVpIGjwiKSrLgsYI4SafT3jL2+dEGg6Eh+l0aPFGgSsR4uF5Pm3Avf3bQJ8GrVPlNXpHyzr4dW2vdAAAAAElFTkSuQmCC", no = "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", ro = "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";
11
- var se = { exports: {} }, le = { exports: {} }, P = 1e3, W = P * 60, R = W * 60, B = R * 24, io = B * 365.25, to = function(e, o) {
12
- o = o || {};
13
- var n = typeof e;
14
- if (n === "string" && e.length > 0)
15
- return ao(e);
16
- if (n === "number" && isNaN(e) === !1)
17
- return o.long ? lo(e) : so(e);
18
- throw new Error(
19
- "val is not a non-empty string or a valid number. val=" + JSON.stringify(e)
20
- );
21
- };
22
- function ao(e) {
23
- if (e = String(e), !(e.length > 100)) {
24
- var o = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
25
- e
26
- );
27
- if (o) {
28
- var n = parseFloat(o[1]), r = (o[2] || "ms").toLowerCase();
29
- switch (r) {
30
- case "years":
31
- case "year":
32
- case "yrs":
33
- case "yr":
34
- case "y":
35
- return n * io;
36
- case "days":
37
- case "day":
38
- case "d":
39
- return n * B;
40
- case "hours":
41
- case "hour":
42
- case "hrs":
43
- case "hr":
44
- case "h":
45
- return n * R;
46
- case "minutes":
47
- case "minute":
48
- case "mins":
49
- case "min":
50
- case "m":
51
- return n * W;
52
- case "seconds":
53
- case "second":
54
- case "secs":
55
- case "sec":
56
- case "s":
57
- return n * P;
58
- case "milliseconds":
59
- case "millisecond":
60
- case "msecs":
61
- case "msec":
62
- case "ms":
63
- return n;
64
- default:
65
- return;
66
- }
67
- }
68
- }
69
- }
70
- function so(e) {
71
- return e >= B ? Math.round(e / B) + "d" : e >= R ? Math.round(e / R) + "h" : e >= W ? Math.round(e / W) + "m" : e >= P ? Math.round(e / P) + "s" : e + "ms";
72
- }
73
- function lo(e) {
74
- return ne(e, B, "day") || ne(e, R, "hour") || ne(e, W, "minute") || ne(e, P, "second") || e + " ms";
75
- }
76
- function ne(e, o, n) {
77
- if (!(e < o))
78
- return e < o * 1.5 ? Math.floor(e / o) + " " + n : Math.ceil(e / o) + " " + n + "s";
79
- }
80
- (function(e, o) {
81
- o = e.exports = t.debug = t.default = t, o.coerce = l, o.disable = m, o.enable = a, o.enabled = s, o.humanize = to, o.names = [], o.skips = [], o.formatters = {};
82
- var n;
83
- function r(c) {
84
- var u = 0, p;
85
- for (p in c)
86
- u = (u << 5) - u + c.charCodeAt(p), u |= 0;
87
- return o.colors[Math.abs(u) % o.colors.length];
88
- }
89
- function t(c) {
90
- function u() {
91
- if (u.enabled) {
92
- var p = u, f = +/* @__PURE__ */ new Date(), b = f - (n || f);
93
- p.diff = b, p.prev = n, p.curr = f, n = f;
94
- for (var x = new Array(arguments.length), C = 0; C < x.length; C++)
95
- x[C] = arguments[C];
96
- x[0] = o.coerce(x[0]), typeof x[0] != "string" && x.unshift("%O");
97
- var _ = 0;
98
- x[0] = x[0].replace(/%([a-zA-Z%])/g, function(N, z) {
99
- if (N === "%%")
100
- return N;
101
- _++;
102
- var D = o.formatters[z];
103
- if (typeof D == "function") {
104
- var A = x[_];
105
- N = D.call(p, A), x.splice(_, 1), _--;
106
- }
107
- return N;
108
- }), o.formatArgs.call(p, x);
109
- var S = u.log || o.log || console.log.bind(console);
110
- S.apply(p, x);
111
- }
112
- }
113
- return u.namespace = c, u.enabled = o.enabled(c), u.useColors = o.useColors(), u.color = r(c), typeof o.init == "function" && o.init(u), u;
114
- }
115
- function a(c) {
116
- o.save(c), o.names = [], o.skips = [];
117
- for (var u = (typeof c == "string" ? c : "").split(/[\s,]+/), p = u.length, f = 0; f < p; f++)
118
- u[f] && (c = u[f].replace(/\*/g, ".*?"), c[0] === "-" ? o.skips.push(new RegExp("^" + c.substr(1) + "$")) : o.names.push(new RegExp("^" + c + "$")));
119
- }
120
- function m() {
121
- o.enable("");
122
- }
123
- function s(c) {
124
- var u, p;
125
- for (u = 0, p = o.skips.length; u < p; u++)
126
- if (o.skips[u].test(c))
127
- return !1;
128
- for (u = 0, p = o.names.length; u < p; u++)
129
- if (o.names[u].test(c))
130
- return !0;
131
- return !1;
132
- }
133
- function l(c) {
134
- return c instanceof Error ? c.stack || c.message : c;
135
- }
136
- })(le, le.exports);
137
- var co = le.exports;
138
- (function(e, o) {
139
- o = e.exports = co, o.log = t, o.formatArgs = r, o.save = a, o.load = m, o.useColors = n, o.storage = typeof chrome < "u" && typeof chrome.storage < "u" ? chrome.storage.local : s(), o.colors = [
140
- "lightseagreen",
141
- "forestgreen",
142
- "goldenrod",
143
- "dodgerblue",
144
- "darkorchid",
145
- "crimson"
146
- ];
147
- function n() {
148
- 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
149
- typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?
150
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
151
- 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
152
- typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
153
- }
154
- o.formatters.j = function(l) {
155
- try {
156
- return JSON.stringify(l);
157
- } catch (c) {
158
- return "[UnexpectedJSONParseError]: " + c.message;
159
- }
160
- };
161
- function r(l) {
162
- var c = this.useColors;
163
- if (l[0] = (c ? "%c" : "") + this.namespace + (c ? " %c" : " ") + l[0] + (c ? "%c " : " ") + "+" + o.humanize(this.diff), !!c) {
164
- var u = "color: " + this.color;
165
- l.splice(1, 0, u, "color: inherit");
166
- var p = 0, f = 0;
167
- l[0].replace(/%[a-zA-Z%]/g, function(b) {
168
- b !== "%%" && (p++, b === "%c" && (f = p));
169
- }), l.splice(f, 0, u);
170
- }
171
- }
172
- function t() {
173
- return typeof console == "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
174
- }
175
- function a(l) {
176
- try {
177
- l == null ? o.storage.removeItem("debug") : o.storage.debug = l;
178
- } catch {
179
- }
180
- }
181
- function m() {
182
- var l;
183
- try {
184
- l = o.storage.debug;
185
- } catch {
186
- }
187
- return !l && typeof process < "u" && "env" in process && (l = process.env.DEBUG), l;
188
- }
189
- o.enable(m());
190
- function s() {
191
- try {
192
- return window.localStorage;
193
- } catch {
194
- }
195
- }
196
- })(se, se.exports);
197
- var mo = se.exports, we = mo("jsonp"), uo = ho, po = 0;
198
- function fo() {
199
- }
200
- function ho(e, o, n) {
201
- typeof o == "function" && (n = o, o = {}), o || (o = {});
202
- var r = o.prefix || "__jp", t = o.name || r + po++, a = o.param || "callback", m = o.timeout != null ? o.timeout : 6e4, s = encodeURIComponent, l = document.getElementsByTagName("script")[0] || document.head, c, u;
203
- m && (u = setTimeout(function() {
204
- p(), n && n(new Error("Timeout"));
205
- }, m));
206
- function p() {
207
- c.parentNode && c.parentNode.removeChild(c), window[t] = fo, u && clearTimeout(u);
208
- }
209
- function f() {
210
- window[t] && p();
211
- }
212
- return window[t] = function(b) {
213
- we("jsonp got", b), p(), n && n(null, b);
214
- }, e += (~e.indexOf("?") ? "&" : "?") + a + "=" + s(t), e = e.replace("?&", "?"), we('jsonp req "%s"', e), c = document.createElement("script"), c.src = e, l.parentNode.insertBefore(c, l), f;
215
- }
216
- const O = /* @__PURE__ */ ze(uo);
217
- var bo = Object.defineProperty, xo = Object.defineProperties, wo = Object.getOwnPropertyDescriptors, ie = Object.getOwnPropertySymbols, Se = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable, ge = (e, o, n) => o in e ? bo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, y = (e, o) => {
218
- for (var n in o || (o = {}))
219
- Se.call(o, n) && ge(e, n, o[n]);
220
- if (ie)
221
- for (var n of ie(o))
222
- De.call(o, n) && ge(e, n, o[n]);
223
- return e;
224
- }, me = (e, o) => xo(e, wo(o)), ue = (e, o) => {
225
- var n = {};
226
- for (var r in e)
227
- Se.call(e, r) && o.indexOf(r) < 0 && (n[r] = e[r]);
228
- if (e != null && ie)
229
- for (var r of ie(e))
230
- o.indexOf(r) < 0 && De.call(e, r) && (n[r] = e[r]);
231
- return n;
232
- };
233
- function h(e) {
234
- const o = Object.entries(e).filter(([, n]) => n != null).map(([n, r]) => `${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`);
235
- return o.length > 0 ? `?${o.join("&")}` : "";
236
- }
237
- const go = (e) => !!e && (typeof e == "object" || typeof e == "function") && typeof e.then == "function", vo = (e, o) => ({
238
- left: window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - e / 2,
239
- top: window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - o / 2
240
- }), ko = (e, o) => ({
241
- top: (window.screen.height - o) / 2,
242
- left: (window.screen.width - e) / 2
243
- });
244
- function No(e, o, n) {
245
- var r = o, { height: t, width: a } = r, m = ue(r, ["height", "width"]);
246
- const s = y({
247
- height: t,
248
- width: a,
249
- location: "no",
250
- toolbar: "no",
251
- status: "no",
252
- directories: "no",
253
- menubar: "no",
254
- scrollbars: "yes",
255
- resizable: "no",
256
- centerscreen: "yes",
257
- chrome: "yes"
258
- }, m), l = window.open(
259
- e,
260
- "",
261
- Object.keys(s).map((c) => `${c}=${s[c]}`).join(", ")
262
- );
263
- if (n) {
264
- const c = window.setInterval(() => {
265
- try {
266
- (l === null || l.closed) && (window.clearInterval(c), n(l));
267
- } catch (u) {
268
- console.error(u);
269
- }
270
- }, 1e3);
271
- }
272
- return l;
273
- }
274
- function Co(e) {
275
- var o = e, {
276
- beforeOnClick: n,
277
- children: r,
278
- className: t,
279
- disabled: a,
280
- disabledStyle: m = { opacity: 0.6 },
281
- forwardedRef: s,
282
- htmlTitle: l,
283
- networkLink: c,
284
- networkName: u,
285
- onClick: p,
286
- onShareWindowClose: f,
287
- openShareDialogOnClick: b = !0,
288
- opts: x,
289
- resetButtonStyle: C = !0,
290
- style: _,
291
- url: S,
292
- windowHeight: N = 400,
293
- windowPosition: z = "windowCenter",
294
- windowWidth: D = 550
295
- } = o, A = ue(o, [
296
- "beforeOnClick",
297
- "children",
298
- "className",
299
- "disabled",
300
- "disabledStyle",
301
- "forwardedRef",
302
- "htmlTitle",
303
- "networkLink",
304
- "networkName",
305
- "onClick",
306
- "onShareWindowClose",
307
- "openShareDialogOnClick",
308
- "opts",
309
- "resetButtonStyle",
310
- "style",
311
- "url",
312
- "windowHeight",
313
- "windowPosition",
314
- "windowWidth"
315
- ]);
316
- const Q = async (J) => {
317
- const j = c(S, x);
318
- if (!a) {
319
- if (J.preventDefault(), n) {
320
- const ee = n();
321
- go(ee) && await ee;
322
- }
323
- if (b) {
324
- const ee = y({
325
- height: N,
326
- width: D
327
- }, z === "windowCenter" ? vo(D, N) : ko(D, N));
328
- No(j, ee, f);
329
- }
330
- p && p(J, j);
331
- }
332
- }, Y = _e(
333
- "react-share__ShareButton",
334
- {
335
- "react-share__ShareButton--disabled": !!a,
336
- disabled: !!a
337
- },
338
- t
339
- ), Z = y(y(C ? {
340
- backgroundColor: "transparent",
341
- border: "none",
342
- padding: 0,
343
- font: "inherit",
344
- color: "inherit",
345
- cursor: "pointer"
346
- } : {}, _), a && m);
347
- return /* @__PURE__ */ E(
348
- "button",
349
- me(y({}, A), {
350
- className: Y,
351
- onClick: Q,
352
- ref: s,
353
- style: Z,
354
- title: l,
355
- children: r
356
- })
357
- );
358
- }
359
- function g(e, o, n, r) {
360
- function t(a, m) {
361
- const s = n(a), l = y({}, a);
362
- return Object.keys(s).forEach((u) => {
363
- delete l[u];
364
- }), /* @__PURE__ */ E(
365
- Co,
366
- me(y(y({}, r), l), {
367
- forwardedRef: m,
368
- networkName: e,
369
- networkLink: o,
370
- opts: n(a)
371
- })
372
- );
373
- }
374
- return t.displayName = `ShareButton-${e}`, Pe(t);
375
- }
376
- function yo(e, { subject: o, body: n, separator: r }) {
377
- return "mailto:" + h({ subject: o, body: n ? n + r + e : e });
378
- }
379
- g(
380
- "email",
381
- yo,
382
- (e) => ({
383
- subject: e.subject,
384
- body: e.body,
385
- separator: e.separator || " "
386
- }),
387
- {
388
- openShareDialogOnClick: !1,
389
- onClick: (e, o) => {
390
- window.location.href = o;
391
- }
392
- }
393
- );
394
- function _o(e, { appId: o, redirectUri: n, to: r }) {
395
- return "https://www.facebook.com/dialog/send" + h({
396
- link: e,
397
- redirect_uri: n || e,
398
- app_id: o,
399
- to: r
400
- });
401
- }
402
- g(
403
- "facebookmessenger",
404
- _o,
405
- (e) => ({
406
- appId: e.appId,
407
- redirectUri: e.redirectUri,
408
- to: e.to
409
- }),
410
- {
411
- windowWidth: 1e3,
412
- windowHeight: 820
413
- }
414
- );
415
- class Eo extends Error {
416
- constructor(o) {
417
- super(o), this.name = "AssertionError";
418
- }
419
- }
420
- function w(e, o) {
421
- if (!e)
422
- throw new Eo(o);
423
- }
424
- function So(e, { hashtag: o }) {
425
- return w(e, "facebook.url"), "https://www.facebook.com/sharer/sharer.php" + h({ u: e, hashtag: o });
426
- }
427
- const Do = g(
428
- "facebook",
429
- So,
430
- (e) => ({ hashtag: e.hashtag }),
431
- {
432
- windowWidth: 550,
433
- windowHeight: 400
434
- }
435
- ), jo = Do;
436
- function To() {
437
- const e = We(!1);
438
- return ye(() => (e.current = !0, () => {
439
- e.current = !1;
440
- }), []), Re(() => e.current, []);
441
- }
442
- function Mo(e) {
443
- var o = e, {
444
- children: n = (f) => f,
445
- className: r,
446
- getCount: t,
447
- url: a
448
- } = o, m = ue(o, [
449
- "children",
450
- "className",
451
- "getCount",
452
- "url"
453
- ]);
454
- const s = To(), [l, c] = re(void 0), [u, p] = re(!1);
455
- return ye(() => {
456
- p(!0), t(a, (f) => {
457
- s() && (c(f), p(!1));
458
- });
459
- }, [a]), /* @__PURE__ */ E("span", me(y({ className: _e("react-share__ShareCount", r) }, m), { children: !u && l !== void 0 && n(l) }));
460
- }
461
- function V(e) {
462
- const o = (n) => /* @__PURE__ */ E(Mo, y({ getCount: e }, n));
463
- return o.displayName = `ShareCount(${e.name})`, o;
464
- }
465
- function Oo(e, o) {
466
- const n = `https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;
467
- O(n, (r, t) => {
468
- o(
469
- !r && t && t.og_object && t.og_object.engagement ? t.og_object.engagement.count : void 0
470
- );
471
- });
472
- }
473
- V(Oo);
474
- function Vo(e, { title: o }) {
475
- return w(e, "hatena.url"), `http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${o}`;
476
- }
477
- g(
478
- "hatena",
479
- Vo,
480
- (e) => ({
481
- title: e.title
482
- }),
483
- {
484
- windowWidth: 660,
485
- windowHeight: 460,
486
- windowPosition: "windowCenter"
487
- }
488
- );
489
- function zo(e, o) {
490
- O(
491
- "https://bookmark.hatenaapis.com/count/entry" + h({
492
- url: e
493
- }),
494
- (r, t) => {
495
- o(t ?? void 0);
496
- }
497
- );
498
- }
499
- V(zo);
500
- function Ao(e, { title: o, description: n }) {
501
- return w(e, "instapaper.url"), "http://www.instapaper.com/hello2" + h({
502
- url: e,
503
- title: o,
504
- description: n
505
- });
506
- }
507
- g(
508
- "instapaper",
509
- Ao,
510
- (e) => ({
511
- title: e.title,
512
- description: e.description
513
- }),
514
- {
515
- windowWidth: 500,
516
- windowHeight: 500,
517
- windowPosition: "windowCenter"
518
- }
519
- );
520
- function $o(e, { title: o }) {
521
- return w(e, "line.url"), "https://social-plugins.line.me/lineit/share" + h({
522
- url: e,
523
- text: o
524
- });
525
- }
526
- g(
527
- "line",
528
- $o,
529
- (e) => ({
530
- title: e.title
531
- }),
532
- {
533
- windowWidth: 500,
534
- windowHeight: 500
535
- }
536
- );
537
- function qo(e, { title: o, summary: n, source: r }) {
538
- return w(e, "linkedin.url"), "https://linkedin.com/shareArticle" + h({ url: e, mini: "true", title: o, summary: n, source: r });
539
- }
540
- const Lo = g(
541
- "linkedin",
542
- qo,
543
- ({ title: e, summary: o, source: n }) => ({ title: e, summary: o, source: n }),
544
- {
545
- windowWidth: 750,
546
- windowHeight: 600
547
- }
548
- ), Po = Lo;
549
- function Wo(e, { title: o, description: n }) {
550
- return w(e, "livejournal.url"), "https://www.livejournal.com/update.bml" + h({
551
- subject: o,
552
- event: n
553
- });
554
- }
555
- g(
556
- "livejournal",
557
- Wo,
558
- (e) => ({
559
- title: e.title,
560
- description: e.description
561
- }),
562
- {
563
- windowWidth: 660,
564
- windowHeight: 460
565
- }
566
- );
567
- function Ro(e, { title: o, description: n, imageUrl: r }) {
568
- return w(e, "mailru.url"), "https://connect.mail.ru/share" + h({
569
- url: e,
570
- title: o,
571
- description: n,
572
- image_url: r
573
- });
574
- }
575
- g(
576
- "mailru",
577
- Ro,
578
- (e) => ({
579
- title: e.title,
580
- description: e.description,
581
- imageUrl: e.imageUrl
582
- }),
583
- {
584
- windowWidth: 660,
585
- windowHeight: 460
586
- }
587
- );
588
- function Bo(e, { title: o, description: n, image: r }) {
589
- return w(e, "ok.url"), "https://connect.ok.ru/offer" + h({
590
- url: e,
591
- title: o,
592
- description: n,
593
- imageUrl: r
594
- });
595
- }
596
- g(
597
- "ok",
598
- Bo,
599
- (e) => ({
600
- title: e.title,
601
- description: e.description,
602
- image: e.image
603
- }),
604
- {
605
- windowWidth: 588,
606
- windowHeight: 480,
607
- windowPosition: "screenCenter"
608
- }
609
- );
610
- function Ho(e, o) {
611
- window.OK || (window.OK = {
612
- Share: {
613
- count: function(a, m) {
614
- var s, l;
615
- (l = (s = window.OK.callbacks)[a]) == null || l.call(s, m);
616
- }
617
- },
618
- callbacks: []
619
- });
620
- const n = "https://connect.ok.ru/dk", r = window.OK.callbacks.length;
621
- return window.ODKL = {
622
- updateCount(t, a) {
623
- var m, s;
624
- const l = t === "" ? 0 : parseInt(t.replace("react-share-", ""), 10);
625
- (s = (m = window.OK.callbacks)[l]) == null || s.call(m, a === "" ? void 0 : parseInt(a, 10));
626
- }
627
- }, window.OK.callbacks.push(o), O(
628
- n + h({
629
- "st.cmd": "extLike",
630
- uid: `react-share-${r}`,
631
- ref: e
632
- })
633
- );
634
- }
635
- V(Ho);
636
- function Go(e, { media: o, description: n, pinId: r }) {
637
- return r ? `https://pinterest.com/pin/${r}/repin/x/` : (w(e, "pinterest.url"), w(o, "pinterest.media"), "https://pinterest.com/pin/create/button/" + h({
638
- url: e,
639
- media: o,
640
- description: n
641
- }));
642
- }
643
- g(
644
- "pinterest",
645
- Go,
646
- (e) => ({
647
- media: e.media,
648
- description: e.description,
649
- pinId: e.pinId
650
- }),
651
- {
652
- windowWidth: 1e3,
653
- windowHeight: 730
654
- }
655
- );
656
- function Uo(e, o) {
657
- O(
658
- "https://api.pinterest.com/v1/urls/count.json" + h({
659
- url: e
660
- }),
661
- (r, t) => {
662
- o(t ? t.count : void 0);
663
- }
664
- );
665
- }
666
- V(Uo);
667
- function Fo(e, { title: o }) {
668
- return w(e, "pocket.url"), "https://getpocket.com/save" + h({
669
- url: e,
670
- title: o
671
- });
672
- }
673
- g(
674
- "pocket",
675
- Fo,
676
- (e) => ({
677
- title: e.title
678
- }),
679
- {
680
- windowWidth: 500,
681
- windowHeight: 500
682
- }
683
- );
684
- function Ko(e, { title: o }) {
685
- return w(e, "reddit.url"), "https://www.reddit.com/submit" + h({
686
- url: e,
687
- title: o
688
- });
689
- }
690
- g(
691
- "reddit",
692
- Ko,
693
- (e) => ({
694
- title: e.title
695
- }),
696
- {
697
- windowWidth: 660,
698
- windowHeight: 460,
699
- windowPosition: "windowCenter"
700
- }
701
- );
702
- function Io(e, { title: o }) {
703
- return w(e, "gab.url"), "https://gab.com/compose" + h({
704
- url: e,
705
- text: o
706
- });
707
- }
708
- g(
709
- "gab",
710
- Io,
711
- (e) => ({
712
- title: e.title
713
- }),
714
- {
715
- windowWidth: 660,
716
- windowHeight: 640,
717
- windowPosition: "windowCenter"
718
- }
719
- );
720
- function Xo(e, o) {
721
- const n = `https://www.reddit.com/api/info.json?limit=1&url=${e}`;
722
- O(n, { param: "jsonp" }, (r, t) => {
723
- o(
724
- !r && t && t.data && t.data.children.length > 0 && t.data.children[0].data.score ? t.data.children[0].data.score : void 0
725
- );
726
- });
727
- }
728
- V(Xo);
729
- function Qo(e, { title: o }) {
730
- return w(e, "telegram.url"), "https://telegram.me/share/url" + h({
731
- url: e,
732
- text: o
733
- });
734
- }
735
- g(
736
- "telegram",
737
- Qo,
738
- (e) => ({
739
- title: e.title
740
- }),
741
- {
742
- windowWidth: 550,
743
- windowHeight: 400
744
- }
745
- );
746
- function Yo(e, {
747
- title: o,
748
- caption: n,
749
- tags: r,
750
- posttype: t
751
- }) {
752
- return w(e, "tumblr.url"), "https://www.tumblr.com/widgets/share/tool" + h({
753
- canonicalUrl: e,
754
- title: o,
755
- caption: n,
756
- tags: r,
757
- posttype: t
758
- });
759
- }
760
- g(
761
- "tumblr",
762
- Yo,
763
- (e) => ({
764
- title: e.title,
765
- tags: (e.tags || []).join(","),
766
- caption: e.caption,
767
- posttype: e.posttype || "link"
768
- }),
769
- {
770
- windowWidth: 660,
771
- windowHeight: 460
772
- }
773
- );
774
- function Zo(e, o) {
775
- return O(
776
- "https://api.tumblr.com/v2/share/stats" + h({
777
- url: e
778
- }),
779
- (r, t) => {
780
- o(!r && t && t.response ? t.response.note_count : void 0);
781
- }
782
- );
783
- }
784
- V(Zo);
785
- function Jo(e, {
786
- title: o,
787
- via: n,
788
- hashtags: r = [],
789
- related: t = []
790
- }) {
791
- return w(e, "twitter.url"), w(Array.isArray(r), "twitter.hashtags is not an array"), w(Array.isArray(t), "twitter.related is not an array"), "https://twitter.com/intent/tweet" + h({
792
- url: e,
793
- text: o,
794
- via: n,
795
- hashtags: r.length > 0 ? r.join(",") : void 0,
796
- related: t.length > 0 ? t.join(",") : void 0
797
- });
798
- }
799
- g(
800
- "twitter",
801
- Jo,
802
- (e) => ({
803
- hashtags: e.hashtags,
804
- title: e.title,
805
- via: e.via,
806
- related: e.related
807
- }),
808
- {
809
- windowWidth: 550,
810
- windowHeight: 400
811
- }
812
- );
813
- function en(e, { title: o, separator: n }) {
814
- return w(e, "viber.url"), "viber://forward" + h({
815
- text: o ? o + n + e : e
816
- });
817
- }
818
- g(
819
- "viber",
820
- en,
821
- (e) => ({
822
- title: e.title,
823
- separator: e.separator || " "
824
- }),
825
- {
826
- windowWidth: 660,
827
- windowHeight: 460
828
- }
829
- );
830
- function on(e, { title: o, image: n, noParse: r, noVkLinks: t }) {
831
- return w(e, "vk.url"), "https://vk.com/share.php" + h({
832
- url: e,
833
- title: o,
834
- image: n,
835
- noparse: r ? 1 : 0,
836
- no_vk_links: t ? 1 : 0
837
- });
838
- }
839
- g(
840
- "vk",
841
- on,
842
- (e) => ({
843
- title: e.title,
844
- image: e.image,
845
- noParse: e.noParse,
846
- noVkLinks: e.noVkLinks
847
- }),
848
- {
849
- windowWidth: 660,
850
- windowHeight: 460
851
- }
852
- );
853
- function nn(e, o) {
854
- window.VK || (window.VK = {}), window.VK.Share = {
855
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
856
- count: (t, a) => {
857
- var m, s;
858
- return (s = (m = window.VK.callbacks) == null ? void 0 : m[t]) == null ? void 0 : s.call(m, a);
859
- }
860
- }, window.VK.callbacks = [];
861
- const n = "https://vk.com/share.php", r = window.VK.callbacks.length;
862
- return window.VK.callbacks.push(o), O(
863
- n + h({
864
- act: "count",
865
- index: r,
866
- url: e
867
- })
868
- );
869
- }
870
- V(nn);
871
- function rn(e, { title: o, image: n }) {
872
- return w(e, "weibo.url"), "http://service.weibo.com/share/share.php" + h({
873
- url: e,
874
- title: o,
875
- pic: n
876
- });
877
- }
878
- g(
879
- "weibo",
880
- rn,
881
- (e) => ({
882
- title: e.title,
883
- image: e.image
884
- }),
885
- {
886
- windowWidth: 660,
887
- windowHeight: 550,
888
- windowPosition: "screenCenter"
889
- }
890
- );
891
- function tn() {
892
- return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);
893
- }
894
- function an(e, { title: o, separator: n }) {
895
- return w(e, "whatsapp.url"), "https://" + (tn() ? "api" : "web") + ".whatsapp.com/send" + h({
896
- text: o ? o + n + e : e
897
- });
898
- }
899
- g(
900
- "whatsapp",
901
- an,
902
- (e) => ({
903
- title: e.title,
904
- separator: e.separator || " "
905
- }),
906
- {
907
- windowWidth: 550,
908
- windowHeight: 400
909
- }
910
- );
911
- function sn(e, { quote: o, hashtag: n }) {
912
- return w(e, "workplace.url"), "https://work.facebook.com/sharer.php" + h({
913
- u: e,
914
- quote: o,
915
- hashtag: n
916
- });
917
- }
918
- g(
919
- "workplace",
920
- sn,
921
- (e) => ({
922
- quote: e.quote,
923
- hashtag: e.hashtag
924
- }),
925
- {
926
- windowWidth: 550,
927
- windowHeight: 400
928
- }
929
- );
930
- var pe = {}, ln = Ge;
931
- Object.defineProperty(pe, "__esModule", {
932
- value: !0
933
- });
934
- var je = pe.default = void 0, cn = ln(He()), dn = Be, mn = (0, cn.default)(/* @__PURE__ */ (0, dn.jsx)("circle", {
935
- cx: "12",
936
- cy: "12",
937
- r: "8"
938
- }), "FiberManualRecord");
939
- je = pe.default = mn;
940
- function un(e) {
941
- return G("MuiCard", e);
942
- }
943
- H("MuiCard", ["root"]);
944
- const pn = ["className", "raised"], fn = (e) => {
945
- const {
946
- classes: o
947
- } = e;
948
- return X({
949
- root: ["root"]
950
- }, un, o);
951
- }, hn = U(Ue, {
952
- name: "MuiCard",
953
- slot: "Root",
954
- overridesResolver: (e, o) => o.root
955
- })(() => ({
956
- overflow: "hidden"
957
- })), Te = /* @__PURE__ */ M.forwardRef(function(o, n) {
958
- const r = F({
959
- props: o,
960
- name: "MuiCard"
961
- }), {
962
- className: t,
963
- raised: a = !1
964
- } = r, m = K(r, pn), s = k({}, r, {
965
- raised: a
966
- }), l = fn(s);
967
- return /* @__PURE__ */ E(hn, k({
968
- className: I(l.root, t),
969
- elevation: a ? 8 : void 0,
970
- ref: n,
971
- ownerState: s
972
- }, m));
973
- });
974
- process.env.NODE_ENV !== "production" && (Te.propTypes = {
975
- // ----------------------------- Warning --------------------------------
976
- // | These PropTypes are generated from the TypeScript type definitions |
977
- // | To update them edit the d.ts file and run "yarn proptypes" |
978
- // ----------------------------------------------------------------------
979
- /**
980
- * The content of the component.
981
- */
982
- children: i.node,
983
- /**
984
- * Override or extend the styles applied to the component.
985
- */
986
- classes: i.object,
987
- /**
988
- * @ignore
989
- */
990
- className: i.string,
991
- /**
992
- * If `true`, the card will use raised styling.
993
- * @default false
994
- */
995
- raised: Ne(i.bool, (e) => e.raised && e.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
996
- /**
997
- * The system prop that allows defining system overrides as well as additional CSS styles.
998
- */
999
- sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
1000
- });
1001
- function bn(e) {
1002
- return G("MuiCardActions", e);
1003
- }
1004
- H("MuiCardActions", ["root", "spacing"]);
1005
- const xn = ["disableSpacing", "className"], wn = (e) => {
1006
- const {
1007
- classes: o,
1008
- disableSpacing: n
1009
- } = e;
1010
- return X({
1011
- root: ["root", !n && "spacing"]
1012
- }, bn, o);
1013
- }, gn = U("div", {
1014
- name: "MuiCardActions",
1015
- slot: "Root",
1016
- overridesResolver: (e, o) => {
1017
- const {
1018
- ownerState: n
1019
- } = e;
1020
- return [o.root, !n.disableSpacing && o.spacing];
1021
- }
1022
- })(({
1023
- ownerState: e
1024
- }) => k({
1025
- display: "flex",
1026
- alignItems: "center",
1027
- padding: 8
1028
- }, !e.disableSpacing && {
1029
- "& > :not(:first-of-type)": {
1030
- marginLeft: 8
1031
- }
1032
- })), Me = /* @__PURE__ */ M.forwardRef(function(o, n) {
1033
- const r = F({
1034
- props: o,
1035
- name: "MuiCardActions"
1036
- }), {
1037
- disableSpacing: t = !1,
1038
- className: a
1039
- } = r, m = K(r, xn), s = k({}, r, {
1040
- disableSpacing: t
1041
- }), l = wn(s);
1042
- return /* @__PURE__ */ E(gn, k({
1043
- className: I(l.root, a),
1044
- ownerState: s,
1045
- ref: n
1046
- }, m));
1047
- });
1048
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
1049
- // ----------------------------- Warning --------------------------------
1050
- // | These PropTypes are generated from the TypeScript type definitions |
1051
- // | To update them edit the d.ts file and run "yarn proptypes" |
1052
- // ----------------------------------------------------------------------
1053
- /**
1054
- * The content of the component.
1055
- */
1056
- children: i.node,
1057
- /**
1058
- * Override or extend the styles applied to the component.
1059
- */
1060
- classes: i.object,
1061
- /**
1062
- * @ignore
1063
- */
1064
- className: i.string,
1065
- /**
1066
- * If `true`, the actions do not have additional margin.
1067
- * @default false
1068
- */
1069
- disableSpacing: i.bool,
1070
- /**
1071
- * The system prop that allows defining system overrides as well as additional CSS styles.
1072
- */
1073
- sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
1074
- });
1075
- function vn(e) {
1076
- return G("MuiCardContent", e);
1077
- }
1078
- H("MuiCardContent", ["root"]);
1079
- const kn = ["className", "component"], Nn = (e) => {
1080
- const {
1081
- classes: o
1082
- } = e;
1083
- return X({
1084
- root: ["root"]
1085
- }, vn, o);
1086
- }, Cn = U("div", {
1087
- name: "MuiCardContent",
1088
- slot: "Root",
1089
- overridesResolver: (e, o) => o.root
1090
- })(() => ({
1091
- padding: 16,
1092
- "&:last-child": {
1093
- paddingBottom: 24
1094
- }
1095
- })), Oe = /* @__PURE__ */ M.forwardRef(function(o, n) {
1096
- const r = F({
1097
- props: o,
1098
- name: "MuiCardContent"
1099
- }), {
1100
- className: t,
1101
- component: a = "div"
1102
- } = r, m = K(r, kn), s = k({}, r, {
1103
- component: a
1104
- }), l = Nn(s);
1105
- return /* @__PURE__ */ E(Cn, k({
1106
- as: a,
1107
- className: I(l.root, t),
1108
- ownerState: s,
1109
- ref: n
1110
- }, m));
1111
- });
1112
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
1113
- // ----------------------------- Warning --------------------------------
1114
- // | These PropTypes are generated from the TypeScript type definitions |
1115
- // | To update them edit the d.ts file and run "yarn proptypes" |
1116
- // ----------------------------------------------------------------------
1117
- /**
1118
- * The content of the component.
1119
- */
1120
- children: i.node,
1121
- /**
1122
- * Override or extend the styles applied to the component.
1123
- */
1124
- classes: i.object,
1125
- /**
1126
- * @ignore
1127
- */
1128
- className: i.string,
1129
- /**
1130
- * The component used for the root node.
1131
- * Either a string to use a HTML element or a component.
1132
- */
1133
- component: i.elementType,
1134
- /**
1135
- * The system prop that allows defining system overrides as well as additional CSS styles.
1136
- */
1137
- sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
1138
- });
1139
- function yn(e) {
1140
- return G("MuiCardMedia", e);
1141
- }
1142
- H("MuiCardMedia", ["root", "media", "img"]);
1143
- const _n = ["children", "className", "component", "image", "src", "style"], En = (e) => {
1144
- const {
1145
- classes: o,
1146
- isMediaComponent: n,
1147
- isImageComponent: r
1148
- } = e;
1149
- return X({
1150
- root: ["root", n && "media", r && "img"]
1151
- }, yn, o);
1152
- }, Sn = U("div", {
1153
- name: "MuiCardMedia",
1154
- slot: "Root",
1155
- overridesResolver: (e, o) => {
1156
- const {
1157
- ownerState: n
1158
- } = e, {
1159
- isMediaComponent: r,
1160
- isImageComponent: t
1161
- } = n;
1162
- return [o.root, r && o.media, t && o.img];
1163
- }
1164
- })(({
1165
- ownerState: e
1166
- }) => k({
1167
- display: "block",
1168
- backgroundSize: "cover",
1169
- backgroundRepeat: "no-repeat",
1170
- backgroundPosition: "center"
1171
- }, e.isMediaComponent && {
1172
- width: "100%"
1173
- }, e.isImageComponent && {
1174
- // ⚠️ object-fit is not supported by IE11.
1175
- objectFit: "cover"
1176
- })), Dn = ["video", "audio", "picture", "iframe", "img"], jn = ["picture", "img"], Ve = /* @__PURE__ */ M.forwardRef(function(o, n) {
1177
- const r = F({
1178
- props: o,
1179
- name: "MuiCardMedia"
1180
- }), {
1181
- children: t,
1182
- className: a,
1183
- component: m = "div",
1184
- image: s,
1185
- src: l,
1186
- style: c
1187
- } = r, u = K(r, _n), p = Dn.indexOf(m) !== -1, f = !p && s ? k({
1188
- backgroundImage: `url("${s}")`
1189
- }, c) : c, b = k({}, r, {
1190
- component: m,
1191
- isMediaComponent: p,
1192
- isImageComponent: jn.indexOf(m) !== -1
1193
- }), x = En(b);
1194
- return /* @__PURE__ */ E(Sn, k({
1195
- className: I(x.root, a),
1196
- as: m,
1197
- role: !p && s ? "img" : void 0,
1198
- ref: n,
1199
- style: f,
1200
- ownerState: b,
1201
- src: p ? s || l : void 0
1202
- }, u, {
1203
- children: t
1204
- }));
1205
- });
1206
- process.env.NODE_ENV !== "production" && (Ve.propTypes = {
1207
- // ----------------------------- Warning --------------------------------
1208
- // | These PropTypes are generated from the TypeScript type definitions |
1209
- // | To update them edit the d.ts file and run "yarn proptypes" |
1210
- // ----------------------------------------------------------------------
1211
- /**
1212
- * The content of the component.
1213
- */
1214
- children: Ne(i.node, (e) => !e.children && !e.image && !e.src && !e.component ? new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified.") : null),
1215
- /**
1216
- * Override or extend the styles applied to the component.
1217
- */
1218
- classes: i.object,
1219
- /**
1220
- * @ignore
1221
- */
1222
- className: i.string,
1223
- /**
1224
- * The component used for the root node.
1225
- * Either a string to use a HTML element or a component.
1226
- */
1227
- component: i.elementType,
1228
- /**
1229
- * Image to be displayed as a background image.
1230
- * Either `image` or `src` prop must be specified.
1231
- * Note that caller must specify height otherwise the image will not be visible.
1232
- */
1233
- image: i.string,
1234
- /**
1235
- * An alias for `image` property.
1236
- * Available only with media components.
1237
- * Media components: `video`, `audio`, `picture`, `iframe`, `img`.
1238
- */
1239
- src: i.string,
1240
- /**
1241
- * @ignore
1242
- */
1243
- style: i.object,
1244
- /**
1245
- * The system prop that allows defining system overrides as well as additional CSS styles.
1246
- */
1247
- sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
1248
- });
1249
- const ce = /* @__PURE__ */ M.createContext();
1250
- process.env.NODE_ENV !== "production" && (ce.displayName = "GridContext");
1251
- function Tn(e) {
1252
- return G("MuiGrid", e);
1253
- }
1254
- const Mn = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], On = ["column-reverse", "column", "row-reverse", "row"], Vn = ["nowrap", "wrap-reverse", "wrap"], L = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], fe = H("MuiGrid", [
1255
- "root",
1256
- "container",
1257
- "item",
1258
- "zeroMinWidth",
1259
- // spacings
1260
- ...Mn.map((e) => `spacing-xs-${e}`),
1261
- // direction values
1262
- ...On.map((e) => `direction-xs-${e}`),
1263
- // wrap values
1264
- ...Vn.map((e) => `wrap-xs-${e}`),
1265
- // grid sizes for all breakpoints
1266
- ...L.map((e) => `grid-xs-${e}`),
1267
- ...L.map((e) => `grid-sm-${e}`),
1268
- ...L.map((e) => `grid-md-${e}`),
1269
- ...L.map((e) => `grid-lg-${e}`),
1270
- ...L.map((e) => `grid-xl-${e}`)
1271
- ]), zn = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
1272
- function $(e) {
1273
- const o = parseFloat(e);
1274
- return `${o}${String(e).replace(String(o), "") || "px"}`;
1275
- }
1276
- function An({
1277
- theme: e,
1278
- ownerState: o
1279
- }) {
1280
- let n;
1281
- return e.breakpoints.keys.reduce((r, t) => {
1282
- let a = {};
1283
- if (o[t] && (n = o[t]), !n)
1284
- return r;
1285
- if (n === !0)
1286
- a = {
1287
- flexBasis: 0,
1288
- flexGrow: 1,
1289
- maxWidth: "100%"
1290
- };
1291
- else if (n === "auto")
1292
- a = {
1293
- flexBasis: "auto",
1294
- flexGrow: 0,
1295
- flexShrink: 0,
1296
- maxWidth: "none",
1297
- width: "auto"
1298
- };
1299
- else {
1300
- const m = te({
1301
- values: o.columns,
1302
- breakpoints: e.breakpoints.values
1303
- }), s = typeof m == "object" ? m[t] : m;
1304
- if (s == null)
1305
- return r;
1306
- const l = `${Math.round(n / s * 1e8) / 1e6}%`;
1307
- let c = {};
1308
- if (o.container && o.item && o.columnSpacing !== 0) {
1309
- const u = e.spacing(o.columnSpacing);
1310
- if (u !== "0px") {
1311
- const p = `calc(${l} + ${$(u)})`;
1312
- c = {
1313
- flexBasis: p,
1314
- maxWidth: p
1315
- };
1316
- }
1317
- }
1318
- a = k({
1319
- flexBasis: l,
1320
- flexGrow: 0,
1321
- maxWidth: l
1322
- }, c);
1323
- }
1324
- return e.breakpoints.values[t] === 0 ? Object.assign(r, a) : r[e.breakpoints.up(t)] = a, r;
1325
- }, {});
1326
- }
1327
- function $n({
1328
- theme: e,
1329
- ownerState: o
1330
- }) {
1331
- const n = te({
1332
- values: o.direction,
1333
- breakpoints: e.breakpoints.values
1334
- });
1335
- return de({
1336
- theme: e
1337
- }, n, (r) => {
1338
- const t = {
1339
- flexDirection: r
1340
- };
1341
- return r.indexOf("column") === 0 && (t[`& > .${fe.item}`] = {
1342
- maxWidth: "none"
1343
- }), t;
1344
- });
1345
- }
1346
- function qn({
1347
- theme: e,
1348
- ownerState: o
1349
- }) {
1350
- const {
1351
- container: n,
1352
- rowSpacing: r
1353
- } = o;
1354
- let t = {};
1355
- if (n && r !== 0) {
1356
- const a = te({
1357
- values: r,
1358
- breakpoints: e.breakpoints.values
1359
- });
1360
- t = de({
1361
- theme: e
1362
- }, a, (m) => {
1363
- const s = e.spacing(m);
1364
- return s !== "0px" ? {
1365
- marginTop: `-${$(s)}`,
1366
- [`& > .${fe.item}`]: {
1367
- paddingTop: $(s)
1368
- }
1369
- } : {};
1370
- });
1371
- }
1372
- return t;
1373
- }
1374
- function Ln({
1375
- theme: e,
1376
- ownerState: o
1377
- }) {
1378
- const {
1379
- container: n,
1380
- columnSpacing: r
1381
- } = o;
1382
- let t = {};
1383
- if (n && r !== 0) {
1384
- const a = te({
1385
- values: r,
1386
- breakpoints: e.breakpoints.values
1387
- });
1388
- t = de({
1389
- theme: e
1390
- }, a, (m) => {
1391
- const s = e.spacing(m);
1392
- return s !== "0px" ? {
1393
- width: `calc(100% + ${$(s)})`,
1394
- marginLeft: `-${$(s)}`,
1395
- [`& > .${fe.item}`]: {
1396
- paddingLeft: $(s)
1397
- }
1398
- } : {};
1399
- });
1400
- }
1401
- return t;
1402
- }
1403
- function Pn(e, o, n = {}) {
1404
- if (!e || e <= 0)
1405
- return [];
1406
- if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
1407
- return [n[`spacing-xs-${String(e)}`]];
1408
- const r = [];
1409
- return o.forEach((t) => {
1410
- const a = e[t];
1411
- Number(a) > 0 && r.push(n[`spacing-${t}-${String(a)}`]);
1412
- }), r;
1413
- }
1414
- const Wn = U("div", {
1415
- name: "MuiGrid",
1416
- slot: "Root",
1417
- overridesResolver: (e, o) => {
1418
- const {
1419
- ownerState: n
1420
- } = e, {
1421
- container: r,
1422
- direction: t,
1423
- item: a,
1424
- spacing: m,
1425
- wrap: s,
1426
- zeroMinWidth: l,
1427
- breakpoints: c
1428
- } = n;
1429
- let u = [];
1430
- r && (u = Pn(m, c, o));
1431
- const p = [];
1432
- return c.forEach((f) => {
1433
- const b = n[f];
1434
- b && p.push(o[`grid-${f}-${String(b)}`]);
1435
- }), [o.root, r && o.container, a && o.item, l && o.zeroMinWidth, ...u, t !== "row" && o[`direction-xs-${String(t)}`], s !== "wrap" && o[`wrap-xs-${String(s)}`], ...p];
1436
- }
1437
- })(({
1438
- ownerState: e
1439
- }) => k({
1440
- boxSizing: "border-box"
1441
- }, e.container && {
1442
- display: "flex",
1443
- flexWrap: "wrap",
1444
- width: "100%"
1445
- }, e.item && {
1446
- margin: 0
1447
- // For instance, it's useful when used with a `figure` element.
1448
- }, e.zeroMinWidth && {
1449
- minWidth: 0
1450
- }, e.wrap !== "wrap" && {
1451
- flexWrap: e.wrap
1452
- }), $n, qn, Ln, An);
1453
- function Rn(e, o) {
1454
- if (!e || e <= 0)
1455
- return [];
1456
- if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
1457
- return [`spacing-xs-${String(e)}`];
1458
- const n = [];
1459
- return o.forEach((r) => {
1460
- const t = e[r];
1461
- if (Number(t) > 0) {
1462
- const a = `spacing-${r}-${String(t)}`;
1463
- n.push(a);
1464
- }
1465
- }), n;
1466
- }
1467
- const Bn = (e) => {
1468
- const {
1469
- classes: o,
1470
- container: n,
1471
- direction: r,
1472
- item: t,
1473
- spacing: a,
1474
- wrap: m,
1475
- zeroMinWidth: s,
1476
- breakpoints: l
1477
- } = e;
1478
- let c = [];
1479
- n && (c = Rn(a, l));
1480
- const u = [];
1481
- l.forEach((f) => {
1482
- const b = e[f];
1483
- b && u.push(`grid-${f}-${String(b)}`);
1484
- });
1485
- const p = {
1486
- root: ["root", n && "container", t && "item", s && "zeroMinWidth", ...c, r !== "row" && `direction-xs-${String(r)}`, m !== "wrap" && `wrap-xs-${String(m)}`, ...u]
1487
- };
1488
- return X(p, Tn, o);
1489
- }, T = /* @__PURE__ */ M.forwardRef(function(o, n) {
1490
- const r = F({
1491
- props: o,
1492
- name: "MuiGrid"
1493
- }), {
1494
- breakpoints: t
1495
- } = Fe(), a = Je(r), {
1496
- className: m,
1497
- columns: s,
1498
- columnSpacing: l,
1499
- component: c = "div",
1500
- container: u = !1,
1501
- direction: p = "row",
1502
- item: f = !1,
1503
- rowSpacing: b,
1504
- spacing: x = 0,
1505
- wrap: C = "wrap",
1506
- zeroMinWidth: _ = !1
1507
- } = a, S = K(a, zn), N = b || x, z = l || x, D = M.useContext(ce), A = u ? s || 12 : D, Q = {}, Y = k({}, S);
1508
- t.keys.forEach((j) => {
1509
- S[j] != null && (Q[j] = S[j], delete Y[j]);
1510
- });
1511
- const Z = k({}, a, {
1512
- columns: A,
1513
- container: u,
1514
- direction: p,
1515
- item: f,
1516
- rowSpacing: N,
1517
- columnSpacing: z,
1518
- wrap: C,
1519
- zeroMinWidth: _,
1520
- spacing: x
1521
- }, Q, {
1522
- breakpoints: t.keys
1523
- }), J = Bn(Z);
1524
- return /* @__PURE__ */ E(ce.Provider, {
1525
- value: A,
1526
- children: /* @__PURE__ */ E(Wn, k({
1527
- ownerState: Z,
1528
- className: I(J.root, m),
1529
- as: c,
1530
- ref: n
1531
- }, Y))
1532
- });
1533
- });
1534
- process.env.NODE_ENV !== "production" && (T.propTypes = {
1535
- // ----------------------------- Warning --------------------------------
1536
- // | These PropTypes are generated from the TypeScript type definitions |
1537
- // | To update them edit the d.ts file and run "yarn proptypes" |
1538
- // ----------------------------------------------------------------------
1539
- /**
1540
- * The content of the component.
1541
- */
1542
- children: i.node,
1543
- /**
1544
- * Override or extend the styles applied to the component.
1545
- */
1546
- classes: i.object,
1547
- /**
1548
- * @ignore
1549
- */
1550
- className: i.string,
1551
- /**
1552
- * The number of columns.
1553
- * @default 12
1554
- */
1555
- columns: i.oneOfType([i.arrayOf(i.number), i.number, i.object]),
1556
- /**
1557
- * Defines the horizontal space between the type `item` components.
1558
- * It overrides the value of the `spacing` prop.
1559
- */
1560
- columnSpacing: i.oneOfType([i.arrayOf(i.oneOfType([i.number, i.string])), i.number, i.object, i.string]),
1561
- /**
1562
- * The component used for the root node.
1563
- * Either a string to use a HTML element or a component.
1564
- */
1565
- component: i.elementType,
1566
- /**
1567
- * If `true`, the component will have the flex *container* behavior.
1568
- * You should be wrapping *items* with a *container*.
1569
- * @default false
1570
- */
1571
- container: i.bool,
1572
- /**
1573
- * Defines the `flex-direction` style property.
1574
- * It is applied for all screen sizes.
1575
- * @default 'row'
1576
- */
1577
- direction: i.oneOfType([i.oneOf(["column-reverse", "column", "row-reverse", "row"]), i.arrayOf(i.oneOf(["column-reverse", "column", "row-reverse", "row"])), i.object]),
1578
- /**
1579
- * If `true`, the component will have the flex *item* behavior.
1580
- * You should be wrapping *items* with a *container*.
1581
- * @default false
1582
- */
1583
- item: i.bool,
1584
- /**
1585
- * If a number, it sets the number of columns the grid item uses.
1586
- * It can't be greater than the total number of columns of the container (12 by default).
1587
- * If 'auto', the grid item's width matches its content.
1588
- * If false, the prop is ignored.
1589
- * If true, the grid item's width grows to use the space available in the grid container.
1590
- * The value is applied for the `lg` breakpoint and wider screens if not overridden.
1591
- * @default false
1592
- */
1593
- lg: i.oneOfType([i.oneOf(["auto"]), i.number, i.bool]),
1594
- /**
1595
- * If a number, it sets the number of columns the grid item uses.
1596
- * It can't be greater than the total number of columns of the container (12 by default).
1597
- * If 'auto', the grid item's width matches its content.
1598
- * If false, the prop is ignored.
1599
- * If true, the grid item's width grows to use the space available in the grid container.
1600
- * The value is applied for the `md` breakpoint and wider screens if not overridden.
1601
- * @default false
1602
- */
1603
- md: i.oneOfType([i.oneOf(["auto"]), i.number, i.bool]),
1604
- /**
1605
- * Defines the vertical space between the type `item` components.
1606
- * It overrides the value of the `spacing` prop.
1607
- */
1608
- rowSpacing: i.oneOfType([i.arrayOf(i.oneOfType([i.number, i.string])), i.number, i.object, i.string]),
1609
- /**
1610
- * If a number, it sets the number of columns the grid item uses.
1611
- * It can't be greater than the total number of columns of the container (12 by default).
1612
- * If 'auto', the grid item's width matches its content.
1613
- * If false, the prop is ignored.
1614
- * If true, the grid item's width grows to use the space available in the grid container.
1615
- * The value is applied for the `sm` breakpoint and wider screens if not overridden.
1616
- * @default false
1617
- */
1618
- sm: i.oneOfType([i.oneOf(["auto"]), i.number, i.bool]),
1619
- /**
1620
- * Defines the space between the type `item` components.
1621
- * It can only be used on a type `container` component.
1622
- * @default 0
1623
- */
1624
- spacing: i.oneOfType([i.arrayOf(i.oneOfType([i.number, i.string])), i.number, i.object, i.string]),
1625
- /**
1626
- * The system prop that allows defining system overrides as well as additional CSS styles.
1627
- */
1628
- sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
1629
- /**
1630
- * Defines the `flex-wrap` style property.
1631
- * It's applied for all screen sizes.
1632
- * @default 'wrap'
1633
- */
1634
- wrap: i.oneOf(["nowrap", "wrap-reverse", "wrap"]),
1635
- /**
1636
- * If a number, it sets the number of columns the grid item uses.
1637
- * It can't be greater than the total number of columns of the container (12 by default).
1638
- * If 'auto', the grid item's width matches its content.
1639
- * If false, the prop is ignored.
1640
- * If true, the grid item's width grows to use the space available in the grid container.
1641
- * The value is applied for the `xl` breakpoint and wider screens if not overridden.
1642
- * @default false
1643
- */
1644
- xl: i.oneOfType([i.oneOf(["auto"]), i.number, i.bool]),
1645
- /**
1646
- * If a number, it sets the number of columns the grid item uses.
1647
- * It can't be greater than the total number of columns of the container (12 by default).
1648
- * If 'auto', the grid item's width matches its content.
1649
- * If false, the prop is ignored.
1650
- * If true, the grid item's width grows to use the space available in the grid container.
1651
- * The value is applied for all the screen sizes with the lowest priority.
1652
- * @default false
1653
- */
1654
- xs: i.oneOfType([i.oneOf(["auto"]), i.number, i.bool]),
1655
- /**
1656
- * If `true`, it sets `min-width: 0` on the item.
1657
- * Refer to the limitations section of the documentation to better understand the use case.
1658
- * @default false
1659
- */
1660
- zeroMinWidth: i.bool
1661
- });
1662
- if (process.env.NODE_ENV !== "production") {
1663
- const e = Ke("Grid", T);
1664
- T.propTypes = k({}, T.propTypes, {
1665
- direction: e("container"),
1666
- lg: e("item"),
1667
- md: e("item"),
1668
- sm: e("item"),
1669
- spacing: e("container"),
1670
- wrap: e("container"),
1671
- xs: e("item"),
1672
- zeroMinWidth: e("item")
1673
- });
1674
- }
1675
- const Hn = Ze((e) => {
1676
- var o, n, r, t, a, m, s, l, c;
1677
- return {
1678
- embedDesktopTabCardWp: {
1679
- boxShadow: "none !important",
1680
- overflow: "hidden",
1681
- borderRadius: `${(o = e == null ? void 0 : e.borderRadius) == null ? void 0 : o.value} !important`,
1682
- border: `1px solid ${(r = (n = e == null ? void 0 : e.palette) == null ? void 0 : n.customColor) == null ? void 0 : r.LINE}`,
1683
- background: (a = (t = e == null ? void 0 : e.palette) == null ? void 0 : t.customColor) == null ? void 0 : a.BGLIGHT,
1684
- cursor: "pointer",
1685
- "& .card-container": {
1686
- width: "100%",
1687
- overflow: "hidden",
1688
- [e.breakpoints.up("sm")]: {
1689
- height: "270px"
1690
- }
1691
- },
1692
- "& .card-content-area": {
1693
- overflow: "hidden",
1694
- display: "flex",
1695
- flexDirection: "column",
1696
- background: (s = (m = e == null ? void 0 : e.palette) == null ? void 0 : m.customColor) == null ? void 0 : s.BGLIGHT,
1697
- "& .contentBox": {
1698
- flex: "1 0 auto",
1699
- padding: "20px 20px 0px 20px !important",
1700
- overflow: "hidden",
1701
- flexDirection: "column",
1702
- [e.breakpoints.down("sm")]: {
1703
- overflow: "initial"
1704
- },
1705
- "& .cardActionWp": {
1706
- borderTop: `1px solid ${(c = (l = e == null ? void 0 : e.palette) == null ? void 0 : l.customColor) == null ? void 0 : c.LINE}`,
1707
- padding: "20px 0px",
1708
- display: "flex",
1709
- justifyContent: "start",
1710
- width: "100%",
1711
- marginTop: "20px",
1712
- [e.breakpoints.down("sm")]: {
1713
- alignItems: "baseline"
1714
- }
1715
- },
1716
- "& .TopContentBox": {
1717
- width: "100%"
1718
- }
1719
- }
1720
- }
1721
- }
1722
- };
1723
- }), Gn = `
1724
- .doticon .Platform-x-SvgIcon-root{
1725
- font-size: 6px;
1726
- }
1727
- .doticon svg.MuiSvgIcon-root {
1728
- font-size: 6px;
1729
- }
1730
- .embededtitle {
1731
- display: -webkit-box;
1732
- -webkit-box-orient: vertical;
1733
- overflow: hidden;
1734
- word-wrap: break-word;
1735
- }
1736
- .embededdesc {
1737
- display: -webkit-box;
1738
- -webkit-box-orient: vertical;
1739
- overflow: hidden;
1740
- word-wrap: break-word;
1741
- }
1742
- `, Un = ({ content: e }) => {
1743
- const o = Ie(e == null ? void 0 : e.Description) || "", n = Hn();
1744
- return /* @__PURE__ */ d.jsxDEV(
1745
- Te,
1746
- {
1747
- className: n.embedDesktopTabCardWp,
1748
- sx: {
1749
- margin: { xs: "8px 0px 8px 0", sm: "0" }
1750
- },
1751
- onClick: () => window.open(e == null ? void 0 : e.LandingPage, "_blank"),
1752
- children: /* @__PURE__ */ d.jsxDEV(T, { container: !0, children: [
1753
- /* @__PURE__ */ d.jsxDEV(T, { item: !0, xs: 12, className: "card-container", children: [
1754
- /* @__PURE__ */ d.jsxDEV("style", { children: Gn }, void 0, !1, {
1755
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1756
- lineNumber: 62,
1757
- columnNumber: 11
1758
- }, void 0),
1759
- (e == null ? void 0 : e.colorCode) !== void 0 && (e == null ? void 0 : e.colorCode) !== "" ? /* @__PURE__ */ d.jsxDEV(
1760
- v,
1761
- {
1762
- sx: {
1763
- height: "100%",
1764
- width: "100%",
1765
- background: e == null ? void 0 : e.colorCode
1766
- }
1767
- },
1768
- void 0,
1769
- !1,
1770
- {
1771
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1772
- lineNumber: 64,
1773
- columnNumber: 13
1774
- },
1775
- void 0
1776
- ) : /* @__PURE__ */ d.jsxDEV(
1777
- Ve,
1778
- {
1779
- component: "img",
1780
- image: e == null ? void 0 : e.Thumbnail,
1781
- sx: {
1782
- overflow: "hidden",
1783
- height: "100%"
1784
- },
1785
- alt: "Image",
1786
- className: "cardmediaimg"
1787
- },
1788
- void 0,
1789
- !1,
1790
- {
1791
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1792
- lineNumber: 72,
1793
- columnNumber: 13
1794
- },
1795
- void 0
1796
- )
1797
- ] }, void 0, !0, {
1798
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1799
- lineNumber: 61,
1800
- columnNumber: 9
1801
- }, void 0),
1802
- /* @__PURE__ */ d.jsxDEV(T, { item: !0, xs: 12, className: "card-content-area", children: /* @__PURE__ */ d.jsxDEV(Oe, { className: "contentBox", children: [
1803
- /* @__PURE__ */ d.jsxDEV(v, { className: "TopContentBox", children: [
1804
- /* @__PURE__ */ d.jsxDEV(
1805
- q,
1806
- {
1807
- gutterBottom: !0,
1808
- variant: "h3bold",
1809
- className: "embededtitle",
1810
- sx: {
1811
- WebkitLineClamp: { xs: "2" }
1812
- },
1813
- children: e == null ? void 0 : e.Title
1814
- },
1815
- void 0,
1816
- !1,
1817
- {
1818
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1819
- lineNumber: 87,
1820
- columnNumber: 15
1821
- },
1822
- void 0
1823
- ),
1824
- /* @__PURE__ */ d.jsxDEV(
1825
- q,
1826
- {
1827
- variant: "p3regular",
1828
- sx: {
1829
- WebkitLineClamp: { xs: "2" }
1830
- },
1831
- className: "embededdesc",
1832
- children: o
1833
- },
1834
- void 0,
1835
- !1,
1836
- {
1837
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1838
- lineNumber: 96,
1839
- columnNumber: 15
1840
- },
1841
- void 0
1842
- )
1843
- ] }, void 0, !0, {
1844
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1845
- lineNumber: 86,
1846
- columnNumber: 13
1847
- }, void 0),
1848
- /* @__PURE__ */ d.jsxDEV(Me, { className: "cardActionWp", children: [
1849
- /* @__PURE__ */ d.jsxDEV(q, { variant: "p4semibold", children: e == null ? void 0 : e.Author }, void 0, !1, {
1850
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1851
- lineNumber: 106,
1852
- columnNumber: 15
1853
- }, void 0),
1854
- /* @__PURE__ */ d.jsxDEV(
1855
- q,
1856
- {
1857
- variant: "p4regular",
1858
- sx: {
1859
- display: { xs: "block", sm: "none" },
1860
- marginLeft: "8px"
1861
- },
1862
- className: "doticon",
1863
- children: /* @__PURE__ */ d.jsxDEV(je, {}, void 0, !1, {
1864
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1865
- lineNumber: 114,
1866
- columnNumber: 17
1867
- }, void 0)
1868
- },
1869
- void 0,
1870
- !1,
1871
- {
1872
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1873
- lineNumber: 107,
1874
- columnNumber: 15
1875
- },
1876
- void 0
1877
- ),
1878
- /* @__PURE__ */ d.jsxDEV(q, { variant: "p4regular", children: Xe(e == null ? void 0 : e.creationDate) }, void 0, !1, {
1879
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1880
- lineNumber: 116,
1881
- columnNumber: 15
1882
- }, void 0)
1883
- ] }, void 0, !0, {
1884
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1885
- lineNumber: 105,
1886
- columnNumber: 13
1887
- }, void 0)
1888
- ] }, void 0, !0, {
1889
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1890
- lineNumber: 85,
1891
- columnNumber: 11
1892
- }, void 0) }, void 0, !1, {
1893
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1894
- lineNumber: 84,
1895
- columnNumber: 9
1896
- }, void 0)
1897
- ] }, void 0, !0, {
1898
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1899
- lineNumber: 60,
1900
- columnNumber: 7
1901
- }, void 0)
1902
- },
1903
- void 0,
1904
- !1,
1905
- {
1906
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbedDesktopTabCard/EmbedDesktopTabCard.tsx",
1907
- lineNumber: 54,
1908
- columnNumber: 5
1909
- },
1910
- void 0
1911
- );
1912
- };
1913
- function ve({ maxWidth: e = 350, maxHeight: o }) {
1914
- return /* @__PURE__ */ d.jsxDEV(
1915
- Ae,
1916
- {
1917
- sx: {
1918
- maxWidth: e,
1919
- maxHeight: o,
1920
- m: 2,
1921
- border: "none",
1922
- boxShadow: "none"
1923
- },
1924
- children: [
1925
- /* @__PURE__ */ d.jsxDEV(oe, { sx: { height: 190, marginBottom: 2 }, animation: "wave", variant: "rectangular" }, void 0, !1, {
1926
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Skeleton/Skeleton.tsx",
1927
- lineNumber: 18,
1928
- columnNumber: 7
1929
- }, this),
1930
- /* @__PURE__ */ d.jsxDEV(oe, { animation: "wave", width: "40%", height: 15, style: { marginBottom: 15 } }, void 0, !1, {
1931
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Skeleton/Skeleton.tsx",
1932
- lineNumber: 19,
1933
- columnNumber: 7
1934
- }, this),
1935
- /* @__PURE__ */ d.jsxDEV(oe, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }, void 0, !1, {
1936
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Skeleton/Skeleton.tsx",
1937
- lineNumber: 20,
1938
- columnNumber: 7
1939
- }, this),
1940
- /* @__PURE__ */ d.jsxDEV(oe, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 6 } }, void 0, !1, {
1941
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Skeleton/Skeleton.tsx",
1942
- lineNumber: 21,
1943
- columnNumber: 7
1944
- }, this)
1945
- ]
1946
- },
1947
- void 0,
1948
- !0,
1949
- {
1950
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Skeleton/Skeleton.tsx",
1951
- lineNumber: 10,
1952
- columnNumber: 5
1953
- },
1954
- this
1955
- );
1956
- }
1957
- const Fn = ({ selectedItem: e }) => {
1958
- const [o, n] = re(!1), { t: r } = Ee(), t = {
1959
- Title: e == null ? void 0 : e.Title,
1960
- Description: e == null ? void 0 : e.Description,
1961
- Thumbnail: e == null ? void 0 : e.Thumbnail,
1962
- Author: e == null ? void 0 : e.Author,
1963
- creationDate: e == null ? void 0 : e.creationDate,
1964
- Page: e == null ? void 0 : e.Page,
1965
- LandingPage: e == null ? void 0 : e.LandingPage,
1966
- ContentURL: e == null ? void 0 : e.ContentURL
1967
- }, a = `
1968
- <iframe src="${t == null ? void 0 : t.Page}" width="360" height="203" style="border:none;overflow:hidden"></iframe>
1969
- `, m = `
1970
- <iframe src="${t == null ? void 0 : t.Page}" width="480" height="270" style="border:none;overflow:hidden"></iframe>
1971
- `, s = (l) => {
1972
- navigator.clipboard.writeText(l), n(!0);
1973
- };
1974
- return /* @__PURE__ */ d.jsxDEV(
1975
- v,
1976
- {
1977
- sx: {
1978
- overflowY: "auto"
1979
- },
1980
- children: /* @__PURE__ */ d.jsxDEV(ae, { container: !0, children: [
1981
- /* @__PURE__ */ d.jsxDEV(
1982
- ae,
1983
- {
1984
- item: !0,
1985
- xs: 12,
1986
- em: 7,
1987
- sx: {
1988
- background: "#f5f6f8",
1989
- display: "flex",
1990
- alignItems: { xs: "start", md: "center" },
1991
- height: { xs: "520px", sm: "initial", md: "initial", em: "480px" }
1992
- },
1993
- children: /* @__PURE__ */ d.jsxDEV(
1994
- v,
1995
- {
1996
- sx: {
1997
- width: { xs: "100%", md: "100%", lg: "100%" },
1998
- padding: {
1999
- xs: "56px 10px 0px 10px",
2000
- md: "65px 0px"
2001
- // lg: "82px 20px",
2002
- },
2003
- display: "flex",
2004
- justifyContent: "center",
2005
- alignItems: "center"
2006
- },
2007
- className: "card1",
2008
- children: e && (e != null && e.Thumbnail) ? /* @__PURE__ */ d.jsxDEV(Un, { content: t }, void 0, !1, {
2009
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2010
- lineNumber: 63,
2011
- columnNumber: 15
2012
- }, void 0) : /* @__PURE__ */ d.jsxDEV(ve, { maxWidth: 480, maxHeight: 500 }, void 0, !1, {
2013
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2014
- lineNumber: 65,
2015
- columnNumber: 15
2016
- }, void 0)
2017
- },
2018
- void 0,
2019
- !1,
2020
- {
2021
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2022
- lineNumber: 49,
2023
- columnNumber: 11
2024
- },
2025
- void 0
2026
- )
2027
- },
2028
- void 0,
2029
- !1,
2030
- {
2031
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2032
- lineNumber: 39,
2033
- columnNumber: 9
2034
- },
2035
- void 0
2036
- ),
2037
- /* @__PURE__ */ d.jsxDEV(
2038
- ae,
2039
- {
2040
- item: !0,
2041
- xs: 12,
2042
- em: 5,
2043
- sx: {
2044
- padding: {
2045
- xs: "30px 10px 0px 10px",
2046
- sm: "30px 20px 0px 20px",
2047
- md: "35px 25px",
2048
- lg: "0px 25px 0px 20px"
2049
- },
2050
- display: "flex",
2051
- justifyContent: "center",
2052
- alignItems: "center"
2053
- },
2054
- children: /* @__PURE__ */ d.jsxDEV(
2055
- v,
2056
- {
2057
- sx: {
2058
- padding: {
2059
- xs: "20px 0 0 0",
2060
- md: "0"
2061
- //lg: '20px 0px 0 0',
2062
- },
2063
- width: { xs: "360px", sm: "480px" }
2064
- },
2065
- children: e && (e != null && e.Thumbnail) ? /* @__PURE__ */ d.jsxDEV(d.Fragment, { children: [
2066
- /* @__PURE__ */ d.jsxDEV(
2067
- v,
2068
- {
2069
- sx: {
2070
- marginBottom: { md: "25px", lg: "0" },
2071
- padding: { xs: "0 0 10px 0", md: "0" }
2072
- },
2073
- children: [
2074
- /* @__PURE__ */ d.jsxDEV(v, { children: /* @__PURE__ */ d.jsxDEV(
2075
- he,
2076
- {
2077
- variant: "h3bold",
2078
- color: "textColor1",
2079
- padding: 0,
2080
- margin: 0,
2081
- sx: { textTransform: "capitalize" },
2082
- children: r("social_embed_link")
2083
- },
2084
- void 0,
2085
- !1,
2086
- {
2087
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2088
- lineNumber: 101,
2089
- columnNumber: 21
2090
- },
2091
- void 0
2092
- ) }, void 0, !1, {
2093
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2094
- lineNumber: 100,
2095
- columnNumber: 19
2096
- }, void 0),
2097
- /* @__PURE__ */ d.jsxDEV(v, { children: /* @__PURE__ */ d.jsxDEV(
2098
- he,
2099
- {
2100
- variant: "h7regular",
2101
- padding: 0,
2102
- margin: 0,
2103
- sx: { color: "#89909a" },
2104
- children: r("social_emded_link_desc")
2105
- },
2106
- void 0,
2107
- !1,
2108
- {
2109
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2110
- lineNumber: 111,
2111
- columnNumber: 21
2112
- },
2113
- void 0
2114
- ) }, void 0, !1, {
2115
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2116
- lineNumber: 110,
2117
- columnNumber: 19
2118
- }, void 0)
2119
- ]
2120
- },
2121
- void 0,
2122
- !0,
2123
- {
2124
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2125
- lineNumber: 95,
2126
- columnNumber: 17
2127
- },
2128
- void 0
2129
- ),
2130
- /* @__PURE__ */ d.jsxDEV(
2131
- v,
2132
- {
2133
- sx: {
2134
- height: { lg: "295px", xl: "225px" },
2135
- // height: "auto",
2136
- overflowY: "auto",
2137
- borderRadius: "5px",
2138
- border: "solid 1px #ced3d9",
2139
- flexGrow: " 0",
2140
- margin: { lg: "18px 0 34px" },
2141
- padding: "16px 20px 24px 25px",
2142
- overflowWrap: "break-word",
2143
- display: { xs: "block", md: "none" },
2144
- fontFamily: "Roboto Mono",
2145
- wordBreak: "break-word"
2146
- },
2147
- children: a
2148
- },
2149
- void 0,
2150
- !1,
2151
- {
2152
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2153
- lineNumber: 120,
2154
- columnNumber: 17
2155
- },
2156
- void 0
2157
- ),
2158
- /* @__PURE__ */ d.jsxDEV(
2159
- v,
2160
- {
2161
- sx: {
2162
- height: { md: "215px", lg: "215px" },
2163
- //height: 'auto',
2164
- overflowY: "auto",
2165
- borderRadius: "5px",
2166
- border: "solid 1px #ced3d9",
2167
- flexGrow: " 0",
2168
- margin: { md: "15px 0" },
2169
- padding: "16px 20px 24px 25px",
2170
- overflowWrap: "break-word",
2171
- display: { xs: "none", md: "block" },
2172
- fontFamily: "Roboto Mono",
2173
- wordBreak: "break-word"
2174
- },
2175
- children: m
2176
- },
2177
- void 0,
2178
- !1,
2179
- {
2180
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2181
- lineNumber: 137,
2182
- columnNumber: 17
2183
- },
2184
- void 0
2185
- ),
2186
- /* @__PURE__ */ d.jsxDEV(
2187
- v,
2188
- {
2189
- sx: {
2190
- display: "flex",
2191
- flexDirection: "row-reverse"
2192
- },
2193
- children: [
2194
- /* @__PURE__ */ d.jsxDEV(
2195
- be,
2196
- {
2197
- variant: "primaryButton1",
2198
- sx: {
2199
- display: { xs: "none", md: "flex" },
2200
- margin: "0",
2201
- padding: "0"
2202
- },
2203
- onClick: () => s(m),
2204
- "data-testid": "copy-desktop-embedded-code",
2205
- children: r(o ? "copied" : "copy_code")
2206
- },
2207
- void 0,
2208
- !1,
2209
- {
2210
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2211
- lineNumber: 159,
2212
- columnNumber: 19
2213
- },
2214
- void 0
2215
- ),
2216
- /* @__PURE__ */ d.jsxDEV(
2217
- be,
2218
- {
2219
- variant: "primaryButton1",
2220
- sx: {
2221
- padding: "0",
2222
- minWidth: { xs: "100%" },
2223
- display: { xs: "flex", md: "none" },
2224
- margin: { xs: "20px 0 0 0", md: 0 }
2225
- },
2226
- onClick: () => s(a),
2227
- "data-testid": "copy-mobile-embedded-code",
2228
- children: r(o ? "copied" : "copy_code")
2229
- },
2230
- void 0,
2231
- !1,
2232
- {
2233
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2234
- lineNumber: 170,
2235
- columnNumber: 19
2236
- },
2237
- void 0
2238
- )
2239
- ]
2240
- },
2241
- void 0,
2242
- !0,
2243
- {
2244
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2245
- lineNumber: 154,
2246
- columnNumber: 17
2247
- },
2248
- void 0
2249
- )
2250
- ] }, void 0, !0, {
2251
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2252
- lineNumber: 94,
2253
- columnNumber: 15
2254
- }, void 0) : /* @__PURE__ */ d.jsxDEV(ve, { maxWidth: 480, maxHeight: 500 }, void 0, !1, {
2255
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2256
- lineNumber: 185,
2257
- columnNumber: 15
2258
- }, void 0)
2259
- },
2260
- void 0,
2261
- !1,
2262
- {
2263
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2264
- lineNumber: 84,
2265
- columnNumber: 11
2266
- },
2267
- void 0
2268
- )
2269
- },
2270
- void 0,
2271
- !1,
2272
- {
2273
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2274
- lineNumber: 69,
2275
- columnNumber: 9
2276
- },
2277
- void 0
2278
- )
2279
- ] }, void 0, !0, {
2280
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2281
- lineNumber: 38,
2282
- columnNumber: 7
2283
- }, void 0)
2284
- },
2285
- void 0,
2286
- !1,
2287
- {
2288
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/CardContent.tsx",
2289
- lineNumber: 34,
2290
- columnNumber: 5
2291
- },
2292
- void 0
2293
- );
2294
- };
2295
- function Kn({
2296
- isDialogOpen: e,
2297
- closeEmbedButtonHandle: o,
2298
- setSelectedItem: n
2299
- }) {
2300
- return /* @__PURE__ */ d.jsxDEV(v, { className: "embedmodal", children: /* @__PURE__ */ d.jsxDEV(
2301
- $e,
2302
- {
2303
- fullWidth: !0,
2304
- open: e,
2305
- onClose: o,
2306
- "aria-labelledby": "alert-dialog-title",
2307
- "aria-describedby": "alert-dialog-description",
2308
- PaperProps: {
2309
- sx: {
2310
- maxWidth: { xs: "97%", sm: "1080px" },
2311
- width: "97%",
2312
- margin: { xs: "0px" },
2313
- overflow: "hidden",
2314
- height: { md: "480px" }
2315
- }
2316
- },
2317
- sx: {
2318
- display: "block",
2319
- height: { xs: "100vh", sm: "auto" }
2320
- },
2321
- children: [
2322
- /* @__PURE__ */ d.jsxDEV(
2323
- v,
2324
- {
2325
- sx: {
2326
- paddingLeft: "20px",
2327
- marginTop: "8px",
2328
- marginLeft: { xs: "initial", md: "auto" },
2329
- position: "absolute",
2330
- right: "-10px"
2331
- },
2332
- children: /* @__PURE__ */ d.jsxDEV(
2333
- v,
2334
- {
2335
- sx: { textAlign: "right", cursor: "pointer", zIndex: "99999" },
2336
- mt: 1,
2337
- mr: 3,
2338
- onClick: o,
2339
- children: /* @__PURE__ */ d.jsxDEV(Qe, {}, void 0, !1, {
2340
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/EmbededModal.tsx",
2341
- lineNumber: 59,
2342
- columnNumber: 13
2343
- }, this)
2344
- },
2345
- void 0,
2346
- !1,
2347
- {
2348
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/EmbededModal.tsx",
2349
- lineNumber: 54,
2350
- columnNumber: 11
2351
- },
2352
- this
2353
- )
2354
- },
2355
- void 0,
2356
- !1,
2357
- {
2358
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/EmbededModal.tsx",
2359
- lineNumber: 46,
2360
- columnNumber: 9
2361
- },
2362
- this
2363
- ),
2364
- /* @__PURE__ */ d.jsxDEV(Fn, { selectedItem: n }, void 0, !1, {
2365
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/EmbededModal.tsx",
2366
- lineNumber: 62,
2367
- columnNumber: 9
2368
- }, this)
2369
- ]
2370
- },
2371
- void 0,
2372
- !0,
2373
- {
2374
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/EmbededModal.tsx",
2375
- lineNumber: 27,
2376
- columnNumber: 7
2377
- },
2378
- this
2379
- ) }, void 0, !1, {
2380
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/EmbededModal/EmbededModal.tsx",
2381
- lineNumber: 26,
2382
- columnNumber: 5
2383
- }, this);
2384
- }
2385
- const In = (e) => {
2386
- Ce.success(e);
2387
- }, ke = (e) => {
2388
- Ce.error(e);
2389
- }, Xn = (e) => {
2390
- const { t: o } = Ee(), n = qe(), { shareUrl: r = "", domainUrl: t = "", enablePreview: a, showRecentArticles: m } = e, s = () => {
2391
- if (e.whiteIcon)
2392
- return {
2393
- filter: "brightness(0) invert(1)"
2394
- };
2395
- }, l = (N = "#2d2d39") => ({
2396
- display: "flex",
2397
- justifyContent: "center",
2398
- alignItems: "center",
2399
- height: "33px !important",
2400
- width: "33px !important",
2401
- borderRadius: "3px",
2402
- cursor: "pointer",
2403
- marginRight: "12px",
2404
- background: e.whiteIcon ? " " : n.palette.textColor,
2405
- "&:hover": {
2406
- img: {
2407
- filter: "brightness(0) invert(1)"
2408
- },
2409
- background: N
2410
- },
2411
- border: e.border
2412
- }), c = {
2413
- display: "flex",
2414
- justifyContent: "center",
2415
- alignItems: "center",
2416
- cursor: a ? "default" : "pointer"
2417
- }, u = {
2418
- opacity: 1
2419
- }, p = async () => {
2420
- "clipboard" in navigator && t ? (await navigator.clipboard.writeText(t), In(o(Ye))) : ke(o(xe));
2421
- }, f = () => {
2422
- }, [b, x] = re(!1), C = (N = "") => {
2423
- N || ke(o(xe));
2424
- }, _ = () => {
2425
- x(!0);
2426
- }, S = () => {
2427
- x(!1);
2428
- };
2429
- return /* @__PURE__ */ d.jsxDEV(
2430
- v,
2431
- {
2432
- sx: {
2433
- display: "flex",
2434
- mt: "5px"
2435
- },
2436
- children: [
2437
- /* @__PURE__ */ d.jsxDEV(
2438
- jo,
2439
- {
2440
- disabled: a,
2441
- onClick: () => !a && C(r),
2442
- onShareWindowClose: f,
2443
- url: r,
2444
- style: c,
2445
- disabledStyle: u,
2446
- "data-testid": "facebook-share",
2447
- children: /* @__PURE__ */ d.jsxDEV(
2448
- v,
2449
- {
2450
- sx: {
2451
- ...l("#1078f0"),
2452
- cursor: a ? "default" : "pointer"
2453
- },
2454
- onClick: () => !a && C(r),
2455
- children: /* @__PURE__ */ d.jsxDEV("img", { alt: "share1", width: 15, height: 15, src: no, style: { ...s() } }, void 0, !1, {
2456
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2457
- lineNumber: 108,
2458
- columnNumber: 11
2459
- }, void 0)
2460
- },
2461
- void 0,
2462
- !1,
2463
- {
2464
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2465
- lineNumber: 102,
2466
- columnNumber: 9
2467
- },
2468
- void 0
2469
- )
2470
- },
2471
- void 0,
2472
- !1,
2473
- {
2474
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2475
- lineNumber: 94,
2476
- columnNumber: 7
2477
- },
2478
- void 0
2479
- ),
2480
- /* @__PURE__ */ d.jsxDEV(
2481
- Po,
2482
- {
2483
- disabled: a,
2484
- onShareWindowClose: f,
2485
- url: r,
2486
- style: c,
2487
- disabledStyle: u,
2488
- children: /* @__PURE__ */ d.jsxDEV(
2489
- v,
2490
- {
2491
- sx: {
2492
- ...l("#2d67b3"),
2493
- cursor: a ? "default" : "pointer"
2494
- },
2495
- onClick: () => !a && C(r),
2496
- "data-testid": "linkedin-share",
2497
- children: /* @__PURE__ */ d.jsxDEV("img", { alt: "share4", width: 15, height: 15, src: ro, style: { ...s() } }, void 0, !1, {
2498
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2499
- lineNumber: 124,
2500
- columnNumber: 11
2501
- }, void 0)
2502
- },
2503
- void 0,
2504
- !1,
2505
- {
2506
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2507
- lineNumber: 117,
2508
- columnNumber: 9
2509
- },
2510
- void 0
2511
- )
2512
- },
2513
- void 0,
2514
- !1,
2515
- {
2516
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2517
- lineNumber: 111,
2518
- columnNumber: 7
2519
- },
2520
- void 0
2521
- ),
2522
- /* @__PURE__ */ d.jsxDEV(
2523
- v,
2524
- {
2525
- sx: {
2526
- ...l("#229af1"),
2527
- cursor: a ? "default" : "pointer"
2528
- },
2529
- onClick: () => !a && p(),
2530
- "data-testid": "copy-clipboard-data",
2531
- children: /* @__PURE__ */ d.jsxDEV("img", { alt: "share5", width: 15, height: 15, src: eo, style: { ...s() } }, void 0, !1, {
2532
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2533
- lineNumber: 135,
2534
- columnNumber: 9
2535
- }, void 0)
2536
- },
2537
- void 0,
2538
- !1,
2539
- {
2540
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2541
- lineNumber: 128,
2542
- columnNumber: 7
2543
- },
2544
- void 0
2545
- ),
2546
- m && /* @__PURE__ */ d.jsxDEV(
2547
- v,
2548
- {
2549
- sx: {
2550
- ...l("#2d2d39"),
2551
- cursor: a ? "default" : "pointer",
2552
- marginRight: 0
2553
- },
2554
- onClick: () => {
2555
- !a && _();
2556
- },
2557
- "data-testid": "preview-and-embed",
2558
- children: /* @__PURE__ */ d.jsxDEV("img", { alt: "share6", width: 15, height: 15, src: oo, style: { ...s() } }, void 0, !1, {
2559
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2560
- lineNumber: 149,
2561
- columnNumber: 11
2562
- }, void 0)
2563
- },
2564
- void 0,
2565
- !1,
2566
- {
2567
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2568
- lineNumber: 139,
2569
- columnNumber: 9
2570
- },
2571
- void 0
2572
- ),
2573
- b ? /* @__PURE__ */ d.jsxDEV(
2574
- Kn,
2575
- {
2576
- isDialogOpen: b,
2577
- closeEmbedButtonHandle: S,
2578
- setSelectedItem: e == null ? void 0 : e.embedData
2579
- },
2580
- void 0,
2581
- !1,
2582
- {
2583
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2584
- lineNumber: 153,
2585
- columnNumber: 9
2586
- },
2587
- void 0
2588
- ) : null
2589
- ]
2590
- },
2591
- void 0,
2592
- !0,
2593
- {
2594
- fileName: "/home/sohail_quazi/actions-runner/_work/platformx-mono-repo-nx/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/Share/Share.tsx",
2595
- lineNumber: 89,
2596
- columnNumber: 5
2597
- },
2598
- void 0
2599
- );
2600
- }, ir = Le.memo(Xn);
2601
- export {
2602
- ir as default
2603
- };