@medialane/ui 0.348.0 → 0.350.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 (45) 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/gradient-button.cjs +24 -10
  6. package/dist/components/gradient-button.cjs.map +1 -1
  7. package/dist/components/gradient-button.d.cts +2 -1
  8. package/dist/components/gradient-button.d.ts +2 -1
  9. package/dist/components/gradient-button.js +24 -10
  10. package/dist/components/gradient-button.js.map +1 -1
  11. package/dist/components/launchpad/edition-mint-schema.d.cts +4 -4
  12. package/dist/components/launchpad/edition-mint-schema.d.ts +4 -4
  13. package/dist/components/marketplace-dialog-primitives.cjs +17 -82
  14. package/dist/components/marketplace-dialog-primitives.cjs.map +1 -1
  15. package/dist/components/marketplace-dialog-primitives.d.cts +3 -13
  16. package/dist/components/marketplace-dialog-primitives.d.ts +3 -13
  17. package/dist/components/marketplace-dialog-primitives.js +16 -80
  18. package/dist/components/marketplace-dialog-primitives.js.map +1 -1
  19. package/dist/components/order-fields.cjs +100 -0
  20. package/dist/components/order-fields.cjs.map +1 -0
  21. package/dist/components/order-fields.d.cts +20 -0
  22. package/dist/components/order-fields.d.ts +20 -0
  23. package/dist/components/order-fields.js +76 -0
  24. package/dist/components/order-fields.js.map +1 -0
  25. package/dist/index.cjs +19 -2
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +6 -2
  28. package/dist/index.d.ts +6 -2
  29. package/dist/index.js +11 -2
  30. package/dist/index.js.map +1 -1
  31. package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
  32. package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
  33. package/dist/utils/order-form.cjs +57 -0
  34. package/dist/utils/order-form.cjs.map +1 -0
  35. package/dist/utils/order-form.d.cts +35 -0
  36. package/dist/utils/order-form.d.ts +35 -0
  37. package/dist/utils/order-form.js +21 -0
  38. package/dist/utils/order-form.js.map +1 -0
  39. package/dist/utils/use-session.cjs +65 -0
  40. package/dist/utils/use-session.cjs.map +1 -0
  41. package/dist/utils/use-session.d.cts +11 -0
  42. package/dist/utils/use-session.d.ts +11 -0
  43. package/dist/utils/use-session.js +28 -0
  44. package/dist/utils/use-session.js.map +1 -0
  45. package/package.json +1 -1
@@ -1,12 +1,10 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { forwardRef } from "react";
4
3
  import Image from "./image.js";
5
4
  import { AlertCircle, ExternalLink, Loader2, Wallet } from "lucide-react";
6
5
  import { Alert, AlertDescription } from "./alert.js";
7
6
  import { Button } from "./button.js";
8
7
  import { CurrencyIcon } from "./currency-icon.js";
9
- import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./select.js";
10
8
  import { cn } from "../utils/cn.js";
11
9
  import { formatDisplayPrice, isStableCurrency } from "../utils/format.js";
12
10
  function MarketplaceTxLink({ txHash, explorerUrl, className }) {
@@ -181,85 +179,24 @@ function CurrencyPicker({ currencies, value, onChange, disabled }) {
181
179
  c
182
180
  )) });
183
181
  }
184
- function DurationPicker({ options, value, onChange, disabled, cols = 3 }) {
185
- return /* @__PURE__ */ jsx(
186
- "div",
182
+ function DurationPicker({ options, value, onChange, disabled }) {
183
+ return /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-2", children: options.map((opt) => /* @__PURE__ */ jsx(
184
+ Button,
187
185
  {
188
- role: "radiogroup",
189
- className: cn("grid gap-1 rounded-xl bg-muted/50 p-1", cols === 4 ? "grid-cols-4" : "grid-cols-3"),
190
- children: options.map((opt) => {
191
- const selected = value === opt.seconds;
192
- return /* @__PURE__ */ jsx(
193
- "button",
194
- {
195
- type: "button",
196
- role: "radio",
197
- "aria-checked": selected,
198
- onClick: () => onChange(opt.seconds),
199
- disabled,
200
- className: cn(
201
- "h-9 rounded-lg px-2 text-xs font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-purple/60 disabled:pointer-events-none disabled:opacity-50",
202
- selected ? "bg-gradient-to-br from-brand-blue to-brand-purple text-white shadow-sm" : "text-muted-foreground hover:bg-background hover:text-foreground"
203
- ),
204
- children: opt.label
205
- },
206
- opt.label
207
- );
208
- })
209
- }
210
- );
186
+ type: "button",
187
+ variant: value === opt.seconds ? "default" : "outline",
188
+ size: "sm",
189
+ onClick: () => onChange(opt.seconds),
190
+ disabled,
191
+ className: "text-xs",
192
+ children: opt.label
193
+ },
194
+ opt.label
195
+ )) });
211
196
  }
212
- const PriceCurrencyInput = forwardRef(
213
- ({ currency, currencies, onCurrencyChange, disabled, className, ...inputProps }, ref) => {
214
- return /* @__PURE__ */ jsxs(
215
- "div",
216
- {
217
- className: cn(
218
- "flex items-center gap-2 rounded-xl border border-input bg-background pr-2 transition-shadow focus-within:border-brand-purple/60 focus-within:ring-2 focus-within:ring-brand-purple/25",
219
- disabled && "opacity-60",
220
- className
221
- ),
222
- children: [
223
- /* @__PURE__ */ jsx(
224
- "input",
225
- {
226
- ref,
227
- type: "number",
228
- step: "any",
229
- min: "0",
230
- inputMode: "decimal",
231
- placeholder: "0.00",
232
- disabled,
233
- className: "h-14 min-w-0 flex-1 bg-transparent px-4 text-2xl font-semibold tabular-nums outline-none placeholder:text-muted-foreground/40 disabled:cursor-not-allowed",
234
- ...inputProps
235
- }
236
- ),
237
- /* @__PURE__ */ jsxs(Select, { value: currency, onValueChange: onCurrencyChange, disabled, children: [
238
- /* @__PURE__ */ jsx(
239
- SelectTrigger,
240
- {
241
- "aria-label": "Currency",
242
- className: "h-9 w-auto shrink-0 gap-1.5 rounded-lg border-0 bg-muted/70 px-2.5 text-xs font-bold hover:bg-muted focus:ring-brand-purple/40 focus:ring-offset-0",
243
- children: /* @__PURE__ */ jsx(SelectValue, { children: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
244
- /* @__PURE__ */ jsx(CurrencyIcon, { symbol: currency, size: 14 }),
245
- currency
246
- ] }) })
247
- }
248
- ),
249
- /* @__PURE__ */ jsx(SelectContent, { align: "end", children: currencies.map((c) => /* @__PURE__ */ jsx(SelectItem, { value: c, children: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
250
- /* @__PURE__ */ jsx(CurrencyIcon, { symbol: c, size: 14 }),
251
- c
252
- ] }) }, c)) })
253
- ] })
254
- ]
255
- }
256
- );
257
- }
258
- );
259
- PriceCurrencyInput.displayName = "PriceCurrencyInput";
260
197
  function ListingAssetSummary({ name, image, fallbackIcon, badge }) {
261
- return /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-3.5 border-b border-border/60 bg-gradient-to-br from-brand-blue/[0.08] via-brand-purple/[0.05] to-transparent px-5 py-4 pr-12", children: [
262
- /* @__PURE__ */ jsx("div", { className: "relative h-16 w-16 shrink-0 overflow-hidden rounded-xl bg-muted ring-1 ring-border/60", children: image ? /* @__PURE__ */ jsx(Image, { src: image, alt: name, fill: true, sizes: "64px", className: "object-cover", unoptimized: true }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center bg-gradient-to-br from-brand-blue/20 via-brand-purple/10 to-transparent", children: fallbackIcon }) }),
198
+ return /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-3.5 px-5 pb-1 pt-5 pr-12", children: [
199
+ /* @__PURE__ */ jsx("div", { className: "relative h-16 w-16 shrink-0 overflow-hidden rounded-xl bg-muted", children: image ? /* @__PURE__ */ jsx(Image, { src: image, alt: name, fill: true, sizes: "64px", className: "object-cover", unoptimized: true }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center bg-gradient-to-br from-brand-blue/20 via-brand-purple/10 to-transparent", children: fallbackIcon }) }),
263
200
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-1.5", children: [
264
201
  /* @__PURE__ */ jsx("p", { className: "truncate text-base font-semibold leading-tight", children: name }),
265
202
  badge
@@ -341,7 +278,6 @@ export {
341
278
  MarketplaceProcessingState,
342
279
  MarketplaceSignInGate,
343
280
  MarketplaceTxLink,
344
- OrderSummaryHero,
345
- PriceCurrencyInput
281
+ OrderSummaryHero
346
282
  };
347
283
  //# sourceMappingURL=marketplace-dialog-primitives.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/marketplace-dialog-primitives.tsx"],"sourcesContent":["\"use client\";\n\nimport { forwardRef, type ChangeEvent, type ComponentProps, type ReactNode } from \"react\";\nimport Image from \"./image.js\";\nimport { AlertCircle, ExternalLink, Loader2, Wallet } from \"lucide-react\";\nimport { Alert, AlertDescription } from \"./alert.js\";\nimport { Button } from \"./button.js\";\nimport { CurrencyIcon } from \"./currency-icon.js\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"./select.js\";\nimport { cn } from \"../utils/cn.js\";\nimport { formatDisplayPrice, isStableCurrency } from \"../utils/format.js\";\n\ninterface MarketplaceTxLinkProps {\n txHash: string;\n explorerUrl: string;\n className?: string;\n}\n\nexport function MarketplaceTxLink({ txHash, explorerUrl, className }: MarketplaceTxLinkProps) {\n return (\n <a\n href={`${explorerUrl}/tx/${txHash}`}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={cn(\n \"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors\",\n className\n )}\n >\n <span className=\"tabular-nums\">{txHash.slice(0, 10)}…{txHash.slice(-8)}</span>\n <ExternalLink className=\"h-3 w-3\" />\n </a>\n );\n}\n\ninterface MarketplaceProcessingStateProps {\n title: string;\n description?: string;\n imageUrl?: string | null;\n imageAlt?: string;\n txHash?: string | null;\n explorerUrl?: string;\n}\n\nexport function MarketplaceProcessingState({\n title,\n description = \"Keep this window open until it finishes.\",\n imageUrl,\n imageAlt = \"Token preview\",\n txHash,\n explorerUrl,\n}: MarketplaceProcessingStateProps) {\n return (\n <div className=\"flex flex-col items-center gap-5 p-6 py-8\">\n {imageUrl ? (\n <div className=\"relative h-20 w-20 rounded-2xl overflow-hidden border border-border\">\n <Image src={imageUrl} alt={imageAlt} fill sizes=\"80px\" className=\"object-cover\" unoptimized />\n <div className=\"absolute inset-0 bg-background/50 flex items-center justify-center\">\n <Loader2 className=\"h-7 w-7 animate-spin text-primary\" />\n </div>\n </div>\n ) : (\n <Loader2 className=\"h-10 w-10 animate-spin text-primary\" />\n )}\n <div className=\"text-center space-y-1\">\n <p className=\"font-semibold\">{title}</p>\n {txHash && explorerUrl ? (\n <MarketplaceTxLink txHash={txHash} explorerUrl={explorerUrl} className=\"mt-1\" />\n ) : null}\n </div>\n <p className=\"text-sm text-muted-foreground\">{description}</p>\n </div>\n );\n}\n\ninterface MarketplaceSignInGateProps {\n title: string;\n description: string;\n href: string;\n ctaLabel?: string;\n}\n\nexport function MarketplaceSignInGate({ title, description, href, ctaLabel = \"Set up account\" }: MarketplaceSignInGateProps) {\n return (\n <div className=\"flex flex-col items-center gap-4 p-6 py-10 text-center\">\n <Wallet className=\"h-10 w-10 text-muted-foreground\" />\n <div>\n <p className=\"font-semibold\">{title}</p>\n <p className=\"text-sm text-muted-foreground mt-1\">{description}</p>\n </div>\n <div className=\"btn-border-animated w-full p-[1px] rounded-lg\">\n <Button\n asChild\n className=\"w-full bg-transparent text-white rounded-[7px] hover:bg-transparent hover:brightness-110 active:scale-[0.98] transition-all\"\n >\n <a href={href}>{ctaLabel}</a>\n </Button>\n </div>\n </div>\n );\n}\n\ninterface MarketplaceErrorStateProps {\n tokenImage?: string | null;\n name: string;\n title: string;\n description: ReactNode;\n error?: string | null;\n txHash?: string | null;\n explorerUrl: string;\n onRetry?: () => void;\n onDone: () => void;\n doneLabel?: string;\n}\n\nexport function MarketplaceErrorState({\n tokenImage,\n name,\n title,\n description,\n error,\n txHash,\n explorerUrl,\n onRetry,\n onDone,\n doneLabel = \"Done\",\n}: MarketplaceErrorStateProps) {\n return (\n <div className=\"flex flex-col items-center gap-5 p-6 py-8\">\n {tokenImage ? (\n <div className=\"relative\">\n <div className=\"relative h-32 w-32 rounded-2xl overflow-hidden\">\n <Image src={tokenImage} alt={name} fill sizes=\"128px\" className=\"object-cover\" unoptimized />\n </div>\n <div className=\"absolute -bottom-2 -right-2 h-9 w-9 rounded-full bg-destructive flex items-center justify-center border-2 border-background\">\n <AlertCircle className=\"h-5 w-5 text-white\" />\n </div>\n </div>\n ) : (\n <div className=\"h-16 w-16 rounded-full bg-destructive/15 flex items-center justify-center\">\n <AlertCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n )}\n <div className=\"text-center space-y-1 max-w-full\">\n <p className=\"font-bold text-xl break-words\">{title}</p>\n <p className=\"text-sm text-muted-foreground break-words\">{description}</p>\n </div>\n {error ? (\n <Alert variant=\"destructive\" className=\"text-left\">\n <AlertCircle className=\"h-4 w-4\" />\n <AlertDescription>{error}</AlertDescription>\n </Alert>\n ) : null}\n {txHash && <MarketplaceTxLink txHash={txHash} explorerUrl={explorerUrl} />}\n <div className=\"flex w-full gap-2\">\n {onRetry ? (\n <Button variant=\"outline\" className=\"flex-1 h-11\" onClick={onRetry}>\n Try again\n </Button>\n ) : null}\n <Button className=\"flex-1 h-11\" onClick={onDone}>{doneLabel}</Button>\n </div>\n </div>\n );\n}\n\ninterface MarketplaceDialogHeroProps {\n tokenImage?: string | null;\n tokenName?: string;\n tokenId: string;\n fallbackIcon: ReactNode;\n badge?: ReactNode;\n}\n\nexport function MarketplaceDialogHero({\n tokenImage,\n tokenName,\n tokenId,\n fallbackIcon,\n badge,\n}: MarketplaceDialogHeroProps) {\n const name = tokenName || `Token #${tokenId}`;\n\n return (\n <div className=\"relative flex justify-center pt-6 shrink-0\">\n <div className=\"relative h-32 w-32 rounded-2xl overflow-hidden bg-muted\">\n {tokenImage ? (\n <Image src={tokenImage} alt={name} fill sizes=\"128px\" className=\"object-cover\" unoptimized />\n ) : (\n <div className=\"h-full w-full bg-gradient-to-br from-brand-blue/20 via-brand-purple/10 to-transparent flex items-center justify-center\">\n {fallbackIcon}\n </div>\n )}\n </div>\n {badge}\n </div>\n );\n}\n\ninterface OrderSummaryHeroProps {\n name: string;\n image?: string | null;\n subtitle?: ReactNode;\n tone?: \"default\" | \"destructive\";\n price?: { formatted: string | null; currency: string | null; decimals: number } | null;\n quantity?: number;\n usdTotal?: string | null;\n}\n\nexport function OrderSummaryHero({\n name,\n image,\n subtitle,\n tone = \"default\",\n price: rawPrice,\n quantity = 1,\n usdTotal,\n}: OrderSummaryHeroProps) {\n const price = rawPrice?.formatted && rawPrice.currency\n ? { formatted: rawPrice.formatted, currency: rawPrice.currency, decimals: rawPrice.decimals }\n : null;\n const unit = price ? parseFloat(price.formatted) : null;\n const showTotal = unit !== null && quantity > 1;\n const crypto = price\n ? formatDisplayPrice(showTotal ? (unit! * quantity).toFixed(price.decimals <= 6 ? 2 : 4) : price.formatted)\n : \"\";\n const stable = price ? isStableCurrency(price.currency) : false;\n const face = \"font-[family-name:var(--font-display)] font-extrabold tracking-tight tabular-nums\";\n\n return (\n <div>\n <div className=\"flex justify-center pt-6 shrink-0\">\n <div className=\"relative h-32 w-32 rounded-2xl overflow-hidden bg-muted\">\n {image ? (\n <Image src={image} alt={name} fill sizes=\"128px\" className=\"object-cover\" unoptimized />\n ) : (\n <div\n className={cn(\n \"h-full w-full bg-gradient-to-br to-transparent\",\n tone === \"destructive\"\n ? \"from-destructive/20 via-brand-rose/10\"\n : \"from-primary/20 via-brand-purple/10\",\n )}\n />\n )}\n </div>\n </div>\n\n <div className=\"flex items-center justify-between gap-4 px-5 pt-4 pb-1\">\n <div className=\"min-w-0\">\n <p className=\"font-bold text-lg leading-tight truncate\">{name}</p>\n {subtitle ? <div className=\"mt-1 text-2xs font-medium text-muted-foreground\">{subtitle}</div> : null}\n </div>\n {price ? (\n <div className=\"shrink-0 text-right\">\n {usdTotal ? (\n <p className={cn(face, \"text-2xl\")}>{usdTotal}</p>\n ) : (\n <p className={cn(\"flex items-center gap-2 justify-end text-2xl\", face)}>\n <span className=\"grid h-6 w-6 shrink-0 place-items-center rounded-full bg-foreground/[0.06]\">\n <CurrencyIcon symbol={price.currency} size={13} />\n </span>\n {crypto}\n </p>\n )}\n <p className=\"mt-0.5 inline-flex items-center justify-end gap-1.5 text-sm font-semibold text-muted-foreground\">\n {usdTotal ? (\n <span className=\"grid h-4 w-4 shrink-0 place-items-center rounded-full bg-foreground/[0.06]\">\n <CurrencyIcon symbol={price.currency} size={10} />\n </span>\n ) : null}\n {usdTotal ? (stable ? price.currency : `${crypto} ${price.currency}`) : price.currency}\n </p>\n {showTotal ? (\n <p className=\"mt-0.5 text-2xs text-muted-foreground/60\">\n {formatDisplayPrice(price.formatted)} × {quantity} {price.currency}\n </p>\n ) : null}\n </div>\n ) : null}\n </div>\n </div>\n );\n}\n\ninterface CurrencyPickerProps {\n currencies: string[];\n value: string;\n onChange: (value: string) => void;\n disabled?: boolean;\n}\n\nexport function CurrencyPicker({ currencies, value, onChange, disabled }: CurrencyPickerProps) {\n return (\n <div className=\"grid grid-cols-5 gap-1.5\">\n {currencies.map((c) => (\n <Button\n key={c}\n type=\"button\"\n variant={value === c ? \"default\" : \"outline\"}\n size=\"sm\"\n onClick={() => onChange(c)}\n disabled={disabled}\n className=\"gap-1 px-2 text-xs w-full\"\n >\n <CurrencyIcon symbol={c} size={13} className=\"shrink-0\" />\n <span className=\"truncate\">{c}</span>\n </Button>\n ))}\n </div>\n );\n}\n\ninterface DurationPickerProps {\n options: ReadonlyArray<{ label: string; seconds: number }>;\n value: number;\n onChange: (value: number) => void;\n disabled?: boolean;\n cols?: 3 | 4;\n}\n\nexport function DurationPicker({ options, value, onChange, disabled, cols = 3 }: DurationPickerProps) {\n return (\n <div\n role=\"radiogroup\"\n className={cn(\"grid gap-1 rounded-xl bg-muted/50 p-1\", cols === 4 ? \"grid-cols-4\" : \"grid-cols-3\")}\n >\n {options.map((opt) => {\n const selected = value === opt.seconds;\n return (\n <button\n key={opt.label}\n type=\"button\"\n role=\"radio\"\n aria-checked={selected}\n onClick={() => onChange(opt.seconds)}\n disabled={disabled}\n className={cn(\n \"h-9 rounded-lg px-2 text-xs font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-purple/60 disabled:pointer-events-none disabled:opacity-50\",\n selected\n ? \"bg-gradient-to-br from-brand-blue to-brand-purple text-white shadow-sm\"\n : \"text-muted-foreground hover:bg-background hover:text-foreground\"\n )}\n >\n {opt.label}\n </button>\n );\n })}\n </div>\n );\n}\n\ninterface PriceCurrencyInputProps extends Omit<ComponentProps<\"input\">, \"value\" | \"onChange\" | \"type\"> {\n value: string;\n onChange: (event: ChangeEvent<HTMLInputElement>) => void;\n currency: string;\n currencies: ReadonlyArray<string>;\n onCurrencyChange: (currency: string) => void;\n}\n\nexport const PriceCurrencyInput = forwardRef<HTMLInputElement, PriceCurrencyInputProps>(\n ({ currency, currencies, onCurrencyChange, disabled, className, ...inputProps }, ref) => {\n return (\n <div\n className={cn(\n \"flex items-center gap-2 rounded-xl border border-input bg-background pr-2 transition-shadow focus-within:border-brand-purple/60 focus-within:ring-2 focus-within:ring-brand-purple/25\",\n disabled && \"opacity-60\",\n className\n )}\n >\n <input\n ref={ref}\n type=\"number\"\n step=\"any\"\n min=\"0\"\n inputMode=\"decimal\"\n placeholder=\"0.00\"\n disabled={disabled}\n className=\"h-14 min-w-0 flex-1 bg-transparent px-4 text-2xl font-semibold tabular-nums outline-none placeholder:text-muted-foreground/40 disabled:cursor-not-allowed\"\n {...inputProps}\n />\n <Select value={currency} onValueChange={onCurrencyChange} disabled={disabled}>\n <SelectTrigger\n aria-label=\"Currency\"\n className=\"h-9 w-auto shrink-0 gap-1.5 rounded-lg border-0 bg-muted/70 px-2.5 text-xs font-bold hover:bg-muted focus:ring-brand-purple/40 focus:ring-offset-0\"\n >\n <SelectValue>\n <span className=\"flex items-center gap-1.5\">\n <CurrencyIcon symbol={currency} size={14} />\n {currency}\n </span>\n </SelectValue>\n </SelectTrigger>\n <SelectContent align=\"end\">\n {currencies.map((c) => (\n <SelectItem key={c} value={c}>\n <span className=\"flex items-center gap-2\">\n <CurrencyIcon symbol={c} size={14} />\n {c}\n </span>\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n );\n }\n);\nPriceCurrencyInput.displayName = \"PriceCurrencyInput\";\n\ninterface ListingAssetSummaryProps {\n name: string;\n image?: string | null;\n fallbackIcon: ReactNode;\n badge?: ReactNode;\n}\n\nexport function ListingAssetSummary({ name, image, fallbackIcon, badge }: ListingAssetSummaryProps) {\n return (\n <div className=\"flex shrink-0 items-center gap-3.5 border-b border-border/60 bg-gradient-to-br from-brand-blue/[0.08] via-brand-purple/[0.05] to-transparent px-5 py-4 pr-12\">\n <div className=\"relative h-16 w-16 shrink-0 overflow-hidden rounded-xl bg-muted ring-1 ring-border/60\">\n {image ? (\n <Image src={image} alt={name} fill sizes=\"64px\" className=\"object-cover\" unoptimized />\n ) : (\n <div className=\"flex h-full w-full items-center justify-center bg-gradient-to-br from-brand-blue/20 via-brand-purple/10 to-transparent\">\n {fallbackIcon}\n </div>\n )}\n </div>\n <div className=\"min-w-0 space-y-1.5\">\n <p className=\"truncate text-base font-semibold leading-tight\">{name}</p>\n {badge}\n </div>\n </div>\n );\n}\n\ninterface MarketplaceConfirmStepProps {\n summary?: ReactNode;\n description: string;\n error?: string | null;\n secondaryLabel: string;\n onSecondary: () => void;\n primaryLabel: string;\n onPrimary: () => void;\n primaryDisabled?: boolean;\n primaryIcon?: ReactNode;\n primaryVariant?: \"default\" | \"destructive\";\n footer?: ReactNode;\n}\n\nexport function MarketplaceConfirmStep({\n summary,\n description,\n error,\n secondaryLabel,\n onSecondary,\n primaryLabel,\n onPrimary,\n primaryDisabled,\n primaryIcon,\n primaryVariant = \"default\",\n footer,\n}: MarketplaceConfirmStepProps) {\n const primaryButton = primaryVariant === \"destructive\" ? (\n <Button\n variant=\"destructive\"\n className=\"flex-1 h-11\"\n disabled={primaryDisabled}\n onClick={onPrimary}\n >\n {primaryLabel}\n </Button>\n ) : (\n <div\n className={cn(\n \"btn-border-animated p-[1px] rounded-xl flex-1\",\n primaryDisabled && \"pointer-events-none\"\n )}\n >\n <button\n className=\"w-full h-11 rounded-[11px] flex items-center justify-center gap-2 text-sm font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-transparent\"\n disabled={primaryDisabled}\n onClick={onPrimary}\n >\n {primaryIcon}\n {primaryLabel}\n </button>\n </div>\n );\n\n return (\n <div className=\"px-6 pb-6 pt-3 space-y-4\">\n {summary}\n <p className=\"text-sm text-muted-foreground\">{description}</p>\n {error ? (\n <Alert variant=\"destructive\">\n <AlertCircle className=\"h-4 w-4\" />\n <AlertDescription>{error}</AlertDescription>\n </Alert>\n ) : null}\n <div className=\"flex gap-2 pt-1\">\n <Button\n variant=\"outline\"\n className=\"h-11 flex-1 gap-1.5\"\n onClick={onSecondary}\n >\n {secondaryLabel}\n </Button>\n {primaryButton}\n </div>\n {footer}\n </div>\n );\n}\n"],"mappings":";AA6BM,SACA,KADA;AA3BN,SAAS,kBAAyE;AAClF,OAAO,WAAW;AAClB,SAAS,aAAa,cAAc,SAAS,cAAc;AAC3D,SAAS,OAAO,wBAAwB;AACxC,SAAS,cAAc;AACvB,SAAS,oBAAoB;AAC7B,SAAS,QAAQ,eAAe,YAAY,eAAe,mBAAmB;AAC9E,SAAS,UAAU;AACnB,SAAS,oBAAoB,wBAAwB;AAQ9C,SAAS,kBAAkB,EAAE,QAAQ,aAAa,UAAU,GAA2B;AAC5F,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,GAAG,WAAW,OAAO,MAAM;AAAA,MACjC,QAAO;AAAA,MACP,KAAI;AAAA,MACJ,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA,6BAAC,UAAK,WAAU,gBAAgB;AAAA,iBAAO,MAAM,GAAG,EAAE;AAAA,UAAE;AAAA,UAAE,OAAO,MAAM,EAAE;AAAA,WAAE;AAAA,QACvE,oBAAC,gBAAa,WAAU,WAAU;AAAA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ketplace-dialog-primitives.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport Image from \"./image.js\";\nimport { AlertCircle, ExternalLink, Loader2, Wallet } from \"lucide-react\";\nimport { Alert, AlertDescription } from \"./alert.js\";\nimport { Button } from \"./button.js\";\nimport { CurrencyIcon } from \"./currency-icon.js\";\nimport { cn } from \"../utils/cn.js\";\nimport { formatDisplayPrice, isStableCurrency } from \"../utils/format.js\";\n\ninterface MarketplaceTxLinkProps {\n txHash: string;\n explorerUrl: string;\n className?: string;\n}\n\nexport function MarketplaceTxLink({ txHash, explorerUrl, className }: MarketplaceTxLinkProps) {\n return (\n <a\n href={`${explorerUrl}/tx/${txHash}`}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={cn(\n \"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors\",\n className\n )}\n >\n <span className=\"tabular-nums\">{txHash.slice(0, 10)}…{txHash.slice(-8)}</span>\n <ExternalLink className=\"h-3 w-3\" />\n </a>\n );\n}\n\ninterface MarketplaceProcessingStateProps {\n title: string;\n description?: string;\n imageUrl?: string | null;\n imageAlt?: string;\n txHash?: string | null;\n explorerUrl?: string;\n}\n\nexport function MarketplaceProcessingState({\n title,\n description = \"Keep this window open until it finishes.\",\n imageUrl,\n imageAlt = \"Token preview\",\n txHash,\n explorerUrl,\n}: MarketplaceProcessingStateProps) {\n return (\n <div className=\"flex flex-col items-center gap-5 p-6 py-8\">\n {imageUrl ? (\n <div className=\"relative h-20 w-20 rounded-2xl overflow-hidden border border-border\">\n <Image src={imageUrl} alt={imageAlt} fill sizes=\"80px\" className=\"object-cover\" unoptimized />\n <div className=\"absolute inset-0 bg-background/50 flex items-center justify-center\">\n <Loader2 className=\"h-7 w-7 animate-spin text-primary\" />\n </div>\n </div>\n ) : (\n <Loader2 className=\"h-10 w-10 animate-spin text-primary\" />\n )}\n <div className=\"text-center space-y-1\">\n <p className=\"font-semibold\">{title}</p>\n {txHash && explorerUrl ? (\n <MarketplaceTxLink txHash={txHash} explorerUrl={explorerUrl} className=\"mt-1\" />\n ) : null}\n </div>\n <p className=\"text-sm text-muted-foreground\">{description}</p>\n </div>\n );\n}\n\ninterface MarketplaceSignInGateProps {\n title: string;\n description: string;\n href: string;\n ctaLabel?: string;\n}\n\nexport function MarketplaceSignInGate({ title, description, href, ctaLabel = \"Set up account\" }: MarketplaceSignInGateProps) {\n return (\n <div className=\"flex flex-col items-center gap-4 p-6 py-10 text-center\">\n <Wallet className=\"h-10 w-10 text-muted-foreground\" />\n <div>\n <p className=\"font-semibold\">{title}</p>\n <p className=\"text-sm text-muted-foreground mt-1\">{description}</p>\n </div>\n <div className=\"btn-border-animated w-full p-[1px] rounded-lg\">\n <Button\n asChild\n className=\"w-full bg-transparent text-white rounded-[7px] hover:bg-transparent hover:brightness-110 active:scale-[0.98] transition-all\"\n >\n <a href={href}>{ctaLabel}</a>\n </Button>\n </div>\n </div>\n );\n}\n\ninterface MarketplaceErrorStateProps {\n tokenImage?: string | null;\n name: string;\n title: string;\n description: ReactNode;\n error?: string | null;\n txHash?: string | null;\n explorerUrl: string;\n onRetry?: () => void;\n onDone: () => void;\n doneLabel?: string;\n}\n\nexport function MarketplaceErrorState({\n tokenImage,\n name,\n title,\n description,\n error,\n txHash,\n explorerUrl,\n onRetry,\n onDone,\n doneLabel = \"Done\",\n}: MarketplaceErrorStateProps) {\n return (\n <div className=\"flex flex-col items-center gap-5 p-6 py-8\">\n {tokenImage ? (\n <div className=\"relative\">\n <div className=\"relative h-32 w-32 rounded-2xl overflow-hidden\">\n <Image src={tokenImage} alt={name} fill sizes=\"128px\" className=\"object-cover\" unoptimized />\n </div>\n <div className=\"absolute -bottom-2 -right-2 h-9 w-9 rounded-full bg-destructive flex items-center justify-center border-2 border-background\">\n <AlertCircle className=\"h-5 w-5 text-white\" />\n </div>\n </div>\n ) : (\n <div className=\"h-16 w-16 rounded-full bg-destructive/15 flex items-center justify-center\">\n <AlertCircle className=\"h-9 w-9 text-destructive\" />\n </div>\n )}\n <div className=\"text-center space-y-1 max-w-full\">\n <p className=\"font-bold text-xl break-words\">{title}</p>\n <p className=\"text-sm text-muted-foreground break-words\">{description}</p>\n </div>\n {error ? (\n <Alert variant=\"destructive\" className=\"text-left\">\n <AlertCircle className=\"h-4 w-4\" />\n <AlertDescription>{error}</AlertDescription>\n </Alert>\n ) : null}\n {txHash && <MarketplaceTxLink txHash={txHash} explorerUrl={explorerUrl} />}\n <div className=\"flex w-full gap-2\">\n {onRetry ? (\n <Button variant=\"outline\" className=\"flex-1 h-11\" onClick={onRetry}>\n Try again\n </Button>\n ) : null}\n <Button className=\"flex-1 h-11\" onClick={onDone}>{doneLabel}</Button>\n </div>\n </div>\n );\n}\n\ninterface MarketplaceDialogHeroProps {\n tokenImage?: string | null;\n tokenName?: string;\n tokenId: string;\n fallbackIcon: ReactNode;\n badge?: ReactNode;\n}\n\nexport function MarketplaceDialogHero({\n tokenImage,\n tokenName,\n tokenId,\n fallbackIcon,\n badge,\n}: MarketplaceDialogHeroProps) {\n const name = tokenName || `Token #${tokenId}`;\n\n return (\n <div className=\"relative flex justify-center pt-6 shrink-0\">\n <div className=\"relative h-32 w-32 rounded-2xl overflow-hidden bg-muted\">\n {tokenImage ? (\n <Image src={tokenImage} alt={name} fill sizes=\"128px\" className=\"object-cover\" unoptimized />\n ) : (\n <div className=\"h-full w-full bg-gradient-to-br from-brand-blue/20 via-brand-purple/10 to-transparent flex items-center justify-center\">\n {fallbackIcon}\n </div>\n )}\n </div>\n {badge}\n </div>\n );\n}\n\ninterface OrderSummaryHeroProps {\n name: string;\n image?: string | null;\n subtitle?: ReactNode;\n tone?: \"default\" | \"destructive\";\n price?: { formatted: string | null; currency: string | null; decimals: number } | null;\n quantity?: number;\n usdTotal?: string | null;\n}\n\nexport function OrderSummaryHero({\n name,\n image,\n subtitle,\n tone = \"default\",\n price: rawPrice,\n quantity = 1,\n usdTotal,\n}: OrderSummaryHeroProps) {\n const price = rawPrice?.formatted && rawPrice.currency\n ? { formatted: rawPrice.formatted, currency: rawPrice.currency, decimals: rawPrice.decimals }\n : null;\n const unit = price ? parseFloat(price.formatted) : null;\n const showTotal = unit !== null && quantity > 1;\n const crypto = price\n ? formatDisplayPrice(showTotal ? (unit! * quantity).toFixed(price.decimals <= 6 ? 2 : 4) : price.formatted)\n : \"\";\n const stable = price ? isStableCurrency(price.currency) : false;\n const face = \"font-[family-name:var(--font-display)] font-extrabold tracking-tight tabular-nums\";\n\n return (\n <div>\n <div className=\"flex justify-center pt-6 shrink-0\">\n <div className=\"relative h-32 w-32 rounded-2xl overflow-hidden bg-muted\">\n {image ? (\n <Image src={image} alt={name} fill sizes=\"128px\" className=\"object-cover\" unoptimized />\n ) : (\n <div\n className={cn(\n \"h-full w-full bg-gradient-to-br to-transparent\",\n tone === \"destructive\"\n ? \"from-destructive/20 via-brand-rose/10\"\n : \"from-primary/20 via-brand-purple/10\",\n )}\n />\n )}\n </div>\n </div>\n\n <div className=\"flex items-center justify-between gap-4 px-5 pt-4 pb-1\">\n <div className=\"min-w-0\">\n <p className=\"font-bold text-lg leading-tight truncate\">{name}</p>\n {subtitle ? <div className=\"mt-1 text-2xs font-medium text-muted-foreground\">{subtitle}</div> : null}\n </div>\n {price ? (\n <div className=\"shrink-0 text-right\">\n {usdTotal ? (\n <p className={cn(face, \"text-2xl\")}>{usdTotal}</p>\n ) : (\n <p className={cn(\"flex items-center gap-2 justify-end text-2xl\", face)}>\n <span className=\"grid h-6 w-6 shrink-0 place-items-center rounded-full bg-foreground/[0.06]\">\n <CurrencyIcon symbol={price.currency} size={13} />\n </span>\n {crypto}\n </p>\n )}\n <p className=\"mt-0.5 inline-flex items-center justify-end gap-1.5 text-sm font-semibold text-muted-foreground\">\n {usdTotal ? (\n <span className=\"grid h-4 w-4 shrink-0 place-items-center rounded-full bg-foreground/[0.06]\">\n <CurrencyIcon symbol={price.currency} size={10} />\n </span>\n ) : null}\n {usdTotal ? (stable ? price.currency : `${crypto} ${price.currency}`) : price.currency}\n </p>\n {showTotal ? (\n <p className=\"mt-0.5 text-2xs text-muted-foreground/60\">\n {formatDisplayPrice(price.formatted)} × {quantity} {price.currency}\n </p>\n ) : null}\n </div>\n ) : null}\n </div>\n </div>\n );\n}\n\ninterface CurrencyPickerProps {\n currencies: string[];\n value: string;\n onChange: (value: string) => void;\n disabled?: boolean;\n}\n\nexport function CurrencyPicker({ currencies, value, onChange, disabled }: CurrencyPickerProps) {\n return (\n <div className=\"grid grid-cols-5 gap-1.5\">\n {currencies.map((c) => (\n <Button\n key={c}\n type=\"button\"\n variant={value === c ? \"default\" : \"outline\"}\n size=\"sm\"\n onClick={() => onChange(c)}\n disabled={disabled}\n className=\"gap-1 px-2 text-xs w-full\"\n >\n <CurrencyIcon symbol={c} size={13} className=\"shrink-0\" />\n <span className=\"truncate\">{c}</span>\n </Button>\n ))}\n </div>\n );\n}\n\ninterface DurationPickerProps {\n options: ReadonlyArray<{ label: string; seconds: number }>;\n value: number;\n onChange: (value: number) => void;\n disabled?: boolean;\n}\n\nexport function DurationPicker({ options, value, onChange, disabled }: DurationPickerProps) {\n return (\n <div className=\"grid grid-cols-3 gap-2\">\n {options.map((opt) => (\n <Button\n key={opt.label}\n type=\"button\"\n variant={value === opt.seconds ? \"default\" : \"outline\"}\n size=\"sm\"\n onClick={() => onChange(opt.seconds)}\n disabled={disabled}\n className=\"text-xs\"\n >\n {opt.label}\n </Button>\n ))}\n </div>\n );\n}\n\ninterface ListingAssetSummaryProps {\n name: string;\n image?: string | null;\n fallbackIcon: ReactNode;\n badge?: ReactNode;\n}\n\nexport function ListingAssetSummary({ name, image, fallbackIcon, badge }: ListingAssetSummaryProps) {\n return (\n <div className=\"flex shrink-0 items-center gap-3.5 px-5 pb-1 pt-5 pr-12\">\n <div className=\"relative h-16 w-16 shrink-0 overflow-hidden rounded-xl bg-muted\">\n {image ? (\n <Image src={image} alt={name} fill sizes=\"64px\" className=\"object-cover\" unoptimized />\n ) : (\n <div className=\"flex h-full w-full items-center justify-center bg-gradient-to-br from-brand-blue/20 via-brand-purple/10 to-transparent\">\n {fallbackIcon}\n </div>\n )}\n </div>\n <div className=\"min-w-0 space-y-1.5\">\n <p className=\"truncate text-base font-semibold leading-tight\">{name}</p>\n {badge}\n </div>\n </div>\n );\n}\n\ninterface MarketplaceConfirmStepProps {\n summary?: ReactNode;\n description: string;\n error?: string | null;\n secondaryLabel: string;\n onSecondary: () => void;\n primaryLabel: string;\n onPrimary: () => void;\n primaryDisabled?: boolean;\n primaryIcon?: ReactNode;\n primaryVariant?: \"default\" | \"destructive\";\n footer?: ReactNode;\n}\n\nexport function MarketplaceConfirmStep({\n summary,\n description,\n error,\n secondaryLabel,\n onSecondary,\n primaryLabel,\n onPrimary,\n primaryDisabled,\n primaryIcon,\n primaryVariant = \"default\",\n footer,\n}: MarketplaceConfirmStepProps) {\n const primaryButton = primaryVariant === \"destructive\" ? (\n <Button\n variant=\"destructive\"\n className=\"flex-1 h-11\"\n disabled={primaryDisabled}\n onClick={onPrimary}\n >\n {primaryLabel}\n </Button>\n ) : (\n <div\n className={cn(\n \"btn-border-animated p-[1px] rounded-xl flex-1\",\n primaryDisabled && \"pointer-events-none\"\n )}\n >\n <button\n className=\"w-full h-11 rounded-[11px] flex items-center justify-center gap-2 text-sm font-semibold text-white transition-all hover:brightness-110 active:scale-[0.98] bg-transparent\"\n disabled={primaryDisabled}\n onClick={onPrimary}\n >\n {primaryIcon}\n {primaryLabel}\n </button>\n </div>\n );\n\n return (\n <div className=\"px-6 pb-6 pt-3 space-y-4\">\n {summary}\n <p className=\"text-sm text-muted-foreground\">{description}</p>\n {error ? (\n <Alert variant=\"destructive\">\n <AlertCircle className=\"h-4 w-4\" />\n <AlertDescription>{error}</AlertDescription>\n </Alert>\n ) : null}\n <div className=\"flex gap-2 pt-1\">\n <Button\n variant=\"outline\"\n className=\"h-11 flex-1 gap-1.5\"\n onClick={onSecondary}\n >\n {secondaryLabel}\n </Button>\n {primaryButton}\n </div>\n {footer}\n </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,MACV,SAAS;AAAA,MAER;AAAA;AAAA,EACH,IAEA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA,mBAAmB;AAAA,MACrB;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,UAAU;AAAA,UACV,SAAS;AAAA,UAER;AAAA;AAAA,YACA;AAAA;AAAA;AAAA,MACH;AAAA;AAAA,EACF;AAGF,SACE,qBAAC,SAAI,WAAU,4BACZ;AAAA;AAAA,IACD,oBAAC,OAAE,WAAU,iCAAiC,uBAAY;AAAA,IACzD,QACC,qBAAC,SAAM,SAAQ,eACb;AAAA,0BAAC,eAAY,WAAU,WAAU;AAAA,MACjC,oBAAC,oBAAkB,iBAAM;AAAA,OAC3B,IACE;AAAA,IACJ,qBAAC,SAAI,WAAU,mBACb;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,SAAQ;AAAA,UACR,WAAU;AAAA,UACV,SAAS;AAAA,UAER;AAAA;AAAA,MACH;AAAA,MACC;AAAA,OACH;AAAA,IACC;AAAA,KACH;AAEJ;","names":[]}
@@ -0,0 +1,100 @@
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 order_fields_exports = {};
21
+ __export(order_fields_exports, {
22
+ OrderFields: () => OrderFields
23
+ });
24
+ module.exports = __toCommonJS(order_fields_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_form = require("./form.js");
27
+ var import_input = require("./input.js");
28
+ var import_marketplace_dialog_primitives = require("./marketplace-dialog-primitives.js");
29
+ var import_order_form = require("../utils/order-form.js");
30
+ function OrderFields({ form, durationOptions, busy, priceLabel, quantity }) {
31
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
32
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
33
+ import_form.FormField,
34
+ {
35
+ control: form.control,
36
+ name: "price",
37
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: priceLabel }),
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ import_input.Input,
41
+ {
42
+ type: "number",
43
+ step: "any",
44
+ placeholder: "0.00",
45
+ className: "h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40",
46
+ disabled: busy,
47
+ ...field
48
+ }
49
+ ) }),
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
51
+ ] })
52
+ }
53
+ ),
54
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
+ import_form.FormField,
56
+ {
57
+ control: form.control,
58
+ name: "currency",
59
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Currency" }),
61
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_marketplace_dialog_primitives.CurrencyPicker, { currencies: import_order_form.LISTABLE_CURRENCIES, value: field.value, onChange: field.onChange, disabled: busy }) })
62
+ ] })
63
+ }
64
+ ),
65
+ quantity && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
66
+ import_form.FormField,
67
+ {
68
+ control: form.control,
69
+ name: "amount",
70
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", children: [
72
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Quantity" }),
73
+ quantity.owned != null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "text-xs text-muted-foreground", children: [
74
+ "You own ",
75
+ quantity.owned
76
+ ] })
77
+ ] }),
78
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { type: "number", min: "1", step: "1", placeholder: "1", disabled: busy, ...field }) }),
79
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormMessage, {})
80
+ ] })
81
+ }
82
+ ),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
+ import_form.FormField,
85
+ {
86
+ control: form.control,
87
+ name: "durationSeconds",
88
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_form.FormItem, { children: [
89
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormLabel, { children: "Duration" }),
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_marketplace_dialog_primitives.DurationPicker, { options: durationOptions, value: field.value, onChange: field.onChange, disabled: busy }) })
91
+ ] })
92
+ }
93
+ )
94
+ ] });
95
+ }
96
+ // Annotate the CommonJS export names for ESM import in node:
97
+ 0 && (module.exports = {
98
+ OrderFields
99
+ });
100
+ //# sourceMappingURL=order-fields.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/order-fields.tsx"],"sourcesContent":["\"use client\";\n\nimport type { UseFormReturn } from \"react-hook-form\";\nimport { FormControl, FormField, FormItem, FormLabel, FormMessage } from \"./form.js\";\nimport { Input } from \"./input.js\";\nimport { CurrencyPicker, DurationPicker } from \"./marketplace-dialog-primitives.js\";\nimport { LISTABLE_CURRENCIES, type OrderFormValues } from \"../utils/order-form.js\";\n\nexport interface OrderFieldsProps {\n form: UseFormReturn<OrderFormValues>;\n durationOptions: ReadonlyArray<{ label: string; seconds: number }>;\n busy: boolean;\n priceLabel: string;\n quantity?: { owned?: number };\n}\n\nexport function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps) {\n return (\n <>\n <FormField\n control={form.control}\n name=\"price\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>{priceLabel}</FormLabel>\n <FormControl>\n <Input\n type=\"number\"\n step=\"any\"\n placeholder=\"0.00\"\n className=\"h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40\"\n disabled={busy}\n {...field}\n />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"currency\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Currency</FormLabel>\n <FormControl>\n <CurrencyPicker currencies={LISTABLE_CURRENCIES} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n\n {quantity && (\n <FormField\n control={form.control}\n name=\"amount\"\n render={({ field }) => (\n <FormItem>\n <div className=\"flex items-center justify-between\">\n <FormLabel>Quantity</FormLabel>\n {quantity.owned != null && <span className=\"text-xs text-muted-foreground\">You own {quantity.owned}</span>}\n </div>\n <FormControl>\n <Input type=\"number\" min=\"1\" step=\"1\" placeholder=\"1\" disabled={busy} {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n )}\n\n <FormField\n control={form.control}\n name=\"durationSeconds\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Duration</FormLabel>\n <FormControl>\n <DurationPicker options={durationOptions} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBI;AAfJ,kBAAyE;AACzE,mBAAsB;AACtB,2CAA+C;AAC/C,wBAA0D;AAUnD,SAAS,YAAY,EAAE,MAAM,iBAAiB,MAAM,YAAY,SAAS,GAAqB;AACnG,SACE,4EACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,sDAAC,yBAAW,sBAAW;AAAA,UACvB,4CAAC,2BACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAK;AAAA,cACL,aAAY;AAAA,cACZ,WAAU;AAAA,cACV,UAAU;AAAA,cACT,GAAG;AAAA;AAAA,UACN,GACF;AAAA,UACA,4CAAC,2BAAY;AAAA,WACf;AAAA;AAAA,IAEJ;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,sDAAC,yBAAU,sBAAQ;AAAA,UACnB,4CAAC,2BACC,sDAAC,uDAAe,YAAY,uCAAqB,OAAO,MAAM,OAAO,UAAU,MAAM,UAAU,UAAU,MAAM,GACjH;AAAA,WACF;AAAA;AAAA,IAEJ;AAAA,IAEC,YACC;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,uDAAC,SAAI,WAAU,qCACb;AAAA,wDAAC,yBAAU,sBAAQ;AAAA,YAClB,SAAS,SAAS,QAAQ,6CAAC,UAAK,WAAU,iCAAgC;AAAA;AAAA,cAAS,SAAS;AAAA,eAAM;AAAA,aACrG;AAAA,UACA,4CAAC,2BACC,sDAAC,sBAAM,MAAK,UAAS,KAAI,KAAI,MAAK,KAAI,aAAY,KAAI,UAAU,MAAO,GAAG,OAAO,GACnF;AAAA,UACA,4CAAC,2BAAY;AAAA,WACf;AAAA;AAAA,IAEJ;AAAA,IAGF;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,KAAK;AAAA,QACd,MAAK;AAAA,QACL,QAAQ,CAAC,EAAE,MAAM,MACf,6CAAC,wBACC;AAAA,sDAAC,yBAAU,sBAAQ;AAAA,UACnB,4CAAC,2BACC,sDAAC,uDAAe,SAAS,iBAAiB,OAAO,MAAM,OAAO,UAAU,MAAM,UAAU,UAAU,MAAM,GAC1G;AAAA,WACF;AAAA;AAAA,IAEJ;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { UseFormReturn } from 'react-hook-form';
3
+ import { OrderFormValues } from '../utils/order-form.cjs';
4
+ import 'zod';
5
+
6
+ interface OrderFieldsProps {
7
+ form: UseFormReturn<OrderFormValues>;
8
+ durationOptions: ReadonlyArray<{
9
+ label: string;
10
+ seconds: number;
11
+ }>;
12
+ busy: boolean;
13
+ priceLabel: string;
14
+ quantity?: {
15
+ owned?: number;
16
+ };
17
+ }
18
+ declare function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { OrderFields, type OrderFieldsProps };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { UseFormReturn } from 'react-hook-form';
3
+ import { OrderFormValues } from '../utils/order-form.js';
4
+ import 'zod';
5
+
6
+ interface OrderFieldsProps {
7
+ form: UseFormReturn<OrderFormValues>;
8
+ durationOptions: ReadonlyArray<{
9
+ label: string;
10
+ seconds: number;
11
+ }>;
12
+ busy: boolean;
13
+ priceLabel: string;
14
+ quantity?: {
15
+ owned?: number;
16
+ };
17
+ }
18
+ declare function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { OrderFields, type OrderFieldsProps };
@@ -0,0 +1,76 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { FormControl, FormField, FormItem, FormLabel, FormMessage } from "./form.js";
4
+ import { Input } from "./input.js";
5
+ import { CurrencyPicker, DurationPicker } from "./marketplace-dialog-primitives.js";
6
+ import { LISTABLE_CURRENCIES } from "../utils/order-form.js";
7
+ function OrderFields({ form, durationOptions, busy, priceLabel, quantity }) {
8
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
9
+ /* @__PURE__ */ jsx(
10
+ FormField,
11
+ {
12
+ control: form.control,
13
+ name: "price",
14
+ render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
15
+ /* @__PURE__ */ jsx(FormLabel, { children: priceLabel }),
16
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
17
+ Input,
18
+ {
19
+ type: "number",
20
+ step: "any",
21
+ placeholder: "0.00",
22
+ className: "h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40",
23
+ disabled: busy,
24
+ ...field
25
+ }
26
+ ) }),
27
+ /* @__PURE__ */ jsx(FormMessage, {})
28
+ ] })
29
+ }
30
+ ),
31
+ /* @__PURE__ */ jsx(
32
+ FormField,
33
+ {
34
+ control: form.control,
35
+ name: "currency",
36
+ render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
37
+ /* @__PURE__ */ jsx(FormLabel, { children: "Currency" }),
38
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(CurrencyPicker, { currencies: LISTABLE_CURRENCIES, value: field.value, onChange: field.onChange, disabled: busy }) })
39
+ ] })
40
+ }
41
+ ),
42
+ quantity && /* @__PURE__ */ jsx(
43
+ FormField,
44
+ {
45
+ control: form.control,
46
+ name: "amount",
47
+ render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
48
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
49
+ /* @__PURE__ */ jsx(FormLabel, { children: "Quantity" }),
50
+ quantity.owned != null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
51
+ "You own ",
52
+ quantity.owned
53
+ ] })
54
+ ] }),
55
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { type: "number", min: "1", step: "1", placeholder: "1", disabled: busy, ...field }) }),
56
+ /* @__PURE__ */ jsx(FormMessage, {})
57
+ ] })
58
+ }
59
+ ),
60
+ /* @__PURE__ */ jsx(
61
+ FormField,
62
+ {
63
+ control: form.control,
64
+ name: "durationSeconds",
65
+ render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
66
+ /* @__PURE__ */ jsx(FormLabel, { children: "Duration" }),
67
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(DurationPicker, { options: durationOptions, value: field.value, onChange: field.onChange, disabled: busy }) })
68
+ ] })
69
+ }
70
+ )
71
+ ] });
72
+ }
73
+ export {
74
+ OrderFields
75
+ };
76
+ //# sourceMappingURL=order-fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/order-fields.tsx"],"sourcesContent":["\"use client\";\n\nimport type { UseFormReturn } from \"react-hook-form\";\nimport { FormControl, FormField, FormItem, FormLabel, FormMessage } from \"./form.js\";\nimport { Input } from \"./input.js\";\nimport { CurrencyPicker, DurationPicker } from \"./marketplace-dialog-primitives.js\";\nimport { LISTABLE_CURRENCIES, type OrderFormValues } from \"../utils/order-form.js\";\n\nexport interface OrderFieldsProps {\n form: UseFormReturn<OrderFormValues>;\n durationOptions: ReadonlyArray<{ label: string; seconds: number }>;\n busy: boolean;\n priceLabel: string;\n quantity?: { owned?: number };\n}\n\nexport function OrderFields({ form, durationOptions, busy, priceLabel, quantity }: OrderFieldsProps) {\n return (\n <>\n <FormField\n control={form.control}\n name=\"price\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>{priceLabel}</FormLabel>\n <FormControl>\n <Input\n type=\"number\"\n step=\"any\"\n placeholder=\"0.00\"\n className=\"h-14 rounded-xl text-2xl font-semibold tabular-nums md:text-2xl placeholder:text-muted-foreground/40\"\n disabled={busy}\n {...field}\n />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n\n <FormField\n control={form.control}\n name=\"currency\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Currency</FormLabel>\n <FormControl>\n <CurrencyPicker currencies={LISTABLE_CURRENCIES} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n\n {quantity && (\n <FormField\n control={form.control}\n name=\"amount\"\n render={({ field }) => (\n <FormItem>\n <div className=\"flex items-center justify-between\">\n <FormLabel>Quantity</FormLabel>\n {quantity.owned != null && <span className=\"text-xs text-muted-foreground\">You own {quantity.owned}</span>}\n </div>\n <FormControl>\n <Input type=\"number\" min=\"1\" step=\"1\" placeholder=\"1\" disabled={busy} {...field} />\n </FormControl>\n <FormMessage />\n </FormItem>\n )}\n />\n )}\n\n <FormField\n control={form.control}\n name=\"durationSeconds\"\n render={({ field }) => (\n <FormItem>\n <FormLabel>Duration</FormLabel>\n <FormControl>\n <DurationPicker options={durationOptions} value={field.value} onChange={field.onChange} disabled={busy} />\n </FormControl>\n </FormItem>\n )}\n />\n </>\n );\n}\n"],"mappings":";AAkBI,mBAMQ,KADF,YALN;AAfJ,SAAS,aAAa,WAAW,UAAU,WAAW,mBAAmB;AACzE,SAAS,aAAa;AACtB,SAAS,gBAAgB,sBAAsB;AAC/C,SAAS,2BAAiD;AAUnD,SAAS,YAAY,EAAE,MAAM,iBAAiB,MAAM,Y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Q,CAAC,EAAE,MAAM,MACf,qBAAC,YACC;AAAA,8BAAC,aAAU,sBAAQ;AAAA,UACnB,oBAAC,eACC,8BAAC,kBAAe,SAAS,iBAAiB,OAAO,MAAM,OAAO,UAAU,MAAM,UAAU,UAAU,MAAM,GAC1G;AAAA,WACF;AAAA;AAAA,IAEJ;AAAA,KACF;AAEJ;","names":[]}
package/dist/index.cjs CHANGED
@@ -249,6 +249,7 @@ __export(index_exports, {
249
249
  LAUNCHPAD_SERVICE_GROUPS: () => import_launchpad_services3.LAUNCHPAD_SERVICE_GROUPS,
250
250
  LICENSE_TRAIT_TYPES: () => import_ip.LICENSE_TRAIT_TYPES,
251
251
  LICENSE_TYPES: () => import_ip.LICENSE_TYPES,
252
+ LISTABLE_CURRENCIES: () => import_order_form.LISTABLE_CURRENCIES,
252
253
  LIVING_RENDER_COLLECTIONS: () => import_living_render_collections.LIVING_RENDER_COLLECTIONS,
253
254
  Label: () => import_label.Label,
254
255
  LaunchpadCtaBanner: () => import_launchpad_cta_banner.LaunchpadCtaBanner,
@@ -299,6 +300,7 @@ __export(index_exports, {
299
300
  NavThemeToggle: () => import_nav_theme_toggle.NavThemeToggle,
300
301
  NavWalletTrigger: () => import_nav_shell.NavWalletTrigger,
301
302
  NewCollectionMenu: () => import_new_collection_menu.NewCollectionMenu,
303
+ OrderFields: () => import_order_fields.OrderFields,
302
304
  OrderSortControl: () => import_order_sort_control.OrderSortControl,
303
305
  OrderSummaryHero: () => import_marketplace_dialog_primitives.OrderSummaryHero,
304
306
  OwnerSetupPanel: () => import_owner_setup_panel.OwnerSetupPanel,
@@ -327,7 +329,6 @@ __export(index_exports, {
327
329
  PortfolioShell: () => import_portfolio_shell.PortfolioShell,
328
330
  PortfolioSnapshot: () => import_settings_snapshots.PortfolioSnapshot,
329
331
  PortfolioSponsorships: () => import_portfolio_sponsorships.PortfolioSponsorships,
330
- PriceCurrencyInput: () => import_marketplace_dialog_primitives.PriceCurrencyInput,
331
332
  PriceHistoryChart: () => import_price_history_chart.PriceHistoryChart,
332
333
  QUERY_PREFIX: () => import_query_keys.QUERY_PREFIX,
333
334
  RESEND_COOLDOWN_SECONDS: () => import_email_code.RESEND_COOLDOWN_SECONDS,
@@ -438,6 +439,7 @@ __export(index_exports, {
438
439
  coinKindLabelPlural: () => import_coins.coinKindLabelPlural,
439
440
  coinServiceIds: () => import_coins.coinServiceIds,
440
441
  coinSupply: () => import_coins.coinSupply,
442
+ counterOfferFormSchema: () => import_order_form.counterOfferFormSchema,
441
443
  createAppWallet: () => import_app_wallet.createAppWallet,
442
444
  createImageResolver: () => import_ipfs2.createImageResolver,
443
445
  derivePortfolioCounts: () => import_portfolio_counts.derivePortfolioCounts,
@@ -449,6 +451,7 @@ __export(index_exports, {
449
451
  emptyMessages: () => import_empty_messages.emptyMessages,
450
452
  fdvUsd: () => import_coins.fdvUsd,
451
453
  feeLabelFor: () => import_self_fund_consent_dialog.feeLabelFor,
454
+ fetchSession: () => import_use_session.fetchSession,
452
455
  fireConfetti: () => import_confetti.fireConfetti,
453
456
  formatActivity: () => import_format_activity.formatActivity,
454
457
  formatCoinPrice: () => import_coins.formatCoinPrice,
@@ -481,6 +484,7 @@ __export(index_exports, {
481
484
  matchCommands: () => import_nav_command_menu.matchCommands,
482
485
  navGroups: () => import_nav_commands.navGroups,
483
486
  orderCoins: () => import_coin_order.orderCoins,
487
+ orderFormSchema: () => import_order_form.orderFormSchema,
484
488
  orderUsd: () => import_order_usd.orderUsd,
485
489
  parsePriceDisplay: () => import_format.parsePriceDisplay,
486
490
  passkeyUnsupportedReason: () => import_wallet_failure.passkeyUnsupportedReason,
@@ -491,8 +495,10 @@ __export(index_exports, {
491
495
  queryKeyPrefix: () => import_query_keys.queryKeyPrefix,
492
496
  queryKeys: () => import_query_keys.queryKeys,
493
497
  readBodyWithCap: () => import_proxy_body.readBodyWithCap,
498
+ refreshSession: () => import_use_session.refreshSession,
494
499
  relevanceFilter: () => import_nav_command_menu.relevanceFilter,
495
500
  runIntentCalls: () => import_run_intent_calls.runIntentCalls,
501
+ sessionEmail: () => import_use_session.sessionEmail,
496
502
  setUploadDiagnosticsReporter: () => import_ipfs_upload.setUploadDiagnosticsReporter,
497
503
  shortenAddress: () => import_address.shortenAddress,
498
504
  sortOrders: () => import_order_sort_control.sortOrders,
@@ -578,6 +584,7 @@ __export(index_exports, {
578
584
  useRewardsConfig: () => import_use_rewards.useRewardsConfig,
579
585
  useRewardsEvents: () => import_use_rewards.useRewardsEvents,
580
586
  useSearch: () => import_use_search.useSearch,
587
+ useSession: () => import_use_session.useSession,
581
588
  useSponsorshipBids: () => import_use_sponsorship.useSponsorshipBids,
582
589
  useSponsorshipLicenses: () => import_use_sponsorship.useSponsorshipLicenses,
583
590
  useSponsorshipOffer: () => import_use_sponsorship.useSponsorshipOffer,
@@ -691,6 +698,9 @@ var import_activity_ticker = require("./components/activity-ticker.js");
691
698
  var import_listing_card = require("./components/listing-card.js");
692
699
  var import_listings_grid = require("./components/listings-grid.js");
693
700
  var import_marketplace_dialog_primitives = require("./components/marketplace-dialog-primitives.js");
701
+ var import_use_session = require("./utils/use-session.js");
702
+ var import_order_fields = require("./components/order-fields.js");
703
+ var import_order_form = require("./utils/order-form.js");
694
704
  var import_activity_row = require("./components/activity-row.js");
695
705
  var import_activity_timeline_row = require("./components/activity-timeline-row.js");
696
706
  var import_drop_item_list = require("./components/drop-item-list.js");
@@ -1138,6 +1148,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1138
1148
  LAUNCHPAD_SERVICE_GROUPS,
1139
1149
  LICENSE_TRAIT_TYPES,
1140
1150
  LICENSE_TYPES,
1151
+ LISTABLE_CURRENCIES,
1141
1152
  LIVING_RENDER_COLLECTIONS,
1142
1153
  Label,
1143
1154
  LaunchpadCtaBanner,
@@ -1188,6 +1199,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1188
1199
  NavThemeToggle,
1189
1200
  NavWalletTrigger,
1190
1201
  NewCollectionMenu,
1202
+ OrderFields,
1191
1203
  OrderSortControl,
1192
1204
  OrderSummaryHero,
1193
1205
  OwnerSetupPanel,
@@ -1216,7 +1228,6 @@ var import_asset_accents = require("./utils/asset-accents.js");
1216
1228
  PortfolioShell,
1217
1229
  PortfolioSnapshot,
1218
1230
  PortfolioSponsorships,
1219
- PriceCurrencyInput,
1220
1231
  PriceHistoryChart,
1221
1232
  QUERY_PREFIX,
1222
1233
  RESEND_COOLDOWN_SECONDS,
@@ -1327,6 +1338,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1327
1338
  coinKindLabelPlural,
1328
1339
  coinServiceIds,
1329
1340
  coinSupply,
1341
+ counterOfferFormSchema,
1330
1342
  createAppWallet,
1331
1343
  createImageResolver,
1332
1344
  derivePortfolioCounts,
@@ -1338,6 +1350,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1338
1350
  emptyMessages,
1339
1351
  fdvUsd,
1340
1352
  feeLabelFor,
1353
+ fetchSession,
1341
1354
  fireConfetti,
1342
1355
  formatActivity,
1343
1356
  formatCoinPrice,
@@ -1370,6 +1383,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1370
1383
  matchCommands,
1371
1384
  navGroups,
1372
1385
  orderCoins,
1386
+ orderFormSchema,
1373
1387
  orderUsd,
1374
1388
  parsePriceDisplay,
1375
1389
  passkeyUnsupportedReason,
@@ -1380,8 +1394,10 @@ var import_asset_accents = require("./utils/asset-accents.js");
1380
1394
  queryKeyPrefix,
1381
1395
  queryKeys,
1382
1396
  readBodyWithCap,
1397
+ refreshSession,
1383
1398
  relevanceFilter,
1384
1399
  runIntentCalls,
1400
+ sessionEmail,
1385
1401
  setUploadDiagnosticsReporter,
1386
1402
  shortenAddress,
1387
1403
  sortOrders,
@@ -1467,6 +1483,7 @@ var import_asset_accents = require("./utils/asset-accents.js");
1467
1483
  useRewardsConfig,
1468
1484
  useRewardsEvents,
1469
1485
  useSearch,
1486
+ useSession,
1470
1487
  useSponsorshipBids,
1471
1488
  useSponsorshipLicenses,
1472
1489
  useSponsorshipOffer,