PageSourceSearch

https://casinoerudenomrofus.com/build/assets/init.eb6a038d.js

js casinoerudenomrofus.com collected 2026-10-04 02:00:12 UTC 5,536 bytes, 1 lines download raw bytes

1import{r as n,g as A,j as t,c as F}from"./getTranslationFn.2356ac80.js";import{P as S,V as B}from"./index.e7dc0abc.js";import{G as I,B as $,b as k,S as C,C as T,c as M,d as V,a as U,t as w,u as H}from"./auth.8d3a1b9f.js";import{u as G}from"./usePopupHandler.6cac7bc4.js";import{u as L}from"./useLockBodyScroll.7791b918.js";import{s as h}from"./selectStylesByLayout.27113c92.js";import{p as W,a as Y}from"./k2.module.68c80a31.js";import{a as R,b as K}from"./k2.module.9d7457c1.js";import{g as z}from"./api-routes.97a1618e.js";import{B as D}from"./index.b2c27fc3.js";import"./_commonjsHelpers.725317a4.js";import"./getLocale.2a000434.js";import"./index.054212fd.js";import"./getProjectVersion.cf97dcd9.js";const g=n.createContext(),X="_overlay_1uw4x_1",q="_popup_1uw4x_18",J={overlay:X,popup:q,"close-btn":"_close-btn_1uw4x_34"},Q="_overlay_fn9r0_1",Z="_popup_fn9r0_18",tt={overlay:Q,popup:Z,"close-btn":"_close-btn_fn9r0_33"},et="_top_1xftf_1",st="_bottom_1xftf_18",ot="_picture_1xftf_37",at={top:et,bottom:st,picture:ot},nt="_top_1ac32_1",rt="_bottom_1ac32_18",lt="_picture_1ac32_37",it={top:nt,bottom:rt,picture:lt},l=A("react-gambler-reviews-translates");function ct(){const{casinoData:o}=n.useContext(g),s=h(at,it);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:s.top,children:l("subtitle")}),t.jsxs("div",{className:s.bottom,children:[o.logo?t.jsx("picture",{className:s.picture,children:t.jsx("img",{src:o.logo,width:"68",height:"40",alt:`${o.name} logo`,loading:"lazy"})}):t.jsx("div",{className:s.picture,children:"Logo"}),t.jsx("p",{children:o.name})]})]})}const ut="_wrap_3mxsv_1",pt="_star_3mxsv_5",dt="_active_3mxsv_19",mt={wrap:ut,star:pt,active:dt},_t="_wrap_vrdpw_1",vt="_star_vrdpw_5",xt="_active_vrdpw_19",ft={wrap:_t,star:vt,active:xt};function yt({value:o=0,max:s=5,onChange:e}){const[p,a]=n.useState(null),c=h(mt,ft),v=s*2,u=p!==null?p:o;return t.jsx("div",{className:c.wrap,children:Array.from({length:v},(d,i)=>{const r=(i+1)/2,x=r<=u;return t.jsx("button",{className:`${c.star} ${x?c.active:""}`,type:"button",onClick:()=>e==null?void 0:e(r),onMouseEnter:()=>a(r),onMouseLeave:()=>a(null),children:t.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 23 22",children:t.jsx("use",{xlinkHref:"#svg-review-star"})})},i)})})}const O=1500,ht=[{key:I,label:l("game-selection")},{key:$,label:l("bonuses-promotions")},{key:k,label:l("banking-methods")},{key:C,label:l("security-trust")},{key:T,label:l("customer-support")}],N={[I]:0,[$]:0,[k]:0,[C]:0,[T]:0},bt=({casinoId:o,onSuccess:s})=>{const[e,p]=n.useState(N),[a,c]=n.useState(""),[v,u]=n.useState(!1),[d,i]=n.useState(null),r=n.useCallback(()=>Object.values(e).some(m=>m===0)||!a.trim()?l("please-fill-all-fields"):null,[e,a]),x=n.useCallback((m,y)=>{p(b=>({...b,[m]:y}))},[]),f=n.useCallback(async()=>{var y,b,E,j;i(null);const m=r();if(m){i(m);return}u(!0);try{const _={[M]:o,[V]:a.slice(0,O),...e};await U.post(z,_),p(N),c(""),s==null||s()}catch(_){const P=((b=(y=_==null?void 0:_.response)==null?void 0:y.data)==null?void 0:b.error)||((j=(E=_==null?void 0:_.response)==null?void 0:E.data)==null?void 0:j.message)||w("something-went-wrong");i(P)}finally{u(!1)}},[o,e,a,r,s]);return{ratings:e,reviewText:a,loading:v,error:d,setReviewText:c,handleRatingChange:x,handleSubmit:f}};function wt(){const{casinoData:o,setIsSubmitted:s}=n.useContext(g),e=h(Y,W),p=h(K,R),a=window["react-layout"]==="k1",{ratings:c,reviewText:v,loading:u,error:d,setReviewText:i,handleRatingChange:r,handleSubmit:x}=bt({casinoId:o.id,onSuccess:()=>s(!0)});return t.jsxs("div",{className:e.form,children:[t.jsxs("div",{className:e.inner,children:[t.jsxs("div",{className:e.rate,children:[t.jsx("p",{children:l("rate-experience")}),ht.map(({key:f,label:m})=>t.jsxs("div",{className:e.row,children:[m,t.jsx(yt,{value:c[f],onChange:y=>r(f,y)})]},f))]}),t.jsx("textarea",{className:e.textarea,value:v,onChange:f=>i(f.target.value),placeholder:l("your-review"),maxLength:O})]}),d&&t.jsx("p",{className:`${e.alert} ${p.error}`,role:"alert",children:d}),t.jsx("button",{className:`${e.button} gradient-btn ${a?"":"main-btn"}`,type:"button",onClick:x,disabled:u,children:u?w("loading"):l("post-review")})]})}function gt({onClose:o}){return L(),t.jsxs(D,{onClose:o,stylesK1:J,stylesK2:tt,children:[t.jsx(ct,{}),t.jsx(wt,{})]})}function Et({onClose:o}){const s=h(K,R),e=window["react-layout"]==="k1";return L(),t.jsx(D,{onClose:o,closeBtnAltCondition:!e,children:t.jsxs("div",{className:`${s.wrap} ${s["wrap-alt"]}`,children:[t.jsx("p",{className:`${s.title} ${s["title-alt"]}`,children:l("thank-you")}),t.jsx("p",{className:s.hint,children:l("thank-you-message")}
1),t.jsx("button",{className:`${e?s["outlined-btn"]:s["filled-btn"]}`,type:"button",onClick:o,children:w("okay")})]})})}function jt(){const{user:o,initialized:s}=H(),[e,p,a]=G(),[c,v]=n.useState(null),[u,d]=n.useState(!1),i=n.useCallback(r=>{r.key==="Escape"&&a()},[a]);return n.useEffect(()=>{function r(x){p(),v(x.detail),d(!1)}return document.addEventListener("react-reviews-popup-open",r),()=>document.removeEventListener("react-reviews-popup-open",r)},[]),n.useEffect(()=>{if(e)return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[e,i]),!e||!s?null:o?o.is_email_verified?t.jsx(g.Provider,{value:{casinoData:c,isSubmitted:u,setIsSubmitted:d},children:u?t.jsx(Et,{onClose:a}):t.jsx(gt,{onClose:a})}):t.jsx(S,{onClose:a,initialView:B}):t.jsx(S,{onClose:a})}function Ft(){const o=document.getElementById("react-reviews-popup");o&&F.createRoot(o).render(t.jsx(jt,{}))}export{Ft as default};

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.