@lanaco/lnc-react-ui 4.0.199 → 4.0.201
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/Accordion.cjs +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +51 -542
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +2 -2
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PartnerBrandsSection.cjs +62 -0
- package/dist/PartnerBrandsSection.js +154 -0
- package/dist/PartnerStatsSection.cjs +100 -0
- package/dist/PartnerStatsSection.js +124 -0
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +38 -28
- package/dist/SalesCampaignsSection.js +297 -325
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +2 -2
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +5 -5
- package/dist/ToggleSection.js +48 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-BppfjY8h.js +497 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index-DeS-oqJB.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -21
- package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
- package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +4 -2
- package/vite.config.js +8 -0
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),x=require("react"),Xe=require("./TextInput.cjs"),Ke=require("./Icon.cjs"),We=require("./Chip.cjs"),W=require("./emotion-styled.browser.esm-BtEseadx.cjs"),ce=require("./consts-goSZX3xP.cjs"),j=require("./_commonjsHelpers-DwTZ_eVU.cjs"),ue=require("./index-CDGmG-qk.cjs"),Ye=require("./index-BpbMKBf_.cjs"),Je=require("./useDetectMobile-zkbzoOGV.cjs"),Ze=W.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: ${ce.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
|
+
`,Ge=W.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
|
+
`,te=x.forwardRef(({tags:e=[],selectedTagCode:t=null,onSelectTag:r=()=>{}},n)=>i.jsx(Ze,{ref:n,children:e==null?void 0:e.map((a,o)=>i.jsx(We,{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}`))}));var Qe=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&&et(o,r.attrs),r.text&&(o.text=""+r.text);var y="onload"in o?re:tt;y(o,n),o.onload||re(o,n),a.appendChild(o)};function et(e,t){for(var r in t)e.setAttribute(r,t[r])}function re(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 tt(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rt=function(t){return at(t)&&!nt(t)};function at(e){return!!e&&typeof e=="object"}function nt(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||st(e)}var ot=typeof Symbol=="function"&&Symbol.for,it=ot?Symbol.for("react.element"):60103;function st(e){return e.$$typeof===it}function lt(e){return Array.isArray(e)?[]:{}}function R(e,t){return t.clone!==!1&&t.isMergeableObject(e)?T(lt(e),e,t):e}function ct(e,t,r){return e.concat(t).map(function(n){return R(n,r)})}function ut(e,t){if(!t.customMerge)return T;var r=t.customMerge(e);return typeof r=="function"?r:T}function pt(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ae(e){return Object.keys(e).concat(pt(e))}function pe(e,t){try{return t in e}catch{return!1}}function dt(e,t){return pe(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function yt(e,t,r){var n={};return r.isMergeableObject(e)&&ae(e).forEach(function(a){n[a]=R(e[a],r)}),ae(t).forEach(function(a){dt(e,a)||(pe(e,a)&&r.isMergeableObject(t[a])?n[a]=ut(a,r)(e[a],t[a],r):n[a]=R(t[a],r))}),n}function T(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ct,r.isMergeableObject=r.isMergeableObject||rt,r.cloneUnlessOtherwiseSpecified=R;var n=Array.isArray(t),a=Array.isArray(e),o=n===a;return o?n?r.arrayMerge(e,t,r):yt(e,t,r):R(t,r)}T.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return T(n,a,r)},{})};var ft=T,de=ft,ht=Object.create,D=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,mt=Object.getOwnPropertyNames,Pt=Object.getPrototypeOf,vt=Object.prototype.hasOwnProperty,bt=(e,t)=>{for(var r in t)D(e,r,{get:t[r],enumerable:!0})},ye=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mt(t))!vt.call(e,a)&&a!==r&&D(e,a,{get:()=>t[a],enumerable:!(n=_t(t,a))||n.enumerable});return e},Y=(e,t,r)=>(r=e!=null?ht(Pt(e)):{},ye(!e||!e.__esModule?D(r,"default",{value:e,enumerable:!0}):r,e)),gt=e=>ye(D({},"__esModule",{value:!0}),e),fe={};bt(fe,{callPlayer:()=>Dt,getConfig:()=>Lt,getSDK:()=>$t,isBlobUrl:()=>kt,isMediaStream:()=>Ut,lazy:()=>Tt,omit:()=>Nt,parseEndTime:()=>jt,parseStartTime:()=>At,queryString:()=>It,randomString:()=>Rt,supportsWebKitPresentationMode:()=>Ht});var I=gt(fe),wt=Y(x),Ot=Y(Qe),St=Y(de);const Tt=e=>wt.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),xt=/[?&#](?:start|t)=([0-9hms]+)/,Ct=/[?&#]end=([0-9hms]+)/,F=/(\d+)(h|m|s)/g,Et=/^\d+$/;function he(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(F))return Mt(n);if(Et.test(n))return parseInt(n)}}function Mt(e){let t=0,r=F.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=F.exec(e)}return t}function At(e){return he(e,xt)}function jt(e){return he(e,Ct)}function Rt(){return Math.random().toString(36).substr(2,5)}function It(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function z(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 w={},$t=function(t,r,n=null,a=()=>!0,o=Ot.default){const y=z(r);return y&&a(y)?Promise.resolve(y):new Promise((f,u)=>{if(w[t]){w[t].push({resolve:f,reject:u});return}w[t]=[{resolve:f,reject:u}];const g=b=>{w[t].forEach(C=>C.resolve(b))};if(n){const b=window[n];window[n]=function(){b&&b(),g(z(r))}}o(t,b=>{b?(w[t].forEach(C=>C.reject(b)),w[t]=null):n||g(z(r))})})};function Lt(e,t){return(0,St.default)(t.config,e.config)}function Nt(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 Dt(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 Ut(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function kt(e){return/^blob:/.test(e)}function Ht(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var J=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Vt=Object.getOwnPropertyNames,qt=Object.prototype.hasOwnProperty,Ft=(e,t)=>{for(var r in t)J(e,r,{get:t[r],enumerable:!0})},Bt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Vt(t))!qt.call(e,a)&&a!==r&&J(e,a,{get:()=>t[a],enumerable:!(n=zt(t,a))||n.enumerable});return e},Xt=e=>Bt(J({},"__esModule",{value:!0}),e),_e={};Ft(_e,{AUDIO_EXTENSIONS:()=>Z,DASH_EXTENSIONS:()=>je,FLV_EXTENSIONS:()=>Re,HLS_EXTENSIONS:()=>Q,MATCH_URL_DAILYMOTION:()=>Ce,MATCH_URL_FACEBOOK:()=>ge,MATCH_URL_FACEBOOK_WATCH:()=>we,MATCH_URL_KALTURA:()=>Ae,MATCH_URL_MIXCLOUD:()=>Ee,MATCH_URL_MUX:()=>be,MATCH_URL_SOUNDCLOUD:()=>Pe,MATCH_URL_STREAMABLE:()=>Oe,MATCH_URL_TWITCH_CHANNEL:()=>xe,MATCH_URL_TWITCH_VIDEO:()=>Te,MATCH_URL_VIDYARD:()=>Me,MATCH_URL_VIMEO:()=>ve,MATCH_URL_WISTIA:()=>Se,MATCH_URL_YOUTUBE:()=>B,VIDEO_EXTENSIONS:()=>G,canPlay:()=>Kt});var me=Xt(_e),ne=I;const B=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Pe=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,ve=/vimeo\.com\/(?!progressive_redirect).+/,be=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,ge=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,we=/^https?:\/\/fb\.watch\/.+$/,Oe=/streamable\.com\/([a-z0-9]+)$/,Se=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Te=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,xe=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Ce=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Ee=/mixcloud\.com\/([^/]+\/[^/]+)/,Me=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Ae=/^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-_].*)$/,Z=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,G=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Q=/\.(m3u8)($|\?)/i,je=/\.(mpd)($|\?)/i,Re=/\.(flv)($|\?)/i,X=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&X(t)||X(t.src))return!0;return!1}return(0,ne.isMediaStream)(e)||(0,ne.isBlobUrl)(e)?!0:Z.test(e)||G.test(e)||Q.test(e)||je.test(e)||Re.test(e)},Kt={youtube:e=>e instanceof Array?e.every(t=>B.test(t)):B.test(e),soundcloud:e=>Pe.test(e)&&!Z.test(e),vimeo:e=>ve.test(e)&&!G.test(e)&&!Q.test(e),mux:e=>be.test(e),facebook:e=>ge.test(e)||we.test(e),streamable:e=>Oe.test(e),wistia:e=>Se.test(e),twitch:e=>Te.test(e)||xe.test(e),dailymotion:e=>Ce.test(e),mixcloud:e=>Ee.test(e),vidyard:e=>Me.test(e),kaltura:e=>Ae.test(e),file:X};var ee=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Yt=Object.getOwnPropertyNames,Jt=Object.prototype.hasOwnProperty,Zt=(e,t)=>{for(var r in t)ee(e,r,{get:t[r],enumerable:!0})},Gt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Yt(t))!Jt.call(e,a)&&a!==r&&ee(e,a,{get:()=>t[a],enumerable:!(n=Wt(t,a))||n.enumerable});return e},Qt=e=>Gt(ee({},"__esModule",{value:!0}),e),Ie={};Zt(Ie,{default:()=>tr});var er=Qt(Ie),P=I,_=me,tr=[{key:"youtube",name:"YouTube",canPlay:_.canPlay.youtube,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./YouTube-BAYKouHS.cjs")).then(e=>e.YouTube))},{key:"soundcloud",name:"SoundCloud",canPlay:_.canPlay.soundcloud,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./SoundCloud-C6R6E6Zc.cjs")).then(e=>e.SoundCloud))},{key:"vimeo",name:"Vimeo",canPlay:_.canPlay.vimeo,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Vimeo-J1l_SU2E.cjs")).then(e=>e.Vimeo))},{key:"mux",name:"Mux",canPlay:_.canPlay.mux,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Mux-C6TwZeaq.cjs")).then(e=>e.Mux))},{key:"facebook",name:"Facebook",canPlay:_.canPlay.facebook,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Facebook-DoKw-XxT.cjs")).then(e=>e.Facebook))},{key:"streamable",name:"Streamable",canPlay:_.canPlay.streamable,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Streamable-DZO95CiT.cjs")).then(e=>e.Streamable))},{key:"wistia",name:"Wistia",canPlay:_.canPlay.wistia,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Wistia-CudQyDHM.cjs")).then(e=>e.Wistia))},{key:"twitch",name:"Twitch",canPlay:_.canPlay.twitch,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Twitch-B17oKtD0.cjs")).then(e=>e.Twitch))},{key:"dailymotion",name:"DailyMotion",canPlay:_.canPlay.dailymotion,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./DailyMotion-CpZExcrg.cjs")).then(e=>e.DailyMotion))},{key:"mixcloud",name:"Mixcloud",canPlay:_.canPlay.mixcloud,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Mixcloud-C1Boh2Bm.cjs")).then(e=>e.Mixcloud))},{key:"vidyard",name:"Vidyard",canPlay:_.canPlay.vidyard,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Vidyard-s1MMcaRm.cjs")).then(e=>e.Vidyard))},{key:"kaltura",name:"Kaltura",canPlay:_.canPlay.kaltura,lazyPlayer:(0,P.lazy)(()=>Promise.resolve().then(()=>require("./Kaltura-CK6JHUZC.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-D9az_lc_.cjs")).then(e=>e.FilePlayer))}],oe=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rr(e,t){return!!(e===t||oe(e)&&oe(t))}function ar(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!rr(e[r],t[r]))return!1;return!0}function nr(e,t){t===void 0&&(t=ar);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 or=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ir=j.getAugmentedNamespace(or);var sr=Object.create,U=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,cr=Object.getOwnPropertyNames,ur=Object.getPrototypeOf,pr=Object.prototype.hasOwnProperty,dr=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},$e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of cr(t))!pr.call(e,a)&&a!==r&&U(e,a,{get:()=>t[a],enumerable:!(n=lr(t,a))||n.enumerable});return e},yr=(e,t,r)=>(r=e!=null?sr(ur(e)):{},$e(!e||!e.__esModule?U(r,"default",{value:e,enumerable:!0}):r,e)),fr=e=>$e(U({},"__esModule",{value:!0}),e),Le={};dr(Le,{defaultProps:()=>mr,propTypes:()=>_r});var Ne=fr(Le),hr=yr(Ye.propTypesExports);const{string:p,bool:m,number:O,array:V,oneOfType:E,shape:v,object:h,func:c,node:ie}=hr.default,_r={url:E([p,V,h]),playing:m,loop:m,controls:m,volume:O,muted:m,playbackRate:O,width:E([p,O]),height:E([p,O]),style:h,progressInterval:O,playsinline:m,pip:m,stopOnUnmount:m,light:E([m,p,h]),playIcon:ie,previewTabIndex:O,previewAriaLabel:p,fallback:ie,oEmbedUrl:p,wrapper:E([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:V,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:V}),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=()=>{},mr={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 Pr=Object.create,$=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,br=Object.getOwnPropertyNames,gr=Object.getPrototypeOf,wr=Object.prototype.hasOwnProperty,Or=(e,t,r)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sr=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},De=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of br(t))!wr.call(e,a)&&a!==r&&$(e,a,{get:()=>t[a],enumerable:!(n=vr(t,a))||n.enumerable});return e},Ue=(e,t,r)=>(r=e!=null?Pr(gr(e)):{},De(!e||!e.__esModule?$(r,"default",{value:e,enumerable:!0}):r,e)),Tr=e=>De($({},"__esModule",{value:!0}),e),l=(e,t,r)=>(Or(e,typeof t!="symbol"?t+"":t,r),r),ke={};Sr(ke,{default:()=>k});var xr=Tr(ke),se=Ue(x),Cr=Ue(ue.reactFastCompare),He=Ne,Er=I;const Mr=5e3;class k extends se.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:g,disableDeferredLoading:b}=this.props;if(!(0,Cr.default)(t.url,r)){if(this.isLoading&&!g.forceLoad&&!b&&!(0,Er.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},Mr));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?se.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(k,"displayName","Player");l(k,"propTypes",He.propTypes);l(k,"defaultProps",He.defaultProps);var Ar=Object.create,L=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,Rr=Object.getOwnPropertyNames,Ir=Object.getPrototypeOf,$r=Object.prototype.hasOwnProperty,Lr=(e,t,r)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nr=(e,t)=>{for(var r in t)L(e,r,{get:t[r],enumerable:!0})},ze=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Rr(t))!$r.call(e,a)&&a!==r&&L(e,a,{get:()=>t[a],enumerable:!(n=jr(t,a))||n.enumerable});return e},N=(e,t,r)=>(r=e!=null?Ar(Ir(e)):{},ze(!e||!e.__esModule?L(r,"default",{value:e,enumerable:!0}):r,e)),Dr=e=>ze(L({},"__esModule",{value:!0}),e),s=(e,t,r)=>(Lr(e,typeof t!="symbol"?t+"":t,r),r),Ve={};Nr(Ve,{createReactPlayer:()=>Xr});var Ur=Dr(Ve),S=N(x),kr=N(de),q=N(ir),le=N(ue.reactFastCompare),A=Ne,qe=I,Hr=N(xr);const zr=(0,qe.lazy)(()=>Promise.resolve().then(()=>require("./Preview-B8HyPnfR.cjs")).then(e=>e.Preview)),Vr=typeof window<"u"&&window.document&&typeof document<"u",qr=typeof j.commonjsGlobal<"u"&&j.commonjsGlobal.window&&j.commonjsGlobal.window.document,Fr=Object.keys(A.propTypes),Br=Vr||qr?S.Suspense:()=>null,M=[],Xr=(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,q.default)(n=>{for(const a of[...M,...e])if(a.canPlay(n))return a;return t||null})),s(this,"getConfig",(0,q.default)((n,a)=>{const{config:o}=this.props;return kr.default.all([A.defaultProps.config,A.defaultProps.config[a]||{},o,o[a]||{}])})),s(this,"getAttributes",(0,q.default)(n=>(0,qe.omit)(this.props,Fr))),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(Hr.default,{...this.props,key:a.key,ref:this.references.player,config:o,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,le.default)(this.props,n)||!(0,le.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(zr,{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:g}=this.state,b=this.getAttributes(n),C=typeof u=="string"?this.references.wrapper:void 0;return S.default.createElement(u,{ref:C,style:{...a,width:o,height:y},...b},S.default.createElement(Br,{fallback:f},g?this.renderPreview(n):this.renderActivePlayer(n)))}},s(r,"displayName","ReactPlayer"),s(r,"propTypes",A.propTypes),s(r,"defaultProps",A.defaultProps),s(r,"addCustomPlayer",n=>{M.push(n)}),s(r,"removeCustomPlayers",()=>{M.length=0}),s(r,"canPlay",n=>{for(const a of[...M,...e])if(a.canPlay(n))return!0;return!1}),s(r,"canEnablePIP",n=>{for(const a of[...M,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var Kr=Object.create,H=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyNames,Jr=Object.getPrototypeOf,Zr=Object.prototype.hasOwnProperty,Gr=(e,t)=>{for(var r in t)H(e,r,{get:t[r],enumerable:!0})},Fe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Yr(t))!Zr.call(e,a)&&a!==r&&H(e,a,{get:()=>t[a],enumerable:!(n=Wr(t,a))||n.enumerable});return e},Qr=(e,t,r)=>(r=e!=null?Kr(Jr(e)):{},Fe(!e||!e.__esModule?H(r,"default",{value:e,enumerable:!0}):r,e)),ea=e=>Fe(H({},"__esModule",{value:!0}),e),Be={};Gr(Be,{default:()=>na});var ta=ea(Be),K=Qr(er),ra=Ur;const aa=K.default[K.default.length-1];var na=(0,ra.createReactPlayer)(K.default,aa);const oa=j.getDefaultExportFromCjs(ta),ia="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",sa=({thumbnail:e})=>i.jsxs(Ge,{children:[i.jsx("img",{src:e,className:"section__thumbnail",alt:"Thumbnail"}),i.jsx("img",{src:ia,className:"section__play",alt:"Play"})]}),la=x.forwardRef(({video:e,thumbnail:t},r)=>{const n=Je.useDetectMobile();return i.jsx(oa,{url:e,playing:!0,controls:!0,width:n?"100%":"31.25rem",height:n?"100%":"18.75rem",light:!0,playIcon:i.jsx(sa,{thumbnail:t})})}),ca=W.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: ${ce.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
|
+
`,ua=x.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(ca,{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(Xe,{className:"section__text-input",placeholder:n,prefix:i.jsx(Ke,{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(te,{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(te,{tags:a})})]}),i.jsx("div",{className:"section__right",children:i.jsx(la,{video:y,thumbnail:f})})]}));exports.SearchSection=ua;exports.patterns=me;exports.utils=I;
|