@medialane/ui 0.391.0 → 0.393.0

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 (133) 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 +1 -1
  4. package/dist/components/button.d.ts +1 -1
  5. package/dist/components/create-form-primitives.cjs +6 -1
  6. package/dist/components/create-form-primitives.cjs.map +1 -1
  7. package/dist/components/create-form-primitives.js +6 -1
  8. package/dist/components/create-form-primitives.js.map +1 -1
  9. package/dist/components/drop/create/asset-editor.cjs +164 -0
  10. package/dist/components/drop/create/asset-editor.cjs.map +1 -0
  11. package/dist/components/drop/create/asset-editor.d.cts +17 -0
  12. package/dist/components/drop/create/asset-editor.d.ts +17 -0
  13. package/dist/components/drop/create/asset-editor.js +140 -0
  14. package/dist/components/drop/create/asset-editor.js.map +1 -0
  15. package/dist/components/drop/create/assets-panel.cjs +269 -0
  16. package/dist/components/drop/create/assets-panel.cjs.map +1 -0
  17. package/dist/components/drop/create/assets-panel.d.cts +11 -0
  18. package/dist/components/drop/create/assets-panel.d.ts +11 -0
  19. package/dist/components/drop/create/assets-panel.js +245 -0
  20. package/dist/components/drop/create/assets-panel.js.map +1 -0
  21. package/dist/components/drop/create/collection-panel.cjs +138 -0
  22. package/dist/components/drop/create/collection-panel.cjs.map +1 -0
  23. package/dist/components/drop/create/collection-panel.d.cts +12 -0
  24. package/dist/components/drop/create/collection-panel.d.ts +12 -0
  25. package/dist/components/drop/create/collection-panel.js +113 -0
  26. package/dist/components/drop/create/collection-panel.js.map +1 -0
  27. package/dist/components/drop/create/drop-create.cjs +57 -112
  28. package/dist/components/drop/create/drop-create.cjs.map +1 -1
  29. package/dist/components/drop/create/drop-create.d.cts +6 -12
  30. package/dist/components/drop/create/drop-create.d.ts +6 -12
  31. package/dist/components/drop/create/drop-create.js +60 -112
  32. package/dist/components/drop/create/drop-create.js.map +1 -1
  33. package/dist/components/drop/create/drop-fields.cjs +40 -144
  34. package/dist/components/drop/create/drop-fields.cjs.map +1 -1
  35. package/dist/components/drop/create/drop-fields.d.cts +5 -17
  36. package/dist/components/drop/create/drop-fields.d.ts +5 -17
  37. package/dist/components/drop/create/drop-fields.js +40 -131
  38. package/dist/components/drop/create/drop-fields.js.map +1 -1
  39. package/dist/components/drop/create/drop-panel.cjs +57 -0
  40. package/dist/components/drop/create/drop-panel.cjs.map +1 -0
  41. package/dist/components/drop/create/drop-panel.d.cts +25 -0
  42. package/dist/components/drop/create/drop-panel.d.ts +25 -0
  43. package/dist/components/drop/create/drop-panel.js +33 -0
  44. package/dist/components/drop/create/drop-panel.js.map +1 -0
  45. package/dist/components/drop/create/launch-dialog.cjs +40 -45
  46. package/dist/components/drop/create/launch-dialog.cjs.map +1 -1
  47. package/dist/components/drop/create/launch-dialog.d.cts +4 -5
  48. package/dist/components/drop/create/launch-dialog.d.ts +4 -5
  49. package/dist/components/drop/create/launch-dialog.js +44 -49
  50. package/dist/components/drop/create/launch-dialog.js.map +1 -1
  51. package/dist/components/drop/create/settings-panel.cjs +97 -0
  52. package/dist/components/drop/create/settings-panel.cjs.map +1 -0
  53. package/dist/components/drop/create/settings-panel.d.cts +11 -0
  54. package/dist/components/drop/create/settings-panel.d.ts +11 -0
  55. package/dist/components/drop/create/settings-panel.js +73 -0
  56. package/dist/components/drop/create/settings-panel.js.map +1 -0
  57. package/dist/components/drop/drop-features.cjs +3 -3
  58. package/dist/components/drop/drop-features.cjs.map +1 -1
  59. package/dist/components/drop/drop-features.js +3 -3
  60. package/dist/components/drop/drop-features.js.map +1 -1
  61. package/dist/components/drop/drop-status.d.cts +1 -0
  62. package/dist/components/drop/drop-status.d.ts +1 -0
  63. package/dist/components/drop/page/drop-action-box.cjs +4 -4
  64. package/dist/components/drop/page/drop-action-box.cjs.map +1 -1
  65. package/dist/components/drop/page/drop-action-box.d.cts +1 -0
  66. package/dist/components/drop/page/drop-action-box.d.ts +1 -0
  67. package/dist/components/drop/page/drop-action-box.js +4 -4
  68. package/dist/components/drop/page/drop-action-box.js.map +1 -1
  69. package/dist/components/drop/page/drop-mint-dialog.cjs +1 -1
  70. package/dist/components/drop/page/drop-mint-dialog.cjs.map +1 -1
  71. package/dist/components/drop/page/drop-mint-dialog.d.cts +2 -1
  72. package/dist/components/drop/page/drop-mint-dialog.d.ts +2 -1
  73. package/dist/components/drop/page/drop-mint-dialog.js +1 -1
  74. package/dist/components/drop/page/drop-mint-dialog.js.map +1 -1
  75. package/dist/components/drop/page/drop-page.cjs +4 -8
  76. package/dist/components/drop/page/drop-page.cjs.map +1 -1
  77. package/dist/components/drop/page/drop-page.js +5 -9
  78. package/dist/components/drop/page/drop-page.js.map +1 -1
  79. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  80. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  81. package/dist/components/launchpad/edition-mint-schema.d.cts +4 -4
  82. package/dist/components/launchpad/edition-mint-schema.d.ts +4 -4
  83. package/dist/draft-B0fPlVZS.d.ts +86 -0
  84. package/dist/draft-Bw3JWkOZ.d.cts +86 -0
  85. package/dist/i18n/catalog/pt.cjs +78 -28
  86. package/dist/i18n/catalog/pt.cjs.map +1 -1
  87. package/dist/i18n/catalog/pt.js +78 -28
  88. package/dist/i18n/catalog/pt.js.map +1 -1
  89. package/dist/i18n/index.cjs.map +1 -1
  90. package/dist/i18n/index.d.cts +1 -1
  91. package/dist/i18n/index.d.ts +1 -1
  92. package/dist/i18n/index.js.map +1 -1
  93. package/dist/i18n/translate.cjs.map +1 -1
  94. package/dist/i18n/translate.d.cts +5 -1
  95. package/dist/i18n/translate.d.ts +5 -1
  96. package/dist/i18n/translate.js.map +1 -1
  97. package/dist/index.cjs.map +1 -1
  98. package/dist/index.d.cts +4 -4
  99. package/dist/index.d.ts +4 -4
  100. package/dist/index.js.map +1 -1
  101. package/dist/utils/drop/draft-store.cjs +133 -0
  102. package/dist/utils/drop/draft-store.cjs.map +1 -0
  103. package/dist/utils/drop/draft-store.d.cts +23 -0
  104. package/dist/utils/drop/draft-store.d.ts +23 -0
  105. package/dist/utils/drop/draft-store.js +107 -0
  106. package/dist/utils/drop/draft-store.js.map +1 -0
  107. package/dist/utils/drop/draft.cjs +62 -38
  108. package/dist/utils/drop/draft.cjs.map +1 -1
  109. package/dist/utils/drop/draft.d.cts +2 -38
  110. package/dist/utils/drop/draft.d.ts +2 -38
  111. package/dist/utils/drop/draft.js +58 -37
  112. package/dist/utils/drop/draft.js.map +1 -1
  113. package/dist/utils/drop/metadata.cjs +35 -16
  114. package/dist/utils/drop/metadata.cjs.map +1 -1
  115. package/dist/utils/drop/metadata.d.cts +4 -28
  116. package/dist/utils/drop/metadata.d.ts +4 -28
  117. package/dist/utils/drop/metadata.js +33 -15
  118. package/dist/utils/drop/metadata.js.map +1 -1
  119. package/dist/utils/drop/sale.cjs +10 -9
  120. package/dist/utils/drop/sale.cjs.map +1 -1
  121. package/dist/utils/drop/sale.d.cts +3 -2
  122. package/dist/utils/drop/sale.d.ts +3 -2
  123. package/dist/utils/drop/sale.js +10 -9
  124. package/dist/utils/drop/sale.js.map +1 -1
  125. package/dist/utils/drop/view.cjs +15 -13
  126. package/dist/utils/drop/view.cjs.map +1 -1
  127. package/dist/utils/drop/view.d.cts +6 -4
  128. package/dist/utils/drop/view.d.ts +6 -4
  129. package/dist/utils/drop/view.js +15 -13
  130. package/dist/utils/drop/view.js.map +1 -1
  131. package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
  132. package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
  133. package/package.json +1 -1
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var settings_panel_exports = {};
21
+ __export(settings_panel_exports, {
22
+ SettingsPanel: () => SettingsPanel
23
+ });
24
+ module.exports = __toCommonJS(settings_panel_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_react = require("react");
27
+ var import_lucide_react = require("lucide-react");
28
+ var import_collapsible_section = require("../../collapsible-section.js");
29
+ var import_drop_panel = require("./drop-panel.js");
30
+ var import_drop_fields = require("./drop-fields.js");
31
+ var import_exclusive_fields = require("./exclusive-fields.js");
32
+ var import_sale = require("../../../utils/drop/sale.js");
33
+ var import_use_drops = require("../../../utils/use-drops.js");
34
+ var import_provider = require("../../../i18n/provider.js");
35
+ var import_use_format = require("../../../i18n/use-format.js");
36
+ function SettingsPanel({ draft, setDraft, errors, open, onToggle }) {
37
+ const t = (0, import_provider.useT)();
38
+ const intl = (0, import_use_format.useFormat)();
39
+ const feeBps = (0, import_use_drops.useDropFee)();
40
+ const [licenseOpen, setLicenseOpen] = (0, import_react.useState)(false);
41
+ const settings = errors.settings;
42
+ const saleValid = Object.keys((0, import_sale.validateSale)(draft.sale, 0)).every((k) => k === "start");
43
+ const terms = saleValid ? (0, import_sale.toDropTerms)(draft.sale) : null;
44
+ const price = terms ? (0, import_sale.priceLabel)(terms.price, terms.paymentToken) : t("Set a price");
45
+ const start = draft.sale.startNow || !terms || terms.startTime === 0 ? t("Starts at launch") : t("Starts {date}", { date: intl.dateTime(new Date(terms.startTime * 1e3)) });
46
+ const fields = { draft, setDraft, errors: settings };
47
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
48
+ import_drop_panel.DropPanel,
49
+ {
50
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.SlidersHorizontal, {}),
51
+ title: t("Drop settings"),
52
+ open,
53
+ onToggle,
54
+ error: Object.values(settings).find(Boolean),
55
+ summary: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "block space-y-0.5", children: [
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "block", children: t(price) }),
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "block", children: start }),
58
+ draft.listOnly && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "block", children: t("Wallet list") })
59
+ ] }),
60
+ children: [
61
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.PriceFields, { ...fields, feeBps }),
62
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.TimingFields, { ...fields }),
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.AccessFields, { ...fields }),
64
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ import_collapsible_section.CollapsibleSection,
66
+ {
67
+ open: licenseOpen,
68
+ onOpenChange: setLicenseOpen,
69
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ShieldCheck, { className: "h-4 w-4 text-primary" }),
70
+ label: t("License terms"),
71
+ hint: t("For every asset"),
72
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.LicenseFields, { draft, setDraft })
73
+ }
74
+ ),
75
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
76
+ import_collapsible_section.CollapsibleSection,
77
+ {
78
+ open: draft.gated.enabled,
79
+ onOpenChange: (enabled) => setDraft({ gated: { ...draft.gated, enabled } }),
80
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-4 w-4 text-primary" }),
81
+ label: t("Exclusive content"),
82
+ hint: t("A private link for holders"),
83
+ children: [
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_exclusive_fields.ExclusiveFields, { value: draft.gated, onChange: (v) => setDraft({ gated: { ...draft.gated, ...v } }) }),
85
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_fields.FieldError, { message: settings.gated })
86
+ ]
87
+ }
88
+ )
89
+ ]
90
+ }
91
+ );
92
+ }
93
+ // Annotate the CommonJS export names for ESM import in node:
94
+ 0 && (module.exports = {
95
+ SettingsPanel
96
+ });
97
+ //# sourceMappingURL=settings-panel.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/drop/create/settings-panel.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Lock, ShieldCheck, SlidersHorizontal } from \"lucide-react\";\nimport { CollapsibleSection } from \"../../collapsible-section.js\";\nimport { DropPanel, type PanelProps } from \"./drop-panel.js\";\nimport { AccessFields, FieldError, LicenseFields, PriceFields, TimingFields } from \"./drop-fields.js\";\nimport { ExclusiveFields } from \"./exclusive-fields.js\";\nimport { priceLabel, toDropTerms, validateSale } from \"../../../utils/drop/sale.js\";\nimport { useDropFee } from \"../../../utils/use-drops.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nexport function SettingsPanel({ draft, setDraft, errors, open, onToggle }: PanelProps) {\n const t = useT();\n const intl = useFormat();\n const feeBps = useDropFee();\n const [licenseOpen, setLicenseOpen] = useState(false);\n const settings = errors.settings;\n const saleValid = Object.keys(validateSale(draft.sale, 0)).every((k) => k === \"start\");\n const terms = saleValid ? toDropTerms(draft.sale) : null;\n const price = terms ? priceLabel(terms.price, terms.paymentToken) : t(\"Set a price\");\n const start = draft.sale.startNow || !terms || terms.startTime === 0\n ? t(\"Starts at launch\")\n : t(\"Starts {date}\", { date: intl.dateTime(new Date(terms.startTime * 1000)) });\n const fields = { draft, setDraft, errors: settings };\n\n return (\n <DropPanel\n icon={<SlidersHorizontal />}\n title={t(\"Drop settings\")}\n open={open}\n onToggle={onToggle}\n error={Object.values(settings).find(Boolean)}\n summary={\n <span className=\"block space-y-0.5\">\n <span className=\"block\">{t(price)}</span>\n <span className=\"block\">{start}</span>\n {draft.listOnly && <span className=\"block\">{t(\"Wallet list\")}</span>}\n </span>\n }\n >\n <PriceFields {...fields} feeBps={feeBps} />\n <TimingFields {...fields} />\n <AccessFields {...fields} />\n <CollapsibleSection open={licenseOpen} onOpenChange={setLicenseOpen}\n icon={<ShieldCheck className=\"h-4 w-4 text-primary\" />}\n label={t(\"License terms\")} hint={t(\"For every asset\")}>\n <LicenseFields draft={draft} setDraft={setDraft} />\n </CollapsibleSection>\n <CollapsibleSection open={draft.gated.enabled}\n onOpenChange={(enabled) => setDraft({ gated: { ...draft.gated, enabled } })}\n icon={<Lock className=\"h-4 w-4 text-primary\" />}\n label={t(\"Exclusive content\")} hint={t(\"A private link for holders\")}>\n <ExclusiveFields value={draft.gated} onChange={(v) => setDraft({ gated: { ...draft.gated, ...v } })} />\n <FieldError message={settings.gated} />\n </CollapsibleSection>\n </DropPanel>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BY;AA3BZ,mBAAyB;AACzB,0BAAqD;AACrD,iCAAmC;AACnC,wBAA2C;AAC3C,yBAAmF;AACnF,8BAAgC;AAChC,kBAAsD;AACtD,uBAA2B;AAC3B,sBAAqB;AACrB,wBAA0B;AAEnB,SAAS,cAAc,EAAE,OAAO,UAAU,QAAQ,MAAM,SAAS,GAAe;AACrF,QAAM,QAAI,sBAAK;AACf,QAAM,WAAO,6BAAU;AACvB,QAAM,aAAS,6BAAW;AAC1B,QAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,KAAK;AACpD,QAAM,WAAW,OAAO;AACxB,QAAM,YAAY,OAAO,SAAK,0BAAa,MAAM,MAAM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cAAc,CAAC,YAAY,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,QAAQ,EAAE,CAAC;AAAA,YAC1E,MAAM,4CAAC,4BAAK,WAAU,wBAAuB;AAAA,YAC7C,OAAO,EAAE,mBAAmB;AAAA,YAAG,MAAM,EAAE,4BAA4B;AAAA,YACnE;AAAA,0DAAC,2CAAgB,OAAO,MAAM,OAAO,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,GAAG,EAAE,EAAE,CAAC,GAAG;AAAA,cACrG,4CAAC,iCAAW,SAAS,SAAS,OAAO;AAAA;AAAA;AAAA,QACvC;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PanelProps } from './drop-panel.cjs';
3
+ import 'react';
4
+ import '../../../draft-Bw3JWkOZ.cjs';
5
+ import '@medialane/sdk';
6
+ import '../../../utils/drop/sale.cjs';
7
+ import '../../../i18n/translate.cjs';
8
+
9
+ declare function SettingsPanel({ draft, setDraft, errors, open, onToggle }: PanelProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { SettingsPanel };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PanelProps } from './drop-panel.js';
3
+ import 'react';
4
+ import '../../../draft-B0fPlVZS.js';
5
+ import '@medialane/sdk';
6
+ import '../../../utils/drop/sale.js';
7
+ import '../../../i18n/translate.js';
8
+
9
+ declare function SettingsPanel({ draft, setDraft, errors, open, onToggle }: PanelProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { SettingsPanel };
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useState } from "react";
4
+ import { Lock, ShieldCheck, SlidersHorizontal } from "lucide-react";
5
+ import { CollapsibleSection } from "../../collapsible-section.js";
6
+ import { DropPanel } from "./drop-panel.js";
7
+ import { AccessFields, FieldError, LicenseFields, PriceFields, TimingFields } from "./drop-fields.js";
8
+ import { ExclusiveFields } from "./exclusive-fields.js";
9
+ import { priceLabel, toDropTerms, validateSale } from "../../../utils/drop/sale.js";
10
+ import { useDropFee } from "../../../utils/use-drops.js";
11
+ import { useT } from "../../../i18n/provider.js";
12
+ import { useFormat } from "../../../i18n/use-format.js";
13
+ function SettingsPanel({ draft, setDraft, errors, open, onToggle }) {
14
+ const t = useT();
15
+ const intl = useFormat();
16
+ const feeBps = useDropFee();
17
+ const [licenseOpen, setLicenseOpen] = useState(false);
18
+ const settings = errors.settings;
19
+ const saleValid = Object.keys(validateSale(draft.sale, 0)).every((k) => k === "start");
20
+ const terms = saleValid ? toDropTerms(draft.sale) : null;
21
+ const price = terms ? priceLabel(terms.price, terms.paymentToken) : t("Set a price");
22
+ const start = draft.sale.startNow || !terms || terms.startTime === 0 ? t("Starts at launch") : t("Starts {date}", { date: intl.dateTime(new Date(terms.startTime * 1e3)) });
23
+ const fields = { draft, setDraft, errors: settings };
24
+ return /* @__PURE__ */ jsxs(
25
+ DropPanel,
26
+ {
27
+ icon: /* @__PURE__ */ jsx(SlidersHorizontal, {}),
28
+ title: t("Drop settings"),
29
+ open,
30
+ onToggle,
31
+ error: Object.values(settings).find(Boolean),
32
+ summary: /* @__PURE__ */ jsxs("span", { className: "block space-y-0.5", children: [
33
+ /* @__PURE__ */ jsx("span", { className: "block", children: t(price) }),
34
+ /* @__PURE__ */ jsx("span", { className: "block", children: start }),
35
+ draft.listOnly && /* @__PURE__ */ jsx("span", { className: "block", children: t("Wallet list") })
36
+ ] }),
37
+ children: [
38
+ /* @__PURE__ */ jsx(PriceFields, { ...fields, feeBps }),
39
+ /* @__PURE__ */ jsx(TimingFields, { ...fields }),
40
+ /* @__PURE__ */ jsx(AccessFields, { ...fields }),
41
+ /* @__PURE__ */ jsx(
42
+ CollapsibleSection,
43
+ {
44
+ open: licenseOpen,
45
+ onOpenChange: setLicenseOpen,
46
+ icon: /* @__PURE__ */ jsx(ShieldCheck, { className: "h-4 w-4 text-primary" }),
47
+ label: t("License terms"),
48
+ hint: t("For every asset"),
49
+ children: /* @__PURE__ */ jsx(LicenseFields, { draft, setDraft })
50
+ }
51
+ ),
52
+ /* @__PURE__ */ jsxs(
53
+ CollapsibleSection,
54
+ {
55
+ open: draft.gated.enabled,
56
+ onOpenChange: (enabled) => setDraft({ gated: { ...draft.gated, enabled } }),
57
+ icon: /* @__PURE__ */ jsx(Lock, { className: "h-4 w-4 text-primary" }),
58
+ label: t("Exclusive content"),
59
+ hint: t("A private link for holders"),
60
+ children: [
61
+ /* @__PURE__ */ jsx(ExclusiveFields, { value: draft.gated, onChange: (v) => setDraft({ gated: { ...draft.gated, ...v } }) }),
62
+ /* @__PURE__ */ jsx(FieldError, { message: settings.gated })
63
+ ]
64
+ }
65
+ )
66
+ ]
67
+ }
68
+ );
69
+ }
70
+ export {
71
+ SettingsPanel
72
+ };
73
+ //# sourceMappingURL=settings-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/drop/create/settings-panel.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { Lock, ShieldCheck, SlidersHorizontal } from \"lucide-react\";\nimport { CollapsibleSection } from \"../../collapsible-section.js\";\nimport { DropPanel, type PanelProps } from \"./drop-panel.js\";\nimport { AccessFields, FieldError, LicenseFields, PriceFields, TimingFields } from \"./drop-fields.js\";\nimport { ExclusiveFields } from \"./exclusive-fields.js\";\nimport { priceLabel, toDropTerms, validateSale } from \"../../../utils/drop/sale.js\";\nimport { useDropFee } from \"../../../utils/use-drops.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nexport function SettingsPanel({ draft, setDraft, errors, open, onToggle }: PanelProps) {\n const t = useT();\n const intl = useFormat();\n const feeBps = useDropFee();\n const [licenseOpen, setLicenseOpen] = useState(false);\n const settings = errors.settings;\n const saleValid = Object.keys(validateSale(draft.sale, 0)).every((k) => k === \"start\");\n const terms = saleValid ? toDropTerms(draft.sale) : null;\n const price = terms ? priceLabel(terms.price, terms.paymentToken) : t(\"Set a price\");\n const start = draft.sale.startNow || !terms || terms.startTime === 0\n ? t(\"Starts at launch\")\n : t(\"Starts {date}\", { date: intl.dateTime(new Date(terms.startTime * 1000)) });\n const fields = { draft, setDraft, errors: settings };\n\n return (\n <DropPanel\n icon={<SlidersHorizontal />}\n title={t(\"Drop settings\")}\n open={open}\n onToggle={onToggle}\n error={Object.values(settings).find(Boolean)}\n summary={\n <span className=\"block space-y-0.5\">\n <span className=\"block\">{t(price)}</span>\n <span className=\"block\">{start}</span>\n {draft.listOnly && <span className=\"block\">{t(\"Wallet list\")}</span>}\n </span>\n }\n >\n <PriceFields {...fields} feeBps={feeBps} />\n <TimingFields {...fields} />\n <AccessFields {...fields} />\n <CollapsibleSection open={licenseOpen} onOpenChange={setLicenseOpen}\n icon={<ShieldCheck className=\"h-4 w-4 text-primary\" />}\n label={t(\"License terms\")} hint={t(\"For every asset\")}>\n <LicenseFields draft={draft} setDraft={setDraft} />\n </CollapsibleSection>\n <CollapsibleSection open={draft.gated.enabled}\n onOpenChange={(enabled) => setDraft({ gated: { ...draft.gated, enabled } })}\n icon={<Lock className=\"h-4 w-4 text-primary\" />}\n label={t(\"Exclusive content\")} hint={t(\"A private link for holders\")}>\n <ExclusiveFields value={draft.gated} onChange={(v) => setDraft({ gated: { ...draft.gated, ...v } })} />\n <FieldError message={settings.gated} />\n </CollapsibleSection>\n </DropPanel>\n );\n}\n"],"mappings":";AA6BY,cAMJ,YANI;AA3BZ,SAAS,gBAAgB;AACzB,SAAS,MAAM,aAAa,yBAAyB;AACrD,SAAS,0BAA0B;AACnC,SAAS,iBAAkC;AAC3C,SAAS,cAAc,YAAY,eAAe,aAAa,oBAAoB;AACnF,SAAS,uBAAuB;AAChC,SAAS,YAAY,aAAa,oBAAoB;AACtD,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAA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M;AAAA,YAAa,cAAc;AAAA,YACnD,MAAM,oBAAC,eAAY,WAAU,wBAAuB;AAAA,YACpD,OAAO,EAAE,eAAe;AAAA,YAAG,MAAM,EAAE,iBAAiB;AAAA,YACpD,8BAAC,iBAAc,OAAc,UAAoB;AAAA;AAAA,QACnD;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YAAmB,MAAM,MAAM,MAAM;AAAA,YACpC,cAAc,CAAC,YAAY,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,QAAQ,EAAE,CAAC;AAAA,YAC1E,MAAM,oBAAC,QAAK,WAAU,wBAAuB;AAAA,YAC7C,OAAO,EAAE,mBAAmB;AAAA,YAAG,MAAM,EAAE,4BAA4B;AAAA,YACnE;AAAA,kCAAC,mBAAgB,OAAO,MAAM,OAAO,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,GAAG,EAAE,EAAE,CAAC,GAAG;AAAA,cACrG,oBAAC,cAAW,SAAS,SAAS,OAAO;AAAA;AAAA;AAAA,QACvC;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -27,9 +27,9 @@ var import_lucide_react = require("lucide-react");
27
27
  var import_translate = require("../../i18n/translate.js");
28
28
  var import_provider = require("../../i18n/provider.js");
29
29
  const FEATURES = [
30
- { icon: import_lucide_react.Layers, title: (0, import_translate.msg)("Edition or collection"), desc: (0, import_translate.msg)("Numbered copies or unique items.") },
31
- { icon: import_lucide_react.Timer, title: (0, import_translate.msg)("Your sale window"), desc: (0, import_translate.msg)("Open and close on any date.") },
32
- { icon: import_lucide_react.Users, title: (0, import_translate.msg)("Everyone or a list"), desc: (0, import_translate.msg)("Open to all or by invite.") },
30
+ { icon: import_lucide_react.Layers, title: (0, import_translate.msg)("Copies per asset"), desc: (0, import_translate.msg)("One artwork or many, each with its own copies.") },
31
+ { icon: import_lucide_react.Timer, title: (0, import_translate.msg)("A sale window"), desc: (0, import_translate.msg)("Start and end on any date.") },
32
+ { icon: import_lucide_react.Users, title: (0, import_translate.msg)("Open or by list"), desc: (0, import_translate.msg)("Everyone or listed wallets only.") },
33
33
  { icon: import_lucide_react.Package, title: (0, import_translate.msg)("Collectors own them"), desc: (0, import_translate.msg)("Collectors own every token.") }
34
34
  ];
35
35
  function DropFeatures() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/drop/drop-features.tsx"],"sourcesContent":["\"use client\";\n\nimport { Layers, Package, Timer, Users } from \"lucide-react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nimport { useT } from \"../../i18n/provider.js\";\nconst FEATURES = [\n { icon: Layers, title: msg(\"Edition or collection\"), desc: msg(\"Numbered copies or unique items.\") },\n { icon: Timer, title: msg(\"Your sale window\"), desc: msg(\"Open and close on any date.\") },\n { icon: Users, title: msg(\"Everyone or a list\"), desc: msg(\"Open to all or by invite.\") },\n { icon: Package, title: msg(\"Collectors own them\"), desc: msg(\"Collectors own every token.\") },\n];\n\nexport function DropFeatures() {\n const t = useT();\n return (\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n {FEATURES.map(({ icon: Icon, title, desc }) => (\n <div key={title} className=\"panel relative overflow-hidden p-4 space-y-2\">\n <Icon className=\"h-5 w-5 text-brand-orange\" />\n <p className=\"text-sm font-semibold leading-tight\">{t(title)}</p>\n <p className=\"text-xs text-muted-foreground leading-relaxed\">{t(desc)}</p>\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBQ;AAhBR,0BAA8C;AAC9C,uBAAoB;AAEpB,sBAAqB;AACrB,MAAM,WAAW;AAAA,EACf,EAAE,MAAM,4BAAQ,WAAO,sBAAI,uBAAuB,GAAG,UAAM,sBAAI,kCAAkC,EAAE;AAAA,EACnG,EAAE,MAAM,2BAAO,WAAO,sBAAI,kBAAkB,GAAG,UAAM,sBAAI,6BAA6B,EAAE;AAAA,EACxF,EAAE,MAAM,2BAAO,WAAO,sBAAI,oBAAoB,GAAG,UAAM,sBAAI,2BAA2B,EAAE;AAAA,EACxF,EAAE,MAAM,6BAAS,WAAO,sBAAI,qBAAqB,GAAG,UAAM,sBAAI,6BAA6B,EAAE;AAC/F;AAEO,SAAS,eAAe;AAC7B,QAAM,QAAI,sBAAK;AACf,SACE,4CAAC,SAAI,WAAU,yCACZ,mBAAS,IAAI,CAAC,EAAE,MAAM,MAAM,OAAO,KAAK,MACvC,6CAAC,SAAgB,WAAU,gDACzB;AAAA,gDAAC,QAAK,WAAU,6BAA4B;AAAA,IAC5C,4CAAC,OAAE,WAAU,uCAAuC,YAAE,KAAK,GAAE;AAAA,IAC7D,4CAAC,OAAE,WAAU,iDAAiD,YAAE,IAAI,GAAE;AAAA,OAH9D,KAIV,CACD,GACH;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/drop/drop-features.tsx"],"sourcesContent":["\"use client\";\n\nimport { Layers, Package, Timer, Users } from \"lucide-react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nimport { useT } from \"../../i18n/provider.js\";\nconst FEATURES = [\n { icon: Layers, title: msg(\"Copies per asset\"), desc: msg(\"One artwork or many, each with its own copies.\") },\n { icon: Timer, title: msg(\"A sale window\"), desc: msg(\"Start and end on any date.\") },\n { icon: Users, title: msg(\"Open or by list\"), desc: msg(\"Everyone or listed wallets only.\") },\n { icon: Package, title: msg(\"Collectors own them\"), desc: msg(\"Collectors own every token.\") },\n];\n\nexport function DropFeatures() {\n const t = useT();\n return (\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n {FEATURES.map(({ icon: Icon, title, desc }) => (\n <div key={title} className=\"panel relative overflow-hidden p-4 space-y-2\">\n <Icon className=\"h-5 w-5 text-brand-orange\" />\n <p className=\"text-sm font-semibold leading-tight\">{t(title)}</p>\n <p className=\"text-xs text-muted-foreground leading-relaxed\">{t(desc)}</p>\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBQ;AAhBR,0BAA8C;AAC9C,uBAAoB;AAEpB,sBAAqB;AACrB,MAAM,WAAW;AAAA,EACf,EAAE,MAAM,4BAAQ,WAAO,sBAAI,kBAAkB,GAAG,UAAM,sBAAI,gDAAgD,EAAE;AAAA,EAC5G,EAAE,MAAM,2BAAO,WAAO,sBAAI,eAAe,GAAG,UAAM,sBAAI,4BAA4B,EAAE;AAAA,EACpF,EAAE,MAAM,2BAAO,WAAO,sBAAI,iBAAiB,GAAG,UAAM,sBAAI,kCAAkC,EAAE;AAAA,EAC5F,EAAE,MAAM,6BAAS,WAAO,sBAAI,qBAAqB,GAAG,UAAM,sBAAI,6BAA6B,EAAE;AAC/F;AAEO,SAAS,eAAe;AAC7B,QAAM,QAAI,sBAAK;AACf,SACE,4CAAC,SAAI,WAAU,yCACZ,mBAAS,IAAI,CAAC,EAAE,MAAM,MAAM,OAAO,KAAK,MACvC,6CAAC,SAAgB,WAAU,gDACzB;AAAA,gDAAC,QAAK,WAAU,6BAA4B;AAAA,IAC5C,4CAAC,OAAE,WAAU,uCAAuC,YAAE,KAAK,GAAE;AAAA,IAC7D,4CAAC,OAAE,WAAU,iDAAiD,YAAE,IAAI,GAAE;AAAA,OAH9D,KAIV,CACD,GACH;AAEJ;","names":[]}
@@ -4,9 +4,9 @@ import { Layers, Package, Timer, Users } from "lucide-react";
4
4
  import { msg } from "../../i18n/translate.js";
5
5
  import { useT } from "../../i18n/provider.js";
6
6
  const FEATURES = [
7
- { icon: Layers, title: msg("Edition or collection"), desc: msg("Numbered copies or unique items.") },
8
- { icon: Timer, title: msg("Your sale window"), desc: msg("Open and close on any date.") },
9
- { icon: Users, title: msg("Everyone or a list"), desc: msg("Open to all or by invite.") },
7
+ { icon: Layers, title: msg("Copies per asset"), desc: msg("One artwork or many, each with its own copies.") },
8
+ { icon: Timer, title: msg("A sale window"), desc: msg("Start and end on any date.") },
9
+ { icon: Users, title: msg("Open or by list"), desc: msg("Everyone or listed wallets only.") },
10
10
  { icon: Package, title: msg("Collectors own them"), desc: msg("Collectors own every token.") }
11
11
  ];
12
12
  function DropFeatures() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/drop/drop-features.tsx"],"sourcesContent":["\"use client\";\n\nimport { Layers, Package, Timer, Users } from \"lucide-react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nimport { useT } from \"../../i18n/provider.js\";\nconst FEATURES = [\n { icon: Layers, title: msg(\"Edition or collection\"), desc: msg(\"Numbered copies or unique items.\") },\n { icon: Timer, title: msg(\"Your sale window\"), desc: msg(\"Open and close on any date.\") },\n { icon: Users, title: msg(\"Everyone or a list\"), desc: msg(\"Open to all or by invite.\") },\n { icon: Package, title: msg(\"Collectors own them\"), desc: msg(\"Collectors own every token.\") },\n];\n\nexport function DropFeatures() {\n const t = useT();\n return (\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n {FEATURES.map(({ icon: Icon, title, desc }) => (\n <div key={title} className=\"panel relative overflow-hidden p-4 space-y-2\">\n <Icon className=\"h-5 w-5 text-brand-orange\" />\n <p className=\"text-sm font-semibold leading-tight\">{t(title)}</p>\n <p className=\"text-xs text-muted-foreground leading-relaxed\">{t(desc)}</p>\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";AAkBQ,SACE,KADF;AAhBR,SAAS,QAAQ,SAAS,OAAO,aAAa;AAC9C,SAAS,WAAW;AAEpB,SAAS,YAAY;AACrB,MAAM,WAAW;AAAA,EACf,EAAE,MAAM,QAAQ,OAAO,IAAI,uBAAuB,GAAG,MAAM,IAAI,kCAAkC,EAAE;AAAA,EACnG,EAAE,MAAM,OAAO,OAAO,IAAI,kBAAkB,GAAG,MAAM,IAAI,6BAA6B,EAAE;AAAA,EACxF,EAAE,MAAM,OAAO,OAAO,IAAI,oBAAoB,GAAG,MAAM,IAAI,2BAA2B,EAAE;AAAA,EACxF,EAAE,MAAM,SAAS,OAAO,IAAI,qBAAqB,GAAG,MAAM,IAAI,6BAA6B,EAAE;AAC/F;AAEO,SAAS,eAAe;AAC7B,QAAM,IAAI,KAAK;AACf,SACE,oBAAC,SAAI,WAAU,yCACZ,mBAAS,IAAI,CAAC,EAAE,MAAM,MAAM,OAAO,KAAK,MACvC,qBAAC,SAAgB,WAAU,gDACzB;AAAA,wBAAC,QAAK,WAAU,6BAA4B;AAAA,IAC5C,oBAAC,OAAE,WAAU,uCAAuC,YAAE,KAAK,GAAE;AAAA,IAC7D,oBAAC,OAAE,WAAU,iDAAiD,YAAE,IAAI,GAAE;AAAA,OAH9D,KAIV,CACD,GACH;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/drop/drop-features.tsx"],"sourcesContent":["\"use client\";\n\nimport { Layers, Package, Timer, Users } from \"lucide-react\";\nimport { msg } from \"../../i18n/translate.js\";\n\nimport { useT } from \"../../i18n/provider.js\";\nconst FEATURES = [\n { icon: Layers, title: msg(\"Copies per asset\"), desc: msg(\"One artwork or many, each with its own copies.\") },\n { icon: Timer, title: msg(\"A sale window\"), desc: msg(\"Start and end on any date.\") },\n { icon: Users, title: msg(\"Open or by list\"), desc: msg(\"Everyone or listed wallets only.\") },\n { icon: Package, title: msg(\"Collectors own them\"), desc: msg(\"Collectors own every token.\") },\n];\n\nexport function DropFeatures() {\n const t = useT();\n return (\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n {FEATURES.map(({ icon: Icon, title, desc }) => (\n <div key={title} className=\"panel relative overflow-hidden p-4 space-y-2\">\n <Icon className=\"h-5 w-5 text-brand-orange\" />\n <p className=\"text-sm font-semibold leading-tight\">{t(title)}</p>\n <p className=\"text-xs text-muted-foreground leading-relaxed\">{t(desc)}</p>\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":";AAkBQ,SACE,KADF;AAhBR,SAAS,QAAQ,SAAS,OAAO,aAAa;AAC9C,SAAS,WAAW;AAEpB,SAAS,YAAY;AACrB,MAAM,WAAW;AAAA,EACf,EAAE,MAAM,QAAQ,OAAO,IAAI,kBAAkB,GAAG,MAAM,IAAI,gDAAgD,EAAE;AAAA,EAC5G,EAAE,MAAM,OAAO,OAAO,IAAI,eAAe,GAAG,MAAM,IAAI,4BAA4B,EAAE;AAAA,EACpF,EAAE,MAAM,OAAO,OAAO,IAAI,iBAAiB,GAAG,MAAM,IAAI,kCAAkC,EAAE;AAAA,EAC5F,EAAE,MAAM,SAAS,OAAO,IAAI,qBAAqB,GAAG,MAAM,IAAI,6BAA6B,EAAE;AAC/F;AAEO,SAAS,eAAe;AAC7B,QAAM,IAAI,KAAK;AACf,SACE,oBAAC,SAAI,WAAU,yCACZ,mBAAS,IAAI,CAAC,EAAE,MAAM,MAAM,OAAO,KAAK,MACvC,qBAAC,SAAgB,WAAU,gDACzB;AAAA,wBAAC,QAAK,WAAU,6BAA4B;AAAA,IAC5C,oBAAC,OAAE,WAAU,uCAAuC,YAAE,KAAK,GAAE;AAAA,IAC7D,oBAAC,OAAE,WAAU,iDAAiD,YAAE,IAAI,GAAE;AAAA,OAH9D,KAIV,CACD,GACH;AAEJ;","names":[]}
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { DropPhase } from '../../utils/drop/view.cjs';
3
3
  import '@medialane/sdk/starknet';
4
+ import '../../i18n/translate.cjs';
4
5
 
5
6
  declare function DropStatusBadge({ phase }: {
6
7
  phase: DropPhase;
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { DropPhase } from '../../utils/drop/view.js';
3
3
  import '@medialane/sdk/starknet';
4
+ import '../../i18n/translate.js';
4
5
 
5
6
  declare function DropStatusBadge({ phase }: {
6
7
  phase: DropPhase;
@@ -36,7 +36,7 @@ function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction
36
36
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "panel space-y-5 p-5", children: [
37
37
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
38
38
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_status.DropStatusBadge, { phase: view.phase }),
39
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs text-muted-foreground", children: view.statusText })
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs text-muted-foreground", children: t(view.statusText.text, view.statusText.vars) })
40
40
  ] }),
41
41
  view.countdown && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_countdown.DropCountdown, { targetTs: view.countdown.target, label: t(view.countdown.label) }),
42
42
  maxSupply > 0n ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_status.DropSupplyProgress, { minted: Number(minted), max: Number(maxSupply) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t("{value} minted", { value: intl.number(Number(minted)) }) }),
@@ -52,9 +52,9 @@ function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction
52
52
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", className: "rounded-xl p-2 bg-background/40", disabled: quantity >= view.maxQuantity, onClick: () => onQuantity(quantity + 1n), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "h-3.5 w-3.5" }) })
53
53
  ] })
54
54
  ] }),
55
- view.totalText && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: view.totalText }),
56
- view.eligibility && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm", children: view.eligibility }),
57
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_action_button.ActionButton, { solid: true, big: true, disabled: view.button.action === "none", onClick: onAction, className: "w-full", children: t(view.button.label) })
55
+ view.totalText && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t(view.totalText.text, view.totalText.vars) }),
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm", children: t(view.eligibility.text, view.eligibility.vars) }),
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_action_button.ActionButton, { solid: true, big: true, disabled: view.button.action === "none", onClick: onAction, className: "w-full", children: t(view.button.label.text, view.button.label.vars) })
58
58
  ] });
59
59
  }
60
60
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/drop/page/drop-action-box.tsx"],"sourcesContent":["\"use client\";\n\nimport { Minus, Plus } from \"lucide-react\";\nimport { DropCountdown } from \"../../drop-countdown.js\";\nimport { DropStatusBadge, DropSupplyProgress } from \"../drop-status.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport type { ActionBoxView } from \"../../../utils/drop/view.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nexport interface DropActionBoxProps {\n view: ActionBoxView;\n minted: bigint;\n maxSupply: bigint;\n quantity: bigint;\n onQuantity: (q: bigint) => void;\n onAction: () => void;\n}\n\nexport function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction }: DropActionBoxProps) {\n const intl = useFormat();\n const t = useT();\n const canPick = view.button.action === \"mint\" && view.maxQuantity > 1n;\n return (\n <div className=\"panel space-y-5 p-5\">\n <div className=\"flex items-center justify-between gap-3\">\n <DropStatusBadge phase={view.phase} />\n <span className=\"text-xs text-muted-foreground\">{view.statusText}</span>\n </div>\n {view.countdown && <DropCountdown targetTs={view.countdown.target} label={t(view.countdown.label)} />}\n {maxSupply > 0n\n ? <DropSupplyProgress minted={Number(minted)} max={Number(maxSupply)} />\n : <p className=\"text-sm text-muted-foreground\">{t(\"{value} minted\", { value: intl.number(Number(minted)) })}</p>}\n <div className=\"flex items-end justify-between gap-3\">\n <div>\n <p className=\"text-xs text-muted-foreground\">{t(\"Price\")}</p>\n <p className=\"text-xl font-bold\">{view.priceText}</p>\n </div>\n {canPick && (\n <div className=\"flex items-center gap-2\" aria-label={t(\"Quantity\")}>\n <span className=\"sr-only\">{t(\"Quantity\")}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity <= 1n} onClick={() => onQuantity(quantity - 1n)}><Minus className=\"h-3.5 w-3.5\" /></button>\n <span className=\"w-8 text-center font-semibold tabular-nums\">{quantity.toString()}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity >= view.maxQuantity} onClick={() => onQuantity(quantity + 1n)}><Plus className=\"h-3.5 w-3.5\" /></button>\n </div>\n )}\n </div>\n {view.totalText && <p className=\"text-sm text-muted-foreground\">{view.totalText}</p>}\n {view.eligibility && <p className=\"text-sm\">{view.eligibility}</p>}\n <ActionButton solid big disabled={view.button.action === \"none\"} onClick={onAction} className=\"w-full\">\n {t(view.button.label)}\n </ActionButton>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBM;AAvBN,0BAA4B;AAC5B,4BAA8B;AAC9B,yBAAoD;AACpD,2BAA6B;AAE7B,sBAAqB;AACrB,wBAA0B;AAWnB,SAAS,cAAc,EAAE,MAAM,QAAQ,WAAW,UAAU,YAAY,SAAS,GAAuB;AAC7G,QAAM,WAAO,6BAAU;AACvB,QAAM,QAAI,sBAAK;AACf,QAAM,UAAU,KAAK,OAAO,WAAW,UAAU,KAAK,cAAc;AACpE,SACE,6CAAC,SAAI,WAAU,uBACb;AAAA,iDAAC,SAAI,WAAU,2CACb;AAAA,kDAAC,sCAAgB,OAAO,KAAK,OAAO;AAAA,MACpC,4CAAC,UAAK,WAAU,iCAAiC,eAAK,YAAW;AAAA,OACnE;AAAA,IACC,KAAK,aAAa,4CAAC,uCAAc,UAAU,KAAK,UAAU,QAAQ,OAAO,EAAE,KAAK,UAAU,KAAK,GAAG;AAAA,IAClG,YAAY,KACT,4CAAC,yCAAmB,QAAQ,OAAO,MAAM,GAAG,KAAK,OAAO,SAAS,GAAG,IACpE,4CAAC,OAAE,WAAU,iCAAiC,YAAE,kBAAkB,EAAE,OAAO,KAAK,OAAO,OAAO,MAAM,CAAC,EAAE,CAAC,GAAE;AAAA,IAC9G,6CAAC,SAAI,WAAU,wCACb;AAAA,mDAAC,SACC;AAAA,oDAAC,OAAE,WAAU,iCAAiC,YAAE,OAAO,GAAE;AAAA,QACzD,4CAAC,OAAE,WAAU,qBAAqB,eAAK,WAAU;AAAA,SACnD;AAAA,MACC,WACC,6CAAC,SAAI,WAAU,2BAA0B,cAAY,EAAE,UAAU,GAC/D;AAAA,oDAAC,UAAK,WAAU,WAAW,YAAE,UAAU,GAAE;AAAA,QACzC,4CAAC,YAAO,MAAK,UAAS,WAAU,mCAAkC,UAAU,YAAY,IAAI,SAAS,MAAM,WAAW,WAAW,EAAE,GAAG,sDAAC,6BAAM,WAAU,eAAc,GAAE;AAAA,QACvK,4CAAC,UAAK,WAAU,8CAA8C,mBAAS,SAAS,GAAE;AAAA,QAClF,4CAAC,YAAO,MAAK,UAAS,WAAU,mCAAkC,UAAU,YAAY,KAAK,aAAa,SAAS,MAAM,WAAW,WAAW,EAAE,GAAG,sDAAC,4BAAK,WAAU,eAAc,GAAE;AAAA,SACtL;AAAA,OAEJ;AAAA,IACC,KAAK,aAAa,4CAAC,OAAE,WAAU,iCAAiC,eAAK,WAAU;AAAA,IAC/E,KAAK,eAAe,4CAAC,OAAE,WAAU,WAAW,eAAK,aAAY;AAAA,IAC9D,4CAAC,qCAAa,OAAK,MAAC,KAAG,MAAC,UAAU,KAAK,OAAO,WAAW,QAAQ,SAAS,UAAU,WAAU,UAC3F,YAAE,KAAK,OAAO,KAAK,GACtB;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/drop/page/drop-action-box.tsx"],"sourcesContent":["\"use client\";\n\nimport { Minus, Plus } from \"lucide-react\";\nimport { DropCountdown } from \"../../drop-countdown.js\";\nimport { DropStatusBadge, DropSupplyProgress } from \"../drop-status.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport type { ActionBoxView } from \"../../../utils/drop/view.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nexport interface DropActionBoxProps {\n view: ActionBoxView;\n minted: bigint;\n maxSupply: bigint;\n quantity: bigint;\n onQuantity: (q: bigint) => void;\n onAction: () => void;\n}\n\nexport function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction }: DropActionBoxProps) {\n const intl = useFormat();\n const t = useT();\n const canPick = view.button.action === \"mint\" && view.maxQuantity > 1n;\n return (\n <div className=\"panel space-y-5 p-5\">\n <div className=\"flex items-center justify-between gap-3\">\n <DropStatusBadge phase={view.phase} />\n <span className=\"text-xs text-muted-foreground\">{t(view.statusText.text, view.statusText.vars)}</span>\n </div>\n {view.countdown && <DropCountdown targetTs={view.countdown.target} label={t(view.countdown.label)} />}\n {maxSupply > 0n\n ? <DropSupplyProgress minted={Number(minted)} max={Number(maxSupply)} />\n : <p className=\"text-sm text-muted-foreground\">{t(\"{value} minted\", { value: intl.number(Number(minted)) })}</p>}\n <div className=\"flex items-end justify-between gap-3\">\n <div>\n <p className=\"text-xs text-muted-foreground\">{t(\"Price\")}</p>\n <p className=\"text-xl font-bold\">{view.priceText}</p>\n </div>\n {canPick && (\n <div className=\"flex items-center gap-2\" aria-label={t(\"Quantity\")}>\n <span className=\"sr-only\">{t(\"Quantity\")}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity <= 1n} onClick={() => onQuantity(quantity - 1n)}><Minus className=\"h-3.5 w-3.5\" /></button>\n <span className=\"w-8 text-center font-semibold tabular-nums\">{quantity.toString()}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity >= view.maxQuantity} onClick={() => onQuantity(quantity + 1n)}><Plus className=\"h-3.5 w-3.5\" /></button>\n </div>\n )}\n </div>\n {view.totalText && <p className=\"text-sm text-muted-foreground\">{t(view.totalText.text, view.totalText.vars)}</p>}\n <p className=\"text-sm\">{t(view.eligibility.text, view.eligibility.vars)}</p>\n <ActionButton solid big disabled={view.button.action === \"none\"} onClick={onAction} className=\"w-full\">\n {t(view.button.label.text, view.button.label.vars)}\n </ActionButton>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBM;AAvBN,0BAA4B;AAC5B,4BAA8B;AAC9B,yBAAoD;AACpD,2BAA6B;AAE7B,sBAAqB;AACrB,wBAA0B;AAWnB,SAAS,cAAc,EAAE,MAAM,QAAQ,WAAW,UAAU,YAAY,SAAS,GAAuB;AAC7G,QAAM,WAAO,6BAAU;AACvB,QAAM,QAAI,sBAAK;AACf,QAAM,UAAU,KAAK,OAAO,WAAW,UAAU,KAAK,cAAc;AACpE,SACE,6CAAC,SAAI,WAAU,uBACb;AAAA,iDAAC,SAAI,WAAU,2CACb;AAAA,kDAAC,sCAAgB,OAAO,KAAK,OAAO;AAAA,MACpC,4CAAC,UAAK,WAAU,iCAAiC,YAAE,KAAK,WAAW,MAAM,KAAK,WAAW,IAAI,GAAE;AAAA,OACjG;AAAA,IACC,KAAK,aAAa,4CAAC,uCAAc,UAAU,KAAK,UAAU,QAAQ,OAAO,EAAE,KAAK,UAAU,KAAK,GAAG;AAAA,IAClG,YAAY,KACT,4CAAC,yCAAmB,QAAQ,OAAO,MAAM,GAAG,KAAK,OAAO,SAAS,GAAG,IACpE,4CAAC,OAAE,WAAU,iCAAiC,YAAE,kBAAkB,EAAE,OAAO,KAAK,OAAO,OAAO,MAAM,CAAC,EAAE,CAAC,GAAE;AAAA,IAC9G,6CAAC,SAAI,WAAU,wCACb;AAAA,mDAAC,SACC;AAAA,oDAAC,OAAE,WAAU,iCAAiC,YAAE,OAAO,GAAE;AAAA,QACzD,4CAAC,OAAE,WAAU,qBAAqB,eAAK,WAAU;AAAA,SACnD;AAAA,MACC,WACC,6CAAC,SAAI,WAAU,2BAA0B,cAAY,EAAE,UAAU,GAC/D;AAAA,oDAAC,UAAK,WAAU,WAAW,YAAE,UAAU,GAAE;AAAA,QACzC,4CAAC,YAAO,MAAK,UAAS,WAAU,mCAAkC,UAAU,YAAY,IAAI,SAAS,MAAM,WAAW,WAAW,EAAE,GAAG,sDAAC,6BAAM,WAAU,eAAc,GAAE;AAAA,QACvK,4CAAC,UAAK,WAAU,8CAA8C,mBAAS,SAAS,GAAE;AAAA,QAClF,4CAAC,YAAO,MAAK,UAAS,WAAU,mCAAkC,UAAU,YAAY,KAAK,aAAa,SAAS,MAAM,WAAW,WAAW,EAAE,GAAG,sDAAC,4BAAK,WAAU,eAAc,GAAE;AAAA,SACtL;AAAA,OAEJ;AAAA,IACC,KAAK,aAAa,4CAAC,OAAE,WAAU,iCAAiC,YAAE,KAAK,UAAU,MAAM,KAAK,UAAU,IAAI,GAAE;AAAA,IAC7G,4CAAC,OAAE,WAAU,WAAW,YAAE,KAAK,YAAY,MAAM,KAAK,YAAY,IAAI,GAAE;AAAA,IACxE,4CAAC,qCAAa,OAAK,MAAC,KAAG,MAAC,UAAU,KAAK,OAAO,WAAW,QAAQ,SAAS,UAAU,WAAU,UAC3F,YAAE,KAAK,OAAO,MAAM,MAAM,KAAK,OAAO,MAAM,IAAI,GACnD;AAAA,KACF;AAEJ;","names":[]}
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ActionBoxView } from '../../../utils/drop/view.cjs';
3
3
  import '@medialane/sdk/starknet';
4
+ import '../../../i18n/translate.cjs';
4
5
 
5
6
  interface DropActionBoxProps {
6
7
  view: ActionBoxView;
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ActionBoxView } from '../../../utils/drop/view.js';
3
3
  import '@medialane/sdk/starknet';
4
+ import '../../../i18n/translate.js';
4
5
 
5
6
  interface DropActionBoxProps {
6
7
  view: ActionBoxView;
@@ -13,7 +13,7 @@ function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction
13
13
  return /* @__PURE__ */ jsxs("div", { className: "panel space-y-5 p-5", children: [
14
14
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
15
15
  /* @__PURE__ */ jsx(DropStatusBadge, { phase: view.phase }),
16
- /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: view.statusText })
16
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: t(view.statusText.text, view.statusText.vars) })
17
17
  ] }),
18
18
  view.countdown && /* @__PURE__ */ jsx(DropCountdown, { targetTs: view.countdown.target, label: t(view.countdown.label) }),
19
19
  maxSupply > 0n ? /* @__PURE__ */ jsx(DropSupplyProgress, { minted: Number(minted), max: Number(maxSupply) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("{value} minted", { value: intl.number(Number(minted)) }) }),
@@ -29,9 +29,9 @@ function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction
29
29
  /* @__PURE__ */ jsx("button", { type: "button", className: "rounded-xl p-2 bg-background/40", disabled: quantity >= view.maxQuantity, onClick: () => onQuantity(quantity + 1n), children: /* @__PURE__ */ jsx(Plus, { className: "h-3.5 w-3.5" }) })
30
30
  ] })
31
31
  ] }),
32
- view.totalText && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: view.totalText }),
33
- view.eligibility && /* @__PURE__ */ jsx("p", { className: "text-sm", children: view.eligibility }),
34
- /* @__PURE__ */ jsx(ActionButton, { solid: true, big: true, disabled: view.button.action === "none", onClick: onAction, className: "w-full", children: t(view.button.label) })
32
+ view.totalText && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t(view.totalText.text, view.totalText.vars) }),
33
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: t(view.eligibility.text, view.eligibility.vars) }),
34
+ /* @__PURE__ */ jsx(ActionButton, { solid: true, big: true, disabled: view.button.action === "none", onClick: onAction, className: "w-full", children: t(view.button.label.text, view.button.label.vars) })
35
35
  ] });
36
36
  }
37
37
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/drop/page/drop-action-box.tsx"],"sourcesContent":["\"use client\";\n\nimport { Minus, Plus } from \"lucide-react\";\nimport { DropCountdown } from \"../../drop-countdown.js\";\nimport { DropStatusBadge, DropSupplyProgress } from \"../drop-status.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport type { ActionBoxView } from \"../../../utils/drop/view.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nexport interface DropActionBoxProps {\n view: ActionBoxView;\n minted: bigint;\n maxSupply: bigint;\n quantity: bigint;\n onQuantity: (q: bigint) => void;\n onAction: () => void;\n}\n\nexport function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction }: DropActionBoxProps) {\n const intl = useFormat();\n const t = useT();\n const canPick = view.button.action === \"mint\" && view.maxQuantity > 1n;\n return (\n <div className=\"panel space-y-5 p-5\">\n <div className=\"flex items-center justify-between gap-3\">\n <DropStatusBadge phase={view.phase} />\n <span className=\"text-xs text-muted-foreground\">{view.statusText}</span>\n </div>\n {view.countdown && <DropCountdown targetTs={view.countdown.target} label={t(view.countdown.label)} />}\n {maxSupply > 0n\n ? <DropSupplyProgress minted={Number(minted)} max={Number(maxSupply)} />\n : <p className=\"text-sm text-muted-foreground\">{t(\"{value} minted\", { value: intl.number(Number(minted)) })}</p>}\n <div className=\"flex items-end justify-between gap-3\">\n <div>\n <p className=\"text-xs text-muted-foreground\">{t(\"Price\")}</p>\n <p className=\"text-xl font-bold\">{view.priceText}</p>\n </div>\n {canPick && (\n <div className=\"flex items-center gap-2\" aria-label={t(\"Quantity\")}>\n <span className=\"sr-only\">{t(\"Quantity\")}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity <= 1n} onClick={() => onQuantity(quantity - 1n)}><Minus className=\"h-3.5 w-3.5\" /></button>\n <span className=\"w-8 text-center font-semibold tabular-nums\">{quantity.toString()}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity >= view.maxQuantity} onClick={() => onQuantity(quantity + 1n)}><Plus className=\"h-3.5 w-3.5\" /></button>\n </div>\n )}\n </div>\n {view.totalText && <p className=\"text-sm text-muted-foreground\">{view.totalText}</p>}\n {view.eligibility && <p className=\"text-sm\">{view.eligibility}</p>}\n <ActionButton solid big disabled={view.button.action === \"none\"} onClick={onAction} className=\"w-full\">\n {t(view.button.label)}\n </ActionButton>\n </div>\n );\n}\n"],"mappings":";AAyBM,SACE,KADF;AAvBN,SAAS,OAAO,YAAY;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,iBAAiB,0BAA0B;AACpD,SAAS,oBAAoB;AAE7B,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAWnB,SAAS,cAAc,EAAE,MAAM,QAAQ,WAAW,UAAU,YAAY,SAAS,GAAuB;AAC7G,QAAM,OAAO,UAAU;AACvB,QAAM,IAAI,KAAK;AACf,QAAM,UAAU,KAAK,OAAO,WAAW,UAAU,KAAK,cAAc;AACpE,SACE,qBAAC,SAAI,WAAU,uBACb;AAAA,yBAAC,SAAI,WAAU,2CACb;AAAA,0BAAC,mBAAgB,OAAO,KAAK,OAAO;AAAA,MACpC,oBAAC,UAAK,WAAU,iCAAiC,eAAK,YAAW;AAAA,OACnE;AAAA,IACC,KAAK,aAAa,oBAAC,iBAAc,UAAU,KAAK,UAAU,QAAQ,OAAO,EAAE,KAAK,UAAU,KAAK,GAAG;AAAA,IAClG,YAAY,KACT,oBAAC,sBAAmB,QAAQ,OAAO,MAAM,GAAG,KAAK,OAAO,SAAS,GAAG,IACpE,oBAAC,OAAE,WAAU,iCAAiC,YAAE,kBAAkB,EAAE,OAAO,KAAK,OAAO,OAAO,MAAM,CAAC,EAAE,CAAC,GAAE;AAAA,IAC9G,qBAAC,SAAI,WAAU,wCACb;AAAA,2BAAC,SACC;AAAA,4BAAC,OAAE,WAAU,iCAAiC,YAAE,OAAO,GAAE;AAAA,QACzD,oBAAC,OAAE,WAAU,qBAAqB,eAAK,WAAU;AAAA,SACnD;AAAA,MACC,WACC,qBAAC,SAAI,WAAU,2BAA0B,cAAY,EAAE,UAAU,GAC/D;AAAA,4BAAC,UAAK,WAAU,WAAW,YAAE,UAAU,GAAE;AAAA,QACzC,oBAAC,YAAO,MAAK,UAAS,WAAU,mCAAkC,UAAU,YAAY,IAAI,SAAS,MAAM,WAAW,WAAW,EAAE,GAAG,8BAAC,SAAM,WAAU,eAAc,GAAE;AAAA,QACvK,oBAAC,UAAK,WAAU,8CAA8C,mBAAS,SAAS,GAAE;AAAA,QAClF,oBAAC,YAAO,MAAK,UAAS,WAAU,mCAAkC,UAAU,YAAY,KAAK,aAAa,SAAS,MAAM,WAAW,WAAW,EAAE,GAAG,8BAAC,QAAK,WAAU,eAAc,GAAE;AAAA,SACtL;AAAA,OAEJ;AAAA,IACC,KAAK,aAAa,oBAAC,OAAE,WAAU,iCAAiC,eAAK,WAAU;AAAA,IAC/E,KAAK,eAAe,oBAAC,OAAE,WAAU,WAAW,eAAK,aAAY;AAAA,IAC9D,oBAAC,gBAAa,OAAK,MAAC,KAAG,MAAC,UAAU,KAAK,OAAO,WAAW,QAAQ,SAAS,UAAU,WAAU,UAC3F,YAAE,KAAK,OAAO,KAAK,GACtB;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/drop/page/drop-action-box.tsx"],"sourcesContent":["\"use client\";\n\nimport { Minus, Plus } from \"lucide-react\";\nimport { DropCountdown } from \"../../drop-countdown.js\";\nimport { DropStatusBadge, DropSupplyProgress } from \"../drop-status.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport type { ActionBoxView } from \"../../../utils/drop/view.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport { useFormat } from \"../../../i18n/use-format.js\";\n\nexport interface DropActionBoxProps {\n view: ActionBoxView;\n minted: bigint;\n maxSupply: bigint;\n quantity: bigint;\n onQuantity: (q: bigint) => void;\n onAction: () => void;\n}\n\nexport function DropActionBox({ view, minted, maxSupply, quantity, onQuantity, onAction }: DropActionBoxProps) {\n const intl = useFormat();\n const t = useT();\n const canPick = view.button.action === \"mint\" && view.maxQuantity > 1n;\n return (\n <div className=\"panel space-y-5 p-5\">\n <div className=\"flex items-center justify-between gap-3\">\n <DropStatusBadge phase={view.phase} />\n <span className=\"text-xs text-muted-foreground\">{t(view.statusText.text, view.statusText.vars)}</span>\n </div>\n {view.countdown && <DropCountdown targetTs={view.countdown.target} label={t(view.countdown.label)} />}\n {maxSupply > 0n\n ? <DropSupplyProgress minted={Number(minted)} max={Number(maxSupply)} />\n : <p className=\"text-sm text-muted-foreground\">{t(\"{value} minted\", { value: intl.number(Number(minted)) })}</p>}\n <div className=\"flex items-end justify-between gap-3\">\n <div>\n <p className=\"text-xs text-muted-foreground\">{t(\"Price\")}</p>\n <p className=\"text-xl font-bold\">{view.priceText}</p>\n </div>\n {canPick && (\n <div className=\"flex items-center gap-2\" aria-label={t(\"Quantity\")}>\n <span className=\"sr-only\">{t(\"Quantity\")}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity <= 1n} onClick={() => onQuantity(quantity - 1n)}><Minus className=\"h-3.5 w-3.5\" /></button>\n <span className=\"w-8 text-center font-semibold tabular-nums\">{quantity.toString()}</span>\n <button type=\"button\" className=\"rounded-xl p-2 bg-background/40\" disabled={quantity >= view.maxQuantity} onClick={() => onQuantity(quantity + 1n)}><Plus className=\"h-3.5 w-3.5\" /></button>\n </div>\n )}\n </div>\n {view.totalText && <p className=\"text-sm text-muted-foreground\">{t(view.totalText.text, view.totalText.vars)}</p>}\n <p className=\"text-sm\">{t(view.eligibility.text, view.eligibility.vars)}</p>\n <ActionButton solid big disabled={view.button.action === \"none\"} onClick={onAction} className=\"w-full\">\n {t(view.button.label.text, view.button.label.vars)}\n </ActionButton>\n </div>\n );\n}\n"],"mappings":";AAyBM,SACE,KADF;AAvBN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AAAA,QACvK,oBAAC,UAAK,WAAU,8CAA8C,mBAAS,SAAS,GAAE;AAAA,QAClF,oBAAC,YAAO,MAAK,UAAS,WAAU,mCAAkC,UAAU,YAAY,KAAK,aAAa,SAAS,MAAM,WAAW,WAAW,EAAE,GAAG,8BAAC,QAAK,WAAU,eAAc,GAAE;AAAA,SACtL;AAAA,OAEJ;AAAA,IACC,KAAK,aAAa,oBAAC,OAAE,WAAU,iCAAiC,YAAE,KAAK,UAAU,MAAM,KAAK,UAAU,IAAI,GAAE;AAAA,IAC7G,oBAAC,OAAE,WAAU,WAAW,YAAE,KAAK,YAAY,MAAM,KAAK,YAAY,IAAI,GAAE;AAAA,IACxE,oBAAC,gBAAa,OAAK,MAAC,KAAG,MAAC,UAAU,KAAK,OAAO,WAAW,QAAQ,SAAS,UAAU,WAAU,UAC3F,YAAE,KAAK,OAAO,MAAM,MAAM,KAAK,OAAO,MAAM,IAAI,GACnD;AAAA,KACF;AAEJ;","names":[]}
@@ -60,7 +60,7 @@ function DropMintDialog({
60
60
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: t("Mint from this drop.") }),
61
61
  step.kind === "confirm" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
62
62
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dialog.DialogTitle, { className: "text-lg font-semibold", children: t("Mint {quantity} from {name}", { quantity: quantity.toString(), name }) }),
63
- totalText && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: totalText }),
63
+ totalText && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t(totalText.text, totalText.vars) }),
64
64
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_action_button.ActionButton, { solid: true, big: true, onClick: () => void mint(), className: "w-full", children: t("Confirm mint") })
65
65
  ] }),
66
66
  step.kind === "minting" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_dialog.DialogTitle, { className: "flex items-center gap-2 text-lg font-semibold", children: [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/drop/page/drop-mint-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"../../dialog.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport { Button } from \"../../button.js\";\nimport { describeError } from \"../../../utils/describe-error.js\";\nimport { useT } from \"../../../i18n/provider.js\";\n\ntype Step = { kind: \"confirm\" } | { kind: \"minting\" } | { kind: \"done\"; tokenIds: string[] } | { kind: \"error\"; message: string };\n\nexport function DropMintDialog({\n open, onClose, name, quantity, totalText, onMint, portfolioHref,\n}: {\n open: boolean;\n onClose: () => void;\n name: string;\n quantity: bigint;\n totalText: string | null;\n onMint: () => Promise<{ tokenIds: string[] }>;\n portfolioHref: string;\n}) {\n const t = useT();\n const [step, setStep] = useState<Step>({ kind: \"confirm\" });\n const mint = async () => {\n setStep({ kind: \"minting\" });\n try {\n setStep({ kind: \"done\", tokenIds: (await onMint()).tokenIds });\n } catch (err) {\n setStep({ kind: \"error\", message: describeError(err).message });\n }\n };\n const close = () => {\n if (step.kind === \"minting\") return;\n setStep({ kind: \"confirm\" });\n onClose();\n };\n return (\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"gap-5 sm:max-w-md\" hideClose={step.kind === \"minting\"}>\n <DialogDescription className=\"sr-only\">{t(\"Mint from this drop.\")}</DialogDescription>\n {step.kind === \"confirm\" && (\n <>\n <DialogTitle className=\"text-lg font-semibold\">{t(\"Mint {quantity} from {name}\", { quantity: quantity.toString(), name })}</DialogTitle>\n {totalText && <p className=\"text-sm text-muted-foreground\">{totalText}</p>}\n <ActionButton solid big onClick={() => void mint()} className=\"w-full\">{t(\"Confirm mint\")}</ActionButton>\n </>\n )}\n {step.kind === \"minting\" && <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><Loader2 className=\"h-4 w-4 animate-spin\" />{t(\"Minting…\")}</DialogTitle>}\n {step.kind === \"done\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><CheckCircle2 className=\"h-5 w-5 text-brand-blue\" />{t(\"Minted\")}</DialogTitle>\n <Button asChild><a href={portfolioHref}>{t(\"View in portfolio\")}</a></Button>\n </>\n )}\n {step.kind === \"error\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><XCircle className=\"h-4 w-4 text-destructive\" />{t(\"Not minted\")}</DialogTitle>\n <p className=\"text-sm text-muted-foreground\">{step.message}</p>\n <Button onClick={() => void mint()}>{t(\"Try again\")}</Button>\n </>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyCQ;AAvCR,mBAAyB;AACzB,0BAA+C;AAC/C,oBAAsE;AACtE,2BAA6B;AAC7B,oBAAuB;AACvB,4BAA8B;AAC9B,sBAAqB;AAId,SAAS,eAAe;AAAA,EAC7B;AAAA,EAAM;AAAA,EAAS;AAAA,EAAM;AAAA,EAAU;AAAA,EAAW;AAAA,EAAQ;AACpD,GAQG;AACD,QAAM,QAAI,sBAAK;AACf,QAAM,CAAC,MAAM,OAAO,QAAI,uBAAe,EAAE,MAAM,UAAU,CAAC;AAC1D,QAAM,OAAO,YAAY;AACvB,YAAQ,EAAE,MAAM,UAAU,CAAC;AAC3B,QAAI;AACF,cAAQ,EAAE,MAAM,QAAQ,WAAW,MAAM,OAAO,GAAG,SAAS,CAAC;AAAA,IAC/D,SAAS,KAAK;AACZ,cAAQ,EAAE,MAAM,SAAS,aAAS,qCAAc,GAAG,EAAE,QAAQ,CAAC;AAAA,IAChE;AAAA,EACF;AACA,QAAM,QAAQ,MAAM;AAClB,QAAI,KAAK,SAAS,UAAW;AAC7B,YA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AEJ,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/drop/page/drop-mint-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"../../dialog.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport { Button } from \"../../button.js\";\nimport { describeError } from \"../../../utils/describe-error.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport type { Phrase } from \"../../../i18n/translate.js\";\n\ntype Step = { kind: \"confirm\" } | { kind: \"minting\" } | { kind: \"done\"; tokenIds: string[] } | { kind: \"error\"; message: string };\n\nexport function DropMintDialog({\n open, onClose, name, quantity, totalText, onMint, portfolioHref,\n}: {\n open: boolean;\n onClose: () => void;\n name: string;\n quantity: bigint;\n totalText: Phrase | null;\n onMint: () => Promise<{ tokenIds: string[] }>;\n portfolioHref: string;\n}) {\n const t = useT();\n const [step, setStep] = useState<Step>({ kind: \"confirm\" });\n const mint = async () => {\n setStep({ kind: \"minting\" });\n try {\n setStep({ kind: \"done\", tokenIds: (await onMint()).tokenIds });\n } catch (err) {\n setStep({ kind: \"error\", message: describeError(err).message });\n }\n };\n const close = () => {\n if (step.kind === \"minting\") return;\n setStep({ kind: \"confirm\" });\n onClose();\n };\n return (\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"gap-5 sm:max-w-md\" hideClose={step.kind === \"minting\"}>\n <DialogDescription className=\"sr-only\">{t(\"Mint from this drop.\")}</DialogDescription>\n {step.kind === \"confirm\" && (\n <>\n <DialogTitle className=\"text-lg font-semibold\">{t(\"Mint {quantity} from {name}\", { quantity: quantity.toString(), name })}</DialogTitle>\n {totalText && <p className=\"text-sm text-muted-foreground\">{t(totalText.text, totalText.vars)}</p>}\n <ActionButton solid big onClick={() => void mint()} className=\"w-full\">{t(\"Confirm mint\")}</ActionButton>\n </>\n )}\n {step.kind === \"minting\" && <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><Loader2 className=\"h-4 w-4 animate-spin\" />{t(\"Minting…\")}</DialogTitle>}\n {step.kind === \"done\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><CheckCircle2 className=\"h-5 w-5 text-brand-blue\" />{t(\"Minted\")}</DialogTitle>\n <Button asChild><a href={portfolioHref}>{t(\"View in portfolio\")}</a></Button>\n </>\n )}\n {step.kind === \"error\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><XCircle className=\"h-4 w-4 text-destructive\" />{t(\"Not minted\")}</DialogTitle>\n <p className=\"text-sm text-muted-foreground\">{step.message}</p>\n <Button onClick={() => void mint()}>{t(\"Try again\")}</Button>\n </>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0CQ;AAxCR,mBAAyB;AACzB,0BAA+C;AAC/C,oBAAsE;AACtE,2BAA6B;AAC7B,oBAAuB;AACvB,4BAA8B;AAC9B,sBAAqB;AAKd,SAAS,eAAe;AAAA,EAC7B;AAAA,EAAM;AAAA,EAAS;AAAA,EAAM;AAAA,EAAU;AAAA,EAAW;AAAA,EAAQ;AACpD,GAQG;AACD,QAAM,QAAI,sBAAK;AACf,QAAM,CAAC,MAAM,OAAO,QAAI,uBAAe,EAAE,MAAM,UAAU,CAAC;AAC1D,QAAM,OAAO,YAAY;AACvB,YAAQ,EAAE,MAAM,UAAU,CAAC;AAC3B,QAAI;AACF,cAAQ,EAAE,MAAM,QAAQ,WAAW,MAAM,OAAO,GAAG,SAAS,CAAC;AAAA,IAC/D,SAAS,KAAK;AACZ,cAAQ,EAAE,MAAM,SAAS,aAAS,qCAAc,GAAG,EAAE,QAAQ,CAAC;AAAA,IAChE;AAAA,EACF;AACA,QAAM,QAAQ,MAAM;AAClB,QAAI,KAAK,SAAS,UAAW;AAC7B,YAAQ,EAAE,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AAAA,OACtD;AAAA,KAEJ,GACF;AAEJ;","names":[]}
@@ -1,11 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Phrase } from '../../../i18n/translate.cjs';
2
3
 
3
4
  declare function DropMintDialog({ open, onClose, name, quantity, totalText, onMint, portfolioHref, }: {
4
5
  open: boolean;
5
6
  onClose: () => void;
6
7
  name: string;
7
8
  quantity: bigint;
8
- totalText: string | null;
9
+ totalText: Phrase | null;
9
10
  onMint: () => Promise<{
10
11
  tokenIds: string[];
11
12
  }>;
@@ -1,11 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Phrase } from '../../../i18n/translate.js';
2
3
 
3
4
  declare function DropMintDialog({ open, onClose, name, quantity, totalText, onMint, portfolioHref, }: {
4
5
  open: boolean;
5
6
  onClose: () => void;
6
7
  name: string;
7
8
  quantity: bigint;
8
- totalText: string | null;
9
+ totalText: Phrase | null;
9
10
  onMint: () => Promise<{
10
11
  tokenIds: string[];
11
12
  }>;
@@ -37,7 +37,7 @@ function DropMintDialog({
37
37
  /* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: t("Mint from this drop.") }),
38
38
  step.kind === "confirm" && /* @__PURE__ */ jsxs(Fragment, { children: [
39
39
  /* @__PURE__ */ jsx(DialogTitle, { className: "text-lg font-semibold", children: t("Mint {quantity} from {name}", { quantity: quantity.toString(), name }) }),
40
- totalText && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: totalText }),
40
+ totalText && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t(totalText.text, totalText.vars) }),
41
41
  /* @__PURE__ */ jsx(ActionButton, { solid: true, big: true, onClick: () => void mint(), className: "w-full", children: t("Confirm mint") })
42
42
  ] }),
43
43
  step.kind === "minting" && /* @__PURE__ */ jsxs(DialogTitle, { className: "flex items-center gap-2 text-lg font-semibold", children: [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/drop/page/drop-mint-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"../../dialog.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport { Button } from \"../../button.js\";\nimport { describeError } from \"../../../utils/describe-error.js\";\nimport { useT } from \"../../../i18n/provider.js\";\n\ntype Step = { kind: \"confirm\" } | { kind: \"minting\" } | { kind: \"done\"; tokenIds: string[] } | { kind: \"error\"; message: string };\n\nexport function DropMintDialog({\n open, onClose, name, quantity, totalText, onMint, portfolioHref,\n}: {\n open: boolean;\n onClose: () => void;\n name: string;\n quantity: bigint;\n totalText: string | null;\n onMint: () => Promise<{ tokenIds: string[] }>;\n portfolioHref: string;\n}) {\n const t = useT();\n const [step, setStep] = useState<Step>({ kind: \"confirm\" });\n const mint = async () => {\n setStep({ kind: \"minting\" });\n try {\n setStep({ kind: \"done\", tokenIds: (await onMint()).tokenIds });\n } catch (err) {\n setStep({ kind: \"error\", message: describeError(err).message });\n }\n };\n const close = () => {\n if (step.kind === \"minting\") return;\n setStep({ kind: \"confirm\" });\n onClose();\n };\n return (\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"gap-5 sm:max-w-md\" hideClose={step.kind === \"minting\"}>\n <DialogDescription className=\"sr-only\">{t(\"Mint from this drop.\")}</DialogDescription>\n {step.kind === \"confirm\" && (\n <>\n <DialogTitle className=\"text-lg font-semibold\">{t(\"Mint {quantity} from {name}\", { quantity: quantity.toString(), name })}</DialogTitle>\n {totalText && <p className=\"text-sm text-muted-foreground\">{totalText}</p>}\n <ActionButton solid big onClick={() => void mint()} className=\"w-full\">{t(\"Confirm mint\")}</ActionButton>\n </>\n )}\n {step.kind === \"minting\" && <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><Loader2 className=\"h-4 w-4 animate-spin\" />{t(\"Minting…\")}</DialogTitle>}\n {step.kind === \"done\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><CheckCircle2 className=\"h-5 w-5 text-brand-blue\" />{t(\"Minted\")}</DialogTitle>\n <Button asChild><a href={portfolioHref}>{t(\"View in portfolio\")}</a></Button>\n </>\n )}\n {step.kind === \"error\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><XCircle className=\"h-4 w-4 text-destructive\" />{t(\"Not minted\")}</DialogTitle>\n <p className=\"text-sm text-muted-foreground\">{step.message}</p>\n <Button onClick={() => void mint()}>{t(\"Try again\")}</Button>\n </>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AAyCQ,SAEE,UAFF,KAEE,YAFF;AAvCR,SAAS,gBAAgB;AACzB,SAAS,cAAc,SAAS,eAAe;AAC/C,SAAS,QAAQ,eAAe,mBAAmB,mBAAmB;AACtE,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AAId,SAAS,eAAe;AAAA,EAC7B;AAAA,EAAM;AAAA,EAAS;AAAA,EAAM;AAAA,EAAU;AAAA,EAAW;AAAA,EAAQ;AACpD,GAQG;AACD,QAAM,IAAI,KAAK;AACf,QAAM,CAAC,MAAM,OAAO,IAAI,SAAe,EAAE,MAAM,UAAU,CAAC;AAC1D,QAAM,OAAO,YAAY;AACvB,YAAQ,EAAE,MAAM,UAAU,CAAC;AAC3B,QAAI;AACF,cAAQ,EAAE,MAAM,QAAQ,WAAW,MAAM,OAAO,GAAG,SAAS,CAAC;AAAA,IAC/D,SAAS,KAAK;AACZ,cAAQ,EAAE,MAAM,SAAS,SAAS,cAAc,GAAG,EAAE,QAAQ,CAAC;AAAA,IAChE;AAAA,EACF;AACA,QAAM,QAAQ,MAAM;AAClB,QAAI,KAAK,SAAS,UAAW;AAC7B,YAAQ,EAAE,MAAM,UAAU,CAAC;AAC3B,YAAQ;AAAA,EACV;AACA,SACE,oBAAC,UAAO,MAAY,cAAc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\nimport { useState } from \"react\";\nimport { CheckCircle2, Loader2, XCircle } from \"lucide-react\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"../../dialog.js\";\nimport { ActionButton } from \"../../action-button.js\";\nimport { Button } from \"../../button.js\";\nimport { describeError } from \"../../../utils/describe-error.js\";\nimport { useT } from \"../../../i18n/provider.js\";\nimport type { Phrase } from \"../../../i18n/translate.js\";\n\ntype Step = { kind: \"confirm\" } | { kind: \"minting\" } | { kind: \"done\"; tokenIds: string[] } | { kind: \"error\"; message: string };\n\nexport function DropMintDialog({\n open, onClose, name, quantity, totalText, onMint, portfolioHref,\n}: {\n open: boolean;\n onClose: () => void;\n name: string;\n quantity: bigint;\n totalText: Phrase | null;\n onMint: () => Promise<{ tokenIds: string[] }>;\n portfolioHref: string;\n}) {\n const t = useT();\n const [step, setStep] = useState<Step>({ kind: \"confirm\" });\n const mint = async () => {\n setStep({ kind: \"minting\" });\n try {\n setStep({ kind: \"done\", tokenIds: (await onMint()).tokenIds });\n } catch (err) {\n setStep({ kind: \"error\", message: describeError(err).message });\n }\n };\n const close = () => {\n if (step.kind === \"minting\") return;\n setStep({ kind: \"confirm\" });\n onClose();\n };\n return (\n <Dialog open={open} onOpenChange={(next) => { if (!next) close(); }}>\n <DialogContent className=\"gap-5 sm:max-w-md\" hideClose={step.kind === \"minting\"}>\n <DialogDescription className=\"sr-only\">{t(\"Mint from this drop.\")}</DialogDescription>\n {step.kind === \"confirm\" && (\n <>\n <DialogTitle className=\"text-lg font-semibold\">{t(\"Mint {quantity} from {name}\", { quantity: quantity.toString(), name })}</DialogTitle>\n {totalText && <p className=\"text-sm text-muted-foreground\">{t(totalText.text, totalText.vars)}</p>}\n <ActionButton solid big onClick={() => void mint()} className=\"w-full\">{t(\"Confirm mint\")}</ActionButton>\n </>\n )}\n {step.kind === \"minting\" && <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><Loader2 className=\"h-4 w-4 animate-spin\" />{t(\"Minting…\")}</DialogTitle>}\n {step.kind === \"done\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><CheckCircle2 className=\"h-5 w-5 text-brand-blue\" />{t(\"Minted\")}</DialogTitle>\n <Button asChild><a href={portfolioHref}>{t(\"View in portfolio\")}</a></Button>\n </>\n )}\n {step.kind === \"error\" && (\n <>\n <DialogTitle className=\"flex items-center gap-2 text-lg font-semibold\"><XCircle className=\"h-4 w-4 text-destructive\" />{t(\"Not minted\")}</DialogTitle>\n <p className=\"text-sm text-muted-foreground\">{step.message}</p>\n <Button onClick={() => void mint()}>{t(\"Try again\")}</Button>\n </>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AA0CQ,SAEE,UAFF,KAEE,YAFF;AAxCR,SAAS,gBAAgB;AACzB,SAAS,cAAc,SAAS,eAAe;AAC/C,SAAS,QAAQ,eAAe,mBAAmB,mBAAmB;AACtE,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AAKd,SAAS,eAAe;AAAA,EAC7B;AAAA,EAAM;AAAA,EAAS;AAAA,EAAM;AAAA,EAAU;AAAA,EAAW;AAAA,EAAQ;AACpD,GAQG;AACD,QAAM,IAAI,KAAK;AACf,QAAM,CAAC,MAAM,OAAO,IAAI,SAAe,EAAE,MAAM,UAAU,CAAC;AAC1D,QAAM,OAAO,YAAY;AACvB,YAAQ,EAAE,MAAM,UAAU,CAAC;AAC3B,QAAI;AACF,cAAQ,EAAE,MAAM,QAAQ,WAAW,MAAM,OAAO,GAAG,SAAS,CAAC;AAAA,IAC/D,SAAS,KAAK;AACZ,cAAQ,EAAE,MAAM,SAAS,SAAS,cAAc,GAAG,EAAE,QAAQ,CAAC;AAAA,IAChE;AAAA,EACF;AACA,QAAM,QAAQ,MAAM;AAClB,QAAI,KAAK,SAAS,UAAW;AAC7B,YAAQ,EAAE,MAAM,UAAU,CAAC;AAC3B,YAAQ;AAAA,EACV;AACA,SACE,oBAAC,U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action_box = require("./drop-action-box.js");
47
47
  var import_drop_activity = require("./drop-activity.js");
48
48
  var import_drop_manage = require("./drop-manage.js");
49
49
  var import_drop_mint_dialog = require("./drop-mint-dialog.js");
50
- var import_action_button = require("../../action-button.js");
51
50
  var import_use_collections = require("../../../utils/use-collections.js");
52
51
  var import_use_drops = require("../../../utils/use-drops.js");
53
52
  var import_use_now = require("../../../utils/drop/use-now.js");
@@ -59,6 +58,7 @@ var import_use_image_url = require("../../../utils/use-image-url.js");
59
58
  var import_provider = require("../../../i18n/provider.js");
60
59
  function DropPage(props) {
61
60
  const t = (0, import_provider.useT)();
61
+ const locale = (0, import_provider.useLocale)();
62
62
  const resolveImage = (0, import_use_image_url.useImageUrl)();
63
63
  const app = (0, import_medialane_app.useMedialaneApp)();
64
64
  const { contract } = props;
@@ -93,7 +93,7 @@ function DropPage(props) {
93
93
  const onchain = chain.drop;
94
94
  const priced = feeBps === null ? null : onchain;
95
95
  const mint = (0, import_starknet.dropMintState)({ drop: priced, wallet: walletAddress, claimed: chain.claimed, proof, balance: chain.balance, feeBps: feeBps ?? 0, now });
96
- const view = priced ? (0, import_view.actionBoxView)({ drop: priced, mint, quantity, feeBps, now }) : null;
96
+ const view = priced ? (0, import_view.actionBoxView)({ drop: priced, mint, quantity, feeBps, now, locale }) : null;
97
97
  const isOrganizer = !!walletAddress && !!onchain && BigInt(walletAddress) === BigInt(onchain.organizer);
98
98
  const art = resolveImage(firstToken?.image ?? indexed?.image);
99
99
  const name = indexed?.name ?? "Drop";
@@ -103,7 +103,7 @@ function DropPage(props) {
103
103
  if (view.button.action === "sign-in") app.onRequireWallet();
104
104
  if (view.button.action === "mint") setMinting(true);
105
105
  };
106
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-10 pb-28 lg:pb-0", children: [
106
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-10", children: [
107
107
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid gap-8 lg:grid-cols-2 lg:gap-10", children: [
108
108
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative aspect-square overflow-hidden rounded-2xl bg-muted", children: art && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_image.default, { src: art, alt: name, fill: true, unoptimized: true, className: "object-cover" }) }),
109
109
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-5", children: [
@@ -114,13 +114,9 @@ function DropPage(props) {
114
114
  ] }),
115
115
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_share_button.ShareButton, { title: name, variant: "soft", size: "sm" })
116
116
  ] }),
117
- view && onchain && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden lg:block", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_action_box.DropActionBox, { view, minted: onchain.totalMinted, maxSupply: onchain.maxSupply, quantity, onQuantity: setQuantity, onAction }) })
117
+ view && onchain && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_action_box.DropActionBox, { view, minted: onchain.totalMinted, maxSupply: onchain.maxSupply, quantity, onQuantity: setQuantity, onAction })
118
118
  ] })
119
119
  ] }),
120
- view && onchain && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "lg:hidden", children: [
121
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_drop_action_box.DropActionBox, { view, minted: onchain.totalMinted, maxSupply: onchain.maxSupply, quantity, onQuantity: setQuantity, onAction }),
122
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "fixed inset-x-0 bottom-0 z-30 border-t border-border bg-background/95 p-3 backdrop-blur", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_action_button.ActionButton, { solid: true, disabled: view.button.action === "none", onClick: onAction, className: "w-full", children: t(view.button.label) }) })
123
- ] }),
124
120
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.Tabs, { defaultValue: props.initialTab === "manage" && isOrganizer ? "manage" : "about", children: [
125
121
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tabs.TabsList, { children: [
126
122
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tabs.TabsTrigger, { value: "about", children: t("About") }),