@stlite/desktop 0.91.0 → 0.91.1
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/CHANGELOG.md +6 -0
- package/build/assets/{ErrorOutline.esm-5cmZjQRC-icYL4BM5.js → ErrorOutline.esm-BLjkDUgO-BiXylF9Q.js} +1 -1
- package/build/assets/{FileDownload.esm-rDRR6AEq-DjpuiBZc.js → FileDownload.esm-BP6Yw6Mo-BauI2spi.js} +1 -1
- package/build/assets/{FileHelper-DDgj8qUb-DZYWXyeE.js → FileHelper-BCkX4r3T-DFMmrw88.js} +1 -1
- package/build/assets/{FormClearHelper-Bi1RDDCw-CUfvtGEu.js → FormClearHelper-Dgu5Halt-BxICjxpW.js} +1 -1
- package/build/assets/{Hooks-BLb3umpI-D_n25nUE.js → Hooks-BLb3umpI-9FUxV5o-.js} +1 -1
- package/build/assets/{InputInstructions-DK4vKQJt-CxHQuxCq.js → InputInstructions-yTnPUqJo-CoOBrVL7.js} +1 -1
- package/build/assets/{Particles-CVTDiAXz-DxW9qGxs.js → Particles-Dlshfcc8-CNq_pZlo.js} +1 -1
- package/build/assets/{ProgressBar-DBzTytnw-KD3bOGNH.js → ProgressBar-bzD0ionS-CaMxdV67.js} +1 -1
- package/build/assets/{Toolbar-C79vGzHM-4gREjS-R.js → Toolbar-Ba82LOXi-C-TMlOex.js} +1 -1
- package/build/assets/{base-input-DqwZ6cLM-CfKARdZH.js → base-input-DjjpNP8Y-DtsTHlXD.js} +1 -1
- package/build/assets/{checkbox-DSLjv1hz-C5dTTEJn.js → checkbox-i_07yegq-B7N8fYE1.js} +1 -1
- package/build/assets/{createSuper-B3kpwht8-vR1ZxlfE.js → createSuper-Bj1hzAgo-DTBN9Cdm.js} +1 -1
- package/build/assets/{data-grid-overlay-editor-DlwBF2tR-B5qTFESv.js → data-grid-overlay-editor-BiH9JogL-SwK5dD6O.js} +1 -1
- package/build/assets/{downloader-DcCTL3Wz-B8zcxQVm.js → downloader-DcCTL3Wz-szZSaHY-.js} +1 -1
- package/build/assets/{es6--XPcqeHG-Ct8fR_QW.js → es6--XPcqeHG-B7r8Rb2B.js} +2 -2
- package/build/assets/{iframeResizer.contentWindow-BYeUxEkG-BGHgpKaO.js → iframeResizer.contentWindow-D_iySM1B-C8GQUol2.js} +1 -1
- package/build/assets/{index-B77TIzH--_sfHBOLj.js → index-0Kn1AVK2-CFHLqZQv.js} +1 -1
- package/build/assets/{index-DJv86VV6-BxF_m0zQ.js → index-B-TfdrsK-M9kXXCZC.js} +1 -1
- package/build/assets/{index-CFJPpmiv-DJLEtKZ0.js → index-B-p8cwea-D1OIlg5n.js} +1 -1
- package/build/assets/{index-fJZU9fvL-CKGTaTkl.js → index-B3KILbqX-BzOz8wK5.js} +1 -1
- package/build/assets/{index-DfmwwL-F-BtkRVq0J.js → index-BB-Jchwk-Bom7C4Yg.js} +1 -1
- package/build/assets/{index-p30tlBB--Bny4OpXe.js → index-BPtHoAnG-Bw2wANqW.js} +1 -1
- package/build/assets/{index-fUOYudAa-DwvNVa4q.js → index-B_WoYQrI-DzwQulx6.js} +1 -1
- package/build/assets/{index-DpgEDPmz-DJh9zWZb.js → index-BhasphER-CtCV9cV8.js} +1 -1
- package/build/assets/{index-BFxpMDN6-DR2ES9VX.js → index-Bo7cn_f6-DkJNz7_c.js} +1 -1
- package/build/assets/{index-j0zTFwH2-B6bjwCqo.js → index-BxHa0gYF-QN3i1uRA.js} +1 -1
- package/build/assets/{index-B7QM9sAr-BJJ9a1xS.js → index-CATwv37T-B7vouX3Y.js} +1 -1
- package/build/assets/{index-CQ0SOKgT-K7zOmyHq.js → index-CAzavyuT-BhYS_U-d.js} +1 -1
- package/build/assets/{index-xHja9EuR-BJAq-yTR.js → index-CSKWQlNk-CT5sDNrq.js} +1 -1
- package/build/assets/{index-DUxsAr3N-YOYvjsWo.js → index-CTwTw5ms-DakzaYYn.js} +1 -1
- package/build/assets/{index-CK3GkxeH-D2XBcs5n.js → index-C_q9gQa7-DDnyjQrF.js} +1 -1
- package/build/assets/{index-CKLXnSph-0c1m_tEn.js → index-Ct4am237-CcMxDLpd.js} +1 -1
- package/build/assets/{index-D6seXbqB-BPSqxK2r.js → index-CugHuPaw-BlbAJDrs.js} +1 -1
- package/build/assets/{index-DdN7bQv1-B-kAc3Ut.js → index-CvM3pTat-B8q07d1y.js} +1 -1
- package/build/assets/{index-DlIOBmG6-fWsA1K6o.js → index-D0GcWpyX--juTltdu.js} +1 -1
- package/build/assets/{index-BUGX2TMK.js → index-D3uELfdo.js} +44 -44
- package/build/assets/{index-BV9PPylv-DWAKeZC_.js → index-D5JbiLwX-CJBgVo_3.js} +1 -1
- package/build/assets/{index-CqUzXpnq-BkRqyTZ-.js → index-DDqIvyop-CtB9mW2T.js} +1 -1
- package/build/assets/{index-BkEF79ga-BDywftDb.js → index-DMjPNVEr-D5adQnea.js} +1 -1
- package/build/assets/{index-CZG1F3wS-BFc-W9r-.js → index-DOzur6Jw-BNtjcqTY.js} +1 -1
- package/build/assets/{index-BacWTAj2-C6QHLACm.js → index-DU9g9Sd6-Daa3488f.js} +1 -1
- package/build/assets/{index-BPsr3GBY-CJGmhZ4p.js → index-DUaAy90Q-XjKFsjy5.js} +1 -1
- package/build/assets/{index-0V3zFawH-dk2qSnUj.js → index-DhLLbarZ-JEJ3GjGo.js} +1 -1
- package/build/assets/{index-CxQBvv94-C1cgCYzN.js → index-DmB3SAP2-X6jwpSIv.js} +1 -1
- package/build/assets/{index-zCpSIFXF-CNWD8XSX.js → index-EaQvJARH-BtsSVy_Q.js} +1 -1
- package/build/assets/{index-D--Ibtdf-DP7qoXbQ.js → index-Fts1z9_x-20UUj5MC.js} +1 -1
- package/build/assets/{index-DDzvi540-BP83xTE8.js → index-GJmmE3rK-9unNgOON.js} +1 -1
- package/build/assets/{index-Cwu3avS4-DiDBV46w.js → index-GLEJ4uEg-Df22L041.js} +16 -16
- package/build/assets/{index-BQabGVla-C_9TU-y1.js → index-NlD3wxQH-BRnDRGJG.js} +1 -1
- package/build/assets/{index-pBZdYFXV-CISZ02sQ.js → index-X1p_3J78-Vt5ccOoW.js} +1 -1
- package/build/assets/index-kYeUTGL3-OTlUcjkG.js +1 -0
- package/build/assets/{index-Ng0C2pop-CzH2RCjT.js → index-p-pTZlQx-8zFcur2d.js} +1 -1
- package/build/assets/{index-Hwxwzkvz-BrKybKu3.js → index-vYM99bZC-_qzTrUih.js} +1 -1
- package/build/assets/{inherits-V2B09WF6-BfQai87E.js → inherits-Rx5YJbse-DVYurFFp.js} +1 -1
- package/build/assets/{input-0QG8D109-QEdIPUBc.js → input-BDVeiWWL-DMiIFeVV.js} +1 -1
- package/build/assets/{memory-B3L1Fctl-DNNZq00W.js → memory-B3L1Fctl-Bm8c-YGK.js} +1 -1
- package/build/assets/{number-overlay-editor-CQf9AWEA-RmKnGQqj.js → number-overlay-editor-BGJ9OD_Z-DIBxtO2v.js} +1 -1
- package/build/assets/{sandbox-ChAzL-i--Bt92ucFR.js → sandbox-ChAzL-i--D3ngLCsZ.js} +1 -1
- package/build/assets/{slicedToArray-bXF_q2D_-C8JYb8qs.js → slicedToArray-DCtO1hP1-DNgLFFIn.js} +1 -1
- package/build/assets/{timepicker-BaiGCRZ1-Sm9ehMNI.js → timepicker-BTEFSiul-BiCu9n-C.js} +1 -1
- package/build/assets/{uniqueId-DEZw4fCm-ChV-p6H5.js → uniqueId-DFKpdKNq-BgvPpMK3.js} +1 -1
- package/build/assets/{useBasicWidgetState-gAw0WJ0t-BlUmDiku.js → useBasicWidgetState-DqA4I-I_-DtgK63iS.js} +1 -1
- package/build/assets/{useTextInputAutoExpand-CrQdinCr-BiEwhNXe.js → useTextInputAutoExpand-Di5cdshf-IDsnD2RC.js} +1 -1
- package/build/assets/{useUpdateUiValue-Bz-Z5Int-0QBs3uQx.js → useUpdateUiValue-09I2_X1f-DW6jbCsf.js} +1 -1
- package/build/assets/{withFullScreenWrapper-BKnfDWJg-dLKoL1-0.js → withFullScreenWrapper-WW0e_nhm-CAjrnrPK.js} +1 -1
- package/build/index.html +1 -1
- package/package.json +2 -2
- package/wheels/streamlit-1.50.0-cp313-none-any.whl +0 -0
- package/build/assets/index-BaDPYxKb-eLNjgO02.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,L as p,m as u,j as a,ak as x,ap as b,c as l,F as h,H as m}from"./index-
|
|
1
|
+
import{r as c,L as p,m as u,j as a,ak as x,ap as b,c as l,F as h,H as m}from"./index-D3uELfdo.js";const f=l("div",{target:"e11k5jya2"})({name:"b6wrti",styles:"display:flex;flex-direction:column;width:100%"}),k=l("a",{target:"e11k5jya1"})(({disabled:t,isCurrentPage:o,theme:e})=>({textDecoration:"none",width:"100%",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:e.spacing.sm,borderRadius:e.radii.default,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,backgroundColor:o?e.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none},...t?{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed","&:hover":{color:e.colors.fadedText40,backgroundColor:e.colors.transparent}}:{}}),""),C=l("span",{target:"e11k5jya0"})(({disabled:t,theme:o})=>({color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...t?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}),"");function j(t){const{onPageChange:o,currentPageScriptHash:e}=c.useContext(p),{colors:s}=u(),{disabled:n,element:r}=t,i=e===r.pageScriptHash,g=d=>{r.external?n&&d.preventDefault():(d.preventDefault(),n||o(r.pageScriptHash))};return a.jsx("div",{className:"stPageLink","data-testid":"stPageLink",children:a.jsx(x,{help:r.help,placement:b.TOP_RIGHT,containerWidth:!0,children:a.jsx(f,{children:a.jsxs(k,{"data-testid":"stPageLink-NavLink",disabled:n,isCurrentPage:i,href:r.page,target:r.external?"_blank":"",rel:"noreferrer",onClick:g,children:[r.icon&&a.jsx(h,{size:"lg",color:n?s.fadedText40:s.bodyText,iconValue:r.icon}),a.jsx(C,{disabled:n,children:a.jsx(m,{source:r.label,allowHTML:!1,isLabel:!0,boldLabel:i,largerLabel:!0,disableLinks:!0})})]})})})})}const y=c.memo(j);export{y as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as Re,L as SF,m as PF,e as qB,M as KB,N as IF,O as iC,j as $l,c as ZB,Q as ub,R as nC,y as MF,T as BF,U as Bi,V as RF,W as LF,X as df,Y as _e,Z as zc,_ as YB,$ as DF}from"./index-
|
|
1
|
+
import{r as Re,L as SF,m as PF,e as qB,M as KB,N as IF,O as iC,j as $l,c as ZB,Q as ub,R as nC,y as MF,T as BF,U as Bi,V as RF,W as LF,X as df,Y as _e,Z as zc,_ as YB,$ as DF}from"./index-D3uELfdo.js";import{p as kF,_ as ms}from"./slicedToArray-DCtO1hP1-DNgLFFIn.js";import{l as $c,p as th,b as G2,a as Ap,y as j2}from"./inherits-Rx5YJbse-DVYurFFp.js";import{v as OF,d as QB}from"./withFullScreenWrapper-WW0e_nhm-CAjrnrPK.js";import{y as FF,X as NF}from"./Toolbar-Ba82LOXi-C-TMlOex.js";import{U as zF}from"./useBasicWidgetState-DqA4I-I_-DtgK63iS.js";import"./FormClearHelper-Dgu5Halt-BxICjxpW.js";var rC={};function UF(i,t){for(var e=0;e<t.length;e++){const n=t[e];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in i)){const o=Object.getOwnPropertyDescriptor(n,r);o&&Object.defineProperty(i,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}async function Am(i,t,e,n){return n._parse(i,t,e,n)}function vr(i,t){if(!i)throw new Error(t||"loader assertion failed.")}const Cy=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),sC=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);sC&&parseFloat(sC[1]);const oC=globalThis,aC=globalThis.process||{},VF=globalThis.navigator||{};function JB(i){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function pf(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||JB()}function GF(i){return pf()?JB()?"Electron":(VF.userAgent||"").indexOf("Edge")>-1?"Edge":globalThis.chrome?"Chrome":globalThis.safari?"Safari":globalThis.mozInnerScreenX?"Firefox":"Unknown":"Node"}const $B="4.1.0";function jF(i){try{const t=window[i],e="__storage_test__";return t.setItem(e,e),t.removeItem(e),t}catch{return null}}class WF{constructor(t,e,n="sessionStorage"){this.storage=jF(n),this.id=t,this.config=e,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){const e=JSON.stringify(this.config);this.storage.setItem(this.id,e)}}_loadConfiguration(){let t={};if(this.storage){const e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}}function HF(i){let t;return i<10?t=`${i.toFixed(2)}ms`:i<100?t=`${i.toFixed(1)}ms`:i<1e3?t=`${i.toFixed(0)}ms`:t=`${(i/1e3).toFixed(2)}s`,t}function XF(i,t=8){const e=Math.max(t-i.length,0);return`${" ".repeat(e)}${i}`}var Og;(function(i){i[i.BLACK=30]="BLACK",i[i.RED=31]="RED",i[i.GREEN=32]="GREEN",i[i.YELLOW=33]="YELLOW",i[i.BLUE=34]="BLUE",i[i.MAGENTA=35]="MAGENTA",i[i.CYAN=36]="CYAN",i[i.WHITE=37]="WHITE",i[i.BRIGHT_BLACK=90]="BRIGHT_BLACK",i[i.BRIGHT_RED=91]="BRIGHT_RED",i[i.BRIGHT_GREEN=92]="BRIGHT_GREEN",i[i.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",i[i.BRIGHT_BLUE=94]="BRIGHT_BLUE",i[i.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",i[i.BRIGHT_CYAN=96]="BRIGHT_CYAN",i[i.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Og||(Og={}));const qF=10;function lC(i){return typeof i!="string"?i:(i=i.toUpperCase(),Og[i]||Og.WHITE)}function KF(i,t,e){return!pf&&typeof i=="string"&&(t&&(i=`\x1B[${lC(t)}m${i}\x1B[39m`),e&&(i=`\x1B[${lC(e)+qF}m${i}\x1B[49m`)),i}function ZF(i,t=["constructor"]){const e=Object.getPrototypeOf(i),n=Object.getOwnPropertyNames(e),r=i;for(const o of n){const s=r[o];typeof s=="function"&&(t.find(l=>o===l)||(r[o]=s.bind(i)))}}function W2(i,t){if(!i)throw new Error("Assertion failed")}function Ad(){let i;if(pf()&&oC.performance)i=oC?.performance?.now?.();else if("hrtime"in aC){const t=aC?.hrtime?.();i=t[0]*1e3+t[1]/1e6}else i=Date.now();return i}const md={debug:pf()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},YF={enabled:!0,level:0};function gd(){}const uC={},cC={once:!0};class Mp{constructor({id:t}={id:""}){this.VERSION=$B,this._startTs=Ad(),this._deltaTs=Ad(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=t,this.userData={},this._storage=new WF(`__probe-${this.id}__`,YF),this.timeStamp(`${this.id} started`),ZF(this),Object.seal(this)}set level(t){this.setLevel(t)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((Ad()-this._startTs).toPrecision(10))}getDelta(){return Number((Ad()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(t=!0){return this._storage.setConfiguration({enabled:t}),this}setLevel(t){return this._storage.setConfiguration({level:t}),this}get(t){return this._storage.config[t]}set(t,e){this._storage.setConfiguration({[t]:e})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,e){if(!t)throw new Error(e||"Assertion failed")}warn(t){return this._getLogFunction(0,t,md.warn,arguments,cC)}error(t){return this._getLogFunction(0,t,md.error,arguments)}deprecated(t,e){return this.warn(`\`${t}\` is deprecated and will be removed in a later version. Use \`${e}\` instead`)}removed(t,e){return this.error(`\`${t}\` has been removed. Use \`${e}\` instead`)}probe(t,e){return this._getLogFunction(t,e,md.log,arguments,{time:!0,once:!0})}log(t,e){return this._getLogFunction(t,e,md.debug,arguments)}info(t,e){return this._getLogFunction(t,e,console.info,arguments)}once(t,e){return this._getLogFunction(t,e,md.debug||md.info,arguments,cC)}table(t,e,n){return e?this._getLogFunction(t,e,console.table||gd,n&&[n],{tag:JF(e)}):gd}time(t,e){return this._getLogFunction(t,e,console.time?console.time:console.info)}timeEnd(t,e){return this._getLogFunction(t,e,console.timeEnd?console.timeEnd:console.info)}timeStamp(t,e){return this._getLogFunction(t,e,console.timeStamp||gd)}group(t,e,n={collapsed:!1}){const r=hC({logLevel:t,message:e,opts:n}),{collapsed:o}=n;return r.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(r)}groupCollapsed(t,e,n={}){return this.group(t,e,Object.assign({},n,{collapsed:!0}))}groupEnd(t){return this._getLogFunction(t,"",console.groupEnd||gd)}withGroup(t,e,n){this.group(t,e)();try{n()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&this.getLevel()>=t6(t)}_getLogFunction(t,e,n,r,o){if(this._shouldLog(t)){o=hC({logLevel:t,message:e,args:r,opts:o}),n=n||o.method,W2(n),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=Ad();const s=o.tag||o.message;if(o.once&&s)if(!uC[s])uC[s]=Ad();else return gd;return e=QF(this.id,o.message,o),n.bind(console,e,...o.args)}return gd}}Mp.VERSION=$B;function t6(i){if(!i)return 0;let t;switch(typeof i){case"number":t=i;break;case"object":t=i.logLevel||i.priority||0;break;default:return 0}return W2(Number.isFinite(t)&&t>=0),t}function hC(i){const{logLevel:t,message:e}=i;i.logLevel=t6(t);const n=i.args?Array.from(i.args):[];for(;n.length&&n.shift()!==e;);switch(typeof t){case"string":case"function":e!==void 0&&n.unshift(e),i.message=t;break;case"object":Object.assign(i,t);break}typeof i.message=="function"&&(i.message=i.message());const r=typeof i.message;return W2(r==="string"||r==="object"),Object.assign(i,{args:n},i.opts)}function QF(i,t,e){if(typeof t=="string"){const n=e.time?XF(HF(e.total)):"";t=e.time?`${i}: ${n} ${t}`:`${i}: ${t}`,t=KF(t,e.color,e.background)}return t}function JF(i){for(const t in i)for(const e in i[t])return e||"untitled";return"empty"}globalThis.probe={};const e6=new Mp({id:"@probe.gl/log"}),r_="4.3.3",$F=r_[0]>="0"&&r_[0]<="9"?`v${r_}`:"";function tN(){const i=new Mp({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=i,globalThis.loaders.version=$F,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=i,i}const eN=tN();function i6(i,t){return n6(i||{},t)}function n6(i,t,e=0){if(e>3)return t;const n={...i};for(const[r,o]of Object.entries(t))o&&typeof o=="object"&&!Array.isArray(o)?n[r]=n6(n[r]||{},t[r],e+1):n[r]=t[r];return n}function iN(i){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,i)}function nN(i){return globalThis.loaders?.modules?.[i]||null}const rN="latest";function sN(){return globalThis._loadersgl_?.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.3"),globalThis._loadersgl_.version}const r6=sN();function Yu(i,t){if(!i)throw new Error(t||"loaders.gl assertion failed.")}const Oa=typeof process!="object"||String(process)!=="[object process]"||process.browser,H2=typeof importScripts=="function",oN=typeof window<"u"&&typeof window.orientation<"u",fC=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);fC&&parseFloat(fC[1]);class aN{name;workerThread;isRunning=!0;result;_resolve=()=>{};_reject=()=>{};constructor(t,e){this.name=t,this.workerThread=e,this.result=new Promise((n,r)=>{this._resolve=n,this._reject=r})}postMessage(t,e){this.workerThread.postMessage({source:"loaders.gl",type:t,payload:e})}done(t){Yu(this.isRunning),this.isRunning=!1,this._resolve(t)}error(t){Yu(this.isRunning),this.isRunning=!1,this._reject(t)}}class s_{terminate(){}}const o_=new Map;function lN(i){Yu(i.source&&!i.url||!i.source&&i.url);let t=o_.get(i.source||i.url);return t||(i.url&&(t=uN(i.url),o_.set(i.url,t)),i.source&&(t=s6(i.source),o_.set(i.source,t))),Yu(t),t}function uN(i){if(!i.startsWith("http"))return i;const t=cN(i);return s6(t)}function s6(i){const t=new Blob([i],{type:"application/javascript"});return URL.createObjectURL(t)}function cN(i){return`try {
|
|
2
2
|
importScripts('${i}');
|
|
3
3
|
} catch (error) {
|
|
4
4
|
console.error(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,u as V,ah as M,a as N,aG as R,j as p,c as j,l as x}from"./index-
|
|
1
|
+
import{r as s,u as V,ah as M,a as N,aG as R,j as p,c as j,l as x}from"./index-D3uELfdo.js";const U=j("iframe",{target:"evvcert0"})(({theme:r})=>({colorScheme:"normal",border:"none",padding:r.spacing.none,margin:r.spacing.none,width:"100%",aspectRatio:"16 / 9"}),""),O=x.getLogger("Video"),P={width:"100%"};function $({element:r,endpoints:o,elementMgr:m}){const i=s.useRef(null),{type:h,url:v,startTime:a,subtitles:y,endTime:n,loop:d,autoplay:f,muted:g}=r,l=V(v),c=M(y);let S=N(l);const T=s.useMemo(()=>{if(!r.id)return!0;const e=m.getElementState(r.id,"preventAutoplay");return e||m.setElementState(r.id,"preventAutoplay",!0),e??!1},[r.id,m]),E=s.useMemo(()=>JSON.stringify(c?c.map(e=>o.buildMediaURL(`${e.url}`)):[]),[c,o]);s.useEffect(()=>{const e=JSON.parse(E);e.length!==0&&e.forEach(t=>{o.checkSourceUrlResponse(t,"Video Subtitle")})},[E,o]),s.useEffect(()=>{i.current&&(i.current.currentTime=a)},[a]),s.useEffect(()=>{const e=i.current,t=()=>{e&&(e.currentTime=r.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[r]),s.useEffect(()=>{const e=i.current;if(!e)return;let t=!1;const u=()=>{n>0&&e.currentTime>=n&&(d?(e.currentTime=a||0,e.play()):t||(t=!0,e.pause()))};return n>0&&e.addEventListener("timeupdate",u),()=>{e&&n>0&&e.removeEventListener("timeupdate",u)}},[n,d,a]),s.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{d&&(e.currentTime=a||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[d,a]);const b=e=>{const t=new URL(e);if(a&&!isNaN(a)&&t.searchParams.append("start",a.toString()),n&&!isNaN(n)&&t.searchParams.append("end",n.toString()),d){t.searchParams.append("loop","1");const u=t.pathname.split("/").pop();u&&t.searchParams.append("playlist",u)}return f&&t.searchParams.append("autoplay","1"),g&&t.searchParams.append("mute","1"),t.toString()};if(h===R.Type.YOUTUBE_IFRAME)return p.jsx(U,{className:"stVideo","data-testid":"stVideo",title:l,src:b(l),allow:"autoplay; encrypted-media",allowFullScreen:!0});const L=e=>{const t=e.currentTarget.src;O.error(`Client Error: Video source error - ${t}`),o.sendClientErrorToHost("Video","Video source failed to load","onerror triggered",t)};return p.jsx("video",{className:"stVideo","data-testid":"stVideo",ref:i,controls:!0,muted:g,autoPlay:f&&!T,src:o.buildMediaURL(l),style:P,crossOrigin:S,onError:L,children:c?.map((e,t)=>p.jsx("track",{kind:"captions",src:o.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0,"data-testid":"stVideoSubtitle"},t))})}const A=s.memo($);export{A as default};
|