@zeniai/web-cockpit-ui 2.0.90-prod → 2.0.91-dev
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-57KrzuIc.js → CreditAgentRoutes-BH586Xpk.js} +3 -3
- package/dist/assets/{Preview-DoXmS2NO.js → Preview-BVWpqeSC.js} +1 -1
- package/dist/assets/ScreenRoutes-8qXlxKbo.js +180 -0
- package/dist/assets/SignInScreen-B-BHEIiL.js +1 -0
- package/dist/assets/analytics-Bbex-2NY.js +68 -0
- package/dist/assets/analyticsHelper-BtlaUjoZ.js +1 -0
- package/dist/assets/core-BW53WFXm.js +12 -0
- package/dist/assets/dash.all.min-CYhxTnzU.js +21 -0
- package/dist/assets/{empty-EkDZd4cb.js → empty-BIPYfFQf.js} +1 -1
- package/dist/assets/{empty-DQBG605T.js → empty-DXXhfnlY.js} +1 -1
- package/dist/assets/epic-CBRt8lUw.js +2 -0
- package/dist/assets/{hls-DifHSkbp.js → hls-CK0vqtka.js} +7 -7
- package/dist/assets/{index-DIiHEfZd.js → index-C16yNsO0.js} +1 -1
- package/dist/assets/{index-BH8p8t6R.js → index-C5bKezyj.js} +2 -2
- package/dist/assets/index-C8ouCD8q.css +1 -0
- package/dist/assets/index-CzKzprtP.js +1 -0
- package/dist/assets/{index-QF-ZU_3_.js → index-D6CLOv7r.js} +2 -2
- package/dist/assets/index-DiayUGVR.js +1 -0
- package/dist/assets/{index-DoaUlXnb.js → index-DnFckvK_.js} +6154 -6128
- package/dist/assets/{index-CKPXuFf4.js → index-eO6VL-YY.js} +1 -1
- package/dist/assets/{lexical-B4OX7Qt2.js → lexical-oFPKqtLx.js} +1 -1
- package/dist/assets/liveblocks-Dm0hKemG.js +54 -0
- package/dist/assets/lottie-BBSyomrb.js +2 -0
- package/dist/assets/{mui-Cq05aT2Q.js → mui-Y6Abe26h.js} +1 -1
- package/dist/assets/{react-CDAN6krC.js → react-BI2LHYPB.js} +2 -2
- package/dist/assets/react-C4zGd3co.js +19 -0
- package/dist/assets/{react-DPS_cQ8b.js → react-C5KqZNVs.js} +2 -2
- package/dist/assets/{react-DbL1b97g.js → react-CEzULWg2.js} +1 -1
- package/dist/assets/{react-DSO5DFsP.js → react-Dpc1Z3Iu.js} +1 -1
- package/dist/assets/{react-CrpKm4bt.js → react-_5MyySUV.js} +1 -1
- package/dist/assets/{react-UrE0eUtM.js → react-fAI3uPu3.js} +1 -1
- package/dist/assets/react-kDv7vYkT.js +22 -0
- package/dist/assets/recharts-BhfyGkXR.js +65 -0
- package/dist/assets/{sentry-D-u5Se7L.js → sentry-BBOZ5oyJ.js} +13 -13
- package/dist/assets/{url-DBSFpJXD.js → url-CA7vETG6.js} +1 -1
- package/dist/assets/url-CMRH3WWI.js +6 -0
- package/dist/assets/utils-C7Fx7mHj.js +36 -0
- package/dist/assets/zeni-epic-state-CWi9oOGG.js +13 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ScreenRoutes-D79mPtYo.js +0 -180
- package/dist/assets/SignInScreen-CG7csnr9.js +0 -1
- package/dist/assets/analytics-0xdjeHVo.js +0 -68
- package/dist/assets/analyticsHelper-ot54ueLz.js +0 -1
- package/dist/assets/core-CBj8mdag.js +0 -12
- package/dist/assets/dash.all.min-BRFKEJ_U.js +0 -21
- package/dist/assets/epic-DIHyOnf_.js +0 -2
- package/dist/assets/index-C7n-jK9v.js +0 -1
- package/dist/assets/index-UA2r-eW3.css +0 -1
- package/dist/assets/index-gkKjyIG3.js +0 -1
- package/dist/assets/liveblocks-DZ8DzAeS.js +0 -54
- package/dist/assets/lottie-4x1ak5ZT.js +0 -2
- package/dist/assets/react-Bjx06hhZ.js +0 -22
- package/dist/assets/react-Cf0_jSBa.js +0 -19
- package/dist/assets/recharts-BrcoCKZO.js +0 -65
- package/dist/assets/url-C2q3ZMg2.js +0 -6
- package/dist/assets/utils-C86wAroo.js +0 -36
- package/dist/assets/zeni-epic-state-VybbVEBi.js +0 -13
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{b as N}from"./sentry-BBOZ5oyJ.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&&t==="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};
|