@medialane/ui 0.295.0 → 0.297.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 (75) hide show
  1. package/dist/components/asset-page.cjs +10 -0
  2. package/dist/components/asset-page.cjs.map +1 -1
  3. package/dist/components/asset-page.js +10 -0
  4. package/dist/components/asset-page.js.map +1 -1
  5. package/dist/components/fast-mint/asset-form-parts.cjs +194 -0
  6. package/dist/components/fast-mint/asset-form-parts.cjs.map +1 -0
  7. package/dist/components/fast-mint/asset-form-parts.d.cts +33 -0
  8. package/dist/components/fast-mint/asset-form-parts.d.ts +33 -0
  9. package/dist/components/fast-mint/asset-form-parts.js +158 -0
  10. package/dist/components/fast-mint/asset-form-parts.js.map +1 -0
  11. package/dist/components/fast-mint/collection-section.cjs +211 -0
  12. package/dist/components/fast-mint/collection-section.cjs.map +1 -0
  13. package/dist/components/fast-mint/collection-section.d.cts +27 -0
  14. package/dist/components/fast-mint/collection-section.d.ts +27 -0
  15. package/dist/components/fast-mint/collection-section.js +176 -0
  16. package/dist/components/fast-mint/collection-section.js.map +1 -0
  17. package/dist/components/fast-mint/fast-mint.cjs +116 -653
  18. package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
  19. package/dist/components/fast-mint/fast-mint.js +115 -661
  20. package/dist/components/fast-mint/fast-mint.js.map +1 -1
  21. package/dist/components/fast-mint/form.cjs +40 -0
  22. package/dist/components/fast-mint/form.cjs.map +1 -0
  23. package/dist/components/fast-mint/form.d.cts +15 -0
  24. package/dist/components/fast-mint/form.d.ts +15 -0
  25. package/dist/components/fast-mint/form.js +16 -0
  26. package/dist/components/fast-mint/form.js.map +1 -0
  27. package/dist/components/fast-mint/ip-type-section.cjs +76 -0
  28. package/dist/components/fast-mint/ip-type-section.cjs.map +1 -0
  29. package/dist/components/fast-mint/ip-type-section.d.cts +17 -0
  30. package/dist/components/fast-mint/ip-type-section.d.ts +17 -0
  31. package/dist/components/fast-mint/ip-type-section.js +52 -0
  32. package/dist/components/fast-mint/ip-type-section.js.map +1 -0
  33. package/dist/components/fast-mint/licensing-section.cjs +124 -0
  34. package/dist/components/fast-mint/licensing-section.cjs.map +1 -0
  35. package/dist/components/fast-mint/licensing-section.d.cts +14 -0
  36. package/dist/components/fast-mint/licensing-section.d.ts +14 -0
  37. package/dist/components/fast-mint/licensing-section.js +99 -0
  38. package/dist/components/fast-mint/licensing-section.js.map +1 -0
  39. package/dist/components/fast-mint/media-kind.cjs +48 -0
  40. package/dist/components/fast-mint/media-kind.cjs.map +1 -0
  41. package/dist/components/fast-mint/media-kind.d.cts +12 -0
  42. package/dist/components/fast-mint/media-kind.d.ts +12 -0
  43. package/dist/components/fast-mint/media-kind.js +22 -0
  44. package/dist/components/fast-mint/media-kind.js.map +1 -0
  45. package/dist/components/fast-mint/mint-asset.cjs +124 -0
  46. package/dist/components/fast-mint/mint-asset.cjs.map +1 -0
  47. package/dist/components/fast-mint/mint-asset.d.cts +41 -0
  48. package/dist/components/fast-mint/mint-asset.d.ts +41 -0
  49. package/dist/components/fast-mint/mint-asset.js +100 -0
  50. package/dist/components/fast-mint/mint-asset.js.map +1 -0
  51. package/dist/components/fast-mint/use-ipfs-upload.cjs +64 -0
  52. package/dist/components/fast-mint/use-ipfs-upload.cjs.map +1 -0
  53. package/dist/components/fast-mint/use-ipfs-upload.d.cts +9 -0
  54. package/dist/components/fast-mint/use-ipfs-upload.d.ts +9 -0
  55. package/dist/components/fast-mint/use-ipfs-upload.js +40 -0
  56. package/dist/components/fast-mint/use-ipfs-upload.js.map +1 -0
  57. package/dist/components/fast-mint/use-new-collection-draft.cjs +66 -0
  58. package/dist/components/fast-mint/use-new-collection-draft.cjs.map +1 -0
  59. package/dist/components/fast-mint/use-new-collection-draft.d.cts +13 -0
  60. package/dist/components/fast-mint/use-new-collection-draft.d.ts +13 -0
  61. package/dist/components/fast-mint/use-new-collection-draft.js +42 -0
  62. package/dist/components/fast-mint/use-new-collection-draft.js.map +1 -0
  63. package/dist/components/soulbound-card.cjs +70 -0
  64. package/dist/components/soulbound-card.cjs.map +1 -0
  65. package/dist/components/soulbound-card.d.cts +13 -0
  66. package/dist/components/soulbound-card.d.ts +13 -0
  67. package/dist/components/soulbound-card.js +35 -0
  68. package/dist/components/soulbound-card.js.map +1 -0
  69. package/dist/index.cjs +5 -0
  70. package/dist/index.cjs.map +1 -1
  71. package/dist/index.d.cts +1 -0
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +3 -0
  74. package/dist/index.js.map +1 -1
  75. package/package.json +1 -1
@@ -0,0 +1,176 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useState } from "react";
4
+ import Image from "next/image";
5
+ import { Boxes, Check, ChevronDown, Plus } from "lucide-react";
6
+ import { Input } from "../input.js";
7
+ import { Textarea } from "../textarea.js";
8
+ import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
9
+ import { cn } from "../../utils/cn.js";
10
+ import { useImageUrl } from "../../utils/use-image-url.js";
11
+ import { collectionKey } from "./mintable-collections.js";
12
+ function collectionDisplayLabel(col) {
13
+ return col.name || col.symbol || `Collection #${col.collectionId}`;
14
+ }
15
+ function CollectionThumb({ image }) {
16
+ const resolveImage = useImageUrl();
17
+ const imageUrl = resolveImage(image);
18
+ return /* @__PURE__ */ jsx("div", { className: "relative h-10 w-10 rounded-lg overflow-hidden bg-muted shrink-0", children: imageUrl ? /* @__PURE__ */ jsx(Image, { src: imageUrl, alt: "", fill: true, className: "object-cover", unoptimized: true }) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Boxes, { className: "h-4 w-4 text-muted-foreground/40" }) }) });
19
+ }
20
+ function CollectionPicker({
21
+ collections,
22
+ value,
23
+ onChange,
24
+ valueOf
25
+ }) {
26
+ const [open, setOpen] = useState(false);
27
+ const selected = value ? collections.find((c) => valueOf(c) === value) ?? null : null;
28
+ return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
29
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
30
+ "button",
31
+ {
32
+ type: "button",
33
+ "aria-expanded": open,
34
+ className: "flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40",
35
+ children: [
36
+ /* @__PURE__ */ jsx(CollectionThumb, { image: selected?.image }),
37
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
38
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold truncate", children: selected ? collectionDisplayLabel(selected) : collections.length ? "Choose a collection" : "No collections yet" }),
39
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: selected ? `${selected.totalSupply ?? 0} work${selected.totalSupply === 1 ? "" : "s"}` : "Where this work will live" })
40
+ ] }),
41
+ /* @__PURE__ */ jsx(ChevronDown, { className: "h-3.5 w-3.5 text-muted-foreground shrink-0" })
42
+ ]
43
+ }
44
+ ) }),
45
+ /* @__PURE__ */ jsx(PopoverContent, { className: "w-[var(--radix-popover-trigger-width)] p-0", align: "start", children: /* @__PURE__ */ jsx("div", { className: "max-h-64 overflow-y-auto p-1", children: collections.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-3 py-4 text-center text-sm text-muted-foreground", children: "No collections yet \u2014 create one instead." }) : collections.map((col) => {
46
+ const id = valueOf(col);
47
+ const isSelected = !!id && value === id;
48
+ return /* @__PURE__ */ jsxs(
49
+ "button",
50
+ {
51
+ type: "button",
52
+ disabled: !id,
53
+ onClick: () => {
54
+ if (!id) return;
55
+ onChange(id);
56
+ setOpen(false);
57
+ },
58
+ className: "flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60",
59
+ children: [
60
+ /* @__PURE__ */ jsx(CollectionThumb, { image: col.image }),
61
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
62
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium truncate", children: collectionDisplayLabel(col) }),
63
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
64
+ col.totalSupply ?? 0,
65
+ " work",
66
+ col.totalSupply === 1 ? "" : "s"
67
+ ] })
68
+ ] }),
69
+ isSelected && /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 text-brand-blue shrink-0" })
70
+ ]
71
+ },
72
+ id ?? col.contractAddress ?? col.name
73
+ );
74
+ }) }) })
75
+ ] });
76
+ }
77
+ function CollectionSection({
78
+ assetType,
79
+ mode,
80
+ onModeChange,
81
+ collections,
82
+ existingId,
83
+ existingContract,
84
+ onExistingId,
85
+ onExistingContract,
86
+ draft,
87
+ previewImage
88
+ }) {
89
+ const single = assetType === "single";
90
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
91
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
92
+ /* @__PURE__ */ jsxs("label", { className: "text-sm font-medium flex items-center gap-1.5", children: [
93
+ /* @__PURE__ */ jsx(Boxes, { className: "h-4 w-4" }),
94
+ "Collection *"
95
+ ] }),
96
+ /* @__PURE__ */ jsxs("div", { className: "flex rounded-lg border border-border overflow-hidden", children: [
97
+ /* @__PURE__ */ jsx(
98
+ "button",
99
+ {
100
+ type: "button",
101
+ onClick: () => onModeChange("existing"),
102
+ className: cn(
103
+ "px-3 h-7 text-xs font-medium transition-colors",
104
+ mode === "existing" ? "bg-primary text-primary-foreground" : "bg-background hover:bg-muted text-muted-foreground"
105
+ ),
106
+ children: "Existing"
107
+ }
108
+ ),
109
+ /* @__PURE__ */ jsxs(
110
+ "button",
111
+ {
112
+ type: "button",
113
+ onClick: () => onModeChange("new"),
114
+ className: cn(
115
+ "px-3 h-7 text-xs font-medium border-l border-border transition-colors flex items-center gap-1",
116
+ mode === "new" ? "bg-primary text-primary-foreground" : "bg-background hover:bg-muted text-muted-foreground"
117
+ ),
118
+ children: [
119
+ /* @__PURE__ */ jsx(Plus, { className: "h-3 w-3" }),
120
+ "New"
121
+ ]
122
+ }
123
+ )
124
+ ] })
125
+ ] }),
126
+ mode === "existing" ? /* @__PURE__ */ jsx(
127
+ CollectionPicker,
128
+ {
129
+ collections,
130
+ value: single ? existingId : existingContract,
131
+ onChange: single ? onExistingId : onExistingContract,
132
+ valueOf: collectionKey(assetType)
133
+ }
134
+ ) : /* @__PURE__ */ jsxs("div", { className: "flex gap-3 rounded-xl border border-border p-3", children: [
135
+ /* @__PURE__ */ jsx("div", { className: "relative h-16 w-16 rounded-lg overflow-hidden bg-muted shrink-0", children: previewImage ? /* @__PURE__ */ jsx(Image, { src: previewImage, alt: "", fill: true, className: "object-cover", unoptimized: true }) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Boxes, { className: "h-5 w-5 text-muted-foreground/40" }) }) }),
136
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 space-y-2", children: [
137
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[1fr_100px] gap-2", children: [
138
+ /* @__PURE__ */ jsx(
139
+ Input,
140
+ {
141
+ value: draft.name,
142
+ onChange: (e) => draft.setName(e.target.value),
143
+ placeholder: "Collection name",
144
+ className: "h-9 text-sm"
145
+ }
146
+ ),
147
+ /* @__PURE__ */ jsx(
148
+ Input,
149
+ {
150
+ value: draft.symbol,
151
+ onChange: (e) => draft.setSymbol(e.target.value.toUpperCase()),
152
+ placeholder: "SYMBOL",
153
+ className: "h-9 text-sm"
154
+ }
155
+ )
156
+ ] }),
157
+ /* @__PURE__ */ jsx(
158
+ Textarea,
159
+ {
160
+ value: draft.description,
161
+ onChange: (e) => draft.setDescription(e.target.value),
162
+ placeholder: "Describe this collection\u2026",
163
+ rows: 2,
164
+ className: "text-sm resize-none"
165
+ }
166
+ ),
167
+ /* @__PURE__ */ jsx("p", { className: "text-2xs text-muted-foreground", children: "Prefilled from your asset \u2014 edit anything above." })
168
+ ] })
169
+ ] })
170
+ ] });
171
+ }
172
+ export {
173
+ CollectionPicker,
174
+ CollectionSection
175
+ };
176
+ //# sourceMappingURL=collection-section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/fast-mint/collection-section.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport Image from \"next/image\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { Boxes, Check, ChevronDown, Plus } from \"lucide-react\";\nimport { Input } from \"../input.js\";\nimport { Textarea } from \"../textarea.js\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useImageUrl } from \"../../utils/use-image-url.js\";\nimport { collectionKey, type MintAssetType } from \"./mintable-collections.js\";\nimport type { useNewCollectionDraft } from \"./use-new-collection-draft.js\";\n\nfunction collectionDisplayLabel(col: ApiCollection) {\n return col.name || col.symbol || `Collection #${col.collectionId}`;\n}\n\nfunction CollectionThumb({ image }: { image: string | null | undefined }) {\n const resolveImage = useImageUrl();\n const imageUrl = resolveImage(image);\n return (\n <div className=\"relative h-10 w-10 rounded-lg overflow-hidden bg-muted shrink-0\">\n {imageUrl ? (\n <Image src={imageUrl} alt=\"\" fill className=\"object-cover\" unoptimized />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-4 w-4 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n );\n}\n\nexport function CollectionPicker({\n collections, value, onChange, valueOf,\n}: {\n collections: ApiCollection[];\n value: string;\n onChange: (id: string) => void;\n valueOf: (c: ApiCollection) => string | null | undefined;\n}) {\n const [open, setOpen] = useState(false);\n const selected = value\n ? collections.find((c) => valueOf(c) === value) ?? null\n : null;\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n aria-expanded={open}\n className=\"flex w-full items-center gap-3 rounded-xl border border-border p-3 text-left transition-colors hover:bg-muted/40\"\n >\n <CollectionThumb image={selected?.image} />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-semibold truncate\">\n {selected ? collectionDisplayLabel(selected) : collections.length ? \"Choose a collection\" : \"No collections yet\"}\n </p>\n <p className=\"text-xs text-muted-foreground\">\n {selected ? `${selected.totalSupply ?? 0} work${selected.totalSupply === 1 ? \"\" : \"s\"}` : \"Where this work will live\"}\n </p>\n </div>\n <ChevronDown className=\"h-3.5 w-3.5 text-muted-foreground shrink-0\" />\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[var(--radix-popover-trigger-width)] p-0\" align=\"start\">\n <div className=\"max-h-64 overflow-y-auto p-1\">\n {collections.length === 0 ? (\n <p className=\"px-3 py-4 text-center text-sm text-muted-foreground\">No collections yet — create one instead.</p>\n ) : (\n collections.map((col) => {\n const id = valueOf(col);\n const isSelected = !!id && value === id;\n return (\n <button\n key={id ?? col.contractAddress ?? col.name}\n type=\"button\"\n disabled={!id}\n onClick={() => { if (!id) return; onChange(id); setOpen(false); }}\n className=\"flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-muted/60\"\n >\n <CollectionThumb image={col.image} />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium truncate\">{collectionDisplayLabel(col)}</p>\n <p className=\"text-xs text-muted-foreground\">{col.totalSupply ?? 0} work{col.totalSupply === 1 ? \"\" : \"s\"}</p>\n </div>\n {isSelected && <Check className=\"h-4 w-4 text-brand-blue shrink-0\" />}\n </button>\n );\n })\n )}\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n\n\nexport type CollectionMode = \"existing\" | \"new\";\n\nexport function CollectionSection({\n assetType, mode, onModeChange, collections, existingId, existingContract, onExistingId, onExistingContract, draft, previewImage,\n}: {\n assetType: MintAssetType;\n mode: CollectionMode;\n onModeChange: (mode: CollectionMode) => void;\n collections: ApiCollection[];\n existingId: string;\n existingContract: string;\n onExistingId: (id: string) => void;\n onExistingContract: (contract: string) => void;\n draft: ReturnType<typeof useNewCollectionDraft>;\n previewImage: string | null;\n}) {\n const single = assetType === \"single\";\n return (\n <div className=\"space-y-2\">\n <div className=\"flex items-center justify-between\">\n <label className=\"text-sm font-medium flex items-center gap-1.5\">\n <Boxes className=\"h-4 w-4\" />\n Collection *\n </label>\n <div className=\"flex rounded-lg border border-border overflow-hidden\">\n <button\n type=\"button\"\n onClick={() => onModeChange(\"existing\")}\n className={cn(\"px-3 h-7 text-xs font-medium transition-colors\",\n mode === \"existing\" ? \"bg-primary text-primary-foreground\" : \"bg-background hover:bg-muted text-muted-foreground\")}\n >\n Existing\n </button>\n <button\n type=\"button\"\n onClick={() => onModeChange(\"new\")}\n className={cn(\"px-3 h-7 text-xs font-medium border-l border-border transition-colors flex items-center gap-1\",\n mode === \"new\" ? \"bg-primary text-primary-foreground\" : \"bg-background hover:bg-muted text-muted-foreground\")}\n >\n <Plus className=\"h-3 w-3\" />New\n </button>\n </div>\n </div>\n\n {mode === \"existing\" ? (\n <CollectionPicker\n collections={collections}\n value={single ? existingId : existingContract}\n onChange={single ? onExistingId : onExistingContract}\n valueOf={collectionKey(assetType)}\n />\n ) : (\n <div className=\"flex gap-3 rounded-xl border border-border p-3\">\n <div className=\"relative h-16 w-16 rounded-lg overflow-hidden bg-muted shrink-0\">\n {previewImage ? (\n <Image src={previewImage} alt=\"\" fill className=\"object-cover\" unoptimized />\n ) : (\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <Boxes className=\"h-5 w-5 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n <div className=\"min-w-0 flex-1 space-y-2\">\n <div className=\"grid grid-cols-[1fr_100px] gap-2\">\n <Input\n value={draft.name}\n onChange={(e) => draft.setName(e.target.value)}\n placeholder=\"Collection name\"\n className=\"h-9 text-sm\"\n />\n <Input\n value={draft.symbol}\n onChange={(e) => draft.setSymbol(e.target.value.toUpperCase())}\n placeholder=\"SYMBOL\"\n className=\"h-9 text-sm\"\n />\n </div>\n <Textarea\n value={draft.description}\n onChange={(e) => draft.setDescription(e.target.value)}\n placeholder=\"Describe this collection…\"\n rows={2}\n className=\"text-sm resize-none\"\n />\n <p className=\"text-2xs text-muted-foreground\">Prefilled from your asset — edit anything above.</p>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";AAwBQ,cAgCE,YAhCF;AAtBR,SAAS,gBAAgB;AACzB,OAAO,WAAW;AAElB,SAAS,OAAO,OAAO,aAAa,YAAY;AAChD,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,SAAS,UAAU;AACnB,SAAS,mBAAmB;AAC5B,SAAS,qBAAyC;AAGlD,SAAS,uBAAuB,KAAoB;AAClD,SAAO,IAAI,QAAQ,IAAI,UAAU,eAAe,IAAI,YAAY;AAClE;AAEA,SAAS,gBAAgB,EAAE,MAAM,GAAyC;AACxE,QAAM,eAAe,YAAY;AACjC,QAAM,WAAW,aAAa,KAAK;AACnC,SACE,oBAAC,SAAI,WAAU,mEACZ,qBACC,oBAAC,SAAM,KAAK,UAAU,KAAI,IAAG,MAAI,MAAC,WAAU,gBAAe,aAAW,MAAC,IAEvE,oBAAC,SAAI,WAAU,qDACb,8BAAC,SAAM,WAAU,oCAAmC,GACtD,GAEJ;AAEJ;AAEO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EAAa;AAAA,EAAO;AAAA,EAAU;AAChC,GAKG;AACD,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,QAAM,WAAW,QACb,YAAY,KAAK,CAAC,MAAM,QAAQ,CAAC,MAAM,KAAK,KAAK,OACjD;AAEJ,SACE,qBAAC,WAAQ,MAAY,cAAc,SACjC;AAAA,wBAAC,kBAAe,SAAO,MACrB;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,iBAAe;AAAA,QACf,WAAU;AAAA,QAEV;AAAA,8BAAC,mBAAgB,OAAO,UAAU,OAAO;AAAA,UACzC,qBAAC,SAAI,WAAU,kBACb;AAAA,gCAAC,OAAE,WAAU,kCACV,qBAAW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