1import{a as B}from"/build/_shared/chunk-EYBPTUPL.js";import{a as D,b as _}from"/build/_shared/chunk-VZXFVSJ3.js";import{a as k}from"/build/_shared/chunk-HFUZZOIL.js";import{d as N}from"/build/_shared/chunk-WPFCM4KT.js";import{b as U}from"/build/_shared/chunk-2G3BUNAD.js";import{c as x,e as E}from"/build/_shared/chunk-6XX3ATVP.js";import{d as T,e as y,q as A,v as r,w as I}from"/build/_shared/chunk-RBFCHJWR.js";import{a as X}from"/build/_shared/chunk-JUM7J4TY.js";import{a as P}from"/build/_shared/chunk-RW7BUM27.js";import{e as p}from"/build/_shared/chunk-ADMCF34Z.js";var a=p(X());var o=p(P());function Y({isPokerApp:$,onCloseClick:w,onBackClick:f,profile:H,liveHelpUrl:h,liveHelpEnabled:O,code:i=""}){var b,R,v;let G=(b=r("routes/games/launch.$gameName"))==null?void 0:b.provider,c=y(),n=T(),{siteConfig:m}=r("root"),C=m==null?void 0:m.isNewSaferGambling,e=I(),l=new URLSearchParams(n.search),M=/Status=\d/,F=(v=(R=n.state)==null?void 0:R.params)!=null?v:{},g=new URLSearchParams(F).toString(),{isAndroidApp:q,currencyCode:Q}=r("root"),[W,z]=(0,a.useState)(!1),[J,L]=(0,a.useState)(!0),[u,S]=(0,a.useState)(""),K={currency:Q,depositInGame:n.pathname.includes("/games/launch"),depositSource:"web",depositLocation:x(n.pathname)};(0,a.useEffect)(()=>{var s;if(e.state==="idle"&&(e==null?void 0:e.data)!==void 0){if(!((s=e==null?void 0:e.data)!=null&&s.isSuccessfulResponse)){L(!1);return}if(L(!1),!u||!M.test(u)){let t=e.data.message.depositResource;g&&(t=`${t}&${g}`),q&&(t=`${t}&webview=true`),S(t)}}},[e.state,e==null?void 0:e.data]),(0,a.useEffect)(()=>{E({event:"deposit_attempt",eventCategory:"cashier",eventAction:"page_load",...K});let s=l==null?void 0:l.get("offerId"),t="/components/_cashierDepositURL";if(i||s){let d=new URLSearchParams;i&&d.append("bonusPromoCode",`${i}`),s&&d.append("offerId",`${s}`),t=`${t}?${d.toString()}`}e.load(t)},[]);let V=()=>{c(`${U.menu_cashier_depositlimits}`)};return(0,o.jsx)(D.Provider,{value:{provider:G},children:(0,o.jsxs)(_,{profile:H,menuTitle:"DEPOSIT",menuUserClasses:"text-depositAccountMenuHeaderTextTopColor",menuTitleClasses:"text-depositAccountMenuHeaderTextBottomColor",onBackIconClick:()=>{f&&f()},onCloseIconClick:$?null:()=>{w()},rightContent:(0,o.jsx)(N,{className:"font-bold text-cashierBalanceTextColor no-underline",text:"Balance: ",refresh:W}
1),children:[(0,o.jsx)(k,{className:"bg-depositBackgroundColor text-depositColor",leftContent:h&&O&&(0,o.jsx)(A,{className:"btn btn-ghost underline text-depositLiveHelpLinkColor",to:h,rel:"noopener noreferrer",target:"_blank",children:"Live Help"}),rightContent:(0,o.jsx)("button",{className:"btn btn-ghost underline text-depositLinkColor",onClick:C?()=>c("/#safer-gambling-hub"):V,children:C?"Set Financial Limits":"Set Net Deposit Limits"})}),(0,o.jsx)(B,{loading:J,cashierURL:u,setCashierURL:S,navigate:c,setRefreshBalance:z,currentPath:n.pathname,frameId:"frame-deposit",frameTitle:"frame-deposit",backgroundClassName:"bg-depositBackgroundColor",callback:()=>{e.submit({},{action:"/actions/bonus/getActiveBonus",method:"post"})}})]})})}export{Y as a};
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.