@noctuatech/uswds 1.1.3 → 1.1.5
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.
- package/package.json +2 -1
- package/src/lib/file-input/file-input-preview/file-input-preview.element.ts +50 -77
- package/src/lib/file-input/file-input.element.ts +3 -1
- package/target/lib/file-input/file-input-preview/file-input-preview.element.d.ts +10 -4
- package/target/lib/file-input/file-input-preview/file-input-preview.element.js +23 -67
- package/target/lib/file-input/file-input-preview/file-input-preview.element.js.map +1 -1
- package/target/lib/file-input/file-input.element.js +1 -1
- package/target/lib/file-input/file-input.element.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noctuatech/uswds",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": ["packages/**"],
|
|
6
6
|
"main": "./target/lib.js",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@joist/di": "^4.2.3-next.7",
|
|
74
74
|
"@joist/element": "^4.2.3-next.7",
|
|
75
75
|
"@joist/observable": "^4.2.3-next.7",
|
|
76
|
+
"@joist/templating": "^4.2.3-next.7",
|
|
76
77
|
"tslib": "2.8.1"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "@joist/templating/define.js";
|
|
2
|
+
|
|
3
|
+
import { css, element, html } from "@joist/element";
|
|
4
|
+
import { bind } from "@joist/templating";
|
|
3
5
|
|
|
4
6
|
declare global {
|
|
5
7
|
interface HTMLElementTagNameMap {
|
|
@@ -16,6 +18,8 @@ declare global {
|
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
:host {
|
|
21
|
+
--usa-input-bg-color: #d9e8f6;
|
|
22
|
+
|
|
19
23
|
display: block;
|
|
20
24
|
font-size: 0.87rem;
|
|
21
25
|
pointer-events: none;
|
|
@@ -41,7 +45,7 @@ declare global {
|
|
|
41
45
|
|
|
42
46
|
.preview-heading {
|
|
43
47
|
align-items: center;
|
|
44
|
-
background:
|
|
48
|
+
background: var(--usa-input-bg-color);
|
|
45
49
|
display: flex;
|
|
46
50
|
pointer-events: none;
|
|
47
51
|
position: relative;
|
|
@@ -54,7 +58,7 @@ declare global {
|
|
|
54
58
|
|
|
55
59
|
.preview-item {
|
|
56
60
|
align-items: center;
|
|
57
|
-
background:
|
|
61
|
+
background: var(--usa-input-bg-color);
|
|
58
62
|
display: flex;
|
|
59
63
|
padding: 0.5rem;
|
|
60
64
|
width: 100%;
|
|
@@ -62,88 +66,57 @@ declare global {
|
|
|
62
66
|
}
|
|
63
67
|
`,
|
|
64
68
|
html`
|
|
65
|
-
<
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
<j-if bind="fileEntries.length">
|
|
70
|
+
<template>
|
|
71
|
+
<slot class="preview-heading"></slot>
|
|
72
|
+
</template>
|
|
73
|
+
</j-if>
|
|
74
|
+
|
|
75
|
+
<j-for bind="fileEntries" key="src">
|
|
76
|
+
<template>
|
|
77
|
+
<div class="preview-item">
|
|
78
|
+
<j-if bind="each.value.isImage">
|
|
79
|
+
<template>
|
|
80
|
+
<j-props>
|
|
81
|
+
<img height="40" width="40" aria-hidden="true" $.src="each.value.src" />
|
|
82
|
+
</j-props>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<template else>
|
|
86
|
+
<usa-icon icon="file_present"></usa-icon>
|
|
87
|
+
</template>
|
|
88
|
+
</j-if>
|
|
89
|
+
|
|
90
|
+
<j-value bind="each.value.file.name"></j-value>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
</j-for>
|
|
73
94
|
`,
|
|
74
95
|
],
|
|
75
96
|
})
|
|
76
97
|
export class USAFileInputPreviewElement extends HTMLElement {
|
|
77
|
-
@
|
|
78
|
-
accessor
|
|
98
|
+
@bind()
|
|
99
|
+
accessor fileEntries: FileEntry[] = [];
|
|
79
100
|
|
|
80
|
-
#
|
|
81
|
-
#template = query("template");
|
|
101
|
+
#files: FileList | null = null;
|
|
82
102
|
|
|
83
|
-
|
|
84
|
-
this
|
|
103
|
+
get files() {
|
|
104
|
+
return this.#files;
|
|
85
105
|
}
|
|
86
106
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
throw new Error("no shadow root");
|
|
90
|
-
}
|
|
107
|
+
set files(value: FileList | null) {
|
|
108
|
+
this.#files = value;
|
|
91
109
|
|
|
92
|
-
|
|
110
|
+
this.fileEntries = Array.from(value ?? []).map((file) => ({
|
|
111
|
+
file,
|
|
112
|
+
src: URL.createObjectURL(file),
|
|
113
|
+
isImage: file.type.startsWith("image"),
|
|
114
|
+
}));
|
|
93
115
|
}
|
|
116
|
+
}
|
|
94
117
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (this.files?.length) {
|
|
100
|
-
this.hidden = false;
|
|
101
|
-
|
|
102
|
-
const names = new Set<string>();
|
|
103
|
-
|
|
104
|
-
for (const file of this.files) {
|
|
105
|
-
names.add(file.name);
|
|
106
|
-
|
|
107
|
-
if (!this.#items.has(file.name)) {
|
|
108
|
-
const clone = template.content.cloneNode(true) as DocumentFragment;
|
|
109
|
-
|
|
110
|
-
const item = clone.firstElementChild;
|
|
111
|
-
|
|
112
|
-
if (!item) {
|
|
113
|
-
throw new Error("SOMETHING HAS GONE VERY WRONG");
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
item.id = file.name;
|
|
117
|
-
item.append(document.createTextNode(file.name));
|
|
118
|
-
|
|
119
|
-
const img = item.querySelector("img");
|
|
120
|
-
const icon = item.querySelector("usa-icon");
|
|
121
|
-
|
|
122
|
-
if (!img || !icon) {
|
|
123
|
-
throw Error("Something went very wrong");
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (file.type.startsWith("image")) {
|
|
127
|
-
img.style.display = "block";
|
|
128
|
-
img.src = URL.createObjectURL(file);
|
|
129
|
-
} else {
|
|
130
|
-
icon.style.display = "block";
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
this.shadow.append(item);
|
|
134
|
-
|
|
135
|
-
this.#items.set(file.name, item);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
for (const [name, item] of this.#items) {
|
|
140
|
-
if (!names.has(name)) {
|
|
141
|
-
item.remove();
|
|
142
|
-
this.#items.delete(name);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
} else {
|
|
146
|
-
this.hidden = true;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
118
|
+
interface FileEntry {
|
|
119
|
+
file: File;
|
|
120
|
+
src: string;
|
|
121
|
+
isImage: boolean;
|
|
149
122
|
}
|
|
@@ -16,6 +16,8 @@ declare global {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
:host {
|
|
19
|
+
--usa-input-radius: 0;
|
|
20
|
+
|
|
19
21
|
display: block;
|
|
20
22
|
max-width: 30rem;
|
|
21
23
|
position: relative;
|
|
@@ -58,12 +60,12 @@ declare global {
|
|
|
58
60
|
|
|
59
61
|
.box {
|
|
60
62
|
border: 1px dashed #adadad;
|
|
63
|
+
border-radius: var(--usa-input-radius);
|
|
61
64
|
display: flex;
|
|
62
65
|
font-size: 0.93rem;
|
|
63
66
|
position: relative;
|
|
64
67
|
text-align: center;
|
|
65
68
|
width: 100%;
|
|
66
|
-
max-width: 30rem;
|
|
67
69
|
height: 5.2rem;
|
|
68
70
|
align-items: center;
|
|
69
71
|
justify-content: center;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "@joist/templating/define.js";
|
|
1
2
|
declare global {
|
|
2
3
|
interface HTMLElementTagNameMap {
|
|
3
4
|
"usa-file-input-preview": USAFileInputPreviewElement;
|
|
@@ -5,8 +6,13 @@ declare global {
|
|
|
5
6
|
}
|
|
6
7
|
export declare class USAFileInputPreviewElement extends HTMLElement {
|
|
7
8
|
#private;
|
|
8
|
-
accessor
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onChange(): void;
|
|
9
|
+
accessor fileEntries: FileEntry[];
|
|
10
|
+
get files(): FileList | null;
|
|
11
|
+
set files(value: FileList | null);
|
|
12
12
|
}
|
|
13
|
+
interface FileEntry {
|
|
14
|
+
file: File;
|
|
15
|
+
src: string;
|
|
16
|
+
isImage: boolean;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -1,91 +1,47 @@
|
|
|
1
1
|
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import "@joist/templating/define.js";
|
|
3
|
+
import { css, element, html } from "@joist/element";
|
|
4
|
+
import { bind } from "@joist/templating";
|
|
4
5
|
let USAFileInputPreviewElement = (() => {
|
|
5
6
|
let _classDecorators = [element({
|
|
6
7
|
tagName: "usa-file-input-preview",
|
|
7
8
|
shadowDom: [
|
|
8
|
-
css `*{box-sizing:border-box}:host{display:block;font-size:.87rem;pointer-events:none;position:relative;text-align:left;word-wrap:anywhere;z-index:3}:host([hidden]){display:none}img{border:0;display:block;height:2.5rem;margin-right:.5rem;-o-object-fit:contain;object-fit:contain;width:2.5rem}.preview-heading{align-items:center;background
|
|
9
|
-
html `<template><div class="preview-item"><img height="40" width="40" aria-hidden="true"
|
|
9
|
+
css `*{box-sizing:border-box}:host{--usa-input-bg-color:#d9e8f6;display:block;font-size:.87rem;pointer-events:none;position:relative;text-align:left;word-wrap:anywhere;z-index:3}:host([hidden]){display:none}img{border:0;display:block;height:2.5rem;margin-right:.5rem;-o-object-fit:contain;object-fit:contain;width:2.5rem}.preview-heading{align-items:center;background:var(--usa-input-bg-color);display:flex;pointer-events:none;position:relative;z-index:3;font-weight:700;justify-content:space-between;padding:.5rem;text-align:left}.preview-item{align-items:center;background:var(--usa-input-bg-color);display:flex;padding:.5rem;width:100%;margin-top:1px}`,
|
|
10
|
+
html `<j-if bind="fileEntries.length"><template><slot class="preview-heading"></slot></template></j-if><j-for bind="fileEntries" key="src"><template><div class="preview-item"><j-if bind="each.value.isImage"><template><j-props><img height="40" width="40" aria-hidden="true" $.src="each.value.src"></j-props></template><template else><usa-icon icon="file_present"></usa-icon></template></j-if><j-value bind="each.value.file.name"></j-value></div></template></j-for>`,
|
|
10
11
|
],
|
|
11
12
|
})];
|
|
12
13
|
let _classDescriptor;
|
|
13
14
|
let _classExtraInitializers = [];
|
|
14
15
|
let _classThis;
|
|
15
16
|
let _classSuper = HTMLElement;
|
|
16
|
-
let
|
|
17
|
-
let
|
|
18
|
-
let
|
|
19
|
-
let _files_extraInitializers = [];
|
|
20
|
-
let _onChange_decorators;
|
|
17
|
+
let _fileEntries_decorators;
|
|
18
|
+
let _fileEntries_initializers = [];
|
|
19
|
+
let _fileEntries_extraInitializers = [];
|
|
21
20
|
var USAFileInputPreviewElement = class extends _classSuper {
|
|
22
21
|
static { _classThis = this; }
|
|
23
22
|
static {
|
|
24
23
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
__esDecorate(this, null, _files_decorators, { kind: "accessor", name: "files", static: false, private: false, access: { has: obj => "files" in obj, get: obj => obj.files, set: (obj, value) => { obj.files = value; } }, metadata: _metadata }, _files_initializers, _files_extraInitializers);
|
|
28
|
-
__esDecorate(this, null, _onChange_decorators, { kind: "method", name: "onChange", static: false, private: false, access: { has: obj => "onChange" in obj, get: obj => obj.onChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
24
|
+
_fileEntries_decorators = [bind()];
|
|
25
|
+
__esDecorate(this, null, _fileEntries_decorators, { kind: "accessor", name: "fileEntries", static: false, private: false, access: { has: obj => "fileEntries" in obj, get: obj => obj.fileEntries, set: (obj, value) => { obj.fileEntries = value; } }, metadata: _metadata }, _fileEntries_initializers, _fileEntries_extraInitializers);
|
|
29
26
|
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
30
27
|
USAFileInputPreviewElement = _classThis = _classDescriptor.value;
|
|
31
28
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
32
29
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
33
30
|
}
|
|
34
|
-
#
|
|
35
|
-
get
|
|
36
|
-
set
|
|
37
|
-
#
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.onChange();
|
|
31
|
+
#fileEntries_accessor_storage = __runInitializers(this, _fileEntries_initializers, []);
|
|
32
|
+
get fileEntries() { return this.#fileEntries_accessor_storage; }
|
|
33
|
+
set fileEntries(value) { this.#fileEntries_accessor_storage = value; }
|
|
34
|
+
#files = (__runInitializers(this, _fileEntries_extraInitializers), null);
|
|
35
|
+
get files() {
|
|
36
|
+
return this.#files;
|
|
41
37
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const template = this.#template();
|
|
50
|
-
if (this.files?.length) {
|
|
51
|
-
this.hidden = false;
|
|
52
|
-
const names = new Set();
|
|
53
|
-
for (const file of this.files) {
|
|
54
|
-
names.add(file.name);
|
|
55
|
-
if (!this.#items.has(file.name)) {
|
|
56
|
-
const clone = template.content.cloneNode(true);
|
|
57
|
-
const item = clone.firstElementChild;
|
|
58
|
-
if (!item) {
|
|
59
|
-
throw new Error("SOMETHING HAS GONE VERY WRONG");
|
|
60
|
-
}
|
|
61
|
-
item.id = file.name;
|
|
62
|
-
item.append(document.createTextNode(file.name));
|
|
63
|
-
const img = item.querySelector("img");
|
|
64
|
-
const icon = item.querySelector("usa-icon");
|
|
65
|
-
if (!img || !icon) {
|
|
66
|
-
throw Error("Something went very wrong");
|
|
67
|
-
}
|
|
68
|
-
if (file.type.startsWith("image")) {
|
|
69
|
-
img.style.display = "block";
|
|
70
|
-
img.src = URL.createObjectURL(file);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
icon.style.display = "block";
|
|
74
|
-
}
|
|
75
|
-
this.shadow.append(item);
|
|
76
|
-
this.#items.set(file.name, item);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
for (const [name, item] of this.#items) {
|
|
80
|
-
if (!names.has(name)) {
|
|
81
|
-
item.remove();
|
|
82
|
-
this.#items.delete(name);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
this.hidden = true;
|
|
88
|
-
}
|
|
38
|
+
set files(value) {
|
|
39
|
+
this.#files = value;
|
|
40
|
+
this.fileEntries = Array.from(value ?? []).map((file) => ({
|
|
41
|
+
file,
|
|
42
|
+
src: URL.createObjectURL(file),
|
|
43
|
+
isImage: file.type.startsWith("image"),
|
|
44
|
+
}));
|
|
89
45
|
}
|
|
90
46
|
};
|
|
91
47
|
return USAFileInputPreviewElement = _classThis;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-input-preview.element.js","sourceRoot":"","sources":["../../../../src/lib/file-input/file-input-preview/file-input-preview.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"file-input-preview.element.js","sourceRoot":"","sources":["../../../../src/lib/file-input/file-input-preview/file-input-preview.element.ts"],"names":[],"mappings":";AAAA,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;IA6F5B,0BAA0B;4BArFtC,OAAO,CAAC;YACP,OAAO,EAAE,wBAAwB;YACjC,SAAS,EAAE;gBACT,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoDF;gBACD,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BH;aACF;SACF,CAAC;;;;sBAC8C,WAAW;;;;0CAAnB,SAAQ,WAAW;;;;uCACxD,IAAI,EAAE;YACP,sLAAS,WAAW,6BAAX,WAAW,iGAAmB;YAFzC,6KAmBC;;;YAnBY,uDAA0B;;QAErC,mFAAoC,EAAE,EAAC;QAAvC,IAAS,WAAW,iDAAmB;QAAvC,IAAS,WAAW,uDAAmB;QAEvC,MAAM,6DAAoB,IAAI,EAAC;QAE/B,IAAI,KAAK;YACP,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;QAED,IAAI,KAAK,CAAC,KAAsB;YAC9B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YAEpB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACxD,IAAI;gBACJ,GAAG,EAAE,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC;gBAC9B,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;aACvC,CAAC,CAAC,CAAC;QACN,CAAC;;;;SAlBU,0BAA0B"}
|
|
@@ -5,7 +5,7 @@ let USAFileInputElement = (() => {
|
|
|
5
5
|
let _classDecorators = [element({
|
|
6
6
|
tagName: "usa-file-input",
|
|
7
7
|
shadowDom: [
|
|
8
|
-
css `*{box-sizing:border-box}:host{display:block;max-width:30rem;position:relative;margin-bottom:1.5rem}label{display:block}input{cursor:pointer;left:0;margin:0;max-width:none;position:absolute;text-indent:-999em;width:100%;z-index:1;bottom:0;top:0}input:focus{outline:.25rem solid #2491ff;outline-offset:0}label slot.label{font-size:1.06rem;line-height:1.3;display:block;font-weight:400;margin-bottom:.5rem}:host(.dragenter) .box{border-color:#2491ff}.box{border:1px dashed #adadad;display:flex;font-size:.93rem;position:relative;text-align:center;width:100%;
|
|
8
|
+
css `*{box-sizing:border-box}:host{--usa-input-radius:0;display:block;max-width:30rem;position:relative;margin-bottom:1.5rem}label{display:block}input{cursor:pointer;left:0;margin:0;max-width:none;position:absolute;text-indent:-999em;width:100%;z-index:1;bottom:0;top:0}input:focus{outline:.25rem solid #2491ff;outline-offset:0}label slot.label{font-size:1.06rem;line-height:1.3;display:block;font-weight:400;margin-bottom:.5rem}:host(.dragenter) .box{border-color:#2491ff}.box{border:1px dashed #adadad;border-radius:var(--usa-input-radius);display:flex;font-size:.93rem;position:relative;text-align:center;width:100%;height:5.2rem;align-items:center;justify-content:center}.container{position:relative}`,
|
|
9
9
|
html `<label><slot class="label"></slot><div class="container"><input type="file" tabindex="0"><div class="box"><slot name="description">Drag file here or<usa-link>choose from folder</usa-link></slot></div><usa-file-input-preview>Selected file<usa-link>Change file</usa-link></usa-file-input-preview></div></label>`,
|
|
10
10
|
],
|
|
11
11
|
})];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-input.element.js","sourceRoot":"","sources":["../../../src/lib/file-input/file-input.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"file-input.element.js","sourceRoot":"","sources":["../../../src/lib/file-input/file-input.element.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;IAiGvC,mBAAmB;4BAzF/B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