@soul-refiner/design-system 2.14.128 → 2.14.130
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/components/editor/constants.js +1 -1
- package/dist/components/editor/context.js +1 -1
- package/dist/components/editor/editor.js +2 -2
- package/dist/components/editor/plugins/blocks/audio.js +1 -0
- package/dist/components/editor/plugins/blocks/blocks.js +1 -1
- package/dist/components/editor/simple_editor/navbar.js +4 -4
- package/dist/components/editor/simple_editor/simple_editor.js +1 -1
- package/dist/components/media/audio-player/audio-player.js +1 -1
- package/dist/components/media/audio-playlist/audio-playlist.js +4 -4
- package/dist/components/media/audio-playlist/playlist-item.js +3 -3
- package/dist/components/media/audio-preview/audio-preview.js +3 -3
- package/dist/components/media/video-player/misc.js +1 -1
- package/dist/components/media/video-player/playlist-item.js +3 -3
- package/dist/components/media/video-player/video.js +1 -1
- package/dist/src/components/editor/constants.d.ts +1 -0
- package/dist/src/components/editor/constants.d.ts.map +1 -1
- package/dist/src/components/editor/context.d.ts +4 -0
- package/dist/src/components/editor/context.d.ts.map +1 -1
- package/dist/src/components/editor/editor.d.ts +5 -1
- package/dist/src/components/editor/editor.d.ts.map +1 -1
- package/dist/src/components/editor/plugins/blocks/audio.d.ts +5 -0
- package/dist/src/components/editor/plugins/blocks/audio.d.ts.map +1 -0
- package/dist/src/components/editor/plugins/blocks/blocks.d.ts.map +1 -1
- package/dist/src/components/editor/simple_editor/navbar.d.ts +5 -1
- package/dist/src/components/editor/simple_editor/navbar.d.ts.map +1 -1
- package/dist/src/components/editor/simple_editor/simple_editor.d.ts +5 -1
- package/dist/src/components/editor/simple_editor/simple_editor.d.ts.map +1 -1
- package/dist/src/components/media/audio-player/audio-player.d.ts +3 -3
- package/dist/src/components/media/audio-player/audio-player.d.ts.map +1 -1
- package/dist/src/components/media/audio-playlist/playlist-item.d.ts +2 -2
- package/dist/src/components/media/audio-playlist/playlist-item.d.ts.map +1 -1
- package/dist/src/components/media/common.d.ts +5 -5
- package/dist/src/components/media/common.d.ts.map +1 -1
- package/dist/src/components/media/video-player/playlist-item.d.ts +2 -2
- package/dist/src/components/media/video-player/playlist-item.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.BUTTON_LINK="button-link",exports.BUTTON_SUBSCRIBE="button-subscribe",exports.COLORS=["var(--color-turquoise-5)","var(--color-green-5)","var(--color-blue-5)","var(--color-purple-5)","var(--color-yellow-5)","var(--color-orange-5)","var(--color-red-5)"],exports.ELEMENT_BLOCKQUOTE="blockquote",exports.ELEMENT_BUTTON="button",exports.ELEMENT_H1="h1",exports.ELEMENT_H2="h2",exports.ELEMENT_H3="h3",exports.ELEMENT_H4="h4",exports.ELEMENT_H5="h5",exports.ELEMENT_H6="h6",exports.ELEMENT_HR="hr",exports.ELEMENT_IMAGE="img",exports.ELEMENT_LINK="a",exports.ELEMENT_MEDIA="media",exports.ELEMENT_MEDIA_EMBED="media_embed",exports.ELEMENT_OL="ol",exports.ELEMENT_PARAGRAPH="p",exports.ELEMENT_QA="q-n-a",exports.ELEMENT_TABLE="table",exports.ELEMENT_TD="td",exports.ELEMENT_TH="th",exports.ELEMENT_TODO_LI="todo_li",exports.ELEMENT_TR="tr",exports.ELEMENT_UL="ul",exports.ELEMENT_VIDEO="video",exports.MARK_BOLD="bold",exports.MARK_CODE="code",exports.MARK_ITALIC="italic",exports.MARK_LINK="link",exports.MARK_STRIKETHROUGH="strikethrough",exports.MARK_SUBSCRIPT="subscript",exports.MARK_SUPERSCRIPT="superscript",exports.MARK_UNDERLINE="underline",exports.PLACEHOLDER="This is a placeholder";
|
|
1
|
+
"use strict";exports.BUTTON_LINK="button-link",exports.BUTTON_SUBSCRIBE="button-subscribe",exports.COLORS=["var(--color-turquoise-5)","var(--color-green-5)","var(--color-blue-5)","var(--color-purple-5)","var(--color-yellow-5)","var(--color-orange-5)","var(--color-red-5)"],exports.ELEMENT_AUDIO="audio",exports.ELEMENT_BLOCKQUOTE="blockquote",exports.ELEMENT_BUTTON="button",exports.ELEMENT_H1="h1",exports.ELEMENT_H2="h2",exports.ELEMENT_H3="h3",exports.ELEMENT_H4="h4",exports.ELEMENT_H5="h5",exports.ELEMENT_H6="h6",exports.ELEMENT_HR="hr",exports.ELEMENT_IMAGE="img",exports.ELEMENT_LINK="a",exports.ELEMENT_MEDIA="media",exports.ELEMENT_MEDIA_EMBED="media_embed",exports.ELEMENT_OL="ol",exports.ELEMENT_PARAGRAPH="p",exports.ELEMENT_QA="q-n-a",exports.ELEMENT_TABLE="table",exports.ELEMENT_TD="td",exports.ELEMENT_TH="th",exports.ELEMENT_TODO_LI="todo_li",exports.ELEMENT_TR="tr",exports.ELEMENT_UL="ul",exports.ELEMENT_VIDEO="video",exports.MARK_BOLD="bold",exports.MARK_CODE="code",exports.MARK_ITALIC="italic",exports.MARK_LINK="link",exports.MARK_STRIKETHROUGH="strikethrough",exports.MARK_SUBSCRIPT="subscript",exports.MARK_SUPERSCRIPT="superscript",exports.MARK_UNDERLINE="underline",exports.PLACEHOLDER="This is a placeholder";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=t(require("react")).default.createContext({audioLoader:void 0,commentInputLoader:()=>e.jsx(e.Fragment,{}),commentLoader:()=>e.jsx(e.Fragment,{}),handleAudioClick:()=>{},handleVideoClick:()=>{},imageSrcLoader:async()=>"",videoTitleLoader:()=>e.jsx(e.Fragment,{}),filterComponent:void 0,defaultFilter:"",hideShowAnswersButton:!1,showAnswersBelowInput:!1});exports.EditorContext=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),o=require("styled-components"),t=require("@udecode/plate-common"),i=require("./constants.js"),r=require("./context.js"),n=require("./navbar/navbar.js"),l=require("./plugins/plate.js"),a=require("./plugins/blocks/blocks.js"),s=require("./plugins/leafs/leafs.js"),d=require("./plugins/marks/marks.js"),u=require("./plugins/utils/utils.js");const c=t.createPlugins([...a.blocks,...s.leafs,...d.marks,...u.utils],{components:l.plateUI}),p=o.styled.div`
|
|
3
3
|
* {
|
|
4
4
|
font-family: var(--font-inter);
|
|
5
5
|
outline: none;
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
max-width: 864px;
|
|
72
72
|
width: 100%;
|
|
73
73
|
margin: 0 auto;
|
|
74
|
-
`;exports.Editor=({commentInputLoader:
|
|
74
|
+
`;exports.Editor=({audioLoader:o,commentInputLoader:l,commentLoader:a,editable:s,handleAudioClick:d,handleVideoClick:u,imageSrcLoader:m,onChange:h,previousContent:g,defaultFilter:f,videoTitleLoader:x,filterComponent:v,hideShowAnswersButton:y,showAnswersBelowInput:C})=>e.jsx(r.EditorContext.Provider,{value:{audioLoader:o,commentInputLoader:l,commentLoader:a,handleAudioClick:d,handleVideoClick:u,imageSrcLoader:m,videoTitleLoader:x,defaultFilter:f,filterComponent:v,hideShowAnswersButton:y,showAnswersBelowInput:C},children:e.jsx(t.Plate,{id:"main",initialValue:g,onChange:h,plugins:c,children:e.jsxs(p,{children:[s&&e.jsx(n.EditorBar,{}),e.jsx(t.PlateContent,{id:"main",autoFocus:!0,placeholder:i.PLACEHOLDER,readOnly:!s,spellCheck:!0,onContextMenu:e=>e.preventDefault(),onCopy:()=>{if("clipboard"in navigator)return navigator.clipboard.writeText("")}})]})})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@udecode/plate-common"),i=require("../../constants.js"),o=require("../../context.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=n(t);const u=d.default.forwardRef(function({editor:t,element:i,...n},u){const a=!r.useEditorReadOnly(),s=i.id,c="string"==typeof s?parseInt(s,10):s,{handleAudioClick:l,audioLoader:E}=d.default.useContext(o.EditorContext);return e.jsx(r.PlateElement,{asChild:!0,editor:t,element:i,ref:u,...n,children:e.jsx("div",{contentEditable:!1,onClick:()=>{l&&!a&&void 0!==c&&l(c)},style:{cursor:a?"initial":"pointer"},children:E&&void 0!==c&&e.jsx(E,{courseMediaId:c})})})}),a=r.createPluginFactory({key:i.ELEMENT_AUDIO,type:i.ELEMENT_AUDIO,isElement:!0,isVoid:!0,component:u});exports.AudioElement=u,exports.createAudioPlugin=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../constants.js"),
|
|
1
|
+
"use strict";var e=require("../../constants.js"),r=require("@udecode/plate"),t=require("@udecode/plate-media"),i=require("@udecode/plate-table"),a=require("./text.js"),u=require("./buttons.js"),l=require("./qa.js"),n=require("./video.js");const c=[require("./audio.js").createAudioPlugin(),u.createButtonsPlugin(),r.createBlockquotePlugin(),r.createCodeBlockPlugin(),r.createHorizontalRulePlugin(),t.createImagePlugin({options:{disableUploadInsert:!0,disableEmbedInsert:!0}}),l.createQAPlugin(),r.createTextIndentPlugin(),r.createIndentListPlugin({inject:{props:{validTypes:[e.ELEMENT_PARAGRAPH,e.ELEMENT_H1,e.ELEMENT_H2,e.ELEMENT_H3,e.ELEMENT_H4,e.ELEMENT_H5,e.ELEMENT_H6,e.ELEMENT_OL,e.ELEMENT_UL]}}}),r.createListPlugin(),t.createMediaEmbedPlugin(),a.createParagraphPlugin(),a.createHOnePlugin(),a.createHTwoPlugin(),a.createHThreePlugin(),a.createHFourPlugin(),a.createHFivePlugin(),a.createHSixPlugin(),r.createResetNodePlugin(),i.createTablePlugin(),n.createVideoTitlePlugin()];exports.blocks=c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("styled-components"),n=require("@udecode/plate-common"),o=require("@udecode/plate-media"),i=require("../../feedback/tooltip/tooltip.js"),c=require("../navbar/alignment_dropdown.js"),s=require("../navbar/style_dropdown.js"),l=require("../../../icons/basic/bold.js"),d=require("../../../icons/basic/image.js"),a=require("../../../icons/basic/italic.js"),u=require("../../../icons/basic/link.js"),p=require("../../../icons/text/list_ordered.js"),x=require("../../../icons/text/list_unordered.js"),j=require("../../../icons/arrow/redo.js"),g=require("../../../icons/basic/underline.js"),h=require("../../../icons/arrow/undo.js"),y=require("../../../icons/audio_video/microphone.js"),f=require("../constants.js"),v=require("../styles/menu_button.js");function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=M(t);const k="undefined"!=typeof window?window.SpeechRecognition||window.webkitSpeechRecognition:void 0,m=r.styled.nav`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 12px;
|
|
4
4
|
justify-content: center;
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
border-radius: 8px 8px 0px 0px;
|
|
11
11
|
box-shadow: var(--elevation-1);
|
|
12
|
-
`,
|
|
12
|
+
`,w=r.styled.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
gap: 16px;
|
|
15
15
|
align-items: center;
|
|
16
16
|
width: fit-content;
|
|
17
17
|
flex-shrink: 0;
|
|
18
|
-
`,
|
|
18
|
+
`,R=r.styled.div`
|
|
19
19
|
width: 1px;
|
|
20
20
|
height: 28px;
|
|
21
21
|
background-color: var(--color-grey-9);
|
|
22
|
-
`;exports.EditorBar=({handleUploadImage:t})=>{const
|
|
22
|
+
`;exports.EditorBar=({handleUploadImage:t,showLink:r=!0,showImage:M=!0})=>{const T=n.useEditorRef("main"),L=E.default.useRef(null),[b,A]=E.default.useState(!1),q=E.default.useRef(null),_=E.default.useRef(""),N=n.useEditorSelector(e=>n.isMarkActive(e,f.MARK_BOLD),[]),B=n.useEditorSelector(e=>n.isMarkActive(e,f.MARK_ITALIC),[]),I=n.useEditorSelector(e=>n.isMarkActive(e,f.MARK_UNDERLINE),[]),S=n.useEditorSelector(e=>n.isMarkActive(e,f.MARK_LINK),[]),C=n.useEditorSelector(e=>n.someNode(e,{match:{type:n.getPluginType(e,f.ELEMENT_OL)}}),[]),U=n.useEditorSelector(e=>n.someNode(e,{match:{type:n.getPluginType(e,f.ELEMENT_UL)}}),[]),z=E.default.useRef(T.selection);E.default.useEffect(()=>{T.selection&&(z.current=T.selection)},[T.selection]),E.default.useEffect(()=>()=>{q.current&&(q.current.stop(),q.current=null)},[]);const $=E.default.useCallback(e=>{if(!e)return;const t=z.current;t?(T.select(t),T.insertText(e+" ")):n.insertNode(T,{type:f.ELEMENT_PARAGRAPH,children:[{text:e+" "}]})},[T]);return e.jsxs(m,{"aria-label":"editor-navigation",children:[e.jsxs(w,{children:[e.jsx(i.Tooltip,{content:"Undo",place:"top",children:e.jsx(v.MenuButton,{$active:!1,onClick:()=>T.undo(),children:e.jsx(h.Undo,{size:24,color:"grey-5"})})}),e.jsx(i.Tooltip,{content:"Redo",place:"top",children:e.jsx(v.MenuButton,{$active:!1,onClick:()=>T.redo(),children:e.jsx(j.Redo,{size:24,color:"grey-5"})})})]}),e.jsx(R,{}),e.jsx(w,{children:e.jsx(s.StyleDropdown,{editorRef:T})}),e.jsx(R,{}),e.jsx(w,{children:e.jsx(v.MenuButton,{$active:!1,as:"div",children:e.jsx(c.AlignmentDropdown,{editorRef:T})})}),e.jsx(R,{}),e.jsxs(w,{children:[e.jsx(i.Tooltip,{content:"Bold",place:"top",children:e.jsx(v.MenuButton,{$active:N,onClick:()=>{T&&n.toggleMark(T,{key:f.MARK_BOLD})},children:e.jsx(l.Bold,{size:24,color:"grey-5"})})}),e.jsx(i.Tooltip,{content:"Italic",place:"top",children:e.jsx(v.MenuButton,{$active:B,onClick:()=>{T&&n.toggleMark(T,{key:f.MARK_ITALIC})},children:e.jsx(a.Italic,{size:24,color:"grey-5"})})}),e.jsx(i.Tooltip,{content:"Underline",place:"top",children:e.jsx(v.MenuButton,{$active:I,onClick:()=>{T&&n.toggleMark(T,{key:f.MARK_UNDERLINE})},children:e.jsx(g.Underline,{size:24,color:"grey-5"})})})]}),e.jsx(R,{}),e.jsxs(w,{children:[r&&e.jsx(i.Tooltip,{content:"Link",place:"top",children:e.jsx(v.MenuButton,{$active:S,onClick:()=>{const e=window.prompt("Enter URL:");e&&T&&n.toggleMark(T,{key:f.MARK_LINK,value:{url:e}})},children:e.jsx(u.Link,{size:24,color:"grey-5"})})}),M&&e.jsx(i.Tooltip,{content:"Image",place:"top",children:e.jsx(v.MenuButton,{$active:!1,as:"label",onChange:async()=>{const e=L.current?.files;if(!e)return;const r=await t(e);r&&(o.insertImage(T,r),n.insertNode(T,{type:f.ELEMENT_PARAGRAPH,children:[{text:" "}]}))},children:e.jsxs("div",{children:[e.jsx("input",{accept:"image/*",ref:L,style:{display:"none"},type:"file"}),e.jsx(d.Image,{size:24,color:"grey-5"})]})})}),k&&e.jsx(i.Tooltip,{content:b?"Stop and insert speech":"Speech to text",place:"top",children:e.jsx(v.MenuButton,{$active:b,onClick:()=>{if(!T)return;if(b)return q.current?void q.current.stop():void A(!1);if(q.current&&!b&&(q.current.stop(),q.current=null),!k)return;_.current="";const e=new k;e.continuous=!0,e.interimResults=!1,e.lang=navigator.language||"en-US",e.onresult=e=>{for(let t=e.resultIndex;t<e.results.length;t++){const r=e.results[t];if(r.isFinal&&r.length>0){const e=r[0].transcript;"string"==typeof e&&(_.current+=e)}}},e.onend=()=>{if(q.current===e){q.current=null,A(!1);const e=_.current.trim();_.current="",e&&$(e)}},e.onerror=e=>{console.error("Speech recognition error:",e.error),q.current=null,A(!1),_.current="","not-allowed"!==e.error&&"service-not-allowed"!==e.error||console.warn("Microphone access denied or not available")};try{e.start(),q.current=e,A(!0)}catch{A(!1)}},"aria-pressed":b,children:e.jsx(y.Microphone,{size:24,color:"grey-5"})})})]}),e.jsx(R,{}),e.jsxs(w,{children:[e.jsx(i.Tooltip,{content:"Unordered List",place:"top",children:e.jsx(v.MenuButton,{$active:U,onClick:()=>{T&&n.toggleNodeType(T,{activeType:n.getPluginType(T,f.ELEMENT_UL)})},children:e.jsx(x.ListUnordered,{size:24,color:"grey-5"})})}),e.jsx(i.Tooltip,{content:"Ordered List",place:"top",children:e.jsx(v.MenuButton,{$active:C,onClick:()=>{T&&n.toggleNodeType(T,{activeType:n.getPluginType(T,f.ELEMENT_OL)})},children:e.jsx(p.ListOrdered,{size:24,color:"grey-5"})})})]})]})};
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
& > [data-slate-editor='true'] > * {
|
|
71
71
|
margin: 24px 0px;
|
|
72
72
|
}
|
|
73
|
-
`;exports.SimpleEditor=({editable:r,handleUploadImage:o,onChange:p,validation:x,sx:j,validationMessage:f,placeholder:q="",previousContent:y=[{type:"p",children:[{text:""}]}]})=>{const[
|
|
73
|
+
`;exports.SimpleEditor=({editable:r,handleUploadImage:o,onChange:p,validation:x,sx:j,validationMessage:f,placeholder:q="",previousContent:y=[{type:"p",children:[{text:""}]}],showLink:v=!0,showImage:b=!0})=>{const[w,$]=h.default.useState([]);return e.jsxs(e.Fragment,{children:[e.jsx(s.Modal,{controlledOpen:w.length>0,children:e.jsx(s.Modal.Content,{footer:e.jsx(n.Box,{$display:"flex",$justify:"center",$gap:16,sx:"position: relative; width: 100%;",children:e.jsx(c.Button,{fluid:!0,size:"small",type:"primary",onClick:()=>$([]),children:"Close"})}),header:e.jsx(l.H,{$bold:!0,$color:"grey-2",$fontSize:20,children:"Can't read files"}),children:e.jsx(n.Box,{$align:"flex-start",$display:"flex",$dir:"column",$gap:32,sx:"width: 500px",children:e.jsx(d.P,{$textClampLines:10,children:f})})})}),e.jsx(a.Plate,{id:"main",initialValue:y,onChange:p,plugins:t.plugins,children:e.jsxs(m,{children:[r&&e.jsx(i.EditorBar,{handleUploadImage:async e=>{$([]);const r=[];if(x)for(let o=0;o<e.length;o++){const a=e[o],t=await u.validateFile(a,x);if(t.length>0){r.push(...t);break}}return r?.length>0?($(r),""):await o(e)},showLink:v,showImage:b}),e.jsx(g,{$sx:j,children:e.jsx(a.PlateContent,{id:"main",autoFocus:!0,placeholder:q,readOnly:!r,spellCheck:!0})})]})})]})};
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
`;exports.AudioPlayer=({autoPlay:r,autoPlayAfterSrcChange:o,onListen:t,onPause:x,onPlay:v,onSeek:
|
|
83
|
+
`;exports.AudioPlayer=({autoPlay:r,autoPlayAfterSrcChange:o,onListen:t,onPause:x,onPlay:v,onSeek:A,playing:P,progress:S,id:R,src:$,title:q="Audio Episode",thumbnail:I="/images/default_card_image.png",playerRef:L,setPlayerRef:T})=>{const[E,N]=f.default.useState(null),[k,C]=m.useLocalStorage("audio-volume",1),[z,O]=f.default.useState(!1),U=f.default.useRef(null),B=L||E,H=T||N,V=Math.ceil(((B?.audio.current?.duration||0)-S)/60),F=0===V?"":1===V?"Under 1 minute left":2===V?"1 minute left":V+" minutes left";f.default.useEffect(()=>{B?.audio.current?.volume&&(B.audio.current.volume=k),B?.audio.current&&!P?B.audio.current.pause():B?.audio.current&&B.audio.current.play()},[P,B?.audio.current]),f.default.useEffect(()=>{O(!1)},[R]),f.default.useEffect(()=>{if(!B?.audio.current||!S||z)return;const e=B.audio.current,r=()=>{e.currentTime=S,O(!0),P&&e.play(),e.removeEventListener("loadedmetadata",r)};e.readyState>=1?(e.currentTime=S,O(!0),P&&e.play()):e.addEventListener("loadedmetadata",r)},[S,B?.audio.current,z,P,R]);return e.jsx(w,{children:e.jsx(_.default,{autoPlay:r,autoPlayAfterSrcChange:o,customIcons:{forward:e.jsx(n.FastForward30,{color:"grey-9",size:20}),pause:e.jsx(g.NowPlaying,{sx:"width: 20px; height: 20px;"}),play:e.jsx(s.Play,{color:"grey-9",size:20}),rewind:e.jsx(l.Rewind30,{color:"grey-9",size:20}),volume:e.jsx(d.VolumeHigh,{color:"grey-9",size:20}),volumeMute:e.jsx(c.VolumeSlash,{color:"grey-9",size:20})},customAdditionalControls:[e.jsxs(i.Box,{className:"image-title-container",$align:"center",$gap:56,children:[e.jsx(y.default,{alt:"",height:64,src:I||"/images/default_card_image.png",width:64,style:{height:64}}),e.jsxs(i.Box,{sx:"max-width: 250px; height: 52px;",$dir:"column",$gap:16,children:[e.jsx(u.P,{$color:"white",$fontSize:16,$lineHeight:20,$semiBold:!0,children:q||"Audio Episode"}),e.jsx(u.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,$mediumBold:!0,children:F})]})]})],customControlsSection:[a.RHAP_UI.ADDITIONAL_CONTROLS,a.RHAP_UI.MAIN_CONTROLS],customProgressBarSection:[e.jsx(p.AudioProgressBar,{duration:B?.audio.current?.duration||0,progress:S,onSeek:e=>{B?.audio.current&&(B.audio.current.currentTime=B.audio.current.duration*e,A&&A(e))},sx:"width: calc(100vw - 841px);"},`audio-progress-${S}`),a.RHAP_UI.VOLUME_CONTROLS,a.RHAP_UI.CURRENT_TIME,e.jsxs(u.P,{$color:"white",$fontSize:14,children:[" ","/"," "]}),a.RHAP_UI.DURATION],customVolumeControls:[e.jsx(j,{children:e.jsx(b,{ref:U,type:"range",min:"0",max:"1",step:"0.01",volume:k,defaultValue:k.toString(),onInput:e=>{const r=parseFloat(e.target.value);B?.audio.current&&(C(r),B.audio.current.volume=r)}})},"volume-wrapper")],hasDefaultKeyBindings:!1,layout:"horizontal-reverse",listenInterval:h.LISTEN_CALLBACK_INTERVAL,onListen:()=>{B?.audio.current?.currentTime&&t&&t(B.audio.current.currentTime)},onPause:x,onPlay:v,progressJumpSteps:{backward:h.FF_INTERVAL,forward:h.FF_INTERVAL},ref:H,src:Array.isArray($)?$[0]:$,children:Array.isArray($)&&$.length>1&&$.map((r,o)=>e.jsx("source",{src:r},o))})})};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),i=require("react"),t=require("next/image"),r=require("styled-components"),n=require("../../atoms/box/box.js"),o=require("../../atoms/typography/heading.js"),a=require("../../../icons/arrow/arrow_up.js"),d=require("../../../icons/arrow/chevron_down.js"),l=require("../audio-player/audio-player.js"),s=require("./playlist-item.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=u(i),x=u(t),c=u(r);const
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("react"),t=require("next/image"),r=require("styled-components"),n=require("../../atoms/box/box.js"),o=require("../../atoms/typography/heading.js"),a=require("../../../icons/arrow/arrow_up.js"),d=require("../../../icons/arrow/chevron_down.js"),l=require("../audio-player/audio-player.js"),s=require("./playlist-item.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=u(i),x=u(t),c=u(r);const g=c.default.div`
|
|
2
2
|
${({$fullscreen:e})=>e?"height: 100vh;\n overflow-y: auto;\n overflow-x: hidden;":"height: 744px;\n overflow: hidden;"}
|
|
3
3
|
width: 100vw;
|
|
4
4
|
position: relative;
|
|
5
5
|
padding-bottom: 24px;
|
|
6
6
|
background-color: ${({$darkMode:e})=>e?"var(--color-grey-0)":"white"};
|
|
7
|
-
`,
|
|
7
|
+
`,h=c.default.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
max-width: 2240px;
|
|
10
10
|
margin: 0 auto;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
z-index: 0;
|
|
18
18
|
}
|
|
19
19
|
${({$sx:e})=>e||""};
|
|
20
|
-
`,
|
|
20
|
+
`,f=c.default.div`
|
|
21
21
|
position: absolute;
|
|
22
22
|
bottom: 0px;
|
|
23
23
|
left: 0px;
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
`,w=c.default.nav`
|
|
53
53
|
position: fixed;
|
|
54
54
|
z-index: 50000;
|
|
55
|
-
`;exports.AudioPlaylist=({activeIndex:i,bannerSx:t,darkMode:r,isPaidUser:u,onProgress:c,playlist:$,playlistSx:b,previewImage:v,showPlayer:j=!0,setMediaItem:k,subtitle:P,title:q})=>{const S="undefined"!=typeof window?window:null,z=$?.[i],[I,M]=p.default.useState(!1),[
|
|
55
|
+
`;exports.AudioPlaylist=({activeIndex:i,bannerSx:t,darkMode:r,isPaidUser:u,onProgress:c,playlist:$,playlistSx:b,previewImage:v,showPlayer:j=!0,setMediaItem:k,subtitle:P,title:q})=>{const S="undefined"!=typeof window?window:null,z=$?.[i],[I,M]=p.default.useState(!1),[_,A]=p.default.useState(!1),[H,E]=p.default.useState(0),[U,B]=p.default.useState(null);p.default.useEffect(()=>{E(void 0!==z?.progress?z.progress:0)},[i,z?.progress]);const C=e=>{if(z&&U?.audio.current){const i=z.duration*e;U.audio.current.currentTime=i,E(i),c&&c(i)}};return e.jsxs(g,{$darkMode:r,$fullscreen:!!u&&I,children:[e.jsxs(h,{$sx:t,children:[e.jsx(x.default,{alt:"thumbnail",height:400,width:S?.innerWidth||500,src:v}),e.jsxs(n.Box,{$dir:"column",sx:"padding: 100px 0px 160px; position: relative; z-index: 2; margin: 0px 160px;",children:[e.jsx(o.H,{$bold:!0,$color:r?"white":"grey-0",$fontSize:64,$lineHeight:96,children:q}),e.jsx(o.H,{$color:r?"grey-8":"grey-3",$fontSize:28,$lineHeight:36,$semiBold:!0,children:P})]})]}),e.jsx(y,{$fullscreen:I,$sx:b,children:$.map((i,t)=>e.jsx(s.PlaylistItem,{darkMode:r,duration:i.duration,isPaidUser:u,itemId:i.id,mediaItemId:z?.id,playing:i.id===z?.id&&_,progress:i.id===z?.id?H:i.progress??0,onPause:()=>A(!1),onPlay:()=>(k(t),void A(!0)),onSeek:C,title:i.title||"Audio Episode",thumbnail:i.thumbnail||"/images/default_card_image.png"},i.id))}),e.jsx(f,{$darkMode:r,$isFullscreen:I,children:u&&e.jsx(m,{onClick:()=>M(e=>!e),children:I?e.jsx(a.ArrowUp,{color:"grey-0",size:24}):e.jsx(d.ChevronDown,{color:r?"white":"grey-0",size:24})})}),z&&j?e.jsx(w,{children:e.jsx(l.AudioPlayer,{playerRef:U,setPlayerRef:B,onListen:e=>{E(e),c&&c(e)},onPause:()=>A(!1),onPlay:()=>A(!0),onSeek:C,playing:_,progress:H,id:z.id,src:z.src,thumbnail:z.thumbnail||"/images/default_card_image.png",title:z.title||"Audio Episode"})}):null]})};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var r=require("react/jsx-runtime"),e=require("next/image"),o=require("styled-components"),i=require("../../atoms/box/box.js"),n=require("../../atoms/typography/paragraph.js"),a=require("../../../icons/audio_video/play_solid.js"),t=require("../audio/progress-bar.js"),s=require("../../../utils/time.js");require("react-h5-audio-player/lib/styles.css");var l=require("./playing_indicator.js");function d(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var c=d(e),g=d(o);const
|
|
2
|
+
"use strict";var r=require("react/jsx-runtime"),e=require("next/image"),o=require("styled-components"),i=require("../../atoms/box/box.js"),n=require("../../atoms/typography/paragraph.js"),a=require("../../../icons/audio_video/play_solid.js"),t=require("../audio/progress-bar.js"),s=require("../../../utils/time.js");require("react-h5-audio-player/lib/styles.css");var l=require("./playing_indicator.js");function d(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var c=d(e),g=d(o);const u=g.default.button`
|
|
3
3
|
padding: 16px 32px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
border: none;
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
${({$darkMode:r,$playing:e})=>r?e?"background-color: var(--color-grey-2);":"background-color: transparent;\n &:hover {\n background-color: var(--color-grey-1);\n }":e?"background-color: var(--color-grey-10);":"background-color: var(--color-grey-9);\n &:hover {\n background-color: var(--color-grey-8);\n }"}
|
|
11
|
-
`,
|
|
11
|
+
`,x=g.default.div`
|
|
12
12
|
padding: 16px;
|
|
13
13
|
appearance: none;
|
|
14
|
-
`;exports.PlaylistItem=({darkMode:e=!0,duration:o,onPause:d,onPlay:g,onSeek:p,playing:h,isPaidUser:y,progress:m,thumbnail:j,itemId
|
|
14
|
+
`;exports.PlaylistItem=({darkMode:e=!0,duration:o,onPause:d,onPlay:g,onSeek:p,playing:h,isPaidUser:y,progress:m,thumbnail:j="/images/default_card_image.png",itemId:f,mediaItemId:$,title:b="Audio Episode"})=>{const k=h?d:g,v=e?"white":"grey-3";return r.jsxs(u,{$darkMode:e,$playing:h,children:[r.jsxs(i.Box,{$gap:24,$dir:"row",$align:"center",children:[r.jsx(c.default,{alt:"",height:64,src:j||"/images/default_card_image.png",width:64,style:{height:64,marginRight:8,borderRadius:8}}),r.jsxs(i.Box,{onClick:()=>y&&k,$align:"center",sx:"flex: 1 1 250px; width: 250px;",children:[y&&(h?r.jsx(x,{onClick:d,children:r.jsx(l.NowPlaying,{sx:`\n width: 24px;\n height: 24px;\n > div {\n ${e?"":"background: var(--color-grey-1)"};\n }\n `})}):r.jsx(x,{onClick:g,children:r.jsx(a.PlaySolid,{color:v,size:24})})),r.jsxs(n.P,{$bold:!0,$color:v,$fontSize:14,$lineHeight:20,$textClampLines:1,sx:"margin-right: 32px;",children:[b,m>0&&m<o&&r.jsx("span",{style:{color:"var(--color-primary-blue-2)",marginLeft:"8px",fontSize:"12px"},children:"●"})]})]})]}),r.jsxs(i.Box,{$align:"center",sx:"flex: 3; margin-left: auto;",children:[r.jsx(n.P,{$color:e?"grey-9":"grey-3",$fontSize:10,$lineHeight:14,$sx:"flex: 0; width: fit-content; min-width: 56px;",children:s.secondsToTimestamp(o)}),r.jsx(t.AudioProgressBar,{sx:"margin-right: auto;",duration:o||0,progress:m,onSeek:r=>{y&&(f===$?p(r):k())}})]})]})};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("next/image"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("next/image"),a=require("styled-components"),t=require("react-h5-audio-player"),i=require("../../atoms/typography/paragraph.js"),s=require("../../../icons/audio_video/pause_solid.js"),n=require("../../../icons/audio_video/play_solid.js"),u=require("../audio/progress-bar.js"),d=require("../constants.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("react-h5-audio-player/lib/styles.css");var c=l(r),p=l(o),g=l(a),x=l(t);const y=({playlist:r,sx:o})=>{const[a,t]=c.default.useState(-1),i=e=>{t(e)};return e.jsx(f,{$sx:o,children:r.map((r,o)=>e.jsx(m,{onPause:()=>i(-1),onPlay:()=>i(o),playing:o===a,...r},`audio-preview-${r.id}`))})},m=({onPause:r,onPlay:o,playing:a,src:l,thumbnail:g="/images/default_card_image.png",title:y="Audio Episode"})=>{const[m,f]=c.default.useState(0),[v,b]=c.default.useState(null);c.default.useEffect(()=>{v?.audio.current&&!a&&v.audio.current.pause()},[a]);return e.jsx(h,{$playing:a,children:e.jsx(x.default,{customIcons:{forward:e.jsx(e.Fragment,{}),pause:e.jsx(s.PauseSolid,{color:"grey-3",size:20}),play:e.jsx(n.PlaySolid,{color:"grey-3",size:20}),rewind:e.jsx(e.Fragment,{})},customAdditionalControls:[e.jsx(p.default,{alt:"",height:64,src:g||"/images/default_card_image.png",width:64,style:{height:64,marginRight:8,borderRadius:8}})],customControlsSection:[t.RHAP_UI.ADDITIONAL_CONTROLS,t.RHAP_UI.MAIN_CONTROLS],customProgressBarSection:[e.jsx(i.P,{$bold:!0,$fontSize:14,$lineHeight:20,$textClampLines:1,sx:"margin-right: 32px;",children:y}),t.RHAP_UI.DURATION,e.jsx(j,{}),e.jsx(u.AudioProgressBar,{duration:v?.audio.current?.duration||0,progress:m,onSeek:e=>{v?.audio.current&&(v.audio.current.currentTime=v.audio.current.duration*e)}},`audio-progress-${m}`)],customVolumeControls:[e.jsx(e.Fragment,{})],hasDefaultKeyBindings:!1,layout:"horizontal-reverse",listenInterval:d.LISTEN_CALLBACK_INTERVAL,onListen:()=>{v?.audio.current?.currentTime&&f(v.audio.current.currentTime)},onPause:r,onPlay:o,progressJumpSteps:{backward:d.FF_INTERVAL,forward:d.FF_INTERVAL},ref:b,src:l})})};m.displayName="AudioPreview.Item",y.Item=m;const f=g.default.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
border-radius: 8px;
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
${({$sx:e})=>e||""}
|
|
40
|
-
`,h=
|
|
40
|
+
`,h=g.default.div`
|
|
41
41
|
padding: 16px 24px;
|
|
42
42
|
${({$playing:e})=>e?"background-color: var(--color-grey-10);":"background-color: var(--color-grey-9);\n &:hover {\n background-color: var(--color-grey-8);\n }"}
|
|
43
|
-
`,j=
|
|
43
|
+
`,j=g.default.div`
|
|
44
44
|
margin-right: 16px;
|
|
45
45
|
`;exports.AudioPreview=y;
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
${({$showAll:t,$orientation:o})=>t&&"horizontal"===o?"\n position: fixed;\n right: 20px;\n z-index: 1000;\n ":""}
|
|
17
|
-
`;exports.ButtonViewAll=({showingAll:o,orientation:e="horizontal",toggleShowingAll:l})=>t.jsx(i,{$showAll:o,$orientation:e,children:t.jsx(r.Button,{onClick:l,size:"small",type:"text",children:o?"Collapse":"View all"})}),exports.TrailerListItem=({trailer:o,title:r,handleSetPlayingTrailer:i})=>t.jsx(e.PlaylistItem,{onClick:()=>i(!0),playable:!0,thumbnail:o.thumbnail,title:`${r} Trailer`});
|
|
17
|
+
`;exports.ButtonViewAll=({showingAll:o,orientation:e="horizontal",toggleShowingAll:l})=>t.jsx(i,{$showAll:o,$orientation:e,children:t.jsx(r.Button,{onClick:l,size:"small",type:"text",children:o?"Collapse":"View all"})}),exports.TrailerListItem=({trailer:o,title:r,handleSetPlayingTrailer:i})=>t.jsx(e.PlaylistItem,{onClick:()=>i(!0),playable:!0,thumbnail:o.thumbnail||"/images/default_card_image.png",title:`${r} Trailer`});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),i=require("react"),o=require("next/image"),t=require("styled-components"),r=require("../../atoms/box/box.js"),n=require("../../atoms/seconds_to_duration/seconds_to_duration.js"),s=require("../../atoms/typography/paragraph.js"),a=require("../../../icons/security/lock.js"),l=require("../../../icons/audio_video/play_solid.js"),c=require("../../../icons/basic/download_arrow.js"),d=require("../../../icons/basic/share_external.js");require("../../feedback/badge/badge.js"),require("../../feedback/banner/banner.js"),require("../../feedback/loader/loader.js"),require("../../feedback/notification/notification.js"),require("../../feedback/progress/progress.js"),require("../../feedback/toast/toast.js");var x=require("../../feedback/tooltip/tooltip.js");require("../../feedback/animated_toast/animated_toast.js"),require("../../feedback/emojiPicker/emoji-picker.js"),require("../../feedback/emojiPicker/emoji-reactions.js"),require("../../feedback/videoLoader/videoLoader.js");var p=require("../../actions/button/button.js");function
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("react"),o=require("next/image"),t=require("styled-components"),r=require("../../atoms/box/box.js"),n=require("../../atoms/seconds_to_duration/seconds_to_duration.js"),s=require("../../atoms/typography/paragraph.js"),a=require("../../../icons/security/lock.js"),l=require("../../../icons/audio_video/play_solid.js"),c=require("../../../icons/basic/download_arrow.js"),d=require("../../../icons/basic/share_external.js");require("../../feedback/badge/badge.js"),require("../../feedback/banner/banner.js"),require("../../feedback/loader/loader.js"),require("../../feedback/notification/notification.js"),require("../../feedback/progress/progress.js"),require("../../feedback/toast/toast.js");var x=require("../../feedback/tooltip/tooltip.js");require("../../feedback/animated_toast/animated_toast.js"),require("../../feedback/emojiPicker/emoji-picker.js"),require("../../feedback/emojiPicker/emoji-reactions.js"),require("../../feedback/videoLoader/videoLoader.js");var p=require("../../actions/button/button.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../actions/dropdown/dropdown.js"),require("../../actions/rate/rate.js"),require("../../actions/switch/switch.js"),require("../../actions/toggle/toggle.js"),require("../../actions/upload/upload.js"),require("../../actions/AccountSelector/selector.js"),require("../../actions/stepIndicator/stepIndicator.js");var h=g(i),u=g(o);const j=h.default.forwardRef(({comingSoon:i,duration:o,onClick:t,playable:g,progress:h=0,shortDescription:j,thumbnail:v="/images/default_card_image.png",nowplaying:k,playlistItemId:q,title:I="Episode",isFile:z=!1,type:L="VIDEO"},S)=>e.jsxs(y,{ref:S,onClick:g&&!i?t:void 0,$playable:g||"LINK"===L,$playlistItemId:q,$nowplaying:k,$isExternalLink:"LINK"===L,children:[g?e.jsx(l.PlaySolid,{color:"white",size:16,sx:"position: absolute; left: 10px; bottom: 10px;"}):"LINK"===L?e.jsx(d.ShareExternal,{color:"white",size:16,sx:"position: absolute; left: 10px; bottom: 10px;"}):e.jsx(a.Lock,{color:"white",size:16,sx:"position: absolute; left: 10px; bottom: 10px;"}),e.jsxs("div",{style:{position:"relative",overflow:"hidden",height:75,minWidth:133,width:"100%",maxWidth:133,backgroundColor:"white"},className:"imageContainer",children:[e.jsx(u.default,{alt:`thumbnail for ${I}`,height:75,quality:100,src:v,style:{objectFit:"LINK"===L?"contain":"cover",background:"LINK"===L?"white":"transparent"},width:133}),z&&e.jsx(f,{className:"overlay",children:e.jsx(b,{children:e.jsx(p.Button,{icon:e.jsx(c.DownloadArrow,{color:"grey-4",size:16}),type:"special",sx:"padding-left: 12px;padding-right: 12px; max-height: 32px;",children:e.jsx(s.P,{$color:"grey-4",$fontSize:14,$lineHeight:20,children:"Download"})})})}),"LINK"===L&&e.jsx(m,{className:"overlay",children:e.jsx(w,{children:e.jsx(p.Button,{icon:e.jsx(d.ShareExternal,{color:"grey-4",size:16}),type:"special",sx:"max-height: 32px;",children:e.jsx(s.P,{$color:"grey-4",$fontSize:14,$lineHeight:20,children:"Visit"})})})})]}),h&&o&&!i&&"LINK"!==L?e.jsx($,{progressPercent:h/o}):null,e.jsxs(r.Box,{$dir:"column",$gap:4,sx:"\n margin-left: 16px;\n margin-right: auto;\n flex: 0 1 auto;\n flex-basis: content;\n max-width: 70%;\n ",children:[e.jsx(s.P,{$color:"grey-10",$semiBold:!0,children:I}),e.jsxs(r.Box,{$gap:4,$align:"flex-end",children:[j&&e.jsx(s.P,{$color:"grey-9",$fontSize:14,$lineHeight:20,$textClampLines:2,sx:"max-width: min(500px, 100%);",dangerouslySetInnerHTML:{__html:j}}),j&&j?.length>70&&e.jsx(r.Box,{$justify:"flex-start",sx:"div{ text-align: left !important; z-index: 99; } .opaque { opacity: 1 !important;} margin-right: 16px; ",children:e.jsx(x.Tooltip,{content:j,place:"left",children:e.jsx(s.P,{$fontSize:14,$color:"white",children:"More"})})})]})]}),o&&!i&&"LINK"!==L&&e.jsx(s.P,{$color:"grey-8",$fontSize:14,$lineHeight:20,sx:"flex-shrink: 0;",children:e.jsx(n.SecToDuration,{seconds:o})}),"LINK"===L&&e.jsx(p.Button,{type:"special",sx:"&:hover { background-color: var(--color-grey-2); } svg { color: white; } padding: 6px 12px; max-height: 32px;",icon:e.jsx(d.ShareExternal,{color:"white",size:16}),children:e.jsx(s.P,{$color:"grey-8",$fontSize:14,$lineHeight:20,sx:"flex-shrink: 0;",children:"Visit"})}),"FILE"===L&&e.jsx(p.Button,{type:"special",sx:"&:hover { background-color: var(--color-grey-2); } svg { color: white; } padding: 6px 12px; max-height: 32px;",icon:e.jsx(c.DownloadArrow,{color:"white",size:16}),children:e.jsx(s.P,{$color:"grey-8",$fontSize:14,$lineHeight:20,sx:"flex-shrink: 0;",children:"Download"})}),i&&e.jsx(s.P,{$color:"grey-8",$fontSize:14,$lineHeight:20,sx:"flex-shrink: 0;",children:"Coming soon"})]})),y=t.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
flex: 0 1 auto;
|
|
4
4
|
padding: 6px;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
align-items: center;
|
|
33
33
|
opacity: 0;
|
|
34
34
|
transition: opacity 0.2s ease-in-out;
|
|
35
|
-
`,
|
|
35
|
+
`,m=t.styled.div`
|
|
36
36
|
position: absolute;
|
|
37
37
|
background-color: rgba(0, 0, 0, 0.2);
|
|
38
38
|
height: 75px;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
align-items: center;
|
|
43
43
|
opacity: 0;
|
|
44
44
|
transition: opacity 0.2s ease-in-out;
|
|
45
|
-
`,
|
|
45
|
+
`,b=t.styled.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
align-items: center;
|
|
@@ -135,4 +135,4 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
${({$showingAll:e})=>e?"height: 100%; overflow-y:auto;":"max-height: 350px;"}
|
|
138
|
-
`;exports.VideoPlayer=({activeIndex:t,pip:r,playable:n,playlist:b,onClickPreview:L,onPipChange:M,onProgress:E,onStart:T,orientation:H,setMediaItem:R,onShowAllPlaylist:O,forwardedRef:F,subtitle:N,title:_,trailer:W,additionalMedia:V})=>{const X="undefined"!=typeof window?window:{innerHeight:0,innerWidth:600},Y=X.innerHeight/3,K=j*(X.innerHeight/3),G=y.default.useRef(null),J=F||G,Q=y.default.useRef({}),U=y.default.useRef(null),Z=y.default.useRef(null),[ee,ie]=y.default.useState(0),[te,re]=y.default.useState(!1),[ne,oe]=y.default.useState(!n),[le,se]=y.default.useState(b?.[t].id||null),[ae,de]=g.useLocalStorage("videoPipHeight",Y),[ce,pe]=g.useLocalStorage("videoPipWidth",K),[ue,ge]=g.useLocalStorage("video-volume",1),[he,xe]=g.useLocalStorage("videoPipRight",16),[fe,me]=g.useLocalStorage("videoPipBottom",16),[be,ye]=y.default.useState([0,0]),[we,ve]=y.default.useState([0,0]),[je,$e]=y.default.useState(!1),[Ie,ke]=y.default.useState(0),[Se,De]=y.default.useState([]),[Ae,Pe]=y.default.useState([]),[ze,qe]=y.default.useState([]),[Ce,Be]=y.default.useState(!1),Le=ne?W:je?Se?.[Ie]:b?.[t],Me=Array.isArray(Le?.src)?Le.src[0]:Le?.src,Ee=Me?.includes(".m3u8")||!1;y.default.useEffect(()=>{V&&(De(V.filter(e=>"VIDEO"===e.type)),Pe(V.filter(e=>"FILE"===e.type)),qe(V.filter(e=>"LINK"===e.type)))},[V]);const Te=y.default.useRef(!0);y.default.useEffect(()=>{Te.current?Te.current=!1:!n||ne||je||Be(!0)},[t,n,ne,je]),y.default.useEffect(()=>{const e=()=>{const e=Q.current[le];e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",block:"center"})},0)};return b?.length&&le&&("undefined"!=typeof window&&window.addEventListener("load",e),e()),()=>{"undefined"!=typeof window&&window.removeEventListener("load",e)}},[b,le]);const He=(e,i=!1)=>{oe(!1),$e(i),Be(!(!n&&!i)),i?ke(e):R(e)},Re=()=>{re(e=>!e),O&&O(!te)},Oe=(e,i)=>{if(!Z?.current)return;const t=Z.current.getBoundingClientRect();t.x<16||t.y<16||e>=2*X.innerWidth/3||i>=2*X.innerHeight/3||e<$||i<200||(pe(e),de(i))},Fe=()=>{if(!Z?.current)return;const e=Z.current.getBoundingClientRect();ve([e.width,e.height])},Ne=e=>{if(!Z?.current)return;const i=e.currentTarget.getAttribute("class")?.split(" ")||[],t=window.innerWidth-e.clientX,r=window.innerHeight-e.clientY;if(!(e.clientX<0||e.clientY<0))if(e.stopPropagation(),e.preventDefault(),i.includes("top")){const e=Math.round(r-be[1]+we[1]),i=Math.round(e*j);Oe(i,e)}else if(i.includes("bottom")){const e=Math.round(be[1]-r+we[1]),i=Math.round(e*j);Oe(i,e)}else if(i.includes("left")){const e=Math.round(t-be[0]+we[0]),i=Math.round(e/j);Oe(e,i)}else if(i.includes("right")){const e=Math.round(be[0]-t+we[0]),i=Math.round(e/j);Oe(e,i)}},_e=i.useMemo(()=>{let e=[{label:"All lessons",color:"dark"}];return V?.length&&e.push({label:"Resources",color:"dark"}),e.push({label:"Trailer",color:"dark"}),e},[V]),We=ee===_e.length-1,Ve=V&&ee>0&&ee<_e.length-1;return y.default.useEffect(()=>{ee>=_e.length&&ie(0)},[_e,ee]),Le?e.jsx(I,{$orientation:H,children:e.jsxs(A,{$orientation:H,$playable:n||ne||je,children:["vertical"===H&&e.jsxs(l.Box,{className:"pip-trigger-vertical pip-trigger",$dir:"column",$gap:4,sx:"margin: 24px;",children:[e.jsx(d.H,{as:"h2",$bold:!0,$color:"white",$fontSize:28,$lineHeight:36,children:_}),e.jsx(c.P,{as:"h3",$bold:!0,$color:"grey-8",children:N})]}),r&&e.jsx(S,{}),e.jsxs(k,{$pip:!!r,draggable:r&&0===we[0],onDrag:r?e=>{if(e.clientX<0||e.clientY<0)return;const i=window.innerWidth-e.clientX,t=window.innerHeight-e.clientY;((e,i)=>{if(!Z?.current)return;const t=Z.current.getBoundingClientRect();e&&e>=16&&e<=X.innerWidth-16-t.width&&xe(e),i&&i>=16&&i<=X.innerHeight-16-t.height&&me(i)})(he+(i-be[0]),fe+(t-be[1])),ye([i,t])}:void 0,onMouseDown:e=>{ye([window.innerWidth-e.clientX,window.innerHeight-e.clientY])},ref:Z,style:r?{bottom:fe,height:ae,right:he,width:ce}:void 0,children:[r&&e.jsx(o.Button,{className:"close-pip",icon:e.jsx(a.SelectItem,{color:"grey-0"}),onClick:e=>{e.stopPropagation(),M&&M(!1)},size:"large",sx:"\n display: none;\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 10;\n svg {\n fill: var(--color-white);\n }\n ",type:"text"}),e.jsx(v.default,{className:"player",config:{file:{attributes:{crossOrigin:"true",disablePictureInPicture:"true"},forceHLS:Ee,hlsOptions:Ee?{autoStartLoad:!0}:void 0,tracks:(Le?.subtitles||[]).map(e=>({kind:"subtitles",label:e.label,src:e.src,srcLang:e.locale}))}},controls:!0,height:"100%",light:e.jsx(w.default,{alt:`thumbnail for ${_}`,layout:"fill",priority:!0,quality:100,style:{objectFit:"cover"},src:Le.thumbnail}),progressInterval:4e3,onProgress:e=>E(e,je?Se[Ie]?.id:void 0),onStart:T,onClickPreview:e=>{(n||ne||je)&&Be(!0),L&&L(e)},onReady:()=>{if(!ne){const e=J?.current?.getCurrentTime();0===e&&(je?0!==Se?.[Ie]?.progress&&J.current.seekTo(Se?.[Ie].progress):0!==Le?.progress&&J.current.seekTo(Le.progress))}},pip:r,playIcon:n||ne||je?e.jsx(u.PlaySolid,{color:"white",size:24,sx:"position: absolute; width: 54px; height: 54px;"}):e.jsx(p.LockCircle,{color:"white",size:24,sx:"position: absolute; width: 54px; height: 54px;"}),playing:ne||je||n&&Ce,ref:J,url:Le.src,width:"100%",volume:ue,onVolumeChange:e=>{ge(e.target.volume)}},`${ne}-${je}-${t}-${Ie}-${Le?.id??(Array.isArray(Le?.src)?Le.src[0]:Le?.src)??""}`),r&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"top horizontal",draggable:"false",onDrag:Ne,onMouseDown:Fe,onDragEnd:()=>ve([0,0]),tabIndex:0}),e.jsx(D,{className:"bottom horizontal",draggable:"false",onDrag:Ne,onMouseDown:Fe,onDragEnd:()=>ve([0,0]),tabIndex:0}),e.jsx(D,{className:"right vertical",draggable:"false",onDrag:Ne,onMouseDown:Fe,onDragEnd:()=>ve([0,0]),tabIndex:0}),e.jsx(D,{className:"left vertical",draggable:"false",onDrag:Ne,onMouseDown:Fe,onDragEnd:()=>ve([0,0]),tabIndex:0})]})]}),"horizontal"===H&&e.jsx(P,{children:e.jsxs(z,{$showingAll:te,children:[e.jsxs(l.Box,{$dir:"column",$gap:4,children:[e.jsx(d.H,{as:"h2",$bold:!0,$color:"white",$fontSize:28,$lineHeight:36,children:_}),e.jsx(c.P,{as:"h3",$bold:!0,$color:"grey-8",children:N})]}),e.jsxs(l.Box,{$align:"center",children:[e.jsx(s.Tabs,{activeIndex:ee,onChange:e=>ie(e),items:_e,size:"medium",sx:"justify-content: flex-start;"}),e.jsx(x.ButtonViewAll,{showingAll:te,orientation:H,toggleShowingAll:Re})]}),0===ee?e.jsx(C,{ref:U,$showingAll:te,children:b.map((i,t)=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{se(i.id),He(t)},title:i.title,thumbnail:i.thumbnail,shortDescription:i.shortDescription,duration:i.duration,progress:i.progress,playable:n,nowplaying:le,comingSoon:i.comingSoon||!1,ref:e=>{Q.current[i.id]=e}},i.id))}):Ve?e.jsxs(C,{$showingAll:te,children:[!!Se.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0; align-items: center; flex-direction: row-reverse; justify-content: flex-end; gap: 16px; svg {fill: white !important; } &:hover {background: var(--color-grey-1);}",trigger:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:16},children:e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Leaders"})}),sx:"flex-direction: column; ",children:e.jsx("div",{style:{marginTop:24,display:"flex",flexDirection:"column",gap:24},children:Se.map((i,t)=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{se(i.id),He(t,!0)},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,ref:e=>{Q.current[i.id]=e}},i.id))})},i))}),!!Ae.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0; align-items: center; flex-direction: row-reverse; justify-content: flex-end; gap: 16px; svg {fill: white !important; } &:hover {background: var(--color-grey-1);}",trigger:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:16},children:e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Other Resources"})}),sx:"flex-direction: column; ",children:e.jsx("div",{style:{marginTop:24,display:"flex",flexDirection:"column",gap:24},children:[...Ae].map(i=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{window.open(i.src,"_blank")},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,type:i.type,isFile:"FILE"===i.type,ref:e=>{Q.current[i.id]=e}},i.id))})},i))}),!!ze.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0; align-items: center; flex-direction: row-reverse; justify-content: flex-end; gap: 16px; svg {fill: white !important; } &:hover {background: var(--color-grey-1);}",trigger:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:16},children:e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Products"})}),sx:"flex-direction: column; ",children:e.jsx("div",{style:{marginTop:24,display:"flex",flexDirection:"column",gap:24},children:[...ze].map(i=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{window.open(i.src,"_blank")},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,type:i.type,isFile:"FILE"===i.type,ref:e=>{Q.current[i.id]=e}},i.id))})},i))})]}):We&&W?e.jsx(x.TrailerListItem,{title:_,handleSetPlayingTrailer:oe,trailer:W}):null]})}),"vertical"===H&&e.jsx(l.Box,{$dir:"column",$gap:24,sx:te?"z-index: 3; position:relative;":"height: auto",children:e.jsxs(q,{$showingAll:te,children:[e.jsxs(l.Box,{sx:"padding: 0 1.5rem;",$align:"center",children:[e.jsx(s.Tabs,{activeIndex:ee,onChange:e=>ie(e),items:_e,size:"medium",sx:"justify-content: flex-start;"}),e.jsx(x.ButtonViewAll,{showingAll:te,orientation:H,toggleShowingAll:Re})]}),[e.jsx(B,{ref:U,$showingAll:te,children:b.map((i,t)=>e.jsx(h.PlaylistItem,{comingSoon:i.comingSoon||!1,nowplaying:le,playlistItemId:i.id,duration:i.duration,ref:e=>{Q.current[i.id]=e},onClick:()=>{He(t),se(i.id)},playable:n,progress:i.progress,shortDescription:i.shortDescription,thumbnail:i.thumbnail,title:i.title},i.id))}),e.jsxs(B,{$showingAll:te,children:[!!Se.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0;",trigger:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:24},children:[e.jsx(f.ChevronDown,{size:20,color:"white"}),e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Leaders"})]}),sx:"flex-direction: column; gap: 24px;",children:Se.map((i,t)=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{se(i.id),He(t,!0)},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,ref:e=>{Q.current[i.id]=e}},i.id))},i))}),(!!Ae.length||!!ze.length)&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0;",trigger:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:24},children:[e.jsx(f.ChevronDown,{size:20,color:"white"}),e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Other Resources"})]}),sx:"flex-direction: column; gap: 24px;",children:[...Ae,...ze].map(i=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{window.open(i.src,"_blank")},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,type:i.type,isFile:"FILE"===i.type,ref:e=>{Q.current[i.id]=e}},i.id))},i))})]}),!!W&&e.jsx(l.Box,{$dir:"column",$gap:8,sx:"margin: 0px 24px;",children:e.jsx(x.TrailerListItem,{title:_,handleSetPlayingTrailer:oe,trailer:W})})][ee]]})})]})}):null};
|
|
138
|
+
`;exports.VideoPlayer=({activeIndex:t,pip:r,playable:n,playlist:b,onClickPreview:L,onPipChange:M,onProgress:E,onStart:T,orientation:H,setMediaItem:R,onShowAllPlaylist:O,forwardedRef:_,subtitle:F,title:N,trailer:W,additionalMedia:V})=>{const X="undefined"!=typeof window?window:{innerHeight:0,innerWidth:600},Y=X.innerHeight/3,K=j*(X.innerHeight/3),G=y.default.useRef(null),J=_||G,Q=y.default.useRef({}),U=y.default.useRef(null),Z=y.default.useRef(null),[ee,ie]=y.default.useState(0),[te,re]=y.default.useState(!1),[ne,oe]=y.default.useState(!n),[le,se]=y.default.useState(b?.[t].id||null),[ae,de]=g.useLocalStorage("videoPipHeight",Y),[ce,pe]=g.useLocalStorage("videoPipWidth",K),[ue,ge]=g.useLocalStorage("video-volume",1),[he,xe]=g.useLocalStorage("videoPipRight",16),[fe,me]=g.useLocalStorage("videoPipBottom",16),[be,ye]=y.default.useState([0,0]),[we,ve]=y.default.useState([0,0]),[je,$e]=y.default.useState(!1),[Ie,ke]=y.default.useState(0),[Se,De]=y.default.useState([]),[Ae,Pe]=y.default.useState([]),[ze,qe]=y.default.useState([]),[Ce,Be]=y.default.useState(!1),Le=ne?W:je?Se?.[Ie]:b?.[t],Me=Array.isArray(Le?.src)?Le.src[0]:Le?.src,Ee=Me?.includes(".m3u8")||!1;y.default.useEffect(()=>{V&&(De(V.filter(e=>"VIDEO"===e.type)),Pe(V.filter(e=>"FILE"===e.type)),qe(V.filter(e=>"LINK"===e.type)))},[V]);const Te=y.default.useRef(!0);y.default.useEffect(()=>{Te.current?Te.current=!1:!n||ne||je||Be(!0)},[t,n,ne,je]),y.default.useEffect(()=>{const e=()=>{const e=Q.current[le];e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",block:"center"})},0)};return b?.length&&le&&("undefined"!=typeof window&&window.addEventListener("load",e),e()),()=>{"undefined"!=typeof window&&window.removeEventListener("load",e)}},[b,le]);const He=(e,i=!1)=>{oe(!1),$e(i),Be(!(!n&&!i)),i?ke(e):R(e)},Re=()=>{re(e=>!e),O&&O(!te)},Oe=(e,i)=>{if(!Z?.current)return;const t=Z.current.getBoundingClientRect();t.x<16||t.y<16||e>=2*X.innerWidth/3||i>=2*X.innerHeight/3||e<$||i<200||(pe(e),de(i))},_e=()=>{if(!Z?.current)return;const e=Z.current.getBoundingClientRect();ve([e.width,e.height])},Fe=e=>{if(!Z?.current)return;const i=e.currentTarget.getAttribute("class")?.split(" ")||[],t=window.innerWidth-e.clientX,r=window.innerHeight-e.clientY;if(!(e.clientX<0||e.clientY<0))if(e.stopPropagation(),e.preventDefault(),i.includes("top")){const e=Math.round(r-be[1]+we[1]),i=Math.round(e*j);Oe(i,e)}else if(i.includes("bottom")){const e=Math.round(be[1]-r+we[1]),i=Math.round(e*j);Oe(i,e)}else if(i.includes("left")){const e=Math.round(t-be[0]+we[0]),i=Math.round(e/j);Oe(e,i)}else if(i.includes("right")){const e=Math.round(be[0]-t+we[0]),i=Math.round(e/j);Oe(e,i)}},Ne=i.useMemo(()=>{let e=[{label:"All lessons",color:"dark"}];return V?.length&&e.push({label:"Resources",color:"dark"}),e.push({label:"Trailer",color:"dark"}),e},[V]),We=ee===Ne.length-1,Ve=V&&ee>0&&ee<Ne.length-1;return y.default.useEffect(()=>{ee>=Ne.length&&ie(0)},[Ne,ee]),Le?e.jsx(I,{$orientation:H,children:e.jsxs(A,{$orientation:H,$playable:n||ne||je,children:["vertical"===H&&e.jsxs(l.Box,{className:"pip-trigger-vertical pip-trigger",$dir:"column",$gap:4,sx:"margin: 24px;",children:[e.jsx(d.H,{as:"h2",$bold:!0,$color:"white",$fontSize:28,$lineHeight:36,children:N}),e.jsx(c.P,{as:"h3",$bold:!0,$color:"grey-8",children:F})]}),r&&e.jsx(S,{}),e.jsxs(k,{$pip:!!r,draggable:r&&0===we[0],onDrag:r?e=>{if(e.clientX<0||e.clientY<0)return;const i=window.innerWidth-e.clientX,t=window.innerHeight-e.clientY;((e,i)=>{if(!Z?.current)return;const t=Z.current.getBoundingClientRect();e&&e>=16&&e<=X.innerWidth-16-t.width&&xe(e),i&&i>=16&&i<=X.innerHeight-16-t.height&&me(i)})(he+(i-be[0]),fe+(t-be[1])),ye([i,t])}:void 0,onMouseDown:e=>{ye([window.innerWidth-e.clientX,window.innerHeight-e.clientY])},ref:Z,style:r?{bottom:fe,height:ae,right:he,width:ce}:void 0,children:[r&&e.jsx(o.Button,{className:"close-pip",icon:e.jsx(a.SelectItem,{color:"grey-0"}),onClick:e=>{e.stopPropagation(),M&&M(!1)},size:"large",sx:"\n display: none;\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 10;\n svg {\n fill: var(--color-white);\n }\n ",type:"text"}),e.jsx(v.default,{className:"player",config:{file:{attributes:{crossOrigin:"true",disablePictureInPicture:"true"},forceHLS:Ee,hlsOptions:Ee?{autoStartLoad:!0}:void 0,tracks:(Le?.subtitles||[]).map(e=>({kind:"subtitles",label:e.label,src:e.src,srcLang:e.locale}))}},controls:!0,height:"100%",light:e.jsx(w.default,{alt:`thumbnail for ${N}`,layout:"fill",priority:!0,quality:100,style:{objectFit:"cover"},src:Le?.thumbnail||"/images/default_card_image.png"}),progressInterval:4e3,onProgress:e=>E(e,je?Se[Ie]?.id:void 0),onStart:T,onClickPreview:e=>{(n||ne||je)&&Be(!0),L&&L(e)},onReady:()=>{if(!ne){const e=J?.current?.getCurrentTime();0===e&&(je?0!==Se?.[Ie]?.progress&&J.current.seekTo(Se?.[Ie].progress):0!==Le?.progress&&J.current.seekTo(Le.progress))}},pip:r,playIcon:n||ne||je?e.jsx(u.PlaySolid,{color:"white",size:24,sx:"position: absolute; width: 54px; height: 54px;"}):e.jsx(p.LockCircle,{color:"white",size:24,sx:"position: absolute; width: 54px; height: 54px;"}),playing:ne||je||n&&Ce,ref:J,url:Le.src,width:"100%",volume:ue,onVolumeChange:e=>{ge(e.target.volume)}},`${ne}-${je}-${t}-${Ie}-${Le?.id??(Array.isArray(Le?.src)?Le.src[0]:Le?.src)??""}`),r&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"top horizontal",draggable:"false",onDrag:Fe,onMouseDown:_e,onDragEnd:()=>ve([0,0]),tabIndex:0}),e.jsx(D,{className:"bottom horizontal",draggable:"false",onDrag:Fe,onMouseDown:_e,onDragEnd:()=>ve([0,0]),tabIndex:0}),e.jsx(D,{className:"right vertical",draggable:"false",onDrag:Fe,onMouseDown:_e,onDragEnd:()=>ve([0,0]),tabIndex:0}),e.jsx(D,{className:"left vertical",draggable:"false",onDrag:Fe,onMouseDown:_e,onDragEnd:()=>ve([0,0]),tabIndex:0})]})]}),"horizontal"===H&&e.jsx(P,{children:e.jsxs(z,{$showingAll:te,children:[e.jsxs(l.Box,{$dir:"column",$gap:4,children:[e.jsx(d.H,{as:"h2",$bold:!0,$color:"white",$fontSize:28,$lineHeight:36,children:N}),e.jsx(c.P,{as:"h3",$bold:!0,$color:"grey-8",children:F})]}),e.jsxs(l.Box,{$align:"center",children:[e.jsx(s.Tabs,{activeIndex:ee,onChange:e=>ie(e),items:Ne,size:"medium",sx:"justify-content: flex-start;"}),e.jsx(x.ButtonViewAll,{showingAll:te,orientation:H,toggleShowingAll:Re})]}),0===ee?e.jsx(C,{ref:U,$showingAll:te,children:b.map((i,t)=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{se(i.id),He(t)},title:i.title,thumbnail:i.thumbnail,shortDescription:i.shortDescription,duration:i.duration,progress:i.progress,playable:n,nowplaying:le,comingSoon:i.comingSoon||!1,ref:e=>{Q.current[i.id]=e}},i.id))}):Ve?e.jsxs(C,{$showingAll:te,children:[!!Se.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0; align-items: center; flex-direction: row-reverse; justify-content: flex-end; gap: 16px; svg {fill: white !important; } &:hover {background: var(--color-grey-1);}",trigger:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:16},children:e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Leaders"})}),sx:"flex-direction: column; ",children:e.jsx("div",{style:{marginTop:24,display:"flex",flexDirection:"column",gap:24},children:Se.map((i,t)=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{se(i.id),He(t,!0)},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,ref:e=>{Q.current[i.id]=e}},i.id))})},i))}),!!Ae.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0; align-items: center; flex-direction: row-reverse; justify-content: flex-end; gap: 16px; svg {fill: white !important; } &:hover {background: var(--color-grey-1);}",trigger:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:16},children:e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Other Resources"})}),sx:"flex-direction: column; ",children:e.jsx("div",{style:{marginTop:24,display:"flex",flexDirection:"column",gap:24},children:[...Ae].map(i=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{window.open(i.src,"_blank")},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,type:i.type,isFile:"FILE"===i.type,ref:e=>{Q.current[i.id]=e}},i.id))})},i))}),!!ze.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0; align-items: center; flex-direction: row-reverse; justify-content: flex-end; gap: 16px; svg {fill: white !important; } &:hover {background: var(--color-grey-1);}",trigger:e.jsx("div",{style:{display:"flex",alignItems:"center",gap:16},children:e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Products"})}),sx:"flex-direction: column; ",children:e.jsx("div",{style:{marginTop:24,display:"flex",flexDirection:"column",gap:24},children:[...ze].map(i=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{window.open(i.src,"_blank")},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,type:i.type,isFile:"FILE"===i.type,ref:e=>{Q.current[i.id]=e}},i.id))})},i))})]}):We&&W?e.jsx(x.TrailerListItem,{title:N,handleSetPlayingTrailer:oe,trailer:W}):null]})}),"vertical"===H&&e.jsx(l.Box,{$dir:"column",$gap:24,sx:te?"z-index: 3; position:relative;":"height: auto",children:e.jsxs(q,{$showingAll:te,children:[e.jsxs(l.Box,{sx:"padding: 0 1.5rem;",$align:"center",children:[e.jsx(s.Tabs,{activeIndex:ee,onChange:e=>ie(e),items:Ne,size:"medium",sx:"justify-content: flex-start;"}),e.jsx(x.ButtonViewAll,{showingAll:te,orientation:H,toggleShowingAll:Re})]}),[e.jsx(B,{ref:U,$showingAll:te,children:b.map((i,t)=>e.jsx(h.PlaylistItem,{comingSoon:i.comingSoon||!1,nowplaying:le,playlistItemId:i.id,duration:i.duration,ref:e=>{Q.current[i.id]=e},onClick:()=>{He(t),se(i.id)},playable:n,progress:i.progress,shortDescription:i.shortDescription,thumbnail:i.thumbnail,title:i.title},i.id))}),e.jsxs(B,{$showingAll:te,children:[!!Se.length&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0;",trigger:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:24},children:[e.jsx(f.ChevronDown,{size:20,color:"white"}),e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Leaders"})]}),sx:"flex-direction: column; gap: 24px;",children:Se.map((i,t)=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{se(i.id),He(t,!0)},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,ref:e=>{Q.current[i.id]=e}},i.id))},i))}),(!!Ae.length||!!ze.length)&&e.jsx(m.Accordion,{defaultOpen:0,children:[0].map(i=>e.jsx(m.Accordion.Item,{buttonSx:"padding: 0;",trigger:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:24},children:[e.jsx(f.ChevronDown,{size:20,color:"white"}),e.jsx(c.P,{$color:"white",$fontSize:16,$semiBold:!0,children:"Other Resources"})]}),sx:"flex-direction: column; gap: 24px;",children:[...Ae,...ze].map(i=>e.jsx(h.PlaylistItem,{playlistItemId:i.id,onClick:()=>{window.open(i.src,"_blank")},progress:i.progress,duration:i.duration,title:i.name,thumbnail:i.thumbnail||"",shortDescription:i.shortDescription,playable:!0,nowplaying:le,type:i.type,isFile:"FILE"===i.type,ref:e=>{Q.current[i.id]=e}},i.id))},i))})]}),!!W&&e.jsx(l.Box,{$dir:"column",$gap:8,sx:"margin: 0px 24px;",children:e.jsx(x.TrailerListItem,{title:N,handleSetPlayingTrailer:oe,trailer:W})})][ee]]})})]})}):null};
|
|
@@ -41,6 +41,7 @@ export declare const MARK_SUBSCRIPT = "subscript";
|
|
|
41
41
|
export declare const MARK_SUPERSCRIPT = "superscript";
|
|
42
42
|
export declare const MARK_UNDERLINE = "underline";
|
|
43
43
|
export declare const MARK_LINK = "link";
|
|
44
|
+
export declare const ELEMENT_AUDIO = "audio";
|
|
44
45
|
export declare const ELEMENT_BUTTON = "button";
|
|
45
46
|
export declare const ELEMENT_PAYWALL = "paywall";
|
|
46
47
|
export declare const ELEMENT_QA = "q-n-a";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAC9B,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAClD,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAC9C,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,aAAa,UAAU,CAAC;AAErC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,MAAM,UAQlB,CAAC;AAEF,eAAO,MAAM,WAAW,0BAA0B,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;;GAS3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAUzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAUzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAC9B,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAClD,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAC9C,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,aAAa,UAAU,CAAC;AAErC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,MAAM,UAQlB,CAAC;AAEF,eAAO,MAAM,WAAW,0BAA0B,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;;GAS3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAUzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;GAUzB,CAAC"}
|
|
@@ -15,8 +15,12 @@ export interface FilterComponentProps {
|
|
|
15
15
|
questionAnswerId: string;
|
|
16
16
|
}
|
|
17
17
|
export declare const EditorContext: React.Context<{
|
|
18
|
+
audioLoader?: (props: {
|
|
19
|
+
courseMediaId: number;
|
|
20
|
+
}) => React.ReactElement;
|
|
18
21
|
commentInputLoader: (props: CommentInputProps) => React.ReactElement;
|
|
19
22
|
commentLoader: (props: CommentLoaderProps) => React.ReactElement;
|
|
23
|
+
handleAudioClick?: (id: number) => void;
|
|
20
24
|
handleVideoClick?: (id: number) => void;
|
|
21
25
|
imageSrcLoader: (id: number) => Promise<string>;
|
|
22
26
|
videoTitleLoader: (props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAClD,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAClD,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa;kBACV,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,YAAY;wBAClD,CAAC,KAAK,EAAE,iBAAiB,KAAK,MAAM,YAAY;mBACrD,CAAC,KAAK,EAAE,kBAAkB,KAAK,MAAM,YAAY;uBAC7C,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;uBACpB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;oBACvB,CAAC,EAAE,EAAE,MAAM,KAAK,QAAQ,MAAM,CAAC;sBAC7B,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,YAAY;sBACxD,MAAM,aAAa,CAAC,oBAAoB,CAAC;oBAC3C,MAAM;4BACE,OAAO;4BACP,OAAO;EAa/B,CAAC"}
|
|
@@ -2,9 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import { TElement } from '@udecode/plate-common';
|
|
3
3
|
import { CommentInputProps, CommentLoaderProps, FilterComponentProps } from './context';
|
|
4
4
|
export interface EditorProps {
|
|
5
|
+
audioLoader?: (props: {
|
|
6
|
+
courseMediaId: number;
|
|
7
|
+
}) => React.ReactElement;
|
|
5
8
|
commentInputLoader: (props: CommentInputProps) => React.ReactElement;
|
|
6
9
|
commentLoader: (props: CommentLoaderProps) => React.ReactElement;
|
|
7
10
|
editable: boolean;
|
|
11
|
+
handleAudioClick?: (id: number) => void;
|
|
8
12
|
handleVideoClick: (id: number) => void;
|
|
9
13
|
imageSrcLoader: (id: number) => Promise<string>;
|
|
10
14
|
onChange: (newNodes: TElement[]) => void;
|
|
@@ -18,5 +22,5 @@ export interface EditorProps {
|
|
|
18
22
|
showAnswersBelowInput?: boolean;
|
|
19
23
|
}
|
|
20
24
|
export type EditorContent = TElement;
|
|
21
|
-
export declare const Editor: ({ commentInputLoader, commentLoader, editable, handleVideoClick, imageSrcLoader, onChange, previousContent, defaultFilter, videoTitleLoader, filterComponent, hideShowAnswersButton, showAnswersBelowInput, }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const Editor: ({ audioLoader, commentInputLoader, commentLoader, editable, handleAudioClick, handleVideoClick, imageSrcLoader, onChange, previousContent, defaultFilter, videoTitleLoader, filterComponent, hideShowAnswersButton, showAnswersBelowInput, }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
26
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAIL,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAElB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAYnB,MAAM,WAAW,WAAW;IAC1B,kBAAkB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,CAAC;IACrE,aAAa,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,KAAK,CAAC,YAAY,CAAC;IACjE,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,KAAK,KAAK,CAAC,YAAY,CAAC;IAC3E,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC5D,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;AAErC,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAIL,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAElB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAYnB,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,KAAK,KAAK,CAAC,YAAY,CAAC;IACvE,kBAAkB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,CAAC;IACrE,aAAa,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,KAAK,CAAC,YAAY,CAAC;IACjE,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,KAAK,KAAK,CAAC,YAAY,CAAC;IAC3E,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC5D,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;AAErC,eAAO,MAAM,MAAM,iPAehB,WAAW,4CA0Cb,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PlateElementProps } from '@udecode/plate-common';
|
|
3
|
+
export declare const AudioElement: React.ForwardRefExoticComponent<Omit<PlateElementProps, "ref"> & React.RefAttributes<any>>;
|
|
4
|
+
export declare const createAudioPlugin: <OP = import("@udecode/utils").AnyObject, OV extends import("@udecode/slate").Value = import("@udecode/slate").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
5
|
+
//# sourceMappingURL=audio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/audio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,YAAY,4FAuCvB,CAAC;AAEH,eAAO,MAAM,iBAAiB,sgBAM5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/blocks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/plugins/blocks/blocks.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,MAAM,OA2ClB,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export interface EditorBarProps {
|
|
2
2
|
handleUploadImage: (files: FileList) => Promise<string>;
|
|
3
|
+
/** Show the link button in the toolbar. Defaults to true. */
|
|
4
|
+
showLink?: boolean;
|
|
5
|
+
/** Show the image upload button in the toolbar. Defaults to true. */
|
|
6
|
+
showImage?: boolean;
|
|
3
7
|
}
|
|
4
|
-
export declare const EditorBar: ({ handleUploadImage }: EditorBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const EditorBar: ({ handleUploadImage, showLink, showImage, }: EditorBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
9
|
//# sourceMappingURL=navbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/navbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/navbar.tsx"],"names":[],"mappings":"AAoCA,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAYD,eAAO,MAAM,SAAS,gDAInB,cAAc,4CA+ShB,CAAC"}
|
|
@@ -13,6 +13,10 @@ export interface SimpleEditorProps {
|
|
|
13
13
|
} & DimensionOptions;
|
|
14
14
|
validationMessage?: string;
|
|
15
15
|
previousContent?: TElement[];
|
|
16
|
+
/** Show the link button in the toolbar. Defaults to true. */
|
|
17
|
+
showLink?: boolean;
|
|
18
|
+
/** Show the image upload button in the toolbar. Defaults to true. */
|
|
19
|
+
showImage?: boolean;
|
|
16
20
|
}
|
|
17
|
-
export declare const SimpleEditor: ({ editable, handleUploadImage, onChange, validation, sx, validationMessage, placeholder, previousContent, }: SimpleEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const SimpleEditor: ({ editable, handleUploadImage, onChange, validation, sx, validationMessage, placeholder, previousContent, showLink, showImage, }: SimpleEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
22
|
//# sourceMappingURL=simple_editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple_editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/simple_editor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,gDAAgD,CAAC;AAExD,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,gBAAgB,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"simple_editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/simple_editor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,gDAAgD,CAAC;AAExD,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,gBAAgB,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,qIAoBtB,iBAAiB,4CAwFnB,CAAC"}
|
|
@@ -10,9 +10,9 @@ export interface AudioPlayerProps {
|
|
|
10
10
|
playing: boolean;
|
|
11
11
|
progress: number;
|
|
12
12
|
id: string;
|
|
13
|
-
src: string;
|
|
14
|
-
title
|
|
15
|
-
thumbnail
|
|
13
|
+
src: string | string[];
|
|
14
|
+
title?: string;
|
|
15
|
+
thumbnail?: string;
|
|
16
16
|
onSeek: (percent: number) => void;
|
|
17
17
|
playerRef?: Player | null;
|
|
18
18
|
setPlayerRef?: React.Dispatch<React.SetStateAction<Player | null>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-player.d.ts","sourceRoot":"","sources":["../../../../../src/components/media/audio-player/audio-player.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,MAAmB,MAAM,uBAAuB,CAAC;AAWxD,OAAO,sCAAsC,CAAC;AAI9C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"audio-player.d.ts","sourceRoot":"","sources":["../../../../../src/components/media/audio-player/audio-player.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,MAAmB,MAAM,uBAAuB,CAAC;AAWxD,OAAO,sCAAsC,CAAC;AAI9C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,WAAW,oJAerB,gBAAgB,4CAwKlB,CAAC"}
|
|
@@ -8,10 +8,10 @@ interface PlaylistItemProps {
|
|
|
8
8
|
playing: boolean;
|
|
9
9
|
progress: number;
|
|
10
10
|
isPaidUser?: boolean;
|
|
11
|
-
thumbnail
|
|
11
|
+
thumbnail?: string;
|
|
12
12
|
itemId: string;
|
|
13
13
|
mediaItemId: string;
|
|
14
|
-
title
|
|
14
|
+
title?: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const PlaylistItem: ({ darkMode, duration, onPause, onPlay, onSeek, playing, isPaidUser, progress, thumbnail, itemId, mediaItemId, title, }: PlaylistItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playlist-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/media/audio-playlist/playlist-item.tsx"],"names":[],"mappings":"AAWA,OAAO,sCAAsC,CAAC;AAG9C,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"playlist-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/media/audio-playlist/playlist-item.tsx"],"names":[],"mappings":"AAWA,OAAO,sCAAsC,CAAC;AAG9C,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,2HAatB,iBAAiB,4CAyFnB,CAAC"}
|
|
@@ -13,16 +13,16 @@ export interface MediaItem {
|
|
|
13
13
|
progress?: number;
|
|
14
14
|
src: string | string[];
|
|
15
15
|
subtitles?: Subtitle[];
|
|
16
|
-
shortDescription
|
|
17
|
-
thumbnail
|
|
18
|
-
title
|
|
16
|
+
shortDescription?: string | null;
|
|
17
|
+
thumbnail?: string | null;
|
|
18
|
+
title?: string | null;
|
|
19
19
|
type?: 'AUDIO' | 'VIDEO' | 'LINK';
|
|
20
20
|
}
|
|
21
21
|
export interface Trailer {
|
|
22
22
|
id: number;
|
|
23
23
|
src: string | string[];
|
|
24
24
|
subtitles: Subtitle[];
|
|
25
|
-
thumbnail
|
|
25
|
+
thumbnail?: string;
|
|
26
26
|
}
|
|
27
27
|
export interface AdditionalMedia {
|
|
28
28
|
id: string;
|
|
@@ -31,7 +31,7 @@ export interface AdditionalMedia {
|
|
|
31
31
|
shortDescription?: string;
|
|
32
32
|
src?: string;
|
|
33
33
|
name: string;
|
|
34
|
-
thumbnail
|
|
34
|
+
thumbnail?: string;
|
|
35
35
|
type: 'VIDEO' | 'FILE' | 'LINK';
|
|
36
36
|
progress?: number;
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/components/media/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/components/media/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playlist-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/media/video-player/playlist-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,UAAU,iBAAiB;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAiD;IAC3E,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"playlist-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/media/video-player/playlist-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,UAAU,iBAAiB;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAiD;IAC3E,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,YAAY,0FAqMxB,CAAC"}
|