@maveio/components 0.0.164 → 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-X6N2CG2U.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-SPEXAKNG.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-MHLFWRN3.cjs → chunk-LLRH3JIV.cjs} +21 -21
- package/dist/chunk-M22WSPSU.js +9 -0
- package/dist/chunk-NB5PC42C.js +33 -0
- package/dist/{chunk-WKYQVBXK.js → chunk-NNH623PH.js} +7 -7
- 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-R7WAA5YV.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-VQQSFP4G.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.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 +1 -1
- package/dist/embed/api.d.ts +1 -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/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-7ZRXZY5C.js +0 -20
- package/dist/chunk-A4GZBQEB.js +0 -53
- package/dist/chunk-H57FX4I6.cjs +0 -9
- package/dist/chunk-LCTGZL3L.js +0 -23
- package/dist/chunk-LG2O4WV2.cjs +0 -23
- package/dist/chunk-MPAP64ZM.js +0 -213
- package/dist/chunk-MS5NFI3Q.js +0 -9
- package/dist/chunk-MSWONVA7.cjs +0 -20
- package/dist/chunk-OJEB4F36.cjs +0 -213
- package/dist/chunk-PECDDGPS.js +0 -93
- package/dist/chunk-Q22T22LT.cjs +0 -9
- package/dist/chunk-SQUDVIWI.cjs +0 -93
- 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}});
|
|
@@ -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;
|
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;
|
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';
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZOMPIWHG_cjs=require('./chunk-ZOMPIWHG.cjs'),chunkUOAF4SEH_cjs=require('./chunk-UOAF4SEH.cjs'),chunkLLRH3JIV_cjs=require('./chunk-LLRH3JIV.cjs');require('./chunk-NQBXIQGV.cjs');var chunk3T573OW4_cjs=require('./chunk-3T573OW4.cjs'),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-YKO34INI.cjs'),require('./chunk-DITZCOYN.cjs');var chunkQLCBHFAG_cjs=require('./chunk-QLCBHFAG.cjs');require('./chunk-JR7IABIG.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-J74VK4RB.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkBS3IICLO_cjs=require('./chunk-BS3IICLO.cjs');require('./chunk-PXLLLBZ3.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-OIZ5B5LE.cjs');var chunkKUPCZDOX_cjs=require('./chunk-KUPCZDOX.cjs');require('./chunk-JUDFZS5N.cjs'),require('./chunk-WIS6FQDY.cjs'),require('./chunk-GO6BV3T4.cjs');var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkZOMPIWHG_cjs.a}});Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkUOAF4SEH_cjs.a}});Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkLLRH3JIV_cjs.a}});Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunk3T573OW4_cjs.a}});Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk55JWHJJ5_cjs.a}});Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkQLCBHFAG_cjs.a}});Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkBS3IICLO_cjs.a}});Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkKUPCZDOX_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_cjs.b}});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as List}from'./chunk-
|
|
1
|
+
export{a as List}from'./chunk-2ULDXMYP.js';export{a as Pop}from'./chunk-H5S4QWRJ.js';export{a as Player}from'./chunk-NNH623PH.js';import'./chunk-K36YHFDX.js';export{a as Text}from'./chunk-ZUM5T3HV.js';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-SF36AD3G.js';import'./chunk-T2P4BAWY.js';export{a as Clip}from'./chunk-PZSV3LCB.js';import'./chunk-BSJIDMTZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-ZZBI6DXY.js';import'./chunk-MMHEOMF5.js';export{a as Files}from'./chunk-BN4D4W23.js';import'./chunk-WO4HFIOO.js';import'./chunk-F6EKAS27.js';import'./chunk-6XBQ5C3V.js';export{a as Image}from'./chunk-HT464LCH.js';import'./chunk-E7TZALBH.js';import'./chunk-ZJWT7IOI.js';import'./chunk-27BWRXCN.js';export{b as setConfig}from'./chunk-JBV2AYRP.js';import'./chunk-KA24PL7V.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZOMPIWHG_cjs=require('./chunk-ZOMPIWHG.cjs'),chunkUOAF4SEH_cjs=require('./chunk-UOAF4SEH.cjs'),chunkLLRH3JIV_cjs=require('./chunk-LLRH3JIV.cjs');require('./chunk-NQBXIQGV.cjs');var chunk3T573OW4_cjs=require('./chunk-3T573OW4.cjs'),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-YKO34INI.cjs'),require('./chunk-DITZCOYN.cjs');var chunkQLCBHFAG_cjs=require('./chunk-QLCBHFAG.cjs');require('./chunk-JR7IABIG.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-J74VK4RB.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkBS3IICLO_cjs=require('./chunk-BS3IICLO.cjs');require('./chunk-PXLLLBZ3.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-OIZ5B5LE.cjs');var chunkKUPCZDOX_cjs=require('./chunk-KUPCZDOX.cjs');require('./chunk-JUDFZS5N.cjs'),require('./chunk-WIS6FQDY.cjs'),require('./chunk-GO6BV3T4.cjs');var chunk5STN56TL_cjs=require('./chunk-5STN56TL.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",chunkQLCBHFAG_cjs.a);var d=react.createComponent({tagName:"mave-clip",elementClass:chunkQLCBHFAG_cjs.a,react:t__default.default});o("mave-list",chunkZOMPIWHG_cjs.a);var w=react.createComponent({tagName:"mave-list",elementClass:chunkZOMPIWHG_cjs.a,react:t__default.default});o("mave-player",chunkLLRH3JIV_cjs.a);var y=react.createComponent({tagName:"mave-player",elementClass:chunkLLRH3JIV_cjs.a,react:t__default.default});o("mave-upload",chunk55JWHJJ5_cjs.a);var E=react.createComponent({tagName:"mave-upload",elementClass:chunk55JWHJJ5_cjs.a,react:t__default.default});o("mave-files",chunkBS3IICLO_cjs.a);var I=react.createComponent({tagName:"mave-files",elementClass:chunkBS3IICLO_cjs.a,react:t__default.default});o("mave-img",chunkKUPCZDOX_cjs.a);var T=react.createComponent({tagName:"mave-img",elementClass:chunkKUPCZDOX_cjs.a,react:t__default.default});o("mave-text",chunk3T573OW4_cjs.a);var D=react.createComponent({tagName:"mave-text",elementClass:chunk3T573OW4_cjs.a,react:t__default.default});o("mave-pop",chunkUOAF4SEH_cjs.a);var b=react.createComponent({tagName:"mave-pop",elementClass:chunkUOAF4SEH_cjs.a,react:t__default.default});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_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$1}from'./chunk-2ULDXMYP.js';import {a as a$7}from'./chunk-H5S4QWRJ.js';import {a as a$2}from'./chunk-NNH623PH.js';import'./chunk-K36YHFDX.js';import {a as a$6}from'./chunk-ZUM5T3HV.js';import {a as a$3}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-SF36AD3G.js';import'./chunk-T2P4BAWY.js';import {a}from'./chunk-PZSV3LCB.js';import'./chunk-BSJIDMTZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-ZZBI6DXY.js';import'./chunk-MMHEOMF5.js';import {a as a$4}from'./chunk-BN4D4W23.js';import'./chunk-WO4HFIOO.js';import'./chunk-F6EKAS27.js';import'./chunk-6XBQ5C3V.js';import {a as a$5}from'./chunk-HT464LCH.js';import'./chunk-E7TZALBH.js';import'./chunk-ZJWT7IOI.js';import'./chunk-27BWRXCN.js';export{b as setConfig}from'./chunk-JBV2AYRP.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};
|
package/dist/themes/loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkNQBXIQGV_cjs=require('../chunk-NQBXIQGV.cjs');require('../chunk-J7OISSKU.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"ThemeLoader",{enumerable:true,get:function(){return chunkNQBXIQGV_cjs.a}});
|
package/dist/themes/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ThemeLoader}from'../chunk-
|
|
1
|
+
export{a as ThemeLoader}from'../chunk-K36YHFDX.js';import'../chunk-P6SBZPDR.js';import'../chunk-27BWRXCN.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkD7LG2SMD_cjs=require('../chunk-D7LG2SMD.cjs');require('../chunk-J7OISSKU.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"LanguageController",{enumerable:true,get:function(){return chunkD7LG2SMD_cjs.d}});Object.defineProperty(exports,"localization",{enumerable:true,get:function(){return chunkD7LG2SMD_cjs.c}});Object.defineProperty(exports,"localized",{enumerable:true,get:function(){return chunkD7LG2SMD_cjs.a}});Object.defineProperty(exports,"msg",{enumerable:true,get:function(){return chunkD7LG2SMD_cjs.b}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as LanguageController,c as localization,a as localized,b as msg}from'../chunk-
|
|
1
|
+
export{d as LanguageController,c as localization,a as localized,b as msg}from'../chunk-NB5PC42C.js';import'../chunk-P6SBZPDR.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkJUDFZS5N_cjs=require('../chunk-JUDFZS5N.cjs');require('../chunk-WIS6FQDY.cjs'),require('../chunk-GO6BV3T4.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveElement",{enumerable:true,get:function(){return chunkJUDFZS5N_cjs.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as MaveElement}from'../chunk-
|
|
1
|
+
export{a as MaveElement}from'../chunk-E7TZALBH.js';import'../chunk-ZJWT7IOI.js';import'../chunk-27BWRXCN.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkZOMPIWHG_cjs=require('./chunk-ZOMPIWHG.cjs'),chunkUOAF4SEH_cjs=require('./chunk-UOAF4SEH.cjs'),chunkLLRH3JIV_cjs=require('./chunk-LLRH3JIV.cjs');require('./chunk-NQBXIQGV.cjs');var chunk3T573OW4_cjs=require('./chunk-3T573OW4.cjs'),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-YKO34INI.cjs'),require('./chunk-DITZCOYN.cjs');var chunkQLCBHFAG_cjs=require('./chunk-QLCBHFAG.cjs');require('./chunk-JR7IABIG.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-J74VK4RB.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkBS3IICLO_cjs=require('./chunk-BS3IICLO.cjs');require('./chunk-PXLLLBZ3.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-OIZ5B5LE.cjs');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');var vue=require('vue');var l={Clip:{tag:"mave-clip",element:chunkQLCBHFAG_cjs.a},Files:{tag:"mave-files",element:chunkBS3IICLO_cjs.a},Image:{tag:"mave-img",element:chunkKUPCZDOX_cjs.a},List:{tag:"mave-list",element:chunkZOMPIWHG_cjs.a},Player:{tag:"mave-player",element:chunkLLRH3JIV_cjs.a},Pop:{tag:"mave-pop",element:chunkUOAF4SEH_cjs.a},Text:{tag:"mave-text",element:chunk3T573OW4_cjs.a},Upload:{tag:"mave-upload",element:chunk55JWHJJ5_cjs.a}};function R(t,e){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,e));}function F(t){let e=[];t.default&&e.push(...t.default());for(let[o,s]of Object.entries(t)){if(!s||o==="default")continue;let f=s();for(let i of f)e.push(vue.cloneVNode(i,{slot:o}));}return e.length?e:void 0}function b(t){if(!t||typeof window>"u"||!t.ownerDocument)return;let e=s=>{let f=s.getAttribute("data-slot");f&&s.getAttribute("slot")!==f&&s.setAttribute("slot",f);};e(t);let o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;o.nextNode();)e(o.currentNode);}function N(t){let e={};for(let[o,s]of Object.entries(t)){if(o==="class"||o==="style"||o==="key"){e[o]=s;continue}if(o.startsWith("on")&&o.length>2){e[o]=s;continue}if(s===false||s===void 0||s===null){e[`^${o}`]=null;continue}if(s===true){e[`^${o}`]="";continue}if(typeof s=="object"&&s!==null){e[o]=s;continue}e[`^${o}`]=s;}return e}function U(t){let e=new Map,o={element:t};return {proxy:new Proxy(o,{get(i,n){if(n==="element")return t;let r=t.value;if(r&&n in r){let m=r[n];return typeof m=="function"?m.bind(r):m}if(e.has(n))return e.get(n)},set(i,n,r){let a=t.value;if(a){let m=a;m[n]=r;}else e.set(n,r);return true},has(i,n){if(n==="element")return true;let r=t.value;return r&&n in r?true:e.has(n)},ownKeys(){let i=t.value,n=i?Reflect.ownKeys(i):[],r=Array.from(e.keys());return Array.from(new Set(["element",...n,...r]))},getOwnPropertyDescriptor(i,n){if(n==="element")return {configurable:true,enumerable:true,value:t,writable:false};let r=t.value;if(r){let a=Object.getOwnPropertyDescriptor(r,n);if(a)return a;let d=r[n];if(d!==void 0)return {configurable:true,enumerable:typeof n=="string",writable:true,value:d}}if(e.has(n))return {configurable:true,enumerable:typeof n=="string",writable:true,value:e.get(n)}}}),syncPendingProperties:()=>{let i=t.value;if(!i||e.size===0)return;let n=i;for(let[r,a]of e)n[r]=a;e.clear();}}}function c(t,e,o){return R(e,o),vue.defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(f,{attrs:i,slots:n,expose:r}){let a=vue.ref(null),{proxy:m,syncPendingProperties:d}=U(a);return r(m),vue.onMounted(()=>{d(),b(a.value);}),vue.onUpdated(()=>{d(),b(a.value);}),()=>{let T=N(i);return vue.h(e,{ref:a,...T},F(n))}}})}var u={Clip:c("Clip",l.Clip.tag,l.Clip.element),Files:c("Files",l.Files.tag,l.Files.element),Image:c("Image",l.Image.tag,l.Image.element),List:c("List",l.List.tag,l.List.element),Player:c("Player",l.Player.tag,l.Player.element),Pop:c("Pop",l.Pop.tag,l.Pop.element),Text:c("Text",l.Text.tag,l.Text.element),Upload:c("Upload",l.Upload.tag,l.Upload.element)},W=u.Clip,z=u.Files,q=u.Image,B=u.List,G=u.Player,J=u.Pop,Q=u.Text,X=u.Upload;function S(t){Object.entries(u).forEach(([e,o])=>{t.component(e,o);});}var Y={install(t){S(t);}};exports.Clip=W;exports.Files=z;exports.Image=q;exports.List=B;exports.Player=G;exports.Pop=J;exports.Text=Q;exports.Upload=X;exports.default=Y;exports.registerMaveComponents=S;
|
package/dist/vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-2ULDXMYP.js';import {a as a$2}from'./chunk-H5S4QWRJ.js';import {a as a$3}from'./chunk-NNH623PH.js';import'./chunk-K36YHFDX.js';import {a as a$1}from'./chunk-ZUM5T3HV.js';import {a}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-SF36AD3G.js';import'./chunk-T2P4BAWY.js';import {a as a$7}from'./chunk-PZSV3LCB.js';import'./chunk-BSJIDMTZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-ZZBI6DXY.js';import'./chunk-MMHEOMF5.js';import {a as a$6}from'./chunk-BN4D4W23.js';import'./chunk-WO4HFIOO.js';import'./chunk-F6EKAS27.js';import'./chunk-6XBQ5C3V.js';import {a as a$5}from'./chunk-HT464LCH.js';import'./chunk-E7TZALBH.js';import'./chunk-ZJWT7IOI.js';import'./chunk-27BWRXCN.js';import'./chunk-JBV2AYRP.js';import'./chunk-KA24PL7V.js';import {defineComponent,ref,onMounted,onUpdated,h,cloneVNode}from'vue';var l={Clip:{tag:"mave-clip",element:a$7},Files:{tag:"mave-files",element:a$6},Image:{tag:"mave-img",element:a$5},List:{tag:"mave-list",element:a$4},Player:{tag:"mave-player",element:a$3},Pop:{tag:"mave-pop",element:a$2},Text:{tag:"mave-text",element:a$1},Upload:{tag:"mave-upload",element:a}};function R(t,e){typeof window>"u"||window.customElements&&(window.customElements.get(t)||window.customElements.define(t,e));}function F(t){let e=[];t.default&&e.push(...t.default());for(let[o,s]of Object.entries(t)){if(!s||o==="default")continue;let f=s();for(let i of f)e.push(cloneVNode(i,{slot:o}));}return e.length?e:void 0}function b(t){if(!t||typeof window>"u"||!t.ownerDocument)return;let e=s=>{let f=s.getAttribute("data-slot");f&&s.getAttribute("slot")!==f&&s.setAttribute("slot",f);};e(t);let o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;o.nextNode();)e(o.currentNode);}function N(t){let e={};for(let[o,s]of Object.entries(t)){if(o==="class"||o==="style"||o==="key"){e[o]=s;continue}if(o.startsWith("on")&&o.length>2){e[o]=s;continue}if(s===false||s===void 0||s===null){e[`^${o}`]=null;continue}if(s===true){e[`^${o}`]="";continue}if(typeof s=="object"&&s!==null){e[o]=s;continue}e[`^${o}`]=s;}return e}function U(t){let e=new Map,o={element:t};return {proxy:new Proxy(o,{get(i,n){if(n==="element")return t;let r=t.value;if(r&&n in r){let m=r[n];return typeof m=="function"?m.bind(r):m}if(e.has(n))return e.get(n)},set(i,n,r){let a=t.value;if(a){let m=a;m[n]=r;}else e.set(n,r);return true},has(i,n){if(n==="element")return true;let r=t.value;return r&&n in r?true:e.has(n)},ownKeys(){let i=t.value,n=i?Reflect.ownKeys(i):[],r=Array.from(e.keys());return Array.from(new Set(["element",...n,...r]))},getOwnPropertyDescriptor(i,n){if(n==="element")return {configurable:true,enumerable:true,value:t,writable:false};let r=t.value;if(r){let a=Object.getOwnPropertyDescriptor(r,n);if(a)return a;let d=r[n];if(d!==void 0)return {configurable:true,enumerable:typeof n=="string",writable:true,value:d}}if(e.has(n))return {configurable:true,enumerable:typeof n=="string",writable:true,value:e.get(n)}}}),syncPendingProperties:()=>{let i=t.value;if(!i||e.size===0)return;let n=i;for(let[r,a]of e)n[r]=a;e.clear();}}}function c(t,e,o){return R(e,o),defineComponent({name:`Mave${t}`,inheritAttrs:false,setup(f,{attrs:i,slots:n,expose:r}){let a=ref(null),{proxy:m,syncPendingProperties:d}=U(a);return r(m),onMounted(()=>{d(),b(a.value);}),onUpdated(()=>{d(),b(a.value);}),()=>{let T=N(i);return h(e,{ref:a,...T},F(n))}}})}var u={Clip:c("Clip",l.Clip.tag,l.Clip.element),Files:c("Files",l.Files.tag,l.Files.element),Image:c("Image",l.Image.tag,l.Image.element),List:c("List",l.List.tag,l.List.element),Player:c("Player",l.Player.tag,l.Player.element),Pop:c("Pop",l.Pop.tag,l.Pop.element),Text:c("Text",l.Text.tag,l.Text.element),Upload:c("Upload",l.Upload.tag,l.Upload.element)},W=u.Clip,z=u.Files,q=u.Image,B=u.List,G=u.Player,J=u.Pop,Q=u.Text,X=u.Upload;function S(t){Object.entries(u).forEach(([e,o])=>{t.component(e,o);});}var Y={install(t){S(t);}};export{W as Clip,z as Files,q as Image,B as List,G as Player,J as Pop,Q as Text,X as Upload,Y as default,S as registerMaveComponents};
|