PageSourceSearch

https://www.mirrorbingo.com/assets/brands-ui/assets/accountMenuLoader-DVsxGacr.js

js mirrorbingo.com collected 2026-09-30 03:24:43 UTC 7,708 bytes, 1 lines download raw bytes

1import{j as e,c as x,r as g,a as L}from"./clsx-cnhB1bSH.js";import{W as C}from"./bootstrap-BYGrC_mR.js";import"./vite-preload-helper-PPVm8Dsz.js";function S({size:n=24,color:t="var(--color-text-primary)",...s}){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 14 14",fill:"none",...s,children:e.jsx("path",{d:"M1.4 14L0 12.6L5.6 7L0 1.4L1.4 0L7 5.6L12.6 0L14 1.4L8.4 7L14 12.6L12.6 14L7 8.4L1.4 14Z",fill:t})})}function y({children:n,className:t,href:s,...i}){const a=x("link",t);return e.jsx("a",{href:s,className:a,...i,children:e.jsx("span",{children:n})})}function f({variant:n="primary",icon:t,iconPosition:s="left",disabled:i=!1,children:a,className:l,href:c,...h}){const p=x("btn",`btn-${n}`,l),m=()=>{if(!t)return e.jsx("span",{children:a});const d=e.jsx("span",{className:x("inline-flex items-center",{"btn-icon-left":s==="left"&&a,"btn-icon-right":s==="right"&&a}),children:t});return s==="left"?e.jsxs(e.Fragment,{children:[d,a&&e.jsx("span",{children:a})]}):e.jsxs(e.Fragment,{children:[a&&e.jsx("span",{children:a}),d]})};if(c){const d=j=>{i&&(j.preventDefault(),j.stopPropagation())};return e.jsx("a",{href:i?void 0:c,className:p,"aria-disabled":i,tabIndex:i?-1:void 0,onClick:d,...h,children:m()})}return e.jsx("button",{type:"button",className:p,disabled:i,...h,children:m()})}function u({size:n="16",weight:t="regular",as:s="span",children:i,className:a,...l}){const c=x("typography",`typography-${n}`,`typography-${t}`,a);return e.jsx(s,{className:c,...l,children:i})}function r({href:n,onClick:t,children:s,className:i,"data-a":a}){const l=x("menu-link rounded-md cursor-pointer p-3.5 flex items-start w-full box-border",i);return n?e.jsx("a",{href:n,className:l,"data-a":a,children:e.jsx(u,{size:"16",weight:"medium",children:s})}):e.jsx("button",{type:"button",onClick:t,className:l,"data-a":a,children:e.jsx(u,{size:"16",weight:"medium",children:s})})}function B({trophiesEnabled:n=!1}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"py-6",children:e.jsxs("div",{className:"bg-body-bg border-brand-tertiary flex h-20 items-center justify-between rounded-md border-4 px-2",children:[e.jsx("img",{alt:"Daily Spin Logo",src:"/assets/images/daily-wheel-logo.webp",width:"188",height:"140",className:"max-w-[55%]"}),e.jsx(f,{className:"w-full flex-[1_0_0]",variant:"secondary",href:"/daily-wheel","data-a":"daily-spin-button",children:"Play Now"})]})}),e.jsx(r,{href:"/freespins","data-a":"bonuses-link",children:"Bonuses"}),e.jsx(r,{href:"/promotions","data-a":"offers-link",children:"Offers"}),n&&e.jsx(r,{href:"/myaccount/trophies",children:"Trophies"})]})}function o({heading:n,children:t}){return e.jsxs("section",{className:"flex flex-col gap-2",children:[n&&e.jsx(u,{size:"16",weight:"medium",className:"text-text-primary",children:n}),t]})}function b({label:n,value:t}){return e.jsxs("div",{className:"bg-section-bg rounded-xxl border-text-primary flex items-center justify-between border px-4 py-1",children:[e.jsx(u,{size:"16",weight:"semibold",children:n}),e.jsx(u,{size:"16",weight:"semibold",children:t})]})}function E({totalBalance:n="0",realBalance:t="0",bonusBalance:s="0"}){return e.jsxs("div",{className:"text-text-primary bg-section-bg flex flex-col gap-2 rounded-md p-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 px-4 py-1",children:[e.jsx(u,{size:"16",weight:"semibold",children:"TOTAL"}),e.jsx(u,{size:"32",weight:"semibold",className:"break-all",children:n})]}),e.jsx(b,{label:"Real",value:t}),e.jsx(b,{label:"Bonus",value:s}),e.jsxs("div",{className:"flex items-center justify-center gap-4 self-stretch",children:[e.jsx(f,{variant:"secondary",href:"/myaccount/cashier?condensed","data-a":"deposit-button",className:"w-full",children:"Deposit"}),e.jsx(f,{variant:"primary",href:"/myaccount/withdrawal","data-a":"withdraw-button",className:"w-full",children:"Withdraw"})]})]})}function T({totalBalance:n,realBalance:t,bonusBalance:s,trophiesEnabled:i}){return e.jsxs(e.Fragment,{children:[e.jsxs(o,{heading:"Wallet",children:[e.jsx(E,{totalBalance:n,realBalance:t,bonusBalance:s}),e.jsx(r,{href:"/myaccount/transaction-history","data-a":"transaction-history-link",children:"Transaction History"})]}),e.jsx(o,{children:e.jsx(B,{trophiesEnabled:i})}),e.jsxs(o,{heading:"Support",children:[e.jsx(r,{href:"/faqs","data-a":"faq-link",children:"FAQs"}),e.jsx(r,{"data-a":"get-in-touch-button",children:"Get In Touch"})]}),e.jsxs(o,{heading:"Settings",children:[e.jsx(r,{href:"/myaccount/details","data-a":"profile-link",children:"Profile"}),e.jsx(r,{href:"/myaccount/deposit-limits","data-a":"set-limits-link",children:"Set limits"}),e.jsx(r,{href:"/myaccount/responsible-gambling-measures","data-a":"safer-gaming-link",children:"Safer Gaming"}),e.jsx(r,{href:"/myaccount/details","data-a":"communication-link",children:"Communication"})]}
1),e.jsx(o,{children:e.jsx(r,{href:"/?signout=1","data-a":"logout-link",children:"Log out"})})]})}function M({onLogin:n,onSignup:t}){return e.jsxs(e.Fragment,{children:[e.jsxs(o,{children:[e.jsx(f,{variant:"secondary",onClick:n,"data-a":"login-button",children:"Login"}),e.jsx(f,{className:"join-now-active",variant:"primary",onClick:t,"data-a":"signup-button",children:"Join"})]}),e.jsx(o,{children:e.jsx(r,{href:"/promotions","data-a":"offers-link",children:"Offers"})}),e.jsxs(o,{heading:"Support",children:[e.jsx(r,{href:"/faqs","data-a":"faq-link",children:"FAQs"}),e.jsx(r,{"data-a":"get-in-touch-button",children:"Get In Touch"})]})]})}function A({isLoggedIn:n,username:t,totalBalance:s,realBalance:i,bonusBalance:a,trophiesEnabled:l=!1,onLoginClick:c,onSignupClick:h}){const[p,m]=g.useState(!1),d=g.useRef(null),j=()=>{m(!1)},w=()=>{c?c():typeof window.openLoginPopup=="function"&&window.openLoginPopup()},v=()=>{h&&h()};return g.useEffect(()=>{const N=()=>{m(k=>!k)};d.current&&(window.toggleAccountMenu=N)},[]),e.jsx("nav",{ref:d,id:"account-menu",className:x("account-menu_v2",{active:p,"account-menu__logged-in":n,"account-menu__logged-out":!n}),children:e.jsxs("div",{className:"flex flex-col gap-4 p-4",children:[e.jsxs("section",{className:"border-brand-primary-text flex items-center justify-between gap-2 border-b p-4",children:[e.jsx("div",{className:"flex h-6 w-6 items-center justify-center",children:e.jsx(S,{size:14,onClick:j,className:"cursor-pointer",role:"button"})}),n?e.jsxs("p",{className:"text-decoration-none text-text-primary overflow-hidden text-2xl leading-9 font-medium tracking-[0.48px] text-ellipsis",children:["Hello, ",e.jsx("strong",{children:t})]}):e.jsxs("a",{className:"text-decoration-none text-text-primary overflow-hidden text-2xl leading-9 font-medium tracking-[0.48px] text-ellipsis",href:"/promotions","data-a":"top-link",children:["Claim your bonus ",e.jsx("strong",{children:"NOW!"})]})]}),n?e.jsx(T,{totalBalance:s,realBalance:i,bonusBalance:a,trophiesEnabled:l}):e.jsx(M,{onLogin:w,onSignup:v}),e.jsxs("section",{className:"flex flex-col items-start",children:[e.jsx(y,{href:"/privacy-policy","data-a":"privacy-link",children:"Privacy"}),e.jsx(y,{href:"/terms-and-conditions","data-a":"terms-link",children:"Terms and Conditions"}),e.jsx(y,{href:"/responsible-gaming","data-a":"responsible-gaming-link",children:"Responsible Gaming"})]})]})})}function I(n){const t=document.getElementById(C.ACCOUNT_MENU);if(!t)return;const s=n||{isLoggedIn:t.dataset.isLoggedIn==="true",username:t.dataset.username||void 0,totalBalance:t.dataset.totalBalance||void 0,realBalance:t.dataset.realBalance||void 0,bonusBalance:t.dataset.bonusBalance||void 0,trophiesEnabled:t.dataset.trophiesEnabled==="true"},i=L.createRoot(t),a=e.jsx(g.StrictMode,{children:e.jsx(A,{...s})});i.render(a)}export{I as bootstrapAccountMenu};

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.