@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.
Files changed (108) hide show
  1. package/dist/AdBannerSection.cjs +3 -3
  2. package/dist/AdBannerSection.js +16 -16
  3. package/dist/BannerSectionBasic.cjs +4 -4
  4. package/dist/BannerSectionBasic.js +33 -32
  5. package/dist/BannerSectionGrid.cjs +3 -3
  6. package/dist/BannerSectionGrid.js +33 -33
  7. package/dist/BlogCardsSponsoredSection.cjs +3 -3
  8. package/dist/BlogCardsSponsoredSection.js +15 -15
  9. package/dist/BlogCategoryCardsSection.cjs +1 -1
  10. package/dist/BlogCategoryCardsSection.js +12 -12
  11. package/dist/BlogExploreSection.cjs +4 -4
  12. package/dist/BlogExploreSection.js +30 -30
  13. package/dist/BlogListSection.cjs +2 -2
  14. package/dist/BlogListSection.js +28 -28
  15. package/dist/BlogProductCardsSection.cjs +1 -1
  16. package/dist/BlogProductCardsSection.js +20 -19
  17. package/dist/BlogShopCardsSection.cjs +1 -1
  18. package/dist/BlogShopCardsSection.js +22 -22
  19. package/dist/BrandHitsSection.cjs +7 -7
  20. package/dist/BrandHitsSection.js +24 -24
  21. package/dist/CustomLoanMapSection.cjs +1 -1
  22. package/dist/CustomLoanMapSection.js +1 -1
  23. package/dist/{DailyMotion-CPQ6kDJJ.cjs → DailyMotion-BaFUcQKQ.cjs} +1 -1
  24. package/dist/{DailyMotion-BrbMSyj1.js → DailyMotion-ByXblnua.js} +1 -1
  25. package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
  26. package/dist/DetailedProductsInfinitiveSection.js +41 -41
  27. package/dist/DetailedProductsSection.cjs +1 -1
  28. package/dist/DetailedProductsSection.js +1 -1
  29. package/dist/{Facebook-Dw3my9_4.js → Facebook-BCqiOWZO.js} +1 -1
  30. package/dist/{Facebook-DKhRiODC.cjs → Facebook-D9wwecSW.cjs} +1 -1
  31. package/dist/FaqSection.cjs +2 -2
  32. package/dist/FaqSection.js +2 -2
  33. package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
  34. package/dist/FieldOfInterestsMasonrySection.js +65 -48
  35. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +3 -3
  36. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +27 -25
  37. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +10 -9
  38. package/dist/FieldOfInterestsWithTagsCardsSection.js +77 -65
  39. package/dist/{FilePlayer-DlCyGLHB.cjs → FilePlayer-DB6jnpeC.cjs} +1 -1
  40. package/dist/{FilePlayer-Ckx8dmB0.js → FilePlayer-ktaNhf3p.js} +1 -1
  41. package/dist/GeneralWithTagsCardsSection.cjs +9 -9
  42. package/dist/GeneralWithTagsCardsSection.js +15 -15
  43. package/dist/{Kaltura-31Xm8S1J.cjs → Kaltura-CCdXLzOa.cjs} +1 -1
  44. package/dist/{Kaltura-qHdDvnjZ.js → Kaltura-CvlN0HDg.js} +1 -1
  45. package/dist/LoanCalculatorSection.cjs +2 -2
  46. package/dist/LoanCalculatorSection.js +89 -88
  47. package/dist/LocationFinderSection.cjs +1 -1
  48. package/dist/LocationFinderSection.js +1 -1
  49. package/dist/{Mixcloud-DvH0vfg5.js → Mixcloud-Bb8MTclI.js} +1 -1
  50. package/dist/{Mixcloud-CP9Zq_TX.cjs → Mixcloud-nG_VyBNt.cjs} +1 -1
  51. package/dist/{Mux-BlblTeid.cjs → Mux-BgB2a8kM.cjs} +1 -1
  52. package/dist/{Mux--JeF6dPG.js → Mux-DfYpGTiP.js} +1 -1
  53. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  54. package/dist/OverlayGeneralCardsSection.js +11 -11
  55. package/dist/ProductsWithBannerSection.cjs +1 -1
  56. package/dist/ProductsWithBannerSection.js +1 -1
  57. package/dist/QuattroCardsSection.cjs +5 -5
  58. package/dist/QuattroCardsSection.js +7 -7
  59. package/dist/QuizSection.cjs +7 -7
  60. package/dist/QuizSection.js +51 -51
  61. package/dist/SalesCampaignsSection.cjs +1 -1
  62. package/dist/SalesCampaignsSection.js +2 -1
  63. package/dist/SearchSection-BcbHP6QF.cjs +161 -0
  64. package/dist/{SearchSection-CsfURtvf.js → SearchSection-DDQ_K98T.js} +52 -52
  65. package/dist/SearchSection.cjs +1 -1
  66. package/dist/SearchSection.js +1 -1
  67. package/dist/SimpleCategoriesSection.cjs +1 -1
  68. package/dist/SimpleCategoriesSection.js +1 -1
  69. package/dist/SimpleProductsSection.cjs +1 -1
  70. package/dist/SimpleProductsSection.js +2 -2
  71. package/dist/{SoundCloud-1hd9TBSO.cjs → SoundCloud-C86xwUG6.cjs} +1 -1
  72. package/dist/{SoundCloud-CKaavZky.js → SoundCloud-DG91z39R.js} +1 -1
  73. package/dist/StatsSection.cjs +5 -5
  74. package/dist/StatsSection.js +22 -22
  75. package/dist/{Streamable-DLxq1ZNX.cjs → Streamable-4uAnb3WN.cjs} +1 -1
  76. package/dist/{Streamable-CZEPghiG.js → Streamable-BAIWLgyD.js} +1 -1
  77. package/dist/ToggleSection.cjs +3 -3
  78. package/dist/ToggleSection.js +10 -10
  79. package/dist/{Twitch-Bb8e342z.cjs → Twitch-CVAj24ti.cjs} +1 -1
  80. package/dist/{Twitch-BJeGquex.js → Twitch-DfXeW5Xs.js} +1 -1
  81. package/dist/UrgentSaleProductsSection.cjs +1 -1
  82. package/dist/UrgentSaleProductsSection.js +1 -1
  83. package/dist/{Vidyard-WNQdOeK1.cjs → Vidyard-DaCcaaH4.cjs} +1 -1
  84. package/dist/{Vidyard-CuGoX_VE.js → Vidyard-De3pges0.js} +1 -1
  85. package/dist/{Vimeo-Da2vBv-V.cjs → Vimeo-8wXdCXGs.cjs} +1 -1
  86. package/dist/{Vimeo-B9eKoxWn.js → Vimeo-N6I2qi_h.js} +1 -1
  87. package/dist/{Wistia-ZPcGhh1L.cjs → Wistia-BrUzHQoq.cjs} +1 -1
  88. package/dist/{Wistia-BB50IUif.js → Wistia-dlV6n6tO.js} +1 -1
  89. package/dist/{YouTube-4RMnpdLL.cjs → YouTube-Cfsj4ZaP.cjs} +1 -1
  90. package/dist/{YouTube-CG6JL2_w.js → YouTube-DNJxWqRm.js} +1 -1
  91. package/dist/{index-DzYKmmn2.js → index-BGY3PSA-.js} +18 -18
  92. package/dist/{index-Djw_s9eq.js → index-C0SKNFzP.js} +15 -15
  93. package/dist/{index-cd9auaNr.cjs → index-CLoINIGC.cjs} +3 -3
  94. package/dist/{index-GxCvHDwv.cjs → index-ELUMKl0N.cjs} +2 -2
  95. package/dist/index.cjs +1 -1
  96. package/dist/index.js +1 -1
  97. package/dist/{suspense-categories-card-simple-DuKEj9IU.js → suspense-categories-card-simple-BGj475Ca.js} +11 -10
  98. package/dist/{suspense-categories-card-simple-DaA0JGJJ.cjs → suspense-categories-card-simple-CjGtzfzp.cjs} +1 -1
  99. package/dist/suspense-product-card-detailed-BJ-HBkBc.js +577 -0
  100. package/dist/suspense-product-card-detailed-wPRUytSf.cjs +263 -0
  101. package/dist/{suspense-product-card-simple-D2m3NcrV.js → suspense-product-card-simple-CLJjab5B.js} +1 -1
  102. package/dist/{suspense-product-card-simple-BWxWMag0.cjs → suspense-product-card-simple-CrqjSxHI.cjs} +1 -1
  103. package/dist/{tag-CtleOqEC.js → tag-cRMfP-SZ.js} +9 -9
  104. package/dist/{tag-Bov1gw34.cjs → tag-yputMSpE.cjs} +4 -4
  105. package/package.json +1 -1
  106. package/dist/SearchSection-BGK1Fxaj.cjs +0 -161
  107. package/dist/suspense-product-card-detailed-C-ZCjG5p.js +0 -538
  108. package/dist/suspense-product-card-detailed-FuxsUusc.cjs +0 -260
@@ -1,11 +1,11 @@
1
- import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
- import { forwardRef as p } from "react";
3
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { p as x, o as u, k, l as N } from "./utils-BdsZgOUE.js";
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 $ from "./Icon.js";
7
- import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const I = m.div`
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: auto;
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
- `, W = m.div`
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
- `, j = m.div`
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
- `, F = m.div`
119
+ `, T = c.div`
119
120
  width: 7rem;
120
121
  height: 3rem;
121
122
  border-radius: 999px;
122
123
  background: ${u("-90deg")};
123
- `, T = p(({}, t) => /* @__PURE__ */ r(F, {})), z = p(
124
- ({ name: t, isActive: a, icon: i, onSelectCard: l = () => {
125
- } }, d) => /* @__PURE__ */ s(j, { className: a ? "active" : "", onClick: l, children: [
126
- k(i) && /* @__PURE__ */ r($, { icon: i, className: "wrapper__icon" }),
127
- /* @__PURE__ */ r("div", { className: "wrapper__text", children: t })
128
- ] })
129
- ), O = p(
130
- ({ image: t, imageComponent: a, name: i, description: l, onSelectCard: d = () => {
131
- } }, _) => {
132
- const { theme: c } = C();
133
- return /* @__PURE__ */ s(I, { theme: c, onClick: d, children: [
134
- N(a) ? a : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
135
- /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
136
- i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
137
- l && /* @__PURE__ */ r("div", { className: "wrapper__description", children: l })
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
- ), A = p(({}, t) => /* @__PURE__ */ r(W, {})), E = m.div`
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: ${(t) => `repeat(${t == null ? void 0 : t.limitCards}, minmax(0, 1fr))`};
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
- `, P = p(
226
+ `, X = d(
217
227
  ({
218
- title: t,
228
+ title: r,
219
229
  subtitle: a,
220
- tags: i = [],
221
- limitTags: l = 7,
222
- limitTagsForMobile: d = 7,
223
- limit: _ = 3,
224
- limitForMobile: c = 2,
225
- items: n = [],
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
- onSelectTag: f = () => {
237
+ activeColor: b,
238
+ onSelectTag: h = () => {
228
239
  },
229
- onSelectCard: h = () => {
240
+ onSelectCard: _ = () => {
230
241
  }
231
- }, b) => {
242
+ }, k) => {
232
243
  var w, g;
233
- return /* @__PURE__ */ s(
234
- E,
244
+ return /* @__PURE__ */ m(
245
+ M,
235
246
  {
236
- ref: b,
237
- limitTags: l,
238
- limitTagsForMobile: d,
239
- limitCards: _,
240
- limitCardsForMobile: c,
247
+ ref: k,
248
+ limitTags: n,
249
+ limitTagsForMobile: s,
250
+ limitCards: p,
251
+ limitCardsForMobile: f,
241
252
  children: [
242
- /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
243
- t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
244
- a && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: a })
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__ */ r("div", { className: "wrapper__tags", children: i && (i == null ? void 0 : i.length) > 0 ? i == null ? void 0 : i.map((e, o) => /* @__PURE__ */ r(
247
- z,
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
- onSelectCard: () => f == null ? void 0 : f(e)
263
+ activeColor: b,
264
+ onSelectCard: () => h == null ? void 0 : h(e)
253
265
  },
254
- `field-of-interests-with-tags-card-tag__${o + 1}`
255
- )) : (w = Array.from("123")) == null ? void 0 : w.map((e, o) => /* @__PURE__ */ r(
256
- T,
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__${o + 1}`
270
+ `field-of-interests-with-tags-card-tag-skeleton__${l + 1}`
259
271
  )) }),
260
- /* @__PURE__ */ r("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, o) => /* @__PURE__ */ r(
261
- O,
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: () => h == null ? void 0 : h(e)
279
+ onSelectCard: () => _ == null ? void 0 : _(e)
268
280
  },
269
- `field-of-interests-with-tags-card__${o + 1}`
270
- )) : (g = Array.from("123")) == null ? void 0 : g.map((e, o) => /* @__PURE__ */ r(
271
- A,
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__${o + 1}`
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
- P as default
293
+ X as default
282
294
  };
@@ -1 +1 @@
1
- "use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),O=require("react"),E=require("./SearchSection-BGK1Fxaj.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
+ "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-CsfURtvf.js";
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"),l=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=require("./utils-Dl9xPH4c.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=o.styled.div`
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
- ${d.truncateTextInRows(2)}
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=o.styled.div`
66
+ `,k=d.styled.div`
67
67
  width: 100%;
68
68
  height: 11.625rem;
69
69
  border-radius: 0.75rem;
70
- background: ${d.linearGradientAnimation("-90deg")};
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
- `,$=o.styled.div`
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=o.styled.div`
123
+ `,N=d.styled.div`
124
124
  width: 7rem;
125
125
  height: 3rem;
126
126
  border-radius: 999px;
127
- background: ${d.linearGradientAnimation("-90deg")};
128
- `,C=l.forwardRef(({},a)=>r.jsx(N,{})),E=l.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},p)=>r.jsxs($,{onClick:t,children:[d.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=l.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:p=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:p,children:[d.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=l.forwardRef(({},a)=>r.jsx(k,{})),G=o.styled.div`
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=l.forwardRef(({title:a,subtitle:i,options:t=[],limitTags:p=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:p,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;
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 o } from "react";
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 = s.div`
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 = s.div`
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 = s.div`
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 = s.div`
130
+ `, T = p.div`
131
131
  width: 7rem;
132
132
  height: 3rem;
133
133
  border-radius: 999px;
134
134
  background: ${x("-90deg")};
135
- `, z = o(({}, r) => /* @__PURE__ */ a(T, {})), I = o(
135
+ `, z = s(({}, r) => /* @__PURE__ */ a(T, {})), I = s(
136
136
  ({ title: r, icon: i, onSelectCard: t = () => {
137
- } }, p) => /* @__PURE__ */ m(G, { onClick: t, children: [
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 = o(
141
+ ), E = s(
142
142
  // eslint-disable-next-line react/prop-types
143
- ({ imageUrl: r, imageComponent: i, title: t, onSelectCard: p = () => {
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: p, children: [
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 = o(({}, r) => /* @__PURE__ */ a(j, {})), A = s.div`
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 = o(
227
+ `, O = s(
228
228
  ({
229
229
  title: r,
230
230
  subtitle: i,
231
231
  options: t = [],
232
- limitTags: p = 7,
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: p,
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-BGK1Fxaj.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
+ "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-CsfURtvf.js";
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];