1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6397],{74738:function(e,o,t){var n=t(57437),a=t(71309),r=t(62438),c=t(90148),l=t(41585),d=t(60402),i=t(42586),s=t(99376),u=t(2265),y=t(69064),m=t(63861),h=t(67776),p=t(32768),g=t(95359);o.Z=e=>{var o,t;let{className:v,initialPromoCode:f,onPromoCodeChange:x,onPromoCodeApplied:b}=e,S=(0,s.useSearchParams)().get("promo"),{balance:C,refreshBalance:N}=(0,r.A)(),{refreshFreeSpin:j}=(0,c.k)(),{fetchData:w,error:P,isLoading:M,setIsLoading:G}=(0,l.Z)(),[A,I]=(0,u.useState)(f||S||""),[_,T]=(0,u.useState)(null),[k,B]=(0,u.useState)(""),[E,F]=(0,u.useState)(!1),[Z,L]=(0,u.useState)(!1),[R,D]=(0,u.useState)(!1),H=(0,s.useRouter)(),K=(0,i.useLocale)(),O=(0,i.useTranslations)("promoCode"),U=async()=>{G(!0);try{var e,o,t,n;let[a,r]=await Promise.all([(0,d.Xp)(),w("/player/promoCodeDetails","GET")]),c=(null==a?void 0:null===(t=a.activeBonus)||void 0===t?void 0:null===(o=t.data)||void 0===o?void 0:null===(e=o[0])||void 0===e?void 0:e.status)||"";return B(c),T((null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.data)||null),c}catch(e){return console.error(e),null}finally{G(!1)}},z=async e=>{G(!0);try{let{data:o,error:t}=await w("/player/addPromoCode","POST",{code:e});if(null==o?void 0:o.success){y.ZP.success(o.message),F(!1),N();let e=await j();await U(),b&&b(),e>0&&(await (0,m.JG)(e=>Array.isArray(e)&&"string"==typeof e[0]&&(e[0].includes("/player/getFreeSpinGames")||e[0].includes("/player/getFreeSpinsHistory"))),await H.push("/".concat(K,"/player-dashboard/free-spin-games")))}else!(null==o?void 0:o.success)&&(null==o?void 0:o.message)?y.ZP.error(o.message):(null==t?void 0:t.message)&&y.ZP.error(t.message)}catch(e){y.ZP.error(e.message||O("errorOccurred"))}finally{G(!1)}},V=async()=>{G(!0);try{let{data:e,error:o}=await w("/player/removePromoCode","POST",{code:A});(null==e?void 0:e.success)?(I(""),T(null),y.ZP.success(e.message),await U(),await j(),b&&b()):e&&y.ZP.error(e.message)}catch(e){y.ZP.error(e.message||O("errorOccurred"))}finally{G(!1),L(!1)}},J=()=>{L(!1)},W=async e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),M||(await z(A),N())},Y=e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),1==k?F(!0):W(e)};(0,u.useEffect)(()=>{(async()=>{await U(),S&&await z(S)})()},[]);let X=()=>{M||F(!1)},q=null!==(t=null!==(o=null==_?void 0:_.min_deposit)&&void 0!==o?o:null==_?void 0:_.minDeposit)&&void 0!==t?t:null==_?void 0:_.minimum_deposit,Q=(()=>{if(null==q||""===q)return null;let e=(null==C?void 0:C.currency)||"";return("number"==typeof q||/^\d+(\.\d+)?$/.test(String(q)))&&e?"".concat(q," ").concat(e):String(q)})();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"deposit-promo w-full py-3 my-3 border-y border-gray-150 ".concat(v),children:[(0,n.jsx)("div",{className:"promo-p",children:(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:O("title1")})}),(0,n.jsxs)("div",{className:"deposit-promo-row flex w-full items-stretch gap-2",children:[(0,n.jsx)(a.u3,{name:"promo_code",placeholder:O("placeholder"),value:(null==_?void 0:_.promo_code)||A,onChange:e=>{I(e.target.value),x&&x(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||(e.preventDefault(),e.stopPropagation(),(null==_?void 0:_.promo_code)||!A||Y(e))}}),M?(0,n.jsx)(a.vG,{type:"button",disabled:!0,className:"deposit-promo-btn",children:(0,n.jsx)(g.Z,{size:22,margin:0,color:"#fff"})}):(null==_?void 0:_.promo_code)?(0,n.jsx)(a.vG,{type:"button",className:"deposit-promo-btn",onClick:e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),L(!0)},children:O("remove")}):(0,n.jsx)(a.vG,{type:"button",className:"deposit-promo-btn",onClick:Y,children:O("add")})]}),(0,n.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,n.jsx)(a.P,{className:"!text-white !text-xs",children:O("title2")}),(0,n.jsx)(a.gc,{name:O("clickHere"),href:"/".concat(K,"/bonus"),className:"!text-white !text-xs hover:!text-primary-color",target:"_blank"})]}),(null==_?void 0:_.name)&&(0,n.jsxs)("div",{className:"mt-3 rounded-xl border border-emerald-400/25 bg-emerald-500/10 px-3 py-2.5",children:[(0,n.jsx)(a.P,{className:"!text-sm !text-white !font-semibold leading-snug",children:_.name}),Q&&(0,n.jsx)("div",{className:"mt-1.5 inline-flex items-center rounded-full bg-emerald-400/15 px-2.5 py-0.5",children:(0,n.jsxs)(a.P,{className:"!text-[11px] !text-emerald-300 !font-medium",children:[O("minDeposit"),": ",Q]})})]})]}
1),E&&(0,n.jsxs)("dialog",{className:"modal modal-open z-[100000]",children:[(0,n.jsxs)("div",{className:"modal-box bg-custom-bg2 border-2 border-primary-color shadow-lg shadow-primary-color/35 rounded-2xl text-center gap-5",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1 justify-center items-center",children:[(0,n.jsx)(h.XvE,{className:"text-5xl text-primary-color"}),(0,n.jsx)(a.H4,{className:"text-primary-color",children:O("warningTitle")})]}),(0,n.jsx)(a.P,{children:O("warningDes")}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-5 mt-5",children:[(0,n.jsx)(a.vG,{type:"button",onClick:W,disabled:M,className:"w-32 min-h-[40px] inline-flex items-center justify-center disabled:opacity-70 disabled:cursor-not-allowed",children:M?(0,n.jsx)(g.Z,{size:20,margin:0,color:"#fff"}):O("confirm")}),(0,n.jsx)(a.vG,{type:"button",onClick:X,disabled:M,className:"w-32 disabled:opacity-70 disabled:cursor-not-allowed",children:O("close")})]})]}),(0,n.jsx)("form",{method:"dialog",className:"modal-backdrop",children:(0,n.jsx)("button",{type:"button",onClick:X,disabled:M,children:O("close")})})]}),(0,n.jsx)(a.P0,{isOpen:Z,closeModal:J,className:"w-[90vw] max-w-[400px]",mainCss:"z-[100000]",children:(0,n.jsxs)("div",{className:"bg-custom-bg2 border-2 border-red-color shadow-[0_0_30px_rgba(239,68,68,0.35)] rounded-2xl text-center py-8 px-6 flex flex-col items-center gap-4",children:[(0,n.jsx)("div",{className:"w-16 h-16 rounded-full bg-red-color/15 flex items-center justify-center",children:(0,n.jsx)(p.OvZ,{className:"text-4xl text-red-color"})}),(0,n.jsx)(a.H4,{className:"text-white",children:O("removeModalTitle")}),(0,n.jsx)(a.P,{className:"text-custom-text !text-sm",children:O("removeModalDes")}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 w-full mt-2",children:[(0,n.jsx)(a.op,{onClick:V,disabled:M,className:"w-full py-3 min-h-[48px] rounded-xl bg-red-color hover:bg-red-700 text-white font-bold tracking-wide transition disabled:opacity-60 flex items-center justify-center",children:M?(0,n.jsx)("span",{className:"inline-flex items-center justify-center",children:(0,n.jsx)(g.Z,{size:18,margin:0,color:"#fff"})}):O("removeConfirm")}),(0,n.jsx)(a.op,{onClick:J,className:"w-full py-3 rounded-xl bg-custom-bg3 hover:bg-custom-bg1 text-white font-semibold transition",children:O("goBack")})]})]})})]})}},44853:function(e,o,t){t.d(o,{UserInfo:function(){return h}});var n=t(57437),a=t(71309),r=t(9008),c=t(41585),l=t(96165),d=t(77314),i=t(42586),s=t(2265),u=t(43488);t(28356);var y=t(95359),m=t(85571);let h=e=>{let{className:o="tab:grid-cols-3"}=e,{fetchData:t,error:h,isLoading:p,setIsLoading:g}=(0,c.Z)(),{updateUser:v}
1=(0,l.a)(),[f,x]=(0,s.useState)(""),b=(0,i.useTranslations)("playerProfilePage");(0,s.useEffect)(()=>{(async()=>{let{data:e,error:o}=await t("/player/getProfile","GET");if(null==e?void 0:e.data){var n,a,c,l,d,i,s,u,y,h,p,v;C.setValues({first_name:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.first_name,last_name:null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.last_name,email:null==e?void 0:null===(c=e.data)||void 0===c?void 0:c.email,phone:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.phone,dob:null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.dob,country:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.country,street_address_1:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.street_address_1,city:null==e?void 0:null===(u=e.data)||void 0===u?void 0:u.city,state:null==e?void 0:null===(y=e.data)||void 0===y?void 0:y.state,zip:null==e?void 0:null===(h=e.data)||void 0===h?void 0:h.zip,gender:null==e?void 0:null===(p=e.data)||void 0===p?void 0:p.gender,country_code:(0,r.fv)(null==e?void 0:null===(v=e.data)||void 0===v?void 0:v.country)}),x(null==e?void 0:e.data),g(!1)}else o&&m.Am.error(o.message||"An error occurred while fetching user data.")})()},[]);let S=async(e,o)=>{let{resetForm:n}=o,a={...e};(null==f?void 0:f.phone)&&(a.phone=f.phone);let{data:r,error:c}=await t("/player/updateProfile","POST",a);r&&r.success?(await v(),m.Am.success(r.message)):c&&m.Am.error(c.message||"Failed to update profile. Please try again.")},C=(0,d.TA)({initialValues:{first_name:"",last_name:"",email:"",phone:"",dob:"",state:"",country:"",street_address_1:"",city:"",zip:"",gender:"",country_code:""},onSubmit:S});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("form",{onSubmit:C.handleSubmit,children:(0,n.jsxs)(a.Zb,{children:[(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-2 tab:gap-5 mb-5 h-[550px] overflow-auto tab:h-auto ".concat(o),children:[(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("FirstName")}),(0,n.jsx)(a.u3,{type:"text",name:"first_name",placeholder:"First Name",value:C.values.first_name,onChange:C.handleChange,disabled:!0})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("LastName")}),(0,n.jsx)(a.u3,{type:"text",name:"last_name",placeholder:"Last Name",value:C.values.last_name,onChange:C.handleChange,disabled:!0})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("Email")}),(0,n.jsx)(a.u3,{type:"text",name:"email",placeholder:"Email",value:C.values.email,disabled:!0})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("Phone")}),(0,n.jsx)(u.ZP,{id:"phone black",placeholder:"Phone",international:!0,countryCallingCodeEditable:!1,defaultCountry:C.values.country_code,value:C.values.phone,onChange:e=>{null!=f&&f.phone||C.setFieldValue("phone",e)},disabled:null!=f&&!!f.phone,className:"w-full text-md text-gray-800 !bg-[#f2f8ff] border border-[#d9d9d9] py-[6px] px-2 rounded-lg placeholder:text-sm tab:placeholder:text-xs ".concat((null==f?void 0:f.phone)?"opacity-60 cursor-not-allowed pointer-events-none":"")})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("Gender")}),(0,n.jsxs)("select",{name:"gender",value:C.values.gender,onChange:C.handleChange,className:"w-full p-2 rounded-md",children:[(0,n.jsx)("option",{value:"",children:"Select Gender"}),(0,n.jsx)("option",{value:"Male",children:"Male"}),(0,n.jsx)("option",{value:"Female",children:"Female"}),(0,n.jsx)("option",{value:"Others",children:"Others"})]})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:"Date of Birth"}),(0,n.jsx)(a.u3,{type:"date",name:"dob",placeholder:"dob",value:C.values.dob,onChange:C.handleChange})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("Country")}),(0,n.jsx)(a.u3,{type:"text",name:"country",placeholder:"Country",value:C.values.country,disabled:!0})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("Address")}),(0,n.jsx)(a.u3,{type:"text",name:"street_address_1",placeholder:"Address 1",value:C.values.street_address_1,onChange:C.handleChange})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:"State"}),(0,n.jsx)(a.u3,{type:"text",name:"state",placeholder:"State",value:C.values.state,onChange:C.handleChange})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("City")}),(0,n.jsx)(a.u3,{type:"text",name:"city",placeholder:"City",value:C.values.city,onChange:C.handleChange})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(a.P,{className:"mb-2 !text-white",children:b("Postcode")}),(0,n.jsx)(a.u3,{type:"text",name:"zip",placeholder:"Postcode",value:C.values.zip,onChange:C.handleChange})]})]}),p?(0,n.jsx)(a.vG,{disable:!0,children:(0,n.jsx)(y.Z,{className:"text-heading-0",color:"#FFF",size:30,margin:0})}):(0,n.jsx)(a.vG,{type:"submit",children:b("update")})]})})})}},62438:function(e,o,t){t.d(o,{BalanceProvider:function(){return s},A:function(){return i}});var n=t(57437),a=t(64131),r=t(2265);let c="".concat("https://backoffice.europa777.com","/api");async function l(){let e=a.Z.get("token"),o=await fetch("".concat(c,"/player/getBalance"),{headers:{"Content-Type":"application/json",...e?{Authorization:"Bearer ".concat(e)}:{}}});if(!o.ok)throw Error("Failed to fetch balance");return o.json()}let d=(0,r.createContext)(),i=()=>(0,r.useContext)(d),s=e=>{let{children:o}=e,[t,a]=(0,r.useState)(!1),{balance:c,error:i,balanceLoading:s,fetchBalance:u}=function(e){let[o,t]=(0,r.useState)(null),[n,a]=(0,r.useState)(!0),[c,d]=(0,r.useState)(null),i=(0,r.useCallback)(async()=>{a(!0);try{let e=await l();t(e.balance)}catch(e){d(e.message)}finally{a(!1)}},[]);return(0,r.useEffect)(()=>{i()},[i,e]),{balance:o,balanceLoading:n,error:c,fetchBalance:i}}(t);(0,r.useEffect)(()=>{u()},[t,u]);let y=(0,r.useCallback)(()=>a(e=>!e),[]);return(0,n.jsx)(d.Provider,{value:{balance:c,balanceLoading:s,error:i,refreshBalance:y},children:o})}},90148:function(e,o,t){t.d(o,{PromoCodeProvider:function(){return y},k:function(){return s}});var n=t(57437),a=t(96165),r=t(60402),c=t(99376),l=t(2265),d=t(63861);let i=(0,l.createContext)(),s=()=>(0,l.useContext)(i),u=e=>{let o=Number(e);return Number.isFinite(o)&&o>0?o:0},y=e=>{let{children:o}=e,{isLoggedIn:t}=(0,a.a)(),[s,y]=(0,l.useState)(0),[m,h]=(0,l.useState)(!1),[p,g]=(0,l.useState)(""),[v,f]=(0,l.useState)(null),[x,b]=(0,l.useState)(!1),S=(0,c.useSearchParams)();(0,l.useEffect)(()=>{let e=S.get("promo_code"),o=S.get("action"),t=localStorage.getItem("promo_timestamp");if(t&&new Date().getTime()-parseInt(t)>864e5){localStorage.removeItem("promo_code"),localStorage.removeItem("promo_action"),localStorage.removeItem("promo_timestamp"),g(""),f(null);return}if(e){let t=e.toUpperCase(),n=new Date().getTime();t!==p&&b(!1),g(t),localStorage.setItem("promo_code",t),localStorage.setItem("promo_timestamp",n.toString()),"login"===o?(f("login"),localStorage.setItem("promo_action","login")):(f(null),localStorage.removeItem("promo_action"))}else{let e=localStorage.getItem("promo_code"),o=localStorage.getItem("promo_action");e&&(g(e),o&&f(o))}},[S]);let C=(0,l.useCallback)(()=>{g(""),f(null),localStorage.removeItem("promo_code"),localStorage.removeItem("promo_action"),localStorage.removeItem("promo_timestamp");{let e=new URL(window.location.href);if(e.searchParams.has("promo_code")||e.searchParams.has("action")){e.searchParams.delete("promo_code"),e.searchParams.delete("action");let o=e.pathname+e.search;window.history.replaceState({},"",o)}}},[]),N=(0,l.useMemo)(()=>"login"===v&&!!p,[v,p]),j=(0,l.useCallback)(async()=>
1{if(!t)return y(0),0;h(!0);try{let e=await (0,r.ch)(),o=u(null==e?void 0:e.freeSpinRemaining);return y(o),await (0,d.JG)(e=>Array.isArray(e)&&"string"==typeof e[0]&&(e[0].includes("/player/getFreeSpinsHistory")||e[0].includes("/player/getFreeSpinGames"))),o}catch(e){return console.error("Error fetching free spin:",e),y(0),0}finally{h(!1)}},[t]),w=(0,l.useCallback)(async()=>j(),[j]);(0,l.useEffect)(()=>{j()},[j]);let P=(0,l.useMemo)(()=>({freeSpin:s,hasFreeSpin:s>0,isLoading:m,refreshFreeSpin:w,promoCode:p,action:v,isLoginPromo:N,clearPromo:C,isAutoOpened:x,setIsAutoOpened:b}),[s,m,w,p,v,N,C,x]);return(0,n.jsx)(i.Provider,{value:P,children:o})}},9008:function(e,o,t){t.d(o,{fv:function(){return a}});let n=[{code:"AF",country:"Afghanistan"},{code:"AX",country:"Aland Islands"},{code:"AL",country:"Albania"},{code:"DZ",country:"Algeria"},{code:"AS",country:"American Samoa"},{code:"AD",country:"Andorra"},{code:"AO",country:"Angola"},{code:"AI",country:"Anguilla"},{code:"AQ",country:"Antarctica"},{code:"AG",country:"Antigua and Barbuda"},{code:"AR",country:"Argentina"},{code:"AM",country:"Armenia"},{code:"AW",country:"Aruba"},{code:"AU",country:"Australia"},{code:"AT",country:"Austria"},{code:"AZ",country:"Azerbaijan"},{code:"BS",country:"Bahamas"},{code:"BH",country:"Bahrain"},{code:"BD",country:"Bangladesh"},{code:"BB",country:"Barbados"},{code:"BY",country:"Belarus"},{code:"BE",country:"Belgium"},{code:"BZ",country:"Belize"},{code:"BJ",country:"Benin"},{code:"BM",country:"Bermuda"},{code:"BT",country:"Bhutan"},{code:"BO",country:"Bolivia"},{code:"BQ",country:"Bonaire, Sint Eustatius and Saba"},{code:"BA",country:"Bosnia and Herzegovina"},{code:"BW",country:"Botswana"},{code:"BV",country:"Bouvet Island"},{code:"BR",country:"Brazil"},{code:"IO",country:"British Indian Ocean Territory"},{code:"BN",country:"Brunei Darussalam"},{code:"BG",country:"Bulgaria"},{code:"BF",country:"Burkina Faso"},{code:"BI",country:"Burundi"},{code:"KH",country:"Cambodia"},{code:"CM",country:"Cameroon"},{code:"CA",country:"Canada"},{code:"CV",country:"Cape Verde"},{code:"KY",country:"Cayman Islands"},{code:"CF",country:"Central African Republic"},{code:"TD",country:"Chad"},{code:"CL",country:"Chile"},{code:"CN",country:"China"},{code:"CX",country:"Christmas Island"},{code:"CC",country:"Cocos (Keeling) Islands"},{code:"CO",country:"Colombia"},{code:"KM",country:"Comoros"},{code:"CG",country:"Congo"},{code:"CD",country:"Congo, the Democratic Republic of the"},{code:"CK",country:"Cook Islands"},{code:"CR",country:"Costa Rica"},{code:"CI",country:"Cote D'Ivoire"},{code:"HR",country:"Croatia"},{code:"CU",country:"Cuba"},{code:"CW",country:"Curacao"},{code:"CY",country:"Cyprus"},{code:"CZ",country:"Czech Republic"},{code:"DK",country:"Denmark"},{code:"DJ",country:"Djibouti"},{code:"DM",country:"Dominica"},{code:"DO",country:"Dominican Republic"},{code:"EC",country:"Ecuador"},{code:"EG",country:"Egypt"},{code:"SV",country:"El Salvador"},{code:"GQ",country:"Equatorial Guinea"},{code:"ER",country:"Eritrea"},{code:"EE",country:"Estonia"},{code:"ET",country:"Ethiopia"},{code:"FK",country:"Falkland Islands (Malvinas)"},{code:"FO",country:"Faroe Islands"},{code:"FJ",country:"Fiji"},{code:"FI",country:"Finland"},{code:"FR",country:"France"},{code:"GF",country:"French Guiana"},{code:"PF",country:"French Polynesia"},{code:"TF",country:"French Southern Territories"},{code:"GA",country:"Gabon"},{code:"GM",country:"Gambia"},{code:"GE",country:"Georgia"},{code:"DE",country:"Germany"},{code:"GH",country:"Ghana"},{code:"GI",country:"Gibraltar"},{code:"GR",country:"Greece"},{code:"GL",country:"Greenland"},{code:"GD",country:"Grenada"},{code:"GP",country:"Guadeloupe"},{code:"GU",country:"Guam"},{code:"GT",country:"Guatemala"},{code:"GG",country:"Guernsey"},{code:"GN",country:"Guinea"},{code:"GW",country:"Guinea-Bissau"},{code:"GY",country:"Guyana"},{code:"HT",country:"Haiti"},{code:"HM",country:"Heard Island and Mcdonald Islands"},{code:"VA",country:"Holy See (Vatican City State)"},{code:"HN",country:"Honduras"},{code:"HK",country:"Hong Kong"},{code:"HU",country:"Hungary"},{code:"IS",country:"Iceland"},{code:"IN",country:"India"},{code:"ID",country:"Indonesia"}
1,{code:"IR",country:"Iran, Islamic Republic of"},{code:"IQ",country:"Iraq"},{code:"IE",country:"Ireland"},{code:"IM",country:"Isle of Man"},{code:"IL",country:"Israel"},{code:"IT",country:"Italy"},{code:"JM",country:"Jamaica"},{code:"JP",country:"Japan"},{code:"JE",country:"Jersey"},{code:"JO",country:"Jordan"},{code:"KZ",country:"Kazakhstan"},{code:"KE",country:"Kenya"},{code:"KI",country:"Kiribati"},{code:"KP",country:"Korea, Democratic People's Republic of"},{code:"KR",country:"Korea, Republic of"},{code:"XK",country:"Kosovo"},{code:"KW",country:"Kuwait"},{code:"KG",country:"Kyrgyzstan"},{code:"LA",country:"Lao People's Democratic Republic"},{code:"LV",country:"Latvia"},{code:"LB",country:"Lebanon"},{code:"LS",country:"Lesotho"},{code:"LR",country:"Liberia"},{code:"LY",country:"Libyan Arab Jamahiriya"},{code:"LI",country:"Liechtenstein"},{code:"LT",country:"Lithuania"},{code:"LU",country:"Luxembourg"},{code:"MO",country:"Macao"},{code:"MK",country:"Macedonia, the Former Yugoslav Republic of"},{code:"MG",country:"Madagascar"},{code:"MW",country:"Malawi"},{code:"MY",country:"Malaysia"},{code:"MV",country:"Maldives"},{code:"ML",country:"Mali"},{code:"MT",country:"Malta"},{code:"MH",country:"Marshall Islands"},{code:"MQ",country:"Martinique"},{code:"MR",country:"Mauritania"},{code:"MU",country:"Mauritius"},{code:"YT",country:"Mayotte"},{code:"MX",country:"Mexico"},{code:"FM",country:"Micronesia, Federated States of"},{code:"MD",country:"Moldova, Republic of"},{code:"MC",country:"Monaco"},{code:"MN",country:"Mongolia"},{code:"ME",country:"Montenegro"},{code:"MS",country:"Montserrat"},{code:"MA",country:"Morocco"},{code:"MZ",country:"Mozambique"},{code:"MM",country:"Myanmar"},{code:"NA",country:"Namibia"},{code:"NR",country:"Nauru"},{code:"NP",country:"Nepal"},{code:"NL",country:"Netherlands"},{code:"NC",country:"New Caledonia"},{code:"NZ",country:"New Zealand"},{code:"NI",country:"Nicaragua"},{code:"NE",country:"Niger"},{code:"NG",country:"Nigeria"},{code:"NU",country:"Niue"},{code:"NF",country:"Norfolk Island"},{code:"MP",country:"Northern Mariana Islands"},{code:"NO",country:"Norway"},{code:"OM",country:"Oman"},{code:"PK",country:"Pakistan"},{code:"PW",country:"Palau"},{code:"PS",country:"Palestinian Territory, Occupied"},{code:"PA",country:"Panama"},{code:"PG",country:"Papua New Guinea"},{code:"PY",country:"Paraguay"},{code:"PE",country:"Peru"},{code:"PH",country:"Philippines"},{code:"PN",country:"Pitcairn"},{code:"PL",country:"Poland"},{code:"PT",country:"Portugal"},{code:"PR",country:"Puerto Rico"},{code:"QA",country:"Qatar"},{code:"RE",country:"Reunion"},{code:"RO",country:"Romania"},{code:"RU",country:"Russian Federation"},{code:"RW",country:"Rwanda"},{code:"BL",country:"Saint Barthelemy"},{code:"SH",country:"Saint Helena"},{code:"KN",country:"Saint Kitts and Nevis"},{code:"LC",country:"Saint Lucia"},{code:"MF",country:"Saint Martin (French part)"},{code:"PM",country:"Saint Pierre and Miquelon"},{code:"VC",country:"Saint Vincent and the Grenadines"},{code:"WS",country:"Samoa"},{code:"SM",country:"San Marino"},{code:"ST",country:"Sao Tome and Principe"},{code:"SA",country:"Saudi Arabia"},{code:"SN",country:"Senegal"},{code:"RS",country:"Serbia"},{code:"SC",country:"Seychelles"},{code:"SL",country:"Sierra Leone"},{code:"SG",country:"Singapore"},{code:"SX",country:"Sint Maarten (Dutch part)"},{code:"SK",country:"Slovakia"},{code:"SI",country:"Slovenia"},{code:"SB",country:"Solomon Islands"},{code:"SO",country:"Somalia"},{code:"ZA",country:"South Africa"},{code:"GS",country:"South Georgia and the South Sandwich Islands"},{code:"SS",country:"South Sudan"},{code:"ES",country:"Spain"},{code:"LK",country:"Sri Lanka"},{code:"SD",country:"Sudan"},{code:"SR",country:"Suriname"},{code:"SJ",country:"Svalbard and Jan Mayen"},{code:"SZ",country:"Swaziland"},{code:"SE",country:"Sweden"},{code:"CH",country:"Switzerland"},{code:"SY",country:"Syrian Arab Republic"},{code:"TW",country:"Taiwan, Province of China"},{code:"TJ",country:"Tajikistan"},{code:"TZ",country:"Tanzania, United Republic of"},{code:"TH",country:"Thailand"},{code:"TL",country:"Timor-Leste"},{code:"TG",country:"Togo"},{code:"TK",country:"Tokelau"},{code:"TO",country:"Tonga"},{code:"TT",country:"Trinidad and Tobago"},{code:"TN",country:"Tunisia"},{code:"TR",country:"Turkey"},{code:"TM",country:"Turkmenistan"},{code:"TC",country:"Turks and Caicos Islands"},{code:"TV",country:"Tuvalu"},{code:"UG",country:"Uganda"},{code:"UA",country:"Ukraine"},{code:"AE",country:"United Arab Emirates"},{code:"GB",country:"United Kingdom"},{code:"US",country:"United States"},{code:"UM",country:"United States Minor Outlying Islands"},{code:"UY",country:"Uruguay"},{code:"UZ",country:"Uzbekistan"},{code:"VU",country:"Vanuatu"},{code:"VE",country:"Venezuela"},{code:"VN",country:"Viet Nam"},{code:"VG",country:"Virgin Islands, British"},{code:"VI",country:"Virgin Islands, U.S."},{code:"WF",country:"Wallis and Futuna"},{code:"EH",country:"Western Sahara"},{code:"YE",country:"Yemen"},{code:"ZM",country:"Zambia"},{code:"ZW",country:"Zimbabwe"}],a=e=>{if(e){let o=n.find(o=>o.country.toLowerCase()===e.trim().toLowerCase());
1return o?o.code:null}return null}},96165:function(e,o,t){t.d(o,{AuthProvider:function(){return d},a:function(){return i}});var n=t(57437);t(83079);var a=(0,t(12119).$)("fb95e08643d0e68cfc01dede6bbe1414168ec977"),r=t(64131),c=t(2265);let l=(0,c.createContext)();function d(e){let{children:o}=e,[t,d]=(0,c.useState)(!1),[i,s]=(0,c.useState)(null),[u,y]=(0,c.useState)(!1),[m,h]=(0,c.useState)(!0);(0,c.useEffect)(()=>{(async()=>{let e=r.Z.get("isLoggedIn"),o=r.Z.get("token"),t=r.Z.get("user");try{if(e&&o&&d(!0),t)try{let e=JSON.parse(t);s(e),y(e.email_verified_at||!1)}catch(e){console.error("Failed to parse user cookie:",e)}}finally{h(!1)}if(o&&!t)try{let e=await a();if(e.success){let o=e.data;s(o),y(o.email_verified_at||!1),r.Z.set("user",JSON.stringify(o))}}catch(e){console.error("Failed to fetch user:",e),d(!1)}})()},[]);let p=(0,c.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{let o=e;if(!o){let e=await a();if(e.success)o=e.data;else{console.error("Failed to refresh user:",e.message);return}}s(o),y(o.email_verified_at||!1),r.Z.set("user",JSON.stringify(o))}catch(e){console.error("Error in updateUser:",e)}},[]);return(0,n.jsx)(l.Provider,{value:{isLoggedIn:t,user:i,emailVerified:u,login:e=>{let{user:o,token:t}=e;r.Z.set("isLoggedIn",!0),r.Z.set("token",t),r.Z.set("user",JSON.stringify(o)),s(o),d(!0),y(o.email_verified_at||!1)},logout:()=>{let e=r.Z.get("admin_token");if(d(!1),s(null),y(!1),r.Z.remove("token"),r.Z.remove("isLoggedIn"),r.Z.remove("user"),r.Z.remove("admin_token"),e){let o="".concat("https://backoffice.europa777.com","/impersonate_logout?admin_token=").concat(e);window.location.href=o}},updateUser:p,loading:m},children:o})}function i(){return(0,c.useContext)(l)}},23042:function(e,o,t){t.d(o,{ModalContextProvider:function(){return l},d:function(){return c}});var n=t(57437),a=t(2265);let r=(0,a.createContext)(),c=()=>(0,a.useContext)(r),l=e=>{let{children:o}=e,[t,c]=(0,a.useState)(null);return(0,n.jsx)(r.Provider,{value:{activeModal:t,openModal:e=>{c(e)},closeModal:()=>{c(null)}},children:o})}},43955:function(e,o,t){var n=t(64131),a=t(63861);let r=async(e,o)=>{let t=await fetch(e,o);if(!t.ok){let e=Error("An error occurred while fetching the data.");throw e.info=await t.json(),e.status=t.status,e}return t.json()},c="".concat("https://backoffice.europa777.com","/api");o.Z=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=l||n.Z.get("token"),s="".concat(c).concat(e),u={method:o,headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Authorization:i?"Bearer ".concat(i):void 0},body:t?JSON.stringify(t):void 0},{data:y,error:m,isLoading:h,isValidating:p,mutate:g}=(0,a.ZP)(e?[s,u]:null,e=>{let[o,t]=e;return r(o,t)},d);return{data:y,error:m,isLoading:h,isValidating:p,mutate:g}}},60402:function(e,o,t){t.d(o,{Ai:function(){return l},SF:function(){return i},Xp:function(){return d},ch:function(){return c},s_:function(){return u},xE:function(){return s}});var n=t(64131);let a="".concat("https://backoffice.europa777.com","/api");async function r(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.Z.get("token");try{let n=await fetch("".concat(a).concat(e),{method:o.method||"GET",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",...t?{Authorization:"Bearer ".concat(t)}:{},...o.headers},body:o.body?JSON.stringify(o.body):null,cache:"no-store",next:{revalidate:60},...o.config});if(!n.ok){let e=await n.json();throw Error(e.message||"Something went wrong")}return n.json()}catch(o){throw console.error("Error fetching ".concat(e,":"),o),o}}async function c(){return r("/player/getFreeSpinsHistory")}async function l(){return r("/player/checkBonusLimitation")}async function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return r("/player/getActiveBonus?page=".concat(e))}async function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return r("/player/getBonusHistory?page=".concat(e))}async function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return r("/player/getGamePlayHistory?page=".concat(e))}async function u(){return r("/player/getCashbackHistory")}}}]);
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.