1import{x as D,y as M,z as V,C as F,O as h,D as x,E as R,G as z,H as L,j as e,I as $,S as I}from"./chunk-BV-dBhmi.js";import{r as a,R as T}from"./chunk-1tMn9E7H.js";/* empty css *//* empty css */function k(o,c,i){var t=F(o)||c||i?{next:o,error:c,complete:i}:o;return t?M(function(d,l){var u;(u=t.subscribe)===null||u===void 0||u.call(t);var b=!0;d.subscribe(V(l,function(s){var r;(r=t.next)===null||r===void 0||r.call(t,s),l.next(s)},function(){var s;b=!1,(s=t.complete)===null||s===void 0||s.call(t),l.complete()},function(s){var r;b=!1,(r=t.error)===null||r===void 0||r.call(t,s),l.error(s)},function(){var s,r;b&&((s=t.unsubscribe)===null||s===void 0||s.call(t)),(r=t.finalize)===null||r===void 0||r.call(t)}))}):D}let y;const G=()=>(!y&&!globalThis.isDOMSSR&&(y=document.obgEventBus.expose($.SetHeaderHeight)),y),K=a.memo(()=>e.jsx("site-header-version-manager",{layoutContext:"default",class:"hydrated"}),()=>!0),P=a.memo(()=>e.jsx("div",{className:"aams-regulatory-bar",children:e.jsx("responsible-gaming_aams_regulatory_bar",{class:"hydrated"})}),()=>!0),U=a.memo(()=>e.jsx("div",{className:"dga-session-bar-container",children:e.jsx("responsible-gaming_dga_regulatory_bar",{class:"hydrated"})}),()=>!0);function q({hideOnDesktop:o=!1,overrideHeaderHeight:c=!1}){const[i,t]=a.useState(!1),[d,l]=a.useState(!1),[u,b]=a.useState(!1),[s,r]=a.useState(!1),[B,E]=a.useState(!1),[N,_]=a.useState(!1),f=a.useRef(null),p=a.useRef(null),v=a.useRef(null),S=a.useRef(null);return a.useEffect(()=>{S.current=G();const j=n=>{const m=n.detail;m&&"no-secondary-actions"in m&&_(m["no-secondary-actions"])},A=new h(document.obgEventBus.retrieve(x.Config)).pipe(R(n=>n["app-site"])),w=new h(document.obgEventBus.retrieve(z.RouteUrl)).pipe(R(n=>n?.routeName)),H=new h(document.obgEventBus.retrieve(x.AllowedFeatures));v.current=()=>{globalThis.isDOMSSR||setTimeout(()=>{S.current?.next(f?.current?.getBoundingClientRect().height)},100)};const g=f.current;g&&(g.addEventListener("headerViewChange",j),p.current=new ResizeObserver(()=>{v.current?.()}),p.current.observe(g),v.current?.());const O=L([A,w,H]).pipe(k(([n,m,C])=>{l(m&&!n?.kyc?.hideKycBannerInPages?.includes(m)),t(n?.smartAppBanner?.isEnabled),b(n?.regulatoryBar?.isAamsRegulatoryBarEnabled),r(n?.regulatoryBar?.isDgaRegulatoryBarEnabled??!1),E(C.includes(I.FabricHeaderMobileNavbar))})).subscribe();return()=>{g?.removeEventListener("headerViewChange",j),p.current?.disconnect(),p.current=null,O.unsubscribe()}},[]),a.useEffect(()=>{(d||u||i||s)&&v.current?.()},[d,u,i,s]),e.jsxs("div",{ref:f,className:"react-header"+(B?" has-mobile-nav":"")+(o?" hide-on-desktop":""),style:{"--header-mobile-secondary-actions-base-height":c?"0px":"48px"},children:[u&&e.jsx("div",{className:"aams-regulatory-bar",children:e.jsx(P,{})}),s&&e.jsx(U,{}),e.jsx("header",{className:[N&&"no-secondary-actions"].filter(Boolean).join(" "),children:e.jsx("div",{className:"row sticky-nav-header",children:e.jsx("div",{className:"column",children:e.jsx(K,{})})})})]})}function J(){const o=a.memo(()=>e.jsx("site-smart-app-banner",{className:"hydrated"}),()=>!0);return e.jsx("div",{className:"smart-app-banner",children:e.jsx(o,{})})}function Q({children:o,userContext:c}){const[i,t]=a.useState(!1);return a.useEffect(()=>{const d=document.obgEventBus.retrieve(x.IsNative)({next:l=>{t(!!l)},complete:()=>{},error:()=>{}});return()=>{d()}},[]),e.jsxs(e.Fragment,{children:[!i&&e.jsx(T,{jurisdiction:c.jurisdiction}),!c.isBot&&e.jsx(J,{}),!i&&e.jsx(q,{}),o]})}const ee=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));export{ee as i,k as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.