PageSourceSearch

https://glory.casino/static/useFeatureFlag-BNuLgwFu.js

js glory.casino collected 2026-10-08 08:14:47 UTC 2,228 bytes, 7 lines download raw bytes

1function __vite__mapDeps(indexes) {
2  if (!__vite__mapDeps.viteFileDeps) {
3    __vite__mapDeps.viteFileDeps = []
4  }
5  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6}
7import{importShared as p}from"./__federation_fn_import-CEP4bGph.js";import{_ as h}from"./preload-helper-DX1wzJSG.js";import{e as c}from"./env-zTj1AJea.js";import{e as P}from"./index3-Cnxw2M5F.js";import{s as f}from"./hostname-DH0Go7P9.js";const _="glory",I=()=>{const t=`${f()}/flags/internal/v1/evaluation/snapshot/namespace/${_}`;return async o=>{const e={Accept:"application/json","x-flipt-accept-server-version":"1.47.0",...P()};c.VITE_APP_FLIPT_TOKEN&&(e.Authorization=`Bearer ${c.VITE_APP_FLIPT_TOKEN}`),o?.etag&&(e["If-None-Match"]=o.etag);const n=await fetch(t,{method:"GET",headers:e});if(!n.ok&&n.status!==304)throw new Error(`Failed to fetch data: ${n.statusText}`);return n}};let i=null;const N=()=>(i||(i=h(()=>import("./index-DJoCPUyd.js"),__vite__mapDeps([])).then(({FliptClient:t})=>t.init({url:`${f()}/flags`,namespace:_,authentication:{clientToken:c.VITE_APP_FLIPT_TOKEN||void 0},fetcher:I()})).catch(t=>{throw i=null,t})),i),{useEffect:O,useMemo:S,useState:a}=await p("react");var w=(t=>(t.GAMES_BETTING_GR8="games_betting_gr8",t.PAYMENT_PROGRESS_BAR="payment_progress_bar",t.COLLECT_PHONE="collect_phone",t.JACKPOT="jackpot",t.WHEEL_FORTUNE="wheel-of-fotrune",t.BACK_TO_GAME="back-to-game",t.CASHBACK_WIDGET="cashback_widget",t.MF_PAYMENTS="mf-payments",t.BANNER_REWARDS_WIDGET="banner-rewards-widget",t.MF_BONUS="mf-bonus",t.MF_LOYALTY="mf-loyalty",t.INAPP_NOTIFICATIONS="inapp-notifications",t.MF_NOTIFICATIONS="mf-notifications",t.WEB_PUSH_SUBSCRIPTION="web-push-subscription",t))(w||{});const R=(t,o,e={})=>{const[n,l]=a(e.defaultValue??!1),[E,u]=a(!0),[m,T]=a(null),d=S(()=>JSON.stringify(e.context??{}),[e.context]);return O(()=>{let r=!0;return(async()=>{try{const A=(await N()).evaluateBoolean({flagKey:t,entityId:o||"guest",context:e.context??{}});r&&l(A.enabled??!1)}catch(s){r&&T(s)}finally{r&&u(!1)}})(),()=>{r=!1}},[t,d,o]),t==="mf-notifications"&&window.localStorage.getItem("__mf_notifications_force")==="1"?!0:E?e.returnUndefinedOnLoading?void 0:e.defaultValue??!1:m?e.defaultValue??!1:n};export{w as F,R as u};

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.