|
@@ -0,0 +1,310 @@
|
|
|
+"use client";
|
|
|
+import useReffer from "@/hooks/useReffer";
|
|
|
+import { getToken } from "@/utils/Cookies";
|
|
|
+import { copyText } from "@/utils/methods";
|
|
|
+import { Toast } from "antd-mobile";
|
|
|
+import clsx from "clsx";
|
|
|
+import { useTranslations } from "next-intl";
|
|
|
+import React from "react";
|
|
|
+import CustomButton from "../CustomButton";
|
|
|
+import styles from "./index.module.scss";
|
|
|
+
|
|
|
+interface Props {
|
|
|
+ step?: 1 | 2;
|
|
|
+ locale?: string;
|
|
|
+}
|
|
|
+
|
|
|
+export const AgentSuffix = ({ locale = "br" }: { locale?: string }) => {
|
|
|
+ const tc = useTranslations();
|
|
|
+
|
|
|
+ const url = useReffer({ locale });
|
|
|
+ const text = `🎁 Seu amigo te presenteou com 3 a 5 BRL – PEGUE AGORA! 💸 💰 Deposite 7 BRL e ganhe
|
|
|
+ +7 BRL de bônus! 🚀 🎁 Primeiro depósito? Multiplique seu dinheiro com 150% de bônus
|
|
|
+ real! 👉 Resgate agora antes que expire!`;
|
|
|
+
|
|
|
+ const doCopy = () => {
|
|
|
+ copyText(`${text} ${decodeURIComponent(url)}`);
|
|
|
+ Toast.show({ icon: "success", content: tc("SummaryPage.copySuc"), maskClickable: false });
|
|
|
+ };
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div className={clsx("mt-[.08rem] flex w-[100%] items-stretch", styles.reffer)}>
|
|
|
+ <div className="flex-1 overflow-hidden whitespace-nowrap !rounded-[6px] bg-[#7a7879] px-[.1rem] py-[.06rem] text-[12px] font-[400] text-[#fff]">
|
|
|
+ {text}
|
|
|
+ </div>
|
|
|
+ <CustomButton
|
|
|
+ type="primary"
|
|
|
+ className="ml-[.05rem] w-[57px] !rounded-[6px] !py-[0.06rem] !text-[12px]"
|
|
|
+ onClick={doCopy}
|
|
|
+ >
|
|
|
+ Copy
|
|
|
+ </CustomButton>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+};
|
|
|
+
|
|
|
+const Agent: React.FC<Props> = ({ step = 1, locale = "br" }) => {
|
|
|
+ const token = getToken();
|
|
|
+ const url = useReffer({ locale });
|
|
|
+
|
|
|
+ const SHARE_SOURCE = React.useMemo(() => {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ icon: "/summary/Facebook.webp",
|
|
|
+ label: "Facebook",
|
|
|
+ shareUrl: `https://www.facebook.com/sharer/sharer.php?u=${url}`,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: "/summary/WhatsApp.webp",
|
|
|
+ label: "WhatsApp",
|
|
|
+ shareUrl: `https://api.whatsapp.com/send?text=${url}`,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: "/summary/Telegram.webp",
|
|
|
+ label: "Telegram",
|
|
|
+ shareUrl: `https://t.me/share/url?url=${url}`,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: "/summary/Twitter.webp",
|
|
|
+ label: "X",
|
|
|
+ shareUrl: `https://x.com/intent/post?text=${url}`,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: "/summary/Email.webp",
|
|
|
+ label: "Email",
|
|
|
+ shareUrl: `mailto: ?&subject=&cc=&bcc=&body=${url}`,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ }, [url]);
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div className={clsx(styles.agentBox)}>
|
|
|
+ {step == 1 && (
|
|
|
+ <>
|
|
|
+ <div className="flex justify-center pb-[.1rem] text-[.14rem] text-[16px] font-black">
|
|
|
+ ❤️ Bem vindo ao 8g.game ❤️
|
|
|
+ </div>
|
|
|
+ <div className={styles.intro}>
|
|
|
+ <div className="break-all">
|
|
|
+ 💵 💰 Ganhe MAIS DE R$10.000 por mês com nosso SUPER PROGRAMA DE
|
|
|
+ MARKETING!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 📢 Convide seus amigos e ganhe R$30 para cada um que fizer uma recarga!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 💰 Comissões multinível – pagamentos diários e renda crescente!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ ⚡️ Saque seu dinheiro na hora – sem burocracia!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 🔥 Cadastre-se agora e desbloqueie TRÊS SUPER RECOMPENSAS!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 🎁 Ganhe R$3 ou R$5 imediatamente ao se cadastrar – GRÁTIS!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 🎟 Além disso, receba uma raspadinha da sorte – prêmio mínimo de R$7 e a
|
|
|
+ chance de ganhar até R$77 ou prêmios incríveis como iPhone 16 e Nintendo
|
|
|
+ Switch!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 💰 Bônus de até 150% no seu primeiro depósito – multiplique seus ganhos!
|
|
|
+ </div>
|
|
|
+ <div className="">
|
|
|
+ <span>
|
|
|
+ 🎁 💎 Benefícios exclusivos – DESBLOQUEIE 5 TIPOS DE RECOMPENSAS
|
|
|
+ TODOS OS DIAS!
|
|
|
+ </span>
|
|
|
+ <div className="break-all">
|
|
|
+ 🏆 1. Jackpot Diário – quanto maior sua posição no ranking, maior o
|
|
|
+ prêmio!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 🎡 2. Participe da Roleta da Sorte e concorra a MacBook, Apple Watch
|
|
|
+ e mais prêmios exclusivos!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 💲 3. Colete pontos de missão e troque por dinheiro real – até
|
|
|
+ R$1000 em saque imediato!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 🎫 4. Colete Cartões HAPPY e troque por R$100 na hora!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 🎁 5. Bônus surpresa em dinheiro real – a qualquer momento, você
|
|
|
+ pode ser premiado!
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div className="">
|
|
|
+ <span>❤️ Proteção tripla de bônus – NUNCA SAIA PERDENDO!</span>
|
|
|
+ <div className="break-all">
|
|
|
+ 🛡 Fundo de resgate – continue jogando com segurança!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 🔄 Reembolso diário de perdas – dinheiro de volta todos os dias!
|
|
|
+ </div>
|
|
|
+ <div className="break-all">
|
|
|
+ 💰 Reembolso semanal de perdas – não perca a chance de recuperar
|
|
|
+ ainda mais!
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div className="">
|
|
|
+ <span>🔥 📢 Jogue, ganhe e retire seu dinheiro instantaneamente!</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
+ {step === 2 && (
|
|
|
+ <>
|
|
|
+ <div className={clsx(styles.invitationDialog, "w-[100%]")}>
|
|
|
+ <div className="flex aspect-[2.125/1] w-full flex-col items-center justify-center">
|
|
|
+ <div className="flex w-full items-center justify-center">
|
|
|
+ <div className={clsx("w-[60px]", styles.first)}>
|
|
|
+ <div className={styles.leftArrow}></div>
|
|
|
+ <div className={styles.rightArrow}></div>
|
|
|
+ <img
|
|
|
+ src="https://down8g.sp-slots1.com/cdn-cgi/image/format=auto/source/public/images/14/profile/5.png?t=100"
|
|
|
+ alt=""
|
|
|
+ loading="eager"
|
|
|
+ decoding="async"
|
|
|
+ className="pic z-10 w-full rounded-[50%]"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div className="relative flex w-[80%] flex-row items-center justify-between">
|
|
|
+ <div className={clsx("w-[50px]", styles.secLeft)}>
|
|
|
+ <img
|
|
|
+ src="https://down8g.sp-slots1.com/cdn-cgi/image/format=auto/source/public/images/14/profile/3.png?t=100"
|
|
|
+ alt=""
|
|
|
+ loading="eager"
|
|
|
+ decoding="async"
|
|
|
+ className="pic z-10 w-full rounded-[50%]"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div className={clsx("w-[50px]", styles.secRight)}>
|
|
|
+ <img
|
|
|
+ src="https://down8g.sp-slots1.com/cdn-cgi/image/format=auto/source/public/images/14/profile/4.png?t=100"
|
|
|
+ alt=""
|
|
|
+ loading="eager"
|
|
|
+ decoding="async"
|
|
|
+ className="pic z-10 w-full rounded-[50%]"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div className={styles.sec}>
|
|
|
+ <div className="rounded-[var(--borderRadius)] border-[1px] border-solid border-[#1a7835] bg-[var(--primary6)] px-[10px] text-[12px] text-[var(--textColor3)]">
|
|
|
+ {" "}
|
|
|
+ Direto{" "}
|
|
|
+ </div>
|
|
|
+ <div className={styles.leftArrow}></div>
|
|
|
+ <div className={styles.rightArrow}></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div className="relative mt-[10px] flex w-[95%] flex-row items-center justify-between">
|
|
|
+ <div
|
|
|
+ className={clsx(
|
|
|
+ "flex items-center justify-center gap-[20px]",
|
|
|
+ styles.thirdLeft
|
|
|
+ )}
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://down8g.sp-slots1.com/cdn-cgi/image/format=auto/source/public/images/14/profile/10.png?t=100"
|
|
|
+ alt=""
|
|
|
+ loading="eager"
|
|
|
+ decoding="async"
|
|
|
+ className="pic w-[40px] rounded-[50%]"
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ src="https://down8g.sp-slots1.com/cdn-cgi/image/format=auto/source/public/images/14/profile/6.png?t=100"
|
|
|
+ alt=""
|
|
|
+ loading="eager"
|
|
|
+ decoding="async"
|
|
|
+ className="pic w-[40px] rounded-[50%]"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ className={clsx(
|
|
|
+ "flex items-center justify-center gap-[20px]",
|
|
|
+ styles.thirdRight
|
|
|
+ )}
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://down8g.sp-slots1.com/cdn-cgi/image/format=auto/source/public/images/14/profile/7.png?t=100"
|
|
|
+ alt=""
|
|
|
+ loading="eager"
|
|
|
+ decoding="async"
|
|
|
+ className="pic w-[40px] rounded-[50%]"
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ src="https://down8g.sp-slots1.com/cdn-cgi/image/format=auto/source/public/images/14/profile/8.png?t=100"
|
|
|
+ alt=""
|
|
|
+ loading="eager"
|
|
|
+ decoding="async"
|
|
|
+ className="pic w-[40px] rounded-[50%]"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div className={styles.third}>
|
|
|
+ <div className="rounded-[var(--borderRadius)] border-[1px] border-solid border-[#1a7835] bg-[var(--primary6)] px-[10px] text-[12px] text-[var(--textColor3)]">
|
|
|
+ {" "}
|
|
|
+ Nivel1{" "}
|
|
|
+ </div>
|
|
|
+ <div className={styles.leftArrow}></div>
|
|
|
+ <div className={styles.rightArrow}></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="flex w-full flex-col items-center justify-center gap-[10px]">
|
|
|
+ <div className="flex w-full items-center justify-center break-all px-[30px] py-[15px] text-center font-black text-[var(--textColor4)]">
|
|
|
+ CONVIDAR AMIGOS PARA RECEBERRECOMPENSAS
|
|
|
+ </div>
|
|
|
+ <div className="flex flex-col rounded-[10px] border-[1px] border-solid border-[#1a7835] px-[10px] py-[1px]">
|
|
|
+ <span className="text-[12px]">
|
|
|
+ Você traz <span className={styles.price}>1</span> amigo para
|
|
|
+ recarregar, ganha <span className={styles.price}>R$30</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div className="flex flex-col rounded-[10px] border-[1px] border-solid border-[#1a7835] px-[10px] py-[1px]">
|
|
|
+ <span className="text-[12px]">
|
|
|
+ Você traz <span className={styles.price}>10</span> amigo para
|
|
|
+ recarregar, ganha <span className={styles.price}>R$300</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div className="flex flex-col rounded-[10px] border-[1px] border-solid border-[#1a7835] px-[10px] py-[1px]">
|
|
|
+ <span className="text-[12px]">
|
|
|
+ Você traz <span className={styles.price}>100</span> amigo para
|
|
|
+ recarregar, ganha <span className={styles.price}>R$3000</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div className="flex flex-col rounded-[10px] border-[1px] border-solid border-[#1a7835] px-[10px] py-[1px]">
|
|
|
+ <span className="text-[12px]">
|
|
|
+ Você traz <span className={styles.price}>1000</span> amigo para
|
|
|
+ recarregar, ganha <span className={styles.price}>R$30000</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
+ <div className="flex items-center justify-between pt-[.15rem]">
|
|
|
+ {SHARE_SOURCE.map((item) => {
|
|
|
+ return (
|
|
|
+ <a
|
|
|
+ href={token ? item.shareUrl : ""}
|
|
|
+ target={"_blank"}
|
|
|
+ className={clsx("block w-[.4rem] text-center")}
|
|
|
+ key={item.label}
|
|
|
+ >
|
|
|
+ <img className={"inline-block w-[36px]"} src={item.icon} alt="" />
|
|
|
+ <br />
|
|
|
+ <span className="text-[.1rem] text-[#5f7880]">{item.label}</span>
|
|
|
+ </a>
|
|
|
+ );
|
|
|
+ })}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+};
|
|
|
+
|
|
|
+export default Agent;
|