@maveio/components
Advanced tools
| import {a as a$4}from'./chunk-YJOQHWVN.js';import {a as a$2}from'./chunk-B6P2GJBQ.js';import {c as c$1,a as a$1}from'./chunk-PTN427IG.js';import {g,a as a$3}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';import {c}from'./chunk-KA24PL7V.js';var n=class extends g{get backdrop(){return this._backdropColor||"black"}set backdrop(t){this._backdropColor!=t&&(this._backdropColor=t);}get backdropFilter(){return this._backdropFilter}set backdropFilter(t){this._backdropFilter!=t&&(this._backdropFilter=t);}get styles(){let t={"--backdrop":this.backdrop,"--backdrop-filter":this.backdropFilter};return a$2(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 a$3` | ||
| <dialog style=${this.styles}> | ||
| <div class="backdrop"></div> | ||
| <div class="content" @click=${this.possibleClose}> | ||
| <div class="wrapper"> | ||
| <slot style="display: none;"></slot> | ||
| <div class="frame"></div> | ||
| </div> | ||
| </div> | ||
| <div class="button-close" @click=${this.close}> | ||
| <svg | ||
| width="24px" | ||
| height="24px" | ||
| stroke-width="1" | ||
| viewBox="0 0 24 24" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| color="currentColor" | ||
| > | ||
| <path | ||
| d="M6 12h6m6 0h-6m0 0V6m0 6v6" | ||
| stroke="currentColor" | ||
| stroke-width="1" | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| ></path> | ||
| </svg> | ||
| </div> | ||
| </dialog> | ||
| `}};n.styles=a` | ||
| :host { | ||
| all: initial; | ||
| --backdrop: black; | ||
| --frame-max-height: 100vh; | ||
| --frame-ratio-w: 16; | ||
| --frame-ratio-h: 9; | ||
| --backdrop-filter: blur(0); | ||
| } | ||
| slot { | ||
| all: initial; | ||
| position: fixed; | ||
| } | ||
| dialog { | ||
| display: block; | ||
| margin: 0; | ||
| padding: 0; | ||
| border: 0; | ||
| pointer-events: none; | ||
| background: transparent; | ||
| } | ||
| dialog .content { | ||
| position: fixed; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| top: 0; | ||
| left: 0; | ||
| opacity: 0; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| transform: scale(0.96); | ||
| transition-property: transform, opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .backdrop { | ||
| position: fixed; | ||
| background: var(--backdrop); | ||
| backdrop-filter: var(--backdrop-filter); | ||
| opacity: 0; | ||
| top: 0; | ||
| left: 0; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| transition-property: opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| dialog[open] .backdrop { | ||
| opacity: 1; | ||
| } | ||
| dialog::backdrop { | ||
| background: none; | ||
| } | ||
| dialog[open] { | ||
| pointer-events: auto; | ||
| } | ||
| dialog[open] .content { | ||
| opacity: 1; | ||
| transform: scale(1); | ||
| } | ||
| dialog[open] .button-close { | ||
| display: block; | ||
| } | ||
| .button-close { | ||
| display: none; | ||
| position: fixed; | ||
| top: 0.8rem; | ||
| right: 0.6rem; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transition-property: transform; | ||
| transition-duration: 100ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .button-close:hover { | ||
| cursor: pointer; | ||
| transform: scale(1.3); | ||
| } | ||
| .button-close svg { | ||
| color: white; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transform: rotate(45deg); | ||
| } | ||
| .wrapper { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 100%; | ||
| height: 100%; | ||
| max-width: 100vw; | ||
| max-height: var(--frame-max-height); | ||
| } | ||
| .frame { | ||
| --ratio: calc(var(--frame-ratio-h, 1) / var(--frame-ratio-w, 1) * 100%); | ||
| --frame-height: min(var(--ratio), var(--frame-max-height)); | ||
| position: relative; | ||
| padding-bottom: var(--frame-height); | ||
| width: min( | ||
| calc(var(--frame-height, 0) * (var(--frame-ratio-w) / var(--frame-ratio-h))), | ||
| 100% | ||
| ); | ||
| height: 0; | ||
| overflow: hidden; | ||
| background-size: contain; | ||
| background-position: center center; | ||
| background-repeat: no-repeat; | ||
| } | ||
| `,c([c$1("dialog")],n.prototype,"_dialog",2),c([c$1(".content")],n.prototype,"_content",2),c([c$1(".frame")],n.prototype,"_frame",2),c([c$1(".backdrop")],n.prototype,"_backdrop",2),c([a$1()],n.prototype,"backdrop",1),c([a$1({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 a$4;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));export{n as a,_ as b}; |
| 'use strict';var chunkJ7OISSKU_cjs=require('./chunk-J7OISSKU.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;var d=["default","synthwave","dolphin"],h={default:()=>import('./themes/default.cjs'),synthwave:()=>import('./themes/synthwave.cjs'),dolphin:()=>import('./themes/dolphin.cjs')};async function p(t){if(!d.includes(t))return;let n=!!chunkJ7OISSKU_cjs.a();if(!n){let c=h[t];if(c)try{return await c()}catch{}}let s=n?`./dist/themes/${t}.js`:`./themes/${t}.js`,e=new URL(s,(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-BCTXH32I.cjs', document.baseURI).href))).href;return l(e)}async function l(t){return import(t)}var m=class t{constructor(){this.themes=[];}static async get(n,s){if(t.instance||(t.instance=new t),t.instance.themes.find(e=>e.name===n))return t.instance.currentTheme=n,Promise.resolve(t.instance);t.instance.themes.push({name:n}),t.instance.currentTheme=n;try{if(typeof document<"u"&&!d.includes(n)){let e=document.createElement("link");e.rel="stylesheet",e.href=`${s}/${n}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}try{if(s&&!d.includes(n)){let{build:e}=await l(`${s}/${n}.js`);e(n,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);}else {let e=await p(n);if(e)e.build(n,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);else {let c=`./${chunkJ7OISSKU_cjs.a()}themes/${n}.js`,{build:u}=await l(c);u(n,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);}}}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static async external(n){t.instance||(t.instance=new t);let s=n.split("/").pop()?.replace(".js","")||"";try{if(typeof document<"u"){let e=document.createElement("link");e.rel="stylesheet",e.href=`${n.replace(".js","")}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}if(t.instance.themes.find(e=>e.name===s))return t.instance.currentTheme=s,Promise.resolve(t.instance);t.instance.themes.push({name:s}),t.instance.currentTheme=s;try{let{build:e}=await l(n);e(s,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static getTheme(){return t.instance?t.instance.currentTheme:""}};exports.a=m; |
| 'use strict';var chunkR6AMJOJL_cjs=require('./chunk-R6AMJOJL.cjs'),chunkTKJYRGEU_cjs=require('./chunk-TKJYRGEU.cjs'),chunkRQN3DXJB_cjs=require('./chunk-RQN3DXJB.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n,C,b,h,f,p,u=class extends chunkTKJYRGEU_cjs.a{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,n);this.order="newest";this.embedController=new chunkRQN3DXJB_cjs.b(this,0);}connectedCallback(){super.connectedCallback(),this.embedController.token=this.token;}requestUpdate(e,o){super.requestUpdate(e,o),e==="embed"&&(this.embedController.token=this.token);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}updated(){this.shadowRoot&&chunkR6AMJOJL_cjs.b(this.shadowRoot);}refresh(){return this.embedController.refresh()}containsEmbed(e){return this._collection?.videos?.some(o=>o.id===e)}getNextForEmbed(e){let o=chunkJHSFSCC2_cjs.g(this,n,C).call(this),t=o.findIndex(s=>s.id===e);if(t!==-1)return o[t+1]}render(){return chunk2E5GLLOS_cjs.a` | ||
| ${this.embedController.render({pending:this.renderPending,error:e=>chunk2E5GLLOS_cjs.a`<p>${e instanceof Error?e.message:chunk2E5GLLOS_cjs.e}</p>`,complete:e=>{if(this._collection=e,!e)return this.renderPending();if(e.error)return console.warn(e.error);let o=this._slottedChildren.map(t=>{function s(){let l;return t.nodeName==="TEMPLATE"?l=t.content.cloneNode(true):l=t.cloneNode(true),l}if(t.getAttribute("name")=="list-title"){let l=s();return l.textContent=this._collection?.name,chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-root"&&this.embedController.embed){let l=s(),i=chunkJHSFSCC2_cjs.g(this,n,f).call(this,l,"root-link");return i&&(i.addEventListener("click",a=>{a.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"back",embedId:""}),this.embedController.embed="";}),chunkJHSFSCC2_cjs.g(this,n,p).call(this,i)),chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-folder"){let l=this._collection.collections?.map(i=>{let a=s(),m=chunkJHSFSCC2_cjs.g(this,n,f).call(this,a,"folder-link");return [t,m].forEach(d=>{d instanceof Element&&(d.addEventListener("click",g=>{g.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"show_collection",collectionId:i.id}),this.embedController.embed=i.id;}),chunkJHSFSCC2_cjs.g(this,n,p).call(this,d));}),chunkJHSFSCC2_cjs.g(this,n,h).call(this,a,"folder-title",i.name),typeof i.video_count=="number"&&chunkJHSFSCC2_cjs.g(this,n,h).call(this,a,"folder-count",i.video_count.toString()),chunk2E5GLLOS_cjs.a`${a}`});return chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-item"||!["mave-list-folder","mave-list-item","mave-list-root","list-title"].includes(t.hasAttribute("name")?t.getAttribute("name"):"")&&t.nodeName=="TEMPLATE"){let l=chunkJHSFSCC2_cjs.g(this,n,C).call(this).map((i,a)=>{let m=s(),d=a+1;chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-title",i.name),chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-position",d.toString()),chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-duration",this.durationToTime(i.duration)),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-clip",i.id),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-player",i.id),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-img",i.id);let g=m.querySelector("mave-clip"),S=chunkJHSFSCC2_cjs.g(this,n,f).call(this,m,"item-title"),$=m.querySelector("mave-img");return [g,S,$,m].forEach(P=>{P?.addEventListener("click",x=>{this.emit(this.EVENT_TYPES.CLICK,{action:"show_embed",embedId:i.id,position:d});});}),chunk2E5GLLOS_cjs.a`${m}`});return chunk2E5GLLOS_cjs.a`${l}`}}).filter(t=>t);return chunk2E5GLLOS_cjs.a`${this._stylesheets} ${o}`}})} | ||
| `}renderPending(){return chunk2E5GLLOS_cjs.a`<slot style="display: none"></slot>`}};n=new WeakSet,C=function(){if(!this._collection)return [];let e=this._collection.videos;return this.order=="newest"&&(e=this._collection.videos?.sort((o,t)=>t.created-o.created)),this.order=="oldest"&&(e=this._collection.videos?.sort((o,t)=>o.created-t.created)),this.order=="az"&&(e=this._collection.videos?.sort((o,t)=>o.name.localeCompare(t.name))),this.order=="za"&&(e=this._collection.videos?.sort((o,t)=>t.name.localeCompare(o.name))),e},b=function(e,o,t){let s=e.querySelector(o);s&&(s.setAttribute("embed",t),chunkJHSFSCC2_cjs.g(this,n,p).call(this,s));},h=function(e,o,t){let s=chunkJHSFSCC2_cjs.g(this,n,f).call(this,e,o);s&&(s.textContent=t,chunkJHSFSCC2_cjs.g(this,n,p).call(this,s));},f=function(e,o){return e.querySelector(`[slot="${o}"], [data-slot="${o}"]`)},p=function(e){e&&(e.removeAttribute("slot"),e.removeAttribute("data-slot"));},u.styles=chunkNPP5B5PV_cjs.a` | ||
| :host { | ||
| display: block; | ||
| } | ||
| `,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],u.prototype,"token",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_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; |
| import {b as b$2}from'./chunk-6XQ6KWYP.js';import {a as a$2}from'./chunk-SWRFZ3FV.js';import {b as b$1}from'./chunk-OX42Y2HR.js';import {a as a$1}from'./chunk-PTN427IG.js';import {a as a$3,e as e$1}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';import {c,e,g}from'./chunk-KA24PL7V.js';var n,C,b,h,f,p,u=class extends a$2{constructor(){super(...arguments);e(this,n);this.order="newest";this.embedController=new b$1(this,0);}connectedCallback(){super.connectedCallback(),this.embedController.token=this.token;}requestUpdate(e,o){super.requestUpdate(e,o),e==="embed"&&(this.embedController.token=this.token);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}updated(){this.shadowRoot&&b$2(this.shadowRoot);}refresh(){return this.embedController.refresh()}containsEmbed(e){return this._collection?.videos?.some(o=>o.id===e)}getNextForEmbed(e){let o=g(this,n,C).call(this),t=o.findIndex(s=>s.id===e);if(t!==-1)return o[t+1]}render(){return a$3` | ||
| ${this.embedController.render({pending:this.renderPending,error:e=>a$3`<p>${e instanceof Error?e.message:e$1}</p>`,complete:e=>{if(this._collection=e,!e)return this.renderPending();if(e.error)return console.warn(e.error);let o=this._slottedChildren.map(t=>{function s(){let l;return t.nodeName==="TEMPLATE"?l=t.content.cloneNode(true):l=t.cloneNode(true),l}if(t.getAttribute("name")=="list-title"){let l=s();return l.textContent=this._collection?.name,a$3`${l}`}if(t.getAttribute("name")=="mave-list-root"&&this.embedController.embed){let l=s(),i=g(this,n,f).call(this,l,"root-link");return i&&(i.addEventListener("click",a=>{a.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"back",embedId:""}),this.embedController.embed="";}),g(this,n,p).call(this,i)),a$3`${l}`}if(t.getAttribute("name")=="mave-list-folder"){let l=this._collection.collections?.map(i=>{let a=s(),m=g(this,n,f).call(this,a,"folder-link");return [t,m].forEach(d=>{d instanceof Element&&(d.addEventListener("click",g=>{g.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"show_collection",collectionId:i.id}),this.embedController.embed=i.id;}),g(this,n,p).call(this,d));}),g(this,n,h).call(this,a,"folder-title",i.name),typeof i.video_count=="number"&&g(this,n,h).call(this,a,"folder-count",i.video_count.toString()),a$3`${a}`});return a$3`${l}`}if(t.getAttribute("name")=="mave-list-item"||!["mave-list-folder","mave-list-item","mave-list-root","list-title"].includes(t.hasAttribute("name")?t.getAttribute("name"):"")&&t.nodeName=="TEMPLATE"){let l=g(this,n,C).call(this).map((i,a)=>{let m=s(),d=a+1;g(this,n,h).call(this,m,"item-title",i.name),g(this,n,h).call(this,m,"item-position",d.toString()),g(this,n,h).call(this,m,"item-duration",this.durationToTime(i.duration)),g(this,n,b).call(this,m,"mave-clip",i.id),g(this,n,b).call(this,m,"mave-player",i.id),g(this,n,b).call(this,m,"mave-img",i.id);let g$1=m.querySelector("mave-clip"),S=g(this,n,f).call(this,m,"item-title"),$=m.querySelector("mave-img");return [g$1,S,$,m].forEach(P=>{P?.addEventListener("click",x=>{this.emit(this.EVENT_TYPES.CLICK,{action:"show_embed",embedId:i.id,position:d});});}),a$3`${m}`});return a$3`${l}`}}).filter(t=>t);return a$3`${this._stylesheets} ${o}`}})} | ||
| `}renderPending(){return a$3`<slot style="display: none"></slot>`}};n=new WeakSet,C=function(){if(!this._collection)return [];let e=this._collection.videos;return this.order=="newest"&&(e=this._collection.videos?.sort((o,t)=>t.created-o.created)),this.order=="oldest"&&(e=this._collection.videos?.sort((o,t)=>o.created-t.created)),this.order=="az"&&(e=this._collection.videos?.sort((o,t)=>o.name.localeCompare(t.name))),this.order=="za"&&(e=this._collection.videos?.sort((o,t)=>t.name.localeCompare(o.name))),e},b=function(e,o,t){let s=e.querySelector(o);s&&(s.setAttribute("embed",t),g(this,n,p).call(this,s));},h=function(e,o,t){let s=g(this,n,f).call(this,e,o);s&&(s.textContent=t,g(this,n,p).call(this,s));},f=function(e,o){return e.querySelector(`[slot="${o}"], [data-slot="${o}"]`)},p=function(e){e&&(e.removeAttribute("slot"),e.removeAttribute("data-slot"));},u.styles=a` | ||
| :host { | ||
| display: block; | ||
| } | ||
| `,c([a$1()],u.prototype,"token",2),c([a$1()],u.prototype,"order",2);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-list")||window.customElements.define("mave-list",u));export{u as a}; |
| 'use strict';var chunkS4RV2LTD_cjs=require('./chunk-S4RV2LTD.cjs'),chunkQQDH35OW_cjs=require('./chunk-QQDH35OW.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n=class extends chunk2E5GLLOS_cjs.g{get backdrop(){return this._backdropColor||"black"}set backdrop(t){this._backdropColor!=t&&(this._backdropColor=t);}get backdropFilter(){return this._backdropFilter}set backdropFilter(t){this._backdropFilter!=t&&(this._backdropFilter=t);}get styles(){let t={"--backdrop":this.backdrop,"--backdrop-filter":this.backdropFilter};return chunkQQDH35OW_cjs.a(t)}open(t){if(this._player=t,t.aspect_ratio){let[i,s]=t.aspect_ratio.split("/");this.style.setProperty("--frame-ratio-w",i),this.style.setProperty("--frame-ratio-h",s);}this.style.display="block";let o=i=>{this._frame.appendChild(t),setTimeout(()=>{this._dialog.showModal();},25),this._dialog.addEventListener("close",s=>{s.preventDefault(),this.close();},{once:true}),i(this);};return new Promise(i=>{if(this._dialog)o(i);else {let s=setInterval(()=>{this._dialog&&(o(i),clearInterval(s));},100);return}})}possibleClose(t){t.target!=this._player&&this.close();}close(){this._dialog.close(),this._backdrop.addEventListener("transitionend",()=>{this._frame.innerHTML="",this.dispatchEvent(new Event("closed",{bubbles:true}));},{once:true});}render(){return chunk2E5GLLOS_cjs.a` | ||
| <dialog style=${this.styles}> | ||
| <div class="backdrop"></div> | ||
| <div class="content" @click=${this.possibleClose}> | ||
| <div class="wrapper"> | ||
| <slot style="display: none;"></slot> | ||
| <div class="frame"></div> | ||
| </div> | ||
| </div> | ||
| <div class="button-close" @click=${this.close}> | ||
| <svg | ||
| width="24px" | ||
| height="24px" | ||
| stroke-width="1" | ||
| viewBox="0 0 24 24" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| color="currentColor" | ||
| > | ||
| <path | ||
| d="M6 12h6m6 0h-6m0 0V6m0 6v6" | ||
| stroke="currentColor" | ||
| stroke-width="1" | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| ></path> | ||
| </svg> | ||
| </div> | ||
| </dialog> | ||
| `}};n.styles=chunkNPP5B5PV_cjs.a` | ||
| :host { | ||
| all: initial; | ||
| --backdrop: black; | ||
| --frame-max-height: 100vh; | ||
| --frame-ratio-w: 16; | ||
| --frame-ratio-h: 9; | ||
| --backdrop-filter: blur(0); | ||
| } | ||
| slot { | ||
| all: initial; | ||
| position: fixed; | ||
| } | ||
| dialog { | ||
| display: block; | ||
| margin: 0; | ||
| padding: 0; | ||
| border: 0; | ||
| pointer-events: none; | ||
| background: transparent; | ||
| } | ||
| dialog .content { | ||
| position: fixed; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| top: 0; | ||
| left: 0; | ||
| opacity: 0; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| transform: scale(0.96); | ||
| transition-property: transform, opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .backdrop { | ||
| position: fixed; | ||
| background: var(--backdrop); | ||
| backdrop-filter: var(--backdrop-filter); | ||
| opacity: 0; | ||
| top: 0; | ||
| left: 0; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| transition-property: opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| dialog[open] .backdrop { | ||
| opacity: 1; | ||
| } | ||
| dialog::backdrop { | ||
| background: none; | ||
| } | ||
| dialog[open] { | ||
| pointer-events: auto; | ||
| } | ||
| dialog[open] .content { | ||
| opacity: 1; | ||
| transform: scale(1); | ||
| } | ||
| dialog[open] .button-close { | ||
| display: block; | ||
| } | ||
| .button-close { | ||
| display: none; | ||
| position: fixed; | ||
| top: 0.8rem; | ||
| right: 0.6rem; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transition-property: transform; | ||
| transition-duration: 100ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .button-close:hover { | ||
| cursor: pointer; | ||
| transform: scale(1.3); | ||
| } | ||
| .button-close svg { | ||
| color: white; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transform: rotate(45deg); | ||
| } | ||
| .wrapper { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 100%; | ||
| height: 100%; | ||
| max-width: 100vw; | ||
| max-height: var(--frame-max-height); | ||
| } | ||
| .frame { | ||
| --ratio: calc(var(--frame-ratio-h, 1) / var(--frame-ratio-w, 1) * 100%); | ||
| --frame-height: min(var(--ratio), var(--frame-max-height)); | ||
| position: relative; | ||
| padding-bottom: var(--frame-height); | ||
| width: min( | ||
| calc(var(--frame-height, 0) * (var(--frame-ratio-w) / var(--frame-ratio-h))), | ||
| 100% | ||
| ); | ||
| height: 0; | ||
| overflow: hidden; | ||
| background-size: contain; | ||
| background-position: center center; | ||
| background-repeat: no-repeat; | ||
| } | ||
| `,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c("dialog")],n.prototype,"_dialog",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".content")],n.prototype,"_content",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".frame")],n.prototype,"_frame",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".backdrop")],n.prototype,"_backdrop",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"backdrop",1),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a({attribute:"backdrop-filter"})],n.prototype,"backdropFilter",1);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",n));function E(l){let t={};if(!l)return t;for(let o=0;o<l.attributes.length;o++){let i=l.attributes[o];t[i.name]=i.value;}return t}var x=()=>typeof document<"u"?document:void 0,_=l=>{let t=x();if(!t)return;let o=t;function i(c){let e,r,a=o.querySelector(`mave-pop[embed="${c}"]`);if(a)return r=E(a.querySelector("mave-player")),e=a,{pop:e,attributes:r};let p=o.querySelector("mave-pop:not([embed])");return p?(r=E(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new n,o.body.appendChild(e),{pop:e})}function s(c,e){let r=new chunkS4RV2LTD_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=_; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| import {a as a$2}from'./chunk-P6SBZPDR.js';import {g,a}from'./chunk-5PIHL662.js';import {a as a$1}from'./chunk-YPCQNE3R.js';var d=["default","synthwave","dolphin"],h={default:()=>import('./themes/default.js'),synthwave:()=>import('./themes/synthwave.js'),dolphin:()=>import('./themes/dolphin.js')};async function p(t){if(!d.includes(t))return;let n=!!a$2();if(!n){let c=h[t];if(c)try{return await c()}catch{}}let s=n?`./dist/themes/${t}.js`:`./themes/${t}.js`,e=new URL(s,import.meta.url).href;return l(e)}async function l(t){return import(t)}var m=class t{constructor(){this.themes=[];}static async get(n,s){if(t.instance||(t.instance=new t),t.instance.themes.find(e=>e.name===n))return t.instance.currentTheme=n,Promise.resolve(t.instance);t.instance.themes.push({name:n}),t.instance.currentTheme=n;try{if(typeof document<"u"&&!d.includes(n)){let e=document.createElement("link");e.rel="stylesheet",e.href=`${s}/${n}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}try{if(s&&!d.includes(n)){let{build:e}=await l(`${s}/${n}.js`);e(n,g,a,a$1);}else {let e=await p(n);if(e)e.build(n,g,a,a$1);else {let c=`./${a$2()}themes/${n}.js`,{build:u}=await l(c);u(n,g,a,a$1);}}}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static async external(n){t.instance||(t.instance=new t);let s=n.split("/").pop()?.replace(".js","")||"";try{if(typeof document<"u"){let e=document.createElement("link");e.rel="stylesheet",e.href=`${n.replace(".js","")}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}if(t.instance.themes.find(e=>e.name===s))return t.instance.currentTheme=s,Promise.resolve(t.instance);t.instance.themes.push({name:s}),t.instance.currentTheme=s;try{let{build:e}=await l(n);e(s,g,a,a$1);}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static getTheme(){return t.instance?t.instance.currentTheme:""}};export{m as a}; |
@@ -1,1 +0,1 @@ | ||
| 'use strict';var chunkB5K5JDPC_cjs=require('../chunk-B5K5JDPC.cjs');require('../chunk-CWZPXTU2.cjs'),require('../chunk-TAKTIPT7.cjs'),require('../chunk-BL5IEXIA.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkB5K5JDPC_cjs.a}}); | ||
| 'use strict';var chunkGNSSFU2Y_cjs=require('../chunk-GNSSFU2Y.cjs');require('../chunk-R6AMJOJL.cjs'),require('../chunk-S4RV2LTD.cjs'),require('../chunk-BCTXH32I.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkGNSSFU2Y_cjs.a}}); |
@@ -1,1 +0,1 @@ | ||
| export{a as List}from'../chunk-KHVG2CY5.js';import'../chunk-S3D62CAG.js';import'../chunk-JN3JQJEF.js';import'../chunk-GXOLIMQT.js';import'../chunk-WE5NUDRY.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js'; | ||
| export{a as List}from'../chunk-NRAQPBUM.js';import'../chunk-6XQ6KWYP.js';import'../chunk-YJOQHWVN.js';import'../chunk-ZQXFK7PD.js';import'../chunk-WE5NUDRY.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js'; |
@@ -1,1 +0,1 @@ | ||
| 'use strict';var chunkTAKTIPT7_cjs=require('../chunk-TAKTIPT7.cjs');require('../chunk-BL5IEXIA.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkTAKTIPT7_cjs.a}}); | ||
| 'use strict';var chunkS4RV2LTD_cjs=require('../chunk-S4RV2LTD.cjs');require('../chunk-BCTXH32I.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkS4RV2LTD_cjs.a}}); |
@@ -1,1 +0,1 @@ | ||
| export{a as Player}from'../chunk-JN3JQJEF.js';import'../chunk-GXOLIMQT.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js'; | ||
| export{a as Player}from'../chunk-YJOQHWVN.js';import'../chunk-ZQXFK7PD.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js'; |
@@ -1,1 +0,1 @@ | ||
| 'use strict';var chunkCWZPXTU2_cjs=require('../chunk-CWZPXTU2.cjs');require('../chunk-TAKTIPT7.cjs'),require('../chunk-BL5IEXIA.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkCWZPXTU2_cjs.a}});Object.defineProperty(exports,"checkPop",{enumerable:true,get:function(){return chunkCWZPXTU2_cjs.b}}); | ||
| 'use strict';var chunkR6AMJOJL_cjs=require('../chunk-R6AMJOJL.cjs');require('../chunk-S4RV2LTD.cjs'),require('../chunk-BCTXH32I.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-LVGLIRQU.cjs'),require('../chunk-3BAQWQNY.cjs'),require('../chunk-474VILDO.cjs'),require('../chunk-BTCK3T4L.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-TKJYRGEU.cjs'),require('../chunk-RQN3DXJB.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkR6AMJOJL_cjs.a}});Object.defineProperty(exports,"checkPop",{enumerable:true,get:function(){return chunkR6AMJOJL_cjs.b}}); |
@@ -1,1 +0,1 @@ | ||
| export{a as Pop,b as checkPop}from'../chunk-S3D62CAG.js';import'../chunk-JN3JQJEF.js';import'../chunk-GXOLIMQT.js';import'../chunk-WE5NUDRY.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js'; | ||
| export{a as Pop,b as checkPop}from'../chunk-6XQ6KWYP.js';import'../chunk-YJOQHWVN.js';import'../chunk-ZQXFK7PD.js';import'../chunk-WE5NUDRY.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js'; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| 'use strict';var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkB5K5JDPC_cjs=require('./chunk-B5K5JDPC.cjs'),chunkCWZPXTU2_cjs=require('./chunk-CWZPXTU2.cjs'),chunkTAKTIPT7_cjs=require('./chunk-TAKTIPT7.cjs');require('./chunk-BL5IEXIA.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunk6DDQAAOQ_cjs=require('./chunk-6DDQAAOQ.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-KNLOZXCA.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkKZGLJUFY_cjs=require('./chunk-KZGLJUFY.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs');var chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs');require('./chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkAOBEOJ2U_cjs.a}});Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkB5K5JDPC_cjs.a}});Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkCWZPXTU2_cjs.a}});Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkTAKTIPT7_cjs.a}});Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunk2FUCHY2J_cjs.a}});Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk6DDQAAOQ_cjs.a}});Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkKZGLJUFY_cjs.a}});Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkTJ5F2FGY_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunkEVKPEPYP_cjs.b}}); | ||
| 'use strict';var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkGNSSFU2Y_cjs=require('./chunk-GNSSFU2Y.cjs'),chunkR6AMJOJL_cjs=require('./chunk-R6AMJOJL.cjs'),chunkS4RV2LTD_cjs=require('./chunk-S4RV2LTD.cjs');require('./chunk-BCTXH32I.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunk6DDQAAOQ_cjs=require('./chunk-6DDQAAOQ.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-KNLOZXCA.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkKZGLJUFY_cjs=require('./chunk-KZGLJUFY.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs');var chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs');require('./chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkAOBEOJ2U_cjs.a}});Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkGNSSFU2Y_cjs.a}});Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunkR6AMJOJL_cjs.a}});Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkS4RV2LTD_cjs.a}});Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunk2FUCHY2J_cjs.a}});Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk6DDQAAOQ_cjs.a}});Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkKZGLJUFY_cjs.a}});Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkTJ5F2FGY_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunkEVKPEPYP_cjs.b}}); |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export{a as Image}from'./chunk-WOXKZOJ3.js';export{a as List}from'./chunk-KHVG2CY5.js';export{a as Pop}from'./chunk-S3D62CAG.js';export{a as Player}from'./chunk-JN3JQJEF.js';import'./chunk-GXOLIMQT.js';export{a as Text}from'./chunk-TH3DUBVR.js';export{a as Upload}from'./chunk-RKL7JR7S.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-DXS4BF7U.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';export{a as Clip}from'./chunk-5ZZKAVXJ.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';export{a as Files}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';export{b as setConfig}from'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js'; | ||
| export{a as Image}from'./chunk-WOXKZOJ3.js';export{a as List}from'./chunk-NRAQPBUM.js';export{a as Pop}from'./chunk-6XQ6KWYP.js';export{a as Player}from'./chunk-YJOQHWVN.js';import'./chunk-ZQXFK7PD.js';export{a as Text}from'./chunk-TH3DUBVR.js';export{a as Upload}from'./chunk-RKL7JR7S.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-DXS4BF7U.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';export{a as Clip}from'./chunk-5ZZKAVXJ.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';export{a as Files}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';export{b as setConfig}from'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js'; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| 'use strict';var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkB5K5JDPC_cjs=require('./chunk-B5K5JDPC.cjs'),chunkCWZPXTU2_cjs=require('./chunk-CWZPXTU2.cjs'),chunkTAKTIPT7_cjs=require('./chunk-TAKTIPT7.cjs');require('./chunk-BL5IEXIA.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunk6DDQAAOQ_cjs=require('./chunk-6DDQAAOQ.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-KNLOZXCA.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkKZGLJUFY_cjs=require('./chunk-KZGLJUFY.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs');var chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs');require('./chunk-JHSFSCC2.cjs');var react=require('@lit/react'),t=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var t__default=/*#__PURE__*/_interopDefault(t);function o(c,C){typeof window>"u"||window.customElements&&(window.customElements.get(c)||window.customElements.define(c,C));}o("mave-clip",chunkKZGLJUFY_cjs.a);var d=react.createComponent({tagName:"mave-clip",elementClass:chunkKZGLJUFY_cjs.a,react:t__default.default});o("mave-list",chunkB5K5JDPC_cjs.a);var w=react.createComponent({tagName:"mave-list",elementClass:chunkB5K5JDPC_cjs.a,react:t__default.default});o("mave-player",chunkTAKTIPT7_cjs.a);var y=react.createComponent({tagName:"mave-player",elementClass:chunkTAKTIPT7_cjs.a,react:t__default.default});o("mave-upload",chunk6DDQAAOQ_cjs.a);var E=react.createComponent({tagName:"mave-upload",elementClass:chunk6DDQAAOQ_cjs.a,react:t__default.default});o("mave-files",chunkTJ5F2FGY_cjs.a);var I=react.createComponent({tagName:"mave-files",elementClass:chunkTJ5F2FGY_cjs.a,react:t__default.default});o("mave-img",chunkAOBEOJ2U_cjs.a);var T=react.createComponent({tagName:"mave-img",elementClass:chunkAOBEOJ2U_cjs.a,react:t__default.default});o("mave-text",chunk2FUCHY2J_cjs.a);var D=react.createComponent({tagName:"mave-text",elementClass:chunk2FUCHY2J_cjs.a,react:t__default.default});o("mave-pop",chunkCWZPXTU2_cjs.a);var b=react.createComponent({tagName:"mave-pop",elementClass:chunkCWZPXTU2_cjs.a,react:t__default.default});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunkEVKPEPYP_cjs.b}});exports.Clip=d;exports.Files=I;exports.Image=T;exports.List=w;exports.Player=y;exports.Pop=b;exports.Text=D;exports.Upload=E; | ||
| 'use strict';var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkGNSSFU2Y_cjs=require('./chunk-GNSSFU2Y.cjs'),chunkR6AMJOJL_cjs=require('./chunk-R6AMJOJL.cjs'),chunkS4RV2LTD_cjs=require('./chunk-S4RV2LTD.cjs');require('./chunk-BCTXH32I.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunk6DDQAAOQ_cjs=require('./chunk-6DDQAAOQ.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-KNLOZXCA.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkKZGLJUFY_cjs=require('./chunk-KZGLJUFY.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs');var chunkEVKPEPYP_cjs=require('./chunk-EVKPEPYP.cjs');require('./chunk-JHSFSCC2.cjs');var react=require('@lit/react'),t=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var t__default=/*#__PURE__*/_interopDefault(t);function o(c,C){typeof window>"u"||window.customElements&&(window.customElements.get(c)||window.customElements.define(c,C));}o("mave-clip",chunkKZGLJUFY_cjs.a);var d=react.createComponent({tagName:"mave-clip",elementClass:chunkKZGLJUFY_cjs.a,react:t__default.default});o("mave-list",chunkGNSSFU2Y_cjs.a);var w=react.createComponent({tagName:"mave-list",elementClass:chunkGNSSFU2Y_cjs.a,react:t__default.default});o("mave-player",chunkS4RV2LTD_cjs.a);var y=react.createComponent({tagName:"mave-player",elementClass:chunkS4RV2LTD_cjs.a,react:t__default.default});o("mave-upload",chunk6DDQAAOQ_cjs.a);var E=react.createComponent({tagName:"mave-upload",elementClass:chunk6DDQAAOQ_cjs.a,react:t__default.default});o("mave-files",chunkTJ5F2FGY_cjs.a);var I=react.createComponent({tagName:"mave-files",elementClass:chunkTJ5F2FGY_cjs.a,react:t__default.default});o("mave-img",chunkAOBEOJ2U_cjs.a);var T=react.createComponent({tagName:"mave-img",elementClass:chunkAOBEOJ2U_cjs.a,react:t__default.default});o("mave-text",chunk2FUCHY2J_cjs.a);var D=react.createComponent({tagName:"mave-text",elementClass:chunk2FUCHY2J_cjs.a,react:t__default.default});o("mave-pop",chunkR6AMJOJL_cjs.a);var b=react.createComponent({tagName:"mave-pop",elementClass:chunkR6AMJOJL_cjs.a,react:t__default.default});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunkEVKPEPYP_cjs.b}});exports.Clip=d;exports.Files=I;exports.Image=T;exports.List=w;exports.Player=y;exports.Pop=b;exports.Text=D;exports.Upload=E; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| import {a as a$5}from'./chunk-WOXKZOJ3.js';import {a as a$1}from'./chunk-KHVG2CY5.js';import {a as a$7}from'./chunk-S3D62CAG.js';import {a as a$2}from'./chunk-JN3JQJEF.js';import'./chunk-GXOLIMQT.js';import {a as a$6}from'./chunk-TH3DUBVR.js';import {a as a$3}from'./chunk-RKL7JR7S.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-DXS4BF7U.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';import {a}from'./chunk-5ZZKAVXJ.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';import {a as a$4}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';export{b as setConfig}from'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js';import {createComponent}from'@lit/react';import t from'react';function o(c,C){typeof window>"u"||window.customElements&&(window.customElements.get(c)||window.customElements.define(c,C));}o("mave-clip",a);var d=createComponent({tagName:"mave-clip",elementClass:a,react:t});o("mave-list",a$1);var w=createComponent({tagName:"mave-list",elementClass:a$1,react:t});o("mave-player",a$2);var y=createComponent({tagName:"mave-player",elementClass:a$2,react:t});o("mave-upload",a$3);var E=createComponent({tagName:"mave-upload",elementClass:a$3,react:t});o("mave-files",a$4);var I=createComponent({tagName:"mave-files",elementClass:a$4,react:t});o("mave-img",a$5);var T=createComponent({tagName:"mave-img",elementClass:a$5,react:t});o("mave-text",a$6);var D=createComponent({tagName:"mave-text",elementClass:a$6,react:t});o("mave-pop",a$7);var b=createComponent({tagName:"mave-pop",elementClass:a$7,react:t});export{d as Clip,I as Files,T as Image,w as List,y as Player,b as Pop,D as Text,E as Upload}; | ||
| import {a as a$5}from'./chunk-WOXKZOJ3.js';import {a as a$1}from'./chunk-NRAQPBUM.js';import {a as a$7}from'./chunk-6XQ6KWYP.js';import {a as a$2}from'./chunk-YJOQHWVN.js';import'./chunk-ZQXFK7PD.js';import {a as a$6}from'./chunk-TH3DUBVR.js';import {a as a$3}from'./chunk-RKL7JR7S.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-DXS4BF7U.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';import {a}from'./chunk-5ZZKAVXJ.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';import {a as a$4}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';export{b as setConfig}from'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js';import {createComponent}from'@lit/react';import t from'react';function o(c,C){typeof window>"u"||window.customElements&&(window.customElements.get(c)||window.customElements.define(c,C));}o("mave-clip",a);var d=createComponent({tagName:"mave-clip",elementClass:a,react:t});o("mave-list",a$1);var w=createComponent({tagName:"mave-list",elementClass:a$1,react:t});o("mave-player",a$2);var y=createComponent({tagName:"mave-player",elementClass:a$2,react:t});o("mave-upload",a$3);var E=createComponent({tagName:"mave-upload",elementClass:a$3,react:t});o("mave-files",a$4);var I=createComponent({tagName:"mave-files",elementClass:a$4,react:t});o("mave-img",a$5);var T=createComponent({tagName:"mave-img",elementClass:a$5,react:t});o("mave-text",a$6);var D=createComponent({tagName:"mave-text",elementClass:a$6,react:t});o("mave-pop",a$7);var b=createComponent({tagName:"mave-pop",elementClass:a$7,react:t});export{d as Clip,I as Files,T as Image,w as List,y as Player,b as Pop,D as Text,E as Upload}; |
@@ -889,3 +889,3 @@ 'use strict';require('../chunk-JHSFSCC2.cjs');function r(t,a,i,o){class e extends a{render(){return i` | ||
| .mave-gradient-bottom { | ||
| height: 50%; | ||
| height: 50px; | ||
| } | ||
@@ -931,3 +931,3 @@ | ||
| div[slot='centered-chrome'] { | ||
| display: none; | ||
| display: var(--big-button-display, none); | ||
| } | ||
@@ -934,0 +934,0 @@ |
@@ -889,3 +889,3 @@ import'../chunk-KA24PL7V.js';function r(t,a,i,o){class e extends a{render(){return i` | ||
| .mave-gradient-bottom { | ||
| height: 50%; | ||
| height: 50px; | ||
| } | ||
@@ -931,3 +931,3 @@ | ||
| div[slot='centered-chrome'] { | ||
| display: none; | ||
| display: var(--big-button-display, none); | ||
| } | ||
@@ -934,0 +934,0 @@ |
@@ -706,5 +706,5 @@ 'use strict';require('../chunk-JHSFSCC2.cjs');function n(t,a,i,o){class e extends a{render(){return i` | ||
| div[slot='centered-chrome'] { | ||
| display: none; | ||
| display: var(--big-button-display, none); | ||
| } | ||
| } | ||
| `,customElements.define(`theme-${t}`,e);}exports.build=n; |
@@ -706,5 +706,5 @@ import'../chunk-KA24PL7V.js';function n(t,a,i,o){class e extends a{render(){return i` | ||
| div[slot='centered-chrome'] { | ||
| display: none; | ||
| display: var(--big-button-display, none); | ||
| } | ||
| } | ||
| `,customElements.define(`theme-${t}`,e);}export{n as build}; |
@@ -1,1 +0,1 @@ | ||
| 'use strict';var chunkBL5IEXIA_cjs=require('../chunk-BL5IEXIA.cjs');require('../chunk-J7OISSKU.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"ThemeLoader",{enumerable:true,get:function(){return chunkBL5IEXIA_cjs.a}}); | ||
| 'use strict';var chunkBCTXH32I_cjs=require('../chunk-BCTXH32I.cjs');require('../chunk-J7OISSKU.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"ThemeLoader",{enumerable:true,get:function(){return chunkBCTXH32I_cjs.a}}); |
@@ -1,1 +0,1 @@ | ||
| export{a as ThemeLoader}from'../chunk-GXOLIMQT.js';import'../chunk-P6SBZPDR.js';import'../chunk-5PIHL662.js';import'../chunk-YPCQNE3R.js';import'../chunk-KA24PL7V.js'; | ||
| export{a as ThemeLoader}from'../chunk-ZQXFK7PD.js';import'../chunk-P6SBZPDR.js';import'../chunk-5PIHL662.js';import'../chunk-YPCQNE3R.js';import'../chunk-KA24PL7V.js'; |
@@ -729,3 +729,3 @@ 'use strict';require('../chunk-JHSFSCC2.cjs');function r(t,a,i,o){class e extends a{render(){return i` | ||
| div[slot='centered-chrome'] { | ||
| display: none; | ||
| display: var(--big-button-display, none); | ||
| } | ||
@@ -732,0 +732,0 @@ } |
@@ -729,3 +729,3 @@ import'../chunk-KA24PL7V.js';function r(t,a,i,o){class e extends a{render(){return i` | ||
| div[slot='centered-chrome'] { | ||
| display: none; | ||
| display: var(--big-button-display, none); | ||
| } | ||
@@ -732,0 +732,0 @@ } |
+1
-1
@@ -1,1 +0,1 @@ | ||
| 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkB5K5JDPC_cjs=require('./chunk-B5K5JDPC.cjs'),chunkCWZPXTU2_cjs=require('./chunk-CWZPXTU2.cjs'),chunkTAKTIPT7_cjs=require('./chunk-TAKTIPT7.cjs');require('./chunk-BL5IEXIA.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunk6DDQAAOQ_cjs=require('./chunk-6DDQAAOQ.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-KNLOZXCA.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkKZGLJUFY_cjs=require('./chunk-KZGLJUFY.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs'),require('./chunk-EVKPEPYP.cjs'),require('./chunk-JHSFSCC2.cjs');var vue=require('vue');var l={Clip:{tag:"mave-clip",element:chunkKZGLJUFY_cjs.a},Files:{tag:"mave-files",element:chunkTJ5F2FGY_cjs.a},Image:{tag:"mave-img",element:chunkAOBEOJ2U_cjs.a},List:{tag:"mave-list",element:chunkB5K5JDPC_cjs.a},Player:{tag:"mave-player",element:chunkTAKTIPT7_cjs.a},Pop:{tag:"mave-pop",element:chunkCWZPXTU2_cjs.a},Text:{tag:"mave-text",element:chunk2FUCHY2J_cjs.a},Upload:{tag:"mave-upload",element:chunk6DDQAAOQ_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; | ||
| 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkAOBEOJ2U_cjs=require('./chunk-AOBEOJ2U.cjs'),chunkGNSSFU2Y_cjs=require('./chunk-GNSSFU2Y.cjs'),chunkR6AMJOJL_cjs=require('./chunk-R6AMJOJL.cjs'),chunkS4RV2LTD_cjs=require('./chunk-S4RV2LTD.cjs');require('./chunk-BCTXH32I.cjs');var chunk2FUCHY2J_cjs=require('./chunk-2FUCHY2J.cjs'),chunk6DDQAAOQ_cjs=require('./chunk-6DDQAAOQ.cjs');require('./chunk-IBQULJZC.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-KNLOZXCA.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-QQDH35OW.cjs'),require('./chunk-K5Z7QHTN.cjs'),require('./chunk-LVGLIRQU.cjs'),require('./chunk-3BAQWQNY.cjs'),require('./chunk-474VILDO.cjs');var chunkKZGLJUFY_cjs=require('./chunk-KZGLJUFY.cjs');require('./chunk-BTCK3T4L.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-FAONFKQ2.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkTJ5F2FGY_cjs=require('./chunk-TJ5F2FGY.cjs');require('./chunk-TKJYRGEU.cjs'),require('./chunk-RQN3DXJB.cjs'),require('./chunk-DL4BV5IH.cjs'),require('./chunk-2E5GLLOS.cjs'),require('./chunk-X7OGQ4KH.cjs'),require('./chunk-QOM4AP6R.cjs'),require('./chunk-NPP5B5PV.cjs'),require('./chunk-EVKPEPYP.cjs'),require('./chunk-JHSFSCC2.cjs');var vue=require('vue');var l={Clip:{tag:"mave-clip",element:chunkKZGLJUFY_cjs.a},Files:{tag:"mave-files",element:chunkTJ5F2FGY_cjs.a},Image:{tag:"mave-img",element:chunkAOBEOJ2U_cjs.a},List:{tag:"mave-list",element:chunkGNSSFU2Y_cjs.a},Player:{tag:"mave-player",element:chunkS4RV2LTD_cjs.a},Pop:{tag:"mave-pop",element:chunkR6AMJOJL_cjs.a},Text:{tag:"mave-text",element:chunk2FUCHY2J_cjs.a},Upload:{tag:"mave-upload",element:chunk6DDQAAOQ_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; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| import {a as a$5}from'./chunk-WOXKZOJ3.js';import {a as a$4}from'./chunk-KHVG2CY5.js';import {a as a$2}from'./chunk-S3D62CAG.js';import {a as a$3}from'./chunk-JN3JQJEF.js';import'./chunk-GXOLIMQT.js';import {a as a$1}from'./chunk-TH3DUBVR.js';import {a}from'./chunk-RKL7JR7S.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-DXS4BF7U.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';import {a as a$7}from'./chunk-5ZZKAVXJ.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';import {a as a$6}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';import'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js';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}; | ||
| import {a as a$5}from'./chunk-WOXKZOJ3.js';import {a as a$4}from'./chunk-NRAQPBUM.js';import {a as a$2}from'./chunk-6XQ6KWYP.js';import {a as a$3}from'./chunk-YJOQHWVN.js';import'./chunk-ZQXFK7PD.js';import {a as a$1}from'./chunk-TH3DUBVR.js';import {a}from'./chunk-RKL7JR7S.js';import'./chunk-CVXHA76S.js';import'./chunk-WE5NUDRY.js';import'./chunk-DXS4BF7U.js';import'./chunk-P6SBZPDR.js';import'./chunk-B6P2GJBQ.js';import'./chunk-CNPQ5Q2M.js';import'./chunk-HMVS6DJE.js';import'./chunk-KO3CETGD.js';import'./chunk-3UQNIS3L.js';import {a as a$7}from'./chunk-5ZZKAVXJ.js';import'./chunk-RHTBV6KZ.js';import'./chunk-MK4VIJT3.js';import'./chunk-R3SDTEHC.js';import'./chunk-MMHEOMF5.js';import {a as a$6}from'./chunk-NDPOBFNC.js';import'./chunk-SWRFZ3FV.js';import'./chunk-OX42Y2HR.js';import'./chunk-PTN427IG.js';import'./chunk-5PIHL662.js';import'./chunk-2JCNQPEK.js';import'./chunk-QFF6OUH6.js';import'./chunk-YPCQNE3R.js';import'./chunk-ZTDQPDC6.js';import'./chunk-KA24PL7V.js';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}; |
+1
-1
| { | ||
| "name": "@maveio/components", | ||
| "version": "0.0.172", | ||
| "version": "0.0.173", | ||
| "description": "privacy friendly (🇪🇺), iframe-less, video UI elements for videos hosted on mave.io", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
| 'use strict';var chunkCWZPXTU2_cjs=require('./chunk-CWZPXTU2.cjs'),chunkTKJYRGEU_cjs=require('./chunk-TKJYRGEU.cjs'),chunkRQN3DXJB_cjs=require('./chunk-RQN3DXJB.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n,C,b,h,f,p,u=class extends chunkTKJYRGEU_cjs.a{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,n);this.order="newest";this.embedController=new chunkRQN3DXJB_cjs.b(this,0);}connectedCallback(){super.connectedCallback(),this.embedController.token=this.token;}requestUpdate(e,o){super.requestUpdate(e,o),e==="embed"&&(this.embedController.token=this.token);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}updated(){this.shadowRoot&&chunkCWZPXTU2_cjs.b(this.shadowRoot);}refresh(){return this.embedController.refresh()}containsEmbed(e){return this._collection?.videos?.some(o=>o.id===e)}getNextForEmbed(e){let o=chunkJHSFSCC2_cjs.g(this,n,C).call(this),t=o.findIndex(s=>s.id===e);if(t!==-1)return o[t+1]}render(){return chunk2E5GLLOS_cjs.a` | ||
| ${this.embedController.render({pending:this.renderPending,error:e=>chunk2E5GLLOS_cjs.a`<p>${e instanceof Error?e.message:chunk2E5GLLOS_cjs.e}</p>`,complete:e=>{if(this._collection=e,!e)return this.renderPending();if(e.error)return console.warn(e.error);let o=this._slottedChildren.map(t=>{function s(){let l;return t.nodeName==="TEMPLATE"?l=t.content.cloneNode(true):l=t.cloneNode(true),l}if(t.getAttribute("name")=="list-title"){let l=s();return l.textContent=this._collection?.name,chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-root"&&this.embedController.embed){let l=s(),i=chunkJHSFSCC2_cjs.g(this,n,f).call(this,l,"root-link");return i&&(i.addEventListener("click",a=>{a.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"back",embedId:""}),this.embedController.embed="";}),chunkJHSFSCC2_cjs.g(this,n,p).call(this,i)),chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-folder"){let l=this._collection.collections?.map(i=>{let a=s(),m=chunkJHSFSCC2_cjs.g(this,n,f).call(this,a,"folder-link");return [t,m].forEach(d=>{d instanceof Element&&(d.addEventListener("click",g=>{g.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"show_collection",collectionId:i.id}),this.embedController.embed=i.id;}),chunkJHSFSCC2_cjs.g(this,n,p).call(this,d));}),chunkJHSFSCC2_cjs.g(this,n,h).call(this,a,"folder-title",i.name),typeof i.video_count=="number"&&chunkJHSFSCC2_cjs.g(this,n,h).call(this,a,"folder-count",i.video_count.toString()),chunk2E5GLLOS_cjs.a`${a}`});return chunk2E5GLLOS_cjs.a`${l}`}if(t.getAttribute("name")=="mave-list-item"||!["mave-list-folder","mave-list-item","mave-list-root","list-title"].includes(t.hasAttribute("name")?t.getAttribute("name"):"")&&t.nodeName=="TEMPLATE"){let l=chunkJHSFSCC2_cjs.g(this,n,C).call(this).map((i,a)=>{let m=s(),d=a+1;chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-title",i.name),chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-position",d.toString()),chunkJHSFSCC2_cjs.g(this,n,h).call(this,m,"item-duration",this.durationToTime(i.duration)),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-clip",i.id),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-player",i.id),chunkJHSFSCC2_cjs.g(this,n,b).call(this,m,"mave-img",i.id);let g=m.querySelector("mave-clip"),S=chunkJHSFSCC2_cjs.g(this,n,f).call(this,m,"item-title"),$=m.querySelector("mave-img");return [g,S,$,m].forEach(P=>{P?.addEventListener("click",x=>{this.emit(this.EVENT_TYPES.CLICK,{action:"show_embed",embedId:i.id,position:d});});}),chunk2E5GLLOS_cjs.a`${m}`});return chunk2E5GLLOS_cjs.a`${l}`}}).filter(t=>t);return chunk2E5GLLOS_cjs.a`${this._stylesheets} ${o}`}})} | ||
| `}renderPending(){return chunk2E5GLLOS_cjs.a`<slot style="display: none"></slot>`}};n=new WeakSet,C=function(){if(!this._collection)return [];let e=this._collection.videos;return this.order=="newest"&&(e=this._collection.videos?.sort((o,t)=>t.created-o.created)),this.order=="oldest"&&(e=this._collection.videos?.sort((o,t)=>o.created-t.created)),this.order=="az"&&(e=this._collection.videos?.sort((o,t)=>o.name.localeCompare(t.name))),this.order=="za"&&(e=this._collection.videos?.sort((o,t)=>t.name.localeCompare(o.name))),e},b=function(e,o,t){let s=e.querySelector(o);s&&(s.setAttribute("embed",t),chunkJHSFSCC2_cjs.g(this,n,p).call(this,s));},h=function(e,o,t){let s=chunkJHSFSCC2_cjs.g(this,n,f).call(this,e,o);s&&(s.textContent=t,chunkJHSFSCC2_cjs.g(this,n,p).call(this,s));},f=function(e,o){return e.querySelector(`[slot="${o}"], [data-slot="${o}"]`)},p=function(e){e&&(e.removeAttribute("slot"),e.removeAttribute("data-slot"));},u.styles=chunkNPP5B5PV_cjs.a` | ||
| :host { | ||
| display: block; | ||
| } | ||
| `,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],u.prototype,"token",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_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; |
| 'use strict';var chunkJ7OISSKU_cjs=require('./chunk-J7OISSKU.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;var d=["default","synthwave","dolphin"],h={default:()=>import('./themes/default.cjs'),synthwave:()=>import('./themes/synthwave.cjs'),dolphin:()=>import('./themes/dolphin.cjs')};async function p(t){if(!d.includes(t))return;let n=!!chunkJ7OISSKU_cjs.a();if(!n){let c=h[t];if(c)try{return await c()}catch{}}let s=n?`./dist/themes/${t}.js`:`./themes/${t}.js`,e=new URL(s,(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-BL5IEXIA.cjs', document.baseURI).href))).href;return l(e)}async function l(t){return import(t)}var m=class t{constructor(){this.themes=[];}static async get(n,s){if(t.instance||(t.instance=new t),t.instance.themes.find(e=>e.name===n))return t.instance.currentTheme=n,Promise.resolve(t.instance);t.instance.themes.push({name:n}),t.instance.currentTheme=n;try{if(typeof document<"u"&&!d.includes(n)){let e=document.createElement("link");e.rel="stylesheet",e.href=`${s}/${n}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}try{if(s&&!d.includes(n)){let{build:e}=await l(`${s}/${n}.js`);e(n,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);}else {let e=await p(n);if(e)e.build(n,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);else {let c=`./${chunkJ7OISSKU_cjs.a()}themes/${n}.js`,{build:u}=await l(c);u(n,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);}}}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static async external(n){t.instance||(t.instance=new t);let s=n.split("/").pop()?.replace(".js","")||"";try{if(typeof document<"u"){let e=document.createElement("link");e.rel="stylesheet",e.href=`${n.replace(".js","")}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}if(t.instance.themes.find(e=>e.name===s))return t.instance.currentTheme=s,Promise.resolve(t.instance);t.instance.themes.push({name:s}),t.instance.currentTheme=s;try{let{build:e}=await l(n);e(s,chunk2E5GLLOS_cjs.g,chunk2E5GLLOS_cjs.a,chunkNPP5B5PV_cjs.a);}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static getTheme(){return t.instance?t.instance.currentTheme:""}};exports.a=m; |
| 'use strict';var chunkTAKTIPT7_cjs=require('./chunk-TAKTIPT7.cjs'),chunkQQDH35OW_cjs=require('./chunk-QQDH35OW.cjs'),chunkDL4BV5IH_cjs=require('./chunk-DL4BV5IH.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs'),chunkJHSFSCC2_cjs=require('./chunk-JHSFSCC2.cjs');var n=class extends chunk2E5GLLOS_cjs.g{get backdrop(){return this._backdropColor||"black"}set backdrop(t){this._backdropColor!=t&&(this._backdropColor=t);}get backdropFilter(){return this._backdropFilter}set backdropFilter(t){this._backdropFilter!=t&&(this._backdropFilter=t);}get styles(){let t={"--backdrop":this.backdrop,"--backdrop-filter":this.backdropFilter};return chunkQQDH35OW_cjs.a(t)}open(t){if(this._player=t,t.aspect_ratio){let[i,s]=t.aspect_ratio.split("/");this.style.setProperty("--frame-ratio-w",i),this.style.setProperty("--frame-ratio-h",s);}this.style.display="block";let o=i=>{this._frame.appendChild(t),setTimeout(()=>{this._dialog.showModal();},25),this._dialog.addEventListener("close",s=>{s.preventDefault(),this.close();},{once:true}),i(this);};return new Promise(i=>{if(this._dialog)o(i);else {let s=setInterval(()=>{this._dialog&&(o(i),clearInterval(s));},100);return}})}possibleClose(t){t.target!=this._player&&this.close();}close(){this._dialog.close(),this._backdrop.addEventListener("transitionend",()=>{this._frame.innerHTML="",this.dispatchEvent(new Event("closed",{bubbles:true}));},{once:true});}render(){return chunk2E5GLLOS_cjs.a` | ||
| <dialog style=${this.styles}> | ||
| <div class="backdrop"></div> | ||
| <div class="content" @click=${this.possibleClose}> | ||
| <div class="wrapper"> | ||
| <slot style="display: none;"></slot> | ||
| <div class="frame"></div> | ||
| </div> | ||
| </div> | ||
| <div class="button-close" @click=${this.close}> | ||
| <svg | ||
| width="24px" | ||
| height="24px" | ||
| stroke-width="1" | ||
| viewBox="0 0 24 24" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| color="currentColor" | ||
| > | ||
| <path | ||
| d="M6 12h6m6 0h-6m0 0V6m0 6v6" | ||
| stroke="currentColor" | ||
| stroke-width="1" | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| ></path> | ||
| </svg> | ||
| </div> | ||
| </dialog> | ||
| `}};n.styles=chunkNPP5B5PV_cjs.a` | ||
| :host { | ||
| all: initial; | ||
| --backdrop: black; | ||
| --frame-max-height: 100vh; | ||
| --frame-ratio-w: 16; | ||
| --frame-ratio-h: 9; | ||
| --backdrop-filter: blur(0); | ||
| } | ||
| slot { | ||
| all: initial; | ||
| position: fixed; | ||
| } | ||
| dialog { | ||
| display: block; | ||
| margin: 0; | ||
| padding: 0; | ||
| border: 0; | ||
| pointer-events: none; | ||
| background: transparent; | ||
| } | ||
| dialog .content { | ||
| position: fixed; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| top: 0; | ||
| left: 0; | ||
| opacity: 0; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| transform: scale(0.96); | ||
| transition-property: transform, opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .backdrop { | ||
| position: fixed; | ||
| background: var(--backdrop); | ||
| backdrop-filter: var(--backdrop-filter); | ||
| opacity: 0; | ||
| top: 0; | ||
| left: 0; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| transition-property: opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| dialog[open] .backdrop { | ||
| opacity: 1; | ||
| } | ||
| dialog::backdrop { | ||
| background: none; | ||
| } | ||
| dialog[open] { | ||
| pointer-events: auto; | ||
| } | ||
| dialog[open] .content { | ||
| opacity: 1; | ||
| transform: scale(1); | ||
| } | ||
| dialog[open] .button-close { | ||
| display: block; | ||
| } | ||
| .button-close { | ||
| display: none; | ||
| position: fixed; | ||
| top: 0.8rem; | ||
| right: 0.6rem; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transition-property: transform; | ||
| transition-duration: 100ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .button-close:hover { | ||
| cursor: pointer; | ||
| transform: scale(1.3); | ||
| } | ||
| .button-close svg { | ||
| color: white; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transform: rotate(45deg); | ||
| } | ||
| .wrapper { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 100%; | ||
| height: 100%; | ||
| max-width: 100vw; | ||
| max-height: var(--frame-max-height); | ||
| } | ||
| .frame { | ||
| --ratio: calc(var(--frame-ratio-h, 1) / var(--frame-ratio-w, 1) * 100%); | ||
| --frame-height: min(var(--ratio), var(--frame-max-height)); | ||
| position: relative; | ||
| padding-bottom: var(--frame-height); | ||
| width: min( | ||
| calc(var(--frame-height, 0) * (var(--frame-ratio-w) / var(--frame-ratio-h))), | ||
| 100% | ||
| ); | ||
| height: 0; | ||
| overflow: hidden; | ||
| background-size: contain; | ||
| background-position: center center; | ||
| background-repeat: no-repeat; | ||
| } | ||
| `,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c("dialog")],n.prototype,"_dialog",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".content")],n.prototype,"_content",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".frame")],n.prototype,"_frame",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.c(".backdrop")],n.prototype,"_backdrop",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"backdrop",1),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a({attribute:"backdrop-filter"})],n.prototype,"backdropFilter",1);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",n));function E(l){let t={};if(!l)return t;for(let o=0;o<l.attributes.length;o++){let i=l.attributes[o];t[i.name]=i.value;}return t}var x=()=>typeof document<"u"?document:void 0,_=l=>{let t=x();if(!t)return;let o=t;function i(c){let e,r,a=o.querySelector(`mave-pop[embed="${c}"]`);if(a)return r=E(a.querySelector("mave-player")),e=a,{pop:e,attributes:r};let p=o.querySelector("mave-pop:not([embed])");return p?(r=E(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new n,o.body.appendChild(e),{pop:e})}function s(c,e){let r=new chunkTAKTIPT7_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=_; |
| import {a as a$2}from'./chunk-P6SBZPDR.js';import {g,a}from'./chunk-5PIHL662.js';import {a as a$1}from'./chunk-YPCQNE3R.js';var d=["default","synthwave","dolphin"],h={default:()=>import('./themes/default.js'),synthwave:()=>import('./themes/synthwave.js'),dolphin:()=>import('./themes/dolphin.js')};async function p(t){if(!d.includes(t))return;let n=!!a$2();if(!n){let c=h[t];if(c)try{return await c()}catch{}}let s=n?`./dist/themes/${t}.js`:`./themes/${t}.js`,e=new URL(s,import.meta.url).href;return l(e)}async function l(t){return import(t)}var m=class t{constructor(){this.themes=[];}static async get(n,s){if(t.instance||(t.instance=new t),t.instance.themes.find(e=>e.name===n))return t.instance.currentTheme=n,Promise.resolve(t.instance);t.instance.themes.push({name:n}),t.instance.currentTheme=n;try{if(typeof document<"u"&&!d.includes(n)){let e=document.createElement("link");e.rel="stylesheet",e.href=`${s}/${n}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}try{if(s&&!d.includes(n)){let{build:e}=await l(`${s}/${n}.js`);e(n,g,a,a$1);}else {let e=await p(n);if(e)e.build(n,g,a,a$1);else {let c=`./${a$2()}themes/${n}.js`,{build:u}=await l(c);u(n,g,a,a$1);}}}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static async external(n){t.instance||(t.instance=new t);let s=n.split("/").pop()?.replace(".js","")||"";try{if(typeof document<"u"){let e=document.createElement("link");e.rel="stylesheet",e.href=`${n.replace(".js","")}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}if(t.instance.themes.find(e=>e.name===s))return t.instance.currentTheme=s,Promise.resolve(t.instance);t.instance.themes.push({name:s}),t.instance.currentTheme=s;try{let{build:e}=await l(n);e(s,g,a,a$1);}catch(e){console.log("[mave-player]: theme not loaded",e);}return Promise.resolve(t.instance)}static getTheme(){return t.instance?t.instance.currentTheme:""}};export{m as a}; |
Sorry, the diff of this file is too big to display
| import {b as b$2}from'./chunk-S3D62CAG.js';import {a as a$2}from'./chunk-SWRFZ3FV.js';import {b as b$1}from'./chunk-OX42Y2HR.js';import {a as a$1}from'./chunk-PTN427IG.js';import {a as a$3,e as e$1}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';import {c,e,g}from'./chunk-KA24PL7V.js';var n,C,b,h,f,p,u=class extends a$2{constructor(){super(...arguments);e(this,n);this.order="newest";this.embedController=new b$1(this,0);}connectedCallback(){super.connectedCallback(),this.embedController.token=this.token;}requestUpdate(e,o){super.requestUpdate(e,o),e==="embed"&&(this.embedController.token=this.token);}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:true})||[]}updated(){this.shadowRoot&&b$2(this.shadowRoot);}refresh(){return this.embedController.refresh()}containsEmbed(e){return this._collection?.videos?.some(o=>o.id===e)}getNextForEmbed(e){let o=g(this,n,C).call(this),t=o.findIndex(s=>s.id===e);if(t!==-1)return o[t+1]}render(){return a$3` | ||
| ${this.embedController.render({pending:this.renderPending,error:e=>a$3`<p>${e instanceof Error?e.message:e$1}</p>`,complete:e=>{if(this._collection=e,!e)return this.renderPending();if(e.error)return console.warn(e.error);let o=this._slottedChildren.map(t=>{function s(){let l;return t.nodeName==="TEMPLATE"?l=t.content.cloneNode(true):l=t.cloneNode(true),l}if(t.getAttribute("name")=="list-title"){let l=s();return l.textContent=this._collection?.name,a$3`${l}`}if(t.getAttribute("name")=="mave-list-root"&&this.embedController.embed){let l=s(),i=g(this,n,f).call(this,l,"root-link");return i&&(i.addEventListener("click",a=>{a.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"back",embedId:""}),this.embedController.embed="";}),g(this,n,p).call(this,i)),a$3`${l}`}if(t.getAttribute("name")=="mave-list-folder"){let l=this._collection.collections?.map(i=>{let a=s(),m=g(this,n,f).call(this,a,"folder-link");return [t,m].forEach(d=>{d instanceof Element&&(d.addEventListener("click",g=>{g.preventDefault(),this.emit(this.EVENT_TYPES.CLICK,{action:"show_collection",collectionId:i.id}),this.embedController.embed=i.id;}),g(this,n,p).call(this,d));}),g(this,n,h).call(this,a,"folder-title",i.name),typeof i.video_count=="number"&&g(this,n,h).call(this,a,"folder-count",i.video_count.toString()),a$3`${a}`});return a$3`${l}`}if(t.getAttribute("name")=="mave-list-item"||!["mave-list-folder","mave-list-item","mave-list-root","list-title"].includes(t.hasAttribute("name")?t.getAttribute("name"):"")&&t.nodeName=="TEMPLATE"){let l=g(this,n,C).call(this).map((i,a)=>{let m=s(),d=a+1;g(this,n,h).call(this,m,"item-title",i.name),g(this,n,h).call(this,m,"item-position",d.toString()),g(this,n,h).call(this,m,"item-duration",this.durationToTime(i.duration)),g(this,n,b).call(this,m,"mave-clip",i.id),g(this,n,b).call(this,m,"mave-player",i.id),g(this,n,b).call(this,m,"mave-img",i.id);let g$1=m.querySelector("mave-clip"),S=g(this,n,f).call(this,m,"item-title"),$=m.querySelector("mave-img");return [g$1,S,$,m].forEach(P=>{P?.addEventListener("click",x=>{this.emit(this.EVENT_TYPES.CLICK,{action:"show_embed",embedId:i.id,position:d});});}),a$3`${m}`});return a$3`${l}`}}).filter(t=>t);return a$3`${this._stylesheets} ${o}`}})} | ||
| `}renderPending(){return a$3`<slot style="display: none"></slot>`}};n=new WeakSet,C=function(){if(!this._collection)return [];let e=this._collection.videos;return this.order=="newest"&&(e=this._collection.videos?.sort((o,t)=>t.created-o.created)),this.order=="oldest"&&(e=this._collection.videos?.sort((o,t)=>o.created-t.created)),this.order=="az"&&(e=this._collection.videos?.sort((o,t)=>o.name.localeCompare(t.name))),this.order=="za"&&(e=this._collection.videos?.sort((o,t)=>t.name.localeCompare(o.name))),e},b=function(e,o,t){let s=e.querySelector(o);s&&(s.setAttribute("embed",t),g(this,n,p).call(this,s));},h=function(e,o,t){let s=g(this,n,f).call(this,e,o);s&&(s.textContent=t,g(this,n,p).call(this,s));},f=function(e,o){return e.querySelector(`[slot="${o}"], [data-slot="${o}"]`)},p=function(e){e&&(e.removeAttribute("slot"),e.removeAttribute("data-slot"));},u.styles=a` | ||
| :host { | ||
| display: block; | ||
| } | ||
| `,c([a$1()],u.prototype,"token",2),c([a$1()],u.prototype,"order",2);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-list")||window.customElements.define("mave-list",u));export{u as a}; |
| import {a as a$4}from'./chunk-JN3JQJEF.js';import {a as a$2}from'./chunk-B6P2GJBQ.js';import {c as c$1,a as a$1}from'./chunk-PTN427IG.js';import {g,a as a$3}from'./chunk-5PIHL662.js';import {a}from'./chunk-YPCQNE3R.js';import {c}from'./chunk-KA24PL7V.js';var n=class extends g{get backdrop(){return this._backdropColor||"black"}set backdrop(t){this._backdropColor!=t&&(this._backdropColor=t);}get backdropFilter(){return this._backdropFilter}set backdropFilter(t){this._backdropFilter!=t&&(this._backdropFilter=t);}get styles(){let t={"--backdrop":this.backdrop,"--backdrop-filter":this.backdropFilter};return a$2(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 a$3` | ||
| <dialog style=${this.styles}> | ||
| <div class="backdrop"></div> | ||
| <div class="content" @click=${this.possibleClose}> | ||
| <div class="wrapper"> | ||
| <slot style="display: none;"></slot> | ||
| <div class="frame"></div> | ||
| </div> | ||
| </div> | ||
| <div class="button-close" @click=${this.close}> | ||
| <svg | ||
| width="24px" | ||
| height="24px" | ||
| stroke-width="1" | ||
| viewBox="0 0 24 24" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| color="currentColor" | ||
| > | ||
| <path | ||
| d="M6 12h6m6 0h-6m0 0V6m0 6v6" | ||
| stroke="currentColor" | ||
| stroke-width="1" | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| ></path> | ||
| </svg> | ||
| </div> | ||
| </dialog> | ||
| `}};n.styles=a` | ||
| :host { | ||
| all: initial; | ||
| --backdrop: black; | ||
| --frame-max-height: 100vh; | ||
| --frame-ratio-w: 16; | ||
| --frame-ratio-h: 9; | ||
| --backdrop-filter: blur(0); | ||
| } | ||
| slot { | ||
| all: initial; | ||
| position: fixed; | ||
| } | ||
| dialog { | ||
| display: block; | ||
| margin: 0; | ||
| padding: 0; | ||
| border: 0; | ||
| pointer-events: none; | ||
| background: transparent; | ||
| } | ||
| dialog .content { | ||
| position: fixed; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| top: 0; | ||
| left: 0; | ||
| opacity: 0; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| transform: scale(0.96); | ||
| transition-property: transform, opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .backdrop { | ||
| position: fixed; | ||
| background: var(--backdrop); | ||
| backdrop-filter: var(--backdrop-filter); | ||
| opacity: 0; | ||
| top: 0; | ||
| left: 0; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| transition-property: opacity; | ||
| transition-duration: 200ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| dialog[open] .backdrop { | ||
| opacity: 1; | ||
| } | ||
| dialog::backdrop { | ||
| background: none; | ||
| } | ||
| dialog[open] { | ||
| pointer-events: auto; | ||
| } | ||
| dialog[open] .content { | ||
| opacity: 1; | ||
| transform: scale(1); | ||
| } | ||
| dialog[open] .button-close { | ||
| display: block; | ||
| } | ||
| .button-close { | ||
| display: none; | ||
| position: fixed; | ||
| top: 0.8rem; | ||
| right: 0.6rem; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transition-property: transform; | ||
| transition-duration: 100ms; | ||
| transition-timing-function: ease-out; | ||
| } | ||
| .button-close:hover { | ||
| cursor: pointer; | ||
| transform: scale(1.3); | ||
| } | ||
| .button-close svg { | ||
| color: white; | ||
| width: 2.75rem; | ||
| height: 2.75rem; | ||
| transform: rotate(45deg); | ||
| } | ||
| .wrapper { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 100%; | ||
| height: 100%; | ||
| max-width: 100vw; | ||
| max-height: var(--frame-max-height); | ||
| } | ||
| .frame { | ||
| --ratio: calc(var(--frame-ratio-h, 1) / var(--frame-ratio-w, 1) * 100%); | ||
| --frame-height: min(var(--ratio), var(--frame-max-height)); | ||
| position: relative; | ||
| padding-bottom: var(--frame-height); | ||
| width: min( | ||
| calc(var(--frame-height, 0) * (var(--frame-ratio-w) / var(--frame-ratio-h))), | ||
| 100% | ||
| ); | ||
| height: 0; | ||
| overflow: hidden; | ||
| background-size: contain; | ||
| background-position: center center; | ||
| background-repeat: no-repeat; | ||
| } | ||
| `,c([c$1("dialog")],n.prototype,"_dialog",2),c([c$1(".content")],n.prototype,"_content",2),c([c$1(".frame")],n.prototype,"_frame",2),c([c$1(".backdrop")],n.prototype,"_backdrop",2),c([a$1()],n.prototype,"backdrop",1),c([a$1({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 a$4;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));export{n as a,_ as b}; |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 6 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2251610
0.01%89
9.88%