@maveio/components 0.0.163 → 0.0.165
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-27BWRXCN.js +29 -0
- package/dist/{chunk-ZTCF6574.js → chunk-2ULDXMYP.js} +1 -1
- package/dist/{chunk-B3QILQEE.cjs → chunk-3T573OW4.cjs} +10 -10
- package/dist/chunk-55JWHJJ5.cjs +211 -0
- package/dist/chunk-6XBQ5C3V.js +17 -0
- package/dist/chunk-BN4D4W23.js +20 -0
- package/dist/chunk-BS3IICLO.cjs +20 -0
- package/dist/{chunk-XLUB3ATV.js → chunk-BSJIDMTZ.js} +3 -9
- package/dist/chunk-D7LG2SMD.cjs +33 -0
- package/dist/{chunk-24TUG5TP.js → chunk-E7TZALBH.js} +1 -1
- package/dist/chunk-GO6BV3T4.cjs +29 -0
- package/dist/{chunk-EKNCY5EP.js → chunk-H5S4QWRJ.js} +1 -1
- package/dist/{chunk-6XR2OUZW.js → chunk-HT464LCH.js} +1 -1
- package/dist/chunk-J74VK4RB.cjs +9 -0
- package/dist/{chunk-KVMGCTLR.cjs → chunk-JR7IABIG.cjs} +3 -9
- package/dist/{chunk-EOHKHSQ3.cjs → chunk-JUDFZS5N.cjs} +1 -1
- package/dist/{chunk-HKQCX6NF.js → chunk-K36YHFDX.js} +1 -1
- package/dist/chunk-KUPCZDOX.cjs +10 -0
- package/dist/{chunk-DBQSBUJS.cjs → chunk-LLRH3JIV.cjs} +222 -157
- package/dist/chunk-M22WSPSU.js +9 -0
- package/dist/chunk-NB5PC42C.js +33 -0
- package/dist/{chunk-7XTOYROL.js → chunk-NNH623PH.js} +225 -160
- package/dist/{chunk-FS4URBZN.cjs → chunk-NQBXIQGV.cjs} +1 -1
- package/dist/chunk-O2WRWRDO.cjs +9 -0
- package/dist/chunk-OIZ5B5LE.cjs +17 -0
- package/dist/{chunk-YT56YDUY.cjs → chunk-PXLLLBZ3.cjs} +1 -1
- package/dist/{chunk-CHHWULL2.js → chunk-PZSV3LCB.js} +1 -1
- package/dist/{chunk-MLZIA6JO.cjs → chunk-QLCBHFAG.cjs} +9 -9
- package/dist/{chunk-ZWTODZDA.js → chunk-SF36AD3G.js} +1 -1
- package/dist/chunk-TSTFPNEM.js +211 -0
- package/dist/{chunk-QGSHEFIF.cjs → chunk-UOAF4SEH.cjs} +3 -3
- package/dist/{chunk-FUBUUA7Y.cjs → chunk-WIS6FQDY.cjs} +2 -50
- package/dist/{chunk-HX6F65VL.js → chunk-WO4HFIOO.js} +1 -1
- package/dist/{chunk-QJHVSRHC.cjs → chunk-YKO34INI.cjs} +1 -1
- package/dist/{chunk-HMISRRKC.js → chunk-ZJWT7IOI.js} +2 -50
- package/dist/{chunk-BY7JWUPM.cjs → chunk-ZOMPIWHG.cjs} +4 -4
- package/dist/{chunk-QSQE5WBN.js → chunk-ZUM5T3HV.js} +1 -1
- package/dist/{chunk-3R7TX6NC.js → chunk-ZZBI6DXY.js} +1 -1
- 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/img.cjs +1 -1
- package/dist/components/img.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 +7 -0
- package/dist/components/player.d.ts +7 -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/components/upload.cjs +1 -1
- package/dist/components/upload.js +1 -1
- package/dist/embed/api.d.cts +3 -1
- package/dist/embed/api.d.ts +3 -1
- package/dist/embed/caption.cjs +1 -1
- package/dist/embed/caption.js +1 -1
- package/dist/embed/controller.cjs +1 -1
- package/dist/embed/controller.js +1 -1
- package/dist/generated/locales/de.cjs +1 -1
- package/dist/generated/locales/de.d.cts +6 -4
- package/dist/generated/locales/de.d.ts +6 -4
- package/dist/generated/locales/de.js +1 -1
- package/dist/generated/locales/en.cjs +1 -1
- package/dist/generated/locales/en.d.cts +6 -4
- package/dist/generated/locales/en.d.ts +6 -4
- package/dist/generated/locales/en.js +1 -1
- package/dist/generated/locales/fr.cjs +1 -1
- package/dist/generated/locales/fr.d.cts +6 -4
- package/dist/generated/locales/fr.d.ts +6 -4
- package/dist/generated/locales/fr.js +1 -1
- package/dist/generated/locales/nl.cjs +1 -1
- package/dist/generated/locales/nl.d.cts +6 -4
- package/dist/generated/locales/nl.d.ts +6 -4
- package/dist/generated/locales/nl.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/loader.cjs +1 -1
- package/dist/themes/loader.js +1 -1
- package/dist/utils/localization.cjs +1 -1
- package/dist/utils/localization.js +1 -1
- package/dist/utils/mave_element.cjs +1 -1
- package/dist/utils/mave_element.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/package.json +6 -6
- package/dist/chunk-5NSCV6C2.cjs +0 -53
- package/dist/chunk-5ZESCVE3.cjs +0 -213
- package/dist/chunk-7ZRXZY5C.js +0 -20
- package/dist/chunk-A4GZBQEB.js +0 -53
- package/dist/chunk-BNCWRH2S.js +0 -213
- package/dist/chunk-FRPU6QLJ.js +0 -93
- package/dist/chunk-H57FX4I6.cjs +0 -9
- package/dist/chunk-LCTGZL3L.js +0 -23
- package/dist/chunk-LG2O4WV2.cjs +0 -23
- package/dist/chunk-MS5NFI3Q.js +0 -9
- package/dist/chunk-MSWONVA7.cjs +0 -20
- package/dist/chunk-PHGKLFNF.cjs +0 -93
- package/dist/chunk-Q22T22LT.cjs +0 -9
- package/dist/chunk-ZLS57S3I.cjs +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkLLRH3JIV_cjs=require('./chunk-LLRH3JIV.cjs'),chunkO2WRWRDO_cjs=require('./chunk-O2WRWRDO.cjs'),chunkWIS6FQDY_cjs=require('./chunk-WIS6FQDY.cjs'),chunkGO6BV3T4_cjs=require('./chunk-GO6BV3T4.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n=class extends chunkGO6BV3T4_cjs.i{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 chunkO2WRWRDO_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 chunkGO6BV3T4_cjs.c`
|
|
2
2
|
<dialog style=${this.styles}>
|
|
3
3
|
<div class="backdrop"></div>
|
|
4
4
|
<div class="content" @click=${this.possibleClose}>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</svg>
|
|
28
28
|
</div>
|
|
29
29
|
</dialog>
|
|
30
|
-
`}};n.styles=
|
|
30
|
+
`}};n.styles=chunkGO6BV3T4_cjs.h`
|
|
31
31
|
:host {
|
|
32
32
|
all: initial;
|
|
33
33
|
--backdrop: black;
|
|
@@ -151,4 +151,4 @@
|
|
|
151
151
|
background-position: center center;
|
|
152
152
|
background-repeat: no-repeat;
|
|
153
153
|
}
|
|
154
|
-
`,chunkJHSFSCC2_cjs.c([
|
|
154
|
+
`,chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.c("dialog")],n.prototype,"_dialog",2),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.c(".content")],n.prototype,"_content",2),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.c(".frame")],n.prototype,"_frame",2),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.c(".backdrop")],n.prototype,"_backdrop",2),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.a()],n.prototype,"backdrop",1),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_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 chunkLLRH3JIV_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=_;
|
|
@@ -1,55 +1,14 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkGO6BV3T4_cjs=require('./chunk-GO6BV3T4.cjs');var f={attribute:true,type:String,converter:chunkGO6BV3T4_cjs.a,reflect:false,hasChanged:chunkGO6BV3T4_cjs.b},h=(e=f,n,t)=>{let{kind:s,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,e),s==="accessor"){let{name:r}=t;return {set(c){let o=n.get.call(this);n.set.call(this,c),this.requestUpdate(r,o,e);},init(c){return c!==void 0&&this.P(r,void 0,e),c}}}if(s==="setter"){let{name:r}=t;return function(c){let o=this[r];n.call(this,c),this.requestUpdate(r,o,e);}}throw Error("Unsupported decorator location: "+s)};function d(e){return (n,t)=>typeof t=="object"?h(e,n,t):((s,i,a)=>{let r=i.hasOwnProperty(a);return i.constructor.createProperty(a,r?{...s,wrapped:true}:s),r?Object.getOwnPropertyDescriptor(i,a):void 0})(e,n,t)}function b(e){return d({...e,state:true,attribute:false})}var u=(e,n,t)=>(t.configurable=true,t.enumerable=true,Reflect.decorate&&typeof n!="object"&&Object.defineProperty(e,n,t),t);function E(e,n){return (t,s,i)=>{let a=r=>r.renderRoot?.querySelector(e)??null;if(n){let{get:r,set:c}=typeof s=="object"?t:i??(()=>{let o=Symbol();return {get(){return this[o]},set(m){this[o]=m;}}})();return u(t,s,{get(){let o=r.call(this);return o===void 0&&(o=a(this),(o!==null||this.hasUpdated)&&c.call(this,o)),o}})}return u(t,s,{get(){return a(this)}})}}/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
@lit/reactive-element/decorators/property.js:
|
|
4
|
-
(**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright 2017 Google LLC
|
|
7
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
-
*)
|
|
9
|
-
|
|
10
4
|
@lit/reactive-element/decorators/state.js:
|
|
11
|
-
(**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2017 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*)
|
|
16
|
-
|
|
17
5
|
@lit/reactive-element/decorators/base.js:
|
|
18
|
-
(**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2017 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*)
|
|
23
|
-
|
|
24
6
|
@lit/reactive-element/decorators/query.js:
|
|
25
|
-
(**
|
|
26
|
-
* @license
|
|
27
|
-
* Copyright 2017 Google LLC
|
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*)
|
|
30
|
-
|
|
31
7
|
@lit/reactive-element/decorators/custom-element.js:
|
|
32
|
-
(**
|
|
33
|
-
* @license
|
|
34
|
-
* Copyright 2017 Google LLC
|
|
35
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*)
|
|
37
|
-
|
|
38
8
|
@lit/reactive-element/decorators/event-options.js:
|
|
39
|
-
(**
|
|
40
|
-
* @license
|
|
41
|
-
* Copyright 2017 Google LLC
|
|
42
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*)
|
|
44
|
-
|
|
45
9
|
@lit/reactive-element/decorators/query-all.js:
|
|
46
|
-
(**
|
|
47
|
-
* @license
|
|
48
|
-
* Copyright 2017 Google LLC
|
|
49
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
-
*)
|
|
51
|
-
|
|
52
10
|
@lit/reactive-element/decorators/query-async.js:
|
|
11
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
53
12
|
(**
|
|
54
13
|
* @license
|
|
55
14
|
* Copyright 2017 Google LLC
|
|
@@ -62,11 +21,4 @@
|
|
|
62
21
|
* Copyright 2021 Google LLC
|
|
63
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
23
|
*)
|
|
65
|
-
|
|
66
|
-
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
67
|
-
(**
|
|
68
|
-
* @license
|
|
69
|
-
* Copyright 2017 Google LLC
|
|
70
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*)
|
|
72
24
|
*/exports.a=d;exports.b=b;exports.c=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-F6EKAS27.js';import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-F6EKAS27.js';import {a as a$1}from'./chunk-6XBQ5C3V.js';import {a as a$3}from'./chunk-JBV2AYRP.js';var c=(t=>(t[t.Collection=0]="Collection",t[t.Embed=1]="Embed",t))(c||{}),a=class{constructor(e,t=1){this.caching=true;this.loading=true;this.host=e,this.type=t,this.loading=true,this.task=new a$1(this.host,async()=>{try{if(this.type==1&&!this.embed)return;if(this.type==0&&!this.token){console.warn("No token attr provided for mave-list");return}let i=await(await fetch(this.manifest_url)).json();return this.loading=!1,this.type==1?(this._embedData=i,this.version=this._embedData.video?.version||0,this._embedData):i}catch(s){throw console.log(s),new Error(`Failed to fetch "${this.embed}"`)}},()=>[this.embed]);}get manifest_url(){if(this.type==1)return this.embedFile("manifest.json");{let e=new URL(`${a$2}/collection/${this.token}`);return this.embed&&this.embed?.length>1&&e.searchParams.append("embed",this.embed),e.toString()}}set embed(e){this._embed!=e&&(this._embed=e,this.loading=true,this.host.requestUpdate());}get embed(){return this._embed}set token(e){this._token!=e&&(this._token=e,this.host.requestUpdate());}get token(){return this._token}get spaceId(){return this.embed?.substring(0,5)}get embedId(){return this.embed?.substring(5,this.embed?.length)}get version(){return this._version?`/v${this._version}/`:"/"}set version(e){this._version!=e&&(this._version=e,this.host.requestUpdate());}get cdnRoot(){return a$3.cdn.endpoint.replace("${this.spaceId}",this.spaceId)}refresh(){return this.loading=true,this.task?.run()}embedFile(e,t=new URLSearchParams){let s=new URL(`${this.cdnRoot}/${this.embedId}${e=="manifest.json"?"/":this.version}${e}`);if(e.includes("?")){let[i,h]=e.split("?");new URLSearchParams(h).forEach((d,m)=>{t.append(m,d);});}return this.token&&t.append("token",this.token),e=="manifest.json"&&(t.has("e")&&t.delete("e"),t.append("e",new Date().getTime().toString())),e!=="manifest.json"&&!this.caching&&(t.has("e")||t.append("e",new Date().getTime().toString())),s.search=t.toString(),s.toString()}render(e){return this.task?.render(e)}};export{c as a,a as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOIZ5B5LE_cjs=require('./chunk-OIZ5B5LE.cjs'),chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');var p=class{constructor(e,d){this.host=e,this.embed=d,this.task=new chunkOIZ5B5LE_cjs.a(this.host,async()=>{try{let i=this.embedFile("subtitle.json"),c=await fetch(i);if(c.status!==200)throw new Error;let u=await c.json(),f=u.segments.flatMap(t=>t.words).map(t=>({start:t.start,end:t.end,word:t.word.trim()})),r=[],n={start:0,end:0,text:"",words:[]};f.forEach(t=>{let{start:a,end:o,word:s}=t;n.start===0&&(n.start=a),n.end=o,n.words.push(t),n.text+=(n.text?" ":"")+s,/[.!?]$/.test(s)&&(r.push({...n}),n={start:0,end:0,text:"",words:[]});}),n.words.length>0&&r.push({...n});let h=[],l=1,w=5;if(r.length>0){let t={start:r[0].start,end:r[0].end,text:r[0].text,words:r[0].words},a=1;for(let o=1;o<r.length;o++){let s=r[o],b=r[o-1],S=s.start??0,k=b.end??0;S-k<=l&&a<w?(t.end=s.end,t.text+=" "+s.text,t.words=[...t.words,...s.words],a++):(h.push({...t}),t={start:s.start,end:s.end,text:s.text,words:s.words},a=1);}t.words.length>0&&h.push(t);}return {text:u.text,segments:h}}catch{throw console.warn(`Failed to fetch language file for "${this.embed}"`),new Error}},()=>[this.embed]);}set embed(e){this._embed!=e&&(this._embed=e,this.host.requestUpdate());}get embed(){return this._embed}set token(e){this._token!=e&&(this._token=e,this.host.requestUpdate());}get token(){return this._token}get spaceId(){return this.embed.substring(0,5)}get embedId(){return this.embed.substring(5,this.embed.length)}get version(){return this._version?`/v${this._version}/`:"/"}set version(e){this._version!=e&&(this._version=e,this.host.requestUpdate());}get cdnRoot(){return chunk5STN56TL_cjs.a.cdn.endpoint.replace("${this.spaceId}",this.spaceId)}embedFile(e,d=new URLSearchParams){let i=new URL(`${this.cdnRoot}/${this.embedId}${e=="manifest.json"?"/":this.version}${e}`);return this.token&&d.append("token",this.token),i.search=d.toString(),i.toString()}render(e){return this.task?.render(e)}};exports.a=p;
|
|
@@ -1,55 +1,14 @@
|
|
|
1
|
-
import {b as b$1,a}from'./chunk-
|
|
1
|
+
import {b as b$1,a}from'./chunk-27BWRXCN.js';var f={attribute:true,type:String,converter:a,reflect:false,hasChanged:b$1},h=(e=f,n,t)=>{let{kind:s,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,e),s==="accessor"){let{name:r}=t;return {set(c){let o=n.get.call(this);n.set.call(this,c),this.requestUpdate(r,o,e);},init(c){return c!==void 0&&this.P(r,void 0,e),c}}}if(s==="setter"){let{name:r}=t;return function(c){let o=this[r];n.call(this,c),this.requestUpdate(r,o,e);}}throw Error("Unsupported decorator location: "+s)};function d(e){return (n,t)=>typeof t=="object"?h(e,n,t):((s,i,a)=>{let r=i.hasOwnProperty(a);return i.constructor.createProperty(a,r?{...s,wrapped:true}:s),r?Object.getOwnPropertyDescriptor(i,a):void 0})(e,n,t)}function b(e){return d({...e,state:true,attribute:false})}var u=(e,n,t)=>(t.configurable=true,t.enumerable=true,Reflect.decorate&&typeof n!="object"&&Object.defineProperty(e,n,t),t);function E(e,n){return (t,s,i)=>{let a=r=>r.renderRoot?.querySelector(e)??null;if(n){let{get:r,set:c}=typeof s=="object"?t:i??(()=>{let o=Symbol();return {get(){return this[o]},set(m){this[o]=m;}}})();return u(t,s,{get(){let o=r.call(this);return o===void 0&&(o=a(this),(o!==null||this.hasUpdated)&&c.call(this,o)),o}})}return u(t,s,{get(){return a(this)}})}}/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
@lit/reactive-element/decorators/property.js:
|
|
4
|
-
(**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright 2017 Google LLC
|
|
7
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
-
*)
|
|
9
|
-
|
|
10
4
|
@lit/reactive-element/decorators/state.js:
|
|
11
|
-
(**
|
|
12
|
-
* @license
|
|
13
|
-
* Copyright 2017 Google LLC
|
|
14
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*)
|
|
16
|
-
|
|
17
5
|
@lit/reactive-element/decorators/base.js:
|
|
18
|
-
(**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2017 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*)
|
|
23
|
-
|
|
24
6
|
@lit/reactive-element/decorators/query.js:
|
|
25
|
-
(**
|
|
26
|
-
* @license
|
|
27
|
-
* Copyright 2017 Google LLC
|
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*)
|
|
30
|
-
|
|
31
7
|
@lit/reactive-element/decorators/custom-element.js:
|
|
32
|
-
(**
|
|
33
|
-
* @license
|
|
34
|
-
* Copyright 2017 Google LLC
|
|
35
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*)
|
|
37
|
-
|
|
38
8
|
@lit/reactive-element/decorators/event-options.js:
|
|
39
|
-
(**
|
|
40
|
-
* @license
|
|
41
|
-
* Copyright 2017 Google LLC
|
|
42
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*)
|
|
44
|
-
|
|
45
9
|
@lit/reactive-element/decorators/query-all.js:
|
|
46
|
-
(**
|
|
47
|
-
* @license
|
|
48
|
-
* Copyright 2017 Google LLC
|
|
49
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
-
*)
|
|
51
|
-
|
|
52
10
|
@lit/reactive-element/decorators/query-async.js:
|
|
11
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
53
12
|
(**
|
|
54
13
|
* @license
|
|
55
14
|
* Copyright 2017 Google LLC
|
|
@@ -62,11 +21,4 @@ import {b as b$1,a}from'./chunk-A4GZBQEB.js';var f={attribute:true,type:String,c
|
|
|
62
21
|
* Copyright 2021 Google LLC
|
|
63
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
23
|
*)
|
|
65
|
-
|
|
66
|
-
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
67
|
-
(**
|
|
68
|
-
* @license
|
|
69
|
-
* Copyright 2017 Google LLC
|
|
70
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*)
|
|
72
24
|
*/export{d as a,b,E as c};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
${this.embedController.render({pending:this.renderPending,error:e=>
|
|
3
|
-
`}renderPending(){return
|
|
1
|
+
'use strict';var chunkUOAF4SEH_cjs=require('./chunk-UOAF4SEH.cjs'),chunkPXLLLBZ3_cjs=require('./chunk-PXLLLBZ3.cjs'),chunkJUDFZS5N_cjs=require('./chunk-JUDFZS5N.cjs'),chunkWIS6FQDY_cjs=require('./chunk-WIS6FQDY.cjs'),chunkGO6BV3T4_cjs=require('./chunk-GO6BV3T4.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n,C,b,h,f,p,u=class extends chunkJUDFZS5N_cjs.a{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,n);this.order="newest";this.embedController=new chunkPXLLLBZ3_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&&chunkUOAF4SEH_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 chunkGO6BV3T4_cjs.c`
|
|
2
|
+
${this.embedController.render({pending:this.renderPending,error:e=>chunkGO6BV3T4_cjs.c`<p>${e instanceof Error?e.message:chunkGO6BV3T4_cjs.f}</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,chunkGO6BV3T4_cjs.c`${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)),chunkGO6BV3T4_cjs.c`${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()),chunkGO6BV3T4_cjs.c`${a}`});return chunkGO6BV3T4_cjs.c`${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});});}),chunkGO6BV3T4_cjs.c`${m}`});return chunkGO6BV3T4_cjs.c`${l}`}}).filter(t=>t);return chunkGO6BV3T4_cjs.c`${this._stylesheets} ${o}`}})}
|
|
3
|
+
`}renderPending(){return chunkGO6BV3T4_cjs.c`<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=chunkGO6BV3T4_cjs.h`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
6
6
|
}
|
|
7
|
-
`,chunkJHSFSCC2_cjs.c([
|
|
7
|
+
`,chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.a()],u.prototype,"token",2),chunkJHSFSCC2_cjs.c([chunkWIS6FQDY_cjs.a()],u.prototype,"order",2);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-list")||window.customElements.define("mave-list",u));exports.a=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-M22WSPSU.js';import {a as a$1}from'./chunk-SF36AD3G.js';import {a as a$3}from'./chunk-ZZBI6DXY.js';import {a,b}from'./chunk-ZJWT7IOI.js';import {h,i,f,c as c$1}from'./chunk-27BWRXCN.js';import {c,e,g}from'./chunk-KA24PL7V.js';var o,k,C,S,n=class extends i{constructor(){super(...arguments);e(this,o);this._clickable=true;this._autoscroll=true;this._lastScrollTime=0;this.currentTime=0;}get embed(){return this._embedId}set embed(t){this._embedId!=t&&(this._embedId=t,this.captionController=new a$1(this,this.embed),this.reset(),this.requestUpdate("embed"));}get clickable(){return this._clickable}set clickable(t){this._clickable!=t&&(typeof t=="string"?this._clickable=t==="true"||t==="":this._clickable=t,this.requestUpdate("clickable"));}get autoscroll(){return this._autoscroll}set autoscroll(t){this._autoscroll!=t&&(typeof t=="string"?this._autoscroll=t==="true"||t==="":this._autoscroll=t,this.requestUpdate("autoscroll"));}get wordIndex(){return this._wordIndex}set wordIndex(t){if(this._wordIndex!=t&&(this._wordIndex=t,this.autoscroll)){let e=this.shadowRoot?.querySelector(`[data-word-id="word-${this.segmentIndex}-${this.wordIndex}"]`);if(e&&this._lastScrollTime+2500<Date.now()){let r=this.getBoundingClientRect(),i=e.getBoundingClientRect(),s=i.top-r.top;if(s>0){let c=this.scrollTop+s;g(this,o,k).call(this,this,c-i.height/2);}}}}get segmentIndex(){return this._segmentIndex}set segmentIndex(t){this._segmentIndex!=t&&(this._segmentIndex=t);}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",g(this,o,C).bind(this)),this.reset();}reset(){if(typeof document>"u")return;this.loop=false,this.currentTime=0,this.wordIndex=0,this.segmentIndex=0;let t=document.querySelector(`mave-player[embed="${this.embed}"]`);t&&(this.player=t,t.addEventListener("play",()=>{this.loop=true,this.loopUpdateTime();}),t.addEventListener("pause",()=>{this.loop=false;}));}updateTime(){this.currentTime=this.player.currentTime;}loopUpdateTime(){this.updateTime(),setTimeout(()=>{this.loop&&requestAnimationFrame(this.loopUpdateTime.bind(this));},10);}inRange({start:t,end:e},r,i,s){if(this.currentTime>=t&&this.currentTime<=e)return s&&(this.wordIndex=s),i&&(this.segmentIndex=i),r||true}segmentStyle(){return this.clickable?{cursor:"pointer"}:{}}wordStyle(t){return t?{"background-color":this.highlight}:{}}render(){return this.captionController?this.captionController.render({complete:t=>(this.captions=t,c$1`
|
|
2
2
|
<div>
|
|
3
3
|
${this.captions.segments.map((e,r)=>c$1`
|
|
4
4
|
<p
|
package/dist/components/clip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkQLCBHFAG_cjs=require('../chunk-QLCBHFAG.cjs');require('../chunk-JR7IABIG.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-J74VK4RB.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-PXLLLBZ3.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-OIZ5B5LE.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkQLCBHFAG_cjs.a}});
|
package/dist/components/clip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Clip}from'../chunk-
|
|
1
|
+
export{a as Clip}from'../chunk-PZSV3LCB.js';import'../chunk-BSJIDMTZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-ZZBI6DXY.js';import'../chunk-MMHEOMF5.js';import'../chunk-WO4HFIOO.js';import'../chunk-F6EKAS27.js';import'../chunk-6XBQ5C3V.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkBS3IICLO_cjs=require('../chunk-BS3IICLO.cjs');require('../chunk-PXLLLBZ3.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-OIZ5B5LE.cjs'),require('../chunk-JUDFZS5N.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkBS3IICLO_cjs.a}});
|
package/dist/components/files.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Files}from'../chunk-
|
|
1
|
+
export{a as Files}from'../chunk-BN4D4W23.js';import'../chunk-WO4HFIOO.js';import'../chunk-F6EKAS27.js';import'../chunk-6XBQ5C3V.js';import'../chunk-E7TZALBH.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/img.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkKUPCZDOX_cjs=require('../chunk-KUPCZDOX.cjs');require('../chunk-JUDFZS5N.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkKUPCZDOX_cjs.a}});
|
package/dist/components/img.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Image}from'../chunk-
|
|
1
|
+
export{a as Image}from'../chunk-HT464LCH.js';import'../chunk-E7TZALBH.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/list.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZOMPIWHG_cjs=require('../chunk-ZOMPIWHG.cjs');require('../chunk-UOAF4SEH.cjs'),require('../chunk-LLRH3JIV.cjs'),require('../chunk-NQBXIQGV.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-D7LG2SMD.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-O2WRWRDO.cjs'),require('../chunk-DITZCOYN.cjs'),require('../chunk-JR7IABIG.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-PXLLLBZ3.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-OIZ5B5LE.cjs'),require('../chunk-JUDFZS5N.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkZOMPIWHG_cjs.a}});
|
package/dist/components/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as List}from'../chunk-
|
|
1
|
+
export{a as List}from'../chunk-2ULDXMYP.js';import'../chunk-H5S4QWRJ.js';import'../chunk-NNH623PH.js';import'../chunk-K36YHFDX.js';import'../chunk-WE5NUDRY.js';import'../chunk-NB5PC42C.js';import'../chunk-P6SBZPDR.js';import'../chunk-M22WSPSU.js';import'../chunk-T2P4BAWY.js';import'../chunk-BSJIDMTZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-WO4HFIOO.js';import'../chunk-F6EKAS27.js';import'../chunk-6XBQ5C3V.js';import'../chunk-E7TZALBH.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkLLRH3JIV_cjs=require('../chunk-LLRH3JIV.cjs');require('../chunk-NQBXIQGV.cjs'),require('../chunk-D7LG2SMD.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-O2WRWRDO.cjs'),require('../chunk-DITZCOYN.cjs'),require('../chunk-JR7IABIG.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-PXLLLBZ3.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-OIZ5B5LE.cjs'),require('../chunk-JUDFZS5N.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkLLRH3JIV_cjs.a}});
|
|
@@ -13,6 +13,7 @@ declare class Player extends MaveElement {
|
|
|
13
13
|
private _token;
|
|
14
14
|
get token(): string;
|
|
15
15
|
set token(value: string);
|
|
16
|
+
locale?: string;
|
|
16
17
|
aspect_ratio?: string;
|
|
17
18
|
width?: string;
|
|
18
19
|
subtitles?: string | [string];
|
|
@@ -42,10 +43,12 @@ declare class Player extends MaveElement {
|
|
|
42
43
|
get poster(): string | null;
|
|
43
44
|
set poster(value: string | null);
|
|
44
45
|
popped: boolean;
|
|
46
|
+
private _isProcessing;
|
|
45
47
|
endScreenElement: HTMLElement;
|
|
46
48
|
startScreenElement: HTMLElement;
|
|
47
49
|
private _startedPlaying;
|
|
48
50
|
private _themeLoaded;
|
|
51
|
+
private static readonly PROCESSING_REFRESH_INTERVAL;
|
|
49
52
|
private _subtitlesText;
|
|
50
53
|
private _audioTrackCount;
|
|
51
54
|
private _cleanupHlsAudioTracks?;
|
|
@@ -63,8 +66,11 @@ declare class Player extends MaveElement {
|
|
|
63
66
|
private _metricsInstance?;
|
|
64
67
|
private _intersected;
|
|
65
68
|
private _queue;
|
|
69
|
+
private _processingRefreshHandle?;
|
|
70
|
+
private languageController;
|
|
66
71
|
private _currentTrackLanguage;
|
|
67
72
|
private hls?;
|
|
73
|
+
private static readonly METADATA_READY_STATES;
|
|
68
74
|
pop(): void;
|
|
69
75
|
close(): void;
|
|
70
76
|
set muted(value: boolean | string);
|
|
@@ -78,6 +84,7 @@ declare class Player extends MaveElement {
|
|
|
78
84
|
pause(): void;
|
|
79
85
|
updateStylePoster(): void;
|
|
80
86
|
connectedCallback(): void;
|
|
87
|
+
requestUpdate(name?: PropertyKey, oldValue?: unknown): void;
|
|
81
88
|
disconnectedCallback(): void;
|
|
82
89
|
loadTheme(): void;
|
|
83
90
|
updateEmbed(embed: Embed): void;
|
|
@@ -13,6 +13,7 @@ declare class Player extends MaveElement {
|
|
|
13
13
|
private _token;
|
|
14
14
|
get token(): string;
|
|
15
15
|
set token(value: string);
|
|
16
|
+
locale?: string;
|
|
16
17
|
aspect_ratio?: string;
|
|
17
18
|
width?: string;
|
|
18
19
|
subtitles?: string | [string];
|
|
@@ -42,10 +43,12 @@ declare class Player extends MaveElement {
|
|
|
42
43
|
get poster(): string | null;
|
|
43
44
|
set poster(value: string | null);
|
|
44
45
|
popped: boolean;
|
|
46
|
+
private _isProcessing;
|
|
45
47
|
endScreenElement: HTMLElement;
|
|
46
48
|
startScreenElement: HTMLElement;
|
|
47
49
|
private _startedPlaying;
|
|
48
50
|
private _themeLoaded;
|
|
51
|
+
private static readonly PROCESSING_REFRESH_INTERVAL;
|
|
49
52
|
private _subtitlesText;
|
|
50
53
|
private _audioTrackCount;
|
|
51
54
|
private _cleanupHlsAudioTracks?;
|
|
@@ -63,8 +66,11 @@ declare class Player extends MaveElement {
|
|
|
63
66
|
private _metricsInstance?;
|
|
64
67
|
private _intersected;
|
|
65
68
|
private _queue;
|
|
69
|
+
private _processingRefreshHandle?;
|
|
70
|
+
private languageController;
|
|
66
71
|
private _currentTrackLanguage;
|
|
67
72
|
private hls?;
|
|
73
|
+
private static readonly METADATA_READY_STATES;
|
|
68
74
|
pop(): void;
|
|
69
75
|
close(): void;
|
|
70
76
|
set muted(value: boolean | string);
|
|
@@ -78,6 +84,7 @@ declare class Player extends MaveElement {
|
|
|
78
84
|
pause(): void;
|
|
79
85
|
updateStylePoster(): void;
|
|
80
86
|
connectedCallback(): void;
|
|
87
|
+
requestUpdate(name?: PropertyKey, oldValue?: unknown): void;
|
|
81
88
|
disconnectedCallback(): void;
|
|
82
89
|
loadTheme(): void;
|
|
83
90
|
updateEmbed(embed: Embed): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Player}from'../chunk-
|
|
1
|
+
export{a as Player}from'../chunk-NNH623PH.js';import'../chunk-K36YHFDX.js';import'../chunk-NB5PC42C.js';import'../chunk-P6SBZPDR.js';import'../chunk-M22WSPSU.js';import'../chunk-T2P4BAWY.js';import'../chunk-BSJIDMTZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-WO4HFIOO.js';import'../chunk-F6EKAS27.js';import'../chunk-6XBQ5C3V.js';import'../chunk-E7TZALBH.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/pop.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkUOAF4SEH_cjs=require('../chunk-UOAF4SEH.cjs');require('../chunk-LLRH3JIV.cjs'),require('../chunk-NQBXIQGV.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-D7LG2SMD.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-O2WRWRDO.cjs'),require('../chunk-DITZCOYN.cjs'),require('../chunk-JR7IABIG.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-PXLLLBZ3.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-OIZ5B5LE.cjs'),require('../chunk-JUDFZS5N.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkUOAF4SEH_cjs.a}});Object.defineProperty(exports,"checkPop",{enumerable:true,get:function(){return chunkUOAF4SEH_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-H5S4QWRJ.js';import'../chunk-NNH623PH.js';import'../chunk-K36YHFDX.js';import'../chunk-WE5NUDRY.js';import'../chunk-NB5PC42C.js';import'../chunk-P6SBZPDR.js';import'../chunk-M22WSPSU.js';import'../chunk-T2P4BAWY.js';import'../chunk-BSJIDMTZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-WO4HFIOO.js';import'../chunk-F6EKAS27.js';import'../chunk-6XBQ5C3V.js';import'../chunk-E7TZALBH.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/text.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3T573OW4_cjs=require('../chunk-3T573OW4.cjs');require('../chunk-O2WRWRDO.cjs'),require('../chunk-YKO34INI.cjs'),require('../chunk-J74VK4RB.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-OIZ5B5LE.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunk3T573OW4_cjs.a}});
|
package/dist/components/text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Text}from'../chunk-
|
|
1
|
+
export{a as Text}from'../chunk-ZUM5T3HV.js';import'../chunk-M22WSPSU.js';import'../chunk-SF36AD3G.js';import'../chunk-ZZBI6DXY.js';import'../chunk-MMHEOMF5.js';import'../chunk-6XBQ5C3V.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk55JWHJJ5_cjs=require('../chunk-55JWHJJ5.cjs');require('../chunk-FUSQ4EZG.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-D7LG2SMD.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-O2WRWRDO.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk55JWHJJ5_cjs.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Upload}from'../chunk-
|
|
1
|
+
export{a as Upload}from'../chunk-TSTFPNEM.js';import'../chunk-KNAAIER3.js';import'../chunk-WE5NUDRY.js';import'../chunk-NB5PC42C.js';import'../chunk-P6SBZPDR.js';import'../chunk-M22WSPSU.js';import'../chunk-MMHEOMF5.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/embed/api.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Rendition = {
|
|
2
2
|
size: 'sd' | 'hd' | 'fhd' | 'qhd' | 'uhd';
|
|
3
|
-
codec: 'h264' | 'hevc' | 'av1' | 'webp' | 'webm' | 'jpg' | 'mp3';
|
|
3
|
+
codec: 'h264' | 'hevc' | 'av1' | 'webp' | 'webm' | 'jpg' | 'mp3' | 'aac';
|
|
4
4
|
container: 'webp' | 'webm' | 'jpg' | 'mp4' | 'avif' | 'hls' | 'mp3';
|
|
5
5
|
type?: 'audio' | 'video' | 'poster' | 'thumbnail' | 'placeholder' | 'storyboard' | 'segments' | 'clip_keyframes' | 'clip' | 'custom_thumbnail';
|
|
6
6
|
file_size?: number;
|
|
@@ -45,6 +45,8 @@ type Embed = {
|
|
|
45
45
|
size: number;
|
|
46
46
|
duration: number;
|
|
47
47
|
language: string;
|
|
48
|
+
status?: 'waiting' | 'playable' | 'uploading' | 'preparing' | 'ready' | 'errored';
|
|
49
|
+
ready?: boolean;
|
|
48
50
|
sources: {
|
|
49
51
|
mp4: {
|
|
50
52
|
'480p': string;
|
package/dist/embed/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Rendition = {
|
|
2
2
|
size: 'sd' | 'hd' | 'fhd' | 'qhd' | 'uhd';
|
|
3
|
-
codec: 'h264' | 'hevc' | 'av1' | 'webp' | 'webm' | 'jpg' | 'mp3';
|
|
3
|
+
codec: 'h264' | 'hevc' | 'av1' | 'webp' | 'webm' | 'jpg' | 'mp3' | 'aac';
|
|
4
4
|
container: 'webp' | 'webm' | 'jpg' | 'mp4' | 'avif' | 'hls' | 'mp3';
|
|
5
5
|
type?: 'audio' | 'video' | 'poster' | 'thumbnail' | 'placeholder' | 'storyboard' | 'segments' | 'clip_keyframes' | 'clip' | 'custom_thumbnail';
|
|
6
6
|
file_size?: number;
|
|
@@ -45,6 +45,8 @@ type Embed = {
|
|
|
45
45
|
size: number;
|
|
46
46
|
duration: number;
|
|
47
47
|
language: string;
|
|
48
|
+
status?: 'waiting' | 'playable' | 'uploading' | 'preparing' | 'ready' | 'errored';
|
|
49
|
+
ready?: boolean;
|
|
48
50
|
sources: {
|
|
49
51
|
mp4: {
|
|
50
52
|
'480p': string;
|
package/dist/embed/caption.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkYKO34INI_cjs=require('../chunk-YKO34INI.cjs');require('../chunk-OIZ5B5LE.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"CaptionController",{enumerable:true,get:function(){return chunkYKO34INI_cjs.a}});
|
package/dist/embed/caption.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CaptionController}from'../chunk-
|
|
1
|
+
export{a as CaptionController}from'../chunk-SF36AD3G.js';import'../chunk-6XBQ5C3V.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkPXLLLBZ3_cjs=require('../chunk-PXLLLBZ3.cjs');require('../chunk-ZODBVQLM.cjs'),require('../chunk-OIZ5B5LE.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"EmbedController",{enumerable:true,get:function(){return chunkPXLLLBZ3_cjs.b}});Object.defineProperty(exports,"EmbedType",{enumerable:true,get:function(){return chunkPXLLLBZ3_cjs.a}});
|
package/dist/embed/controller.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as EmbedController,a as EmbedType}from'../chunk-
|
|
1
|
+
export{b as EmbedController,a as EmbedType}from'../chunk-WO4HFIOO.js';import'../chunk-F6EKAS27.js';import'../chunk-6XBQ5C3V.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"Datei ausw\xE4hlen",s3377775e4a0566a2:"Dateityp wird nicht unterst\xFCtzt",s422bb6dceefc6f42:"Bitte warten...",
|
|
1
|
+
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"Datei ausw\xE4hlen",s3377775e4a0566a2:"Dateityp wird nicht unterst\xFCtzt",s3468c5fda66950d2:"Video wird geladen...",s422bb6dceefc6f42:"Bitte warten...",s72727be0c6714699:"Warte auf Upload...",s793e20d967a669bd:"Video wird verarbeitet...",s7b43d4f7b98adae3:"Video hier ablegen",s7c1686227ffb99e9:"Video wird vorbereitet...",sc5fcbf75e4030312:"Hochladen...",scdf6717ee939dc80:"Video kann nicht geladen werden",sdc51fb6761fd6e91:"Fertig",sea5f88da17c5f8af:"Video konnte nicht verarbeitet werden",sf81e3c69132c6256:"Oder durchsuchen Sie Ihre Dateien"};exports.templates=e;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
declare const templates: {
|
|
2
2
|
s1a2236b3e9a624e9: string;
|
|
3
3
|
s3377775e4a0566a2: string;
|
|
4
|
+
s3468c5fda66950d2: string;
|
|
4
5
|
s422bb6dceefc6f42: string;
|
|
5
|
-
|
|
6
|
+
s72727be0c6714699: string;
|
|
7
|
+
s793e20d967a669bd: string;
|
|
6
8
|
s7b43d4f7b98adae3: string;
|
|
7
|
-
|
|
8
|
-
sbe89d2c461986bef: string;
|
|
9
|
+
s7c1686227ffb99e9: string;
|
|
9
10
|
sc5fcbf75e4030312: string;
|
|
11
|
+
scdf6717ee939dc80: string;
|
|
10
12
|
sdc51fb6761fd6e91: string;
|
|
11
|
-
|
|
13
|
+
sea5f88da17c5f8af: string;
|
|
12
14
|
sf81e3c69132c6256: string;
|
|
13
15
|
};
|
|
14
16
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
declare const templates: {
|
|
2
2
|
s1a2236b3e9a624e9: string;
|
|
3
3
|
s3377775e4a0566a2: string;
|
|
4
|
+
s3468c5fda66950d2: string;
|
|
4
5
|
s422bb6dceefc6f42: string;
|
|
5
|
-
|
|
6
|
+
s72727be0c6714699: string;
|
|
7
|
+
s793e20d967a669bd: string;
|
|
6
8
|
s7b43d4f7b98adae3: string;
|
|
7
|
-
|
|
8
|
-
sbe89d2c461986bef: string;
|
|
9
|
+
s7c1686227ffb99e9: string;
|
|
9
10
|
sc5fcbf75e4030312: string;
|
|
11
|
+
scdf6717ee939dc80: string;
|
|
10
12
|
sdc51fb6761fd6e91: string;
|
|
11
|
-
|
|
13
|
+
sea5f88da17c5f8af: string;
|
|
12
14
|
sf81e3c69132c6256: string;
|
|
13
15
|
};
|
|
14
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../../chunk-KA24PL7V.js';var e={s1a2236b3e9a624e9:"Datei ausw\xE4hlen",s3377775e4a0566a2:"Dateityp wird nicht unterst\xFCtzt",s422bb6dceefc6f42:"Bitte warten...",
|
|
1
|
+
import'../../chunk-KA24PL7V.js';var e={s1a2236b3e9a624e9:"Datei ausw\xE4hlen",s3377775e4a0566a2:"Dateityp wird nicht unterst\xFCtzt",s3468c5fda66950d2:"Video wird geladen...",s422bb6dceefc6f42:"Bitte warten...",s72727be0c6714699:"Warte auf Upload...",s793e20d967a669bd:"Video wird verarbeitet...",s7b43d4f7b98adae3:"Video hier ablegen",s7c1686227ffb99e9:"Video wird vorbereitet...",sc5fcbf75e4030312:"Hochladen...",scdf6717ee939dc80:"Video kann nicht geladen werden",sdc51fb6761fd6e91:"Fertig",sea5f88da17c5f8af:"Video konnte nicht verarbeitet werden",sf81e3c69132c6256:"Oder durchsuchen Sie Ihre Dateien"};export{e as templates};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"Select file",s3377775e4a0566a2:"Unsupported file type",s422bb6dceefc6f42:"Just a minute...",
|
|
1
|
+
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"Select file",s3377775e4a0566a2:"Unsupported file type",s3468c5fda66950d2:"Loading video...",s422bb6dceefc6f42:"Just a minute...",s72727be0c6714699:"waiting for video upload...",s793e20d967a669bd:"Processing video...",s7b43d4f7b98adae3:"Drop video here",s7c1686227ffb99e9:"Preparing your video...",sc5fcbf75e4030312:"Uploading...",scdf6717ee939dc80:"Unable to load this video",sdc51fb6761fd6e91:"Done",sea5f88da17c5f8af:"Video failed to process",sf81e3c69132c6256:"Or browse your files"};exports.templates=e;
|