PageSourceSearch

https://spin-and-win.pages.dev/build/_shared/chunk-UGXWNUAN.js

js spin-and-win.pages.dev collected 2026-10-03 05:58:46 UTC 6,670 bytes, 1 lines download raw bytes

1import{h}from"/build/_shared/chunk-NLUJT5NI.js";import{a as D,b as T}from"/build/_shared/chunk-2G3BUNAD.js";import{c as u,d as L,e as s}from"/build/_shared/chunk-6XX3ATVP.js";import{e as l}from"/build/_shared/chunk-ADMCF34Z.js";var C=l(h());var N=/^https:\/\/(\w+\.)?(test|api|checkout)\.trustly\.com\/?$/;function d(n){try{let t=new URL(n);return N.test(t.origin)}catch(t){return console.error(t),!1}}var g=(0,C.default)(n=>{window.open(`${n}`,"","width=800,height=600")},500),U=(0,C.default)(n=>{d(n)?window.open(`${n}`,"_blank"):console.error("Blocked potentially unsafe redirect:",n)},500),m=()=>{let n=/[(?|&)](([^=]+)=[^&#]+)/gi,t=n.exec(window.location.href),_={};for(;t!==null;)_[t[2]]=t[1],t=n.exec(window.location.href);_.Status!==void 0&&window.opener!==null&&(window.opener.postMessage({cashierEvent:E.OPENED_PAGE_REDIRECT,url:`${window.location.href}`},"*"),setTimeout(()=>{window.close()},10))},E={APP_CLOSE_QUICK_DEPOSIT_OPEN_CASHIER:"APP_CLOSE_QUICK_DEPOSIT_OPEN_CASHIER",APP_CLOSE_CASHIER:"APP_CLOSE_CASHIER",APP_CLOSE_CASHIER_AND_LOGOUT:"APP_CLOSE_CASHIER_AND_LOGOUT",APP_OPEN_CASHIER_FROM_PAY_PROVIDER_REDIRECT:"APP_OPEN_CASHIER_FROM_PAY_PROVIDER_REDIRECT",APP_CLOSE_CASHIER_AND_LOGOUT_OPEN_SUPPORT:"APP_CLOSE_CASHIER_AND_LOGOUT_OPEN_SUPPORT",APP_CLOSE_CASHIER_AND_OPEN_SUPPORT:"APP_CLOSE_CASHIER_AND_OPEN_SUPPORT",APP_CLOSE_CASHIER_AND_OPEN_SURVEY:"APP_CLOSE_CASHIER_AND_OPEN_SURVEY",APP_CLOSE_CASHIER_AND_OPEN_PRIVACY_POLICY:"APP_CLOSE_CASHIER_AND_OPEN_PRIVACY_POLICY",APP_CLOSE_CASHIER_AND_PRIZE_WHEEL:"APP_CLOSE_CASHIER_AND_PRIZE_WHEEL",APP_REDIRECT_PAYPAL:"APP_REDIRECT_PAYPAL",APP_REDIRECT_PAYSAFE:"APP_REDIRECT_PAYSAFE",APP_REDIRECT_TRUSTLY:"APP_REDIRECT_TRUSTLY",OPENED_PAGE_REDIRECT:"OPENED_PAGE_REDIRECT",APP_CLOSE_CASHIER_AND_OPEN_BINGO:"APP_CLOSE_CASHIER_AND_OPEN_BINGO",APP_CLOSE_CASHIER_AND_OPEN_MENU:"APP_CLOSE_CASHIER_AND_OPEN_MENU",APP_DEPOSIT_SUCCESS:"APP_DEPOSIT_SUCCESS",APP_WITHDRAWAL_REQUEST_COMPLETED:"APP_WITHDRAWAL_REQUEST_COMPLETED",DEPOSIT_BUTTON2:"DEPOSIT_BUTTON2",DEPOSIT_CONTINUE:"DEPOSIT_CONTINUE",DEPOSIT_ERRORS:"DEPOSIT_ERRORS",DEPOSIT_FAILS:"DEPOSIT_FAILS",APP_SAFER_GAMBLING:"APP_SAFER_GAMBLING"};function P(n,t,_,o,e){var A;return{currency:n,depositAmount:_,depositCount:o,depositInGame:(A=window==null?void 0:window.location)==null?void 0:A.pathname.includes("/games/launch"),depositLocation:u(window.location.pathname),depositMethod:t==null?void 0:t.depositMethod,depositSource:"web",transactionId:t==null?void 0:t.purchaseId,affordabilityStatus:t==null?void 0:t.affordabilityGamblerStatus,wallet:e}}var a=class{constructor(t,_,o,e,A,i,r,c){this.successfulDepositRedirect=t=>{let _=/[(?|&)](([^=]+)=[^&#]+)/gi,o=_.exec(t),e={};for(;o!==null;)e[o[2]]=o[1],o=_.exec(t);let A=[e.Balance,e.Amount,e.Status,e.StatusMsg,e.Bonus,e.FreeSpins,e.FreeCards,e.FreeGamesPrize1Amount,e.FreeGamesPrize2Amount,e.Function,e.Source,e.Device,e.ssid,e.PlayerID,e.CustomerID,e.ErrorCode,"isPayProviderRedirect=true"],i="";if(A.forEach((r,c)=>{let S=c!==0?"&":"";r!==void 0&&r.length!==0&&(i+=`${S}${r}`)}),e.Status!==void 0){let r=i.startsWith("&")&&this.cashierURL.indexOf("?")>-1?`${this.cashierURL}${i}`:`${this.cashierURL}&${i}`;this.setCashierURL(r)}};this.depositClose=()=>{this.navigate(this.currentLocation)};this.goToPrivacyPolicy=()=>this.navigate("/privacy-policy");this.goToSupport=()=>window.location.href=`${window.location.origin}/support`;this.goToAffordabilitySurvey=()=>this.navigate(T.menu_edd_affordability_survey);this.onCashierMessage=t=>{var r,c,S,R,O,I;if(!t||t.data===void 0||!t.data.cashierEvent)return;let{data:_}=(r=t.data)!=null?r:{},o=Number.parseFloat((c=_==null?void 0:_.depositAmount)!=null?c:"0"),e=_==null?void 0:_.depositCount,i=((O=(R=(S=window.digitalData)==null?void 0:S.user)==null?void 0:R.wallet)!=null?O:0)+o;switch(t.data.cashierEvent){case E.APP_OPEN_CASHIER_FROM_PAY_PROVIDER_REDIRECT:case E.APP_CLOSE_CASHIER_AND_LOGOUT_OPEN_SUPPORT:case E.APP_CLOSE_CASHIER_AND_PRIZE_WHEEL:case E.APP_CLOSE_CASHIER_AND_OPEN_BINGO:case E.APP_CLOSE_CASHIER_AND_OPEN_MENU:break;case E.APP_CLOSE_CASHIER_AND_OPEN_SUPPORT:this.goToSupport();break;case E.APP_CLOSE_CASHIER_AND_OPEN_PRIVACY_POLICY:this.goToPrivacyPolicy();break;case E.APP_CLOSE_CASHIER_AND_OPEN_SURVEY:this.goToAffordabilitySurvey();break;case E.APP_CLOSE_CASHIER:this.setRefreshBalance(!0),this.depositClose();break;case E.APP_CLOSE_CASHIER_AND_LOGOUT:this.setRefreshBalance(!0),this.depositClose();break;case E.APP_REDIRECT_PAYPAL:case E.APP_REDIRECT_PAYSAFE:g(t.data.url);break;case E.APP_REDIRECT_TRUSTLY:U(t.data.url);break;case E.OPENED_PAGE_REDIRECT:this.successfulDepositRedirect(t.data.url);break;case E.APP_DEPOSIT_SUCCESS:{this.setRefreshBalance(!0),s({event:"deposit_success",eventCategory:"cashier",eventAction:"page_load",...P(this.currencyCode,_,o,e,i),firstDeposit:e==1,secondDeposit:e==2,thirdDeposit:e==3,subsequentDeposit:e>3}),e==1&&(s({event:"first_time_deposit",eventCategory:"cashier",eventAction:"page_load",...P(this.currencyCode,_,o,e,i)}),this.callback&&this.callback()),e==2&&s({event:"second_deposit",eventCategory:"cashier",eventAction:"page_load",...P(this.currencyCode,_,o,e,i)}),e==3&&s({event:"third_deposit",eventCategory:"cashier",eventAction:"page_load",...P(this.currencyCode,_,o,e,i)}),e>3&&s({event:"subsequent_deposit",eventCategory:"cashier",eventAction:"page_load",...P(this.currencyCode,_,o,e,i)}),this.currentLocation.includes("/games/launch")&&s({event:"in_game_deposit",eventCategory:"games",eventAction:"page_load",...P(this.currencyCode,_,o,e,i),gameProvider:(I=this.context)==null?void 0:I.gameProvider}),L({wallet:i,depositCount:e});break}case E.DEPOSIT_BUTTON2:{s({event:"deposit_button2",eventCategory:"cashier",eventAction:"button_click"});break}case E.DEPOSIT_CONTINUE:{s({event:"deposit_continue",eventCategory:"cashier",eventAction:"button_click",...P(this.currencyCode,_,o,e)});break}case E.DEPOSIT_ERRORS:{s({event:"deposit_errors",eventCategory:"cashier",eventAction:"page_load",errorMessage:_==null?void 0:_.errorMessage,...P(this.currencyCode,_,o,e)});break}case E.DEPOSIT_FAILS:{s({event:"deposit_fails",eventCategory:"cashier",eventAction:"page_load",errorMessage:_==null?void 0:_.errorMessage,...P(this.currencyCode,_,o,e)});break}case E.APP_WITHDRAWAL_REQUEST_COMPLETED:{s({event:"withdrawal_success",eventCategory:"cashier",eventAction:"page_load",...P(this.currencyCode,_,o,e,i)}),this.setRefreshBalance(!0);break}case E.APP_SAFER_GAMBLING:{this.navigate(D.menu_safer_gambling_hub);break}}};this.cashierURL=t,this.setCashierURL=_,this.navigate=o,this.setRefreshBalance=e,this.currentLocation=A,this.currencyCode=i,this.callback=r,this.context=c}},w=a;export{m as a,w 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.