@lanaco/lnc-react-ui 4.0.151 → 4.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AdBannerSection.cjs +3 -3
- package/dist/AdBannerSection.js +16 -16
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +33 -32
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +33 -33
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +15 -15
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -12
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +30 -30
- package/dist/BlogListSection.cjs +2 -2
- package/dist/BlogListSection.js +28 -28
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +20 -19
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +22 -22
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +24 -24
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{DailyMotion-CPQ6kDJJ.cjs → DailyMotion-BaFUcQKQ.cjs} +1 -1
- package/dist/{DailyMotion-BrbMSyj1.js → DailyMotion-ByXblnua.js} +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +41 -41
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/{Facebook-Dw3my9_4.js → Facebook-BCqiOWZO.js} +1 -1
- package/dist/{Facebook-DKhRiODC.cjs → Facebook-D9wwecSW.cjs} +1 -1
- package/dist/FaqSection.cjs +2 -2
- package/dist/FaqSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +65 -48
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +27 -25
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +10 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +77 -65
- package/dist/{FilePlayer-DlCyGLHB.cjs → FilePlayer-DB6jnpeC.cjs} +1 -1
- package/dist/{FilePlayer-Ckx8dmB0.js → FilePlayer-ktaNhf3p.js} +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +9 -9
- package/dist/GeneralWithTagsCardsSection.js +15 -15
- package/dist/{Kaltura-31Xm8S1J.cjs → Kaltura-CCdXLzOa.cjs} +1 -1
- package/dist/{Kaltura-qHdDvnjZ.js → Kaltura-CvlN0HDg.js} +1 -1
- package/dist/LoanCalculatorSection.cjs +2 -2
- package/dist/LoanCalculatorSection.js +89 -88
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/{Mixcloud-DvH0vfg5.js → Mixcloud-Bb8MTclI.js} +1 -1
- package/dist/{Mixcloud-CP9Zq_TX.cjs → Mixcloud-nG_VyBNt.cjs} +1 -1
- package/dist/{Mux-BlblTeid.cjs → Mux-BgB2a8kM.cjs} +1 -1
- package/dist/{Mux--JeF6dPG.js → Mux-DfYpGTiP.js} +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +11 -11
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/QuizSection.cjs +7 -7
- package/dist/QuizSection.js +51 -51
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -1
- package/dist/SearchSection-BcbHP6QF.cjs +161 -0
- package/dist/{SearchSection-CsfURtvf.js → SearchSection-DDQ_K98T.js} +52 -52
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/{SoundCloud-1hd9TBSO.cjs → SoundCloud-C86xwUG6.cjs} +1 -1
- package/dist/{SoundCloud-CKaavZky.js → SoundCloud-DG91z39R.js} +1 -1
- package/dist/StatsSection.cjs +5 -5
- package/dist/StatsSection.js +22 -22
- package/dist/{Streamable-DLxq1ZNX.cjs → Streamable-4uAnb3WN.cjs} +1 -1
- package/dist/{Streamable-CZEPghiG.js → Streamable-BAIWLgyD.js} +1 -1
- package/dist/ToggleSection.cjs +3 -3
- package/dist/ToggleSection.js +10 -10
- package/dist/{Twitch-Bb8e342z.cjs → Twitch-CVAj24ti.cjs} +1 -1
- package/dist/{Twitch-BJeGquex.js → Twitch-DfXeW5Xs.js} +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{Vidyard-WNQdOeK1.cjs → Vidyard-DaCcaaH4.cjs} +1 -1
- package/dist/{Vidyard-CuGoX_VE.js → Vidyard-De3pges0.js} +1 -1
- package/dist/{Vimeo-Da2vBv-V.cjs → Vimeo-8wXdCXGs.cjs} +1 -1
- package/dist/{Vimeo-B9eKoxWn.js → Vimeo-N6I2qi_h.js} +1 -1
- package/dist/{Wistia-ZPcGhh1L.cjs → Wistia-BrUzHQoq.cjs} +1 -1
- package/dist/{Wistia-BB50IUif.js → Wistia-dlV6n6tO.js} +1 -1
- package/dist/{YouTube-4RMnpdLL.cjs → YouTube-Cfsj4ZaP.cjs} +1 -1
- package/dist/{YouTube-CG6JL2_w.js → YouTube-DNJxWqRm.js} +1 -1
- package/dist/{index-DzYKmmn2.js → index-BGY3PSA-.js} +18 -18
- package/dist/{index-Djw_s9eq.js → index-C0SKNFzP.js} +15 -15
- package/dist/{index-cd9auaNr.cjs → index-CLoINIGC.cjs} +3 -3
- package/dist/{index-GxCvHDwv.cjs → index-ELUMKl0N.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{suspense-categories-card-simple-DuKEj9IU.js → suspense-categories-card-simple-BGj475Ca.js} +11 -10
- package/dist/{suspense-categories-card-simple-DaA0JGJJ.cjs → suspense-categories-card-simple-CjGtzfzp.cjs} +1 -1
- package/dist/suspense-product-card-detailed-BJ-HBkBc.js +577 -0
- package/dist/suspense-product-card-detailed-wPRUytSf.cjs +263 -0
- package/dist/{suspense-product-card-simple-D2m3NcrV.js → suspense-product-card-simple-CLJjab5B.js} +1 -1
- package/dist/{suspense-product-card-simple-BWxWMag0.cjs → suspense-product-card-simple-CrqjSxHI.cjs} +1 -1
- package/dist/{tag-CtleOqEC.js → tag-cRMfP-SZ.js} +9 -9
- package/dist/{tag-Bov1gw34.cjs → tag-yputMSpE.cjs} +4 -4
- package/package.json +1 -1
- package/dist/SearchSection-BGK1Fxaj.cjs +0 -161
- package/dist/suspense-product-card-detailed-C-ZCjG5p.js +0 -538
- package/dist/suspense-product-card-detailed-FuxsUusc.cjs +0 -260
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { p as x, o as u, k
|
|
1
|
+
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { p as x, o as u, k as $, l as N } from "./utils-BdsZgOUE.js";
|
|
5
5
|
import { M as v } from "./consts-BuFChS64.js";
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
6
|
+
import C from "./Icon.js";
|
|
7
|
+
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const W = c.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -22,7 +22,8 @@ const I = m.div`
|
|
|
22
22
|
width: 100%;
|
|
23
23
|
aspect-ratio: 1 / 1;
|
|
24
24
|
object-fit: cover;
|
|
25
|
-
height:
|
|
25
|
+
height: 100%;
|
|
26
|
+
max-height: 10.375rem;
|
|
26
27
|
border-radius: 0.75rem 0.75rem 0 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -56,12 +57,12 @@ const I = m.div`
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
cursor: pointer;
|
|
59
|
-
`,
|
|
60
|
+
`, j = c.div`
|
|
60
61
|
width: 100%;
|
|
61
62
|
height: 11.625rem;
|
|
62
63
|
border-radius: 0.75rem;
|
|
63
64
|
background: ${u("-90deg")};
|
|
64
|
-
`,
|
|
65
|
+
`, F = c.div`
|
|
65
66
|
display: flex;
|
|
66
67
|
padding: 0 0.75rem 0 0.75rem;
|
|
67
68
|
align-items: center;
|
|
@@ -101,7 +102,7 @@ const I = m.div`
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
&.active {
|
|
104
|
-
background: var(--yellow-600, #d97706);
|
|
105
|
+
background: ${(r) => (r == null ? void 0 : r.activeColor) || "var(--yellow-600, #d97706)"};
|
|
105
106
|
|
|
106
107
|
& .wrapper__icon {
|
|
107
108
|
color: var(--white, #fff);
|
|
@@ -115,30 +116,39 @@ const I = m.div`
|
|
|
115
116
|
@media (max-width: ${v + "px"}) {
|
|
116
117
|
min-width: fit-content;
|
|
117
118
|
}
|
|
118
|
-
`,
|
|
119
|
+
`, T = c.div`
|
|
119
120
|
width: 7rem;
|
|
120
121
|
height: 3rem;
|
|
121
122
|
border-radius: 999px;
|
|
122
123
|
background: ${u("-90deg")};
|
|
123
|
-
`,
|
|
124
|
-
({ name:
|
|
125
|
-
} },
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
124
|
+
`, z = d(({}, r) => /* @__PURE__ */ i(T, {})), O = d(
|
|
125
|
+
({ name: r, isActive: a, activeColor: t, icon: n, onSelectCard: s = () => {
|
|
126
|
+
} }, p) => /* @__PURE__ */ m(
|
|
127
|
+
F,
|
|
128
|
+
{
|
|
129
|
+
ref: p,
|
|
130
|
+
className: a ? "active" : "",
|
|
131
|
+
activeColor: t,
|
|
132
|
+
onClick: s,
|
|
133
|
+
children: [
|
|
134
|
+
$(n) && /* @__PURE__ */ i(C, { icon: n, className: "wrapper__icon" }),
|
|
135
|
+
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
), A = d(
|
|
140
|
+
({ image: r, imageComponent: a, name: t, description: n, onSelectCard: s = () => {
|
|
141
|
+
} }, p) => {
|
|
142
|
+
const { theme: f } = I();
|
|
143
|
+
return /* @__PURE__ */ m(W, { ref: p, theme: f, onClick: s, children: [
|
|
144
|
+
N(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
145
|
+
/* @__PURE__ */ m("div", { className: "wrapper__content", children: [
|
|
146
|
+
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
147
|
+
n && /* @__PURE__ */ i("div", { className: "wrapper__description", children: n })
|
|
138
148
|
] })
|
|
139
149
|
] });
|
|
140
150
|
}
|
|
141
|
-
),
|
|
151
|
+
), E = d(({}, r) => /* @__PURE__ */ i(j, {})), M = c.div`
|
|
142
152
|
display: flex;
|
|
143
153
|
flex-direction: column;
|
|
144
154
|
align-items: center;
|
|
@@ -179,7 +189,7 @@ const I = m.div`
|
|
|
179
189
|
|
|
180
190
|
& .wrapper__cards {
|
|
181
191
|
display: grid;
|
|
182
|
-
grid-template-columns: ${(
|
|
192
|
+
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(0, 1fr))`};
|
|
183
193
|
justify-content: center;
|
|
184
194
|
align-items: center;
|
|
185
195
|
gap: 1.5rem;
|
|
@@ -213,64 +223,66 @@ const I = m.div`
|
|
|
213
223
|
gap: 1rem;
|
|
214
224
|
}
|
|
215
225
|
}
|
|
216
|
-
`,
|
|
226
|
+
`, X = d(
|
|
217
227
|
({
|
|
218
|
-
title:
|
|
228
|
+
title: r,
|
|
219
229
|
subtitle: a,
|
|
220
|
-
tags:
|
|
221
|
-
limitTags:
|
|
222
|
-
limitTagsForMobile:
|
|
223
|
-
limit:
|
|
224
|
-
limitForMobile:
|
|
225
|
-
items:
|
|
230
|
+
tags: t = [],
|
|
231
|
+
limitTags: n = 7,
|
|
232
|
+
limitTagsForMobile: s = 7,
|
|
233
|
+
limit: p = 3,
|
|
234
|
+
limitForMobile: f = 2,
|
|
235
|
+
items: o = [],
|
|
226
236
|
selectedTag: y,
|
|
227
|
-
|
|
237
|
+
activeColor: b,
|
|
238
|
+
onSelectTag: h = () => {
|
|
228
239
|
},
|
|
229
|
-
onSelectCard:
|
|
240
|
+
onSelectCard: _ = () => {
|
|
230
241
|
}
|
|
231
|
-
},
|
|
242
|
+
}, k) => {
|
|
232
243
|
var w, g;
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
|
|
244
|
+
return /* @__PURE__ */ m(
|
|
245
|
+
M,
|
|
235
246
|
{
|
|
236
|
-
ref:
|
|
237
|
-
limitTags:
|
|
238
|
-
limitTagsForMobile:
|
|
239
|
-
limitCards:
|
|
240
|
-
limitCardsForMobile:
|
|
247
|
+
ref: k,
|
|
248
|
+
limitTags: n,
|
|
249
|
+
limitTagsForMobile: s,
|
|
250
|
+
limitCards: p,
|
|
251
|
+
limitCardsForMobile: f,
|
|
241
252
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
|
|
244
|
-
a && /* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
|
|
254
|
+
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
255
|
+
a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
|
|
245
256
|
] }),
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
|
|
257
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ i(
|
|
258
|
+
O,
|
|
248
259
|
{
|
|
249
260
|
icon: e == null ? void 0 : e.icon,
|
|
250
261
|
name: e == null ? void 0 : e.title,
|
|
251
262
|
isActive: (e == null ? void 0 : e.code) === y,
|
|
252
|
-
|
|
263
|
+
activeColor: b,
|
|
264
|
+
onSelectCard: () => h == null ? void 0 : h(e)
|
|
253
265
|
},
|
|
254
|
-
`field-of-interests-with-tags-card-tag__${
|
|
255
|
-
)) : (w = Array.from("123")) == null ? void 0 : w.map((e,
|
|
256
|
-
|
|
266
|
+
`field-of-interests-with-tags-card-tag__${l + 1}`
|
|
267
|
+
)) : (w = Array.from("123")) == null ? void 0 : w.map((e, l) => /* @__PURE__ */ i(
|
|
268
|
+
z,
|
|
257
269
|
{},
|
|
258
|
-
`field-of-interests-with-tags-card-tag-skeleton__${
|
|
270
|
+
`field-of-interests-with-tags-card-tag-skeleton__${l + 1}`
|
|
259
271
|
)) }),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
|
|
272
|
+
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: o && (o == null ? void 0 : o.length) > 0 ? o == null ? void 0 : o.map((e, l) => /* @__PURE__ */ i(
|
|
273
|
+
A,
|
|
262
274
|
{
|
|
263
275
|
image: e == null ? void 0 : e.image,
|
|
264
276
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
265
277
|
name: e == null ? void 0 : e.title,
|
|
266
278
|
description: e == null ? void 0 : e.description,
|
|
267
|
-
onSelectCard: () =>
|
|
279
|
+
onSelectCard: () => _ == null ? void 0 : _(e)
|
|
268
280
|
},
|
|
269
|
-
`field-of-interests-with-tags-card__${
|
|
270
|
-
)) : (g = Array.from("123")) == null ? void 0 : g.map((e,
|
|
271
|
-
|
|
281
|
+
`field-of-interests-with-tags-card__${l + 1}`
|
|
282
|
+
)) : (g = Array.from("123")) == null ? void 0 : g.map((e, l) => /* @__PURE__ */ i(
|
|
283
|
+
E,
|
|
272
284
|
{},
|
|
273
|
-
`field-of-interests-with-tags-card-skeleton__${
|
|
285
|
+
`field-of-interests-with-tags-card-skeleton__${l + 1}`
|
|
274
286
|
)) })
|
|
275
287
|
]
|
|
276
288
|
}
|
|
@@ -278,5 +290,5 @@ const I = m.div`
|
|
|
278
290
|
}
|
|
279
291
|
);
|
|
280
292
|
export {
|
|
281
|
-
|
|
293
|
+
X as default
|
|
282
294
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),O=require("react"),E=require("./SearchSection-
|
|
1
|
+
"use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),O=require("react"),E=require("./SearchSection-BcbHP6QF.cjs");function A(s,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in s)){const l=Object.getOwnPropertyDescriptor(i,n);l&&Object.defineProperty(s,n,l.get?l:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var R=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,w=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,k=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},m=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of D(e))!M.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=I(e,n))||i.enumerable});return s},N=(s,e,t)=>(t=s!=null?R(w(s)):{},m(!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),j=s=>m(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),g={};U(g,{default:()=>P});var S=j(g),p=N(O),a=E.utils,d=E.patterns;const y=typeof navigator<"u",H=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||H)&&!window.MSStream,F=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,V="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",T="Hls",C="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",B="dashjs",x="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",K="flvjs",q=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,G="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends p.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?p.default.createElement("source",{key:t,src:e}):p.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>p.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return F&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(V.replace("VERSION",t),T).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(G.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(C.replace("VERSION",n),B).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(x.replace("VERSION",l),K).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return q.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:c}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",b={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return p.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:b,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const X=_.getDefaultExportFromCjs(S),W=A({__proto__:null,default:X},[S]);exports.FilePlayer=W;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as b } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import { u as O, p as A } from "./SearchSection-
|
|
3
|
+
import { u as O, p as A } from "./SearchSection-DDQ_K98T.js";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),p=require("./utils-Dl9xPH4c.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=d.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
font-style: normal;
|
|
36
36
|
font-weight: 500;
|
|
37
37
|
line-height: 1.5rem;
|
|
38
|
-
${
|
|
38
|
+
${p.truncateTextInRows(2)}
|
|
39
39
|
transition: var(--transition, all 0.2s ease);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`,k=
|
|
66
|
+
`,k=d.styled.div`
|
|
67
67
|
width: 100%;
|
|
68
68
|
height: 11.625rem;
|
|
69
69
|
border-radius: 0.75rem;
|
|
70
|
-
background: ${
|
|
70
|
+
background: ${p.linearGradientAnimation("-90deg")};
|
|
71
71
|
|
|
72
72
|
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
73
73
|
width: 5rem;
|
|
74
74
|
height: 5rem;
|
|
75
75
|
border-radius: 999px;
|
|
76
76
|
}
|
|
77
|
-
`,$=
|
|
77
|
+
`,$=d.styled.div`
|
|
78
78
|
display: flex;
|
|
79
79
|
padding: 0 0.75rem 0 0.75rem;
|
|
80
80
|
align-items: center;
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
white-space: nowrap;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
`,N=
|
|
123
|
+
`,N=d.styled.div`
|
|
124
124
|
width: 7rem;
|
|
125
125
|
height: 3rem;
|
|
126
126
|
border-radius: 999px;
|
|
127
|
-
background: ${
|
|
128
|
-
`,C=
|
|
127
|
+
background: ${p.linearGradientAnimation("-90deg")};
|
|
128
|
+
`,C=o.forwardRef(({},a)=>r.jsx(N,{})),E=o.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},l)=>r.jsxs($,{ref:l,onClick:t,children:[p.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=o.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:l=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:l,children:[p.isDefined(i)?i:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),W=o.forwardRef(({},a)=>r.jsx(k,{})),G=d.styled.div`
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: column;
|
|
131
131
|
align-items: center;
|
|
@@ -201,4 +201,4 @@
|
|
|
201
201
|
gap: 1rem;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
`,R=
|
|
204
|
+
`,R=o.forwardRef(({title:a,subtitle:i,options:t=[],limitTags:l=7,limitTagsForMobile:c=2,limit:g=3,limitForMobile:f=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:u},b)=>{var x,w;return r.jsxs(G,{ref:b,limitTags:l,limitTagsForMobile:c,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[a&&r.jsx("div",{className:"wrapper__title",children:a}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(I,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>{_==null||_(e)}},`general-with-tags-card__${s+1}`)):(x=Array.from("123"))==null?void 0:x.map((e,s)=>r.jsx(W,{},`general-with-tags-card-skeleton__${s+1}`))}),(t==null?void 0:t.length)>0&&r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,s)=>r.jsx(E,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>h==null?void 0:h(e)},`general-with-tags-card-tag__${s+1}`))}),u===!0&&!((t==null?void 0:t.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(w=Array.from("123"))==null?void 0:w.map((e,s)=>r.jsx(C,{},`general-with-tags-card-tag-skeleton__${s+1}`))})]})});module.exports=R;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as d } from "./consts-BuFChS64.js";
|
|
5
5
|
import { p as y, o as x, k, l as $ } from "./utils-BdsZgOUE.js";
|
|
6
6
|
import N from "./Icon.js";
|
|
7
7
|
import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
-
const W =
|
|
8
|
+
const W = p.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -70,7 +70,7 @@ const W = s.div`
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`, j =
|
|
73
|
+
`, j = p.div`
|
|
74
74
|
width: 100%;
|
|
75
75
|
height: 11.625rem;
|
|
76
76
|
border-radius: 0.75rem;
|
|
@@ -81,7 +81,7 @@ const W = s.div`
|
|
|
81
81
|
height: 5rem;
|
|
82
82
|
border-radius: 999px;
|
|
83
83
|
}
|
|
84
|
-
`, G =
|
|
84
|
+
`, G = p.div`
|
|
85
85
|
display: flex;
|
|
86
86
|
padding: 0 0.75rem 0 0.75rem;
|
|
87
87
|
align-items: center;
|
|
@@ -127,28 +127,28 @@ const W = s.div`
|
|
|
127
127
|
white-space: nowrap;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
`, T =
|
|
130
|
+
`, T = p.div`
|
|
131
131
|
width: 7rem;
|
|
132
132
|
height: 3rem;
|
|
133
133
|
border-radius: 999px;
|
|
134
134
|
background: ${x("-90deg")};
|
|
135
|
-
`, z =
|
|
135
|
+
`, z = s(({}, r) => /* @__PURE__ */ a(T, {})), I = s(
|
|
136
136
|
({ title: r, icon: i, onSelectCard: t = () => {
|
|
137
|
-
} },
|
|
137
|
+
} }, o) => /* @__PURE__ */ m(G, { ref: o, onClick: t, children: [
|
|
138
138
|
k(i) && /* @__PURE__ */ a(N, { icon: i, className: "wrapper__icon" }),
|
|
139
139
|
/* @__PURE__ */ a("div", { className: "wrapper__text", children: r })
|
|
140
140
|
] })
|
|
141
|
-
), E =
|
|
141
|
+
), E = s(
|
|
142
142
|
// eslint-disable-next-line react/prop-types
|
|
143
|
-
({ imageUrl: r, imageComponent: i, title: t, onSelectCard:
|
|
143
|
+
({ imageUrl: r, imageComponent: i, title: t, onSelectCard: o = () => {
|
|
144
144
|
} }, c) => {
|
|
145
145
|
const { theme: g } = C();
|
|
146
|
-
return /* @__PURE__ */ m(W, { ref: c, theme: g, onClick:
|
|
146
|
+
return /* @__PURE__ */ m(W, { ref: c, theme: g, onClick: o, children: [
|
|
147
147
|
$(i) ? i : /* @__PURE__ */ a("img", { src: r, className: "wrapper__image" }),
|
|
148
148
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: /* @__PURE__ */ a("div", { className: "wrapper__title", children: t }) })
|
|
149
149
|
] });
|
|
150
150
|
}
|
|
151
|
-
), M =
|
|
151
|
+
), M = s(({}, r) => /* @__PURE__ */ a(j, {})), A = p.div`
|
|
152
152
|
display: flex;
|
|
153
153
|
flex-direction: column;
|
|
154
154
|
align-items: center;
|
|
@@ -224,12 +224,12 @@ const W = s.div`
|
|
|
224
224
|
gap: 1rem;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
`, O =
|
|
227
|
+
`, O = s(
|
|
228
228
|
({
|
|
229
229
|
title: r,
|
|
230
230
|
subtitle: i,
|
|
231
231
|
options: t = [],
|
|
232
|
-
limitTags:
|
|
232
|
+
limitTags: o = 7,
|
|
233
233
|
limitTagsForMobile: c = 2,
|
|
234
234
|
limit: g = 3,
|
|
235
235
|
limitForMobile: u = 3,
|
|
@@ -245,7 +245,7 @@ const W = s.div`
|
|
|
245
245
|
A,
|
|
246
246
|
{
|
|
247
247
|
ref: v,
|
|
248
|
-
limitTags:
|
|
248
|
+
limitTags: o,
|
|
249
249
|
limitTagsForMobile: c,
|
|
250
250
|
limitCards: g,
|
|
251
251
|
limitCardsForMobile: u,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),f=require("react"),c=require("./SearchSection-
|
|
1
|
+
"use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),f=require("react"),c=require("./SearchSection-BcbHP6QF.cjs");function m(r,e){for(var t=0;t<e.length;t++){const o=e[t];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in r)){const l=Object.getOwnPropertyDescriptor(o,a);l&&Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,n=Object.defineProperty,g=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,v=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,w=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of b(e))!O.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=g(e,a))||o.enumerable});return r},L=(r,e,t)=>(t=r!=null?P(v(r)):{},h(!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),K=r=>h(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),d={};w(d,{default:()=>i});var y=K(d),u=L(f),p=c.utils,S=c.patterns;const D="https://cdn.embed.ly/player-0.1.0.min.js",M="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(D,M).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const T=_.getDefaultExportFromCjs(y),E=m({__proto__:null,default:T},[y]);exports.Kaltura=E;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as f } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { u as _, p as m } from "./SearchSection-
|
|
3
|
+
import { u as _, p as m } from "./SearchSection-DDQ_K98T.js";
|
|
4
4
|
function P(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const o = e[t];
|