PageSourceSearch

https://www.meccagames.com/build/_shared/chunk-XVWA3KZM.js

js meccagames.com collected 2026-09-26 12:31:07 UTC 3,023 bytes, 1 lines download raw bytes

1import{b as R}from"/build/_shared/chunk-2G3BUNAD.js";import{e as c}from"/build/_shared/chunk-6XX3ATVP.js";import{e as v,v as C}from"/build/_shared/chunk-RBFCHJWR.js";import{a as h}from"/build/_shared/chunk-JUM7J4TY.js";import{a as U}from"/build/_shared/chunk-RW7BUM27.js";import{e as N}from"/build/_shared/chunk-ADMCF34Z.js";var p=N(h());var H=N(U());function K({isOpen:S,onClose:s,template:D="DEFAULT"}){var m,A;let{siteConfig:_,environment:f,userAgent:x,skinId:M,siteCode:F,profile:d,mohData:u,isMobile:b,currencySymbol:G}=C("root"),T=v(),V=b?(m=_==null?void 0:_.mobileLogo)==null?void 0:m.Url:(A=_==null?void 0:_.siteLogo)==null?void 0:A.Url,k=void 0,g={enabled:!0,enableHub:!0,config:`${M},${f},${d==null?void 0:d.access_token},${D},${k},${u==null?void 0:u.mohLevel},${F},${G}`};return(0,p.useEffect)(()=>{if(!S||typeof document=="undefined")return;let y=e=>new Promise((i,a)=>{let t=document.createElement("script");t.src=e,t.async=!0,t.onload=()=>i(),t.onerror=()=>a(new Error(`Failed to load ${e}`)),document.head.appendChild(t)}),P=async()=>{try{await import("/build/_shared/zone-LNDEQCFM.js")}catch{try{await import("zone.js/dist/zone")}catch{await y("https://unpkg.com/[email protected]/bundles/zone.umd.min.js")}}},l;return P().then(()=>import("/build/_shared/safer-gambling-hub-FXS4CEG6.js")).then(()=>{let e=document.querySelector("sbm-safer-gambling-hub");if(!e)return;e.configuration=g;let i=()=>s(),a=()=>{T(R.menu_cashier_depositlimits),s()},t=()=>T("/forms/logout"),I=()=>console.log("STOP_NOTIFICATIONS"),L=n=>{var o,r;let E=(r=(o=n==null?void 0:n.detail)==null?void 0:o.selectedFrequency)==null?void 0:r.Description;E&&c({event:"reality_check",RealityCheckReminderOptions:E})},O=n=>{var o,r;let E=(r=(o=n==null?void 0:n.detail)==null?void 0:o.selectedFrequency)==null?void 0:r.Description;E&&c({event:"self_exclusion",SelfExclusionOptions:E})},B=n=>{var o,r;let E=(r=(o=n==null?void 0:n.detail)==null?void 0:o.selectedFrequency)==null?void 0:r.Description;E&&c({event:"take_a_break",TakeABreakOptions:E})};e.addEventListener("SBM_SG_HUB_CLOSE",i),e.addEventListener("SBM_SG_HUB_OPEN_CASHIER_DEPOSIT_LIMITS",a),e.addEventListener("SBM_SG_HUB_ACCOUNT_DISABLED",t),e.addEventListener("SBM_SG_HUB_STOP_NOTIFICATIONS",I),e.addEventListener("SBM_GAME_SESSION_REMINDER_EVENT",L),e.addEventListener("SBM_SELF_EXCLUSION_EVENT",O),e.addEventListener("SBM_TAKE_A_BREAK_EVENT",B),l=()=>{e.removeEventListener("SBM_SG_HUB_CLOSE",i),e.removeEventListener("SBM_SG_HUB_OPEN_CASHIER_DEPOSIT_LIMITS",a),e.removeEventListener("SBM_SG_HUB_ACCOUNT_DISABLED",t),e.removeEventListener("SBM_SG_HUB_STOP_NOTIFICATIONS",I),e.removeEventListener("SBM_GAME_SESSION_REMINDER_EVENT",L),e.removeEventListener("SBM_SELF_EXCLUSION_EVENT",O),e.removeEventListener("SBM_TAKE_A_BREAK_EVENT",B)}}).catch(e=>console.log("Failed to load resource",e)),()=>{l&&l()}},[S]),S?(0,H.jsx)("sbm-safer-gambling-hub",{"brand-logo":V}):null}var z=S=>{let s=new CustomEvent("SHOW_SG_HUB",{detail:S});window&&window.dispatchEvent(s)};export{K as a,z as b};

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.