@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
649 lines (646 loc) • 35.9 kB
JavaScript
import { jsx, jsxs } from 'react/jsx-runtime';
import { arbitrum, base, bsc, celo, ethereum, linea, optimism, polygon, scroll, solana, worldchain } from '@daimo/pay-common';
const KnownChain = ({ testnet, ...props }) => /* @__PURE__ */ jsxs(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
background: testnet ? "linear-gradient(180deg, #8995A9 0%, #424D5F 99.48%)" : "black"
},
children: [
/* @__PURE__ */ jsx(
"path",
{
fillRule: "evenodd",
clipRule: "evenodd",
d: "M20.5611 8.12948C21.0082 7.90729 21.5007 7.79167 22 7.79167C22.4993 7.79167 22.9919 7.90729 23.439 8.12948L23.4408 8.1304L33.0387 12.9293C33.577 13.197 34.031 13.61 34.3478 14.121C34.6649 14.6323 34.833 15.2218 34.8333 15.8234V27.2595C34.833 27.8611 34.6649 28.4511 34.3478 28.9624C34.031 29.4733 33.578 29.8858 33.0398 30.1535L23.4411 34.9528C22.9919 35.1775 22.4963 35.2947 21.994 35.2947C21.4918 35.2947 20.9964 35.1777 20.5472 34.9529L10.9475 30.1531L10.9452 30.1519C10.4071 29.8808 9.95535 29.4646 9.6411 28.9504C9.32739 28.437 9.16312 27.8464 9.16673 27.2448L9.16675 27.2417L10.0004 27.2475H9.16673V27.2448V15.8239C9.16705 15.2223 9.33518 14.6322 9.65222 14.121C9.96906 13.61 10.4221 13.1976 10.9604 12.9298L20.5592 8.1304L20.5611 8.12948ZM21.3031 9.62267L11.8706 14.3389L22 19.4036L32.1294 14.3389L22.697 9.62267C22.4806 9.51531 22.2416 9.45905 22 9.45905C21.7585 9.45905 21.5194 9.51534 21.3031 9.62267ZM10.8341 15.8241C10.8341 15.7785 10.8362 15.733 10.8401 15.6878L21.1663 20.8509V33.3983L11.6955 28.6629C11.4352 28.5315 11.2159 28.3297 11.0638 28.0809C10.9116 27.8318 10.8321 27.5452 10.8341 27.2533L10.8341 27.2475V15.8241ZM22.8337 33.3923L32.2967 28.6608C32.5576 28.5312 32.7772 28.3313 32.9308 28.0836C33.0844 27.836 33.1658 27.5504 33.166 27.259V15.8243C33.1659 15.7786 33.1639 15.7331 33.1599 15.6878L22.8337 20.8509V33.3923Z",
fill: "url(#paint0_linear_3546_7073)"
}
),
/* @__PURE__ */ jsx(
"path",
{
fillRule: "evenodd",
clipRule: "evenodd",
d: "M10.8341 15.8241C10.8341 15.7785 10.8362 15.733 10.8401 15.6878L21.1663 20.8509V33.3983L11.6955 28.6629C11.4352 28.5315 11.2159 28.3297 11.0638 28.0809C10.9116 27.8318 10.8321 27.5452 10.8341 27.2533L10.8341 27.2475V15.8241Z",
fill: "url(#paint1_linear_3546_7073)",
fillOpacity: "0.3"
}
),
/* @__PURE__ */ jsxs("defs", { children: [
/* @__PURE__ */ jsxs(
"linearGradient",
{
id: "paint0_linear_3546_7073",
x1: "22",
y1: "7.79167",
x2: "22",
y2: "35.2947",
gradientUnits: "userSpaceOnUse",
children: [
/* @__PURE__ */ jsx("stop", { stopColor: "white" }),
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0.7" })
]
}
),
/* @__PURE__ */ jsxs(
"linearGradient",
{
id: "paint1_linear_3546_7073",
x1: "22",
y1: "7.79167",
x2: "22",
y2: "35.2947",
gradientUnits: "userSpaceOnUse",
children: [
/* @__PURE__ */ jsx("stop", { stopColor: "white" }),
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0.7" })
]
}
)
] })
]
}
);
const UnknownChain = ({ testnet, ...props }) => {
return /* @__PURE__ */ jsx(KnownChain, { testnet: true, ...props });
};
const Ethereum = ({ testnet, ...props }) => {
let bg = "var(--ck-chain-ethereum-01, #25292E)";
let fill = "var(--ck-chain-ethereum-02, #ffffff)";
if (testnet) {
bg = "linear-gradient(180deg, #8995A9 0%, #424D5F 99.48%)";
fill = "#fff";
}
return /* @__PURE__ */ jsxs(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
background: bg
},
children: [
/* @__PURE__ */ jsx(
"path",
{
d: "M21.9967 6.99621L21.7955 7.67987V27.5163L21.9967 27.7171L31.2044 22.2744L21.9967 6.99621Z",
fill
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M21.9957 6.99621L12.7878 22.2744L21.9957 27.7171V18.0891V6.99621Z",
fill
}
),
/* @__PURE__ */ jsx(
"path",
{
fillRule: "evenodd",
clipRule: "evenodd",
d: "M21.9959 36.9996L21.9959 36.9997V36.9995L31.2091 24.0243L21.9959 29.4642L12.788 24.0243L21.9957 36.9993L21.9958 36.9997L21.9959 36.9996Z",
fill
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M21.996 27.7181L31.2037 22.2753L21.996 18.09V27.7181Z",
fill
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M12.7878 22.2753L21.9957 27.7181V18.09L12.7878 22.2753Z",
fill
}
)
]
}
);
};
const Polygon = ({ testnet, ...props }) => /* @__PURE__ */ jsx(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
background: testnet ? "linear-gradient(180deg, #8995A9 0%, #424D5F 99.48%)" : "#6F41D8"
},
children: /* @__PURE__ */ jsx(
"path",
{
d: "M29.0015 17.4529C28.4941 17.1572 27.8355 17.1572 27.2773 17.4529L23.3186 19.7271L20.6305 21.2094L16.6719 23.4822C16.1645 23.7792 15.5059 23.7792 14.9476 23.4822L11.8016 21.703C11.2943 21.4074 10.9395 20.8642 10.9395 20.2702V16.7612C10.9395 16.1686 11.2434 15.6255 11.8016 15.3285L14.8954 13.5988C15.4041 13.3018 16.0641 13.3018 16.6224 13.5988L19.7161 15.3285C20.2249 15.6255 20.5796 16.1686 20.5796 16.7612V19.0355L23.2678 17.5024V15.2295C23.2707 14.9343 23.1917 14.6441 23.0395 14.3911C22.8873 14.1381 22.6679 13.9324 22.4056 13.7968L16.6719 10.5353C16.1645 10.2382 15.5059 10.2382 14.9476 10.5353L9.11214 13.7968C8.84992 13.9324 8.63049 14.1381 8.47828 14.3911C8.32607 14.6441 8.24705 14.9343 8.25002 15.2295V21.802C8.25002 22.396 8.55389 22.9391 9.11214 23.2361L14.9476 26.4976C15.455 26.7932 16.115 26.7932 16.6719 26.4976L20.6305 24.2729L23.3186 22.7411L27.2773 20.5177C27.7846 20.2207 28.4433 20.2207 29.0015 20.5177L32.0966 22.2475C32.6054 22.5431 32.9588 23.0863 32.9588 23.6803V27.1893C32.9588 27.7819 32.6563 28.325 32.0966 28.622L29.0029 30.4013C28.4941 30.6983 27.8341 30.6983 27.2773 30.4013L24.1821 28.6715C23.6734 28.3745 23.3186 27.8314 23.3186 27.2387V24.9645L20.6305 26.4976V28.7705C20.6305 29.3631 20.9344 29.9076 21.4926 30.2032L27.3281 33.4647C27.8355 33.7617 28.4941 33.7617 29.0524 33.4647L34.8879 30.2032C35.3953 29.9076 35.75 29.3645 35.75 28.7705V22.198C35.753 21.9028 35.674 21.6126 35.5218 21.3596C35.3695 21.1066 35.1501 20.9009 34.8879 20.7653L29.0029 17.4529H29.0015Z",
fill: "white"
}
)
}
);
const Optimism = ({ testnet, ...props }) => /* @__PURE__ */ jsxs(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
background: testnet ? "linear-gradient(180deg, #8995A9 0%, #424D5F 99.48%)" : "#FF0420"
},
children: [
/* @__PURE__ */ jsx(
"path",
{
d: "M15.5877 27.8473C14.2777 27.8473 13.2045 27.539 12.3679 26.9226C11.5422 26.2952 11.1294 25.4035 11.1294 24.2477C11.1294 24.0055 11.157 23.7082 11.212 23.356C11.3552 22.5634 11.5588 21.6112 11.823 20.4994C12.5715 17.4722 14.5034 15.9586 17.6187 15.9586C18.4664 15.9586 19.2259 16.1017 19.8974 16.3879C20.5689 16.663 21.0973 17.0814 21.4826 17.6428C21.8678 18.1932 22.0605 18.8537 22.0605 19.6242C22.0605 19.8554 22.033 20.1471 21.9779 20.4994C21.8128 21.4791 21.6146 22.4313 21.3835 23.356C20.9982 24.8641 20.3322 25.9924 19.3855 26.741C18.4388 27.4785 17.1729 27.8473 15.5877 27.8473ZM15.8189 25.4695C16.4354 25.4695 16.9582 25.2879 17.3876 24.9247C17.8279 24.5614 18.1416 24.0055 18.3287 23.257C18.5819 22.2222 18.7746 21.3195 18.9067 20.5489C18.9507 20.3178 18.9727 20.0811 18.9727 19.8389C18.9727 18.8372 18.4498 18.3363 17.4041 18.3363C16.7876 18.3363 16.2592 18.5179 15.8189 18.8812C15.3896 19.2445 15.0813 19.8004 14.8943 20.5489C14.6961 21.2865 14.4979 22.1892 14.2998 23.257C14.2557 23.477 14.2337 23.7082 14.2337 23.9504C14.2337 24.9632 14.7622 25.4695 15.8189 25.4695Z",
fill: "white"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M22.8188 27.6815C22.6977 27.6815 22.6041 27.6429 22.5381 27.5659C22.483 27.4778 22.4665 27.3788 22.4885 27.2687L24.7672 16.5358C24.7892 16.4147 24.8498 16.3156 24.9489 16.2385C25.0479 16.1615 25.1525 16.1229 25.2626 16.1229H29.6548C30.8767 16.1229 31.8564 16.3761 32.5939 16.8825C33.3426 17.3889 33.7168 18.1209 33.7168 19.0786C33.7168 19.3538 33.6838 19.64 33.6177 19.9372C33.3426 21.2032 32.7867 22.1389 31.95 22.7443C31.1244 23.3498 29.9905 23.6525 28.5485 23.6525H26.3194L25.5598 27.2687C25.5377 27.3898 25.4772 27.4888 25.3782 27.5659C25.2791 27.6429 25.1745 27.6815 25.0645 27.6815H22.8188ZM28.6641 21.3738C29.1264 21.3738 29.5282 21.2472 29.8695 20.994C30.2217 20.7408 30.4529 20.3776 30.563 19.9042C30.596 19.717 30.6125 19.552 30.6125 19.4089C30.6125 19.0896 30.519 18.8474 30.3318 18.6823C30.1446 18.5062 29.8255 18.4182 29.3741 18.4182H27.3926L26.7652 21.3738H28.6641Z",
fill: "white"
}
)
]
}
);
const Arbitrum = ({ testnet, ...props }) => {
const fill = testnet ? "#ffffff" : "#28A0F0";
const outlineFill = testnet ? "#ffffff" : "#96BEDC";
return /* @__PURE__ */ jsxs(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
background: testnet ? "linear-gradient(180deg, #8995A9 0%, #424D5F 99.48%)" : "#2C364F"
},
children: [
!testnet && /* @__PURE__ */ jsx(
"path",
{
d: "M25.7948 20.5826L28.2683 16.3854L34.9355 26.7696L34.9386 28.7625L34.9168 15.0491C34.9011 14.7137 34.7231 14.407 34.4391 14.2261L22.4357 7.32182C22.1551 7.1838 21.7989 7.18546 21.5187 7.32618C21.4807 7.34524 21.4453 7.36576 21.4113 7.38835L21.3694 7.41467L9.71816 14.1664L9.67298 14.1871C9.61474 14.2137 9.55609 14.2479 9.50076 14.2872C9.27983 14.4456 9.1331 14.68 9.08564 14.9425C9.07859 14.9823 9.0732 15.023 9.07092 15.064L9.08916 26.239L15.2994 16.6138C16.0811 15.3376 17.7847 14.9262 19.3662 14.9488L21.2221 14.9977L10.2862 32.5356L11.5753 33.2778L22.6422 15.0155L27.5338 14.9977L16.4956 33.7209L21.0955 36.3668L21.6451 36.6827C21.8776 36.7772 22.1516 36.7819 22.386 36.6972L34.5581 29.6433L32.2309 30.9918L25.7948 20.5826ZM26.7384 34.175L22.0925 26.8829L24.9287 22.0702L31.0303 31.6876L26.7384 34.175Z",
fill: "#2D374B"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M22.0924 26.8832L26.7385 34.1751L31.0302 31.6879L24.9286 22.0705L22.0924 26.8832Z",
fill
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M34.9387 28.7627L34.9356 26.7698L28.2684 16.3856L25.7949 20.5828L32.2312 30.992L34.5584 29.6435C34.7866 29.4582 34.9248 29.1861 34.9393 28.8926L34.9387 28.7627Z",
fill
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M7 30.642L10.2863 32.5356L21.2222 14.9976L19.3663 14.9487C17.785 14.9263 16.0814 15.3375 15.2995 16.6137L9.08927 26.239L7 29.449V30.642V30.642Z",
fill: "white"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M27.534 14.9977L22.6423 15.0155L11.5754 33.2778L15.4437 35.5049L16.4955 33.7209L27.534 14.9977Z",
fill: "white"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M37 14.9723C36.9592 13.9493 36.4052 13.013 35.5377 12.4677L23.377 5.47434C22.5187 5.04223 21.4466 5.04161 20.5868 5.47414C20.4852 5.52533 8.76078 12.3251 8.76078 12.3251C8.5985 12.4029 8.44224 12.4955 8.2953 12.6008C7.52081 13.156 7.0487 14.0186 7 14.9661V29.4492L9.08927 26.2392L9.07103 15.0639C9.07352 15.0231 9.0787 14.9827 9.08575 14.9431C9.133 14.6801 9.27994 14.4457 9.50086 14.2872C9.5562 14.2478 21.4806 7.34517 21.5186 7.32611C21.799 7.18538 22.155 7.18373 22.4356 7.32175L34.439 14.226C34.723 14.4069 34.901 14.7137 34.9167 15.049V28.8921C34.9022 29.1856 34.7862 29.4577 34.558 29.643L32.2308 30.9916L31.03 31.6875L26.7383 34.1747L22.3859 36.6969C22.1515 36.7817 21.8773 36.7769 21.645 36.6824L16.4955 33.7206L15.4435 35.5046L20.0713 38.169C20.2243 38.256 20.3607 38.3331 20.4726 38.3961C20.6458 38.4933 20.764 38.5582 20.8056 38.5785C21.1345 38.7383 21.6077 38.8311 22.0342 38.8311C22.4251 38.8311 22.8064 38.7594 23.1672 38.6181L35.8092 31.2971C36.5347 30.7348 36.9617 29.8869 37 28.9686V14.9723Z",
fill: outlineFill
}
)
]
}
);
};
const Celo = ({ testnet, ...props }) => /* @__PURE__ */ jsx(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
background: testnet ? "linear-gradient(180deg, #8995A9 0%, #424D5F 99.48%)" : "#FCFE72"
},
children: /* @__PURE__ */ jsx(
"path",
{
d: "M9 9H34.5183V18.112H30.3564C28.896 14.7687 25.6102 12.4171 21.777 12.4171C16.593 12.4171 12.3948 16.6422 12.3948 21.823C12.3948 27.0039 16.593 31.2654 21.777 31.2654C25.5373 31.2654 28.8231 28.9876 30.2829 25.7172H34.5178V34.682H9V9Z",
fill: testnet ? "#ffffff" : "black"
}
)
}
);
const BinanceSmartChain = ({ testnet, ...props }) => /* @__PURE__ */ jsx(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
version: "1.1",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 2496 2496",
children: /* @__PURE__ */ jsxs("g", { children: [
/* @__PURE__ */ jsx(
"path",
{
style: { fillRule: "evenodd", clipRule: "evenodd", fill: "#F0B90B" },
d: "M1248,0c689.3,0,1248,558.7,1248,1248s-558.7,1248-1248,1248\n S0,1937.3,0,1248S558.7,0,1248,0L1248,0z"
}
),
/* @__PURE__ */ jsx(
"path",
{
style: { fill: "#FFFFFF" },
d: "M685.9,1248l0.9,330l280.4,165v193.2l-444.5-260.7v-524L685.9,1248L685.9,1248z M685.9,918v192.3\n l-163.3-96.6V821.4l163.3-96.6l164.1,96.6L685.9,918L685.9,918z M1084.3,821.4l163.3-96.6l164.1,96.6L1247.6,918L1084.3,821.4\n L1084.3,821.4z"
}
),
/* @__PURE__ */ jsx(
"path",
{
style: { fill: "#FFFFFF" },
d: "M803.9,1509.6v-193.2l163.3,96.6v192.3L803.9,1509.6L803.9,1509.6z M1084.3,1812.2l163.3,96.6\n l164.1-96.6v192.3l-164.1,96.6l-163.3-96.6V1812.2L1084.3,1812.2z M1645.9,821.4l163.3-96.6l164.1,96.6v192.3l-164.1,96.6V918\n L1645.9,821.4L1645.9,821.4L1645.9,821.4z M1809.2,1578l0.9-330l163.3-96.6v524l-444.5,260.7v-193.2L1809.2,1578L1809.2,1578\n L1809.2,1578z"
}
),
/* @__PURE__ */ jsx(
"polygon",
{
style: { fill: "#FFFFFF" },
points: "1692.1,1509.6 1528.8,1605.3 1528.8,1413 1692.1,1316.4 1692.1,1509.6 "
}
),
/* @__PURE__ */ jsx(
"path",
{
style: { fill: "#FFFFFF" },
d: "M1692.1,986.4l0.9,193.2l-281.2,165v330.8l-163.3,95.7l-163.3-95.7v-330.8l-281.2-165V986.4\n L968,889.8l279.5,165.8l281.2-165.8l164.1,96.6H1692.1L1692.1,986.4z M803.9,656.5l443.7-261.6l444.5,261.6l-163.3,96.6\n l-281.2-165.8L967.2,753.1L803.9,656.5L803.9,656.5z"
}
)
] })
}
);
const Solana = ({ testnet, ...props }) => /* @__PURE__ */ jsxs(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 200 200",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: [
/* @__PURE__ */ jsx("rect", { width: "200", height: "200", rx: "100", fill: "#121212" }),
/* @__PURE__ */ jsx("g", { clipPath: "url(#clip0_295_42)", children: /* @__PURE__ */ jsx(
"path",
{
d: "M149.48 125.382L132.807 142.801C132.444 143.18 132.006 143.482 131.519 143.688C131.031 143.894 130.505 144 129.974 144H50.9356C50.5585 144 50.1896 143.893 49.8742 143.691C49.5588 143.49 49.3107 143.203 49.1604 142.866C49.0101 142.529 48.9641 142.157 49.028 141.795C49.092 141.432 49.2631 141.096 49.5204 140.828L66.2061 123.408C66.5676 123.031 67.0047 122.729 67.4904 122.523C67.9762 122.317 68.5002 122.21 69.0301 122.21H148.064C148.441 122.21 148.81 122.317 149.126 122.518C149.441 122.72 149.689 123.007 149.84 123.344C149.99 123.681 150.036 124.053 149.972 124.415C149.908 124.777 149.737 125.113 149.48 125.382ZM132.807 90.3032C132.444 89.9248 132.006 89.6231 131.519 89.4169C131.031 89.2108 130.505 89.1045 129.974 89.1048H50.9356C50.5585 89.1048 50.1896 89.2121 49.8742 89.4136C49.5588 89.6151 49.3107 89.9019 49.1604 90.2388C49.0101 90.5758 48.9641 90.9482 49.028 91.3103C49.092 91.6723 49.2631 92.0083 49.5204 92.277L66.2061 109.697C66.5676 110.074 67.0047 110.375 67.4904 110.581C67.9762 110.788 68.5002 110.894 69.0301 110.895H148.064C148.441 110.895 148.81 110.788 149.126 110.586C149.441 110.385 149.689 110.098 149.84 109.761C149.99 109.424 150.036 109.052 149.972 108.69C149.908 108.328 149.737 107.992 149.48 107.723L132.807 90.3032ZM50.9356 77.7905H129.974C130.505 77.7907 131.031 77.6845 131.519 77.4783C132.006 77.2721 132.444 76.9704 132.807 76.592L149.48 59.1722C149.737 58.9036 149.908 58.5676 149.972 58.2055C150.036 57.8434 149.99 57.471 149.84 57.1341C149.689 56.7971 149.441 56.5103 149.126 56.3088C148.81 56.1073 148.441 56 148.064 56H69.0301C68.5002 56.0009 67.9762 56.1077 67.4904 56.3138C67.0047 56.52 66.5676 56.8211 66.2061 57.1985L49.5247 74.6183C49.2677 74.8866 49.0966 75.2223 49.0325 75.5839C48.9684 75.9456 49.0141 76.3177 49.1639 76.6545C49.3136 76.9913 49.5611 77.2781 49.8758 77.4799C50.1905 77.6817 50.5589 77.7896 50.9356 77.7905Z",
fill: "url(#paint0_linear_295_42)"
}
) }),
/* @__PURE__ */ jsxs("defs", { children: [
/* @__PURE__ */ jsxs(
"linearGradient",
{
id: "paint0_linear_295_42",
x1: "57.5256",
y1: "146.097",
x2: "137.993",
y2: "52.9838",
gradientUnits: "userSpaceOnUse",
children: [
/* @__PURE__ */ jsx("stop", { offset: "0.08", stopColor: "#9945FF" }),
/* @__PURE__ */ jsx("stop", { offset: "0.3", stopColor: "#8752F3" }),
/* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "#5497D5" }),
/* @__PURE__ */ jsx("stop", { offset: "0.6", stopColor: "#43B4CA" }),
/* @__PURE__ */ jsx("stop", { offset: "0.72", stopColor: "#28E0B9" }),
/* @__PURE__ */ jsx("stop", { offset: "0.97", stopColor: "#19FB9B" })
]
}
),
/* @__PURE__ */ jsx("clipPath", { id: "clip0_295_42", children: /* @__PURE__ */ jsx(
"rect",
{
width: "101",
height: "88",
fill: "white",
transform: "translate(49 56)"
}
) })
] })
]
}
);
const Tron = ({ testnet, ...props }) => /* @__PURE__ */ jsxs(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: [
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_450_171)", children: [
/* @__PURE__ */ jsx(
"path",
{
d: "M43.3388 27.3219C40.4005 39.1077 28.4634 46.2804 16.6762 43.3413C4.89383 40.4029 -2.27886 28.4652 0.660896 16.68C3.59789 4.89286 15.535 -2.28052 27.3187 0.65786C39.1052 3.59623 46.2772 15.5354 43.3388 27.3219Z",
fill: "#FF060A"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M36.3975 17.2381C35.0196 16.0232 33.1057 14.1724 31.5555 12.8625L31.4598 12.8056C31.3067 12.6917 31.1344 12.5968 30.9526 12.5303C27.2015 11.8659 9.74716 8.76218 9.41224 8.80015C9.31654 8.80964 9.22085 8.84761 9.1443 8.89507L9.05817 8.96151C8.95291 9.06591 8.86679 9.1893 8.81894 9.33167L8.7998 9.38862V9.70184V9.7493C10.7615 14.9507 18.5222 31.9785 20.0532 35.9839C20.1489 36.2591 20.3212 36.7717 20.6465 36.8001H20.7231C20.8953 36.8001 21.6417 35.8605 21.6417 35.8605C21.6417 35.8605 34.9717 20.5032 36.321 18.8707C36.4932 18.6713 36.6463 18.453 36.7803 18.2252C36.8186 18.0449 36.7994 17.8646 36.7324 17.6937C36.6655 17.5229 36.5411 17.3615 36.3975 17.2381ZM25.0484 19.032L30.7325 14.552L34.0722 17.4754L25.0484 19.032ZM22.8379 18.7378L13.0486 11.1066L28.8952 13.8876L22.8379 18.7378ZM23.7183 20.731L33.7373 19.1934L22.2829 32.3202L23.7183 20.731ZM11.7184 11.8754L22.0245 20.1805L20.5317 32.3296L11.7184 11.8754Z",
fill: "white"
}
)
] }),
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_450_171", children: /* @__PURE__ */ jsx("rect", { width: "44", height: "44", fill: "white" }) }) })
]
}
);
const Base = ({ testnet, ...props }) => /* @__PURE__ */ jsx(
"svg",
{
...props,
width: "44",
height: "44",
viewBox: "0 0 44 44",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
background: testnet ? "linear-gradient(180deg, #8995A9 0%, #424D5F 99.48%)" : "#0052FF"
},
children: /* @__PURE__ */ jsx(
"path",
{
d: "M21.9756 36C29.721 36 36 29.732 36 22C36 14.268 29.721 8 21.9756 8C14.6271 8 8.59871 13.6419 8 20.8232H26.5371V23.1768H8C8.59871 30.3581 14.6271 36 21.9756 36Z",
fill: "white"
}
)
}
);
const Linea = ({ testnet, ...props }) => /* @__PURE__ */ jsxs(
"svg",
{
...props,
width: "44",
height: "44",
viewBox: "0 0 200 200",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: [
/* @__PURE__ */ jsx("path", { d: "M200 0H0V200H200V0Z", fill: "#121212" }),
/* @__PURE__ */ jsx(
"mask",
{
id: "mask0_267_10",
style: { maskType: "luminance" },
maskUnits: "userSpaceOnUse",
x: "50",
y: "48",
width: "100",
height: "104",
children: /* @__PURE__ */ jsx("path", { d: "M149.541 48H50V151.977H149.541V48Z", fill: "white" })
}
),
/* @__PURE__ */ jsxs("g", { mask: "url(#mask0_267_10)", children: [
/* @__PURE__ */ jsx(
"path",
{
d: "M132.669 151.977H50V64.8721H68.9147V135.096H132.669V151.968V151.977Z",
fill: "white"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M132.669 81.7441C141.987 81.7441 149.541 74.1902 149.541 64.8721C149.541 55.5539 141.987 48 132.669 48C123.35 48 115.797 55.5539 115.797 64.8721C115.797 74.1902 123.35 81.7441 132.669 81.7441Z",
fill: "white"
}
)
] })
]
}
);
const Worldchain = ({ testnet, ...props }) => /* @__PURE__ */ jsxs(
"svg",
{
...props,
"aria-hidden": "true",
width: "44",
height: "44",
viewBox: "0 0 400 400",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: [
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C132 0 264 0 400 0 C400 132 400 264 400 400 C268 400 136 400 0 400 C0 268 0 136 0 0 Z ",
fill: "#FEFEFE",
transform: "translate(0,0)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C0.70403961 0.0012085 1.40807922 0.00241699 2.13345337 0.00366211 C37.34271908 0.16721508 68.5105973 14.80090333 93.17163086 39.68505859 C98.62984305 45.41558542 103.09177892 51.78200535 107.4375 58.375 C108.159375 59.4475 108.88125 60.52 109.625 61.625 C122.08220864 80.87704972 127.84793078 103.26191133 127.75 126.0625 C127.74850952 126.72419189 127.74701904 127.38588379 127.7454834 128.06762695 C127.70436084 138.22551322 127.07498098 147.56085403 124.4375 157.375 C124.14746094 158.56480469 123.85742188 159.75460938 123.55859375 160.98046875 C117.33294616 184.86715846 102.42700827 208.48904018 83.4375 224.375 C82.7775 224.375 82.1175 224.375 81.4375 224.375 C81.4375 225.035 81.4375 225.695 81.4375 226.375 C79.55168751 227.86844182 77.6802053 229.22460868 75.6875 230.5625 C75.09767334 230.96251221 74.50784668 231.36252441 73.90014648 231.7746582 C45.33982467 250.94089101 10.69801357 259.36417248 -23.53125 253.31640625 C-58.32294327 245.96067382 -87.68703658 225.97193245 -107.32177734 196.33154297 C-113.84308531 186.04784324 -119.21618764 175.09939589 -122.5625 163.375 C-122.75714844 162.7032373 -122.95179687 162.03147461 -123.15234375 161.33935547 C-126.29298989 150.01096274 -126.95426502 138.7553544 -127 127.0625 C-127.0061734 126.39534973 -127.0123468 125.72819946 -127.01870728 125.04083252 C-127.22210042 90.87814217 -112.10569979 60.09763142 -88.5625 35.9375 C-73.41024939 20.79283974 -54.8893351 10.80975271 -34.5625 4.375 C-33.52222656 4.04242188 -32.48195313 3.70984375 -31.41015625 3.3671875 C-20.96204118 0.67295275 -10.76743051 -0.03432509 0 0 Z ",
fill: "#030303",
transform: "translate(199.5625,72.625)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C11.55 0 23.1 0 35 0 C37.475 7.425 37.475 7.425 40 15 C49.21380616 33.94914853 62.0370052 48.14330377 82.26171875 55.140625 C83.16535156 55.42421875 84.06898438 55.7078125 85 56 C86.03415543 56.34114838 87.06831085 56.68229675 88.13380432 57.03378296 C92.4151578 58.10375381 96.2112859 58.30653699 100.59741211 58.31884766 C101.84252563 58.33391609 101.84252563 58.33391609 103.11279297 58.34928894 C105.83430337 58.37997941 108.55571605 58.39711649 111.27734375 58.4140625 C113.17306857 58.43278554 115.06878515 58.45235979 116.9644928 58.4727478 C121.93741998 58.52395501 126.91037415 58.56364168 131.88342285 58.60089111 C136.96466688 58.64100246 142.04579976 58.69206221 147.12695312 58.7421875 C157.08455721 58.83881161 167.04222421 58.92325948 177 59 C176.06240625 60.11818809 175.12128368 61.23341782 174.17871094 62.34741211 C173.39315826 63.27945717 173.39315826 63.27945717 172.59173584 64.23033142 C162.58148353 75.35958323 147.85650103 82.10162688 134 87 C132.87980469 87.41765625 131.75960937 87.8353125 130.60546875 88.265625 C112.47396566 93.94296445 87.79207496 93.59729315 70 87 C68.77410156 86.5875 67.54820312 86.175 66.28515625 85.75 C40.7576163 76.74144211 20.58906247 57.52681738 8.6484375 33.45703125 C3.51705369 22.69571686 0 12.06068152 0 0 Z ",
fill: "#FAFAFA",
transform: "translate(98,212)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C0.99128906 0.26683594 1.98257813 0.53367187 3.00390625 0.80859375 C20.02205338 5.90723969 35.38784974 15.53622797 48 28 C48 28.33 48 28.66 48 29 C46.99569946 29.00142502 45.99139893 29.00285004 44.95666504 29.00431824 C35.42537052 29.02109205 25.89449728 29.06417913 16.36342621 29.13209057 C11.46504263 29.16617258 6.56696472 29.19144103 1.66845703 29.19555664 C-3.07161547 29.19988029 -7.81100063 29.22867466 -12.55085754 29.27343178 C-14.34621658 29.28627824 -16.14165841 29.29076089 -17.9370575 29.28615379 C-39.57125354 29.2436265 -58.64662622 35.40002391 -74.56494141 50.54882812 C-85.14790619 61.25062171 -89.66973578 73.56885506 -93 88 C-104.88 88 -116.76 88 -129 88 C-129 64.08086196 -115.40828709 41.63583644 -99 25 C-72.65926108 0.43663887 -35.01441399 -9.99793527 0 0 Z ",
fill: "#FBFBFB",
transform: "translate(227,100)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C1.43530815 -0.00043808 1.43530815 -0.00043808 2.89961243 -0.00088501 C6.04327657 0.00050157 9.18669983 0.01603116 12.33032227 0.03173828 C14.51750051 0.0354708 16.70468044 0.03831664 18.89186096 0.04031372 C24.63427386 0.04793137 30.37658477 0.06756384 36.11895752 0.08972168 C41.98432028 0.11022036 47.8496996 0.11932403 53.71508789 0.12939453 C65.21317945 0.15081148 76.71119548 0.18492487 88.20922852 0.22705078 C89.01417532 1.6299547 89.81343075 3.03612493 90.61035156 4.44360352 C91.05606003 5.22630112 91.50176849 6.00899872 91.96098328 6.81541443 C93.86879215 10.50134175 94.96928018 14.29024711 96.02172852 18.28955078 C96.34560547 19.41586914 96.34560547 19.41586914 96.67602539 20.56494141 C98.11972655 25.86767867 98.20922852 29.34376842 98.20922852 35.22705078 C50.68922852 35.22705078 3.16922852 35.22705078 -45.79077148 35.22705078 C-41.98207673 22.53140161 -35.92269341 12.61991806 -24.31030273 5.76220703 C-16.09258333 1.47307966 -9.18687217 -0.07412284 0 0 Z ",
fill: "#FDFDFD",
transform: "translate(203.790771484375,152.77294921875)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C47.52 0 95.04 0 144 0 C142.84140283 13.90316605 142.84140283 13.90316605 140.6875 20.3125 C140.48705078 20.96283203 140.28660156 21.61316406 140.08007812 22.28320312 C138.58431084 26.91869244 136.43289036 30.78177675 134 35 C121.42969934 35.09296032 108.85948139 35.16389686 96.2889061 35.20724869 C90.45094348 35.22806258 84.61321724 35.25626666 78.77539062 35.30175781 C73.1343582 35.34543695 67.49355217 35.36918365 61.85236359 35.37950897 C59.70752655 35.38686085 57.56270095 35.40121672 55.41796112 35.42292023 C38.21797933 35.58994386 24.82919001 34.23919899 11.77734375 21.8984375 C5.69643497 15.465177 1.74000471 8.70002355 0 0 Z ",
fill: "#FDFDFD",
transform: "translate(158,212)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C47.52 0 95.04 0 144 0 C144 0.33 144 0.66 144 1 C143.27516733 1.00238835 142.55033466 1.00477671 141.80353737 1.00723743 C124.18601629 1.0663125 106.5686429 1.14181412 88.95127296 1.23571491 C80.43172058 1.28072596 71.91221049 1.32012822 63.39257812 1.34643555 C55.96891368 1.3693728 48.5453825 1.40272254 41.12182367 1.44870156 C37.1892239 1.47269179 33.25675658 1.49138239 29.32408524 1.49761391 C25.62550831 1.50363876 21.92727054 1.52354315 18.22881889 1.55427551 C16.21821404 1.56731688 14.2075301 1.56547871 12.19688416 1.5632782 C11.00773911 1.57581635 9.81859406 1.58835449 8.59341431 1.60127258 C7.55547541 1.60588155 6.51753651 1.61049051 5.44814491 1.61523914 C4.64025709 1.74221023 3.83236927 1.86918131 3 2 C2.01 3.485 2.01 3.485 1 5 C0.67 3.35 0.34 1.7 0 0 Z ",
fill: "#DDDDDD",
transform: "translate(158,212)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C0.66 0.66 1.32 1.32 2 2 C-0.97 5.3 -3.94 8.6 -7 12 C-7.66 11.01 -8.32 10.02 -9 9 C-8.01 8.34 -7.02 7.68 -6 7 C-4.78715124 3.94570927 -4.78715124 3.94570927 -4 1 C-3.01 1 -2.02 1 -1 1 C-0.67 0.67 -0.34 0.34 0 0 Z ",
fill: "#090909",
transform: "translate(126,124)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C-0.99 1.485 -0.99 1.485 -2 3 C-3.9453125 3.29296875 -3.9453125 3.29296875 -6.125 3.1875 C-7.40375 3.125625 -8.6825 3.06375 -10 3 C-10 2.01 -10 1.02 -10 0 C-2.25 -1.125 -2.25 -1.125 0 0 Z ",
fill: "#121212",
transform: "translate(182,75)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C0.66 0.33 1.32 0.66 2 1 C0.515 2.485 0.515 2.485 -1 4 C-0.67 4.66 -0.34 5.32 0 6 C-2.31 5.67 -4.62 5.34 -7 5 C-2.25 1.125 -2.25 1.125 0 0 Z ",
fill: "#181818",
transform: "translate(171,136)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C4 4.5 4 4.5 4 9 C3.34 8.67 2.68 8.34 2 8 C2 6.68 2 5.36 2 4 C0.68 3.34 -0.64 2.68 -2 2 C-1.34 2 -0.68 2 0 2 C0 1.34 0 0.68 0 0 Z ",
fill: "#E6E6E6",
transform: "translate(90,265)"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M0 0 C-1.39332574 3.36720387 -2.9789286 4.9859524 -6 7 C-6.33 6.01 -6.66 5.02 -7 4 C-2.25 0 -2.25 0 0 0 Z ",
fill: "#1A1A1A",
transform: "translate(124,129)"
}
)
]
}
);
const Scroll = ({ ...props }) => /* @__PURE__ */ jsxs(
"svg",
{
...props,
width: "44",
height: "44",
viewBox: "0 0 444 444",
xmlns: "http://www.w3.org/2000/svg",
children: [
/* @__PURE__ */ jsx("style", { children: ".st0{fill:#ffeeda}.st2{fill:#101010}" }),
/* @__PURE__ */ jsx("path", { d: "M0 0h444v444H0z", className: "st0" }),
/* @__PURE__ */ jsx(
"path",
{
d: "M333.4 262V110.6c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 11.5 3.1 21.4 7.8 30.1 4 7.2 10.3 14 16.5 19.1 1.8 1.4.9.8 6.3 4.1 7.4 4.5 15.9 6.8 15.9 6.8l-.1 90.6c.2 4.3.6 8.4 1.8 12.3 3.5 12.8 12.4 22.6 24.4 27.3 5 2 10.7 3.3 16.8 3.4l126.2.4c25.1 0 45.5-20.4 45.5-45.6.1-15-7.4-28.4-18.6-36.8z",
className: "st0"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M336.5 299.9C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1z",
style: {
fill: "#ebc28e"
}
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M123.5 186.7c-10-9.5-17-21.7-17-36.3v-1.5c.8-24.8 21.2-44.8 46-45.5h158c4.1.2 7.4 3.1 7.4 7.3v133.7c3.6.6 5.4 1.1 8.9 2.4 2.8 1 6.6 3.2 6.6 3.2V110.7c-.2-12.7-10.3-22.9-23-22.9h-158c-34.1.5-61.5 28.4-61.5 62.6 0 19.9 9.1 36.9 23.9 48.8 1 .8 2 1.9 4.6 1.9 4.6 0 7.9-3.7 7.7-7.7 0-3.4-1.5-4.6-3.6-6.7z",
className: "st2"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M306.4 253.2H182.5c-8.3.1-15 6.8-15 15.1v17.8c.2 8.2 7.2 15.2 15.6 15.2h9.2v-15.2H183v-17.4h5c15.7 0 27.2 14.5 27.2 30.1 0 13.8-12.6 31.4-33.6 30-18.6-1.2-28.7-17.8-28.7-30v-151c0-6.8-5.6-12.4-12.4-12.4h-12.4v15.5h9.2v148c-.5 30.1 21.4 45.2 44.3 45.2l124.9.4c25.1 0 45.5-20.4 45.5-45.6.1-25.2-20.4-45.7-45.6-45.7zm30.1 46.7C336 316 322.7 329 306.4 329l-86.8-.3c6.9-8 11.1-18.4 11.1-29.8 0-17.8-10.6-30.1-10.6-30.1h86.4c16.6 0 30.1 13.5 30.1 30.1l-.1 1zM273 153.7h-93.4v-15.5H273c4.2 0 7.7 3.4 7.7 7.7.1 4.3-3.3 7.8-7.7 7.8z",
className: "st2"
}
),
/* @__PURE__ */ jsx(
"path",
{
d: "M273 226.4h-93.4V211H273c4.2 0 7.7 3.4 7.7 7.7.1 4.2-3.3 7.7-7.7 7.7zM289.5 190H179.6v-15.5h109.8c4.2 0 7.7 3.4 7.7 7.7.2 4.3-3.3 7.8-7.6 7.8z",
className: "st2"
}
)
]
}
);
const chainToLogo = {
[arbitrum.chainId]: /* @__PURE__ */ jsx(Arbitrum, {}),
[base.chainId]: /* @__PURE__ */ jsx(Base, {}),
[bsc.chainId]: /* @__PURE__ */ jsx(BinanceSmartChain, {}),
[celo.chainId]: /* @__PURE__ */ jsx(Celo, {}),
[ethereum.chainId]: /* @__PURE__ */ jsx(Ethereum, {}),
[linea.chainId]: /* @__PURE__ */ jsx(Linea, {}),
[optimism.chainId]: /* @__PURE__ */ jsx(Optimism, {}),
[polygon.chainId]: /* @__PURE__ */ jsx(Polygon, {}),
[scroll.chainId]: /* @__PURE__ */ jsx(Scroll, {}),
[solana.chainId]: /* @__PURE__ */ jsx(Solana, {}),
[worldchain.chainId]: /* @__PURE__ */ jsx(Worldchain, {})
};
export { Arbitrum, Base, Ethereum, Optimism, Polygon, Solana, Tron, UnknownChain, chainToLogo };
//# sourceMappingURL=chains.js.map