@lanaco/lnc-react-ui 4.0.151 → 4.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AdBannerSection.cjs +3 -3
- package/dist/AdBannerSection.js +16 -16
- package/dist/BannerSectionBasic.cjs +4 -4
- package/dist/BannerSectionBasic.js +33 -32
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +33 -33
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +15 -15
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -12
- package/dist/BlogExploreSection.cjs +4 -4
- package/dist/BlogExploreSection.js +30 -30
- package/dist/BlogListSection.cjs +2 -2
- package/dist/BlogListSection.js +28 -28
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +20 -19
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +22 -22
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +24 -24
- package/dist/CustomLoanMapSection.cjs +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{DailyMotion-CPQ6kDJJ.cjs → DailyMotion-BaFUcQKQ.cjs} +1 -1
- package/dist/{DailyMotion-BrbMSyj1.js → DailyMotion-ByXblnua.js} +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +41 -41
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/{Facebook-Dw3my9_4.js → Facebook-BCqiOWZO.js} +1 -1
- package/dist/{Facebook-DKhRiODC.cjs → Facebook-D9wwecSW.cjs} +1 -1
- package/dist/FaqSection.cjs +2 -2
- package/dist/FaqSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +65 -48
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +3 -3
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +27 -25
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +10 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +77 -65
- package/dist/{FilePlayer-DlCyGLHB.cjs → FilePlayer-DB6jnpeC.cjs} +1 -1
- package/dist/{FilePlayer-Ckx8dmB0.js → FilePlayer-ktaNhf3p.js} +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +9 -9
- package/dist/GeneralWithTagsCardsSection.js +15 -15
- package/dist/{Kaltura-31Xm8S1J.cjs → Kaltura-CCdXLzOa.cjs} +1 -1
- package/dist/{Kaltura-qHdDvnjZ.js → Kaltura-CvlN0HDg.js} +1 -1
- package/dist/LoanCalculatorSection.cjs +2 -2
- package/dist/LoanCalculatorSection.js +89 -88
- package/dist/LocationFinderSection.cjs +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/{Mixcloud-DvH0vfg5.js → Mixcloud-Bb8MTclI.js} +1 -1
- package/dist/{Mixcloud-CP9Zq_TX.cjs → Mixcloud-nG_VyBNt.cjs} +1 -1
- package/dist/{Mux-BlblTeid.cjs → Mux-BgB2a8kM.cjs} +1 -1
- package/dist/{Mux--JeF6dPG.js → Mux-DfYpGTiP.js} +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +11 -11
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/QuizSection.cjs +7 -7
- package/dist/QuizSection.js +51 -51
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +2 -1
- package/dist/SearchSection-BcbHP6QF.cjs +161 -0
- package/dist/{SearchSection-CsfURtvf.js → SearchSection-DDQ_K98T.js} +52 -52
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +2 -2
- package/dist/{SoundCloud-1hd9TBSO.cjs → SoundCloud-C86xwUG6.cjs} +1 -1
- package/dist/{SoundCloud-CKaavZky.js → SoundCloud-DG91z39R.js} +1 -1
- package/dist/StatsSection.cjs +5 -5
- package/dist/StatsSection.js +22 -22
- package/dist/{Streamable-DLxq1ZNX.cjs → Streamable-4uAnb3WN.cjs} +1 -1
- package/dist/{Streamable-CZEPghiG.js → Streamable-BAIWLgyD.js} +1 -1
- package/dist/ToggleSection.cjs +3 -3
- package/dist/ToggleSection.js +10 -10
- package/dist/{Twitch-Bb8e342z.cjs → Twitch-CVAj24ti.cjs} +1 -1
- package/dist/{Twitch-BJeGquex.js → Twitch-DfXeW5Xs.js} +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{Vidyard-WNQdOeK1.cjs → Vidyard-DaCcaaH4.cjs} +1 -1
- package/dist/{Vidyard-CuGoX_VE.js → Vidyard-De3pges0.js} +1 -1
- package/dist/{Vimeo-Da2vBv-V.cjs → Vimeo-8wXdCXGs.cjs} +1 -1
- package/dist/{Vimeo-B9eKoxWn.js → Vimeo-N6I2qi_h.js} +1 -1
- package/dist/{Wistia-ZPcGhh1L.cjs → Wistia-BrUzHQoq.cjs} +1 -1
- package/dist/{Wistia-BB50IUif.js → Wistia-dlV6n6tO.js} +1 -1
- package/dist/{YouTube-4RMnpdLL.cjs → YouTube-Cfsj4ZaP.cjs} +1 -1
- package/dist/{YouTube-CG6JL2_w.js → YouTube-DNJxWqRm.js} +1 -1
- package/dist/{index-DzYKmmn2.js → index-BGY3PSA-.js} +18 -18
- package/dist/{index-Djw_s9eq.js → index-C0SKNFzP.js} +15 -15
- package/dist/{index-cd9auaNr.cjs → index-CLoINIGC.cjs} +3 -3
- package/dist/{index-GxCvHDwv.cjs → index-ELUMKl0N.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{suspense-categories-card-simple-DuKEj9IU.js → suspense-categories-card-simple-BGj475Ca.js} +11 -10
- package/dist/{suspense-categories-card-simple-DaA0JGJJ.cjs → suspense-categories-card-simple-CjGtzfzp.cjs} +1 -1
- package/dist/suspense-product-card-detailed-BJ-HBkBc.js +577 -0
- package/dist/suspense-product-card-detailed-wPRUytSf.cjs +263 -0
- package/dist/{suspense-product-card-simple-D2m3NcrV.js → suspense-product-card-simple-CLJjab5B.js} +1 -1
- package/dist/{suspense-product-card-simple-BWxWMag0.cjs → suspense-product-card-simple-CrqjSxHI.cjs} +1 -1
- package/dist/{tag-CtleOqEC.js → tag-cRMfP-SZ.js} +9 -9
- package/dist/{tag-Bov1gw34.cjs → tag-yputMSpE.cjs} +4 -4
- package/package.json +1 -1
- package/dist/SearchSection-BGK1Fxaj.cjs +0 -161
- package/dist/suspense-product-card-detailed-C-ZCjG5p.js +0 -538
- package/dist/suspense-product-card-detailed-FuxsUusc.cjs +0 -260
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),t=require("./utils-Dl9xPH4c.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),le=require("./index-BueKsXT8.cjs"),x=require("./Badge.cjs"),de=require("./Popover.cjs"),me=require("./PopoverTrigger.cjs"),pe=require("./PopoverContent.cjs"),ue=require("./useDetectMobile-zkbzoOGV.cjs"),R=require("./consts-goSZX3xP.cjs"),G=N.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 0.5rem;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
& .wrapper-card-1 {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 0.38rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
& .wrapper-card-2 {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& .wrapper-card-3 {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
gap: 0.25rem;
|
|
25
|
+
|
|
26
|
+
& > div {
|
|
27
|
+
& > div {
|
|
28
|
+
width: 100% !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& .tag {
|
|
34
|
+
height: 1.5rem;
|
|
35
|
+
gap: 0.25rem;
|
|
36
|
+
padding: 0.25rem 0.375rem;
|
|
37
|
+
border-radius: 0.375rem;
|
|
38
|
+
background: #f9fafb;
|
|
39
|
+
border: 1px solid var(--gray-95012, #14161a1f);
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
font-size: 0.75rem;
|
|
42
|
+
line-height: 1rem;
|
|
43
|
+
letter-spacing: 0.025rem;
|
|
44
|
+
color: var(--gray-950, #14161a);
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
flex: 0 0 auto;
|
|
47
|
+
|
|
48
|
+
& i {
|
|
49
|
+
color: var(--yellow-500, #f59e0b);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& .tag-mobile {
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-size: 0.75rem;
|
|
56
|
+
line-height: 1rem;
|
|
57
|
+
letter-spacing: 0.025rem;
|
|
58
|
+
color: var(--gray-600, #676e79);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& .card-title {
|
|
62
|
+
font-size: 0.875rem;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
${t.truncateTextInRows(2)}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
& .price-text {
|
|
68
|
+
font-size: 1rem;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
${t.truncateText()}
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: end;
|
|
73
|
+
gap: 0.5rem;
|
|
74
|
+
color: var(--gray-950, #14161a);
|
|
75
|
+
|
|
76
|
+
&.new-price {
|
|
77
|
+
color: var(--danger-600, #e11d48);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& .full-price {
|
|
81
|
+
text-decoration: line-through;
|
|
82
|
+
font-size: 0.75rem;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
padding-bottom: 0.125rem;
|
|
85
|
+
color: var(--gray-600, #676e79);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& .location-text {
|
|
90
|
+
font-size: 0.75rem;
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
color: var(--gray-600, #676e79);
|
|
93
|
+
${t.truncateText()}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
& .tags-wrapper {
|
|
97
|
+
display: flex;
|
|
98
|
+
gap: 0.5rem;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
& .skeleton-img {
|
|
102
|
+
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
103
|
+
border-radius: 0.75rem;
|
|
104
|
+
border: 1px solid white;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
& .skeleton-title {
|
|
108
|
+
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: 2.5rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
& .skeleton-tags {
|
|
114
|
+
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
115
|
+
width: 80%;
|
|
116
|
+
height: 1.5rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
& .skeleton-price {
|
|
120
|
+
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
121
|
+
width: 50%;
|
|
122
|
+
height: 2.5rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
& .skeleton-sponsored {
|
|
126
|
+
background-color: ${t.linearGradientAnimation("-90deg")};
|
|
127
|
+
width: 50%;
|
|
128
|
+
height: 1rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& .tags-popover__trigger {
|
|
132
|
+
display: flex;
|
|
133
|
+
gap: 0.25rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
|
|
137
|
+
overflow: visible;
|
|
138
|
+
|
|
139
|
+
& .tags-popover__trigger {
|
|
140
|
+
flex-wrap: wrap;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
& .price-text {
|
|
144
|
+
font-size: 0.875rem;
|
|
145
|
+
font-weight: 600;
|
|
146
|
+
|
|
147
|
+
& .full-price {
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&:hover .product-image-wrapper img {
|
|
154
|
+
transform: scale(1.1);
|
|
155
|
+
}
|
|
156
|
+
`,ge=N.styled.div`
|
|
157
|
+
position: relative;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
border-radius: 0.75rem;
|
|
160
|
+
width: 100%;
|
|
161
|
+
aspect-ratio: 1 / 1;
|
|
162
|
+
border: 1px solid #0c15201f;
|
|
163
|
+
|
|
164
|
+
& .bookmarking-btn {
|
|
165
|
+
position: absolute;
|
|
166
|
+
right: 0.5rem;
|
|
167
|
+
top: 0.5rem;
|
|
168
|
+
z-index: 1;
|
|
169
|
+
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&:hover {
|
|
174
|
+
& .bookmarking-btn {
|
|
175
|
+
display: flex;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
& img {
|
|
180
|
+
display: block;
|
|
181
|
+
width: 100%;
|
|
182
|
+
height: 100%;
|
|
183
|
+
object-fit: cover;
|
|
184
|
+
border-radius: 0.75rem;
|
|
185
|
+
transition: var(--transition, all 0.3s ease);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@media (max-width: ${R.MOBILE_SIZE_PX+"px"}) {
|
|
189
|
+
& img {
|
|
190
|
+
width: 8.875rem;
|
|
191
|
+
height: 8.875rem;
|
|
192
|
+
min-width: 8.875rem;
|
|
193
|
+
min-height: 8.875rem;
|
|
194
|
+
object-fit: cover;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
& .bookmarking-btn {
|
|
198
|
+
display: flex;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
`,he=N.styled.div`
|
|
202
|
+
background: var(--white, #fff);
|
|
203
|
+
z-index: 1;
|
|
204
|
+
|
|
205
|
+
border: 1px solid var(--gray-200, #dddfe4);
|
|
206
|
+
border-radius: 0.5rem;
|
|
207
|
+
line-height: 1rem;
|
|
208
|
+
position: absolute;
|
|
209
|
+
padding: 0.5rem 0.75rem;
|
|
210
|
+
top: 0.5rem;
|
|
211
|
+
left: 25%;
|
|
212
|
+
transform: translateX(-50%);
|
|
213
|
+
min-width: 13rem;
|
|
214
|
+
|
|
215
|
+
&::before,
|
|
216
|
+
&::after {
|
|
217
|
+
content: "";
|
|
218
|
+
position: absolute;
|
|
219
|
+
left: 50%;
|
|
220
|
+
transform: translateX(-50%);
|
|
221
|
+
border-style: solid;
|
|
222
|
+
border-width: 0.625rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&::after {
|
|
226
|
+
top: -1.1875rem;
|
|
227
|
+
border-color: transparent transparent var(--white, #fff) transparent;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&::before {
|
|
231
|
+
top: -1.25rem;
|
|
232
|
+
border-color: transparent transparent var(--gray-200, #dddfe4) transparent;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
& .tags-popover__content {
|
|
236
|
+
display: flex;
|
|
237
|
+
flex-wrap: wrap;
|
|
238
|
+
flex-direction: column;
|
|
239
|
+
gap: 0.375rem;
|
|
240
|
+
font-size: 0.75rem;
|
|
241
|
+
font-weight: 400;
|
|
242
|
+
|
|
243
|
+
& .tags-popover__name {
|
|
244
|
+
color: var(--gray-600, #676e79);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
& .tags-popover__value {
|
|
248
|
+
color: var(--gray-950, #14161a);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
`,fe=N.styled.div`
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
gap: 0.25rem;
|
|
255
|
+
color: var(--gray-500);
|
|
256
|
+
font-size: 0.75rem;
|
|
257
|
+
font-weight: 500;
|
|
258
|
+
|
|
259
|
+
& i {
|
|
260
|
+
font-size: 1rem;
|
|
261
|
+
color: var(--warning-500, #F59E0B);
|
|
262
|
+
}
|
|
263
|
+
`,ve=a.forwardRef(({sponsoredText:p="Sponsored"},w)=>e.jsxs(fe,{ref:w,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:p})]})),we="Vehicles_Cars",be="Vehicles_Motorcycles",ye="Vehicles_Trucks",je="Vehicles_AgriculturalMachines_Tractors",ke="Vehicles_ConstructionMachines",_e="Vehicles_Bus",xe="Vehicles_Campers",Ne="RealEstates_",i={Mileage:{icon:"mng-lnc-road",measure:"km"},YearOfProduction:{icon:"mng-lnc-calendar",measure:""},Fuel:{icon:"mng-lnc-gas-station",measure:""},EnginePowerKW:{icon:"mng-lnc-engine",measure:"kW"},Transmission:{icon:"mng-lnc-transmission",measure:""},Model:{icon:"mng-lnc-application",measure:""},Brand:{icon:"mng-lnc-car--front",measure:""},SurfaceArea:{icon:"mng-lnc-right-angle",measure:""},Floor:{icon:"mng-lnc-elevator",measure:""},FurnishedCondition:{icon:"mng-lnc-sofa-01",measure:""},AdType:{icon:"mng-lnc-notes",measure:""},NumberOfRooms:{icon:"mng-lnc-meeting-room",measure:""},HeatingType:{icon:"mng-lnc-heat",measure:""},AirConditioning:{icon:"mng-lnc-air-conditioner",measure:""},Type:{icon:"mng-lnc-house-building",measure:""},Parking:{icon:"mng-lnc-parking-area-circle",measure:""},Internet:{icon:"mng-lnc-wifi-02",measure:""},State:{icon:"mng-lnc-settings-1",measure:""},NumberOfPremises:{icon:"mng-lnc-meeting-room",measure:""},Pool:{icon:"mng-lnc-pool",measure:""},Approach:{icon:"mng-lnc-driveway",measure:""},NumberOfBeds:{icon:"mng-lnc-bed",measure:""},Kitchen:{icon:"mng-lnc-fridge",measure:""},BathroomToilet:{icon:"mng-lnc-bath",measure:""},default:{icon:" mng-lnc-clock--filled",measure:""}},Ce=a.forwardRef((p,w)=>{const{uuid:u,name:j,price:h=0,sellingPrice:k,currency:_,isNegotiable:C,isFree:P,imageUrl:A,location:X,sponsored:L,imageComponent:V,onSelectCard:U=()=>{},freeText:Y="Free",negotiableText:K="Negotiable",tags:o=[],categoryCode:$,condition:E,quantity:S,trade:T,sponsoredText:Z,onBookmark:B=()=>{},bookmarkComponent:b,bookmarked:z,bookmarkLists:H}=p,O=ue.useDetectMobile(),J=()=>{var l;if(!t.isDefined(b))return e.jsx(e.Fragment,{});const r=b,n=(l=b==null?void 0:b.props)==null?void 0:l.children,s=a.cloneElement(n,{key:`bookmark_pr__${z}`,bookmarked:z,productUuid:u,onAddToBookmark:()=>B(!0,u),onRemoveFromBookmark:()=>B(!1,u),bookmarkedUuidList:H});return a.cloneElement(r,void 0,s)},M=[we,be,ye,je,ke,_e,xe,Ne].some(r=>$==null?void 0:$.includes(r)),[Q,q]=a.useState(!1),ee=()=>{q(!0)},re=()=>{q(!1)},c=a.useRef(null),f=a.useRef([]),[ne,oe]=a.useState(o==null?void 0:o.length),te=()=>{var l,d,y;if(!(c!=null&&c.current)||((l=f==null?void 0:f.current)==null?void 0:l.length)===0)return;const r=(d=c==null?void 0:c.current)==null?void 0:d.offsetWidth;let n=0,s=0;for(let m=0;m<(o==null?void 0:o.length);m++){const v=((y=f==null?void 0:f.current[m])==null?void 0:y.offsetWidth)||0,g=n+v+4;if(g<=r)n+=g,s++;else break}oe(s)};a.useEffect(()=>{const r=c==null?void 0:c.current;if(!r)return;const n=new ResizeObserver(()=>{te()});return n.observe(r),()=>{n.disconnect()}},[o]);const se=()=>{var r;return e.jsx("div",{className:"tags-popover__trigger",children:(r=o==null?void 0:o.slice(0,ne))==null?void 0:r.map((n,s)=>{var v,g,W,D,I;const l=((v=i==null?void 0:i[n==null?void 0:n.code])==null?void 0:v.icon)??((g=i==null?void 0:i.default)==null?void 0:g.icon)??"",d=((W=n==null?void 0:n.measurementUnit)==null?void 0:W.symbol)??((D=i==null?void 0:i[n==null?void 0:n.code])==null?void 0:D.measure)??"",m=[(n==null?void 0:n.value)??((I=n==null?void 0:n.multiOptions)==null?void 0:I[0])??"",d].filter(Boolean).join(" ");return O?e.jsxs("div",{className:"tag-mobile",children:[m,s<(o==null?void 0:o.length)-1?" · ":""]}):e.jsxs(x,{ref:ce=>f.current[s]=ce,className:"tag",children:[e.jsx("i",{className:l}),m]},`detailed-products-section-tag__${s+1}`)})})},ie=()=>e.jsx("div",{className:"tags-popover__content",children:o==null?void 0:o.map((r,n)=>{var m,v,g;const s=((m=r==null?void 0:r.measurementUnit)==null?void 0:m.symbol)??((v=i==null?void 0:i[r==null?void 0:r.code])==null?void 0:v.measure)??"",d=[(r==null?void 0:r.value)??((g=r==null?void 0:r.multiOptions)==null?void 0:g[0])??"",s].filter(Boolean).join(" "),y=r==null?void 0:r.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${y}: `}),e.jsx("span",{className:"tags-popover__value",children:d})]},`detailed-products-section-tag-dropdown__${n+1}`)})}),ae=()=>{var r;if(O){const n=[E,S,T];return(r=n==null?void 0:n.filter(s=>t.isDefinedNotEmptyString(s)))==null?void 0:r.map((s,l,d)=>e.jsxs("div",{className:"tag-mobile",children:[s,l<(d==null?void 0:d.length)-1?" · ":""]}))}return e.jsxs(e.Fragment,{children:[E&&e.jsx(x,{className:"tag",children:E},"detailed-products-section-tag__condition"),S&&e.jsx(x,{className:"tag",children:S},"detailed-products-section-tag__quantity"),T&&e.jsx(x,{className:"tag",children:T},"detailed-products-section-tag__trade")]})},F=h>0&&_&&C!==!0&&P!==!0&&h!==k;return e.jsxs(G,{ref:c,className:"product-card",onClick:U,children:[e.jsxs(ge,{className:"product-image-wrapper",children:[e.jsx(J,{}),t.isDefined(V)?V:e.jsx(le.ProductImageWrapper,{src:A})]}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:j})}),e.jsxs("div",{className:"wrapper-card-3",children:[M&&e.jsx("div",{...O?{}:{onMouseEnter:ee,onMouseLeave:re},children:e.jsxs(de,{placement:"bottom",open:Q,children:[e.jsx(me,{children:se()}),e.jsx(pe,{style:{all:"unset"},children:e.jsx(he,{children:ie()})})]})}),!M&&ae()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${F?"new-price":""}`,children:[k>0&&_&&C!==!0&&P!==!0&&e.jsx("div",{children:`${t.formatPrice(k)} ${t.GetCurrencySymbol(_)}`}),F&&e.jsx("div",{className:`${k>0?"full-price":""}`,children:`${t.formatPrice(h)} ${t.GetCurrencySymbol(_)}`}),C&&K,P&&Y]}),e.jsx("div",{className:"location-text",children:X})]}),L===!0&&e.jsx(ve,{sponsoredText:Z})]})}),Pe=a.forwardRef(({},p)=>e.jsxs(G,{className:"product-card",children:[e.jsx("img",{className:"skeleton-img"}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"skeleton-tags"})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-price"}),e.jsx("div",{className:"skeleton-sponsored"})]})]})),$e=({limit:p=5,isLoading:w=!1,keyPrefix:u})=>e.jsx(e.Fragment,{children:Array.from({length:p},(j,h)=>e.jsx(Pe,{isLoading:w},`${u}-skeleton-product-card-${h}`))}),Ee=({children:p,fallbackComponent:w=e.jsx(e.Fragment,{}),isLoading:u=!1,limit:j,keyPrefix:h})=>e.jsx(a.Suspense,{fallbackComponent:w,children:u===!0?e.jsx($e,{isLoading:u,limit:j,keyPrefix:h}):p});exports.DetailedProductCard=Ce;exports.SuspenseDetailedProductCard=Ee;
|
package/dist/{suspense-product-card-simple-D2m3NcrV.js → suspense-product-card-simple-CLJjab5B.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as a, Suspense as l } from "react";
|
|
3
|
-
import { a as c } from "./index-
|
|
3
|
+
import { a as c } from "./index-BGY3PSA-.js";
|
|
4
4
|
const m = a((e, t) => /* @__PURE__ */ r(c, {})), u = ({ limit: e = 6, isLoading: t = !1, keyPrefix: o }) => /* @__PURE__ */ r(p, { children: Array.from({ length: e }, (s, n) => /* @__PURE__ */ r(
|
|
5
5
|
m,
|
|
6
6
|
{
|
package/dist/{suspense-product-card-simple-BWxWMag0.cjs → suspense-product-card-simple-CrqjSxHI.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),u=require("react"),c=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("react"),c=require("./index-CLoINIGC.cjs"),d=u.forwardRef((r,t)=>e.jsx(c.SkeletonWrapper,{})),l=({limit:r=6,isLoading:t=!1,keyPrefix:s})=>e.jsx(e.Fragment,{children:Array.from({length:r},(o,n)=>e.jsx(d,{isLoading:t},`${s}-skeleton-product-card-${n}`))}),a=({children:r,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:s=!1,limit:o,keyPrefix:n})=>e.jsx(u.Suspense,{fallbackComponent:t,children:s===!0?e.jsx(l,{isLoading:s,limit:o,keyPrefix:n}):r});exports.SuspenseSimpleProductCard=a;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
3
|
import { P as r } from "./index-CblbdqjE.js";
|
|
4
|
-
import
|
|
4
|
+
import d from "./Chip.js";
|
|
5
5
|
import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
6
|
import { M as t } from "./consts-BuFChS64.js";
|
|
7
|
-
const
|
|
7
|
+
const p = o.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
gap: 0.75rem;
|
|
10
10
|
align-items: center;
|
|
@@ -176,10 +176,10 @@ const d = o.div`
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
`,
|
|
179
|
+
`, g = m(
|
|
180
180
|
({ tags: n = [], allTagText: i, selectedTagCode: l = null, onSelectTag: s = () => {
|
|
181
|
-
} },
|
|
182
|
-
|
|
181
|
+
} }, c) => /* @__PURE__ */ a(p, { ref: c, className: "section__tags", children: [{ name: i, code: null }, ...n].map((e, f) => /* @__PURE__ */ a(
|
|
182
|
+
d,
|
|
183
183
|
{
|
|
184
184
|
label: e == null ? void 0 : e.name,
|
|
185
185
|
borderRadius: "curved",
|
|
@@ -189,16 +189,16 @@ const d = o.div`
|
|
|
189
189
|
s(e);
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
`faq-section-tag__${
|
|
192
|
+
`faq-section-tag__${f + 1}`
|
|
193
193
|
)) })
|
|
194
194
|
);
|
|
195
|
-
|
|
195
|
+
g.propTypes = {
|
|
196
196
|
tags: r.array,
|
|
197
197
|
allTagText: r.string,
|
|
198
198
|
onSelectTag: r.func
|
|
199
199
|
};
|
|
200
200
|
export {
|
|
201
|
-
|
|
201
|
+
g as F,
|
|
202
202
|
b as I,
|
|
203
203
|
v as a
|
|
204
204
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),m=require("react"),r=require("./index-BpbMKBf_.cjs"),p=require("./Chip.cjs"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./consts-goSZX3xP.cjs"),g=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 0.75rem;
|
|
4
4
|
align-items: center;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* Safari and Chrome */
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,u=o.styled.div`
|
|
57
57
|
display: flex;
|
|
58
58
|
gap: 1.25rem;
|
|
59
59
|
width: 100%;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
@media (max-width: ${t.MOBILE_SIZE_PX+"px"}) {
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,h=o.styled.div`
|
|
85
85
|
width: 100%;
|
|
86
86
|
height: fit-content;
|
|
87
87
|
background: var(--white, #fff);
|
|
@@ -170,4 +170,4 @@
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
`,i=
|
|
173
|
+
`,i=m.forwardRef(({tags:a=[],allTagText:s,selectedTagCode:l=null,onSelectTag:c=()=>{}},d)=>n.jsx(g,{ref:d,className:"section__tags",children:[{name:s,code:null},...a].map((e,f)=>n.jsx(p,{label:e==null?void 0:e.name,borderRadius:"curved",color:"neutral",className:`tags__item ${l===(e==null?void 0:e.code)?"active":""}`,onClick:()=>{c(e)}},`faq-section-tag__${f+1}`))}));i.propTypes={tags:r.PropTypes.array,allTagText:r.PropTypes.string,onSelectTag:r.PropTypes.func};exports.FaqSectionTags=i;exports.ItemContainer=h;exports.ItemsContainer=u;
|
package/package.json
CHANGED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),C=require("react"),g=require("./index-BpbMKBf_.cjs"),Je=require("./TextInput.cjs"),Ze=require("./Icon.cjs"),Ge=require("./Chip.cjs"),J=require("./emotion-styled.browser.esm-BtEseadx.cjs"),ue=require("./consts-goSZX3xP.cjs"),R=require("./_commonjsHelpers-DwTZ_eVU.cjs"),pe=require("./index-CDGmG-qk.cjs"),Qe=require("./useDetectMobile-zkbzoOGV.cjs"),et=J.styled.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
gap: 0.5rem;
|
|
4
|
-
align-content: center;
|
|
5
|
-
|
|
6
|
-
& .tags__item {
|
|
7
|
-
color: var(--neutral-600, #0f2a46);
|
|
8
|
-
background: var(--neutral-50, #eef2f5);
|
|
9
|
-
font-size: 0.875rem;
|
|
10
|
-
font-style: normal;
|
|
11
|
-
font-weight: 400;
|
|
12
|
-
line-height: 1rem;
|
|
13
|
-
letter-spacing: 0.025rem;
|
|
14
|
-
padding: 0.5rem;
|
|
15
|
-
|
|
16
|
-
&:hover {
|
|
17
|
-
background: var(--gray-200, #e4e9f0);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:focus {
|
|
21
|
-
outline: none;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@media (max-width: ${ue.MOBILE_SIZE_PX+"px"}) {
|
|
26
|
-
width: 100%;
|
|
27
|
-
overflow-x: auto;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
|
|
30
|
-
-webkit-overflow-scrolling: touch;
|
|
31
|
-
::-webkit-scrollbar {
|
|
32
|
-
-webkit-appearance: none;
|
|
33
|
-
}
|
|
34
|
-
-ms-overflow-style: none;
|
|
35
|
-
/* Internet Explorer 10+ */
|
|
36
|
-
scrollbar-width: none;
|
|
37
|
-
/* Firefox */
|
|
38
|
-
|
|
39
|
-
&::-webkit-scrollbar {
|
|
40
|
-
display: none;
|
|
41
|
-
/* Safari and Chrome */
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
`,tt=J.styled.div`
|
|
45
|
-
position: relative;
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 100%;
|
|
51
|
-
max-width: 31.25rem;
|
|
52
|
-
max-height: 18.75rem;
|
|
53
|
-
border-radius: 1rem;
|
|
54
|
-
|
|
55
|
-
& .section__thumbnail {
|
|
56
|
-
width: 100%;
|
|
57
|
-
height: 100%;
|
|
58
|
-
max-width: 31.25rem;
|
|
59
|
-
max-height: 18.75rem;
|
|
60
|
-
border-radius: 1rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
& .section__play {
|
|
64
|
-
position: absolute;
|
|
65
|
-
}
|
|
66
|
-
`,B=C.forwardRef(({tags:e=[],selectedTagCode:t=null,onSelectTag:r=()=>{}},n)=>i.jsx(et,{children:e==null?void 0:e.map((a,o)=>i.jsx(Ge,{label:a==null?void 0:a.name,borderRadius:"curved",color:"neutral",className:`tags__item ${t===(a==null?void 0:a.code)?"active":""}`,onClick:()=>{r(a)}},`search-section-tag__${o+1}`))}));B.propTypes={tags:g.PropTypes.array,onSelectTag:g.PropTypes.func};var rt=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},o.type=r.type||"text/javascript",o.charset=r.charset||"utf8",o.async="async"in r?!!r.async:!0,o.src=t,r.attrs&&at(o,r.attrs),r.text&&(o.text=""+r.text);var y="onload"in o?ae:nt;y(o,n),o.onload||ae(o,n),a.appendChild(o)};function at(e,t){for(var r in t)e.setAttribute(r,t[r])}function ae(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function nt(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var ot=function(t){return it(t)&&!st(t)};function it(e){return!!e&&typeof e=="object"}function st(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ut(e)}var lt=typeof Symbol=="function"&&Symbol.for,ct=lt?Symbol.for("react.element"):60103;function ut(e){return e.$$typeof===ct}function pt(e){return Array.isArray(e)?[]:{}}function I(e,t){return t.clone!==!1&&t.isMergeableObject(e)?x(pt(e),e,t):e}function dt(e,t,r){return e.concat(t).map(function(n){return I(n,r)})}function yt(e,t){if(!t.customMerge)return x;var r=t.customMerge(e);return typeof r=="function"?r:x}function ft(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ne(e){return Object.keys(e).concat(ft(e))}function de(e,t){try{return t in e}catch{return!1}}function ht(e,t){return de(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _t(e,t,r){var n={};return r.isMergeableObject(e)&&ne(e).forEach(function(a){n[a]=I(e[a],r)}),ne(t).forEach(function(a){ht(e,a)||(de(e,a)&&r.isMergeableObject(t[a])?n[a]=yt(a,r)(e[a],t[a],r):n[a]=I(t[a],r))}),n}function x(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||dt,r.isMergeableObject=r.isMergeableObject||ot,r.cloneUnlessOtherwiseSpecified=I;var n=Array.isArray(t),a=Array.isArray(e),o=n===a;return o?n?r.arrayMerge(e,t,r):_t(e,t,r):I(t,r)}x.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return x(n,a,r)},{})};var mt=x,ye=mt,Pt=Object.create,U=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyNames,bt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Ot=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},fe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vt(t))!wt.call(e,a)&&a!==r&&U(e,a,{get:()=>t[a],enumerable:!(n=gt(t,a))||n.enumerable});return e},Z=(e,t,r)=>(r=e!=null?Pt(bt(e)):{},fe(!e||!e.__esModule?U(r,"default",{value:e,enumerable:!0}):r,e)),Tt=e=>fe(U({},"__esModule",{value:!0}),e),he={};Ot(he,{callPlayer:()=>Ht,getConfig:()=>Ut,getSDK:()=>Dt,isBlobUrl:()=>Vt,isMediaStream:()=>zt,lazy:()=>Et,omit:()=>kt,parseEndTime:()=>$t,parseStartTime:()=>It,queryString:()=>Nt,randomString:()=>Lt,supportsWebKitPresentationMode:()=>qt});var $=Tt(he),St=Z(C),xt=Z(rt),Ct=Z(ye);const Et=e=>St.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Mt=/[?&#](?:start|t)=([0-9hms]+)/,At=/[?&#]end=([0-9hms]+)/,X=/(\d+)(h|m|s)/g,jt=/^\d+$/;function _e(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(X))return Rt(n);if(jt.test(n))return parseInt(n)}}function Rt(e){let t=0,r=X.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=X.exec(e)}return t}function It(e){return _e(e,Mt)}function $t(e){return _e(e,At)}function Lt(){return Math.random().toString(36).substr(2,5)}function Nt(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function V(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const O={},Dt=function(t,r,n=null,a=()=>!0,o=xt.default){const y=V(r);return y&&a(y)?Promise.resolve(y):new Promise((f,u)=>{if(O[t]){O[t].push({resolve:f,reject:u});return}O[t]=[{resolve:f,reject:u}];const w=b=>{O[t].forEach(E=>E.resolve(b))};if(n){const b=window[n];window[n]=function(){b&&b(),w(V(r))}}o(t,b=>{b?(O[t].forEach(E=>E.reject(b)),O[t]=null):n||w(V(r))})})};function Ut(e,t){return(0,Ct.default)(t.config,e.config)}function kt(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const o of a)r.indexOf(o)===-1&&(n[o]=e[o]);return n}function Ht(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function zt(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Vt(e){return/^blob:/.test(e)}function qt(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var G=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Bt=Object.getOwnPropertyNames,Xt=Object.prototype.hasOwnProperty,Kt=(e,t)=>{for(var r in t)G(e,r,{get:t[r],enumerable:!0})},Wt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Bt(t))!Xt.call(e,a)&&a!==r&&G(e,a,{get:()=>t[a],enumerable:!(n=Ft(t,a))||n.enumerable});return e},Yt=e=>Wt(G({},"__esModule",{value:!0}),e),me={};Kt(me,{AUDIO_EXTENSIONS:()=>Q,DASH_EXTENSIONS:()=>Re,FLV_EXTENSIONS:()=>Ie,HLS_EXTENSIONS:()=>te,MATCH_URL_DAILYMOTION:()=>Ee,MATCH_URL_FACEBOOK:()=>we,MATCH_URL_FACEBOOK_WATCH:()=>Oe,MATCH_URL_KALTURA:()=>je,MATCH_URL_MIXCLOUD:()=>Me,MATCH_URL_MUX:()=>be,MATCH_URL_SOUNDCLOUD:()=>ge,MATCH_URL_STREAMABLE:()=>Te,MATCH_URL_TWITCH_CHANNEL:()=>Ce,MATCH_URL_TWITCH_VIDEO:()=>xe,MATCH_URL_VIDYARD:()=>Ae,MATCH_URL_VIMEO:()=>ve,MATCH_URL_WISTIA:()=>Se,MATCH_URL_YOUTUBE:()=>K,VIDEO_EXTENSIONS:()=>ee,canPlay:()=>Jt});var Pe=Yt(me),oe=$;const K=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ge=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,ve=/vimeo\.com\/(?!progressive_redirect).+/,be=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,we=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Oe=/^https?:\/\/fb\.watch\/.+$/,Te=/streamable\.com\/([a-z0-9]+)$/,Se=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,xe=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,Ce=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Ee=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Me=/mixcloud\.com\/([^/]+\/[^/]+)/,Ae=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,je=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Q=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,ee=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,te=/\.(m3u8)($|\?)/i,Re=/\.(mpd)($|\?)/i,Ie=/\.(flv)($|\?)/i,W=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&W(t)||W(t.src))return!0;return!1}return(0,oe.isMediaStream)(e)||(0,oe.isBlobUrl)(e)?!0:Q.test(e)||ee.test(e)||te.test(e)||Re.test(e)||Ie.test(e)},Jt={youtube:e=>e instanceof Array?e.every(t=>K.test(t)):K.test(e),soundcloud:e=>ge.test(e)&&!Q.test(e),vimeo:e=>ve.test(e)&&!ee.test(e)&&!te.test(e),mux:e=>be.test(e),facebook:e=>we.test(e)||Oe.test(e),streamable:e=>Te.test(e),wistia:e=>Se.test(e),twitch:e=>xe.test(e)||Ce.test(e),dailymotion:e=>Ee.test(e),mixcloud:e=>Me.test(e),vidyard:e=>Ae.test(e),kaltura:e=>je.test(e),file:W};var re=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,Gt=Object.getOwnPropertyNames,Qt=Object.prototype.hasOwnProperty,er=(e,t)=>{for(var r in t)re(e,r,{get:t[r],enumerable:!0})},tr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Gt(t))!Qt.call(e,a)&&a!==r&&re(e,a,{get:()=>t[a],enumerable:!(n=Zt(t,a))||n.enumerable});return e},rr=e=>tr(re({},"__esModule",{value:!0}),e),$e={};er($e,{default:()=>nr});var ar=rr($e),P=$,_=Pe,nr=[{key:"youtube",name:"YouTube",canPlay:_.canPlay.youtube,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./YouTube-4RMnpdLL.cjs")).then(e=>e.YouTube))},{key:"soundcloud",name:"SoundCloud",canPlay:_.canPlay.soundcloud,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./SoundCloud-1hd9TBSO.cjs")).then(e=>e.SoundCloud))},{key:"vimeo",name:"Vimeo",canPlay:_.canPlay.vimeo,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Vimeo-Da2vBv-V.cjs")).then(e=>e.Vimeo))},{key:"mux",name:"Mux",canPlay:_.canPlay.mux,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Mux-BlblTeid.cjs")).then(e=>e.Mux))},{key:"facebook",name:"Facebook",canPlay:_.canPlay.facebook,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Facebook-DKhRiODC.cjs")).then(e=>e.Facebook))},{key:"streamable",name:"Streamable",canPlay:_.canPlay.streamable,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Streamable-DLxq1ZNX.cjs")).then(e=>e.Streamable))},{key:"wistia",name:"Wistia",canPlay:_.canPlay.wistia,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Wistia-ZPcGhh1L.cjs")).then(e=>e.Wistia))},{key:"twitch",name:"Twitch",canPlay:_.canPlay.twitch,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Twitch-Bb8e342z.cjs")).then(e=>e.Twitch))},{key:"dailymotion",name:"DailyMotion",canPlay:_.canPlay.dailymotion,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./DailyMotion-CPQ6kDJJ.cjs")).then(e=>e.DailyMotion))},{key:"mixcloud",name:"Mixcloud",canPlay:_.canPlay.mixcloud,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Mixcloud-CP9Zq_TX.cjs")).then(e=>e.Mixcloud))},{key:"vidyard",name:"Vidyard",canPlay:_.canPlay.vidyard,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Vidyard-WNQdOeK1.cjs")).then(e=>e.Vidyard))},{key:"kaltura",name:"Kaltura",canPlay:_.canPlay.kaltura,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Kaltura-31Xm8S1J.cjs")).then(e=>e.Kaltura))},{key:"file",name:"FilePlayer",canPlay:_.canPlay.file,canEnablePIP:e=>_.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,P.supportsWebKitPresentationMode)())&&!_.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./FilePlayer-DlCyGLHB.cjs")).then(e=>e.FilePlayer))}],ie=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function or(e,t){return!!(e===t||ie(e)&&ie(t))}function ir(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!or(e[r],t[r]))return!1;return!0}function sr(e,t){t===void 0&&(t=ir);var r,n=[],a,o=!1;function y(){for(var f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];return o&&r===this&&t(f,n)||(a=e.apply(this,f),o=!0,r=this,n=f),a}return y}const lr=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),cr=R.getAugmentedNamespace(lr);var ur=Object.create,k=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyNames,yr=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,hr=(e,t)=>{for(var r in t)k(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of dr(t))!fr.call(e,a)&&a!==r&&k(e,a,{get:()=>t[a],enumerable:!(n=pr(t,a))||n.enumerable});return e},_r=(e,t,r)=>(r=e!=null?ur(yr(e)):{},Le(!e||!e.__esModule?k(r,"default",{value:e,enumerable:!0}):r,e)),mr=e=>Le(k({},"__esModule",{value:!0}),e),Ne={};hr(Ne,{defaultProps:()=>vr,propTypes:()=>gr});var De=mr(Ne),Pr=_r(g.propTypesExports);const{string:p,bool:m,number:T,array:q,oneOfType:M,shape:v,object:h,func:c,node:se}=Pr.default,gr={url:M([p,q,h]),playing:m,loop:m,controls:m,volume:T,muted:m,playbackRate:T,width:M([p,T]),height:M([p,T]),style:h,progressInterval:T,playsinline:m,pip:m,stopOnUnmount:m,light:M([m,p,h]),playIcon:se,previewTabIndex:T,previewAriaLabel:p,fallback:se,oEmbedUrl:p,wrapper:M([p,c,v({render:c.isRequired})]),config:v({soundcloud:v({options:h}),youtube:v({playerVars:h,embedOptions:h,onUnstarted:c}),facebook:v({appId:p,version:p,playerId:p,attributes:h}),dailymotion:v({params:h}),vimeo:v({playerOptions:h,title:p}),mux:v({attributes:h,version:p}),file:v({attributes:h,tracks:q,forceVideo:m,forceAudio:m,forceHLS:m,forceSafariHLS:m,forceDisableHls:m,forceDASH:m,forceFLV:m,hlsOptions:h,hlsVersion:p,dashVersion:p,flvVersion:p}),wistia:v({options:h,playerId:p,customControls:q}),mixcloud:v({options:h}),twitch:v({options:h,playerId:p}),vidyard:v({options:h})}),onReady:c,onStart:c,onPlay:c,onPause:c,onBuffer:c,onBufferEnd:c,onEnded:c,onError:c,onDuration:c,onSeek:c,onPlaybackRateChange:c,onPlaybackQualityChange:c,onProgress:c,onClickPreview:c,onEnablePIP:c,onDisablePIP:c},d=()=>{},vr={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:d},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:d,onStart:d,onPlay:d,onPause:d,onBuffer:d,onBufferEnd:d,onEnded:d,onError:d,onDuration:d,onSeek:d,onPlaybackRateChange:d,onPlaybackQualityChange:d,onProgress:d,onClickPreview:d,onEnablePIP:d,onDisablePIP:d};var br=Object.create,L=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,Or=Object.getOwnPropertyNames,Tr=Object.getPrototypeOf,Sr=Object.prototype.hasOwnProperty,xr=(e,t,r)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cr=(e,t)=>{for(var r in t)L(e,r,{get:t[r],enumerable:!0})},Ue=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Or(t))!Sr.call(e,a)&&a!==r&&L(e,a,{get:()=>t[a],enumerable:!(n=wr(t,a))||n.enumerable});return e},ke=(e,t,r)=>(r=e!=null?br(Tr(e)):{},Ue(!e||!e.__esModule?L(r,"default",{value:e,enumerable:!0}):r,e)),Er=e=>Ue(L({},"__esModule",{value:!0}),e),l=(e,t,r)=>(xr(e,typeof t!="symbol"?t+"":t,r),r),He={};Cr(He,{default:()=>H});var Mr=Er(He),le=ke(C),Ar=ke(pe.reactFastCompare),ze=De,jr=$;const Rr=5e3;class H extends le.Component{constructor(){super(...arguments),l(this,"mounted",!1),l(this,"isReady",!1),l(this,"isPlaying",!1),l(this,"isLoading",!0),l(this,"loadOnReady",null),l(this,"startOnPlay",!0),l(this,"seekOnPlay",null),l(this,"onDurationCalled",!1),l(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),l(this,"getInternalPlayer",t=>this.player?this.player[t]:null),l(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),l(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),l(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),l(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),l(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),l(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),l(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),l(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:r,playing:n,volume:a,muted:o,playbackRate:y,pip:f,loop:u,activePlayer:w,disableDeferredLoading:b}=this.props;if(!(0,Ar.default)(t.url,r)){if(this.isLoading&&!w.forceLoad&&!b&&!(0,jr.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&f&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!f&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==o&&(o?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==y&&this.player.setPlaybackRate&&this.player.setPlaybackRate(y),t.loop!==u&&this.player.setLoop&&this.player.setLoop(u)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Rr));return}if(r?r==="fraction":t>0&&t<1){const o=this.player.getDuration();if(!o){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(o*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?le.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}l(H,"displayName","Player");l(H,"propTypes",ze.propTypes);l(H,"defaultProps",ze.defaultProps);var Ir=Object.create,N=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Lr=Object.getOwnPropertyNames,Nr=Object.getPrototypeOf,Dr=Object.prototype.hasOwnProperty,Ur=(e,t,r)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kr=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},Ve=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Lr(t))!Dr.call(e,a)&&a!==r&&N(e,a,{get:()=>t[a],enumerable:!(n=$r(t,a))||n.enumerable});return e},D=(e,t,r)=>(r=e!=null?Ir(Nr(e)):{},Ve(!e||!e.__esModule?N(r,"default",{value:e,enumerable:!0}):r,e)),Hr=e=>Ve(N({},"__esModule",{value:!0}),e),s=(e,t,r)=>(Ur(e,typeof t!="symbol"?t+"":t,r),r),qe={};kr(qe,{createReactPlayer:()=>Yr});var zr=Hr(qe),S=D(C),Vr=D(ye),F=D(cr),ce=D(pe.reactFastCompare),j=De,Fe=$,qr=D(Mr);const Fr=(0,Fe.lazy)(()=>Promise.resolve().then(()=>require("./Preview-B8HyPnfR.cjs")).then(e=>e.Preview)),Br=typeof window<"u"&&window.document&&typeof document<"u",Xr=typeof R.commonjsGlobal<"u"&&R.commonjsGlobal.window&&R.commonjsGlobal.window.document,Kr=Object.keys(j.propTypes),Wr=Br||Xr?S.Suspense:()=>null,A=[],Yr=(e,t)=>{var r;return r=class extends S.Component{constructor(){super(...arguments),s(this,"state",{showPreview:!!this.props.light}),s(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),s(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),s(this,"showPreview",()=>{this.setState({showPreview:!0})}),s(this,"getDuration",()=>this.player?this.player.getDuration():null),s(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),s(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),s(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),s(this,"seekTo",(n,a,o)=>{if(!this.player)return null;this.player.seekTo(n,a,o)}),s(this,"handleReady",()=>{this.props.onReady(this)}),s(this,"getActivePlayer",(0,F.default)(n=>{for(const a of[...A,...e])if(a.canPlay(n))return a;return t||null})),s(this,"getConfig",(0,F.default)((n,a)=>{const{config:o}=this.props;return Vr.default.all([j.defaultProps.config,j.defaultProps.config[a]||{},o,o[a]||{}])})),s(this,"getAttributes",(0,F.default)(n=>(0,Fe.omit)(this.props,Kr))),s(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const o=this.getConfig(n,a.key);return S.default.createElement(qr.default,{...this.props,key:a.key,ref:this.references.player,config:o,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,ce.default)(this.props,n)||!(0,ce.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:o,previewTabIndex:y,oEmbedUrl:f,previewAriaLabel:u}=this.props;return S.default.createElement(Fr,{url:n,light:a,playIcon:o,previewTabIndex:y,previewAriaLabel:u,oEmbedUrl:f,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:o,height:y,fallback:f,wrapper:u}=this.props,{showPreview:w}=this.state,b=this.getAttributes(n),E=typeof u=="string"?this.references.wrapper:void 0;return S.default.createElement(u,{ref:E,style:{...a,width:o,height:y},...b},S.default.createElement(Wr,{fallback:f},w?this.renderPreview(n):this.renderActivePlayer(n)))}},s(r,"displayName","ReactPlayer"),s(r,"propTypes",j.propTypes),s(r,"defaultProps",j.defaultProps),s(r,"addCustomPlayer",n=>{A.push(n)}),s(r,"removeCustomPlayers",()=>{A.length=0}),s(r,"canPlay",n=>{for(const a of[...A,...e])if(a.canPlay(n))return!0;return!1}),s(r,"canEnablePIP",n=>{for(const a of[...A,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var Jr=Object.create,z=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Gr=Object.getOwnPropertyNames,Qr=Object.getPrototypeOf,ea=Object.prototype.hasOwnProperty,ta=(e,t)=>{for(var r in t)z(e,r,{get:t[r],enumerable:!0})},Be=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Gr(t))!ea.call(e,a)&&a!==r&&z(e,a,{get:()=>t[a],enumerable:!(n=Zr(t,a))||n.enumerable});return e},ra=(e,t,r)=>(r=e!=null?Jr(Qr(e)):{},Be(!e||!e.__esModule?z(r,"default",{value:e,enumerable:!0}):r,e)),aa=e=>Be(z({},"__esModule",{value:!0}),e),Xe={};ta(Xe,{default:()=>sa});var na=aa(Xe),Y=ra(ar),oa=zr;const ia=Y.default[Y.default.length-1];var sa=(0,oa.createReactPlayer)(Y.default,ia);const la=R.getDefaultExportFromCjs(na),ca="data:image/svg+xml,%3csvg%20width='65'%20height='65'%20viewBox='0%200%2065%2065'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.253906'%20y='0.5'%20width='64'%20height='64'%20rx='32'%20fill='url(%23paint0_linear_59350_95007)'/%3e%3cpath%20d='M21.0039%2047.5001C20.6724%2047.5001%2020.3544%2047.3684%2020.12%2047.134C19.8856%2046.8996%2019.7539%2046.5816%2019.7539%2046.2501V18.7501C19.7539%2018.5329%2019.8105%2018.3194%2019.9181%2018.1307C20.0257%2017.942%2020.1807%2017.7846%2020.3677%2017.674C20.5546%2017.5635%2020.7672%2017.5035%2020.9844%2017.5002C21.2016%2017.4968%2021.4159%2017.55%2021.6063%2017.6547L46.6063%2031.4047C46.8024%2031.5126%2046.966%2031.6711%2047.0799%2031.8638C47.1939%2032.0565%2047.254%2032.2762%2047.254%2032.5C47.254%2032.7239%2047.1939%2032.9436%2047.0799%2033.1363C46.966%2033.3289%2046.8024%2033.4875%2046.6063%2033.5953L21.6063%2047.3453C21.4217%2047.4468%2021.2145%2047.5001%2021.0039%2047.5001Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_59350_95007'%20x1='32.2539'%20y1='64.5'%20x2='32.254'%20y2='0.499999'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF7621'/%3e%3cstop%20offset='1'%20stop-color='%23FF9706'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Ke=({thumbnail:e})=>i.jsxs(tt,{children:[i.jsx("img",{src:e,className:"section__thumbnail",alt:"Thumbnail"}),i.jsx("img",{src:ca,className:"section__play",alt:"Play"})]}),We=C.forwardRef(({video:e,thumbnail:t},r)=>{const n=Qe.useDetectMobile();return i.jsx(la,{url:e,playing:!0,controls:!0,width:n?"100%":"31.25rem",height:n?"100%":"18.75rem",light:!0,playIcon:i.jsx(Ke,{thumbnail:t})})});Ke.propTypes={thumbnail:g.PropTypes.string};We.propTypes={video:g.PropTypes.string,thumbnail:g.PropTypes.string};const ua=J.styled.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
justify-content: space-between;
|
|
69
|
-
align-items: center;
|
|
70
|
-
|
|
71
|
-
& .section__left {
|
|
72
|
-
display: flex;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
gap: 2rem;
|
|
75
|
-
|
|
76
|
-
&.search {
|
|
77
|
-
gap: 0.75rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
& .section__title {
|
|
81
|
-
color: var(--gray-900, #0c1520);
|
|
82
|
-
font-size: 1.75rem;
|
|
83
|
-
font-style: normal;
|
|
84
|
-
font-weight: 600;
|
|
85
|
-
line-height: 2.25rem;
|
|
86
|
-
letter-spacing: -0.0369rem;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
& .section__text-input {
|
|
90
|
-
border-radius: 999px;
|
|
91
|
-
height: 3rem;
|
|
92
|
-
min-height: 3rem;
|
|
93
|
-
border: 1px solid var(--gray-200, #e4e9f0);
|
|
94
|
-
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
95
|
-
outline: none;
|
|
96
|
-
|
|
97
|
-
& input::placeholder {
|
|
98
|
-
color: var(--gray-500, #7a8594);
|
|
99
|
-
font-size: 0.875rem;
|
|
100
|
-
font-style: normal;
|
|
101
|
-
font-weight: 400;
|
|
102
|
-
line-height: 1.25rem;
|
|
103
|
-
letter-spacing: 0.0156rem;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
& .section__prefix {
|
|
107
|
-
color: var(--gray-500, #7a8594);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
& .section__description {
|
|
112
|
-
color: var(--gray-500, #7a8594);
|
|
113
|
-
font-size: 1rem;
|
|
114
|
-
font-style: normal;
|
|
115
|
-
font-weight: 500;
|
|
116
|
-
line-height: 1.5rem;
|
|
117
|
-
letter-spacing: -0.0112rem;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
& .section__tags {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
gap: 1.25rem;
|
|
124
|
-
|
|
125
|
-
& .section__suggested {
|
|
126
|
-
color: var(--neutral-900, #0c1520);
|
|
127
|
-
font-size: 0.75rem;
|
|
128
|
-
font-style: normal;
|
|
129
|
-
font-weight: 400;
|
|
130
|
-
line-height: 1rem;
|
|
131
|
-
letter-spacing: 0.025rem;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
& .section__right {
|
|
137
|
-
& video {
|
|
138
|
-
border-radius: 1rem;
|
|
139
|
-
overflow: hidden;
|
|
140
|
-
object-fit: cover;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@media (max-width: ${ue.MOBILE_SIZE_PX+"px"}) {
|
|
145
|
-
flex-direction: column;
|
|
146
|
-
gap: 1.5rem;
|
|
147
|
-
|
|
148
|
-
& .section__left {
|
|
149
|
-
width: 100%;
|
|
150
|
-
text-align: center;
|
|
151
|
-
|
|
152
|
-
& .section__suggested {
|
|
153
|
-
display: none;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
& .section__text-input {
|
|
158
|
-
width: 100%;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
`,Ye=C.forwardRef(({title:e,description:t,suggestedText:r="Suggested",searchPlaceholderText:n="Search for rules, tempates, forms and more",tags:a=[],includeSearch:o=!1,video:y,thumbnail:f},u)=>i.jsxs(ua,{ref:u,children:[o?i.jsxs("div",{className:"section__left search",children:[i.jsx("div",{children:e&&i.jsx("div",{className:"section__title",children:e})}),i.jsx(Je,{className:"section__text-input",placeholder:n,prefix:i.jsx(Ze,{icon:" mng-lnc-search",sizeInUnits:"1.25rem",className:"section__prefix"}),color:"neutral"}),i.jsxs("div",{className:"section__tags",children:[i.jsx("div",{className:"section__suggested",children:r}),i.jsx(B,{tags:a})]})]}):i.jsxs("div",{className:"section__left",children:[i.jsxs("div",{children:[e&&i.jsx("div",{className:"section__title",children:e}),t&&i.jsx("div",{className:"section__description",children:t})]}),i.jsx("div",{className:"section__tags",children:i.jsx(B,{tags:a})})]}),i.jsx("div",{className:"section__right",children:i.jsx(We,{video:y,thumbnail:f})})]}));Ye.propTypes={title:g.PropTypes.string,description:g.PropTypes.string,suggestedText:g.PropTypes.string,searchPlaceholderText:g.PropTypes.string,tags:g.PropTypes.array,includeSearch:g.PropTypes.bool,video:g.PropTypes.string,thumbnail:g.PropTypes.string};exports.SearchSection=Ye;exports.patterns=Pe;exports.utils=$;
|