@streamlayer/react 1.21.2 → 1.21.3
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/cjs/advertisement.js +1 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +1 -1
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +1 -1
- package/lib/classic/es/advertisement.js +1 -1
- package/lib/classic/es/insight.js +1 -1
- package/lib/classic/es/notification.js +1 -1
- package/lib/classic/es/points.js +1 -1
- package/lib/classic/es/provider.js +18 -18
- package/lib/classic/es/useStreamLayerApp2.js +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +2 -2
- package/lib/dist/es/gamification-feature2.js +1 -1
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +51 -51
- package/lib/es/advertisement.js +1 -1
- package/lib/es/insight.js +1 -1
- package/lib/es/notification.js +1 -1
- package/lib/es/points.js +1 -1
- package/lib/es/provider.js +18 -18
- package/lib/es/useStreamLayerApp2.js +1 -1
- package/package.json +14 -14
package/lib/dist/cjs/masters.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Un=Z;function R5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var C5=typeof Object.is=="function"?Object.is:R5,E5=Un.useState,y5=Un.useEffect,Z5=Un.useLayoutEffect,S5=Un.useDebugValue;function W5(e,t){var n=t(),i=E5({inst:{value:n,getSnapshot:t}}),s=i[0].inst,o=i[1];return Z5(function(){s.value=n,s.getSnapshot=t,_s(s)&&o({inst:s})},[e,n,t]),y5(function(){return _s(s)&&o({inst:s}),e(function(){_s(s)&&o({inst:s})})},[e]),S5(n),n}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!C5(e,n)}catch{return!0}}function v5(e,t){return t()}var I5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v5:W5;q0.useSyncExternalStore=Un.useSyncExternalStore!==void 0?Un.useSyncExternalStore:I5;$0.exports=q0;var F5=$0.exports;const Ps=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function G5(e,{keys:t,deps:n=[e,t]}={}){const i=Z.useRef();i.current=e.get();const s=Z.useCallback(l=>(Ps(i,l)(e.value),(t==null?void 0:t.length)>0?it.listenKeys(e,t,Ps(i,l)):e.listen(Ps(i,l))),n),o=()=>i.current;return Z.useSyncExternalStore?Z.useSyncExternalStore(s,o,o):F5.useSyncExternalStore(s,o,o)}const Ze=G5,N5=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],X5=
|
|
9
|
+
*/var Un=Z;function R5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var C5=typeof Object.is=="function"?Object.is:R5,E5=Un.useState,y5=Un.useEffect,Z5=Un.useLayoutEffect,S5=Un.useDebugValue;function W5(e,t){var n=t(),i=E5({inst:{value:n,getSnapshot:t}}),s=i[0].inst,o=i[1];return Z5(function(){s.value=n,s.getSnapshot=t,_s(s)&&o({inst:s})},[e,n,t]),y5(function(){return _s(s)&&o({inst:s}),e(function(){_s(s)&&o({inst:s})})},[e]),S5(n),n}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!C5(e,n)}catch{return!0}}function v5(e,t){return t()}var I5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v5:W5;q0.useSyncExternalStore=Un.useSyncExternalStore!==void 0?Un.useSyncExternalStore:I5;$0.exports=q0;var F5=$0.exports;const Ps=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function G5(e,{keys:t,deps:n=[e,t]}={}){const i=Z.useRef();i.current=e.get();const s=Z.useCallback(l=>(Ps(i,l)(e.value),(t==null?void 0:t.length)>0?it.listenKeys(e,t,Ps(i,l)):e.listen(Ps(i,l))),n),o=()=>i.current;return Z.useSyncExternalStore?Z.useSyncExternalStore(s,o,o):F5.useSyncExternalStore(s,o,o)}const Ze=G5,N5=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],X5=Z.useTransition||N5,ec={BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",BLUE:"#2d6ffd",GREY_PRIMARY:"#909395",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",PRIMARY_1:"#1D7BFF",PRIMARY_2:"#095CD1",PRIMARY_TEXT:"#090E13",SECONDARY_TEXT:"rgba(10, 14, 19, 0.70)",QUESTION_TYPE_ICON:"#1D7BFF",QUESTION_BODY_TEXT:"#090E13",PRESENTED_BY_TEXT:"#090E13",SUCCESS:"#107D57",UNSUCCESS:"#DF2F3B",SECONDARY_RED1:"#DF2F3B",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_WHITE1:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY9:"#25282A",SDK_CONTAINER_BG:"#F7F7F7",SDK_WHITE_CONTAINER_BG:"#fff",SDK_DARK_CONTAINER_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_BG:"#fff",SDK_PREDICTION_RESULT_INCORRECT_BG:"#fff",SDK_PREDICTION_RESULT_SUCCESS_TEXT:"#107D57",SDK_PREDICTION_RESULT_ERROR_TITLE:"#090E13",SDK_PREDICTION_RESULT_ERROR_SUBTITLE:"#DF2F3B",SDK_PREDICTION_RESULT_CLOSE_ICON:"#6B6F73",SDK_PREDICTION_FEEDBACK_SUCCESS_ICON:"#107D57",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1:"#CD2525",SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2:"#fff",PREDICTION_BG_LINES_CORRECT:"#01AB58",PREDICTION_BG_LINES_INCORRECT:"#888B8D",SKELETON_COLOR_1:"#f1efef",SKELETON_COLOR_2:"#f9f8f8",TABS_CONTAINER_BG:"#F2F2F1",TABS_ACTIVE_BG:"#FFFFFF",TABS_COLOR:"#6B6F73",TABS_ACTIVE_COLOR:"#1D7BFF",CARD_BG:"#FFFFFF",CARD_BORDER:"#fff",BORDER:"#E8E8E8",VOTE_BTN_BG:"#F7F7F7",VOTE_BTN_BORDER:"rgb(232, 232, 232)",VOTE_BTN_DISABLED_BORDER:"#B1B3B3",VOTE_BTN_SELECTED_BORDER:"#25282A",VOTE_BTN_NOT_SELECTED_BORDER:"#E8E8E8",VOTE_BTN_SELECTED_BG:"#FFFFFF",VOTE_BTN_SELECTED_BG_AD_UNIT:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG:"#FFFFFF",VOTE_BTN_NOT_SELECTED_BG_UNSET:"rgb(196, 196, 196)",VOTED_ANSWER_BG:"#FFFFFF",VOTED_BTN_RCT_BG:"#2d5694",IN_APP_BG:"rgba(255, 255, 255, 0.90)",IN_APP_QUESTION_TYPE_ICON:"#1D7BFF",IN_APP_QUESTION_TYPE_LABEL:"#82899E",IN_APP_QUESTION_QUOTE:"rgba(10, 14, 19, 0.70)",IN_APP_QUESTION_RESULT_SUBTITLE_BG:"#1D7BFF",IN_APP_QUESTION_RESULT_LINE:"#babfc5",QUOTE_BORDER:"#E8E8E8",QUOTE_TEXT:"rgba(10, 14, 19, 0.70)"},Y5={BG_PRIMARY:"#13212b",BG_SECONDARY:"#152430",BG_SECONDARY1:"#435059",BORDER_PRIMARY:"rgba(255, 255, 255, 0.1)",TEXT_PRIMARY:"#f9f9f9",TEXT_PRIMARY1:"#f9f9f9",TEXT_SECONDARY:"rgba(255, 255, 255, 0.8)",TEXT_SECONDARY1:"#878787",WHITE:"#fff"},B5=["#107D57","#DF2F3B","#DF2F3B","#E8E8E8"],U5="#cee5de",w5="#f9d6d8",T5="#E8E8E8",ke={REGULAR:"'SF Pro Text', Arial, Helvetica, sans-serif",SERIF:"'SF Pro Display', Arial, Helvetica, sans-serif",COLOR:"#fff",WEIGHT_DEFAULT:"500",WEIGHT_DEFAULT1:"500",WEIGHT_DEFAULT2:"400",WEIGHT_DEFAULT3:"500",SIZE_DEFAULT:"16px",SIZE_DEFAULT1:"14px",SIZE_DEFAULT2:"12px",LINE_HEIGHT:"24px",MARGIN_TITLE_DEFAULT:"0px 0px 12px"},De={xs:324,sm:576,md:768,lg:992,xl:1200,xxl:1440},ga={landscape:"landscape",portrait:"portrait"},x5=Object.entries(ec).reduce((e,[t,n])=>`
|
|
10
10
|
${e}
|
|
11
11
|
--color-${t.toLowerCase().replaceAll("_","-")}: ${n};
|
|
12
12
|
`,""),L5=Object.entries(Y5).reduce((e,[t,n])=>`
|
|
@@ -73,4 +73,4 @@ view this resource.`}):c.jsx(zo,{}),Ld=Z.memo(({sdk:e,swipeable:t=!0,onEvent:n=B
|
|
|
73
73
|
`),a=`
|
|
74
74
|
`+n+(o.length?s("│"):" ")+" ";return n+l.join(a)+`
|
|
75
75
|
`+o.map(function(r,d){var u=d===o.length-1,p=r.nodes&&r.nodes.length,h=n+(u?" ":s("│"))+" ";return n+s(u?"└":"├")+s("─")+s(p?"┬":"─")+" "+e(r,h,i).slice(n.length+2)}).join("")};const UY=BY,k0=Symbol("avvio.TimeTree.untrackNode"),bo=Symbol("avvio.TimeTree.trackNode"),J0=Symbol("avvio.TimeTree.getParent"),z0=Symbol("avvio.TimeTree.getNode"),Q0=Symbol("avvio.TimeTree.addNode");let wY=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[bo](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])}[k0](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)}[J0](e){if(e===null)return this.root;const t=this.tableLabel.get(e);return t.id?t:t[t.length-1]}[z0](e){return this.tableId.get(e)}[Q0](e,t,n){if(e===null)return this.root={id:"root",label:t,start:n,nodes:[]},this[bo](this.root),this.root.id;const i=this[J0](e),s=`${t}-${Math.random()}`,o={id:s,parent:e,start:n,label:t,nodes:[]};return i.nodes.push(o),this[bo](o),s}start(e,t,n=Date.now()){return this[Q0](e,t,n)}stop(e,t=Date.now()){const n=this[z0](e);n&&(n.stop=t,n.diff=n.stop-n.start||0,this[k0](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(i=>e(i))),n),t=e(this.toJSON());return UY(t)}};var TY=wY,aa={exports:{}},ol={exports:{}},Vo,M0;function xY(){if(M0)return Vo;M0=1;var e=1e3,t=e*60,n=t*60,i=n*24,s=i*7,o=i*365.25;Vo=function(u,p){p=p||{};var h=typeof u;if(h==="string"&&u.length>0)return l(u);if(h==="number"&&isFinite(u))return p.long?r(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function l(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\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(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*s;case"days":case"day":case"d":return h*i;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function a(u){var p=Math.abs(u);return p>=i?Math.round(u/i)+"d":p>=n?Math.round(u/n)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function r(u){var p=Math.abs(u);return p>=i?d(u,p,i,"day"):p>=n?d(u,p,n,"hour"):p>=t?d(u,p,t,"minute"):p>=e?d(u,p,e,"second"):u+" ms"}function d(u,p,h,g){var A=p>=h*1.5;return Math.round(u/h)+" "+g+(A?"s":"")}return Vo}function LY(e){n.debug=n,n.default=n,n.coerce=r,n.disable=o,n.enable=s,n.enabled=l,n.humanize=xY(),n.destroy=d,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let p=0;for(let h=0;h<u.length;h++)p=(p<<5)-p+u.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(u){let p,h=null,g,A;function y(...S){if(!y.enabled)return;const b=y,m=Number(new Date),f=m-(p||m);b.diff=f,b.prev=p,b.curr=m,p=m,S[0]=n.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let C=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(v,F)=>{if(v==="%%")return"%";C++;const Y=n.formatters[F];if(typeof Y=="function"){const k=S[C];v=Y.call(b,k),S.splice(C,1),C--}return v}),n.formatArgs.call(b,S),(b.log||n.log).apply(b,S)}return y.namespace=u,y.useColors=n.useColors(),y.color=n.selectColor(u),y.extend=i,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==n.namespaces&&(g=n.namespaces,A=n.enabled(u)),A),set:S=>{h=S}}),typeof n.init=="function"&&n.init(y),y}function i(u,p){const h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function s(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p;const h=(typeof u=="string"?u:"").split(/[\s,]+/),g=h.length;for(p=0;p<g;p++)h[p]&&(u=h[p].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function o(){const u=[...n.names.map(a),...n.skips.map(a).map(p=>"-"+p)].join(",");return n.enable(""),u}function l(u){if(u[u.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(u))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(u))return!0;return!1}function a(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function r(u){return u instanceof Error?u.stack||u.message:u}function d(){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 kY=LY;(function(e,t){t.formatArgs=i,t.save=s,t.load=o,t.useColors=n,t.storage=l(),t.destroy=(()=>{let r=!1;return()=>{r||(r=!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 i(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;r.splice(1,0,d,"color: inherit");let u=0,p=0;r[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(p=u))}),r.splice(p,0,d)}t.log=console.debug||console.log||(()=>{});function s(r){try{r?t.storage.setItem("debug",r):t.storage.removeItem("debug")}catch{}}function o(){let r;try{r=t.storage.getItem("debug")}catch{}return!r&&typeof de<"u"&&"env"in de&&(r=de.env.DEBUG),r}function l(){try{return localStorage}catch{}}e.exports=kY(t);const{formatters:a}=e.exports;a.j=function(r){try{return JSON.stringify(r)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}})(ol,ol.exports);var j3=ol.exports;const JY=C3,zY=G3.EventEmitter,QY=Qs.inherits,He=j3("avvio"),{AVV_ERR_READY_TIMEOUT:MY}=O3,Ao=Symbol.for("plugin-meta");function KY(e,t){return e[Ao]&&e[Ao].name?e[Ao].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
|
|
76
|
-
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function HY(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function $n(e,t,n,i,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=KY(t,n),this.isAfter=i,this.q=JY(e,OY,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}QY($n,zY);$n.prototype.exec=function(e,t){const n=this.func;let i=!1;const s=this.name;if(this.parent._error&&!this.isAfter){He("skipping loading of plugin as parent errored and it is not an after",s),de.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(r){return He("override errored",s),t(r)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,He("exec",s);let o;const l=r=>{if(i){He("loading complete",s);return}this._error=r,He(r?"exec errored":"exec completed",s),i=!0,o&&clearTimeout(o),t(r)};this.timeout>0&&(He("setting up timeout",s,this.timeout),o=setTimeout(function(){He("timed out",s),o=null;const r=new MY(s);r.fn=n,l(r)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const a=n(this.server,this.opts,l);a&&typeof a.then=="function"&&(He("exec: resolving promise",s),a.then(()=>de.nextTick(l),r=>de.nextTick(l,r)))};$n.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,i)=>{this._error=n,this.q.pause(),n?(He("rejecting promise",this.name,n),this._promise.reject(n)):(He("resolving promise",this.name),this._promise.resolve()),this._promise=null,de.nextTick(i,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=HY(),t=this._promise.promise,this.server?e():this.on("start",e)),t};$n.prototype.enqueue=function(e,t){He("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};$n.prototype.finish=function(e,t){He("finish",this.name,e);const n=()=>{this.loaded||(He("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 i=()=>{if(He("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{He("wrap"),queueMicrotask(i)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else He("delayed",this.name),this.q.drain=()=>{He("drain",this.name),this.q.drain=jY,queueMicrotask(i)}};queueMicrotask(i),this.q.resume()};function OY(e,t){const n=this;de.nextTick(ra.bind(n),e,t)}function ra(e,t){if(typeof e.func.then=="function"){e.func.then(i=>{typeof i.default=="function"&&(i=i.default),e.func=i,ra.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,i=>{e.finish(i,s=>{this._current.shift(),t(s)})})}function jY(){}aa.exports=$n;aa.exports.loadPlugin=ra;var DY=aa.exports;const K0=C3,_Y=G3.EventEmitter,PY=Qs.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:fo,AVV_ERR_CALLBACK_NOT_FN:hi,AVV_ERR_PLUGIN_NOT_VALID:$Y,AVV_ERR_ROOT_PLG_BOOTED:qY,AVV_ERR_READY_TIMEOUT:eB}=O3,tB=TY,ll=DY,Qn=j3("avvio"),Fs=Symbol("kAvvio"),Ro=Symbol("kThenifyDoNotWrap");function nB(e,t,n){const i=t.expose||{},s=i.use||"use",o=i.after||"after",l=i.ready||"ready",a=i.onClose||"onClose",r=i.close||"close";if(e[s])throw new fo(s);if(e[o])throw new fo(o);if(e[l])throw new fo(l);e[s]=function(d,u){return n.use(d,u),this},Object.defineProperty(e,"then",{get:D3.bind(n)}),e[Fs]=!0,e[o]=function(d){return typeof d!="function"?n._loadRegistered():(n.after(Co(d,this)),this)},e[l]=function(d){if(d&&typeof d!="function")throw new hi(l,typeof d);return n.ready(d?Co(d,this):void 0)},e[a]=function(d){if(typeof d!="function")throw new hi(a,typeof d);return n.onClose(aB(d,this)),this},e[r]=function(d){if(d&&typeof d!="function")throw new hi(r,typeof d);return d?(n.close(Co(d,this)),this):n.close()}}function Ke(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 Ke)){const i=new Ke(e,t,n);return e&&nB(e,t,i),i}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 tB,this._readyQ=K0(this,_3,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=H0},this._closeQ=K0(this,lB,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=H0},this._doStart=null,this._root=new ll(this,iB.bind(this),t,!1,0),this._root.once("start",(i,s,o)=>{const l=this.pluginTree.start(null,s,o);this._root.once("loaded",(a,r,d)=>{this.pluginTree.stop(l,d)})}),ll.loadPlugin.call(this,this._root,i=>{Qn("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){i=i||this._error||s}if(i){if(this._error=i,this._readyQ.length()===0)throw i}else this.booted=!0;this._readyQ.resume()})}function iB(e,t,n){this._doStart=n,t.autostart&&this.start()}PY(Ke,_Y);Ke.prototype.start=function(){return this.started=!0,de.nextTick(this._doStart),this};Ke.prototype.override=function(e,t,n){return e};function sB(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new $Y(typeof e);return e}Ke.prototype[Fs]=!0;Ke.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};Ke.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&de.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(Ke.prototype,"then",{get:D3});Ke.prototype._addPlugin=function(e,t,n){if(e=sB(e),t=t||{},this.booted)throw new qY;const i=this._current[0],s=new ll(this,e,t,n);if(s.once("start",(o,l,a)=>{const r=this.pluginTree.start(i.name,l,a);s.once("loaded",(d,u,p)=>{this.pluginTree.stop(r,p)})}),i.loaded)throw new Error(s.name,i.name);return i.enqueue(s,o=>{o&&(this._error=o)}),s};Ke.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,i,s){_3.call(this,e,s)}return this};Ke.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};Ke.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new hi("close",typeof e)}else t=new Promise(function(n,i){e=function(s){if(s)return i(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),de.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};Ke.prototype.ready=function(e){if(e){if(typeof e!="function")throw new hi("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 i=this._current[0].server;function s(o,l,a){o?n(o):t(i),de.nextTick(a)}})};Ke.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ke.prototype.toJSON=function(){return this.pluginTree.toJSON()};function H0(){}function D3(){if(this.booted){Qn("thenify returning null because we are already booted");return}if(this[Ro]){this[Ro]=!1;return}return Qn("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[Ro]=!0,e(this._server)),t)}function _3(e,t){const n=this._server,i=this._error;let s;if(this._error=null,e.length===0)this._error=i,s=e(),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(e.length===1)s=e(i),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(this._timeout===0){const o=l=>{this._error=l,t(this._error)};e.length===2?e(i,o):e(i,n,o)}else oB.call(this,e,i,n,t)}function oB(e,t,n,i){const s=e.name;Qn("setting up ready timeout",s,this._timeout);let o=setTimeout(()=>{Qn("timed out",s),o=null;const a=new eB(s);a.fn=e,this._error=a,i(a)},this._timeout);e.length===2?e(t,l.bind(this)):e(t,n,l.bind(this));function l(a){o&&(clearTimeout(o),this._error=a,i(this._error))}}function lB(e,t){const n=this._server,i=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;i?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Qn("resolving close/onClose promise"),s.then(()=>de.nextTick(t),o=>de.nextTick(t,o))):de.nextTick(t)}else e.length===2?e(i?n:this._error,t):i?e(n,t):e(this._error,n,t)}function aB(e,t){return n.bind(t);function n(i,s){let o;e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===1?(o=e(this),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e(this,s)}}function Co(e,t){return n.bind(t);function n(i,s){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s,i)},s):de.nextTick(s,i)):e.length===1?(o=e(i),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===2?e(i,s):e(i,this,s):de.nextTick(s)}}_l.exports=Ke;_l.exports.express=function(e){return Ke(e,{expose:{use:"load"}})};var rB=_l.exports;const cB=TN(rB);(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(i){const s=n?window.performance.now():new Date().getTime(),o=Math.max(0,16-(s-t)),l=window.setTimeout(function(){i(s+o)},o);return t=s+o,l},window.cancelAnimationFrame=clearTimeout}})();function dB(e,t=!0,n=!0,i={friendsTab:"enabled"}){const s=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",o=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",l=cB(Object.create({}),{autostart:!1});return l.use(mN,{hideFriends:i.hideFriends,skipOnboarding:i.skipOnboarding,betPack:i.betPack,friendsTab:i.friendsTab,theme:i.theme,themeMode:i.themeMode}),l.use(aN,{onDeepLinkHandled:i==null?void 0:i.onDeepLinkHandled}),l.use(uN,{videoPlayerController:i==null?void 0:i.videoPlayerController}),l.use(hN,{onContentActivate:i==null?void 0:i.onContentActivate,withAd:i==null?void 0:i.withAd,withAdNotification:i==null?void 0:i.withAdNotification}),l.use(vG,{sdkKey:e,host:s,analyticsHost:o,version:i==null?void 0:i.version,webOS:i==null?void 0:i.webOS}),l.use(XG),l.use(dN),l.use(SN),l.use(eN),l.use(wN),l.after((a,r,d)=>{if(a)throw a;r.ready(),d()}),n&&l.after(async(a,r,d)=>{if(a)throw a;await r.sdk.initializeApp(),d()}),l.onClose(()=>{console.log("close StreamLayer instance")}),l}const uB=({sdkKey:e,plugins:t,production:n,autoEnable:i,onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,hideFriends:a,skipOnboarding:r,withAdNotification:d,withAd:u,friendsTab:p,betPack:h,webOS:g})=>{const[A,y]=Z.useState(null);return Z.useEffect(()=>{let S=!1;if(!e)return console.error("streamlayer sdk key should be provided"),y(m=>(m!==null&&typeof m.disableApp=="function"&&m.disableApp(),null)),()=>{S=!0};const b=dB(e,n,i,{version:"1.21.2",onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,skipOnboarding:r,withAdNotification:d,withAd:u,hideFriends:a,friendsTab:p,betPack:h,webOS:g});if(t)for(const m of t)b.use(m);return b.ready().then(m=>{S||(y(m.sdk),typeof window<"u")}).catch(m=>console.log(m)),()=>{S=!0,b.close(function(m){if(m)throw m})}},[e,n]),A},ca=({event:e,internal:t})=>{const n=Wi(),i=hB();return Z.useEffect(()=>(n&&(e&&(n.createEventSession(e,t),i&&(i.current=e)),!e&&(i!=null&&i.current)&&(n.createEventSession("",t),i.current="")),()=>{n&&n.disableApp()}),[e,t,i,n]),null};var P3=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(P3||{});const pB={status:0,sdk:null},js=Z.createContext(pB),$3=({sdkKey:e,theme:t,themeMode:n,plugins:i,children:s,event:o,production:l=!0,autoEnable:a=!0,withAdNotification:r,withAd:d=!0,betPack:u=!1,hideFriends:p,skipOnboarding:h,friendsTab:g="enabled",onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:S,containerId:b,webOS:m})=>{const f=uB({sdkKey:e,plugins:i,production:l,autoEnable:a,onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:S,hideFriends:p,skipOnboarding:h,withAdNotification:r,withAd:d,friendsTab:g,betPack:u,webOS:m}),C=Z.useRef(""),v=Z.useMemo(()=>f?{sdk:f,status:2,event:C}:{status:1,sdk:null,event:C},[f]);return Z.useEffect(()=>{f&&(f.options.setKey("friendsTab",g),f.options.setKey("theme",t),f.options.setKey("themeMode",n),f.options.setKey("skipOnboarding",h),f.options.setKey("betPack",u),f.options.setKey("containerId",b))},[f,g,t,n,h,u,b]),Z.useEffect(()=>()=>{A&&(f==null||f.removeDeepLinkHandler(A)),y&&(f==null||f.removeVideoPlayerController(y))},[f]),Z.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!A,videoPlayerController:!!y})},[e,A,y]),c.jsxs(js.Provider,{value:v,children:[o!==void 0&&c.jsx(ca,{event:o}),s]})},Wi=()=>{const{sdk:e}=Z.useContext(js);return e},hB=()=>{const{event:e}=Z.useContext(js);return e},O0=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&kn.emit("interactions",{action:"tap",payload:{}})},mB=()=>{const e=Wi();return Z.useEffect(()=>(document==null||document.addEventListener("click",O0),()=>{document==null||document.removeEventListener("click",O0)}),[]),e?c.jsx(Ld,{sdk:e}):null},gB=({sdkKey:e,plugins:t,children:n,event:i,onDeepLinkHandled:s,videoPlayerController:o,production:l=!0})=>c.jsxs($3,{sdkKey:e,plugins:t,production:l,autoEnable:!0,onDeepLinkHandled:s,videoPlayerController:o,friendsTab:"disabled",skipOnboarding:!0,hideFriends:!0,children:[c.jsx(ca,{event:i}),n]}),bB=({betPack:e,useContainer:t})=>{const{sdk:n,status:i}=Z.useContext(js);return i===P3.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),null):n?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Hl,{style:{height:"100%"},children:c.jsx($I,{sdk:n,betPack:e,useContainer:t})})}):null};class VB extends Z.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n.componentStack)}render(){return this.state.hasError?null:c.jsx(bB,{...this.props})}}const AB=({token:e,schema:t})=>{const n=Wi();return Z.useEffect(()=>{e&&t&&n&&n.authorizationBypass(t,e),n&&(n.withAuth=!0)},[e,t,n]),null},fB=({event:e,sdkKey:t,token:n,deviceId:i,production:s=!1,theme:o,themeMode:l="light",children:a})=>{const[r,d]=Z.useState(!1);return Z.useEffect(()=>{n&&(new n3().setToken(n),d(!0))},[n]),Z.useEffect(()=>{i&&localStorage.setItem("sl-device-id",i)},[i]),r?c.jsxs($3,{sdkKey:t,production:s,theme:o,themeMode:l,betPack:!0,friendsTab:"disabled",hideFriends:!0,skipOnboarding:!0,autoEnable:!0,children:[c.jsx(ca,{event:e,internal:!1}),c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Hl,{children:a})})]}):null},RB=({production:e})=>{const[t,n]=Z.useState();return Z.useEffect(()=>{const{hostname:i,search:s}=window.location,o=new URLSearchParams(s);n({sdkKey:o.get("_slrk")||"",event:o.get("_slre")||"",token:o.get("_slrt")||"",deviceId:o.get("_slrd")||"",theme:o.get("theme")||"",themeMode:o.get("themeMode")==="dark"?"dark":"light",production:e??!(i.includes("next.")||i==="localhost")})},[e]),t?c.jsx(fB,{...t,children:c.jsx(mB,{})}):null},CB=()=>{const e=Wi();return e?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Hl,{children:c.jsx(rF,{sdk:e})})}):null};exports.A=De;exports.B1=ne;exports.BetPackStandalone=RB;exports.C=TS;exports.C$1=bR;exports.I=Ql;exports.InvitationFrom=cs;exports.M=e3;exports.MastersStreamLayerProvider=gB;exports.MastersStreamLayerSDKReact=VB;exports.S=AR;exports.StreamLayerLogin=AB;exports.StreamLayerSDKPoints=CB;exports.T=qd;exports.cx_default=Me;exports.d=fR;exports.f=Yc;exports.k=_d;exports.l=mR;exports.m=hR;exports.n=wl;exports.p=dF;exports.s=Od;exports.styled_default=V;exports.useStore=Ze;exports.useStreamLayer=Wi;exports.useTransition=X5;exports.z=Pd;
|
|
76
|
+
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function HY(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function $n(e,t,n,i,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=KY(t,n),this.isAfter=i,this.q=JY(e,OY,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}QY($n,zY);$n.prototype.exec=function(e,t){const n=this.func;let i=!1;const s=this.name;if(this.parent._error&&!this.isAfter){He("skipping loading of plugin as parent errored and it is not an after",s),de.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(r){return He("override errored",s),t(r)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,He("exec",s);let o;const l=r=>{if(i){He("loading complete",s);return}this._error=r,He(r?"exec errored":"exec completed",s),i=!0,o&&clearTimeout(o),t(r)};this.timeout>0&&(He("setting up timeout",s,this.timeout),o=setTimeout(function(){He("timed out",s),o=null;const r=new MY(s);r.fn=n,l(r)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const a=n(this.server,this.opts,l);a&&typeof a.then=="function"&&(He("exec: resolving promise",s),a.then(()=>de.nextTick(l),r=>de.nextTick(l,r)))};$n.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,i)=>{this._error=n,this.q.pause(),n?(He("rejecting promise",this.name,n),this._promise.reject(n)):(He("resolving promise",this.name),this._promise.resolve()),this._promise=null,de.nextTick(i,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=HY(),t=this._promise.promise,this.server?e():this.on("start",e)),t};$n.prototype.enqueue=function(e,t){He("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};$n.prototype.finish=function(e,t){He("finish",this.name,e);const n=()=>{this.loaded||(He("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 i=()=>{if(He("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{He("wrap"),queueMicrotask(i)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else He("delayed",this.name),this.q.drain=()=>{He("drain",this.name),this.q.drain=jY,queueMicrotask(i)}};queueMicrotask(i),this.q.resume()};function OY(e,t){const n=this;de.nextTick(ra.bind(n),e,t)}function ra(e,t){if(typeof e.func.then=="function"){e.func.then(i=>{typeof i.default=="function"&&(i=i.default),e.func=i,ra.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,i=>{e.finish(i,s=>{this._current.shift(),t(s)})})}function jY(){}aa.exports=$n;aa.exports.loadPlugin=ra;var DY=aa.exports;const K0=C3,_Y=G3.EventEmitter,PY=Qs.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:fo,AVV_ERR_CALLBACK_NOT_FN:hi,AVV_ERR_PLUGIN_NOT_VALID:$Y,AVV_ERR_ROOT_PLG_BOOTED:qY,AVV_ERR_READY_TIMEOUT:eB}=O3,tB=TY,ll=DY,Qn=j3("avvio"),Fs=Symbol("kAvvio"),Ro=Symbol("kThenifyDoNotWrap");function nB(e,t,n){const i=t.expose||{},s=i.use||"use",o=i.after||"after",l=i.ready||"ready",a=i.onClose||"onClose",r=i.close||"close";if(e[s])throw new fo(s);if(e[o])throw new fo(o);if(e[l])throw new fo(l);e[s]=function(d,u){return n.use(d,u),this},Object.defineProperty(e,"then",{get:D3.bind(n)}),e[Fs]=!0,e[o]=function(d){return typeof d!="function"?n._loadRegistered():(n.after(Co(d,this)),this)},e[l]=function(d){if(d&&typeof d!="function")throw new hi(l,typeof d);return n.ready(d?Co(d,this):void 0)},e[a]=function(d){if(typeof d!="function")throw new hi(a,typeof d);return n.onClose(aB(d,this)),this},e[r]=function(d){if(d&&typeof d!="function")throw new hi(r,typeof d);return d?(n.close(Co(d,this)),this):n.close()}}function Ke(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 Ke)){const i=new Ke(e,t,n);return e&&nB(e,t,i),i}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 tB,this._readyQ=K0(this,_3,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=H0},this._closeQ=K0(this,lB,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=H0},this._doStart=null,this._root=new ll(this,iB.bind(this),t,!1,0),this._root.once("start",(i,s,o)=>{const l=this.pluginTree.start(null,s,o);this._root.once("loaded",(a,r,d)=>{this.pluginTree.stop(l,d)})}),ll.loadPlugin.call(this,this._root,i=>{Qn("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){i=i||this._error||s}if(i){if(this._error=i,this._readyQ.length()===0)throw i}else this.booted=!0;this._readyQ.resume()})}function iB(e,t,n){this._doStart=n,t.autostart&&this.start()}PY(Ke,_Y);Ke.prototype.start=function(){return this.started=!0,de.nextTick(this._doStart),this};Ke.prototype.override=function(e,t,n){return e};function sB(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new $Y(typeof e);return e}Ke.prototype[Fs]=!0;Ke.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};Ke.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&de.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(Ke.prototype,"then",{get:D3});Ke.prototype._addPlugin=function(e,t,n){if(e=sB(e),t=t||{},this.booted)throw new qY;const i=this._current[0],s=new ll(this,e,t,n);if(s.once("start",(o,l,a)=>{const r=this.pluginTree.start(i.name,l,a);s.once("loaded",(d,u,p)=>{this.pluginTree.stop(r,p)})}),i.loaded)throw new Error(s.name,i.name);return i.enqueue(s,o=>{o&&(this._error=o)}),s};Ke.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,i,s){_3.call(this,e,s)}return this};Ke.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};Ke.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new hi("close",typeof e)}else t=new Promise(function(n,i){e=function(s){if(s)return i(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),de.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};Ke.prototype.ready=function(e){if(e){if(typeof e!="function")throw new hi("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 i=this._current[0].server;function s(o,l,a){o?n(o):t(i),de.nextTick(a)}})};Ke.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ke.prototype.toJSON=function(){return this.pluginTree.toJSON()};function H0(){}function D3(){if(this.booted){Qn("thenify returning null because we are already booted");return}if(this[Ro]){this[Ro]=!1;return}return Qn("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[Ro]=!0,e(this._server)),t)}function _3(e,t){const n=this._server,i=this._error;let s;if(this._error=null,e.length===0)this._error=i,s=e(),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(e.length===1)s=e(i),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(this._timeout===0){const o=l=>{this._error=l,t(this._error)};e.length===2?e(i,o):e(i,n,o)}else oB.call(this,e,i,n,t)}function oB(e,t,n,i){const s=e.name;Qn("setting up ready timeout",s,this._timeout);let o=setTimeout(()=>{Qn("timed out",s),o=null;const a=new eB(s);a.fn=e,this._error=a,i(a)},this._timeout);e.length===2?e(t,l.bind(this)):e(t,n,l.bind(this));function l(a){o&&(clearTimeout(o),this._error=a,i(this._error))}}function lB(e,t){const n=this._server,i=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;i?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Qn("resolving close/onClose promise"),s.then(()=>de.nextTick(t),o=>de.nextTick(t,o))):de.nextTick(t)}else e.length===2?e(i?n:this._error,t):i?e(n,t):e(this._error,n,t)}function aB(e,t){return n.bind(t);function n(i,s){let o;e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===1?(o=e(this),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e(this,s)}}function Co(e,t){return n.bind(t);function n(i,s){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s,i)},s):de.nextTick(s,i)):e.length===1?(o=e(i),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===2?e(i,s):e(i,this,s):de.nextTick(s)}}_l.exports=Ke;_l.exports.express=function(e){return Ke(e,{expose:{use:"load"}})};var rB=_l.exports;const cB=TN(rB);(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(i){const s=n?window.performance.now():new Date().getTime(),o=Math.max(0,16-(s-t)),l=window.setTimeout(function(){i(s+o)},o);return t=s+o,l},window.cancelAnimationFrame=clearTimeout}})();function dB(e,t=!0,n=!0,i={friendsTab:"enabled"}){const s=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",o=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",l=cB(Object.create({}),{autostart:!1});return l.use(mN,{hideFriends:i.hideFriends,skipOnboarding:i.skipOnboarding,betPack:i.betPack,friendsTab:i.friendsTab,theme:i.theme,themeMode:i.themeMode}),l.use(aN,{onDeepLinkHandled:i==null?void 0:i.onDeepLinkHandled}),l.use(uN,{videoPlayerController:i==null?void 0:i.videoPlayerController}),l.use(hN,{onContentActivate:i==null?void 0:i.onContentActivate,withAd:i==null?void 0:i.withAd,withAdNotification:i==null?void 0:i.withAdNotification}),l.use(vG,{sdkKey:e,host:s,analyticsHost:o,version:i==null?void 0:i.version,webOS:i==null?void 0:i.webOS}),l.use(XG),l.use(dN),l.use(SN),l.use(eN),l.use(wN),l.after((a,r,d)=>{if(a)throw a;r.ready(),d()}),n&&l.after(async(a,r,d)=>{if(a)throw a;await r.sdk.initializeApp(),d()}),l.onClose(()=>{console.log("close StreamLayer instance")}),l}const uB=({sdkKey:e,plugins:t,production:n,autoEnable:i,onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,hideFriends:a,skipOnboarding:r,withAdNotification:d,withAd:u,friendsTab:p,betPack:h,webOS:g})=>{const[A,y]=Z.useState(null);return Z.useEffect(()=>{let S=!1;if(!e)return console.error("streamlayer sdk key should be provided"),y(m=>(m!==null&&typeof m.disableApp=="function"&&m.disableApp(),null)),()=>{S=!0};const b=dB(e,n,i,{version:"1.21.3",onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,skipOnboarding:r,withAdNotification:d,withAd:u,hideFriends:a,friendsTab:p,betPack:h,webOS:g});if(t)for(const m of t)b.use(m);return b.ready().then(m=>{S||(y(m.sdk),typeof window<"u")}).catch(m=>console.log(m)),()=>{S=!0,b.close(function(m){if(m)throw m})}},[e,n]),A},ca=({event:e,internal:t})=>{const n=Wi(),i=hB();return Z.useEffect(()=>(n&&(e&&(n.createEventSession(e,t),i&&(i.current=e)),!e&&(i!=null&&i.current)&&(n.createEventSession("",t),i.current="")),()=>{n&&n.disableApp()}),[e,t,i,n]),null};var P3=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(P3||{});const pB={status:0,sdk:null},js=Z.createContext(pB),$3=({sdkKey:e,theme:t,themeMode:n,plugins:i,children:s,event:o,production:l=!0,autoEnable:a=!0,withAdNotification:r,withAd:d=!0,betPack:u=!1,hideFriends:p,skipOnboarding:h,friendsTab:g="enabled",onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:S,containerId:b,webOS:m})=>{const f=uB({sdkKey:e,plugins:i,production:l,autoEnable:a,onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:S,hideFriends:p,skipOnboarding:h,withAdNotification:r,withAd:d,friendsTab:g,betPack:u,webOS:m}),C=Z.useRef(""),v=Z.useMemo(()=>f?{sdk:f,status:2,event:C}:{status:1,sdk:null,event:C},[f]);return Z.useEffect(()=>{f&&(f.options.setKey("friendsTab",g),f.options.setKey("theme",t),f.options.setKey("themeMode",n),f.options.setKey("skipOnboarding",h),f.options.setKey("betPack",u),f.options.setKey("containerId",b))},[f,g,t,n,h,u,b]),Z.useEffect(()=>()=>{A&&(f==null||f.removeDeepLinkHandler(A)),y&&(f==null||f.removeVideoPlayerController(y))},[f]),Z.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!A,videoPlayerController:!!y})},[e,A,y]),c.jsxs(js.Provider,{value:v,children:[o!==void 0&&c.jsx(ca,{event:o}),s]})},Wi=()=>{const{sdk:e}=Z.useContext(js);return e},hB=()=>{const{event:e}=Z.useContext(js);return e},O0=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&kn.emit("interactions",{action:"tap",payload:{}})},mB=()=>{const e=Wi();return Z.useEffect(()=>(document==null||document.addEventListener("click",O0),()=>{document==null||document.removeEventListener("click",O0)}),[]),e?c.jsx(Ld,{sdk:e}):null},gB=({sdkKey:e,plugins:t,children:n,event:i,onDeepLinkHandled:s,videoPlayerController:o,production:l=!0})=>c.jsxs($3,{sdkKey:e,plugins:t,production:l,autoEnable:!0,onDeepLinkHandled:s,videoPlayerController:o,friendsTab:"disabled",skipOnboarding:!0,hideFriends:!0,children:[c.jsx(ca,{event:i}),n]}),bB=({betPack:e,useContainer:t})=>{const{sdk:n,status:i}=Z.useContext(js);return i===P3.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),null):n?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Hl,{style:{height:"100%"},children:c.jsx($I,{sdk:n,betPack:e,useContainer:t})})}):null};class VB extends Z.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n.componentStack)}render(){return this.state.hasError?null:c.jsx(bB,{...this.props})}}const AB=({token:e,schema:t})=>{const n=Wi();return Z.useEffect(()=>{e&&t&&n&&n.authorizationBypass(t,e),n&&(n.withAuth=!0)},[e,t,n]),null},fB=({event:e,sdkKey:t,token:n,deviceId:i,production:s=!1,theme:o,themeMode:l="light",children:a})=>{const[r,d]=Z.useState(!1);return Z.useEffect(()=>{n&&(new n3().setToken(n),d(!0))},[n]),Z.useEffect(()=>{i&&localStorage.setItem("sl-device-id",i)},[i]),r?c.jsxs($3,{sdkKey:t,production:s,theme:o,themeMode:l,betPack:!0,friendsTab:"disabled",hideFriends:!0,skipOnboarding:!0,autoEnable:!0,children:[c.jsx(ca,{event:e,internal:!1}),c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Hl,{children:a})})]}):null},RB=({production:e})=>{const[t,n]=Z.useState();return Z.useEffect(()=>{const{hostname:i,search:s}=window.location,o=new URLSearchParams(s);n({sdkKey:o.get("_slrk")||"",event:o.get("_slre")||"",token:o.get("_slrt")||"",deviceId:o.get("_slrd")||"",theme:o.get("theme")||"",themeMode:o.get("themeMode")==="dark"?"dark":"light",production:e??!(i.includes("next.")||i==="localhost")})},[e]),t?c.jsx(fB,{...t,children:c.jsx(mB,{})}):null},CB=()=>{const e=Wi();return e?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Hl,{children:c.jsx(rF,{sdk:e})})}):null};exports.A=De;exports.B1=ne;exports.BetPackStandalone=RB;exports.C=TS;exports.C$1=bR;exports.I=Ql;exports.InvitationFrom=cs;exports.M=e3;exports.MastersStreamLayerProvider=gB;exports.MastersStreamLayerSDKReact=VB;exports.S=AR;exports.StreamLayerLogin=AB;exports.StreamLayerSDKPoints=CB;exports.T=qd;exports.cx_default=Me;exports.d=fR;exports.f=Yc;exports.k=_d;exports.l=mR;exports.m=hR;exports.n=wl;exports.p=dF;exports.s=Od;exports.styled_default=V;exports.useStore=Ze;exports.useStreamLayer=Wi;exports.useTransition=X5;exports.z=Pd;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as s, jsxs as p, Fragment as y } from "react/jsx-runtime";
|
|
2
2
|
import { A as C, s as r, B as b, f as M, I as D, a as L, b as T, M as E, u as m, T as P, p as R, k as F, z, c as B, l as U, d as O, S as j, m as q, e as H, n as V, g as Q } from "./masters.js";
|
|
3
3
|
import { useCallback as K, useRef as W, useState as S, useEffect as f } from "react";
|
|
4
|
-
import "nanostores";
|
|
5
4
|
import "react-countdown-circle-timer";
|
|
6
5
|
import "react-dom";
|
|
7
6
|
import "react-countup";
|
|
7
|
+
import "nanostores";
|
|
8
8
|
import "lodash.throttle";
|
|
9
9
|
import _ from "react-infinite-scroller";
|
|
10
10
|
const G = (e, t, a) => {
|
package/lib/dist/es/index.js
CHANGED
package/lib/dist/es/masters.js
CHANGED
|
@@ -4,7 +4,7 @@ var R = (e, t, n) => g5(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import { jsx as u, jsxs as I, Fragment as Me } from "react/jsx-runtime";
|
|
5
5
|
import p1 from "lodash.throttle";
|
|
6
6
|
import * as E from "react";
|
|
7
|
-
import
|
|
7
|
+
import We, { useRef as Ae, useState as ee, useEffect as ne, forwardRef as bn, useLayoutEffect as fl, createContext as Wi, useCallback as Ge, useMemo as Pe, memo as rc, useContext as Si, lazy as cc, Suspense as b5, Component as dc, createElement as V5, PureComponent as A5 } from "react";
|
|
8
8
|
import { listenKeys as f5, map as R5, atom as k1, computed as C5, onStart as E5, onMount as Rl, batched as Wa } from "nanostores";
|
|
9
9
|
import { pino as uc } from "pino";
|
|
10
10
|
import { ConnectError as zn, Code as He, createContextKey as h1, createClient as Sa, createContextValues as y5 } from "@connectrpc/connect";
|
|
@@ -81,8 +81,8 @@ function X5(e) {
|
|
|
81
81
|
h[y] = g[y];
|
|
82
82
|
}), d.style = h;
|
|
83
83
|
}
|
|
84
|
-
return e.__wyw_meta && e !== a ? (d.as = a,
|
|
85
|
-
}, s =
|
|
84
|
+
return e.__wyw_meta && e !== a ? (d.as = a, We.createElement(e, d)) : We.createElement(a, d);
|
|
85
|
+
}, s = We.forwardRef ? We.forwardRef(i) : (
|
|
86
86
|
// React.forwardRef won't available on older React versions and in Preact
|
|
87
87
|
// Fallback to a innerRef prop in that case
|
|
88
88
|
(o) => {
|
|
@@ -132,7 +132,7 @@ var gi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
132
132
|
* This source code is licensed under the MIT license found in the
|
|
133
133
|
* LICENSE file in the root directory of this source tree.
|
|
134
134
|
*/
|
|
135
|
-
var Qn =
|
|
135
|
+
var Qn = We;
|
|
136
136
|
function J5(e, t) {
|
|
137
137
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
138
138
|
}
|
|
@@ -174,17 +174,17 @@ const rs = (e, t) => (n) => {
|
|
|
174
174
|
e.current !== n && (e.current = n, t());
|
|
175
175
|
};
|
|
176
176
|
function P5(e, { keys: t, deps: n = [e, t] } = {}) {
|
|
177
|
-
const i =
|
|
177
|
+
const i = We.useRef();
|
|
178
178
|
i.current = e.get();
|
|
179
|
-
const s =
|
|
180
|
-
return
|
|
179
|
+
const s = We.useCallback((l) => (rs(i, l)(e.value), (t == null ? void 0 : t.length) > 0 ? f5(e, t, rs(i, l)) : e.listen(rs(i, l))), n), o = () => i.current;
|
|
180
|
+
return We.useSyncExternalStore ? We.useSyncExternalStore(s, o, o) : _5.useSyncExternalStore(s, o, o);
|
|
181
181
|
}
|
|
182
182
|
const Ie = P5, j5 = () => [
|
|
183
183
|
!1,
|
|
184
184
|
(e) => {
|
|
185
185
|
window.requestAnimationFrame(() => e());
|
|
186
186
|
}
|
|
187
|
-
], _B =
|
|
187
|
+
], _B = We.useTransition || j5, Vc = {
|
|
188
188
|
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
189
189
|
WHITE: "#FFFFFF",
|
|
190
190
|
BLUE: "#2d6ffd",
|
|
@@ -4305,15 +4305,15 @@ function CA() {
|
|
|
4305
4305
|
if (K && (x.style.transform = "none"), D && (x.style.webkitTransform = "none"), n.roundLengths)
|
|
4306
4306
|
J = e.isHorizontal() ? Do(x, "width") : Do(x, "height");
|
|
4307
4307
|
else {
|
|
4308
|
-
const O = t(H, "width"), $ = t(H, "padding-left"), me = t(H, "padding-right"),
|
|
4308
|
+
const O = t(H, "width"), $ = t(H, "padding-left"), me = t(H, "padding-right"), Se = t(H, "margin-left"), le = t(H, "margin-right"), _ = H.getPropertyValue("box-sizing");
|
|
4309
4309
|
if (_ && _ === "border-box")
|
|
4310
|
-
J = O +
|
|
4310
|
+
J = O + Se + le;
|
|
4311
4311
|
else {
|
|
4312
4312
|
const {
|
|
4313
4313
|
clientWidth: fe,
|
|
4314
4314
|
offsetWidth: v
|
|
4315
4315
|
} = x;
|
|
4316
|
-
J = O + $ + me +
|
|
4316
|
+
J = O + $ + me + Se + le + (v - fe);
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
4319
|
K && (x.style.transform = K), D && (x.style.webkitTransform = D), n.roundLengths && (J = Math.floor(J));
|
|
@@ -5054,8 +5054,8 @@ function PA(e) {
|
|
|
5054
5054
|
const $ = O - Math.floor(O / Y) * Y;
|
|
5055
5055
|
if (C) {
|
|
5056
5056
|
const me = Y - $ - 1;
|
|
5057
|
-
for (let
|
|
5058
|
-
d[
|
|
5057
|
+
for (let Se = d.length - 1; Se >= 0; Se -= 1)
|
|
5058
|
+
d[Se].column === me && S.push(Se);
|
|
5059
5059
|
} else
|
|
5060
5060
|
S.push(Y - $ - 1);
|
|
5061
5061
|
}
|
|
@@ -5063,8 +5063,8 @@ function PA(e) {
|
|
|
5063
5063
|
K = Math.max(D - (Y - f * 2), m), J && (K = Math.max(K, b - Y + Z + 1));
|
|
5064
5064
|
for (let O = 0; O < K; O += 1) {
|
|
5065
5065
|
const $ = O - Math.floor(O / Y) * Y;
|
|
5066
|
-
C ? d.forEach((me,
|
|
5067
|
-
me.column === $ && F.push(
|
|
5066
|
+
C ? d.forEach((me, Se) => {
|
|
5067
|
+
me.column === $ && F.push(Se);
|
|
5068
5068
|
}) : F.push($);
|
|
5069
5069
|
}
|
|
5070
5070
|
}
|
|
@@ -6329,7 +6329,7 @@ function Yd(e) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
function Bd(e) {
|
|
6331
6331
|
const t = [];
|
|
6332
|
-
return
|
|
6332
|
+
return We.Children.toArray(e).forEach((n) => {
|
|
6333
6333
|
Yd(n) ? t.push(n) : n.props && n.props.children && Bd(n.props.children).forEach((i) => t.push(i));
|
|
6334
6334
|
}), t;
|
|
6335
6335
|
}
|
|
@@ -6340,7 +6340,7 @@ function Gf(e) {
|
|
|
6340
6340
|
"wrapper-start": [],
|
|
6341
6341
|
"wrapper-end": []
|
|
6342
6342
|
};
|
|
6343
|
-
return
|
|
6343
|
+
return We.Children.toArray(e).forEach((i) => {
|
|
6344
6344
|
if (Yd(i))
|
|
6345
6345
|
t.push(i);
|
|
6346
6346
|
else if (i.props && i.props.slot && n[i.props.slot])
|
|
@@ -6370,7 +6370,7 @@ function Nf(e, t, n) {
|
|
|
6370
6370
|
} = n, a = e.params.loop ? -t.length : 0, r = e.params.loop ? t.length * 2 : t.length, c = [];
|
|
6371
6371
|
for (let d = a; d < r; d += 1)
|
|
6372
6372
|
d >= o && d <= l && c.push(t[i(d)]);
|
|
6373
|
-
return c.map((d, p) => /* @__PURE__ */
|
|
6373
|
+
return c.map((d, p) => /* @__PURE__ */ We.cloneElement(d, {
|
|
6374
6374
|
swiper: e,
|
|
6375
6375
|
style: s,
|
|
6376
6376
|
key: d.props.virtualIndex || d.key || `slide-${p}`
|
|
@@ -6464,29 +6464,29 @@ const Dr = /* @__PURE__ */ Wi(null), Xf = /* @__PURE__ */ Wi(null), Ud = /* @__P
|
|
|
6464
6464
|
}), Ai(() => {
|
|
6465
6465
|
Ff(b.current);
|
|
6466
6466
|
}, [p]);
|
|
6467
|
-
function
|
|
6468
|
-
return J.virtual ? Nf(b.current, H, p) : H.map((le, _) => /* @__PURE__ */
|
|
6467
|
+
function Se() {
|
|
6468
|
+
return J.virtual ? Nf(b.current, H, p) : H.map((le, _) => /* @__PURE__ */ We.cloneElement(le, {
|
|
6469
6469
|
swiper: b.current,
|
|
6470
6470
|
swiperSlideIndex: _
|
|
6471
6471
|
}));
|
|
6472
6472
|
}
|
|
6473
|
-
return /* @__PURE__ */
|
|
6473
|
+
return /* @__PURE__ */ We.createElement(i, v1({
|
|
6474
6474
|
ref: Z,
|
|
6475
6475
|
className: Xd(`${c}${n ? ` ${n}` : ""}`)
|
|
6476
|
-
}, B), /* @__PURE__ */
|
|
6476
|
+
}, B), /* @__PURE__ */ We.createElement(Xf.Provider, {
|
|
6477
6477
|
value: b.current
|
|
6478
|
-
}, K["container-start"], /* @__PURE__ */
|
|
6478
|
+
}, K["container-start"], /* @__PURE__ */ We.createElement(s, {
|
|
6479
6479
|
className: Zf(J.wrapperClass)
|
|
6480
|
-
}, K["wrapper-start"],
|
|
6480
|
+
}, K["wrapper-start"], Se(), K["wrapper-end"]), Fd(J) && /* @__PURE__ */ We.createElement(We.Fragment, null, /* @__PURE__ */ We.createElement("div", {
|
|
6481
6481
|
ref: S,
|
|
6482
6482
|
className: "swiper-button-prev"
|
|
6483
|
-
}), /* @__PURE__ */
|
|
6483
|
+
}), /* @__PURE__ */ We.createElement("div", {
|
|
6484
6484
|
ref: C,
|
|
6485
6485
|
className: "swiper-button-next"
|
|
6486
|
-
})), Nd(J) && /* @__PURE__ */
|
|
6486
|
+
})), Nd(J) && /* @__PURE__ */ We.createElement("div", {
|
|
6487
6487
|
ref: Y,
|
|
6488
6488
|
className: "swiper-scrollbar"
|
|
6489
|
-
}), Gd(J) && /* @__PURE__ */
|
|
6489
|
+
}), Gd(J) && /* @__PURE__ */ We.createElement("div", {
|
|
6490
6490
|
ref: F,
|
|
6491
6491
|
className: "swiper-pagination"
|
|
6492
6492
|
}), K["container-end"]));
|
|
@@ -6529,21 +6529,21 @@ const n1 = /* @__PURE__ */ bn(function(e, t) {
|
|
|
6529
6529
|
}, m = () => typeof i == "function" ? i(b) : i, f = () => {
|
|
6530
6530
|
y(!0);
|
|
6531
6531
|
};
|
|
6532
|
-
return /* @__PURE__ */
|
|
6532
|
+
return /* @__PURE__ */ We.createElement(n, v1({
|
|
6533
6533
|
ref: p,
|
|
6534
6534
|
className: Xd(`${h}${s ? ` ${s}` : ""}`),
|
|
6535
6535
|
"data-swiper-slide-index": r,
|
|
6536
6536
|
onLoad: f
|
|
6537
|
-
}, d), l && /* @__PURE__ */
|
|
6537
|
+
}, d), l && /* @__PURE__ */ We.createElement(Dr.Provider, {
|
|
6538
6538
|
value: b
|
|
6539
|
-
}, /* @__PURE__ */
|
|
6539
|
+
}, /* @__PURE__ */ We.createElement("div", {
|
|
6540
6540
|
className: "swiper-zoom-container",
|
|
6541
6541
|
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
6542
|
-
}, m(), a && !A && /* @__PURE__ */
|
|
6542
|
+
}, m(), a && !A && /* @__PURE__ */ We.createElement("div", {
|
|
6543
6543
|
className: "swiper-lazy-preloader"
|
|
6544
|
-
}))), !l && /* @__PURE__ */
|
|
6544
|
+
}))), !l && /* @__PURE__ */ We.createElement(Dr.Provider, {
|
|
6545
6545
|
value: b
|
|
6546
|
-
}, m(), a && !A && /* @__PURE__ */
|
|
6546
|
+
}, m(), a && !A && /* @__PURE__ */ We.createElement("div", {
|
|
6547
6547
|
className: "swiper-lazy-preloader"
|
|
6548
6548
|
})));
|
|
6549
6549
|
});
|
|
@@ -7550,7 +7550,7 @@ function HC() {
|
|
|
7550
7550
|
}
|
|
7551
7551
|
(function(e, t) {
|
|
7552
7552
|
(function(n, i) {
|
|
7553
|
-
e.exports = i(_d, SC(), NC(), YC(), UC(), wC(), TC(), Kb, MC(), KC(), HC(),
|
|
7553
|
+
e.exports = i(_d, SC(), NC(), YC(), UC(), wC(), TC(), Kb, MC(), KC(), HC(), We);
|
|
7554
7554
|
})(gi, function(n, i, s, o, l, a, r, c, d, p, h, g) {
|
|
7555
7555
|
return function() {
|
|
7556
7556
|
var A = { 654: function(Z, b, m) {
|
|
@@ -7583,7 +7583,7 @@ function HC() {
|
|
|
7583
7583
|
return T && T.__esModule ? T : { default: T };
|
|
7584
7584
|
};
|
|
7585
7585
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.updateRtl = b.doesFocusableExist = b.getCurrentFocusKey = b.updateAllLayouts = b.resume = b.pause = b.navigateByDirection = b.setFocus = b.setKeyMap = b.destroy = b.setThrottle = b.init = b.SpatialNavigation = b.ROOT_FOCUS_KEY = void 0;
|
|
7586
|
-
var B = N(m(150)), x = N(m(117)), H = N(m(747)), K = N(m(23)), D = N(m(842)), O = N(m(682)), $ = N(m(784)), me = N(m(432)),
|
|
7586
|
+
var B = N(m(150)), x = N(m(117)), H = N(m(747)), K = N(m(23)), D = N(m(842)), O = N(m(682)), $ = N(m(784)), me = N(m(432)), Se = N(m(67)), le = N(m(35)), _ = N(m(119)), fe = Y(m(964)), v = "left", w = "right", z = "up", M = "down", ie = "enter", oe = ((f = {}).left = [37, "ArrowLeft"], f.up = [38, "ArrowUp"], f.right = [39, "ArrowRight"], f.down = [40, "ArrowDown"], f.enter = [13, "Enter"], f);
|
|
7587
7587
|
b.ROOT_FOCUS_KEY = "SN:ROOT";
|
|
7588
7588
|
var te = ["#0FF", "#FF0", "#F0F"], de = { leading: !0, trailing: !1 }, ge = function() {
|
|
7589
7589
|
function T() {
|
|
@@ -7681,7 +7681,7 @@ function HC() {
|
|
|
7681
7681
|
}
|
|
7682
7682
|
}
|
|
7683
7683
|
}
|
|
7684
|
-
}, this.throttle && (this.keyDownEventListenerThrottled = (0,
|
|
7684
|
+
}, this.throttle && (this.keyDownEventListenerThrottled = (0, Se.default)(this.keyDownEventListener.bind(this), this.throttle, de)), this.keyUpEventListener = function(G) {
|
|
7685
7685
|
var U = T.getKeyCode(G), L = W.getEventType(U);
|
|
7686
7686
|
delete W.pressedKeys[L], W.throttle && !W.throttleKeypresses && W.keyDownEventListenerThrottled.cancel(), L === ie && W.focusKey && W.onEnterRelease(), !W.focusKey || L !== v && L !== w && L !== z && L !== M || W.onArrowRelease(L);
|
|
7687
7687
|
}, window.addEventListener("keyup", this.keyUpEventListener), window.addEventListener("keydown", this.throttle ? this.keyDownEventListenerThrottled : this.keyDownEventListener));
|
|
@@ -7987,7 +7987,7 @@ function HC() {
|
|
|
7987
7987
|
Object.defineProperty(b, "__esModule", { value: !0 }), b.useFocusable = void 0;
|
|
7988
7988
|
var C = m(156), S = f(m(604)), F = f(m(461)), Y = m(654), J = m(445);
|
|
7989
7989
|
b.useFocusable = function(N) {
|
|
7990
|
-
var B = N === void 0 ? {} : N, x = B.focusable, H = x === void 0 || x, K = B.saveLastFocusedChild, D = K === void 0 || K, O = B.trackChildren, $ = O !== void 0 && O, me = B.autoRestoreFocus,
|
|
7990
|
+
var B = N === void 0 ? {} : N, x = B.focusable, H = x === void 0 || x, K = B.saveLastFocusedChild, D = K === void 0 || K, O = B.trackChildren, $ = O !== void 0 && O, me = B.autoRestoreFocus, Se = me === void 0 || me, le = B.forceFocus, _ = le !== void 0 && le, fe = B.isFocusBoundary, v = fe !== void 0 && fe, w = B.focusBoundaryDirections, z = B.focusKey, M = B.preferredChildFocusKey, ie = B.onEnterPress, oe = ie === void 0 ? S.default : ie, te = B.onEnterRelease, de = te === void 0 ? S.default : te, ge = B.onArrowPress, T = ge === void 0 ? function() {
|
|
7991
7991
|
return !0;
|
|
7992
7992
|
} : ge, W = B.onArrowRelease, G = W === void 0 ? S.default : W, U = B.onFocus, L = U === void 0 ? S.default : U, P = B.onBlur, j = P === void 0 ? S.default : P, q = B.extraProps, X = (0, C.useCallback)(function(Qe) {
|
|
7993
7993
|
oe(q, Qe);
|
|
@@ -8012,7 +8012,7 @@ function HC() {
|
|
|
8012
8012
|
return it === void 0 && (it = !1), tt(it);
|
|
8013
8013
|
}, onUpdateHasFocusedChild: function(it) {
|
|
8014
8014
|
return it === void 0 && (it = !1), jt(it);
|
|
8015
|
-
}, saveLastFocusedChild: D, trackChildren: $, isFocusBoundary: v, focusBoundaryDirections: w, autoRestoreFocus:
|
|
8015
|
+
}, saveLastFocusedChild: D, trackChildren: $, isFocusBoundary: v, focusBoundaryDirections: w, autoRestoreFocus: Se, forceFocus: _, focusable: H }), function() {
|
|
8016
8016
|
Y.SpatialNavigation.removeFocusable({ focusKey: ht });
|
|
8017
8017
|
};
|
|
8018
8018
|
}, []), (0, C.useEffect)(function() {
|
|
@@ -8395,7 +8395,7 @@ const H1 = ({ value: e = 0, decimals: t, duration: n = 1, preserveValue: i = !0,
|
|
|
8395
8395
|
webos: l
|
|
8396
8396
|
}) => {
|
|
8397
8397
|
var a, r;
|
|
8398
|
-
const c = e.subject, d = e.type, p = e.status, h = (a = e.options) == null ? void 0 : a.options, g = e.marketClosed, A = e.id, y = Ae(), Z = Ae(), b = o ? !1 : (e == null ? void 0 : e.adUnit) === mt.STANDART, [m, f] = ee(!1), [C, S] = ee(!1), [F, Y] = ee(!0), [J, N] = ee(!1), [B, x] = ee(!1), [H, K] = ee(""), [D, O] = ee(""), [$, me] = ee(!1), [
|
|
8398
|
+
const c = e.subject, d = e.type, p = e.status, h = (a = e.options) == null ? void 0 : a.options, g = e.marketClosed, A = e.id, y = Ae(), Z = Ae(), b = o ? !1 : (e == null ? void 0 : e.adUnit) === mt.STANDART, [m, f] = ee(!1), [C, S] = ee(!1), [F, Y] = ee(!0), [J, N] = ee(!1), [B, x] = ee(!1), [H, K] = ee(""), [D, O] = ee(""), [$, me] = ee(!1), [Se, le] = ee(!1), [_, fe] = ee(!1), { runAnimation: v, finished: w } = Jd();
|
|
8399
8399
|
ne(() => {
|
|
8400
8400
|
w && i(A);
|
|
8401
8401
|
}, [i, w]), ne(() => {
|
|
@@ -8434,7 +8434,7 @@ const H1 = ({ value: e = 0, decimals: t, duration: n = 1, preserveValue: i = !0,
|
|
|
8434
8434
|
[e]
|
|
8435
8435
|
);
|
|
8436
8436
|
ne(() => {
|
|
8437
|
-
T && m && !
|
|
8437
|
+
T && m && !Se && (y.current = setTimeout(ge, 1e4), le(!0));
|
|
8438
8438
|
}, [T]), ne(() => () => {
|
|
8439
8439
|
clearTimeout(y.current), clearTimeout(Z.current);
|
|
8440
8440
|
}, []);
|
|
@@ -9445,7 +9445,7 @@ const nZ = $l(Ny), iZ = ({ loading: e, autoPlay: t, played: n, playing: i, isMut
|
|
|
9445
9445
|
webos: y,
|
|
9446
9446
|
hasNotPausedVideo: Z
|
|
9447
9447
|
}, b) => {
|
|
9448
|
-
const m = Ae(null), f = tZ(m, b), C = Ae(!1), S = Ae(!1), F = Ae(/* @__PURE__ */ new Set()), [Y, J] = ee(!1), [N, B] = ee(!1), [x, H] = ee(!1), [K, D] = ee(!0), [O, $] = ee(h), [me,
|
|
9448
|
+
const m = Ae(null), f = tZ(m, b), C = Ae(!1), S = Ae(!1), F = Ae(/* @__PURE__ */ new Set()), [Y, J] = ee(!1), [N, B] = ee(!1), [x, H] = ee(!1), [K, D] = ee(!0), [O, $] = ee(h), [me, Se] = ee(!1);
|
|
9449
9449
|
ne(() => {
|
|
9450
9450
|
t && ($(h), J(!1));
|
|
9451
9451
|
}, [t]);
|
|
@@ -9456,7 +9456,7 @@ const nZ = $l(Ny), iZ = ({ loading: e, autoPlay: t, played: n, playing: i, isMut
|
|
|
9456
9456
|
}, [i]), fe = Ge((M) => {
|
|
9457
9457
|
M == null || M.stopPropagation(), m.current && (m.current.muted = !0), $(!0);
|
|
9458
9458
|
}, []), v = Ge((M) => {
|
|
9459
|
-
M == null || M.stopPropagation(), m.current && (m.current.muted = !1), $(!1), me ||
|
|
9459
|
+
M == null || M.stopPropagation(), m.current && (m.current.muted = !1), $(!1), me || Se(!0);
|
|
9460
9460
|
}, []);
|
|
9461
9461
|
ne(() => {
|
|
9462
9462
|
A !== void 0 && (A ? fe() : v());
|
|
@@ -15130,7 +15130,7 @@ class kN extends W3 {
|
|
|
15130
15130
|
* skipping questions with inAppSilence === ON
|
|
15131
15131
|
*/
|
|
15132
15132
|
R(this, "showInApp", (n) => {
|
|
15133
|
-
var o, l, a, r, c, d, p, h, g, A, y, Z, b, m, f, C, S, F, Y, J, N, B, x, H, K, D, O, $, me,
|
|
15133
|
+
var o, l, a, r, c, d, p, h, g, A, y, Z, b, m, f, C, S, F, Y, J, N, B, x, H, K, D, O, $, me, Se, le;
|
|
15134
15134
|
const i = this.onboardingStatus.$store.get(), s = ((l = (o = n == null ? void 0 : n.data) == null ? void 0 : o.question) == null ? void 0 : l.adUnit) === mt.STANDART;
|
|
15135
15135
|
if (n && n.data && (s || i && i !== Je.Unset) && ((a = n.data.question) == null ? void 0 : a.id) !== void 0 && ((c = (r = n.data.question) == null ? void 0 : r.bypassNotifications) == null ? void 0 : c.inAppSilence) !== s4.ON && n.data.question.status === Te.ACTIVE && !n.data.question.marketClosed) {
|
|
15136
15136
|
if (T0.has(n.data.question.type))
|
|
@@ -15226,7 +15226,7 @@ class kN extends W3 {
|
|
|
15226
15226
|
body: (O = n.data.question.notification) == null ? void 0 : O.body,
|
|
15227
15227
|
image: ($ = n.data.question.notification) == null ? void 0 : $.image,
|
|
15228
15228
|
account: ((me = _ == null ? void 0 : _.tweetMeta) == null ? void 0 : me.account) || "",
|
|
15229
|
-
accountVerified: !!((
|
|
15229
|
+
accountVerified: !!((Se = _ == null ? void 0 : _.tweetMeta) != null && Se.accountVerified),
|
|
15230
15230
|
tweet: (le = _ == null ? void 0 : _.tweetMeta) == null ? void 0 : le.tweet,
|
|
15231
15231
|
tweetId: n.data.question.id,
|
|
15232
15232
|
tweetMedia: fe
|
|
@@ -17146,12 +17146,12 @@ var MY = function(e) {
|
|
|
17146
17146
|
return typeof WeakMap > "u" ? !1 : $.working ? $(X) : X instanceof WeakMap;
|
|
17147
17147
|
}
|
|
17148
17148
|
e.isWeakMap = me;
|
|
17149
|
-
function
|
|
17149
|
+
function Se(X) {
|
|
17150
17150
|
return r(X) === "[object WeakSet]";
|
|
17151
17151
|
}
|
|
17152
|
-
|
|
17152
|
+
Se.working = typeof WeakSet < "u" && Se(/* @__PURE__ */ new WeakSet());
|
|
17153
17153
|
function le(X) {
|
|
17154
|
-
return
|
|
17154
|
+
return Se(X);
|
|
17155
17155
|
}
|
|
17156
17156
|
e.isWeakSet = le;
|
|
17157
17157
|
function _(X) {
|
|
@@ -17427,7 +17427,7 @@ var PY = bl.exports;
|
|
|
17427
17427
|
}
|
|
17428
17428
|
function g(v, w, z, M, ie) {
|
|
17429
17429
|
for (var oe = [], te = 0, de = w.length; te < de; ++te)
|
|
17430
|
-
|
|
17430
|
+
Se(w, String(te)) ? oe.push(A(
|
|
17431
17431
|
v,
|
|
17432
17432
|
w,
|
|
17433
17433
|
z,
|
|
@@ -17448,7 +17448,7 @@ var PY = bl.exports;
|
|
|
17448
17448
|
}
|
|
17449
17449
|
function A(v, w, z, M, ie, oe) {
|
|
17450
17450
|
var te, de, ge;
|
|
17451
|
-
if (ge = Object.getOwnPropertyDescriptor(w, ie) || { value: w[ie] }, ge.get ? ge.set ? de = v.stylize("[Getter/Setter]", "special") : de = v.stylize("[Getter]", "special") : ge.set && (de = v.stylize("[Setter]", "special")),
|
|
17451
|
+
if (ge = Object.getOwnPropertyDescriptor(w, ie) || { value: w[ie] }, ge.get ? ge.set ? de = v.stylize("[Getter/Setter]", "special") : de = v.stylize("[Getter]", "special") : ge.set && (de = v.stylize("[Setter]", "special")), Se(M, ie) || (te = "[" + ie + "]"), de || (v.seen.indexOf(ge.value) < 0 ? (m(z) ? de = d(v, ge.value, null) : de = d(v, ge.value, z - 1), de.indexOf(`
|
|
17452
17452
|
`) > -1 && (oe ? de = de.split(`
|
|
17453
17453
|
`).map(function(T) {
|
|
17454
17454
|
return " " + T;
|
|
@@ -17568,7 +17568,7 @@ var PY = bl.exports;
|
|
|
17568
17568
|
v[z[M]] = w[z[M]];
|
|
17569
17569
|
return v;
|
|
17570
17570
|
};
|
|
17571
|
-
function
|
|
17571
|
+
function Se(v, w) {
|
|
17572
17572
|
return Object.prototype.hasOwnProperty.call(v, w);
|
|
17573
17573
|
}
|
|
17574
17574
|
var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
@@ -18482,7 +18482,7 @@ const FB = ({
|
|
|
18482
18482
|
Z = !0;
|
|
18483
18483
|
};
|
|
18484
18484
|
const b = IB(e, n, i, {
|
|
18485
|
-
version: "1.21.
|
|
18485
|
+
version: "1.21.3",
|
|
18486
18486
|
onDeepLinkHandled: s,
|
|
18487
18487
|
videoPlayerController: o,
|
|
18488
18488
|
onContentActivate: l,
|
package/lib/es/advertisement.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Y, jsxs as pe, Fragment as to } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as It, useState as Lo, useRef as wi, useCallback as nn } from "react";
|
|
3
|
-
import "nanostores";
|
|
4
3
|
import { n as ai, s as J, e as Ht, O as Fr, B as gm, q as fm, k as mm, f as bs, y as io, E as ym, r as _m, t as bm, u as Tm, c as vm, d as Sm, a as Ni, h as Em } from "./provider.js";
|
|
4
|
+
import "nanostores";
|
|
5
5
|
import "lodash.throttle";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "react-countup";
|
package/lib/es/insight.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as u, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as l, useEffect as h } from "react";
|
|
3
|
-
import "nanostores";
|
|
4
3
|
import { f as m, s as f, T as S, u as I, d as g, h as v, a as k } from "./provider.js";
|
|
4
|
+
import "nanostores";
|
|
5
5
|
import "lodash.throttle";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "react-countup";
|
package/lib/es/notification.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as w, useRef as _, useEffect as y, useCallback as As, useMemo as hs } from "react";
|
|
3
|
-
import "nanostores";
|
|
4
3
|
import { s as n, B as A, $ as Is, a0 as $s, a1 as K, R as G, a2 as gs, E as ws, O as x, y as ys, i as Ts, f as bs, e as Cs, N as R, u as fs, d as ks, c as Ns, h as qs } from "./provider.js";
|
|
4
|
+
import "nanostores";
|
|
5
5
|
import "lodash.throttle";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "react-countup";
|
package/lib/es/points.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as d } from "react";
|
|
3
|
-
import "nanostores";
|
|
4
3
|
import { s as a, B as y, m as h, i as S, f, F as c, e as r, u as v, d as g, h as k } from "./provider.js";
|
|
4
|
+
import "nanostores";
|
|
5
5
|
import "lodash.throttle";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "react-countup";
|