1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8341,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return n}};for(var a in r)Object.defineProperty(s,a,{enumerable:!0,get:r[a]});let n="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},19083,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return d},htmlEscapeJsonString:function(){return c}};for(var a in r)Object.defineProperty(s,a,{enumerable:!0,get:r[a]});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,l={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function c(e){return e.replace(o,e=>n[e])}function d(e){return e.replace(i,e=>l[e])}},79520,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={default:function(){return v},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return g}};for(var a in r)Object.defineProperty(s,a,{enumerable:!0,get:r[a]});let n=e.r(55682),o=e.r(90809),l=e.r(43476),i=n._(e.r(74080)),c=o._(e.r(71645)),d=e.r(42732),w=e.r(22737),u=e.r(8341),m=e.r(19083),x=new Map,p=new Set,h=e=>{let{src:t,id:s,onLoad:r=()=>{},onReady:a=null,dangerouslySetInnerHTML:n,children:o="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,u=s||t;if(u&&p.has(u))return;if(x.has(t)){p.add(u),x.get(t).then(r,c);return}let m=()=>{a&&a(),p.add(u)},h=document.createElement("script"),f=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),r&&r.call(this,t),m()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});n?(h.innerHTML=n.__html||"",m()):o?(h.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",m()):t&&(h.src=t,x.set(t,f)),(0,w.setAttributesFromProps)(h,e),"worker"===l&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",l),d&&(e=>{if(i.default.preinit)return e.forEach(e=>{i.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=e,t.appendChild(s)})}})(d),document.body.appendChild(h)};function f(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}):h(e)}function g(e){e.forEach(f),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function y(e){let{id:t,src:s="",onLoad:r=()=>{},onReady:a=null,strategy:n="afterInteractive",onError:o,stylesheets:w,...x}=e,{updateScripts:f,scripts:g,getIsSsr:y,appDir:v,nonce:b}=(0,c.useContext)(d.HeadManagerContext);b=x.nonce||b;let j=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||s;j.current||(a&&e&&p.has(e)&&a(),j.current=!0)},[a,t,s]);let _=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!_.current){if("afterInteractive"===n)h(e);else"lazyOnload"===n&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}));_.current=!0}},[e,n]),("beforeInteractive"===n||"worker"===n)&&(f?(g[n]=(g[n]||[]).concat([{id:t,src:s,onLoad:r,onReady:a,onError:o,...x,nonce:b}]),f(g)):y&&y()?p.add(t||s):y&&!y()&&h({...e,nonce:b})),v){if(w&&w.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===n)if(!s)return x.dangerouslySetInnerHTML&&(x.children=x.dangerouslySetInnerHTML.__html,delete x.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([0,{...x,id:t}]))})`}});else return i.default.preload(s,x.integrity?{as:"script",integrity:x.integrity,nonce:b,crossOrigin:x.crossOrigin}:{as:"script",nonce:b,crossOrigin:x.crossOrigin}),(0,l.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([s,{...x,id:t}]))})`}});"afterInteractive"===n&&s&&i.default.preload(s,x.integrity?{as:"script",integrity:x.integrity,nonce:b,crossOrigin:x.crossOrigin}:{as:"script",nonce:b,crossOrigin:x.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esMo
1dule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},44636,e=>{"use strict";var t=e.i(43476),s=e.i(81513);e.s(["default",0,function({children:e,initialLocale:r}){return(0,t.jsx)(s.I18nProvider,{initialLocale:r,children:e})}])},10400,e=>{"use strict";let t,s,r;var a,n,o,l,i,c=e.i(43476),d=e.i(71645),w=e.i(18566),u=e.i(17595),m=e.i(66540),x=e.i(68043),p=e.i(81513),h=e.i(31292),f=e.i(17385),g=e.i(39847),y=e.i(39447),v=e.i(72668),b=e.i(4373),j=e.i(99144),_=e.i(17178),N=e.i(71182),C=e.i(22016);function S(){let{t:e}=(0,p.useI18n)(),t=(0,w.useRouter)(),s=(0,_.stripLocalePrefix)((0,w.usePathname)()),r=(0,j.useDialogStore)(e=>e.openDialog),a="tw:cursor-pointer tw:rounded-md tw:px-3 tw:py-2 tw:text-sm tw:font-medium tw:text-foreground tw:transition-colors tw:hover:text-primary";return(0,c.jsxs)("nav",{className:"tw:flex tw:items-center tw:gap-1",children:[(0,c.jsx)(C.default,{href:"/",className:a,children:e("casino")}),(0,c.jsx)("a",{onClick:()=>{if("/promotion"!==s){let e=new URLSearchParams(window.location.search).get("banner_id");null!==e?t.push(`/promotion?banner_id=${e}`):t.push("/promotion")}},className:a,children:e("promotions")}),(0,c.jsx)(C.default,{href:"/vip",className:a,children:e("VIP")}),(0,c.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),r(j.DIALOGS.contactUs)},className:a,children:e("contact_us")})]})}function k(){let{t:e}=(0,p.useI18n)(),t=(0,w.useRouter)(),s=(0,j.useDialogStore)(e=>e.openDialog),r="tw:cursor-pointer tw:whitespace-nowrap tw:rounded-md tw:px-3 tw:py-1.5 tw:text-sm tw:font-medium tw:text-foreground tw:transition-colors tw:hover:text-primary";return(0,c.jsxs)("nav",{className:"tw:flex tw:items-center tw:gap-1 tw:overflow-x-auto tw:border-b tw:border-border tw:px-3 tw:py-2 tw:lg:hidden",children:[(0,c.jsx)(C.default,{href:"/",className:r,children:e("casino")}),(0,c.jsx)("a",{onClick:()=>{let e=new URLSearchParams(window.location.search).get("banner_id");null!==e?t.push(`/promotion?banner_id=${e}`):t.push("/promotion")},className:r,children:e("promotions")}),(0,c.jsx)(C.default,{href:"/vip",className:r,children:e("VIP")}),(0,c.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),s(j.DIALOGS.contactUs)},className:r,children:e("contact_us")})]})}var A=e.i(56420);let E=(0,A.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var I=e.i(40022),M=e.i(81140),D=e.i(20783),P=e.i(30030),R=e.i(69340),L=e.i(48425),T=e.i(75830),O=e.i(86318),B=e.i(26330),$=e.i(3536),z=e.i(65491),F=e.i(10772);let U=["top","right","bottom","left"],G=Math.min,H=Math.max,W=Math.round,Y=Math.floor,q=e=>({x:e,y:e}),K={left:"right",right:"left",bottom:"top",top:"bottom"};function V(e,t){return"function"==typeof e?e(t):e}function X(e){return e.split("-")[0]}function Q(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function ee(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let es=["left","right"],er=["right","left"],ea=["top","bottom"],en=["bottom","top"];function eo(e){let t=X(e);return K[t]+e.slice(t.length)}function el(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function ei(e){let{x:t,y:s,width:r,height:a}=e;return{width:r,height:a,top:s,left:t,right:t+r,bottom:s+a,x:t,y:s}}function ec(e,t,s){let r,{reference:a,floating:n}=e,o=ee(t),l=Z(ee(t)),i=J(l),c=X(t),d="y"===o,w=a.x+a.width/2-n.width/2,u=a.y+a.height/2-n.height/2,m=a[i]/2-n[i]/2;switch(c){case"top":r={x:w,y:a.y-n.height};break;case"bottom":r={x:w,y:a.y+a.height};break;case"right":r={x:a.x+a.width,y:u};break;case"left":r={x:a.x-n.width,y:u};break;default:r={x:a.x,y:a.y}}switch(Q(t)){case"start":r[l]-=m*(s&&d?-1:1);break;case"end":r[l]+=m*(s&&d?-1:1)}return r}async function ed(e,t){var s;void 0===t&&(t={});let{x:r,y:a,platform:n,rects:o,elements:l,strategy:i}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:w="floating",altBoundary:u=!1,padding:m=0}=V(t,e),x=el(m),p=l[u?"floating"===w?"reference":"floating":w],h=ei(await n.getClippingRect
1({element:null==(s=await (null==n.isElement?void 0:n.isElement(p)))||s?p:p.contextElement||await (null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:i})),f="floating"===w?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,g=await (null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),y=await (null==n.isElement?void 0:n.isElement(g))&&await (null==n.getScale?void 0:n.getScale(g))||{x:1,y:1},v=ei(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:f,offsetParent:g,strategy:i}):f);return{top:(h.top-v.top+x.top)/y.y,bottom:(v.bottom-h.bottom+x.bottom)/y.y,left:(h.left-v.left+x.left)/y.x,right:(v.right-h.right+x.right)/y.x}}let ew=async(e,t,s)=>{let{placement:r="bottom",strategy:a="absolute",middleware:n=[],platform:o}=s,l=o.detectOverflow?o:{...o,detectOverflow:ed},i=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:w}=ec(c,r,i),u=r,m=0,x={};for(let s=0;s<n.length;s++){let p=n[s];if(!p)continue;let{name:h,fn:f}=p,{x:g,y:y,data:v,reset:b}=await f({x:d,y:w,initialPlacement:r,placement:u,strategy:a,middlewareData:x,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=g?g:d,w=null!=y?y:w,x[h]={...x[h],...v},b&&m<50&&(m++,"object"==typeof b&&(b.placement&&(u=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):b.rects),{x:d,y:w}=ec(c,u,i)),s=-1)}return{x:d,y:w,placement:u,strategy:a,middlewareData:x}};function eu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function em(e){return U.some(t=>e[t]>=0)}let ex=new Set(["left","top"]);async function ep(e,t){let{placement:s,platform:r,elements:a}=e,n=await (null==r.isRTL?void 0:r.isRTL(a.floating)),o=X(s),l=Q(s),i="y"===ee(s),c=ex.has(o)?-1:1,d=n&&i?-1:1,w=V(t,e),{mainAxis:u,crossAxis:m,alignmentAxis:x}="number"==typeof w?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return l&&"number"==typeof x&&(m="end"===l?-1*x:x),i?{x:m*d,y:u*c}:{x:u*c,y:m*d}}function eh(){return"u">typeof window}function ef(e){return ev(e)?(e.nodeName||"").toLowerCase():"#document"}function eg(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ey(e){var t;return null==(t=(ev(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ev(e){return!!eh()&&(e instanceof Node||e instanceof eg(e).Node)}function eb(e){return!!eh()&&(e instanceof Element||e instanceof eg(e).Element)}function ej(e){return!!eh()&&(e instanceof HTMLElement||e instanceof eg(e).HTMLElement)}function e_(e){return!(!eh()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eg(e).ShadowRoot)}function eN(e){let{overflow:t,overflowX:s,overflowY:r,display:a}=eD(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+s)&&"inline"!==a&&"contents"!==a}function eC(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eS=/transform|translate|scale|rotate|perspective|filter/,ek=/paint|layout|strict|content/,eA=e=>!!e&&"none"!==e;function eE(e){let t=eb(e)?eD(e):e;return eA(t.transform)||eA(t.translate)||eA(t.scale)||eA(t.rotate)||eA(t.perspective)||!eI()&&(eA(t.backdropFilter)||eA(t.filter))||eS.test(t.willChange||"")||ek.test(t.contain||"")}function eI(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function eM(e){return/^(html|body|#document)$/.test(ef(e))}function eD(e){return eg(e).getComputedStyle(e)}function eP(e){return eb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eR(e){if("html"===ef(e))return e;let t=e.assignedSlot||e.parentNode||e_(e)&&e.host||ey(e);return e_(t)?t.host:t}function eL(e,t,s){var r;void 0===t&&(t=[]),void 0===s&&(s=!0);let a=function e(t){let s=eR(t);return eM(s)?t.ownerDocument?t.ownerDocument.body:t.body:ej(s)&&eN(s)?s:e(s)}(e),n=a===(null==(r=e.ownerDocument)?void 0:r.body),o=eg(a);if(!n)return t.concat(a,eL(a,[],s));{let e=eT(o);
1return t.concat(o,o.visualViewport||[],eN(a)?a:[],e&&s?eL(e):[])}}function eT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eO(e){let t=eD(e),s=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=ej(e),n=a?e.offsetWidth:s,o=a?e.offsetHeight:r,l=W(s)!==n||W(r)!==o;return l&&(s=n,r=o),{width:s,height:r,$:l}}function eB(e){return eb(e)?e:e.contextElement}function e$(e){let t=eB(e);if(!ej(t))return q(1);let s=t.getBoundingClientRect(),{width:r,height:a,$:n}=eO(t),o=(n?W(s.width):s.width)/r,l=(n?W(s.height):s.height)/a;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}let ez=q(0);function eF(e){let t=eg(e);return eI()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ez}function eU(e,t,s,r){var a;void 0===t&&(t=!1),void 0===s&&(s=!1);let n=e.getBoundingClientRect(),o=eB(e),l=q(1);t&&(r?eb(r)&&(l=e$(r)):l=e$(e));let i=(void 0===(a=s)&&(a=!1),r&&(!a||r===eg(o))&&a)?eF(o):q(0),c=(n.left+i.x)/l.x,d=(n.top+i.y)/l.y,w=n.width/l.x,u=n.height/l.y;if(o){let e=eg(o),t=r&&eb(r)?eg(r):r,s=e,a=eT(s);for(;a&&r&&t!==s;){let e=e$(a),t=a.getBoundingClientRect(),r=eD(a),n=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,w*=e.x,u*=e.y,c+=n,d+=o,a=eT(s=eg(a))}}return ei({width:w,height:u,x:c,y:d})}function eG(e,t){let s=eP(e).scrollLeft;return t?t.left+s:eU(ey(e)).left+s}function eH(e,t){let s=e.getBoundingClientRect();return{x:s.left+t.scrollLeft-eG(e,s),y:s.top+t.scrollTop}}function eW(e,t,s){var r;let a;if("viewport"===t)a=function(e,t){let s=eg(e),r=ey(e),a=s.visualViewport,n=r.clientWidth,o=r.clientHeight,l=0,i=0;if(a){n=a.width,o=a.height;let e=eI();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,i=a.offsetTop)}let c=eG(r);if(c<=0){let e=r.ownerDocument,t=e.body,s=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-a);o<=25&&(n-=o)}else c<=25&&(n+=c);return{width:n,height:o,x:l,y:i}}(e,s);else if("document"===t){let t,s,n,o,l,i,c;r=ey(e),t=ey(r),s=eP(r),n=r.ownerDocument.body,o=H(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),l=H(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),i=-s.scrollLeft+eG(r),c=-s.scrollTop,"rtl"===eD(n).direction&&(i+=H(t.clientWidth,n.clientWidth)-o),a={width:o,height:l,x:i,y:c}}else if(eb(t)){let e,r,n,o,l,i;r=(e=eU(t,!0,"fixed"===s)).top+t.clientTop,n=e.left+t.clientLeft,o=ej(t)?e$(t):q(1),l=t.clientWidth*o.x,i=t.clientHeight*o.y,a={width:l,height:i,x:n*o.x,y:r*o.y}}else{let s=eF(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return ei(a)}function eY(e){return"static"===eD(e).position}function eq(e,t){if(!ej(e)||"fixed"===eD(e).position)return null;if(t)return t(e);let s=e.offsetParent;return ey(e)===s&&(s=s.ownerDocument.body),s}function eK(e,t){var s;let r=eg(e);if(eC(e))return r;if(!ej(e)){let t=eR(e);for(;t&&!eM(t);){if(eb(t)&&!eY(t))return t;t=eR(t)}return r}let a=eq(e,t);for(;a&&(s=a,/^(table|td|th)$/.test(ef(s)))&&eY(a);)a=eq(a,t);return a&&eM(a)&&eY(a)&&!eE(a)?r:a||function(e){let t=eR(e);for(;ej(t)&&!eM(t);){if(eE(t))return t;if(eC(t))break;t=eR(t)}return null}(e)||r}let eV=async function(e){let t=this.getOffsetParent||eK,s=this.getDimensions,r=await s(e.floating);return{reference:function(e,t,s){let r=ej(t),a=ey(t),n="fixed"===s,o=eU(e,!0,n,t),l={scrollLeft:0,scrollTop:0},i=q(0);if(r||!r&&!n)if(("body"!==ef(t)||eN(a))&&(l=eP(t)),r){let e=eU(t,!0,n,t);i.x=e.x+t.clientLeft,i.y=e.y+t.clientTop}else a&&(i.x=eG(a));n&&!r&&a&&(i.x=eG(a));let c=!a||r||n?q(0):eH(a,l);return{x:o.left+l.scrollLeft-i.x-c.x,y:o.top+l.scrollTop-i.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eX={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:s,offsetParent:r,strategy:a}=e,n="fixed"===a,o=ey(r),l=!!t&&eC(t.floating);if(r===o||l&&n)return s;let i={scrollLeft:0,scrollTop:0},c=q(1),d=q(0),w=ej(r);if((w||!w&&!n)&&(("body"!==ef(r)||eN(o))&&(i=eP(r)),w)){let e=eU(r);c=e$(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let u=!o||w||n?q(0):eH(o,i);return{width:s.width*c.x,height:s.height*c.y,x:s.x*c.x-i.scrollLeft*c.x+d.x+u.x,y:s.y*c.y-i.scrollTop*c.y+d.y+u.y}},getDocumentElement:ey,getClippingRect:function(e){let{element:t,boundary:s,rootBoundary:r,strategy:a}=e,n=[..."clippingAncestors"===s?eC(t)?[]:function(e,t){let s=t.get(e);if(s)return s;let r=eL(e,[],!1).filter(e=>eb(e)&&"body"!==ef(e)),a=null,n="fixed"===eD(e).position,o=n?eR(e):e;for(;eb(o)&&!eM(o);){let t=eD(o),s=eE(o);s||"fixed"!==t.position||(a=null),(n?s||a:!(!s&&"static"===t.position&&a&&("absolute"===a.position||"fixed"===a.position)||eN(o)&&!s&&function e(t,s){let r=eR(t);return!(r===s||!eb(r)||eM(r))&&("fixed"===eD(r).position||e(r,s))}(e,o)))?a=t:r=r.filter(e=>e!==o),o=eR(o)}return t.set(e,r),r}(t,this._c):[].concat(s),r],o=eW(t,n[0],a),l=o.top,i=o.right,c=o.bottom,d=o.left;for(let e=1;e<n.length;e++){let s=eW(t,n[e],a);
1l=H(s.top,l),i=G(s.right,i),c=G(s.bottom,c),d=H(s.left,d)}return{width:i-d,height:c-l,x:d,y:l}},getOffsetParent:eK,getElementRects:eV,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:s}=eO(e);return{width:t,height:s}},getScale:e$,isElement:eb,isRTL:function(e){return"rtl"===eD(e).direction}};function eQ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eZ=e=>({name:"arrow",options:e,async fn(t){let{x:s,y:r,placement:a,rects:n,platform:o,elements:l,middlewareData:i}=t,{element:c,padding:d=0}=V(e,t)||{};if(null==c)return{};let w=el(d),u={x:s,y:r},m=Z(ee(a)),x=J(m),p=await o.getDimensions(c),h="y"===m,f=h?"clientHeight":"clientWidth",g=n.reference[x]+n.reference[m]-u[m]-n.floating[x],y=u[m]-n.reference[m],v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(c)),b=v?v[f]:0;b&&await (null==o.isElement?void 0:o.isElement(v))||(b=l.floating[f]||n.floating[x]);let j=b/2-p[x]/2-1,_=G(w[h?"top":"left"],j),N=G(w[h?"bottom":"right"],j),C=b-p[x]-N,S=b/2-p[x]/2+(g/2-y/2),k=H(_,G(S,C)),A=!i.arrow&&null!=Q(a)&&S!==k&&n.reference[x]/2-(S<_?_:N)-p[x]/2<0,E=A?S<_?S-_:S-C:0;return{[m]:u[m]+E,data:{[m]:k,centerOffset:S-k-E,...A&&{alignmentOffset:E}},reset:A}}});var eJ=e.i(74080),e0="u">typeof document?d.useLayoutEffect:function(){};function e1(e,t){let s,r,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((s=e.length)!==t.length)return!1;for(r=s;0!=r--;)if(!e1(e[r],t[r]))return!1;return!0}if((s=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!({}).hasOwnProperty.call(t,a[r]))return!1;for(r=s;0!=r--;){let s=a[r];if(("_owner"!==s||!e.$$typeof)&&!e1(e[s],t[s]))return!1}return!0}return e!=e&&t!=t}function e2(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e5(e,t){let s=e2(e);return Math.round(t*s)/s}function e3(e){let t=d.useRef(e);return e0(()=>{t.current=e}),t}var e4=d.forwardRef((e,t)=>{let{children:s,width:r=10,height:a=5,...n}=e;return(0,c.jsx)(L.Primitive.svg,{...n,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?s:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e4.displayName="Arrow";var e8=e.i(30207),e6=e.i(34620),e9=e.i(35804),e7="Popper",[te,tt]=(0,P.createContextScope)(e7),[ts,tr]=te(e7),ta=e=>{let{__scopePopper:t,children:s}=e,[r,a]=d.useState(null),[n,o]=d.useState(void 0);return(0,c.jsx)(ts,{scope:t,anchor:r,onAnchorChange:a,placementState:n,setPlacementState:o,children:s})};ta.displayName=e7;var tn="PopperAnchor",to=d.forwardRef((e,t)=>{let{__scopePopper:s,virtualRef:r,...a}=e,n=tr(tn,s),o=d.useRef(null),l=n.onAnchorChange,i=d.useCallback(e=>{o.current=e,e&&l(e)},[l]),w=(0,D.useComposedRefs)(t,i),u=d.useRef(null);d.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&l(u.current)});let m=n.placementState&&th(n.placementState),x=m?.[0],p=m?.[1];return r?null:(0,c.jsx)(L.Primitive.div,{"data-radix-popper-side":x,"data-radix-popper-align":p,...a,ref:w})});to.displayName=tn;var tl="PopperContent",[ti,tc]=te(tl),td=d.forwardRef((e,t)=>{var s,r,a,n,o,l,i,w,u,m,x,p,h;let f,g,y,v,b,j,{__scopePopper:_,side:N="bottom",sideOffset:C=0,align:S="center",alignOffset:k=0,arrowPadding:A=0,avoidCollisions:E=!0,collisionBoundary:I=[],collisionPadding:M=0,sticky:P="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:O,...B}=e,$=tr(tl,_),[z,F]=d.useState(null),U=(0,D.useComposedRefs)(t,e=>F(e)),[W,q]=d.useState(null),K=(0,e9.useSize)(W),el=K?.width??0,ei=K?.height??0,ec="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},ed=Array.isArray(I)?I:[I],eh=ed.length>0,ef={padding:ec,boundary:ed.filter(tx),altBoundary:eh},{refs:eg,floatingStyles:ev,placement:eb,isPositioned:ej,middlewareData:e_}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:s="absolute",middleware:r=[],platform:a,elements:{reference:n,floating:o}={},transform:l=!0,whileElementsMounted:i,open:c}=e,[w,u]=d.useState({x:0,y:0,strategy:s,placement:t,middlewareData:{},isPositioned:!1}),[m,x]=d.useState(r);e1(m,r)||x(r);let[p,h]=d.useState(null),[f,g]=d.useState(null),y=d.useCallback(e=>
1{e!==_.current&&(_.current=e,h(e))},[]),v=d.useCallback(e=>{e!==N.current&&(N.current=e,g(e))},[]),b=n||p,j=o||f,_=d.useRef(null),N=d.useRef(null),C=d.useRef(w),S=null!=i,k=e3(i),A=e3(a),E=e3(c),I=d.useCallback(()=>{var e,r;let a,n,o;if(!_.current||!N.current)return;let l={placement:t,strategy:s,middleware:m};A.current&&(l.platform=A.current),(e=_.current,r=N.current,a=new Map,o={...(n={platform:eX,...l}).platform,_c:a},ew(e,r,{...n,platform:o})).then(e=>{let t={...e,isPositioned:!1!==E.current};M.current&&!e1(C.current,t)&&(C.current=t,eJ.flushSync(()=>{u(t)}))})},[m,t,s,A,E]);e0(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[c]);let M=d.useRef(!1);e0(()=>(M.current=!0,()=>{M.current=!1}),[]),e0(()=>{if(b&&(_.current=b),j&&(N.current=j),b&&j){if(k.current)return k.current(b,j,I);I()}},[b,j,I,k,S]);let D=d.useMemo(()=>({reference:_,floating:N,setReference:y,setFloating:v}),[y,v]),P=d.useMemo(()=>({reference:b,floating:j}),[b,j]),R=d.useMemo(()=>{let e={position:s,left:0,top:0};if(!P.floating)return e;let t=e5(P.floating,w.x),r=e5(P.floating,w.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...e2(P.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:t,top:r}},[s,l,P.floating,w.x,w.y]);return d.useMemo(()=>({...w,update:I,refs:D,elements:P,floatingStyles:R}),[w,I,D,P,R])}({strategy:"fixed",placement:N+("center"!==S?"-"+S:""),whileElementsMounted:(...e)=>(function(e,t,s,r){let a;void 0===r&&(r={});let{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,d=eB(e),w=n||o?[...d?eL(d):[],...t?eL(t):[]]:[];w.forEach(e=>{n&&e.addEventListener("scroll",s,{passive:!0}),o&&e.addEventListener("resize",s)});let u=d&&i?function(e,t){let s,r=null,a=ey(e);function n(){var e;clearTimeout(s),null==(e=r)||e.disconnect(),r=null}return!function o(l,i){void 0===l&&(l=!1),void 0===i&&(i=1),n();let c=e.getBoundingClientRect(),{left:d,top:w,width:u,height:m}=c;if(l||t(),!u||!m)return;let x={rootMargin:-Y(w)+"px "+-Y(a.clientWidth-(d+u))+"px "+-Y(a.clientHeight-(w+m))+"px "+-Y(d)+"px",threshold:H(0,G(1,i))||1},p=!0;function h(t){let r=t[0].intersectionRatio;if(r!==i){if(!p)return o();r?o(!1,r):s=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||eQ(c,e.getBoundingClientRect())||o(),p=!1}try{r=new IntersectionObserver(h,{...x,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(h,x)}r.observe(e)}(!0),n}(d,s):null,m=-1,x=null;l&&(x=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&x&&t&&(x.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(t)})),s()}),d&&!c&&x.observe(d),t&&x.observe(t));let p=c?eU(e):null;return c&&function t(){let r=eU(e);p&&!eQ(p,r)&&s(),p=r,a=requestAnimationFrame(t)}(),s(),()=>{var e;w.forEach(e=>{n&&e.removeEventListener("scroll",s),o&&e.removeEventListener("resize",s)}),null==u||u(),null==(e=x)||e.disconnect(),x=null,c&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===T}),elements:{reference:$.anchor},middleware:[{name:(f={name:"offset",options:r=s={mainAxis:C+ei,alignmentAxis:k},async fn(e){var t,s;let{x:a,y:n,placement:o,middlewareData:l}=e,i=await ep(e,r);return o===(null==(t=l.offset)?void 0:t.placement)&&null!=(s=l.arrow)&&s.alignmentOffset?{}:{x:a+i.x,y:n+i.y,data:{...i,placement:o}}}}).name,fn:f.fn,options:[s,void 0]},E&&{name:(g={name:"shift",options:o=n={mainAxis:!0,crossAxis:!1,limiter:"partial"===P?{fn:(a=void 0,{options:a={},fn(e){let{x:t,y:s,placement:r,rects:n,middlewareData:o}=e,{offset:l=0,mainAxis:i=!0,crossAxis:c=!0}=V(a,e),d={x:t,y:s},w=ee(r),u=Z(w),m=d[u],x=d[w],p=V(l,e),h="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(i){let e="y"===u?"height":"width",t=n.reference[u]-n.floating[e]+h.mainAxis,s=n.reference[u]+n.reference[e]-h.mainAxis;m<t?m=t:m>s&&(m=s)}if(c){var f,g;let e="y"===u?"width":"height",t=ex.has(X(r)),s=n.reference[w]-n.floating[e]+(t&&(null==(f=o.offset)?void 0:f[w])||0)+(t?0:h.crossAxis),a=n.reference[w]+n.reference[e]+(t?0:(null==(g=o.offset)?void 0:g[w])||0)-(t?h.crossAxis:0);x<s?x=s:x>a&&(x=a)}return{[u]:m,[w]:x}}}).fn,options:[void 0,void 0]}:void 0,...ef},async fn(e){let{x:t,y:s,placement:r,platform:a}=e,{mainAxis:n=!0,crossAxis:l=!1,limiter:i={fn:e=>{let{x:t,y:s}=e;return{x:t,y:s}}},...c}=V(o,e),d={x:t,y:s},w=await a.detectOverflow(e,c),u=ee(X(r)),m=Z(u),x=d[m],p=d[u];if(n){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",s=x+w[e],r=x-w[t];x=H(s,G(x,r))}if(l){let e="y"===u?"top":"left",t="y"===u?"bottom":"right",s=p+w[e],r=p-w[t];
1p=H(s,G(p,r))}let h=i.fn({...e,[m]:x,[u]:p});return{...h,data:{x:h.x-t,y:h.y-s,enabled:{[m]:n,[u]:l}}}}}).name,fn:g.fn,options:[n,void 0]},E&&{name:(y={name:"flip",options:i=l={...ef},async fn(e){var t,s,r,a,n,o,l,c;let d,w,u,{placement:m,middlewareData:x,rects:p,initialPlacement:h,platform:f,elements:g}=e,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:N=!0,...C}=V(i,e);if(null!=(t=x.arrow)&&t.alignmentOffset)return{};let S=X(m),k=ee(h),A=X(h)===h,E=await (null==f.isRTL?void 0:f.isRTL(g.floating)),I=b||(A||!N?[eo(h)]:(d=eo(h),[et(h),d,et(d)])),M="none"!==_;!b&&M&&I.push(...(w=Q(h),u=function(e,t,s){switch(e){case"top":case"bottom":if(s)return t?er:es;return t?es:er;case"left":case"right":return t?ea:en;default:return[]}}(X(h),"start"===_,E),w&&(u=u.map(e=>e+"-"+w),N&&(u=u.concat(u.map(et)))),u));let D=[h,...I],P=await f.detectOverflow(e,C),R=[],L=(null==(s=x.flip)?void 0:s.overflows)||[];if(y&&R.push(P[S]),v){let e,t,s,r,a=(o=m,l=p,void 0===(c=E)&&(c=!1),e=Q(o),s=J(t=Z(ee(o))),r="x"===t?e===(c?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[s]>l.floating[s]&&(r=eo(r)),[r,eo(r)]);R.push(P[a[0]],P[a[1]])}if(L=[...L,{placement:m,overflows:R}],!R.every(e=>e<=0)){let e=((null==(r=x.flip)?void 0:r.index)||0)+1,t=D[e];if(t&&("alignment"!==v||k===ee(t)||L.every(e=>ee(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let s=null==(a=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!s)switch(j){case"bestFit":{let e=null==(n=L.filter(e=>{if(M){let t=ee(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:n[0];e&&(s=e);break}case"initialPlacement":s=h}if(m!==s)return{reset:{placement:s}}}return{}}}).name,fn:y.fn,options:[l,void 0]},{name:(v={name:"size",options:u=w={...ef,apply:({elements:e,rects:t,availableWidth:s,availableHeight:r})=>{let{width:a,height:n}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${s}px`),o.setProperty("--radix-popper-available-height",`${r}px`),o.setProperty("--radix-popper-anchor-width",`${a}px`),o.setProperty("--radix-popper-anchor-height",`${n}px`)}},async fn(e){var t,s;let r,a,{placement:n,rects:o,platform:l,elements:i}=e,{apply:c=()=>{},...d}=V(u,e),w=await l.detectOverflow(e,d),m=X(n),x=Q(n),p="y"===ee(n),{width:h,height:f}=o.floating;"top"===m||"bottom"===m?(r=m,a=x===(await (null==l.isRTL?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(a=m,r="end"===x?"top":"bottom");let g=f-w.top-w.bottom,y=h-w.left-w.right,v=G(f-w[r],g),b=G(h-w[a],y),j=!e.middlewareData.shift,_=v,N=b;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(N=y),null!=(s=e.middlewareData.shift)&&s.enabled.y&&(_=g),j&&!x){let e=H(w.left,0),t=H(w.right,0),s=H(w.top,0),r=H(w.bottom,0);p?N=h-2*(0!==e||0!==t?e+t:H(w.left,w.right)):_=f-2*(0!==s||0!==r?s+r:H(w.top,w.bottom))}await c({...e,availableWidth:N,availableHeight:_});let C=await l.getDimensions(i.floating);return h!==C.width||f!==C.height?{reset:{rects:!0}}:{}}}).name,fn:v.fn,options:[w,void 0]},W&&{name:(b={name:"arrow",options:x=m={element:W,padding:A},fn(e){let{element:t,padding:s}="function"==typeof x?x(e):x;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eZ({element:t.current,padding:s}).fn(e):{}:t?eZ({element:t,padding:s}).fn(e):{}}}).name,fn:b.fn,options:[m,void 0]},tp({arrowWidth:el,arrowHeight:ei}),R&&{name:(j={name:"hide",options:h=p={strategy:"referenceHidden",...ef,boundary:eh?ef.boundary:void 0},async fn(e){let{rects:t,platform:s}=e,{strategy:r="referenceHidden",...a}=V(h,e);switch(r){case"referenceHidden":{let r=eu(await s.detectOverflow(e,{...a,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:em(r)}}}case"escaped":{let r=eu(await s.detectOverflow(e,{...a,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:em(r)}}}default:return{}}}}).name,fn:j.fn,options:[p,void 0]}]}),eN=$.setPlacementState;(0,e6.useLayoutEffect)(()=>(eN(eb),()=>{eN(void 0)}),[eb,eN]);let[eC,eS]=th(eb),ek=(0,e8.useCallbackRef)(O);(0,e6.useLayoutEffect)(()=>{ej&&ek?.()},[ej,ek]);let eA=e_.arrow?.x,eE=e_.arrow?.y,eI=e_.arrow?.centerOffset!==0,[eM,eD]=d.useState();return(0,e6.useLayoutEffect)(()=>{z&&eD(window.getComputedStyle(z).zIndex)},[z]),(0,c.jsx)("div",{ref:eg.setFloating,"data-radix-popper-content-wrapper":"",style:{...ev,transform:ej?ev.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eM,"--radix-popper-transform-origin":[e_.transformOrigin?.x,e_.transformOrigin?.y].join(" "),...e_.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(ti,{scope:_,placedSide:eC,placedAlign:eS,onArrowChange:q,arrowX:eA,arrowY:eE,shouldHideArrow:eI,children:(0,c.jsx)(L.Primitive.div,{"data-side":eC,"data-align":eS,...B,ref:U,style:{...B.style,animation:ej?void 0:"none"}})})})});td.displayName=tl;
1var tw="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},tm=d.forwardRef(function(e,t){let{__scopePopper:s,...r}=e,a=tc(tw,s),n=tu[a.placedSide];return(0,c.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[n]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(e4,{...r,ref:t,style:{...r.style,display:"block"}})})});function tx(e){return null!==e}tm.displayName=tw;var tp=e=>({name:"transformOrigin",options:e,fn(t){let{placement:s,rects:r,middlewareData:a}=t,n=a.arrow?.centerOffset!==0,o=n?0:e.arrowWidth,l=n?0:e.arrowHeight,[i,c]=th(s),d={start:"0%",center:"50%",end:"100%"}[c],w=(a.arrow?.x??0)+o/2,u=(a.arrow?.y??0)+l/2,m="",x="";return"bottom"===i?(m=n?d:`${w}px`,x=`${-l}px`):"top"===i?(m=n?d:`${w}px`,x=`${r.floating.height+l}px`):"right"===i?(m=`${-l}px`,x=n?d:`${u}px`):"left"===i&&(m=`${r.floating.width+l}px`,x=n?d:`${u}px`),{data:{x:m,y:x}}}});function th(e){let[t,s="center"]=e.split("-");return[t,s]}var tf=e.i(74606),tg=e.i(96626),ty=e.i(42727),tv=e.i(91918),tb=e.i(86312),tj=e.i(85369),t_=["Enter"," "],tN=["ArrowUp","PageDown","End"],tC=["ArrowDown","PageUp","Home",...tN],tS={ltr:[...t_,"ArrowRight"],rtl:[...t_,"ArrowLeft"]},tk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tA="Menu",[tE,tI,tM]=(0,T.createCollection)(tA),[tD,tP]=(0,P.createContextScope)(tA,[tM,tt,ty.createRovingFocusGroupScope]),tR=tt(),tL=(0,ty.createRovingFocusGroupScope)(),[tT,tO]=tD(tA),[tB,t$]=tD(tA),tz=e=>{let{__scopeMenu:t,open:s=!1,children:r,dir:a,onOpenChange:n,modal:o=!0}=e,l=tR(t),[i,w]=d.useState(null),u=d.useRef(!1),m=(0,e8.useCallbackRef)(n),x=(0,O.useDirection)(a);return d.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),d.useEffect(()=>{if(!s)return;let e=()=>m(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[s,m]),(0,c.jsx)(ta,{...l,children:(0,c.jsx)(tT,{scope:t,open:s,onOpenChange:m,content:i,onContentChange:w,children:(0,c.jsx)(tB,{scope:t,onClose:d.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:u,dir:x,modal:o,children:r})})})};tz.displayName=tA;var tF=d.forwardRef((e,t)=>{let{__scopeMenu:s,...r}=e,a=tR(s);return(0,c.jsx)(to,{...a,...r,ref:t})});tF.displayName="MenuAnchor";var tU="MenuPortal",[tG,tH]=tD(tU,{forceMount:void 0}),tW=e=>{let{__scopeMenu:t,forceMount:s,children:r,container:a}=e,n=tO(tU,t);return(0,c.jsx)(tG,{scope:t,forceMount:s,children:(0,c.jsx)(tg.Presence,{present:s||n.open,children:(0,c.jsx)(tf.Portal,{asChild:!0,container:a,children:r})})})};tW.displayName=tU;var tY="MenuContent",[tq,tK]=tD(tY),tV=d.forwardRef((e,t)=>{let s=tH(tY,e.__scopeMenu),{forceMount:r=s.forceMount,...a}=e,n=tO(tY,e.__scopeMenu),o=t$(tY,e.__scopeMenu);return(0,c.jsx)(tE.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(tg.Presence,{present:r||n.open,children:(0,c.jsx)(tE.Slot,{scope:e.__scopeMenu,children:o.modal?(0,c.jsx)(tX,{...a,ref:t}):(0,c.jsx)(tQ,{...a,ref:t})})})})}),tX=d.forwardRef((e,t)=>{let s=tO(tY,e.__scopeMenu),r=d.useRef(null),a=(0,D.useComposedRefs)(t,r);return d.useEffect(()=>{let e=r.current;if(e)return(0,tb.hideOthers)(e)},[]),(0,c.jsx)(tJ,{...e,ref:a,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:(0,M.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),tQ=d.forwardRef((e,t)=>{let s=tO(tY,e.__scopeMenu);return(0,c.jsx)(tJ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>s.onOpenChange(!1)})}),tZ=(0,tv.createSlot)("MenuContent.ScrollLock"),tJ=d.forwardRef((e,t)=>
1{let{__scopeMenu:s,loop:r=!1,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:i,onEscapeKeyDown:w,onPointerDownOutside:u,onFocusOutside:m,onInteractOutside:x,onDismiss:p,disableOutsideScroll:h,...f}=e,g=tO(tY,s),y=t$(tY,s),v=tR(s),b=tL(s),j=tI(s),[_,N]=d.useState(null),C=d.useRef(null),S=(0,D.useComposedRefs)(t,C,g.onContentChange),k=d.useRef(0),A=d.useRef(""),E=d.useRef(0),I=d.useRef(null),P=d.useRef("right"),R=d.useRef(0),L=h?tj.RemoveScroll:d.Fragment;d.useEffect(()=>()=>window.clearTimeout(k.current),[]),(0,$.useFocusGuards)();let T=d.useCallback(e=>{var t,s;return P.current===I.current?.side&&(t=e,!!(s=I.current?.area)&&function(e,t){let{x:s,y:r}=e,a=!1;for(let e=0,n=t.length-1;e<t.length;n=e++){let o=t[e],l=t[n],i=o.x,c=o.y,d=l.x,w=l.y;c>r!=w>r&&s<(d-i)*(r-c)/(w-c)+i&&(a=!a)}return a}({x:t.clientX,y:t.clientY},s))},[]);return(0,c.jsx)(tq,{scope:s,searchRef:A,onItemEnter:d.useCallback(e=>{T(e)&&e.preventDefault()},[T]),onItemLeave:d.useCallback(e=>{T(e)||(C.current?.focus(),N(null))},[T]),onTriggerLeave:d.useCallback(e=>{T(e)&&e.preventDefault()},[T]),pointerGraceTimerRef:E,onPointerGraceIntentChange:d.useCallback(e=>{I.current=e},[]),children:(0,c.jsx)(L,{...h?{as:tZ,allowPinchZoom:!0}:void 0,children:(0,c.jsx)(z.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:(0,M.composeEventHandlers)(n,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,c.jsx)(B.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:w,onPointerDownOutside:u,onFocusOutside:m,onInteractOutside:x,onDismiss:p,children:(0,c.jsx)(ty.Root,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:N,onEntryFocus:(0,M.composeEventHandlers)(i,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,c.jsx)(td,{role:"menu","aria-orientation":"vertical","data-state":sp(g.open),"data-radix-menu-content":"",dir:y.dir,...v,...f,ref:S,style:{outline:"none",...f.style},onKeyDown:(0,M.composeEventHandlers)(f.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,s=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var a;let t,n,o,l,i,c;"Tab"===e.key&&e.preventDefault(),!s&&r&&(a=e.key,t=A.current+a,n=j().filter(e=>!e.disabled),o=document.activeElement,l=n.find(e=>e.ref.current===o)?.textValue,i=function(e,t,s){var r;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,n=s?e.indexOf(s):-1,o=(r=Math.max(n,0),e.map((t,s)=>e[(r+s)%e.length]));1===a.length&&(o=o.filter(e=>e!==s));let l=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return l!==s?l:void 0}(n.map(e=>e.textValue),t,l),c=n.find(e=>e.textValue===i)?.ref.current,function e(t){A.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(t),c&&setTimeout(()=>c.focus()))}let n=C.current;if(e.target!==n||!tC.includes(e.key))return;e.preventDefault();let o=j().filter(e=>!e.disabled).map(e=>e.ref.current);tN.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let s of e)if(s===t||(s.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,M.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),A.current="")}),onPointerMove:(0,M.composeEventHandlers)(e.onPointerMove,sg(e=>{let t=e.target,s=R.current!==e.clientX;e.currentTarget.contains(t)&&s&&(P.current=e.clientX>R.current?"right":"left",R.current=e.clientX)}))})})})})})})});tV.displayName=tY;var t0=d.forwardRef((e,t)=>{let{__scopeMenu:s,...r}=e;return(0,c.jsx)(L.Primitive.div,{role:"group",...r,ref:t})});t0.displayName="MenuGroup";var t1=d.forwardRef((e,t)=>{let{__scopeMenu:s,...r}=e;return(0,c.jsx)(L.Primitive.div,{...r,ref:t})});t1.displayName="MenuLabel";var t2="MenuItem",t5="menu.itemSelect",t3=d.forwardRef((e,t)=>{let{disabled:s=!1,onSelect:r,...a}=e,n=d.useRef(null),o=t$(t2,e.__scopeMenu),l=tK(t2,e.__scopeMenu),i=(0,D.useComposedRefs)(t,n),w=d.useRef(!1);return(0,c.jsx)(t4,{...a,ref:i,disabled:s,onClick:(0,M.composeEventHandlers)(e.onClick,()=>{let e=n.current;if(!s&&e){let t=new CustomEvent(t5,{bubbles:!0,cancelable:!0});e.addEventListener(t5,e=>r?.(e),{once:!0}),(0,L.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?w.current=!1:o.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),w.current=!0},onPointerUp:(0,M.composeEventHandlers)(e.onPointerUp,e=>{w.current||e.currentTarget?.click()}),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;
1s||t&&" "===e.key||t_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});t3.displayName=t2;var t4=d.forwardRef((e,t)=>{let{__scopeMenu:s,disabled:r=!1,textValue:a,...n}=e,o=tK(t2,s),l=tL(s),i=d.useRef(null),w=(0,D.useComposedRefs)(t,i),[u,m]=d.useState(!1),[x,p]=d.useState("");return d.useEffect(()=>{let e=i.current;e&&p((e.textContent??"").trim())},[n.children]),(0,c.jsx)(tE.ItemSlot,{scope:s,disabled:r,textValue:a??x,children:(0,c.jsx)(ty.Item,{asChild:!0,...l,focusable:!r,children:(0,c.jsx)(L.Primitive.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...n,ref:w,onPointerMove:(0,M.composeEventHandlers)(e.onPointerMove,sg(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,M.composeEventHandlers)(e.onPointerLeave,sg(e=>o.onItemLeave(e))),onFocus:(0,M.composeEventHandlers)(e.onFocus,()=>m(!0)),onBlur:(0,M.composeEventHandlers)(e.onBlur,()=>m(!1))})})})}),t8=d.forwardRef((e,t)=>{let{checked:s=!1,onCheckedChange:r,...a}=e;return(0,c.jsx)(sa,{scope:e.__scopeMenu,checked:s,children:(0,c.jsx)(t3,{role:"menuitemcheckbox","aria-checked":sh(s)?"mixed":s,...a,ref:t,"data-state":sf(s),onSelect:(0,M.composeEventHandlers)(a.onSelect,()=>r?.(!!sh(s)||!s),{checkForDefaultPrevented:!1})})})});t8.displayName="MenuCheckboxItem";var t6="MenuRadioGroup",[t9,t7]=tD(t6,{value:void 0,onValueChange:()=>{}}),se=d.forwardRef((e,t)=>{let{value:s,onValueChange:r,...a}=e,n=(0,e8.useCallbackRef)(r);return(0,c.jsx)(t9,{scope:e.__scopeMenu,value:s,onValueChange:n,children:(0,c.jsx)(t0,{...a,ref:t})})});se.displayName=t6;var st="MenuRadioItem",ss=d.forwardRef((e,t)=>{let{value:s,...r}=e,a=t7(st,e.__scopeMenu),n=s===a.value;return(0,c.jsx)(sa,{scope:e.__scopeMenu,checked:n,children:(0,c.jsx)(t3,{role:"menuitemradio","aria-checked":n,...r,ref:t,"data-state":sf(n),onSelect:(0,M.composeEventHandlers)(r.onSelect,()=>a.onValueChange?.(s),{checkForDefaultPrevented:!1})})})});ss.displayName=st;var sr="MenuItemIndicator",[sa,sn]=tD(sr,{checked:!1}),so=d.forwardRef((e,t)=>{let{__scopeMenu:s,forceMount:r,...a}=e,n=sn(sr,s);return(0,c.jsx)(tg.Presence,{present:r||sh(n.checked)||!0===n.checked,children:(0,c.jsx)(L.Primitive.span,{...a,ref:t,"data-state":sf(n.checked)})})});so.displayName=sr;var sl=d.forwardRef((e,t)=>{let{__scopeMenu:s,...r}=e;return(0,c.jsx)(L.Primitive.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});sl.displayName="MenuSeparator";var si=d.forwardRef((e,t)=>{let{__scopeMenu:s,...r}=e,a=tR(s);return(0,c.jsx)(tm,{...a,...r,ref:t})});si.displayName="MenuArrow";var[sc,sd]=tD("MenuSub"),sw="MenuSubTrigger",su=d.forwardRef((e,t)=>{let s=tO(sw,e.__scopeMenu),r=t$(sw,e.__scopeMenu),a=sd(sw,e.__scopeMenu),n=tK(sw,e.__scopeMenu),o=d.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:i}=n,w={__scopeMenu:e.__scopeMenu},u=d.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return d.useEffect(()=>u,[u]),d.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),i(null)}},[l,i]),(0,c.jsx)(tF,{asChild:!0,...w,children:(0,c.jsx)(t4,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?a.contentId:void 0,"data-state":sp(s.open),...e,ref:(0,D.composeRefs)(t,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:(0,M.composeEventHandlers)(e.onPointerMove,sg(t=>{n.onItemEnter(t),!t.defaultPrevented&&(e.disabled||s.open||o.current||(n.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{s.onOpenChange(!0),u()},100)))})),onPointerLeave:(0,M.composeEventHandlers)(e.onPointerLeave,sg(e=>{u();let t=s.content?.getBoundingClientRect();if(t){let r=s.content?.dataset.side,a="right"===r,o=t[a?"left":"right"],i=t[a?"right":"left"];n.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:o,y:t.top},{x:i,y:t.top},{x:i,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>n.onPointerGraceIntentChange(null),300)}else{if(n.onTriggerLeave(e),e.defaultPrevented)return;n.onPointerGraceIntentChange(null)}})),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,t=>{let a=""!==n.searchRef.current;e.disabled||a&&" "===t.key||tS[r.dir].includes(t.key)&&(s.onOpenChange(!0),s.content?.focus(),t.preventDefault())})})})});su.displayName=sw;var sm="MenuSubContent",sx=d.forwardRef((e,t)=>
1{let s=tH(tY,e.__scopeMenu),{forceMount:r=s.forceMount,align:a="start",...n}=e,o=tO(tY,e.__scopeMenu),l=t$(tY,e.__scopeMenu),i=sd(sm,e.__scopeMenu),w=d.useRef(null),u=(0,D.useComposedRefs)(t,w);return(0,c.jsx)(tE.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(tg.Presence,{present:r||o.open,children:(0,c.jsx)(tE.Slot,{scope:e.__scopeMenu,children:(0,c.jsx)(tJ,{id:i.contentId,"aria-labelledby":i.triggerId,...n,ref:u,align:a,side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&w.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,M.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==i.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,M.composeEventHandlers)(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),s=tk[l.dir].includes(e.key);t&&s&&(o.onOpenChange(!1),i.trigger?.focus(),e.preventDefault())})})})})})});function sp(e){return e?"open":"closed"}function sh(e){return"indeterminate"===e}function sf(e){return sh(e)?"indeterminate":e?"checked":"unchecked"}function sg(e){return t=>"mouse"===t.pointerType?e(t):void 0}sx.displayName=sm;var sy="DropdownMenu",[sv,sb]=(0,P.createContextScope)(sy,[tP]),sj=tP(),[s_,sN]=sv(sy),sC=e=>{let{__scopeDropdownMenu:t,children:s,dir:r,open:a,defaultOpen:n,onOpenChange:o,modal:l=!0}=e,i=sj(t),w=d.useRef(null),[u,m]=(0,R.useControllableState)({prop:a,defaultProp:n??!1,onChange:o,caller:sy});return(0,c.jsx)(s_,{scope:t,triggerId:(0,F.useId)(),triggerRef:w,contentId:(0,F.useId)(),open:u,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(e=>!e),[m]),modal:l,children:(0,c.jsx)(tz,{...i,open:u,onOpenChange:m,dir:r,modal:l,children:s})})};sC.displayName=sy;var sS="DropdownMenuTrigger",sk=d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,disabled:r=!1,...a}=e,n=sN(sS,s),o=sj(s);return(0,c.jsx)(tF,{asChild:!0,...o,children:(0,c.jsx)(L.Primitive.button,{type:"button",id:n.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":n.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,D.composeRefs)(t,n.triggerRef),onPointerDown:(0,M.composeEventHandlers)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(n.onOpenToggle(),n.open||e.preventDefault())}),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&n.onOpenToggle(),"ArrowDown"===e.key&&n.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});sk.displayName=sS;var sA=e=>{let{__scopeDropdownMenu:t,...s}=e,r=sj(t);return(0,c.jsx)(tW,{...r,...s})};sA.displayName="DropdownMenuPortal";var sE="DropdownMenuContent",sI=d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sN(sE,s),n=sj(s),o=d.useRef(!1);
1return(0,c.jsx)(tV,{id:a.contentId,"aria-labelledby":a.triggerId,...n,...r,ref:t,onCloseAutoFocus:(0,M.composeEventHandlers)(e.onCloseAutoFocus,e=>{o.current||a.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:(0,M.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,s=0===t.button&&!0===t.ctrlKey,r=2===t.button||s;(!a.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});sI.displayName=sE,d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(t0,{...a,...r,ref:t})}).displayName="DropdownMenuGroup",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(t1,{...a,...r,ref:t})}).displayName="DropdownMenuLabel";var sM=d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(t3,{...a,...r,ref:t})});sM.displayName="DropdownMenuItem",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(t8,{...a,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(se,{...a,...r,ref:t})}).displayName="DropdownMenuRadioGroup",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(ss,{...a,...r,ref:t})}).displayName="DropdownMenuRadioItem",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(so,{...a,...r,ref:t})}).displayName="DropdownMenuItemIndicator";var sD=d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(sl,{...a,...r,ref:t})});sD.displayName="DropdownMenuSeparator",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(si,{...a,...r,ref:t})}).displayName="DropdownMenuArrow",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(su,{...a,...r,ref:t})}).displayName="DropdownMenuSubTrigger",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:s,...r}=e,a=sj(s);return(0,c.jsx)(sx,{...a,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var sP=e.i(75157);function sR({...e}){return(0,c.jsx)(sC,{"data-slot":"dropdown-menu",...e})}function sL({...e}){return(0,c.jsx)(sk,{"data-slot":"dropdown-menu-trigger",...e})}function sT({className:e,sideOffset:t=4,...s}){return(0,c.jsx)(sA,{children:(0,c.jsx)(sI,{"data-slot":"dropdown-menu-content",sideOffset:t,className:(0,sP.cn)("tw:bg-popover tw:text-popover-foreground tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:z-50 tw:max-h-[var(--radix-dropdown-menu-content-available-height)] tw:min-w-[8rem] tw:overflow-y-auto tw:rounded-md tw:border tw:p-1 tw:shadow-md",e),...s})})}function sO({className:e,inset:t,variant:s="default",...r}){return(0,c.jsx)(sM,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":s,className:(0,sP.cn)("tw:focus:bg-accent tw:focus:text-accent-foreground tw:data-[variant=destructive]:text-destructive tw:data-[variant=destructive]:focus:bg-destructive/10 tw:relative tw:flex tw:cursor-pointer tw:items-center tw:gap-2 tw:rounded-sm tw:px-2 tw:py-1.5 tw:text-sm tw:outline-hidden tw:select-none tw:data-[disabled]:pointer-events-none tw:data-[disabled]:opacity-50 tw:data-[inset]:pl-8 tw:[&_svg:not([class*='size-'])]:size-4 tw:[&_svg]:shrink-0",e),...r})}function sB({className:e,...t}){return(0,c.jsx)(sD,{"data-slot":"dropdown-menu-separator",className:(0,sP.cn)("tw:bg-border tw:-mx-1 tw:my-1 tw:h-px",e),...t})}function s$(){let{t:e}=(0,p.useI18n)(),t=e=>{window.location.href=e};return(0,c.jsxs)(sR,{children:[(0,c.jsx)(sL,{asChild:!0,children:(0,c.jsxs)("button",{type:"button",className:"tw:inline-flex tw:cursor-pointer tw:items-center tw:gap-1 tw:rounded-md tw:px-2 tw:py-1 tw:text-sm tw:transition-colors tw:hover:bg-accent",children:["cashgames"===x.env.platformName?"Bitcoin Cash (BCH)":"Bitcoin (BTC)",(0,c.jsx)(E,{className:"tw:size-4 tw:opacity-70"})]})}),(0,c.jsxs)(sT,{align:"end",children:[(0,c.jsx)(sO,{onClick:()=>t(`https://${(0,I.platformHost)("cashgames")}`),children:(0,c.jsx)("img",{src:"/assets/images/common/vcg_logo_bch.svg",alt:"Satoshi Games BCH logo",title:e("bitcoincom_cash_games"),className:"tw:h-5"})}),(0,c.jsx)(sO,{onClick:()=>t(`https://${(0,I.platformHost)("games")}`),children:(0,c.jsx)("img",{src:"/assets/images/common/vcg_logo_btc.svg",alt:"Satoshi Games BTC logo",title:e("bitcoincom_games"),className:"tw:h-5"})})]})]})}let sz={en:"English",pt:"Português",es:"Español",ru:"Ð ÑÑÑкий"},sF={en:"gb",pt:"br",es:"es",ru:"ru"},sU=[{locale:"en",flag:"gb",alt:"English",title:"English"},{locale:"es",flag:"es",alt:"Spanish",title:"Español"},{locale:"ru",flag:"ru",alt:"Russian",title:"Ð ÑÑÑкий"},{locale:"pt",flag:"br",alt:"Portuguese",title:"Português"}],sG=["/3game","/blackjack","/keno","/videopoker","/slots","/dice","/roulette","/craps"];function sH({onlyFlag:e=!1,className:t=""}){let{locale:s,setLocale:r}=(0,p.useI18n)(),a=(0,w.useRouter)(),n=(0,w.usePathname)(),o=(0,g.useAccountStore)(e=>e.updateUserProfile),l=(0,b.useUIStore)(e=>e.increaseAppKey),i=e=>{let t=document.getElementById("iframe_holder");t?.contentWindow?.postMessage(e,(0,x.getGamesRepoUrl)())},d=async e=>{if(e===s)return;await r(e),u.default.set("userLanguage",e),i({sender:"games-client",action:"set_lang",lang:e}),i({sender:"games-client",action:"set_locale",locale:e}),await o({languageCode:e});
1let t=(n||"/").split("/").filter(Boolean);t.length>0&&x.supportedLocales.includes(t[0])&&t.shift();let c="/"+t.join("/"),d=window.location.search||"";a.push(`/${e}${"/"===c?"":c}${d}`),sG.includes(c)&&l()};return(0,c.jsxs)(sR,{children:[(0,c.jsx)(sL,{asChild:!0,children:(0,c.jsxs)("button",{type:"button",className:`tw:inline-flex tw:cursor-pointer tw:items-center tw:gap-2 tw:rounded-md tw:px-2 tw:py-1 tw:text-sm tw:transition-colors tw:hover:bg-accent ${t}`,children:[(0,c.jsx)("img",{src:`/assets/images/common/flag-${sF[s]||"gb"}.png`,alt:sz[s]||"English",className:"tw:h-4 tw:w-6 tw:rounded-xs tw:object-cover"}),!e&&(0,c.jsx)("span",{children:sz[s]||"English"}),(0,c.jsx)(E,{className:"tw:size-4 tw:opacity-70"})]})}),(0,c.jsx)(sT,{align:"end",children:sU.map(e=>(0,c.jsxs)(sO,{onClick:()=>void d(e.locale),children:[(0,c.jsx)("img",{src:`/assets/images/common/flag-${e.flag}.png`,alt:e.alt,className:"tw:h-4 tw:w-6 tw:rounded-xs tw:object-cover"}),e.title]},e.locale))})]})}var sW=e.i(68877);let sY=(0,A.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var sq=e.i(2592);function sK(){let{t:e}=(0,p.useI18n)(),t=(0,g.useAccountStore)(e=>e.lockedAccount),s=(0,g.useAccountStore)(e=>e.balanceLoaded),r=(0,g.useAccountStore)(e=>e.hasUnconfirmedTx),a=(0,g.useAccountStore)(e=>e.realBalance),n=(0,g.useAccountStore)(e=>e.bonusBalance),o=(0,b.useUIStore)(e=>e.balanceDisabled),l=(0,sq.useBonusWagerStore)(e=>e.wagered),i=(0,sq.useBonusWagerStore)(e=>e.amountToWage),w=(0,sq.useBonusWagerStore)(e=>e.isAvailable),u=(0,sq.useBonusWagerStore)(e=>e.campaignName),[m,h]=(0,d.useState)(!1),[f,y]=(0,d.useState)(!1);(0,d.useEffect)(()=>{y(""!==u)},[u]);let v=i.amount?l.amount/i.amount*100:0;return(0,c.jsxs)("div",{className:"tw:relative tw:flex tw:items-center tw:gap-2",children:[t&&(0,c.jsx)("p",{className:"tw:text-sm tw:text-yellow-400",children:e("your_account_is_locked")}),(0,c.jsx)("img",{className:"tw:h-7 tw:w-7",src:"BTC"===x.env.platformCurrency?"/assets/images/common/btc-logo.svg":"/assets/images/common/bch-logo.svg",alt:`${x.env.platformCurrency} logo`}),!t&&!s&&(0,c.jsx)("p",{className:"tw:text-sm tw:text-muted-foreground",children:e("loading")}),f&&(0,c.jsxs)("div",{className:"tw:absolute tw:top-12 tw:right-0 tw:z-50 tw:w-64 tw:rounded-md tw:border tw:border-border tw:bg-popover tw:p-3 tw:text-popover-foreground tw:shadow-lg",children:[(0,c.jsx)("div",{className:"tw:h-2 tw:w-full tw:overflow-hidden tw:rounded-full tw:bg-muted",children:(0,c.jsx)("div",{className:"tw:h-full tw:rounded-full tw:bg-primary",style:{width:`${v}%`}})}),(0,c.jsxs)("div",{className:"tw:mt-2 tw:flex tw:items-center tw:justify-between tw:text-sm",children:[(0,c.jsx)("span",{className:"tw:truncate",children:u}),(0,c.jsxs)("a",{href:"/promotion#active_promo",className:"tw:flex tw:shrink-0 tw:items-center tw:gap-1 tw:text-primary",children:["Promotions ",(0,c.jsx)(sW.ArrowRight,{className:"tw:size-3.5"})]})]})]}),s&&!o&&(0,c.jsxs)("div",{className:"tw:text-right tw:leading-tight",children:[(0,c.jsxs)("p",{className:`tw:m-0 tw:text-base ${r?"tw:text-yellow-400":""}`,children:[x.env.platformCurrency," ",a.toFixed(5),r&&(0,c.jsx)("button",{type:"button",className:"tw:ml-1 tw:cursor-pointer tw:align-middle",onMouseOver:()=>h(!0),onMouseLeave:()=>h(!1),children:(0,c.jsx)(sY,{className:"tw:inline tw:size-4"})})]}),m&&(0,c.jsx)("div",{className:"tw:absolute tw:right-0 tw:z-50 tw:mt-1 tw:rounded-md tw:border tw:border-border tw:bg-popover tw:p-2 tw:text-xs tw:text-popover-foreground tw:shadow-lg",children:e("one_or_more_deposits")}),(0,c.jsxs)("p",{className:"tw:m-0 tw:cursor-pointer tw:text-base tw:text-muted-foreground",onClick:()=>{w&&y(e=>!e)},children:["Bonus: ",n.toFixed(5)," ",x.env.platformCurrency]})]})]})}function sV(){let{t:e}=(0,p.useI18n)(),t=(0,j.useDialogStore)(e=>e.openDialog),s=(0,g.useAccountStore)(e=>e.setWantsToLogout),[r,a]=(0,d.useState)("/static/images/misc/user-avatar.svg"),n=e=>t(j.DIALOGS.account,{tab:e});return(0,c.jsxs)(sR,{children:[(0,c.jsx)(sL,{asChild:!0,children:(0,c.jsx)("button",{type:"button","aria-label":e("my_account"),className:"tw:cursor-pointer",children:(0,c.jsx)("img",{alt:"user avatar",src:r,width:28,height:28,onMouseOver:()=>a("/static/images/misc/user-avatar-hovered.svg"),onMouseOut:()=>a("/static/images/misc/user-avatar.svg")})})}),(0,c.jsxs)(sT,{align:"end",className:"tw:w-52",children:[(0,c.jsx)(sO,{onClick:()=>n(0),children:e("my_account")}
1),(0,c.jsx)(sO,{onClick:()=>n(1),children:e("transactions_history_nma")}),(0,c.jsx)(sO,{onClick:()=>n(2),children:e("security_nma")}),(0,c.jsx)(sO,{onClick:()=>n(3),children:e("withdrawals_nma")}),(0,c.jsx)(sO,{onClick:()=>n(4),children:e("games_reports")}),(0,c.jsx)(sB,{}),(0,c.jsx)(sO,{variant:"destructive",onClick:()=>{s(!0),n(0)},children:e("logout")})]})]})}var sX=e.i(68834),sQ=e.i(26999),sZ=e.i(63676);function sJ({...e}){return(0,c.jsx)(sQ.Root,{"data-slot":"sheet",...e})}function s0({...e}){return(0,c.jsx)(sQ.Portal,{"data-slot":"sheet-portal",...e})}function s1({className:e,...t}){return(0,c.jsx)(sQ.Overlay,{"data-slot":"sheet-overlay",className:(0,sP.cn)("tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:fixed tw:inset-0 tw:z-50 tw:bg-black/70",e),...t})}function s2({className:e,children:t,side:s="right",...r}){return(0,c.jsxs)(s0,{children:[(0,c.jsx)(s1,{}),(0,c.jsxs)(sQ.Content,{"data-slot":"sheet-content",className:(0,sP.cn)("tw:bg-background tw:text-foreground tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:fixed tw:z-50 tw:flex tw:flex-col tw:gap-4 tw:shadow-lg tw:transition tw:ease-in-out tw:data-[state=closed]:duration-300 tw:data-[state=open]:duration-500","right"===s&&"tw:data-[state=closed]:slide-out-to-right tw:data-[state=open]:slide-in-from-right tw:inset-y-0 tw:right-0 tw:h-full tw:w-3/4 tw:border-l tw:sm:max-w-sm","left"===s&&"tw:data-[state=closed]:slide-out-to-left tw:data-[state=open]:slide-in-from-left tw:inset-y-0 tw:left-0 tw:h-full tw:w-3/4 tw:border-r tw:sm:max-w-sm","top"===s&&"tw:data-[state=closed]:slide-out-to-top tw:data-[state=open]:slide-in-from-top tw:inset-x-0 tw:top-0 tw:h-auto tw:border-b","bottom"===s&&"tw:data-[state=closed]:slide-out-to-bottom tw:data-[state=open]:slide-in-from-bottom tw:inset-x-0 tw:bottom-0 tw:h-auto tw:border-t",e),...r,children:[t,(0,c.jsxs)(sQ.Close,{className:"tw:ring-offset-background tw:focus:ring-ring tw:absolute tw:top-4 tw:right-4 tw:rounded-xs tw:opacity-70 tw:transition-opacity tw:hover:opacity-100 tw:focus:ring-2 tw:focus:ring-offset-2 tw:focus:outline-none tw:disabled:pointer-events-none tw:cursor-pointer",children:[(0,c.jsx)(sZ.X,{className:"tw:size-5"}),(0,c.jsx)("span",{className:"tw:sr-only",children:"Close"})]})]})]})}function s5({className:e,...t}){return(0,c.jsx)(sQ.Title,{"data-slot":"sheet-title",className:(0,sP.cn)("tw:text-foreground tw:font-semibold",e),...t})}var s3=e.i(19455);let s4=(0,sX.create)(e=>({open:!1,openNav:()=>e({open:!0}),closeNav:()=>e({open:!1})})),s8="tw:flex tw:items-center tw:gap-3 tw:rounded-md tw:px-3 tw:py-3 tw:text-sm tw:font-medium tw:text-foreground tw:transition-colors tw:hover:bg-accent";function s6(){let{t:e}=(0,p.useI18n)(),t=(0,w.useRouter)(),s=s4(e=>e.open),r=s4(e=>e.closeNav),a=(0,j.useDialogStore)(e=>e.openDialog),n=(0,g.useAccountStore)(e=>e.isLoggedIn),o=(0,g.useAccountStore)(e=>e.userId),l=(0,g.useAccountStore)(e=>e.username),i=(0,g.useAccountStore)(e=>e.realBalance),d=(0,g.useAccountStore)(e=>e.balanceLoaded),u=(0,g.useAccountStore)(e=>e.hasUnconfirmedTx),m=(0,g.useAccountStore)(e=>e.limitedAccount),h=o?o.slice(7,18):"",f=l?"player-"===l.slice(0,7)?h:l:h,y=e=>{r(),t.push(0===e?"/player-login":"/signup")};return(0,c.jsx)(sJ,{open:s,onOpenChange:e=>e?void 0:r(),children:(0,c.jsxs)(s2,{side:"right",className:"tw:flex tw:w-[82%] tw:flex-col tw:gap-0 tw:p-0 tw:sm:max-w-sm",children:[(0,c.jsx)(s5,{className:"tw:sr-only",children:e("home")}),(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-4 tw:border-b tw:border-border tw:p-5",children:[n?(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-2",children:[(0,c.jsx)("img",{src:"/assets/images/common/logo.png",height:"20",alt:"Satoshi Games logo"}),(0,c.jsxs)("span",{className:"tw:font-semibold",children:["Satoshi ",(0,c.jsx)("span",{className:"tw:text-primary",children:"Games"}),(0,c.jsx)("span",{className:"tw:ml-1.5 tw:text-xs tw:text-muted-foreground",children:x.env.platformCurrency})]})]}):(0,c.jsxs)("div",{children:[(0,c.jsx)("h6",{className:"tw:text-lg tw:font-semibold",children:e("join_to_play_and_win")}),(0,c.jsx)("p",{className:"tw:text-sm tw:text-muted-foreground",children:e("sign_up_now_and_get_access")})]}),n?(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-1",children:[(0,c.jsx)("span",{className:"tw:text-xs tw:text-muted-foreground",children:e("hello")}),(0,c.jsx)("span",{className:"tw:font-medium",children:f}),(0,c.jsxs)("button",{onClick:()=>{r(),a(j.DIALOGS.account,{tab:0})},className:"tw:mt-2 tw:flex tw:items-center tw:gap-2 tw:text-sm tw:text-primary tw:cursor-pointer",children:[(0,c.jsx)("img",{src:"/assets/images/header/myaccount.svg",width:"20",alt:""}),e("my_account")]})]}):(0,c.jsxs)("div",{className:"tw:flex tw:gap-2",children:[(0,c.jsx)(s3.Button,{className:"tw:flex-1",onClick:()=>y(1),children:e("sign_up")}),(0,c.jsx)(s3.Button,{variant:"outline",className:"tw:flex-1",onClick:()=>y(0),children:e("login")})]}),(0,c.jsx)(sH,{})]}),(0,c.jsxs)("nav",{className:"tw:flex tw:flex-1 tw:flex-col tw:gap-1 tw:overflow-y-auto tw:p-3",children:[(0,c.jsxs)(C.default,{href:"/",onClick:r,className:s8,children:[(0,c.jsx)("img",{src:"/assets/images/header/home.svg",width:"20",alt:""}),e("home")]}),"games"===x.env.platformName?(0,c.jsxs)("a",{href:`https://${(0,I.platformHost)("cashgames")}`,className:s8,children:[(0,c.jsx)("img",{src:"/assets/images/header/btc.svg",width:"20",alt:""}),e("switch_to_bch")]}):(0,c.jsxs)("a",{href:`https://${(0,I.platformHost)("games")}`,className:s8,children:[(0,c.jsx)("img",{src:"/assets/images/header/btc.svg",width:"20",alt:""}),e("switch_to_btc")]}),(0,c.jsxs)("a",{onClick:()=>{r();let e=new URLSearchParams(window.location.search).get("banner_id");t.push(null!==e?`/promotion?banner_id=${e}
1`:"/promotion")},className:`${s8} tw:cursor-pointer`,children:[(0,c.jsx)("img",{src:"/assets/images/header/gift.svg",width:"20",alt:""}),e("promotions")]}),(0,c.jsxs)(C.default,{href:"/vip",onClick:r,className:s8,children:[(0,c.jsx)("img",{src:"/assets/images/header/btc.svg",width:"20",alt:""}),"VIP"]}),(0,c.jsxs)("a",{href:"#",onClick:e=>{e.preventDefault(),a(j.DIALOGS.contactUs),r()},className:s8,children:[(0,c.jsx)("img",{src:"/assets/images/header/mail.png",width:"20",alt:""}),e("contact_us")]})]}),n&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-3 tw:border-t tw:border-border tw:p-5",children:[(0,c.jsxs)("p",{className:"tw:text-sm",children:[(0,c.jsxs)("span",{className:"tw:text-muted-foreground",children:[e("balance_colon")," "]}),d&&(0,c.jsxs)("span",{className:u?"tw:text-yellow-400":"tw:text-foreground",children:[i||0," ",x.env.platformCurrency]})]}),(0,c.jsx)(s3.Button,{className:"tw:w-full tw:uppercase",onClick:e=>{e.preventDefault(),r(),a(m?"newRestrictedRegion":j.DIALOGS.newDeposit)},children:e("deposit")})]})]})})}function s9(){let{t:e}=(0,p.useI18n)(),t=(0,w.useRouter)(),s=(0,_.stripLocalePrefix)((0,w.usePathname)()),r=(0,j.useDialogStore)(e=>e.openDialog),a=s4(e=>e.openNav),n=(0,g.useAccountStore)(e=>e.isLoggedIn),o=(0,g.useAccountStore)(e=>e.lockedAccount),l=(0,g.useAccountStore)(e=>e.limitedAccount);return"/player-login"===s||"/signup"===s?null:(0,c.jsxs)("header",{className:`clearfix tw:relative tw:z-50${"/"!==s?" tw:min-h-16 tw:bg-gradient-to-t tw:from-[#131720] tw:to-[#0a0c11] tw:[@media(orientation:landscape)_and_(max-width:1024px)]:hidden":""}`,children:[(0,c.jsxs)("div",{id:"header-top",className:"tw:flex tw:h-16 tw:items-center tw:justify-between tw:gap-3 tw:bg-gradient-to-t tw:from-[#131720] tw:to-[#0a0c11] tw:px-3 tw:text-white tw:lg:px-4",children:[(0,c.jsxs)("div",{className:"tw:ml-[15px] tw:flex tw:shrink-0 tw:items-center tw:overflow-hidden tw:whitespace-nowrap tw:text-lg",onClick:()=>{t.replace("/")},style:{cursor:"pointer"},children:[(0,c.jsx)("img",{src:"/assets/images/common/logo.png",alt:"Satoshi Games logo",title:"Satoshi Games",height:"20",className:"tw:h-5"}),(0,c.jsxs)("span",{className:"tw:ml-2 tw:font-[Montserrat,sans-serif] tw:font-bold tw:tracking-[-0.5px]",children:["Satoshi"," ",(0,c.jsx)("span",{className:"tw:font-[forma-djr-banner,sans-serif] tw:font-normal tw:tracking-normal tw:text-[#13d19c]",children:"Games"})]}),(0,c.jsx)("span",{className:"tw:ml-1.5 tw:rounded tw:bg-white/10 tw:px-1 tw:text-xs tw:font-semibold tw:text-white/70",children:x.env.platformCurrency})]}),(0,c.jsxs)("div",{id:"header-menus",className:"tw:hidden tw:flex-1 tw:items-center tw:gap-4 tw:font-[Gilroy-Bold,sans-serif] tw:lg:flex",children:[(0,c.jsx)(S,{}),(0,c.jsxs)("div",{className:"tw:ml-auto tw:flex tw:items-center tw:gap-3",children:[(0,c.jsx)(s$,{}),n?(0,c.jsxs)("div",{id:"account-info",className:"tw:flex tw:items-center tw:gap-3 tw:text-[13px]",children:[(0,c.jsx)(sK,{}),!o&&(0,c.jsx)("button",{className:"size16 tw:w-[100px] tw:cursor-pointer tw:rounded tw:bg-[#15d6a0] tw:px-1.5 tw:py-[3px] tw:font-[Gilroy-Bold,sans-serif] tw:text-[13px] tw:leading-8 tw:text-white",id:"header-control-deposit",onClick:()=>{l||r(j.DIALOGS.newDeposit)},children:e("deposit")}),(0,c.jsx)("span",{style:{color:"rgb(57, 62, 70)",fontSize:"24px"},children:"|"}),(0,c.jsx)(sV,{}),(0,c.jsx)(sH,{onlyFlag:!0,className:"tw:w-[45px]"})]}):(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-3",children:[(0,c.jsx)("a",{className:"tw:cursor-pointer tw:rounded tw:px-4 tw:py-1.5 tw:font-[Gilroy-Regular,sans-serif] tw:text-base tw:font-medium tw:leading-8 tw:text-[#0AC18E]",id:"header-control-login",onClick:()=>t.push("/player-login"),children:e("login")}),(0,c.jsx)("a",{className:"tw:cursor-pointer tw:rounded tw:bg-[#0AC18E] tw:px-4 tw:py-1.5 tw:font-[Gilroy-Regular,sans-serif] tw:text-base tw:font-bold tw:leading-8 tw:text-white",id:"header-control-signup",onClick:()=>t.push("/signup"),children:e("sign_up")}),(0,c.jsx)("div",{className:"tw:mx-5 tw:inline-block tw:h-6 tw:w-0 tw:border tw:border-[#393e46]",id:"divider-vertical"}),(0,c.jsx)(sH,{})]})]})]}),(0,c.jsx)("button",{type:"button","aria-label":"Open menu",onClick:a,className:"tw:flex tw:shrink-0 tw:cursor-pointer tw:items-center tw:justify-center tw:border-0 tw:bg-transparent tw:p-1 tw:lg:hidden",children:(0,c.jsx)("img",{src:"/assets/images/header/hamburger.svg",alt:"",className:"tw:h-6 t
1w:w-6"})})]}),(0,c.jsx)(k,{})]})}let s7=["videocasinogames","netent-logo","playson","evolution","amatic-logo","bgaming","ezugi","belatra","pragmaticplay","endorphina","wazdan","isoftbet","betsoft","booming-games","habanero"];function re({blurred:e=!1}){let{t}=(0,p.useI18n)(),s=(0,w.useRouter)(),r=(0,j.useDialogStore)(e=>e.openDialog),a="tw:text-sm tw:text-white/80 tw:transition-colors tw:hover:text-primary";return(0,c.jsxs)("footer",{className:e?"tw:pointer-events-none tw:blur-sm":void 0,children:[(0,c.jsx)("div",{className:"tw:bg-gradient-to-b tw:from-[#131720] tw:to-[#0a0c11] tw:px-4 tw:pt-8 tw:pb-4 tw:text-center",children:(0,c.jsx)("div",{onClick:()=>s.replace("/"),className:"tw:pb-4",children:(0,c.jsx)("img",{src:"/assets/images/common/vcg_logo.svg",alt:"Satoshi Games",title:"Satoshi Games",height:"25",className:"tw:mx-auto tw:h-6 tw:cursor-pointer"})})}),(0,c.jsxs)("div",{className:"tw:bg-black tw:px-4 tw:py-8 tw:text-center",children:[(0,c.jsxs)("ul",{className:"tw:flex tw:flex-wrap tw:justify-center tw:gap-x-6 tw:gap-y-2",children:[(0,c.jsx)("li",{children:(0,c.jsx)(C.default,{href:"/faq",className:a,children:t("faq")})}),(0,c.jsx)("li",{children:(0,c.jsx)(C.default,{href:"/vip",className:a,children:t("VIP")})}),(0,c.jsx)("li",{children:(0,c.jsx)(C.default,{href:"/provably_fair",className:a,children:t("provably_fair")})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),r(j.DIALOGS.contactUs)},className:a,children:t("contact_us")})}),(0,c.jsx)("li",{children:(0,c.jsx)("a",{href:I.brand.affiliatesUrl,className:a,children:t("affiliate_program")})}),(0,c.jsx)("li",{children:(0,c.jsx)(C.default,{href:"/tos",className:a,children:t("terms_of_service")})}),(0,c.jsx)("li",{children:(0,c.jsx)(C.default,{href:"/privacy",className:a,children:t("privacy_policy")})})]}),(0,c.jsx)("hr",{className:"tw:my-6 tw:border-white/10"}),(0,c.jsx)("div",{className:"tw:flex tw:flex-wrap tw:items-center tw:justify-center tw:gap-x-8 tw:gap-y-5",children:s7.map(e=>(0,c.jsx)("img",{src:`/assets/images/footer/${e}.svg`,alt:"company logo",className:"tw:h-6 tw:opacity-80"},e))}),(0,c.jsx)("hr",{className:"tw:my-6 tw:border-white/10"}),(0,c.jsx)("div",{className:"tw:flex tw:items-center tw:justify-center tw:gap-4",children:["btc-logo","bch-logo","visa","mastercard"].map(e=>(0,c.jsx)("img",{src:`/assets/images/footer/${e}.svg`,alt:`${e} logo`,className:"tw:h-6"},e))}),(0,c.jsxs)("div",{className:"tw:mt-8 tw:flex tw:items-start tw:justify-center tw:gap-2 tw:text-xs tw:text-white/60",children:[(0,c.jsx)("img",{src:"/assets/images/footer/18+.svg",alt:"ages 18 and up",className:"tw:h-6 tw:shrink-0"}),(0,c.jsx)("span",{children:t("this_website_is_operated")})]})]})]})}function rt(){let{t:e}=(0,p.useI18n)(),t="tw:text-sm tw:text-white/80 tw:transition-colors tw:hover:text-primary";return(0,c.jsxs)("div",{className:"tw:flex tw:flex-wrap tw:items-center tw:justify-center tw:gap-x-6 tw:gap-y-2 tw:bg-black/40 tw:px-4 tw:py-3",children:[(0,c.jsx)(C.default,{href:"/tos",className:t,children:e("terms_of_service")}),(0,c.jsx)(C.default,{href:"/privacy",className:t,children:e("privacy_policy")}),(0,c.jsx)("a",{target:"_blank",href:`mailto:${I.brand.supportEmail}`,className:t,children:I.brand.supportEmail})]})}let rs=(0,A.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);function rr(){let{t:e}=(0,p.useI18n)(),t=(0,j.useDialogStore)(e=>e.openDialog),s=(0,g.useAccountStore)(e=>e.isLoggedIn),r=(0,g.useAccountStore)(e=>e.hasUnconfirmedTx),a=(0,g.useAccountStore)(e=>e.realBalance),n=(0,g.useAccountStore)(e=>e.bonusBalance),o=(0,g.useAccountStore)(e=>e.limitedAccount),l=(0,g.useAccountStore)(e=>e.userAddress),i=(0,g.useAccountStore)(e=>e.getDepositAddress),w=(0,g.useAccountStore)(e=>e.setCanvasOpen),u=(0,sq.useBonusWagerStore)(e=>e.wagered),m=(0,sq.useBonusWagerStore)(e=>e.amountToWage),h=(0,sq.useBonusWagerStore)(e=>e.isAvailable),f=(0,sq.useBonusWagerStore)(e=>e.campaignName),[y,v]=(0,d.useState)(!1),b=async()=>{w(!0),window.scrollTo(0,0),o?t("newRestrictedRegion"):(l.length||await i(),t(j.DIALOGS.newDeposit))},_=m.amount?u.amount/m.amount*100:0;return s?(0,c.jsxs)("footer",{id:"footer-mobile",className:"tw:fixed tw:bottom-0 tw:left-0 tw:z-40 tw:w-full tw:bg-[#131720] tw:text-white tw:lg:hidden",children:[r&&(0,c.jsx)("div",{className:"tw:bg-black/40 tw:px-4 tw:py-1 tw:text-center tw:text-xs tw:text-yellow-400",children:e("one_or_more_deposits")}),y&&(0,c.jsxs)("div",{className:"tw:border-t tw:border-white/10 tw:bg-[#1a1d23] tw:px-4 tw:py-3",children:[(0,c.jsxs)("p",{className:"tw:m-0 tw:text-sm",children:[(0,c.jsxs)("span",{className:"tw:font-semibold",children:[e("bonus"),":"]})," ",n," ",x.env.platformCurrency]}),h&&(0,c.jsxs)("div",{className:"tw:mt-2",children:[(0,c.jsx)("div",{className:"tw:h-2 tw:w-full tw:overflow-hidden tw:rounded-full tw:bg-white/15",children:(0,c.jsx)("div",{className:"tw:h-full tw:rounded-full tw:bg-primary",style:{width:`${_}%`}})}),(0,c.jsxs)("div",{className:"tw:mt-1 tw:flex tw:items-center tw:justify-between tw:text-xs",children:[(0,c.jsx)("span",{className:"tw:truncate",children:f}),(0,c.jsxs)("a",{href:"/promotion#active_promo",className:"tw:flex tw:shrink-0 tw:items-center tw:gap-1 tw:text-primary",children:["Promotions ",(0,c.jsx)(sW.ArrowRight,{className:"tw:size-3"})]})]})]})]}),(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:justify-between tw:px-4 tw:py-2",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>v(e=>!e),className:"tw:flex tw:cursor-pointer tw:items-center tw:gap-1 tw:text-sm",children:[(0,c.jsx)("span",{className:"tw:text-white/70",children:e("balance_colon")}),(0,c.jsxs)("span",{className:r?"tw:text-red-500":"tw:text-white",children:[a.toFixed(5)," ",x.env.platformCurrency]}),y?(0,c.jsx)(E,{className:"tw:size-4"}):(0,c.jsx)(rs,{className:"tw:size-4"})]}),(0,c.jsx)(s3.Button,{size:"sm",onClick:e=>{e.preventDefault(),b()},children:e("deposit")})]})]}):null}var ra=e.i(80799);let rn=()=>ra.default.tz((0,ra.default)(),"cet").format("ddd[,] MMM D [â¢] H[:]mm [(CET)]"),ro=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");function rl(){let e=(0,N.useIsMobile)(),[t,s]=(0,d.useState)(""),[r,a]=(0,d.useState)({BTC:null,BCH:null});return((0,d.useEffect)(()=>{s(rn());let e=async()=>{try{let e=await fetch("/api/markets"),{BTC:t,BCH:s}=await e.json();a({BTC:ro(t.toFixed(2)),BCH:ro(s.toFixed(2))})}catch(e){console.log(e)}};e();let t=window.setInterval(()=>s(rn()),1e3),r=window.setInterval(()=>void e(),6e4);return()=>{window.clearInterval(t),window.clearInterval(r)}},[]),e)?null:(0,c.jsxs)("div",{className:"tw:fixed tw:bottom-0 tw:left-0 tw:z-40 tw:flex tw:h-10 tw:w-full tw:items-center tw:gap-3 tw:bg-black/60 tw:px-4 tw:text-sm tw:text-white tw:backdrop-blur-xl",children:[(0,c.jsx)("span",{className:"tw:text-white/70",children:"Casino Time:"}),(0,c.jsx)("span",{children:t}),r.BTC&&r.BCH&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"tw:mx-1 tw:h-4 tw:w-px tw:bg-white/25"}),(0,c.jsxs)("span",{className:"tw:flex tw:items-center tw:gap-2",children:[(0,c.jsx)("img",{src:"/assets/images/common/btc-logo.svg",alt:"BTC",className:"tw:h-4 tw:w-4"})," â $",r.BTC]}),(0,c.jsxs)("span",{className:"tw:flex tw:items-center tw:gap-2",children:[(0,c.jsx)("img",{src:"/assets/images/common/bch-logo.svg",alt:"BCH",className:"tw:h-4 tw:w-4"})," â $",r.BCH]})]})]})}let ri=(0,A.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),rc=(0,A.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var rd=e.i(9165);let rw=(0,sX.create)((e,t)=>({countryCurrencies:[{country:"AT",currency:"EUR"},{country:"AU",currency:"AUD"},{country:"BE",currency:"EUR"},{country:"BR",currency:"BRL"},{country:"CA",currency:"CAD"},{country:"CH",currency:"CHF"},{country:"CO",currency:"COP"},{country:"CY",currency:"EUR"},{country:"DE",currency:"EUR"},{country:"EE",currency:"EUR"},{country:"ES",currency:"EUR"},{country:"FI",currency:"EUR"},{country:"FR",currency:"EUR"},{country:"GB",currency:"GBP"},{country:"GR",currency:"EUR"},{country:"HK",currency:"HKD"},{country:"IN",currency:"INR"},{country:"ID",currency:"IDR"},{country:"IE",currency:"EUR"},{country:"IL",currency:"ILS"},{country:"IT",currency:"EUR"},{country:"KOR",currency:"KRW"},{country:"LV",currency:"EUR"},{country:"MT",currency:"EUR"},{country:"MX",currency:"MXN"},{country:"MY",currency:"MYR"},{country:"NG",currency:"NGN"},{country:"NL",currency:"EUR"},{country:"NO",currency:"NOK"},{country:"NZ",currency:"NZD"},{country:"PE",currency:"PEN"},{country:"PH",currency:"PHP"},{country:"PL",currency:"PLN"},{country:"PT",currency:"EUR"},{country:"RU",currency:"RUB"},{country:"SE",currency:"SEK"},{country:"SK",currency:"EUR"},{country:"SG",currency:"SGN"},{country:"SL",currency:"EUR"},{country:"TR",currency:"TRY"},{country:"TH",currency:"THB"},{country:"TW",currency:"TWD"},{country:"VN",currency:"VND"},{country:"ZA",currency:"ZAR"}],selectedPaymentMethod:void 0,token:u.default.get("token")||"",countriesList:[],paymentMethod:[],setSelectedPaymentMethod:t=>e({selectedPaymentMethod:t}),setCountriesList:t=>e({countriesList:t}),setPaymentMethod:t=>e({paymentMethod:t}),getPaymentMethods:e=>t().countriesList.filter(t=>t.countryCode===e),getAllCountriesList:async()=>{try{let e=(0,rd.rqBuild)("GET","/api/paymentMethods/countries",{},t().token),s=await rd.default.request(e);
1if(s.data)return t().setCountriesList(s.data.countries),{success:!0};throw Error("could not retrieve countries list")}catch(e){console.log(e),console.log("Could not get countries list")}},getCountryDataWithPaymentMethod:async e=>{try{let s=(0,rd.rqBuild)("GET","/api/paymentMethods",e,t().token),r=await rd.default.request(s);if(r.data)return t().setPaymentMethod(r.data.methods),{success:!0};throw Error("could not retrieve payment method")}catch(e){console.log(e),console.log("Could not get payment method")}}}));var ru=e.i(66787);let rm=` 2 query maintenances($status: String!) { 3 maintenances(filters: { status: { eq: $status } }) { 4 documentId 5 status 6 date_start 7 date_end 8 website_alert_text 9 website_alert_text_pt 10 website_alert_text_ru 11 website_alert_text_es 12 } 13 } 14`;function rx(){let e,{locale:t}=(0,p.useI18n)(),[s,r]=(0,d.useState)({});return((0,d.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await (0,h.gqlQuery)(rm,{status:x.env.walletManagerUrl.includes("btctest.net")?"draft":"published"}),s=m.default.utc().valueOf();t.maintenances.forEach(t=>{let a=(0,m.default)(t.date_start).valueOf();(0,m.default)(t.date_end).valueOf()>s&&a<s&&!e&&r(t)})}catch{}})(),()=>{e=!0}},[]),s.website_alert_text)?(0,c.jsxs)("div",{className:"tw:bg-[#f00] tw:p-2.5 tw:font-medium tw:text-white",children:[(0,c.jsx)(ru.TriangleAlert,{className:"tw:inline tw:size-4 tw:align-[-2px]"})," ",(e=s["website_alert_text_"+t],"en"!==t&&e?e:s.website_alert_text)]}):null}let rp=` 15 query HomePageBanners($casinoCode: String!) { 16 casinos(filters: { name: { eq: $casinoCode } }) { 17 home_page_banners { 18 id: documentId 19 order 20 status 21 link 22 link_ru 23 link_es 24 link_pt 25 excludeFrom 26 openCategory 27 logged_in_only 28 images_mobile { 29 url 30 } 31 images_mobile_ru { 32 url 33 } 34 images_mobile_es { 35 url 36 } 37 images_mobile_pt { 38 url 39 } 40 images { 41 url 42 } 43 images_ru { 44 url 45 } 46 images_pt { 47 url 48 } 49 images_es { 50 url 51 } 52 hide_on_deposite 53 visible_for_ndc 54 visible_for_nrc 55 visible_on_los 56 } 57 } 58 } 59`;function rh(){let e=(0,w.useRouter)(),{t,locale:s}=(0,p.useI18n)(),r=(0,j.useDialogStore)(e=>e.openDialog),a=(0,g.useAccountStore)(e=>e.token),n=(0,g.useAccountStore)(e=>e.isLoggedIn),o=(0,g.useAccountStore)(e=>e.userCountryCode),l=(0,g.useAccountStore)(e=>e.userCountryCodeLoaded),i=(0,y.useDepositStore)(e=>e.content),m=(0,y.useDepositStore)(e=>e.getDeposits);rw(e=>e.countriesList),rw(e=>e.paymentMethod),rw(e=>e.getPaymentMethods);let f=rw(e=>e.setSelectedPaymentMethod);rw(e=>e.getAllCountriesList),rw(e=>e.getCountryDataWithPaymentMethod);let[v,b]=(0,d.useState)([]),[_,S]=(0,d.useState)([]),[k,A]=(0,d.useState)(""),E=(0,N.useIsMobile)(),[I,M]=(0,d.useState)(!1),[D,P]=(0,d.useState)(!1),[R,L]=(0,d.useState)(0),[T,O]=(0,d.useState)(!1);(0,d.useEffect)(()=>O(!0),[]),(0,d.useEffect)(()=>{let e=!1;return(async()=>{try{let t=(await (0,h.gqlQuery)(rp,{casinoCode:u.default.get("casino_code")})).casinos[0].home_page_banners.sort((e,t)=>parseInt(e.order)-parseInt(t.order));t=(t=x.env.walletManagerUrl.includes("btctest.net")?t:t.filter(e=>"published"===e.status)).filter(e=>!e.excludeFrom||!e.excludeFrom.includes(o)),e||b(t)}catch{}})(),()=>{e=!0}},[o]);let B=v.filter(e=>n?i.length>0?e.visible_for_ndc:e.visible_for_nrc:e.visible_on_los);(0,d.useEffect)(()=>{if(B.length<2)return;let e=window.setInterval(()=>{L(e=>(e+1)%B.length)},5e3);return()=>window.clearInterval(e)},[B.length]);let $=(0,d.useCallback)(async()=>{let e=[],t=g.useAccountStore.getState(),s=rw.getState();await s.getAllCountriesList();let r=rw.getState().countriesList;if(!r.length)return;let a=r.map(e=>e.countryCode).indexOf(t.userCountryCode.toUpperCase());a<0&&(a=0);let n=r[a].countryCode;A(n),await s.getCountryDataWithPaymentMethod({filter_country:n});let o=[],l=[];if(rw.getState().getPaymentMethods(n).reduce((t,s)=>{if("true"===s.moonpay||!0===s.moonpay){let e=[];
59rw.getState().paymentMethod.forEach(t=>e.push(t.methodName)),e.map(e=>t=[...t,{aggregator:"moonpay",method:e}]),o=t}return("true"===s.xanpool||!0===s.xanpool)&&"BTC"===x.env.platformCurrency&&e.push(rd.default.get("/api/xanpool/methods")),t},[]),S(o),0!==e.length)try{let s=await Promise.all(e);s[0].data.buy&&(l=s[0].data.buy);let r=[];l.filter(e=>e.country===t.userCountryCode).map(e=>e.methods).forEach(e=>{e.forEach(e=>r.push({method:e.method,aggregator:"xanpool"}))}),S([...o,...r])}catch(e){throw Error(e)}},[]),z=(0,d.useRef)(!1);(0,d.useEffect)(()=>{l&&!z.current&&(z.current=!0,$())},[l,$]),(0,d.useEffect)(()=>{m({startDate:"2017-02-01T10:46:03",endDate:new Date,getAll:!0,platformCurrency:x.env.platformCurrency});let e=window.setTimeout(()=>{M(0===y.useDepositStore.getState().content.length)},1e3);return()=>window.clearTimeout(e)},[]);let F=I&&0===i.length&&"true"!==u.default.get("learn_how_to_deposit_closed"),U="tw:mx-[15px] tw:w-[90px] tw:cursor-pointer max-[824px]:tw:m-[5px_8px] max-[824px]:tw:w-[90px] max-[530px]:tw:m-[5px] max-[530px]:tw:w-[70px]";return(0,c.jsxs)("div",{id:"homeBanners",className:"carousel slide tw:w-full tw:pt-0 tw:z-0 tw:[&_h2]:m-0 tw:[&_h2]:mb-2 tw:[&_h2]:p-0 tw:[&_h2]:text-[2rem] tw:[&_h2]:text-white tw:[&_h2]:font-['Gilroy-Bold'] tw:[&_h4]:p-0 tw:[&_h4]:text-[1.5rem] tw:[&_h4]:text-white tw:[&_h4]:font-['Gilroy-Bold'] tw:[&_p]:mt-0 tw:[&_p]:mb-4 tw:[&_p]:p-0 tw:[&_p]:text-white tw:[&_p]:font-['Gilroy-Bold']",children:[(0,c.jsx)(rx,{}),I&&F&&(0,c.jsxs)("div",{className:"tw:right-0 tw:z-[6000] tw:mt-[2.5px] tw:flex tw:h-10 tw:cursor-pointer tw:items-center tw:justify-center tw:bg-[#D7E5FF] tw:px-[14px] tw:py-2 tw:text-center tw:shadow-[0_1px_1px_rgba(0,0,0,0.12),0_2px_2px_rgba(0,0,0,0.12),0_4px_4px_rgba(0,0,0,0.12),0_8px_8px_rgba(0,0,0,0.12),0_16px_16px_rgba(0,0,0,0.12)] tw:[&>*]:mt-0.5 tw:[&>*]:no-underline tw:[&>a]:flex tw:[&>a]:items-center tw:[&>a]:justify-center",children:[(0,c.jsxs)(C.default,{href:"/howtodeposit",className:"tw:flex-1",children:[(0,c.jsx)("span",{className:"tw:pr-2",children:(0,c.jsx)(sY,{className:"tw:inline tw:size-4",style:{color:"#B9BDC6"}})}),E?(0,c.jsx)("span",{className:"tw:m-0 tw:text-[14px] tw:text-black tw:font-['Gilroy-Medium',sans-serif]",children:t("learn_how_to")}):(0,c.jsx)("span",{className:"tw:m-0 tw:text-[14px] tw:text-black tw:font-['Gilroy-Medium',sans-serif]",dangerouslySetInnerHTML:{__html:t("learn_how_to")}})]}),(0,c.jsx)(sZ.X,{className:"tw:cursor-pointer tw:text-[#B9BDC6]",onClick:()=>{u.default.set("learn_how_to_deposit_closed","true",{expires:1}),M(!1)}})]}),(0,c.jsxs)("div",{className:"tw:relative",children:[(0,c.jsx)("div",{className:"carousel-inner tw:overflow-hidden portrait:tw:h-[72.22vw]",children:(0,c.jsx)("div",{className:"tw:flex tw:transition-transform tw:duration-500 tw:ease-in-out",style:{transform:`translateX(-${100*R}%)`},children:B.map((e,t)=>(0,c.jsx)("div",{className:"carousel-item tw:w-full tw:shrink-0",children:(0,c.jsxs)("a",{className:"tw:cursor-pointer",onClick:()=>((e,t)=>{if(t)return void document.getElementById(`cat_${t}`)?.click();let r=e[`link${"en"===s?"":"_"+s}`];window.location.assign(r||e.link)})(e,e.openCategory),children:[e.images&&(0,c.jsx)("img",{className:"tw:block! tw:w-full portrait:tw:hidden!",src:(e=>{try{let t=e["images"+("en"===s?"":"_"+s)];if(t&&t.length)return`${x.env.strapiApiUrl}${t[0].url}`;return`${x.env.strapiApiUrl}${e.images[0].url}`}catch(t){return console.log(t),`${x.env.strapiApiUrl}${e.images[0].url}`}})(e),alt:"A simple and fun way to win BTC",title:"Online casino promotion",onLoad:()=>0===t?P(!0):null}),e.images_mobile&&(0,c.jsx)("img",{className:"tw:hidden! tw:w-full portrait:tw:block!",src:(e=>{try{let t=e["images_mobile"+("en"===s?"":"_"+s)];if(t)return`${x.env.strapiApiUrl}${t.url}`;return`${x.env.strapiApiUrl}${e.images_mobile.url}`}catch(t){return console.log(t),`${x.env.strapiApiUrl}${e.images_mobile.url}`}})(e),alt:"A simple and fun way to win BTC",title:"Online casino promotion",onLoad:()=>0===t?P(!0):null})]})},e.id))})}),D&&B.length>1&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{type:"button","aria-label":"Previous",onClick:()=>L(e=>(e-1+B.length)%Math.max(B.length,1)),className:"tw:absolute tw:left-2 tw:top-1/2 tw:z-10 tw:flex tw:size-10 tw:-translate-y-1/2 tw:cursor-pointer tw:items-center tw:justify-center tw:rounded-full tw:bg-black/30 tw:text-white tw:transition tw:hover:bg-black/50",children:(0,c.jsx)(ri,{className:"tw:size-6"})}),(0,c.jsx)("button",{type:"button","aria-label":t("next"),onClick:()=>L(e=>(e+1)%Math.max(B.length,1)),className:"tw:absolute tw:right-2 tw:top-1/2 tw:z-10 tw:flex tw:size-10 tw:-translate-y-1/2 tw:cursor-pointer tw:items-center tw:justify-center tw:rounded-full tw:bg-black/30 tw:text-white tw:transition tw:hover:bg-black/50",children:(0,c.jsx)(rc,{className:"tw:size-6"})})]})]}),T&&a&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:bg-cover tw:bg-center tw:py-[35px] max-[824px]:tw:py-5 max-[530px]:tw:py-[10px] tw:bg-[url('/static/images/home_game_banner/BannerExclusiveGames.png')]",children:[(0,c.jsxs)("div",{className:"tw:block max-[530px]:tw:hidden",children:[(0,c.jsx)("h2",{children:t("no_bitcoin")}),(0,c.jsx)("p",{children:t("deposit_now")})]}),(0,c.jsx)("div",{className:"tw:hidden max-[530px]:tw:block",children:(0,c.jsx)("h4",{children:(0,c.jsxs)("strong",{children:[t("no_bitcoin")," ",t("deposit_now")]})})}),(0,c.jsx)("div",{className:"tw:flex tw:flex-wrap tw:items-center tw:justify-around tw:rounded-[40px] tw:bg-white tw:px-5 tw:py-[10px] max-[530px]:tw:px-5 max-[530px]:tw:py-[5px] max-[450px]:tw:mx-[50px]",children:_.map((t,s)=>(0,c.jsxs)("div",{className:"center-vertical",onClick:()=>{n?(window.scrollTo(0,0),f(s),r(j.DIALOGS.newDeposit)):e.push("/signup")},children:["moonpay"===t.aggregator&&"credit_card"===t.method&&(0,c.jsx)("img",{className:U,src:"/static/images/payments/moonpay.svg",alt:"visa logo"}),"moonpay"===t.aggregator&&"apple_pay"===t.method&&(0,c.jsx)("img",{className:U,src:"/static/images/payments/apple_pay.png",alt:"apple pay logo"}),"moonpay"===t.aggregator&&"google_pay"===t.method&&(0,c.jsx)("img",{className:U,src:"/static/images/payments/google_pay.png",alt:"google pay logo"}),"moonpay"===t.aggregator&&"samsung_pay"===t.method&&(0,c.jsx)("img",{className:U,src:"/static/images/payments/samsung_pay_alt.png",alt:"samsung pay logo"}),"moonpay"!==t.aggregator&&(0,c.jsx)("img",{className:U,src:"/static/images/payments/"+k.toLowerCase()+"-"+t.method+".jpg",alt:"payment logo"})]},s))})]})]})}function rf({dataUrl:e,alt:t,postTitle:s}){let[r,a]=(0,d.useState)(!1);return(0,c.jsx)("img",{className:`tw:block tw:w-full tw:rounded-[5px] tw:object-cover tw:transition-opacity tw:duration-300 ${r?"tw:opacity-100":"tw:opacity-0"}`,"data-url":e,alt:t,title:s,src:e,loading:"lazy",onError:e=>{e.target.src="/static/images/no_image.png"},onLoad:()=>a(!0)})}function rg({review:e,margin:t="0 3px"}){let s=Math.max(0,Math.min(5,parseInt(e,10)||0));return(0,c.jsx)("div",{className:"tw:mt-1 tw:flex tw:items-center tw:justify-center",children:Array.from({length:5},(e,r)=>(0,c.jsx)("svg",{width:"20",height:"20",style:{margin:t,overflow:"visible"},children:(0,c.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M19.751 9.813a1.448 1.448 0 0 0-.8-2.47l-4.889-.71a.639.639 0 0 1-.481-.35l-2.188-4.429a1.448 1.448 0 0 0-2.6 0L6.61 6.284a.639.639 0 0 1-.482.35l-4.889.71a1.448 1.448 0 0 0-.8 2.47l3.537 3.448a.64.64 0 0 1 .184.566L3.324 18.7a1.418 1.418 0 0 0 .316 1.17 1.463 1.463 0 0 0 1.785.352l4.372-2.3a.654.654 0 0 1 .6 0l4.372 2.3a1.433 1.433 0 0 0 .674.169 1.452 1.452 0 0 0 1.111-.521 1.417 1.417 0 0 0 .316-1.174l-.835-4.868a.64.64 0 0 1 .184-.566z",transform:"translate(.001 -1.047)",style:{fill:r<s?"#0ccf9e":"#000"}})},r))})}function ry({visible:e,filled:t,onClick:s}){return(0,c.jsx)("div",{className:"tw:cursor-pointer",onClick:s,children:e&&(0,c.jsx)("svg",{width:"22",height:"19",style:{overflow:"visible"},children:(0,c.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M21.06 38.639a5.682 5.682 0 0 0-10.53-2.97 5.682 5.682 0 1 0-8.578 7.252l8.059 8.059a.734.734 0 0 0 1.038 0l8.059-8.059a5.666 5.666 0 0 0 1.952-4.282z",style:{fill:t?"#0ccf9e":"#243138",stroke:"#0ccf9e",strokeWidth:1,transformOrigin:"center",transform:"scale(1.2) translate(0, -32.8px)"}})})})}function rv({gamesList:e,category:t,section:s,filterByAggregator:r,titleSearch:a,onRemoveAggregator:n,onClearSearch:o}){let{t:l}=(0,p.useI18n)(),[i,w]=(0,d.useState)(1),u=(0,g.useAccountStore)(e=>e.isLoggedIn),m=(0,g.useAccountStore)(e=>e.realBalance),x=(0,g.useAccountStore)(e=>e.bonusBalance),h=(0,v.useGameStore)(e=>e.favoriteGames),f=(0,v.useGameStore)(e=>e.favoriteGame),y=(0,v.useGameStore)(e=>e.unfavoriteGame),b=(0,sq.useBonusWagerStore)(e=>e.activeFreeSpinsGamesIds),N=(0,j.useDialogStore)(e=>e.openDialog),S=e.reduce((e,t)=>
59(e.includes(t.providerId)||e.push(t.providerId),e),[]),k=e=>e.favorite||-1!==h.indexOf(e.internalGameId),A=async e=>{k(e)?(e.favorite=!1,await y(e.internalGameId)):(e.favorite=!0,await f(e.internalGameId))},E="tw:block tw:w-4/5 tw:rounded-[10px] tw:bg-primary tw:py-2 tw:text-center tw:text-white tw:hover:underline",I="tw:block tw:px-5 tw:py-2.5 tw:text-white tw:hover:underline";return e.length>0?(0,c.jsxs)("div",{className:"tw:mx-auto tw:max-w-[1320px]",children:[(0,c.jsxs)("h2",{className:"tw:mt-6 tw:mb-2 tw:text-xl tw:font-bold tw:text-white",children:[s,r&&(0,c.jsxs)("span",{children:[" (",e.length,")"]})]}),r&&(0,c.jsx)("div",{className:"tw:mb-4 tw:flex tw:flex-wrap tw:gap-2",children:S.map(e=>(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-1 tw:rounded tw:bg-white/10 tw:px-2 tw:py-1 tw:text-sm",children:[l(e),(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-muted-foreground tw:hover:text-white",onClick:()=>n?.(e),children:(0,c.jsx)(sZ.X,{className:"tw:size-3.5"})})]},e))}),(0,c.jsx)("div",{className:"tw:grid tw:grid-cols-4 tw:gap-[15px]",children:e.slice(0,20*i).map(e=>(0,c.jsxs)("div",{className:"tw:relative tw:mt-[22px]",children:[e.enabled&&(0,c.jsxs)("div",{className:"tw:group tw:relative tw:overflow-hidden tw:rounded-[5px]",children:[(0,c.jsx)(rf,{dataUrl:e.animatedImage||e.desktopImage||"/static/images/no_image.png",alt:"true"===e.isExclusive?`Exclusive ${l(e.gameId)}`:`${e.fullGameName} game`,postTitle:"true"===e.isExclusive?l("bitcoincom_games"):l("online_casino_game")}),(0,c.jsxs)("div",{className:"tw:absolute tw:inset-0 tw:flex tw:flex-col tw:items-center tw:justify-evenly tw:rounded-[5px] tw:border tw:border-primary tw:bg-black/50 tw:text-center tw:opacity-0 tw:transition-opacity tw:duration-200 tw:group-hover:opacity-100",children:[u&&(b.includes(e.gameId)||m>0||x>0&&"false"==e.isExclusive?(0,c.jsx)(C.default,{className:E,href:"true"==e.isExclusive?(0,_.exclusiveGameRoute)(e.gameId):"/3game?game_id="+e.gameId,children:l("play_now")}):(0,c.jsx)("a",{className:`${E} tw:cursor-pointer`,onClick:()=>N(j.DIALOGS.newDeposit),children:l("deposit_to_play")})),(e.hasDemoMode||"true"==e.isExclusive)&&!(u&&"true"==e.isExclusive&&m>0)&&(0,c.jsx)(C.default,{className:u?I:E,href:"true"==e.isExclusive?(0,_.exclusiveGameRoute)(e.gameId):"/3game?game_id="+e.gameId+"&demo=true",children:l("free_play")}),!e.hasDemoMode&&6!==e.cat_id&&"false"==e.isExclusive&&!u&&(0,c.jsx)(C.default,{className:E,href:"/player-login",children:l("login")}),!e.hasDemoMode&&6!==e.cat_id&&"false"==e.isExclusive&&!u&&(0,c.jsx)(C.default,{className:I,href:"/signup",children:l("sign_up")})]}),u&&(0,c.jsx)("div",{className:"tw:absolute tw:left-[4%] tw:top-[3.5%] tw:z-10",children:(0,c.jsx)(ry,{visible:u,filled:k(e),onClick:()=>void A(e)})}),e.badge&&(0,c.jsx)("img",{src:e.badge,width:"45",className:"tw:absolute tw:right-px tw:top-px tw:max-w-[45px] tw:bg-black/90 tw:p-[5px]"})]}),(0,c.jsx)("div",{className:"tw:mt-1.5 tw:text-white",children:["bitcoincom","bitcoin"].includes(e.providerId)?l(e.gameId):e.fullGameName}),(0,c.jsx)(rg,{review:e.review})]},e.gameId))}),e.slice(0,20*i).length<e.length&&(0,c.jsx)("div",{className:"tw:text-center",children:(0,c.jsx)(s3.Button,{size:"lg",className:"tw:mt-20 tw:h-auto tw:px-32 tw:py-5 tw:text-xl",onClick:e=>{e.preventDefault();let t=window.pageYOffset;w(e=>e+1),window.requestAnimationFrame(()=>window.scrollTo(0,t))},children:l("load_more")})})]}):99!==t?(0,c.jsxs)("div",{className:"tw:py-16 tw:text-center",children:[(0,c.jsxs)("h2",{className:"tw:text-xl tw:font-bold tw:text-white",children:[l("no_results_for"),' "',a,'"']}),(0,c.jsx)("p",{className:"tw:mt-2 tw:text-muted-foreground",children:l("try_to_be")}),(0,c.jsx)(s3.Button,{variant:"outline",className:"tw:mt-12 tw:border-primary tw:bg-transparent tw:text-primary tw:hover:bg-primary/10 tw:hover:text-primary",onClick:()=>o?.(),children:l("clear_search")})]}):null}var rb=e.i(76639);function rj({gamesList:e,category:t,section:s,sideScroll:r,filterByAggregator:a,titleSearch:n,onRemoveAggregator:o,onClearSearch:l,onResetAggregatorFilters:i}){let{t:w}=(0,p.useI18n)(),[u,m]=(0,d.useState)(1),x=(0,g.useAccountStore)(e=>e.isLoggedIn),h=(0,g.useAccountStore)(e=>e.realBalance),f=(0,g.useAccountStore)(e=>e.bonusBalance),y=(0,v.useGameStore)(e=>e.favoriteGames),b=(0,v.useGameStore)(e=>e.favoriteGame),N=(0,v.useGameStore)(e=>e.unfavoriteGame),S=(0,sq.useBonusWagerStore)(e=>e.activeFreeSpinsGamesIds),k=(0,j.useDialogStore)(e=>e.openDialog),[A,E]=(0,d.useState)(!1),[I,M]=(0,d.useState)({}),D=e.reduce((e,t)=>
59(e.includes(t.providerId)||e.push(t.providerId),e),[]),P=e=>e.favorite||-1!==y.indexOf(e.internalGameId),R=async e=>{P(e)?(e.favorite=!1,await N(e.internalGameId)):(e.favorite=!0,await b(e.internalGameId))},L=(e,t=!1)=>"true"==e.isExclusive?(0,_.exclusiveGameRoute)(e.gameId):"/3game?game_id="+e.gameId+(t?"&demo=true":""),T="tw:block tw:w-full tw:rounded-[10px] tw:bg-primary tw:py-2.5 tw:text-center tw:text-white",O="tw:block tw:w-full tw:py-2.5 tw:text-center tw:text-white",B=e=>["bitcoincom","bitcoin"].includes(e.providerId)?w(e.gameId):e.fullGameName,$=r?e:e.slice(0,20*u);if(e.length>0)return(0,c.jsxs)("div",{className:"tw:px-2",children:[a&&(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:justify-between tw:py-2",children:[(0,c.jsxs)("h4",{className:"tw:text-lg tw:font-bold tw:text-white",children:[s," (",e.length,")"]}),(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-sm tw:text-primary",onClick:()=>i?.(),children:w("reset_filters")})]}),a&&(0,c.jsx)("div",{className:"tw:mb-2 tw:flex tw:flex-wrap tw:gap-2",children:D.map(e=>(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-1 tw:rounded tw:bg-white/10 tw:px-2 tw:py-1 tw:text-sm",children:[e,(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-muted-foreground",onClick:()=>o?.(e),children:(0,c.jsx)(sZ.X,{className:"tw:size-3.5"})})]},e))}),(0,c.jsx)("div",{className:r?"tw:flex tw:gap-2 tw:overflow-x-auto":"tw:grid tw:grid-cols-2 tw:gap-2",children:$.map(e=>(0,c.jsxs)("div",{className:`tw:relative ${r?"tw:w-2/5 tw:shrink-0":""}`,children:[e.enabled&&(0,c.jsxs)("div",{className:"tw:relative tw:overflow-hidden tw:rounded-[5px]",onClick:()=>{M(e),E(!0)},children:[(0,c.jsx)(rf,{dataUrl:e.animatedImage||e.mobileImage||"/static/images/no_image.png",alt:"true"===e.isExclusive?`Exclusive ${w(e.gameId)}`:`${e.fullGameName} game`,postTitle:"true"===e.isExclusive?w("bitcoincom_games"):w("online_casino_game")}),x&&(0,c.jsx)("div",{className:"tw:absolute tw:top-[3.5%] tw:left-[4%] tw:z-10",children:(0,c.jsx)(ry,{visible:x,filled:P(e),onClick:t=>{t.stopPropagation(),R(e)}})}),e.badge&&(0,c.jsx)("img",{src:e.badge,width:"45",className:"tw:absolute tw:right-px tw:top-px tw:max-w-[45px] tw:bg-black/90 tw:p-[5px]"})]}),(0,c.jsx)("div",{className:"tw:mt-1.5 tw:text-sm tw:text-white",children:B(e)}),(0,c.jsx)(rg,{review:e.review})]},e.gameId))}),$.length<e.length&&(0,c.jsx)("div",{className:"tw:mt-6 tw:text-center",children:(0,c.jsx)(s3.Button,{size:"lg",className:"tw:w-full tw:max-w-[280px]",onClick:()=>m(e=>e+1),children:w("load_more")})}),(0,c.jsx)(rb.Dialog,{open:A,onOpenChange:e=>e?void 0:E(!1),children:(0,c.jsxs)(rb.DialogContent,{className:"tw:max-w-sm",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:B(I)}),(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-3",children:[(0,c.jsx)("img",{src:I.mobileImage||"/static/images/no_image.png",alt:"",className:"tw:w-40 tw:rounded-[5px]"}),(0,c.jsx)("div",{className:"tw:text-white",children:B(I)}),(0,c.jsx)(rg,{review:I.review,margin:"0 1px"}),(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:flex-col tw:gap-2",children:[x&&(S.includes(I.gameId)||h>0||f>0&&"false"==I.isExclusive?(0,c.jsx)(C.default,{className:T,href:L(I),children:w("play_now")}):(0,c.jsx)("a",{className:`${T} tw:cursor-pointer`,onClick:()=>k(j.DIALOGS.newDeposit),children:w("deposit_to_play")})),(I.hasDemoMode||"true"==I.isExclusive)&&!(x&&"true"==I.isExclusive&&h>0)&&(0,c.jsx)(C.default,{className:x?O:T,href:L(I,!0),children:w("free_play")}),!I.hasDemoMode&&6!==I.cat_id&&"false"==I.isExclusive&&!x&&(0,c.jsx)(C.default,{className:T,href:"/player-login",children:w("login")}),!I.hasDemoMode&&6!==I.cat_id&&"false"==I.isExclusive&&!x&&(0,c.jsx)(C.default,{className:O,href:"/signup",children:w("sign_up")})]})]})]})})]});return 99!==t?(0,c.jsxs)("div",{className:"tw:py-16 tw:text-center",children:[(0,c.jsxs)("h2",{className:"tw:text-xl tw:font-bold tw:text-white",children:[w("no_results_for"),' "',n,'"']}),(0,c.jsx)("p",{className:"tw:mt-2 tw:text-muted-foreground",children:w("try_to_be")}),(0,c.jsx)(s3.Button,{variant:"outline",className:"tw:mt-8 tw:border-primary tw:bg-transparent tw:text-primary tw:hover:bg-primary/10 tw:hover:text-primary",onClick:()=>l?.(),children:w("clear_search")})]}):null}function r_(){return(0,c.jsxs)("div",{className:"tw:mt-[22px]",children:[(0,c.jsx)("div",{className:"tw:aspect-square tw:w-full tw:animate-pulse tw:rounded-[5px] tw:bg-white/10"}),(0,c.jsx)("div",{className:"tw:mt-2 tw:h-4 tw:w-3/4 tw:animate-pulse tw:rounded tw:bg-white/10"}),(0,c.jsx)("div",{className:"tw:mt-2 tw:h-3 tw:w-1/2 tw:animate-pulse tw:rounded tw:bg-white/10"})]})}let rN=(0,A.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),rC=(0,A.default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}
59],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);var rS=e.i(57428);function rk({aggregators:e,aggregatorFilterCount:t,onSelectedAggregator:s,onApplyFilters:r,onCloseModal:a,onResetAggregatorFilters:n}){let{t:o}=(0,p.useI18n)(),l=t>0?o("reset_filters"):o("cancel_nma");return(0,c.jsx)("div",{id:"modal-bg",className:"tw:fixed tw:left-0 tw:top-0 tw:z-[1200] tw:h-full tw:w-full tw:bg-[rgba(34,37,42,0.6)] tw:backdrop-blur-[12px]",onClick:e=>{"modal-bg"===e.target.id&&a()},children:(0,c.jsxs)("div",{className:"tw:absolute tw:bottom-0 tw:h-[85%] tw:w-[100.5%] tw:rounded-t-xl tw:bg-black tw:px-4 tw:py-9 tw:text-left",children:[(0,c.jsx)("hr",{className:"tw:absolute tw:left-0 tw:right-0 tw:top-2 tw:mx-auto tw:h-2 tw:w-16 tw:cursor-pointer tw:rounded-lg tw:border-0 tw:bg-[#22252A]"}),(0,c.jsx)("h2",{className:"tw:font-[Gilroy-Bold,sans-serif] tw:text-xl",children:o("filter_by_providers")}),(0,c.jsx)("p",{className:"tw:pb-2.5 tw:font-[Gilroy-Regular,sans-serif] tw:text-sm tw:text-[#B9BDC6]",children:o("select_game_providers")}),(0,c.jsx)("div",{className:"tw:flex tw:h-[400px] tw:flex-col tw:flex-nowrap tw:overflow-auto tw:pb-[120px] tw:pt-2.5",children:Object.entries(e).map(([e,t])=>(0,c.jsxs)("div",{className:"tw:mb-5 tw:flex tw:cursor-pointer tw:select-none tw:items-center tw:gap-3 tw:text-[#B9BDC6]",role:"checkbox","aria-checked":t,tabIndex:0,onClick:()=>s(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),s(e))},children:[(0,c.jsx)(rS.Checkbox,{checked:t,tabIndex:-1,"aria-hidden":!0,className:"tw:pointer-events-none"}),(0,c.jsx)("span",{className:"tw:text-sm",children:o(e)})]},e))}),(0,c.jsxs)("div",{className:"tw:absolute tw:bottom-0 tw:left-0 tw:flex tw:w-full tw:flex-col tw:bg-black tw:px-4 tw:py-9",children:[(0,c.jsx)(s3.Button,{variant:"ghost",className:"tw:text-primary tw:hover:text-primary tw:hover:bg-transparent",onClick:()=>t>0?n():a(),children:l}),(0,c.jsxs)(s3.Button,{onClick:()=>{r(),a()},children:[o("apply_filters"),t>0&&(0,c.jsxs)("span",{children:[" (",t,")"]})]})]})]})})}let rA=` 60 query HomePageMenu($casinoCode: String!) { 61 casinos(filters: { name: { eq: $casinoCode } }) { 62 main_menu_categories { 63 title 64 title_pt 65 title_ru 66 title_es 67 category_id 68 order 69 excludeFrom 70 } 71 } 72 } 73`;function rE(e,t){let s=e["title_"+t];return"en"!==t&&s?s:e.title}function rI(){let{t:e,locale:t}=(0,p.useI18n)(),s=(0,g.useAccountStore)(e=>e.isLoggedIn),r=(0,v.useGameStore)(e=>e.getPublicGamesList),a=(0,v.useGameStore)(e=>e.getFavorites),n=(0,N.useIsMobile)(),[o,l]=(0,d.useState)(!1),[i,w]=(0,d.useState)(!1),[m,f]=(0,d.useState)(!0),[y,b]=(0,d.useState)([]),[j,_]=(0,d.useState)(""),[C,S]=(0,d.useState)([]),[k,A]=(0,d.useState)([]),[I,M]=(0,d.useState)([]),[D,P]=(0,d.useState)([]),[R,L]=(0,d.useState)(null),[T,O]=(0,d.useState)(!1),[B,$]=(0,d.useState)({}),[z,F]=(0,d.useState)(!1),[U,G]=(0,d.useState)(!1),[H,W]=(0,d.useState)(!1),Y=(0,d.useRef)([]),q=(0,d.useRef)(null),K=(0,d.useRef)(!1),V=(0,d.useRef)({DESKTOP:!1,MOBILE:!1,DESKTOP_AND_MOBILE:!0}),X=e=>[...e].sort((e,t)=>e.priority>t.priority?1:-1),Q=(0,d.useCallback)(()=>{let e=[];for(let[t,s]of Object.entries(V.current))s&&(e=[...e,t]);Y.current=v.useGameStore.getState().games.filter(t=>e.includes(t.type)&&!0==t.enabled)},[]),Z=(0,d.useCallback)(e=>{let t=v.useGameStore.getState().favoriteGames;$(Y.current.reduce((s,r)=>{if(void 0===s[r.providerId]&&!r.providerId.startsWith("uat_")&&!r.providerId.startsWith("ui_")){if(e)switch(e.id.toString()){case"1":break;case"99":if(!t.includes(r.internalGameId))return s;break;default:if(!r.category.includes(e.id.toString()))return s}s[r.providerId]=!1}return s},{}))},[]),J=(0,d.useCallback)(async(e,t=!1)=>{55==e.id&&w(!0);let s=v.useGameStore.getState().favoriteGames,n=t=>(t.favorite=-1!=s.indexOf(t.internalGameId),7===e.id&&(t.badge="/images/common/badge_dropsandwins.png"),t);L(e),f(!0),await r(),Q();let o=Y.current;0===o.length&&g.useAccountStore.getState().userId&&await a(),Z(e);let l=[],i=[],c=[];if(55==e.id?(l=o.filter(e=>!0==e.enabled&&"true"==e.promo).map(n),i=[]):1===e.id?(c=o.filter(e=>!0==e.enabled&&"true"==e.promo).map(n),l=o.filter(e=>!0==e.enabled&&"false"==e.featured).map(n),i=o.filter(e=>!0==e.enabled&&"true"==e.featured).map(n)):99!=e.id?(c=o.filter(e=>!0==e.enabled&&"true"==e.promo).map(n),l=o.filter(t=>-1!=t.category.indexOf(e.id.toString())&&!0==t.enabled&&"false"==t.featured).map(n),i=o.filter(t=>-1!=t.category.indexOf(e.id.toString())&&!0==t.enabled&&"true"==t.featured).map(n)):(l=o.filter(e=>!0==e.enabled&&"false"==e.featured).map(n).filter(e=>!0==e.favorite),i=o.filter(e=>!0==e.enabled&&"true"==e.featured).map(n).filter(e=>!0==e.favorite)),56==e.id&&(l=o.filter(e=>!0==e.enabled&&"true"==e.tournament).map(n),i=[]),1==e.id&&(l=o.filter(t=>-1!=t.category.indexOf(e.id.toString())&&!0==t.enabled)),A(X(c)),S(X(l)),M(X(i)),f(!1),t)try{let t=document.getElementById("category-menu"),s=document.getElementById("game-category-bar"),r=document.getElementById("game-category-tabs"),a=document.getElementById(`cat_${e.
73id}`),n=1e3>=Math.max(document.documentElement.clientWidth,window.innerWidth||0)?t.offsetTop-s.clientHeight:t.offsetTop+60;window.scrollTo({top:n,left:0,behavior:"smooth"}),window.requestAnimationFrame(()=>{if(new URLSearchParams(window.location.search).get("cat_id")){let e=a.offsetLeft+a.clientWidth+2*y.length>=r.scrollWidth?r.scrollWidth+a.clientWidth:a.offsetLeft-a.clientWidth/2;r.scrollTo({top:0,left:e,behavior:"smooth"})}})}catch(t){let e=document.getElementById("category-menu");e&&window.scrollTo(0,e.offsetTop)}},[r,a,Q]),ee=(0,d.useCallback)(()=>{$(e=>{let t={};for(let s of Object.keys(e))t[s]=!1;return t}),P([])},[]);(0,d.useEffect)(()=>{Z(R),ee()},[R,Z,ee]);let et=e=>{$(t=>({...t,[e]:!t[e]}))},es=()=>{O(!1);let e=R;e||L(e=y.find(e=>1===e.id)||null);let t=[];for(let[e,s]of Object.entries(B))s&&(t=[...t,e]);let s=v.useGameStore.getState().favoriteGames;P(Y.current.filter(r=>!!t.includes(r.providerId)&&!0==r.enabled&&(e&&"99"===e.id.toString()?s.includes(r.internalGameId):!!e&&r.category.includes(e.id.toString()))))},er=e=>{P(t=>t.filter(t=>t.providerId!==e)),$(t=>({...t,[e]:!1}))},ea=e=>e.toLowerCase().replaceAll(" ",""),en=e=>e.filter(e=>(!!g.useAccountStore.getState().isLoggedIn||!!e.hasDemoMode||R?.id===6||"false"!=e.isExclusive)&&ea(e.fullGameName).includes(ea(j))),eo=()=>{_(""),ee()},el=(0,d.useCallback)((e=!1)=>{e&&(K.current=!1,l(!1));let t=document.getElementById("category-menu");if(null===t)return;K.current||(q.current=window.pageYOffset+t.getBoundingClientRect().top);let s=window.scrollY>=(q.current||0);K.current=s,l(s)},[]);(0,d.useEffect)(()=>{let e=/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent);F(window.innerWidth<1200);let t=()=>F(window.innerWidth<1440);window.addEventListener("resize",t),e?(V.current.MOBILE=!0,V.current.DESKTOP=!1):(V.current.MOBILE=!1,V.current.DESKTOP=!0);let s=()=>el(!1),r=()=>el(!0);return window.addEventListener("scroll",s,!1),window.addEventListener("resize",r,!1),(async()=>{try{let t=(await (0,h.gqlQuery)(rA,{casinoCode:u.default.get("casino_code")})).casinos[0].main_menu_categories.sort((e,t)=>parseInt(e.order)-parseInt(t.order)),s=g.useAccountStore.getState().userCountryCode;(t=t.filter(e=>!e.excludeFrom||!e.excludeFrom.includes(s))).forEach(e=>{e.id=e.category_id});let r=new URLSearchParams(window.location.search),a=0;null!==r.get("windrops")&&"BTC"==x.env.platformCurrency?a=5:null!==r.get("jackpot")&&(a=4);let n=g.useAccountStore.getState().isLoggedIn;n&&!e?await J(t[a]):await J(t[2]);let o=Y.current;t.forEach(e=>{e.id=e.category_id,e.visible=!0,99!==e.id&&(e.visible=o.filter(t=>-1!=t.category.indexOf(e.id.toString())&&!0==t.enabled&&"false"==t.featured).length),99===e.id&&(e.visible=n),56===e.id&&(e.visible=o.filter(e=>!0==e.enabled&&"true"==e.tournament).length),55===e.id&&(e.visible=o.filter(e=>!0==e.enabled&&"true"==e.promo).length),9===e.id&&(e.visible=o.filter(e=>!0==e.enabled).length)});let l=t.filter(e=>e.visible);b(l),G(!1);let i=r.get("cat_id");if(i){let e=l.find(e=>e.id.toString()===i);e&&J(e,!0)}}catch(e){console.log(e)}})(),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",s,!1),window.removeEventListener("resize",r,!1)}},[]);let ei=R?56===R.id?"Tournament":55!=R.id?rE(R,t):e("2_million_daily_drops"):"",ec=Object.keys(B).filter(e=>B[e]),ed=Object.values(B).filter(Boolean).length,ew=y.filter(e=>!!s||99!==e.id);return(0,c.jsxs)("div",{id:"gamearea_wide",className:"tw:font-[Gilroy-Regular,sans-serif] tw:text-white",children:[(0,c.jsx)("div",{id:"category-menu",className:o?"tw:min-h-[58px] tw:lg:min-h-[84px]":void 0,children:(0,c.jsx)("div",{id:"game-category-bar",className:`tw:flex tw:h-[58px] tw:w-full tw:items-center tw:bg-[#111521] tw:lg:h-[84px] ${o?"tw:fixed tw:top-0 tw:right-0 tw:left-0 tw:z-40":"tw:relative"}`,children:(0,c.jsxs)("div",{className:"tw:mx-auto tw:flex tw:w-full tw:max-w-[1320px] tw:items-center tw:gap-4 tw:px-4",children:[!U&&(0,c.jsx)("div",{id:"game-category-tabs",className:"tw:flex tw:flex-1 tw:items-center tw:gap-6 tw:overflow-x-auto",children:ew.map(e=>(0,c.jsx)("div",{"data-category-id":e.id,id:"cat_"+e.id,className:`tw:flex tw:cursor-pointer tw:items-center tw:whitespace-nowrap tw:text-sm tw:transition-colors tw:hover:text-primary ${R?.id===e.id?"tw:text-primary":"tw:text-white"}${55===e.id&&R?.id!==55&&!1===i?" animate__animated animate__pulse animate__delay-2s animate__infinite":""}`,onClick:()=>void J(e,!0),children:rE(e,t)},e.id))}),U&&!m&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-1 tw:items-center tw:gap-2",children:[(0,c.jsx)("input",{type:"text",value:j,onChange:e=>_(e.target.value),className:"tw:h-10 tw:w-full tw:rounded tw:border tw:border-[#818898] tw:bg-[#243138] tw:px-3 tw:text-white tw:outline-none tw:focus:border-primary",placeholder:e("search_game")+"..."}),(0,c.jsx)("button",{type:"button",className:"tw:shrink-0 tw:cursor-pointer tw:text-white",onClick:()=>j?eo():G(!1),children:(0,c.jsx)(sZ.X,{className:"tw:size-5"})})]}),!z&&!m&&(0,c.jsxs)("div",{className:"tw:ml-auto tw:flex tw:items-center tw:gap-3",children:[(0,c.jsxs)("div",{className:"tw:relative",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>O(e=>!e),className:"tw:inline-flex tw:h-10 tw:cursor-pointer tw:items-center tw:gap-2 tw:rounded-md tw:border tw:border-border tw:bg-card tw:px-4 tw:text-sm tw:font-medium tw:text-foreground tw:transition-colors tw:hover:bg-accent",children:[e("by_providers"),ed>0&&(0,c.jsx)("span",{className:"tw:flex tw:h-5 tw:min-w-5 tw:items-center tw:justify-center tw:rounded-full tw:bg-primary tw:px-1.5 tw:text-xs tw:font-semibold tw:text-primary-foreground",children:ed}),(0,c.jsx)(E,{className:`tw:size-4 tw:transition-transform ${T?"tw:rotate-180":""}`})]}),T&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"tw:fixed tw:inset-0 tw:z-40",onClick:()=>O(!1)}),(0,c.jsxs)("div",{className:"tw:absolute tw:right-0 tw:top-[calc(100%+0.5rem)] tw:z-50 tw:w-[min(34rem,90vw)] tw:rounded-xl tw:border tw:border-border tw:bg-popover tw:p-4 tw:text-popover-foreground tw:shadow-xl",children:[(0,c.jsx)("div",{className:"tw:grid tw:max-h-[min(40vh,22rem)] tw:grid-cols-2 tw:gap-x-4 tw:gap-y-0.5 tw:overflow-y-auto",children:Object.entries(B).map(([t,s])=>(0,c.jsxs)("label",{className:"tw:flex tw:cursor-pointer tw:items-center tw:gap-3 tw:rounded-md tw:px-2 tw:py-2 tw:text-sm tw:transition-colors tw:hover:bg-accent",children:[(0,c.jsx)(rS.Checkbox,{checked:s,onCheckedChange:()=>et(t)}),(0,c.jsx)("span",{className:"tw:truncate",children:e(t)})]},t))}),(0,c.jsxs)("div",{className:"tw:mt-3 tw:flex tw:items-center tw:justify-end tw:gap-2 tw:border-t tw:border-border tw:pt-3",children:[(0,c.jsx)(s3.Button,{variant:"ghost",disabled:!(ed||D.length>0),className:"tw:text-primary tw:hover:text-primary tw:disabled:text-muted-foreground",onClick:()=>ee(),children:e("reset_filters")}),(0,c.jsxs)(s3.Button,{disabled:!(ed||D.length>0),onClick:()=>{(ed||D.length>0)&&es()},children:[e("apply_filters"),ed>0&&(0,c.jsxs)("span",{children:["Â (",ed,")"]})]})]})]})]})]}),(0,c.jsxs)("div",{className:"tw:relative",children:[(0,c.jsx)(rN,{className:"tw:pointer-events-none tw:absolute tw:left-3 tw:top-1/2 tw:size-4 tw:-translate-y-1/2 tw:text-[#818898]"}),(0,c.jsx)("input",{type:"text",value:j,onChange:e=>_(e.target.value),className:"tw:h-10 tw:w-[190px] tw:rounded tw:border tw:border-[#818898] tw:bg-[#243138] tw:pr-8 tw:pl-9 tw:text-white tw:outline-none tw:focus:border-primary",placeholder:e("search_game")+"..."}),j&&(0,c.jsx)("button",{type:"button",onClick:()=>_(""),className:"tw:absolute tw:top-1/2 tw:right-2 tw:-translate-y-1/2 tw:cursor-pointer tw:text-white",children:(0,c.jsx)(sZ.X,{className:"tw:size-4"})})]})]}),z&&!m&&(0,c.jsxs)("div",{className:"tw:ml-auto tw:flex tw:items-center tw:gap-4",children:[!U&&(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-white",onClick:()=>G(e=>!e),children:(0,c.jsx)(rN,{className:"tw:size-5"})}),(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-white",onClick:()=>W(e=>!e),children:(0,c.jsx)(rC,{className:"tw:size-5"})})]})]})})}),m&&!n&&(0,c.jsx)("div",{children:[1,2,3,4].map(e=>(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"tw:grid tw:grid-cols-2 tw:gap-[15px] tw:lg:grid-cols-4",children:[1,2,3,4].map(e=>(0,c.jsx)(r_,{},e))})},e))}),m&&n&&(0,c.jsx)("div",{children:[1,2,3,4,5].map(e=>(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"tw:grid tw:grid-cols-2 tw:gap-[15px] tw:lg:grid-cols-4",children:[1,2].map(e=>(0,c.jsx)(r_,{},e))})},e))}),(0,c.jsxs)("div",{className:"tw:w-full tw:lg:px-[60px]",children:[!m&&(0,c.jsx)("div",{className:"tw:hidden tw:lg:block",children:D.length>0?(0,c.jsx)(rv,{gamesList:en(D),section:e("filtered_results"),filterByAggregator:!0,titleSearch:j,onRemoveAggregator:er,onClearSearch:eo}):0===D.length&&(en(C).length>0||en(I).length>0)?(0,c.jsxs)("div",{children:[![55,7,99].includes(R?.id)&&en(I).length>0&&(0,c.jsx)(rv,{gamesList:en(I),section:ei+" - "+e("featured")}),R?.id===1&&en(k).length>0&&(0,c.jsx)(rv,{gamesList:en(k),section:e("2_million_daily_drops")}),R?.id===99&&en(I).length>0&&(0,c.jsx)(rv,{gamesList:en(I),section:ei+" - "+e("featured")}),(0,c.jsx)(rv,{gamesList:en(C),section:ei+([0,1,6,55,56].includes(R?.id)?"":" - "+e("all")),category:R?.id})]}):R?.id===99&&0===en(I).length&&0===en(C).length||R?.id===7&&0===en(I).length&&0===en(C).length?(0,c.jsx)("p",{className:"tw:text-center tw:font-bold",children:e("no_games_found_in")}):(0,c.jsx)("div",{id:"no-games-screen",className:"tw:relative tw:mt-8 tw:[&_p]:mt-[18px]",children:s||R?.id!==6?(0,c.jsxs)("div",{children:[(0,c.jsxs)("h2",{className:"tw:my-[30px] tw:w-full tw:text-left tw:font-bold",children:[e("no_results_for"),' "',j,'"']}),(0,c.jsx)("p",{children:e("try_to_be")}),(0,c.jsx)(s3.Button,{variant:"outline",className:"tw:mt-12 tw:border-primary tw:bg-transparent tw:text-primary tw:hover:bg-primary/10 tw:hover:text-primary",onClick:eo,children:e("clear_search")})]}):(0,c.jsx)("p",{style:{paddingTop:"50px"},dangerouslySetInnerHTML:{__html:e("please_login_to")}})})}),!m&&(0,c.jsx)("div",{className:"tw:block tw:overflow-hidden tw:lg:hidden",children:(0,c.jsx)("div",{className:"tw:mx-2.5 tw:my-[15px]",children:D.length>0?(0,c.jsx)(rj,{gamesList:en(D),section:e("filtered_results"),filterByAggregator:!0,titleSearch:j,onClearSearch:eo,onRemoveAggregator:er,onResetAggregatorFilters:ee}):0===D.length&&(en(C).length>0||en(I).length>0)?(0,c.jsxs)("div",{children:[![6,55,7,99].includes(R?.id)&&en(I).length>0&&(0,c.jsx)(rj,{gamesList:en(I),section:ei+" - "+e("featured")}),R?.id==1&&en(k).length>0&&(0,c.jsx)(rj,{gamesList:en(k),section:e("2_million_daily_drops")}),R?.id===99&&en(I).length>0&&(0,c.jsx)(rj,{gamesList:en(I),section:ei+" - "+e("featured")}),(0,c.jsx)(rj,{gamesList:en(C),section:ei+([0,1,6,55,56].includes(R?.id)?"":" - "+e("all")),category:R?.id})]}):R?.id===99&&0===en(I).length&&0===en(C).length||R?.id===7&&0===en(I).length&&0===en(C).length?(0,c.jsx)("p",{className:"tw:text-center tw:font-bold",children:e("no_games_found_in")}):(0,c.jsxs)("div",{className:"tw:py-16 tw:text-center",children:[(0,c.jsxs)("h2",{className:"tw:text-xl tw:font-bold tw:text-white",children:[e("no_results_for"),' "',j,'"']}),(0,c.jsx)("div",{className:"tw:mt-4 tw:flex tw:flex-wrap tw:justify-center tw:gap-2",children:ec.map(e=>(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-1 tw:rounded tw:bg-white/10 tw:px-2 tw:py-1 tw:text-sm",children:[e,(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-muted-foreground tw:hover:text-white",onClick:()=>er(e),children:(0,c.jsx)(sZ.X,{className:"tw:size-3.5"})})]},e))}),(0,c.jsx)("p",{className:"tw:mt-2 tw:text-muted-foreground",children:e("try_to_be")})]})})})]}),H&&(0,c.jsx)(rk,{aggregators:B,aggregatorFilterCount:ed,onCloseModal:()=>W(!1),onSelectedAggregator:et,onApplyFilters:es,onResetAggregatorFilters:ee})]})}function rM(){let e=(0,f.useToastStore)(e=>e.toasts),t=(0,f.useToastStore)(e=>e.dismissToast);return 0===e.length?null:(0,c.jsx)("div",{className:"tw:pointer-events-none tw:fixed tw:right-4 tw:top-16 tw:z-[10000] tw:flex tw:flex-col tw:items-end",role:"status","aria-live":"polite",children:e.map(e=>(0,c.jsx)("div",{className:`tw:pointer-events-auto tw:mb-2 tw:max-w-[360px] tw:min-w-[220px] tw:cursor-pointer tw:rounded tw:px-4 tw:py-3 tw:font-[Gilroy-Medium,sans-serif] tw:text-sm tw:sha
73dow-[0_2px_8px_rgba(0,0,0,0.35)] ${(e=>{switch(e){case"error":return"tw:bg-[#dc3545] tw:text-white";case"warning":return"tw:bg-[#ffc107] tw:text-[#212529]";case"success":return"tw:bg-[#0CCF9E] tw:font-bold tw:text-white";default:return"tw:bg-[#343a40] tw:text-white"}})(e.type)}`,onClick:()=>t(e.id),children:e.message},e.id))})}var rD=e.i(11241);let rP=(0,A.default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),rR=(0,A.default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),rL=(0,A.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);function rT({modalName:e,censoredEmail:t,onCloseModal:s,onResendEmailUpdate:r}){let{t:a}=(0,p.useI18n)(),n=(0,g.useAccountStore)(e=>e.logoutUser),[o,l]=(0,d.useState)(!1),i=async()=>{let e=u.default.get("token");await n(e),window.location.reload()};return(0,c.jsx)("div",{id:"modal-bg",className:"tw:fixed tw:top-0 tw:left-0 tw:z-[1100] tw:h-screen tw:w-full tw:backdrop-blur-[8px] tw:bg-[rgba(34,37,42,0.6)]",children:(0,c.jsxs)("div",{id:"modal",className:"tw:relative tw:mx-auto tw:mt-[150px] tw:w-[308px] tw:rounded tw:bg-[#22252a]",children:[(0,c.jsx)("div",{className:"tw:absolute tw:right-3 tw:top-3 tw:cursor-pointer tw:text-[#b9bdc6]",onClick:s,children:(0,c.jsx)(sZ.X,{className:"tw:size-4"})}),(0,c.jsx)("div",{className:"tw:flex tw:flex-col tw:justify-evenly tw:p-[25px]",children:"Logout?"==e?(0,c.jsx)("div",{children:(0,c.jsxs)("form",{onSubmit:e=>e.preventDefault(),children:[(0,c.jsx)("h5",{className:"tw:m-0 tw:text-white",children:(0,c.jsx)("strong",{children:a("logout")})}),(0,c.jsxs)("div",{className:"tw:flex tw:my-4",children:[(0,c.jsx)("input",{type:"checkbox",id:"check",checked:o,onChange:e=>l(e.target.checked),className:"tw:mr-2 tw:size-6 tw:cursor-pointer tw:rounded tw:border tw:border-[#818898] tw:bg-[#393e46]"}),(0,c.jsx)("label",{htmlFor:"check",children:a("log_me_out_on_nma")})]}),(0,c.jsx)("button",{type:"submit",disabled:!o,className:`tw:rounded tw:px-[23px] tw:py-2 tw:font-bold ${o?"tw:bg-[rgb(255,0,0)] tw:text-white":"tw:bg-[rgba(255,0,0,0.3)] tw:text-[rgb(175,175,175)]"}`,onClick:i,children:a("yes_nma")}),(0,c.jsx)("button",{className:"tw:bg-transparent tw:px-[23px] tw:py-2 tw:font-bold tw:text-[#0ac18e]",onClick:s,children:"Cancel"})]})}):(0,c.jsxs)("div",{children:[(0,c.jsx)("h5",{className:"tw:m-0 tw:text-white",children:(0,c.jsx)("strong",{children:e})}),(0,c.jsxs)("p",{className:"tw:my-4 tw:text-[#b9bdc6]",children:[a("verification_link_sent_to_nma")," ",t]}),(0,c.jsxs)("div",{className:"tw:flex",children:[(0,c.jsx)("button",{className:"tw:rounded tw:bg-[#0ac18e] tw:px-[23px] tw:py-2 tw:font-bold tw:text-white",onClick:s,children:"Ok"}),(0,c.jsx)("button",{className:"tw:bg-transparent tw:px-[23px] tw:py-2 tw:font-bold tw:text-[#0ac18e]",onClick:r,children:a("resend_nma")})]})]})})]})})}var rO=e.i(8734);let rB=(0,A.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);function r$({copyText:e,mobile:t,characterAmount:s,shortwidth:r,longwidth:a,floatRight:n,padding:o,showThreeDots:l,height:i}){let{t:w,locale:u}=(0,p.useI18n)(),[m,x]=(0,d.useState)(!1),[h,f]=(0,d.useState)(!1),[g,y]=(0,d.useState)(0),v=(0,d.useRef)(null),b=void 0!==s?Number(s):void 0;(0,d.useEffect)(()=>{let e=setTimeout(()=>{v.current&&y(Math.floor(v.current.clientWidth/10))},500);return()=>clearTimeout(e)},[]);let j=r||"100%",_=o||"7px",N=e=>{try{x(!0),e&&"u">typeof navigator&&navigator.clipboard&&navigator.clipboard.writeText(e),setTimeout(()=>x(!1),1e3)}catch(e){console.log("Oops, unable to copy")}};return(0,c.jsxs)("div",{ref:v,className:`${n?"tw:float-right":""}${t?" tw:w-full":""}`,children:[!t&&(0,c.jsxs)("div",{style:{width:h?a||"100%":j,padding:_},className:"tw:flex tw:justify-between tw:whitespace-nowrap tw:rounded tw:bg-[rgba(43,50,57,0.5)] tw:transition-all tw:duration-300 tw:ease-out",onMouseOver:()=>f(!0),onMouseLeave:()=>{m?setTimeout(()=>f(!1),1e3):f(!1)},children:[!m&&(0,c.jsxs)("p",{className:"tw:m-0 tw:p-0 tw:shrink",children:[e&&e.substring(0,b||15)+"...",b&&e&&b>=e.length?"":"..."]}),h&&!m&&(0,c.jsx)(rO.Copy,{onClick:t=>{t.stopPropagation(),t.preventDefault(),N(e)},className:"tw:relative tw:shrink tw:cursor-pointer tw:text-right tw:text-[#0ac18e] tw:size-[17px]"}),m&&(0,c.jsx)("p",{className:"tw:m-0 tw:p-0 tw:shrink",children:w("copied_to_clipboard")}),m&&(0,c.jsx)(rB,{className:"tw:relative tw:top-0.5 tw:shrink tw:cursor-pointer tw:text-right tw:text-[#0ac18e] tw:size-[17px]"})]}),t&&(0,c.jsxs)("div",{style:{width:j,height:i||"auto",padding:_},onClick:t=>{t.stopPropagation(),t.preventDefault(),N(e)},className:"tw:flex tw:cursor-pointer tw:items-center tw:justify-between tw:overflow-hidden tw:rounded tw:bg-[#505662] tw:transition-all tw:duration-300 tw:ease-out",children:[!m&&(0,c.jsx)("span",{className:"tw:ml-2",children:e&&e.substring(0,b||g)+(e.length>=g&&l?"...":"")}),m&&(0,c.jsx)("span",{className:"tw:relative tw:-top-0.5",children:(0,c.jsx)("span",{className:`tw:ml-2 tw:leading-3 lang-${u}`,children:w("copied_to_clipboard")})}),m&&(0,c.jsx)(rB,{className:"tw:mr-2 tw:cursor-pointer tw:text-right tw:text-[#0ac18e] tw:py-[10px] tw:box-content"}),!m&&(0,c.jsx)(rO.Copy,{className:"tw:mr-2 tw:cursor-pointer tw:text-right tw:text-[#0ac18e] tw:py-[10px] tw:box-content"})]})]})}var rz=e.i(93479),rF=e.i(10204);function rU(){let{t:e}=(0,p.useI18n)(),t=(0,g.useAccountStore)(e=>e.updateUserProfile),s=(0,g.useAccountStore)(e=>e.username),r=(0,g.useAccountStore)(e=>e.email),a=(0,g.useAccountStore)(e=>e.updateEmail),n=(0,g.useAccountStore)(e=>e.confirmEmail),o=(0,g.useAccountStore)(e=>e.emailVerified),l=(0,g.useAccountStore)(e=>e.hasMagicToken),i=(0,g.useAccountStore)(e=>e.wantsToLogout),w=(0,g.useAccountStore)(e=>e.isLegacyUser),u=(0,g.useAccountStore)(e=>e.magicToken),m=(0,g.useAccountStore)(e=>e.setWantsToLogout),[h,f]=(0,d.useState)(0),[y,v]=(0,d.useState)(""),[b,j]=(0,d.useState)(!1),[_,C]=(0,d.useState)(""),[S,k]=(0,d.useState)(""),[A,E]=(0,d.useState)(!1),[I,M]=(0,d.useState)(""),[D,P]=(0,d.useState)(""),[R,L]=(0,d.useState)(!1),[T,O]=(0,d.useState)(""),[B,$]=(0,d.useState)(""),[z,F]=(0,d.useState)(!1),[U,G]=(0,d.useState)(!1),[H,W]=(0,d.useState)(""),Y=(0,N.useIsMobile)(),q=(0,d.useRef)(null),K=(0,d.useRef)(null),V=!!r&&!r.endsWith("@hrzn.io"),X=V&&!o;(0,d.useEffect)(()=>{V&&!o&&(O(e("pending_verification_nma")),$("#FFCC4A"))},[]);let Q=e=>{f(e),C(""),E(!1)};(0,d.useEffect)(()=>
73{i&&(Q(0),m(!1))},[i]);let Z=e=>{j(e),C(""),setTimeout(()=>q.current?.focus(),0),e||(E(!1),v(""))},J=async()=>{if(/^[a-zA-Z0-9_]*$/.test(y)?y.length<3||y.length>10?(E(!0),k("#FF0000"),C("Username must be between 3-10 characters"),!0):(E(!1),!1):(E(!0),k("#FF0000"),C("Only alphanumeric characters and underscores allowed"),!0))return;let e=await t({login:y});e?.success?(k("#0AC18E"),C(`${y} is your new username`),j(!1)):(E(!0),k("#FF0000"),C(e&&"error.validation.login.exist"==e.error?"The username already exists. Please try another name":"Error changing your username, please try later or contact administrator"))},ee=e=>{L(e),setTimeout(()=>K.current?.focus(),0),e||(M(""),F(!1))},et=e=>{let t=e.match(/^(.).+(.@.+)$/);t&&P(`${t[1]}***${t[2]}`)},es=async()=>{if(!/.+@.+\..+/.test(I)){F(!0),$("#FF0000"),O(e("invalid_email_address"));return}try{let t=await a(I);if(t.success){G(!0),F(!1),$("#FFCC4A"),W(e("verify_email")),et(I),O(e("pending_verification_nma")),L(!1);try{await n(I)}catch(e){console.log(e)}}else t.error?.response?.data?.error=="error.validation.email.exist"&&(F(!0),$("#FF0000"),O(e("this_email_address_already")))}catch(e){F(!0),$("#FF0000"),O(String(e))}},er=async()=>{try{(await n(r)).success&&($("#FFCC4A"),et(r),W(e("verify_email")),G(!0))}catch(t){F(!0),$("#FF0000"),O(e("something_went_wrong")),console.log(t)}};return(0,c.jsxs)("div",{className:"tw:text-foreground",children:[(0,c.jsx)("h1",{className:"tw:text-2xl tw:font-bold tw:text-foreground",children:e("my_account")}),(0,c.jsx)("ul",{className:"tw:mt-4 tw:mb-6 tw:flex tw:list-none tw:gap-6 tw:border-b tw:border-border tw:p-0",children:["Account Details","Email Address"].map((t,s)=>(0,c.jsx)("li",{className:"tw:cursor-pointer",onClick:()=>{Q(s),Z(!1),ee(!1)},children:(0,c.jsx)("span",{className:`tw:inline-block tw:pb-2 tw:text-sm ${s===h?"tw:border-b-2 tw:border-primary tw:font-semibold tw:text-foreground":"tw:text-muted-foreground"}`,children:e(t.toLowerCase().replace(/ /g,"_"))})},s))}),0===h?(0,c.jsxs)("div",{children:[(0,c.jsxs)("form",{onSubmit:e=>e.preventDefault(),className:"tw:flex tw:flex-col tw:gap-2",children:[(0,c.jsx)(rF.Label,{children:e("username")}),(0,c.jsxs)("div",{className:"tw:relative tw:max-w-sm",children:[(0,c.jsx)(rz.Input,{style:{display:b?void 0:"none"},type:"text",name:"username",maxLength:10,value:y,onChange:e=>v(e.target.value),ref:q,placeholder:s,className:`tw:pr-9 ${A?"tw:border-destructive":""}`}),(0,c.jsx)(rz.Input,{style:{display:b?"none":void 0},type:"text",name:"username",readOnly:!0,className:`tw:pr-9 ${A?"tw:border-destructive":""}`,value:s}),(0,c.jsx)("button",{type:"button",className:"tw:absolute tw:top-1/2 tw:right-3 tw:-translate-y-1/2 tw:text-muted-foreground tw:hover:text-foreground",onClick:()=>Z(!b),"aria-label":b?e("cancel"):e("edit"),children:b?(0,c.jsx)(rR,{className:"tw:size-4"}):(0,c.jsx)(rP,{className:"tw:size-4"})})]}),_&&(0,c.jsx)("p",{style:{color:S},className:"tw:mt-1 tw:text-sm",children:_}),b&&(0,c.jsx)(s3.Button,{type:"button",className:"tw:mt-2 tw:w-fit",onClick:J,children:e("confirm")})]}),w&&(0,c.jsxs)("div",{className:"tw:mt-5",children:[(0,c.jsx)("span",{className:"tw:text-sm tw:text-foreground",children:"URL:"}),(0,c.jsx)(r$,{characterAmount:60,mobile:!0,shortwidth:Y?"345px":"610px",longwidth:Y?"350px":"660px",copyText:`https://${x.env.platformUrl}/?account_key=${u}`})]}),(0,c.jsx)("hr",{className:"tw:my-6 tw:border-border"}),(0,c.jsx)("p",{className:"tw:mt-4",children:(0,c.jsxs)("strong",{className:"tw:inline-flex tw:cursor-pointer tw:items-center tw:gap-2 tw:text-foreground",onClick:()=>{G(!0),W("Logout?")},children:[e("logout")," ",(0,c.jsx)(rL,{className:"tw:size-4"})]})})]}):(0,c.jsx)("div",{children:l?(0,c.jsxs)("form",{onSubmit:e=>e.preventDefault(),className:"tw:flex tw:flex-col tw:gap-2",children:[(0,c.jsx)(rF.Label,{children:e("email_address")}),!V&&o||l&&o?(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-2",children:[(0,c.jsx)(rz.Input,{className:"tw:max-w-sm tw:pr-9",type:"email",readOnly:!0,placeholder:r}),(0,c.jsxs)("p",{className:"tw:mt-6 tw:text-sm tw:text-muted-foreground",children:[e("if_you_need_to_change_your")," ",(0,c.jsxs)("span",{className:"intercom_open_chat tw:cursor-pointer tw:text-primary",children:[e("contact_support"),"."]})]})]}):(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-2",children:[(0,c.jsxs)("div",{className:"tw:relative tw:max-w-sm",children:[(0,c.jsx)(rz.Input,{style:{display:R?"none":void 0},type:"email",name:"email",placeholder:V?r:e("add_email_address"),className:`tw:pr-9 ${X?"tw:border-[#FFCC4A]":""}`,readOnly:!0}),(0,c.jsx)(rz.Input,{style:{display:R?void 0:"none"},type:"email",name:"email",value:I,onChange:e=>M(e.target.value),className:`tw:pr-9 ${z?"tw:border-destructive":""}${!R&&X?" tw:border-[#FFCC4A]":""}`,ref:K,placeholder:V?r:e("add_email_address")}),(0,c.jsx)("button",{type:"button",className:"tw:absolute tw:top-1/2 tw:right-3 tw:-translate-y-1/2 tw:text-muted-foreground tw:hover:text-foreground",onClick:()=>ee(!R),"aria-label":R?e("cancel"):e("edit"),children:R?(0,c.jsx)(rR,{className:"tw:size-4"}):(0,c.jsx)(rP,{className:"tw:size-4"})})]}),T&&(0,c.jsx)("p",{style:{color:B},className:"tw:mt-0.5 tw:text-sm",children:T}),X&&(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"tw:text-sm tw:text-muted-foreground",children:e("you_need_to_verify_your")}),(0,c.jsxs)("p",{className:"tw:cursor-pointer tw:text-sm tw:text-primary",onClick:er,children:[e("resend_email"),"?"]})]}),R&&(0,c.jsx)(s3.Button,{type:"button",className:"tw:mt-2 tw:w-fit",onClick:es,children:e("confirm")})]})]}):(0,c.jsxs)("form",{onSubmit:e=>e.preventDefault(),className:"tw:flex tw:flex-col tw:gap-2",children:[(0,c.jsxs)(rF.Label,{children:[e("email"),":"]}),(0,c.jsx)(rz.Input,{className:"tw:max-w-sm",type:"email",readOnly:!0,placeholder:r}),(0,c.jsxs)("p",{className:"tw:mt-6 tw:text-sm tw:text-muted-foreground",children:[e("if_you_need_to_change_your")," ",(0,c.jsxs)("span",{className:"intercom_open_chat tw:cursor-pointer tw:text-primary",children:[e("contact_support"),"."]})]})]})}),U&&(0,c.jsx)(rT,{modalName:H,censoredEmail:D,onCloseModal:()=>G(!1),onResendEmailUpdate:er})]})}let rG=(0,A.default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);function rH(e){return e?m.default.utc(String(e)).clone().local().format("MM/DD/YYYY h:mm:ss A"):""}function rW(e){if(!e)return"";let t=e.toString();return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function rY(e){return e?parseFloat(e.toFixed(7)):0}let rq=(0,sX.create)((e,t)=>({content:[],setWithdrawals:s=>e({content:t().content.concat(s)}),clearWithdrawals:()=>e({content:[]}),getWithdrawals:async e=>{if(!u.default.get("userId"))return{error:"No user id present"};let s=(0,m.default)(e.startDate).format("YYYY-MM-DDTHH:mm:ss"),r=(0,m.default)(e.endDate).endOf("day").format("YYYY-MM-DDTHH:mm:ss"),a=e.getAll,n=e.platformCurrency;try{let e=`/payment-view-ng/payments/${u.default.get("userId")}?currency=${n}&type=Withdraw`;a||(e+=`&startDate=${s}&endDate=${r}`);let o=(0,rd.rqBuild)("GET",x.env.apiUrl+e,{},u.default.get("token")),l=await rd.default.request(o);if(l.data)t().clearWithdrawals(),t().setWithdrawals(l.data.content);else throw Error("Invalid response from server")}catch(e){return{error:"Could not get withdrawals"}}}})),rK=(0,sX.create)((e,t)=>({withdrawSettings:{minimum_withdrawal:0,deposit_confirmations:0,withdrawal_confirmations:0,withdrawal_service_fee:0},updateWithdrawSettings:t=>{e({withdrawSettings:{minimum_withdrawal:t.minimum_withdrawal,deposit_confirmations:t.deposit_confirmations,withdrawal_confirmations:t.withdrawal_confirmations,withdrawal_service_fee:t.withdrawal_service_fee}}),u.default.set("withdrawSettings",JSON.stringify(t),{expires:7})},getWithdrawRules:async e=>{if(!e)return;let s=u.default.get("withdrawSettings");if(s)try{t().updateWithdrawSettings(JSON.parse(s))}catch{}try{let e=`/api/wms/user/rules?currency=${x.env.platformCurrency}`,s=await rd.default.request((0,rd.rqBuild)("GET",x.env.walletManagerUrl+e,{},u.default.get("token")));if(s.data)t().updateWithdrawSettings(s.data);else throw Error("could not retrieve rules for withdrawing")}catch(e){console.log(e),console.log("Could not get withdraw rules")}
73}}));function rV(e){if(Date.parse(e[1])<Date.parse(e[0])){let t=e[1];e[1]=e[0],e[0]=t}return e}function rX(e){let t=e.map(e=>({...e}));return t.forEach((e,s)=>{"object"==typeof e.amount&&null!==e.amount&&(e.currency=e.amount.currency,e.amount=e.amount.amount),t[s]=Object.fromEntries(Object.entries(e).filter(([,e])=>!Array.isArray(e)&&e||Array.isArray(e)&&e.length))}),t}function rQ(e,t){if("u"<typeof document)return;let s=new Set;e.forEach(e=>Object.keys(e).forEach(e=>s.add(e)));let r=Array.from(s),a=e=>{if(null==e)return"";let t="object"==typeof e?JSON.stringify(e):String(e);return`"${t.replace(/"/g,'""')}"`},n=new Blob([[r.map(a).join(","),...e.map(e=>r.map(t=>a(e[t])).join(","))].join("\n")],{type:"text/csv;charset=utf-8;"}),o=document.createElement("a");o.href=URL.createObjectURL(n),o.download=`${t}.csv`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(o.href)}function rZ({page:e,pageCount:t,onChange:s,totalVisible:r=5}){let a=[],n=Math.max(1,e-Math.floor(r/2)),o=Math.min(t,n+r-1);n=Math.max(1,o-r+1);for(let e=n;e<=o;e++)a.push(e);let l="tw:flex tw:size-[34px] tw:items-center tw:justify-center tw:m-[0.3rem] tw:list-none tw:rounded tw:border-0 tw:bg-transparent tw:text-white disabled:tw:opacity-40";return(0,c.jsxs)("ul",{className:"tw:flex tw:items-center tw:m-0 tw:ml-5 tw:py-2 tw:list-none",children:[(0,c.jsx)("li",{className:"tw:list-none",children:(0,c.jsx)("button",{type:"button",className:l,disabled:e<=1,onClick:()=>s(e-1),children:(0,c.jsx)(ri,{className:"tw:size-4"})})}),n>1&&(0,c.jsx)("li",{className:"tw:list-none",children:(0,c.jsx)("span",{className:"tw:flex tw:size-[34px] tw:items-center tw:justify-center tw:rounded tw:bg-[#1e1e1e] tw:text-white",children:"..."})}),a.map(t=>(0,c.jsx)("li",{className:"tw:list-none",children:(0,c.jsx)("button",{type:"button",className:`tw:size-[34px] tw:m-[0.3rem] tw:rounded tw:border-0 tw:text-white ${t===e?"tw:bg-[#505662]":"tw:bg-transparent"}`,onClick:()=>s(t),children:t})},t)),o<t&&(0,c.jsx)("li",{className:"tw:list-none",children:(0,c.jsx)("span",{className:"tw:flex tw:size-[34px] tw:items-center tw:justify-center tw:rounded tw:bg-[#1e1e1e] tw:text-white",children:"..."})}),(0,c.jsx)("li",{className:"tw:list-none",children:(0,c.jsx)("button",{type:"button",className:l,disabled:e>=t,onClick:()=>s(e+1),children:(0,c.jsx)(rc,{className:"tw:size-4"})})})]})}function rJ({value:e,onChange:t,label:s}){return(0,c.jsx)("select",{className:"tw:rounded tw:border-0 tw:bg-[#2b3239] tw:p-2 tw:font-[Gilroy-Regular,sans-serif] tw:text-xs tw:text-white",value:e,onChange:e=>t(parseInt(e.target.value,10)),children:[5,10,15].map(e=>(0,c.jsx)("option",{value:e,children:s(e)},e))})}function r0({active:e=!0}){let{t}=(0,p.useI18n)();(0,y.useDepositStore)(e=>e.content),rq(e=>e.content);let s=(0,y.useDepositStore)(e=>e.getDeposits),r=rq(e=>e.getWithdrawals),a=rK(e=>e.withdrawSettings.withdrawal_service_fee),n=(0,N.useIsMobile)(),[o,l]=(0,d.useState)(!1),[i,w]=(0,d.useState)(null),[u,h]=(0,d.useState)(1),[f,g]=(0,d.useState)(10),v=["all","deposits_nma","withdrawals_nma"],[b,j]=(0,d.useState)([]),[_,C]=(0,d.useState)([]),[S,k]=(0,d.useState)([]),[A,E]=(0,d.useState)(0),[I,M]=(0,d.useState)([(0,m.default)().subtract(90,"days").format("YYYY-MM-DD"),(0,m.default)().format("YYYY-MM-DD")]),[D,P]=(0,d.useState)([(0,m.default)().subtract(90,"days").format("YYYY-MM-DD"),(0,m.default)().format("YYYY-MM-DD")]),[R,L]=(0,d.useState)([(0,m.default)().subtract(90,"days").format("YYYY-MM-DD"),(0,m.default)().format("YYYY-MM-DD")]),T=(0,d.useRef)({transactionsLoaded:!1,transactionsLoading:!1}),O=(0,d.useRef)(!1),B=(0,m.default)().subtract(90,"days").format("YYYY-MM-DD"),$=(0,m.default)().format("YYYY-MM-DD");(0,d.useEffect)(()=>{let e=()=>l(window.innerWidth<960);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let z=async(e,t)=>{let a;switch(e){case"all":M(a=rV([...t||I])),P([...a]),L([...a]);break;case"deposits":P(a=rV([...t||D])),M([...a]),L([...a]);break;default:L(a=rV([...t||R])),M([...a]),P([...a])}await s({startDate:a[0],endDate:a[1]||a[0],getAll:!1,platformCurrency:x.env.platformCurrency}),await r({startDate:a[0],endDate:a[1]||a[0],getAll:!1,platformCurrency:x.env.platformCurrency});let n=y.useDepositStore.getState().content,o=rq.getState().content;j([...n.map(e=>({...e,dataType:"deposit",hashOrGameName:e.externalRef})),...o.map(e=>({...e,dataType:"withdrawal"}))]),C(n.map(e=>({...e,dataType:"deposit",createdAt:e.creationTime,hashOrGameName:e.externalRef}))),k(o.map(e=>({...e,dataType:"withdrawal"})))},F=async(e=!1)=>
73{if((e||!T.current.transactionsLoaded)&&!T.current.transactionsLoading){T.current.transactionsLoading=!0;try{await z("all"),T.current.transactionsLoaded=!0}finally{T.current.transactionsLoading=!1}}};(0,d.useEffect)(()=>{F()},[]),(0,d.useEffect)(()=>{e&&!1===O.current&&T.current.transactionsLoaded&&F(!0),O.current=e},[e]);let U=(0,d.useMemo)(()=>rV([...I]).join(" ~ "),[I]),G=(0,d.useMemo)(()=>rV([...D]).join(" ~ "),[D]),H=(0,d.useMemo)(()=>rV([...R]).join(" ~ "),[R]),W=[{text:t("side_nma"),value:"dataType"},{text:t("time_nma"),value:"creationTime"},{text:t("net_amount_nma"),value:"amount.amount"},{text:t("send_to_withdrawal_only_nma"),value:"paymentAccount",hide:!0},{text:t("credited_deposit_only_nma"),value:"credited",hide:!0},{text:t("hash_nma"),value:"externalRef",hide:!0}].filter(e=>!e.hide||!o),Y=[{text:t("time_nma"),value:"creationTime"},{text:t("hash_nma"),value:"externalRef",hide:!0},{text:t("net_amount_nma"),value:"amount.amount"},{text:t("credited_deposit_only_nma"),value:"credited",hide:!0}].filter(e=>!e.hide||!o),q=[{text:t("time_nma"),value:"creationTime"},{text:t("hash_nma"),value:"externalRef",hide:!0},{text:t("net_amount_nma"),value:"amount.amount"},{text:t("send_to_withdrawal_only_nma"),value:"paymentAccount",hide:!0}].filter(e=>!e.hide||!o),K=(e,s,r)=>{let o=Math.max(1,Math.ceil(s.length/f)),l=s.slice((u-1)*f,u*f);return(0,c.jsxs)("table",{className:"tw:mt-4 tw:w-full tw:text-sm",children:[(0,c.jsx)("thead",{children:(0,c.jsx)("tr",{className:"tw:border-b tw:border-border tw:text-left tw:text-muted-foreground",children:e.map(e=>(0,c.jsx)("th",{className:"tw:p-2 tw:font-medium",children:(0,c.jsx)("span",{children:e.text})},e.value))})}),(0,c.jsxs)("tbody",{children:[0===l.length&&(0,c.jsx)("tr",{className:"tw:border-b tw:border-border",children:(0,c.jsx)("td",{colSpan:e.length,className:"tw:p-2 tw:text-muted-foreground",children:t("no_data_available")})}),l.map(s=>{let o;return(0,c.jsxs)(d.default.Fragment,{children:[(0,c.jsx)("tr",{onClick:()=>{n&&w(e=>e===s.paymentId?null:s.paymentId)},className:"tw:border-b tw:border-border tw:text-foreground",children:e.map(e=>(0,c.jsx)("td",{className:"tw:p-2",children:((e,s)=>{switch(s){case"dataType":return n?(0,c.jsx)("span",{className:"withdrawal"===e.dataType?"tw:text-destructive":"tw:text-primary",children:"withdrawal"===e.dataType?"â":"â"}):(0,c.jsx)("span",{className:"withdrawal"===e.dataType?"tw:capitalize tw:text-destructive":"tw:capitalize tw:text-primary",children:t(e.dataType)});case"credited":return(0,c.jsxs)(c.Fragment,{children:["COMPLETED"===e.status&&"deposit"===e.dataType&&(0,c.jsx)("span",{className:"tw:text-primary",children:t("YES")}),"COMPLETED"!==e.status&&"deposit"===e.dataType&&(0,c.jsx)("span",{className:"tw:text-destructive",children:t("NO")})]});case"paymentAccount":if(0===A)return e.paymentAccount&&"Withdraw"===e.paymentType?(0,c.jsx)(r$,{copyText:e.paymentAccount,characterAmount:10,shortwidth:"110px",longwidth:"140px"}):null;return e.paymentAccount?(0,c.jsx)(r$,{copyText:e.paymentAccount,characterAmount:10,shortwidth:"110px",longwidth:"140px"}):null;case"externalRef":return(0,c.jsxs)(c.Fragment,{children:["PaymentGatewayRef"!==e.externalRef&&e.externalRef&&(0,c.jsx)(r$,{copyText:e.externalRef,characterAmount:10,shortwidth:"110px",longwidth:"140px"}),"PaymentGatewayRef"===e.externalRef&&(0,c.jsx)("span",{children:t("manual_deposit")})]});case"creationTime":return(0,c.jsx)("span",{className:"tw:text-muted-foreground",children:rH(e.creationTime)});case"amount.amount":return rY(e.amount?.amount);default:return e[s]}})(s,e.value)},e.value))}),i===s.paymentId&&(o=e.length,(0,c.jsx)("tr",{className:"tw:border-b tw:border-border tw:bg-muted/40",children:(0,c.jsxs)("td",{colSpan:o,className:"tw:p-2",children:[(0,c.jsxs)("p",{className:"tw:m-0 tw:flex tw:text-xs tw:text-muted-foreground",children:[(0,c.jsx)("span",{className:"tw:flex-1 tw:p-1",children:t("gross_amount_nma")}),(0,c.jsx)("span",{className:"tw:flex-1 tw:p-1",children:t("net_amount_nma")}),"deposit"===s.dataType&&(0,c.jsx)("span",{className:"tw:p-1",children:t("credited")})]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:flex tw:text-sm tw:text-foreground",children:[(0,c.jsx)("span",{className:"tw:flex-1 tw:p-1",children:rY(s.amount.amount+("deposit"===s.dataType?0:a))}),(0,c.jsx)("span",{className:"tw:flex-1 tw:p-1",children:rY(s.amount.amount)}),"deposit"===s.dataType&&"COMPLETED"===s.status&&(0,c.jsx)("span",{className:"tw:p-1 tw:text-primary",children:rW(t("YES"))}),"deposit"===s.dataType&&"COMPLETED"!==s.status&&(0,c.jsx)("span",{className:"tw:p-1 tw:text-destructive",children:rW(t("NO"))})]}),"deposit"!==s.dataType&&(0,c.jsxs)("p",{className:"tw:m-0 tw:mt-2 tw:p-1 tw:text-xs tw:text-muted-foreground",children:[" ",t("address_sent_to"),":"]}),(0,c.jsx)("div",{children:s.paymentAccount&&(0,c.jsx)(r$,{mobile:!0,copyText:s.paymentAccount,height:"32px",showThreeDots:!0,padding:"0"})})]})},s.paymentId+"_expanded"))]},r+s.paymentId)})]}),(0,c.jsx)("tfoot",{children:(0,c.jsx)("tr",{children:(0,c.jsx)("td",{colSpan:e.length,className:"tw:p-2",children:(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-2 tw:lg:flex-row tw:lg:justify-end",children:[(0,c.jsx)("div",{children:(0,c.jsx)(rJ,{value:f,onChange:e=>{g(e),h(1)},label:e=>t("show_x_results_page_nma",{amount:e})})}),(0,c.jsx)(rZ,{page:u,pageCount:o,onChange:h})]})})})})]})},V=(e,t,s,r)=>(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-2",children:[(0,c.jsx)("input",{type:"date",className:"tw:rounded-md tw:border tw:border-input tw:bg-transparent tw:px-2 tw:py-1 tw:text-sm tw:text-foreground tw:[color-scheme:dark]",value:e[0]||"",min:B,max:r,onChange:r=>{let a=[r.target.value,e[1]];t(a),s(a)}}),(0,c.jsx)("span",{className:"tw:text-muted-foreground",children:" ~ "}),(0,c.jsx)("input",{type:"date",className:"tw:rounded-md tw:border tw:border-input tw:bg-transparent tw:px-2 tw:py-1 tw:text-sm tw:text-foreground tw:[color-scheme:dark]",value:e[1]||"",min:B,max:r,onChange:r=>{let a=[e[0],r.target.value];t(a),s(a)}})]});return(0,c.jsxs)("div",{id:"transactions_history",className:"tw:text-foreground",children:[(0,c.jsx)("h1",{className:"tw:mt-4 tw:text-2xl tw:font-bold tw:text-foreground",children:t("transactions_history_nma")}),(0,c.jsx)("nav",{className:"tw:mt-3 tw:mb-4 tw:border-b tw:border-border",role:"tablist",children:(0,c.jsx)("div",{className:"tw:flex tw:gap-4",children:["All","Deposits","Withdrawals"].map((e,s)=>(0,c.jsx)("button",{type:"button",className:`tw:cursor-pointer tw:pb-2 tw:text-sm ${A===s?"tw:border-b-2 tw:border-primary tw:font-semibold tw:text-foreground":"tw:text-muted-foreground"}`,onClick:()=>{E(s),h(1),w(null)},role:"tab","aria-controls":`#${e}`,"aria-selected":A===s,children:t(v[s])},s))})}),0===A&&(0,c.jsx)("div",{id:"All","aria-labelledby":"all-tab",role:"tabpanel",children:(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-3",children:[(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-primary",title:"Export to CSV",onClick:()=>rQ(rX(b),`${x.env.platformCurrency} - ${U} - Deposits and Withdrawals`),children:(0,c.jsx)(rG,{className:"tw:size-5","aria-hidden":"true"})}),V(I,M,e=>z("all",e),$)]}
73),K(W,b,"all")]})}),1===A&&(0,c.jsx)("div",{id:"Deposits","aria-labelledby":"deposits-tab",role:"tabpanel",children:(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-3",children:[(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-primary",title:"Export to CSV",onClick:()=>rQ(rX(b),`${x.env.platformCurrency} - ${G} - Deposits and Withdrawals`),children:(0,c.jsx)(rG,{className:"tw:size-5","aria-hidden":"true"})}),V(D,P,e=>z("deposits",e),(0,m.default)().add(1,"d").format("YYYY-MM-DD"))]}),K(Y,_,"deposits")]})}),2===A&&(0,c.jsx)("div",{id:"Withdrawals","aria-labelledby":"withdrawals-tab",role:"tabpanel",children:(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-3",children:[(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-primary",title:"Export to CSV",onClick:()=>rQ(rX(b),`${x.env.platformCurrency} - ${H} - Deposits and Withdrawals`),children:(0,c.jsx)(rG,{className:"tw:size-5","aria-hidden":"true"})}),V(R,L,e=>z("withdrawals",e),$)]}),K(q,S,"withdrawals")]})})]})}var r1=Object.defineProperty,r2=Object.getOwnPropertySymbols,r5=Object.prototype.hasOwnProperty,r3=Object.prototype.propertyIsEnumerable,r4=(e,t,s)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,r8=(e,t)=>{for(var s in t||(t={}))r5.call(t,s)&&r4(e,s,t[s]);if(r2)for(var s of r2(t))r3.call(t,s)&&r4(e,s,t[s]);return e},r6=(e,t)=>{var s={};for(var r in e)r5.call(e,r)&&0>t.indexOf(r)&&(s[r]=e[r]);if(null!=e&&r2)for(var r of r2(e))0>t.indexOf(r)&&r3.call(e,r)&&(s[r]=e[r]);return s};(e=>{let t=class t{constructor(e,s,r,n){if(this.version=e,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(n<-1||n>7)throw RangeError("Mask value out of range");this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const l=this.addEccAndInterleave(r);if(this.drawCodewords(l),-1==n){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const s=this.getPenaltyScore();s<e&&(n=t,e=s),this.applyMask(t)}}a(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}static encodeText(s,r){let a=e.QrSegment.makeSegments(s);return t.encodeSegments(a,r)}static encodeBinary(s,r){let a=e.QrSegment.makeBytes(s);return t.encodeSegments([a],r)}static encodeSegments(e,r,n=1,l=40,i=-1,c=!0){let d,w;if(!(t.MIN_VERSION<=n&&n<=l&&l<=t.MAX_VERSION)||i<-1||i>7)throw RangeError("Invalid value");for(d=n;;d++){let s=8*t.getNumDataCodewords(d,r),a=o.getTotalBits(e,d);if(a<=s){w=a;break}if(d>=l)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&w<=8*t.getNumDataCodewords(d,e)&&(r=e);let u=[];for(let t of e)for(let e of(s(t.mode.modeBits,4,u),s(t.numChars,t.mode.numCharCountBits(d),u),t.getData()))u.push(e);a(u.length==w);let m=8*t.getNumDataCodewords(d,r);a(u.length<=m),s(0,Math.min(4,m-u.length),u),s(0,(8-u.length%8)%8,u),a(u.length%8==0);for(let e=236;u.length<m;e^=253)s(e,8,u);let x=[];for(;8*x.length<u.length;)x.push(0);return u.forEach((e,t)=>x[t>>>3]|=e<<7-(7&t)),new t(d,r,x,i)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let s=0;s<t;s++)for(let r=0;r<t;r++)(0!=s||0!=r)&&(0!=s||r!=t-1)&&(s!=t-1||0!=r)&&this.drawAlignmentPattern(e[s],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,s=t;for(let e=0;e<10;e++)s=s<<1^(s>>>9)*1335;let n=(t<<10|s)^21522;a(n>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(n,e));this.setFunctionModule(8,7,r(n,6)),this.setFunctionModule(8,8,r(n,7)),this.setFunctionModule(7,8,r(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;a(t>>
vendor: 6,328 bytes, line 73
73>18==0);for(let e=0;e<18;e++){let s=r(t,e),a=this.size-11+e%3,n=Math.floor(e/3);this.setFunctionModule(a,n,s),this.setFunctionModule(n,a,s)}}drawFinderPattern(e,t){for(let s=-4;s<=4;s++)for(let r=-4;r<=4;r++){let a=Math.max(Math.abs(r),Math.abs(s)),n=e+r,o=t+s;0<=n&&n<this.size&&0<=o&&o<this.size&&this.setFunctionModule(n,o,2!=a&&4!=a)}}drawAlignmentPattern(e,t){for(let s=-2;s<=2;s++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+s,1!=Math.max(Math.abs(r),Math.abs(s)))}setFunctionModule(e,t,s){this.modules[t][e]=s,this.isFunction[t][e]=!0}addEccAndInterleave(e){let s=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(s,r))throw RangeError("Invalid argument");let n=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][s],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][s],l=Math.floor(t.getNumRawDataModules(s)/8),i=n-l%n,c=Math.floor(l/n),d=[],w=t.reedSolomonComputeDivisor(o);for(let s=0,r=0;s<n;s++){let a=e.slice(r,r+c-o+(s<i?0:1));r+=a.length;let n=t.reedSolomonComputeRemainder(a,w);s<i&&a.push(0),d.push(a.concat(n))}let u=[];for(let e=0;e<d[0].length;e++)d.forEach((t,s)=>{(e!=c-o||s>=i)&&u.push(t[e])});return a(u.length==l),u}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let s=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let a=0;a<this.size;a++)for(let n=0;n<2;n++){let o=t-n,l=(t+1&2)==0?this.size-1-a:a;!this.isFunction[l][o]&&s<8*e.length&&(this.modules[l][o]=r(e[s>>>3],7-(7&s)),s++)}}a(s==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let s=0;s<this.size;s++){let r;switch(e){case 0:r=(s+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=s%3==0;break;case 3:r=(s+t)%3==0;break;case 4:r=(Math.floor(s/3)+Math.floor(t/2))%2==0;break;case 5:r=s*t%2+s*t%3==0;break;case 6:r=(s*t%2+s*t%3)%2==0;break;case 7:r=((s+t)%2+s*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][s]&&r&&(this.modules[t][s]=!this.modules[t][s])}}getPenaltyScore(){let e=0;for(let s=0;s<this.size;s++){let r=!1,a=0,n=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[s][o]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,n),r||(e+=this.finderPenaltyCountPatterns(n)*t.PENALTY_N3),r=this.modules[s][o],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,n)*t.PENALTY_N3}for(let s=0;s<this.size;s++){let r=!1,a=0,n=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][s]==r?5==++a?e+=t.PENALTY_N1:a>5&&e++:(this.finderPenaltyAddHistory(a,n),r||(e+=this.finderPenaltyCountPatterns(n)*t.PENALTY_N3),r=this.modules[o][s],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,n)*t.PENALTY_N3}for(let s=0;s<this.size-1;s++)for(let r=0;r<this.size-1;r++){let a=this.modules[s][r];a==this.modules[s][r+1]&&a==this.modules[s+1][r]&&a==this.modules[s+1][r+1]&&(e+=t.PENALTY_N2)}let s=0;for(let e of this.modules)s=e.reduce((e,t)=>e+ +!!t,s);let r=this.size*this.size,n=Math.ceil(Math.abs(20*s-10*r)/r)-1;return a(0<=n&&n<=9),a(0<=(e+=n*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),s=[6];for(let r=this.size-7;s.length<e;r-=t)s.splice(1,0,r);return s}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");let s=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;s-=(25*t-10)*t-55,e>=7&&(s-=36)}return a(208<=s&&s<=29648),s}static getNumDataCodewords(e,s){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let s=[];for(let t=0;t<e-1;t++)s.push(0);s.push(1);let r=1;for(let a=0;a<e;a++){for(let e=0;e<s.length;e++)s[e]=t.reedSolomonMultiply(s[e],r),e+1<s.length&&(s[e]^=s[e+1]);r=t.reedSolomonMultiply(r,2)}return s}static reedSolomonComputeRemainder(e,s){let r=s.map(e=>0);for(let a of e){let e=a^r.shift();r.push(0),s.forEach((s,a)=>r[a]^=t.reedSolomonMultiply(s,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let s=0;for(let r=7;r>=0;r--)s=s<<1^(s>>>7)*285^(t>>>r&1)*e;return a(s>>>8==0),s}finderPenaltyCountPatterns(e){let t=e[1];a(t<=3*this.size);let s=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(s&&e[0]>=4*t&&e[6]>=t?1:0)+(s&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,s){return e&&(this.finderPenaltyAddHistory(t,s),t=0),t+=this.size,this.finderPenaltyAddHistory(t,s),this.finderPenaltyCountPatterns(s)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function s(e,t,s){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let r=t-1;r>=0;r--)s.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function a(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let n=class e{constructor(e,t,s){if(this.mode=e,this.numChars=t,this.bitData=s,t<0)throw RangeError("Invalid argument");this.bitData=s.slice()}static makeBytes(t){let r=[];for(let e of t)s(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains
73non-numeric characters");let r=[];for(let e=0;e<t.length;){let a=Math.min(t.length-e,3);s(parseInt(t.substring(e,e+a),10),3*a+1,r),e+=a}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){let r;if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let a=[];for(r=0;r+2<=t.length;r+=2){let n=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));s(n+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),11,a)}return r<t.length&&s(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,a),new e(e.Mode.ALPHANUMERIC,t.length,a)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)s(t,8,r);else if(t<16384)s(2,2,r),s(t,14,r);else if(t<1e6)s(6,3,r),s(t,21,r);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let s=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;s+=4+e+r.bitData.length}return s}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let s=0;s<e.length;s++)"%"!=e.charAt(s)?t.push(e.charCodeAt(s)):(t.push(parseInt(e.substring(s+1,s+3),16)),s+=2);return t}};n.NUMERIC_REGEX=/^[0-9]*$/,n.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,n.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let o=n;e.QrSegment=n})(i||(i={})),n=(a=i||(i={})).QrCode||(a.QrCode={}),(s=class{constructor(e,t){this.ordinal=e,this.formatBits=t}}).LOW=new s(0,1),s.MEDIUM=new s(1,0),s.QUARTILE=new s(2,3),s.HIGH=new s(3,2),n.Ecc=s,l=(o=i||(i={})).QrSegment||(o.QrSegment={}),(r=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}).NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),l.Mode=r;var r9=i,r7={L:r9.QrCode.Ecc.LOW,M:r9.QrCode.Ecc.MEDIUM,Q:r9.QrCode.Ecc.QUARTILE,H:r9.QrCode.Ecc.HIGH},ae="#FFFFFF",at="#000000";function as(e,t=0){let s=[];return e.forEach(function(e,r){let a=null;e.forEach(function(n,o){if(!n&&null!==a){s.push(`M${a+t} ${r+t}h${o-a}v1H${a+t}z`),a=null;return}if(o===e.length-1){if(!n)return;null===a?s.push(`M${o+t},${r+t} h1v1H${o+t}z`):s.push(`M${a+t},${r+t} h${o+1-a}v1H${a+t}z`);return}n&&null===a&&(a=o)})}),s.join("")}function ar(e,t){return e.slice().map((e,s)=>s<t.y||s>=t.y+t.h?e:e.map((e,s)=>(s<t.x||s>=t.x+t.w)&&e))}function aa({value:e,level:t,minVersion:s,includeMargin:r,marginSize:a,imageSettings:n,size:o,boostLevel:l}){let i=d.default.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...r9.QrSegment.makeSegments(t)),e),[]);return r9.QrCode.encodeSegments(r,r7[t],s,void 0,void 0,l)},[e,t,s,l]),{cells:c,margin:w,numCells:u,calculatedImageSettings:m}=d.default.useMemo(()=>{let e=i.getModules(),t=null!=a?Math.max(Math.floor(a),0):4*!!r,s=e.length+2*t,l=function(e,t,s,r){if(null==r)return null;let a=e.length+2*s,n=Math.floor(.1*t),o=a/t,l=(r.width||n)*o,i=(r.height||n)*o,c=null==r.x?e.length/2-l/2:r.x*o,d=null==r.y?e.length/2-i/2:r.y*o,w=null==r.opacity?1:r.opacity,u=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(d),s=Math.ceil(l+c-e),r=Math.ceil(i+d-t);u={x:e,y:t,w:s,h:r}}return{x:c,y:d,h:i,w:l,excavation:u,opacity:w,crossOrigin:r.crossOrigin}}(e,o,t,n);return{cells:e,margin:t,numCells:s,calculatedImageSettings:l}},[i,o,n,r,a]);return{qrcode:i,margin:w,cells:c,numCells:u,calculatedImageSettings:m}}var an=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();d.default.forwardRef(function(e,t){let{value:s,size:r=128,level:a="L",bgColor:n=ae,fgColor:o=at,includeMargin:l=!1,minVersion:i=1,boostLevel:c,marginSize:w,imageSettings:u}=e,m=r6(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:x}
73=m,p=r6(m,["style"]),h=null==u?void 0:u.src,f=d.default.useRef(null),g=d.default.useRef(null),y=d.default.useCallback(e=>{f.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[v,b]=d.default.useState(!1),{margin:j,cells:_,numCells:N,calculatedImageSettings:C}=aa({value:s,level:a,minVersion:i,boostLevel:c,includeMargin:l,marginSize:w,imageSettings:u,size:r});d.default.useEffect(()=>{if(null!=f.current){let e=f.current,t=e.getContext("2d");if(!t)return;let s=_,a=g.current,l=null!=C&&null!==a&&a.complete&&0!==a.naturalHeight&&0!==a.naturalWidth;l&&null!=C.excavation&&(s=ar(_,C.excavation));let i=window.devicePixelRatio||1;e.height=e.width=r*i;let c=r/N*i;t.scale(c,c),t.fillStyle=n,t.fillRect(0,0,N,N),t.fillStyle=o,an?t.fill(new Path2D(as(s,j))):_.forEach(function(e,s){e.forEach(function(e,r){e&&t.fillRect(r+j,s+j,1,1)})}),C&&(t.globalAlpha=C.opacity),l&&t.drawImage(a,C.x+j,C.y+j,C.w,C.h)}}),d.default.useEffect(()=>{b(!1)},[h]);let S=r8({height:r,width:r},x),k=null;return null!=h&&(k=d.default.createElement("img",{src:h,key:h,style:{display:"none"},onLoad:()=>{b(!0)},ref:g,crossOrigin:null==C?void 0:C.crossOrigin})),d.default.createElement(d.default.Fragment,null,d.default.createElement("canvas",r8({style:S,height:r,width:r,ref:y,role:"img"},p)),k)}).displayName="QRCodeCanvas";var ao=d.default.forwardRef(function(e,t){let{value:s,size:r=128,level:a="L",bgColor:n=ae,fgColor:o=at,includeMargin:l=!1,minVersion:i=1,boostLevel:c,title:w,marginSize:u,imageSettings:m}=e,x=r6(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:p,cells:h,numCells:f,calculatedImageSettings:g}=aa({value:s,level:a,minVersion:i,boostLevel:c,includeMargin:l,marginSize:u,imageSettings:m,size:r}),y=h,v=null;null!=m&&null!=g&&(null!=g.excavation&&(y=ar(h,g.excavation)),v=d.default.createElement("image",{href:m.src,height:g.h,width:g.w,x:g.x+p,y:g.y+p,preserveAspectRatio:"none",opacity:g.opacity,crossOrigin:g.crossOrigin}));let b=as(y,p);return d.default.createElement("svg",r8({height:r,width:r,viewBox:`0 0 ${f} ${f}`,ref:t,role:"img"},x),!!w&&d.default.createElement("title",null,w),d.default.createElement("path",{fill:n,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),d.default.createElement("path",{fill:o,d:b,shapeRendering:"crispEdges"}),v)});ao.displayName="QRCodeSVG";var al=e.i(72382),ai=e.i(80860);let ac=(0,A.default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),ad=(0,A.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var aw=e.i(95018);function au(){let{t:e}=(0,p.useI18n)(),t=(0,g.useAccountStore)(e=>e.securedByPassword),s=(0,g.useAccountStore)(e=>e.totpEnabled),r=(0,g.useAccountStore)(e=>e.fixedWithdrawalAddress),a=(0,g.useAccountStore)(e=>e.isLegacyUser),n=(0,g.useAccountStore)(e=>e.hasMagicToken),o=(0,g.useAccountStore)(e=>e.userId),l=(0,g.useAccountStore)(e=>e.getUserData),i=(0,g.useAccountStore)(e=>e.getTotpSecretKey),w=(0,g.useAccountStore)(e=>e.getFixedWithdrawalAddress),m=(0,g.useAccountStore)(e=>e.setFixedWithdrawalAddress),h=(0,g.useAccountStore)(e=>e.getMagicTokenAndAuthData),f=(0,g.useAccountStore)(e=>e.updatePassword),y=(0,g.useAccountStore)(e=>e.enableTwoFactorAuth),v=(0,g.useAccountStore)(e=>e.logoutUser),b=(0,N.useIsMobile)(),[j,_]=(0,d.useState)(!1),[C,S]=(0,d.useState)(!1),[k,A]=(0,d.useState)(!1),[E,M]=(0,d.useState)(""),[D,P]=(0,d.useState)(""),[R,L]=(0,d.useState)(""),[T,O]=(0,d.useState)(""),[B,$]=(0,d.useState)(0),[z,F]=(0,d.useState)(!1),[U,G]=(0,d.useState)(""),[H,W]=(0,d.useState)(!0),[Y,q]=(0,d.useState)(""),[K,V]=(0,d.useState)(""),[X,Q]=(0,d.useState)(""),[Z,J]=(0,d.useState)([]),[ee,et]=(0,d.useState)(!1),[es,er]=(0,d.useState)([]),[ea,en]=(0,d.useState)(""),[eo,el]=(0,d.useState)(""),[ei,ec]=(0,d.useState)(""),[ed,ew]=(0,d.useState)(""),[eu,em]=(0,d.useState)(!0),[ex,ep]=(0,d.useState)(""),[eh,ef]=(0,d.useState)(!1),eg=(0,d.useRef)([]),ey=(0,d.useRef)({twofaAuthEnabled:s});(0,d.useEffect)(()=>{ey.current={twofaAuthEnabled:s}});let ev=(0,d.useMemo)(()=>{switch(Number(t)+Number(s)+Number(r.length>0)){case 0:case 1:return"LOW";case 2:return a?"MEDIUM":"HIGH";case 3:return"HIGH";default:return""}},[t,s,r,a]),eb=a?["password_nma","2fa_authentication_nma","fixed_withdrawal_address_nma"]:["password_nma","fixed_withdrawal_address_nma"],ej=a?["Password","2FA Authentication","Fixed Withdrawal Address"]:["Password","Fixed Withdrawal Address"];(0,d.useEffect)(()=>{let e=setTimeout(async()=>{"true"===u.default.get("isMagicTokenLogin")&&await h(),await l();let e=await w();if(e&&q(e),!ey.current.twofaAuthEnabled){let e=await i();e.success&&(G(e.secretKey),W(!1))}},3e3);return()=>clearTimeout(e)},[]);let e_=e=>"err"===e?"tw:text-destructive":"ok"===e?"tw:text-primary":"tw:text-muted-foreground",eN=async(e=!1)=>{let t=u.default.get("token"),s=u.default.get("magicToken");await v(t),u.default.remove("casino_code"),e?(window.history.replaceState({},document.title,"/?account_key="+s+"&no_warning=true"),window.location.reload()):window.location.href="/"},eC=async()=>{ec(""),ew("");let t=(ec(""),ew(""),ea&&eo)?ea!=eo?{valid:!1,msg:e("password_and_repeated_password"),err:"nomatch"}:ea.length<8?{valid:!1,msg:e("password_is_too_short"),err:"length"}
73:ea===ex||eo===ex?{valid:!1,msg:e("current_and_new_password_nma"),err:"nodifference"}:RegExp("^((?=.*)(?=.*[a-z])(?=.*[A-Z]).{8,32})$").test(ea)?{valid:!0,msg:""}:{valid:!1,msg:e("password_should_contain_at_least")}:{valid:!1,msg:e("please_input_both_password"),err:"empty"};if(!t.valid)return void ec(String(t.msg));if(!eu||confirm(e("you_chose_to_be_logged_out")))try{ew(e("loading")),await f({newPassword:ea,oldPassword:ex,hasMagicToken:n}),ew(e("password_changed")),setTimeout(()=>ew(""),5e3),en(""),el(""),ep(""),eu&&(ew(e("password_changed")+e("logging_out")),eN(!0))}catch(e){ew(""),ec(e.toString())}},eS=async()=>{if(s)return void console.log("Two FA already enabled");let t="";for(let e=0;e<6;e++)t+=eg.current[e]?.value||"";if(6!=t.length)return void alert("Please fill in all of the digits!");let r=await y(t);if(r.success)alert(e("your_account_now_has"));else if(void 0!==r.error)if("codeInvalid"===r.error){alert(e("the_code_you_provided"));for(let e=0;e<6;e++){let t=eg.current[e];t&&(t.value="")}eg.current[0]?.focus()}else"alreadyEnabled"===r.error&&alert(e("two_step_authenticator_is"))},ek="BCH"===x.env.platformCurrency?aw.rules.BCH:aw.rules.BTC,eA=e=>{let t=aw.rules.required(e);if(!0!==t)return[t];let s=ek(e);return!0!==s?[s]:[]},eE=e=>{let t=aw.rules.required(e);if(!0!==t)return[t];let s=aw.rules.is("YES")(e);return!0!==s?[s]:[]},eI=async t=>{t.preventDefault();let s=eA(Y),r=eE(K);J(s),er(r),s.length||r.length||(await m(Y)).error&&Q(e("error_setting_fixed_withdrawal"))},eM="HIGH"===ev?"tw:text-primary":"MEDIUM"===ev?"tw:text-[#FFCC4A]":"tw:text-destructive";return(0,c.jsxs)("div",{id:"security",className:"tw:text-foreground",children:[(0,c.jsxs)("div",{className:"tw:flex tw:items-end tw:gap-3",children:[(0,c.jsx)("h1",{className:"tw:mt-4 tw:text-2xl tw:font-bold tw:text-foreground",children:e("security_nma")}),a&&(0,c.jsxs)("p",{className:`tw:text-sm tw:font-semibold ${eM}`,children:[e(`${ev.toLowerCase()}_nma`)," ("," ",+t+ +s+ +(r.length>0)," / 3 )"]}),!a&&(0,c.jsxs)("p",{className:`tw:text-sm tw:font-semibold ${eM}`,children:[e(`${ev.toLowerCase()}_nma`)," ("," ",+t+ +(r.length>0)," / 2 )"]})]}),(0,c.jsx)("nav",{className:"tw:mt-3 tw:mb-4 tw:border-b tw:border-border",role:"tablist",children:(0,c.jsx)("div",{className:"tw:flex tw:gap-4",children:ej.map((t,s)=>(0,c.jsx)("button",{type:"button",className:`tw:cursor-pointer tw:pb-2 tw:text-sm ${B===s?"tw:border-b-2 tw:border-primary tw:font-semibold tw:text-foreground":"tw:text-muted-foreground"}`,onClick:()=>$(s),role:"tab","aria-controls":`#${t}`,"aria-selected":B===s,children:e(eb[s])},s))})}),0===B&&(0,c.jsxs)("div",{id:"Password","aria-labelledby":"Password-tab",role:"tabpanel",children:[!z&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-2",children:[!t&&(0,c.jsx)("p",{className:"tw:text-sm tw:text-destructive",children:e("you_have_no_password_nma")}),!t&&(0,c.jsx)("p",{className:"tw:max-w-md tw:text-sm tw:text-foreground",children:e("by_setting_an_account_nma")}),t&&(0,c.jsx)("p",{className:"tw:text-sm tw:text-primary",children:e("your_account_is_secured_nma")}),t&&(0,c.jsx)("p",{className:"tw:max-w-md tw:text-sm tw:text-foreground",children:e("your_account_is_secured_password_nma")}),t&&a&&(0,c.jsx)("p",{className:"tw:max-w-md tw:text-sm tw:text-foreground",children:e("add_an_email_address_nma")}),t&&(0,c.jsxs)("a",{className:"tw:inline-flex tw:cursor-pointer tw:items-center tw:gap-2 tw:text-base tw:text-primary",onClick:()=>F(!0),children:[e("edit_password_nma")," ",(0,c.jsx)(rP,{className:"tw:size-4"})]})]}),(z||!t)&&(0,c.jsxs)("div",{className:"tw:max-w-md",children:[t&&(0,c.jsxs)("div",{className:"tw:relative",children:[(0,c.jsx)("p",{className:"tw:mb-1 tw:text-foreground",children:e("current_password_nma")}),(0,c.jsx)(rz.Input,{autoComplete:"off",value:ex,onChange:e=>ep(e.target.value),id:"old_account_password",type:k?"text":"password",placeholder:e("current_password"),onKeyUp:e=>"Enter"===e.key&&eC(),className:"tw:pr-9"}),(0,c.jsx)("button",{type:"button",onClick:()=>A(e=>!e),className:"tw:absolute tw:right-3 tw:bottom-2.5 tw:text-muted-foreground tw:hover:text-foreground","aria-label":e("show_password"),children:k?(0,c.jsx)(ai.EyeOff,{className:"tw:size-4"}):(0,c.jsx)(al.Eye,{className:"tw:size-4"})})]}),(0,c.jsxs)("div",{className:"tw:relative tw:mt-4",children:[(0,c.jsx)("p",{className:"tw:mb-1 tw:text-sm tw:text-foreground",children:e("new_password_nma")}),(0,c.jsx)(rz.Input,{value:ea,onChange:e=>{var t;let s,r,a,n;en(e.target.value),s=(t=e.target.value).length<8,r=!/[A-Z]/gm.test(t),a=!/[a-z]/gm.test(t),n=!/[0-9]/gm.test(t),t.length?(M(s?"err":"ok"),P(r?"err":"ok"),L(a?"err":"ok"),O(n?"err":"ok")):(M("normal"),P("normal"),L("normal"),O("normal"))},id:"password",type:j?"text":"password",placeholder:e("enter_password"),onKeyUp:e=>"Enter"===e.key&&eC(),className:"tw:pr-9"}),(0,c.jsx)("button",{type:"button",onClick:()=>_(e=>!e),className:"tw:absolute tw:right-3 tw:bottom-2.5 tw:text-muted-foreground tw:hover:text-foreground","aria-label":e("show_password"),children:j?(0,c.jsx)(ai.EyeOff,{className:"tw:size-4"}):(0,c.jsx)(al.Eye,{className:"tw:size-4"})})]}),(0,c.jsxs)("div",{className:"tw:relative tw:mt-4",children:[(0,c.jsx)("p",{className:"tw:mb-1 tw:text-sm tw:text-foreground",children:e("repeat_password")}),(0,c.jsx)(rz.Input,{value:eo,onChange:e=>el(e.target.value),id:"password_repeat",type:C?"text":"password",placeholder:e("password"),onKeyUp:e=>"Enter"===e.key&&eC(),className:"tw:pr-9"}),(0,c.jsx)("button",{type:"button",onClick:()=>S(e=>!e),className:"tw:absolute tw:right-3 tw:bottom-2.5 tw:text-muted-foreground tw:hover:text-foreground","aria-label":e("show_password"),children:C?(0,c.jsx)(ai.EyeOff,{className:"tw:size-4"}):(0,c.jsx)(al.Eye,{className:"tw:size-4"})})]}),ed&&(0,c.jsx)("p",{className:"tw:mt-2 tw:text-sm tw:text-primary",children:ed}),ei&&(0,c.jsx)("p",{className:"tw:mt-2 tw:text-sm tw:text-destructive",children:ei}),(0,c.jsx)("div",{className:"tw:h-4"}),(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-1 tw:text-sm",children:[(0,c.jsxs)("p",{className:"tw:text-muted-foreground",children:[e("must_have_nma")," "]}),(0,c.jsx)("p",{className:e_(E),children:e("8_characters_minimum_nma")}),(0,c.jsx)("p",{className:e_(D),children:e("1_uppercase_nma")}),(0,c.jsx)("p",{className:e_(R),children:e("1_lowercase_nma")}),(0,c.jsx)("p",{className:e_(T),children:e("one_digit")})]}),(0,c.jsxs)("div",{className:"tw:mt-5 tw:flex tw:items-center tw:gap-2",children:[(0,c.jsx)(rS.Checkbox,{id:"logout_checkbox",checked:eu,onCheckedChange:e=>em(!0===e),required:!0}),(0,c.jsx)(rF.Label,{className:"tw:text-sm tw:font-bold tw:text-foreground",htmlFor:"logout_checkbox",children:e("log_me_out_on_nma")})]}),(0,c.jsx)(s3.Button,{id:"change_password_confirm_button",className:"tw:mt-4",disabled:!ea||!eo||"err"===E&&"err"===R&&"err"===T&&"err"===D,onClick:eC,children:t?e("change"):e("confirm")})]})]}),eh&&(0,c.jsx)("div",{className:"tw:fixed tw:inset-0 tw:z-50 tw:flex tw:items-center tw:justify-center tw:bg-black/70",onClick:()=>ef(!1),children:(0,c.jsxs)("div",{className:"tw:rounded-lg tw:bg-popover tw:p-8 tw:text-popover-foreground",style:{width:b?"80%":400},onClick:e=>e.stopPropagation(),children:[(0,c.jsx)("h1",{className:"tw:text-xl tw:font-bold tw:text-foreground",children:e("disable_2fa_nma")}),(0,c.jsx)("p",{className:"tw:mt-2 tw:text-sm tw:text-muted-foreground",children:e("for_your_safety_reach_nma")}),(0,c.jsxs)("div",{className:"intercom_open_chat tw:mt-4 tw:flex tw:cursor-pointer tw:items-center tw:gap-3",children:[(0,c.jsx)("div",{className:"tw:text-primary",children:(0,c.jsx)(ac,{className:"tw:size-5"})}),(0,c.jsx)("div",{children:(0,c.jsx)("p",{className:"tw:text-sm tw:text-foreground",children:e("use_chat_nma")})})]}),(0,c.jsxs)("a",{href:`mailto:${I.brand.supportEmail}`,className:"tw:mt-4 tw:flex tw:items-center tw:gap-3",children:[(0,c.jsx)("div",{className:"tw:text-primary",children:(0,c.jsx)(ad,{className:"tw:size-5"})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{className:"tw:text-sm tw:text-foreground",children:[e("send_email_nma")," ",(0,c.jsx)("span",{className:"tw:text-primary",children:I.brand.supportEmail})]})})]})]})}),1===B&&a&&(0,c.jsxs)("div",{id:"twoFA-Authentication","aria-labelledby":"2FA-Authentication-tab",role:"tabpanel",children:[s&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-2",children:[(0,c.jsx)("p",{className:"tw:text-sm tw:font-medium tw:text-primary",children:e("2fa_is_enabled_nma")}),(0,c.jsx)("p",{className:"tw:text-sm tw:text-foreground",children:e("having_troubles_nma")}),(0,c.jsxs)("a",{className:"tw:inline-flex tw:cursor-pointer tw:items-center tw:gap-2 tw:text-sm tw:text-primary",onClick:()=>ef(!0),children:[e("contact_support_to_disable_nma")," ",(0,c.jsx)(rc,{className:"tw:size-4"})]})]}),!s&&(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{children:[(0,c.jsxs)("p",{className:"tw:text-sm tw:text-foreground",children:[e("your_account_currently_does_nma")," ",(0,c.jsx)("br",{})]}),(0,c.jsxs)("ul",{className:"tw:mt-3 tw:flex tw:flex-col tw:gap-2 tw:text-sm tw:text-foreground",children:[(0,c.jsx)("li",{children:e("1_download_google_authenticator_nma")}),(0,c.jsx)("li",{children:e("2_open_the_google_nma")}),(0,c.jsx)("li",{children:e("3_click_the_menu_nma")}),(0,c.jsx)("li",{children:e("4_scan_the_barcode_nma")}),(0,c.jsxs)("li",{className:"tw:mt-2",children:[(0,c.jsxs)("div",{id:"gauth_secret",className:"tw:relative tw:inline-block",children:[H&&(0,c.jsx)("img",{width:150,alt:"",src:"/assets/images/common/Spin-1s-200px.svg",style:{background:"transparent",position:"absolute",left:45,minHeight:200}}),(0,c.jsx)("div",{id:"gauth_qr_content",children:U.length>0&&(0,c.jsx)(ao,{className:"tw:rounded-md tw:bg-white tw:p-2",size:150,value:`otpauth://totp/${o}@${(0,I.platformHost)(x.env.platformName)}?secret=${U}`})}),(0,c.jsx)("div",{className:"tw:mt-2",children:(0,c.jsx)("div",{id:"shared_secret",children:(0,c.jsx)(r$,{characterAmount:20,shortwidth:"238px",longwidth:"238px",mobile:!0,copyText:H?e("loading"):U})})})]}),(0,c.jsxs)("p",{className:"tw:mt-3 tw:text-sm tw:text-foreground",children:[e("5_enter_the_6_nma"),":"]})]})]})]}),(0,c.jsxs)("div",{id:"input-2fa",className:"tw:mt-3 tw:flex tw:gap-2",children:[[1,2,3,4,5,6].map(e=>(0,c.jsx)("input",{type:"tel",maxLength:1,tabIndex:e,pattern:"[\\d]*",ref:t=>{eg.current[e-1]=t},onInput:()=>(e=>{let t=eg.current[e-1];if(t){if(""==t.value||isNaN(parseInt(t.value)))t.value="";else if(e<6){let t=eg.current[e];t&&t.focus()}}})(e),className:"tw:size-10 tw:rounded-md tw:border tw:border-input tw:bg-transparent tw:text-center tw:text-foreground tw:outline-none tw:focus-visible:border-ring"},e)),(0,c.jsx)("span",{id:"ga-result"}),(0,c.jsx)("input",{type:"hidden",id:"google_auth_code",name:"ga-code"})]}),(0,c.jsx)(s3.Button,{id:"confirm_configure_2fa",onClick:eS,className:"tw:mt-4",children:e("enable")})]})]}),(2===B||1==B&&!a)&&(0,c.jsxs)("div",{id:"Fixed-Withdrawal-Address","aria-labelledby":"Fixed Withdrawal Address-tab",role:"tabpanel",children:[!r.length&&(0,c.jsxs)("div",{className:"tw:max-w-md",children:[(0,c.jsx)("p",{className:"tw:text-sm tw:text-destructive",children:e("if_you_set_a_nma")}),(0,c.jsx)("p",{className:"tw:mt-2 tw:text-sm tw:text-foreground",children:e("setting_up_a_fixed_nma")}),(0,c.jsx)("p",{className:"tw:mt-4 tw:mb-1 tw:text-sm tw:text-foreground",children:e("destination_address_nma")}),(0,c.jsxs)("div",{children:[(0,c.jsx)(rz.Input,{id:"fixed_withdrawal_address",name:"fixed_withdrawal_address",value:Y,onChange:e=>{let t=e.target.value;q(t),Z.length&&J(eA(t))},onBlur:()=>{et(!0),J(eA(Y))},placeholder:x.env.platformCurrency+" "+e("address")}),!!Z.length&&(0,c.jsx)("div",{className:"tw:mt-1 tw:text-sm tw:text-destructive",children:e(Z[0])}),(0,c.jsx)("div",{className:"tw:mt-1 tw:text-sm tw:text-primary",children:!Z.length&&ee?e("looks_good")+" â":""})]}),(0,c.jsx)("p",{className:"tw:mt-5 tw:mb-1 tw:text-sm tw:text-foreground",children:e("type_yes_below")}),(0,c.jsx)(rz.Input,{id:"fixed_withdrawal_address_confirm",name:"confirmation",value:K,onChange:e=>{let t=e.target.value;V(t),es.length&&er(eE(t))},placeholder:e("confirm")}),!!es.length&&(0,c.jsx)("div",{className:"tw:mt-1 tw:text-sm tw:text-destructive",children:e(es[0])}),!!X&&(0,c.jsx)("span",{className:"tw:text-destructive",children:X}),(0,c.jsx)("div",{className:"tw:h-4"}),(0,c.jsx)(s3.Button,{id:"confirm_set_fixed_withdrawal_address",onClick:eI,children:e("set_fixed_address_nma")})]}),r.length>0&&(0,c.jsxs)("div",{className:"tw:max-w-md tw:flex tw:flex-col tw:gap-2",children:[(0,c.jsxs)("p",{className:"tw:text-sm tw:text-destructive",children:[e("you_set_a_fixed_withdrawal_address")," "]}),(0,c.jsx)("p",{className:"tw:text-sm tw:text-foreground",children:e("this_address_will_be_used_every_time",{currency:x.env.platformCurrency})}),(0,c.jsx)("p",{className:"tw:text-sm tw:text-foreground",children:e("destination_address_nma")}),(0,c.jsx)(rz.Input,{type:"text",readOnly:!0,value:r})]})]})]})}var am=e.i(81673),ax=e.i(55566),ax=ax,ap=e.i(84334);function ah({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"card",className:(0,sP.cn)("tw:bg-card tw:text-card-foreground tw:flex tw:flex-col tw:gap-6 tw:rounded-xl tw:border tw:py-6 tw:shadow-sm",e),...t})}function af({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"card-content",className:(0,sP.cn)("tw:px-6",e),...t})}function ag(){let{t:e}=(0,p.useI18n)(),t=(0,g.useAccountStore)(e=>e.hasUnconfirmedTx),s=(0,g.useAccountStore)(e=>e.totpEnabled),r=(0,g.useAccountStore)(e=>e.securedByPassword),a=(0,g.useAccountStore)(e=>e.realBalance),n=(0,g.useAccountStore)(e=>e.magicToken),o=(0,g.useAccountStore)(e=>e.fixedWithdrawalAddress),l=(0,g.useAccountStore)(e=>e.isLoggedIn),i=(0,g.useAccountStore)(e=>e.getUserData),w=(0,g.useAccountStore)(e=>e.getUserBalance),m=(0,g.useAccountStore)(e=>e.getFixedWithdrawalAddress),h=(0,g.useAccountStore)(e=>e.getMagicTokenAndAuthData),f=(0,g.useAccountStore)(e=>e.createWithdrawal),y=rK(e=>e.getWithdrawRules),v=rK(e=>e.withdrawSettings.withdrawal_service_fee),b=rq(e=>e.getWithdrawals),_=(0,ap.useActivePromotionsStore)(e=>
73e.activePromoRewardUUID),C=(0,ap.useActivePromotionsStore)(e=>e.getActiveBonuses),S=(0,ap.useActivePromotionsStore)(e=>e.cancelActiveBonus),k=(0,ap.useActivePromotionsStore)(e=>e.cancelActiveFreeSpins),A=(0,j.useDialogStore)(e=>e.closeDialog),E=(0,N.useIsMobile)(),[M,D]=(0,d.useState)(""),[P,R]=(0,d.useState)(""),[L,T]=(0,d.useState)(""),[O,B]=(0,d.useState)(""),[$,z]=(0,d.useState)(!1),[F]=(0,d.useState)(!1),[U,G]=(0,d.useState)(""),[H,W]=(0,d.useState)(!1),[Y,q]=(0,d.useState)({withdrawal_address:"",amount:"",password:"",gauth:""}),[K,V]=(0,d.useState)([]),[X,Q]=(0,d.useState)(!1),[Z,J]=(0,d.useState)(!1),[ee,et]=(0,d.useState)(!1),[es,er]=(0,d.useState)(!1),ea=(0,d.useRef)([]);(0,d.useEffect)(()=>{y(l);let e=setTimeout(async()=>{"true"===u.default.get("isMagicTokenLogin")&&await h(),await i(),await m()},3e3);return()=>clearTimeout(e)},[]);let en="BCH"===x.env.platformCurrency?aw.rules.BCH:aw.rules.BTC,eo=e=>{let t=aw.rules.required(e);if(!0!==t)return[t];let s=en(e);return!0!==s?[s]:[]},el=(e,t)=>{let s=String(e),r=0;return(s.includes(".")&&(r=s.split(".")[1].length),r>t)?((e,t=0)=>{let s=Math.floor(Number(e+"e"+t));return(s=Number(s+"e"+-t)).toFixed(t)})(e,t):e},ei=!o&&eo(U).length>0,ec=async()=>{if(T(""),B(""),o){if(!M)return void T(e("please_fill_in_all"))}else{let t=eo(U);if(!M||!U)return void T(e("please_fill_in_all"));if(t.length)return void T(e("invalid_address"))}s||r?et(!0):ed()},ed=async()=>{q(e=>({...e,password:"",gauth:""}));let t="";for(let e=0;e<6;e++)t+=ea.current[e]?.value||"";if(!o){if(r&&!P)return void q(t=>({...t,password:e("please_enter_password")}));else if(s&&!t)return void q(t=>({...t,gauth:e("missing_totp_code")}));else if(s&&t.length<6)return void q(t=>({...t,gauth:e("invalid_totp_code")}))}let a={amount:M,address:o,magic_token:n,password:P,totp:t};o||(a.address=U);try{z(!0),_.startsWith("FREE-SPIN")?await k(_):await S(_),await C();let t=await f(a);R(""),Q(!0),t.amount?(J(!0),B(e("withdrawal_submitted")),await b({startDate:new Date,endDate:new Date,getAll:!0,platformCurrency:x.env.platformCurrency}),await w()):t.error&&t.error.data?.error?T(t.error.data.error):T(e("something_went_wrong")),z(!1)}catch(t){T(e("something_went_wrong")),z(!1)}},ew=()=>{q(e=>({...e,withdrawal_address:""})),T(""),B(""),G(""),D(""),J(!1),Q(!1),et(!1),V([])},eu=a-Number(M)<0;return(0,c.jsxs)("div",{id:"withdrawal-panel",className:"tw:text-foreground",children:[es&&(0,c.jsx)("div",{className:"tw:fixed tw:inset-0 tw:z-50 tw:flex tw:items-center tw:justify-center tw:bg-black/70",onClick:()=>er(!1),children:(0,c.jsxs)("div",{className:"tw:relative tw:rounded-lg tw:bg-popover tw:text-popover-foreground",style:{padding:E?"20px 16px":"20px 32px",width:E?328:400},onClick:e=>e.stopPropagation(),children:[(0,c.jsx)("button",{type:"button",className:"tw:absolute tw:top-3 tw:right-3 tw:text-muted-foreground tw:hover:text-foreground",onClick:()=>er(!1),"aria-label":e("close"),children:(0,c.jsx)(sZ.X,{className:"tw:size-5"})}),(0,c.jsx)("h1",{className:"tw:pb-2 tw:text-xl tw:font-bold tw:text-foreground",children:e("contact_support")}),E&&(0,c.jsxs)("p",{className:"tw:pb-1 tw:text-sm tw:text-muted-foreground",children:[e("please_choose_which_format"),":"]}),(0,c.jsxs)("div",{className:"intercom_open_chat tw:flex tw:cursor-pointer tw:items-center tw:gap-3 tw:py-2",onClick:()=>er(!1),children:[(0,c.jsx)("div",{className:"tw:text-primary",children:(0,c.jsx)(ac,{className:"tw:size-5"})}),(0,c.jsx)("div",{className:"tw:flex-1",children:(0,c.jsx)("p",{className:"tw:text-sm tw:text-foreground",children:E?e("chat"):e("use_chat_nma")})}),(0,c.jsx)("div",{className:"tw:text-muted-foreground",children:(0,c.jsx)(sW.ArrowRight,{className:"tw:size-4"})})]}),(0,c.jsxs)("a",{href:`mailto:${I.brand.supportEmail}`,className:"tw:flex tw:items-center tw:gap-3 tw:py-2",children:[(0,c.jsx)("div",{className:"tw:text-primary",children:(0,c.jsx)(ad,{className:"tw:size-5"})}),(0,c.jsx)("div",{className:"tw:flex-1",children:(0,c.jsx)("p",{className:"tw:text-sm tw:text-foreground",children:E?e("email"):e("send_email_nma")})}),(0,c.jsx)("div",{className:"tw:text-muted-foreground",children:(0,c.jsx)(sW.ArrowRight,{className:"tw:size-4"})})]})]})}),(0,c.jsx)("h2",{className:"tw:text-xl tw:font-bold tw:text-foreground",children:e("withdrawal")}),!X&&!ee&&(0,c.jsx)("div",{children:(0,c.jsxs)("div",{children:[t&&(0,c.jsx)("div",{children:(0,c.jsx)("p",{className:"tw:text-sm tw:text-destructive",children:e("you_still_have_one")})}),(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"tw:mt-4 tw:flex tw:gap-3",children:[(0,c.jsxs)("div",{className:"tw:flex tw:flex-col",id:"asset-container",children:[(0,c.jsx)(rF.Label,{htmlFor:"asset",children:e("asset_nma")}),(0,c.jsxs)("button",{className:"tw:mt-1 tw:flex tw:h-9 tw:items-center tw:gap-1 tw:rounded-md tw:border tw:border-input tw:bg-transparent tw:px-3",id:"asset",disabled:!0,children:["BTC"===x.env.platformCurrency&&(0,c.jsx)("img",{src:"/assets/images/footer/btc-logo.svg",className:"tw:size-5",alt:x.env.platformCurrency}),"BCH"===x.env.platformCurrency&&(0,c.jsx)("img",{src:"/assets/images/footer/bch-logo.svg",className:"tw:size-5",alt:x.env.platformCurrency}),(0,c.jsx)("span",{className:"tw:pl-1 tw:text-lg tw:text-foreground",children:x.env.platformCurrency})]}),(0,c.jsxs)("small",{id:"asset_value_mobile",className:"tw:mt-1 tw:text-xs tw:text-muted-foreground tw:md:hidden",children:[x.env.platformCurrency," ",a]}),(0,c.jsxs)("small",{id:"asset_value",className:"tw:mt-1 tw:hidden tw:text-xs tw:text-muted-foreground tw:md:block",children:[e("available_nma")," ",a]})]}),(0,c.jsx)("div",{className:"tw:flex-1",children:(0,c.jsxs)("div",{children:[(0,c.jsx)(rF.Label,{htmlFor:"withdrawal_amount",children:e("amount")}),(0,c.jsxs)("div",{className:`tw:mt-1 tw:flex tw:items-center tw:rounded-md tw:border ${eu?"tw:border-destructive":"tw:border-input"}`,children:[(0,c.jsx)("input",{type:"number",className:`tw:h-9 tw:w-full tw:rounded-md tw:bg-transparent tw:px-3 tw:text-sm tw:text-foreground tw:outline-none ${eu?"tw:text-destructive":""}`,id:"withdrawal_amount",value:M,disabled:F,placeholder:"0.00",max:a,onWheel:e=>e.target.blur(),onChange:e=>D(el(e.target.value,8)),min:0,required:!0}),(0,c.jsx)("button",{className:"tw:mr-1 tw:h-7 tw:rounded-md tw:px-3 tw:text-sm tw:text-primary tw:hover:bg-accent",id:"withdraw_everything_checkbox",onClick:()=>{D(el(String(a),8))},children:e("max")}
73)]}),""===Y.amount&&!eu&&(0,c.jsxs)("small",{id:"withdrawal_amount_value",className:"tw:text-xs tw:text-muted-foreground",children:[e("fees"),": ",v]}),eu&&(0,c.jsx)("small",{id:"withdrawal_amount_value_error",className:"tw:text-xs tw:text-destructive",children:e("balance_too_low_nma")}),""!==Y.amount&&(0,c.jsx)("small",{id:"withdrawal_amount_error_message",className:"tw:text-xs tw:text-destructive",children:Y.amount})]})})]}),(0,c.jsx)("div",{className:"tw:mt-4",children:(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:(0,c.jsx)(rF.Label,{htmlFor:"withdrawal_address",children:e("address")})}),(0,c.jsxs)("div",{className:`tw:mt-1 tw:flex tw:items-center tw:rounded-md tw:border ${""!==Y.withdrawal_address?"tw:border-destructive":"tw:border-input"}`,children:[(0,c.jsxs)("div",{className:"tw:flex-1",children:[!o&&(0,c.jsxs)("div",{children:[(0,c.jsx)("input",{autoComplete:"off",type:"text",name:"withdrawal_address",id:"withdrawal_address",value:U,onChange:e=>{let t=e.target.value;G(t),K.length&&V(eo(t))},onBlur:()=>V(eo(U)),placeholder:x.env.platformCurrency+" "+e("address"),className:"tw:h-9 tw:w-full tw:bg-transparent tw:px-3 tw:text-sm tw:text-foreground tw:outline-none"}),!!K.length&&(0,c.jsx)("div",{className:"tw:px-3 tw:pb-1 tw:text-sm tw:text-destructive",children:e(K[0])})]}),!!o&&(0,c.jsx)("div",{children:(0,c.jsx)("input",{autoComplete:"off",type:"text",className:"tw:h-9 tw:w-full tw:bg-transparent tw:px-3 tw:text-sm tw:text-foreground tw:outline-none",placeholder:o,value:U,onChange:e=>G(e.target.value),disabled:!0})})]}),(0,c.jsxs)("button",{className:"tw:mr-2 tw:text-muted-foreground",style:o.length?{cursor:"default"}:{},children:[!o.length&&(0,c.jsx)(am.QrCode,{className:"tw:size-5"}),o.length>0&&(0,c.jsx)("img",{src:"/assets/images/misc/lock.svg",className:"tw:size-5",alt:""})]})]}),(0,c.jsxs)("div",{className:`tw:hidden tw:items-center tw:gap-1 tw:text-sm tw:text-muted-foreground tw:md:flex ${K.length?"tw:mt-2":""}`,children:[(0,c.jsx)(ax.default,{className:"tw:size-4","aria-hidden":"true"})," ",e("only_send_currency",{currency:x.env.platformCurrency}),"."]}),(0,c.jsx)("small",{className:`tw:block tw:text-xs tw:text-muted-foreground tw:md:hidden ${K.length?"tw:mt-3":""}`,children:e("only_send_currency",{currency:x.env.platformCurrency})}),""!==Y.withdrawal_address&&(0,c.jsx)("small",{id:"withdrawal_address_message",className:"tw:text-xs tw:text-destructive",children:Y.withdrawal_address})]})}),(0,c.jsx)("div",{className:"tw:mt-4",children:(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-2",children:[(0,c.jsx)(rS.Checkbox,{id:"bonus-withdraw",checked:H,onCheckedChange:e=>W(!0===e),required:!0}),(0,c.jsx)(rF.Label,{htmlFor:"bonus-withdraw",className:"tw:text-sm tw:text-foreground",children:e("i_understand_that_i")})]})}),(0,c.jsx)(s3.Button,{id:"withdrawal_button",className:"tw:mt-3",disabled:!H||ei||Object.values(Y).some(e=>""!==e||a-Number(M)<0),onClick:ec,children:e("withdraw")}),L&&(0,c.jsx)("span",{className:"tw:ml-3 tw:text-sm tw:text-destructive",id:"withdrawal_error",children:L}),O&&(0,c.jsx)("span",{className:"tw:ml-3 tw:text-sm tw:text-primary",id:"withdrawal_message",children:O}),$&&(0,c.jsx)("span",{className:"tw:ml-3 tw:text-sm tw:text-primary",id:"withdrawal_wait",children:e("contacting_server")})]})]})}),!X&&ee&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-6 tw:md:flex-row",children:[(0,c.jsxs)("div",{className:"tw:flex-1",children:[r&&(0,c.jsxs)("div",{children:[(0,c.jsx)(rF.Label,{htmlFor:"withdrawal_password",children:e("password")}),(0,c.jsx)(rz.Input,{autoComplete:"off",id:"withdrawal_password",value:P,onChange:e=>R(e.target.value),className:`tw:mt-1 ${""!==Y.password?"tw:border-destructive":""}`,type:"password",placeholder:e("account_password")}),""!==Y.password&&(0,c.jsx)("small",{id:"password_error_message",className:"tw:text-xs tw:text-destructive",children:Y.password})]}),s&&(0,c.jsxs)("div",{className:"tw:mt-4",children:[(0,c.jsx)(rF.Label,{htmlFor:"input-2fa",children:e("2fa_code")}),(0,c.jsx)("div",{id:"input-2fa",className:"tw:mt-1 tw:flex tw:gap-2",children:[1,2,3,4,5,6].map(e=>(0,c.jsx)("input",{type:"tel",maxLength:1,tabIndex:e,className:`tw:size-10 tw:rounded-md tw:border tw:bg-transparent tw:text-center tw:text-foreground tw:outline-none tw:focus-visible:border-ring ${""!==Y.gauth?"tw:border-destructive":"tw:border-input"}`,pattern:"[\\d]*",ref:t=>{ea.current[e-1]=t},onInput:()=>(e=>{let t=ea.current[e-1];if(t){if(""==t.value||isNaN(parseInt(t.value)))t.value="";else if(e<6){let t=ea.current[e];t&&t.focus()}}})(e)},e))}),""!==Y.gauth&&(0,c.jsx)("small",{id:"gauth_error_message",className:"tw:text-xs tw:text-destructive",children:Y.gauth})]}),(0,c.jsx)(s3.Button,{className:"tw:mt-4",onClick:ed,children:e("confirm_nma")}),$&&(0,c.jsx)("span",{className:"tw:ml-3 tw:text-sm tw:text-primary",id:"confirm_withdrawal_wait",children:e("contacting_server")})]}),(0,c.jsxs)("div",{className:"tw:flex-1",children:[(0,c.jsx)(rF.Label,{children:e("summary_nma")}),(0,c.jsx)(ah,{className:"tw:mt-1 tw:mb-3 tw:max-w-72 tw:gap-0 tw:py-4",children:(0,c.jsxs)(af,{className:"tw:px-4",children:[(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:justify-between",children:[(0,c.jsx)("p",{className:"tw:text-muted-foreground",children:e("amount")}),(0,c.jsxs)("p",{className:"tw:text-muted-foreground",children:[x.env.platformCurrency," ",M]})]}),(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:justify-between",children:[(0,c.jsx)("p",{className:"tw:text-muted-foreground",children:e("fees")}),(0,c.jsxs)("p",{className:"tw:text-muted-foreground",children:[x.env.platformCurrency," ",v]})]}),(0,c.jsx)("hr",{className:"tw:my-2 tw:border-border"}),(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:justify-between",children:[(0,c.jsxs)("p",{className:"tw:text-muted-foreground",children:[e("total_nma"),": "]}),(0,c.jsxs)("p",{className:"tw:text-foreground",children:[x.env.platformCurrency," ",(Number(M)-v).toPrecision(4)]})]})]})})]})]}),X&&(0,c.jsxs)("div",{className:"tw:pt-4",children:[Z&&(0,c.jsxs)("div",{className:"tw:max-w-md",children:[(0,c.jsxs)("h5",{className:"tw:text-lg tw:font-bold tw:text-foreground",children:[e("assets_underway_nma")," ð«"]}),(0,c.jsx)("p",{className:"tw:mt-2 tw:text-sm tw:text-foreground",children:e("your_assets_will_be_nma")}),(0,c.jsxs)("p",{className:"tw:mt-2 tw:text-sm tw:text-foreground",children:[e("assets_withdrawn_
73nma")," ",(0,c.jsxs)("span",{className:"tw:font-bold",children:[x.env.platformCurrency," ",M]})]}),(0,c.jsx)(s3.Button,{className:"tw:mt-3",onClick:()=>{ew(),A(j.DIALOGS.account)},children:e("back_to_casino_nma")})]}),!Z&&(0,c.jsxs)("div",{className:"tw:max-w-md",children:[(0,c.jsxs)("h5",{className:"tw:flex tw:items-center tw:gap-2 tw:text-lg tw:font-bold tw:text-foreground",children:[e("something_went_wrong"),(0,c.jsx)(sZ.X,{className:"tw:size-5 tw:text-destructive"})]}),(0,c.jsxs)("p",{className:"tw:pt-2 tw:text-sm tw:text-foreground",children:[e("we_couldnt_proceed_nma"),(0,c.jsx)("br",{}),e("try_again_or_contact_support_nma"),"."]}),(0,c.jsxs)("p",{className:"tw:mt-2 tw:text-sm tw:text-foreground",children:[e("reason"),": ",L]}),(0,c.jsxs)("div",{className:"tw:mt-2 tw:flex tw:items-center tw:gap-4",children:[(0,c.jsx)("div",{className:"tw:flex-1",children:(0,c.jsx)(s3.Button,{className:"tw:w-full",onClick:()=>ew(),children:e("try_again")})}),(0,c.jsx)("div",{className:"tw:flex-1 tw:text-center",children:(0,c.jsx)("a",{className:"tw:text-primary",href:"#",onClick:e=>{e.preventDefault(),er(!0)},children:e("contact_support")})})]})]})]})]})}var ay=e.i(62567);function av({active:e=!0}){let{t,locale:s}=(0,p.useI18n)(),r=(0,ay.useGameLogsStore)(e=>e.gameLogs),a=(0,ay.useGameLogsStore)(e=>e.getGameLogs),n=(0,j.useDialogStore)(e=>e.closeDialog),[o,l]=(0,d.useState)(1),[i,w]=(0,d.useState)(10),[u,m]=(0,d.useState)(!1),[h,f]=(0,d.useState)(""),[g,y]=(0,d.useState)(null),v=(0,N.useIsMobile)(),[b,_]=(0,d.useState)(!1),[S,k]=(0,d.useState)(!1),[A,E]=(0,d.useState)([(0,ra.default)().subtract(10,"days").format("YYYY-MM-DD"),(0,ra.default)().format("YYYY-MM-DD")]),I=(0,d.useRef)(!1),M=(0,d.useRef)(!1);(0,d.useEffect)(()=>{let e=()=>_(window.innerWidth<960);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let D=async(e,t)=>{await a({startDate:t[0],endDate:t[1]||t[0],getAll:e})},P=async(e,t)=>{if("all"===e){let e=rV([...t||A]);E(e),m(!0),await D(!1,e),m(!1)}};(0,d.useEffect)(()=>{M.current||(M.current=!0,(async()=>{m(!0),await D(!0,rV([...A])),m(!1),ay.useGameLogsStore.getState().gameLogs.length&&k(!0)})())},[]),(0,d.useEffect)(()=>{e&&!1===I.current&&M.current&&P("all"),I.current=e},[e]),(0,d.useEffect)(()=>{r.length&&k(!0)},[r]);let R=(0,d.useMemo)(()=>r.map(e=>({...e,dataType:"gamelog",hashOrGameName:e.externalRef,gameId:"bitcoin"===e.gameProviderId?t(e.gameId):e.gameId})),[r,t]),L=(0,d.useMemo)(()=>{if(!h)return R;let e=h.toLowerCase();return R.filter(t=>Object.values(t).some(t=>"string"==typeof t&&t.toLowerCase().includes(e)))},[R,h]),T=[{text:t("time_nma"),value:"createdAt",className:s},{text:t("game_nma"),value:"gameId",className:s},{text:t("bet"),value:"betsSum",hide:!0,className:s},{text:t("bonus_bet"),value:"bonusBetsSum",hide:!0,className:s},{text:t("result"),value:"balanceAfter",hide:!0,className:s},{text:t("won"),value:"winsSum",className:s},{text:t("bonus_win"),value:"bonusWinsSum",hide:!0,className:s},{text:t("round_id"),value:"macroRoundId",hide:!0,className:s}].filter(e=>!e.hide||!b),O=(0,d.useMemo)(()=>rV([...A]).join(" ~ "),[A]),B=Math.max(1,Math.ceil(L.length/i)),$=L.slice((o-1)*i,o*i);return(0,c.jsxs)("div",{id:"games_reports",className:"tw:text-foreground",children:[(0,c.jsx)("h1",{className:"tw:mt-4 tw:text-2xl tw:font-bold tw:text-foreground",children:t("games_reports")}),(0,c.jsxs)("div",{id:"All","aria-labelledby":"all-tab",role:"tabpanel",children:[(S||r.length>0||u)&&(0,c.jsxs)("div",{className:"tw:mt-5",children:[(0,c.jsxs)("div",{className:"tw:flex tw:flex-wrap tw:items-center tw:gap-3",children:[(0,c.jsxs)("div",{className:"tw:relative tw:flex tw:items-center",children:[(0,c.jsx)(rN,{className:"tw:absolute tw:left-3 tw:size-4 tw:text-muted-foreground"}),(0,c.jsx)("input",{type:"text",value:h,onChange:e=>{f(e.target.value),l(1)},placeholder:t("search_game"),className:"tw:h-9 tw:rounded-md tw:border tw:border-input tw:bg-transparent tw:pr-3 tw:pl-9 tw:text-sm tw:text-foreground tw:outline-none tw:focus-visible:border-ring"})]}),(0,c.jsx)("button",{type:"button",className:"tw:cursor-pointer tw:text-primary",title:"Export to CSV",onClick:()=>{let e;return rQ(((e=R.map(e=>({...e}
73))).forEach((t,s)=>{Array.isArray(t.events)&&t.events.length&&(t.events=t.events[0].type+", "+(t.winsSum>0?"WIN":"LOST")),e[s]=Object.fromEntries(Object.entries(t).filter(([,e])=>!Array.isArray(e)&&e||Array.isArray(e)&&e.length))}),e),`${x.env.platformCurrency} - ${O} - Games Reports`)},children:(0,c.jsx)(rG,{className:"tw:size-5","aria-hidden":"true"})}),(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-2",children:[(0,c.jsx)("input",{type:"date",className:"tw:rounded-md tw:border tw:border-input tw:bg-transparent tw:px-2 tw:py-1 tw:text-sm tw:text-foreground tw:[color-scheme:dark]",value:A[0]||"",max:(0,ra.default)().format("YYYY-MM-DD"),onChange:e=>P("all",[e.target.value,A[1]])}),(0,c.jsx)("span",{className:"tw:text-muted-foreground",children:" ~ "}),(0,c.jsx)("input",{type:"date",className:"tw:rounded-md tw:border tw:border-input tw:bg-transparent tw:px-2 tw:py-1 tw:text-sm tw:text-foreground tw:[color-scheme:dark]",value:A[1]||"",max:(0,ra.default)().format("YYYY-MM-DD"),onChange:e=>P("all",[A[0],e.target.value])})]})]}),(0,c.jsxs)("table",{className:"tw:mt-4 tw:w-full tw:text-sm",children:[(0,c.jsx)("thead",{children:(0,c.jsx)("tr",{className:"tw:border-b tw:border-border tw:text-left tw:text-muted-foreground",children:T.map(e=>(0,c.jsx)("th",{className:"tw:p-2 tw:font-medium",children:(0,c.jsx)("span",{children:e.text})},e.value))})}),(0,c.jsxs)("tbody",{children:[u&&(0,c.jsx)("tr",{className:"tw:border-b tw:border-border",children:(0,c.jsx)("td",{colSpan:T.length,className:"tw:p-2 tw:text-muted-foreground",children:t("loading")})}),!u&&0===L.length&&h&&(0,c.jsx)("tr",{className:"tw:border-b tw:border-border",children:(0,c.jsxs)("td",{colSpan:T.length,className:"tw:p-2",children:[(0,c.jsxs)("div",{className:"tw:mt-5 tw:flex tw:w-full tw:items-center tw:justify-start tw:text-xl tw:font-bold tw:text-foreground",children:[t("no_results_for_nma"),' "',h,'"']}),(0,c.jsx)("div",{className:"tw:flex tw:w-full tw:items-center tw:justify-start tw:text-sm tw:text-foreground",children:t("we_didnt_find_any_nma")})]})}),!u&&0===L.length&&!h&&(0,c.jsx)("tr",{className:"tw:border-b tw:border-border",children:(0,c.jsx)("td",{colSpan:T.length,className:"tw:p-2 tw:text-muted-foreground",children:t("no_data_available")})}),!u&&$.map(e=>(0,c.jsxs)(d.default.Fragment,{children:[(0,c.jsx)("tr",{className:"tw:border-b tw:border-border tw:text-foreground",onClick:()=>v&&y(t=>t===e.macroRoundId?null:e.macroRoundId),children:T.map(s=>(0,c.jsx)("td",{className:"tw:p-2",children:((e,s)=>{switch(s){case"createdAt":return(0,c.jsx)("span",{className:"tw:text-muted-foreground",children:rH(e.createdAt)});case"betsSum":return(0,c.jsx)("span",{className:"tw:text-muted-foreground",children:e.betsSum});case"bonusBetsSum":return(0,c.jsx)("span",{className:"tw:text-muted-foreground",children:e.bonusBetsSum});case"winsSum":return(0,c.jsx)("span",{className:"tw:text-muted-foreground",children:e.winsSum});case"gameId":return(0,c.jsx)("span",{children:"bitcoin"===e.gameProviderId?t(e.gameId):(e=>{try{return e.replace(/([A-Z+_])/g," $1").trim()}catch(t){return e}})(e.gameId)});case"macroRoundId":return(0,c.jsx)(r$,{copyText:e.macroRoundId,characterAmount:10,shortwidth:"110px",longwidth:"140px"});case"balanceAfter":return(0,c.jsxs)(c.Fragment,{children:[e.winsSum>0&&(0,c.jsx)("span",{className:"tw:text-primary",children:t("won_result_column").toLowerCase()}),!e.winsSum&&(0,c.jsx)("span",{className:"tw:text-destructive",children:t("lost_result_column")})]});default:return e[s]}})(e,s.value)},s.value))}),g===e.macroRoundId&&(0,c.jsx)("tr",{className:"tw:border-b tw:border-border tw:bg-muted/40",children:(0,c.jsx)("td",{colSpan:T.length,className:"tw:p-1",children:(0,c.jsxs)("div",{className:"tw:grid tw:grid-cols-2 tw:p-1 tw:text-sm",children:[(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:pt-3 tw:text-muted-foreground",children:[" ",t("game_nma"),":"," "]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:capitalize tw:text-foreground",children:[" ","bitcoin"===e.gameProviderId?t(e.gameId):e.gameId]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-muted-foreground",children:[" ",t("bet"),": "]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-foreground",children:[" ",e.betsSum]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-muted-foreground",children:[" ",t("bonus_bet"),":"," "]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-foreground",children:[" ",e.bonusBetsSum]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:border-t tw:border-border tw:p-2 tw:text-muted-foreground",children:[" ",t("result"),":"," "]}),e.balanceAfter>e.balanceBefore&&(0,c.jsx)("span",{className:"tw:m-0 tw:border-t tw:border-border tw:p-2 tw:text-primary",children:t("won_result_column").toLowerCase()}),e.balanceAfter<e.balanceBefore&&(0,c.jsx)("span",{className:"tw:m-0 tw:border-t tw:border-border tw:p-2 tw:text-destructive",children:t("lost_result_column")}),e.balanceAfter==e.balanceBefore&&(0,c.jsx)("span",{className:"tw:m-0 tw:border-t tw:border-border tw:p-2 tw:text-foreground",children:t("draw")}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-primary",children:[" ",t("won_result_column").toLowerCase(),":"," "]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-foreground",children:[" ",e.winsSum]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-muted-foreground",children:[" ",t("bonus_win"),":"," "]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-foreground",children:[" ",e.bonusWinsSum]}),(0,c.jsxs)("p",{className:"tw:m-0 tw:p-2 tw:text-muted-foreground",children:[" ",t("round_id"),":"," "]}),(0,c.jsx)("p",{className:"tw:m-0 tw:p-0 tw:pb-1 tw:text-foreground",children:(0,c.jsx)(r$,{floatRight:!0,padding:"0px",characterAmount:7,mobile:!0,copyText:e.macroRoundId})})]})})})]},e.macroRoundId))]}),(0,c.jsx)("tfoot",{children:(0,c.jsx)("tr",{children:(0,c.jsx)("td",{colSpan:T.length,className:"tw:p-2",children:(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-2 tw:lg:flex-row tw:lg:justify-end",children:[(0,c.jsx)("div",{children:(0,c.jsx)(rJ,{value:i,onChange:e=>{w(e),l(1)},label:e=>t("show_x_results_page_nma",{amount:e})})}),(0,c.jsx)(rZ,{page:o,pageCount:B,onChange:l})]})})})})]})]}),!S&&!u&&(0,c.jsxs)("div",{className:"tw:mt-4",children:[(0,c.jsx)("p",{className:"tw:text-lg tw:font-bold tw:text-foreground",children:t("havent_played_yet_nma")}),(0,c.jsx)("p",{className:"tw:text-foreground",children:t("once_you_play_with_nma")}),(0,c.jsx)(C.default,{href:"/",children:(0,c.jsx)(s3.Button,{className:"tw:mt-3",onClick:()=>n(j.DIALOGS.account),children:t("play_games_nma")})})]})]})]})}let ab=["Account","Transactions History","Security","Withdrawal","Games Reports"],aj=["my_account","transactions_history_nma","security_nma","withdrawals_nma","games_reports"];function a_(){let{t:e}=(0,p.useI18n)(),t=(0,j.useDialogStore)(e=>j.DIALOGS.account in e.openDialogs),s=(0,j.useDialogStore)(e=>e.openDialogs[j.DIALOGS.account]),r=(0,j.useDialogStore)(e=>e.closeDialog),[a,n]=(0,d.useState)(0),[o,l]=(0,d.useState)(!1);(0,d.useEffect)(()=>{t&&(n("number"==typeof s?.tab?s.tab:0),l(!1))},[t]);let i=()=>r(j.DIALOGS.account),w=e=>{n(e),l(!1)};return(0,c.jsx)(rb.Dialog,{open:t,onOpenChange:e=>{e||i()},children:(0,c.jsxs)(rb.DialogContent,{className:"tw:flex tw:flex-col tw:w-[96vw] tw:max-w-[1040px] tw:sm:max-w-[1040px] tw:h-[88vh] tw:max-h-[860px] tw:overflow-hidden tw:border-0 tw:bg-black tw:text-[#b9bdc6] tw:text-[14px] tw:p-0 tw:gap-0",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:e("my_account")}
73),(0,c.jsxs)("div",{className:"tw:flex tw:min-h-0 tw:flex-1 tw:flex-col tw:bg-black tw:md:flex-row",children:[(0,c.jsx)("div",{className:"tw:hidden tw:w-56 tw:shrink-0 tw:flex-col tw:gap-1 tw:border-r tw:border-white/10 tw:p-4 tw:md:flex",children:(0,c.jsx)("nav",{role:"tablist",children:(0,c.jsx)("div",{className:"tw:flex tw:flex-col",children:ab.map((t,s)=>(0,c.jsx)("li",{className:"tw:list-none",children:(0,c.jsx)("a",{className:`tw:block tw:cursor-pointer tw:px-2 tw:my-2 tw:text-[14px] tw:font-medium ${a===s?"tw:font-bold tw:text-white tw:border-l-2 tw:border-[#08c08e]":"tw:text-[#b9bdc6]"}`,onClick:()=>w(s),children:e(aj[s])})},s))})})}),(0,c.jsxs)("div",{className:"tw:flex tw:min-h-0 tw:flex-1 tw:flex-col tw:overflow-y-auto tw:p-4 tw:md:p-6",children:[(0,c.jsxs)("div",{className:"tw:flex tw:justify-between tw:mt-5 tw:text-[#08c08e] tw:text-base tw:font-medium tw:md:hidden",children:[(0,c.jsx)("div",{children:(0,c.jsxs)("p",{"aria-hidden":"true",onClick:i,className:"tw:flex tw:items-center tw:gap-2 tw:cursor-pointer",children:[(0,c.jsx)(rD.ArrowLeft,{className:"tw:size-4"})," ",e("back_to_casino_nma")]})}),(0,c.jsxs)("div",{className:"tw:relative tw:pt-2 tw:pb-2 tw:md:hidden",children:[(0,c.jsxs)("button",{className:"tw:inline-flex tw:items-center tw:gap-2 tw:rounded tw:bg-[#252525] tw:px-4 tw:py-2 tw:font-bold tw:text-white",type:"button",id:"dropdownMenuButton","aria-haspopup":"true","aria-expanded":o,onClick:()=>l(e=>!e),children:[e(aj[a]),(0,c.jsx)(E,{className:"tw:size-4"})]}),(0,c.jsx)("div",{className:`tw:absolute tw:right-0 tw:z-10 tw:mt-1 tw:min-w-[10rem] tw:rounded tw:border tw:border-white/10 tw:bg-[#252525] tw:py-1 ${o?"tw:block":"tw:hidden"}`,"aria-labelledby":"dropdownMenuButton",children:ab.map((t,s)=>a!==s&&(0,c.jsx)("span",{children:(0,c.jsx)("a",{className:"tw:block tw:cursor-pointer tw:px-4 tw:py-2 tw:text-white hover:tw:bg-white/5",onClick:()=>w(s),children:e(aj[s])})},"dropdown_"+s))})]})]}),(0,c.jsxs)("div",{className:"tw:hidden tw:mt-2 tw:text-xs tw:font-normal tw:text-[#b9bdc6] tw:md:block",children:[e("home")," > ",e("profile")," > ",e(aj[a])]}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{id:"account_tab",className:0===a?"tw:block":"tw:hidden",role:"tabpanel",children:(0,c.jsx)(rU,{})}),(0,c.jsx)("div",{id:"transactions_history_tab",className:1===a?"tw:block":"tw:hidden",role:"tabpanel",children:(0,c.jsx)(r0,{active:1===a})}),2===a&&(0,c.jsx)("div",{id:"security_tab",className:"tw:block",role:"tabpanel",children:(0,c.jsx)(au,{})}),(0,c.jsx)("div",{id:"withdrawal_tab",className:3===a?"tw:block":"tw:hidden",role:"tabpanel",children:(0,c.jsx)(ag,{})}),(0,c.jsx)("div",{id:"games_reports_tab",className:4===a?"tw:block":"tw:hidden",role:"tabpanel",children:(0,c.jsx)(av,{active:4===a})})]})]})]})]})})}var ax=ax,aN=e.i(89664);let aC=(0,A.default)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]);function aS(e){let t=(0,j.useDialogStore)(t=>e in t.openDialogs),s=(0,j.useDialogStore)(t=>t.openDialogs[e]),r=(0,j.useDialogStore)(e=>e.closeDialog),a=(0,j.useDialogStore)(e=>e.openDialog);return{isOpen:t,props:s,close:(0,d.useCallback)(()=>r(e),[r,e]),openDialog:a,closeDialog:r}}function ak(){return!("u"<typeof navigator)&&/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent)}function aA(e){let t=u.default.get("cid");t&&rd.default.get(`/api/affreport?cid=${t}&et=${e}`).catch(()=>void 0)}function aE(e){history.replaceState({},"",window.location.pathname+("remove"!==e?"?"+Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"):""))}function aI(e,t){let s=window;s.__SIDESHIFT__||(s.__SIDESHIFT__={}),"BTC"===e?(s.__SIDESHIFT__.defaultDepositMethodId="bch",s.__SIDESHIFT__.defaultSettleMethodId="btc"):"BCH"===e&&(s.__SIDESHIFT__.defaultDepositMethodId="btc",s.__SIDESHIFT__.defaultSettleMethodId="bch"),s.__SIDESHIFT__.settleAddress=t,s.sideshift&&"function"==typeof s.sideshift.show&&s.sideshift.show()}function aM(e){return e.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function aD(e){if(!e)return"";let t=e=>e.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g,'<a href="$2" target="_blank" rel="noopener">$1</a>').replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/__([^_]+)__/g,"<strong>$1</strong>").replace(/\*([^*]+)\*/g,"<em>$1</em>").replace(/_([^_]+)_/g,"<em>$1</em>"),s=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").split(/\r?\n/),r=[],a=!1,n=[],o=()=>{n.length&&(r.push(`<p>${t(n.join("<br/>"))}</p>`),n=[])},l=()=>{a&&(r.push("</ul>"),a=!1)};for(let e of s){let s=e.trim();if(!s){o(),l();continue}let i=s.match(/^(#{1,6})\s+(.*)$/);if(i){o(),l();let e=i[1].length;r.push(`<h${e}>${t(i[2])}</h${e}>`);continue}let c=s.match(/^[-*]\s+(.*)$/);if(c){o(),a||(r.push("<ul>"),a=!0),r.push(`<li>${t(c[1])}</li>`);continue}n.push(s)}return o(),l(),r.join("\n")}function aP({id:e,className:t="",dialogClassName:s="modal-dialog-centered",contentClassName:r="",onBackdropClick:a,blurBackdrop:n=!1,backdropClassName:o="",zIndex:l,children:i}){return(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{e||a?.()},children:(0,c.jsxs)(rb.DialogContent,{id:e,showCloseButton:!!a,style:l?{zIndex:l}:void 0,className:(0,sP.cn)("tw:bg-popover tw:text-foreground tw:border-border tw:max-h-[90vh] tw:overflow-y-auto",/\bmodal-lg\b/.test(s)?"tw:sm:max-w-3xl":/\bmodal-sm\b/.test(s)?"tw:sm:max-w-xs":"",n&&o,t,r),children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:"Dialog"}),i]})})}
73let aR="skeleton-loading tw:relative tw:h-6 tw:overflow-hidden tw:rounded tw:bg-[#f1f1f1]",aL=` 74@keyframes deposit-skeleton-loading { 100% { transform: translateX(100%); } } 75.skeleton-loading::before { 76 content: ''; 77 width: 100%; 78 height: 100%; 79 display: block; 80 position: absolute; 81 transform: translateX(-100%); 82 animation: deposit-skeleton-loading 1.5s linear infinite running; 83 background: linear-gradient(90deg, #f1f1f1 10%, rgba(185,189,198,0.2) 50%, #f1f1f1 90%); 84} 85`;function aT({activePage:e}){let t=ak();return(0,c.jsxs)("div",{className:"tw:bg-transparent",children:[(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:aL}}),(0,c.jsxs)("div",{className:"tw:rounded tw:bg-white tw:p-5",children:[(0,c.jsxs)("div",{className:"tw:mt-2 tw:flex",children:[(0,c.jsx)("div",{className:`${aR} tw:mr-5 tw:w-1/5`}),(0,c.jsx)("div",{className:`${aR} tw:w-[30%]`})]}),0===e?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"tw:flex tw:py-4",children:[(0,c.jsx)("div",{className:`${aR} tw:mr-2 tw:size-5`}),(0,c.jsx)("div",{className:`${aR} tw:h-5 tw:w-1/4`})]}),(0,c.jsx)("div",{className:`${aR} tw:mb-4 tw:h-12 tw:w-[189px]`}),(0,c.jsxs)("div",{className:"tw:flex",children:[(0,c.jsx)("div",{className:`${aR} tw:size-24`}),(0,c.jsxs)("div",{className:"tw:ml-4 tw:flex tw:flex-1 tw:flex-col",children:[(0,c.jsxs)("div",{className:"tw:flex tw:h-10",children:[(0,c.jsx)("div",{className:`${aR} tw:mr-1.5 tw:h-full tw:flex-1`}),(0,c.jsx)("div",{className:`${aR} tw:h-full tw:w-10`})]}),(0,c.jsx)("div",{className:`${aR} tw:mt-3 tw:h-4`}),(0,c.jsx)("div",{className:`${aR} tw:mt-[5px] tw:h-4 tw:w-[35%]`})]})]})]}):1===e?(0,c.jsx)("div",{className:`${aR} tw:mt-5 tw:h-9`}):(0,c.jsx)("div",{className:`${aR} tw:mt-5 tw:h-[450px] tw:w-full`})]}),0===e&&(0,c.jsxs)("div",{className:"tw:mt-[5px] tw:overflow-hidden tw:rounded tw:bg-white tw:p-5",children:[(0,c.jsxs)("div",{className:"tw:flex tw:py-1",children:[(0,c.jsx)("div",{className:`${aR} tw:mr-2 tw:size-5`}),(0,c.jsx)("div",{className:`${aR} tw:h-5 tw:w-2/5`})]}),(0,c.jsx)("div",{className:`${aR} tw:mb-4 tw:h-4 tw:w-3/4`}),(0,c.jsxs)("div",{className:"tw:my-5 tw:flex",children:[(0,c.jsx)("div",{className:`${aR} tw:w-1/2`}),(0,c.jsx)("div",{className:`${aR} tw:ml-2 tw:w-1/2`})]}),(0,c.jsx)("div",{className:"tw:flex tw:justify-around",children:Array.from({length:t?4:6},(e,s)=>(0,c.jsx)("div",{style:{width:t?"24%":"15.5%"},className:`${aR} tw:h-16`},s))}),(0,c.jsx)("div",{className:`${aR} tw:my-5 tw:mb-[6px] tw:ml-auto tw:h-9 tw:w-1/4`})]})]})}function aO({isOpen:e,close:t,openWindowWithSignedUrl:s,legacyMoonpayMethods:r=!1}){let{t:a}=(0,p.useI18n)(),n=ak(),o=(0,g.useAccountStore)(e=>e.userAddress),l=(0,g.useAccountStore)(e=>e.userId),i=(0,g.useAccountStore)(e=>e.userCountryCode),c=(0,g.useAccountStore)(e=>e.depositIncomingCryptoAmount),w=(0,g.useAccountStore)(e=>e.limitedAccount),u=(0,g.useAccountStore)(e=>e.signedMoonPayUrl),m=(0,g.useAccountStore)(e=>e.getDepositAddress),h=(0,g.useAccountStore)(e=>e.getSignedMoonpayUrl),f=rw(e=>e.countriesList),y=rw(e=>e.countryCurrencies),v=rw(e=>e.selectedPaymentMethod),b=rw(e=>e.setSelectedPaymentMethod),j=rw(e=>e.getAllCountriesList),_=rw(e=>e.getCountryDataWithPaymentMethod),[N,C]=(0,d.useState)(0),[S,k]=(0,d.useState)(!1),[A,E]=(0,d.useState)(!1),[I,M]=(0,d.useState)(""),[D,P]=(0,d.useState)(!0),[R,L]=(0,d.useState)(!1),[T,O]=(0,d.useState)(""),[B,$]=(0,d.useState)(""),[z,F]=(0,d.useState)([]),[U,G]=(0,d.useState)(!1),[H,W]=(0,d.useState)(0),[Y,q]=(0,d.useState)(!1),K=(0,d.useRef)([]),V=(0,d.useRef)(0),X=(0,d.useRef)(null),Q=(0,d.useRef)(0);Q.current=N,(0,d.useEffect)(()=>{O((o||"").split(":")[1]||o||"")},[o]);let Z=(0,d.useRef)(c);(0,d.useEffect)(()=>{c!==Z.current&&(Z.current=c,t())},[c,t]);let J=(0,d.useCallback)(async e=>{let t=f[e];if(!t)return;let s=[];if(r?t.moonpay&&(t.moonpayMethods||[]).forEach(e=>s.push({method:e,aggregator:"moonpay"})):("true"===String(t.moonpay)||!0===t.moonpay)&&(await _({filter_country:t.countryCode}),rw.getState().paymentMethod.forEach(e=>s.push({method:e.methodName,aggregator:"moonpay"}))),("true"===String(t.xanpool)||!0===t.xanpool)&&"BTC"===x.env.platformCurrency){if(0===K.current.length)try{let e=await rd.default.get("/api/xanpool/methods");e.data.buy&&(K.current=e.data.buy)}
85catch(e){console.log("could not reach xanpool")}K.current.filter(e=>e.country===t.countryCode).map(e=>e.methods).forEach(e=>{e.forEach(e=>s.push({method:e.method,aggregator:"xanpool"}))})}F(s),G(!1)},[f,_,r]);(0,d.useEffect)(()=>{""!==B&&J(B)},[B]);let ee=(0,d.useCallback)(async(e=H)=>{let t=z[e];if(t)if("moonpay"===t.aggregator){let e="USD",t=""!==B?f[B]:void 0,r=y.filter(e=>e.country===t?.countryCode);0===r.length?0!==(r=y.filter(e=>e.country===i)).length&&(e=r[0].currency):e=r[0].currency,E(!0),await m();let a=(g.useAccountStore.getState().userAddress||"").split(":")[1]||g.useAccountStore.getState().userAddress,n=`${x.env.moonPayUrl}?apiKey=${x.env.moonPayApiKey}¤cyCode=${x.env.platformCurrency}&colorCode=%2300C58A&baseCurrencyCode=${e}&walletAddress=${a}`,o=await h(n);E(!1);let l=window.open();l&&(l.location=s?o:n)}else"xanpool"===t.aggregator&&(M(`${x.env.xanpoolUrl}/?apiKey=${x.env.xanpoolApiKey}&partnerData=${l}&method=${t.method}&transactionType=buy&cryptoCurrency=${x.env.platformCurrency}&wallet=${T}`),q(!0),C(4))},[z,H,B,f,y,i,m,h,s,l,T]),et=(0,d.useRef)(v);function es(e){V.current++,W(e),1===V.current?X.current=setTimeout(()=>{V.current=0},250):2===V.current&&(clearTimeout(X.current),V.current=0,ee(e))}function er(){aI(x.env.platformCurrency,g.useAccountStore.getState().userAddress),aE("remove"),t()}return(0,d.useEffect)(()=>{if(v!==et.current){if(et.current=v,void 0!==v)if(n)P(!1),C(0),es(v);else{if(P(!0),C(-99),-1===v)return;let e=f.map(e=>e.countryCode).indexOf((i||"").toUpperCase());e<0&&(e=0),$(e),window.setTimeout(()=>{ee(v)},1e3)}}},[v]),(0,d.useEffect)(()=>{if(!e){C(0),b(-1);return}C(0),L(!1),aA("open_deposit_screen"),0===f.length&&j();let t=!1,s=e=>{window.setTimeout(()=>{if(t)return;let r=g.useAccountStore.getState().userAddress;if(r){O(r.split(":")[1]||r);let e=rw.getState().countriesList.map(e=>e.countryCode).indexOf((i||"").toUpperCase());e<0&&(e=0),$(e),P(!1),q(-99===Q.current)}else s(e)},e)};s(500),o.length||m().then(e=>{!t&&e&&e.error&&(t=!0,L(!0),P(!1))});let r=new URL(location.href).searchParams;return r.has("convert")?(C(1),er()):r.has("buy")&&C(0),()=>{t=!0}},[e]),{t:a,isMobile:n,userAddress:o,limitedAccount:w,signedMoonPayUrl:u,countriesList:f,activePage:N,setActivePage:C,copied:S,moonpayLoadingSignedUrl:A,xanpoolUrl:I,loading:D,addressError:R,retryAddress:(0,d.useCallback)(async()=>{L(!1),P(!0);let e=await m();if(e&&e.error){L(!0),P(!1);return}let t=g.useAccountStore.getState().userAddress;t&&O(t.split(":")[1]||t),P(!1)},[m]),userAddr:T,selectedCountry:B,setSelectedCountry:$,availablePaymentMethods:z,paymentMethodsLoading:U,selectedPaymentMethodIdx:H,thirdPartyPaymentMethodLoader:Y,setPaymentIndex:e
85s,usePaymentMethod:ee,doCopy:function(e){"u">typeof navigator&&navigator.clipboard&&navigator.clipboard.writeText(e).catch(()=>void 0),k(!0),aA("copy_address"),setTimeout(()=>k(!1),3e3)},openSideShift:er,iFrameLoaded:function(){q(!1)}}}function aB({id:e="country-dropdown",countries:t,value:s,onChange:r}){let{t:a}=(0,p.useI18n)(),[n,o]=(0,d.useState)(!1),l=e=>e?(0,c.jsxs)(c.Fragment,{children:[!e.countryCode&&(0,c.jsx)("img",{src:"/static/images/flags/world.svg",className:"tw:size-5 tw:shrink-0 tw:rounded-sm",alt:"country flag"}),e.countryCode&&(0,c.jsx)("img",{src:`/static/images/flags/${String(e.countryCode).toUpperCase()}.png`,className:"tw:size-5 tw:shrink-0 tw:rounded-sm",alt:"country flag"}),(0,c.jsx)("span",{className:"tw:truncate",children:e.countryCode?a(String(e.country).replace(/ /g,"_").toLowerCase()):a("all_other_countries")})]}):null,i=""===s?void 0:t[s];return(0,c.jsxs)(sR,{open:n,onOpenChange:o,children:[(0,c.jsxs)(sL,{id:e,className:"tw:flex tw:w-full tw:items-center tw:justify-between tw:gap-2 tw:rounded-md tw:border tw:border-border tw:bg-background tw:px-3 tw:py-2 tw:text-sm tw:text-foreground tw:cursor-pointer tw:outline-none tw:focus-visible:ring-ring/50 tw:focus-visible:ring-[3px]",children:[(0,c.jsx)("span",{className:"tw:flex tw:min-w-0 tw:items-center tw:gap-2",children:l(i)}),(0,c.jsx)(E,{className:"tw:size-4 tw:shrink-0 tw:text-muted-foreground"})]}),(0,c.jsx)(sT,{className:"tw:max-h-64 tw:w-[var(--radix-dropdown-menu-trigger-width)] tw:overflow-y-auto",children:t.map((e,t)=>(0,c.jsxs)(sO,{onSelect:()=>r(t),className:"tw:gap-2",children:[l(e),t===s&&(0,c.jsx)(aN.Check,{className:"tw:ml-auto tw:size-4 tw:text-primary"})]},t))})]})}function a$({availablePaymentMethods:e,selectedPaymentMethodIdx:t,setPaymentIndex:s,countries:r,selectedCountry:a}){let n=""===a?void 0:r[a];return(0,c.jsx)("div",{className:"tw:mb-[14px] tw:flex tw:w-full tw:flex-wrap tw:gap-2",children:e.map((e,r)=>(0,c.jsxs)("div",{className:`tw:flex tw:h-10 tw:cursor-pointer tw:flex-row tw:items-center tw:justify-center tw:gap-2 tw:rounded-lg tw:bg-[rgba(43,50,57,0.4)] tw:px-4 tw:py-2 ${r===t?"tw:border tw:border-[#08c08e]":""}`,onClick:()=>s(r),id:"paymentblock-tooltip-trigger"+r,title:aM(e.method),children:["moonpay"===e.aggregator&&"credit_card"===e.method&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-row tw:gap-x-[10px]",children:[(0,c.jsx)("img",{className:"tw:h-full tw:w-[90%] tw:object-contain",src:"/static/images/payments/credit-card-icon.png",alt:"credit card"}),(0,c.jsx)("img",{className:"tw:h-full tw:w-[90%] tw:object-contain",src:"/static/images/payments/visa-icon.png",alt:"visa icon"}),(0,c.jsx)("img",{className:"tw:h-full tw:w-[90%] tw:object-contain",src:"/static/images/payments/mastercard-icon.svg",alt:"mastercard icon"})]}),"moonpay"===e.aggregator&&"apple_pay"===e.method&&(0,c.jsx)("img",{className:"tw:h-full tw:w-[90%] tw:object-contain",src:"/static/images/payments/apple-pay-icon.png",alt:"apple pay"}),"moonpay"===e.aggregator&&"google_pay"===e.method&&(0,c.jsx)("img",{className:"tw:h-full tw:w-[90%] tw:object-contain",src:"/static/images/payments/google_pay.png",alt:"google pay"}),"moonpay"===e.aggregator&&"samsung_pay"===e.method&&(0,c.jsx)("img",{className:"tw:h-full tw:w-[90%] tw:object-contain",src:"/static/images/payments/samsung_pay.svg",alt:"samsung pay logo"}),"moonpay"!==e.aggregator&&n&&(0,c.jsx)("img",{className:"tw:h-full tw:w-[90%] tw:object-contain",src:"/static/images/payments/"+String(n.countryCode).toLowerCase()+"-"+e.method+("sepa_bank_transfer"===e.method?".svg":".jpg"),alt:"payment image"})]},r))})}function az(){let{locale:e}=(0,p.useI18n)(),{isOpen:t,close:s,openDialog:r}=aS("preDeposit"),a=ak(),n=aO({isOpen:t,close:s,openWindowWithSignedUrl:!1,legacyMoonpayMethods:!0});if((0,d.useEffect)(()=>{t&&n.limitedAccount&&(r("newRestrictedRegion"),s())},[t,n.limitedAccount]),!t||n.limitedAccount)return null;let{t:o}=n,l=""===n.selectedCountry?void 0:n.countriesList[n.selectedCountry],i=e=>`tw:h-[19px] tw:w-[97px] tw:cursor-pointer tw:text-[16px] ${e?"tw:border-b-2 tw:border-[rgb(19,209,156)] tw:pb-1 tw:font-bold tw:text-black":"tw:font-medium tw:text-black/50"}`,w="tw:m-0 tw:inline tw:align-middle tw:text-[1rem] tw:font-bold",u="tw:absolute tw:inset-0 tw:m-auto tw:h-full tw:w-[90%] tw:object-contain";return(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{e||s()},children:(0,c.jsxs)(rb.DialogContent,{id:"pre_deposit_dialog",className:"tw:bg-popover tw:text-foreground tw:border-border tw:max-h-[90vh] tw:w-[500px] tw:max-w-[90%] tw:overflow-y-auto",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:o("deposit")}),(!n.userAddress||n.loading||n.thirdPartyPaymentMethodLoader)&&!n.addressError&&(0,c.jsx)(aT,{activePage:n.activePage}),n.addressError&&(0,c.jsxs)("div",{className:"tw:flex tw:min-h-[200px] tw:w-[328px] tw:max-w-full tw:flex-col tw:items-center tw:justify-center tw:gap-4 tw:rounded-lg tw:bg-black tw:p-6 t
85w:text-center tw:text-white",children:[(0,c.jsx)("p",{className:"tw:m-0 tw:text-[15px] tw:text-[#b9bdc6]",children:"We couldn't load your deposit address. Please try again."}),(0,c.jsx)(s3.Button,{onClick:()=>void n.retryAddress(),children:"Try again"})]}),n.userAddress&&!n.loading&&(0,c.jsxs)("div",{className:n.thirdPartyPaymentMethodLoader?"tw:hidden":"",children:[(0,c.jsxs)("div",{className:"tw:rounded tw:bg-white tw:p-[10px]",children:[(0,c.jsx)("div",{className:"tw:mt-3 tw:mb-4 tw:w-full",children:(0,c.jsxs)("ul",{className:"tw:mb-2 tw:flex tw:list-none tw:gap-x-5 tw:pl-[10px]",children:[(0,c.jsx)("li",{className:"tw:relative",children:(0,c.jsx)("a",{onClick:()=>n.setActivePage(0),className:i(0===n.activePage),children:o("deposit")})}),(0,c.jsx)("li",{className:"tw:relative",children:(0,c.jsx)("a",{onClick:()=>n.setActivePage(1),className:i(1===n.activePage),id:"convertcoins-tooltip-trigger",title:a?void 0:o("swap_altcoins_to",{currency:x.env.platformCurrency}),children:o("convert_coins")})})]})}),0===n.activePage&&(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:px-[10px] tw:py-4",children:[(0,c.jsx)("img",{src:"/assets/images/dialog/handout.svg",alt:"",className:"tw:mr-[7px]"}),(0,c.jsx)("p",{className:w+" tw:text-black",children:o("crypto")})]}),(0,c.jsx)("div",{className:"tw:px-[10px] tw:pb-4 tw:pt-0",children:(0,c.jsxs)("div",{className:"tw:flex tw:h-12 tw:w-[189px] tw:items-center tw:gap-3 tw:rounded tw:px-3 tw:shadow-[0px_2px_8px_0px_rgba(0,0,0,0.1)]",children:["BTC"===x.env.platformCurrency&&(0,c.jsx)("img",{src:"/assets/images/footer/btc-logo.svg",alt:"bitcoin logo",className:"tw:size-6"}),"BCH"===x.env.platformCurrency&&(0,c.jsx)("img",{alt:"bitcoin cash logo",src:"/assets/images/footer/bch-logo.svg",className:"tw:size-6"}),(0,c.jsxs)("div",{className:"tw:flex tw:items-baseline tw:gap-[10px] tw:text-[16px] tw:text-black",children:[(0,c.jsx)("p",{className:"tw:font-bold",children:x.env.platformCurrency}),"BTC"===x.env.platformCurrency&&(0,c.jsx)("p",{className:"tw:font-medium tw:text-black/50",children:"Bitcoin"}),"BCH"===x.env.platformCurrency&&(0,c.jsx)("p",{className:"tw:font-medium tw:text-black/50",children:"Bitcoin Cash"})]})]})}),(0,c.jsxs)("div",{className:"tw:relative tw:mb-[6px] tw:ml-[10px] tw:flex",children:["BTC"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:`bitcoin:${n.userAddress}`,size:96,className:"qr-code"}),"BCH"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:n.userAddress,size:96,className:"qr-code"}),(0,c.jsxs)("div",{className:"tw:ml-4 tw:flex tw:max-w-full tw:flex-1 tw:flex-col tw:overflow-hidden",children:[(0,c.jsxs)("div",{className:"tw:flex tw:overflow-hidden",children:[(0,c.jsxs)("div",{className:"tw:mr-[6px] tw:flex tw:h-10 tw:flex-1 tw:items-center tw:justify-between tw:overflow-hidden tw:rounded tw:bg-[rgba(45,50,59,0.05)] tw:px-2 tw:py-[3px]",children:[!n.copied&&(0,c.jsx)("p",{className:"tw:min-w-0 tw:truncate tw:text-[16px] tw:font-bold tw:text-[rgb(0,145,255)]",children:n.userAddr}),n.copied&&(0,c.jsx)("p",{className:"tw:min-w-0 tw:truncate tw:text-[16px] tw:font-bold tw:text-[rgb(0,145,255)]",children:o(a?"copied":"address_copied_to_clipboard")}),(0,c.jsxs)("div",{className:"tw:m-0.5 tw:flex tw:h-[90%] tw:w-7 tw:cursor-pointer tw:items-center tw:justify-center tw:rounded",onClick:()=>n.doCopy(n.userAddr),children:[!n.copied&&(0,c.jsx)(rO.Copy,{className:"tw:size-4 tw:text-[rgb(19,209,156)]"}),n.copied&&(0,c.jsx)(aN.Check,{className:"tw:size-4 tw:text-[rgb(0,123,255)]"})]})]}),(0,c.jsx)("a",{href:(0,_.explorerAddressUrl)(x.env.platformCurrency,n.userAddress),target:"_blank",rel:"noreferrer",children:(0,c.jsx)("div",{className:"tw:flex tw:size-10 tw:cursor-pointer tw:items-center tw:justify-center tw:rounded tw:bg-[rgba(45,50,59,0.05)] tw:text-[rgb(19,209,156)]",id:"exploreropen-tooltip-trigger",title:a?void 0:o("open_in_explorer"),children:(0,c.jsx)(aC,{className:"tw:size-5"})})})]}),(0,c.jsxs)("p",{className:"tw:mt-3 tw:mb-0 tw:flex tw:w-full tw:items-center tw:gap-1 tw:text-[0.75rem] tw:text-[#505662]",children:[(0,c.jsx)(ax.default,{className:"tw:size-4 tw:shrink-0 tw:text-yellow-500","aria-hidden":"true"}),(0,c.jsx)("span",{dangerouslySetInnerHTML:{__html:o("only_send_currency").replace("{currency}",`<strong>${x.env.platformCurrency}</strong>`)}})]})]})]})]}),1===n.activePage&&(0,c.jsx)("div",{children:(0,c.jsx)(s3.Button,{className:"tw:mx-auto tw:mt-5 tw:block tw:w-full",onClick:n.openSideShift,children:o("convert_coins")})}),3===n.activePage&&(0,c.jsx)("div",{children:(0,c.jsx)("iframe",{allow:"accelerometer; autoplay; camera; gyroscope; payment",className:"tw:h-[450px] tw:w-full tw:border-none",id:"moonpayIframe",src:n.signedMoonPayUrl,onLoad:n.iFrameLoaded,children:(0,c.jsx)("p",{children:o("your_browser_does_not")})})}),4===n.activePage&&(0,c.jsx)("div",{children:(0,c.jsx)("iframe",{allow:"accelerometer; autoplay; camera; gyroscope; payment",className:"tw:h-[540px] tw:w-full tw:border-none",id:"moonpayIframe",src:n.xanpoolUrl,onLoad:n.iFrameLoaded,children:(0,c.jsx)("p",{children:o("your_browser_does_not")})})})]}),0===n.activePage&&(0,c.jsxs)("div",{className:"tw:mt-[5px] tw:overflow-hidden tw:rounded tw:bg-white tw:p-[10px]",children:[(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:px-[10px] tw:py-1",children:[(0,c.jsx)("img",{className:"tw:mr-[7px]",src:"/assets/images/dialog/creditcard-2.svg",alt:"credit card illustration"}),(0,c.jsx)("p",{className:w+" tw:text-black",children:o("credit_cards_ewallets")})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"tw:ml-[11px] tw:text-[14px] tw:font-normal tw:text-[#505662]",children:o("select_a_country_then")}),(0,c.jsxs)("div",{className:"tw:grid tw:grid-cols-2 tw:gap-2",style:{padding:"0 10px",margin:"20px 0"},children:[(0,c.jsx)("div",{children:(0,c.jsx)(aB,{id:"country",countries:n.countriesList,value:n.selectedCountry,onChange:n.setSelectedCountry})}),(0,c.jsx)("div",{children:(0,c.jsxs)("div",{className:"tw:flex tw:h-8 tw:items-center tw:rounded tw:bg-[#f5f5f5] tw:text-[13px] tw:text-[#505662]",children:[(0,c.jsx)("img",{src:"/assets/images/dialog/info.png",id:"credited-tooltip-trigger",alt:"more info illustration",className:"tw:mx-[9px] tw:size-[14px]",style:{cursor:"pointer"},title:o("the_method_you_select",{currency:x.env.platformCurrency})}),(0,c.jsx)("p",{className:"tw:mb-0 tw:leading-[14px]",children:(0,c.jsx)("span",{dangerouslySetInnerHTML:{__html:o("you_will_be_credited").replace("{currency}",`<strong>${x.env.platformCurrency}</strong>`)}})})]})})]}),n.paymentMethodsLoading&&(0,c.jsx)("p",{className:"tw:text-center tw:text-[14px] tw:font-medium tw:text-black",children:"Loading Payment Methods..."}),!n.paymentMethodsLoading&&(0,c.jsx)("div",{className:"tw:flex tw:max-h-20 tw:w-full tw:min-w-full tw:flex-wrap tw:overflow-y-auto tw:px-[11px]",children:n.availablePaymentMethods.map((e,t)=>(0,c.jsxs)("div",{className:`tw:relative tw:mr-[1%] tw:mb-[1%] tw:h-16 tw:w-[15.5%] tw:cursor-pointer tw:md:w-[24%] ${t===n.selectedPaymentMethodIdx?"tw:rounded tw:border-2 tw:border-[rgb(0,145,255)]":""}`,onClick:()=>n.setPaymentIndex(t),id:"paymentblock-tooltip-trigger"+t,title:aM(e.method),children:[t===n.selectedPaymentMethodIdx&&(0,c.jsx)("span",{className:"tw:absolute tw:right-[5px] tw:top-[5px] tw:z-[1] tw:size-3 tw:bg-contain tw:bg-no-repeat",style:{backgroundImage:"url(/assets/images/dialog/checkmark.png)"}}),"moonpay"===e.aggregator&&"credit_card"===e.method&&(0,c.jsx)("img",{className:u,src:"/static/images/payments/moonpay.svg",alt:"credit logo"}),"moonpay"===e.aggregator&&"apple_pay"===e.method&&(0,c.jsx)("img",{className:u,src:"/static/images/payments/apple_pay.png",alt:"apple pay logo"}),"moonpay"===e.aggregator&&"google_pay"===e.method&&(0,c.jsx)("img",{className:u,src:"/static/images/payments/google_pay.png",alt:"google pay logo"}),"moonpay"===e.aggregator&&"samsung_pay"===e.method&&(0,c.jsx)("img",{className:u,src:"/static/images/payments/samsung_pay.svg",alt:"samsung pay logo"}),"moonpay"!==e.aggregator&&l&&(0,c.jsx)("img",{className:u,src:"/static/images/payments/"+String(l.countryCode).toLowerCase()+"-"+e.method+".jpg",alt:"payment image"})]},t))}),!n.paymentMethodsLoading&&n.availablePaymentMethods[n.selectedPaymentMethodIdx]&&(0,c.jsxs)(s3.Button,{className:"tw:mt-3 tw:w-full",disabled:n.moonpayLoadingSignedUrl,onClick:()=>n.usePaymentMethod(),children:[o("use")," ",aM(n.availablePaymentMethods[n.selectedPaymentMethodIdx].method)]}),!n.paymentMethodsLoading&&!n.availablePaymentMethods[n.selectedPaymentMethodIdx]&&(0,c.jsx)(s3.Button,{className:"tw:mt-3 tw:w-full",disabled:!0,children:o("select_a_method")})]})]})]})]})})}var aF=e.i(32781);function aU(){let{locale:e}=(0,p.useI18n)(),{isOpen:t,close:s,openDialog:r}=aS(j.DIALOGS.newDeposit),a=aO({isOpen:t,close:s,openWindowWithSignedUrl:!0});if((0,d.useEffect)(()=>{t&&a.limitedAccount&&(r("restrictedRegion"),s())},[t,a.limitedAccount]),!t||a.limitedAccount)return null;let{t:n}=a,o=e=>`tw:flex tw:cursor-pointer tw:flex-row tw:items-center tw:justify-center tw:gap-2 tw:rounded-lg tw:bg-[rgba(43,50,57,0.5)] tw:px-[17px] tw:py-2 ${e?"tw:border tw:border-[#08c08e]":""}`,l=e=>`tw:flex tw:items-center tw:text-center tw:text-[14px]/[17px] tw:font-semibold ${e?"tw:text-[#08c08e]":"tw:text-white"}`,i="tw:mt-3 tw:mb-0 tw:flex tw:justify-center tw:text-[12px]/[14px] tw:font-normal tw:text-[#ffcc4a]";return(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{e||s()},children:(0,c.jsxs)(rb.DialogContent,{id:"pre_new_deposit_dialog",className:"tw:bg-popover tw:text-foreground tw:border-border tw:max-h-[90vh] tw:w-full tw:max-w-[420px] tw:sm:max-w-[420px] tw:overflow-y-auto",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:n("deposit")}),(!a.userAddress||a.loading||a.thirdPartyPaymentMethodLoader)&&!a.addressError&&(0,c.jsxs)("div",{className:"tw:flex tw:h-[200px] tw:items-center tw:justify-center tw:gap-2 tw:uppercase tw:text-white",children:[(0,c.jsx)(aF.Loader2,{className:"tw:size-5 tw:animate-spin"}),"Loading..."]}),a.addressError&&(0,c.jsxs)("div",{className:"tw:flex tw:min-h-[200px] tw:w-[328px] tw:max-w-full tw:flex-col tw:items-center tw:justify-center tw:gap-4 tw:rounded-lg tw:bg-black tw:p-6 t
85w:text-center tw:text-white",children:[(0,c.jsx)("p",{className:"tw:m-0 tw:text-[15px] tw:text-[#b9bdc6]",children:"We couldn't load your deposit address. Please try again."}),(0,c.jsx)(s3.Button,{onClick:()=>void a.retryAddress(),children:"Try again"})]}),a.userAddress&&!a.loading&&(0,c.jsx)("div",{className:a.thirdPartyPaymentMethodLoader?"tw:hidden":"",children:(0,c.jsxs)("div",{className:"tw:rounded-lg tw:bg-black tw:px-6 tw:pt-4 tw:pb-3",children:[(0,c.jsx)("div",{className:"tw:mb-5 tw:mt-[52px] tw:flex tw:w-full",children:(0,c.jsxs)("ul",{className:"tw:m-0 tw:flex tw:w-full tw:list-none tw:items-center tw:justify-between tw:gap-x-4 tw:p-0",children:[(0,c.jsx)("li",{id:"depositbitcoin-tooltip-trigger",onClick:()=>a.setActivePage(0),className:o(0===a.activePage),title:n("BCH"===x.env.platformCurrency?"deposit_bitcoincash":"deposit_bitcoin"),children:(0,c.jsxs)("a",{className:l(0===a.activePage),children:["BCH"===x.env.platformCurrency&&(0,c.jsx)("span",{children:n("deposit_bitcoincash")}),"BTC"===x.env.platformCurrency&&(0,c.jsx)("span",{children:n("deposit_bitcoin")})]})}),(0,c.jsx)("li",{id:"buycrypto-tooltip-trigger",onClick:()=>
85a.setActivePage(1),className:o(1===a.activePage),title:n("buy_crypto"),children:(0,c.jsx)("a",{className:l(1===a.activePage),children:n("buy_crypto")})})]})}),0===a.activePage&&(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"tw:mx-auto tw:mt-5 tw:h-[280px] tw:w-[280px] tw:rounded-xl tw:bg-white tw:p-[10px]",children:["BTC"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:`bitcoin:${a.userAddress}`,size:260,className:"qr-code"}),"BCH"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:a.userAddress,size:260,className:"qr-code"})]}),(0,c.jsxs)("div",{className:"tw:flex tw:max-w-full tw:flex-1 tw:flex-col tw:overflow-hidden",children:[(0,c.jsx)("div",{className:"tw:mt-5 tw:flex tw:overflow-hidden tw:rounded-lg tw:border tw:border-[#505662]",children:(0,c.jsxs)("div",{className:"tw:flex tw:h-10 tw:flex-1 tw:items-center tw:justify-between tw:overflow-hidden tw:rounded tw:bg-[rgba(45,50,59,0.05)] tw:px-2 tw:py-[3px]",children:[!a.copied&&(0,c.jsx)("p",{className:"tw:min-w-0 tw:truncate tw:text-[14px] tw:text-white",children:a.userAddr}),a.copied&&(0,c.jsx)("p",{className:"tw:min-w-0 tw:truncate tw:text-[14px] tw:text-white",children:n("address_copied")}),(0,c.jsxs)("div",{className:"tw:m-0.5 tw:flex tw:h-[19px] tw:w-[22px] tw:cursor-pointer tw:items-center tw:justify-center tw:rounded",onClick:()=>a.doCopy(a.userAddr),children:[!a.copied&&(0,c.jsx)(rO.Copy,{className:"tw:size-4 tw:text-white"}),a.copied&&(0,c.jsx)(aN.Check,{className:"tw:size-4 tw:text-[rgb(0,123,255)]"})]})]})}),"BTC"===x.env.platformCurrency&&(0,c.jsx)("p",{className:i,children:n("only_deposit_bitcoin")}),"BCH"===x.env.platformCurrency&&(0,c.jsx)("p",{className:i,children:n("only_deposit_bitcoincash")})]})]}),0===a.activePage&&(0,c.jsxs)("div",{className:"tw:mt-[35px] tw:mb-[10px] tw:flex tw:w-full tw:cursor-pointer tw:flex-row tw:items-center tw:justify-start tw:rounded-lg tw:border tw:px-3 tw:py-2 tw:text-[#505662]",onClick:a.openSideShift,children:[(0,c.jsx)("img",{src:"/static/images/payments/crpto-exchange.png",className:"tw:mr-[14px] tw:size-5",alt:"crypto exchange"}),(0,c.jsx)("a",{className:"tw:grow tw:text-[14px]/[16px] tw:font-medium tw:text-white",children:n("convert_coins_now")}),(0,c.jsx)("img",{src:"/static/images/payments/right-arrrow.png",className:"tw:h-[14px]",alt:"right arrow"})]}),1===a.activePage&&(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"tw:mb-5",children:(0,c.jsx)(aB,{id:"country-dropdown",countries:a.countriesList,value:a.selectedCountry,onChange:a.setSelectedCountry})}),a.paymentMethodsLoading&&(0,c.jsx)("p",{className:"tw:text-center tw:text-[14px] tw:font-medium tw:text-white",children:"Loading Payment Methods..."}),!a.paymentMethodsLoading&&(0,c.jsx)(a$,{availablePaymentMethods:a.availablePaymentMethods,selectedPaymentMethodIdx:a.selectedPaymentMethodIdx,setPaymentIndex:a.setPaymentIndex,countries:a.countriesList,selectedCountry:a.selectedCountry}),!a.paymentMethodsLoading&&a.availablePaymentMethods[a.selectedPaymentMethodIdx]&&(0,c.jsxs)(s3.Button,{className:"tw:mt-3 tw:w-full",disabled:a.moonpayLoadingSignedUrl,onClick:()=>a.usePaymentMethod(),children:[n("use")," ",aM(a.availablePaymentMethods[a.selectedPaymentMethodIdx].method),(0,c.jsx)("img",{src:"/static/images/payments/new-page.png",alt:"new page"})]}),!a.paymentMethodsLoading&&!a.availablePaymentMethods[a.selectedPaymentMethodIdx]&&(0,c.jsxs)(s3.Button,{className:"tw:mt-3 tw:w-full",disabled:!0,children:[n("select_a_method"),(0,c.jsx)("img",{src:"/static/images/payments/new-page.png",alt:"new page"})]}),(0,c.jsxs)("div",{className:"tw:mb-7 tw:flex tw:items-center tw:justify-center",children:[(0,c.jsx)("p",{className:"tw:mb-0 tw:flex tw:items-center tw:pr-1 tw:text-[12px]/[14px] tw:text-[#676f7e]",children:n("power_by")}),(0,c.jsx)("img",{src:"/static/images/payments/moonpay-logo.svg",alt:"moonpay logo",className:"tw:h-[10px]"})]})]}),3===a.activePage&&(0,c.jsx)("div",{children:(0,c.jsx)("iframe",{allow:"accelerometer; autoplay; camera; gyroscope; payment",className:"tw:h-[450px] tw:w-full tw:border-none",id:"moonpayIframe",src:a.signedMoonPayUrl,onLoad:a.iFrameLoaded,children:(0,c.jsx)("p",{children:n("your_browser_does_not")})})}),4===a.activePage&&(0,c.jsx)("div",{children:(0,c.jsx)("iframe",{allow:"accelerometer; autoplay; camera; gyroscope; payment",className:"tw:h-[540px] tw:w-full tw:border-none",id:"moonpayIframe",src:a.xanpoolUrl,onLoad:a.iFrameLoaded,children:(0,c.jsx)("p",{children:n("your_browser_does_not")})})})]})})]})})}function aG(){let{locale:e}=(0,p.useI18n)(),t=(0,g.useAccountStore)(e=>e.canvasOpen),s=(0,g.useAccountStore)(e=>e.setCanvasOpen),{isOpen:r,closeDialog:a,openDialog:n}=aS("newDepositCanvas"),o=t||r,l=(0,d.useCallback)(()=>{s(!1),a("newDepositCanvas")},[s,a]),i=aO({isOpen:o,close:l,openWindowWithSignedUrl:!1});(0,d.useEffect)(()=>{o&&i.limitedAccount&&(n("restrictedRegion"),l())},[o,i.limitedAccount]);let{t:w}=i,u=e=>`tw:flex tw:cursor-pointer tw:flex-row tw:items-center tw:justify-center tw:gap-2 tw:rounded-lg tw:bg-[rgba(43,50,57,0.5)] tw:px-[17px] tw:py-2 ${e?"tw:border tw:border-[#08c08e]":""}`,m=e=>`tw:flex tw:items-center tw:text-center tw:text-[14px]/[17px] tw:font-semibold ${e?"tw:text-[#08c08e]":"tw:text-white"}`,h="tw:mt-3 tw:mb-0 tw:flex tw:justify-center tw:text-[12px]/[14px] tw:font-normal tw:text-[#ffcc4a]";return(0,c.jsx)(sJ,{open:o&&!i.limitedAccount,onOpenChange:e=>{e||l()},children:(0,c.jsxs)(s2,{side:"bottom",id:"pre_new_deposit_canvas",className:"tw:bg-popover tw:text-foreground tw:border-border tw:max-h-[90vh] tw:overflow-y-auto tw:rounded-t-2xl tw:p-4",children:[(0,c.jsx)(s5,{className:"tw:sr-only",children:w("deposit")}),(!i.userAddress||i.loading)&&!i.addressError&&!i.limitedAccount&&(0,c.jsxs)("div",{className:"tw:flex tw:h-[200px] tw:w-full tw:items-center tw:justify-center tw:gap-2 tw:uppercase tw:text-white",children:[(0,c.jsx)(aF.Loader2,{className:"tw:size-5 tw:animate-spin"}),"Loading..."]}),i.addressError&&!i.limitedAccount&&(0,c.jsxs)("div",{className:"tw:flex tw:min-h-[200px] tw:w-[328px] tw:max-w-full tw:flex-col tw:items-center tw:justify-center tw:gap-4 tw:rounded-lg tw:bg-black tw:p-6 t
85w:text-center tw:text-white",children:[(0,c.jsx)("p",{className:"tw:m-0 tw:text-[15px] tw:text-[#b9bdc6]",children:"We couldn't load your deposit address. Please try again."}),(0,c.jsx)(s3.Button,{onClick:()=>void i.retryAddress(),children:"Try again"})]}),i.userAddress&&!i.loading&&!i.limitedAccount&&(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"tw:mb-3 tw:flex tw:w-full tw:md:mt-[52px]",children:(0,c.jsxs)("ul",{className:"tw:m-0 tw:flex tw:w-full tw:list-none tw:items-center tw:justify-between tw:gap-x-4 tw:p-0",children:[(0,c.jsx)("li",{id:"depositbitcoin-tooltip-trigger",onClick:()=>i.setActivePage(0),className:u(0===i.activePage),children:(0,c.jsxs)("a",{className:m(0===i.activePage),children:["BCH"===x.env.platformCurrency&&(0,c.jsx)("span",{children:w("deposit_bitcoincash")}),"BTC"===x.env.platformCurrency&&(0,c.jsx)("span",{children:w("deposit_bitcoin")})]})}),(0,c.jsx)("li",{id:"buycrypto-tooltip-trigger",onClick:()=>i.setActivePage(1),className:u(1===i.activePage),children:(0,c.jsx)("a",{className:m(1===i.activePage),children:w("buy_crypto")})})]})}),0===i.activePage&&(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"tw:mt-5 tw:ml-[15px] tw:h-[280px] tw:w-[280px] tw:rounded-xl tw:bg-white tw:p-[10px]",children:["BTC"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:`bitcoin:${i.userAddress}`,size:260,className:"qr-code"}),"BCH"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:i.userAddress,size:260,className:"qr-code"})]}),(0,c.jsxs)("div",{className:"tw:flex tw:max-w-full tw:flex-1 tw:flex-col tw:overflow-hidden",children:[(0,c.jsx)("div",{className:"tw:mt-5 tw:flex tw:overflow-hidden tw:rounded-lg tw:border tw:border-[#505662]",children:(0,c.jsxs)("div",{className:"tw:flex tw:h-10 tw:flex-1 tw:items-center tw:justify-between tw:overflow-hidden tw:rounded tw:bg-[rgba(45,50,59,0.05)] tw:px-2 tw:py-[3px]",children:[!i.copied&&(0,c.jsx)("p",{className:"tw:min-w-0 tw:truncate tw:text-[14px] tw:text-white",children:i.userAddr}),i.copied&&(0,c.jsx)("p",{className:"tw:min-w-0 tw:truncate tw:text-[14px] tw:text-white",children:w(i.isMobile?"copied":"address_copied_to_clipboard")}),(0,c.jsxs)("div",{className:"tw:m-0.5 tw:flex tw:h-[19px] tw:w-[22px] tw:cursor-pointer tw:items-center tw:justify-center tw:rounded",onClick:()=>i.doCopy(i.userAddr),children:[!i.copied&&(0,c.jsx)(rO.Copy,{className:"tw:size-4 tw:text-white"}),i.copied&&(0,c.jsx)(aN.Check,{className:"tw:size-4 tw:text-[rgb(0,123,255)]"})]})]})}),"BTC"===x.env.platformCurrency&&(0,c.jsx)("p",{className:h,children:w("only_deposit_bitcoin")}),"BCH"===x.env.platformCurrency&&(0,c.jsx)("p",{className:h,children:w("only_deposit_bitcoincash")})]})]}),0===i.activePage&&(0,c.jsxs)("div",{className:"tw:mt-[35px] tw:mb-[10px] tw:flex tw:w-full tw:cursor-pointer tw:flex-row tw:items-center tw:justify-start tw:rounded-lg tw:border tw:px-3 tw:py-2 tw:text-[#505662]",onClick:i.openSideShift,children:[(0,c.jsx)("img",{src:"/static/images/payments/crpto-exchange.png",className:"tw:mr-[14px] tw:size-5",alt:"crypto exchange"}),(0,c.jsx)("a",{className:"tw:grow tw:text-[14px]/[16px] tw:font-medium tw:text-white",children:w("convert_coins_now")}),(0,c.jsx)("img",{src:"/static/images/payments/right-arrrow.png",className:"tw:h-[14px]",alt:"right arrow"})]}),1===i.activePage&&(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"tw:mb-5",children:(0,c.jsx)(aB,{id:"country-dropdown",countries:i.countriesList,value:i.selectedCountry,onChange:i.setSelectedCountry})}),i.paymentMethodsLoading&&(0,c.jsx)("p",{className:"tw:text-center tw:text-[14px] tw:font-medium tw:text-white",children:"Loading Payment Methods..."}),!i.paymentMethodsLoading&&(0,c.jsx)(a$,{availablePaymentMethods:i.availablePaymentMethods,selectedPaymentMethodIdx:i.selectedPaymentMethodIdx,setPaymentIndex:i.setPaymentIndex,countries:i.countriesList,selectedCountry:i.selectedCountry}),!i.paymentMethodsLoading&&i.availablePaymentMethods[i.selectedPaymentMethodIdx]&&(0,c.jsxs)(s3.Button,{className:"tw:mt-3 tw:w-full",disabled:i.moonpayLoadingSignedUrl,onClick:()=>i.usePaymentMethod(),children:[w("use")," ",aM(i.availablePaymentMethods[i.selectedPaymentMethodIdx].method),(0,c.jsx)("img",{src:"/static/images/payments/new-page.png",alt:"new page"})]}),!i.paymentMethodsLoading&&!i.availablePaymentMethods[i.selectedPaymentMethodIdx]&&(0,c.jsxs)(s3.Button,{className:"tw:mt-3 tw:w-full",disabled:!0,children:[w("select_a_method"),(0,c.jsx)("img",{src:"/static/images/payments/new-page.png",alt:"new page"})]}),(0,c.jsxs)("div",{className:"tw:mb-7 tw:flex tw:items-center tw:justify-center",children:[(0,c.jsx)("p",{className:"tw:mb-0 tw:flex tw:items-center tw:pr-1 tw:text-[12px]/[14px] tw:text-[#676f7e]",children:w("power_by")}),(0,c.jsx)("img",{src:"/static/images/payments/moonpay-logo.svg",alt:"moonpay logo",className:"tw:h-[10px]"})]})]}),3===i.activePage&&(0,c.jsx)("div",{children:(0,c.jsx)("iframe",{allow:"accelerometer; autoplay; camera; gyroscope; payment",className:"tw:h-[450px] tw:w-full tw:border-none",id:"moonpayIframe",src:i.signedMoonPayUrl,onLoad:i.iFrameLoaded,children:(0,c.jsx)("p",{children:w("your_browser_does_not")})})}),4===i.activePage&&(0,c.jsx)("div",{children:(0,c.jsx)("iframe",{allow:"accelerometer; autoplay; camera; gyroscope; payment",className:"tw:h-[540px] tw:w-full tw:border-none",id:"moonpayIframe",src:i.xanpoolUrl,onLoad:i.iFrameLoaded,children:(0,c.jsx)("p",{children:w("your_browser_does_not")})})})]})]})})}function aH(){let{isOpen:e,close:t}=aS("quickDeposit"),s=(0,g.useAccountStore)(e=>e.userAddress);return e?(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{e||t()},children:(0,c.jsxs)(rb.DialogContent,{id:"cryptoQuickDeposit",className:"tw:bg-transparent tw:border-0 tw:shadow-none tw:p-0 tw:w-auto tw:flex tw:items-center tw:justify-center",showCloseButton:!1,children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:"Deposit address"}),(0,c.jsxs)("div",{className:"tw:rounded-lg tw:bg-white tw:p-3",children:["BTC"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:`b
85itcoin:${s}`,size:256,className:"qr-code"}),"BCH"===x.env.platformCurrency&&(0,c.jsx)(ao,{value:s,size:256,className:"qr-code"})]})]})}):null}function aW(){let{t:e}=(0,p.useI18n)(),t=(0,g.useAccountStore)(e=>e.depositIncomingCryptoAmount),s=(0,g.useAccountStore)(e=>e.depositIncomingUSDAmount),r=(0,g.useAccountStore)(e=>e.userAddress),a=(0,g.useAccountStore)(e=>e.getDepositAddress),n=(0,g.useAccountStore)(e=>e.setDepositIncomingCryptoAmountToZero),o=!!t;if((0,d.useEffect)(()=>{o&&!g.useAccountStore.getState().userAddress&&a()},[o]),!o)return null;let l=()=>n();return(0,c.jsxs)(aP,{onBackdropClick:l,children:[(0,c.jsx)("header",{className:"tw:flex tw:items-center tw:justify-between tw:border-b tw:border-border tw:pb-3",children:(0,c.jsx)("h5",{className:"tw:text-lg tw:font-semibold tw:text-foreground",children:`${e("deposit_incoming")} ð¬`})}),(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-3 tw:py-2 tw:text-foreground",children:[(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:justify-between",children:[(0,c.jsx)("span",{className:"tw:font-medium",children:e("incoming")}),(0,c.jsxs)("span",{children:[(0,c.jsxs)("strong",{children:[t," ",x.env.platformCurrency," "]}),"( $",s.toFixed(2)," )"]})]}),(0,c.jsx)("div",{className:"tw:text-muted-foreground",children:e("thank_you_for_your_deposit")}),(0,c.jsx)("div",{className:"tw:text-muted-foreground",children:e("it_may_take_up_to_10")})]}),(0,c.jsxs)("footer",{className:"tw:flex tw:items-center tw:justify-between tw:gap-3 tw:border-t tw:border-border tw:pt-3",children:[(0,c.jsx)("a",{href:(0,_.explorerAddressUrl)(x.env.platformCurrency,r),target:"_blank",rel:"noreferrer",className:"tw:text-primary tw:hover:underline",onClick:l,children:e("open_in_explorer")}),(0,c.jsx)("button",{type:"button",className:"tw:text-foreground tw:font-medium tw:hover:text-primary tw:cursor-pointer",onClick:l,children:e("got_it")})]})]})}var aY=e.i(48897);function aq(){let{t:e,locale:t}=(0,p.useI18n)(),{isOpen:s,props:r,close:a,openDialog:n}=aS(j.DIALOGS.targetedPromotion),[o,l]=(0,d.useState)(!1),i=(0,g.useAccountStore)(e=>e.getDepositAddress),w=(0,aY.useAvailablePromotionsStore)(e=>e.claimPromotionCampaign),m=r?.targetedPromotion||{};if(!s)return null;let h=()=>u.default.set(`tpromotiondialogshown-${m.id}`,"true",{expires:365}),f=()=>{h(),a()},y=async()=>{h(),m.isOptIn&&await w(m.campaignUUID),a(),"deposit_now"===m.type?(await i(),n("preDeposit")):window.location.href=m.cta_link},v=m["en"===t?"description":`description_${t}`],b=m["en"===t?"terms_and_conditions":`terms_and_conditions_${t}`],_="en"===t?m.cta_button_text:m["cta_button_text_"+t];return(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{e||f()},children:(0,c.jsxs)(rb.DialogContent,{id:"targeted_promotion_modal",className:"tw:bg-popover tw:text-foreground tw:border-border tw:overflow-hidden tw:p-0",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:e("terms_and_conditions")}),Object.keys(m).length>0&&(0,c.jsxs)("div",{children:[!o&&(0,c.jsxs)("div",{children:[m.desktop_image&&(0,c.jsx)("img",{className:"tw:w-full",src:`${x.env.strapiApiUrl}${m.desktop_image.url}`,alt:""}),(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-start tw:gap-3 tw:p-5",children:[(0,c.jsx)("div",{className:"tw:mr-10 tw:text-[16px] tw:font-bold tw:text-[#d5d7dd]",dangerouslySetInnerHTML:{__html:aD(v)}}),(0,c.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),l(!0)},className:"tw:text-[16px] tw:text-[#1a75ff] tw:hover:underline",children:e("terms_and_conditions")}),(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:flex-col tw:gap-2",children:[(0,c.jsx)("button",{className:"tw:w-full tw:rounded-md tw:bg-primary tw:px-4 tw:py-2 tw:font-medium tw:text-primary-foreground tw:hover:bg-primary/90 tw:cursor-pointer",onClick:y,children:_}),(0,c.jsx)("button",{className:"tw:w-full tw:rounded-md tw:border tw:border-border tw:px-4 tw:py-2 tw:font-medium tw:text-foreground tw:hover:bg-accent tw:cursor-pointer",onClick:f,children:e("no_thanks")})]})]})]}),o&&(0,c.jsxs)("div",{className:"tw:p-5",children:[(0,c.jsx)("div",{className:"tw:flex tw:justify-end",children:(0,c.jsx)("button",{type:"button",onClick:()=>l(!1),className:"tw:m-[15px] tw:cursor-pointer tw:rounded tw:border tw:border-solid tw:border-[#333] tw:p-[5px] tw:text-foreground tw:transition-[0.5s] tw:hover:border-white tw:hover:bg-[#060] tw:hover:text-white","aria-label":"Back",children:(0,c.jsx)(rD.ArrowLeft,{className:"tw:size-5"})})}),(0,c.jsx)("h1",{className:"tw:ml-4 tw:text-[32px] tw:font-bold tw:text-foreground",children:e("terms_and_conditions")}),(0,c.jsx)("div",{className:"tw:mx-4 tw:list-inside tw:text-[12px] tw:font-bold tw:text-[#d5d7dd] tw:[&_ul]:list-inside",dangerouslySetInnerHTML:{__html:aD(b)}})]})]})]})})}function aK(){let{t:e,locale:t}=(0,p.useI18n)(),{isOpen:s,props:r,close:a,openDialog:n}=aS("mobileTargetedPromotion"),[o,l]=(0,d.useState)(!1),i=(0,g.useAccountStore)(e=>e.getDepositAddress),w=(0,aY.useAvailablePromotionsStore)(e=>e.claimPromotionCampaign),m=r?.targetedPromotion||{};if(!s)return null;let h=()=>u.default.set(`tpromotiondialogshown-${m.id}`,"true",{expires:365}),f=()=>{h(),a()},y=async()=>{h(),m.isOptIn&&await w(m.campaignUUID),a(),"deposit_now"===m.type?(await i(),n("preDeposit")):window.location.href=m.cta_link},v=m["en"===t?"description":`description_${t}`],b=m["en"===t?"terms_and_conditions":`terms_and_conditions_${t}`],j="en"===t?m.cta_button_text:m["cta_button_text_"+t];return(0,c.jsx)(sJ,{open:!0,onOpenChange:e=>{e||f()},children:(0,c.jsxs)(s2,{side:"bottom",className:"tw:bg-popover tw:text-foreground tw:border-border tw:max-h-[90vh] tw:overflow-y-auto tw:rounded-t-2xl",children:[(0,c.jsx)(s5,{className:"tw:sr-only",children:e("terms_and_conditions")}),!o&&(0,c.jsxs)("div",{className:"tw:p-4",children:[m.mobile_image&&(0,c.jsx)("img",{className:"tw:w-full",src:`${x.env.strapiApiUrl}${m.mobile_image.url}`,alt:""}),(0,c.jsxs)("div",{className:"tw:mt-10 tw:flex tw:flex-col tw:items-start tw:gap-3",children:[(0,c.jsx)("div",{className:"tw:mr-4 tw:text-[16
85px] tw:font-bold tw:text-[#d5d7dd]",dangerouslySetInnerHTML:{__html:aD(v)}}),(0,c.jsx)("a",{href:"#",className:"tw:text-[16px] tw:text-[#1a75ff] tw:hover:underline",onClick:e=>{e.preventDefault(),l(!0)},children:e("terms_and_conditions")}),(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:flex-col tw:gap-2",children:[(0,c.jsx)("button",{className:"tw:w-full tw:rounded-md tw:bg-primary tw:px-4 tw:py-2 tw:font-medium tw:text-primary-foreground tw:hover:bg-primary/90 tw:cursor-pointer",onClick:y,children:j}),(0,c.jsx)("button",{className:"tw:w-full tw:rounded-md tw:border tw:border-border tw:px-4 tw:py-2 tw:font-medium tw:text-foreground tw:hover:bg-accent tw:cursor-pointer",onClick:f,children:e("no_thanks")})]})]})]}),o&&(0,c.jsxs)("div",{className:"tw:p-4",children:[(0,c.jsx)("button",{type:"button",onClick:()=>l(!1),className:"tw:m-[15px] tw:cursor-pointer tw:rounded tw:border tw:border-solid tw:border-[#333] tw:p-[5px] tw:text-foreground","aria-label":"Back",children:(0,c.jsx)(rD.ArrowLeft,{className:"tw:size-5"})}),(0,c.jsx)("h1",{className:"tw:ml-4 tw:text-foreground",children:e("terms_and_conditions")}),(0,c.jsx)("div",{className:"tw:mx-4 tw:list-inside tw:text-[12px] tw:font-bold tw:text-[#d5d7dd] tw:[&_ul]:list-inside",dangerouslySetInnerHTML:{__html:aD(b)}})]})]})})}function aV(){let{t:e}=(0,p.useI18n)(),{isOpen:t}=aS("newRestrictedRegion"),s=ak(),r=(0,g.useAccountStore)(e=>e.userCountryCode),a=(0,g.useAccountStore)(e=>e.blockedCountriesList),n=(0,g.useAccountStore)(e=>e.getBlockedCountries),o=(0,j.useDialogStore)(e=>e.openDialog);(0,d.useEffect)(()=>{n().catch(e=>console.error(e,"error"))},[]);let l=!!a?.find(e=>e?.countryCode===r);return((0,d.useEffect)(()=>{l&&o("newRestrictedRegion")},[l]),t)?(0,c.jsx)(aP,{id:"new-restricted-region-modal",dialogClassName:"modal-lg",children:(0,c.jsxs)("div",{className:"tw:w-[328px] tw:bg-black tw:backdrop-blur-[45px] tw:sm:w-[652px]",children:[!s&&(0,c.jsx)("img",{src:"/assets/images/restrictedregion/dice_desktop.png",alt:"dice",className:"tw:absolute tw:bottom-[-180px] tw:left-[-190px] tw:rotate-[3deg]"}),s&&(0,c.jsx)("img",{src:"/assets/images/restrictedregion/dice_mobile.png",alt:"dice",className:"tw:absolute tw:bottom-[-85px] tw:left-[-95px] tw:rotate-[15deg]"}),(0,c.jsx)("img",{src:"/assets/images/restrictedregion/coin.png",alt:"coin",className:s?"tw:absolute tw:bottom-[-40px] tw:right-[-25px] tw:scale-[1.3]":"tw:absolute tw:bottom-[-40px] tw:left-[55px] tw:rotate-[-45deg] tw:scale-[1.55]"}),!s&&(0,c.jsx)("img",{src:"/assets/images/restrictedregion/card&chip.png",alt:"Cards & Chip",className:"tw:absolute tw:bottom-[-120px] tw:right-[-200px] tw:rotate-[-2deg] tw:scale-[1.15]"}),!s&&(0,c.jsx)("img",{src:"/assets/images/restrictedregion/red&blue-chip.png",alt:"Red Chip",className:"tw:absolute tw:top-[-55px] tw:right-[-240px]"}),s&&(0,c.jsx)("img",{src:"/assets/images/restrictedregion/chip-small.png",alt:"Red Chip",className:"tw:absolute tw:top-[-70px] tw:right-[-115px] tw:rotate-[-2deg]"}),(0,c.jsx)("div",{className:"tw:flex tw:justify-center",children:(0,c.jsx)("img",{src:"/assets/images/common/vcg_logo.svg",alt:"Satoshi Games logo",className:"tw:h-[16px]"})}),(0,c.jsxs)("div",{className:"tw:mt-9 tw:flex tw:flex-col tw:justify-center",children:[(0,c.jsx)("h1",{className:"tw:text-center tw:text-[24px]/[28px] tw:font-medium tw:text-white",children:e("restricted_region")}),(0,c.jsx)("p",{className:"tw:text-center tw:text-[16px]/[19px] tw:font-normal tw:text-[#abb0ba]",children:e("it_seems_your_location")})]})]})}):null}function aX(){let{isOpen:e}=aS("restrictedRegion"),t=ak();return e?(0,c.jsx)(aP,{id:"restricted-region-modal",dialogClassName:t?"modal-sm":"modal-lg",className:"tw:text-[12px]/[16px] tw:text-white",children:(0,c.jsx)("div",{className:"tw:rounded-[0.4rem] tw:bg-black",children:(0,c.jsxs)("div",{className:"tw:flex tw:h-[346px] tw:flex-col tw:items-center tw:text-center",children:[(0,c.jsx)("img",{src:"/assets/images/dialog/sheriff.png",alt:"RESTRICTED",className:t?"tw:absolute tw:right-[calc(50%-87px)] tw:bottom-[170px] tw:h-[156px] tw:w-[174px]":"tw:absolute tw:bottom-[12
850px] tw:right-[calc(50%-132px)] tw:h-[236px] tw:w-[264px]"}),(0,c.jsx)("div",{className:`tw:font-bold tw:leading-[39px] ${!t?"tw:text-[32px]":"tw:text-[24px]"}`,children:"Region Not Supported"}),(0,c.jsxs)("div",{className:"tw:mt-5 tw:text-[14px]/[126.1%] tw:font-normal tw:text-[#b9bdc6]",children:["Unfortunately, your region is not allowed to play in our website. ",(0,c.jsx)("br",{}),"Thank you for your understanding."]})]})})}):null}function aQ(){let e=(0,w.useRouter)(),{isOpen:t,close:s}=aS(j.DIALOGS.createAccount);return t?(0,c.jsx)(aP,{id:"create-account-dialog",onBackdropClick:s,children:(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-4 tw:text-center",children:[(0,c.jsx)("h2",{className:"tw:text-2xl tw:font-bold tw:text-foreground",children:"Ready to win?"}),(0,c.jsx)("p",{className:"tw:text-muted-foreground",children:"Win real money by creating an account or login-in now"}),(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:flex-col tw:gap-2",children:[(0,c.jsx)(s3.Button,{variant:"outline",className:"tw:w-full",onClick:()=>{s(),e.push("/player-login")},children:"Login"}),(0,c.jsx)(s3.Button,{className:"tw:w-full",onClick:()=>{s(),e.push("/signup")},children:"Sign Up"})]})]})}):null}function aZ(){let{t:e}=(0,p.useI18n)(),t=(0,w.useRouter)(),{isOpen:s,close:r,openDialog:a}=aS(j.DIALOGS.playReal),n=(0,g.useAccountStore)(e=>e.isLoggedIn),o=(0,g.useAccountStore)(e=>e.getDepositAddress);if(!s)return null;let l=async()=>{await o()},i=async()=>{aE({convert:!0,playforrealdialog:!0}),await l()},d=()=>{r(),t.push("/signup")},u=()=>{r(),a("preDeposit")};return(0,c.jsx)(aP,{onBackdropClick:r,children:(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-3 tw:text-center",children:[(0,c.jsx)("img",{className:"tw:h-auto tw:max-w-[200px]",src:"/assets/images/dialog/play_for_real.png",alt:"Play For Real"}),(0,c.jsx)("h4",{className:"tw:text-xl tw:font-bold tw:text-foreground",children:e("play_for_real")}),(0,c.jsx)("div",{className:"tw:text-muted-foreground",children:e("ready_to_win_real")}),(0,c.jsxs)("div",{className:"tw:flex tw:w-full tw:flex-col tw:gap-2",children:[(0,c.jsxs)("button",{type:"button",className:"tw:flex tw:w-full tw:items-center tw:gap-3 tw:rounded-md tw:border tw:border-border tw:bg-background tw:p-3 tw:text-left tw:transition-colors tw:hover:bg-accent tw:cursor-pointer",onClick:()=>{n?(l(),u()):d()},children:[(0,c.jsx)("img",{src:"/assets/images/dialog/wallet.svg",alt:e("deposit"),className:"tw:size-10"}),(0,c.jsxs)("span",{className:"tw:flex tw:flex-col",children:[(0,c.jsx)("span",{className:"tw:font-semibold tw:text-foreground",children:e("deposit")}),(0,c.jsx)("span",{className:"tw:text-sm tw:text-muted-foreground",children:e("bitcoin_ewallet")})]})]}),(0,c.jsxs)("button",{type:"button",className:"tw:flex tw:w-full tw:items-center tw:gap-3 tw:rounded-md tw:border tw:border-border tw:bg-background tw:p-3 tw:text-left tw:transition-colors tw:hover:bg-accent tw:cursor-pointer",onClick:()=>{n?(i(),u()):d()},children:[(0,c.jsx)("img",{src:"/assets/images/dialog/convert-2.svg",alt:e("convert"),className:"tw:size-10"}),(0,c.jsxs)("span",{className:"tw:flex tw:flex-col",children:[(0,c.jsx)("span",{className:"tw:font-semibold tw:text-foreground",children:e("swap_cryptos")}),(0,c.jsx)("span",{className:"tw:text-sm tw:text-muted-foreground",children:e("convert_altcoins",{currency:x.env.platformCurrency})})]})]})]}),(0,c.jsx)("button",{type:"button",className:"tw:text-muted-foreground tw:underline tw:hover:text-foreground tw:cursor-pointer",onClick:r,children:e("free_play")})]})})}function aJ(){let{t:e}=(0,p.useI18n)(),{isOpen:t,close:s,openDialog:r}=aS("firstTime"),a=(0,g.useAccountStore)(e=>e.limitedAccount),n=(0,g.useAccountStore)(e=>e.userAddress),o=(0,g.useAccountStore)(e=>e.getDepositAddress);if(!t)return null;let l=async()=>{a?r("newRestrictedRegion"):(r(j.DIALOGS.newDeposit),s(),await o())},i="tw:my-[1%] tw:mb-[5%] tw:ml-[10%] tw:mt-[1%] tw:flex tw:min-h-[58px] tw:w-4/5 tw:cursor-pointer tw:flex-col tw:content-center tw:justify-center tw:rounded-[5pt] tw:text-center tw:bg-gradient-to-b tw:from-[#10bf8e] tw:to-[#086047] tw:text-[1.1vw]",d="tw:mt-[7%] tw:w-[50vw] tw:text-[5vw] tw:text-white",w="tw:mt-0 tw:mr-[10%] tw:mb-0 tw:ml-[4%] tw:text-justify tw:text-[12px] tw:text-white";return(0,c.jsxs)("div",{className:"tw:fixed tw:top-0 tw:left-0 tw:z-[3000] tw:h-screen tw:w-screen tw:overflow-y-auto tw:bg-[#131720]",children:[(0,c.jsxs)("div",{className:"tw:relative tw:flex tw:h-[14vh] tw:w-screen tw:items-center tw:justify-between tw:bg-black",children:[(0,c.jsx)("p",{className:"tw:text-[14pt] tw:text-white",children:e("choose_one_of_the")}),(0,c.jsx)("span",{onClick:s,className:"tw:absolute tw:top-[-15px] tw:right-[10px] tw:ml-[50px] tw:cursor-pointer tw:text-[48px] tw:font-thin tw:leading-none tw:text-[#13d19c]",children:"Ã"})]}),(0,c.jsxs)("div",{className:"tw:mt-2 tw:mb-3 tw:flex",children:[(0,c.jsx)("div",{className:"tw:w-1/6 tw:shrink-0",children:(0,c.jsx)("div",{className:"tw:flex tw:h-full tw:items-center tw:justify-center tw:bg-[#232734]",children:(0,c.jsx)("p",{className:"tw:ml-8 tw:text-[23vw] tw:text-[#1a1e29]",children:"1"})})}),(0,c.jsxs)("div",{className:"tw:w-5/6 tw:border-l-[5px] tw:border-[#161922] tw:bg-[#1a1e29]",children:[(0,c.jsxs)("div",{onClick:l,className:i+" tw:mt-3",children:[(0,c.jsx)("p",{className:"tw:m-0 tw:text-[13px] tw:text-white",children:e("i_have_btc_or")}),(0,c.jsx)("p",{className:"tw:m-0 tw:text-[19px] tw:text-white",children:e("deposit")})]}),(0,c.jsxs)("div",{onClick:()=>{aI(x.env.platformCurrency,n),s(),aE("remove")},className:i,children:[(0,c.jsx)("p",{className:"tw:m-0 tw:text-[13px] tw:text-white",dangerouslySetInnerHTML:{__html:e("i_have_other_coins")}}),(0,c.jsx)("p",{className:"tw:m-0 tw:text-[19px] tw:text-white",children:e("convert_other_coins")})]}),(0,c.jsxs)("div",{onClick:()=>{s(),aE({buy:!0}),r("preDeposit")},className:i,children:[(0,c.jsx)("p",{className:"tw:m-0 tw:text-[13px] tw:text-white",children:e("i_do_not_have",{break:""})}),(0,c.jsx)("p",{className:"tw:m-0 tw:text-[19px] tw:text-white",children:e("buy_coins")})]})]})]}),(0,c.jsxs)("div",{className:"tw:mt-2 tw:mb-3 tw:flex",children:[(0,c.jsx)("div",{className:"tw:w-1/6 tw:shrink-0",children:(0,c.jsx)("div",{className:"tw:flex tw:h-full tw:items-center tw:justify-center tw:bg-[#232734]",children:(0,c.jsx)("p",{className:"tw:ml-8 tw:text-[23vw] tw:text-[#1a1e29]",children:"2"})})}),(0,c.jsxs)("div",{className:"tw:w-5/6 tw:border-l-[5px] tw:border-[#161922] tw:bg-[#1a1e29] tw:pb-4",children:[(0,c.jsxs)("div",{className:"tw:flex",children:[(0,c.jsx)("div",{className:"tw:w-1/4",children:(0,c.jsx)("img",{src:"/static/images/drink.svg",className:"tw:m-4 tw:mb-2 tw:w-3/4",alt:""})}),(0,c.jsx)("div",{className:"tw:w-3/4",children:(0,c.jsx)("p",{className:d+" tw:mt-4 tw:w-3/4",children:"EASY REGISTRATION"})})]}),(0,c.jsx)("div",{className:"tw:flex",children:(0,c.jsx)("div",{className:"tw:w-full",children:(0,c.jsx)("p",{className:w,children:e("as_soon_as_you")})})})]})]}),(0,c.jsxs)("div",{className:"tw:mt-2 tw:mb-3 tw:flex",children:[(0,c.jsx)("div",{className:"tw:w-1/6 tw:shrink-0",children:(0,c.jsx)("div",{className:"tw:flex tw:h-full tw:items-center tw:justify-center tw:bg-[#232734]",style:{height:"100%"},children:(0,c.jsx)("p",{className:"tw:mb-0 tw:ml-8 tw:text-[23vw] tw:text-[#1a1e29]",children:"3"})})}),(0,c.jsxs)("div",{className:"tw:w-5/6 tw:border-l-[5px] tw:border-[#161922] tw:bg-[#1a1e29]",children:[(0,c.jsxs)("div",{className:"tw:flex",children:[(0,c.jsx)("div",{className:"tw:w-1/4",children:(0,c.jsx)("img",{src:"/static/images/slot.svg",style:{width:"80%",margin:"15%"},alt:""})}),(0,c.jsx)("div",{className:"tw:w-3/4",children:(0,c.jsx)("p",{className:d,style:{marginTop:"13%"},children:e("play_and_win")})})]}),(0,c.jsx)("div",{className:"tw:flex",children:(0,c.jsx)("div",{className:"tw:w-full",children:(0,c.jsx)("p",{className:w+" tw:mb-3",children:e("play_have_fun_and")})})})]})]}),(0,c.jsxs)("div",{className:"tw:mt-2 tw:mb-3 tw:flex",children:[(0,c.jsx)("div",{className:"tw:w-1/6 tw:shrink-0",children:(0,c.jsx)("div",{className:"tw:flex tw:h-full tw:items-center tw:justify-center tw:bg-[#232734]",style:{height:"100%"},children:(0,c.jsx)("p",{className:"tw:ml-8 tw:text-[23vw] tw:text-[#1a1e29]",children:"4"})})}),(0,c.jsxs)("div",{className:"tw:w-5/6 tw:border-l-[5px] tw:border-[#161922] tw:bg-[#1a1e29]",children:[(0,c.jsxs)("div",{className:"tw:flex",children:[(0,c.jsx)("div",{className:"tw:w-1/4",children:(0,c.jsx)("img",{src:"/static/images/coins.svg",className:"tw:m-4 tw:mb-2 tw:w-3/4",alt:""})}),(0,c.jsx)("div",{className:"tw:w-3/4",children:(0,c.jsxs)("p",{className:d+" tw:mt-2 tw:w-1/2",children:["INSTANT ",(0,c.jsx)("br",{})," CASH OUT"]})})]}),(0,c.jsx)("div",{className:"tw:flex tw:pb-5",children:(0,c.jsx)("div",{className:"tw:w-full",children:(0,c.jsx)("p",{className:w+" tw:pb-3",children:e("instant_cashouts_no_casino")})})})]})]})]})}function a0(){return window.verify_game_dialogs}function a1({run:e}){let t=d.default.useRef(!1);return(0,d.useEffect)(()=>{t.current||(t.current=!0,e())},[e]),null}function a2({selector:e}){let{t}=(0,p.useI18n)(),[s,r]=(0,d.useState)(!1),a=(0,d.useCallback)(()=>{let t=document.querySelector(e)?.textContent?.trim();t&&navigator.clipboard?.writeText(t).then(()=>{r(!0),window.setTimeout(()=>r(!1),1500)})},[e]);return(0,c.jsx)(s3.Button,{type:"button",variant:"ghost",size:"sm",onClick:a,"aria-label":t("copy"),className:"tw:h-7 tw:shrink-0 tw:px-2 tw:text-xs tw:text-muted-foreground tw:hover:text-foreground",children:t(s?"copied":"copy")})}function a5({label:e,selector:t,children:s}){return(0,c.jsxs)("div",{className:"tw:mt-3",children:[(0,c.jsxs)("div",{className:"tw:mb-1 tw:flex tw:items-center tw:justify-between tw:gap-2",children:[(0,c.jsx)(rF.Label,{className:"tw:text-xs tw:font-medium tw:tracking-wide tw:text-muted-foreground tw:uppercase",children:e}),(0,c.jsx)(a2,{selector:t})]}),(0,c.jsx)("div",{className:"tw:rounded-md tw:border tw:border-border tw:bg-muted/40 tw:px-3 tw:py-2 tw:font-mono tw:text-[12px] tw:leading-[1.6] tw:break-all tw:text-foreground tw:select-all",children:s})]})}function a3({children:e}){return(0,c.jsx)("h3",{className:"tw:mt-6 tw:mb-1 tw:text-xs tw:font-semibold tw:tracking-[0.08em] tw:text-muted-foreground tw:uppercase",children:e})}function a4(){let{t:e}=(0,p.useI18n)(),t=aS(j.DIALOGS.verifyGame),s=aS("verifyGameSeeds");return(0,c.jsxs)(c.Fragment,{children:[t.isOpen&&(0,c.jsxs)(aP,{id:"verify_game_bootstrap_dialog_1",dialogClassName:"modal-lg",onBackdropClick:t.close,children:[(0,c.jsx)(a1,{run:()=>a0()?.on_seed_dialog_shown()}),(0,c.jsx)("h2",{className:"tw:text-xl tw:font-semibold tw:tracking-tight tw:text-foreground",children:e("custom_client_seed")}),(0,c.jsxs)("div",{className:"tw:text-sm tw:text-foreground",children:[(0,c.jsx)(a3,{children:e("next_game")}),(0,c.jsx)(rF.Label,{htmlFor:"custom_client_seed",className:"tw:mb-1.5 tw:block tw:text-sm tw:font-normal tw:text-muted-foreground",children:e("enter_custom_client_seed")}),(0,c.jsx)(rz.Input,{id:"custom_client_seed",className:"tw:font-mono tw:text-[13px]",autoComplete:"off",spellCheck:!1}),(0,c.jsx)(a5,{label:e("hash_of_servers_next"),selector:"#server_seed_hash",children:(0,c.jsx)("span",{id:"server_seed_hash"})}),(0,c.jsxs)("div",{hidden:!0,id:"custom_client_seed_output",className:"tw:mt-6 tw:border-t tw:border-border tw:pt-2",children:[(0,c.jsx)(a3,{children:e("last_game")}),(0,c.jsx)(a5,{label:e("last_game_client_seed"),selector:"#custom_client_seed_output .client_seed",children:(0,c.jsx)("span",{className:"client_seed"})}),(0,c.jsx)(a5,{label:e("last_game_server_seed"),selector:"#custom_client_seed_output .server_seed",children:(0,c.jsx)("span",{className:"server_seed"})}),(0,c.jsx)(s3.Button,{id:"provably_fair_next_step_btn",type:"button",className:"tw:mt-5 tw:w-full",onClick:()=>{t.close(),t.openDialog("verifyGameSeeds")},children:e("verify")})]})]})]}),s.isOpen&&(0,c.jsxs)(aP,{id:"verify_game_bootstrap_dialog_2",dialogClassName:"modal-lg",onBackdropClick:s.close,children:[(0,c.jsx)(a1,{run:()=>{let e=a0();e?.on_verify_dialog_shown(),e?.set_seed_values()}}),(0,c.jsxs)("div",{className:"tw:flex tw:items-center tw:gap-3",children:[(0,c.jsxs)(s3.Button,{type:"button",variant:"ghost",size:"sm",className:"back_button tw:h-8 tw:px-2 tw:text-muted-foreground tw:hover:text-foreground",onClick:()=>{s.close(),s.openDialog(j.DIALOGS.verifyGame)},children:["â ",e("back")]}),(0,c.jsx)("h2",{className:"tw:text-xl tw:font-semibold tw:tracking-tight tw:text-foreground",children:e("verify_game")})]}),(0,c.jsx)("div",{className:"tw:text-sm tw:text-foreground",children:(0,c.jsxs)("form",{id:"seed_input",className:"tw:mt-4 tw:flex tw:flex-col tw:gap-4",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(rF.Label,{htmlFor:"client_seed_input",className:"tw:mb-1.5 tw:block tw:text-xs tw:font-medium tw:tracking-wide tw:text-muted-foreground tw:uppercase",children:e("client_seed")}),(0,c.jsx)(rz.Input,{type:"text",id:"client_seed_input",name:"client_seed",className:"tw:font-mono tw:text-[13px]",autoComplete:"off",spellCheck:!1})]}),(0,c.jsxs)("div",{children:[(0,c.jsx)(rF.Label,{htmlFor:"server_seed_input",className:"tw:mb-1.5 tw:block tw:text-xs tw:font-medium tw:tracking-wide tw:text-muted-foreground tw:uppercase",children:e("server_seed")}),(0,c.jsx)(rz.Input,{type:"text",id:"server_seed_input",name:"server_seed",className:"tw:font-mono tw:text-[13px]",autoComplete:"off",spellCheck:!1})]}),(0,c.jsx)(s3.Button,{type:"submit",className:"tw:w-full",children:e("validate")})]})}),(0,c.jsx)("div",{id:"verify_game_output",className:"tw:mt-5 tw:max-w-full tw:p-0 tw:text-sm tw:[&>div]:border-border tw:[&>div]:border-b tw:[&>div]:py-2 tw:[&>div:last-child]:border-b-0 tw:[&>div>span:first-child]:text-muted-foreground tw:[&>div>span:last-child]:font-mono tw:[&>div>span:last-child]:break-all tw:[&>div>span:last-child]:text-foreground"})]})]})}function a8(){let{t:e}=(0,p.useI18n)(),{isOpen:t,close:s}=aS(j.DIALOGS.expectedReturn);return t?(0,c.jsxs)(aP,{id:"expected_return_bootstrap_dialog",dialogClassName:"modal-lg",onBackdropClick:s,children:[(0,c.jsx)("div",{className:"tw:flex tw:items-center tw:justify-between",children:(0,c.jsx)("h2",{className:"tw:text-xl tw:font-bold tw:text-foreground",children:e("expected_return_of_our")})}),(0,c.jsxs)("div",{id:"expected_return_content",className:"tw:text-foreground",children:[(0,c.jsx)("div",{className:"tw:mb-3 tw:text-sm tw:text-muted-foreground",children:e("all_games_have_a")}),(0,c.jsx)("div",{className:"tw:overflow-x-auto",children:(0,c.jsx)("table",{className:"tw:w-full tw:text-sm tw:[&_td]:px-2 tw:[&_td]:py-1 tw:[&_th]:px-2 tw:[&_th]:py-1 tw:[&_.left_header]:text-left tw:[&_td]:text-center",children:(0,c.jsxs)("tbody",{children:[(0,c.jsxs)("tr",{className:"header",children:[(0,c.jsx)("th",{}),(0,c.jsx)("th",{children:e("videopoker")}),(0,c.jsx)("th",{children:e("blackjack")}),(0,c.jsx)("th",{children:e("roulette")}),(0,c.jsx)("th",{children:e("craps")}),(0,c.jsx)("th",{children:e("keno")}),(0,c.jsx)("th",{children:e("slots")}),(0,c.jsx)("th",{children:e("dice")})]}),(0,c.jsx)("tr",{className:"sub",children:(0,c.jsx)("td",{colSpan:8,children:(0,c.jsx)("b",{children:e("main_game")})})}),(0,c.jsxs)("tr",{className:"even",children:[(0,c.jsx)("td",{className:"left_header",children:e("total_contribution")}),(0,c.jsx)("td",{children:"99.6%"}),(0,c.jsx)("td",{children:"99.6%"}),(0,c.jsx)("td",{children:"97.8%"}),(0,c.jsx)("td",{children:"99.8%"}),(0,c.jsx)("td",{children:"94.0%"}),(0,c.jsx)("td",{children:"96.1%"}),(0,c.jsx)("td",{children:"99.1%"})]}),(0,c.jsxs)("tr",{className:"odd",children:[(0,c.jsxs)("td",{className:"left_header",children:[e("referral_payout"),(0,c.jsx)("br",{}),e("25_of_house_edge")]}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{children:"0.075%"}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{children:"0.125%"})]}),(0,c.jsx)("tr",{className:"sub",children:(0,c.jsx)("td",{colSpan:8,children:(0,c.jsx)("b",{children:e("side_bet")})})}),(0,c.jsxs)("tr",{className:"odd",children:[(0,c.jsx)("td",{className:"left_header",children:e("prizes")}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{children:"62.4%"}),(0,c.jsx)("td",
85{children:"60.44%"}),(0,c.jsx)("td",{children:"62.7%"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"})]}),(0,c.jsxs)("tr",{className:"even",children:[(0,c.jsx)("td",{className:"left_header",children:e("progressive_jackpot_contribution")}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{children:"37.1%"}),(0,c.jsx)("td",{children:"38.55%"}),(0,c.jsx)("td",{children:"36.8%"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"})]}),(0,c.jsxs)("tr",{className:"odd",children:[(0,c.jsx)("td",{className:"left_header",children:e("total_contribution")}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{children:"99.5%"}),(0,c.jsx)("td",{children:"99.0%"}),(0,c.jsx)("td",{children:"99.5%"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"})]}),(0,c.jsxs)("tr",{className:"even",children:[(0,c.jsx)("td",{className:"left_header",children:e("referral_payout")}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{children:"0.125%"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"}),(0,c.jsx)("td",{className:"disabled"})]})]})})})]}),(0,c.jsx)("div",{className:"tw:flex tw:justify-end",children:(0,c.jsx)(s3.Button,{className:"confirm_button tw:w-full",onClick:s,children:"Ok"})})]}):null}function a6(){let{t:e}=(0,p.useI18n)(),{isOpen:t,close:s,openDialog:r}=aS(j.DIALOGS.contactUs),a=ak();return t?(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{!e&&(s(),u.default.get("unverified_email")&&r(j.DIALOGS.verifyEmail))},children:(0,c.jsxs)(rb.DialogContent,{className:"tw:bg-popover tw:text-foreground tw:border-border tw:gap-3 tw:p-5 tw:sm:max-w-[400px]",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:text-foreground tw:text-xl tw:font-semibold",children:e("contact_support")}),a&&(0,c.jsxs)("p",{className:"tw:text-muted-foreground tw:text-sm",children:[e("please_choose_which_format"),":"]}),(0,c.jsxs)("button",{type:"button",className:"intercom_open_chat tw:flex tw:w-full tw:items-center tw:gap-3 tw:rounded-md tw:border tw:border-border tw:bg-background tw:p-3 tw:text-left tw:transition-colors tw:hover:bg-accent tw:cursor-pointer",onClick:s,children:[(0,c.jsx)("span",{className:"tw:flex tw:size-9 tw:items-center tw:justify-center tw:rounded-full tw:bg-primary/15 tw:text-primary",children:(0,c.jsx)(ac,{className:"tw:size-5"})}),(0,c.jsx)("span",{className:"tw:flex-1 tw:text-sm tw:font-medium",children:e(a?"chat":"use_chat_nma")}),(0,c.jsx)(sW.ArrowRight,{className:"tw:size-4 tw:text-muted-foreground"})]}),(0,c.jsxs)("a",{href:`mailto:${I.brand.supportEmail}`,className:"tw:flex tw:w-full tw:items-center tw:gap-3 tw:rounded-md tw:border tw:border-border tw:bg-background tw:p-3 tw:text-left tw:text-foreground tw:transition-colors tw:hover:bg-accent",children:[(0,c.jsx)("span",{className:"tw:flex tw:size-9 tw:items-center tw:justify-center tw:rounded-full tw:bg-primary/15 tw:text-primary",children:(0,c.jsx)(ad,{className:"tw:size-5"})}),(0,c.jsx)("span",{className:"tw:flex-1 tw:text-sm tw:font-medium",children:e(a?"email":"send_email_nma")}),(0,c.jsx)(sW.ArrowRight,{className:"tw:size-4 tw:text-muted-foreground"})]})]})}):null}function a9(){let{t:e,locale:t}=(0,p.useI18n)(),{isOpen:s,openDialog:r,close:a}=aS(j.DIALOGS.verifyEmail),n=(0,g.useAccountStore)(e=>e.reconfirmEmailPublic),[o,l]=(0,d.useState)(!1),[i,w]=(0,d.useState)(30),m=(0,d.useRef)(null);return((0,d.useEffect)(()=>()=>{m.current&&clearInterval(m.current)},[]),s)?(0,c.jsx)(rb.Dialog,{open:!0,children:(0,c.jsxs)(rb.DialogContent,{showCloseButton:!1,onPointerDownOutside:e=>e.preventDefault(),onEscapeKeyDown:e=>e.preventDefault(),className:"tw:bg-popover tw:text-foreground tw:border-border tw:sm:max-w-[433px]",children:[(0,c.jsx)(rb.DialogTitle,{className:`tw:pb-2 tw:text-center tw:text-lg tw:font-semibold tw:text-foreground ${t}`,children:e("verify_your_email_unlock_bonus")}),(0,c.jsxs)("div",{className:"tw:mt-3 tw:flex tw:items-center tw:justify-center tw:gap-3",children:[(0,c.jsx)("div",{className:"tw:h-2 tw:flex-1 tw:overflow-hidden tw:rounded-full tw:bg-muted",children:(0,c.jsx)("div",{role:"progressbar",className:"tw:h-full tw:bg-primary",style:{width:"95%"},"aria-valuenow":95,"aria-valuemin":0,"aria-valuemax":100})}),(0,c.jsx)("img",{src:"/assets/images/loginandsignup/icon-present.svg",alt:""})]}),!o&&(0,c.jsx)("div",{className:"tw:text-center",children:(0,c.jsx)("span",{className:"tw:cursor-pointer tw:text-primary tw:hover:underline",onClick:()=>{m.current=setInterval(()=>w(e=>e-1),1e3),l(!0),n(u.default.get("unverified_email")),setTimeout(()=>{clearInterval(m.current),w(30),l(!1)},3e4)},children:e("didnt_receive")})}),o&&(0,c.jsx)("div",{className:"tw:text-center tw:text-muted-foreground",children:(0,c.jsxs)("span",{children:[e("resent_email")," (",i,")"]})}),(0,c.jsx)("div",{className:"tw:text-center",children:(0,c.jsx)("span",{className:"tw:cursor-pointer tw:text-primary tw:hover:underline",onClick:()=>{a(),r(j.DIALOGS.contactUs)},children:e("contact_us")})})]})}):null}function a7(){let{t:e,locale:t}=(0,p.useI18n)(),s=(0,w.useRouter)(),{isOpen:r,close:a}=aS(j.DIALOGS.verifiedEmail),n=(0,g.useAccountStore)(e=>e.isLoggedIn);return r?(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{e||a()},children:(0,c.jsxs)(rb.DialogContent,{className:"tw:bg-popover tw:text-foreground tw:border-border tw:sm:max-w-[328px]",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:e("your_email_is_verified")}),(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:justify-center tw:gap-3 tw:text-center",children:[(0,c.jsx)("img",{width:110,height:107,className:"tw:absolute tw:-top-[55px]",src:"/assets/images/loginandsignup/icon-present.svg",alt:""}),(0,c.jsx)("div",{className:`tw:flex tw:w-full tw:items-center tw:justify-center tw:rounded tw:bg-[rgba(0,83,60,0.5)] tw:text-center tw:text-white ${"ru"===t||"es"===t?"tw:mt-[15px] tw:h-auto tw:py-1":"tw:mt-[30px] tw:h-[29px]"}`,children:(0,c.jsx)("span",{className:"tw:text-lg tw:font-semibold",children:e("your_email_is_verified")})}),(0,c.jsx)("p",{className:"tw:mt-4 tw:text-center tw:text-xl tw:font-bold tw:text-white",children:e("you_unlocked_x_cashback")}),(0,c.jsx)("p",{className:`tw:text-center tw:text-base tw:text-[#b9bdc6] ${"ru"===t||"es"===t?"tw:m-[3px]":"tw:mt-3"}`,children:e("opt_in_deposit_and_get")}),(0,c.jsx)(s3.Button,{className:"tw:w-full",onClick:()=>{n?s.push("/promotion"):s.push("/player-login"),a()},children:e("claim_now")})]})]})}):null}function ne(){let{t:e}=(0,p.useI18n)(),t=(0,w.useRouter)(),{isOpen:s,props:r,close:a}=aS("emailVerification"),n=ak(),o=r?.verifiedForBannerCampaign||!1,l=(0,g.useAccountStore)(e=>e.email),i=(0,g.useAccountStore)(e=>e.emailVerified),m=(0,g.useAccountStore)(e=>e.userProfileLoaded),x=(0,g.useAccountStore)(e=>e.updateEmail),h=(0,g.useAccountStore)(e=>e.confirmEmail),f=(0,g.useAccountStore)(e=>e.verifyEmail),[y,v]=(0,d.useState)(""),b=/@hrzn.io\s*$/.test(l||""),[j,_]=(0,d.useState)(""),[N,C]=(0,d.useState)(!1),[S,k]=(0,d.useState)(!1),[A,E]=(0,d.useState)(!1),[I,M]=(0,d.useState)(!1),[D,P]=(0,d.useState)(!1),R=u.default.get("banner_id")||"";if((0,d.useEffect)(()=>{_(/@hrzn.io\s*$/.test(l||"")?"":l||"")},[l]),(0,d.useEffect)(()=>{m&&i&&s&&(a(),t.push("/promotion"))},[m,i,s]),!s&&!D)return null;let L=async()=>{(await h(j)).success&&M(!0)},T=async()=>{k(!1);let e=!/.+@.+\..+/.test(j);if(C(e),!e)if(!l||b||l!==j){let e=await x(j);e.success?(await h(j)).success&&M(!0):e.error?.response?.data?.error==="error.validation.email.exist"?k(!0):console.log(e)}else await L()},O=async()=>{(await f(y)).success?(a(),P(!0),setTimeout(()=>{P(!1),void 0!==u.default.get("banner_id")&&o?t.push(`/?banner_id=${u.default.get("banner_id")}`):t.push("/promotion")},3e3)):E(!0)},B=e=>`tw:rounded-[10px] tw:border-0 tw:bg-[#233137] tw:px-[9px] tw:py-[9px] tw:text-[13px]! tw:text-white tw:outline-none ${n?"tw:w-[70%]":"tw:w-[40%]"} ${e?"tw:shadow-[inset_0_0_5px_0_rgb(250,250,81)]":""}`,$="tw:relative tw:right-[50px] tw:w-[100px] tw:rounded-[10px] tw:border-0 tw:bg-[#008765] tw:p-[7px] tw:text-[16
85px] tw:font-bold tw:text-white",z="tw:m-0 tw:w-[140px] tw:text-[16px] tw:text-white",F=n?"tw:ml-[10%] tw:block tw:text-left":"tw:flex tw:flex-row tw:flex-wrap tw:items-center tw:justify-center",U=(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:F,children:[(0,c.jsx)("label",{className:z,htmlFor:"email",children:e(l&&!b?"your_email_is":"enter_your_email")}),(0,c.jsx)("input",{type:"email",id:"email",value:j,onChange:e=>_(e.target.value),className:B(N),name:"email"}),(0,c.jsx)("button",{className:$,onClick:T,children:e("submit")}),(0,c.jsx)("div",{className:"tw:w-0 tw:basis-full"}),S&&(0,c.jsx)("span",{className:n?"tw:mx-[5%] tw:my-[5%] tw:ml-0 tw:text-[12px] tw:text-[rgb(250,250,81)]":"tw:mt-[10px] tw:ml-[10%] tw:text-[12px] tw:text-[rgb(250,250,81)]",children:e("email_already_exists_please")})]})}),G=(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:text-center",children:[(0,c.jsx)("p",{className:"tw:mt-[3%] tw:text-[16px] tw:text-[#0ccf9e]",children:e("enter_the_code_received")}),(0,c.jsx)("hr",{style:{width:"80%",opacity:.1},color:"#FFFFFF"}),(0,c.jsxs)("div",{className:F,children:[(0,c.jsx)("label",{className:z,htmlFor:"code",children:e("enter_code")}),(0,c.jsx)("input",{type:"text",id:"code",value:y,onChange:e=>v(e.target.value),className:B(A),name:"code"}),(0,c.jsx)("button",{className:$,onClick:O,children:e("submit")}),(0,c.jsx)("div",{className:"tw:w-0 tw:basis-full"}
85),A&&(0,c.jsx)("span",{className:"tw:mt-[10px] tw:ml-[10%] tw:text-[12px] tw:text-[rgb(250,250,81)]",children:e("wrong_code")})]})]}),H=(0,c.jsxs)("div",{className:"tw:flex tw:justify-center tw:py-8",role:"status",children:[(0,c.jsx)(aF.Loader2,{className:"tw:size-8 tw:animate-spin tw:text-foreground"}),(0,c.jsx)("span",{className:"tw:sr-only",children:e("loading")})]});return(0,c.jsxs)(c.Fragment,{children:[D&&(0,c.jsx)("div",{id:"top_email_verification_message",className:"tw:fixed tw:left-[calc(50%-150px)] tw:top-[20%] tw:z-[2100] tw:m-0 tw:w-[304px] tw:rounded-[27px] tw:bg-[#0ccf9e] tw:p-[10px] tw:text-center tw:text-[16px] tw:text-white",style:{display:"block"},children:e("your_email_is_verified")}),(0,c.jsx)(rb.Dialog,{open:s,onOpenChange:e=>{e||a()},children:(0,c.jsxs)(rb.DialogContent,{id:n?"verify_email_mobile_dialog":"pre_email_verification_dialog",className:"tw:bg-popover tw:text-foreground tw:border-border tw:text-center",children:[(0,c.jsx)(rb.DialogTitle,{className:"tw:sr-only",children:e("please_verify_your_email")}),m?n?(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:text-center",children:[(0,c.jsx)("p",{className:"tw:m-0 tw:text-[24px] tw:text-white tw:mt-4",children:"To get access to the promotion"}),(0,c.jsx)("p",{className:"tw:m-0 tw:text-[24px] tw:text-white",style:{marginBottom:50},children:"Please Verify your email"}),!I&&(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"tw:text-[16px] tw:text-[#0ccf9e]",children:"Enter your e-mail"}),(0,c.jsx)("hr",{className:"tw:my-3 tw:w-4/5 tw:border-border tw:opacity-10"}),(0,c.jsx)("div",{className:"tw:mt-4",children:U})]}),I&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:items-center tw:text-center",children:[(0,c.jsx)("p",{className:"tw:text-[16px] tw:text-[#0ccf9e]",children:"Check your inbox"}),(0,c.jsx)("hr",{className:"tw:my-3 tw:w-4/5 tw:border-border tw:opacity-10"}),(0,c.jsx)("button",{className:"tw:rounded-[10px] tw:border-0 tw:bg-[#272727] tw:p-[10px] tw:text-[14px] tw:text-white",children:e("please_open_your_inbox")}),(0,c.jsx)("a",{href:"#",className:"tw:text-[13px] tw:tracking-normal tw:text-[#00c291] tw:underline",onClick:e=>{e.preventDefault(),M(!1)},children:e("did_not_receive_email")})]}),I&&G]}):(0,c.jsxs)("div",{id:"email_verification-header",className:"tw:flex tw:flex-col tw:text-center",children:[!o&&"BuffaloPower"!==R&&(0,c.jsx)("p",{className:"tw:m-0 tw:text-[24px] tw:text-white",children:e("please_verify_your_email")}),o&&"BuffaloPower"!==R&&(0,c.jsx)("p",{className:"tw:m-0 tw:text-[24px] tw:text-white",style:{marginBottom:50},children:"Please verify your email to get rewarded"}),o&&"BuffaloPower"===R&&(0,c.jsx)("p",{className:"tw:m-0 tw:text-[24px] tw:text-white",style:{marginBottom:50},children:"Please verify your email address to get freespins"}),!I&&(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"tw:text-[16px] tw:text-[#0ccf9e]",children:e("enter_your_email")}),(0,c.jsx)("hr",{className:"tw:my-3 tw:w-4/5 tw:border-border tw:opacity-10"}),U]}),I&&(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:text-center",children:[(0,c.jsx)("p",{className:"tw:text-[16px] tw:text-[#0ccf9e]",children:e("check_your_inbox")}),(0,c.jsx)("hr",{className:"tw:my-3 tw:w-4/5 tw:border-border tw:opacity-10"}),(0,c.jsx)("button",{className:"tw:rounded-[10px] tw:border-0 tw:bg-[#272727] tw:p-[10px] tw:text-[14px] tw:text-white",children:e("please_open_your_inbox")}),(0,c.jsx)("a",{href:"#",className:"tw:text-[13px] tw:tracking-normal tw:text-[#00c291] tw:underline",onClick:e=>{e.preventDefault(),M(!1)},children:e("did_not_receive_email")})]}),I&&G]}):H]})})]})}function nt(){var e,t;let{isOpen:s,props:r,close:a}=aS(j.DIALOGS.freeSpins);if(!s)return null;let n=r||{};return(0,c.jsx)(rb.Dialog,{open:!0,onOpenChange:e=>{!e&&(a(),n.onClose&&n.onClose())},children:(0,c.jsxs)(rb.DialogContent,{id:"freespin-dialog",className:"dialog-marketing-message marketing-image-divider tw:bg-popover tw:text-foreground tw:border-border tw:overflow-hidden",children:[(0,c.jsx)("div",{className:"tw:text-center",children:(0,c.jsx)(rb.DialogTitle,{className:"tw:text-xl tw:font-bold tw:text-foreground",children:n.title})}),(0,c.jsxs)("div",{className:"tw:flex tw:flex-col tw:gap-3 tw:text-center",children:[(0,c.jsx)("div",{className:"tw:[&_a]:font-bold tw:[&_a]:text-white",dangerouslySetInnerHTML:{__html:`<p>${n.body||""}</p>`}}),(0,c.jsxs)("div",{className:"tw:text-sm tw:text-muted-foreground",children:["This offer will expire on"," ",(e=n.startDate,t=n.lifetime,(0,m.default)(e,"YYYY-MM-DDTHH:mm:ss.SSSS").add(t,"days").format("YYYY-MM-DD HH:mm:ss"))]})]}),(0,c.jsx)("div",{className:"freespin-marketing-image"})]})})}function ns(){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(az,{}),(0,c.jsx)(aU,{}),(0,c.jsx)(aG,{}),(0,c.jsx)(aH,{}),(0,c.jsx)(a_,{}),(0,c.jsx)(aV,{}),(0,c.jsx)(aX,{}),(0,c.jsx)(aQ,{}),(0,c.jsx)(aZ,{}),(0,c.jsx)(aJ,{}),(0,c.jsx)(aq,{}),(0,c.jsx)(aK,{}),(0,c.jsx)(aW,{}),(0,c.jsx)(a4,{}),(0,c.jsx)(a8,{}),(0,c.jsx)(a6,{}),(0,c.jsx)(a9,{}),(0,c.jsx)(a7,{}),(0,c.jsx)(ne,{}),(0,c.jsx)(nt,{})]})}var nr=e.i(58334),na=e.i(25632);let nn=(0,A.default)("gem",[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]),no=(0,A.default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);
85function nl({backdropFilter:e="blur(8px)",backgroundBackgroundColor:t="rgba(34, 37, 42, 0.6)",color:s="white",modalBackgroundColor:r="black",width:a,height:n="auto",padding:o="24px 32px",margin:l="40px auto auto auto",mobileMargin:i="40px 16px auto 16px",className:d,children:w}){let u=(0,N.useIsMobile)();return(0,c.jsx)("div",{style:{backdropFilter:e,backgroundColor:t},className:`background tw:fixed tw:left-0 tw:top-0 tw:z-[5] tw:h-full tw:w-full ${d||""}`,children:(0,c.jsx)("div",{style:{color:s,backgroundColor:r,width:u?"":a,height:n,padding:u?"32px 16px":o,margin:u?i:l},className:"tw:z-[9999] tw:rounded-lg",children:w})})}let ni=` 86 query Promos($casinoCode: String!, $status: String!) { 87 casinos(filters: { name: { eq: $casinoCode } }) { 88 promotions(filters: { status: { eq: $status }, isPopUp: { eq: true } }) { 89 description 90 description_ru 91 description_es 92 description_pt 93 buttonText 94 buttonText_ru 95 buttonText_es 96 buttonText_pt 97 uuid 98 status 99 isPopUp 100 terms_and_condition 101 terms_and_condition_ru 102 terms_and_condition_es 103 terms_and_condition_pt 104 WelcomeOfferType 105 welcome_offer_description 106 welcome_offer_description_ru 107 welcome_offer_description_es 108 welcome_offer_description_pt 109 } 110 } 111 } 112`;function nc(){let{t:e,locale:t}=(0,p.useI18n)(),s=(0,N.useIsMobile)(),[r,a]=(0,d.useState)(!1),[n,o]=(0,d.useState)([]),l=(0,d.useRef)([]),i=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=!1;(async()=>{try{let t=await (0,h.gqlQuery)(ni,{casinoCode:(0,nr.getCasinoCode)(),status:(0,nr.promoStatus)()}),s=t?.casinos?.[0]?.promotions||[];e||(l.current=s,o(s))}catch(e){console.error("Could not fetch welcome offer promotions",e)}})();let t=window.setTimeout(()=>{(async()=>{try{let s,r,n=(0,m.default)(),o=!1;if(g.useAccountStore.getState().isLoggedIn){var t;let e,a=await g.useAccountStore.getState().getUserData();s=(0,m.default)(a?.data?.registrationDate),(r=await aY.useAvailablePromotionsStore.getState().getOptedInCampaigns())&&(t=r.content,e=l.current.map(e=>e.uuid),o=t.filter(function(t){return e.includes(t.uuid)}).length>0)}!e&&!0===g.useAccountStore.getState().isLoggedIn&&0===y.useDepositStore.getState().content.length&&7>n.diff(s,"days")&&l.current.length>0&&!o&&"true"!==localStorage.getItem("welcomeOffer")&&a(!0)}catch(e){console.error("Welcome offer check failed",e)}})()},2500);return()=>{e=!0,window.clearTimeout(t),i.current&&(window.clearInterval(i.current),i.current=null)}},[]);let w=(0,d.useCallback)(async()=>{j.useDialogStore.getState().openDialog("preDeposit"),await g.useAccountStore.getState().getDepositAddress()},[]),x=(0,d.useCallback)(async e=>{let t=g.useAccountStore.getState(),s=aY.useAvailablePromotionsStore.getState(),r={campaignUUID:e,userId:t.userId};null!==(await s.checkIsCampaignEligible(r)).data.optInDate||(await s.claimPromotionCampaign(e)).success?(localStorage.setItem("welcomeOffer","true"),a(!1),w()):window.alert("Something went wrong. Please contact support"),await t.getUserData(),g.useAccountStore.getState().isLoggedIn?(await s.getAvailablePromotions(u.default.get("banner_id")),await ap.useActivePromotionsStore.getState().getActiveBonuses(),await na.usePastPromotionsStore.getState().getPastBonuses(),i.current&&window.clearInterval(i.current),i.current=window.setInterval(()=>{ap.useActivePromotionsStore.getState().getActiveBonuses()},2e4)):await s.getGeneralPromotions()},[w]),f=(0,d.useCallback)(()=>{a(!1),localStorage.removeItem("welcomeOffer")},[]);return r?(0,c.jsxs)(nl,{width:"650px",children:[(0,c.jsxs)("div",{className:s?"tw:flex tw:items-start tw:justify-between":"tw:flex tw:items-center tw:justify-between",children:[s?(0,c.jsxs)("h3",{className:"tw:w-[195px] tw:text-xl tw:font-bold",children:[e("choose_your")," ð"]}):(0,c.jsxs)("h2",{className:"tw:text-2xl tw:font-bold",children:[e("choose_your")," ð"]}),(0,c.jsxs)("span",{className:"tw:cursor-pointer tw:text-[#0AC18E]",style:{fontFamily:"'Gilroy-Regular', Tahoma"},onClick:()=>f(),children:[e("skip")," â"]})]}),(0,c.jsx)("div",{className:"tw:mt-6",children:n.map((r,a)=>(0,c.jsxs)("div",{className:`tw:flex tw:items-center tw:justify-between tw:rounded tw:bg-[#17191C] tw:px-4 tw:py-[7px] tw:font-[Gilroy-Regular,Tahoma] ${0===a?"tw:mb-1":""}`,children:[0===a?(0,c.jsx)(no,{className:"tw:mr-4 tw:size-8 tw:shrink-0 tw:text-[#0AC18E]"}):(0,c.jsx)(nn,{className:"tw:mr-4 tw:size-8 tw:shrink-0 tw:text-[#0AC18E]"}),(0,c.jsxs)("div",{className:"tw:grow",children:[r.WelcomeOfferType&&(0,c.jsx)("div",{className:"tw:text-xs tw:text-[#B9BDC6]",children:e(r.WelcomeOfferType.toLowerCase().replace(" ","_")).toUpperCase()}),(0,c.jsx)("div",{style:{fontSize:s?"14px":"1rem"},children:r["en"===t?"welcome_offer_description":`welcome_offer_description_${t}`]})]}),(0,c.jsx)(s3.Button,{size:"sm",onClick:()=>void x(r.uuid),children:r["en"===t?"buttonText":`buttonText_${t}`]})]},r.uuid))})]}):null}let nd=["/slots","/blackjack","/roulette","/keno","/dice","/craps"],nw=/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile/i;function nu(e,t){return"/3game"===e&&!!t.get("demo")||nd.includes(e)}function nm(e,t){return nu(e,t)&&!g.useAccountStore.getState().token}function nx(e,t){let s=g.useAccountStore.getState();return nu(e,t)&&0===s.realBalance&&!!s.token&&!s.limitedAccount&&!u.default.get("play_real_dialog_shown")}function np(){if(document.querySelector("#third_party_game>iframe")&&nw.test(navigator.userAgent)){let e=document;try{e.exitFullscreen?e.exitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.msExitFullscreen&&e.msExitFullscreen()}catch{}}}function nh({getFreespins:e}){let t=(0,_.stripLocalePrefix)((0,w.usePathname)()),s=(0,w.useSearchParams)().toString(),r=(0,w.useRouter)(),a=(0,g.useAccountStore)(e=>e.isLoggedIn),n=(0,d.useRef)(e);return(0,d.useEffect)(()=>{n.current=e}),(0,d.useEffect)(()=>{new URLSearchParams(window.location.search).get("cat_id")||window.scrollTo(0,0)},[t]),(0,d.useEffect)(()=>
112{if(!a)return;let e=async e=>{let t=aY.useAvailablePromotionsStore.getState(),s=await t.getEligibleCampaigns(),r=await t.getBannerCampaigns(e);if(r.length>0){let e=r[0],a={campaignsData:s?s.content:[],bannerCampaignData:e};await t.isBannerCampaignEligible(a)&&(await t.claimPromotionCampaign(e.campaign_uuid),u.default.remove("firstLoginPending"),e.is_freespins&&window.setTimeout(()=>{n.current()},3e3))}};(async()=>{let s=u.default.get("banner_id");if(u.default.get("firstLoginPending")){if(s&&("/"===t||"/home"===t))try{await e(s)}catch(e){console.error("Banner campaign auto opt-in failed",e)}u.default.remove("firstLoginPending"),"/promotion"!==t&&r.push("/promotion")}})()},[t,s,a,r]),(0,d.useEffect)(()=>{let e=new URLSearchParams(s),r=j.useDialogStore.getState().openDialog,a=null,n=null;return nm(t,e)?a=window.setTimeout(()=>{np(),nm(window.location.pathname,new URLSearchParams(window.location.search))&&(r(j.DIALOGS.createAccount),u.default.set("show_create_account_dialog","true"))},12e4):u.default.get("show_create_account_dialog")&&u.default.remove("show_create_account_dialog"),nx(t,e)?n=window.setTimeout(()=>{np(),nx(window.location.pathname,new URLSearchParams(window.location.search))&&(r(j.DIALOGS.playReal),u.default.set("play_real_dialog_shown","true"))},12e4):u.default.get("play_real_dialog_shown")&&u.default.remove("play_real_dialog_shown"),()=>{null!==a&&window.clearTimeout(a),null!==n&&window.clearTimeout(n)}},[t,s]),null}let nf={"GE-AB":"ru",AM:"ru",BY:"ru",KZ:"ru",KG:"ru",RU:"ru",GS:"ru",TO:"ru",AO:"pt",BR:"pt",CV:"pt",DO:"pt",GQ:"pt",GW:"pt",MZ:"pt",PT:"pt",ST:"pt",AR:"es",BT:"es",CL:"es",CO:"es",CR:"es",CU:"es",DM:"es",EC:"es",SV:"es",GT:"es",HN:"es",MX:"es",NI:"es",PA:"es",PY:"es",PE:"es",RE:"es",UY:"es",VU:"es",ES:"es"},ng=["/faq","/tos","/privacy","/howtodeposit"],ny=["/promotion","/vip","/3game","/rocketslot","/angrybanker","/player-login","/signup"],nv=["/","/home","/promotion","/angrybanker"],nb=["/slots","/roulette","/keno","/videopoker","/satoshicircle","/3game","/rocketslot","/angrybanker"];e.s(["default",0,function({children:e}){let t=(0,_.stripLocalePrefix)((0,w.usePathname)()),s=(0,w.useRouter)(),{t:r,locale:a,setLocale:n}=(0,p.useI18n)(),o=(0,j.useDialogStore)(e=>e.openDialog),l=(0,g.useAccountStore)(e=>e.isLoggedIn),i=(0,g.useAccountStore)(e=>e.blockedCountriesList),C=(0,g.useAccountStore)(e=>e.userCountryCode),S=(0,b.useUIStore)(e=>e.simpleFooter),k=(0,b.useUIStore)(e=>e.footerDisabled),A=(0,N.useIsMobile)(),[E,I]=(0,d.useState)(!1),M=(0,d.useRef)(!0),D=(0,d.useRef)(!1),P=(0,d.useRef)(null),R=(0,d.useRef)(!1),L=(0,d.useRef)(()=>Promise.resolve()),T=(0,d.useCallback)(async()=>{let e=(t,s)=>{if(s>=t.length)return!1;let r=t[s];return -1===g.useAccountStore.getState().freespinsSeen.indexOf(r.id)&&(j.useDialogStore.getState().openDialog(j.DIALOGS.freeSpins,{...r,onClose:()=>{t.length>=s+1&&e(t,s+1)}}
112),g.useAccountStore.getState().setFreespinSeen(r.id),!0)};if(R.current)return;let t=await g.useAccountStore.getState().getUserFreeSpins();if(!t.error){await v.useGameStore.getState().getPublicGamesList();let s=t.map(e=>{var t;let s,r="slots"===e.gameId?"/slots":"/3game?game_id="+e.gameId;return{title:"You have been awarded Free Spins!",body:`We have awarded you ${e.amount} Free Spins for <a href="${r}" target="_blank">${t=e.gameId,(s=v.useGameStore.getState().games.filter(e=>e.gameId===t)).length>0?s[0].fullGameName:t}</a>.`,startDate:e.creationDate,lifetime:e.lifetime,id:e.uuid}});if(s.length&&e(s,0))return;window.setTimeout(()=>void L.current(),3e3)}},[]);(0,d.useEffect)(()=>{L.current=T}),(0,d.useEffect)(()=>{let e=g.useAccountStore.getState(),t=()=>{g.useAccountStore.getState().setUserIsActive(!document.hidden)};document.addEventListener("visibilitychange",t),(async()=>{try{await e.userIpCheck(),await e.getBlockedCountries()}catch(e){console.error(e)}if(I(!0),!u.default.get("userLanguage")){let e=g.useAccountStore.getState().userCountryCode.toUpperCase();Object.keys(nf).includes(e)&&u.default.set("userLanguage",nf[e])}if(!u.default.get("userLanguage")){let e=window.navigator.language.split("-")[0]||"en";u.default.set("userLanguage",e)}await n(u.default.get("userLanguage")||"en")})();let s=u.default.get("magicToken");return void 0!==s&&"undefined"!==s&&e.setIsLegacyUser(!0),()=>document.removeEventListener("visibilitychange",t)},[]),(0,d.useEffect)(()=>{let e=g.useAccountStore.getState(),t=new URLSearchParams(window.location.search),r=t.get("account_key"),a=t.get("no_warning"),n=u.default.get("magicToken");(async()=>{if(void 0===n||"undefined"===n||e.isLoggedIn){if(null!==r&&"undefined"!==r){if(!a&&!0!==confirm("You are restoring your account through an account key, the account you are currently logged into will be overwritten. Make sure that you have a backup of the magic link of this account. Click cancel to stop the import."))return;u.default.remove("token"),await e.retrieveJWTFromAccountKey({accountKey:r}),e.setIsLegacyUser(!0),window.history.pushState({},document.title,window.location.pathname)}}else await e.retrieveJWTFromAccountKey({accountKey:n}),window.history.pushState({},document.title,window.location.pathname),e.setIsLegacyUser(!0),u.default.remove("token"),u.default.remove("account_key");let l=t.get("btag");if(null!==l){u.default.set("btag",l,{expires:30});let e=l.split("_")[0];if(e.length>=6)try{let t=await fetch((0,h.cmsRest)(`/affiliate-btags?filters[btag][$contains]=${e}`),{method:"GET"}),r=(await t.json()).data||[];r.length&&(u.default.set("affiliateBtagPromoId",r[0].promoId,{expires:1}),s.push(`/signup?affiliatePromo=${r[0].promoId}`))}catch{}}let i=t.get("banner_id");if(null!==i&&u.default.set("banner_id",i,{expires:30}),t.get("openMyAccount")&&o(j.DIALOGS.account,{tab:0}),t.get("deposit")||t.get("convert")||t.get("buy")){let e=g.useAccountStore.getState();e.userAddress.length||e.limitedAccount||await e.getDepositAddress(),o(j.DIALOGS.newDeposit)}})()},[]),(0,d.useEffect)(()=>{let e=async()=>{let t=new URLSearchParams(window.location.search).get("cid");if(t&&!u.default.get("cid")){let s=g.useAccountStore.getState();if(s.userId){await s.updateUserProfile({identifier:t}),u.default.set("cid",t,{expires:1/24});let e=window.location.href.split("?")[0];window.history.replaceState({},document.title,e)}else window.setTimeout(()=>{e()},2e3)}};e()},[t]),(0,d.useEffect)(()=>{try{for(let e=0;e<i.length;e++)if(i[e].countryCode===C){o("newRestrictedRegion");break}}catch(e){console.error(e,"error")}},[i,C,o]);let O=(0,d.useCallback)(e=>{let t=async()=>{e()||(g.useAccountStore.getState().userIsActive&&(await g.useAccountStore.getState().hasPendingTx(),g.useAccountStore.getState().hasUnconfirmedTx&&g.useAccountStore.getState().getUserBalance()),window.setTimeout(()=>void t(),g.useAccountStore.getState().userIsActive?1e4:5e3))},s=async()=>{if(e())return;let t=y.useDepositStore.getState(),a=await t.getAllDeposits({platformCurrency:x.env.platformCurrency});a&&!a.error&&(a?.paymentId&&await t.updateLastDeposit({ref:a.paymentId}),f.toast.success(r("thank_you_for_your_deposit"),5e3)),window.setTimeout(()=>void s(),1e4)},a=async()=>
112{if(e())return;let t=window.location.pathname;"/3game"!=t&&(g.useAccountStore.getState().userIsActive&&(nv.includes(t)||M.current)&&(M.current=!1,await g.useAccountStore.getState().getUserBalance()),window.setTimeout(()=>void a(),g.useAccountStore.getState().userIsActive?6e4:1e4))},n=async()=>{e()||(await v.useGameStore.getState().initializeCasinoSession(),window.setTimeout(()=>void n(),174e4))};(async()=>{try{let t=await fetch((0,h.cmsRest)(`/targeted-promotions/findOneByPlayerId?player_id=${u.default.get("userId")}`),{method:"GET"}),s=await t.json(),r=Array.isArray(s)?s:[],a=x.env.walletManagerUrl.includes("btctest.net")?"draft":"published";if((r=r.filter(e=>e.status===a)).length){let t=r.find(e=>{let t=(0,m.default)(),s=(0,m.default)(e.start_date),r=(0,m.default)(e.end_date);return t.isBetween(s,r)});if(t&&!e()&&"true"!==u.default.get(`tpromotiondialogshown-${t.id}`)){let e=/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent);j.useDialogStore.getState().openDialog(e?"mobileTargetedPromotion":j.DIALOGS.targetedPromotion,{targetedPromotion:t})}}}catch(e){console.error("Could not load targeted promotion",e)}})(),t(),s(),a(),n(),T(),g.useAccountStore.getState().getUserData(),g.useAccountStore.getState().isLegacyUser||g.useAccountStore.getState().setSecuredByPassword(!0)},[r,T]);if((0,d.useEffect)(()=>{if(!l||D.current)return;D.current=!0;let e=!1;return R.current=!1,O(()=>e),g.useAccountStore.getState().setPlayerLoginData(),P.current=window.setInterval(()=>{g.useAccountStore.getState().setPlayerLoginData()},18e5),()=>{e=!0,R.current=!0,D.current=!1,P.current&&(window.clearInterval(P.current),P.current=null)}},[l,O]),(0,d.useEffect)(()=>{l&&("/3game"!==t&&b.useUIStore.getState().setBalanceDisabled(!1),g.useAccountStore.getState().getUserBalance())},[t,l]),"/reset-password"===t)return(0,c.jsxs)("div",{id:"wrapper",className:`${a} h-100`,children:[e,(0,c.jsx)(rM,{})]});let B="/"===t||"/home"===t,$=ny.some(e=>t.includes(e)),z=t.includes("/rocketslot"),F=t.includes("/angrybanker"),U=nb.some(e=>t.includes(e)),G=z?"rocketslot-background.png":F?"angrybanker-background.png":null,H=[$?"container-fluid tw:min-w-full":"container",U?"":"tw:max-md:max-w-full",z||F?"tw:[&_.game_holder_if]:rounded-[3px] tw:[&_.game_holder_if]:border-[3px] tw:[&_.game_holder_if]:border-solid tw:[&_.game_holder_if]:border-[#31383d] tw:[&_.game_holder_if]:shadow-[1px_1px_10px_#101010]":""].filter(Boolean).join(" "),W=G?{backgroundImage:`linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url('/assets/images/common/${G}')`}:void 0;return(0,c.jsxs)("div",{id:"wrapper",className:`${a} h-100`,children:[(0,c.jsxs)("div",{id:"ultra_container",className:`home${ng.includes(t)?" tw:bg-white":""}${"/3game"===t?" is-3game":""}`,children:[(0,c.jsx)("div",{id:"topbar_dim_stretch",className:"topbar_height"}),(0,c.jsx)("div",{id:"center_outer_alley_contents",className:"topbar_height_offset",children:(0,c.jsx)("div",{id:"outer_alley_contents",children:(0,c.jsxs)("div",{id:"alley_contents",children:[(0,c.jsx)(s9,{}),(0,c.jsxs)("div",{id:"safari_use_orientation",style:{display:"none"},children:[r("for_best_experience_use"),(0,c.jsx)("br",{}),(0,c.jsx)("button",{children:"OK"})]}),(0,c.jsxs)("div",{id:"gamearea",className:"/referral"===t?"tw:bg-white":void 0,children:[B&&(0,c.jsx)(rh,{}),B&&E&&(0,c.jsx)(rI,{}),(0,c.jsx)("div",{id:"gamearea_bordered",className:H,style:W,children:(0,c.jsx)("div",{className:`main_container${!A&&(z||F)?" container":""}`,children:(0,c.jsx)("main",{className:"router",children:e})})})]})]})})})]}),(0,c.jsx)(s6,{}),(0,c.jsx)(ns,{}),(0,c.jsx)(nc,{}),(0,c.jsx)(d.Suspense,{fallback:null,children:(0,c.jsx)(nh,{getFreespins:T})}),!S&&!k&&(0,c.jsx)(re,{}),S&&!k&&(0,c.jsx)(rt,{}),(0,c.jsx)(rr,{}),(0,c.jsx)(rl,{}),(0,c.jsx)(rM,{})]})}],10400)}]);
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.