"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./index2.js"),s=require("react"),t=new Set([r.anonymous]),o=({sdk:e})=>(s.useEffect(()=>{e.anonymousAuthorization()},[e]),null);exports.useStreamLayer=r.B,exports.useStreamLayerTheme=r.z,exports.useStreamLayerUI=r.F,exports.StreamLayerProvider=s=>e.jsx(r.q,{...s,themeMode:"dark",withAd:!0,skipOnboarding:!0,withAdNotification:!0,autoEnable:!0,plugins:t,friendsTab:"disabled",hideFriends:!0,webOS:!0}),exports.StreamLayerSDKTv=({persistent:t,children:n,showPauseAd:a,pauseAdVastUrl:d,videoPlayerController:i,onRenderPauseAd:u,onClosePauseAd:l,options:c})=>{const m=r.B(),h=r.z(),p=s.useRef();return s.useEffect(()=>{if(m)return i&&(p.current=i,m.addVideoPlayerController(p.current)),()=>{p.current&&m.removeVideoPlayerController(p.current)}},[m]),m?e.jsx("div",{className:"StreamLayerSDK",children:e.jsxs(r.h,{customTheme:h.theme,themeMode:h.themeMode,children:[e.jsx(r.W,{sdk:m,persistent:t,showPauseAd:a,onRenderPauseAd:u,pauseAdVastUrl:d,onClosePauseAd:l,options:c,children:n}),e.jsx(o,{sdk:m})]})}):null};
