@lanaco/lnc-react-ui 4.0.151 → 4.0.152

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 +6 -6
  38. package/dist/FieldOfInterestsWithTagsCardsSection.js +40 -32
  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
1
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
- import { forwardRef as c, useLayoutEffect as L } from "react";
2
+ import { forwardRef as m, useLayoutEffect as L } from "react";
3
3
  import { p as z, o as E, l as O, k as S } from "./utils-BdsZgOUE.js";
4
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { M as g } from "./consts-BuFChS64.js";
6
6
  import A from "./Icon.js";
7
7
  import { u as W } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const T = m.div`
8
+ const T = f.div`
9
9
  display: flex;
10
10
  width: 100%;
11
11
  height: fit-content;
@@ -70,12 +70,12 @@ const T = m.div`
70
70
  }
71
71
  }
72
72
  }
73
- `, j = m.div`
73
+ `, j = f.div`
74
74
  width: 100%;
75
75
  height: 11.625rem;
76
76
  border-radius: 0.75rem;
77
77
  background: ${E("-90deg")};
78
- `, q = m.div`
78
+ `, q = f.div`
79
79
  display: flex;
80
80
  flex-direction: column;
81
81
  align-items: center;
@@ -159,7 +159,7 @@ const T = m.div`
159
159
  white-space: nowrap;
160
160
  }
161
161
  }
162
- `, R = m.div`
162
+ `, R = f.div`
163
163
  width: 7.5rem;
164
164
  width: 7.5rem;
165
165
  border-radius: 999px;
@@ -169,38 +169,55 @@ const T = m.div`
169
169
  width: 7.5rem;
170
170
  height: 2.5rem;
171
171
  }
172
- `, B = c(({}, i) => /* @__PURE__ */ r(R, {})), D = c(
172
+ `, B = m(({}, i) => /* @__PURE__ */ r(R, {})), D = m(
173
173
  ({ text: i, isActive: o = !1, icon: t, onSelectCard: a = () => {
174
- } }, f) => /* @__PURE__ */ l(q, { className: o ? "active" : "", onClick: a, children: [
175
- /* @__PURE__ */ r(A, { icon: t, className: "wrapper__icon" }),
176
- /* @__PURE__ */ r("div", { className: "wrapper__text", children: i })
177
- ] })
178
- ), G = c(
174
+ } }, s) => /* @__PURE__ */ l(
175
+ q,
176
+ {
177
+ ref: s,
178
+ className: o ? "active" : "",
179
+ onClick: a,
180
+ children: [
181
+ /* @__PURE__ */ r(A, { icon: t, className: "wrapper__icon" }),
182
+ /* @__PURE__ */ r("div", { className: "wrapper__text", children: i })
183
+ ]
184
+ }
185
+ )
186
+ ), G = m(
179
187
  ({
180
188
  image: i,
181
189
  imageComponent: o,
182
190
  title: t,
183
191
  description: a,
184
- className: f,
192
+ className: s,
185
193
  onSelectCard: u = () => {
186
194
  }
187
- }, k) => {
188
- const { theme: x } = W();
189
- return /* @__PURE__ */ l(T, { theme: x, className: f, onClick: u, children: [
190
- O(o) ? o : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image" }),
191
- /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
192
- t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
193
- a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
194
- ] })
195
- ] });
195
+ }, x) => {
196
+ const { theme: v } = W();
197
+ return /* @__PURE__ */ l(
198
+ T,
199
+ {
200
+ ref: x,
201
+ theme: v,
202
+ className: s,
203
+ onClick: u,
204
+ children: [
205
+ O(o) ? o : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image" }),
206
+ /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
207
+ t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
208
+ a && /* @__PURE__ */ r("div", { className: "wrapper__description", children: a })
209
+ ] })
210
+ ]
211
+ }
212
+ );
196
213
  }
197
- ), H = c(({}, i) => /* @__PURE__ */ l(j, { children: [
214
+ ), H = m(({}, i) => /* @__PURE__ */ l(j, { children: [
198
215
  /* @__PURE__ */ r("div", { className: "wrapper__image" }),
199
216
  /* @__PURE__ */ l("div", { className: "wrapper__content", children: [
200
217
  /* @__PURE__ */ r("div", { className: "wrapper__title" }),
201
218
  /* @__PURE__ */ r("div", { className: "wrapper__description" })
202
219
  ] })
203
- ] })), P = m.div`
220
+ ] })), P = f.div`
204
221
  display: flex;
205
222
  flex-direction: column;
206
223
  align-items: center;
@@ -281,56 +298,56 @@ const T = m.div`
281
298
  grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
282
299
  }
283
300
  }
284
- `, Y = c(
301
+ `, Y = m(
285
302
  ({
286
303
  title: i,
287
304
  subtitle: o,
288
305
  tags: t = [],
289
306
  items: a = [],
290
- limitTags: f = 5,
307
+ limitTags: s = 5,
291
308
  limitTagsForMobile: u = 5,
292
- limit: k = 3,
293
- limitForMobile: x = 2,
309
+ limit: x = 3,
310
+ limitForMobile: v = 2,
294
311
  selectedTag: I,
295
- onSelectTag: v = () => {
312
+ onSelectTag: y = () => {
296
313
  },
297
- onSelectCard: y = () => {
314
+ onSelectCard: b = () => {
298
315
  },
299
- className: s
316
+ className: p
300
317
  }, C) => {
301
318
  var $, N;
302
319
  return L(() => {
303
- if (!S(s))
320
+ if (!S(p))
304
321
  return;
305
322
  const e = () => {
306
- const p = document.querySelector(`.${s} .wrapper__cards`), d = p.querySelectorAll(".wrapper__card");
307
- d.forEach((w) => {
323
+ const d = document.querySelector(`.${p} .wrapper__cards`), c = d.querySelectorAll(".wrapper__card");
324
+ c.forEach((w) => {
308
325
  const M = w.getBoundingClientRect().height, F = Math.ceil((M + 10) / 20);
309
326
  w.style.gridRowEnd = `span ${F}`;
310
327
  });
311
- const b = d == null ? void 0 : d[d.length - 1];
312
- if (b) {
313
- const w = b.offsetTop + b.offsetHeight;
314
- p.style.height = `${w}px`;
328
+ const k = c == null ? void 0 : c[c.length - 1];
329
+ if (k) {
330
+ const w = k.offsetTop + k.offsetHeight;
331
+ d.style.height = `${w}px`;
315
332
  }
316
- }, _ = document.querySelector(`.${s} .wrapper__cards`).querySelectorAll(".wrapper__image");
333
+ }, _ = document.querySelector(`.${p} .wrapper__cards`).querySelectorAll(".wrapper__image");
317
334
  let h = 0;
318
- return _.length === 0 ? e() : (_.forEach((p) => {
319
- p.complete ? h++ : p.addEventListener("load", () => {
335
+ return _.length === 0 ? e() : (_.forEach((d) => {
336
+ d.complete ? h++ : d.addEventListener("load", () => {
320
337
  h++, h === _.length && e();
321
338
  });
322
339
  }), h === _.length && e()), window.addEventListener("resize", e), () => {
323
340
  window.removeEventListener("resize", e);
324
341
  };
325
- }, [s, a]), /* @__PURE__ */ l(
342
+ }, [p, a]), /* @__PURE__ */ l(
326
343
  P,
327
344
  {
328
345
  ref: C,
329
- limitTags: f,
346
+ limitTags: s,
330
347
  limitTagsForMobile: u,
331
- limitCards: k,
332
- limitCardsForMobile: x,
333
- className: s,
348
+ limitCards: x,
349
+ limitCardsForMobile: v,
350
+ className: p,
334
351
  numberOfTags: t == null ? void 0 : t.length,
335
352
  children: [
336
353
  /* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
@@ -343,7 +360,7 @@ const T = m.div`
343
360
  icon: e == null ? void 0 : e.icon,
344
361
  text: e == null ? void 0 : e.title,
345
362
  isActive: (e == null ? void 0 : e.code) === I,
346
- onSelectCard: () => v == null ? void 0 : v(e)
363
+ onSelectCard: () => y == null ? void 0 : y(e)
347
364
  },
348
365
  `field-of-interests-masonry-tag__${n + 1}`
349
366
  )) : ($ = Array.from("12345")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ r(
@@ -358,7 +375,7 @@ const T = m.div`
358
375
  imageComponent: e == null ? void 0 : e.imageComponent,
359
376
  title: e == null ? void 0 : e.title,
360
377
  description: e == null ? void 0 : e.description,
361
- onSelectCard: () => y == null ? void 0 : y(e),
378
+ onSelectCard: () => b == null ? void 0 : b(e),
362
379
  className: "wrapper__card"
363
380
  },
364
381
  `field-of-interests-with-tags-card__${n + 1}`
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-Dl9xPH4c.cjs"),$=require("./index-cd9auaNr.cjs"),c=h.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),f=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),y=require("./utils-Dl9xPH4c.cjs"),$=require("./index-CLoINIGC.cjs"),c=h.styled.div`
2
2
  width: 100%;
3
3
  height: 11.625rem;
4
4
  border-radius: 0.75rem;
@@ -39,7 +39,7 @@
39
39
  width: 4.5rem;
40
40
  height: 4.5rem;
41
41
  }
42
- `,F=g.forwardRef(({},i)=>t.jsx(C,{})),I=g.forwardRef(({isActive:i,image:o,imageComponent:r,onSelectCard:l=()=>{}},f)=>t.jsx(v,{className:i?"active":"",onClick:l,children:y.isDefined(r)?r:t.jsx("img",{src:o,className:"wrapper__image"})})),A=g.forwardRef(({uuid:i,title:o,price:r,currency:l,isNegotiable:f,isFree:x,image:u,sellerUuid:s,onSelectCard:m=()=>{},imageComponent:p,negotiableText:d="Negotiable",freeText:a="Free"},_)=>t.jsx($.SimpleProductCard,{uuid:i,title:o,price:r,currency:l,isNegotiable:f,isFree:x,image:u,imageComponent:p,sellerUuid:s,onSelectCard:m,negotiableText:d,freeText:a})),N=g.forwardRef(({},i)=>t.jsx(c,{})),k=h.styled.div`
42
+ `,F=f.forwardRef(({},i)=>t.jsx(C,{})),I=f.forwardRef(({isActive:i,image:o,imageComponent:r,onSelectCard:l=()=>{}},m)=>t.jsx(v,{ref:m,className:i?"active":"",onClick:l,children:y.isDefined(r)?r:t.jsx("img",{src:o,className:"wrapper__image"})})),A=f.forwardRef(({uuid:i,title:o,price:r,currency:l,isNegotiable:m,isFree:x,image:u,sellerUuid:s,onSelectCard:p=()=>{},imageComponent:a,negotiableText:d="Negotiable",freeText:g="Free"},_)=>t.jsx($.SimpleProductCard,{ref:_,uuid:i,title:o,price:r,currency:l,isNegotiable:m,isFree:x,image:u,imageComponent:a,sellerUuid:s,onSelectCard:p,negotiableText:d,freeText:g})),N=f.forwardRef(({},i)=>t.jsx(c,{})),k=h.styled.div`
43
43
  display: flex;
44
44
  flex-direction: column;
45
45
  align-items: center;
@@ -99,4 +99,4 @@
99
99
  gap: 1rem;
100
100
  }
101
101
  }
102
- `,W=g.forwardRef(({title:i,subtitle:o,avatars:r=[],limitAvatars:l=4,limit:f=6,limitAvatarsForMobile:x=4,limitForMobile:u=2,items:s=[],onSelectAvatar:m=()=>{},onSelectCard:p=()=>{}},d)=>{var j,b;const a=e=>{m==null||m(e)},_=e=>{p==null||p(e)};return t.jsxs(k,{ref:d,limitAvatars:l,limitAvatarsForMobile:x,limitCards:f,limitCardsForMobile:u,children:[t.jsxs("div",{className:"wrapper__heading",children:[i&&t.jsx("div",{className:"wrapper__title",children:i}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__avatars",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((e,n)=>t.jsx(I,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>a==null?void 0:a(e)},`field-of-interests-with-avatars-card-avatar__${n+1}`)):(j=Array.from("1234"))==null?void 0:j.map((e,n)=>t.jsx(F,{},`field-of-interests-with-avatars-card-avatar-skeleton__${n+1}`))}),t.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,n)=>t.jsx(A,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-with-avatars-card__${n+1}`)):(b=Array.from("123456"))==null?void 0:b.map((e,n)=>t.jsx(N,{},`field-of-interests-with-avatars-card-skeleton__${n+1}`))})]})});module.exports=W;
102
+ `,W=f.forwardRef(({title:i,subtitle:o,avatars:r=[],limitAvatars:l=4,limit:m=6,limitAvatarsForMobile:x=4,limitForMobile:u=2,items:s=[],onSelectAvatar:p=()=>{},onSelectCard:a=()=>{}},d)=>{var j,b;const g=e=>{p==null||p(e)},_=e=>{a==null||a(e)};return t.jsxs(k,{ref:d,limitAvatars:l,limitAvatarsForMobile:x,limitCards:m,limitCardsForMobile:u,children:[t.jsxs("div",{className:"wrapper__heading",children:[i&&t.jsx("div",{className:"wrapper__title",children:i}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__avatars",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((e,n)=>t.jsx(I,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g==null?void 0:g(e)},`field-of-interests-with-avatars-card-avatar__${n+1}`)):(j=Array.from("1234"))==null?void 0:j.map((e,n)=>t.jsx(F,{},`field-of-interests-with-avatars-card-avatar-skeleton__${n+1}`))}),t.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,n)=>t.jsx(A,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-with-avatars-card__${n+1}`)):(b=Array.from("123456"))==null?void 0:b.map((e,n)=>t.jsx(N,{},`field-of-interests-with-avatars-card-skeleton__${n+1}`))})]})});module.exports=W;
@@ -1,9 +1,9 @@
1
1
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
- import { forwardRef as g } from "react";
2
+ import { forwardRef as h } from "react";
3
3
  import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as x } from "./consts-BuFChS64.js";
5
5
  import { o as v, l as C } from "./utils-BdsZgOUE.js";
6
- import { S as F } from "./index-DzYKmmn2.js";
6
+ import { S as F } from "./index-BGY3PSA-.js";
7
7
  const N = _.div`
8
8
  width: 100%;
9
9
  height: 11.625rem;
@@ -45,49 +45,51 @@ const N = _.div`
45
45
  width: 4.5rem;
46
46
  height: 4.5rem;
47
47
  }
48
- `, W = g(({}, i) => /* @__PURE__ */ t(A, {})), I = g(
48
+ `, W = h(({}, i) => /* @__PURE__ */ t(A, {})), I = h(
49
49
  ({ isActive: i, image: o, imageComponent: r, onSelectCard: m = () => {
50
- } }, f) => /* @__PURE__ */ t(
50
+ } }, l) => /* @__PURE__ */ t(
51
51
  k,
52
52
  {
53
+ ref: l,
53
54
  className: i ? "active" : "",
54
55
  onClick: m,
55
56
  children: C(r) ? r : /* @__PURE__ */ t("img", { src: o, className: "wrapper__image" })
56
57
  }
57
58
  )
58
- ), c = g(
59
+ ), c = h(
59
60
  ({
60
61
  uuid: i,
61
62
  title: o,
62
63
  price: r,
63
64
  currency: m,
64
- isNegotiable: f,
65
+ isNegotiable: l,
65
66
  isFree: u,
66
67
  image: d,
67
68
  sellerUuid: s,
68
- onSelectCard: l = () => {
69
+ onSelectCard: p = () => {
69
70
  },
70
- imageComponent: p,
71
+ imageComponent: a,
71
72
  negotiableText: w = "Negotiable",
72
- freeText: a = "Free"
73
- }, h) => /* @__PURE__ */ t(
73
+ freeText: g = "Free"
74
+ }, f) => /* @__PURE__ */ t(
74
75
  F,
75
76
  {
77
+ ref: f,
76
78
  uuid: i,
77
79
  title: o,
78
80
  price: r,
79
81
  currency: m,
80
- isNegotiable: f,
82
+ isNegotiable: l,
81
83
  isFree: u,
82
84
  image: d,
83
- imageComponent: p,
85
+ imageComponent: a,
84
86
  sellerUuid: s,
85
- onSelectCard: l,
87
+ onSelectCard: p,
86
88
  negotiableText: w,
87
- freeText: a
89
+ freeText: g
88
90
  }
89
91
  )
90
- ), O = g(({}, i) => /* @__PURE__ */ t(N, {})), j = _.div`
92
+ ), O = h(({}, i) => /* @__PURE__ */ t(N, {})), j = _.div`
91
93
  display: flex;
92
94
  flex-direction: column;
93
95
  align-items: center;
@@ -147,26 +149,26 @@ const N = _.div`
147
149
  gap: 1rem;
148
150
  }
149
151
  }
150
- `, B = g(
152
+ `, B = h(
151
153
  ({
152
154
  title: i,
153
155
  subtitle: o,
154
156
  avatars: r = [],
155
157
  limitAvatars: m = 4,
156
- limit: f = 6,
158
+ limit: l = 6,
157
159
  limitAvatarsForMobile: u = 4,
158
160
  limitForMobile: d = 2,
159
161
  items: s = [],
160
- onSelectAvatar: l = () => {
162
+ onSelectAvatar: p = () => {
161
163
  },
162
- onSelectCard: p = () => {
164
+ onSelectCard: a = () => {
163
165
  }
164
166
  }, w) => {
165
167
  var b, $;
166
- const a = (e) => {
167
- l == null || l(e);
168
- }, h = (e) => {
168
+ const g = (e) => {
169
169
  p == null || p(e);
170
+ }, f = (e) => {
171
+ a == null || a(e);
170
172
  };
171
173
  return /* @__PURE__ */ y(
172
174
  j,
@@ -174,7 +176,7 @@ const N = _.div`
174
176
  ref: w,
175
177
  limitAvatars: m,
176
178
  limitAvatarsForMobile: u,
177
- limitCards: f,
179
+ limitCards: l,
178
180
  limitCardsForMobile: d,
179
181
  children: [
180
182
  /* @__PURE__ */ y("div", { className: "wrapper__heading", children: [
@@ -186,7 +188,7 @@ const N = _.div`
186
188
  {
187
189
  image: e == null ? void 0 : e.image,
188
190
  imageComponent: e == null ? void 0 : e.imageComponent,
189
- onSelectCard: () => a == null ? void 0 : a(e)
191
+ onSelectCard: () => g == null ? void 0 : g(e)
190
192
  },
191
193
  `field-of-interests-with-avatars-card-avatar__${n + 1}`
192
194
  )) : (b = Array.from("1234")) == null ? void 0 : b.map((e, n) => /* @__PURE__ */ t(
@@ -208,7 +210,7 @@ const N = _.div`
208
210
  sellerUuid: e == null ? void 0 : e.sellerUuid,
209
211
  negotiableText: e == null ? void 0 : e.negotiableText,
210
212
  freeText: e == null ? void 0 : e.freeText,
211
- onSelectCard: () => h == null ? void 0 : h(e)
213
+ onSelectCard: () => f == null ? void 0 : f(e)
212
214
  },
213
215
  `field-of-interests-with-avatars-card__${n + 1}`
214
216
  )) : ($ = Array.from("123456")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ t(
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),d=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-Dl9xPH4c.cjs"),g=require("./consts-goSZX3xP.cjs"),y=require("./Icon.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=p.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),p=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-Dl9xPH4c.cjs"),g=require("./consts-goSZX3xP.cjs"),y=require("./Icon.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=c.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -49,12 +49,12 @@
49
49
  }
50
50
  }
51
51
  cursor: pointer;
52
- `,k=p.styled.div`
52
+ `,k=c.styled.div`
53
53
  width: 100%;
54
54
  height: 11.625rem;
55
55
  border-radius: 0.75rem;
56
56
  background: ${l.linearGradientAnimation("-90deg")};
57
- `,I=p.styled.div`
57
+ `,I=c.styled.div`
58
58
  display: flex;
59
59
  padding: 0 0.75rem 0 0.75rem;
60
60
  align-items: center;
@@ -108,12 +108,12 @@
108
108
  @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
109
109
  min-width: fit-content;
110
110
  }
111
- `,N=p.styled.div`
111
+ `,N=c.styled.div`
112
112
  width: 7rem;
113
113
  height: 3rem;
114
114
  border-radius: 999px;
115
115
  background: ${l.linearGradientAnimation("-90deg")};
116
- `,$=d.forwardRef(({},i)=>r.jsx(N,{})),C=d.forwardRef(({name:i,isActive:n,icon:t,onSelectCard:o=()=>{}},c)=>r.jsxs(I,{className:n?"active":"",onClick:o,children:[l.isDefinedNotEmptyString(t)&&r.jsx(y,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),W=d.forwardRef(({image:i,imageComponent:n,name:t,description:o,onSelectCard:c=()=>{}},_)=>{const{theme:m}=b.useTheme();return r.jsxs(j,{theme:m,onClick:c,children:[l.isDefined(n)?n:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),o&&r.jsx("div",{className:"wrapper__description",children:o})]})]})}),R=d.forwardRef(({},i)=>r.jsx(k,{})),F=p.styled.div`
116
+ `,$=p.forwardRef(({},i)=>r.jsx(N,{})),C=p.forwardRef(({name:i,isActive:n,icon:t,onSelectCard:o=()=>{}},d)=>r.jsxs(I,{ref:d,className:n?"active":"",onClick:o,children:[l.isDefinedNotEmptyString(t)&&r.jsx(y,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),W=p.forwardRef(({image:i,imageComponent:n,name:t,description:o,onSelectCard:d=()=>{}},m)=>{const{theme:f}=b.useTheme();return r.jsxs(j,{ref:m,theme:f,onClick:d,children:[l.isDefined(n)?n:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),o&&r.jsx("div",{className:"wrapper__description",children:o})]})]})}),R=p.forwardRef(({},i)=>r.jsx(k,{})),F=c.styled.div`
117
117
  display: flex;
118
118
  flex-direction: column;
119
119
  align-items: center;
@@ -188,4 +188,4 @@
188
188
  gap: 1rem;
189
189
  }
190
190
  }
191
- `,T=d.forwardRef(({title:i,subtitle:n,tags:t=[],limitTags:o=7,limitTagsForMobile:c=7,limit:_=3,limitForMobile:m=2,items:a=[],selectedTag:u,onSelectTag:f=()=>{},onSelectCard:h=()=>{}},v)=>{var w,x;return r.jsxs(F,{ref:v,limitTags:o,limitTagsForMobile:c,limitCards:_,limitCardsForMobile:m,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,s)=>r.jsx(C,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===u,onSelectCard:()=>f==null?void 0:f(e)},`field-of-interests-with-tags-card-tag__${s+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,s)=>r.jsx($,{},`field-of-interests-with-tags-card-tag-skeleton__${s+1}`))}),r.jsx("div",{className:"wrapper__cards",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,s)=>r.jsx(W,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-with-tags-card__${s+1}`)):(x=Array.from("123"))==null?void 0:x.map((e,s)=>r.jsx(R,{},`field-of-interests-with-tags-card-skeleton__${s+1}`))})]})});module.exports=T;
191
+ `,T=p.forwardRef(({title:i,subtitle:n,tags:t=[],limitTags:o=7,limitTagsForMobile:d=7,limit:m=3,limitForMobile:f=2,items:a=[],selectedTag:u,onSelectTag:h=()=>{},onSelectCard:_=()=>{}},v)=>{var w,x;return r.jsxs(F,{ref:v,limitTags:o,limitTagsForMobile:d,limitCards:m,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,s)=>r.jsx(C,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===u,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-with-tags-card-tag__${s+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,s)=>r.jsx($,{},`field-of-interests-with-tags-card-tag-skeleton__${s+1}`))}),r.jsx("div",{className:"wrapper__cards",children:a&&(a==null?void 0:a.length)>0?a==null?void 0:a.map((e,s)=>r.jsx(W,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-with-tags-card__${s+1}`)):(x=Array.from("123"))==null?void 0:x.map((e,s)=>r.jsx(R,{},`field-of-interests-with-tags-card-skeleton__${s+1}`))})]})});module.exports=T;
@@ -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";
1
+ import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { p as x, o as u, k, l as N } from "./utils-BdsZgOUE.js";
5
5
  import { M as v } from "./consts-BuFChS64.js";
6
6
  import $ from "./Icon.js";
7
7
  import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const I = m.div`
8
+ const I = d.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: flex-start;
@@ -56,12 +56,12 @@ const I = m.div`
56
56
  }
57
57
  }
58
58
  cursor: pointer;
59
- `, W = m.div`
59
+ `, W = d.div`
60
60
  width: 100%;
61
61
  height: 11.625rem;
62
62
  border-radius: 0.75rem;
63
63
  background: ${u("-90deg")};
64
- `, j = m.div`
64
+ `, j = d.div`
65
65
  display: flex;
66
66
  padding: 0 0.75rem 0 0.75rem;
67
67
  align-items: center;
@@ -115,30 +115,38 @@ const I = m.div`
115
115
  @media (max-width: ${v + "px"}) {
116
116
  min-width: fit-content;
117
117
  }
118
- `, F = m.div`
118
+ `, F = d.div`
119
119
  width: 7rem;
120
120
  height: 3rem;
121
121
  border-radius: 999px;
122
122
  background: ${u("-90deg")};
123
- `, T = p(({}, t) => /* @__PURE__ */ r(F, {})), z = p(
123
+ `, T = m(({}, t) => /* @__PURE__ */ r(F, {})), z = m(
124
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: [
125
+ } }, s) => /* @__PURE__ */ p(
126
+ j,
127
+ {
128
+ ref: s,
129
+ className: a ? "active" : "",
130
+ onClick: l,
131
+ children: [
132
+ k(i) && /* @__PURE__ */ r($, { icon: i, className: "wrapper__icon" }),
133
+ /* @__PURE__ */ r("div", { className: "wrapper__text", children: t })
134
+ ]
135
+ }
136
+ )
137
+ ), O = m(
138
+ ({ image: t, imageComponent: a, name: i, description: l, onSelectCard: s = () => {
139
+ } }, c) => {
140
+ const { theme: f } = C();
141
+ return /* @__PURE__ */ p(I, { ref: c, theme: f, onClick: s, children: [
134
142
  N(a) ? a : /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
135
- /* @__PURE__ */ s("div", { className: "wrapper__content", children: [
143
+ /* @__PURE__ */ p("div", { className: "wrapper__content", children: [
136
144
  i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
137
145
  l && /* @__PURE__ */ r("div", { className: "wrapper__description", children: l })
138
146
  ] })
139
147
  ] });
140
148
  }
141
- ), A = p(({}, t) => /* @__PURE__ */ r(W, {})), E = m.div`
149
+ ), A = m(({}, t) => /* @__PURE__ */ r(W, {})), E = d.div`
142
150
  display: flex;
143
151
  flex-direction: column;
144
152
  align-items: center;
@@ -213,33 +221,33 @@ const I = m.div`
213
221
  gap: 1rem;
214
222
  }
215
223
  }
216
- `, P = p(
224
+ `, P = m(
217
225
  ({
218
226
  title: t,
219
227
  subtitle: a,
220
228
  tags: i = [],
221
229
  limitTags: l = 7,
222
- limitTagsForMobile: d = 7,
223
- limit: _ = 3,
224
- limitForMobile: c = 2,
230
+ limitTagsForMobile: s = 7,
231
+ limit: c = 3,
232
+ limitForMobile: f = 2,
225
233
  items: n = [],
226
234
  selectedTag: y,
227
- onSelectTag: f = () => {
235
+ onSelectTag: h = () => {
228
236
  },
229
- onSelectCard: h = () => {
237
+ onSelectCard: _ = () => {
230
238
  }
231
239
  }, b) => {
232
240
  var w, g;
233
- return /* @__PURE__ */ s(
241
+ return /* @__PURE__ */ p(
234
242
  E,
235
243
  {
236
244
  ref: b,
237
245
  limitTags: l,
238
- limitTagsForMobile: d,
239
- limitCards: _,
240
- limitCardsForMobile: c,
246
+ limitTagsForMobile: s,
247
+ limitCards: c,
248
+ limitCardsForMobile: f,
241
249
  children: [
242
- /* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
250
+ /* @__PURE__ */ p("div", { className: "wrapper__heading", children: [
243
251
  t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
244
252
  a && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: a })
245
253
  ] }),
@@ -249,7 +257,7 @@ const I = m.div`
249
257
  icon: e == null ? void 0 : e.icon,
250
258
  name: e == null ? void 0 : e.title,
251
259
  isActive: (e == null ? void 0 : e.code) === y,
252
- onSelectCard: () => f == null ? void 0 : f(e)
260
+ onSelectCard: () => h == null ? void 0 : h(e)
253
261
  },
254
262
  `field-of-interests-with-tags-card-tag__${o + 1}`
255
263
  )) : (w = Array.from("123")) == null ? void 0 : w.map((e, o) => /* @__PURE__ */ r(
@@ -264,7 +272,7 @@ const I = m.div`
264
272
  imageComponent: e == null ? void 0 : e.imageComponent,
265
273
  name: e == null ? void 0 : e.title,
266
274
  description: e == null ? void 0 : e.description,
267
- onSelectCard: () => h == null ? void 0 : h(e)
275
+ onSelectCard: () => _ == null ? void 0 : _(e)
268
276
  },
269
277
  `field-of-interests-with-tags-card__${o + 1}`
270
278
  )) : (g = Array.from("123")) == null ? void 0 : g.map((e, o) => /* @__PURE__ */ r(
@@ -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];