PageSourceSearch

https://onlinecasinobahrain.net/build/assets/init.ee9e0fc5.js

js onlinecasinobahrain.net collected 2026-10-09 05:12:57 UTC 36,741 bytes, 1 lines download raw bytes

vendor: 5,270 bytes, line 1
1import{g as Et,r as m,b as tt,d as Tt,j as x,c as Pt}from"./getTranslationFn.2356ac80.js";import{s as ee}from"./selectStylesByLayout.27113c92.js";import{T as kt}from"./index.b0a881f3.js";import"./_commonjsHelpers.725317a4.js";const St="_wrap_nse9i_1",At={wrap:St,"left-col":"_left-col_nse9i_40","right-col":"_right-col_nse9i_50"},$t="_wrap_kqlsc_1",Dt={wrap:$t,"left-col":"_left-col_kqlsc_20","right-col":"_right-col_kqlsc_29"},Ot="_tabs_1n60b_1",Lt="_active_1n60b_34",Mt={tabs:Ot,"tab-btn":"_tab-btn_1n60b_6",active:Lt},jt="_tabs_1prpr_1",Vt="_active_1prpr_35",Nt={tabs:jt,"tab-btn":"_tab-btn_1prpr_6",active:Vt},S=Et("react-bonus-calculator-translates"),Ft="_wrap_1kidw_1",Bt="_field_1kidw_18",Wt="_input_1kidw_28",Kt="_select_1kidw_46",It={wrap:Ft,field:Bt,input:Wt,"select-wrap":"_select-wrap_1kidw_46",select:Kt,"wrap-btn":"_wrap-btn_1kidw_70"},qt="_wrap_1jpyb_1",Ht="_field_1jpyb_18",Yt="_input_1jpyb_28",Xt="_select_1jpyb_52",Gt={wrap:qt,field:Ht,input:Yt,"select-wrap":"_select-wrap_1jpyb_52",select:Xt,"wrap-btn":"_wrap-btn_1jpyb_76"},Ut="_label_5cold_1",zt="_text_5cold_10",Jt={label:Ut,text:zt},Qt="_label_1qnov_1",Zt="_text_1qnov_10",en={label:Qt,text:Zt};function ve(){return typeof window<"u"}function ce(e){return nt(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(nt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nt(e){return ve()?e instanceof Node||e instanceof K(e).Node:!1}function D(e){return ve()?e instanceof Element||e instanceof K(e).Element:!1}function q(e){return ve()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function Se(e){return!ve()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}const tn=new Set(["inline","contents"]);function de(e){const{overflow:t,overflowX:o,overflowY:n,display:s}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!tn.has(s)}const nn=new Set(["table","td","th"]);function on(e){return nn.has(ce(e))}const sn=[":popover-open",":modal"];function _e(e){return sn.some(t=>{try{return e.matches(t)}catch{return!1}})}const rn=["transform","translate","scale","rotate","perspective"],cn=["transform","translate","scale","rotate","perspective","filter"],ln=["paint","layout","strict","content"];function Le(e){const t=Re(),o=D(e)?I(e):e;return rn.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||cn.some(n=>(o.willChange||"").includes(n))||ln.some(n=>(o.contain||"").includes(n))}function an(e){let t=G(e);for(;q(t)&&!X(t);){if(Le(t))return t;if(_e(t))return null;t=G(t)}return null}function Re(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const un=new Set(["html","body","#document"]);function X(e){return un.has(ce(e))}function I(e){return K(e).getComputedStyle(e)}function Ce(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if(ce(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Se(e)&&e.host||U(e);return Se(t)?t.host:t}function ot(e){const t=G(e);return X(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&de(t)?t:ot(t)}function se(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const s=ot(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),r=K(s);if(i){const c=Ae(r);return t.concat(r,r.visualViewport||[],de(s)?s:[],c&&o?se(c):[])}return t.concat(s,se(s,[],o))}function Ae(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ue=Math.min,re=Math.max,we=Math.round,H=e=>({x:e,y:e}),fn={left:"right",right:"left",bottom:"top",top:"bottom"},dn={start:"end",end:"start"};function $e(e,t,o){return re(e,ue(t,o))}function me(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function pe(e){return e.split("-")[1]}function st(e){return e==="x"?"y":"x"}function Me(e){return e==="y"?"height":"width"}const mn=new Set(["top","bottom"]);function Q(e){return mn.has(te(e))?"y":"x"}function je(e){return st(Q(e))}function pn(e,t,o){o===void 0&&(o=!1);const n=pe(e),s=je(e),i=Me(s);let r=s==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=ye(r)),[r,ye(r)]}function gn(e){const t=ye(e);return[De(e),t,De(t)]}function De(e){return e.replace(/start|end/g,t=>dn[t])}const Be=["left","right"],We=["right","left"],hn=["top","bottom"],wn=["bottom","top"];function yn(e,t,o){switch(e){case"top":case"bottom":return o?t?We:Be:t?Be:We;case"left":case"right":return t?hn:wn;default:return[]}}function bn(e,t,o,n){const s=pe(e);let i=yn(te(e),o==="start",n);return s&&(i=i.map(r=>r+"-"+s),t&&(i=i.concat(i.map(De)))),i}function ye(e){return e.replace(/left|right|bottom|top/g,t=>fn[t])}function xn(e){return{top:0,right:0,bottom:0,left:0,...e}}function rt(e){return typeof e!="number"?xn(e):{top:e,right:e,bottom:e,left:e}}function be(e){const{x:t,y:o,width:n,height:s}=e;return{width:n,height:s,top:o,left:t,right:t+n,bottom:o+s,x:t,y:o}}function Ke(e,t){if(!e||!t)return!1;const o=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;
1if(o&&Se(o)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ae(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ee(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const o=e;return o.target!=null&&t.contains(o.target)}function vn(e){return e.matches("html,body")}function Ie(e){return(e==null?void 0:e.ownerDocument)||document}function ge(e,t,o){return o===void 0&&(o=!0),e.filter(s=>{var i;return s.parentId===t&&(!o||((i=s.context)==null?void 0:i.open))}).flatMap(s=>[s,...ge(e,s.id,o)])}function _n(e){return"nativeEvent"in e}var Rn=typeof document<"u",Cn=function(){},Oe=Rn?m.useLayoutEffect:Cn;const En={...tt},Tn=En.useInsertionEffect,Pn=Tn||(e=>e());function ne(e){const t=m.useRef(()=>{});return Pn(()=>{t.current=e}),m.useCallback(function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];return t.current==null?void 0:t.current(...n)},[])}function qe(e,t,o){let{reference:n,floating:s}=e;const i=Q(t),r=je(t),c=Me(r),a=te(t),l=i==="y",f=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,g=n[c]/2-s[c]/2;let u;switch(a){case"top":u={x:f,y:n.y-s.height};break;case"bottom":u={x:f,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:d};break;case"left":u={x:n.x-s.width,y:d};break;default:u={x:n.x,y:n.y}}switch(pe(t)){case"start":u[r]-=g*(o&&l?-1:1);break;case"end":u[r]+=g*(o&&l?-1:1);break}return u}const kn=async(e,t,o)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:r}
vendor: 4,307 bytes, line 1
1=o,c=i.filter(Boolean),a=await(r.isRTL==null?void 0:r.isRTL(t));let l=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:d}=qe(l,n,a),g=n,u={},h=0;for(let y=0;y<c.length;y++){const{name:v,fn:_}=c[y],{x:R,y:b,data:T,reset:C}=await _({x:f,y:d,initialPlacement:n,placement:g,strategy:s,middlewareData:u,rects:l,platform:r,elements:{reference:e,floating:t}});f=R??f,d=b??d,u={...u,[v]:{...u[v],...T}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(l=C.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:f,y:d}=qe(l,g,a)),y=-1)}return{x:f,y:d,placement:g,strategy:s,middlewareData:u}};async function it(e,t){var o;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:r,elements:c,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:g=!1,padding:u=0}=me(t,e),h=rt(u),v=c[g?d==="floating"?"reference":"floating":d],_=be(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(v)))==null||o?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:a})),R=d==="floating"?{x:n,y:s,width:r.floating.width,height:r.floating.height}:r.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),T=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:R,offsetParent:b,strategy:a}):R);return{top:(_.top-C.top+h.top)/T.y,bottom:(C.bottom-_.bottom+h.bottom)/T.y,left:(_.left-C.left+h.left)/T.x,right:(C.right-_.right+h.right)/T.x}}const Sn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:s,rects:i,platform:r,elements:c,middlewareData:a}=t,{element:l,padding:f=0}=me(e,t)||{};if(l==null)return{};const d=rt(f),g={x:o,y:n},u=je(s),h=Me(u),y=await r.getDimensions(l),v=u==="y",_=v?"top":"left",R=v?"bottom":"right",b=v?"clientHeight":"clientWidth",T=i.reference[h]+i.reference[u]-g[u]-i.floating[h],C=g[u]-i.reference[u],O=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l));let M=O?O[b]:0;(!M||!await(r.isElement==null?void 0:r.isElement(O)))&&(M=c.floating[b]||i.floating[h]);const L=T/2-C/2,N=M/2-y[h]/2-1,j=ue(d[_],N),F=ue(d[R],N),B=j,V=M-y[h]-F,w=M/2-y[h]/2+L,A=$e(B,w,V),E=!a.arrow&&pe(s)!=null&&w!==A&&i.reference[h]/2-(w<B?j:F)-y[h]/2<0,P=E?w<B?w-B:w-V:0;return{[u]:g[u]+P,data:{[u]:A,centerOffset:w-A-P,...E&&{alignmentOffset:P}},reset:E}}}),An=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:s,middlewareData:i,rects:r,initialPlacement:c,platform:a,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,...v}=me(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const _=te(s),R=Q(c),b=te(c)===c,T=await(a.isRTL==null?void 0:a.isRTL(l.floating)),C=g||(b||!y?[ye(c)]:gn(c)),O=h!=="none";!g&&O&&C.push(...bn(c,y,h,T));const M=[c,...C],L=await it(t,v),N=[];let j=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&N.push(L[_]),d){const w=pn(s,r,T);N.push(L[w[0]],L[w[1]])}if(j=[...j,{placement:s,overflows:N}],!N.every(w=>w<=0)){var F,B;const w=(((F=i.flip)==null?void 0:F.index)||0)+1,A=M[w];if(A&&(!(d==="alignment"?R!==Q(A):!1)||j.every(p=>Q(p.placement)===R?p.overflows[0]>0:!0)))return{data:{index:w,overflows:j},reset:{placement:A}};let E=(B=j.filter(P=>P.overflows[0]<=0).sort((P,p)=>P.overflows[1]-p.overflows[1])[0])==null?void 0:B.placement;if(!E)switch(u){case"bestFit":{var V;const P=(V=j.filter(p=>{if(O){const k=Q(p.placement);return k===R||k==="y"}return!0}).map(p=>[p.placement,p.overflows.filter(k=>k>0).reduce((k,$)=>k+$,0)]).sort((p,k)=>p[1]-k[1])[0])==null?void 0:V[0];P&&(E=P);break}case"initialPlacement":E=c;break}if(s!==E)return{reset:{placement:E}}}return{}}}},$n=new Set(["left","top"]);async function Dn(e,t){const{placement:o,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),r=te(o),c=pe(o),a=Q(o)==="y",l=$n.has(r)?-1:1,f=i&&a?-1:1,d=me(t,e);let{mainAxis:g,crossAxis:u,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}
vendor: 6,170 bytes, line 1
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof h=="number"&&(u=c==="end"?h*-1:h),a?{x:u*f,y:g*l}:{x:g*l,y:u*f}}const On=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:s,y:i,placement:r,middlewareData:c}=t,a=await Dn(t,e);return r===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:s+a.x,y:i+a.y,data:{...a,placement:r}}}}},Ln=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:s}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:c={fn:v=>{let{x:_,y:R}=v;return{x:_,y:R}}},...a}=me(e,t),l={x:o,y:n},f=await it(t,a),d=Q(te(s)),g=st(d);let u=l[g],h=l[d];if(i){const v=g==="y"?"top":"left",_=g==="y"?"bottom":"right",R=u+f[v],b=u-f[_];u=$e(R,u,b)}if(r){const v=d==="y"?"top":"left",_=d==="y"?"bottom":"right",R=h+f[v],b=h-f[_];h=$e(R,h,b)}const y=c.fn({...t,[g]:u,[d]:h});return{...y,data:{x:y.x-o,y:y.y-n,enabled:{[g]:i,[d]:r}}}}}};function ct(e){const t=I(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=q(e),i=s?e.offsetWidth:o,r=s?e.offsetHeight:n,c=we(o)!==i||we(n)!==r;return c&&(o=i,n=r),{width:o,height:n,$:c}}function lt(e){return D(e)?e:e.contextElement}function ie(e){const t=lt(e);if(!q(t))return H(1);const o=t.getBoundingClientRect(),{width:n,height:s,$:i}=ct(t);let r=(i?we(o.width):o.width)/n,c=(i?we(o.height):o.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const Mn=H(0);function at(e){const t=K(e);return!Re()||!t.visualViewport?Mn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jn(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==K(e)?!1:t}function fe(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const s=e.getBoundingClientRect(),i=lt(e);let r=H(1);t&&(n?D(n)&&(r=ie(n)):r=ie(e));const c=jn(i,o,n)?at(i):H(0);let a=(s.left+c.x)/r.x,l=(s.top+c.y)/r.y,f=s.width/r.x,d=s.height/r.y;if(i){const g=K(i),u=n&&D(n)?K(n):n;let h=g,y=Ae(h);for(;y&&n&&u!==h;){const v=ie(y),_=y.getBoundingClientRect(),R=I(y),b=_.left+(y.clientLeft+parseFloat(R.paddingLeft))*v.x,T=_.top+(y.clientTop+parseFloat(R.paddingTop))*v.y;a*=v.x,l*=v.y,f*=v.x,d*=v.y,a+=b,l+=T,h=K(y),y=Ae(h)}}return be({width:f,height:d,x:a,y:l})}function Ve(e,t){const o=Ce(e).scrollLeft;return t?t.left+o:fe(U(e)).left+o}function ut(e,t,o){o===void 0&&(o=!1);const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-(o?0:Ve(e,n)),i=n.top+t.scrollTop;return{x:s,y:i}}function Vn(e){let{elements:t,rect:o,offsetParent:n,strategy:s}=e;const i=s==="fixed",r=U(n),c=t?_e(t.floating):!1;if(n===r||c&&i)return o;let a={scrollLeft:0,scrollTop:0},l=H(1);const f=H(0),d=q(n);if((d||!d&&!i)&&((ce(n)!=="body"||de(r))&&(a=Ce(n)),q(n))){const u=fe(n);l=ie(n),f.x=u.x+n.clientLeft,f.y=u.y+n.clientTop}const g=r&&!d&&!i?ut(r,a,!0):H(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+f.x+g.x,y:o.y*l.y-a.scrollTop*l.y+f.y+g.y}}function Nn(e){return Array.from(e.getClientRects())}function Fn(e){const t=U(e),o=Ce(e),n=e.ownerDocument.body,s=re(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=re(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+Ve(e);const c=-o.scrollTop;return I(n).direction==="rtl"&&(r+=re(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:r,y:c}}function Bn(e,t){const o=K(e),n=U(e),s=o.visualViewport;let i=n.clientWidth,r=n.clientHeight,c=0,a=0;if(s){i=s.width,r=s.height;const l=Re();(!l||l&&t==="fixed")&&(c=s.offsetLeft,a=s.offsetTop)}return{width:i,height:r,x:c,y:a}}const Wn=new Set(["absolute","fixed"]);function Kn(e,t){const o=fe(e,!0,t==="fixed"),n=o.top+e.clientTop,s=o.left+e.clientLeft,i=q(e)?ie(e):H(1),r=e.clientWidth*i.x,c=e.clientHeight*i.y,a=s*i.x,l=n*i.y;return{width:r,height:c,x:a,y:l}}function He(e,t,o){let n;if(t==="viewport")n=Bn(e,o);else if(t==="document")n=Fn(U(e));else if(D(t))n=Kn(t,o);else{const s=at(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return be(n)}function ft(e,t){const o=G(e);return o===t||!D(o)||X(o)?!1:I(o).position==="fixed"||ft(o,t)}function In(e,t){const o=t.get(e);if(o)return o;let n=se(e,[],!1).filter(c=>D(c)&&ce(c)!=="body"),s=null;const i=I(e).position==="fixed";let r=i?G(e):e;for(;D(r)&&!X(r);){const c=I(r),a=Le(r);!a&&c.position==="fixed"&&(s=null),(i?!a&&!s:!a&&c.position==="static"&&!!s&&Wn.has(s.position)||de(r)&&!a&&ft(e,r))?n=n.filter(f=>f!==r):s=c,r=G(r)}return t.set(e,n),n}function qn(e){let{element:t,boundary:o,rootBoundary:n,strategy:s}=e;const r=[...o==="clippingAncestors"?_e(t)?[]:In(t,this._c):[].concat(o),n],c=r[0],a=r.reduce((l,f)=>{const d=He(t,f,s);return l.top=re(d.top,l.top),l.right=ue(d.right,l.right),l.bottom=ue(d.bottom,l.bottom),l.left=re(d.left,l.left),l},He(t,c,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Hn(e){const{width:t,height:o}=ct(e);return{width:t,height:o}}function Yn(e,t,o){const n=q(t),s=U(t),i=o==="fixed",r=fe(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=H(0);function l(){a.x=Ve(s)}if(n||!n&&!i)if((ce(t)!=="body"||de(s))&&(c=Ce(t)),n){const u=fe(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else s&&l();i&&!n&&s&&l();const f=s&&!n&&!i?ut(s,c):H(0),d=r.left+c.scrollLeft-a.x-f.x,g=r.top+c.scrollTop-a.y-f.y;return{x:d,y:g,width:r.width,height:r.height}}function Te(e){return I(e).position==="static"}function Ye(e,t){if(!q(e)||I(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return U(e)===o&&(o=o.ownerDocument.body),o}function dt(e,t){const o=K(e);if(_e(e))return o;if(!q(e)){let s=G(e);for(;s&&!X(s);){if(D(s)&&!Te(s))return s;s=G(s)}return o}let n=Ye(e,t);for(;n&&on(n)&&Te(n);)n=Ye(n,t);return n&&X(n)&&Te(n)&&!Le(n)?o:n||an(e)||o}const Xn=async function(e){const t=this.getOffsetParent||dt,o=this.getDimensions,n=await o(e.floating);return{reference:Yn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Gn(e){return I(e).direction==="rtl"}const Un={convertOffsetParentRelativeRectToViewportRelativeRect:Vn,getDocumentElement:U,getClippingRect:qn,getOffsetParent:dt,getElementRects:Xn,getClientRects:Nn,getDimensions:Hn,get
1Scale:ie,isElement:D,isRTL:Gn},zn=On,Jn=Ln,Qn=An,Xe=Sn,Zn=(e,t,o)=>{const n=new Map,s={platform:Un,...o},i={...s.platform,_c:n};return kn(e,t,{...s,platform:i})};var eo=typeof document<"u",to=function(){},he=eo?m.useLayoutEffect:to;function xe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,n,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!xe(e[n],t[n]))return!1;return!0}if(s=Object.keys(e),o=s.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,s[n]))return!1;for(n=o;n--!==0;){const i=s[n];if(!(i==="_owner"&&e.$$typeof)&&!xe(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function mt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ge(e,t){const o=mt(e);return Math.round(t*o)/o}function Pe(e){const t=m.useRef(e);return he(()=>{t.current=e}),t}function no(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:r}={},transform:c=!0,whileElementsMounted:a,open:l}=e,[f,d]=m.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[g,u]=m.useState(n);xe(g,n)||u(n);const[h,y]=m.useState(null),[v,_]=m.useState(null),R=m.useCallback(p=>{p!==O.current&&(O.current=p,y(p))},[]),b=m.useCallback(p=>{p!==M.current&&(M.current=p,_(p))},[]),T=i||h,C=r||v,O=m.useRef(null),M=m.useRef(null),L=m.useRef(f),N=a!=null,j=Pe(a),F=Pe(s),B=Pe(l),V=m.useCallback(()=>{if(!O.current||!M.current)return;const p={placement:t,strategy:o,middleware:g};F.current&&(p.platform=F.current),Zn(O.current,M.current,p).then(k=>{const $={...k,isPositioned:B.current!==!1};w.current&&!xe(L.current,$)&&(L.current=$,Tt.flushSync(()=>{d($)}))})},[g,t,o,F,B]);he(()=>{l===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(p=>({...p,isPositioned:!1})))},[l]);const w=m.useRef(!1);he(()=>(w.current=!0,()=>{w.current=!1}),[]),he(()=>{if(T&&(O.current=T),C&&(M.current=C),T&&C){if(j.current)return j.current(T,C,V);V()}},[T,C,V,j,N]);const A=m.useMemo(()=>({reference:O,floating:M,setReference:R,setFloating:b}),[R,b]),E=m.useMemo(()=>({reference:T,floating:C}),[T,C]),P=m.useMemo(()=>{const p={position:o,left:0,top:0};if(!E.floating)return p;const k=Ge(E.floating,f.x),$=Ge(E.floating,f.y);return c?{...p,transform:"translate("+k+"px, "+$+"px)",...mt(E.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:k,top:$}},[o,c,E.floating,f.x,f.y]);return m.useMemo(()=>({...f,update:V,refs:A,elements:E,floatingStyles:P}),[f,V,A,E,P])}const oo=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:n,padding:s}=typeof e=="function"?e(o):e;return n&&t(n)?n.current!=null?Xe({element:n.current,padding:s}).fn(o):{}:n?Xe({element:n,padding:s}).fn(o):{}}}},so=(e,t)=>({...zn(e),options:[e,t]}),ro=(e,t)=>({...Jn(e),options:[e,t]}),io=(e,t)=>({...Qn(e),options:[e,t]}),co=(e,t)=>({...oo(e),options:[e,t]}),lo="data-floating-ui-focusable",Ue="active",ze="selected",ao={...tt};let Je=!1,uo=0;const Qe=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+uo++;function fo(){const[e,t]=m.useState(()=>Je?Qe():void 0);return Oe(()=>{e==null&&t(Qe())},[]),m.useEffect(()=>{Je=!0},[]),e}const mo=ao.useId,po=mo||fo;function go(){const e=new Map;return{emit(t,o){var n;(n=e.get(t))==null||n.forEach(s=>s(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){var n;(n=e.get(t))==null||n.delete(o)}}}const ho=m.createContext(null),wo=m.createContext(null),yo=()=>{var e;return((e=m.useContext(ho))==null?void 0:e.id)||null},pt=()=>m.useContext(wo);function bo(e){return"data-floating-ui-"+e}const xo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ze=e=>{var t,o;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(o=e==null?void 0:e.outsidePress)!=null?o:!0}};function _o(e,t){t===void 0&&(t={});const{open:o,onOpenChange:n,elements:s,dataRef:i}=e,{enabled:r=!0,escapeKey:c=!0,outsidePress:a=!0,outsidePressEvent:l="pointerdown",referencePress:f=!1,referencePressEvent:d="pointerdown",ancestorScroll:g=!1,bubbles:u,capture:h}=t,y=pt(),v=ne(typeof a=="function"?a:()=>!1),_=typeof a=="function"?v:a,R=m.useRef(!1),{escapeKey:b,outsidePress:T}=Ze(u),{escapeKey:C,outsidePress:O}=Ze(h),M=m.useRef(!1),L=ne(w=>{var A;if(!o||!r||!c||w.key!=="Escape"||M.current)return;const E=(A=i.current.floatingContext)==null?void 0:A.nodeId,P=y?ge(y.nodesRef.current,E):[];if(!b&&(w.stopPropagation(),P.length>0)){let p=!0;if(P.forEach(k=>{var $;if(($=k.context)!=null&&$.open&&!k.context.dataRef.current.__escapeKeyBubbles){p=!1;return}}),!p)return}n(!1,_n(w)?w.nativeEvent:w,"escape-key")}),N=ne(w=>{var A;const E=()=>{var P;L(w),(P=ae(w))==null||P.removeEventListener("keydown",E)};
1(A=ae(w))==null||A.addEventListener("keydown",E)}),j=ne(w=>{var A;const E=i.current.insideReactTree;i.current.insideReactTree=!1;const P=R.current;if(R.current=!1,l==="click"&&P||E||typeof _=="function"&&!_(w))return;const p=ae(w),k="["+bo("inert")+"]",$=Ie(s.floating).querySelectorAll(k);let z=D(p)?p:null;for(;z&&!X(z);){const W=G(z);if(X(W)||!D(W))break;z=W}if($.length&&D(p)&&!vn(p)&&!Ke(p,s.floating)&&Array.from($).every(W=>!Ke(z,W)))return;if(q(p)&&V){const W=X(p),Y=I(p),le=/auto|scroll/,yt=W||le.test(Y.overflowX),bt=W||le.test(Y.overflowY),xt=yt&&p.clientWidth>0&&p.scrollWidth>p.clientWidth,vt=bt&&p.clientHeight>0&&p.scrollHeight>p.clientHeight,_t=Y.direction==="rtl",Rt=vt&&(_t?w.offsetX<=p.offsetWidth-p.clientWidth:w.offsetX>p.clientWidth),Ct=xt&&w.offsetY>p.clientHeight;if(Rt||Ct)return}const Ne=(A=i.current.floatingContext)==null?void 0:A.nodeId,wt=y&&ge(y.nodesRef.current,Ne).some(W=>{var Y;return Ee(w,(Y=W.context)==null?void 0:Y.elements.floating)});if(Ee(w,s.floating)||Ee(w,s.domReference)||wt)return;const Fe=y?ge(y.nodesRef.current,Ne):[];if(Fe.length>0){let W=!0;if(Fe.forEach(Y=>{var le;if((le=Y.context)!=null&&le.open&&!Y.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}n(!1,w,"outside-press")}),F=ne(w=>{var A;const E=()=>{var P;j(w),(P=ae(w))==null||P.removeEventListener(l,E)};(A=ae(w))==null||A.addEventListener(l,E)});m.useEffect(()=>{if(!o||!r)return;i.current.__escapeKeyBubbles=b,i.current.__outsidePressBubbles=T;let w=-1;function A($){n(!1,$,"ancestor-scroll")}function E(){window.clearTimeout(w),M.current=!0}function P(){w=window.setTimeout(()=>{M.current=!1},Re()?5:0)}const p=Ie(s.floating);c&&(p.addEventListener("keydown",C?N:L,C),p.addEventListener("compositionstart",E),p.addEventListener("compositionend",P)),_&&p.addEventListener(l,O?F:j,O);let k=[];return g&&(D(s.domReference)&&(k=se(s.domReference)),D(s.floating)&&(k=k.concat(se(s.floating))),!D(s.reference)&&s.reference&&s.reference.contextElement&&(k=k.concat(se(s.reference.contextElement)))),k=k.filter($=>{var z;return $!==((z=p.defaultView)==null?void 0:z.visualViewport)}),k.forEach($=>{$.addEventListener("scroll",A,{passive:!0})}),()=>{c&&(p.removeEventListener("keydown",C?N:L,C),p.removeEventListener("compositionstart",E),p.removeEventListener("compositionend",P)),_&&p.removeEventListener(l,O?F:j,O),k.forEach($=>{$.removeEventListener("scroll",A)}),window.clearTimeout(w)}},[i,s,c,_,l,o,n,g,r,b,T,L,C,N,j,O,F]),m.useEffect(()=>{i.current.insideReactTree=!1},[i,_,l]);const B=m.useMemo(()=>({onKeyDown:L,...f&&{[xo[d]]:w=>{n(!1,w.nativeEvent,"reference-press")},...d!=="click"&&{onClick(w){n(!1,w.nativeEvent,"reference-press")}}}}),[L,n,f,d]),V=m.useMemo(()=>({onKeyDown:L,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[vo[l]]:()=>{i.current.insideReactTree=!0}}),[L,l,i]);return m.useMemo(()=>r?{reference:B,floating:V}:{},[r,B,V])}function Ro(e){const{open:t=!1,onOpenChange:o,elements:n}=e,s=po(),i=m.useRef({}),[r]=m.useState(()=>go()),c=yo()!=null,[a,l]=m.useState(n.reference),f=ne((u,h,y)=>{i.current.openEvent=u?h:void 0,r.emit("openchange",{open:u,event:h,reason:y,nested:c}),o==null||o(u,h,y)}),d=m.useMemo(()=>({setPositionReference:l}),[]),g=m.useMemo(()=>({reference:a||n.reference||null,floating:n.floating||null,domReference:n.reference}),[a,n.reference,n.floating]);return m.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:g,events:r,floatingId:s,refs:d}),[t,f,g,r,s,d])}function Co(e){e===void 0&&(e={});const{nodeId:t}=e,o=Ro({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||o,s=n.elements,[i,r]=m.useState(null),[c,a]=m.useState(null),f=(s==null?void 0:s.domReference)||i,d=m.useRef(null),g=pt();Oe(()=>{f&&(d.current=f)},[f]);const u=no({...e,elements:{...s,...c&&{reference:c}}}),h=m.useCallback(b=>{const T=D(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;a(T),u.refs.setReference(T)},[u.refs]),y=m.useCallback(b=>{(D(b)||b===null)&&(d.current=b,r(b)),(D(u.refs.reference.current)||u.refs.reference.current===null||b!==null&&!D(b))&&u.refs.setReference(b)},[u.refs]),v=m.useMemo(()=>({...u.refs,setReference:y,setPositionReference:h,domReference:d}),[u.refs,y,h]),_=m.useMemo(()=>({...u.elements,domReference:f}),[u.elements,f]),R=m.useMemo(()=>({...u,...n,refs:v,elements:_,nodeId:t}),[u,v,_,t,n]);return Oe(()=>{n.dataRef.current.floatingContext=R;const b=g==null?void 0:g.nodesRef.current.find(T=>T.id===t);b&&(b.context=R)}),m.useMemo(()=>({...u,context:R,refs:v,elements:_}),[u,v,_,R])}function ke(e,t,o){const n=new Map,s=o==="item";let i=e;if(s&&e){const{[Ue]:r,[ze]:c,...a}=e;i=a}return{...o==="floating"&&{tabIndex:-1,[lo]:""},...i,...t.map(r=>{const c=r?r[o]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((r,c)=>
1(c&&Object.entries(c).forEach(a=>{let[l,f]=a;if(!(s&&[Ue,ze].includes(l)))if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof f=="function"){var d;(d=n.get(l))==null||d.push(f),r[l]=function(){for(var g,u=arguments.length,h=new Array(u),y=0;y<u;y++)h[y]=arguments[y];return(g=n.get(l))==null?void 0:g.map(v=>v(...h)).find(v=>v!==void 0)}}}else r[l]=f}),r),{})}}function Eo(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),o=e.map(c=>c==null?void 0:c.floating),n=e.map(c=>c==null?void 0:c.item),s=m.useCallback(c=>ke(c,e,"reference"),t),i=m.useCallback(c=>ke(c,e,"floating"),o),r=m.useCallback(c=>ke(c,e,"item"),n);return m.useMemo(()=>({getReferenceProps:s,getFloatingProps:i,getItemProps:r}),[s,i,r])}const To="_button_jbwa2_1",Po="_icon_jbwa2_16",ko="_text_jbwa2_21",So="_arrow_jbwa2_34",Ao={button:To,icon:Po,text:ko,arrow:So},$o="_button_1fy2f_1",Do="_icon_1fy2f_16",Oo="_text_1fy2f_21",Lo="_arrow_1fy2f_33",Mo={button:$o,icon:Do,text:Oo,arrow:Lo},jo="/build/assets/tooltip.svg",Vo="/build/assets/tooltip-alt.svg";function gt({tooltip:e}){var h,y;const[t,o]=m.useState(!1),n=m.useRef(null),s=window["react-layout"]==="k1",i=ee(Ao,Mo),{refs:r,floatingStyles:c,middlewareData:a,placement:l,context:f}=Co({placement:"bottom",open:t,onOpenChange:o,middleware:[so(10),io(),ro(),co({element:n})]}),d=_o(f),{getReferenceProps:g,getFloatingProps:u}=Eo([d]);return x.jsxs(x.Fragment,{children:[x.jsx("button",{ref:r.setReference,type:"button",className:i.button,onClick:()=>o(v=>!v),...g(),children:x.jsx("img",{className:i.icon,src:s?Vo:jo,alt:"tooltip icon",width:"14",height:"14",loading:"lazy"})}),t&&x.jsxs("div",{ref:r.setFloating,style:c,"data-placement":l,className:i.text,...u(),children:[e,x.jsx("div",{ref:n,className:i.arrow,style:{left:((h=a.arrow)==null?void 0:h.x)!=null?`${a.arrow.x}px`:"",top:((y=a.arrow)==null?void 0:y.y)!=null?`${a.arrow.y}px`:""}})]})]})}function No({id:e,label:t,tooltip:o,children:n}){const s=ee(Jt,en);return x.jsxs(x.Fragment,{children:[x.jsxs("label",{className:s.label,htmlFor:e,children:[x.jsx("span",{className:s.text,children:t}),o&&x.jsx(gt,{tooltip:o})]}),n]})}const Fo="_button_4v7fl_1",Bo={button:Fo},Wo="_button_1yau0_1",Ko={button:Wo};function Io({handleClick:e}){const t=ee(Bo,Ko);return x.jsx("button",{className:t.button,type:"button",onClick:e,children:S("btn-reset")||"Reset"})}function et({fields:e,formData:t,onChange:o,resetFormData:n}){const s=ee(It,Gt),i=(r,c)=>typeof c.minValue=="number"&&r<c.minValue?c.minValue:typeof c.maxValue=="number"&&r>c.maxValue?c.maxValue:r;return x.jsxs("div",{className:s.wrap,children:[e.map(r=>x.jsx("div",{className:s.field,children:x.jsxs(No,{id:r.id,label:r.label,tooltip:r.tooltip,children:[r.type==="select"&&x.jsx("div",{className:s["select-wrap"],children:x.jsx("select",{className:`${s.input} ${s.select}`,id:r.id,value:t[r.id],onChange:c=>o(r.id,c.target.value),children:r.options.map(c=>x.jsx("option",{value:c.value,children:c.label},c.value))})}),r.type==="number"&&x.jsx("input",{className:s.input,id:r.id,type:"number",value:t[r.id]===null||t[r.id]===void 0?"":t[r.id],onKeyDown:c=>{["-","+","e","E"].includes(c.key)&&c.preventDefault()},onChange:c=>{const a=c.target.value;if(a===""){o(r.id,"");return}if(!/^\d+$/.test(a))return;let l=Number(a);typeof r.maxValue=="number"&&l>r.maxValue&&(l=r.maxValue),o(r.id,l)},onBlur:c=>{let a=c.target.value;a===""&&typeof r.minValue=="number"&&(a=r.minValue);const l=Number(a);o(r.id,i(l,r))},min:r.minValue??0,max:r.maxValue??void 0})]})},r.id)),x.jsx("div",{className:s["wrap-btn"],children:x.jsx(Io,{handleClick:n})})]})}const qo="_label_iyskh_1",Ho="_row_iyskh_12",Yo={label:qo,row:Ho,"row-accent":"_row-accent_iyskh_29","row-label":"_row-label_iyskh_38","mr-3":"_mr-3_iyskh_43"},Xo="_label_1qyiv_1",Go="_row_1qyiv_12",Uo={label:Xo,row:Go,"row-accent":"_row-accent_1qyiv_29","row-label":"_row-label_1qyiv_43","mr-3":"_mr-3_1qyiv_48"},zo=m.memo(function({label:t,withoutTooltip:o,tooltip:n,value:s,isAccent:i,styles:r}){return x.jsxs("div",{className:`${r.row} ${i?r["row-accent"]:""}`,children:[x.jsxs("span",{className:r["row-label"],children:[x.jsx("span",{className:`${o?"":r["mr-3"]}`,children:t}),!o&&n&&x.jsx(gt,{tooltip:n})]}),x.jsx("span",{title:s,children:s})]})});function ht({rows:e,labelKey:t="wagering-outcome"}){const o=ee(Yo,Uo),n=S(t)||"Wagering Outcome";return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:o.label,children:n}),e.map((s,i)=>x.jsx(zo,{label:S([s.key])||s.fallbackLabel,tooltip:S([s.key+"-tooltip"])||s.fallbackTooltip,value:s.value,isAccent:s.isAccent,withoutTooltip:s.withoutTooltip,styles:o},i))]})}function Jo({calcData:e={}}){return x.jsx(ht,{rows:[{key:"free-bonus-money",fallbackLabel:"Free Bonu
1s Money",value:e.freeBonusMoney,withoutTooltip:!0},{key:"total-play-money",fallbackLabel:"Total Play Money",value:e.totalPlayMoney,withoutTooltip:!0},{key:"amount-to-wager",fallbackLabel:"Amount to Wager",fallbackTooltip:"The total amount you must bet to meet the wagering requirement.",value:e.amountToWager,isAccent:!0},{key:"theoretical-win",fallbackLabel:"Theoretical Win",fallbackTooltip:"An estimate of what you might win after wagering.",value:e.theoreticalWin,isAccent:!0}]})}function Qo({calcData:e={}}){return x.jsx(ht,{rows:[{key:"amount-to-wager",fallbackLabel:"Amount to Wager",fallbackTooltip:"The total amount you must bet to meet the wagering requirement.",value:e.amountToWager,isAccent:!0}]})}const Zo=()=>[{id:"wagering-type",label:S("wagering-type")||"Wagering Type",tooltip:S("wagering-type-tooltip")||"Choose whether wagering applies to bonus only or to both deposit and bonus.",initialValue:"1",options:[{value:"1",label:S("bonus-only")||"Bonus only"},{value:"0",label:S("deposit-n-bonus")||"Deposit + Bonus"}],type:"select"},{id:"deposit-amount",label:S("deposit-amount")||"Deposit Amount",tooltip:S("deposit-amount-tooltip")||"The amount of money you plan to deposit.",initialValue:100,maxValue:9999,type:"number"},{id:"deposit-match",label:S("deposit-match")||"Deposit Match",tooltip:S("deposit-match-tooltip")||"The percentage of your deposit that the casino matches as a bonus.",initialValue:100,maxValue:500,type:"number"},{id:"bonus-limit",label:S("bonus-limit")||"Bonus Limit",tooltip:S("bonus-limit-tooltip")||"The maximum bonus the casino will give, even if your deposit qualifies for more.",initialValue:200,maxValue:9999,type:"number"},{id:"wagering-requirement",label:S("wagering-requirement")||"Wagering Requirement (x)",tooltip:S("wagering-requirement-tooltip")||"The number of times the bonus (or bonus + deposit) must be wagered before withdrawal.",initialValue:15,maxValue:9999,minValue:1,type:"number"},{id:"game-contribution",label:S("game-contribution")||"Game Contribution %",tooltip:S("game-contribution-tooltip")||"How much a game type contributes to wagering – slots usually 100%, table games less.",initialValue:100,maxValue:9999,minValue:1,type:"number"},{id:"game-rtp",label:S("game-rtp")||"Game RTP %",tooltip:S("game-rtp-tooltip")||"Return to Player – the theoretical percentage the game pays back over time.",initialValue:96,maxValue:9999,type:"number"}],es=()=>
1[{id:"free-bonus-money",label:S("free-bonus-money")||"Free Bonus Money",tooltip:S("free-bonus-money-tooltip")||"The bonus amount you’ll actually receive, based on your deposit and the bonus cap.",initialValue:100,maxValue:9999,type:"number"},{id:"wagering-requirement",label:S("wagering-requirement")||"Wagering Requirement (x)",tooltip:S("wagering-requirement-tooltip")||"The number of times the bonus (or bonus + deposit) must be wagered before withdrawal.",initialValue:15,maxValue:9999,type:"number"}];function oe(e){return Math.round(e)}function ts(e){const t=Number(e["deposit-amount"]??0),o=Number(e["deposit-match"]??0),n=Number(e["bonus-limit"]??0),s=Number(e["wagering-requirement"]??0),i=Number(e["game-contribution"]??100),r=Number(e["game-rtp"]??100),a=e["wagering-type"]==="1",l=oe(Math.min(t*(o/100),n)),f=oe(a?l:t+l),d=a?l:t+l,g=i||1,u=oe(d*s*(100/g)),h=oe(f*(r/100));return{freeBonusMoney:l,totalPlayMoney:f,amountToWager:u,theoreticalWin:h}}function ns(e){const t=oe(Number(e["free-bonus-money"]??0)),o=Number(e["wagering-requirement"]??0),n=oe(t*o);return{freeBonusMoney:t,amountToWager:n}}const J="tab0",Z="tab1";function os(){const e=m.useMemo(()=>Zo(),[]),t=m.useMemo(()=>es(),[]),o=l=>Object.fromEntries(l.map(f=>[f.id,f.initialValue??""])),[n,s]=m.useState({[J]:o(e),[Z]:o(t)}),i=m.useCallback((l,f,d)=>{s(g=>({...g,[l]:{...g[l],[f]:d}}))},[]),r=m.useCallback((l,f)=>{s(d=>({...d,[l]:o(f)}))},[]),c=m.useMemo(()=>ts(n[J]),[n[J]]),a=m.useMemo(()=>ns(n[Z]),[n[Z]]);return{primaryFields:e,secondaryFields:t,formData:n,handleChange:i,resetFormData:r,primaryResults:c,secondaryResults:a}}function ss(){const[e,t]=m.useState(J),o=ee(At,Dt),n=ee(Mt,Nt),{primaryFields:s,secondaryFields:i,formData:r,handleChange:c,resetFormData:a,primaryResults:l,secondaryResults:f}=os(),d=[{id:J,label:S("deposit-bonus")||"Deposit Bonus",left:x.jsx(et,{fields:s,formData:r[J],onChange:(u,h)=>c(J,u,h),resetFormData:()=>a(J,s)}),right:x.jsx(Jo,{calcData:l})}
1,{id:Z,label:S("free-bonus-money")||"Free Bonus Money",left:x.jsx(et,{fields:i,formData:r[Z],onChange:(u,h)=>c(Z,u,h),resetFormData:()=>a(Z,i)}),right:x.jsx(Qo,{calcData:f})}],g=d.find(u=>u.id===e);return x.jsxs("div",{className:o.wrap,children:[x.jsxs("div",{className:o["left-col"],children:[x.jsx(kt,{tabsConfig:d,activeTab:e,setActiveTab:t,styles:n}),g.left]}),x.jsx("div",{className:o["right-col"],children:g.right})]})}function as(){const e=document.getElementById("react-bonus-calculator");e&&Pt.createRoot(e).render(x.jsx(ss,{}))}export{as 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.