vendor: 6,774 bytes, line 1
1import{R as r,b as Qt,j as s,m as L,r as ot,A as Gt,d as Zt}from"./index-CJWK-JrC.js";import{a as Ot}from"./logo-trade-arena-BTpZULBM.js";import{A as te}from"./arrow-right-DD2s2hPt.js";import{c as ee}from"./index-pIpE9Ylc.js";import"./tslib.es6-eMSY344_.js";function ae(o){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",a.appendChild(e),e.styleSheet?e.styleSheet.cssText=o:e.appendChild(document.createTextNode(o))}const se=o=>{switch(o){case"success":return oe;case"info":return le;case"warning":return ie;case"error":return de;default:return null}},ne=Array(12).fill(0),re=({visible:o,className:a})=>r.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":o},r.createElement("div",{className:"sonner-spinner"},ne.map((e,n)=>r.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),oe=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ie=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),le=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),de=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ce=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ue=()=>{const[o,a]=r.useState(document.hidden);return r.useEffect(()=>{const e=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),o};let kt=1;class me{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const e=this.subscribers.indexOf(a);this.subscribers.splice(e,1)}),this.publish=a=>{this.subscribers.forEach(e=>e(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var e;const{message:n,...l}=a,c=typeof a?.id=="number"||((e=a.id)==null?void 0:e.length)>0?a.id:kt++,m=this.toasts.find(x=>x.id===c),b=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),m?this.toasts=this.toasts.map(x=>x.id===c?(this.publish({...x,...a,id:c,title:n}),{...x,...a,id:c,dismissible:b,title:n}):x):this.addToast({title:n,...l,dismissible:b,id:c}),c},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:a,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),a),this.message=(a,e)=>this.create({...e,message:a}),this.error=(a,e)=>this.create({...e,message:a,type:"error"}),this.success=(a,e)=>this.create({...e,type:"success",message:a}),this.info=(a,e)=>this.create({...e,type:"info",message:a}),this.warning=(a,e)=>this.create({...e,type:"warning",message:a}),this.loading=(a,e)=>this.create({...e,type:"loading",message:a}),this.promise=(a,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:a,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));const l=Promise.resolve(a instanceof Function?a():a);let c=n!==void 0,m;const b=l.then(async d=>{if(m=["resolve",d],r.isValidElement(d))c=!1,this.create({id:n,type:"default",message:d});else if(pe(d)&&!d.ok){c=!1;const t=typeof e.error=="function"?await e.error(`HTTP error! status: ${d.status}`):e.error,w=typeof e.description=="function"?await e.description(`HTTP error! status: ${d.status}`):e.description,S=typeof t=="object"&&!r.isValidElement(t)?t:{message:t};this.create({id:n,type:"error",description:w,...S})}else if(d instanceof Error){c=!1;const t=typeof e.error=="function"?await e.error(d):e.error,w=typeof e.description=="function"?await e.description(d):e.description,S=typeof t=="object"&&!r.isValidElement(t)?t:{message:t};this.create({id:n,type:"error",description:w,...S})}else if(e.success!==void 0){c=!1;const t=typeof e.success=="function"?await e.success(d):e.success,w=typeof e.description=="function"?await e.description(d):e.description,S=typeof t=="object"&&!r.isValidElement(t)?t:{message:t};this.create({id:n,type:"success",description:w,...S})}}).catch(async d=>{if(m=["reject",d],e.error!==void 0){c=!1;const f=typeof e.error=="function"?await e.error(d):e.error,t=typeof e.description=="function"?await e.description(d):e.description,O=typeof f=="object"&&!r.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:t,...O})}}).finally(()=>{c&&(this.dismiss(n),n=void 0),e.finally==null||e.finally.call(e)}),x=()=>new Promise((d,f)=>b.then(()=>m[0]==="reject"?f(m[1]):d(m[1])).catch(f));return typeof n!="string"&&typeof n!="number"?{unwrap:x}:Object.assign(n,{unwrap:x})},this.custom=(a,e)=>{const n=e?.id||kt++;return this.create({jsx:a(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const T=new me,fe=(o,a)=>{const e=a?.id||kt++;return T.addToast({title:o,...a,id:e}),e},pe=o=>o&&typeof o=="object"&&"ok"in o&&typeof o.ok=="boolean"&&"status"in o&&typeof o.status=="number",he=fe,ge=()=>T.toasts,be=()=>T.getActiveToasts(),xe=Object.assign(he,{success:T.success,info:T.info,warning:T.warning,error:T.error,custom:T.custom,message:T.message,promise:T.promise,dismiss:T.dismiss,loading:T.loading},{getHistory:ge,getToasts:be});a
vendor: 14,874 bytes, line 1
1e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
1bt(o){return o.label!==void 0}const ve=3,ye="24px",we="16px",It=4e3,Ne=356,je=14,Ee=45,ke=200;
vendor: 7,512 bytes, line 1
1function z(...o){return o.filter(Boolean).join(" ")}function Se(o){const[a,e]=o.split("-"),n=[];return a&&n.push(a),e&&n.push(e),n}const Te=o=>{var a,e,n,l,c,m,b,x,d;const{invert:f,toast:t,unstyled:w,interacting:O,setHeights:S,visibleToasts:xt,heights:W,index:p,toasts:it,expanded:X,removeToast:lt,defaultRichColors:vt,closeButton:P,style:at,cancelButtonStyle:Y,actionButtonStyle:yt,className:dt="",descriptionClassName:wt="",duration:st,position:I,gap:ct,expandByDefault:nt,classNames:h,icons:j,closeButtonAriaLabel:$="Close toast"}=o,[V,D]=r.useState(null),[q,ut]=r.useState(null),[u,y]=r.useState(!1),[v,R]=r.useState(!1),[K,g]=r.useState(!1),[J,mt]=r.useState(!1),[ft,Q]=r.useState(!1),[Ht,Nt]=r.useState(0),[Lt,St]=r.useState(0),rt=r.useRef(t.duration||st||It),Tt=r.useRef(null),H=r.useRef(null),$t=p===0,Ft=p+1<=xt,_=t.type,G=t.dismissible!==!1,Yt=t.className||"",Vt=t.descriptionClassName||"",pt=r.useMemo(()=>W.findIndex(i=>i.toastId===t.id)||0,[W,t.id]),qt=r.useMemo(()=>{var i;return(i=t.closeButton)!=null?i:P},[t.closeButton,P]),_t=r.useMemo(()=>t.duration||st||It,[t.duration,st]),jt=r.useRef(0),Z=r.useRef(0),Ct=r.useRef(0),tt=r.useRef(null),[Ut,Wt]=I.split("-"),Rt=r.useMemo(()=>W.reduce((i,N,k)=>k>=pt?i:i+N.height,0),[W,pt]),Bt=ue(),Xt=t.invert||f,Et=_==="loading";Z.current=r.useMemo(()=>pt*ct+Rt,[pt,Rt]),r.useEffect(()=>{rt.current=_t},[_t]),r.useEffect(()=>{y(!0)},[]),r.useEffect(()=>{const i=H.current;if(i){const N=i.getBoundingClientRect().height;return St(N),S(k=>[{toastId:t.id,height:N,position:t.position},...k]),()=>S(k=>k.filter(C=>C.toastId!==t.id))}},[S,t.id]),r.useLayoutEffect(()=>{if(!u)return;const i=H.current,N=i.style.height;i.style.height="auto";const k=i.getBoundingClientRect().height;i.style.height=N,St(k),S(C=>C.find(E=>E.toastId===t.id)?C.map(E=>E.toastId===t.id?{...E,height:k}:E):[{toastId:t.id,height:k,position:t.position},...C])},[u,t.title,t.description,S,t.id,t.jsx,t.action,t.cancel]);const F=r.useCallback(()=>{R(!0),Nt(Z.current),S(i=>i.filter(N=>N.toastId!==t.id)),setTimeout(()=>{lt(t)},ke)},[t,lt,S,Z]);r.useEffect(()=>{if(t.promise&&_==="loading"||t.duration===1/0||t.type==="loading")return;let i;return X||O||Bt?(()=>{if(Ct.current<jt.current){const C=new Date().getTime()-jt.current;rt.current=rt.current-C}Ct.current=new Date().getTime()})():rt.current!==1/0&&(jt.current=new Date().getTime(),i=setTimeout(()=>{t.onAutoClose==null||t.onAutoClose.call(t,t),F()},rt.current)),()=>clearTimeout(i)},[X,O,t,_,Bt,F]),r.useEffect(()=>{t.delete&&(F(),t.onDismiss==null||t.onDismiss.call(t,t))},[F,t.delete]);function Kt(){var i;if(j?.loading){var N;return r.createElement("div",{className:z(h?.loader,t==null||(N=t.classNames)==null?void 0:N.loader,"sonner-loader"),"data-visible":_==="loading"},j.loading)}return r.createElement(re,{className:z(h?.loader,t==null||(i=t.classNames)==null?void 0:i.loader),visible:_==="loading"})}const Jt=t.icon||j?.[_]||se(_);var Dt,At;return r.createElement("li",{tabIndex:0,ref:H,className:z(dt,Yt,h?.toast,t==null||(a=t.classNames)==null?void 0:a.toast,h?.default,h?.[_],t==null||(e=t.classNames)==null?void 0:e[_]),"data-sonner-toast":"","data-rich-colors":(Dt=t.richColors)!=null?Dt:vt,"data-styled":!(t.jsx||t.unstyled||w),"data-mounted":u,"data-promise":!!t.promise,"data-swiped":ft,"data-removed":v,"data-visible":Ft,"data-y-position":Ut,"data-x-position":Wt,"data-index":p,"data-front":$t,"data-swiping":K,"data-dismissible":G,"data-type":_,"data-invert":Xt,"data-swipe-out":J,"data-swipe-direction":q,"data-expanded":!!(X||nt&&u),"data-testid":t.testId,style:{"--index":p,"--toasts-before":p,"--z-index":it.length-p,"--offset":`${v?Ht:Z.current}px`,"--initial-height":nt?"auto":`${Lt}px`,...at,...t.style},onDragEnd:()=>{g(!1),D(null),tt.current=null},onPointerDown:i=>{i.button!==2&&(Et||!G||(Tt.current=new Date,Nt(Z.current),i.target.setPointerCapture(i.pointerId),i.target.tagName!=="BUTTON"&&(g(!0),tt.current={x:i.clientX,y:i.clientY})))},onPointerUp:()=>{var i,N,k;if(J||!G)return;tt.current=null;const C=Number(((i=H.current)==null?void 0:i.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ht=Number(((N=H.current)==null?void 0:N.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),E=new Date().getTime()-((k=Tt.current)==null?void 0:k.getTime()),B=V==="x"?C:ht,gt=Math.abs(B)/E;if(Math.abs(B)>=Ee||gt>.11){Nt(Z.current),t.onDismiss==null||t.onDismiss.call(t,t),ut(V==="x"?C>0?"right":"left":ht>0?"down":"up"),F(),mt(!0);return}else{var A,M;(A=H.current)==null||A.style.setProperty("--swipe-amount-x","0px"),(M=H.current)==null||M.style.setProperty("--swipe-amount-y","0px")}Q(!1),g(!1),D(null)},onPointerMove:i=>{var N,k,C;if(!tt.current||!G||((N=window.getSelection())==null?void 0:N.toString().length)>0)return;const E=i.clientY-tt.current.y,B=i.clientX-tt.current.x;var gt;const A=(gt=o.swipeDirections)!=null?gt:Se(I);!V&&(Math.abs(B)>1||Math.abs(E)>1)&&D(Math.abs(B)>Math.abs(E)?"x":"y");let M={x:0,y:0};const Mt=U=>1/(1.5+Math.abs(U)/20);if(V==="y"){if(A.includes("top")||A.includes("bottom"))if(A.includes("top")&&E<0||A.includes("bottom")&&E>0)M.y=E;else{const U=E*Mt(E);M.y=Math.abs(U)<Math.abs(E)?U:E}}else if(V==="x"&&(A.includes("left")||A.includes("right")))if(A.includes("left")&&B<0||A.includes("right")&&B>0)M.x=B;else{const U=B*Mt(B);M.x=Math.abs(U)<Math.abs(B)?U:B}(Math.abs(M.x)>0||Math.abs(M.y)>0)&&Q(!0),(k=H.current)==null||k.style.setProperty("--swipe-amount-x",`${M.x}px`),(C=H.current)==null||C.style.setProperty("--swipe-amount-y",`${M.y}px`)}},qt&&!t.jsx&&_!=="loading"?r.createElement("button",{"aria-label":$,"data-disabled":Et,"data-close-button":!0,onClick:Et||!G?()=>{}:()=>{F(),t.onDismiss==null||t.onDismiss.call(t,t)},className:z(h?.closeButton,t==null||(n=t.classNames)==null?void 0:n.closeButton)},(At=j?.close)!=null?At:ce):null,(_||t.icon||t.promise)&&t.icon!==null&&(j?.[_]!==null||t.icon)?r.createElement("div",{"data-icon":"",className:z(h?.icon,t==null||(l=t.classNames)==null?void 0:l.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Kt():null,t.type!=="loading"?Jt:null):null,r.createElement("div",{"data-content":"",className:z(h?.content,t==null||(c=t.classNames)==null?void 0:c.content)},r.createElement("div",{"data-title":"",className:z(h?.title,t==null||(m=t.classNames)==null?void 0:m.title)},t.jsx?t.jsx:typeof t.title=="function"?t.title():t.title),t.description?r.createElement("div",{"data-description":"",className:z(wt,Vt,h?.description,t==null||(b=t.classNames)==null?void 0:b.description)},typeof t.description=="function"?t.description():t.description):null),r.isValidElement(t.cancel)?t.cancel:t.cancel&&bt(t.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||Y,onClick:i=>{bt(t.cancel)&&G&&(t.cancel.onClick==null||t.cancel.onClick.call(t.cancel,i),F())},className:z(h?.cancelButton,t==null||(x=t.classNames)==null?void 0:x.cancelButton)},t.cancel.label):null,r.isValidElement(t.action)?t.action:t.action&&bt(t.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||yt,onClick:i=>{bt(t.action)&&(t.action.onClick==null||t.action.onClick.call(t.action,i),!i.defaultPrevented&&F())},className:z(h?.actionButton,t==null||(d=t.classNames)==null?void 0:d.actionButton)},t.action.label):null)};function zt(){if(typeof window>"u"||typeof document>"u")return"ltr";const o=document.documentElement.getAttribute("dir");return o==="auto"||!o?window.getComputedStyle(document.documentElement).direction:o}function _e(o,a){const e={};
1return[o,a].forEach((n,l)=>{const c=l===1,m=c?"--mobile-offset":"--offset",b=c?we:ye;function x(d){["top","right","bottom","left"].forEach(f=>{e[`${m}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof n=="number"||typeof n=="string"?x(n):typeof n=="object"?["top","right","bottom","left"].forEach(d=>{n[d]===void 0?e[`${m}-${d}`]=b:e[`${m}-${d}`]=typeof n[d]=="number"?`${n[d]}px`:n[d]}):x(b)}),e}const Ce=r.forwardRef(function(a,e){const{id:n,invert:l,position:c="bottom-right",hotkey:m=["altKey","KeyT"],expand:b,closeButton:x,className:d,offset:f,mobileOffset:t,theme:w="light",richColors:O,duration:S,style:xt,visibleToasts:W=ve,toastOptions:p,dir:it=zt(),gap:X=je,icons:lt,containerAriaLabel:vt="Notifications"}=a,[P,at]=r.useState([]),Y=r.useMemo(()=>n?P.filter(u=>u.toasterId===n):P.filter(u=>!u.toasterId),[P,n]),yt=r.useMemo(()=>Array.from(new Set([c].concat(Y.filter(u=>u.position).map(u=>u.position)))),[Y,c]),[dt,wt]=r.useState([]),[st,I]=r.useState(!1),[ct,nt]=r.useState(!1),[h,j]=r.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=r.useRef(null),V=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=r.useRef(null),q=r.useRef(!1),ut=r.useCallback(u=>{at(y=>{var v;return(v=y.find(R=>R.id===u.id))!=null&&v.delete||T.dismiss(u.id),y.filter(({id:R})=>R!==u.id)})},[]);return r.useEffect(()=>T.subscribe(u=>{if(u.dismiss){requestAnimationFrame(()=>{at(y=>y.map(v=>v.id===u.id?{...v,delete:!0}:v))});return}setTimeout(()=>{Qt.flushSync(()=>{at(y=>{const v=y.findIndex(R=>R.id===u.id);return v!==-1?[...y.slice(0,v),{...y[v],...u},...y.slice(v+1)]:[u,...y]})})})}),[P]),r.useEffect(()=>{if(w!=="system"){j(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;const u=window.matchMedia("(prefers-color-scheme: dark)");try{u.addEventListener("change",({matches:y})=>{j(y?"dark":"light")})}catch{u.addListener(({matches:v})=>{try{j(v?"dark":"light")}catch(R){console.error(R)}})}},[w]),r.useEffect(()=>{P.length<=1&&I(!1)},[P]),r.useEffect(()=>{const u=y=>{var v;if(m.every(g=>y[g]||y.code===g)){var K;I(!0),(K=$.current)==null||K.focus()}y.code==="Escape"&&(document.activeElement===$.current||(v=$.current)!=null&&v.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[m]),r.useEffect(()=>{if($.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,q.current=!1)}},[$.current]),r.createElement("section",{ref:e,"aria-label":`${vt} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},yt.map((u,y)=>{var v;const[R,K]=u.split("-");return Y.length?r.createElement("ol",{key:u,dir:it==="auto"?zt():it,tabIndex:-1,ref:$,className:d,"data-sonner-toaster":!0,"data-sonner-theme":h,"data-y-position":R,"data-x-position":K,style:{"--front-toast-height":`${((v=dt[0])==null?void 0:v.height)||0}px`,"--width":`${Ne}px`,"--gap":`${X}px`,...xt,..._e(f,t)},onBlur:g=>{q.current&&!g.currentTarget.contains(g.relatedTarget)&&(q.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:g=>{g.target instanceof HTMLElement&&g.target.dataset.dismissible==="false"||q.current||(q.current=!0,D.current=g.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{ct||I(!1)},onDragEnd:()=>I(!1),onPointerDown:g=>{g.target instanceof HTMLElement&&g.target.dataset.dismissible==="false"||nt(!0)},onPointerUp:()=>nt(!1)},Y.filter(g=>!g.position&&y===0||g.position===u).map((g,J)=>{var mt,ft;return r.createElement(Te,{key:g.id,icons:lt,index:J,toast:g,defaultRichColors:O,duration:(mt=p?.duration)!=null?mt:S,className:p?.className,descriptionClassName:p?.descriptionClassName,invert:l,visibleToasts:W,closeButton:(ft=p?.closeButton)!=null?ft:x,interacting:ct,position:u,style:p?.style,unstyled:p?.unstyled,classNames:p?.classNames,cancelButtonStyle:p?.cancelButtonStyle,actionButtonStyle:p?.actionButtonStyle,closeButtonAriaLabel:p?.closeButtonAriaLabel,removeToast:ut,toasts:Y.filter(Q=>Q.position==g.position),heights:dt.filter(Q=>Q.position==g.position),setHeights:wt,expandByDefault:b,gap:X,expanded:st,swipeDirections:a.swipeDirections})})):null}))});function Re({step:o,total:a,label:e}){const n=Math.round(o/a*100);return s.jsxs("div",{className:"w-full",children:[s.jsx("div",{className:"h-[5px] overflow-hidden rounded-full bg-arena-surface-2",children:s.jsx("div",{className:"arena-gradient-cta h-full rounded-full transition-[width] duration-500",style:{width:`${n}%`}})}),s.jsxs("div",{className:"mt-2.5 flex justify-between text-xs font-semibold text-arena-text-muted",children:[s.jsx("span",{children:e}),s.jsxs("span",{children:["Passo ",o," de ",a]})]})]})}function Be({firstName:o}){return o?s.jsxs("span",{className:"text-xs text-arena-text-muted",children:["Respondendo como ",s.jsx("b",{className:"text-white",children:o})]}):null}const De={hidden:{},visible:{transition:{staggerChildren:.13,delayChildren:.15}}},et={hidden:{opacity:0,y:22},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},Ae={hidden:{opacity:0,scale:.82},visible:{opacity:1,scale:1,transition:{duration:.7,ease:"easeOut"}}};function Me({firstName:o,onStart:a}){return s.jsxs("div",{className:"relative flex min-h-[78vh] flex-col items-center justify-center text-center",children:[s.jsx("div",{className:"welcome-particles pointer-events-none absolute inset-0 overflow-hidden",children:Array.from({length:14}).map((e,n)=>{const l=(n*79+9)%100,c=13+n%6*2,m=n*1.7%11;return s.jsx("span",{className:"welcome-particle",style:{left:`${l}%`,animationDuration:`${c}s`,animationDelay:`-${m}s`}},n)})}),s.jsxs(L.div,{variants:De,initial:"hidden",animate:"visible",className:"relative z-10 flex flex-col items-center px-2",children:[s.jsx(L.img,{variants:Ae,src:Ot,alt:"Trade Arena",className:"h-11 w-auto md:h-12",style:{filter:"drop-shadow(0 8px 40px rgba(251,131,14,0.35))"}}),s.jsx(L.div,{variants:et,className:"arena-badge mt-7",style:{fontSize:"10px"},children:"SEU FEEDBACK"}),o&&s.jsxs(L.p,{variants:et,className:"mt-5 font-display text-lg font-semibold text-arena-text-body md:text-xl",children:["Bem-vindo de volta, ",o," ",s.jsx("span",{className:"align-middle",children:"ð"})]}),s.jsxs(L.h1,{variants:et,className:"mt-3 max-w-2xl font-display text-4xl font-extrabold leading-[1.08] tracking-tight md:text-6xl",children:["Sua opinião molda a"," ",s.jsx("span",{className:"arena-gradient-brand-text",children:"próxima Arena"}),"."]}),s.jsx(L.p,{variants:et,className:"mt-5 max-w-md text-base leading-relaxed text-arena-text-muted md:text-lg",children:"São 3 perguntas rápidas sobre sua experiência. Leva menos de 3 minutos â e cada resposta vira melhoria de verdade."}),s.jsxs(L.button,{variants:et,type:"button",onClick:a,className:"arena-btn-primary mt-9",style:{boxShadow:"0 12px 44px rgba(251,131,14,0.4)"},children:["Começar ",s.jsx(te,{className:"size-4"})]}),s.jsx(L.p,{variants:et,className:"mt-5 text-xs text-arena-text-muted",style:{opacity:.85}
1,children:"~3 min · 3 perguntas · seu retorno chega direto no time"})]}),s.jsx("style",{children:` 2 .welcome-particles .welcome-particle { 3 position: absolute; 4 bottom: -10px; 5 width: 3px; 6 height: 3px; 7 border-radius: 50%; 8 background: #FB830E; 9 opacity: 0.4; 10 animation: welcomeFloatUp linear infinite; 11 filter: blur(0.5px); 12 box-shadow: 0 0 6px #FB830E; 13 } 14 @keyframes welcomeFloatUp { 15 from { transform: translateY(0); opacity: 0; } 16 10% { opacity: 0.45; } 17 90% { opacity: 0.45; } 18 to { transform: translateY(-90vh); opacity: 0; } 19 } 20 @media (prefers-reduced-motion: reduce) { 21 .welcome-particles .welcome-particle { animation: none; display: none; } 22 } 23 `})]})}function Ie({value:o,onChange:a}){return s.jsxs("div",{children:[s.jsx("div",{role:"radiogroup","aria-label":"Nota de 0 a 10",className:"flex flex-wrap gap-2",children:Array.from({length:11},(e,n)=>n).map(e=>{const n=o===e;return s.jsx("button",{type:"button",role:"radio","aria-checked":n,"aria-label":String(e),onClick:()=>a(e),className:`h-[52px] min-w-[40px] flex-1 rounded-xl border font-display text-lg font-bold transition ${n?"arena-gradient-cta border-transparent text-white":"border-arena-surface-3 bg-arena-surface-2 text-arena-text-body hover:-translate-y-0.5 hover:border-arena-orange"}`,style:n?{boxShadow:"0 10px 24px -10px rgba(251,131,14,.6)"}:void 0,children:e},e)})}),s.jsxs("div",{className:"mt-3 flex justify-between text-xs text-arena-text-muted",children:[s.jsx("span",{children:"Jamais"}),s.jsx("span",{children:"Com certeza"})]})]})}function ze({firstName:o,nps:a,onNps:e,fallbackEmail:n,onFallbackEmail:l,onNext:c}){return s.jsxs("div",{children:[s.jsx("div",{className:"arena-eyebrow mb-4",children:"Nota geral"}),s.jsx("h1",{className:"font-display text-3xl font-extrabold leading-tight tracking-tight md:text-4xl",children:"De 0 a 10, o quanto você recomendaria a Trade Arena?"}),s.jsx("p",{className:"mt-3 max-w-md text-base text-arena-text-muted",children:"Pensa num amigo que também opera. Você o mandaria pra cá?"}),!o&&s.jsxs("div",{className:"mt-6 rounded-2xl border border-dashed border-arena-surface-3 bg-white/[0.015] p-4",children:[s.jsx("div",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-arena-yellow",children:"â³ Não te reconhecemos por aqui"}),s.jsx("label",{htmlFor:"fb-email",className:"mt-2 block text-sm text-arena-text-body",children:"Deixa seu e-mail pra gente vincular sua resposta (opcional)"}),s.jsx("input",{id:"fb-email",type:"email",value:n,onChange:m=>l(m.target.value),placeholder:"[email protected]",className:"mt-2 w-full rounded-xl border border-arena-surface-3 bg-[#0a0a0a] px-4 py-3 text-[15px] text-white outline-none focus:border-arena-orange focus:ring-2 focus:ring-arena-orange/20"})]}),s.jsx("div",{className:"mt-8",children:s.jsx(Ie,{value:a,onChange:e})}),s.jsx("div",{className:"mt-9 flex justify-end",children:s.jsx("button",{type:"button",disabled:a===null,onClick:c,className:"arena-btn-primary disabled:cursor-not-allowed disabled:opacity-50",children:"Continuar â"})})]})}function Oe({value:o,onChange:a,label:e,icon:n}){return s.jsxs("div",{className:"flex items-center justify-between border-b border-arena-border py-4 last:border-b-0",children:[s.jsxs("div",{className:"flex items-center gap-3 text-[15px] font-medium",children:[s.jsx("span",{className:"grid h-9 w-9 place-items-center rounded-[10px] border border-arena-surface-3 bg-arena-surface-2 text-base",children:n}),e]}),s.jsx("div",{className:"flex gap-1.5",role:"radiogroup","aria-label":e,children:[1,2,3,4,5].map(l=>s.jsx("button",{type:"button",role:"radio","aria-checked":o===l,"aria-label":`${l} ${l>1?"estrelas":"estrela"}`,onClick:()=>a(o===l?0:l),className:`text-2xl leading-none transition hover:scale-110 ${l<=o?"text-arena-yellow":"text-[#3a3a3a]"}`,children:"â "},l))})]})}const Pe=[{key:"torneios",label:"Torneios",icon:"ð"},{key:"conta_safe",label:"Conta Safe",icon:"ð¡ï¸"},{key:"suporte",label:"Suporte",icon:"ð¬"},{key:"plataforma",label:"Plataforma",icon:"ð"}];function He({ratings:o,onRate:a,onBack:e,onNext:n}){return s.jsxs("div",{children:[s.jsx("div",{className:"arena-eyebrow mb-4",children:"Por área"}),s.jsx("h1",{className:"font-display text-3xl font-extrabold leading-tight tracking-tight md:text-4xl",children:"Dá uma nota pra cada parte"}),s.jsx("p",{className:"mt-3 text-base text-arena-text-muted",children:"Toque nas estrelas. Pula o que você não usa."}),s.jsx("div",{className:"mt-6",children:Pe.map(l=>s.jsx(Oe,{label:l.label,icon:l.icon,value:o[l.key],onChange:c=>a(l.key,c)},l.key))}),s.jsxs("div",{className:"mt-9 flex justify-between",children:[s.jsx("button",{type:"button",onClick:e,className:"arena-btn-ghost",children:"â Voltar"}),s.jsx("button",{type:"button",onClick:n,className:"arena-btn-primary",children:"Continuar â"})]})]})}function Le({gostaMais:o,mudaria:a,onChange:e,onBack:n,onSubmit:l,submitting:c}){const m="w-full rounded-xl border border-arena-surface-3 bg-[#0a0a0a] px-4 py-3.5 text-[15px] text-white outline-none transition focus:border-arena-orange focus:ring-2 focus:ring-arena-orange/20 min-h-[120px] resize-y";return s.jsxs("div",{children:[s.jsx("div",{className:"arena-eyebrow mb-4",children:"Na sua voz"}),s.jsx("h1",{className:"font-display text-3xl font-extrabold leading-tight tracking-tight md:text-4xl",children:"O que você quer que a gente saiba?"}),s.jsx("label",{className:"mb-2 mt-6 block text-[15px] font-semibold",children:"O que você mais gosta na Arena?"}),s.jsx("textarea",{className:m,value:o,onChange:b=>e("gostaMais",b.target.value),placeholder:"O que te faz ficar..."}),s.jsx("label",{className:"mb-2 mt-5 block text-[15px] font-semibold",children:"O que você mudaria amanhã?"}),s.jsx("textarea",{className:m,value:a,onChange:b=>e("mudaria",b.target.value),placeholder:"Manda ver, a gente aguenta."}),s.jsxs("div",{className:"mt-9 flex justify-between",children:[s.jsx("button",{type:"button",onClick:n,className:"arena-btn-ghost",children:"â Voltar"}
23),s.jsx("button",{type:"button",onClick:l,disabled:c,className:"arena-btn-primary disabled:opacity-60",children:c?"Enviando...":"Enviar feedback â"})]})]})}function $e({firstName:o}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"arena-gradient-cta mx-auto mb-7 grid h-[88px] w-[88px] place-items-center rounded-full text-4xl",style:{boxShadow:"0 0 60px -10px rgba(251,131,14,.7)"},children:"â"}),s.jsxs("h1",{className:"font-display text-3xl font-extrabold tracking-tight md:text-4xl",children:["Valeu",o?`, ${o}`:"","! ð"]}),s.jsx("p",{className:"mx-auto mt-3 max-w-md text-base text-arena-text-muted",children:"Seu feedback chegou direto no time. à com retorno como o seu que a Arena fica melhor a cada semana."}),s.jsxs("figure",{className:"mx-auto mt-8 max-w-md rounded-2xl border border-arena-surface-3 bg-arena-card p-5 text-left",children:[s.jsx("blockquote",{className:"border-l-2 border-arena-orange pl-4 font-display text-[15px] font-semibold leading-snug",children:'"Mandei dois feedbacks e vi os dois virarem feature. Aqui escutam de verdade."'}),s.jsx("figcaption",{className:"mt-3 pl-4 text-xs text-arena-text-muted",children:"â Rafael M., trader · liga Alpha"})]}),s.jsx("p",{className:"mt-5 text-xs text-arena-text-muted",children:"+2.300 traders já deram retorno este mês"}),s.jsx("a",{href:"https://tradearena.com.br",className:"arena-btn-ghost mt-8 inline-flex",children:"Voltar pra plataforma"})]})}const Fe="https://upespttemhmrewszxjet.supabase.co",Ye="sb_publishable_SD9JO7A9g-3kKVgY9PoH3Q_XnyraNBW",Pt=ee(Fe,Ye);async function Ve(o){if(!o)return{firstName:null,channel:null,valid:!1};const{data:a,error:e}=await Pt.rpc("resolve_feedback_token",{t:o});if(e||!a||a.length===0)return{firstName:null,channel:null,valid:!1};const n=a[0];return{firstName:n.first_name,channel:n.channel,valid:n.valid}}async function qe(o,a){const{error:e}=await Pt.rpc("submit_feedback",{p_token:o,p_fallback_email:a.fallbackEmail||null,p_nps:a.nps,p_rating_torneios:a.ratings.torneios||null,p_rating_conta_safe:a.ratings.conta_safe||null,p_rating_suporte:a.ratings.suporte||null,p_rating_plataforma:a.ratings.plataforma||null,p_gosta_mais:a.gostaMais||null,p_mudaria:a.mudaria||null,p_user_agent:typeof navigator<"u"?navigator.userAgent:null});return{ok:!e}}const Ue=["Nota geral","Por área","Na sua voz","ConcluÃdo"];function We({token:o}){const[a,e]=ot.useState(null),[n,l]=ot.useState(0),[c,m]=ot.useState(!1),[b,x]=ot.useState({nps:null,ratings:{torneios:0,conta_safe:0,suporte:0,plataforma:0},gostaMais:"",mudaria:"",fallbackEmail:""});ot.useEffect(()=>{let f=!0;return Ve(o).then(t=>{f&&t.valid&&t.firstName&&e(t.firstName)}),()=>{f=!1}},[o]);const d=async()=>{m(!0);const{ok:f}=await qe(o,b);m(!1),f?l(4):xe.error("Algo deu errado ao enviar. Tenta de novo?")};return s.jsxs("div",{className:"relative min-h-screen overflow-hidden bg-arena-black text-white",children:[s.jsx(Ce,{theme:"dark",position:"top-center",richColors:!0}),s.jsxs("div",{className:"pointer-events-none fixed inset-0",children:[s.jsx("div",{className:"bg-texture-dots absolute inset-0 opacity-60"}),s.jsx("div",{className:"arena-orb arena-orb-a",style:{width:480,height:480,top:-160,left:-120,background:"radial-gradient(circle,rgba(251,131,14,.4),transparent 65%)"}}),s.jsx("div",{className:"arena-orb arena-orb-b",style:{width:420,height:420,bottom:-160,right:-120,background:"radial-gradient(circle,rgba(238,50,47,.28),transparent 65%)"}})]}),n>=1&&s.jsxs("header",{className:"relative z-10 mx-auto flex w-full max-w-3xl items-center justify-between px-7 py-6",children:[s.jsx("img",{src:Ot,alt:"Trade Arena",className:"h-7 w-auto"}),s.jsx(Be,{firstName:a})]}),n>=1&&n<4&&s.jsx("div",{className:"relative z-10 mx-auto w-full max-w-3xl px-7",children:s.jsx(Re,{step:n,total:3,label:Ue[n-1]})}),s.jsx("main",{className:"relative z-10 mx-auto flex min-h-[70vh] w-full max-w-2xl items-center px-6 py-10",children:s.jsx("div",{className:"w-full",children:s.jsx(Gt,{mode:"wait",children:s.jsxs(L.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.35,ease:[.2,.7,.2,1]},children:[n===0&&s.jsx(Me,{firstName:a,onStart:()=>l(1)}),n===1&&s.jsx(ze,{firstName:a,nps:b.nps,onNps:f=>x(t=>({...t,nps:f})),fallbackEmail:b.fallbackEmail,onFallbackEmail:f=>x(t=>({...t,fallbackEmail:f})),onNext:()=>l(2)}),n===2&&s.jsx(He,{ratings:b.ratings,onRate:(f,t)=>x(w=>({...w,ratings:{...w.ratings,[f]:t}})),onBack:()=>l(1),onNext:()=>l(3)}),n===3&&s.jsx(Le,{gostaMais:b.gostaMais,mudaria:b.mudaria,onChange:(f,t)=>x(w=>({...w,[f]:t})),onBack:()=>l(2),onSubmit:d,submitting:c}),n===4&&s.jsx($e,{firstName:a})]},n)})})})]})}function ta(){const{t:o}=Zt.useSearch();return s.jsx(We,{token:o??null})}export{ta as component};
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.