@streamlayer/react 1.1.4 → 1.1.5
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/lib/app/advertisement.d.ts +1 -0
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +1 -1
- package/lib/dist/cjs/masters.js +1 -1
- package/lib/dist/es/masters.js +1 -1
- package/lib/es/advertisement.js +6 -4
- package/lib/es/useStreamLayerApp2.js +1 -1
- package/package.json +13 -13
package/lib/cjs/advertisement.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("react"),o=require("./index2.js"),b=require("./app.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("react"),o=require("./index2.js"),b=require("./app.js"),i=require("./useStreamLayerApp2.js"),D=o.styled_default("div")({name:"Container",class:"c5b6wdg",propsAsIs:!1}),G="a1rlj479",U="s35f1di",F="sj4471g",z="b12050d8",H="b1d5ybek",K=e=>e==="left"||e==="right"?U:z,W=e=>e==="left"||e==="right"?F:H,Q=e=>e==="left"?"avdxyl3":e==="right"?"a1bisd08":e==="top"?"a1u9y2aj":"a1qqaks",w=({children:e,style:l,className:a,enabled:n=!0,hiding:t,direction:d="left",onAnimationEnd:r})=>s.jsx(D,{style:l,className:o.cx_default(a,G,Q(d),n&&!t&&K(d),n&&t&&W(d)),onAnimationEnd:r,children:e}),J=o.styled_default("a")({name:"Link",class:"l1sgte8c",propsAsIs:!1}),V=o.styled_default("div")({name:"BannerContainer",class:"b7yfc72",propsAsIs:!1}),X=()=>J,Y=o.styled_default(X())({name:"BannerLink",class:"bejjq94",propsAsIs:!0}),Z=o.styled_default("img")({name:"BannerImg",class:"b1j94hdr",propsAsIs:!1}),ee=({promotion:e,promotionId:l,hiding:a,direction:n="bottom"})=>{var t;return(t=e.additionalBanner)!=null&&t.imageUrl?s.jsx(w,{direction:n,hiding:a,children:s.jsx(V,{children:s.jsx(Y,{href:e.additionalBanner.url,"data-promo-id":l,"data-promo-type":e.type,"data-analytics":"banner",target:"_blank",children:s.jsx(Z,{src:e.additionalBanner.imageUrl,alt:"promo"})})})}):null},se=o.styled_default("div")({name:"OverlayContainer",class:"okzhq2w",propsAsIs:!1}),oe=o.styled_default("div")({name:"PromoOverlay",class:"pmgz5i",propsAsIs:!1}),te=o.styled_default("div")({name:"Header",class:"hyxi3jt",propsAsIs:!1}),ne=o.styled_default("div")({name:"HeaderContent",class:"h149e3gp",propsAsIs:!1}),le="h10toh7",q=o.styled_default("img")({name:"SponsorLogo",class:"s1jyea6t",propsAsIs:!1}),ae=o.styled_default("div")({name:"SponsorName",class:"szpfa3h",propsAsIs:!1}),de=o.styled_default("div")({name:"Media",class:"m1crmu01",propsAsIs:!1}),ie=o.styled_default("img")({name:"PromoImg",class:"p1l37r8s",propsAsIs:!1}),re="s1nmch9k",O=o.styled_default("div")({name:"Content",class:"c1er0ljd",propsAsIs:!1}),ce=o.styled_default("div")({name:"Description",class:"dydopmr",propsAsIs:!1}),pe=o.styled_default("div")({name:"Sponsor",class:"s1w6nt04",propsAsIs:!1}),ue=o.styled_default("div")({name:"SponsorText",class:"s1evcmtq",propsAsIs:!1}),me=o.styled_default("div")({name:"ADLogo",class:"awodx0x",propsAsIs:!1}),ye=o.styled_default("span")({name:"SponsoredText",class:"s1q3n6oi",propsAsIs:!1}),ve=o.styled_default("div")({name:"CloseIconWrap",class:"c8d4xfk",propsAsIs:!1}),be=()=>o.c1,he=o.styled_default(be())({name:"CloseIcon",class:"ct6oobh",propsAsIs:!0}),ge=o.styled_default("div")({name:"ActionBtnWrap",class:"a1gyg7tt",propsAsIs:!1}),fe=o.styled_default("a")({name:"ActionButton",class:"a17rwbtk",propsAsIs:!1}),xe=o.styled_default("div")({name:"Title",class:"t3vxzaw",propsAsIs:!1}),Ae="h10f3u0j",R=({promotion:e,promotionId:l,onClose:a})=>{var n,t,d,r,p,c,u,h,g,f,x,A,j,I,_,$,S,M,L,B,T,E,k,N,C,P;const m=e.type===i.PromotionType.INGAME_IAB11_LBAR||e.type===i.PromotionType.INGAME_IAB11,y=((n=e.sponsor)==null?void 0:n.logo)&&e.logoMode===i.PromotionLogoMode.CENTER;return s.jsxs(oe,{className:"PromoOverlay",children:[s.jsxs(te,{children:[s.jsxs(ne,{className:o.cx_default(!y&&le),children:[((t=e.sponsor)==null?void 0:t.logo)&&e.logoMode===i.PromotionLogoMode.LEFT&&s.jsx(q,{src:(d=e.sponsor)==null?void 0:d.logo,alt:"promo"}),s.jsxs(pe,{style:{paddingLeft:(r=e.sponsor)!=null&&r.logo&&e.logoMode===i.PromotionLogoMode.LEFT?"0px":"8px"},children:[((p=e.sponsor)==null?void 0:p.logo)&&e.logoMode===i.PromotionLogoMode.LEFT&&s.jsx(ae,{children:(c=e.sponsor)==null?void 0:c.name}),s.jsxs(ue,{children:[s.jsx(me,{children:"AD"}),s.jsx(ye,{children:"SPONSORED"})]})]})]}),s.jsx(ve,{onClick:a,children:s.jsx(he,{name:"icon-cross"})})]}),s.jsxs(de,{children:[y&&s.jsx(q,{className:re,src:(u=e.sponsor)==null?void 0:u.logo,alt:"promo"}),s.jsx(O,{children:(g=(h=e.banner)==null?void 0:h.video)!=null&&g.url?s.jsx(o.Q,{source:(x=(f=e.banner)==null?void 0:f.video)==null?void 0:x.url,poster:(j=(A=e.banner)==null?void 0:A.video)==null?void 0:j.thumbnailUrl,aspectRatio:m?"1/1":"16/9",onPlay:()=>{o.eventBus.emit("advertisement",{action:"videoPlay",payload:{advertisementId:l,advertisementType:e.type}})}}):(I=e.banner)!=null&&I.imageUrl?s.jsx(ie,{style:m?{aspectRatio:"1/1"}:{},src:(_=e.banner)==null?void 0:_.imageUrl,alt:"promo"}):null}),!m&&s.jsxs(O,{children:[(($=e.banner)==null?void 0:$.title)&&s.jsx(xe,{className:o.cx_default(y&&Ae),children:(S=e.banner)==null?void 0:S.title}),((M=e.banner)==null?void 0:M.body)&&s.jsx(ce,{children:(L=e.banner)==null?void 0:L.body})]})]}),s.jsx(ge,{children:s.jsx(fe,{href:(B=e.banner)==null?void 0:B.url,style:{backgroundColor:((E=(T=e.banner)==null?void 0:T.ctaButton)==null?void 0:E.color)||"#009dc4",color:((N=(k=e.banner)==null?void 0:k.ctaButton)==null?void 0:N.textColor)||"#fff"},"data-analytics":"button","data-promo-id":l,"data-promo-type":e.type,target:"_blank",children:(P=(C=e.banner)==null?void 0:C.ctaButton)==null?void 0:P.label})})]})},je=o.styled_default("div")({name:"SidebarContainer",class:"s1abskp8",propsAsIs:!1}),Ie=({children:e,direction:l,style:a,className:n,hiding:t})=>s.jsx(w,{direction:l,style:a,hiding:t,className:n,children:s.jsx(je,{children:e})}),_e=e=>(e==null?void 0:e.type)===i.PromotionType.INGAME_IAB11_LBAR||(e==null?void 0:e.type)===i.PromotionType.INGAME_IAB21_LBAR,$e=e=>(e==null?void 0:e.type)===i.PromotionType.INGAME_IAB11||(e==null?void 0:e.type)===i.PromotionType.INGAME_IAB21,Se=({advertisement:e,layoutMode:l="side-by-side",sidebar:a,banner:n})=>{const t=o.useStore(e.data);return!t.data&&t.loading?null:t.error?s.jsxs("div",{children:["error ",s.jsx("button",{onClick:e.close,children:"close"})]}):t.data?!a&&!n&&$e(t.data)?s.jsx(se,{children:s.jsx(R,{promotionId:e.id,promotion:t.data,onClose:e.close})}):a&&_e(t.data)?s.jsx(Ie,{direction:a,hiding:e.hiding,children:s.jsx(R,{promotionId:e.id,promotion:t.data,onClose:e.close})}):n?s.jsx(ee,{promotionId:e.id,hiding:e.hiding,promotion:t.data,direction:n}):null:s.jsxs("div",{children:["empty promo ",s.jsx("button",{onClick:e.close,children:"close"})]})},Me=o.styled_default("div")({name:"AdvertisementUIWrap",class:"aa6pjif",propsAsIs:!1}),Le=e=>{const l=e.target;if(l instanceof HTMLAnchorElement&&l.target==="_blank"){const a=l.getAttribute("data-promo-id")||"",n=l.getAttribute("data-promo-type")||i.PromotionType.UNSET;l.getAttribute("data-analytics")==="button"&&o.eventBus.emit("advertisement",{action:"buttonSelect",payload:{advertisementId:a,advertisementType:n}}),l.getAttribute("data-analytics")==="banner"&&o.eventBus.emit("advertisement",{action:"bannerSelect",payload:{advertisementId:a,advertisementType:n}})}},Be=({gamification:e,layoutMode:l,sidebar:a,banner:n,isMobileScreen:t,persistent:d})=>{const r=v.useRef(null),p=o.useStore(e.advertisement.$list),c=v.useMemo(()=>e.advertisement.getActiveAdvertisement(d),[p,d]);return o.L(r,{enabled:!!c,event:"click",listener:Le}),c?s.jsx(Me,{ref:r,style:{height:!n&&!a?"auto":"100%"},className:t?"mobile-view":"",children:s.jsx(Se,{sidebar:a,banner:n,advertisement:c,layoutMode:l})}):null},Te=({sdk:e,sidebar:l,banner:a,event:n,layoutMode:t,isMobileScreen:d,persistent:r})=>{const{deactivate:p}=b.F(e);v.useEffect(()=>{n?e.createEventSession(n):p()},[n,p,e]);const c=o.useStore(e.featuresList.getStore());if(l&&a)return s.jsx("div",{style:{color:"red"},children:"define either sidebar or banner, not both."});if(!c)return null;const u=e.getFeature(i.SdkOverlayType.GAMES);return u?s.jsx(Be,{gamification:u,sidebar:l,banner:a,layoutMode:t,isMobileScreen:d,persistent:r}):null},Ee=({event:e,sidebar:l,banner:a,isMobileScreen:n,persistent:t})=>{const d=b.useStreamLayer();return d?s.jsx("div",{className:"StreamLayerSDK",children:s.jsx(b.d,{children:s.jsx(Te,{sdk:d,event:e,sidebar:l,banner:a,isMobileScreen:n,persistent:t,layoutMode:"side-by-side"})})}):null};exports.StreamLayerSDKAdvertisement=Ee;
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
`),c=`
|
|
15
15
|
`+n+(r.length?s("│"):" ")+" ";return n+o.join(c)+`
|
|
16
16
|
`+r.map(function(l,m){var u=m===r.length-1,d=l.nodes&&l.nodes.length,y=n+(u?" ":s("│"))+" ";return n+s(u?"└":"├")+s("─")+s(d?"┬":"─")+" "+e(l,y,a).slice(n.length+2)}).join("")};const l_=c_,ko=Symbol("avvio.TimeTree.untrackNode"),ba=Symbol("avvio.TimeTree.trackNode"),ho=Symbol("avvio.TimeTree.getParent"),So=Symbol("avvio.TimeTree.getNode"),_o=Symbol("avvio.TimeTree.addNode");let m_=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[ba](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[ko](e){this.tableId.delete(e.id);const t=this.tableLabel.get(e.label);if(t.id){this.tableLabel.delete(e.label);return}t.pop(),t.length===0&&this.tableLabel.delete(e.label)}[ho](e){if(e===null)return this.root;const t=this.tableLabel.get(e);return t.id?t:t[t.length-1]}[So](e){return this.tableId.get(e)}[_o](e,t,n){if(e===null)return this.root={id:"root",label:t,start:n,nodes:[]},this[ba](this.root),this.root.id;const a=this[ho](e),s=`${t}-${Math.random()}`,r={id:s,parent:e,start:n,label:t,nodes:[]};return a.nodes.push(r),this[ba](r),s}start(e,t,n=Date.now()){return this[_o](e,t,n)}stop(e,t=Date.now()){const n=this[So](e);n&&(n.stop=t,n.diff=n.stop-n.start||0,this[ko](n))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const e=n=>(n.label=`${n.label} ${n.diff} ms`,n.nodes.length>0&&(n.nodes=n.nodes.map(a=>e(a))),n),t=e(this.toJSON());return l_(t)}};var u_=m_,Cs={exports:{}},ts={exports:{}},Ia,Eo;function d_(){if(Eo)return Ia;Eo=1;var e=1e3,t=e*60,n=t*60,a=n*24,s=a*7,r=a*365.25;Ia=function(u,d){d=d||{};var y=typeof u;if(y==="string"&&u.length>0)return o(u);if(y==="number"&&isFinite(u))return d.long?l(u):c(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var y=parseFloat(d[1]),T=(d[2]||"ms").toLowerCase();switch(T){case"years":case"year":case"yrs":case"yr":case"y":return y*r;case"weeks":case"week":case"w":return y*s;case"days":case"day":case"d":return y*a;case"hours":case"hour":case"hrs":case"hr":case"h":return y*n;case"minutes":case"minute":case"mins":case"min":case"m":return y*t;case"seconds":case"second":case"secs":case"sec":case"s":return y*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function c(u){var d=Math.abs(u);return d>=a?Math.round(u/a)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=a?m(u,d,a,"day"):d>=n?m(u,d,n,"hour"):d>=t?m(u,d,t,"minute"):d>=e?m(u,d,e,"second"):u+" ms"}function m(u,d,y,T){var f=d>=y*1.5;return Math.round(u/y)+" "+T+(f?"s":"")}return Ia}function p_(e){n.debug=n,n.default=n,n.coerce=l,n.disable=r,n.enable=s,n.enabled=o,n.humanize=d_(),n.destroy=m,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let y=0;y<u.length;y++)d=(d<<5)-d+u.charCodeAt(y),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,y=null,T,f;function _(...N){if(!_.enabled)return;const b=_,E=Number(new Date),w=E-(d||E);b.diff=w,b.prev=d,b.curr=E,d=E,N[0]=n.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let O=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(A,L)=>{if(A==="%%")return"%";O++;const v=n.formatters[L];if(typeof v=="function"){const D=N[O];A=v.call(b,D),N.splice(O,1),O--}return A}),n.formatArgs.call(b,N),(b.log||n.log).apply(b,N)}return _.namespace=u,_.useColors=n.useColors(),_.color=n.selectColor(u),_.extend=a,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(T!==n.namespaces&&(T=n.namespaces,f=n.enabled(u)),f),set:N=>{y=N}}),typeof n.init=="function"&&n.init(_),_}function a(u,d){const y=n(this.namespace+(typeof d>"u"?":":d)+u);return y.log=this.log,y}function s(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const y=(typeof u=="string"?u:"").split(/[\s,]+/),T=y.length;for(d=0;d<T;d++)y[d]&&(u=y[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function r(){const u=[...n.names.map(c),...n.skips.map(c).map(d=>"-"+d)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let d,y;for(d=0,y=n.skips.length;d<y;d++)if(n.skips[d].test(u))return!1;for(d=0,y=n.names.length;d<y;d++)if(n.names[d].test(u))return!0;return!1}function c(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var T_=p_;(function(e,t){t.formatArgs=a,t.save=s,t.load=r,t.useColors=n,t.storage=o(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;l.splice(1,0,m,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(u++,y==="%c"&&(d=u))}),l.splice(d,0,m)}t.log=console.debug||console.log||(()=>{});function s(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function r(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof P<"u"&&"env"in P&&(l=P.env.DEBUG),l}function o(){try{return localStorage}catch{}}e.exports=T_(t);const{formatters:c}=e.exports;c.j=function(l){try{return JSON.stringify(l)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}})(ts,ts.exports);var bc=ts.exports;const y_=zi,g_=rc.EventEmitter,f_=Wn.inherits,me=bc("avvio"),{AVV_ERR_READY_TIMEOUT:k_}=Ec,Na=Symbol.for("plugin-meta");function h_(e,t){return e[Na]&&e[Na].name?e[Na].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
|
|
17
|
-
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function S_(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function xt(e,t,n,a,s){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=s===void 0?e._timeout:s,this.name=h_(t,n),this.isAfter=a,this.q=y_(e,__,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}f_(xt,g_);xt.prototype.exec=function(e,t){const n=this.func;let a=!1;const s=this.name;if(this.parent._error&&!this.isAfter){me("skipping loading of plugin as parent errored and it is not an after",s),P.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(l){return me("override errored",s),t(l)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,me("exec",s);let r;const o=l=>{if(a){me("loading complete",s);return}this._error=l,me(l?"exec errored":"exec completed",s),a=!0,r&&clearTimeout(r),t(l)};this.timeout>0&&(me("setting up timeout",s,this.timeout),r=setTimeout(function(){me("timed out",s),r=null;const l=new k_(s);l.fn=n,o(l)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const c=n(this.server,this.opts,o);c&&typeof c.then=="function"&&(me("exec: resolving promise",s),c.then(()=>P.nextTick(o),l=>P.nextTick(o,l)))};xt.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,a)=>{this._error=n,this.q.pause(),n?(me("rejecting promise",this.name,n),this._promise.reject(n)):(me("resolving promise",this.name),this._promise.resolve()),this._promise=null,P.nextTick(a,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=S_(),t=this._promise.promise,this.server?e():this.on("start",e)),t};xt.prototype.enqueue=function(e,t){me("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};xt.prototype.finish=function(e,t){me("finish",this.name,e);const n=()=>{this.loaded||(me("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const a=()=>{if(me("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{me("wrap"),queueMicrotask(a)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else me("delayed",this.name),this.q.drain=()=>{me("drain",this.name),this.q.drain=E_,queueMicrotask(a)}};queueMicrotask(a),this.q.resume()};function __(e,t){const n=this;P.nextTick(Us.bind(n),e,t)}function Us(e,t){if(typeof e.func.then=="function"){e.func.then(a=>{typeof a.default=="function"&&(a=a.default),e.func=a,Us.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,a=>{e.finish(a,s=>{this._current.shift(),t(s)})})}function E_(){}Cs.exports=xt;Cs.exports.loadPlugin=Us;var b_=Cs.exports;const bo=zi,I_=rc.EventEmitter,N_=Wn.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:va,AVV_ERR_CALLBACK_NOT_FN:zt,AVV_ERR_PLUGIN_NOT_VALID:v_,AVV_ERR_ROOT_PLG_BOOTED:O_,AVV_ERR_READY_TIMEOUT:A_}=Ec,w_=u_,ns=b_,Ft=bc("avvio"),Vn=Symbol("kAvvio"),Oa=Symbol("kThenifyDoNotWrap");function R_(e,t,n){const a=t.expose||{},s=a.use||"use",r=a.after||"after",o=a.ready||"ready",c=a.onClose||"onClose",l=a.close||"close";if(e[s])throw new va(s);if(e[r])throw new va(r);if(e[o])throw new va(o);e[s]=function(m,u){return n.use(m,u),this},Object.defineProperty(e,"then",{get:Ic.bind(n)}),e[Vn]=!0,e[r]=function(m){return typeof m!="function"?n._loadRegistered():(n.after(Aa(m,this)),this)},e[o]=function(m){if(m&&typeof m!="function")throw new zt(o,typeof m);return n.ready(m?Aa(m,this):void 0)},e[c]=function(m){if(typeof m!="function")throw new zt(c,typeof m);return n.onClose(C_(m,this)),this},e[l]=function(m){if(m&&typeof m!="function")throw new zt(l,typeof m);return m?(n.close(Aa(m,this)),this):n.close()}}function ie(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof ie)){const a=new ie(e,t,n);return e&&R_(e,t,a),a}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new w_,this._readyQ=bo(this,Nc,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=Io},this._closeQ=bo(this,D_,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=Io},this._doStart=null,this._root=new ns(this,L_.bind(this),t,!1,0),this._root.once("start",(a,s,r)=>{const o=this.pluginTree.start(null,s,r);this._root.once("loaded",(c,l,m)=>{this.pluginTree.stop(o,m)})}),ns.loadPlugin.call(this,this._root,a=>{Ft("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){a=a||this._error||s}if(a){if(this._error=a,this._readyQ.length()===0)throw a}else this.booted=!0;this._readyQ.resume()})}function L_(e,t,n){this._doStart=n,t.autostart&&this.start()}N_(ie,I_);ie.prototype.start=function(){return this.started=!0,P.nextTick(this._doStart),this};ie.prototype.override=function(e,t,n){return e};function M_(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new v_(typeof e);return e}ie.prototype[Vn]=!0;ie.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};ie.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&P.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(ie.prototype,"then",{get:Ic});ie.prototype._addPlugin=function(e,t,n){if(e=M_(e),t=t||{},this.booted)throw new O_;const a=this._current[0],s=new ns(this,e,t,n);if(s.once("start",(r,o,c)=>{const l=this.pluginTree.start(a.name,o,c);s.once("loaded",(m,u,d)=>{this.pluginTree.stop(l,d)})}),a.loaded)throw new Error(s.name,a.name);return a.enqueue(s,r=>{r&&(this._error=r)}),s};ie.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,a,s){Nc.call(this,e,s)}return this};ie.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};ie.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new zt("close",typeof e)}else t=new Promise(function(n,a){e=function(s){if(s)return a(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),P.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};ie.prototype.ready=function(e){if(e){if(typeof e!="function")throw new zt("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(s),this.start();const a=this._current[0].server;function s(r,o,c){r?n(r):t(a),P.nextTick(c)}})};ie.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ie.prototype.toJSON=function(){return this.pluginTree.toJSON()};function Io(){}function Ic(){if(this.booted){Ft("thenify returning null because we are already booted");return}if(this[Oa]){this[Oa]=!1;return}return Ft("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[Oa]=!0,e(this._server)),t)}function Nc(e,t){const n=this._server,a=this._error;let s;if(this._error=null,e.length===0)this._error=a,s=e(),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>P.nextTick(t),r=>P.nextTick(t,r)):P.nextTick(t);else if(e.length===1)s=e(a),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>P.nextTick(t),r=>P.nextTick(t,r)):P.nextTick(t);else if(this._timeout===0){const r=o=>{this._error=o,t(this._error)};e.length===2?e(a,r):e(a,n,r)}else P_.call(this,e,a,n,t)}function P_(e,t,n,a){const s=e.name;Ft("setting up ready timeout",s,this._timeout);let r=setTimeout(()=>{Ft("timed out",s),r=null;const c=new A_(s);c.fn=e,this._error=c,a(c)},this._timeout);e.length===2?e(t,o.bind(this)):e(t,n,o.bind(this));function o(c){r&&(clearTimeout(r),this._error=c,a(this._error))}}function D_(e,t){const n=this._server,a=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;a?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Ft("resolving close/onClose promise"),s.then(()=>P.nextTick(t),r=>P.nextTick(t,r))):P.nextTick(t)}else e.length===2?e(a?n:this._error,t):a?e(n,t):e(this._error,n,t)}function C_(e,t){return n.bind(t);function n(a,s){let r;e.length===0?(r=e(),r&&r.then?r.then(function(){P.nextTick(s)},s):P.nextTick(s)):e.length===1?(r=e(this),r&&r.then?r.then(function(){P.nextTick(s)},s):P.nextTick(s)):e(this,s)}}function Aa(e,t){return n.bind(t);function n(a,s){let r;e?e.length===0?(r=e(),r&&r.then?r.then(function(){P.nextTick(s,a)},s):P.nextTick(s,a)):e.length===1?(r=e(a),r&&r.then?r.then(function(){P.nextTick(s)},s):P.nextTick(s)):e.length===2?e(a,s):e(a,this,s):P.nextTick(s)}}Is.exports=ie;Is.exports.express=function(e){return ie(e,{expose:{use:"load"}})};var U_=Is.exports;const F_=uh(U_);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(a){const s=n?window.performance.now():new Date().getTime(),r=Math.max(0,16-(s-t)),o=window.setTimeout(function(){a(s+r)},r);return t=s+r,o},window.cancelAnimationFrame=clearTimeout}})();function G_(e,t=!0,n=!0,a){const s=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",r=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",o=F_(Object.create({}),{autostart:!1});return o.use(xk),o.use(Uk,{onDeepLinkHandled:a==null?void 0:a.onDeepLinkHandled}),o.use(Vk,{videoPlayerController:a==null?void 0:a.videoPlayerController}),o.use(ak,{sdkKey:e,host:s,analyticsHost:r,version:a==null?void 0:a.version}),o.use(ck),o.use(Bk),o.use(eh),o.use(vk),o.use(mh),o.after((c,l,m)=>{if(c)throw c;l.ready(),m()}),n&&o.after(async(c,l,m)=>{if(c)throw c;await l.sdk.initializeApp(),m()}),o.onClose(()=>{console.log("close")}),o}const B_=({sdkKey:e,plugins:t,production:n,autoEnable:a,onDeepLinkHandled:s,videoPlayerController:r})=>{const[o,c]=Gs.useState(null);return Gs.useEffect(()=>{let l=!1;if(!e)return console.error("streamlayer sdk key should be provided"),c(u=>(u!==null&&typeof u.disableApp=="function"&&u.disableApp(),null)),()=>{l=!0};const m=G_(e,n,a,{version:"1.1.4",onDeepLinkHandled:s,videoPlayerController:r});if(t)for(const u of t)m.use(u);return m.ready().then(u=>{l||(c(u.sdk),typeof window<"u")}).catch(u=>console.log(u)),()=>{l=!0,m.close(function(u){if(u)throw u})}},[e,n]),o};exports.InvitationFrom=Ln;exports.PickHistoryStatus=It;exports.PromotionLogoMode=Jo;exports.PromotionType=Ge;exports.QuestionImages=rt;exports.QuestionStatus=se;exports.QuestionType=F;exports.SdkOverlayType=H;exports.createContextKey=Ba;exports.global=Va;exports.pino_1=Lo;exports.useStreamLayerApp=B_;
|
|
17
|
+
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function S_(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function xt(e,t,n,a,s){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=s===void 0?e._timeout:s,this.name=h_(t,n),this.isAfter=a,this.q=y_(e,__,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}f_(xt,g_);xt.prototype.exec=function(e,t){const n=this.func;let a=!1;const s=this.name;if(this.parent._error&&!this.isAfter){me("skipping loading of plugin as parent errored and it is not an after",s),P.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(l){return me("override errored",s),t(l)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,me("exec",s);let r;const o=l=>{if(a){me("loading complete",s);return}this._error=l,me(l?"exec errored":"exec completed",s),a=!0,r&&clearTimeout(r),t(l)};this.timeout>0&&(me("setting up timeout",s,this.timeout),r=setTimeout(function(){me("timed out",s),r=null;const l=new k_(s);l.fn=n,o(l)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const c=n(this.server,this.opts,o);c&&typeof c.then=="function"&&(me("exec: resolving promise",s),c.then(()=>P.nextTick(o),l=>P.nextTick(o,l)))};xt.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,a)=>{this._error=n,this.q.pause(),n?(me("rejecting promise",this.name,n),this._promise.reject(n)):(me("resolving promise",this.name),this._promise.resolve()),this._promise=null,P.nextTick(a,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=S_(),t=this._promise.promise,this.server?e():this.on("start",e)),t};xt.prototype.enqueue=function(e,t){me("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};xt.prototype.finish=function(e,t){me("finish",this.name,e);const n=()=>{this.loaded||(me("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const a=()=>{if(me("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{me("wrap"),queueMicrotask(a)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else me("delayed",this.name),this.q.drain=()=>{me("drain",this.name),this.q.drain=E_,queueMicrotask(a)}};queueMicrotask(a),this.q.resume()};function __(e,t){const n=this;P.nextTick(Us.bind(n),e,t)}function Us(e,t){if(typeof e.func.then=="function"){e.func.then(a=>{typeof a.default=="function"&&(a=a.default),e.func=a,Us.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,a=>{e.finish(a,s=>{this._current.shift(),t(s)})})}function E_(){}Cs.exports=xt;Cs.exports.loadPlugin=Us;var b_=Cs.exports;const bo=zi,I_=rc.EventEmitter,N_=Wn.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:va,AVV_ERR_CALLBACK_NOT_FN:zt,AVV_ERR_PLUGIN_NOT_VALID:v_,AVV_ERR_ROOT_PLG_BOOTED:O_,AVV_ERR_READY_TIMEOUT:A_}=Ec,w_=u_,ns=b_,Ft=bc("avvio"),Vn=Symbol("kAvvio"),Oa=Symbol("kThenifyDoNotWrap");function R_(e,t,n){const a=t.expose||{},s=a.use||"use",r=a.after||"after",o=a.ready||"ready",c=a.onClose||"onClose",l=a.close||"close";if(e[s])throw new va(s);if(e[r])throw new va(r);if(e[o])throw new va(o);e[s]=function(m,u){return n.use(m,u),this},Object.defineProperty(e,"then",{get:Ic.bind(n)}),e[Vn]=!0,e[r]=function(m){return typeof m!="function"?n._loadRegistered():(n.after(Aa(m,this)),this)},e[o]=function(m){if(m&&typeof m!="function")throw new zt(o,typeof m);return n.ready(m?Aa(m,this):void 0)},e[c]=function(m){if(typeof m!="function")throw new zt(c,typeof m);return n.onClose(C_(m,this)),this},e[l]=function(m){if(m&&typeof m!="function")throw new zt(l,typeof m);return m?(n.close(Aa(m,this)),this):n.close()}}function ie(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof ie)){const a=new ie(e,t,n);return e&&R_(e,t,a),a}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new w_,this._readyQ=bo(this,Nc,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=Io},this._closeQ=bo(this,D_,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=Io},this._doStart=null,this._root=new ns(this,L_.bind(this),t,!1,0),this._root.once("start",(a,s,r)=>{const o=this.pluginTree.start(null,s,r);this._root.once("loaded",(c,l,m)=>{this.pluginTree.stop(o,m)})}),ns.loadPlugin.call(this,this._root,a=>{Ft("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){a=a||this._error||s}if(a){if(this._error=a,this._readyQ.length()===0)throw a}else this.booted=!0;this._readyQ.resume()})}function L_(e,t,n){this._doStart=n,t.autostart&&this.start()}N_(ie,I_);ie.prototype.start=function(){return this.started=!0,P.nextTick(this._doStart),this};ie.prototype.override=function(e,t,n){return e};function M_(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new v_(typeof e);return e}ie.prototype[Vn]=!0;ie.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};ie.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&P.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(ie.prototype,"then",{get:Ic});ie.prototype._addPlugin=function(e,t,n){if(e=M_(e),t=t||{},this.booted)throw new O_;const a=this._current[0],s=new ns(this,e,t,n);if(s.once("start",(r,o,c)=>{const l=this.pluginTree.start(a.name,o,c);s.once("loaded",(m,u,d)=>{this.pluginTree.stop(l,d)})}),a.loaded)throw new Error(s.name,a.name);return a.enqueue(s,r=>{r&&(this._error=r)}),s};ie.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,a,s){Nc.call(this,e,s)}return this};ie.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};ie.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new zt("close",typeof e)}else t=new Promise(function(n,a){e=function(s){if(s)return a(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),P.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};ie.prototype.ready=function(e){if(e){if(typeof e!="function")throw new zt("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(s),this.start();const a=this._current[0].server;function s(r,o,c){r?n(r):t(a),P.nextTick(c)}})};ie.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ie.prototype.toJSON=function(){return this.pluginTree.toJSON()};function Io(){}function Ic(){if(this.booted){Ft("thenify returning null because we are already booted");return}if(this[Oa]){this[Oa]=!1;return}return Ft("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[Oa]=!0,e(this._server)),t)}function Nc(e,t){const n=this._server,a=this._error;let s;if(this._error=null,e.length===0)this._error=a,s=e(),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>P.nextTick(t),r=>P.nextTick(t,r)):P.nextTick(t);else if(e.length===1)s=e(a),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>P.nextTick(t),r=>P.nextTick(t,r)):P.nextTick(t);else if(this._timeout===0){const r=o=>{this._error=o,t(this._error)};e.length===2?e(a,r):e(a,n,r)}else P_.call(this,e,a,n,t)}function P_(e,t,n,a){const s=e.name;Ft("setting up ready timeout",s,this._timeout);let r=setTimeout(()=>{Ft("timed out",s),r=null;const c=new A_(s);c.fn=e,this._error=c,a(c)},this._timeout);e.length===2?e(t,o.bind(this)):e(t,n,o.bind(this));function o(c){r&&(clearTimeout(r),this._error=c,a(this._error))}}function D_(e,t){const n=this._server,a=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;a?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Ft("resolving close/onClose promise"),s.then(()=>P.nextTick(t),r=>P.nextTick(t,r))):P.nextTick(t)}else e.length===2?e(a?n:this._error,t):a?e(n,t):e(this._error,n,t)}function C_(e,t){return n.bind(t);function n(a,s){let r;e.length===0?(r=e(),r&&r.then?r.then(function(){P.nextTick(s)},s):P.nextTick(s)):e.length===1?(r=e(this),r&&r.then?r.then(function(){P.nextTick(s)},s):P.nextTick(s)):e(this,s)}}function Aa(e,t){return n.bind(t);function n(a,s){let r;e?e.length===0?(r=e(),r&&r.then?r.then(function(){P.nextTick(s,a)},s):P.nextTick(s,a)):e.length===1?(r=e(a),r&&r.then?r.then(function(){P.nextTick(s)},s):P.nextTick(s)):e.length===2?e(a,s):e(a,this,s):P.nextTick(s)}}Is.exports=ie;Is.exports.express=function(e){return ie(e,{expose:{use:"load"}})};var U_=Is.exports;const F_=uh(U_);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(a){const s=n?window.performance.now():new Date().getTime(),r=Math.max(0,16-(s-t)),o=window.setTimeout(function(){a(s+r)},r);return t=s+r,o},window.cancelAnimationFrame=clearTimeout}})();function G_(e,t=!0,n=!0,a){const s=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",r=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",o=F_(Object.create({}),{autostart:!1});return o.use(xk),o.use(Uk,{onDeepLinkHandled:a==null?void 0:a.onDeepLinkHandled}),o.use(Vk,{videoPlayerController:a==null?void 0:a.videoPlayerController}),o.use(ak,{sdkKey:e,host:s,analyticsHost:r,version:a==null?void 0:a.version}),o.use(ck),o.use(Bk),o.use(eh),o.use(vk),o.use(mh),o.after((c,l,m)=>{if(c)throw c;l.ready(),m()}),n&&o.after(async(c,l,m)=>{if(c)throw c;await l.sdk.initializeApp(),m()}),o.onClose(()=>{console.log("close")}),o}const B_=({sdkKey:e,plugins:t,production:n,autoEnable:a,onDeepLinkHandled:s,videoPlayerController:r})=>{const[o,c]=Gs.useState(null);return Gs.useEffect(()=>{let l=!1;if(!e)return console.error("streamlayer sdk key should be provided"),c(u=>(u!==null&&typeof u.disableApp=="function"&&u.disableApp(),null)),()=>{l=!0};const m=G_(e,n,a,{version:"1.1.5",onDeepLinkHandled:s,videoPlayerController:r});if(t)for(const u of t)m.use(u);return m.ready().then(u=>{l||(c(u.sdk),typeof window<"u")}).catch(u=>console.log(u)),()=>{l=!0,m.close(function(u){if(u)throw u})}},[e,n]),o};exports.InvitationFrom=Ln;exports.PickHistoryStatus=It;exports.PromotionLogoMode=Jo;exports.PromotionType=Ge;exports.QuestionImages=rt;exports.QuestionStatus=se;exports.QuestionType=F;exports.SdkOverlayType=H;exports.createContextKey=Ba;exports.global=Va;exports.pino_1=Lo;exports.useStreamLayerApp=B_;
|
package/lib/dist/cjs/masters.js
CHANGED
|
@@ -209,4 +209,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
209
209
|
`),y=`
|
|
210
210
|
`+o+(p.length?c("│"):" ")+" ";return o+f.join(y)+`
|
|
211
211
|
`+p.map(function(b,C){var _=C===p.length-1,N=b.nodes&&b.nodes.length,L=o+(_?" ":c("│"))+" ";return o+c(_?"└":"├")+c("─")+c(N?"┬":"─")+" "+n(b,L,l).slice(o.length+2)}).join("")};const Tee=vee,BS=Symbol("avvio.TimeTree.untrackNode"),Y5=Symbol("avvio.TimeTree.trackNode"),$S=Symbol("avvio.TimeTree.getParent"),zS=Symbol("avvio.TimeTree.getNode"),HS=Symbol("avvio.TimeTree.addNode");let bee=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Y5](n){this.tableId.set(n.id,n),this.tableLabel.has(n.label)?this.tableLabel.get(n.label).push(n):this.tableLabel.set(n.label,[n])}[BS](n){this.tableId.delete(n.id);const a=this.tableLabel.get(n.label);if(a.id){this.tableLabel.delete(n.label);return}a.pop(),a.length===0&&this.tableLabel.delete(n.label)}[$S](n){if(n===null)return this.root;const a=this.tableLabel.get(n);return a.id?a:a[a.length-1]}[zS](n){return this.tableId.get(n)}[HS](n,a,o){if(n===null)return this.root={id:"root",label:a,start:o,nodes:[]},this[Y5](this.root),this.root.id;const l=this[$S](n),c=`${a}-${Math.random()}`,p={id:c,parent:n,start:o,label:a,nodes:[]};return l.nodes.push(p),this[Y5](p),c}start(n,a,o=Date.now()){return this[HS](n,a,o)}stop(n,a=Date.now()){const o=this[zS](n);o&&(o.stop=a,o.diff=o.stop-o.start||0,this[BS](o))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const n=o=>(o.label=`${o.label} ${o.diff} ms`,o.nodes.length>0&&(o.nodes=o.nodes.map(l=>n(l))),o),a=n(this.toJSON());return Tee(a)}};var kee=bee,Ey={exports:{}},M9={exports:{}},K5,GS;function See(){if(GS)return K5;GS=1;var n=1e3,a=n*60,o=a*60,l=o*24,c=l*7,p=l*365.25;K5=function(_,N){N=N||{};var L=typeof _;if(L==="string"&&_.length>0)return f(_);if(L==="number"&&isFinite(_))return N.long?b(_):y(_);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function f(_){if(_=String(_),!(_.length>100)){var N=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(N){var L=parseFloat(N[1]),O=(N[2]||"ms").toLowerCase();switch(O){case"years":case"year":case"yrs":case"yr":case"y":return L*p;case"weeks":case"week":case"w":return L*c;case"days":case"day":case"d":return L*l;case"hours":case"hour":case"hrs":case"hr":case"h":return L*o;case"minutes":case"minute":case"mins":case"min":case"m":return L*a;case"seconds":case"second":case"secs":case"sec":case"s":return L*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return L;default:return}}}}function y(_){var N=Math.abs(_);return N>=l?Math.round(_/l)+"d":N>=o?Math.round(_/o)+"h":N>=a?Math.round(_/a)+"m":N>=n?Math.round(_/n)+"s":_+"ms"}function b(_){var N=Math.abs(_);return N>=l?C(_,N,l,"day"):N>=o?C(_,N,o,"hour"):N>=a?C(_,N,a,"minute"):N>=n?C(_,N,n,"second"):_+" ms"}function C(_,N,L,O){var D=N>=L*1.5;return Math.round(_/L)+" "+O+(D?"s":"")}return K5}function wee(n){o.debug=o,o.default=o,o.coerce=b,o.disable=p,o.enable=c,o.enabled=f,o.humanize=See(),o.destroy=C,Object.keys(n).forEach(_=>{o[_]=n[_]}),o.names=[],o.skips=[],o.formatters={};function a(_){let N=0;for(let L=0;L<_.length;L++)N=(N<<5)-N+_.charCodeAt(L),N|=0;return o.colors[Math.abs(N)%o.colors.length]}o.selectColor=a;function o(_){let N,L=null,O,D;function F(...V){if(!F.enabled)return;const G=F,W=Number(new Date),Z=W-(N||W);G.diff=Z,G.prev=N,G.curr=W,N=W,V[0]=o.coerce(V[0]),typeof V[0]!="string"&&V.unshift("%O");let ne=0;V[0]=V[0].replace(/%([a-zA-Z%])/g,(ee,ue)=>{if(ee==="%%")return"%";ne++;const oe=o.formatters[ue];if(typeof oe=="function"){const Ne=V[ne];ee=oe.call(G,Ne),V.splice(ne,1),ne--}return ee}),o.formatArgs.call(G,V),(G.log||o.log).apply(G,V)}return F.namespace=_,F.useColors=o.useColors(),F.color=o.selectColor(_),F.extend=l,F.destroy=o.destroy,Object.defineProperty(F,"enabled",{enumerable:!0,configurable:!1,get:()=>L!==null?L:(O!==o.namespaces&&(O=o.namespaces,D=o.enabled(_)),D),set:V=>{L=V}}),typeof o.init=="function"&&o.init(F),F}function l(_,N){const L=o(this.namespace+(typeof N>"u"?":":N)+_);return L.log=this.log,L}function c(_){o.save(_),o.namespaces=_,o.names=[],o.skips=[];let N;const L=(typeof _=="string"?_:"").split(/[\s,]+/),O=L.length;for(N=0;N<O;N++)L[N]&&(_=L[N].replace(/\*/g,".*?"),_[0]==="-"?o.skips.push(new RegExp("^"+_.slice(1)+"$")):o.names.push(new RegExp("^"+_+"$")))}function p(){const _=[...o.names.map(y),...o.skips.map(y).map(N=>"-"+N)].join(",");return o.enable(""),_}function f(_){if(_[_.length-1]==="*")return!0;let N,L;for(N=0,L=o.skips.length;N<L;N++)if(o.skips[N].test(_))return!1;for(N=0,L=o.names.length;N<L;N++)if(o.names[N].test(_))return!0;return!1}function y(_){return _.toString().substring(2,_.toString().length-2).replace(/\.\*\?$/,"*")}function b(_){return _ instanceof Error?_.stack||_.message:_}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}var Cee=wee;(function(n,a){a.formatArgs=l,a.save=c,a.load=p,a.useColors=o,a.storage=f(),a.destroy=(()=>{let b=!1;return()=>{b||(b=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const C="color: "+this.color;b.splice(1,0,C,"color: inherit");let _=0,N=0;b[0].replace(/%[a-zA-Z%]/g,L=>{L!=="%%"&&(_++,L==="%c"&&(N=_))}),b.splice(N,0,C)}a.log=console.debug||console.log||(()=>{});function c(b){try{b?a.storage.setItem("debug",b):a.storage.removeItem("debug")}catch{}}function p(){let b;try{b=a.storage.getItem("debug")}catch{}return!b&&typeof St<"u"&&"env"in St&&(b=St.env.DEBUG),b}function f(){try{return localStorage}catch{}}n.exports=Cee(a);const{formatters:y}=n.exports;y.j=function(b){try{return JSON.stringify(b)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}})(M9,M9.exports);var UE=M9.exports;const Eee=cE,_ee=TE.EventEmitter,Iee=x6.inherits,Da=UE("avvio"),{AVV_ERR_READY_TIMEOUT:Nee}=DE,Z5=Symbol.for("plugin-meta");function Ree(n,a){return n[Z5]&&n[Z5].name?n[Z5].name:typeof a<"u"&&typeof a!="function"&&a.name?a.name:n.name?n.name:n.toString().split(`
|
|
212
|
-
`).slice(0,2).map(o=>o.trim()).join(" -- ")}function Lee(){const n={};return n.promise=new Promise((a,o)=>{n.resolve=a,n.reject=o}),n}function _m(n,a,o,l,c){this.started=!1,this.func=a,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=Ree(a,o),this.isAfter=l,this.q=Eee(n,Oee,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}Iee(_m,_ee);_m.prototype.exec=function(n,a){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Da("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(a);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(b){return Da("override errored",c),a(b)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Da("exec",c);let p;const f=b=>{if(l){Da("loading complete",c);return}this._error=b,Da(b?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),a(b)};this.timeout>0&&(Da("setting up timeout",c,this.timeout),p=setTimeout(function(){Da("timed out",c),p=null;const b=new Nee(c);b.fn=o,f(b)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,f);y&&typeof y.then=="function"&&(Da("exec: resolving promise",c),y.then(()=>St.nextTick(f),b=>St.nextTick(f,b)))};_m.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Da("rejecting promise",this.name,o),this._promise.reject(o)):(Da("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let a;return this._promise?a=Promise.resolve():(this._promise=Lee(),a=this._promise.promise,this.server?n():this.on("start",n)),a};_m.prototype.enqueue=function(n,a){Da("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,a)};_m.prototype.finish=function(n,a){Da("finish",this.name,n);const o=()=>{this.loaded||(Da("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,a(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Da("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Da("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Da("delayed",this.name),this.q.drain=()=>{Da("drain",this.name),this.q.drain=xee,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function Oee(n,a){const o=this;St.nextTick(_y.bind(o),n,a)}function _y(n,a){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,_y.call(this,n,a)},a);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),a(c)})})}function xee(){}Ey.exports=_m;Ey.exports.loadPlugin=_y;var Aee=Ey.exports;const qS=cE,Pee=TE.EventEmitter,Mee=x6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:X5,AVV_ERR_CALLBACK_NOT_FN:i2,AVV_ERR_PLUGIN_NOT_VALID:Dee,AVV_ERR_ROOT_PLG_BOOTED:Uee,AVV_ERR_READY_TIMEOUT:Fee}=DE,Vee=kee,D9=Aee,Tm=UE("avvio"),b6=Symbol("kAvvio"),J5=Symbol("kThenifyDoNotWrap");function jee(n,a,o){const l=a.expose||{},c=l.use||"use",p=l.after||"after",f=l.ready||"ready",y=l.onClose||"onClose",b=l.close||"close";if(n[c])throw new X5(c);if(n[p])throw new X5(p);if(n[f])throw new X5(f);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:FE.bind(o)}),n[b6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(e9(C,this)),this)},n[f]=function(C){if(C&&typeof C!="function")throw new i2(f,typeof C);return o.ready(C?e9(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new i2(y,typeof C);return o.onClose(Gee(C,this)),this},n[b]=function(C){if(C&&typeof C!="function")throw new i2(b,typeof C);return C?(o.close(e9(C,this)),this):o.close()}}function ka(n,a,o){if(typeof n=="function"&&arguments.length===1&&(o=n,a={},n=null),typeof a=="function"&&(o=a,a={}),a=a||{},!(this instanceof ka)){const l=new ka(n,a,o);return n&&jee(n,a,l),l}a.autostart!==!1&&(a.autostart=!0),n=n||this,this._timeout=Number(a.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new Vee,this._readyQ=qS(this,VE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=WS},this._closeQ=qS(this,Hee,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=WS},this._doStart=null,this._root=new D9(this,Bee.bind(this),a,!1,0),this._root.once("start",(l,c,p)=>{const f=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,b,C)=>{this.pluginTree.stop(f,C)})}),D9.loadPlugin.call(this,this._root,l=>{Tm("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function Bee(n,a,o){this._doStart=o,a.autostart&&this.start()}Mee(ka,Pee);ka.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};ka.prototype.override=function(n,a,o){return n};function $ee(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new Dee(typeof n);return n}ka.prototype[b6]=!0;ka.prototype.use=function(n,a){return this._lastUsed=this._addPlugin(n,a,!1),this};ka.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(ka.prototype,"then",{get:FE});ka.prototype._addPlugin=function(n,a,o){if(n=$ee(n),a=a||{},this.booted)throw new Uee;const l=this._current[0],c=new D9(this,n,a,o);if(c.once("start",(p,f,y)=>{const b=this.pluginTree.start(l.name,f,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(b,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};ka.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(a.bind(this),{},!0);function a(o,l,c){VE.call(this,n,c)}return this};ka.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,a.bind(this));function a(o){o&&(this._error=o)}return this};ka.prototype.close=function(n){let a;if(n){if(typeof n!="function")throw new i2("close",typeof n)}else a=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),a};ka.prototype.ready=function(n){if(n){if(typeof n!="function")throw new i2("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((a,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,f,y){p?o(p):a(l),St.nextTick(y)}})};ka.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ka.prototype.toJSON=function(){return this.pluginTree.toJSON()};function WS(){}function FE(){if(this.booted){Tm("thenify returning null because we are already booted");return}if(this[J5]){this[J5]=!1;return}return Tm("thenify"),(n,a)=>this._loadRegistered().then(()=>(this[J5]=!0,n(this._server)),a)}function VE(n,a){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[b6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(n.length===1)c=n(l),c&&!c[b6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(this._timeout===0){const p=f=>{this._error=f,a(this._error)};n.length===2?n(l,p):n(l,o,p)}else zee.call(this,n,l,o,a)}function zee(n,a,o,l){const c=n.name;Tm("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{Tm("timed out",c),p=null;const y=new Fee(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(a,f.bind(this)):n(a,o,f.bind(this));function f(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Hee(n,a){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(Tm("resolving close/onClose promise"),c.then(()=>St.nextTick(a),p=>St.nextTick(a,p))):St.nextTick(a)}else n.length===2?n(l?o:this._error,a):l?n(o,a):n(this._error,o,a)}function Gee(n,a){return o.bind(a);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function e9(n,a){return o.bind(a);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}py.exports=ka;py.exports.express=function(n){return ka(n,{expose:{use:"load"}})};var qee=py.exports;const Wee=kX(qee);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const a of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${a}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${a}CancelAnimationFrame`]||window[`${a}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let a=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-a)),f=window.setTimeout(function(){l(c+p)},p);return a=c+p,f},window.cancelAnimationFrame=clearTimeout}})();function Qee(n,a=!0,o=!0,l){const c=a?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=a?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",f=Wee(Object.create({}),{autostart:!1});return f.use(ZZ),f.use(qZ,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),f.use(KZ,{videoPlayerController:l==null?void 0:l.videoPlayerController}),f.use(fZ,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),f.use(vZ),f.use(YZ),f.use(cX),f.use(DZ),f.use(bX),f.after((y,b,C)=>{if(y)throw y;b.ready(),C()}),o&&f.after(async(y,b,C)=>{if(y)throw y;await b.sdk.initializeApp(),C()}),f.onClose(()=>{console.log("close")}),f}const Yee=({sdkKey:n,plugins:a,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p})=>{const[f,y]=Q.useState(null);return Q.useEffect(()=>{let b=!1;if(!n)return console.error("streamlayer sdk key should be provided"),y(_=>(_!==null&&typeof _.disableApp=="function"&&_.disableApp(),null)),()=>{b=!0};const C=Qee(n,o,l,{version:"1.1.4",onDeepLinkHandled:c,videoPlayerController:p});if(a)for(const _ of a)C.use(_);return C.ready().then(_=>{b||(y(_.sdk),typeof window<"u")}).catch(_=>console.log(_)),()=>{b=!0,C.close(function(_){if(_)throw _})}},[n,o]),f};var jE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(jE||{});const Iy=Q.createContext({status:0,sdk:null}),Kee=({sdkKey:n,plugins:a,children:o,production:l=!0,autoEnable:c=!0,onDeepLinkHandled:p,videoPlayerController:f})=>{const y=Yee({sdkKey:n,plugins:a,production:l,autoEnable:c,onDeepLinkHandled:p,videoPlayerController:f}),b=Q.useMemo(()=>y?{sdk:y,status:2}:{status:1,sdk:null},[y]);return Q.useEffect(()=>()=>{p&&(y==null||y.removeDeepLinkHandler(p)),f&&(y==null||y.removeVideoPlayerController(f))},[y]),Q.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!p,videoPlayerController:!!f})},[n,p,f]),w.jsx(Iy.Provider,{value:b,children:o})},BE=()=>{const{sdk:n}=Q.useContext(Iy);return n},Zee=({sdkKey:n,plugins:a,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(Kee,{sdkKey:n,plugins:a,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),Xee=({children:n,overlays:a})=>{const{sdk:o,status:l}=Q.useContext(Iy);return l===jE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(RC,{style:{height:"100%"},children:w.jsx(jG,{sdk:o,overlays:a,children:n})})}):n({})};class Jee extends Q.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,o){console.error(a,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx(Xee,{...this.props})}}const ete=({token:n,schema:a})=>{const o=BE();return Q.useEffect(()=>{n&&a&&o&&o.authorizationBypass(a,n)},[n,a,o]),null},tte=()=>{const n=BE();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(RC,{children:w.jsx(KG,{sdk:n})})}):null};exports.C=kC;exports.C$1=XS;exports.C$2=w6;exports.M=iy;exports.MastersStreamLayerProvider=Zee;exports.MastersStreamLayerSDKReact=Jee;exports.O=ey;exports.S=EC;exports.StreamLayerLogin=ete;exports.StreamLayerSDKPoints=tte;exports.T=sy;exports.a=U9;exports.b=bC;exports.k=_C;exports.l=KS;exports.m=r2;exports.m$1=JS;exports.n=f2;exports.p=XG;exports.p$1=ZS;exports.styled_default=P;exports.useStore=Ut;exports.z=F$;
|
|
212
|
+
`).slice(0,2).map(o=>o.trim()).join(" -- ")}function Lee(){const n={};return n.promise=new Promise((a,o)=>{n.resolve=a,n.reject=o}),n}function _m(n,a,o,l,c){this.started=!1,this.func=a,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=Ree(a,o),this.isAfter=l,this.q=Eee(n,Oee,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}Iee(_m,_ee);_m.prototype.exec=function(n,a){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Da("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(a);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(b){return Da("override errored",c),a(b)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Da("exec",c);let p;const f=b=>{if(l){Da("loading complete",c);return}this._error=b,Da(b?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),a(b)};this.timeout>0&&(Da("setting up timeout",c,this.timeout),p=setTimeout(function(){Da("timed out",c),p=null;const b=new Nee(c);b.fn=o,f(b)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,f);y&&typeof y.then=="function"&&(Da("exec: resolving promise",c),y.then(()=>St.nextTick(f),b=>St.nextTick(f,b)))};_m.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Da("rejecting promise",this.name,o),this._promise.reject(o)):(Da("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let a;return this._promise?a=Promise.resolve():(this._promise=Lee(),a=this._promise.promise,this.server?n():this.on("start",n)),a};_m.prototype.enqueue=function(n,a){Da("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,a)};_m.prototype.finish=function(n,a){Da("finish",this.name,n);const o=()=>{this.loaded||(Da("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,a(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Da("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Da("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Da("delayed",this.name),this.q.drain=()=>{Da("drain",this.name),this.q.drain=xee,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function Oee(n,a){const o=this;St.nextTick(_y.bind(o),n,a)}function _y(n,a){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,_y.call(this,n,a)},a);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),a(c)})})}function xee(){}Ey.exports=_m;Ey.exports.loadPlugin=_y;var Aee=Ey.exports;const qS=cE,Pee=TE.EventEmitter,Mee=x6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:X5,AVV_ERR_CALLBACK_NOT_FN:i2,AVV_ERR_PLUGIN_NOT_VALID:Dee,AVV_ERR_ROOT_PLG_BOOTED:Uee,AVV_ERR_READY_TIMEOUT:Fee}=DE,Vee=kee,D9=Aee,Tm=UE("avvio"),b6=Symbol("kAvvio"),J5=Symbol("kThenifyDoNotWrap");function jee(n,a,o){const l=a.expose||{},c=l.use||"use",p=l.after||"after",f=l.ready||"ready",y=l.onClose||"onClose",b=l.close||"close";if(n[c])throw new X5(c);if(n[p])throw new X5(p);if(n[f])throw new X5(f);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:FE.bind(o)}),n[b6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(e9(C,this)),this)},n[f]=function(C){if(C&&typeof C!="function")throw new i2(f,typeof C);return o.ready(C?e9(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new i2(y,typeof C);return o.onClose(Gee(C,this)),this},n[b]=function(C){if(C&&typeof C!="function")throw new i2(b,typeof C);return C?(o.close(e9(C,this)),this):o.close()}}function ka(n,a,o){if(typeof n=="function"&&arguments.length===1&&(o=n,a={},n=null),typeof a=="function"&&(o=a,a={}),a=a||{},!(this instanceof ka)){const l=new ka(n,a,o);return n&&jee(n,a,l),l}a.autostart!==!1&&(a.autostart=!0),n=n||this,this._timeout=Number(a.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new Vee,this._readyQ=qS(this,VE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=WS},this._closeQ=qS(this,Hee,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=WS},this._doStart=null,this._root=new D9(this,Bee.bind(this),a,!1,0),this._root.once("start",(l,c,p)=>{const f=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,b,C)=>{this.pluginTree.stop(f,C)})}),D9.loadPlugin.call(this,this._root,l=>{Tm("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function Bee(n,a,o){this._doStart=o,a.autostart&&this.start()}Mee(ka,Pee);ka.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};ka.prototype.override=function(n,a,o){return n};function $ee(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new Dee(typeof n);return n}ka.prototype[b6]=!0;ka.prototype.use=function(n,a){return this._lastUsed=this._addPlugin(n,a,!1),this};ka.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(ka.prototype,"then",{get:FE});ka.prototype._addPlugin=function(n,a,o){if(n=$ee(n),a=a||{},this.booted)throw new Uee;const l=this._current[0],c=new D9(this,n,a,o);if(c.once("start",(p,f,y)=>{const b=this.pluginTree.start(l.name,f,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(b,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};ka.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(a.bind(this),{},!0);function a(o,l,c){VE.call(this,n,c)}return this};ka.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,a.bind(this));function a(o){o&&(this._error=o)}return this};ka.prototype.close=function(n){let a;if(n){if(typeof n!="function")throw new i2("close",typeof n)}else a=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),a};ka.prototype.ready=function(n){if(n){if(typeof n!="function")throw new i2("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((a,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,f,y){p?o(p):a(l),St.nextTick(y)}})};ka.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ka.prototype.toJSON=function(){return this.pluginTree.toJSON()};function WS(){}function FE(){if(this.booted){Tm("thenify returning null because we are already booted");return}if(this[J5]){this[J5]=!1;return}return Tm("thenify"),(n,a)=>this._loadRegistered().then(()=>(this[J5]=!0,n(this._server)),a)}function VE(n,a){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[b6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(n.length===1)c=n(l),c&&!c[b6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(this._timeout===0){const p=f=>{this._error=f,a(this._error)};n.length===2?n(l,p):n(l,o,p)}else zee.call(this,n,l,o,a)}function zee(n,a,o,l){const c=n.name;Tm("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{Tm("timed out",c),p=null;const y=new Fee(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(a,f.bind(this)):n(a,o,f.bind(this));function f(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Hee(n,a){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(Tm("resolving close/onClose promise"),c.then(()=>St.nextTick(a),p=>St.nextTick(a,p))):St.nextTick(a)}else n.length===2?n(l?o:this._error,a):l?n(o,a):n(this._error,o,a)}function Gee(n,a){return o.bind(a);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function e9(n,a){return o.bind(a);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}py.exports=ka;py.exports.express=function(n){return ka(n,{expose:{use:"load"}})};var qee=py.exports;const Wee=kX(qee);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const a of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${a}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${a}CancelAnimationFrame`]||window[`${a}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let a=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-a)),f=window.setTimeout(function(){l(c+p)},p);return a=c+p,f},window.cancelAnimationFrame=clearTimeout}})();function Qee(n,a=!0,o=!0,l){const c=a?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=a?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",f=Wee(Object.create({}),{autostart:!1});return f.use(ZZ),f.use(qZ,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),f.use(KZ,{videoPlayerController:l==null?void 0:l.videoPlayerController}),f.use(fZ,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),f.use(vZ),f.use(YZ),f.use(cX),f.use(DZ),f.use(bX),f.after((y,b,C)=>{if(y)throw y;b.ready(),C()}),o&&f.after(async(y,b,C)=>{if(y)throw y;await b.sdk.initializeApp(),C()}),f.onClose(()=>{console.log("close")}),f}const Yee=({sdkKey:n,plugins:a,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p})=>{const[f,y]=Q.useState(null);return Q.useEffect(()=>{let b=!1;if(!n)return console.error("streamlayer sdk key should be provided"),y(_=>(_!==null&&typeof _.disableApp=="function"&&_.disableApp(),null)),()=>{b=!0};const C=Qee(n,o,l,{version:"1.1.5",onDeepLinkHandled:c,videoPlayerController:p});if(a)for(const _ of a)C.use(_);return C.ready().then(_=>{b||(y(_.sdk),typeof window<"u")}).catch(_=>console.log(_)),()=>{b=!0,C.close(function(_){if(_)throw _})}},[n,o]),f};var jE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(jE||{});const Iy=Q.createContext({status:0,sdk:null}),Kee=({sdkKey:n,plugins:a,children:o,production:l=!0,autoEnable:c=!0,onDeepLinkHandled:p,videoPlayerController:f})=>{const y=Yee({sdkKey:n,plugins:a,production:l,autoEnable:c,onDeepLinkHandled:p,videoPlayerController:f}),b=Q.useMemo(()=>y?{sdk:y,status:2}:{status:1,sdk:null},[y]);return Q.useEffect(()=>()=>{p&&(y==null||y.removeDeepLinkHandler(p)),f&&(y==null||y.removeVideoPlayerController(f))},[y]),Q.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!p,videoPlayerController:!!f})},[n,p,f]),w.jsx(Iy.Provider,{value:b,children:o})},BE=()=>{const{sdk:n}=Q.useContext(Iy);return n},Zee=({sdkKey:n,plugins:a,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(Kee,{sdkKey:n,plugins:a,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),Xee=({children:n,overlays:a})=>{const{sdk:o,status:l}=Q.useContext(Iy);return l===jE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(RC,{style:{height:"100%"},children:w.jsx(jG,{sdk:o,overlays:a,children:n})})}):n({})};class Jee extends Q.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,o){console.error(a,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx(Xee,{...this.props})}}const ete=({token:n,schema:a})=>{const o=BE();return Q.useEffect(()=>{n&&a&&o&&o.authorizationBypass(a,n)},[n,a,o]),null},tte=()=>{const n=BE();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(RC,{children:w.jsx(KG,{sdk:n})})}):null};exports.C=kC;exports.C$1=XS;exports.C$2=w6;exports.M=iy;exports.MastersStreamLayerProvider=Zee;exports.MastersStreamLayerSDKReact=Jee;exports.O=ey;exports.S=EC;exports.StreamLayerLogin=ete;exports.StreamLayerSDKPoints=tte;exports.T=sy;exports.a=U9;exports.b=bC;exports.k=_C;exports.l=KS;exports.m=r2;exports.m$1=JS;exports.n=f2;exports.p=XG;exports.p$1=ZS;exports.styled_default=P;exports.useStore=Ut;exports.z=F$;
|
package/lib/dist/es/masters.js
CHANGED
|
@@ -41869,7 +41869,7 @@ const cte = ({
|
|
|
41869
41869
|
b = !0;
|
|
41870
41870
|
};
|
|
41871
41871
|
const w = ute(n, o, l, {
|
|
41872
|
-
version: "1.1.
|
|
41872
|
+
version: "1.1.5",
|
|
41873
41873
|
onDeepLinkHandled: c,
|
|
41874
41874
|
videoPlayerController: p
|
|
41875
41875
|
});
|
package/lib/es/advertisement.js
CHANGED
|
@@ -308,17 +308,19 @@ const Z = /* @__PURE__ */ s("div")({
|
|
|
308
308
|
event: e,
|
|
309
309
|
sidebar: t,
|
|
310
310
|
banner: i,
|
|
311
|
-
isMobileScreen: a
|
|
311
|
+
isMobileScreen: a,
|
|
312
|
+
persistent: n
|
|
312
313
|
}) => {
|
|
313
|
-
const
|
|
314
|
-
return
|
|
314
|
+
const l = V();
|
|
315
|
+
return l ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ o(X, { children: /* @__PURE__ */ o(
|
|
315
316
|
Fe,
|
|
316
317
|
{
|
|
317
|
-
sdk:
|
|
318
|
+
sdk: l,
|
|
318
319
|
event: e,
|
|
319
320
|
sidebar: t,
|
|
320
321
|
banner: i,
|
|
321
322
|
isMobileScreen: a,
|
|
323
|
+
persistent: n,
|
|
322
324
|
layoutMode: "side-by-side"
|
|
323
325
|
}
|
|
324
326
|
) }) }) : null;
|
|
@@ -17620,7 +17620,7 @@ const H_ = ({
|
|
|
17620
17620
|
l = !0;
|
|
17621
17621
|
};
|
|
17622
17622
|
const m = V_(e, n, a, {
|
|
17623
|
-
version: "1.1.
|
|
17623
|
+
version: "1.1.5",
|
|
17624
17624
|
onDeepLinkHandled: s,
|
|
17625
17625
|
videoPlayerController: r
|
|
17626
17626
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "StreamLayer, Inc (https://streamlayer.io)",
|
|
6
6
|
"maintainers": [
|
|
@@ -78,17 +78,17 @@
|
|
|
78
78
|
}
|
|
79
79
|
],
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@streamlayer/feature-gamification": "^1.3.
|
|
82
|
-
"@streamlayer/sdk-web": "^1.1.
|
|
83
|
-
"@streamlayer/sdk-web-analytics": "^1.1.
|
|
84
|
-
"@streamlayer/sdk-web-api": "^1.2.
|
|
85
|
-
"@streamlayer/sdk-web-core": "^1.1.
|
|
86
|
-
"@streamlayer/sdk-web-features": "^1.0.
|
|
87
|
-
"@streamlayer/sdk-web-interfaces": "^1.1.
|
|
88
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
89
|
-
"@streamlayer/sdk-web-notifications": "^1.1.
|
|
90
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
91
|
-
"@streamlayer/sdk-web-types": "^1.2.
|
|
81
|
+
"@streamlayer/feature-gamification": "^1.3.1",
|
|
82
|
+
"@streamlayer/sdk-web": "^1.1.1",
|
|
83
|
+
"@streamlayer/sdk-web-analytics": "^1.1.1",
|
|
84
|
+
"@streamlayer/sdk-web-api": "^1.2.1",
|
|
85
|
+
"@streamlayer/sdk-web-core": "^1.1.1",
|
|
86
|
+
"@streamlayer/sdk-web-features": "^1.0.6",
|
|
87
|
+
"@streamlayer/sdk-web-interfaces": "^1.1.1",
|
|
88
|
+
"@streamlayer/sdk-web-logger": "^1.0.6",
|
|
89
|
+
"@streamlayer/sdk-web-notifications": "^1.1.1",
|
|
90
|
+
"@streamlayer/sdk-web-storage": "^1.0.6",
|
|
91
|
+
"@streamlayer/sdk-web-types": "^1.2.1"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@bufbuild/protobuf": "^1.10.0",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"size-limit": "^11.1.5",
|
|
145
145
|
"url-loader": "^4.1.1",
|
|
146
146
|
"vite-plugin-dts": "^4.2.1",
|
|
147
|
-
"@streamlayer/react-ui": "^1.3.
|
|
147
|
+
"@streamlayer/react-ui": "^1.3.1"
|
|
148
148
|
},
|
|
149
149
|
"scripts": {
|
|
150
150
|
"size-limit": "size-limit"
|