@zeniai/web-cockpit-ui 2.1.2-qa → 2.1.3-next
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/assets/CreditAgentRoutes-X8YGoq3l.js +4 -0
- package/dist/assets/{Preview-DGsRz9vl.js → Preview-C0DUMjBw.js} +1 -1
- package/dist/assets/ScreenRoutes-B7yonM58.js +180 -0
- package/dist/assets/{SignInScreen-10WMu_a8.js → SignInScreen-CnHJFb_G.js} +1 -1
- package/dist/assets/analytics-DBEOT1uh.js +68 -0
- package/dist/assets/{analyticsHelper-Du459dXF.js → analyticsHelper-BcEo4XoZ.js} +1 -1
- package/dist/assets/core-BDnbz7XA.js +12 -0
- package/dist/assets/dash.all.min-B6HUayEr.js +21 -0
- package/dist/assets/{empty-DBNoHo0Y.js → empty-3V15_h5V.js} +1 -1
- package/dist/assets/{empty-Cn5PjdJX.js → empty-DCSqQuld.js} +1 -1
- package/dist/assets/epic-Dbvp9Je1.js +2 -0
- package/dist/assets/{hls-CK0vqtka.js → hls-DifHSkbp.js} +7 -7
- package/dist/assets/index-4J1JKu0A.js +1 -0
- package/dist/assets/{index-Cvp4EsRf.js → index-B66XDuSQ.js} +1 -1
- package/dist/assets/{index-B3a6AUT3.js → index-C60tr5Kv.js} +2 -2
- package/dist/assets/{index-BWk7vWzA.js → index-CBnahEC5.js} +2 -2
- package/dist/assets/{index-sBWCS8yg.js → index-CnYfhbvh.js} +1 -1
- package/dist/assets/index-DLr58PMs.js +1 -0
- package/dist/assets/index-UA2r-eW3.css +1 -0
- package/dist/assets/{index-tZ7eEMqV.js → index-xWaM5WB3.js} +11587 -13317
- package/dist/assets/{lexical-JR9_ccNe.js → lexical-ZA3OVBQu.js} +1 -1
- package/dist/assets/liveblocks-BnG-ujWH.js +54 -0
- package/dist/assets/lottie-dWYapnkC.js +2 -0
- package/dist/assets/{mui-DDVBUSyd.js → mui-C_qhjZKQ.js} +1 -1
- package/dist/assets/react-BSCwnbKD.js +19 -0
- package/dist/assets/{react-D2IRxjkG.js → react-BV-CAqfT.js} +1 -1
- package/dist/assets/{react-D_xsPZOS.js → react-C92215Bv.js} +1 -1
- package/dist/assets/{react-CbaD8VzZ.js → react-CSmaTSI1.js} +1 -1
- package/dist/assets/{react-IwWKe-I4.js → react-CU5v8vQI.js} +1 -1
- package/dist/assets/{react-BVbD9Tdy.js → react-CtoEvTeT.js} +2 -2
- package/dist/assets/{react-D3b3Kzei.js → react-DFQ6Kv4A.js} +2 -2
- package/dist/assets/react-DhxE14Uu.js +22 -0
- package/dist/assets/recharts-BuyuJnpA.js +65 -0
- package/dist/assets/{sentry-BcmtrMV2.js → sentry-jEGYUR0Z.js} +13 -13
- package/dist/assets/url-BH8IDjci.js +6 -0
- package/dist/assets/{url-TVlSXUol.js → url-m8Ug7fTX.js} +1 -1
- package/dist/assets/utils-D5PmZCRk.js +36 -0
- package/dist/assets/zeni-epic-state-D2On59Tu.js +13 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-Df4tDi0B.js +0 -4
- package/dist/assets/ScreenRoutes-CoOtauw3.js +0 -180
- package/dist/assets/analytics-bZcsaeQV.js +0 -68
- package/dist/assets/core-DmzDoB5-.js +0 -12
- package/dist/assets/dash.all.min-DkNOma04.js +0 -21
- package/dist/assets/epic-DHYNuXgK.js +0 -2
- package/dist/assets/index-C8ouCD8q.css +0 -1
- package/dist/assets/index-DY-YvenN.js +0 -1
- package/dist/assets/index-nJGItZMK.js +0 -1
- package/dist/assets/liveblocks-LrLVH34i.js +0 -54
- package/dist/assets/lottie-EwWwjOsJ.js +0 -2
- package/dist/assets/react-Bjtyo6T3.js +0 -19
- package/dist/assets/react-CkPFXw4I.js +0 -22
- package/dist/assets/recharts-D9yOWgnj.js +0 -65
- package/dist/assets/url-DB5xigpc.js +0 -6
- package/dist/assets/utils-DU4HiiWD.js +0 -36
- package/dist/assets/zeni-epic-state-DdrtzTZ-.js +0 -13
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{b as N}from"./sentry-jEGYUR0Z.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4f661688-f882-4da4-9f6d-1cbb0c5f2007",e._sentryDebugIdIdentifier="sentry-dbid-4f661688-f882-4da4-9f6d-1cbb0c5f2007")}catch{}})();const O="https://open.spotify.com",$=/open\.spotify\.com\/(\w+)\/(\w+)/i,B="https://open.spotify.com/embed-podcast/iframe-api/v1",D="SpotifyIframeApi",j="onSpotifyIframeApiReady";function L(e,t={}){const i={src:R(e,t),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 160px;
|
|
6
|
+
min-height: 80px;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
iframe {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
:host(:not([controls])) {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<iframe${W(i)}></iframe>
|
|
22
|
+
`}function R(e,t){var i,s,u;if(!e.src)return;const a=e.src.match($),d=a&&a[1],p=a&&a[2],r={t:(i=t.config)==null?void 0:i.startAt,theme:((s=t.config)==null?void 0:s.theme)==="dark"?"0":null},y=(u=t.config)!=null&&u.preferVideo?"/video":"";return`${O}/embed/${d}/${p}${y}?${x(r)}`}class C extends(globalThis.HTMLElement??class{}){static getTemplateHTML=L;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new M;#r;#a;#l;#t=!1;#e=!1;#i=!0;#s=0;#n=NaN;#o=!1;#u=null;constructor(){super(),this.#d("config")}async load(){var t,i,s;if(this.#r)return;this.#a&&(this.loadComplete=new M),this.#a=!0,await(this.#r=Promise.resolve()),this.#r=null,this.#t=!1,this.#e=!1,this.#s=0,this.#n=NaN,this.#o=!1,this.dispatchEvent(new Event("emptied"));let u=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const a={t:(t=this.config)==null?void 0:t.startAt,theme:((i=this.config)==null?void 0:i.theme)==="dark"?"0":null,preferVideo:(s=this.config)==null?void 0:s.preferVideo};if(this.#l)this.api=u,this.api.iframeElement.src=R(k(this.attributes),this);else{this.#l=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=L(k(this.attributes),this));let d=this.shadowRoot.querySelector("iframe");const p=await U(B,D,j);this.api=await new Promise(r=>p.createController(d,a,r)),this.api.iframeElement=d,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",r=>{if(this.#e&&this.#i&&(r.data.isBuffering||!r.data.isPaused)){this.#e=!1,this.currentTime=1;return}if(r.data.duration/1e3!==this.#n&&(this.#e=!1,this.#n=r.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),r.data.position/1e3!==this.#s&&(this.#o=!1,this.#e=!1,this.#s=r.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),!this.#t&&!this.#i&&r.data.isPaused){this.#i=!0,this.dispatchEvent(new Event("pause"));return}if(this.#i&&(r.data.isBuffering||!r.data.isPaused)){this.#i=!1,this.dispatchEvent(new Event("play")),this.#t=r.data.isBuffering,this.#t?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing"));return}if(this.#t&&!r.data.isPaused){this.#t=!1,this.dispatchEvent(new Event("playing"));return}if(!this.paused&&!this.seeking&&!this.#e&&Math.ceil(this.currentTime)>=this.duration){if(this.#e=!0,this.loop){this.currentTime=1;return}this.continuous||(this.pause(),this.dispatchEvent(new Event("ended")));return}})}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,i,s){if(i!==s)switch(t){case"src":{this.load();return}}}async play(){var t;return this.#i=!1,this.#t=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,(t=this.api)==null?void 0:t.resume()}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pause()}get config(){return this.#u}set config(t){this.#u=t}get paused(){return this.#i??!0}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#o}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get currentTime(){return this.#s}set currentTime(t){if(this.currentTime==t)return;this.#o=!0;let i=this.#s;this.#s=t,this.dispatchEvent(new Event("timeupdate")),this.#s=i,this.loadComplete.then(()=>{var s;(s=this.api)==null||s.seek(t)})}get duration(){return this.#n}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}#d(t){if(Object.prototype.hasOwnProperty.call(this,t)){const i=this[t];delete this[t],this[t]=i}}}function W(e){let t="";for(const i in e){const s=e[i];s===""?t+=` ${i}`:t+=` ${i}="${s}"`}return t}function x(e){return String(new URLSearchParams(z(e)))}function z(e){let t={};for(let i in e){let s=e[i];s===!0||s===""?t[i]=1:s===!1?t[i]=0:s!=null&&(t[i]=s)}return t}function k(e){let t={};for(let i of e)t[i.name]=i.value;return t}const b={};async function U(e,t,i){return b[e]?b[e]:self[t]?Promise.resolve(self[t]):b[e]=new Promise(function(s,u){const a=document.createElement("script");a.src=e;const d=p=>s(p);self[i]=d,a.onload=()=>!i,a.onerror=u,document.head.append(a)})}class M extends Promise{constructor(t=()=>{}){let i,s;super((u,a)=>{t(u,a),i=u,s=a}),this.resolve=i,this.reject=s}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",C);var q=C,F=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),G={className:"class",htmlFor:"for"};function H(e){return e.toLowerCase()}function S(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function V({react:e,tagName:t,elementClass:i,events:s,displayName:u,defaultProps:a,toAttributeName:d=H,toAttributeValue:p=S}){const r=Number.parseInt(e.version)>=19,y=e.forwardRef((T,v)=>{var _,A;const c=e.useRef(null),w=e.useRef(new Map),E={},P={},h={},g={};for(const[n,o]of Object.entries(T)){if(F.has(n)){h[n]=o;continue}const l=d(G[n]??n);if(i.prototype&&n in i.prototype&&!(n in(((_=globalThis.HTMLElement)==null?void 0:_.prototype)??{}))&&!((A=i.observedAttributes)!=null&&A.some(m=>m===l))){g[n]=o;continue}if(n.startsWith("on")){E[n]=o;continue}const f=p(o);if(l&&f!=null&&(P[l]=String(f),r||(h[l]=f)),l&&r){const m=S(o);f!==m?h[l]=f:h[l]=o}}if(typeof window<"u"){for(const n in E){const o=E[n],l=n.endsWith("Capture"),f=(s?.[n]??n.slice(2).toLowerCase()).slice(0,l?-7:void 0);e.useLayoutEffect(()=>{const m=c?.current;if(!(!m||typeof o!="function"))return m.addEventListener(f,o,l),()=>{m.removeEventListener(f,o,l)}},[c?.current,o])}e.useLayoutEffect(()=>{if(c.current===null)return;const n=new Map;for(const o in g)I(c.current,o,g[o]),w.current.delete(o),n.set(o,g[o]);for(const[o,l]of w.current)I(c.current,o,void 0);w.current=n})}if(typeof window>"u"&&i?.getTemplateHTML&&i?.shadowRootOptions){const{mode:n,delegatesFocus:o}=i.shadowRootOptions,l=e.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:o,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(P,T)},key:"ce-la-react-ssr-template-shadow-root"});h.children=[l,h.children]}return e.createElement(t,{...a,...h,ref:e.useCallback(n=>{c.current=n,typeof v=="function"?v(n):v!==null&&(v.current=n)},[v])},h.children)});return y.displayName=u??i.name,y}function I(e,t,i){var s;e[t]=i,i==null&&t in(((s=globalThis.HTMLElement)==null?void 0:s.prototype)??{})&&e.removeAttribute(t)}var J=V({react:N,tagName:"spotify-audio",elementClass:q,toAttributeName(e){return e==="muted"?"":e==="defaultMuted"?"muted":H(e)}});export{J as default};
|