@streamlayer/react 1.8.2 → 1.8.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),W=require("react"),s=require("./index2.js"),i=require("./useStreamLayerApp2.js"),X=s.styled_default("div")({name:"Container",class:"c5b6wdg",propsAsIs:!1}),J="a1rlj479",Q="s35f1di",Y="sj4471g",Z="b12050d8",oo="b1d5ybek",eo=o=>o==="left"||o==="right"?Q:Z,so=o=>o==="left"||o==="right"?Y:oo,to=o=>o==="left"?"avdxyl3":o==="right"?"a1bisd08":o==="top"?"a1u9y2aj":"a1qqaks",_=({children:o,style:t,className:n,enabled:r=!0,hiding:d,direction:a="left",onAnimationEnd:c})=>e.jsx(X,{style:t,className:s.cx_default(n,J,to(a),r&&!d&&eo(a),r&&d&&so(a)),onAnimationEnd:c,children:o}),no=s.styled_default("a")({name:"Link",class:"l1sgte8c",propsAsIs:!1}),io=s.styled_default("div")({name:"BannerContainer",class:"b7yfc72",propsAsIs:!1}),lo=()=>no,ao=s.styled_default(lo())({name:"BannerLink",class:"bejjq94",propsAsIs:!0}),ro=({promotion:o,promotionId:t,hiding:n,direction:r="bottom"})=>{var d,a;if(!((d=o.additionalBanner)!=null&&d.imageUrl))return null;let c=(a=o.banner)==null?void 0:a.url;return c&&c.indexOf("http")!==0&&(c=`https://${c}`),e.jsx(_,{direction:r,hiding:n,children:e.jsx(io,{className:"BannerContainer",children:e.jsx(ao,{className:"BannerLink",href:c,style:{backgroundImage:`url(${o.additionalBanner.imageUrl})`},"data-promo-id":t,"data-promo-type":o.type,"data-analytics":"banner",target:"_blank"})})})},co=s.styled_default("div")({name:"NotificationContent",class:"n18wsqoo",propsAsIs:!1}),mo=s.styled_default("div")({name:"Body",class:"b1ia90c2",propsAsIs:!1}),po=s.styled_default("div")({name:"Title",class:"tg2z08v",propsAsIs:!1}),uo=s.styled_default("div")({name:"Text",class:"t59zdk1",propsAsIs:!1}),j=s.styled_default("div")({name:"MediaImgBottom",class:"m1ab9fq",propsAsIs:!1}),yo=()=>j,fo=s.styled_default(yo())({name:"MediaImgMiddle",class:"m9fsr0y",propsAsIs:!0}),vo=s.styled_default("img")({name:"CtaIcon",class:"cvi9y5q",propsAsIs:!1}),Io=s.styled_default("button")({name:"Button",class:"bgl6boa",propsAsIs:!1}),Ao=s.styled_default("div")({name:"Logo",class:"l5mq0z",propsAsIs:!1}),go=s.styled_default("div")({name:"Footer",class:"f1mse0ft",propsAsIs:!1}),ho=s.styled_default("div")({name:"Vector",class:"v1hcloah",propsAsIs:!1}),xo=s.styled_default("div")({name:"NotificationContainer",class:"n3n65jf",propsAsIs:!1}),bo={[i.NotificationPromotionImagePosition.BOTTOM]:j,[i.NotificationPromotionImagePosition.MIDDLE]:fo},_o=({src:o,imagePosition:t})=>{const n=bo[t]||j;return e.jsx(n,{children:e.jsx("img",{src:o,alt:""})})},jo=({notification:o,open:t})=>{if(!o||!o.promotion||o.enabled!==i.NotificationEnabled.NOTIFICATION_ENABLED)return null;const{title:n,body:r,image:d,promotion:a}=o,{sponsorLogo:c,sponsorLogoMode:m,imagePosition:u,ctaButton:l}=a;return e.jsxs(xo,{className:"SL_Lower_Third_Notification",onClick:t,children:[e.jsxs(co,{children:[e.jsx(_o,{src:d,imagePosition:u}),e.jsxs(mo,{children:[n&&e.jsx(po,{children:n}),r&&e.jsx(uo,{children:r})]})]}),e.jsxs(go,{children:[m!==i.NotificationSponsorLogoMode.NOTIFICATION_SPONSOR_LOGO_NONE&&e.jsxs(e.Fragment,{children:[e.jsx(Ao,{children:e.jsx("img",{src:c,alt:n})}),e.jsx(ho,{})]}),e.jsxs(Io,{name:"promo-button",style:{color:l==null?void 0:l.textColor,backgroundColor:l==null?void 0:l.color},children:[(l==null?void 0:l.ctaIcon)&&(l==null?void 0:l.ctaIconMode)===i.CtaIconMode.CTA_ICON_TRANSPARENT&&e.jsx(vo,{src:l==null?void 0:l.ctaIcon,alt:"cta-icon"}),(l==null?void 0:l.label)||"Open"]})]})]})},No=s.styled_default("div")({name:"NotificationContent",class:"n1ku6hz",propsAsIs:!1}),To=s.styled_default("div")({name:"NotificationContainer",class:"nbxqmol",propsAsIs:!1}),$o=s.styled_default("div")({name:"Body",class:"b1gu3eml",propsAsIs:!1}),So=s.styled_default("div")({name:"Title",class:"t1u17zva",propsAsIs:!1}),Co=s.styled_default("div")({name:"Text",class:"t10ko1g",propsAsIs:!1}),h=s.styled_default("div")({name:"Media",class:"mntc42e",propsAsIs:!1}),Mo=()=>h,U=s.styled_default(Mo())({name:"MediaImgFit",class:"ml060eo",propsAsIs:!0}),Po=()=>h,H=s.styled_default(Po())({name:"MediaImgCentered",class:"m1vqlvig",propsAsIs:!0}),ko=()=>H,Lo=s.styled_default(ko())({name:"MediaImgBottom",class:"m1e7tvi5",propsAsIs:!0}),Oo=()=>h,Bo=s.styled_default(Oo())({name:"MediaImgSolid",class:"mqvntt2",propsAsIs:!0}),Eo=()=>h,Ro=s.styled_default(Eo())({name:"MediaImgMiddle",class:"m12jtj3u",propsAsIs:!0}),qo=s.styled_default("img")({name:"CtaIcon",class:"ckq1frv",propsAsIs:!1}),Do=s.styled_default("button")({name:"Button",class:"bis90pl",propsAsIs:!1}),wo=()=>s.a1,Fo=s.styled_default(wo())({name:"StyledChevronRight",class:"s9mjmz3",propsAsIs:!0}),Uo=s.styled_default("div")({name:"Logo",class:"l1cf50a7",propsAsIs:!1}),zo={[i.NotificationPromotionImagePosition.UNSET]:U,[i.NotificationPromotionImagePosition.FIT]:U,[i.NotificationPromotionImagePosition.CENTERED]:H,[i.NotificationPromotionImagePosition.BOTTOM]:Lo,[i.NotificationPromotionImagePosition.SOLID]:Bo,[i.NotificationPromotionImagePosition.MIDDLE]:Ro},Vo=({src:o,imagePosition:t})=>{const n=zo[t];return e.jsx(n,{children:e.jsx("img",{src:o,alt:""})})},Go=({notification:o,open:t,promotionId:n,hiding:r,direction:d="left"})=>{if(!o||!o.promotion||o.enabled!==i.NotificationEnabled.NOTIFICATION_ENABLED)return null;if(o.promotion.mode===i.NotificationPromotionMode.LOWER_THIRD)return e.jsx(jo,{notification:o,open:t});const{title:a,body:c,image:m,promotion:u}=o,{sponsorLogo:l,sponsorLogoMode:y,imagePosition:v,ctaButton:p}=u;return e.jsx(_,{className:"SL_Rich_Notification",direction:d,hiding:r,children:e.jsxs(To,{onClick:t,children:[y!==i.NotificationSponsorLogoMode.NOTIFICATION_SPONSOR_LOGO_NONE&&e.jsx(Uo,{children:e.jsx("img",{src:l,alt:a})}),e.jsxs(No,{children:[e.jsx(Vo,{src:m,imagePosition:v}),e.jsxs($o,{children:[a&&e.jsx(So,{children:a}),c&&e.jsx(Co,{children:c})]}),e.jsxs(Do,{name:"promo-button",style:{color:p==null?void 0:p.textColor,backgroundColor:p==null?void 0:p.color},children:[(p==null?void 0:p.ctaIcon)&&(p==null?void 0:p.ctaIconMode)===i.CtaIconMode.CTA_ICON_TRANSPARENT&&e.jsx(qo,{src:p==null?void 0:p.ctaIcon,alt:"cta-icon"}),(p==null?void 0:p.label)||"Open"]}),e.jsx(Fo,{name:"chevronRight"})]})]})})},Wo=s.styled_default("div")({name:"OverlayContainer",class:"okzhq2w",propsAsIs:!1}),Ho=s.styled_default("div")({name:"PromoOverlay",class:"pmgz5i",propsAsIs:!1}),Ko=s.styled_default("div")({name:"Header",class:"hyxi3jt",propsAsIs:!1}),Xo=s.styled_default("div")({name:"HeaderContent",class:"h149e3gp",propsAsIs:!1}),Jo="h10toh7",z=s.styled_default("img")({name:"SponsorLogo",class:"s1jyea6t",propsAsIs:!1}),Qo=s.styled_default("div")({name:"SponsorName",class:"szpfa3h",propsAsIs:!1}),Yo=s.styled_default("div")({name:"Media",class:"m1crmu01",propsAsIs:!1}),Zo=s.styled_default("img")({name:"PromoImg",class:"p1l37r8s",propsAsIs:!1}),oe="s1nmch9k",V=s.styled_default("div")({name:"Content",class:"c1er0ljd",propsAsIs:!1}),ee=s.styled_default("div")({name:"Description",class:"dydopmr",propsAsIs:!1}),se=s.styled_default("div")({name:"Sponsor",class:"s1w6nt04",propsAsIs:!1}),te=s.styled_default("div")({name:"SponsorText",class:"s1evcmtq",propsAsIs:!1}),ne=s.styled_default("div")({name:"ADLogo",class:"awodx0x",propsAsIs:!1}),ie=s.styled_default("span")({name:"SponsoredText",class:"s1q3n6oi",propsAsIs:!1}),le=s.styled_default("div")({name:"ActionBtnWrap",class:"a8d4xfk",propsAsIs:!1}),ae=s.styled_default("a")({name:"ActionButton",class:"at6oobh",propsAsIs:!1}),re=s.styled_default("div")({name:"Title",class:"t1gyg7tt",propsAsIs:!1}),de="h17rwbtk",G=({promotion:o,skipAutoClose:t,promotionId:n,onClose:r,markAsViewed:d})=>{var a,c,m,u,l,y,v,p,f,A,g,N,T,$,S,C,M,P,k,L,O,B,E,R,q,D,w,F;const x=o.type===i.PromotionType.INGAME_IAB11_LBAR||o.type===i.PromotionType.INGAME_IAB11,b=((a=o.sponsor)==null?void 0:a.logo)&&o.logoMode===i.PromotionLogoMode.CENTER;W.useEffect(()=>{n&&o.type&&d&&d()},[n,o.type,d]);let I=(c=o.banner)==null?void 0:c.url;return I&&I.indexOf("http")!==0&&(I=`https://${I}`),e.jsxs(Ho,{className:"PromoOverlay",children:[e.jsxs(Ko,{children:[e.jsxs(Xo,{className:s.cx_default(!b&&Jo),children:[((m=o.sponsor)==null?void 0:m.logo)&&o.logoMode===i.PromotionLogoMode.LEFT&&e.jsx(z,{src:(u=o.sponsor)==null?void 0:u.logo,alt:"promo"}),e.jsxs(se,{style:{paddingLeft:(l=o.sponsor)!=null&&l.logo&&o.logoMode===i.PromotionLogoMode.LEFT?"0px":"8px"},children:[((y=o.sponsor)==null?void 0:y.logo)&&o.logoMode===i.PromotionLogoMode.LEFT&&e.jsx(Qo,{children:(v=o.sponsor)==null?void 0:v.name}),e.jsxs(te,{className:"SponsorText",children:[e.jsx(ne,{children:"AD"}),e.jsx(ie,{children:"SPONSORED"})]})]})]}),e.jsx(s.S,{className:"ClosePromoIcon",close:r,autoClose:(p=o.closeTimer)==null?void 0:p.auto,duration:t?0:(f=o.closeTimer)==null?void 0:f.seconds})]}),e.jsxs(Yo,{children:[b&&e.jsx(z,{className:oe,src:(A=o.sponsor)==null?void 0:A.logo,alt:"promo"}),e.jsx(V,{children:(N=(g=o.banner)==null?void 0:g.video)!=null&&N.url?e.jsx(s.X,{source:($=(T=o.banner)==null?void 0:T.video)==null?void 0:$.url,poster:(C=(S=o.banner)==null?void 0:S.video)==null?void 0:C.thumbnailUrl,aspectRatio:x?"1/1":"16/9",onPlay:()=>{s.eventBus.emit("advertisement",{action:"videoPlay",payload:{id:n,type:o.type}})},autoPlay:o.autoPlayVideo===i.AutoPlayVideo.ENABLED}):(M=o.banner)!=null&&M.imageUrl?e.jsx(Zo,{style:x?{aspectRatio:"1/1"}:{},src:(P=o.banner)==null?void 0:P.imageUrl,alt:"promo"}):null}),!x&&e.jsxs(V,{children:[((k=o.banner)==null?void 0:k.title)&&e.jsx(re,{className:s.cx_default("AdvTitle",b&&de),children:(L=o.banner)==null?void 0:L.title}),((O=o.banner)==null?void 0:O.body)&&e.jsx(ee,{className:"AdvDescription",children:(B=o.banner)==null?void 0:B.body})]})]}),o.buttonType!==i.PromotionButtonType.NO_BUTTON&&e.jsx(le,{children:e.jsx(ae,{href:I,style:{backgroundColor:((R=(E=o.banner)==null?void 0:E.ctaButton)==null?void 0:R.color)||"#009dc4",color:((D=(q=o.banner)==null?void 0:q.ctaButton)==null?void 0:D.textColor)||"#fff"},"data-analytics":"button","data-promo-id":n,"data-promo-type":o.type,target:"_blank",children:(F=(w=o.banner)==null?void 0:w.ctaButton)==null?void 0:F.label})})]})},ce=s.styled_default("div")({name:"SidebarContainer",class:"s1abskp8",propsAsIs:!1}),me=({children:o,direction:t,style:n,className:r,hiding:d})=>e.jsx(_,{direction:t,style:n,hiding:d,className:r,children:e.jsx(ce,{children:o})}),pe=o=>(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB11_LBAR||(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB21_LBAR,ue=o=>(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB11||(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB21,ye=({advertisement:o,close:t,skipTypeCheck:n,skipAutoClose:r,layoutMode:d="side-by-side",sidebar:a,isNotification:c,banner:m,markAsViewed:u,open:l})=>o.promotion?c&&o.notification?e.jsx(Go,{open:l,notification:o.notification,promotionId:o.question.id}):!a&&!m&&(n||ue(o.promotion))?e.jsx(Wo,{className:"PromoOverlayContainer",children:e.jsx(G,{markAsViewed:u,promotionId:o.question.id,promotion:o.promotion,onClose:t,skipAutoClose:r})}):a&&(n||pe(o.promotion))?e.jsx(me,{className:"PromoSidebarContainer",direction:a,hiding:!1,children:e.jsx(G,{markAsViewed:u,promotionId:o.question.id,promotion:o.promotion,onClose:t,skipAutoClose:r})}):m?e.jsx(ro,{promotionId:o.question.id,hiding:!1,promotion:o.promotion,direction:m}):null:null,fe=s.styled_default("div")({name:"AdvertisementUIWrap",class:"aa6pjif",propsAsIs:!1}),ve=o=>{const t=o.target;if(t instanceof HTMLAnchorElement&&t.target==="_blank"){const n=t.getAttribute("data-promo-id")||"",r=t.getAttribute("data-promo-type")||i.PromotionType.UNSET;t.getAttribute("data-analytics")==="button"&&s.eventBus.emit("advertisement",{action:"buttonSelect",payload:{id:n,type:r}}),t.getAttribute("data-analytics")==="banner"&&s.eventBus.emit("advertisement",{action:"bannerSelect",payload:{id:n,type:r}})}},Ie=({gamification:o,layoutMode:t,skipAutoClose:n,skipTypeCheck:r,sidebar:d,banner:a,notification:c,isMobileScreen:m,persistent:u})=>{var l,y,v;const p=W.useRef(null),f=s.useStore(o.advertisement.$store);s.L(p,{enabled:!!f.data,event:"click",listener:ve});const A=!a&&!d;if(f.data===void 0||!u&&f.isViewed)return null;const g=((v=(y=(l=f==null?void 0:f.data)==null?void 0:l.notification)==null?void 0:y.promotion)==null?void 0:v.mode)===i.NotificationPromotionMode.LOWER_THIRD;return e.jsx(fe,{ref:p,style:{height:A?"auto":"100%"},className:s.cx_default("SL-AdvertisementUIWrap",m&&"mobile-view",g&&"SL-AdvertisementUIWrap--lower-third"),children:e.jsx(ye,{skipTypeCheck:r,sidebar:d,banner:a,advertisement:f.data,close:f.close,markAsViewed:o.advertisement.markAsViewed,open:o.advertisement.open,layoutMode:t,isNotification:c,skipAutoClose:n})})},K=({sdk:o,sidebar:t,banner:n,skipAutoClose:r,skipTypeCheck:d,layoutMode:a,isMobileScreen:c,persistent:m,notification:u})=>{const l=s.useStore(o.featuresList.getStore());if(t&&n)return e.jsx("div",{style:{color:"red"},children:"define either sidebar or banner, not both."});if(!l)return null;const y=o.getFeature(i.SdkOverlayType.GAMES);return y?e.jsx(Ie,{gamification:y,sidebar:t,banner:n,layoutMode:a,isMobileScreen:c,persistent:m,notification:u,skipTypeCheck:d,skipAutoClose:r}):null},Ae=({event:o,sidebar:t,banner:n,isMobileScreen:r,skipAutoClose:d,persistent:a,theme:c,notification:m,skipTypeCheck:u})=>{const l=s.useStreamLayer(),y=s.useStreamLayerUI(),v=s.useStreamLayerTheme();return!l||t&&!y.promotionSidebar||n&&!y.promotionBanner||m&&!y.promotionNotification||!n&&!t&&!m&&!y.promotionOverlay?null:e.jsxs("div",{className:"StreamLayerSDK",children:[e.jsx(s.d,{customTheme:c??v,children:e.jsx(K,{sdk:l,sidebar:t,banner:n,isMobileScreen:r,persistent:a,notification:m,skipTypeCheck:u,skipAutoClose:d,layoutMode:"side-by-side"})}),o!==void 0&&e.jsx(s.StreamLayerSDKEvent,{event:o})]})};exports.StreamLayerSDKAdvertisement=Ae;exports.StreamLayerSDKAdvertisementUI=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),K=require("react"),s=require("./index2.js"),i=require("./useStreamLayerApp2.js"),X=s.styled_default("div")({name:"Container",class:"c5b6wdg",propsAsIs:!1}),J="a1rlj479",Q="s35f1di",Y="sj4471g",Z="b12050d8",oo="b1d5ybek",eo=o=>o==="left"||o==="right"?Q:Z,so=o=>o==="left"||o==="right"?Y:oo,to=o=>o==="left"?"avdxyl3":o==="right"?"a1bisd08":o==="top"?"a1u9y2aj":"a1qqaks",j=({children:o,style:t,className:n,enabled:r=!0,hiding:d,direction:l="left",onAnimationEnd:c})=>e.jsx(X,{style:t,className:s.cx_default(n,J,to(l),r&&!d&&eo(l),r&&d&&so(l)),onAnimationEnd:c,children:o}),no=s.styled_default("a")({name:"Link",class:"l1sgte8c",propsAsIs:!1}),io=s.styled_default("div")({name:"BannerContainer",class:"b7yfc72",propsAsIs:!1}),ao=()=>no,lo=s.styled_default(ao())({name:"BannerLink",class:"bejjq94",propsAsIs:!0}),ro=({promotion:o,promotionId:t,hiding:n,direction:r="bottom"})=>{var d,l;if(!((d=o.additionalBanner)!=null&&d.imageUrl))return null;let c=(l=o.banner)==null?void 0:l.url;return c&&c.indexOf("http")!==0&&(c=`https://${c}`),e.jsx(j,{direction:r,hiding:n,children:e.jsx(io,{className:"BannerContainer",children:e.jsx(lo,{className:"BannerLink",href:c,style:{backgroundImage:`url(${o.additionalBanner.imageUrl})`},"data-promo-id":t,"data-promo-type":o.type,"data-analytics":"banner",target:"_blank"})})})},co=s.styled_default("div")({name:"NotificationContent",class:"n18wsqoo",propsAsIs:!1}),mo=s.styled_default("div")({name:"Body",class:"b1ia90c2",propsAsIs:!1}),po=s.styled_default("div")({name:"Title",class:"tg2z08v",propsAsIs:!1}),uo=s.styled_default("div")({name:"Text",class:"t59zdk1",propsAsIs:!1}),_=s.styled_default("div")({name:"MediaImgBottom",class:"m1ab9fq",propsAsIs:!1}),yo=()=>_,fo=s.styled_default(yo())({name:"MediaImgMiddle",class:"m9fsr0y",propsAsIs:!0}),vo=s.styled_default("img")({name:"CtaIcon",class:"cvi9y5q",propsAsIs:!1}),Io=s.styled_default("button")({name:"Button",class:"bgl6boa",propsAsIs:!1}),Ao=s.styled_default("div")({name:"Logo",class:"l5mq0z",propsAsIs:!1}),go=s.styled_default("div")({name:"Footer",class:"f1mse0ft",propsAsIs:!1}),ho=s.styled_default("div")({name:"Vector",class:"v1hcloah",propsAsIs:!1}),xo=s.styled_default("div")({name:"NotificationContainer",class:"n3n65jf",propsAsIs:!1}),bo={[i.NotificationPromotionImagePosition.BOTTOM]:_,[i.NotificationPromotionImagePosition.MIDDLE]:fo},jo=({src:o,imagePosition:t})=>{const n=bo[t]||_;return e.jsx(n,{children:e.jsx("img",{src:o,alt:""})})},_o=({notification:o,open:t})=>{if(!o||!o.promotion||o.enabled!==i.NotificationEnabled.NOTIFICATION_ENABLED)return null;const{title:n,body:r,image:d,promotion:l}=o,{sponsorLogo:c,sponsorLogoMode:m,imagePosition:u,ctaButton:a}=l;return e.jsxs(xo,{className:"SL_Lower_Third_Notification",onClick:t,children:[e.jsxs(co,{children:[e.jsx(jo,{src:d,imagePosition:u}),e.jsxs(mo,{children:[n&&e.jsx(po,{children:n}),r&&e.jsx(uo,{children:r})]})]}),e.jsxs(go,{children:[m!==i.NotificationSponsorLogoMode.NOTIFICATION_SPONSOR_LOGO_NONE&&e.jsxs(e.Fragment,{children:[e.jsx(Ao,{children:e.jsx("img",{src:c,alt:n})}),e.jsx(ho,{})]}),e.jsxs(Io,{name:"promo-button",style:{color:a==null?void 0:a.textColor,backgroundColor:a==null?void 0:a.color},children:[(a==null?void 0:a.ctaIcon)&&(a==null?void 0:a.ctaIconMode)===i.CtaIconMode.CTA_ICON_TRANSPARENT&&e.jsx(vo,{src:a==null?void 0:a.ctaIcon,alt:"cta-icon"}),(a==null?void 0:a.label)||"Open"]})]})]})},No=s.styled_default("div")({name:"NotificationContent",class:"n1ku6hz",propsAsIs:!1}),So=s.styled_default("div")({name:"NotificationContainer",class:"nbxqmol",propsAsIs:!1}),To=s.styled_default("div")({name:"Body",class:"b1gu3eml",propsAsIs:!1}),$o=s.styled_default("div")({name:"Title",class:"t1u17zva",propsAsIs:!1}),Co=s.styled_default("div")({name:"Text",class:"t10ko1g",propsAsIs:!1}),h=s.styled_default("div")({name:"Media",class:"mntc42e",propsAsIs:!1}),Lo=()=>h,U=s.styled_default(Lo())({name:"MediaImgFit",class:"ml060eo",propsAsIs:!0}),Mo=()=>h,W=s.styled_default(Mo())({name:"MediaImgCentered",class:"m1vqlvig",propsAsIs:!0}),Po=()=>W,ko=s.styled_default(Po())({name:"MediaImgBottom",class:"m1e7tvi5",propsAsIs:!0}),Eo=()=>h,Oo=s.styled_default(Eo())({name:"MediaImgSolid",class:"mqvntt2",propsAsIs:!0}),Bo=()=>h,Do=s.styled_default(Bo())({name:"MediaImgMiddle",class:"m12jtj3u",propsAsIs:!0}),Ro=s.styled_default("img")({name:"CtaIcon",class:"ckq1frv",propsAsIs:!1}),qo=s.styled_default("button")({name:"Button",class:"bis90pl",propsAsIs:!1}),wo=()=>s.a1,Fo=s.styled_default(wo())({name:"StyledChevronRight",class:"s9mjmz3",propsAsIs:!0}),Uo=s.styled_default("div")({name:"Logo",class:"l1cf50a7",propsAsIs:!1}),zo={[i.NotificationPromotionImagePosition.UNSET]:U,[i.NotificationPromotionImagePosition.FIT]:U,[i.NotificationPromotionImagePosition.CENTERED]:W,[i.NotificationPromotionImagePosition.BOTTOM]:ko,[i.NotificationPromotionImagePosition.SOLID]:Oo,[i.NotificationPromotionImagePosition.MIDDLE]:Do},Vo=({src:o,imagePosition:t})=>{const n=zo[t];return e.jsx(n,{children:e.jsx("img",{src:o,alt:""})})},Go=({notification:o,open:t,promotionId:n,hiding:r,direction:d="left"})=>{if(!o||!o.promotion||o.enabled!==i.NotificationEnabled.NOTIFICATION_ENABLED)return null;if(o.promotion.mode===i.NotificationPromotionMode.LOWER_THIRD)return e.jsx(_o,{notification:o,open:t});const{title:l,body:c,image:m,promotion:u}=o,{sponsorLogo:a,sponsorLogoMode:y,imagePosition:v,ctaButton:p}=u;return e.jsx(j,{className:"SL_Rich_Notification",direction:d,hiding:r,children:e.jsxs(So,{onClick:t,children:[y!==i.NotificationSponsorLogoMode.NOTIFICATION_SPONSOR_LOGO_NONE&&e.jsx(Uo,{children:e.jsx("img",{src:a,alt:l})}),e.jsxs(No,{children:[e.jsx(Vo,{src:m,imagePosition:v}),e.jsxs(To,{children:[l&&e.jsx($o,{children:l}),c&&e.jsx(Co,{children:c})]}),e.jsxs(qo,{name:"promo-button",style:{color:p==null?void 0:p.textColor,backgroundColor:p==null?void 0:p.color},children:[(p==null?void 0:p.ctaIcon)&&(p==null?void 0:p.ctaIconMode)===i.CtaIconMode.CTA_ICON_TRANSPARENT&&e.jsx(Ro,{src:p==null?void 0:p.ctaIcon,alt:"cta-icon"}),(p==null?void 0:p.label)||"Open"]}),e.jsx(Fo,{name:"chevronRight"})]})]})})},Ko=s.styled_default("div")({name:"OverlayContainer",class:"okzhq2w",propsAsIs:!1}),Wo=s.styled_default("div")({name:"PromoOverlay",class:"pmgz5i",propsAsIs:!1}),Ho=s.styled_default("div")({name:"Header",class:"hyxi3jt",propsAsIs:!1}),Xo=s.styled_default("div")({name:"HeaderContent",class:"h149e3gp",propsAsIs:!1}),Jo="h10toh7",z=s.styled_default("img")({name:"SponsorLogo",class:"s1jyea6t",propsAsIs:!1}),Qo=s.styled_default("div")({name:"SponsorName",class:"szpfa3h",propsAsIs:!1}),Yo=s.styled_default("div")({name:"Media",class:"m1crmu01",propsAsIs:!1}),Zo=s.styled_default("img")({name:"PromoImg",class:"p1l37r8s",propsAsIs:!1}),oe="s1nmch9k",V=s.styled_default("div")({name:"Content",class:"c1er0ljd",propsAsIs:!1}),ee=s.styled_default("div")({name:"Description",class:"dydopmr",propsAsIs:!1}),se=s.styled_default("div")({name:"Sponsor",class:"s1w6nt04",propsAsIs:!1}),te=s.styled_default("div")({name:"SponsorText",class:"s1evcmtq",propsAsIs:!1}),ne=s.styled_default("div")({name:"ADLogo",class:"awodx0x",propsAsIs:!1}),ie=s.styled_default("span")({name:"SponsoredText",class:"s1q3n6oi",propsAsIs:!1}),ae=s.styled_default("div")({name:"ActionBtnWrap",class:"a8d4xfk",propsAsIs:!1}),le=s.styled_default("a")({name:"ActionButton",class:"at6oobh",propsAsIs:!1}),re=s.styled_default("div")({name:"Title",class:"t1gyg7tt",propsAsIs:!1}),de="h17rwbtk",G=({promotion:o,skipAutoClose:t,promotionId:n,onClose:r,markAsViewed:d})=>{var l,c,m,u,a,y,v,p,f,A,g,N,S,T,$,C,L,M,P,k,E,O,B,D,R,q,w,F;const x=o.type===i.PromotionType.INGAME_IAB11_LBAR||o.type===i.PromotionType.INGAME_IAB11,b=((l=o.sponsor)==null?void 0:l.logo)&&o.logoMode===i.PromotionLogoMode.CENTER;K.useEffect(()=>{n&&o.type&&d&&d()},[n,o.type,d]);let I=(c=o.banner)==null?void 0:c.url;return I&&I.indexOf("http")!==0&&(I=`https://${I}`),e.jsxs(Wo,{className:"PromoOverlay",children:[e.jsxs(Ho,{children:[e.jsxs(Xo,{className:s.cx_default(!b&&Jo),children:[((m=o.sponsor)==null?void 0:m.logo)&&o.logoMode===i.PromotionLogoMode.LEFT&&e.jsx(z,{src:(u=o.sponsor)==null?void 0:u.logo,alt:"promo"}),e.jsxs(se,{style:{paddingLeft:(a=o.sponsor)!=null&&a.logo&&o.logoMode===i.PromotionLogoMode.LEFT?"0px":"8px"},children:[((y=o.sponsor)==null?void 0:y.logo)&&o.logoMode===i.PromotionLogoMode.LEFT&&e.jsx(Qo,{children:(v=o.sponsor)==null?void 0:v.name}),e.jsxs(te,{className:"SponsorText",children:[e.jsx(ne,{children:"AD"}),e.jsx(ie,{children:"SPONSORED"})]})]})]}),e.jsx(s.S,{className:"ClosePromoIcon",close:r,autoClose:(p=o.closeTimer)==null?void 0:p.auto,duration:t?0:(f=o.closeTimer)==null?void 0:f.seconds})]}),e.jsxs(Yo,{children:[b&&e.jsx(z,{className:oe,src:(A=o.sponsor)==null?void 0:A.logo,alt:"promo"}),e.jsx(V,{children:(N=(g=o.banner)==null?void 0:g.video)!=null&&N.url?e.jsx(s.X,{source:(T=(S=o.banner)==null?void 0:S.video)==null?void 0:T.url,poster:(C=($=o.banner)==null?void 0:$.video)==null?void 0:C.thumbnailUrl,aspectRatio:x?"1/1":"16/9",onPlay:()=>{s.eventBus.emit("advertisement",{action:"videoPlay",payload:{id:n,type:o.type}})},autoPlay:o.autoPlayVideo===i.AutoPlayVideo.ENABLED}):(L=o.banner)!=null&&L.imageUrl?e.jsx(Zo,{style:x?{aspectRatio:"1/1"}:{},src:(M=o.banner)==null?void 0:M.imageUrl,alt:"promo"}):null}),!x&&e.jsxs(V,{children:[((P=o.banner)==null?void 0:P.title)&&e.jsx(re,{className:s.cx_default("AdvTitle",b&&de),children:(k=o.banner)==null?void 0:k.title}),((E=o.banner)==null?void 0:E.body)&&e.jsx(ee,{className:"AdvDescription",children:(O=o.banner)==null?void 0:O.body})]})]}),o.buttonType!==i.PromotionButtonType.NO_BUTTON&&e.jsx(ae,{children:e.jsx(le,{href:I,style:{backgroundColor:((D=(B=o.banner)==null?void 0:B.ctaButton)==null?void 0:D.color)||"#009dc4",color:((q=(R=o.banner)==null?void 0:R.ctaButton)==null?void 0:q.textColor)||"#fff"},"data-analytics":"button","data-promo-id":n,"data-promo-type":o.type,target:"_blank",children:(F=(w=o.banner)==null?void 0:w.ctaButton)==null?void 0:F.label})})]})},ce=s.styled_default("div")({name:"SidebarContainer",class:"s1abskp8",propsAsIs:!1}),me=({children:o,direction:t,style:n,className:r,hiding:d})=>e.jsx(j,{direction:t,style:n,hiding:d,className:r,children:e.jsx(ce,{children:o})}),pe=o=>(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB11_LBAR||(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB21_LBAR,ue=o=>(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB11||(o==null?void 0:o.type)===i.PromotionType.INGAME_IAB21,ye=({advertisement:o,close:t,skipTypeCheck:n,skipAutoClose:r,layoutMode:d="side-by-side",sidebar:l,isNotification:c,banner:m,markAsViewed:u,open:a})=>o.promotion?c&&o.notification?e.jsx(Go,{open:a,notification:o.notification,promotionId:o.question.id}):!l&&!m&&(n||ue(o.promotion))?e.jsx(Ko,{className:"PromoOverlayContainer",children:e.jsx(G,{markAsViewed:u,promotionId:o.question.id,promotion:o.promotion,onClose:t,skipAutoClose:r})}):l&&(n||pe(o.promotion))?e.jsx(me,{className:"PromoSidebarContainer",direction:l,hiding:!1,children:e.jsx(G,{markAsViewed:u,promotionId:o.question.id,promotion:o.promotion,onClose:t,skipAutoClose:r})}):m?e.jsx(ro,{promotionId:o.question.id,hiding:!1,promotion:o.promotion,direction:m}):null:null,fe=s.styled_default("div")({name:"AdvertisementUIWrap",class:"aa6pjif",propsAsIs:!1}),ve=o=>{const t=o.target;if(t instanceof HTMLAnchorElement&&t.target==="_blank"){const n=t.getAttribute("data-promo-id")||"",r=t.getAttribute("data-promo-type")||i.PromotionType.UNSET;t.getAttribute("data-analytics")==="button"&&s.eventBus.emit("advertisement",{action:"buttonSelect",payload:{id:n,type:r}}),t.getAttribute("data-analytics")==="banner"&&s.eventBus.emit("advertisement",{action:"bannerSelect",payload:{id:n,type:r}})}},Ie=({gamification:o,layoutMode:t,skipAutoClose:n,skipTypeCheck:r,sidebar:d,banner:l,notification:c,isMobileScreen:m,persistent:u})=>{var a,y,v;const p=K.useRef(null),f=s.useStore(o.advertisement.$store);s.L(p,{enabled:!!f.data,event:"click",listener:ve});const A=!l&&!d;if(f.data===void 0||!u&&f.isViewed)return null;const g=((v=(y=(a=f==null?void 0:f.data)==null?void 0:a.notification)==null?void 0:y.promotion)==null?void 0:v.mode)===i.NotificationPromotionMode.LOWER_THIRD;return e.jsx(fe,{ref:p,style:{height:A?"auto":"100%"},className:s.cx_default("SL-AdvertisementUIWrap",m&&"mobile-view",g&&"SL-AdvertisementUIWrap--lower-third"),children:e.jsx(ye,{skipTypeCheck:r,sidebar:d,banner:l,advertisement:f.data,close:f.close,markAsViewed:o.advertisement.markAsViewed,open:o.advertisement.open,layoutMode:t,isNotification:c,skipAutoClose:n})})},H=({sdk:o,sidebar:t,banner:n,skipAutoClose:r,skipTypeCheck:d,layoutMode:l,isMobileScreen:c,persistent:m,notification:u})=>{const a=s.useStore(o.featuresList.getStore());if(t&&n)return e.jsx("div",{style:{color:"red"},children:"define either sidebar or banner, not both."});if(!a)return null;const y=o.getFeature(i.SdkOverlayType.GAMES);return y?e.jsx(Ie,{gamification:y,sidebar:t,banner:n,layoutMode:l,isMobileScreen:c,persistent:m,notification:u,skipTypeCheck:d,skipAutoClose:r}):null},Ae=({event:o,sidebar:t,banner:n,isMobileScreen:r,skipAutoClose:d,persistent:l,theme:c,notification:m,skipTypeCheck:u})=>{const a=s.useStreamLayer(),y=s.useStreamLayerUI(),v=s.useStreamLayerTheme();return a?t&&!y.promotionSidebar?o!==void 0&&e.jsx(s.StreamLayerSDKEvent,{event:o}):n&&!y.promotionBanner?o!==void 0&&e.jsx(s.StreamLayerSDKEvent,{event:o}):m&&!y.promotionNotification?o!==void 0&&e.jsx(s.StreamLayerSDKEvent,{event:o}):!n&&!t&&!m&&!y.promotionOverlay?o!==void 0&&e.jsx(s.StreamLayerSDKEvent,{event:o}):e.jsxs("div",{className:"StreamLayerSDK",children:[e.jsx(s.d,{customTheme:c??v,children:e.jsx(H,{sdk:a,sidebar:t,banner:n,isMobileScreen:r,persistent:l,notification:m,skipTypeCheck:u,skipAutoClose:d,layoutMode:"side-by-side"})}),o!==void 0&&e.jsx(s.StreamLayerSDKEvent,{event:o})]}):null};exports.StreamLayerSDKAdvertisement=Ae;exports.StreamLayerSDKAdvertisementUI=H;
@@ -14,4 +14,4 @@
14
14
  `),c=`
15
15
  `+n+(o.length?s("│"):" ")+" ";return n+r.join(c)+`
16
16
  `+o.map(function(l,m){var u=m===o.length-1,d=l.nodes&&l.nodes.length,y=n+(u?" ":s("│"))+" ";return n+s(u?"└":"├")+s("─")+s(d?"┬":"─")+" "+e(l,y,a).slice(n.length+2)}).join("")};const h_=k_,_r=Symbol("avvio.TimeTree.untrackNode"),Oa=Symbol("avvio.TimeTree.trackNode"),Er=Symbol("avvio.TimeTree.getParent"),br=Symbol("avvio.TimeTree.getNode"),Nr=Symbol("avvio.TimeTree.addNode");let S_=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Oa](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])}[_r](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)}[Er](e){if(e===null)return this.root;const t=this.tableLabel.get(e);return t.id?t:t[t.length-1]}[br](e){return this.tableId.get(e)}[Nr](e,t,n){if(e===null)return this.root={id:"root",label:t,start:n,nodes:[]},this[Oa](this.root),this.root.id;const a=this[Er](e),s=`${t}-${Math.random()}`,o={id:s,parent:e,start:n,label:t,nodes:[]};return a.nodes.push(o),this[Oa](o),s}start(e,t,n=Date.now()){return this[Nr](e,t,n)}stop(e,t=Date.now()){const n=this[br](e);n&&(n.stop=t,n.diff=n.stop-n.start||0,this[_r](n))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const e=n=>(n.label=`${n.label} ${n.diff} ms`,n.nodes.length>0&&(n.nodes=n.nodes.map(a=>e(a))),n),t=e(this.toJSON());return h_(t)}};var __=S_,Gs={exports:{}},ss={exports:{}},va,Ir;function E_(){if(Ir)return va;Ir=1;var e=1e3,t=e*60,n=t*60,a=n*24,s=a*7,o=a*365.25;va=function(u,d){d=d||{};var y=typeof u;if(y==="string"&&u.length>0)return r(u);if(y==="number"&&isFinite(u))return d.long?l(u):c(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function r(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var y=parseFloat(d[1]),T=(d[2]||"ms").toLowerCase();switch(T){case"years":case"year":case"yrs":case"yr":case"y":return y*o;case"weeks":case"week":case"w":return y*s;case"days":case"day":case"d":return y*a;case"hours":case"hour":case"hrs":case"hr":case"h":return y*n;case"minutes":case"minute":case"mins":case"min":case"m":return y*t;case"seconds":case"second":case"secs":case"sec":case"s":return y*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function c(u){var d=Math.abs(u);return d>=a?Math.round(u/a)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=a?m(u,d,a,"day"):d>=n?m(u,d,n,"hour"):d>=t?m(u,d,t,"minute"):d>=e?m(u,d,e,"second"):u+" ms"}function m(u,d,y,T){var f=d>=y*1.5;return Math.round(u/y)+" "+T+(f?"s":"")}return va}function b_(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=s,n.enabled=r,n.humanize=E_(),n.destroy=m,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let y=0;y<u.length;y++)d=(d<<5)-d+u.charCodeAt(y),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,y=null,T,f;function _(...N){if(!_.enabled)return;const E=_,b=Number(new Date),w=b-(d||b);E.diff=w,E.prev=d,E.curr=b,d=b,N[0]=n.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let v=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(A,L)=>{if(A==="%%")return"%";v++;const O=n.formatters[L];if(typeof O=="function"){const D=N[v];A=O.call(E,D),N.splice(v,1),v--}return A}),n.formatArgs.call(E,N),(E.log||n.log).apply(E,N)}return _.namespace=u,_.useColors=n.useColors(),_.color=n.selectColor(u),_.extend=a,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(T!==n.namespaces&&(T=n.namespaces,f=n.enabled(u)),f),set:N=>{y=N}}),typeof n.init=="function"&&n.init(_),_}function a(u,d){const y=n(this.namespace+(typeof d>"u"?":":d)+u);return y.log=this.log,y}function s(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const y=(typeof u=="string"?u:"").split(/[\s,]+/),T=y.length;for(d=0;d<T;d++)y[d]&&(u=y[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function o(){const u=[...n.names.map(c),...n.skips.map(c).map(d=>"-"+d)].join(",");return n.enable(""),u}function r(u){if(u[u.length-1]==="*")return!0;let d,y;for(d=0,y=n.skips.length;d<y;d++)if(n.skips[d].test(u))return!1;for(d=0,y=n.names.length;d<y;d++)if(n.names[d].test(u))return!0;return!1}function c(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var N_=b_;(function(e,t){t.formatArgs=a,t.save=s,t.load=o,t.useColors=n,t.storage=r(),t.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;l.splice(1,0,m,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(u++,y==="%c"&&(d=u))}),l.splice(d,0,m)}t.log=console.debug||console.log||(()=>{});function s(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug")}catch{}}function o(){let l;try{l=t.storage.getItem("debug")}catch{}return!l&&typeof C<"u"&&"env"in C&&(l=C.env.DEBUG),l}function r(){try{return localStorage}catch{}}e.exports=N_(t);const{formatters:c}=e.exports;c.j=function(l){try{return JSON.stringify(l)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}})(ss,ss.exports);var Cc=ss.exports;const I_=ic,O_=fc.EventEmitter,v_=Xn.inherits,ue=Cc("avvio"),{AVV_ERR_READY_TIMEOUT:A_}=Pc,Aa=Symbol.for("plugin-meta");function w_(e,t){return e[Aa]&&e[Aa].name?e[Aa].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
17
- `).slice(0,2).map(n=>n.trim()).join(" -- ")}function R_(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function Vt(e,t,n,a,s){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=s===void 0?e._timeout:s,this.name=w_(t,n),this.isAfter=a,this.q=I_(e,L_,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}v_(Vt,O_);Vt.prototype.exec=function(e,t){const n=this.func;let a=!1;const s=this.name;if(this.parent._error&&!this.isAfter){ue("skipping loading of plugin as parent errored and it is not an after",s),C.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(l){return ue("override errored",s),t(l)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,ue("exec",s);let o;const r=l=>{if(a){ue("loading complete",s);return}this._error=l,ue(l?"exec errored":"exec completed",s),a=!0,o&&clearTimeout(o),t(l)};this.timeout>0&&(ue("setting up timeout",s,this.timeout),o=setTimeout(function(){ue("timed out",s),o=null;const l=new A_(s);l.fn=n,r(l)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const c=n(this.server,this.opts,r);c&&typeof c.then=="function"&&(ue("exec: resolving promise",s),c.then(()=>C.nextTick(r),l=>C.nextTick(r,l)))};Vt.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,a)=>{this._error=n,this.q.pause(),n?(ue("rejecting promise",this.name,n),this._promise.reject(n)):(ue("resolving promise",this.name),this._promise.resolve()),this._promise=null,C.nextTick(a,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=R_(),t=this._promise.promise,this.server?e():this.on("start",e)),t};Vt.prototype.enqueue=function(e,t){ue("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};Vt.prototype.finish=function(e,t){ue("finish",this.name,e);const n=()=>{this.loaded||(ue("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const a=()=>{if(ue("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{ue("wrap"),queueMicrotask(a)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else ue("delayed",this.name),this.q.drain=()=>{ue("drain",this.name),this.q.drain=M_,queueMicrotask(a)}};queueMicrotask(a),this.q.resume()};function L_(e,t){const n=this;C.nextTick(Bs.bind(n),e,t)}function Bs(e,t){if(typeof e.func.then=="function"){e.func.then(a=>{typeof a.default=="function"&&(a=a.default),e.func=a,Bs.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,a=>{e.finish(a,s=>{this._current.shift(),t(s)})})}function M_(){}Gs.exports=Vt;Gs.exports.loadPlugin=Bs;var P_=Gs.exports;const Or=ic,C_=fc.EventEmitter,D_=Xn.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:wa,AVV_ERR_CALLBACK_NOT_FN:Wt,AVV_ERR_PLUGIN_NOT_VALID:U_,AVV_ERR_ROOT_PLG_BOOTED:F_,AVV_ERR_READY_TIMEOUT:G_}=Pc,B_=__,os=P_,Ft=Cc("avvio"),Vn=Symbol("kAvvio"),Ra=Symbol("kThenifyDoNotWrap");function V_(e,t,n){const a=t.expose||{},s=a.use||"use",o=a.after||"after",r=a.ready||"ready",c=a.onClose||"onClose",l=a.close||"close";if(e[s])throw new wa(s);if(e[o])throw new wa(o);if(e[r])throw new wa(r);e[s]=function(m,u){return n.use(m,u),this},Object.defineProperty(e,"then",{get:Dc.bind(n)}),e[Vn]=!0,e[o]=function(m){return typeof m!="function"?n._loadRegistered():(n.after(La(m,this)),this)},e[r]=function(m){if(m&&typeof m!="function")throw new Wt(r,typeof m);return n.ready(m?La(m,this):void 0)},e[c]=function(m){if(typeof m!="function")throw new Wt(c,typeof m);return n.onClose(Y_(m,this)),this},e[l]=function(m){if(m&&typeof m!="function")throw new Wt(l,typeof m);return m?(n.close(La(m,this)),this):n.close()}}function ce(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 ce)){const a=new ce(e,t,n);return e&&V_(e,t,a),a}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new B_,this._readyQ=Or(this,Uc,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=vr},this._closeQ=Or(this,Q_,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=vr},this._doStart=null,this._root=new os(this,q_.bind(this),t,!1,0),this._root.once("start",(a,s,o)=>{const r=this.pluginTree.start(null,s,o);this._root.once("loaded",(c,l,m)=>{this.pluginTree.stop(r,m)})}),os.loadPlugin.call(this,this._root,a=>{Ft("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){a=a||this._error||s}if(a){if(this._error=a,this._readyQ.length()===0)throw a}else this.booted=!0;this._readyQ.resume()})}function q_(e,t,n){this._doStart=n,t.autostart&&this.start()}D_(ce,C_);ce.prototype.start=function(){return this.started=!0,C.nextTick(this._doStart),this};ce.prototype.override=function(e,t,n){return e};function x_(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new U_(typeof e);return e}ce.prototype[Vn]=!0;ce.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};ce.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&C.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(ce.prototype,"then",{get:Dc});ce.prototype._addPlugin=function(e,t,n){if(e=x_(e),t=t||{},this.booted)throw new F_;const a=this._current[0],s=new os(this,e,t,n);if(s.once("start",(o,r,c)=>{const l=this.pluginTree.start(a.name,r,c);s.once("loaded",(m,u,d)=>{this.pluginTree.stop(l,d)})}),a.loaded)throw new Error(s.name,a.name);return a.enqueue(s,o=>{o&&(this._error=o)}),s};ce.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,a,s){Uc.call(this,e,s)}return this};ce.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};ce.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new Wt("close",typeof e)}else t=new Promise(function(n,a){e=function(s){if(s)return a(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),C.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};ce.prototype.ready=function(e){if(e){if(typeof e!="function")throw new Wt("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(s),this.start();const a=this._current[0].server;function s(o,r,c){o?n(o):t(a),C.nextTick(c)}})};ce.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ce.prototype.toJSON=function(){return this.pluginTree.toJSON()};function vr(){}function Dc(){if(this.booted){Ft("thenify returning null because we are already booted");return}if(this[Ra]){this[Ra]=!1;return}return Ft("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[Ra]=!0,e(this._server)),t)}function Uc(e,t){const n=this._server,a=this._error;let s;if(this._error=null,e.length===0)this._error=a,s=e(),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>C.nextTick(t),o=>C.nextTick(t,o)):C.nextTick(t);else if(e.length===1)s=e(a),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>C.nextTick(t),o=>C.nextTick(t,o)):C.nextTick(t);else if(this._timeout===0){const o=r=>{this._error=r,t(this._error)};e.length===2?e(a,o):e(a,n,o)}else H_.call(this,e,a,n,t)}function H_(e,t,n,a){const s=e.name;Ft("setting up ready timeout",s,this._timeout);let o=setTimeout(()=>{Ft("timed out",s),o=null;const c=new G_(s);c.fn=e,this._error=c,a(c)},this._timeout);e.length===2?e(t,r.bind(this)):e(t,n,r.bind(this));function r(c){o&&(clearTimeout(o),this._error=c,a(this._error))}}function Q_(e,t){const n=this._server,a=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;a?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Ft("resolving close/onClose promise"),s.then(()=>C.nextTick(t),o=>C.nextTick(t,o))):C.nextTick(t)}else e.length===2?e(a?n:this._error,t):a?e(n,t):e(this._error,n,t)}function Y_(e,t){return n.bind(t);function n(a,s){let o;e.length===0?(o=e(),o&&o.then?o.then(function(){C.nextTick(s)},s):C.nextTick(s)):e.length===1?(o=e(this),o&&o.then?o.then(function(){C.nextTick(s)},s):C.nextTick(s)):e(this,s)}}function La(e,t){return n.bind(t);function n(a,s){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){C.nextTick(s,a)},s):C.nextTick(s,a)):e.length===1?(o=e(a),o&&o.then?o.then(function(){C.nextTick(s)},s):C.nextTick(s)):e.length===2?e(a,s):e(a,this,s):C.nextTick(s)}}vs.exports=ce;vs.exports.express=function(e){return ce(e,{expose:{use:"load"}})};var j_=vs.exports;const K_=_h(j_);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(a){const s=n?window.performance.now():new Date().getTime(),o=Math.max(0,16-(s-t)),r=window.setTimeout(function(){a(s+o)},o);return t=s+o,r},window.cancelAnimationFrame=clearTimeout}})();function $_(e,t=!0,n=!0,a){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",r=K_(Object.create({}),{autostart:!1});return r.use(Jk),r.use(Qk,{onDeepLinkHandled:a==null?void 0:a.onDeepLinkHandled}),r.use($k,{videoPlayerController:a==null?void 0:a.videoPlayerController}),r.use(zk,{onContentActivate:a==null?void 0:a.onContentActivate,withAd:a==null?void 0:a.withAd,withAdNotification:a==null?void 0:a.withAdNotification}),r.use(mk,{sdkKey:e,host:s,analyticsHost:o,version:a==null?void 0:a.version}),r.use(yk),r.use(Kk),r.use(mh),r.use(Ck),r.use(Sh),r.after((c,l,m)=>{if(c)throw c;l.ready(),m()}),n&&r.after(async(c,l,m)=>{if(c)throw c;await l.sdk.initializeApp(),m()}),r.onClose(()=>{console.log("close")}),r}const W_=({sdkKey:e,plugins:t,production:n,autoEnable:a,onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:r,withAdNotification:c,withAd:l})=>{const[m,u]=qs.useState(null);return qs.useEffect(()=>{let d=!1;if(!e)return console.error("streamlayer sdk key should be provided"),u(T=>(T!==null&&typeof T.disableApp=="function"&&T.disableApp(),null)),()=>{d=!0};const y=$_(e,n,a,{version:"1.8.2",onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:r,withAdNotification:c,withAd:l});if(t)for(const T of t)y.use(T);return y.ready().then(T=>{d||(u(T.sdk),typeof window<"u")}).catch(T=>console.log(T)),()=>{d=!0,y.close(function(T){if(T)throw T})}},[e,n]),m};exports.AutoPlayVideo=xn;exports.CloseTimerAuto=ii;exports.CtaIconMode=ni;exports.InvitationFrom=Ln;exports.NotificationEnabled=wn;exports.NotificationPromotionImagePosition=ei;exports.NotificationPromotionMode=Zr;exports.NotificationSponsorLogoMode=ti;exports.PickHistoryStatus=Nt;exports.PromotionButtonType=si;exports.PromotionLogoMode=oi;exports.PromotionType=Fe;exports.QuestionImages=ot;exports.QuestionStatus=oe;exports.QuestionType=P;exports.SdkOverlayType=H;exports.createContextKey=xa;exports.global=Ha;exports.pino_1=Cr;exports.useStreamLayerApp=W_;
17
+ `).slice(0,2).map(n=>n.trim()).join(" -- ")}function R_(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function Vt(e,t,n,a,s){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=s===void 0?e._timeout:s,this.name=w_(t,n),this.isAfter=a,this.q=I_(e,L_,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}v_(Vt,O_);Vt.prototype.exec=function(e,t){const n=this.func;let a=!1;const s=this.name;if(this.parent._error&&!this.isAfter){ue("skipping loading of plugin as parent errored and it is not an after",s),C.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(l){return ue("override errored",s),t(l)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,ue("exec",s);let o;const r=l=>{if(a){ue("loading complete",s);return}this._error=l,ue(l?"exec errored":"exec completed",s),a=!0,o&&clearTimeout(o),t(l)};this.timeout>0&&(ue("setting up timeout",s,this.timeout),o=setTimeout(function(){ue("timed out",s),o=null;const l=new A_(s);l.fn=n,r(l)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const c=n(this.server,this.opts,r);c&&typeof c.then=="function"&&(ue("exec: resolving promise",s),c.then(()=>C.nextTick(r),l=>C.nextTick(r,l)))};Vt.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,a)=>{this._error=n,this.q.pause(),n?(ue("rejecting promise",this.name,n),this._promise.reject(n)):(ue("resolving promise",this.name),this._promise.resolve()),this._promise=null,C.nextTick(a,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=R_(),t=this._promise.promise,this.server?e():this.on("start",e)),t};Vt.prototype.enqueue=function(e,t){ue("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};Vt.prototype.finish=function(e,t){ue("finish",this.name,e);const n=()=>{this.loaded||(ue("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const a=()=>{if(ue("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{ue("wrap"),queueMicrotask(a)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else ue("delayed",this.name),this.q.drain=()=>{ue("drain",this.name),this.q.drain=M_,queueMicrotask(a)}};queueMicrotask(a),this.q.resume()};function L_(e,t){const n=this;C.nextTick(Bs.bind(n),e,t)}function Bs(e,t){if(typeof e.func.then=="function"){e.func.then(a=>{typeof a.default=="function"&&(a=a.default),e.func=a,Bs.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,a=>{e.finish(a,s=>{this._current.shift(),t(s)})})}function M_(){}Gs.exports=Vt;Gs.exports.loadPlugin=Bs;var P_=Gs.exports;const Or=ic,C_=fc.EventEmitter,D_=Xn.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:wa,AVV_ERR_CALLBACK_NOT_FN:Wt,AVV_ERR_PLUGIN_NOT_VALID:U_,AVV_ERR_ROOT_PLG_BOOTED:F_,AVV_ERR_READY_TIMEOUT:G_}=Pc,B_=__,os=P_,Ft=Cc("avvio"),Vn=Symbol("kAvvio"),Ra=Symbol("kThenifyDoNotWrap");function V_(e,t,n){const a=t.expose||{},s=a.use||"use",o=a.after||"after",r=a.ready||"ready",c=a.onClose||"onClose",l=a.close||"close";if(e[s])throw new wa(s);if(e[o])throw new wa(o);if(e[r])throw new wa(r);e[s]=function(m,u){return n.use(m,u),this},Object.defineProperty(e,"then",{get:Dc.bind(n)}),e[Vn]=!0,e[o]=function(m){return typeof m!="function"?n._loadRegistered():(n.after(La(m,this)),this)},e[r]=function(m){if(m&&typeof m!="function")throw new Wt(r,typeof m);return n.ready(m?La(m,this):void 0)},e[c]=function(m){if(typeof m!="function")throw new Wt(c,typeof m);return n.onClose(Y_(m,this)),this},e[l]=function(m){if(m&&typeof m!="function")throw new Wt(l,typeof m);return m?(n.close(La(m,this)),this):n.close()}}function ce(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 ce)){const a=new ce(e,t,n);return e&&V_(e,t,a),a}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new B_,this._readyQ=Or(this,Uc,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=vr},this._closeQ=Or(this,Q_,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=vr},this._doStart=null,this._root=new os(this,q_.bind(this),t,!1,0),this._root.once("start",(a,s,o)=>{const r=this.pluginTree.start(null,s,o);this._root.once("loaded",(c,l,m)=>{this.pluginTree.stop(r,m)})}),os.loadPlugin.call(this,this._root,a=>{Ft("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){a=a||this._error||s}if(a){if(this._error=a,this._readyQ.length()===0)throw a}else this.booted=!0;this._readyQ.resume()})}function q_(e,t,n){this._doStart=n,t.autostart&&this.start()}D_(ce,C_);ce.prototype.start=function(){return this.started=!0,C.nextTick(this._doStart),this};ce.prototype.override=function(e,t,n){return e};function x_(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new U_(typeof e);return e}ce.prototype[Vn]=!0;ce.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};ce.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&C.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(ce.prototype,"then",{get:Dc});ce.prototype._addPlugin=function(e,t,n){if(e=x_(e),t=t||{},this.booted)throw new F_;const a=this._current[0],s=new os(this,e,t,n);if(s.once("start",(o,r,c)=>{const l=this.pluginTree.start(a.name,r,c);s.once("loaded",(m,u,d)=>{this.pluginTree.stop(l,d)})}),a.loaded)throw new Error(s.name,a.name);return a.enqueue(s,o=>{o&&(this._error=o)}),s};ce.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,a,s){Uc.call(this,e,s)}return this};ce.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};ce.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new Wt("close",typeof e)}else t=new Promise(function(n,a){e=function(s){if(s)return a(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),C.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};ce.prototype.ready=function(e){if(e){if(typeof e!="function")throw new Wt("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(s),this.start();const a=this._current[0].server;function s(o,r,c){o?n(o):t(a),C.nextTick(c)}})};ce.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ce.prototype.toJSON=function(){return this.pluginTree.toJSON()};function vr(){}function Dc(){if(this.booted){Ft("thenify returning null because we are already booted");return}if(this[Ra]){this[Ra]=!1;return}return Ft("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[Ra]=!0,e(this._server)),t)}function Uc(e,t){const n=this._server,a=this._error;let s;if(this._error=null,e.length===0)this._error=a,s=e(),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>C.nextTick(t),o=>C.nextTick(t,o)):C.nextTick(t);else if(e.length===1)s=e(a),s&&!s[Vn]&&typeof s.then=="function"?s.then(()=>C.nextTick(t),o=>C.nextTick(t,o)):C.nextTick(t);else if(this._timeout===0){const o=r=>{this._error=r,t(this._error)};e.length===2?e(a,o):e(a,n,o)}else H_.call(this,e,a,n,t)}function H_(e,t,n,a){const s=e.name;Ft("setting up ready timeout",s,this._timeout);let o=setTimeout(()=>{Ft("timed out",s),o=null;const c=new G_(s);c.fn=e,this._error=c,a(c)},this._timeout);e.length===2?e(t,r.bind(this)):e(t,n,r.bind(this));function r(c){o&&(clearTimeout(o),this._error=c,a(this._error))}}function Q_(e,t){const n=this._server,a=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;a?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Ft("resolving close/onClose promise"),s.then(()=>C.nextTick(t),o=>C.nextTick(t,o))):C.nextTick(t)}else e.length===2?e(a?n:this._error,t):a?e(n,t):e(this._error,n,t)}function Y_(e,t){return n.bind(t);function n(a,s){let o;e.length===0?(o=e(),o&&o.then?o.then(function(){C.nextTick(s)},s):C.nextTick(s)):e.length===1?(o=e(this),o&&o.then?o.then(function(){C.nextTick(s)},s):C.nextTick(s)):e(this,s)}}function La(e,t){return n.bind(t);function n(a,s){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){C.nextTick(s,a)},s):C.nextTick(s,a)):e.length===1?(o=e(a),o&&o.then?o.then(function(){C.nextTick(s)},s):C.nextTick(s)):e.length===2?e(a,s):e(a,this,s):C.nextTick(s)}}vs.exports=ce;vs.exports.express=function(e){return ce(e,{expose:{use:"load"}})};var j_=vs.exports;const K_=_h(j_);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(a){const s=n?window.performance.now():new Date().getTime(),o=Math.max(0,16-(s-t)),r=window.setTimeout(function(){a(s+o)},o);return t=s+o,r},window.cancelAnimationFrame=clearTimeout}})();function $_(e,t=!0,n=!0,a){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",r=K_(Object.create({}),{autostart:!1});return r.use(Jk),r.use(Qk,{onDeepLinkHandled:a==null?void 0:a.onDeepLinkHandled}),r.use($k,{videoPlayerController:a==null?void 0:a.videoPlayerController}),r.use(zk,{onContentActivate:a==null?void 0:a.onContentActivate,withAd:a==null?void 0:a.withAd,withAdNotification:a==null?void 0:a.withAdNotification}),r.use(mk,{sdkKey:e,host:s,analyticsHost:o,version:a==null?void 0:a.version}),r.use(yk),r.use(Kk),r.use(mh),r.use(Ck),r.use(Sh),r.after((c,l,m)=>{if(c)throw c;l.ready(),m()}),n&&r.after(async(c,l,m)=>{if(c)throw c;await l.sdk.initializeApp(),m()}),r.onClose(()=>{console.log("close")}),r}const W_=({sdkKey:e,plugins:t,production:n,autoEnable:a,onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:r,withAdNotification:c,withAd:l})=>{const[m,u]=qs.useState(null);return qs.useEffect(()=>{let d=!1;if(!e)return console.error("streamlayer sdk key should be provided"),u(T=>(T!==null&&typeof T.disableApp=="function"&&T.disableApp(),null)),()=>{d=!0};const y=$_(e,n,a,{version:"1.8.3",onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:r,withAdNotification:c,withAd:l});if(t)for(const T of t)y.use(T);return y.ready().then(T=>{d||(u(T.sdk),typeof window<"u")}).catch(T=>console.log(T)),()=>{d=!0,y.close(function(T){if(T)throw T})}},[e,n]),m};exports.AutoPlayVideo=xn;exports.CloseTimerAuto=ii;exports.CtaIconMode=ni;exports.InvitationFrom=Ln;exports.NotificationEnabled=wn;exports.NotificationPromotionImagePosition=ei;exports.NotificationPromotionMode=Zr;exports.NotificationSponsorLogoMode=ti;exports.PickHistoryStatus=Nt;exports.PromotionButtonType=si;exports.PromotionLogoMode=oi;exports.PromotionType=Fe;exports.QuestionImages=ot;exports.QuestionStatus=oe;exports.QuestionType=P;exports.SdkOverlayType=H;exports.createContextKey=xa;exports.global=Ha;exports.pino_1=Cr;exports.useStreamLayerApp=W_;
@@ -208,4 +208,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
208
208
  `),y=`
209
209
  `+o+(p.length?c("│"):" ")+" ";return o+f.join(y)+`
210
210
  `+p.map(function(b,C){var _=C===p.length-1,N=b.nodes&&b.nodes.length,O=o+(_?" ":c("│"))+" ";return o+c(_?"└":"├")+c("─")+c(N?"┬":"─")+" "+n(b,O,l).slice(o.length+2)}).join("")};const rte=ate,qS=Symbol("avvio.TimeTree.untrackNode"),K5=Symbol("avvio.TimeTree.trackNode"),GS=Symbol("avvio.TimeTree.getParent"),WS=Symbol("avvio.TimeTree.getNode"),QS=Symbol("avvio.TimeTree.addNode");let ote=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[K5](n){this.tableId.set(n.id,n),this.tableLabel.has(n.label)?this.tableLabel.get(n.label).push(n):this.tableLabel.set(n.label,[n])}[qS](n){this.tableId.delete(n.id);const a=this.tableLabel.get(n.label);if(a.id){this.tableLabel.delete(n.label);return}a.pop(),a.length===0&&this.tableLabel.delete(n.label)}[GS](n){if(n===null)return this.root;const a=this.tableLabel.get(n);return a.id?a:a[a.length-1]}[WS](n){return this.tableId.get(n)}[QS](n,a,o){if(n===null)return this.root={id:"root",label:a,start:o,nodes:[]},this[K5](this.root),this.root.id;const l=this[GS](n),c=`${a}-${Math.random()}`,p={id:c,parent:n,start:o,label:a,nodes:[]};return l.nodes.push(p),this[K5](p),c}start(n,a,o=Date.now()){return this[QS](n,a,o)}stop(n,a=Date.now()){const o=this[WS](n);o&&(o.stop=a,o.diff=o.stop-o.start||0,this[qS](o))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const n=o=>(o.label=`${o.label} ${o.diff} ms`,o.nodes.length>0&&(o.nodes=o.nodes.map(l=>n(l))),o),a=n(this.toJSON());return rte(a)}};var ste=ote,Ry={exports:{}},U9={exports:{}},Z5,YS;function ite(){if(YS)return Z5;YS=1;var n=1e3,a=n*60,o=a*60,l=o*24,c=l*7,p=l*365.25;Z5=function(_,N){N=N||{};var O=typeof _;if(O==="string"&&_.length>0)return f(_);if(O==="number"&&isFinite(_))return N.long?b(_):y(_);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function f(_){if(_=String(_),!(_.length>100)){var N=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(N){var O=parseFloat(N[1]),R=(N[2]||"ms").toLowerCase();switch(R){case"years":case"year":case"yrs":case"yr":case"y":return O*p;case"weeks":case"week":case"w":return O*c;case"days":case"day":case"d":return O*l;case"hours":case"hour":case"hrs":case"hr":case"h":return O*o;case"minutes":case"minute":case"mins":case"min":case"m":return O*a;case"seconds":case"second":case"secs":case"sec":case"s":return O*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return O;default:return}}}}function y(_){var N=Math.abs(_);return N>=l?Math.round(_/l)+"d":N>=o?Math.round(_/o)+"h":N>=a?Math.round(_/a)+"m":N>=n?Math.round(_/n)+"s":_+"ms"}function b(_){var N=Math.abs(_);return N>=l?C(_,N,l,"day"):N>=o?C(_,N,o,"hour"):N>=a?C(_,N,a,"minute"):N>=n?C(_,N,n,"second"):_+" ms"}function C(_,N,O,R){var M=N>=O*1.5;return Math.round(_/O)+" "+R+(M?"s":"")}return Z5}function lte(n){o.debug=o,o.default=o,o.coerce=b,o.disable=p,o.enable=c,o.enabled=f,o.humanize=ite(),o.destroy=C,Object.keys(n).forEach(_=>{o[_]=n[_]}),o.names=[],o.skips=[],o.formatters={};function a(_){let N=0;for(let O=0;O<_.length;O++)N=(N<<5)-N+_.charCodeAt(O),N|=0;return o.colors[Math.abs(N)%o.colors.length]}o.selectColor=a;function o(_){let N,O=null,R,M;function V(...F){if(!V.enabled)return;const z=V,G=Number(new Date),Z=G-(N||G);z.diff=Z,z.prev=N,z.curr=G,N=G,F[0]=o.coerce(F[0]),typeof F[0]!="string"&&F.unshift("%O");let te=0;F[0]=F[0].replace(/%([a-zA-Z%])/g,(ne,ce)=>{if(ne==="%%")return"%";te++;const oe=o.formatters[ce];if(typeof oe=="function"){const Ne=F[te];ne=oe.call(z,Ne),F.splice(te,1),te--}return ne}),o.formatArgs.call(z,F),(z.log||o.log).apply(z,F)}return V.namespace=_,V.useColors=o.useColors(),V.color=o.selectColor(_),V.extend=l,V.destroy=o.destroy,Object.defineProperty(V,"enabled",{enumerable:!0,configurable:!1,get:()=>O!==null?O:(R!==o.namespaces&&(R=o.namespaces,M=o.enabled(_)),M),set:F=>{O=F}}),typeof o.init=="function"&&o.init(V),V}function l(_,N){const O=o(this.namespace+(typeof N>"u"?":":N)+_);return O.log=this.log,O}function c(_){o.save(_),o.namespaces=_,o.names=[],o.skips=[];let N;const O=(typeof _=="string"?_:"").split(/[\s,]+/),R=O.length;for(N=0;N<R;N++)O[N]&&(_=O[N].replace(/\*/g,".*?"),_[0]==="-"?o.skips.push(new RegExp("^"+_.slice(1)+"$")):o.names.push(new RegExp("^"+_+"$")))}function p(){const _=[...o.names.map(y),...o.skips.map(y).map(N=>"-"+N)].join(",");return o.enable(""),_}function f(_){if(_[_.length-1]==="*")return!0;let N,O;for(N=0,O=o.skips.length;N<O;N++)if(o.skips[N].test(_))return!1;for(N=0,O=o.names.length;N<O;N++)if(o.names[N].test(_))return!0;return!1}function y(_){return _.toString().substring(2,_.toString().length-2).replace(/\.\*\?$/,"*")}function b(_){return _ instanceof Error?_.stack||_.message:_}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}var ute=lte;(function(n,a){a.formatArgs=l,a.save=c,a.load=p,a.useColors=o,a.storage=f(),a.destroy=(()=>{let b=!1;return()=>{b||(b=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(b){if(b[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+b[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const C="color: "+this.color;b.splice(1,0,C,"color: inherit");let _=0,N=0;b[0].replace(/%[a-zA-Z%]/g,O=>{O!=="%%"&&(_++,O==="%c"&&(N=_))}),b.splice(N,0,C)}a.log=console.debug||console.log||(()=>{});function c(b){try{b?a.storage.setItem("debug",b):a.storage.removeItem("debug")}catch{}}function p(){let b;try{b=a.storage.getItem("debug")}catch{}return!b&&typeof St<"u"&&"env"in St&&(b=St.env.DEBUG),b}function f(){try{return localStorage}catch{}}n.exports=ute(a);const{formatters:y}=n.exports;y.j=function(b){try{return JSON.stringify(b)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}})(U9,U9.exports);var BE=U9.exports;const cte=pE,dte=wE.EventEmitter,mte=A6.inherits,Fa=BE("avvio"),{AVV_ERR_READY_TIMEOUT:fte}=jE,X5=Symbol.for("plugin-meta");function pte(n,a){return n[X5]&&n[X5].name?n[X5].name:typeof a<"u"&&typeof a!="function"&&a.name?a.name:n.name?n.name:n.toString().split(`
211
- `).slice(0,2).map(o=>o.trim()).join(" -- ")}function hte(){const n={};return n.promise=new Promise((a,o)=>{n.resolve=a,n.reject=o}),n}function Im(n,a,o,l,c){this.started=!1,this.func=a,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=pte(a,o),this.isAfter=l,this.q=cte(n,gte,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}mte(Im,dte);Im.prototype.exec=function(n,a){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Fa("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(a);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(b){return Fa("override errored",c),a(b)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Fa("exec",c);let p;const f=b=>{if(l){Fa("loading complete",c);return}this._error=b,Fa(b?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),a(b)};this.timeout>0&&(Fa("setting up timeout",c,this.timeout),p=setTimeout(function(){Fa("timed out",c),p=null;const b=new fte(c);b.fn=o,f(b)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,f);y&&typeof y.then=="function"&&(Fa("exec: resolving promise",c),y.then(()=>St.nextTick(f),b=>St.nextTick(f,b)))};Im.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Fa("rejecting promise",this.name,o),this._promise.reject(o)):(Fa("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let a;return this._promise?a=Promise.resolve():(this._promise=hte(),a=this._promise.promise,this.server?n():this.on("start",n)),a};Im.prototype.enqueue=function(n,a){Fa("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,a)};Im.prototype.finish=function(n,a){Fa("finish",this.name,n);const o=()=>{this.loaded||(Fa("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,a(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Fa("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Fa("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Fa("delayed",this.name),this.q.drain=()=>{Fa("drain",this.name),this.q.drain=yte,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function gte(n,a){const o=this;St.nextTick(Ly.bind(o),n,a)}function Ly(n,a){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,Ly.call(this,n,a)},a);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),a(c)})})}function yte(){}Ry.exports=Im;Ry.exports.loadPlugin=Ly;var vte=Ry.exports;const KS=pE,Tte=wE.EventEmitter,bte=A6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:J5,AVV_ERR_CALLBACK_NOT_FN:o2,AVV_ERR_PLUGIN_NOT_VALID:kte,AVV_ERR_ROOT_PLG_BOOTED:Ste,AVV_ERR_READY_TIMEOUT:wte}=jE,Cte=ste,F9=vte,km=BE("avvio"),y6=Symbol("kAvvio"),e9=Symbol("kThenifyDoNotWrap");function Ete(n,a,o){const l=a.expose||{},c=l.use||"use",p=l.after||"after",f=l.ready||"ready",y=l.onClose||"onClose",b=l.close||"close";if(n[c])throw new J5(c);if(n[p])throw new J5(p);if(n[f])throw new J5(f);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:$E.bind(o)}),n[y6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(t9(C,this)),this)},n[f]=function(C){if(C&&typeof C!="function")throw new o2(f,typeof C);return o.ready(C?t9(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new o2(y,typeof C);return o.onClose(Lte(C,this)),this},n[b]=function(C){if(C&&typeof C!="function")throw new o2(b,typeof C);return C?(o.close(t9(C,this)),this):o.close()}}function wa(n,a,o){if(typeof n=="function"&&arguments.length===1&&(o=n,a={},n=null),typeof a=="function"&&(o=a,a={}),a=a||{},!(this instanceof wa)){const l=new wa(n,a,o);return n&&Ete(n,a,l),l}a.autostart!==!1&&(a.autostart=!0),n=n||this,this._timeout=Number(a.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new Cte,this._readyQ=KS(this,zE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=ZS},this._closeQ=KS(this,Rte,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=ZS},this._doStart=null,this._root=new F9(this,_te.bind(this),a,!1,0),this._root.once("start",(l,c,p)=>{const f=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,b,C)=>{this.pluginTree.stop(f,C)})}),F9.loadPlugin.call(this,this._root,l=>{km("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function _te(n,a,o){this._doStart=o,a.autostart&&this.start()}bte(wa,Tte);wa.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};wa.prototype.override=function(n,a,o){return n};function Ite(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new kte(typeof n);return n}wa.prototype[y6]=!0;wa.prototype.use=function(n,a){return this._lastUsed=this._addPlugin(n,a,!1),this};wa.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(wa.prototype,"then",{get:$E});wa.prototype._addPlugin=function(n,a,o){if(n=Ite(n),a=a||{},this.booted)throw new Ste;const l=this._current[0],c=new F9(this,n,a,o);if(c.once("start",(p,f,y)=>{const b=this.pluginTree.start(l.name,f,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(b,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};wa.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(a.bind(this),{},!0);function a(o,l,c){zE.call(this,n,c)}return this};wa.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,a.bind(this));function a(o){o&&(this._error=o)}return this};wa.prototype.close=function(n){let a;if(n){if(typeof n!="function")throw new o2("close",typeof n)}else a=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),a};wa.prototype.ready=function(n){if(n){if(typeof n!="function")throw new o2("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((a,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,f,y){p?o(p):a(l),St.nextTick(y)}})};wa.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};wa.prototype.toJSON=function(){return this.pluginTree.toJSON()};function ZS(){}function $E(){if(this.booted){km("thenify returning null because we are already booted");return}if(this[e9]){this[e9]=!1;return}return km("thenify"),(n,a)=>this._loadRegistered().then(()=>(this[e9]=!0,n(this._server)),a)}function zE(n,a){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(n.length===1)c=n(l),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(this._timeout===0){const p=f=>{this._error=f,a(this._error)};n.length===2?n(l,p):n(l,o,p)}else Nte.call(this,n,l,o,a)}function Nte(n,a,o,l){const c=n.name;km("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{km("timed out",c),p=null;const y=new wte(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(a,f.bind(this)):n(a,o,f.bind(this));function f(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Rte(n,a){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(km("resolving close/onClose promise"),c.then(()=>St.nextTick(a),p=>St.nextTick(a,p))):St.nextTick(a)}else n.length===2?n(l?o:this._error,a):l?n(o,a):n(this._error,o,a)}function Lte(n,a){return o.bind(a);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function t9(n,a){return o.bind(a);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}vy.exports=wa;vy.exports.express=function(n){return wa(n,{expose:{use:"load"}})};var Ote=vy.exports;const Ate=sJ(Ote);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const a of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${a}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${a}CancelAnimationFrame`]||window[`${a}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let a=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-a)),f=window.setTimeout(function(){l(c+p)},p);return a=c+p,f},window.cancelAnimationFrame=clearTimeout}})();function xte(n,a=!0,o=!0,l){const c=a?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=a?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",f=Ate(Object.create({}),{autostart:!1});return f.use(DX),f.use(RX,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),f.use(xX,{videoPlayerController:l==null?void 0:l.videoPlayerController}),f.use(MX,{onContentActivate:l==null?void 0:l.onContentActivate,withAd:l==null?void 0:l.withAd,withAdNotification:l==null?void 0:l.withAdNotification}),f.use(YZ,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),f.use(eX),f.use(AX),f.use(YX),f.use(TX),f.use(oJ),f.after((y,b,C)=>{if(y)throw y;b.ready(),C()}),o&&f.after(async(y,b,C)=>{if(y)throw y;await b.sdk.initializeApp(),C()}),f.onClose(()=>{console.log("close")}),f}const Pte=({sdkKey:n,plugins:a,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b})=>{const[C,_]=Q.useState(null);return Q.useEffect(()=>{let N=!1;if(!n)return console.error("streamlayer sdk key should be provided"),_(R=>(R!==null&&typeof R.disableApp=="function"&&R.disableApp(),null)),()=>{N=!0};const O=xte(n,o,l,{version:"1.8.2",onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b});if(a)for(const R of a)O.use(R);return O.ready().then(R=>{N||(_(R.sdk),typeof window<"u")}).catch(R=>console.log(R)),()=>{N=!0,O.close(function(R){if(R)throw R})}},[n,o]),C},Mte=({event:n})=>{const a=Oy(),o=Fte();return Q.useEffect(()=>(a&&(n&&(a.createEventSession(n),o&&(o.current=n)),!n&&(o!=null&&o.current)&&(a.createEventSession(""),o.current="")),()=>{a&&a.disableApp()}),[n,o,a]),null};var HE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(HE||{});const Dte={status:0,sdk:null},U6=Q.createContext(Dte),Ute=({sdkKey:n,theme:a,plugins:o,children:l,event:c,production:p=!0,autoEnable:f=!0,withAdNotification:y,withAd:b=!0,onDeepLinkHandled:C,videoPlayerController:_,onContentActivate:N})=>{const O=Pte({sdkKey:n,plugins:o,production:p,autoEnable:f,onDeepLinkHandled:C,videoPlayerController:_,onContentActivate:N,withAdNotification:y,withAd:b}),R=Q.useRef(""),M=Q.useMemo(()=>O?{sdk:O,status:2,event:R,theme:a}:{status:1,sdk:null,event:R,theme:a},[O]);return Q.useEffect(()=>()=>{C&&(O==null||O.removeDeepLinkHandler(C)),_&&(O==null||O.removeVideoPlayerController(_))},[O]),Q.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!C,videoPlayerController:!!_})},[n,C,_]),w.jsxs(U6.Provider,{value:M,children:[c!==void 0&&w.jsx(Mte,{event:c}),l]})},Oy=()=>{const{sdk:n}=Q.useContext(U6);return n},Fte=()=>{const{event:n}=Q.useContext(U6);return n},Vte=({sdkKey:n,plugins:a,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(Ute,{sdkKey:n,plugins:a,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),jte=({children:n,overlays:a})=>{const{sdk:o,status:l}=Q.useContext(U6);return l===HE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(LC,{style:{height:"100%"},children:w.jsx(hG,{sdk:o,overlays:a,children:n})})}):n({})};class Bte extends Q.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,o){console.error(a,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx(jte,{...this.props})}}const $te=({token:n,schema:a})=>{const o=Oy();return Q.useEffect(()=>{n&&a&&o&&o.authorizationBypass(a,n)},[n,a,o]),null},zte=()=>{const n=Oy();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(LC,{children:w.jsx(EG,{sdk:n})})}):null};exports.C=SC;exports.C$1=UV;exports.M=dy;exports.MastersStreamLayerProvider=Vte;exports.MastersStreamLayerSDKReact=Bte;exports.O=ay;exports.S=_C;exports.StreamLayerLogin=$te;exports.StreamLayerSDKPoints=zte;exports.T=cy;exports.b=kC;exports.c=xV;exports.cx_default=Su;exports.e=cC;exports.k=IC;exports.l=MV;exports.m=n2;exports.m$1=FV;exports.n=oy;exports.p=IG;exports.r=la;exports.styled_default=x;exports.useStore=Ut;exports.z=dz;
211
+ `).slice(0,2).map(o=>o.trim()).join(" -- ")}function hte(){const n={};return n.promise=new Promise((a,o)=>{n.resolve=a,n.reject=o}),n}function Im(n,a,o,l,c){this.started=!1,this.func=a,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=pte(a,o),this.isAfter=l,this.q=cte(n,gte,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}mte(Im,dte);Im.prototype.exec=function(n,a){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Fa("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(a);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(b){return Fa("override errored",c),a(b)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Fa("exec",c);let p;const f=b=>{if(l){Fa("loading complete",c);return}this._error=b,Fa(b?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),a(b)};this.timeout>0&&(Fa("setting up timeout",c,this.timeout),p=setTimeout(function(){Fa("timed out",c),p=null;const b=new fte(c);b.fn=o,f(b)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,f);y&&typeof y.then=="function"&&(Fa("exec: resolving promise",c),y.then(()=>St.nextTick(f),b=>St.nextTick(f,b)))};Im.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Fa("rejecting promise",this.name,o),this._promise.reject(o)):(Fa("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let a;return this._promise?a=Promise.resolve():(this._promise=hte(),a=this._promise.promise,this.server?n():this.on("start",n)),a};Im.prototype.enqueue=function(n,a){Fa("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,a)};Im.prototype.finish=function(n,a){Fa("finish",this.name,n);const o=()=>{this.loaded||(Fa("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,a(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Fa("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Fa("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Fa("delayed",this.name),this.q.drain=()=>{Fa("drain",this.name),this.q.drain=yte,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function gte(n,a){const o=this;St.nextTick(Ly.bind(o),n,a)}function Ly(n,a){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,Ly.call(this,n,a)},a);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),a(c)})})}function yte(){}Ry.exports=Im;Ry.exports.loadPlugin=Ly;var vte=Ry.exports;const KS=pE,Tte=wE.EventEmitter,bte=A6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:J5,AVV_ERR_CALLBACK_NOT_FN:o2,AVV_ERR_PLUGIN_NOT_VALID:kte,AVV_ERR_ROOT_PLG_BOOTED:Ste,AVV_ERR_READY_TIMEOUT:wte}=jE,Cte=ste,F9=vte,km=BE("avvio"),y6=Symbol("kAvvio"),e9=Symbol("kThenifyDoNotWrap");function Ete(n,a,o){const l=a.expose||{},c=l.use||"use",p=l.after||"after",f=l.ready||"ready",y=l.onClose||"onClose",b=l.close||"close";if(n[c])throw new J5(c);if(n[p])throw new J5(p);if(n[f])throw new J5(f);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:$E.bind(o)}),n[y6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(t9(C,this)),this)},n[f]=function(C){if(C&&typeof C!="function")throw new o2(f,typeof C);return o.ready(C?t9(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new o2(y,typeof C);return o.onClose(Lte(C,this)),this},n[b]=function(C){if(C&&typeof C!="function")throw new o2(b,typeof C);return C?(o.close(t9(C,this)),this):o.close()}}function wa(n,a,o){if(typeof n=="function"&&arguments.length===1&&(o=n,a={},n=null),typeof a=="function"&&(o=a,a={}),a=a||{},!(this instanceof wa)){const l=new wa(n,a,o);return n&&Ete(n,a,l),l}a.autostart!==!1&&(a.autostart=!0),n=n||this,this._timeout=Number(a.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new Cte,this._readyQ=KS(this,zE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=ZS},this._closeQ=KS(this,Rte,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=ZS},this._doStart=null,this._root=new F9(this,_te.bind(this),a,!1,0),this._root.once("start",(l,c,p)=>{const f=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,b,C)=>{this.pluginTree.stop(f,C)})}),F9.loadPlugin.call(this,this._root,l=>{km("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function _te(n,a,o){this._doStart=o,a.autostart&&this.start()}bte(wa,Tte);wa.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};wa.prototype.override=function(n,a,o){return n};function Ite(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new kte(typeof n);return n}wa.prototype[y6]=!0;wa.prototype.use=function(n,a){return this._lastUsed=this._addPlugin(n,a,!1),this};wa.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(wa.prototype,"then",{get:$E});wa.prototype._addPlugin=function(n,a,o){if(n=Ite(n),a=a||{},this.booted)throw new Ste;const l=this._current[0],c=new F9(this,n,a,o);if(c.once("start",(p,f,y)=>{const b=this.pluginTree.start(l.name,f,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(b,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};wa.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(a.bind(this),{},!0);function a(o,l,c){zE.call(this,n,c)}return this};wa.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,a.bind(this));function a(o){o&&(this._error=o)}return this};wa.prototype.close=function(n){let a;if(n){if(typeof n!="function")throw new o2("close",typeof n)}else a=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),a};wa.prototype.ready=function(n){if(n){if(typeof n!="function")throw new o2("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((a,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,f,y){p?o(p):a(l),St.nextTick(y)}})};wa.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};wa.prototype.toJSON=function(){return this.pluginTree.toJSON()};function ZS(){}function $E(){if(this.booted){km("thenify returning null because we are already booted");return}if(this[e9]){this[e9]=!1;return}return km("thenify"),(n,a)=>this._loadRegistered().then(()=>(this[e9]=!0,n(this._server)),a)}function zE(n,a){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(n.length===1)c=n(l),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(a),p=>St.nextTick(a,p)):St.nextTick(a);else if(this._timeout===0){const p=f=>{this._error=f,a(this._error)};n.length===2?n(l,p):n(l,o,p)}else Nte.call(this,n,l,o,a)}function Nte(n,a,o,l){const c=n.name;km("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{km("timed out",c),p=null;const y=new wte(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(a,f.bind(this)):n(a,o,f.bind(this));function f(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Rte(n,a){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(km("resolving close/onClose promise"),c.then(()=>St.nextTick(a),p=>St.nextTick(a,p))):St.nextTick(a)}else n.length===2?n(l?o:this._error,a):l?n(o,a):n(this._error,o,a)}function Lte(n,a){return o.bind(a);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function t9(n,a){return o.bind(a);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}vy.exports=wa;vy.exports.express=function(n){return wa(n,{expose:{use:"load"}})};var Ote=vy.exports;const Ate=sJ(Ote);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const a of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${a}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${a}CancelAnimationFrame`]||window[`${a}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let a=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-a)),f=window.setTimeout(function(){l(c+p)},p);return a=c+p,f},window.cancelAnimationFrame=clearTimeout}})();function xte(n,a=!0,o=!0,l){const c=a?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=a?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",f=Ate(Object.create({}),{autostart:!1});return f.use(DX),f.use(RX,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),f.use(xX,{videoPlayerController:l==null?void 0:l.videoPlayerController}),f.use(MX,{onContentActivate:l==null?void 0:l.onContentActivate,withAd:l==null?void 0:l.withAd,withAdNotification:l==null?void 0:l.withAdNotification}),f.use(YZ,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),f.use(eX),f.use(AX),f.use(YX),f.use(TX),f.use(oJ),f.after((y,b,C)=>{if(y)throw y;b.ready(),C()}),o&&f.after(async(y,b,C)=>{if(y)throw y;await b.sdk.initializeApp(),C()}),f.onClose(()=>{console.log("close")}),f}const Pte=({sdkKey:n,plugins:a,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b})=>{const[C,_]=Q.useState(null);return Q.useEffect(()=>{let N=!1;if(!n)return console.error("streamlayer sdk key should be provided"),_(R=>(R!==null&&typeof R.disableApp=="function"&&R.disableApp(),null)),()=>{N=!0};const O=xte(n,o,l,{version:"1.8.3",onDeepLinkHandled:c,videoPlayerController:p,onContentActivate:f,withAdNotification:y,withAd:b});if(a)for(const R of a)O.use(R);return O.ready().then(R=>{N||(_(R.sdk),typeof window<"u")}).catch(R=>console.log(R)),()=>{N=!0,O.close(function(R){if(R)throw R})}},[n,o]),C},Mte=({event:n})=>{const a=Oy(),o=Fte();return Q.useEffect(()=>(a&&(n&&(a.createEventSession(n),o&&(o.current=n)),!n&&(o!=null&&o.current)&&(a.createEventSession(""),o.current="")),()=>{a&&a.disableApp()}),[n,o,a]),null};var HE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(HE||{});const Dte={status:0,sdk:null},U6=Q.createContext(Dte),Ute=({sdkKey:n,theme:a,plugins:o,children:l,event:c,production:p=!0,autoEnable:f=!0,withAdNotification:y,withAd:b=!0,onDeepLinkHandled:C,videoPlayerController:_,onContentActivate:N})=>{const O=Pte({sdkKey:n,plugins:o,production:p,autoEnable:f,onDeepLinkHandled:C,videoPlayerController:_,onContentActivate:N,withAdNotification:y,withAd:b}),R=Q.useRef(""),M=Q.useMemo(()=>O?{sdk:O,status:2,event:R,theme:a}:{status:1,sdk:null,event:R,theme:a},[O]);return Q.useEffect(()=>()=>{C&&(O==null||O.removeDeepLinkHandler(C)),_&&(O==null||O.removeVideoPlayerController(_))},[O]),Q.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!C,videoPlayerController:!!_})},[n,C,_]),w.jsxs(U6.Provider,{value:M,children:[c!==void 0&&w.jsx(Mte,{event:c}),l]})},Oy=()=>{const{sdk:n}=Q.useContext(U6);return n},Fte=()=>{const{event:n}=Q.useContext(U6);return n},Vte=({sdkKey:n,plugins:a,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(Ute,{sdkKey:n,plugins:a,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),jte=({children:n,overlays:a})=>{const{sdk:o,status:l}=Q.useContext(U6);return l===HE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(LC,{style:{height:"100%"},children:w.jsx(hG,{sdk:o,overlays:a,children:n})})}):n({})};class Bte extends Q.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,o){console.error(a,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx(jte,{...this.props})}}const $te=({token:n,schema:a})=>{const o=Oy();return Q.useEffect(()=>{n&&a&&o&&o.authorizationBypass(a,n)},[n,a,o]),null},zte=()=>{const n=Oy();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(LC,{children:w.jsx(EG,{sdk:n})})}):null};exports.C=SC;exports.C$1=UV;exports.M=dy;exports.MastersStreamLayerProvider=Vte;exports.MastersStreamLayerSDKReact=Bte;exports.O=ay;exports.S=_C;exports.StreamLayerLogin=$te;exports.StreamLayerSDKPoints=zte;exports.T=cy;exports.b=kC;exports.c=xV;exports.cx_default=Su;exports.e=cC;exports.k=IC;exports.l=MV;exports.m=n2;exports.m$1=FV;exports.n=oy;exports.p=IG;exports.r=la;exports.styled_default=x;exports.useStore=Ut;exports.z=dz;
@@ -42260,7 +42260,7 @@ const Gte = ({
42260
42260
  I = !0;
42261
42261
  };
42262
42262
  const O = qte(n, o, l, {
42263
- version: "1.8.2",
42263
+ version: "1.8.3",
42264
42264
  onDeepLinkHandled: c,
42265
42265
  videoPlayerController: p,
42266
42266
  onContentActivate: f,
@@ -1,42 +1,42 @@
1
- import { jsx as n, jsxs as m, Fragment as eo } from "react/jsx-runtime";
2
- import { useEffect as io, useRef as to } from "react";
3
- import { f as $, s, c as ao, g as lo, X as ro, h as k, a as Q, L as co, u as po, i as mo, b as uo, d as vo, S as Ao } from "./index2.js";
4
- import { N as h, a as Y, b as Z, C as oo, c as no, P as g, d as N, A as Io, e as ho, S as go } from "./useStreamLayerApp2.js";
5
- const yo = /* @__PURE__ */ s("div")({
1
+ import { jsx as s, jsxs as m, Fragment as io } from "react/jsx-runtime";
2
+ import { useEffect as to, useRef as ao } from "react";
3
+ import { f as C, s as n, c as ro, g as lo, X as co, h as M, a as Y, L as po, u as mo, i as uo, b as vo, S as b, d as Ao } from "./index2.js";
4
+ import { N as h, a as Z, b as oo, C as so, c as no, P as g, d as $, A as Io, e as ho, S as go } from "./useStreamLayerApp2.js";
5
+ const yo = /* @__PURE__ */ n("div")({
6
6
  name: "Container",
7
7
  class: "c5b6wdg",
8
8
  propsAsIs: !1
9
- }), bo = "a1rlj479", fo = "s35f1di", No = "sj4471g", $o = "b12050d8", Co = "b1d5ybek", To = (o) => o === "left" || o === "right" ? fo : $o, So = (o) => o === "left" || o === "right" ? No : Co, ko = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", M = ({
9
+ }), bo = "a1rlj479", fo = "s35f1di", No = "sj4471g", $o = "b12050d8", Co = "b1d5ybek", To = (o) => o === "left" || o === "right" ? fo : $o, So = (o) => o === "left" || o === "right" ? No : Co, ko = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", L = ({
10
10
  children: o,
11
11
  style: e,
12
12
  className: i,
13
- enabled: l = !0,
14
- hiding: r,
13
+ enabled: r = !0,
14
+ hiding: l,
15
15
  direction: a = "left",
16
16
  onAnimationEnd: d
17
- }) => /* @__PURE__ */ n(yo, {
17
+ }) => /* @__PURE__ */ s(yo, {
18
18
  style: e,
19
- className: $(i, bo, ko(a), l && !r && To(a), l && r && So(a)),
19
+ className: C(i, bo, ko(a), r && !l && To(a), r && l && So(a)),
20
20
  onAnimationEnd: d,
21
21
  children: o
22
- }), Mo = /* @__PURE__ */ s("a")({
22
+ }), Mo = /* @__PURE__ */ n("a")({
23
23
  name: "Link",
24
24
  class: "l1sgte8c",
25
25
  propsAsIs: !1
26
- }), Lo = /* @__PURE__ */ s("div")({
26
+ }), Lo = /* @__PURE__ */ n("div")({
27
27
  name: "BannerContainer",
28
28
  class: "b7yfc72",
29
29
  propsAsIs: !1
30
- }), Oo = () => Mo, Bo = /* @__PURE__ */ s(Oo())({
30
+ }), Oo = () => Mo, Bo = /* @__PURE__ */ n(Oo())({
31
31
  name: "BannerLink",
32
32
  class: "bejjq94",
33
33
  propsAsIs: !0
34
- }), Eo = ({ promotion: o, promotionId: e, hiding: i, direction: l = "bottom" }) => {
35
- var r, a;
36
- if (!((r = o.additionalBanner) != null && r.imageUrl))
34
+ }), Eo = ({ promotion: o, promotionId: e, hiding: i, direction: r = "bottom" }) => {
35
+ var l, a;
36
+ if (!((l = o.additionalBanner) != null && l.imageUrl))
37
37
  return null;
38
38
  let d = (a = o.banner) == null ? void 0 : a.url;
39
- return d && d.indexOf("http") !== 0 && (d = `https://${d}`), /* @__PURE__ */ n(M, { direction: l, hiding: i, children: /* @__PURE__ */ n(Lo, { className: "BannerContainer", children: /* @__PURE__ */ n(
39
+ return d && d.indexOf("http") !== 0 && (d = `https://${d}`), /* @__PURE__ */ s(L, { direction: r, hiding: i, children: /* @__PURE__ */ s(Lo, { className: "BannerContainer", children: /* @__PURE__ */ s(
40
40
  Bo,
41
41
  {
42
42
  className: "BannerLink",
@@ -48,289 +48,289 @@ const yo = /* @__PURE__ */ s("div")({
48
48
  target: "_blank"
49
49
  }
50
50
  ) }) });
51
- }, _o = /* @__PURE__ */ s("div")({
51
+ }, _o = /* @__PURE__ */ n("div")({
52
52
  name: "NotificationContent",
53
53
  class: "n18wsqoo",
54
54
  propsAsIs: !1
55
- }), Po = /* @__PURE__ */ s("div")({
55
+ }), Po = /* @__PURE__ */ n("div")({
56
56
  name: "Body",
57
57
  class: "b1ia90c2",
58
58
  propsAsIs: !1
59
- }), xo = /* @__PURE__ */ s("div")({
59
+ }), xo = /* @__PURE__ */ n("div")({
60
60
  name: "Title",
61
61
  class: "tg2z08v",
62
62
  propsAsIs: !1
63
- }), Ro = /* @__PURE__ */ s("div")({
63
+ }), Ro = /* @__PURE__ */ n("div")({
64
64
  name: "Text",
65
65
  class: "t59zdk1",
66
66
  propsAsIs: !1
67
- }), L = /* @__PURE__ */ s("div")({
67
+ }), O = /* @__PURE__ */ n("div")({
68
68
  name: "MediaImgBottom",
69
69
  class: "m1ab9fq",
70
70
  propsAsIs: !1
71
- }), Do = () => L, qo = /* @__PURE__ */ s(Do())({
71
+ }), Do = () => O, qo = /* @__PURE__ */ n(Do())({
72
72
  name: "MediaImgMiddle",
73
73
  class: "m9fsr0y",
74
74
  propsAsIs: !0
75
- }), wo = /* @__PURE__ */ s("img")({
75
+ }), wo = /* @__PURE__ */ n("img")({
76
76
  name: "CtaIcon",
77
77
  class: "cvi9y5q",
78
78
  propsAsIs: !1
79
- }), jo = /* @__PURE__ */ s("button")({
79
+ }), jo = /* @__PURE__ */ n("button")({
80
80
  name: "Button",
81
81
  class: "bgl6boa",
82
82
  propsAsIs: !1
83
- }), Fo = /* @__PURE__ */ s("div")({
83
+ }), Fo = /* @__PURE__ */ n("div")({
84
84
  name: "Logo",
85
85
  class: "l5mq0z",
86
86
  propsAsIs: !1
87
- }), Uo = /* @__PURE__ */ s("div")({
87
+ }), Uo = /* @__PURE__ */ n("div")({
88
88
  name: "Footer",
89
89
  class: "f1mse0ft",
90
90
  propsAsIs: !1
91
- }), zo = /* @__PURE__ */ s("div")({
91
+ }), zo = /* @__PURE__ */ n("div")({
92
92
  name: "Vector",
93
93
  class: "v1hcloah",
94
94
  propsAsIs: !1
95
- }), Vo = /* @__PURE__ */ s("div")({
95
+ }), Vo = /* @__PURE__ */ n("div")({
96
96
  name: "NotificationContainer",
97
97
  class: "n3n65jf",
98
98
  propsAsIs: !1
99
99
  }), Go = {
100
- [h.BOTTOM]: L,
100
+ [h.BOTTOM]: O,
101
101
  [h.MIDDLE]: qo
102
102
  }, Wo = ({ src: o, imagePosition: e }) => {
103
- const i = Go[e] || L;
104
- return /* @__PURE__ */ n(i, { children: /* @__PURE__ */ n("img", { src: o, alt: "" }) });
103
+ const i = Go[e] || O;
104
+ return /* @__PURE__ */ s(i, { children: /* @__PURE__ */ s("img", { src: o, alt: "" }) });
105
105
  }, Ho = ({ notification: o, open: e }) => {
106
- if (!o || !o.promotion || o.enabled !== Y.NOTIFICATION_ENABLED)
106
+ if (!o || !o.promotion || o.enabled !== Z.NOTIFICATION_ENABLED)
107
107
  return null;
108
- const { title: i, body: l, image: r, promotion: a } = o, { sponsorLogo: d, sponsorLogoMode: c, imagePosition: u, ctaButton: t } = a;
108
+ const { title: i, body: r, image: l, promotion: a } = o, { sponsorLogo: d, sponsorLogoMode: c, imagePosition: u, ctaButton: t } = a;
109
109
  return /* @__PURE__ */ m(Vo, { className: "SL_Lower_Third_Notification", onClick: e, children: [
110
110
  /* @__PURE__ */ m(_o, { children: [
111
- /* @__PURE__ */ n(Wo, { src: r, imagePosition: u }),
111
+ /* @__PURE__ */ s(Wo, { src: l, imagePosition: u }),
112
112
  /* @__PURE__ */ m(Po, { children: [
113
- i && /* @__PURE__ */ n(xo, { children: i }),
114
- l && /* @__PURE__ */ n(Ro, { children: l })
113
+ i && /* @__PURE__ */ s(xo, { children: i }),
114
+ r && /* @__PURE__ */ s(Ro, { children: r })
115
115
  ] })
116
116
  ] }),
117
117
  /* @__PURE__ */ m(Uo, { children: [
118
- c !== Z.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ m(eo, { children: [
119
- /* @__PURE__ */ n(Fo, { children: /* @__PURE__ */ n("img", { src: d, alt: i }) }),
120
- /* @__PURE__ */ n(zo, {})
118
+ c !== oo.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ m(io, { children: [
119
+ /* @__PURE__ */ s(Fo, { children: /* @__PURE__ */ s("img", { src: d, alt: i }) }),
120
+ /* @__PURE__ */ s(zo, {})
121
121
  ] }),
122
122
  /* @__PURE__ */ m(jo, { name: "promo-button", style: { color: t == null ? void 0 : t.textColor, backgroundColor: t == null ? void 0 : t.color }, children: [
123
- (t == null ? void 0 : t.ctaIcon) && (t == null ? void 0 : t.ctaIconMode) === oo.CTA_ICON_TRANSPARENT && /* @__PURE__ */ n(wo, { src: t == null ? void 0 : t.ctaIcon, alt: "cta-icon" }),
123
+ (t == null ? void 0 : t.ctaIcon) && (t == null ? void 0 : t.ctaIconMode) === so.CTA_ICON_TRANSPARENT && /* @__PURE__ */ s(wo, { src: t == null ? void 0 : t.ctaIcon, alt: "cta-icon" }),
124
124
  (t == null ? void 0 : t.label) || "Open"
125
125
  ] })
126
126
  ] })
127
127
  ] });
128
- }, Ko = /* @__PURE__ */ s("div")({
128
+ }, Ko = /* @__PURE__ */ n("div")({
129
129
  name: "NotificationContent",
130
130
  class: "n1ku6hz",
131
131
  propsAsIs: !1
132
- }), Xo = /* @__PURE__ */ s("div")({
132
+ }), Xo = /* @__PURE__ */ n("div")({
133
133
  name: "NotificationContainer",
134
134
  class: "nbxqmol",
135
135
  propsAsIs: !1
136
- }), Jo = /* @__PURE__ */ s("div")({
136
+ }), Jo = /* @__PURE__ */ n("div")({
137
137
  name: "Body",
138
138
  class: "b1gu3eml",
139
139
  propsAsIs: !1
140
- }), Qo = /* @__PURE__ */ s("div")({
140
+ }), Qo = /* @__PURE__ */ n("div")({
141
141
  name: "Title",
142
142
  class: "t1u17zva",
143
143
  propsAsIs: !1
144
- }), Yo = /* @__PURE__ */ s("div")({
144
+ }), Yo = /* @__PURE__ */ n("div")({
145
145
  name: "Text",
146
146
  class: "t10ko1g",
147
147
  propsAsIs: !1
148
- }), C = /* @__PURE__ */ s("div")({
148
+ }), T = /* @__PURE__ */ n("div")({
149
149
  name: "Media",
150
150
  class: "mntc42e",
151
151
  propsAsIs: !1
152
- }), Zo = () => C, H = /* @__PURE__ */ s(Zo())({
152
+ }), Zo = () => T, K = /* @__PURE__ */ n(Zo())({
153
153
  name: "MediaImgFit",
154
154
  class: "ml060eo",
155
155
  propsAsIs: !0
156
- }), on = () => C, so = /* @__PURE__ */ s(on())({
156
+ }), os = () => T, eo = /* @__PURE__ */ n(os())({
157
157
  name: "MediaImgCentered",
158
158
  class: "m1vqlvig",
159
159
  propsAsIs: !0
160
- }), nn = () => so, sn = /* @__PURE__ */ s(nn())({
160
+ }), ss = () => eo, ns = /* @__PURE__ */ n(ss())({
161
161
  name: "MediaImgBottom",
162
162
  class: "m1e7tvi5",
163
163
  propsAsIs: !0
164
- }), en = () => C, tn = /* @__PURE__ */ s(en())({
164
+ }), es = () => T, is = /* @__PURE__ */ n(es())({
165
165
  name: "MediaImgSolid",
166
166
  class: "mqvntt2",
167
167
  propsAsIs: !0
168
- }), an = () => C, ln = /* @__PURE__ */ s(an())({
168
+ }), ts = () => T, as = /* @__PURE__ */ n(ts())({
169
169
  name: "MediaImgMiddle",
170
170
  class: "m12jtj3u",
171
171
  propsAsIs: !0
172
- }), rn = /* @__PURE__ */ s("img")({
172
+ }), rs = /* @__PURE__ */ n("img")({
173
173
  name: "CtaIcon",
174
174
  class: "ckq1frv",
175
175
  propsAsIs: !1
176
- }), dn = /* @__PURE__ */ s("button")({
176
+ }), ls = /* @__PURE__ */ n("button")({
177
177
  name: "Button",
178
178
  class: "bis90pl",
179
179
  propsAsIs: !1
180
- }), cn = () => ao, pn = /* @__PURE__ */ s(cn())({
180
+ }), ds = () => ro, cs = /* @__PURE__ */ n(ds())({
181
181
  name: "StyledChevronRight",
182
182
  class: "s9mjmz3",
183
183
  propsAsIs: !0
184
- }), mn = /* @__PURE__ */ s("div")({
184
+ }), ps = /* @__PURE__ */ n("div")({
185
185
  name: "Logo",
186
186
  class: "l1cf50a7",
187
187
  propsAsIs: !1
188
- }), un = {
189
- [h.UNSET]: H,
190
- [h.FIT]: H,
191
- [h.CENTERED]: so,
192
- [h.BOTTOM]: sn,
193
- [h.SOLID]: tn,
194
- [h.MIDDLE]: ln
195
- }, vn = ({ src: o, imagePosition: e }) => {
196
- const i = un[e];
197
- return /* @__PURE__ */ n(i, { children: /* @__PURE__ */ n("img", { src: o, alt: "" }) });
198
- }, An = ({ notification: o, open: e, promotionId: i, hiding: l, direction: r = "left" }) => {
199
- if (!o || !o.promotion || o.enabled !== Y.NOTIFICATION_ENABLED)
188
+ }), ms = {
189
+ [h.UNSET]: K,
190
+ [h.FIT]: K,
191
+ [h.CENTERED]: eo,
192
+ [h.BOTTOM]: ns,
193
+ [h.SOLID]: is,
194
+ [h.MIDDLE]: as
195
+ }, us = ({ src: o, imagePosition: e }) => {
196
+ const i = ms[e];
197
+ return /* @__PURE__ */ s(i, { children: /* @__PURE__ */ s("img", { src: o, alt: "" }) });
198
+ }, vs = ({ notification: o, open: e, promotionId: i, hiding: r, direction: l = "left" }) => {
199
+ if (!o || !o.promotion || o.enabled !== Z.NOTIFICATION_ENABLED)
200
200
  return null;
201
201
  if (o.promotion.mode === no.LOWER_THIRD)
202
- return /* @__PURE__ */ n(Ho, { notification: o, open: e });
202
+ return /* @__PURE__ */ s(Ho, { notification: o, open: e });
203
203
  const { title: a, body: d, image: c, promotion: u } = o, { sponsorLogo: t, sponsorLogoMode: v, imagePosition: I, ctaButton: p } = u;
204
- return /* @__PURE__ */ n(M, { className: "SL_Rich_Notification", direction: r, hiding: l, children: /* @__PURE__ */ m(Xo, { onClick: e, children: [
205
- v !== Z.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ n(mn, { children: /* @__PURE__ */ n("img", { src: t, alt: a }) }),
204
+ return /* @__PURE__ */ s(L, { className: "SL_Rich_Notification", direction: l, hiding: r, children: /* @__PURE__ */ m(Xo, { onClick: e, children: [
205
+ v !== oo.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ s(ps, { children: /* @__PURE__ */ s("img", { src: t, alt: a }) }),
206
206
  /* @__PURE__ */ m(Ko, { children: [
207
- /* @__PURE__ */ n(vn, { src: c, imagePosition: I }),
207
+ /* @__PURE__ */ s(us, { src: c, imagePosition: I }),
208
208
  /* @__PURE__ */ m(Jo, { children: [
209
- a && /* @__PURE__ */ n(Qo, { children: a }),
210
- d && /* @__PURE__ */ n(Yo, { children: d })
209
+ a && /* @__PURE__ */ s(Qo, { children: a }),
210
+ d && /* @__PURE__ */ s(Yo, { children: d })
211
211
  ] }),
212
- /* @__PURE__ */ m(dn, { name: "promo-button", style: { color: p == null ? void 0 : p.textColor, backgroundColor: p == null ? void 0 : p.color }, children: [
213
- (p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) === oo.CTA_ICON_TRANSPARENT && /* @__PURE__ */ n(rn, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
212
+ /* @__PURE__ */ m(ls, { name: "promo-button", style: { color: p == null ? void 0 : p.textColor, backgroundColor: p == null ? void 0 : p.color }, children: [
213
+ (p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) === so.CTA_ICON_TRANSPARENT && /* @__PURE__ */ s(rs, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
214
214
  (p == null ? void 0 : p.label) || "Open"
215
215
  ] }),
216
- /* @__PURE__ */ n(pn, { name: "chevronRight" })
216
+ /* @__PURE__ */ s(cs, { name: "chevronRight" })
217
217
  ] })
218
218
  ] }) });
219
- }, In = /* @__PURE__ */ s("div")({
219
+ }, As = /* @__PURE__ */ n("div")({
220
220
  name: "OverlayContainer",
221
221
  class: "okzhq2w",
222
222
  propsAsIs: !1
223
- }), hn = /* @__PURE__ */ s("div")({
223
+ }), Is = /* @__PURE__ */ n("div")({
224
224
  name: "PromoOverlay",
225
225
  class: "pmgz5i",
226
226
  propsAsIs: !1
227
- }), gn = /* @__PURE__ */ s("div")({
227
+ }), hs = /* @__PURE__ */ n("div")({
228
228
  name: "Header",
229
229
  class: "hyxi3jt",
230
230
  propsAsIs: !1
231
- }), yn = /* @__PURE__ */ s("div")({
231
+ }), gs = /* @__PURE__ */ n("div")({
232
232
  name: "HeaderContent",
233
233
  class: "h149e3gp",
234
234
  propsAsIs: !1
235
- }), bn = "h10toh7", K = /* @__PURE__ */ s("img")({
235
+ }), ys = "h10toh7", X = /* @__PURE__ */ n("img")({
236
236
  name: "SponsorLogo",
237
237
  class: "s1jyea6t",
238
238
  propsAsIs: !1
239
- }), fn = /* @__PURE__ */ s("div")({
239
+ }), bs = /* @__PURE__ */ n("div")({
240
240
  name: "SponsorName",
241
241
  class: "szpfa3h",
242
242
  propsAsIs: !1
243
- }), Nn = /* @__PURE__ */ s("div")({
243
+ }), fs = /* @__PURE__ */ n("div")({
244
244
  name: "Media",
245
245
  class: "m1crmu01",
246
246
  propsAsIs: !1
247
- }), $n = /* @__PURE__ */ s("img")({
247
+ }), Ns = /* @__PURE__ */ n("img")({
248
248
  name: "PromoImg",
249
249
  class: "p1l37r8s",
250
250
  propsAsIs: !1
251
- }), Cn = "s1nmch9k", X = /* @__PURE__ */ s("div")({
251
+ }), $s = "s1nmch9k", J = /* @__PURE__ */ n("div")({
252
252
  name: "Content",
253
253
  class: "c1er0ljd",
254
254
  propsAsIs: !1
255
- }), Tn = /* @__PURE__ */ s("div")({
255
+ }), Cs = /* @__PURE__ */ n("div")({
256
256
  name: "Description",
257
257
  class: "dydopmr",
258
258
  propsAsIs: !1
259
- }), Sn = /* @__PURE__ */ s("div")({
259
+ }), Ts = /* @__PURE__ */ n("div")({
260
260
  name: "Sponsor",
261
261
  class: "s1w6nt04",
262
262
  propsAsIs: !1
263
- }), kn = /* @__PURE__ */ s("div")({
263
+ }), Ss = /* @__PURE__ */ n("div")({
264
264
  name: "SponsorText",
265
265
  class: "s1evcmtq",
266
266
  propsAsIs: !1
267
- }), Mn = /* @__PURE__ */ s("div")({
267
+ }), ks = /* @__PURE__ */ n("div")({
268
268
  name: "ADLogo",
269
269
  class: "awodx0x",
270
270
  propsAsIs: !1
271
- }), Ln = /* @__PURE__ */ s("span")({
271
+ }), Ms = /* @__PURE__ */ n("span")({
272
272
  name: "SponsoredText",
273
273
  class: "s1q3n6oi",
274
274
  propsAsIs: !1
275
- }), On = /* @__PURE__ */ s("div")({
275
+ }), Ls = /* @__PURE__ */ n("div")({
276
276
  name: "ActionBtnWrap",
277
277
  class: "a8d4xfk",
278
278
  propsAsIs: !1
279
- }), Bn = /* @__PURE__ */ s("a")({
279
+ }), Os = /* @__PURE__ */ n("a")({
280
280
  name: "ActionButton",
281
281
  class: "at6oobh",
282
282
  propsAsIs: !1
283
- }), En = /* @__PURE__ */ s("div")({
283
+ }), Bs = /* @__PURE__ */ n("div")({
284
284
  name: "Title",
285
285
  class: "t1gyg7tt",
286
286
  propsAsIs: !1
287
- }), _n = "h17rwbtk", J = ({ promotion: o, skipAutoClose: e, promotionId: i, onClose: l, markAsViewed: r }) => {
288
- var a, d, c, u, t, v, I, p, A, b, f, O, B, E, _, P, x, R, D, q, w, j, F, U, z, V, G, W;
289
- const T = o.type === g.INGAME_IAB11_LBAR || o.type === g.INGAME_IAB11, S = ((a = o.sponsor) == null ? void 0 : a.logo) && o.logoMode === N.CENTER;
290
- io(() => {
291
- i && o.type && r && r();
292
- }, [i, o.type, r]);
287
+ }), Es = "h17rwbtk", Q = ({ promotion: o, skipAutoClose: e, promotionId: i, onClose: r, markAsViewed: l }) => {
288
+ var a, d, c, u, t, v, I, p, A, f, N, B, E, _, P, x, R, D, q, w, j, F, U, z, V, G, W, H;
289
+ const S = o.type === g.INGAME_IAB11_LBAR || o.type === g.INGAME_IAB11, k = ((a = o.sponsor) == null ? void 0 : a.logo) && o.logoMode === $.CENTER;
290
+ to(() => {
291
+ i && o.type && l && l();
292
+ }, [i, o.type, l]);
293
293
  let y = (d = o.banner) == null ? void 0 : d.url;
294
- return y && y.indexOf("http") !== 0 && (y = `https://${y}`), /* @__PURE__ */ m(hn, { className: "PromoOverlay", children: [
295
- /* @__PURE__ */ m(gn, { children: [
296
- /* @__PURE__ */ m(yn, { className: $(!S && bn), children: [
297
- ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === N.LEFT && /* @__PURE__ */ n(K, { src: (u = o.sponsor) == null ? void 0 : u.logo, alt: "promo" }),
294
+ return y && y.indexOf("http") !== 0 && (y = `https://${y}`), /* @__PURE__ */ m(Is, { className: "PromoOverlay", children: [
295
+ /* @__PURE__ */ m(hs, { children: [
296
+ /* @__PURE__ */ m(gs, { className: C(!k && ys), children: [
297
+ ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === $.LEFT && /* @__PURE__ */ s(X, { src: (u = o.sponsor) == null ? void 0 : u.logo, alt: "promo" }),
298
298
  /* @__PURE__ */ m(
299
- Sn,
299
+ Ts,
300
300
  {
301
301
  style: {
302
- paddingLeft: (t = o.sponsor) != null && t.logo && o.logoMode === N.LEFT ? "0px" : "8px"
302
+ paddingLeft: (t = o.sponsor) != null && t.logo && o.logoMode === $.LEFT ? "0px" : "8px"
303
303
  },
304
304
  children: [
305
- ((v = o.sponsor) == null ? void 0 : v.logo) && o.logoMode === N.LEFT && /* @__PURE__ */ n(fn, { children: (I = o.sponsor) == null ? void 0 : I.name }),
306
- /* @__PURE__ */ m(kn, { className: "SponsorText", children: [
307
- /* @__PURE__ */ n(Mn, { children: "AD" }),
308
- /* @__PURE__ */ n(Ln, { children: "SPONSORED" })
305
+ ((v = o.sponsor) == null ? void 0 : v.logo) && o.logoMode === $.LEFT && /* @__PURE__ */ s(bs, { children: (I = o.sponsor) == null ? void 0 : I.name }),
306
+ /* @__PURE__ */ m(Ss, { className: "SponsorText", children: [
307
+ /* @__PURE__ */ s(ks, { children: "AD" }),
308
+ /* @__PURE__ */ s(Ms, { children: "SPONSORED" })
309
309
  ] })
310
310
  ]
311
311
  }
312
312
  )
313
313
  ] }),
314
- /* @__PURE__ */ n(
314
+ /* @__PURE__ */ s(
315
315
  lo,
316
316
  {
317
317
  className: "ClosePromoIcon",
318
- close: l,
318
+ close: r,
319
319
  autoClose: (p = o.closeTimer) == null ? void 0 : p.auto,
320
320
  duration: e ? 0 : (A = o.closeTimer) == null ? void 0 : A.seconds
321
321
  }
322
322
  )
323
323
  ] }),
324
- /* @__PURE__ */ m(Nn, { children: [
325
- S && /* @__PURE__ */ n(K, { className: Cn, src: (b = o.sponsor) == null ? void 0 : b.logo, alt: "promo" }),
326
- /* @__PURE__ */ n(X, { children: (O = (f = o.banner) == null ? void 0 : f.video) != null && O.url ? /* @__PURE__ */ n(
327
- ro,
324
+ /* @__PURE__ */ m(fs, { children: [
325
+ k && /* @__PURE__ */ s(X, { className: $s, src: (f = o.sponsor) == null ? void 0 : f.logo, alt: "promo" }),
326
+ /* @__PURE__ */ s(J, { children: (B = (N = o.banner) == null ? void 0 : N.video) != null && B.url ? /* @__PURE__ */ s(
327
+ co,
328
328
  {
329
- source: (E = (B = o.banner) == null ? void 0 : B.video) == null ? void 0 : E.url,
330
- poster: (P = (_ = o.banner) == null ? void 0 : _.video) == null ? void 0 : P.thumbnailUrl,
331
- aspectRatio: T ? "1/1" : "16/9",
329
+ source: (_ = (E = o.banner) == null ? void 0 : E.video) == null ? void 0 : _.url,
330
+ poster: (x = (P = o.banner) == null ? void 0 : P.video) == null ? void 0 : x.thumbnailUrl,
331
+ aspectRatio: S ? "1/1" : "16/9",
332
332
  onPlay: () => {
333
- k.emit("advertisement", {
333
+ M.emit("advertisement", {
334
334
  action: "videoPlay",
335
335
  payload: {
336
336
  id: i,
@@ -340,76 +340,76 @@ const yo = /* @__PURE__ */ s("div")({
340
340
  },
341
341
  autoPlay: o.autoPlayVideo === Io.ENABLED
342
342
  }
343
- ) : (x = o.banner) != null && x.imageUrl ? /* @__PURE__ */ n($n, { style: T ? { aspectRatio: "1/1" } : {}, src: (R = o.banner) == null ? void 0 : R.imageUrl, alt: "promo" }) : null }),
344
- !T && /* @__PURE__ */ m(X, { children: [
345
- ((D = o.banner) == null ? void 0 : D.title) && /* @__PURE__ */ n(En, { className: $("AdvTitle", S && _n), children: (q = o.banner) == null ? void 0 : q.title }),
346
- ((w = o.banner) == null ? void 0 : w.body) && /* @__PURE__ */ n(Tn, { className: "AdvDescription", children: (j = o.banner) == null ? void 0 : j.body })
343
+ ) : (R = o.banner) != null && R.imageUrl ? /* @__PURE__ */ s(Ns, { style: S ? { aspectRatio: "1/1" } : {}, src: (D = o.banner) == null ? void 0 : D.imageUrl, alt: "promo" }) : null }),
344
+ !S && /* @__PURE__ */ m(J, { children: [
345
+ ((q = o.banner) == null ? void 0 : q.title) && /* @__PURE__ */ s(Bs, { className: C("AdvTitle", k && Es), children: (w = o.banner) == null ? void 0 : w.title }),
346
+ ((j = o.banner) == null ? void 0 : j.body) && /* @__PURE__ */ s(Cs, { className: "AdvDescription", children: (F = o.banner) == null ? void 0 : F.body })
347
347
  ] })
348
348
  ] }),
349
- o.buttonType !== ho.NO_BUTTON && /* @__PURE__ */ n(On, { children: /* @__PURE__ */ n(
350
- Bn,
349
+ o.buttonType !== ho.NO_BUTTON && /* @__PURE__ */ s(Ls, { children: /* @__PURE__ */ s(
350
+ Os,
351
351
  {
352
352
  href: y,
353
353
  style: {
354
- backgroundColor: ((U = (F = o.banner) == null ? void 0 : F.ctaButton) == null ? void 0 : U.color) || "#009dc4",
355
- color: ((V = (z = o.banner) == null ? void 0 : z.ctaButton) == null ? void 0 : V.textColor) || "#fff"
354
+ backgroundColor: ((z = (U = o.banner) == null ? void 0 : U.ctaButton) == null ? void 0 : z.color) || "#009dc4",
355
+ color: ((G = (V = o.banner) == null ? void 0 : V.ctaButton) == null ? void 0 : G.textColor) || "#fff"
356
356
  },
357
357
  "data-analytics": "button",
358
358
  "data-promo-id": i,
359
359
  "data-promo-type": o.type,
360
360
  target: "_blank",
361
- children: (W = (G = o.banner) == null ? void 0 : G.ctaButton) == null ? void 0 : W.label
361
+ children: (H = (W = o.banner) == null ? void 0 : W.ctaButton) == null ? void 0 : H.label
362
362
  }
363
363
  ) })
364
364
  ] });
365
- }, Pn = /* @__PURE__ */ s("div")({
365
+ }, _s = /* @__PURE__ */ n("div")({
366
366
  name: "SidebarContainer",
367
367
  class: "s1abskp8",
368
368
  propsAsIs: !1
369
- }), xn = ({
369
+ }), Ps = ({
370
370
  children: o,
371
371
  direction: e,
372
372
  style: i,
373
- className: l,
374
- hiding: r
375
- }) => /* @__PURE__ */ n(M, {
373
+ className: r,
374
+ hiding: l
375
+ }) => /* @__PURE__ */ s(L, {
376
376
  direction: e,
377
377
  style: i,
378
- hiding: r,
379
- className: l,
380
- children: /* @__PURE__ */ n(Pn, {
378
+ hiding: l,
379
+ className: r,
380
+ children: /* @__PURE__ */ s(_s, {
381
381
  children: o
382
382
  })
383
- }), Rn = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === g.INGAME_IAB21_LBAR, Dn = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11 || (o == null ? void 0 : o.type) === g.INGAME_IAB21, qn = ({
383
+ }), xs = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === g.INGAME_IAB21_LBAR, Rs = (o) => (o == null ? void 0 : o.type) === g.INGAME_IAB11 || (o == null ? void 0 : o.type) === g.INGAME_IAB21, Ds = ({
384
384
  advertisement: o,
385
385
  close: e,
386
386
  skipTypeCheck: i,
387
- skipAutoClose: l,
388
- layoutMode: r = "side-by-side",
387
+ skipAutoClose: r,
388
+ layoutMode: l = "side-by-side",
389
389
  sidebar: a,
390
390
  isNotification: d,
391
391
  banner: c,
392
392
  markAsViewed: u,
393
393
  open: t
394
- }) => o.promotion ? d && o.notification ? /* @__PURE__ */ n(An, { open: t, notification: o.notification, promotionId: o.question.id }) : !a && !c && (i || Dn(o.promotion)) ? /* @__PURE__ */ n(In, { className: "PromoOverlayContainer", children: /* @__PURE__ */ n(
395
- J,
394
+ }) => o.promotion ? d && o.notification ? /* @__PURE__ */ s(vs, { open: t, notification: o.notification, promotionId: o.question.id }) : !a && !c && (i || Rs(o.promotion)) ? /* @__PURE__ */ s(As, { className: "PromoOverlayContainer", children: /* @__PURE__ */ s(
395
+ Q,
396
396
  {
397
397
  markAsViewed: u,
398
398
  promotionId: o.question.id,
399
399
  promotion: o.promotion,
400
400
  onClose: e,
401
- skipAutoClose: l
401
+ skipAutoClose: r
402
402
  }
403
- ) }) : a && (i || Rn(o.promotion)) ? /* @__PURE__ */ n(xn, { className: "PromoSidebarContainer", direction: a, hiding: !1, children: /* @__PURE__ */ n(
404
- J,
403
+ ) }) : a && (i || xs(o.promotion)) ? /* @__PURE__ */ s(Ps, { className: "PromoSidebarContainer", direction: a, hiding: !1, children: /* @__PURE__ */ s(
404
+ Q,
405
405
  {
406
406
  markAsViewed: u,
407
407
  promotionId: o.question.id,
408
408
  promotion: o.promotion,
409
409
  onClose: e,
410
- skipAutoClose: l
410
+ skipAutoClose: r
411
411
  }
412
- ) }) : c ? /* @__PURE__ */ n(
412
+ ) }) : c ? /* @__PURE__ */ s(
413
413
  Eo,
414
414
  {
415
415
  promotionId: o.question.id,
@@ -417,59 +417,59 @@ const yo = /* @__PURE__ */ s("div")({
417
417
  promotion: o.promotion,
418
418
  direction: c
419
419
  }
420
- ) : null : null, wn = /* @__PURE__ */ s("div")({
420
+ ) : null : null, qs = /* @__PURE__ */ n("div")({
421
421
  name: "AdvertisementUIWrap",
422
422
  class: "aa6pjif",
423
423
  propsAsIs: !1
424
- }), jn = (o) => {
424
+ }), ws = (o) => {
425
425
  const e = o.target;
426
426
  if (e instanceof HTMLAnchorElement && e.target === "_blank") {
427
- const i = e.getAttribute("data-promo-id") || "", l = e.getAttribute("data-promo-type") || g.UNSET;
428
- e.getAttribute("data-analytics") === "button" && k.emit("advertisement", {
427
+ const i = e.getAttribute("data-promo-id") || "", r = e.getAttribute("data-promo-type") || g.UNSET;
428
+ e.getAttribute("data-analytics") === "button" && M.emit("advertisement", {
429
429
  action: "buttonSelect",
430
430
  payload: {
431
431
  id: i,
432
- type: l
432
+ type: r
433
433
  }
434
- }), e.getAttribute("data-analytics") === "banner" && k.emit("advertisement", {
434
+ }), e.getAttribute("data-analytics") === "banner" && M.emit("advertisement", {
435
435
  action: "bannerSelect",
436
436
  payload: {
437
437
  id: i,
438
- type: l
438
+ type: r
439
439
  }
440
440
  });
441
441
  }
442
- }, Fn = ({
442
+ }, js = ({
443
443
  gamification: o,
444
444
  layoutMode: e,
445
445
  skipAutoClose: i,
446
- skipTypeCheck: l,
447
- sidebar: r,
446
+ skipTypeCheck: r,
447
+ sidebar: l,
448
448
  banner: a,
449
449
  notification: d,
450
450
  isMobileScreen: c,
451
451
  persistent: u
452
452
  }) => {
453
453
  var t, v, I;
454
- const p = to(null), A = Q(o.advertisement.$store);
455
- co(p, {
454
+ const p = ao(null), A = Y(o.advertisement.$store);
455
+ po(p, {
456
456
  enabled: !!A.data,
457
457
  event: "click",
458
- listener: jn
458
+ listener: ws
459
459
  });
460
- const b = !a && !r;
460
+ const f = !a && !l;
461
461
  if (A.data === void 0 || !u && A.isViewed)
462
462
  return null;
463
- const f = ((I = (v = (t = A == null ? void 0 : A.data) == null ? void 0 : t.notification) == null ? void 0 : v.promotion) == null ? void 0 : I.mode) === no.LOWER_THIRD;
464
- return /* @__PURE__ */ n(wn, {
463
+ const N = ((I = (v = (t = A == null ? void 0 : A.data) == null ? void 0 : t.notification) == null ? void 0 : v.promotion) == null ? void 0 : I.mode) === no.LOWER_THIRD;
464
+ return /* @__PURE__ */ s(qs, {
465
465
  ref: p,
466
466
  style: {
467
- height: b ? "auto" : "100%"
467
+ height: f ? "auto" : "100%"
468
468
  },
469
- className: $("SL-AdvertisementUIWrap", c && "mobile-view", f && "SL-AdvertisementUIWrap--lower-third"),
470
- children: /* @__PURE__ */ n(qn, {
471
- skipTypeCheck: l,
472
- sidebar: r,
469
+ className: C("SL-AdvertisementUIWrap", c && "mobile-view", N && "SL-AdvertisementUIWrap--lower-third"),
470
+ children: /* @__PURE__ */ s(Ds, {
471
+ skipTypeCheck: r,
472
+ sidebar: l,
473
473
  banner: a,
474
474
  advertisement: A.data,
475
475
  close: A.close,
@@ -480,20 +480,20 @@ const yo = /* @__PURE__ */ s("div")({
480
480
  skipAutoClose: i
481
481
  })
482
482
  });
483
- }, Un = ({
483
+ }, Fs = ({
484
484
  sdk: o,
485
485
  sidebar: e,
486
486
  banner: i,
487
- skipAutoClose: l,
488
- skipTypeCheck: r,
487
+ skipAutoClose: r,
488
+ skipTypeCheck: l,
489
489
  layoutMode: a,
490
490
  isMobileScreen: d,
491
491
  persistent: c,
492
492
  notification: u
493
493
  }) => {
494
- const t = Q(o.featuresList.getStore());
494
+ const t = Y(o.featuresList.getStore());
495
495
  if (e && i)
496
- return /* @__PURE__ */ n("div", {
496
+ return /* @__PURE__ */ s("div", {
497
497
  style: {
498
498
  color: "red"
499
499
  },
@@ -502,7 +502,7 @@ const yo = /* @__PURE__ */ s("div")({
502
502
  if (!t)
503
503
  return null;
504
504
  const v = o.getFeature(go.GAMES);
505
- return v ? /* @__PURE__ */ n(Fn, {
505
+ return v ? /* @__PURE__ */ s(js, {
506
506
  gamification: v,
507
507
  sidebar: e,
508
508
  banner: i,
@@ -510,40 +510,40 @@ const yo = /* @__PURE__ */ s("div")({
510
510
  isMobileScreen: d,
511
511
  persistent: c,
512
512
  notification: u,
513
- skipTypeCheck: r,
514
- skipAutoClose: l
513
+ skipTypeCheck: l,
514
+ skipAutoClose: r
515
515
  }) : null;
516
- }, Hn = ({
516
+ }, Ws = ({
517
517
  event: o,
518
518
  sidebar: e,
519
519
  banner: i,
520
- isMobileScreen: l,
521
- skipAutoClose: r,
520
+ isMobileScreen: r,
521
+ skipAutoClose: l,
522
522
  persistent: a,
523
523
  theme: d,
524
524
  notification: c,
525
525
  skipTypeCheck: u
526
526
  }) => {
527
- const t = po(), v = mo(), I = uo();
528
- return !t || e && !v.promotionSidebar || i && !v.promotionBanner || c && !v.promotionNotification || !i && !e && !c && !v.promotionOverlay ? null : /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: [
529
- /* @__PURE__ */ n(vo, { customTheme: d ?? I, children: /* @__PURE__ */ n(
530
- Un,
527
+ const t = mo(), v = uo(), I = vo();
528
+ return t ? e && !v.promotionSidebar ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : i && !v.promotionBanner ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : c && !v.promotionNotification ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : !i && !e && !c && !v.promotionOverlay ? o !== void 0 && /* @__PURE__ */ s(b, { event: o }) : /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: [
529
+ /* @__PURE__ */ s(Ao, { customTheme: d ?? I, children: /* @__PURE__ */ s(
530
+ Fs,
531
531
  {
532
532
  sdk: t,
533
533
  sidebar: e,
534
534
  banner: i,
535
- isMobileScreen: l,
535
+ isMobileScreen: r,
536
536
  persistent: a,
537
537
  notification: c,
538
538
  skipTypeCheck: u,
539
- skipAutoClose: r,
539
+ skipAutoClose: l,
540
540
  layoutMode: "side-by-side"
541
541
  }
542
542
  ) }),
543
- o !== void 0 && /* @__PURE__ */ n(Ao, { event: o })
544
- ] });
543
+ o !== void 0 && /* @__PURE__ */ s(b, { event: o })
544
+ ] }) : null;
545
545
  };
546
546
  export {
547
- Hn as StreamLayerSDKAdvertisement,
548
- Un as StreamLayerSDKAdvertisementUI
547
+ Ws as StreamLayerSDKAdvertisement,
548
+ Fs as StreamLayerSDKAdvertisementUI
549
549
  };
@@ -17846,7 +17846,7 @@ const Z_ = ({
17846
17846
  d = !0;
17847
17847
  };
17848
17848
  const y = z_(e, n, a, {
17849
- version: "1.8.2",
17849
+ version: "1.8.3",
17850
17850
  onDeepLinkHandled: s,
17851
17851
  videoPlayerController: o,
17852
17852
  onContentActivate: r,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "type": "module",
5
5
  "author": "StreamLayer, Inc (https://streamlayer.io)",
6
6
  "maintainers": [
@@ -83,17 +83,17 @@
83
83
  }
84
84
  ],
85
85
  "dependencies": {
86
- "@streamlayer/feature-gamification": "^1.8.2",
87
- "@streamlayer/sdk-web": "^1.5.2",
88
- "@streamlayer/sdk-web-api": "^1.6.3",
89
- "@streamlayer/sdk-web-analytics": "^1.4.3",
90
- "@streamlayer/sdk-web-features": "^1.0.24",
91
- "@streamlayer/sdk-web-interfaces": "^1.2.3",
92
- "@streamlayer/sdk-web-notifications": "^1.2.3",
93
- "@streamlayer/sdk-web-core": "^1.6.2",
94
- "@streamlayer/sdk-web-logger": "^1.0.24",
95
- "@streamlayer/sdk-web-storage": "^1.0.24",
96
- "@streamlayer/sdk-web-types": "^1.7.3"
86
+ "@streamlayer/feature-gamification": "^1.8.3",
87
+ "@streamlayer/sdk-web": "^1.5.3",
88
+ "@streamlayer/sdk-web-analytics": "^1.4.4",
89
+ "@streamlayer/sdk-web-api": "^1.6.4",
90
+ "@streamlayer/sdk-web-core": "^1.6.3",
91
+ "@streamlayer/sdk-web-features": "^1.0.25",
92
+ "@streamlayer/sdk-web-interfaces": "^1.2.4",
93
+ "@streamlayer/sdk-web-logger": "^1.0.25",
94
+ "@streamlayer/sdk-web-notifications": "^1.2.4",
95
+ "@streamlayer/sdk-web-storage": "^1.0.25",
96
+ "@streamlayer/sdk-web-types": "^1.7.4"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "@bufbuild/protobuf": "^1.10.0",
@@ -149,7 +149,7 @@
149
149
  "size-limit": "^11.1.6",
150
150
  "url-loader": "^4.1.1",
151
151
  "vite-plugin-dts": "^4.2.3",
152
- "@streamlayer/react-ui": "^1.11.2"
152
+ "@streamlayer/react-ui": "^1.11.3"
153
153
  },
154
154
  "scripts": {
155
155
  "size-limit": "size-limit"