@streamlayer/react 0.26.0 → 0.26.2
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-5daf0c14.cjs → app-3b0713d0.cjs} +1 -1
- package/lib/{app-4f52ea4a.js → app-3bc05c48.js} +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/es/auth.js +2 -2
- package/lib/es/index.js +2 -2
- package/lib/es/masters.js +102 -123
- package/lib/es/points.js +4 -4
- package/lib/{index-7542e06a.cjs → index-0f70e34a.cjs} +4 -4
- package/lib/{index-98996b43.js → index-5a223768.js} +926 -871
- package/lib/style.css +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),i=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),i=require("react"),e=require("./index-0f70e34a.cjs");require("react-auth-code-input");require("react-phone-number-input");require("@connectrpc/connect");require("@connectrpc/connect-web");require("@streamlayer/sl-eslib/users/users_connect");require("react-countdown-circle-timer");require("@streamlayer/sdk-web-types");require("@streamlayer/sdk-web-interfaces");require("@streamlayer/sdk-web-features");require("@streamlayer/sdk-web-api");require("@streamlayer/sdk-web-storage");require("@nanostores/react");require("@streamlayer/sdk-web-notifications");const s=()=>{const{sdk:t}=i.useContext(e.StreamLayerContext);return t},u=()=>{const{sdk:t,status:a}=i.useContext(e.StreamLayerContext);if(a===e.StreamLayerStatus.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return a===e.StreamLayerStatus.CONNECTED?r.jsx("div",{className:"StreamLayerSDK",children:"wait"}):t===null?r.jsx("div",{className:"StreamLayerSDK",children:"sdk not initialized"}):r.jsx("div",{className:"StreamLayerSDK",children:r.jsx(e.p,{children:r.jsx(e.Sr,{sdk:t})})})};exports.StreamLayerSDKReact=u;exports.useStreamLayer=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as i } from "react";
|
|
3
|
-
import { a as m, b as a, p as o,
|
|
3
|
+
import { a as m, b as a, p as o, c as s } from "./index-5a223768.js";
|
|
4
4
|
import "react-auth-code-input";
|
|
5
5
|
import "react-phone-number-input";
|
|
6
6
|
import "@connectrpc/connect";
|
package/lib/cjs/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),q=require("../app-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),q=require("../app-3b0713d0.cjs");require("react/jsx-runtime");require("../index-0f70e34a.cjs");require("./useStreamLayerApp.js");require("@streamlayer/sdk-web");require("@streamlayer/sdk-web-interfaces");require("@streamlayer/sdk-web-types");require("@streamlayer/sdk-web-features");require("@streamlayer/sdk-web-api");require("@streamlayer/sdk-web-storage");require("@nanostores/react");require("@streamlayer/sdk-web-notifications");require("react-countdown-circle-timer");require("@streamlayer/sl-eslib/interactive/interactive.common_pb");require("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb");require("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb");require("@streamlayer/sl-eslib/sports/events/events_connect");require("@streamlayer/sl-eslib/sdkSettings/client/client_connect");require("@streamlayer/sl-eslib/users/users_connect");require("react-auth-code-input");require("react-phone-number-input");require("@connectrpc/connect");require("@connectrpc/connect-web");const t=({token:e,schema:r})=>{const i=q.useStreamLayer();return u.useEffect(()=>{e&&r&&i&&i.authorizationBypass(r,e)},[e,r,i]),null};exports.StreamLayerLogin=t;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@streamlayer/sdk-web-api");require("@streamlayer/sdk-web-core");require("@streamlayer/sdk-web-types");require("@streamlayer/sdk-web-logger");require("@streamlayer/sdk-web-storage");require("@streamlayer/sdk-web-features");require("@streamlayer/sdk-web-interfaces");require("@streamlayer/sdk-web-notifications");require("@streamlayer/feature-gamification");const r=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@streamlayer/sdk-web-api");require("@streamlayer/sdk-web-core");require("@streamlayer/sdk-web-types");require("@streamlayer/sdk-web-logger");require("@streamlayer/sdk-web-storage");require("@streamlayer/sdk-web-features");require("@streamlayer/sdk-web-interfaces");require("@streamlayer/sdk-web-notifications");require("@streamlayer/feature-gamification");const r=require("../index-0f70e34a.cjs"),e=require("../app-3b0713d0.cjs");require("react/jsx-runtime");require("react");require("./useStreamLayerApp.js");require("@streamlayer/sdk-web");require("@nanostores/react");require("react-countdown-circle-timer");require("@streamlayer/sl-eslib/interactive/interactive.common_pb");require("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb");require("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb");require("@streamlayer/sl-eslib/sports/events/events_connect");require("@streamlayer/sl-eslib/sdkSettings/client/client_connect");require("@streamlayer/sl-eslib/users/users_connect");require("react-auth-code-input");require("react-phone-number-input");require("@connectrpc/connect");require("@connectrpc/connect-web");exports.StreamLayerProvider=r.StreamLayerProvider;exports.StreamLayerSDKReact=e.StreamLayerSDKReact;exports.useStreamLayer=e.useStreamLayer;
|
package/lib/cjs/masters.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),n=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),n=require("../index-0f70e34a.cjs");require("react-auth-code-input");require("react-phone-number-input");require("@connectrpc/connect");require("@connectrpc/connect-web");require("@streamlayer/sl-eslib/users/users_connect");require("react-countdown-circle-timer");const y=require("@streamlayer/sdk-web-types"),x=require("@streamlayer/sdk-web-interfaces");require("@streamlayer/sdk-web-features");require("@streamlayer/sdk-web-api");require("@streamlayer/sdk-web-storage");const u=require("@nanostores/react");require("@streamlayer/sdk-web-notifications");require("./useStreamLayerApp.js");require("@streamlayer/sdk-web");require("@streamlayer/sl-eslib/interactive/interactive.common_pb");require("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb");require("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb");require("@streamlayer/sl-eslib/sports/events/events_connect");require("@streamlayer/sl-eslib/sdkSettings/client/client_connect");const g=({feature:e,sdk:t,children:a,className:r})=>{const o=u.useStore(e.status),{slStreamId:l}=u.useStore(t.sdkStore);return l!=null&&l.loading?s.jsx("div",{className:r,children:"event is loading..."}):l!=null&&l.data?o!==x.FeatureStatus.Ready?s.jsx("div",{className:r,children:"wait feature..."}):a:s.jsx("div",{className:r,children:"event is forbidden..."})};const S=n.styled_default("div")({name:"n",class:"n1aopxp8",propsAsIs:!1}),b=({children:e,style:t,className:a})=>s.jsx(S,{style:t,className:a,children:e});const k=()=>n.q,_=()=>n.q,q=n.styled_default("div")({name:"a",class:"acysrl1",propsAsIs:!1}),A=n.styled_default("div")({name:"l",class:"lo57cjm",propsAsIs:!1}),N=n.styled_default(k())({name:"p",class:"p14kwh4y",propsAsIs:!0}),I=n.styled_default("span")({name:"s",class:"sxun7sq",propsAsIs:!1}),$=n.styled_default("button")({name:"c",class:"c1i8ida8",propsAsIs:!1}),F=n.styled_default(_())({name:"g",class:"g1m0xfmw",propsAsIs:!0}),L=({type:e,close:t})=>{const a=n.o[e];return s.jsxs(q,{children:[s.jsxs(A,{children:[(a==null?void 0:a.iconName)&&s.jsx(N,{name:a.iconName}),(a==null?void 0:a.label)&&s.jsx(I,{children:a.label})]}),s.jsx($,{onClick:t,children:s.jsx(F,{name:"icon-cross"})})]})};const E=n.styled_default("div")({name:"r",class:"ruyb9yw",propsAsIs:!1}),C=n.styled_default("img")({name:"i",class:"imbcgl0",propsAsIs:!1}),O=({sponsorLogo:e})=>e&&s.jsx(E,{children:s.jsx(C,{alt:"sponsor-logo",src:e})});const Q=n.styled_default("div")({name:"x",class:"xk8r1eq",propsAsIs:!1}),R=({openedQuestion:e,closeQuestion:t,vote:a})=>{var r;return s.jsxs(Q,{children:[s.jsx(L,{close:t,type:(e==null?void 0:e.type)||y.QuestionType.UNSET}),e&&s.jsx(n.Y,{vote:a,openedQuestion:e}),s.jsx(O,{sponsorLogo:(r=e==null?void 0:e.sponsorship)==null?void 0:r.logo})]})},M=({leaderboardList:e})=>{const{data:t}=u.useStore(e.$store),[a,r]=i.useState(void 0),o=l=>{const c=t.find(d=>d.userId===l);r(c)};return s.jsxs(s.Fragment,{children:[a&&s.jsx(n.f$1,{comeBack:()=>o(null),...a}),!a&&s.jsx(n.j,{fetchMore:e.fetchMore,items:t,openItemDetail:o})]})},w=({store:e,openQuestion:t})=>{const a=u.useStore(e);return a!=null&&a.data?s.jsx(n.u,{openQuestion:t,questions:a.data}):s.jsx("div",{children:"wait questions..."})},G=({store:e})=>{const{data:t}=u.useStore(e);return t!=null&&t.summary?s.jsx(n.v,{...t.summary,...t.percentage}):s.jsx("div",{children:"wait user..."})},T=({gamification:e})=>{const[t,a]=i.useState(n.h.HOME);return s.jsxs(s.Fragment,{children:[s.jsxs(n.e,{children:[s.jsx(n.p$1,{activePage:t,toggleActivePage:a}),t===n.h.HOME&&s.jsx(G,{store:e.userSummary.getStore()})]}),t===n.h.HOME&&s.jsx(n.a$1,{children:s.jsx(w,{openQuestion:e.openQuestion,store:e.questions.getStore()})}),t===n.h.LEADERBOARD&&s.jsx(n.a$1,{style:{flex:"1 1 auto"},children:s.jsx(M,{leaderboardList:e.leaderboardList})})]})};const H=()=>b,D=n.styled_default(H())({name:"c",class:"c1ph66cs",propsAsIs:!0}),P=({gamification:e,className:t})=>{const{loading:a,data:r}=u.useStore(e.openedQuestion);return s.jsxs(s.Fragment,{children:[(a||r)&&s.jsx(D,{className:t,children:s.jsx(R,{closeQuestion:e.closeQuestion,vote:e.submitAnswer,openedQuestion:r})}),s.jsx(n.r,{className:t,"data-nav":"true",children:s.jsx(T,{gamification:e})})]})},B=({highlights:e,className:t})=>{const a=u.useStore(e.openedInsight);return s.jsxs(s.Fragment,{children:[!a&&e.insights&&s.jsx(n.c,{className:t,highlights:e,store:e.insights.getStore()}),a&&s.jsx(n.x,{className:t,openedInsight:a,closeHighlights:e.closeFeature,closeInsight:e.closeHighlight})]})},W=({sdk:e,feature:t,className:a})=>i.useMemo(()=>t?t.featureConfig.get().type===y.FeatureType.GAMES?s.jsx(g,{className:a,sdk:e,feature:t,children:s.jsx(P,{className:a,gamification:t,sdk:e})}):t.featureConfig.get().type===y.FeatureType.HIGHLIGHTS?s.jsx(g,{className:a,sdk:e,feature:t,children:s.jsx(B,{className:a,highlights:t,sdk:e})}):null:null,[e,t]);const z=n.styled_default("button")({name:"e",class:"enu64b2",propsAsIs:!1}),K=n.styled_default("span")({name:"t",class:"tw2meku",propsAsIs:!1}),U=n.styled_default("span")({name:"a",class:"aka8vam",propsAsIs:!1}),v=({disabled:e,active:t,onClick:a,label:r,icon:o})=>s.jsx(z,{onClick:a,disabled:e,"data-selected":t,children:s.jsxs(s.Fragment,{children:[o&&s.jsx(K,{children:o}),s.jsx(U,{children:r})]})});const Y=()=>n.q,J=n.styled_default(Y())({name:"a",class:"a10lggiw",propsAsIs:!0}),f="channels",V=e=>{var t;return s.jsx(v,{...e,id:"channels",label:"Channels",icon:s.jsx(J,{name:"icon-btn-channels","data-selected":(t=e.active)==null?void 0:t.toString()})})};const X=()=>n.q,Z=n.styled_default(X())({name:"d",class:"d1x5s8ie",propsAsIs:!0}),p="featuredGroups",ee=e=>{var t;return s.jsx(v,{...e,label:"FG+",id:"featuredGroups",icon:s.jsx(Z,{name:"icon-btn-feature-groups","data-selected":(t=e.active)==null?void 0:t.toString()})})};const se=()=>n.q,te=n.styled_default(se())({name:"n",class:"ntav86o",propsAsIs:!0}),j="leaderboard",ae=e=>{var t;return s.jsx(v,{...e,label:"Leader Board",id:"leaderboard",icon:s.jsx(te,{name:"icon-btn-leaderboard","data-selected":(t=e.active)==null?void 0:t.toString()})})};const ne=n.styled_default("div")({name:"n",class:"n1rlvhvz",propsAsIs:!1}),re=({children:e,className:t})=>s.jsx(ne,{className:t,children:e});const le=()=>re,oe=n.styled_default(le())({name:"n",class:"n9bnom",propsAsIs:!0}),ce=({activeOverlay:e,setActiveOverlay:t,sdkReady:a,className:r})=>s.jsxs(oe,{className:r,children:[s.jsx(V,{active:e===f,onClick:()=>t(f)}),s.jsx(ee,{active:e===p,disabled:!a,onClick:()=>{t(p)}}),s.jsx(ae,{active:e===j,onClick:()=>t(j)})]}),ie=e=>{const[t,a]=i.useState(!1),r=u.useStore(e.status)==="ready",[o,l]=i.useState(p),c=i.useCallback((d,m)=>{l(m),m===p?(d&&e.createEventSession(d),e.openFeature(y.FeatureType.GAMES)):e.closeFeature()},[e]);return i.useEffect(()=>{!r&&o===p&&(l(f),e.closeFeature())},[r,o,e]),{sdkEnabled:t,sdkReady:r,activeOverlay:o,activateAndLoadOverlay:c,enableSdk:d=>{e.initializeApp().then(({enabled:m,err:h})=>{if(a(!0),h){c(d,f);return}if(m){c(d,p);return}})},disableSdk:()=>{a(!1),e.disableApp()}}},de=e=>{const t=u.useStore(e.getActiveFeature()),[a,r]=i.useState(null);return i.useEffect(()=>{const o=e.getFeatures();if(t)for(const[l,c]of o)l===t?c.status.get()===x.FeatureStatus.Suspended&&(c.enable(),r(c)):c.status.get()===x.FeatureStatus.Ready&&c.disable();else{for(const[,l]of o)l.status.get()===x.FeatureStatus.Ready&&l.disable();r(null)}return()=>{for(const[,l]of o)l.status.get()===x.FeatureStatus.Ready&&l.disable()}},[t,e]),[t,a]},ue=({sdk:e,className:t})=>{const[,a]=de(e);return s.jsx(W,{className:t,feature:a,sdk:e})},pe=({sdk:e,overlays:t,children:a})=>{const{sdkEnabled:r,sdkReady:o,activeOverlay:l,activateAndLoadOverlay:c,enableSdk:d,disableSdk:m}=ie(e);return s.jsxs(n.i,{children:[r&&s.jsx(ce,{sdkReady:o,activeOverlay:l,className:n.f,setActiveOverlay:h=>c("",h)}),s.jsx(n.r,{"data-nav":r.toString(),style:{display:!r||l===f?"block":"none"},children:a&&a({enableSdk:d,disableSdk:m})}),s.jsx(n.r,{"data-nav":r.toString(),style:{display:l===j?"block":"none"},children:t&&l===j&&t[l]}),r&&l===p&&s.jsx(ue,{className:n.f,sdk:e})]})},me=({sdkKey:e,plugins:t,children:a,production:r=!0})=>s.jsx(n.StreamLayerProvider,{sdkKey:e,plugins:t,production:r,autoEnable:!1,children:a}),xe=({children:e,overlays:t})=>{const{sdk:a,status:r}=i.useContext(n.StreamLayerContext);if(r===n.StreamLayerStatus.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return a?s.jsx("div",{className:"StreamLayerSDK",children:s.jsx(n.p,{children:s.jsx(pe,{sdk:a,overlays:t,children:e})})}):e({})};exports.MastersStreamLayerProvider=me;exports.MastersStreamLayerSDKReact=xe;
|
package/lib/cjs/points.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@streamlayer/sdk-web-types"),o=require("react"),s=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@streamlayer/sdk-web-types"),o=require("react"),s=require("../index-0f70e34a.cjs");require("react-auth-code-input");require("react-phone-number-input");require("@connectrpc/connect");require("@connectrpc/connect-web");require("@streamlayer/sl-eslib/users/users_connect");require("react-countdown-circle-timer");require("@streamlayer/sdk-web-interfaces");require("@streamlayer/sdk-web-features");require("@streamlayer/sdk-web-api");require("@streamlayer/sdk-web-storage");const n=require("@nanostores/react");require("@streamlayer/sdk-web-notifications");const l=require("../app-3b0713d0.cjs");require("./useStreamLayerApp.js");require("@streamlayer/sdk-web");require("@streamlayer/sl-eslib/interactive/interactive.common_pb");require("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb");require("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb");require("@streamlayer/sl-eslib/sports/events/events_connect");require("@streamlayer/sl-eslib/sdkSettings/client/client_connect");const c=()=>s.q,d=s.styled_default("div")({name:"l",class:"l4qld3l",propsAsIs:!1}),m=s.styled_default("div")({name:"a",class:"ainhtok",propsAsIs:!1}),p=s.styled_default(c())({name:"x",class:"xk8yd5t",propsAsIs:!0}),q=s.styled_default("div")({name:"h",class:"h6rf9gb",propsAsIs:!1}),y=s.styled_default("div")({name:"c",class:"c18f5pxx",propsAsIs:!1}),f=s.styled_default("div")({name:"m",class:"m1jwsyj1",propsAsIs:!1}),S=({points:r})=>e.jsxs(d,{className:s.f,children:[e.jsx(m,{children:e.jsx(p,{name:"icon-trophy"})}),e.jsxs(q,{children:[e.jsx(y,{children:"Total points"}),e.jsx(f,{children:s.a(r)})]})]}),x=({userSummary:r})=>{var a,t;const i=n.useStore(r.getStore());return((t=(a=i.data)==null?void 0:a.summary)==null?void 0:t.points)===void 0?null:e.jsx("div",{className:"StreamLayerSDK",children:e.jsx(s.p,{children:e.jsx(S,{points:i.data.summary.points})})})},j=({sdk:r})=>{const{organizationSettings:i,streamSettings:a}=n.useStore(r.sdkStore),t=o.useMemo(()=>r.getFeature(u.FeatureType.GAMES),[r,i,a]);return t?e.jsx(x,{userSummary:t.userSummary}):null},h=()=>{const r=l.useStreamLayer();return r?e.jsx(j,{sdk:r}):null};exports.StreamLayerSDKPoints=h;
|
package/lib/es/auth.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect as i } from "react";
|
|
2
|
-
import { u as m } from "../app-
|
|
2
|
+
import { u as m } from "../app-3bc05c48.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-5a223768.js";
|
|
5
5
|
import "./useStreamLayerApp.js";
|
|
6
6
|
import "@streamlayer/sdk-web";
|
|
7
7
|
import "@streamlayer/sdk-web-interfaces";
|
package/lib/es/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import "@streamlayer/sdk-web-features";
|
|
|
7
7
|
import "@streamlayer/sdk-web-interfaces";
|
|
8
8
|
import "@streamlayer/sdk-web-notifications";
|
|
9
9
|
import "@streamlayer/feature-gamification";
|
|
10
|
-
import { S as l } from "../index-
|
|
11
|
-
import { S as q, u as w } from "../app-
|
|
10
|
+
import { S as l } from "../index-5a223768.js";
|
|
11
|
+
import { S as q, u as w } from "../app-3bc05c48.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "react";
|
|
14
14
|
import "./useStreamLayerApp.js";
|
package/lib/es/masters.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as a, jsxs as i, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { s as r,
|
|
2
|
+
import { useState as v, useMemo as E, useCallback as C, useEffect as L, useContext as Q } from "react";
|
|
3
|
+
import { s as r, q as y, o as O, Y as w, e as R, j as F, u as M, v as q, h as b, g as G, i as H, k as x, r as $, l as j, x as D, m as P, f as I, S as T, a as B, b as z, p as Y } from "../index-5a223768.js";
|
|
4
4
|
import "react-auth-code-input";
|
|
5
5
|
import "react-phone-number-input";
|
|
6
6
|
import "@connectrpc/connect";
|
|
7
7
|
import "@connectrpc/connect-web";
|
|
8
8
|
import "@streamlayer/sl-eslib/users/users_connect";
|
|
9
9
|
import "react-countdown-circle-timer";
|
|
10
|
-
import { QuestionType as
|
|
11
|
-
import { FeatureStatus as
|
|
10
|
+
import { QuestionType as K, FeatureType as A } from "@streamlayer/sdk-web-types";
|
|
11
|
+
import { FeatureStatus as h } from "@streamlayer/sdk-web-interfaces";
|
|
12
12
|
import "@streamlayer/sdk-web-features";
|
|
13
13
|
import "@streamlayer/sdk-web-api";
|
|
14
14
|
import "@streamlayer/sdk-web-storage";
|
|
@@ -23,111 +23,94 @@ import "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
|
23
23
|
import "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
24
24
|
const _ = ({ feature: e, sdk: s, children: t, className: n }) => {
|
|
25
25
|
const l = p(e.status), { slStreamId: o } = p(s.sdkStore);
|
|
26
|
-
return o != null && o.loading ? /* @__PURE__ */ a("div", { className: n, children: "event is loading..." }) : o != null && o.data ? l !==
|
|
26
|
+
return o != null && o.loading ? /* @__PURE__ */ a("div", { className: n, children: "event is loading..." }) : o != null && o.data ? l !== h.Ready ? /* @__PURE__ */ a("div", { className: n, children: "wait feature..." }) : t : /* @__PURE__ */ a("div", { className: n, children: "event is forbidden..." });
|
|
27
27
|
};
|
|
28
|
-
const
|
|
29
|
-
name: "i",
|
|
30
|
-
class: "idhrx8x",
|
|
31
|
-
propsAsIs: !1
|
|
32
|
-
}), $ = /* @__PURE__ */ r("div")({
|
|
33
|
-
name: "r",
|
|
34
|
-
class: "r1k6v4ep",
|
|
35
|
-
propsAsIs: !1
|
|
36
|
-
}), x = /* @__PURE__ */ r("div")({
|
|
37
|
-
name: "t",
|
|
38
|
-
class: "t1v8kucd",
|
|
39
|
-
propsAsIs: !1
|
|
40
|
-
}), U = /* @__PURE__ */ r(Y())({
|
|
41
|
-
name: "o",
|
|
42
|
-
class: "o16yw7z1",
|
|
43
|
-
propsAsIs: !0
|
|
44
|
-
});
|
|
45
|
-
const W = /* @__PURE__ */ r("div")({
|
|
28
|
+
const U = /* @__PURE__ */ r("div")({
|
|
46
29
|
name: "n",
|
|
47
30
|
class: "n1aopxp8",
|
|
48
31
|
propsAsIs: !1
|
|
49
|
-
}),
|
|
32
|
+
}), W = ({
|
|
50
33
|
children: e,
|
|
51
34
|
style: s,
|
|
52
35
|
className: t
|
|
53
|
-
}) => /* @__PURE__ */ a(
|
|
36
|
+
}) => /* @__PURE__ */ a(U, {
|
|
54
37
|
style: s,
|
|
55
38
|
className: t,
|
|
56
39
|
children: e
|
|
57
40
|
});
|
|
58
|
-
const J = () => y, V = () => y,
|
|
41
|
+
const J = () => y, V = () => y, X = /* @__PURE__ */ r("div")({
|
|
59
42
|
name: "a",
|
|
60
43
|
class: "acysrl1",
|
|
61
44
|
propsAsIs: !1
|
|
62
|
-
}),
|
|
45
|
+
}), Z = /* @__PURE__ */ r("div")({
|
|
63
46
|
name: "l",
|
|
64
47
|
class: "lo57cjm",
|
|
65
48
|
propsAsIs: !1
|
|
66
|
-
}),
|
|
49
|
+
}), ee = /* @__PURE__ */ r(J())({
|
|
67
50
|
name: "p",
|
|
68
51
|
class: "p14kwh4y",
|
|
69
52
|
propsAsIs: !0
|
|
70
|
-
}),
|
|
53
|
+
}), se = /* @__PURE__ */ r("span")({
|
|
71
54
|
name: "s",
|
|
72
55
|
class: "sxun7sq",
|
|
73
56
|
propsAsIs: !1
|
|
74
|
-
}),
|
|
57
|
+
}), ae = /* @__PURE__ */ r("button")({
|
|
75
58
|
name: "c",
|
|
76
59
|
class: "c1i8ida8",
|
|
77
60
|
propsAsIs: !1
|
|
78
|
-
}),
|
|
61
|
+
}), te = /* @__PURE__ */ r(V())({
|
|
79
62
|
name: "g",
|
|
80
63
|
class: "g1m0xfmw",
|
|
81
64
|
propsAsIs: !0
|
|
82
|
-
}),
|
|
65
|
+
}), ne = ({ type: e, close: s }) => {
|
|
83
66
|
const t = O[e];
|
|
84
|
-
return /* @__PURE__ */ i(
|
|
85
|
-
/* @__PURE__ */ i(
|
|
86
|
-
(t == null ? void 0 : t.iconName) && /* @__PURE__ */ a(
|
|
87
|
-
(t == null ? void 0 : t.label) && /* @__PURE__ */ a(
|
|
67
|
+
return /* @__PURE__ */ i(X, { children: [
|
|
68
|
+
/* @__PURE__ */ i(Z, { children: [
|
|
69
|
+
(t == null ? void 0 : t.iconName) && /* @__PURE__ */ a(ee, { name: t.iconName }),
|
|
70
|
+
(t == null ? void 0 : t.label) && /* @__PURE__ */ a(se, { children: t.label })
|
|
88
71
|
] }),
|
|
89
|
-
/* @__PURE__ */ a(
|
|
72
|
+
/* @__PURE__ */ a(ae, { onClick: s, children: /* @__PURE__ */ a(te, { name: "icon-cross" }) })
|
|
90
73
|
] });
|
|
91
74
|
};
|
|
92
|
-
const
|
|
75
|
+
const oe = /* @__PURE__ */ r("div")({
|
|
93
76
|
name: "r",
|
|
94
77
|
class: "ruyb9yw",
|
|
95
78
|
propsAsIs: !1
|
|
96
|
-
}),
|
|
79
|
+
}), re = /* @__PURE__ */ r("img")({
|
|
97
80
|
name: "i",
|
|
98
81
|
class: "imbcgl0",
|
|
99
82
|
propsAsIs: !1
|
|
100
|
-
}),
|
|
83
|
+
}), le = ({
|
|
101
84
|
sponsorLogo: e
|
|
102
|
-
}) => e && /* @__PURE__ */ a(
|
|
103
|
-
children: /* @__PURE__ */ a(
|
|
85
|
+
}) => e && /* @__PURE__ */ a(oe, {
|
|
86
|
+
children: /* @__PURE__ */ a(re, {
|
|
104
87
|
alt: "sponsor-logo",
|
|
105
88
|
src: e
|
|
106
89
|
})
|
|
107
90
|
});
|
|
108
|
-
const
|
|
91
|
+
const ce = /* @__PURE__ */ r("div")({
|
|
109
92
|
name: "x",
|
|
110
93
|
class: "xk8r1eq",
|
|
111
94
|
propsAsIs: !1
|
|
112
|
-
}),
|
|
95
|
+
}), ie = ({
|
|
113
96
|
openedQuestion: e,
|
|
114
97
|
closeQuestion: s,
|
|
115
98
|
vote: t
|
|
116
99
|
}) => {
|
|
117
100
|
var n;
|
|
118
|
-
return /* @__PURE__ */ i(
|
|
119
|
-
children: [/* @__PURE__ */ a(
|
|
101
|
+
return /* @__PURE__ */ i(ce, {
|
|
102
|
+
children: [/* @__PURE__ */ a(ne, {
|
|
120
103
|
close: s,
|
|
121
|
-
type: (e == null ? void 0 : e.type) ||
|
|
122
|
-
}), e && /* @__PURE__ */ a(
|
|
104
|
+
type: (e == null ? void 0 : e.type) || K.UNSET
|
|
105
|
+
}), e && /* @__PURE__ */ a(w, {
|
|
123
106
|
vote: t,
|
|
124
107
|
openedQuestion: e
|
|
125
|
-
}), /* @__PURE__ */ a(
|
|
108
|
+
}), /* @__PURE__ */ a(le, {
|
|
126
109
|
sponsorLogo: (n = e == null ? void 0 : e.sponsorship) == null ? void 0 : n.logo
|
|
127
110
|
})]
|
|
128
111
|
});
|
|
129
|
-
},
|
|
130
|
-
const { data: s } = p(e.$store), [t, n] =
|
|
112
|
+
}, de = ({ leaderboardList: e }) => {
|
|
113
|
+
const { data: s } = p(e.$store), [t, n] = v(void 0), l = (o) => {
|
|
131
114
|
const c = s.find((d) => d.userId === o);
|
|
132
115
|
n(c);
|
|
133
116
|
};
|
|
@@ -135,28 +118,28 @@ const ie = /* @__PURE__ */ r("div")({
|
|
|
135
118
|
t && /* @__PURE__ */ a(R, { comeBack: () => l(null), ...t }),
|
|
136
119
|
!t && /* @__PURE__ */ a(F, { fetchMore: e.fetchMore, items: s, openItemDetail: l })
|
|
137
120
|
] });
|
|
138
|
-
},
|
|
121
|
+
}, pe = ({ store: e, openQuestion: s }) => {
|
|
139
122
|
const t = p(e);
|
|
140
123
|
return t != null && t.data ? /* @__PURE__ */ a(M, { openQuestion: s, questions: t.data }) : /* @__PURE__ */ a("div", { children: "wait questions..." });
|
|
141
|
-
},
|
|
124
|
+
}, ue = ({ store: e }) => {
|
|
142
125
|
const { data: s } = p(e);
|
|
143
126
|
return s != null && s.summary ? /* @__PURE__ */ a(q, { ...s.summary, ...s.percentage }) : /* @__PURE__ */ a("div", { children: "wait user..." });
|
|
144
|
-
},
|
|
145
|
-
const [s, t] =
|
|
127
|
+
}, me = ({ gamification: e }) => {
|
|
128
|
+
const [s, t] = v(b.HOME);
|
|
146
129
|
return /* @__PURE__ */ i(g, { children: [
|
|
147
|
-
/* @__PURE__ */ i(
|
|
148
|
-
/* @__PURE__ */ a(
|
|
149
|
-
s === b.HOME && /* @__PURE__ */ a(
|
|
130
|
+
/* @__PURE__ */ i(G, { children: [
|
|
131
|
+
/* @__PURE__ */ a(H, { activePage: s, toggleActivePage: t }),
|
|
132
|
+
s === b.HOME && /* @__PURE__ */ a(ue, { store: e.userSummary.getStore() })
|
|
150
133
|
] }),
|
|
151
|
-
s === b.HOME && /* @__PURE__ */ a(x, { children: /* @__PURE__ */ a(
|
|
152
|
-
s === b.LEADERBOARD && /* @__PURE__ */ a(x, { style: { flex: "1 1 auto" }, children: /* @__PURE__ */ a(
|
|
134
|
+
s === b.HOME && /* @__PURE__ */ a(x, { children: /* @__PURE__ */ a(pe, { openQuestion: e.openQuestion, store: e.questions.getStore() }) }),
|
|
135
|
+
s === b.LEADERBOARD && /* @__PURE__ */ a(x, { style: { flex: "1 1 auto" }, children: /* @__PURE__ */ a(de, { leaderboardList: e.leaderboardList }) })
|
|
153
136
|
] });
|
|
154
137
|
};
|
|
155
|
-
const he = () =>
|
|
138
|
+
const he = () => W, ve = /* @__PURE__ */ r(he())({
|
|
156
139
|
name: "c",
|
|
157
140
|
class: "c1ph66cs",
|
|
158
141
|
propsAsIs: !0
|
|
159
|
-
}),
|
|
142
|
+
}), fe = ({
|
|
160
143
|
gamification: e,
|
|
161
144
|
className: s
|
|
162
145
|
}) => {
|
|
@@ -165,9 +148,9 @@ const he = () => X, fe = /* @__PURE__ */ r(he())({
|
|
|
165
148
|
data: n
|
|
166
149
|
} = p(e.openedQuestion);
|
|
167
150
|
return /* @__PURE__ */ i(g, {
|
|
168
|
-
children: [(t || n) && /* @__PURE__ */ a(
|
|
151
|
+
children: [(t || n) && /* @__PURE__ */ a(ve, {
|
|
169
152
|
className: s,
|
|
170
|
-
children: /* @__PURE__ */ a(
|
|
153
|
+
children: /* @__PURE__ */ a(ie, {
|
|
171
154
|
closeQuestion: e.closeQuestion,
|
|
172
155
|
vote: e.submitAnswer,
|
|
173
156
|
openedQuestion: n
|
|
@@ -175,24 +158,20 @@ const he = () => X, fe = /* @__PURE__ */ r(he())({
|
|
|
175
158
|
}), /* @__PURE__ */ a($, {
|
|
176
159
|
className: s,
|
|
177
160
|
"data-nav": "true",
|
|
178
|
-
|
|
179
|
-
display: "flex",
|
|
180
|
-
flexDirection: "column"
|
|
181
|
-
},
|
|
182
|
-
children: /* @__PURE__ */ a(ve, {
|
|
161
|
+
children: /* @__PURE__ */ a(me, {
|
|
183
162
|
gamification: e
|
|
184
163
|
})
|
|
185
164
|
})]
|
|
186
165
|
});
|
|
187
|
-
},
|
|
166
|
+
}, ge = ({
|
|
188
167
|
highlights: e,
|
|
189
168
|
className: s
|
|
190
169
|
}) => {
|
|
191
170
|
const t = p(e.openedInsight);
|
|
192
171
|
return /* @__PURE__ */ i(g, { children: [
|
|
193
|
-
!t && e.insights && /* @__PURE__ */ a(
|
|
172
|
+
!t && e.insights && /* @__PURE__ */ a(j, { className: s, highlights: e, store: e.insights.getStore() }),
|
|
194
173
|
t && /* @__PURE__ */ a(
|
|
195
|
-
|
|
174
|
+
D,
|
|
196
175
|
{
|
|
197
176
|
className: s,
|
|
198
177
|
openedInsight: t,
|
|
@@ -201,94 +180,94 @@ const he = () => X, fe = /* @__PURE__ */ r(he())({
|
|
|
201
180
|
}
|
|
202
181
|
)
|
|
203
182
|
] });
|
|
204
|
-
},
|
|
183
|
+
}, ye = ({
|
|
205
184
|
sdk: e,
|
|
206
185
|
feature: s,
|
|
207
186
|
className: t
|
|
208
|
-
}) => E(() => s ? s.featureConfig.get().type === A.GAMES ? /* @__PURE__ */ a(_, { className: t, sdk: e, feature: s, children: /* @__PURE__ */ a(
|
|
209
|
-
const
|
|
187
|
+
}) => E(() => s ? s.featureConfig.get().type === A.GAMES ? /* @__PURE__ */ a(_, { className: t, sdk: e, feature: s, children: /* @__PURE__ */ a(fe, { className: t, gamification: s, sdk: e }) }) : s.featureConfig.get().type === A.HIGHLIGHTS ? /* @__PURE__ */ a(_, { className: t, sdk: e, feature: s, children: /* @__PURE__ */ a(ge, { className: t, highlights: s, sdk: e }) }) : null : null, [e, s]);
|
|
188
|
+
const be = /* @__PURE__ */ r("button")({
|
|
210
189
|
name: "e",
|
|
211
190
|
class: "enu64b2",
|
|
212
191
|
propsAsIs: !1
|
|
213
|
-
}),
|
|
192
|
+
}), ke = /* @__PURE__ */ r("span")({
|
|
214
193
|
name: "t",
|
|
215
194
|
class: "tw2meku",
|
|
216
195
|
propsAsIs: !1
|
|
217
|
-
}),
|
|
196
|
+
}), Se = /* @__PURE__ */ r("span")({
|
|
218
197
|
name: "a",
|
|
219
198
|
class: "aka8vam",
|
|
220
199
|
propsAsIs: !1
|
|
221
|
-
}),
|
|
222
|
-
l && /* @__PURE__ */ a(
|
|
223
|
-
/* @__PURE__ */ a(
|
|
200
|
+
}), N = ({ disabled: e, active: s, onClick: t, label: n, icon: l }) => /* @__PURE__ */ a(be, { onClick: t, disabled: e, "data-selected": s, children: /* @__PURE__ */ i(g, { children: [
|
|
201
|
+
l && /* @__PURE__ */ a(ke, { children: l }),
|
|
202
|
+
/* @__PURE__ */ a(Se, { children: n })
|
|
224
203
|
] }) });
|
|
225
|
-
const $e = () => y,
|
|
204
|
+
const $e = () => y, Ae = /* @__PURE__ */ r($e())({
|
|
226
205
|
name: "a",
|
|
227
206
|
class: "a10lggiw",
|
|
228
207
|
propsAsIs: !0
|
|
229
|
-
}), f = "channels",
|
|
208
|
+
}), f = "channels", Ne = (e) => {
|
|
230
209
|
var s;
|
|
231
|
-
return /* @__PURE__ */ a(
|
|
210
|
+
return /* @__PURE__ */ a(N, {
|
|
232
211
|
...e,
|
|
233
212
|
id: "channels",
|
|
234
213
|
label: "Channels",
|
|
235
|
-
icon: /* @__PURE__ */ a(
|
|
214
|
+
icon: /* @__PURE__ */ a(Ae, {
|
|
236
215
|
name: "icon-btn-channels",
|
|
237
216
|
"data-selected": (s = e.active) == null ? void 0 : s.toString()
|
|
238
217
|
})
|
|
239
218
|
});
|
|
240
219
|
};
|
|
241
|
-
const
|
|
220
|
+
const xe = () => y, Ie = /* @__PURE__ */ r(xe())({
|
|
242
221
|
name: "d",
|
|
243
222
|
class: "d1x5s8ie",
|
|
244
223
|
propsAsIs: !0
|
|
245
|
-
}), u = "featuredGroups",
|
|
224
|
+
}), u = "featuredGroups", _e = (e) => {
|
|
246
225
|
var s;
|
|
247
|
-
return /* @__PURE__ */ a(
|
|
226
|
+
return /* @__PURE__ */ a(N, {
|
|
248
227
|
...e,
|
|
249
228
|
label: "FG+",
|
|
250
229
|
id: "featuredGroups",
|
|
251
|
-
icon: /* @__PURE__ */ a(
|
|
230
|
+
icon: /* @__PURE__ */ a(Ie, {
|
|
252
231
|
name: "icon-btn-feature-groups",
|
|
253
232
|
"data-selected": (s = e.active) == null ? void 0 : s.toString()
|
|
254
233
|
})
|
|
255
234
|
});
|
|
256
235
|
};
|
|
257
|
-
const
|
|
236
|
+
const Le = () => y, Ee = /* @__PURE__ */ r(Le())({
|
|
258
237
|
name: "n",
|
|
259
238
|
class: "ntav86o",
|
|
260
239
|
propsAsIs: !0
|
|
261
|
-
}), k = "leaderboard",
|
|
240
|
+
}), k = "leaderboard", Ce = (e) => {
|
|
262
241
|
var s;
|
|
263
|
-
return /* @__PURE__ */ a(
|
|
242
|
+
return /* @__PURE__ */ a(N, {
|
|
264
243
|
...e,
|
|
265
244
|
label: "Leader Board",
|
|
266
245
|
id: "leaderboard",
|
|
267
|
-
icon: /* @__PURE__ */ a(
|
|
246
|
+
icon: /* @__PURE__ */ a(Ee, {
|
|
268
247
|
name: "icon-btn-leaderboard",
|
|
269
248
|
"data-selected": (s = e.active) == null ? void 0 : s.toString()
|
|
270
249
|
})
|
|
271
250
|
});
|
|
272
251
|
};
|
|
273
|
-
const
|
|
252
|
+
const Qe = /* @__PURE__ */ r("div")({
|
|
274
253
|
name: "n",
|
|
275
254
|
class: "n1rlvhvz",
|
|
276
255
|
propsAsIs: !1
|
|
277
|
-
}),
|
|
256
|
+
}), Oe = ({
|
|
278
257
|
children: e,
|
|
279
258
|
className: s
|
|
280
|
-
}) => /* @__PURE__ */ a(
|
|
259
|
+
}) => /* @__PURE__ */ a(Qe, {
|
|
281
260
|
className: s,
|
|
282
261
|
children: e
|
|
283
262
|
});
|
|
284
|
-
const
|
|
263
|
+
const we = () => Oe, Re = /* @__PURE__ */ r(we())({
|
|
285
264
|
name: "n",
|
|
286
265
|
class: "n9bnom",
|
|
287
266
|
propsAsIs: !0
|
|
288
|
-
}),
|
|
289
|
-
/* @__PURE__ */ a(
|
|
267
|
+
}), Fe = ({ activeOverlay: e, setActiveOverlay: s, sdkReady: t, className: n }) => /* @__PURE__ */ i(Re, { className: n, children: [
|
|
268
|
+
/* @__PURE__ */ a(Ne, { active: e === f, onClick: () => s(f) }),
|
|
290
269
|
/* @__PURE__ */ a(
|
|
291
|
-
|
|
270
|
+
_e,
|
|
292
271
|
{
|
|
293
272
|
active: e === u,
|
|
294
273
|
disabled: !t,
|
|
@@ -298,14 +277,14 @@ const Re = () => Qe, Fe = /* @__PURE__ */ r(Re())({
|
|
|
298
277
|
}
|
|
299
278
|
),
|
|
300
279
|
/* @__PURE__ */ a(
|
|
301
|
-
|
|
280
|
+
Ce,
|
|
302
281
|
{
|
|
303
282
|
active: e === k,
|
|
304
283
|
onClick: () => s(k)
|
|
305
284
|
}
|
|
306
285
|
)
|
|
307
|
-
] }),
|
|
308
|
-
const [s, t] =
|
|
286
|
+
] }), Me = (e) => {
|
|
287
|
+
const [s, t] = v(!1), n = p(e.status) === "ready", [l, o] = v(u), c = C(
|
|
309
288
|
(d, m) => {
|
|
310
289
|
o(m), m === u ? (d && e.createEventSession(d), e.openFeature(A.GAMES)) : e.closeFeature();
|
|
311
290
|
},
|
|
@@ -334,35 +313,35 @@ const Re = () => Qe, Fe = /* @__PURE__ */ r(Re())({
|
|
|
334
313
|
t(!1), e.disableApp();
|
|
335
314
|
}
|
|
336
315
|
};
|
|
337
|
-
},
|
|
338
|
-
const s = p(e.getActiveFeature()), [t, n] =
|
|
316
|
+
}, qe = (e) => {
|
|
317
|
+
const s = p(e.getActiveFeature()), [t, n] = v(null);
|
|
339
318
|
return L(() => {
|
|
340
319
|
const l = e.getFeatures();
|
|
341
320
|
if (s)
|
|
342
321
|
for (const [o, c] of l)
|
|
343
|
-
o === s ? c.status.get() ===
|
|
322
|
+
o === s ? c.status.get() === h.Suspended && (c.enable(), n(c)) : c.status.get() === h.Ready && c.disable();
|
|
344
323
|
else {
|
|
345
324
|
for (const [, o] of l)
|
|
346
|
-
o.status.get() ===
|
|
325
|
+
o.status.get() === h.Ready && o.disable();
|
|
347
326
|
n(null);
|
|
348
327
|
}
|
|
349
328
|
return () => {
|
|
350
329
|
for (const [, o] of l)
|
|
351
|
-
o.status.get() ===
|
|
330
|
+
o.status.get() === h.Ready && o.disable();
|
|
352
331
|
};
|
|
353
332
|
}, [s, e]), [s, t];
|
|
354
|
-
},
|
|
355
|
-
const [, t] =
|
|
356
|
-
return /* @__PURE__ */ a(
|
|
357
|
-
},
|
|
358
|
-
const { sdkEnabled: n, sdkReady: l, activeOverlay: o, activateAndLoadOverlay: c, enableSdk: d, disableSdk: m } =
|
|
359
|
-
return /* @__PURE__ */ i(
|
|
333
|
+
}, Ge = ({ sdk: e, className: s }) => {
|
|
334
|
+
const [, t] = qe(e);
|
|
335
|
+
return /* @__PURE__ */ a(ye, { className: s, feature: t, sdk: e });
|
|
336
|
+
}, He = ({ sdk: e, overlays: s, children: t }) => {
|
|
337
|
+
const { sdkEnabled: n, sdkReady: l, activeOverlay: o, activateAndLoadOverlay: c, enableSdk: d, disableSdk: m } = Me(e);
|
|
338
|
+
return /* @__PURE__ */ i(P, { children: [
|
|
360
339
|
n && /* @__PURE__ */ a(
|
|
361
|
-
|
|
340
|
+
Fe,
|
|
362
341
|
{
|
|
363
342
|
sdkReady: l,
|
|
364
343
|
activeOverlay: o,
|
|
365
|
-
className:
|
|
344
|
+
className: I,
|
|
366
345
|
setActiveOverlay: (S) => c("", S)
|
|
367
346
|
}
|
|
368
347
|
),
|
|
@@ -382,20 +361,20 @@ const Re = () => Qe, Fe = /* @__PURE__ */ r(Re())({
|
|
|
382
361
|
children: s && o === k && s[o]
|
|
383
362
|
}
|
|
384
363
|
),
|
|
385
|
-
n && o === u && /* @__PURE__ */ a(
|
|
364
|
+
n && o === u && /* @__PURE__ */ a(Ge, { className: I, sdk: e })
|
|
386
365
|
] });
|
|
387
|
-
},
|
|
366
|
+
}, is = ({
|
|
388
367
|
sdkKey: e,
|
|
389
368
|
plugins: s,
|
|
390
369
|
children: t,
|
|
391
370
|
production: n = !0
|
|
392
|
-
}) => /* @__PURE__ */ a(
|
|
393
|
-
const { sdk: t, status: n } =
|
|
394
|
-
if (n ===
|
|
371
|
+
}) => /* @__PURE__ */ a(T, { sdkKey: e, plugins: s, production: n, autoEnable: !1, children: t }), ds = ({ children: e, overlays: s }) => {
|
|
372
|
+
const { sdk: t, status: n } = Q(B);
|
|
373
|
+
if (n === z.UNSET)
|
|
395
374
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
396
|
-
return t ? /* @__PURE__ */ a("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ a(
|
|
375
|
+
return t ? /* @__PURE__ */ a("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ a(Y, { children: /* @__PURE__ */ a(He, { sdk: t, overlays: s, children: e }) }) }) : e({});
|
|
397
376
|
};
|
|
398
377
|
export {
|
|
399
|
-
|
|
400
|
-
|
|
378
|
+
is as MastersStreamLayerProvider,
|
|
379
|
+
ds as MastersStreamLayerSDKReact
|
|
401
380
|
};
|
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 { FeatureType as n } from "@streamlayer/sdk-web-types";
|
|
3
3
|
import { useMemo as p } from "react";
|
|
4
|
-
import { s,
|
|
4
|
+
import { s, q as l, f as c, d as u, p as d } from "../index-5a223768.js";
|
|
5
5
|
import "react-auth-code-input";
|
|
6
6
|
import "react-phone-number-input";
|
|
7
7
|
import "@connectrpc/connect";
|
|
@@ -14,7 +14,7 @@ import "@streamlayer/sdk-web-api";
|
|
|
14
14
|
import "@streamlayer/sdk-web-storage";
|
|
15
15
|
import { useStore as a } from "@nanostores/react";
|
|
16
16
|
import "@streamlayer/sdk-web-notifications";
|
|
17
|
-
import { u as f } from "../app-
|
|
17
|
+
import { u as f } from "../app-3bc05c48.js";
|
|
18
18
|
import "./useStreamLayerApp.js";
|
|
19
19
|
import "@streamlayer/sdk-web";
|
|
20
20
|
import "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
@@ -59,10 +59,10 @@ const S = () => l, y = /* @__PURE__ */ s("div")({
|
|
|
59
59
|
}, L = ({ sdk: r }) => {
|
|
60
60
|
const { organizationSettings: i, streamSettings: e } = a(r.sdkStore), o = p(() => r.getFeature(n.GAMES), [r, i, e]);
|
|
61
61
|
return o ? /* @__PURE__ */ t(j, { userSummary: o.userSummary }) : null;
|
|
62
|
-
},
|
|
62
|
+
}, V = () => {
|
|
63
63
|
const r = f();
|
|
64
64
|
return r ? /* @__PURE__ */ t(L, { sdk: r }) : null;
|
|
65
65
|
};
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
V as StreamLayerSDKPoints
|
|
68
68
|
};
|