1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2533],{4202:(e,a,r)=>{"use strict";r.d(a,{a:()=>i});var t=r(96851);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4,{isConnected:a}=(0,t.Y)();return!a&&e}},5166:(e,a,r)=>{"use strict";r.d(a,{o:()=>x});var t=r(67768),i=r(74359),n=r(40097),s=r(5720),o=r(22782),d=r(72665),c=r(14232),l=r(96851),u=r(4202),p=r(60748);let g=Object.freeze({seller:{basePath:"/seller",refreshEvent:"REFRESH_SELLER_WALLET",keyPrefix:"seller"},influencer:{basePath:"/influencer",refreshEvent:"REFRESH_INFLUENCER_WALLET",keyPrefix:"influencer"}}),h=Object.freeze({balance:0,owner:null,hasOwner:!1}),f=Object.freeze({credits:[],withdrawals:[]}),m=(0,s.YK)({dadosCadastrados:{id:"carteira.dadosCadastrados",defaultMessage:"Dados cadastrados."},falhaAoCadastrar:{id:"carteira.falhaAoCadastrar",defaultMessage:"Erro ao cadastrar os dados."},falhaNoSaque:{id:"carteira.falhaNoSaque",defaultMessage:"Erro ao processar o saque."}});function x(e){let a=g[e],r=(0,o.y)(),s=(0,t.jE)(),x=["".concat(a.keyPrefix,"-wallet")],b=["".concat(a.keyPrefix,"-wallet-statement")],y=["".concat(a.keyPrefix,"-overview")],j=(0,u.a)(6e4),w=(0,i.I)({queryKey:x,queryFn:async()=>{var e;return null!=(e=(await d.Ay.get("".concat(a.basePath,"/wallet"))).data)?e:h},retry:1,refetchInterval:j,refetchIntervalInBackground:!1}),v=(0,i.I)({queryKey:b,queryFn:async()=>{var e;return null!=(e=(await d.Ay.get("".concat(a.basePath,"/wallet/statement"))).data)?e:f},enabled:(null==(A=w.data)?void 0:A.hasOwner)===!0,retry:1,placeholderData:f,refetchInterval:j,refetchIntervalInBackground:!1});var A,P,I={[a.refreshEvent]:()=>{s.invalidateQueries({queryKey:x}),s.invalidateQueries({queryKey:b}),s.invalidateQueries({queryKey:y})}};let{socket:T}=(0,l.Y)(),Y=(0,c.useRef)(I);(0,c.useEffect)(()=>{Y.current=I},[I]),(0,c.useEffect)(()=>{if(!T)return;let e={};for(let a of Object.keys(Y.current))e[a]=function(){for(var e,r,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return null==(e=(r=Y.current)[a])?void 0:e.call(r,...i)},T.on(a,e[a]);return()=>{for(let[a,r]of Object.entries(e))T.off(a,r)}},[T]);let k=(0,n.n)({mutationFn:e=>d.Ay.post("".concat(a.basePath,"/wallet/onboarding"),e),onSuccess:()=>{r.sucesso(m.dadosCadastrados),s.invalidateQueries({queryKey:x})},onError:e=>r.erroDaApi(e,m.falhaAoCadastrar)}),C=(0,n.n)({mutationFn:async e=>(await d.Ay.post("".concat(a.basePath,"/wallet/withdraw"),e)).data,onSuccess:()=>{s.invalidateQueries({queryKey:x}),s.invalidateQueries({queryKey:b})},onError:e=>{(0,p.sG)(e)||r.erroDaApi(e,m.falhaNoSaque)}}),E=!w.data&&w.isLoading;return{wallet:null!=(P=w.data)?P:h,statement:v.data,isLoading:E,createOwner:k.mutate,isCreatingOwner:k.isPending,requestWithdrawalAsync:C.mutateAsync,isRequestingWithdrawal:C.isPending}}},8628:(e,a,r)=>{"use strict";r.d(a,{Z:()=>t});let t=(0,r(14684).k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})},17597:(e,a,r)=>{"use strict";r.d(a,{g:()=>t});let t=(0,r(14684).k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})},28364:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>m});var t=r(37876),i=r(5720),n=r(14232),s=r(89099),o=r(17597),d=r(8628),c=r(88039),l=r(87856),u=r(47413);let p=l.Ay.div.withConfig({componentId:"sc-cf4a6533-0"})(["display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 10px;width:fit-content;background:rgba(245,158,11,0.1);border:1px solid rgba(245,158,11,0.2);border-radius:8px;font-size:0.63rem;font-weight:700;color:#f59e0b;text-transform:uppercase;letter-spacing:0.06em;line-height:1;"]);var g=r(57774),h=r(93451);let f=(0,i.YK)({minhasParcerias:{id:"portalParceiro.minhasParcerias",defaultMessage:"Minhas <destaque>Parcerias</destaque>"},carregandoParcerias:{id:"portalParceiro.carregandoParcerias",defaultMessage:"Carregando suas parcerias..."},subtitulo:{id:"portalParceiro.subtitulo",defaultMessage:"Acompanhe suas comiss\xf5es e desempenho como influenciad
1or."},semParceria:{id:"portalParceiro.semParceria",defaultMessage:"Nenhuma parceria ativa"},influenciador:{id:"painelInicio.influenciador",defaultMessage:"Influenciador"},inativo:{id:"painelInicio.inativo",defaultMessage:"Inativo"},semParceriaDesc:{id:"portalParceiro.semParceriaDesc",defaultMessage:"Voc\xea ainda n\xe3o foi vinculado a nenhuma loja. Entre em contato com o dono da loja para ser adicionado como influenciador."}});function m(){let e=(0,h.$)(),a=(0,s.useRouter)(),{data:r=[],isLoading:l}=(0,g.jT)();return((0,n.useEffect)(()=>{l||1!==r.length||a.replace("/influencer/".concat(r[0].guildId))},[l,r,a]),l)?(0,t.jsx)(u.mc,{children:(0,t.jsx)(u.mO,{children:(0,t.jsx)(u.Y9,{children:(0,t.jsxs)(u.eY,{children:[(0,t.jsx)("h1",{children:(0,t.jsx)(i.sA,{...f.minhasParcerias,values:{destaque:e=>(0,t.jsx)("span",{children:e})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(i.sA,{...f.carregandoParcerias})})]})})})}):1===r.length?null:(0,t.jsx)(u.mc,{children:(0,t.jsxs)(u.mO,{children:[(0,t.jsx)(u.Y9,{children:(0,t.jsxs)(u.eY,{children:[(0,t.jsx)("h1",{children:(0,t.jsx)(i.sA,{...f.minhasParcerias,values:{destaque:e=>(0,t.jsx)("span",{children:e})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(i.sA,{...f.subtitulo})})]})}),0===r.length?(0,t.jsxs)(u.Zw,{children:[(0,t.jsx)("div",{className:"icon-box",children:(0,t.jsx)(c.M,{})}),(0,t.jsx)("h2",{children:(0,t.jsx)(i.sA,{...f.semParceria})}),(0,t.jsx)("p",{children:(0,t.jsx)(i.sA,{...f.semParceriaDesc})})]}):(0,t.jsx)(u.xA,{children:r.map(r=>(0,t.jsxs)(u.Wo,{onClick:()=>a.push("/influencer/".concat(r.guildId)),style:{opacity:!1===r.isActive?.6:1},children:[(0,t.jsxs)(u.aR,{children:[(0,t.jsx)(u.eu,{src:r.guildAvatar||"https://cdn.discordapp.com/embed/avatars/0.png",alt:r.guildName,onError:e=>{e.currentTarget.src="https://cdn.discordapp.com/embed/avatars/0.png"}}),(0,t.jsxs)(u.R2,{children:[(0,t.jsx)("h3",{children:r.guildName}),(0,t.jsxs)(p,{style:!1===r.isActive?{background:"rgba(239,68,68,0.15)",color:"#ef4444"}:void 0,children:[(0,t.jsx)(o.g,{size:9}),(0,t.jsx)(i.sA,{...!1===r.isActive?f.inativo:f.influenciador})]})]})]}),(0,t.jsxs)(u.U,{children:[(0,t.jsxs)(u.ir,{className:"highlight",children:[(0,t.jsx)("span",{children:(0,t.jsx)(i.sA,{id:"painelInicio.comissaoTotal",defaultMessage:"Comiss\xe3o Total"})}),(0,t.jsx)("strong",{children:"â"})]}),(0,t.jsxs)(u.ir,{children:[(0,t.jsx)("span",{children:"Robux"}),(0,t.jsx)("strong",{children:null!=r.robuxRate?e.percentual(Math.round(100*r.robuxRate)):"â"})]}),(0,t.jsxs)(u.ir,{children:[(0,t.jsx)("span",{children:"Gamepass"}),(0,t.jsx)("strong",{children:null!=r.gamepassRate?e.percentual(Math.round(100*r.gamepassRate)):"â"})]})]}),(0,t.jsx)(u.wL,{children:(0,t.jsxs)("span",{className:"manage-link",children:[(0,t.jsx)(o.g,{size:13}),(0,t.jsx)(i.sA,{id:"painelInicio.verPainel",defaultMessage:"Ver Painel"}),(0,t.jsx)(d.Z,{className:"manage-icon",size:11})]})})]},r.guildId))})]})})}},47413:(e,a,r)=>{"use strict";r.d(a,{R2:()=>f,U:()=>m,Wo:()=>p,Y9:()=>c,Zw:()=>y,aR:()=>g,eY:()=>l,eu:()=>h,ir:()=>x,mO:()=>d,mc:()=>o,wL:()=>b,xA:()=>u});var t=r(87856),i=r(177);let n=(0,t.i7)(["from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:translateY(0);}"]),s=(0,t.i7)(["0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}"]),o=t.Ay.div.withConfig({componentId:"sc-72d63ab1-0"})(["min-height:100vh;width:100%;background-color:",";color:",";font-family:var(--font-inter),'Inter',sans-serif;background-image:radial-gradient( ellipse 80% 50% at 50% -5%,rgba(116,18,255,0.12),transparent 60% );"],i.Tj.bg,i.Tj.textBody),d=t.Ay.div.withConfig({componentId:"sc-72d63ab1-1"})(["width:100%;max-width:1360px;margin:0 auto;padding:48px 40px ",";animation:"," "," ",";","{padding:32px 20px 80px;}"],i.Zp.paddingBottom,n,i.lY.duration,i.lY.easing,i.$_.md),c=t.Ay.header.withConfig({componentId:"sc-72d63ab1-2"})(["display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:",";padding-bottom:",";border-bottom:1px solid ",";flex-wrap:wrap;gap:",";","{flex-direction:column;align-items:flex-start;gap:",";}"],i.Zp.headerGap,i.YK["2xl"],i.Tj.border,i.YK.xl,i.$_.md,i.YK.lg),l=t.Ay.div.withConfig({componentId:"sc-72d63ab1-3"})(["h1{font-size:2rem;font-weight:800;letter-spacing:-0.03em;color:",";margin-bottom:",";display:flex;align-items:center;gap:",";span{color:",";}","{font-size:1.5rem;}}p{color:",";font-size:0.95rem;max-width:500px;line-height:1.6;}"],i.Tj.textPrimary,i.YK.sm,i.YK.md,i.Tj.brand,i.$_.md,i.Tj.textMuted),u=t.Ay.div.withConfig({componentId:"sc-72d63ab1-4"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:",";","{grid-template-columns:1fr;}"],i.Zp.cardGap,i.$_.sm),p=t.Ay.div.withConfig({componentId:"sc-72d63ab1-5"})(["background:",";border:1px solid ",";border-radius:",";padding:",";cursor:pointer;transition:border-color 0.25s ease,box-shadow 0.25s ease;display:flex;flex-direction:column;min-height:200px;justify-content:space-between;&:hover{border-color:rgba(116,18,255,0.18);box-shadow:0 0 20px rgba(116,18,255,0.05);.manage-link{color:",";}.manage-icon{transform:translateX(4px);color:#a78bfa;}}"],i.Tj.surfaceAlt,i.Tj.borderBrand,i.Zp.radius.lg,i.YK["2xl"],i.Tj.textPrimary),g=t.Ay.div.withConfig({componentId:"sc-72d63ab1-6"})(["display:flex;align-items:center;gap:",";"],i.YK.lg),h=t.Ay.img.withConfig({componentId:"sc-72d63ab1-7"})(["width:52px;height:52px;border-radius:",";background:",";object-fit:cover;border:2px solid ",";transition:border-color 0.25s;flex-shrink:0;",":hover &{border-color:rgba(116,18,255,0.5);box-shadow:0 0 14px ",";}"],i.Zp.radius.md,i.Tj.surfaceAlt,i.Tj.border,p,i.Tj.brandSoft),f=t.Ay.div.withConfig({componentId:"sc-72d63ab1-8"})(["display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;h3{font-size:1.05rem;color:",";font-weight:700;margin:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"],i.Tj.textPrimary),m=t.Ay.div.withConfig({componentId:"sc-72d63ab1-9"})(["display:flex;gap:",";padding:"," 0;border-top:1px solid rgba(255,255,255,0.04);border-bottom:1px solid rgba(255,255,255,0.04);margin-top:auto;margin-bottom:",";"],i.YK.md,i.YK.lg,i.YK.lg),x=t.Ay.div.withConfig({componentId:"sc-72d63ab1-10"})(["flex:1;display:flex;flex-direction:column;gap:4px;padding:"," ",";border-radius:",";background:rgba(255,255,255,0.015);span{font-size:0.68rem;color:",";font-weight:700;text-transform:uppercase;letter-spacing:0.05em;}strong{font-size:0.95rem;color:",";font-weight:600;}&.highlight strong{color:",";}"],i.YK.sm,i.YK.md,i.Zp.radius.sm,i.Tj.textDim,i.Tj.textBody,i.Tj.success),b=t.Ay.div.withConfig({componentId:"sc-72d63ab1-11"})(["display:flex;align-items:center;justify-content:flex-end;.manage-link{font-size:0.82rem;font-weight:600;color:",";display:flex;align-items:center;gap:6px;transition:all 0.2s;}.manage-icon{transition:transform 0.25s ",";}"],i.Tj.textDim,i.lY.easing),y=t.Ay.div.withConfig({componentId:"sc-72d63ab1-12"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:420px;text-align:center;background:",";border:1px dashed ",";border-radius:20px;padding:48px 32px;position:relative;overflow:hidden;&::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-65%);
1width:200px;height:200px;background:radial-gradient(circle,rgba(116,18,255,0.12),transparent 70%);pointer-events:none;}h2{font-size:1.6rem;font-weight:800;letter-spacing:-0.02em;margin-bottom:",";color:",";}p{color:",";max-width:420px;margin-bottom:",";line-height:1.6;font-size:0.95rem;}.icon-box{width:72px;height:72px;background:",";color:",";border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:2rem;margin-bottom:",";border:1px solid rgba(116,18,255,0.2);box-shadow:0 8px 24px rgba(116,18,255,0.15);animation:"," 4s ease-in-out infinite;position:relative;z-index:1;}","{padding:40px 20px;min-height:360px;h2{font-size:1.3rem;}p{font-size:0.88rem;}}"],i.Tj.surface,i.Tj.borderHover,i.YK.md,i.Tj.textPrimary,i.Tj.textMuted,i.YK["3xl"],i.Tj.brandSoft,i.Tj.brand,i.YK["2xl"],s,i.$_.sm)},57774:(e,a,r)=>{"use strict";r.d(a,{cR:()=>l,jT:()=>c,mS:()=>u,o_:()=>p});var t=r(74359),i=r(15069),n=r(72665),s=r(5166),o=r(4202),d=r(60748);function c(){return(0,t.I)({queryKey:(0,i.Y)("influencer-stores"),queryFn:async()=>{try{let e=await n.Ay.get("/influencer/stores");return Array.isArray(e.data)?e.data:[]}catch(e){if(403===(0,d.dL)(e))return[];throw e}},staleTime:3e5,retry:(e,a)=>403!==(0,d.dL)(a)&&e<3})}function l(e){let a=(0,o.a)(6e4);return(0,t.I)({queryKey:(0,i.Y)("influencer-overview",e),queryFn:()=>n.Ay.get("/influencer/".concat(e,"/overview")).then(e=>e.data),enabled:!!e,staleTime:3e4,refetchInterval:a})}function u(e){return(0,t.I)({queryKey:(0,i.Y)("influencer-links",e),queryFn:()=>n.Ay.get("/influencer/".concat(e,"/links")).then(e=>e.data),enabled:!!e,staleTime:3e5})}function p(){return(0,s.o)("influencer")}},83990:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/influencer",function(){return r(28364)}])},88039:(e,a,r)=>{"use strict";r.d(a,{M:()=>t});let t=(0,r(14684).k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c2
16.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"},child:[]}]})}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=83990)),_N_E=e.O()}]);
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.