@maveio/components 0.0.169 → 0.0.170
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/chunk-3BAQWQNY.cjs +25 -0
- package/dist/chunk-3UQNIS3L.js +194 -0
- package/dist/chunk-474VILDO.cjs +194 -0
- package/dist/chunk-CZUMF7SR.cjs +1 -0
- package/dist/{chunk-OVZCXWUJ.js → chunk-EA4QYQHD.js} +141 -165
- package/dist/{chunk-KLJGACPT.js → chunk-GRBSIFM2.js} +1 -1
- package/dist/chunk-HMVS6DJE.js +186 -0
- package/dist/{chunk-BL2IUHCP.cjs → chunk-ITC5FANW.cjs} +203 -227
- package/dist/chunk-KO3CETGD.js +25 -0
- package/dist/chunk-LVGLIRQU.cjs +186 -0
- package/dist/{chunk-P5OWX4UR.js → chunk-NDPOBFNC.js} +1 -1
- package/dist/{chunk-IMY6Z3YA.cjs → chunk-OFBA5VRE.cjs} +2 -2
- package/dist/chunk-RWRHU74Q.js +1 -0
- package/dist/{chunk-MU4WLTQR.cjs → chunk-TJ5F2FGY.cjs} +1 -1
- package/dist/{chunk-L667KKJP.cjs → chunk-YWYZKUFB.cjs} +1 -1
- package/dist/{chunk-GHE5KR7E.js → chunk-ZWLZE25P.js} +1 -1
- package/dist/components/audio-track-menu.cjs +1 -1
- package/dist/components/audio-track-menu.js +1 -1
- package/dist/components/captions-menu-button.cjs +1 -0
- package/dist/components/captions-menu-button.d.cts +10 -0
- package/dist/components/captions-menu-button.d.ts +10 -0
- package/dist/components/captions-menu-button.js +1 -0
- package/dist/components/clip.cjs +1 -1
- package/dist/components/clip.js +1 -1
- package/dist/components/files.cjs +1 -1
- package/dist/components/files.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/player.cjs +1 -1
- package/dist/components/player.d.cts +4 -0
- package/dist/components/player.d.ts +4 -0
- package/dist/components/player.js +1 -1
- package/dist/components/pop.cjs +1 -1
- package/dist/components/pop.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/themes/default.cjs +204 -28
- package/dist/themes/default.js +204 -28
- package/dist/themes/dolphin.cjs +192 -16
- package/dist/themes/dolphin.js +192 -16
- package/dist/themes/loader.cjs +1 -1
- package/dist/themes/loader.js +1 -1
- package/dist/themes/synthwave.cjs +192 -19
- package/dist/themes/synthwave.js +192 -19
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2EIQ3VMA.cjs +0 -1
- package/dist/chunk-C3CI3U2Z.js +0 -379
- package/dist/chunk-V54NMMTT.cjs +0 -379
- package/dist/chunk-WTS6WHUH.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {o,n,M as M$1,d,r as r$1,g as g$1}from'./chunk-3UQNIS3L.js';import {e,g}from'./chunk-KA24PL7V.js';var M=(t="")=>t.split(/\s+/),A=(t="")=>{let[e,n,o]=t.split(":"),i=o?decodeURIComponent(o):void 0;return {kind:e==="cc"?g$1.CAPTIONS:g$1.SUBTITLES,language:n,label:i}},T=(t="",e={})=>M(t).map(n=>{let o=A(n);return {...e,...o}}),k=t=>t?Array.isArray(t)?t.map(e=>typeof e=="string"?A(e):e):typeof t=="string"?T(t):[t]:[],y=({kind:t,label:e,language:n}={kind:"subtitles"})=>e?`${t==="captions"?"cc":"sb"}:${n}:${encodeURIComponent(e)}`:n,h=(t=[])=>Array.prototype.map.call(t,y).join(" "),U=(t,e)=>n=>n[t]===e,I=t=>{let e=Object.entries(t).map(([n,o])=>U(n,o));return n=>e.every(o=>o(n))},Z=(t,e=[],n=[])=>{let o=k(n).map(I),i=d=>o.some(x=>x(d));Array.from(e).filter(i).forEach(d=>{d.mode=t;});},$=(t,e=()=>true)=>{if(!t?.textTracks)return [];let n=typeof e=="function"?e:I(e);return Array.from(t.textTracks).filter(n)},L=t=>{var e;return !!((e=t.mediaSubtitlesShowing)!=null&&e.length)||t.hasAttribute(d.MEDIA_SUBTITLES_SHOWING)};var B=`<svg aria-hidden="true" viewBox="0 0 26 24">
|
|
2
|
+
<path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
|
|
3
|
+
</svg>`,D=`<svg aria-hidden="true" viewBox="0 0 26 24">
|
|
4
|
+
<path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
|
|
5
|
+
</svg>`;function H(){return `
|
|
6
|
+
<style>
|
|
7
|
+
:host([data-captions-enabled="true"]) slot[name=off] {
|
|
8
|
+
display: none !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
:host(:not([data-captions-enabled="true"])) slot[name=on] {
|
|
13
|
+
display: none !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([aria-expanded="true"]) slot[name=tooltip] {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
|
|
21
|
+
<slot name="icon">
|
|
22
|
+
<slot name="on">${B}</slot>
|
|
23
|
+
<slot name="off">${D}</slot>
|
|
24
|
+
</slot>
|
|
25
|
+
`}function w(){return n("Captions")}var E=t=>{t.setAttribute("data-captions-enabled",L(t).toString());},v=t=>{t.setAttribute("aria-label",n("closed captions"));},r=class extends M$1{static get observedAttributes(){return [...super.observedAttributes,d.MEDIA_SUBTITLES_LIST,d.MEDIA_SUBTITLES_SHOWING,d.MEDIA_LANG]}connectedCallback(){super.connectedCallback(),v(this),E(this);}attributeChangedCallback(e,n,o){super.attributeChangedCallback(e,n,o),e===d.MEDIA_SUBTITLES_SHOWING?E(this):e===d.MEDIA_LANG&&v(this);}get invokeTargetElement(){var e;return this.invokeTarget!=null?super.invokeTargetElement:(e=r$1(this))==null?void 0:e.querySelector("media-captions-menu")}get mediaSubtitlesList(){return C(this,d.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){_(this,d.MEDIA_SUBTITLES_LIST,e);}get mediaSubtitlesShowing(){return C(this,d.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){_(this,d.MEDIA_SUBTITLES_SHOWING,e);}};r.getSlotTemplateHTML=H;r.getTooltipContentHTML=w;var C=(t,e)=>{let n=t.getAttribute(e);return n?T(n):[]},_=(t,e,n)=>{if(!n?.length){t.removeAttribute(e);return}let o=h(n);t.getAttribute(e)!==o&&t.setAttribute(e,o);};o.customElements.get("media-captions-menu-button")||o.customElements.define("media-captions-menu-button",r);var l,b,u=class extends r{constructor(){super(...arguments);e(this,l);}connectedCallback(){super.connectedCallback(),g(this,l,b).call(this);}attributeChangedCallback(n,o,i){super.attributeChangedCallback(n,o,i),g(this,l,b).call(this);}};l=new WeakSet,b=function(){this.setAttribute("aria-label",n("Captions"));},u.getTooltipContentHTML=()=>n("Captions");o.customElements.get("mave-captions-menu-button")||o.customElements.define("mave-captions-menu-button",u);export{T as a,k as b,y as c,h as d,Z as e,$ as f,L as g,u as h};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
'use strict';var chunk474VILDO_cjs=require('./chunk-474VILDO.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');function Le({anchor:t,floating:e,placement:i}){let n=Je({anchor:t,floating:e}),{x:s,y:l}=je(n,i);return {x:s,y:l}}function Je({anchor:t,floating:e}){return {anchor:Ve(t,e.offsetParent),floating:{x:0,y:0,width:e.offsetWidth,height:e.offsetHeight}}}function Ve(t,e){var i;let n=t.getBoundingClientRect(),s=(i=e?.getBoundingClientRect())!=null?i:{x:0,y:0};return {x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}function je({anchor:t,floating:e},i){let n=et(i)==="x"?"y":"x",s=n==="y"?"height":"width",l=Re(i),h=t.x+t.width/2-e.width/2,c=t.y+t.height/2-e.height/2,d=t[s]/2-e[s]/2,f;switch(l){case "top":f={x:h,y:t.y-e.height};break;case "bottom":f={x:h,y:t.y+t.height};break;case "right":f={x:t.x+t.width,y:c};break;case "left":f={x:t.x-e.width,y:c};break;default:f={x:t.x,y:t.y};}switch(i.split("-")[1]){case "start":f[n]-=d;break;case "end":f[n]+=d;break}return f}function Re(t){return t.split("-")[0]}function et(t){return ["top","bottom"].includes(Re(t))?"y":"x"}var We=new WeakMap,ie=t=>{let e=We.get(t);return e||We.set(t,e=new Set),e},He=new chunk474VILDO_cjs.o.ResizeObserver(t=>{for(let e of t)for(let i of ie(e.target))i(e);});function L(t,e){ie(t).add(e),He.observe(t);}function R(t,e){let i=ie(t);i.delete(e),i.size||He.unobserve(t);}var fe=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},o=(t,e,i)=>(fe(t,e,"read from private field"),i?i.call(t):e.get(t)),a=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i);},p=(t,e,i,n)=>(fe(t,e,"write to private field"),e.set(t,i),i),r=(t,e,i)=>(fe(t,e,"access private method"),i),v,w,x,z,N,E,O,ne,Oe,Z,pe,F,K,se,oe,De,ae,Pe,re,qe,I,C,M,D,Y,ve,le,$e,ge,Be,he,ze,be,Ne,de,Ke,ce,Ue,W,G,ue,Ze,H,Q,U,me;function Fe({type:t,text:e,value:i,checked:n}){let s=chunk474VILDO_cjs.p.createElement("media-chrome-menu-item");s.type=t??"",s.part.add("menu-item"),t&&s.part.add(t),s.value=i,s.checked=n;let l=chunk474VILDO_cjs.p.createElement("span");return l.textContent=e,s.append(l),s}function Ye(t,e){let i=t.querySelector(`:scope > [slot="${e}"]`);if(i?.nodeName=="SLOT"&&(i=i.assignedElements({flatten:true})[0]),i)return i=i.cloneNode(true),i;let n=t.shadowRoot.querySelector(`[name="${e}"] > svg`);return n?n.cloneNode(true):""}function tt(t){return `
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
font: var(--media-font,
|
|
5
|
+
var(--media-font-weight, normal)
|
|
6
|
+
var(--media-font-size, 14px) /
|
|
7
|
+
var(--media-text-content-height, var(--media-control-height, 24px))
|
|
8
|
+
var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
|
|
9
|
+
color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
|
|
10
|
+
--_menu-bg: rgb(20 20 30 / .8);
|
|
11
|
+
background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, var(--_menu-bg))));
|
|
12
|
+
border-radius: var(--media-menu-border-radius);
|
|
13
|
+
border: var(--media-menu-border, none);
|
|
14
|
+
display: var(--media-menu-display, inline-flex) !important;
|
|
15
|
+
|
|
16
|
+
transition: var(--media-menu-transition-in,
|
|
17
|
+
visibility 0s,
|
|
18
|
+
opacity .2s ease-out,
|
|
19
|
+
transform .15s ease-out,
|
|
20
|
+
left .2s ease-in-out,
|
|
21
|
+
min-width .2s ease-in-out,
|
|
22
|
+
min-height .2s ease-in-out
|
|
23
|
+
) !important;
|
|
24
|
+
|
|
25
|
+
visibility: var(--media-menu-visibility, visible);
|
|
26
|
+
opacity: var(--media-menu-opacity, 1);
|
|
27
|
+
max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));
|
|
28
|
+
transform: var(--media-menu-transform-in, translateY(0) scale(1));
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
|
|
31
|
+
min-height: 0;
|
|
32
|
+
position: relative;
|
|
33
|
+
bottom: var(--_menu-bottom);
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@-moz-document url-prefix() {
|
|
38
|
+
:host{
|
|
39
|
+
--_menu-bg: rgb(20 20 30);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([hidden]) {
|
|
44
|
+
transition: var(--media-menu-transition-out,
|
|
45
|
+
visibility .15s ease-in,
|
|
46
|
+
opacity .15s ease-in,
|
|
47
|
+
transform .15s ease-in
|
|
48
|
+
) !important;
|
|
49
|
+
visibility: var(--media-menu-hidden-visibility, hidden);
|
|
50
|
+
opacity: var(--media-menu-hidden-opacity, 0);
|
|
51
|
+
max-height: var(--media-menu-hidden-max-height,
|
|
52
|
+
var(--media-menu-max-height, var(--_menu-max-height, 300px)));
|
|
53
|
+
transform: var(--media-menu-transform-out, translateY(2px) scale(.99));
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([slot="submenu"]) {
|
|
58
|
+
background: none;
|
|
59
|
+
width: 100%;
|
|
60
|
+
min-height: 100%;
|
|
61
|
+
position: absolute;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
right: -100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#container {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
min-height: 0;
|
|
70
|
+
transition: transform .2s ease-out;
|
|
71
|
+
transform: translate(0, 0);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#container.has-expanded {
|
|
75
|
+
transition: transform .2s ease-in;
|
|
76
|
+
transform: translate(-100%, 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
button {
|
|
80
|
+
background: none;
|
|
81
|
+
color: inherit;
|
|
82
|
+
border: none;
|
|
83
|
+
padding: 0;
|
|
84
|
+
font: inherit;
|
|
85
|
+
outline: inherit;
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
slot[name="header"][hidden] {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
slot[name="header"] > *,
|
|
95
|
+
slot[name="header"]::slotted(*) {
|
|
96
|
+
padding: .4em .7em;
|
|
97
|
+
border-bottom: 1px solid rgb(255 255 255 / .25);
|
|
98
|
+
cursor: var(--media-cursor, default);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
slot[name="header"] > button[part~="back"],
|
|
102
|
+
slot[name="header"]::slotted(button[part~="back"]) {
|
|
103
|
+
cursor: var(--media-cursor, pointer);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
svg[part~="back"] {
|
|
107
|
+
height: var(--media-menu-icon-height, var(--media-control-height, 24px));
|
|
108
|
+
fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
|
|
109
|
+
display: block;
|
|
110
|
+
margin-right: .5ch;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
slot:not([name]) {
|
|
114
|
+
gap: var(--media-menu-gap);
|
|
115
|
+
flex-direction: var(--media-menu-flex-direction, column);
|
|
116
|
+
overflow: var(--media-menu-overflow, hidden auto);
|
|
117
|
+
display: flex;
|
|
118
|
+
min-height: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([role="menu"]) slot:not([name]) {
|
|
122
|
+
padding-block: .4em;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
slot:not([name])::slotted([role="menu"]) {
|
|
126
|
+
background: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
media-chrome-menu-item > span {
|
|
130
|
+
margin-right: .5ch;
|
|
131
|
+
max-width: var(--media-menu-item-max-width);
|
|
132
|
+
text-overflow: ellipsis;
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
136
|
+
<style id="layout-row" media="width:0">
|
|
137
|
+
|
|
138
|
+
slot[name="header"] > *,
|
|
139
|
+
slot[name="header"]::slotted(*) {
|
|
140
|
+
padding: .4em .5em;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
slot:not([name]) {
|
|
144
|
+
gap: var(--media-menu-gap, .25em);
|
|
145
|
+
flex-direction: var(--media-menu-flex-direction, row);
|
|
146
|
+
padding-inline: .5em;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
media-chrome-menu-item {
|
|
150
|
+
padding: .3em .5em;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
media-chrome-menu-item[aria-checked="true"] {
|
|
154
|
+
background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
media-chrome-menu-item::part(checked-indicator) {
|
|
159
|
+
display: var(--media-menu-item-checked-indicator-display, none);
|
|
160
|
+
}
|
|
161
|
+
</style>
|
|
162
|
+
<div id="container" part="container">
|
|
163
|
+
<slot name="header" hidden>
|
|
164
|
+
<button part="back button" aria-label="Back to previous menu">
|
|
165
|
+
<slot name="back-icon">
|
|
166
|
+
<svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">
|
|
167
|
+
<path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/>
|
|
168
|
+
</svg>
|
|
169
|
+
</slot>
|
|
170
|
+
<slot name="title"></slot>
|
|
171
|
+
</button>
|
|
172
|
+
</slot>
|
|
173
|
+
<slot></slot>
|
|
174
|
+
</div>
|
|
175
|
+
<slot name="checked-indicator" hidden></slot>
|
|
176
|
+
`}var _={STYLE:"style",HIDDEN:"hidden",DISABLED:"disabled",ANCHOR:"anchor"},S=class extends chunk474VILDO_cjs.o.HTMLElement{constructor(){if(super(),a(this,ne),a(this,Z),a(this,K),a(this,oe),a(this,ae),a(this,re),a(this,M),a(this,Y),a(this,le),a(this,ge),a(this,he),a(this,be),a(this,de),a(this,ce),a(this,W),a(this,ue),a(this,H),a(this,U),a(this,v,null),a(this,w,null),a(this,x,null),a(this,z,new Set),a(this,N,void 0),a(this,E,false),a(this,O,null),a(this,F,()=>{let e=o(this,z),i=new Set(this.items);for(let n of e)i.has(n)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:n}));for(let n of i)e.has(n)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:n}));p(this,z,i);}),a(this,I,()=>{r(this,M,D).call(this),r(this,Y,ve).call(this,false);}),a(this,C,()=>{r(this,M,D).call(this);}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=chunk474VILDO_cjs.q(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e);}this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.shadowRoot.addEventListener("slotchange",this),p(this,N,new MutationObserver(o(this,F))),o(this,N).observe(this.defaultSlot,{childList:true});}static get observedAttributes(){return [_.DISABLED,_.HIDDEN,_.STYLE,_.ANCHOR,chunk474VILDO_cjs.b.MEDIA_CONTROLLER]}static formatMenuItemText(e,i){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this);}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this);}handleEvent(e){switch(e.type){case "slotchange":r(this,ne,Oe).call(this,e);break;case "invoke":r(this,oe,De).call(this,e);break;case "click":r(this,le,$e).call(this,e);break;case "toggle":r(this,he,ze).call(this,e);break;case "focusout":r(this,de,Ke).call(this,e);break;case "keydown":r(this,ce,Ue).call(this,e);break}}connectedCallback(){var e,i;p(this,O,chunk474VILDO_cjs.C(this.shadowRoot,":host")),r(this,K,se).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),p(this,v,chunk474VILDO_cjs.s(this)),(i=(e=o(this,v))==null?void 0:e.associateElement)==null||i.call(e,this),this.hidden||(L(P(this),o(this,I)),L(this,o(this,C))),r(this,Z,pe).call(this);}disconnectedCallback(){var e,i;R(P(this),o(this,I)),R(this,o(this,C)),this.disable(),(i=(e=o(this,v))==null?void 0:e.unassociateElement)==null||i.call(e,this),p(this,v,null);}attributeChangedCallback(e,i,n){var s,l,h,c;e===_.HIDDEN&&n!==i?(o(this,E)||p(this,E,true),this.hidden?r(this,re,qe).call(this):r(this,ae,Pe).call(this),this.dispatchEvent(new chunk474VILDO_cjs.L({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:true}))):e===chunk474VILDO_cjs.b.MEDIA_CONTROLLER?(i&&((l=(s=o(this,v))==null?void 0:s.unassociateElement)==null||l.call(s,this),p(this,v,null)),n&&this.isConnected&&(p(this,v,chunk474VILDO_cjs.s(this)),(c=(h=o(this,v))==null?void 0:h.associateElement)==null||c.call(h,this))):e===_.DISABLED&&n!==i?n==null?this.enable():this.disable():e===_.STYLE&&n!==i&&r(this,K,se).call(this);}formatMenuItemText(e,i){return this.constructor.formatMenuItemText(e,i)}get anchor(){return this.getAttribute("anchor")}set anchor(e){this.setAttribute("anchor",`${e}`);}get anchorElement(){var e;return this.anchor?(e=chunk474VILDO_cjs.y(this))==null?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:true}).filter(it)}get radioGroupItems(){return this.items.filter(e=>e.role==="menuitemradio")}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,i;return (i=(e=this.checkedItems[0])==null?void 0:e.value)!=null?i:""}set value(e){let i=this.items.find(n=>n.value===e);i&&r(this,U,me).call(this,i);}focus(){if(p(this,w,chunk474VILDO_cjs.x()),this.items.length){r(this,H,Q).call(this,this.items[0]),this.items[0].focus();return}let e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');e?.focus();}handleSelect(e){var i;let n=r(this,W,G).call(this,e);n&&(r(this,U,me).call(this,n,n.type==="checkbox"),o(this,x)&&!this.hidden&&((i=o(this,w))==null||i.focus(),this.hidden=true));}get keysUsed(){return ["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var i,n;let{key:s}=e,l=this.items,h=(n=(i=r(this,W,G).call(this,e))!=null?i:r(this,ue,Ze).call(this))!=null?n:l[0],c=l.indexOf(h),d=Math.max(0,c);s==="ArrowDown"?d++:s==="ArrowUp"?d--:e.key==="Home"?d=0:e.key==="End"&&(d=l.length-1),d<0&&(d=l.length-1),d>l.length-1&&(d=0),r(this,H,Q).call(this,l[d]),l[d].focus();}};v=new WeakMap;w=new WeakMap;x=new WeakMap;z=new WeakMap;N=new WeakMap;E=new WeakMap;O=new WeakMap;ne=new WeakSet;Oe=function(t){let e=t.target;for(let i of e.assignedNodes({flatten:true}))i.nodeType===3&&i.textContent.trim()===""&&i.remove();["header","title"].includes(e.name)&&r(this,Z,pe).call(this),e.name||o(this,F).call(this);};Z=new WeakSet;pe=function(){let t=this.shadowRoot.querySelector('slot[name="header"]'),e=this.shadowRoot.querySelector('slot[name="title"]');t.hidden=e.assignedNodes().length===0&&t.assignedNodes().length===0;};F=new WeakMap;K=new WeakSet;se=function(){var t;let e=this.shadowRoot.querySelector("#layout-row"),i=(t=getComputedStyle(this).getPropertyValue("--media-menu-layout"))==null?void 0:t.trim();e.setAttribute("media",i==="row"?"":"width:0");};oe=new WeakSet;De=function(t){p(this,x,t.relatedTarget),chunk474VILDO_cjs.v(this,t.relatedTarget)||(this.hidden=!this.hidden);};ae=new WeakSet;Pe=function(){var t;(t=o(this,x))==null||t.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:true}),L(P(this),o(this,I)),L(this,o(this,C));};re=new WeakSet;qe=function(){var t;(t=o(this,x))==null||t.setAttribute("aria-expanded","false"),R(P(this),o(this,I)),R(this,o(this,C));};I=new WeakMap;C=new WeakMap;M=new WeakSet;D=function(t){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;let{x:e,y:i}=Le({anchor:this.anchorElement,floating:this,placement:"top-start"});t??(t=this.offsetWidth);let s=P(this).getBoundingClientRect(),l=s.width-e-t,h=s.height-i-this.offsetHeight,{style:c}=o(this,O);c.setProperty("position","absolute"),c.setProperty("right",`${Math.max(0,l)}px`),c.setProperty("--_menu-bottom",`${h}px`);let d=getComputedStyle(this),Qe=c.getPropertyValue("--_menu-bottom")===d.bottom?h:parseFloat(d.bottom),Xe=s.height-Qe-parseFloat(d.marginBottom);this.style.setProperty("--_menu-max-height",`${Xe}px`);};Y=new WeakSet;ve=function(t){let e=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),i=e?.querySelector('[role="menu"]'),{style:n}=o(this,O);if(t||n.setProperty("--media-menu-transition-in","none"),i){let s=i.offsetHeight,l=Math.max(i.offsetWidth,e.offsetWidth);this.style.setProperty("min-width",`${l}px`),this.style.setProperty("min-height",`${s}px`),r(this,M,D).call(this,l);}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),r(this,M,D).call(this);n.removeProperty("--media-menu-transition-in");};le=new WeakSet;$e=function(t){var e;if(t.stopPropagation(),t.composedPath().includes(o(this,ge,Be))){(e=o(this,w))==null||e.focus(),this.hidden=true;return}let i=r(this,W,G).call(this,t);!i||i.hasAttribute("disabled")||(r(this,H,Q).call(this,i),this.handleSelect(t));};ge=new WeakSet;Be=function(){var t;return (t=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:true}))==null?void 0:t.find(i=>i.matches('button[part~="back"]'))};he=new WeakSet;ze=function(t){if(t.target===this)return;r(this,be,Ne).call(this);let e=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(let i of e)i.invokeTargetElement!=t.target&&t.newState=="open"&&i.getAttribute("aria-expanded")=="true"&&!i.invokeTargetElement.hidden&&i.invokeTargetElement.dispatchEvent(new chunk474VILDO_cjs.K({relatedTarget:i}));for(let i of e)i.setAttribute("aria-expanded",`${!i.submenuElement.hidden}`);r(this,Y,ve).call(this,true);};be=new WeakSet;Ne=function(){let e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e);};de=new WeakSet;Ke=function(t){var e;chunk474VILDO_cjs.v(this,t.relatedTarget)||(o(this,E)&&((e=o(this,w))==null||e.focus()),o(this,x)&&o(this,x)!==t.relatedTarget&&!this.hidden&&(this.hidden=true));};ce=new WeakSet;Ue=function(t){var e,i,n,s,l;let{key:h,ctrlKey:c,altKey:d,metaKey:f}=t;if(!(c||d||f)&&this.keysUsed.includes(h))if(t.preventDefault(),t.stopPropagation(),h==="Tab"){if(o(this,E)){this.hidden=true;return}t.shiftKey?(i=(e=this.previousElementSibling)==null?void 0:e.focus)==null||i.call(e):(s=(n=this.nextElementSibling)==null?void 0:n.focus)==null||s.call(n),this.blur();}else h==="Escape"?((l=o(this,w))==null||l.focus(),o(this,E)&&(this.hidden=true)):h==="Enter"||h===" "?this.handleSelect(t):this.handleMove(t);};W=new WeakSet;G=function(t){return t.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))};ue=new WeakSet;Ze=function(){return this.items.find(t=>t.tabIndex===0)};H=new WeakSet;Q=function(t){for(let e of this.items)e.tabIndex=e===t?0:-1;};U=new WeakSet;me=function(t,e){let i=[...this.checkedItems];t.type==="radio"&&this.radioGroupItems.forEach(n=>n.checked=false),e?t.checked=!t.checked:t.checked=true,this.checkedItems.some((n,s)=>n!=i[s])&&this.dispatchEvent(new Event("change",{bubbles:true,composed:true}));};S.shadowRootOptions={mode:"open"};S.getTemplateHTML=tt;function it(t){return ["menuitem","menuitemradio","menuitemcheckbox"].includes(t?.role)}function P(t){var e;return (e=t.getAttribute("bounds")?chunk474VILDO_cjs.w(t,`#${t.getAttribute("bounds")}`):chunk474VILDO_cjs.r(t)||t.parentElement)!=null?e:t}chunk474VILDO_cjs.o.customElements.get("media-chrome-menu")||chunk474VILDO_cjs.o.customElements.define("media-chrome-menu",S);var nt=`<svg aria-hidden="true" viewBox="0 0 24 24">
|
|
177
|
+
<path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
|
|
178
|
+
<path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>
|
|
179
|
+
</svg>`,k,g,b,ye,q,B,ke=class extends S{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,b);chunkJHSFSCC2_cjs.e(this,k,[]);chunkJHSFSCC2_cjs.e(this,g);chunkJHSFSCC2_cjs.e(this,B,()=>{let i=this.value??chunkJHSFSCC2_cjs.d(this,g);i!=null&&(chunkJHSFSCC2_cjs.f(this,g,String(i)),this.dispatchEvent(new chunk474VILDO_cjs.o.CustomEvent(chunk474VILDO_cjs.a.MEDIA_AUDIO_TRACK_REQUEST,{detail:chunkJHSFSCC2_cjs.d(this,g),composed:true,bubbles:true})),chunkJHSFSCC2_cjs.g(this,b,q).call(this));});}get tracks(){return chunkJHSFSCC2_cjs.d(this,k)}set tracks(i){chunkJHSFSCC2_cjs.f(this,k,[...i??[]]),chunkJHSFSCC2_cjs.g(this,b,ye).call(this);}get selected(){return chunkJHSFSCC2_cjs.d(this,g)}set selected(i){chunkJHSFSCC2_cjs.f(this,g,i??void 0),chunkJHSFSCC2_cjs.g(this,b,q).call(this);}connectedCallback(){super.connectedCallback(),this.addEventListener("change",chunkJHSFSCC2_cjs.d(this,B)),chunkJHSFSCC2_cjs.g(this,b,ye).call(this),chunkJHSFSCC2_cjs.g(this,b,q).call(this);}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",chunkJHSFSCC2_cjs.d(this,B));}};k=new WeakMap,g=new WeakMap,b=new WeakSet,ye=function(){let i=this.defaultSlot;if(i){i.textContent="";for(let n of chunkJHSFSCC2_cjs.d(this,k)){let s=Fe({type:"radio",text:n.label??n.language??"",value:n.id,checked:!!n.enabled});s.prepend(Ye(this,"checked-indicator")),i.append(s);}chunkJHSFSCC2_cjs.g(this,b,q).call(this);}},q=function(){let i=chunkJHSFSCC2_cjs.d(this,k).find(h=>h.enabled)??(chunkJHSFSCC2_cjs.d(this,k).length?chunkJHSFSCC2_cjs.d(this,k)[0]:void 0),n=chunkJHSFSCC2_cjs.d(this,g)??i?.id;chunkJHSFSCC2_cjs.f(this,g,n);let l=this.defaultSlot?.querySelectorAll("media-chrome-menu-item")??this.querySelectorAll("media-chrome-menu-item");for(let h of Array.from(l))"checked"in h&&"value"in h&&(h.checked=h.value===n);n!=null?this.value=n:(this.value="",this.removeAttribute("value"));},B=new WeakMap;var X,Ge,$=class extends chunk474VILDO_cjs.M{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,X);}connectedCallback(){super.connectedCallback(),chunkJHSFSCC2_cjs.g(this,X,Ge).call(this);}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:this.closest("media-controller, mave-player")?.querySelector("mave-audio-track-menu")??null}};X=new WeakSet,Ge=function(){let i=chunk474VILDO_cjs.n("audio tracks");this.setAttribute("aria-label",i);},$.getSlotTemplateHTML=()=>`
|
|
180
|
+
<style>
|
|
181
|
+
:host([aria-expanded="true"]) slot[name='tooltip'] {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
</style>
|
|
185
|
+
<slot name="icon">${nt}</slot>
|
|
186
|
+
`,$.getTooltipContentHTML=()=>chunk474VILDO_cjs.n("audio tracks");chunk474VILDO_cjs.o.customElements.get("mave-audio-track-menu")||chunk474VILDO_cjs.o.customElements.define("mave-audio-track-menu",ke);chunk474VILDO_cjs.o.customElements.get("mave-audio-track-menu-button")||chunk474VILDO_cjs.o.customElements.define("mave-audio-track-menu-button",$);exports.a=L;exports.b=R;exports.c=Fe;exports.d=Ye;exports.e=S;exports.f=ke;exports.g=$;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {a as a$2}from'./chunk-SWRFZ3FV.js';import {b}from'./chunk-OX42Y2HR.js';import {a as a$1}from'./chunk-PTN427IG.js';import {a as a$3}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';import {c,e,g as g$1}from'./chunk-KA24PL7V.js';var i,l,C,R,g,v,w,z,L,U,F,y,f=class extends a$2{constructor(){super(...arguments);e(this,i);this.embedController=new b(this);}get embed(){return this._embed}set embed(e){this._embed!==e&&(this._embed=e,this.requestUpdate("embed"),this.embedController.embed=this.embed);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}render(){return a$3`
|
|
2
2
|
${this.embedController.render({pending:this.renderPending,complete:e=>{if(this._data=e,!e)return;let n=g$1(this,i,U).call(this),t=g$1(this,i,F).call(this),o=this._slottedChildren.map(a=>{function h(){let s;return a.nodeName==="TEMPLATE"?s=a.content.cloneNode(true):s=a.cloneNode(true),s}if(a.getAttribute("name")=="mave-files-video"){if(!n)return;let s=h(),d=Number(this._data.created_at),m=d&&d<1e12?d*1e3:d;Number.isFinite(m)&&g$1(this,i,l).call(this,s,"date",new Date(m).toLocaleDateString().replaceAll("/","-"));let p=this._data.video.duration;p&&g$1(this,i,l).call(this,s,"duration",this.durationToTime(p));let u=this._data.video.filetype;u&&g$1(this,i,l).call(this,s,"filetype",u);let k=n.file_size||this._data.video.size;k&&g$1(this,i,l).call(this,s,"size",g$1(this,i,v).call(this,k));let M=g$1(this,i,z).call(this,n),S=n.container||"mp4",b=g$1(this,i,g).call(this,M,`${this._data.name}.${S}`);return b.setAttribute("aria-label","Download video"),b.appendChild(s),a$3`${b}`}if(t&&a.getAttribute("name")=="mave-files-audio"){let s=h(),d=t.codec||g$1(this,i,y).call(this,t.filename)||"mp3";g$1(this,i,l).call(this,s,"filetype",d);let m=t.file_size;m&&g$1(this,i,l).call(this,s,"size",g$1(this,i,v).call(this,m));let p=g$1(this,i,L).call(this,t),u=g$1(this,i,g).call(this,p,t.filename||`${this._data.name}.${d}`);return u.setAttribute("aria-label","Download audio"),u.appendChild(s),a$3`${u}`}let _=this._data.subtitles.find(s=>s.language==this._data.video.language);if(_&&a.getAttribute("name")=="mave-files-subtitles"){let s=h();g$1(this,i,l).call(this,s,"filetype","vtt");let d=g$1(this,i,g).call(this,_.path,`${this._data.name}.vtt`);return d.setAttribute("aria-label","Download subtitles"),d.appendChild(s),a$3`${d}`}});return a$3`${this._stylesheets} ${o}`}})}
|
|
3
3
|
`}renderPending(){return a$3`<slot style="display: none"></slot>`}};i=new WeakSet,l=function(e,n,t){let o=e.querySelector(`[slot="${n}"], [data-slot="${n}"]`);o&&(o.textContent=t,o.removeAttribute("slot"),o.removeAttribute("data-slot"));},C=function(e,n){let t=window.URL.createObjectURL(e),o=document.createElement("a");o.style.display="none",o.href=t,o.download=n,this.appendChild(o),o.click(),window.URL.revokeObjectURL(t),this.removeChild(o);},R=function(e,n){return fetch(e).then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.blob()}).then(t=>g$1(this,i,C).call(this,t,n)).catch(t=>console.error("Something went wrong:",t))},g=function(e,n){let t=document.createElement("a");t.classList.add("link"),t.setAttribute("href",e),t.setAttribute("download",n),t.setAttribute("target","new");let o=false;return t.addEventListener("click",a=>{a.preventDefault(),!o&&(o=true,t.style.cursor="wait",t.style.opacity="0.5",g$1(this,i,R).call(this,e,n).then(()=>{o=false,t.style.cursor="pointer",t.style.opacity="1";}));}),t},v=function(e){let n=e/1e6;if(n<10)return `${n.toFixed(1)} MB`;let t=n%1!==0;return `${n.toFixed(t?1:0)} MB`},w=function(e){let n=this._data?.video?.version&&this._data.video.version>0?`v${this._data.video.version}/`:"";return `${this.cdn_root}/${this.embedId}/${n}${e}`},z=function(e){let n=e?.codec||"h264",t=e?.size||"hd",o=e?.container||"mp4";return g$1(this,i,w).call(this,`${n}_${t}.${o}`)},L=function(e){if(e?.path)return e.path;let n=e?.codec||g$1(this,i,y).call(this,e?.filename||"")||"mp3";return g$1(this,i,w).call(this,`audio.${n}`)},U=function(){let e=this._data?.video?.renditions||[];if(!e.length)return;let n=e.filter(o=>o.container==="mp4"&&o.codec==="h264"&&(!o.type||o.type==="video")),t=["hd","fhd","sd","qhd","uhd"];for(let o of t){let a=n.find(h=>h.size===o);if(a)return a}return n[0]||e.find(o=>o.type==="video")},F=function(){let e=this._data?.audio_tracks||[];if(e.length)return e.find(n=>n.default)||e[0]},y=function(e){if(!e)return;let n=e.split(".");return n.length>1?n.pop():void 0},f.styles=a`
|
|
4
4
|
:host {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkITC5FANW_cjs=require('./chunk-ITC5FANW.cjs'),chunkQQDH35OW_cjs=require('./chunk-QQDH35OW.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n=class extends chunk2E5GLLOS_cjs.g{get backdrop(){return this._backdropColor||"black"}set backdrop(t){this._backdropColor!=t&&(this._backdropColor=t);}get backdropFilter(){return this._backdropFilter}set backdropFilter(t){this._backdropFilter!=t&&(this._backdropFilter=t);}get styles(){let t={"--backdrop":this.backdrop,"--backdrop-filter":this.backdropFilter};return chunkQQDH35OW_cjs.a(t)}open(t){if(this._player=t,t.aspect_ratio){let[i,s]=t.aspect_ratio.split("/");this.style.setProperty("--frame-ratio-w",i),this.style.setProperty("--frame-ratio-h",s);}this.style.display="block";let o=i=>{this._frame.appendChild(t),setTimeout(()=>{this._dialog.showModal();},25),this._dialog.addEventListener("close",s=>{s.preventDefault(),this.close();},{once:true}),i(this);};return new Promise(i=>{if(this._dialog)o(i);else {let s=setInterval(()=>{this._dialog&&(o(i),clearInterval(s));},100);return}})}possibleClose(t){t.target!=this._player&&this.close();}close(){this._dialog.close(),this._backdrop.addEventListener("transitionend",()=>{this._frame.innerHTML="",this.dispatchEvent(new Event("closed",{bubbles:true}));},{once:true});}render(){return chunk2E5GLLOS_cjs.a`
|
|
2
2
|
<dialog style=${this.styles}>
|
|
3
3
|
<div class="backdrop"></div>
|
|
4
4
|
<div class="content" @click=${this.possibleClose}>
|
|
@@ -151,4 +151,4 @@
|
|
|
151
151
|
background-position: center center;
|
|
152
152
|
background-repeat: no-repeat;
|
|
153
153
|
}
|
|
154
|
-
`,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c("dialog")],n.prototype,"_dialog",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".content")],n.prototype,"_content",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".frame")],n.prototype,"_frame",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".backdrop")],n.prototype,"_backdrop",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"backdrop",1),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a({attribute:"backdrop-filter"})],n.prototype,"backdropFilter",1);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",n));function E(l){let t={};if(!l)return t;for(let o=0;o<l.attributes.length;o++){let i=l.attributes[o];t[i.name]=i.value;}return t}var x=()=>typeof document<"u"?document:void 0,_=l=>{let t=x();if(!t)return;let o=t;function i(c){let e,r,a=o.querySelector(`mave-pop[embed="${c}"]`);if(a)return r=E(a.querySelector("mave-player")),e=a,{pop:e,attributes:r};let p=o.querySelector("mave-pop:not([embed])");return p?(r=E(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new n,o.body.appendChild(e),{pop:e})}function s(c,e){let r=new
|
|
154
|
+
`,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c("dialog")],n.prototype,"_dialog",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".content")],n.prototype,"_content",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".frame")],n.prototype,"_frame",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".backdrop")],n.prototype,"_backdrop",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"backdrop",1),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a({attribute:"backdrop-filter"})],n.prototype,"backdropFilter",1);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",n));function E(l){let t={};if(!l)return t;for(let o=0;o<l.attributes.length;o++){let i=l.attributes[o];t[i.name]=i.value;}return t}var x=()=>typeof document<"u"?document:void 0,_=l=>{let t=x();if(!t)return;let o=t;function i(c){let e,r,a=o.querySelector(`mave-pop[embed="${c}"]`);if(a)return r=E(a.querySelector("mave-player")),e=a,{pop:e,attributes:r};let p=o.querySelector("mave-pop:not([embed])");return p?(r=E(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new n,o.body.appendChild(e),{pop:e})}function s(c,e){let r=new chunkITC5FANW_cjs.a;if(e)for(let a in e)r.setAttribute(a,e[a]);return r.embed=c,r}function g(c){c.querySelectorAll("[x-mave-pop]").forEach(e=>{let r=e.getAttribute("x-mave-pop")||e.getAttribute("embed");if(!r)return;let{pop:a,attributes:p}=i(r);s(r,p),e.addEventListener("click",L=>{L.preventDefault();let M=o.querySelectorAll("mave-player");if(!Array.from(M).find(m=>m.popped)){let m=s(r,p);a.open(m).then(()=>{m.play();}),a.addEventListener("closed",()=>{m.pause();});}});});}g(l),new MutationObserver(c=>{for(let e of c)e.type==="childList"&&e.addedNodes.forEach(r=>{r instanceof HTMLElement&&g(r);});}).observe(o.body,{childList:true,subtree:true});},f=x();f&&(f.readyState==="loading"?f.addEventListener("DOMContentLoaded",()=>{_(f);}):setTimeout(()=>_(f),500));exports.a=n;exports.b=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-P6SBZPDR.js';import {g,a as a$1}from'./chunk-5PIHL662.js';import {a as a$2}from'./chunk-YPCQNE3R.js';var a=["default","synthwave","dolphin"],h={default:()=>import('./themes/default.js'),synthwave:()=>import('./themes/synthwave.js'),dolphin:()=>import('./themes/dolphin.js')};async function p(t){if(!a.includes(t))return;if(!!a$3()){let e=`./dist/themes/${t}.js`;return c(e)}let s=h[t];return s?s():void 0}async function c(t){return import(t)}var d=class t{constructor(){this.themes=[];}static async get(n,s){if(t.instance||(t.instance=new t),t.instance.themes.find(e=>e.name===n))return t.instance.currentTheme=n,Promise.resolve(t.instance);t.instance.themes.push({name:n}),t.instance.currentTheme=n;try{if(typeof document<"u"&&!a.includes(n)){let e=document.createElement("link");e.rel="stylesheet",e.href=`${s}/${n}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}try{if(s&&!a.includes(n)){let{build:e}=await c(`${s}/${n}.js`);e(n,g,a$1,a$2);}else {let e=await p(n);if(e)e.build(n,g,a$1,a$2);else {let m=`./${a$3()}themes/${n}.js`,{build:u}=await c(m);u(n,g,a$1,a$2);}}}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static async external(n){t.instance||(t.instance=new t);let s=n.split("/").pop()?.replace(".js","")||"";try{if(typeof document<"u"){let e=document.createElement("link");e.rel="stylesheet",e.href=`${n.replace(".js","")}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}if(t.instance.themes.find(e=>e.name===s))return t.instance.currentTheme=s,Promise.resolve(t.instance);t.instance.themes.push({name:s}),t.instance.currentTheme=s;try{let{build:e}=await c(n);e(s,g,a$1,a$2);}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static getTheme(){return t.instance?t.instance.currentTheme:""}};export{d as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkTKJYRGEU_cjs=require('./chunk-TKJYRGEU.cjs'),chunkRQN3DXJB_cjs=require('./chunk-RQN3DXJB.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var i,l,C,R,g,v,w,z,L,U,F,y,f=class extends chunkTKJYRGEU_cjs.a{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,i);this.embedController=new chunkRQN3DXJB_cjs.b(this);}get embed(){return this._embed}set embed(e){this._embed!==e&&(this._embed=e,this.requestUpdate("embed"),this.embedController.embed=this.embed);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}render(){return chunk2E5GLLOS_cjs.a`
|
|
2
2
|
${this.embedController.render({pending:this.renderPending,complete:e=>{if(this._data=e,!e)return;let n=chunkJHSFSCC2_cjs.g(this,i,U).call(this),t=chunkJHSFSCC2_cjs.g(this,i,F).call(this),o=this._slottedChildren.map(a=>{function h(){let s;return a.nodeName==="TEMPLATE"?s=a.content.cloneNode(true):s=a.cloneNode(true),s}if(a.getAttribute("name")=="mave-files-video"){if(!n)return;let s=h(),d=Number(this._data.created_at),m=d&&d<1e12?d*1e3:d;Number.isFinite(m)&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"date",new Date(m).toLocaleDateString().replaceAll("/","-"));let p=this._data.video.duration;p&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"duration",this.durationToTime(p));let u=this._data.video.filetype;u&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"filetype",u);let k=n.file_size||this._data.video.size;k&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"size",chunkJHSFSCC2_cjs.g(this,i,v).call(this,k));let M=chunkJHSFSCC2_cjs.g(this,i,z).call(this,n),S=n.container||"mp4",b=chunkJHSFSCC2_cjs.g(this,i,g).call(this,M,`${this._data.name}.${S}`);return b.setAttribute("aria-label","Download video"),b.appendChild(s),chunk2E5GLLOS_cjs.a`${b}`}if(t&&a.getAttribute("name")=="mave-files-audio"){let s=h(),d=t.codec||chunkJHSFSCC2_cjs.g(this,i,y).call(this,t.filename)||"mp3";chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"filetype",d);let m=t.file_size;m&&chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"size",chunkJHSFSCC2_cjs.g(this,i,v).call(this,m));let p=chunkJHSFSCC2_cjs.g(this,i,L).call(this,t),u=chunkJHSFSCC2_cjs.g(this,i,g).call(this,p,t.filename||`${this._data.name}.${d}`);return u.setAttribute("aria-label","Download audio"),u.appendChild(s),chunk2E5GLLOS_cjs.a`${u}`}let _=this._data.subtitles.find(s=>s.language==this._data.video.language);if(_&&a.getAttribute("name")=="mave-files-subtitles"){let s=h();chunkJHSFSCC2_cjs.g(this,i,l).call(this,s,"filetype","vtt");let d=chunkJHSFSCC2_cjs.g(this,i,g).call(this,_.path,`${this._data.name}.vtt`);return d.setAttribute("aria-label","Download subtitles"),d.appendChild(s),chunk2E5GLLOS_cjs.a`${d}`}});return chunk2E5GLLOS_cjs.a`${this._stylesheets} ${o}`}})}
|
|
3
3
|
`}renderPending(){return chunk2E5GLLOS_cjs.a`<slot style="display: none"></slot>`}};i=new WeakSet,l=function(e,n,t){let o=e.querySelector(`[slot="${n}"], [data-slot="${n}"]`);o&&(o.textContent=t,o.removeAttribute("slot"),o.removeAttribute("data-slot"));},C=function(e,n){let t=window.URL.createObjectURL(e),o=document.createElement("a");o.style.display="none",o.href=t,o.download=n,this.appendChild(o),o.click(),window.URL.revokeObjectURL(t),this.removeChild(o);},R=function(e,n){return fetch(e).then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.blob()}).then(t=>chunkJHSFSCC2_cjs.g(this,i,C).call(this,t,n)).catch(t=>console.error("Something went wrong:",t))},g=function(e,n){let t=document.createElement("a");t.classList.add("link"),t.setAttribute("href",e),t.setAttribute("download",n),t.setAttribute("target","new");let o=false;return t.addEventListener("click",a=>{a.preventDefault(),!o&&(o=true,t.style.cursor="wait",t.style.opacity="0.5",chunkJHSFSCC2_cjs.g(this,i,R).call(this,e,n).then(()=>{o=false,t.style.cursor="pointer",t.style.opacity="1";}));}),t},v=function(e){let n=e/1e6;if(n<10)return `${n.toFixed(1)} MB`;let t=n%1!==0;return `${n.toFixed(t?1:0)} MB`},w=function(e){let n=this._data?.video?.version&&this._data.video.version>0?`v${this._data.video.version}/`:"";return `${this.cdn_root}/${this.embedId}/${n}${e}`},z=function(e){let n=e?.codec||"h264",t=e?.size||"hd",o=e?.container||"mp4";return chunkJHSFSCC2_cjs.g(this,i,w).call(this,`${n}_${t}.${o}`)},L=function(e){if(e?.path)return e.path;let n=e?.codec||chunkJHSFSCC2_cjs.g(this,i,y).call(this,e?.filename||"")||"mp3";return chunkJHSFSCC2_cjs.g(this,i,w).call(this,`audio.${n}`)},U=function(){let e=this._data?.video?.renditions||[];if(!e.length)return;let n=e.filter(o=>o.container==="mp4"&&o.codec==="h264"&&(!o.type||o.type==="video")),t=["hd","fhd","sd","qhd","uhd"];for(let o of t){let a=n.find(h=>h.size===o);if(a)return a}return n[0]||e.find(o=>o.type==="video")},F=function(){let e=this._data?.audio_tracks||[];if(e.length)return e.find(n=>n.default)||e[0]},y=function(e){if(!e)return;let n=e.split(".");return n.length>1?n.pop():void 0},f.styles=chunkNPP5B5PV_cjs.a`
|
|
4
4
|
:host {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOFBA5VRE_cjs=require('./chunk-OFBA5VRE.cjs'),chunkTKJYRGEU_cjs=require('./chunk-TKJYRGEU.cjs'),chunkRQN3DXJB_cjs=require('./chunk-RQN3DXJB.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n,C,b,h,f,p,u=class extends chunkTKJYRGEU_cjs.a{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,n);this.order="newest";this.embedController=new chunkRQN3DXJB_cjs.b(this,0);}connectedCallback(){super.connectedCallback(),this.embedController.token=this.token;}requestUpdate(e,o){super.requestUpdate(e,o),e==="embed"&&(this.embedController.token=this.token);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}updated(){this.shadowRoot&&chunkOFBA5VRE_cjs.b(this.shadowRoot);}refresh(){return this.embedController.refresh()}containsEmbed(e){return this._collection?.videos?.some(o=>o.id===e)}getNextForEmbed(e){let o=chunkJHSFSCC2_cjs.g(this,n,C).call(this),t=o.findIndex(s=>s.id===e);if(t!==-1)return o[t+1]}render(){return chunk2E5GLLOS_cjs.a`
|
|
2
2
|
${this.embedController.render({pending:this.renderPending,error:e=>chunk2E5GLLOS_cjs.a`<p>${e instanceof Error?e.message:chunk2E5GLLOS_cjs.e}</p>`,complete:e=>{if(this._collection=e,!e)return this.renderPending();if(e.error)return console.warn(e.error);let o=this._slottedChildren.map(t=>{function s(){let l;return t.nodeName==="TEMPLATE"?l=t.content.cloneNode(true):l=t.cloneNode(true),l}if(t.getAttribute("name")=="list-title"){let l=s();return l.textContent=this._collection?.name,chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-root"&&this.embedController.embed){let l=s(),i=chunkJHSFSCC2_cjs.g(this,n,f).call(this,l,"root-link");return i&&(i.addEventListener("click",a=>{a.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"back",embedId:""}),this.embedController.embed="";}),chunkJHSFSCC2_cjs.g(this,n,p).call(this,i)),chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-folder"){let l=this._collection.collections?.map(i=>{let a=s(),m=chunkJHSFSCC2_cjs.g(this,n,f).call(this,a,"folder-link");return [t,m].forEach(d=>{d instanceof Element&&(d.addEventListener("click",g=>{g.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"show_collection",collectionId:i.id}),this.embedController.embed=i.id;}),chunkJHSFSCC2_cjs.g(this,n,p).call(this,d));}),chunkJHSFSCC2_cjs.g(this,n,h).call(this,a,"folder-title",i.name),typeof i.video_count=="number"&&chunkJHSFSCC2_cjs.g(this,n,h).call(this,a,"folder-count",i.video_count.toString()),chunk2E5GLLOS_cjs.a`${a}`});return chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-item"||!["mave-list-folder","mave-list-item","mave-list-root","list-title"].includes(t.hasAttribute("name")?t.getAttribute("name"):"")&&t.nodeName=="TEMPLATE"){let l=chunkJHSFSCC2_cjs.g(this,n,C).call(this).map((i,a)=>{let m=s(),d=a+1;chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-title",i.name),chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-position",d.toString()),chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-duration",this.durationToTime(i.duration)),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-clip",i.id),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-player",i.id),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-img",i.id);let g=m.querySelector("mave-clip"),S=chunkJHSFSCC2_cjs.g(this,n,f).call(this,m,"item-title"),$=m.querySelector("mave-img");return [g,S,$,m].forEach(P=>{P?.addEventListener("click",x=>{this.emit(this.EVENT_TYPES.CLICK,{action:"show_embed",embedId:i.id,position:d});});}),chunk2E5GLLOS_cjs.a`${m}`});return chunk2E5GLLOS_cjs.a`${l}`}}).filter(t=>t);return chunk2E5GLLOS_cjs.a`${this._stylesheets} ${o}`}})}
|
|
3
3
|
`}renderPending(){return chunk2E5GLLOS_cjs.a`<slot style="display: none"></slot>`}};n=new WeakSet,C=function(){if(!this._collection)return [];let e=this._collection.videos;return this.order=="newest"&&(e=this._collection.videos?.sort((o,t)=>t.created-o.created)),this.order=="oldest"&&(e=this._collection.videos?.sort((o,t)=>o.created-t.created)),this.order=="az"&&(e=this._collection.videos?.sort((o,t)=>o.name.localeCompare(t.name))),this.order=="za"&&(e=this._collection.videos?.sort((o,t)=>t.name.localeCompare(o.name))),e},b=function(e,o,t){let s=e.querySelector(o);s&&(s.setAttribute("embed",t),chunkJHSFSCC2_cjs.g(this,n,p).call(this,s));},h=function(e,o,t){let s=chunkJHSFSCC2_cjs.g(this,n,f).call(this,e,o);s&&(s.textContent=t,chunkJHSFSCC2_cjs.g(this,n,p).call(this,s));},f=function(e,o){return e.querySelector(`[slot="${o}"], [data-slot="${o}"]`)},p=function(e){e&&(e.removeAttribute("slot"),e.removeAttribute("data-slot"));},u.styles=chunkNPP5B5PV_cjs.a`
|
|
4
4
|
:host {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b as b$2}from'./chunk-
|
|
1
|
+
import {b as b$2}from'./chunk-GRBSIFM2.js';import {a as a$2}from'./chunk-SWRFZ3FV.js';import {b as b$1}from'./chunk-OX42Y2HR.js';import {a as a$1}from'./chunk-PTN427IG.js';import {a as a$3,e as e$1}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';import {c,e,g}from'./chunk-KA24PL7V.js';var n,C,b,h,f,p,u=class extends a$2{constructor(){super(...arguments);e(this,n);this.order="newest";this.embedController=new b$1(this,0);}connectedCallback(){super.connectedCallback(),this.embedController.token=this.token;}requestUpdate(e,o){super.requestUpdate(e,o),e==="embed"&&(this.embedController.token=this.token);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}updated(){this.shadowRoot&&b$2(this.shadowRoot);}refresh(){return this.embedController.refresh()}containsEmbed(e){return this._collection?.videos?.some(o=>o.id===e)}getNextForEmbed(e){let o=g(this,n,C).call(this),t=o.findIndex(s=>s.id===e);if(t!==-1)return o[t+1]}render(){return a$3`
|
|
2
2
|
${this.embedController.render({pending:this.renderPending,error:e=>a$3`<p>${e instanceof Error?e.message:e$1}</p>`,complete:e=>{if(this._collection=e,!e)return this.renderPending();if(e.error)return console.warn(e.error);let o=this._slottedChildren.map(t=>{function s(){let l;return t.nodeName==="TEMPLATE"?l=t.content.cloneNode(true):l=t.cloneNode(true),l}if(t.getAttribute("name")=="list-title"){let l=s();return l.textContent=this._collection?.name,a$3`${l}`}if(t.getAttribute("name")=="mave-list-root"&&this.embedController.embed){let l=s(),i=g(this,n,f).call(this,l,"root-link");return i&&(i.addEventListener("click",a=>{a.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"back",embedId:""}),this.embedController.embed="";}),g(this,n,p).call(this,i)),a$3`${l}`}if(t.getAttribute("name")=="mave-list-folder"){let l=this._collection.collections?.map(i=>{let a=s(),m=g(this,n,f).call(this,a,"folder-link");return [t,m].forEach(d=>{d instanceof Element&&(d.addEventListener("click",g=>{g.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"show_collection",collectionId:i.id}),this.embedController.embed=i.id;}),g(this,n,p).call(this,d));}),g(this,n,h).call(this,a,"folder-title",i.name),typeof i.video_count=="number"&&g(this,n,h).call(this,a,"folder-count",i.video_count.toString()),a$3`${a}`});return a$3`${l}`}if(t.getAttribute("name")=="mave-list-item"||!["mave-list-folder","mave-list-item","mave-list-root","list-title"].includes(t.hasAttribute("name")?t.getAttribute("name"):"")&&t.nodeName=="TEMPLATE"){let l=g(this,n,C).call(this).map((i,a)=>{let m=s(),d=a+1;g(this,n,h).call(this,m,"item-title",i.name),g(this,n,h).call(this,m,"item-position",d.toString()),g(this,n,h).call(this,m,"item-duration",this.durationToTime(i.duration)),g(this,n,b).call(this,m,"mave-clip",i.id),g(this,n,b).call(this,m,"mave-player",i.id),g(this,n,b).call(this,m,"mave-img",i.id);let g$1=m.querySelector("mave-clip"),S=g(this,n,f).call(this,m,"item-title"),$=m.querySelector("mave-img");return [g$1,S,$,m].forEach(P=>{P?.addEventListener("click",x=>{this.emit(this.EVENT_TYPES.CLICK,{action:"show_embed",embedId:i.id,position:d});});}),a$3`${m}`});return a$3`${l}`}}).filter(t=>t);return a$3`${this._stylesheets} ${o}`}})}
|
|
3
3
|
`}renderPending(){return a$3`<slot style="display: none"></slot>`}};n=new WeakSet,C=function(){if(!this._collection)return [];let e=this._collection.videos;return this.order=="newest"&&(e=this._collection.videos?.sort((o,t)=>t.created-o.created)),this.order=="oldest"&&(e=this._collection.videos?.sort((o,t)=>o.created-t.created)),this.order=="az"&&(e=this._collection.videos?.sort((o,t)=>o.name.localeCompare(t.name))),this.order=="za"&&(e=this._collection.videos?.sort((o,t)=>t.name.localeCompare(o.name))),e},b=function(e,o,t){let s=e.querySelector(o);s&&(s.setAttribute("embed",t),g(this,n,p).call(this,s));},h=function(e,o,t){let s=g(this,n,f).call(this,e,o);s&&(s.textContent=t,g(this,n,p).call(this,s));},f=function(e,o){return e.querySelector(`[slot="${o}"], [data-slot="${o}"]`)},p=function(e){e&&(e.removeAttribute("slot"),e.removeAttribute("data-slot"));},u.styles=a`
|
|
4
4
|
:host {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkLVGLIRQU_cjs=require('../chunk-LVGLIRQU.cjs');require('../chunk-474VILDO.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveAudioTrackMenu",{enumerable:true,get:function(){return chunkLVGLIRQU_cjs.f}});Object.defineProperty(exports,"MaveAudioTrackMenuButton",{enumerable:true,get:function(){return chunkLVGLIRQU_cjs.g}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{f as MaveAudioTrackMenu,g as MaveAudioTrackMenuButton}from'../chunk-HMVS6DJE.js';import'../chunk-3UQNIS3L.js';import'../chunk-KA24PL7V.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk3BAQWQNY_cjs=require('../chunk-3BAQWQNY.cjs');require('../chunk-474VILDO.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveCaptionsMenuButton",{enumerable:true,get:function(){return chunk3BAQWQNY_cjs.h}});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MediaCaptionsMenuButton } from 'media-chrome/dist/menu/media-captions-menu-button.js';
|
|
2
|
+
|
|
3
|
+
declare class MaveCaptionsMenuButton extends MediaCaptionsMenuButton {
|
|
4
|
+
#private;
|
|
5
|
+
static getTooltipContentHTML: () => string;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { MaveCaptionsMenuButton };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MediaCaptionsMenuButton } from 'media-chrome/dist/menu/media-captions-menu-button.js';
|
|
2
|
+
|
|
3
|
+
declare class MaveCaptionsMenuButton extends MediaCaptionsMenuButton {
|
|
4
|
+
#private;
|
|
5
|
+
static getTooltipContentHTML: () => string;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { MaveCaptionsMenuButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{h as MaveCaptionsMenuButton}from'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/clip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkIETV3B4F_cjs=require('../chunk-IETV3B4F.cjs');require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-FAONFKQ2.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-
|
|
1
|
+
'use strict';var chunkIETV3B4F_cjs=require('../chunk-IETV3B4F.cjs');require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-FAONFKQ2.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkIETV3B4F_cjs.a}});
|
package/dist/components/clip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Clip}from'../chunk-Q3FGRSLA.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-R3SDTEHC.js';import'../chunk-MMHEOMF5.js';import'../chunk-OX42Y2HR.js';import'../chunk-
|
|
1
|
+
export{a as Clip}from'../chunk-Q3FGRSLA.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-R3SDTEHC.js';import'../chunk-MMHEOMF5.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkTJ5F2FGY_cjs=require('../chunk-TJ5F2FGY.cjs');require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkTJ5F2FGY_cjs.a}});
|
package/dist/components/files.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Files}from'../chunk-
|
|
1
|
+
export{a as Files}from'../chunk-NDPOBFNC.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/list.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkYWYZKUFB_cjs=require('../chunk-YWYZKUFB.cjs');require('../chunk-OFBA5VRE.cjs'),require('../chunk-ITC5FANW.cjs'),require('../chunk-CZUMF7SR.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-5QLIDHRT.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkYWYZKUFB_cjs.a}});
|
package/dist/components/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as List}from'../chunk-
|
|
1
|
+
export{a as List}from'../chunk-ZWLZE25P.js';import'../chunk-GRBSIFM2.js';import'../chunk-EA4QYQHD.js';import'../chunk-RWRHU74Q.js';import'../chunk-WE5NUDRY.js';import'../chunk-GSVKVWEI.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkITC5FANW_cjs=require('../chunk-ITC5FANW.cjs');require('../chunk-CZUMF7SR.cjs'),require('../chunk-5QLIDHRT.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkITC5FANW_cjs.a}});
|
|
@@ -58,6 +58,10 @@ declare class Player extends MaveElement {
|
|
|
58
58
|
private _currentAudioTrackMenu?;
|
|
59
59
|
private _themeMutationObserver?;
|
|
60
60
|
private _themeMutationObserverRoot?;
|
|
61
|
+
private _controlColorsKey?;
|
|
62
|
+
private _controlColors?;
|
|
63
|
+
private _contrastQuery?;
|
|
64
|
+
private _contrastQueryHandler?;
|
|
61
65
|
static styles: lit.CSSResult;
|
|
62
66
|
private _intersectionObserver;
|
|
63
67
|
private embedController;
|
|
@@ -58,6 +58,10 @@ declare class Player extends MaveElement {
|
|
|
58
58
|
private _currentAudioTrackMenu?;
|
|
59
59
|
private _themeMutationObserver?;
|
|
60
60
|
private _themeMutationObserverRoot?;
|
|
61
|
+
private _controlColorsKey?;
|
|
62
|
+
private _controlColors?;
|
|
63
|
+
private _contrastQuery?;
|
|
64
|
+
private _contrastQueryHandler?;
|
|
61
65
|
static styles: lit.CSSResult;
|
|
62
66
|
private _intersectionObserver;
|
|
63
67
|
private embedController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Player}from'../chunk-
|
|
1
|
+
export{a as Player}from'../chunk-EA4QYQHD.js';import'../chunk-RWRHU74Q.js';import'../chunk-GSVKVWEI.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/pop.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOFBA5VRE_cjs=require('../chunk-OFBA5VRE.cjs');require('../chunk-ITC5FANW.cjs'),require('../chunk-CZUMF7SR.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-5QLIDHRT.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkOFBA5VRE_cjs.a}});Object.defineProperty(exports,"checkPop",{enumerable:true,get:function(){return chunkOFBA5VRE_cjs.b}});
|
package/dist/components/pop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Pop,b as checkPop}from'../chunk-
|
|
1
|
+
export{a as Pop,b as checkPop}from'../chunk-GRBSIFM2.js';import'../chunk-EA4QYQHD.js';import'../chunk-RWRHU74Q.js';import'../chunk-WE5NUDRY.js';import'../chunk-GSVKVWEI.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/text.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk2FUCHY2J_cjs=require('../chunk-2FUCHY2J.cjs');require('../chunk-QQDH35OW.cjs'),require('../chunk-K5Z7QHTN.cjs'),require('../chunk-FAONFKQ2.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-
|
|
1
|
+
'use strict';var chunk2FUCHY2J_cjs=require('../chunk-2FUCHY2J.cjs');require('../chunk-QQDH35OW.cjs'),require('../chunk-K5Z7QHTN.cjs'),require('../chunk-FAONFKQ2.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunk2FUCHY2J_cjs.a}});
|
package/dist/components/text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Text}from'../chunk-TH3DUBVR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-CNPQ5Q2M.js';import'../chunk-R3SDTEHC.js';import'../chunk-MMHEOMF5.js';import'../chunk-
|
|
1
|
+
export{a as Text}from'../chunk-TH3DUBVR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-CNPQ5Q2M.js';import'../chunk-R3SDTEHC.js';import'../chunk-MMHEOMF5.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkYWYZKUFB_cjs=require('./chunk-YWYZKUFB.cjs'),chunkOFBA5VRE_cjs=require('./chunk-OFBA5VRE.cjs'),chunkITC5FANW_cjs=require('./chunk-ITC5FANW.cjs');require('./chunk-CZUMF7SR.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunkN2L5GXPF_cjs=require('./chunk-N2L5GXPF.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-5QLIDHRT.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkIETV3B4F_cjs=require('./chunk-IETV3B4F.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs');var chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs');require('./chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkAOBEOJ2U_cjs.a}});Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkYWYZKUFB_cjs.a}});Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkOFBA5VRE_cjs.a}});Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkITC5FANW_cjs.a}});Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunk2FUCHY2J_cjs.a}});Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunkN2L5GXPF_cjs.a}});Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkIETV3B4F_cjs.a}});Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkTJ5F2FGY_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunkEVKPEPYP_cjs.b}});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as List}from'./chunk-
|
|
1
|
+
export{a as Image}from'./chunk-WOXKZOJ3.js';export{a as List}from'./chunk-ZWLZE25P.js';export{a as Pop}from'./chunk-GRBSIFM2.js';export{a as Player}from'./chunk-EA4QYQHD.js';import'./chunk-RWRHU74Q.js';export{a as Text}from'./chunk-TH3DUBVR.js';export{a as Upload}from'./chunk-TFOTA27Y.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-GSVKVWEI.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';export{a as Clip}from'./chunk-Q3FGRSLA.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';export{a as Files}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';export{b as setConfig}from'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkYWYZKUFB_cjs=require('./chunk-YWYZKUFB.cjs'),chunkOFBA5VRE_cjs=require('./chunk-OFBA5VRE.cjs'),chunkITC5FANW_cjs=require('./chunk-ITC5FANW.cjs');require('./chunk-CZUMF7SR.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunkN2L5GXPF_cjs=require('./chunk-N2L5GXPF.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-5QLIDHRT.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkIETV3B4F_cjs=require('./chunk-IETV3B4F.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs');var chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs');require('./chunk-JHSFSCC2.cjs');var react=require('@lit/react'),t=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var t__default=/*#__PURE__*/_interopDefault(t);function o(c,C){typeof window>"u"||window.customElements&&(window.customElements.get(c)||window.customElements.define(c,C));}o("mave-clip",chunkIETV3B4F_cjs.a);var d=react.createComponent({tagName:"mave-clip",elementClass:chunkIETV3B4F_cjs.a,react:t__default.default});o("mave-list",chunkYWYZKUFB_cjs.a);var w=react.createComponent({tagName:"mave-list",elementClass:chunkYWYZKUFB_cjs.a,react:t__default.default});o("mave-player",chunkITC5FANW_cjs.a);var y=react.createComponent({tagName:"mave-player",elementClass:chunkITC5FANW_cjs.a,react:t__default.default});o("mave-upload",chunkN2L5GXPF_cjs.a);var E=react.createComponent({tagName:"mave-upload",elementClass:chunkN2L5GXPF_cjs.a,react:t__default.default});o("mave-files",chunkTJ5F2FGY_cjs.a);var I=react.createComponent({tagName:"mave-files",elementClass:chunkTJ5F2FGY_cjs.a,react:t__default.default});o("mave-img",chunkAOBEOJ2U_cjs.a);var T=react.createComponent({tagName:"mave-img",elementClass:chunkAOBEOJ2U_cjs.a,react:t__default.default});o("mave-text",chunk2FUCHY2J_cjs.a);var D=react.createComponent({tagName:"mave-text",elementClass:chunk2FUCHY2J_cjs.a,react:t__default.default});o("mave-pop",chunkOFBA5VRE_cjs.a);var b=react.createComponent({tagName:"mave-pop",elementClass:chunkOFBA5VRE_cjs.a,react:t__default.default});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunkEVKPEPYP_cjs.b}});exports.Clip=d;exports.Files=I;exports.Image=T;exports.List=w;exports.Player=y;exports.Pop=b;exports.Text=D;exports.Upload=E;
|
package/dist/react.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$5}from'./chunk-WOXKZOJ3.js';import {a as a$1}from'./chunk-ZWLZE25P.js';import {a as a$7}from'./chunk-GRBSIFM2.js';import {a as a$2}from'./chunk-EA4QYQHD.js';import'./chunk-RWRHU74Q.js';import {a as a$6}from'./chunk-TH3DUBVR.js';import {a as a$3}from'./chunk-TFOTA27Y.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-GSVKVWEI.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';import {a}from'./chunk-Q3FGRSLA.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';import {a as a$4}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';export{b as setConfig}from'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js';import {createComponent}from'@lit/react';import t from'react';function o(c,C){typeof window>"u"||window.customElements&&(window.customElements.get(c)||window.customElements.define(c,C));}o("mave-clip",a);var d=createComponent({tagName:"mave-clip",elementClass:a,react:t});o("mave-list",a$1);var w=createComponent({tagName:"mave-list",elementClass:a$1,react:t});o("mave-player",a$2);var y=createComponent({tagName:"mave-player",elementClass:a$2,react:t});o("mave-upload",a$3);var E=createComponent({tagName:"mave-upload",elementClass:a$3,react:t});o("mave-files",a$4);var I=createComponent({tagName:"mave-files",elementClass:a$4,react:t});o("mave-img",a$5);var T=createComponent({tagName:"mave-img",elementClass:a$5,react:t});o("mave-text",a$6);var D=createComponent({tagName:"mave-text",elementClass:a$6,react:t});o("mave-pop",a$7);var b=createComponent({tagName:"mave-pop",elementClass:a$7,react:t});export{d as Clip,I as Files,T as Image,w as List,y as Player,b as Pop,D as Text,E as Upload};
|