PageSourceSearch

https://fantasyhost.com.br/_next/static/chunks/5262-994b8b818e154cce.js

js fantasyhost.com.br collected 2026-10-08 17:30:59 UTC 14,831 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5262],{84794:function(e,a,s){s.d(a,{Z:function(){return r}});var n=s(85893),t=s(67294),i=s(65798),l=s(24121);function r(){var e;let{locale:a,setLocale:s,t:r}=(0,l.b)(),[c,o]=(0,t.useState)(!1),d=(0,t.useRef)(null),u=null!==(e=i.lE.find(e=>e.id===a))&&void 0!==e?e:i.lE[0];return(0,t.useEffect)(()=>{if(!c)return;let e=e=>{var a;(null===(a=d.current)||void 0===a?void 0:a.contains(e.target))||o(!1)},a=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",a)}},[c]),(0,n.jsxs)("div",{ref:d,className:"cp-lang".concat(c?" is-open":""),children:[(0,n.jsx)("button",{type:"button",className:"cp-lang__trigger","aria-haspopup":"listbox","aria-expanded":c,"aria-label":"".concat(r.nav.languageAria,": ").concat(u.label),onClick:()=>o(e=>!e),children:(0,n.jsx)("img",{src:u.flag,alt:"",className:"cp-lang__flag",draggable:!1})}),c&&(0,n.jsx)("div",{className:"cp-lang__menu",role:"listbox","aria-label":r.nav.languageAria,children:i.lE.map(e=>{let t=e.id===a;return(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":t,className:"cp-lang__option".concat(t?" is-active":""),onClick(){s(e.id),o(!1)},children:[(0,n.jsx)("img",{src:e.flag,alt:"",className:"cp-lang__flag",draggable:!1}),(0,n.jsx)("span",{children:e.code})]},e.id)})})]})}},88507:function(e,a,s){s.d(a,{Z:function(){return r}});var n=s(85893),t=s(11163),i=s.n(t),l=s(98518);function r(e){let{onNavigate:a}=e,s=e=>{e.preventDefault(),i().push("/"),null==a||a()};return(0,n.jsxs)("a",{href:"/",className:"cp-sidebar__brand",onClick:s,children:[(0,n.jsx)("img",{src:l.F.markOnDark,alt:"",className:"cp-sidebar__logo",width:28,height:28,draggable:!1,onDragStart:e=>e.preventDefault()}),(0,n.jsxs)("span",{className:"cp-sidebar__brand-name",children:["Fantasy",(0,n.jsx)("span",{className:"cp-sidebar__brand-accent",children:"Host"})]})]})}},35262:function(e,a,s){s.d(a,{Z:function(){return N}});var n=s(85893),t=s(9008),i=s.n(t),l=s(67294),r=s(11163),c=s.n(r),o=s(88507),d=s(24121);function u(e){let{d:a}=e;return(0,n.jsx)("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",width:"16",height:"16",children:(0,n.jsx)("path",{d:a,stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function h(e){let{label:a,children:s,defaultOpen:t=!1,storageKey:i}=e,[r,c]=(0,l.useState)(t),[o,d]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=window.localStorage.getItem("adminSidebarCategory:".concat(i));c(null!==e?"true"===e:t),d(!0)},[i,t]),(0,l.useEffect)(()=>{o&&window.localStorage.setItem("adminSidebarCategory:".concat(i),String(r))},[r,i,o]),(0,n.jsxs)("div",{className:"cp-sidebar__group".concat(r?" is-open":""),children:[(0,n.jsxs)("button",{type:"button",className:"cp-sidebar__group-btn",onClick:()=>c(e=>!e),children:[a,(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",width:"12",height:"12",children:(0,n.jsx)("path",{d:"M4 6l4 4 4-4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,n.jsx)("ul",{className:"cp-sidebar__list",children:s})]})}function m(e){let{onNavigate:a}=e,s=(0,r.useRouter)(),{t}=(0,d.b)(),i=t.admin.nav,o=t.admin.categories,m=(0,l.useMemo)(()=>[{label:o.management,storageKey:"management",defaultOpen:!0,items:[{label:i.dashboard,path:"/admin",exact:!0,icon:(0,n.jsx)(u,{d:"M3.5 10.5 10 4l6.5 6.5M5 8.5V16h10V8.5"})},{label:i.users,path:"/admin/users",icon:(0,n.jsx)(u,{d:"M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM4 17c0-3.3 2.7-6 6-6s6 2.7 6 6"})},{label:i.websiteServices,path:"/admin/services/website",icon:(0,n.jsx)(u,{d:"M4 5.5h12v9H4zM7 5.5V4M13 5.5V4M7 9h2M7 12h6"})},{label:i.services,path:"/admin/services",icon:(0,n.jsx)(u,{d:"M4 5.5h12v9H4zM7 5.5V4M13 5.5V4M7 9h2M7 12h6"}),match:e=>"/admin/services"===e},{label:i.deliveries,path:"/admin/services/deliveries",icon:(0,n.jsx)(u,{d:"M4 7h12v9H4zM7 7V5M13 7V5M6 10h8"})},{label:i.dedicatedAssets,path:"/admin/dedicated-assets",icon:(0,n.jsx)(u,{d:"M6 4h8v12H6zM8 7h4M8 10h4M8 13h2"})},{label:i.settings,path:"/admin/settings",icon:(0,n.jsx)(u,{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zM4.5 10a5.5 5.5 0 0 1 11 0c0 1.2-.4 2.3-1 3.2l.8 2.8-2.8-.8c-.9.6-2 1-3.2 1a5.5 5.5 0 0 1-5-6.2z"})}]},{label:o.financial,storageKey:"financial",defaultOpen:!0,items:[{label:i.invoices,path:"/admin/invoices",icon:(0,n.jsx)(u,{d:"M5 4h10v12H5zM7.5 8h5M7.5 11h5M7.5 14h3"})},{label:i.invoiceCredits,path:"/admin/invoice-credits",icon:(0,n.jsx)(u,{d:"M10 4v12M6 8h8M6 12h5"})},{label:i.budgets,path:"/admin/budgets",icon:(0,n.jsx)(u,{d:"M5 4h10v12H5zM7.5 7.5h5M7.5 10.5h5M7.5 13.5h3"})},{label:i.coupons,path:"/admin/coupons",icon:(0,n.jsx)(u,{d:"M6 8h8M6 12h5M4 6l2-2 2 2M12 14l2 2-2 2"})}]},{label:o.support,storageKey:"support",defaultOpen:!0,items:[{label:i.tickets,path:"/admin/tickets",icon:(0,n.jsx)(u,{d:"M4 10a6 6 0 1 1 12 0v2.5L18 16H4l2-3.5V10z"})},{label:i.emails,path:"/admin/emails",icon:(0,n.jsx)(u,{d:"M3 6h14v8H3zM3 6l7 5 7-5"})},{label:i.waitlist,path:"/admin/waitlist",icon:(0,n.jsx)(u,{d:"M4 7h12M4 11
1h12M4 15h8"})}]},{label:o.monitoring,storageKey:"monitoring",items:[{label:i.monitors,path:"/admin/monitors",icon:(0,n.jsx)(u,{d:"M4 14V6M8 14V4M12 14V8M16 14V10"})},{label:i.fakePlayers,path:"/admin/fake-players",icon:(0,n.jsx)(u,{d:"M7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM13 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM2 17c0-2.5 2.2-4.5 5-4.5.9 0 1.7.2 2.4.6M10.6 13.1c.7-.4 1.5-.6 2.4-.6 2.8 0 5 2 5 4.5"})},{label:i.ddosProtection,path:"/admin/protection-ddos",icon:(0,n.jsx)(u,{d:"M10 3.5 16 7v6l-6 3.5L4 13V7zM10 10v3"})},{label:i.adverts,path:"/admin/adverts",icon:(0,n.jsx)(u,{d:"M10 4 17 16H3zM10 9v3M10 14h.01"})}]}],[o,i]),p=e=>e.match?e.match(s.pathname):e.exact?s.pathname===e.path:s.pathname.startsWith(e.path),v=e=>{c().push(e),null==a||a()};return(0,n.jsxs)(n.Fragment,{children:[m.map(e=>(0,n.jsx)(h,{label:e.label,storageKey:e.storageKey,defaultOpen:e.defaultOpen,children:e.items.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:e.path,className:"cp-sidebar__link".concat(p(e)?" is-active":""),onClick(a){a.preventDefault(),v(e.path)},children:[e.icon,e.label]})},e.path))},e.storageKey)),(0,n.jsx)("p",{className:"cp-sidebar__label",style:{marginTop:16},children:t.admin.accessLabel}),(0,n.jsx)("ul",{className:"cp-sidebar__list",children:(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:"/client",className:"cp-sidebar__link".concat(s.pathname.startsWith("/client")?" is-active":""),onClick(e){e.preventDefault(),v("/client")},children:[(0,n.jsx)(u,{d:"M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM4 17c0-3.3 2.7-6 6-6s6 2.7 6 6"}),t.admin.clientArea]})})})]})}function p(){let{t:e}=(0,d.b)();return(0,n.jsxs)("aside",{className:"cp-sidebar",children:[(0,n.jsx)("div",{className:"cp-sidebar__head",children:(0,n.jsx)(o.Z,{})}),(0,n.jsx)("nav",{className:"cp-sidebar__nav","aria-label":e.panel.nav.admin,children:(0,n.jsx)(m,{})}),(0,n.jsx)("div",{className:"cp-sidebar__foot",children:(0,n.jsxs)("a",{href:"/uptime",className:"cp-sidebar__status",onClick(e){e.preventDefault(),c().push("/uptime")},children:[(0,n.jsx)("span",{className:"dot"}),e.panel.status.operating]})})]})}function v(e){let{isOpen:a,onClose:s}=e,{t}=(0,d.b)();return a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"cp-drawer-overlay",onClick:s,"aria-hidden":"true"}),(0,n.jsxs)("div",{className:"cp-drawer",role:"dialog","aria-label":"Menu administrativo",children:[(0,n.jsx)("button",{type:"button",className:"cp-drawer__close",onClick:s,"aria-label":t.panel.aria.closeMenu,children:"\xd7"}),(0,n.jsx)("div",{className:"cp-sidebar__head",children:(0,n.jsx)(o.Z,{onNavigate:s})}),(0,n.jsx)("nav",{className:"cp-sidebar__nav",style:{paddingBottom:24},children:(0,n.jsx)(m,{onNavigate:s})})]})]}):null}var x=s(84794),j=s(22920),b=s(89282);function _(e,a){var s,n;let t=null!==(s=null==e?void 0:e.charAt(0))&&void 0!==s?s:"",i=null!==(n=null==a?void 0:a.charAt(0))&&void 0!==n?n:"";return"".concat(t).concat(i).toUpperCase()||"FH"}function g(e){let{children:a}=e;return(0,n.jsx)("span",{className:"cp-user-menu__icon","aria-hidden":"true",children:a})}function f(e){let{label:a,onClick:s,icon:t}=e;return(0,n.jsxs)("button",{type:"button",role:"menuitem",className:"cp-user-menu__row",onClick:s,children:[(0,n.jsx)(g,{children:t}),(0,n.jsx)("span",{children:a})]})}function k(){var e,a;let{user:s,signOut:t}=(0,l.useContext)(b.V),{t:i}=(0,d.b)(),r=i.admin,o=i.panel.user,[u,h]=(0,l.useState)(!1),m=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!u)return;let e=e=>{var a;(null===(a=m.current)||void 0===a?void 0:a.contains(e.target))||h(!1)},a=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",a)}},[u]);let p=()=>h(!1),v=e=>{c().push(e),p()},x=async()=>{await t(),j.Am.success(r.logoutSuccess),p()},k=function(e,a){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Administrador",n=[e,a].filter(Boolean).join(" ").trim();return n||s}(null==s?void 0:s.name,null==s?void 0:s.surname,r.defaultName),M=(null==s?void 0:s.permission)==="SUPPORT"?r.roleSupport:r.roleAdmin;return(0,n.jsxs)("div",{ref:m,className:"cp-user-menu".concat(u?" is-open":""),children:[(0,n.jsxs)("button",{type:"button",className:"cp-topbar__user","aria-haspopup":"menu","aria-expanded":u,onClick:()=>h(e=>!e),children:[(0,n.jsx)("span",{className:"cp-topbar__avatar",children:_(null==s?void 0:s.name,null==s?void 0:s.surname)}),(0,n.jsxs)("span",{className:"cp-topbar__user-body",children:[(0,n.jsx)("span",{className:"cp-topbar__user-name",children:k}),(0,n.jsxs)("span",{className:"cp-topbar__user-role",children:[M," • #",null!==(e=null==s?void 0:s.id)&&void 0!==e?e:"—"]})]}),(0,n.jsx)("svg",{className:"cp-topbar__chev",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M4 6l4 4 4-4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),u&&(0,n.jsxs)("div",{className:"cp-user-menu__dropdown",role:"menu",children:[(0,n.jsxs)("div",{className:"cp-user-menu__head",children:[(0,n.jsx)("span",{className:"cp-user-menu__head-avatar",children:_(null==s?void 0:s.name,null==s?void 0:s.surname)}),(0,n.jsxs)("div",{className:"cp-user-menu__head-info",children:[(0,n.jsx)("p",{className:"cp-user-menu__head-name",children:k}),(0,n.jsx)("p",{className:"cp-user-menu__head-email",title:null==s?void 0:s.email,children:null!==(a=null==s?void 0:s.email)&&void 0!==a?a:"—"})]})]}),(0,n.jsxs)("div",{className:"cp-user-menu__body",children:[(0,n.jsx)(f,{label:r.clientArea,onClick:()=>v("/client"),icon:(0,n.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",width:"16",height:"16",children:(0,n.jsx)("path",{d:"M3.5 10.5 10 4l6.5 6.5M5 8.5V16h10V8.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"})})}),(0,n.jsx)(f,{label:o.myData,onClick:()=>v("/client/my-data"),icon:(0,n.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",width:"16",height:"16",children:[(0,n.jsx)("circle",{cx:"10",cy:"7",r:"3",stroke:"currentColor",strokeWidth:"1.4"}),(0,n.jsx)("path",{d:"M4 17c0-3.3 2.7-6 6-6s6 2.7 6 6",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}),(0,n.jsx)(f,{label:o.accountSecurity,onClick:()=>v("/client/security"),icon:(0,n.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",width:"16",height:"16",children:(0,n.jsx)("path",{d:"M10 3 5 5.5V10c0 3 2.2 5.8 5 6.5 2.8-.7 5-3.5 5-6.5V5.5L10 3Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"})})}),(0,n.jsx)("hr",{className:"cp-user-menu__divider"}),(0,n.jsxs)("button",{type:"button",role:"menuitem",className:"cp-user-menu__row",onClick:x,children:[(0,n.jsx)(g,{children:(0,n.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",width:"16",height:"16",children:(0,n.jsx)("path",{d:"M8 4H4v12h4M11 10H17M14 7l3 3-3 3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.jsx)("span",{children:r.logout})]})]})]})]})}function M(){let e=(0,r.useRouter)(),{t:a}=(0,d.b)(),[s,t]=(0,l.useState)(!1),i=(0,l.useMemo)(()=>{var s,n;return s=e.pathname,n=a.admin.nav,"/admin"===s?n.dashboard:s.startsWith("/admin/users")?n.users:"/admin/services/website"===s?n.websiteServices:"/admin/services/deliveries"===s?n.deliveries:s.startsWith("/admin/services")?n.services:s.startsWith("/admin/dedicated-assets")?n.dedicatedA
1ssets:s.startsWith("/admin/invoices")?n.invoices:s.startsWith("/admin/budgets")?n.budgets:s.startsWith("/admin/coupons")?n.coupons:s.startsWith("/admin/tickets")?n.tickets:s.startsWith("/admin/emails")?n.emails:s.startsWith("/admin/monitors")?n.monitors:s.startsWith("/admin/protection-ddos")?n.ddosProtection:s.startsWith("/admin/adverts")?n.adverts:s.startsWith("/admin/stock")?n.stock:s.startsWith("/admin/settings")?n.settings:n.fallback},[e.pathname,a.admin.nav]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("header",{className:"cp-topbar",children:[(0,n.jsxs)("div",{className:"cp-topbar__left",children:[(0,n.jsx)("button",{type:"button",className:"cp-topbar__menu","aria-label":a.admin.openMenu,onClick:()=>t(!0),children:"☰"}),(0,n.jsxs)("p",{className:"cp-topbar__crumbs",children:[a.admin.breadcrumb," ",(0,n.jsx)("span",{children:"/"})," ",i]})]}),(0,n.jsxs)("div",{className:"cp-topbar__right",children:[(0,n.jsx)(x.Z,{}),(0,n.jsx)("button",{type:"button",className:"cp-topbar__bell","aria-label":a.admin.ticketsAria,onClick:()=>c().push("/admin/tickets"),children:(0,n.jsx)("svg",{viewBox:"0 0 20 20",width:"18",height:"18",fill:"none","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M4 9.5a6 6 0 1 1 12 0v3l2 2.5H2l2-2.5v-3zM8.5 16a1.5 1.5 0 0 0 3 0",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.jsx)("span",{className:"cp-topbar__sep","aria-hidden":"true"}),(0,n.jsx)(k,{})]})]}),(0,n.jsx)(v,{isOpen:s,onClose:()=>t(!1)})]})}function N(e){let{children:a,lockHeight:s=!1}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("link",{rel:"stylesheet",href:"/styles/client-panel.css"}),(0,n.jsx)("link",{rel:"stylesheet",href:"/styles/fantasy-panel-brand.css"}),(0,n.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"})]}),(0,n.jsx)("div",{className:"client-panel admin-panel fantasy-panel",children:(0,n.jsxs)("div",{className:"client-panel__shell",children:[(0,n.jsx)(p,{}),(0,n.jsxs)("div",{className:"client-panel__main".concat(s?" client-panel__main--lock":""),children:[(0,n.jsx)(M,{}),(0,n.jsx)("main",{className:"cp-content".concat(s?" cp-content--lock":""),children:a})]})]})})]})}}}]);

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.