@maveio/components 0.0.168 → 0.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2E5GLLOS.cjs +19 -0
- package/dist/chunk-2EIQ3VMA.cjs +1 -0
- package/dist/chunk-2FUCHY2J.cjs +35 -0
- package/dist/chunk-5PIHL662.js +19 -0
- package/dist/chunk-5QLIDHRT.cjs +33 -0
- package/dist/chunk-AOBEOJ2U.cjs +10 -0
- package/dist/chunk-B6P2GJBQ.js +9 -0
- package/dist/chunk-BL2IUHCP.cjs +1663 -0
- package/dist/chunk-BTCK3T4L.cjs +24 -0
- package/dist/{chunk-DITZCOYN.cjs → chunk-C3CI3U2Z.js} +6 -6
- package/dist/{chunk-H5YWUSBE.js → chunk-CNPQ5Q2M.js} +1 -1
- package/dist/chunk-CVXHA76S.js +3 -0
- package/dist/chunk-DL4BV5IH.cjs +24 -0
- package/dist/chunk-FAONFKQ2.cjs +9 -0
- package/dist/{chunk-62PQDUAE.js → chunk-GHE5KR7E.js} +4 -4
- package/dist/chunk-GSVKVWEI.js +33 -0
- package/dist/chunk-IBQULJZC.cjs +3 -0
- package/dist/chunk-IETV3B4F.cjs +38 -0
- package/dist/{chunk-RIIKHYMD.cjs → chunk-IMY6Z3YA.cjs} +3 -3
- package/dist/{chunk-LGKQ3C7I.cjs → chunk-K5Z7QHTN.cjs} +1 -1
- package/dist/{chunk-LHWG7RHD.js → chunk-KLJGACPT.js} +3 -3
- package/dist/{chunk-6KO66K2G.cjs → chunk-L667KKJP.cjs} +4 -4
- package/dist/{chunk-4UB3XJZV.cjs → chunk-MU4WLTQR.cjs} +4 -4
- package/dist/chunk-N2L5GXPF.cjs +211 -0
- package/dist/chunk-NPP5B5PV.cjs +16 -0
- package/dist/chunk-OVZCXWUJ.js +1663 -0
- package/dist/{chunk-FLXLRYLI.js → chunk-OX42Y2HR.js} +1 -1
- package/dist/{chunk-NX7L7P75.js → chunk-P5OWX4UR.js} +4 -4
- package/dist/chunk-PTN427IG.js +24 -0
- package/dist/chunk-Q3FGRSLA.js +38 -0
- package/dist/chunk-QFF6OUH6.js +9 -0
- package/dist/chunk-QOM4AP6R.cjs +9 -0
- package/dist/chunk-QQDH35OW.cjs +9 -0
- package/dist/{chunk-ZZBI6DXY.js → chunk-R3SDTEHC.js} +1 -1
- package/dist/chunk-RHTBV6KZ.js +24 -0
- package/dist/{chunk-RBBM42XM.cjs → chunk-RQN3DXJB.cjs} +1 -1
- package/dist/{chunk-FQRZLSBE.js → chunk-SWRFZ3FV.js} +1 -1
- package/dist/chunk-TFOTA27Y.js +211 -0
- package/dist/chunk-TH3DUBVR.js +35 -0
- package/dist/{chunk-42VJWULJ.cjs → chunk-TKJYRGEU.cjs} +1 -1
- package/dist/{chunk-T2P4BAWY.js → chunk-V54NMMTT.cjs} +6 -6
- package/dist/chunk-WOXKZOJ3.js +10 -0
- package/dist/chunk-WTS6WHUH.js +1 -0
- package/dist/chunk-YPCQNE3R.js +16 -0
- package/dist/components/audio-track-menu.cjs +1 -1
- package/dist/components/audio-track-menu.js +1 -1
- package/dist/components/clip.cjs +1 -1
- package/dist/components/clip.js +1 -1
- package/dist/components/files.cjs +1 -1
- package/dist/components/files.js +1 -1
- package/dist/components/img.cjs +1 -1
- package/dist/components/img.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/player.cjs +1 -1
- package/dist/components/player.js +1 -1
- package/dist/components/pop.cjs +1 -1
- package/dist/components/pop.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/upload.cjs +1 -1
- package/dist/components/upload.js +1 -1
- package/dist/embed/caption.cjs +1 -1
- package/dist/embed/caption.js +1 -1
- package/dist/embed/controller.cjs +1 -1
- package/dist/embed/controller.js +1 -1
- package/dist/embed/socket.cjs +1 -1
- package/dist/embed/socket.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/themes/loader.cjs +1 -1
- package/dist/themes/loader.js +1 -1
- package/dist/utils/localization.cjs +1 -1
- package/dist/utils/localization.d.cts +2 -2
- package/dist/utils/localization.d.ts +2 -2
- package/dist/utils/localization.js +1 -1
- package/dist/utils/mave_element.cjs +1 -1
- package/dist/utils/mave_element.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.d.cts +16 -16
- package/dist/vue.d.ts +16 -16
- package/dist/vue.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-27BWRXCN.js +0 -29
- package/dist/chunk-3J6Q5HPF.js +0 -37
- package/dist/chunk-3SSU5VNZ.cjs +0 -1532
- package/dist/chunk-43KJ6TMU.cjs +0 -17
- package/dist/chunk-6PSWE4MR.js +0 -3
- package/dist/chunk-6XBQ5C3V.js +0 -17
- package/dist/chunk-7SJMIXXD.js +0 -10
- package/dist/chunk-D75M3UFL.js +0 -1
- package/dist/chunk-D7LG2SMD.cjs +0 -33
- package/dist/chunk-ES5FUTSE.cjs +0 -1
- package/dist/chunk-ETDEE7EL.cjs +0 -10
- package/dist/chunk-GO6BV3T4.cjs +0 -29
- package/dist/chunk-J74VK4RB.cjs +0 -9
- package/dist/chunk-M22WSPSU.js +0 -9
- package/dist/chunk-N27UPJGV.cjs +0 -37
- package/dist/chunk-NB5PC42C.js +0 -33
- package/dist/chunk-O2WRWRDO.cjs +0 -9
- package/dist/chunk-O4QBLS42.js +0 -17
- package/dist/chunk-OIZ5B5LE.cjs +0 -17
- package/dist/chunk-PJMR6NFX.js +0 -211
- package/dist/chunk-QPYU4D32.cjs +0 -3
- package/dist/chunk-VMGLCRPK.js +0 -35
- package/dist/chunk-WIS6FQDY.cjs +0 -24
- package/dist/chunk-WYXWOUKN.cjs +0 -211
- package/dist/chunk-XKFWCRVL.js +0 -1532
- package/dist/chunk-ZJWT7IOI.js +0 -24
- package/dist/chunk-ZQ3G5EQT.cjs +0 -35
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';var chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs');var N=globalThis,W=n=>n,w=N.trustedTypes,z=w?w.createPolicy("lit-html",{createHTML:n=>n}):void 0,P="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,U="?"+A,et=`<${U}>`,g=document,b=()=>g.createComment(""),T=n=>n===null||typeof n!="object"&&typeof n!="function",k=Array.isArray,J=n=>k(n)||typeof n?.[Symbol.iterator]=="function",D=`[
|
|
2
|
+
\f\r]`,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,K=/>/g,u=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,q=/"/g,Q=/^(?:script|style|textarea|title)$/i,V=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),nt=V(1),ot=V(2),rt=V(3),f=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),G=new WeakMap,m=g.createTreeWalker(g,129);function X(n,t){if(!k(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return z!==void 0?z.createHTML(t):t}var Y=(n,t)=>{let e=n.length-1,s=[],i,o=t===2?"<svg>":t===3?"<math>":"",r=C;for(let d=0;d<e;d++){let h=n[d],a,c,l=-1,_=0;for(;_<h.length&&(r.lastIndex=_,c=r.exec(h),c!==null);)_=r.lastIndex,r===C?c[1]==="!--"?r=F:c[1]!==void 0?r=K:c[2]!==void 0?(Q.test(c[2])&&(i=RegExp("</"+c[2],"g")),r=u):c[3]!==void 0&&(r=u):r===u?c[0]===">"?(r=i??C,l=-1):c[1]===void 0?l=-2:(l=r.lastIndex-c[2].length,a=c[1],r=c[3]===void 0?u:c[3]==='"'?q:Z):r===q||r===Z?r=u:r===F||r===K?r=C:(r=u,i=void 0);let p=r===u&&n[d+1].startsWith("/>")?" ":"";o+=r===C?h+et:l>=0?(s.push(a),h.slice(0,l)+P+h.slice(l)+A+p):h+A+(l===-2?d:p);}return [X(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},E=class n{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0,d=t.length-1,h=this.parts,[a,c]=Y(t,e);if(this.el=n.createElement(a,s),m.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes);}for(;(i=m.nextNode())!==null&&h.length<d;){if(i.nodeType===1){if(i.hasAttributes())for(let l of i.getAttributeNames())if(l.endsWith(P)){let _=c[r++],p=i.getAttribute(l).split(A),S=/([.?@])?(.*)/.exec(_);h.push({type:1,index:o,name:S[2],strings:p,ctor:S[1]==="."?L:S[1]==="?"?R:S[1]==="@"?I:y}),i.removeAttribute(l);}else l.startsWith(A)&&(h.push({type:6,index:o}),i.removeAttribute(l));if(Q.test(i.tagName)){let l=i.textContent.split(A),_=l.length-1;if(_>0){i.textContent=w?w.emptyScript:"";for(let p=0;p<_;p++)i.append(l[p],b()),m.nextNode(),h.push({type:2,index:++o});i.append(l[_],b());}}}else if(i.nodeType===8)if(i.data===U)h.push({type:2,index:o});else {let l=-1;for(;(l=i.data.indexOf(A,l+1))!==-1;)h.push({type:7,index:o}),l+=A.length-1;}o++;}}static createElement(t,e){let s=g.createElement("template");return s.innerHTML=t,s}};function v(n,t,e=n,s){if(t===f)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,o=T(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(false),o===void 0?i=void 0:(i=new o(n),i._$AT(n,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=v(n,i._$AS(n,t.values),i,s)),t}var B=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??g).importNode(e,true);m.currentNode=i;let o=m.nextNode(),r=0,d=0,h=s[0];for(;h!==void 0;){if(r===h.index){let a;h.type===2?a=new x(o,o.nextSibling,this,t):h.type===1?a=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(a=new O(o,this,t)),this._$AV.push(a),h=s[++d];}r!==h?.index&&(o=m.nextNode(),r++);}return m.currentNode=g,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++;}},x=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),T(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):J(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==$&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t;}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=E.createElement(X(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else {let o=new B(i,this),r=o.u(this.options);o.p(e),this.T(r),this._$AH=o;}}_$AC(t){let e=G.get(t.strings);return e===void 0&&G.set(t.strings,e=new E(t)),e}k(t){k(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let o of t)i===e.length?e.push(s=new n(this.O(b()),this.O(b()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i);}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let s=W(t).nextSibling;W(t).remove(),t=s;}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t));}},y=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=$;}_$AI(t,e=this,s,i){let o=this.strings,r=false;if(o===void 0)t=v(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==f,r&&(this._$AH=t);else {let d=t,h,a;for(t=o[0],h=0;h<o.length-1;h++)a=v(this,d[s+h],e,h),a===f&&(a=this._$AH[h]),r||(r=!T(a)||a!==this._$AH[h]),a===$?t=$:t!==$&&(t+=(a??"")+o[h+1]),this._$AH[h]=a;}r&&!i&&this.j(t);}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}},L=class extends y{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===$?void 0:t;}},R=class extends y{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$);}},I=class extends y{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5;}_$AI(t,e=this){if((t=v(this,t,e,0)??$)===f)return;let s=this._$AH,i=t===$&&s!==$||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==$&&(s===$||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}},O=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t);}},ht={M:P,P:A,A:U,C:1,L:Y,R:B,D:J,V:v,I:x,H:y,N:R,U:I,B:L,F:O},st=N.litHtmlPolyfillSupport;st?.(E,x),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.3.2");var tt=(n,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let o=e?.renderBefore??null;s._$litPart$=i=new x(t.insertBefore(b(),o),o,void 0,e??{});}return i._$AI(n),i};var M=globalThis,H=class extends chunkNPP5B5PV_cjs.d{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;let t=super.createRenderRoot();return (e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=tt(e,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return f}};H._$litElement$=true,H.finalized=true,M.litElementHydrateSupport?.({LitElement:H});var it=M.litElementPolyfillSupport;it?.({LitElement:H});(M.litElementVersions??(M.litElementVersions=[])).push("4.2.2");/*! Bundled license information:
|
|
4
|
+
|
|
5
|
+
lit-html/lit-html.js:
|
|
6
|
+
lit-element/lit-element.js:
|
|
7
|
+
(**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*)
|
|
12
|
+
|
|
13
|
+
lit-html/is-server.js:
|
|
14
|
+
(**
|
|
15
|
+
* @license
|
|
16
|
+
* Copyright 2022 Google LLC
|
|
17
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
+
*)
|
|
19
|
+
*/exports.a=nt;exports.b=ot;exports.c=rt;exports.d=f;exports.e=$;exports.f=ht;exports.g=H;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkJ7OISSKU_cjs=require('./chunk-J7OISSKU.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs');var a=["default","synthwave","dolphin"],h={default:()=>import('./themes/default.cjs'),synthwave:()=>import('./themes/synthwave.cjs'),dolphin:()=>import('./themes/dolphin.cjs')};async function p(t){if(!a.includes(t))return;if(!!chunkJ7OISSKU_cjs.a()){let e=`./dist/themes/${t}.js`;return c(e)}let s=h[t];return s?s():void 0}async function c(t){return import(t)}var d=class t{constructor(){this.themes=[];}static async get(n,s){if(t.instance||(t.instance=new t),t.instance.themes.find(e=>e.name===n))return Promise.resolve(t.instance);t.instance.themes.push({name:n}),t.instance.currentTheme=n;try{if(typeof document<"u"&&!a.includes(n)){let e=document.createElement("link");e.rel="stylesheet",e.href=`${s}/${n}.css`,document.head.appendChild(e);}}catch(e){console.log("[mave-player]: theme css not loaded",e);}try{if(s&&!a.includes(n)){let{build:e}=await c(`${s}/${n}.js`);e(n,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 m=`./${chunkJ7OISSKU_cjs.a()}themes/${n}.js`,{build:u}=await c(m);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 Promise.resolve(t.instance);t.instance.themes.push({name:s}),t.instance.currentTheme=s;try{let{build:e}=await c(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=d;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';var chunkQQDH35OW_cjs=require('./chunk-QQDH35OW.cjs'),chunkK5Z7QHTN_cjs=require('./chunk-K5Z7QHTN.cjs'),chunkFAONFKQ2_cjs=require('./chunk-FAONFKQ2.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 o,k,C,S,n=class extends chunk2E5GLLOS_cjs.g{constructor(){super(...arguments);chunkJHSFSCC2_cjs.e(this,o);this._clickable=true;this._autoscroll=true;this._lastScrollTime=0;this.currentTime=0;}get embed(){return this._embedId}set embed(t){this._embedId!=t&&(this._embedId=t,this.captionController=new chunkK5Z7QHTN_cjs.a(this,this.embed),this.reset(),this.requestUpdate("embed"));}get clickable(){return this._clickable}set clickable(t){this._clickable!=t&&(typeof t=="string"?this._clickable=t==="true"||t==="":this._clickable=t,this.requestUpdate("clickable"));}get autoscroll(){return this._autoscroll}set autoscroll(t){this._autoscroll!=t&&(typeof t=="string"?this._autoscroll=t==="true"||t==="":this._autoscroll=t,this.requestUpdate("autoscroll"));}get wordIndex(){return this._wordIndex}set wordIndex(t){if(this._wordIndex!=t&&(this._wordIndex=t,this.autoscroll)){let e=this.shadowRoot?.querySelector(`[data-word-id="word-${this.segmentIndex}-${this.wordIndex}"]`);if(e&&this._lastScrollTime+2500<Date.now()){let r=this.getBoundingClientRect(),i=e.getBoundingClientRect(),s=i.top-r.top;if(s>0){let c=this.scrollTop+s;chunkJHSFSCC2_cjs.g(this,o,k).call(this,this,c-i.height/2);}}}}get segmentIndex(){return this._segmentIndex}set segmentIndex(t){this._segmentIndex!=t&&(this._segmentIndex=t);}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",chunkJHSFSCC2_cjs.g(this,o,C).bind(this)),this.reset();}reset(){if(typeof document>"u")return;this.loop=false,this.currentTime=0,this.wordIndex=0,this.segmentIndex=0;let t=document.querySelector(`mave-player[embed="${this.embed}"]`);t&&(this.player=t,t.addEventListener("play",()=>{this.loop=true,this.loopUpdateTime();}),t.addEventListener("pause",()=>{this.loop=false;}));}updateTime(){this.currentTime=this.player.currentTime;}loopUpdateTime(){this.updateTime(),setTimeout(()=>{this.loop&&requestAnimationFrame(this.loopUpdateTime.bind(this));},10);}inRange({start:t,end:e},r,i,s){if(this.currentTime>=t&&this.currentTime<=e)return s&&(this.wordIndex=s),i&&(this.segmentIndex=i),r||true}segmentStyle(){return this.clickable?{cursor:"pointer"}:{}}wordStyle(t){return t?{"background-color":this.highlight}:{}}render(){return this.captionController?this.captionController.render({complete:t=>(this.captions=t,chunk2E5GLLOS_cjs.a`
|
|
2
|
+
<div>
|
|
3
|
+
${this.captions.segments.map((e,r)=>chunk2E5GLLOS_cjs.a`
|
|
4
|
+
<p
|
|
5
|
+
data-segment-id="segment-${r}"
|
|
6
|
+
style=${chunkQQDH35OW_cjs.a(this.segmentStyle())}
|
|
7
|
+
@click=${this.clickable?chunkJHSFSCC2_cjs.g(this,o,S):chunk2E5GLLOS_cjs.e}
|
|
8
|
+
part=${chunkFAONFKQ2_cjs.a(this.inRange(e,"segment"))}
|
|
9
|
+
x-caption-segment-start="${e.start}"
|
|
10
|
+
x-caption-segment-end="${e.end}"
|
|
11
|
+
>
|
|
12
|
+
${e.words.map((i,s)=>chunk2E5GLLOS_cjs.a`
|
|
13
|
+
<span
|
|
14
|
+
data-word-id="word-${r}-${s}"
|
|
15
|
+
style=${chunkQQDH35OW_cjs.a(this.wordStyle(this.inRange(i)))}
|
|
16
|
+
part=${chunkFAONFKQ2_cjs.a(this.inRange(i,"word",r,s))}
|
|
17
|
+
x-caption-word-start="${i.start}"
|
|
18
|
+
x-caption-word-end="${i.end}"
|
|
19
|
+
>${i.word.trim()}</span
|
|
20
|
+
>
|
|
21
|
+
`)}
|
|
22
|
+
</p>
|
|
23
|
+
`)}
|
|
24
|
+
</div>
|
|
25
|
+
`)}):chunk2E5GLLOS_cjs.e}};o=new WeakSet,k=function(t,e,r=500){let i=this.scrollTop,s=e-i,c=null,p=false;function w(l){c||(c=l);let y=l-c,v=Math.min(y/r,1);t.scrollTop=i+s*x(v),y<r&&p?requestAnimationFrame(w):p=false;}function x(l){return l<.5?2*l*l:1-Math.pow(-2*l+2,2)/2}p=true,requestAnimationFrame(w);},C=function(){this._lastScrollTime=Date.now();},S=function(t){if(this.clickable){let e=t.target.closest("p");if(e&&this.player){let r=e.getAttribute("x-caption-segment-start");this.player.currentTime=Number(r),this.player.paused&&this.player.play();}}},n.styles=chunkNPP5B5PV_cjs.a`
|
|
26
|
+
:host {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[part='word'] {
|
|
33
|
+
background-color: rgba(255, 210, 42, 0.5);
|
|
34
|
+
}
|
|
35
|
+
`,chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"embed",1),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"highlight",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"clickable",1),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.a()],n.prototype,"autoscroll",1),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.b()],n.prototype,"currentTime",2),chunkJHSFSCC2_cjs.c([chunkDL4BV5IH_cjs.b()],n.prototype,"captions",2);typeof window<"u"&&window.customElements&&(window.customElements.get("mave-text")||window.customElements.define("mave-text",n));exports.a=n;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {d}from'./chunk-YPCQNE3R.js';var N=globalThis,W=n=>n,w=N.trustedTypes,z=w?w.createPolicy("lit-html",{createHTML:n=>n}):void 0,P="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,U="?"+A,et=`<${U}>`,g=document,b=()=>g.createComment(""),T=n=>n===null||typeof n!="object"&&typeof n!="function",k=Array.isArray,J=n=>k(n)||typeof n?.[Symbol.iterator]=="function",D=`[
|
|
2
|
+
\f\r]`,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,K=/>/g,u=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,q=/"/g,Q=/^(?:script|style|textarea|title)$/i,V=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),nt=V(1),ot=V(2),rt=V(3),f=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),G=new WeakMap,m=g.createTreeWalker(g,129);function X(n,t){if(!k(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return z!==void 0?z.createHTML(t):t}var Y=(n,t)=>{let e=n.length-1,s=[],i,o=t===2?"<svg>":t===3?"<math>":"",r=C;for(let d=0;d<e;d++){let h=n[d],a,c,l=-1,_=0;for(;_<h.length&&(r.lastIndex=_,c=r.exec(h),c!==null);)_=r.lastIndex,r===C?c[1]==="!--"?r=F:c[1]!==void 0?r=K:c[2]!==void 0?(Q.test(c[2])&&(i=RegExp("</"+c[2],"g")),r=u):c[3]!==void 0&&(r=u):r===u?c[0]===">"?(r=i??C,l=-1):c[1]===void 0?l=-2:(l=r.lastIndex-c[2].length,a=c[1],r=c[3]===void 0?u:c[3]==='"'?q:Z):r===q||r===Z?r=u:r===F||r===K?r=C:(r=u,i=void 0);let p=r===u&&n[d+1].startsWith("/>")?" ":"";o+=r===C?h+et:l>=0?(s.push(a),h.slice(0,l)+P+h.slice(l)+A+p):h+A+(l===-2?d:p);}return [X(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},E=class n{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0,d=t.length-1,h=this.parts,[a,c]=Y(t,e);if(this.el=n.createElement(a,s),m.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes);}for(;(i=m.nextNode())!==null&&h.length<d;){if(i.nodeType===1){if(i.hasAttributes())for(let l of i.getAttributeNames())if(l.endsWith(P)){let _=c[r++],p=i.getAttribute(l).split(A),S=/([.?@])?(.*)/.exec(_);h.push({type:1,index:o,name:S[2],strings:p,ctor:S[1]==="."?L:S[1]==="?"?R:S[1]==="@"?I:y}),i.removeAttribute(l);}else l.startsWith(A)&&(h.push({type:6,index:o}),i.removeAttribute(l));if(Q.test(i.tagName)){let l=i.textContent.split(A),_=l.length-1;if(_>0){i.textContent=w?w.emptyScript:"";for(let p=0;p<_;p++)i.append(l[p],b()),m.nextNode(),h.push({type:2,index:++o});i.append(l[_],b());}}}else if(i.nodeType===8)if(i.data===U)h.push({type:2,index:o});else {let l=-1;for(;(l=i.data.indexOf(A,l+1))!==-1;)h.push({type:7,index:o}),l+=A.length-1;}o++;}}static createElement(t,e){let s=g.createElement("template");return s.innerHTML=t,s}};function v(n,t,e=n,s){if(t===f)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,o=T(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(false),o===void 0?i=void 0:(i=new o(n),i._$AT(n,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=v(n,i._$AS(n,t.values),i,s)),t}var B=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??g).importNode(e,true);m.currentNode=i;let o=m.nextNode(),r=0,d=0,h=s[0];for(;h!==void 0;){if(r===h.index){let a;h.type===2?a=new x(o,o.nextSibling,this,t):h.type===1?a=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(a=new O(o,this,t)),this._$AV.push(a),h=s[++d];}r!==h?.index&&(o=m.nextNode(),r++);}return m.currentNode=g,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++;}},x=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),T(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):J(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==$&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t;}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=E.createElement(X(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else {let o=new B(i,this),r=o.u(this.options);o.p(e),this.T(r),this._$AH=o;}}_$AC(t){let e=G.get(t.strings);return e===void 0&&G.set(t.strings,e=new E(t)),e}k(t){k(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let o of t)i===e.length?e.push(s=new n(this.O(b()),this.O(b()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i);}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let s=W(t).nextSibling;W(t).remove(),t=s;}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t));}},y=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=$;}_$AI(t,e=this,s,i){let o=this.strings,r=false;if(o===void 0)t=v(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==f,r&&(this._$AH=t);else {let d=t,h,a;for(t=o[0],h=0;h<o.length-1;h++)a=v(this,d[s+h],e,h),a===f&&(a=this._$AH[h]),r||(r=!T(a)||a!==this._$AH[h]),a===$?t=$:t!==$&&(t+=(a??"")+o[h+1]),this._$AH[h]=a;}r&&!i&&this.j(t);}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}},L=class extends y{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===$?void 0:t;}},R=class extends y{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$);}},I=class extends y{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5;}_$AI(t,e=this){if((t=v(this,t,e,0)??$)===f)return;let s=this._$AH,i=t===$&&s!==$||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==$&&(s===$||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}},O=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t);}},ht={M:P,P:A,A:U,C:1,L:Y,R:B,D:J,V:v,I:x,H:y,N:R,U:I,B:L,F:O},st=N.litHtmlPolyfillSupport;st?.(E,x),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.3.2");var tt=(n,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let o=e?.renderBefore??null;s._$litPart$=i=new x(t.insertBefore(b(),o),o,void 0,e??{});}return i._$AI(n),i};var M=globalThis,H=class extends d{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;let t=super.createRenderRoot();return (e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=tt(e,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return f}};H._$litElement$=true,H.finalized=true,M.litElementHydrateSupport?.({LitElement:H});var it=M.litElementPolyfillSupport;it?.({LitElement:H});(M.litElementVersions??(M.litElementVersions=[])).push("4.2.2");/*! Bundled license information:
|
|
4
|
+
|
|
5
|
+
lit-html/lit-html.js:
|
|
6
|
+
lit-element/lit-element.js:
|
|
7
|
+
(**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*)
|
|
12
|
+
|
|
13
|
+
lit-html/is-server.js:
|
|
14
|
+
(**
|
|
15
|
+
* @license
|
|
16
|
+
* Copyright 2022 Google LLC
|
|
17
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
+
*)
|
|
19
|
+
*/export{nt as a,ot as b,rt as c,f as d,$ as e,ht as f,H as g};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';var chunkJ7OISSKU_cjs=require('./chunk-J7OISSKU.cjs');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;var c="lit-localize-status";var I=e=>typeof e!="string"&&"strTag"in e,p=(e,t,o)=>{let n=e[0];for(let r=1;r<e.length;r++)n+=t[o?o[r-1]:r-1],n+=e[r];return n};var d=(e=>I(e)?p(e.strings,e.values):e);exports.a=d;var C=false;function _(e){if(C)throw new Error("lit-localize can only be configured once");exports.a=e,C=true;}var E=class{constructor(t){this.__litLocalizeEventHandler=o=>{o.detail.status==="ready"&&this.host.requestUpdate();},this.host=t;}hostConnected(){window.addEventListener(c,this.__litLocalizeEventHandler);}hostDisconnected(){window.removeEventListener(c,this.__litLocalizeEventHandler);}},F=e=>e.addController(new E(e)),z=F;var N=()=>(e,t)=>(e.addInitializer(z),e);var u=class{constructor(){this.settled=false,this.promise=new Promise((t,o)=>{this._resolve=t,this._reject=o;});}resolve(t){this.settled=true,this._resolve(t);}reject(t){this.settled=true,this._reject(t);}};var i=[];for(let e=0;e<256;e++)i[e]=(e>>4&15).toString(16)+(e&15).toString(16);function A(e){let t=0,o=8997,n=0,r=33826,s=0,a=40164,L=0,f=52210;for(let v=0;v<e.length;v++)o^=e.charCodeAt(v),t=o*435,n=r*435,s=a*435,L=f*435,s+=o<<8,L+=r<<8,n+=t>>>16,o=t&65535,s+=n>>>16,r=n&65535,f=L+(s>>>16)&65535,a=s&65535;return i[f>>8]+i[f&255]+i[a>>8]+i[a&255]+i[r>>8]+i[r&255]+i[o>>8]+i[o&255]}var W="",$="h",b="s";function R(e,t){return (t?$:b)+A(typeof e=="string"?e:e.join(W))}var j=new WeakMap,H=new Map;function P(e,t,o){if(e){let n=o?.id??O(t),r=e[n];if(r){if(typeof r=="string")return r;if("strTag"in r)return p(r.strings,t.values,r.values);{let s=j.get(r);return s===void 0&&(s=r.values,j.set(r,s)),{...r,values:s.map(a=>t.values[a])}}}}return d(t)}function O(e){let t=typeof e=="string"?e:e.strings,o=H.get(t);return o===void 0&&(o=R(t,typeof e!="string"&&!("strTag"in e)),H.set(t,o)),o}function w(e){window.dispatchEvent(new CustomEvent(c,{detail:e}));}var g="",S,U,h,y,V,l=new u;l.resolve();var m=0,q=e=>(_(((t,o)=>P(V,t,o))),g=U=e.sourceLocale,h=new Set(e.targetLocales),h.add(e.sourceLocale),y=e.loadLocale,{getLocale:k,setLocale:X}),k=()=>g,X=e=>{if(e===(S??g))return l.promise;if(!h||!y)throw new Error("Internal error");if(!h.has(e))throw new Error("Invalid locale code");m++;let t=m;return S=e,l.settled&&(l=new u),w({status:"loading",loadingLocale:e}),(e===U?Promise.resolve({templates:void 0}):y(e)).then(n=>{m===t&&(g=e,S=void 0,V=n.templates,w({status:"ready",readyLocale:e}),l.resolve());},n=>{m===t&&(w({status:"error",errorLocale:e,errorMessage:n.toString()}),l.reject(n));}),l.promise};var G={en:()=>import('./generated/locales/en.cjs'),nl:()=>import('./generated/locales/nl.cjs'),de:()=>import('./generated/locales/de.cjs'),fr:()=>import('./generated/locales/fr.cjs')};function B(e){return G[e]}async function J(e){let t=chunkJ7OISSKU_cjs.a();if(!t)return null;try{return await import(new URL(`./${t}generated/locales/${e}.js`,(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-5QLIDHRT.cjs', document.baseURI).href))).href)}catch{return null}}var K=q({sourceLocale:"default",targetLocales:["en","nl","de","fr"],loadLocale:async e=>{let t=B(e);if(t)try{return await t()}catch(n){console.error(`[mave-player]: failed to load locale ${e}`,n);}let o=await J(e);return o||(console.log(`[mave-player]: locale not loaded for ${e}`),null)}}),T=false,D=class{constructor(t){this._onLoad=t=>{t.detail.status==="loading"?T=false:t.detail.status==="ready"&&(T=true),this.host.requestUpdate();};this.host=t,t.addController(this);}get loaded(){return T}set locale(t){this._locale!==t&&(K.setLocale(t),this.host.requestUpdate());}get locale(){return this._locale}hostConnected(){typeof window<"u"&&window.addEventListener("lit-localize-status",this._onLoad);}hostDisconnected(){typeof window<"u"&&window.removeEventListener("lit-localize-status",this._onLoad);}};/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
@lit/localize/internal/locale-status-event.js:
|
|
4
|
+
@lit/localize/internal/str-tag.js:
|
|
5
|
+
@lit/localize/internal/types.js:
|
|
6
|
+
@lit/localize/internal/default-msg.js:
|
|
7
|
+
@lit/localize/internal/localized-controller.js:
|
|
8
|
+
@lit/localize/internal/localized-decorator.js:
|
|
9
|
+
@lit/localize/internal/runtime-msg.js:
|
|
10
|
+
@lit/localize/init/runtime.js:
|
|
11
|
+
@lit/localize/init/transform.js:
|
|
12
|
+
(**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2021 Google LLC
|
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
+
*)
|
|
17
|
+
|
|
18
|
+
@lit/localize/internal/deferred.js:
|
|
19
|
+
@lit/localize/internal/id-generation.js:
|
|
20
|
+
@lit/localize/lit-localize.js:
|
|
21
|
+
(**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright 2020 Google LLC
|
|
24
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
+
*)
|
|
26
|
+
|
|
27
|
+
@lit/localize/internal/fnv1a64.js:
|
|
28
|
+
(**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2014 Travis Webb
|
|
31
|
+
* SPDX-License-Identifier: MIT
|
|
32
|
+
*)
|
|
33
|
+
*/exports.b=N;exports.c=K;exports.d=D;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';var chunkTKJYRGEU_cjs=require('./chunk-TKJYRGEU.cjs'),chunk2E5GLLOS_cjs=require('./chunk-2E5GLLOS.cjs'),chunkNPP5B5PV_cjs=require('./chunk-NPP5B5PV.cjs');var e=class extends chunkTKJYRGEU_cjs.a{get poster(){return `${this.cdn_root}/${this.embedId}/poster.webp`}render(){return chunk2E5GLLOS_cjs.a`<img src=${this.poster} />`}};e.styles=chunkNPP5B5PV_cjs.a`
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
img {
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-height: 100vh;
|
|
9
|
+
}
|
|
10
|
+
`;typeof window<"u"&&window.customElements&&(window.customElements.get("mave-img")||window.customElements.define("mave-img",e));exports.a=e;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {b,c,a}from'./chunk-MMHEOMF5.js';import {d as d$1}from'./chunk-5PIHL662.js';var u="important",d=" !"+u,h=b(class extends c{constructor(s){if(super(s),s.type!==a.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((n,t)=>{let e=s[t];return e==null?n:n+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(s,[n]){let{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(n)),this.render(n);for(let e of this.ft)n[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in n){let r=n[e];if(r!=null){this.ft.add(e);let i=typeof r=="string"&&r.endsWith(d);e.includes("-")||i?t.setProperty(e,i?r.slice(0,-11):r,i?u:""):t[e]=r;}}return d$1}});/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
lit-html/directives/style-map.js:
|
|
4
|
+
(**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2018 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*)
|
|
9
|
+
*/export{h as a};
|