@medialane/ui 0.373.1 → 0.373.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/components/account/input-otp.d.cts +2 -2
  2. package/dist/components/account/input-otp.d.ts +2 -2
  3. package/dist/components/button.d.cts +2 -2
  4. package/dist/components/button.d.ts +2 -2
  5. package/dist/components/collection-settings.cjs +2 -2
  6. package/dist/components/collection-settings.cjs.map +1 -1
  7. package/dist/components/collection-settings.js +2 -2
  8. package/dist/components/collection-settings.js.map +1 -1
  9. package/dist/components/fast-mint/formats/nft.cjs +1 -1
  10. package/dist/components/fast-mint/formats/nft.cjs.map +1 -1
  11. package/dist/components/fast-mint/formats/nft.js +1 -1
  12. package/dist/components/fast-mint/formats/nft.js.map +1 -1
  13. package/dist/components/featured-carousel.cjs +3 -3
  14. package/dist/components/featured-carousel.cjs.map +1 -1
  15. package/dist/components/featured-carousel.js +3 -3
  16. package/dist/components/featured-carousel.js.map +1 -1
  17. package/dist/components/launchpad/coin-create.cjs +1 -1
  18. package/dist/components/launchpad/coin-create.cjs.map +1 -1
  19. package/dist/components/launchpad/coin-create.js +1 -1
  20. package/dist/components/launchpad/coin-create.js.map +1 -1
  21. package/dist/components/launchpad/collection-create-presets.cjs +3 -3
  22. package/dist/components/launchpad/collection-create-presets.cjs.map +1 -1
  23. package/dist/components/launchpad/collection-create-presets.js +3 -3
  24. package/dist/components/launchpad/collection-create-presets.js.map +1 -1
  25. package/dist/components/launchpad/edition-mint-fields.cjs +3 -3
  26. package/dist/components/launchpad/edition-mint-fields.cjs.map +1 -1
  27. package/dist/components/launchpad/edition-mint-fields.js +3 -3
  28. package/dist/components/launchpad/edition-mint-fields.js.map +1 -1
  29. package/dist/components/launchpad/edition-mint-schema.d.cts +2 -2
  30. package/dist/components/launchpad/edition-mint-schema.d.ts +2 -2
  31. package/dist/components/launchpad/edition-mint.cjs +1 -1
  32. package/dist/components/launchpad/edition-mint.cjs.map +1 -1
  33. package/dist/components/launchpad/edition-mint.js +1 -1
  34. package/dist/components/launchpad/edition-mint.js.map +1 -1
  35. package/dist/components/launchpad/remix-mint.cjs +3 -3
  36. package/dist/components/launchpad/remix-mint.cjs.map +1 -1
  37. package/dist/components/launchpad/remix-mint.js +3 -3
  38. package/dist/components/launchpad/remix-mint.js.map +1 -1
  39. package/dist/components/launchpad/single-edition-mint.cjs +2 -2
  40. package/dist/components/launchpad/single-edition-mint.cjs.map +1 -1
  41. package/dist/components/launchpad/single-edition-mint.js +2 -2
  42. package/dist/components/launchpad/single-edition-mint.js.map +1 -1
  43. package/dist/components/launchpad/tier-mint-form.cjs +2 -2
  44. package/dist/components/launchpad/tier-mint-form.cjs.map +1 -1
  45. package/dist/components/launchpad/tier-mint-form.js +2 -2
  46. package/dist/components/launchpad/tier-mint-form.js.map +1 -1
  47. package/dist/components/launchpad/tier-mint-presets.cjs +4 -4
  48. package/dist/components/launchpad/tier-mint-presets.cjs.map +1 -1
  49. package/dist/components/launchpad/tier-mint-presets.js +4 -4
  50. package/dist/components/launchpad/tier-mint-presets.js.map +1 -1
  51. package/dist/components/license-request-page.cjs +2 -2
  52. package/dist/components/license-request-page.cjs.map +1 -1
  53. package/dist/components/license-request-page.js +2 -2
  54. package/dist/components/license-request-page.js.map +1 -1
  55. package/dist/components/media-wallet/media-wallet-header.cjs +1 -1
  56. package/dist/components/media-wallet/media-wallet-header.cjs.map +1 -1
  57. package/dist/components/media-wallet/media-wallet-header.js +1 -1
  58. package/dist/components/media-wallet/media-wallet-header.js.map +1 -1
  59. package/dist/components/pop-manage-page.cjs +1 -1
  60. package/dist/components/pop-manage-page.cjs.map +1 -1
  61. package/dist/components/pop-manage-page.js +1 -1
  62. package/dist/components/pop-manage-page.js.map +1 -1
  63. package/dist/components/sheet.d.cts +1 -1
  64. package/dist/components/sheet.d.ts +1 -1
  65. package/dist/data/nav-commands.cjs +3 -12
  66. package/dist/data/nav-commands.cjs.map +1 -1
  67. package/dist/data/nav-commands.d.cts +0 -63
  68. package/dist/data/nav-commands.d.ts +0 -63
  69. package/dist/data/nav-commands.js +3 -12
  70. package/dist/data/nav-commands.js.map +1 -1
  71. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/media-wallet/media-wallet-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport Link from \"../link.js\";\nimport Image from \"../image.js\";\nimport { short } from \"../../utils/media-wallet/wallet-format.js\";\nimport { CopyIcon } from \"./copy-icon.js\";\nimport { useMediaWalletApp, type MediaWalletHeaderIdentity } from \"./types.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst noIdentity = (): MediaWalletHeaderIdentity => ({});\n\nexport function MediaWalletHeader({ address, onNavigate }: { address: string; onNavigate: () => void }) {\n const t = useT();\n const { useHeaderIdentity = noIdentity, useAccountEmail } = useMediaWalletApp();\n const headerIdentity = useHeaderIdentity(address);\n const accountEmail = useAccountEmail();\n const [copied, setCopied] = useState(false);\n const avatarUrl = headerIdentity?.avatarUrl ?? null;\n\n const copy = () => {\n navigator.clipboard?.writeText(address).catch(() => {});\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n const headline = headerIdentity?.headline ?? short(address);\n\n return (\n <header className=\"flex flex-col items-center gap-2 pt-6\">\n <Link\n href=\"/settings\"\n onClick={onNavigate}\n aria-label={t(\"Profile and settings\")}\n className=\"relative h-20 w-20 shrink-0 transition-transform active:scale-95\"\n >\n <div className=\"relative h-full w-full overflow-hidden rounded-full bg-foreground/[0.06] ring-2 ring-foreground/10\">\n <Image\n src={avatarUrl ?? \"/icon.png\"}\n alt=\"\"\n fill\n unoptimized\n className={avatarUrl ? \"object-cover\" : \"object-cover p-[16%]\"}\n />\n </div>\n {headerIdentity?.badge}\n </Link>\n <button\n onClick={copy}\n className=\"flex items-center gap-1.5 font-[family-name:var(--font-display)] text-lg font-bold tracking-tight\"\n >\n {headline}\n {copied ? (\n <span className=\"text-2xs font-normal text-muted-foreground\">{t(\"copied ✓\")}</span>\n ) : (\n <CopyIcon className=\"shrink-0 opacity-50\" />\n )}\n </button>\n {accountEmail && <span className=\"text-xs text-muted-foreground\">{accountEmail}</span>}\n </header>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BM;AA5BN,mBAAyB;AACzB,kBAAiB;AACjB,mBAAkB;AAClB,2BAAsB;AACtB,uBAAyB;AACzB,mBAAkE;AAClE,sBAAqB;AAErB,MAAM,aAAa,OAAkC,CAAC;AAE/C,SAAS,kBAAkB,EAAE,SAAS,WAAW,GAAgD;AACtG,QAAM,QAAI,sBAAK;AACf,QAAM,EAAE,oBAAoB,YAAY,gBAAgB,QAAI,gCAAkB;AAC9E,QAAM,iBAAiB,kBAAkB,OAAO;AAChD,QAAM,eAAe,gBAAgB;AACrC,QAAM,CAAC,QAAQ,SAAS,QAAI,uBAAS,KAAK;AAC1C,QAAM,YAAY,gBAAgB,aAAa;AAE/C,QAAM,OAAO,MAAM;AACjB,cAAU,WAAW,UAAU,OAAO,EAAE,MAAM,MAAM;AAAA,IAAC,CAAC;AACtD,cAAU,IAAI;AACd,eAAW,MAAM,UAAU,KAAK,GAAG,IAAI;AAAA,EACzC;AAEA,QAAM,WAAW,gBAAgB,gBAAY,4BAAM,OAAO;AAE1D,SACE,6CAAC,YAAO,WAAU,yCAChB;AAAA;AAAA,MAAC,YAAAA;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS;AAAA,QACT,cAAY,EAAE,sBAAsB;AAAA,QACpC,WAAU;AAAA,QAEV;AAAA,sDAAC,SAAI,WAAU,sGACb;AAAA,YAAC,aAAAC;AAAA,YAAA;AAAA,cACC,KAAK,aAAa;AAAA,cAClB,KAAI;AAAA,cACJ,MAAI;AAAA,cACJ,aAAW;AAAA,cACX,WAAW,YAAY,iBAAiB;AAAA;AAAA,UAC1C,GACF;AAAA,UACC,gBAAgB;AAAA;AAAA;AAAA,IACnB;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAU;AAAA,QAET;AAAA;AAAA,UACA,SACC,4CAAC,UAAK,WAAU,8CAA8C,YAAE,eAAU,GAAE,IAE5E,4CAAC,6BAAS,WAAU,uBAAsB;AAAA;AAAA;AAAA,IAE9C;AAAA,IACC,gBAAgB,4CAAC,UAAK,WAAU,iCAAiC,wBAAa;AAAA,KACjF;AAEJ;","names":["Link","Image"]}
1
+ {"version":3,"sources":["../../../src/components/media-wallet/media-wallet-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport Link from \"../link.js\";\nimport Image from \"../image.js\";\nimport { short } from \"../../utils/media-wallet/wallet-format.js\";\nimport { CopyIcon } from \"./copy-icon.js\";\nimport { useMediaWalletApp, type MediaWalletHeaderIdentity } from \"./types.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst noIdentity = (): MediaWalletHeaderIdentity => ({});\n\nexport function MediaWalletHeader({ address, onNavigate }: { address: string; onNavigate: () => void }) {\n const t = useT();\n const { useHeaderIdentity = noIdentity, useAccountEmail } = useMediaWalletApp();\n const headerIdentity = useHeaderIdentity(address);\n const accountEmail = useAccountEmail();\n const [copied, setCopied] = useState(false);\n const avatarUrl = headerIdentity?.avatarUrl ?? null;\n\n const copy = () => {\n navigator.clipboard?.writeText(address).catch(() => {});\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n const headline = headerIdentity?.headline ?? short(address);\n\n return (\n <header className=\"flex flex-col items-center gap-2 pt-6\">\n <Link\n href=\"/settings\"\n onClick={onNavigate}\n aria-label={t(\"Profile and settings\")}\n className=\"relative h-20 w-20 shrink-0 transition-transform active:scale-95\"\n >\n <div className=\"relative h-full w-full overflow-hidden rounded-full bg-foreground/[0.06] ring-2 ring-foreground/10\">\n <Image\n src={avatarUrl ?? \"/icon.png\"}\n alt=\"\"\n fill\n unoptimized\n className={avatarUrl ? \"object-cover\" : \"object-cover p-[16%]\"}\n />\n </div>\n {headerIdentity?.badge}\n </Link>\n <button\n onClick={copy}\n className=\"flex items-center gap-1.5 font-[family-name:var(--font-display)] text-lg font-bold tracking-tight\"\n >\n {headline}\n {copied ? (\n <span className=\"text-2xs font-normal text-muted-foreground\">{t(\"Copied ✓\")}</span>\n ) : (\n <CopyIcon className=\"shrink-0 opacity-50\" />\n )}\n </button>\n {accountEmail && <span className=\"text-xs text-muted-foreground\">{accountEmail}</span>}\n </header>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BM;AA5BN,mBAAyB;AACzB,kBAAiB;AACjB,mBAAkB;AAClB,2BAAsB;AACtB,uBAAyB;AACzB,mBAAkE;AAClE,sBAAqB;AAErB,MAAM,aAAa,OAAkC,CAAC;AAE/C,SAAS,kBAAkB,EAAE,SAAS,WAAW,GAAgD;AACtG,QAAM,QAAI,sBAAK;AACf,QAAM,EAAE,oBAAoB,YAAY,gBAAgB,QAAI,gCAAkB;AAC9E,QAAM,iBAAiB,kBAAkB,OAAO;AAChD,QAAM,eAAe,gBAAgB;AACrC,QAAM,CAAC,QAAQ,SAAS,QAAI,uBAAS,KAAK;AAC1C,QAAM,YAAY,gBAAgB,aAAa;AAE/C,QAAM,OAAO,MAAM;AACjB,cAAU,WAAW,UAAU,OAAO,EAAE,MAAM,MAAM;AAAA,IAAC,CAAC;AACtD,cAAU,IAAI;AACd,eAAW,MAAM,UAAU,KAAK,GAAG,IAAI;AAAA,EACzC;AAEA,QAAM,WAAW,gBAAgB,gBAAY,4BAAM,OAAO;AAE1D,SACE,6CAAC,YAAO,WAAU,yCAChB;AAAA;AAAA,MAAC,YAAAA;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS;AAAA,QACT,cAAY,EAAE,sBAAsB;AAAA,QACpC,WAAU;AAAA,QAEV;AAAA,sDAAC,SAAI,WAAU,sGACb;AAAA,YAAC,aAAAC;AAAA,YAAA;AAAA,cACC,KAAK,aAAa;AAAA,cAClB,KAAI;AAAA,cACJ,MAAI;AAAA,cACJ,aAAW;AAAA,cACX,WAAW,YAAY,iBAAiB;AAAA;AAAA,UAC1C,GACF;AAAA,UACC,gBAAgB;AAAA;AAAA;AAAA,IACnB;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAU;AAAA,QAET;AAAA;AAAA,UACA,SACC,4CAAC,UAAK,WAAU,8CAA8C,YAAE,eAAU,GAAE,IAE5E,4CAAC,6BAAS,WAAU,uBAAsB;AAAA;AAAA;AAAA,IAE9C;AAAA,IACC,gBAAgB,4CAAC,UAAK,WAAU,iCAAiC,wBAAa;AAAA,KACjF;AAEJ;","names":["Link","Image"]}
@@ -52,7 +52,7 @@ function MediaWalletHeader({ address, onNavigate }) {
52
52
  className: "flex items-center gap-1.5 font-[family-name:var(--font-display)] text-lg font-bold tracking-tight",
53
53
  children: [
54
54
  headline,
55
- copied ? /* @__PURE__ */ jsx("span", { className: "text-2xs font-normal text-muted-foreground", children: t("copied \u2713") }) : /* @__PURE__ */ jsx(CopyIcon, { className: "shrink-0 opacity-50" })
55
+ copied ? /* @__PURE__ */ jsx("span", { className: "text-2xs font-normal text-muted-foreground", children: t("Copied \u2713") }) : /* @__PURE__ */ jsx(CopyIcon, { className: "shrink-0 opacity-50" })
56
56
  ]
57
57
  }
58
58
  ),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/media-wallet/media-wallet-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport Link from \"../link.js\";\nimport Image from \"../image.js\";\nimport { short } from \"../../utils/media-wallet/wallet-format.js\";\nimport { CopyIcon } from \"./copy-icon.js\";\nimport { useMediaWalletApp, type MediaWalletHeaderIdentity } from \"./types.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst noIdentity = (): MediaWalletHeaderIdentity => ({});\n\nexport function MediaWalletHeader({ address, onNavigate }: { address: string; onNavigate: () => void }) {\n const t = useT();\n const { useHeaderIdentity = noIdentity, useAccountEmail } = useMediaWalletApp();\n const headerIdentity = useHeaderIdentity(address);\n const accountEmail = useAccountEmail();\n const [copied, setCopied] = useState(false);\n const avatarUrl = headerIdentity?.avatarUrl ?? null;\n\n const copy = () => {\n navigator.clipboard?.writeText(address).catch(() => {});\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n const headline = headerIdentity?.headline ?? short(address);\n\n return (\n <header className=\"flex flex-col items-center gap-2 pt-6\">\n <Link\n href=\"/settings\"\n onClick={onNavigate}\n aria-label={t(\"Profile and settings\")}\n className=\"relative h-20 w-20 shrink-0 transition-transform active:scale-95\"\n >\n <div className=\"relative h-full w-full overflow-hidden rounded-full bg-foreground/[0.06] ring-2 ring-foreground/10\">\n <Image\n src={avatarUrl ?? \"/icon.png\"}\n alt=\"\"\n fill\n unoptimized\n className={avatarUrl ? \"object-cover\" : \"object-cover p-[16%]\"}\n />\n </div>\n {headerIdentity?.badge}\n </Link>\n <button\n onClick={copy}\n className=\"flex items-center gap-1.5 font-[family-name:var(--font-display)] text-lg font-bold tracking-tight\"\n >\n {headline}\n {copied ? (\n <span className=\"text-2xs font-normal text-muted-foreground\">{t(\"copied ✓\")}</span>\n ) : (\n <CopyIcon className=\"shrink-0 opacity-50\" />\n )}\n </button>\n {accountEmail && <span className=\"text-xs text-muted-foreground\">{accountEmail}</span>}\n </header>\n );\n}\n"],"mappings":";AA8BM,SAOI,KAPJ;AA5BN,SAAS,gBAAgB;AACzB,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,yBAAyD;AAClE,SAAS,YAAY;AAErB,MAAM,aAAa,OAAkC,CAAC;AAE/C,SAAS,kBAAkB,EAAE,SAAS,WAAW,GAAgD;AACtG,QAAM,IAAI,KAAK;AACf,QAAM,EAAE,oBAAoB,YAAY,gBAAgB,IAAI,kBAAkB;AAC9E,QAAM,iBAAiB,kBAAkB,OAAO;AAChD,QAAM,eAAe,gBAAgB;AACrC,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAC1C,QAAM,YAAY,gBAAgB,aAAa;AAE/C,QAAM,OAAO,MAAM;AACjB,cAAU,WAAW,UAAU,OAAO,EAAE,MAAM,MAAM;AAAA,IAAC,CAAC;AACtD,cAAU,IAAI;AACd,eAAW,MAAM,UAAU,KAAK,GAAG,IAAI;AAAA,EACzC;AAEA,QAAM,WAAW,gBAAgB,YAAY,MAAM,OAAO;AAE1D,SACE,qBAAC,YAAO,WAAU,yCAChB;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS;AAAA,QACT,cAAY,EAAE,sBAAsB;AAAA,QACpC,WAAU;AAAA,QAEV;AAAA,8BAAC,SAAI,WAAU,sGACb;AAAA,YAAC;AAAA;AAAA,cACC,KAAK,aAAa;AAAA,cAClB,KAAI;AAAA,cACJ,MAAI;AAAA,cACJ,aAAW;AAAA,cACX,WAAW,YAAY,iBAAiB;AAAA;AAAA,UAC1C,GACF;AAAA,UACC,gBAAgB;AAAA;AAAA;AAAA,IACnB;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAU;AAAA,QAET;AAAA;AAAA,UACA,SACC,oBAAC,UAAK,WAAU,8CAA8C,YAAE,eAAU,GAAE,IAE5E,oBAAC,YAAS,WAAU,uBAAsB;AAAA;AAAA;AAAA,IAE9C;AAAA,IACC,gBAAgB,oBAAC,UAAK,WAAU,iCAAiC,wBAAa;AAAA,KACjF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/media-wallet/media-wallet-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport Link from \"../link.js\";\nimport Image from \"../image.js\";\nimport { short } from \"../../utils/media-wallet/wallet-format.js\";\nimport { CopyIcon } from \"./copy-icon.js\";\nimport { useMediaWalletApp, type MediaWalletHeaderIdentity } from \"./types.js\";\nimport { useT } from \"../../i18n/provider.js\";\n\nconst noIdentity = (): MediaWalletHeaderIdentity => ({});\n\nexport function MediaWalletHeader({ address, onNavigate }: { address: string; onNavigate: () => void }) {\n const t = useT();\n const { useHeaderIdentity = noIdentity, useAccountEmail } = useMediaWalletApp();\n const headerIdentity = useHeaderIdentity(address);\n const accountEmail = useAccountEmail();\n const [copied, setCopied] = useState(false);\n const avatarUrl = headerIdentity?.avatarUrl ?? null;\n\n const copy = () => {\n navigator.clipboard?.writeText(address).catch(() => {});\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n };\n\n const headline = headerIdentity?.headline ?? short(address);\n\n return (\n <header className=\"flex flex-col items-center gap-2 pt-6\">\n <Link\n href=\"/settings\"\n onClick={onNavigate}\n aria-label={t(\"Profile and settings\")}\n className=\"relative h-20 w-20 shrink-0 transition-transform active:scale-95\"\n >\n <div className=\"relative h-full w-full overflow-hidden rounded-full bg-foreground/[0.06] ring-2 ring-foreground/10\">\n <Image\n src={avatarUrl ?? \"/icon.png\"}\n alt=\"\"\n fill\n unoptimized\n className={avatarUrl ? \"object-cover\" : \"object-cover p-[16%]\"}\n />\n </div>\n {headerIdentity?.badge}\n </Link>\n <button\n onClick={copy}\n className=\"flex items-center gap-1.5 font-[family-name:var(--font-display)] text-lg font-bold tracking-tight\"\n >\n {headline}\n {copied ? (\n <span className=\"text-2xs font-normal text-muted-foreground\">{t(\"Copied ✓\")}</span>\n ) : (\n <CopyIcon className=\"shrink-0 opacity-50\" />\n )}\n </button>\n {accountEmail && <span className=\"text-xs text-muted-foreground\">{accountEmail}</span>}\n </header>\n );\n}\n"],"mappings":";AA8BM,SAOI,KAPJ;AA5BN,SAAS,gBAAgB;AACzB,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,yBAAyD;AAClE,SAAS,YAAY;AAErB,MAAM,aAAa,OAAkC,CAAC;AAE/C,SAAS,kBAAkB,EAAE,SAAS,WAAW,GAAgD;AACtG,QAAM,IAAI,KAAK;AACf,QAAM,EAAE,oBAAoB,YAAY,gBAAgB,IAAI,kBAAkB;AAC9E,QAAM,iBAAiB,kBAAkB,OAAO;AAChD,QAAM,eAAe,gBAAgB;AACrC,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAC1C,QAAM,YAAY,gBAAgB,aAAa;AAE/C,QAAM,OAAO,MAAM;AACjB,cAAU,WAAW,UAAU,OAAO,EAAE,MAAM,MAAM;AAAA,IAAC,CAAC;AACtD,cAAU,IAAI;AACd,eAAW,MAAM,UAAU,KAAK,GAAG,IAAI;AAAA,EACzC;AAEA,QAAM,WAAW,gBAAgB,YAAY,MAAM,OAAO;AAE1D,SACE,qBAAC,YAAO,WAAU,yCAChB;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS;AAAA,QACT,cAAY,EAAE,sBAAsB;AAAA,QACpC,WAAU;AAAA,QAEV;AAAA,8BAAC,SAAI,WAAU,sGACb;AAAA,YAAC;AAAA;AAAA,cACC,KAAK,aAAa;AAAA,cAClB,KAAI;AAAA,cACJ,MAAI;AAAA,cACJ,aAAW;AAAA,cACX,WAAW,YAAY,iBAAiB;AAAA;AAAA,UAC1C,GACF;AAAA,UACC,gBAAgB;AAAA;AAAA;AAAA,IACnB;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAU;AAAA,QAET;AAAA;AAAA,UACA,SACC,oBAAC,UAAK,WAAU,8CAA8C,YAAE,eAAU,GAAE,IAE5E,oBAAC,YAAS,WAAU,uBAAsB;AAAA;AAAA;AAAA,IAE9C;AAAA,IACC,gBAAgB,oBAAC,UAAK,WAAU,iCAAiC,wBAAa;AAAA,KACjF;AAEJ;","names":[]}
@@ -204,7 +204,7 @@ function PopManagePage({ contract }) {
204
204
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Award, { className: "h-3 w-3" }),
205
205
  t("Organizer")
206
206
  ] }),
207
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-2xl font-bold mt-1", children: t("Manage Event") }),
207
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-2xl font-bold mt-1", children: t("Manage event") }),
208
208
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: collection.name ?? contract })
209
209
  ] }) }),
210
210
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { delay: 0.08, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "bento-cell p-4 flex items-center gap-3", children: [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/pop-manage-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { buildPopAllowlist, popClaimLinks, popClaimLinksCsv, type PopClaimLink } from \"@medialane/sdk/starknet\";\nimport { ArrowLeft, Award, AlertCircle, CheckCircle2, Download, Loader2, Send, Users } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport Link from \"./link.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { Textarea } from \"./textarea.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { WalletRequired } from \"./wallet-required.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useCollection } from \"../utils/use-collections.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nfunction parseAddresses(raw: string): string[] {\n return raw\n .split(/[\\n,\\s]+/)\n .map((a) => a.trim())\n .filter((a) => /^0x[0-9a-fA-F]+$/.test(a));\n}\n\nfunction downloadCsv(links: PopClaimLink[]) {\n const href = URL.createObjectURL(new Blob([popClaimLinksCsv(links)], { type: \"text/csv\" }));\n const anchor = Object.assign(document.createElement(\"a\"), { href, download: \"claim-links.csv\" });\n anchor.click();\n URL.revokeObjectURL(href);\n}\n\nfunction IssueSection({\n onIssue,\n isSubmitting,\n}: {\n onIssue: (address: string) => void;\n isSubmitting: boolean;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const address = raw.trim();\n const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Award className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Issue directly\")}</span>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Send the certificate straight to one wallet — for a late participant, without republishing the list or changing anyone's claim link.\")}\n </p>\n <input\n type=\"text\"\n placeholder=\"0x...\"\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm tabular-nums placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring\"\n />\n <Button\n size=\"sm\"\n variant=\"outline\"\n className=\"w-full\"\n disabled={!valid || isSubmitting}\n onClick={() => {\n onIssue(address);\n setRaw(\"\");\n }}\n >\n <Send className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Issue certificate\")}\n </Button>\n </div>\n );\n}\n\nfunction AllowlistSection({\n onPublish,\n isSubmitting,\n links,\n}: {\n onPublish: (addresses: string[]) => void;\n isSubmitting: boolean;\n links: PopClaimLink[] | null;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const parsed = parseAddresses(raw);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Participants\")}</span>\n {parsed.length > 0 && (\n <span className=\"ml-auto text-xs text-muted-foreground\">\n {t.plural(\"{count} address\", \"{count} addresses\", parsed.length)}\n </span>\n )}\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it — send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs.\")}\n </p>\n <Textarea\n placeholder={t(\"Paste Starknet addresses, one per line:\\n0x04a...\\n0x06b...\")}\n rows={8}\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"tabular-nums text-xs resize-none\"\n />\n <Button\n size=\"sm\"\n className=\"w-full bg-green-600 hover:bg-green-700 text-white\"\n disabled={parsed.length === 0 || isSubmitting}\n onClick={() => onPublish(parsed)}\n >\n {isSubmitting ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 animate-spin mr-1.5\" />\n {t(\"Publishing…\")}\n </>\n ) : (\n <>\n <CheckCircle2 className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Publish\")} {parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? \"s\" : \"\"}` : t(\"participants\")}\n </>\n )}\n </Button>\n {links && (\n <div className=\"space-y-2 pt-2\">\n <Button variant=\"outline\" size=\"sm\" className=\"w-full\" onClick={() => downloadCsv(links)}>\n <Download className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Download claim links (CSV)\")}\n </Button>\n <ul className=\"max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground\">\n {links.map((link) => (\n <li key={link.address} className=\"truncate\">{link.address}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nexport function PopManagePage({ contract }: { contract: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const { collection, isLoading } = useCollection(contract);\n const tx = useTransaction();\n const [done, setDone] = useState({ title: \"\", description: \"\" });\n const [links, setLinks] = useState<PopClaimLink[] | null>(null);\n const isSubmitting = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n const isOwner =\n walletAddress &&\n collection?.owner &&\n normalizeAddress(\"STARKNET\", walletAddress) === normalizeAddress(\"STARKNET\", collection.owner);\n\n const issue = (recipient: string) => {\n setDone(successMessages.certificateIssued(t));\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"issue\", recipient }));\n });\n };\n\n const publish = (addresses: string[]) => {\n const list = buildPopAllowlist(addresses);\n const count = Object.keys(list.proofs).length;\n setDone(successMessages.participantsPublished({ count }, t));\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"set_allowlist_root\", root: list.root }));\n })\n .then((ok) => {\n if (ok) setLinks(popClaimLinks(window.location.origin, contract, list));\n });\n };\n\n return (\n <WalletRequired icon={Award} title={t(\"Connect your wallet\")} description={t(\"Connect to manage your event.\")}>\n {isLoading ? (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4\">\n <Skeleton className=\"h-6 w-24\" />\n <Skeleton className=\"h-32 w-full rounded-2xl\" />\n <Skeleton className=\"h-64 w-full rounded-2xl\" />\n </div>\n ) : !collection ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <AlertCircle className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"Collection not found.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back\")}</Link>\n </Button>\n </div>\n ) : !isOwner ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Award className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"You are not the organizer of this event.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back to events\")}</Link>\n </Button>\n </div>\n ) : (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6\">\n <TransactionDialog tx={tx} title={t(\"Manage event\")} workingLabel=\"Updating your event…\" firstStepLabel=\"Prepare\">\n <TransactionSuccess name={collection.name ?? \"Event\"} title={done.title} description={done.description} txHash={tx.txHash} actions={[{ label: t(\"Done\"), onClick: tx.reset }]} />\n </TransactionDialog>\n\n <FadeIn>\n <Button asChild variant=\"ghost\" size=\"sm\" className=\"-ml-2\">\n <Link href=\"/launchpad/pop\">\n <ArrowLeft className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"All events\")}\n </Link>\n </Button>\n </FadeIn>\n\n <FadeIn delay={0.04}>\n <div>\n <span className=\"pill-badge inline-flex gap-1.5 mb-2\">\n <Award className=\"h-3 w-3\" />\n {t(\"Organizer\")}\n </span>\n <h1 className=\"text-2xl font-bold mt-1\">{t(\"Manage Event\")}</h1>\n <p className=\"text-sm text-muted-foreground\">{collection.name ?? contract}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <div className=\"bento-cell p-4 flex items-center gap-3\">\n <Award className=\"h-4 w-4 text-green-500 shrink-0\" />\n <p className=\"text-xs text-muted-foreground\">{t.rich(\"Only participants on your {strong} can claim, with the link you send them.\", { strong: <strong className=\"text-foreground\">{t(\"published list\")}</strong> })}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <AllowlistSection onPublish={publish} isSubmitting={isSubmitting} links={links} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <IssueSection onIssue={issue} isSubmitting={isSubmitting} />\n </FadeIn>\n </div>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDM;AA/CN,mBAAyB;AACzB,iBAAiC;AACjC,sBAAsF;AACtF,0BAA4F;AAC5F,oBAAuB;AACvB,kBAAiB;AACjB,2BAAgC;AAChC,+BAAuB;AACvB,sBAAyB;AACzB,sBAAyB;AACzB,g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AAC,mCAAO,OAAO,MACb,sDAAC,gBAAa,SAAS,OAAO,cAA4B,GAC5D;AAAA,KACF,GAEJ;AAEJ;","names":["Link"]}
1
+ {"version":3,"sources":["../../src/components/pop-manage-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { buildPopAllowlist, popClaimLinks, popClaimLinksCsv, type PopClaimLink } from \"@medialane/sdk/starknet\";\nimport { ArrowLeft, Award, AlertCircle, CheckCircle2, Download, Loader2, Send, Users } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport Link from \"./link.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { Textarea } from \"./textarea.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { WalletRequired } from \"./wallet-required.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useCollection } from \"../utils/use-collections.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nfunction parseAddresses(raw: string): string[] {\n return raw\n .split(/[\\n,\\s]+/)\n .map((a) => a.trim())\n .filter((a) => /^0x[0-9a-fA-F]+$/.test(a));\n}\n\nfunction downloadCsv(links: PopClaimLink[]) {\n const href = URL.createObjectURL(new Blob([popClaimLinksCsv(links)], { type: \"text/csv\" }));\n const anchor = Object.assign(document.createElement(\"a\"), { href, download: \"claim-links.csv\" });\n anchor.click();\n URL.revokeObjectURL(href);\n}\n\nfunction IssueSection({\n onIssue,\n isSubmitting,\n}: {\n onIssue: (address: string) => void;\n isSubmitting: boolean;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const address = raw.trim();\n const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Award className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Issue directly\")}</span>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Send the certificate straight to one wallet — for a late participant, without republishing the list or changing anyone's claim link.\")}\n </p>\n <input\n type=\"text\"\n placeholder=\"0x...\"\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm tabular-nums placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring\"\n />\n <Button\n size=\"sm\"\n variant=\"outline\"\n className=\"w-full\"\n disabled={!valid || isSubmitting}\n onClick={() => {\n onIssue(address);\n setRaw(\"\");\n }}\n >\n <Send className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Issue certificate\")}\n </Button>\n </div>\n );\n}\n\nfunction AllowlistSection({\n onPublish,\n isSubmitting,\n links,\n}: {\n onPublish: (addresses: string[]) => void;\n isSubmitting: boolean;\n links: PopClaimLink[] | null;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const parsed = parseAddresses(raw);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Participants\")}</span>\n {parsed.length > 0 && (\n <span className=\"ml-auto text-xs text-muted-foreground\">\n {t.plural(\"{count} address\", \"{count} addresses\", parsed.length)}\n </span>\n )}\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it — send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs.\")}\n </p>\n <Textarea\n placeholder={t(\"Paste Starknet addresses, one per line:\\n0x04a...\\n0x06b...\")}\n rows={8}\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"tabular-nums text-xs resize-none\"\n />\n <Button\n size=\"sm\"\n className=\"w-full bg-green-600 hover:bg-green-700 text-white\"\n disabled={parsed.length === 0 || isSubmitting}\n onClick={() => onPublish(parsed)}\n >\n {isSubmitting ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 animate-spin mr-1.5\" />\n {t(\"Publishing…\")}\n </>\n ) : (\n <>\n <CheckCircle2 className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Publish\")} {parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? \"s\" : \"\"}` : t(\"participants\")}\n </>\n )}\n </Button>\n {links && (\n <div className=\"space-y-2 pt-2\">\n <Button variant=\"outline\" size=\"sm\" className=\"w-full\" onClick={() => downloadCsv(links)}>\n <Download className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Download claim links (CSV)\")}\n </Button>\n <ul className=\"max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground\">\n {links.map((link) => (\n <li key={link.address} className=\"truncate\">{link.address}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nexport function PopManagePage({ contract }: { contract: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const { collection, isLoading } = useCollection(contract);\n const tx = useTransaction();\n const [done, setDone] = useState({ title: \"\", description: \"\" });\n const [links, setLinks] = useState<PopClaimLink[] | null>(null);\n const isSubmitting = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n const isOwner =\n walletAddress &&\n collection?.owner &&\n normalizeAddress(\"STARKNET\", walletAddress) === normalizeAddress(\"STARKNET\", collection.owner);\n\n const issue = (recipient: string) => {\n setDone(successMessages.certificateIssued(t));\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"issue\", recipient }));\n });\n };\n\n const publish = (addresses: string[]) => {\n const list = buildPopAllowlist(addresses);\n const count = Object.keys(list.proofs).length;\n setDone(successMessages.participantsPublished({ count }, t));\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"set_allowlist_root\", root: list.root }));\n })\n .then((ok) => {\n if (ok) setLinks(popClaimLinks(window.location.origin, contract, list));\n });\n };\n\n return (\n <WalletRequired icon={Award} title={t(\"Connect your wallet\")} description={t(\"Connect to manage your event.\")}>\n {isLoading ? (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4\">\n <Skeleton className=\"h-6 w-24\" />\n <Skeleton className=\"h-32 w-full rounded-2xl\" />\n <Skeleton className=\"h-64 w-full rounded-2xl\" />\n </div>\n ) : !collection ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <AlertCircle className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"Collection not found.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back\")}</Link>\n </Button>\n </div>\n ) : !isOwner ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Award className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"You are not the organizer of this event.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back to events\")}</Link>\n </Button>\n </div>\n ) : (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6\">\n <TransactionDialog tx={tx} title={t(\"Manage event\")} workingLabel=\"Updating your event…\" firstStepLabel=\"Prepare\">\n <TransactionSuccess name={collection.name ?? \"Event\"} title={done.title} description={done.description} txHash={tx.txHash} actions={[{ label: t(\"Done\"), onClick: tx.reset }]} />\n </TransactionDialog>\n\n <FadeIn>\n <Button asChild variant=\"ghost\" size=\"sm\" className=\"-ml-2\">\n <Link href=\"/launchpad/pop\">\n <ArrowLeft className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"All events\")}\n </Link>\n </Button>\n </FadeIn>\n\n <FadeIn delay={0.04}>\n <div>\n <span className=\"pill-badge inline-flex gap-1.5 mb-2\">\n <Award className=\"h-3 w-3\" />\n {t(\"Organizer\")}\n </span>\n <h1 className=\"text-2xl font-bold mt-1\">{t(\"Manage event\")}</h1>\n <p className=\"text-sm text-muted-foreground\">{collection.name ?? contract}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <div className=\"bento-cell p-4 flex items-center gap-3\">\n <Award className=\"h-4 w-4 text-green-500 shrink-0\" />\n <p className=\"text-xs text-muted-foreground\">{t.rich(\"Only participants on your {strong} can claim, with the link you send them.\", { strong: <strong className=\"text-foreground\">{t(\"published list\")}</strong> })}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <AllowlistSection onPublish={publish} isSubmitting={isSubmitting} links={links} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <IssueSection onIssue={issue} isSubmitting={isSubmitting} />\n </FadeIn>\n </div>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDM;AA/CN,mBAAyB;AACzB,iBAAiC;AACjC,sBAAsF;AACtF,0BAA4F;AAC5F,oBAAuB;AACvB,kBAAiB;AACjB,2BAAgC;AAChC,+BAAuB;AACvB,sBAAyB;AACzB,sBAAyB;AACzB,gCAAkC;AAClC,iCAAmC;AACnC,6BAA+B;AAC/B,8BAA+B;AAC/B,8BAAgC;AAChC,6BAA8B;AAC9B,6BAA+B;AAC/B,sBAAqB;AAErB,SAAS,eAAe,KAAuB;AAC7C,SAAO,IACJ,MAAM,UAAU,EAChB,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EACnB,OAAO,CAAC,MAAM,mBAAmB,KAAK,CAAC,CAAC;AAC7C;AAEA,SAAS,YAAY,OAAuB;AAC1C,QAAM,OAAO,IAAI,gBAAgB,I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EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,GAAG,GACjL;AAAA,IAEA,4CAAC,mCACC,sDAAC,wBAAO,SAAO,MAAC,SAAQ,SAAQ,MAAK,MAAK,WAAU,SAClD,uDAAC,YAAAA,SAAA,EAAK,MAAK,kBACT;AAAA,kDAAC,iCAAU,WAAU,sBAAqB;AAAA,MACzC,EAAE,YAAY;AAAA,OACjB,GACF,GACF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,uDAAC,SACC;AAAA,mDAAC,UAAK,WAAU,uCACd;AAAA,oDAAC,6BAAM,WAAU,WAAU;AAAA,QAC1B,EAAE,WAAW;AAAA,SAChB;AAAA,MACA,4CAAC,QAAG,WAAU,2BAA2B,YAAE,cAAc,GAAE;AAAA,MAC3D,4CAAC,OAAE,WAAU,iCAAiC,qBAAW,QAAQ,UAAS;AAAA,OAC5E,GACF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,uDAAC,SAAI,WAAU,0CACb;AAAA,kDAAC,6BAAM,WAAU,mCAAkC;AAAA,MACnD,4CAAC,OAAE,WAAU,iCAAiC,YAAE,KAAK,8EAA8E,EAAE,QAAQ,4CAAC,YAAO,WAAU,mBAAmB,YAAE,gBAAgB,GAAE,EAAU,CAAC,GAAE;AAAA,OACrN,GACF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,sDAAC,oBAAiB,WAAW,SAAS,cAA4B,OAAc,GAClF;AAAA,IAEA,4CAAC,mCAAO,OAAO,MACb,sDAAC,gBAAa,SAAS,OAAO,cAA4B,GAC5D;AAAA,KACF,GAEJ;AAEJ;","names":["Link"]}
@@ -171,7 +171,7 @@ function PopManagePage({ contract }) {
171
171
  /* @__PURE__ */ jsx(Award, { className: "h-3 w-3" }),
172
172
  t("Organizer")
173
173
  ] }),
174
- /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mt-1", children: t("Manage Event") }),
174
+ /* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold mt-1", children: t("Manage event") }),
175
175
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: collection.name ?? contract })
176
176
  ] }) }),
177
177
  /* @__PURE__ */ jsx(FadeIn, { delay: 0.08, children: /* @__PURE__ */ jsxs("div", { className: "bento-cell p-4 flex items-center gap-3", children: [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/pop-manage-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { buildPopAllowlist, popClaimLinks, popClaimLinksCsv, type PopClaimLink } from \"@medialane/sdk/starknet\";\nimport { ArrowLeft, Award, AlertCircle, CheckCircle2, Download, Loader2, Send, Users } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport Link from \"./link.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { Textarea } from \"./textarea.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { WalletRequired } from \"./wallet-required.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useCollection } from \"../utils/use-collections.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nfunction parseAddresses(raw: string): string[] {\n return raw\n .split(/[\\n,\\s]+/)\n .map((a) => a.trim())\n .filter((a) => /^0x[0-9a-fA-F]+$/.test(a));\n}\n\nfunction downloadCsv(links: PopClaimLink[]) {\n const href = URL.createObjectURL(new Blob([popClaimLinksCsv(links)], { type: \"text/csv\" }));\n const anchor = Object.assign(document.createElement(\"a\"), { href, download: \"claim-links.csv\" });\n anchor.click();\n URL.revokeObjectURL(href);\n}\n\nfunction IssueSection({\n onIssue,\n isSubmitting,\n}: {\n onIssue: (address: string) => void;\n isSubmitting: boolean;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const address = raw.trim();\n const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Award className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Issue directly\")}</span>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Send the certificate straight to one wallet — for a late participant, without republishing the list or changing anyone's claim link.\")}\n </p>\n <input\n type=\"text\"\n placeholder=\"0x...\"\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm tabular-nums placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring\"\n />\n <Button\n size=\"sm\"\n variant=\"outline\"\n className=\"w-full\"\n disabled={!valid || isSubmitting}\n onClick={() => {\n onIssue(address);\n setRaw(\"\");\n }}\n >\n <Send className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Issue certificate\")}\n </Button>\n </div>\n );\n}\n\nfunction AllowlistSection({\n onPublish,\n isSubmitting,\n links,\n}: {\n onPublish: (addresses: string[]) => void;\n isSubmitting: boolean;\n links: PopClaimLink[] | null;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const parsed = parseAddresses(raw);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Participants\")}</span>\n {parsed.length > 0 && (\n <span className=\"ml-auto text-xs text-muted-foreground\">\n {t.plural(\"{count} address\", \"{count} addresses\", parsed.length)}\n </span>\n )}\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it — send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs.\")}\n </p>\n <Textarea\n placeholder={t(\"Paste Starknet addresses, one per line:\\n0x04a...\\n0x06b...\")}\n rows={8}\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"tabular-nums text-xs resize-none\"\n />\n <Button\n size=\"sm\"\n className=\"w-full bg-green-600 hover:bg-green-700 text-white\"\n disabled={parsed.length === 0 || isSubmitting}\n onClick={() => onPublish(parsed)}\n >\n {isSubmitting ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 animate-spin mr-1.5\" />\n {t(\"Publishing…\")}\n </>\n ) : (\n <>\n <CheckCircle2 className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Publish\")} {parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? \"s\" : \"\"}` : t(\"participants\")}\n </>\n )}\n </Button>\n {links && (\n <div className=\"space-y-2 pt-2\">\n <Button variant=\"outline\" size=\"sm\" className=\"w-full\" onClick={() => downloadCsv(links)}>\n <Download className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Download claim links (CSV)\")}\n </Button>\n <ul className=\"max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground\">\n {links.map((link) => (\n <li key={link.address} className=\"truncate\">{link.address}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nexport function PopManagePage({ contract }: { contract: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const { collection, isLoading } = useCollection(contract);\n const tx = useTransaction();\n const [done, setDone] = useState({ title: \"\", description: \"\" });\n const [links, setLinks] = useState<PopClaimLink[] | null>(null);\n const isSubmitting = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n const isOwner =\n walletAddress &&\n collection?.owner &&\n normalizeAddress(\"STARKNET\", walletAddress) === normalizeAddress(\"STARKNET\", collection.owner);\n\n const issue = (recipient: string) => {\n setDone(successMessages.certificateIssued(t));\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"issue\", recipient }));\n });\n };\n\n const publish = (addresses: string[]) => {\n const list = buildPopAllowlist(addresses);\n const count = Object.keys(list.proofs).length;\n setDone(successMessages.participantsPublished({ count }, t));\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"set_allowlist_root\", root: list.root }));\n })\n .then((ok) => {\n if (ok) setLinks(popClaimLinks(window.location.origin, contract, list));\n });\n };\n\n return (\n <WalletRequired icon={Award} title={t(\"Connect your wallet\")} description={t(\"Connect to manage your event.\")}>\n {isLoading ? (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4\">\n <Skeleton className=\"h-6 w-24\" />\n <Skeleton className=\"h-32 w-full rounded-2xl\" />\n <Skeleton className=\"h-64 w-full rounded-2xl\" />\n </div>\n ) : !collection ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <AlertCircle className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"Collection not found.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back\")}</Link>\n </Button>\n </div>\n ) : !isOwner ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Award className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"You are not the organizer of this event.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back to events\")}</Link>\n </Button>\n </div>\n ) : (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6\">\n <TransactionDialog tx={tx} title={t(\"Manage event\")} workingLabel=\"Updating your event…\" firstStepLabel=\"Prepare\">\n <TransactionSuccess name={collection.name ?? \"Event\"} title={done.title} description={done.description} txHash={tx.txHash} actions={[{ label: t(\"Done\"), onClick: tx.reset }]} />\n </TransactionDialog>\n\n <FadeIn>\n <Button asChild variant=\"ghost\" size=\"sm\" className=\"-ml-2\">\n <Link href=\"/launchpad/pop\">\n <ArrowLeft className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"All events\")}\n </Link>\n </Button>\n </FadeIn>\n\n <FadeIn delay={0.04}>\n <div>\n <span className=\"pill-badge inline-flex gap-1.5 mb-2\">\n <Award className=\"h-3 w-3\" />\n {t(\"Organizer\")}\n </span>\n <h1 className=\"text-2xl font-bold mt-1\">{t(\"Manage Event\")}</h1>\n <p className=\"text-sm text-muted-foreground\">{collection.name ?? contract}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <div className=\"bento-cell p-4 flex items-center gap-3\">\n <Award className=\"h-4 w-4 text-green-500 shrink-0\" />\n <p className=\"text-xs text-muted-foreground\">{t.rich(\"Only participants on your {strong} can claim, with the link you send them.\", { strong: <strong className=\"text-foreground\">{t(\"published list\")}</strong> })}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <AllowlistSection onPublish={publish} isSubmitting={isSubmitting} links={links} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <IssueSection onIssue={issue} isSubmitting={isSubmitting} />\n </FadeIn>\n </div>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";AAiDM,SAwEI,UAvEF,KADF;AA/CN,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB,eAAe,wBAA2C;AACtF,SAAS,WAAW,OAAO,aAAa,cAAc,UAAU,SAAS,MAAM,aAAa;AAC5F,SAAS,cAAc;AACvB,OAAO,UAAU;AACjB,SAAS,uBAAuB;AAChC,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,YAAY;AAErB,SAAS,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,6BAAuB,gBAAe,WACtG,8BAAC,sBAAmB,MAAM,WAAW,QAAQ,SAAS,OAAO,KAAK,OAAO,aAAa,KAAK,aAAa,QAAQ,GAAG,QAAQ,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,GAAG,GACjL;AAAA,IAEA,oBAAC,UACC,8BAAC,UAAO,SAAO,MAAC,SAAQ,SAAQ,MAAK,MAAK,WAAU,SAClD,+BAAC,QAAK,MAAK,kBACT;AAAA,0BAAC,aAAU,WAAU,sBAAqB;AAAA,MACzC,EAAE,YAAY;AAAA,OACjB,GACF,GACF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,+BAAC,SACC;AAAA,2BAAC,UAAK,WAAU,uCACd;AAAA,4BAAC,SAAM,WAAU,WAAU;AAAA,QAC1B,EAAE,WAAW;AAAA,SAChB;AAAA,MACA,oBAAC,QAAG,WAAU,2BAA2B,YAAE,cAAc,GAAE;AAAA,MAC3D,oBAAC,OAAE,WAAU,iCAAiC,qBAAW,QAAQ,UAAS;AAAA,OAC5E,GACF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,+BAAC,SAAI,WAAU,0CACb;AAAA,0BAAC,SAAM,WAAU,mCAAkC;AAAA,MACnD,oBAAC,OAAE,WAAU,iCAAiC,YAAE,KAAK,8EAA8E,EAAE,QAAQ,oBAAC,YAAO,WAAU,mBAAmB,YAAE,gBAAgB,GAAE,EAAU,CAAC,GAAE;AAAA,OACrN,GACF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,8BAAC,oBAAiB,WAAW,SAAS,cAA4B,OAAc,GAClF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,8BAAC,gBAAa,SAAS,OAAO,cAA4B,GAC5D;AAAA,KACF,GAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/pop-manage-page.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { normalizeAddress } from \"@medialane/sdk\";\nimport { buildPopAllowlist, popClaimLinks, popClaimLinksCsv, type PopClaimLink } from \"@medialane/sdk/starknet\";\nimport { ArrowLeft, Award, AlertCircle, CheckCircle2, Download, Loader2, Send, Users } from \"lucide-react\";\nimport { Button } from \"./button.js\";\nimport Link from \"./link.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { FadeIn } from \"./motion-primitives.js\";\nimport { Skeleton } from \"./skeleton.js\";\nimport { Textarea } from \"./textarea.js\";\nimport { TransactionDialog } from \"./transaction-dialog.js\";\nimport { TransactionSuccess } from \"./transaction-success.js\";\nimport { WalletRequired } from \"./wallet-required.js\";\nimport { runIntentCalls } from \"../utils/run-intent-calls.js\";\nimport { successMessages } from \"../utils/success-messages.js\";\nimport { useCollection } from \"../utils/use-collections.js\";\nimport { useTransaction } from \"../utils/use-transaction.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nfunction parseAddresses(raw: string): string[] {\n return raw\n .split(/[\\n,\\s]+/)\n .map((a) => a.trim())\n .filter((a) => /^0x[0-9a-fA-F]+$/.test(a));\n}\n\nfunction downloadCsv(links: PopClaimLink[]) {\n const href = URL.createObjectURL(new Blob([popClaimLinksCsv(links)], { type: \"text/csv\" }));\n const anchor = Object.assign(document.createElement(\"a\"), { href, download: \"claim-links.csv\" });\n anchor.click();\n URL.revokeObjectURL(href);\n}\n\nfunction IssueSection({\n onIssue,\n isSubmitting,\n}: {\n onIssue: (address: string) => void;\n isSubmitting: boolean;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const address = raw.trim();\n const valid = /^0x[0-9a-fA-F]{1,64}$/.test(address);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Award className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Issue directly\")}</span>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Send the certificate straight to one wallet — for a late participant, without republishing the list or changing anyone's claim link.\")}\n </p>\n <input\n type=\"text\"\n placeholder=\"0x...\"\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm tabular-nums placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring\"\n />\n <Button\n size=\"sm\"\n variant=\"outline\"\n className=\"w-full\"\n disabled={!valid || isSubmitting}\n onClick={() => {\n onIssue(address);\n setRaw(\"\");\n }}\n >\n <Send className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Issue certificate\")}\n </Button>\n </div>\n );\n}\n\nfunction AllowlistSection({\n onPublish,\n isSubmitting,\n links,\n}: {\n onPublish: (addresses: string[]) => void;\n isSubmitting: boolean;\n links: PopClaimLink[] | null;\n}) {\n const t = useT();\n const [raw, setRaw] = useState(\"\");\n const parsed = parseAddresses(raw);\n\n return (\n <div className=\"bento-cell p-5 space-y-3\">\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-green-500\" />\n <span className=\"font-semibold text-sm\">{t(\"Participants\")}</span>\n {parsed.length > 0 && (\n <span className=\"ml-auto text-xs text-muted-foreground\">\n {t.plural(\"{count} address\", \"{count} addresses\", parsed.length)}\n </span>\n )}\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"Paste every participant's wallet address. Publishing replaces the previous list and every link sent before it — send the new links to everyone who hasn't claimed yet. The list stays in this browser: download the claim links and send each participant theirs.\")}\n </p>\n <Textarea\n placeholder={t(\"Paste Starknet addresses, one per line:\\n0x04a...\\n0x06b...\")}\n rows={8}\n value={raw}\n onChange={(e) => setRaw(e.target.value)}\n className=\"tabular-nums text-xs resize-none\"\n />\n <Button\n size=\"sm\"\n className=\"w-full bg-green-600 hover:bg-green-700 text-white\"\n disabled={parsed.length === 0 || isSubmitting}\n onClick={() => onPublish(parsed)}\n >\n {isSubmitting ? (\n <>\n <Loader2 className=\"h-3.5 w-3.5 animate-spin mr-1.5\" />\n {t(\"Publishing…\")}\n </>\n ) : (\n <>\n <CheckCircle2 className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Publish\")} {parsed.length > 0 ? `${parsed.length} participant${parsed.length !== 1 ? \"s\" : \"\"}` : t(\"participants\")}\n </>\n )}\n </Button>\n {links && (\n <div className=\"space-y-2 pt-2\">\n <Button variant=\"outline\" size=\"sm\" className=\"w-full\" onClick={() => downloadCsv(links)}>\n <Download className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"Download claim links (CSV)\")}\n </Button>\n <ul className=\"max-h-48 overflow-auto text-xs tabular-nums space-y-1 text-muted-foreground\">\n {links.map((link) => (\n <li key={link.address} className=\"truncate\">{link.address}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nexport function PopManagePage({ contract }: { contract: string }) {\n const t = useT();\n const app = useMedialaneApp();\n const walletAddress = app.walletAddress;\n const { collection, isLoading } = useCollection(contract);\n const tx = useTransaction();\n const [done, setDone] = useState({ title: \"\", description: \"\" });\n const [links, setLinks] = useState<PopClaimLink[] | null>(null);\n const isSubmitting = tx.phase === \"preparing\" || tx.phase === \"submitting\" || tx.phase === \"confirming\";\n\n const isOwner =\n walletAddress &&\n collection?.owner &&\n normalizeAddress(\"STARKNET\", walletAddress) === normalizeAddress(\"STARKNET\", collection.owner);\n\n const issue = (recipient: string) => {\n setDone(successMessages.certificateIssued(t));\n void tx.run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"issue\", recipient }));\n });\n };\n\n const publish = (addresses: string[]) => {\n const list = buildPopAllowlist(addresses);\n const count = Object.keys(list.proofs).length;\n setDone(successMessages.participantsPublished({ count }, t));\n void tx\n .run(async (signer) => {\n await runIntentCalls(signer, () => app.getClient().api.intents.create(\"pop-manage\", { owner: signer.address, collection: contract, action: \"set_allowlist_root\", root: list.root }));\n })\n .then((ok) => {\n if (ok) setLinks(popClaimLinks(window.location.origin, contract, list));\n });\n };\n\n return (\n <WalletRequired icon={Award} title={t(\"Connect your wallet\")} description={t(\"Connect to manage your event.\")}>\n {isLoading ? (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-4\">\n <Skeleton className=\"h-6 w-24\" />\n <Skeleton className=\"h-32 w-full rounded-2xl\" />\n <Skeleton className=\"h-64 w-full rounded-2xl\" />\n </div>\n ) : !collection ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <AlertCircle className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"Collection not found.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back\")}</Link>\n </Button>\n </div>\n ) : !isOwner ? (\n <div className=\"max-w-xl mx-auto px-4 pt-24 pb-8 text-center space-y-4\">\n <Award className=\"h-10 w-10 text-muted-foreground/20 mx-auto\" />\n <p className=\"text-muted-foreground\">{t(\"You are not the organizer of this event.\")}</p>\n <Button asChild variant=\"outline\" size=\"sm\">\n <Link href=\"/launchpad/pop\">{t(\"← Back to events\")}</Link>\n </Button>\n </div>\n ) : (\n <div className=\"max-w-xl mx-auto px-4 pt-10 pb-16 space-y-6\">\n <TransactionDialog tx={tx} title={t(\"Manage event\")} workingLabel=\"Updating your event…\" firstStepLabel=\"Prepare\">\n <TransactionSuccess name={collection.name ?? \"Event\"} title={done.title} description={done.description} txHash={tx.txHash} actions={[{ label: t(\"Done\"), onClick: tx.reset }]} />\n </TransactionDialog>\n\n <FadeIn>\n <Button asChild variant=\"ghost\" size=\"sm\" className=\"-ml-2\">\n <Link href=\"/launchpad/pop\">\n <ArrowLeft className=\"h-3.5 w-3.5 mr-1.5\" />\n {t(\"All events\")}\n </Link>\n </Button>\n </FadeIn>\n\n <FadeIn delay={0.04}>\n <div>\n <span className=\"pill-badge inline-flex gap-1.5 mb-2\">\n <Award className=\"h-3 w-3\" />\n {t(\"Organizer\")}\n </span>\n <h1 className=\"text-2xl font-bold mt-1\">{t(\"Manage event\")}</h1>\n <p className=\"text-sm text-muted-foreground\">{collection.name ?? contract}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.08}>\n <div className=\"bento-cell p-4 flex items-center gap-3\">\n <Award className=\"h-4 w-4 text-green-500 shrink-0\" />\n <p className=\"text-xs text-muted-foreground\">{t.rich(\"Only participants on your {strong} can claim, with the link you send them.\", { strong: <strong className=\"text-foreground\">{t(\"published list\")}</strong> })}</p>\n </div>\n </FadeIn>\n\n <FadeIn delay={0.12}>\n <AllowlistSection onPublish={publish} isSubmitting={isSubmitting} links={links} />\n </FadeIn>\n\n <FadeIn delay={0.16}>\n <IssueSection onIssue={issue} isSubmitting={isSubmitting} />\n </FadeIn>\n </div>\n )}\n </WalletRequired>\n );\n}\n"],"mappings":";AAiDM,SAwEI,UAvEF,KADF;AA/CN,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB,eAAe,wBAA2C;AACtF,SAAS,WAAW,OAAO,aAAa,cAAc,UAAU,SAAS,MAAM,aAAa;AAC5F,SAAS,cAAc;AACvB,OAAO,UAAU;AACjB,SAAS,uBAAuB;AAChC,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,YAAY;AAErB,SAAS,eAAe,KAAuB;AAC7C,SAAO,IACJ,MAAM,UAAU,EAChB,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EACnB,OAAO,CAAC,MAAM,mBAAmB,KAAK,CAAC,CAAC;AAC7C;AAEA,SAAS,YAAY,OAAuB;AAC1C,QAAM,OAAO,IAAI,gBAAgB,IAAI,KAAK,CAAC,iBAAiB,KAAK,CAAC,GAAG,EAAE,MAAM,WAAW,CAAC,CAAC;AAC1F,QAAM,SAAS,OAAO,OAAO,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T;AAAA,0BAAC,aAAU,WAAU,sBAAqB;AAAA,MACzC,EAAE,YAAY;AAAA,OACjB,GACF,GACF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,+BAAC,SACC;AAAA,2BAAC,UAAK,WAAU,uCACd;AAAA,4BAAC,SAAM,WAAU,WAAU;AAAA,QAC1B,EAAE,WAAW;AAAA,SAChB;AAAA,MACA,oBAAC,QAAG,WAAU,2BAA2B,YAAE,cAAc,GAAE;AAAA,MAC3D,oBAAC,OAAE,WAAU,iCAAiC,qBAAW,QAAQ,UAAS;AAAA,OAC5E,GACF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,+BAAC,SAAI,WAAU,0CACb;AAAA,0BAAC,SAAM,WAAU,mCAAkC;AAAA,MACnD,oBAAC,OAAE,WAAU,iCAAiC,YAAE,KAAK,8EAA8E,EAAE,QAAQ,oBAAC,YAAO,WAAU,mBAAmB,YAAE,gBAAgB,GAAE,EAAU,CAAC,GAAE;AAAA,OACrN,GACF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,8BAAC,oBAAiB,WAAW,SAAS,cAA4B,OAAc,GAClF;AAAA,IAEA,oBAAC,UAAO,OAAO,MACb,8BAAC,gBAAa,SAAS,OAAO,cAA4B,GAC5D;AAAA,KACF,GAEJ;AAEJ;","names":[]}
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "top" | "right" | "bottom" | "left" | null | undefined;
13
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "top" | "right" | "bottom" | "left" | null | undefined;
13
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -40,18 +40,13 @@ const NAV_ITEMS = {
40
40
  "mint-ip-asset": { id: "mint-ip-asset", label: (0, import_translate.msg)("Mint Unique NFT"), icon: import_lucide_react.Plus, href: "/launchpad/single-editions", keywords: ["mint", "upload", "publish", "token", "erc721", "singular", "unique", "original"] },
41
41
  "create-collection": { id: "create-collection", label: (0, import_translate.msg)("Create NFT Collection"), icon: import_lucide_react.LayoutGrid, href: "/launchpad/single-editions/collection", keywords: ["deploy", "series", "erc721", "collection", "branded"] },
42
42
  "mint-editions": { id: "mint-editions", label: (0, import_translate.msg)("Mint Limited Edition"), icon: import_lucide_react.Layers, href: "/launchpad/nfteditions", keywords: ["mint", "edition", "erc1155", "multi", "copies", "limited"] },
43
- "create-1155": { id: "create-1155", label: (0, import_translate.msg)("Create Limited Edition Contract"), icon: import_lucide_react.Layers, href: "/launchpad/nfteditions/create", keywords: ["deploy", "erc1155", "edition", "contract", "limited", "multi-edition"] },
44
- "collection-drop": { id: "collection-drop", label: (0, import_translate.msg)("Launch Collection Drop"), icon: import_lucide_react.Gift, href: "/launchpad/drop/create", keywords: ["drop", "timed", "fixed supply", "release", "erc721"] },
45
- "browse-drops": { id: "browse-drops", label: (0, import_translate.msg)("Browse Drops"), icon: import_lucide_react.Store, href: "/launchpad/drop", keywords: ["drop", "browse", "active"] },
46
- "pop-create": { id: "pop-create", label: (0, import_translate.msg)("Create POP Event"), icon: import_lucide_react.Ticket, href: "/launchpad/pop/create", keywords: ["pop", "proof of participation", "event", "community", "soulbound"] },
43
+ "create-1155": { id: "create-1155", label: (0, import_translate.msg)("Create Limited Edition Collection"), icon: import_lucide_react.Layers, href: "/launchpad/nfteditions/create", keywords: ["deploy", "erc1155", "edition", "contract", "limited", "multi-edition"] },
44
+ "pop-create": { id: "pop-create", label: (0, import_translate.msg)("Create POP event"), icon: import_lucide_react.Ticket, href: "/launchpad/pop/create", keywords: ["pop", "proof of participation", "event", "community", "soulbound"] },
47
45
  "pop-browse": { id: "pop-browse", label: (0, import_translate.msg)("Browse POP Events"), icon: import_lucide_react.Ticket, href: "/launchpad/pop", keywords: ["pop", "events", "proof of participation"] },
48
46
  "tickets-create": { id: "tickets-create", label: (0, import_translate.msg)("Create IP Tickets"), icon: import_lucide_react.Ticket, href: "/launchpad/tickets/create", keywords: ["tickets", "event", "verifiable", "attendee", "pass"] },
49
- "tickets-browse": { id: "tickets-browse", label: (0, import_translate.msg)("Browse IP Tickets"), icon: import_lucide_react.Ticket, href: "/launchpad/tickets", keywords: ["tickets", "browse", "events"] },
50
47
  "club-create": { id: "club-create", label: (0, import_translate.msg)("Create IP Club"), icon: import_lucide_react.Users, href: "/launchpad/club/create", keywords: ["club", "membership", "tiers", "community", "fans"] },
51
- "club-browse": { id: "club-browse", label: (0, import_translate.msg)("Browse IP Clubs"), icon: import_lucide_react.Users, href: "/launchpad/club", keywords: ["club", "membership", "browse"] },
52
48
  "sponsorship-create": { id: "sponsorship-create", label: (0, import_translate.msg)("Create IP Sponsorship"), icon: import_lucide_react.Handshake, href: "/launchpad/sponsorship/create", keywords: ["sponsorship", "sponsor", "license", "offer", "deal"] },
53
- "sponsorship-browse": { id: "sponsorship-browse", label: (0, import_translate.msg)("Browse IP Sponsorship"), icon: import_lucide_react.Handshake, href: "/launchpad/sponsorship", keywords: ["sponsorship", "browse", "offers"] },
54
- "launch-coin": { id: "launch-coin", label: (0, import_translate.msg)("Launch a Creator Coin"), icon: import_lucide_react.Coins, href: "/launchpad/coin/create", keywords: ["coin", "creator coin", "erc20", "token", "ekubo", "liquidity", "launch"] },
49
+ "launch-coin": { id: "launch-coin", label: (0, import_translate.msg)("Launch a creator coin"), icon: import_lucide_react.Coins, href: "/launchpad/coin/create", keywords: ["coin", "creator coin", "erc20", "token", "ekubo", "liquidity", "launch"] },
55
50
  remix: { id: "remix", label: (0, import_translate.msg)("Remix an Asset"), icon: import_lucide_react.Repeat2, href: "/marketplace", keywords: ["remix", "derivative", "attribution", "fork"] },
56
51
  "portfolio-collections": { id: "portfolio-collections", label: (0, import_translate.msg)("My Collections"), icon: import_lucide_react.LayoutGrid, href: "/portfolio/collections", keywords: ["deployed", "created", "my contracts", "claim", "import"] },
57
52
  "portfolio-assets": { id: "portfolio-assets", label: (0, import_translate.msg)("My Assets"), icon: import_lucide_react.Gem, href: "/portfolio/assets", keywords: ["owned", "nfts", "tokens", "collected"] },
@@ -66,10 +61,6 @@ const NAV_ITEMS = {
66
61
  publications: { id: "publications", label: (0, import_translate.msg)("Publications"), icon: import_lucide_react.BookOpen, href: "/publications", keywords: ["article", "articles", "blog", "news", "writing", "book", "journal"] },
67
62
  nft: { id: "nft", label: (0, import_translate.msg)("NFT"), icon: import_lucide_react.Gem, href: "/nft", keywords: ["collectible", "token", "generative"] },
68
63
  docs: { id: "docs", label: (0, import_translate.msg)("Docs \u2014 Overview"), icon: import_lucide_react.BookOpen, action: () => window.open("https://docs.medialane.io", "_blank"), keywords: ["docs", "help", "guide", "documentation"] },
69
- "docs-market": { id: "docs-market", label: (0, import_translate.msg)("Docs \u2014 Marketplace"), icon: import_lucide_react.Store, action: () => window.open("https://docs.medialane.io/marketplace", "_blank"), keywords: ["docs", "buy", "sell", "orders", "guide"] },
70
- "docs-launchpad": { id: "docs-launchpad", label: (0, import_translate.msg)("Docs \u2014 Launchpad"), icon: import_lucide_react.Zap, action: () => window.open("https://docs.medialane.io/launchpad", "_blank"), keywords: ["docs", "creator", "mint", "deploy", "guide"] },
71
- "docs-ip": { id: "docs-ip", label: (0, import_translate.msg)("Docs \u2014 IP & Licensing"), icon: import_lucide_react.ShieldCheck, action: () => window.open("https://docs.medialane.io/ip-licensing", "_blank"), keywords: ["docs", "license", "ip", "rights", "royalty"] },
72
- "docs-sdk": { id: "docs-sdk", label: (0, import_translate.msg)("Docs \u2014 SDK & API"), icon: import_lucide_react.FileText, action: () => window.open("https://docs.medialane.io/sdk", "_blank"), keywords: ["docs", "developer", "api", "sdk", "integration"] },
73
64
  "docs-terms": { id: "docs-terms", label: (0, import_translate.msg)("Terms of Service"), icon: import_lucide_react.FileText, action: () => window.open("https://docs.medialane.io/guidelines/terms", "_blank"), keywords: ["legal", "terms", "tos"] },
74
65
  "docs-privacy": { id: "docs-privacy", label: (0, import_translate.msg)("Privacy Policy"), icon: import_lucide_react.ShieldCheck, action: () => window.open("https://docs.medialane.io/guidelines/privacy", "_blank"), keywords: ["privacy", "data", "gdpr"] }
75
66
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/data/nav-commands.ts"],"sourcesContent":["import {\n Activity, BookOpen, Briefcase, Camera, Coins, FileText, Film, Gem, Gift, Handshake, Home, Layers, LayoutGrid, List, Music, Palette, Plus, Repeat2, ScrollText, Settings, ShieldCheck, Store, Tag, Telescope, Ticket, Trophy, Users, Zap,\n} from \"lucide-react\";\nimport type { NavCommand, NavCommandGroup } from \"../components/nav-command-menu.js\";\nimport { msg } from \"../i18n/translate.js\";\n\nexport const NAV_ITEMS = {\n home: { id: \"home\", label: msg(\"Medialane\"), icon: Home, iconSrc: \"/icon.png\", href: \"/\", keywords: [\"home\", \"frontpage\", \"start\", \"homepage\", \"main\"], description: msg(\"Start here\") },\n discover: { id: \"discover\", label: msg(\"Discover\"), icon: Telescope, href: \"/discover\", keywords: [\"feed\", \"explore\", \"trending\"], description: msg(\"Feeds, collections & creators\") },\n marketplace: { id: \"marketplace\", label: msg(\"Marketplace\"), icon: Store, href: \"/marketplace\", keywords: [\"buy\", \"sell\", \"trade\", \"listings\", \"browse\"], description: msg(\"Buy, sell & make offers\") },\n launchpad: { id: \"launchpad\", label: msg(\"Launchpad\"), icon: Zap, href: \"/launchpad\", keywords: [\"start\", \"launch\", \"creator\", \"mint\", \"create\"], description: msg(\"Create, mint & launch\") },\n portfolio: { id: \"portfolio\", label: msg(\"Portfolio\"), icon: Briefcase, href: \"/portfolio\", keywords: [\"owned\", \"my nfts\", \"wallet\", \"account\"], description: msg(\"Your assets & activity\") },\n collections: { id: \"collections\", label: msg(\"Collections\"), icon: LayoutGrid, href: \"/collections\", keywords: [\"nft\", \"drops\", \"browse\"] },\n coins: { id: \"coins\", label: msg(\"Coins\"), icon: Coins, href: \"/coins\", keywords: [\"token\", \"creator coin\", \"memecoin\", \"discover\", \"trade\", \"swap\"] },\n accounts: { id: \"accounts\", label: msg(\"Accounts\"), icon: Users, href: \"/accounts\", keywords: [\"creators\", \"artists\", \"addresses\", \"community\"] },\n activities: { id: \"activities\", label: msg(\"Activity\"), icon: Activity, href: \"/activities\", keywords: [\"history\", \"transactions\", \"feed\", \"events\"] },\n rewards: { id: \"rewards\", label: msg(\"Rewards\"), icon: Trophy, href: \"/rewards\", keywords: [\"xp\", \"points\", \"scoreboard\", \"leaderboard\", \"badges\", \"rank\"] },\n airdrop: { id: \"airdrop\", label: msg(\"Airdrop\"), icon: Gift, href: \"/airdrop\", keywords: [\"claim\", \"free\", \"drop\", \"genesis\", \"creator's fund\"] },\n settings: { id: \"settings\", label: msg(\"Account Settings\"), icon: Settings, href: \"/settings\", keywords: [\"profile\", \"username\", \"preferences\", \"account\"] },\n \"mint-ip-asset\": { id: \"mint-ip-asset\", label: msg(\"Mint Unique NFT\"), icon: Plus, href: \"/launchpad/single-editions\", keywords: [\"mint\", \"upload\", \"publish\", \"token\", \"erc721\", \"singular\", \"unique\", \"original\"] },\n \"create-collection\": { id: \"create-collection\", label: msg(\"Create NFT Collection\"), icon: LayoutGrid, href: \"/launchpad/single-editions/collection\", keywords: [\"deploy\", \"series\", \"erc721\", \"collection\", \"branded\"] },\n \"mint-editions\": { id: \"mint-editions\", label: msg(\"Mint Limited Edition\"), icon: Layers, href: \"/launchpad/nfteditions\", keywords: [\"mint\", \"edition\", \"erc1155\", \"multi\", \"copies\", \"limited\"] },\n \"create-1155\": { id: \"create-1155\", label: msg(\"Create Limited Edition Contract\"), icon: Layers, href: \"/launchpad/nfteditions/create\", keywords: [\"deploy\", \"erc1155\", \"edition\", \"contract\", \"limited\", \"multi-edition\"] },\n \"collection-drop\": { id: \"collection-drop\", label: msg(\"Launch Collection Drop\"), icon: Gift, href: \"/launchpad/drop/create\", keywords: [\"drop\", \"timed\", \"fixed supply\", \"release\", \"erc721\"] },\n \"browse-drops\": { id: \"browse-drops\", label: msg(\"Browse Drops\"), icon: Store, href: \"/launchpad/drop\", keywords: [\"drop\", \"browse\", \"active\"] },\n \"pop-create\": { id: \"pop-create\", label: msg(\"Create POP Event\"), icon: Ticket, href: \"/launchpad/pop/create\", keywords: [\"pop\", \"proof of participation\", \"event\", \"community\", \"soulbound\"] },\n \"pop-browse\": { id: \"pop-browse\", label: msg(\"Browse POP Events\"), icon: Ticket, href: \"/launchpad/pop\", keywords: [\"pop\", \"events\", \"proof of participation\"] },\n \"tickets-create\": { id: \"tickets-create\", label: msg(\"Create IP Tickets\"), icon: Ticket, href: \"/launchpad/tickets/create\", keywords: [\"tickets\", \"event\", \"verifiable\", \"attendee\", \"pass\"] },\n \"tickets-browse\": { id: \"tickets-browse\", label: msg(\"Browse IP Tickets\"), icon: Ticket, href: \"/launchpad/tickets\", keywords: [\"tickets\", \"browse\", \"events\"] },\n \"club-create\": { id: \"club-create\", label: msg(\"Create IP Club\"), icon: Users, href: \"/launchpad/club/create\", keywords: [\"club\", \"membership\", \"tiers\", \"community\", \"fans\"] },\n \"club-browse\": { id: \"club-browse\", label: msg(\"Browse IP Clubs\"), icon: Users, href: \"/launchpad/club\", keywords: [\"club\", \"membership\", \"browse\"] },\n \"sponsorship-create\": { id: \"sponsorship-create\", label: msg(\"Create IP Sponsorship\"), icon: Handshake, href: \"/launchpad/sponsorship/create\", keywords: [\"sponsorship\", \"sponsor\", \"license\", \"offer\", \"deal\"] },\n \"sponsorship-browse\": { id: \"sponsorship-browse\", label: msg(\"Browse IP Sponsorship\"), icon: Handshake, href: \"/launchpad/sponsorship\", keywords: [\"sponsorship\", \"browse\", \"offers\"] },\n \"launch-coin\": { id: \"launch-coin\", label: msg(\"Launch a Creator Coin\"), icon: Coins, href: \"/launchpad/coin/create\", keywords: [\"coin\", \"creator coin\", \"erc20\", \"token\", \"ekubo\", \"liquidity\", \"launch\"] },\n remix: { id: \"remix\", label: msg(\"Remix an Asset\"), icon: Repeat2, href: \"/marketplace\", keywords: [\"remix\", \"derivative\", \"attribution\", \"fork\"] },\n \"portfolio-collections\": { id: \"portfolio-collections\",label: msg(\"My Collections\"), icon: LayoutGrid, href: \"/portfolio/collections\", keywords: [\"deployed\", \"created\", \"my contracts\", \"claim\", \"import\"] },\n \"portfolio-assets\": { id: \"portfolio-assets\", label: msg(\"My Assets\"), icon: Gem, href: \"/portfolio/assets\", keywords: [\"owned\", \"nfts\", \"tokens\", \"collected\"] },\n \"portfolio-listings\": { id: \"portfolio-listings\", label: msg(\"My Listings\"), icon: Tag, href: \"/portfolio/listings\", keywords: [\"sell\", \"listed\", \"active listings\"] },\n \"portfolio-offers\": { id: \"portfolio-offers\", label: msg(\"My Offers\"), icon: List, href: \"/portfolio/offers\", keywords: [\"bids\", \"made\", \"sent offers\"] },\n \"portfolio-received\": { id: \"portfolio-received\", label: msg(\"Received Offers\"), icon: ScrollText, href: \"/portfolio/received\", keywords: [\"incoming\", \"bids\", \"offers received\"] },\n \"portfolio-activity\": { id: \"portfolio-activity\", label: msg(\"My Activity\"), icon: Activity, href: \"/portfolio/activity\", keywords: [\"history\", \"transactions\", \"events\"] },\n audio: { id: \"audio\", label: msg(\"Audio\"), icon: Music, href: \"/audio\", keywords: [\"music\", \"sound\", \"track\", \"podcast\"] },\n art: { id: \"art\", label: msg(\"Art\"), icon: Palette, href: \"/art\", keywords: [\"illustration\", \"drawing\", \"painting\", \"digital art\"] },\n video: { id: \"video\", label: msg(\"Video\"), icon: Film, href: \"/video\", keywords: [\"film\", \"clip\", \"animation\", \"short\"] },\n photography: { id: \"photography\", label: msg(\"Photography\"), icon: Camera, href: \"/photography\", keywords: [\"photo\", \"image\", \"picture\", \"shot\"] },\n publications: { id: \"publications\", label: msg(\"Publications\"), icon: BookOpen, href: \"/publications\", keywords: [\"article\", \"articles\", \"blog\", \"news\", \"writing\", \"book\", \"journal\"] },\n nft: { id: \"nft\", label: msg(\"NFT\"), icon: Gem, href: \"/nft\", keywords: [\"collectible\", \"token\", \"generative\"] },\n docs: { id: \"docs\", label: msg(\"Docs — Overview\"), icon: BookOpen, action: () => window.open(\"https://docs.medialane.io\", \"_blank\"), keywords: [\"docs\", \"help\", \"guide\", \"documentation\"] },\n \"docs-market\": { id: \"docs-market\", label: msg(\"Docs — Marketplace\"), icon: Store, action: () => window.open(\"https://docs.medialane.io/marketplace\", \"_blank\"), keywords: [\"docs\", \"buy\", \"sell\", \"orders\", \"guide\"] },\n \"docs-launchpad\": { id: \"docs-launchpad\",label: msg(\"Docs — Launchpad\"), icon: Zap, action: () => window.open(\"https://docs.medialane.io/launchpad\", \"_blank\"), keywords: [\"docs\", \"creator\", \"mint\", \"deploy\", \"guide\"] },\n \"docs-ip\": { id: \"docs-ip\", label: msg(\"Docs — IP & Licensing\"), icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/ip-licensing\", \"_blank\"), keywords: [\"docs\", \"license\", \"ip\", \"rights\", \"royalty\"] },\n \"docs-sdk\": { id: \"docs-sdk\", label: msg(\"Docs — SDK & API\"), icon: FileText, action: () => window.open(\"https://docs.medialane.io/sdk\", \"_blank\"), keywords: [\"docs\", \"developer\", \"api\", \"sdk\", \"integration\"] },\n \"docs-terms\": { id: \"docs-terms\", label: msg(\"Terms of Service\"), icon: FileText, action: () => window.open(\"https://docs.medialane.io/guidelines/terms\", \"_blank\"), keywords: [\"legal\", \"terms\", \"tos\"] },\n \"docs-privacy\": { id: \"docs-privacy\", label: msg(\"Privacy Policy\"), icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/guidelines/privacy\", \"_blank\"), keywords: [\"privacy\", \"data\", \"gdpr\"] },\n} satisfies Record<string, NavCommand>;\n\nexport type NavItemId = keyof typeof NAV_ITEMS;\n\nexport interface NavGroupSpec {\n heading?: string;\n items: (NavItemId | NavCommand)[];\n}\n\nexport function navGroups(groups: NavGroupSpec[]): NavCommandGroup[] {\n return groups.map(({ heading, items }) => ({\n heading,\n items: items.map((item) => (typeof item === \"string\" ? NAV_ITEMS[item] : item)),\n }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAEO;AAEP,uBAAoB;AAEb,MAAM,YAAY;AAAA,EACvB,MAAM,EAAE,IAAI,QAAQ,WAAO,sBAAI,WAAW,GAAG,MAAM,0BAAM,SAAS,aAAa,MAAM,KAAK,UAAU,CAAC,QAAQ,aAAa,SAAS,YAAY,MAAM,GAAG,iBAAa,sBAAI,YAAY,EAAE;AAAA,EACvL,UAAU,EAAE,IAAI,YAAY,WAAO,sBAAI,UAAU,GAAG,MAAM,+BAAW,MAAM,aAAa,UAAU,CAAC,QAAQ,WAAW,UAAU,GAAG,iBAAa,sBAAI,+BAA+B,EAAE;AAAA,EACrL,aAAa,EAAE,IAAI,eAAe,WAAO,sBAAI,aAAa,GAAG,MAAM,2BAAO,MAAM,gBAAgB,UAAU,CAAC,OAAO,QAAQ,SAAS,YAAY,QAAQ,GAAG,iBAAa,sBAAI,yBAAyB,EAAE;AA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AAM,OAAO,KAAK,8CAA8C,QAAQ,GAAG,UAAU,CAAC,SAAS,SAAS,KAAK,EAAE;AAAA,EACzM,gBAAgB,EAAE,IAAI,gBAAgB,WAAO,sBAAI,gBAAgB,GAAG,MAAM,iCAAa,QAAQ,MAAM,OAAO,KAAK,gDAAgD,QAAQ,GAAG,UAAU,CAAC,WAAW,QAAQ,MAAM,EAAE;AACpN;AASO,SAAS,UAAU,QAA2C;AACnE,SAAO,OAAO,IAAI,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,IACzC;AAAA,IACA,OAAO,MAAM,IAAI,CAAC,SAAU,OAAO,SAAS,WAAW,UAAU,IAAI,IAAI,IAAK;AAAA,EAChF,EAAE;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../src/data/nav-commands.ts"],"sourcesContent":["import {\n Activity, BookOpen, Briefcase, Camera, Coins, FileText, Film, Gem, Gift, Handshake, Home, Layers, LayoutGrid, List, Music, Palette, Plus, Repeat2, ScrollText, Settings, ShieldCheck, Store, Tag, Telescope, Ticket, Trophy, Users, Zap,\n} from \"lucide-react\";\nimport type { NavCommand, NavCommandGroup } from \"../components/nav-command-menu.js\";\nimport { msg } from \"../i18n/translate.js\";\n\nexport const NAV_ITEMS = {\n home: { id: \"home\", label: msg(\"Medialane\"), icon: Home, iconSrc: \"/icon.png\", href: \"/\", keywords: [\"home\", \"frontpage\", \"start\", \"homepage\", \"main\"], description: msg(\"Start here\") },\n discover: { id: \"discover\", label: msg(\"Discover\"), icon: Telescope, href: \"/discover\", keywords: [\"feed\", \"explore\", \"trending\"], description: msg(\"Feeds, collections & creators\") },\n marketplace: { id: \"marketplace\", label: msg(\"Marketplace\"), icon: Store, href: \"/marketplace\", keywords: [\"buy\", \"sell\", \"trade\", \"listings\", \"browse\"], description: msg(\"Buy, sell & make offers\") },\n launchpad: { id: \"launchpad\", label: msg(\"Launchpad\"), icon: Zap, href: \"/launchpad\", keywords: [\"start\", \"launch\", \"creator\", \"mint\", \"create\"], description: msg(\"Create, mint & launch\") },\n portfolio: { id: \"portfolio\", label: msg(\"Portfolio\"), icon: Briefcase, href: \"/portfolio\", keywords: [\"owned\", \"my nfts\", \"wallet\", \"account\"], description: msg(\"Your assets & activity\") },\n collections: { id: \"collections\", label: msg(\"Collections\"), icon: LayoutGrid, href: \"/collections\", keywords: [\"nft\", \"drops\", \"browse\"] },\n coins: { id: \"coins\", label: msg(\"Coins\"), icon: Coins, href: \"/coins\", keywords: [\"token\", \"creator coin\", \"memecoin\", \"discover\", \"trade\", \"swap\"] },\n accounts: { id: \"accounts\", label: msg(\"Accounts\"), icon: Users, href: \"/accounts\", keywords: [\"creators\", \"artists\", \"addresses\", \"community\"] },\n activities: { id: \"activities\", label: msg(\"Activity\"), icon: Activity, href: \"/activities\", keywords: [\"history\", \"transactions\", \"feed\", \"events\"] },\n rewards: { id: \"rewards\", label: msg(\"Rewards\"), icon: Trophy, href: \"/rewards\", keywords: [\"xp\", \"points\", \"scoreboard\", \"leaderboard\", \"badges\", \"rank\"] },\n airdrop: { id: \"airdrop\", label: msg(\"Airdrop\"), icon: Gift, href: \"/airdrop\", keywords: [\"claim\", \"free\", \"drop\", \"genesis\", \"creator's fund\"] },\n settings: { id: \"settings\", label: msg(\"Account Settings\"), icon: Settings, href: \"/settings\", keywords: [\"profile\", \"username\", \"preferences\", \"account\"] },\n \"mint-ip-asset\": { id: \"mint-ip-asset\", label: msg(\"Mint Unique NFT\"), icon: Plus, href: \"/launchpad/single-editions\", keywords: [\"mint\", \"upload\", \"publish\", \"token\", \"erc721\", \"singular\", \"unique\", \"original\"] },\n \"create-collection\": { id: \"create-collection\", label: msg(\"Create NFT Collection\"), icon: LayoutGrid, href: \"/launchpad/single-editions/collection\", keywords: [\"deploy\", \"series\", \"erc721\", \"collection\", \"branded\"] },\n \"mint-editions\": { id: \"mint-editions\", label: msg(\"Mint Limited Edition\"), icon: Layers, href: \"/launchpad/nfteditions\", keywords: [\"mint\", \"edition\", \"erc1155\", \"multi\", \"copies\", \"limited\"] },\n \"create-1155\": { id: \"create-1155\", label: msg(\"Create Limited Edition Collection\"), icon: Layers, href: \"/launchpad/nfteditions/create\", keywords: [\"deploy\", \"erc1155\", \"edition\", \"contract\", \"limited\", \"multi-edition\"] },\n \"pop-create\": { id: \"pop-create\", label: msg(\"Create POP event\"), icon: Ticket, href: \"/launchpad/pop/create\", keywords: [\"pop\", \"proof of participation\", \"event\", \"community\", \"soulbound\"] },\n \"pop-browse\": { id: \"pop-browse\", label: msg(\"Browse POP Events\"), icon: Ticket, href: \"/launchpad/pop\", keywords: [\"pop\", \"events\", \"proof of participation\"] },\n \"tickets-create\": { id: \"tickets-create\", label: msg(\"Create IP Tickets\"), icon: Ticket, href: \"/launchpad/tickets/create\", keywords: [\"tickets\", \"event\", \"verifiable\", \"attendee\", \"pass\"] },\n \"club-create\": { id: \"club-create\", label: msg(\"Create IP Club\"), icon: Users, href: \"/launchpad/club/create\", keywords: [\"club\", \"membership\", \"tiers\", \"community\", \"fans\"] },\n \"sponsorship-create\": { id: \"sponsorship-create\", label: msg(\"Create IP Sponsorship\"), icon: Handshake, href: \"/launchpad/sponsorship/create\", keywords: [\"sponsorship\", \"sponsor\", \"license\", \"offer\", \"deal\"] },\n \"launch-coin\": { id: \"launch-coin\", label: msg(\"Launch a creator coin\"), icon: Coins, href: \"/launchpad/coin/create\", keywords: [\"coin\", \"creator coin\", \"erc20\", \"token\", \"ekubo\", \"liquidity\", \"launch\"] },\n remix: { id: \"remix\", label: msg(\"Remix an Asset\"), icon: Repeat2, href: \"/marketplace\", keywords: [\"remix\", \"derivative\", \"attribution\", \"fork\"] },\n \"portfolio-collections\": { id: \"portfolio-collections\",label: msg(\"My Collections\"), icon: LayoutGrid, href: \"/portfolio/collections\", keywords: [\"deployed\", \"created\", \"my contracts\", \"claim\", \"import\"] },\n \"portfolio-assets\": { id: \"portfolio-assets\", label: msg(\"My Assets\"), icon: Gem, href: \"/portfolio/assets\", keywords: [\"owned\", \"nfts\", \"tokens\", \"collected\"] },\n \"portfolio-listings\": { id: \"portfolio-listings\", label: msg(\"My Listings\"), icon: Tag, href: \"/portfolio/listings\", keywords: [\"sell\", \"listed\", \"active listings\"] },\n \"portfolio-offers\": { id: \"portfolio-offers\", label: msg(\"My Offers\"), icon: List, href: \"/portfolio/offers\", keywords: [\"bids\", \"made\", \"sent offers\"] },\n \"portfolio-received\": { id: \"portfolio-received\", label: msg(\"Received Offers\"), icon: ScrollText, href: \"/portfolio/received\", keywords: [\"incoming\", \"bids\", \"offers received\"] },\n \"portfolio-activity\": { id: \"portfolio-activity\", label: msg(\"My Activity\"), icon: Activity, href: \"/portfolio/activity\", keywords: [\"history\", \"transactions\", \"events\"] },\n audio: { id: \"audio\", label: msg(\"Audio\"), icon: Music, href: \"/audio\", keywords: [\"music\", \"sound\", \"track\", \"podcast\"] },\n art: { id: \"art\", label: msg(\"Art\"), icon: Palette, href: \"/art\", keywords: [\"illustration\", \"drawing\", \"painting\", \"digital art\"] },\n video: { id: \"video\", label: msg(\"Video\"), icon: Film, href: \"/video\", keywords: [\"film\", \"clip\", \"animation\", \"short\"] },\n photography: { id: \"photography\", label: msg(\"Photography\"), icon: Camera, href: \"/photography\", keywords: [\"photo\", \"image\", \"picture\", \"shot\"] },\n publications: { id: \"publications\", label: msg(\"Publications\"), icon: BookOpen, href: \"/publications\", keywords: [\"article\", \"articles\", \"blog\", \"news\", \"writing\", \"book\", \"journal\"] },\n nft: { id: \"nft\", label: msg(\"NFT\"), icon: Gem, href: \"/nft\", keywords: [\"collectible\", \"token\", \"generative\"] },\n docs: { id: \"docs\", label: msg(\"Docs — Overview\"), icon: BookOpen, action: () => window.open(\"https://docs.medialane.io\", \"_blank\"), keywords: [\"docs\", \"help\", \"guide\", \"documentation\"] },\n \"docs-terms\": { id: \"docs-terms\", label: msg(\"Terms of Service\"), icon: FileText, action: () => window.open(\"https://docs.medialane.io/guidelines/terms\", \"_blank\"), keywords: [\"legal\", \"terms\", \"tos\"] },\n \"docs-privacy\": { id: \"docs-privacy\", label: msg(\"Privacy Policy\"), icon: ShieldCheck, action: () => window.open(\"https://docs.medialane.io/guidelines/privacy\", \"_blank\"), keywords: [\"privacy\", \"data\", \"gdpr\"] },\n} satisfies Record<string, NavCommand>;\n\nexport type NavItemId = keyof typeof NAV_ITEMS;\n\nexport interface NavGroupSpec {\n heading?: string;\n items: (NavItemId | NavCommand)[];\n}\n\nexport function navGroups(groups: NavGroupSpec[]): NavCommandGroup[] {\n return groups.map(({ heading, items }) => ({\n heading,\n items: items.map((item) => (typeof item === \"string\" ? NAV_ITEMS[item] : item)),\n }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAEO;AAEP,uBAAoB;AAEb,MAAM,YAAY;AAAA,EACvB,MAAM,EAAE,IAAI,QAAQ,WAAO,sBAAI,WAAW,GAAG,MAAM,0BAAM,SAAS,aAAa,MAAM,KAAK,UAAU,CAAC,QAAQ,aAAa,SAAS,YAAY,MAAM,GAAG,iBAAa,sBAAI,YAAY,EAAE;AAAA,EACvL,UAAU,EAAE,IAAI,YAAY,WAAO,sBAAI,UAAU,GAAG,MAAM,+BAAW,MAAM,aAAa,UAAU,CAAC,QAAQ,WAAW,UAAU,GAAG,iBAAa,sBAAI,+BAA+B,EAAE;AAAA,EACrL,aAAa,EAAE,IAAI,eAAe,WAAO,sBAAI,aAAa,GAAG,MAAM,2BAAO,MAAM,gBAAgB,UAAU,CAAC,OAAO,QAAQ,SAAS,YAAY,QAAQ,GAAG,iBAAa,sBAAI,yBAAyB,EAAE;AAAA,EACtM,WAAW,EAAE,IAAI,aAAa,WAAO,sBAAI,WAAW,GAAG,MAAM,yBAAK,MAAM,cAAc,UAAU,CAAC,SAAS,UAAU,WAAW,QAAQ,QAAQ,GAAG,iBAAa,sBAAI,uBAAuB,EAAE;AAAA,EAC5L,WAAW,EAAE,IAAI,aAAa,WAAO,sBAAI,WAAW,GAAG,MAAM,+BAAW,MAAM,cAAc,U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,IAAI,IAAK;AAAA,EAChF,EAAE;AACJ;","names":[]}
@@ -122,20 +122,6 @@ declare const NAV_ITEMS: {
122
122
  href: string;
123
123
  keywords: string[];
124
124
  };
125
- "collection-drop": {
126
- id: string;
127
- label: string;
128
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
129
- href: string;
130
- keywords: string[];
131
- };
132
- "browse-drops": {
133
- id: string;
134
- label: string;
135
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
136
- href: string;
137
- keywords: string[];
138
- };
139
125
  "pop-create": {
140
126
  id: string;
141
127
  label: string;
@@ -157,13 +143,6 @@ declare const NAV_ITEMS: {
157
143
  href: string;
158
144
  keywords: string[];
159
145
  };
160
- "tickets-browse": {
161
- id: string;
162
- label: string;
163
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
164
- href: string;
165
- keywords: string[];
166
- };
167
146
  "club-create": {
168
147
  id: string;
169
148
  label: string;
@@ -171,13 +150,6 @@ declare const NAV_ITEMS: {
171
150
  href: string;
172
151
  keywords: string[];
173
152
  };
174
- "club-browse": {
175
- id: string;
176
- label: string;
177
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
178
- href: string;
179
- keywords: string[];
180
- };
181
153
  "sponsorship-create": {
182
154
  id: string;
183
155
  label: string;
@@ -185,13 +157,6 @@ declare const NAV_ITEMS: {
185
157
  href: string;
186
158
  keywords: string[];
187
159
  };
188
- "sponsorship-browse": {
189
- id: string;
190
- label: string;
191
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
192
- href: string;
193
- keywords: string[];
194
- };
195
160
  "launch-coin": {
196
161
  id: string;
197
162
  label: string;
@@ -297,34 +262,6 @@ declare const NAV_ITEMS: {
297
262
  action: () => Window | null;
298
263
  keywords: string[];
299
264
  };
300
- "docs-market": {
301
- id: string;
302
- label: string;
303
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
304
- action: () => Window | null;
305
- keywords: string[];
306
- };
307
- "docs-launchpad": {
308
- id: string;
309
- label: string;
310
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
311
- action: () => Window | null;
312
- keywords: string[];
313
- };
314
- "docs-ip": {
315
- id: string;
316
- label: string;
317
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
318
- action: () => Window | null;
319
- keywords: string[];
320
- };
321
- "docs-sdk": {
322
- id: string;
323
- label: string;
324
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
325
- action: () => Window | null;
326
- keywords: string[];
327
- };
328
265
  "docs-terms": {
329
266
  id: string;
330
267
  label: string;
@@ -122,20 +122,6 @@ declare const NAV_ITEMS: {
122
122
  href: string;
123
123
  keywords: string[];
124
124
  };
125
- "collection-drop": {
126
- id: string;
127
- label: string;
128
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
129
- href: string;
130
- keywords: string[];
131
- };
132
- "browse-drops": {
133
- id: string;
134
- label: string;
135
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
136
- href: string;
137
- keywords: string[];
138
- };
139
125
  "pop-create": {
140
126
  id: string;
141
127
  label: string;
@@ -157,13 +143,6 @@ declare const NAV_ITEMS: {
157
143
  href: string;
158
144
  keywords: string[];
159
145
  };
160
- "tickets-browse": {
161
- id: string;
162
- label: string;
163
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
164
- href: string;
165
- keywords: string[];
166
- };
167
146
  "club-create": {
168
147
  id: string;
169
148
  label: string;
@@ -171,13 +150,6 @@ declare const NAV_ITEMS: {
171
150
  href: string;
172
151
  keywords: string[];
173
152
  };
174
- "club-browse": {
175
- id: string;
176
- label: string;
177
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
178
- href: string;
179
- keywords: string[];
180
- };
181
153
  "sponsorship-create": {
182
154
  id: string;
183
155
  label: string;
@@ -185,13 +157,6 @@ declare const NAV_ITEMS: {
185
157
  href: string;
186
158
  keywords: string[];
187
159
  };
188
- "sponsorship-browse": {
189
- id: string;
190
- label: string;
191
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
192
- href: string;
193
- keywords: string[];
194
- };
195
160
  "launch-coin": {
196
161
  id: string;
197
162
  label: string;
@@ -297,34 +262,6 @@ declare const NAV_ITEMS: {
297
262
  action: () => Window | null;
298
263
  keywords: string[];
299
264
  };
300
- "docs-market": {
301
- id: string;
302
- label: string;
303
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
304
- action: () => Window | null;
305
- keywords: string[];
306
- };
307
- "docs-launchpad": {
308
- id: string;
309
- label: string;
310
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
311
- action: () => Window | null;
312
- keywords: string[];
313
- };
314
- "docs-ip": {
315
- id: string;
316
- label: string;
317
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
318
- action: () => Window | null;
319
- keywords: string[];
320
- };
321
- "docs-sdk": {
322
- id: string;
323
- label: string;
324
- icon: React.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
325
- action: () => Window | null;
326
- keywords: string[];
327
- };
328
265
  "docs-terms": {
329
266
  id: string;
330
267
  label: string;