@maveio/components 0.0.143 → 0.0.144

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUZPME2Y3_cjs = require('./chunk-UZPME2Y3.cjs');
3
+ var chunkYYGAOG3C_cjs = require('./chunk-YYGAOG3C.cjs');
4
4
  var chunkUEEYC5OJ_cjs = require('./chunk-UEEYC5OJ.cjs');
5
5
  var chunk26S26OLO_cjs = require('./chunk-26S26OLO.cjs');
6
6
  var chunkKGTAAGUE_cjs = require('./chunk-KGTAAGUE.cjs');
@@ -159,7 +159,7 @@ var i=class extends chunkKGTAAGUE_cjs.i{get backdrop(){return this._backdropColo
159
159
  background-position: center center;
160
160
  background-repeat: no-repeat;
161
161
  }
162
- `,chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c("dialog")],i.prototype,"_dialog",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".content")],i.prototype,"_content",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".frame")],i.prototype,"_frame",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".backdrop")],i.prototype,"_backdrop",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],i.prototype,"backdrop",1),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a({attribute:"backdrop-filter"})],i.prototype,"backdropFilter",1);window&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",i));function k(l){let d={};if(!l)return d;for(let t=0;t<l.attributes.length;t++){let a=l.attributes[t];d[a.name]=a.value;}return d}var w=l=>{function d(o){let e,r,n=document.querySelector(`mave-pop[embed="${o}"]`);if(n)return r=k(n.querySelector("mave-player")),e=n,{pop:e,attributes:r};let p=document.querySelector("mave-pop:not([embed])");return p?(r=k(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new i,document.body.appendChild(e),{pop:e})}function t(o,e){let r=new chunkUZPME2Y3_cjs.a;if(e)for(let n in e)r.setAttribute(n,e[n]);return r.embed=o,r}function a(o){o.querySelectorAll("[x-mave-pop]").forEach(e=>{let r=e.getAttribute("x-mave-pop")||e.getAttribute("embed");if(!r)return;let{pop:n,attributes:p}=d(r);t(r,p),e.addEventListener("click",E=>{E.preventDefault();let _=document.querySelectorAll("mave-player");if(!Array.from(_).find(m=>m.popped)){let m=t(r,p);n.open(m).then(()=>{m.play();}),n.addEventListener("closed",()=>{m.pause();});}});});}a(l),new MutationObserver(o=>{for(let e of o)e.type==="childList"&&e.addedNodes.forEach(r=>{r instanceof HTMLElement&&a(r);});}).observe(document.body,{childList:!0,subtree:!0});};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{w(document);}):setTimeout(()=>w(document),500);
162
+ `,chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c("dialog")],i.prototype,"_dialog",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".content")],i.prototype,"_content",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".frame")],i.prototype,"_frame",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.c(".backdrop")],i.prototype,"_backdrop",2),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a()],i.prototype,"backdrop",1),chunk5Y5M5ND5_cjs.c([chunk26S26OLO_cjs.a({attribute:"backdrop-filter"})],i.prototype,"backdropFilter",1);window&&window.customElements&&(window.customElements.get("mave-pop")||window.customElements.define("mave-pop",i));function k(l){let d={};if(!l)return d;for(let t=0;t<l.attributes.length;t++){let a=l.attributes[t];d[a.name]=a.value;}return d}var w=l=>{function d(o){let e,r,n=document.querySelector(`mave-pop[embed="${o}"]`);if(n)return r=k(n.querySelector("mave-player")),e=n,{pop:e,attributes:r};let p=document.querySelector("mave-pop:not([embed])");return p?(r=k(p.querySelector("mave-player")),e=p,{pop:e,attributes:r}):(e=new i,document.body.appendChild(e),{pop:e})}function t(o,e){let r=new chunkYYGAOG3C_cjs.a;if(e)for(let n in e)r.setAttribute(n,e[n]);return r.embed=o,r}function a(o){o.querySelectorAll("[x-mave-pop]").forEach(e=>{let r=e.getAttribute("x-mave-pop")||e.getAttribute("embed");if(!r)return;let{pop:n,attributes:p}=d(r);t(r,p),e.addEventListener("click",E=>{E.preventDefault();let _=document.querySelectorAll("mave-player");if(!Array.from(_).find(m=>m.popped)){let m=t(r,p);n.open(m).then(()=>{m.play();}),n.addEventListener("closed",()=>{m.pause();});}});});}a(l),new MutationObserver(o=>{for(let e of o)e.type==="childList"&&e.addedNodes.forEach(r=>{r instanceof HTMLElement&&a(r);});}).observe(document.body,{childList:!0,subtree:!0});};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{w(document);}):setTimeout(()=>w(document),500);
163
163
 
164
164
  exports.a = i;
165
165
  exports.b = w;
@@ -1,4 +1,4 @@
1
- import { b as b$1 } from './chunk-EZZMEYTK.js';
1
+ import { b as b$1 } from './chunk-YIRHBEIS.js';
2
2
  import { b } from './chunk-XSYWRQWB.js';
3
3
  import { a as a$2 } from './chunk-VOXORDG3.js';
4
4
  import { a as a$1 } from './chunk-R2QJ6RON.js';
@@ -1,4 +1,4 @@
1
- import { a as a$2 } from './chunk-OL6DQODD.js';
1
+ import { a as a$2 } from './chunk-5HSEH54T.js';
2
2
  import { a as a$1 } from './chunk-CF5QCOBL.js';
3
3
  import { c as c$1, a } from './chunk-R2QJ6RON.js';
4
4
  import { h, i as i$1, c as c$2 } from './chunk-IFM2GZME.js';